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