diff --git a/.github/workflows/publish-to-npm.yml b/.github/workflows/publish-to-npm.yml index 80f066f8f..8c1450c26 100644 --- a/.github/workflows/publish-to-npm.yml +++ b/.github/workflows/publish-to-npm.yml @@ -6,33 +6,7 @@ on: workflow_dispatch: jobs: - smoke-test: - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - - uses: actions/checkout@v4 - - name: Authenticate with Google Cloud - id: "auth" - uses: 'google-github-actions/auth@v2' - with: - service_account: ${{ secrets.SERVICE_ACCOUNT }} - workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} - token_format: "access_token" - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - - run: | - cd javascript/ - npm install - npm run build - npm run test - env: - EE_ACCESS_TOKEN: ${{ steps.auth.outputs.access_token }} - publish-npm: - needs: smoke-test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -42,8 +16,7 @@ jobs: registry-url: https://registry.npmjs.org/ - run: | cd javascript/ - npm install - npm run build - npm publish + npm ci + - run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.NPM_API_TOKEN}} diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index dce381ab9..97faaa870 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -6,43 +6,7 @@ on: workflow_dispatch: jobs: - smoke-test: - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.11 - - name: Authenticate with Google Cloud - uses: 'google-github-actions/auth@v2' - with: - service_account: ${{ secrets.SERVICE_ACCOUNT }} - workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} - - name: Install EE and dependencies - run: | - pip install ./python[tests] - - name: Smoke test - run: > - python -c 'import ee; - import json; - import os; - from google.auth import identity_pool; - - scopes = [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/earthengine", - ]; - path = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]; - info = json.load(open(path)); - ee.Initialize(identity_pool.Credentials.from_info(info).with_scopes(scopes)); - - print(ee.Image("srtm90_v4").getInfo())' - build-artifacts: - needs: smoke-test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -96,4 +60,4 @@ jobs: sleep 3 # To account for PyPi publish delay. python -m pip install --upgrade pip python -m pip install --upgrade earthengine-api - python -c "import ee; print(ee.__version__)" \ No newline at end of file + python -c "import ee; print(ee.__version__)" diff --git a/javascript/build/ee_api_js.js b/javascript/build/ee_api_js.js index b9ac89267..f2dcfe489 100644 --- a/javascript/build/ee_api_js.js +++ b/javascript/build/ee_api_js.js @@ -1,99 +1,99 @@ -(function(){var h,aa=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); -fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(g||"")+"_"+d++,g)};return e}); +fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=e}});fa("Array.prototype.entries",function(a){return a?a:function(){return ua(this,function(b,c){return[b,c]})}}); -fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=va(this,b,"startsWith");b+="";var e=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var f=0;f=g}});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=va(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); -fa("Array.prototype.values",function(a){return a?a:function(){return ua(this,function(b,c){return c})}});fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};var e=[],g="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof g){b=g.call(b);for(var f=0;!(g=b.next()).done;)e.push(c.call(d,g.value,f++))}else for(g=b.length,f=0;fc&&(c=Math.max(c+e,0));c0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});fa("Array.prototype.entries",function(a){return a?a:function(){return ua(this,function(b,c){return[b,c]})}}); +fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=va(this,b,"startsWith");b+="";var e=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var f=0;f=g}});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=va(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); +fa("Array.prototype.values",function(a){return a?a:function(){return ua(this,function(b,c){return c})}});fa("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(l){return l};var e=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof g=="function"){b=g.call(b);for(var f=0;!(g=b.next()).done;)e.push(c.call(d,g.value,f++))}else for(g=b.length,f=0;f0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ -var wa=wa||{},r=this||self,xa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},ya=function(a){var b=xa(a);return"array"==b||"object"==b&&"number"==typeof a.length},za=function(a){return t(a)&&"function"==typeof a.getFullYear},t=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ca=function(a){return Object.prototype.hasOwnProperty.call(a,Aa)&&a[Aa]||(a[Aa]=++Ba)},Aa="closure_uid_"+(1E9*Math.random()>>>0),Ba=0,Da=function(a,b,c){return a.call.apply(a.bind, -arguments)},Ea=function(a,b,c){if(!a)throw Error();if(2>>0),Ba=0,Da=function(a,b,c){return a.call.apply(a.bind, +arguments)},Ea=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},u=function(a,b,c){u=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Da:Ea;return u.apply(null,arguments)},Fa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d= +c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},w=function(a,b){a=a.split(".");var c=r;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},x=function(a,b){function c(){}c.prototype=b.prototype;a.L=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ml=function(d,e,g){for(var f=Array(arguments.length-2),l=2;lc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b|| -1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},Xb=Array.prototype.forEach?function(a,b){D(null!=a.length);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)} -function ic(a){var b=[];if(0>a-0)return[];for(var c=0;c=e.value}if(d){b=b||sc;d=Ec(Fc(),a.vf());"function"===typeof c&&(c=c());xc||(xc=new wc);e=xc;a=a.vf();if(0=0;c--)if(c in a&&a[c]===b)return c;return-1},Xb=Array.prototype.forEach?function(a,b){D(a.length!=null);Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e=0}function dc(a,b){b=Vb(a,b);var c;(c=b>=0)&&ec(a,b);return c} +function ec(a,b){D(a.length!=null);Array.prototype.splice.call(a,b,1)}function fc(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d=e.value}if(d){b=b||sc;d=Ec(Fc(),a.vf());typeof c==="function"&&(c=c());xc||(xc=new wc);e=xc;a=a.vf();if(e.Cd>0){var g=(e.jh+1)%e.Cd;e.jh=g;e.Jh?(e=e.zd[g],e.reset(b,c,a),a=e):(e.Jh=g==e.Cd-1,a=e.zd[g]=new yc(b,c,a))}else a=new yc(b,c,a);Bc(d,a)}},Hc=function(a,b){a&&Gc(a,tc,b)},Ic=function(a,b){a&&Gc(a, +vc,b)};var Jc=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")},Kc=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};var Lc=function(a){if(a.R&&typeof a.R=="function")a=a.R();else if(ya(a)||typeof a==="string")a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},Mc=function(a){if(a.aa&&typeof a.aa=="function")return a.aa();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(ya(a)){for(var b=[],c=a.length,d=0;d=0){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var Sc=function(a){this.ib=this.hc=this.wb="";this.vc=null;this.Sb=this.Zb="";this.za=this.cl=!1;if(a instanceof Sc){this.za=a.za;Tc(this,a.wb);var b=a.hc;Uc(this);this.hc=b;b=a.ib;Uc(this);this.ib=b;Vc(this,a.vc);this.setPath(a.getPath());Wc(this,a.Ba.clone());a=a.Sb;Uc(this);this.Sb=a}else a&&(b=String(a).match(Qc))?(this.za=!1,Tc(this,b[1]||"",!0),a=b[2]||"",Uc(this),this.hc=Xc(a),a=b[3]||"",Uc(this),this.ib=Xc(a,!0),Vc(this,b[4]),this.setPath(b[5]||"",!0),Wc(this,b[6]||"",!0),a=b[7]||"",Uc(this), this.Sb=Xc(a)):(this.za=!1,this.Ba=new Yc(null,this.za))}; -Sc.prototype.toString=function(){var a=[],b=this.wb;b&&a.push(Zc(b,$c,!0),":");var c=this.ib;if(c||"file"==b)a.push("//"),(b=this.hc)&&a.push(Zc(b,$c,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.vc,null!=c&&a.push(":",String(c));if(c=this.getPath())this.ib&&"/"!=c.charAt(0)&&a.push("/"),a.push(Zc(c,"/"==c.charAt(0)?ad:bd,!0));(c=this.Ba.toString())&&a.push("?",c);(c=this.Sb)&&a.push("#",Zc(c,cd));return a.join("")}; -Sc.prototype.resolve=function(a){var b=this.clone(),c=!!a.wb;c?Tc(b,a.wb):c=!!a.hc;if(c){var d=a.hc;Uc(b);b.hc=d}else c=!!a.ib;c?(d=a.ib,Uc(b),b.ib=d):c=null!=a.vc;d=a.getPath();if(c)Vc(b,a.vc);else if(c=!!a.Zb){if("/"!=d.charAt(0))if(this.ib&&!this.Zb)d="/"+d;else{var e=b.getPath().lastIndexOf("/");-1!=e&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(lb(e,"./")||lb(e,"/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var g=[],f=0;fb)throw Error("Bad port number "+b);a.vc=b}else a.vc=null}; +Sc.prototype.toString=function(){var a=[],b=this.wb;b&&a.push(Zc(b,$c,!0),":");var c=this.ib;if(c||b=="file")a.push("//"),(b=this.hc)&&a.push(Zc(b,$c,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.vc,c!=null&&a.push(":",String(c));if(c=this.getPath())this.ib&&c.charAt(0)!="/"&&a.push("/"),a.push(Zc(c,c.charAt(0)=="/"?ad:bd,!0));(c=this.Ba.toString())&&a.push("?",c);(c=this.Sb)&&a.push("#",Zc(c,cd));return a.join("")}; +Sc.prototype.resolve=function(a){var b=this.clone(),c=!!a.wb;c?Tc(b,a.wb):c=!!a.hc;if(c){var d=a.hc;Uc(b);b.hc=d}else c=!!a.ib;c?(d=a.ib,Uc(b),b.ib=d):c=a.vc!=null;d=a.getPath();if(c)Vc(b,a.vc);else if(c=!!a.Zb){if(d.charAt(0)!="/")if(this.ib&&!this.Zb)d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(lb(e,"./")||lb(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var g=[],f=0;f1||g.length==1&&g[0]!="")&&g.pop(),d&&f==e.length&&g.push("")):(g.push(l),d=!0)}d=g.join("/")}else d=e}c?b.setPath(d):c=a.Ba.toString()!=="";c?Wc(b,a.Ba.clone()):c=!!a.Sb;c&&(a=a.Sb,Uc(b),b.Sb=a);return b};Sc.prototype.clone=function(){return new Sc(this)};var Tc=function(a,b,c){Uc(a);a.wb=c?Xc(b,!0):b;a.wb&&(a.wb=a.wb.replace(/:$/,""))},Vc=function(a,b){Uc(a);if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.vc=b}else a.vc=null}; Sc.prototype.getPath=function(){return this.Zb};Sc.prototype.setPath=function(a,b){Uc(this);this.Zb=b?Xc(a,!0):a;return this};var Wc=function(a,b,c){Uc(a);b instanceof Yc?(a.Ba=b,a.Ba.gg(a.za)):(c||(b=Zc(b,dd)),a.Ba=new Yc(b,a.za))};Sc.prototype.getQuery=function(){return this.Ba.toString()};Sc.prototype.removeParameter=function(a){Uc(this);this.Ba.remove(a);return this};var Uc=function(a){if(a.cl)throw Error("Tried to modify a read-only Uri");};Sc.prototype.gg=function(a){this.za=a;this.Ba&&this.Ba.gg(a)}; -var ed=function(a){return a instanceof Sc?a.clone():new Sc(a)},Xc=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Zc=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,fd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},fd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},$c=/[#\/\?@]/g,bd=/[#\?:]/g,ad=/[#\?]/g,dd=/[#\?@]/g,cd=/#/g,Yc=function(a,b){this.Y=this.N=null;this.ta=a||null;this.za=!!b},gd= +var ed=function(a){return a instanceof Sc?a.clone():new Sc(a)},Xc=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},Zc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,fd),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},fd=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},$c=/[#\/\?@]/g,bd=/[#\?:]/g,ad=/[#\?]/g,dd=/[#\?@]/g,cd=/#/g,Yc=function(a,b){this.Y=this.N=null;this.ta=a||null;this.za=!!b},gd= function(a){a.N||(a.N=new Map,a.Y=0,a.ta&&Rc(a.ta,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=Yc.prototype;h.R=function(){gd(this);return this.Y};h.add=function(a,b){gd(this);this.ta=null;a=hd(this,a);var c=this.N.get(a);c||this.N.set(a,c=[]);c.push(b);this.Y=sb(this.Y)+1;return this};h.remove=function(a){gd(this);a=hd(this,a);return this.N.has(a)?(this.ta=null,this.Y=sb(this.Y)-this.N.get(a).length,this.N.delete(a)):!1};h.clear=function(){this.N=this.ta=null;this.Y=0}; -h.isEmpty=function(){gd(this);return 0==this.Y};h.Pb=function(a){gd(this);a=hd(this,a);return this.N.has(a)};h.Hc=function(a){var b=this.aa();return cc(b,a)};h.forEach=function(a,b){gd(this);this.N.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.tb=function(){gd(this);for(var a=Array.from(this.N.values()),b=Array.from(this.N.keys()),c=[],d=0;d>>0),Id=function(a){D(a,"Listener can not be null.");if("function"===typeof a)return a;D(a.handleEvent,"An object listener must have handleEvent method.");a[Qd]||(a[Qd]=function(b){return a.handleEvent(b)}); +h.isEmpty=function(){gd(this);return this.Y==0};h.Pb=function(a){gd(this);a=hd(this,a);return this.N.has(a)};h.Hc=function(a){var b=this.aa();return cc(b,a)};h.forEach=function(a,b){gd(this);this.N.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};h.tb=function(){gd(this);for(var a=Array.from(this.N.values()),b=Array.from(this.N.keys()),c=[],d=0;d0?String(a[0]):b}; +h.setValues=function(a,b){this.remove(a);b.length>0&&(this.ta=null,this.N.set(hd(this,a),fc(b)),this.Y=sb(this.Y)+b.length)};h.toString=function(){if(this.ta)return this.ta;if(!this.N)return"";for(var a=[],b=Array.from(this.N.keys()),c=0;c-1?(b=a[f],c||(b.Ad=!1)):(b=new yd(b,this.src,g,!!d,e),b.Ad=c,a.push(b));return b};Ad.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.ha))return!1;var e=this.ha[a];b=Bd(e,b,c,d);return b>-1?(zd(e[b]),ec(e,b),e.length==0&&(delete this.ha[a],this.nd--),!0):!1}; +var Cd=function(a,b){var c=b.type;c in a.ha&&dc(a.ha[c],b)&&(zd(b),a.ha[c].length==0&&(delete a.ha[c],a.nd--))};Ad.prototype.fd=function(a){a=a&&a.toString();var b=0,c;for(c in this.ha)if(!a||c==a){for(var d=this.ha[c],e=0;e-1?a[e]:null}; +Ad.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return $a(this.ha,function(g){for(var f=0;f>>0),Id=function(a){D(a,"Listener can not be null.");if(typeof a==="function")return a;D(a.handleEvent,"An object listener must have handleEvent method.");a[Qd]||(a[Qd]=function(b){return a.handleEvent(b)}); return a[Qd]};var J=function(){G.call(this);this.Ia=new Ad(this);this.Kk=this;this.Tf=null};x(J,G);J.prototype[vd]=!0;h=J.prototype;h.addEventListener=function(a,b,c,d){Hd(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){Od(this,a,b,c,d)}; -h.dispatchEvent=function(a){Rd(this);var b=this.Tf;if(b){var c=[];for(var d=1;b;b=b.Tf)c.push(b),D(1E3>++d,"infinite loop")}b=this.Kk;d=a.type||a;if("string"===typeof a)a=new H(a,b);else if(a instanceof H)a.target=a.target||b;else{var e=a;a=new H(d,b);kb(a,e)}e=!0;if(c)for(var g=c.length-1;!a.dd&&0<=g;g--){var f=a.currentTarget=c[g];e=Sd(f,d,!0,a)&&e}a.dd||(f=a.currentTarget=b,e=Sd(f,d,!0,a)&&e,a.dd||(e=Sd(f,d,!1,a)&&e));if(c)for(g=0;!a.dd&&g=a.length)return Yd;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},$d=function(a,b){if(ya(a))Xb(a,b);else for(a=Zd(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var de=function(a){if(a instanceof ae||a instanceof be||a instanceof ce)return a;if("function"==typeof a.next)return new ae(function(){return a});if("function"==typeof a[Symbol.iterator])return new ae(function(){return a[Symbol.iterator]()});if("function"==typeof a.Da)return new ae(function(){return a.Da()});throw Error("Not an iterator or iterable.");},ae=function(a){this.tf=a};ae.prototype.Da=function(){return new be(this.tf())};ae.prototype[Symbol.iterator]=function(){return new ce(this.tf())}; -ae.prototype.wg=function(){return new ce(this.tf())};var be=function(a){this.Rc=a};q(be,Xd);be.prototype.next=function(){return this.Rc.next()};be.prototype[Symbol.iterator]=function(){return new ce(this.Rc)};be.prototype.wg=function(){return new ce(this.Rc)};var ce=function(a){ae.call(this,function(){return a});this.Rc=a};q(ce,ae);ce.prototype.next=function(){return this.Rc.next()};var fe=function(a,b){this.A={};this.K=[];this.pd=this.size=0;var c=arguments.length;if(1=0;g--){var f=a.currentTarget=c[g];e=Sd(f,d,!0,a)&&e}a.dd||(f=a.currentTarget=b,e=Sd(f,d,!0,a)&&e,a.dd||(e=Sd(f,d,!1,a)&&e));if(c)for(g=0;!a.dd&&g=a.length)return Yd;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},$d=function(a,b){if(ya(a))Xb(a,b);else for(a=Zd(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var de=function(a){if(a instanceof ae||a instanceof be||a instanceof ce)return a;if(typeof a.next=="function")return new ae(function(){return a});if(typeof a[Symbol.iterator]=="function")return new ae(function(){return a[Symbol.iterator]()});if(typeof a.Da=="function")return new ae(function(){return a.Da()});throw Error("Not an iterator or iterable.");},ae=function(a){this.tf=a};ae.prototype.Da=function(){return new be(this.tf())};ae.prototype[Symbol.iterator]=function(){return new ce(this.tf())}; +ae.prototype.wg=function(){return new ce(this.tf())};var be=function(a){this.Rc=a};q(be,Xd);be.prototype.next=function(){return this.Rc.next()};be.prototype[Symbol.iterator]=function(){return new ce(this.Rc)};be.prototype.wg=function(){return new ce(this.Rc)};var ce=function(a){ae.call(this,function(){return a});this.Rc=a};q(ce,ae);ce.prototype.next=function(){return this.Rc.next()};var fe=function(a,b){this.A={};this.K=[];this.pd=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d2*this.size&&ge(this),!0):!1};var ge=function(a){if(a.size!=a.K.length){for(var b=0,c=0;b=d.K.length)return Yd;var g=d.K[b++];return{value:a?g:d.A[g],done:!1}};return e};h.mb=function(a){this.size=a};var he=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var je=function(a){this.A=new fe;this.size=0;a&&this.addAll(a)},ke=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+Ca(a):b.slice(0,1)+a};h=je.prototype;h.R=function(){return this.A.size};h.add=function(a){this.A.set(ke(a),a);this.mb(this.A.size)};h.addAll=function(a){a=Mc(a);for(var b=a.length,c=0;cc)return!1;!(b instanceof je)&&5e&&(e+=d);return[a.il,c,e,b.y].join("/")};oe.prototype.Mc=function(){return this.Ab.length};var qe=function(a){H.call(this,"tileevent");this.count=a};x(qe,H);var re={zc:"ADMIN_READ",Ac:"DATA_READ",Bc:"DATA_WRITE",bk:"LOG_TYPE_UNSPECIFIED",values:function(){return[re.bk,re.zc,re.Bc,re.Ac]}},se={zc:"ADMIN_READ",xe:"ADMIN_WRITE",Ac:"DATA_READ",Bc:"DATA_WRITE",Fe:"PERMISSION_TYPE_UNSPECIFIED",values:function(){return[se.Fe,se.zc,se.xe,se.Ac,se.Bc]}},te={cj:"AUTO_APPEAL_ELIGIBLE",gj:"CAPABILITY_GROUP_UNSPECIFIED",ij:"CLOUD_ALPHA",Dj:"EXTERNAL",Uj:"INTERNAL",Xj:"LIMITED",jk:"PREAUTHORIZED",lk:"PREVIEW",Dc:"PUBLIC",nk:"RESTRICTED",values:function(){return[te.gj, +h.entries=function(){var a=this;return Ud(this.keys(),function(b){return[b,a.get(b)]})};h.Da=function(a){ge(this);var b=0,c=this.pd,d=this,e=new Xd;e.next=function(){if(c!=d.pd)throw Error("The map has changed since the iterator was created");if(b>=d.K.length)return Yd;var g=d.K[b++];return{value:a?g:d.A[g],done:!1}};return e};h.mb=function(a){this.size=a};var he=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var je=function(a){this.A=new fe;this.size=0;a&&this.addAll(a)},ke=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+Ca(a):b.slice(0,1)+a};h=je.prototype;h.R=function(){return this.A.size};h.add=function(a){this.A.set(ke(a),a);this.mb(this.A.size)};h.addAll=function(a){a=Mc(a);for(var b=a.length,c=0;cc)return!1;!(b instanceof je)&&c>5&&(b=new je(b));return Pc(a,function(d){var e=b;return e.contains&&typeof e.contains=="function"?e.contains(d):e.Hc&&typeof e.Hc=="function"?e.Hc(d):ya(e)||typeof e==="string"?cc(e,d):cb(e,d)})};je.prototype.Da=function(){return this.A.Da(!1)}; +je.prototype[Symbol.iterator]=function(){return this.values()};je.prototype.mb=function(a){this.size=a};var oe=function(a,b,c){J.call(this);this.il=b;this.token=c;this.Ab=[];this.ug=new je;this.yb=0;this.url=a};x(oe,J);w("ee.AbstractOverlay",oe);var pe=function(a,b,c){var d=1<