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