@google/earthengine 0.1.375 → 0.1.377
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 +8 -0
- package/.tmp/METADATA +5 -5
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +58 -70
- package/build/ee_api_js.js +18 -17
- package/build/ee_api_js_debug.js +38 -50
- package/build/ee_api_js_npm.js +58 -70
- package/build/main.js +58 -70
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/data.js +18 -11
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;
|
|
@@ -2975,9 +2977,10 @@ goog.flags = {};
|
|
|
2975
2977
|
var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1, goog.FLAGS_STAGING_DEFAULT);
|
|
2976
2978
|
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);
|
|
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
|
-
goog.flags.CLIENT_ONLY_WIZ_ATTRIBUTE_SANITIZATION = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ?
|
|
2979
|
-
module$contents$goog$flags_STAGING);
|
|
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);
|
|
2980
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);
|
|
2981
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);
|
|
2982
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);
|
|
2983
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);
|
|
@@ -6063,7 +6066,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6063
6066
|
};
|
|
6064
6067
|
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;
|
|
6065
6068
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6066
|
-
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$
|
|
6069
|
+
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$m1892927425$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m1892927425$0 = {mapMetadata:$jscomp$loop$m1892927425$0.mapMetadata},
|
|
6067
6070
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6068
6071
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6069
6072
|
if (null != value) {
|
|
@@ -6076,11 +6079,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6076
6079
|
} else if (objects.hasOwnProperty(key)) {
|
|
6077
6080
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6078
6081
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6079
|
-
$jscomp$loop$
|
|
6082
|
+
$jscomp$loop$m1892927425$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m1892927425$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m1892927425$0) {
|
|
6080
6083
|
return function(v) {
|
|
6081
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6084
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m1892927425$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6082
6085
|
};
|
|
6083
|
-
}($jscomp$loop$
|
|
6086
|
+
}($jscomp$loop$m1892927425$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m1892927425$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6084
6087
|
} else if (Array.isArray(value)) {
|
|
6085
6088
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6086
6089
|
continue;
|
|
@@ -6126,39 +6129,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6126
6129
|
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))) {
|
|
6127
6130
|
return !1;
|
|
6128
6131
|
}
|
|
6129
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6132
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m1892927425$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m1892927425$1 = {value2$jscomp$7:$jscomp$loop$m1892927425$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m1892927425$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6130
6133
|
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);
|
|
6131
6134
|
if (has1 !== has2) {
|
|
6132
6135
|
return !1;
|
|
6133
6136
|
}
|
|
6134
6137
|
if (has1) {
|
|
6135
6138
|
var value1 = serializable1.Serializable$get(key);
|
|
6136
|
-
$jscomp$loop$
|
|
6139
|
+
$jscomp$loop$m1892927425$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6137
6140
|
if (arrays1.hasOwnProperty(key)) {
|
|
6138
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6141
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !0, !0)) {
|
|
6139
6142
|
return !1;
|
|
6140
6143
|
}
|
|
6141
6144
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6142
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6145
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !1, !0)) {
|
|
6143
6146
|
return !1;
|
|
6144
6147
|
}
|
|
6145
6148
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6146
|
-
if ($jscomp$loop$
|
|
6147
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6149
|
+
if ($jscomp$loop$m1892927425$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6150
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m1892927425$1) {
|
|
6148
6151
|
return function(v1, i) {
|
|
6149
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6152
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m1892927425$1.value2$jscomp$7[i], $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2);
|
|
6150
6153
|
};
|
|
6151
|
-
}($jscomp$loop$
|
|
6154
|
+
}($jscomp$loop$m1892927425$1))) {
|
|
6152
6155
|
return !1;
|
|
6153
6156
|
}
|
|
6154
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6157
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, $jscomp$loop$m1892927425$1.mapMetadata$jscomp$2)) {
|
|
6155
6158
|
return !1;
|
|
6156
6159
|
}
|
|
6157
6160
|
} else if (Array.isArray(value1)) {
|
|
6158
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6161
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !0, !1)) {
|
|
6159
6162
|
return !1;
|
|
6160
6163
|
}
|
|
6161
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6164
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m1892927425$1.value2$jscomp$7, !1, !1)) {
|
|
6162
6165
|
return !1;
|
|
6163
6166
|
}
|
|
6164
6167
|
}
|
|
@@ -7093,21 +7096,6 @@ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(se
|
|
|
7093
7096
|
var styleSheet = selector + "{" + module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
|
|
7094
7097
|
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
|
|
7095
7098
|
};
|
|
7096
|
-
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRuleLegacy = function(selector, style) {
|
|
7097
|
-
if ((0,goog.string.internal.contains)(selector, "<")) {
|
|
7098
|
-
throw Error("Selector does not allow '<', got: " + selector);
|
|
7099
|
-
}
|
|
7100
|
-
var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
|
|
7101
|
-
if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
|
|
7102
|
-
throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
|
|
7103
|
-
}
|
|
7104
|
-
if (!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(selectorToCheck)) {
|
|
7105
|
-
throw Error("() and [] in selector must be balanced, got: " + selector);
|
|
7106
|
-
}
|
|
7107
|
-
style instanceof module$contents$goog$html$SafeStyle_SafeStyle || (style = module$contents$goog$html$SafeStyle_SafeStyle.create(style));
|
|
7108
|
-
var styleSheet = selector + "{" + module$contents$goog$html$SafeStyle_SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
|
|
7109
|
-
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
|
|
7110
|
-
};
|
|
7111
7099
|
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
|
|
7112
7100
|
for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
|
|
7113
7101
|
var ch = s[i];
|
|
@@ -13654,8 +13642,8 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
13654
13642
|
}, set:function(value) {
|
|
13655
13643
|
this.Serializable$set("start", value);
|
|
13656
13644
|
}}});
|
|
13657
|
-
var module$contents$eeapiclient$ee_api_client_PARAM_MAP_0 = {$Xgafv:"$.xgafv", access_token:"access_token", alt:"alt", assetId:"assetId",
|
|
13658
|
-
|
|
13645
|
+
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",
|
|
13646
|
+
workloadTag:"workloadTag"};
|
|
13659
13647
|
module$exports$eeapiclient$ee_api_client.IBillingAccountsSubscriptionsApiClient$XgafvEnum = function() {
|
|
13660
13648
|
};
|
|
13661
13649
|
module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
|
|
@@ -17407,7 +17395,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17407
17395
|
ee.apiclient = {};
|
|
17408
17396
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17409
17397
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17410
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17398
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.377";
|
|
17411
17399
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17412
17400
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17413
17401
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17698,8 +17686,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17698
17686
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17699
17687
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17700
17688
|
method = method || "POST";
|
|
17701
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17702
|
-
"0.1.
|
|
17689
|
+
var headers = {"Content-Type":contentType}, version = "0.1.377";
|
|
17690
|
+
"0.1.377" === version && (version = "latest");
|
|
17703
17691
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17704
17692
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17705
17693
|
if (null != authToken) {
|
|
@@ -24334,8 +24322,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24334
24322
|
throw Error(message);
|
|
24335
24323
|
}
|
|
24336
24324
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24337
|
-
var $jscomp$templatelit$
|
|
24338
|
-
["\\0"]), $jscomp$templatelit$
|
|
24325
|
+
var $jscomp$templatelit$m425881384$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$m425881384$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$m425881384$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$m425881384$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24326
|
+
["\\0"]), $jscomp$templatelit$m425881384$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$m425881384$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"};
|
|
24339
24327
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24340
24328
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24341
24329
|
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 ##############################");
|
|
@@ -24349,14 +24337,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24349
24337
|
return -1 === fn.toString().indexOf("`");
|
|
24350
24338
|
}
|
|
24351
24339
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24352
|
-
return tag($jscomp$templatelit$
|
|
24340
|
+
return tag($jscomp$templatelit$m425881384$0);
|
|
24353
24341
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24354
|
-
return tag($jscomp$templatelit$
|
|
24342
|
+
return tag($jscomp$templatelit$m425881384$1);
|
|
24355
24343
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24356
|
-
return tag($jscomp$templatelit$
|
|
24344
|
+
return tag($jscomp$templatelit$m425881384$2);
|
|
24357
24345
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24358
|
-
return tag($jscomp$templatelit$
|
|
24359
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24346
|
+
return tag($jscomp$templatelit$m425881384$3);
|
|
24347
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$m425881384$7);
|
|
24360
24348
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24361
24349
|
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)) ?
|
|
24362
24350
|
!0 : !1;
|
|
@@ -24379,7 +24367,7 @@ function module$contents$safevalues$builders$attribute_builders_safeAttrPrefix(t
|
|
|
24379
24367
|
}
|
|
24380
24368
|
;var module$contents$safevalues$internals$pure_module = module$contents$safevalues$internals$pure_module || {id:"third_party/javascript/safevalues/internals/pure.closure.js"};
|
|
24381
24369
|
function module$contents$safevalues$internals$pure_pure(valueOf) {
|
|
24382
|
-
return valueOf();
|
|
24370
|
+
return {valueOf:valueOf}.valueOf();
|
|
24383
24371
|
}
|
|
24384
24372
|
;var module$exports$goog$html$internals = {};
|
|
24385
24373
|
module$exports$goog$html$internals.createSafeHtml = module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse;
|
|
@@ -24819,7 +24807,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24819
24807
|
return !0;
|
|
24820
24808
|
}
|
|
24821
24809
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24822
|
-
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$
|
|
24810
|
+
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$tmpm1085474118$0 = void 0, value = null == ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
24823
24811
|
if (value && !expectedValues.has(value)) {
|
|
24824
24812
|
return !1;
|
|
24825
24813
|
}
|
|
@@ -25172,7 +25160,7 @@ function module$contents$safevalues$builders$url_builders_isSafeMimeType(mimeTyp
|
|
|
25172
25160
|
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]));
|
|
25173
25161
|
}
|
|
25174
25162
|
function module$contents$safevalues$builders$url_builders_isSafeImageMimeType(mimeType) {
|
|
25175
|
-
return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif)$/i.test(mimeType);
|
|
25163
|
+
return /^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(mimeType);
|
|
25176
25164
|
}
|
|
25177
25165
|
function module$contents$safevalues$builders$url_builders_isSafeVideoMimeType(mimeType) {
|
|
25178
25166
|
return /^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(mimeType);
|
|
@@ -25317,12 +25305,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25317
25305
|
}
|
|
25318
25306
|
try {
|
|
25319
25307
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25320
|
-
} catch ($jscomp$unused$catch$
|
|
25308
|
+
} catch ($jscomp$unused$catch$696273141$0) {
|
|
25321
25309
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25322
25310
|
}
|
|
25323
25311
|
try {
|
|
25324
25312
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25325
|
-
} catch ($jscomp$unused$catch$
|
|
25313
|
+
} catch ($jscomp$unused$catch$696273141$1) {
|
|
25326
25314
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25327
25315
|
}
|
|
25328
25316
|
return !1;
|