Vsevolod Ilyushchenko 6cd43f32ea v0.1.178
2019-05-31 14:26:31 -07:00

370 lines
189 KiB
JavaScript

(function(){var l,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},n=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}},ba=function(a){if(!(a instanceof Array)){a=n(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return 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,ea=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})}};ea("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,f=0;f<e;f++){var g=d[f];if(b.call(c,g,f,d)){b=g;break a}}b=void 0}return b}});
var fa=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};ea("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=fa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=fa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});ea("String.prototype.repeat",function(a){return a?a:function(b){var c=fa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
var ha=function(){ha=function(){};da.Symbol||(da.Symbol=ia)},ja=function(a,b){this.ye=a;ca(this,"description",{configurable:!0,writable:!0,value:b})};ja.prototype.toString=function(){return this.ye};
var ia=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new ja("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}(),la=function(){ha();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ka(aa(this))}});la=function(){}},ka=function(a){la();a={next:a};a[da.Symbol.iterator]=function(){return this};return a},
ma=function(a,b){la();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==fa(this,b,"includes").indexOf(b,c||0)}});
var na=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},oa="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)na(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||oa});
ea("WeakMap",function(a){function b(){}function c(h){if(!na(h,e)){var k=new b;ca(h,e,{value:k})}}function d(h){var k=Object[h];k&&(Object[h]=function(m){if(m instanceof b)return m;c(m);return k(m)})}if(function(){if(!a||!Object.seal)return!1;try{var h=Object.seal({}),k=Object.seal({}),m=new a([[h,2],[k,3]]);if(2!=m.get(h)||3!=m.get(k))return!1;m["delete"](h);m.set(k,4);return!m.has(h)&&4==m.get(k)}catch(u){return!1}}())return a;var e="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");
d("seal");var f=0,g=function(h){this.K=(f+=Math.random()+1).toString();if(h){h=n(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};g.prototype.set=function(h,k){c(h);if(!na(h,e))throw Error("WeakMap key fail: "+h);h[e][this.K]=k;return this};g.prototype.get=function(h){return na(h,e)?h[e][this.K]:void 0};g.prototype.has=function(h){return na(h,e)&&na(h[e],this.K)};g.prototype["delete"]=function(h){return na(h,e)&&na(h[e],this.K)?delete h[e][this.K]:!1};return g});
ea("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(n([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var m=k.entries(),u=m.next();if(u.done||u.value[0]!=h||"s"!=u.value[1])return!1;u=m.next();return u.done||4!=u.value[0].x||"t"!=u.value[1]||!m.next().done?!1:!0}catch(Q){return!1}}())return a;la();var b=new WeakMap,c=function(h){this.mb={};this.M=
f();this.size=0;if(h){h=n(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}};c.prototype.set=function(h,k){h=0===h?0:h;var m=d(this,h);m.list||(m.list=this.mb[m.id]=[]);m.J?m.J.value=k:(m.J={next:this.M,sa:this.M.sa,head:this.M,key:h,value:k},m.list.push(m.J),this.M.sa.next=m.J,this.M.sa=m.J,this.size++);return this};c.prototype["delete"]=function(h){h=d(this,h);return h.J&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.mb[h.id],h.J.sa.next=h.J.next,h.J.next.sa=h.J.sa,h.J.head=
null,this.size--,!0):!1};c.prototype.clear=function(){this.mb={};this.M=this.M.sa=f();this.size=0};c.prototype.has=function(h){return!!d(this,h).J};c.prototype.get=function(h){return(h=d(this,h).J)&&h.value};c.prototype.entries=function(){return e(this,function(h){return[h.key,h.value]})};c.prototype.keys=function(){return e(this,function(h){return h.key})};c.prototype.values=function(){return e(this,function(h){return h.value})};c.prototype.forEach=function(h,k){for(var m=this.entries(),u;!(u=m.next()).done;)u=
u.value,h.call(k,u[1],u[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(h,k){var m=k&&typeof k;"object"==m||"function"==m?b.has(k)?m=b.get(k):(m=""+ ++g,b.set(k,m)):m="p_"+k;var u=h.mb[m];if(u&&na(h.mb,m))for(h=0;h<u.length;h++){var Q=u[h];if(k!==k&&Q.key!==Q.key||k===Q.key)return{id:m,list:u,index:h,J:Q}}return{id:m,list:u,index:-1,J:void 0}},e=function(h,k){var m=h.M;return ka(function(){if(m){for(;m.head!=h.M;)m=m.sa;for(;m.next!=m.head;)return m=m.next,{done:!1,value:k(m)};
m=null}return{done:!0,value:void 0}})},f=function(){var h={};return h.sa=h.next=h.head=h},g=0;return c});
ea("Set",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(n([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;la();var b=function(c){this.f=new Map;
if(c){c=n(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.f.size};b.prototype.add=function(c){c=0===c?0:c;this.f.set(c,c);this.size=this.f.size;return this};b.prototype["delete"]=function(c){c=this.f["delete"](c);this.size=this.f.size;return c};b.prototype.clear=function(){this.f.clear();this.size=0};b.prototype.has=function(c){return this.f.has(c)};b.prototype.entries=function(){return this.f.entries()};b.prototype.values=function(){return this.f.values()};b.prototype.keys=b.prototype.values;
b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.f.forEach(function(f){return c.call(d,f,f,e)})};return b});ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push([d,b[d]]);return c}});ea("Array.prototype.values",function(a){return a?a:function(){return ma(this,function(b,c){return c})}});ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push(b[d]);return c}});
ea("Promise",function(a){function b(){this.va=null}function c(g){return g instanceof e?g:new e(function(h){h(g)})}if(a)return a;b.prototype.td=function(g){if(null==this.va){this.va=[];var h=this;this.ud(function(){h.Pe()})}this.va.push(g)};var d=da.setTimeout;b.prototype.ud=function(g){d(g,0)};b.prototype.Pe=function(){for(;this.va&&this.va.length;){var g=this.va;this.va=[];for(var h=0;h<g.length;++h){var k=g[h];g[h]=null;try{k()}catch(m){this.Ge(m)}}}this.va=null};b.prototype.Ge=function(g){this.ud(function(){throw g;
})};var e=function(g){this.C=0;this.T=void 0;this.ab=[];var h=this.Gc();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}};e.prototype.Gc=function(){function g(m){return function(u){k||(k=!0,m.call(h,u))}}var h=this,k=!1;return{resolve:g(this.mf),reject:g(this.gd)}};e.prototype.mf=function(g){if(g===this)this.gd(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof e)this.nf(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?
this.lf(g):this.Pd(g)}};e.prototype.lf=function(g){var h=void 0;try{h=g.then}catch(k){this.gd(k);return}"function"==typeof h?this.pf(h,g):this.Pd(g)};e.prototype.gd=function(g){this.te(2,g)};e.prototype.Pd=function(g){this.te(1,g)};e.prototype.te=function(g,h){if(0!=this.C)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.C);this.C=g;this.T=h;this.Re()};e.prototype.Re=function(){if(null!=this.ab){for(var g=0;g<this.ab.length;++g)f.td(this.ab[g]);this.ab=null}};var f=
new b;e.prototype.nf=function(g){var h=this.Gc();g.Mb(h.resolve,h.reject)};e.prototype.pf=function(g,h){var k=this.Gc();try{g.call(h,k.resolve,k.reject)}catch(m){k.reject(m)}};e.prototype.then=function(g,h){function k(I,pa){return"function"==typeof I?function(mc){try{m(I(mc))}catch(Da){u(Da)}}:pa}var m,u,Q=new e(function(I,pa){m=I;u=pa});this.Mb(k(g,m),k(h,u));return Q};e.prototype["catch"]=function(g){return this.then(void 0,g)};e.prototype.Mb=function(g,h){function k(){switch(m.C){case 1:g(m.T);
break;case 2:h(m.T);break;default:throw Error("Unexpected state: "+m.C);}}var m=this;null==this.ab?f.td(k):this.ab.push(k)};e.resolve=c;e.reject=function(g){return new e(function(h,k){k(g)})};e.race=function(g){return new e(function(h,k){for(var m=n(g),u=m.next();!u.done;u=m.next())c(u.value).Mb(h,k)})};e.all=function(g){var h=n(g),k=h.next();return k.done?c([]):new e(function(m,u){function Q(mc){return function(Da){I[mc]=Da;pa--;0==pa&&m(I)}}var I=[],pa=0;do I.push(void 0),pa++,c(k.value).Mb(Q(I.length-
1),u),k=h.next();while(!k.done)})};return e});ea("String.prototype.padStart",function(a){return a?a:function(b,c){var d=fa(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
var qa=qa||{},p=this||self,q=function(a){return void 0!==a},r=function(a){return"string"==typeof a},ra=function(a){return"boolean"==typeof a},sa=function(a){return"number"==typeof a},ta=/^[\w+/_-]+[=]{0,2}$/,ua=null,va=function(a){a=a.split(".");for(var b=p,c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},wa=function(){},xa=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},ya=function(a){return null!=a},t=function(a){return"array"==xa(a)},za=
function(a){var b=xa(a);return"array"==b||"object"==b&&"number"==typeof a.length},Aa=function(a){return v(a)&&"function"==typeof a.getFullYear},w=function(a){return"function"==xa(a)},v=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ba="closure_uid_"+(1E9*Math.random()>>>0),Ca=0,Ea=function(a,b,c){return a.call.apply(a.bind,arguments)},Fa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);
Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},x=function(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Ea:Fa;return x.apply(null,arguments)},Ga=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},Ha=Date.now||function(){return+new Date},y=function(a,b){a=a.split(".");var c=p;a[0]in c||"undefined"==typeof c.execScript||
c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&q(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}},z=function(a,b){function c(){}c.prototype=b.prototype;a.h=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Bf=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};var A=function(){this.fa=this.fa;this.ac=this.ac};A.prototype.fa=!1;A.prototype.ea=function(){this.fa||(this.fa=!0,this.j())};A.prototype.j=function(){if(this.ac)for(;this.ac.length;)this.ac.shift()()};var Ia=function(a){a&&"function"==typeof a.ea&&a.ea()};var Ja=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.Ma=!1;this.oe=!0};Ja.prototype.stopPropagation=function(){this.Ma=!0};Ja.prototype.preventDefault=function(){this.defaultPrevented=!0;this.oe=!1};var Ka=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ka);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};z(Ka,Error);Ka.prototype.name="CustomError";var La;var Ma=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");Ka.call(this,c+a[d])};z(Ma,Ka);Ma.prototype.name="AssertionError";
var Na=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new Ma(""+e,f||[]);},B=function(a,b,c){a||Na("",null,b,Array.prototype.slice.call(arguments,2));return a},Oa=function(a,b){throw new Ma("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Pa=function(a,b,c){sa(a)||Na("Expected number but got %s: %s.",[xa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Qa=function(a,b,c){r(a)||Na("Expected string but got %s: %s.",[xa(a),
a],b,Array.prototype.slice.call(arguments,2))},Ra=function(a,b,c){w(a)||Na("Expected function but got %s: %s.",[xa(a),a],b,Array.prototype.slice.call(arguments,2))},Sa=function(a,b,c){v(a)||Na("Expected object but got %s: %s.",[xa(a),a],b,Array.prototype.slice.call(arguments,2));return a};var Ta=Array.prototype.indexOf?function(a,b){B(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(r(a))return r(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},Ua=Array.prototype.lastIndexOf?function(a,b){B(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(r(a))return r(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in
a&&a[c]===b)return c;return-1},Va=Array.prototype.forEach?function(a,b,c){B(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Wa=Array.prototype.filter?function(a,b){B(null!=a.length);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,f=r(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d},Xa=Array.prototype.map?function(a,
b,c){B(null!=a.length);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=r(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e},Ya=Array.prototype.some?function(a,b){B(null!=a.length);return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=r(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},Za=Array.prototype.every?function(a,b,c){B(null!=a.length);return Array.prototype.every.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},$a=function(a,b){var c=0;Va(a,function(d,e,f){b.call(void 0,d,e,f)&&++c},void 0);return c},bb=function(a){a:{var b=ab;for(var c=a.length,d=r(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:r(a)?a.charAt(b):a[b]},cb=function(a,b){return 0<=Ta(a,b)},db=function(a){if(!t(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},fb=
function(a,b){b=Ta(a,b);var c;(c=0<=b)&&eb(a,b);return c},eb=function(a,b){B(null!=a.length);Array.prototype.splice.call(a,b,1)},gb=function(a){return Array.prototype.concat.apply([],arguments)},hb=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[]},ib=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(za(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)}},jb=function(a,b,c){B(null!=a.length);
return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},kb=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=v(f)?"o"+(f[Ba]||(f[Ba]=++Ca)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c},lb=function(a){var b=[];if(0>a-0)return[];for(var c=0;c<a;c+=1)b.push(c);return b};var mb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},nb=/&/g,ob=/</g,pb=/>/g,qb=/"/g,rb=/'/g,sb=/\x00/g,tb=/[\x00&<>"']/,ub=function(a,b){return a<b?-1:a>b?1:0};var vb;a:{var wb=p.navigator;if(wb){var xb=wb.userAgent;if(xb){vb=xb;break a}}vb=""}var yb=function(a){return-1!=vb.indexOf(a)};var zb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ab=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Bb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},Cb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Db=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Eb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Fb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Hb=function(a){var b=
Gb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Ib=function(a){for(var b in a)return!1;return!0},Jb=function(a,b){b in a&&delete a[b]},Kb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Lb=function(a){var b=xa(a);if("object"==b||"array"==b){if(w(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=Lb(a[c]);return b}return a},Mb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Nb=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<Mb.length;f++)c=Mb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Ob=function(a,b){a:{try{var c=a&&a.ownerDocument,d=c&&(c.defaultView||c.parentWindow);d=d||p;if(d.Element&&d.Location){var e=d;break a}}catch(g){}e=null}if(e&&"undefined"!=typeof e[b]&&(!a||!(a instanceof e[b])&&(a instanceof e.Location||a instanceof e.Element))){if(v(a))try{var f=a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(g){f="<object could not be stringified>"}else f=void 0===a?"undefined":null===a?"null":typeof a;Oa("Argument is not a %s (or a non-Element, non-Location mock); got: %s",
b,f)}};var Pb=function(a){return a};var Sb=function(a,b){this.md=a===Qb&&b||"";this.Ce=Rb};Sb.prototype.Ia=!0;Sb.prototype.Ga=function(){return this.md};Sb.prototype.toString=function(){return"Const{"+this.md+"}"};var Tb=function(a){if(a instanceof Sb&&a.constructor===Sb&&a.Ce===Rb)return a.md;Oa("expected object of type Const, got '"+a+"'");return"type_error:Const"},Rb={},Qb={},Ub=new Sb(Qb,"");var Vb=function(){this.cd=""};Vb.prototype.Ia=!0;Vb.prototype.Ga=function(){return this.cd.toString()};Vb.prototype.toString=function(){return"SafeScript{"+this.cd+"}"};Vb.prototype.qa=function(a){this.cd=a;return this};(new Vb).qa("");var Xb=function(){this.dc="";this.we=null;this.De=Wb};Xb.prototype.Ia=!0;Xb.prototype.Ga=function(){return this.dc.toString()};Xb.prototype.toString=function(){return"TrustedResourceUrl{"+this.dc+"}"};
var Yb=function(a){if(a instanceof Xb&&a.constructor===Xb&&a.De===Wb)return a.dc;Oa("expected object of type TrustedResourceUrl, got '"+a+"' of type "+xa(a));return"type_error:TrustedResourceUrl"},cc=function(a){var b=Tb(Zb);if(!$b.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(ac,function(d,e){if(!Object.prototype.hasOwnProperty.call(a,e))throw Error('Found marker, "'+e+'", in format string, "'+b+'", but no valid label mapping found in args: '+JSON.stringify(a));d=a[e];
return d instanceof Sb?Tb(d):encodeURIComponent(String(d))});return bc(c)},ac=/%{(\w+)}/g,$b=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Wb={},bc=function(a){var b=new Xb;b.dc=a;return b};var ec=function(){this.cc="";this.Be=dc};ec.prototype.Ia=!0;ec.prototype.Ga=function(){return this.cc.toString()};ec.prototype.toString=function(){return"SafeUrl{"+this.cc+"}"};
var fc=function(a){if(a instanceof ec&&a.constructor===ec&&a.Be===dc)return a.cc;Oa("expected object of type SafeUrl, got '"+a+"' of type "+xa(a));return"type_error:SafeUrl"},gc=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-wav|wav|webm)|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime))(?:;\w+=(?:\w+|"[\w;=]+"))*$/i,ic=function(a){if(gc.test(a.type)){var b=q(p.URL)&&q(p.URL.createObjectURL)?p.URL:q(p.webkitURL)&&q(p.webkitURL.createObjectURL)?
p.webkitURL:q(p.createObjectURL)?p: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 hc(a)},dc={},hc=function(a){var b=new ec;b.cc=a;return b};hc("about:blank");var jc=function(){this.ed=""};jc.prototype.Ia=!0;jc.prototype.Ga=function(){return this.ed};jc.prototype.toString=function(){return"SafeStyle{"+this.ed+"}"};jc.prototype.qa=function(a){this.ed=a;return this};(new jc).qa("");var kc=function(){this.dd=""};kc.prototype.Ia=!0;kc.prototype.Ga=function(){return this.dd};kc.prototype.toString=function(){return"SafeStyleSheet{"+this.dd+"}"};kc.prototype.qa=function(a){this.dd=a;return this};(new kc).qa("");var nc=function(){this.bc="";this.Ae=lc};nc.prototype.Ia=!0;nc.prototype.Ga=function(){return this.bc.toString()};nc.prototype.toString=function(){return"SafeHtml{"+this.bc+"}"};var pc=function(){var a=oc;if(a instanceof nc&&a.constructor===nc&&a.Ae===lc)return a.bc;Oa("expected object of type SafeHtml, got '"+a+"' of type "+xa(a));return"type_error:SafeHtml"},lc={};nc.prototype.qa=function(a){this.bc=a;return this};(new nc).qa("<!DOCTYPE html>");var oc=(new nc).qa("");(new nc).qa("<br>");var qc=function(a){var b=bc(Tb(Ub));Ob(a,"HTMLIFrameElement");a.src=b.we?b.we:Yb(b).toString()},rc=function(a,b){Ob(a,"HTMLScriptElement");a.src=Yb(b);if(null===ua)b:{b=p.document;if((b=b.querySelector&&b.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&ta.test(b)){ua=b;break b}ua=""}b=ua;b&&a.setAttribute("nonce",b)};var sc=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")},tc=function(a){tb.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(nb,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(ob,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(pb,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(qb,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(rb,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(sb,"&#0;")));return a},uc=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 vc=function(a){vc[" "](a);return a};vc[" "]=wa;var xc=function(a,b){var c=wc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var yc=yb("Opera"),zc=yb("Trident")||yb("MSIE"),Ac=yb("Edge"),Bc=yb("Gecko")&&!(-1!=vb.toLowerCase().indexOf("webkit")&&!yb("Edge"))&&!(yb("Trident")||yb("MSIE"))&&!yb("Edge"),Cc=-1!=vb.toLowerCase().indexOf("webkit")&&!yb("Edge"),Dc=function(){var a=p.document;return a?a.documentMode:void 0},Ec;
a:{var Fc="",Gc=function(){var a=vb;if(Bc)return/rv:([^\);]+)(\)|;)/.exec(a);if(Ac)return/Edge\/([\d\.]+)/.exec(a);if(zc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Cc)return/WebKit\/(\S+)/.exec(a);if(yc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Gc&&(Fc=Gc?Gc[1]:"");if(zc){var Hc=Dc();if(null!=Hc&&Hc>parseFloat(Fc)){Ec=String(Hc);break a}}Ec=Fc}
var Ic=Ec,wc={},Jc=function(a){return xc(a,function(){for(var b=0,c=mb(String(Ic)).split("."),d=mb(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",h=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==g[0].length&&0==h[0].length)break;b=ub(0==g[1].length?0:parseInt(g[1],10),0==h[1].length?0:parseInt(h[1],10))||ub(0==g[2].length,0==h[2].length)||ub(g[2],h[2]);g=g[3];h=h[3]}while(0==b)}return 0<=b})},Kc;var Lc=p.document;
Kc=Lc&&zc?Dc()||("CSS1Compat"==Lc.compatMode?parseInt(Ic,10):5):void 0;var Mc=Object.freeze||function(a){return a};var Nc=!zc||9<=Number(Kc),Oc=zc&&!Jc("9"),Pc=function(){if(!p.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{p.addEventListener("test",wa,b),p.removeEventListener("test",wa,b)}catch(c){}return a}();var Qc=function(a,b){Ja.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.$=null;a&&this.init(a,b)};z(Qc,Ja);var Rc=Mc({2:"touch",3:"pen",4:"mouse"});
Qc.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(Bc){a:{try{vc(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=Cc||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Cc||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=r(a.pointerType)?a.pointerType:Rc[a.pointerType]||"";this.state=a.state;this.$=a;a.defaultPrevented&&this.preventDefault()};Qc.prototype.stopPropagation=function(){Qc.h.stopPropagation.call(this);this.$.stopPropagation?this.$.stopPropagation():this.$.cancelBubble=!0};
Qc.prototype.preventDefault=function(){Qc.h.preventDefault.call(this);var a=this.$;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Oc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Sc="closure_listenable_"+(1E6*Math.random()|0),Tc=function(a){return!(!a||!a[Sc])},Uc=0;var Vc=function(a,b,c,d,e){this.listener=a;this.ec=null;this.src=b;this.type=c;this.capture=!!d;this.pa=e;this.key=++Uc;this.cb=this.Lb=!1},Wc=function(a){a.cb=!0;a.listener=null;a.ec=null;a.src=null;a.pa=null};var Xc=function(a){this.src=a;this.H={};this.Hb=0};Xc.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.H[f];a||(a=this.H[f]=[],this.Hb++);var g=Yc(a,b,d,e);-1<g?(b=a[g],c||(b.Lb=!1)):(b=new Vc(b,this.src,f,!!d,e),b.Lb=c,a.push(b));return b};Xc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.H))return!1;var e=this.H[a];b=Yc(e,b,c,d);return-1<b?(Wc(e[b]),eb(e,b),0==e.length&&(delete this.H[a],this.Hb--),!0):!1};
var Zc=function(a,b){var c=b.type;c in a.H&&fb(a.H[c],b)&&(Wc(b),0==a.H[c].length&&(delete a.H[c],a.Hb--))};Xc.prototype.Db=function(a){a=a&&a.toString();var b=0,c;for(c in this.H)if(!a||c==a){for(var d=this.H[c],e=0;e<d.length;e++)++b,Wc(d[e]);delete this.H[c];this.Hb--}};Xc.prototype.qb=function(a,b,c,d){a=this.H[a.toString()];var e=-1;a&&(e=Yc(a,b,c,d));return-1<e?a[e]:null};
Xc.prototype.hasListener=function(a,b){var c=q(a),d=c?a.toString():"",e=q(b);return Cb(this.H,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};var Yc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.cb&&f.listener==b&&f.capture==!!c&&f.pa==d)return e}return-1};var $c="closure_lm_"+(1E6*Math.random()|0),ad={},bd=0,dd=function(a,b,c,d,e){if(d&&d.once)return cd(a,b,c,d,e);if(t(b)){for(var f=0;f<b.length;f++)dd(a,b[f],c,d,e);return null}c=ed(c);return Tc(a)?a.ha(b,c,v(d)?!!d.capture:!!d,e):fd(a,b,c,!1,d,e)},fd=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=v(e)?!!e.capture:!!e,h=gd(a);h||(a[$c]=h=new Xc(a));c=h.add(b,c,d,g,f);if(c.ec)return c;d=hd();c.ec=d;d.src=a;d.listener=c;if(a.addEventListener)Pc||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),
d,e);else if(a.attachEvent)a.attachEvent(id(b.toString()),d);else if(a.addListener&&a.removeListener)B("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");bd++;return c},hd=function(){var a=jd,b=Nc?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},cd=function(a,b,c,d,e){if(t(b)){for(var f=0;f<b.length;f++)cd(a,b[f],c,d,e);return null}c=ed(c);return Tc(a)?
a.zb(b,c,v(d)?!!d.capture:!!d,e):fd(a,b,c,!0,d,e)},kd=function(a,b,c,d,e){if(t(b))for(var f=0;f<b.length;f++)kd(a,b[f],c,d,e);else d=v(d)?!!d.capture:!!d,c=ed(c),Tc(a)?a.qc(b,c,d,e):a&&(a=gd(a))&&(b=a.qb(b,c,d,e))&&ld(b)},ld=function(a){if(!sa(a)&&a&&!a.cb){var b=a.src;if(Tc(b))Zc(b.Z,a);else{var c=a.type,d=a.ec;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(id(c),d):b.addListener&&b.removeListener&&b.removeListener(d);bd--;(c=gd(b))?(Zc(c,a),0==c.Hb&&(c.src=
null,b[$c]=null)):Wc(a)}}},id=function(a){return a in ad?ad[a]:ad[a]="on"+a},nd=function(a,b,c,d){var e=!0;if(a=gd(a))if(b=a.H[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.cb&&(f=md(f,d),e=e&&!1!==f)}return e},md=function(a,b){var c=a.listener,d=a.pa||a.src;a.Lb&&ld(a);return c.call(d,b)},jd=function(a,b){if(a.cb)return!0;if(!Nc){var c=b||va("window.event");b=new Qc(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.Ma&&0<=e;e--){b.currentTarget=c[e];var f=nd(c[e],a,!0,b);d=d&&f}for(e=0;!b.Ma&&e<c.length;e++)b.currentTarget=c[e],f=nd(c[e],a,!1,b),d=d&&f}return d}return md(a,new Qc(b,this))},gd=function(a){a=a[$c];return a instanceof Xc?a:null},od="__closure_events_fn_"+(1E9*Math.random()>>>0),ed=function(a){B(a,"Listener can not be null.");if(w(a))return a;B(a.handleEvent,
"An object listener must have handleEvent method.");a[od]||(a[od]=function(b){return a.handleEvent(b)});return a[od]};var C=function(){A.call(this);this.Z=new Xc(this);this.Ee=this;this.bd=null};z(C,A);C.prototype[Sc]=!0;l=C.prototype;l.addEventListener=function(a,b,c,d){dd(this,a,b,c,d)};l.removeEventListener=function(a,b,c,d){kd(this,a,b,c,d)};
l.dispatchEvent=function(a){pd(this);var b=this.bd;if(b){var c=[];for(var d=1;b;b=b.bd)c.push(b),B(1E3>++d,"infinite loop")}b=this.Ee;d=a.type||a;if(r(a))a=new Ja(a,b);else if(a instanceof Ja)a.target=a.target||b;else{var e=a;a=new Ja(d,b);Nb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.Ma&&0<=f;f--){var g=a.currentTarget=c[f];e=qd(g,d,!0,a)&&e}a.Ma||(g=a.currentTarget=b,e=qd(g,d,!0,a)&&e,a.Ma||(e=qd(g,d,!1,a)&&e));if(c)for(f=0;!a.Ma&&f<c.length;f++)g=a.currentTarget=c[f],e=qd(g,d,!1,a)&&e;return e};
l.j=function(){C.h.j.call(this);this.Z&&this.Z.Db(void 0);this.bd=null};l.ha=function(a,b,c,d){pd(this);return this.Z.add(String(a),b,!1,c,d)};l.zb=function(a,b,c,d){return this.Z.add(String(a),b,!0,c,d)};l.qc=function(a,b,c,d){this.Z.remove(String(a),b,c,d)};var qd=function(a,b,c,d){b=a.Z.H[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.cb&&g.capture==c){var h=g.listener,k=g.pa||g.src;g.Lb&&Zc(a.Z,g);e=!1!==h.call(k,d)&&e}}return e&&0!=d.oe};
C.prototype.qb=function(a,b,c,d){return this.Z.qb(String(a),b,c,d)};C.prototype.hasListener=function(a,b){return this.Z.hasListener(q(a)?String(a):void 0,b)};var pd=function(a){B(a.Z,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var rd="StopIteration"in p?p.StopIteration:{message:"StopIteration",stack:""},sd=function(){};sd.prototype.next=function(){throw rd;};sd.prototype.Ra=function(){return this};
var td=function(a){if(a instanceof sd)return a;if("function"==typeof a.Ra)return a.Ra(!1);if(za(a)){var b=0,c=new sd;c.next=function(){for(;;){if(b>=a.length)throw rd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},ud=function(a,b){if(za(a))try{Va(a,b,void 0)}catch(c){if(c!==rd)throw c;}else{a=td(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==rd)throw c;}}};var vd=function(a,b){this.f={};this.l=[];this.Ib=this.m=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)};l=vd.prototype;l.o=function(){return this.m};l.w=function(){wd(this);for(var a=[],b=0;b<this.l.length;b++)a.push(this.f[this.l[b]]);return a};l.ba=function(){wd(this);return this.l.concat()};l.wa=function(a){return xd(this.f,a)};
l.lb=function(a){for(var b=0;b<this.l.length;b++){var c=this.l[b];if(xd(this.f,c)&&this.f[c]==a)return!0}return!1};l.equals=function(a,b){if(this===a)return!0;if(this.m!=a.o())return!1;b=b||yd;wd(this);for(var c,d=0;c=this.l[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var yd=function(a,b){return a===b};vd.prototype.isEmpty=function(){return 0==this.m};vd.prototype.clear=function(){this.f={};this.Ib=this.m=this.l.length=0};
vd.prototype.remove=function(a){return xd(this.f,a)?(delete this.f[a],this.m--,this.Ib++,this.l.length>2*this.m&&wd(this),!0):!1};var wd=function(a){if(a.m!=a.l.length){for(var b=0,c=0;b<a.l.length;){var d=a.l[b];xd(a.f,d)&&(a.l[c++]=d);b++}a.l.length=c}if(a.m!=a.l.length){var e={};for(c=b=0;b<a.l.length;)d=a.l[b],xd(e,d)||(a.l[c++]=d,e[d]=1),b++;a.l.length=c}};l=vd.prototype;l.get=function(a,b){return xd(this.f,a)?this.f[a]:b};
l.set=function(a,b){xd(this.f,a)||(this.m++,this.l.push(a),this.Ib++);this.f[a]=b};l.addAll=function(a){if(a instanceof vd)for(var b=a.ba(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};l.forEach=function(a,b){for(var c=this.ba(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};l.clone=function(){return new vd(this)};
l.Ra=function(a){wd(this);var b=0,c=this.Ib,d=this,e=new sd;e.next=function(){if(c!=d.Ib)throw Error("The map has changed since the iterator was created");if(b>=d.l.length)throw rd;var f=d.l[b++];return a?f:d.f[f]};return e};var xd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var zd=function(a){if(a.o&&"function"==typeof a.o)a=a.o();else if(za(a)||r(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Ad=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(r(a))return a.split("");if(za(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Db(a)},Bd=function(a){if(a.ba&&"function"==typeof a.ba)return a.ba();if(!a.w||"function"!=typeof a.w){if(za(a)||r(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Eb(a)}},Cd=function(a,b,
c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(za(a)||r(a))Va(a,b,c);else for(var d=Bd(a),e=Ad(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)},Dd=function(a,b){if("function"==typeof a.every)return a.every(b,void 0);if(za(a)||r(a))return Za(a,b,void 0);for(var c=Bd(a),d=Ad(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 Ed=function(a){this.f=new vd;a&&this.addAll(a)},Fd=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[Ba]||(a[Ba]=++Ca)):b.substr(0,1)+a};l=Ed.prototype;l.o=function(){return this.f.o()};l.add=function(a){this.f.set(Fd(a),a)};l.addAll=function(a){a=Ad(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};l.Db=function(a){a=Ad(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};l.remove=function(a){return this.f.remove(Fd(a))};l.clear=function(){this.f.clear()};l.isEmpty=function(){return this.f.isEmpty()};
l.contains=function(a){return this.f.wa(Fd(a))};var Gd=function(a,b){var c=new Ed;b=Ad(b);for(var d=0;d<b.length;d++){var e=b[d];a.contains(e)&&c.add(e)}return c},Hd=function(a,b){a=a.clone();a.Db(b);return a};Ed.prototype.w=function(){return this.f.w()};Ed.prototype.clone=function(){return new Ed(this)};Ed.prototype.equals=function(a){return this.o()==zd(a)&&Id(this,a)};
var Id=function(a,b){var c=zd(b);if(a.o()>c)return!1;!(b instanceof Ed)&&5<c&&(b=new Ed(b));return Dd(a,function(d){var e=b;return e.contains&&"function"==typeof e.contains?e.contains(d):e.lb&&"function"==typeof e.lb?e.lb(d):za(e)||r(e)?cb(e,d):Fb(e,d)})};Ed.prototype.Ra=function(){return this.f.Ra(!1)};var Jd=function(a,b,c){C.call(this);this.af=b;this.token=c;this.Ca=[];this.pd=new Ed;this.Aa=0;this.url=a};z(Jd,C);y("ee.AbstractOverlay",Jd);var Kd=function(a,b,c){var d=1<<c,e=b.x%d;0>e&&(e+=d);return[a.af,c,e,b.y].join("/")};Jd.prototype.Pc=function(){return this.Ca.length};var Ld=function(a){Ja.call(this,"tileevent");this.count=a};z(Ld,Ja);var Md={kind:"discovery#restDescription",name:"earthengine",version:"v1alpha",rootUrl:"https://earthengine.googleapis.com/",servicePath:"",batchPath:"batch",id:"earthengine:v1alpha",parameters:{"$.xgafv":{location:"query",required:!1},access_token:{location:"query",required:!1},alt:{location:"query",required:!1},callback:{location:"query",required:!1},fields:{location:"query",required:!1},key:{location:"query",required:!1},oauth_token:{location:"query",required:!1},prettyPrint:{location:"query",required:!1},
quotaUser:{location:"query",required:!1},uploadType:{location:"query",required:!1},upload_protocol:{location:"query",required:!1}},resources:{projects:{methods:{listAssets:{id:"earthengine.projects.listAssets",path:"v1alpha/{+parent}:listAssets",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}}},resources:{algorithms:{methods:{list:{id:"earthengine.projects.algorithms.list",path:"v1alpha/{+project}/algorithms",
httpMethod:"GET",parameters:{project:{location:"path",required:!0}}}}},assets:{methods:{copy:{id:"earthengine.projects.assets.copy",path:"v1alpha/{+sourceName}:copy",httpMethod:"POST",request:{$ref:"CopyAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},create:{id:"earthengine.projects.assets.create",path:"v1alpha/{+parent}/assets",httpMethod:"POST",request:{$ref:"EarthEngineAsset"},parameters:{parent:{location:"path",required:!0},assetId:{location:"query",required:!1},overwrite:{location:"query",
required:!1}}},"delete":{id:"earthengine.projects.assets.delete",path:"v1alpha/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.assets.get",path:"v1alpha/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},getIamPolicy:{id:"earthengine.projects.assets.getIamPolicy",path:"v1alpha/{+resource}:getIamPolicy",httpMethod:"POST",request:{$ref:"GetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.assets.getPixels",
path:"v1alpha/{+name}:getPixels",httpMethod:"POST",request:{$ref:"GetPixelsRequest"},parameters:{name:{location:"path",required:!0}}},listAssets:{id:"earthengine.projects.assets.listAssets",path:"v1alpha/{+parent}:listAssets",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},listFeatures:{id:"earthengine.projects.assets.listFeatures",path:"v1alpha/{+parent}:listFeatures",httpMethod:"GET",parameters:{parent:{location:"path",
required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},region:{location:"query",required:!1},filter:{location:"query",required:!1}}},listImages:{id:"earthengine.projects.assets.listImages",path:"v1alpha/{+parent}:listImages",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1},startTime:{location:"query",required:!1},endTime:{location:"query",required:!1},region:{location:"query",
required:!1},filter:{location:"query",required:!1},view:{location:"query",required:!1}}},move:{id:"earthengine.projects.assets.move",path:"v1alpha/{+sourceName}:move",httpMethod:"POST",request:{$ref:"MoveAssetRequest"},parameters:{sourceName:{location:"path",required:!0}}},patch:{id:"earthengine.projects.assets.patch",path:"v1alpha/{+name}",httpMethod:"PATCH",request:{$ref:"UpdateAssetRequest"},parameters:{name:{location:"path",required:!0}}},setIamPolicy:{id:"earthengine.projects.assets.setIamPolicy",
path:"v1alpha/{+resource}:setIamPolicy",httpMethod:"POST",request:{$ref:"SetIamPolicyRequest"},parameters:{resource:{location:"path",required:!0}}},testIamPermissions:{id:"earthengine.projects.assets.testIamPermissions",path:"v1alpha/{+resource}:testIamPermissions",httpMethod:"POST",request:{$ref:"TestIamPermissionsRequest"},parameters:{resource:{location:"path",required:!0}}}}},filmstripThumbnails:{methods:{create:{id:"earthengine.projects.filmstripThumbnails.create",path:"v1alpha/{+parent}/filmstripThumbnails",
httpMethod:"POST",request:{$ref:"FilmstripThumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.filmstripThumbnails.getPixels",path:"v1alpha/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},image:{methods:{computePixels:{id:"earthengine.projects.image.computePixels",path:"v1alpha/{+project}/image:computePixels",httpMethod:"POST",request:{$ref:"ComputePixelsRequest"},parameters:{project:{location:"path",required:!0}}},
"export":{id:"earthengine.projects.image.export",path:"v1alpha/{+project}/image:export",httpMethod:"POST",request:{$ref:"ExportImageRequest"},parameters:{project:{location:"path",required:!0}}},"import":{id:"earthengine.projects.image.import",path:"v1alpha/{+project}/image:import",httpMethod:"POST",request:{$ref:"ImportImageRequest"},parameters:{project:{location:"path",required:!0}}}}},imageCollection:{methods:{computeImages:{id:"earthengine.projects.imageCollection.computeImages",path:"v1alpha/{+project}/imageCollection:computeImages",
httpMethod:"POST",request:{$ref:"ComputeImagesRequest"},parameters:{project:{location:"path",required:!0}}}}},map:{methods:{"export":{id:"earthengine.projects.map.export",path:"v1alpha/{+project}/map:export",httpMethod:"POST",request:{$ref:"ExportMapRequest"},parameters:{project:{location:"path",required:!0}}}}},maps:{methods:{create:{id:"earthengine.projects.maps.create",path:"v1alpha/{+parent}/maps",httpMethod:"POST",request:{$ref:"EarthEngineMap"},parameters:{parent:{location:"path",required:!0}}}},
resources:{tiles:{methods:{get:{id:"earthengine.projects.maps.tiles.get",path:"v1alpha/{+parent}/tiles/{zoom}/{x}/{y}",httpMethod:"GET",parameters:{parent:{location:"path",required:!0},zoom:{location:"path",required:!0},x:{location:"path",required:!0},y:{location:"path",required:!0}}}}}}},operations:{methods:{cancel:{id:"earthengine.projects.operations.cancel",path:"v1alpha/{+name}:cancel",httpMethod:"POST",request:{$ref:"CancelOperationRequest"},parameters:{name:{location:"path",required:!0}}},"delete":{id:"earthengine.projects.operations.delete",
path:"v1alpha/{+name}",httpMethod:"DELETE",parameters:{name:{location:"path",required:!0}}},get:{id:"earthengine.projects.operations.get",path:"v1alpha/{+name}",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}},list:{id:"earthengine.projects.operations.list",path:"v1alpha/{+name}/operations",httpMethod:"GET",parameters:{name:{location:"path",required:!0},filter:{location:"query",required:!1},pageSize:{location:"query",required:!1},pageToken:{location:"query",required:!1}}},wait:{id:"earthengine.projects.operations.wait",
path:"v1alpha/{+name}:wait",httpMethod:"POST",request:{$ref:"WaitOperationRequest"},parameters:{name:{location:"path",required:!0}}}}},table:{methods:{computeFeatures:{id:"earthengine.projects.table.computeFeatures",path:"v1alpha/{+project}/table:computeFeatures",httpMethod:"POST",request:{$ref:"ComputeFeaturesRequest"},parameters:{project:{location:"path",required:!0}}},"export":{id:"earthengine.projects.table.export",path:"v1alpha/{+project}/table:export",httpMethod:"POST",request:{$ref:"ExportTableRequest"},
parameters:{project:{location:"path",required:!0}}},"import":{id:"earthengine.projects.table.import",path:"v1alpha/{+project}/table:import",httpMethod:"POST",request:{$ref:"ImportTableRequest"},parameters:{project:{location:"path",required:!0}}}}},thumbnails:{methods:{create:{id:"earthengine.projects.thumbnails.create",path:"v1alpha/{+parent}/thumbnails",httpMethod:"POST",request:{$ref:"Thumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.thumbnails.getPixels",
path:"v1alpha/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}},value:{methods:{compute:{id:"earthengine.projects.value.compute",path:"v1alpha/{+project}/value:compute",httpMethod:"POST",request:{$ref:"ComputeValueRequest"},parameters:{project:{location:"path",required:!0}}}}},video:{methods:{"export":{id:"earthengine.projects.video.export",path:"v1alpha/{+project}/video:export",httpMethod:"POST",request:{$ref:"ExportVideoRequest"},parameters:{project:{location:"path",
required:!0}}}}},videoMap:{methods:{"export":{id:"earthengine.projects.videoMap.export",path:"v1alpha/{+project}/videoMap:export",httpMethod:"POST",request:{$ref:"ExportVideoMapRequest"},parameters:{project:{location:"path",required:!0}}}}},videoThumbnails:{methods:{create:{id:"earthengine.projects.videoThumbnails.create",path:"v1alpha/{+parent}/videoThumbnails",httpMethod:"POST",request:{$ref:"VideoThumbnail"},parameters:{parent:{location:"path",required:!0}}},getPixels:{id:"earthengine.projects.videoThumbnails.getPixels",
path:"v1alpha/{+name}:getPixels",httpMethod:"GET",parameters:{name:{location:"path",required:!0}}}}}}}},methods:{}};var Nd=function(){},Od=function(a){return{constantValue:a}},Pd=function(a){return{valueReference:a}},Qd=function(a,b){return{functionInvocationValue:{functionName:a,arguments:b}}},Rd=function(a,b){return{functionInvocationValue:{arguments:b,functionReference:a}}},Sd=function(a,b){return{functionDefinitionValue:{argumentNames:a,body:b}}},Td=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";case "AUTO":return"AUTO_JPEG_PNG";case "TIF":case "TIFF":case "GEOTIF":case "GEOTIFF":return"GEO_TIFF";
case "TF_RECORD":case "TFRECORD":return"TF_RECORD_IMAGE";case "NUMPY":return"NPY";default:return a}},Ud=function(a){if(!a)return"CSV";a=a.toUpperCase();switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Vd=function(a){if(!a)return[];if(r(a))return a.split(",");if(t(a))return a;throw Error("Invalid band list "+a);},Yd=function(a){var b={};if("palette"in a){var c=a.palette;b.paletteColors=r(c)?c.split(","):c}c=[];if("gain"in
a||"bias"in a){if("min"in a||"max"in a)throw Error("Gain and bias can't be specified with min and max");var d=b.paletteColors?b.paletteColors.length-1:255;c=Wd(a,"bias","gain").map(function(e){var f=-e.bias/e.gain;return{min:f,max:d/e.gain+f}})}else if("min"in a||"max"in a)c=Wd(a,"min","max");0!==c.length&&(b.ranges=c);a=Xd(a.gamma);if(1<a.length)throw Error("Only one gamma value is supported");1===a.length&&(b.gamma={value:a[0]});return Ib(b)?null:b},Xd=function(a){return a?a.split(",").map(Number):
[]},Wd=function(a,b,c){var d=Xd(a[b]),e=Xd(a[c]);if(0===d.length)return e.map(function(f){var g={};return g[b]=0,g[c]=f,g});if(0===e.length)return d.map(function(f){var g={};return g[b]=f,g[c]=1,g});if(d.length!==e.length)throw Error("Length of "+b+" and "+c+" must match.");return d.map(function(f,g){var h={};return h[b]=f,h[c]=e[g],h})},Zd=function(a){var b=function(g){var h={};h.description=g.description||"";h.type=g.type||"";null!=g.argumentName&&(h.name=g.argumentName);void 0!==g.defaultValue&&
(h["default"]=g.defaultValue);null!=g.optional&&(h.optional=g.optional);return h},c=function(g){var h={};h.args=(g.arguments||[]).map(b);h.description=g.description||"";h.returns=g.returnType||"";null!=g.hidden&&(h.hidden=g.hidden);g.deprecated&&(h.deprecated=g.deprecationReason);return h},d={};a=n(a.algorithms||[]);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.name.replace(/^algorithms\//,"");d[f]=c(e)}return d},$d=function(a){return(a=/^(projects\/[a-z][a-z0-9\-]{4,28}[a-z0-9])\/.*/.exec(a))?
a[1]:"projects/earthengine-legacy"},D=function(a){return/^projects\/[a-z][a-z0-9\-]{4,28}[a-z0-9]\/assets\/.*/.exec(a)?a:/^(users|projects)\/.*/.exec(a)?"projects/earthengine-legacy/assets/"+a:"projects/earthengine-public/assets/"+a},ae=function(a){switch(a){case "ImageCollection":return"IMAGE_COLLECTION";case "Folder":return"FOLDER";default:return a}},be=function(a){var b={};a.id&&(b.parent=D(a.id));a.num&&(b.pageSize=a.num);var c=["id","num"];a=n(Object.keys(a).filter(function(e){return!c.includes(e)}));
for(var d=a.next();!d.done;d=a.next())console.warn("Unrecognized key "+d.value+" ignored");return b},de=function(a){return(a.assets||[]).map(ce)},ge=function(a){return(a.images||[]).map(fe)},ce=function(a){var b=he(function(d){switch(d){case "IMAGE":return"Image";case "IMAGE_COLLECTION":return"ImageCollection";case "FOLDER":return"Folder";case "TABLE":return"Table";default:return"Unknown"}}(a.type),a.name),c=Object.assign({},a.properties||{});a.sizeBytes&&(c["system:asset_size"]=Number(a.sizeBytes));
a.startTime&&(c["system:time_start"]=Date.parse(a.startTime));a.endTime&&(c["system:time_end"]=Date.parse(a.endTime));a.geometry&&(c["system:footprint"]=a.geometry);a.updateTime&&(b.version=1E3*Date.parse(a.updateTime));b.properties=c;a.bands&&(b.bands=a.bands.map(function(d){return{id:d.id,data_type:{precision:(d.dataType.precision||"").toLowerCase(),min:d.dataType.range.min||0,max:d.dataType.range.max,type:"PixelType"},dimensions:[d.grid.dimensions.width,d.grid.dimensions.height],crs:d.grid.crsCode,
crs_transform:[d.grid.affineTransform.scaleX||0,d.grid.affineTransform.shearX||0,d.grid.affineTransform.translateX||0,d.grid.affineTransform.shearY||0,d.grid.affineTransform.scaleY||0,d.grid.affineTransform.translateY||0]}}));return b},ie=function(a){var b={},c=Object.assign({},a),d;a=function(e){d=c[e];delete c[e];return d};a("system:asset_size")&&(b.sizeBytes=String(d));a("system:time_start")&&(b.startTime=(new Date(Number(d))).toISOString());a("system:time_end")&&(b.endTime=(new Date(Number(d))).toISOString());
a("system:footprint")&&(b.geometry=d);b.properties=c;return b},fe=function(a){return he("Image",a.name)},he=function(a,b){var c={};c.type=a;null!=b&&(a=b.split("/"),c.id="projects"===a[0]&&"assets"===a[2]?a.slice(3).join("/"):b);return c},ke=function(a){var b={};a.id&&(b.parent=D(a.id));a.num&&(b.pageSize=a.num);a.starttime&&(b.startTime=(new Date(a.starttime)).toISOString());a.endtime&&(b.endTime=(new Date(a.endtime)).toISOString());a.bbox&&(b.region=je(a.bbox));a.region&&(b.region=a.region);a.bbox&&
a.region&&console.warn("Multiple request parameters converted to region");var c="id num starttime endtime bbox region".split(" ");a=n(Object.keys(a).filter(function(e){return!c.includes(e)}));for(var d=a.next();!d.done;d=a.next())console.warn("Unrecognized key "+d.value+" ignored");return b},je=function(a){return'{"type":"Polygon","coordinates":[[['+[[0,1],[2,1],[2,3],[0,3],[0,1]].map(function(b){return a[b[0]]+","+a[b[1]]}).join("],[")+"]]]}"},le=function(a){var b={};(a.bindings||[]).forEach(function(f){b[f.role]=
f.members});var c=new Set,d=function(f){var g=f.replace(/^group:|^user:/,"");f.startsWith("group:")&&c.add(g);return g};a=b["roles/viewer"]||[];var e=a.filter(function(f){return"allUsers"!==f});d={owners:(b["roles/owner"]||[]).map(d),writers:(b["roles/editor"]||[]).map(d),readers:e.map(d)};0<c.size&&(d.groups=c);a.length!=e.length&&(d.all_users_can_read=!0);return d},me=function(a){var b=function(d){return(a[d]||[]).map(function(e){return(a.groups&&a.groups.has(e)?"group:":"user:")+e})},c=a.all_users_can_read?
["allUsers"]:[];return{bindings:[{role:"roles/owner",members:b("owners")},{role:"roles/viewer",members:b("readers").concat(c)},{role:"roles/editor",members:b("writers")}].filter(function(d){return d.members.length}),etag:null}},ne=function(a){return"operations/"+a},oe=function(a){var b={},c=function(f,g){null!=g&&(b[f]=Date.parse(g))},d=function(f){switch(f){case "PENDING":return"READY";case "RUNNING":return"RUNNING";case "CANCELLING":return"CANCEL_REQUESTED";case "SUCCEEDED":return"COMPLETED";case "CANCELLED":return"CANCELLED";
case "FAILED":return"FAILED";default:return"UNKNOWN"}},e=a.metadata;null!=e.description&&(b.description=e.description);null!=e.state&&(b.state=d(e.state));c("creation_timestamp_ms",e.createTime);c("update_timestamp_ms",e.updateTime);c("start_timestamp_ms",e.startTime);a.done&&null!=a.error&&(b.error_message=a.error.message);null!=a.name&&(b.id=a.name.replace(/^operations\//,""));b.task_type="UNKNOWN";return b},pe=function(a){var b={started:"OK"};a.name&&(b.taskId=a.name.replace(/^operations\//,""));
a.error&&(b.note=a.error.message);return b},qe=function(a){return a.primaryPath?{uris:[a.primaryPath].concat(ba(a.additionalPaths||[]))}:a},re=function(a){var b=Object.assign({},a);delete b.id;b.name=D(a.id);b.tilesets=(a.tilesets||[]).map(function(c){var d=(c.sources||[]).map(qe);return Object.assign({},c,{sources:d})});return b},se=function(a){var b=Object.assign({},a);delete b.id;b.name=D(a.id);b.sources=(a.sources||[]).map(qe);return b};var te=function(){this.ma=-1};var ue=function(){this.ma=-1;this.ma=64;this.F=Array(4);this.He=Array(this.ma);this.oc=this.jb=0;this.reset()};z(ue,te);ue.prototype.reset=function(){this.F[0]=1732584193;this.F[1]=4023233417;this.F[2]=2562383102;this.F[3]=271733878;this.oc=this.jb=0};
var ve=function(a,b,c){c||(c=0);var d=Array(16);if(r(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};
ue.prototype.update=function(a,b){q(b)||(b=a.length);for(var c=b-this.ma,d=this.He,e=this.jb,f=0;f<b;){if(0==e)for(;f<=c;)ve(this,a,f),f+=this.ma;if(r(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.ma){ve(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.ma){ve(this,d);e=0;break}}this.jb=e;this.oc+=b};
ue.prototype.digest=function(){var a=Array((56>this.jb?this.ma:2*this.ma)-this.jb);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;var c=8*this.oc;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 xe=function(a){return(new we(void 0)).B(a)},we=function(a){this.gc=a};we.prototype.B=function(a){var b=[];ye(this,a,b);return b.join("")};
var ye=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(t(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],ye(a,a.gc?a.gc.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),ze(d,c),c.push(":"),ye(a,a.gc?a.gc.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ze(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);}}},Ae={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Be=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,ze=function(a,b){b.push('"',a.replace(Be,function(c){var d=Ae[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),
Ae[c]=d);return d}),'"')};var Ce=function(a){this.ua="__ee_hash__";this.Wb=!1!==a;this.ia=[];this.U={};this.ib=[]};y("ee.Serializer",Ce);var De=new we,Ee=new ue,Ge=function(a,b){return Fe(new Ce(q(b)?b:!0),a)};y("ee.Serializer.encode",Ge);var He=function(a){return De.B(Ge(a))};y("ee.Serializer.toJSON",He);var Je=function(a){return Ie(Ge(a,!1))};y("ee.Serializer.toReadableJSON",Je);
var Ie=function(a){return"JSON"in p?p.JSON.stringify(a,null," "):De.B(a)},Fe=function(a,b){b=a.Pb(b);a.Wb&&(b=v(b)&&"ValueRef"==b.type&&1==a.ia.length?a.ia[0][1]:{type:"CompoundValue",scope:a.ia,value:b},a.ia=[],Va(a.ib,x(function(c){delete c[this.ua]},a)),a.ib=[],a.U={});return b};
Ce.prototype.Pb=function(a){if(!q(a))throw Error("Can't encode an undefined value.");var b=v(a)?a[this.ua]:null;if(this.Wb&&null!=b&&this.U[b])return{type:"ValueRef",value:this.U[b]};if(null===a||ra(a)||sa(a)||r(a))return a;if(Aa(a))return{type:"Invocation",functionName:"Date",arguments:{value:Math.floor(a.getTime())}};if(a instanceof Nd){var c=a.encode(x(this.Pb,this));if(!(t(c)||v(c)&&"ArgumentRef"!=c.type))return c}else if(t(a))c=Xa(a,function(e){return this.Pb(e)},this);else if(v(a)&&!w(a))c=
Bb(a,function(e){if(!w(e))return this.Pb(e)},this),Jb(c,this.ua),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Wb){b=Ke(c);if(this.U[b])var d=this.U[b];else d=String(this.ia.length),this.ia.push([d,c]),this.U[b]=d;a[this.ua]=b;this.ib.push(a);return{type:"ValueRef",value:d}}return c};var Ke=function(a){Ee.reset();Ee.update(De.B(a));return Ee.digest().toString()},Me=function(a){return Le(new Ce(!0),a)};y("ee.Serializer.encodeCloudApi",Me);
var Ne=function(a){a=Le(new Ce(!1),a);var b=a.values,c=function(d){if(!v(d))return d;var e=t(d)?[]:{};d=n(Object.entries(d));for(var f=d.next();!f.done;f=d.next()){var g=n(f.value);f=g.next().value;g=g.next().value;e[f]="functionDefinitionValue"===f&&null!=g.body?{argumentNames:g.argumentNames,body:c(b[g.body])}:"functionInvocationValue"===f&&null!=g.functionReference?{arguments:g.arguments.map(c),functionReference:c(b[g.functionReference])}:"constantValue"===f?g:c(g)}return e};return c(b[a.result])};
y("ee.Serializer.encodeCloudApiPretty",Ne);var Oe=function(a){return Ie(Ne(a))};y("ee.Serializer.toReadableCloudApiJSON",Oe);
var Le=function(a,b){try{var c=Pe(a,b);return Qe(new Re(c,a.ia,a.Wb))}finally{a.ib.forEach(function(d){return delete d[a.ua]}),a.ib=[],a.U={},a.ia=[]}},Pe=function(a,b){var c=function(e){var f=Ke(e);if(a.U[f])return a.U[f];var g=String(a.ia.length);a.ia.push([g,e]);a.U[f]=g;v(b)&&(b[a.ua]=f,a.ib.push(b));return g};if(v(b)&&a.U[b[a.ua]])return a.U[b[a.ua]];if(null===b||ra(b)||r(b)||sa(b))return c(Od(b));if(Aa(b))return c(Qd("Date",{value:Od(Math.floor(b.getTime()))}));if(b instanceof Nd)return c(b.P(function(e){return Pe(a,
e)}));if(t(b))return c({arrayValue:{values:b.map(function(e){return Pd(Pe(a,e))})}});if(v(b)&&!w(b)){var d={};Object.keys(b).sort().forEach(function(e){d[e]=Pd(Pe(a,b[e]))});return c({dictionaryValue:{values:d}})}throw Error("Can't encode object: "+b);},Re=function(a,b,c){var d=this;this.pe=a;this.values={};b.forEach(function(e){return d.values[e[0]]=e[1]});this.ke=c?Se(this):null;this.ie={};this.fd={};this.df=0},Qe=function(a){return{result:Te(a,a.pe),values:a.ie}},Te=function(a,b){if(b in a.fd)return a.fd[b];
var c=String(a.df++);a.fd[b]=c;a.ie[c]=Ue(a,a.values[b]);return c},Ue=function(a,b){var c=function(h){return void 0!==h.constantValue};if(c(b)||null!=b.integerValue||null!=b.bytesValue||null!=b.argumentReference)return b;if(null!=b.valueReference)return c=a.values[b.valueReference],null===a.ke||1===a.ke[b.valueReference]?Ue(a,c):Ve(c)?c:Pd(Te(a,b.valueReference));if(null!=b.arrayValue){var d=b.arrayValue.values.map(function(h){return Ue(a,h)});return d.every(c)?Od(d.map(function(h){return h.constantValue})):
{arrayValue:{values:d}}}if(null!=b.dictionaryValue){d={};var e={};b=n(Object.entries(b.dictionaryValue.values||{}));for(var f=b.next();!f.done;f=b.next()){var g=n(f.value);f=g.next().value;g=g.next().value;d[f]=Ue(a,g);null!==e&&c(d[f])?e[f]=d[f].constantValue:e=null}return null!==e?Od(e):{dictionaryValue:{values:d}}}if(null!=b.functionDefinitionValue)return c=b.functionDefinitionValue,Sd(c.argumentNames||[],Te(a,c.body||""));if(null!=b.functionInvocationValue){c=b.functionInvocationValue;d={};e=
n(Object.keys(c.arguments||{}));for(b=e.next();!b.done;b=e.next())b=b.value,d[b]=Ue(a,c.arguments[b]);return c.functionName?Qd(c.functionName,d):Rd(Te(a,c.functionReference||""),d)}throw Error("Can't optimize value: "+b);},Ve=function(a){var b=a.constantValue;return void 0!==b?null===b||sa(b)||ra(b):null!=a.argumentReference},Se=function(a){var b={},c=function(e){b[e]?b[e]++:(b[e]=1,d(a.values[e]))},d=function(e){null!=e.arrayValue?e.arrayValue.values.forEach(d):null!=e.dictionaryValue?Object.values(e.dictionaryValue.values).forEach(d):
null!=e.functionDefinitionValue?c(e.functionDefinitionValue.body):null!=e.functionInvocationValue?(e=e.functionInvocationValue,null!=e.functionReference&&c(e.functionReference),Object.values(e.arguments).forEach(d)):null!=e.valueReference&&c(e.valueReference)};c(a.pe);return b};var Ze=function(a){if(null==a.element)throw Error('"element" not found in params '+a);var b={expression:Me(a.element),description:We(a.description),fileExportOptions:null,assetExportOptions:null,grid:null,maxPixels:We(a.maxPixels),requestId:We(a.id)},c=Xe(a);switch(c){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":b.fileExportOptions=Ye(a,c);break;case "ASSET":c=a.pyramidingPolicy||{};try{c=JSON.parse(c)}catch(e){}var d="PYRAMIDING_POLICY_UNSPECIFIED";r(c)?(d=c,c={}):c[".default"]&&(d=c[".default"],delete c[".default"]);
b.assetExportOptions={earthEngineDestination:{name:D(a.assetId)},pyramidingPolicy:d,pyramidingPolicyOverrides:Ib(c)?null:c};break;default:throw Error('Export destination "'+c+'" unknown');}return b},cf=function(a){if(null==a.element)throw Error('"element" not found in params '+a);var b=a.selectors||null;null!=b&&r(b)&&(b=b.split(","));b={expression:Me(a.element),description:We(a.description),fileExportOptions:null,assetExportOptions:null,selectors:b,maxErrorMeters:$e(a.maxErrorMeters),requestId:We(a.id)};
var c=Xe(a);switch(c){case "GOOGLE_CLOUD_STORAGE":case "DRIVE":var d={gcsDestination:null,driveDestination:null,fileFormat:Ud(a.fileFormat)};"GOOGLE_CLOUD_STORAGE"===c?d.gcsDestination=af(a):d.driveDestination=bf(a);b.fileExportOptions=d;break;case "ASSET":b.assetExportOptions={earthEngineDestination:{name:D(a.assetId)}};break;default:throw Error('Export destination "'+c+'" unknown');}return b},ff=function(a){if(null==a.element)throw Error('"element" not found in params '+a);var b={expression:Me(a.element),
description:We(a.description),videoOptions:df(a),fileExportOptions:null,requestId:We(a.id)};b.fileExportOptions=ef(a,Xe(a));return b},hf=function(a){if(null==a.element)throw Error('"element" not found in params '+a);return{expression:Me(a.element),description:We(a.description),tileOptions:gf(a),tileExportOptions:Ye(a,"GOOGLE_CLOUD_STORAGE"),requestId:We(a.id)}},jf=function(a){if(null==a.element)throw Error('"element" not found in params '+a);return{expression:Me(a.element),description:We(a.description),
videoOptions:df(a),tileOptions:gf(a),tileExportOptions:ef(a,"GOOGLE_CLOUD_STORAGE"),requestId:We(a.id)}};function We(a){return null!=a?String(a):null}function $e(a){return null!=a?Number(a):null}
var Xe=function(a){var b="DRIVE";if(null==a)return b;null!=a.outputBucket||null!=a.outputPrefix?b="GOOGLE_CLOUD_STORAGE":null!=a.assetId&&(b="ASSET");return b},lf=function(a){var b={compress:!!a.tfrecordCompressed,maxSizeBytes:We(a.tfrecordMaxFileSize),sequenceData:!!a.tfrecordSequenceData,collapseBands:!!a.tfrecordCollapseBands,maxMaskedRatio:$e(a.tfrecordMaskedThreshold),defaultValue:$e(a.tfrecordDefaultValue),tileDimensions:kf(a.tfrecordFileDimensions),marginDimensions:kf(a.tfrecordKernelSize),
tensorDepths:null};a=a.tfrecordTensorDepths;if(null!=a)if(v(a)){var c={};zb(a,function(d,e){if(!r(e)||!sa(d))throw Error('"tensorDepths" option must be an object of type Object<string, number>');c[e]=d});b.tensorDepths=c}else throw Error('"tensorDepths" option needs to have the form Object<string, number>.');return b},Ye=function(a,b){var c={gcsDestination:null,driveDestination:null,geoTiffOptions:null,tfRecordOptions:null,fileFormat:Td(a.fileFormat)};"GEO_TIFF"===c.fileFormat?c.geoTiffOptions={cloudOptimized:!!a.tiffCloudOptimized,
skipEmptyFiles:!!a.tiffSkipEmptyFiles,tileDimensions:kf(a.tiffFileDimensions)}:"TF_RECORD_IMAGE"===c.fileFormat&&(c.tfRecordOptions=lf(a));"GOOGLE_CLOUD_STORAGE"===b?c.gcsDestination=af(a):c.driveDestination=bf(a);return c},ef=function(a,b){var c={gcsDestination:null,driveDestination:null,fileFormat:"MP4"};"GOOGLE_CLOUD_STORAGE"===b?c.gcsDestination=af(a):c.driveDestination=bf(a);return c},df=function(a){return{framesPerSecond:$e(a.framesPerSecond),maxFrames:$e(a.maxFrames),maxPixelsPerFrame:We(a.maxPixels)}},
gf=function(a){return{maxZoom:$e(a.maxZoom),scale:$e(a.scale),minZoom:$e(a.minZoom),skipEmptyTiles:!!a.skipEmptyTiles,mapsApiKey:We(a.mapsApiKey),tileDimensions:kf(a.tileDimensions)}},kf=function(a){if(null==a)return null;var b={height:0,width:0};r(a)&&(a=a.split("x").map(Number));if(t(a))if(2===a.length)b.height=a[0],b.width=a[1];else if(1===a.length)b.height=a[0],b.width=a[0];else throw Error("Unable to construct grid from dimensions: "+a);else if(v(a)&&null!=a.height&&null!=a.width)b.height=a.height,
b.width=a.width;else throw Error("Unable to construct grid from dimensions: "+a);return b},af=function(a){return{bucket:We(a.outputBucket),filenamePrefix:We(a.outputPrefix),bucketCorsUris:null,permissions:null}},bf=function(a){return{folder:We(a.driveFolder),filenamePrefix:We(a.driveFileNamePrefix)}};Object.freeze&&Object.freeze([]);var mf=function(a,b){this.Ye=100;this.Ne=a;this.kf=b;this.$b=0;this.M=null};mf.prototype.get=function(){if(0<this.$b){this.$b--;var a=this.M;this.M=a.next;a.next=null}else a=this.Ne();return a};mf.prototype.put=function(a){this.kf(a);this.$b<this.Ye&&(this.$b++,a.next=this.M,this.M=a)};var nf=function(a){p.setTimeout(function(){throw a;},0)},of,pf=function(){var a=p.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!yb("Presto")&&(a=function(){var e=document.createElement("IFRAME");e.style.display="none";qc(e);document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.write(pc());e.close();var g="callImmediate"+Math.random(),h="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;
e=x(function(k){if(("*"==h||k.origin==h)&&k.data==g)this.port1.onmessage()},this);f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,h)}}});if("undefined"!==typeof a&&!yb("Trident")&&!yb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(q(c.next)){c=c.next;var e=c.Bd;c.Bd=null;e()}};return function(e){d.next={Bd:e};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(e){var f=document.createElement("SCRIPT");f.onreadystatechange=function(){f.onreadystatechange=null;f.parentNode.removeChild(f);f=null;e();e=null};document.documentElement.appendChild(f)}:function(e){p.setTimeout(e,0)}};var qf=function(){this.tc=this.Qa=null},sf=new mf(function(){return new rf},function(a){a.reset()});qf.prototype.add=function(a,b){var c=sf.get();c.set(a,b);this.tc?this.tc.next=c:(B(!this.Qa),this.Qa=c);this.tc=c};qf.prototype.remove=function(){var a=null;this.Qa&&(a=this.Qa,this.Qa=this.Qa.next,this.Qa||(this.tc=null),a.next=null);return a};var rf=function(){this.next=this.scope=this.Nc=null};rf.prototype.set=function(a,b){this.Nc=a;this.scope=b;this.next=null};
rf.prototype.reset=function(){this.next=this.scope=this.Nc=null};var xf=function(a,b){tf||uf();vf||(tf(),vf=!0);wf.add(a,b)},tf,uf=function(){if(p.Promise&&p.Promise.resolve){var a=p.Promise.resolve(void 0);tf=function(){a.then(yf)}}else tf=function(){var b=yf;!w(p.setImmediate)||p.Window&&p.Window.prototype&&!yb("Edge")&&p.Window.prototype.setImmediate==p.setImmediate?(of||(of=pf()),of(b)):p.setImmediate(b)}},vf=!1,wf=new qf,yf=function(){for(var a;a=wf.remove();){try{a.Nc.call(a.scope)}catch(b){nf(b)}sf.put(a)}vf=!1};var zf=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Cf=function(a){this.C=0;this.T=void 0;this.Ta=this.na=this.u=null;this.Sb=this.Jc=!1;if(a!=wa)try{var b=this;a.call(void 0,function(c){Af(b,2,c)},function(c){if(!(c instanceof Bf))try{if(c instanceof Error)throw c;throw Error("Promise rejected.");}catch(d){}Af(b,3,c)})}catch(c){Af(this,3,c)}},Df=function(){this.next=this.context=this.$a=this.Ka=this.Da=null;this.Kb=!1};Df.prototype.reset=function(){this.context=this.$a=this.Ka=this.Da=null;this.Kb=!1};
var Ef=new mf(function(){return new Df},function(a){a.reset()}),Ff=function(a,b,c){var d=Ef.get();d.Ka=a;d.$a=b;d.context=c;return d};Cf.prototype.then=function(a,b,c){null!=a&&Ra(a,"opt_onFulfilled should be a function.");null!=b&&Ra(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return Gf(this,w(a)?a:null,w(b)?b:null,c)};Cf.prototype.$goog_Thenable=!0;
Cf.prototype.cancel=function(a){0==this.C&&xf(function(){var b=new Bf(a);Hf(this,b)},this)};
var Hf=function(a,b){if(0==a.C)if(a.u){var c=a.u;if(c.na){for(var d=0,e=null,f=null,g=c.na;g&&(g.Kb||(d++,g.Da==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.C&&1==d?Hf(c,b):(f?(d=f,B(c.na),B(null!=d),d.next==c.Ta&&(c.Ta=d),d.next=d.next.next):If(c),Jf(c,e,3,b)))}a.u=null}else Af(a,3,b)},Lf=function(a,b){a.na||2!=a.C&&3!=a.C||Kf(a);B(null!=b.Ka);a.Ta?a.Ta.next=b:a.na=b;a.Ta=b},Gf=function(a,b,c,d){var e=Ff(null,null,null);e.Da=new Cf(function(f,g){e.Ka=b?function(h){try{var k=b.call(d,h);f(k)}catch(m){g(m)}}:
f;e.$a=c?function(h){try{var k=c.call(d,h);!q(k)&&h instanceof Bf?g(h):f(k)}catch(m){g(m)}}:g});e.Da.u=a;Lf(a,e);return e.Da};Cf.prototype.tf=function(a){B(1==this.C);this.C=0;Af(this,2,a)};Cf.prototype.uf=function(a){B(1==this.C);this.C=0;Af(this,3,a)};
var Af=function(a,b,c){if(0==a.C){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.C=1;a:{var d=c,e=a.tf,f=a.uf;if(d instanceof Cf){null!=e&&Ra(e,"opt_onFulfilled should be a function.");null!=f&&Ra(f,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");Lf(d,Ff(e||wa,f||null,a));var g=!0}else if(zf(d))d.then(e,f,a),g=!0;else{if(v(d))try{var h=d.then;if(w(h)){Mf(d,h,e,f,a);g=!0;break a}}catch(k){f.call(a,k);g=!0;break a}g=!1}}g||
(a.T=c,a.C=b,a.u=null,Kf(a),3!=b||c instanceof Bf||Nf(a,c))}},Mf=function(a,b,c,d,e){var f=!1,g=function(k){f||(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,h)}catch(k){h(k)}},Kf=function(a){a.Jc||(a.Jc=!0,xf(a.Qe,a))},If=function(a){var b=null;a.na&&(b=a.na,a.na=b.next,b.next=null);a.na||(a.Ta=null);null!=b&&B(null!=b.Ka);return b};Cf.prototype.Qe=function(){for(var a;a=If(this);)Jf(this,a,this.C,this.T);this.Jc=!1};
var Jf=function(a,b,c,d){if(3==c&&b.$a&&!b.Kb)for(;a&&a.Sb;a=a.u)a.Sb=!1;if(b.Da)b.Da.u=null,Of(b,c,d);else try{b.Kb?b.Ka.call(b.context):Of(b,c,d)}catch(e){Pf.call(null,e)}Ef.put(b)},Of=function(a,b,c){2==b?a.Ka.call(a.context,c):a.$a&&a.$a.call(a.context,c)},Nf=function(a,b){a.Sb=!0;xf(function(){a.Sb&&Pf.call(null,b)})},Pf=nf,Bf=function(a){Ka.call(this,a)};z(Bf,Ka);Bf.prototype.name="cancel";var Qf=function(a,b,c){if(w(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:p.setTimeout(a,b||0)};var Rf=function(a,b,c){A.call(this);this.Ze=null!=c?x(a,c):a;this.Ve=b;this.Je=x(this.ff,this);this.zc=[]};z(Rf,A);l=Rf.prototype;l.gb=!1;l.Cb=0;l.Oa=null;l.Mc=function(a){this.zc=arguments;this.Oa||this.Cb?this.gb=!0:Sf(this)};l.stop=function(){this.Oa&&(p.clearTimeout(this.Oa),this.Oa=null,this.gb=!1,this.zc=[])};l.pause=function(){this.Cb++};l.resume=function(){this.Cb--;this.Cb||!this.gb||this.Oa||(this.gb=!1,Sf(this))};l.j=function(){Rf.h.j.call(this);this.stop()};
l.ff=function(){this.Oa=null;this.gb&&!this.Cb&&(this.gb=!1,Sf(this))};var Sf=function(a){a.Oa=Qf(a.Je,a.Ve);a.Ze.apply(null,a.zc)};var Tf=!zc||9<=Number(Kc),Uf=!Bc&&!zc||zc&&9<=Number(Kc)||Bc&&Jc("1.9.1");var Wf=function(a,b){zb(b,function(c,d){c&&"object"==typeof c&&c.Ia&&(c=c.Ga());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Vf.hasOwnProperty(d)?a.setAttribute(Vf[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})},Vf={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"},Yf=function(a,b,c){return Xf(document,arguments)},Xf=function(a,b){var c=String(b[0]),d=b[1];if(!Tf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',tc(d.name),'"');if(d.type){c.push(' type="',tc(d.type),'"');var e={};Nb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(r(d)?c.className=d:t(d)?c.className=d.join(" "):Wf(c,d));2<b.length&&Zf(a,c,b,2);return c},Zf=function(a,b,c,d){function e(g){g&&b.appendChild(r(g)?a.createTextNode(g):g)}for(;d<c.length;d++){var f=
c[d];!za(f)||v(f)&&0<f.nodeType?e(f):Va($f(f)?hb(f):f,e)}},ag=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},bg=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},cg=function(a){B(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},$f=function(a){if(a&&"number"==typeof a.length){if(v(a))return"function"==typeof a.item||"string"==typeof a.item;if(w(a))return"function"==typeof a.item}return!1},dg=function(a){this.Ob=a||p.document||
document};l=dg.prototype;l.getElementsByTagName=function(a,b){return(b||this.Ob).getElementsByTagName(String(a))};l.Me=function(a,b,c){return Xf(this.Ob,arguments)};l.createElement=function(a){return this.Ob.createElement(String(a))};l.createTextNode=function(a){return this.Ob.createTextNode(String(a))};l.appendChild=function(a,b){B(null!=a&&null!=b,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};l.append=function(a,b){Zf(cg(a),a,arguments,1)};
l.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};l.removeNode=ag;
l.Rd=function(){return Uf&&void 0!=(void 0).children?(void 0).children:Wa((void 0).childNodes,function(a){return 1==a.nodeType})};l.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 fg=function(a){var b=eg;this.ic=[];this.de=b;this.Gd=a||null;this.tb=this.Xa=!1;this.T=void 0;this.kd=this.wd=this.Ac=!1;this.pc=0;this.u=null;this.Bc=0};fg.prototype.cancel=function(a){if(this.Xa)this.T instanceof fg&&this.T.cancel();else{if(this.u){var b=this.u;delete this.u;a?b.cancel(a):(b.Bc--,0>=b.Bc&&b.cancel())}this.de?this.de.call(this.Gd,this):this.kd=!0;this.Xa||gg(this,new hg(this))}};fg.prototype.Cd=function(a,b){this.Ac=!1;ig(this,a,b)};
var ig=function(a,b,c){a.Xa=!0;a.T=c;a.tb=!b;jg(a)},lg=function(a){if(a.Xa){if(!a.kd)throw new kg(a);a.kd=!1}};fg.prototype.callback=function(a){lg(this);mg(a);ig(this,!0,a)};var gg=function(a,b){lg(a);mg(b);ig(a,!1,b)},mg=function(a){B(!(a instanceof fg),"An execution sequence may not be initiated with a blocking Deferred.")},ng=function(a,b,c){B(!a.wd,"Blocking Deferreds can not be re-used");a.ic.push([b,c,void 0]);a.Xa&&jg(a)};
fg.prototype.then=function(a,b,c){var d,e,f=new Cf(function(g,h){d=g;e=h});ng(this,d,function(g){g instanceof hg?f.cancel():e(g)});return f.then(a,b,c)};fg.prototype.$goog_Thenable=!0;
var og=function(a){return Ya(a.ic,function(b){return w(b[1])})},jg=function(a){if(a.pc&&a.Xa&&og(a)){var b=a.pc,c=pg[b];c&&(p.clearTimeout(c.K),delete pg[b]);a.pc=0}a.u&&(a.u.Bc--,delete a.u);b=a.T;for(var d=c=!1;a.ic.length&&!a.Ac;){var e=a.ic.shift(),f=e[0],g=e[1];e=e[2];if(f=a.tb?g:f)try{var h=f.call(e||a.Gd,b);q(h)&&(a.tb=a.tb&&(h==b||h instanceof Error),a.T=b=h);if(zf(b)||"function"===typeof p.Promise&&b instanceof p.Promise)d=!0,a.Ac=!0}catch(k){b=k,a.tb=!0,og(a)||(c=!0)}}a.T=b;d&&(h=x(a.Cd,
a,!0),d=x(a.Cd,a,!1),b instanceof fg?(ng(b,h,d),b.wd=!0):b.then(h,d));c&&(b=new qg(b),pg[b.K]=b,a.pc=b.K)},kg=function(){Ka.call(this)};z(kg,Ka);kg.prototype.message="Deferred has already fired";kg.prototype.name="AlreadyCalledError";var hg=function(){Ka.call(this)};z(hg,Ka);hg.prototype.message="Deferred was canceled";hg.prototype.name="CanceledError";var qg=function(a){this.K=p.setTimeout(x(this.sf,this),0);this.Qb=a};
qg.prototype.sf=function(){B(pg[this.K],"Cannot throw an error that is not scheduled.");delete pg[this.K];throw this.Qb;};var pg={};var ug=function(a){var b={},c=b.document||document,d=Yb(a).toString(),e=document.createElement("SCRIPT"),f={qe:e,Gb:void 0},g=new fg(f),h=null,k=null!=b.timeout?b.timeout:5E3;0<k&&(h=window.setTimeout(function(){rg(e,!0);gg(g,new sg(1,"Timeout reached for loading script "+d))},k),f.Gb=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(rg(e,b.Cf||!1,h),g.callback(null))};e.onerror=function(){rg(e,!0,h);gg(g,new sg(0,"Error while loading script "+
d))};f=b.attributes||{};Nb(f,{type:"text/javascript",charset:"UTF-8"});Wf(e,f);rc(e,a);tg(c).appendChild(e)},tg=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},eg=function(){if(this&&this.qe){var a=this.qe;a&&"SCRIPT"==a.tagName&&rg(a,!0,this.Gb)}},rg=function(a,b,c){null!=c&&p.clearTimeout(c);a.onload=wa;a.onerror=wa;a.onreadystatechange=wa;b&&window.setTimeout(function(){ag(a)},0)},sg=function(a,b){var c="Jsloader error (code #"+a+")";
b&&(c+=": "+b);Ka.call(this,c);this.code=a};z(sg,Ka);var vg=function(a,b,c){this.reset(a,b,c,void 0,void 0)};vg.prototype.Jd=null;var wg=0;vg.prototype.reset=function(a,b,c,d,e){"number"==typeof e||wg++;d||Ha();this.xb=a;delete this.Jd};vg.prototype.se=function(a){this.xb=a};var xg=function(a){this.ce=a;this.Ud=this.Cc=this.xb=this.u=null},yg=function(a,b){this.name=a;this.value=b};yg.prototype.toString=function(){return this.name};var zg=new yg("SEVERE",1E3),Ag=new yg("INFO",800),Bg=new yg("CONFIG",700),Cg=new yg("FINE",500);xg.prototype.getName=function(){return this.ce};xg.prototype.getParent=function(){return this.u};xg.prototype.Rd=function(){this.Cc||(this.Cc={});return this.Cc};xg.prototype.se=function(a){this.xb=a};
var Dg=function(a){if(a.xb)return a.xb;if(a.u)return Dg(a.u);Oa("Root logger has no level set.");return null};xg.prototype.log=function(a,b,c){if(a.value>=Dg(this).value)for(w(b)&&(b=b()),a=new vg(a,String(b),this.ce),c&&(a.Jd=c),c=this;c;){var d=c,e=a;if(d.Ud)for(var f=0;b=d.Ud[f];f++)b(e);c=c.getParent()}};xg.prototype.info=function(a,b){this.log(Ag,a,b)};
var Eg={},Fg=null,Gg=function(a){Fg||(Fg=new xg(""),Eg[""]=Fg,Fg.se(Bg));var b;if(!(b=Eg[a])){b=new xg(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Gg(a.substr(0,c));c.Rd()[d]=b;b.u=c;Eg[a]=b}return b};var Hg=function(a,b){a&&a.log(Cg,b,void 0)};var Ig=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Jg=function(){};Jg.prototype.Ad=null;Jg.prototype.sb=function(){var a;(a=this.Ad)||(a={},Kg(this)&&(a[0]=!0,a[1]=!0),a=this.Ad=a);return a};var Lg=function(a,b){this.wf=a;this.gf=b};z(Lg,Jg);Lg.prototype.Ec=function(){return this.wf()};Lg.prototype.sb=function(){return this.gf()};var Mg=function(){return Mg.Kd.Ec()};Mg.ze=!1;Mg.sb=function(){return Mg.Kd.sb()};Mg.Ef=function(a,b){Mg.re(new Lg(B(a),B(b)))};Mg.re=function(a){Mg.Kd=a};var Ng=function(){};z(Ng,Jg);Ng.prototype.Ec=function(){var a=Kg(this);return a?new ActiveXObject(a):new XMLHttpRequest};
var Kg=function(a){if(Mg.ze)return"";if(!a.Vd&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.Vd=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.Vd};Mg.re(new Ng);var Og=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Pg=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){C.call(this);this.headers=new vd;this.vc=a||null;this.Y=!1;this.uc=this.a=null;this.wb=this.$d=this.Xb="";this.Ja=this.Uc=this.Vb=this.Ic=!1;this.hb=0;this.lc=null;this.fb="";this.rc=this.hf=this.xe=!1};z(E,C);var Qg=E.prototype,Rg=Gg("goog.net.XhrIo");Qg.N=Rg;var Sg=/^https?$/i,Tg=["POST","PUT"],Ug=[];E.prototype.Le=function(){this.ea();fb(Ug,this)};
E.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Xb+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Xb=a;this.wb="";this.$d=b;this.Ic=!1;this.Y=!0;this.a=this.vc?this.vc.Ec():Mg();this.uc=this.vc?this.vc.sb():Mg.sb();this.a.onreadystatechange=x(this.he,this);this.hf&&"onprogress"in this.a&&(this.a.onprogress=x(function(f){this.ge(f,!0)},this),this.a.upload&&(this.a.upload.onprogress=x(this.ge,this)));try{Hg(this.N,Vg(this,"Opening Xhr")),
this.Uc=!0,this.a.open(b,String(a),!0),this.Uc=!1}catch(f){Hg(this.N,Vg(this,"Error opening Xhr: "+f.message));this.Qb(5,f);return}a=c||"";var e=this.headers.clone();d&&Cd(d,function(f,g){e.set(g,f)});d=bb(e.ba());c=p.FormData&&a instanceof p.FormData;!cb(Tg,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(f,g){this.a.setRequestHeader(g,f)},this);this.fb&&(this.a.responseType=this.fb);"withCredentials"in this.a&&this.a.withCredentials!==this.xe&&
(this.a.withCredentials=this.xe);try{Wg(this),0<this.hb&&(this.rc=Xg(this.a),Hg(this.N,Vg(this,"Will abort after "+this.hb+"ms if incomplete, xhr2 "+this.rc)),this.rc?(this.a.timeout=this.hb,this.a.ontimeout=x(this.Gb,this)):this.lc=Qf(this.Gb,this.hb,this)),Hg(this.N,Vg(this,"Sending request")),this.Vb=!0,this.a.send(a),this.Vb=!1}catch(f){Hg(this.N,Vg(this,"Send error: "+f.message)),this.Qb(5,f)}};
var Xg=function(a){return zc&&Jc(9)&&sa(a.timeout)&&q(a.ontimeout)},ab=function(a){return"content-type"==a.toLowerCase()};E.prototype.Gb=function(){"undefined"!=typeof qa&&this.a&&(this.wb="Timed out after "+this.hb+"ms, aborting",Hg(this.N,Vg(this,this.wb)),this.dispatchEvent("timeout"),this.abort(8))};E.prototype.Qb=function(a,b){this.Y=!1;this.a&&(this.Ja=!0,this.a.abort(),this.Ja=!1);this.wb=b;Yg(this);Zg(this)};var Yg=function(a){a.Ic||(a.Ic=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
E.prototype.abort=function(){this.a&&this.Y&&(Hg(this.N,Vg(this,"Aborting")),this.Y=!1,this.Ja=!0,this.a.abort(),this.Ja=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Zg(this))};E.prototype.j=function(){this.a&&(this.Y&&(this.Y=!1,this.Ja=!0,this.a.abort(),this.Ja=!1),Zg(this,!0));E.h.j.call(this)};E.prototype.he=function(){this.fa||(this.Uc||this.Vb||this.Ja?$g(this):this.ef())};E.prototype.ef=function(){$g(this)};
var $g=function(a){if(a.Y&&"undefined"!=typeof qa)if(a.uc[1]&&4==a.xa()&&2==a.getStatus())Hg(a.N,Vg(a,"Local request error detected and ignored"));else if(a.Vb&&4==a.xa())Qf(a.he,0,a);else if(a.dispatchEvent("readystatechange"),4==a.xa()){Hg(a.N,Vg(a,"Request complete"));a.Y=!1;try{var b=a.getStatus(),c;if(!(c=Ig(b))){var d;if(d=0===b){var e=String(a.Xb).match(Og)[1]||null;if(!e&&p.self&&p.self.location){var f=p.self.location.protocol;e=f.substr(0,f.length-1)}d=!Sg.test(e?e.toLowerCase():"")}c=d}if(c)a.dispatchEvent("complete"),
a.dispatchEvent("success");else{try{var g=2<a.xa()?a.a.statusText:""}catch(h){Hg(a.N,"Can not get status: "+h.message),g=""}a.wb=g+" ["+a.getStatus()+"]";Yg(a)}}finally{Zg(a)}}};E.prototype.ge=function(a,b){B("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(ah(a,"progress"));this.dispatchEvent(ah(a,b?"downloadprogress":"uploadprogress"))};
var ah=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},Zg=function(a,b){if(a.a){Wg(a);var c=a.a,d=a.uc[0]?wa:null;a.a=null;a.uc=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.N)&&a.log(zg,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},Wg=function(a){a.a&&a.rc&&(a.a.ontimeout=null);a.lc&&(p.clearTimeout(a.lc),a.lc=null)};E.prototype.Xd=function(){return!!this.a};
E.prototype.xa=function(){return this.a?this.a.readyState:0};E.prototype.getStatus=function(){try{return 2<this.xa()?this.a.status:-1}catch(a){return-1}};
var bh=function(a){try{if(!a.a)return null;if("response"in a.a)return a.a.response;switch(a.fb){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(zg,"Response type "+a.fb+" is not supported on this browser",void 0);return null}catch(c){return Hg(a.N,"Can not get response: "+c.message),null}};
E.prototype.getResponseHeader=function(a){if(this.a&&4==this.xa())return a=this.a.getResponseHeader(a),null===a?void 0:a};E.prototype.getAllResponseHeaders=function(){return this.a&&4==this.xa()?this.a.getAllResponseHeaders()||"":""};
var ch=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=uc(a[c]),e=d[0];d=d[1];if(r(d)){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Bb(b,function(g){return g.join(", ")})},Vg=function(a,b){return b+" ["+a.$d+" "+a.Xb+" "+a.getStatus()+"]"};var dh=function(a,b){this.oa=this.Pa=this.za="";this.bb=null;this.Ea=this.ra="";this.V=this.We=!1;if(a instanceof dh){this.V=q(b)?b:a.V;eh(this,a.za);var c=a.Pa;fh(this);this.Pa=c;c=a.oa;fh(this);this.oa=c;gh(this,a.bb);this.setPath(a.getPath());hh(this,a.X.clone());a=a.Ea;fh(this);this.Ea=a}else a&&(c=String(a).match(Og))?(this.V=!!b,eh(this,c[1]||"",!0),a=c[2]||"",fh(this),this.Pa=ih(a),a=c[3]||"",fh(this),this.oa=ih(a,!0),gh(this,c[4]),this.setPath(c[5]||"",!0),hh(this,c[6]||"",!0),a=c[7]||"",
fh(this),this.Ea=ih(a)):(this.V=!!b,this.X=new jh(null,this.V))};
dh.prototype.toString=function(){var a=[],b=this.za;b&&a.push(kh(b,lh,!0),":");var c=this.oa;if(c||"file"==b)a.push("//"),(b=this.Pa)&&a.push(kh(b,lh,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.bb,null!=c&&a.push(":",String(c));if(c=this.getPath())this.oa&&"/"!=c.charAt(0)&&a.push("/"),a.push(kh(c,"/"==c.charAt(0)?mh:nh,!0));(c=this.X.toString())&&a.push("?",c);(c=this.Ea)&&a.push("#",kh(c,oh));return a.join("")};
dh.prototype.resolve=function(a){var b=this.clone(),c=!!a.za;c?eh(b,a.za):c=!!a.Pa;if(c){var d=a.Pa;fh(b);b.Pa=d}else c=!!a.oa;c?(d=a.oa,fh(b),b.oa=d):c=null!=a.bb;d=a.getPath();if(c)gh(b,a.bb);else if(c=!!a.ra){if("/"!=d.charAt(0))if(this.oa&&!this.ra)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 h=e[g++];
"."==h?d&&g==e.length&&f.push(""):".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=""!==a.X.toString();c?hh(b,a.X.clone()):c=!!a.Ea;c&&(a=a.Ea,fh(b),b.Ea=a);return b};dh.prototype.clone=function(){return new dh(this)};var eh=function(a,b,c){fh(a);a.za=c?ih(b,!0):b;a.za&&(a.za=a.za.replace(/:$/,""))},gh=function(a,b){fh(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.bb=b}else a.bb=null};
dh.prototype.getPath=function(){return this.ra};dh.prototype.setPath=function(a,b){fh(this);this.ra=b?ih(a,!0):a;return this};var hh=function(a,b,c){fh(a);b instanceof jh?(a.X=b,a.X.jd(a.V)):(c||(b=kh(b,ph)),a.X=new jh(b,a.V))};dh.prototype.getQuery=function(){return this.X.toString()};dh.prototype.removeParameter=function(a){fh(this);this.X.remove(a);return this};var fh=function(a){if(a.We)throw Error("Tried to modify a read-only Uri");};dh.prototype.jd=function(a){this.V=a;this.X&&this.X.jd(a)};
var qh=function(a){return a instanceof dh?a.clone():new dh(a,void 0)},ih=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},kh=function(a,b,c){return r(a)?(a=encodeURI(a).replace(b,rh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},rh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},lh=/[#\/\?@]/g,nh=/[#\?:]/g,mh=/[#\?]/g,ph=/[#\?@]/g,oh=/#/g,jh=function(a,b){this.m=this.s=null;this.R=a||null;this.V=!!b},sh=function(a){a.s||
(a.s=new vd,a.m=0,a.R&&Pg(a.R,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};l=jh.prototype;l.o=function(){sh(this);return this.m};l.add=function(a,b){sh(this);this.R=null;a=th(this,a);var c=this.s.get(a);c||this.s.set(a,c=[]);c.push(b);this.m=Pa(this.m)+1;return this};l.remove=function(a){sh(this);a=th(this,a);return this.s.wa(a)?(this.R=null,this.m=Pa(this.m)-this.s.get(a).length,this.s.remove(a)):!1};l.clear=function(){this.s=this.R=null;this.m=0};
l.isEmpty=function(){sh(this);return 0==this.m};l.wa=function(a){sh(this);a=th(this,a);return this.s.wa(a)};l.lb=function(a){var b=this.w();return cb(b,a)};l.forEach=function(a,b){sh(this);this.s.forEach(function(c,d){Va(c,function(e){a.call(b,e,d,this)},this)},this)};l.ba=function(){sh(this);for(var a=this.s.w(),b=this.s.ba(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
l.w=function(a){sh(this);var b=[];if(r(a))this.wa(a)&&(b=gb(b,this.s.get(th(this,a))));else{a=this.s.w();for(var c=0;c<a.length;c++)b=gb(b,a[c])}return b};l.set=function(a,b){sh(this);this.R=null;a=th(this,a);this.wa(a)&&(this.m=Pa(this.m)-this.s.get(a).length);this.s.set(a,[b]);this.m=Pa(this.m)+1;return this};l.get=function(a,b){if(!a)return b;a=this.w(a);return 0<a.length?String(a[0]):b};
l.setValues=function(a,b){this.remove(a);0<b.length&&(this.R=null,this.s.set(th(this,a),hb(b)),this.m=Pa(this.m)+b.length)};l.toString=function(){if(this.R)return this.R;if(!this.s)return"";for(var a=[],b=this.s.ba(),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.R=a.join("&")};
l.clone=function(){var a=new jh;a.R=this.R;this.s&&(a.s=this.s.clone(),a.m=this.m);return a};var th=function(a,b){b=String(b);a.V&&(b=b.toLowerCase());return b};jh.prototype.jd=function(a){a&&!this.V&&(sh(this),this.R=null,this.s.forEach(function(b,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.setValues(d,b))},this));this.V=a};jh.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Cd(arguments[b],function(c,d){this.add(d,c)},this)};var uh,Bh=function(a,b,c,d,e){var f=["https://www.googleapis.com/auth/earthengine"];d&&(ib(f,d),kb(f));vh=a;wh=f;null===a?xh=null:yh(function(){zh(b,c,e||Ga(Ah,b,c))})};y("ee.data.authenticateViaOauth",Bh);var Ch=function(a,b,c,d,e){Bh(a,b,c,d,e)};y("ee.data.authenticate",Ch);var Ah=function(a,b){p.gapi.auth.authorize({client_id:vh,immediate:!1,scope:wh.join(" ")},Ga(Dh,a,b))};y("ee.data.authenticateViaPopup",Ah);
var Fh=function(a,b,c,d){if("window"in p)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&&(ib(e,d),kb(e));vh=a.client_email;wh=e;var f=new googleapis.auth.JWT(a.client_email,null,a.private_key,e,null);Eh=function(g,h){f.authorize(function(k,m){k?h({error:k}):h({access_token:m.access_token,token_type:m.token_type,expires_in:(m.expiry_date-
Date.now())/1E3})})};zh(b,c)};y("ee.data.authenticateViaPrivateKey",Fh);var Gh=[],Ih=function(a){Hh=a};y("ee.data.setApiKey",Ih);Gh.push("setApiKey");var Jh=function(a){uh=a};y("ee.data.setProject",Jh);Gh.push("setProject");Gh.push("getProject");var Kh=function(){return"projects/"+uh},Lh=function(a){if(a&&!va("gapi"))throw Error('Cloud API requires <script src="https://apis.google.com/js/api.js">');F=a};y("ee.data.setCloudApiEnabled",Lh);Gh.push("setCloudApiEnabled");var Mh=function(){return F};
y("ee.data.getCloudApiEnabled",Mh);Gh.push("getCloudApiEnabled");var Nh=function(a,b,c,d,e,f,g){var h=["https://www.googleapis.com/auth/earthengine"];e&&(ib(h,e),kb(h));vh=a;wh=h;var k={token_type:b,access_token:c,state:h.join(" "),expires_in:d};Dh(void 0,void 0,k);!1===g?f&&f():yh(function(){p.gapi.auth.setToken(k);f&&f()})};y("ee.data.setAuthToken",Nh);
var zh=function(a,b,c){Eh&&vh&&Eh({client_id:String(vh),immediate:!0,scope:wh.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Dh(a,b,d)})},Oh=function(a){Eh=a};y("ee.data.setAuthTokenRefresher",Oh);var Rh=function(){Ph&&0<=Ha()-Ph&&Qh();return xh};y("ee.data.getAuthToken",Rh);var Qh=function(){Ph=xh=null};y("ee.data.clearAuthToken",Qh);var Sh=function(){return vh};y("ee.data.getAuthClientId",Sh);var Th=function(){return wh};y("ee.data.getAuthScopes",Th);
var $h=function(a,b,c){null!=a?Uh=a:Vh||(Uh="https://earthengine.googleapis.com/api");null!=b?Wh=b:Vh||(Wh="https://earthengine.googleapis.com");q(c)&&(Xh=c);!F||Yh&&null==a||(Yh=new Promise(function(d,e){gapi.load("client",{callback:function(){var f=Object.assign({},Md,{rootUrl:Uh.replace(/\/api$/,"")});gapi.client.init({apiKey:Hh,discoveryDocs:[f]}).then(function(){Zh=!0;gapi.config.update("client/headers/request",["X-Earth-Engine-Computation-Profiling"]);d()})},onerror:e})}),uh="earthengine-legacy");
Vh=!0},G=function(a,b,c){$h();var d=ai?function(){var g=a();bi(g)["X-Earth-Engine-Computation-Profiling"]="1";return g}:a;if(c){var e=function(g){return ci(g.status,function(h){return g.headers[h.toLowerCase()]},g.body,null,c,b||Pb)};Yh.then(function(){d().then(e,e)});return null}if(!Zh)throw Error("Cloud API not ready");var f=di(function(){d().then(function(){return null},function(){return null})});return ci(f.status,function(g){try{return f.getResponseHeader(g)}catch(h){return null}},f.responseText,
null,void 0,b||Pb)},bi=function(a){var b=function(d){return v(d)&&v(d.headers)},c=[];Object.values(a).filter(v).forEach(function(d){ib(c,Object.values(d).filter(b))});if(1===c.length)return c[0].headers;console.error("NO HEADERS:",a);throw Error("Incompatible GAPI version: cannot find headers");},di=function(a){if(XMLHttpRequest.prototype.wc)throw Error("Cannot initialize synchronous request mode");var b=function(){this.ka=new this.wc;XMLHttpRequest.Xe=this.ka};b.prototype.open=function(c,d,e,f,g){this.ka.open(c,
d,!1,f,g)};b.prototype.send=function(c){this.ka.send(c)};b.prototype.abort=function(){this.ka.abort()};b.prototype.overrideMimeType=function(c){this.ka.overrideMimeType(c)};b.prototype.setRequestHeader=function(c,d){this.ka.setRequestHeader(c,d)};b.prototype.getResponseHeader=function(c){return this.ka.getResponseHeader(c)};b.prototype.getAllResponseHeaders=function(){return this.ka.getAllResponseHeaders()};"onabort onerror onload onloadstart onloadend onprogress onreadystatechange readyState responseText responseType responseXML status statusText upload withCredentials DONE UNSENT HEADERS_RECEIVED LOADING OPENED".split(" ").forEach(function(c){return Object.defineProperty(b.prototype,
c,{get:function(){return this.ka[c]},set:function(d){this.ka[c]=d}})});b.prototype.wc=XMLHttpRequest;XMLHttpRequest=b;try{return a(),XMLHttpRequest.Xe}finally{XMLHttpRequest=XMLHttpRequest.prototype.wc}},fi=function(a){ei=a};y("ee.data.setDeadline",fi);var hi=function(a){gi=a||Pb};y("ee.data.setParamAugmenter",hi);var ji=function(a){ii=a||Pb};y("ee.data.setExpressionAugmenter",ji);var ki=function(){return Uh};y("ee.data.getApiBaseUrl",ki);var li=function(){return Wh};y("ee.data.getTileBaseUrl",li);
var mi=function(){return Xh};y("ee.data.getXsrfToken",mi);
var ni=function(a){if(F){var b={prettyPrint:!1,project:Kh()};return G(function(){return gapi.client.earthengine.projects.algorithms.list(b)},Zd,a)}var c=H("/algorithms",null,a,"GET");return a?null:c},pi=function(a,b){if(F){if(r(a.image))throw Error("Image as JSON string not supported.");if(q(a.version))throw Error("Image version specification not supported.");var c={name:null,expression:ii(Me(a.image)),fileFormat:Td(a.format),bandIds:Vd(a.bands),visualizationOptions:Yd(a)},d=Kh(),e=["name"];return G(function(){return gapi.client.earthengine.projects.maps.create({parent:d,
Ld:e},c)},function(g){return oi(g.name,"","/v1alpha/{}/tiles",Hh?"?key="+Hh:"")},b)}a=Kb(a);r(a.image)||(a.image=a.image.B());var f=function(g){return oi(g.mapid,g.token,"/map/{}","?token={}")};return b?(H("/mapid",J(a),function(g,h){return b(g&&f(g),h)}),null):f(H("/mapid",J(a)))};y("ee.data.getMapId",pi);var qi=function(a,b,c,d){return a.formatTileUrl(b,c,d)};y("ee.data.getTileUrl",qi);
var oi=function(a,b,c,d){c=Wh+c.replace("{}",a);d=d.replace("{}",b);return{mapid:a,token:b,formatTileUrl:function(e,f,g){var h=Math.pow(2,g);e%=h;0>e&&(e+=h);return[c,g,e,f].join("/")+d}}},ri=function(a,b){a=Kb(a);return H("/value",J(a),b)};y("ee.data.getValue",ri);
var si=function(a,b){if(F){var c=Kh(),d=ii(Me(a));return G(function(){return gapi.client.earthengine.projects.value.compute({project:c},{expression:d})},function(e){return e.result},b)}a={json:He(a)};return H("/value",J(a),b)},ti=function(a,b){if(F){if(r(a.image))throw Error("Image as JSON string not supported.");if(q(a.version))throw Error("Image version specification not supported.");if(q(a.region))throw Error('"region" not supported in call to ee.data.getThumbId. Use ee.Image.getThumbURL.');var c=
{name:null,expression:ii(Me(a.image)),fileFormat:Td(a.format),bandIds:Vd(a.bands),visualizationOptions:Yd(a),grid:null},d=Kh(),e=["name"];return G(function(){return gapi.client.earthengine.projects.thumbnails.create({parent:d,Ld:e},c)},function(f){return{thumbid:f.name,token:""}},b)}a=Kb(a);r(a.image)||(a.image=a.image.B());t(a.dimensions)&&(a.dimensions=a.dimensions.join("x"));a=J(a).add("getid","1");return H("/thumb",a,b)};y("ee.data.getThumbId",ti);
var ui=function(a){return F?Wh+"/v1alpha/"+a.thumbid+":getPixels"+(Hh?"?key="+Hh:""):Wh+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};y("ee.data.makeThumbUrl",ui);var vi=function(a,b){a=Kb(a);return H("/download",J(a),b)};y("ee.data.getDownloadId",vi);var wi=function(a){return Wh+"/api/download?docid="+a.docid+"&token="+a.token};y("ee.data.makeDownloadUrl",wi);var xi=function(a,b){a=Kb(a);return H("/table",J(a),b)};y("ee.data.getTableDownloadId",xi);
var yi=function(a){return Wh+"/api/table?docid="+a.docid+"&token="+a.token};y("ee.data.makeTableDownloadUrl",yi);var zi=function(a,b,c){var d=ai;try{return ai=a,b.call(c)}finally{ai=d}};y("ee.data.withProfiling",zi);
var Ai=function(a,b){if(F){var c=function(e){return Math.floor(Math.random()*Math.pow(2,4*e)).toString(16).padStart(e,"0")};a=lb(a||1).map(function(){return[c(8),c(4),"4"+c(3),(8+Math.floor(4*Math.random())).toString(16)+c(3),c(12)].join("-")});return b?b(a):a}var d={};sa(a)&&(d.count=a);return H("/newtaskid",J(d),b)};y("ee.data.newTaskId",Ai);
var Di=function(a,b){if(F){var c=function(e){return gapi.client.earthengine.projects.operations.get({name:ne(e)})};return G(function(){return Bi(a,c)},function(e){return 1===a.length?oe(e):a.map(function(f){return oe(e[f])})},b)}var d="/taskstatus?q="+Ci(a).join();return H(d,null,b,"GET")};y("ee.data.getTaskStatus",Di);var Ci=function(a){if(r(a))return[a];if(t(a))return a;throw Error("Invalid value: expected a string or an array of strings.");},Fi=function(a){return Ei(void 0,a)};
y("ee.data.getTaskList",Fi);
var Ei=function(a,b){function c(h){var k={pagesize:500};a&&(k.pagesize=Math.min(k.pagesize,a-e.tasks.length));h&&(k.pagetoken=h);return k}function d(h,k){k=c(k);H("/tasklist",J(k),function(m,u){u?h(e,u):(ib(e.tasks,m.tasks),!m.next_page_token||a&&e.tasks.length>=a?h(e):d(h,m.next_page_token))},"GET")}if(F)return b?(Gi(a,function(h,k){return b(h?{tasks:h.map(oe)}:null,k)}),null):{tasks:Gi(a).map(oe)};var e={tasks:[]};if(b)return d(b),null;for(var f="";;){f=c(f);var g=H("/tasklist",J(f),void 0,"GET");
ib(e.tasks,g.tasks);f=g.next_page_token;if(!g.next_page_token||a&&e.tasks.length>=a)break}return e};y("ee.data.getTaskListWithLimit",Ei);
var Gi=function(a,b){var c=[],d={name:Kh(),pageSize:500,filter:null,pageToken:null},e=function(){return gapi.client.earthengine.projects.operations.list(d)},f=b?function(){return 0}:void 0,g=function(h){ib(c,h.operations||[]);!h.nextPageToken||a&&c.length>=a?b&&b(a?c.slice(0,a):c):(d.pageToken=h.nextPageToken,G(e,g,f));return null};G(e,g,f);return b?null:a?c.slice(0,a):c};Gh.push("listOperations");
var Hi=function(a,b){var c=function(d){return gapi.client.earthengine.projects.operations.cancel({name:d})};G(function(){return Bi(a,c)},null,b)};y("ee.data.cancelOperation",Hi);Gh.push("cancelOperation");var Ii=function(a,b){var c=function(d){return gapi.client.earthengine.projects.operations.get({name:ne(d)})};return G(function(){return Bi(a,c)},null,b)};y("ee.data.getOperation",Ii);Gh.push("getOperation");
var Bi=function(a,b){a=Ci(a);if(1===a.length)return b(a[0]);var c=gapi.client.newBatch();a.forEach(function(d){c.add(b(d),{id:d})});return c},Ki=function(a,b){return Ji(a,"CANCEL",b)};y("ee.data.cancelTask",Ki);var Ji=function(a,b,c){if(!Fb(Li,b))throw Error("Invalid action: "+b);a=Ci(a);return F?(a=a.map(ne),Hi(a,c),null):H("/updatetask",J({id:a,action:b}),c,"POST")};y("ee.data.updateTask",Ji);
var Mi=function(a,b,c){if(F){b.id=a;a=b.type;var d={project:Kh()};switch(a){case "EXPORT_IMAGE":var e=Ze(b);e.expression=ii(e.expression);b=function(){return gapi.client.earthengine.projects.image["export"](d,e)};break;case "EXPORT_FEATURES":var f=cf(b);f.expression=ii(f.expression);b=function(){return gapi.client.earthengine.projects.table["export"](d,f)};break;case "EXPORT_VIDEO":var g=ff(b);g.expression=ii(g.expression);b=function(){return gapi.client.earthengine.projects.video["export"](d,g)};
break;case "EXPORT_TILES":var h=hf(b);h.expression=ii(h.expression);b=function(){return gapi.client.earthengine.projects.map["export"](d,h)};break;case "EXPORT_VIDEO_MAP":var k=jf(b);k.expression=ii(k.expression);b=function(){return gapi.client.earthengine.projects.videoMap["export"](d,k)};break;default:throw Error("Unable to start processing for task of type "+a);}return G(b,function(m){return pe(m)},c)}b=Kb(b);null!=b.element&&(b.json=b.element.B(),delete b.element);b.id=a;return H("/processingrequest",
J(b),c)};y("ee.data.startProcessing",Mi);var Oi=function(a,b,c){if(F){b=re(b);var d=function(e){return e?pe(e):null};return d(Ni(a,b,c&&function(e,f){return c(d(e),f)}))}a={id:a,request:xe(b)};return H("/ingestionrequest",J(a),c)};y("ee.data.startIngestion",Oi);
var Ni=function(a,b,c){var d={project:Kh()},e={imageManifest:b,requestId:a,overwrite:!1,description:null};return G(function(){return gapi.client.earthengine.projects.image["import"](d,e)},null,c)},Pi=function(a,b,c){var d={project:Kh()},e={tableManifest:b,requestId:a,overwrite:!1,description:null};return G(function(){return gapi.client.earthengine.projects.table["import"](d,e)},null,c)},Qi=function(a,b,c){if(F){b=se(b);var d=function(e){return e?pe(e):null};return d(Pi(a,b,c&&function(e,f){return c(d(e),
f)}))}a={id:a,tableRequest:xe(b)};return H("/ingestionrequest",J(a),c)};y("ee.data.startTableIngestion",Qi);var Ri=function(a,b){if(F){var c={name:D(a),prettyPrint:!1};return G(function(){return gapi.client.earthengine.projects.assets.get(c)},ce,b)}return H("/info",(new jh).add("id",a),b)};y("ee.data.getAsset",Ri);Gh.push("getAsset");y("ee.data.getInfo",Ri);
var Si=function(a,b){if(F){if(Object.keys(a).every(function(e){return"id"===e||"num"===e})){var c=be(a);return G(function(){return gapi.client.earthengine.projects.assets.listAssets(c)},de,b)}var d=ke(a);return G(function(){return gapi.client.earthengine.projects.assets.listImages({Ld:"assets(type,path)"},d)},ge,b)}a=J(a);return H("/list",a,b)};y("ee.data.getList",Si);var Ti=function(a,b){return G(function(){return gapi.client.earthengine.projects.listAssets(a)},null,b)};y("ee.data.listAssets",Ti);
Gh.push("listAssets");var Ui=function(a,b){return G(function(){return gapi.client.earthengine.projects.assets.listImages(a)},null,b)};y("ee.data.listImages",Ui);Gh.push("listImages");var Vi=function(a){var b={parent:Kh(),pageSize:null,pageToken:null};return G(function(){return gapi.client.earthengine.projects.listAssets(b)},null,a)};y("ee.data.listBuckets",Vi);Gh.push("listBuckets");
var Wi=function(a){if(F){var b={parent:Kh(),pageSize:null,pageToken:null};return G(function(){return gapi.client.earthengine.projects.listAssets(b)},de,a)}return H("/buckets",null,a,"GET")};y("ee.data.getAssetRoots",Wi);var Xi=function(a,b){if(F){var c={parent:$d(a),type:"Folder",name:D(a)};G(function(){return gapi.client.earthengine.projects.assets.create(c)},null,b)}else a=J({id:a}),H("/createbucket",a,b)};y("ee.data.createAssetHome",Xi);
var Yi=function(a,b,c,d,e){if(F){if(c)throw Error("Asset overwrite not supported.");if(r(a))throw Error("Asset cannot be specified as string.");b=a.name||b&&D(b);if(!b)throw Error("Either asset name or opt_path must be specified.");var f=b.indexOf("/assets/");if(-1===f)throw Error("Asset name must contain /assets/.");var g=Object.assign({},a);delete g.name;d&&!g.properties&&(g.properties=d);g.type=ae(g.type);var h={parent:b.slice(0,f),assetId:b.slice(f+8),overwrite:c||!1};return G(function(){return gapi.client.earthengine.projects.assets.create(h,
g)},null,e)}r(a)||(a=xe(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=xe(d));return H("/create",J(a),e)};y("ee.data.createAsset",Yi);var Zi=function(a,b,c){if(F){var d={parent:$d(a),type:"Folder",name:D(a)};return G(function(){return gapi.client.earthengine.projects.assets.create(d)},null,c)}return H("/createfolder",J({id:a,force:b||!1}),c)};y("ee.data.createFolder",Zi);
var $i=function(a,b,c){if(F){var d={sourceName:D(a),destinationName:D(b),sourcePath:null,destinationPath:null};G(function(){return gapi.client.earthengine.projects.assets.move(d)},null,c)}else H("/rename",J({sourceId:a,destinationId:b}),c)};y("ee.data.renameAsset",$i);
var aj=function(a,b,c){if(F){var d={sourceName:D(a),destinationName:D(b),overwrite:!1,sourcePath:null,destinationPath:null,bandIds:null};G(function(){return gapi.client.earthengine.projects.assets.copy(d)},null,c)}else H("/copy",J({sourceId:a,destinationId:b}),c)};y("ee.data.copyAsset",aj);var bj=function(a,b){if(F){var c={name:D(a)};G(function(){return gapi.client.earthengine.projects.assets["delete"](c)},null,b)}else H("/delete",J({id:a}),b)};y("ee.data.deleteAsset",bj);
var cj=function(a,b){if(F){var c={resource:D(a),prettyPrint:!1};return G(function(){return gapi.client.earthengine.projects.assets.getIamPolicy(c)},le,b)}return H("/getacl",J({id:a}),b,"GET")};y("ee.data.getAssetAcl",cj);var dj=function(a,b,c,d){var e={name:D(a),asset:b,updateMask:{paths:c||[]}};G(function(){return gapi.client.earthengine.projects.assets.patch(e)},null,d)};y("ee.data.updateAsset",dj);
var ej=function(a,b,c){if(F){var d={resource:D(a),policy:me(b),prettyPrint:!1};G(function(){return gapi.client.earthengine.projects.assets.setIamPolicy(d)},null,c)}else b={readers:b.readers,writers:b.writers,all_users_can_read:b.all_users_can_read},a={id:a,value:xe(b)},H("/setacl",J(a),c)};y("ee.data.setAssetAcl",ej);
var fj=function(a,b,c){if(F){b=ie(b);var d=Object.keys(b).filter(function(e){return"properties"!==e}).map(function(e){return e.replace(/([A-Z])/g,function(f,g){return"_"+g.toLowerCase()})}).concat(Object.keys(b.properties||{}).map(function(e){return"properties."+e}));dj(a,b,d,c)}else a={id:a,properties:xe(b)},H("/setproperties",J(a),c)};y("ee.data.setAssetProperties",fj);
var gj=function(a,b){if(F){var c={name:D(a),prettyPrint:!1};return G(function(){return gapi.client.earthengine.projects.assets.get(c)},function(d){if(!d.quota)throw Error(a+" is not a root folder.");var e=function(f){return Number(d.quota[f]||0)};return{asset_count:{usage:e("assetCount"),limit:e("maxAssetCount")},asset_size:{usage:e("sizeBytes"),limit:e("maxSizeBytes")}}},b)}return H("/quota",J({id:a}),b,"GET")};y("ee.data.getAssetRootQuota",gj);
var Li={xf:"CANCEL",Af:"UPDATE"},H=function(a,b,c,d){$h();var e=ai,f={"Content-Type":"application/x-www-form-urlencoded"},g=Rh();if(null!=g)f.Authorization=g;else if(c&&Eh&&vh)return zh(function(){zi(e,function(){H(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new jh;e&&b.add("profiling","1");null!=Hh&&b.add("key",Hh);b=gi(b,a);null!=Xh&&(f["X-XSRF-Token"]=Xh);var h=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(h)||(a+=-1!=a.indexOf("?")?"&":"?",a+=h,h=null);var k=Uh+a;if(c)return hj.push(ij(k,c,g,
h,f)),jj.Mc(),null;for(var m=function(I,pa){this.setRequestHeader&&this.setRequestHeader(pa,I)},u,Q=0;;){u=Mg();u.open(g,k,!1);zb(f,m,u);u.send(h);if(429!=u.status||5<Q)break;Q++}return ci(u.status,function(I){try{return u.getResponseHeader(I)}catch(pa){return null}},u.responseText,e)},ij=function(a,b,c,d,e){var f=0,g={url:a,method:c,content:d,headers:e},h=ai;g.callback=function(k){k=k.target;if(429==k.getStatus()&&10>f)return f++,setTimeout(function(){hj.push(g);jj.Mc()},Math.min(12E4,1E3*Math.pow(2,
f))),null;var m=ci,u=k.getStatus(),Q=x(k.getResponseHeader,k);try{var I=k.a?k.a.responseText:""}catch(pa){Hg(k.N,"Can not get responseText: "+pa.message),I=""}return m(u,Q,I,h,b)};return g},ci=function(a,b,c,d,e,f){f=void 0===f?function(u){return u.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 h=JSON.parse(c);var k=f(h)}catch(u){var m="Invalid JSON: "+c}else m="Response was unexpectedly not JSON, but "+
b;if(v(h))"error"in h&&"message"in h.error?m=h.error.message:void 0===k&&(m="Malformed response: "+c);else if(0===a)m="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)m="Server returned HTTP code: "+a;if(e)return e(k,m),null;if(!m)return k;throw Error(m);},yh=function(a){var b=function(){p.gapi.config.update("client/cors",!0);Eh||(Eh=p.gapi.auth.authorize);a()};if(v(p.gapi)&&v(p.gapi.auth)&&w(p.gapi.auth.authorize))b();
else{for(var c=Ha().toString(36);c in p;)c+="_";p[c]=function(){delete p[c];b()};ug(cc({onload:c}))}},Dh=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(zh,.9*c),Ph=Ha()+c;xh=b;a&&a()}else b&&b(c.error||"Unknown error.")},J=function(a){var b=new jh;a=n(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=n(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},hj=[],jj=new Rf(function(){var a=
hj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var f=ei,g=new E;Ug.push(g);c&&g.ha("complete",c);g.zb("ready",g.Le);f&&(g.hb=Math.max(0,f));g.send(b,d,e,a)}0==hj.length||jj.Mc()},350),Uh=null,Wh=null,Xh=null,gi=Pb,ii=Pb,xh=null,Ph=null,vh=null,wh=[],Eh=null,Zb=new Sb(Qb,"https://apis.google.com/js/client.js?onload=%{onload}"),Hh=null,F=!1,Yh=null,Zh=!1,Vh=!1,ei=0,ai=null;var K=function(a,b,c){if(!(this instanceof K))return kj(K,arguments);if(c&&(a||b))throw Error('When "opt_varName" is specified, "func" and "args" must be null.');if(a&&!b)throw Error('When "func" is specified, "args" must not be null.');this.i=a;this.args=b;this.A=c||null};z(K,Nd);y("ee.ComputedObject",K);K.prototype.evaluate=function(a){if(!a||!w(a))throw Error("evaluate() requires a callback function.");si(this,a)};K.prototype.evaluate=K.prototype.evaluate;
K.prototype.D=function(a){return si(this,a)};K.prototype.getInfo=K.prototype.D;K.prototype.encode=function(a){if(null===this.i&&null===this.args)return{type:"ArgumentRef",value:this.A};var b={},c;for(c in this.args)q(this.args[c])&&(b[c]=a(this.args[c]));b={type:"Invocation",arguments:b};a=a(this.i);b[r(a)?"functionName":"function"]=a;return b};
K.prototype.P=function(a){if(null===this.i&&null===this.args)return{argumentReference:this.A||"uninitializedVar"};var b={},c;for(c in this.args)q(this.args[c])&&(b[c]=Pd(a(this.args[c])));return r(this.i)?Qd(String(this.i),b):this.i.Hc(a,b)};K.prototype.B=function(){return He(this)};K.prototype.serialize=K.prototype.B;K.prototype.toString=function(){return"ee."+this.name()+"("+Je(this)+")"};y("ee.ComputedObject.prototype.toString",K.prototype.toString);K.prototype.name=function(){return"ComputedObject"};
K.prototype.sd=function(a,b){var c=hb(arguments);c[0]=this;a.apply(p,c);return this};K.prototype.aside=K.prototype.sd;var lj=function(a,b){if(b instanceof a.constructor)return b;var c=function(){};c.prototype=a.constructor.prototype;a=new c;a.i=b.i;a.args=b.args;a.A=b.A;return a},kj=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var mj={},nj=function(a){return a.prototype instanceof K?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},oj=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}},pj=function(a){return sa(a)||
a instanceof K&&"Number"==a.name()},qj=function(a){return r(a)||a instanceof K&&"String"==a.name()},rj=function(a){return v(a)&&!w(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1},sj=function(a,b,c){c=void 0===c?!1:c;return 1===a.length&&rj(a[0])&&(a=b.args,c&&(a=a.slice(1)),a.length)?!(1===a.length||a[1].optional)||"Dictionary"!==a[0].type:!1};var L=function(){if(!(this instanceof L))return new L};z(L,Nd);y("ee.Function",L);var tj=Pb;L.prototype.call=function(a){return this.apply(uj(this,Array.prototype.slice.call(arguments,0)))};L.prototype.call=L.prototype.call;L.prototype.apply=function(a){a=new K(this,vj(this,a));return tj(a,this.G().returns)};L.prototype.apply=L.prototype.apply;
var wj=function(a,b,c){var d=q(b),e=a.G();if(sj(c,e,d)){if(c=Kb(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=uj(a,d?[b].concat(c):c);return a.apply(c)},vj=function(a,b){for(var c=a.G().args,d={},e={},f=0;f<c.length;f++){var g=c[f].name;if(g in b&&q(b[g]))d[g]=tj(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 h in b)e[h]||c.push(h);if(0<c.length)throw Error("Unrecognized arguments ("+
c+") to function: "+a);return d},uj=function(a,b){var c=a.G().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};
L.prototype.toString=function(a,b){var c=this.G(),d=[];d.push(a||c.name);d.push("(");d.push(Xa(c.args.slice(b?1:0),function(f){return f.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("")};L.prototype.B=function(){return He(this)};var M=function(a,b){if(!q(b))return xj(a);if(!(this instanceof M))return kj(M,arguments);this.ja=Lb(b);this.ja.name=a};z(M,L);y("ee.ApiFunction",M);var N=function(a,b){return L.prototype.call.apply(xj(a),Array.prototype.slice.call(arguments,1))};y("ee.ApiFunction._call",N);var yj=function(a,b){return xj(a).apply(b)};y("ee.ApiFunction._apply",yj);M.prototype.encode=function(){return this.ja.name};M.prototype.Hc=function(a,b){return Qd(this.ja.name,b)};M.prototype.G=function(){return this.ja};
var zj=null,Aj={},Cj=function(){Bj();return Bb(zj,function(a){return a.G()})},Dj=function(){Bj();return Ab(zj,function(a,b){return!Aj[b]})},xj=function(a){var b=Ej(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};y("ee.ApiFunction.lookup",xj);
var Ej=function(a){Bj();return zj[a]||null},Bj=function(a,b){if(zj)a&&a();else{var c=function(d,e){e?b&&b(Error(e)):(zj=Bb(d,function(f,g){f.returns=f.returns.replace(/<.*>/,"");for(var h=0;h<f.args.length;h++)f.args[h].type=f.args[h].type.replace(/<.*>/,"");return new M(g,f)}),a&&a())};a?ni(c):c(ni())}},O=function(a,b,c,d){Bj();var e=d||"";zb(zj,function(f,g){var h=g.split(".");if(2==h.length&&h[0]==b){h=e+h[1];var k=f.G();Aj[g]=!0;var m=!1;k.args.length&&(g=k.args[0].type,m="Object"!=g&&oj(g,c));
g=m?a.prototype:a;h in g&&!g[h].signature||(g[h]=function(u){return wj(f,m?this:void 0,Array.prototype.slice.call(arguments,0))},g[h].toString=x(f.toString,f,h,m),g[h].signature=k)}})},Fj=function(a){var b=function(c){for(var d in c)w(c[d])&&c[d].signature&&delete c[d]};b(a);b(a.prototype||{})};var P=function(a,b){var c=Gj(a),d=Xa(c,function(k){return k.replace(/^opt_/,"")});a=(a=p.EXPORTED_FN_INFO?p.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+"()":null)?" to function "+a:"";var e={},f=b[0],g=v(f)&&!w(f)&&!t(f)&&!(f instanceof K);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 Ed(Eb(f));var h=new Ed(d);if(Gd(h,g).isEmpty())e[d[0]]=b[0];else{b=
Hd(g,h);if(!b.isEmpty())throw Error("Unexpected arguments"+a+": "+b.w().join(", "));e=Kb(f)}}b=new Ed(Eb(e));c=Hd(new Ed(Wa(c,function(k){return 0!=k.lastIndexOf("opt_",0)})),b);if(!c.isEmpty())throw Error("Missing required arguments"+a+": "+c.w().join(", "));return e},Gj=function(a){var b=Hj,c=[];p.EXPORTED_FN_INFO?(a=p.EXPORTED_FN_INFO[a.toString()],v(a)||Ij(),c=a.paramNames,t(c)||Ij()):(a=a.toString().replace(Jj,"").match(b),null===a&&Ij(),c=(a[1].split(",")||[]).map(function(d){return d.replace(Kj,
"")}));return c},Ij=function(){throw Error("Failed to locate function parameters.");},Jj=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,Hj=/^function[^\(]*\(([^\)]*)\)/m,Kj=/=.*$/;var R=function(a,b,c){K.call(this,a,b,c);Lj()};z(R,K);y("ee.Element",R);var Mj=!1,Lj=function(){Mj||(O(R,"Element","Element"),Mj=!0)};R.prototype.name=function(){return"Element"};
R.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=rj(c))a:{b=Eb(c);var d=["properties"];if(za(b)&&za(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&&v(c.properties)&&(c=c.properties);if(rj(c)){b=this;for(var g in c)d=c[g],b=N("Element.set",b,g,d)}else if(c instanceof K&&Ej("Element.setMulti"))b=N("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=N("Element.set",b,g,d)}return lj(this,b)};R.prototype.set=R.prototype.set;var S=function(a,b,c,d){if(!(this instanceof S))return kj(S,arguments);if(!("type"in a)){var e=P(S,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}Nj();e=null!=b||null!=c||null!=d;if(a instanceof K&&!(a instanceof S&&a.ta)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");K.call(this,a.i,a.args,a.A)}else{a instanceof S&&(a=a.encode());if(!Oj(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));K.call(this,
null,null);this.ta=a.type;this.Dd=null!=a.coordinates?Lb(a.coordinates):null;this.Qd=a.geometries||null;if(null!=b)this.La=b;else if("crs"in a)if(v(a.crs)&&"name"==a.crs.type&&v(a.crs.properties)&&r(a.crs.properties.name))this.La=a.crs.properties.name;else throw Error("Invalid CRS declaration in GeoJSON: "+(new we).B(a.crs));this.Ya=c;!q(this.Ya)&&"geodesic"in a&&(this.Ya=!!a.geodesic);this.Wa=d;!q(this.Wa)&&"evenOdd"in a&&(this.Wa=!!a.evenOdd)}};z(S,K);y("ee.Geometry",S);
var Pj=!1,Nj=function(){Pj||(O(S,"Geometry","Geometry"),Pj=!0)},Qj=function(a,b){if(!(this instanceof Qj))return Rj(Qj,arguments);var c=Sj(Qj,"Point",1,arguments);if(!(c instanceof K)){var d=c.coordinates;if(!t(d)||2!=d.length)throw Error("The Geometry.Point constructor requires 2 coordinates.");}S.call(this,c)};z(Qj,S);S.Point=Qj;var Tj=function(a,b){if(!(this instanceof Tj))return Rj(Tj,arguments);S.call(this,Sj(Tj,"MultiPoint",2,arguments))};z(Tj,S);S.MultiPoint=Tj;
var Uj=function(a,b,c,d){if(!(this instanceof Uj))return Rj(Uj,arguments);var e=Sj(Uj,"Rectangle",2,arguments);if(!(e instanceof K)){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],h=f[0][1],k=f[1][0];f=f[1][1];e.coordinates=[[[g,f],[g,h],[k,h],[k,f]]];e.type="Polygon"}S.call(this,e)};z(Uj,S);S.Rectangle=Uj;
var Vj=function(a,b,c,d){if(!(this instanceof Vj))return Rj(Vj,arguments);S.call(this,Sj(Vj,"LineString",2,arguments))};z(Vj,S);S.LineString=Vj;var Wj=function(a,b,c,d){if(!(this instanceof Wj))return Rj(Wj,arguments);S.call(this,Sj(Wj,"LinearRing",2,arguments))};z(Wj,S);S.LinearRing=Wj;var Xj=function(a,b,c,d){if(!(this instanceof Xj))return Rj(Xj,arguments);S.call(this,Sj(Xj,"MultiLineString",3,arguments))};z(Xj,S);S.MultiLineString=Xj;
var Yj=function(a,b,c,d,e){if(!(this instanceof Yj))return Rj(Yj,arguments);S.call(this,Sj(Yj,"Polygon",3,arguments))};z(Yj,S);S.Polygon=Yj;var Zj=function(a,b,c,d,e){if(!(this instanceof Zj))return Rj(Zj,arguments);S.call(this,Sj(Zj,"MultiPolygon",4,arguments))};z(Zj,S);S.MultiPolygon=Zj;
S.prototype.encode=function(a){if(!this.ta){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return K.prototype.encode.call(this,a)}a={type:this.ta};"GeometryCollection"==this.ta?a.geometries=this.Qd:a.coordinates=this.Dd;null!=this.La&&(a.crs={type:"name",properties:{name:this.La}});null!=this.Ya&&(a.geodesic=this.Ya);null!=this.Wa&&(a.evenOdd=this.Wa);return a};
S.prototype.mc=function(){if(this.i)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.encode()};S.prototype.toGeoJSON=S.prototype.mc;S.prototype.rd=function(){if(this.i)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new we).B(this.mc())};S.prototype.toGeoJSONString=S.prototype.rd;S.prototype.B=function(){return He(this)};S.prototype.serialize=S.prototype.B;
S.prototype.toString=function(){return"ee.Geometry("+this.rd()+")"};
S.prototype.P=function(a){if(!this.ta){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return K.prototype.P.call(this,a)}var b={},c="";"GeometryCollection"===this.ta?(b.geometries=this.Qd.map(function(e){return new S(e)}),c="GeometryConstructors.MultiGeometry"):(b.coordinates=this.Dd,c="GeometryConstructors."+this.ta);null!=this.La&&(b.crs=r(this.La)?(new M("Projection")).call(this.La):this.La);var d="Point"!==this.ta&&"MultiPoint"!==this.ta;null!=this.Ya&&
d&&(b.geodesic=this.Ya);null!=this.Wa&&(b.evenOdd=this.Wa);return(new M(c)).apply(b).P(a)};
var Oj=function(a){var b=a.type;if("GeometryCollection"==b){b=a.geometries;if(!t(b))return!1;for(a=0;a<b.length;a++)if(!Oj(b[a]))return!1;return!0}a=a.coordinates;var c=ak(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)},ak=function(a){if(!t(a))return-1;if(t(a[0])){for(var b=ak(a[0]),c=1;c<a.length;c++)if(ak(a[c])!=b)return-1;return b+
1}for(c=0;c<a.length;c++)if(!sa(a[c]))return-1;return 0==a.length%2?1:-1},Sj=function(a,b,c,d){Za(d,pj)?a={coordinates:hb(d)}:(a=P(a,d),a.coordinates=a.coords,delete a.coords,a.crs=a.proj,delete a.proj,a=Ab(a,ya));if(bk(a.coordinates)||null!=a.crs||null!=a.maxError)return(new M("GeometryConstructors."+b)).apply(a);a.type=b;d=a.coordinates;if(1>c||4<c)throw Error("Unexpected nesting level.");if(Za(d,sa)&&sa(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;t(e);)e=e[0],f++;for(;f<c;)d=[d],f++;if(ak(d)!=c)throw Error("Invalid geometry");for(e=d;t(e)&&1==e.length;)e=e[0];c=t(e)&&0==e.length?[]:d;a.coordinates=c;(b=cb(["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},bk=function(a){return t(a)?Ya(a,bk):a instanceof K},Rj=function(a,b){var c=function(){};c.prototype=
a.prototype;c=new c;a=a.apply(c,b);return void 0!==a?a:c};S.prototype.name=function(){return"Geometry"};var T=function(a){if(!(this instanceof T))return kj(T,arguments);if(a instanceof T)return a;ck();if(t(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new T(a[0]);K.call(this,new M("Filter.and"),{filters:a})}else if(a instanceof K)K.call(this,a.i,a.args,a.A);else{if(q(a))throw Error("Invalid argument specified for ee.Filter(): "+a);K.call(this,null,null)}};z(T,K);y("ee.Filter",T);
var dk=!1,ck=function(){dk||(O(T,"Filter","Filter"),dk=!0)},ek={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};T.prototype.Za=function(){return N("Filter.not",this)};T.prototype.not=T.prototype.Za;var fk=function(a,b){var c=P(fk,arguments);return N("Filter.equals",c.name,c.value)};T.eq=fk;var gk=function(a,b){var c=P(gk,arguments);return fk(c.name,c.value).Za()};T.neq=gk;
var hk=function(a,b){var c=P(hk,arguments);return N("Filter.lessThan",c.name,c.value)};T.lt=hk;var ik=function(a,b){var c=P(ik,arguments);return hk(c.name,c.value).Za()};T.gte=ik;var jk=function(a,b){var c=P(jk,arguments);return N("Filter.greaterThan",c.name,c.value)};T.gt=jk;var kk=function(a,b){var c=P(kk,arguments);return jk(c.name,c.value).Za()};T.lte=kk;var lk=function(a){return N("Filter.and",Array.prototype.slice.call(arguments))};T.and=lk;var mk=function(a){return N("Filter.or",Array.prototype.slice.call(arguments))};
T.or=mk;var nk=function(a,b){var c=P(nk,arguments);c=N("DateRange",c.start,c.end);return yj("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};T.date=nk;var ok=function(a,b,c,d){var e=P(ok,arguments);return yj("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};T.inList=ok;var pk=function(a,b){return yj("Filter.intersects",{leftField:".all",rightValue:N("Feature",a),maxError:b})};T.bounds=pk;
T.prototype.name=function(){return"Filter"};var qk=function(a,b,c){b=b.toLowerCase();var d=!1;0==b.lastIndexOf("not_",0)&&(d=!0,b=b.substring(4));if(!(b in ek))throw Error("Unknown filtering operator: "+b);a=N("Filter."+ek[b],a,c);return d?a.Za():a};T.metadata=qk;var U=function(a,b,c){R.call(this,a,b,c);rk()};z(U,R);y("ee.Collection",U);var sk=!1,rk=function(){sk||(O(U,"Collection","Collection"),O(U,"AggregateFeatureCollection","Collection","aggregate_"),sk=!0)};U.prototype.filter=function(a){a=P(U.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return lj(this,N("Collection.filter",this,a))};U.prototype.filter=U.prototype.filter;
U.prototype.Lc=function(a,b,c){var d=P(U.prototype.Lc,arguments);return this.filter(qk(d.name,d.operator,d.value))};U.prototype.filterMetadata=U.prototype.Lc;U.prototype.Md=function(a){return this.filter(pk(a))};U.prototype.filterBounds=U.prototype.Md;U.prototype.Kc=function(a,b){var c=P(U.prototype.Kc,arguments);return this.filter(nk(c.start,c.end))};U.prototype.filterDate=U.prototype.Kc;
U.prototype.limit=function(a,b,c){var d=P(U.prototype.limit,arguments);return lj(this,N("Collection.limit",this,d.max,d.property,d.ascending))};U.prototype.limit=U.prototype.limit;U.prototype.sort=function(a,b){var c=P(U.prototype.sort,arguments);return lj(this,N("Collection.limit",this,void 0,c.property,c.ascending))};U.prototype.sort=U.prototype.sort;U.prototype.name=function(){return"Collection"};U.prototype.elementType=function(){return R};
U.prototype.map=function(a,b){var c=this.elementType();return lj(this,N("Collection.map",this,function(d){return a(new c(d))},b))};U.prototype.map=U.prototype.map;U.prototype.Yd=function(a,b){b=q(b)?b:null;var c=this.elementType();return N("Collection.iterate",this,function(d,e){return a(new c(d),e)},b)};U.prototype.iterate=U.prototype.Yd;var V=function(a,b){if(!(this instanceof V))return kj(V,arguments);if(a instanceof V){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)");tk();if(a instanceof S||null===a)R.call(this,new M("Feature"),{geometry:a,metadata:b||null});else if(a instanceof K)R.call(this,a.i,a.args,a.A);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=Kb(c);c["system:index"]=a.id}R.call(this,new M("Feature"),{geometry:new S(a.geometry),metadata:c})}else R.call(this,new M("Feature"),{geometry:new S(a),metadata:b||null})};z(V,R);y("ee.Feature",V);var uk=!1,tk=function(){uk||(O(V,"Feature","Feature"),uk=!0)};V.prototype.D=function(a){return V.h.D.call(this,a)};V.prototype.getInfo=V.prototype.D;
V.prototype.getMap=function(a,b){var c=P(V.prototype.getMap,arguments);return N("Collection",[this]).getMap(c.visParams,c.callback)};V.prototype.getMap=V.prototype.getMap;V.prototype.name=function(){return"Feature"};var vk=function(a,b,c){var d={};zb(b,function(e,f){switch(f){case "dimensions":f=r(e)?e.split("x").map(Number):t(e)?e:sa(e)?[e]:[];if(1===f.length)d.maxDimension=f[0];else if(2===f.length)d.width=f[0],d.height=f[1];else throw Error("Invalid dimensions "+e);break;case "region":e=r(e)?JSON.parse(e):e;d.geometry=new S(e);break;case "scale":d.scale=e;default:c[f]=e}});Ib(d)||(d.input=a,a=yj("Image.clipToBoundsAndScale",d));return a},xk=function(a,b){var c={};b=wk(b,c);Ib(b)||(b.image=a,a=yj("Image.visualize",
b));c.image=a;return c},wk=function(a,b){var c="bands gain bias min max gamma palette opacity forceRgbOutput".split(" "),d={};zb(a,function(e,f){cb(c,f)?d[f]=e:b[f]=e});return d};var W=function(a){if(!(this instanceof W))return kj(W,arguments);if(a instanceof W)return a;yk();var b=arguments.length;if(0==b||1==b&&!q(a))R.call(this,new M("Image.mask"),{image:new W(0),mask:new W(0)});else if(1==b)if(pj(a))R.call(this,new M("Image.constant"),{value:a});else if(qj(a))R.call(this,new M("Image.load"),{id:a});else{if(t(a))return zk(Xa(a,function(d){return new W(d)}));if(a instanceof K)"Array"==a.name()?R.call(this,new M("Image.constant"),{value:a}):R.call(this,a.i,a.args,a.A);else throw Error("Unrecognized argument type to convert to an Image: "+
a);}else if(2==b){b=arguments[0];var c=arguments[1];if(qj(b)&&pj(c))R.call(this,new M("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)");};z(W,R);y("ee.Image",W);var Ak=!1,yk=function(){Ak||(O(W,"Image","Image"),O(W,"Window","Image","focal_"),Ak=!0)};W.prototype.D=function(a){return W.h.D.call(this,a)};W.prototype.getInfo=W.prototype.D;
W.prototype.getMap=function(a,b){var c=this,d=P(W.prototype.getMap,arguments),e=xk(this,d.visParams);if(d.callback){var f=d.callback;pi(e,function(g,h){g=g?Object.assign(g,{image:c}):void 0;f(g,h)})}else return d=pi(e),d.image=this,d};W.prototype.getMap=W.prototype.getMap;W.prototype.Fa=function(a,b){var c=P(W.prototype.Fa,arguments),d=c.params?Kb(c.params):{};d.image=this.B();if(c.callback){var e=c.callback;vi(d,function(f,g){f?e(wi(f)):e(null,g)})}else return wi(vi(d))};
W.prototype.getDownloadURL=W.prototype.Fa;W.prototype.Qc=function(a,b){var c=P(W.prototype.Qc,arguments);if(F){var d={};var e=vk(this,c.params,d);d=xk(e,d)}else if(d=xk(this,c.params),d.region)if(t(d.region)||rj(d.region))d.region=xe(d.region);else if(!r(d.region))throw Error("The region parameter must be an array or a GeoJSON object.");if(c.callback)ti(d,function(f,g){var h="";if(!q(g))try{h=ui(f)}catch(k){g=String(k.message)}c.callback(h,g)});else return ui(ti(d))};W.prototype.getThumbURL=W.prototype.Qc;
var Bk=function(a,b,c){var d=P(Bk,arguments);return zk([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};W.rgb=Bk;var Ck=function(a){return zk(Array.prototype.slice.call(arguments),null)};W.cat=Ck;var zk=function(a,b){if(0==a.length)return N("Image.constant",[]);for(var c=new W(a[0]),d=1;d<a.length;d++)c=N("Image.addBands",c,a[d]);b&&(c=c.select([".*"],b));return c};
W.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(2<b.length||qj(b[0])||pj(b[0])){for(var d=0;d<b.length;d++)if(!(qj(b[d])||pj(b[d])||b[d]instanceof K))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return yj("Image.select",c)};W.prototype.select=W.prototype.select;
W.prototype.expression=function(a,b){var c=P(W.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 W(f[g])}var h=N("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new L;c.encode=function(k){return h.encode(k)};c.Hc=function(k,m){return Rd(k(h),m)};c.G=function(){return{name:"",args:Xa(d,function(k){return{name:k,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
W.prototype.expression=W.prototype.expression;W.prototype.clip=function(a){try{a=new S(a)}catch(b){}return N("Image.clip",this,a)};W.prototype.clip=W.prototype.clip;W.prototype.me=function(a){var b=1!=arguments.length||qj(arguments[0])?hb(arguments):arguments[0];return N("Image.rename",this,b)};W.prototype.rename=W.prototype.me;W.prototype.name=function(){return"Image"};var Dk=function(a){if(this instanceof Dk){if(1<arguments.length)throw Error("ee.List() only accepts 1 argument.");if(a instanceof Dk)return a}else return kj(Dk,arguments);Ek();if(t(a))K.call(this,null,null),this.yb=a;else if(a instanceof K)K.call(this,a.i,a.args,a.A),this.yb=null;else throw Error("Invalid argument specified for ee.List(): "+a);};z(Dk,K);y("ee.List",Dk);var Fk=!1,Ek=function(){Fk||(O(Dk,"List","List"),Fk=!0)};
Dk.prototype.encode=function(a){return t(this.yb)?Xa(this.yb,function(b){return a(b)}):Dk.h.encode.call(this,a)};Dk.prototype.P=function(a){return t(this.yb)?Pd(a(this.yb)):Dk.h.P.call(this,a)};Dk.prototype.name=function(){return"List"};var X=function(a,b){if(!(this instanceof X))return kj(X,arguments);if(a instanceof X)return a;if(2<arguments.length)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");Gk();a instanceof S&&(a=new V(a));a instanceof V&&(a=[a]);if(qj(a)){var c={tableId:a};b&&(c.geometryColumn=b);U.call(this,new M("Collection.loadTable"),c)}else if(t(a))U.call(this,new M("Collection"),{features:Xa(a,function(d){return new V(d)})});else if(a instanceof Dk)U.call(this,
new M("Collection"),{features:a});else if(a instanceof K)U.call(this,a.i,a.args,a.A);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};z(X,U);y("ee.FeatureCollection",X);var Hk=!1,Gk=function(){Hk||(O(X,"FeatureCollection","FeatureCollection"),Hk=!0)};X.prototype.getMap=function(a,b){var c=P(X.prototype.getMap,arguments),d=yj("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.getMap(void 0,c.callback);else return d.getMap()};
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.Fa=function(a,b,c,d){var e=P(X.prototype.Fa,arguments),f={};f.table=this.B();e.format&&(f.format=e.format.toUpperCase());e.filename&&(f.filename=e.filename);if(e.selectors){var g=e.selectors;za(g)&&(g=g.join(","));f.selectors=g}if(e.callback)xi(f,function(h,k){h?e.callback(yi(h)):e.callback(null,k)});else return yi(xi(f))};X.prototype.getDownloadURL=X.prototype.Fa;
X.prototype.select=function(a,b,c){if(qj(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(f){return f.select(d)})}var e=P(X.prototype.select,arguments);return this.map(function(f){return f.select(e)})};X.prototype.select=X.prototype.select;X.prototype.name=function(){return"FeatureCollection"};X.prototype.elementType=function(){return V};var Y=function(a){if(!(this instanceof Y))return kj(Y,arguments);if(a instanceof Y)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");Ik();a instanceof W&&(a=[a]);if(qj(a))U.call(this,new M("ImageCollection.load"),{id:a});else if(t(a))U.call(this,new M("ImageCollection.fromImages"),{images:Xa(a,function(b){return new W(b)})});else if(a instanceof Dk)U.call(this,new M("ImageCollection.fromImages"),{images:a});else if(a instanceof
K)U.call(this,a.i,a.args,a.A);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};z(Y,U);y("ee.ImageCollection",Y);var Jk=!1,Ik=function(){Jk||(O(Y,"ImageCollection","ImageCollection"),O(Y,"reduce","ImageCollection"),Jk=!0)};Y.prototype.Oc=function(a,b){var c=P(Y.prototype.Oc,arguments);return Kk(this,c,["png","jpg","jpeg"])};Y.prototype.getFilmstripThumbURL=Y.prototype.Oc;Y.prototype.Rc=function(a,b){var c=P(Y.prototype.Rc,arguments);return Kk(this,c,["gif"])};
Y.prototype.getVideoThumbURL=Y.prototype.Rc;
var Kk=function(a,b,c){var d={};a=a.map(function(g){var h=b.params,k=h.crs||"",m=h.crsTransform||h.crs_transform||"";if(k||m){if(m&&!k)throw Error('Must specify "crs" if "crsTransform" is specified.');m?(g=yj("Image.reproject",{image:g,crs:k,Df:m}),null!=h.dimensions&&null==h.scale&&null==h.region&&(k=h.dimensions,delete h.dimensions,r(k)&&(k=k.split("x").map(Number)),m=yj("Image.projection",{image:g}),2===k.length&&(h.region=new Uj([0,0,k[0],k[1]],m,!0)))):g=yj("Image.setDefaultProjection",{image:g,
crs:k,crsTransform:[1,0,0,0,-1,0]})}return vk(g,b.params,d)});var e={},f=wk(d,e);null!=b.params.dimensions&&(e.dimensions=b.params.dimensions);a=a.map(function(g){f.image=g;return yj("Image.visualize",f)});e.image=a.B();if(e.format){if(!Ya(c,function(g){return g.toLowerCase()==e.format.toLowerCase()}))throw Error("Invalid format specified.");}else e.format=c[0];if(b.callback)ti(e,function(g,h){var k="";if(!q(h))try{k=ui(g)}catch(m){h=String(m.message)}b.callback(k,h)});else return ui(ti(e))};
Y.prototype.getMap=function(a,b){var c=P(Y.prototype.getMap,arguments),d=N("ImageCollection.mosaic",this);if(c.callback)d.getMap(c.visParams,c.callback);else return d.getMap(c.visParams)};Y.prototype.getMap=Y.prototype.getMap;Y.prototype.D=function(a){return Y.h.D.call(this,a)};Y.prototype.getInfo=Y.prototype.D;Y.prototype.select=function(a,b){var c=arguments;return this.map(function(d){return d.select.apply(d,c)})};Y.prototype.select=Y.prototype.select;
Y.prototype.first=function(){return new W(N("Collection.first",this))};Y.prototype.first=Y.prototype.first;Y.prototype.name=function(){return"ImageCollection"};Y.prototype.elementType=function(){return W};var Lk=function(a){this.Dc=a;this.id=null},Nk=function(a){var b={element:Mk(a)};Object.assign(b,a);b=Ab(b,ya);return new Lk(b)};Lk.prototype.start=function(a,b){var c=this;B(this.Dc,"Task config must be specified for tasks to be started.");if(a){var d=function(){Qa(c.id);Mi(c.id,c.Dc,function(e,f){f?b(f):a()})};this.id?d():Ai(1,function(e){(e=e&&e[0])?(c.id=e,d()):b("Failed to obtain task ID.")})}else this.id=this.id||Ai(1)[0],Qa(this.id,"Failed to obtain task ID."),Mi(this.id,this.Dc)};
Lk.prototype.start=Lk.prototype.start;var Ok=function(a,b,c,d,e,f,g,h,k,m){var u=P(Ok,arguments);u=Pk(u,"ASSET","EXPORT_IMAGE");return Nk(u)};y("ee.batch.Export.image.toAsset",Ok);var Qk=function(a,b,c,d,e,f,g,h,k,m,u,Q,I,pa,mc){var Da=P(Qk,arguments);Da=Pk(Da,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return Nk(Da)};y("ee.batch.Export.image.toCloudStorage",Qk);var Rk=function(a,b,c,d,e,f,g,h,k,m,u,Q,I,pa,mc){var Da=P(Rk,arguments);Da=Pk(Da,"DRIVE","EXPORT_IMAGE");return Nk(Da)};
y("ee.batch.Export.image.toDrive",Rk);var Sk=function(a,b,c,d,e,f,g,h,k,m,u,Q){var I=P(Sk,arguments);I=Pk(I,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return Nk(I)};y("ee.batch.Export.map.toCloudStorage",Sk);var Tk=function(a,b,c,d,e,f){var g=P(Tk,arguments);g=Pk(g,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return Nk(g)};y("ee.batch.Export.table.toCloudStorage",Tk);var Uk=function(a,b,c,d,e,f){var g=P(Uk,arguments);g.type="EXPORT_FEATURES";g=Pk(g,"DRIVE","EXPORT_FEATURES");return Nk(g)};
y("ee.batch.Export.table.toDrive",Uk);var Vk=function(a,b,c){var d=P(Vk,arguments);d=Pk(d,"ASSET","EXPORT_FEATURES");return Nk(d)};y("ee.batch.Export.table.toAsset",Vk);var Wk=function(a,b,c,d,e,f,g,h,k,m,u,Q){var I=P(Wk,arguments);I=Pk(I,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return Nk(I)};y("ee.batch.Export.video.toCloudStorage",Wk);var Xk=function(a,b,c,d,e,f,g,h,k,m,u,Q){var I=P(Xk,arguments);I=Pk(I,"DRIVE","EXPORT_VIDEO");return Nk(I)};y("ee.batch.Export.video.toDrive",Xk);
var Yk=function(a,b,c,d,e,f,g,h,k,m,u){var Q=P(Yk,arguments);Q=Pk(Q,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return Nk(Q)};y("ee.batch.Export.videoMap.toCloudStorage",Yk);
var Mk=function(a){var b=function(d){return d in a},c=Zk.find(b);B(1===$a(Zk,b),'Expected a single "image" or "collection" key.');b=a[c];if(!(b instanceof W||b instanceof X||b instanceof Y||b instanceof R))throw Error("Unknown element type provided: "+typeof b+". Expected: ee.Image, ee.ImageCollection, ee.FeatureCollection or ee.Element.");delete a[c];return b},Pk=function(a,b,c){var d=void 0===d?!0:d;var e={type:c};Object.assign(e,a);switch(c){case "EXPORT_IMAGE":null!=e.fileFormat||(e.fileFormat=
"GeoTIFF");a=e.fileFormat;null!=a||(a="GEO_TIFF");a=a.toUpperCase();switch(a){case "TIFF":case "TIF":case "GEO_TIFF":case "GEOTIFF":a="GEO_TIFF";break;case "TF_RECORD":case "TF_RECORD_IMAGE":case "TFRECORD":a="TF_RECORD_IMAGE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'GEOTIFF', 'TFRECORD'.");}null!=e.formatOptions&&(a=$k(e,a),delete e.formatOptions,Object.assign(e,a));e=al(e,b);null!=e.crsTransform&&(e.crs_transform=e.crsTransform,delete e.crsTransform);break;case "EXPORT_TILES":e=
b=al(e,b);break;case "EXPORT_FEATURES":t(e.selectors)&&(e.selectors=e.selectors.join());e=al(e,b);break;case "EXPORT_VIDEO":e=bl(e);e=al(e,b);null!=e.crsTransform&&(e.crs_transform=e.crsTransform,delete e.crsTransform);break;case "EXPORT_VIDEO_MAP":e=bl(e);e=al(e,b);break;default:throw Error("Unknown export type: "+e.type);}if(d&&null!=e.region){d=e;b=e.region;if(b instanceof S)b=b.mc();else if(r(b))try{b=Sa(JSON.parse(b))}catch(f){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(!(v(b)&&"type"in b))try{new Vj(b)}catch(f){try{new Yj(b)}catch(g){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.");}}b=xe(b);d.region=b}return e},al=function(a,b){switch(b){case "GOOGLE_CLOUD_STORAGE":a.outputBucket=a.bucket||"";a.outputPrefix=a.fileNamePrefix||a.path||"";delete a.fileNamePrefix;delete a.path;delete a.bucket;break;case "ASSET":a.assetId=a.assetId||
"";break;default:b=xa(a.folder);if(!cb(["string","undefined"],b))throw Error('Error: toDrive "folder" parameter must be a string, but is of type '+b+".");a.driveFolder=a.folder||"";a.driveFileNamePrefix=a.fileNamePrefix||"";delete a.folder;delete a.fileNamePrefix}return a},cl={GEO_TIFF:["cloudOptimized","fileDimensions"],TF_RECORD_IMAGE:"patchDimensions kernelSize compressed maxFileSize defaultValue tensorDepths sequenceData collapseBands maskedThreshold".split(" ")},dl={GEO_TIFF:"tiff",TF_RECORD_IMAGE:"tfrecord"},
bl=function(a){a.videoOptions=a.framesPerSecond||5;a.maxFrames=a.maxFrames||1E3;a.maxPixels=a.maxPixels||1E8;a.fileFormat="MP4";return a},$k=function(a,b){var c=a.formatOptions;if(null==c)return{};if(Object.keys(a).some(function(k){return null!==c&&k in c}))throw Error("Parameter specified at least twice: once in config, and once in config format options.");a=dl[b];for(var d=cl[b],e={},f=n(Object.entries(c)),g=f.next();!g.done;g=f.next()){var h=n(g.value);g=h.next().value;h=h.next().value;if(!cb(d,
g))throw Error('"'+g+'" is not a valid option, the image format "'+b+'"'+('"may have the following options: '+d.join(", ")+'".'));g=a+g[0].toUpperCase()+g.substring(1);t(h)?e[g]=h.join():e[g]=h}return e},Zk=["image","collection"];var el=function(a){if(!(this instanceof el))return kj(el,arguments);if(a instanceof el)return a;fl();if(sa(a))K.call(this,null,null),this.Ab=a;else if(a instanceof K)K.call(this,a.i,a.args,a.A),this.Ab=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};z(el,K);y("ee.Number",el);var gl=!1,fl=function(){gl||(O(el,"Number","Number"),gl=!0)};el.prototype.encode=function(a){return sa(this.Ab)?this.Ab:el.h.encode.call(this,a)};
el.prototype.P=function(a){return sa(this.Ab)?Pd(a(this.Ab)):el.h.P.call(this,a)};el.prototype.name=function(){return"Number"};var hl=function(a){if(!(this instanceof hl))return kj(hl,arguments);if(a instanceof hl)return a;il();if(r(a))K.call(this,null,null),this.Fb=a;else if(a instanceof K)this.Fb=null,a.i&&"String"==a.i.G().returns?K.call(this,a.i,a.args,a.A):K.call(this,new M("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};z(hl,K);y("ee.String",hl);var jl=!1,il=function(){jl||(O(hl,"String","String"),jl=!0)};
hl.prototype.encode=function(a){return r(this.Fb)?this.Fb:hl.h.encode.call(this,a)};hl.prototype.P=function(a){return r(this.Fb)?Pd(a(this.Fb)):hl.h.P.call(this,a)};hl.prototype.name=function(){return"String"};var kl=function(a,b){if(!(this instanceof kl))return kj(kl,arguments);for(var c=[],d=a.args,e=0;e<d.length;e++){var f=d[e],g=f.type;c.push(ll(g in mj?mj[g]:null,f.name))}if(!q(b.apply(null,c)))throw Error("User-defined methods must return a value.");this.ja=ml(a,c,b);this.xd=b.apply(null,c)};z(kl,L);y("ee.CustomFunction",kl);kl.prototype.encode=function(a){return{type:"Function",argumentNames:Xa(this.ja.args,function(b){return b.name}),body:a(this.xd)}};
kl.prototype.P=function(a){return Sd(this.ja.args.map(function(b){return b.name}),a(this.xd))};kl.prototype.Hc=function(a,b){return Rd(a(this),b)};kl.prototype.G=function(){return this.ja};
var ll=function(a,b){a=a||Object;if(!(a.prototype instanceof K))if(a&&a!=Object)if(a==String)a=hl;else if(a==Number)a=el;else if(a==Array)a=p.ee.List;else throw Error("Variables must be of an EE type, e.g. ee.Image or ee.Number.");else a=K;var c=function(d){this.args=this.i=null;this.A=d};c.prototype=a.prototype;return new c(b)},nl=function(a,b){b=Xa(b,function(c){return{name:null,type:r(c)?c:nj(c)}});b={name:"",returns:r("Object")?"Object":nj("Object"),args:b};return new kl(b,a)},ml=function(a,b,
c){for(var d=[],e=0;e<b.length;e++)null===b[e].A&&d.push(e);if(0==d.length)return a;var f=function(k){var m=0;v(k)&&!w(k)&&("Function"==k.type&&m++,zb(k,function(u){m+=f(u)}));return m};e=Ge(c.apply(null,b));c="_MAPPING_VAR_"+f(e)+"_";for(e=0;e<d.length;e++){var g=d[e],h=c+e;b[g].A=h;a.args[g].name=h}return a};var ol=function(a,b){if(!(this instanceof ol))return kj(ol,arguments);if(a instanceof ol)return a;pl();var c=P(ol,arguments);a=c.date;c=c.tz;var d=new M("Date"),e={},f=null;if(qj(a)){if(e.value=a,c)if(qj(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(pj(a))e.value=a;else if(Aa(a))e.value=Math.floor(a.getTime());else if(a instanceof K)a.i&&"Date"==a.i.G().returns?(d=a.i,e=a.args,f=a.A):e.value=a;else throw Error("Invalid argument specified for ee.Date(): "+
a);K.call(this,d,e,f)};z(ol,K);y("ee.Date",ol);var ql=!1,pl=function(){ql||(O(ol,"Date","Date"),ql=!0)};ol.prototype.name=function(){return"Date"};var rl=function(a,b,c){if(!(this instanceof rl))return kj(rl,arguments);if(a instanceof rl)return a;sl||(O(rl,"DateRange","DateRange"),sl=!0);var d=P(rl,arguments),e=new M("DateRange");K.call(this,e,d,null)};z(rl,K);y("ee.DateRange",rl);var sl=!1;rl.prototype.name=function(){return"DateRange"};y("ee.Deserializer",function(){});var ul=function(a){return tl(JSON.parse(a))};y("ee.Deserializer.fromJSON",ul);var tl=function(a){var b={};if(v(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]=vl(f,b)}a=a.value}return vl(a,b)};y("ee.Deserializer.decode",tl);
var vl=function(a,b){if(null===a||sa(a)||ra(a)||r(a))return a;if(t(a))return Xa(a,function(f){return vl(f,b)});if(!v(a)||w(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(!r(c))throw Error("Invalid variable name: "+c);return ll(Object,c);case "Date":c=a.value;if(!sa(c))throw Error("Invalid date value: "+c);return new ol(c/1E3);case "Bytes":return c=new Nd,c.encode=
function(){return a},c;case "Invocation":c="functionName"in a?xj(a.functionName):vl(a["function"],b);var d=Bb(a.arguments,function(f){return vl(f,b)});if(c instanceof L)return c.apply(d);if(c instanceof K)return new K(c,d);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return Bb(a.value,function(f){return vl(f,b)});case "Function":var e=vl(a.body,b);c={name:"",args:Xa(a.argumentNames,function(f){return{name:f,type:"Object",optional:!1}}),returns:"Object"};return new kl(c,
function(){return e});case "Point":case "MultiPoint":case "LineString":case "MultiLineString":case "Polygon":case "MultiPolygon":case "LinearRing":case "GeometryCollection":return new S(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}};var wl=function(a){if(!(this instanceof wl))return kj(wl,arguments);if(a instanceof wl)return a;xl();rj(a)?(K.call(this,null,null),this.ob=a):(a instanceof K&&a.i&&"Dictionary"==a.i.G().returns?K.call(this,a.i,a.args,a.A):K.call(this,new M("Dictionary"),{input:a},null),this.ob=null)};z(wl,K);y("ee.Dictionary",wl);var yl=!1,xl=function(){yl||(O(wl,"Dictionary","Dictionary"),yl=!0)};wl.prototype.encode=function(a){return null===this.ob?wl.h.encode.call(this,a):a(this.ob)};
wl.prototype.P=function(a){return null===this.ob?wl.h.P.call(this,a):Pd(a(this.ob))};wl.prototype.name=function(){return"Dictionary"};var zl={};y("ee.Terrain",zl);zl.Vc=!1;zl.Ue=function(){zl.Vc||(O(zl,"Terrain","Terrain"),zl.Vc=!0)};zl.reset=function(){Fj(zl);zl.Vc=!1};var Fl=function(a,b,c,d,e){if("ready"!=Al||a||b){var f=null!=c;if(d)if(f)Bl.push(d);else throw Error("Can't pass an error callback without a success callback.");if("loading"==Al&&f)Cl.push(c);else if(Al="loading",$h(a,b,e),f)Cl.push(c),Bj(Dl,El);else try{Bj(),Dl()}catch(g){throw El(g),g;}}else c&&c()};y("ee.initialize",Fl);
var Il=function(){Al="not_ready";Yh=Xh=Wh=Uh=null;Zh=!1;va("gapi")&&gapi.client&&delete gapi.client.earthengine;Vh=!1;zj=null;Aj={};Fj(ol);ql=!1;Fj(wl);yl=!1;Fj(R);Mj=!1;Fj(W);Ak=!1;Fj(V);uk=!1;Fj(U);sk=!1;Fj(Y);Jk=!1;Fj(X);Hk=!1;Fj(T);dk=!1;Fj(S);Pj=!1;Fj(Dk);Fk=!1;Fj(el);gl=!1;Fj(hl);jl=!1;zl.reset();for(var a=p.ee,b=0;b<Gl.length;b++){var c=Gl[b];Fj(a[c]);delete a[c]}Gl=[];mj=a;a=Hl;for(var d in a)delete a[d]};y("ee.reset",Il);var Jl={yf:"not_ready",LOADING:"loading",zf:"ready"};
y("ee.InitState",Jl);y("ee.InitState.NOT_READY","not_ready");y("ee.InitState.LOADING","loading");y("ee.InitState.READY","ready");var Al="not_ready",Cl=[],Bl=[];y("ee.TILE_SIZE",256);var Gl=[],Hl={};y("ee.Algorithms",Hl);var Kl=function(a,b){r(a)&&(a=new M(a));return L.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};y("ee.call",Kl);var Ll=function(a,b){r(a)&&(a=new M(a));return a.apply(b)};y("ee.apply",Ll);
var Dl=function(){if("loading"==Al){try{pl();xl();Lj();yk();tk();rk();Ik();Gk();ck();Nj();Ek();fl();il();zl.Ue();var a=Cj(),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=p.ee,g;for(g in b)g in c&&!(g in f)&&(f[g]=Ml(g),Gl.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Aj[g]=!0):f[g].signature={});mj=f;Nl()}catch(h){El(h);return}Al="ready";for(Bl=[];0<Cl.length;)Cl.shift()()}},El=function(a){if("loading"==
Al)for(Al="not_ready",Cl=[];0<Bl.length;)Bl.shift()(a)},Nl=function(){var a=Dj();Eb(a).sort().forEach(function(b){var c=a[b],d=c.G();if(!d.hidden){b=b.split(".");var e=Hl;for(e.signature={};1<b.length;){var f=b[0];f in e||(e[f]={signature:{}});e=e[f];b=jb(b,1)}f=function(g){return wj(c,void 0,Array.prototype.slice.call(arguments,0))};f.signature=d;f.toString=x(c.toString,c);e[b[0]]=f}})},Ml=function(a){var b=function(c){var d=p.ee[a],e=Array.prototype.slice.call(arguments),f=1==e.length;if(f&&e[0]instanceof
d)return e[0];if(!(this instanceof d))return kj(d,e);d=Ej(a);var g=!(e[0]instanceof K),h=!1;d&&(f?g?h=!0:e[0].i&&e[0].i.G().returns==d.G().returns||(h=!0):h=!0);if(h)e=sj(e,d.G())?e[0]:uj(d,e),K.call(this,d,vj(d,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];K.call(this,e.i,e.args,e.A)}};z(b,K);b.prototype.name=function(){return a};O(b,a,a);return b};
tj=function(a,b){if(null===a)return null;if(q(a)){var c=p.ee;switch(b){case "Image":return new W(a);case "Feature":return a instanceof U?N("Feature",N("Collection.geometry",a)):new V(a);case "Element":if(a instanceof R)return a;if(a instanceof S)return new V(a);if(a instanceof K)return new R(a.i,a.args,a.A);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof X?N("Collection.geometry",a):new S(a);case "FeatureCollection":case "Collection":return a instanceof U?a:new X(a);
case "ImageCollection":return new Y(a);case "Filter":return new T(a);case "Algorithm":if(r(a))return new M(a);if(w(a)){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return nl(a,c)}if(a instanceof Nd)return a;throw Error("Argument is not a function: "+a);case "String":return qj(a)||a instanceof hl||a instanceof K?new hl(a):a;case "Dictionary":return rj(a)?a:new wl(a);case "List":return new Dk(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new el(a);default:if(b in
c){d=Ej(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(r(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 Ol=function(a,b,c){Jd.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.Od=new vd;this.Nd=new vd};z(Ol,Jd);y("ee.FloatTileOverlay",Ol);Ol.prototype.getTile=function(a,b){var c=Kd(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.Aa,this.token].join("/");this.Ca.push(c);this.Aa+=1;var d=Yf("DIV");Pl(this,b,a,c,d);Ql(this);return d};
var Pl=function(a,b,c,d,e){var f=Mg();f.open("GET",b,!0);f.responseType="arraybuffer";f.onreadystatechange=x(function(){if(f.readyState===XMLHttpRequest.DONE&&200===f.status){var g=f.response;if(g)g=new Float32Array(g),this.Od.set(c,g),this.Nd.set(c,e),fb(this.Ca,d),Ql(this);else throw this.pd.add(d),Error("Unable to request floating point array buffers.");}},a);f.send()},Ql=function(a){a.dispatchEvent(new Ld(a.Ca.length))};Ol.prototype.j=function(){this.Nd=this.Od=null;Ol.h.j.call(this)};var Rl=function(){this.kc=new Map};Rl.prototype.clear=function(){this.kc.clear()};var Sl=function(a,b){a.kc.has(b)||a.kc.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.kc.get(b)};var Tl=function(a){A.call(this);this.Ha=a;this.l={}};z(Tl,A);var Ul=[];Tl.prototype.ha=function(a,b,c,d){t(b)||(b&&(Ul[0]=b.toString()),b=Ul);for(var e=0;e<b.length;e++){var f=dd(a,b[e],c||this.handleEvent,d||!1,this.Ha||this);if(!f)break;this.l[f.key]=f}return this};Tl.prototype.zb=function(a,b,c,d){return Vl(this,a,b,c,d)};var Vl=function(a,b,c,d,e,f){if(t(c))for(var g=0;g<c.length;g++)Vl(a,b,c[g],d,e,f);else{b=cd(b,c,d||a.handleEvent,e,f||a.Ha||a);if(!b)return a;a.l[b.key]=b}return a};
Tl.prototype.qc=function(a,b,c,d,e){if(t(b))for(var f=0;f<b.length;f++)this.qc(a,b[f],c,d,e);else c=c||this.handleEvent,d=v(d)?!!d.capture:!!d,e=e||this.Ha||this,c=ed(c),d=!!d,b=Tc(a)?a.qb(b,c,d,e):a?(a=gd(a))?a.qb(b,c,d,e):null:null,b&&(ld(b),delete this.l[b.key])};Tl.prototype.Db=function(){zb(this.l,function(a,b){this.l.hasOwnProperty(b)&&ld(a)},this);this.l={}};Tl.prototype.j=function(){Tl.h.j.call(this);this.Db()};
Tl.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Xl=function(a,b){q(a.name)?(this.name=a.name,this.code=Gb[a.name]):(this.code=a=Pa(a.code),this.name=Wl(a));Ka.call(this,sc("%s %s",this.name,b))};z(Xl,Ka);var Wl=function(a){var b=Hb(function(c){return a==c});if(!q(b))throw Error("Invalid code: "+a);return b},Gb={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 Yl=function(a,b){Ja.call(this,a.type,b);this.$=a};z(Yl,Ja);var Zl=function(){C.call(this);this.I=new FileReader;this.I.onloadstart=x(this.Va,this);this.I.onprogress=x(this.Va,this);this.I.onload=x(this.Va,this);this.I.onabort=x(this.Va,this);this.I.onerror=x(this.Va,this);this.I.onloadend=x(this.Va,this)};z(Zl,C);l=Zl.prototype;l.abort=function(){try{this.I.abort()}catch(a){throw new Xl(a,"aborting read");}};l.xa=function(){return this.I.readyState};l.getError=function(){return this.I.error&&new Xl(this.I.error,"reading file")};
l.Va=function(a){this.dispatchEvent(new Yl(a,this))};l.j=function(){Zl.h.j.call(this);delete this.I};l.readAsBinaryString=function(a){this.I.readAsBinaryString(a)};l.readAsArrayBuffer=function(a){this.I.readAsArrayBuffer(a)};l.readAsText=function(a,b){this.I.readAsText(a,b)};var $l=function(a,b){B(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 am=function(a,b){C.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.jc=new Rl;this.Ba=new vd;this.Aa=0;this.od=a;this.pa=new Tl(this);this.alt=this.radius=this.projection=void 0};z(am,C);y("ee.layers.AbstractOverlay",am);
am.prototype.yc=function(a){return dd(this,"tile-load",a)};am.prototype.addTileCallback=am.prototype.yc;am.prototype.hd=function(a){ld(a)};am.prototype.removeTileCallback=am.prototype.hd;l=am.prototype;l.Pc=function(){return bm(this,"throttled")+bm(this,"loading")+bm(this,"new")};l.setOpacity=function(a){this.opacity=a;this.Ba.forEach(function(b){$l(b.O,this.opacity)},this)};l.getStats=function(){return this.jc};
l.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.Aa++].join("-"),this.od.Td()].join("-");b=this.Fd(d,b,c,a);b.tileSize=this.tileSize;$l(b.O,this.opacity);this.Ba.set(a,b);cm(this,b);this.od.ae(b,(new Date).getTime()/1E3);return b.O};l.releaseTile=function(a){var b=this.Ba.get(a.id);this.Ba.remove(a.id);b&&(b.abort(),Ia(b))};
var cm=function(a,b){a.pa.ha(b,"status-changed",function(){switch(b.getStatus()){case "loaded":var c=b.$e,d=(new Date).getTime();Sl(this.jc,b.zoom).tileLatencies.push(d-c);this.dispatchEvent(new dm(this.Pc()));break;case "throttled":Sl(this.jc,b.zoom).throttleCount++;this.dispatchEvent(new em(b.ca));break;case "failed":Sl(this.jc,b.zoom).errorCount++,this.dispatchEvent(new fm(b.ca,b.Oe))}})};
am.prototype.j=function(){am.h.j.call(this);this.Ba.forEach(Ia);this.Ba.clear();this.Ba=null;Ia(this.pa);this.od=this.pa=null};var bm=function(a,b){return $a(a.Ba.w(),function(c){return c.getStatus()==b})},dm=function(){Ja.call(this,"tile-load")};z(dm,Ja);var em=function(){Ja.call(this,"tile-throttle")};z(em,Ja);var fm=function(a,b){Ja.call(this,"tile-fail");this.errorMessage=b};z(fm,Ja);
var gm=function(a,b,c,d){C.call(this);this.Ua=a;this.zoom=b;this.O=c.createElement("div");this.O.id=d;this.bf=5;this.fc=function(){};this.ld="new";this.ne=0;this.Xc=!1};z(gm,C);
var im=function(a){if(!a.Xc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");hm(a,"loading");a.$e=(new Date).getTime();a.la=new E;a.la.fb="blob";a.la.ha("complete",function(){var b=bh(this.la),c=this.la.getStatus();429==c&&hm(this,"throttled");if(Ig(c)){var d={};zb(ch(this.la),function(f,g){d[g.toLowerCase()]=f});this.qf=d;this.ue=b;this.pb()}else if(b){var e=new Zl;e.ha("loadend",function(){this.Eb(e.I.result)},void 0,this);e.readAsText(b)}else this.Eb("Failed to load tile.")},
!1,a);a.la.zb("ready",Ga(Ia,a.la));a.ca&&a.ca.endsWith("&profiling=1")&&F&&(a.ca=a.ca.replace("&profiling=1",""),a.la.headers.set("X-Earth-Engine-Computation-Profiling","1"));a.la.send(a.ca,"GET")};l=gm.prototype;l.pb=function(){this.fc(this);hm(this,"loaded")};l.kb=function(){Ia(this.la)};
l.Eb=function(a){var b=function(c){try{if(c=JSON.parse(c),c.error&&c.error.message)return c.error.message}catch(d){}return c};this.ne>=this.bf?(this.Oe=b(a),hm(this,"failed")):(this.kb(),setTimeout(x(function(){this.fa||(this.Xc=!0,im(this),this.Xc=!1)},this),1E3*Math.pow(2,this.ne++)))};l.abort=function(){this.kb();hm(this,"aborted")};l.getStatus=function(){return this.ld};var hm=function(a,b){a.ld=b;a.dispatchEvent("status-changed")},jm={aborted:!0,failed:!0,loaded:!0};
gm.prototype.j=function(){gm.h.j.call(this);this.kb();this.O.remove();this.fc=null};var km=function(){A.call(this)};z(km,A);var lm=function(a,b){am.call(this,a,b);this.zd=new vd;this.Id=new vd};z(lm,am);y("ee.layers.BinaryOverlay",lm);lm.prototype.Fd=function(a,b,c,d){var e=new mm(a,b,c,d);this.pa.ha(e,"status-changed",function(){"loaded"==e.getStatus()&&(this.zd.set(a,new Float32Array(e.Ie)),this.Id.set(a,e.O))});return e};lm.prototype.j=function(){lm.h.j.call(this);this.Id=this.zd=null};var mm=function(a,b,c,d){gm.call(this,a,b,c,d)};z(mm,gm);
mm.prototype.pb=function(){var a=new Zl;a.ha("loadend",function(){this.Ie=a.I.result;gm.prototype.pb.call(this)},void 0,this);a.readAsArrayBuffer(this.ue)};var nm=function(a){C.call(this);this.vb={};this.ub={};this.Ha=new Tl(this);this.u=a};z(nm,C);var om=[zc&&!Jc("11")?"readystatechange":"load","abort","error"],pm=function(a,b,c){(c=r(c)?c:c.src)&&(a.vb[b]={src:c,Ed:q(void 0)?void 0:null})},qm=function(a,b){delete a.vb[b];var c=a.ub[b];c&&(delete a.ub[b],a.Ha.qc(c,om,a.fe),Ib(a.ub)&&Ib(a.vb)&&a.dispatchEvent("complete"))};
nm.prototype.start=function(){var a=this.vb;Va(Eb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.fa)){if(this.u){var d=this.u;d=(d?new dg(cg(d)):La||(La=new dg)).Me("IMG")}else d=new Image;c.Ed&&(d.crossOrigin=c.Ed);this.Ha.ha(d,om,this.fe);this.ub[b]=d;d.id=b;d.src=c.src}},this)};
nm.prototype.fe=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a.type)if("complete"==b.readyState)a.type="load";else return;"undefined"==typeof b.naturalWidth&&("load"==a.type?(b.naturalWidth=b.width,b.naturalHeight=b.height):(b.naturalWidth=0,b.naturalHeight=0));this.dispatchEvent({type:a.type,target:b});this.fa||qm(this,b.id)}};nm.prototype.j=function(){delete this.vb;delete this.ub;Ia(this.Ha);nm.h.j.call(this)};var rm=function(a,b){am.call(this,a,b)};z(rm,am);y("ee.layers.ImageOverlay",rm);rm.prototype.Fd=function(a,b,c,d){return new sm(a,b,c,d)};var sm=function(a,b,c,d){gm.call(this,a,b,c,d);this.fc=tm;this.Wd=this.L=this.Ub=null;this.Bb=""};z(sm,gm);
sm.prototype.pb=function(){try{var a=ic(this.ue);this.Bb=fc(a).toString();var b="about:invalid#zClosurez"!==this.Bb?this.Bb:this.ca}catch(c){b=this.ca}this.L=new nm;pm(this.L,this.O.id+"-image",b);this.Wd=cd(this.L,um,function(c){"load"==c.type?(this.Ub=c.target,gm.prototype.pb.call(this)):this.Eb()},void 0,this);this.L.start()};sm.prototype.kb=function(){sm.h.kb.call(this);this.L&&(ld(this.Wd),Ia(this.L))};sm.prototype.j=function(){sm.h.j.call(this);this.Bb&&URL.revokeObjectURL(this.Bb)};
var um=["load","abort","error"],tm=function(a){a.O.appendChild(a.Ub)};var vm=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 wm=function(a,b,c,d){A.call(this);this.yd=a;this.ra=b;this.nd=d||"";this.Zb=c};z(wm,km);y("ee.layers.CloudStorageTileSource",wm);wm.prototype.ae=function(a){if(a.zoom<=this.Zb)a.ca=this.Rb(a.Ua,a.zoom);else{var b=a.zoom-this.Zb,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.Ua.x/c),Math.floor(a.Ua.y/c));a.ca=this.Rb(c,a.zoom-b);a.fc=Ga(xm,this.Zb)}var d=x(a.Eb,a);a.Eb=x(function(e){e&&(e.includes("The specified key does not exist.")||e.includes("AccessDenied"))?hm(a,"loaded"):d(e)},a);im(a)};
wm.prototype.Td=function(){return[this.yd,this.ra,this.Zb,this.nd].join("-")};wm.prototype.Rb=function(a,b){a=vm("https://storage.googleapis.com",this.yd,this.ra,String(b),String(a.x),String(a.y));this.nd&&(a+=this.nd);return a};
var xm=function(a,b){if(!b.Ub)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.Ub,c/a*(b.Ua.x%a),c/a*(b.Ua.y%a),c/a,c/a,0,0,c,c)};var ym=function(){this.aa=[];this.da=[]};l=ym.prototype;l.enqueue=function(a){this.da.push(a)};l.nb=function(){0==this.aa.length&&(this.aa=this.da,this.aa.reverse(),this.da=[]);return this.aa.pop()};l.o=function(){return this.aa.length+this.da.length};l.isEmpty=function(){return 0==this.aa.length&&0==this.da.length};l.clear=function(){this.aa=[];this.da=[]};l.contains=function(a){return cb(this.aa,a)||cb(this.da,a)};
l.remove=function(a){var b=this.aa;var c=Ua(b,a);0<=c?(eb(b,c),b=!0):b=!1;return b||fb(this.da,a)};l.w=function(){for(var a=[],b=this.aa.length-1;0<=b;--b)a.push(this.aa[b]);var c=this.da.length;for(b=0;b<c;++b)a.push(this.da[b]);return a};var zm=function(a,b){A.call(this);this.be=a||0;this.Yb=b||10;if(this.be>this.Yb)throw Error("[goog.structs.Pool] Min can not be greater than max");this.ga=new ym;this.ya=new Ed;this.delay=0;this.Yc=null;this.Jb()};z(zm,A);zm.prototype.rb=function(){var a=Ha();if(!(null!=this.Yc&&a-this.Yc<this.delay)){for(var b;0<this.ga.o()&&(b=this.ga.nb(),!this.$c(b));)this.Jb();!b&&this.o()<this.Yb&&(b=this.Fc());b&&(this.Yc=a,this.ya.add(b));return b}};
var Am=function(a,b){return a.ya.remove(b)?(a.xc(b),!0):!1};l=zm.prototype;l.xc=function(a){this.ya.remove(a);this.$c(a)&&this.o()<this.Yb?this.ga.enqueue(a):this.Nb(a)};l.Jb=function(){for(var a=this.ga;this.o()<this.be;)a.enqueue(this.Fc());for(;this.o()>this.Yb&&0<this.ga.o();)this.Nb(a.nb())};l.Fc=function(){return{}};l.Nb=function(a){if("function"==typeof a.ea)a.ea();else for(var b in a)a[b]=null};l.$c=function(a){return"function"==typeof a.Ke?a.Ke():!0};
l.contains=function(a){return this.ga.contains(a)||this.ya.contains(a)};l.o=function(){return this.ga.o()+this.ya.o()};l.isEmpty=function(){return this.ga.isEmpty()&&this.ya.isEmpty()};l.j=function(){zm.h.j.call(this);if(0<this.ya.o())throw Error("[goog.structs.Pool] Objects not released");delete this.ya;for(var a=this.ga;!a.isEmpty();)this.Nb(a.nb());delete this.ga};var Bm=function(a,b){this.Zd=a;this.sc=b};Bm.prototype.getKey=function(){return this.Zd};Bm.prototype.clone=function(){return new Bm(this.Zd,this.sc)};var Cm=function(a){this.W=[];if(a)a:{if(a instanceof Cm){var b=a.ba();a=a.w();if(0>=this.o()){for(var c=this.W,d=0;d<b.length;d++)c.push(new Bm(b[d],a[d]));break a}}else b=Eb(a),a=Db(a);for(d=0;d<b.length;d++)Dm(this,b[d],a[d])}},Dm=function(a,b,c){var d=a.W;d.push(new Bm(b,c));b=d.length-1;a=a.W;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};l=Cm.prototype;
l.remove=function(){var a=this.W,b=a.length,c=a[0];if(!(0>=b)){if(1==b)db(a);else{a[0]=a.pop();a=0;b=this.W;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.sc}};l.w=function(){for(var a=this.W,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].sc);return b};l.ba=function(){for(var a=this.W,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
l.lb=function(a){return Ya(this.W,function(b){return b.sc==a})};l.wa=function(a){return Ya(this.W,function(b){return b.getKey()==a})};l.clone=function(){return new Cm(this)};l.o=function(){return this.W.length};l.isEmpty=function(){return 0==this.W.length};l.clear=function(){db(this.W)};var Em=function(){Cm.call(this)};z(Em,Cm);Em.prototype.enqueue=function(a,b){Dm(this,a,b)};Em.prototype.nb=function(){return this.remove()};var Fm=function(a,b){this.Hd=void 0;this.hc=new Em;zm.call(this,a,b)};z(Fm,zm);l=Fm.prototype;l.rb=function(a,b){if(!a)return(a=Fm.h.rb.call(this))&&this.delay&&(this.Hd=p.setTimeout(x(this.Tb,this),this.delay)),a;this.hc.enqueue(q(b)?b:100,a);this.Tb()};l.Tb=function(){for(var a=this.hc;0<a.o();){var b=this.rb();if(b)a.nb().apply(this,[b]);else break}};l.xc=function(a){Fm.h.xc.call(this,a);this.Tb()};l.Jb=function(){Fm.h.Jb.call(this);this.Tb()};
l.j=function(){Fm.h.j.call(this);p.clearTimeout(this.Hd);this.hc.clear();this.hc=null};var Gm=function(a,b){A.call(this);this.Zc=a;this.S=b||null};z(Gm,km);y("ee.layers.EarthEngineTileSource",Gm);Gm.prototype.ae=function(a,b){var c=dd(a,"status-changed",function(){switch(a.getStatus()){case "loaded":var e=a.qf["x-earth-engine-computation-profile"];this.S&&e&&this.S.Fe(a.O.id,e);break;case "failed":case "aborted":this.S&&""!==a.O.id&&this.S.jf(a.O.id),ld(c)}},void 0,this);a.ca=this.Rb(a.Ua,a.zoom);var d=x(this.Sc,this,a);Hm().rb(d,b)};
Gm.prototype.Td=function(){return this.Zc.mapid+"-"+this.Zc.token};Gm.prototype.Sc=function(a,b){var c=Hm();if(a.fa||"aborted"==a.getStatus())Am(c,b);else{var d=dd(a,"status-changed",function(){a.ld in jm&&(ld(d),Am(c,b))});im(a)}};Gm.prototype.Rb=function(a,b){a=this.Zc.formatTileUrl(a.x,a.y,b);return this.S&&this.S.isEnabled()?a+"&profiling=1":a};var Hm=function(){Im||(Im=new Fm(0,4));return Im},Im=null;var Km=function(){C.call(this);this.nc=new Jm(0,60);this.eb=new vd};z(Km,C);y("ee.MapTileManager",Km);Km.Wc=void 0;Km.Sd=function(){return Km.Wc?Km.Wc:Km.Wc=new Km};Km.prototype.send=function(a,b,c,d,e){if(this.eb.get(a))throw Error("[ee.MapTileManager] ID in use");b=new Lm(a,b,d,x(this.le,this),q(e)?e:1);this.eb.set(a,b);a=x(this.Sc,this,b);this.nc.rb(a,c);return b};Km.prototype.abort=function(a){if(a=this.eb.get(a))a.Sa||(a.Sa=!0,a.$=new Ja("abort")),this.le(a)};
Km.prototype.Sc=function(a,b){if(a.L||a.Sa)Mm(this,b);else if(a.setToken(b),b.setActive(!0),b=new nm,a.L=b,!Nm(a))throw Error("Cannot dispatch first request!");};Km.prototype.le=function(a){this.eb.remove(a.getId());a.L&&(Mm(this,a.getToken()),a.L.ea());a.Tc&&a.Tc(a.$,a.je)};var Mm=function(a,b){b.setActive(!1);if(!Am(a.nc,b))throw Error("Object not released");};Km.prototype.j=function(){Km.h.j.call(this);this.nc.ea();this.nc=null;var a=this.eb;Va(a.w(),function(b){b.ea()});a.clear();this.eb=null};
var Lm=function(a,b,c,d,e){A.call(this);this.K=a;this.vf=b;this.cf=q(e)?e:1;this.Tc=c;this.Na=d};z(Lm,A);l=Lm.prototype;l.vd=0;l.Sa=!1;l.L=null;l.ve=null;l.$=null;l.je=null;var Om=["load","abort","error"];l=Lm.prototype;l.getToken=function(){return this.ve};l.setToken=function(a){this.ve=a};l.getId=function(){return this.K};l.getUrl=function(){return this.vf};
l.Te=function(a){if(this.Sa)this.Na&&this.Na(this);else switch(a.type){case "load":this.$=a;this.Na&&this.Na(this);break;case "error":case "abort":Nm(this)||(this.$=a,this.Na&&this.Na(this))}};l.j=function(){Lm.h.j.call(this);delete this.Tc;delete this.Na};var Nm=function(a){if(a.vd>a.cf)return!1;a.vd++;qm(a.L,a.K);setTimeout(x(a.rf,a),0);return!0};
Lm.prototype.rf=function(){if(!this.Sa){var a=x(function(d){this.Sa||(pm(this.L,this.K,d),cd(this.L,Om,x(this.Te,this)),this.L.start())},this),b=this.getUrl();if(qh(b).X.wa("profiling")){var c=new E;c.fb="blob";c.ha("complete",x(function(){this.je=c.getResponseHeader("X-Earth-Engine-Computation-Profile")||null;if(200<=c.getStatus()&&300>c.getStatus())try{var d=fc(ic(bh(c))).toString();var e="about:invalid#zClosurez"!==d}catch(f){}a(e?d:b)},this));c.zb("ready",x(c.ea,c));c.send(b,"GET")}else a(b)}};
var Pm=function(){A.call(this);this.Y=!1};z(Pm,A);Pm.prototype.setActive=function(a){this.Y=a};Pm.prototype.Xd=function(){return this.Y};var Jm=function(a,b){Fm.call(this,a,b)};z(Jm,Fm);Jm.prototype.Fc=function(){return new Pm};Jm.prototype.Nb=function(a){a.ea()};Jm.prototype.$c=function(a){return!a.fa&&!a.Xd()};var Z=function(a,b,c,d,e){Jd.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.qd=new Ed;this.ad=1;this.S=e||null};z(Z,Jd);y("ee.MapLayerOverlay",Z);Z.prototype.yc=function(a){return dd(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.yc;Z.prototype.hd=function(a){ld(a)};
Z.prototype.removeTileCallback=Z.prototype.hd;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=Kd(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.S&&this.S.isEnabled()&&(a+="&profiling=1");b=[b,this.Aa,this.token].join("/");this.Aa+=1;c=Yf("DIV",{id:b});var d=(new Date).getTime()/1E3;this.Ca.push(b);Km.Sd().send(b,a,d,x(this.Se,this,c,b));Ql(this);return c};Z.prototype.Pc=function(){return this.Ca.length};
Z.prototype.releaseTile=function(a){Km.Sd().abort(a.id);this.qd.remove(q(a.firstElementChild)?a.firstElementChild:bg(a.firstChild));""!==a.id&&(this.pd.remove(a.id),this.S&&this.S.jf(a.id))};Z.prototype.setOpacity=function(a){this.ad=a;var b=this.qd.Ra();ud(b,function(c){$l(c,a)})};Z.prototype.getTile=Z.prototype.getTile;Z.prototype.setOpacity=Z.prototype.setOpacity;Z.prototype.releaseTile=Z.prototype.releaseTile;
Z.prototype.Se=function(a,b,c,d){"error"==c.type?(fb(this.Ca,b),this.pd.add(b),this.dispatchEvent(c)):(fb(this.Ca,b),c.target&&"load"==c.type&&(c=c.target,this.qd.add(c),1!=this.ad&&$l(c,this.ad),a.appendChild(c)),Ql(this));this.S&&null!==d&&this.S.Fe(b,d)};var Qm=function(a,b){if(!(this instanceof Qm))return new Qm(a,b);this.ra=a;this.ja=b};z(Qm,L);y("ee.SavedFunction",Qm);Qm.prototype.encode=function(a){return N("LoadAlgorithmById",this.ra).encode(a)};Qm.prototype.G=function(){return this.ja};(function(){var a={},b="ee.Filter.prototype.not ee.Collection.prototype.sort ee.String ee.data.listBuckets ee.data.authenticateViaPopup ee.Serializer.encode ee.Serializer.encodeCloudApi ee.Image ee.batch.Export.table.toDrive ee.Collection.prototype.filterMetadata ee.data.getTableDownloadId ee.InitState ee.ComputedObject.prototype.evaluate ee.Filter.inList ee.Collection.prototype.filterDate ee.data.getThumbId ee.batch.Export.video.toDrive ee.batch.Export.map.toCloudStorage ee.Serializer.toReadableJSON ee.Serializer.toJSON ee.data.getXsrfToken ee.Geometry.MultiLineString ee.Function.prototype.call ee.data.setProject ee.batch.Export.table.toAsset ee.data.getAuthScopes ee.Feature.prototype.getInfo ee.data.getInfo ee.data.setAssetAcl ee.data.setAuthToken ee.Collection.prototype.limit ee.data.getOperation ee.data.makeDownloadUrl ee.Image.prototype.getThumbURL ee.Filter.gte ee.Image.prototype.getMap ee.FeatureCollection.prototype.getMap ee.Geometry.MultiPoint ee.TILE_SIZE ee.batch.Export.video.toCloudStorage ee.Collection.prototype.filter ee.Filter.bounds ee.batch.Export.image.toDrive ee.data.setDeadline ee.data.getCloudApiEnabled ee.Filter.gt ee.data.listImages ee.data.setAuthTokenRefresher ee.FeatureCollection.prototype.getInfo ee.Geometry.LinearRing ee.Element.prototype.set ee.Image.prototype.getDownloadURL ee.Collection.prototype.map ee.ApiFunction._apply ee.data.getValue ee.Serializer.toReadableCloudApiJSON ee.Deserializer.decode ee.call ee.Filter.or ee.data.listAssets ee.batch.Export.image.toCloudStorage ee.data.getAssetAcl ee.Terrain ee.ImageCollection.prototype.getInfo ee.Algorithms ee.data.getAsset ee.ComputedObject.prototype.aside ee.data.getTaskListWithLimit ee.Geometry.prototype.toGeoJSONString ee.Filter ee.data.deleteAsset ee.ComputedObject.prototype.getInfo ee.Function.prototype.apply ee.data.copyAsset ee.ApiFunction._call ee.DateRange ee.Geometry.Point ee.Feature ee.data.authenticateViaOauth ee.initialize ee.data.cancelOperation ee.Image.prototype.getInfo ee.data.getTaskStatus ee.data.authenticate ee.data.getAssetRootQuota ee.Filter.lte ee.FeatureCollection.prototype.getDownloadURL ee.Filter.neq ee.data.startProcessing ee.apply ee.Geometry.MultiPolygon ee.Serializer.encodeCloudApiPretty ee.ImageCollection ee.ApiFunction.lookup ee.Feature.prototype.getMap ee.Geometry.prototype.serialize ee.FeatureCollection ee.data.getList ee.data.getDownloadId ee.data.startIngestion ee.Filter.lt ee.Collection.prototype.iterate ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.first ee.ImageCollection.prototype.select ee.Filter.and ee.Image.prototype.expression ee.FeatureCollection.prototype.select ee.data.getApiBaseUrl ee.data.authenticateViaPrivateKey ee.data.clearAuthToken ee.reset ee.data.cancelTask ee.Geometry ee.Image.cat ee.ImageCollection.prototype.getFilmstripThumbURL ee.data.withProfiling ee.data.createAssetHome ee.batch.Export.videoMap.toCloudStorage ee.Image.prototype.clip ee.batch.Export.image.toAsset ee.data.getTileUrl ee.Image.rgb ee.data.renameAsset ee.Geometry.Rectangle ee.Number ee.data.getAssetRoots ee.data.setExpressionAugmenter ee.Image.prototype.rename ee.Dictionary ee.data.getMapId ee.ComputedObject.prototype.serialize ee.Deserializer.fromJSON ee.Filter.date ee.data.getAuthToken ee.Image.prototype.select ee.data.updateTask ee.batch.Export.table.toCloudStorage ee.data.getTileBaseUrl ee.Collection.prototype.filterBounds ee.data.setCloudApiEnabled ee.data.makeTableDownloadUrl ee.Geometry.Polygon ee.data.createAsset ee.data.createFolder ee.Geometry.prototype.toGeoJSON ee.data.setParamAugmenter ee.data.startTableIngestion ee.data.setAssetProperties ee.data.setApiKey ee.data.makeThumbUrl ee.data.updateAsset ee.Filter.eq ee.data.newTaskId ee.Date ee.ImageCollection.prototype.getMap ee.Geometry.LineString ee.List ee.data.getAuthClientId ee.Filter.metadata ee.data.getTaskList".split(" "),
c=[[],["property","opt_ascending"],["string"],["opt_callback"],["opt_success","opt_error"],["obj","opt_isCompound"],["obj"],["opt_args"],"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),["name","operator","value"],["params","opt_callback"],[],["callback"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["start","opt_end"],["params","opt_callback"],"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),
"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey".split(" "),["obj"],["obj"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["var_args"],["project"],["collection","opt_description","opt_assetId"],[],["opt_callback"],["id","opt_callback"],["assetId","aclUpdate","opt_callback"],"clientId tokenType accessToken expiresIn opt_extraScopes opt_callback opt_updateAuthLibrary".split(" "),["max",
"opt_property","opt_ascending"],["operationName","opt_callback"],["id"],["params","opt_callback"],["name","value"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["coords","opt_proj"],[],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),["filter"],["geometry","opt_errorMargin"],"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(" "),
["milliseconds"],[],["name","value"],["body","opt_callback"],["refresher"],["opt_callback"],["coords","opt_proj","opt_geodesic","opt_maxError"],["var_args"],["params","opt_callback"],["algorithm","opt_dropNulls"],["name","namedArgs"],["params","opt_callback"],["obj"],["json"],["func","var_args"],["var_args"],["body","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(" "),
["assetId","opt_callback"],[],["opt_callback"],[],["id","opt_callback"],["func","var_args"],["opt_limit","opt_callback"],[],["opt_filter"],["assetId","opt_callback"],["opt_callback"],["namedArgs"],["sourceId","destinationId","opt_callback"],["name","var_args"],["start","opt_end","opt_tz"],["coords","opt_proj"],["geometry","opt_properties"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["opt_baseurl","opt_tileurl","opt_successCallback","opt_errorCallback","opt_xsrfToken"],
["operationName","opt_callback"],["opt_callback"],["taskId","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["rootId","opt_callback"],["name","value"],["opt_format","opt_selectors","opt_filename","opt_callback"],["name","value"],["taskId","params","opt_callback"],["func","namedArgs"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["obj"],["args"],["name"],["opt_visParams","opt_callback"],[],["args","opt_column"],["params","opt_callback"],
["params","opt_callback"],["taskId","request","opt_callback"],["name","value"],["algorithm","opt_first"],["params","opt_callback"],[],["selectors","opt_names"],["var_args"],["expression","opt_map"],["propertySelectors","opt_newProperties","opt_retainGeometry"],[],["privateKey","opt_success","opt_error","opt_extraScopes"],[],[],["taskId","opt_callback"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["var_args"],["params","opt_callback"],["hook","body","opt_this"],["requestedId","opt_callback"],
"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles".split(" "),["geometry"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels".split(" "),["mapid","x","y","z"],["r","g","b"],["sourceId","destinationId","opt_callback"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["number"],["opt_callback"],["augmenter"],
["var_args"],["opt_dict"],["params","opt_callback"],[],["json"],["start","opt_end"],[],["var_args"],["taskId","action","opt_callback"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors".split(" "),[],["geometry"],["enable"],["id"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["value","opt_path","opt_force","opt_properties","opt_callback"],["path","opt_force","opt_callback"],[],["augmenter"],["taskId","request","opt_callback"],["assetId","properties",
"opt_callback"],["apiKey"],["id"],["assetId","asset","updateMask","opt_callback"],["name","value"],["opt_count","opt_callback"],["date","opt_tz"],["opt_visParams","opt_callback"],["coords","opt_proj","opt_geodesic","opt_maxError"],["list"],[],["name","operator","value"],["opt_callback"]];[T.prototype.Za,U.prototype.sort,hl,Vi,Ah,Ge,Me,W,Uk,U.prototype.Lc,xi,Jl,K.prototype.evaluate,ok,U.prototype.Kc,ti,Xk,Sk,Je,He,mi,Xj,L.prototype.call,Jh,Vk,Th,V.prototype.D,Ri,ej,Nh,U.prototype.limit,Ii,wi,W.prototype.Qc,
ik,W.prototype.getMap,X.prototype.getMap,Tj,256,Wk,U.prototype.filter,pk,Rk,fi,Mh,jk,Ui,Oh,X.prototype.D,Wj,R.prototype.set,W.prototype.Fa,U.prototype.map,yj,ri,Oe,tl,Kl,mk,Ti,Qk,cj,zl,Y.prototype.D,Hl,Ri,K.prototype.sd,Ei,S.prototype.rd,T,bj,K.prototype.D,L.prototype.apply,aj,N,rl,Qj,V,Bh,Fl,Hi,W.prototype.D,Di,Ch,gj,kk,X.prototype.Fa,gk,Mi,Ll,Zj,Ne,Y,xj,V.prototype.getMap,S.prototype.B,X,Si,vi,Oi,hk,U.prototype.Yd,Y.prototype.Rc,Y.prototype.first,Y.prototype.select,lk,W.prototype.expression,X.prototype.select,
ki,Fh,Qh,Il,Ki,S,Ck,Y.prototype.Oc,zi,Xi,Yk,W.prototype.clip,Ok,qi,Bk,$i,Uj,el,Wi,ji,W.prototype.me,wl,pi,K.prototype.B,ul,nk,Rh,W.prototype.select,Ji,Tk,li,U.prototype.Md,Lh,yi,Yj,Yi,Zi,S.prototype.mc,hi,Qi,fj,Ih,ui,dj,fk,Ai,ol,Y.prototype.getMap,Vj,Dk,Sh,qk,Fi].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});p.EXPORTED_FN_INFO=a})();}).call(this);