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