@google/earthengine 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.js +266 -609
- package/build/ee_api_js.js +16 -16
- package/build/ee_api_js_debug.js +248 -591
- package/build/ee_api_js_npm.js +266 -609
- package/build/main.js +266 -609
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1253,8 +1253,8 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1253
1253
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1254
1254
|
};
|
|
1255
1255
|
}, "es8", "es3");
|
|
1256
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable:!1,
|
|
1257
|
-
|
|
1256
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__enable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1, GoogFlags__override_disable_toggles:!1,
|
|
1257
|
+
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, GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
1258
1258
|
/*
|
|
1259
1259
|
|
|
1260
1260
|
Copyright The Closure Library Authors.
|
|
@@ -2149,9 +2149,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2149
2149
|
};
|
|
2150
2150
|
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;
|
|
2151
2151
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2152
|
-
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 = (0,$jscomp.makeIterator)(metadata.keys || []), $jscomp$key$
|
|
2153
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2154
|
-
var key = $jscomp$key$
|
|
2152
|
+
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 = (0,$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 =
|
|
2153
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
2154
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
2155
2155
|
if (value != null) {
|
|
2156
2156
|
var copy = void 0;
|
|
2157
2157
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2162,11 +2162,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2162
2162
|
} else if (objects.hasOwnProperty(key)) {
|
|
2163
2163
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2164
2164
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2165
|
-
$jscomp$loop$
|
|
2165
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
2166
2166
|
return function(v) {
|
|
2167
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2167
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2168
2168
|
};
|
|
2169
|
-
}($jscomp$loop$
|
|
2169
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2170
2170
|
} else if (Array.isArray(value)) {
|
|
2171
2171
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2172
2172
|
continue;
|
|
@@ -2181,8 +2181,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2181
2181
|
return target;
|
|
2182
2182
|
}
|
|
2183
2183
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2184
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2185
|
-
var mapKey = $jscomp$key$
|
|
2184
|
+
for (var objMap = {}, $jscomp$iter$20 = (0,$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()) {
|
|
2185
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
2186
2186
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2187
2187
|
}
|
|
2188
2188
|
return objMap;
|
|
@@ -2212,39 +2212,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2212
2212
|
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))) {
|
|
2213
2213
|
return !1;
|
|
2214
2214
|
}
|
|
2215
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2216
|
-
var key = $jscomp$key$
|
|
2215
|
+
for (var $jscomp$iter$21 = (0,$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()) {
|
|
2216
|
+
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);
|
|
2217
2217
|
if (has1 !== has2) {
|
|
2218
2218
|
return !1;
|
|
2219
2219
|
}
|
|
2220
2220
|
if (has1) {
|
|
2221
2221
|
var value1 = serializable1.Serializable$get(key);
|
|
2222
|
-
$jscomp$loop$
|
|
2222
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2223
2223
|
if (arrays1.hasOwnProperty(key)) {
|
|
2224
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2224
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
2225
2225
|
return !1;
|
|
2226
2226
|
}
|
|
2227
2227
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2228
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2228
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
2229
2229
|
return !1;
|
|
2230
2230
|
}
|
|
2231
2231
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2232
|
-
if ($jscomp$loop$
|
|
2233
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2232
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2233
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
2234
2234
|
return function(v1, i) {
|
|
2235
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2235
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
2236
2236
|
};
|
|
2237
|
-
}($jscomp$loop$
|
|
2237
|
+
}($jscomp$loop$m192531680$45))) {
|
|
2238
2238
|
return !1;
|
|
2239
2239
|
}
|
|
2240
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2240
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
2241
2241
|
return !1;
|
|
2242
2242
|
}
|
|
2243
2243
|
} else if (Array.isArray(value1)) {
|
|
2244
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2244
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
2245
2245
|
return !1;
|
|
2246
2246
|
}
|
|
2247
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2247
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
2248
2248
|
return !1;
|
|
2249
2249
|
}
|
|
2250
2250
|
}
|
|
@@ -2266,8 +2266,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2266
2266
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2267
2267
|
return !1;
|
|
2268
2268
|
}
|
|
2269
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2270
|
-
var mapKey = $jscomp$key$
|
|
2269
|
+
for (var $jscomp$iter$22 = (0,$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()) {
|
|
2270
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
2271
2271
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2272
2272
|
return !1;
|
|
2273
2273
|
}
|
|
@@ -2348,15 +2348,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2348
2348
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2349
2349
|
};
|
|
2350
2350
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2351
|
-
var $jscomp$this$
|
|
2351
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2352
2352
|
payload += this._metadataPayload;
|
|
2353
2353
|
return Promise.all(this.files.map(function(f) {
|
|
2354
|
-
return $jscomp$this$
|
|
2354
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
2355
2355
|
})).then(function(filePayloads) {
|
|
2356
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2357
|
-
payload += $jscomp$key$
|
|
2356
|
+
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$m667091202$9$filePayload = $jscomp$iter$23.next(); !$jscomp$key$m667091202$9$filePayload.done; $jscomp$key$m667091202$9$filePayload = $jscomp$iter$23.next()) {
|
|
2357
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
2358
2358
|
}
|
|
2359
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2359
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
2360
2360
|
});
|
|
2361
2361
|
};
|
|
2362
2362
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2461,9 +2461,6 @@ function module$contents$goog$object_getCount(obj) {
|
|
|
2461
2461
|
}
|
|
2462
2462
|
return rv;
|
|
2463
2463
|
}
|
|
2464
|
-
function module$contents$goog$object_contains(obj, val) {
|
|
2465
|
-
return module$contents$goog$object_containsValue(obj, val);
|
|
2466
|
-
}
|
|
2467
2464
|
function module$contents$goog$object_getValues(obj) {
|
|
2468
2465
|
var res = [], i = 0, key;
|
|
2469
2466
|
for (key in obj) {
|
|
@@ -2587,7 +2584,9 @@ goog.object.add = function(obj, key, val) {
|
|
|
2587
2584
|
};
|
|
2588
2585
|
goog.object.clear = module$contents$goog$object_clear;
|
|
2589
2586
|
goog.object.clone = module$contents$goog$object_clone;
|
|
2590
|
-
goog.object.contains =
|
|
2587
|
+
goog.object.contains = function(obj, val) {
|
|
2588
|
+
return module$contents$goog$object_containsValue(obj, val);
|
|
2589
|
+
};
|
|
2591
2590
|
goog.object.containsKey = module$contents$goog$object_containsKey;
|
|
2592
2591
|
goog.object.containsValue = module$contents$goog$object_containsValue;
|
|
2593
2592
|
goog.object.create = module$contents$goog$object_create;
|
|
@@ -2862,8 +2861,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2862
2861
|
throw Error(message);
|
|
2863
2862
|
}
|
|
2864
2863
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2865
|
-
var $jscomp$templatelit$
|
|
2866
|
-
["\\0"]), $jscomp$templatelit$
|
|
2864
|
+
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"],
|
|
2865
|
+
["\\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"};
|
|
2867
2866
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2868
2867
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2869
2868
|
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 ##############################");
|
|
@@ -2877,14 +2876,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2877
2876
|
return fn.toString().indexOf("`") === -1;
|
|
2878
2877
|
}
|
|
2879
2878
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2880
|
-
return tag($jscomp$templatelit$
|
|
2879
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
2881
2880
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2882
|
-
return tag($jscomp$templatelit$
|
|
2881
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
2883
2882
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2884
|
-
return tag($jscomp$templatelit$
|
|
2883
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
2885
2884
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2886
|
-
return tag($jscomp$templatelit$
|
|
2887
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2885
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
2886
|
+
}), 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);
|
|
2888
2887
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2889
2888
|
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)) ?
|
|
2890
2889
|
!0 : !1;
|
|
@@ -3296,9 +3295,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3296
3295
|
}
|
|
3297
3296
|
}
|
|
3298
3297
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
3299
|
-
var $jscomp$tmp$error$
|
|
3300
|
-
this.message = $jscomp$tmp$error$
|
|
3301
|
-
"stack" in $jscomp$tmp$error$
|
|
3298
|
+
var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
3299
|
+
this.message = $jscomp$tmp$error$240424914$1.message;
|
|
3300
|
+
"stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
|
|
3302
3301
|
this.type = type;
|
|
3303
3302
|
this.intent = intent;
|
|
3304
3303
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -3405,7 +3404,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
|
3405
3404
|
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
3406
3405
|
};
|
|
3407
3406
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
3408
|
-
var $jscomp$optchain$
|
|
3407
|
+
var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = win.document).querySelector) == null ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
|
|
3409
3408
|
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
3410
3409
|
}
|
|
3411
3410
|
;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"};
|
|
@@ -4661,24 +4660,28 @@ module$exports$safevalues$dom$globals$dom_parser.parseHtml = function(parser, ht
|
|
|
4661
4660
|
return module$contents$safevalues$dom$globals$dom_parser_parseFromString(parser, html, "text/html");
|
|
4662
4661
|
};
|
|
4663
4662
|
module$exports$safevalues$dom$globals$dom_parser.parseXml = function(parser, xml) {
|
|
4664
|
-
for (var doc = module$contents$safevalues$dom$globals$dom_parser_parseFromString(parser, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(xml), "text/xml"), iterator = document.createNodeIterator(doc, NodeFilter.
|
|
4665
|
-
|
|
4663
|
+
for (var doc = module$contents$safevalues$dom$globals$dom_parser_parseFromString(parser, (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(xml), "text/xml"), iterator = document.createNodeIterator(doc, NodeFilter.SHOW_ELEMENT), currentNode; currentNode = iterator.nextNode();) {
|
|
4664
|
+
var ns = currentNode.namespaceURI;
|
|
4665
|
+
if (module$contents$safevalues$dom$globals$dom_parser_isUnsafeNamespace(ns)) {
|
|
4666
4666
|
var message = "unsafe XML";
|
|
4667
|
-
goog.DEBUG && (message
|
|
4667
|
+
goog.DEBUG && (message += " - attempted to parse an XML document containing an element with namespace " + ns + ". Parsing HTML, SVG or MathML content is unsafe because it may lead to XSS when the content is appended to the document.");
|
|
4668
4668
|
throw Error(message);
|
|
4669
4669
|
}
|
|
4670
4670
|
}
|
|
4671
4671
|
return doc;
|
|
4672
4672
|
};
|
|
4673
|
+
function module$contents$safevalues$dom$globals$dom_parser_isUnsafeNamespace(ns) {
|
|
4674
|
+
return ns === "http://www.w3.org/1999/xhtml" || ns === "http://www.w3.org/2000/svg" || ns === "http://www.w3.org/1998/Math/MathML";
|
|
4675
|
+
}
|
|
4673
4676
|
function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parser, content, contentType) {
|
|
4674
4677
|
return parser.parseFromString((0,module$exports$safevalues$internals$html_impl.unwrapHtml)(content), contentType);
|
|
4675
4678
|
}
|
|
4676
4679
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
4677
4680
|
var module$exports$safevalues$dom$globals$fetch = {}, module$contents$safevalues$dom$globals$fetch_module = module$contents$safevalues$dom$globals$fetch_module || {id:"third_party/javascript/safevalues/dom/globals/fetch.closure.js"};
|
|
4678
4681
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4679
|
-
var $jscomp$tmp$error$
|
|
4680
|
-
this.message = $jscomp$tmp$error$
|
|
4681
|
-
"stack" in $jscomp$tmp$error$
|
|
4682
|
+
var $jscomp$tmp$error$m991617773$25 = Error.call(this, url + " was requested as a " + typeName + ', but the response Content-Type, "' + contentType + " is not appropriate for this type of content.");
|
|
4683
|
+
this.message = $jscomp$tmp$error$m991617773$25.message;
|
|
4684
|
+
"stack" in $jscomp$tmp$error$m991617773$25 && (this.stack = $jscomp$tmp$error$m991617773$25.stack);
|
|
4682
4685
|
this.url = url;
|
|
4683
4686
|
this.typeName = typeName;
|
|
4684
4687
|
this.contentType = contentType;
|
|
@@ -4690,48 +4693,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4690
4693
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4691
4694
|
}
|
|
4692
4695
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4693
|
-
var response, $jscomp$optchain$
|
|
4694
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4695
|
-
if ($jscomp$generator$context$
|
|
4696
|
-
return $jscomp$generator$context$
|
|
4697
|
-
}
|
|
4698
|
-
response = $jscomp$generator$context$
|
|
4699
|
-
mimeType = ($jscomp$optchain$
|
|
4700
|
-
return $jscomp$generator$context$
|
|
4696
|
+
var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
|
|
4697
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$29) {
|
|
4698
|
+
if ($jscomp$generator$context$m991617773$29.nextAddress == 1) {
|
|
4699
|
+
return $jscomp$generator$context$m991617773$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4700
|
+
}
|
|
4701
|
+
response = $jscomp$generator$context$m991617773$29.yieldResult;
|
|
4702
|
+
mimeType = ($jscomp$optchain$tmpm991617773$0 = response.headers.get("Content-Type")) == null ? void 0 : ($jscomp$optchain$tmpm991617773$1 = $jscomp$optchain$tmpm991617773$0.split(";", 2)) == null ? void 0 : ($jscomp$optchain$tmpm991617773$2 = $jscomp$optchain$tmpm991617773$1[0]) == null ? void 0 : $jscomp$optchain$tmpm991617773$2.toLowerCase();
|
|
4703
|
+
return $jscomp$generator$context$m991617773$29.return({html:function() {
|
|
4701
4704
|
var text;
|
|
4702
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4703
|
-
if ($jscomp$generator$context$
|
|
4705
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$26) {
|
|
4706
|
+
if ($jscomp$generator$context$m991617773$26.nextAddress == 1) {
|
|
4704
4707
|
if (mimeType !== "text/html") {
|
|
4705
4708
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4706
4709
|
}
|
|
4707
|
-
return $jscomp$generator$context$
|
|
4710
|
+
return $jscomp$generator$context$m991617773$26.yield(response.text(), 2);
|
|
4708
4711
|
}
|
|
4709
|
-
text = $jscomp$generator$context$
|
|
4710
|
-
return $jscomp$generator$context$
|
|
4712
|
+
text = $jscomp$generator$context$m991617773$26.yieldResult;
|
|
4713
|
+
return $jscomp$generator$context$m991617773$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4711
4714
|
});
|
|
4712
4715
|
}, script:function() {
|
|
4713
4716
|
var text;
|
|
4714
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4715
|
-
if ($jscomp$generator$context$
|
|
4717
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$27) {
|
|
4718
|
+
if ($jscomp$generator$context$m991617773$27.nextAddress == 1) {
|
|
4716
4719
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4717
4720
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4718
4721
|
}
|
|
4719
|
-
return $jscomp$generator$context$
|
|
4722
|
+
return $jscomp$generator$context$m991617773$27.yield(response.text(), 2);
|
|
4720
4723
|
}
|
|
4721
|
-
text = $jscomp$generator$context$
|
|
4722
|
-
return $jscomp$generator$context$
|
|
4724
|
+
text = $jscomp$generator$context$m991617773$27.yieldResult;
|
|
4725
|
+
return $jscomp$generator$context$m991617773$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4723
4726
|
});
|
|
4724
4727
|
}, styleSheet:function() {
|
|
4725
4728
|
var text;
|
|
4726
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4727
|
-
if ($jscomp$generator$context$
|
|
4729
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$28) {
|
|
4730
|
+
if ($jscomp$generator$context$m991617773$28.nextAddress == 1) {
|
|
4728
4731
|
if (mimeType !== "text/css") {
|
|
4729
4732
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4730
4733
|
}
|
|
4731
|
-
return $jscomp$generator$context$
|
|
4734
|
+
return $jscomp$generator$context$m991617773$28.yield(response.text(), 2);
|
|
4732
4735
|
}
|
|
4733
|
-
text = $jscomp$generator$context$
|
|
4734
|
-
return $jscomp$generator$context$
|
|
4736
|
+
text = $jscomp$generator$context$m991617773$28.yieldResult;
|
|
4737
|
+
return $jscomp$generator$context$m991617773$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4735
4738
|
});
|
|
4736
4739
|
}});
|
|
4737
4740
|
});
|
|
@@ -6153,8 +6156,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6153
6156
|
}
|
|
6154
6157
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6155
6158
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6156
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6157
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6159
|
+
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$1047461284$0$ = $jscomp$iter$29.next(); !$jscomp$key$1047461284$0$.done; $jscomp$key$1047461284$0$ = $jscomp$iter$29.next()) {
|
|
6160
|
+
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$1047461284$0$.value), jsName__tsickle_destructured_1 = $jscomp$destructuring$var3.next().value, urlQueryParamName__tsickle_destructured_2 = $jscomp$destructuring$var3.next().value, jsName = jsName__tsickle_destructured_1, urlQueryParamName = urlQueryParamName__tsickle_destructured_2;
|
|
6158
6161
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6159
6162
|
}
|
|
6160
6163
|
return urlQueryParams;
|
|
@@ -6165,8 +6168,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6165
6168
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6166
6169
|
if (params.headers) {
|
|
6167
6170
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6168
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6169
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6171
|
+
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$1047461284$1$ = $jscomp$iter$30.next(); !$jscomp$key$1047461284$1$.done; $jscomp$key$1047461284$1$ = $jscomp$iter$30.next()) {
|
|
6172
|
+
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$1047461284$1$.value), key__tsickle_destructured_3 = $jscomp$destructuring$var5.next().value, value__tsickle_destructured_4 = $jscomp$destructuring$var5.next().value, key = key__tsickle_destructured_3, value = value__tsickle_destructured_4;
|
|
6170
6173
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : key === "Content-Type" && module$contents$eeapiclient$request_params_simpleCorsAllowedContentTypes.includes(value) ? (safeHeaders[key] = value, hasSafeContentType = !0) : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6171
6174
|
}
|
|
6172
6175
|
}
|
|
@@ -6206,9 +6209,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6206
6209
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6207
6210
|
};
|
|
6208
6211
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6209
|
-
var $jscomp$this$
|
|
6212
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6210
6213
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6211
|
-
return $jscomp$this$
|
|
6214
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
6212
6215
|
}));
|
|
6213
6216
|
};
|
|
6214
6217
|
var module$exports$eeapiclient$promise_request_service = {}, module$contents$eeapiclient$promise_request_service_module = module$contents$eeapiclient$promise_request_service_module || {id:"javascript/typescript/contrib/apiclient/request_service/promise_request_service.closure.js"};
|
|
@@ -6377,7 +6380,6 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_r
|
|
|
6377
6380
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable = !1;
|
|
6378
6381
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable = !1;
|
|
6379
6382
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable = !1;
|
|
6380
|
-
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable = !1;
|
|
6381
6383
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
|
|
6382
6384
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
|
|
6383
6385
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__enable = !1;
|
|
@@ -6394,7 +6396,6 @@ goog.flags.CLIENT_ONLY_WIZ_FLUSH_QUEUE_FIX = module$exports$closure$flags$flags$
|
|
|
6394
6396
|
goog.flags.CLIENT_ONLY_WIZ_ORDERED_REACTION_EXECUTION = 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_ordered_reaction_execution__disable : goog.readFlagInternalDoNotUseOrElse(1822726157, !0);
|
|
6395
6397
|
goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable) : goog.readFlagInternalDoNotUseOrElse(661449076,
|
|
6396
6398
|
module$contents$goog$flags_STAGING);
|
|
6397
|
-
goog.flags.JSPB_ENABLE_LOW_INDEX_EXTENSION_WRITES = 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_enable_low_index_extension_writes__disable : goog.readFlagInternalDoNotUseOrElse(645172343, !0);
|
|
6398
6399
|
goog.flags.WIZ_ENABLE_NATIVE_PROMISE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable : goog.readFlagInternalDoNotUseOrElse(651175828, goog.DEBUG);
|
|
6399
6400
|
goog.flags.JSPB_READONLY_REPEATED_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_readonly_repeated_fields__disable) : goog.readFlagInternalDoNotUseOrElse(653718497, module$contents$goog$flags_STAGING);
|
|
6400
6401
|
goog.flags.JSPB_IGNORE_IMPLICIT_EXTENSION_DEPS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__enable : goog.readFlagInternalDoNotUseOrElse(660014094, goog.DEBUG);
|
|
@@ -9097,6 +9098,11 @@ module$exports$eeapiclient$ee_api_client.IPixelDataTypePrecisionEnum = function(
|
|
|
9097
9098
|
module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum = {DOUBLE:"DOUBLE", FLOAT:"FLOAT", INT:"INT", PRECISION_UNSPECIFIED:"PRECISION_UNSPECIFIED", values:function() {
|
|
9098
9099
|
return [module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum.PRECISION_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum.INT, module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum.FLOAT, module$exports$eeapiclient$ee_api_client.PixelDataTypePrecisionEnum.DOUBLE];
|
|
9099
9100
|
}};
|
|
9101
|
+
module$exports$eeapiclient$ee_api_client.IProjectConfigRegistrationStateEnum = function() {
|
|
9102
|
+
};
|
|
9103
|
+
module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum = {NOT_REGISTERED:"NOT_REGISTERED", REGISTERED_COMMERCILALLY:"REGISTERED_COMMERCILALLY", REGISTERED_NOT_COMMERCILALLY:"REGISTERED_NOT_COMMERCILALLY", REGISTRATION_STATE_UNSPECIFIED:"REGISTRATION_STATE_UNSPECIFIED", values:function() {
|
|
9104
|
+
return [module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum.REGISTRATION_STATE_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum.NOT_REGISTERED, module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum.REGISTERED_COMMERCILALLY, module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum.REGISTERED_NOT_COMMERCILALLY];
|
|
9105
|
+
}};
|
|
9100
9106
|
module$exports$eeapiclient$ee_api_client.IProjectRegistrationBillingConsentEnum = function() {
|
|
9101
9107
|
};
|
|
9102
9108
|
module$exports$eeapiclient$ee_api_client.ProjectRegistrationBillingConsentEnum = {BILLING_CONSENT_FULL:"BILLING_CONSENT_FULL", BILLING_CONSENT_NONE:"BILLING_CONSENT_NONE", BILLING_CONSENT_UNSPECIFIED:"BILLING_CONSENT_UNSPECIFIED", values:function() {
|
|
@@ -12280,6 +12286,7 @@ module$exports$eeapiclient$ee_api_client.ProjectConfig = function(parameters) {
|
|
|
12280
12286
|
module$exports$eeapiclient$domain_object.Serializable.call(this);
|
|
12281
12287
|
this.Serializable$set("name", parameters.name == null ? null : parameters.name);
|
|
12282
12288
|
this.Serializable$set("registration", parameters.registration == null ? null : parameters.registration);
|
|
12289
|
+
this.Serializable$set("registrationState", parameters.registrationState == null ? null : parameters.registrationState);
|
|
12283
12290
|
this.Serializable$set("trialStatus", parameters.trialStatus == null ? null : parameters.trialStatus);
|
|
12284
12291
|
this.Serializable$set("vpcServiceControlsRestricted", parameters.vpcServiceControlsRestricted == null ? null : parameters.vpcServiceControlsRestricted);
|
|
12285
12292
|
};
|
|
@@ -12288,7 +12295,7 @@ module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getConstructor
|
|
|
12288
12295
|
return module$exports$eeapiclient$ee_api_client.ProjectConfig;
|
|
12289
12296
|
};
|
|
12290
12297
|
module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype.getPartialClassMetadata = function() {
|
|
12291
|
-
return {keys:["name", "registration", "trialStatus", "vpcServiceControlsRestricted"], objects:{registration:module$exports$eeapiclient$ee_api_client.ProjectRegistration, trialStatus:module$exports$eeapiclient$ee_api_client.TrialStatus}};
|
|
12298
|
+
return {enums:{registrationState:module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum}, keys:["name", "registration", "registrationState", "trialStatus", "vpcServiceControlsRestricted"], objects:{registration:module$exports$eeapiclient$ee_api_client.ProjectRegistration, trialStatus:module$exports$eeapiclient$ee_api_client.TrialStatus}};
|
|
12292
12299
|
};
|
|
12293
12300
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ProjectConfig.prototype, {name:{configurable:!0, enumerable:!0, get:function() {
|
|
12294
12301
|
return this.Serializable$has("name") ? this.Serializable$get("name") : null;
|
|
@@ -12298,6 +12305,10 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
12298
12305
|
return this.Serializable$has("registration") ? this.Serializable$get("registration") : null;
|
|
12299
12306
|
}, set:function(value) {
|
|
12300
12307
|
this.Serializable$set("registration", value);
|
|
12308
|
+
}}, registrationState:{configurable:!0, enumerable:!0, get:function() {
|
|
12309
|
+
return this.Serializable$has("registrationState") ? this.Serializable$get("registrationState") : null;
|
|
12310
|
+
}, set:function(value) {
|
|
12311
|
+
this.Serializable$set("registrationState", value);
|
|
12301
12312
|
}}, trialStatus:{configurable:!0, enumerable:!0, get:function() {
|
|
12302
12313
|
return this.Serializable$has("trialStatus") ? this.Serializable$get("trialStatus") : null;
|
|
12303
12314
|
}, set:function(value) {
|
|
@@ -12307,6 +12318,9 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
12307
12318
|
}, set:function(value) {
|
|
12308
12319
|
this.Serializable$set("vpcServiceControlsRestricted", value);
|
|
12309
12320
|
}}});
|
|
12321
|
+
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ProjectConfig, {RegistrationState:{configurable:!0, enumerable:!0, get:function() {
|
|
12322
|
+
return module$exports$eeapiclient$ee_api_client.ProjectConfigRegistrationStateEnum;
|
|
12323
|
+
}}});
|
|
12310
12324
|
module$exports$eeapiclient$ee_api_client.ProjectRegistrationParameters = function() {
|
|
12311
12325
|
};
|
|
12312
12326
|
module$exports$eeapiclient$ee_api_client.ProjectRegistration = function(parameters) {
|
|
@@ -14883,8 +14897,6 @@ var module$contents$goog$asserts$dom_assertIsHtmlElement = function(value) {
|
|
|
14883
14897
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
|
|
14884
14898
|
}, module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function(value) {
|
|
14885
14899
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IFRAME);
|
|
14886
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlScriptElement = function(value) {
|
|
14887
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
|
|
14888
14900
|
}, module$contents$goog$asserts$dom_debugStringForType = function(value) {
|
|
14889
14901
|
if (goog.isObject(value)) {
|
|
14890
14902
|
try {
|
|
@@ -14936,7 +14948,9 @@ goog.asserts.dom.assertIsHtmlIFrameElement = module$contents$goog$asserts$dom_as
|
|
|
14936
14948
|
goog.asserts.dom.assertIsHtmlObjectElement = function(value) {
|
|
14937
14949
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.OBJECT);
|
|
14938
14950
|
};
|
|
14939
|
-
goog.asserts.dom.assertIsHtmlScriptElement =
|
|
14951
|
+
goog.asserts.dom.assertIsHtmlScriptElement = function(value) {
|
|
14952
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.SCRIPT);
|
|
14953
|
+
};
|
|
14940
14954
|
goog.dom.asserts = {};
|
|
14941
14955
|
goog.dom.asserts.assertIsLocation = function(o) {
|
|
14942
14956
|
if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS) {
|
|
@@ -14967,11 +14981,6 @@ goog.dom.asserts.getWindow_ = function(o) {
|
|
|
14967
14981
|
}
|
|
14968
14982
|
return null;
|
|
14969
14983
|
};
|
|
14970
|
-
goog.dom.tags = {};
|
|
14971
|
-
goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!0, hr:!0, img:!0, input:!0, keygen:!0, link:!0, meta:!0, param:!0, source:!0, track:!0, wbr:!0};
|
|
14972
|
-
goog.dom.tags.isVoidTag = function(tagName) {
|
|
14973
|
-
return goog.dom.tags.VOID_TAGS_[tagName] === !0;
|
|
14974
|
-
};
|
|
14975
14984
|
goog.string.Const = function(opt_token, opt_content) {
|
|
14976
14985
|
this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && opt_content || "";
|
|
14977
14986
|
this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = goog.string.Const.TYPE_MARKER_;
|
|
@@ -14992,340 +15001,6 @@ goog.string.Const.from = function(s) {
|
|
|
14992
15001
|
goog.string.Const.TYPE_MARKER_ = {};
|
|
14993
15002
|
goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ = {};
|
|
14994
15003
|
goog.string.Const.EMPTY = goog.string.Const.from("");
|
|
14995
|
-
var module$exports$safevalues$for_closure$index = {}, module$contents$safevalues$for_closure$index_module = module$contents$safevalues$for_closure$index_module || {id:"third_party/javascript/safevalues/for_closure/index.closure.js"};
|
|
14996
|
-
module$exports$safevalues$for_closure$index.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
14997
|
-
module$exports$safevalues$for_closure$index.EMPTY_HTML = module$exports$safevalues$internals$html_impl.EMPTY_HTML;
|
|
14998
|
-
module$exports$safevalues$for_closure$index.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
14999
|
-
module$exports$safevalues$for_closure$index.createHtmlInternal = module$exports$safevalues$internals$html_impl.createHtmlInternal;
|
|
15000
|
-
module$exports$safevalues$for_closure$index.unwrapHtml = module$exports$safevalues$internals$html_impl.unwrapHtml;
|
|
15001
|
-
module$exports$safevalues$for_closure$index.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
|
|
15002
|
-
module$exports$safevalues$for_closure$index.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
15003
|
-
module$exports$safevalues$for_closure$index.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
15004
|
-
module$exports$safevalues$for_closure$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
15005
|
-
module$exports$safevalues$for_closure$index.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
15006
|
-
module$exports$safevalues$for_closure$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
15007
|
-
module$exports$safevalues$for_closure$index.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
15008
|
-
module$exports$safevalues$for_closure$index.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
|
|
15009
|
-
module$exports$safevalues$for_closure$index.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
15010
|
-
module$exports$safevalues$for_closure$index.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
15011
|
-
module$exports$safevalues$for_closure$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
15012
|
-
var module$exports$safevalues$for_closure = {};
|
|
15013
|
-
module$exports$safevalues$for_closure.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
15014
|
-
module$exports$safevalues$for_closure.EMPTY_HTML = module$exports$safevalues$for_closure$index.EMPTY_HTML;
|
|
15015
|
-
module$exports$safevalues$for_closure.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
15016
|
-
module$exports$safevalues$for_closure.createHtmlInternal = module$exports$safevalues$for_closure$index.createHtmlInternal;
|
|
15017
|
-
module$exports$safevalues$for_closure.unwrapHtml = module$exports$safevalues$for_closure$index.unwrapHtml;
|
|
15018
|
-
module$exports$safevalues$for_closure.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
|
|
15019
|
-
module$exports$safevalues$for_closure.createResourceUrlInternal = module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal;
|
|
15020
|
-
module$exports$safevalues$for_closure.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
15021
|
-
module$exports$safevalues$for_closure.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
15022
|
-
module$exports$safevalues$for_closure.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
15023
|
-
module$exports$safevalues$for_closure.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
15024
|
-
module$exports$safevalues$for_closure.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
15025
|
-
module$exports$safevalues$for_closure.createStyleSheetInternal = module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal;
|
|
15026
|
-
module$exports$safevalues$for_closure.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
15027
|
-
module$exports$safevalues$for_closure.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
15028
|
-
module$exports$safevalues$for_closure.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
15029
|
-
goog.html = {};
|
|
15030
|
-
goog.html.deprecated = {};
|
|
15031
|
-
goog.html.deprecated.safeStyleSheetCreateRule = function(selector, style) {
|
|
15032
|
-
if ((0,goog.string.internal.contains)(selector, "<")) {
|
|
15033
|
-
throw Error("Selector does not allow '<', got: " + selector);
|
|
15034
|
-
}
|
|
15035
|
-
var selectorToCheck = selector.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g, "");
|
|
15036
|
-
if (!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(selectorToCheck)) {
|
|
15037
|
-
throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: " + selector);
|
|
15038
|
-
}
|
|
15039
|
-
if (!module$contents$goog$html$deprecated_hasBalancedBrackets(selectorToCheck)) {
|
|
15040
|
-
throw Error("() and [] in selector must be balanced, got: " + selector);
|
|
15041
|
-
}
|
|
15042
|
-
var styleStr = style instanceof module$exports$safevalues$internals$style_impl.SafeStyle ? module$contents$safevalues$internals$style_impl_unwrapStyle(style) : Object.entries(style).map(function($jscomp$destructuring$var30) {
|
|
15043
|
-
var $jscomp$destructuring$var31 = (0,$jscomp.makeIterator)($jscomp$destructuring$var30);
|
|
15044
|
-
var k = $jscomp$destructuring$var31.next().value;
|
|
15045
|
-
var v = $jscomp$destructuring$var31.next().value;
|
|
15046
|
-
return k + ":" + v + ";";
|
|
15047
|
-
}).join(""), styleSheet = selector + "{" + styleStr.replace(/</g, "\\3C ") + "}";
|
|
15048
|
-
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheet);
|
|
15049
|
-
};
|
|
15050
|
-
goog.html.deprecated.safeStyleSheetConcat = function(var_args) {
|
|
15051
|
-
var result = "", addArgument = function(argument) {
|
|
15052
|
-
Array.isArray(argument) ? argument.forEach(addArgument) : result += module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(argument);
|
|
15053
|
-
};
|
|
15054
|
-
Array.prototype.forEach.call(arguments, addArgument);
|
|
15055
|
-
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(result);
|
|
15056
|
-
};
|
|
15057
|
-
goog.html.deprecated.safeStyleSheetFromConstant = function(styleSheet) {
|
|
15058
|
-
var styleSheetString = goog.string.Const.unwrap(styleSheet);
|
|
15059
|
-
(0,goog.asserts.assert)(!(0,goog.string.internal.contains)(styleSheetString, "<"), "Forbidden '<' character in style sheet string: " + styleSheetString);
|
|
15060
|
-
return module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(styleSheetString);
|
|
15061
|
-
};
|
|
15062
|
-
function module$contents$goog$html$deprecated_hasBalancedBrackets(s) {
|
|
15063
|
-
for (var brackets = {"(":")", "[":"]"}, expectedBrackets = [], i = 0; i < s.length; i++) {
|
|
15064
|
-
var ch = s[i];
|
|
15065
|
-
if (brackets[ch]) {
|
|
15066
|
-
expectedBrackets.push(brackets[ch]);
|
|
15067
|
-
} else if (module$contents$goog$object_contains(brackets, ch) && expectedBrackets.pop() != ch) {
|
|
15068
|
-
return !1;
|
|
15069
|
-
}
|
|
15070
|
-
}
|
|
15071
|
-
return expectedBrackets.length == 0;
|
|
15072
|
-
}
|
|
15073
|
-
;module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.createRule = goog.html.deprecated.safeStyleSheetCreateRule;
|
|
15074
|
-
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.concat = goog.html.deprecated.safeStyleSheetConcat;
|
|
15075
|
-
module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet.fromConstant = goog.html.deprecated.safeStyleSheetFromConstant;
|
|
15076
|
-
goog.html.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
15077
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.cloneWithParams = function(url, searchParams, opt_hashParams) {
|
|
15078
|
-
var urlString = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.unwrap(url), parts = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.URL_PARAM_PARSER_.exec(urlString), urlHash = parts[3] || "";
|
|
15079
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(parts[1] + module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.stringifyParams_("?", parts[2] || "", searchParams) + module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.stringifyParams_("#", urlHash, opt_hashParams));
|
|
15080
|
-
};
|
|
15081
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.unwrap = function(trustedResourceUrl) {
|
|
15082
|
-
return module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedResourceUrl).toString();
|
|
15083
|
-
};
|
|
15084
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.unwrapTrustedScriptURL = function(trustedResourceUrl) {
|
|
15085
|
-
return module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(trustedResourceUrl);
|
|
15086
|
-
};
|
|
15087
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.format = function(format, args) {
|
|
15088
|
-
var formatStr = goog.string.Const.unwrap(format);
|
|
15089
|
-
if (!module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.BASE_URL_.test(formatStr)) {
|
|
15090
|
-
throw Error("Invalid TrustedResourceUrl format: " + formatStr);
|
|
15091
|
-
}
|
|
15092
|
-
var result = formatStr.replace(module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.FORMAT_MARKER_, function(match, id) {
|
|
15093
|
-
if (!Object.prototype.hasOwnProperty.call(args, id)) {
|
|
15094
|
-
throw Error('Found marker, "' + id + '", in format string, "' + formatStr + '", but no valid label mapping found in args: ' + JSON.stringify(args));
|
|
15095
|
-
}
|
|
15096
|
-
var arg = args[id];
|
|
15097
|
-
return arg instanceof goog.string.Const ? goog.string.Const.unwrap(arg) : encodeURIComponent(String(arg));
|
|
15098
|
-
});
|
|
15099
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(result);
|
|
15100
|
-
};
|
|
15101
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.FORMAT_MARKER_ = /%{(\w+)}/g;
|
|
15102
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.BASE_URL_ = RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)", "i");
|
|
15103
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.URL_PARAM_PARSER_ = /^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
|
|
15104
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.formatWithParams = function(format, args, searchParams, opt_hashParams) {
|
|
15105
|
-
var url = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.format(format, args);
|
|
15106
|
-
return module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.cloneWithParams(url, searchParams, opt_hashParams);
|
|
15107
|
-
};
|
|
15108
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.fromConstant = function(url) {
|
|
15109
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(goog.string.Const.unwrap(url));
|
|
15110
|
-
};
|
|
15111
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.fromConstants = function(parts) {
|
|
15112
|
-
for (var unwrapped = "", i = 0; i < parts.length; i++) {
|
|
15113
|
-
unwrapped += goog.string.Const.unwrap(parts[i]);
|
|
15114
|
-
}
|
|
15115
|
-
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(unwrapped);
|
|
15116
|
-
};
|
|
15117
|
-
module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl.stringifyParams_ = function(prefix, currentString, params) {
|
|
15118
|
-
if (params == null) {
|
|
15119
|
-
return currentString;
|
|
15120
|
-
}
|
|
15121
|
-
if (typeof params === "string") {
|
|
15122
|
-
return params ? prefix + encodeURIComponent(params) : "";
|
|
15123
|
-
}
|
|
15124
|
-
for (var key in params) {
|
|
15125
|
-
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
15126
|
-
for (var value = params[key], outputValues = Array.isArray(value) ? value : [value], i = 0; i < outputValues.length; i++) {
|
|
15127
|
-
var outputValue = outputValues[i];
|
|
15128
|
-
outputValue != null && (currentString || (currentString = prefix), currentString += (currentString.length > prefix.length ? "&" : "") + encodeURIComponent(key) + "=" + encodeURIComponent(String(outputValue)));
|
|
15129
|
-
}
|
|
15130
|
-
}
|
|
15131
|
-
}
|
|
15132
|
-
return currentString;
|
|
15133
|
-
};
|
|
15134
|
-
goog.html.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
|
|
15135
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.unwrap = function(safeHtml) {
|
|
15136
|
-
return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml).toString();
|
|
15137
|
-
};
|
|
15138
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.unwrapTrustedHTML = function(safeHtml) {
|
|
15139
|
-
return (0,module$exports$safevalues$for_closure$index.unwrapHtml)(safeHtml);
|
|
15140
|
-
};
|
|
15141
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape = function(textOrHtml) {
|
|
15142
|
-
return textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml ? textOrHtml : (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.htmlEscape(String(textOrHtml)));
|
|
15143
|
-
};
|
|
15144
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscapePreservingNewlines = function(textOrHtml) {
|
|
15145
|
-
if (textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
|
|
15146
|
-
return textOrHtml;
|
|
15147
|
-
}
|
|
15148
|
-
var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(textOrHtml);
|
|
15149
|
-
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.newLineToBr(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html)));
|
|
15150
|
-
};
|
|
15151
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscapePreservingNewlinesAndSpaces = function(textOrHtml) {
|
|
15152
|
-
if (textOrHtml instanceof module$exports$safevalues$internals$html_impl.SafeHtml) {
|
|
15153
|
-
return textOrHtml;
|
|
15154
|
-
}
|
|
15155
|
-
var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(textOrHtml);
|
|
15156
|
-
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(goog.string.internal.whitespaceEscape(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html)));
|
|
15157
|
-
};
|
|
15158
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.create = function(tagName, attributes, content) {
|
|
15159
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName(String(tagName));
|
|
15160
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(tagName), attributes, content);
|
|
15161
|
-
};
|
|
15162
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.verifyTagName = function(tagName) {
|
|
15163
|
-
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(tagName)) {
|
|
15164
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "Invalid tag name <" + tagName + ">." : "");
|
|
15165
|
-
}
|
|
15166
|
-
if (tagName.toUpperCase() in module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES) {
|
|
15167
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "Tag name <" + tagName + "> is not allowed for SafeHtml." : "");
|
|
15168
|
-
}
|
|
15169
|
-
};
|
|
15170
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.createIframe = function(src, srcdoc, attributes, content) {
|
|
15171
|
-
src && module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(src);
|
|
15172
|
-
var fixedAttributes = {};
|
|
15173
|
-
fixedAttributes.src = src || null;
|
|
15174
|
-
fixedAttributes.srcdoc = srcdoc && module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(srcdoc);
|
|
15175
|
-
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes(fixedAttributes, {sandbox:""}, attributes);
|
|
15176
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
15177
|
-
};
|
|
15178
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.createSandboxIframe = function(src, srcdoc, attributes, content) {
|
|
15179
|
-
if (!module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe()) {
|
|
15180
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? "The browser does not support sandboxed iframes." : "");
|
|
15181
|
-
}
|
|
15182
|
-
var fixedAttributes = {};
|
|
15183
|
-
fixedAttributes.src = src ? module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(src)) : null;
|
|
15184
|
-
fixedAttributes.srcdoc = srcdoc || null;
|
|
15185
|
-
fixedAttributes.sandbox = "";
|
|
15186
|
-
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes(fixedAttributes, {}, attributes);
|
|
15187
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe", combinedAttrs, content);
|
|
15188
|
-
};
|
|
15189
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.canUseSandboxIframe = function() {
|
|
15190
|
-
return goog.global.HTMLIFrameElement && "sandbox" in goog.global.HTMLIFrameElement.prototype;
|
|
15191
|
-
};
|
|
15192
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.createScriptSrc = function(src, attributes) {
|
|
15193
|
-
module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(src);
|
|
15194
|
-
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({src:src}, {}, attributes);
|
|
15195
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script", combinedAttrs);
|
|
15196
|
-
};
|
|
15197
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.createStyle = function(styleSheet, attributes) {
|
|
15198
|
-
var combinedAttrs = module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes({type:"text/css"}, {}, attributes), content = "";
|
|
15199
|
-
styleSheet = module$contents$goog$array_concat(styleSheet);
|
|
15200
|
-
for (var i = 0; i < styleSheet.length; i++) {
|
|
15201
|
-
content += module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet(styleSheet[i]);
|
|
15202
|
-
}
|
|
15203
|
-
var htmlContent = (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content);
|
|
15204
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style", combinedAttrs, htmlContent);
|
|
15205
|
-
};
|
|
15206
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.createMetaRefresh = function(url, secs) {
|
|
15207
|
-
var unwrappedUrl = module$contents$safevalues$internals$url_impl_unwrapUrl(module$contents$safevalues$builders$url_builders_sanitizeUrl(url));
|
|
15208
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta", {"http-equiv":"refresh", content:(secs || 0) + "; url=" + unwrappedUrl});
|
|
15209
|
-
};
|
|
15210
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.join = function(separator, parts) {
|
|
15211
|
-
var separatorHtml = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(separator), content = [], addArgument = function(argument) {
|
|
15212
|
-
if (Array.isArray(argument)) {
|
|
15213
|
-
argument.forEach(addArgument);
|
|
15214
|
-
} else {
|
|
15215
|
-
var html = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape(argument);
|
|
15216
|
-
content.push(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html));
|
|
15217
|
-
}
|
|
15218
|
-
};
|
|
15219
|
-
parts.forEach(addArgument);
|
|
15220
|
-
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(content.join(module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(separatorHtml)));
|
|
15221
|
-
};
|
|
15222
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.concat = function(var_args) {
|
|
15223
|
-
return module$exports$safevalues$internals$html_impl.SafeHtml.join(module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY, Array.prototype.slice.call(arguments));
|
|
15224
|
-
};
|
|
15225
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse = function(tagName, attributes, content) {
|
|
15226
|
-
var result = "<" + tagName + module$exports$safevalues$internals$html_impl.SafeHtml.stringifyAttributes(tagName, attributes);
|
|
15227
|
-
content == null ? content = [] : Array.isArray(content) || (content = [content]);
|
|
15228
|
-
if (goog.dom.tags.isVoidTag(tagName.toLowerCase())) {
|
|
15229
|
-
goog.asserts.assert(!content.length, "Void tag <" + tagName + "> does not allow content."), result += ">";
|
|
15230
|
-
} else {
|
|
15231
|
-
var html = module$exports$safevalues$internals$html_impl.SafeHtml.concat(content);
|
|
15232
|
-
result += ">" + module$exports$safevalues$internals$html_impl.SafeHtml.unwrap(html) + "</" + tagName + ">";
|
|
15233
|
-
}
|
|
15234
|
-
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)(result);
|
|
15235
|
-
};
|
|
15236
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.stringifyAttributes = function(tagName, attributes) {
|
|
15237
|
-
var result = "";
|
|
15238
|
-
if (attributes) {
|
|
15239
|
-
for (var name in attributes) {
|
|
15240
|
-
if (Object.prototype.hasOwnProperty.call(attributes, name)) {
|
|
15241
|
-
if (!module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG.test(name)) {
|
|
15242
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Invalid attribute name "' + name + '".' : "");
|
|
15243
|
-
}
|
|
15244
|
-
var value = attributes[name];
|
|
15245
|
-
value != null && (result += " " + module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value));
|
|
15246
|
-
}
|
|
15247
|
-
}
|
|
15248
|
-
}
|
|
15249
|
-
return result;
|
|
15250
|
-
};
|
|
15251
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.combineAttributes = function(fixedAttributes, defaultAttributes, attributes) {
|
|
15252
|
-
var combinedAttributes = {}, name;
|
|
15253
|
-
for (name in fixedAttributes) {
|
|
15254
|
-
Object.prototype.hasOwnProperty.call(fixedAttributes, name) && (goog.asserts.assert(name.toLowerCase() == name, "Must be lower case"), combinedAttributes[name] = fixedAttributes[name]);
|
|
15255
|
-
}
|
|
15256
|
-
for (var name$jscomp$0 in defaultAttributes) {
|
|
15257
|
-
Object.prototype.hasOwnProperty.call(defaultAttributes, name$jscomp$0) && (goog.asserts.assert(name$jscomp$0.toLowerCase() == name$jscomp$0, "Must be lower case"), combinedAttributes[name$jscomp$0] = defaultAttributes[name$jscomp$0]);
|
|
15258
|
-
}
|
|
15259
|
-
if (attributes) {
|
|
15260
|
-
for (var name$jscomp$1 in attributes) {
|
|
15261
|
-
if (Object.prototype.hasOwnProperty.call(attributes, name$jscomp$1)) {
|
|
15262
|
-
var nameLower = name$jscomp$1.toLowerCase();
|
|
15263
|
-
if (nameLower in fixedAttributes) {
|
|
15264
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Cannot override "' + nameLower + '" attribute, got "' + name$jscomp$1 + '" with value "' + attributes[name$jscomp$1] + '"' : "");
|
|
15265
|
-
}
|
|
15266
|
-
nameLower in defaultAttributes && delete combinedAttributes[nameLower];
|
|
15267
|
-
combinedAttributes[name$jscomp$1] = attributes[name$jscomp$1];
|
|
15268
|
-
}
|
|
15269
|
-
}
|
|
15270
|
-
}
|
|
15271
|
-
return combinedAttributes;
|
|
15272
|
-
};
|
|
15273
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES = goog.DEBUG;
|
|
15274
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.SUPPORT_STYLE_ATTRIBUTE = !0;
|
|
15275
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.from = module$exports$safevalues$internals$html_impl.SafeHtml.htmlEscape;
|
|
15276
|
-
var module$contents$goog$html$SafeHtml_VALID_NAMES_IN_TAG = /^[a-zA-Z0-9-]+$/, module$contents$goog$html$SafeHtml_URL_ATTRIBUTES = {action:!0, cite:!0, data:!0, formaction:!0, href:!0, manifest:!0, poster:!0, src:!0}, module$contents$goog$html$SafeHtml_NOT_ALLOWED_TAG_NAMES = module$contents$goog$object_createSet(goog.dom.TagName.APPLET, goog.dom.TagName.BASE, goog.dom.TagName.EMBED, goog.dom.TagName.IFRAME, goog.dom.TagName.LINK, goog.dom.TagName.MATH, goog.dom.TagName.META, goog.dom.TagName.OBJECT,
|
|
15277
|
-
goog.dom.TagName.SCRIPT, goog.dom.TagName.STYLE, goog.dom.TagName.SVG, goog.dom.TagName.TEMPLATE);
|
|
15278
|
-
function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, value) {
|
|
15279
|
-
if (value instanceof goog.string.Const) {
|
|
15280
|
-
value = goog.string.Const.unwrap(value);
|
|
15281
|
-
} else if (name.toLowerCase() == "style") {
|
|
15282
|
-
if (module$exports$safevalues$internals$html_impl.SafeHtml.SUPPORT_STYLE_ATTRIBUTE) {
|
|
15283
|
-
value = module$contents$goog$html$SafeHtml_getStyleValue(value);
|
|
15284
|
-
} else {
|
|
15285
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "style" not supported.' : "");
|
|
15286
|
-
}
|
|
15287
|
-
} else {
|
|
15288
|
-
if (/^on/i.test(name)) {
|
|
15289
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" requires goog.string.Const value, "' + value + '" given.' : "");
|
|
15290
|
-
}
|
|
15291
|
-
if (name.toLowerCase() in module$contents$goog$html$SafeHtml_URL_ATTRIBUTES) {
|
|
15292
|
-
if (value instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl) {
|
|
15293
|
-
value = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(value).toString();
|
|
15294
|
-
} else if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
|
|
15295
|
-
value = module$contents$safevalues$internals$url_impl_unwrapUrl(value);
|
|
15296
|
-
} else if (typeof value === "string") {
|
|
15297
|
-
value = module$contents$safevalues$builders$url_builders_sanitizeUrl(value).toString();
|
|
15298
|
-
} else {
|
|
15299
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'Attribute "' + name + '" on tag "' + tagName + '" requires safevalues.SafeUrl, goog.string.Const, or string, value "' + value + '" given.' : "");
|
|
15300
|
-
}
|
|
15301
|
-
}
|
|
15302
|
-
}
|
|
15303
|
-
goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$exports$safevalues$internals$html_impl.SafeHtml || typeof value === "string" || typeof value ===
|
|
15304
|
-
"number", "String or number value expected, got " + typeof value + " with value: " + value);
|
|
15305
|
-
return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
|
|
15306
|
-
}
|
|
15307
|
-
function module$contents$goog$html$SafeHtml_getStyleValue(value) {
|
|
15308
|
-
if (typeof value === "string") {
|
|
15309
|
-
return value;
|
|
15310
|
-
}
|
|
15311
|
-
if (!goog.isObject(value)) {
|
|
15312
|
-
throw Error(module$exports$safevalues$internals$html_impl.SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
|
|
15313
|
-
}
|
|
15314
|
-
return value instanceof module$exports$safevalues$internals$style_impl.SafeStyle ? module$contents$safevalues$internals$style_impl_unwrapStyle(value) : Object.entries(value).map(function($jscomp$destructuring$var32) {
|
|
15315
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$destructuring$var32);
|
|
15316
|
-
var k = $jscomp$destructuring$var33.next().value;
|
|
15317
|
-
var v = $jscomp$destructuring$var33.next().value;
|
|
15318
|
-
return k + ":" + v + ";";
|
|
15319
|
-
}).join("");
|
|
15320
|
-
}
|
|
15321
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.DOCTYPE_HTML = function() {
|
|
15322
|
-
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<!DOCTYPE html>");
|
|
15323
|
-
}();
|
|
15324
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.EMPTY = module$exports$safevalues$for_closure$index.EMPTY_HTML;
|
|
15325
|
-
module$exports$safevalues$internals$html_impl.SafeHtml.BR = function() {
|
|
15326
|
-
return (0,module$exports$safevalues$for_closure$index.createHtmlInternal)("<br>");
|
|
15327
|
-
}();
|
|
15328
|
-
goog.html.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
15329
15004
|
var module$exports$safevalues$for_friends$index = {}, module$contents$safevalues$for_friends$index_module = module$contents$safevalues$for_friends$index_module || {id:"third_party/javascript/safevalues/for_friends/index.closure.js"};
|
|
15330
15005
|
module$exports$safevalues$for_friends$index.IS_NOT_JAVASCRIPT_URL_PATTERN = module$exports$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN;
|
|
15331
15006
|
module$exports$safevalues$for_friends$index.unwrapUrlOrSanitize = module$contents$safevalues$builders$url_builders_unwrapUrlOrSanitize;
|
|
@@ -15531,7 +15206,7 @@ function module$contents$safevalues$builders$html_builders_stringifyAttributes(t
|
|
|
15531
15206
|
}
|
|
15532
15207
|
module$exports$safevalues$builders$html_builders.stringifyAttributes = module$contents$safevalues$builders$html_builders_stringifyAttributes;
|
|
15533
15208
|
function module$contents$safevalues$builders$html_builders_getAttrNameAndValue(tagName, name, value) {
|
|
15534
|
-
if (/^on
|
|
15209
|
+
if (/^on./i.test(name)) {
|
|
15535
15210
|
throw Error(goog.DEBUG ? 'Attribute "' + name + " is forbidden. Inline event handlers can lead to XSS. Please use the 'addEventListener' API instead." : "");
|
|
15536
15211
|
}
|
|
15537
15212
|
module$contents$safevalues$builders$html_builders_URL_ATTRIBUTES.indexOf(name.toLowerCase()) !== -1 && (value = module$contents$safevalues$internals$url_impl_isUrl(value) ? value.toString() : module$contents$safevalues$builders$url_builders_sanitizeJavaScriptUrl(String(value)) || "about:invalid#zClosurez");
|
|
@@ -15552,8 +15227,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15552
15227
|
this.replacements = new Map();
|
|
15553
15228
|
};
|
|
15554
15229
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15555
|
-
var $jscomp$this$
|
|
15556
|
-
return $jscomp$this$
|
|
15230
|
+
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) {
|
|
15231
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
15557
15232
|
});
|
|
15558
15233
|
if (openedTags.length !== 0) {
|
|
15559
15234
|
if (goog.DEBUG) {
|
|
@@ -15771,8 +15446,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
15771
15446
|
if (Array.isArray(token)) {
|
|
15772
15447
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
15773
15448
|
} else {
|
|
15774
|
-
var $jscomp$optchain$
|
|
15775
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
15449
|
+
var $jscomp$optchain$tmpm583190311$0 = void 0;
|
|
15450
|
+
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$tmpm583190311$0 = lastToken) == null ? void 0 : $jscomp$optchain$tmpm583190311$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE) {
|
|
15776
15451
|
tokens.push(token);
|
|
15777
15452
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
15778
15453
|
return tokens;
|
|
@@ -16018,9 +15693,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16018
15693
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16019
15694
|
};
|
|
16020
15695
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16021
|
-
var $jscomp$this$
|
|
15696
|
+
var $jscomp$this$m583190311$26 = this;
|
|
16022
15697
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16023
|
-
return $jscomp$this$
|
|
15698
|
+
return $jscomp$this$m583190311$26.isWhitespace(c);
|
|
16024
15699
|
});
|
|
16025
15700
|
};
|
|
16026
15701
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16127,8 +15802,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16127
15802
|
return null;
|
|
16128
15803
|
}
|
|
16129
15804
|
if (token.lowercaseName === "url") {
|
|
16130
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16131
|
-
if ((($jscomp$optchain$
|
|
15805
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1877845113$0 = void 0;
|
|
15806
|
+
if ((($jscomp$optchain$tmpm1877845113$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1877845113$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16132
15807
|
return null;
|
|
16133
15808
|
}
|
|
16134
15809
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16151,8 +15826,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16151
15826
|
if (!this.allowKeyframes) {
|
|
16152
15827
|
return null;
|
|
16153
15828
|
}
|
|
16154
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16155
|
-
var rule = $jscomp$key$
|
|
15829
|
+
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$m1877845113$1$rule = $jscomp$iter$31.next(); !$jscomp$key$m1877845113$1$rule.done; $jscomp$key$m1877845113$1$rule = $jscomp$iter$31.next()) {
|
|
15830
|
+
var rule = $jscomp$key$m1877845113$1$rule.value;
|
|
16156
15831
|
if (rule instanceof CSSKeyframeRule) {
|
|
16157
15832
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16158
15833
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16164,8 +15839,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16164
15839
|
if (!this.propertyAllowlist.has(name)) {
|
|
16165
15840
|
return !1;
|
|
16166
15841
|
}
|
|
16167
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16168
|
-
var discarder = $jscomp$key$
|
|
15842
|
+
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$m1877845113$2$discarder = $jscomp$iter$32.next(); !$jscomp$key$m1877845113$2$discarder.done; $jscomp$key$m1877845113$2$discarder = $jscomp$iter$32.next()) {
|
|
15843
|
+
var discarder = $jscomp$key$m1877845113$2$discarder.value;
|
|
16169
15844
|
if (discarder(name)) {
|
|
16170
15845
|
return !1;
|
|
16171
15846
|
}
|
|
@@ -16180,8 +15855,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16180
15855
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16181
15856
|
};
|
|
16182
15857
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16183
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16184
|
-
var name = $jscomp$key$
|
|
15858
|
+
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1877845113$3$name = $jscomp$iter$33.next(); !$jscomp$key$m1877845113$3$name.done; $jscomp$key$m1877845113$3$name = $jscomp$iter$33.next()) {
|
|
15859
|
+
var name = $jscomp$key$m1877845113$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16185
15860
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16186
15861
|
}
|
|
16187
15862
|
return sanitizedProperties;
|
|
@@ -16195,8 +15870,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16195
15870
|
return selector + " { " + sanitizedProperties + " }";
|
|
16196
15871
|
};
|
|
16197
15872
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16198
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16199
|
-
var rule = $jscomp$key$
|
|
15873
|
+
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$m1877845113$4$rule = $jscomp$iter$34.next(); !$jscomp$key$m1877845113$4$rule.done; $jscomp$key$m1877845113$4$rule = $jscomp$iter$34.next()) {
|
|
15874
|
+
var rule = $jscomp$key$m1877845113$4$rule.value;
|
|
16200
15875
|
if (rule instanceof CSSStyleRule) {
|
|
16201
15876
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16202
15877
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16357,8 +16032,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16357
16032
|
return fragment;
|
|
16358
16033
|
};
|
|
16359
16034
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16360
|
-
for (var $jscomp$this$
|
|
16361
|
-
return $jscomp$this$
|
|
16035
|
+
for (var $jscomp$this$m1803429925$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
16036
|
+
return $jscomp$this$m1803429925$13.nodeFilter(n);
|
|
16362
16037
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16363
16038
|
var sanitizedNode = void 0;
|
|
16364
16039
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16393,8 +16068,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16393
16068
|
return this.createTextNode(textNode.data);
|
|
16394
16069
|
};
|
|
16395
16070
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16396
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$
|
|
16397
|
-
var $jscomp$destructuring$
|
|
16071
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$36 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1803429925$34$ = $jscomp$iter$36.next(); !$jscomp$key$m1803429925$34$.done; $jscomp$key$m1803429925$34$ = $jscomp$iter$36.next()) {
|
|
16072
|
+
var $jscomp$destructuring$var31 = $jscomp$key$m1803429925$34$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
16398
16073
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16399
16074
|
switch(policy.policyAction) {
|
|
16400
16075
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16426,9 +16101,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16426
16101
|
break;
|
|
16427
16102
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16428
16103
|
if (this.resourceUrlPolicy) {
|
|
16429
|
-
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$
|
|
16104
|
+
for (var hints$jscomp$0 = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, srcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(value), sanitizedSrcset = {parts:[]}, $jscomp$iter$35 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1803429925$33$part = $jscomp$iter$35.next(); !$jscomp$key$m1803429925$33$part.done; $jscomp$key$m1803429925$33$part =
|
|
16430
16105
|
$jscomp$iter$35.next()) {
|
|
16431
|
-
var part = $jscomp$key$
|
|
16106
|
+
var part = $jscomp$key$m1803429925$33$part.value, url$jscomp$0 = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(part.url), sanitizedUrl$jscomp$0 = this.resourceUrlPolicy(url$jscomp$0, hints$jscomp$0);
|
|
16432
16107
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16433
16108
|
}
|
|
16434
16109
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16472,8 +16147,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16472
16147
|
if (!conditions) {
|
|
16473
16148
|
return !0;
|
|
16474
16149
|
}
|
|
16475
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16476
|
-
var $jscomp$destructuring$
|
|
16150
|
+
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1803429925$35$ = $jscomp$iter$37.next(); !$jscomp$key$m1803429925$35$.done; $jscomp$key$m1803429925$35$ = $jscomp$iter$37.next()) {
|
|
16151
|
+
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1803429925$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
16477
16152
|
if (value && !expectedValues.has(value)) {
|
|
16478
16153
|
return !1;
|
|
16479
16154
|
}
|
|
@@ -16488,8 +16163,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16488
16163
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16489
16164
|
};
|
|
16490
16165
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16491
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
16492
|
-
var $jscomp$destructuring$
|
|
16166
|
+
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1803429925$36$part = $jscomp$iter$38.next(); !$jscomp$key$m1803429925$36$part.done; $jscomp$key$m1803429925$36$part = $jscomp$iter$38.next()) {
|
|
16167
|
+
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1803429925$36$part.value.trim().split(/\s+/, 2)), url__tsickle_destructured_3 = $jscomp$destructuring$var34.next().value, descriptor__tsickle_destructured_4 = $jscomp$destructuring$var34.next().value;
|
|
16493
16168
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16494
16169
|
}
|
|
16495
16170
|
return {parts:parts};
|
|
@@ -16546,8 +16221,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16546
16221
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
16547
16222
|
};
|
|
16548
16223
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
16549
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
16550
|
-
var element = $jscomp$key$
|
|
16224
|
+
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$m1412690177$21$element = $jscomp$iter$39.next(); !$jscomp$key$m1412690177$21$element.done; $jscomp$key$m1412690177$21$element = $jscomp$iter$39.next()) {
|
|
16225
|
+
var element = $jscomp$key$m1412690177$21$element.value;
|
|
16551
16226
|
element = element.toUpperCase();
|
|
16552
16227
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
16553
16228
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -16565,8 +16240,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16565
16240
|
throw Error("Element: " + element + " is not a custom element");
|
|
16566
16241
|
}
|
|
16567
16242
|
if (allowedAttributes) {
|
|
16568
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
16569
|
-
elementPolicy.set($jscomp$key$
|
|
16243
|
+
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$m1412690177$22$attribute = $jscomp$iter$40.next(); !$jscomp$key$m1412690177$22$attribute.done; $jscomp$key$m1412690177$22$attribute = $jscomp$iter$40.next()) {
|
|
16244
|
+
elementPolicy.set($jscomp$key$m1412690177$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
16570
16245
|
}
|
|
16571
16246
|
allowedElementPolicies.set(element, elementPolicy);
|
|
16572
16247
|
} else {
|
|
@@ -16576,15 +16251,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16576
16251
|
return this;
|
|
16577
16252
|
};
|
|
16578
16253
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
16579
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
16580
|
-
var attribute = $jscomp$key$
|
|
16254
|
+
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$m1412690177$23$attribute = $jscomp$iter$41.next(); !$jscomp$key$m1412690177$23$attribute.done; $jscomp$key$m1412690177$23$attribute = $jscomp$iter$41.next()) {
|
|
16255
|
+
var attribute = $jscomp$key$m1412690177$23$attribute.value;
|
|
16581
16256
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
16582
16257
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
16583
16258
|
}
|
|
16584
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
16585
|
-
for (var $jscomp$destructuring$
|
|
16259
|
+
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$m1412690177$25$ = $jscomp$iter$43.next(); !$jscomp$key$m1412690177$25$.done; $jscomp$key$m1412690177$25$ = $jscomp$iter$43.next()) {
|
|
16260
|
+
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$m1412690177$25$.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$42 = (0,$jscomp.makeIterator)(originalElementPolicy__tsickle_destructured_2.entries()), $jscomp$key$m1412690177$24$ = $jscomp$iter$42.next(); !$jscomp$key$m1412690177$24$.done; $jscomp$key$m1412690177$24$ =
|
|
16586
16261
|
$jscomp$iter$42.next()) {
|
|
16587
|
-
var $jscomp$destructuring$
|
|
16262
|
+
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$m1412690177$24$.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;
|
|
16588
16263
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
16589
16264
|
}
|
|
16590
16265
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -16593,8 +16268,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16593
16268
|
return this;
|
|
16594
16269
|
};
|
|
16595
16270
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
16596
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
16597
|
-
var attribute = $jscomp$key$
|
|
16271
|
+
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$m1412690177$26$attribute = $jscomp$iter$44.next(); !$jscomp$key$m1412690177$26$attribute.done; $jscomp$key$m1412690177$26$attribute = $jscomp$iter$44.next()) {
|
|
16272
|
+
var attribute = $jscomp$key$m1412690177$26$attribute.value;
|
|
16598
16273
|
if (attribute.indexOf("data-") !== 0) {
|
|
16599
16274
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
16600
16275
|
}
|
|
@@ -16656,7 +16331,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16656
16331
|
return this;
|
|
16657
16332
|
};
|
|
16658
16333
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
16659
|
-
var $jscomp$this$
|
|
16334
|
+
var $jscomp$this$m1412690177$17 = this;
|
|
16660
16335
|
this.extendSanitizerTableForCss();
|
|
16661
16336
|
var propertyDiscarders = [];
|
|
16662
16337
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -16666,9 +16341,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16666
16341
|
return /^transition(-|$)/.test(property);
|
|
16667
16342
|
});
|
|
16668
16343
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
16669
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
16344
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$m1412690177$17.resourceUrlPolicy, $jscomp$this$m1412690177$17.animationsAllowed, propertyDiscarders);
|
|
16670
16345
|
}, function(cssText) {
|
|
16671
|
-
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$
|
|
16346
|
+
return module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, $jscomp$this$m1412690177$17.resourceUrlPolicy, propertyDiscarders);
|
|
16672
16347
|
}, this.resourceUrlPolicy);
|
|
16673
16348
|
};
|
|
16674
16349
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -16918,12 +16593,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
16918
16593
|
}
|
|
16919
16594
|
try {
|
|
16920
16595
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
16921
|
-
} catch ($jscomp$unused$catch$
|
|
16596
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
16922
16597
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
16923
16598
|
}
|
|
16924
16599
|
try {
|
|
16925
16600
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
16926
|
-
} catch ($jscomp$unused$catch$
|
|
16601
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
16927
16602
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
16928
16603
|
}
|
|
16929
16604
|
return !1;
|
|
@@ -17018,10 +16693,84 @@ module$exports$safevalues$index.SafeUrl = module$exports$safevalues$internals$ur
|
|
|
17018
16693
|
module$exports$safevalues$index.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
17019
16694
|
module$exports$safevalues$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
17020
16695
|
module$exports$safevalues$index.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
16696
|
+
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
16697
|
+
safevalues.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
16698
|
+
safevalues.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
16699
|
+
safevalues.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
16700
|
+
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
16701
|
+
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
16702
|
+
safevalues.doctypeHtml = module$exports$safevalues$index.doctypeHtml;
|
|
16703
|
+
safevalues.htmlEscape = module$exports$safevalues$index.htmlEscape;
|
|
16704
|
+
safevalues.joinHtmls = module$exports$safevalues$index.joinHtmls;
|
|
16705
|
+
safevalues.nodeToHtml = module$exports$safevalues$index.nodeToHtml;
|
|
16706
|
+
safevalues.scriptToHtml = module$exports$safevalues$index.scriptToHtml;
|
|
16707
|
+
safevalues.scriptUrlToHtml = module$exports$safevalues$index.scriptUrlToHtml;
|
|
16708
|
+
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
16709
|
+
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
16710
|
+
safevalues.sanitizeHtmlWithCss = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;
|
|
16711
|
+
safevalues.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
16712
|
+
safevalues.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
16713
|
+
safevalues.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
16714
|
+
safevalues.CssSanitizer = module$exports$safevalues$index.CssSanitizer;
|
|
16715
|
+
safevalues.HtmlSanitizer = module$exports$safevalues$index.HtmlSanitizer;
|
|
16716
|
+
safevalues.CssSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;
|
|
16717
|
+
safevalues.HtmlSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder;
|
|
16718
|
+
safevalues.ResourceUrlPolicyHintsType = module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;
|
|
16719
|
+
safevalues.ResourceUrlPolicy = module$exports$safevalues$index.ResourceUrlPolicy;
|
|
16720
|
+
safevalues.ResourceUrlPolicyHints = module$exports$safevalues$index.ResourceUrlPolicyHints;
|
|
16721
|
+
safevalues.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
16722
|
+
safevalues.appendPathSegment = module$contents$safevalues$builders$resource_url_builders_appendPathSegment;
|
|
16723
|
+
safevalues.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
16724
|
+
safevalues.replaceFragment = module$contents$safevalues$builders$resource_url_builders_replaceFragment;
|
|
16725
|
+
safevalues.replaceParams = module$contents$safevalues$builders$resource_url_builders_replaceParams;
|
|
16726
|
+
safevalues.toAbsoluteResourceUrl = module$contents$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;
|
|
16727
|
+
safevalues.trustedResourceUrl = module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl;
|
|
16728
|
+
safevalues.concatScripts = module$contents$safevalues$builders$script_builders_concatScripts;
|
|
16729
|
+
safevalues.safeScript = module$contents$safevalues$builders$script_builders_safeScript;
|
|
16730
|
+
safevalues.safeScriptWithArgs = module$contents$safevalues$builders$script_builders_safeScriptWithArgs;
|
|
16731
|
+
safevalues.valueAsScript = module$contents$safevalues$builders$script_builders_valueAsScript;
|
|
16732
|
+
safevalues.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
|
|
16733
|
+
safevalues.safeStyle = module$contents$safevalues$builders$style_builders_safeStyle;
|
|
16734
|
+
safevalues.styleForMigration = module$contents$safevalues$builders$style_builders_styleForMigration;
|
|
16735
|
+
safevalues.concatStyleSheets = module$contents$safevalues$builders$style_sheet_builders_concatStyleSheets;
|
|
16736
|
+
safevalues.safeStyleRule = module$contents$safevalues$builders$style_sheet_builders_safeStyleRule;
|
|
16737
|
+
safevalues.safeStyleSheet = module$contents$safevalues$builders$style_sheet_builders_safeStyleSheet;
|
|
16738
|
+
safevalues.SanitizableUrlScheme = module$exports$safevalues$builders$url_builders.SanitizableUrlScheme;
|
|
16739
|
+
safevalues.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
|
|
16740
|
+
safevalues.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
|
|
16741
|
+
safevalues.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
|
|
16742
|
+
safevalues.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
|
|
16743
|
+
safevalues.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
16744
|
+
safevalues.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
|
|
16745
|
+
safevalues.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
16746
|
+
safevalues.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
|
|
16747
|
+
safevalues.Scheme = module$exports$safevalues$index.Scheme;
|
|
16748
|
+
safevalues.SafeAttributePrefix = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
16749
|
+
safevalues.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
16750
|
+
safevalues.EMPTY_HTML = module$exports$safevalues$index.EMPTY_HTML;
|
|
16751
|
+
safevalues.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
16752
|
+
safevalues.isHtml = module$exports$safevalues$index.isHtml;
|
|
16753
|
+
safevalues.unwrapHtml = module$exports$safevalues$index.unwrapHtml;
|
|
16754
|
+
safevalues.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
|
|
16755
|
+
safevalues.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
16756
|
+
safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
16757
|
+
safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
16758
|
+
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
16759
|
+
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
16760
|
+
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
16761
|
+
safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
16762
|
+
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
16763
|
+
safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
16764
|
+
safevalues.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
16765
|
+
safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
16766
|
+
safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
16767
|
+
safevalues.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
|
|
16768
|
+
safevalues.INNOCUOUS_URL = module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
16769
|
+
safevalues.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
16770
|
+
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
16771
|
+
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
16772
|
+
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
17021
16773
|
goog.dom.safe = {};
|
|
17022
|
-
goog.dom.safe.insertAdjacentHtml = function(node, position, html) {
|
|
17023
|
-
node.insertAdjacentHTML(position, module$exports$safevalues$index.unwrapHtml(html));
|
|
17024
|
-
};
|
|
17025
16774
|
goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_ = {MATH:!0, SCRIPT:!0, STYLE:!0, SVG:!0};
|
|
17026
16775
|
goog.dom.safe.setInnerHtml = function(elem, html) {
|
|
17027
16776
|
if (module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS && elem.tagName && goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[elem.tagName.toUpperCase()]) {
|
|
@@ -17032,9 +16781,6 @@ goog.dom.safe.setInnerHtml = function(elem, html) {
|
|
|
17032
16781
|
goog.dom.safe.setInnerHtmlFromConstant = function(element, constHtml) {
|
|
17033
16782
|
goog.dom.safe.setInnerHtml(element, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(goog.string.Const.unwrap(constHtml), {justification:"Constant HTML to be immediatelly used."}));
|
|
17034
16783
|
};
|
|
17035
|
-
goog.dom.safe.setOuterHtml = function(elem, html) {
|
|
17036
|
-
elem.outerHTML = module$exports$safevalues$index.unwrapHtml(html);
|
|
17037
|
-
};
|
|
17038
16784
|
goog.dom.safe.setFormElementAction = function(form, url) {
|
|
17039
16785
|
module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17040
16786
|
};
|
|
@@ -17061,15 +16807,6 @@ goog.dom.safe.setLinkHrefAndRel = function(link, url, rel) {
|
|
|
17061
16807
|
link.href = url instanceof module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl ? module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url).toString() : goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17062
16808
|
}
|
|
17063
16809
|
};
|
|
17064
|
-
goog.dom.safe.setScriptSrc = function(script, url) {
|
|
17065
|
-
module$contents$goog$asserts$dom_assertIsHtmlScriptElement(script);
|
|
17066
|
-
goog.dom.safe.setNonceForScriptElement_(script);
|
|
17067
|
-
script.src = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(url);
|
|
17068
|
-
};
|
|
17069
|
-
goog.dom.safe.setNonceForScriptElement_ = function(script) {
|
|
17070
|
-
var nonce = goog.dom.safe.getScriptNonce(script.ownerDocument && script.ownerDocument.defaultView);
|
|
17071
|
-
nonce && script.setAttribute("nonce", nonce);
|
|
17072
|
-
};
|
|
17073
16810
|
goog.dom.safe.setLocationHref = function(loc, url) {
|
|
17074
16811
|
goog.dom.asserts.assertIsLocation(loc);
|
|
17075
16812
|
loc.href = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
@@ -17085,9 +16822,6 @@ goog.dom.safe.openInWindow = function(url, opt_openerWin, opt_name, opt_specs) {
|
|
|
17085
16822
|
var sanitizedUrl = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url), win = opt_openerWin || goog.global, name = opt_name instanceof goog.string.Const ? goog.string.Const.unwrap(opt_name) : opt_name || "";
|
|
17086
16823
|
return opt_specs !== void 0 ? win.open(sanitizedUrl, name, opt_specs) : win.open(sanitizedUrl, name);
|
|
17087
16824
|
};
|
|
17088
|
-
goog.dom.safe.parseFromStringHtml = function(parser, html) {
|
|
17089
|
-
return goog.dom.safe.parseFromString(parser, html, "text/html");
|
|
17090
|
-
};
|
|
17091
16825
|
goog.dom.safe.parseFromString = function(parser, content, type) {
|
|
17092
16826
|
return parser.parseFromString(module$exports$safevalues$index.unwrapHtml(content), type);
|
|
17093
16827
|
};
|
|
@@ -18984,83 +18718,6 @@ goog.async.Deferred.assertNoErrors = function() {
|
|
|
18984
18718
|
error.throwError();
|
|
18985
18719
|
}
|
|
18986
18720
|
};
|
|
18987
|
-
safevalues.safeAttrPrefix = module$contents$safevalues$builders$attribute_builders_safeAttrPrefix;
|
|
18988
|
-
safevalues.htmlFragment = module$contents$safevalues$builders$document_fragment_builders_htmlFragment;
|
|
18989
|
-
safevalues.htmlToNode = module$contents$safevalues$builders$document_fragment_builders_htmlToNode;
|
|
18990
|
-
safevalues.svgFragment = module$contents$safevalues$builders$document_fragment_builders_svgFragment;
|
|
18991
|
-
safevalues.concatHtmls = module$exports$safevalues$index.concatHtmls;
|
|
18992
|
-
safevalues.createHtml = module$exports$safevalues$index.createHtml;
|
|
18993
|
-
safevalues.doctypeHtml = module$exports$safevalues$index.doctypeHtml;
|
|
18994
|
-
safevalues.htmlEscape = module$exports$safevalues$index.htmlEscape;
|
|
18995
|
-
safevalues.joinHtmls = module$exports$safevalues$index.joinHtmls;
|
|
18996
|
-
safevalues.nodeToHtml = module$exports$safevalues$index.nodeToHtml;
|
|
18997
|
-
safevalues.scriptToHtml = module$exports$safevalues$index.scriptToHtml;
|
|
18998
|
-
safevalues.scriptUrlToHtml = module$exports$safevalues$index.scriptUrlToHtml;
|
|
18999
|
-
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
19000
|
-
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
19001
|
-
safevalues.sanitizeHtmlWithCss = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;
|
|
19002
|
-
safevalues.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
19003
|
-
safevalues.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
19004
|
-
safevalues.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
19005
|
-
safevalues.CssSanitizer = module$exports$safevalues$index.CssSanitizer;
|
|
19006
|
-
safevalues.HtmlSanitizer = module$exports$safevalues$index.HtmlSanitizer;
|
|
19007
|
-
safevalues.CssSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;
|
|
19008
|
-
safevalues.HtmlSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder;
|
|
19009
|
-
safevalues.ResourceUrlPolicyHintsType = module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;
|
|
19010
|
-
safevalues.ResourceUrlPolicy = module$exports$safevalues$index.ResourceUrlPolicy;
|
|
19011
|
-
safevalues.ResourceUrlPolicyHints = module$exports$safevalues$index.ResourceUrlPolicyHints;
|
|
19012
|
-
safevalues.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
19013
|
-
safevalues.appendPathSegment = module$contents$safevalues$builders$resource_url_builders_appendPathSegment;
|
|
19014
|
-
safevalues.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
19015
|
-
safevalues.replaceFragment = module$contents$safevalues$builders$resource_url_builders_replaceFragment;
|
|
19016
|
-
safevalues.replaceParams = module$contents$safevalues$builders$resource_url_builders_replaceParams;
|
|
19017
|
-
safevalues.toAbsoluteResourceUrl = module$contents$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;
|
|
19018
|
-
safevalues.trustedResourceUrl = module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl;
|
|
19019
|
-
safevalues.concatScripts = module$contents$safevalues$builders$script_builders_concatScripts;
|
|
19020
|
-
safevalues.safeScript = module$contents$safevalues$builders$script_builders_safeScript;
|
|
19021
|
-
safevalues.safeScriptWithArgs = module$contents$safevalues$builders$script_builders_safeScriptWithArgs;
|
|
19022
|
-
safevalues.valueAsScript = module$contents$safevalues$builders$script_builders_valueAsScript;
|
|
19023
|
-
safevalues.concatStyles = module$contents$safevalues$builders$style_builders_concatStyles;
|
|
19024
|
-
safevalues.safeStyle = module$contents$safevalues$builders$style_builders_safeStyle;
|
|
19025
|
-
safevalues.styleForMigration = module$contents$safevalues$builders$style_builders_styleForMigration;
|
|
19026
|
-
safevalues.concatStyleSheets = module$contents$safevalues$builders$style_sheet_builders_concatStyleSheets;
|
|
19027
|
-
safevalues.safeStyleRule = module$contents$safevalues$builders$style_sheet_builders_safeStyleRule;
|
|
19028
|
-
safevalues.safeStyleSheet = module$contents$safevalues$builders$style_sheet_builders_safeStyleSheet;
|
|
19029
|
-
safevalues.SanitizableUrlScheme = module$exports$safevalues$builders$url_builders.SanitizableUrlScheme;
|
|
19030
|
-
safevalues.addJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;
|
|
19031
|
-
safevalues.fromMediaSource = module$contents$safevalues$builders$url_builders_fromMediaSource;
|
|
19032
|
-
safevalues.fromTrustedResourceUrl = module$contents$safevalues$builders$url_builders_fromTrustedResourceUrl;
|
|
19033
|
-
safevalues.objectUrlFromSafeSource = module$contents$safevalues$builders$url_builders_objectUrlFromSafeSource;
|
|
19034
|
-
safevalues.removeJavaScriptUrlSanitizationCallback = module$contents$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;
|
|
19035
|
-
safevalues.safeUrl = module$contents$safevalues$builders$url_builders_safeUrl;
|
|
19036
|
-
safevalues.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
19037
|
-
safevalues.trySanitizeUrl = module$contents$safevalues$builders$url_builders_trySanitizeUrl;
|
|
19038
|
-
safevalues.Scheme = module$exports$safevalues$index.Scheme;
|
|
19039
|
-
safevalues.SafeAttributePrefix = module$exports$safevalues$internals$attribute_impl.SafeAttributePrefix;
|
|
19040
|
-
safevalues.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
19041
|
-
safevalues.EMPTY_HTML = module$exports$safevalues$index.EMPTY_HTML;
|
|
19042
|
-
safevalues.SafeHtml = module$exports$safevalues$internals$html_impl.SafeHtml;
|
|
19043
|
-
safevalues.isHtml = module$exports$safevalues$index.isHtml;
|
|
19044
|
-
safevalues.unwrapHtml = module$exports$safevalues$index.unwrapHtml;
|
|
19045
|
-
safevalues.TrustedResourceUrl = module$exports$safevalues$internals$resource_url_impl.TrustedResourceUrl;
|
|
19046
|
-
safevalues.isResourceUrl = module$contents$safevalues$internals$resource_url_impl_isResourceUrl;
|
|
19047
|
-
safevalues.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
19048
|
-
safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_SCRIPT;
|
|
19049
|
-
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
19050
|
-
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
19051
|
-
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
19052
|
-
safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
19053
|
-
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
19054
|
-
safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
19055
|
-
safevalues.SafeStyleSheet = module$exports$safevalues$internals$style_sheet_impl.SafeStyleSheet;
|
|
19056
|
-
safevalues.isStyleSheet = module$contents$safevalues$internals$style_sheet_impl_isStyleSheet;
|
|
19057
|
-
safevalues.unwrapStyleSheet = module$contents$safevalues$internals$style_sheet_impl_unwrapStyleSheet;
|
|
19058
|
-
safevalues.ABOUT_BLANK = module$exports$safevalues$internals$url_impl.ABOUT_BLANK;
|
|
19059
|
-
safevalues.INNOCUOUS_URL = module$exports$safevalues$internals$url_impl.INNOCUOUS_URL;
|
|
19060
|
-
safevalues.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
19061
|
-
safevalues.isUrl = module$contents$safevalues$internals$url_impl_isUrl;
|
|
19062
|
-
safevalues.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
19063
|
-
safevalues.reportOnlyHtmlPassthrough = module$contents$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;
|
|
19064
18721
|
goog.net = {};
|
|
19065
18722
|
goog.net.jsloader = {};
|
|
19066
18723
|
goog.net.jsloader.Options = {};
|
|
@@ -19529,7 +19186,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
19529
19186
|
}), contentIsFormData = goog.global.FormData && content instanceof goog.global.FormData;
|
|
19530
19187
|
!module$contents$goog$array_contains(goog.net.XhrIo.METHODS_WITH_FORM_DATA, method) || contentTypeKey || contentIsFormData || headers.set(goog.net.XhrIo.CONTENT_TYPE_HEADER, goog.net.XhrIo.FORM_CONTENT_TYPE);
|
|
19531
19188
|
for (var $jscomp$iter$46 = (0,$jscomp.makeIterator)(headers), $jscomp$key$m71669834$55$ = $jscomp$iter$46.next(); !$jscomp$key$m71669834$55$.done; $jscomp$key$m71669834$55$ = $jscomp$iter$46.next()) {
|
|
19532
|
-
var $jscomp$destructuring$
|
|
19189
|
+
var $jscomp$destructuring$var41 = (0,$jscomp.makeIterator)($jscomp$key$m71669834$55$.value), key$jscomp$1 = $jscomp$destructuring$var41.next().value, value = $jscomp$destructuring$var41.next().value;
|
|
19533
19190
|
this.xhr_.setRequestHeader(key$jscomp$1, value);
|
|
19534
19191
|
}
|
|
19535
19192
|
this.responseType_ && (this.xhr_.responseType = this.responseType_);
|
|
@@ -19771,7 +19428,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19771
19428
|
ee.apiclient = {};
|
|
19772
19429
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19773
19430
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19774
|
-
ee.apiclient.API_CLIENT_VERSION = "1.1.
|
|
19431
|
+
ee.apiclient.API_CLIENT_VERSION = "1.1.1";
|
|
19775
19432
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19776
19433
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19777
19434
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19903,21 +19560,21 @@ module$contents$ee$apiclient_BatchCall.prototype.withDetectPartialError = functi
|
|
|
19903
19560
|
return this;
|
|
19904
19561
|
};
|
|
19905
19562
|
module$contents$ee$apiclient_BatchCall.prototype.send = function(parts, getResponse) {
|
|
19906
|
-
var $jscomp$this$m1153655765$27 = this, batchUrl = module$contents$ee$apiclient_apiclient.getSafeApiUrl() + "/batch", body = parts.map(function($jscomp$destructuring$
|
|
19907
|
-
var $jscomp$destructuring$
|
|
19908
|
-
var id = $jscomp$destructuring$
|
|
19909
|
-
var $jscomp$destructuring$
|
|
19910
|
-
var partBody = $jscomp$destructuring$
|
|
19911
|
-
$jscomp$destructuring$
|
|
19563
|
+
var $jscomp$this$m1153655765$27 = this, batchUrl = module$contents$ee$apiclient_apiclient.getSafeApiUrl() + "/batch", body = parts.map(function($jscomp$destructuring$var42) {
|
|
19564
|
+
var $jscomp$destructuring$var43 = (0,$jscomp.makeIterator)($jscomp$destructuring$var42);
|
|
19565
|
+
var id = $jscomp$destructuring$var43.next().value;
|
|
19566
|
+
var $jscomp$destructuring$var44 = (0,$jscomp.makeIterator)($jscomp$destructuring$var43.next().value);
|
|
19567
|
+
var partBody = $jscomp$destructuring$var44.next().value;
|
|
19568
|
+
$jscomp$destructuring$var44.next();
|
|
19912
19569
|
return "--batch_EARTHENGINE_batch\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\nMIME-Version: 1.0\r\nContent-ID: <" + id + ">\r\n\r\n" + partBody + "\r\n";
|
|
19913
19570
|
}).join("") + "--batch_EARTHENGINE_batch--\r\n", deserializeResponses = function(response) {
|
|
19914
19571
|
var result = {};
|
|
19915
|
-
parts.forEach(function($jscomp$destructuring$
|
|
19916
|
-
var $jscomp$destructuring$
|
|
19917
|
-
var id = $jscomp$destructuring$
|
|
19918
|
-
var $jscomp$destructuring$
|
|
19919
|
-
$jscomp$destructuring$
|
|
19920
|
-
var ctor = $jscomp$destructuring$
|
|
19572
|
+
parts.forEach(function($jscomp$destructuring$var45) {
|
|
19573
|
+
var $jscomp$destructuring$var46 = (0,$jscomp.makeIterator)($jscomp$destructuring$var45);
|
|
19574
|
+
var id = $jscomp$destructuring$var46.next().value;
|
|
19575
|
+
var $jscomp$destructuring$var47 = (0,$jscomp.makeIterator)($jscomp$destructuring$var46.next().value);
|
|
19576
|
+
$jscomp$destructuring$var47.next();
|
|
19577
|
+
var ctor = $jscomp$destructuring$var47.next().value;
|
|
19921
19578
|
response[id] != null && (result[id] = module$contents$eeapiclient$domain_object_deserialize(ctor, response[id]));
|
|
19922
19579
|
});
|
|
19923
19580
|
return getResponse ? getResponse(result) : result;
|
|
@@ -20069,8 +19726,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
20069
19726
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
20070
19727
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
20071
19728
|
method = method || "POST";
|
|
20072
|
-
var headers = {"Content-Type":contentType}, version = "1.1.
|
|
20073
|
-
version === "1.1.
|
|
19729
|
+
var headers = {"Content-Type":contentType}, version = "1.1.1";
|
|
19730
|
+
version === "1.1.1" && (version = "latest");
|
|
20074
19731
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
20075
19732
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
20076
19733
|
if (authToken != null) {
|
|
@@ -20204,7 +19861,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
|
|
|
20204
19861
|
};
|
|
20205
19862
|
module$contents$ee$apiclient_apiclient.makeRequest_ = function(params) {
|
|
20206
19863
|
for (var request = new goog.Uri.QueryData(), $jscomp$iter$48 = (0,$jscomp.makeIterator)(Object.entries(params)), $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next(); !$jscomp$key$m1153655765$101$.done; $jscomp$key$m1153655765$101$ = $jscomp$iter$48.next()) {
|
|
20207
|
-
var $jscomp$destructuring$
|
|
19864
|
+
var $jscomp$destructuring$var49 = (0,$jscomp.makeIterator)($jscomp$key$m1153655765$101$.value), name = $jscomp$destructuring$var49.next().value, item = $jscomp$destructuring$var49.next().value;
|
|
20208
19865
|
request.set(name, item);
|
|
20209
19866
|
}
|
|
20210
19867
|
return request;
|
|
@@ -20683,10 +20340,10 @@ ee.rpc_convert.legacyPropertiesToAssetUpdate = function(legacyProperties) {
|
|
|
20683
20340
|
typeof value !== "string" && value !== null || properties.title != null || (properties.title = asNull(value) || value);
|
|
20684
20341
|
extractValue("system:description");
|
|
20685
20342
|
typeof value !== "string" && value !== null || properties.description != null || (properties.description = asNull(value) || value);
|
|
20686
|
-
Object.entries(properties).forEach(function($jscomp$destructuring$
|
|
20687
|
-
var $jscomp$destructuring$
|
|
20688
|
-
var key = $jscomp$destructuring$
|
|
20689
|
-
var value = $jscomp$destructuring$
|
|
20343
|
+
Object.entries(properties).forEach(function($jscomp$destructuring$var50) {
|
|
20344
|
+
var $jscomp$destructuring$var51 = (0,$jscomp.makeIterator)($jscomp$destructuring$var50);
|
|
20345
|
+
var key = $jscomp$destructuring$var51.next().value;
|
|
20346
|
+
var value = $jscomp$destructuring$var51.next().value;
|
|
20690
20347
|
properties[key] = asNull(value) || value;
|
|
20691
20348
|
});
|
|
20692
20349
|
asset.properties = properties;
|
|
@@ -21272,7 +20929,7 @@ ee.Serializer.encodeCloudApiPretty = function(obj) {
|
|
|
21272
20929
|
return object;
|
|
21273
20930
|
}
|
|
21274
20931
|
for (var ret = Array.isArray(object) ? [] : {}, isNode = object instanceof Object.getPrototypeOf(module$exports$eeapiclient$ee_api_client.ValueNode), $jscomp$iter$52 = (0,$jscomp.makeIterator)(Object.entries(isNode ? object.Serializable$values : object)), $jscomp$key$m759255156$28$ = $jscomp$iter$52.next(); !$jscomp$key$m759255156$28$.done; $jscomp$key$m759255156$28$ = $jscomp$iter$52.next()) {
|
|
21275
|
-
var $jscomp$destructuring$
|
|
20932
|
+
var $jscomp$destructuring$var53 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$28$.value), key = $jscomp$destructuring$var53.next().value, val = $jscomp$destructuring$var53.next().value;
|
|
21276
20933
|
isNode ? val !== null && (ret[key] = key === "functionDefinitionValue" && val.body != null ? {argumentNames:val.argumentNames, body:walkObject(values[val.body])} : key === "functionInvocationValue" && val.functionReference != null ? {arguments:module$contents$goog$object_map(val.arguments, walkObject), functionReference:walkObject(values[val.functionReference])} : key === "constantValue" ? val === module$exports$eeapiclient$domain_object.NULL_VALUE ?
|
|
21277
20934
|
null : val : walkObject(val)) : ret[key] = walkObject(val);
|
|
21278
20935
|
}
|
|
@@ -21396,7 +21053,7 @@ ExpressionOptimizer.prototype.optimizeValue = function(value, depth) {
|
|
|
21396
21053
|
}
|
|
21397
21054
|
if (value.dictionaryValue != null) {
|
|
21398
21055
|
for (var values = {}, constantValues = {}, $jscomp$iter$53 = (0,$jscomp.makeIterator)(Object.entries(value.dictionaryValue.values || {})), $jscomp$key$m759255156$29$ = $jscomp$iter$53.next(); !$jscomp$key$m759255156$29$.done; $jscomp$key$m759255156$29$ = $jscomp$iter$53.next()) {
|
|
21399
|
-
var $jscomp$destructuring$
|
|
21056
|
+
var $jscomp$destructuring$var55 = (0,$jscomp.makeIterator)($jscomp$key$m759255156$29$.value), k = $jscomp$destructuring$var55.next().value, v = $jscomp$destructuring$var55.next().value;
|
|
21400
21057
|
values[k] = this.optimizeValue(v, depth + 3);
|
|
21401
21058
|
constantValues !== null && isConst(values[k]) ? constantValues[k] = serializeConst(values[k].constantValue) : constantValues = null;
|
|
21402
21059
|
}
|
|
@@ -21683,9 +21340,9 @@ ee.rpc_convert_batch.buildRankByOneThingRule_ = function(ruleString) {
|
|
|
21683
21340
|
if (matches == null) {
|
|
21684
21341
|
throw Error("Ranking rule format is invalid. Each rule should be defined by a rule type and a direction (ASC or DESC), separated by a space. Valid rule types are: .geometryType, .minZoomLevel, or a feature property name.");
|
|
21685
21342
|
}
|
|
21686
|
-
var $jscomp$destructuring$
|
|
21687
|
-
$jscomp$destructuring$
|
|
21688
|
-
var ruleType = $jscomp$destructuring$
|
|
21343
|
+
var $jscomp$destructuring$var56 = (0,$jscomp.makeIterator)(matches);
|
|
21344
|
+
$jscomp$destructuring$var56.next();
|
|
21345
|
+
var ruleType = $jscomp$destructuring$var56.next().value, direction = $jscomp$destructuring$var56.next().value;
|
|
21689
21346
|
switch(direction.toUpperCase()) {
|
|
21690
21347
|
case "ASC":
|
|
21691
21348
|
rankByOneThingRule.direction = "ASCENDING";
|
|
@@ -21946,8 +21603,8 @@ ee.data.getDownloadId = function(params, opt_callback) {
|
|
|
21946
21603
|
}) && (params.bands = params.bands.map(function(band) {
|
|
21947
21604
|
return {id:band};
|
|
21948
21605
|
}));
|
|
21949
|
-
if (params.bands && params.bands.some(function($jscomp$destructuring$
|
|
21950
|
-
return $jscomp$destructuring$
|
|
21606
|
+
if (params.bands && params.bands.some(function($jscomp$destructuring$var57) {
|
|
21607
|
+
return $jscomp$destructuring$var57.id == null;
|
|
21951
21608
|
})) {
|
|
21952
21609
|
throw Error("Each band dictionary must have an id.");
|
|
21953
21610
|
}
|
|
@@ -24579,7 +24236,7 @@ module$contents$ee$batch_Export.prefixImageFormatOptions_ = function(taskConfig,
|
|
|
24579
24236
|
throw Error("Parameter specified at least twice: once in config, and once in config format options.");
|
|
24580
24237
|
}
|
|
24581
24238
|
for (var prefix = module$contents$ee$batch_FORMAT_PREFIX_MAP[imageFormat], validOptionKeys = module$contents$ee$batch_FORMAT_OPTIONS_MAP[imageFormat], prefixedOptions = {}, $jscomp$iter$56 = (0,$jscomp.makeIterator)(Object.entries(formatOptions)), $jscomp$key$1827622838$35$ = $jscomp$iter$56.next(); !$jscomp$key$1827622838$35$.done; $jscomp$key$1827622838$35$ = $jscomp$iter$56.next()) {
|
|
24582
|
-
var $jscomp$destructuring$
|
|
24239
|
+
var $jscomp$destructuring$var60 = (0,$jscomp.makeIterator)($jscomp$key$1827622838$35$.value), key = $jscomp$destructuring$var60.next().value, value = $jscomp$destructuring$var60.next().value;
|
|
24583
24240
|
if (!module$contents$goog$array_contains(validOptionKeys, key)) {
|
|
24584
24241
|
var validKeysMsg = validOptionKeys.join(", ");
|
|
24585
24242
|
throw Error('"' + key + '" is not a valid option, the image format "' + imageFormat + '""may have the following options: ' + (validKeysMsg + '".'));
|