@google/earthengine 0.1.376 → 0.1.378
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tmp/BUILD +699 -0
- package/.tmp/METADATA +23 -0
- package/.tmp/VERSION_BUILD +47 -0
- package/build/browser.js +79 -67
- package/build/ee_api_js.js +16 -16
- package/build/ee_api_js_debug.js +63 -51
- package/build/ee_api_js_npm.js +79 -67
- package/build/main.js +79 -67
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +18 -11
- package/src/examples/CloudMasking/{Sentinel2ClearComposite.js → Sentinel2ClearComposites.js} +29 -28
package/build/ee_api_js.js
CHANGED
|
@@ -74,7 +74,7 @@ Gc.prototype[Symbol.iterator]=function(){return this.values()};Gc.prototype.lb=f
|
|
|
74
74
|
function Yc(a){if(null==a)throw Error("Cannot deserialize, target constructor was null.");return new a}
|
|
75
75
|
function Vc(a,b,c,d,e){e=d(e);for(var g=Zc(a,e),f=g.P||{},l=g.s||{},m=g.La||{},p=n(g.keys||[]),v=p.next(),y={};!v.done;y={Uc:y.Uc},v=p.next()){v=v.value;var C=b(v,a);if(null!=C){var Q=void 0;if(f.hasOwnProperty(v)){if(g.th&&0===C.length)continue;Q=$c(C,b,c,d,!0,!0,f[v])}else if(l.hasOwnProperty(v))Q=$c(C,b,c,d,!1,!0,l[v]);else if(m.hasOwnProperty(v))y.Uc=m[v],Q=y.Uc.oa?C.map(function(oa){return function(R){return ad(R,oa.Uc,b,c,d)}}(y)):ad(C,y.Uc,b,c,d);else if(Array.isArray(C)){if(g.th&&0===C.length)continue;
|
|
76
76
|
Q=$c(C,b,c,d,!0,!1)}else Q=C instanceof Oc?null:C;c(v,e,Q)}}return e}function ad(a,b,c,d,e){for(var g={},f=n(Object.keys(a)),l=f.next();!l.done;l=f.next()){l=l.value;var m=a[l];null!=m&&(g[l]=$c(m,c,d,e,b.qa,b.pa,b.ja))}return g}
|
|
77
|
-
function $c(a,b,c,d,e,g,f){if(g&&null==f)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&g?a.map(function(l){return Vc(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Vc(a,b,c,d,f):a instanceof Oc?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a}function Zc(a,b){if(b instanceof E)a=Qc(b.i());else if(a instanceof E)a=Qc(a.i());else throw Error("Cannot find ClassMetadata.");return a};var bd;var ed=function(a,b){this.pg=a===cd&&b||"";this.Ck=dd};ed.prototype.rc=!0;ed.prototype.qc=function(){return this.pg};ed.prototype.toString=function(){return
|
|
77
|
+
function $c(a,b,c,d,e,g,f){if(g&&null==f)throw Error("Cannot deserialize a reference object without a constructor.");return null==a?a:e&&g?a.map(function(l){return Vc(l,b,c,d,f)}):e&&!g?a.map(function(l){return l}):!e&&g?Vc(a,b,c,d,f):a instanceof Oc?null:"object"===typeof a?JSON.parse(JSON.stringify(a)):a}function Zc(a,b){if(b instanceof E)a=Qc(b.i());else if(a instanceof E)a=Qc(a.i());else throw Error("Cannot find ClassMetadata.");return a};var bd;var ed=function(a,b){this.pg=a===cd&&b||"";this.Ck=dd};ed.prototype.rc=!0;ed.prototype.qc=function(){return this.pg};ed.prototype.toString=function(){return this.pg};var fd=function(a){if(a instanceof ed&&a.constructor===ed&&a.Ck===dd)return a.pg;La("expected object of type Const, got '"+a+"'");return"type_error:Const"},dd={},cd={};var hd=function(a,b){if(b!==gd)throw Error("TrustedResourceUrl is not meant to be built directly");this.Uf=a};hd.prototype.toString=function(){return this.Uf+""};hd.prototype.rc=!0;hd.prototype.qc=function(){return this.Uf.toString()};
|
|
78
78
|
var id=function(a){if(a instanceof hd&&a.constructor===hd)return a.Uf;La("expected object of type TrustedResourceUrl, got '%s' of type %s",a,ua(a));return"type_error:TrustedResourceUrl"},nd=function(a){var b=fd(jd);if(!kd.test(b))throw Error("Invalid TrustedResourceUrl format: "+b);var c=b.replace(ld,function(d,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));d=a[e];return d instanceof
|
|
79
79
|
ed?fd(d):encodeURIComponent(String(d))});return md(c)},ld=/%{(\w+)}/g,kd=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),gd={},md=function(a){if(void 0===bd){var b=null;var c=r.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:Ea,createScript:Ea,createScriptURL:Ea})}catch(d){r.console&&r.console.error(d.message)}bd=b}a=(b=bd)?b.createScriptURL(a):a;return new hd(a,gd)};var pd=function(a,b){if(b!==od)throw Error("SafeUrl is not meant to be built directly");this.Tf=a};pd.prototype.toString=function(){return this.Tf.toString()};pd.prototype.rc=!0;pd.prototype.qc=function(){return this.Tf.toString()};var qd=function(a){if(a instanceof pd&&a.constructor===pd)return a.Tf;La("expected object of type SafeUrl, got '"+a+"' of type "+ua(a));return"type_error:SafeUrl"},od={},rd=new pd("about:invalid#zClosurez",od);new pd("about:blank",od);var sd={},td=function(){if(sd!==sd)throw Error("SafeStyle is not meant to be built directly");this.pi="";this.rc=!0};td.prototype.qc=function(){return this.pi};td.prototype.toString=function(){return this.pi.toString()};new td;var ud={},vd=function(){if(ud!==ud)throw Error("SafeStyleSheet is not meant to be built directly");this.oi="";this.rc=!0};vd.prototype.toString=function(){return this.oi.toString()};vd.prototype.qc=function(){return this.oi};new vd;var wd={},xd=function(){var a=r.trustedTypes&&r.trustedTypes.emptyHTML||"";if(wd!==wd)throw Error("SafeHtml is not meant to be built directly");this.ni=a;this.rc=!0};xd.prototype.qc=function(){return this.ni.toString()};xd.prototype.toString=function(){return this.ni.toString()};new xd;var zd=function(a,b){if(!t(a)||!t(a)||!t(a)||1!==a.nodeType||a.namespaceURI&&"http://www.w3.org/1999/xhtml"!==a.namespaceURI||a.tagName.toUpperCase()!=="SCRIPT".toString()){var c="SCRIPT".toString()+"; got: ";if(t(a))try{var d=a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(e){d="<object could not be stringified>"}else d=void 0===a?"undefined":null===a?"null":typeof a;La("Argument is not an HTML Element with tag name "+(c+d))}a:{c=(a.ownerDocument&&a.ownerDocument.defaultView||
|
|
80
80
|
r).document;if(c.querySelector&&(c=c.querySelector("script[nonce]"))&&(c=c.nonce||c.getAttribute("nonce"))&&yd.test(c))break a;c=""}c&&a.setAttribute("nonce",c);a.src=id(b)},yd=/^[\w+/_-]+[=]{0,2}$/;var Ad=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")},Bd=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};var Cd=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Dd=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 g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?decodeURIComponent(e.replace(/\+/g," ")):"")}}};var Ed=function(a){this.hb=this.fc=this.vb="";this.wc=null;this.Rb=this.Yb="";this.ya=this.jl=!1;if(a instanceof Ed){this.ya=a.ya;Fd(this,a.vb);var b=a.fc;Gd(this);this.fc=b;b=a.hb;Gd(this);this.hb=b;Hd(this,a.wc);this.setPath(a.getPath());Id(this,a.Aa.clone());a=a.Rb;Gd(this);this.Rb=a}else a&&(b=String(a).match(Cd))?(this.ya=!1,Fd(this,b[1]||"",!0),a=b[2]||"",Gd(this),this.fc=Jd(a),a=b[3]||"",Gd(this),this.hb=Jd(a,!0),Hd(this,b[4]),this.setPath(b[5]||"",!0),Id(this,b[6]||"",!0),a=b[7]||"",Gd(this),
|
|
@@ -364,8 +364,8 @@ yf.prototype.i=function(){return{P:{ranges:of},keys:["gamma","opacity","paletteC
|
|
|
364
364
|
k.Object.defineProperties(yf.prototype,{gamma:{configurable:!0,enumerable:!0,get:function(){return G(this,"gamma")?F(this,"gamma"):null},set:function(a){this.h.gamma=a}},opacity:{configurable:!0,enumerable:!0,get:function(){return G(this,"opacity")?F(this,"opacity"):null},set:function(a){this.h.opacity=a}},Xc:{configurable:!0,enumerable:!0,get:function(){return G(this,"paletteColors")?F(this,"paletteColors"):null},set:function(a){this.h.paletteColors=a}},Wf:{configurable:!0,enumerable:!0,get:function(){return G(this,
|
|
365
365
|
"ranges")?F(this,"ranges"):null},set:function(a){this.h.ranges=a}}});var Qg=function(a){a=void 0===a?{}:a;this.h={};this.h.start=null==a.start?null:a.start;this.h.end=null==a.end?null:a.end};q(Qg,E);Qg.prototype.i=function(){return{keys:["end","start"]}};
|
|
366
366
|
k.Object.defineProperties(Qg.prototype,{end:{configurable:!0,enumerable:!0,get:function(){return G(this,"end")?F(this,"end"):null},set:function(a){this.h.end=a}},start:{configurable:!0,enumerable:!0,get:function(){return G(this,"start")?F(this,"start"):null},set:function(a){this.h.start=a}}});
|
|
367
|
-
var Wd={$Xgafv:"$.xgafv",access_token:"access_token",alt:"alt",assetId:"assetId",
|
|
368
|
-
|
|
367
|
+
var Wd={$Xgafv:"$.xgafv",access_token:"access_token",alt:"alt",assetId:"assetId",callback:"callback",fields:"fields",filter:"filter",key:"key",oauth_token:"oauth_token",overwrite:"overwrite",pageSize:"pageSize",pageToken:"pageToken",parent:"parent",prettyPrint:"prettyPrint",quotaUser:"quotaUser",region:"region",updateMask:"updateMask",uploadType:"uploadType",upload_protocol:"upload_protocol",view:"view",workloadTag:"workloadTag"},Ug=function(a){this.m="v1";this.j=new Zd(a,null)};
|
|
368
|
+
Ug.prototype.list=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.j.C(a,RegExp("^projects/[^/]+$"));return I(this.j,{body:null,B:"GET",D:"earthengine.projects.algorithms.list",path:"/"+this.m+"/"+a+"/algorithms",u:H(b,c),G:tg})};var Vg=function(a){this.m="v1";this.j=new Zd(a,null)};
|
|
369
369
|
Vg.prototype.getCapabilities=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.j.C(a,RegExp("^projects/[^/]+$"));return I(this.j,{body:null,B:"GET",D:"earthengine.projects.getCapabilities",path:"/"+this.m+"/"+a+"/capabilities",u:H(b,c),G:Ze})};Vg.prototype.Sd=function(a,b){b=void 0===b?{}:b;var c=void 0===c?{}:c;this.j.C(a,RegExp("^projects/[^/]+$"));return I(this.j,{body:null,B:"GET",D:"earthengine.projects.listAssets",path:"/"+this.m+"/"+a+":listAssets",u:H(b,c),G:ug})};
|
|
370
370
|
var Wg=function(a){this.m="v1";this.j=new Zd(a,null)};h=Wg.prototype;h.create=function(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?{}:d;this.j.C(a,RegExp("^projects/[^/]+$"));return I(this.j,{body:b,B:"POST",D:"earthengine.projects.assets.create",path:"/"+this.m+"/"+a+"/assets",u:H(c,d),G:qf})};
|
|
371
371
|
h.delete=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.j.C(a,RegExp("^projects/[^/]+/assets/.*$"));return I(this.j,{body:null,B:"DELETE",D:"earthengine.projects.assets.delete",path:"/"+this.m+"/"+a,u:H(b,c),G:zf})};h.get=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.j.C(a,RegExp("^projects/[^/]+/assets/.*$"));return I(this.j,{body:null,B:"GET",D:"earthengine.projects.assets.get",path:"/"+this.m+"/"+a,u:H(b,c),G:qf})};
|
|
@@ -441,7 +441,7 @@ Uc(p,f[m]))});return b?b(l):l};return this.callback?(uj(d,null,function(f,l){ret
|
|
|
441
441
|
vj.prototype.send=function(a,b){var c=[a.B+" "+a.path+" HTTP/1.1"];c.push("Content-Type: application/json; charset=utf-8");var d=yj();null!=d&&c.push("Authorization: "+d);a=a.body?JSON.stringify(a.body):"";return[c.join("\r\n")+"\r\n\r\n"+a,b]};
|
|
442
442
|
var zj=function(a,b,c){a=n(b.split("--"+a.split("; boundary=")[1]));for(b=a.next();!b.done;b=a.next())if(b=b.value.split("\r\n\r\n"),!(3>b.length)){var d=b[0].match(/\r\nContent-ID: <response-([^>]*)>/)[1],e=Number(b[1].match(/^HTTP\S*\s(\d+)\s/)[1]);c(d,e,b.slice(2).join("\r\n\r\n"))}},sj=function(){var a=Aj.replace(/\/api$/,"");return"window"in r&&!a.match(/^https?:\/\/content-/)?a.replace(/^(https?:\/\/)(.*\.googleapis\.com)$/,"$1content-$2"):a},Cj=function(a,b,c){var d=[];a&&(d=d.concat(Bj));
|
|
443
443
|
b&&d.push("https://www.googleapis.com/auth/devstorage.read_write");a=d=d.concat(c);c=b=0;for(var e={};c<a.length;){var g=a[c++],f=t(g)?"o"+za(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,f)||(e[f]=!0,a[b++]=g)}a.length=b;return d},Ij=function(a,b,c){Dj&&Ej&&Dj({client_id:String(Ej),immediate:!0,scope:Fj.join(" "),plugin_name:"earthengine"},function(d){if("immediate_failed"==d.error&&c)c();else if("window"in r)try{Gj(function(){try{r.gapi.client.setToken(d),Hj(a,b,d)}catch(e){b(e.toString())}})}catch(e){b(e.toString())}else Hj(a,
|
|
444
|
-
b,d)})},yj=function(){Jj&&0<=Date.now()-Jj&&Kj();return Lj},Kj=function(){Jj=Lj=null},pj=function(a,b,c,d){null!=a?Aj=a:Mj||(Aj="https://earthengine.googleapis.com/api");null!=b?Nj=b:Mj||(Nj="https://earthengine.googleapis.com");void 0!==c&&(Oj=c);oj=null!=d?d:oj||"earthengine-legacy";Mj=!0},uj=function(a,b,c,d,e,g,f){pj();var l=Pj,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="0.1.
|
|
444
|
+
b,d)})},yj=function(){Jj&&0<=Date.now()-Jj&&Kj();return Lj},Kj=function(){Jj=Lj=null},pj=function(a,b,c,d){null!=a?Aj=a:Mj||(Aj="https://earthengine.googleapis.com/api");null!=b?Nj=b:Mj||(Nj="https://earthengine.googleapis.com");void 0!==c&&(Oj=c);oj=null!=d?d:oj||"earthengine-legacy";Mj=!0},uj=function(a,b,c,d,e,g,f){pj();var l=Pj,m="application/x-www-form-urlencoded";e&&(m="application/json",d&&d.startsWith("multipart")&&(m=d,d="POST"));d=d||"POST";m={"Content-Type":m};var p="0.1.378";"0.1.378"===
|
|
445
445
|
p&&(p="latest");m["x-goog-api-client"]="ee-js/"+p;p=yj();if(null!=p)m.Authorization=p;else if(c&&Dj&&Ej)return Ij(function(){Qj(l,function(){uj(a,b,c,d)})}),null;b=b?b.clone():new Kd;null!=Rj&&b.add("key",Rj);l&&(m["X-Earth-Engine-Computation-Profiling"]="1");oj&&"earthengine-legacy"!==oj&&(m["X-Goog-User-Project"]=oj);b=Sj(b,a);null!=Oj&&(m["X-XSRF-Token"]=Oj);null!=Tj&&(m["X-Earth-Engine-App-ID-Token"]=Tj);p=e||null;var v=b?b.toString():"";"POST"===d&&void 0===e?p=v:/^[\s\xa0]*$/.test(v)||(a+=-1!=
|
|
446
446
|
a.indexOf("?")?"&":"?",a+=v);e=a.startsWith("/")?Aj+a:a;if(c)return Uj.push(Vj(e,c,d,p,m,g,f)),Wj.nf(),null;v=function(Q,oa){this.setRequestHeader&&this.setRequestHeader(oa,Q)};var y=0;for(g=null!=g?g:5;;){var C=aj(Zi);C.open(d,e,!1);Db(m,v,C);C.send(p);if(429!=C.status||y>g)break;y++}return Xj(C.status,function(Q){try{return C.getResponseHeader(Q)}catch(oa){return null}},C.responseText,l,void 0,e,d,f)},Vj=function(a,b,c,d,e,g,f){var l=0,m={url:a,method:c,content:d,headers:e},p=Pj,v=null!=g?g:10;
|
|
447
447
|
m.callback=function(y){y=y.target;if(429==y.getStatus()&&l<v)return l++,setTimeout(function(){Uj.push(m);Wj.nf()},Math.min(12E4,1E3*Math.pow(2,l))),null;var C=Xj,Q=y.getStatus(),oa=u(y.getResponseHeader,y);try{var R=y.o?y.o.responseText:""}catch(Aa){Ui(y.aa,"Can not get responseText: "+Aa.message),R=""}return C(Q,oa,R,p,b,a,c,f)};return m},Qj=function(a,b){var c=Pj;try{Pj=a,b.call(void 0)}finally{Pj=c}},Xj=function(a,b,c,d,e,g,f,l){var m=d?b("X-Earth-Engine-Computation-Profile"):"";m&&d&&d(m);var p=
|
|
@@ -676,7 +676,7 @@ kq.prototype.fi=function(a){var b=a.currentTarget;if(b){if("readystatechange"==a
|
|
|
676
676
|
|
|
677
677
|
SPDX-License-Identifier: Apache-2.0
|
|
678
678
|
*/
|
|
679
|
-
var oq=[],pq=function(a){var b=Qi(Ri(),"safevalues").Uh;b&&Si(b,Fi,"A URL with content '"+a+"' was sanitized away.")};-1===oq.indexOf(pq)&&oq.push(pq);function qq(a){if("undefined"!==typeof MediaSource&&a instanceof MediaSource)return new pd(URL.createObjectURL(a),od);var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if(2!==(null==b?void 0:b.length)||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/\w+/i.test(b[1])))throw Error("unsafe blob MIME type: "+
|
|
679
|
+
var oq=[],pq=function(a){var b=Qi(Ri(),"safevalues").Uh;b&&Si(b,Fi,"A URL with content '"+a+"' was sanitized away.")};-1===oq.indexOf(pq)&&oq.push(pq);function qq(a){if("undefined"!==typeof MediaSource&&a instanceof MediaSource)return new pd(URL.createObjectURL(a),od);var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i);if(2!==(null==b?void 0:b.length)||!(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/\w+/i.test(b[1])))throw Error("unsafe blob MIME type: "+
|
|
680
680
|
a.type);return new pd(URL.createObjectURL(a),od)};var rq=function(a,b){Wp.call(this,a,b)};q(rq,Wp);rq.prototype.gh=function(a,b,c,d){return new sq(a,b,c,d)};w("ee.layers.ImageOverlay",rq);var sq=function(a,b,c,d){dq.call(this,a,b,c,d);this.ae=tq;this.Jh=this.fa=this.Od=null;this.Wc=""};q(sq,dq);
|
|
681
681
|
sq.prototype.Jc=function(){try{var a=qq(this.Gi);this.Wc=qd(a);var b=this.Wc!==rd.toString()?this.Wc:this.Ba}catch(c){b=this.Ba}this.fa=new kq;mq(this.fa,this.ka.id+"-image",b);this.Jh=Zb(this.fa,uq,function(c){"load"==c.type?(this.Od=c.target,dq.prototype.Jc.call(this)):this.ed()},void 0,this);this.fa.start()};sq.prototype.Fc=function(){dq.prototype.Fc.call(this);this.fa&&(hc(this.Jh),Fa(this.fa))};sq.prototype.J=function(){dq.prototype.J.call(this);this.Wc&&URL.revokeObjectURL(this.Wc)};
|
|
682
682
|
var tq=function(a){a.ka.appendChild(a.Od)},uq=["load","abort","error"];var vq=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 wq=function(a,b,c,d){z.call(this);this.Tg=a;this.Yb=b;this.qg=d||"";this.Ud=c};q(wq,hq);wq.prototype.Gf=function(a){if(a.zoom<=this.Ud)a.Ba=this.Jd(a.qb,a.zoom);else{var b=a.zoom-this.Ud,c=Math.pow(2,b);c=new google.maps.Point(Math.floor(a.qb.x/c),Math.floor(a.qb.y/c));a.Ba=this.Jd(c,a.zoom-b);a.ae=Da(xq,this.Ud)}var d=u(a.ed,a);a.ed=u(function(e){e&&(e.includes("The specified key does not exist.")||e.includes("AccessDenied"))?eq(a,"loaded"):d(e)},a);fq(a)};
|
|
@@ -696,18 +696,18 @@ h.El=function(){if(!this.jc){var a=u(function(d){this.jc||(mq(this.fa,this.ea,d)
|
|
|
696
696
|
h.Ri=null;h.Ia=null;h.ri=null;var Oq=["load","abort","error"],Pq=function(){z.call(this);this.Da=!1};q(Pq,z);Pq.prototype.setActive=function(a){this.Da=a};Pq.prototype.isActive=function(){return this.Da};var Kq=function(a,b){Fq.call(this,a,b)};q(Kq,Fq);Kq.prototype.Ze=function(){return new Pq};Kq.prototype.Ad=function(a){a.Qa()};Kq.prototype.Qf=function(a){return!a.Ra&&!a.isActive()};var Qq=function(a,b,c,d,e){Lc.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.xg=new Gc;this.Rf=1;this.ta=e||null};q(Qq,Lc);h=Qq.prototype;h.Me=function(a){return $b(this,"tileevent",a)};h.bg=function(a){hc(a)};
|
|
697
697
|
h.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=Mc(this,a,b);a=[this.url,b].join("/")+"?token="+this.token;this.ta&&this.ta.isEnabled()&&(a+="&profiling=1");b=[b,this.xb,this.token].join("/");this.xb+=1;c=qh("DIV",{id:b});var d=(new Date).getTime()/1E3;this.zb.push(b);Bl(Lq).send(b,a,d,u(this.el,this,c,b));Kp(this);return c};h.Lc=function(){return this.zb.length};
|
|
698
698
|
h.releaseTile=function(a){Bl(Lq).abort(a.id);if(void 0!==a.firstElementChild)var b=a.firstElementChild;else for(b=a.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;this.xg.remove(b);""!==a.id&&(this.wg.remove(a.id),this.ta&&this.ta.vl(a.id))};h.setOpacity=function(a){this.Rf=a;var b=this.xg.Ca();sc(b,function(c){Vp(c,a)})};
|
|
699
|
-
h.el=function(a,b,c,d){"error"==c.type?(Za(this.zb,b),this.wg.add(b),this.dispatchEvent(c)):(Za(this.zb,b),c.target&&"load"==c.type&&(c=c.target,this.xg.add(c),1!=this.Rf&&Vp(c,this.Rf),a.appendChild(c)),Kp(this));this.ta&&null!==d&&this.ta.Sk(b,d)};w("ee.MapLayerOverlay",Qq);Qq.prototype.removeTileCallback=Qq.prototype.bg;Qq.prototype.addTileCallback=Qq.prototype.Me;Qq.prototype.getTile=Qq.prototype.getTile;Qq.prototype.setOpacity=Qq.prototype.setOpacity;Qq.prototype.releaseTile=Qq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.table.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toFeatureView ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.map.toCloudStorage ee.batch.Export.video.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toDrive ee.Collection.prototype.filterBounds ee.Collection.prototype.limit ee.Collection.prototype.map ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.iterate ee.Collection.prototype.filterDate ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.data.getFeatureViewTilesKey ee.data.createAsset ee.data.getList ee.data.
|
|
699
|
+
h.el=function(a,b,c,d){"error"==c.type?(Za(this.zb,b),this.wg.add(b),this.dispatchEvent(c)):(Za(this.zb,b),c.target&&"load"==c.type&&(c=c.target,this.xg.add(c),1!=this.Rf&&Vp(c,this.Rf),a.appendChild(c)),Kp(this));this.ta&&null!==d&&this.ta.Sk(b,d)};w("ee.MapLayerOverlay",Qq);Qq.prototype.removeTileCallback=Qq.prototype.bg;Qq.prototype.addTileCallback=Qq.prototype.Me;Qq.prototype.getTile=Qq.prototype.getTile;Qq.prototype.setOpacity=Qq.prototype.setOpacity;Qq.prototype.releaseTile=Qq.prototype.releaseTile;(function(){var a={},b="ee.ApiFunction.lookup ee.ApiFunction._apply ee.ApiFunction._call ee.batch.Export.table.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toFeatureView ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.map.toCloudStorage ee.batch.Export.video.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.image.toAsset ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toDrive ee.Collection.prototype.filterBounds ee.Collection.prototype.limit ee.Collection.prototype.map ee.Collection.prototype.filter ee.Collection.prototype.sort ee.Collection.prototype.iterate ee.Collection.prototype.filterDate ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.aside ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.evaluate ee.data.getFeatureViewTilesKey ee.data.createAsset ee.data.getList ee.data.getAssetAcl ee.data.listAssets ee.data.authenticate ee.data.makeTableDownloadUrl ee.data.listFeatures ee.data.getWorkloadTag ee.data.createAssetHome ee.data.makeDownloadUrl ee.data.getThumbId ee.data.getAssetRootQuota ee.data.getTableDownloadId ee.data.getVideoThumbId ee.data.getFilmstripThumbId ee.data.startIngestion ee.data.makeThumbUrl ee.data.computeValue ee.data.authenticateViaPrivateKey ee.data.getAssetRoots ee.data.listImages ee.data.setAssetProperties ee.data.getInfo ee.data.listBuckets ee.data.getDownloadId ee.data.setAssetAcl ee.data.getTaskListWithLimit ee.data.deleteAsset ee.data.cancelOperation ee.data.listOperations ee.data.getTaskList ee.data.copyAsset ee.data.resetWorkloadTag ee.data.updateAsset ee.data.renameAsset ee.data.getAsset ee.data.cancelTask ee.data.getMapId ee.data.newTaskId ee.data.createFolder ee.data.getOperation ee.data.setWorkloadTag ee.data.startTableIngestion ee.data.authenticateViaPopup ee.data.getTileUrl ee.data.setDefaultWorkloadTag ee.data.startProcessing ee.data.updateTask ee.data.getTaskStatus ee.data.authenticateViaOauth ee.Date ee.Deserializer.decodeCloudApi ee.Deserializer.decode ee.Deserializer.fromJSON ee.Deserializer.fromCloudApiJSON ee.Dictionary ee.InitState ee.TILE_SIZE ee.reset ee.call ee.initialize ee.apply ee.Algorithms ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.FeatureCollection.prototype.select ee.FeatureCollection ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.Filter.gt ee.Filter.lte ee.Filter.lt ee.Filter.and ee.Filter.or ee.Filter.gte ee.Filter.date ee.Filter.inList ee.Filter ee.Filter.prototype.not ee.Filter.metadata ee.Filter.eq ee.Filter.neq ee.Filter.bounds ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry.MultiLineString ee.Geometry.Rectangle ee.Geometry.LineString ee.Geometry.Polygon ee.Geometry.prototype.toGeoJSON ee.Geometry.prototype.toGeoJSONString ee.Geometry.Point ee.Geometry.BBox ee.Geometry.LinearRing ee.Geometry.prototype.serialize ee.Geometry.MultiPolygon ee.Geometry ee.Geometry.MultiPoint ee.Image.cat ee.Image.prototype.expression ee.Image ee.Image.prototype.rename ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image.prototype.getInfo ee.Image.rgb ee.Image.prototype.getThumbURL ee.Image.prototype.getThumbId ee.Image.prototype.clip ee.Image.prototype.select ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.select ee.ImageCollection.prototype.first ee.ImageCollection ee.List ee.Number ee.Serializer.toReadableCloudApiJSON ee.Serializer.encode ee.Serializer.toJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encodeCloudApi ee.Serializer.toReadableJSON ee.Serializer.toCloudApiJSON ee.String ee.Terrain".split(" "),
|
|
700
700
|
c=[["name"],["name","namedArgs"],["name","var_args"],"collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),["collection","opt_description","opt_assetId","opt_maxVertices"],"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking".split(" "),"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices".split(" "),"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(" "),
|
|
701
701
|
"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris".split(" "),"collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames".split(" "),
|
|
702
702
|
["classifier","opt_description","opt_assetId"],"image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize".split(" "),"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris".split(" "),
|
|
703
703
|
"collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices".split(" "),"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(" "),["geometry"],["max","opt_property","opt_ascending"],["algorithm","opt_dropNulls"],["filter"],["property","opt_ascending"],["algorithm","opt_first"],["start","opt_end"],
|
|
704
|
-
["name","operator","value"],["opt_callback"],["func","var_args"],["legacy"],["callback"],["params","opt_callback"],["value","opt_path","opt_force","opt_properties","opt_callback"],["params","opt_callback"],["parent","opt_params","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["
|
|
705
|
-
["params","opt_callback"],["params","opt_callback"],["taskId","request","opt_callback"],["id"],["
|
|
706
|
-
"
|
|
707
|
-
"params","opt_callback"],["taskId","action","opt_callback"],["taskId","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],[],[],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","
|
|
708
|
-
["args","opt_column"],["opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],["
|
|
709
|
-
["
|
|
710
|
-
["var_args"],["opt_visParams","opt_callback"],["params","opt_callback"],["opt_callback"],["r","g","b"],["params","opt_callback"],["
|
|
711
|
-
["obj"],["obj"],["obj"],["obj"],["string"],[]];[dn,en,P,Jo,Ko,Lo,Mo,Fo,No,Ho,Oo,Qo,Do,Po,Io,Go,W.prototype.yh,W.prototype.limit,W.prototype.map,W.prototype.filter,W.prototype.sort,W.prototype.Nh,W.prototype.lf,W.prototype.mf,N.prototype.U,N.prototype.Hg,N.prototype.ua,N.prototype.evaluate,Ml,Dm,xm,ym,El,
|
|
712
|
-
X,X.prototype.getMap,X.prototype.U,Y,Y.prototype.U,Y.prototype.rb,Y.prototype.getMap,
|
|
713
|
-
Z.prototype.first,Z,
|
|
704
|
+
["name","operator","value"],["opt_callback"],["func","var_args"],["legacy"],["callback"],["params","opt_callback"],["value","opt_path","opt_force","opt_properties","opt_callback"],["params","opt_callback"],["assetId","opt_callback"],["parent","opt_params","opt_callback"],["clientId","success","opt_error","opt_extraScopes","opt_onImmediateFailed"],["id"],["asset","params","opt_callback"],[],["requestedId","opt_callback"],["id"],["params","opt_callback"],["rootId","opt_callback"],["params","opt_callback"],
|
|
705
|
+
["params","opt_callback"],["params","opt_callback"],["taskId","request","opt_callback"],["id"],["obj","opt_callback"],["privateKey","opt_success","opt_error","opt_extraScopes","opt_suppressDefaultScopes"],["opt_callback"],["parent","opt_params","opt_callback"],["assetId","properties","opt_callback"],["id","opt_callback"],["project","opt_callback"],["params","opt_callback"],["assetId","aclUpdate","opt_callback"],["opt_limit","opt_callback"],["assetId","opt_callback"],["operationName","opt_callback"],
|
|
706
|
+
["opt_limit","opt_callback"],["opt_callback"],["sourceId","destinationId","opt_overwrite","opt_callback"],["opt_resetDefault"],["assetId","asset","updateFields","opt_callback"],["sourceId","destinationId","opt_callback"],["id","opt_callback"],["taskId","opt_callback"],["params","opt_callback"],["opt_count","opt_callback"],["path","opt_force","opt_callback"],["operationName","opt_callback"],["tag"],["taskId","request","opt_callback"],["opt_success","opt_error"],["id","x","y","z"],["tag"],["taskId",
|
|
707
|
+
"params","opt_callback"],["taskId","action","opt_callback"],["taskId","opt_callback"],"clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "),["date","opt_tz"],["json"],["json"],["json"],["json"],["opt_dict"],[],[],[],["func","var_args"],"opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "),["func","namedArgs"],[],["var_args"],[],["geometry","opt_properties"],["opt_visParams","opt_callback"],["opt_callback"],
|
|
708
|
+
["propertySelectors","opt_newProperties","opt_retainGeometry"],["args","opt_column"],["opt_callback"],["opt_format","opt_selectors","opt_filename","opt_callback"],["opt_visParams","opt_callback"],["name","value"],["name","value"],["name","value"],["var_args"],["var_args"],["name","value"],["start","opt_end"],["opt_leftField","opt_rightValue","opt_rightField","opt_leftValue"],["opt_filter"],[],["name","operator","value"],["name","value"],["name","value"],["geometry","opt_errorMargin"],["namedArgs"],
|
|
709
|
+
["var_args"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj","opt_geodesic","opt_maxError"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],[],[],["coords","opt_proj"],["west","south","east","north"],["coords","opt_proj","opt_geodesic","opt_maxError"],["legacy"],["coords","opt_proj","opt_geodesic","opt_maxError","opt_evenOdd"],["geoJson","opt_proj","opt_geodesic","opt_evenOdd"],["coords","opt_proj"],["var_args"],
|
|
710
|
+
["expression","opt_map"],["opt_args"],["var_args"],["opt_visParams","opt_callback"],["params","opt_callback"],["opt_callback"],["r","g","b"],["params","opt_callback"],["params","opt_callback"],["geometry"],["var_args"],["params","opt_callback"],["params","opt_callback"],["opt_visParams","opt_callback"],["opt_callback"],["imageCollection","opt_linkedBands","opt_linkedProperties","opt_matchPropertyName"],["selectors","opt_names"],[],["args"],["list"],["number"],["obj"],["obj","opt_isCompound"],["obj"],
|
|
711
|
+
["obj"],["obj"],["obj"],["obj"],["string"],[]];[dn,en,P,Jo,Ko,Lo,Mo,Fo,No,Ho,Oo,Qo,Do,Po,Io,Go,W.prototype.yh,W.prototype.limit,W.prototype.map,W.prototype.filter,W.prototype.sort,W.prototype.Nh,W.prototype.lf,W.prototype.mf,N.prototype.U,N.prototype.Hg,N.prototype.ua,N.prototype.evaluate,Ml,Dm,xm,Im,ym,El,Xl,Nl,Il,Cm,Vl,Pl,Mm,Wl,Ql,Rl,sm,Sl,Ol,Fl,Bm,zm,Lm,vm,Am,Ul,Km,bm,Hm,em,dm,cm,Gm,Qm,Jm,Fm,vm,hm,Kl,Yl,Em,fm,Om,um,Cl,Ll,Pm,om,gm,am,Dl,gp,lp,jp,kp,pp,qp,Dp,256,Cp,Ep,zp,Fp,Bp,T.prototype.set,ak,
|
|
712
|
+
X,X.prototype.getMap,X.prototype.U,Y.prototype.select,Y,Y.prototype.U,Y.prototype.rb,Y.prototype.getMap,Wn,Xn,Un,Yn,Zn,Vn,$n,ao,V,V.prototype.tc,co,Sn,Tn,bo,Zm.prototype.apply,Zm.prototype.call,In,Cn,Gn,Jn,U.prototype.le,U.prototype.zg,yn,Dn,Hn,U.prototype.ua,Kn,U,Bn,ro,M.prototype.l,M,M.prototype.wi,M.prototype.getMap,M.prototype.rb,M.prototype.U,qo,M.prototype.vf,M.prototype.Id,M.prototype.clip,M.prototype.select,Z.prototype.tf,Z.prototype.wf,Z.prototype.getMap,Z.prototype.U,Z.prototype.Ff,Z.prototype.select,
|
|
713
|
+
Z.prototype.first,Z,so,Xo,hl,Wk,Xk,fl,bl,Zk,gl,$o,tp].forEach(function(d,e){d&&(a[d.toString()]={name:b[e],paramNames:c[e]})});r.EXPORTED_FN_INFO=a})();}).call(this);
|
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1200,7 +1200,8 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1200
1200
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1201
1201
|
};
|
|
1202
1202
|
}, "es8", "es3");
|
|
1203
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_attribute_sanitization__disable:!1, GoogFlags__client_only_wiz_hook_context_fix__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1,
|
|
1203
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_attribute_sanitization__disable:!1, GoogFlags__client_only_wiz_hook_context_fix__enable:!1, GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1,
|
|
1204
|
+
GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1};
|
|
1204
1205
|
/*
|
|
1205
1206
|
|
|
1206
1207
|
Copyright The Closure Library Authors.
|
|
@@ -2967,6 +2968,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_cl
|
|
|
2967
2968
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = !1;
|
|
2968
2969
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable = !1;
|
|
2969
2970
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable = !1;
|
|
2971
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable = !1;
|
|
2970
2972
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
2971
2973
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
2972
2974
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -2977,6 +2979,8 @@ goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2eto
|
|
|
2977
2979
|
goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable : goog.readFlagInternalDoNotUseOrElse(899588437, !1);
|
|
2978
2980
|
goog.flags.CLIENT_ONLY_WIZ_ATTRIBUTE_SANITIZATION = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_attribute_sanitization__disable : goog.readFlagInternalDoNotUseOrElse(533565600, !0);
|
|
2979
2981
|
goog.flags.CLIENT_ONLY_WIZ_HOOK_CONTEXT_FIX = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_hook_context_fix__enable : goog.readFlagInternalDoNotUseOrElse(563486499, !1);
|
|
2982
|
+
goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable) : goog.readFlagInternalDoNotUseOrElse(572417392,
|
|
2983
|
+
module$contents$goog$flags_STAGING);
|
|
2980
2984
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
2981
2985
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
2982
2986
|
goog.flags.TESTONLY_STAGING_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -3722,24 +3726,18 @@ goog.userAgent.PLATFORM = goog.userAgent.determinePlatform_();
|
|
|
3722
3726
|
goog.userAgent.ASSUME_MAC = !1;
|
|
3723
3727
|
goog.userAgent.ASSUME_WINDOWS = !1;
|
|
3724
3728
|
goog.userAgent.ASSUME_LINUX = !1;
|
|
3725
|
-
goog.userAgent.ASSUME_X11 = !1;
|
|
3726
3729
|
goog.userAgent.ASSUME_ANDROID = !1;
|
|
3727
3730
|
goog.userAgent.ASSUME_IPHONE = !1;
|
|
3728
3731
|
goog.userAgent.ASSUME_IPAD = !1;
|
|
3729
3732
|
goog.userAgent.ASSUME_IPOD = !1;
|
|
3730
3733
|
goog.userAgent.ASSUME_KAIOS = !1;
|
|
3731
|
-
goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.
|
|
3734
|
+
goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.ASSUME_ANDROID || goog.userAgent.ASSUME_IPHONE || goog.userAgent.ASSUME_IPAD || goog.userAgent.ASSUME_IPOD;
|
|
3732
3735
|
goog.userAgent.MAC = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_MAC : module$contents$goog$labs$userAgent$platform_isMacintosh();
|
|
3733
3736
|
goog.userAgent.WINDOWS = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_WINDOWS : module$contents$goog$labs$userAgent$platform_isWindows();
|
|
3734
3737
|
goog.userAgent.isLegacyLinux_ = function() {
|
|
3735
3738
|
return module$contents$goog$labs$userAgent$platform_isLinux() || module$contents$goog$labs$userAgent$platform_isChromeOS();
|
|
3736
3739
|
};
|
|
3737
3740
|
goog.userAgent.LINUX = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_LINUX : goog.userAgent.isLegacyLinux_();
|
|
3738
|
-
goog.userAgent.isX11_ = function() {
|
|
3739
|
-
var navigator = goog.userAgent.getNavigatorTyped();
|
|
3740
|
-
return !!navigator && goog.string.internal.contains(navigator.appVersion || "", "X11");
|
|
3741
|
-
};
|
|
3742
|
-
goog.userAgent.X11 = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_X11 : goog.userAgent.isX11_();
|
|
3743
3741
|
goog.userAgent.ANDROID = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_ANDROID : module$contents$goog$labs$userAgent$platform_isAndroid();
|
|
3744
3742
|
goog.userAgent.IPHONE = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPHONE : module$contents$goog$labs$userAgent$platform_isIphone();
|
|
3745
3743
|
goog.userAgent.IPAD = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPAD : module$contents$goog$labs$userAgent$platform_isIpad();
|
|
@@ -6062,7 +6060,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6062
6060
|
};
|
|
6063
6061
|
var module$contents$eeapiclient$domain_object_CopyValueGetter, module$contents$eeapiclient$domain_object_CopyValueSetter, module$contents$eeapiclient$domain_object_CopyConstructor, module$contents$eeapiclient$domain_object_CopyInstanciator;
|
|
6064
6062
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6065
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6063
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6066
6064
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6067
6065
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6068
6066
|
if (null != value) {
|
|
@@ -6075,11 +6073,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6075
6073
|
} else if (objects.hasOwnProperty(key)) {
|
|
6076
6074
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6077
6075
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6078
|
-
$jscomp$loop$
|
|
6076
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6079
6077
|
return function(v) {
|
|
6080
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6078
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6081
6079
|
};
|
|
6082
|
-
}($jscomp$loop$
|
|
6080
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6083
6081
|
} else if (Array.isArray(value)) {
|
|
6084
6082
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6085
6083
|
continue;
|
|
@@ -6125,39 +6123,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6125
6123
|
if (!(module$contents$eeapiclient$domain_object_sameKeys(keys1, metadata2.keys || []) && module$contents$eeapiclient$domain_object_sameKeys(arrays1, arrays2) && module$contents$eeapiclient$domain_object_sameKeys(objects1, objects2) && module$contents$eeapiclient$domain_object_sameKeys(objectMaps1, objectMaps2))) {
|
|
6126
6124
|
return !1;
|
|
6127
6125
|
}
|
|
6128
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6126
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6129
6127
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6130
6128
|
if (has1 !== has2) {
|
|
6131
6129
|
return !1;
|
|
6132
6130
|
}
|
|
6133
6131
|
if (has1) {
|
|
6134
6132
|
var value1 = serializable1.Serializable$get(key);
|
|
6135
|
-
$jscomp$loop$
|
|
6133
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6136
6134
|
if (arrays1.hasOwnProperty(key)) {
|
|
6137
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6135
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6138
6136
|
return !1;
|
|
6139
6137
|
}
|
|
6140
6138
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6141
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6139
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6142
6140
|
return !1;
|
|
6143
6141
|
}
|
|
6144
6142
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6145
|
-
if ($jscomp$loop$
|
|
6146
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6143
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6144
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6147
6145
|
return function(v1, i) {
|
|
6148
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6146
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6149
6147
|
};
|
|
6150
|
-
}($jscomp$loop$
|
|
6148
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6151
6149
|
return !1;
|
|
6152
6150
|
}
|
|
6153
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6151
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6154
6152
|
return !1;
|
|
6155
6153
|
}
|
|
6156
6154
|
} else if (Array.isArray(value1)) {
|
|
6157
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6155
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6158
6156
|
return !1;
|
|
6159
6157
|
}
|
|
6160
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6158
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6161
6159
|
return !1;
|
|
6162
6160
|
}
|
|
6163
6161
|
}
|
|
@@ -6558,7 +6556,7 @@ goog.string.Const.prototype.getTypedStringValue = function() {
|
|
|
6558
6556
|
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6559
6557
|
};
|
|
6560
6558
|
goog.DEBUG && (goog.string.Const.prototype.toString = function() {
|
|
6561
|
-
return
|
|
6559
|
+
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6562
6560
|
});
|
|
6563
6561
|
goog.string.Const.unwrap = function(stringConst) {
|
|
6564
6562
|
if (stringConst instanceof goog.string.Const && stringConst.constructor === goog.string.Const && stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === goog.string.Const.TYPE_MARKER_) {
|
|
@@ -13638,8 +13636,8 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
13638
13636
|
}, set:function(value) {
|
|
13639
13637
|
this.Serializable$set("start", value);
|
|
13640
13638
|
}}});
|
|
13641
|
-
var module$contents$eeapiclient$ee_api_client_PARAM_MAP_0 = {$Xgafv:"$.xgafv", access_token:"access_token", alt:"alt", assetId:"assetId",
|
|
13642
|
-
|
|
13639
|
+
var module$contents$eeapiclient$ee_api_client_PARAM_MAP_0 = {$Xgafv:"$.xgafv", access_token:"access_token", alt:"alt", assetId:"assetId", callback:"callback", fields:"fields", filter:"filter", key:"key", oauth_token:"oauth_token", overwrite:"overwrite", pageSize:"pageSize", pageToken:"pageToken", parent:"parent", prettyPrint:"prettyPrint", quotaUser:"quotaUser", region:"region", updateMask:"updateMask", uploadType:"uploadType", upload_protocol:"upload_protocol", view:"view",
|
|
13640
|
+
workloadTag:"workloadTag"};
|
|
13643
13641
|
module$exports$eeapiclient$ee_api_client.IBillingAccountsSubscriptionsApiClient$XgafvEnum = function() {
|
|
13644
13642
|
};
|
|
13645
13643
|
module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
|
|
@@ -17391,7 +17389,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17391
17389
|
ee.apiclient = {};
|
|
17392
17390
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17393
17391
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17394
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17392
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.378";
|
|
17395
17393
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17396
17394
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17397
17395
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17682,8 +17680,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17682
17680
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17683
17681
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17684
17682
|
method = method || "POST";
|
|
17685
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17686
|
-
"0.1.
|
|
17683
|
+
var headers = {"Content-Type":contentType}, version = "0.1.378";
|
|
17684
|
+
"0.1.378" === version && (version = "latest");
|
|
17687
17685
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17688
17686
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17689
17687
|
if (null != authToken) {
|
|
@@ -24318,8 +24316,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24318
24316
|
throw Error(message);
|
|
24319
24317
|
}
|
|
24320
24318
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24321
|
-
var $jscomp$templatelit$
|
|
24322
|
-
["\\0"]), $jscomp$templatelit$
|
|
24319
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24320
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
24323
24321
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24324
24322
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24325
24323
|
throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################");
|
|
@@ -24333,14 +24331,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24333
24331
|
return -1 === fn.toString().indexOf("`");
|
|
24334
24332
|
}
|
|
24335
24333
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24336
|
-
return tag($jscomp$templatelit$
|
|
24334
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
24337
24335
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24338
|
-
return tag($jscomp$templatelit$
|
|
24336
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
24339
24337
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24340
|
-
return tag($jscomp$templatelit$
|
|
24338
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
24341
24339
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24342
|
-
return tag($jscomp$templatelit$
|
|
24343
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24340
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
24341
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
24344
24342
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24345
24343
|
return Array.isArray(templateObj) && Array.isArray(templateObj.raw) && templateObj.length === templateObj.raw.length && (module$contents$safevalues$internals$string_literal_isTranspiled || templateObj !== templateObj.raw) && (module$contents$safevalues$internals$string_literal_isTranspiled && !module$contents$safevalues$internals$string_literal_frozenTSA || module$contents$safevalues$internals$string_literal_checkFrozen(templateObj)) ?
|
|
24346
24344
|
!0 : !1;
|
|
@@ -24606,9 +24604,12 @@ function module$contents$safevalues$dom$globals$range_createContextualFragment(r
|
|
|
24606
24604
|
return range.createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(html));
|
|
24607
24605
|
}
|
|
24608
24606
|
;var module$contents$safevalues$builders$html_sanitizer$inert_fragment_module = module$contents$safevalues$builders$html_sanitizer$inert_fragment_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/inert_fragment.closure.js"};
|
|
24609
|
-
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml) {
|
|
24610
|
-
|
|
24611
|
-
|
|
24607
|
+
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
|
|
24608
|
+
if (goog.DEBUG && inertDocument.defaultView) {
|
|
24609
|
+
throw Error("createInertFragment called with non-inert document");
|
|
24610
|
+
}
|
|
24611
|
+
var range = inertDocument.createRange();
|
|
24612
|
+
range.selectNode(inertDocument.body);
|
|
24612
24613
|
var temporarySafeHtml = module$contents$safevalues$internals$html_impl_createHtmlInternal(dirtyHtml);
|
|
24613
24614
|
return module$contents$safevalues$dom$globals$range_createContextualFragment(range, temporarySafeHtml);
|
|
24614
24615
|
}
|
|
@@ -24713,21 +24714,25 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24713
24714
|
return sanitizedHtml;
|
|
24714
24715
|
};
|
|
24715
24716
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize = function(html) {
|
|
24716
|
-
var
|
|
24717
|
-
fakeRoot.appendChild(this.
|
|
24717
|
+
var inertDocument = document.implementation.createHTMLDocument(""), fakeRoot = inertDocument.body;
|
|
24718
|
+
fakeRoot.appendChild(this.sanitizeToFragmentInternal(html, inertDocument));
|
|
24718
24719
|
var serializedNewTree = (new XMLSerializer()).serializeToString(fakeRoot);
|
|
24719
24720
|
serializedNewTree = serializedNewTree.slice(serializedNewTree.indexOf(">") + 1, serializedNewTree.lastIndexOf("</"));
|
|
24720
24721
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal(serializedNewTree);
|
|
24721
24722
|
};
|
|
24722
24723
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
24723
|
-
|
|
24724
|
+
var inertDocument = document.implementation.createHTMLDocument("");
|
|
24725
|
+
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
24726
|
+
};
|
|
24727
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
24728
|
+
for (var $jscomp$this = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
24724
24729
|
return $jscomp$this.nodeFilter(n);
|
|
24725
|
-
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment =
|
|
24730
|
+
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
24726
24731
|
var sanitizedNode = void 0;
|
|
24727
24732
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
24728
24733
|
sanitizedNode = this.sanitizeTextNode(currentNode);
|
|
24729
24734
|
} else if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(currentNode)) {
|
|
24730
|
-
sanitizedNode = this.sanitizeElementNode(currentNode);
|
|
24735
|
+
sanitizedNode = this.sanitizeElementNode(currentNode, inertDocument);
|
|
24731
24736
|
} else {
|
|
24732
24737
|
var message = "";
|
|
24733
24738
|
goog.DEBUG && (message = "Node is not of type text or element");
|
|
@@ -24747,8 +24752,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24747
24752
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeTextNode = function(textNode) {
|
|
24748
24753
|
return document.createTextNode(textNode.data);
|
|
24749
24754
|
};
|
|
24750
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode) {
|
|
24751
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode =
|
|
24755
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
24756
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$43 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$ = $jscomp$iter$43.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$43.next()) {
|
|
24752
24757
|
var $jscomp$destructuring$var52 = $jscomp$key$.value, name = $jscomp$destructuring$var52.name, value = $jscomp$destructuring$var52.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
24753
24758
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
24754
24759
|
switch(policy.policyAction) {
|
|
@@ -24803,7 +24808,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24803
24808
|
return !0;
|
|
24804
24809
|
}
|
|
24805
24810
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24806
|
-
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$
|
|
24811
|
+
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
24807
24812
|
if (value && !expectedValues.has(value)) {
|
|
24808
24813
|
return !1;
|
|
24809
24814
|
}
|
|
@@ -24984,6 +24989,9 @@ function module$contents$safevalues$builders$resource_url_builders_isValidPathSt
|
|
|
24984
24989
|
}
|
|
24985
24990
|
throw Error("The path start in the url is invalid.");
|
|
24986
24991
|
}
|
|
24992
|
+
function module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) {
|
|
24993
|
+
return RegExp("^[^:\\s\\\\/]+/").test(base);
|
|
24994
|
+
}
|
|
24987
24995
|
function module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl(templateObj) {
|
|
24988
24996
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
24989
24997
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
@@ -24995,7 +25003,7 @@ function module$contents$safevalues$builders$resource_url_builders_trustedResour
|
|
|
24995
25003
|
if (/^data:/.test(base)) {
|
|
24996
25004
|
throw Error("Data URLs cannot have expressions in the template literal input.");
|
|
24997
25005
|
}
|
|
24998
|
-
if (!module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base)
|
|
25006
|
+
if (!(module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base) || module$contents$safevalues$builders$resource_url_builders_isValidPathStart(base) || module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) || module$contents$safevalues$builders$resource_url_builders_isValidAboutUrl(base))) {
|
|
24999
25007
|
throw Error("Trying to interpolate expressions in an unsupported url format.");
|
|
25000
25008
|
}
|
|
25001
25009
|
}
|
|
@@ -25040,6 +25048,10 @@ function module$contents$safevalues$builders$resource_url_builders_objectUrlFrom
|
|
|
25040
25048
|
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(URL.createObjectURL(new Blob([scriptContent], {type:"text/javascript"})));
|
|
25041
25049
|
}
|
|
25042
25050
|
module$exports$safevalues$builders$resource_url_builders.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
25051
|
+
module$exports$safevalues$builders$resource_url_builders.toAbsoluteResourceUrl = function(pathRelativeUrl) {
|
|
25052
|
+
var originalUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(pathRelativeUrl).toString(), qualifiedUrl = new URL(originalUrl, window.document.baseURI);
|
|
25053
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(qualifiedUrl.toString());
|
|
25054
|
+
};
|
|
25043
25055
|
var module$exports$safevalues$builders$script_builders = {}, module$contents$safevalues$builders$script_builders_module = module$contents$safevalues$builders$script_builders_module || {id:"third_party/javascript/safevalues/builders/script_builders.closure.js"}, module$contents$safevalues$builders$script_builders_Primitive, module$contents$safevalues$builders$script_builders_Serializable;
|
|
25044
25056
|
function module$contents$safevalues$builders$script_builders_safeScript(templateObj) {
|
|
25045
25057
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
@@ -25156,7 +25168,7 @@ function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeTyp
|
|
|
25156
25168
|
return 2 === (null == match ? void 0 : match.length) && (module$contents$safevalues$builders$url_builders_isSafeImageMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeAudioMimeType(match[1]) || module$contents$safevalues$builders$url_builders_isSafeFontMimeType(match[1]));
|
|
25157
25169
|
}
|
|
25158
25170
|
function module$contents$safevalues$builders$url_builders_isSafeImageMimeType(mimeType) {
|
|
25159
|
-
return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif)$/i.test(mimeType);
|
|
25171
|
+
return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(mimeType);
|
|
25160
25172
|
}
|
|
25161
25173
|
function module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(mimeType) {
|
|
25162
25174
|
return /^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(mimeType);
|
|
@@ -25301,12 +25313,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25301
25313
|
}
|
|
25302
25314
|
try {
|
|
25303
25315
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25304
|
-
} catch ($jscomp$unused$catch$
|
|
25316
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
25305
25317
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25306
25318
|
}
|
|
25307
25319
|
try {
|
|
25308
25320
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25309
|
-
} catch ($jscomp$unused$catch$
|
|
25321
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
25310
25322
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25311
25323
|
}
|
|
25312
25324
|
return !1;
|