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