@google/earthengine 0.1.404 → 0.1.405
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/build/browser.js +117 -119
- package/build/ee_api_js.js +16 -16
- package/build/ee_api_js_debug.js +95 -96
- package/build/ee_api_js_npm.js +117 -119
- package/build/main.js +117 -119
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +13 -9
package/build/ee_api_js_debug.js
CHANGED
|
@@ -2030,9 +2030,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2030
2030
|
};
|
|
2031
2031
|
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;
|
|
2032
2032
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2033
|
-
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$
|
|
2034
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2035
|
-
var key = $jscomp$key$
|
|
2033
|
+
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$m1892927425$40$key = $jscomp$iter$19.next(), $jscomp$loop$m1892927425$44 = {}; !$jscomp$key$m1892927425$40$key.done; $jscomp$loop$m1892927425$44 =
|
|
2034
|
+
{mapMetadata:void 0}, $jscomp$key$m1892927425$40$key = $jscomp$iter$19.next()) {
|
|
2035
|
+
var key = $jscomp$key$m1892927425$40$key.value, value = valueGetter(key, source);
|
|
2036
2036
|
if (null != value) {
|
|
2037
2037
|
var copy = void 0;
|
|
2038
2038
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2043,11 +2043,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2043
2043
|
} else if (objects.hasOwnProperty(key)) {
|
|
2044
2044
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2045
2045
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2046
|
-
$jscomp$loop$
|
|
2046
|
+
$jscomp$loop$m1892927425$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$44) {
|
|
2047
2047
|
return function(v) {
|
|
2048
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2048
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2049
2049
|
};
|
|
2050
|
-
}($jscomp$loop$
|
|
2050
|
+
}($jscomp$loop$m1892927425$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2051
2051
|
} else if (Array.isArray(value)) {
|
|
2052
2052
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
2053
2053
|
continue;
|
|
@@ -2062,8 +2062,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2062
2062
|
return target;
|
|
2063
2063
|
}
|
|
2064
2064
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2065
|
-
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$
|
|
2066
|
-
var mapKey = $jscomp$key$
|
|
2065
|
+
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m1892927425$41$mapKey.done; $jscomp$key$m1892927425$41$mapKey = $jscomp$iter$20.next()) {
|
|
2066
|
+
var mapKey = $jscomp$key$m1892927425$41$mapKey.value, mapValue = value[mapKey];
|
|
2067
2067
|
null != mapValue && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2068
2068
|
}
|
|
2069
2069
|
return objMap;
|
|
@@ -2093,39 +2093,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2093
2093
|
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))) {
|
|
2094
2094
|
return !1;
|
|
2095
2095
|
}
|
|
2096
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$
|
|
2097
|
-
var key = $jscomp$key$
|
|
2096
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$45 = {}; !$jscomp$key$m1892927425$42$key.done; $jscomp$loop$m1892927425$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m1892927425$42$key = $jscomp$iter$21.next()) {
|
|
2097
|
+
var key = $jscomp$key$m1892927425$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
2098
2098
|
if (has1 !== has2) {
|
|
2099
2099
|
return !1;
|
|
2100
2100
|
}
|
|
2101
2101
|
if (has1) {
|
|
2102
2102
|
var value1 = serializable1.Serializable$get(key);
|
|
2103
|
-
$jscomp$loop$
|
|
2103
|
+
$jscomp$loop$m1892927425$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2104
2104
|
if (arrays1.hasOwnProperty(key)) {
|
|
2105
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2105
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !0)) {
|
|
2106
2106
|
return !1;
|
|
2107
2107
|
}
|
|
2108
2108
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2109
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2109
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !0)) {
|
|
2110
2110
|
return !1;
|
|
2111
2111
|
}
|
|
2112
2112
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2113
|
-
if ($jscomp$loop$
|
|
2114
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2113
|
+
if ($jscomp$loop$m1892927425$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2114
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$45) {
|
|
2115
2115
|
return function(v1, i) {
|
|
2116
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2116
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$45.value2$jscomp$7[i], $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2);
|
|
2117
2117
|
};
|
|
2118
|
-
}($jscomp$loop$
|
|
2118
|
+
}($jscomp$loop$m1892927425$45))) {
|
|
2119
2119
|
return !1;
|
|
2120
2120
|
}
|
|
2121
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2121
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, $jscomp$loop$m1892927425$45.mapMetadata$jscomp$2)) {
|
|
2122
2122
|
return !1;
|
|
2123
2123
|
}
|
|
2124
2124
|
} else if (Array.isArray(value1)) {
|
|
2125
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2125
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !0, !1)) {
|
|
2126
2126
|
return !1;
|
|
2127
2127
|
}
|
|
2128
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2128
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$45.value2$jscomp$7, !1, !1)) {
|
|
2129
2129
|
return !1;
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
@@ -2147,8 +2147,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2147
2147
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2148
2148
|
return !1;
|
|
2149
2149
|
}
|
|
2150
|
-
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$
|
|
2151
|
-
var mapKey = $jscomp$key$
|
|
2150
|
+
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m1892927425$43$mapKey.done; $jscomp$key$m1892927425$43$mapKey = $jscomp$iter$22.next()) {
|
|
2151
|
+
var mapKey = $jscomp$key$m1892927425$43$mapKey.value;
|
|
2152
2152
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2153
2153
|
return !1;
|
|
2154
2154
|
}
|
|
@@ -2229,15 +2229,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2229
2229
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2230
2230
|
};
|
|
2231
2231
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2232
|
-
var $jscomp$this$
|
|
2232
|
+
var $jscomp$this$m133342051$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2233
2233
|
payload += this._metadataPayload;
|
|
2234
2234
|
return Promise.all(this.files.map(function(f) {
|
|
2235
|
-
return $jscomp$this$
|
|
2235
|
+
return $jscomp$this$m133342051$6.encodeFile(f);
|
|
2236
2236
|
})).then(function(filePayloads) {
|
|
2237
|
-
for (var $jscomp$iter$23 = $jscomp.makeIterator(filePayloads), $jscomp$key$
|
|
2238
|
-
payload += $jscomp$key$
|
|
2237
|
+
for (var $jscomp$iter$23 = $jscomp.makeIterator(filePayloads), $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m133342051$9$filePayload.done; $jscomp$key$m133342051$9$filePayload = $jscomp$iter$23.next()) {
|
|
2238
|
+
payload += $jscomp$key$m133342051$9$filePayload.value;
|
|
2239
2239
|
}
|
|
2240
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2240
|
+
return payload += "\r\n--" + $jscomp$this$m133342051$6._boundary + "--";
|
|
2241
2241
|
});
|
|
2242
2242
|
};
|
|
2243
2243
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2887,8 +2887,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2887
2887
|
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
2888
2888
|
}
|
|
2889
2889
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2890
|
-
var $jscomp$templatelit$
|
|
2891
|
-
["\\0"]), $jscomp$templatelit$
|
|
2890
|
+
var $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
2891
|
+
["\\0"]), $jscomp$templatelit$m425881384$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$12 = $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"};
|
|
2892
2892
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2893
2893
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2894
2894
|
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 ##############################");
|
|
@@ -2902,14 +2902,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2902
2902
|
return -1 === fn.toString().indexOf("`");
|
|
2903
2903
|
}
|
|
2904
2904
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2905
|
-
return tag($jscomp$templatelit$
|
|
2905
|
+
return tag($jscomp$templatelit$m425881384$5);
|
|
2906
2906
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2907
|
-
return tag($jscomp$templatelit$
|
|
2907
|
+
return tag($jscomp$templatelit$m425881384$6);
|
|
2908
2908
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2909
|
-
return tag($jscomp$templatelit$
|
|
2909
|
+
return tag($jscomp$templatelit$m425881384$7);
|
|
2910
2910
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2911
|
-
return tag($jscomp$templatelit$
|
|
2912
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2911
|
+
return tag($jscomp$templatelit$m425881384$8);
|
|
2912
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$12);
|
|
2913
2913
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2914
2914
|
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)) ?
|
|
2915
2915
|
!0 : !1;
|
|
@@ -4319,9 +4319,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
4319
4319
|
}
|
|
4320
4320
|
}
|
|
4321
4321
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
4322
|
-
var $jscomp$tmp$error$
|
|
4323
|
-
this.message = $jscomp$tmp$error$
|
|
4324
|
-
"stack" in $jscomp$tmp$error$
|
|
4322
|
+
var $jscomp$tmp$error$494508883$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
4323
|
+
this.message = $jscomp$tmp$error$494508883$1.message;
|
|
4324
|
+
"stack" in $jscomp$tmp$error$494508883$1 && (this.stack = $jscomp$tmp$error$494508883$1.stack);
|
|
4325
4325
|
this.type = type;
|
|
4326
4326
|
this.intent = intent;
|
|
4327
4327
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -4427,7 +4427,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
|
4427
4427
|
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
4428
4428
|
};
|
|
4429
4429
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
4430
|
-
var $jscomp$optchain$
|
|
4430
|
+
var $jscomp$optchain$tmpm1987982378$0, $jscomp$optchain$tmpm1987982378$1, el = null == ($jscomp$optchain$tmpm1987982378$1 = ($jscomp$optchain$tmpm1987982378$0 = win.document).querySelector) ? void 0 : $jscomp$optchain$tmpm1987982378$1.call($jscomp$optchain$tmpm1987982378$0, elementName + "[nonce]");
|
|
4431
4431
|
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
4432
4432
|
}
|
|
4433
4433
|
;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
|
|
@@ -5094,9 +5094,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
5094
5094
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
5095
5095
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
5096
5096
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
5097
|
-
var $jscomp$tmp$error$
|
|
5098
|
-
this.message = $jscomp$tmp$error$
|
|
5099
|
-
"stack" in $jscomp$tmp$error$
|
|
5097
|
+
var $jscomp$tmp$error$1153895636$4 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
5098
|
+
this.message = $jscomp$tmp$error$1153895636$4.message;
|
|
5099
|
+
"stack" in $jscomp$tmp$error$1153895636$4 && (this.stack = $jscomp$tmp$error$1153895636$4.stack);
|
|
5100
5100
|
this.url = url;
|
|
5101
5101
|
this.typeName = typeName;
|
|
5102
5102
|
this.contentType = contentType;
|
|
@@ -5108,48 +5108,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
5108
5108
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
5109
5109
|
}
|
|
5110
5110
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
5111
|
-
var response, $jscomp$optchain$
|
|
5112
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
5113
|
-
if (1 == $jscomp$generator$context$
|
|
5114
|
-
return $jscomp$generator$context$
|
|
5115
|
-
}
|
|
5116
|
-
response = $jscomp$generator$context$
|
|
5117
|
-
mimeType = null == ($jscomp$optchain$
|
|
5118
|
-
return $jscomp$generator$context$
|
|
5111
|
+
var response, $jscomp$optchain$tmp1153895636$0, $jscomp$optchain$tmp1153895636$1, $jscomp$optchain$tmp1153895636$2, mimeType;
|
|
5112
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$8) {
|
|
5113
|
+
if (1 == $jscomp$generator$context$1153895636$8.nextAddress) {
|
|
5114
|
+
return $jscomp$generator$context$1153895636$8.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
5115
|
+
}
|
|
5116
|
+
response = $jscomp$generator$context$1153895636$8.yieldResult;
|
|
5117
|
+
mimeType = null == ($jscomp$optchain$tmp1153895636$0 = response.headers.get("Content-Type")) ? void 0 : null == ($jscomp$optchain$tmp1153895636$1 = $jscomp$optchain$tmp1153895636$0.split(";", 2)) ? void 0 : null == ($jscomp$optchain$tmp1153895636$2 = $jscomp$optchain$tmp1153895636$1[0]) ? void 0 : $jscomp$optchain$tmp1153895636$2.toLowerCase();
|
|
5118
|
+
return $jscomp$generator$context$1153895636$8.return({html:function() {
|
|
5119
5119
|
var text;
|
|
5120
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
5121
|
-
if (1 == $jscomp$generator$context$
|
|
5120
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$5) {
|
|
5121
|
+
if (1 == $jscomp$generator$context$1153895636$5.nextAddress) {
|
|
5122
5122
|
if ("text/html" !== mimeType) {
|
|
5123
5123
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
5124
5124
|
}
|
|
5125
|
-
return $jscomp$generator$context$
|
|
5125
|
+
return $jscomp$generator$context$1153895636$5.yield(response.text(), 2);
|
|
5126
5126
|
}
|
|
5127
|
-
text = $jscomp$generator$context$
|
|
5128
|
-
return $jscomp$generator$context$
|
|
5127
|
+
text = $jscomp$generator$context$1153895636$5.yieldResult;
|
|
5128
|
+
return $jscomp$generator$context$1153895636$5.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
5129
5129
|
});
|
|
5130
5130
|
}, script:function() {
|
|
5131
5131
|
var text;
|
|
5132
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
5133
|
-
if (1 == $jscomp$generator$context$
|
|
5132
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$6) {
|
|
5133
|
+
if (1 == $jscomp$generator$context$1153895636$6.nextAddress) {
|
|
5134
5134
|
if ("text/javascript" !== mimeType && "application/javascript" !== mimeType) {
|
|
5135
5135
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
5136
5136
|
}
|
|
5137
|
-
return $jscomp$generator$context$
|
|
5137
|
+
return $jscomp$generator$context$1153895636$6.yield(response.text(), 2);
|
|
5138
5138
|
}
|
|
5139
|
-
text = $jscomp$generator$context$
|
|
5140
|
-
return $jscomp$generator$context$
|
|
5139
|
+
text = $jscomp$generator$context$1153895636$6.yieldResult;
|
|
5140
|
+
return $jscomp$generator$context$1153895636$6.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
5141
5141
|
});
|
|
5142
5142
|
}, styleSheet:function() {
|
|
5143
5143
|
var text;
|
|
5144
|
-
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$
|
|
5145
|
-
if (1 == $jscomp$generator$context$
|
|
5144
|
+
return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context$1153895636$7) {
|
|
5145
|
+
if (1 == $jscomp$generator$context$1153895636$7.nextAddress) {
|
|
5146
5146
|
if ("text/css" !== mimeType) {
|
|
5147
5147
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
5148
5148
|
}
|
|
5149
|
-
return $jscomp$generator$context$
|
|
5149
|
+
return $jscomp$generator$context$1153895636$7.yield(response.text(), 2);
|
|
5150
5150
|
}
|
|
5151
|
-
text = $jscomp$generator$context$
|
|
5152
|
-
return $jscomp$generator$context$
|
|
5151
|
+
text = $jscomp$generator$context$1153895636$7.yieldResult;
|
|
5152
|
+
return $jscomp$generator$context$1153895636$7.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
5153
5153
|
});
|
|
5154
5154
|
}});
|
|
5155
5155
|
});
|
|
@@ -6571,8 +6571,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6571
6571
|
}
|
|
6572
6572
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6573
6573
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6574
|
-
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$
|
|
6575
|
-
var $jscomp$destructuring$var3 = $jscomp.makeIterator($jscomp$key$
|
|
6574
|
+
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$m125199259$0$ = $jscomp$iter$29.next(); !$jscomp$key$m125199259$0$.done; $jscomp$key$m125199259$0$ = $jscomp$iter$29.next()) {
|
|
6575
|
+
var $jscomp$destructuring$var3 = $jscomp.makeIterator($jscomp$key$m125199259$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
6576
6576
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6577
6577
|
}
|
|
6578
6578
|
return urlQueryParams;
|
|
@@ -6583,8 +6583,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6583
6583
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
6584
6584
|
if (params.headers) {
|
|
6585
6585
|
hasContentType = null != params.headers["Content-Type"];
|
|
6586
|
-
for (var $jscomp$iter$30 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$
|
|
6587
|
-
var $jscomp$destructuring$var5 = $jscomp.makeIterator($jscomp$key$
|
|
6586
|
+
for (var $jscomp$iter$30 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$m125199259$1$ = $jscomp$iter$30.next(); !$jscomp$key$m125199259$1$.done; $jscomp$key$m125199259$1$ = $jscomp$iter$30.next()) {
|
|
6587
|
+
var $jscomp$destructuring$var5 = $jscomp.makeIterator($jscomp$key$m125199259$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
6588
6588
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
@@ -6624,9 +6624,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6624
6624
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6625
6625
|
};
|
|
6626
6626
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6627
|
-
var $jscomp$this$
|
|
6627
|
+
var $jscomp$this$m296226325$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6628
6628
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6629
|
-
return $jscomp$this$
|
|
6629
|
+
return $jscomp$this$m296226325$4.requestService.send(params, responseCtor);
|
|
6630
6630
|
}));
|
|
6631
6631
|
};
|
|
6632
6632
|
var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
|
|
@@ -6799,8 +6799,7 @@ var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1,
|
|
|
6799
6799
|
goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable : goog.readFlagInternalDoNotUseOrElse(610401301, !1);
|
|
6800
6800
|
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);
|
|
6801
6801
|
goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__enable : goog.readFlagInternalDoNotUseOrElse(188588736, goog.DEBUG);
|
|
6802
|
-
goog.flags.CLIENT_ONLY_WIZ_REACTION_ASYNC_AWAIT = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ?
|
|
6803
|
-
module$contents$goog$flags_STAGING);
|
|
6802
|
+
goog.flags.CLIENT_ONLY_WIZ_REACTION_ASYNC_AWAIT = 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_reaction_async_await__disable : goog.readFlagInternalDoNotUseOrElse(399321843, !0);
|
|
6804
6803
|
goog.flags.CLIENT_ONLY_WIZ_COMPONENT_STACKS = 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__client_only_wiz_component_stacks__disable) : goog.readFlagInternalDoNotUseOrElse(628162879, module$contents$goog$flags_STAGING);
|
|
6805
6804
|
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);
|
|
6806
6805
|
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);
|
|
@@ -15455,8 +15454,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15455
15454
|
this.replacements = new Map();
|
|
15456
15455
|
};
|
|
15457
15456
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15458
|
-
var $jscomp$this$
|
|
15459
|
-
return $jscomp$this$
|
|
15457
|
+
var $jscomp$this$1018007701$5 = this, openedTags = [], marker = (0,module$exports$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString(), html = (0,module$exports$safevalues$builders$html_builders.htmlEscape)(format).toString().replace(new RegExp("\\{" + marker + "[\\w&#;]+\\}", "g"), function(match) {
|
|
15458
|
+
return $jscomp$this$1018007701$5.replaceFormattingString(openedTags, match);
|
|
15460
15459
|
});
|
|
15461
15460
|
if (0 !== openedTags.length) {
|
|
15462
15461
|
if (goog.DEBUG) {
|
|
@@ -15637,8 +15636,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15637
15636
|
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
15638
15637
|
};
|
|
15639
15638
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
15640
|
-
for (var $jscomp$this$
|
|
15641
|
-
return $jscomp$this$
|
|
15639
|
+
for (var $jscomp$this$m1085474118$10 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
15640
|
+
return $jscomp$this$m1085474118$10.nodeFilter(n);
|
|
15642
15641
|
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
15643
15642
|
var sanitizedNode = void 0;
|
|
15644
15643
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -15665,8 +15664,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15665
15664
|
return document.createTextNode(textNode.data);
|
|
15666
15665
|
};
|
|
15667
15666
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
15668
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$
|
|
15669
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
15667
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$31 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1085474118$25$ = $jscomp$iter$31.next(); !$jscomp$key$m1085474118$25$.done; $jscomp$key$m1085474118$25$ = $jscomp$iter$31.next()) {
|
|
15668
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1085474118$25$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
15670
15669
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
15671
15670
|
switch(policy.policyAction) {
|
|
15672
15671
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -15719,8 +15718,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
15719
15718
|
if (!conditions) {
|
|
15720
15719
|
return !0;
|
|
15721
15720
|
}
|
|
15722
|
-
for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$
|
|
15723
|
-
var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$
|
|
15721
|
+
for (var $jscomp$iter$32 = $jscomp.makeIterator(conditions), $jscomp$key$m1085474118$26$ = $jscomp$iter$32.next(); !$jscomp$key$m1085474118$26$.done; $jscomp$key$m1085474118$26$ = $jscomp$iter$32.next()) {
|
|
15722
|
+
var $jscomp$destructuring$var33 = $jscomp.makeIterator($jscomp$key$m1085474118$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = null == ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
15724
15723
|
if (value && !expectedValues.has(value)) {
|
|
15725
15724
|
return !1;
|
|
15726
15725
|
}
|
|
@@ -15774,8 +15773,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15774
15773
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable;
|
|
15775
15774
|
};
|
|
15776
15775
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
15777
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$
|
|
15778
|
-
var element = $jscomp$key$
|
|
15776
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$33 = $jscomp.makeIterator(elementSet), $jscomp$key$435282654$0$element = $jscomp$iter$33.next(); !$jscomp$key$435282654$0$element.done; $jscomp$key$435282654$0$element = $jscomp$iter$33.next()) {
|
|
15777
|
+
var element = $jscomp$key$435282654$0$element.value;
|
|
15779
15778
|
element = element.toUpperCase();
|
|
15780
15779
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
15781
15780
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -15793,8 +15792,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15793
15792
|
throw Error("Element: " + element + " is not a custom element");
|
|
15794
15793
|
}
|
|
15795
15794
|
if (allowedAttributes) {
|
|
15796
|
-
for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$
|
|
15797
|
-
elementPolicy.set($jscomp$key$
|
|
15795
|
+
for (var elementPolicy = new Map(), $jscomp$iter$34 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$435282654$1$attribute = $jscomp$iter$34.next(); !$jscomp$key$435282654$1$attribute.done; $jscomp$key$435282654$1$attribute = $jscomp$iter$34.next()) {
|
|
15796
|
+
elementPolicy.set($jscomp$key$435282654$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
15798
15797
|
}
|
|
15799
15798
|
allowedElementPolicies.set(element, elementPolicy);
|
|
15800
15799
|
} else {
|
|
@@ -15804,15 +15803,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15804
15803
|
return this;
|
|
15805
15804
|
};
|
|
15806
15805
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
15807
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$
|
|
15808
|
-
var attribute = $jscomp$key$
|
|
15806
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(attributeSet), $jscomp$key$435282654$2$attribute = $jscomp$iter$35.next(); !$jscomp$key$435282654$2$attribute.done; $jscomp$key$435282654$2$attribute = $jscomp$iter$35.next()) {
|
|
15807
|
+
var attribute = $jscomp$key$435282654$2$attribute.value;
|
|
15809
15808
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
15810
15809
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
15811
15810
|
}
|
|
15812
|
-
for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
15813
|
-
for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$
|
|
15811
|
+
for (var $jscomp$iter$37 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$435282654$4$ = $jscomp$iter$37.next(); !$jscomp$key$435282654$4$.done; $jscomp$key$435282654$4$ = $jscomp$iter$37.next()) {
|
|
15812
|
+
for (var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$435282654$4$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var35.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$435282654$3$ = $jscomp$iter$36.next(); !$jscomp$key$435282654$3$.done; $jscomp$key$435282654$3$ =
|
|
15814
15813
|
$jscomp$iter$36.next()) {
|
|
15815
|
-
var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$
|
|
15814
|
+
var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$435282654$3$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var37.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var37.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
15816
15815
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
15817
15816
|
}
|
|
15818
15817
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -15821,8 +15820,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
15821
15820
|
return this;
|
|
15822
15821
|
};
|
|
15823
15822
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
15824
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$
|
|
15825
|
-
var attribute = $jscomp$key$
|
|
15823
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$38 = $jscomp.makeIterator(attributes), $jscomp$key$435282654$5$attribute = $jscomp$iter$38.next(); !$jscomp$key$435282654$5$attribute.done; $jscomp$key$435282654$5$attribute = $jscomp$iter$38.next()) {
|
|
15824
|
+
var attribute = $jscomp$key$435282654$5$attribute.value;
|
|
15826
15825
|
if (0 !== attribute.indexOf("data-")) {
|
|
15827
15826
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
15828
15827
|
}
|
|
@@ -16073,12 +16072,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
16073
16072
|
}
|
|
16074
16073
|
try {
|
|
16075
16074
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
16076
|
-
} catch ($jscomp$unused$catch$
|
|
16075
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
16077
16076
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
16078
16077
|
}
|
|
16079
16078
|
try {
|
|
16080
16079
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
16081
|
-
} catch ($jscomp$unused$catch$
|
|
16080
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
16082
16081
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
16083
16082
|
}
|
|
16084
16083
|
return !1;
|
|
@@ -18963,7 +18962,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
18963
18962
|
ee.apiclient = {};
|
|
18964
18963
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18965
18964
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18966
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18965
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.405";
|
|
18967
18966
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18968
18967
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18969
18968
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19253,8 +19252,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19253
19252
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19254
19253
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19255
19254
|
method = method || "POST";
|
|
19256
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19257
|
-
"0.1.
|
|
19255
|
+
var headers = {"Content-Type":contentType}, version = "0.1.405";
|
|
19256
|
+
"0.1.405" === version && (version = "latest");
|
|
19258
19257
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19259
19258
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19260
19259
|
if (null != authToken) {
|