mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
237 lines
126 KiB
JavaScript
237 lines
126 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++}}(),fa=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)}});fa=function(){}},ea=function(a){var b=0;return ha(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},ha=function(a){fa();a={next:a};a[ba.Symbol.iterator]=function(){return this};return a},ia=function(a){fa();var b=a[Symbol.iterator];return b?b.call(a):ea(a)},ja=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})}};ja("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 ka="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};ja("Object.assign",function(a){return a||ka});
|
|
var la=la||{},k=this,m=function(a){return void 0!==a},n=function(a){return"string"==typeof a},ma=function(a){return"number"==typeof a},na=function(){},pa=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},qa=function(a){return null!=a},p=function(a){return"array"==pa(a)},ra=function(a){var b=pa(a);return"array"==b||"object"==b&&"number"==typeof a.length},q=function(a){return"function"==pa(a)},r=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==
|
|
b},sa="closure_uid_"+(1E9*Math.random()>>>0),ta=0,ua=function(a,b,c){return a.call.apply(a.bind,arguments)},va=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")?ua:va;return t.apply(null,
|
|
arguments)},wa=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)}},xa=Date.now||function(){return+new Date},u=function(a,b){a=a.split(".");var c=k;a[0]in c||!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 w=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,w);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};v(w,Error);w.prototype.name="CustomError";var ya;var za=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");w.call(this,c+a[d])};v(za,w);za.prototype.name="AssertionError";
|
|
var Aa=function(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);throw new za(""+e,f||[]);},x=function(a,b,c){a||Aa("",null,b,Array.prototype.slice.call(arguments,2));return a},Ba=function(a,b){throw new za("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));},Ca=function(a,b,c){ma(a)||Aa("Expected number but got %s: %s.",[pa(a),a],b,Array.prototype.slice.call(arguments,2));return a},Da=function(a,b,c){q(a)||Aa("Expected function but got %s: %s.",[pa(a),
|
|
a],b,Array.prototype.slice.call(arguments,2))},Ea=function(a,b,c){r(a)||Aa("Expected object but got %s: %s.",[pa(a),a],b,Array.prototype.slice.call(arguments,2))},Fa=function(a,b,c){p(a)||Aa("Expected array but got %s: %s.",[pa(a),a],b,Array.prototype.slice.call(arguments,2))};var Ga=Array.prototype.indexOf?function(a,b){x(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},Ha=Array.prototype.lastIndexOf?function(a,b){x(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},Ia=Array.prototype.forEach?function(a,b,c){x(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)},Ja=Array.prototype.filter?function(a,b){x(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},La=Array.prototype.map?function(a,
|
|
b,c){x(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},Ma=Array.prototype.some?function(a,b){x(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},Na=Array.prototype.every?function(a,b,c){x(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},Oa=function(a,b){var c=0;Ia(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},Qa=function(a){a:{var b=Pa;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]},Ra=function(a){if(!p(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0},Ta=function(a,b){b=Ga(a,b);var c;(c=0<=
|
|
b)&&Sa(a,b);return c},Sa=function(a,b){x(null!=a.length);Array.prototype.splice.call(a,b,1)},Ua=function(a){return Array.prototype.concat.apply([],arguments)},Va=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[]},Wa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ra(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)}},Xa=function(a,b,c){x(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,
|
|
b):Array.prototype.slice.call(a,b,c)},Ya=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=r(f)?"o"+(f[sa]||(f[sa]=++ta)):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var z=function(){this.Y=this.Y;this.Jb=this.Jb};z.prototype.Y=!1;z.prototype.X=function(){this.Y||(this.Y=!0,this.f())};z.prototype.f=function(){if(this.Jb)for(;this.Jb.length;)this.Jb.shift()()};var Za=function(a){a&&"function"==typeof a.X&&a.X()};var A=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.xa=!1;this.Md=!0};A.prototype.stopPropagation=function(){this.xa=!0};A.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Md=!1};var $a=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")},ab=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ib=function(a){if(!bb.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(cb,"&"));-1!=a.indexOf("<")&&(a=a.replace(db,"<"));-1!=a.indexOf(">")&&(a=a.replace(eb,">"));-1!=a.indexOf('"')&&(a=a.replace(fb,"""));-1!=
|
|
a.indexOf("'")&&(a=a.replace(gb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(hb,"�"));return a},cb=/&/g,db=/</g,eb=/>/g,fb=/"/g,gb=/'/g,hb=/\x00/g,bb=/[\x00&<>"']/,jb=function(a,b){return a<b?-1:a>b?1:0};var kb;a:{var lb=k.navigator;if(lb){var mb=lb.userAgent;if(mb){kb=mb;break a}}kb=""}var B=function(a){return-1!=kb.indexOf(a)};var nb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},ob=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},pb=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d},qb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},rb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},sb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},tb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},vb=function(a){var b=
|
|
ub,c;for(c in b)if(a.call(void 0,b[c],c,b))return c},wb=function(a){for(var b in a)return!1;return!0},xb=function(a,b){b in a&&delete a[b]},yb=function(a){var b={},c;for(c in a)b[c]=a[c];return b},zb=function(a){var b=pa(a);if("object"==b||"array"==b){if(q(a.clone))return a.clone();b="array"==b?[]:{};for(var c in a)b[c]=zb(a[c]);return b}return a},Ab="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Bb=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<Ab.length;f++)c=Ab[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Cb=function(a){Cb[" "](a);return a};Cb[" "]=na;var Eb=function(a,b){var c=Db;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Fb=B("Opera"),Gb=B("Trident")||B("MSIE"),Hb=B("Edge"),Ib=B("Gecko")&&!(-1!=kb.toLowerCase().indexOf("webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),Jb=-1!=kb.toLowerCase().indexOf("webkit")&&!B("Edge"),Kb=function(){var a=k.document;return a?a.documentMode:void 0},Lb;
|
|
a:{var Mb="",Nb=function(){var a=kb;if(Ib)return/rv:([^\);]+)(\)|;)/.exec(a);if(Hb)return/Edge\/([\d\.]+)/.exec(a);if(Gb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Jb)return/WebKit\/(\S+)/.exec(a);if(Fb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Nb&&(Mb=Nb?Nb[1]:"");if(Gb){var Ob=Kb();if(null!=Ob&&Ob>parseFloat(Mb)){Lb=String(Ob);break a}}Lb=Mb}
|
|
var Pb=Lb,Db={},Qb=function(a){return Eb(a,function(){for(var b=0,c=ab(String(Pb)).split("."),d=ab(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=jb(0==g[1].length?0:parseInt(g[1],10),0==l[1].length?0:parseInt(l[1],10))||jb(0==g[2].length,0==l[2].length)||jb(g[2],l[2]);g=g[3];l=l[3]}while(0==b)}return 0<=b})},Rb;var Sb=k.document;
|
|
Rb=Sb&&Gb?Kb()||("CSS1Compat"==Sb.compatMode?parseInt(Pb,10):5):void 0;var Tb=Object.freeze||function(a){return a};var Ub=!Gb||9<=Number(Rb),Vb=Gb&&!Qb("9"),Wb=function(){if(!k.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});k.addEventListener("test",na,b);k.removeEventListener("test",na,b);return a}();var Yb=function(a,b){A.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.S=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(Ib){a:{try{Cb(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=Jb||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Jb||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:Xb[a.pointerType]||"";this.state=a.state;this.S=a;a.defaultPrevented&&this.preventDefault()}};v(Yb,A);var Xb=Tb({2:"touch",3:"pen",4:"mouse"});
|
|
Yb.prototype.stopPropagation=function(){Yb.l.stopPropagation.call(this);this.S.stopPropagation?this.S.stopPropagation():this.S.cancelBubble=!0};Yb.prototype.preventDefault=function(){Yb.l.preventDefault.call(this);var a=this.S;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Vb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Zb="closure_listenable_"+(1E6*Math.random()|0),$b=function(a){return!(!a||!a[Zb])},ac=0;var bc=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=++ac;this.Ma=this.rb=!1},cc=function(a){a.Ma=!0;a.listener=null;a.Lb=null;a.src=null;a.da=null};var dc=function(a){this.src=a;this.D={};this.mb=0};dc.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=ec(a,b,d,e);-1<g?(b=a[g],c||(b.rb=!1)):(b=new bc(b,this.src,f,!!d,e),b.rb=c,a.push(b));return b};dc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.D))return!1;var e=this.D[a];b=ec(e,b,c,d);return-1<b?(cc(e[b]),Sa(e,b),0==e.length&&(delete this.D[a],this.mb--),!0):!1};
|
|
var fc=function(a,b){var c=b.type;c in a.D&&Ta(a.D[c],b)&&(cc(b),0==a.D[c].length&&(delete a.D[c],a.mb--))};dc.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,cc(d[e]);delete this.D[c];this.mb--}};dc.prototype.Ya=function(a,b,c,d){a=this.D[a.toString()];var e=-1;a&&(e=ec(a,b,c,d));return-1<e?a[e]:null};
|
|
dc.prototype.hasListener=function(a,b){var c=m(a),d=c?a.toString():"",e=m(b);return qb(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 ec=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 gc="closure_lm_"+(1E6*Math.random()|0),hc={},ic=0,kc=function(a,b,c,d,e){if(d&&d.once)return jc(a,b,c,d,e);if(p(b)){for(var f=0;f<b.length;f++)kc(a,b[f],c,d,e);return null}c=lc(c);return $b(a)?a.aa(b,c,r(d)?!!d.capture:!!d,e):mc(a,b,c,!1,d,e)},mc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=r(e)?!!e.capture:!!e,l=nc(a);l||(a[gc]=l=new dc(a));c=l.add(b,c,d,g,f);if(c.Lb)return c;d=oc();c.Lb=d;d.src=a;d.listener=c;if(a.addEventListener)Wb||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),
|
|
d,e);else if(a.attachEvent)a.attachEvent(pc(b.toString()),d);else if(a.addListener&&a.removeListener)x("change"===b,"MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");ic++;return c},oc=function(){var a=qc,b=Ub?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},jc=function(a,b,c,d,e){if(p(b)){for(var f=0;f<b.length;f++)jc(a,b[f],c,d,e);return null}c=lc(c);return $b(a)?
|
|
a.gb(b,c,r(d)?!!d.capture:!!d,e):mc(a,b,c,!0,d,e)},rc=function(a,b,c,d,e){if(p(b))for(var f=0;f<b.length;f++)rc(a,b[f],c,d,e);else d=r(d)?!!d.capture:!!d,c=lc(c),$b(a)?a.Wb(b,c,d,e):a&&(a=nc(a))&&(b=a.Ya(b,c,d,e))&&sc(b)},sc=function(a){if(!ma(a)&&a&&!a.Ma){var b=a.src;if($b(b))fc(b.R,a);else{var c=a.type,d=a.Lb;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(pc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);ic--;(c=nc(b))?(fc(c,a),0==c.mb&&(c.src=
|
|
null,b[gc]=null)):cc(a)}}},pc=function(a){return a in hc?hc[a]:hc[a]="on"+a},uc=function(a,b,c,d){var e=!0;if(a=nc(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=tc(f,d),e=e&&!1!==f)}return e},tc=function(a,b){var c=a.listener,d=a.da||a.src;a.rb&&sc(a);return c.call(d,b)},qc=function(a,b){if(a.Ma)return!0;if(!Ub){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 Yb(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=uc(d[e],a,!0,b);c=c&&f}for(e=0;!b.xa&&e<d.length;e++)b.currentTarget=d[e],f=uc(d[e],a,!1,b),c=c&&f}return c}return tc(a,new Yb(b,this))},nc=function(a){a=a[gc];return a instanceof dc?a:null},vc="__closure_events_fn_"+(1E9*Math.random()>>>
|
|
0),lc=function(a){x(a,"Listener can not be null.");if(q(a))return a;x(a.handleEvent,"An object listener must have handleEvent method.");a[vc]||(a[vc]=function(b){return a.handleEvent(b)});return a[vc]};var wc=function(a){z.call(this);this.ua=a;this.h={}};v(wc,z);var xc=[];wc.prototype.aa=function(a,b,c,d){p(b)||(b&&(xc[0]=b.toString()),b=xc);for(var e=0;e<b.length;e++){var f=kc(a,b[e],c||this.handleEvent,d||!1,this.ua||this);if(!f)break;this.h[f.key]=f}return this};wc.prototype.gb=function(a,b,c,d){return yc(this,a,b,c,d)};var yc=function(a,b,c,d,e,f){if(p(c))for(var g=0;g<c.length;g++)yc(a,b,c[g],d,e,f);else{b=jc(b,c,d||a.handleEvent,e,f||a.ua||a);if(!b)return a;a.h[b.key]=b}return a};
|
|
wc.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=lc(c),d=!!d,b=$b(a)?a.Ya(b,c,d,e):a?(a=nc(a))?a.Ya(b,c,d,e):null:null,b&&(sc(b),delete this.h[b.key])};wc.prototype.ib=function(){nb(this.h,function(a,b){this.h.hasOwnProperty(b)&&sc(a)},this);this.h={}};wc.prototype.f=function(){wc.l.f.call(this);this.ib()};
|
|
wc.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var C=function(){z.call(this);this.R=new dc(this);this.Vd=this;this.Hc=null};v(C,z);C.prototype[Zb]=!0;h=C.prototype;h.addEventListener=function(a,b,c,d){kc(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){rc(this,a,b,c,d)};
|
|
h.dispatchEvent=function(a){zc(this);var b=this.Hc;if(b){var c=[];for(var d=1;b;b=b.Hc)c.push(b),x(1E3>++d,"infinite loop")}b=this.Vd;d=a.type||a;if(n(a))a=new A(a,b);else if(a instanceof A)a.target=a.target||b;else{var e=a;a=new A(d,b);Bb(a,e)}e=!0;if(c)for(var f=c.length-1;!a.xa&&0<=f;f--){var g=a.currentTarget=c[f];e=Ac(g,d,!0,a)&&e}a.xa||(g=a.currentTarget=b,e=Ac(g,d,!0,a)&&e,a.xa||(e=Ac(g,d,!1,a)&&e));if(c)for(f=0;!a.xa&&f<c.length;f++)g=a.currentTarget=c[f],e=Ac(g,d,!1,a)&&e;return e};
|
|
h.f=function(){C.l.f.call(this);this.R&&this.R.ib(void 0);this.Hc=null};h.aa=function(a,b,c,d){zc(this);return this.R.add(String(a),b,!1,c,d)};h.gb=function(a,b,c,d){return this.R.add(String(a),b,!0,c,d)};h.Wb=function(a,b,c,d){this.R.remove(String(a),b,c,d)};var Ac=function(a,b,c,d){b=a.R.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,y=g.da||g.src;g.rb&&fc(a.R,g);e=!1!==l.call(y,d)&&e}}return e&&0!=d.Md};
|
|
C.prototype.Ya=function(a,b,c,d){return this.R.Ya(String(a),b,c,d)};C.prototype.hasListener=function(a,b){return this.R.hasListener(m(a)?String(a):void 0,b)};var zc=function(a){x(a.R,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Bc=function(a,b){this.oe=100;this.fe=a;this.ye=b;this.Ib=0;this.Bb=null};Bc.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};Bc.prototype.put=function(a){this.ye(a);this.Ib<this.oe&&(this.Ib++,a.next=this.Bb,this.Bb=a)};var Cc=function(a){return a};var Dc=function(a){k.setTimeout(function(){throw a;},0)},Ec,Fc=function(){var a=k.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!B("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&&!B("Trident")&&!B("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 Gc=function(){this.Zb=this.Ba=null},Ic=new Bc(function(){return new Hc},function(a){a.reset()});Gc.prototype.add=function(a,b){var c=Ic.get();c.set(a,b);this.Zb?this.Zb.next=c:(x(!this.Ba),this.Ba=c);this.Zb=c};Gc.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 Hc=function(){this.next=this.scope=this.sc=null};Hc.prototype.set=function(a,b){this.sc=a;this.scope=b;this.next=null};
|
|
Hc.prototype.reset=function(){this.next=this.scope=this.sc=null};var Nc=function(a,b){Jc||Kc();Lc||(Jc(),Lc=!0);Mc.add(a,b)},Jc,Kc=function(){if(-1!=String(k.Promise).indexOf("[native code]")){var a=k.Promise.resolve(void 0);Jc=function(){a.then(Oc)}}else Jc=function(){var a=Oc;!q(k.setImmediate)||k.Window&&k.Window.prototype&&!B("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(Ec||(Ec=Fc()),Ec(a)):k.setImmediate(a)}},Lc=!1,Mc=new Gc,Oc=function(){for(var a;a=Mc.remove();){try{a.sc.call(a.scope)}catch(b){Dc(b)}Ic.put(a)}Lc=!1};var Qc=function(a,b){m(a.name)?(this.name=a.name,this.code=ub[a.name]):(this.code=Ca(a.code),this.name=Pc(a.code));w.call(this,$a("%s %s",this.name,b))};v(Qc,w);var Pc=function(a){var b=vb(function(b){return a==b});if(!m(b))throw Error("Invalid code: "+a);return b},ub={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 Rc=function(a,b){A.call(this,a.type,b);this.S=a};v(Rc,A);var Sc=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},Tc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var Wc=function(a,b){this.M=0;this.ga=void 0;this.Ea=this.ba=this.u=null;this.zb=this.nc=!1;if(a!=na)try{var c=this;a.call(b,function(a){Uc(c,2,a)},function(a){if(!(a instanceof Vc))try{if(a instanceof Error)throw a;throw Error("Promise rejected.");}catch(e){}Uc(c,3,a)})}catch(d){Uc(this,3,d)}},Xc=function(){this.next=this.context=this.Ka=this.wa=this.ra=null;this.qb=!1};Xc.prototype.reset=function(){this.context=this.Ka=this.wa=this.ra=null;this.qb=!1};
|
|
var Yc=new Bc(function(){return new Xc},function(a){a.reset()}),Zc=function(a,b,c){var d=Yc.get();d.wa=a;d.Ka=b;d.context=c;return d};Wc.prototype.then=function(a,b,c){null!=a&&Da(a,"opt_onFulfilled should be a function.");null!=b&&Da(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");return $c(this,q(a)?a:null,q(b)?b:null,c)};Sc(Wc);Wc.prototype.cancel=function(a){0==this.M&&Nc(function(){var b=new Vc(a);ad(this,b)},this)};
|
|
var ad=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?ad(c,b):(f?(d=f,x(c.ba),x(null!=d),d.next==c.Ea&&(c.Ea=d),d.next=d.next.next):bd(c),cd(c,e,3,b)))}a.u=null}else Uc(a,3,b)},ed=function(a,b){a.ba||2!=a.M&&3!=a.M||dd(a);x(null!=b.wa);a.Ea?a.Ea.next=b:a.ba=b;a.Ea=b},$c=function(a,b,c,d){var e=Zc(null,null,null);e.ra=new Wc(function(a,g){e.wa=b?function(c){try{var e=b.call(d,c);a(e)}catch(oa){g(oa)}}:
|
|
a;e.Ka=c?function(b){try{var e=c.call(d,b);!m(e)&&b instanceof Vc?g(b):a(e)}catch(oa){g(oa)}}:g});e.ra.u=a;ed(a,e);return e.ra};Wc.prototype.Ce=function(a){x(1==this.M);this.M=0;Uc(this,2,a)};Wc.prototype.De=function(a){x(1==this.M);this.M=0;Uc(this,3,a)};
|
|
var Uc=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 Wc){null!=e&&Da(e,"opt_onFulfilled should be a function.");null!=f&&Da(f,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");ed(d,Zc(e||na,f||null,a));var g=!0}else if(Tc(d))d.then(e,f,a),g=!0;else{if(r(d))try{var l=d.then;if(q(l)){fd(d,l,e,f,a);g=!0;break a}}catch(y){f.call(a,y);g=!0;break a}g=!1}}g||
|
|
(a.ga=c,a.M=b,a.u=null,dd(a),3!=b||c instanceof Vc||gd(a,c))}},fd=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(y){l(y)}},dd=function(a){a.nc||(a.nc=!0,Nc(a.he,a))},bd=function(a){var b=null;a.ba&&(b=a.ba,a.ba=b.next,b.next=null);a.ba||(a.Ea=null);null!=b&&x(null!=b.wa);return b};Wc.prototype.he=function(){for(var a;a=bd(this);)cd(this,a,this.M,this.ga);this.nc=!1};
|
|
var cd=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,hd(b,c,d);else try{b.qb?b.wa.call(b.context):hd(b,c,d)}catch(e){id.call(null,e)}Yc.put(b)},hd=function(a,b,c){2==b?a.wa.call(a.context,c):a.Ka&&a.Ka.call(a.context,c)},gd=function(a,b){a.zb=!0;Nc(function(){a.zb&&id.call(null,b)})},id=Dc,Vc=function(a){w.call(this,a)};v(Vc,w);Vc.prototype.name="cancel";/*
|
|
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 jd=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};jd.prototype.cancel=function(a){if(this.Ia)this.ga instanceof jd&&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||kd(this,new ld(this))}};jd.prototype.cd=function(a,b){this.ec=!1;md(this,a,b)};
|
|
var md=function(a,b,c){a.Ia=!0;a.ga=c;a.ab=!b;nd(a)},pd=function(a){if(a.Ia){if(!a.Lc)throw new od(a);a.Lc=!1}};jd.prototype.gc=function(a){pd(this);qd(a);md(this,!0,a)};var kd=function(a,b){pd(a);qd(b);md(a,!1,b)},qd=function(a){x(!(a instanceof jd),"An execution sequence may not be initiated with a blocking Deferred.")},rd=function(a,b,c){x(!a.Yc,"Blocking Deferreds can not be re-used");a.Pb.push([b,c,void 0]);a.Ia&&nd(a)};
|
|
jd.prototype.then=function(a,b,c){var d,e,f=new Wc(function(a,b){d=a;e=b});rd(this,d,function(a){a instanceof ld?f.cancel():e(a)});return f.then(a,b,c)};Sc(jd);
|
|
var sd=function(a){return Ma(a.Pb,function(a){return q(a[1])})},nd=function(a){if(a.Vb&&a.Ia&&sd(a)){var b=a.Vb,c=td[b];c&&(k.clearTimeout(c.ea),delete td[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(Tc(b)||"function"===typeof k.Promise&&b instanceof k.Promise)d=!0,a.ec=!0}catch(y){b=y,a.ab=!0,sd(a)||(c=!0)}}a.ga=b;d&&(l=t(a.cd,
|
|
a,!0),d=t(a.cd,a,!1),b instanceof jd?(rd(b,l,d),b.Yc=!0):b.then(l,d));c&&(b=new ud(b),td[b.ea]=b,a.Vb=b.ea)},od=function(){w.call(this)};v(od,w);od.prototype.message="Deferred has already fired";od.prototype.name="AlreadyCalledError";var ld=function(){w.call(this)};v(ld,w);ld.prototype.message="Deferred was canceled";ld.prototype.name="CanceledError";var ud=function(a){this.ea=k.setTimeout(t(this.Be,this),0);this.vb=a};
|
|
ud.prototype.Be=function(){x(td[this.ea],"Cannot throw an error that is not scheduled.");delete td[this.ea];throw this.vb;};var td={};var vd=function(){C.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(vd,C);h=vd.prototype;h.abort=function(){try{this.F.abort()}catch(a){throw new Qc(a,"aborting read");}};h.ka=function(){return this.F.readyState};h.getError=function(){return this.F.error&&new Qc(this.F.error,"reading file")};
|
|
h.Ga=function(a){this.dispatchEvent(new Rc(a,this))};h.f=function(){vd.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 wd=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var xd=function(a,b,c){this.reset(a,b,c,void 0,void 0)};xd.prototype.jd=null;var yd=0;xd.prototype.reset=function(a,b,c,d,e){"number"==typeof e||yd++;d||xa();this.fb=a;delete this.jd};xd.prototype.Pd=function(a){this.fb=a};var zd=function(a){this.Dd=a;this.sd=this.hc=this.fb=this.u=null},Ad=function(a,b){this.name=a;this.value=b};Ad.prototype.toString=function(){return this.name};var Bd=new Ad("SEVERE",1E3),Cd=new Ad("INFO",800),Dd=new Ad("CONFIG",700),Ed=new Ad("FINE",500);zd.prototype.getName=function(){return this.Dd};zd.prototype.getParent=function(){return this.u};zd.prototype.od=function(){this.hc||(this.hc={});return this.hc};zd.prototype.Pd=function(a){this.fb=a};
|
|
var Fd=function(a){if(a.fb)return a.fb;if(a.u)return Fd(a.u);Ba("Root logger has no level set.");return null};zd.prototype.log=function(a,b,c){if(a.value>=Fd(this).value)for(q(b)&&(b=b()),a=new xd(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()}};zd.prototype.info=function(a,b){this.log(Cd,a,b)};
|
|
var Gd={},Hd=null,Id=function(a){Hd||(Hd=new zd(""),Gd[""]=Hd,Hd.Pd(Dd));var b;if(!(b=Gd[a])){b=new zd(a);var c=a.lastIndexOf("."),d=a.substr(c+1);c=Id(a.substr(0,c));c.od()[d]=b;b.u=c;Gd[a]=b}return b};var Jd="StopIteration"in k?k.StopIteration:{message:"StopIteration",stack:""},Kd=function(){};Kd.prototype.next=function(){throw Jd;};Kd.prototype.Ca=function(){return this};
|
|
var Ld=function(a){if(a instanceof Kd)return a;if("function"==typeof a.Ca)return a.Ca(!1);if(ra(a)){var b=0,c=new Kd;c.next=function(){for(;;){if(b>=a.length)throw Jd;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Md=function(a,b){if(ra(a))try{Ia(a,b,void 0)}catch(c){if(c!==Jd)throw c;}else{a=Ld(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Jd)throw c;}}};var Od=function(a){return(new Nd(void 0)).A(a)},Nd=function(a){this.Nb=a};Nd.prototype.A=function(a){var b=[];Pd(this,a,b);return b.join("")};
|
|
var Pd=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],Pd(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),Qd(d,c),c.push(":"),Pd(a,a.Nb?a.Nb.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":Qd(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);}}},Rd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Sd=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,Qd=function(a,b){b.push('"',a.replace(Sd,function(a){var b=Rd[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
|
|
Rd[a]=b);return b}),'"')};var Td=function(a,b){a&&a.log(Ed,b,void 0)};var Ud=function(){};Ud.prototype.ad=null;Ud.prototype.$a=function(){var a;(a=this.ad)||(a={},Vd(this)&&(a[0]=!0,a[1]=!0),a=this.ad=a);return a};var Wd=function(a,b){this.Ee=a;this.ve=b};v(Wd,Ud);Wd.prototype.ic=function(){return this.Ee()};Wd.prototype.$a=function(){return this.ve()};var Xd=function(){return Xd.kd.ic()};Xd.Sd=!1;Xd.$a=function(){return Xd.kd.$a()};Xd.Le=function(a,b){Xd.Od(new Wd(x(a),x(b)))};Xd.Od=function(a){Xd.kd=a};var Yd=function(){};v(Yd,Ud);Yd.prototype.ic=function(){var a=Vd(this);return a?new ActiveXObject(a):new XMLHttpRequest};
|
|
var Vd=function(a){if(Xd.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};Xd.Od(new Yd);var D=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=D.prototype;h.m=function(){return this.j};h.w=function(){Zd(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.s[this.h[b]]);return a};h.U=function(){Zd(this);return this.h.concat()};h.ja=function(a){return $d(this.s,a)};
|
|
h.Va=function(a){for(var b=0;b<this.h.length;b++){var c=this.h[b];if($d(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||ae;Zd(this);for(var c,d=0;c=this.h[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var ae=function(a,b){return a===b};D.prototype.isEmpty=function(){return 0==this.j};D.prototype.clear=function(){this.s={};this.nb=this.j=this.h.length=0};
|
|
D.prototype.remove=function(a){return $d(this.s,a)?(delete this.s[a],this.j--,this.nb++,this.h.length>2*this.j&&Zd(this),!0):!1};var Zd=function(a){if(a.j!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];$d(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],$d(e,d)||(a.h[c++]=d,e[d]=1),b++;a.h.length=c}};h=D.prototype;h.get=function(a,b){return $d(this.s,a)?this.s[a]:b};
|
|
h.set=function(a,b){$d(this.s,a)||(this.j++,this.h.push(a),this.nb++);this.s[a]=b};h.addAll=function(a){if(a instanceof D)for(var b=a.U(),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.U(),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 D(this)};
|
|
h.Ca=function(a){Zd(this);var b=0,c=this.nb,d=this,e=new Kd;e.next=function(){if(c!=d.nb)throw Error("The map has changed since the iterator was created");if(b>=d.h.length)throw Jd;var e=d.h[b++];return a?e:d.s[e]};return e};var $d=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var be=function(a){if(a.m&&"function"==typeof a.m)a=a.m();else if(ra(a)||n(a))a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},ce=function(a){if(a.w&&"function"==typeof a.w)return a.w();if(n(a))return a.split("");if(ra(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return rb(a)},de=function(a){if(a.U&&"function"==typeof a.U)return a.U();if(!a.w||"function"!=typeof a.w){if(ra(a)||n(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return sb(a)}},fe=function(a,b,c){if(a.forEach&&
|
|
"function"==typeof a.forEach)a.forEach(b,c);else if(ra(a)||n(a))Ia(a,b,c);else for(var d=de(a),e=ce(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)},ge=function(a,b){if("function"==typeof a.every)return a.every(b,void 0);if(ra(a)||n(a))return Na(a,b,void 0);for(var c=de(a),d=ce(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 he=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 ie=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,je=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var E=function(a){C.call(this);this.headers=new D;this.ac=a||null;this.P=!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,C);var ke=E.prototype,le=Id("goog.net.XhrIo");ke.I=le;var me=/^https?$/i,ne=["POST","PUT"],oe=[];E.prototype.be=function(){this.X();Ta(oe,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.P=!0;this.a=this.ac?this.ac.ic():Xd();this.$b=this.ac?this.ac.$a():Xd.$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{Td(this.I,pe(this,"Opening Xhr")),
|
|
this.xc=!0,this.a.open(b,String(a),!0),this.xc=!1}catch(f){Td(this.I,pe(this,"Error opening Xhr: "+f.message));this.vb(5,f);return}a=c||"";var e=this.headers.clone();d&&fe(d,function(a,b){e.set(b,a)});d=Qa(e.U());c=k.FormData&&a instanceof k.FormData;!(0<=Ga(ne,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{qe(this),0<this.Sa&&(this.Xb=re(this.a),Td(this.I,pe(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=he(this.kb,this.Sa,this)),Td(this.I,pe(this,"Sending request")),this.Db=!0,this.a.send(a),this.Db=!1}catch(f){Td(this.I,pe(this,"Send error: "+f.message)),this.vb(5,f)}};
|
|
var re=function(a){return Gb&&Qb(9)&&ma(a.timeout)&&m(a.ontimeout)},Pa=function(a){return"content-type"==a.toLowerCase()};E.prototype.kb=function(){"undefined"!=typeof la&&this.a&&(this.eb="Timed out after "+this.Sa+"ms, aborting",Td(this.I,pe(this,this.eb)),this.dispatchEvent("timeout"),this.abort(8))};E.prototype.vb=function(a,b){this.P=!1;this.a&&(this.va=!0,this.a.abort(),this.va=!1);this.eb=b;se(this);te(this)};var se=function(a){a.mc||(a.mc=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
|
|
E.prototype.abort=function(){this.a&&this.P&&(Td(this.I,pe(this,"Aborting")),this.P=!1,this.va=!0,this.a.abort(),this.va=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),te(this))};E.prototype.f=function(){this.a&&(this.P&&(this.P=!1,this.va=!0,this.a.abort(),this.va=!1),te(this,!0));E.l.f.call(this)};E.prototype.Hd=function(){this.Y||(this.xc||this.Db||this.va?ue(this):this.te())};E.prototype.te=function(){ue(this)};
|
|
var ue=function(a){if(a.P&&"undefined"!=typeof la)if(a.$b[1]&&4==a.ka()&&2==a.getStatus())Td(a.I,pe(a,"Local request error detected and ignored"));else if(a.Db&&4==a.ka())he(a.Hd,0,a);else if(a.dispatchEvent("readystatechange"),4==a.ka()){Td(a.I,pe(a,"Request complete"));a.P=!1;try{var b=a.getStatus(),c;if(!(c=wd(b))){var d;if(d=0===b){var e=String(a.Eb).match(ie)[1]||null;if(!e&&k.self&&k.self.location){var f=k.self.location.protocol;e=f.substr(0,f.length-1)}d=!me.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){Td(a.I,"Can not get status: "+l.message),g=""}a.eb=g+" ["+a.getStatus()+"]";se(a)}}finally{te(a)}}};E.prototype.Gd=function(a,b){x("progress"===a.type,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(ve(a,"progress"));this.dispatchEvent(ve(a,b?"downloadprogress":"uploadprogress"))};
|
|
var ve=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}},te=function(a,b){if(a.a){qe(a);var c=a.a,d=a.$b[0]?na:null;a.a=null;a.$b=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){(a=a.I)&&a.log(Bd,"Problem encountered resetting onreadystatechange: "+e.message,void 0)}}},qe=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 we=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(Bd,"Response type "+a.Oa+" is not supported on this browser",void 0);return null}catch(c){return Td(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 xe=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},pe=function(a,b){return b+" ["+a.zd+" "+a.Eb+" "+a.getStatus()+"]"};var ye=!Gb||9<=Number(Rb),ze=!Ib&&!Gb||Gb&&9<=Number(Rb)||Ib&&Qb("1.9.1");var Be=function(){this.Qb="";this.Td=Ae};Be.prototype.vd=!0;Be.prototype.qd=function(){return this.Qb};Be.prototype.toString=function(){return"Const{"+this.Qb+"}"};var Ce=function(a){if(a instanceof Be&&a.constructor===Be&&a.Td===Ae)return a.Qb;Ba("expected object of type Const, got '"+a+"'");return"type_error:Const"},Ae={},De=function(a){var b=new Be;b.Qb=a;return b};De("");var Fe=function(){this.Kb="";this.Ud=Ee};Fe.prototype.vd=!0;Fe.prototype.qd=function(){return this.Kb};Fe.prototype.toString=function(){return"TrustedResourceUrl{"+this.Kb+"}"};
|
|
var Ge=function(a){if(a instanceof Fe&&a.constructor===Fe&&a.Ud===Ee)return a.Kb;Ba("expected object of type TrustedResourceUrl, got '"+a+"' of type "+pa(a));return"type_error:TrustedResourceUrl"},Le=function(a){var b=Ce(He);if(!Ie.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(Je,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 Be?Ce(c):encodeURIComponent(String(c))});return Ke(c)},Je=/%{(\w+)}/g,Ie=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank#/i,Ee={},Ke=function(a){var b=new Fe;b.Kb=a;return b};var Me=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;x(c,"Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement",
|
|
d)}a.src=Ge(b)};var Oe=function(a,b){nb(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:Ne.hasOwnProperty(d)?a.setAttribute(Ne[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Ne={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"},
|
|
Qe=function(a,b,c){return Pe(document,arguments)},Pe=function(a,b){var c=String(b[0]),d=b[1];if(!ye&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ib(d.name),'"');if(d.type){c.push(' type="',ib(d.type),'"');var e={};Bb(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(" "):Oe(c,d));2<b.length&&Re(a,c,b,2);return c},Re=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];
|
|
!ra(f)||r(f)&&0<f.nodeType?e(f):Ia(Se(f)?Va(f):f,e)}},Te=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},Ue=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a},Ve=function(a){x(a,"Node cannot be null or undefined.");return 9==a.nodeType?a:a.ownerDocument||a.document},Se=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},We=function(a){this.tb=a||k.document||document};
|
|
h=We.prototype;h.getElementsByTagName=function(a,b){return(b||this.tb).getElementsByTagName(String(a))};h.de=function(a,b,c){return Pe(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){Re(Ve(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=Te;h.od=function(){return ze&&void 0!=(void 0).children?(void 0).children:Ja((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};var Xe=function(a,b){x(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 Ye=function(a,b){C.call(this);b=b||{};this.minZoom=b.minZoom||0;this.maxZoom=b.maxZoom||20;if(!window.google||!window.google.maps)throw Error("Google Maps API hasn't been initialized.");this.tileSize=b.tileSize||new google.maps.Size(256,256);this.name=b.name;this.opacity="opacity"in b?b.opacity:1;this.pa=new D;this.oa=0;this.Pc=a;this.da=new wc(this);this.alt=this.radius=this.projection=void 0};v(Ye,C);u("ee.layers.AbstractOverlay",Ye);Ye.prototype.cc=function(a){return kc(this,"tile-load",a)};
|
|
Ye.prototype.addTileCallback=Ye.prototype.cc;Ye.prototype.Jc=function(a){sc(a)};Ye.prototype.removeTileCallback=Ye.prototype.Jc;h=Ye.prototype;h.tc=function(){return Ze(this,"throttled")+Ze(this,"loading")+Ze(this,"new")};h.setOpacity=function(a){this.opacity=a;this.pa.forEach(function(a){Xe(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;Xe(f.J,this.opacity);this.pa.set(a,f);this.da.aa(f,"status-changed",function(){switch(f.getStatus()){case "loaded":this.dispatchEvent(new $e(this.tc()));break;case "throttled":this.dispatchEvent(new af(f.Ra));break;case "failed":this.dispatchEvent(new bf(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(),Za(b))};h.f=function(){Ye.l.f.call(this);this.pa.forEach(Za);this.pa.clear();this.pa=null;Za(this.da);this.Pc=this.da=null};var Ze=function(a,b){return Oa(a.pa.w(),function(a){return a.getStatus()==b})},$e=function(){A.call(this,"tile-load")};v($e,A);var af=function(){A.call(this,"tile-throttle")};v(af,A);var bf=function(){A.call(this,"tile-fail")};
|
|
v(bf,A);var cf=function(a,b,c,d){C.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(cf,C);
|
|
var ef=function(a){if(!a.Bc&&"loading"==a.getStatus())throw Error("startLoad() can only be invoked once. Use retryLoad() after the first attempt.");df(a,"loading");a.ha=new E;a.ha.Oa="blob";a.ha.aa("complete",function(){var a=we(this.ha),c=this.ha.getStatus();429==c&&df(this,"throttled");if(wd(c)){var d={};nb(xe(this.ha),function(a,b){d[b.toLowerCase()]=a});this.ze=d;this.Qd=a;this.Xa()}else if(a){var e=new vd;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",wa(Za,a.ha));a.ha.send(a.Ra,"GET")};h=cf.prototype;h.Xa=function(){this.Mb(this);df(this,"loaded")};h.Ua=function(){Za(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),df(this,"failed")):(this.Ua(),setTimeout(t(function(){this.Y||(this.Bc=!0,ef(this),this.Bc=!1)},this),1E3*Math.pow(2,this.Ld++)))};h.abort=function(){this.Ua();df(this,"aborted")};h.getStatus=function(){return this.Mc};
|
|
var df=function(a,b){a.Mc=b;a.dispatchEvent("status-changed")},ff={aborted:!0,failed:!0,loaded:!0};cf.prototype.f=function(){cf.l.f.call(this);this.Ua();this.J.remove();this.Mb=null};var gf=function(){z.call(this)};v(gf,z);var hf=function(a,b){Ye.call(this,a,b);this.$c=new D;this.hd=new D};v(hf,Ye);u("ee.layers.BinaryOverlay",hf);hf.prototype.ed=function(a,b,c,d){var e=new jf(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};hf.prototype.f=function(){hf.l.f.call(this);this.hd=this.$c=null};var jf=function(a,b,c,d){cf.call(this,a,b,c,d)};v(jf,cf);
|
|
jf.prototype.Xa=function(){var a=new vd;a.aa("loadend",function(){this.Zd=a.F.result;cf.prototype.Xa.call(this)},void 0,this);a.readAsArrayBuffer(this.Qd)};var kf=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 lf=function(a,b,c,d){z.call(this);this.Zc=a;this.fa=b;this.Oc=d||"";this.Gb=c};v(lf,gf);u("ee.layers.CloudStorageTileSource",lf);lf.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=wa(mf,this.Gb)}var d=t(a.jb,a);a.jb=t(function(b){b&&-1!=b.indexOf("The specified key does not exist.")?df(a,"loaded"):d(b)},a);ef(a)};
|
|
lf.prototype.rd=function(){return[this.Zc,this.fa,this.Gb,this.Oc].join("-")};lf.prototype.yb=function(a,b){a=kf("https://storage.googleapis.com",this.Zc,this.fa,String(b),String(a.x),String(a.y));this.Oc&&(a+=this.Oc);return a};
|
|
var mf=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 nf=function(a,b,c){z.call(this);this.pe=null!=c?t(a,c):a;this.me=b;this.$d=t(this.ue,this);this.dc=[]};v(nf,z);h=nf.prototype;h.Qa=!1;h.hb=0;h.za=null;h.rc=function(a){this.dc=arguments;this.za||this.hb?this.Qa=!0:of(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,of(this))};h.f=function(){nf.l.f.call(this);this.stop()};
|
|
h.ue=function(){this.za=null;this.Qa&&!this.hb&&(this.Qa=!1,of(this))};var of=function(a){a.za=he(a.$d,a.me);a.pe.apply(null,a.dc)};var tf=function(a){var b={},c=b.document||document,d=Ge(a),e=document.createElement("SCRIPT"),f={Nd:e,kb:void 0},g=new jd(pf,f),l=null,y=null!=b.timeout?b.timeout:5E3;0<y&&(l=window.setTimeout(function(){qf(e,!0);kd(g,new rf(1,"Timeout reached for loading script "+d))},y),f.kb=l);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(qf(e,b.Ke||!1,l),g.gc(null))};e.onerror=function(){qf(e,!0,l);kd(g,new rf(0,"Error while loading script "+d))};f=b.attributes||
|
|
{};Bb(f,{type:"text/javascript",charset:"UTF-8"});Oe(e,f);Me(e,a);sf(c).appendChild(e)},sf=function(a){var b;return(b=(a||document).getElementsByTagName("HEAD"))&&0!=b.length?b[0]:a.documentElement},pf=function(){if(this&&this.Nd){var a=this.Nd;a&&"SCRIPT"==a.tagName&&qf(a,!0,this.kb)}},qf=function(a,b,c){null!=c&&k.clearTimeout(c);a.onload=na;a.onerror=na;a.onreadystatechange=na;b&&window.setTimeout(function(){Te(a)},0)},rf=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);w.call(this,
|
|
c);this.code=a};v(rf,w);var uf=function(a,b){this.ca=this.Aa=this.ma="";this.La=null;this.sa=this.fa="";this.N=this.ne=!1;if(a instanceof uf){this.N=m(b)?b:a.N;vf(this,a.ma);var c=a.Aa;wf(this);this.Aa=c;c=a.ca;wf(this);this.ca=c;xf(this,a.La);this.setPath(a.getPath());yf(this,a.V.clone());a=a.sa;wf(this);this.sa=a}else a&&(c=String(a).match(ie))?(this.N=!!b,vf(this,c[1]||"",!0),a=c[2]||"",wf(this),this.Aa=zf(a),a=c[3]||"",wf(this),this.ca=zf(a,!0),xf(this,c[4]),this.setPath(c[5]||"",!0),yf(this,c[6]||"",!0),a=c[7]||"",
|
|
wf(this),this.sa=zf(a)):(this.N=!!b,this.V=new Af(null,this.N))};
|
|
uf.prototype.toString=function(){var a=[],b=this.ma;b&&a.push(Bf(b,Cf,!0),":");var c=this.ca;if(c||"file"==b)a.push("//"),(b=this.Aa)&&a.push(Bf(b,Cf,!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(Bf(c,"/"==c.charAt(0)?Df:Ef,!0));(c=this.V.toString())&&a.push("?",c);(c=this.sa)&&a.push("#",Bf(c,Ff));return a.join("")};
|
|
uf.prototype.resolve=function(a){var b=this.clone(),c=!!a.ma;c?vf(b,a.ma):c=!!a.Aa;if(c){var d=a.Aa;wf(b);b.Aa=d}else c=!!a.ca;c?(d=a.ca,wf(b),b.ca=d):c=null!=a.La;d=a.getPath();if(c)xf(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.V.toString();c?yf(b,a.V.clone()):c=!!a.sa;c&&(a=a.sa,wf(b),b.sa=a);return b};uf.prototype.clone=function(){return new uf(this)};var vf=function(a,b,c){wf(a);a.ma=c?zf(b,!0):b;a.ma&&(a.ma=a.ma.replace(/:$/,""))},xf=function(a,b){wf(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.La=b}else a.La=null};
|
|
uf.prototype.getPath=function(){return this.fa};uf.prototype.setPath=function(a,b){wf(this);this.fa=b?zf(a,!0):a;return this};var yf=function(a,b,c){wf(a);b instanceof Af?(a.V=b,a.V.Kc(a.N)):(c||(b=Bf(b,Gf)),a.V=new Af(b,a.N))};uf.prototype.removeParameter=function(a){wf(this);this.V.remove(a);return this};var wf=function(a){if(a.ne)throw Error("Tried to modify a read-only Uri");};uf.prototype.Kc=function(a){this.N=a;this.V&&this.V.Kc(a)};
|
|
var Hf=function(a){return a instanceof uf?a.clone():new uf(a,void 0)},zf=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Bf=function(a,b,c){return n(a)?(a=encodeURI(a).replace(b,If),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},If=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},Cf=/[#\/\?@]/g,Ef=/[#\?:]/g,Df=/[#\?]/g,Gf=/[#\?@]/g,Ff=/#/g,Af=function(a,b){this.j=this.o=null;this.K=a||null;this.N=!!b},Jf=function(a){a.o||
|
|
(a.o=new D,a.j=0,a.K&&je(a.K,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=Af.prototype;h.m=function(){Jf(this);return this.j};h.add=function(a,b){Jf(this);this.K=null;a=Kf(this,a);var c=this.o.get(a);c||this.o.set(a,c=[]);c.push(b);this.j=Ca(this.j)+1;return this};h.remove=function(a){Jf(this);a=Kf(this,a);return this.o.ja(a)?(this.K=null,this.j=Ca(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(){Jf(this);return 0==this.j};h.ja=function(a){Jf(this);a=Kf(this,a);return this.o.ja(a)};h.Va=function(a){var b=this.w();return 0<=Ga(b,a)};h.forEach=function(a,b){Jf(this);this.o.forEach(function(c,d){Ia(c,function(c){a.call(b,c,d,this)},this)},this)};h.U=function(){Jf(this);for(var a=this.o.w(),b=this.o.U(),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){Jf(this);var b=[];if(n(a))this.ja(a)&&(b=Ua(b,this.o.get(Kf(this,a))));else{a=this.o.w();for(var c=0;c<a.length;c++)b=Ua(b,a[c])}return b};h.set=function(a,b){Jf(this);this.K=null;a=Kf(this,a);this.ja(a)&&(this.j=Ca(this.j)-this.o.get(a).length);this.o.set(a,[b]);this.j=Ca(this.j)+1;return this};h.get=function(a,b){a=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(Kf(this,a),Va(b)),this.j=Ca(this.j)+b.length)};
|
|
h.toString=function(){if(this.K)return this.K;if(!this.o)return"";for(var a=[],b=this.o.U(),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 Af;a.K=this.K;this.o&&(a.o=this.o.clone(),a.j=this.j);return a};var Kf=function(a,b){b=String(b);a.N&&(b=b.toLowerCase());return b};
|
|
Af.prototype.Kc=function(a){a&&!this.N&&(Jf(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};Af.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)fe(arguments[b],function(a,b){this.add(b,a)},this)};var Rf=function(a,b,c,d,e){var f=["https://www.googleapis.com/auth/earthengine"];d&&(Wa(f,d),Ya(f));Lf=a;Mf=f;null===a?Nf=null:Of(function(){Pf(b,c,e||wa(Qf,b,c))})};u("ee.data.authenticateViaOauth",Rf);var Sf=function(a,b,c,d,e){Rf(a,b,c,d,e)};u("ee.data.authenticate",Sf);var Qf=function(a,b){k.gapi.auth.authorize({client_id:Lf,immediate:!1,scope:Mf.join(" ")},wa(Tf,a,b))};u("ee.data.authenticateViaPopup",Qf);
|
|
var Vf=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&&(Wa(e,d),Ya(e));Lf=a.client_email;Mf=e;var f=new googleapis.auth.JWT(a.client_email,null,a.private_key,e,null);Uf=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})})};Pf(b,c)};u("ee.data.authenticateViaPrivateKey",Vf);var Xf=function(a){Wf=a};u("ee.data.setApiKey",Xf);var Yf=function(a,b,c,d,e,f,g){var l=["https://www.googleapis.com/auth/earthengine"];e&&(Wa(l,e),Ya(l));Lf=a;Mf=l;var y={token_type:b,access_token:c,state:l.join(" "),expires_in:d};Tf(void 0,void 0,y);!1===g?f&&f():Of(function(){k.gapi.auth.setToken(y);f&&f()})};u("ee.data.setAuthToken",Yf);
|
|
var Pf=function(a,b,c){Uf&&Lf&&Uf({client_id:String(Lf),immediate:!0,scope:Mf.join(" ")},function(d){"immediate_failed"==d.error&&c?c():Tf(a,b,d)})},Zf=function(a){Uf=a};u("ee.data.setAuthTokenRefresher",Zf);var bg=function(){$f&&0<=xa()-$f&&ag();return Nf};u("ee.data.getAuthToken",bg);var ag=function(){$f=Nf=null};u("ee.data.clearAuthToken",ag);var cg=function(){return Lf};u("ee.data.getAuthClientId",cg);var dg=function(){return Mf};u("ee.data.getAuthScopes",dg);
|
|
var ig=function(a,b,c){null!=a?eg=a:fg||(eg="https://earthengine.googleapis.com/api");null!=b?gg=b:fg||(gg="https://earthengine.googleapis.com");m(c)&&(hg=c);fg=!0},kg=function(a){jg=a};u("ee.data.setDeadline",kg);u("ee.data.setParamAugmenter",function(a){lg=a||Cc});var mg=function(){return eg};u("ee.data.getApiBaseUrl",mg);var ng=function(){return gg};u("ee.data.getTileBaseUrl",ng);var og=function(){return hg};u("ee.data.getXsrfToken",og);
|
|
var pg=function(a){var b=F("/algorithms",null,a,"GET");return a?null:b},qg=function(a,b){a=yb(a);return F("/mapid",G(a),b)};u("ee.data.getMapId",qg);var rg=function(a,b,c,d){var e=Math.pow(2,d);b%=e;0>b&&(b+=e);return[gg,"map",a.mapid,d,b,c].join("/")+"?token="+a.token};u("ee.data.getTileUrl",rg);var sg=function(a,b){a=yb(a);return F("/value",G(a),b)};u("ee.data.getValue",sg);
|
|
var tg=function(a,b){a=yb(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",tg);var ug=function(a){return gg+"/api/thumb?thumbid="+a.thumbid+"&token="+a.token};u("ee.data.makeThumbUrl",ug);var vg=function(a,b){a=yb(a);return F("/download",G(a),b)};u("ee.data.getDownloadId",vg);var wg=function(a){return gg+"/api/download?docid="+a.docid+"&token="+a.token};u("ee.data.makeDownloadUrl",wg);
|
|
var xg=function(a,b){a=yb(a);return F("/table",G(a),b)};u("ee.data.getTableDownloadId",xg);var yg=function(a){return gg+"/api/table?docid="+a.docid+"&token="+a.token};u("ee.data.makeTableDownloadUrl",yg);var Ag=function(a,b,c){var d=zg;try{return zg=a,b.call(c)}finally{zg=d}};u("ee.data.withProfiling",Ag);u("ee.data.newTaskId",function(a,b){var c={};ma(a)&&(c.count=a);return F("/newtaskid",G(c),b)});
|
|
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 F("/tasklist",null,a,"GET")});u("ee.data.cancelTask",function(a,b){return Bg(a,"CANCEL",b)});
|
|
var Bg=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(!tb(Cg,b))throw Error("Invalid action: "+b);return F("/updatetask",G({id:a,action:b}),c,"POST")};u("ee.data.updateTask",Bg);u("ee.data.startProcessing",function(a,b,c){b=yb(b);b.id=a;return F("/processingrequest",G(b),c)});u("ee.data.startIngestion",function(a,b,c){a={id:a,request:Od(b)};return F("/ingestionrequest",G(a),c)});
|
|
u("ee.data.startTableIngestion",function(a,b,c){a={id:a,tableRequest:Od(b)};return F("/ingestionrequest",G(a),c)});var Dg=function(a,b){return F("/info",(new Af).add("id",a),b)};u("ee.data.getInfo",Dg);var Eg=function(a,b){a=G(a);return F("/list",a,b)};u("ee.data.getList",Eg);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=Od(a));a={value:a};void 0!==b&&(a.id=b);a.force=c||!1;void 0!=d&&(a.properties=Od(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:Od(b)};F("/setacl",G(a),c)});u("ee.data.setAssetProperties",function(a,b,c){a={id:a,properties:Od(b)};F("/setproperties",G(a),c)});u("ee.data.getAssetRootQuota",function(a,b){return F("/quota",G({id:a}),b,"GET")});
|
|
var Cg={Fe:"CANCEL",Ie:"UPDATE"},F=function(a,b,c,d){ig();var e=zg,f={"Content-Type":"application/x-www-form-urlencoded"},g=bg();if(null!=g)f.Authorization=g;else if(c&&Uf&&Lf)return Pf(function(){Ag(e,function(){F(a,b,c,d)})}),null;g=d||"POST";b=b?b.clone():new Af;e&&b.add("profiling","1");null!=Wf&&b.add("api_key",Wf);b=lg(b,a);null!=hg&&(f["X-XSRF-Token"]=hg);var l=b?b.toString():"";"GET"!=g||/^[\s\xa0]*$/.test(l)||(a+=-1!=a.indexOf("?")?"&":"?",a+=l,l=null);var y=eg+a;if(c)return Fg.push(Gg(y,
|
|
c,g,l,f)),Hg.rc(),null;for(var oa=function(a,b){this.setRequestHeader&&this.setRequestHeader(b,a)},Ka,Ug=0;;){Ka=Xd();Ka.open(g,y,!1);nb(f,oa,Ka);Ka.send(l);if(429!=Ka.status||5<Ug)break;Ug++}return Ig(Ka.status,function(a){try{return Ka.getResponseHeader(a)}catch(Fj){return null}},Ka.responseText,e)},Gg=function(a,b,c,d,e){var f=0,g={url:a,method:c,content:d,headers:e},l=zg;g.gc=function(a){a=a.target;if(429==a.getStatus()&&10>f)return f++,setTimeout(function(){Fg.push(g);Hg.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(lj){Td(a.I,"Can not get responseText: "+lj.message),e=""}return Ig(c,d,e,l,b)};return g},Ig=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(oa){var y="Invalid JSON: "+c}else y="Response was unexpectedly not JSON, but "+
|
|
b;if(r(g))"error"in g&&"message"in g.error?y=g.error.message:"data"in g||(y="Malformed response: "+c);else if(0===a)y="Failed to contact Earth Engine servers. Please check your connection, firewall, or browser extension settings.";else if(200>a||300<=a)y="Server returned HTTP code: "+a;if(e)return e(l,y),null;if(!y)return l;throw Error(y);},Of=function(a){var b=function(){k.gapi.config.update("client/cors",!0);Uf||(Uf=k.gapi.auth.authorize);a()};if(r(k.gapi)&&r(k.gapi.auth)&&q(k.gapi.auth.authorize))b();
|
|
else{for(var c=xa().toString(36);c in k;)c+="_";k[c]=function(){delete k[c];b()};tf(Le({onload:c}))}},Tf=function(a,b,c){c.access_token?(b=c.token_type+" "+c.access_token,isFinite(c.expires_in)&&(c=900*c.expires_in,setTimeout(Pf,.9*c),$f=xa()+c),Nf=b,a&&a()):b&&b(c.error||"Unknown error.")},G=function(a){var b=new Af;a=ia(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=ia(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}return b},Fg=[],Hg=new nf(function(){var a=Fg.shift();if(a){var b=
|
|
a.url,c=a.gc,d=a.method,e=a.content;a=a.headers;var f=jg,g=new E;oe.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==Fg.length||Hg.rc()},350),eg=null,gg=null,hg=null,lg=Cc,Nf=null,$f=null,Lf=null,Mf=[],Uf=null,He=De("https://apis.google.com/js/client.js?onload=%{onload}"),Wf=null,fg=!1,jg=0,zg=null;var Jg=function(a,b){this.yd=a;this.Yb=b};Jg.prototype.getKey=function(){return this.yd};Jg.prototype.clone=function(){return new Jg(this.yd,this.Yb)};var Kg=function(a){this.O=[];if(a)a:{if(a instanceof Kg){var b=a.U();a=a.w();if(0>=this.m()){for(var c=this.O,d=0;d<b.length;d++)c.push(new Jg(b[d],a[d]));break a}}else b=sb(a),a=rb(a);for(d=0;d<b.length;d++)Lg(this,b[d],a[d])}},Lg=function(a,b,c){var d=a.O;d.push(new Jg(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=Kg.prototype;
|
|
h.remove=function(){var a=this.O,b=a.length,c=a[0];if(!(0>=b)){if(1==b)Ra(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.U=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 Ma(this.O,function(b){return b.Yb==a})};h.ja=function(a){return Ma(this.O,function(b){return b.getKey()==a})};h.clone=function(){return new Kg(this)};h.m=function(){return this.O.length};h.isEmpty=function(){return 0==this.O.length};h.clear=function(){Ra(this.O)};var Mg=function(){this.T=[];this.W=[]};h=Mg.prototype;h.enqueue=function(a){this.W.push(a)};h.Wa=function(){0==this.T.length&&(this.T=this.W,this.T.reverse(),this.W=[]);return this.T.pop()};h.m=function(){return this.T.length+this.W.length};h.isEmpty=function(){return 0==this.T.length&&0==this.W.length};h.clear=function(){this.T=[];this.W=[]};h.contains=function(a){return 0<=Ga(this.T,a)||0<=Ga(this.W,a)};
|
|
h.remove=function(a){var b=this.T;var c=Ha(b,a);0<=c?(Sa(b,c),b=!0):b=!1;return b||Ta(this.W,a)};h.w=function(){for(var a=[],b=this.T.length-1;0<=b;--b)a.push(this.T[b]);var c=this.W.length;for(b=0;b<c;++b)a.push(this.W[b]);return a};var H=function(a){this.s=new D;a&&this.addAll(a)},Ng=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[sa]||(a[sa]=++ta)):b.substr(0,1)+a};h=H.prototype;h.m=function(){return this.s.m()};h.add=function(a){this.s.set(Ng(a),a)};h.addAll=function(a){a=ce(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};h.ib=function(a){a=ce(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};h.remove=function(a){return this.s.remove(Ng(a))};h.clear=function(){this.s.clear()};h.isEmpty=function(){return this.s.isEmpty()};
|
|
h.contains=function(a){return this.s.ja(Ng(a))};var Og=function(a,b){var c=new H;b=ce(b);for(var d=0;d<b.length;d++){var e=b[d];a.contains(e)&&c.add(e)}return c},Pg=function(a,b){a=a.clone();a.ib(b);return a};H.prototype.w=function(){return this.s.w()};H.prototype.clone=function(){return new H(this)};H.prototype.equals=function(a){return this.m()==be(a)&&Qg(this,a)};
|
|
var Qg=function(a,b){var c=be(b);if(a.m()>c)return!1;!(b instanceof H)&&5<c&&(b=new H(b));return ge(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):ra(c)||n(c)?0<=Ga(c,a):tb(c,a)})};H.prototype.Ca=function(){return this.s.Ca(!1)};var Rg=function(a,b){z.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 Mg;this.la=new H;this.kc=0;this.Cc=null;this.pb()};v(Rg,z);Rg.prototype.Za=function(){var a=xa();if(!(null!=this.Cc&&a-this.Cc<this.kc)){for(var b;0<this.Z.m()&&(b=this.Z.Wa(),!this.Fc(b));)this.pb();!b&&this.m()<this.Fb&&(b=this.jc());b&&(this.Cc=a,this.la.add(b));return b}};var Sg=function(a,b){return a.la.remove(b)?(a.bc(b),!0):!1};h=Rg.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.jc());for(;this.m()>this.Fb&&0<this.Z.m();)this.sb(a.Wa())};h.jc=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(){Rg.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 Tg=function(){Kg.call(this)};v(Tg,Kg);Tg.prototype.enqueue=function(a,b){Lg(this,a,b)};Tg.prototype.Wa=function(){return this.remove()};var Vg=function(a,b){this.gd=void 0;this.Ob=new Tg;Rg.call(this,a,b)};v(Vg,Rg);h=Vg.prototype;h.Za=function(a,b){if(!a)return(a=Vg.l.Za.call(this))&&this.kc&&(this.gd=k.setTimeout(t(this.Ab,this),this.kc)),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){Vg.l.bc.call(this,a);this.Ab()};h.pb=function(){Vg.l.pb.call(this);this.Ab()};
|
|
h.f=function(){Vg.l.f.call(this);k.clearTimeout(this.gd);this.Ob.clear();this.Ob=null};var Wg=function(a,b,c,d){z.call(this);this.Uc=a;this.Bd=b;this.lb=c;this.L=d||null};v(Wg,gf);u("ee.layers.EarthEngineTileSource",Wg);Wg.prototype.Ad=function(a,b){var c=kc(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),sc(c)}},void 0,this);a.Ra=this.yb(a.Fa,a.zoom);var d=t(this.vc,this,a);Xg().Za(d,b)};
|
|
Wg.prototype.rd=function(){return[this.Bd,this.lb].join("-")};Wg.prototype.vc=function(a,b){var c=Xg();if(a.Y||"aborted"==a.getStatus())Sg(c,b);else{var d=kc(a,"status-changed",function(){a.Mc in ff&&(sc(d),Sg(c,b))});ef(a)}};Wg.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 Xg=function(){Yg||(Yg=new Vg(0,4));return Yg},Yg=null;var Zg=function(a){C.call(this);this.cb={};this.bb={};this.ua=new wc(this);this.u=a};v(Zg,C);var $g=[Gb&&!Qb("11")?"readystatechange":"load","abort","error"],ah=function(a,b,c){(c=n(c)?c:c.src)&&(a.cb[b]={src:c,dd:m(void 0)?void 0:null})},bh=function(a,b){delete a.cb[b];var c=a.bb[b];c&&(delete a.bb[b],a.ua.Wb(c,$g,a.Fd),wb(a.bb)&&wb(a.cb)&&a.dispatchEvent("complete"))};
|
|
Zg.prototype.start=function(){var a=this.cb;Ia(sb(a),function(b){var c=a[b];if(c&&(delete a[b],!this.Y)){if(this.u){var d=this.u;d=(d?new We(Ve(d)):ya||(ya=new We)).de("IMG")}else d=new Image;c.dd&&(d.crossOrigin=c.dd);this.ua.aa(d,$g,this.Fd);this.bb[b]=d;d.id=b;d.src=c.src}},this)};
|
|
Zg.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||bh(this,b.id)}};Zg.prototype.f=function(){delete this.cb;delete this.bb;Za(this.ua);Zg.l.f.call(this)};var ch=function(a,b){Ye.call(this,a,b)};v(ch,Ye);u("ee.layers.ImageOverlay",ch);ch.prototype.ed=function(a,b,c,d){return new dh(a,b,c,d)};var dh=function(a,b,c,d){cf.call(this,a,b,c,d);this.Mb=eh;this.ud=this.G=this.Cb=null;this.Hb=""};v(dh,cf);
|
|
dh.prototype.Xa=function(){try{var a=this.Hb=URL.createObjectURL(this.Qd)}catch(b){a=this.Ra}this.G=new Zg;ah(this.G,this.J.id+"-image",a);this.ud=jc(this.G,fh,function(a){"load"==a.type?(this.Cb=a.target,cf.prototype.Xa.call(this)):this.jb()},void 0,this);this.G.start()};dh.prototype.Ua=function(){dh.l.Ua.call(this);this.G&&(sc(this.ud),Za(this.G))};dh.prototype.f=function(){dh.l.f.call(this);this.Hb&&URL.revokeObjectURL(this.Hb)};var fh=["load","abort","error"],eh=function(a){a.J.appendChild(a.Cb)};var gh=function(a,b,c){C.call(this);this.qe=b;this.token=c;this.qa=[];this.Qc=new H;this.oa=0;this.url=a};v(gh,C);u("ee.AbstractOverlay",gh);var hh=function(a,b,c){var d=1<<c,e=b.x%d;0>e&&(e+=d);return[a.qe,c,e,b.y].join("/")};gh.prototype.tc=function(){return this.qa.length};var ih=function(a){A.call(this,"tileevent");this.count=a};v(ih,A);var jh=function(){};var kh=function(){this.ia=-1};var lh=function(){this.ia=64;this.C=Array(4);this.Xd=Array(this.ia);this.Tb=this.Ta=0;this.reset()};v(lh,kh);lh.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 mh=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};
|
|
lh.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;)mh(this,a,f),f+=this.ia;if(n(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.ia){mh(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.ia){mh(this,d);e=0;break}}this.Ta=e;this.Tb+=b};
|
|
lh.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 nh=function(a){this.ob="__ee_hash__";this.Ac=!1!==a;this.Pa=[];this.Ha={};this.Vc=[]};u("ee.Serializer",nh);var oh=new Nd,ph=new lh,rh=function(a,b){return qh(new nh(m(b)?b:!0),a)};u("ee.Serializer.encode",rh);var sh=function(a){return oh.A(rh(a))};u("ee.Serializer.toJSON",sh);var th=function(a){a=qh(new nh(!1),a);return"JSON"in k?k.JSON.stringify(a,null," "):oh.A(a)};u("ee.Serializer.toReadableJSON",th);
|
|
var qh=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=[],Ia(a.Vc,t(function(a){delete a[this.ob]},a)),a.Vc=[],a.Ha={});return b};
|
|
nh.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||ma(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 jh){var c=a.encode(t(this.ub,this));if(!(p(c)||r(c)&&"ArgumentRef"!=c.type))return c}else if(p(a))c=La(a,function(a){return this.ub(a)},
|
|
this);else if(r(a)&&!q(a))c=pb(a,function(a){if(!q(a))return this.ub(a)},this),xb(c,this.ob),c={type:"Dictionary",value:c};else throw Error("Can't encode object: "+a);if(this.Ac){ph.reset();ph.update(oh.A(c));b=ph.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 I=function(a,b,c){if(!(this instanceof I))return J(I,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(I,jh);u("ee.ComputedObject",I);I.prototype.evaluate=function(a){if(!a||!q(a))throw Error("evaluate() requires a callback function.");sg({json:this.A()},a)};I.prototype.evaluate=I.prototype.evaluate;
|
|
I.prototype.$=function(a){return sg({json:this.A()},a)};I.prototype.getInfo=I.prototype.$;I.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};I.prototype.A=function(){return sh(this)};I.prototype.serialize=I.prototype.A;
|
|
I.prototype.toString=function(){return"ee."+this.name()+"("+th(this)+")"};u("ee.ComputedObject.prototype.toString",I.prototype.toString);I.prototype.name=function(){return"ComputedObject"};I.prototype.Wc=function(a,b){var c=Va(arguments);c[0]=this;a.apply(k,c);return this};I.prototype.aside=I.prototype.Wc;
|
|
var uh=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},J=function(a,b){function c(){return a.apply(this,b)}c.prototype=a.prototype;return new c};var vh={},wh=function(a){return a.prototype instanceof I?a.prototype.name.call(null):a==Number?"Number":a==String?"String":a==Array?"Array":a==Date?"Date":"Object"},xh=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}},yh=function(a){return ma(a)||
|
|
a instanceof I&&"Number"==a.name()},zh=function(a){return n(a)||a instanceof I&&"String"==a.name()},Ah=function(a){return r(a)&&!q(a)?(a=Object.getPrototypeOf(a),null!==a&&null===Object.getPrototypeOf(a)):!1};var K=function(){if(!(this instanceof K))return new K};v(K,jh);u("ee.Function",K);var Bh=Cc;K.prototype.call=function(a){return this.apply(Ch(this,Array.prototype.slice.call(arguments,0)))};K.prototype.call=K.prototype.call;K.prototype.apply=function(a){a=new I(this,Dh(this,a));return Bh(a,this.H().returns)};K.prototype.apply=K.prototype.apply;
|
|
var Eh=function(a,b,c){var d=m(b),e=a.H(),f=!1;if(1==c.length&&Ah(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=yb(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=Ch(a,d?[b].concat(c):c);return a.apply(c)},Dh=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]=Bh(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},Ch=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};
|
|
K.prototype.toString=function(a,b){var c=this.H(),d=[];d.push(a||c.name);d.push("(");d.push(La(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("")};K.prototype.A=function(){return sh(this)};var L=function(a,b){if(!m(b))return Fh(a);if(!(this instanceof L))return J(L,arguments);this.na=zb(b);this.na.name=a};v(L,K);u("ee.ApiFunction",L);var M=function(a,b){return K.prototype.call.apply(Fh(a),Array.prototype.slice.call(arguments,1))};u("ee.ApiFunction._call",M);var Gh=function(a,b){return Fh(a).apply(b)};u("ee.ApiFunction._apply",Gh);L.prototype.encode=function(){return this.na.name};L.prototype.H=function(){return this.na};
|
|
var Hh=null,Ih={},Kh=function(){Jh();return pb(Hh,function(a){return a.H()})},Lh=function(){Jh();return ob(Hh,function(a,b){return!Ih[b]})},Fh=function(a){var b=Mh(a);if(!b)throw Error("Unknown built-in function name: "+a);return b};u("ee.ApiFunction.lookup",Fh);
|
|
var Mh=function(a){Jh();return Hh[a]||null},Jh=function(a,b){if(Hh)a&&a();else{var c=function(c,e){e?b&&b(Error(e)):(Hh=pb(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 L(b,a)}),a&&a())};a?pg(c):c(pg())}},N=function(a,b,c,d){Jh();var e=d||"";nb(Hh,function(d,g){var f=g.split(".");if(2==f.length&&f[0]==b){f=e+f[1];var y=d.H();Ih[g]=!0;var oa=!1;y.args.length&&(g=y.args[0].type,oa="Object"!=g&&xh(g,
|
|
c));g=oa?a.prototype:a;f in g&&!g[f].signature||(g[f]=function(a){return Eh(d,oa?this:void 0,Array.prototype.slice.call(arguments,0))},g[f].toString=t(d.toString,d,f,oa),g[f].signature=y)}})},O=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 P=function(a,b){var c=Nh(a),d=La(c,function(a){return a.replace(/^opt_/,"")});a=(a=Oh(a))?" to function "+a:"";var e={},f=b[0],g=r(f)&&!q(f)&&!p(f)&&!(f instanceof I);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 H(sb(f));var l=new H(d);if(Og(l,g).isEmpty())e[d[0]]=b[0];else{b=Pg(g,l);if(!b.isEmpty())throw Error("Unexpected arguments"+a+": "+b.w().join(", "));
|
|
e=yb(f)}}b=new H(sb(e));c=Pg(new H(Ja(c,function(a){return 0!=a.lastIndexOf("opt_",0)})),b);if(!c.isEmpty())throw Error("Missing required arguments"+a+": "+c.w().join(", "));return e},Nh=function(a){var b=[];k.EXPORTED_FN_INFO?(a=k.EXPORTED_FN_INFO[a.toString()],Ea(a),b=a.paramNames,Fa(b)):a._meta?(Ea(a._meta),b=a._meta.paramNames,Fa(b)):b=(a.toString().replace(Ph,"").match(Qh)[1].split(",")||[]).map(function(a){return a.replace(Rh,"")});return b},Oh=function(a){return k.EXPORTED_FN_INFO?k.EXPORTED_FN_INFO[a.toString()].name.split(".").pop()+
|
|
"()":a._meta?a._meta.name.split(".").pop()+"()":null},Ph=/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/mg,Qh=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Rh=/=.*$/;var Q=function(a,b,c){I.call(this,a,b,c);Sh()};v(Q,I);u("ee.Element",Q);var Th=!1,Sh=function(){Th||(N(Q,"Element","Element"),Th=!0)};Q.prototype.name=function(){return"Element"};
|
|
Q.prototype.set=function(a){var b;if(1>=arguments.length){var c=arguments[0];if(b=Ah(c))a:{b=sb(c);var d=["properties"];if(ra(b)&&ra(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(Ah(c)){b=this;for(var g in c)d=c[g],b=M("Element.set",b,g,d)}else if(c instanceof I&&Mh("Element.setMulti"))b=M("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=M("Element.set",b,g,d)}return uh(this,b)};Q.prototype.set=Q.prototype.set;var R=function(a){if(!(this instanceof R))return J(R,arguments);if(a instanceof R)return a;Uh();if(p(a)){if(0==a.length)throw Error("Empty list specified for ee.Filter().");if(1==a.length)return new R(a[0]);I.call(this,new L("Filter.and"),{filters:a})}else if(a instanceof I)I.call(this,a.i,a.args,a.B);else{if(m(a))throw Error("Invalid argument specified for ee.Filter(): "+a);I.call(this,null,null)}};v(R,I);u("ee.Filter",R);
|
|
var Vh=!1,Uh=function(){Vh||(N(R,"Filter","Filter"),Vh=!0)},Wh={equals:"equals",less_than:"lessThan",greater_than:"greaterThan",contains:"stringContains",starts_with:"stringStartsWith",ends_with:"stringEndsWith"};R.prototype.Ja=function(){return M("Filter.not",this)};R.prototype.not=R.prototype.Ja;var Xh=function(a,b){var c=P(Xh,arguments);return M("Filter.equals",c.name,c.value)};R.eq=Xh;var Yh=function(a,b){var c=P(Yh,arguments);return Xh(c.name,c.value).Ja()};R.neq=Yh;
|
|
var Zh=function(a,b){var c=P(Zh,arguments);return M("Filter.lessThan",c.name,c.value)};R.lt=Zh;var $h=function(a,b){var c=P($h,arguments);return Zh(c.name,c.value).Ja()};R.gte=$h;var ai=function(a,b){var c=P(ai,arguments);return M("Filter.greaterThan",c.name,c.value)};R.gt=ai;var bi=function(a,b){var c=P(bi,arguments);return ai(c.name,c.value).Ja()};R.lte=bi;var ci=function(a){return M("Filter.and",Array.prototype.slice.call(arguments))};R.and=ci;var di=function(a){return M("Filter.or",Array.prototype.slice.call(arguments))};
|
|
R.or=di;var ei=function(a,b){var c=P(ei,arguments);c=M("DateRange",c.start,c.end);return Gh("Filter.dateRangeContains",{leftValue:c,rightField:"system:time_start"})};R.date=ei;var fi=function(a,b,c,d){var e=P(fi,arguments);return Gh("Filter.listContains",{leftField:e.rightField,rightValue:e.leftValue,rightField:e.leftField,leftValue:e.rightValue})};R.inList=fi;var gi=function(a,b){return Gh("Filter.intersects",{leftField:".all",rightValue:M("Feature",a),maxError:b})};R.bounds=gi;
|
|
R.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=M("Filter."+Wh[b],a,c);return d?a.Ja():a};R.metadata=hi;var S=function(a,b,c){Q.call(this,a,b,c);ii()};v(S,Q);u("ee.Collection",S);var ji=!1,ii=function(){ji||(N(S,"Collection","Collection"),N(S,"AggregateFeatureCollection","Collection","aggregate_"),ji=!0)};S.prototype.filter=function(a){if(!a)throw Error("Empty filters.");return uh(this,M("Collection.filter",this,a))};S.prototype.filter=S.prototype.filter;S.prototype.qc=function(a,b,c){var d=P(S.prototype.qc,arguments);return this.filter(hi(d.name,d.operator,d.value))};S.prototype.filterMetadata=S.prototype.qc;
|
|
S.prototype.ld=function(a){return this.filter(gi(a))};S.prototype.filterBounds=S.prototype.ld;S.prototype.pc=function(a,b){var c=P(S.prototype.pc,arguments);return this.filter(ei(c.start,c.end))};S.prototype.filterDate=S.prototype.pc;S.prototype.limit=function(a,b,c){var d=P(S.prototype.limit,arguments);return uh(this,M("Collection.limit",this,d.max,d.property,d.ascending))};S.prototype.limit=S.prototype.limit;
|
|
S.prototype.sort=function(a,b){var c=P(S.prototype.sort,arguments);return uh(this,M("Collection.limit",this,void 0,c.property,c.ascending))};S.prototype.sort=S.prototype.sort;S.prototype.name=function(){return"Collection"};S.prototype.elementType=function(){return Q};S.prototype.map=function(a,b){var c=this.elementType();return uh(this,M("Collection.map",this,function(b){return a(new c(b))},b))};S.prototype.map=S.prototype.map;
|
|
S.prototype.xd=function(a,b){b=m(b)?b:null;var c=this.elementType();return M("Collection.iterate",this,function(b,e){return a(new c(b),e)},b)};S.prototype.iterate=S.prototype.xd;var ki=function(a){if(!(this instanceof ki))return J(ki,arguments);if(a instanceof ki)return a;li();if(ma(a))I.call(this,null,null),this.Ec=a;else if(a instanceof I)I.call(this,a.i,a.args,a.B),this.Ec=null;else throw Error("Invalid argument specified for ee.Number(): "+a);};v(ki,I);u("ee.Number",ki);var mi=!1,li=function(){mi||(N(ki,"Number","Number"),mi=!0)};ki.prototype.encode=function(a){return ma(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 J(ni,arguments);if(a instanceof ni)return a;oi();if(n(a))I.call(this,null,null),this.Nc=a;else if(a instanceof I)this.Nc=null,a.i&&"String"==a.i.H().returns?I.call(this,a.i,a.args,a.B):I.call(this,new L("String"),{input:a},null);else throw Error("Invalid argument specified for ee.String(): "+a);};v(ni,I);u("ee.String",ni);var pi=!1,oi=function(){pi||(N(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 J(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 vh?vh[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,K);u("ee.CustomFunction",qi);qi.prototype.encode=function(a){return{type:"Function",argumentNames:La(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 I))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=I;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=La(b,function(a){return{name:null,type:n(a)?a:wh(a)}});b={name:"",returns:n("Object")?"Object":wh("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++,nb(a,function(a){b+=f(a)}));return b};e=rh(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 J(ui,arguments);if(a instanceof ui)return a;vi();var c=P(ui,arguments);a=c.date;c=c.tz;var d=new L("Date"),e={},f=null;if(zh(a)){if(e.value=a,c)if(zh(c))e.timeZone=c;else throw Error("Invalid argument specified for ee.Date(..., opt_tz): "+c);}else if(yh(a))e.value=a;else if(r(a)&&"function"==typeof a.getFullYear)e.value=Math.floor(a.getTime());else if(a instanceof I)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);I.call(this,d,e,f)};v(ui,I);u("ee.Date",ui);var wi=!1,vi=function(){wi||(N(ui,"Date","Date"),wi=!0)};ui.prototype.name=function(){return"Date"};var T=function(a,b,c,d){if(!(this instanceof T))return J(T,arguments);if(!("type"in a)){var e=P(T,arguments);a=e.geoJson;b=e.proj;c=e.geodesic;d=e.evenOdd}xi();e=null!=b||null!=c||null!=d;if(a instanceof I&&!(a instanceof T&&a.Ub)){if(e)throw Error("Setting the CRS, geodesic, or evenOdd flag on a computed Geometry is not supported. Use Geometry.transform().");I.call(this,a.i,a.args,a.B)}else{a instanceof T&&(a=a.encode());if(!yi(a))throw Error("Invalid GeoJSON geometry: "+JSON.stringify(a));I.call(this,
|
|
null,null);this.Ub=a.type;this.ce=null!=a.coordinates?zb(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 Nd).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(T,I);u("ee.Geometry",T);
|
|
var zi=!1,xi=function(){zi||(N(T,"Geometry","Geometry"),zi=!0)},Ai=function(a,b){if(!(this instanceof Ai))return Bi(Ai,arguments);var c=Ci(Ai,"Point",1,arguments);if(!(c instanceof I)){var d=c.coordinates;if(!p(d)||2!=d.length)throw Error("The Geometry.Point constructor requires 2 coordinates.");}T.call(this,c)};v(Ai,T);T.Point=Ai;var Di=function(a,b){if(!(this instanceof Di))return Bi(Di,arguments);T.call(this,Ci(Di,"MultiPoint",2,arguments))};v(Di,T);T.MultiPoint=Di;
|
|
var Ei=function(a,b,c,d){if(!(this instanceof Ei))return Bi(Ei,arguments);var e=Ci(Ei,"Rectangle",2,arguments);if(!(e instanceof I)){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],y=f[1][0];f=f[1][1];e.coordinates=[[[g,f],[g,l],[y,l],[y,f]]];e.type="Polygon"}T.call(this,e)};v(Ei,T);T.Rectangle=Ei;
|
|
var Fi=function(a,b,c,d){if(!(this instanceof Fi))return Bi(Fi,arguments);T.call(this,Ci(Fi,"LineString",2,arguments))};v(Fi,T);T.LineString=Fi;var Gi=function(a,b,c,d){if(!(this instanceof Gi))return Bi(Gi,arguments);T.call(this,Ci(Gi,"LinearRing",2,arguments))};v(Gi,T);T.LinearRing=Gi;var Hi=function(a,b,c,d){if(!(this instanceof Hi))return Bi(Hi,arguments);T.call(this,Ci(Hi,"MultiLineString",3,arguments))};v(Hi,T);T.MultiLineString=Hi;
|
|
var Ii=function(a,b,c,d,e){if(!(this instanceof Ii))return Bi(Ii,arguments);T.call(this,Ci(Ii,"Polygon",3,arguments))};v(Ii,T);T.Polygon=Ii;var Ji=function(a,b,c,d,e){if(!(this instanceof Ji))return Bi(Ji,arguments);T.call(this,Ci(Ji,"MultiPolygon",4,arguments))};v(Ji,T);T.MultiPolygon=Ji;
|
|
T.prototype.encode=function(a){if(!this.Ub){if(!a)throw Error("Must specify an encode function when encoding a computed geometry.");return I.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};
|
|
T.prototype.Sc=function(){if(this.i)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return this.encode()};T.prototype.toGeoJSON=T.prototype.Sc;T.prototype.Tc=function(){if(this.i)throw Error("Can't convert a computed Geometry to GeoJSON. Use getInfo() instead.");return(new Nd).A(this.Sc())};T.prototype.toGeoJSONString=T.prototype.Tc;T.prototype.A=function(){return sh(this)};T.prototype.serialize=T.prototype.A;
|
|
T.prototype.toString=function(){return"ee.Geometry("+this.Tc()+")"};
|
|
var yi=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(!yi(b[a]))return!1;return!0}a=a.coordinates;var c=Ki(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)},Ki=function(a){if(!p(a))return-1;if(p(a[0])){for(var b=Ki(a[0]),c=1;c<a.length;c++)if(Ki(a[c])!=b)return-1;return b+
|
|
1}for(c=0;c<a.length;c++)if(!ma(a[c]))return-1;return 0==a.length%2?1:-1},Ci=function(a,b,c,d){Na(d,yh)?a={coordinates:Va(d)}:(a=P(a,d),a.coordinates=a.coords,delete a.coords,a.crs=a.proj,delete a.proj,a=ob(a,qa));if(Li(a.coordinates)||null!=a.crs||null!=a.maxError)return(new L("GeometryConstructors."+b)).apply(a);a.type=b;d=a.coordinates;if(1>c||4<c)throw Error("Unexpected nesting level.");if(Na(d,ma)&&ma(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(Ki(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=0<=Ga(["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},Li=function(a){return p(a)?Ma(a,Li):a instanceof I},Bi=function(a,b){var c=function(){};c.prototype=
|
|
a.prototype;c=new c;a=a.apply(c,b);return void 0!==a?a:c};T.prototype.name=function(){return"Geometry"};u("ee.Deserializer",function(){});var Ni=function(a){return Mi(JSON.parse(a))};u("ee.Deserializer.fromJSON",Ni);var Mi=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]=Oi(f,b)}a=a.value}return Oi(a,b)};u("ee.Deserializer.decode",Mi);
|
|
var Oi=function(a,b){if(null===a||ma(a)||"boolean"==typeof a||n(a))return a;if(p(a))return La(a,function(a){return Oi(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(!ma(c))throw Error("Invalid date value: "+c);return new ui(c/1E3);case "Bytes":return c=
|
|
new jh,c.encode=function(){return a},c;case "Invocation":c="functionName"in a?Fh(a.functionName):Oi(a["function"],b);var d=pb(a.arguments,function(a){return Oi(a,b)});if(c instanceof K)return c.apply(d);if(c instanceof I)return new I(c,d);throw Error("Invalid function value: "+a["function"]);case "Dictionary":return pb(a.value,function(a){return Oi(a,b)});case "Function":var e=Oi(a.body,b);c={name:"",args:La(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 T(a);case "CompoundValue":throw Error("Nested CompoundValues are disallowed.");default:throw Error("Unknown encoded object type: "+c);}};var Pi=function(a){if(!(this instanceof Pi))return J(Pi,arguments);if(a instanceof Pi)return a;Qi();Ah(a)?(I.call(this,null,null),this.lc=a):(a instanceof I&&a.i&&"Dictionary"==a.i.H().returns?I.call(this,a.i,a.args,a.B):I.call(this,new L("Dictionary"),{input:a},null),this.lc=null)};v(Pi,I);u("ee.Dictionary",Pi);var Ri=!1,Qi=function(){Ri||(N(Pi,"Dictionary","Dictionary"),Ri=!0)};Pi.prototype.encode=function(a){return null===this.lc?Pi.l.encode.call(this,a):a(this.lc)};Pi.prototype.name=function(){return"Dictionary"};var U=function(a,b){if(!(this instanceof U))return J(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)");Si();if(a instanceof T||null===a)Q.call(this,new L("Feature"),{geometry:a,metadata:b||null});else if(a instanceof I)Q.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=yb(c);c["system:index"]=a.id}Q.call(this,new L("Feature"),{geometry:new T(a.geometry),metadata:c})}else Q.call(this,new L("Feature"),{geometry:new T(a),metadata:b||null})};v(U,Q);u("ee.Feature",U);var Ti=!1,Si=function(){Ti||(N(U,"Feature","Feature"),Ti=!0)};U.prototype.getInfo=U.prototype.$;U.prototype.getMap=function(a,b){var c=P(U.prototype.getMap,arguments);return M("Collection",[this]).getMap(c.visParams,c.callback)};
|
|
U.prototype.getMap=U.prototype.getMap;U.prototype.name=function(){return"Feature"};var Ui=function(a){if(this instanceof Ui){if(1<arguments.length)throw Error("ee.List() only accepts 1 argument.");if(a instanceof Ui)return a}else return J(Ui,arguments);Vi();if(p(a))I.call(this,null,null),this.Dc=a;else if(a instanceof I)I.call(this,a.i,a.args,a.B),this.Dc=null;else throw Error("Invalid argument specified for ee.List(): "+a);};v(Ui,I);u("ee.List",Ui);var Wi=!1,Vi=function(){Wi||(N(Ui,"List","List"),Wi=!0)};
|
|
Ui.prototype.encode=function(a){return p(this.Dc)?La(this.Dc,function(b){return a(b)}):Ui.l.encode.call(this,a)};Ui.prototype.name=function(){return"List"};var V=function(a,b){if(!(this instanceof V))return J(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)");Xi();a instanceof T&&(a=new U(a));a instanceof U&&(a=[a]);if(zh(a)){var c={tableId:a};b&&(c.geometryColumn=b);S.call(this,new L("Collection.loadTable"),c)}else if(p(a))S.call(this,new L("Collection"),{features:La(a,function(a){return new U(a)})});else if(a instanceof Ui)S.call(this,
|
|
new L("Collection"),{features:a});else if(a instanceof I)S.call(this,a.i,a.args,a.B);else throw Error("Unrecognized argument type to convert to a FeatureCollection: "+a);};v(V,S);u("ee.FeatureCollection",V);var Yi=!1,Xi=function(){Yi||(N(V,"FeatureCollection","FeatureCollection"),Yi=!0)};V.prototype.getMap=function(a,b){var c=P(V.prototype.getMap,arguments),d=Gh("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=P(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;ra(g)&&(g=g.join(","));f.selectors=g}if(e.callback)xg(f,function(a,b){a?e.callback(yg(a)):e.callback(null,b)});else return yg(xg(f))};V.prototype.getDownloadURL=V.prototype.ta;
|
|
V.prototype.select=function(a,b,c){if(zh(a)){var d=Array.prototype.slice.call(arguments);return this.map(function(a){return a.select(d)})}var e=P(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 J(W,arguments);if(a instanceof W)return a;Zi();var b=arguments.length;if(0==b||1==b&&!m(a))Q.call(this,new L("Image.mask"),{image:new W(0),mask:new W(0)});else if(1==b)if(yh(a))Q.call(this,new L("Image.constant"),{value:a});else if(zh(a))Q.call(this,new L("Image.load"),{id:a});else{if(p(a))return $i(La(a,function(a){return new W(a)}));if(a instanceof I)"Array"==a.name()?Q.call(this,new L("Image.constant"),{value:a}):Q.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(zh(b)&&yh(c))Q.call(this,new L("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,Q);u("ee.Image",W);var aj=!1,Zi=function(){aj||(N(W,"Image","Image"),N(W,"Window","Image","focal_"),aj=!0)};W.prototype.getInfo=W.prototype.$;
|
|
W.prototype.getMap=function(a,b){var c=this,d=P(W.prototype.getMap,arguments),e=d.visParams?yb(d.visParams):{};e.image=this.A();if(d.callback){var f=d.callback;qg(e,function(a,b){a=a?Object.assign(a,{image:c}):void 0;f(a,b)})}else return d=qg(e),d.image=this,d};W.prototype.getMap=W.prototype.getMap;W.prototype.ta=function(a,b){var c=P(W.prototype.ta,arguments),d=c.params?yb(c.params):{};d.image=this.A();if(c.callback){var e=c.callback;vg(d,function(a,b){a?e(wg(a)):e(null,b)})}else return wg(vg(d))};
|
|
W.prototype.getDownloadURL=W.prototype.ta;W.prototype.uc=function(a,b){var c=P(W.prototype.uc,arguments),d=c.params?yb(c.params):{};d.image=this.A();if(d.region)if(p(d.region)||Ah(d.region))d.region=Od(d.region);else if(!n(d.region))throw Error("The region parameter must be an array or a GeoJSON object.");if(c.callback)tg(d,function(a,b){var d="";if(!m(b))try{d=ug(a)}catch(l){b=String(l.message)}c.callback(d,b)});else return ug(tg(d))};W.prototype.getThumbURL=W.prototype.uc;
|
|
var bj=function(a,b,c){var d=P(bj,arguments);return $i([d.r,d.g,d.b],["vis-red","vis-green","vis-blue"])};W.rgb=bj;var cj=function(a){return $i(Array.prototype.slice.call(arguments),null)};W.cat=cj;var $i=function(a,b){if(0==a.length)return M("Image.constant",[]);for(var c=new W(a[0]),d=1;d<a.length;d++)c=M("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||zh(b[0])||yh(b[0])){for(var d=0;d<b.length;d++)if(!(zh(b[d])||yh(b[d])||b[d]instanceof I))throw Error("Illegal argument to select(): "+b[d]);c.bandSelectors=b}else b[1]&&(c.newNames=b[1]);return Gh("Image.select",c)};W.prototype.select=W.prototype.select;
|
|
W.prototype.oc=function(a,b){var c=P(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=M("Image.parseExpression",c.expression,"DEFAULT_EXPRESSION_IMAGE",d);c=new K;c.encode=function(a){return l.encode(a)};c.H=function(){return{name:"",args:La(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 T(a)}catch(b){}return M("Image.clip",this,a)};W.prototype.clip=W.prototype.clip;W.prototype.Kd=function(a){var b=1!=arguments.length||zh(arguments[0])?Va(arguments):arguments[0];return M("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 J(X,arguments);if(a instanceof X)return a;if(1!=arguments.length)throw Error("The ImageCollection constructor takes exactly 1 argument ("+arguments.length+" given)");dj();a instanceof W&&(a=[a]);if(zh(a))S.call(this,new L("ImageCollection.load"),{id:a});else if(p(a))S.call(this,new L("ImageCollection.fromImages"),{images:La(a,function(a){return new W(a)})});else if(a instanceof Ui)S.call(this,new L("ImageCollection.fromImages"),{images:a});else if(a instanceof
|
|
I)S.call(this,a.i,a.args,a.B);else throw Error("Unrecognized argument type to convert to an ImageCollection: "+a);};v(X,S);u("ee.ImageCollection",X);var ej=!1,dj=function(){ej||(N(X,"ImageCollection","ImageCollection"),N(X,"reduce","ImageCollection"),ej=!0)};X.prototype.getMap=function(a,b){var c=P(X.prototype.getMap,arguments),d=M("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 fj={};u("ee.Terrain",fj);fj.yc=!1;fj.le=function(){fj.yc||(N(fj,"Terrain","Terrain"),fj.yc=!0)};fj.reset=function(){O(fj);fj.yc=!1};var mj=function(a,b,c,d,e){if("ready"!=gj||a||b){var f=null!=c;if(d)if(f)hj.push(d);else throw Error("Can't pass an error callback without a success callback.");if("loading"==gj&&f)ij.push(c);else if(gj="loading",ig(a,b,e),f)ij.push(c),Jh(jj,kj);else try{Jh(),jj()}catch(g){throw kj(g),g;}}else c&&c()};u("ee.initialize",mj);
|
|
var pj=function(){gj="not_ready";hg=gg=eg=null;fg=!1;Hh=null;Ih={};O(ui);wi=!1;O(Pi);Ri=!1;O(Q);Th=!1;O(W);aj=!1;O(U);Ti=!1;O(S);ji=!1;O(X);ej=!1;O(V);Yi=!1;O(R);Vh=!1;O(T);zi=!1;O(Ui);Wi=!1;O(ki);mi=!1;O(ni);pi=!1;fj.reset();for(var a=k.ee,b=0;b<nj.length;b++){var c=nj[b];O(a[c]);delete a[c]}nj=[];vh=a;a=oj;for(var d in a)delete a[d]};u("ee.reset",pj);var qj={Ge:"not_ready",LOADING:"loading",He:"ready"};u("ee.InitState",qj);u("ee.InitState.NOT_READY","not_ready");u("ee.InitState.LOADING","loading");
|
|
u("ee.InitState.READY","ready");var gj="not_ready",ij=[],hj=[];u("ee.TILE_SIZE",256);var nj=[],oj={};u("ee.Algorithms",oj);var rj=function(a,b){n(a)&&(a=new L(a));return K.prototype.call.apply(a,Array.prototype.slice.call(arguments,1))};u("ee.call",rj);var sj=function(a,b){n(a)&&(a=new L(a));return a.apply(b)};u("ee.apply",sj);
|
|
var jj=function(){if("loading"==gj){try{vi();Qi();Sh();Zi();Si();ii();dj();Xi();Uh();xi();Vi();li();oi();fj.le();var a=Kh(),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]=tj(g),nj.push(g),a[g]?(f[g].signature=a[g],f[g].signature.isConstructor=!0,Ih[g]=!0):f[g].signature={});vh=f;uj()}catch(l){kj(l);return}gj="ready";for(hj=[];0<ij.length;)ij.shift()()}},kj=function(a){if("loading"==
|
|
gj)for(gj="not_ready",ij=[];0<hj.length;)hj.shift()(a)},uj=function(){var a=Lh();sb(a).sort().forEach(function(b){var c=a[b],d=c.H();if(!d.hidden){b=b.split(".");var e=oj;for(e.signature={};1<b.length;){var f=b[0];f in e||(e[f]={signature:{}});e=e[f];b=Xa(b,1)}f=function(a){return Eh(c,void 0,Array.prototype.slice.call(arguments,0))};f.signature=d;f.toString=t(c.toString,c);e[b[0]]=f}})},tj=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 J(c,e);c=Mh(a);var g=!(e[0]instanceof I),l=!1;c&&(f?g?l=!0:e[0].i!=c&&(l=!0):l=!0);if(l)I.call(this,c,Dh(c,Ch(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];I.call(this,e.i,e.args,e.B)}};v(b,I);b.prototype.name=function(){return a};N(b,a,a);return b};
|
|
Bh=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 S?M("Feature",M("Collection.geometry",a)):new U(a);case "Element":if(a instanceof Q)return a;if(a instanceof T)return new U(a);if(a instanceof I)return new Q(a.i,a.args,a.B);throw Error("Cannot convert "+a+" to Element.");case "Geometry":return a instanceof V?M("Collection.geometry",a):new T(a);case "FeatureCollection":case "Collection":return a instanceof S?a:new V(a);
|
|
case "ImageCollection":return new X(a);case "Filter":return new R(a);case "Algorithm":if(n(a))return new L(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 jh)return a;throw Error("Argument is not a function: "+a);case "String":return zh(a)||a instanceof ni||a instanceof I?new ni(a):a;case "Dictionary":return Ah(a)?a:new Pi(a);case "List":return new Ui(a);case "Number":case "Float":case "Long":case "Integer":case "Short":case "Byte":return new ki(a);default:if(b in
|
|
c){d=Mh(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 vj=function(a,b,c){gh.call(this,a,b,c);this.tileSize=new google.maps.Size(256,256);this.nd=new D;this.md=new D};v(vj,gh);u("ee.FloatTileOverlay",vj);vj.prototype.getTile=function(a,b){var c=hh(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=Qe("DIV");wj(this,b,a,c,d);xj(this);return d};
|
|
var wj=function(a,b,c,d,e){var f=Xd();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),Ta(this.qa,d),xj(this);else throw this.Qc.add(d),Error("Unable to request floating point array buffers.");}},a);f.send()},xj=function(a){a.dispatchEvent(new ih(a.qa.length))};vj.prototype.f=function(){this.md=this.nd=null;vj.l.f.call(this)};var Y=function(){C.call(this);this.Sb=new yj(0,60);this.Na=new D};v(Y,C);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 zj(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.S=new A("abort")),this.Jd(a)};
|
|
Y.prototype.vc=function(a,b){if(a.G||a.Da)Aj(this,b);else if(a.lb=b,b.setActive(!0),b=new Zg,a.G=b,!Bj(a))throw Error("Cannot dispatch first request!");};Y.prototype.Jd=function(a){this.Na.remove(a.getId());a.G&&(Aj(this,a.lb),a.G.X());a.wc&&a.wc(a.S,a.Id)};var Aj=function(a,b){b.setActive(!1);if(!Sg(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;Ia(a.w(),function(a){a.X()});a.clear();this.Na=null};
|
|
var zj=function(a,b,c,d,e){z.call(this);this.ea=a;this.Uc=b;this.se=m(e)?e:1;this.wc=c;this.ya=d};v(zj,z);h=zj.prototype;h.Xc=0;h.Da=!1;h.G=null;h.lb=null;h.S=null;h.Id=null;var Cj=["load","abort","error"];zj.prototype.getId=function(){return this.ea};zj.prototype.getUrl=function(){return this.Uc};zj.prototype.ke=function(a){if(this.Da)this.ya&&this.ya(this);else switch(a.type){case "load":this.S=a;this.ya&&this.ya(this);break;case "error":case "abort":Bj(this)||(this.S=a,this.ya&&this.ya(this))}};
|
|
zj.prototype.f=function(){zj.l.f.call(this);delete this.wc;delete this.ya};var Bj=function(a){if(a.Xc>a.se)return!1;a.Xc++;bh(a.G,a.ea);setTimeout(t(a.Ae,a),0);return!0};
|
|
zj.prototype.Ae=function(){if(!this.Da){var a=t(function(a){this.Da||(ah(this.G,this.ea,a),jc(this.G,Cj,t(this.ke,this)),this.G.start())},this),b=this.getUrl();if(Hf(b).V.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(we(c))}catch(e){}a(d||b)},this));c.gb("ready",t(c.X,c));c.send(b,"GET")}else a(b)}};var Dj=function(){this.P=!1};
|
|
v(Dj,z);Dj.prototype.setActive=function(a){this.P=a};Dj.prototype.wd=function(){return this.P};var yj=function(a,b){Vg.call(this,a,b)};v(yj,Vg);yj.prototype.jc=function(){return new Dj};yj.prototype.sb=function(a){a.X()};yj.prototype.Fc=function(a){return!a.Y&&!a.wd()};var Z=function(a,b,c,d,e){gh.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 H;this.Gc=1;this.L=e||null};v(Z,gh);u("ee.MapLayerOverlay",Z);Z.prototype.cc=function(a){return kc(this,"tileevent",a)};Z.prototype.addTileCallback=Z.prototype.cc;Z.prototype.Jc=function(a){sc(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=hh(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=Qe("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));xj(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:Ue(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();Md(b,function(b){Xe(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?(Ta(this.qa,b),this.Qc.add(b),this.dispatchEvent(c)):(Ta(this.qa,b),c.target&&"load"==c.type&&(c=c.target,this.Rc.add(c),1!=this.Gc&&Xe(c,this.Gc),a.appendChild(c)),xj(this));this.L&&null!==d&&this.L.Wd(b,d)};var Ej=function(a,b){if(!(this instanceof Ej))return new Ej(a,b);this.fa=a;this.na=b};v(Ej,K);u("ee.SavedFunction",Ej);Ej.prototype.encode=function(a){return M("LoadAlgorithmById",this.fa).encode(a)};Ej.prototype.H=function(){return this.na};(function(){var a={},b="ee.Image.prototype.rename ee.List ee.Terrain ee.Filter.date ee.data.getAuthToken ee.Filter.gt ee.apply ee.data.getDownloadId ee.Collection.prototype.iterate ee.Element.prototype.set ee.FeatureCollection.prototype.select ee.FeatureCollection ee.ImageCollection.prototype.getMap ee.FeatureCollection.prototype.getMap ee.Image.prototype.clip ee.Collection.prototype.sort ee.data.getList ee.Deserializer.fromJSON ee.FeatureCollection.prototype.getInfo ee.InitState ee.Dictionary ee.Geometry.prototype.serialize ee.Filter.prototype.not ee.ImageCollection.prototype.getInfo ee.Image.prototype.getThumbURL ee.Date ee.Function.prototype.apply ee.data.authenticateViaPrivateKey ee.data.getXsrfToken ee.ImageCollection.prototype.select ee.ApiFunction._call ee.Serializer.encode ee.TILE_SIZE ee.Geometry.MultiPolygon ee.Image.cat ee.data.setAuthTokenRefresher ee.Geometry.prototype.toGeoJSONString ee.Filter.neq ee.Geometry.prototype.toGeoJSON ee.Feature ee.Image ee.data.makeTableDownloadUrl ee.Collection.prototype.filterDate ee.ApiFunction.lookup ee.data.makeThumbUrl ee.data.getMapId ee.String ee.data.authenticateViaPopup ee.Filter.or ee.Filter.and ee.Geometry.MultiLineString ee.ComputedObject.prototype.evaluate ee.data.authenticate ee.Collection.prototype.map ee.data.getThumbId ee.Deserializer.decode ee.Serializer.toJSON ee.initialize ee.Filter.inList ee.ApiFunction._apply ee.data.getTileBaseUrl ee.data.authenticateViaOauth ee.Image.prototype.select ee.Collection.prototype.limit ee.Filter.bounds ee.Filter ee.Feature.prototype.getMap ee.data.getAuthScopes ee.call ee.Number ee.Serializer.toReadableJSON ee.ImageCollection ee.ComputedObject.prototype.serialize ee.Filter.gte ee.Geometry.Rectangle ee.data.clearAuthToken ee.Function.prototype.call ee.Geometry.Polygon ee.Image.prototype.getMap ee.data.makeDownloadUrl ee.Feature.prototype.getInfo ee.data.getInfo ee.Geometry.LinearRing ee.Geometry.Point ee.data.getTileUrl ee.Image.rgb ee.Filter.lt ee.Algorithms ee.Filter.lte ee.data.setDeadline ee.Collection.prototype.filterMetadata ee.Filter.eq ee.FeatureCollection.prototype.getDownloadURL ee.data.getApiBaseUrl ee.data.getValue ee.Image.prototype.expression ee.data.getAuthClientId ee.reset ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.data.setAuthToken ee.Filter.metadata ee.Geometry ee.Image.prototype.getDownloadURL ee.Image.prototype.getInfo ee.data.getTableDownloadId ee.Collection.prototype.filter ee.Collection.prototype.filterBounds ee.Geometry.LineString ee.Geometry.MultiPoint ee.data.setApiKey".split(" "),
|
|
c=[["var_args"],["list"],[],["start","opt_end"],[],["name","value"],["func","namedArgs"],["params","opt_callback"],["algorithm","opt_first"],["var_args"],["propertySelectors","opt_newProperties","opt_retainGeometry"],["args","opt_column"],["opt_visParams","opt_callback"],["opt_visParams","opt_callback"],["geometry"],["property","opt_ascending"],["params","opt_callback"],["json"],["opt_callback"],[],["opt_dict"],[],[],["opt_callback"],["params","opt_callback"],["date","opt_tz"],["namedArgs"],["privateKey",
|
|
"opt_success","opt_error","opt_extraScopes"],[],["selectors","opt_names"],["name","var_args"],["obj","opt_isCompound"],[],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["var_args"],["refresher"],[],["name","value"],[],["geometry","opt_properties"],["opt_args"],["id"],["start","opt_end"],["name"],["id"],["params","opt_callback"],["string"],["opt_success","opt_error"],["var_args"],["var_args"],["coords","opt_proj","opt_geodesic","opt_maxError"],["callback"],["clientId","success",
|
|
"opt_error","opt_extraScopes","opt_onImmediateFailed"],["algorithm","opt_dropNulls"],["params","opt_callback"],["json"],["obj"],["opt_baseurl","opt_tileurl","opt_successCallback","opt_errorCallback","opt_xsrfToken"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["name","namedArgs"],[],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["var_args"],["max","opt_property","opt_ascending"],["geometry","opt_errorMargin"],["opt_filter"],["opt_visParams","opt_callback"],
|
|
[],["func","var_args"],["number"],["obj"],["args"],[],["name","value"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],[],["var_args"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["opt_visParams","opt_callback"],["id"],["opt_callback"],["id","opt_callback"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj"],["mapid","x","y","z"],["r","g","b"],["name","value"],[],["name","value"],["milliseconds"],["name","operator","value"],["name","value"],["opt_format",
|
|
"opt_selectors","opt_filename","opt_callback"],[],["params","opt_callback"],["expression","opt_map"],[],[],["opt_callback"],["func","var_args"],"clientId tokenType accessToken expiresIn opt_extraScopes opt_callback opt_updateAuthLibrary".split(" "),["name","operator","value"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["params","opt_callback"],["opt_callback"],["params","opt_callback"],["newFilter"],["geometry"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj"],["apiKey"]];
|
|
[W.prototype.Kd,Ui,fj,ei,bg,ai,sj,vg,S.prototype.xd,Q.prototype.set,V.prototype.select,V,X.prototype.getMap,V.prototype.getMap,W.prototype.clip,S.prototype.sort,Eg,Ni,V.prototype.$,qj,Pi,T.prototype.A,R.prototype.Ja,X.prototype.$,W.prototype.uc,ui,K.prototype.apply,Vf,og,X.prototype.select,M,rh,256,Ji,cj,Zf,T.prototype.Tc,Yh,T.prototype.Sc,U,W,yg,S.prototype.pc,Fh,ug,qg,ni,Qf,di,ci,Hi,I.prototype.evaluate,Sf,S.prototype.map,tg,Mi,sh,mj,fi,Gh,ng,Rf,W.prototype.select,S.prototype.limit,gi,R,U.prototype.getMap,
|
|
dg,rj,ki,th,X,I.prototype.A,$h,Ei,ag,K.prototype.call,Ii,W.prototype.getMap,wg,U.prototype.$,Dg,Gi,Ai,rg,bj,Zh,oj,bi,kg,S.prototype.qc,Xh,V.prototype.ta,mg,sg,W.prototype.oc,cg,pj,I.prototype.$,I.prototype.Wc,Yf,hi,T,W.prototype.ta,W.prototype.$,xg,S.prototype.filter,S.prototype.ld,Fi,Di,Xf].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});k.EXPORTED_FN_INFO=a})();}).call(this);
|