@google/earthengine 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.js +425 -519
- package/build/ee_api_js.js +45 -45
- package/build/ee_api_js_debug.js +403 -497
- package/build/ee_api_js_npm.js +425 -519
- package/build/main.js +425 -519
- package/package.json +1 -1
- package/src/apiclient.js +13 -2
package/build/ee_api_js.js
CHANGED
|
@@ -10,8 +10,8 @@ n("Promise",function(a){function b(){this.ob=null}function c(f){return f instanc
|
|
|
10
10
|
})};var e=function(f){this.T=0;this.ia=void 0;this.tc=[];this.Jh=!1;var l=this.af();try{f(l.resolve,l.reject)}catch(m){l.reject(m)}};e.prototype.af=function(){function f(p){return function(v){m||(m=!0,p.call(l,v))}}var l=this,m=!1;return{resolve:f(this.sl),reject:f(this.Yf)}};e.prototype.sl=function(f){if(f===this)this.Yf(new TypeError("A Promise cannot resolve to itself"));else if(f instanceof e)this.ul(f);else{a:switch(typeof f){case "object":var l=f!=null;break a;case "function":l=!0;break a;default:l=
|
|
11
11
|
!1}l?this.rl(f):this.Ah(f)}};e.prototype.rl=function(f){var l=void 0;try{l=f.then}catch(m){this.Yf(m);return}typeof l=="function"?this.vl(l,f):this.Ah(f)};e.prototype.Yf=function(f){this.xi(2,f)};e.prototype.Ah=function(f){this.xi(1,f)};e.prototype.xi=function(f,l){if(this.T!=0)throw Error("Cannot settle("+f+", "+l+"): Promise already settled in state"+this.T);this.T=f;this.ia=l;this.T===2&&this.tl();this.Wk()};e.prototype.tl=function(){var f=this;d(function(){if(f.ml()){var l=k.console;typeof l!==
|
|
12
12
|
"undefined"&&l.error(f.ia)}},1)};e.prototype.ml=function(){if(this.Jh)return!1;var f=k.CustomEvent,l=k.Event,m=k.dispatchEvent;if(typeof m==="undefined")return!0;typeof f==="function"?f=new f("unhandledrejection",{cancelable:!0}):typeof l==="function"?f=new l("unhandledrejection",{cancelable:!0}):(f=k.document.createEvent("CustomEvent"),f.initCustomEvent("unhandledrejection",!1,!0,f));f.promise=this;f.reason=this.ia;return m(f)};e.prototype.Wk=function(){if(this.tc!=null){for(var f=0;f<this.tc.length;++f)g.Gg(this.tc[f]);
|
|
13
|
-
this.tc=null}};var g=new b;e.prototype.ul=function(f){var l=this.af();f.Ad(l.resolve,l.reject)};e.prototype.vl=function(f,l){var m=this.af();try{f.call(l,m.resolve,m.reject)}catch(p){m.reject(p)}};e.prototype.then=function(f,l){function m(C,H){return typeof C=="function"?function(ea){try{p(C(ea))}catch(
|
|
14
|
-
break;case 2:l(p.ia);break;default:throw Error("Unexpected state: "+p.T);}}var p=this;this.tc==null?g.Gg(m):this.tc.push(m);this.Jh=!0};e.resolve=c;e.reject=function(f){return new e(function(l,m){m(f)})};e.race=function(f){return new e(function(l,m){for(var p=q(f),v=p.next();!v.done;v=p.next())c(v.value).Ad(l,m)})};e.all=function(f){var l=q(f),m=l.next();return m.done?c([]):new e(function(p,v){function z(ea){return function(
|
|
13
|
+
this.tc=null}};var g=new b;e.prototype.ul=function(f){var l=this.af();f.Ad(l.resolve,l.reject)};e.prototype.vl=function(f,l){var m=this.af();try{f.call(l,m.resolve,m.reject)}catch(p){m.reject(p)}};e.prototype.then=function(f,l){function m(C,H){return typeof C=="function"?function(ea){try{p(C(ea))}catch(W){v(W)}}:H}var p,v,z=new e(function(C,H){p=C;v=H});this.Ad(m(f,p),m(l,v));return z};e.prototype.catch=function(f){return this.then(void 0,f)};e.prototype.Ad=function(f,l){function m(){switch(p.T){case 1:f(p.ia);
|
|
14
|
+
break;case 2:l(p.ia);break;default:throw Error("Unexpected state: "+p.T);}}var p=this;this.tc==null?g.Gg(m):this.tc.push(m);this.Jh=!0};e.resolve=c;e.reject=function(f){return new e(function(l,m){m(f)})};e.race=function(f){return new e(function(l,m){for(var p=q(f),v=p.next();!v.done;v=p.next())c(v.value).Ad(l,m)})};e.all=function(f){var l=q(f),m=l.next();return m.done?c([]):new e(function(p,v){function z(ea){return function(W){C[ea]=W;H--;H==0&&p(C)}}var C=[],H=0;do C.push(void 0),H++,c(m.value).Ad(z(C.length-
|
|
15
15
|
1),v),m=l.next();while(!m.done)})};return e});n("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});var ta=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};n("Array.prototype.keys",function(a){return a?a:function(){return ta(this,function(b){return b})}});n("globalThis",function(a){return a||k});
|
|
16
16
|
n("WeakMap",function(a){function b(){}function c(m){var p=typeof m;return p==="object"&&m!==null||p==="function"}function d(m){if(!ka(m,g)){var p=new b;ba(m,g,{value:p})}}function e(m){var p=Object[m];p&&(Object[m]=function(v){if(v instanceof b)return v;Object.isExtensible(v)&&d(v);return p(v)})}if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),p=Object.seal({}),v=new a([[m,2],[p,3]]);if(v.get(m)!=2||v.get(p)!=3)return!1;v.delete(m);v.set(p,4);return!v.has(m)&&v.get(p)==4}catch(z){return!1}}())return a;
|
|
17
17
|
var g="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var f=0,l=function(m){this.fa=(f+=Math.random()+1).toString();if(m){m=q(m);for(var p;!(p=m.next()).done;)p=p.value,this.set(p[0],p[1])}};l.prototype.set=function(m,p){if(!c(m))throw Error("Invalid WeakMap key");d(m);if(!ka(m,g))throw Error("WeakMap key fail: "+m);m[g][this.fa]=p;return this};l.prototype.get=function(m){return c(m)&&ka(m,g)?m[g][this.fa]:void 0};l.prototype.has=function(m){return c(m)&&ka(m,g)&&ka(m[g],
|
|
@@ -39,7 +39,7 @@ arguments)},Da=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=
|
|
|
39
39
|
c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},x=function(a,b){a=a.split(".");var c=t;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},y=function(a,b){function c(){}c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Il=function(d,e,g){for(var f=Array(arguments.length-2),l=2;l<arguments.length;l++)f[l-2]=arguments[l];return b.prototype[e].apply(d,
|
|
40
40
|
f)}};var Fa=function(){},Ga=new Fa;function Ha(a){return Object.assign({},{P:{},Kl:{},keys:[],Ma:{},o:{},H:{},qh:!1},a)}var A=function(){this.h={}},B=function(a,b){return a.h.hasOwnProperty(b)?a.h[b]:null},D=function(a,b){return a.h[b]!=null};function Ia(a,b){return B(b,a)}function Ja(a,b,c){b[a]=c}function Ka(){return{}}function La(a,b){var c=new a;return b==null?c:Ma(b,Na,Oa,Pa,a)}function Na(a,b){return b[a]}function Oa(a,b,c){b.h[a]=c}
|
|
41
41
|
function Pa(a){if(a==null)throw Error("Cannot deserialize, target constructor was null.");return new a}
|
|
42
|
-
function Ma(a,b,c,d,e){e=d(e);for(var g=Qa(a,e),f=g.P||{},l=g.o||{},m=g.Ma||{},p=q(g.keys||[]),v=p.next(),z={};!v.done;z={Ud:void 0},v=p.next()){v=v.value;var C=b(v,a);if(C!=null){var H=void 0;if(f.hasOwnProperty(v)){if(g.qh&&C.length===0)continue;H=Ra(C,b,c,d,!0,!0,f[v])}else if(l.hasOwnProperty(v))H=Ra(C,b,c,d,!1,!0,l[v]);else if(m.hasOwnProperty(v))z.Ud=m[v],H=z.Ud.pa?C.map(function(ea){return function(
|
|
42
|
+
function Ma(a,b,c,d,e){e=d(e);for(var g=Qa(a,e),f=g.P||{},l=g.o||{},m=g.Ma||{},p=q(g.keys||[]),v=p.next(),z={};!v.done;z={Ud:void 0},v=p.next()){v=v.value;var C=b(v,a);if(C!=null){var H=void 0;if(f.hasOwnProperty(v)){if(g.qh&&C.length===0)continue;H=Ra(C,b,c,d,!0,!0,f[v])}else if(l.hasOwnProperty(v))H=Ra(C,b,c,d,!1,!0,l[v]);else if(m.hasOwnProperty(v))z.Ud=m[v],H=z.Ud.pa?C.map(function(ea){return function(W){return Sa(W,ea.Ud,b,c,d)}}(z)):Sa(C,z.Ud,b,c,d);else if(Array.isArray(C)){if(g.qh&&C.length===
|
|
43
43
|
0)continue;H=Ra(C,b,c,d,!0,!1)}else H=C instanceof Fa?null:C;c(v,e,H)}}return e}function Sa(a,b,c,d,e){for(var g={},f=q(Object.keys(a)),l=f.next();!l.done;l=f.next()){l=l.value;var m=a[l];m!=null&&(g[l]=Ra(m,c,d,e,b.ra,b.qa,b.ka))}return g}
|
|
44
44
|
function Ra(a,b,c,d,e,g,f){if(g&&f==null)throw Error("Cannot deserialize a reference object without a constructor.");return a==null?a:e&&g?a.map(function(l){return Ma(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Ma(a,b,c,d,f):a instanceof Fa?null:typeof a==="object"?JSON.parse(JSON.stringify(a)):a}function Qa(a,b){if(b instanceof A)a=Ha(b.i());else if(a instanceof A)a=Ha(a.i());else throw Error("Cannot find ClassMetadata.");return a};var Ta=function(){};Ta.prototype.C=function(a,b){a=String(a);if(!b.test(a))throw Error("parameter ["+a+"] does not match pattern ["+b.toString()+"]");};function Ua(a,b){if(a==null)return null;a=a.Ll(b);return a==null?null:a};function Va(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Wa(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function Xa(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d}function Ya(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1}function Za(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function $a(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function ab(a,b){for(var c in a)if(a[c]==b)return!0;return!1}
|
|
45
45
|
function bb(a){var b=cb,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function db(a){for(var b in a)return!1;return!0}function eb(a,b){b in a&&delete a[b]}function fb(a){var b={},c;for(c in a)b[c]=a[c];return b}
|
|
@@ -49,8 +49,8 @@ function ib(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in
|
|
|
49
49
|
Copyright Google LLC
|
|
50
50
|
SPDX-License-Identifier: Apache-2.0
|
|
51
51
|
*/
|
|
52
|
-
var jb={};function kb(){if(jb!==jb)throw Error("Bad secret");};var lb=globalThis.trustedTypes,mb;function nb(){var a=null;if(!lb)return a;try{var b=function(c){return c};a=lb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var ob=function(a){kb();this.ii=a};ob.prototype.toString=function(){return this.ii+""};function pb(a){mb===void 0&&(mb=nb());var b=mb;return new ob(b?b.createScriptURL(a):a)}function qb(a){if(a instanceof ob)return a.ii;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var rb=ia([""]),sb=ha(["\x00"],["\\0"]),tb=ha(["\n"],["\\n"]),ub=ha(["\x00"],["\\u0000"]),vb=ia([""]),wb=ha(["\x00"],["\\0"]),xb=ha(["\n"],["\\n"]),yb=ha(["\x00"],["\\u0000"]);function zb(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function Ab(a){return a.toString().indexOf("`")===-1}var Bb=Ab(function(a){return a(rb)})||Ab(function(a){return a(sb)})||Ab(function(a){return a(tb)})||Ab(function(a){return a(ub)}),Cb=zb(vb)&&zb(wb)&&zb(xb)&&zb(yb);var Db=function(a){kb();this.ji=a};Db.prototype.toString=function(){return this.ji};new Db("about:blank");var Eb=new Db("about:invalid#zClosurez");function Fb(a){if(a instanceof Db)return a.ji;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};function Gb(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return new Db(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if((b==null?void 0:b.length)!==2||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font
|
|
53
|
-
a.type);return new Db(URL.createObjectURL(a))}var Ib=[],Jb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};Ib.indexOf(Jb)===-1&&Ib.push(Jb);function Kb(a,b){a.src=qb(b);var c
|
|
52
|
+
var jb={};function kb(){if(jb!==jb)throw Error("Bad secret");};var lb=globalThis.trustedTypes,mb;function nb(){var a=null;if(!lb)return a;try{var b=function(c){return c};a=lb.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var ob=function(a){kb();this.ii=a};ob.prototype.toString=function(){return this.ii+""};function pb(a){mb===void 0&&(mb=nb());var b=mb;return new ob(b?b.createScriptURL(a):a)}function qb(a){if(a instanceof ob)return a.ii;throw Error("Unexpected type when unwrapping TrustedResourceUrl");};var rb=ia([""]),sb=ha(["\x00"],["\\0"]),tb=ha(["\n"],["\\n"]),ub=ha(["\x00"],["\\u0000"]),vb=ia([""]),wb=ha(["\x00"],["\\0"]),xb=ha(["\n"],["\\n"]),yb=ha(["\x00"],["\\u0000"]);function zb(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function Ab(a){return a.toString().indexOf("`")===-1}var Bb=Ab(function(a){return a(rb)})||Ab(function(a){return a(sb)})||Ab(function(a){return a(tb)})||Ab(function(a){return a(ub)}),Cb=zb(vb)&&zb(wb)&&zb(xb)&&zb(yb);var Db=function(a){kb();this.ji=a};Db.prototype.toString=function(){return this.ji};new Db("about:blank");var Eb=new Db("about:invalid#zClosurez");function Fb(a){if(a instanceof Db)return a.ji;throw Error("Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");};function Gb(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return new Db(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if((b==null?void 0:b.length)!==2||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])))throw Error("unsafe blob MIME type: "+
|
|
53
|
+
a.type);return new Db(URL.createObjectURL(a))}var Ib=[],Jb=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};Ib.indexOf(Jb)===-1&&Ib.push(Jb);function Kb(a,b){a.src=qb(b);var c;b=a.ownerDocument&&a.ownerDocument.defaultView||window;b=b===void 0?document:b;var d;b=(d=(c="document"in b?b.document:b).querySelector)==null?void 0:d.call(c,"script[nonce]");(c=b==null?"":b.nonce||b.getAttribute("nonce")||"")&&a.setAttribute("nonce",c)};function Lb(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,Lb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}y(Lb,Error);Lb.prototype.name="CustomError";var Mb;function Nb(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");Lb.call(this,c+a[d])}y(Nb,Lb);Nb.prototype.name="AssertionError";function Ob(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var g=d}else a&&(e+=": "+a,g=b);throw new Nb(""+e,g||[]);}
|
|
54
54
|
var E=function(a,b,c){a||Ob("",null,b,Array.prototype.slice.call(arguments,2))},Pb=function(a,b,c){a==null&&Ob("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a},Qb=function(a,b){throw new Nb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Rb=function(a,b,c){typeof a!=="number"&&Ob("Expected number but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Sb=function(a,b,c){typeof a!=="string"&&Ob("Expected string but got %s: %s.",
|
|
55
55
|
[wa(a),a],b,Array.prototype.slice.call(arguments,2))},Tb=function(a,b,c){typeof a!=="function"&&Ob("Expected function but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2))},Ub=function(a,b,c){u(a)||Ob("Expected object but got %s: %s.",[wa(a),a],b,Array.prototype.slice.call(arguments,2));return a};var Vb=Array.prototype.indexOf?function(a,b){E(a.length!=null);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Wb=Array.prototype.lastIndexOf?function(a,b){E(a.length!=null);return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;c<0&&(c=Math.max(0,a.length+c));if(typeof a==="string")return typeof b!=="string"||
|
|
56
56
|
b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1},Xb=Array.prototype.forEach?function(a,b){E(a.length!=null);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},Yb=Array.prototype.filter?function(a,b){E(a.length!=null);return Array.prototype.filter.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=[],e=0,g=typeof a==="string"?a.split(""):a,f=0;f<c;f++)if(f in
|
|
@@ -402,7 +402,7 @@ sh.prototype.Ka=function(a,b){var c=c===void 0?{}:c;var d=d===void 0?{}:d;this.j
|
|
|
402
402
|
th.prototype.create=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;this.j.C(a,RegExp("^projects/[^/]+$"));return G(this.j,{body:b,B:"POST",D:"earthengine.projects.videoThumbnails.create",path:"/"+this.m+"/"+a+"/videoThumbnails",u:F(c,d),G:bh})};var uh=function(a,b){this.dl=100;this.Sk=a;this.ql=b;this.Xd=0;this.Pd=null};uh.prototype.get=function(){if(this.Xd>0){this.Xd--;var a=this.Pd;this.Pd=a.next;a.next=null}else a=this.Sk();return a};uh.prototype.put=function(a){this.ql(a);this.Xd<this.dl&&(this.Xd++,a.next=this.Pd,this.Pd=a)};var vh,wh=function(){if(typeof MessageChannel!=="undefined"){var a=new MessageChannel,b={},c=b;a.port1.onmessage=function(){if(b.next!==void 0){b=b.next;var d=b.Ug;b.Ug=null;d()}};return function(d){c.next={Ug:d};c=c.next;a.port2.postMessage(0)}}return function(d){t.setTimeout(d,0)}};function xh(a){t.setTimeout(function(){throw a;},0)};var yh=function(){this.ue=this.ic=null};yh.prototype.add=function(a,b){var c=zh.get();c.set(a,b);this.ue?this.ue.next=c:(E(!this.ic),this.ic=c);this.ue=c};yh.prototype.remove=function(){var a=null;this.ic&&(a=this.ic,this.ic=this.ic.next,this.ic||(this.ue=null),a.next=null);return a};var zh=new uh(function(){return new Ah},function(a){return a.reset()}),Ah=function(){this.next=this.scope=this.qf=null};Ah.prototype.set=function(a,b){this.qf=a;this.scope=b;this.next=null};
|
|
403
403
|
Ah.prototype.reset=function(){this.next=this.scope=this.qf=null};var Bh=t.console&&t.console.createTask?t.console.createTask.bind(t.console):void 0,Ch=Bh?Symbol("consoleTask"):void 0;
|
|
404
404
|
function Dh(a,b){function c(){var l=sa.apply(0,arguments),m=this;return f.run(function(){return a.call.apply(a,[m].concat(ja(l)))})}b=b===void 0?"anonymous":b;if(Ch&&a[Ch])return a;var d=a,e,g=(e=Eh)==null?void 0:e();a=function(){var l=sa.apply(0,arguments),m,p=(m=Eh)==null?void 0:m();if(g!==p)throw Error(b+" was scheduled in '"+g+"' but called in '"+p+"'.\nMake sure your test awaits all async calls.\n\nTIP: To help investigate, debug the test in Chrome and look at the async portion\nof the call stack to see what originally scheduled the callback. Then, make the\ntest wait for the relevant asynchronous work to finish.");return d.call.apply(d,
|
|
405
|
-
[this].concat(ja(l)))};if(!Bh)return a;var f=Bh(a.name||b);c[Pb(Ch)]=f;return c}var Eh;var Fh,Gh=!1,Hh=new yh,Jh=function(a,b){Fh||Ih();Gh||(Fh(),Gh=!0);
|
|
405
|
+
[this].concat(ja(l)))};if(!Bh)return a;var f=Bh(a.name||b);c[Pb(Ch)]=f;return c}var Eh;var Fh,Gh=!1,Hh=new yh,Jh=function(a,b){a=Dh(a,"goog.async.run");Fh||Ih();Gh||(Fh(),Gh=!0);Hh.add(a,b)},Ih=function(){if(t.Promise&&t.Promise.resolve){var a=t.Promise.resolve(void 0);Fh=function(){a.then(Kh)}}else Fh=function(){var b=Kh;typeof t.setImmediate!=="function"||t.Window&&t.Window.prototype&&t.Window.prototype.setImmediate==t.setImmediate?(vh||(vh=wh()),vh(b)):t.setImmediate(b)}};function Kh(){for(var a;a=Hh.remove();){try{a.qf.call(a.scope)}catch(b){xh(b)}zh.put(a)}Gh=!1};var Lh=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Oh=function(a){this.T=0;this.ia=void 0;this.lc=this.fb=this.X=null;this.Md=this.jf=!1;if(a!=Nd)try{var b=this;a.call(void 0,function(c){Mh(b,2,c)},function(c){if(!(c instanceof Nh))try{if(c instanceof Error)throw c;throw Error("Promise rejected.");}catch(d){}Mh(b,3,c)})}catch(c){Mh(this,3,c)}},Ph=function(){this.next=this.context=this.sc=this.Xb=this.Nb=null;this.sd=!1};Ph.prototype.reset=function(){this.context=this.sc=this.Xb=this.Nb=null;this.sd=!1};
|
|
406
406
|
var Qh=new uh(function(){return new Ph},function(a){a.reset()}),Rh=function(a,b,c){var d=Qh.get();d.Xb=a;d.sc=b;d.context=c;return d};Oh.prototype.then=function(a,b,c){a!=null&&Tb(a,"opt_onFulfilled should be a function.");b!=null&&Tb(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return Sh(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)};Oh.prototype.$goog_Thenable=!0;
|
|
407
407
|
Oh.prototype.zl=function(a,b){return Sh(this,null,a,b)};Oh.prototype.catch=Oh.prototype.zl;Oh.prototype.cancel=function(a){if(this.T==0){var b=new Nh(a);Jh(function(){Th(this,b)},this)}};
|
|
408
408
|
var Th=function(a,b){if(a.T==0)if(a.X){var c=a.X;if(c.fb){for(var d=0,e=null,g=null,f=c.fb;f&&(f.sd||(d++,f.Nb==a&&(e=f),!(e&&d>1)));f=f.next)e||(g=f);e&&(c.T==0&&d==1?Th(c,b):(g?(d=g,E(c.fb),E(d!=null),d.next==c.lc&&(c.lc=d),d.next=d.next.next):Uh(c),Vh(c,e,3,b)))}a.X=null}else Mh(a,3,b)},Xh=function(a,b){a.fb||a.T!=2&&a.T!=3||Wh(a);E(b.Xb!=null);a.lc?a.lc.next=b:a.fb=b;a.lc=b},Sh=function(a,b,c,d){b&&(b=Dh(b,"goog.Promise.then"));c&&(c=Dh(c,"goog.Promise.then"));var e=Rh(null,null,null);e.Nb=new Oh(function(g,
|
|
@@ -454,15 +454,15 @@ La(p,f[m]))});return b?b(l):l};return this.callback?(jj(d,null,function(f,l){ret
|
|
|
454
454
|
kj.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=nj();d!=null&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
|
|
455
455
|
var oj=function(a,b,c){a=q(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(b.length<3)){var d=b[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1],e=Number(b[1].match(/^HTTP\S*\s(\d+)\s/)[1]);c(d,e,b.slice(2).join("\r\n\r\n"))}},hj=function(){var a=pj.replace(/\/api$/,"");return"window"in t&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},rj=function(a,b,c){var d=[];a&&(d=d.concat(qj));
|
|
456
456
|
b&&d.push("https://www.googleapis.com/auth/devstorage.read_write");a=d=d.concat(c);c=b=0;for(var e={};c<a.length;){var g=a[c++],f=u(g)?"o"+Ba(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},xj=function(a,b,c){sj&&tj&&sj({client_id:String(tj),scope:uj.join(" "),plugin_name:"earthengine"},function(d){if(d.error=="immediate_failed"&&c)c();else if("window"in t)try{vj(function(){try{wj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else wj(a,
|
|
457
|
-
b,d)})},nj=function(){yj&&Date.now()-yj>=0&&zj();return Aj},zj=function(){yj=Aj=null},ej=function(a,b,c,d){a!=null?pj=a:Bj||(pj="https://earthengine.googleapis.com/api");b!=null?Cj=b:Bj||(Cj="https://earthengine.googleapis.com");c!==void 0&&(Dj=c);dj=d!=null?d:dj||"earthengine-legacy";Bj=!0},jj=function(a,b,c,d,e,g,f){ej();var l=Ej,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="1.1.
|
|
457
|
+
b,d)})},nj=function(){yj&&Date.now()-yj>=0&&zj();return Aj},zj=function(){yj=Aj=null},ej=function(a,b,c,d){a!=null?pj=a:Bj||(pj="https://earthengine.googleapis.com/api");b!=null?Cj=b:Bj||(Cj="https://earthengine.googleapis.com");c!==void 0&&(Dj=c);dj=d!=null?d:dj||"earthengine-legacy";Bj=!0},jj=function(a,b,c,d,e,g,f){ej();var l=Ej,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="1.1.4";p==="1.1.4"&&
|
|
458
458
|
(p="latest");m["x-goog-api-client"]="ee-js/"+p;p=nj();if(p!=null)m.Authorization=p;else if(c&&sj&&tj)return xj(function(){Fj(l,function(){jj(a,b,c,d)})}),null;b=b?b.clone():new Sc;Gj!=null&&b.add("key",Gj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");dj&&dj!=="earthengine-legacy"&&(m["X-Goog-User-Project"]=dj);b=Hj(b,a);Dj!=null&&(m["X-XSRF-Token"]=Dj);Ij!=null&&(m["X-Earth-Engine-App-ID-Token"]=Ij);p=e||null;var v=b?b.toString():"";d==="POST"&&e===void 0?p=v:/^[\s\xa0]*$/.test(v)||(a+=a.indexOf("?")!=
|
|
459
459
|
-1?"&":"?",a+=v);e=a.startsWith("/")?pj+a:a;if(c)return Jj.push(Kj(e,c,d,p,m,g,f)),Lj.nf(),null;v=function(H,ea){this.setRequestHeader&&this.setRequestHeader(ea,H)};var z=0;for(g=g!=null?g:5;;){var C=new XMLHttpRequest;C.open(d,e,!1);Va(m,v,C);C.send(p);if(C.status!=429||z>g)break;z++}return Mj(C.status,function(H){try{return C.getResponseHeader(H)}catch(ea){return null}},C.responseText,l,void 0,e,d,f)},Kj=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=Ej,v=g!=null?g:10;
|
|
460
|
-
m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Jj.push(m);Lj.nf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var C=Mj,H=z.getStatus(),ea=w(z.getResponseHeader,z);try{var
|
|
461
|
-
function(
|
|
462
|
-
C=c.parsed:z=c;else if(d==="multipart/mixed"){C={};var H=[];oj(b,c,function(
|
|
463
|
-
b():zi(b)},wj=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||c.expires_in===0){c=c.expires_in*900;var d=setTimeout(xj,c*.9);d.unref!==void 0&&d.unref();yj=Date.now()+c}Aj=b;a&&a()}else b&&b(c.error||"Unknown error.")},ij=function(a){var b=new Sc;a=q(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=q(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Jj=[],Lj=new ci(function(){var a=
|
|
464
|
-
e=a.content;a=a.headers;var g=Nj,f=new Si;Vi.push(f);c&&f.Wa("complete",c);f.Uc("ready",f.Qk);g&&(f.ld=Math.max(0,g));f.send(b,d,e,a)}Jj.length==0||Lj.nf()},350),pj=null,Cj=null,Dj=null,Ij=null,Hj=Od,Aj=null,yj=null,tj=null,uj=[],sj=null,qj=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform"],Gj=null,Bj=!1,Nj=0,Ej=null;x("ee.api.ListAssetsResponse",Dg);x("ee.api.EarthEngineAsset",zf);
|
|
465
|
-
x("ee.api.FeatureViewLocation",Cf);var Oj=function(){};Oj.prototype.Ch=function(){return null};var Pj=function(){};x("ee.Encodable.SourceFrame",Pj);
|
|
460
|
+
m.callback=function(z){z=z.target;if(z.getStatus()==429&&l<v)return l++,setTimeout(function(){Jj.push(m);Lj.nf()},Math.min(12E4,Math.pow(2,l)*1E3)),null;var C=Mj,H=z.getStatus(),ea=w(z.getResponseHeader,z);try{var W=z.s?z.s.responseText:""}catch(da){Cc(z.ba,"Can not get responseText: "+da.message),W=""}return C(H,ea,W,p,b,a,c,f)};return m},Fj=function(a,b){var c=Ej;try{Ej=a,b.call(void 0)}finally{Ej=c}},Mj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
|
|
461
|
+
function(W){try{var da=JSON.parse(W);return!(u(da)&&"error"in da&&"message"in da.error)||l&&l(da)?{parsed:da}:da.error.message}catch(Hb){return W===""?"":"Invalid JSON: "+W}},v=function(W){return W===0?"Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.":W<200||W>=300?"Server returned HTTP code: "+W+" for "+f+" "+g:""},z,C;b=b("Content-Type")||"application/json";d=b.replace(/;.*/,"");if(d==="application/json"||d==="text/json")c=p(c),c.parsed?
|
|
462
|
+
C=c.parsed:z=c||v(a)||"Response was too large to parse. Hint: Use limit() to fetch less elements of a collection.";else if(d==="multipart/mixed"){C={};var H=[];oj(b,c,function(W,da,Hb){Hb=p(Hb);Hb.parsed&&(C[W]=Hb.parsed);(da=(Hb.parsed?"":Hb)||v(da))&&H.push(W+": "+da)});H.length&&(z=H.join("\n"))}else var ea="Response was unexpectedly not JSON, but "+d;z=z||v(a)||ea;if(e)return e(C,z),null;if(!z)return C;throw Error(z);},vj=function(a){var b=function(){sj||(sj=function(c,d){t.google.accounts.oauth2.initTokenClient({client_id:c.client_id,
|
|
463
|
+
callback:d,scope:c.scope}).requestAccessToken()});a()};u(t.default_gsi)?b():zi(b)},wj=function(a,b,c){if(c.access_token){b=c.token_type+" "+c.access_token;if(c.expires_in||c.expires_in===0){c=c.expires_in*900;var d=setTimeout(xj,c*.9);d.unref!==void 0&&d.unref();yj=Date.now()+c}Aj=b;a&&a()}else b&&b(c.error||"Unknown error.")},ij=function(a){var b=new Sc;a=q(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=q(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Jj=[],Lj=new ci(function(){var a=
|
|
464
|
+
Jj.shift();if(a){var b=a.url,c=a.callback,d=a.method,e=a.content;a=a.headers;var g=Nj,f=new Si;Vi.push(f);c&&f.Wa("complete",c);f.Uc("ready",f.Qk);g&&(f.ld=Math.max(0,g));f.send(b,d,e,a)}Jj.length==0||Lj.nf()},350),pj=null,Cj=null,Dj=null,Ij=null,Hj=Od,Aj=null,yj=null,tj=null,uj=[],sj=null,qj=["https://www.googleapis.com/auth/earthengine","https://www.googleapis.com/auth/cloud-platform"],Gj=null,Bj=!1,Nj=0,Ej=null;x("ee.api.ListAssetsResponse",Dg);x("ee.api.EarthEngineAsset",zf);
|
|
465
|
+
x("ee.api.Operation",Gg);x("ee.api.ListFeaturesResponse",Eg);x("ee.api.FeatureViewLocation",Cf);var Oj=function(){};Oj.prototype.Ch=function(){return null};var Pj=function(){};x("ee.Encodable.SourceFrame",Pj);
|
|
466
466
|
var Qj=function(a){if(a===void 0||a===null)a=Ga;return new Ze({gb:a})},Rj=function(a){return new Ze({Oa:a})},Sj=function(a){return new Ze({Fa:new Ye({values:a})})},Tj=function(a){return new Ze({Ga:new wf({values:a})})},Uj=function(a,b){return new Ze({ya:new jg({functionName:a,arguments:b})})},Vj=function(a,b){return new Ze({ya:new jg({Ua:a,arguments:b})})},Wj=function(a,b){return new Ze({Ta:new ig({kc:a,body:b})})},Xj=function(a){if(!a)return"AUTO_JPEG_PNG";a=a.toUpperCase();switch(a){case "JPG":return"JPEG";
|
|
467
467
|
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";case "ZIPPED_TIF":case "ZIPPED_TIFF":case "ZIPPED_GEOTIF":case "ZIPPED_GEOTIFF":return"ZIPPED_GEO_TIFF";case "ZIPPED_TIF_PER_BAND":case "ZIPPED_TIFF_PER_BAND":case "ZIPPED_GEOTIF_PER_BAND":case "ZIPPED_GEOTIFF_PER_BAND":return"ZIPPED_GEO_TIFF_PER_BAND";default:return a}},Yj=function(a){if(!a)return"CSV";a=a.toUpperCase();
|
|
468
468
|
switch(a){case "TF_RECORD":case "TFRECORD":return"TF_RECORD_TABLE";case "JSON":case "GEOJSON":return"GEO_JSON";default:return a}},Zj=function(a){if(!a)return"VERTICAL";a=a.toUpperCase();if(a!=="HORIZONTAL"&&a!=="VERTICAL")throw Error('Orientation must be "horizontal" or "vertical"');return a},ak=function(a){if(!a)return[];if(typeof a==="string")return a.split(",");if(Array.isArray(a))return a;throw Error("Invalid band list "+a);},dk=function(a){var b=new Hf,c=!1;"palette"in a&&(c=a.palette,b.Yc=typeof c===
|
|
@@ -605,9 +605,9 @@ U.or=On;var Pn=function(a,b){var c=R(Pn,arguments);c=Q("DateRange",c.start,c.end
|
|
|
605
605
|
U.prototype.name=function(){return"Filter"};var Sn=function(a,b,c){b=b.toLowerCase();var d=!1;b.lastIndexOf("not_",0)==0&&(d=!0,b=b.substring(4));if(!(b in Gn))throw Error("Unknown filtering operator: "+b);a=Q("Filter."+Gn[b],a,c);return d?a.rc():a};U.metadata=Sn;var V=function(a,b,c){S.call(this,a,b,c);Tn()};y(V,S);x("ee.Collection",V);var Un=!1,Tn=function(){Un||(an(V,"Collection","Collection"),an(V,"AggregateFeatureCollection","Collection","aggregate_"),Un=!0)};V.prototype.filter=function(a){a=R(V.prototype.filter,arguments).filter;if(!a)throw Error("Empty filters.");return Hm(this,Q("Collection.filter",this,a))};V.prototype.filter=V.prototype.filter;
|
|
606
606
|
V.prototype.mf=function(a,b,c){var d=R(V.prototype.mf,arguments);return this.filter(Sn(d.name,d.operator,d.value))};V.prototype.filterMetadata=V.prototype.mf;V.prototype.vh=function(a){return this.filter(Rn(a))};V.prototype.filterBounds=V.prototype.vh;V.prototype.lf=function(a,b){var c=R(V.prototype.lf,arguments);return this.filter(Pn(c.start,c.end))};V.prototype.filterDate=V.prototype.lf;
|
|
607
607
|
V.prototype.limit=function(a,b,c){var d=R(V.prototype.limit,arguments);return Hm(this,Q("Collection.limit",this,d.max,d.property,d.ascending))};V.prototype.limit=V.prototype.limit;V.prototype.sort=function(a,b){var c=R(V.prototype.sort,arguments);return Hm(this,Q("Collection.limit",this,void 0,c.property,c.ascending))};V.prototype.sort=V.prototype.sort;V.prototype.name=function(){return"Collection"};V.prototype.elementType=function(){return S};
|
|
608
|
-
V.prototype.map=function(a,b){var c=this.elementType();return Hm(this,Q("Collection.map",this,function(d){return a(new c(d))},b))};V.prototype.map=V.prototype.map;V.prototype.Kh=function(a,b){b=b!==void 0?b:null;var c=this.elementType();return Q("Collection.iterate",this,function(d,e){return a(new c(d),e)},b)};V.prototype.iterate=V.prototype.Kh;var
|
|
609
|
-
c)throw Error('Can\'t specify both "id" and "system:index".');c=fb(c);c["system:index"]=a.id}S.call(this,new P("Feature"),{geometry:new T(a.geometry),metadata:c})}else S.call(this,new P("Feature"),{geometry:new T(a),metadata:b||null})};y(
|
|
610
|
-
|
|
608
|
+
V.prototype.map=function(a,b){var c=this.elementType();return Hm(this,Q("Collection.map",this,function(d){return a(new c(d))},b))};V.prototype.map=V.prototype.map;V.prototype.Kh=function(a,b){b=b!==void 0?b:null;var c=this.elementType();return Q("Collection.iterate",this,function(d,e){return a(new c(d),e)},b)};V.prototype.iterate=V.prototype.Kh;var X=function(a,b){if(!(this instanceof X))return Gm(X,arguments);if(a instanceof X){if(b)throw Error("Can't create Feature out of a Feature and properties.");return a}if(arguments.length>2)throw Error("The Feature constructor takes at most 2 arguments ("+arguments.length+" given)");Vn();if(a instanceof T||a===null)S.call(this,new P("Feature"),{geometry:a,metadata:b||null});else if(a instanceof O)S.call(this,a.I,a.args,a.U);else if(a.type=="Feature"){var c=a.properties||{};if("id"in a){if("system:index"in
|
|
609
|
+
c)throw Error('Can\'t specify both "id" and "system:index".');c=fb(c);c["system:index"]=a.id}S.call(this,new P("Feature"),{geometry:new T(a.geometry),metadata:c})}else S.call(this,new P("Feature"),{geometry:new T(a),metadata:b||null})};y(X,S);x("ee.Feature",X);var Wn=!1,Vn=function(){Wn||(an(X,"Feature","Feature"),Wn=!0)};X.prototype.V=function(a){return X.L.V.call(this,a)};X.prototype.getInfo=X.prototype.V;
|
|
610
|
+
X.prototype.S=function(a,b){var c=R(X.prototype.getMap,arguments);return Q("Collection",[this]).S(c.visParams,c.callback)};X.prototype.getMapId=X.prototype.S;X.prototype.getMap=X.prototype.S;X.prototype.getMap=X.prototype.getMap;X.prototype.name=function(){return"Feature"};var em=function(a){var b={},c=Xn(a.element,a);c=Yn(c,a,b);b.element=c;return b},fm=function(a){var b={},c=a.element.map(function(d){d=Xn(d,a);return Yn(d,a,b)});b.element=c;return b},Yn=function(a,b,c){var d={},e=!1,g=["maxDimension","width","height","scale"];Va(b,function(f,l){if(f!=null)switch(l){case "dimensions":l=typeof f==="string"?f.split("x").map(Number):Array.isArray(f)?f:typeof f==="number"?[f]:[];if(l.length===1)d.maxDimension=l[0];else if(l.length===2)d.width=l[0],d.height=l[1];else throw Error("Invalid dimensions "+
|
|
611
611
|
f);break;case "dimensions_consumed":e=!0;break;case "bbox":d.geometry!=null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof rn)){l=f;if(typeof f==="string")try{l=JSON.parse(f)}catch(m){l=f.split(/\s*,\s*/).map(Number)}if(Array.isArray(l)){if(l.some(isNaN))throw Error("Invalid bbox `{bboxArray}`, please specify a list of numbers.");f=new rn(l,null,!1)}else throw Error('Invalid bbox "{bbox}" type, must be of type Array<number>');}d.geometry=f;break;case "region":d.geometry!=
|
|
612
612
|
null&&console.warn("Multiple request parameters converted to region.");if(!(f instanceof T)){l=f;if(typeof f==="string")try{l=JSON.parse(f)}catch(m){throw Error('Region string "'+f+'" is not valid GeoJSON.');}if(Array.isArray(l))f=new yn(l,null,!1);else if(u(l))f=new T(l,null,!1);else throw Error("Region {region} was not convertible to an ee.Geometry.");}d.geometry=f;break;case "scale":d.scale=Number(f);break;default:c[l]=f}});db(d)||(d.input=a,a=g.some(function(f){return f in d})||e?Um("Image.clipToBoundsAndScale",
|
|
613
613
|
d):Um("Image.clip",d));return a},Xn=function(a,b){var c=b.crs||"",d=b.crsTransform||b.crs_transform;d!=null&&(d=Zn(d));if(!c&&!d)return a;if(d&&!c)throw Error('Must specify "crs" if "crsTransform" is specified.');if(d){if(a=Um("Image.reproject",{image:a,crs:c,crsTransform:d}),b.dimensions!=null&&b.scale==null&&b.region==null){var e=b.dimensions;typeof e==="string"&&(e=e.split("x").map(Number));e.length===2&&(delete b.dimensions,b.dimensions_consumed=!0,c=(new P("Projection")).call(c,d),b.region=new rn([0,
|
|
@@ -622,24 +622,24 @@ var co=function(a,b){if(a.length==0)return Q("Image.constant",[]);for(var c=new
|
|
|
622
622
|
N.prototype.select=function(a){var b=Array.prototype.slice.call(arguments),c={input:this,bandSelectors:b[0]||[]};if(b.length>2||Lm(b[0])||Km(b[0])){for(var d=0;d<b.length;d++)if(!(Lm(b[d])||Km(b[d])||b[d]instanceof O))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Um("Image.select",c)};N.prototype.select=N.prototype.select;
|
|
623
623
|
N.prototype.l=function(a,b){var c=R(N.prototype.l,arguments),d=["DEFAULT_EXPRESSION_IMAGE"],e={DEFAULT_EXPRESSION_IMAGE:this};if(c.map){var g=c.map,f;for(f in g)d.push(f),e[f]=new N(g[f])}var l=Q("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new Om;c.encode=function(m){return l.encode(m)};c.Ed=function(m,p){return Vj(Yk(m,l),p)};c.Z=function(){return{name:"",args:Zb(d,function(m){return{name:m,type:"Image",optional:!1}},this),returns:"Image"}};return c.apply(e)};
|
|
624
624
|
N.prototype.expression=N.prototype.l;N.prototype.clip=function(a){try{a=new T(a)}catch(b){}return Q("Image.clip",this,a)};N.prototype.clip=N.prototype.clip;N.prototype.pi=function(a){var b=arguments.length!=1||Lm(arguments[0])?Array.from(arguments):arguments[0];return Q("Image.rename",this,b)};N.prototype.rename=N.prototype.pi;N.prototype.name=function(){return"Image"};var ho=function(a){if(this instanceof ho){if(arguments.length>1)throw Error("ee.List() only accepts 1 argument.");if(a instanceof ho)return a}else return Gm(ho,arguments);io();if(Array.isArray(a))O.call(this,null,null),this.Tc=a;else if(a instanceof O)O.call(this,a.I,a.args,a.U),this.Tc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};y(ho,O);x("ee.List",ho);var jo=!1,io=function(){jo||(an(ho,"List","List"),jo=!0)};
|
|
625
|
-
ho.prototype.encode=function(a){return Array.isArray(this.Tc)?Zb(this.Tc,function(b){return a(b)}):ho.L.encode.call(this,a)};ho.prototype.na=function(a){return Array.isArray(this.Tc)?Rj(Yk(a,this.Tc)):ho.L.na.call(this,a)};ho.prototype.name=function(){return"List"};var
|
|
626
|
-
new P("Collection"),{features:a});else if(a&&typeof a==="object"&&a.type==="FeatureCollection")V.call(this,new P("Collection"),{features:a.features.map(function(d){return new
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
else if(a instanceof O)V.call(this,a.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};y(
|
|
631
|
-
|
|
625
|
+
ho.prototype.encode=function(a){return Array.isArray(this.Tc)?Zb(this.Tc,function(b){return a(b)}):ho.L.encode.call(this,a)};ho.prototype.na=function(a){return Array.isArray(this.Tc)?Rj(Yk(a,this.Tc)):ho.L.na.call(this,a)};ho.prototype.name=function(){return"List"};var Y=function(a,b){if(!(this instanceof Y))return Gm(Y,arguments);if(a instanceof Y)return a;if(arguments.length>2)throw Error("The FeatureCollection constructor takes at most 2 arguments ("+arguments.length+" given)");ko();a instanceof T&&(a=new X(a));a instanceof X&&(a=[a]);if(Lm(a)){var c={tableId:a};b&&(c.geometryColumn=b);V.call(this,new P("Collection.loadTable"),c)}else if(Array.isArray(a))V.call(this,new P("Collection"),{features:Zb(a,function(d){return new X(d)})});else if(a instanceof ho)V.call(this,
|
|
626
|
+
new P("Collection"),{features:a});else if(a&&typeof a==="object"&&a.type==="FeatureCollection")V.call(this,new P("Collection"),{features:a.features.map(function(d){return new X(d)})});else if(a instanceof O)V.call(this,a.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};y(Y,V);x("ee.FeatureCollection",Y);var lo=!1,ko=function(){lo||(an(Y,"FeatureCollection","FeatureCollection"),lo=!0)};
|
|
627
|
+
Y.prototype.S=function(a,b){var c=R(Y.prototype.S,arguments),d=Um("Collection.draw",{collection:this,color:(c.visParams||{}).color||"000000"});if(c.callback)d.S(void 0,c.callback);else return d.S()};Y.prototype.getMapId=Y.prototype.S;Y.prototype.getMap=Y.prototype.S;Y.prototype.getMap=Y.prototype.getMap;Y.prototype.V=function(a){return Y.L.V.call(this,a)};Y.prototype.getInfo=Y.prototype.V;
|
|
628
|
+
Y.prototype.rb=function(a,b,c,d){var e=R(Y.prototype.rb,arguments),g={table:this};e.format&&(g.format=e.format.toUpperCase());e.filename&&(g.filename=e.filename);e.selectors&&(g.selectors=e.selectors);if(e.callback)Ll(g,function(f,l){f?e.callback(Ml(f)):e.callback(null,l)});else return Ml(Ll(g))};Y.prototype.getDownloadURL=Y.prototype.rb;
|
|
629
|
+
Y.prototype.select=function(a,b,c){if(Lm(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(g){return g.select(d)})}var e=R(Y.prototype.select,arguments);return this.map(function(g){return g.select(e)})};Y.prototype.select=Y.prototype.select;Y.prototype.name=function(){return"FeatureCollection"};Y.prototype.elementType=function(){return X};var Z=function(a){if(!(this instanceof Z))return Gm(Z,arguments);if(a instanceof Z)return a;if(arguments.length!=1)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");mo();a instanceof N&&(a=[a]);if(Lm(a))V.call(this,new P("ImageCollection.load"),{id:a});else if(Array.isArray(a))V.call(this,new P("ImageCollection.fromImages"),{images:Zb(a,function(b){return new N(b)})});else if(a instanceof ho)V.call(this,new P("ImageCollection.fromImages"),{images:a});
|
|
630
|
+
else if(a instanceof O)V.call(this,a.I,a.args,a.U);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};y(Z,V);x("ee.ImageCollection",Z);var no=!1,mo=function(){no||(an(Z,"ImageCollection","ImageCollection"),an(Z,"reduce","ImageCollection"),no=!0)};Z.prototype.tf=function(a,b){var c=R(Z.prototype.tf,arguments);return oo(this,c,["png","jpg","jpeg"],"filmstrip")};Z.prototype.getFilmstripThumbURL=Z.prototype.tf;
|
|
631
|
+
Z.prototype.wf=function(a,b){var c=R(Z.prototype.wf,arguments);return oo(this,c,["gif"],"video")};Z.prototype.getVideoThumbURL=Z.prototype.wf;
|
|
632
632
|
var oo=function(a,b,c,d){var e={};a=a.map(function(l){l=Xn(l,b.params);return Yn(l,b.params,e)});var g={},f=$n(e,g);g.imageCollection=a.map(function(l){f.image=l;return Um("Image.visualize",f)});b.params.dimensions!=null&&(g.dimensions=b.params.dimensions);if(g.format){if(!$b(c,function(l){return l.toLowerCase()==g.format.toLowerCase()}))throw Error("Invalid format specified.");}else g.format=c[0];c=El;switch(d){case "video":c=Fl;break;case "filmstrip":c=Gl}if(b.callback)c(g,function(l,m){var p="";
|
|
633
|
-
if(m===void 0)try{p=Hl(l)}catch(v){m=String(v.message)}b.callback(p,m)});else return Hl(c(g))};
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
po.prototype.start=po.prototype.start;var so=function(a,b,c,d,e,g,f,l,m,p,v,z){var C=R(so,arguments);C=to(C,"ASSET","EXPORT_IMAGE");return ro(C)};x("module$contents$ee$batch_Export.image.toAsset",so);var uo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H,ea,
|
|
637
|
-
var vo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H,ea,
|
|
633
|
+
if(m===void 0)try{p=Hl(l)}catch(v){m=String(v.message)}b.callback(p,m)});else return Hl(c(g))};Z.prototype.S=function(a,b){var c=R(Z.prototype.S,arguments),d=Q("ImageCollection.mosaic",this);if(c.callback)d.S(c.visParams,c.callback);else return d.S(c.visParams)};Z.prototype.getMapId=Z.prototype.S;Z.prototype.getMap=Z.prototype.S;Z.prototype.getMap=Z.prototype.getMap;Z.prototype.V=function(a){return Z.L.V.call(this,a)};Z.prototype.getInfo=Z.prototype.V;
|
|
634
|
+
Z.prototype.select=function(a,b){var c=arguments;return this.map(function(d){return d.select.apply(d,c)})};Z.prototype.select=Z.prototype.select;Z.prototype.Ff=function(a,b,c,d){var e=R(Z.prototype.Ff,arguments);return this.map(function(g){return Q("Image.linkCollection",g,e.imageCollection,e.linkedBands,e.linkedProperties,e.matchPropertyName)})};Z.prototype.linkCollection=Z.prototype.Ff;Z.prototype.first=function(){return new N(Q("Collection.first",this))};Z.prototype.first=Z.prototype.first;
|
|
635
|
+
Z.prototype.name=function(){return"ImageCollection"};Z.prototype.elementType=function(){return N};var po=function(a){this.Ye=a;this.id=null},ro=function(a){var b={element:qo(a)};Object.assign(b,a);b=Wa(b,function(c){return c!=null});return new po(b)};po.prototype.start=function(a,b){var c=this;E(this.Ye,"Task config must be specified for tasks to be started.");this.id=this.id||Nl(1)[0];Sb(this.id,"Failed to obtain task ID.");if(a)dm(this.id,this.Ye,function(e,g){if(g)b(g);else{var f;c.id=(f=e.taskId)!=null?f:null;a()}});else{var d;this.id=(d=dm(this.id,this.Ye).taskId)!=null?d:null}};
|
|
636
|
+
po.prototype.start=po.prototype.start;var so=function(a,b,c,d,e,g,f,l,m,p,v,z){var C=R(so,arguments);C=to(C,"ASSET","EXPORT_IMAGE");return ro(C)};x("module$contents$ee$batch_Export.image.toAsset",so);var uo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H,ea,W){var da=R(uo,arguments);da=to(da,"GOOGLE_CLOUD_STORAGE","EXPORT_IMAGE");return ro(da)};x("module$contents$ee$batch_Export.image.toCloudStorage",uo);
|
|
637
|
+
var vo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H,ea,W){var da=R(vo,arguments);da=to(da,"DRIVE","EXPORT_IMAGE");return ro(da)};x("module$contents$ee$batch_Export.image.toDrive",vo);var wo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H){var ea=R(wo,arguments);ea=to(ea,"GOOGLE_CLOUD_STORAGE","EXPORT_TILES");return ro(ea)};x("module$contents$ee$batch_Export.map.toCloudStorage",wo);var xo=function(a,b,c,d,e,g,f,l){var m=R(xo,arguments);m=to(m,"GOOGLE_CLOUD_STORAGE","EXPORT_FEATURES");return ro(m)};
|
|
638
638
|
x("module$contents$ee$batch_Export.table.toCloudStorage",xo);var yo=function(a,b,c,d,e,g,f,l){var m=R(yo,arguments);m.type="EXPORT_FEATURES";m=to(m,"DRIVE","EXPORT_FEATURES");return ro(m)};x("module$contents$ee$batch_Export.table.toDrive",yo);var zo=function(a,b,c,d,e){var g=R(zo,arguments);g=to(g,"ASSET","EXPORT_FEATURES");return ro(g)};x("module$contents$ee$batch_Export.table.toAsset",zo);var Ao=function(a,b,c,d,e,g,f,l){var m=R(Ao,arguments);m=to(m,"FEATURE_VIEW","EXPORT_FEATURES");return ro(m)};
|
|
639
639
|
x("module$contents$ee$batch_Export.table.toFeatureView",Ao);var Bo=function(a,b,c,d,e,g,f,l){var m=R(Bo,arguments);m=to(m,"BIGQUERY","EXPORT_FEATURES");return ro(m)};x("module$contents$ee$batch_Export.table.toBigQuery",Bo);var Co=function(a,b,c,d,e,g,f,l,m,p,v,z,C){var H=R(Co,arguments);H=to(H,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO");return ro(H)};x("module$contents$ee$batch_Export.video.toCloudStorage",Co);
|
|
640
|
-
var Do=function(a,b,c,d,e,g,f,l,m,p,v,z,C){var H=R(Do,arguments);H=to(H,"DRIVE","EXPORT_VIDEO");return ro(H)};x("module$contents$ee$batch_Export.video.toDrive",Do);var Eo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H,ea,
|
|
640
|
+
var Do=function(a,b,c,d,e,g,f,l,m,p,v,z,C){var H=R(Do,arguments);H=to(H,"DRIVE","EXPORT_VIDEO");return ro(H)};x("module$contents$ee$batch_Export.video.toDrive",Do);var Eo=function(a,b,c,d,e,g,f,l,m,p,v,z,C,H,ea,W,da,Hb,Dq,Eq,Fq){var lj=R(Eo,arguments);lj=to(lj,"GOOGLE_CLOUD_STORAGE","EXPORT_VIDEO_MAP");return ro(lj)};x("module$contents$ee$batch_Export.videoMap.toCloudStorage",Eo);var Fo=function(a,b,c,d){var e=R(Fo,arguments);e=to(e,"ASSET","EXPORT_CLASSIFIER");return ro(e)};
|
|
641
641
|
x("module$contents$ee$batch_Export.classifier.toAsset",Fo);
|
|
642
|
-
var qo=function(a){var b=function(d){return d in a},c=Go.find(b);E(bc(Go,b)===1,'Expected a single "image", "collection" or "classifier" key.');b=a[c];if(!(b instanceof N||b instanceof
|
|
642
|
+
var qo=function(a){var b=function(d){return d in a},c=Go.find(b);E(bc(Go,b)===1,'Expected a single "image", "collection" or "classifier" key.');b=a[c];if(!(b instanceof N||b instanceof Y||b instanceof Z||b instanceof S||b instanceof O))throw Error("Unknown element type provided: "+typeof b+". Expected: ee.Image, ee.ImageCollection, ee.FeatureCollection, ee.Element or ee.ComputedObject.");delete a[c];return b},to=function(a,b,c){var d=d===void 0?!0:d;var e={type:c};Object.assign(e,a);switch(c){case "EXPORT_IMAGE":e.fileFormat==
|
|
643
643
|
null&&(e.fileFormat="GeoTIFF");a=e.fileFormat;a==null&&(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'.");}e.fileFormat=a;e.formatOptions!=null&&(a=Ho(e,a),delete e.formatOptions,Object.assign(e,a));e=Io(e,b);e.crsTransform!=null&&(e.crs_transform=e.crsTransform,
|
|
644
644
|
delete e.crsTransform);break;case "EXPORT_TILES":b=Io(e,b);e=b.fileFormat;e==null&&(e="AUTO_JPEG_PNG");e=e.toUpperCase();switch(e){case "AUTO":case "AUTO_JPEG_PNG":case "AUTO_JPG_PNG":e="AUTO_JPEG_PNG";break;case "JPG":case "JPEG":e="JPEG";break;case "PNG":e="PNG";break;default:throw Error("Invalid file format "+e+". Supported formats are: 'AUTO', 'PNG', and 'JPEG'.");}b.fileFormat=e;e=b;break;case "EXPORT_FEATURES":Array.isArray(e.selectors)&&(e.selectors=e.selectors.join());a=e.fileFormat;a==null&&
|
|
645
645
|
(a="CSV");a=a.toUpperCase();switch(a){case "CSV":a="CSV";break;case "JSON":case "GEOJSON":case "GEO_JSON":a="GEO_JSON";break;case "KML":a="KML";break;case "KMZ":a="KMZ";break;case "SHP":a="SHP";break;case "TF_RECORD":case "TF_RECORD_TABLE":case "TFRECORD":a="TF_RECORD_TABLE";break;default:throw Error("Invalid file format "+a+". Supported formats are: 'CSV', 'GeoJSON', 'KML', 'KMZ', 'SHP', and 'TFRecord'.");}e.fileFormat=a;e=Io(e,b);break;case "EXPORT_VIDEO":e=Jo(e);e=Io(e,b);e.crsTransform!=null&&
|
|
@@ -663,13 +663,13 @@ e)};return new O(new c,b)}throw Error("Invalid function value");},ep=function(a)
|
|
|
663
663
|
var ap=function(a){var b=La(pf,a),c={},d=function(f,l){if(!(f in c)){if(!(f in b.values))throw Error("Cannot find "+l+" "+f);c[f]=e(b.values[f])}return c[f]},e=function(f){if(f.gb!==null)f=f.gb;else if(f.Fa!==null)f=f.Fa.values.map(e);else if(f.Ga!==null)f=Xa(f.Ga.values,e);else if(f.Lb!==null)f=To(Object,f.Lb);else if(f.Ta!==null)f=g(f.Ta);else if(f.ya!==null){var l=f.ya;f=l.Ua?d(l.Ua,"function"):Tm(l.functionName);l=Xa(l.arguments,e);f=dp(f,l)}else f=f.pb!==null?cp(new Ze({pb:f.pb}),f.pb):f.Va!==
|
|
664
664
|
null?cp(new Ze({Va:f.Va}),f.Va):f.Oa!==null?d(f.Oa,"reference"):null;return f},g=function(f){var l=d(f.body,"function body");f={args:f.kc.map(function(m){return{name:m,type:"Object",optional:!1}}),name:"",returns:"Object"};return new So(f,function(){return l})};return d(b.result,"result value")};x("ee.Deserializer.decodeCloudApi",ap);var fp=function(a){if(!(this instanceof fp))return Gm(fp,arguments);if(a instanceof fp)return a;gp();Mm(a)?(O.call(this,null,null),this.Ic=a):(a instanceof O&&a.I&&a.I.Z().returns=="Dictionary"?O.call(this,a.I,a.args,a.U):O.call(this,new P("Dictionary"),{input:a},null),this.Ic=null)};y(fp,O);x("ee.Dictionary",fp);var hp=!1,gp=function(){hp||(an(fp,"Dictionary","Dictionary"),hp=!0)};fp.prototype.encode=function(a){return this.Ic!==null?a(this.Ic):fp.L.encode.call(this,a)};
|
|
665
665
|
fp.prototype.na=function(a){return this.Ic!==null?Rj(Yk(a,this.Ic)):fp.L.na.call(this,a)};fp.prototype.name=function(){return"Dictionary"};var ip={};x("ee.Terrain",ip);ip.Bf=!1;ip.initialize=function(){ip.Bf||(an(ip,"Terrain","Terrain"),ip.Bf=!0)};ip.reset=function(){bn(ip);ip.Bf=!1};var op=function(a,b,c,d,e,g){if(jp!="ready"||a||b){var f=c!=null;if(d)if(f)kp.push(d);else throw Error("Can't pass an error callback without a success callback.");if(jp=="loading"&&f)lp.push(c);else if(jp="loading",ej(a,b,e,g),f)lp.push(c),Xm(mp,np);else try{Xm(),mp()}catch(l){throw np(l),l;}}else c&&c()};x("ee.initialize",op);
|
|
666
|
-
var rp=function(){jp="not_ready";Dj=Cj=pj=null;Bj=!1;Vm=null;Wm={};bn(Wo);Yo=!1;bn(fp);hp=!1;bn(S);jn=!1;bn(N);eo=!1;bn(
|
|
666
|
+
var rp=function(){jp="not_ready";Dj=Cj=pj=null;Bj=!1;Vm=null;Wm={};bn(Wo);Yo=!1;bn(fp);hp=!1;bn(S);jn=!1;bn(N);eo=!1;bn(X);Wn=!1;bn(V);Un=!1;bn(Z);no=!1;bn(Y);lo=!1;bn(U);Fn=!1;bn(T);mn=!1;bn(ho);jo=!1;bn(Mo);Oo=!1;bn(Po);Ro=!1;ip.reset();for(var a=t.ee,b=0;b<pp.length;b++){var c=pp[b];bn(a[c]);delete a[c]}pp=[];Im=a;a=qp;for(var d in a)delete a[d]};x("ee.reset",rp);var sp={Fl:"not_ready",LOADING:"loading",Gl:"ready"};x("ee.InitState",sp);x("ee.InitState.NOT_READY","not_ready");
|
|
667
667
|
x("ee.InitState.LOADING","loading");x("ee.InitState.READY","ready");var jp="not_ready",lp=[],kp=[];x("ee.TILE_SIZE",256);var pp=[],qp={};x("ee.Algorithms",qp);var tp=function(a,b){typeof a==="string"&&(a=new P(a));return Om.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};x("ee.call",tp);var up=function(a,b){typeof a==="string"&&(a=new P(a));return a.apply(b)};x("ee.apply",up);
|
|
668
668
|
var mp=function(){if(jp=="loading"){try{Xo();gp();hn();bo();Vn();Tn();mo();ko();En();kn();io();No();Qo();ip.initialize();var a=Ym(),b={},c={},d;for(d in a){var e=void 0;e=d.indexOf(".")!=-1?d.slice(0,d.indexOf(".")):d;b[e]=!0;var g=a[d].returns.replace(/<.*>/,"");c[g]=!0}var f=t.ee,l;for(l in b)l in c&&!(l in f)&&(f[l]=vp(l),pp.push(l),a[l]?(f[l].signature=a[l],f[l].signature.isConstructor=!0,Wm[l]=!0):f[l].signature={});Im=f;wp()}catch(m){np(m);return}jp="ready";for(kp=[];lp.length>0;)lp.shift()()}},
|
|
669
669
|
np=function(a){if(jp=="loading")for(jp="not_ready",lp=[];kp.length>0;)kp.shift()(a)},wp=function(){var a=Zm();$a(a).sort().forEach(function(b){var c=a[b],d=c.Z();if(!d.hidden){b=b.split(".");var e=qp;for(e.signature={};b.length>1;){var g=b[0];g in e||(e[g]={signature:{}});e=e[g];b=hc(b,1)}g=function(f){return Sm(c,void 0,Array.prototype.slice.call(arguments,0))};g.signature=d;g.toString=w(c.toString,c);e[b[0]]=g}})},vp=function(a){var b=function(c){var d=t.ee[a],e=Array.prototype.slice.call(arguments),
|
|
670
670
|
g=e.length==1;if(g&&e[0]instanceof d)return e[0];if(!(this instanceof d))return Gm(d,e);d=$m(a);var f=!(e[0]instanceof O),l=!1;d&&(g?f?l=!0:e[0].I&&e[0].I.Z().returns==d.Z().returns||(l=!0):l=!0);if(l)e=Nm(e,d.Z())?e[0]:Qm(d,e),O.call(this,d,Rm(d,e));else{if(!g)throw Error("Too many arguments for ee."+a+"(): "+e);if(f)throw Error("Invalid argument for ee."+a+"(): "+e+". Must be a ComputedObject.");e=e[0];O.call(this,e.I,e.args,e.U)}};y(b,O);b.prototype.name=function(){return a};an(b,a,a);return b};
|
|
671
|
-
Pm=function(a,b){if(a===null)return null;if(a!==void 0){var c=t.ee;switch(b){case "Image":return new N(a);case "Feature":return a instanceof V?Q("Feature",Q("Collection.geometry",a)):new
|
|
672
|
-
a:new
|
|
671
|
+
Pm=function(a,b){if(a===null)return null;if(a!==void 0){var c=t.ee;switch(b){case "Image":return new N(a);case "Feature":return a instanceof V?Q("Feature",Q("Collection.geometry",a)):new X(a);case "Element":if(a instanceof S)return a;if(a instanceof T)return new X(a);if(a instanceof O)return new S(a.I,a.args,a.U);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof Y?Q("Collection.geometry",a):new T(a);case "FeatureCollection":case "Collection":return a instanceof V?
|
|
672
|
+
a:new Y(a);case "ImageCollection":return new Z(a);case "Filter":return new U(a);case "Algorithm":if(typeof a==="string")return new P(a);if(typeof a==="function"){b=a.length;c=[];for(var d=0;d<b;d++)c[d]="Object";return Vo(a,c)}if(a instanceof Oj)return a;throw Error("Argument is not a function: "+a);case "String":return Lm(a)||a instanceof Po||a instanceof O?new Po(a):a;case "Dictionary":return Mm(a)?a:new fp(a);case "List":return new ho(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new Mo(a);
|
|
673
673
|
default:if(b in c){d=$m(b);if(a instanceof c[b])return a;if(d)return new c[b](a);if(typeof a==="string"){if(a in c[b])return c[b][a].call();throw Error("Unknown algorithm: "+b+"."+a);}return new c[b](a)}return a}}};var xp=function(a,b,c){ge.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.yh=new Xd;this.xh=new Xd};r(xp,ge);xp.prototype.getTile=function(a,b){var c=he(this,a,b);b=[this.url,c].join("/")+"?token="+this.token;c=[c,this.xb,this.token].join("/");this.zb.push(c);this.xb+=1;var d=ii("DIV");yp(this,b,a,c,d);zp(this);return d};
|
|
674
674
|
var yp=function(a,b,c,d,e){var g=new XMLHttpRequest;g.open("GET",b,!0);g.responseType="arraybuffer";g.onreadystatechange=w(function(){if(g.readyState===XMLHttpRequest.DONE&&g.status===200){var f=g.response;if(f)f=new Float32Array(f),this.yh.set(c,f),this.xh.set(c,e),dc(this.zb,d),zp(this);else throw this.tg.add(d),Error("Unable to request floating point array buffers.");}},a);g.send()},zp=function(a){a.dispatchEvent(new ie(a.zb.length))};xp.prototype.J=function(){this.xh=this.yh=null;ge.prototype.J.call(this)};
|
|
675
675
|
x("ee.FloatTileOverlay",xp);var Ap=function(){this.ie=new Map};Ap.prototype.clear=function(){this.ie.clear()};var Bp=function(a,b){a.ie.has(b)||a.ie.set(b,{throttleCount:0,errorCount:0,tileLatencies:[]});return a.ie.get(b)};var Cp=function(a){I.call(this);this.Sb=a;this.K={}};y(Cp,I);var Dp=[];Cp.prototype.Wa=function(a,b,c,d){Array.isArray(b)||(b&&(Dp[0]=b.toString()),b=Dp);for(var e=0;e<b.length;e++){var g=zd(a,b[e],c||this.handleEvent,d||!1,this.Sb||this);if(!g)break;this.K[g.key]=g}return this};Cp.prototype.Uc=function(a,b,c,d){return Ep(this,a,b,c,d)};
|
|
@@ -707,18 +707,18 @@ h.yl=function(){if(!this.jc){var a=w(function(d){this.jc||(bq(this.ga,this.fa,d)
|
|
|
707
707
|
h.Mi=null;h.Ja=null;h.ki=null;var Aq=["load","abort","error"],Bq=function(){I.call(this);this.Ea=!1};r(Bq,I);Bq.prototype.setActive=function(a){this.Ea=a};Bq.prototype.isActive=function(){return this.Ea};var wq=function(a,b){rq.call(this,a,b)};r(wq,rq);wq.prototype.Ze=function(){return new Bq};wq.prototype.Cd=function(a){a.dispose()};wq.prototype.Qf=function(a){return!a.Ra&&!a.isActive()};var Cq=function(a,b,c,d,e){ge.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.ug=new ae;this.Rf=1;this.ua=e||null};r(Cq,ge);h=Cq.prototype;h.Me=function(a){return zd(this,"tileevent",a)};h.Zf=function(a){Hd(a)};
|
|
708
708
|
h.getTile=function(a,b,c){if(b<this.minZoom||a.y<0||a.y>=1<<b)return a=c.createElement("IMG"),a.style.width="0px",a.style.height="0px",a;b=he(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ua&&this.ua.isEnabled()&&(a+="&profiling=1");b=[b,this.xb,this.token].join("/");this.xb+=1;c=ii("DIV",{id:b});var d=(new Date).getTime()/1E3;this.zb.push(b);ql(xq).send(b,a,d,w(this.Xk,this,c,b));zp(this);return c};h.Lc=function(){return this.zb.length};
|
|
709
709
|
h.releaseTile=function(a){ql(xq).abort(a.id);if(a.firstElementChild!==void 0)var b=a.firstElementChild;else for(b=a.firstChild;b&&b.nodeType!=1;)b=b.nextSibling;this.ug.remove(b);a.id!==""&&(this.tg.remove(a.id),this.ua&&this.ua.pl(a.id))};h.setOpacity=function(a){this.Rf=a;var b=this.ug.Da();Sd(b,function(c){Kp(c,a)})};
|
|
710
|
-
h.Xk=function(a,b,c,d){c.type=="error"?(dc(this.zb,b),this.tg.add(b),this.dispatchEvent(c)):(dc(this.zb,b),c.target&&c.type=="load"&&(c=c.target,this.ug.add(c),this.Rf!=1&&Kp(c,this.Rf),a.appendChild(c)),zp(this));this.ua&&d!==null&&this.ua.Lk(b,d)};x("ee.MapLayerOverlay",Cq);Cq.prototype.removeTileCallback=Cq.prototype.Zf;Cq.prototype.addTileCallback=Cq.prototype.Me;Cq.prototype.getTile=Cq.prototype.getTile;Cq.prototype.setOpacity=Cq.prototype.setOpacity;Cq.prototype.releaseTile=Cq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction.
|
|
711
|
-
c=[["name","
|
|
710
|
+
h.Xk=function(a,b,c,d){c.type=="error"?(dc(this.zb,b),this.tg.add(b),this.dispatchEvent(c)):(dc(this.zb,b),c.target&&c.type=="load"&&(c=c.target,this.ug.add(c),this.Rf!=1&&Kp(c,this.Rf),a.appendChild(c)),zp(this));this.ua&&d!==null&&this.ua.Lk(b,d)};x("ee.MapLayerOverlay",Cq);Cq.prototype.removeTileCallback=Cq.prototype.Zf;Cq.prototype.addTileCallback=Cq.prototype.Me;Cq.prototype.getTile=Cq.prototype.getTile;Cq.prototype.setOpacity=Cq.prototype.setOpacity;Cq.prototype.releaseTile=Cq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.Collection.prototype.filterBounds ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterDate ee.Collection.prototype.filter ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.aside ee.data.updateAsset ee.data.getFilmstripThumbId ee.data.getList ee.data.getTaskStatus ee.data.createFolder ee.data.updateTask ee.data.startIngestion ee.data.startProcessing ee.data.setAssetAcl ee.data.makeThumbUrl ee.data.authenticateViaOauth ee.data.renameAsset ee.data.listAssets ee.data.getMapId ee.data.setAssetProperties ee.data.listBuckets ee.data.copyAsset ee.data.getTaskList ee.data.authenticate ee.data.getTileUrl ee.data.getTableDownloadId ee.data.getAssetRootQuota ee.data.deleteAsset ee.data.makeTableDownloadUrl ee.data.startTableIngestion ee.data.getTaskListWithLimit ee.data.cancelOperation ee.data.listOperations ee.data.getWorkloadTag ee.data.getAssetAcl ee.data.getDownloadId ee.data.listImages ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.getFeatureViewTilesKey ee.data.listFeatures ee.data.getAssetRoots ee.data.setWorkloadTag ee.data.getAsset ee.data.createAssetHome ee.data.authenticateViaPrivateKey ee.data.createAsset ee.data.getOperation ee.data.getInfo ee.data.newTaskId ee.data.computeValue ee.data.setDefaultWorkloadTag ee.data.getThumbId ee.data.resetWorkloadTag ee.data.cancelTask ee.data.getVideoThumbId ee.Date ee.Deserializer.decode ee.Deserializer.fromCloudApiJSON ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Dictionary ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.initialize ee.reset ee.call ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.getInfo ee.FeatureCollection ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getMapId ee.Filter ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Filter.and ee.Filter.gt ee.Filter.neq ee.Filter.lt ee.Filter.inList ee.Filter.prototype.not ee.Filter.or ee.Filter.eq ee.Filter.lte ee.Filter.gte ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.BBox ee.Geometry.LineString ee.Geometry.prototype.toGeoJSONString ee.Geometry.MultiPoint ee.Geometry.Polygon ee.Geometry.MultiPolygon ee.Geometry.prototype.serialize ee.Geometry.Rectangle ee.Geometry.Point ee.Geometry ee.Geometry.MultiLineString ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Image.prototype.rename ee.Image.rgb ee.Image.prototype.select ee.Image.prototype.clip ee.Image ee.Image.prototype.getDownloadURL ee.Image.cat ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getThumbId ee.Image.prototype.getMap ee.Image.prototype.getThumbURL ee.Image.prototype.expression ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.encode ee.Serializer.toCloudApiJSON ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableCloudApiJSON ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApiPretty ee.String ee.Terrain".split(" "),
|
|
711
|
+
c=[["name","namedArgs"],["name"],["name","var_args"],"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "),
|
|
712
712
|
"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 opt_priority".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "),
|
|
713
713
|
"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),"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 opt_priority".split(" "),
|
|
714
714
|
["collection","opt_description","opt_assetId","opt_maxVertices","opt_priority"],"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "),["classifier","opt_description","opt_assetId","opt_priority"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "),"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
715
|
-
["
|
|
716
|
-
|
|
717
|
-
["
|
|
718
|
-
"opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["
|
|
719
|
-
[],[
|
|
720
|
-
"
|
|
721
|
-
|
|
722
|
-
"
|
|
723
|
-
O.prototype.
|
|
724
|
-
T.prototype.
|
|
715
|
+
["geometry"],["property","opt_ascending"],["name","operator","value"],["start","opt_end"],["filter"],["algorithm","opt_dropNulls"],["algorithm","opt_first"],["max","opt_property","opt_ascending"],["opt_callback"],["legacy"],["callback"],["func","var_args"],["assetId","asset","updateFields","opt_callback"],["params","opt_callback"],["params","opt_callback"],["taskId","opt_callback"],["path","opt_force","opt_callback"],["taskId","action","opt_callback"],["taskId","request","opt_callback"],["taskId",
|
|
716
|
+
"params","opt_callback"],["assetId","aclUpdate","opt_callback"],["id"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["sourceId","destinationId","opt_callback"],["parent","opt_params","opt_callback"],["params","opt_callback"],["assetId","properties","opt_callback"],["project","opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],
|
|
717
|
+
["id","x","y","z"],["params","opt_callback"],["rootId","opt_callback"],["assetId","opt_callback"],["id"],["taskId","request","opt_callback"],["opt_limit","opt_callback"],["operationName","opt_callback"],["opt_limit","opt_callback"],[],["assetId","opt_callback"],["params","opt_callback"],["parent","opt_params","opt_callback"],["opt_success","opt_error"],["id"],["params","opt_callback"],["asset","params","opt_callback"],["opt_callback"],["tag"],["id","opt_callback"],["requestedId","opt_callback"],["privateKey",
|
|
718
|
+
"opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["value","opt_path","opt_force","opt_properties","opt_callback"],["operationName","opt_callback"],["id","opt_callback"],["opt_count","opt_callback"],["obj","opt_callback"],["tag"],["params","opt_callback"],["opt_resetDefault"],["taskId","opt_callback"],["params","opt_callback"],["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],[],["func","namedArgs"],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),
|
|
719
|
+
[],["func","var_args"],["var_args"],[],["geometry","opt_properties"],["opt_callback"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],["opt_callback"],["args","opt_column"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["opt_visParams","opt_callback"],["opt_filter"],["start","opt_end"],["name","operator","value"],["geometry","opt_errorMargin"],["var_args"],["name","value"],
|
|
720
|
+
["name","value"],["name","value"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],[],["var_args"],["name","value"],["name","value"],["name","value"],["var_args"],["namedArgs"],["west","south","east","north"],["coords","opt_proj","opt_geodesic","opt_maxError"],[],["coords","opt_proj"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["legacy"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords",
|
|
721
|
+
"opt_proj"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],[],["coords","opt_proj","opt_geodesic","opt_maxError"],["var_args"],["r","g","b"],["var_args"],["geometry"],["opt_args"],["params","opt_callback"],["var_args"],["opt_callback"],["opt_visParams","opt_callback"],["params","opt_callback"],["opt_visParams","opt_callback"],["params","opt_callback"],["expression","opt_map"],["opt_visParams","opt_callback"],["opt_callback"],["selectors","opt_names"],
|
|
722
|
+
["params","opt_callback"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["args"],["opt_visParams","opt_callback"],["params","opt_callback"],[],["list"],["number"],["obj","opt_isCompound"],["obj"],["obj"],["obj"],["obj"],["obj"],["obj"],["string"],[]];[Um,Tm,Q,Eo,Bo,uo,Co,Ao,Do,yo,vo,zo,xo,Fo,so,wo,V.prototype.vh,V.prototype.sort,V.prototype.mf,V.prototype.lf,V.prototype.filter,V.prototype.map,V.prototype.Kh,V.prototype.limit,O.prototype.V,O.prototype.va,O.prototype.evaluate,
|
|
723
|
+
O.prototype.Eg,ym,Gl,mm,Ql,tm,Wl,hm,dm,zm,Hl,sl,um,nm,zl,Am,pm,vm,Sl,tl,Al,Ll,Bm,wm,Ml,jm,Rl,Ul,Tl,xl,xm,Jl,om,rl,Kl,Bl,Cl,qm,Dm,km,rm,ul,sm,Vl,km,Nl,Dl,Em,El,Fm,Xl,Fl,Wo,Zo,ep,$o,ap,fp,qp,sp,up,256,op,rp,tp,S.prototype.set,Pj,X,X.prototype.V,X.prototype.S,X.prototype.getMap,Y.prototype.rb,Y.prototype.getMap,Y.prototype.V,Y,Y.prototype.select,Y.prototype.S,U,Pn,Sn,Rn,Nn,Ln,In,Jn,Qn,U.prototype.rc,On,Hn,Mn,Kn,Om.prototype.call,Om.prototype.apply,sn,vn,T.prototype.wg,qn,yn,zn,T.prototype.va,rn,nn,T,
|
|
724
|
+
xn,T.prototype.oe,wn,N.prototype.pi,fo,N.prototype.select,N.prototype.clip,N,N.prototype.rb,go,N.prototype.V,N.prototype.S,N.prototype.Kd,N.prototype.getMap,N.prototype.vf,N.prototype.l,Z.prototype.getMap,Z.prototype.V,Z.prototype.select,Z.prototype.wf,Z.prototype.Ff,Z,Z.prototype.S,Z.prototype.tf,Z.prototype.first,ho,Mo,Lk,Wk,Mk,Rk,Xk,Ok,Vk,Po,ip].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});t.EXPORTED_FN_INFO=a})();}).call(this);
|