@google/earthengine 1.7.1 → 1.7.3
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 +469 -428
- package/build/ee_api_js.js +246 -246
- package/build/ee_api_js_debug.js +446 -406
- package/build/ee_api_js_npm.js +469 -428
- package/build/main.js +469 -428
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/batch.js +6 -2
- package/src/data.js +3 -0
- package/src/encodable_batch.js +4 -2
package/build/ee_api_js_debug.js
CHANGED
|
@@ -1344,7 +1344,7 @@ $jscomp.polyfill("String.prototype.padStart", function(orig) {
|
|
|
1344
1344
|
return $jscomp.stringPadding(opt_padString, targetLength - string.length) + string;
|
|
1345
1345
|
};
|
|
1346
1346
|
}, "es8", "es3");
|
|
1347
|
-
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_context_per_component__enable:!1, GoogFlags__client_only_wiz_lazy_tsx__disable:!1, GoogFlags__client_only_wiz_queue_effect_and_on_init_initial_runs__disable:!1, GoogFlags__fixed_noopener_behavior__enable:!1,
|
|
1347
|
+
var CLOSURE_TOGGLE_ORDINALS = {GoogFlags__async_throw_on_unicode_to_byte__enable:!1, GoogFlags__client_only_wiz_context_per_component__enable:!1, GoogFlags__client_only_wiz_lazy_tsx__disable:!1, GoogFlags__client_only_wiz_queue_effect_and_on_init_initial_runs__disable:!1, GoogFlags__fixed_noopener_behavior__enable:!1, GoogFlags__jspb_deserialize_binary_int64s_as_gbigint__disable:!1, GoogFlags__jspb_disallow_message_tojson__enable:!1, GoogFlags__jspb_serialize_with_dynamic_pivot_selector__enable:!1,
|
|
1348
1348
|
GoogFlags__jspb_throw_in_array_constructor_if_array_is_already_constructed__disable:!1, GoogFlags__jspb_use_constant_default_pivot__enable:!1, GoogFlags__jspb_write_back_bigint__enable:!1, GoogFlags__optimize_get_ei_from_ved__enable:!1, GoogFlags__override_disable_toggles:!1, GoogFlags__testonly_debug_flag__enable:!1, GoogFlags__testonly_disabled_flag__enable:!1, GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1, GoogFlags__use_toggles:!1, GoogFlags__use_user_agent_client_hints__enable:!1,
|
|
1349
1349
|
GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
1350
1350
|
/*
|
|
@@ -1352,7 +1352,7 @@ GoogFlags__wiz_enable_native_promise__enable:!1};
|
|
|
1352
1352
|
Copyright The Closure Library Authors.
|
|
1353
1353
|
SPDX-License-Identifier: Apache-2.0
|
|
1354
1354
|
*/
|
|
1355
|
-
var
|
|
1355
|
+
var goog = goog || {};
|
|
1356
1356
|
goog.global = this || self;
|
|
1357
1357
|
goog.exportPath_ = function(name, object, overwriteImplicit, objectToExportTo) {
|
|
1358
1358
|
for (var parts = name.split("."), cur = objectToExportTo || goog.global, part; parts.length && (part = parts.shift());) {
|
|
@@ -3663,7 +3663,8 @@ goog.inherits(module$contents$goog$debug$Error_DebugError, Error);
|
|
|
3663
3663
|
module$contents$goog$debug$Error_DebugError.prototype.name = "CustomError";
|
|
3664
3664
|
goog.debug.Error = module$contents$goog$debug$Error_DebugError;
|
|
3665
3665
|
goog.dom = {};
|
|
3666
|
-
goog
|
|
3666
|
+
var module$contents$goog$dom$NodeType_NodeType = {ELEMENT:1, ATTRIBUTE:2, TEXT:3, CDATA_SECTION:4, ENTITY_REFERENCE:5, ENTITY:6, PROCESSING_INSTRUCTION:7, COMMENT:8, DOCUMENT:9, DOCUMENT_TYPE:10, DOCUMENT_FRAGMENT:11, NOTATION:12};
|
|
3667
|
+
goog.dom.NodeType = module$contents$goog$dom$NodeType_NodeType;
|
|
3667
3668
|
goog.asserts = {};
|
|
3668
3669
|
goog.asserts.ENABLE_ASSERTS = module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS;
|
|
3669
3670
|
function module$contents$goog$asserts_AssertionError(messagePattern, messageArgs) {
|
|
@@ -3733,7 +3734,7 @@ goog.asserts.assertBoolean = function(value, opt_message, var_args) {
|
|
|
3733
3734
|
return value;
|
|
3734
3735
|
};
|
|
3735
3736
|
goog.asserts.assertElement = function(value, opt_message, var_args) {
|
|
3736
|
-
!module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || goog.isObject(value) && value.nodeType == goog
|
|
3737
|
+
!module$exports$enable_goog_asserts.ENABLE_GOOG_ASSERTS || goog.isObject(value) && value.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT || module$contents$goog$asserts_doAssertFailure("Expected Element but got %s: %s.", [goog.typeOf(value), value], opt_message, Array.prototype.slice.call(arguments, 2));
|
|
3737
3738
|
return value;
|
|
3738
3739
|
};
|
|
3739
3740
|
goog.asserts.assertInstanceof = function(value, type, opt_message, var_args) {
|
|
@@ -5598,8 +5599,8 @@ goog.structs.every = function(col, f, opt_obj) {
|
|
|
5598
5599
|
};
|
|
5599
5600
|
goog.uri = {};
|
|
5600
5601
|
goog.uri.utils = {};
|
|
5601
|
-
goog
|
|
5602
|
-
goog
|
|
5602
|
+
var module$contents$goog$uri$utils_CharCode = {AMPERSAND:38, EQUAL:61, HASH:35, QUESTION:63};
|
|
5603
|
+
function module$contents$goog$uri$utils_buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {
|
|
5603
5604
|
var out = "";
|
|
5604
5605
|
opt_scheme && (out += opt_scheme + ":");
|
|
5605
5606
|
opt_domain && (out += "//", opt_userInfo && (out += opt_userInfo + "@"), out += opt_domain, opt_port && (out += ":" + opt_port));
|
|
@@ -5607,90 +5608,48 @@ goog.uri.utils.buildFromEncodedParts = function(opt_scheme, opt_userInfo, opt_do
|
|
|
5607
5608
|
opt_queryData && (out += "?" + opt_queryData);
|
|
5608
5609
|
opt_fragment && (out += "#" + opt_fragment);
|
|
5609
5610
|
return out;
|
|
5610
|
-
}
|
|
5611
|
-
goog
|
|
5612
|
-
goog
|
|
5613
|
-
|
|
5614
|
-
goog.uri.
|
|
5615
|
-
goog.uri.utils.urlPackageSupportLoggingHandler_ = handler;
|
|
5616
|
-
};
|
|
5617
|
-
goog.uri.utils.split = function(uri) {
|
|
5618
|
-
var result = uri.match(goog.uri.utils.splitRe_);
|
|
5619
|
-
goog.uri.utils.urlPackageSupportLoggingHandler_ && ["http", "https", "ws", "wss", "ftp"].indexOf(result[goog.uri.utils.ComponentIndex.SCHEME]) >= 0 && goog.uri.utils.urlPackageSupportLoggingHandler_(uri);
|
|
5611
|
+
}
|
|
5612
|
+
var module$contents$goog$uri$utils_splitRe = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"), module$contents$goog$uri$utils_ComponentIndex = {SCHEME:1, USER_INFO:2, DOMAIN:3, PORT:4, PATH:5, QUERY_DATA:6, FRAGMENT:7}, module$contents$goog$uri$utils_urlPackageSupportLoggingHandler = null;
|
|
5613
|
+
function module$contents$goog$uri$utils_split(uri) {
|
|
5614
|
+
var result = uri.match(module$contents$goog$uri$utils_splitRe);
|
|
5615
|
+
module$contents$goog$uri$utils_urlPackageSupportLoggingHandler && ["http", "https", "ws", "wss", "ftp"].indexOf(result[module$contents$goog$uri$utils_ComponentIndex.SCHEME]) >= 0 && module$contents$goog$uri$utils_urlPackageSupportLoggingHandler(uri);
|
|
5620
5616
|
return result;
|
|
5621
|
-
}
|
|
5622
|
-
goog
|
|
5617
|
+
}
|
|
5618
|
+
function module$contents$goog$uri$utils_decodeIfPossible(uri, opt_preserveReserved) {
|
|
5623
5619
|
return uri ? opt_preserveReserved ? decodeURI(uri) : decodeURIComponent(uri) : uri;
|
|
5624
|
-
}
|
|
5625
|
-
goog
|
|
5626
|
-
return goog
|
|
5627
|
-
}
|
|
5628
|
-
goog
|
|
5629
|
-
return goog
|
|
5630
|
-
}
|
|
5631
|
-
goog
|
|
5632
|
-
var scheme = goog
|
|
5620
|
+
}
|
|
5621
|
+
function module$contents$goog$uri$utils_getComponentByIndex(componentIndex, uri) {
|
|
5622
|
+
return module$contents$goog$uri$utils_split(uri)[componentIndex] || null;
|
|
5623
|
+
}
|
|
5624
|
+
function module$contents$goog$uri$utils_getScheme(uri) {
|
|
5625
|
+
return module$contents$goog$uri$utils_getComponentByIndex(module$contents$goog$uri$utils_ComponentIndex.SCHEME, uri);
|
|
5626
|
+
}
|
|
5627
|
+
function module$contents$goog$uri$utils_getEffectiveScheme(uri) {
|
|
5628
|
+
var scheme = module$contents$goog$uri$utils_getScheme(uri);
|
|
5633
5629
|
!scheme && goog.global.self && goog.global.self.location && (scheme = goog.global.self.location.protocol.slice(0, -1));
|
|
5634
5630
|
return scheme ? scheme.toLowerCase() : "";
|
|
5635
|
-
}
|
|
5636
|
-
goog
|
|
5637
|
-
return goog
|
|
5638
|
-
}
|
|
5639
|
-
goog
|
|
5640
|
-
return goog
|
|
5641
|
-
}
|
|
5642
|
-
goog
|
|
5643
|
-
return goog
|
|
5644
|
-
}
|
|
5645
|
-
goog
|
|
5646
|
-
return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getDomainEncoded(uri), !0);
|
|
5647
|
-
};
|
|
5648
|
-
goog.uri.utils.getPort = function(uri) {
|
|
5649
|
-
return Number(goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PORT, uri)) || null;
|
|
5650
|
-
};
|
|
5651
|
-
goog.uri.utils.getPathEncoded = function(uri) {
|
|
5652
|
-
return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PATH, uri);
|
|
5653
|
-
};
|
|
5654
|
-
goog.uri.utils.getPath = function(uri) {
|
|
5655
|
-
return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getPathEncoded(uri), !0);
|
|
5656
|
-
};
|
|
5657
|
-
goog.uri.utils.getQueryData = function(uri) {
|
|
5658
|
-
return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.QUERY_DATA, uri);
|
|
5659
|
-
};
|
|
5660
|
-
goog.uri.utils.getFragmentEncoded = function(uri) {
|
|
5631
|
+
}
|
|
5632
|
+
function module$contents$goog$uri$utils_getUserInfoEncoded(uri) {
|
|
5633
|
+
return module$contents$goog$uri$utils_getComponentByIndex(module$contents$goog$uri$utils_ComponentIndex.USER_INFO, uri);
|
|
5634
|
+
}
|
|
5635
|
+
function module$contents$goog$uri$utils_getDomainEncoded(uri) {
|
|
5636
|
+
return module$contents$goog$uri$utils_getComponentByIndex(module$contents$goog$uri$utils_ComponentIndex.DOMAIN, uri);
|
|
5637
|
+
}
|
|
5638
|
+
function module$contents$goog$uri$utils_getPathEncoded(uri) {
|
|
5639
|
+
return module$contents$goog$uri$utils_getComponentByIndex(module$contents$goog$uri$utils_ComponentIndex.PATH, uri);
|
|
5640
|
+
}
|
|
5641
|
+
function module$contents$goog$uri$utils_getFragmentEncoded(uri) {
|
|
5661
5642
|
var hashIndex = uri.indexOf("#");
|
|
5662
5643
|
return hashIndex < 0 ? null : uri.slice(hashIndex + 1);
|
|
5663
|
-
}
|
|
5664
|
-
goog
|
|
5665
|
-
return goog.uri.utils.removeFragment(uri) + (fragment ? "#" + fragment : "");
|
|
5666
|
-
};
|
|
5667
|
-
goog.uri.utils.getFragment = function(uri) {
|
|
5668
|
-
return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getFragmentEncoded(uri));
|
|
5669
|
-
};
|
|
5670
|
-
goog.uri.utils.getHost = function(uri) {
|
|
5671
|
-
var pieces = goog.uri.utils.split(uri);
|
|
5672
|
-
return goog.uri.utils.buildFromEncodedParts(pieces[goog.uri.utils.ComponentIndex.SCHEME], pieces[goog.uri.utils.ComponentIndex.USER_INFO], pieces[goog.uri.utils.ComponentIndex.DOMAIN], pieces[goog.uri.utils.ComponentIndex.PORT]);
|
|
5673
|
-
};
|
|
5674
|
-
goog.uri.utils.getOrigin = function(uri) {
|
|
5675
|
-
var pieces = goog.uri.utils.split(uri);
|
|
5676
|
-
return goog.uri.utils.buildFromEncodedParts(pieces[goog.uri.utils.ComponentIndex.SCHEME], null, pieces[goog.uri.utils.ComponentIndex.DOMAIN], pieces[goog.uri.utils.ComponentIndex.PORT]);
|
|
5677
|
-
};
|
|
5678
|
-
goog.uri.utils.getPathAndAfter = function(uri) {
|
|
5679
|
-
var pieces = goog.uri.utils.split(uri);
|
|
5680
|
-
return goog.uri.utils.buildFromEncodedParts(null, null, null, null, pieces[goog.uri.utils.ComponentIndex.PATH], pieces[goog.uri.utils.ComponentIndex.QUERY_DATA], pieces[goog.uri.utils.ComponentIndex.FRAGMENT]);
|
|
5681
|
-
};
|
|
5682
|
-
goog.uri.utils.removeFragment = function(uri) {
|
|
5644
|
+
}
|
|
5645
|
+
function module$contents$goog$uri$utils_removeFragment(uri) {
|
|
5683
5646
|
var hashIndex = uri.indexOf("#");
|
|
5684
5647
|
return hashIndex < 0 ? uri : uri.slice(0, hashIndex);
|
|
5685
|
-
}
|
|
5686
|
-
goog
|
|
5687
|
-
var pieces1 = goog.uri.utils.split(uri1), pieces2 = goog.uri.utils.split(uri2);
|
|
5688
|
-
return pieces1[goog.uri.utils.ComponentIndex.DOMAIN] == pieces2[goog.uri.utils.ComponentIndex.DOMAIN] && pieces1[goog.uri.utils.ComponentIndex.SCHEME] == pieces2[goog.uri.utils.ComponentIndex.SCHEME] && pieces1[goog.uri.utils.ComponentIndex.PORT] == pieces2[goog.uri.utils.ComponentIndex.PORT];
|
|
5689
|
-
};
|
|
5690
|
-
goog.uri.utils.assertNoFragmentsOrQueries_ = function(uri) {
|
|
5648
|
+
}
|
|
5649
|
+
function module$contents$goog$uri$utils_assertNoFragmentsOrQueries(uri) {
|
|
5691
5650
|
goog.asserts.assert(uri.indexOf("#") < 0 && uri.indexOf("?") < 0, "goog.uri.utils: Fragment or query identifiers are not supported: [%s]", uri);
|
|
5692
|
-
}
|
|
5693
|
-
goog
|
|
5651
|
+
}
|
|
5652
|
+
function module$contents$goog$uri$utils_parseQueryData(encodedQuery, callback) {
|
|
5694
5653
|
if (encodedQuery) {
|
|
5695
5654
|
for (var pairs = encodedQuery.split("&"), i = 0; i < pairs.length; i++) {
|
|
5696
5655
|
var indexOfEquals = pairs[i].indexOf("="), name = null, value = null;
|
|
@@ -5698,8 +5657,8 @@ goog.uri.utils.parseQueryData = function(encodedQuery, callback) {
|
|
|
5698
5657
|
callback(name, value ? goog.string.urlDecode(value) : "");
|
|
5699
5658
|
}
|
|
5700
5659
|
}
|
|
5701
|
-
}
|
|
5702
|
-
goog
|
|
5660
|
+
}
|
|
5661
|
+
function module$contents$goog$uri$utils_splitQueryData(uri) {
|
|
5703
5662
|
var hashIndex = uri.indexOf("#");
|
|
5704
5663
|
hashIndex < 0 && (hashIndex = uri.length);
|
|
5705
5664
|
var questionIndex = uri.indexOf("?");
|
|
@@ -5710,77 +5669,116 @@ goog.uri.utils.splitQueryData_ = function(uri) {
|
|
|
5710
5669
|
queryData = uri.substring(questionIndex + 1, hashIndex);
|
|
5711
5670
|
}
|
|
5712
5671
|
return [uri.slice(0, questionIndex), queryData, uri.slice(hashIndex)];
|
|
5713
|
-
}
|
|
5714
|
-
goog
|
|
5672
|
+
}
|
|
5673
|
+
function module$contents$goog$uri$utils_joinQueryData(parts) {
|
|
5715
5674
|
return parts[0] + (parts[1] ? "?" + parts[1] : "") + parts[2];
|
|
5716
|
-
}
|
|
5717
|
-
goog
|
|
5675
|
+
}
|
|
5676
|
+
function module$contents$goog$uri$utils_appendQueryData(queryData, newData) {
|
|
5718
5677
|
return newData ? queryData ? queryData + "&" + newData : newData : queryData;
|
|
5719
|
-
}
|
|
5720
|
-
goog
|
|
5678
|
+
}
|
|
5679
|
+
function module$contents$goog$uri$utils_appendQueryDataToUri(uri, queryData) {
|
|
5721
5680
|
if (!queryData) {
|
|
5722
5681
|
return uri;
|
|
5723
5682
|
}
|
|
5724
|
-
var parts = goog
|
|
5725
|
-
parts[1] = goog
|
|
5726
|
-
return goog
|
|
5727
|
-
}
|
|
5728
|
-
goog
|
|
5683
|
+
var parts = module$contents$goog$uri$utils_splitQueryData(uri);
|
|
5684
|
+
parts[1] = module$contents$goog$uri$utils_appendQueryData(parts[1], queryData);
|
|
5685
|
+
return module$contents$goog$uri$utils_joinQueryData(parts);
|
|
5686
|
+
}
|
|
5687
|
+
function module$contents$goog$uri$utils_appendKeyValuePairs(key, value, pairs) {
|
|
5729
5688
|
goog.asserts.assertString(key);
|
|
5730
5689
|
if (Array.isArray(value)) {
|
|
5731
5690
|
goog.asserts.assertArray(value);
|
|
5732
5691
|
for (var j = 0; j < value.length; j++) {
|
|
5733
|
-
goog
|
|
5692
|
+
module$contents$goog$uri$utils_appendKeyValuePairs(key, String(value[j]), pairs);
|
|
5734
5693
|
}
|
|
5735
5694
|
} else {
|
|
5736
5695
|
value != null && pairs.push(key + (value === "" ? "" : "=" + goog.string.urlEncode(value)));
|
|
5737
5696
|
}
|
|
5738
|
-
}
|
|
5739
|
-
goog
|
|
5697
|
+
}
|
|
5698
|
+
function module$contents$goog$uri$utils_buildQueryData(keysAndValues, opt_startIndex) {
|
|
5740
5699
|
goog.asserts.assert(Math.max(keysAndValues.length - (opt_startIndex || 0), 0) % 2 == 0, "goog.uri.utils: Key/value lists must be even in length.");
|
|
5741
5700
|
for (var params = [], i = opt_startIndex || 0; i < keysAndValues.length; i += 2) {
|
|
5742
|
-
goog
|
|
5701
|
+
module$contents$goog$uri$utils_appendKeyValuePairs(keysAndValues[i], keysAndValues[i + 1], params);
|
|
5743
5702
|
}
|
|
5744
5703
|
return params.join("&");
|
|
5745
|
-
}
|
|
5746
|
-
goog
|
|
5704
|
+
}
|
|
5705
|
+
function module$contents$goog$uri$utils_buildQueryDataFromMap(map) {
|
|
5747
5706
|
var params = [], key;
|
|
5748
5707
|
for (key in map) {
|
|
5749
|
-
goog
|
|
5708
|
+
module$contents$goog$uri$utils_appendKeyValuePairs(key, map[key], params);
|
|
5750
5709
|
}
|
|
5751
5710
|
return params.join("&");
|
|
5752
|
-
}
|
|
5753
|
-
goog
|
|
5754
|
-
var queryData = arguments.length == 2 ? goog.uri.utils.buildQueryData(arguments[1], 0) : goog.uri.utils.buildQueryData(arguments, 1);
|
|
5755
|
-
return goog.uri.utils.appendQueryDataToUri_(uri, queryData);
|
|
5756
|
-
};
|
|
5757
|
-
goog.uri.utils.appendParamsFromMap = function(uri, map) {
|
|
5758
|
-
var queryData = goog.uri.utils.buildQueryDataFromMap(map);
|
|
5759
|
-
return goog.uri.utils.appendQueryDataToUri_(uri, queryData);
|
|
5760
|
-
};
|
|
5761
|
-
goog.uri.utils.appendParam = function(uri, key, opt_value) {
|
|
5711
|
+
}
|
|
5712
|
+
function module$contents$goog$uri$utils_appendParam(uri, key, opt_value) {
|
|
5762
5713
|
var value = opt_value != null ? "=" + goog.string.urlEncode(opt_value) : "";
|
|
5763
|
-
return goog
|
|
5764
|
-
}
|
|
5765
|
-
goog
|
|
5714
|
+
return module$contents$goog$uri$utils_appendQueryDataToUri(uri, key + value);
|
|
5715
|
+
}
|
|
5716
|
+
function module$contents$goog$uri$utils_findParam(uri, startIndex, keyEncoded, hashOrEndIndex) {
|
|
5766
5717
|
for (var index = startIndex, keyLength = keyEncoded.length; (index = uri.indexOf(keyEncoded, index)) >= 0 && index < hashOrEndIndex;) {
|
|
5767
5718
|
var precedingChar = uri.charCodeAt(index - 1);
|
|
5768
|
-
if (precedingChar == goog
|
|
5719
|
+
if (precedingChar == module$contents$goog$uri$utils_CharCode.AMPERSAND || precedingChar == module$contents$goog$uri$utils_CharCode.QUESTION) {
|
|
5769
5720
|
var followingChar = uri.charCodeAt(index + keyLength);
|
|
5770
|
-
if (!followingChar || followingChar == goog
|
|
5721
|
+
if (!followingChar || followingChar == module$contents$goog$uri$utils_CharCode.EQUAL || followingChar == module$contents$goog$uri$utils_CharCode.AMPERSAND || followingChar == module$contents$goog$uri$utils_CharCode.HASH) {
|
|
5771
5722
|
return index;
|
|
5772
5723
|
}
|
|
5773
5724
|
}
|
|
5774
5725
|
index += keyLength + 1;
|
|
5775
5726
|
}
|
|
5776
5727
|
return -1;
|
|
5728
|
+
}
|
|
5729
|
+
var module$contents$goog$uri$utils_hashOrEndRe = /#|$/, module$contents$goog$uri$utils_trailingQueryPunctuationRe = /[?&]($|#)/;
|
|
5730
|
+
function module$contents$goog$uri$utils_removeParam(uri, keyEncoded) {
|
|
5731
|
+
for (var hashOrEndIndex = uri.search(module$contents$goog$uri$utils_hashOrEndRe), position = 0, foundIndex, buffer = []; (foundIndex = module$contents$goog$uri$utils_findParam(uri, position, keyEncoded, hashOrEndIndex)) >= 0;) {
|
|
5732
|
+
buffer.push(uri.substring(position, foundIndex)), position = Math.min(uri.indexOf("&", foundIndex) + 1 || hashOrEndIndex, hashOrEndIndex);
|
|
5733
|
+
}
|
|
5734
|
+
buffer.push(uri.slice(position));
|
|
5735
|
+
return buffer.join("").replace(module$contents$goog$uri$utils_trailingQueryPunctuationRe, "$1");
|
|
5736
|
+
}
|
|
5737
|
+
function module$contents$goog$uri$utils_setParam(uri, keyEncoded, value) {
|
|
5738
|
+
return module$contents$goog$uri$utils_appendParam(module$contents$goog$uri$utils_removeParam(uri, keyEncoded), keyEncoded, value);
|
|
5739
|
+
}
|
|
5740
|
+
var module$contents$goog$uri$utils_StandardQueryParam = {RANDOM:"zx"};
|
|
5741
|
+
goog.uri.utils.ComponentIndex = module$contents$goog$uri$utils_ComponentIndex;
|
|
5742
|
+
goog.uri.utils.StandardQueryParam = module$contents$goog$uri$utils_StandardQueryParam;
|
|
5743
|
+
goog.uri.utils.QueryArray = void 0;
|
|
5744
|
+
goog.uri.utils.QueryValue = void 0;
|
|
5745
|
+
goog.uri.utils.appendParam = module$contents$goog$uri$utils_appendParam;
|
|
5746
|
+
goog.uri.utils.appendParams = function(uri, var_args) {
|
|
5747
|
+
var queryData = arguments.length == 2 ? module$contents$goog$uri$utils_buildQueryData(arguments[1], 0) : module$contents$goog$uri$utils_buildQueryData(arguments, 1);
|
|
5748
|
+
return module$contents$goog$uri$utils_appendQueryDataToUri(uri, queryData);
|
|
5777
5749
|
};
|
|
5778
|
-
goog.uri.utils.
|
|
5779
|
-
|
|
5780
|
-
return goog
|
|
5750
|
+
goog.uri.utils.appendParamsFromMap = function(uri, map) {
|
|
5751
|
+
var queryData = module$contents$goog$uri$utils_buildQueryDataFromMap(map);
|
|
5752
|
+
return module$contents$goog$uri$utils_appendQueryDataToUri(uri, queryData);
|
|
5753
|
+
};
|
|
5754
|
+
goog.uri.utils.appendPath = function(baseUri, path) {
|
|
5755
|
+
module$contents$goog$uri$utils_assertNoFragmentsOrQueries(baseUri);
|
|
5756
|
+
goog.string.endsWith(baseUri, "/") && (baseUri = baseUri.slice(0, -1));
|
|
5757
|
+
goog.string.startsWith(path, "/") && (path = path.slice(1));
|
|
5758
|
+
return "" + baseUri + "/" + path;
|
|
5759
|
+
};
|
|
5760
|
+
goog.uri.utils.buildFromEncodedParts = module$contents$goog$uri$utils_buildFromEncodedParts;
|
|
5761
|
+
goog.uri.utils.buildQueryData = module$contents$goog$uri$utils_buildQueryData;
|
|
5762
|
+
goog.uri.utils.buildQueryDataFromMap = module$contents$goog$uri$utils_buildQueryDataFromMap;
|
|
5763
|
+
goog.uri.utils.getDomain = function(uri) {
|
|
5764
|
+
return module$contents$goog$uri$utils_decodeIfPossible(module$contents$goog$uri$utils_getDomainEncoded(uri), !0);
|
|
5765
|
+
};
|
|
5766
|
+
goog.uri.utils.getDomainEncoded = module$contents$goog$uri$utils_getDomainEncoded;
|
|
5767
|
+
goog.uri.utils.getEffectiveScheme = module$contents$goog$uri$utils_getEffectiveScheme;
|
|
5768
|
+
goog.uri.utils.getFragment = function(uri) {
|
|
5769
|
+
return module$contents$goog$uri$utils_decodeIfPossible(module$contents$goog$uri$utils_getFragmentEncoded(uri));
|
|
5770
|
+
};
|
|
5771
|
+
goog.uri.utils.getFragmentEncoded = module$contents$goog$uri$utils_getFragmentEncoded;
|
|
5772
|
+
goog.uri.utils.getHost = function(uri) {
|
|
5773
|
+
var pieces = module$contents$goog$uri$utils_split(uri);
|
|
5774
|
+
return module$contents$goog$uri$utils_buildFromEncodedParts(pieces[module$contents$goog$uri$utils_ComponentIndex.SCHEME], pieces[module$contents$goog$uri$utils_ComponentIndex.USER_INFO], pieces[module$contents$goog$uri$utils_ComponentIndex.DOMAIN], pieces[module$contents$goog$uri$utils_ComponentIndex.PORT]);
|
|
5775
|
+
};
|
|
5776
|
+
goog.uri.utils.getOrigin = function(uri) {
|
|
5777
|
+
var pieces = module$contents$goog$uri$utils_split(uri);
|
|
5778
|
+
return module$contents$goog$uri$utils_buildFromEncodedParts(pieces[module$contents$goog$uri$utils_ComponentIndex.SCHEME], null, pieces[module$contents$goog$uri$utils_ComponentIndex.DOMAIN], pieces[module$contents$goog$uri$utils_ComponentIndex.PORT]);
|
|
5781
5779
|
};
|
|
5782
5780
|
goog.uri.utils.getParamValue = function(uri, keyEncoded) {
|
|
5783
|
-
var hashOrEndIndex = uri.search(goog
|
|
5781
|
+
var hashOrEndIndex = uri.search(module$contents$goog$uri$utils_hashOrEndRe), foundIndex = module$contents$goog$uri$utils_findParam(uri, 0, keyEncoded, hashOrEndIndex);
|
|
5784
5782
|
if (foundIndex < 0) {
|
|
5785
5783
|
return null;
|
|
5786
5784
|
}
|
|
@@ -5792,7 +5790,7 @@ goog.uri.utils.getParamValue = function(uri, keyEncoded) {
|
|
|
5792
5790
|
return goog.string.urlDecode(uri.slice(foundIndex, endPosition !== -1 ? endPosition : 0));
|
|
5793
5791
|
};
|
|
5794
5792
|
goog.uri.utils.getParamValues = function(uri, keyEncoded) {
|
|
5795
|
-
for (var hashOrEndIndex = uri.search(goog
|
|
5793
|
+
for (var hashOrEndIndex = uri.search(module$contents$goog$uri$utils_hashOrEndRe), position = 0, foundIndex, result = []; (foundIndex = module$contents$goog$uri$utils_findParam(uri, position, keyEncoded, hashOrEndIndex)) >= 0;) {
|
|
5796
5794
|
position = uri.indexOf("&", foundIndex);
|
|
5797
5795
|
if (position < 0 || position > hashOrEndIndex) {
|
|
5798
5796
|
position = hashOrEndIndex;
|
|
@@ -5802,51 +5800,71 @@ goog.uri.utils.getParamValues = function(uri, keyEncoded) {
|
|
|
5802
5800
|
}
|
|
5803
5801
|
return result;
|
|
5804
5802
|
};
|
|
5805
|
-
goog.uri.utils.
|
|
5806
|
-
goog
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
return buffer.join("").replace(goog.uri.utils.trailingQueryPunctuationRe_, "$1");
|
|
5803
|
+
goog.uri.utils.getPath = function(uri) {
|
|
5804
|
+
return module$contents$goog$uri$utils_decodeIfPossible(module$contents$goog$uri$utils_getPathEncoded(uri), !0);
|
|
5805
|
+
};
|
|
5806
|
+
goog.uri.utils.getPathAndAfter = function(uri) {
|
|
5807
|
+
var pieces = module$contents$goog$uri$utils_split(uri);
|
|
5808
|
+
return module$contents$goog$uri$utils_buildFromEncodedParts(null, null, null, null, pieces[module$contents$goog$uri$utils_ComponentIndex.PATH], pieces[module$contents$goog$uri$utils_ComponentIndex.QUERY_DATA], pieces[module$contents$goog$uri$utils_ComponentIndex.FRAGMENT]);
|
|
5812
5809
|
};
|
|
5813
|
-
goog.uri.utils.
|
|
5814
|
-
|
|
5810
|
+
goog.uri.utils.getPathEncoded = module$contents$goog$uri$utils_getPathEncoded;
|
|
5811
|
+
goog.uri.utils.getPort = function(uri) {
|
|
5812
|
+
return Number(module$contents$goog$uri$utils_getComponentByIndex(module$contents$goog$uri$utils_ComponentIndex.PORT, uri)) || null;
|
|
5813
|
+
};
|
|
5814
|
+
goog.uri.utils.getQueryData = function(uri) {
|
|
5815
|
+
return module$contents$goog$uri$utils_getComponentByIndex(module$contents$goog$uri$utils_ComponentIndex.QUERY_DATA, uri);
|
|
5815
5816
|
};
|
|
5817
|
+
goog.uri.utils.getScheme = module$contents$goog$uri$utils_getScheme;
|
|
5818
|
+
goog.uri.utils.getUserInfo = function(uri) {
|
|
5819
|
+
return module$contents$goog$uri$utils_decodeIfPossible(module$contents$goog$uri$utils_getUserInfoEncoded(uri));
|
|
5820
|
+
};
|
|
5821
|
+
goog.uri.utils.getUserInfoEncoded = module$contents$goog$uri$utils_getUserInfoEncoded;
|
|
5822
|
+
goog.uri.utils.hasParam = function(uri, keyEncoded) {
|
|
5823
|
+
return module$contents$goog$uri$utils_findParam(uri, 0, keyEncoded, uri.search(module$contents$goog$uri$utils_hashOrEndRe)) >= 0;
|
|
5824
|
+
};
|
|
5825
|
+
goog.uri.utils.haveSameDomain = function(uri1, uri2) {
|
|
5826
|
+
var pieces1 = module$contents$goog$uri$utils_split(uri1), pieces2 = module$contents$goog$uri$utils_split(uri2);
|
|
5827
|
+
return pieces1[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] == pieces2[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] && pieces1[module$contents$goog$uri$utils_ComponentIndex.SCHEME] == pieces2[module$contents$goog$uri$utils_ComponentIndex.SCHEME] && pieces1[module$contents$goog$uri$utils_ComponentIndex.PORT] == pieces2[module$contents$goog$uri$utils_ComponentIndex.PORT];
|
|
5828
|
+
};
|
|
5829
|
+
goog.uri.utils.makeUnique = function(uri) {
|
|
5830
|
+
return module$contents$goog$uri$utils_setParam(uri, module$contents$goog$uri$utils_StandardQueryParam.RANDOM, goog.string.getRandomString());
|
|
5831
|
+
};
|
|
5832
|
+
goog.uri.utils.parseQueryData = module$contents$goog$uri$utils_parseQueryData;
|
|
5833
|
+
goog.uri.utils.removeFragment = module$contents$goog$uri$utils_removeFragment;
|
|
5834
|
+
goog.uri.utils.removeParam = module$contents$goog$uri$utils_removeParam;
|
|
5835
|
+
goog.uri.utils.setFragmentEncoded = function(uri, fragment) {
|
|
5836
|
+
return module$contents$goog$uri$utils_removeFragment(uri) + (fragment ? "#" + fragment : "");
|
|
5837
|
+
};
|
|
5838
|
+
goog.uri.utils.setParam = module$contents$goog$uri$utils_setParam;
|
|
5816
5839
|
goog.uri.utils.setParamsFromMap = function(uri, params) {
|
|
5817
|
-
var parts = goog
|
|
5840
|
+
var parts = module$contents$goog$uri$utils_splitQueryData(uri), queryData = parts[1], buffer = [];
|
|
5818
5841
|
queryData && queryData.split("&").forEach(function(pair) {
|
|
5819
5842
|
var indexOfEquals = pair.indexOf("="), name = indexOfEquals >= 0 ? pair.slice(0, indexOfEquals) : pair;
|
|
5820
5843
|
params.hasOwnProperty(name) || buffer.push(pair);
|
|
5821
5844
|
});
|
|
5822
|
-
parts[1] = goog
|
|
5823
|
-
return goog
|
|
5824
|
-
};
|
|
5825
|
-
goog.uri.utils.appendPath = function(baseUri, path) {
|
|
5826
|
-
goog.uri.utils.assertNoFragmentsOrQueries_(baseUri);
|
|
5827
|
-
goog.string.endsWith(baseUri, "/") && (baseUri = baseUri.slice(0, -1));
|
|
5828
|
-
goog.string.startsWith(path, "/") && (path = path.slice(1));
|
|
5829
|
-
return "" + baseUri + "/" + path;
|
|
5845
|
+
parts[1] = module$contents$goog$uri$utils_appendQueryData(buffer.join("&"), module$contents$goog$uri$utils_buildQueryDataFromMap(params));
|
|
5846
|
+
return module$contents$goog$uri$utils_joinQueryData(parts);
|
|
5830
5847
|
};
|
|
5831
5848
|
goog.uri.utils.setPath = function(uri, path) {
|
|
5832
5849
|
goog.string.startsWith(path, "/") || (path = "/" + path);
|
|
5833
|
-
var parts = goog
|
|
5834
|
-
return goog
|
|
5850
|
+
var parts = module$contents$goog$uri$utils_split(uri);
|
|
5851
|
+
return module$contents$goog$uri$utils_buildFromEncodedParts(parts[module$contents$goog$uri$utils_ComponentIndex.SCHEME], parts[module$contents$goog$uri$utils_ComponentIndex.USER_INFO], parts[module$contents$goog$uri$utils_ComponentIndex.DOMAIN], parts[module$contents$goog$uri$utils_ComponentIndex.PORT], path, parts[module$contents$goog$uri$utils_ComponentIndex.QUERY_DATA], parts[module$contents$goog$uri$utils_ComponentIndex.FRAGMENT]);
|
|
5835
5852
|
};
|
|
5836
|
-
goog.uri.utils.
|
|
5837
|
-
goog
|
|
5838
|
-
return goog.uri.utils.setParam(uri, goog.uri.utils.StandardQueryParam.RANDOM, goog.string.getRandomString());
|
|
5853
|
+
goog.uri.utils.setUrlPackageSupportLoggingHandler = function(handler) {
|
|
5854
|
+
module$contents$goog$uri$utils_urlPackageSupportLoggingHandler = handler;
|
|
5839
5855
|
};
|
|
5856
|
+
goog.uri.utils.split = module$contents$goog$uri$utils_split;
|
|
5840
5857
|
goog.Uri = function(opt_uri, opt_ignoreCase) {
|
|
5841
5858
|
this.domain_ = this.userInfo_ = this.scheme_ = "";
|
|
5842
5859
|
this.port_ = null;
|
|
5843
5860
|
this.fragment_ = this.path_ = "";
|
|
5844
5861
|
this.ignoreCase_ = this.isReadOnly_ = !1;
|
|
5845
5862
|
var m;
|
|
5846
|
-
opt_uri instanceof goog.Uri ? (this.ignoreCase_ = opt_ignoreCase !== void 0 ? opt_ignoreCase : opt_uri.getIgnoreCase(), this.setScheme(opt_uri.getScheme()), this.setUserInfo(opt_uri.getUserInfo()), this.setDomain(opt_uri.getDomain()), this.setPort(opt_uri.getPort()), this.setPath(opt_uri.getPath()), this.setQueryData(opt_uri.getQueryData().clone()), this.setFragment(opt_uri.getFragment())) : opt_uri && (m = goog
|
|
5847
|
-
"", !0), this.setUserInfo(m[goog
|
|
5863
|
+
opt_uri instanceof goog.Uri ? (this.ignoreCase_ = opt_ignoreCase !== void 0 ? opt_ignoreCase : opt_uri.getIgnoreCase(), this.setScheme(opt_uri.getScheme()), this.setUserInfo(opt_uri.getUserInfo()), this.setDomain(opt_uri.getDomain()), this.setPort(opt_uri.getPort()), this.setPath(opt_uri.getPath()), this.setQueryData(opt_uri.getQueryData().clone()), this.setFragment(opt_uri.getFragment())) : opt_uri && (m = module$contents$goog$uri$utils_split(String(opt_uri))) ? (this.ignoreCase_ = !!opt_ignoreCase,
|
|
5864
|
+
this.setScheme(m[module$contents$goog$uri$utils_ComponentIndex.SCHEME] || "", !0), this.setUserInfo(m[module$contents$goog$uri$utils_ComponentIndex.USER_INFO] || "", !0), this.setDomain(m[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] || "", !0), this.setPort(m[module$contents$goog$uri$utils_ComponentIndex.PORT]), this.setPath(m[module$contents$goog$uri$utils_ComponentIndex.PATH] || "", !0), this.setQueryData(m[module$contents$goog$uri$utils_ComponentIndex.QUERY_DATA] || "", !0), this.setFragment(m[module$contents$goog$uri$utils_ComponentIndex.FRAGMENT] ||
|
|
5865
|
+
"", !0)) : (this.ignoreCase_ = !!opt_ignoreCase, this.queryData_ = new goog.Uri.QueryData(null, this.ignoreCase_));
|
|
5848
5866
|
};
|
|
5849
|
-
goog.Uri.RANDOM_PARAM = goog
|
|
5867
|
+
goog.Uri.RANDOM_PARAM = module$contents$goog$uri$utils_StandardQueryParam.RANDOM;
|
|
5850
5868
|
goog.Uri.prototype.toString = function() {
|
|
5851
5869
|
var out = [], scheme = this.getScheme();
|
|
5852
5870
|
scheme && out.push(goog.Uri.encodeSpecialChars_(scheme, goog.Uri.reDisallowedInSchemeOrUserInfo_, !0), ":");
|
|
@@ -6101,8 +6119,8 @@ goog.Uri.reDisallowedInAbsolutePath_ = /[#\?]/g;
|
|
|
6101
6119
|
goog.Uri.reDisallowedInQuery_ = /[#\?@]/g;
|
|
6102
6120
|
goog.Uri.reDisallowedInFragment_ = /#/g;
|
|
6103
6121
|
goog.Uri.haveSameDomain = function(uri1String, uri2String) {
|
|
6104
|
-
var pieces1 = goog
|
|
6105
|
-
return pieces1[goog
|
|
6122
|
+
var pieces1 = module$contents$goog$uri$utils_split(uri1String), pieces2 = module$contents$goog$uri$utils_split(uri2String);
|
|
6123
|
+
return pieces1[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] == pieces2[module$contents$goog$uri$utils_ComponentIndex.DOMAIN] && pieces1[module$contents$goog$uri$utils_ComponentIndex.PORT] == pieces2[module$contents$goog$uri$utils_ComponentIndex.PORT];
|
|
6106
6124
|
};
|
|
6107
6125
|
goog.Uri.QueryData = function(opt_query, opt_ignoreCase) {
|
|
6108
6126
|
this.count_ = this.keyMap_ = null;
|
|
@@ -6112,7 +6130,7 @@ goog.Uri.QueryData = function(opt_query, opt_ignoreCase) {
|
|
|
6112
6130
|
goog.Uri.QueryData.prototype.ensureKeyMapInitialized_ = function() {
|
|
6113
6131
|
if (!this.keyMap_ && (this.keyMap_ = new Map(), this.count_ = 0, this.encodedQuery_)) {
|
|
6114
6132
|
var self = this;
|
|
6115
|
-
goog
|
|
6133
|
+
module$contents$goog$uri$utils_parseQueryData(this.encodedQuery_, function(name, value) {
|
|
6116
6134
|
self.add(goog.string.urlDecode(name), value);
|
|
6117
6135
|
});
|
|
6118
6136
|
}
|
|
@@ -6294,7 +6312,7 @@ var module$exports$goog$net$rpc$HttpCors = {HTTP_HEADERS_PARAM_NAME:"$httpHeader
|
|
|
6294
6312
|
}
|
|
6295
6313
|
var httpHeaders = module$exports$goog$net$rpc$HttpCors.generateHttpHeadersOverwriteParam(extraHeaders);
|
|
6296
6314
|
if (typeof url === "string") {
|
|
6297
|
-
return goog
|
|
6315
|
+
return module$contents$goog$uri$utils_appendParam(url, goog.string.urlEncode(urlParam), httpHeaders);
|
|
6298
6316
|
}
|
|
6299
6317
|
url.setParameterValue(urlParam, httpHeaders);
|
|
6300
6318
|
return url;
|
|
@@ -6558,7 +6576,7 @@ module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_disallow_mes
|
|
|
6558
6576
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_use_constant_default_pivot__enable = !1;
|
|
6559
6577
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_serialize_with_dynamic_pivot_selector__enable = !1;
|
|
6560
6578
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_throw_in_array_constructor_if_array_is_already_constructed__disable = !1;
|
|
6561
|
-
module$exports$closure$flags$flags$2etoggles.
|
|
6579
|
+
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_deserialize_binary_int64s_as_gbigint__disable = !1;
|
|
6562
6580
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_write_back_bigint__enable = !1;
|
|
6563
6581
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__optimize_get_ei_from_ved__enable = !1;
|
|
6564
6582
|
module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable = !1;
|
|
@@ -6580,7 +6598,8 @@ goog.flags.JSPB_USE_CONSTANT_DEFAULT_PIVOT = module$exports$closure$flags$flags$
|
|
|
6580
6598
|
goog.flags.JSPB_SERIALIZE_WITH_DYNAMIC_PIVOT_SELECTOR = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_serialize_with_dynamic_pivot_selector__enable : goog.readFlagInternalDoNotUseOrElse(748402146, goog.DEBUG);
|
|
6581
6599
|
goog.flags.JSPB_THROW_IN_ARRAY_CONSTRUCTOR_IF_ARRAY_IS_ALREADY_CONSTRUCTED = 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_throw_in_array_constructor_if_array_is_already_constructed__disable : goog.readFlagInternalDoNotUseOrElse(748402147,
|
|
6582
6600
|
!0);
|
|
6583
|
-
goog.flags.JSPB_DESERIALIZE_BINARY_INT64S_AS_GBIGINT = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.
|
|
6601
|
+
goog.flags.JSPB_DESERIALIZE_BINARY_INT64S_AS_GBIGINT = 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_deserialize_binary_int64s_as_gbigint__disable) : goog.readFlagInternalDoNotUseOrElse(824648567,
|
|
6602
|
+
module$contents$goog$flags_STAGING);
|
|
6584
6603
|
goog.flags.JSPB_WRITE_BACK_BIGINT = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? goog.DEBUG || module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_write_back_bigint__enable : goog.readFlagInternalDoNotUseOrElse(824656860, goog.DEBUG);
|
|
6585
6604
|
goog.flags.OPTIMIZE_GET_EI_FROM_VED = module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles ? module$exports$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__optimize_get_ei_from_ved__enable : goog.readFlagInternalDoNotUseOrElse(333098724, !1);
|
|
6586
6605
|
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);
|
|
@@ -7431,28 +7450,30 @@ goog.events.Listenable.prototype.getListener = function(type, listener, capture,
|
|
|
7431
7450
|
};
|
|
7432
7451
|
goog.events.Listenable.prototype.hasListener = function(opt_type, opt_capture) {
|
|
7433
7452
|
};
|
|
7434
|
-
goog
|
|
7435
|
-
}
|
|
7436
|
-
goog
|
|
7437
|
-
goog
|
|
7438
|
-
return ++goog
|
|
7453
|
+
function module$contents$goog$events$ListenableKey_ListenableKey() {
|
|
7454
|
+
}
|
|
7455
|
+
module$contents$goog$events$ListenableKey_ListenableKey.counter_ = 0;
|
|
7456
|
+
module$contents$goog$events$ListenableKey_ListenableKey.reserveKey = function() {
|
|
7457
|
+
return ++module$contents$goog$events$ListenableKey_ListenableKey.counter_;
|
|
7439
7458
|
};
|
|
7440
|
-
goog.events.
|
|
7441
|
-
|
|
7459
|
+
goog.events.ListenableKey = module$contents$goog$events$ListenableKey_ListenableKey;
|
|
7460
|
+
function module$contents$goog$events$Listener_Listener(listener, proxy, src, type, capture, opt_handler) {
|
|
7461
|
+
module$contents$goog$events$Listener_Listener.ENABLE_MONITORING && (this.creationStack = Error().stack);
|
|
7442
7462
|
this.listener = listener;
|
|
7443
7463
|
this.proxy = proxy;
|
|
7444
7464
|
this.src = src;
|
|
7445
7465
|
this.type = type;
|
|
7446
7466
|
this.capture = !!capture;
|
|
7447
7467
|
this.handler = opt_handler;
|
|
7448
|
-
this.key = goog
|
|
7468
|
+
this.key = module$contents$goog$events$ListenableKey_ListenableKey.reserveKey();
|
|
7449
7469
|
this.removed = this.callOnce = !1;
|
|
7450
|
-
}
|
|
7451
|
-
goog
|
|
7452
|
-
goog
|
|
7470
|
+
}
|
|
7471
|
+
module$contents$goog$events$Listener_Listener.ENABLE_MONITORING = !1;
|
|
7472
|
+
module$contents$goog$events$Listener_Listener.prototype.markAsRemoved = function() {
|
|
7453
7473
|
this.removed = !0;
|
|
7454
7474
|
this.handler = this.src = this.proxy = this.listener = null;
|
|
7455
7475
|
};
|
|
7476
|
+
goog.events.Listener = module$contents$goog$events$Listener_Listener;
|
|
7456
7477
|
function module$contents$goog$events$ListenerMap_ListenerMap(src) {
|
|
7457
7478
|
this.src = src;
|
|
7458
7479
|
this.listeners = {};
|
|
@@ -7476,7 +7497,7 @@ module$contents$goog$events$ListenerMap_ListenerMap.prototype.add = function(typ
|
|
|
7476
7497
|
var listenerObj = listenerArray[index];
|
|
7477
7498
|
callOnce || (listenerObj.callOnce = !1);
|
|
7478
7499
|
} else {
|
|
7479
|
-
listenerObj = new goog
|
|
7500
|
+
listenerObj = new module$contents$goog$events$Listener_Listener(listener, null, this.src, typeStr, !!opt_useCapture, opt_listenerScope), listenerObj.callOnce = callOnce, listenerArray.push(listenerObj);
|
|
7480
7501
|
}
|
|
7481
7502
|
return listenerObj;
|
|
7482
7503
|
};
|
|
@@ -8147,53 +8168,75 @@ goog.functions.isFunction = function(val) {
|
|
|
8147
8168
|
return typeof val === "function";
|
|
8148
8169
|
};
|
|
8149
8170
|
goog.math = {};
|
|
8150
|
-
goog
|
|
8151
|
-
return Math.floor(Math.random() * a);
|
|
8152
|
-
};
|
|
8153
|
-
goog.math.uniformRandom = function(a, b) {
|
|
8154
|
-
return a + Math.random() * (b - a);
|
|
8155
|
-
};
|
|
8156
|
-
goog.math.clamp = function(value, min, max) {
|
|
8157
|
-
return Math.min(Math.max(value, min), max);
|
|
8158
|
-
};
|
|
8159
|
-
goog.math.modulo = function(a, b) {
|
|
8171
|
+
function module$contents$goog$math_modulo(a, b) {
|
|
8160
8172
|
var r = a % b;
|
|
8161
8173
|
return r * b < 0 ? r + b : r;
|
|
8162
|
-
}
|
|
8163
|
-
goog
|
|
8164
|
-
return
|
|
8165
|
-
}
|
|
8166
|
-
goog
|
|
8167
|
-
return Math.abs(a - b) <= (opt_tolerance || 1E-6);
|
|
8168
|
-
};
|
|
8169
|
-
goog.math.standardAngle = function(angle) {
|
|
8170
|
-
return goog.math.modulo(angle, 360);
|
|
8171
|
-
};
|
|
8172
|
-
goog.math.standardAngleInRadians = function(angle) {
|
|
8173
|
-
return goog.math.modulo(angle, 2 * Math.PI);
|
|
8174
|
-
};
|
|
8175
|
-
goog.math.toRadians = function(angleDegrees) {
|
|
8174
|
+
}
|
|
8175
|
+
function module$contents$goog$math_standardAngle(angle) {
|
|
8176
|
+
return module$contents$goog$math_modulo(angle, 360);
|
|
8177
|
+
}
|
|
8178
|
+
function module$contents$goog$math_toRadians(angleDegrees) {
|
|
8176
8179
|
return angleDegrees * Math.PI / 180;
|
|
8177
|
-
}
|
|
8178
|
-
goog
|
|
8180
|
+
}
|
|
8181
|
+
function module$contents$goog$math_toDegrees(angleRadians) {
|
|
8179
8182
|
return angleRadians * 180 / Math.PI;
|
|
8183
|
+
}
|
|
8184
|
+
function module$contents$goog$math_angle(x1, y1, x2, y2) {
|
|
8185
|
+
return module$contents$goog$math_standardAngle(module$contents$goog$math_toDegrees(Math.atan2(y2 - y1, x2 - x1)));
|
|
8186
|
+
}
|
|
8187
|
+
function module$contents$goog$math_sum(var_args) {
|
|
8188
|
+
return Array.prototype.reduce.call(arguments, function(sum, value) {
|
|
8189
|
+
return sum + value;
|
|
8190
|
+
}, 0);
|
|
8191
|
+
}
|
|
8192
|
+
function module$contents$goog$math_average(var_args) {
|
|
8193
|
+
return module$contents$goog$math_sum.apply(null, arguments) / arguments.length;
|
|
8194
|
+
}
|
|
8195
|
+
function module$contents$goog$math_sampleVariance(var_args) {
|
|
8196
|
+
var sampleSize = arguments.length;
|
|
8197
|
+
if (sampleSize < 2) {
|
|
8198
|
+
return 0;
|
|
8199
|
+
}
|
|
8200
|
+
var mean = module$contents$goog$math_average.apply(null, arguments);
|
|
8201
|
+
return module$contents$goog$math_sum.apply(null, Array.prototype.map.call(arguments, function(val) {
|
|
8202
|
+
return Math.pow(val - mean, 2);
|
|
8203
|
+
})) / (sampleSize - 1);
|
|
8204
|
+
}
|
|
8205
|
+
function module$contents$goog$math_isInt(num) {
|
|
8206
|
+
return isFinite(num) && num % 1 == 0;
|
|
8207
|
+
}
|
|
8208
|
+
goog.math.angle = module$contents$goog$math_angle;
|
|
8209
|
+
goog.math.angleDifference = function(startAngle, endAngle) {
|
|
8210
|
+
var d = module$contents$goog$math_standardAngle(endAngle) - module$contents$goog$math_standardAngle(startAngle);
|
|
8211
|
+
d > 180 ? d -= 360 : d <= -180 && (d = 360 + d);
|
|
8212
|
+
return d;
|
|
8180
8213
|
};
|
|
8181
8214
|
goog.math.angleDx = function(degrees, radius) {
|
|
8182
|
-
return radius * Math.cos(goog
|
|
8215
|
+
return radius * Math.cos(module$contents$goog$math_toRadians(degrees));
|
|
8183
8216
|
};
|
|
8184
8217
|
goog.math.angleDy = function(degrees, radius) {
|
|
8185
|
-
return radius * Math.sin(goog
|
|
8218
|
+
return radius * Math.sin(module$contents$goog$math_toRadians(degrees));
|
|
8186
8219
|
};
|
|
8187
|
-
goog.math.
|
|
8188
|
-
|
|
8220
|
+
goog.math.average = module$contents$goog$math_average;
|
|
8221
|
+
goog.math.clamp = function(value, min, max) {
|
|
8222
|
+
return Math.min(Math.max(value, min), max);
|
|
8189
8223
|
};
|
|
8190
|
-
goog.math.
|
|
8191
|
-
|
|
8192
|
-
d > 180 ? d -= 360 : d <= -180 && (d = 360 + d);
|
|
8193
|
-
return d;
|
|
8224
|
+
goog.math.isFiniteNumber = function(num) {
|
|
8225
|
+
return isFinite(num);
|
|
8194
8226
|
};
|
|
8195
|
-
goog.math.
|
|
8196
|
-
|
|
8227
|
+
goog.math.isInt = module$contents$goog$math_isInt;
|
|
8228
|
+
goog.math.isNegativeZero = function(num) {
|
|
8229
|
+
return num == 0 && 1 / num < 0;
|
|
8230
|
+
};
|
|
8231
|
+
goog.math.lerp = function(a, b, x) {
|
|
8232
|
+
return a + x * (b - a);
|
|
8233
|
+
};
|
|
8234
|
+
goog.math.log10Floor = function(num) {
|
|
8235
|
+
if (num > 0) {
|
|
8236
|
+
var x = Math.round(Math.log(num) * Math.LOG10E);
|
|
8237
|
+
return x - (parseFloat("1e" + x) > num ? 1 : 0);
|
|
8238
|
+
}
|
|
8239
|
+
return num == 0 ? -Infinity : NaN;
|
|
8197
8240
|
};
|
|
8198
8241
|
goog.math.longestCommonSubsequence = function(array1, array2, opt_compareFn, opt_collectorFn) {
|
|
8199
8242
|
var compare = opt_compareFn || function(a, b) {
|
|
@@ -8220,50 +8263,37 @@ goog.math.longestCommonSubsequence = function(array1, array2, opt_compareFn, opt
|
|
|
8220
8263
|
}
|
|
8221
8264
|
return result;
|
|
8222
8265
|
};
|
|
8223
|
-
goog.math.
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
}, 0);
|
|
8227
|
-
};
|
|
8228
|
-
goog.math.average = function(var_args) {
|
|
8229
|
-
return goog.math.sum.apply(null, arguments) / arguments.length;
|
|
8230
|
-
};
|
|
8231
|
-
goog.math.sampleVariance = function(var_args) {
|
|
8232
|
-
var sampleSize = arguments.length;
|
|
8233
|
-
if (sampleSize < 2) {
|
|
8234
|
-
return 0;
|
|
8235
|
-
}
|
|
8236
|
-
var mean = goog.math.average.apply(null, arguments);
|
|
8237
|
-
return goog.math.sum.apply(null, Array.prototype.map.call(arguments, function(val) {
|
|
8238
|
-
return Math.pow(val - mean, 2);
|
|
8239
|
-
})) / (sampleSize - 1);
|
|
8240
|
-
};
|
|
8241
|
-
goog.math.standardDeviation = function(var_args) {
|
|
8242
|
-
return Math.sqrt(goog.math.sampleVariance.apply(null, arguments));
|
|
8243
|
-
};
|
|
8244
|
-
goog.math.isInt = function(num) {
|
|
8245
|
-
return isFinite(num) && num % 1 == 0;
|
|
8246
|
-
};
|
|
8247
|
-
goog.math.isFiniteNumber = function(num) {
|
|
8248
|
-
return isFinite(num);
|
|
8266
|
+
goog.math.modulo = module$contents$goog$math_modulo;
|
|
8267
|
+
goog.math.nearlyEquals = function(a, b, opt_tolerance) {
|
|
8268
|
+
return Math.abs(a - b) <= (opt_tolerance || 1E-6);
|
|
8249
8269
|
};
|
|
8250
|
-
goog.math.
|
|
8251
|
-
return
|
|
8270
|
+
goog.math.randomInt = function(a) {
|
|
8271
|
+
return Math.floor(Math.random() * a);
|
|
8252
8272
|
};
|
|
8253
|
-
goog.math.
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
return x - (parseFloat("1e" + x) > num ? 1 : 0);
|
|
8257
|
-
}
|
|
8258
|
-
return num == 0 ? -Infinity : NaN;
|
|
8273
|
+
goog.math.safeCeil = function(num, opt_epsilon) {
|
|
8274
|
+
goog.asserts.assert(opt_epsilon === void 0 || opt_epsilon > 0);
|
|
8275
|
+
return Math.ceil(num - (opt_epsilon || 2E-15));
|
|
8259
8276
|
};
|
|
8260
8277
|
goog.math.safeFloor = function(num, opt_epsilon) {
|
|
8261
8278
|
goog.asserts.assert(opt_epsilon === void 0 || opt_epsilon > 0);
|
|
8262
8279
|
return Math.floor(num + (opt_epsilon || 2E-15));
|
|
8263
8280
|
};
|
|
8264
|
-
goog.math.
|
|
8265
|
-
|
|
8266
|
-
return
|
|
8281
|
+
goog.math.sampleVariance = module$contents$goog$math_sampleVariance;
|
|
8282
|
+
goog.math.sign = function(x) {
|
|
8283
|
+
return x > 0 ? 1 : x < 0 ? -1 : x;
|
|
8284
|
+
};
|
|
8285
|
+
goog.math.standardAngle = module$contents$goog$math_standardAngle;
|
|
8286
|
+
goog.math.standardAngleInRadians = function(angle) {
|
|
8287
|
+
return module$contents$goog$math_modulo(angle, 2 * Math.PI);
|
|
8288
|
+
};
|
|
8289
|
+
goog.math.standardDeviation = function(var_args) {
|
|
8290
|
+
return Math.sqrt(module$contents$goog$math_sampleVariance.apply(null, arguments));
|
|
8291
|
+
};
|
|
8292
|
+
goog.math.sum = module$contents$goog$math_sum;
|
|
8293
|
+
goog.math.toDegrees = module$contents$goog$math_toDegrees;
|
|
8294
|
+
goog.math.toRadians = module$contents$goog$math_toRadians;
|
|
8295
|
+
goog.math.uniformRandom = function(a, b) {
|
|
8296
|
+
return a + Math.random() * (b - a);
|
|
8267
8297
|
};
|
|
8268
8298
|
goog.iter = {};
|
|
8269
8299
|
goog.iter.Iterator = function() {
|
|
@@ -8674,7 +8704,7 @@ goog.iter.enumerate = function(iterable, opt_start) {
|
|
|
8674
8704
|
return goog.iter.zip(goog.iter.count(opt_start), iterable);
|
|
8675
8705
|
};
|
|
8676
8706
|
goog.iter.limit = function(iterable, limitSize) {
|
|
8677
|
-
goog.asserts.assert(goog
|
|
8707
|
+
goog.asserts.assert(module$contents$goog$math_isInt(limitSize) && limitSize >= 0);
|
|
8678
8708
|
var iterator = goog.iter.toIterator(iterable), iter = new goog.iter.Iterator(), remaining = limitSize;
|
|
8679
8709
|
iter.next = function() {
|
|
8680
8710
|
return remaining-- > 0 ? iterator.next() : goog.iter.ES6_ITERATOR_DONE;
|
|
@@ -8682,16 +8712,16 @@ goog.iter.limit = function(iterable, limitSize) {
|
|
|
8682
8712
|
return iter;
|
|
8683
8713
|
};
|
|
8684
8714
|
goog.iter.consume = function(iterable, count) {
|
|
8685
|
-
goog.asserts.assert(goog
|
|
8715
|
+
goog.asserts.assert(module$contents$goog$math_isInt(count) && count >= 0);
|
|
8686
8716
|
for (var iterator = goog.iter.toIterator(iterable); count-- > 0;) {
|
|
8687
8717
|
goog.iter.nextOrValue(iterator, null);
|
|
8688
8718
|
}
|
|
8689
8719
|
return iterator;
|
|
8690
8720
|
};
|
|
8691
8721
|
goog.iter.slice = function(iterable, start, opt_end) {
|
|
8692
|
-
goog.asserts.assert(goog
|
|
8722
|
+
goog.asserts.assert(module$contents$goog$math_isInt(start) && start >= 0);
|
|
8693
8723
|
var iterator = goog.iter.consume(iterable, start);
|
|
8694
|
-
typeof opt_end === "number" && (goog.asserts.assert(goog
|
|
8724
|
+
typeof opt_end === "number" && (goog.asserts.assert(module$contents$goog$math_isInt(opt_end) && opt_end >= start), iterator = goog.iter.limit(iterator, opt_end - start));
|
|
8695
8725
|
return iterator;
|
|
8696
8726
|
};
|
|
8697
8727
|
goog.iter.hasDuplicates_ = function(arr) {
|
|
@@ -15687,7 +15717,7 @@ goog.dom.TagName.VIDEO = "VIDEO";
|
|
|
15687
15717
|
goog.dom.TagName.WBR = "WBR";
|
|
15688
15718
|
goog.dom.element = {};
|
|
15689
15719
|
var module$contents$goog$dom$element_isElement = function(value) {
|
|
15690
|
-
return goog.isObject(value) && value.nodeType === goog
|
|
15720
|
+
return goog.isObject(value) && value.nodeType === module$contents$goog$dom$NodeType_NodeType.ELEMENT;
|
|
15691
15721
|
}, module$contents$goog$dom$element_isHtmlElement = function(value) {
|
|
15692
15722
|
return goog.isObject(value) && module$contents$goog$dom$element_isElement(value) && (!value.namespaceURI || value.namespaceURI === "http://www.w3.org/1999/xhtml");
|
|
15693
15723
|
}, module$contents$goog$dom$element_isHtmlElementOfType = function(value, tagName) {
|
|
@@ -15834,7 +15864,7 @@ module$contents$goog$math$Coordinate_Coordinate.magnitude = function(a) {
|
|
|
15834
15864
|
return Math.sqrt(a.x * a.x + a.y * a.y);
|
|
15835
15865
|
};
|
|
15836
15866
|
module$contents$goog$math$Coordinate_Coordinate.azimuth = function(a) {
|
|
15837
|
-
return goog
|
|
15867
|
+
return module$contents$goog$math_angle(0, 0, a.x, a.y);
|
|
15838
15868
|
};
|
|
15839
15869
|
module$contents$goog$math$Coordinate_Coordinate.squaredDistance = function(a, b) {
|
|
15840
15870
|
var dx = a.x - b.x, dy = a.y - b.y;
|
|
@@ -15877,72 +15907,73 @@ module$contents$goog$math$Coordinate_Coordinate.prototype.rotateRadians = functi
|
|
|
15877
15907
|
this.y = (x - center.x) * sin + (y - center.y) * cos + center.y;
|
|
15878
15908
|
};
|
|
15879
15909
|
module$contents$goog$math$Coordinate_Coordinate.prototype.rotateDegrees = function(degrees, opt_center) {
|
|
15880
|
-
this.rotateRadians(goog
|
|
15910
|
+
this.rotateRadians(module$contents$goog$math_toRadians(degrees), opt_center);
|
|
15881
15911
|
};
|
|
15882
15912
|
goog.math.Coordinate = module$contents$goog$math$Coordinate_Coordinate;
|
|
15883
|
-
goog
|
|
15913
|
+
function module$contents$goog$math$Size_Size(width, height) {
|
|
15884
15914
|
this.width = width;
|
|
15885
15915
|
this.height = height;
|
|
15886
|
-
}
|
|
15887
|
-
goog
|
|
15916
|
+
}
|
|
15917
|
+
module$contents$goog$math$Size_Size.equals = function(a, b) {
|
|
15888
15918
|
return a == b ? !0 : a && b ? a.width == b.width && a.height == b.height : !1;
|
|
15889
15919
|
};
|
|
15890
|
-
goog
|
|
15891
|
-
return new goog
|
|
15920
|
+
module$contents$goog$math$Size_Size.prototype.clone = function() {
|
|
15921
|
+
return new module$contents$goog$math$Size_Size(this.width, this.height);
|
|
15892
15922
|
};
|
|
15893
|
-
goog.DEBUG && (goog
|
|
15923
|
+
goog.DEBUG && (module$contents$goog$math$Size_Size.prototype.toString = function() {
|
|
15894
15924
|
return "(" + this.width + " x " + this.height + ")";
|
|
15895
15925
|
});
|
|
15896
|
-
goog
|
|
15926
|
+
module$contents$goog$math$Size_Size.prototype.getLongest = function() {
|
|
15897
15927
|
return Math.max(this.width, this.height);
|
|
15898
15928
|
};
|
|
15899
|
-
goog
|
|
15929
|
+
module$contents$goog$math$Size_Size.prototype.getShortest = function() {
|
|
15900
15930
|
return Math.min(this.width, this.height);
|
|
15901
15931
|
};
|
|
15902
|
-
goog
|
|
15932
|
+
module$contents$goog$math$Size_Size.prototype.area = function() {
|
|
15903
15933
|
return this.width * this.height;
|
|
15904
15934
|
};
|
|
15905
|
-
goog
|
|
15935
|
+
module$contents$goog$math$Size_Size.prototype.perimeter = function() {
|
|
15906
15936
|
return (this.width + this.height) * 2;
|
|
15907
15937
|
};
|
|
15908
|
-
goog
|
|
15938
|
+
module$contents$goog$math$Size_Size.prototype.aspectRatio = function() {
|
|
15909
15939
|
return this.width / this.height;
|
|
15910
15940
|
};
|
|
15911
|
-
goog
|
|
15941
|
+
module$contents$goog$math$Size_Size.prototype.isEmpty = function() {
|
|
15912
15942
|
return !this.area();
|
|
15913
15943
|
};
|
|
15914
|
-
goog
|
|
15944
|
+
module$contents$goog$math$Size_Size.prototype.ceil = function() {
|
|
15915
15945
|
this.width = Math.ceil(this.width);
|
|
15916
15946
|
this.height = Math.ceil(this.height);
|
|
15917
15947
|
return this;
|
|
15918
15948
|
};
|
|
15919
|
-
goog
|
|
15949
|
+
module$contents$goog$math$Size_Size.prototype.fitsInside = function(target) {
|
|
15920
15950
|
return this.width <= target.width && this.height <= target.height;
|
|
15921
15951
|
};
|
|
15922
|
-
goog
|
|
15952
|
+
module$contents$goog$math$Size_Size.prototype.floor = function() {
|
|
15923
15953
|
this.width = Math.floor(this.width);
|
|
15924
15954
|
this.height = Math.floor(this.height);
|
|
15925
15955
|
return this;
|
|
15926
15956
|
};
|
|
15927
|
-
goog
|
|
15957
|
+
module$contents$goog$math$Size_Size.prototype.round = function() {
|
|
15928
15958
|
this.width = Math.round(this.width);
|
|
15929
15959
|
this.height = Math.round(this.height);
|
|
15930
15960
|
return this;
|
|
15931
15961
|
};
|
|
15932
|
-
goog
|
|
15962
|
+
module$contents$goog$math$Size_Size.prototype.scale = function(sx, opt_sy) {
|
|
15933
15963
|
var sy;
|
|
15934
15964
|
this.width *= sx;
|
|
15935
15965
|
this.height *= typeof opt_sy === "number" ? opt_sy : sx;
|
|
15936
15966
|
return this;
|
|
15937
15967
|
};
|
|
15938
|
-
goog
|
|
15968
|
+
module$contents$goog$math$Size_Size.prototype.scaleToCover = function(target) {
|
|
15939
15969
|
var s = this.aspectRatio() <= target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
15940
15970
|
return this.scale(s);
|
|
15941
15971
|
};
|
|
15942
|
-
goog
|
|
15972
|
+
module$contents$goog$math$Size_Size.prototype.scaleToFit = function(target) {
|
|
15943
15973
|
var s = this.aspectRatio() > target.aspectRatio() ? target.width / this.width : target.height / this.height;
|
|
15944
15974
|
return this.scale(s);
|
|
15945
15975
|
};
|
|
15976
|
+
goog.math.Size = module$contents$goog$math$Size_Size;
|
|
15946
15977
|
goog.string.Const = function(opt_token, opt_content) {
|
|
15947
15978
|
this.stringConstValueWithSecurityContract__googStringSecurityPrivate_ = opt_token === goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_ && opt_content || "";
|
|
15948
15979
|
this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = goog.string.Const.TYPE_MARKER_;
|
|
@@ -17881,7 +17912,7 @@ goog.dom.getViewportSize = function(opt_window) {
|
|
|
17881
17912
|
};
|
|
17882
17913
|
goog.dom.getViewportSize_ = function(win) {
|
|
17883
17914
|
var doc = win.document, el = goog.dom.isCss1CompatMode_(doc) ? doc.documentElement : doc.body;
|
|
17884
|
-
return new goog
|
|
17915
|
+
return new module$contents$goog$math$Size_Size(el.clientWidth, el.clientHeight);
|
|
17885
17916
|
};
|
|
17886
17917
|
goog.dom.getDocumentHeight = function() {
|
|
17887
17918
|
return goog.dom.getDocumentHeight_(window);
|
|
@@ -18001,7 +18032,7 @@ goog.dom.isCss1CompatMode_ = function(doc) {
|
|
|
18001
18032
|
return goog.dom.COMPAT_MODE_KNOWN_ ? goog.dom.ASSUME_STANDARDS_MODE : doc.compatMode == "CSS1Compat";
|
|
18002
18033
|
};
|
|
18003
18034
|
goog.dom.canHaveChildren = function(node) {
|
|
18004
|
-
if (node.nodeType != goog
|
|
18035
|
+
if (node.nodeType != module$contents$goog$dom$NodeType_NodeType.ELEMENT) {
|
|
18005
18036
|
return !1;
|
|
18006
18037
|
}
|
|
18007
18038
|
switch(node.tagName) {
|
|
@@ -18075,7 +18106,7 @@ goog.dom.copyContents = function(target, source) {
|
|
|
18075
18106
|
};
|
|
18076
18107
|
goog.dom.flattenElement = function(element) {
|
|
18077
18108
|
var child, parent = element.parentNode;
|
|
18078
|
-
if (parent && parent.nodeType != goog
|
|
18109
|
+
if (parent && parent.nodeType != module$contents$goog$dom$NodeType_NodeType.DOCUMENT_FRAGMENT) {
|
|
18079
18110
|
if (element.removeNode) {
|
|
18080
18111
|
return element.removeNode(!1);
|
|
18081
18112
|
}
|
|
@@ -18087,7 +18118,7 @@ goog.dom.flattenElement = function(element) {
|
|
|
18087
18118
|
};
|
|
18088
18119
|
goog.dom.getChildren = function(element) {
|
|
18089
18120
|
return goog.FEATURESET_YEAR > 2018 || element.children != void 0 ? element.children : Array.prototype.filter.call(element.childNodes, function(node) {
|
|
18090
|
-
return node.nodeType == goog
|
|
18121
|
+
return node.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT;
|
|
18091
18122
|
});
|
|
18092
18123
|
};
|
|
18093
18124
|
goog.dom.getFirstElementChild = function(node) {
|
|
@@ -18103,7 +18134,7 @@ goog.dom.getPreviousElementSibling = function(node) {
|
|
|
18103
18134
|
return node.previousElementSibling !== void 0 ? node.previousElementSibling : goog.dom.getNextElementNode_(node.previousSibling, !1);
|
|
18104
18135
|
};
|
|
18105
18136
|
goog.dom.getNextElementNode_ = function(node, forward) {
|
|
18106
|
-
for (; node && node.nodeType != goog
|
|
18137
|
+
for (; node && node.nodeType != module$contents$goog$dom$NodeType_NodeType.ELEMENT;) {
|
|
18107
18138
|
node = forward ? node.nextSibling : node.previousSibling;
|
|
18108
18139
|
}
|
|
18109
18140
|
return node;
|
|
@@ -18136,7 +18167,7 @@ goog.dom.isNodeLike = function(obj) {
|
|
|
18136
18167
|
return goog.isObject(obj) && obj.nodeType > 0;
|
|
18137
18168
|
};
|
|
18138
18169
|
goog.dom.isElement = function(obj) {
|
|
18139
|
-
return goog.isObject(obj) && obj.nodeType == goog
|
|
18170
|
+
return goog.isObject(obj) && obj.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT;
|
|
18140
18171
|
};
|
|
18141
18172
|
goog.dom.isWindow = function(obj) {
|
|
18142
18173
|
return goog.isObject(obj) && obj.window == obj;
|
|
@@ -18148,7 +18179,7 @@ goog.dom.contains = function(parent, descendant) {
|
|
|
18148
18179
|
if (!parent || !descendant) {
|
|
18149
18180
|
return !1;
|
|
18150
18181
|
}
|
|
18151
|
-
if (goog.FEATURESET_YEAR > 2018 || parent.contains && descendant.nodeType == goog
|
|
18182
|
+
if (goog.FEATURESET_YEAR > 2018 || parent.contains && descendant.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT) {
|
|
18152
18183
|
return parent == descendant || parent.contains(descendant);
|
|
18153
18184
|
}
|
|
18154
18185
|
if (typeof parent.compareDocumentPosition != "undefined") {
|
|
@@ -18167,7 +18198,7 @@ goog.dom.compareNodeOrder = function(node1, node2) {
|
|
|
18167
18198
|
return node1.compareDocumentPosition(node2) & 2 ? 1 : -1;
|
|
18168
18199
|
}
|
|
18169
18200
|
if ("sourceIndex" in node1 || node1.parentNode && "sourceIndex" in node1.parentNode) {
|
|
18170
|
-
var isElement1 = node1.nodeType == goog
|
|
18201
|
+
var isElement1 = node1.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT, isElement2 = node2.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT;
|
|
18171
18202
|
if (isElement1 && isElement2) {
|
|
18172
18203
|
return node1.sourceIndex - node2.sourceIndex;
|
|
18173
18204
|
}
|
|
@@ -18233,7 +18264,7 @@ goog.dom.isInDocument = function(node) {
|
|
|
18233
18264
|
};
|
|
18234
18265
|
goog.dom.getOwnerDocument = function(node) {
|
|
18235
18266
|
goog.asserts.assert(node, "Node cannot be null or undefined.");
|
|
18236
|
-
return node.nodeType == goog
|
|
18267
|
+
return node.nodeType == module$contents$goog$dom$NodeType_NodeType.DOCUMENT ? node : node.ownerDocument || node.document;
|
|
18237
18268
|
};
|
|
18238
18269
|
goog.dom.getFrameContentDocument = function(frame) {
|
|
18239
18270
|
return frame.contentDocument || frame.contentWindow.document;
|
|
@@ -18249,9 +18280,9 @@ goog.dom.setTextContent = function(node, text) {
|
|
|
18249
18280
|
goog.asserts.assert(node != null, "goog.dom.setTextContent expects a non-null value for node");
|
|
18250
18281
|
if ("textContent" in node) {
|
|
18251
18282
|
node.textContent = text;
|
|
18252
|
-
} else if (node.nodeType == goog
|
|
18283
|
+
} else if (node.nodeType == module$contents$goog$dom$NodeType_NodeType.TEXT) {
|
|
18253
18284
|
node.data = String(text);
|
|
18254
|
-
} else if (node.firstChild && node.firstChild.nodeType == goog
|
|
18285
|
+
} else if (node.firstChild && node.firstChild.nodeType == module$contents$goog$dom$NodeType_NodeType.TEXT) {
|
|
18255
18286
|
for (; node.lastChild != node.firstChild;) {
|
|
18256
18287
|
node.removeChild(goog.asserts.assert(node.lastChild));
|
|
18257
18288
|
}
|
|
@@ -18314,7 +18345,7 @@ goog.dom.findElements = function(root, pred) {
|
|
|
18314
18345
|
return result;
|
|
18315
18346
|
};
|
|
18316
18347
|
goog.dom.getChildrenReverse_ = function(node) {
|
|
18317
|
-
if (node.nodeType == goog
|
|
18348
|
+
if (node.nodeType == module$contents$goog$dom$NodeType_NodeType.DOCUMENT) {
|
|
18318
18349
|
return [node.documentElement];
|
|
18319
18350
|
}
|
|
18320
18351
|
for (var children = [], c = node.lastElementChild; c; c = c.previousElementSibling) {
|
|
@@ -18364,7 +18395,7 @@ goog.dom.getRawTextContent = function(node) {
|
|
|
18364
18395
|
};
|
|
18365
18396
|
goog.dom.getTextContent_ = function(node, buf, normalizeWhitespace) {
|
|
18366
18397
|
if (!(node.nodeName in goog.dom.TAGS_TO_IGNORE_)) {
|
|
18367
|
-
if (node.nodeType == goog
|
|
18398
|
+
if (node.nodeType == module$contents$goog$dom$NodeType_NodeType.TEXT) {
|
|
18368
18399
|
normalizeWhitespace ? buf.push(String(node.nodeValue).replace(/(\r\n|\r|\n)/g, "")) : buf.push(node.nodeValue);
|
|
18369
18400
|
} else if (node.nodeName in goog.dom.PREDEFINED_TAG_VALUES_) {
|
|
18370
18401
|
buf.push(goog.dom.PREDEFINED_TAG_VALUES_[node.nodeName]);
|
|
@@ -18390,7 +18421,7 @@ goog.dom.getNodeTextOffset = function(node, opt_offsetParent) {
|
|
|
18390
18421
|
goog.dom.getNodeAtOffset = function(parent, offset, opt_result) {
|
|
18391
18422
|
for (var stack = [parent], pos = 0, cur = null; stack.length > 0 && pos < offset;) {
|
|
18392
18423
|
if (cur = stack.pop(), !(cur.nodeName in goog.dom.TAGS_TO_IGNORE_)) {
|
|
18393
|
-
if (cur.nodeType == goog
|
|
18424
|
+
if (cur.nodeType == module$contents$goog$dom$NodeType_NodeType.TEXT) {
|
|
18394
18425
|
var text = cur.nodeValue.replace(/(\r\n|\r|\n)/g, "").replace(/ +/g, " ");
|
|
18395
18426
|
pos += text.length;
|
|
18396
18427
|
} else if (cur.nodeName in goog.dom.PREDEFINED_TAG_VALUES_) {
|
|
@@ -18935,44 +18966,38 @@ goog.net.jsloader.Error = function(code, opt_message) {
|
|
|
18935
18966
|
};
|
|
18936
18967
|
goog.inherits(goog.net.jsloader.Error, module$contents$goog$debug$Error_DebugError);
|
|
18937
18968
|
goog.json = {};
|
|
18938
|
-
goog
|
|
18939
|
-
goog.json.isValid = function(s) {
|
|
18969
|
+
function module$contents$goog$json_isValid(s) {
|
|
18940
18970
|
return /^\s*$/.test(s) ? !1 : /^[\],:{}\s\u2028\u2029]*$/.test(s.replace(/\\["\\\/bfnrtu]/g, "@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g, "]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, ""));
|
|
18941
|
-
}
|
|
18942
|
-
goog
|
|
18943
|
-
}
|
|
18944
|
-
goog.json.setErrorLogger = function(errorLogger) {
|
|
18945
|
-
goog.json.errorLogger_ = errorLogger;
|
|
18946
|
-
};
|
|
18947
|
-
goog.json.parse = goog.json.USE_NATIVE_JSON ? goog.global.JSON.parse : function(s) {
|
|
18971
|
+
}
|
|
18972
|
+
var module$contents$goog$json_errorLoggerInternal = function() {
|
|
18973
|
+
}, module$contents$goog$json_parse = function(s) {
|
|
18948
18974
|
try {
|
|
18949
18975
|
return goog.global.JSON.parse(s);
|
|
18950
18976
|
} catch (ex) {
|
|
18951
18977
|
var error = ex;
|
|
18952
18978
|
}
|
|
18953
18979
|
var o = String(s);
|
|
18954
|
-
if (goog
|
|
18980
|
+
if (module$contents$goog$json_isValid(o)) {
|
|
18955
18981
|
try {
|
|
18956
18982
|
var result = eval("(" + o + ")");
|
|
18957
|
-
error && goog
|
|
18983
|
+
error && module$contents$goog$json_errorLoggerInternal("Invalid JSON: " + o, error);
|
|
18958
18984
|
return result;
|
|
18959
18985
|
} catch (ex) {
|
|
18960
18986
|
}
|
|
18961
18987
|
}
|
|
18962
18988
|
throw Error("Invalid JSON string: " + o);
|
|
18989
|
+
}, module$contents$goog$json_serialize = function(object, opt_replacer) {
|
|
18990
|
+
return (new module$contents$goog$json_Serializer(opt_replacer)).serialize(object);
|
|
18963
18991
|
};
|
|
18964
|
-
|
|
18965
|
-
return (new goog.json.Serializer(opt_replacer)).serialize(object);
|
|
18966
|
-
};
|
|
18967
|
-
goog.json.Serializer = function(opt_replacer) {
|
|
18992
|
+
function module$contents$goog$json_Serializer(opt_replacer) {
|
|
18968
18993
|
this.replacer_ = opt_replacer;
|
|
18969
|
-
}
|
|
18970
|
-
goog.
|
|
18994
|
+
}
|
|
18995
|
+
module$contents$goog$json_Serializer.prototype.serialize = function(object) {
|
|
18971
18996
|
var sb = [];
|
|
18972
18997
|
this.serializeInternal(object, sb);
|
|
18973
18998
|
return sb.join("");
|
|
18974
18999
|
};
|
|
18975
|
-
goog.
|
|
19000
|
+
module$contents$goog$json_Serializer.prototype.serializeInternal = function(object, sb) {
|
|
18976
19001
|
if (object == null) {
|
|
18977
19002
|
sb.push("null");
|
|
18978
19003
|
} else {
|
|
@@ -19006,19 +19031,19 @@ goog.json.Serializer.prototype.serializeInternal = function(object, sb) {
|
|
|
19006
19031
|
}
|
|
19007
19032
|
}
|
|
19008
19033
|
};
|
|
19009
|
-
goog.
|
|
19010
|
-
goog.
|
|
19011
|
-
goog.
|
|
19012
|
-
sb.push('"', s.replace(goog.
|
|
19013
|
-
var rv = goog.
|
|
19014
|
-
rv || (rv = "\\u" + (c.charCodeAt(0) | 65536).toString(16).slice(1), goog.
|
|
19034
|
+
module$contents$goog$json_Serializer.charToJsonCharCache_ = {'"':'\\"', "\\":"\\\\", "/":"\\/", "\b":"\\b", "\f":"\\f", "\n":"\\n", "\r":"\\r", "\t":"\\t", "\v":"\\u000b"};
|
|
19035
|
+
module$contents$goog$json_Serializer.charsToReplace_ = /\uffff/.test("\uffff") ? /[\\"\x00-\x1f\x7f-\uffff]/g : /[\\"\x00-\x1f\x7f-\xff]/g;
|
|
19036
|
+
module$contents$goog$json_Serializer.prototype.serializeString_ = function(s, sb) {
|
|
19037
|
+
sb.push('"', s.replace(module$contents$goog$json_Serializer.charsToReplace_, function(c) {
|
|
19038
|
+
var rv = module$contents$goog$json_Serializer.charToJsonCharCache_[c];
|
|
19039
|
+
rv || (rv = "\\u" + (c.charCodeAt(0) | 65536).toString(16).slice(1), module$contents$goog$json_Serializer.charToJsonCharCache_[c] = rv);
|
|
19015
19040
|
return rv;
|
|
19016
19041
|
}), '"');
|
|
19017
19042
|
};
|
|
19018
|
-
goog.
|
|
19043
|
+
module$contents$goog$json_Serializer.prototype.serializeNumber_ = function(n, sb) {
|
|
19019
19044
|
sb.push(isFinite(n) && !isNaN(n) ? String(n) : "null");
|
|
19020
19045
|
};
|
|
19021
|
-
goog.
|
|
19046
|
+
module$contents$goog$json_Serializer.prototype.serializeArray = function(arr, sb) {
|
|
19022
19047
|
var l = arr.length;
|
|
19023
19048
|
sb.push("[");
|
|
19024
19049
|
for (var sep = "", i = 0; i < l; i++) {
|
|
@@ -19029,7 +19054,7 @@ goog.json.Serializer.prototype.serializeArray = function(arr, sb) {
|
|
|
19029
19054
|
}
|
|
19030
19055
|
sb.push("]");
|
|
19031
19056
|
};
|
|
19032
|
-
goog.
|
|
19057
|
+
module$contents$goog$json_Serializer.prototype.serializeObject_ = function(obj, sb) {
|
|
19033
19058
|
sb.push("{");
|
|
19034
19059
|
var sep = "", key;
|
|
19035
19060
|
for (key in obj) {
|
|
@@ -19040,16 +19065,17 @@ goog.json.Serializer.prototype.serializeObject_ = function(obj, sb) {
|
|
|
19040
19065
|
}
|
|
19041
19066
|
sb.push("}");
|
|
19042
19067
|
};
|
|
19043
|
-
goog.json.
|
|
19044
|
-
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19068
|
+
goog.json.Replacer = void 0;
|
|
19069
|
+
goog.json.Reviver = void 0;
|
|
19070
|
+
goog.json.Serializer = module$contents$goog$json_Serializer;
|
|
19071
|
+
goog.json.USE_NATIVE_JSON = !1;
|
|
19072
|
+
goog.json.isValid = module$contents$goog$json_isValid;
|
|
19073
|
+
goog.json.parse = module$contents$goog$json_parse;
|
|
19074
|
+
goog.json.serialize = module$contents$goog$json_serialize;
|
|
19075
|
+
goog.json.setErrorLogger = function(errorLogger) {
|
|
19076
|
+
module$contents$goog$json_errorLoggerInternal = errorLogger;
|
|
19052
19077
|
};
|
|
19078
|
+
goog.json.hybrid = {};
|
|
19053
19079
|
function module$contents$goog$json$hybrid_parseInternal(jsonString, fallbackParser) {
|
|
19054
19080
|
if (goog.global.JSON) {
|
|
19055
19081
|
try {
|
|
@@ -19061,38 +19087,46 @@ function module$contents$goog$json$hybrid_parseInternal(jsonString, fallbackPars
|
|
|
19061
19087
|
}
|
|
19062
19088
|
return fallbackParser(jsonString);
|
|
19063
19089
|
}
|
|
19064
|
-
var module$contents$goog$json$hybrid_parse =
|
|
19065
|
-
return module$contents$goog$json$hybrid_parseInternal(jsonString, goog
|
|
19090
|
+
var module$contents$goog$json$hybrid_parse = function(jsonString) {
|
|
19091
|
+
return module$contents$goog$json$hybrid_parseInternal(jsonString, module$contents$goog$json_parse);
|
|
19066
19092
|
};
|
|
19067
19093
|
goog.json.hybrid.parse = module$contents$goog$json$hybrid_parse;
|
|
19068
|
-
goog.json.hybrid.stringify =
|
|
19069
|
-
goog.
|
|
19070
|
-
|
|
19094
|
+
goog.json.hybrid.stringify = function(obj) {
|
|
19095
|
+
if (goog.global.JSON) {
|
|
19096
|
+
try {
|
|
19097
|
+
return goog.global.JSON.stringify(obj);
|
|
19098
|
+
} catch (e) {
|
|
19099
|
+
}
|
|
19100
|
+
}
|
|
19101
|
+
return module$contents$goog$json_serialize(obj);
|
|
19102
|
+
};
|
|
19103
|
+
var module$contents$goog$net$ErrorCode_ErrorCode = {NO_ERROR:0, ACCESS_DENIED:1, FILE_NOT_FOUND:2, FF_SILENT_ERROR:3, CUSTOM_ERROR:4, EXCEPTION:5, HTTP_ERROR:6, ABORT:7, TIMEOUT:8, OFFLINE:9, getDebugMessage:function(errorCode) {
|
|
19071
19104
|
switch(errorCode) {
|
|
19072
|
-
case goog
|
|
19105
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.NO_ERROR:
|
|
19073
19106
|
return "No Error";
|
|
19074
|
-
case goog
|
|
19107
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.ACCESS_DENIED:
|
|
19075
19108
|
return "Access denied to content document";
|
|
19076
|
-
case goog
|
|
19109
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.FILE_NOT_FOUND:
|
|
19077
19110
|
return "File not found";
|
|
19078
|
-
case goog
|
|
19111
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.FF_SILENT_ERROR:
|
|
19079
19112
|
return "Firefox silently errored";
|
|
19080
|
-
case goog
|
|
19113
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.CUSTOM_ERROR:
|
|
19081
19114
|
return "Application custom error";
|
|
19082
|
-
case goog
|
|
19115
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.EXCEPTION:
|
|
19083
19116
|
return "An exception occurred";
|
|
19084
|
-
case goog
|
|
19117
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.HTTP_ERROR:
|
|
19085
19118
|
return "Http response at 400 or 500 level";
|
|
19086
|
-
case goog
|
|
19119
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.ABORT:
|
|
19087
19120
|
return "Request was aborted";
|
|
19088
|
-
case goog
|
|
19121
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.TIMEOUT:
|
|
19089
19122
|
return "Request timed out";
|
|
19090
|
-
case goog
|
|
19123
|
+
case module$contents$goog$net$ErrorCode_ErrorCode.OFFLINE:
|
|
19091
19124
|
return "The resource is not available offline";
|
|
19092
19125
|
default:
|
|
19093
19126
|
return "Unrecognized error code";
|
|
19094
19127
|
}
|
|
19095
|
-
};
|
|
19128
|
+
}};
|
|
19129
|
+
goog.net.ErrorCode = module$contents$goog$net$ErrorCode_ErrorCode;
|
|
19096
19130
|
goog.net.EventType = {COMPLETE:"complete", SUCCESS:"success", ERROR:"error", ABORT:"abort", READY:"ready", READY_STATE_CHANGE:"readystatechange", TIMEOUT:"timeout", INCREMENTAL_DATA:"incrementaldata", PROGRESS:"progress", DOWNLOAD_PROGRESS:"downloadprogress", UPLOAD_PROGRESS:"uploadprogress"};
|
|
19097
19131
|
goog.net.HttpStatus = {CONTINUE:100, SWITCHING_PROTOCOLS:101, OK:200, CREATED:201, ACCEPTED:202, NON_AUTHORITATIVE_INFORMATION:203, NO_CONTENT:204, RESET_CONTENT:205, PARTIAL_CONTENT:206, MULTI_STATUS:207, MULTIPLE_CHOICES:300, MOVED_PERMANENTLY:301, FOUND:302, SEE_OTHER:303, NOT_MODIFIED:304, USE_PROXY:305, TEMPORARY_REDIRECT:307, PERMANENT_REDIRECT:308, BAD_REQUEST:400, UNAUTHORIZED:401, PAYMENT_REQUIRED:402, FORBIDDEN:403, NOT_FOUND:404, METHOD_NOT_ALLOWED:405, NOT_ACCEPTABLE:406, PROXY_AUTHENTICATION_REQUIRED:407,
|
|
19098
19132
|
REQUEST_TIMEOUT:408, CONFLICT:409, GONE:410, LENGTH_REQUIRED:411, PRECONDITION_FAILED:412, REQUEST_ENTITY_TOO_LARGE:413, REQUEST_URI_TOO_LONG:414, UNSUPPORTED_MEDIA_TYPE:415, REQUEST_RANGE_NOT_SATISFIABLE:416, EXPECTATION_FAILED:417, UNPROCESSABLE_ENTITY:422, LOCKED:423, FAILED_DEPENDENCY:424, PRECONDITION_REQUIRED:428, TOO_MANY_REQUESTS:429, REQUEST_HEADER_FIELDS_TOO_LARGE:431, CLIENT_CLOSED_REQUEST:499, INTERNAL_SERVER_ERROR:500, NOT_IMPLEMENTED:501, BAD_GATEWAY:502, SERVICE_UNAVAILABLE:503, GATEWAY_TIMEOUT:504,
|
|
@@ -19111,22 +19145,24 @@ goog.net.HttpStatus.isSuccess = function(status) {
|
|
|
19111
19145
|
return !1;
|
|
19112
19146
|
}
|
|
19113
19147
|
};
|
|
19114
|
-
goog
|
|
19115
|
-
}
|
|
19116
|
-
goog
|
|
19148
|
+
function module$contents$goog$net$XhrLike_XhrLike() {
|
|
19149
|
+
}
|
|
19150
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.open = function(method, url, opt_async, opt_user, opt_password) {
|
|
19117
19151
|
};
|
|
19118
|
-
goog
|
|
19152
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.send = function(opt_data) {
|
|
19119
19153
|
};
|
|
19120
|
-
goog
|
|
19154
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.abort = function() {
|
|
19121
19155
|
};
|
|
19122
|
-
goog
|
|
19156
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.setRequestHeader = function(header, value) {
|
|
19123
19157
|
};
|
|
19124
|
-
goog
|
|
19158
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.getResponseHeader = function(header) {
|
|
19125
19159
|
};
|
|
19126
|
-
goog
|
|
19160
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.getAllResponseHeaders = function() {
|
|
19127
19161
|
};
|
|
19128
|
-
goog
|
|
19162
|
+
module$contents$goog$net$XhrLike_XhrLike.prototype.setTrustToken = function(trustTokenAttribute) {
|
|
19129
19163
|
};
|
|
19164
|
+
goog.net.XhrLike = module$contents$goog$net$XhrLike_XhrLike;
|
|
19165
|
+
module$contents$goog$net$XhrLike_XhrLike.OrNative = void 0;
|
|
19130
19166
|
function module$contents$goog$net$XmlHttpFactory_XmlHttpFactory() {
|
|
19131
19167
|
}
|
|
19132
19168
|
goog.net.XmlHttpFactory = module$contents$goog$net$XmlHttpFactory_XmlHttpFactory;
|
|
@@ -19151,7 +19187,7 @@ goog.net.XhrIo = function(opt_xmlHttpFactory) {
|
|
|
19151
19187
|
this.active_ = !1;
|
|
19152
19188
|
this.xhr_ = null;
|
|
19153
19189
|
this.lastMethod_ = this.lastUri_ = "";
|
|
19154
|
-
this.lastErrorCode_ = goog
|
|
19190
|
+
this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.NO_ERROR;
|
|
19155
19191
|
this.lastError_ = "";
|
|
19156
19192
|
this.inAbort_ = this.inOpen_ = this.inSend_ = this.errorDispatched_ = !1;
|
|
19157
19193
|
this.timeoutInterval_ = 0;
|
|
@@ -19235,7 +19271,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
19235
19271
|
var method = opt_method ? opt_method.toUpperCase() : "GET";
|
|
19236
19272
|
this.lastUri_ = url;
|
|
19237
19273
|
this.lastError_ = "";
|
|
19238
|
-
this.lastErrorCode_ = goog
|
|
19274
|
+
this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.NO_ERROR;
|
|
19239
19275
|
this.lastMethod_ = method;
|
|
19240
19276
|
this.errorDispatched_ = !1;
|
|
19241
19277
|
this.active_ = !0;
|
|
@@ -19248,7 +19284,7 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
19248
19284
|
goog.log.fine(this.logger_, this.formatMsg_("Opening Xhr")), this.inOpen_ = !0, this.xhr_.open(method, String(url), !0), this.inOpen_ = !1;
|
|
19249
19285
|
} catch (err) {
|
|
19250
19286
|
goog.log.fine(this.logger_, this.formatMsg_("Error opening Xhr: " + err.message));
|
|
19251
|
-
this.error_(goog
|
|
19287
|
+
this.error_(module$contents$goog$net$ErrorCode_ErrorCode.EXCEPTION, err);
|
|
19252
19288
|
return;
|
|
19253
19289
|
}
|
|
19254
19290
|
var content = opt_content || "", headers = new Map(this.headers);
|
|
@@ -19293,14 +19329,14 @@ goog.net.XhrIo.prototype.send = function(url, opt_method, opt_content, opt_heade
|
|
|
19293
19329
|
try {
|
|
19294
19330
|
this.cleanUpTimeoutTimer_(), this.timeoutInterval_ > 0 && (goog.log.fine(this.logger_, this.formatMsg_("Will abort after " + this.timeoutInterval_ + "ms if incomplete")), this.timeoutId_ = setTimeout(this.timeout_.bind(this), this.timeoutInterval_)), goog.log.fine(this.logger_, this.formatMsg_("Sending request")), this.inSend_ = !0, this.xhr_.send(content), this.inSend_ = !1;
|
|
19295
19331
|
} catch (err) {
|
|
19296
|
-
goog.log.fine(this.logger_, this.formatMsg_("Send error: " + err.message)), this.error_(goog
|
|
19332
|
+
goog.log.fine(this.logger_, this.formatMsg_("Send error: " + err.message)), this.error_(module$contents$goog$net$ErrorCode_ErrorCode.EXCEPTION, err);
|
|
19297
19333
|
}
|
|
19298
19334
|
};
|
|
19299
19335
|
goog.net.XhrIo.prototype.createXhr = function() {
|
|
19300
19336
|
return this.xmlHttpFactory_ ? this.xmlHttpFactory_.createInstance() : goog.net.XmlHttp();
|
|
19301
19337
|
};
|
|
19302
19338
|
goog.net.XhrIo.prototype.timeout_ = function() {
|
|
19303
|
-
typeof goog != "undefined" && this.xhr_ && (this.lastError_ = "Timed out after " + this.timeoutInterval_ + "ms, aborting", this.lastErrorCode_ = goog
|
|
19339
|
+
typeof goog != "undefined" && this.xhr_ && (this.lastError_ = "Timed out after " + this.timeoutInterval_ + "ms, aborting", this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.TIMEOUT, goog.log.fine(this.logger_, this.formatMsg_(this.lastError_)), this.dispatchEvent(goog.net.EventType.TIMEOUT), this.abort(module$contents$goog$net$ErrorCode_ErrorCode.TIMEOUT));
|
|
19304
19340
|
};
|
|
19305
19341
|
goog.net.XhrIo.prototype.error_ = function(errorCode, err) {
|
|
19306
19342
|
this.active_ = !1;
|
|
@@ -19314,7 +19350,7 @@ goog.net.XhrIo.prototype.dispatchErrors_ = function() {
|
|
|
19314
19350
|
this.errorDispatched_ || (this.errorDispatched_ = !0, this.dispatchEvent(goog.net.EventType.COMPLETE), this.dispatchEvent(goog.net.EventType.ERROR));
|
|
19315
19351
|
};
|
|
19316
19352
|
goog.net.XhrIo.prototype.abort = function(opt_failureCode) {
|
|
19317
|
-
this.xhr_ && this.active_ && (goog.log.fine(this.logger_, this.formatMsg_("Aborting")), this.active_ = !1, this.inAbort_ = !0, this.xhr_.abort(), this.inAbort_ = !1, this.lastErrorCode_ = opt_failureCode || goog
|
|
19353
|
+
this.xhr_ && this.active_ && (goog.log.fine(this.logger_, this.formatMsg_("Aborting")), this.active_ = !1, this.inAbort_ = !0, this.xhr_.abort(), this.inAbort_ = !1, this.lastErrorCode_ = opt_failureCode || module$contents$goog$net$ErrorCode_ErrorCode.ABORT, this.dispatchEvent(goog.net.EventType.COMPLETE), this.dispatchEvent(goog.net.EventType.ABORT), this.cleanUpXhr_());
|
|
19318
19354
|
};
|
|
19319
19355
|
goog.net.XhrIo.prototype.disposeInternal = function() {
|
|
19320
19356
|
this.xhr_ && (this.active_ && (this.active_ = !1, this.inAbort_ = !0, this.xhr_.abort(), this.inAbort_ = !1), this.cleanUpXhr_(!0));
|
|
@@ -19341,7 +19377,7 @@ goog.net.XhrIo.prototype.onReadyStateChangeHelper_ = function() {
|
|
|
19341
19377
|
goog.log.fine(this.logger_, this.formatMsg_("Request complete"));
|
|
19342
19378
|
this.active_ = !1;
|
|
19343
19379
|
try {
|
|
19344
|
-
this.isSuccess() ? (this.dispatchEvent(goog.net.EventType.COMPLETE), this.dispatchEvent(goog.net.EventType.SUCCESS)) : (this.lastErrorCode_ = goog
|
|
19380
|
+
this.isSuccess() ? (this.dispatchEvent(goog.net.EventType.COMPLETE), this.dispatchEvent(goog.net.EventType.SUCCESS)) : (this.lastErrorCode_ = module$contents$goog$net$ErrorCode_ErrorCode.HTTP_ERROR, this.lastError_ = this.getStatusText() + " [" + this.getStatus() + "]", this.dispatchErrors_());
|
|
19345
19381
|
} finally {
|
|
19346
19382
|
this.cleanUpXhr_();
|
|
19347
19383
|
}
|
|
@@ -19384,7 +19420,7 @@ goog.net.XhrIo.prototype.isSuccess = function() {
|
|
|
19384
19420
|
return goog.net.HttpStatus.isSuccess(status) || status === 0 && !this.isLastUriEffectiveSchemeHttp_();
|
|
19385
19421
|
};
|
|
19386
19422
|
goog.net.XhrIo.prototype.isLastUriEffectiveSchemeHttp_ = function() {
|
|
19387
|
-
var scheme = goog
|
|
19423
|
+
var scheme = module$contents$goog$uri$utils_getEffectiveScheme(String(this.lastUri_));
|
|
19388
19424
|
return goog.net.XhrIo.HTTP_SCHEME_PATTERN.test(scheme);
|
|
19389
19425
|
};
|
|
19390
19426
|
goog.net.XhrIo.prototype.getReadyState = function() {
|
|
@@ -19508,7 +19544,7 @@ var $jscomp$templatelit$m1153655765$101 = $jscomp.createTemplateTagFirstArg(["ht
|
|
|
19508
19544
|
ee.apiclient = {};
|
|
19509
19545
|
var module$contents$ee$apiclient_apiclient = {};
|
|
19510
19546
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
19511
|
-
ee.apiclient.API_CLIENT_VERSION = "1.7.
|
|
19547
|
+
ee.apiclient.API_CLIENT_VERSION = "1.7.3";
|
|
19512
19548
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
19513
19549
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
19514
19550
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19813,8 +19849,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19813
19849
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19814
19850
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19815
19851
|
method = method || "POST";
|
|
19816
|
-
var headers = {"Content-Type":contentType}, version = "1.7.
|
|
19817
|
-
version === "1.7.
|
|
19852
|
+
var headers = {"Content-Type":contentType}, version = "1.7.3";
|
|
19853
|
+
version === "1.7.3" && (version = "latest");
|
|
19818
19854
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19819
19855
|
module$contents$ee$apiclient_apiclient.userAgent_ && (headers["User-Agent"] = module$contents$ee$apiclient_apiclient.userAgent_);
|
|
19820
19856
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
@@ -20918,7 +20954,7 @@ ee.Serializer = function(opt_isCompound) {
|
|
|
20918
20954
|
this.unboundName = void 0;
|
|
20919
20955
|
};
|
|
20920
20956
|
goog.exportSymbol("ee.Serializer", ee.Serializer);
|
|
20921
|
-
ee.Serializer.jsonSerializer_ = new goog
|
|
20957
|
+
ee.Serializer.jsonSerializer_ = new module$contents$goog$json_Serializer();
|
|
20922
20958
|
ee.Serializer.hash_ = new module$contents$goog$crypt$Md5_Md5();
|
|
20923
20959
|
ee.Serializer.encode = function(obj, opt_isCompound) {
|
|
20924
20960
|
return (new ee.Serializer(opt_isCompound !== void 0 ? opt_isCompound : !0)).encode_(obj);
|
|
@@ -21395,7 +21431,7 @@ ee.rpc_convert_batch.buildDriveDestination_ = function(params) {
|
|
|
21395
21431
|
return new module$exports$eeapiclient$ee_api_client.DriveDestination({folder:stringOrNull_(params.driveFolder), filenamePrefix:stringOrNull_(params.driveFileNamePrefix)});
|
|
21396
21432
|
};
|
|
21397
21433
|
ee.rpc_convert_batch.buildEarthEngineDestination_ = function(params) {
|
|
21398
|
-
return new module$exports$eeapiclient$ee_api_client.EarthEngineDestination({name:ee.rpc_convert.assetIdToAssetName(params.assetId)});
|
|
21434
|
+
return new module$exports$eeapiclient$ee_api_client.EarthEngineDestination({name:ee.rpc_convert.assetIdToAssetName(params.assetId), overwrite:!!params.overwrite});
|
|
21399
21435
|
};
|
|
21400
21436
|
ee.rpc_convert_batch.buildFeatureViewDestination_ = function(params) {
|
|
21401
21437
|
return new module$exports$eeapiclient$ee_api_client.FeatureViewDestination({name:ee.rpc_convert.assetIdToAssetName(params.mapName)});
|
|
@@ -22786,7 +22822,7 @@ ee.Geometry = function(geoJson, opt_proj, opt_geodesic, opt_evenOdd) {
|
|
|
22786
22822
|
if (goog.isObject(geoJson.crs) && geoJson.crs.type == "name" && goog.isObject(geoJson.crs.properties) && typeof geoJson.crs.properties.name === "string") {
|
|
22787
22823
|
this.proj_ = geoJson.crs.properties.name;
|
|
22788
22824
|
} else {
|
|
22789
|
-
throw Error("Invalid CRS declaration in GeoJSON: " + (new goog
|
|
22825
|
+
throw Error("Invalid CRS declaration in GeoJSON: " + (new module$contents$goog$json_Serializer()).serialize(geoJson.crs));
|
|
22790
22826
|
}
|
|
22791
22827
|
}
|
|
22792
22828
|
this.geodesic_ = opt_geodesic;
|
|
@@ -22949,7 +22985,7 @@ ee.Geometry.prototype.toGeoJSONString = function() {
|
|
|
22949
22985
|
if (this.func) {
|
|
22950
22986
|
throw Error("Can't convert a computed Geometry to GeoJSON. Use evaluate() instead.");
|
|
22951
22987
|
}
|
|
22952
|
-
return (new goog
|
|
22988
|
+
return (new module$contents$goog$json_Serializer()).serialize(this.toGeoJSON());
|
|
22953
22989
|
};
|
|
22954
22990
|
goog.exportProperty(ee.Geometry.prototype, "toGeoJSONString", ee.Geometry.prototype.toGeoJSONString);
|
|
22955
22991
|
ee.Geometry.prototype.serialize = function(legacy) {
|
|
@@ -23979,7 +24015,7 @@ module$contents$ee$batch_ExportTask.prototype.start = function(opt_success, opt_
|
|
|
23979
24015
|
}
|
|
23980
24016
|
};
|
|
23981
24017
|
goog.exportProperty(module$contents$ee$batch_ExportTask.prototype, "start", module$contents$ee$batch_ExportTask.prototype.start);
|
|
23982
|
-
module$contents$ee$batch_Export.image.toAsset = function(image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_shardSize, opt_priority) {
|
|
24018
|
+
module$contents$ee$batch_Export.image.toAsset = function(image, opt_description, opt_assetId, opt_pyramidingPolicy, opt_dimensions, opt_region, opt_scale, opt_crs, opt_crsTransform, opt_maxPixels, opt_shardSize, opt_priority, opt_overwrite) {
|
|
23983
24019
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.image.toAsset, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.ASSET, ee.data.ExportType.IMAGE);
|
|
23984
24020
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
23985
24021
|
};
|
|
@@ -24011,7 +24047,7 @@ module$contents$ee$batch_Export.table.toDrive = function(collection, opt_descrip
|
|
|
24011
24047
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
24012
24048
|
};
|
|
24013
24049
|
goog.exportSymbol("module$contents$ee$batch_Export.table.toDrive", module$contents$ee$batch_Export.table.toDrive);
|
|
24014
|
-
module$contents$ee$batch_Export.table.toAsset = function(collection, opt_description, opt_assetId, opt_maxVertices, opt_priority) {
|
|
24050
|
+
module$contents$ee$batch_Export.table.toAsset = function(collection, opt_description, opt_assetId, opt_maxVertices, opt_priority, opt_overwrite) {
|
|
24015
24051
|
var clientConfig = ee.arguments.extractFromFunction(module$contents$ee$batch_Export.table.toAsset, arguments), serverConfig = module$contents$ee$batch_Export.convertToServerParams(clientConfig, ee.data.ExportDestination.ASSET, ee.data.ExportType.TABLE);
|
|
24016
24052
|
return module$contents$ee$batch_ExportTask.create(serverConfig);
|
|
24017
24053
|
};
|
|
@@ -24147,6 +24183,7 @@ module$contents$ee$batch_Export.prepareDestination_ = function(taskConfig, desti
|
|
|
24147
24183
|
break;
|
|
24148
24184
|
case ee.data.ExportDestination.ASSET:
|
|
24149
24185
|
taskConfig.assetId = taskConfig.assetId || "";
|
|
24186
|
+
taskConfig.overwrite = taskConfig.overwrite || !1;
|
|
24150
24187
|
break;
|
|
24151
24188
|
case ee.data.ExportDestination.FEATURE_VIEW:
|
|
24152
24189
|
taskConfig.mapName = taskConfig.mapName || "";
|
|
@@ -25075,21 +25112,21 @@ module$contents$ee$layers$AbstractOverlayStats_AbstractOverlayStats.LayerStatsFo
|
|
|
25075
25112
|
module$contents$ee$layers$AbstractOverlayStats_AbstractOverlayStats.Summary = function() {
|
|
25076
25113
|
};
|
|
25077
25114
|
ee.layers.AbstractOverlayStats = module$contents$ee$layers$AbstractOverlayStats_AbstractOverlayStats;
|
|
25078
|
-
goog
|
|
25115
|
+
function module$contents$goog$events$EventHandler_EventHandler(opt_scope) {
|
|
25079
25116
|
goog.Disposable.call(this);
|
|
25080
25117
|
this.handler_ = opt_scope;
|
|
25081
25118
|
this.keys_ = {};
|
|
25082
|
-
}
|
|
25083
|
-
goog.inherits(goog
|
|
25084
|
-
goog
|
|
25085
|
-
goog
|
|
25119
|
+
}
|
|
25120
|
+
goog.inherits(module$contents$goog$events$EventHandler_EventHandler, goog.Disposable);
|
|
25121
|
+
module$contents$goog$events$EventHandler_EventHandler.typeArray_ = [];
|
|
25122
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listen = function(src, type, opt_fn, opt_options) {
|
|
25086
25123
|
return this.listen_(src, type, opt_fn, opt_options);
|
|
25087
25124
|
};
|
|
25088
|
-
goog
|
|
25125
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenWithScope = function(src, type, fn, options, scope) {
|
|
25089
25126
|
return this.listen_(src, type, fn, options, scope);
|
|
25090
25127
|
};
|
|
25091
|
-
goog
|
|
25092
|
-
Array.isArray(type) || (type && (goog
|
|
25128
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listen_ = function(src, type, opt_fn, opt_options, opt_scope) {
|
|
25129
|
+
Array.isArray(type) || (type && (module$contents$goog$events$EventHandler_EventHandler.typeArray_[0] = type.toString()), type = module$contents$goog$events$EventHandler_EventHandler.typeArray_);
|
|
25093
25130
|
for (var i = 0; i < type.length; i++) {
|
|
25094
25131
|
var listenerObj = goog.events.listen(src, type[i], opt_fn || this.handleEvent, opt_options || !1, opt_scope || this.handler_ || this);
|
|
25095
25132
|
if (!listenerObj) {
|
|
@@ -25099,13 +25136,13 @@ goog.events.EventHandler.prototype.listen_ = function(src, type, opt_fn, opt_opt
|
|
|
25099
25136
|
}
|
|
25100
25137
|
return this;
|
|
25101
25138
|
};
|
|
25102
|
-
goog
|
|
25139
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenOnce = function(src, type, opt_fn, opt_options) {
|
|
25103
25140
|
return this.listenOnce_(src, type, opt_fn, opt_options);
|
|
25104
25141
|
};
|
|
25105
|
-
goog
|
|
25142
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenOnceWithScope = function(src, type, fn, capture, scope) {
|
|
25106
25143
|
return this.listenOnce_(src, type, fn, capture, scope);
|
|
25107
25144
|
};
|
|
25108
|
-
goog
|
|
25145
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenOnce_ = function(src, type, opt_fn, opt_options, opt_scope) {
|
|
25109
25146
|
if (Array.isArray(type)) {
|
|
25110
25147
|
for (var i = 0; i < type.length; i++) {
|
|
25111
25148
|
this.listenOnce_(src, type[i], opt_fn, opt_options, opt_scope);
|
|
@@ -25119,24 +25156,24 @@ goog.events.EventHandler.prototype.listenOnce_ = function(src, type, opt_fn, opt
|
|
|
25119
25156
|
}
|
|
25120
25157
|
return this;
|
|
25121
25158
|
};
|
|
25122
|
-
goog
|
|
25159
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenWithWrapper = function(src, wrapper, listener, opt_capt) {
|
|
25123
25160
|
return this.listenWithWrapper_(src, wrapper, listener, opt_capt);
|
|
25124
25161
|
};
|
|
25125
|
-
goog
|
|
25162
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenWithWrapperAndScope = function(src, wrapper, listener, capture, scope) {
|
|
25126
25163
|
return this.listenWithWrapper_(src, wrapper, listener, capture, scope);
|
|
25127
25164
|
};
|
|
25128
|
-
goog
|
|
25165
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.listenWithWrapper_ = function(src, wrapper, listener, opt_capt, opt_scope) {
|
|
25129
25166
|
wrapper.listen(src, listener, opt_capt, opt_scope || this.handler_ || this, this);
|
|
25130
25167
|
return this;
|
|
25131
25168
|
};
|
|
25132
|
-
goog
|
|
25169
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.getListenerCount = function() {
|
|
25133
25170
|
var count = 0, key;
|
|
25134
25171
|
for (key in this.keys_) {
|
|
25135
25172
|
Object.prototype.hasOwnProperty.call(this.keys_, key) && count++;
|
|
25136
25173
|
}
|
|
25137
25174
|
return count;
|
|
25138
25175
|
};
|
|
25139
|
-
goog
|
|
25176
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.unlisten = function(src, type, opt_fn, opt_options, opt_scope) {
|
|
25140
25177
|
if (Array.isArray(type)) {
|
|
25141
25178
|
for (var i = 0; i < type.length; i++) {
|
|
25142
25179
|
this.unlisten(src, type[i], opt_fn, opt_options, opt_scope);
|
|
@@ -25147,41 +25184,42 @@ goog.events.EventHandler.prototype.unlisten = function(src, type, opt_fn, opt_op
|
|
|
25147
25184
|
}
|
|
25148
25185
|
return this;
|
|
25149
25186
|
};
|
|
25150
|
-
goog
|
|
25187
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.unlistenWithWrapper = function(src, wrapper, listener, opt_capt, opt_scope) {
|
|
25151
25188
|
wrapper.unlisten(src, listener, opt_capt, opt_scope || this.handler_ || this, this);
|
|
25152
25189
|
return this;
|
|
25153
25190
|
};
|
|
25154
|
-
goog
|
|
25191
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.removeAll = function() {
|
|
25155
25192
|
module$contents$goog$object_forEach(this.keys_, function(listenerObj, key) {
|
|
25156
25193
|
this.keys_.hasOwnProperty(key) && goog.events.unlistenByKey(listenerObj);
|
|
25157
25194
|
}, this);
|
|
25158
25195
|
this.keys_ = {};
|
|
25159
25196
|
};
|
|
25160
|
-
goog
|
|
25161
|
-
goog
|
|
25197
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.disposeInternal = function() {
|
|
25198
|
+
module$contents$goog$events$EventHandler_EventHandler.superClass_.disposeInternal.call(this);
|
|
25162
25199
|
this.removeAll();
|
|
25163
25200
|
};
|
|
25164
|
-
goog
|
|
25201
|
+
module$contents$goog$events$EventHandler_EventHandler.prototype.handleEvent = function(e) {
|
|
25165
25202
|
throw Error("EventHandler.handleEvent not implemented");
|
|
25166
25203
|
};
|
|
25204
|
+
goog.events.EventHandler = module$contents$goog$events$EventHandler_EventHandler;
|
|
25167
25205
|
goog.fs = {};
|
|
25168
|
-
goog
|
|
25169
|
-
}
|
|
25170
|
-
goog
|
|
25206
|
+
function module$contents$goog$fs$Error_DOMErrorLike() {
|
|
25207
|
+
}
|
|
25208
|
+
function module$contents$goog$fs$Error_FsError(error, action) {
|
|
25171
25209
|
if (error.name !== void 0) {
|
|
25172
|
-
this.name = error.name, this.code = goog
|
|
25210
|
+
this.name = error.name, this.code = module$contents$goog$fs$Error_FsError.getCodeFromName_(error.name);
|
|
25173
25211
|
} else {
|
|
25174
25212
|
var code = goog.asserts.assertNumber(error.code);
|
|
25175
25213
|
this.code = code;
|
|
25176
|
-
this.name = goog
|
|
25214
|
+
this.name = module$contents$goog$fs$Error_FsError.getNameFromCode_(code);
|
|
25177
25215
|
}
|
|
25178
25216
|
module$contents$goog$debug$Error_DebugError.call(this, goog.string.subs("%s %s", this.name, action));
|
|
25179
|
-
}
|
|
25180
|
-
goog.inherits(goog
|
|
25181
|
-
goog
|
|
25182
|
-
goog
|
|
25183
|
-
goog
|
|
25184
|
-
var name = module$contents$goog$object_findKey(goog
|
|
25217
|
+
}
|
|
25218
|
+
goog.inherits(module$contents$goog$fs$Error_FsError, module$contents$goog$debug$Error_DebugError);
|
|
25219
|
+
module$contents$goog$fs$Error_FsError.ErrorName = {ABORT:"AbortError", ENCODING:"EncodingError", INVALID_MODIFICATION:"InvalidModificationError", INVALID_STATE:"InvalidStateError", NOT_FOUND:"NotFoundError", NOT_READABLE:"NotReadableError", NO_MODIFICATION_ALLOWED:"NoModificationAllowedError", PATH_EXISTS:"PathExistsError", QUOTA_EXCEEDED:"QuotaExceededError", SECURITY:"SecurityError", SYNTAX:"SyntaxError", TYPE_MISMATCH:"TypeMismatchError"};
|
|
25220
|
+
module$contents$goog$fs$Error_FsError.ErrorCode = {NOT_FOUND:1, SECURITY:2, ABORT:3, NOT_READABLE:4, ENCODING:5, NO_MODIFICATION_ALLOWED:6, INVALID_STATE:7, SYNTAX:8, INVALID_MODIFICATION:9, QUOTA_EXCEEDED:10, TYPE_MISMATCH:11, PATH_EXISTS:12};
|
|
25221
|
+
module$contents$goog$fs$Error_FsError.getNameFromCode_ = function(code) {
|
|
25222
|
+
var name = module$contents$goog$object_findKey(module$contents$goog$fs$Error_FsError.NameToCodeMap_, function(c) {
|
|
25185
25223
|
return code == c;
|
|
25186
25224
|
});
|
|
25187
25225
|
if (name === void 0) {
|
|
@@ -25189,13 +25227,15 @@ goog.fs.Error.getNameFromCode_ = function(code) {
|
|
|
25189
25227
|
}
|
|
25190
25228
|
return name;
|
|
25191
25229
|
};
|
|
25192
|
-
goog
|
|
25193
|
-
return goog
|
|
25230
|
+
module$contents$goog$fs$Error_FsError.getCodeFromName_ = function(name) {
|
|
25231
|
+
return module$contents$goog$fs$Error_FsError.NameToCodeMap_[name];
|
|
25194
25232
|
};
|
|
25195
25233
|
var $jscomp$compprop18 = {};
|
|
25196
|
-
goog
|
|
25197
|
-
$
|
|
25198
|
-
$jscomp$compprop18[goog.fs.
|
|
25234
|
+
module$contents$goog$fs$Error_FsError.NameToCodeMap_ = ($jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.ABORT] = module$contents$goog$fs$Error_FsError.ErrorCode.ABORT, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.ENCODING] = module$contents$goog$fs$Error_FsError.ErrorCode.ENCODING, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.INVALID_MODIFICATION] = module$contents$goog$fs$Error_FsError.ErrorCode.INVALID_MODIFICATION, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.INVALID_STATE] =
|
|
25235
|
+
module$contents$goog$fs$Error_FsError.ErrorCode.INVALID_STATE, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.NOT_FOUND] = module$contents$goog$fs$Error_FsError.ErrorCode.NOT_FOUND, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.NOT_READABLE] = module$contents$goog$fs$Error_FsError.ErrorCode.NOT_READABLE, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.NO_MODIFICATION_ALLOWED] = module$contents$goog$fs$Error_FsError.ErrorCode.NO_MODIFICATION_ALLOWED,
|
|
25236
|
+
$jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.PATH_EXISTS] = module$contents$goog$fs$Error_FsError.ErrorCode.PATH_EXISTS, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.QUOTA_EXCEEDED] = module$contents$goog$fs$Error_FsError.ErrorCode.QUOTA_EXCEEDED, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.SECURITY] = module$contents$goog$fs$Error_FsError.ErrorCode.SECURITY, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.SYNTAX] =
|
|
25237
|
+
module$contents$goog$fs$Error_FsError.ErrorCode.SYNTAX, $jscomp$compprop18[module$contents$goog$fs$Error_FsError.ErrorName.TYPE_MISMATCH] = module$contents$goog$fs$Error_FsError.ErrorCode.TYPE_MISMATCH, $jscomp$compprop18);
|
|
25238
|
+
goog.fs.Error = module$contents$goog$fs$Error_FsError;
|
|
25199
25239
|
function module$contents$goog$fs$ProgressEvent_GoogProgressEvent(event, target) {
|
|
25200
25240
|
goog.events.Event.call(this, event.type, target);
|
|
25201
25241
|
this.event_ = event;
|
|
@@ -25228,7 +25268,7 @@ goog.fs.FileReader.prototype.abort = function() {
|
|
|
25228
25268
|
try {
|
|
25229
25269
|
this.reader_.abort();
|
|
25230
25270
|
} catch (e) {
|
|
25231
|
-
throw new goog
|
|
25271
|
+
throw new module$contents$goog$fs$Error_FsError(e, "aborting read");
|
|
25232
25272
|
}
|
|
25233
25273
|
};
|
|
25234
25274
|
goog.fs.FileReader.prototype.getReadyState = function() {
|
|
@@ -25238,7 +25278,7 @@ goog.fs.FileReader.prototype.getResult = function() {
|
|
|
25238
25278
|
return this.reader_.result;
|
|
25239
25279
|
};
|
|
25240
25280
|
goog.fs.FileReader.prototype.getError = function() {
|
|
25241
|
-
return this.reader_.error && new goog
|
|
25281
|
+
return this.reader_.error && new module$contents$goog$fs$Error_FsError(this.reader_.error, "reading file");
|
|
25242
25282
|
};
|
|
25243
25283
|
goog.fs.FileReader.prototype.dispatchProgressEvent_ = function(event) {
|
|
25244
25284
|
this.dispatchEvent(new module$contents$goog$fs$ProgressEvent_GoogProgressEvent(event, this));
|
|
@@ -25504,7 +25544,7 @@ module$contents$goog$math$Rect_Rect.prototype.distance = function(point) {
|
|
|
25504
25544
|
return Math.sqrt(this.squaredDistance(point));
|
|
25505
25545
|
};
|
|
25506
25546
|
module$contents$goog$math$Rect_Rect.prototype.getSize = function() {
|
|
25507
|
-
return new goog
|
|
25547
|
+
return new module$contents$goog$math$Size_Size(this.width, this.height);
|
|
25508
25548
|
};
|
|
25509
25549
|
module$contents$goog$math$Rect_Rect.prototype.getTopLeft = function() {
|
|
25510
25550
|
return new module$contents$goog$math$Coordinate_Coordinate(this.left, this.top);
|
|
@@ -25664,7 +25704,7 @@ goog.style.getBoundingClientRect_ = function(el) {
|
|
|
25664
25704
|
};
|
|
25665
25705
|
goog.style.getOffsetParent = function(element) {
|
|
25666
25706
|
for (var doc = goog.dom.getOwnerDocument(element), positionStyle = goog.style.getStyle_(element, "position"), skipStatic = positionStyle == "fixed" || positionStyle == "absolute", parent = element.parentNode; parent && parent != doc; parent = parent.parentNode) {
|
|
25667
|
-
if (parent.nodeType == goog
|
|
25707
|
+
if (parent.nodeType == module$contents$goog$dom$NodeType_NodeType.DOCUMENT_FRAGMENT && parent.host && (parent = parent.host), positionStyle = goog.style.getStyle_(parent, "position"), skipStatic = skipStatic && positionStyle == "static" && parent != doc.documentElement && parent != doc.body, !skipStatic && (parent.scrollWidth > parent.clientWidth || parent.scrollHeight > parent.clientHeight || positionStyle == "fixed" || positionStyle == "absolute" || positionStyle == "relative")) {
|
|
25668
25708
|
return parent;
|
|
25669
25709
|
}
|
|
25670
25710
|
}
|
|
@@ -25759,7 +25799,7 @@ goog.style.getClientPositionForElement_ = function(el) {
|
|
|
25759
25799
|
};
|
|
25760
25800
|
goog.style.getClientPosition = function(el) {
|
|
25761
25801
|
goog.asserts.assert(el);
|
|
25762
|
-
if (el.nodeType == goog
|
|
25802
|
+
if (el.nodeType == module$contents$goog$dom$NodeType_NodeType.ELEMENT) {
|
|
25763
25803
|
return goog.style.getClientPositionForElement_(el);
|
|
25764
25804
|
}
|
|
25765
25805
|
var targetEvent = el.changedTouches ? el.changedTouches[0] : el;
|
|
@@ -25772,7 +25812,7 @@ goog.style.setPageOffset = function(el, x, opt_y) {
|
|
|
25772
25812
|
goog.style.setPosition(el, el.offsetLeft + dx, el.offsetTop + (Number(opt_y) - cur.y));
|
|
25773
25813
|
};
|
|
25774
25814
|
goog.style.setSize = function(element, w, opt_h) {
|
|
25775
|
-
if (w instanceof goog
|
|
25815
|
+
if (w instanceof module$contents$goog$math$Size_Size) {
|
|
25776
25816
|
var h = w.height;
|
|
25777
25817
|
w = w.width;
|
|
25778
25818
|
} else {
|
|
@@ -25815,16 +25855,16 @@ goog.style.getSizeWithDisplay_ = function(element) {
|
|
|
25815
25855
|
var offsetWidth = element.offsetWidth, offsetHeight = element.offsetHeight, webkitOffsetsZero = goog.userAgent.WEBKIT && !offsetWidth && !offsetHeight;
|
|
25816
25856
|
if ((offsetWidth === void 0 || webkitOffsetsZero) && element.getBoundingClientRect) {
|
|
25817
25857
|
var clientRect = goog.style.getBoundingClientRect_(element);
|
|
25818
|
-
return new goog
|
|
25858
|
+
return new module$contents$goog$math$Size_Size(clientRect.right - clientRect.left, clientRect.bottom - clientRect.top);
|
|
25819
25859
|
}
|
|
25820
|
-
return new goog
|
|
25860
|
+
return new module$contents$goog$math$Size_Size(offsetWidth, offsetHeight);
|
|
25821
25861
|
};
|
|
25822
25862
|
goog.style.getTransformedSize = function(element) {
|
|
25823
25863
|
if (!element.getBoundingClientRect) {
|
|
25824
25864
|
return null;
|
|
25825
25865
|
}
|
|
25826
25866
|
var clientRect = goog.style.evaluateWithTemporaryDisplay_(goog.style.getBoundingClientRect_, element);
|
|
25827
|
-
return new goog
|
|
25867
|
+
return new module$contents$goog$math$Size_Size(clientRect.right - clientRect.left, clientRect.bottom - clientRect.top);
|
|
25828
25868
|
};
|
|
25829
25869
|
goog.style.getBounds = function(element) {
|
|
25830
25870
|
var o = goog.style.getPageOffset(element), s = goog.style.getSize(element);
|
|
@@ -25921,14 +25961,14 @@ goog.style.setUnselectable = function(el, unselectable, opt_noRecurse) {
|
|
|
25921
25961
|
}
|
|
25922
25962
|
};
|
|
25923
25963
|
goog.style.getBorderBoxSize = function(element) {
|
|
25924
|
-
return new goog
|
|
25964
|
+
return new module$contents$goog$math$Size_Size(element.offsetWidth, element.offsetHeight);
|
|
25925
25965
|
};
|
|
25926
25966
|
goog.style.setBorderBoxSize = function(element, size) {
|
|
25927
25967
|
goog.style.setBoxSizingSize_(element, size, "border-box");
|
|
25928
25968
|
};
|
|
25929
25969
|
goog.style.getContentBoxSize = function(element) {
|
|
25930
25970
|
var borderBoxSize = goog.style.getBorderBoxSize(element), paddingBox = goog.style.getPaddingBox(element), borderBox = goog.style.getBorderBox(element);
|
|
25931
|
-
return new goog
|
|
25971
|
+
return new module$contents$goog$math$Size_Size(borderBoxSize.width - borderBox.left - paddingBox.left - paddingBox.right - borderBox.right, borderBoxSize.height - borderBox.top - paddingBox.top - paddingBox.bottom - borderBox.bottom);
|
|
25932
25972
|
};
|
|
25933
25973
|
goog.style.setContentBoxSize = function(element, size) {
|
|
25934
25974
|
goog.style.setBoxSizingSize_(element, size, "content-box");
|
|
@@ -26072,7 +26112,7 @@ ee.layers.AbstractOverlay = function(tileSource, opt_options) {
|
|
|
26072
26112
|
this.tilesById = new module$contents$goog$structs$Map_Map();
|
|
26073
26113
|
this.tileCounter = 0;
|
|
26074
26114
|
this.tileSource = tileSource;
|
|
26075
|
-
this.handler = new goog
|
|
26115
|
+
this.handler = new module$contents$goog$events$EventHandler_EventHandler(this);
|
|
26076
26116
|
this.radius = 0;
|
|
26077
26117
|
};
|
|
26078
26118
|
$jscomp.inherits(ee.layers.AbstractOverlay, goog.events.EventTarget);
|
|
@@ -26335,7 +26375,7 @@ goog.net.ImageLoader = function(opt_parent) {
|
|
|
26335
26375
|
goog.events.EventTarget.call(this);
|
|
26336
26376
|
this.imageIdToRequestMap_ = {};
|
|
26337
26377
|
this.imageIdToImageMap_ = {};
|
|
26338
|
-
this.handler_ = new goog
|
|
26378
|
+
this.handler_ = new module$contents$goog$events$EventHandler_EventHandler(this);
|
|
26339
26379
|
this.parent_ = opt_parent;
|
|
26340
26380
|
this.completionFired_ = !1;
|
|
26341
26381
|
};
|