@google/earthengine 0.1.377 → 0.1.378
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tmp/BUILD +4 -0
- package/.tmp/METADATA +4 -4
- package/.tmp/VERSION_BUILD +2 -2
- package/build/browser.js +55 -47
- package/build/ee_api_js.js +2 -2
- package/build/ee_api_js_debug.js +55 -47
- package/build/ee_api_js_npm.js +55 -47
- package/build/main.js +55 -47
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/examples/CloudMasking/{Sentinel2ClearComposite.js → Sentinel2ClearComposites.js} +29 -28
package/build/ee_api_js_debug.js
CHANGED
|
@@ -3726,24 +3726,18 @@ goog.userAgent.PLATFORM = goog.userAgent.determinePlatform_();
|
|
|
3726
3726
|
goog.userAgent.ASSUME_MAC = !1;
|
|
3727
3727
|
goog.userAgent.ASSUME_WINDOWS = !1;
|
|
3728
3728
|
goog.userAgent.ASSUME_LINUX = !1;
|
|
3729
|
-
goog.userAgent.ASSUME_X11 = !1;
|
|
3730
3729
|
goog.userAgent.ASSUME_ANDROID = !1;
|
|
3731
3730
|
goog.userAgent.ASSUME_IPHONE = !1;
|
|
3732
3731
|
goog.userAgent.ASSUME_IPAD = !1;
|
|
3733
3732
|
goog.userAgent.ASSUME_IPOD = !1;
|
|
3734
3733
|
goog.userAgent.ASSUME_KAIOS = !1;
|
|
3735
|
-
goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.
|
|
3734
|
+
goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.ASSUME_ANDROID || goog.userAgent.ASSUME_IPHONE || goog.userAgent.ASSUME_IPAD || goog.userAgent.ASSUME_IPOD;
|
|
3736
3735
|
goog.userAgent.MAC = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_MAC : module$contents$goog$labs$userAgent$platform_isMacintosh();
|
|
3737
3736
|
goog.userAgent.WINDOWS = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_WINDOWS : module$contents$goog$labs$userAgent$platform_isWindows();
|
|
3738
3737
|
goog.userAgent.isLegacyLinux_ = function() {
|
|
3739
3738
|
return module$contents$goog$labs$userAgent$platform_isLinux() || module$contents$goog$labs$userAgent$platform_isChromeOS();
|
|
3740
3739
|
};
|
|
3741
3740
|
goog.userAgent.LINUX = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_LINUX : goog.userAgent.isLegacyLinux_();
|
|
3742
|
-
goog.userAgent.isX11_ = function() {
|
|
3743
|
-
var navigator = goog.userAgent.getNavigatorTyped();
|
|
3744
|
-
return !!navigator && goog.string.internal.contains(navigator.appVersion || "", "X11");
|
|
3745
|
-
};
|
|
3746
|
-
goog.userAgent.X11 = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_X11 : goog.userAgent.isX11_();
|
|
3747
3741
|
goog.userAgent.ANDROID = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_ANDROID : module$contents$goog$labs$userAgent$platform_isAndroid();
|
|
3748
3742
|
goog.userAgent.IPHONE = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPHONE : module$contents$goog$labs$userAgent$platform_isIphone();
|
|
3749
3743
|
goog.userAgent.IPAD = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPAD : module$contents$goog$labs$userAgent$platform_isIpad();
|
|
@@ -6066,7 +6060,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6066
6060
|
};
|
|
6067
6061
|
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;
|
|
6068
6062
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6069
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6063
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6070
6064
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6071
6065
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6072
6066
|
if (null != value) {
|
|
@@ -6079,11 +6073,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6079
6073
|
} else if (objects.hasOwnProperty(key)) {
|
|
6080
6074
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6081
6075
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6082
|
-
$jscomp$loop$
|
|
6076
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6083
6077
|
return function(v) {
|
|
6084
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6078
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6085
6079
|
};
|
|
6086
|
-
}($jscomp$loop$
|
|
6080
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6087
6081
|
} else if (Array.isArray(value)) {
|
|
6088
6082
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6089
6083
|
continue;
|
|
@@ -6129,39 +6123,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6129
6123
|
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))) {
|
|
6130
6124
|
return !1;
|
|
6131
6125
|
}
|
|
6132
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6126
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6133
6127
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6134
6128
|
if (has1 !== has2) {
|
|
6135
6129
|
return !1;
|
|
6136
6130
|
}
|
|
6137
6131
|
if (has1) {
|
|
6138
6132
|
var value1 = serializable1.Serializable$get(key);
|
|
6139
|
-
$jscomp$loop$
|
|
6133
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6140
6134
|
if (arrays1.hasOwnProperty(key)) {
|
|
6141
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6135
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6142
6136
|
return !1;
|
|
6143
6137
|
}
|
|
6144
6138
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6145
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6139
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6146
6140
|
return !1;
|
|
6147
6141
|
}
|
|
6148
6142
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6149
|
-
if ($jscomp$loop$
|
|
6150
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6143
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6144
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6151
6145
|
return function(v1, i) {
|
|
6152
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6146
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6153
6147
|
};
|
|
6154
|
-
}($jscomp$loop$
|
|
6148
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6155
6149
|
return !1;
|
|
6156
6150
|
}
|
|
6157
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6151
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6158
6152
|
return !1;
|
|
6159
6153
|
}
|
|
6160
6154
|
} else if (Array.isArray(value1)) {
|
|
6161
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6155
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6162
6156
|
return !1;
|
|
6163
6157
|
}
|
|
6164
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6158
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6165
6159
|
return !1;
|
|
6166
6160
|
}
|
|
6167
6161
|
}
|
|
@@ -6562,7 +6556,7 @@ goog.string.Const.prototype.getTypedStringValue = function() {
|
|
|
6562
6556
|
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6563
6557
|
};
|
|
6564
6558
|
goog.DEBUG && (goog.string.Const.prototype.toString = function() {
|
|
6565
|
-
return
|
|
6559
|
+
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6566
6560
|
});
|
|
6567
6561
|
goog.string.Const.unwrap = function(stringConst) {
|
|
6568
6562
|
if (stringConst instanceof goog.string.Const && stringConst.constructor === goog.string.Const && stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === goog.string.Const.TYPE_MARKER_) {
|
|
@@ -17395,7 +17389,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17395
17389
|
ee.apiclient = {};
|
|
17396
17390
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17397
17391
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17398
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17392
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.378";
|
|
17399
17393
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17400
17394
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17401
17395
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17686,8 +17680,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17686
17680
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17687
17681
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17688
17682
|
method = method || "POST";
|
|
17689
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17690
|
-
"0.1.
|
|
17683
|
+
var headers = {"Content-Type":contentType}, version = "0.1.378";
|
|
17684
|
+
"0.1.378" === version && (version = "latest");
|
|
17691
17685
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17692
17686
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17693
17687
|
if (null != authToken) {
|
|
@@ -24322,8 +24316,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24322
24316
|
throw Error(message);
|
|
24323
24317
|
}
|
|
24324
24318
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24325
|
-
var $jscomp$templatelit$
|
|
24326
|
-
["\\0"]), $jscomp$templatelit$
|
|
24319
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24320
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
24327
24321
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24328
24322
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24329
24323
|
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 ##############################");
|
|
@@ -24337,14 +24331,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24337
24331
|
return -1 === fn.toString().indexOf("`");
|
|
24338
24332
|
}
|
|
24339
24333
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24340
|
-
return tag($jscomp$templatelit$
|
|
24334
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
24341
24335
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24342
|
-
return tag($jscomp$templatelit$
|
|
24336
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
24343
24337
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24344
|
-
return tag($jscomp$templatelit$
|
|
24338
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
24345
24339
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24346
|
-
return tag($jscomp$templatelit$
|
|
24347
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24340
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
24341
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
24348
24342
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24349
24343
|
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)) ?
|
|
24350
24344
|
!0 : !1;
|
|
@@ -24610,9 +24604,12 @@ function module$contents$safevalues$dom$globals$range_createContextualFragment(r
|
|
|
24610
24604
|
return range.createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(html));
|
|
24611
24605
|
}
|
|
24612
24606
|
;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"};
|
|
24613
|
-
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml) {
|
|
24614
|
-
|
|
24615
|
-
|
|
24607
|
+
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
|
|
24608
|
+
if (goog.DEBUG && inertDocument.defaultView) {
|
|
24609
|
+
throw Error("createInertFragment called with non-inert document");
|
|
24610
|
+
}
|
|
24611
|
+
var range = inertDocument.createRange();
|
|
24612
|
+
range.selectNode(inertDocument.body);
|
|
24616
24613
|
var temporarySafeHtml = module$contents$safevalues$internals$html_impl_createHtmlInternal(dirtyHtml);
|
|
24617
24614
|
return module$contents$safevalues$dom$globals$range_createContextualFragment(range, temporarySafeHtml);
|
|
24618
24615
|
}
|
|
@@ -24717,21 +24714,25 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24717
24714
|
return sanitizedHtml;
|
|
24718
24715
|
};
|
|
24719
24716
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize = function(html) {
|
|
24720
|
-
var
|
|
24721
|
-
fakeRoot.appendChild(this.
|
|
24717
|
+
var inertDocument = document.implementation.createHTMLDocument(""), fakeRoot = inertDocument.body;
|
|
24718
|
+
fakeRoot.appendChild(this.sanitizeToFragmentInternal(html, inertDocument));
|
|
24722
24719
|
var serializedNewTree = (new XMLSerializer()).serializeToString(fakeRoot);
|
|
24723
24720
|
serializedNewTree = serializedNewTree.slice(serializedNewTree.indexOf(">") + 1, serializedNewTree.lastIndexOf("</"));
|
|
24724
24721
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal(serializedNewTree);
|
|
24725
24722
|
};
|
|
24726
24723
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
24727
|
-
|
|
24724
|
+
var inertDocument = document.implementation.createHTMLDocument("");
|
|
24725
|
+
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
24726
|
+
};
|
|
24727
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
24728
|
+
for (var $jscomp$this = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
24728
24729
|
return $jscomp$this.nodeFilter(n);
|
|
24729
|
-
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment =
|
|
24730
|
+
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
24730
24731
|
var sanitizedNode = void 0;
|
|
24731
24732
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
24732
24733
|
sanitizedNode = this.sanitizeTextNode(currentNode);
|
|
24733
24734
|
} else if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(currentNode)) {
|
|
24734
|
-
sanitizedNode = this.sanitizeElementNode(currentNode);
|
|
24735
|
+
sanitizedNode = this.sanitizeElementNode(currentNode, inertDocument);
|
|
24735
24736
|
} else {
|
|
24736
24737
|
var message = "";
|
|
24737
24738
|
goog.DEBUG && (message = "Node is not of type text or element");
|
|
@@ -24751,8 +24752,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24751
24752
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeTextNode = function(textNode) {
|
|
24752
24753
|
return document.createTextNode(textNode.data);
|
|
24753
24754
|
};
|
|
24754
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode) {
|
|
24755
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode =
|
|
24755
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
24756
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$43 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$ = $jscomp$iter$43.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$43.next()) {
|
|
24756
24757
|
var $jscomp$destructuring$var52 = $jscomp$key$.value, name = $jscomp$destructuring$var52.name, value = $jscomp$destructuring$var52.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
24757
24758
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
24758
24759
|
switch(policy.policyAction) {
|
|
@@ -24807,7 +24808,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24807
24808
|
return !0;
|
|
24808
24809
|
}
|
|
24809
24810
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24810
|
-
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$
|
|
24811
|
+
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
24811
24812
|
if (value && !expectedValues.has(value)) {
|
|
24812
24813
|
return !1;
|
|
24813
24814
|
}
|
|
@@ -24988,6 +24989,9 @@ function module$contents$safevalues$builders$resource_url_builders_isValidPathSt
|
|
|
24988
24989
|
}
|
|
24989
24990
|
throw Error("The path start in the url is invalid.");
|
|
24990
24991
|
}
|
|
24992
|
+
function module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) {
|
|
24993
|
+
return RegExp("^[^:\\s\\\\/]+/").test(base);
|
|
24994
|
+
}
|
|
24991
24995
|
function module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl(templateObj) {
|
|
24992
24996
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
24993
24997
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
@@ -24999,7 +25003,7 @@ function module$contents$safevalues$builders$resource_url_builders_trustedResour
|
|
|
24999
25003
|
if (/^data:/.test(base)) {
|
|
25000
25004
|
throw Error("Data URLs cannot have expressions in the template literal input.");
|
|
25001
25005
|
}
|
|
25002
|
-
if (!module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base)
|
|
25006
|
+
if (!(module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base) || module$contents$safevalues$builders$resource_url_builders_isValidPathStart(base) || module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) || module$contents$safevalues$builders$resource_url_builders_isValidAboutUrl(base))) {
|
|
25003
25007
|
throw Error("Trying to interpolate expressions in an unsupported url format.");
|
|
25004
25008
|
}
|
|
25005
25009
|
}
|
|
@@ -25044,6 +25048,10 @@ function module$contents$safevalues$builders$resource_url_builders_objectUrlFrom
|
|
|
25044
25048
|
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(URL.createObjectURL(new Blob([scriptContent], {type:"text/javascript"})));
|
|
25045
25049
|
}
|
|
25046
25050
|
module$exports$safevalues$builders$resource_url_builders.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
25051
|
+
module$exports$safevalues$builders$resource_url_builders.toAbsoluteResourceUrl = function(pathRelativeUrl) {
|
|
25052
|
+
var originalUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(pathRelativeUrl).toString(), qualifiedUrl = new URL(originalUrl, window.document.baseURI);
|
|
25053
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(qualifiedUrl.toString());
|
|
25054
|
+
};
|
|
25047
25055
|
var module$exports$safevalues$builders$script_builders = {}, module$contents$safevalues$builders$script_builders_module = module$contents$safevalues$builders$script_builders_module || {id:"third_party/javascript/safevalues/builders/script_builders.closure.js"}, module$contents$safevalues$builders$script_builders_Primitive, module$contents$safevalues$builders$script_builders_Serializable;
|
|
25048
25056
|
function module$contents$safevalues$builders$script_builders_safeScript(templateObj) {
|
|
25049
25057
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
@@ -25305,12 +25313,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25305
25313
|
}
|
|
25306
25314
|
try {
|
|
25307
25315
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25308
|
-
} catch ($jscomp$unused$catch$
|
|
25316
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
25309
25317
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25310
25318
|
}
|
|
25311
25319
|
try {
|
|
25312
25320
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25313
|
-
} catch ($jscomp$unused$catch$
|
|
25321
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
25314
25322
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25315
25323
|
}
|
|
25316
25324
|
return !1;
|
package/build/ee_api_js_npm.js
CHANGED
|
@@ -3726,24 +3726,18 @@ goog.userAgent.PLATFORM = goog.userAgent.determinePlatform_();
|
|
|
3726
3726
|
goog.userAgent.ASSUME_MAC = !1;
|
|
3727
3727
|
goog.userAgent.ASSUME_WINDOWS = !1;
|
|
3728
3728
|
goog.userAgent.ASSUME_LINUX = !1;
|
|
3729
|
-
goog.userAgent.ASSUME_X11 = !1;
|
|
3730
3729
|
goog.userAgent.ASSUME_ANDROID = !1;
|
|
3731
3730
|
goog.userAgent.ASSUME_IPHONE = !1;
|
|
3732
3731
|
goog.userAgent.ASSUME_IPAD = !1;
|
|
3733
3732
|
goog.userAgent.ASSUME_IPOD = !1;
|
|
3734
3733
|
goog.userAgent.ASSUME_KAIOS = !1;
|
|
3735
|
-
goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.
|
|
3734
|
+
goog.userAgent.PLATFORM_KNOWN_ = goog.userAgent.ASSUME_MAC || goog.userAgent.ASSUME_WINDOWS || goog.userAgent.ASSUME_LINUX || goog.userAgent.ASSUME_ANDROID || goog.userAgent.ASSUME_IPHONE || goog.userAgent.ASSUME_IPAD || goog.userAgent.ASSUME_IPOD;
|
|
3736
3735
|
goog.userAgent.MAC = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_MAC : module$contents$goog$labs$userAgent$platform_isMacintosh();
|
|
3737
3736
|
goog.userAgent.WINDOWS = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_WINDOWS : module$contents$goog$labs$userAgent$platform_isWindows();
|
|
3738
3737
|
goog.userAgent.isLegacyLinux_ = function() {
|
|
3739
3738
|
return module$contents$goog$labs$userAgent$platform_isLinux() || module$contents$goog$labs$userAgent$platform_isChromeOS();
|
|
3740
3739
|
};
|
|
3741
3740
|
goog.userAgent.LINUX = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_LINUX : goog.userAgent.isLegacyLinux_();
|
|
3742
|
-
goog.userAgent.isX11_ = function() {
|
|
3743
|
-
var navigator = goog.userAgent.getNavigatorTyped();
|
|
3744
|
-
return !!navigator && goog.string.internal.contains(navigator.appVersion || "", "X11");
|
|
3745
|
-
};
|
|
3746
|
-
goog.userAgent.X11 = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_X11 : goog.userAgent.isX11_();
|
|
3747
3741
|
goog.userAgent.ANDROID = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_ANDROID : module$contents$goog$labs$userAgent$platform_isAndroid();
|
|
3748
3742
|
goog.userAgent.IPHONE = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPHONE : module$contents$goog$labs$userAgent$platform_isIphone();
|
|
3749
3743
|
goog.userAgent.IPAD = goog.userAgent.PLATFORM_KNOWN_ ? goog.userAgent.ASSUME_IPAD : module$contents$goog$labs$userAgent$platform_isIpad();
|
|
@@ -6066,7 +6060,7 @@ module$exports$eeapiclient$domain_object.strictDeserialize = function(type, raw)
|
|
|
6066
6060
|
};
|
|
6067
6061
|
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;
|
|
6068
6062
|
function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter, valueSetter, copyInstanciator, targetConstructor) {
|
|
6069
|
-
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$
|
|
6063
|
+
for (var target = copyInstanciator(targetConstructor), metadata = module$contents$eeapiclient$domain_object_deepCopyMetadata(source, target), arrays = metadata.arrays || {}, objects = metadata.objects || {}, objectMaps = metadata.objectMaps || {}, $jscomp$iter$19 = $jscomp.makeIterator(metadata.keys || []), $jscomp$key$key = $jscomp$iter$19.next(), $jscomp$loop$m192531680$0 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$0 = {mapMetadata:$jscomp$loop$m192531680$0.mapMetadata},
|
|
6070
6064
|
$jscomp$key$key = $jscomp$iter$19.next()) {
|
|
6071
6065
|
var key = $jscomp$key$key.value, value = valueGetter(key, source);
|
|
6072
6066
|
if (null != value) {
|
|
@@ -6079,11 +6073,11 @@ function module$contents$eeapiclient$domain_object_deepCopy(source, valueGetter,
|
|
|
6079
6073
|
} else if (objects.hasOwnProperty(key)) {
|
|
6080
6074
|
copy = module$contents$eeapiclient$domain_object_deepCopyValue(value, valueGetter, valueSetter, copyInstanciator, !1, !0, objects[key]);
|
|
6081
6075
|
} else if (objectMaps.hasOwnProperty(key)) {
|
|
6082
|
-
$jscomp$loop$
|
|
6076
|
+
$jscomp$loop$m192531680$0.mapMetadata = objectMaps[key], copy = $jscomp$loop$m192531680$0.mapMetadata.isPropertyArray ? value.map(function($jscomp$loop$m192531680$0) {
|
|
6083
6077
|
return function(v) {
|
|
6084
|
-
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$
|
|
6078
|
+
return module$contents$eeapiclient$domain_object_deepCopyObjectMap(v, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6085
6079
|
};
|
|
6086
|
-
}($jscomp$loop$
|
|
6080
|
+
}($jscomp$loop$m192531680$0)) : module$contents$eeapiclient$domain_object_deepCopyObjectMap(value, $jscomp$loop$m192531680$0.mapMetadata, valueGetter, valueSetter, copyInstanciator);
|
|
6087
6081
|
} else if (Array.isArray(value)) {
|
|
6088
6082
|
if (metadata.emptyArrayIsUnset && 0 === value.length) {
|
|
6089
6083
|
continue;
|
|
@@ -6129,39 +6123,39 @@ function module$contents$eeapiclient$domain_object_deepEquals(serializable1, ser
|
|
|
6129
6123
|
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))) {
|
|
6130
6124
|
return !1;
|
|
6131
6125
|
}
|
|
6132
|
-
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$
|
|
6126
|
+
for (var $jscomp$iter$21 = $jscomp.makeIterator(keys1), $jscomp$key$key = $jscomp$iter$21.next(), $jscomp$loop$m192531680$1 = {}; !$jscomp$key$key.done; $jscomp$loop$m192531680$1 = {value2$jscomp$7:$jscomp$loop$m192531680$1.value2$jscomp$7, mapMetadata$jscomp$2:$jscomp$loop$m192531680$1.mapMetadata$jscomp$2}, $jscomp$key$key = $jscomp$iter$21.next()) {
|
|
6133
6127
|
var key = $jscomp$key$key.value, has1 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable1, key, metadata1), has2 = module$contents$eeapiclient$domain_object_hasAndIsNotEmptyArray(serializable2, key, metadata2);
|
|
6134
6128
|
if (has1 !== has2) {
|
|
6135
6129
|
return !1;
|
|
6136
6130
|
}
|
|
6137
6131
|
if (has1) {
|
|
6138
6132
|
var value1 = serializable1.Serializable$get(key);
|
|
6139
|
-
$jscomp$loop$
|
|
6133
|
+
$jscomp$loop$m192531680$1.value2$jscomp$7 = serializable2.Serializable$get(key);
|
|
6140
6134
|
if (arrays1.hasOwnProperty(key)) {
|
|
6141
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6135
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !0)) {
|
|
6142
6136
|
return !1;
|
|
6143
6137
|
}
|
|
6144
6138
|
} else if (objects1.hasOwnProperty(key)) {
|
|
6145
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6139
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !0)) {
|
|
6146
6140
|
return !1;
|
|
6147
6141
|
}
|
|
6148
6142
|
} else if (objectMaps1.hasOwnProperty(key)) {
|
|
6149
|
-
if ($jscomp$loop$
|
|
6150
|
-
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$
|
|
6143
|
+
if ($jscomp$loop$m192531680$1.mapMetadata$jscomp$2 = objectMaps1[key], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2.isPropertyArray) {
|
|
6144
|
+
if (!module$contents$eeapiclient$domain_object_sameKeys(value1, $jscomp$loop$m192531680$1.value2$jscomp$7) || value1.some(function($jscomp$loop$m192531680$1) {
|
|
6151
6145
|
return function(v1, i) {
|
|
6152
|
-
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$
|
|
6146
|
+
return !module$contents$eeapiclient$domain_object_deepEqualsObjectMap(v1, $jscomp$loop$m192531680$1.value2$jscomp$7[i], $jscomp$loop$m192531680$1.mapMetadata$jscomp$2);
|
|
6153
6147
|
};
|
|
6154
|
-
}($jscomp$loop$
|
|
6148
|
+
}($jscomp$loop$m192531680$1))) {
|
|
6155
6149
|
return !1;
|
|
6156
6150
|
}
|
|
6157
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$
|
|
6151
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsObjectMap(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, $jscomp$loop$m192531680$1.mapMetadata$jscomp$2)) {
|
|
6158
6152
|
return !1;
|
|
6159
6153
|
}
|
|
6160
6154
|
} else if (Array.isArray(value1)) {
|
|
6161
|
-
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6155
|
+
if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !0, !1)) {
|
|
6162
6156
|
return !1;
|
|
6163
6157
|
}
|
|
6164
|
-
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$
|
|
6158
|
+
} else if (!module$contents$eeapiclient$domain_object_deepEqualsValue(value1, $jscomp$loop$m192531680$1.value2$jscomp$7, !1, !1)) {
|
|
6165
6159
|
return !1;
|
|
6166
6160
|
}
|
|
6167
6161
|
}
|
|
@@ -6562,7 +6556,7 @@ goog.string.Const.prototype.getTypedStringValue = function() {
|
|
|
6562
6556
|
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6563
6557
|
};
|
|
6564
6558
|
goog.DEBUG && (goog.string.Const.prototype.toString = function() {
|
|
6565
|
-
return
|
|
6559
|
+
return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_;
|
|
6566
6560
|
});
|
|
6567
6561
|
goog.string.Const.unwrap = function(stringConst) {
|
|
6568
6562
|
if (stringConst instanceof goog.string.Const && stringConst.constructor === goog.string.Const && stringConst.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ === goog.string.Const.TYPE_MARKER_) {
|
|
@@ -17395,7 +17389,7 @@ goog.debug.entryPointRegistry.register(function(transformer) {
|
|
|
17395
17389
|
ee.apiclient = {};
|
|
17396
17390
|
var module$contents$ee$apiclient_apiclient = {};
|
|
17397
17391
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
17398
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
17392
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.378";
|
|
17399
17393
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
17400
17394
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
17401
17395
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -17686,8 +17680,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
17686
17680
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
17687
17681
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
17688
17682
|
method = method || "POST";
|
|
17689
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
17690
|
-
"0.1.
|
|
17683
|
+
var headers = {"Content-Type":contentType}, version = "0.1.378";
|
|
17684
|
+
"0.1.378" === version && (version = "latest");
|
|
17691
17685
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
17692
17686
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
17693
17687
|
if (null != authToken) {
|
|
@@ -24322,8 +24316,8 @@ function module$contents$safevalues$internals$attribute_impl_unwrapAttributePref
|
|
|
24322
24316
|
throw Error(message);
|
|
24323
24317
|
}
|
|
24324
24318
|
module$exports$safevalues$internals$attribute_impl.unwrapAttributePrefix = module$contents$safevalues$internals$attribute_impl_unwrapAttributePrefix;
|
|
24325
|
-
var $jscomp$templatelit$
|
|
24326
|
-
["\\0"]), $jscomp$templatelit$
|
|
24319
|
+
var $jscomp$templatelit$1274514361$0 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$1 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]), $jscomp$templatelit$1274514361$2 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$3 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), $jscomp$templatelit$1274514361$4 = $jscomp.createTemplateTagFirstArg([""]), $jscomp$templatelit$1274514361$5 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"],
|
|
24320
|
+
["\\0"]), $jscomp$templatelit$1274514361$6 = $jscomp.createTemplateTagFirstArgWithRaw(["\n"], ["\\n"]), $jscomp$templatelit$1274514361$7 = $jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\u0000"]), module$contents$safevalues$internals$string_literal_module = module$contents$safevalues$internals$string_literal_module || {id:"third_party/javascript/safevalues/internals/string_literal.closure.js"};
|
|
24327
24321
|
function module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, numExprs) {
|
|
24328
24322
|
if (!module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) || numExprs + 1 !== templateObj.length) {
|
|
24329
24323
|
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 ##############################");
|
|
@@ -24337,14 +24331,14 @@ function module$contents$safevalues$internals$string_literal_checkTranspiled(fn)
|
|
|
24337
24331
|
return -1 === fn.toString().indexOf("`");
|
|
24338
24332
|
}
|
|
24339
24333
|
var module$contents$safevalues$internals$string_literal_isTranspiled = module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24340
|
-
return tag($jscomp$templatelit$
|
|
24334
|
+
return tag($jscomp$templatelit$1274514361$0);
|
|
24341
24335
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24342
|
-
return tag($jscomp$templatelit$
|
|
24336
|
+
return tag($jscomp$templatelit$1274514361$1);
|
|
24343
24337
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24344
|
-
return tag($jscomp$templatelit$
|
|
24338
|
+
return tag($jscomp$templatelit$1274514361$2);
|
|
24345
24339
|
}) || module$contents$safevalues$internals$string_literal_checkTranspiled(function(tag) {
|
|
24346
|
-
return tag($jscomp$templatelit$
|
|
24347
|
-
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$
|
|
24340
|
+
return tag($jscomp$templatelit$1274514361$3);
|
|
24341
|
+
}), module$contents$safevalues$internals$string_literal_frozenTSA = module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$4) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$5) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$6) && module$contents$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$7);
|
|
24348
24342
|
function module$contents$safevalues$internals$string_literal_isTemplateObject(templateObj) {
|
|
24349
24343
|
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)) ?
|
|
24350
24344
|
!0 : !1;
|
|
@@ -24610,9 +24604,12 @@ function module$contents$safevalues$dom$globals$range_createContextualFragment(r
|
|
|
24610
24604
|
return range.createContextualFragment(module$contents$safevalues$internals$html_impl_unwrapHtml(html));
|
|
24611
24605
|
}
|
|
24612
24606
|
;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"};
|
|
24613
|
-
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml) {
|
|
24614
|
-
|
|
24615
|
-
|
|
24607
|
+
function module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(dirtyHtml, inertDocument) {
|
|
24608
|
+
if (goog.DEBUG && inertDocument.defaultView) {
|
|
24609
|
+
throw Error("createInertFragment called with non-inert document");
|
|
24610
|
+
}
|
|
24611
|
+
var range = inertDocument.createRange();
|
|
24612
|
+
range.selectNode(inertDocument.body);
|
|
24616
24613
|
var temporarySafeHtml = module$contents$safevalues$internals$html_impl_createHtmlInternal(dirtyHtml);
|
|
24617
24614
|
return module$contents$safevalues$dom$globals$range_createContextualFragment(range, temporarySafeHtml);
|
|
24618
24615
|
}
|
|
@@ -24717,21 +24714,25 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24717
24714
|
return sanitizedHtml;
|
|
24718
24715
|
};
|
|
24719
24716
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize = function(html) {
|
|
24720
|
-
var
|
|
24721
|
-
fakeRoot.appendChild(this.
|
|
24717
|
+
var inertDocument = document.implementation.createHTMLDocument(""), fakeRoot = inertDocument.body;
|
|
24718
|
+
fakeRoot.appendChild(this.sanitizeToFragmentInternal(html, inertDocument));
|
|
24722
24719
|
var serializedNewTree = (new XMLSerializer()).serializeToString(fakeRoot);
|
|
24723
24720
|
serializedNewTree = serializedNewTree.slice(serializedNewTree.indexOf(">") + 1, serializedNewTree.lastIndexOf("</"));
|
|
24724
24721
|
return module$contents$safevalues$internals$html_impl_createHtmlInternal(serializedNewTree);
|
|
24725
24722
|
};
|
|
24726
24723
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment = function(html) {
|
|
24727
|
-
|
|
24724
|
+
var inertDocument = document.implementation.createHTMLDocument("");
|
|
24725
|
+
return this.sanitizeToFragmentInternal(html, inertDocument);
|
|
24726
|
+
};
|
|
24727
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal = function(html, inertDocument) {
|
|
24728
|
+
for (var $jscomp$this = this, dirtyFragment = module$contents$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(html, inertDocument), treeWalker = document.createTreeWalker(dirtyFragment, 5, function(n) {
|
|
24728
24729
|
return $jscomp$this.nodeFilter(n);
|
|
24729
|
-
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment =
|
|
24730
|
+
}, !1), currentNode = treeWalker.nextNode(), sanitizedFragment = inertDocument.createDocumentFragment(), sanitizedParent = sanitizedFragment; null !== currentNode;) {
|
|
24730
24731
|
var sanitizedNode = void 0;
|
|
24731
24732
|
if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isText(currentNode)) {
|
|
24732
24733
|
sanitizedNode = this.sanitizeTextNode(currentNode);
|
|
24733
24734
|
} else if (module$contents$safevalues$builders$html_sanitizer$no_clobber_isElement(currentNode)) {
|
|
24734
|
-
sanitizedNode = this.sanitizeElementNode(currentNode);
|
|
24735
|
+
sanitizedNode = this.sanitizeElementNode(currentNode, inertDocument);
|
|
24735
24736
|
} else {
|
|
24736
24737
|
var message = "";
|
|
24737
24738
|
goog.DEBUG && (message = "Node is not of type text or element");
|
|
@@ -24751,8 +24752,8 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24751
24752
|
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeTextNode = function(textNode) {
|
|
24752
24753
|
return document.createTextNode(textNode.data);
|
|
24753
24754
|
};
|
|
24754
|
-
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode) {
|
|
24755
|
-
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode =
|
|
24755
|
+
module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode = function(elementNode, inertDocument) {
|
|
24756
|
+
for (var elementName = module$contents$safevalues$builders$html_sanitizer$no_clobber_getNodeName(elementNode), newNode = inertDocument.createElement(elementName), dirtyAttributes = elementNode.attributes, $jscomp$iter$43 = $jscomp.makeIterator(dirtyAttributes), $jscomp$key$ = $jscomp$iter$43.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$43.next()) {
|
|
24756
24757
|
var $jscomp$destructuring$var52 = $jscomp$key$.value, name = $jscomp$destructuring$var52.name, value = $jscomp$destructuring$var52.value, policy = this.sanitizerTable.getAttributePolicy(name, elementName);
|
|
24757
24758
|
if (this.satisfiesAllConditions(policy.conditions, dirtyAttributes)) {
|
|
24758
24759
|
switch(policy.policyAction) {
|
|
@@ -24807,7 +24808,7 @@ module$exports$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerIm
|
|
|
24807
24808
|
return !0;
|
|
24808
24809
|
}
|
|
24809
24810
|
for (var $jscomp$iter$44 = $jscomp.makeIterator(conditions), $jscomp$key$ = $jscomp$iter$44.next(); !$jscomp$key$.done; $jscomp$key$ = $jscomp$iter$44.next()) {
|
|
24810
|
-
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$
|
|
24811
|
+
var $jscomp$destructuring$var54 = $jscomp.makeIterator($jscomp$key$.value), attrName__tsickle_destructured_1 = $jscomp$destructuring$var54.next().value, expectedValues = $jscomp$destructuring$var54.next().value, $jscomp$optchain$tmpm1803429925$0 = void 0, value = null == ($jscomp$optchain$tmpm1803429925$0 = attrs.getNamedItem(attrName__tsickle_destructured_1)) ? void 0 : $jscomp$optchain$tmpm1803429925$0.value;
|
|
24811
24812
|
if (value && !expectedValues.has(value)) {
|
|
24812
24813
|
return !1;
|
|
24813
24814
|
}
|
|
@@ -24988,6 +24989,9 @@ function module$contents$safevalues$builders$resource_url_builders_isValidPathSt
|
|
|
24988
24989
|
}
|
|
24989
24990
|
throw Error("The path start in the url is invalid.");
|
|
24990
24991
|
}
|
|
24992
|
+
function module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) {
|
|
24993
|
+
return RegExp("^[^:\\s\\\\/]+/").test(base);
|
|
24994
|
+
}
|
|
24991
24995
|
function module$contents$safevalues$builders$resource_url_builders_trustedResourceUrl(templateObj) {
|
|
24992
24996
|
var rest = $jscomp.getRestArguments.apply(1, arguments);
|
|
24993
24997
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, rest.length);
|
|
@@ -24999,7 +25003,7 @@ function module$contents$safevalues$builders$resource_url_builders_trustedResour
|
|
|
24999
25003
|
if (/^data:/.test(base)) {
|
|
25000
25004
|
throw Error("Data URLs cannot have expressions in the template literal input.");
|
|
25001
25005
|
}
|
|
25002
|
-
if (!module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base)
|
|
25006
|
+
if (!(module$contents$safevalues$builders$resource_url_builders_hasValidOrigin(base) || module$contents$safevalues$builders$resource_url_builders_isValidPathStart(base) || module$contents$safevalues$builders$resource_url_builders_isValidRelativePathStart(base) || module$contents$safevalues$builders$resource_url_builders_isValidAboutUrl(base))) {
|
|
25003
25007
|
throw Error("Trying to interpolate expressions in an unsupported url format.");
|
|
25004
25008
|
}
|
|
25005
25009
|
}
|
|
@@ -25044,6 +25048,10 @@ function module$contents$safevalues$builders$resource_url_builders_objectUrlFrom
|
|
|
25044
25048
|
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(URL.createObjectURL(new Blob([scriptContent], {type:"text/javascript"})));
|
|
25045
25049
|
}
|
|
25046
25050
|
module$exports$safevalues$builders$resource_url_builders.objectUrlFromScript = module$contents$safevalues$builders$resource_url_builders_objectUrlFromScript;
|
|
25051
|
+
module$exports$safevalues$builders$resource_url_builders.toAbsoluteResourceUrl = function(pathRelativeUrl) {
|
|
25052
|
+
var originalUrl = module$contents$safevalues$internals$resource_url_impl_unwrapResourceUrl(pathRelativeUrl).toString(), qualifiedUrl = new URL(originalUrl, window.document.baseURI);
|
|
25053
|
+
return module$contents$safevalues$internals$resource_url_impl_createResourceUrlInternal(qualifiedUrl.toString());
|
|
25054
|
+
};
|
|
25047
25055
|
var module$exports$safevalues$builders$script_builders = {}, module$contents$safevalues$builders$script_builders_module = module$contents$safevalues$builders$script_builders_module || {id:"third_party/javascript/safevalues/builders/script_builders.closure.js"}, module$contents$safevalues$builders$script_builders_Primitive, module$contents$safevalues$builders$script_builders_Serializable;
|
|
25048
25056
|
function module$contents$safevalues$builders$script_builders_safeScript(templateObj) {
|
|
25049
25057
|
goog.DEBUG && module$contents$safevalues$internals$string_literal_assertIsTemplateObject(templateObj, 0);
|
|
@@ -25305,12 +25313,12 @@ function module$contents$safevalues$reporting$reporting_isChangedBySanitizing(s,
|
|
|
25305
25313
|
}
|
|
25306
25314
|
try {
|
|
25307
25315
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(s);
|
|
25308
|
-
} catch ($jscomp$unused$catch$
|
|
25316
|
+
} catch ($jscomp$unused$catch$442189172$0) {
|
|
25309
25317
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING), !0;
|
|
25310
25318
|
}
|
|
25311
25319
|
try {
|
|
25312
25320
|
module$contents$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(s);
|
|
25313
|
-
} catch ($jscomp$unused$catch$
|
|
25321
|
+
} catch ($jscomp$unused$catch$442189172$1) {
|
|
25314
25322
|
return module$contents$safevalues$reporting$reporting_reportLegacyConversion(options, module$contents$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0;
|
|
25315
25323
|
}
|
|
25316
25324
|
return !1;
|