@google/earthengine 1.1.4 → 1.2.0
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 +151 -165
- package/build/ee_api_js.js +528 -528
- package/build/ee_api_js_debug.js +129 -143
- package/build/ee_api_js_npm.js +151 -165
- package/build/main.js +151 -165
- 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,
|
|
1257
|
-
|
|
1256
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_on_init_within_reaction_throws_error__enable:!1, GoogFlags__jspb_ignore_implicit_extension_deps__disable:!1, GoogFlags__jspb_readonly_repeated_fields__disable:!1, GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1,
|
|
1257
|
+
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.
|
|
@@ -2152,9 +2152,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2152
2152
|
};
|
|
2153
2153
|
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;
|
|
2154
2154
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2155
|
-
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$
|
|
2156
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2157
|
-
var key = $jscomp$key$
|
|
2155
|
+
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 =
|
|
2156
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
2157
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
2158
2158
|
if (value != null) {
|
|
2159
2159
|
var copy = void 0;
|
|
2160
2160
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2165,11 +2165,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2165
2165
|
} else if (objects.hasOwnProperty(key)) {
|
|
2166
2166
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2167
2167
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2168
|
-
$jscomp$loop$
|
|
2168
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
2169
2169
|
return function(v) {
|
|
2170
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2170
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2171
2171
|
};
|
|
2172
|
-
}($jscomp$loop$
|
|
2172
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2173
2173
|
} else if (Array.isArray(value)) {
|
|
2174
2174
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2175
2175
|
continue;
|
|
@@ -2184,8 +2184,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2184
2184
|
return target;
|
|
2185
2185
|
}
|
|
2186
2186
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2187
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2188
|
-
var mapKey = $jscomp$key$
|
|
2187
|
+
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()) {
|
|
2188
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
2189
2189
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2190
2190
|
}
|
|
2191
2191
|
return objMap;
|
|
@@ -2215,39 +2215,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2215
2215
|
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))) {
|
|
2216
2216
|
return !1;
|
|
2217
2217
|
}
|
|
2218
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2219
|
-
var key = $jscomp$key$
|
|
2218
|
+
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()) {
|
|
2219
|
+
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);
|
|
2220
2220
|
if (has1 !== has2) {
|
|
2221
2221
|
return !1;
|
|
2222
2222
|
}
|
|
2223
2223
|
if (has1) {
|
|
2224
2224
|
var value1 = serializable1.Serializable$get(key);
|
|
2225
|
-
$jscomp$loop$
|
|
2225
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2226
2226
|
if (arrays1.hasOwnProperty(key)) {
|
|
2227
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2227
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
2228
2228
|
return !1;
|
|
2229
2229
|
}
|
|
2230
2230
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2231
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2231
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
2232
2232
|
return !1;
|
|
2233
2233
|
}
|
|
2234
2234
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2235
|
-
if ($jscomp$loop$
|
|
2236
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2235
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2236
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
2237
2237
|
return function(v1, i) {
|
|
2238
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2238
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
2239
2239
|
};
|
|
2240
|
-
}($jscomp$loop$
|
|
2240
|
+
}($jscomp$loop$m192531680$45))) {
|
|
2241
2241
|
return !1;
|
|
2242
2242
|
}
|
|
2243
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2243
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
2244
2244
|
return !1;
|
|
2245
2245
|
}
|
|
2246
2246
|
} else if (Array.isArray(value1)) {
|
|
2247
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2247
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
2248
2248
|
return !1;
|
|
2249
2249
|
}
|
|
2250
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2250
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
2251
2251
|
return !1;
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
@@ -2269,8 +2269,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2269
2269
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2270
2270
|
return !1;
|
|
2271
2271
|
}
|
|
2272
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2273
|
-
var mapKey = $jscomp$key$
|
|
2272
|
+
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()) {
|
|
2273
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
2274
2274
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2275
2275
|
return !1;
|
|
2276
2276
|
}
|
|
@@ -2351,15 +2351,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2351
2351
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2352
2352
|
};
|
|
2353
2353
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2354
|
-
var $jscomp$this$
|
|
2354
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2355
2355
|
payload += this._metadataPayload;
|
|
2356
2356
|
return Promise.all(this.files.map(function(f) {
|
|
2357
|
-
return $jscomp$this$
|
|
2357
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
2358
2358
|
})).then(function(filePayloads) {
|
|
2359
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2360
|
-
payload += $jscomp$key$
|
|
2359
|
+
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()) {
|
|
2360
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
2361
2361
|
}
|
|
2362
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2362
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
2363
2363
|
});
|
|
2364
2364
|
};
|
|
2365
2365
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -2864,8 +2864,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
2864
2864
|
throw Error(message);
|
|
2865
2865
|
}
|
|
2866
2866
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
2867
|
-
var $jscomp$templatelit$
|
|
2868
|
-
["\\0"]), $jscomp$templatelit$
|
|
2867
|
+
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"],
|
|
2868
|
+
["\\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"};
|
|
2869
2869
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
2870
2870
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
2871
2871
|
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 ##############################");
|
|
@@ -2879,14 +2879,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
2879
2879
|
return fn.toString().indexOf("`") === -1;
|
|
2880
2880
|
}
|
|
2881
2881
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2882
|
-
return tag($jscomp$templatelit$
|
|
2882
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
2883
2883
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2884
|
-
return tag($jscomp$templatelit$
|
|
2884
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
2885
2885
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2886
|
-
return tag($jscomp$templatelit$
|
|
2886
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
2887
2887
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
2888
|
-
return tag($jscomp$templatelit$
|
|
2889
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
2888
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
2889
|
+
}), 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);
|
|
2890
2890
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
2891
2891
|
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)) ?
|
|
2892
2892
|
!0 : !1;
|
|
@@ -3288,9 +3288,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
3288
3288
|
}
|
|
3289
3289
|
}
|
|
3290
3290
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
3291
|
-
var $jscomp$tmp$error$
|
|
3292
|
-
this.message = $jscomp$tmp$error$
|
|
3293
|
-
"stack" in $jscomp$tmp$error$
|
|
3291
|
+
var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
3292
|
+
this.message = $jscomp$tmp$error$240424914$1.message;
|
|
3293
|
+
"stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
|
|
3294
3294
|
this.type = type;
|
|
3295
3295
|
this.intent = intent;
|
|
3296
3296
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -3398,7 +3398,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(documentOr
|
|
|
3398
3398
|
};
|
|
3399
3399
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, documentOrWindow) {
|
|
3400
3400
|
documentOrWindow = documentOrWindow === void 0 ? document : documentOrWindow;
|
|
3401
|
-
var $jscomp$optchain$
|
|
3401
|
+
var $jscomp$optchain$tmp220578679$0, $jscomp$optchain$tmp220578679$1, el = ($jscomp$optchain$tmp220578679$1 = ($jscomp$optchain$tmp220578679$0 = "document" in documentOrWindow ? documentOrWindow.document : documentOrWindow).querySelector) == null ? void 0 : $jscomp$optchain$tmp220578679$1.call($jscomp$optchain$tmp220578679$0, elementName + "[nonce]");
|
|
3402
3402
|
return el == null ? "" : el.nonce || el.getAttribute("nonce") || "";
|
|
3403
3403
|
}
|
|
3404
3404
|
;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"};
|
|
@@ -4680,9 +4680,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
4680
4680
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
4681
4681
|
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"};
|
|
4682
4682
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
4683
|
-
var $jscomp$tmp$error$
|
|
4684
|
-
this.message = $jscomp$tmp$error$
|
|
4685
|
-
"stack" in $jscomp$tmp$error$
|
|
4683
|
+
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.");
|
|
4684
|
+
this.message = $jscomp$tmp$error$m991617773$25.message;
|
|
4685
|
+
"stack" in $jscomp$tmp$error$m991617773$25 && (this.stack = $jscomp$tmp$error$m991617773$25.stack);
|
|
4686
4686
|
this.url = url;
|
|
4687
4687
|
this.typeName = typeName;
|
|
4688
4688
|
this.contentType = contentType;
|
|
@@ -4694,48 +4694,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
4694
4694
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
4695
4695
|
}
|
|
4696
4696
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
4697
|
-
var response, $jscomp$optchain$
|
|
4698
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4699
|
-
if ($jscomp$generator$context$
|
|
4700
|
-
return $jscomp$generator$context$
|
|
4701
|
-
}
|
|
4702
|
-
response = $jscomp$generator$context$
|
|
4703
|
-
mimeType = ($jscomp$optchain$
|
|
4704
|
-
return $jscomp$generator$context$
|
|
4697
|
+
var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
|
|
4698
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$29) {
|
|
4699
|
+
if ($jscomp$generator$context$m991617773$29.nextAddress == 1) {
|
|
4700
|
+
return $jscomp$generator$context$m991617773$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
4701
|
+
}
|
|
4702
|
+
response = $jscomp$generator$context$m991617773$29.yieldResult;
|
|
4703
|
+
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();
|
|
4704
|
+
return $jscomp$generator$context$m991617773$29.return({html:function() {
|
|
4705
4705
|
var text;
|
|
4706
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4707
|
-
if ($jscomp$generator$context$
|
|
4706
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$26) {
|
|
4707
|
+
if ($jscomp$generator$context$m991617773$26.nextAddress == 1) {
|
|
4708
4708
|
if (mimeType !== "text/html") {
|
|
4709
4709
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
4710
4710
|
}
|
|
4711
|
-
return $jscomp$generator$context$
|
|
4711
|
+
return $jscomp$generator$context$m991617773$26.yield(response.text(), 2);
|
|
4712
4712
|
}
|
|
4713
|
-
text = $jscomp$generator$context$
|
|
4714
|
-
return $jscomp$generator$context$
|
|
4713
|
+
text = $jscomp$generator$context$m991617773$26.yieldResult;
|
|
4714
|
+
return $jscomp$generator$context$m991617773$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
4715
4715
|
});
|
|
4716
4716
|
}, script:function() {
|
|
4717
4717
|
var text;
|
|
4718
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4719
|
-
if ($jscomp$generator$context$
|
|
4718
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$27) {
|
|
4719
|
+
if ($jscomp$generator$context$m991617773$27.nextAddress == 1) {
|
|
4720
4720
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
4721
4721
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
4722
4722
|
}
|
|
4723
|
-
return $jscomp$generator$context$
|
|
4723
|
+
return $jscomp$generator$context$m991617773$27.yield(response.text(), 2);
|
|
4724
4724
|
}
|
|
4725
|
-
text = $jscomp$generator$context$
|
|
4726
|
-
return $jscomp$generator$context$
|
|
4725
|
+
text = $jscomp$generator$context$m991617773$27.yieldResult;
|
|
4726
|
+
return $jscomp$generator$context$m991617773$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
4727
4727
|
});
|
|
4728
4728
|
}, styleSheet:function() {
|
|
4729
4729
|
var text;
|
|
4730
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
4731
|
-
if ($jscomp$generator$context$
|
|
4730
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$28) {
|
|
4731
|
+
if ($jscomp$generator$context$m991617773$28.nextAddress == 1) {
|
|
4732
4732
|
if (mimeType !== "text/css") {
|
|
4733
4733
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
4734
4734
|
}
|
|
4735
|
-
return $jscomp$generator$context$
|
|
4735
|
+
return $jscomp$generator$context$m991617773$28.yield(response.text(), 2);
|
|
4736
4736
|
}
|
|
4737
|
-
text = $jscomp$generator$context$
|
|
4738
|
-
return $jscomp$generator$context$
|
|
4737
|
+
text = $jscomp$generator$context$m991617773$28.yieldResult;
|
|
4738
|
+
return $jscomp$generator$context$m991617773$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
4739
4739
|
});
|
|
4740
4740
|
}});
|
|
4741
4741
|
});
|
|
@@ -5108,7 +5108,7 @@ goog.string.unescapeEntitiesUsingDom_ = function(str, opt_document) {
|
|
|
5108
5108
|
var n = Number("0" + entity.slice(1));
|
|
5109
5109
|
isNaN(n) || (value = String.fromCharCode(n));
|
|
5110
5110
|
}
|
|
5111
|
-
value || (module$exports$safevalues$dom$
|
|
5111
|
+
value || (module$exports$safevalues$dom$index.setElementInnerHtml(div, module$contents$safevalues$restricted$reviewed_htmlSafeByReview(s + " ", {justification:"Single HTML entity."})), value = div.firstChild.nodeValue.slice(0, -1));
|
|
5112
5112
|
return seen[s] = value;
|
|
5113
5113
|
});
|
|
5114
5114
|
};
|
|
@@ -6253,8 +6253,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6255
6255
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6256
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6257
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6256
|
+
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()) {
|
|
6257
|
+
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;
|
|
6258
6258
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6259
6259
|
}
|
|
6260
6260
|
return urlQueryParams;
|
|
@@ -6265,8 +6265,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6265
6265
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1, hasSafeContentType = !1;
|
|
6266
6266
|
if (params.headers) {
|
|
6267
6267
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6268
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6269
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6268
|
+
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()) {
|
|
6269
|
+
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;
|
|
6270
6270
|
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);
|
|
6271
6271
|
}
|
|
6272
6272
|
}
|
|
@@ -6306,9 +6306,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6306
6306
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6307
6307
|
};
|
|
6308
6308
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6309
|
-
var $jscomp$this$
|
|
6309
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6310
6310
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6311
|
-
return $jscomp$this$
|
|
6311
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
6312
6312
|
}));
|
|
6313
6313
|
};
|
|
6314
6314
|
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"};
|
|
@@ -6478,10 +6478,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_
|
|
|
6478
6478
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable = !1;
|
|
6479
6479
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable = !1;
|
|
6480
6480
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable = !1;
|
|
6481
|
-
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_flush_queue_fix__disable = !1;
|
|
6482
6481
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_on_init_within_reaction_throws_error__enable = !1;
|
|
6483
|
-
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_ordered_reaction_execution__disable = !1;
|
|
6484
|
-
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_sync_reaction_within_reaction_throws_error__disable = !1;
|
|
6485
6482
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
|
|
6486
6483
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
|
|
6487
6484
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__disable = !1;
|
|
@@ -6494,11 +6491,7 @@ var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1,
|
|
|
6494
6491
|
goog.flags.USE_USER_AGENT_CLIENT_HINTS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable : goog.readFlagInternalDoNotUseOrElse(610401301, !1);
|
|
6495
6492
|
goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable : goog.readFlagInternalDoNotUseOrElse(899588437, !1);
|
|
6496
6493
|
goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE = 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_stop_using_repeated_field_sets_from_gencode__disable : goog.readFlagInternalDoNotUseOrElse(188588736, !0);
|
|
6497
|
-
goog.flags.
|
|
6498
|
-
goog.flags.CLIENT_ONLY_WIZ_ON_INIT_WITHIN_REACTION_THROWS_ERROR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_on_init_within_reaction_throws_error__enable : goog.readFlagInternalDoNotUseOrElse(676937399, !1);
|
|
6499
|
-
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);
|
|
6500
|
-
goog.flags.CLIENT_ONLY_WIZ_SYNC_REACTION_WITHIN_REACTION_THROWS_ERROR = 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_sync_reaction_within_reaction_throws_error__disable : goog.readFlagInternalDoNotUseOrElse(661449076,
|
|
6501
|
-
!0);
|
|
6494
|
+
goog.flags.CLIENT_ONLY_WIZ_ON_INIT_WITHIN_REACTION_THROWS_ERROR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_on_init_within_reaction_throws_error__enable : goog.readFlagInternalDoNotUseOrElse(676937399, goog.DEBUG);
|
|
6502
6495
|
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);
|
|
6503
6496
|
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);
|
|
6504
6497
|
goog.flags.JSPB_IGNORE_IMPLICIT_EXTENSION_DEPS = 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_ignore_implicit_extension_deps__disable) : goog.readFlagInternalDoNotUseOrElse(660014094, module$contents$goog$flags_STAGING);
|
|
@@ -7463,7 +7456,6 @@ goog.events.LISTENER_MAP_PROP_ = "closure_lm_" + (Math.random() * 1E6 | 0);
|
|
|
7463
7456
|
goog.events.onString_ = "on";
|
|
7464
7457
|
goog.events.onStringMap_ = {};
|
|
7465
7458
|
goog.events.CaptureSimulationMode = {OFF_AND_FAIL:0, OFF_AND_SILENT:1, ON:2};
|
|
7466
|
-
goog.events.CAPTURE_SIMULATION_MODE = 2;
|
|
7467
7459
|
goog.events.listenerCountEstimate_ = 0;
|
|
7468
7460
|
goog.events.listen = function(src, type, listener, opt_options, opt_handler) {
|
|
7469
7461
|
if (opt_options && opt_options.once) {
|
|
@@ -14847,22 +14839,16 @@ goog.debug.asyncStackTag.getTestNameProvider = function() {
|
|
|
14847
14839
|
}
|
|
14848
14840
|
return module$contents$goog$debug$asyncStackTag_testNameProvider;
|
|
14849
14841
|
};
|
|
14850
|
-
var module$contents$goog$async$
|
|
14842
|
+
var module$contents$goog$async$run_schedule, module$contents$goog$async$run_workQueueScheduled = !1, module$contents$goog$async$run_workQueue = new module$contents$goog$async$WorkQueue_WorkQueue(), module$contents$goog$async$run_run = function(callback, context) {
|
|
14851
14843
|
callback = module$contents$goog$debug$asyncStackTag_wrap(callback, "goog.async.run");
|
|
14852
14844
|
module$contents$goog$async$run_schedule || module$contents$goog$async$run_initializeRunner();
|
|
14853
14845
|
module$contents$goog$async$run_workQueueScheduled || (module$contents$goog$async$run_schedule(), module$contents$goog$async$run_workQueueScheduled = !0);
|
|
14854
14846
|
module$contents$goog$async$run_workQueue.add(callback, context);
|
|
14855
14847
|
}, module$contents$goog$async$run_initializeRunner = function() {
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
module$contents$goog$async$
|
|
14859
|
-
|
|
14860
|
-
};
|
|
14861
|
-
} else {
|
|
14862
|
-
module$contents$goog$async$run_schedule = function() {
|
|
14863
|
-
(0,goog.async.nextTick)(module$contents$goog$async$run_processWorkQueueInternal);
|
|
14864
|
-
};
|
|
14865
|
-
}
|
|
14848
|
+
var promise = Promise.resolve(void 0);
|
|
14849
|
+
module$contents$goog$async$run_schedule = function() {
|
|
14850
|
+
promise.then(module$contents$goog$async$run_processWorkQueueInternal);
|
|
14851
|
+
};
|
|
14866
14852
|
};
|
|
14867
14853
|
module$contents$goog$async$run_run.forceNextTick = function(realSetTimeout) {
|
|
14868
14854
|
if (goog.DISALLOW_TEST_ONLY_CODE) {
|
|
@@ -16048,8 +16034,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
16048
16034
|
this.replacements = new Map();
|
|
16049
16035
|
};
|
|
16050
16036
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
16051
|
-
var $jscomp$this$
|
|
16052
|
-
return $jscomp$this$
|
|
16037
|
+
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) {
|
|
16038
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
16053
16039
|
});
|
|
16054
16040
|
if (openedTags.length !== 0) {
|
|
16055
16041
|
if (goog.DEBUG) {
|
|
@@ -16267,8 +16253,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16267
16253
|
if (Array.isArray(token)) {
|
|
16268
16254
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16269
16255
|
} else {
|
|
16270
|
-
var $jscomp$optchain$
|
|
16271
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
16256
|
+
var $jscomp$optchain$tmpm583190311$0 = void 0;
|
|
16257
|
+
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) {
|
|
16272
16258
|
tokens.push(token);
|
|
16273
16259
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16274
16260
|
return tokens;
|
|
@@ -16514,9 +16500,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16514
16500
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16515
16501
|
};
|
|
16516
16502
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16517
|
-
var $jscomp$this$
|
|
16503
|
+
var $jscomp$this$m583190311$26 = this;
|
|
16518
16504
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16519
|
-
return $jscomp$this$
|
|
16505
|
+
return $jscomp$this$m583190311$26.isWhitespace(c);
|
|
16520
16506
|
});
|
|
16521
16507
|
};
|
|
16522
16508
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16623,8 +16609,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16623
16609
|
return null;
|
|
16624
16610
|
}
|
|
16625
16611
|
if (token.lowercaseName === "url") {
|
|
16626
|
-
var nextToken = tokens[i + 1], $jscomp$optchain$
|
|
16627
|
-
if ((($jscomp$optchain$
|
|
16612
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1877845113$0 = void 0;
|
|
16613
|
+
if ((($jscomp$optchain$tmpm1877845113$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1877845113$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16628
16614
|
return null;
|
|
16629
16615
|
}
|
|
16630
16616
|
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
@@ -16647,8 +16633,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16647
16633
|
if (!this.allowKeyframes) {
|
|
16648
16634
|
return null;
|
|
16649
16635
|
}
|
|
16650
|
-
for (var keyframeRules = [], $jscomp$iter$31 = (0,$jscomp.makeIterator)(keyframesRule.cssRules), $jscomp$key$
|
|
16651
|
-
var rule = $jscomp$key$
|
|
16636
|
+
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()) {
|
|
16637
|
+
var rule = $jscomp$key$m1877845113$1$rule.value;
|
|
16652
16638
|
if (rule instanceof CSSKeyframeRule) {
|
|
16653
16639
|
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16654
16640
|
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
@@ -16660,8 +16646,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16660
16646
|
if (!this.propertyAllowlist.has(name)) {
|
|
16661
16647
|
return !1;
|
|
16662
16648
|
}
|
|
16663
|
-
for (var $jscomp$iter$32 = (0,$jscomp.makeIterator)(this.propertyDiscarders), $jscomp$key$
|
|
16664
|
-
var discarder = $jscomp$key$
|
|
16649
|
+
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()) {
|
|
16650
|
+
var discarder = $jscomp$key$m1877845113$2$discarder.value;
|
|
16665
16651
|
if (discarder(name)) {
|
|
16666
16652
|
return !1;
|
|
16667
16653
|
}
|
|
@@ -16676,8 +16662,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16676
16662
|
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16677
16663
|
};
|
|
16678
16664
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16679
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$33 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$
|
|
16680
|
-
var name = $jscomp$key$
|
|
16665
|
+
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()) {
|
|
16666
|
+
var name = $jscomp$key$m1877845113$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16681
16667
|
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16682
16668
|
}
|
|
16683
16669
|
return sanitizedProperties;
|
|
@@ -16691,8 +16677,8 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16691
16677
|
return selector + " { " + sanitizedProperties + " }";
|
|
16692
16678
|
};
|
|
16693
16679
|
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16694
|
-
for (var rules = this.getStyleSheet(cssText).cssRules, output = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(rules), $jscomp$key$
|
|
16695
|
-
var rule = $jscomp$key$
|
|
16680
|
+
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()) {
|
|
16681
|
+
var rule = $jscomp$key$m1877845113$4$rule.value;
|
|
16696
16682
|
if (rule instanceof CSSStyleRule) {
|
|
16697
16683
|
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16698
16684
|
sanitizedRule && output.push(sanitizedRule);
|
|
@@ -16853,8 +16839,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16853
16839
|
return fragment;
|
|
16854
16840
|
};
|
|
16855
16841
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16856
|
-
for (var $jscomp$this$
|
|
16857
|
-
return $jscomp$this$
|
|
16842
|
+
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) {
|
|
16843
|
+
return $jscomp$this$m1803429925$13.nodeFilter(n);
|
|
16858
16844
|
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16859
16845
|
var sanitizedNode = void 0;
|
|
16860
16846
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
@@ -16889,8 +16875,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16889
16875
|
return this.createTextNode(textNode.data);
|
|
16890
16876
|
};
|
|
16891
16877
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16892
|
-
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$
|
|
16893
|
-
var $jscomp$destructuring$var31 = $jscomp$key$
|
|
16878
|
+
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()) {
|
|
16879
|
+
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);
|
|
16894
16880
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16895
16881
|
switch(policy.policyAction) {
|
|
16896
16882
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
@@ -16922,9 +16908,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16922
16908
|
break;
|
|
16923
16909
|
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16924
16910
|
if (this.resourceUrlPolicy) {
|
|
16925
|
-
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$
|
|
16911
|
+
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 =
|
|
16926
16912
|
$jscomp$iter$35.next()) {
|
|
16927
|
-
var part = $jscomp$key$
|
|
16913
|
+
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);
|
|
16928
16914
|
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16929
16915
|
}
|
|
16930
16916
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
@@ -16968,8 +16954,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
16968
16954
|
if (!conditions) {
|
|
16969
16955
|
return !0;
|
|
16970
16956
|
}
|
|
16971
|
-
for (var $jscomp$iter$37 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$
|
|
16972
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16957
|
+
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()) {
|
|
16958
|
+
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;
|
|
16973
16959
|
if (value && !expectedValues.has(value)) {
|
|
16974
16960
|
return !1;
|
|
16975
16961
|
}
|
|
@@ -16984,8 +16970,8 @@ function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_Srcse
|
|
|
16984
16970
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16985
16971
|
};
|
|
16986
16972
|
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16987
|
-
for (var parts = [], $jscomp$iter$38 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$
|
|
16988
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16973
|
+
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()) {
|
|
16974
|
+
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;
|
|
16989
16975
|
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16990
16976
|
}
|
|
16991
16977
|
return {parts:parts};
|
|
@@ -17042,8 +17028,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17042
17028
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
17043
17029
|
};
|
|
17044
17030
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
17045
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
17046
|
-
var element = $jscomp$key$
|
|
17031
|
+
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()) {
|
|
17032
|
+
var element = $jscomp$key$m1412690177$21$element.value;
|
|
17047
17033
|
element = element.toUpperCase();
|
|
17048
17034
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
17049
17035
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -17061,8 +17047,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17061
17047
|
throw Error("Element: " + element + " is not a custom element");
|
|
17062
17048
|
}
|
|
17063
17049
|
if (allowedAttributes) {
|
|
17064
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
17065
|
-
elementPolicy.set($jscomp$key$
|
|
17050
|
+
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()) {
|
|
17051
|
+
elementPolicy.set($jscomp$key$m1412690177$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
17066
17052
|
}
|
|
17067
17053
|
allowedElementPolicies.set(element, elementPolicy);
|
|
17068
17054
|
} else {
|
|
@@ -17072,15 +17058,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17072
17058
|
return this;
|
|
17073
17059
|
};
|
|
17074
17060
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
17075
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
17076
|
-
var attribute = $jscomp$key$
|
|
17061
|
+
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()) {
|
|
17062
|
+
var attribute = $jscomp$key$m1412690177$23$attribute.value;
|
|
17077
17063
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
17078
17064
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
17079
17065
|
}
|
|
17080
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
17081
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17066
|
+
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()) {
|
|
17067
|
+
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$ =
|
|
17082
17068
|
$jscomp$iter$42.next()) {
|
|
17083
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
17069
|
+
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;
|
|
17084
17070
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
17085
17071
|
}
|
|
17086
17072
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -17089,8 +17075,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
17089
17075
|
return this;
|
|
17090
17076
|
};
|
|
17091
17077
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
17092
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
17093
|
-
var attribute = $jscomp$key$
|
|
17078
|
+
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()) {
|
|
17079
|
+
var attribute = $jscomp$key$m1412690177$26$attribute.value;
|
|
17094
17080
|
if (attribute.indexOf("data-") !== 0) {
|
|
17095
17081
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
17096
17082
|
}
|
|
@@ -17152,7 +17138,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17152
17138
|
return this;
|
|
17153
17139
|
};
|
|
17154
17140
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
17155
|
-
var $jscomp$this$
|
|
17141
|
+
var $jscomp$this$m1412690177$17 = this;
|
|
17156
17142
|
this.extendSanitizerTableForCss();
|
|
17157
17143
|
var propertyDiscarders = [];
|
|
17158
17144
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -17162,9 +17148,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
17162
17148
|
return /^transition(-|$)/.test(property);
|
|
17163
17149
|
});
|
|
17164
17150
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
17165
|
-
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$
|
|
17151
|
+
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);
|
|
17166
17152
|
}, function(cssText) {
|
|
17167
|
-
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$
|
|
17153
|
+
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);
|
|
17168
17154
|
}, this.resourceUrlPolicy);
|
|
17169
17155
|
};
|
|
17170
17156
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -17414,12 +17400,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
17414
17400
|
}
|
|
17415
17401
|
try {
|
|
17416
17402
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
17417
|
-
} catch ($jscomp$unused$catch$
|
|
17403
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
17418
17404
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
17419
17405
|
}
|
|
17420
17406
|
try {
|
|
17421
17407
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
17422
|
-
} catch ($jscomp$unused$catch$
|
|
17408
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
17423
17409
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
17424
17410
|
}
|
|
17425
17411
|
return !1;
|
|
@@ -19132,7 +19118,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
19132
19118
|
}
|
|
19133
19119
|
}
|
|
19134
19120
|
try {
|
|
19135
|
-
this.cleanUpTimeoutTimer_(), this.timeoutInterval_ > 0 && (goog.log.fine(this.logger_, this.formatMsg_("Will abort after " + this.timeoutInterval_ + "ms if incomplete")), this.timeoutId_ =
|
|
19121
|
+
this.cleanUpTimeoutTimer_(), this.timeoutInterval_ > 0 && (goog.log.fine(this.logger_, this.formatMsg_("Will abort after " + this.timeoutInterval_ + "ms if incomplete")), this.timeoutId_ = setTimeout(this.timeout_.bind(this), this.timeoutInterval_)), goog.log.fine(this.logger_, this.formatMsg_("Sending request")), this.inSend_ = !0, this.xhr_.send(content), this.inSend_ = !1;
|
|
19136
19122
|
} catch (err) {
|
|
19137
19123
|
goog.log.fine(this.logger_, this.formatMsg_("Send error: " + err.message)), this.error_(goog.net.ErrorCode.EXCEPTION, err);
|
|
19138
19124
|
}
|
|
@@ -19179,7 +19165,7 @@ goog.net.XhrIo.prototype.onReadyStateChangeHelper_ = function() {
|
|
|
19179
19165
|
goog.log.fine(this.logger_, this.formatMsg_("Local request error detected and ignored"));
|
|
19180
19166
|
} else {
|
|
19181
19167
|
if (this.inSend_ && this.getReadyState() == goog.net.XmlHttp.ReadyState.COMPLETE) {
|
|
19182
|
-
|
|
19168
|
+
setTimeout(this.onReadyStateChange_.bind(this), 0);
|
|
19183
19169
|
} else {
|
|
19184
19170
|
if (this.dispatchEvent(goog.net.EventType.READY_STATE_CHANGE), this.isComplete()) {
|
|
19185
19171
|
goog.log.fine(this.logger_, this.formatMsg_("Request complete"));
|
|
@@ -19217,7 +19203,7 @@ goog.net.XhrIo.prototype.cleanUpXhr_ = function(opt_fromDispose) {
|
|
|
19217
19203
|
}
|
|
19218
19204
|
};
|
|
19219
19205
|
goog.net.XhrIo.prototype.cleanUpTimeoutTimer_ = function() {
|
|
19220
|
-
this.timeoutId_ && (
|
|
19206
|
+
this.timeoutId_ && (clearTimeout(this.timeoutId_), this.timeoutId_ = null);
|
|
19221
19207
|
};
|
|
19222
19208
|
goog.net.XhrIo.prototype.isActive = function() {
|
|
19223
19209
|
return !!this.xhr_;
|
|
@@ -19354,7 +19340,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19354
19340
|
ee.apiclient = {};
|
|
19355
19341
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19356
19342
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19357
|
-
ee.apiclient.API_CLIENT_VERSION = "1.
|
|
19343
|
+
ee.apiclient.API_CLIENT_VERSION = "1.2.0";
|
|
19358
19344
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19359
19345
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19360
19346
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19652,8 +19638,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19652
19638
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19653
19639
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19654
19640
|
method = method || "POST";
|
|
19655
|
-
var headers = {"Content-Type":contentType}, version = "1.
|
|
19656
|
-
version === "1.
|
|
19641
|
+
var headers = {"Content-Type":contentType}, version = "1.2.0";
|
|
19642
|
+
version === "1.2.0" && (version = "latest");
|
|
19657
19643
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19658
19644
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19659
19645
|
if (authToken != null) {
|
|
@@ -19770,7 +19756,7 @@ module$contents$ee$apiclient_apiclient.handleAuthResult_ = function(success, err
|
|
|
19770
19756
|
if (result.access_token) {
|
|
19771
19757
|
var token = result.token_type + " " + result.access_token;
|
|
19772
19758
|
if (result.expires_in || result.expires_in === 0) {
|
|
19773
|
-
var expiresInMs = result.expires_in *
|
|
19759
|
+
var expiresInMs = result.expires_in * 1E3 * .9, timeout = setTimeout(module$contents$ee$apiclient_apiclient.refreshAuthToken, expiresInMs * .9);
|
|
19774
19760
|
timeout.unref !== void 0 && timeout.unref();
|
|
19775
19761
|
module$contents$ee$apiclient_apiclient.authTokenExpiration_ = Date.now() + expiresInMs;
|
|
19776
19762
|
}
|
|
@@ -25709,7 +25695,7 @@ goog.style.installSafeStyleSheet = function(safeStyleSheet, opt_node) {
|
|
|
25709
25695
|
head = dh.createDom(goog.dom.TagName.HEAD);
|
|
25710
25696
|
body.parentNode.insertBefore(head, body);
|
|
25711
25697
|
}
|
|
25712
|
-
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$exports$safevalues$dom$
|
|
25698
|
+
var el = dh.createDom(goog.dom.TagName.STYLE), nonce = module$exports$safevalues$dom$index.getStyleNonce(window);
|
|
25713
25699
|
nonce && el.setAttribute("nonce", nonce);
|
|
25714
25700
|
goog.style.setSafeStyleSheet(el, safeStyleSheet);
|
|
25715
25701
|
dh.appendChild(head, el);
|