@p4ulcristian/iris-layout 0.2.10 → 0.2.11
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/dist/iris-layout.js +60 -45
- package/dist/styles.css +172 -2
- package/package.json +1 -1
- package/dist/cljs-runtime/cljs.core.js +0 -38746
- package/dist/cljs-runtime/cljs.core.js.map +0 -1
- package/dist/cljs-runtime/cljs.pprint.js +0 -8400
- package/dist/cljs-runtime/cljs.pprint.js.map +0 -1
- package/dist/cljs-runtime/cljs.stacktrace.js +0 -561
- package/dist/cljs-runtime/cljs.stacktrace.js.map +0 -1
- package/dist/cljs-runtime/cljs_env.js +0 -1286
- package/dist/cljs-runtime/clojure.data.js +0 -295
- package/dist/cljs-runtime/clojure.data.js.map +0 -1
- package/dist/cljs-runtime/clojure.set.js +0 -382
- package/dist/cljs-runtime/clojure.set.js.map +0 -1
- package/dist/cljs-runtime/clojure.string.js +0 -480
- package/dist/cljs-runtime/clojure.string.js.map +0 -1
- package/dist/cljs-runtime/clojure.walk.js +0 -132
- package/dist/cljs-runtime/clojure.walk.js.map +0 -1
- package/dist/cljs-runtime/devtools.async.js +0 -90
- package/dist/cljs-runtime/devtools.async.js.map +0 -1
- package/dist/cljs-runtime/devtools.context.js +0 -11
- package/dist/cljs-runtime/devtools.context.js.map +0 -1
- package/dist/cljs-runtime/devtools.core.js +0 -175
- package/dist/cljs-runtime/devtools.core.js.map +0 -1
- package/dist/cljs-runtime/devtools.defaults.js +0 -20
- package/dist/cljs-runtime/devtools.defaults.js.map +0 -1
- package/dist/cljs-runtime/devtools.format.js +0 -631
- package/dist/cljs-runtime/devtools.format.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.budgeting.js +0 -182
- package/dist/cljs-runtime/devtools.formatters.budgeting.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.core.js +0 -220
- package/dist/cljs-runtime/devtools.formatters.core.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.helpers.js +0 -228
- package/dist/cljs-runtime/devtools.formatters.helpers.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.js +0 -261
- package/dist/cljs-runtime/devtools.formatters.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.markup.js +0 -1174
- package/dist/cljs-runtime/devtools.formatters.markup.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.printing.js +0 -313
- package/dist/cljs-runtime/devtools.formatters.printing.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.state.js +0 -325
- package/dist/cljs-runtime/devtools.formatters.state.js.map +0 -1
- package/dist/cljs-runtime/devtools.formatters.templating.js +0 -666
- package/dist/cljs-runtime/devtools.formatters.templating.js.map +0 -1
- package/dist/cljs-runtime/devtools.hints.js +0 -193
- package/dist/cljs-runtime/devtools.hints.js.map +0 -1
- package/dist/cljs-runtime/devtools.munging.js +0 -1058
- package/dist/cljs-runtime/devtools.munging.js.map +0 -1
- package/dist/cljs-runtime/devtools.prefs.js +0 -87
- package/dist/cljs-runtime/devtools.prefs.js.map +0 -1
- package/dist/cljs-runtime/devtools.preload.js +0 -11
- package/dist/cljs-runtime/devtools.preload.js.map +0 -1
- package/dist/cljs-runtime/devtools.protocols.js +0 -98
- package/dist/cljs-runtime/devtools.protocols.js.map +0 -1
- package/dist/cljs-runtime/devtools.reporter.js +0 -81
- package/dist/cljs-runtime/devtools.reporter.js.map +0 -1
- package/dist/cljs-runtime/devtools.toolbox.js +0 -141
- package/dist/cljs-runtime/devtools.toolbox.js.map +0 -1
- package/dist/cljs-runtime/devtools.util.js +0 -517
- package/dist/cljs-runtime/devtools.util.js.map +0 -1
- package/dist/cljs-runtime/devtools.version.js +0 -9
- package/dist/cljs-runtime/devtools.version.js.map +0 -1
- package/dist/cljs-runtime/goog.array.array.js +0 -659
- package/dist/cljs-runtime/goog.array.array.js.map +0 -9
- package/dist/cljs-runtime/goog.asserts.asserts.js +0 -133
- package/dist/cljs-runtime/goog.asserts.asserts.js.map +0 -9
- package/dist/cljs-runtime/goog.asserts.dom.js +0 -90
- package/dist/cljs-runtime/goog.asserts.dom.js.map +0 -9
- package/dist/cljs-runtime/goog.async.nexttick.js +0 -93
- package/dist/cljs-runtime/goog.async.nexttick.js.map +0 -9
- package/dist/cljs-runtime/goog.base.js +0 -1261
- package/dist/cljs-runtime/goog.base.js.map +0 -9
- package/dist/cljs-runtime/goog.collections.maps.js +0 -82
- package/dist/cljs-runtime/goog.collections.maps.js.map +0 -9
- package/dist/cljs-runtime/goog.debug.entrypointregistry.js +0 -44
- package/dist/cljs-runtime/goog.debug.entrypointregistry.js.map +0 -9
- package/dist/cljs-runtime/goog.debug.error.js +0 -30
- package/dist/cljs-runtime/goog.debug.error.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.asserts.js +0 -40
- package/dist/cljs-runtime/goog.dom.asserts.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.browserfeature.js +0 -21
- package/dist/cljs-runtime/goog.dom.browserfeature.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.dom.js +0 -1087
- package/dist/cljs-runtime/goog.dom.dom.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.element.js +0 -69
- package/dist/cljs-runtime/goog.dom.element.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.htmlelement.js +0 -7
- package/dist/cljs-runtime/goog.dom.htmlelement.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.nodetype.js +0 -6
- package/dist/cljs-runtime/goog.dom.nodetype.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.safe.js +0 -277
- package/dist/cljs-runtime/goog.dom.safe.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.tagname.js +0 -147
- package/dist/cljs-runtime/goog.dom.tagname.js.map +0 -9
- package/dist/cljs-runtime/goog.dom.tags.js +0 -10
- package/dist/cljs-runtime/goog.dom.tags.js.map +0 -9
- package/dist/cljs-runtime/goog.flags.flags.js +0 -12
- package/dist/cljs-runtime/goog.flags.flags.js.map +0 -9
- package/dist/cljs-runtime/goog.fs.blob.js +0 -38
- package/dist/cljs-runtime/goog.fs.blob.js.map +0 -9
- package/dist/cljs-runtime/goog.fs.url.js +0 -37
- package/dist/cljs-runtime/goog.fs.url.js.map +0 -9
- package/dist/cljs-runtime/goog.functions.functions.js +0 -211
- package/dist/cljs-runtime/goog.functions.functions.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safehtml.js +0 -321
- package/dist/cljs-runtime/goog.html.safehtml.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safescript.js +0 -65
- package/dist/cljs-runtime/goog.html.safescript.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safestyle.js +0 -175
- package/dist/cljs-runtime/goog.html.safestyle.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safestylesheet.js +0 -99
- package/dist/cljs-runtime/goog.html.safestylesheet.js.map +0 -9
- package/dist/cljs-runtime/goog.html.safeurl.js +0 -231
- package/dist/cljs-runtime/goog.html.safeurl.js.map +0 -9
- package/dist/cljs-runtime/goog.html.trustedresourceurl.js +0 -123
- package/dist/cljs-runtime/goog.html.trustedresourceurl.js.map +0 -9
- package/dist/cljs-runtime/goog.html.trustedtypes.js +0 -16
- package/dist/cljs-runtime/goog.html.trustedtypes.js.map +0 -9
- package/dist/cljs-runtime/goog.html.uncheckedconversions.js +0 -52
- package/dist/cljs-runtime/goog.html.uncheckedconversions.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.browser.js +0 -352
- package/dist/cljs-runtime/goog.labs.useragent.browser.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.engine.js +0 -73
- package/dist/cljs-runtime/goog.labs.useragent.engine.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js +0 -14
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js +0 -74
- package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.platform.js +0 -147
- package/dist/cljs-runtime/goog.labs.useragent.platform.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.useragent.js +0 -21
- package/dist/cljs-runtime/goog.labs.useragent.useragent.js.map +0 -9
- package/dist/cljs-runtime/goog.labs.useragent.util.js +0 -81
- package/dist/cljs-runtime/goog.labs.useragent.util.js.map +0 -9
- package/dist/cljs-runtime/goog.math.coordinate.js +0 -97
- package/dist/cljs-runtime/goog.math.coordinate.js.map +0 -9
- package/dist/cljs-runtime/goog.math.integer.js +0 -445
- package/dist/cljs-runtime/goog.math.integer.js.map +0 -9
- package/dist/cljs-runtime/goog.math.long.js +0 -437
- package/dist/cljs-runtime/goog.math.long.js.map +0 -9
- package/dist/cljs-runtime/goog.math.math.js +0 -158
- package/dist/cljs-runtime/goog.math.math.js.map +0 -9
- package/dist/cljs-runtime/goog.math.size.js +0 -76
- package/dist/cljs-runtime/goog.math.size.js.map +0 -9
- package/dist/cljs-runtime/goog.object.object.js +0 -284
- package/dist/cljs-runtime/goog.object.object.js.map +0 -9
- package/dist/cljs-runtime/goog.reflect.reflect.js +0 -32
- package/dist/cljs-runtime/goog.reflect.reflect.js.map +0 -9
- package/dist/cljs-runtime/goog.string.const.js +0 -35
- package/dist/cljs-runtime/goog.string.const.js.map +0 -9
- package/dist/cljs-runtime/goog.string.internal.js +0 -119
- package/dist/cljs-runtime/goog.string.internal.js.map +0 -9
- package/dist/cljs-runtime/goog.string.string.js +0 -462
- package/dist/cljs-runtime/goog.string.string.js.map +0 -9
- package/dist/cljs-runtime/goog.string.stringbuffer.js +0 -32
- package/dist/cljs-runtime/goog.string.stringbuffer.js.map +0 -9
- package/dist/cljs-runtime/goog.string.typedstring.js +0 -9
- package/dist/cljs-runtime/goog.string.typedstring.js.map +0 -9
- package/dist/cljs-runtime/goog.structs.structs.js +0 -199
- package/dist/cljs-runtime/goog.structs.structs.js.map +0 -9
- package/dist/cljs-runtime/goog.uri.uri.js +0 -628
- package/dist/cljs-runtime/goog.uri.uri.js.map +0 -9
- package/dist/cljs-runtime/goog.uri.utils.js +0 -326
- package/dist/cljs-runtime/goog.uri.utils.js.map +0 -9
- package/dist/cljs-runtime/goog.useragent.useragent.js +0 -139
- package/dist/cljs-runtime/goog.useragent.useragent.js.map +0 -9
- package/dist/cljs-runtime/iris_layout.components.entity_card_group.js +0 -202
- package/dist/cljs-runtime/iris_layout.components.entity_card_group.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.entity_tile.js +0 -327
- package/dist/cljs-runtime/iris_layout.components.entity_tile.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js +0 -33
- package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.resizer.js +0 -91
- package/dist/cljs-runtime/iris_layout.components.resizer.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.components.touch_drag.js +0 -385
- package/dist/cljs-runtime/iris_layout.components.touch_drag.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.core.js +0 -876
- package/dist/cljs-runtime/iris_layout.core.js.map +0 -1
- package/dist/cljs-runtime/iris_layout.layout.js +0 -328
- package/dist/cljs-runtime/iris_layout.layout.js.map +0 -1
- package/dist/cljs-runtime/reagent.core.js +0 -993
- package/dist/cljs-runtime/reagent.core.js.map +0 -1
- package/dist/cljs-runtime/reagent.debug.js +0 -75
- package/dist/cljs-runtime/reagent.debug.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.batching.js +0 -270
- package/dist/cljs-runtime/reagent.impl.batching.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.component.js +0 -758
- package/dist/cljs-runtime/reagent.impl.component.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.input.js +0 -175
- package/dist/cljs-runtime/reagent.impl.input.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.protocols.js +0 -99
- package/dist/cljs-runtime/reagent.impl.protocols.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.template.js +0 -660
- package/dist/cljs-runtime/reagent.impl.template.js.map +0 -1
- package/dist/cljs-runtime/reagent.impl.util.js +0 -748
- package/dist/cljs-runtime/reagent.impl.util.js.map +0 -1
- package/dist/cljs-runtime/reagent.ratom.js +0 -1668
- package/dist/cljs-runtime/reagent.ratom.js.map +0 -1
- package/dist/cljs-runtime/shadow.esm.esm_import$react.js +0 -5
- package/dist/cljs-runtime/shadow.module.iris-layout.append.js +0 -2
- package/dist/cljs-runtime/shadow.module.iris-layout.prepend.js +0 -2
|
@@ -1,1261 +0,0 @@
|
|
|
1
|
-
import "./cljs_env.js";
|
|
2
|
-
|
|
3
|
-
var COMPILED = false;
|
|
4
|
-
var goog = goog || {};
|
|
5
|
-
goog.global = globalThis;
|
|
6
|
-
goog.global.CLOSURE_UNCOMPILED_DEFINES;
|
|
7
|
-
goog.global.CLOSURE_DEFINES;
|
|
8
|
-
goog.exportPath_ = function(name, object, overwriteImplicit, objectToExportTo) {
|
|
9
|
-
var parts = name.split(".");
|
|
10
|
-
var cur = objectToExportTo || goog.global;
|
|
11
|
-
if (!(parts[0] in cur) && typeof cur.execScript != "undefined") {
|
|
12
|
-
cur.execScript("var " + parts[0]);
|
|
13
|
-
}
|
|
14
|
-
var part;
|
|
15
|
-
for (; parts.length && (part = parts.shift());) {
|
|
16
|
-
if (!parts.length && object !== undefined) {
|
|
17
|
-
if (!overwriteImplicit && goog.isObject(object) && goog.isObject(cur[part])) {
|
|
18
|
-
var prop;
|
|
19
|
-
for (prop in object) {
|
|
20
|
-
if (object.hasOwnProperty(prop)) {
|
|
21
|
-
cur[part][prop] = object[prop];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
} else {
|
|
25
|
-
cur[part] = object;
|
|
26
|
-
}
|
|
27
|
-
} else if (cur[part] && cur[part] !== Object.prototype[part]) {
|
|
28
|
-
cur = cur[part];
|
|
29
|
-
} else {
|
|
30
|
-
cur = cur[part] = {};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
goog.define = function(name, defaultValue) {
|
|
35
|
-
var value = defaultValue;
|
|
36
|
-
if (!COMPILED) {
|
|
37
|
-
var uncompiledDefines = goog.global.CLOSURE_UNCOMPILED_DEFINES;
|
|
38
|
-
var defines = goog.global.CLOSURE_DEFINES;
|
|
39
|
-
if (uncompiledDefines && uncompiledDefines.nodeType === undefined && Object.prototype.hasOwnProperty.call(uncompiledDefines, name)) {
|
|
40
|
-
value = uncompiledDefines[name];
|
|
41
|
-
} else if (defines && defines.nodeType === undefined && Object.prototype.hasOwnProperty.call(defines, name)) {
|
|
42
|
-
value = defines[name];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return value;
|
|
46
|
-
};
|
|
47
|
-
goog.FEATURESET_YEAR = goog.define("goog.FEATURESET_YEAR", 2012);
|
|
48
|
-
goog.DEBUG = goog.define("goog.DEBUG", true);
|
|
49
|
-
goog.LOCALE = goog.define("goog.LOCALE", "en");
|
|
50
|
-
goog.TRUSTED_SITE = goog.define("goog.TRUSTED_SITE", true);
|
|
51
|
-
goog.DISALLOW_TEST_ONLY_CODE = goog.define("goog.DISALLOW_TEST_ONLY_CODE", COMPILED && !goog.DEBUG);
|
|
52
|
-
goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = goog.define("goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING", false);
|
|
53
|
-
goog.provide = function(name) {
|
|
54
|
-
if (goog.isInModuleLoader_()) {
|
|
55
|
-
throw new Error("goog.provide cannot be used within a module.");
|
|
56
|
-
}
|
|
57
|
-
if (!COMPILED) {
|
|
58
|
-
if (goog.isProvided_(name)) {
|
|
59
|
-
throw new Error('Namespace "' + name + '" already declared.');
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
goog.constructNamespace_(name);
|
|
63
|
-
};
|
|
64
|
-
goog.constructNamespace_ = function(name, object, overwriteImplicit) {
|
|
65
|
-
if (!COMPILED) {
|
|
66
|
-
delete goog.implicitNamespaces_[name];
|
|
67
|
-
var namespace = name;
|
|
68
|
-
for (; namespace = namespace.substring(0, namespace.lastIndexOf("."));) {
|
|
69
|
-
if (goog.getObjectByName(namespace)) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
goog.implicitNamespaces_[namespace] = true;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
goog.exportPath_(name, object, overwriteImplicit);
|
|
76
|
-
};
|
|
77
|
-
goog.NONCE_PATTERN_ = /^[\w+/_-]+[=]{0,2}$/;
|
|
78
|
-
goog.getScriptNonce_ = function(opt_window) {
|
|
79
|
-
var doc = (opt_window || goog.global).document;
|
|
80
|
-
var script = doc.querySelector && doc.querySelector("script[nonce]");
|
|
81
|
-
if (script) {
|
|
82
|
-
var nonce = script["nonce"] || script.getAttribute("nonce");
|
|
83
|
-
if (nonce && goog.NONCE_PATTERN_.test(nonce)) {
|
|
84
|
-
return nonce;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
return "";
|
|
88
|
-
};
|
|
89
|
-
goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;
|
|
90
|
-
goog.module = function(name) {
|
|
91
|
-
if (typeof name !== "string" || !name || name.search(goog.VALID_MODULE_RE_) == -1) {
|
|
92
|
-
throw new Error("Invalid module identifier");
|
|
93
|
-
}
|
|
94
|
-
if (!goog.isInGoogModuleLoader_()) {
|
|
95
|
-
throw new Error("Module " + name + " has been loaded incorrectly. Note, " + "modules cannot be loaded as normal scripts. They require some kind of " + "pre-processing step. You're likely trying to load a module via a " + "script tag or as a part of a concatenated bundle without rewriting the " + "module. For more info see: " + "https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");
|
|
96
|
-
}
|
|
97
|
-
if (goog.moduleLoaderState_.moduleName) {
|
|
98
|
-
throw new Error("goog.module may only be called once per module.");
|
|
99
|
-
}
|
|
100
|
-
goog.moduleLoaderState_.moduleName = name;
|
|
101
|
-
if (!COMPILED) {
|
|
102
|
-
if (goog.isProvided_(name)) {
|
|
103
|
-
throw new Error('Namespace "' + name + '" already declared.');
|
|
104
|
-
}
|
|
105
|
-
delete goog.implicitNamespaces_[name];
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
goog.module.get = function(name) {
|
|
109
|
-
return goog.module.getInternal_(name);
|
|
110
|
-
};
|
|
111
|
-
goog.module.getInternal_ = function(name) {
|
|
112
|
-
if (!COMPILED) {
|
|
113
|
-
if (name in goog.loadedModules_) {
|
|
114
|
-
return goog.loadedModules_[name].exports;
|
|
115
|
-
} else if (!goog.implicitNamespaces_[name]) {
|
|
116
|
-
var ns = goog.getObjectByName(name);
|
|
117
|
-
return ns != null ? ns : null;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return null;
|
|
121
|
-
};
|
|
122
|
-
goog.ModuleType = {ES6:"es6", GOOG:"goog"};
|
|
123
|
-
goog.moduleLoaderState_ = null;
|
|
124
|
-
goog.isInModuleLoader_ = function() {
|
|
125
|
-
return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();
|
|
126
|
-
};
|
|
127
|
-
goog.isInGoogModuleLoader_ = function() {
|
|
128
|
-
return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;
|
|
129
|
-
};
|
|
130
|
-
goog.isInEs6ModuleLoader_ = function() {
|
|
131
|
-
var inLoader = !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6;
|
|
132
|
-
if (inLoader) {
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
var jscomp = goog.global["$jscomp"];
|
|
136
|
-
if (jscomp) {
|
|
137
|
-
if (typeof jscomp.getCurrentModulePath != "function") {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
return !!jscomp.getCurrentModulePath();
|
|
141
|
-
}
|
|
142
|
-
return false;
|
|
143
|
-
};
|
|
144
|
-
goog.module.declareLegacyNamespace = function() {
|
|
145
|
-
if (!COMPILED && !goog.isInGoogModuleLoader_()) {
|
|
146
|
-
throw new Error("goog.module.declareLegacyNamespace must be called from " + "within a goog.module");
|
|
147
|
-
}
|
|
148
|
-
if (!COMPILED && !goog.moduleLoaderState_.moduleName) {
|
|
149
|
-
throw new Error("goog.module must be called prior to " + "goog.module.declareLegacyNamespace.");
|
|
150
|
-
}
|
|
151
|
-
goog.moduleLoaderState_.declareLegacyNamespace = true;
|
|
152
|
-
};
|
|
153
|
-
goog.declareModuleId = function(namespace) {
|
|
154
|
-
if (!COMPILED) {
|
|
155
|
-
if (!goog.isInEs6ModuleLoader_()) {
|
|
156
|
-
throw new Error("goog.declareModuleId may only be called from " + "within an ES6 module");
|
|
157
|
-
}
|
|
158
|
-
if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) {
|
|
159
|
-
throw new Error("goog.declareModuleId may only be called once per module.");
|
|
160
|
-
}
|
|
161
|
-
if (namespace in goog.loadedModules_) {
|
|
162
|
-
throw new Error('Module with namespace "' + namespace + '" already exists.');
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if (goog.moduleLoaderState_) {
|
|
166
|
-
goog.moduleLoaderState_.moduleName = namespace;
|
|
167
|
-
} else {
|
|
168
|
-
var jscomp = goog.global["$jscomp"];
|
|
169
|
-
if (!jscomp || typeof jscomp.getCurrentModulePath != "function") {
|
|
170
|
-
throw new Error('Module with namespace "' + namespace + '" has been loaded incorrectly.');
|
|
171
|
-
}
|
|
172
|
-
var exports = jscomp.require(jscomp.getCurrentModulePath());
|
|
173
|
-
goog.loadedModules_[namespace] = {exports:exports, type:goog.ModuleType.ES6, moduleId:namespace};
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
goog.setTestOnly = function(opt_message) {
|
|
177
|
-
if (goog.DISALLOW_TEST_ONLY_CODE) {
|
|
178
|
-
opt_message = opt_message || "";
|
|
179
|
-
throw new Error("Importing test-only code into non-debug environment" + (opt_message ? ": " + opt_message : "."));
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
goog.forwardDeclare = function(name) {
|
|
183
|
-
};
|
|
184
|
-
goog.forwardDeclare("Document");
|
|
185
|
-
goog.forwardDeclare("HTMLScriptElement");
|
|
186
|
-
goog.forwardDeclare("XMLHttpRequest");
|
|
187
|
-
if (!COMPILED) {
|
|
188
|
-
goog.isProvided_ = function(name) {
|
|
189
|
-
return name in goog.loadedModules_ || !goog.implicitNamespaces_[name] && goog.getObjectByName(name) != null;
|
|
190
|
-
};
|
|
191
|
-
goog.implicitNamespaces_ = {"goog.module":true};
|
|
192
|
-
}
|
|
193
|
-
goog.getObjectByName = function(name, opt_obj) {
|
|
194
|
-
var parts = name.split(".");
|
|
195
|
-
var cur = opt_obj || goog.global;
|
|
196
|
-
var i = 0;
|
|
197
|
-
for (; i < parts.length; i++) {
|
|
198
|
-
cur = cur[parts[i]];
|
|
199
|
-
if (cur == null) {
|
|
200
|
-
return null;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return cur;
|
|
204
|
-
};
|
|
205
|
-
goog.addDependency = function(relPath, provides, requires, opt_loadFlags) {
|
|
206
|
-
if (!COMPILED && goog.DEPENDENCIES_ENABLED) {
|
|
207
|
-
goog.debugLoader_.addDependency(relPath, provides, requires, opt_loadFlags);
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
goog.ENABLE_DEBUG_LOADER = goog.define("goog.ENABLE_DEBUG_LOADER", true);
|
|
211
|
-
goog.logToConsole_ = function(msg) {
|
|
212
|
-
if (goog.global.console) {
|
|
213
|
-
goog.global.console["error"](msg);
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
goog.require = function(namespace) {
|
|
217
|
-
if (!COMPILED) {
|
|
218
|
-
if (goog.ENABLE_DEBUG_LOADER) {
|
|
219
|
-
goog.debugLoader_.requested(namespace);
|
|
220
|
-
}
|
|
221
|
-
if (goog.isProvided_(namespace)) {
|
|
222
|
-
if (goog.isInModuleLoader_()) {
|
|
223
|
-
return goog.module.getInternal_(namespace);
|
|
224
|
-
}
|
|
225
|
-
} else if (goog.ENABLE_DEBUG_LOADER) {
|
|
226
|
-
var moduleLoaderState = goog.moduleLoaderState_;
|
|
227
|
-
goog.moduleLoaderState_ = null;
|
|
228
|
-
try {
|
|
229
|
-
goog.debugLoader_.load_(namespace);
|
|
230
|
-
} finally {
|
|
231
|
-
goog.moduleLoaderState_ = moduleLoaderState;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
return null;
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
goog.requireType = function(namespace) {
|
|
238
|
-
return {};
|
|
239
|
-
};
|
|
240
|
-
goog.basePath = "";
|
|
241
|
-
goog.global.CLOSURE_BASE_PATH;
|
|
242
|
-
goog.global.CLOSURE_NO_DEPS;
|
|
243
|
-
goog.global.CLOSURE_IMPORT_SCRIPT;
|
|
244
|
-
goog.abstractMethod = function() {
|
|
245
|
-
throw new Error("unimplemented abstract method");
|
|
246
|
-
};
|
|
247
|
-
goog.addSingletonGetter = function(ctor) {
|
|
248
|
-
ctor.instance_ = undefined;
|
|
249
|
-
ctor.getInstance = function() {
|
|
250
|
-
if (ctor.instance_) {
|
|
251
|
-
return ctor.instance_;
|
|
252
|
-
}
|
|
253
|
-
if (goog.DEBUG) {
|
|
254
|
-
goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = ctor;
|
|
255
|
-
}
|
|
256
|
-
return ctor.instance_ = new ctor();
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
goog.instantiatedSingletons_ = [];
|
|
260
|
-
goog.LOAD_MODULE_USING_EVAL = goog.define("goog.LOAD_MODULE_USING_EVAL", true);
|
|
261
|
-
goog.SEAL_MODULE_EXPORTS = goog.define("goog.SEAL_MODULE_EXPORTS", goog.DEBUG);
|
|
262
|
-
goog.loadedModules_ = {};
|
|
263
|
-
goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;
|
|
264
|
-
goog.TRANSPILE = goog.define("goog.TRANSPILE", "detect");
|
|
265
|
-
goog.ASSUME_ES_MODULES_TRANSPILED = goog.define("goog.ASSUME_ES_MODULES_TRANSPILED", false);
|
|
266
|
-
goog.TRUSTED_TYPES_POLICY_NAME = goog.define("goog.TRUSTED_TYPES_POLICY_NAME", "goog");
|
|
267
|
-
goog.hasBadLetScoping = null;
|
|
268
|
-
goog.loadModule = function(moduleDef) {
|
|
269
|
-
var previousState = goog.moduleLoaderState_;
|
|
270
|
-
try {
|
|
271
|
-
goog.moduleLoaderState_ = {moduleName:"", declareLegacyNamespace:false, type:goog.ModuleType.GOOG};
|
|
272
|
-
var origExports = {};
|
|
273
|
-
var exports = origExports;
|
|
274
|
-
if (typeof moduleDef === "function") {
|
|
275
|
-
exports = moduleDef.call(undefined, exports);
|
|
276
|
-
} else if (typeof moduleDef === "string") {
|
|
277
|
-
exports = goog.loadModuleFromSource_.call(undefined, exports, moduleDef);
|
|
278
|
-
} else {
|
|
279
|
-
throw new Error("Invalid module definition");
|
|
280
|
-
}
|
|
281
|
-
var moduleName = goog.moduleLoaderState_.moduleName;
|
|
282
|
-
if (typeof moduleName === "string" && moduleName) {
|
|
283
|
-
if (goog.moduleLoaderState_.declareLegacyNamespace) {
|
|
284
|
-
var isDefaultExport = origExports !== exports;
|
|
285
|
-
goog.constructNamespace_(moduleName, exports, isDefaultExport);
|
|
286
|
-
} else if (goog.SEAL_MODULE_EXPORTS && Object.seal && typeof exports == "object" && exports != null) {
|
|
287
|
-
Object.seal(exports);
|
|
288
|
-
}
|
|
289
|
-
var data = {exports:exports, type:goog.ModuleType.GOOG, moduleId:goog.moduleLoaderState_.moduleName};
|
|
290
|
-
goog.loadedModules_[moduleName] = data;
|
|
291
|
-
} else {
|
|
292
|
-
throw new Error('Invalid module name "' + moduleName + '"');
|
|
293
|
-
}
|
|
294
|
-
} finally {
|
|
295
|
-
goog.moduleLoaderState_ = previousState;
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
goog.loadModuleFromSource_ = function(exports) {
|
|
299
|
-
eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(arguments[1]));
|
|
300
|
-
return exports;
|
|
301
|
-
};
|
|
302
|
-
goog.normalizePath_ = function(path) {
|
|
303
|
-
var components = path.split("/");
|
|
304
|
-
var i = 0;
|
|
305
|
-
for (; i < components.length;) {
|
|
306
|
-
if (components[i] == ".") {
|
|
307
|
-
components.splice(i, 1);
|
|
308
|
-
} else if (i && components[i] == ".." && components[i - 1] && components[i - 1] != "..") {
|
|
309
|
-
components.splice(--i, 2);
|
|
310
|
-
} else {
|
|
311
|
-
i++;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return components.join("/");
|
|
315
|
-
};
|
|
316
|
-
goog.global.CLOSURE_LOAD_FILE_SYNC;
|
|
317
|
-
goog.loadFileSync_ = function(src) {
|
|
318
|
-
if (goog.global.CLOSURE_LOAD_FILE_SYNC) {
|
|
319
|
-
return goog.global.CLOSURE_LOAD_FILE_SYNC(src);
|
|
320
|
-
} else {
|
|
321
|
-
try {
|
|
322
|
-
var xhr = new goog.global["XMLHttpRequest"]();
|
|
323
|
-
xhr.open("get", src, false);
|
|
324
|
-
xhr.send();
|
|
325
|
-
return xhr.status == 0 || xhr.status == 200 ? xhr.responseText : null;
|
|
326
|
-
} catch (err) {
|
|
327
|
-
return null;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
goog.typeOf = function(value) {
|
|
332
|
-
var s = typeof value;
|
|
333
|
-
if (s != "object") {
|
|
334
|
-
return s;
|
|
335
|
-
}
|
|
336
|
-
if (!value) {
|
|
337
|
-
return "null";
|
|
338
|
-
}
|
|
339
|
-
if (Array.isArray(value)) {
|
|
340
|
-
return "array";
|
|
341
|
-
}
|
|
342
|
-
return s;
|
|
343
|
-
};
|
|
344
|
-
goog.isArrayLike = function(val) {
|
|
345
|
-
var type = goog.typeOf(val);
|
|
346
|
-
return type == "array" || type == "object" && typeof val.length == "number";
|
|
347
|
-
};
|
|
348
|
-
goog.isDateLike = function(val) {
|
|
349
|
-
return goog.isObject(val) && typeof val.getFullYear == "function";
|
|
350
|
-
};
|
|
351
|
-
goog.isObject = function(val) {
|
|
352
|
-
var type = typeof val;
|
|
353
|
-
return type == "object" && val != null || type == "function";
|
|
354
|
-
};
|
|
355
|
-
goog.getUid = function(obj) {
|
|
356
|
-
return Object.prototype.hasOwnProperty.call(obj, goog.UID_PROPERTY_) && obj[goog.UID_PROPERTY_] || (obj[goog.UID_PROPERTY_] = ++goog.uidCounter_);
|
|
357
|
-
};
|
|
358
|
-
goog.hasUid = function(obj) {
|
|
359
|
-
return !!obj[goog.UID_PROPERTY_];
|
|
360
|
-
};
|
|
361
|
-
goog.removeUid = function(obj) {
|
|
362
|
-
if (obj !== null && "removeAttribute" in obj) {
|
|
363
|
-
obj.removeAttribute(goog.UID_PROPERTY_);
|
|
364
|
-
}
|
|
365
|
-
try {
|
|
366
|
-
delete obj[goog.UID_PROPERTY_];
|
|
367
|
-
} catch (ex) {
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
goog.UID_PROPERTY_ = "closure_uid_" + (Math.random() * 1e9 >>> 0);
|
|
371
|
-
goog.uidCounter_ = 0;
|
|
372
|
-
goog.cloneObject = function(obj) {
|
|
373
|
-
var type = goog.typeOf(obj);
|
|
374
|
-
if (type == "object" || type == "array") {
|
|
375
|
-
if (typeof obj.clone === "function") {
|
|
376
|
-
return obj.clone();
|
|
377
|
-
}
|
|
378
|
-
if (typeof Map !== "undefined" && obj instanceof Map) {
|
|
379
|
-
return new Map(obj);
|
|
380
|
-
} else if (typeof Set !== "undefined" && obj instanceof Set) {
|
|
381
|
-
return new Set(obj);
|
|
382
|
-
}
|
|
383
|
-
var clone = type == "array" ? [] : {};
|
|
384
|
-
var key;
|
|
385
|
-
for (key in obj) {
|
|
386
|
-
clone[key] = goog.cloneObject(obj[key]);
|
|
387
|
-
}
|
|
388
|
-
return clone;
|
|
389
|
-
}
|
|
390
|
-
return obj;
|
|
391
|
-
};
|
|
392
|
-
goog.bindNative_ = function(fn, selfObj, var_args) {
|
|
393
|
-
return fn.call.apply(fn.bind, arguments);
|
|
394
|
-
};
|
|
395
|
-
goog.bindJs_ = function(fn, selfObj, var_args) {
|
|
396
|
-
if (!fn) {
|
|
397
|
-
throw new Error();
|
|
398
|
-
}
|
|
399
|
-
if (arguments.length > 2) {
|
|
400
|
-
var boundArgs = Array.prototype.slice.call(arguments, 2);
|
|
401
|
-
return function() {
|
|
402
|
-
var newArgs = Array.prototype.slice.call(arguments);
|
|
403
|
-
Array.prototype.unshift.apply(newArgs, boundArgs);
|
|
404
|
-
return fn.apply(selfObj, newArgs);
|
|
405
|
-
};
|
|
406
|
-
} else {
|
|
407
|
-
return function() {
|
|
408
|
-
return fn.apply(selfObj, arguments);
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
goog.bind = function(fn, selfObj, var_args) {
|
|
413
|
-
if (Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1) {
|
|
414
|
-
goog.bind = goog.bindNative_;
|
|
415
|
-
} else {
|
|
416
|
-
goog.bind = goog.bindJs_;
|
|
417
|
-
}
|
|
418
|
-
return goog.bind.apply(null, arguments);
|
|
419
|
-
};
|
|
420
|
-
goog.partial = function(fn, var_args) {
|
|
421
|
-
var args = Array.prototype.slice.call(arguments, 1);
|
|
422
|
-
return function() {
|
|
423
|
-
var newArgs = args.slice();
|
|
424
|
-
newArgs.push.apply(newArgs, arguments);
|
|
425
|
-
return fn.apply(this, newArgs);
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
goog.now = function() {
|
|
429
|
-
return Date.now();
|
|
430
|
-
};
|
|
431
|
-
goog.globalEval = function(script) {
|
|
432
|
-
(0,eval)(script);
|
|
433
|
-
};
|
|
434
|
-
goog.cssNameMapping_;
|
|
435
|
-
goog.cssNameMappingStyle_;
|
|
436
|
-
goog.global.CLOSURE_CSS_NAME_MAP_FN;
|
|
437
|
-
goog.getCssName = function(className, opt_modifier) {
|
|
438
|
-
if (String(className).charAt(0) == ".") {
|
|
439
|
-
throw new Error('className passed in goog.getCssName must not start with ".".' + " You passed: " + className);
|
|
440
|
-
}
|
|
441
|
-
var getMapping = function(cssName) {
|
|
442
|
-
return goog.cssNameMapping_[cssName] || cssName;
|
|
443
|
-
};
|
|
444
|
-
var renameByParts = function(cssName) {
|
|
445
|
-
var parts = cssName.split("-");
|
|
446
|
-
var mapped = [];
|
|
447
|
-
var i = 0;
|
|
448
|
-
for (; i < parts.length; i++) {
|
|
449
|
-
mapped.push(getMapping(parts[i]));
|
|
450
|
-
}
|
|
451
|
-
return mapped.join("-");
|
|
452
|
-
};
|
|
453
|
-
var rename;
|
|
454
|
-
if (goog.cssNameMapping_) {
|
|
455
|
-
rename = goog.cssNameMappingStyle_ == "BY_WHOLE" ? getMapping : renameByParts;
|
|
456
|
-
} else {
|
|
457
|
-
rename = function(a) {
|
|
458
|
-
return a;
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
var result = opt_modifier ? className + "-" + rename(opt_modifier) : rename(className);
|
|
462
|
-
if (goog.global.CLOSURE_CSS_NAME_MAP_FN) {
|
|
463
|
-
return goog.global.CLOSURE_CSS_NAME_MAP_FN(result);
|
|
464
|
-
}
|
|
465
|
-
return result;
|
|
466
|
-
};
|
|
467
|
-
goog.setCssNameMapping = function(mapping, opt_style) {
|
|
468
|
-
goog.cssNameMapping_ = mapping;
|
|
469
|
-
goog.cssNameMappingStyle_ = opt_style;
|
|
470
|
-
};
|
|
471
|
-
goog.global.CLOSURE_CSS_NAME_MAPPING;
|
|
472
|
-
if (!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING) {
|
|
473
|
-
goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING;
|
|
474
|
-
}
|
|
475
|
-
goog.GetMsgOptions = function() {
|
|
476
|
-
};
|
|
477
|
-
goog.GetMsgOptions.prototype.html;
|
|
478
|
-
goog.GetMsgOptions.prototype.unescapeHtmlEntities;
|
|
479
|
-
goog.GetMsgOptions.prototype.original_code;
|
|
480
|
-
goog.GetMsgOptions.prototype.example;
|
|
481
|
-
goog.getMsg = function(str, opt_values, opt_options) {
|
|
482
|
-
if (opt_options && opt_options.html) {
|
|
483
|
-
str = str.replace(/</g, "\x26lt;");
|
|
484
|
-
}
|
|
485
|
-
if (opt_options && opt_options.unescapeHtmlEntities) {
|
|
486
|
-
str = str.replace(/</g, "\x3c").replace(/>/g, "\x3e").replace(/'/g, "'").replace(/"/g, '"').replace(/&/g, "\x26");
|
|
487
|
-
}
|
|
488
|
-
if (opt_values) {
|
|
489
|
-
str = str.replace(/\{\$([^}]+)}/g, function(match, key) {
|
|
490
|
-
return opt_values != null && key in opt_values ? opt_values[key] : match;
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
return str;
|
|
494
|
-
};
|
|
495
|
-
goog.getMsgWithFallback = function(a, b) {
|
|
496
|
-
return a;
|
|
497
|
-
};
|
|
498
|
-
goog.exportSymbol = function(publicPath, object, objectToExportTo) {
|
|
499
|
-
goog.exportPath_(publicPath, object, true, objectToExportTo);
|
|
500
|
-
};
|
|
501
|
-
goog.exportProperty = function(object, publicName, symbol) {
|
|
502
|
-
object[publicName] = symbol;
|
|
503
|
-
};
|
|
504
|
-
goog.inherits = function(childCtor, parentCtor) {
|
|
505
|
-
function tempCtor() {
|
|
506
|
-
}
|
|
507
|
-
tempCtor.prototype = parentCtor.prototype;
|
|
508
|
-
childCtor.superClass_ = parentCtor.prototype;
|
|
509
|
-
childCtor.prototype = new tempCtor();
|
|
510
|
-
childCtor.prototype.constructor = childCtor;
|
|
511
|
-
childCtor.base = function(me, methodName, var_args) {
|
|
512
|
-
var args = new Array(arguments.length - 2);
|
|
513
|
-
var i = 2;
|
|
514
|
-
for (; i < arguments.length; i++) {
|
|
515
|
-
args[i - 2] = arguments[i];
|
|
516
|
-
}
|
|
517
|
-
return parentCtor.prototype[methodName].apply(me, args);
|
|
518
|
-
};
|
|
519
|
-
};
|
|
520
|
-
goog.scope = function(fn) {
|
|
521
|
-
if (goog.isInModuleLoader_()) {
|
|
522
|
-
throw new Error("goog.scope is not supported within a module.");
|
|
523
|
-
}
|
|
524
|
-
fn.call(goog.global);
|
|
525
|
-
};
|
|
526
|
-
if (!COMPILED) {
|
|
527
|
-
goog.global["COMPILED"] = COMPILED;
|
|
528
|
-
}
|
|
529
|
-
goog.defineClass = function(superClass, def) {
|
|
530
|
-
var constructor = def.constructor;
|
|
531
|
-
var statics = def.statics;
|
|
532
|
-
if (!constructor || constructor == Object.prototype.constructor) {
|
|
533
|
-
constructor = function() {
|
|
534
|
-
throw new Error("cannot instantiate an interface (no constructor defined).");
|
|
535
|
-
};
|
|
536
|
-
}
|
|
537
|
-
var cls = goog.defineClass.createSealingConstructor_(constructor, superClass);
|
|
538
|
-
if (superClass) {
|
|
539
|
-
goog.inherits(cls, superClass);
|
|
540
|
-
}
|
|
541
|
-
delete def.constructor;
|
|
542
|
-
delete def.statics;
|
|
543
|
-
goog.defineClass.applyProperties_(cls.prototype, def);
|
|
544
|
-
if (statics != null) {
|
|
545
|
-
if (statics instanceof Function) {
|
|
546
|
-
statics(cls);
|
|
547
|
-
} else {
|
|
548
|
-
goog.defineClass.applyProperties_(cls, statics);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
return cls;
|
|
552
|
-
};
|
|
553
|
-
goog.defineClass.ClassDescriptor;
|
|
554
|
-
goog.defineClass.SEAL_CLASS_INSTANCES = goog.define("goog.defineClass.SEAL_CLASS_INSTANCES", goog.DEBUG);
|
|
555
|
-
goog.defineClass.createSealingConstructor_ = function(ctr, superClass) {
|
|
556
|
-
if (!goog.defineClass.SEAL_CLASS_INSTANCES) {
|
|
557
|
-
return ctr;
|
|
558
|
-
}
|
|
559
|
-
var wrappedCtr = function() {
|
|
560
|
-
var instance = ctr.apply(this, arguments) || this;
|
|
561
|
-
instance[goog.UID_PROPERTY_] = instance[goog.UID_PROPERTY_];
|
|
562
|
-
return instance;
|
|
563
|
-
};
|
|
564
|
-
return wrappedCtr;
|
|
565
|
-
};
|
|
566
|
-
goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
567
|
-
goog.defineClass.applyProperties_ = function(target, source) {
|
|
568
|
-
var key;
|
|
569
|
-
for (key in source) {
|
|
570
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
571
|
-
target[key] = source[key];
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
var i = 0;
|
|
575
|
-
for (; i < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; i++) {
|
|
576
|
-
key = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[i];
|
|
577
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
578
|
-
target[key] = source[key];
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
goog.identity_ = function(s) {
|
|
583
|
-
return s;
|
|
584
|
-
};
|
|
585
|
-
goog.createTrustedTypesPolicy = function(name) {
|
|
586
|
-
var policy = null;
|
|
587
|
-
var policyFactory = goog.global.trustedTypes;
|
|
588
|
-
if (!policyFactory || !policyFactory.createPolicy) {
|
|
589
|
-
return policy;
|
|
590
|
-
}
|
|
591
|
-
try {
|
|
592
|
-
policy = policyFactory.createPolicy(name, {createHTML:goog.identity_, createScript:goog.identity_, createScriptURL:goog.identity_});
|
|
593
|
-
} catch (e) {
|
|
594
|
-
goog.logToConsole_(e.message);
|
|
595
|
-
}
|
|
596
|
-
return policy;
|
|
597
|
-
};
|
|
598
|
-
if (!COMPILED && goog.DEPENDENCIES_ENABLED) {
|
|
599
|
-
goog.isEdge_ = function() {
|
|
600
|
-
var userAgent = goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : "";
|
|
601
|
-
var edgeRe = /Edge\/(\d+)(\.\d)*/i;
|
|
602
|
-
return !!userAgent.match(edgeRe);
|
|
603
|
-
};
|
|
604
|
-
goog.inHtmlDocument_ = function() {
|
|
605
|
-
var doc = goog.global.document;
|
|
606
|
-
return doc != null && "write" in doc;
|
|
607
|
-
};
|
|
608
|
-
goog.isDocumentLoading_ = function() {
|
|
609
|
-
var doc = goog.global.document;
|
|
610
|
-
return doc.attachEvent ? doc.readyState != "complete" : doc.readyState == "loading";
|
|
611
|
-
};
|
|
612
|
-
goog.findBasePath_ = function() {
|
|
613
|
-
if (goog.global.CLOSURE_BASE_PATH != undefined && typeof goog.global.CLOSURE_BASE_PATH === "string") {
|
|
614
|
-
goog.basePath = goog.global.CLOSURE_BASE_PATH;
|
|
615
|
-
return;
|
|
616
|
-
} else if (!goog.inHtmlDocument_()) {
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
var doc = goog.global.document;
|
|
620
|
-
var currentScript = doc.currentScript;
|
|
621
|
-
if (currentScript) {
|
|
622
|
-
var scripts = [currentScript];
|
|
623
|
-
} else {
|
|
624
|
-
scripts = doc.getElementsByTagName("SCRIPT");
|
|
625
|
-
}
|
|
626
|
-
var i = scripts.length - 1;
|
|
627
|
-
for (; i >= 0; --i) {
|
|
628
|
-
var script = scripts[i];
|
|
629
|
-
var src = script.src;
|
|
630
|
-
var qmark = src.lastIndexOf("?");
|
|
631
|
-
var l = qmark == -1 ? src.length : qmark;
|
|
632
|
-
if (src.slice(l - 7, l) == "base.js") {
|
|
633
|
-
goog.basePath = src.slice(0, l - 7);
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
goog.findBasePath_();
|
|
639
|
-
goog.protectScriptTag_ = function(str) {
|
|
640
|
-
return str.replace(/<\/(SCRIPT)/ig, "\\x3c/$1");
|
|
641
|
-
};
|
|
642
|
-
goog.DebugLoader_ = function() {
|
|
643
|
-
this.dependencies_ = {};
|
|
644
|
-
this.idToPath_ = {};
|
|
645
|
-
this.written_ = {};
|
|
646
|
-
this.loadingDeps_ = [];
|
|
647
|
-
this.depsToLoad_ = [];
|
|
648
|
-
this.paused_ = false;
|
|
649
|
-
this.factory_ = new goog.DependencyFactory();
|
|
650
|
-
this.deferredCallbacks_ = {};
|
|
651
|
-
this.deferredQueue_ = [];
|
|
652
|
-
};
|
|
653
|
-
goog.DebugLoader_.prototype.bootstrap = function(namespaces, callback) {
|
|
654
|
-
function resolve() {
|
|
655
|
-
if (cb) {
|
|
656
|
-
goog.global.setTimeout(cb, 0);
|
|
657
|
-
cb = null;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
var cb = callback;
|
|
661
|
-
if (!namespaces.length) {
|
|
662
|
-
resolve();
|
|
663
|
-
return;
|
|
664
|
-
}
|
|
665
|
-
var deps = [];
|
|
666
|
-
var i = 0;
|
|
667
|
-
for (; i < namespaces.length; i++) {
|
|
668
|
-
var path = this.getPathFromDeps_(namespaces[i]);
|
|
669
|
-
if (!path) {
|
|
670
|
-
throw new Error("Unregonized namespace: " + namespaces[i]);
|
|
671
|
-
}
|
|
672
|
-
deps.push(this.dependencies_[path]);
|
|
673
|
-
}
|
|
674
|
-
var require = goog.require;
|
|
675
|
-
var loaded = 0;
|
|
676
|
-
i = 0;
|
|
677
|
-
for (; i < namespaces.length; i++) {
|
|
678
|
-
require(namespaces[i]);
|
|
679
|
-
deps[i].onLoad(function() {
|
|
680
|
-
if (++loaded == namespaces.length) {
|
|
681
|
-
resolve();
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
goog.DebugLoader_.prototype.loadClosureDeps = function() {
|
|
687
|
-
var relPath = "deps.js";
|
|
688
|
-
this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + relPath), relPath, [], [], {}));
|
|
689
|
-
this.loadDeps_();
|
|
690
|
-
};
|
|
691
|
-
goog.DebugLoader_.prototype.requested = function(absPathOrId, opt_force) {
|
|
692
|
-
var path = this.getPathFromDeps_(absPathOrId);
|
|
693
|
-
if (path && (opt_force || this.areDepsLoaded_(this.dependencies_[path].requires))) {
|
|
694
|
-
var callback = this.deferredCallbacks_[path];
|
|
695
|
-
if (callback) {
|
|
696
|
-
delete this.deferredCallbacks_[path];
|
|
697
|
-
callback();
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
goog.DebugLoader_.prototype.setDependencyFactory = function(factory) {
|
|
702
|
-
this.factory_ = factory;
|
|
703
|
-
};
|
|
704
|
-
goog.DebugLoader_.prototype.load_ = function(namespace) {
|
|
705
|
-
if (!this.getPathFromDeps_(namespace)) {
|
|
706
|
-
var errorMessage = "goog.require could not find: " + namespace;
|
|
707
|
-
goog.logToConsole_(errorMessage);
|
|
708
|
-
} else {
|
|
709
|
-
var loader = this;
|
|
710
|
-
var deps = [];
|
|
711
|
-
var visit = function(namespace) {
|
|
712
|
-
var path = loader.getPathFromDeps_(namespace);
|
|
713
|
-
if (!path) {
|
|
714
|
-
throw new Error("Bad dependency path or symbol: " + namespace);
|
|
715
|
-
}
|
|
716
|
-
if (loader.written_[path]) {
|
|
717
|
-
return;
|
|
718
|
-
}
|
|
719
|
-
loader.written_[path] = true;
|
|
720
|
-
var dep = loader.dependencies_[path];
|
|
721
|
-
var i = 0;
|
|
722
|
-
for (; i < dep.requires.length; i++) {
|
|
723
|
-
if (!goog.isProvided_(dep.requires[i])) {
|
|
724
|
-
visit(dep.requires[i]);
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
deps.push(dep);
|
|
728
|
-
};
|
|
729
|
-
visit(namespace);
|
|
730
|
-
var wasLoading = !!this.depsToLoad_.length;
|
|
731
|
-
this.depsToLoad_ = this.depsToLoad_.concat(deps);
|
|
732
|
-
if (!this.paused_ && !wasLoading) {
|
|
733
|
-
this.loadDeps_();
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
|
-
goog.DebugLoader_.prototype.loadDeps_ = function() {
|
|
738
|
-
var loader = this;
|
|
739
|
-
var paused = this.paused_;
|
|
740
|
-
for (; this.depsToLoad_.length && !paused;) {
|
|
741
|
-
(function() {
|
|
742
|
-
var loadCallDone = false;
|
|
743
|
-
var dep = loader.depsToLoad_.shift();
|
|
744
|
-
var loaded = false;
|
|
745
|
-
loader.loading_(dep);
|
|
746
|
-
var controller = {pause:function() {
|
|
747
|
-
if (loadCallDone) {
|
|
748
|
-
throw new Error("Cannot call pause after the call to load.");
|
|
749
|
-
} else {
|
|
750
|
-
paused = true;
|
|
751
|
-
}
|
|
752
|
-
}, resume:function() {
|
|
753
|
-
if (loadCallDone) {
|
|
754
|
-
loader.resume_();
|
|
755
|
-
} else {
|
|
756
|
-
paused = false;
|
|
757
|
-
}
|
|
758
|
-
}, loaded:function() {
|
|
759
|
-
if (loaded) {
|
|
760
|
-
throw new Error("Double call to loaded.");
|
|
761
|
-
}
|
|
762
|
-
loaded = true;
|
|
763
|
-
loader.loaded_(dep);
|
|
764
|
-
}, pending:function() {
|
|
765
|
-
var pending = [];
|
|
766
|
-
var i = 0;
|
|
767
|
-
for (; i < loader.loadingDeps_.length; i++) {
|
|
768
|
-
pending.push(loader.loadingDeps_[i]);
|
|
769
|
-
}
|
|
770
|
-
return pending;
|
|
771
|
-
}, setModuleState:function(type) {
|
|
772
|
-
goog.moduleLoaderState_ = {type:type, moduleName:"", declareLegacyNamespace:false};
|
|
773
|
-
}, registerEs6ModuleExports:function(path, exports, opt_closureNamespace) {
|
|
774
|
-
if (opt_closureNamespace) {
|
|
775
|
-
goog.loadedModules_[opt_closureNamespace] = {exports:exports, type:goog.ModuleType.ES6, moduleId:opt_closureNamespace || ""};
|
|
776
|
-
}
|
|
777
|
-
}, registerGoogModuleExports:function(moduleId, exports) {
|
|
778
|
-
goog.loadedModules_[moduleId] = {exports:exports, type:goog.ModuleType.GOOG, moduleId:moduleId};
|
|
779
|
-
}, clearModuleState:function() {
|
|
780
|
-
goog.moduleLoaderState_ = null;
|
|
781
|
-
}, defer:function(callback) {
|
|
782
|
-
if (loadCallDone) {
|
|
783
|
-
throw new Error("Cannot register with defer after the call to load.");
|
|
784
|
-
}
|
|
785
|
-
loader.defer_(dep, callback);
|
|
786
|
-
}, areDepsLoaded:function() {
|
|
787
|
-
return loader.areDepsLoaded_(dep.requires);
|
|
788
|
-
}};
|
|
789
|
-
try {
|
|
790
|
-
dep.load(controller);
|
|
791
|
-
} finally {
|
|
792
|
-
loadCallDone = true;
|
|
793
|
-
}
|
|
794
|
-
})();
|
|
795
|
-
}
|
|
796
|
-
if (paused) {
|
|
797
|
-
this.pause_();
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
goog.DebugLoader_.prototype.pause_ = function() {
|
|
801
|
-
this.paused_ = true;
|
|
802
|
-
};
|
|
803
|
-
goog.DebugLoader_.prototype.resume_ = function() {
|
|
804
|
-
if (this.paused_) {
|
|
805
|
-
this.paused_ = false;
|
|
806
|
-
this.loadDeps_();
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
|
-
goog.DebugLoader_.prototype.loading_ = function(dep) {
|
|
810
|
-
this.loadingDeps_.push(dep);
|
|
811
|
-
};
|
|
812
|
-
goog.DebugLoader_.prototype.loaded_ = function(dep) {
|
|
813
|
-
var i = 0;
|
|
814
|
-
for (; i < this.loadingDeps_.length; i++) {
|
|
815
|
-
if (this.loadingDeps_[i] == dep) {
|
|
816
|
-
this.loadingDeps_.splice(i, 1);
|
|
817
|
-
break;
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
i = 0;
|
|
821
|
-
for (; i < this.deferredQueue_.length; i++) {
|
|
822
|
-
if (this.deferredQueue_[i] == dep.path) {
|
|
823
|
-
this.deferredQueue_.splice(i, 1);
|
|
824
|
-
break;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) {
|
|
828
|
-
for (; this.deferredQueue_.length;) {
|
|
829
|
-
this.requested(this.deferredQueue_.shift(), true);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
dep.loaded();
|
|
833
|
-
};
|
|
834
|
-
goog.DebugLoader_.prototype.areDepsLoaded_ = function(pathsOrIds) {
|
|
835
|
-
var i = 0;
|
|
836
|
-
for (; i < pathsOrIds.length; i++) {
|
|
837
|
-
var path = this.getPathFromDeps_(pathsOrIds[i]);
|
|
838
|
-
if (!path || !(path in this.deferredCallbacks_) && !goog.isProvided_(pathsOrIds[i])) {
|
|
839
|
-
return false;
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
return true;
|
|
843
|
-
};
|
|
844
|
-
goog.DebugLoader_.prototype.getPathFromDeps_ = function(absPathOrId) {
|
|
845
|
-
if (absPathOrId in this.idToPath_) {
|
|
846
|
-
return this.idToPath_[absPathOrId];
|
|
847
|
-
} else if (absPathOrId in this.dependencies_) {
|
|
848
|
-
return absPathOrId;
|
|
849
|
-
} else {
|
|
850
|
-
return null;
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
goog.DebugLoader_.prototype.defer_ = function(dependency, callback) {
|
|
854
|
-
this.deferredCallbacks_[dependency.path] = callback;
|
|
855
|
-
this.deferredQueue_.push(dependency.path);
|
|
856
|
-
};
|
|
857
|
-
goog.LoadController = function() {
|
|
858
|
-
};
|
|
859
|
-
goog.LoadController.prototype.pause = function() {
|
|
860
|
-
};
|
|
861
|
-
goog.LoadController.prototype.resume = function() {
|
|
862
|
-
};
|
|
863
|
-
goog.LoadController.prototype.loaded = function() {
|
|
864
|
-
};
|
|
865
|
-
goog.LoadController.prototype.pending = function() {
|
|
866
|
-
};
|
|
867
|
-
goog.LoadController.prototype.registerEs6ModuleExports = function(path, exports, opt_closureNamespace) {
|
|
868
|
-
};
|
|
869
|
-
goog.LoadController.prototype.setModuleState = function(type) {
|
|
870
|
-
};
|
|
871
|
-
goog.LoadController.prototype.clearModuleState = function() {
|
|
872
|
-
};
|
|
873
|
-
goog.LoadController.prototype.defer = function(callback) {
|
|
874
|
-
};
|
|
875
|
-
goog.LoadController.prototype.areDepsLoaded = function() {
|
|
876
|
-
};
|
|
877
|
-
goog.Dependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
878
|
-
this.path = path;
|
|
879
|
-
this.relativePath = relativePath;
|
|
880
|
-
this.provides = provides;
|
|
881
|
-
this.requires = requires;
|
|
882
|
-
this.loadFlags = loadFlags;
|
|
883
|
-
this.loaded_ = false;
|
|
884
|
-
this.loadCallbacks_ = [];
|
|
885
|
-
};
|
|
886
|
-
goog.Dependency.prototype.getPathName = function() {
|
|
887
|
-
var pathName = this.path;
|
|
888
|
-
var protocolIndex = pathName.indexOf("://");
|
|
889
|
-
if (protocolIndex >= 0) {
|
|
890
|
-
pathName = pathName.substring(protocolIndex + 3);
|
|
891
|
-
var slashIndex = pathName.indexOf("/");
|
|
892
|
-
if (slashIndex >= 0) {
|
|
893
|
-
pathName = pathName.substring(slashIndex + 1);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
return pathName;
|
|
897
|
-
};
|
|
898
|
-
goog.Dependency.prototype.onLoad = function(callback) {
|
|
899
|
-
if (this.loaded_) {
|
|
900
|
-
callback();
|
|
901
|
-
} else {
|
|
902
|
-
this.loadCallbacks_.push(callback);
|
|
903
|
-
}
|
|
904
|
-
};
|
|
905
|
-
goog.Dependency.prototype.loaded = function() {
|
|
906
|
-
this.loaded_ = true;
|
|
907
|
-
var callbacks = this.loadCallbacks_;
|
|
908
|
-
this.loadCallbacks_ = [];
|
|
909
|
-
var i = 0;
|
|
910
|
-
for (; i < callbacks.length; i++) {
|
|
911
|
-
callbacks[i]();
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
|
-
goog.Dependency.defer_ = false;
|
|
915
|
-
goog.Dependency.callbackMap_ = {};
|
|
916
|
-
goog.Dependency.registerCallback_ = function(callback) {
|
|
917
|
-
var key = Math.random().toString(32);
|
|
918
|
-
goog.Dependency.callbackMap_[key] = callback;
|
|
919
|
-
return key;
|
|
920
|
-
};
|
|
921
|
-
goog.Dependency.unregisterCallback_ = function(key) {
|
|
922
|
-
delete goog.Dependency.callbackMap_[key];
|
|
923
|
-
};
|
|
924
|
-
goog.Dependency.callback_ = function(key, var_args) {
|
|
925
|
-
if (key in goog.Dependency.callbackMap_) {
|
|
926
|
-
var callback = goog.Dependency.callbackMap_[key];
|
|
927
|
-
var args = [];
|
|
928
|
-
var i = 1;
|
|
929
|
-
for (; i < arguments.length; i++) {
|
|
930
|
-
args.push(arguments[i]);
|
|
931
|
-
}
|
|
932
|
-
callback.apply(undefined, args);
|
|
933
|
-
} else {
|
|
934
|
-
var errorMessage = "Callback key " + key + " does not exist (was base.js loaded more than once?).";
|
|
935
|
-
throw Error(errorMessage);
|
|
936
|
-
}
|
|
937
|
-
};
|
|
938
|
-
goog.Dependency.prototype.load = function(controller) {
|
|
939
|
-
if (goog.global.CLOSURE_IMPORT_SCRIPT) {
|
|
940
|
-
if (goog.global.CLOSURE_IMPORT_SCRIPT(this.path)) {
|
|
941
|
-
controller.loaded();
|
|
942
|
-
} else {
|
|
943
|
-
controller.pause();
|
|
944
|
-
}
|
|
945
|
-
return;
|
|
946
|
-
}
|
|
947
|
-
if (!goog.inHtmlDocument_()) {
|
|
948
|
-
goog.logToConsole_("Cannot use default debug loader outside of HTML documents.");
|
|
949
|
-
if (this.relativePath == "deps.js") {
|
|
950
|
-
goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, " + "or setting CLOSURE_NO_DEPS to true.");
|
|
951
|
-
controller.loaded();
|
|
952
|
-
} else {
|
|
953
|
-
controller.pause();
|
|
954
|
-
}
|
|
955
|
-
return;
|
|
956
|
-
}
|
|
957
|
-
var doc = goog.global.document;
|
|
958
|
-
if (doc.readyState == "complete" && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {
|
|
959
|
-
var isDeps = /\bdeps.js$/.test(this.path);
|
|
960
|
-
if (isDeps) {
|
|
961
|
-
controller.loaded();
|
|
962
|
-
return;
|
|
963
|
-
} else {
|
|
964
|
-
throw Error('Cannot write "' + this.path + '" after document load');
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
var nonce = goog.getScriptNonce_();
|
|
968
|
-
if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {
|
|
969
|
-
var key;
|
|
970
|
-
var callback = function(script) {
|
|
971
|
-
if (script.readyState && script.readyState != "complete") {
|
|
972
|
-
script.onload = callback;
|
|
973
|
-
return;
|
|
974
|
-
}
|
|
975
|
-
goog.Dependency.unregisterCallback_(key);
|
|
976
|
-
controller.loaded();
|
|
977
|
-
};
|
|
978
|
-
key = goog.Dependency.registerCallback_(callback);
|
|
979
|
-
var defer = goog.Dependency.defer_ ? " defer" : "";
|
|
980
|
-
var nonceAttr = nonce ? ' nonce\x3d"' + nonce + '"' : "";
|
|
981
|
-
var script = '\x3cscript src\x3d"' + this.path + '"' + nonceAttr + defer + ' id\x3d"script-' + key + '"\x3e\x3c/script\x3e';
|
|
982
|
-
script = script + ("\x3cscript" + nonceAttr + "\x3e");
|
|
983
|
-
if (goog.Dependency.defer_) {
|
|
984
|
-
script = script + ("document.getElementById('script-" + key + "').onload \x3d function() {\n" + " goog.Dependency.callback_('" + key + "', this);\n" + "};\n");
|
|
985
|
-
} else {
|
|
986
|
-
script = script + ("goog.Dependency.callback_('" + key + "', document.getElementById('script-" + key + "'));");
|
|
987
|
-
}
|
|
988
|
-
script = script + "\x3c/script\x3e";
|
|
989
|
-
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
990
|
-
} else {
|
|
991
|
-
var scriptEl = doc.createElement("script");
|
|
992
|
-
scriptEl.defer = goog.Dependency.defer_;
|
|
993
|
-
scriptEl.async = false;
|
|
994
|
-
if (nonce) {
|
|
995
|
-
scriptEl.nonce = nonce;
|
|
996
|
-
}
|
|
997
|
-
scriptEl.onload = function() {
|
|
998
|
-
scriptEl.onload = null;
|
|
999
|
-
controller.loaded();
|
|
1000
|
-
};
|
|
1001
|
-
scriptEl.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path) : this.path;
|
|
1002
|
-
doc.head.appendChild(scriptEl);
|
|
1003
|
-
}
|
|
1004
|
-
};
|
|
1005
|
-
goog.Es6ModuleDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1006
|
-
goog.Es6ModuleDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1007
|
-
};
|
|
1008
|
-
goog.inherits(goog.Es6ModuleDependency, goog.Dependency);
|
|
1009
|
-
goog.Es6ModuleDependency.prototype.load = function(controller) {
|
|
1010
|
-
function write(src, contents) {
|
|
1011
|
-
var nonceAttr = "";
|
|
1012
|
-
var nonce = goog.getScriptNonce_();
|
|
1013
|
-
if (nonce) {
|
|
1014
|
-
nonceAttr = ' nonce\x3d"' + nonce + '"';
|
|
1015
|
-
}
|
|
1016
|
-
if (contents) {
|
|
1017
|
-
var script = '\x3cscript type\x3d"module" crossorigin' + nonceAttr + "\x3e" + contents + "\x3c/" + "script\x3e";
|
|
1018
|
-
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
1019
|
-
} else {
|
|
1020
|
-
script = '\x3cscript type\x3d"module" crossorigin src\x3d"' + src + '"' + nonceAttr + "\x3e\x3c/" + "script\x3e";
|
|
1021
|
-
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
function append(src, contents) {
|
|
1025
|
-
var scriptEl = doc.createElement("script");
|
|
1026
|
-
scriptEl.defer = true;
|
|
1027
|
-
scriptEl.async = false;
|
|
1028
|
-
scriptEl.type = "module";
|
|
1029
|
-
scriptEl.setAttribute("crossorigin", true);
|
|
1030
|
-
var nonce = goog.getScriptNonce_();
|
|
1031
|
-
if (nonce) {
|
|
1032
|
-
scriptEl.nonce = nonce;
|
|
1033
|
-
}
|
|
1034
|
-
if (contents) {
|
|
1035
|
-
scriptEl.text = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScript(contents) : contents;
|
|
1036
|
-
} else {
|
|
1037
|
-
scriptEl.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(src) : src;
|
|
1038
|
-
}
|
|
1039
|
-
doc.head.appendChild(scriptEl);
|
|
1040
|
-
}
|
|
1041
|
-
if (goog.global.CLOSURE_IMPORT_SCRIPT) {
|
|
1042
|
-
if (goog.global.CLOSURE_IMPORT_SCRIPT(this.path)) {
|
|
1043
|
-
controller.loaded();
|
|
1044
|
-
} else {
|
|
1045
|
-
controller.pause();
|
|
1046
|
-
}
|
|
1047
|
-
return;
|
|
1048
|
-
}
|
|
1049
|
-
if (!goog.inHtmlDocument_()) {
|
|
1050
|
-
goog.logToConsole_("Cannot use default debug loader outside of HTML documents.");
|
|
1051
|
-
controller.pause();
|
|
1052
|
-
return;
|
|
1053
|
-
}
|
|
1054
|
-
var doc = goog.global.document;
|
|
1055
|
-
var dep = this;
|
|
1056
|
-
var create;
|
|
1057
|
-
if (goog.isDocumentLoading_()) {
|
|
1058
|
-
create = write;
|
|
1059
|
-
goog.Dependency.defer_ = true;
|
|
1060
|
-
} else {
|
|
1061
|
-
create = append;
|
|
1062
|
-
}
|
|
1063
|
-
var beforeKey = goog.Dependency.registerCallback_(function() {
|
|
1064
|
-
goog.Dependency.unregisterCallback_(beforeKey);
|
|
1065
|
-
controller.setModuleState(goog.ModuleType.ES6);
|
|
1066
|
-
});
|
|
1067
|
-
create(undefined, 'goog.Dependency.callback_("' + beforeKey + '")');
|
|
1068
|
-
create(this.path, undefined);
|
|
1069
|
-
var registerKey = goog.Dependency.registerCallback_(function(exports) {
|
|
1070
|
-
goog.Dependency.unregisterCallback_(registerKey);
|
|
1071
|
-
controller.registerEs6ModuleExports(dep.path, exports, goog.moduleLoaderState_.moduleName);
|
|
1072
|
-
});
|
|
1073
|
-
create(undefined, 'import * as m from "' + this.path + '"; goog.Dependency.callback_("' + registerKey + '", m)');
|
|
1074
|
-
var afterKey = goog.Dependency.registerCallback_(function() {
|
|
1075
|
-
goog.Dependency.unregisterCallback_(afterKey);
|
|
1076
|
-
controller.clearModuleState();
|
|
1077
|
-
controller.loaded();
|
|
1078
|
-
});
|
|
1079
|
-
create(undefined, 'goog.Dependency.callback_("' + afterKey + '")');
|
|
1080
|
-
};
|
|
1081
|
-
goog.TransformedDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1082
|
-
goog.TransformedDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1083
|
-
this.contents_ = null;
|
|
1084
|
-
this.lazyFetch_ = !goog.inHtmlDocument_() || !("noModule" in goog.global.document.createElement("script"));
|
|
1085
|
-
};
|
|
1086
|
-
goog.inherits(goog.TransformedDependency, goog.Dependency);
|
|
1087
|
-
goog.TransformedDependency.prototype.load = function(controller) {
|
|
1088
|
-
function fetch() {
|
|
1089
|
-
dep.contents_ = goog.loadFileSync_(dep.path);
|
|
1090
|
-
if (dep.contents_) {
|
|
1091
|
-
dep.contents_ = dep.transform(dep.contents_);
|
|
1092
|
-
if (dep.contents_) {
|
|
1093
|
-
dep.contents_ += "\n//# sourceURL\x3d" + dep.path;
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
function load() {
|
|
1098
|
-
if (dep.lazyFetch_) {
|
|
1099
|
-
fetch();
|
|
1100
|
-
}
|
|
1101
|
-
if (!dep.contents_) {
|
|
1102
|
-
return;
|
|
1103
|
-
}
|
|
1104
|
-
if (isEs6) {
|
|
1105
|
-
controller.setModuleState(goog.ModuleType.ES6);
|
|
1106
|
-
}
|
|
1107
|
-
var namespace;
|
|
1108
|
-
try {
|
|
1109
|
-
var contents = dep.contents_;
|
|
1110
|
-
dep.contents_ = null;
|
|
1111
|
-
goog.globalEval(goog.CLOSURE_EVAL_PREFILTER_.createScript(contents));
|
|
1112
|
-
if (isEs6) {
|
|
1113
|
-
namespace = goog.moduleLoaderState_.moduleName;
|
|
1114
|
-
}
|
|
1115
|
-
} finally {
|
|
1116
|
-
if (isEs6) {
|
|
1117
|
-
controller.clearModuleState();
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
if (isEs6) {
|
|
1121
|
-
goog.global["$jscomp"]["require"]["ensure"]([dep.getPathName()], function() {
|
|
1122
|
-
controller.registerEs6ModuleExports(dep.path, goog.global["$jscomp"]["require"](dep.getPathName()), namespace);
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
controller.loaded();
|
|
1126
|
-
}
|
|
1127
|
-
function fetchInOwnScriptThenLoad() {
|
|
1128
|
-
var doc = goog.global.document;
|
|
1129
|
-
var key = goog.Dependency.registerCallback_(function() {
|
|
1130
|
-
goog.Dependency.unregisterCallback_(key);
|
|
1131
|
-
load();
|
|
1132
|
-
});
|
|
1133
|
-
var nonce = goog.getScriptNonce_();
|
|
1134
|
-
var nonceAttr = nonce ? ' nonce\x3d"' + nonce + '"' : "";
|
|
1135
|
-
var script = "\x3cscript" + nonceAttr + "\x3e" + goog.protectScriptTag_('goog.Dependency.callback_("' + key + '");') + "\x3c/" + "script\x3e";
|
|
1136
|
-
doc.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(script) : script);
|
|
1137
|
-
}
|
|
1138
|
-
var dep = this;
|
|
1139
|
-
if (goog.global.CLOSURE_IMPORT_SCRIPT) {
|
|
1140
|
-
fetch();
|
|
1141
|
-
if (this.contents_ && goog.global.CLOSURE_IMPORT_SCRIPT("", this.contents_)) {
|
|
1142
|
-
this.contents_ = null;
|
|
1143
|
-
controller.loaded();
|
|
1144
|
-
} else {
|
|
1145
|
-
controller.pause();
|
|
1146
|
-
}
|
|
1147
|
-
return;
|
|
1148
|
-
}
|
|
1149
|
-
var isEs6 = this.loadFlags["module"] == goog.ModuleType.ES6;
|
|
1150
|
-
if (!this.lazyFetch_) {
|
|
1151
|
-
fetch();
|
|
1152
|
-
}
|
|
1153
|
-
var anythingElsePending = controller.pending().length > 1;
|
|
1154
|
-
var needsAsyncLoading = goog.Dependency.defer_ && (anythingElsePending || goog.isDocumentLoading_());
|
|
1155
|
-
if (needsAsyncLoading) {
|
|
1156
|
-
controller.defer(function() {
|
|
1157
|
-
load();
|
|
1158
|
-
});
|
|
1159
|
-
return;
|
|
1160
|
-
}
|
|
1161
|
-
var doc = goog.global.document;
|
|
1162
|
-
var isInternetExplorerOrEdge = goog.inHtmlDocument_() && ("ActiveXObject" in goog.global || goog.isEdge_());
|
|
1163
|
-
if (isEs6 && goog.inHtmlDocument_() && goog.isDocumentLoading_() && !isInternetExplorerOrEdge) {
|
|
1164
|
-
goog.Dependency.defer_ = true;
|
|
1165
|
-
controller.pause();
|
|
1166
|
-
var oldCallback = doc.onreadystatechange;
|
|
1167
|
-
doc.onreadystatechange = function() {
|
|
1168
|
-
if (doc.readyState == "interactive") {
|
|
1169
|
-
doc.onreadystatechange = oldCallback;
|
|
1170
|
-
load();
|
|
1171
|
-
controller.resume();
|
|
1172
|
-
}
|
|
1173
|
-
if (typeof oldCallback === "function") {
|
|
1174
|
-
oldCallback.apply(undefined, arguments);
|
|
1175
|
-
}
|
|
1176
|
-
};
|
|
1177
|
-
} else {
|
|
1178
|
-
if (!goog.inHtmlDocument_() || !goog.isDocumentLoading_()) {
|
|
1179
|
-
load();
|
|
1180
|
-
} else {
|
|
1181
|
-
fetchInOwnScriptThenLoad();
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
goog.TransformedDependency.prototype.transform = function(contents) {
|
|
1186
|
-
};
|
|
1187
|
-
goog.PreTranspiledEs6ModuleDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1188
|
-
goog.PreTranspiledEs6ModuleDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1189
|
-
};
|
|
1190
|
-
goog.inherits(goog.PreTranspiledEs6ModuleDependency, goog.TransformedDependency);
|
|
1191
|
-
goog.PreTranspiledEs6ModuleDependency.prototype.transform = function(contents) {
|
|
1192
|
-
return contents;
|
|
1193
|
-
};
|
|
1194
|
-
goog.GoogModuleDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1195
|
-
goog.GoogModuleDependency.base(this, "constructor", path, relativePath, provides, requires, loadFlags);
|
|
1196
|
-
};
|
|
1197
|
-
goog.inherits(goog.GoogModuleDependency, goog.TransformedDependency);
|
|
1198
|
-
goog.GoogModuleDependency.prototype.transform = function(contents) {
|
|
1199
|
-
if (!goog.LOAD_MODULE_USING_EVAL || goog.global.JSON === undefined) {
|
|
1200
|
-
return "" + "goog.loadModule(function(exports) {" + '"use strict";' + contents + "\n" + ";return exports" + "});" + "\n//# sourceURL\x3d" + this.path + "\n";
|
|
1201
|
-
} else {
|
|
1202
|
-
return "" + "goog.loadModule(" + goog.global.JSON.stringify(contents + "\n//# sourceURL\x3d" + this.path + "\n") + ");";
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
|
-
goog.DebugLoader_.prototype.addDependency = function(relPath, provides, requires, opt_loadFlags) {
|
|
1206
|
-
provides = provides || [];
|
|
1207
|
-
relPath = relPath.replace(/\\/g, "/");
|
|
1208
|
-
var path = goog.normalizePath_(goog.basePath + relPath);
|
|
1209
|
-
if (!opt_loadFlags || typeof opt_loadFlags === "boolean") {
|
|
1210
|
-
opt_loadFlags = opt_loadFlags ? {"module":goog.ModuleType.GOOG} : {};
|
|
1211
|
-
}
|
|
1212
|
-
var dep = this.factory_.createDependency(path, relPath, provides, requires, opt_loadFlags);
|
|
1213
|
-
this.dependencies_[path] = dep;
|
|
1214
|
-
var i = 0;
|
|
1215
|
-
for (; i < provides.length; i++) {
|
|
1216
|
-
this.idToPath_[provides[i]] = path;
|
|
1217
|
-
}
|
|
1218
|
-
this.idToPath_[relPath] = path;
|
|
1219
|
-
};
|
|
1220
|
-
goog.DependencyFactory = function() {
|
|
1221
|
-
};
|
|
1222
|
-
goog.DependencyFactory.prototype.createDependency = function(path, relativePath, provides, requires, loadFlags) {
|
|
1223
|
-
if (loadFlags["module"] == goog.ModuleType.GOOG) {
|
|
1224
|
-
return new goog.GoogModuleDependency(path, relativePath, provides, requires, loadFlags);
|
|
1225
|
-
} else {
|
|
1226
|
-
if (loadFlags["module"] == goog.ModuleType.ES6) {
|
|
1227
|
-
if (goog.ASSUME_ES_MODULES_TRANSPILED) {
|
|
1228
|
-
return new goog.PreTranspiledEs6ModuleDependency(path, relativePath, provides, requires, loadFlags);
|
|
1229
|
-
} else {
|
|
1230
|
-
return new goog.Es6ModuleDependency(path, relativePath, provides, requires, loadFlags);
|
|
1231
|
-
}
|
|
1232
|
-
} else {
|
|
1233
|
-
return new goog.Dependency(path, relativePath, provides, requires, loadFlags);
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
|
-
goog.debugLoader_ = new goog.DebugLoader_();
|
|
1238
|
-
goog.loadClosureDeps = function() {
|
|
1239
|
-
goog.debugLoader_.loadClosureDeps();
|
|
1240
|
-
};
|
|
1241
|
-
goog.setDependencyFactory = function(factory) {
|
|
1242
|
-
goog.debugLoader_.setDependencyFactory(factory);
|
|
1243
|
-
};
|
|
1244
|
-
goog.TRUSTED_TYPES_POLICY_ = goog.TRUSTED_TYPES_POLICY_NAME ? goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME + "#base") : null;
|
|
1245
|
-
if (!goog.global.CLOSURE_NO_DEPS) {
|
|
1246
|
-
goog.debugLoader_.loadClosureDeps();
|
|
1247
|
-
}
|
|
1248
|
-
goog.bootstrap = function(namespaces, callback) {
|
|
1249
|
-
goog.debugLoader_.bootstrap(namespaces, callback);
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
if (!COMPILED) {
|
|
1253
|
-
var isChrome87 = false;
|
|
1254
|
-
try {
|
|
1255
|
-
isChrome87 = eval(goog.global.trustedTypes.emptyScript) !== goog.global.trustedTypes.emptyScript;
|
|
1256
|
-
} catch (err) {
|
|
1257
|
-
}
|
|
1258
|
-
goog.CLOSURE_EVAL_PREFILTER_ = goog.global.trustedTypes && isChrome87 && goog.createTrustedTypesPolicy("goog#base#devonly#eval") || {createScript:goog.identity_};
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
//# sourceMappingURL=goog.base.js.map
|