@google/earthengine 0.1.389 → 0.1.391
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 +164 -122
- package/build/ee_api_js.js +305 -302
- package/build/ee_api_js_debug.js +141 -100
- package/build/ee_api_js_npm.js +164 -122
- package/build/main.js +164 -122
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +26 -14
- package/src/data.js +253 -101
- package/src/eeapiclient/domain_object.ts +7 -7
- package/src/eeapiclient/multipart_request.ts +4 -1
- package/src/image.js +106 -59
- package/src/imagecollection.js +36 -15
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1200,7 +1200,7 @@ $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,
|
|
1203
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__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, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1};
|
|
1204
1204
|
/*
|
|
1205
1205
|
|
|
1206
1206
|
Copyright The Closure Library Authors.
|
|
@@ -2965,7 +2965,6 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles = !1;
|
|
|
2965
2965
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles = !1;
|
|
2966
2966
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable = !1;
|
|
2967
2967
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = !1;
|
|
2968
|
-
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disable_serializing_empty_repeated_and_map_fields__disable = !1;
|
|
2969
2968
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
2970
2969
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
2971
2970
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -2974,8 +2973,6 @@ goog.flags = {};
|
|
|
2974
2973
|
var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1, goog.FLAGS_STAGING_DEFAULT);
|
|
2975
2974
|
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);
|
|
2976
2975
|
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);
|
|
2977
|
-
goog.flags.JSPB_DISABLE_SERIALIZING_EMPTY_REPEATED_AND_MAP_FIELDS = 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__jspb_disable_serializing_empty_repeated_and_map_fields__disable : goog.readFlagInternalDoNotUseOrElse(572417392,
|
|
2978
|
-
!0);
|
|
2979
2976
|
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);
|
|
2980
2977
|
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);
|
|
2981
2978
|
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);
|
|
@@ -6057,9 +6054,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6057
6054
|
};
|
|
6058
6055
|
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;
|
|
6059
6056
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6060
|
-
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$
|
|
6061
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
6062
|
-
var key = $jscomp$key$
|
|
6057
|
+
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$m192531680$40$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$44 = {}; !$jscomp$key$m192531680$40$key.done; $jscomp$loop$m192531680$44 =
|
|
6058
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
6059
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
6063
6060
|
if (null != value) {
|
|
6064
6061
|
var copy = void 0;
|
|
6065
6062
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -6070,11 +6067,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6070
6067
|
} else if (objects.hasOwnProperty(key)) {
|
|
6071
6068
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6072
6069
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6073
|
-
$jscomp$loop$
|
|
6070
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
6074
6071
|
return function(v) {
|
|
6075
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6072
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6076
6073
|
};
|
|
6077
|
-
}($jscomp$loop$
|
|
6074
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6078
6075
|
} else if (Array.isArray(value)) {
|
|
6079
6076
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6080
6077
|
continue;
|
|
@@ -6089,8 +6086,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6089
6086
|
return target;
|
|
6090
6087
|
}
|
|
6091
6088
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
6092
|
-
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$
|
|
6093
|
-
var mapKey = $jscomp$key$
|
|
6089
|
+
for (var objMap = {}, $jscomp$iter$20 = $jscomp.makeIterator(Object.keys(value)), $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next(); !$jscomp$key$m192531680$41$mapKey.done; $jscomp$key$m192531680$41$mapKey = $jscomp$iter$20.next()) {
|
|
6090
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
6094
6091
|
null != mapValue && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
6095
6092
|
}
|
|
6096
6093
|
return objMap;
|
|
@@ -6120,39 +6117,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6120
6117
|
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))) {
|
|
6121
6118
|
return !1;
|
|
6122
6119
|
}
|
|
6123
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$
|
|
6124
|
-
var key = $jscomp$key$
|
|
6120
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$m192531680$42$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$45 = {}; !$jscomp$key$m192531680$42$key.done; $jscomp$loop$m192531680$45 = {value2$jscomp$7:void 0, mapMetadata$jscomp$2:void 0}, $jscomp$key$m192531680$42$key = $jscomp$iter$21.next()) {
|
|
6121
|
+
var key = $jscomp$key$m192531680$42$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6125
6122
|
if (has1 !== has2) {
|
|
6126
6123
|
return !1;
|
|
6127
6124
|
}
|
|
6128
6125
|
if (has1) {
|
|
6129
6126
|
var value1 = serializable1.Serializable$get(key);
|
|
6130
|
-
$jscomp$loop$
|
|
6127
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6131
6128
|
if (arrays1.hasOwnProperty(key)) {
|
|
6132
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6129
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
6133
6130
|
return !1;
|
|
6134
6131
|
}
|
|
6135
6132
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6136
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6133
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
6137
6134
|
return !1;
|
|
6138
6135
|
}
|
|
6139
6136
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6140
|
-
if ($jscomp$loop$
|
|
6141
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6137
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6138
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
6142
6139
|
return function(v1, i) {
|
|
6143
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6140
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
6144
6141
|
};
|
|
6145
|
-
}($jscomp$loop$
|
|
6142
|
+
}($jscomp$loop$m192531680$45))) {
|
|
6146
6143
|
return !1;
|
|
6147
6144
|
}
|
|
6148
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6145
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
6149
6146
|
return !1;
|
|
6150
6147
|
}
|
|
6151
6148
|
} else if (Array.isArray(value1)) {
|
|
6152
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6149
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
6153
6150
|
return !1;
|
|
6154
6151
|
}
|
|
6155
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6152
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
6156
6153
|
return !1;
|
|
6157
6154
|
}
|
|
6158
6155
|
}
|
|
@@ -6174,8 +6171,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
6174
6171
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
6175
6172
|
return !1;
|
|
6176
6173
|
}
|
|
6177
|
-
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$
|
|
6178
|
-
var mapKey = $jscomp$key$
|
|
6174
|
+
for (var $jscomp$iter$22 = $jscomp.makeIterator(Object.keys(value1)), $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next(); !$jscomp$key$m192531680$43$mapKey.done; $jscomp$key$m192531680$43$mapKey = $jscomp$iter$22.next()) {
|
|
6175
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
6179
6176
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
6180
6177
|
return !1;
|
|
6181
6178
|
}
|
|
@@ -8662,8 +8659,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
8662
8659
|
}
|
|
8663
8660
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
8664
8661
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
8665
|
-
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$
|
|
8666
|
-
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$
|
|
8662
|
+
for (var urlQueryParams = passthroughParams = void 0 === passthroughParams ? {} : passthroughParams, $jscomp$iter$28 = $jscomp.makeIterator(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$28.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$28.next()) {
|
|
8663
|
+
var $jscomp$destructuring$var27 = $jscomp.makeIterator($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var27.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var27.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
8667
8664
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
8668
8665
|
}
|
|
8669
8666
|
return urlQueryParams;
|
|
@@ -8674,8 +8671,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
8674
8671
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
8675
8672
|
if (params.headers) {
|
|
8676
8673
|
hasContentType = null != params.headers["Content-Type"];
|
|
8677
|
-
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$
|
|
8678
|
-
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$
|
|
8674
|
+
for (var $jscomp$iter$29 = $jscomp.makeIterator(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$29.next()) {
|
|
8675
|
+
var $jscomp$destructuring$var29 = $jscomp.makeIterator($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var29.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var29.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
8679
8676
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
8680
8677
|
}
|
|
8681
8678
|
}
|
|
@@ -8720,15 +8717,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
8720
8717
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
8721
8718
|
};
|
|
8722
8719
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
8723
|
-
var $jscomp$this$
|
|
8720
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
8724
8721
|
payload += this._metadataPayload;
|
|
8725
8722
|
return Promise.all(this.files.map(function(f) {
|
|
8726
|
-
return $jscomp$this$
|
|
8723
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
8727
8724
|
})).then(function(filePayloads) {
|
|
8728
|
-
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$
|
|
8729
|
-
payload += $jscomp$key$
|
|
8725
|
+
for (var $jscomp$iter$30 = $jscomp.makeIterator(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$30.next()) {
|
|
8726
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
8730
8727
|
}
|
|
8731
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
8728
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
8732
8729
|
});
|
|
8733
8730
|
};
|
|
8734
8731
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -8816,9 +8813,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
8816
8813
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
8817
8814
|
};
|
|
8818
8815
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
8819
|
-
var $jscomp$this$
|
|
8816
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
8820
8817
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
8821
|
-
return $jscomp$this$
|
|
8818
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
8822
8819
|
}));
|
|
8823
8820
|
};
|
|
8824
8821
|
var module$exports$eeapiclient$ee_api_client = {}, module$contents$eeapiclient$ee_api_client_module = module$contents$eeapiclient$ee_api_client_module || {id:"geo/gestalt/client/javascript/v1/ee_api_client.closure.js"};
|
|
@@ -15601,16 +15598,27 @@ module$contents$goog$async$WorkQueue_WorkItem.prototype.reset = function() {
|
|
|
15601
15598
|
};
|
|
15602
15599
|
goog.async.WorkQueue = module$contents$goog$async$WorkQueue_WorkQueue;
|
|
15603
15600
|
goog.debug.asyncStackTag = {};
|
|
15604
|
-
var module$contents$goog$debug$asyncStackTag_createTask = goog.DEBUG && goog.global.console && goog.global.console.createTask ? goog.global.console.createTask.bind(goog.global.console) : void 0, module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL = module$contents$goog$debug$asyncStackTag_createTask ? Symbol("consoleTask") : void 0;
|
|
15601
|
+
var module$contents$goog$debug$asyncStackTag_DEBUG = goog.DEBUG, module$contents$goog$debug$asyncStackTag_createTask = goog.DEBUG && goog.global.console && goog.global.console.createTask ? goog.global.console.createTask.bind(goog.global.console) : void 0, module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL = module$contents$goog$debug$asyncStackTag_createTask ? Symbol("consoleTask") : void 0;
|
|
15605
15602
|
function module$contents$goog$debug$asyncStackTag_wrap(fn, name) {
|
|
15606
15603
|
function wrappedFn() {
|
|
15607
|
-
var args = $jscomp.getRestArguments.apply(0, arguments), $jscomp$this$1621498202$
|
|
15604
|
+
var args = $jscomp.getRestArguments.apply(0, arguments), $jscomp$this$1621498202$5 = this;
|
|
15608
15605
|
return consoleTask.run(function() {
|
|
15609
|
-
return fn.call.apply(fn, [$jscomp$this$1621498202$
|
|
15606
|
+
return fn.call.apply(fn, [$jscomp$this$1621498202$5].concat($jscomp.arrayFromIterable(args)));
|
|
15610
15607
|
});
|
|
15611
15608
|
}
|
|
15612
15609
|
name = void 0 === name ? "anonymous" : name;
|
|
15613
|
-
if (!goog.DEBUG ||
|
|
15610
|
+
if (!goog.DEBUG || module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL && fn[module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL]) {
|
|
15611
|
+
return fn;
|
|
15612
|
+
}
|
|
15613
|
+
var originalFn = fn, $jscomp$optchain$tmp1621498202$0, originalTest = null == ($jscomp$optchain$tmp1621498202$0 = module$contents$goog$debug$asyncStackTag_testNameProvider) ? void 0 : $jscomp$optchain$tmp1621498202$0();
|
|
15614
|
+
fn = function() {
|
|
15615
|
+
var args = $jscomp.getRestArguments.apply(0, arguments), $jscomp$optchain$tmp1621498202$1, currentTest = null == ($jscomp$optchain$tmp1621498202$1 = module$contents$goog$debug$asyncStackTag_testNameProvider) ? void 0 : $jscomp$optchain$tmp1621498202$1();
|
|
15616
|
+
if (originalTest !== currentTest) {
|
|
15617
|
+
throw Error(name + " was scheduled in '" + originalTest + "' but called in '" + currentTest + "'.\nMake sure your test awaits all async calls.\n\nTIP: To help investigate, debug the test in Chrome and look at the async portion\nof the call stack to see what originally scheduled the callback. Then, make the\ntest wait for the relevant asynchronous work to finish.");
|
|
15618
|
+
}
|
|
15619
|
+
return originalFn.call.apply(originalFn, [this].concat($jscomp.arrayFromIterable(args)));
|
|
15620
|
+
};
|
|
15621
|
+
if (!module$contents$goog$debug$asyncStackTag_createTask) {
|
|
15614
15622
|
return fn;
|
|
15615
15623
|
}
|
|
15616
15624
|
var consoleTask = module$contents$goog$debug$asyncStackTag_createTask(fn.name || name);
|
|
@@ -15618,6 +15626,19 @@ function module$contents$goog$debug$asyncStackTag_wrap(fn, name) {
|
|
|
15618
15626
|
return wrappedFn;
|
|
15619
15627
|
}
|
|
15620
15628
|
goog.debug.asyncStackTag.wrap = module$contents$goog$debug$asyncStackTag_wrap;
|
|
15629
|
+
var module$contents$goog$debug$asyncStackTag_testNameProvider;
|
|
15630
|
+
goog.debug.asyncStackTag.setTestNameProvider = function(provider) {
|
|
15631
|
+
if (!goog.DEBUG) {
|
|
15632
|
+
throw Error("This feature is debug-only");
|
|
15633
|
+
}
|
|
15634
|
+
module$contents$goog$debug$asyncStackTag_testNameProvider = provider;
|
|
15635
|
+
};
|
|
15636
|
+
goog.debug.asyncStackTag.getTestNameProvider = function() {
|
|
15637
|
+
if (!goog.DEBUG) {
|
|
15638
|
+
throw Error("This feature is debug-only");
|
|
15639
|
+
}
|
|
15640
|
+
return module$contents$goog$debug$asyncStackTag_testNameProvider;
|
|
15641
|
+
};
|
|
15621
15642
|
goog.ASSUME_NATIVE_PROMISE = !1;
|
|
15622
15643
|
var module$contents$goog$async$run_schedule, module$contents$goog$async$run_workQueueScheduled = !1, module$contents$goog$async$run_workQueue = new module$contents$goog$async$WorkQueue_WorkQueue(), module$contents$goog$async$run_run = function(callback, context) {
|
|
15623
15644
|
module$contents$goog$async$run_schedule || module$contents$goog$async$run_initializeRunner();
|
|
@@ -17405,8 +17426,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
17405
17426
|
throw Error(message);
|
|
17406
17427
|
}
|
|
17407
17428
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
17408
|
-
var $jscomp$templatelit$
|
|
17409
|
-
["\\0"]), $jscomp$templatelit$
|
|
17429
|
+
var $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$8 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$9 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$10 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
17430
|
+
["\\0"]), $jscomp$templatelit$1274514361$11 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$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"};
|
|
17410
17431
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
17411
17432
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
17412
17433
|
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 ##############################");
|
|
@@ -17420,14 +17441,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
17420
17441
|
return -1 === fn.toString().indexOf("`");
|
|
17421
17442
|
}
|
|
17422
17443
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17423
|
-
return tag($jscomp$templatelit$
|
|
17444
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
17424
17445
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17425
|
-
return tag($jscomp$templatelit$
|
|
17446
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
17426
17447
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17427
|
-
return tag($jscomp$templatelit$
|
|
17448
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
17428
17449
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
17429
|
-
return tag($jscomp$templatelit$
|
|
17430
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
17450
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
17451
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$9) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$10) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$11) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$12);
|
|
17431
17452
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
17432
17453
|
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)) ?
|
|
17433
17454
|
!0 : !1;
|
|
@@ -17461,6 +17482,11 @@ function module$contents$safevalues$builders$document_fragment_builders_svgFragm
|
|
|
17461
17482
|
return range.createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(module$contents$safevalues$internals$html_impl_createHtmlInternal(templateObj[0])));
|
|
17462
17483
|
}
|
|
17463
17484
|
module$exports$safevalues$builders$document_fragment_builders.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
17485
|
+
function module$contents$safevalues$builders$document_fragment_builders_htmlToNode(html) {
|
|
17486
|
+
var fragment = document.createRange().createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(html));
|
|
17487
|
+
return 1 === fragment.childNodes.length ? fragment.childNodes[0] : fragment;
|
|
17488
|
+
}
|
|
17489
|
+
module$exports$safevalues$builders$document_fragment_builders.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
17464
17490
|
var module$exports$safevalues$builders$style_sheet_builders = {}, module$contents$safevalues$builders$style_sheet_builders_module = module$contents$safevalues$builders$style_sheet_builders_module || {id:"third_party/javascript/safevalues/builders/style_sheet_builders.closure.js"}, module$contents$safevalues$builders$style_sheet_builders_Primitive;
|
|
17465
17491
|
module$exports$safevalues$builders$style_sheet_builders.safeStyleRule = function(templateObj) {
|
|
17466
17492
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
@@ -17637,8 +17663,12 @@ function module$contents$safevalues$builders$url_builders_extractScheme(url) {
|
|
|
17637
17663
|
}
|
|
17638
17664
|
module$exports$safevalues$builders$url_builders.extractScheme = module$contents$safevalues$builders$url_builders_extractScheme;
|
|
17639
17665
|
var module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES = ["data:", "http:", "https:", "mailto:", "ftp:"];
|
|
17666
|
+
module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN = /^\s*(?!javascript:)(?:[a-z0-9+.-]+:|[^:\/?#]*(?:[\/?#]|$))/i;
|
|
17667
|
+
function module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url) {
|
|
17668
|
+
return !module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN.test(url);
|
|
17669
|
+
}
|
|
17640
17670
|
function module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(url) {
|
|
17641
|
-
if (
|
|
17671
|
+
if (module$contents$safevalues$builders$url_builders_hasJavascriptUrlScheme(url)) {
|
|
17642
17672
|
module$contents$safevalues$builders$url_builders_triggerCallbacks(url);
|
|
17643
17673
|
} else {
|
|
17644
17674
|
return url;
|
|
@@ -17653,11 +17683,10 @@ function module$contents$safevalues$builders$url_builders_restrictivelySanitizeU
|
|
|
17653
17683
|
return void 0 !== parsedScheme && -1 !== module$contents$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf(parsedScheme.toLowerCase()) ? url : "about:invalid#zClosurez";
|
|
17654
17684
|
}
|
|
17655
17685
|
module$exports$safevalues$builders$url_builders.restrictivelySanitizeUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl;
|
|
17656
|
-
module$exports$safevalues$builders$url_builders.JAVASCRIPT_URL_SCHEME_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;
|
|
17657
17686
|
var module$contents$safevalues$builders$url_builders_sanitizationCallbacks = [], module$contents$safevalues$builders$url_builders_triggerCallbacks = function(url) {
|
|
17658
17687
|
};
|
|
17659
17688
|
goog.DEBUG && module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(function(url) {
|
|
17660
|
-
|
|
17689
|
+
console.warn("A URL with content '" + url + "' was sanitized away.");
|
|
17661
17690
|
});
|
|
17662
17691
|
function module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(callback) {
|
|
17663
17692
|
-1 === module$contents$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(callback) && module$contents$safevalues$builders$url_builders_sanitizationCallbacks.push(callback);
|
|
@@ -17723,6 +17752,16 @@ module$exports$safevalues$builders$html_builders.joinHtmls = module$contents$saf
|
|
|
17723
17752
|
module$exports$safevalues$builders$html_builders.doctypeHtml = function() {
|
|
17724
17753
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal("<!DOCTYPE html>");
|
|
17725
17754
|
};
|
|
17755
|
+
function module$contents$safevalues$builders$html_builders_nodeToHtmlInternal(node, temporaryRoot) {
|
|
17756
|
+
temporaryRoot.appendChild(node);
|
|
17757
|
+
var serializedNewTree = (new XMLSerializer()).serializeToString(temporaryRoot);
|
|
17758
|
+
serializedNewTree = serializedNewTree.slice(serializedNewTree.indexOf(">") + 1, serializedNewTree.lastIndexOf("</"));
|
|
17759
|
+
return module$contents$safevalues$internals$html_impl_createHtmlInternal(serializedNewTree);
|
|
17760
|
+
}
|
|
17761
|
+
module$exports$safevalues$builders$html_builders.nodeToHtmlInternal = module$contents$safevalues$builders$html_builders_nodeToHtmlInternal;
|
|
17762
|
+
module$exports$safevalues$builders$html_builders.nodeToHtml = function(node) {
|
|
17763
|
+
return module$contents$safevalues$builders$html_builders_nodeToHtmlInternal(node, document.createElement("span"));
|
|
17764
|
+
};
|
|
17726
17765
|
var module$contents$safevalues$builders$html_builders_TextOrHtml, module$contents$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES = /^[a-z][a-z\d-]*$/i, module$contents$safevalues$builders$html_builders_DISALLOWED_TAG_NAMES = "APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" ");
|
|
17727
17766
|
module$exports$safevalues$builders$html_builders.VOID_TAG_NAMES = "AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" ");
|
|
17728
17767
|
var module$contents$safevalues$builders$html_builders_URL_ATTRIBUTES = ["action", "formaction", "href"];
|
|
@@ -17807,8 +17846,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
17807
17846
|
this.replacements = new Map();
|
|
17808
17847
|
};
|
|
17809
17848
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
17810
|
-
var $jscomp$this$
|
|
17811
|
-
return $jscomp$this$
|
|
17849
|
+
var $jscomp$this$380122516$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) {
|
|
17850
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
17812
17851
|
});
|
|
17813
17852
|
if (0 !== openedTags.length) {
|
|
17814
17853
|
if (goog.DEBUG) {
|
|
@@ -17986,19 +18025,16 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
17986
18025
|
return sanitizedHtml;
|
|
17987
18026
|
};
|
|
17988
18027
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize = function(html) {
|
|
17989
|
-
var inertDocument = document.implementation.createHTMLDocument("")
|
|
17990
|
-
|
|
17991
|
-
var serializedNewTree = (new XMLSerializer()).serializeToString(fakeRoot);
|
|
17992
|
-
serializedNewTree = serializedNewTree.slice(serializedNewTree.indexOf(">") + 1, serializedNewTree.lastIndexOf("</"));
|
|
17993
|
-
return module$contents$safevalues$internals$html_impl_createHtmlInternal(serializedNewTree);
|
|
18028
|
+
var inertDocument = document.implementation.createHTMLDocument("");
|
|
18029
|
+
return (0,module$exports$safevalues$builders$html_builders.nodeToHtmlInternal)(this.sanitizeToFragmentInternal(html, inertDocument), inertDocument.body);
|
|
17994
18030
|
};
|
|
17995
18031
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
17996
18032
|
var inertDocument = document.implementation.createHTMLDocument("");
|
|
17997
18033
|
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
17998
18034
|
};
|
|
17999
18035
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
18000
|
-
for (var $jscomp$this$
|
|
18001
|
-
return $jscomp$this$
|
|
18036
|
+
for (var $jscomp$this$m1803429925$10 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
18037
|
+
return $jscomp$this$m1803429925$10.nodeFilter(n);
|
|
18002
18038
|
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
18003
18039
|
var sanitizedNode = void 0;
|
|
18004
18040
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -18025,8 +18061,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
18025
18061
|
return document.createTextNode(textNode.data);
|
|
18026
18062
|
};
|
|
18027
18063
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
18028
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$33 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$
|
|
18029
|
-
var $jscomp$destructuring$var33 = $jscomp$key$
|
|
18064
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$33 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$m1803429925$25$ = $jscomp$iter$33.next(); !$jscomp$key$m1803429925$25$.done; $jscomp$key$m1803429925$25$ = $jscomp$iter$33.next()) {
|
|
18065
|
+
var $jscomp$destructuring$var33 = $jscomp$key$m1803429925$25$.value, name = $jscomp$destructuring$var33.name, value = $jscomp$destructuring$var33.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
18030
18066
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
18031
18067
|
switch(policy.policyAction) {
|
|
18032
18068
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -18079,8 +18115,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
18079
18115
|
if (!conditions) {
|
|
18080
18116
|
return !0;
|
|
18081
18117
|
}
|
|
18082
|
-
for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$
|
|
18083
|
-
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$
|
|
18118
|
+
for (var $jscomp$iter$34 = $jscomp.makeIterator(conditions), $jscomp$key$m1803429925$26$ = $jscomp$iter$34.next(); !$jscomp$key$m1803429925$26$.done; $jscomp$key$m1803429925$26$ = $jscomp$iter$34.next()) {
|
|
18119
|
+
var $jscomp$destructuring$var35 = $jscomp.makeIterator($jscomp$key$m1803429925$26$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var35.next().value, expectedValues = $jscomp$destructuring$var35.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;
|
|
18084
18120
|
if (value && !expectedValues.has(value)) {
|
|
18085
18121
|
return !1;
|
|
18086
18122
|
}
|
|
@@ -18134,8 +18170,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18134
18170
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.defaultSanitizerTable;
|
|
18135
18171
|
};
|
|
18136
18172
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
18137
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(elementSet), $jscomp$key$
|
|
18138
|
-
var element = $jscomp$key$
|
|
18173
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$35 = $jscomp.makeIterator(elementSet), $jscomp$key$m1412690177$0$element = $jscomp$iter$35.next(); !$jscomp$key$m1412690177$0$element.done; $jscomp$key$m1412690177$0$element = $jscomp$iter$35.next()) {
|
|
18174
|
+
var element = $jscomp$key$m1412690177$0$element.value;
|
|
18139
18175
|
element = element.toUpperCase();
|
|
18140
18176
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
18141
18177
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -18153,8 +18189,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18153
18189
|
throw Error("Element: " + element + " is not a custom element");
|
|
18154
18190
|
}
|
|
18155
18191
|
if (allowedAttributes) {
|
|
18156
|
-
for (var elementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$
|
|
18157
|
-
elementPolicy.set($jscomp$key$
|
|
18192
|
+
for (var elementPolicy = new Map(), $jscomp$iter$36 = $jscomp.makeIterator(allowedAttributes), $jscomp$key$m1412690177$1$attribute = $jscomp$iter$36.next(); !$jscomp$key$m1412690177$1$attribute.done; $jscomp$key$m1412690177$1$attribute = $jscomp$iter$36.next()) {
|
|
18193
|
+
elementPolicy.set($jscomp$key$m1412690177$1$attribute.value, {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
18158
18194
|
}
|
|
18159
18195
|
allowedElementPolicies.set(element, elementPolicy);
|
|
18160
18196
|
} else {
|
|
@@ -18164,15 +18200,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18164
18200
|
return this;
|
|
18165
18201
|
};
|
|
18166
18202
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
18167
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$37 = $jscomp.makeIterator(attributeSet), $jscomp$key$
|
|
18168
|
-
var attribute = $jscomp$key$
|
|
18203
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$37 = $jscomp.makeIterator(attributeSet), $jscomp$key$m1412690177$2$attribute = $jscomp$iter$37.next(); !$jscomp$key$m1412690177$2$attribute.done; $jscomp$key$m1412690177$2$attribute = $jscomp$iter$37.next()) {
|
|
18204
|
+
var attribute = $jscomp$key$m1412690177$2$attribute.value;
|
|
18169
18205
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
18170
18206
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
18171
18207
|
}
|
|
18172
|
-
for (var $jscomp$iter$39 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
18173
|
-
for (var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$
|
|
18208
|
+
for (var $jscomp$iter$39 = $jscomp.makeIterator(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$4$ = $jscomp$iter$39.next(); !$jscomp$key$m1412690177$4$.done; $jscomp$key$m1412690177$4$ = $jscomp$iter$39.next()) {
|
|
18209
|
+
for (var $jscomp$destructuring$var37 = $jscomp.makeIterator($jscomp$key$m1412690177$4$.value), elementName__tsickle_destructured_1 = $jscomp$destructuring$var37.next().value, originalElementPolicy__tsickle_destructured_2 = $jscomp$destructuring$var37.next().value, elementName = elementName__tsickle_destructured_1, newElementPolicy = new Map(), $jscomp$iter$38 = $jscomp.makeIterator(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$3$ = $jscomp$iter$38.next(); !$jscomp$key$m1412690177$3$.done; $jscomp$key$m1412690177$3$ =
|
|
18174
18210
|
$jscomp$iter$38.next()) {
|
|
18175
|
-
var $jscomp$destructuring$var39 = $jscomp.makeIterator($jscomp$key$
|
|
18211
|
+
var $jscomp$destructuring$var39 = $jscomp.makeIterator($jscomp$key$m1412690177$3$.value), attribute__tsickle_destructured_3 = $jscomp$destructuring$var39.next().value, attributePolicy__tsickle_destructured_4 = $jscomp$destructuring$var39.next().value, attribute$jscomp$0 = attribute__tsickle_destructured_3, attributePolicy = attributePolicy__tsickle_destructured_4;
|
|
18176
18212
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
18177
18213
|
}
|
|
18178
18214
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -18181,8 +18217,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSan
|
|
|
18181
18217
|
return this;
|
|
18182
18218
|
};
|
|
18183
18219
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
18184
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$40 = $jscomp.makeIterator(attributes), $jscomp$key$
|
|
18185
|
-
var attribute = $jscomp$key$
|
|
18220
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$40 = $jscomp.makeIterator(attributes), $jscomp$key$m1412690177$5$attribute = $jscomp$iter$40.next(); !$jscomp$key$m1412690177$5$attribute.done; $jscomp$key$m1412690177$5$attribute = $jscomp$iter$40.next()) {
|
|
18221
|
+
var attribute = $jscomp$key$m1412690177$5$attribute.value;
|
|
18186
18222
|
if (0 !== attribute.indexOf("data-")) {
|
|
18187
18223
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
18188
18224
|
}
|
|
@@ -18429,12 +18465,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
18429
18465
|
}
|
|
18430
18466
|
try {
|
|
18431
18467
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
18432
|
-
} catch ($jscomp$unused$catch$
|
|
18468
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
18433
18469
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
18434
18470
|
}
|
|
18435
18471
|
try {
|
|
18436
18472
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
18437
|
-
} catch ($jscomp$unused$catch$
|
|
18473
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
18438
18474
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
18439
18475
|
}
|
|
18440
18476
|
return !1;
|
|
@@ -18459,11 +18495,13 @@ module$exports$safevalues$reporting$reporting.TEST_ONLY = {reset:function() {
|
|
|
18459
18495
|
var module$exports$safevalues$index = {}, module$contents$safevalues$index_module = module$contents$safevalues$index_module || {id:"third_party/javascript/safevalues/index.closure.js"};
|
|
18460
18496
|
module$exports$safevalues$index.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18461
18497
|
module$exports$safevalues$index.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
18498
|
+
module$exports$safevalues$index.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
18462
18499
|
module$exports$safevalues$index.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
18463
18500
|
module$exports$safevalues$index.concatHtmls = module$exports$safevalues$builders$html_builders.concatHtmls;
|
|
18464
18501
|
module$exports$safevalues$index.doctypeHtml = module$exports$safevalues$builders$html_builders.doctypeHtml;
|
|
18465
18502
|
module$exports$safevalues$index.htmlEscape = module$exports$safevalues$builders$html_builders.htmlEscape;
|
|
18466
18503
|
module$exports$safevalues$index.joinHtmls = module$exports$safevalues$builders$html_builders.joinHtmls;
|
|
18504
|
+
module$exports$safevalues$index.nodeToHtml = module$exports$safevalues$builders$html_builders.nodeToHtml;
|
|
18467
18505
|
module$exports$safevalues$index.scriptToHtml = module$exports$safevalues$builders$html_builders.scriptToHtml;
|
|
18468
18506
|
module$exports$safevalues$index.scriptUrlToHtml = module$exports$safevalues$builders$html_builders.scriptUrlToHtml;
|
|
18469
18507
|
module$exports$safevalues$index.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
@@ -18524,11 +18562,13 @@ module$exports$safevalues$index.styleSheetToHtml = module$exports$safevalues$bui
|
|
|
18524
18562
|
module$exports$safevalues$index.safeStyleRule = module$exports$safevalues$builders$style_sheet_builders.safeStyleRule;
|
|
18525
18563
|
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18526
18564
|
safevalues.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
18565
|
+
safevalues.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
18527
18566
|
safevalues.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
18528
18567
|
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
18529
18568
|
safevalues.doctypeHtml = module$exports$safevalues$index.doctypeHtml;
|
|
18530
18569
|
safevalues.htmlEscape = module$exports$safevalues$index.htmlEscape;
|
|
18531
18570
|
safevalues.joinHtmls = module$exports$safevalues$index.joinHtmls;
|
|
18571
|
+
safevalues.nodeToHtml = module$exports$safevalues$index.nodeToHtml;
|
|
18532
18572
|
safevalues.scriptToHtml = module$exports$safevalues$index.scriptToHtml;
|
|
18533
18573
|
safevalues.scriptUrlToHtml = module$exports$safevalues$index.scriptUrlToHtml;
|
|
18534
18574
|
safevalues.HtmlSanitizer = module$exports$safevalues$index.HtmlSanitizer;
|
|
@@ -18593,7 +18633,7 @@ var $jscomp$templatelit$294235699$96 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
18593
18633
|
ee.apiclient = {};
|
|
18594
18634
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18595
18635
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18596
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18636
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.391";
|
|
18597
18637
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18598
18638
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18599
18639
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -18883,8 +18923,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
18883
18923
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
18884
18924
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
18885
18925
|
method = method || "POST";
|
|
18886
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
18887
|
-
"0.1.
|
|
18926
|
+
var headers = {"Content-Type":contentType}, version = "0.1.391";
|
|
18927
|
+
"0.1.391" === version && (version = "latest");
|
|
18888
18928
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
18889
18929
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
18890
18930
|
if (null != authToken) {
|
|
@@ -20259,7 +20299,7 @@ ee.rpc_convert_batch.taskToExportImageRequest = function(params) {
|
|
|
20259
20299
|
if (null == params.element) {
|
|
20260
20300
|
throw Error('"element" not found in params ' + params);
|
|
20261
20301
|
}
|
|
20262
|
-
var result = new module$exports$eeapiclient$ee_api_client.ExportImageRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), fileExportOptions:null, assetExportOptions:null, grid:null, maxPixels:stringOrNull_(params.maxPixels), requestId:stringOrNull_(params.id), maxWorkers:numberOrNull_(params.maxWorkers)}), destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
20302
|
+
var result = new module$exports$eeapiclient$ee_api_client.ExportImageRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), fileExportOptions:null, assetExportOptions:null, grid:null, maxPixels:stringOrNull_(params.maxPixels), requestId:stringOrNull_(params.id), maxWorkers:numberOrNull_(params.maxWorkers), priority:numberOrNull_(params.priority)}), destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
20263
20303
|
switch(destination) {
|
|
20264
20304
|
case ee.rpc_convert_batch.ExportDestination.GCS:
|
|
20265
20305
|
case ee.rpc_convert_batch.ExportDestination.DRIVE:
|
|
@@ -20279,8 +20319,8 @@ ee.rpc_convert_batch.taskToExportTableRequest = function(params) {
|
|
|
20279
20319
|
}
|
|
20280
20320
|
var selectors = params.selectors || null;
|
|
20281
20321
|
null != selectors && "string" === typeof selectors && (selectors = selectors.split(","));
|
|
20282
|
-
var result = new module$exports$eeapiclient$ee_api_client.ExportTableRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), fileExportOptions:null, assetExportOptions:null, featureViewExportOptions:null, bigqueryExportOptions:null, selectors:selectors, maxErrorMeters:numberOrNull_(params.maxErrorMeters), requestId:stringOrNull_(params.id), maxVertices:numberOrNull_(params.maxVertices), maxWorkers:numberOrNull_(params.maxWorkers)
|
|
20283
|
-
destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
20322
|
+
var result = new module$exports$eeapiclient$ee_api_client.ExportTableRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), fileExportOptions:null, assetExportOptions:null, featureViewExportOptions:null, bigqueryExportOptions:null, selectors:selectors, maxErrorMeters:numberOrNull_(params.maxErrorMeters), requestId:stringOrNull_(params.id), maxVertices:numberOrNull_(params.maxVertices), maxWorkers:numberOrNull_(params.maxWorkers),
|
|
20323
|
+
priority:numberOrNull_(params.priority)}), destination = ee.rpc_convert_batch.guessDestination_(params);
|
|
20284
20324
|
switch(destination) {
|
|
20285
20325
|
case ee.rpc_convert_batch.ExportDestination.GCS:
|
|
20286
20326
|
case ee.rpc_convert_batch.ExportDestination.DRIVE:
|
|
@@ -20305,7 +20345,7 @@ ee.rpc_convert_batch.taskToExportVideoRequest = function(params) {
|
|
|
20305
20345
|
if (null == params.element) {
|
|
20306
20346
|
throw Error('"element" not found in params ' + params);
|
|
20307
20347
|
}
|
|
20308
|
-
var result = new module$exports$eeapiclient$ee_api_client.ExportVideoRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), videoOptions:ee.rpc_convert_batch.buildVideoOptions_(params), fileExportOptions:null, requestId:stringOrNull_(params.id), maxWorkers:numberOrNull_(params.maxWorkers)});
|
|
20348
|
+
var result = new module$exports$eeapiclient$ee_api_client.ExportVideoRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), videoOptions:ee.rpc_convert_batch.buildVideoOptions_(params), fileExportOptions:null, requestId:stringOrNull_(params.id), maxWorkers:numberOrNull_(params.maxWorkers), priority:numberOrNull_(params.priority)});
|
|
20309
20349
|
result.fileExportOptions = ee.rpc_convert_batch.buildVideoFileExportOptions_(params, ee.rpc_convert_batch.guessDestination_(params));
|
|
20310
20350
|
return result;
|
|
20311
20351
|
};
|
|
@@ -20313,14 +20353,14 @@ ee.rpc_convert_batch.taskToExportMapRequest = function(params) {
|
|
|
20313
20353
|
if (null == params.element) {
|
|
20314
20354
|
throw Error('"element" not found in params ' + params);
|
|
20315
20355
|
}
|
|
20316
|
-
return new module$exports$eeapiclient$ee_api_client.ExportMapRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), tileOptions:ee.rpc_convert_batch.buildTileOptions_(params), tileExportOptions:ee.rpc_convert_batch.buildImageFileExportOptions_(params, ee.rpc_convert_batch.ExportDestination.GCS), requestId:stringOrNull_(params.id), maxWorkers:numberOrNull_(params.maxWorkers)});
|
|
20356
|
+
return new module$exports$eeapiclient$ee_api_client.ExportMapRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), tileOptions:ee.rpc_convert_batch.buildTileOptions_(params), tileExportOptions:ee.rpc_convert_batch.buildImageFileExportOptions_(params, ee.rpc_convert_batch.ExportDestination.GCS), requestId:stringOrNull_(params.id), maxWorkers:numberOrNull_(params.maxWorkers), priority:numberOrNull_(params.priority)});
|
|
20317
20357
|
};
|
|
20318
20358
|
ee.rpc_convert_batch.taskToExportVideoMapRequest = function(params) {
|
|
20319
20359
|
if (null == params.element) {
|
|
20320
20360
|
throw Error('"element" not found in params ' + params);
|
|
20321
20361
|
}
|
|
20322
20362
|
return new module$exports$eeapiclient$ee_api_client.ExportVideoMapRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), videoOptions:ee.rpc_convert_batch.buildVideoMapOptions_(params), tileOptions:ee.rpc_convert_batch.buildTileOptions_(params), tileExportOptions:ee.rpc_convert_batch.buildVideoFileExportOptions_(params, ee.rpc_convert_batch.ExportDestination.GCS), requestId:stringOrNull_(params.id),
|
|
20323
|
-
version:stringOrNull_(params.version), maxWorkers:numberOrNull_(params.maxWorkers)});
|
|
20363
|
+
version:stringOrNull_(params.version), maxWorkers:numberOrNull_(params.maxWorkers), priority:numberOrNull_(params.priority)});
|
|
20324
20364
|
};
|
|
20325
20365
|
ee.rpc_convert_batch.taskToExportClassifierRequest = function(params) {
|
|
20326
20366
|
if (null == params.element) {
|
|
@@ -20330,7 +20370,8 @@ ee.rpc_convert_batch.taskToExportClassifierRequest = function(params) {
|
|
|
20330
20370
|
if (destination != ee.rpc_convert_batch.ExportDestination.ASSET) {
|
|
20331
20371
|
throw Error('Export destination "' + destination + '" unknown');
|
|
20332
20372
|
}
|
|
20333
|
-
return new module$exports$eeapiclient$ee_api_client.ExportClassifierRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), requestId:stringOrNull_(params.id), assetExportOptions:new module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions({earthEngineDestination:ee.rpc_convert_batch.buildEarthEngineDestination_(params)}), maxWorkers:numberOrNull_(params.maxWorkers)
|
|
20373
|
+
return new module$exports$eeapiclient$ee_api_client.ExportClassifierRequest({expression:ee.Serializer.encodeCloudApiExpression(params.element), description:stringOrNull_(params.description), requestId:stringOrNull_(params.id), assetExportOptions:new module$exports$eeapiclient$ee_api_client.ClassifierAssetExportOptions({earthEngineDestination:ee.rpc_convert_batch.buildEarthEngineDestination_(params)}), maxWorkers:numberOrNull_(params.maxWorkers),
|
|
20374
|
+
priority:numberOrNull_(params.priority)});
|
|
20334
20375
|
};
|
|
20335
20376
|
function stringOrNull_(value) {
|
|
20336
20377
|
return null != value ? String(value) : null;
|
|
@@ -23036,69 +23077,69 @@ module$contents$ee$batch_ExportTask.prototype.start = function(opt_success, opt_
|
|
|
23036
23077
|
}
|
|
23037
23078
|
};
|
|
23038
23079
|
goog.exportProperty(module$contents$ee$batch_ExportTask.prototype, "start", module$contents$ee$batch_ExportTask.prototype.start);
|
|
23039
|
-
module$contents$ee$batch_Export.image.toAsset = function(image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_shardSize) {
|
|
23080
|
+
module$contents$ee$batch_Export.image.toAsset = function(image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_shardSize, opt_priority) {
|
|
23040
23081
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.image.toAsset, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.ASSET, ee.data.ExportType.IMAGE);
|
|
23041
23082
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23042
23083
|
};
|
|
23043
23084
|
goog.exportSymbol("module$contents$ee$batch_Export.image.toAsset", module$contents$ee$batch_Export.image.toAsset);
|
|
23044
|
-
module$contents$ee$batch_Export.image.toCloudStorage = function(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) {
|
|
23085
|
+
module$contents$ee$batch_Export.image.toCloudStorage = function(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, opt_priority) {
|
|
23045
23086
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.image.toCloudStorage, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.GCS, ee.data.ExportType.IMAGE);
|
|
23046
23087
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23047
23088
|
};
|
|
23048
23089
|
goog.exportSymbol("module$contents$ee$batch_Export.image.toCloudStorage", module$contents$ee$batch_Export.image.toCloudStorage);
|
|
23049
|
-
module$contents$ee$batch_Export.image.toDrive = function(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) {
|
|
23090
|
+
module$contents$ee$batch_Export.image.toDrive = function(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, opt_priority) {
|
|
23050
23091
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.image.toDrive, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.DRIVE, ee.data.ExportType.IMAGE);
|
|
23051
23092
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23052
23093
|
};
|
|
23053
23094
|
goog.exportSymbol("module$contents$ee$batch_Export.image.toDrive", module$contents$ee$batch_Export.image.toDrive);
|
|
23054
|
-
module$contents$ee$batch_Export.map.toCloudStorage = function(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) {
|
|
23095
|
+
module$contents$ee$batch_Export.map.toCloudStorage = function(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, opt_priority) {
|
|
23055
23096
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.map.toCloudStorage, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.GCS, ee.data.ExportType.MAP);
|
|
23056
23097
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23057
23098
|
};
|
|
23058
23099
|
goog.exportSymbol("module$contents$ee$batch_Export.map.toCloudStorage", module$contents$ee$batch_Export.map.toCloudStorage);
|
|
23059
|
-
module$contents$ee$batch_Export.table.toCloudStorage = function(collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_fileFormat, opt_selectors, opt_maxVertices) {
|
|
23100
|
+
module$contents$ee$batch_Export.table.toCloudStorage = function(collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_fileFormat, opt_selectors, opt_maxVertices, opt_priority) {
|
|
23060
23101
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.table.toCloudStorage, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.GCS, ee.data.ExportType.TABLE);
|
|
23061
23102
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23062
23103
|
};
|
|
23063
23104
|
goog.exportSymbol("module$contents$ee$batch_Export.table.toCloudStorage", module$contents$ee$batch_Export.table.toCloudStorage);
|
|
23064
|
-
module$contents$ee$batch_Export.table.toDrive = function(collection, opt_description, opt_folder, opt_fileNamePrefix, opt_fileFormat, opt_selectors, opt_maxVertices) {
|
|
23105
|
+
module$contents$ee$batch_Export.table.toDrive = function(collection, opt_description, opt_folder, opt_fileNamePrefix, opt_fileFormat, opt_selectors, opt_maxVertices, opt_priority) {
|
|
23065
23106
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.table.toDrive, arguments);
|
|
23066
23107
|
clientConfig.type = ee.data.ExportType.TABLE;
|
|
23067
23108
|
var serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.DRIVE, ee.data.ExportType.TABLE);
|
|
23068
23109
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23069
23110
|
};
|
|
23070
23111
|
goog.exportSymbol("module$contents$ee$batch_Export.table.toDrive", module$contents$ee$batch_Export.table.toDrive);
|
|
23071
|
-
module$contents$ee$batch_Export.table.toAsset = function(collection, opt_description, opt_assetId, opt_maxVertices) {
|
|
23112
|
+
module$contents$ee$batch_Export.table.toAsset = function(collection, opt_description, opt_assetId, opt_maxVertices, opt_priority) {
|
|
23072
23113
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.table.toAsset, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.ASSET, ee.data.ExportType.TABLE);
|
|
23073
23114
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23074
23115
|
};
|
|
23075
23116
|
goog.exportSymbol("module$contents$ee$batch_Export.table.toAsset", module$contents$ee$batch_Export.table.toAsset);
|
|
23076
|
-
module$contents$ee$batch_Export.table.toFeatureView = function(collection, opt_description, opt_assetId, opt_maxFeaturesPerTile, opt_thinningStrategy, opt_thinningRanking, opt_zOrderRanking) {
|
|
23117
|
+
module$contents$ee$batch_Export.table.toFeatureView = function(collection, opt_description, opt_assetId, opt_maxFeaturesPerTile, opt_thinningStrategy, opt_thinningRanking, opt_zOrderRanking, opt_priority) {
|
|
23077
23118
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.table.toFeatureView, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.FEATURE_VIEW, ee.data.ExportType.TABLE);
|
|
23078
23119
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23079
23120
|
};
|
|
23080
23121
|
goog.exportSymbol("module$contents$ee$batch_Export.table.toFeatureView", module$contents$ee$batch_Export.table.toFeatureView);
|
|
23081
|
-
module$contents$ee$batch_Export.table.toBigQuery = function(collection, opt_description, opt_table, opt_overwrite, opt_append, opt_selectors, opt_maxVertices) {
|
|
23122
|
+
module$contents$ee$batch_Export.table.toBigQuery = function(collection, opt_description, opt_table, opt_overwrite, opt_append, opt_selectors, opt_maxVertices, opt_priority) {
|
|
23082
23123
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.table.toBigQuery, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.BIGQUERY, ee.data.ExportType.TABLE);
|
|
23083
23124
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23084
23125
|
};
|
|
23085
23126
|
goog.exportSymbol("module$contents$ee$batch_Export.table.toBigQuery", module$contents$ee$batch_Export.table.toBigQuery);
|
|
23086
|
-
module$contents$ee$batch_Export.video.toCloudStorage = function(collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_maxFrames) {
|
|
23127
|
+
module$contents$ee$batch_Export.video.toCloudStorage = function(collection, opt_description, opt_bucket, opt_fileNamePrefix, opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_maxFrames, opt_priority) {
|
|
23087
23128
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.video.toCloudStorage, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.GCS, ee.data.ExportType.VIDEO);
|
|
23088
23129
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23089
23130
|
};
|
|
23090
23131
|
goog.exportSymbol("module$contents$ee$batch_Export.video.toCloudStorage", module$contents$ee$batch_Export.video.toCloudStorage);
|
|
23091
|
-
module$contents$ee$batch_Export.video.toDrive = function(collection, opt_description, opt_folder, opt_fileNamePrefix, opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_maxFrames) {
|
|
23132
|
+
module$contents$ee$batch_Export.video.toDrive = function(collection, opt_description, opt_folder, opt_fileNamePrefix, opt_framesPerSecond, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_maxFrames, opt_priority) {
|
|
23092
23133
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.video.toDrive, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.DRIVE, ee.data.ExportType.VIDEO);
|
|
23093
23134
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23094
23135
|
};
|
|
23095
23136
|
goog.exportSymbol("module$contents$ee$batch_Export.video.toDrive", module$contents$ee$batch_Export.video.toDrive);
|
|
23096
|
-
module$contents$ee$batch_Export.videoMap.toCloudStorage = function(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) {
|
|
23137
|
+
module$contents$ee$batch_Export.videoMap.toCloudStorage = function(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, opt_priority) {
|
|
23097
23138
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.videoMap.toCloudStorage, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.GCS, ee.data.ExportType.VIDEO_MAP);
|
|
23098
23139
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23099
23140
|
};
|
|
23100
23141
|
goog.exportSymbol("module$contents$ee$batch_Export.videoMap.toCloudStorage", module$contents$ee$batch_Export.videoMap.toCloudStorage);
|
|
23101
|
-
module$contents$ee$batch_Export.classifier.toAsset = function(classifier, opt_description, opt_assetId) {
|
|
23142
|
+
module$contents$ee$batch_Export.classifier.toAsset = function(classifier, opt_description, opt_assetId, opt_priority) {
|
|
23102
23143
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.classifier.toAsset, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.ASSET, ee.data.ExportType.CLASSIFIER);
|
|
23103
23144
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23104
23145
|
};
|