@google/earthengine 0.1.416 → 0.1.417
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 +744 -720
- package/build/ee_api_js.js +73 -72
- package/build/ee_api_js_debug.js +721 -697
- package/build/ee_api_js_npm.js +744 -720
- package/build/main.js +744 -720
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
package/build/main.js
CHANGED
|
@@ -992,6 +992,78 @@ $jscomp.polyfill("Map", function(NativeMap) {
|
|
|
992
992
|
};
|
|
993
993
|
return PolyfillMap;
|
|
994
994
|
}, "es6", "es3");
|
|
995
|
+
$jscomp.polyfill("Set", function(NativeSet) {
|
|
996
|
+
function isConformant() {
|
|
997
|
+
if ($jscomp.ASSUME_NO_NATIVE_SET || !NativeSet || typeof NativeSet != "function" || !NativeSet.prototype.entries || typeof Object.seal != "function") {
|
|
998
|
+
return !1;
|
|
999
|
+
}
|
|
1000
|
+
try {
|
|
1001
|
+
var value = Object.seal({x:4}), set = new NativeSet($jscomp.makeIterator([value]));
|
|
1002
|
+
if (!set.has(value) || set.size != 1 || set.add(value) != set || set.size != 1 || set.add({x:4}) != set || set.size != 2) {
|
|
1003
|
+
return !1;
|
|
1004
|
+
}
|
|
1005
|
+
var iter = set.entries(), item = iter.next();
|
|
1006
|
+
if (item.done || item.value[0] != value || item.value[1] != value) {
|
|
1007
|
+
return !1;
|
|
1008
|
+
}
|
|
1009
|
+
item = iter.next();
|
|
1010
|
+
return item.done || item.value[0] == value || item.value[0].x != 4 || item.value[1] != item.value[0] ? !1 : iter.next().done;
|
|
1011
|
+
} catch (err) {
|
|
1012
|
+
return !1;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) {
|
|
1016
|
+
if (NativeSet && $jscomp.ES6_CONFORMANCE) {
|
|
1017
|
+
return NativeSet;
|
|
1018
|
+
}
|
|
1019
|
+
} else {
|
|
1020
|
+
if (isConformant()) {
|
|
1021
|
+
return NativeSet;
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
var PolyfillSet = function(opt_iterable) {
|
|
1025
|
+
this.map_ = new Map();
|
|
1026
|
+
if (opt_iterable) {
|
|
1027
|
+
for (var iter = $jscomp.makeIterator(opt_iterable), entry; !(entry = iter.next()).done;) {
|
|
1028
|
+
this.add(entry.value);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
this.size = this.map_.size;
|
|
1032
|
+
};
|
|
1033
|
+
PolyfillSet.prototype.add = function(value) {
|
|
1034
|
+
value = value === 0 ? 0 : value;
|
|
1035
|
+
this.map_.set(value, value);
|
|
1036
|
+
this.size = this.map_.size;
|
|
1037
|
+
return this;
|
|
1038
|
+
};
|
|
1039
|
+
PolyfillSet.prototype.delete = function(value) {
|
|
1040
|
+
var result = this.map_.delete(value);
|
|
1041
|
+
this.size = this.map_.size;
|
|
1042
|
+
return result;
|
|
1043
|
+
};
|
|
1044
|
+
PolyfillSet.prototype.clear = function() {
|
|
1045
|
+
this.map_.clear();
|
|
1046
|
+
this.size = 0;
|
|
1047
|
+
};
|
|
1048
|
+
PolyfillSet.prototype.has = function(value) {
|
|
1049
|
+
return this.map_.has(value);
|
|
1050
|
+
};
|
|
1051
|
+
PolyfillSet.prototype.entries = function() {
|
|
1052
|
+
return this.map_.entries();
|
|
1053
|
+
};
|
|
1054
|
+
PolyfillSet.prototype.values = function() {
|
|
1055
|
+
return this.map_.values();
|
|
1056
|
+
};
|
|
1057
|
+
PolyfillSet.prototype.keys = PolyfillSet.prototype.values;
|
|
1058
|
+
PolyfillSet.prototype[Symbol.iterator] = PolyfillSet.prototype.values;
|
|
1059
|
+
PolyfillSet.prototype.forEach = function(callback, opt_thisArg) {
|
|
1060
|
+
var set = this;
|
|
1061
|
+
this.map_.forEach(function(value) {
|
|
1062
|
+
return callback.call(opt_thisArg, value, value, set);
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
return PolyfillSet;
|
|
1066
|
+
}, "es6", "es3");
|
|
995
1067
|
$jscomp.checkStringArgs = function(thisArg, arg, func) {
|
|
996
1068
|
if (thisArg == null) {
|
|
997
1069
|
throw new TypeError("The 'this' value for String.prototype." + func + " must not be null or undefined");
|
|
@@ -1127,78 +1199,6 @@ $jscomp.polyfill("Array.prototype.find", function(orig) {
|
|
|
1127
1199
|
return $jscomp.findInternal(this, callback, opt_thisArg).v;
|
|
1128
1200
|
};
|
|
1129
1201
|
}, "es6", "es3");
|
|
1130
|
-
$jscomp.polyfill("Set", function(NativeSet) {
|
|
1131
|
-
function isConformant() {
|
|
1132
|
-
if ($jscomp.ASSUME_NO_NATIVE_SET || !NativeSet || typeof NativeSet != "function" || !NativeSet.prototype.entries || typeof Object.seal != "function") {
|
|
1133
|
-
return !1;
|
|
1134
|
-
}
|
|
1135
|
-
try {
|
|
1136
|
-
var value = Object.seal({x:4}), set = new NativeSet($jscomp.makeIterator([value]));
|
|
1137
|
-
if (!set.has(value) || set.size != 1 || set.add(value) != set || set.size != 1 || set.add({x:4}) != set || set.size != 2) {
|
|
1138
|
-
return !1;
|
|
1139
|
-
}
|
|
1140
|
-
var iter = set.entries(), item = iter.next();
|
|
1141
|
-
if (item.done || item.value[0] != value || item.value[1] != value) {
|
|
1142
|
-
return !1;
|
|
1143
|
-
}
|
|
1144
|
-
item = iter.next();
|
|
1145
|
-
return item.done || item.value[0] == value || item.value[0].x != 4 || item.value[1] != item.value[0] ? !1 : iter.next().done;
|
|
1146
|
-
} catch (err) {
|
|
1147
|
-
return !1;
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) {
|
|
1151
|
-
if (NativeSet && $jscomp.ES6_CONFORMANCE) {
|
|
1152
|
-
return NativeSet;
|
|
1153
|
-
}
|
|
1154
|
-
} else {
|
|
1155
|
-
if (isConformant()) {
|
|
1156
|
-
return NativeSet;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
var PolyfillSet = function(opt_iterable) {
|
|
1160
|
-
this.map_ = new Map();
|
|
1161
|
-
if (opt_iterable) {
|
|
1162
|
-
for (var iter = $jscomp.makeIterator(opt_iterable), entry; !(entry = iter.next()).done;) {
|
|
1163
|
-
this.add(entry.value);
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
this.size = this.map_.size;
|
|
1167
|
-
};
|
|
1168
|
-
PolyfillSet.prototype.add = function(value) {
|
|
1169
|
-
value = value === 0 ? 0 : value;
|
|
1170
|
-
this.map_.set(value, value);
|
|
1171
|
-
this.size = this.map_.size;
|
|
1172
|
-
return this;
|
|
1173
|
-
};
|
|
1174
|
-
PolyfillSet.prototype.delete = function(value) {
|
|
1175
|
-
var result = this.map_.delete(value);
|
|
1176
|
-
this.size = this.map_.size;
|
|
1177
|
-
return result;
|
|
1178
|
-
};
|
|
1179
|
-
PolyfillSet.prototype.clear = function() {
|
|
1180
|
-
this.map_.clear();
|
|
1181
|
-
this.size = 0;
|
|
1182
|
-
};
|
|
1183
|
-
PolyfillSet.prototype.has = function(value) {
|
|
1184
|
-
return this.map_.has(value);
|
|
1185
|
-
};
|
|
1186
|
-
PolyfillSet.prototype.entries = function() {
|
|
1187
|
-
return this.map_.entries();
|
|
1188
|
-
};
|
|
1189
|
-
PolyfillSet.prototype.values = function() {
|
|
1190
|
-
return this.map_.values();
|
|
1191
|
-
};
|
|
1192
|
-
PolyfillSet.prototype.keys = PolyfillSet.prototype.values;
|
|
1193
|
-
PolyfillSet.prototype[Symbol.iterator] = PolyfillSet.prototype.values;
|
|
1194
|
-
PolyfillSet.prototype.forEach = function(callback, opt_thisArg) {
|
|
1195
|
-
var set = this;
|
|
1196
|
-
this.map_.forEach(function(value) {
|
|
1197
|
-
return callback.call(opt_thisArg, value, value, set);
|
|
1198
|
-
});
|
|
1199
|
-
};
|
|
1200
|
-
return PolyfillSet;
|
|
1201
|
-
}, "es6", "es3");
|
|
1202
1202
|
$jscomp.polyfill("String.prototype.codePointAt", function(orig) {
|
|
1203
1203
|
return orig ? orig : function(position) {
|
|
1204
1204
|
var string = $jscomp.checkStringArgs(this, null, "codePointAt"), size = string.length;
|
|
@@ -1251,8 +1251,8 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1251
1251
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1252
1252
|
};
|
|
1253
1253
|
}, "es8", "es3");
|
|
1254
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_direct_reactions__disable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__jspb_enable_low_index_extension_writes__disable:!1,
|
|
1255
|
-
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};
|
|
1254
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_direct_reactions__disable:!1, GoogFlags__client_only_wiz_flush_queue_fix__disable:!1, GoogFlags__client_only_wiz_ordered_reaction_execution__disable:!1, GoogFlags__jspb_enable_low_index_extension_writes__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,
|
|
1255
|
+
GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1, GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
1256
1256
|
/*
|
|
1257
1257
|
|
|
1258
1258
|
Copyright The Closure Library Authors.
|
|
@@ -2147,9 +2147,9 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
2147
2147
|
};
|
|
2148
2148
|
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;
|
|
2149
2149
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
2150
|
-
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$
|
|
2151
|
-
{mapMetadata:void 0}, $jscomp$key$
|
|
2152
|
-
var key = $jscomp$key$
|
|
2150
|
+
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 =
|
|
2151
|
+
{mapMetadata:void 0}, $jscomp$key$m192531680$40$key = $jscomp$iter$19.next()) {
|
|
2152
|
+
var key = $jscomp$key$m192531680$40$key.value, value = valueGetter(key, source);
|
|
2153
2153
|
if (value != null) {
|
|
2154
2154
|
var copy = void 0;
|
|
2155
2155
|
if (arrays.hasOwnProperty(key)) {
|
|
@@ -2160,11 +2160,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2160
2160
|
} else if (objects.hasOwnProperty(key)) {
|
|
2161
2161
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
2162
2162
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
2163
|
-
$jscomp$loop$
|
|
2163
|
+
$jscomp$loop$m192531680$44.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$44.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$44) {
|
|
2164
2164
|
return function(v) {
|
|
2165
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
2165
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2166
2166
|
};
|
|
2167
|
-
}($jscomp$loop$
|
|
2167
|
+
}($jscomp$loop$m192531680$44)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$44.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
2168
2168
|
} else if (Array.isArray(value)) {
|
|
2169
2169
|
if (metadata.emptyArrayIsUnset && value.length === 0) {
|
|
2170
2170
|
continue;
|
|
@@ -2179,8 +2179,8 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
2179
2179
|
return target;
|
|
2180
2180
|
}
|
|
2181
2181
|
function module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, mapMetadata, valueGetter, valueSetter, copyInstanciator) {
|
|
2182
|
-
for (var objMap = {}, $jscomp$iter$20 = (0,$jscomp.makeIterator)(Object.keys(value)), $jscomp$key$
|
|
2183
|
-
var mapKey = $jscomp$key$
|
|
2182
|
+
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()) {
|
|
2183
|
+
var mapKey = $jscomp$key$m192531680$41$mapKey.value, mapValue = value[mapKey];
|
|
2184
2184
|
mapValue != null && (objMap[mapKey] = module$contents$eeapiclient$domain_object_deepCopyValue(mapValue, valueGetter, valueSetter, copyInstanciator, mapMetadata.isValueArray, mapMetadata.isSerializable, mapMetadata.ctor));
|
|
2185
2185
|
}
|
|
2186
2186
|
return objMap;
|
|
@@ -2210,39 +2210,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
2210
2210
|
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))) {
|
|
2211
2211
|
return !1;
|
|
2212
2212
|
}
|
|
2213
|
-
for (var $jscomp$iter$21 = (0,$jscomp.makeIterator)(keys1), $jscomp$key$
|
|
2214
|
-
var key = $jscomp$key$
|
|
2213
|
+
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()) {
|
|
2214
|
+
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);
|
|
2215
2215
|
if (has1 !== has2) {
|
|
2216
2216
|
return !1;
|
|
2217
2217
|
}
|
|
2218
2218
|
if (has1) {
|
|
2219
2219
|
var value1 = serializable1.Serializable$get(key);
|
|
2220
|
-
$jscomp$loop$
|
|
2220
|
+
$jscomp$loop$m192531680$45.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
2221
2221
|
if (arrays1.hasOwnProperty(key)) {
|
|
2222
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2222
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !0)) {
|
|
2223
2223
|
return !1;
|
|
2224
2224
|
}
|
|
2225
2225
|
} else if (objects1.hasOwnProperty(key)) {
|
|
2226
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2226
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !0)) {
|
|
2227
2227
|
return !1;
|
|
2228
2228
|
}
|
|
2229
2229
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
2230
|
-
if ($jscomp$loop$
|
|
2231
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
2230
|
+
if ($jscomp$loop$m192531680$45.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2.isPropertyArray) {
|
|
2231
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$45.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$45) {
|
|
2232
2232
|
return function(v1, i) {
|
|
2233
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
2233
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$45.value2$jscomp$7[i], $jscomp$loop$m192531680$45.mapMetadata$jscomp$2);
|
|
2234
2234
|
};
|
|
2235
|
-
}($jscomp$loop$
|
|
2235
|
+
}($jscomp$loop$m192531680$45))) {
|
|
2236
2236
|
return !1;
|
|
2237
2237
|
}
|
|
2238
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
2238
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, $jscomp$loop$m192531680$45.mapMetadata$jscomp$2)) {
|
|
2239
2239
|
return !1;
|
|
2240
2240
|
}
|
|
2241
2241
|
} else if (Array.isArray(value1)) {
|
|
2242
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2242
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !0, !1)) {
|
|
2243
2243
|
return !1;
|
|
2244
2244
|
}
|
|
2245
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
2245
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$45.value2$jscomp$7, !1, !1)) {
|
|
2246
2246
|
return !1;
|
|
2247
2247
|
}
|
|
2248
2248
|
}
|
|
@@ -2264,8 +2264,8 @@ function module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, v
|
|
|
2264
2264
|
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, value2)) {
|
|
2265
2265
|
return !1;
|
|
2266
2266
|
}
|
|
2267
|
-
for (var $jscomp$iter$22 = (0,$jscomp.makeIterator)(Object.keys(value1)), $jscomp$key$
|
|
2268
|
-
var mapKey = $jscomp$key$
|
|
2267
|
+
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()) {
|
|
2268
|
+
var mapKey = $jscomp$key$m192531680$43$mapKey.value;
|
|
2269
2269
|
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1[mapKey], value2[mapKey], mapMetadata.isValueArray, mapMetadata.isSerializable)) {
|
|
2270
2270
|
return !1;
|
|
2271
2271
|
}
|
|
@@ -2346,15 +2346,15 @@ module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.addMetad
|
|
|
2346
2346
|
this._metadataPayload += "Content-Type: application/json; charset=utf-8\r\n\r\n" + JSON.stringify(json) + ("\r\n--" + this._boundary + "\r\n");
|
|
2347
2347
|
};
|
|
2348
2348
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.build = function() {
|
|
2349
|
-
var $jscomp$this$
|
|
2349
|
+
var $jscomp$this$m667091202$6 = this, payload = "--" + this._boundary + "\r\n";
|
|
2350
2350
|
payload += this._metadataPayload;
|
|
2351
2351
|
return Promise.all(this.files.map(function(f) {
|
|
2352
|
-
return $jscomp$this$
|
|
2352
|
+
return $jscomp$this$m667091202$6.encodeFile(f);
|
|
2353
2353
|
})).then(function(filePayloads) {
|
|
2354
|
-
for (var $jscomp$iter$23 = (0,$jscomp.makeIterator)(filePayloads), $jscomp$key$
|
|
2355
|
-
payload += $jscomp$key$
|
|
2354
|
+
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()) {
|
|
2355
|
+
payload += $jscomp$key$m667091202$9$filePayload.value;
|
|
2356
2356
|
}
|
|
2357
|
-
return payload += "\r\n--" + $jscomp$this$
|
|
2357
|
+
return payload += "\r\n--" + $jscomp$this$m667091202$6._boundary + "--";
|
|
2358
2358
|
});
|
|
2359
2359
|
};
|
|
2360
2360
|
module$exports$eeapiclient$multipart_request.MultipartRequest.prototype.encodeFile = function(file) {
|
|
@@ -3004,8 +3004,8 @@ function module$contents$safevalues$internals$resource_url_impl_unwrapResourceUr
|
|
|
3004
3004
|
return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(value);
|
|
3005
3005
|
}
|
|
3006
3006
|
module$exports$safevalues$internals$resource_url_impl.unwrapResourceUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl;
|
|
3007
|
-
var $jscomp$templatelit$
|
|
3008
|
-
["\\0"]), $jscomp$templatelit$
|
|
3007
|
+
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"],
|
|
3008
|
+
["\\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"};
|
|
3009
3009
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
3010
3010
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
3011
3011
|
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 ##############################");
|
|
@@ -3019,14 +3019,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
3019
3019
|
return fn.toString().indexOf("`") === -1;
|
|
3020
3020
|
}
|
|
3021
3021
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3022
|
-
return tag($jscomp$templatelit$
|
|
3022
|
+
return tag($jscomp$templatelit$1274514361$5);
|
|
3023
3023
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3024
|
-
return tag($jscomp$templatelit$
|
|
3024
|
+
return tag($jscomp$templatelit$1274514361$6);
|
|
3025
3025
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3026
|
-
return tag($jscomp$templatelit$
|
|
3026
|
+
return tag($jscomp$templatelit$1274514361$7);
|
|
3027
3027
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
3028
|
-
return tag($jscomp$templatelit$
|
|
3029
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
3028
|
+
return tag($jscomp$templatelit$1274514361$8);
|
|
3029
|
+
}), 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);
|
|
3030
3030
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
3031
3031
|
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)) ?
|
|
3032
3032
|
!0 : !1;
|
|
@@ -3560,14 +3560,25 @@ function module$contents$goog$array_slice(arr, start, opt_end) {
|
|
|
3560
3560
|
return arguments.length <= 2 ? Array.prototype.slice.call(arr, start) : Array.prototype.slice.call(arr, start, opt_end);
|
|
3561
3561
|
}
|
|
3562
3562
|
goog.array.slice = module$contents$goog$array_slice;
|
|
3563
|
-
function module$contents$goog$array_removeDuplicates(arr, opt_rv,
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3563
|
+
function module$contents$goog$array_removeDuplicates(arr, opt_rv, opt_keyFn) {
|
|
3564
|
+
var returnArray = opt_rv || arr;
|
|
3565
|
+
if (goog.FEATURESET_YEAR >= 2018) {
|
|
3566
|
+
for (var defaultKeyFn = function(item) {
|
|
3567
|
+
return item;
|
|
3568
|
+
}, keyFn = opt_keyFn || defaultKeyFn, cursorInsert = 0, cursorRead = 0, seen = new Set(); cursorRead < arr.length;) {
|
|
3569
|
+
var current = arr[cursorRead++], key = keyFn(current);
|
|
3570
|
+
seen.has(key) || (seen.add(key), returnArray[cursorInsert++] = current);
|
|
3571
|
+
}
|
|
3572
|
+
returnArray.length = cursorInsert;
|
|
3573
|
+
} else {
|
|
3574
|
+
for (var defaultKeyFn$jscomp$0 = function(item) {
|
|
3575
|
+
return goog.isObject(item) ? "o" + goog.getUid(item) : (typeof item).charAt(0) + item;
|
|
3576
|
+
}, keyFn$jscomp$0 = opt_keyFn || defaultKeyFn$jscomp$0, cursorInsert$jscomp$0 = 0, cursorRead$jscomp$0 = 0, seen$jscomp$0 = {}; cursorRead$jscomp$0 < arr.length;) {
|
|
3577
|
+
var current$jscomp$0 = arr[cursorRead$jscomp$0++], key$jscomp$0 = keyFn$jscomp$0(current$jscomp$0);
|
|
3578
|
+
Object.prototype.hasOwnProperty.call(seen$jscomp$0, key$jscomp$0) || (seen$jscomp$0[key$jscomp$0] = !0, returnArray[cursorInsert$jscomp$0++] = current$jscomp$0);
|
|
3579
|
+
}
|
|
3580
|
+
returnArray.length = cursorInsert$jscomp$0;
|
|
3569
3581
|
}
|
|
3570
|
-
returnArray.length = cursorInsert;
|
|
3571
3582
|
}
|
|
3572
3583
|
goog.array.removeDuplicates = module$contents$goog$array_removeDuplicates;
|
|
3573
3584
|
function module$contents$goog$array_binarySearch(arr, target, opt_compareFn) {
|
|
@@ -3923,43 +3934,59 @@ goog.dom.tags.VOID_TAGS_ = {area:!0, base:!0, br:!0, col:!0, command:!0, embed:!
|
|
|
3923
3934
|
goog.dom.tags.isVoidTag = function(tagName) {
|
|
3924
3935
|
return goog.dom.tags.VOID_TAGS_[tagName] === !0;
|
|
3925
3936
|
};
|
|
3937
|
+
var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
|
|
3938
|
+
module$exports$safevalues$internals$style_impl.SafeStyle = function(token, value) {
|
|
3939
|
+
goog.DEBUG && module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
3940
|
+
this.privateDoNotAccessOrElseWrappedStyle = value;
|
|
3941
|
+
};
|
|
3942
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.prototype.toString = function() {
|
|
3943
|
+
return this.privateDoNotAccessOrElseWrappedStyle;
|
|
3944
|
+
};
|
|
3945
|
+
var module$contents$safevalues$internals$style_impl_StyleImpl = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3946
|
+
function module$contents$safevalues$internals$style_impl_createStyleInternal(value) {
|
|
3947
|
+
return new module$exports$safevalues$internals$style_impl.SafeStyle(module$exports$safevalues$internals$secrets.secretToken, value);
|
|
3948
|
+
}
|
|
3949
|
+
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3950
|
+
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
3951
|
+
return value instanceof module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3952
|
+
}
|
|
3953
|
+
module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
3954
|
+
function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
|
|
3955
|
+
if (module$contents$safevalues$internals$style_impl_isStyle(value)) {
|
|
3956
|
+
return value.privateDoNotAccessOrElseWrappedStyle;
|
|
3957
|
+
}
|
|
3958
|
+
var message = "";
|
|
3959
|
+
goog.DEBUG && (message = "Unexpected type when unwrapping SafeStyle, got '" + value + "' of type '" + typeof value + "'");
|
|
3960
|
+
throw Error(message);
|
|
3961
|
+
}
|
|
3962
|
+
module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
3926
3963
|
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"};
|
|
3927
3964
|
module$exports$safevalues$for_closure$index.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
3965
|
+
module$exports$safevalues$for_closure$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3966
|
+
module$exports$safevalues$for_closure$index.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3967
|
+
module$exports$safevalues$for_closure$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
3928
3968
|
module$exports$safevalues$for_closure$index.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
3929
3969
|
module$exports$safevalues$for_closure$index.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
3930
3970
|
var module$exports$safevalues$for_closure = {};
|
|
3931
3971
|
module$exports$safevalues$for_closure.sanitizeUrl = module$contents$safevalues$builders$url_builders_sanitizeUrl;
|
|
3972
|
+
module$exports$safevalues$for_closure.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
3973
|
+
module$exports$safevalues$for_closure.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
3974
|
+
module$exports$safevalues$for_closure.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
3932
3975
|
module$exports$safevalues$for_closure.SafeUrl = module$exports$safevalues$internals$url_impl.SafeUrl;
|
|
3933
3976
|
module$exports$safevalues$for_closure.unwrapUrl = module$contents$safevalues$internals$url_impl_unwrapUrl;
|
|
3934
|
-
|
|
3935
|
-
if (goog.DEBUG && token !== module$contents$goog$html$SafeStyle_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
3936
|
-
throw Error("SafeStyle is not meant to be built directly");
|
|
3937
|
-
}
|
|
3938
|
-
this.privateDoNotAccessOrElseSafeStyleWrappedValue_ = value;
|
|
3939
|
-
};
|
|
3940
|
-
module$contents$goog$html$SafeStyle_SafeStyle.fromConstant = function(style) {
|
|
3977
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.fromConstant = function(style) {
|
|
3941
3978
|
var styleString = goog.string.Const.unwrap(style);
|
|
3942
3979
|
if (styleString.length === 0) {
|
|
3943
|
-
return module$
|
|
3980
|
+
return module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
|
|
3944
3981
|
}
|
|
3945
3982
|
(0,goog.asserts.assert)((0,goog.string.internal.endsWith)(styleString, ";"), "Last character of style string is not ';': " + styleString);
|
|
3946
3983
|
(0,goog.asserts.assert)((0,goog.string.internal.contains)(styleString, ":"), "Style string must contain at least one ':', to specify a \"name: value\" pair: " + styleString);
|
|
3947
|
-
return module$contents$
|
|
3948
|
-
};
|
|
3949
|
-
module$contents$goog$html$SafeStyle_SafeStyle.prototype.toString = function() {
|
|
3950
|
-
return this.privateDoNotAccessOrElseSafeStyleWrappedValue_.toString();
|
|
3951
|
-
};
|
|
3952
|
-
module$contents$goog$html$SafeStyle_SafeStyle.unwrap = function(safeStyle) {
|
|
3953
|
-
if (safeStyle instanceof module$contents$goog$html$SafeStyle_SafeStyle && safeStyle.constructor === module$contents$goog$html$SafeStyle_SafeStyle) {
|
|
3954
|
-
return safeStyle.privateDoNotAccessOrElseSafeStyleWrappedValue_;
|
|
3955
|
-
}
|
|
3956
|
-
(0,goog.asserts.fail)("expected object of type SafeStyle, got '" + safeStyle + "' of type " + goog.typeOf(safeStyle));
|
|
3957
|
-
return "type_error:SafeStyle";
|
|
3984
|
+
return module$contents$safevalues$internals$style_impl_createStyleInternal(styleString);
|
|
3958
3985
|
};
|
|
3959
|
-
module$
|
|
3960
|
-
return
|
|
3986
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.unwrap = function(safeStyle) {
|
|
3987
|
+
return module$contents$safevalues$internals$style_impl_unwrapStyle(safeStyle);
|
|
3961
3988
|
};
|
|
3962
|
-
module$
|
|
3989
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.create = function(map) {
|
|
3963
3990
|
var style = "", name;
|
|
3964
3991
|
for (name in map) {
|
|
3965
3992
|
if (Object.prototype.hasOwnProperty.call(map, name)) {
|
|
@@ -3970,17 +3997,17 @@ module$contents$goog$html$SafeStyle_SafeStyle.create = function(map) {
|
|
|
3970
3997
|
value != null && (value = Array.isArray(value) ? value.map(module$contents$goog$html$SafeStyle_sanitizePropertyValue).join(" ") : module$contents$goog$html$SafeStyle_sanitizePropertyValue(value), style += name + ":" + value + ";");
|
|
3971
3998
|
}
|
|
3972
3999
|
}
|
|
3973
|
-
return style ? module$contents$
|
|
4000
|
+
return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
|
|
3974
4001
|
};
|
|
3975
|
-
module$
|
|
4002
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.concat = function(var_args) {
|
|
3976
4003
|
var style = "", addArgument = function(argument) {
|
|
3977
|
-
Array.isArray(argument) ? argument.forEach(addArgument) : style += module$
|
|
4004
|
+
Array.isArray(argument) ? argument.forEach(addArgument) : style += module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(argument);
|
|
3978
4005
|
};
|
|
3979
4006
|
Array.prototype.forEach.call(arguments, addArgument);
|
|
3980
|
-
return style ? module$contents$
|
|
4007
|
+
return style ? module$contents$safevalues$internals$style_impl_createStyleInternal(style) : module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY;
|
|
3981
4008
|
};
|
|
3982
|
-
module$
|
|
3983
|
-
module$
|
|
4009
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.EMPTY = module$contents$safevalues$internals$style_impl_createStyleInternal("");
|
|
4010
|
+
module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING = "zClosurez";
|
|
3984
4011
|
function module$contents$goog$html$SafeStyle_sanitizePropertyValue(value) {
|
|
3985
4012
|
if (value instanceof module$exports$safevalues$internals$url_impl.SafeUrl) {
|
|
3986
4013
|
return 'url("' + value.toString().replace(/</g, "%3c").replace(/[\\"]/g, "\\$&") + '")';
|
|
@@ -3995,16 +4022,16 @@ function module$contents$goog$html$SafeStyle_sanitizePropertyValueString(value)
|
|
|
3995
4022
|
var valueWithoutFunctions = value.replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_FUNCTIONS_RE, "$1").replace(module$contents$goog$html$SafeStyle_URL_RE, "url");
|
|
3996
4023
|
if (module$contents$goog$html$SafeStyle_VALUE_RE.test(valueWithoutFunctions)) {
|
|
3997
4024
|
if (module$contents$goog$html$SafeStyle_COMMENT_RE.test(value)) {
|
|
3998
|
-
return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$
|
|
4025
|
+
return (0,goog.asserts.fail)("String value disallows comments, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
|
|
3999
4026
|
}
|
|
4000
4027
|
if (!module$contents$goog$html$SafeStyle_hasBalancedQuotes(value)) {
|
|
4001
|
-
return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$
|
|
4028
|
+
return (0,goog.asserts.fail)("String value requires balanced quotes, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
|
|
4002
4029
|
}
|
|
4003
4030
|
if (!module$contents$goog$html$SafeStyle_hasBalancedSquareBrackets(value)) {
|
|
4004
|
-
return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$
|
|
4031
|
+
return (0,goog.asserts.fail)("String value requires balanced square brackets and one identifier per pair of brackets, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
|
|
4005
4032
|
}
|
|
4006
4033
|
} else {
|
|
4007
|
-
return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$
|
|
4034
|
+
return (0,goog.asserts.fail)("String value allows only [-+,.\"'%_!#/ a-zA-Z0-9\\[\\]] and simple functions, got: " + value), module$exports$safevalues$internals$style_impl.SafeStyle.INNOCUOUS_STRING;
|
|
4008
4035
|
}
|
|
4009
4036
|
return module$contents$goog$html$SafeStyle_sanitizeUrl(value);
|
|
4010
4037
|
}
|
|
@@ -4047,7 +4074,7 @@ function module$contents$goog$html$SafeStyle_sanitizeUrl(value) {
|
|
|
4047
4074
|
return before + quote + sanitized + quote + after;
|
|
4048
4075
|
});
|
|
4049
4076
|
}
|
|
4050
|
-
goog.html.SafeStyle = module$
|
|
4077
|
+
goog.html.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
4051
4078
|
var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE = {}, module$contents$goog$html$SafeStyleSheet_SafeStyleSheet = function(value, token) {
|
|
4052
4079
|
if (goog.DEBUG && token !== module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE) {
|
|
4053
4080
|
throw Error("SafeStyleSheet is not meant to be built directly");
|
|
@@ -4068,8 +4095,8 @@ module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule = function(se
|
|
|
4068
4095
|
if (!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(selectorToCheck)) {
|
|
4069
4096
|
throw Error("() and [] in selector must be balanced, got: " + selector);
|
|
4070
4097
|
}
|
|
4071
|
-
style instanceof module$
|
|
4072
|
-
var styleSheet = selector + "{" + module$
|
|
4098
|
+
style instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (style = module$exports$safevalues$internals$style_impl.SafeStyle.create(style));
|
|
4099
|
+
var styleSheet = selector + "{" + module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(style).replace(/</g, "\\3C ") + "}";
|
|
4073
4100
|
return module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(styleSheet);
|
|
4074
4101
|
};
|
|
4075
4102
|
module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_ = function(s) {
|
|
@@ -4295,15 +4322,15 @@ function module$contents$goog$html$SafeHtml_getAttrNameAndValue(tagName, name, v
|
|
|
4295
4322
|
}
|
|
4296
4323
|
}
|
|
4297
4324
|
}
|
|
4298
|
-
goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$
|
|
4325
|
+
goog.asserts.assert(value instanceof module$exports$safevalues$internals$url_impl.SafeUrl || value instanceof goog.html.TrustedResourceUrl || value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || value instanceof module$contents$goog$html$SafeHtml_SafeHtml || typeof value === "string" || typeof value === "number", "String or number value expected, got " + typeof value + " with value: " + value);
|
|
4299
4326
|
return name + '="' + goog.string.internal.htmlEscape(String(value)) + '"';
|
|
4300
4327
|
}
|
|
4301
4328
|
function module$contents$goog$html$SafeHtml_getStyleValue(value) {
|
|
4302
4329
|
if (!goog.isObject(value)) {
|
|
4303
4330
|
throw Error(module$contents$goog$html$SafeHtml_SafeHtml.ENABLE_ERROR_MESSAGES ? 'The "style" attribute requires goog.html.SafeStyle or map of style properties, ' + typeof value + " given: " + value : "");
|
|
4304
4331
|
}
|
|
4305
|
-
value instanceof module$
|
|
4306
|
-
return module$
|
|
4332
|
+
value instanceof module$exports$safevalues$internals$style_impl.SafeStyle || (value = module$exports$safevalues$internals$style_impl.SafeStyle.create(value));
|
|
4333
|
+
return module$exports$safevalues$internals$style_impl.SafeStyle.unwrap(value);
|
|
4307
4334
|
}
|
|
4308
4335
|
module$contents$goog$html$SafeHtml_SafeHtml.DOCTYPE_HTML = function() {
|
|
4309
4336
|
return module$contents$goog$html$SafeHtml_SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>");
|
|
@@ -4327,22 +4354,6 @@ module$exports$safevalues$internals$html_impl.isHtml = function(value) {
|
|
|
4327
4354
|
module$exports$safevalues$internals$html_impl.unwrapHtml = function(value) {
|
|
4328
4355
|
return module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(value);
|
|
4329
4356
|
};
|
|
4330
|
-
var module$exports$goog$html$safestyle_internals_for_safevalues = {};
|
|
4331
|
-
module$exports$goog$html$safestyle_internals_for_safevalues.createSafeStyle = module$contents$goog$html$SafeStyle_SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse;
|
|
4332
|
-
var module$exports$safevalues$internals$style_impl = {}, module$contents$safevalues$internals$style_impl_module = module$contents$safevalues$internals$style_impl_module || {id:"third_party/javascript/safevalues/internals/style_impl.closure.js"};
|
|
4333
|
-
module$exports$safevalues$internals$style_impl.SafeStyle = module$contents$goog$html$SafeStyle_SafeStyle;
|
|
4334
|
-
function module$contents$safevalues$internals$style_impl_createStyleInternal(style) {
|
|
4335
|
-
return (0,module$exports$goog$html$safestyle_internals_for_safevalues.createSafeStyle)(style);
|
|
4336
|
-
}
|
|
4337
|
-
module$exports$safevalues$internals$style_impl.createStyleInternal = module$contents$safevalues$internals$style_impl_createStyleInternal;
|
|
4338
|
-
function module$contents$safevalues$internals$style_impl_isStyle(value) {
|
|
4339
|
-
return value instanceof module$contents$goog$html$SafeStyle_SafeStyle;
|
|
4340
|
-
}
|
|
4341
|
-
module$exports$safevalues$internals$style_impl.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
4342
|
-
function module$contents$safevalues$internals$style_impl_unwrapStyle(value) {
|
|
4343
|
-
return module$contents$goog$html$SafeStyle_SafeStyle.unwrap(value);
|
|
4344
|
-
}
|
|
4345
|
-
module$exports$safevalues$internals$style_impl.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
4346
4357
|
var module$exports$safevalues$dom$elements$element = {}, module$contents$safevalues$dom$elements$element_module = module$contents$safevalues$dom$elements$element_module || {id:"third_party/javascript/safevalues/dom/elements/element.closure.js"};
|
|
4347
4358
|
module$exports$safevalues$dom$elements$element.setInnerHtml = function(elOrRoot, v) {
|
|
4348
4359
|
module$contents$safevalues$dom$elements$element_isElement(elOrRoot) && module$contents$safevalues$dom$elements$element_throwIfScriptOrStyle(elOrRoot);
|
|
@@ -4436,9 +4447,9 @@ function module$contents$safevalues$dom$elements$iframe_setSandboxDirectives(ifr
|
|
|
4436
4447
|
}
|
|
4437
4448
|
}
|
|
4438
4449
|
module$exports$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError = function(type, intent) {
|
|
4439
|
-
var $jscomp$tmp$error$
|
|
4440
|
-
this.message = $jscomp$tmp$error$
|
|
4441
|
-
"stack" in $jscomp$tmp$error$
|
|
4450
|
+
var $jscomp$tmp$error$240424914$1 = Error.call(this, type + " cannot be used with intent " + module$exports$safevalues$dom$elements$iframe.Intent[intent]);
|
|
4451
|
+
this.message = $jscomp$tmp$error$240424914$1.message;
|
|
4452
|
+
"stack" in $jscomp$tmp$error$240424914$1 && (this.stack = $jscomp$tmp$error$240424914$1.stack);
|
|
4442
4453
|
this.type = type;
|
|
4443
4454
|
this.intent = intent;
|
|
4444
4455
|
this.name = "TypeCannotBeUsedWithIntentError";
|
|
@@ -4545,7 +4556,7 @@ module$exports$safevalues$dom$globals$window.getStyleNonce = function(win) {
|
|
|
4545
4556
|
return module$contents$safevalues$dom$globals$window_getNonceFor("style", win);
|
|
4546
4557
|
};
|
|
4547
4558
|
function module$contents$safevalues$dom$globals$window_getNonceFor(elementName, win) {
|
|
4548
|
-
var $jscomp$optchain$
|
|
4559
|
+
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]");
|
|
4549
4560
|
return el ? el.nonce || el.getAttribute("nonce") || "" : "";
|
|
4550
4561
|
}
|
|
4551
4562
|
;var module$exports$safevalues$internals$script_impl = {}, module$contents$safevalues$internals$script_impl_module = module$contents$safevalues$internals$script_impl_module || {id:"third_party/javascript/safevalues/internals/script_impl.closure.js"}, module$contents$safevalues$internals$script_impl_trustedTypes = goog.global.trustedTypes;
|
|
@@ -5212,9 +5223,9 @@ function module$contents$safevalues$dom$globals$dom_parser_parseFromString(parse
|
|
|
5212
5223
|
module$exports$safevalues$dom$globals$dom_parser.parseFromString = module$contents$safevalues$dom$globals$dom_parser_parseFromString;
|
|
5213
5224
|
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"};
|
|
5214
5225
|
module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError = function(url, typeName, contentType) {
|
|
5215
|
-
var $jscomp$tmp$error$
|
|
5216
|
-
this.message = $jscomp$tmp$error$
|
|
5217
|
-
"stack" in $jscomp$tmp$error$
|
|
5226
|
+
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.");
|
|
5227
|
+
this.message = $jscomp$tmp$error$m991617773$25.message;
|
|
5228
|
+
"stack" in $jscomp$tmp$error$m991617773$25 && (this.stack = $jscomp$tmp$error$m991617773$25.stack);
|
|
5218
5229
|
this.url = url;
|
|
5219
5230
|
this.typeName = typeName;
|
|
5220
5231
|
this.contentType = contentType;
|
|
@@ -5226,48 +5237,48 @@ function module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(
|
|
|
5226
5237
|
return (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(html);
|
|
5227
5238
|
}
|
|
5228
5239
|
function module$contents$safevalues$dom$globals$fetch_fetchResourceUrl(u, init) {
|
|
5229
|
-
var response, $jscomp$optchain$
|
|
5230
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5231
|
-
if ($jscomp$generator$context$
|
|
5232
|
-
return $jscomp$generator$context$
|
|
5233
|
-
}
|
|
5234
|
-
response = $jscomp$generator$context$
|
|
5235
|
-
mimeType = ($jscomp$optchain$
|
|
5236
|
-
return $jscomp$generator$context$
|
|
5240
|
+
var response, $jscomp$optchain$tmpm991617773$0, $jscomp$optchain$tmpm991617773$1, $jscomp$optchain$tmpm991617773$2, mimeType;
|
|
5241
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$29) {
|
|
5242
|
+
if ($jscomp$generator$context$m991617773$29.nextAddress == 1) {
|
|
5243
|
+
return $jscomp$generator$context$m991617773$29.yield(fetch(module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(u).toString(), init), 2);
|
|
5244
|
+
}
|
|
5245
|
+
response = $jscomp$generator$context$m991617773$29.yieldResult;
|
|
5246
|
+
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();
|
|
5247
|
+
return $jscomp$generator$context$m991617773$29.return({html:function() {
|
|
5237
5248
|
var text;
|
|
5238
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5239
|
-
if ($jscomp$generator$context$
|
|
5249
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$26) {
|
|
5250
|
+
if ($jscomp$generator$context$m991617773$26.nextAddress == 1) {
|
|
5240
5251
|
if (mimeType !== "text/html") {
|
|
5241
5252
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeHtml", "text/html");
|
|
5242
5253
|
}
|
|
5243
|
-
return $jscomp$generator$context$
|
|
5254
|
+
return $jscomp$generator$context$m991617773$26.yield(response.text(), 2);
|
|
5244
5255
|
}
|
|
5245
|
-
text = $jscomp$generator$context$
|
|
5246
|
-
return $jscomp$generator$context$
|
|
5256
|
+
text = $jscomp$generator$context$m991617773$26.yieldResult;
|
|
5257
|
+
return $jscomp$generator$context$m991617773$26.return(module$contents$safevalues$dom$globals$fetch_privatecreateHtmlInternal(text));
|
|
5247
5258
|
});
|
|
5248
5259
|
}, script:function() {
|
|
5249
5260
|
var text;
|
|
5250
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5251
|
-
if ($jscomp$generator$context$
|
|
5261
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$27) {
|
|
5262
|
+
if ($jscomp$generator$context$m991617773$27.nextAddress == 1) {
|
|
5252
5263
|
if (mimeType !== "text/javascript" && mimeType !== "application/javascript") {
|
|
5253
5264
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeScript", "text/javascript");
|
|
5254
5265
|
}
|
|
5255
|
-
return $jscomp$generator$context$
|
|
5266
|
+
return $jscomp$generator$context$m991617773$27.yield(response.text(), 2);
|
|
5256
5267
|
}
|
|
5257
|
-
text = $jscomp$generator$context$
|
|
5258
|
-
return $jscomp$generator$context$
|
|
5268
|
+
text = $jscomp$generator$context$m991617773$27.yieldResult;
|
|
5269
|
+
return $jscomp$generator$context$m991617773$27.return(module$contents$safevalues$internals$script_impl_createScriptInternal(text));
|
|
5259
5270
|
});
|
|
5260
5271
|
}, styleSheet:function() {
|
|
5261
5272
|
var text;
|
|
5262
|
-
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$
|
|
5263
|
-
if ($jscomp$generator$context$
|
|
5273
|
+
return (0,$jscomp.asyncExecutePromiseGeneratorProgram)(function($jscomp$generator$context$m991617773$28) {
|
|
5274
|
+
if ($jscomp$generator$context$m991617773$28.nextAddress == 1) {
|
|
5264
5275
|
if (mimeType !== "text/css") {
|
|
5265
5276
|
throw new module$exports$safevalues$dom$globals$fetch.IncorrectContentTypeError(response.url, "SafeStyleSheet", "text/css");
|
|
5266
5277
|
}
|
|
5267
|
-
return $jscomp$generator$context$
|
|
5278
|
+
return $jscomp$generator$context$m991617773$28.yield(response.text(), 2);
|
|
5268
5279
|
}
|
|
5269
|
-
text = $jscomp$generator$context$
|
|
5270
|
-
return $jscomp$generator$context$
|
|
5280
|
+
text = $jscomp$generator$context$m991617773$28.yieldResult;
|
|
5281
|
+
return $jscomp$generator$context$m991617773$28.return(module$contents$safevalues$internals$style_sheet_impl_createStyleSheetInternal(text));
|
|
5271
5282
|
});
|
|
5272
5283
|
}});
|
|
5273
5284
|
});
|
|
@@ -6689,8 +6700,8 @@ function module$contents$eeapiclient$request_params_processParams(params) {
|
|
|
6689
6700
|
}
|
|
6690
6701
|
module$exports$eeapiclient$request_params.processParams = module$contents$eeapiclient$request_params_processParams;
|
|
6691
6702
|
function module$contents$eeapiclient$request_params_buildQueryParams(params, mapping, passthroughParams) {
|
|
6692
|
-
for (var urlQueryParams = passthroughParams = passthroughParams === void 0 ? {} : passthroughParams, $jscomp$iter$29 = (0,$jscomp.makeIterator)(Object.entries(mapping)), $jscomp$key$
|
|
6693
|
-
var $jscomp$destructuring$var3 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6703
|
+
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()) {
|
|
6704
|
+
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;
|
|
6694
6705
|
jsName in params && (urlQueryParams[urlQueryParamName] = params[jsName]);
|
|
6695
6706
|
}
|
|
6696
6707
|
return urlQueryParams;
|
|
@@ -6701,8 +6712,8 @@ module$exports$eeapiclient$request_params.bypassCorsPreflight = function(params)
|
|
|
6701
6712
|
var safeHeaders = {}, unsafeHeaders = {}, hasUnsafeHeaders = !1, hasContentType = !1;
|
|
6702
6713
|
if (params.headers) {
|
|
6703
6714
|
hasContentType = params.headers["Content-Type"] != null;
|
|
6704
|
-
for (var $jscomp$iter$30 = (0,$jscomp.makeIterator)(Object.entries(params.headers)), $jscomp$key$
|
|
6705
|
-
var $jscomp$destructuring$var5 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
6715
|
+
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()) {
|
|
6716
|
+
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;
|
|
6706
6717
|
module$contents$eeapiclient$request_params_simpleCorsAllowedHeaders.includes(key) ? safeHeaders[key] = value : (unsafeHeaders[key] = value, hasUnsafeHeaders = !0);
|
|
6707
6718
|
}
|
|
6708
6719
|
}
|
|
@@ -6742,9 +6753,9 @@ module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$reques
|
|
|
6742
6753
|
return this.$addHooksToRequest(requestParams, this.requestService.send(module$contents$eeapiclient$api_client_toMakeRequestParams(requestParams), responseCtor));
|
|
6743
6754
|
};
|
|
6744
6755
|
module$exports$eeapiclient$promise_api_client.PromiseApiClient.prototype.$uploadRequest = function(requestParams) {
|
|
6745
|
-
var $jscomp$this$
|
|
6756
|
+
var $jscomp$this$1237977804$4 = this, responseCtor = requestParams.responseCtor || void 0;
|
|
6746
6757
|
return this.$addHooksToRequest(requestParams, module$contents$eeapiclient$api_client_toMultipartMakeRequestParams(requestParams).then(function(params) {
|
|
6747
|
-
return $jscomp$this$
|
|
6758
|
+
return $jscomp$this$1237977804$4.requestService.send(params, responseCtor);
|
|
6748
6759
|
}));
|
|
6749
6760
|
};
|
|
6750
6761
|
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"};
|
|
@@ -6884,7 +6895,7 @@ goog.debug.entryPointRegistry.unmonitorAllIfPossible = function(monitor) {
|
|
|
6884
6895
|
var module$contents$goog$events$BrowserFeature_purify = function(fn) {
|
|
6885
6896
|
return {valueOf:fn}.valueOf();
|
|
6886
6897
|
};
|
|
6887
|
-
goog.events.BrowserFeature = {TOUCH_ENABLED:"ontouchstart" in goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) ||
|
|
6898
|
+
goog.events.BrowserFeature = {TOUCH_ENABLED:"ontouchstart" in goog.global || !!(goog.global.document && document.documentElement && "ontouchstart" in document.documentElement) || !(!goog.global.navigator || !goog.global.navigator.maxTouchPoints && !goog.global.navigator.msMaxTouchPoints), POINTER_EVENTS:"PointerEvent" in goog.global, MSPOINTER_EVENTS:!1, PASSIVE_EVENTS:goog.FEATURESET_YEAR > 2018 || module$contents$goog$events$BrowserFeature_purify(function() {
|
|
6888
6899
|
if (!goog.global.addEventListener || !Object.defineProperty) {
|
|
6889
6900
|
return !1;
|
|
6890
6901
|
}
|
|
@@ -6916,6 +6927,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_o
|
|
|
6916
6927
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_enable_low_index_extension_writes__disable = !1;
|
|
6917
6928
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable = !1;
|
|
6918
6929
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable = !1;
|
|
6930
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__enable = !1;
|
|
6919
6931
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
6920
6932
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable = !1;
|
|
6921
6933
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable = !1;
|
|
@@ -6925,7 +6937,7 @@ var module$contents$goog$flags_STAGING = goog.readFlagInternalDoNotUseOrElse(1,
|
|
|
6925
6937
|
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);
|
|
6926
6938
|
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);
|
|
6927
6939
|
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);
|
|
6928
|
-
goog.flags.CLIENT_ONLY_WIZ_DIRECT_REACTIONS = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ?
|
|
6940
|
+
goog.flags.CLIENT_ONLY_WIZ_DIRECT_REACTIONS = 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_direct_reactions__disable : goog.readFlagInternalDoNotUseOrElse(641353869, !0);
|
|
6929
6941
|
goog.flags.CLIENT_ONLY_WIZ_FLUSH_QUEUE_FIX = 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_flush_queue_fix__disable) : goog.readFlagInternalDoNotUseOrElse(644029907, module$contents$goog$flags_STAGING);
|
|
6930
6942
|
goog.flags.CLIENT_ONLY_WIZ_ORDERED_REACTION_EXECUTION = 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_ordered_reaction_execution__disable) : goog.readFlagInternalDoNotUseOrElse(1822726157,
|
|
6931
6943
|
module$contents$goog$flags_STAGING);
|
|
@@ -6933,6 +6945,7 @@ goog.flags.JSPB_ENABLE_LOW_INDEX_EXTENSION_WRITES = module$exports$closure$flags
|
|
|
6933
6945
|
module$contents$goog$flags_STAGING);
|
|
6934
6946
|
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);
|
|
6935
6947
|
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);
|
|
6948
|
+
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);
|
|
6936
6949
|
goog.flags.TESTONLY_DISABLED_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483644, !1);
|
|
6937
6950
|
goog.flags.TESTONLY_DEBUG_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable : goog.readFlagInternalDoNotUseOrElse(2147483645, goog.DEBUG);
|
|
6938
6951
|
goog.flags.TESTONLY_STAGING_FLAG = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.FLAGS_STAGING_DEFAULT && (module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles || !module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable) : goog.readFlagInternalDoNotUseOrElse(2147483646, module$contents$goog$flags_STAGING);
|
|
@@ -9499,6 +9512,11 @@ module$exports$eeapiclient$ee_api_client.ICloudStorageDestinationPermissionsEnum
|
|
|
9499
9512
|
module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum = {DEFAULT_OBJECT_ACL:"DEFAULT_OBJECT_ACL", PUBLIC:"PUBLIC", TILE_PERMISSIONS_UNSPECIFIED:"TILE_PERMISSIONS_UNSPECIFIED", values:function() {
|
|
9500
9513
|
return [module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum.TILE_PERMISSIONS_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum.PUBLIC, module$exports$eeapiclient$ee_api_client.CloudStorageDestinationPermissionsEnum.DEFAULT_OBJECT_ACL];
|
|
9501
9514
|
}};
|
|
9515
|
+
module$exports$eeapiclient$ee_api_client.IComputeFeaturesRequestFeatureProjectionEnum = function() {
|
|
9516
|
+
};
|
|
9517
|
+
module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestFeatureProjectionEnum = {FEATURE_PROJECTION_NATIVE:"FEATURE_PROJECTION_NATIVE", FEATURE_PROJECTION_UNSPECIFIED:"FEATURE_PROJECTION_UNSPECIFIED", FEATURE_PROJECTION_WGS_84_PLANAR:"FEATURE_PROJECTION_WGS_84_PLANAR", values:function() {
|
|
9518
|
+
return [module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestFeatureProjectionEnum.FEATURE_PROJECTION_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestFeatureProjectionEnum.FEATURE_PROJECTION_WGS_84_PLANAR, module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestFeatureProjectionEnum.FEATURE_PROJECTION_NATIVE];
|
|
9519
|
+
}};
|
|
9502
9520
|
module$exports$eeapiclient$ee_api_client.IComputePixelsRequestFileFormatEnum = function() {
|
|
9503
9521
|
};
|
|
9504
9522
|
module$exports$eeapiclient$ee_api_client.ComputePixelsRequestFileFormatEnum = {AUTO_JPEG_PNG:"AUTO_JPEG_PNG", GEO_TIFF:"GEO_TIFF", IMAGE_FILE_FORMAT_UNSPECIFIED:"IMAGE_FILE_FORMAT_UNSPECIFIED", JPEG:"JPEG", MULTI_BAND_IMAGE_TILE:"MULTI_BAND_IMAGE_TILE", NPY:"NPY", PNG:"PNG", TF_RECORD_IMAGE:"TF_RECORD_IMAGE", ZIPPED_GEO_TIFF:"ZIPPED_GEO_TIFF", ZIPPED_GEO_TIFF_PER_BAND:"ZIPPED_GEO_TIFF_PER_BAND", values:function() {
|
|
@@ -10269,18 +10287,23 @@ module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest = function(param
|
|
|
10269
10287
|
this.Serializable$set("pageSize", parameters.pageSize == null ? null : parameters.pageSize);
|
|
10270
10288
|
this.Serializable$set("pageToken", parameters.pageToken == null ? null : parameters.pageToken);
|
|
10271
10289
|
this.Serializable$set("workloadTag", parameters.workloadTag == null ? null : parameters.workloadTag);
|
|
10290
|
+
this.Serializable$set("featureProjection", parameters.featureProjection == null ? null : parameters.featureProjection);
|
|
10272
10291
|
};
|
|
10273
10292
|
$jscomp.inherits(module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest, module$exports$eeapiclient$domain_object.Serializable);
|
|
10274
10293
|
module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype.getConstructor = function() {
|
|
10275
10294
|
return module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest;
|
|
10276
10295
|
};
|
|
10277
10296
|
module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype.getPartialClassMetadata = function() {
|
|
10278
|
-
return {keys:["expression", "pageSize", "pageToken", "workloadTag"], objects:{expression:module$exports$eeapiclient$ee_api_client.Expression}};
|
|
10297
|
+
return {enums:{featureProjection:module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestFeatureProjectionEnum}, keys:["expression", "featureProjection", "pageSize", "pageToken", "workloadTag"], objects:{expression:module$exports$eeapiclient$ee_api_client.Expression}};
|
|
10279
10298
|
};
|
|
10280
10299
|
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest.prototype, {expression:{configurable:!0, enumerable:!0, get:function() {
|
|
10281
10300
|
return this.Serializable$has("expression") ? this.Serializable$get("expression") : null;
|
|
10282
10301
|
}, set:function(value) {
|
|
10283
10302
|
this.Serializable$set("expression", value);
|
|
10303
|
+
}}, featureProjection:{configurable:!0, enumerable:!0, get:function() {
|
|
10304
|
+
return this.Serializable$has("featureProjection") ? this.Serializable$get("featureProjection") : null;
|
|
10305
|
+
}, set:function(value) {
|
|
10306
|
+
this.Serializable$set("featureProjection", value);
|
|
10284
10307
|
}}, pageSize:{configurable:!0, enumerable:!0, get:function() {
|
|
10285
10308
|
return this.Serializable$has("pageSize") ? this.Serializable$get("pageSize") : null;
|
|
10286
10309
|
}, set:function(value) {
|
|
@@ -10294,6 +10317,9 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
10294
10317
|
}, set:function(value) {
|
|
10295
10318
|
this.Serializable$set("workloadTag", value);
|
|
10296
10319
|
}}});
|
|
10320
|
+
$jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequest, {FeatureProjection:{configurable:!0, enumerable:!0, get:function() {
|
|
10321
|
+
return module$exports$eeapiclient$ee_api_client.ComputeFeaturesRequestFeatureProjectionEnum;
|
|
10322
|
+
}}});
|
|
10297
10323
|
module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponseParameters = function() {
|
|
10298
10324
|
};
|
|
10299
10325
|
module$exports$eeapiclient$ee_api_client.ComputeFeaturesResponse = function(parameters) {
|
|
@@ -14288,8 +14314,8 @@ $jscomp.global.Object.defineProperties(module$exports$eeapiclient$ee_api_client.
|
|
|
14288
14314
|
}, set:function(value) {
|
|
14289
14315
|
this.Serializable$set("start", value);
|
|
14290
14316
|
}}});
|
|
14291
|
-
var module$contents$eeapiclient$ee_api_client_PARAM_MAP_0 = {$Xgafv:"$.xgafv", access_token:"access_token", alt:"alt", assetId:"assetId", callback:"callback", fields:"fields", filter:"filter", key:"key", oauth_token:"oauth_token", overwrite:"overwrite", pageSize:"pageSize", pageToken:"pageToken", parent:"parent", prettyPrint:"prettyPrint", quotaUser:"quotaUser", region:"region", updateMask:"updateMask", uploadType:"uploadType",
|
|
14292
|
-
view:"view", workloadTag:"workloadTag"};
|
|
14317
|
+
var module$contents$eeapiclient$ee_api_client_PARAM_MAP_0 = {$Xgafv:"$.xgafv", access_token:"access_token", alt:"alt", assetId:"assetId", callback:"callback", featureProjection:"featureProjection", fields:"fields", filter:"filter", key:"key", oauth_token:"oauth_token", overwrite:"overwrite", pageSize:"pageSize", pageToken:"pageToken", parent:"parent", prettyPrint:"prettyPrint", quotaUser:"quotaUser", region:"region", updateMask:"updateMask", uploadType:"uploadType",
|
|
14318
|
+
upload_protocol:"upload_protocol", view:"view", workloadTag:"workloadTag"};
|
|
14293
14319
|
module$exports$eeapiclient$ee_api_client.IBillingAccountsSubscriptionsApiClient$XgafvEnum = function() {
|
|
14294
14320
|
};
|
|
14295
14321
|
module$exports$eeapiclient$ee_api_client.BillingAccountsSubscriptionsApiClient$XgafvEnum = {1:"1", 2:"2", values:function() {
|
|
@@ -14428,6 +14454,11 @@ module$exports$eeapiclient$ee_api_client.IProjectsAssetsApiClientAltEnum = funct
|
|
|
14428
14454
|
module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum = {JSON:"json", MEDIA:"media", PROTO:"proto", values:function() {
|
|
14429
14455
|
return [module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum.JSON, module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum.MEDIA, module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientAltEnum.PROTO];
|
|
14430
14456
|
}};
|
|
14457
|
+
module$exports$eeapiclient$ee_api_client.IProjectsAssetsApiClientFeatureProjectionEnum = function() {
|
|
14458
|
+
};
|
|
14459
|
+
module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientFeatureProjectionEnum = {FEATURE_PROJECTION_NATIVE:"FEATURE_PROJECTION_NATIVE", FEATURE_PROJECTION_UNSPECIFIED:"FEATURE_PROJECTION_UNSPECIFIED", FEATURE_PROJECTION_WGS_84_PLANAR:"FEATURE_PROJECTION_WGS_84_PLANAR", values:function() {
|
|
14460
|
+
return [module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientFeatureProjectionEnum.FEATURE_PROJECTION_UNSPECIFIED, module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientFeatureProjectionEnum.FEATURE_PROJECTION_WGS_84_PLANAR, module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientFeatureProjectionEnum.FEATURE_PROJECTION_NATIVE];
|
|
14461
|
+
}};
|
|
14431
14462
|
module$exports$eeapiclient$ee_api_client.IProjectsAssetsApiClientViewEnum = function() {
|
|
14432
14463
|
};
|
|
14433
14464
|
module$exports$eeapiclient$ee_api_client.ProjectsAssetsApiClientViewEnum = {BASIC:"BASIC", BASIC_SYNC:"BASIC_SYNC", EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED:"EARTH_ENGINE_ASSET_VIEW_UNSPECIFIED", FULL:"FULL", values:function() {
|
|
@@ -15251,16 +15282,8 @@ var module$contents$goog$asserts$dom_assertIsHtmlElement = function(value) {
|
|
|
15251
15282
|
return value;
|
|
15252
15283
|
}, module$contents$goog$asserts$dom_assertIsHtmlAnchorElement = function(value) {
|
|
15253
15284
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.A);
|
|
15254
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlButtonElement = function(value) {
|
|
15255
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.BUTTON);
|
|
15256
15285
|
}, module$contents$goog$asserts$dom_assertIsHtmlLinkElement = function(value) {
|
|
15257
15286
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.LINK);
|
|
15258
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlAudioElement = function(value) {
|
|
15259
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.AUDIO);
|
|
15260
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlVideoElement = function(value) {
|
|
15261
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.VIDEO);
|
|
15262
|
-
}, module$contents$goog$asserts$dom_assertIsHtmlInputElement = function(value) {
|
|
15263
|
-
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.INPUT);
|
|
15264
15287
|
}, module$contents$goog$asserts$dom_assertIsHtmlFormElement = function(value) {
|
|
15265
15288
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.FORM);
|
|
15266
15289
|
}, module$contents$goog$asserts$dom_assertIsHtmlIFrameElement = function(value) {
|
|
@@ -15285,14 +15308,22 @@ goog.asserts.dom.assertIsElement = function(value) {
|
|
|
15285
15308
|
goog.asserts.dom.assertIsHtmlElement = module$contents$goog$asserts$dom_assertIsHtmlElement;
|
|
15286
15309
|
goog.asserts.dom.assertIsHtmlElementOfType = module$contents$goog$asserts$dom_assertIsHtmlElementOfType;
|
|
15287
15310
|
goog.asserts.dom.assertIsHtmlAnchorElement = module$contents$goog$asserts$dom_assertIsHtmlAnchorElement;
|
|
15288
|
-
goog.asserts.dom.assertIsHtmlButtonElement =
|
|
15311
|
+
goog.asserts.dom.assertIsHtmlButtonElement = function(value) {
|
|
15312
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.BUTTON);
|
|
15313
|
+
};
|
|
15289
15314
|
goog.asserts.dom.assertIsHtmlLinkElement = module$contents$goog$asserts$dom_assertIsHtmlLinkElement;
|
|
15290
15315
|
goog.asserts.dom.assertIsHtmlImageElement = function(value) {
|
|
15291
15316
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.IMG);
|
|
15292
15317
|
};
|
|
15293
|
-
goog.asserts.dom.assertIsHtmlAudioElement =
|
|
15294
|
-
|
|
15295
|
-
|
|
15318
|
+
goog.asserts.dom.assertIsHtmlAudioElement = function(value) {
|
|
15319
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.AUDIO);
|
|
15320
|
+
};
|
|
15321
|
+
goog.asserts.dom.assertIsHtmlVideoElement = function(value) {
|
|
15322
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.VIDEO);
|
|
15323
|
+
};
|
|
15324
|
+
goog.asserts.dom.assertIsHtmlInputElement = function(value) {
|
|
15325
|
+
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.INPUT);
|
|
15326
|
+
};
|
|
15296
15327
|
goog.asserts.dom.assertIsHtmlTextAreaElement = function(value) {
|
|
15297
15328
|
return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(value, goog.dom.TagName.TEXTAREA);
|
|
15298
15329
|
};
|
|
@@ -15567,8 +15598,8 @@ module$exports$safevalues$builders$html_formatter.HtmlFormatter = function() {
|
|
|
15567
15598
|
this.replacements = new Map();
|
|
15568
15599
|
};
|
|
15569
15600
|
module$exports$safevalues$builders$html_formatter.HtmlFormatter.prototype.format = function(format) {
|
|
15570
|
-
var $jscomp$this$
|
|
15571
|
-
return $jscomp$this$
|
|
15601
|
+
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) {
|
|
15602
|
+
return $jscomp$this$380122516$5.replaceFormattingString(openedTags, match);
|
|
15572
15603
|
});
|
|
15573
15604
|
if (openedTags.length !== 0) {
|
|
15574
15605
|
if (goog.DEBUG) {
|
|
@@ -15631,342 +15662,6 @@ function module$contents$safevalues$builders$html_formatter_getRandomString() {
|
|
|
15631
15662
|
function module$contents$safevalues$builders$html_formatter_checkExhaustive(value, msg) {
|
|
15632
15663
|
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
15633
15664
|
}
|
|
15634
|
-
;var module$contents$safevalues$builders$html_sanitizer$inert_fragment_module = module$contents$safevalues$builders$html_sanitizer$inert_fragment_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/inert_fragment.closure.js"};
|
|
15635
|
-
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
|
|
15636
|
-
if (goog.DEBUG && inertDocument.defaultView) {
|
|
15637
|
-
throw Error("createInertFragment called with non-inert document");
|
|
15638
|
-
}
|
|
15639
|
-
var range = inertDocument.createRange();
|
|
15640
|
-
range.selectNode(inertDocument.body);
|
|
15641
|
-
var temporarySafeHtml = (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(dirtyHtml);
|
|
15642
|
-
return (0,module$exports$safevalues$dom$globals$range.createContextualFragment)(range, temporarySafeHtml);
|
|
15643
|
-
}
|
|
15644
|
-
;var module$exports$safevalues$builders$html_sanitizer$no_clobber = {}, module$contents$safevalues$builders$html_sanitizer$no_clobber_module = module$contents$safevalues$builders$html_sanitizer$no_clobber_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/no_clobber.closure.js"};
|
|
15645
|
-
function module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(node) {
|
|
15646
|
-
var nodeName = node.nodeName;
|
|
15647
|
-
return typeof nodeName === "string" ? nodeName : "FORM";
|
|
15648
|
-
}
|
|
15649
|
-
module$exports$safevalues$builders$html_sanitizer$no_clobber.getNodeName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName;
|
|
15650
|
-
function module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(node) {
|
|
15651
|
-
return node.nodeType === 3;
|
|
15652
|
-
}
|
|
15653
|
-
module$exports$safevalues$builders$html_sanitizer$no_clobber.isText = module$contents$safevalues$builders$html_sanitizer$no_clobber_isText;
|
|
15654
|
-
function module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(node) {
|
|
15655
|
-
var nodeType = node.nodeType;
|
|
15656
|
-
return nodeType === 1 || typeof nodeType !== "number";
|
|
15657
|
-
}
|
|
15658
|
-
module$exports$safevalues$builders$html_sanitizer$no_clobber.isElement = module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement;
|
|
15659
|
-
var module$exports$safevalues$builders$html_sanitizer$resource_url_policy = {}, module$contents$safevalues$builders$html_sanitizer$resource_url_policy_module = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/resource_url_policy.closure.js"};
|
|
15660
|
-
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType = {STYLE_ELEMENT:0, STYLE_ATTRIBUTE:1, HTML_ATTRIBUTE:2};
|
|
15661
|
-
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ELEMENT] = "STYLE_ELEMENT";
|
|
15662
|
-
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ATTRIBUTE] = "STYLE_ATTRIBUTE";
|
|
15663
|
-
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE] = "HTML_ATTRIBUTE";
|
|
15664
|
-
function module$contents$safevalues$builders$html_sanitizer$resource_url_policy_StyleElementOrAttributeResourceUrlPolicyHints() {
|
|
15665
|
-
}
|
|
15666
|
-
function module$contents$safevalues$builders$html_sanitizer$resource_url_policy_HtmlAttributeResourceUrlPolicyHints() {
|
|
15667
|
-
}
|
|
15668
|
-
function module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(value) {
|
|
15669
|
-
try {
|
|
15670
|
-
return new URL(value, window.document.baseURI);
|
|
15671
|
-
} catch (e) {
|
|
15672
|
-
return new URL("about:invalid");
|
|
15673
|
-
}
|
|
15674
|
-
}
|
|
15675
|
-
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.parseUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl;
|
|
15676
|
-
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/sanitizer_table.closure.js"};
|
|
15677
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable = function(allowedElements, elementPolicies, allowedGlobalAttributes, globalAttributePolicies, globallyAllowedAttributePrefixes) {
|
|
15678
|
-
this.allowedElements = allowedElements;
|
|
15679
|
-
this.elementPolicies = elementPolicies;
|
|
15680
|
-
this.allowedGlobalAttributes = allowedGlobalAttributes;
|
|
15681
|
-
this.globalAttributePolicies = globalAttributePolicies;
|
|
15682
|
-
this.globallyAllowedAttributePrefixes = globallyAllowedAttributePrefixes;
|
|
15683
|
-
};
|
|
15684
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable.prototype.isAllowedElement = function(elementName) {
|
|
15685
|
-
return elementName !== "FORM" && (this.allowedElements.has(elementName) || this.elementPolicies.has(elementName));
|
|
15686
|
-
};
|
|
15687
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable.prototype.getAttributePolicy = function(attributeName, elementName) {
|
|
15688
|
-
var elementPolicy = this.elementPolicies.get(elementName);
|
|
15689
|
-
if (elementPolicy == null ? 0 : elementPolicy.has(attributeName)) {
|
|
15690
|
-
return elementPolicy.get(attributeName);
|
|
15691
|
-
}
|
|
15692
|
-
if (this.allowedGlobalAttributes.has(attributeName)) {
|
|
15693
|
-
return {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP};
|
|
15694
|
-
}
|
|
15695
|
-
var globalPolicy = this.globalAttributePolicies.get(attributeName);
|
|
15696
|
-
return globalPolicy ? globalPolicy : this.globallyAllowedAttributePrefixes && [].concat((0,$jscomp.arrayFromIterable)(this.globallyAllowedAttributePrefixes)).some(function(prefix) {
|
|
15697
|
-
return attributeName.indexOf(prefix) === 0;
|
|
15698
|
-
}) ? {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP} : {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP};
|
|
15699
|
-
};
|
|
15700
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction = {DROP:0, KEEP:1, KEEP_AND_SANITIZE_URL:2, KEEP_AND_NORMALIZE:3, KEEP_AND_SANITIZE_STYLE:4, KEEP_AND_USE_RESOURCE_URL_POLICY:5, KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:6};
|
|
15701
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP] = "DROP";
|
|
15702
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP] = "KEEP";
|
|
15703
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL] = "KEEP_AND_SANITIZE_URL";
|
|
15704
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE] = "KEEP_AND_NORMALIZE";
|
|
15705
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE] = "KEEP_AND_SANITIZE_STYLE";
|
|
15706
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY] = "KEEP_AND_USE_RESOURCE_URL_POLICY";
|
|
15707
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET] = "KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET";
|
|
15708
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicy = function() {
|
|
15709
|
-
};
|
|
15710
|
-
var module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_FORBIDDEN_CUSTOM_ELEMENT_NAMES = new Set("ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "));
|
|
15711
|
-
function module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement(tag) {
|
|
15712
|
-
return !module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_FORBIDDEN_CUSTOM_ELEMENT_NAMES.has(tag.toUpperCase()) && /^[a-z][-_.a-z0-9]*-[-_.a-z0-9]*$/i.test(tag);
|
|
15713
|
-
}
|
|
15714
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.isCustomElement = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement;
|
|
15715
|
-
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/default_sanitizer_table.closure.js"},
|
|
15716
|
-
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
|
|
15717
|
-
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES = [["A", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["AREA", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],
|
|
15718
|
-
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}],
|
|
15719
|
-
["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])], ["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}], ["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],
|
|
15720
|
-
["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]], module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES =
|
|
15721
|
-
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
15722
|
-
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES = [["dir", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
15723
|
-
return new Map([["dir", new Set(["auto", "ltr", "rtl"])]]);
|
|
15724
|
-
})}], ["async", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
15725
|
-
return new Map([["async", new Set(["async"])]]);
|
|
15726
|
-
})}], ["cite", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}], ["loading", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
15727
|
-
return new Map([["loading", new Set(["eager", "lazy"])]]);
|
|
15728
|
-
})}], ["poster", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}], ["target", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
15729
|
-
return new Map([["target", new Set(["_self", "_blank"])]]);
|
|
15730
|
-
})}]];
|
|
15731
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
15732
|
-
new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES));
|
|
15733
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON", "INPUT"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
15734
|
-
new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15735
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "name"]);
|
|
15736
|
-
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
15737
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]]);
|
|
15738
|
-
})));
|
|
15739
|
-
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.SUPER_LENIENT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15740
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat("STYLE TITLE INPUT TEXTAREA BUTTON LABEL".split(" "));
|
|
15741
|
-
})), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
15742
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "tabindex", "contenteditable", "name"]);
|
|
15743
|
-
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
15744
|
-
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]]);
|
|
15745
|
-
})), new Set(["data-", "aria-"]));
|
|
15746
|
-
var module$exports$safevalues$builders$html_sanitizer$html_sanitizer = {}, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/html_sanitizer.closure.js"};
|
|
15747
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizer = function() {
|
|
15748
|
-
};
|
|
15749
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.CssSanitizer = function() {
|
|
15750
|
-
};
|
|
15751
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl = function(sanitizerTable, token, styleElementSanitizer, styleAttributeSanitizer, resourceUrlPolicy) {
|
|
15752
|
-
this.sanitizerTable = sanitizerTable;
|
|
15753
|
-
this.styleElementSanitizer = styleElementSanitizer;
|
|
15754
|
-
this.styleAttributeSanitizer = styleAttributeSanitizer;
|
|
15755
|
-
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
15756
|
-
this.SHADOW_DOM_INTERNAL_CSS = ":host{display:block;clip-path:inset(0);overflow:hidden}";
|
|
15757
|
-
this.changes = [];
|
|
15758
|
-
module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
15759
|
-
};
|
|
15760
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeAssertUnchanged = function(html) {
|
|
15761
|
-
goog.DEBUG && (this.changes = []);
|
|
15762
|
-
var sanitizedHtml = this.sanitize(html);
|
|
15763
|
-
if (goog.DEBUG && this.changes.length !== 0) {
|
|
15764
|
-
throw Error('Unexpected change to HTML value as a result of sanitization. Input: "' + (html + '", sanitized output: "' + sanitizedHtml + '"\nList of changes:') + this.changes.join("\n"));
|
|
15765
|
-
}
|
|
15766
|
-
return sanitizedHtml;
|
|
15767
|
-
};
|
|
15768
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize = function(html) {
|
|
15769
|
-
var inertDocument = document.implementation.createHTMLDocument("");
|
|
15770
|
-
return (0,module$exports$safevalues$builders$html_builders.nodeToHtmlInternal)(this.sanitizeToFragmentInternal(html, inertDocument), inertDocument.body);
|
|
15771
|
-
};
|
|
15772
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
15773
|
-
var inertDocument = document.implementation.createHTMLDocument("");
|
|
15774
|
-
return this.styleElementSanitizer && this.styleAttributeSanitizer ? this.sanitizeWithCssToFragment(html, inertDocument) : this.sanitizeToFragmentInternal(html, inertDocument);
|
|
15775
|
-
};
|
|
15776
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment = function(htmlWithCss, inertDocument) {
|
|
15777
|
-
var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:"closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
|
|
15778
|
-
internalStyle.textContent = this.SHADOW_DOM_INTERNAL_CSS;
|
|
15779
|
-
internalStyle.id = "safevalues-internal-style";
|
|
15780
|
-
shadow.appendChild(internalStyle);
|
|
15781
|
-
shadow.appendChild(sanitized);
|
|
15782
|
-
var fragment = inertDocument.createDocumentFragment();
|
|
15783
|
-
fragment.appendChild(elem);
|
|
15784
|
-
return fragment;
|
|
15785
|
-
};
|
|
15786
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
15787
|
-
for (var $jscomp$this$m1085474118$13 = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
15788
|
-
return $jscomp$this$m1085474118$13.nodeFilter(n);
|
|
15789
|
-
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
15790
|
-
var sanitizedNode = void 0;
|
|
15791
|
-
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
15792
|
-
if (this.styleElementSanitizer && sanitizedParent.nodeName === "STYLE") {
|
|
15793
|
-
var sanitizedCss = this.styleElementSanitizer(currentNode.data);
|
|
15794
|
-
sanitizedNode = this.createTextNode(sanitizedCss);
|
|
15795
|
-
} else {
|
|
15796
|
-
sanitizedNode = this.sanitizeTextNode(currentNode);
|
|
15797
|
-
}
|
|
15798
|
-
} else if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(currentNode)) {
|
|
15799
|
-
sanitizedNode = this.sanitizeElementNode(currentNode, inertDocument);
|
|
15800
|
-
} else {
|
|
15801
|
-
var message = "";
|
|
15802
|
-
goog.DEBUG && (message = "Node is not of type text or element");
|
|
15803
|
-
throw Error(message);
|
|
15804
|
-
}
|
|
15805
|
-
sanitizedParent.appendChild(sanitizedNode);
|
|
15806
|
-
if (currentNode = treeWalker.firstChild()) {
|
|
15807
|
-
sanitizedParent = sanitizedNode;
|
|
15808
|
-
} else {
|
|
15809
|
-
for (; !(currentNode = treeWalker.nextSibling()) && (currentNode = treeWalker.parentNode());) {
|
|
15810
|
-
sanitizedParent = sanitizedParent.parentNode;
|
|
15811
|
-
}
|
|
15812
|
-
}
|
|
15813
|
-
}
|
|
15814
|
-
return sanitizedFragment;
|
|
15815
|
-
};
|
|
15816
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.createTextNode = function(text) {
|
|
15817
|
-
return document.createTextNode(text);
|
|
15818
|
-
};
|
|
15819
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeTextNode = function(textNode) {
|
|
15820
|
-
return this.createTextNode(textNode.data);
|
|
15821
|
-
};
|
|
15822
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
15823
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$32 = (0,$jscomp.makeIterator)(dirtyAttributes), $jscomp$key$m1085474118$34$ = $jscomp$iter$32.next(); !$jscomp$key$m1085474118$34$.done; $jscomp$key$m1085474118$34$ = $jscomp$iter$32.next()) {
|
|
15824
|
-
var $jscomp$destructuring$var31 = $jscomp$key$m1085474118$34$.value, name = $jscomp$destructuring$var31.name, value = $jscomp$destructuring$var31.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
15825
|
-
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
15826
|
-
switch(policy.policyAction) {
|
|
15827
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
15828
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
15829
|
-
break;
|
|
15830
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL:
|
|
15831
|
-
var sanitizedAttrUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl(value);
|
|
15832
|
-
sanitizedAttrUrl !== value && this.recordChange("Url in attribute " + name + ' was modified during sanitization. Original url:"' + value + '" was sanitized to: "' + sanitizedAttrUrl + '"');
|
|
15833
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, sanitizedAttrUrl);
|
|
15834
|
-
break;
|
|
15835
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE:
|
|
15836
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value.toLowerCase());
|
|
15837
|
-
break;
|
|
15838
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE:
|
|
15839
|
-
if (this.styleAttributeSanitizer) {
|
|
15840
|
-
var sanitizedCss = this.styleAttributeSanitizer(value);
|
|
15841
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, sanitizedCss);
|
|
15842
|
-
} else {
|
|
15843
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
15844
|
-
}
|
|
15845
|
-
break;
|
|
15846
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY:
|
|
15847
|
-
if (this.resourceUrlPolicy) {
|
|
15848
|
-
var hints = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, url = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(value), sanitizedUrl = this.resourceUrlPolicy(url, hints);
|
|
15849
|
-
sanitizedUrl && module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, sanitizedUrl.toString());
|
|
15850
|
-
} else {
|
|
15851
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
15852
|
-
}
|
|
15853
|
-
break;
|
|
15854
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
15855
|
-
if (this.resourceUrlPolicy) {
|
|
15856
|
-
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$31 = (0,$jscomp.makeIterator)(srcset.parts), $jscomp$key$m1085474118$33$part = $jscomp$iter$31.next(); !$jscomp$key$m1085474118$33$part.done; $jscomp$key$m1085474118$33$part =
|
|
15857
|
-
$jscomp$iter$31.next()) {
|
|
15858
|
-
var part = $jscomp$key$m1085474118$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);
|
|
15859
|
-
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
15860
|
-
}
|
|
15861
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
15862
|
-
} else {
|
|
15863
|
-
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
15864
|
-
}
|
|
15865
|
-
break;
|
|
15866
|
-
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP:
|
|
15867
|
-
this.recordChange("Attribute: " + name + " was dropped");
|
|
15868
|
-
break;
|
|
15869
|
-
default:
|
|
15870
|
-
goog.DEBUG && module$contents$safevalues$builders$html_sanitizer$html_sanitizer_checkExhaustive(policy.policyAction, "Unhandled AttributePolicyAction case");
|
|
15871
|
-
}
|
|
15872
|
-
} else {
|
|
15873
|
-
this.recordChange("Not all conditions satisfied for attribute: " + name + ".");
|
|
15874
|
-
}
|
|
15875
|
-
}
|
|
15876
|
-
return newNode;
|
|
15877
|
-
};
|
|
15878
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.nodeFilter = function(node) {
|
|
15879
|
-
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(node)) {
|
|
15880
|
-
return 1;
|
|
15881
|
-
}
|
|
15882
|
-
if (!module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(node)) {
|
|
15883
|
-
return 2;
|
|
15884
|
-
}
|
|
15885
|
-
var nodeName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(node);
|
|
15886
|
-
if (nodeName === null) {
|
|
15887
|
-
return this.recordChange("Node name was null for node: " + node), 2;
|
|
15888
|
-
}
|
|
15889
|
-
if (this.sanitizerTable.isAllowedElement(nodeName)) {
|
|
15890
|
-
return 1;
|
|
15891
|
-
}
|
|
15892
|
-
this.recordChange("Element: " + nodeName + " was dropped");
|
|
15893
|
-
return 2;
|
|
15894
|
-
};
|
|
15895
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.recordChange = function(errorMessage) {
|
|
15896
|
-
goog.DEBUG && this.changes.push(errorMessage);
|
|
15897
|
-
};
|
|
15898
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.satisfiesAllConditions = function(conditions, attrs) {
|
|
15899
|
-
if (!conditions) {
|
|
15900
|
-
return !0;
|
|
15901
|
-
}
|
|
15902
|
-
for (var $jscomp$iter$33 = (0,$jscomp.makeIterator)(conditions), $jscomp$key$m1085474118$35$ = $jscomp$iter$33.next(); !$jscomp$key$m1085474118$35$.done; $jscomp$key$m1085474118$35$ = $jscomp$iter$33.next()) {
|
|
15903
|
-
var $jscomp$destructuring$var33 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$35$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var33.next().value, expectedValues = $jscomp$destructuring$var33.next().value, $jscomp$optchain$tmpm1085474118$0 = void 0, value = ($jscomp$optchain$tmpm1085474118$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) == null ? void 0 : $jscomp$optchain$tmpm1085474118$0.value;
|
|
15904
|
-
if (value && !expectedValues.has(value)) {
|
|
15905
|
-
return !1;
|
|
15906
|
-
}
|
|
15907
|
-
}
|
|
15908
|
-
return !0;
|
|
15909
|
-
};
|
|
15910
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(el, name, value) {
|
|
15911
|
-
el.setAttribute(name, value);
|
|
15912
|
-
}
|
|
15913
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_SrcsetPart() {
|
|
15914
|
-
}
|
|
15915
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
15916
|
-
};
|
|
15917
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
15918
|
-
for (var parts = [], $jscomp$iter$34 = (0,$jscomp.makeIterator)(srcset.split(",")), $jscomp$key$m1085474118$36$part = $jscomp$iter$34.next(); !$jscomp$key$m1085474118$36$part.done; $jscomp$key$m1085474118$36$part = $jscomp$iter$34.next()) {
|
|
15919
|
-
var $jscomp$destructuring$var34 = (0,$jscomp.makeIterator)($jscomp$key$m1085474118$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;
|
|
15920
|
-
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
15921
|
-
}
|
|
15922
|
-
return {parts:parts};
|
|
15923
|
-
}
|
|
15924
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.parseSrcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset;
|
|
15925
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(srcset) {
|
|
15926
|
-
return srcset.parts.map(function(part) {
|
|
15927
|
-
var descriptor = part.descriptor;
|
|
15928
|
-
return "" + part.url + (descriptor ? " " + descriptor : "");
|
|
15929
|
-
}).join(" , ");
|
|
15930
|
-
}
|
|
15931
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.serializeSrcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset;
|
|
15932
|
-
var module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
15933
|
-
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE, module$exports$safevalues$internals$secrets.secretToken);
|
|
15934
|
-
});
|
|
15935
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml(html) {
|
|
15936
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitize(html);
|
|
15937
|
-
}
|
|
15938
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
15939
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(html) {
|
|
15940
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitizeAssertUnchanged(html);
|
|
15941
|
-
}
|
|
15942
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
15943
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment(html) {
|
|
15944
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitizeToFragment(html);
|
|
15945
|
-
}
|
|
15946
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
15947
|
-
var module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
15948
|
-
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE, module$exports$safevalues$internals$secrets.secretToken);
|
|
15949
|
-
});
|
|
15950
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtml = function(html) {
|
|
15951
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer.sanitize(html);
|
|
15952
|
-
};
|
|
15953
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(html) {
|
|
15954
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer.sanitizeAssertUnchanged(html);
|
|
15955
|
-
}
|
|
15956
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged;
|
|
15957
|
-
var module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
15958
|
-
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.SUPER_LENIENT_SANITIZER_TABLE, module$exports$safevalues$internals$secrets.secretToken);
|
|
15959
|
-
});
|
|
15960
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtml = function(html) {
|
|
15961
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer.sanitize(html);
|
|
15962
|
-
};
|
|
15963
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtmlAssertUnchanged(html) {
|
|
15964
|
-
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer.sanitizeAssertUnchanged(html);
|
|
15965
|
-
}
|
|
15966
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtmlAssertUnchanged;
|
|
15967
|
-
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_checkExhaustive(value, msg) {
|
|
15968
|
-
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
15969
|
-
}
|
|
15970
15665
|
;var module$exports$safevalues$builders$html_sanitizer$css$allowlists = {}, module$contents$safevalues$builders$html_sanitizer$css$allowlists_module = module$contents$safevalues$builders$html_sanitizer$css$allowlists_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/allowlists.closure.js"};
|
|
15971
15666
|
module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST = new Set("accent-color align-content align-items align-self alignment-baseline all appearance aspect-ratio backdrop-filter backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-position-x background-position-y background-repeat background-size block-size border border-block border-block-color border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-block-style border-block-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-end-end-radius border-end-start-radius border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline border-inline-color border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-start-end-radius border-start-start-radius border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow box-sizing caption-side caret-color clear clip clip-path clip-rule color color-interpolation color-interpolation-filters color-scheme column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns contain contain-intrinsic-block-size contain-intrinsic-height contain-intrinsic-inline-size contain-intrinsic-size contain-intrinsic-width content content-visibility counter-increment counter-reset counter-set cx cy d display dominant-baseline empty-cells field-sizing fill fill-opacity fill-rule filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float flood-color flood-opacity font font-family font-feature-settings font-kerning font-optical-sizing font-palette font-size font-size-adjust font-stretch font-style font-synthesis font-synthesis-small-caps font-synthesis-style font-synthesis-weight font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-emoji font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight forced-color-adjust gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows height hyphenate-character hyphenate-limit-chars hyphens image-orientation image-rendering inline-size inset inset-area inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start isolation justify-content justify-items justify-self left letter-spacing lighting-color line-break line-clamp line-gap-override line-height list-style list-style-image list-style-position list-style-type margin margin-block margin-block-end margin-block-start margin-bottom margin-inline margin-inline-end margin-inline-start margin-left margin-right margin-top marker marker-end marker-mid marker-start mask mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size mask-type max-block-size max-height max-inline-size max-width min-block-size min-height min-inline-size min-width mix-blend-mode object-fit object-position object-view-box opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-anchor overflow-block overflow-clip-margin overflow-inline overflow-wrap overflow-x overflow-y padding padding-block padding-block-end padding-block-start padding-bottom padding-inline padding-inline-end padding-inline-start padding-left padding-right padding-top paint-order perspective perspective-origin place-content place-items place-self position quotes r resize right rotate row-gap ruby-align ruby-position rx ry scale shape-image-threshold shape-margin shape-outside shape-rendering stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width tab-size table-layout text-align text-align-last text-anchor text-autospace text-box-edge text-box-trim text-combine-upright text-decoration text-decoration-color text-decoration-line text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-size-adjust text-spacing text-spacing-trim text-transform text-underline-offset text-underline-position text-wrap top transform transform-box transform-origin transform-style translate unicode-bidi vector-effect vertical-align visibility white-space white-space-collapse widows width will-change word-break word-spacing word-wrap writing-mode x y z-index zoom animation animation-composition animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-range animation-range-end animation-range-start animation-timeline animation-timing-function offset offset-anchor offset-distance offset-path offset-position offset-rotate transition transition-behavior transition-delay transition-duration transition-property transition-timing-function".split(" "));
|
|
15972
15667
|
module$exports$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST = new Set("alpha cubic-bezier linear-gradient matrix perspective radial-gradient rect repeating-linear-gradient repeating-radial-gradient rgb rgba rotate rotate3d rotatex rotatey rotatez scale scale3d scalex scaley scalez skew skewx skewy steps translate translate3d translatex translatey translatez url".split(" "));
|
|
@@ -16122,8 +15817,8 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16122
15817
|
if (Array.isArray(token)) {
|
|
16123
15818
|
tokens.push.apply(tokens, (0,$jscomp.arrayFromIterable)(token));
|
|
16124
15819
|
} else {
|
|
16125
|
-
var $jscomp$optchain$
|
|
16126
|
-
if (token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE || (($jscomp$optchain$
|
|
15820
|
+
var $jscomp$optchain$tmpm583190311$0 = void 0;
|
|
15821
|
+
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) {
|
|
16127
15822
|
tokens.push(token);
|
|
16128
15823
|
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF) {
|
|
16129
15824
|
return tokens;
|
|
@@ -16369,9 +16064,9 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16369
16064
|
repr:repr}) : {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER, repr:repr};
|
|
16370
16065
|
};
|
|
16371
16066
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace = function() {
|
|
16372
|
-
var $jscomp$this$
|
|
16067
|
+
var $jscomp$this$m583190311$26 = this;
|
|
16373
16068
|
return this.nextTwoInputCodePoints().every(function(c) {
|
|
16374
|
-
return $jscomp$this$
|
|
16069
|
+
return $jscomp$this$m583190311$26.isWhitespace(c);
|
|
16375
16070
|
});
|
|
16376
16071
|
};
|
|
16377
16072
|
module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape = function(codePoint1, codePoint2) {
|
|
@@ -16416,7 +16111,24 @@ module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.proto
|
|
|
16416
16111
|
function module$contents$safevalues$builders$html_sanitizer$css$tokenizer_tokenizeCss(css) {
|
|
16417
16112
|
return (new module$contents$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer(css)).tokenize();
|
|
16418
16113
|
}
|
|
16419
|
-
;var module$exports$safevalues$builders$html_sanitizer$
|
|
16114
|
+
;var module$exports$safevalues$builders$html_sanitizer$resource_url_policy = {}, module$contents$safevalues$builders$html_sanitizer$resource_url_policy_module = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/resource_url_policy.closure.js"};
|
|
16115
|
+
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType = {STYLE_ELEMENT:0, STYLE_ATTRIBUTE:1, HTML_ATTRIBUTE:2};
|
|
16116
|
+
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ELEMENT] = "STYLE_ELEMENT";
|
|
16117
|
+
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ATTRIBUTE] = "STYLE_ATTRIBUTE";
|
|
16118
|
+
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE] = "HTML_ATTRIBUTE";
|
|
16119
|
+
function module$contents$safevalues$builders$html_sanitizer$resource_url_policy_StyleElementOrAttributeResourceUrlPolicyHints() {
|
|
16120
|
+
}
|
|
16121
|
+
function module$contents$safevalues$builders$html_sanitizer$resource_url_policy_HtmlAttributeResourceUrlPolicyHints() {
|
|
16122
|
+
}
|
|
16123
|
+
function module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(value) {
|
|
16124
|
+
try {
|
|
16125
|
+
return new URL(value, window.document.baseURI);
|
|
16126
|
+
} catch (e) {
|
|
16127
|
+
return new URL("about:invalid");
|
|
16128
|
+
}
|
|
16129
|
+
}
|
|
16130
|
+
module$exports$safevalues$builders$html_sanitizer$resource_url_policy.parseUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl;
|
|
16131
|
+
var module$exports$safevalues$builders$html_sanitizer$css$sanitizer = {}, module$contents$safevalues$builders$html_sanitizer$css$sanitizer_module = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/css/sanitizer.closure.js"}, module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer =
|
|
16420
16132
|
function(propertyAllowlist, functionAllowlist, resourceUrlPolicy, allowKeyframes, propertyDiscarders) {
|
|
16421
16133
|
this.propertyAllowlist = propertyAllowlist;
|
|
16422
16134
|
this.functionAllowlist = functionAllowlist;
|
|
@@ -16441,126 +16153,445 @@ module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.pr
|
|
|
16441
16153
|
div.remove();
|
|
16442
16154
|
return style;
|
|
16443
16155
|
};
|
|
16444
|
-
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.hasShadowDomEscapingTokens = function(token, nextToken) {
|
|
16445
|
-
return token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON ? !1 : nextToken.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT && nextToken.ident.toLowerCase() === "host" || nextToken.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION && (nextToken.lowercaseName === "host" ||
|
|
16446
|
-
nextToken.lowercaseName === "host-context") ? !0 : !1;
|
|
16156
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.hasShadowDomEscapingTokens = function(token, nextToken) {
|
|
16157
|
+
return token.tokenKind !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON ? !1 : nextToken.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT && nextToken.ident.toLowerCase() === "host" || nextToken.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION && (nextToken.lowercaseName === "host" ||
|
|
16158
|
+
nextToken.lowercaseName === "host-context") ? !0 : !1;
|
|
16159
|
+
};
|
|
16160
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeSelector = function(selector) {
|
|
16161
|
+
for (var tokens = module$contents$safevalues$builders$html_sanitizer$css$tokenizer_tokenizeCss(selector), i = 0; i < tokens.length - 1; i++) {
|
|
16162
|
+
if (this.hasShadowDomEscapingTokens(tokens[i], tokens[i + 1])) {
|
|
16163
|
+
return null;
|
|
16164
|
+
}
|
|
16165
|
+
}
|
|
16166
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens(tokens);
|
|
16167
|
+
};
|
|
16168
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeValue = function(propertyName, value, calledFromStyleElement) {
|
|
16169
|
+
for (var tokens = module$contents$safevalues$builders$html_sanitizer$css$tokenizer_tokenizeCss(value), i = 0; i < tokens.length; i++) {
|
|
16170
|
+
var token = tokens[i];
|
|
16171
|
+
if (token.tokenKind === module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION) {
|
|
16172
|
+
if (!this.functionAllowlist.has(token.lowercaseName)) {
|
|
16173
|
+
return null;
|
|
16174
|
+
}
|
|
16175
|
+
if (token.lowercaseName === "url") {
|
|
16176
|
+
var nextToken = tokens[i + 1], $jscomp$optchain$tmpm1877845113$0 = void 0;
|
|
16177
|
+
if ((($jscomp$optchain$tmpm1877845113$0 = nextToken) == null ? void 0 : $jscomp$optchain$tmpm1877845113$0.tokenKind) !== module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING) {
|
|
16178
|
+
return null;
|
|
16179
|
+
}
|
|
16180
|
+
var parsedUrl = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(nextToken.value);
|
|
16181
|
+
this.resourceUrlPolicy && (parsedUrl = this.resourceUrlPolicy(parsedUrl, {type:calledFromStyleElement ? module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ELEMENT : module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ATTRIBUTE, propertyName:propertyName}));
|
|
16182
|
+
if (!parsedUrl) {
|
|
16183
|
+
return null;
|
|
16184
|
+
}
|
|
16185
|
+
tokens[i + 1] = {tokenKind:module$exports$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING, value:parsedUrl.toString()};
|
|
16186
|
+
i++;
|
|
16187
|
+
}
|
|
16188
|
+
}
|
|
16189
|
+
}
|
|
16190
|
+
return module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens(tokens);
|
|
16191
|
+
};
|
|
16192
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeKeyframeRule = function(rule) {
|
|
16193
|
+
var sanitizedProperties = this.sanitizeStyleDeclaration(rule.style, !0);
|
|
16194
|
+
return rule.keyText + " { " + sanitizedProperties + " }";
|
|
16195
|
+
};
|
|
16196
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeKeyframesRule = function(keyframesRule) {
|
|
16197
|
+
if (!this.allowKeyframes) {
|
|
16198
|
+
return null;
|
|
16199
|
+
}
|
|
16200
|
+
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()) {
|
|
16201
|
+
var rule = $jscomp$key$m1877845113$1$rule.value;
|
|
16202
|
+
if (rule instanceof CSSKeyframeRule) {
|
|
16203
|
+
var sanitizedRule = this.sanitizeKeyframeRule(rule);
|
|
16204
|
+
sanitizedRule && keyframeRules.push(sanitizedRule);
|
|
16205
|
+
}
|
|
16206
|
+
}
|
|
16207
|
+
return "@keyframes " + module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(keyframesRule.name) + " { " + keyframeRules.join(" ") + " }";
|
|
16208
|
+
};
|
|
16209
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.isPropertyNameAllowed = function(name) {
|
|
16210
|
+
if (!this.propertyAllowlist.has(name)) {
|
|
16211
|
+
return !1;
|
|
16212
|
+
}
|
|
16213
|
+
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()) {
|
|
16214
|
+
var discarder = $jscomp$key$m1877845113$2$discarder.value;
|
|
16215
|
+
if (discarder(name)) {
|
|
16216
|
+
return !1;
|
|
16217
|
+
}
|
|
16218
|
+
}
|
|
16219
|
+
return !0;
|
|
16220
|
+
};
|
|
16221
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeProperty = function(name, value, isImportant, calledFromStyleElement) {
|
|
16222
|
+
if (!this.isPropertyNameAllowed(name)) {
|
|
16223
|
+
return null;
|
|
16224
|
+
}
|
|
16225
|
+
var sanitizedValue = this.sanitizeValue(name, value, calledFromStyleElement);
|
|
16226
|
+
return sanitizedValue ? module$contents$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(name) + ": " + sanitizedValue + (isImportant ? " !important" : "") : null;
|
|
16227
|
+
};
|
|
16228
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16229
|
+
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()) {
|
|
16230
|
+
var name = $jscomp$key$m1877845113$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16231
|
+
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16232
|
+
}
|
|
16233
|
+
return sanitizedProperties;
|
|
16234
|
+
};
|
|
16235
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleRule = function(rule) {
|
|
16236
|
+
var selector = this.sanitizeSelector(rule.selectorText);
|
|
16237
|
+
if (!selector) {
|
|
16238
|
+
return null;
|
|
16239
|
+
}
|
|
16240
|
+
var sanitizedProperties = this.sanitizeStyleDeclaration(rule.style, !0);
|
|
16241
|
+
return selector + " { " + sanitizedProperties + " }";
|
|
16242
|
+
};
|
|
16243
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement = function(cssText) {
|
|
16244
|
+
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()) {
|
|
16245
|
+
var rule = $jscomp$key$m1877845113$4$rule.value;
|
|
16246
|
+
if (rule instanceof CSSStyleRule) {
|
|
16247
|
+
var sanitizedRule = this.sanitizeStyleRule(rule);
|
|
16248
|
+
sanitizedRule && output.push(sanitizedRule);
|
|
16249
|
+
} else if (rule instanceof CSSKeyframesRule) {
|
|
16250
|
+
var sanitizedRule$jscomp$0 = this.sanitizeKeyframesRule(rule);
|
|
16251
|
+
sanitizedRule$jscomp$0 && output.push(sanitizedRule$jscomp$0);
|
|
16252
|
+
}
|
|
16253
|
+
}
|
|
16254
|
+
return output.join("\n");
|
|
16255
|
+
};
|
|
16256
|
+
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleAttribute = function(cssText) {
|
|
16257
|
+
var styleDeclaration = this.getStyleDeclaration(cssText);
|
|
16258
|
+
return this.sanitizeStyleDeclaration(styleDeclaration, !1);
|
|
16259
|
+
};
|
|
16260
|
+
function module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement(cssText, propertyAllowlist, functionAllowlist, resourceUrlPolicy, allowKeyframes, propertyDiscarders) {
|
|
16261
|
+
return (new module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(propertyAllowlist, functionAllowlist, resourceUrlPolicy, allowKeyframes, propertyDiscarders)).sanitizeStyleElement(cssText);
|
|
16262
|
+
}
|
|
16263
|
+
module$exports$safevalues$builders$html_sanitizer$css$sanitizer.sanitizeStyleElement = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleElement;
|
|
16264
|
+
function module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute(cssText, propertyAllowlist, functionAllowlist, resourceUrlPolicy, propertyDiscarders) {
|
|
16265
|
+
return (new module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(propertyAllowlist, functionAllowlist, resourceUrlPolicy, !1, propertyDiscarders)).sanitizeStyleAttribute(cssText);
|
|
16266
|
+
}
|
|
16267
|
+
module$exports$safevalues$builders$html_sanitizer$css$sanitizer.sanitizeStyleAttribute = module$contents$safevalues$builders$html_sanitizer$css$sanitizer_sanitizeStyleAttribute;
|
|
16268
|
+
var module$contents$safevalues$builders$html_sanitizer$inert_fragment_module = module$contents$safevalues$builders$html_sanitizer$inert_fragment_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/inert_fragment.closure.js"};
|
|
16269
|
+
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
|
|
16270
|
+
if (goog.DEBUG && inertDocument.defaultView) {
|
|
16271
|
+
throw Error("createInertFragment called with non-inert document");
|
|
16272
|
+
}
|
|
16273
|
+
var range = inertDocument.createRange();
|
|
16274
|
+
range.selectNode(inertDocument.body);
|
|
16275
|
+
var temporarySafeHtml = (0,module$exports$safevalues$internals$html_impl.createHtmlInternal)(dirtyHtml);
|
|
16276
|
+
return (0,module$exports$safevalues$dom$globals$range.createContextualFragment)(range, temporarySafeHtml);
|
|
16277
|
+
}
|
|
16278
|
+
;var module$exports$safevalues$builders$html_sanitizer$no_clobber = {}, module$contents$safevalues$builders$html_sanitizer$no_clobber_module = module$contents$safevalues$builders$html_sanitizer$no_clobber_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/no_clobber.closure.js"};
|
|
16279
|
+
function module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(node) {
|
|
16280
|
+
var nodeName = node.nodeName;
|
|
16281
|
+
return typeof nodeName === "string" ? nodeName : "FORM";
|
|
16282
|
+
}
|
|
16283
|
+
module$exports$safevalues$builders$html_sanitizer$no_clobber.getNodeName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName;
|
|
16284
|
+
function module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(node) {
|
|
16285
|
+
return node.nodeType === 3;
|
|
16286
|
+
}
|
|
16287
|
+
module$exports$safevalues$builders$html_sanitizer$no_clobber.isText = module$contents$safevalues$builders$html_sanitizer$no_clobber_isText;
|
|
16288
|
+
function module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(node) {
|
|
16289
|
+
var nodeType = node.nodeType;
|
|
16290
|
+
return nodeType === 1 || typeof nodeType !== "number";
|
|
16291
|
+
}
|
|
16292
|
+
module$exports$safevalues$builders$html_sanitizer$no_clobber.isElement = module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement;
|
|
16293
|
+
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/sanitizer_table.closure.js"};
|
|
16294
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable = function(allowedElements, elementPolicies, allowedGlobalAttributes, globalAttributePolicies, globallyAllowedAttributePrefixes) {
|
|
16295
|
+
this.allowedElements = allowedElements;
|
|
16296
|
+
this.elementPolicies = elementPolicies;
|
|
16297
|
+
this.allowedGlobalAttributes = allowedGlobalAttributes;
|
|
16298
|
+
this.globalAttributePolicies = globalAttributePolicies;
|
|
16299
|
+
this.globallyAllowedAttributePrefixes = globallyAllowedAttributePrefixes;
|
|
16300
|
+
};
|
|
16301
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable.prototype.isAllowedElement = function(elementName) {
|
|
16302
|
+
return elementName !== "FORM" && (this.allowedElements.has(elementName) || this.elementPolicies.has(elementName));
|
|
16303
|
+
};
|
|
16304
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable.prototype.getAttributePolicy = function(attributeName, elementName) {
|
|
16305
|
+
var elementPolicy = this.elementPolicies.get(elementName);
|
|
16306
|
+
if (elementPolicy == null ? 0 : elementPolicy.has(attributeName)) {
|
|
16307
|
+
return elementPolicy.get(attributeName);
|
|
16308
|
+
}
|
|
16309
|
+
if (this.allowedGlobalAttributes.has(attributeName)) {
|
|
16310
|
+
return {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP};
|
|
16311
|
+
}
|
|
16312
|
+
var globalPolicy = this.globalAttributePolicies.get(attributeName);
|
|
16313
|
+
return globalPolicy ? globalPolicy : this.globallyAllowedAttributePrefixes && [].concat((0,$jscomp.arrayFromIterable)(this.globallyAllowedAttributePrefixes)).some(function(prefix) {
|
|
16314
|
+
return attributeName.indexOf(prefix) === 0;
|
|
16315
|
+
}) ? {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP} : {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP};
|
|
16316
|
+
};
|
|
16317
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction = {DROP:0, KEEP:1, KEEP_AND_SANITIZE_URL:2, KEEP_AND_NORMALIZE:3, KEEP_AND_SANITIZE_STYLE:4, KEEP_AND_USE_RESOURCE_URL_POLICY:5, KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:6};
|
|
16318
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP] = "DROP";
|
|
16319
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP] = "KEEP";
|
|
16320
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL] = "KEEP_AND_SANITIZE_URL";
|
|
16321
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE] = "KEEP_AND_NORMALIZE";
|
|
16322
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE] = "KEEP_AND_SANITIZE_STYLE";
|
|
16323
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY] = "KEEP_AND_USE_RESOURCE_URL_POLICY";
|
|
16324
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET] = "KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET";
|
|
16325
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicy = function() {
|
|
16326
|
+
};
|
|
16327
|
+
var module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_FORBIDDEN_CUSTOM_ELEMENT_NAMES = new Set("ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "));
|
|
16328
|
+
function module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement(tag) {
|
|
16329
|
+
return !module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_FORBIDDEN_CUSTOM_ELEMENT_NAMES.has(tag.toUpperCase()) && /^[a-z][-_.a-z0-9]*-[-_.a-z0-9]*$/i.test(tag);
|
|
16330
|
+
}
|
|
16331
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.isCustomElement = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement;
|
|
16332
|
+
var module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table = {}, module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module = module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/sanitizer_table/default_sanitizer_table.closure.js"},
|
|
16333
|
+
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS = "ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "),
|
|
16334
|
+
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES = [["A", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["AREA", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],
|
|
16335
|
+
["LINK", new Map([["href", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY, conditions:new Map([["rel", new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])], ["SOURCE", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}],
|
|
16336
|
+
["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])], ["IMG", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}], ["srcset", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],
|
|
16337
|
+
["VIDEO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])], ["AUDIO", new Map([["src", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]], module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES =
|
|
16338
|
+
"title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
|
|
16339
|
+
module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES = [["dir", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16340
|
+
return new Map([["dir", new Set(["auto", "ltr", "rtl"])]]);
|
|
16341
|
+
})}], ["async", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16342
|
+
return new Map([["async", new Set(["async"])]]);
|
|
16343
|
+
})}], ["cite", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}], ["loading", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16344
|
+
return new Map([["loading", new Set(["eager", "lazy"])]]);
|
|
16345
|
+
})}], ["poster", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}], ["target", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$safevalues$internals$pure_pure(function() {
|
|
16346
|
+
return new Map([["target", new Set(["_self", "_blank"])]]);
|
|
16347
|
+
})}]];
|
|
16348
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
16349
|
+
new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES));
|
|
16350
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON", "INPUT"])), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES),
|
|
16351
|
+
new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
16352
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "name"]);
|
|
16353
|
+
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
16354
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]]);
|
|
16355
|
+
})));
|
|
16356
|
+
module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.SUPER_LENIENT_SANITIZER_TABLE = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
16357
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat("STYLE TITLE INPUT TEXTAREA BUTTON LABEL".split(" "));
|
|
16358
|
+
})), new Map(module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$safevalues$internals$pure_pure(function() {
|
|
16359
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class", "id", "tabindex", "contenteditable", "name"]);
|
|
16360
|
+
})), new Map(module$contents$safevalues$internals$pure_pure(function() {
|
|
16361
|
+
return module$contents$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]]);
|
|
16362
|
+
})), new Set(["data-", "aria-"]));
|
|
16363
|
+
var module$exports$safevalues$builders$html_sanitizer$html_sanitizer = {}, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/html_sanitizer.closure.js"};
|
|
16364
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizer = function() {
|
|
16365
|
+
};
|
|
16366
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.CssSanitizer = function() {
|
|
16367
|
+
};
|
|
16368
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl = function(sanitizerTable, token, styleElementSanitizer, styleAttributeSanitizer, resourceUrlPolicy) {
|
|
16369
|
+
this.sanitizerTable = sanitizerTable;
|
|
16370
|
+
this.styleElementSanitizer = styleElementSanitizer;
|
|
16371
|
+
this.styleAttributeSanitizer = styleAttributeSanitizer;
|
|
16372
|
+
this.resourceUrlPolicy = resourceUrlPolicy;
|
|
16373
|
+
this.SHADOW_DOM_INTERNAL_CSS = ":host{display:block;clip-path:inset(0);overflow:hidden}";
|
|
16374
|
+
this.changes = [];
|
|
16375
|
+
module$contents$safevalues$internals$secrets_ensureTokenIsValid(token);
|
|
16376
|
+
};
|
|
16377
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeAssertUnchanged = function(html) {
|
|
16378
|
+
goog.DEBUG && (this.changes = []);
|
|
16379
|
+
var sanitizedHtml = this.sanitize(html);
|
|
16380
|
+
if (goog.DEBUG && this.changes.length !== 0) {
|
|
16381
|
+
throw Error('Unexpected change to HTML value as a result of sanitization. Input: "' + (html + '", sanitized output: "' + sanitizedHtml + '"\nList of changes:') + this.changes.join("\n"));
|
|
16382
|
+
}
|
|
16383
|
+
return sanitizedHtml;
|
|
16384
|
+
};
|
|
16385
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize = function(html) {
|
|
16386
|
+
var inertDocument = document.implementation.createHTMLDocument("");
|
|
16387
|
+
return (0,module$exports$safevalues$builders$html_builders.nodeToHtmlInternal)(this.sanitizeToFragmentInternal(html, inertDocument), inertDocument.body);
|
|
16447
16388
|
};
|
|
16448
|
-
module$
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
return null;
|
|
16452
|
-
}
|
|
16453
|
-
}
|
|
16454
|
-
return module$contents$safevalues$builders$html_sanitizer$css$serializer_serializeTokens(tokens);
|
|
16389
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
16390
|
+
var inertDocument = document.implementation.createHTMLDocument("");
|
|
16391
|
+
return this.styleElementSanitizer && this.styleAttributeSanitizer ? this.sanitizeWithCssToFragment(html, inertDocument) : this.sanitizeToFragmentInternal(html, inertDocument);
|
|
16455
16392
|
};
|
|
16456
|
-
module$
|
|
16457
|
-
|
|
16458
|
-
|
|
16459
|
-
|
|
16460
|
-
|
|
16461
|
-
|
|
16393
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment = function(htmlWithCss, inertDocument) {
|
|
16394
|
+
var elem = document.createElement("safevalues-with-css"), shadow = elem.attachShadow({mode:"closed"}), sanitized = this.sanitizeToFragmentInternal(htmlWithCss, inertDocument), internalStyle = document.createElement("style");
|
|
16395
|
+
internalStyle.textContent = this.SHADOW_DOM_INTERNAL_CSS;
|
|
16396
|
+
internalStyle.id = "safevalues-internal-style";
|
|
16397
|
+
shadow.appendChild(internalStyle);
|
|
16398
|
+
shadow.appendChild(sanitized);
|
|
16399
|
+
var fragment = inertDocument.createDocumentFragment();
|
|
16400
|
+
fragment.appendChild(elem);
|
|
16401
|
+
return fragment;
|
|
16402
|
+
};
|
|
16403
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
16404
|
+
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) {
|
|
16405
|
+
return $jscomp$this$m1803429925$13.nodeFilter(n);
|
|
16406
|
+
}), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; currentNode !== null;) {
|
|
16407
|
+
var sanitizedNode = void 0;
|
|
16408
|
+
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
16409
|
+
if (this.styleElementSanitizer && sanitizedParent.nodeName === "STYLE") {
|
|
16410
|
+
var sanitizedCss = this.styleElementSanitizer(currentNode.data);
|
|
16411
|
+
sanitizedNode = this.createTextNode(sanitizedCss);
|
|
16412
|
+
} else {
|
|
16413
|
+
sanitizedNode = this.sanitizeTextNode(currentNode);
|
|
16462
16414
|
}
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16473
|
-
|
|
16474
|
-
|
|
16415
|
+
} else if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(currentNode)) {
|
|
16416
|
+
sanitizedNode = this.sanitizeElementNode(currentNode, inertDocument);
|
|
16417
|
+
} else {
|
|
16418
|
+
var message = "";
|
|
16419
|
+
goog.DEBUG && (message = "Node is not of type text or element");
|
|
16420
|
+
throw Error(message);
|
|
16421
|
+
}
|
|
16422
|
+
sanitizedParent.appendChild(sanitizedNode);
|
|
16423
|
+
if (currentNode = treeWalker.firstChild()) {
|
|
16424
|
+
sanitizedParent = sanitizedNode;
|
|
16425
|
+
} else {
|
|
16426
|
+
for (; !(currentNode = treeWalker.nextSibling()) && (currentNode = treeWalker.parentNode());) {
|
|
16427
|
+
sanitizedParent = sanitizedParent.parentNode;
|
|
16475
16428
|
}
|
|
16476
16429
|
}
|
|
16477
16430
|
}
|
|
16478
|
-
return
|
|
16431
|
+
return sanitizedFragment;
|
|
16479
16432
|
};
|
|
16480
|
-
module$
|
|
16481
|
-
|
|
16482
|
-
return rule.keyText + " { " + sanitizedProperties + " }";
|
|
16433
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.createTextNode = function(text) {
|
|
16434
|
+
return document.createTextNode(text);
|
|
16483
16435
|
};
|
|
16484
|
-
module$
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
for (var
|
|
16489
|
-
var
|
|
16490
|
-
if (
|
|
16491
|
-
|
|
16492
|
-
|
|
16436
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeTextNode = function(textNode) {
|
|
16437
|
+
return this.createTextNode(textNode.data);
|
|
16438
|
+
};
|
|
16439
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
16440
|
+
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()) {
|
|
16441
|
+
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);
|
|
16442
|
+
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
16443
|
+
switch(policy.policyAction) {
|
|
16444
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:
|
|
16445
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
16446
|
+
break;
|
|
16447
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL:
|
|
16448
|
+
var sanitizedAttrUrl = module$contents$safevalues$builders$url_builders_restrictivelySanitizeUrl(value);
|
|
16449
|
+
sanitizedAttrUrl !== value && this.recordChange("Url in attribute " + name + ' was modified during sanitization. Original url:"' + value + '" was sanitized to: "' + sanitizedAttrUrl + '"');
|
|
16450
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, sanitizedAttrUrl);
|
|
16451
|
+
break;
|
|
16452
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE:
|
|
16453
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value.toLowerCase());
|
|
16454
|
+
break;
|
|
16455
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE:
|
|
16456
|
+
if (this.styleAttributeSanitizer) {
|
|
16457
|
+
var sanitizedCss = this.styleAttributeSanitizer(value);
|
|
16458
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, sanitizedCss);
|
|
16459
|
+
} else {
|
|
16460
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
16461
|
+
}
|
|
16462
|
+
break;
|
|
16463
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY:
|
|
16464
|
+
if (this.resourceUrlPolicy) {
|
|
16465
|
+
var hints = {type:module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE, attributeName:name, elementName:elementName}, url = module$contents$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(value), sanitizedUrl = this.resourceUrlPolicy(url, hints);
|
|
16466
|
+
sanitizedUrl && module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, sanitizedUrl.toString());
|
|
16467
|
+
} else {
|
|
16468
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
16469
|
+
}
|
|
16470
|
+
break;
|
|
16471
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:
|
|
16472
|
+
if (this.resourceUrlPolicy) {
|
|
16473
|
+
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 =
|
|
16474
|
+
$jscomp$iter$35.next()) {
|
|
16475
|
+
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);
|
|
16476
|
+
sanitizedUrl$jscomp$0 && sanitizedSrcset.parts.push({url:sanitizedUrl$jscomp$0.toString(), descriptor:part.descriptor});
|
|
16477
|
+
}
|
|
16478
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(sanitizedSrcset));
|
|
16479
|
+
} else {
|
|
16480
|
+
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(newNode, name, value);
|
|
16481
|
+
}
|
|
16482
|
+
break;
|
|
16483
|
+
case module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP:
|
|
16484
|
+
this.recordChange("Attribute: " + name + " was dropped");
|
|
16485
|
+
break;
|
|
16486
|
+
default:
|
|
16487
|
+
goog.DEBUG && module$contents$safevalues$builders$html_sanitizer$html_sanitizer_checkExhaustive(policy.policyAction, "Unhandled AttributePolicyAction case");
|
|
16488
|
+
}
|
|
16489
|
+
} else {
|
|
16490
|
+
this.recordChange("Not all conditions satisfied for attribute: " + name + ".");
|
|
16493
16491
|
}
|
|
16494
16492
|
}
|
|
16495
|
-
return
|
|
16493
|
+
return newNode;
|
|
16496
16494
|
};
|
|
16497
|
-
module$
|
|
16498
|
-
if (
|
|
16499
|
-
return
|
|
16495
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.nodeFilter = function(node) {
|
|
16496
|
+
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(node)) {
|
|
16497
|
+
return 1;
|
|
16500
16498
|
}
|
|
16501
|
-
|
|
16502
|
-
|
|
16503
|
-
if (discarder(name)) {
|
|
16504
|
-
return !1;
|
|
16505
|
-
}
|
|
16499
|
+
if (!module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(node)) {
|
|
16500
|
+
return 2;
|
|
16506
16501
|
}
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
if (!this.isPropertyNameAllowed(name)) {
|
|
16511
|
-
return null;
|
|
16502
|
+
var nodeName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(node);
|
|
16503
|
+
if (nodeName === null) {
|
|
16504
|
+
return this.recordChange("Node name was null for node: " + node), 2;
|
|
16512
16505
|
}
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
};
|
|
16516
|
-
module$contents$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration = function(style, calledFromStyleElement) {
|
|
16517
|
-
for (var sortedPropertyNames = [].concat((0,$jscomp.arrayFromIterable)(style)).sort(), sanitizedProperties = "", $jscomp$iter$37 = (0,$jscomp.makeIterator)(sortedPropertyNames), $jscomp$key$m1577590584$3$name = $jscomp$iter$37.next(); !$jscomp$key$m1577590584$3$name.done; $jscomp$key$m1577590584$3$name = $jscomp$iter$37.next()) {
|
|
16518
|
-
var name = $jscomp$key$m1577590584$3$name.value, value = style.getPropertyValue(name), isImportant = style.getPropertyPriority(name) === "important", sanitizedProperty = this.sanitizeProperty(name, value, isImportant, calledFromStyleElement);
|
|
16519
|
-
sanitizedProperty && (sanitizedProperties += sanitizedProperty + ";");
|
|
16506
|
+
if (this.sanitizerTable.isAllowedElement(nodeName)) {
|
|
16507
|
+
return 1;
|
|
16520
16508
|
}
|
|
16521
|
-
|
|
16509
|
+
this.recordChange("Element: " + nodeName + " was dropped");
|
|
16510
|
+
return 2;
|
|
16522
16511
|
};
|
|
16523
|
-
module$
|
|
16524
|
-
|
|
16525
|
-
if (!selector) {
|
|
16526
|
-
return null;
|
|
16527
|
-
}
|
|
16528
|
-
var sanitizedProperties = this.sanitizeStyleDeclaration(rule.style, !0);
|
|
16529
|
-
return selector + " { " + sanitizedProperties + " }";
|
|
16512
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.recordChange = function(errorMessage) {
|
|
16513
|
+
goog.DEBUG && this.changes.push(errorMessage);
|
|
16530
16514
|
};
|
|
16531
|
-
module$
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
sanitizedRule$jscomp$0 && output.push(sanitizedRule$jscomp$0);
|
|
16515
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.satisfiesAllConditions = function(conditions, attrs) {
|
|
16516
|
+
if (!conditions) {
|
|
16517
|
+
return !0;
|
|
16518
|
+
}
|
|
16519
|
+
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()) {
|
|
16520
|
+
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;
|
|
16521
|
+
if (value && !expectedValues.has(value)) {
|
|
16522
|
+
return !1;
|
|
16540
16523
|
}
|
|
16541
16524
|
}
|
|
16542
|
-
return
|
|
16525
|
+
return !0;
|
|
16543
16526
|
};
|
|
16544
|
-
module$contents$safevalues$builders$html_sanitizer$
|
|
16545
|
-
|
|
16546
|
-
|
|
16527
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(el, name, value) {
|
|
16528
|
+
el.setAttribute(name, value);
|
|
16529
|
+
}
|
|
16530
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_SrcsetPart() {
|
|
16531
|
+
}
|
|
16532
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.Srcset = function() {
|
|
16547
16533
|
};
|
|
16548
|
-
function module$contents$safevalues$builders$html_sanitizer$
|
|
16549
|
-
|
|
16534
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(srcset) {
|
|
16535
|
+
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()) {
|
|
16536
|
+
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;
|
|
16537
|
+
parts.push({url:url__tsickle_destructured_3, descriptor:descriptor__tsickle_destructured_4});
|
|
16538
|
+
}
|
|
16539
|
+
return {parts:parts};
|
|
16550
16540
|
}
|
|
16551
|
-
module$exports$safevalues$builders$html_sanitizer$
|
|
16552
|
-
function module$contents$safevalues$builders$html_sanitizer$
|
|
16553
|
-
return (
|
|
16541
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.parseSrcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset;
|
|
16542
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(srcset) {
|
|
16543
|
+
return srcset.parts.map(function(part) {
|
|
16544
|
+
var descriptor = part.descriptor;
|
|
16545
|
+
return "" + part.url + (descriptor ? " " + descriptor : "");
|
|
16546
|
+
}).join(" , ");
|
|
16554
16547
|
}
|
|
16555
|
-
module$exports$safevalues$builders$html_sanitizer$
|
|
16556
|
-
var module$
|
|
16548
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.serializeSrcset = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset;
|
|
16549
|
+
var module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
16550
|
+
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE, module$exports$safevalues$internals$secrets.secretToken);
|
|
16551
|
+
});
|
|
16552
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml(html) {
|
|
16553
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitize(html);
|
|
16554
|
+
}
|
|
16555
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
16556
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(html) {
|
|
16557
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitizeAssertUnchanged(html);
|
|
16558
|
+
}
|
|
16559
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
16560
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment(html) {
|
|
16561
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitizeToFragment(html);
|
|
16562
|
+
}
|
|
16563
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
16564
|
+
var module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
16565
|
+
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE, module$exports$safevalues$internals$secrets.secretToken);
|
|
16566
|
+
});
|
|
16567
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtml = function(html) {
|
|
16568
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer.sanitize(html);
|
|
16569
|
+
};
|
|
16570
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(html) {
|
|
16571
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer.sanitizeAssertUnchanged(html);
|
|
16572
|
+
}
|
|
16573
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged;
|
|
16574
|
+
var module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
16575
|
+
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.SUPER_LENIENT_SANITIZER_TABLE, module$exports$safevalues$internals$secrets.secretToken);
|
|
16576
|
+
});
|
|
16577
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtml = function(html) {
|
|
16578
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer.sanitize(html);
|
|
16579
|
+
};
|
|
16580
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtmlAssertUnchanged(html) {
|
|
16581
|
+
return module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer.sanitizeAssertUnchanged(html);
|
|
16582
|
+
}
|
|
16583
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtmlAssertUnchanged;
|
|
16584
|
+
function module$contents$safevalues$builders$html_sanitizer$html_sanitizer_checkExhaustive(value, msg) {
|
|
16585
|
+
throw Error(msg === void 0 ? "unexpected value " + value + "!" : msg);
|
|
16586
|
+
}
|
|
16587
|
+
;var module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder = {}, module$contents$safevalues$builders$html_sanitizer$html_sanitizer_builder_module = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_builder_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/html_sanitizer_builder.closure.js"};
|
|
16557
16588
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder = function() {
|
|
16558
16589
|
this.calledBuild = !1;
|
|
16559
16590
|
this.sanitizerTable = module$exports$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE;
|
|
16560
16591
|
};
|
|
16561
16592
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowElements = function(elementSet) {
|
|
16562
|
-
for (var allowedElements = new Set(), allowedElementPolicies = new Map(), $jscomp$iter$39 = (0,$jscomp.makeIterator)(elementSet), $jscomp$key$
|
|
16563
|
-
var element = $jscomp$key$
|
|
16593
|
+
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()) {
|
|
16594
|
+
var element = $jscomp$key$m1412690177$21$element.value;
|
|
16564
16595
|
element = element.toUpperCase();
|
|
16565
16596
|
if (!this.sanitizerTable.isAllowedElement(element)) {
|
|
16566
16597
|
throw Error("Element: " + element + ", is not allowed by html5_contract.textpb");
|
|
@@ -16578,8 +16609,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16578
16609
|
throw Error("Element: " + element + " is not a custom element");
|
|
16579
16610
|
}
|
|
16580
16611
|
if (allowedAttributes) {
|
|
16581
|
-
for (var elementPolicy = new Map(), $jscomp$iter$40 = (0,$jscomp.makeIterator)(allowedAttributes), $jscomp$key$
|
|
16582
|
-
elementPolicy.set($jscomp$key$
|
|
16612
|
+
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()) {
|
|
16613
|
+
elementPolicy.set($jscomp$key$m1412690177$22$attribute.value.toLowerCase(), {policyAction:module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP});
|
|
16583
16614
|
}
|
|
16584
16615
|
allowedElementPolicies.set(element, elementPolicy);
|
|
16585
16616
|
} else {
|
|
@@ -16589,15 +16620,15 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16589
16620
|
return this;
|
|
16590
16621
|
};
|
|
16591
16622
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.onlyAllowAttributes = function(attributeSet) {
|
|
16592
|
-
for (var allowedGlobalAttributes = new Set(), globalAttributePolicies = new Map(), elementPolicies = new Map(), $jscomp$iter$41 = (0,$jscomp.makeIterator)(attributeSet), $jscomp$key$
|
|
16593
|
-
var attribute = $jscomp$key$
|
|
16623
|
+
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()) {
|
|
16624
|
+
var attribute = $jscomp$key$m1412690177$23$attribute.value;
|
|
16594
16625
|
this.sanitizerTable.allowedGlobalAttributes.has(attribute) && allowedGlobalAttributes.add(attribute);
|
|
16595
16626
|
this.sanitizerTable.globalAttributePolicies.has(attribute) && globalAttributePolicies.set(attribute, this.sanitizerTable.globalAttributePolicies.get(attribute));
|
|
16596
16627
|
}
|
|
16597
|
-
for (var $jscomp$iter$43 = (0,$jscomp.makeIterator)(this.sanitizerTable.elementPolicies.entries()), $jscomp$key$
|
|
16598
|
-
for (var $jscomp$destructuring$var37 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16628
|
+
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()) {
|
|
16629
|
+
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$ =
|
|
16599
16630
|
$jscomp$iter$42.next()) {
|
|
16600
|
-
var $jscomp$destructuring$var39 = (0,$jscomp.makeIterator)($jscomp$key$
|
|
16631
|
+
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;
|
|
16601
16632
|
attributeSet.has(attribute$jscomp$0) && newElementPolicy.set(attribute$jscomp$0, attributePolicy);
|
|
16602
16633
|
}
|
|
16603
16634
|
elementPolicies.set(elementName, newElementPolicy);
|
|
@@ -16606,8 +16637,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSan
|
|
|
16606
16637
|
return this;
|
|
16607
16638
|
};
|
|
16608
16639
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowDataAttributes = function(attributes) {
|
|
16609
|
-
for (var allowedGlobalAttributes = new Set(this.sanitizerTable.allowedGlobalAttributes), $jscomp$iter$44 = (0,$jscomp.makeIterator)(attributes), $jscomp$key$
|
|
16610
|
-
var attribute = $jscomp$key$
|
|
16640
|
+
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()) {
|
|
16641
|
+
var attribute = $jscomp$key$m1412690177$26$attribute.value;
|
|
16611
16642
|
if (attribute.indexOf("data-") !== 0) {
|
|
16612
16643
|
throw Error("data attribute: " + attribute + ' does not begin with the prefix "data-"');
|
|
16613
16644
|
}
|
|
@@ -16669,7 +16700,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16669
16700
|
return this;
|
|
16670
16701
|
};
|
|
16671
16702
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build = function() {
|
|
16672
|
-
var $jscomp$this$
|
|
16703
|
+
var $jscomp$this$m1412690177$17 = this;
|
|
16673
16704
|
this.extendSanitizerTableForCss();
|
|
16674
16705
|
var propertyDiscarders = [];
|
|
16675
16706
|
this.animationsAllowed || propertyDiscarders.push(function(property) {
|
|
@@ -16679,9 +16710,9 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16679
16710
|
return /^transition(-|$)/.test(property);
|
|
16680
16711
|
});
|
|
16681
16712
|
return new module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable, module$exports$safevalues$internals$secrets.secretToken, function(cssText) {
|
|
16682
|
-
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$
|
|
16713
|
+
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);
|
|
16683
16714
|
}, function(cssText) {
|
|
16684
|
-
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$
|
|
16715
|
+
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);
|
|
16685
16716
|
}, this.resourceUrlPolicy);
|
|
16686
16717
|
};
|
|
16687
16718
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss = function() {
|
|
@@ -16693,7 +16724,13 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSani
|
|
|
16693
16724
|
allowedGlobalAttributes.add("class");
|
|
16694
16725
|
this.sanitizerTable = new module$exports$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(allowedElements, this.sanitizerTable.elementPolicies, allowedGlobalAttributes, globalAttributePolicies);
|
|
16695
16726
|
};
|
|
16696
|
-
var module$
|
|
16727
|
+
var module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_module = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_module || {id:"third_party/javascript/safevalues/builders/html_sanitizer/default_css_sanitizer.closure.js"}, module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_defaultCssSanitizer = module$contents$safevalues$internals$pure_pure(function() {
|
|
16728
|
+
return (new module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder()).build();
|
|
16729
|
+
});
|
|
16730
|
+
function module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss(css) {
|
|
16731
|
+
return module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_defaultCssSanitizer.sanitizeToFragment(css);
|
|
16732
|
+
}
|
|
16733
|
+
;var module$exports$safevalues$builders$resource_url_builders = {}, module$contents$safevalues$builders$resource_url_builders_module = module$contents$safevalues$builders$resource_url_builders_module || {id:"third_party/javascript/safevalues/builders/resource_url_builders.closure.js"}, module$contents$safevalues$builders$resource_url_builders_Primitive;
|
|
16697
16734
|
function module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base) {
|
|
16698
16735
|
if (!/^https:\/\//.test(base) && !/^\/\//.test(base)) {
|
|
16699
16736
|
return !1;
|
|
@@ -16904,12 +16941,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
16904
16941
|
}
|
|
16905
16942
|
try {
|
|
16906
16943
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
16907
|
-
} catch ($jscomp$unused$catch$
|
|
16944
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
16908
16945
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
16909
16946
|
}
|
|
16910
16947
|
try {
|
|
16911
16948
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
16912
|
-
} catch ($jscomp$unused$catch$
|
|
16949
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
16913
16950
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
16914
16951
|
}
|
|
16915
16952
|
return !1;
|
|
@@ -16946,9 +16983,11 @@ module$exports$safevalues$index.scriptToHtml = module$exports$safevalues$builder
|
|
|
16946
16983
|
module$exports$safevalues$index.scriptUrlToHtml = module$exports$safevalues$builders$html_builders.scriptUrlToHtml;
|
|
16947
16984
|
module$exports$safevalues$index.styleSheetToHtml = module$exports$safevalues$builders$html_builders.styleSheetToHtml;
|
|
16948
16985
|
module$exports$safevalues$index.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
16986
|
+
module$exports$safevalues$index.sanitizeHtmlWithCss = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;
|
|
16949
16987
|
module$exports$safevalues$index.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
16950
16988
|
module$exports$safevalues$index.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
16951
16989
|
module$exports$safevalues$index.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
16990
|
+
module$exports$safevalues$index.CssSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;
|
|
16952
16991
|
module$exports$safevalues$index.HtmlSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder;
|
|
16953
16992
|
module$exports$safevalues$index.ResourceUrlPolicyHintsType = module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;
|
|
16954
16993
|
module$exports$safevalues$index.appendParams = module$contents$safevalues$builders$resource_url_builders_appendParams;
|
|
@@ -16989,7 +17028,7 @@ module$exports$safevalues$index.EMPTY_SCRIPT = module$exports$safevalues$interna
|
|
|
16989
17028
|
module$exports$safevalues$index.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
16990
17029
|
module$exports$safevalues$index.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
16991
17030
|
module$exports$safevalues$index.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
16992
|
-
module$exports$safevalues$index.SafeStyle = module$
|
|
17031
|
+
module$exports$safevalues$index.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
16993
17032
|
module$exports$safevalues$index.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
16994
17033
|
module$exports$safevalues$index.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
16995
17034
|
module$exports$safevalues$index.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
@@ -17044,12 +17083,6 @@ goog.dom.safe.setOuterHtml = function(elem, html) {
|
|
|
17044
17083
|
goog.dom.safe.setFormElementAction = function(form, url) {
|
|
17045
17084
|
module$contents$goog$asserts$dom_assertIsHtmlFormElement(form).action = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17046
17085
|
};
|
|
17047
|
-
goog.dom.safe.setButtonFormAction = function(button, url) {
|
|
17048
|
-
module$contents$goog$asserts$dom_assertIsHtmlButtonElement(button).formAction = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17049
|
-
};
|
|
17050
|
-
goog.dom.safe.setInputFormAction = function(input, url) {
|
|
17051
|
-
module$contents$goog$asserts$dom_assertIsHtmlInputElement(input).formAction = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17052
|
-
};
|
|
17053
17086
|
goog.dom.safe.documentWrite = function(doc, html) {
|
|
17054
17087
|
doc.write(module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html));
|
|
17055
17088
|
};
|
|
@@ -17057,22 +17090,10 @@ goog.dom.safe.setAnchorHref = function(anchor, url) {
|
|
|
17057
17090
|
module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(anchor);
|
|
17058
17091
|
anchor.href = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17059
17092
|
};
|
|
17060
|
-
goog.dom.safe.setAudioSrc = function(audioElement, url) {
|
|
17061
|
-
module$contents$goog$asserts$dom_assertIsHtmlAudioElement(audioElement);
|
|
17062
|
-
audioElement.src = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17063
|
-
};
|
|
17064
|
-
goog.dom.safe.setVideoSrc = function(videoElement, url) {
|
|
17065
|
-
module$contents$goog$asserts$dom_assertIsHtmlVideoElement(videoElement);
|
|
17066
|
-
videoElement.src = goog.dom.safe.sanitizeJavaScriptUrlAssertUnchanged_(url);
|
|
17067
|
-
};
|
|
17068
17093
|
goog.dom.safe.setIframeSrc = function(iframe, url) {
|
|
17069
17094
|
module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe);
|
|
17070
17095
|
iframe.src = goog.html.TrustedResourceUrl.unwrap(url);
|
|
17071
17096
|
};
|
|
17072
|
-
goog.dom.safe.setIframeSrcdoc = function(iframe, html) {
|
|
17073
|
-
module$contents$goog$asserts$dom_assertIsHtmlIFrameElement(iframe);
|
|
17074
|
-
iframe.srcdoc = module$contents$goog$html$SafeHtml_SafeHtml.unwrapTrustedHTML(html);
|
|
17075
|
-
};
|
|
17076
17097
|
goog.dom.safe.setLinkHrefAndRel = function(link, url, rel) {
|
|
17077
17098
|
module$contents$goog$asserts$dom_assertIsHtmlLinkElement(link);
|
|
17078
17099
|
link.rel = rel;
|
|
@@ -18231,13 +18252,13 @@ goog.debug.asyncStackTag.getTestNameProvider = function() {
|
|
|
18231
18252
|
return module$contents$goog$debug$asyncStackTag_testNameProvider;
|
|
18232
18253
|
};
|
|
18233
18254
|
goog.ASSUME_NATIVE_PROMISE = !1;
|
|
18234
|
-
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) {
|
|
18255
|
+
var module$contents$goog$async$run_ASSUME_NATIVE_PROMISE = goog.ASSUME_NATIVE_PROMISE, 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) {
|
|
18235
18256
|
module$contents$goog$async$run_schedule || module$contents$goog$async$run_initializeRunner();
|
|
18236
18257
|
module$contents$goog$async$run_workQueueScheduled || (module$contents$goog$async$run_schedule(), module$contents$goog$async$run_workQueueScheduled = !0);
|
|
18237
18258
|
callback = module$contents$goog$debug$asyncStackTag_wrap(callback, "goog.async.run");
|
|
18238
18259
|
module$contents$goog$async$run_workQueue.add(callback, context);
|
|
18239
18260
|
}, module$contents$goog$async$run_initializeRunner = function() {
|
|
18240
|
-
if (goog
|
|
18261
|
+
if (module$contents$goog$async$run_ASSUME_NATIVE_PROMISE || goog.global.Promise && goog.global.Promise.resolve) {
|
|
18241
18262
|
var promise = goog.global.Promise.resolve(void 0);
|
|
18242
18263
|
module$contents$goog$async$run_schedule = function() {
|
|
18243
18264
|
promise.then(module$contents$goog$async$run_run.processWorkQueue);
|
|
@@ -19728,10 +19749,13 @@ safevalues.scriptToHtml = module$exports$safevalues$index.scriptToHtml;
|
|
|
19728
19749
|
safevalues.scriptUrlToHtml = module$exports$safevalues$index.scriptUrlToHtml;
|
|
19729
19750
|
safevalues.styleSheetToHtml = module$exports$safevalues$index.styleSheetToHtml;
|
|
19730
19751
|
safevalues.HtmlFormatter = module$exports$safevalues$builders$html_formatter.HtmlFormatter;
|
|
19752
|
+
safevalues.sanitizeHtmlWithCss = module$contents$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;
|
|
19731
19753
|
safevalues.sanitizeHtml = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml;
|
|
19732
19754
|
safevalues.sanitizeHtmlAssertUnchanged = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged;
|
|
19733
19755
|
safevalues.sanitizeHtmlToFragment = module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment;
|
|
19756
|
+
safevalues.CssSanitizer = module$exports$safevalues$index.CssSanitizer;
|
|
19734
19757
|
safevalues.HtmlSanitizer = module$exports$safevalues$index.HtmlSanitizer;
|
|
19758
|
+
safevalues.CssSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;
|
|
19735
19759
|
safevalues.HtmlSanitizerBuilder = module$exports$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder;
|
|
19736
19760
|
safevalues.ResourceUrlPolicyHintsType = module$exports$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;
|
|
19737
19761
|
safevalues.ResourceUrlPolicy = module$exports$safevalues$index.ResourceUrlPolicy;
|
|
@@ -19775,7 +19799,7 @@ safevalues.EMPTY_SCRIPT = module$exports$safevalues$internals$script_impl.EMPTY_
|
|
|
19775
19799
|
safevalues.SafeScript = module$exports$safevalues$internals$script_impl.SafeScript;
|
|
19776
19800
|
safevalues.isScript = module$contents$safevalues$internals$script_impl_isScript;
|
|
19777
19801
|
safevalues.unwrapScript = module$contents$safevalues$internals$script_impl_unwrapScript;
|
|
19778
|
-
safevalues.SafeStyle = module$
|
|
19802
|
+
safevalues.SafeStyle = module$exports$safevalues$internals$style_impl.SafeStyle;
|
|
19779
19803
|
safevalues.isStyle = module$contents$safevalues$internals$style_impl_isStyle;
|
|
19780
19804
|
safevalues.unwrapStyle = module$contents$safevalues$internals$style_impl_unwrapStyle;
|
|
19781
19805
|
safevalues.SafeStyleSheet = module$contents$goog$html$SafeStyleSheet_SafeStyleSheet;
|
|
@@ -19791,7 +19815,7 @@ var $jscomp$templatelit$m1153655765$99 = $jscomp.createTemplateTagFirstArg(["htt
|
|
|
19791
19815
|
ee.apiclient = {};
|
|
19792
19816
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19793
19817
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19794
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
19818
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.417";
|
|
19795
19819
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19796
19820
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19797
19821
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -20089,8 +20113,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
20089
20113
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
20090
20114
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
20091
20115
|
method = method || "POST";
|
|
20092
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
20093
|
-
version === "0.1.
|
|
20116
|
+
var headers = {"Content-Type":contentType}, version = "0.1.417";
|
|
20117
|
+
version === "0.1.417" && (version = "latest");
|
|
20094
20118
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
20095
20119
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
20096
20120
|
if (authToken != null) {
|
|
@@ -27619,29 +27643,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
27619
27643
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
27620
27644
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
27621
27645
|
(function() {
|
|
27622
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.
|
|
27623
|
-
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "collection opt_description
|
|
27624
|
-
"
|
|
27625
|
-
"collection opt_description
|
|
27626
|
-
"collection opt_description opt_bucket opt_fileNamePrefix
|
|
27627
|
-
["
|
|
27628
|
-
["
|
|
27629
|
-
["
|
|
27630
|
-
|
|
27631
|
-
|
|
27632
|
-
"
|
|
27633
|
-
|
|
27634
|
-
|
|
27635
|
-
[
|
|
27636
|
-
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.
|
|
27637
|
-
module$contents$ee$batch_Export.
|
|
27638
|
-
ee.ComputedObject.prototype.
|
|
27639
|
-
ee.data.
|
|
27640
|
-
ee.data.
|
|
27641
|
-
ee.
|
|
27642
|
-
ee.Filter
|
|
27643
|
-
ee.Image.
|
|
27644
|
-
ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.
|
|
27646
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._apply ee.ApiFunction.lookup ee.ApiFunction._call ee.batch.Export.table.toDrive ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.classifier.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toAsset ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.Collection.prototype.limit ee.Collection.prototype.filter ee.Collection.prototype.filterBounds ee.Collection.prototype.map ee.Collection.prototype.filterDate ee.Collection.prototype.iterate ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.aside ee.data.authenticateViaOauth ee.data.makeThumbUrl ee.data.setAssetAcl ee.data.renameAsset ee.data.getMapId ee.data.listAssets ee.data.authenticate ee.data.getTaskList ee.data.setAssetProperties ee.data.copyAsset ee.data.getTableDownloadId ee.data.getTileUrl ee.data.listBuckets ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.deleteAsset ee.data.startTableIngestion ee.data.getAssetRootQuota ee.data.listOperations ee.data.getDownloadId ee.data.authenticateViaPopup ee.data.makeDownloadUrl ee.data.cancelOperation ee.data.getWorkloadTag ee.data.getFeatureViewTilesKey ee.data.getAssetAcl ee.data.listImages ee.data.listFeatures ee.data.getAssetRoots ee.data.getAsset ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.createAssetHome ee.data.newTaskId ee.data.setWorkloadTag ee.data.computeValue ee.data.createAsset ee.data.getInfo ee.data.getThumbId ee.data.cancelTask ee.data.setDefaultWorkloadTag ee.data.getVideoThumbId ee.data.resetWorkloadTag ee.data.getTaskStatus ee.data.updateAsset ee.data.updateTask ee.data.getFilmstripThumbId ee.data.getList ee.data.startIngestion ee.data.createFolder ee.data.startProcessing ee.Date ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Dictionary ee.TILE_SIZE ee.initialize ee.reset ee.call ee.Algorithms ee.InitState ee.apply ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature ee.Feature.prototype.getMap ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.FeatureCollection.prototype.getInfo ee.FeatureCollection.prototype.getMapId ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection ee.FeatureCollection.prototype.getMap ee.Filter.lte ee.Filter.gte ee.Filter.date ee.Filter.metadata ee.Filter.bounds ee.Filter.prototype.not ee.Filter ee.Filter.eq ee.Filter.and ee.Filter.inList ee.Filter.gt ee.Filter.or ee.Filter.lt ee.Filter.neq ee.Function.prototype.apply ee.Function.prototype.call ee.Geometry ee.Geometry.MultiLineString ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.prototype.toGeoJSON ee.Geometry.LinearRing ee.Geometry.prototype.toGeoJSONString ee.Geometry.prototype.serialize ee.Geometry.BBox ee.Geometry.MultiPoint ee.Geometry.LineString ee.Geometry.Rectangle ee.Geometry.MultiPolygon ee.Image.prototype.getThumbId ee.Image.rgb ee.Image.prototype.getDownloadURL ee.Image ee.Image.prototype.clip ee.Image.prototype.expression ee.Image.prototype.getThumbURL ee.Image.prototype.select ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.cat ee.Image.prototype.rename ee.Image.prototype.getMap ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.first ee.List ee.Number ee.Serializer.encode ee.Serializer.toReadableCloudApiJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toCloudApiJSON ee.Serializer.toReadableJSON ee.String ee.Terrain".split(" "),
|
|
27647
|
+
orderedParamLists = [["name", "namedArgs"], ["name"], ["name", "var_args"], "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices",
|
|
27648
|
+
"opt_priority"], ["classifier", "opt_description", "opt_assetId", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "), "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
27649
|
+
"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "),
|
|
27650
|
+
"collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
|
|
27651
|
+
["max", "opt_property", "opt_ascending"], ["filter"], ["geometry"], ["algorithm", "opt_dropNulls"], ["start", "opt_end"], ["algorithm", "opt_first"], ["property", "opt_ascending"], ["name", "operator", "value"], ["callback"], ["opt_callback"], ["legacy"], ["func", "var_args"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["id"], ["assetId", "aclUpdate", "opt_callback"], ["sourceId", "destinationId", "opt_callback"], ["params", "opt_callback"],
|
|
27652
|
+
["parent", "opt_params", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["opt_callback"], ["assetId", "properties", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["params", "opt_callback"], ["id", "x", "y", "z"], ["project", "opt_callback"], ["id"], ["opt_limit", "opt_callback"], ["assetId", "opt_callback"], ["taskId", "request", "opt_callback"], ["rootId", "opt_callback"], ["opt_limit", "opt_callback"], ["params",
|
|
27653
|
+
"opt_callback"], ["opt_success", "opt_error"], ["id"], ["operationName", "opt_callback"], [], ["params", "opt_callback"], ["assetId", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["asset", "params", "opt_callback"], ["opt_callback"], ["id", "opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["operationName", "opt_callback"], ["requestedId", "opt_callback"], ["opt_count", "opt_callback"], ["tag"], ["obj", "opt_callback"], ["value",
|
|
27654
|
+
"opt_path", "opt_force", "opt_properties", "opt_callback"], ["id", "opt_callback"], ["params", "opt_callback"], ["taskId", "opt_callback"], ["tag"], ["params", "opt_callback"], ["opt_resetDefault"], ["taskId", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "action", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["taskId", "request", "opt_callback"], ["path", "opt_force", "opt_callback"], ["taskId", "params", "opt_callback"], ["date",
|
|
27655
|
+
"opt_tz"], ["json"], ["json"], ["json"], ["json"], ["opt_dict"], [], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), [], ["func", "var_args"], [], [], ["func", "namedArgs"], ["var_args"], [], ["geometry", "opt_properties"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors", "opt_newProperties", "opt_retainGeometry"], ["opt_format",
|
|
27656
|
+
"opt_selectors", "opt_filename", "opt_callback"], ["args", "opt_column"], ["opt_visParams", "opt_callback"], ["name", "value"], ["name", "value"], ["start", "opt_end"], ["name", "operator", "value"], ["geometry", "opt_errorMargin"], [], ["opt_filter"], ["name", "value"], ["var_args"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["name", "value"], ["var_args"], ["name", "value"], ["name", "value"], ["namedArgs"], ["var_args"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"],
|
|
27657
|
+
["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], [], ["legacy"], ["west", "south", "east", "north"], ["coords", "opt_proj"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["params", "opt_callback"], ["r",
|
|
27658
|
+
"g", "b"], ["params", "opt_callback"], ["opt_args"], ["geometry"], ["expression", "opt_map"], ["params", "opt_callback"], ["var_args"], ["opt_callback"], ["opt_visParams", "opt_callback"], ["var_args"], ["var_args"], ["opt_visParams", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["args"], ["params", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"],
|
|
27659
|
+
[], ["list"], ["number"], ["obj", "opt_isCompound"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["string"], []];
|
|
27660
|
+
[ee.ApiFunction._apply, ee.ApiFunction.lookup, ee.ApiFunction._call, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.classifier.toAsset, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery,
|
|
27661
|
+
module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, ee.Collection.prototype.limit, ee.Collection.prototype.filter, ee.Collection.prototype.filterBounds, ee.Collection.prototype.map, ee.Collection.prototype.filterDate, ee.Collection.prototype.iterate, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.ComputedObject.prototype.evaluate,
|
|
27662
|
+
ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.aside, ee.data.authenticateViaOauth, ee.data.makeThumbUrl, ee.data.setAssetAcl, ee.data.renameAsset, ee.data.getMapId, ee.data.listAssets, ee.data.authenticate, ee.data.getTaskList, ee.data.setAssetProperties, ee.data.copyAsset, ee.data.getTableDownloadId, ee.data.getTileUrl, ee.data.listBuckets, ee.data.makeTableDownloadUrl, ee.data.getTaskListWithLimit, ee.data.deleteAsset, ee.data.startTableIngestion,
|
|
27663
|
+
ee.data.getAssetRootQuota, ee.data.listOperations, ee.data.getDownloadId, ee.data.authenticateViaPopup, ee.data.makeDownloadUrl, ee.data.cancelOperation, ee.data.getWorkloadTag, ee.data.getFeatureViewTilesKey, ee.data.getAssetAcl, ee.data.listImages, ee.data.listFeatures, ee.data.getAssetRoots, ee.data.getAsset, ee.data.authenticateViaPrivateKey, ee.data.getOperation, ee.data.createAssetHome, ee.data.newTaskId, ee.data.setWorkloadTag, ee.data.computeValue, ee.data.createAsset, ee.data.getInfo,
|
|
27664
|
+
ee.data.getThumbId, ee.data.cancelTask, ee.data.setDefaultWorkloadTag, ee.data.getVideoThumbId, ee.data.resetWorkloadTag, ee.data.getTaskStatus, ee.data.updateAsset, ee.data.updateTask, ee.data.getFilmstripThumbId, ee.data.getList, ee.data.startIngestion, ee.data.createFolder, ee.data.startProcessing, ee.Date, ee.Deserializer.fromJSON, ee.Deserializer.decodeCloudApi, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Dictionary, ee.TILE_SIZE, ee.initialize, ee.reset, ee.call, ee.Algorithms,
|
|
27665
|
+
ee.InitState, ee.apply, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature, ee.Feature.prototype.getMap, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection.prototype.getMapId, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection, ee.FeatureCollection.prototype.getMap, ee.Filter.lte, ee.Filter.gte, ee.Filter.date, ee.Filter.metadata, ee.Filter.bounds, ee.Filter.prototype.not,
|
|
27666
|
+
ee.Filter, ee.Filter.eq, ee.Filter.and, ee.Filter.inList, ee.Filter.gt, ee.Filter.or, ee.Filter.lt, ee.Filter.neq, ee.Function.prototype.apply, ee.Function.prototype.call, ee.Geometry, ee.Geometry.MultiLineString, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.prototype.toGeoJSON, ee.Geometry.LinearRing, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.prototype.serialize, ee.Geometry.BBox, ee.Geometry.MultiPoint, ee.Geometry.LineString, ee.Geometry.Rectangle, ee.Geometry.MultiPolygon, ee.Image.prototype.getThumbId,
|
|
27667
|
+
ee.Image.rgb, ee.Image.prototype.getDownloadURL, ee.Image, ee.Image.prototype.clip, ee.Image.prototype.expression, ee.Image.prototype.getThumbURL, ee.Image.prototype.select, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.cat, ee.Image.prototype.rename, ee.Image.prototype.getMap, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getMap, ee.ImageCollection,
|
|
27668
|
+
ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection.prototype.linkCollection, ee.ImageCollection.prototype.first, ee.List, ee.Number, ee.Serializer.encode, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toCloudApiJSON, ee.Serializer.toReadableJSON, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
27645
27669
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
27646
27670
|
});
|
|
27647
27671
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|