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