closure 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +12 -12
- data/closure-compiler/README.md +503 -0
- data/closure-compiler/compiler.jar +0 -0
- data/closure-templates/SoyToJsSrcCompiler.jar +0 -0
- data/closure-templates/soyutils.js +1593 -469
- data/closure-templates/soyutils_usegoog.js +1105 -223
- data/docs/SCRIPT.md +5 -5
- data/docs/closure/Closure/BeanShell.html +63 -54
- data/docs/closure/Closure/Compiler/Compilation.html +124 -107
- data/docs/closure/Closure/Compiler/Error.html +28 -21
- data/docs/closure/Closure/Compiler.html +81 -76
- data/docs/closure/Closure/FileResponse.html +113 -98
- data/docs/closure/Closure/Goog.html +264 -253
- data/docs/closure/Closure/Middleware.html +66 -55
- data/docs/closure/Closure/Script/NotFound.html +28 -21
- data/docs/closure/Closure/Script/RenderStackOverflow.html +28 -21
- data/docs/closure/Closure/Script.html +212 -203
- data/docs/closure/Closure/Server.html +100 -90
- data/docs/closure/Closure/ShowExceptions.html +63 -52
- data/docs/closure/Closure/Sources.html +254 -246
- data/docs/closure/Closure/Templates/Error.html +28 -21
- data/docs/closure/Closure/Templates.html +88 -80
- data/docs/closure/Closure.html +181 -163
- data/docs/closure/_index.html +42 -38
- data/docs/closure/class_list.html +19 -8
- data/docs/closure/css/full_list.css +4 -2
- data/docs/closure/css/style.css +68 -51
- data/docs/closure/file.LICENSE.html +24 -217
- data/docs/closure/file.README.html +54 -47
- data/docs/closure/file_list.html +20 -9
- data/docs/closure/frames.html +18 -5
- data/docs/closure/index.html +54 -47
- data/docs/closure/js/app.js +60 -46
- data/docs/closure/js/full_list.js +24 -10
- data/docs/closure/js/jquery.js +4 -16
- data/docs/closure/method_list.html +74 -175
- data/docs/closure/top-level-namespace.html +29 -20
- data/lib/closure/compiler.rb +32 -42
- data/lib/closure/goog.rb +12 -12
- data/lib/closure/server.rb +6 -6
- data/lib/closure/show_exceptions.rb +15 -12
- data/lib/closure/version.rb +1 -1
- data/scripts/git.erb +183 -0
- data/scripts/hello/compiler.js.erb +2 -2
- data/scripts/hello/hello.js +1 -1
- data/scripts/hello/index.erb +6 -0
- data/scripts/hello/legume.js +12 -7
- data/scripts/index.erb +15 -13
- data/scripts/modules/compiler.js.erb +3 -3
- data/scripts/modules/compiler_build.js +3 -3
- data/scripts/modules/compiler_build.map +13 -12159
- data/scripts/modules/compiler_build_api.js +1 -1
- data/scripts/modules/compiler_build_app.js +74 -71
- data/scripts/modules/compiler_build_settings.js +2 -2
- data/scripts/modules/index.erb +5 -3
- data/scripts/modules/settings.js +1 -1
- data/scripts/svn.erb +11 -11
- data/scripts/welcome.erb +7 -6
- metadata +65 -81
- data/closure-compiler/README +0 -292
- data/scripts/hello/compiler_build.js +0 -5
- data/scripts/hello/compiler_build.map +0 -748
- data/scripts/hello/compiler_debug.js +0 -119
- data/scripts/modules/compiler_debug.js +0 -6
- data/scripts/modules/compiler_debug_api.js +0 -11
- data/scripts/modules/compiler_debug_app.js +0 -2414
- data/scripts/modules/compiler_debug_settings.js +0 -39
- data/scripts/rails/index.erb +0 -46
- data/scripts/rails/rails_ujs.js +0 -96
@@ -1,2414 +0,0 @@
|
|
1
|
-
function $JSCompiler_alias_THROW$$($jscomp_throw_param$$) {
|
2
|
-
throw $jscomp_throw_param$$;
|
3
|
-
}
|
4
|
-
var $JSCompiler_alias_VOID$$ = void 0, $JSCompiler_alias_NULL$$ = null;
|
5
|
-
function $JSCompiler_get$$($JSCompiler_get_name$$) {
|
6
|
-
return function() {
|
7
|
-
return this[$JSCompiler_get_name$$]
|
8
|
-
}
|
9
|
-
}
|
10
|
-
var $JSCompiler_prototypeAlias$$, $JSCompiler_stubMap$$ = [];
|
11
|
-
function $JSCompiler_stubMethod$$($JSCompiler_stubMethod_id$$) {
|
12
|
-
return function() {
|
13
|
-
return $JSCompiler_stubMap$$[$JSCompiler_stubMethod_id$$].apply(this, arguments)
|
14
|
-
}
|
15
|
-
}
|
16
|
-
function $JSCompiler_unstubMethod$$($JSCompiler_unstubMethod_id$$, $JSCompiler_unstubMethod_body$$) {
|
17
|
-
return $JSCompiler_stubMap$$[$JSCompiler_unstubMethod_id$$] = $JSCompiler_unstubMethod_body$$
|
18
|
-
}
|
19
|
-
var $goog$$ = $goog$$ || {}, $goog$global$$ = this;
|
20
|
-
function $goog$exportPath_$$($name$$55$$, $opt_object$$) {
|
21
|
-
var $parts$$ = $name$$55$$.split("."), $cur$$ = $goog$global$$;
|
22
|
-
!($parts$$[0] in $cur$$) && $cur$$.execScript && $cur$$.execScript("var " + $parts$$[0]);
|
23
|
-
for(var $part$$;$parts$$.length && ($part$$ = $parts$$.shift());) {
|
24
|
-
!$parts$$.length && $opt_object$$ !== $JSCompiler_alias_VOID$$ ? $cur$$[$part$$] = $opt_object$$ : $cur$$ = $cur$$[$part$$] ? $cur$$[$part$$] : $cur$$[$part$$] = {}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
function $goog$getObjectByName$$($name$$56_parts$$1$$) {
|
28
|
-
for(var $name$$56_parts$$1$$ = $name$$56_parts$$1$$.split("."), $cur$$1$$ = $goog$global$$, $part$$1$$;$part$$1$$ = $name$$56_parts$$1$$.shift();) {
|
29
|
-
if($cur$$1$$[$part$$1$$] != $JSCompiler_alias_NULL$$) {
|
30
|
-
$cur$$1$$ = $cur$$1$$[$part$$1$$]
|
31
|
-
}else {
|
32
|
-
return $JSCompiler_alias_NULL$$
|
33
|
-
}
|
34
|
-
}
|
35
|
-
return $cur$$1$$
|
36
|
-
}
|
37
|
-
function $goog$nullFunction$$() {
|
38
|
-
}
|
39
|
-
function $goog$addSingletonGetter$$($ctor$$) {
|
40
|
-
$ctor$$.$getInstance$ = function $$ctor$$$$getInstance$$() {
|
41
|
-
return $ctor$$.$instance_$ || ($ctor$$.$instance_$ = new $ctor$$)
|
42
|
-
}
|
43
|
-
}
|
44
|
-
function $goog$typeOf$$($value$$37$$) {
|
45
|
-
var $s$$2$$ = typeof $value$$37$$;
|
46
|
-
if($s$$2$$ == "object") {
|
47
|
-
if($value$$37$$) {
|
48
|
-
if($value$$37$$ instanceof Array) {
|
49
|
-
return"array"
|
50
|
-
}else {
|
51
|
-
if($value$$37$$ instanceof Object) {
|
52
|
-
return $s$$2$$
|
53
|
-
}
|
54
|
-
}
|
55
|
-
var $className$$1$$ = Object.prototype.toString.call($value$$37$$);
|
56
|
-
if($className$$1$$ == "[object Window]") {
|
57
|
-
return"object"
|
58
|
-
}
|
59
|
-
if($className$$1$$ == "[object Array]" || typeof $value$$37$$.length == "number" && typeof $value$$37$$.splice != "undefined" && typeof $value$$37$$.propertyIsEnumerable != "undefined" && !$value$$37$$.propertyIsEnumerable("splice")) {
|
60
|
-
return"array"
|
61
|
-
}
|
62
|
-
if($className$$1$$ == "[object Function]" || typeof $value$$37$$.call != "undefined" && typeof $value$$37$$.propertyIsEnumerable != "undefined" && !$value$$37$$.propertyIsEnumerable("call")) {
|
63
|
-
return"function"
|
64
|
-
}
|
65
|
-
}else {
|
66
|
-
return"null"
|
67
|
-
}
|
68
|
-
}else {
|
69
|
-
if($s$$2$$ == "function" && typeof $value$$37$$.call == "undefined") {
|
70
|
-
return"object"
|
71
|
-
}
|
72
|
-
}
|
73
|
-
return $s$$2$$
|
74
|
-
}
|
75
|
-
function $goog$isArray$$($val$$3$$) {
|
76
|
-
return $goog$typeOf$$($val$$3$$) == "array"
|
77
|
-
}
|
78
|
-
function $goog$isArrayLike$$($val$$4$$) {
|
79
|
-
var $type$$47$$ = $goog$typeOf$$($val$$4$$);
|
80
|
-
return $type$$47$$ == "array" || $type$$47$$ == "object" && typeof $val$$4$$.length == "number"
|
81
|
-
}
|
82
|
-
function $goog$isString$$($val$$6$$) {
|
83
|
-
return typeof $val$$6$$ == "string"
|
84
|
-
}
|
85
|
-
function $goog$isFunction$$($val$$9$$) {
|
86
|
-
return $goog$typeOf$$($val$$9$$) == "function"
|
87
|
-
}
|
88
|
-
function $goog$isObject$$($type$$48_val$$10$$) {
|
89
|
-
$type$$48_val$$10$$ = $goog$typeOf$$($type$$48_val$$10$$);
|
90
|
-
return $type$$48_val$$10$$ == "object" || $type$$48_val$$10$$ == "array" || $type$$48_val$$10$$ == "function"
|
91
|
-
}
|
92
|
-
function $goog$getUid$$($obj$$17$$) {
|
93
|
-
return $obj$$17$$[$goog$UID_PROPERTY_$$] || ($obj$$17$$[$goog$UID_PROPERTY_$$] = ++$goog$uidCounter_$$)
|
94
|
-
}
|
95
|
-
var $goog$UID_PROPERTY_$$ = "closure_uid_" + Math.floor(Math.random() * 2147483648).toString(36), $goog$uidCounter_$$ = 0;
|
96
|
-
function $goog$bindNative_$$($fn$$, $selfObj$$1$$, $var_args$$17$$) {
|
97
|
-
return $fn$$.call.apply($fn$$.bind, arguments)
|
98
|
-
}
|
99
|
-
function $goog$bindJs_$$($fn$$1$$, $selfObj$$2$$, $var_args$$18$$) {
|
100
|
-
$fn$$1$$ || $JSCompiler_alias_THROW$$(Error());
|
101
|
-
if(arguments.length > 2) {
|
102
|
-
var $boundArgs$$ = Array.prototype.slice.call(arguments, 2);
|
103
|
-
return function() {
|
104
|
-
var $newArgs$$ = Array.prototype.slice.call(arguments);
|
105
|
-
Array.prototype.unshift.apply($newArgs$$, $boundArgs$$);
|
106
|
-
return $fn$$1$$.apply($selfObj$$2$$, $newArgs$$)
|
107
|
-
}
|
108
|
-
}else {
|
109
|
-
return function() {
|
110
|
-
return $fn$$1$$.apply($selfObj$$2$$, arguments)
|
111
|
-
}
|
112
|
-
}
|
113
|
-
}
|
114
|
-
function $goog$bind$$($fn$$2$$, $selfObj$$3$$, $var_args$$19$$) {
|
115
|
-
$goog$bind$$ = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? $goog$bindNative_$$ : $goog$bindJs_$$;
|
116
|
-
return $goog$bind$$.apply($JSCompiler_alias_NULL$$, arguments)
|
117
|
-
}
|
118
|
-
var $goog$now$$ = Date.now || function() {
|
119
|
-
return+new Date
|
120
|
-
}, $goog$evalWorksForGlobals_$$ = $JSCompiler_alias_NULL$$;
|
121
|
-
function $goog$inherits$$($childCtor$$, $parentCtor$$) {
|
122
|
-
function $tempCtor$$() {
|
123
|
-
}
|
124
|
-
$tempCtor$$.prototype = $parentCtor$$.prototype;
|
125
|
-
$childCtor$$.$superClass_$ = $parentCtor$$.prototype;
|
126
|
-
$childCtor$$.prototype = new $tempCtor$$
|
127
|
-
}
|
128
|
-
;function $goog$debug$Error$$($opt_msg$$) {
|
129
|
-
this.stack = Error().stack || "";
|
130
|
-
if($opt_msg$$) {
|
131
|
-
this.message = String($opt_msg$$)
|
132
|
-
}
|
133
|
-
}
|
134
|
-
$goog$inherits$$($goog$debug$Error$$, Error);
|
135
|
-
$goog$debug$Error$$.prototype.name = "CustomError";
|
136
|
-
function $goog$string$subs$$($str$$12$$, $var_args$$22$$) {
|
137
|
-
for(var $i$$5$$ = 1;$i$$5$$ < arguments.length;$i$$5$$++) {
|
138
|
-
var $replacement$$ = String(arguments[$i$$5$$]).replace(/\$/g, "$$$$"), $str$$12$$ = $str$$12$$.replace(/\%s/, $replacement$$)
|
139
|
-
}
|
140
|
-
return $str$$12$$
|
141
|
-
}
|
142
|
-
function $goog$string$htmlEscape$$($str$$31$$) {
|
143
|
-
if(!$goog$string$allRe_$$.test($str$$31$$)) {
|
144
|
-
return $str$$31$$
|
145
|
-
}
|
146
|
-
$str$$31$$.indexOf("&") != -1 && ($str$$31$$ = $str$$31$$.replace($goog$string$amperRe_$$, "&"));
|
147
|
-
$str$$31$$.indexOf("<") != -1 && ($str$$31$$ = $str$$31$$.replace($goog$string$ltRe_$$, "<"));
|
148
|
-
$str$$31$$.indexOf(">") != -1 && ($str$$31$$ = $str$$31$$.replace($goog$string$gtRe_$$, ">"));
|
149
|
-
$str$$31$$.indexOf('"') != -1 && ($str$$31$$ = $str$$31$$.replace($goog$string$quotRe_$$, """));
|
150
|
-
return $str$$31$$
|
151
|
-
}
|
152
|
-
var $goog$string$amperRe_$$ = /&/g, $goog$string$ltRe_$$ = /</g, $goog$string$gtRe_$$ = />/g, $goog$string$quotRe_$$ = /\"/g, $goog$string$allRe_$$ = /[&<>\"]/;
|
153
|
-
function $goog$string$compareVersions$$($version1$$, $version2$$) {
|
154
|
-
for(var $order$$ = 0, $v1Subs$$ = String($version1$$).replace(/^[\s\xa0]+|[\s\xa0]+$/g, "").split("."), $v2Subs$$ = String($version2$$).replace(/^[\s\xa0]+|[\s\xa0]+$/g, "").split("."), $subCount$$ = Math.max($v1Subs$$.length, $v2Subs$$.length), $subIdx$$ = 0;$order$$ == 0 && $subIdx$$ < $subCount$$;$subIdx$$++) {
|
155
|
-
var $v1Sub$$ = $v1Subs$$[$subIdx$$] || "", $v2Sub$$ = $v2Subs$$[$subIdx$$] || "", $v1CompParser$$ = RegExp("(\\d*)(\\D*)", "g"), $v2CompParser$$ = RegExp("(\\d*)(\\D*)", "g");
|
156
|
-
do {
|
157
|
-
var $v1Comp$$ = $v1CompParser$$.exec($v1Sub$$) || ["", "", ""], $v2Comp$$ = $v2CompParser$$.exec($v2Sub$$) || ["", "", ""];
|
158
|
-
if($v1Comp$$[0].length == 0 && $v2Comp$$[0].length == 0) {
|
159
|
-
break
|
160
|
-
}
|
161
|
-
$order$$ = $goog$string$compareElements_$$($v1Comp$$[1].length == 0 ? 0 : parseInt($v1Comp$$[1], 10), $v2Comp$$[1].length == 0 ? 0 : parseInt($v2Comp$$[1], 10)) || $goog$string$compareElements_$$($v1Comp$$[2].length == 0, $v2Comp$$[2].length == 0) || $goog$string$compareElements_$$($v1Comp$$[2], $v2Comp$$[2])
|
162
|
-
}while($order$$ == 0)
|
163
|
-
}
|
164
|
-
return $order$$
|
165
|
-
}
|
166
|
-
function $goog$string$compareElements_$$($left$$2$$, $right$$2$$) {
|
167
|
-
if($left$$2$$ < $right$$2$$) {
|
168
|
-
return-1
|
169
|
-
}else {
|
170
|
-
if($left$$2$$ > $right$$2$$) {
|
171
|
-
return 1
|
172
|
-
}
|
173
|
-
}
|
174
|
-
return 0
|
175
|
-
}
|
176
|
-
;function $goog$asserts$AssertionError$$($messagePattern$$, $messageArgs$$) {
|
177
|
-
$messageArgs$$.unshift($messagePattern$$);
|
178
|
-
$goog$debug$Error$$.call(this, $goog$string$subs$$.apply($JSCompiler_alias_NULL$$, $messageArgs$$));
|
179
|
-
$messageArgs$$.shift();
|
180
|
-
this.$messagePattern$ = $messagePattern$$
|
181
|
-
}
|
182
|
-
$goog$inherits$$($goog$asserts$AssertionError$$, $goog$debug$Error$$);
|
183
|
-
$goog$asserts$AssertionError$$.prototype.name = "AssertionError";
|
184
|
-
function $goog$asserts$assert$$($condition$$, $opt_message$$8$$, $var_args$$24$$) {
|
185
|
-
if(!$condition$$) {
|
186
|
-
var $givenArgs$$inline_16$$ = Array.prototype.slice.call(arguments, 2), $message$$inline_17$$ = "Assertion failed";
|
187
|
-
if($opt_message$$8$$) {
|
188
|
-
$message$$inline_17$$ += ": " + $opt_message$$8$$;
|
189
|
-
var $args$$inline_18$$ = $givenArgs$$inline_16$$
|
190
|
-
}
|
191
|
-
$JSCompiler_alias_THROW$$(new $goog$asserts$AssertionError$$("" + $message$$inline_17$$, $args$$inline_18$$ || []))
|
192
|
-
}
|
193
|
-
}
|
194
|
-
function $goog$asserts$fail$$($opt_message$$9$$, $var_args$$25$$) {
|
195
|
-
$JSCompiler_alias_THROW$$(new $goog$asserts$AssertionError$$("Failure" + ($opt_message$$9$$ ? ": " + $opt_message$$9$$ : ""), Array.prototype.slice.call(arguments, 1)))
|
196
|
-
}
|
197
|
-
;var $goog$array$ARRAY_PROTOTYPE_$$ = Array.prototype, $goog$array$indexOf$$ = $goog$array$ARRAY_PROTOTYPE_$$.indexOf ? function($arr$$10$$, $obj$$21$$, $opt_fromIndex$$6$$) {
|
198
|
-
$goog$asserts$assert$$($arr$$10$$.length != $JSCompiler_alias_NULL$$);
|
199
|
-
return $goog$array$ARRAY_PROTOTYPE_$$.indexOf.call($arr$$10$$, $obj$$21$$, $opt_fromIndex$$6$$)
|
200
|
-
} : function($arr$$11$$, $obj$$22$$, $fromIndex_i$$12_opt_fromIndex$$7$$) {
|
201
|
-
$fromIndex_i$$12_opt_fromIndex$$7$$ = $fromIndex_i$$12_opt_fromIndex$$7$$ == $JSCompiler_alias_NULL$$ ? 0 : $fromIndex_i$$12_opt_fromIndex$$7$$ < 0 ? Math.max(0, $arr$$11$$.length + $fromIndex_i$$12_opt_fromIndex$$7$$) : $fromIndex_i$$12_opt_fromIndex$$7$$;
|
202
|
-
if($goog$isString$$($arr$$11$$)) {
|
203
|
-
return!$goog$isString$$($obj$$22$$) || $obj$$22$$.length != 1 ? -1 : $arr$$11$$.indexOf($obj$$22$$, $fromIndex_i$$12_opt_fromIndex$$7$$)
|
204
|
-
}
|
205
|
-
for(;$fromIndex_i$$12_opt_fromIndex$$7$$ < $arr$$11$$.length;$fromIndex_i$$12_opt_fromIndex$$7$$++) {
|
206
|
-
if($fromIndex_i$$12_opt_fromIndex$$7$$ in $arr$$11$$ && $arr$$11$$[$fromIndex_i$$12_opt_fromIndex$$7$$] === $obj$$22$$) {
|
207
|
-
return $fromIndex_i$$12_opt_fromIndex$$7$$
|
208
|
-
}
|
209
|
-
}
|
210
|
-
return-1
|
211
|
-
}, $goog$array$forEach$$ = $goog$array$ARRAY_PROTOTYPE_$$.forEach ? function($arr$$14$$, $f$$, $opt_obj$$1$$) {
|
212
|
-
$goog$asserts$assert$$($arr$$14$$.length != $JSCompiler_alias_NULL$$);
|
213
|
-
$goog$array$ARRAY_PROTOTYPE_$$.forEach.call($arr$$14$$, $f$$, $opt_obj$$1$$)
|
214
|
-
} : function($arr$$15$$, $f$$1$$, $opt_obj$$2$$) {
|
215
|
-
for(var $l$$2$$ = $arr$$15$$.length, $arr2$$ = $goog$isString$$($arr$$15$$) ? $arr$$15$$.split("") : $arr$$15$$, $i$$14$$ = 0;$i$$14$$ < $l$$2$$;$i$$14$$++) {
|
216
|
-
$i$$14$$ in $arr2$$ && $f$$1$$.call($opt_obj$$2$$, $arr2$$[$i$$14$$], $i$$14$$, $arr$$15$$)
|
217
|
-
}
|
218
|
-
}, $goog$array$filter$$ = $goog$array$ARRAY_PROTOTYPE_$$.filter ? function($arr$$17$$, $f$$3$$, $opt_obj$$4$$) {
|
219
|
-
$goog$asserts$assert$$($arr$$17$$.length != $JSCompiler_alias_NULL$$);
|
220
|
-
return $goog$array$ARRAY_PROTOTYPE_$$.filter.call($arr$$17$$, $f$$3$$, $opt_obj$$4$$)
|
221
|
-
} : function($arr$$18$$, $f$$4$$, $opt_obj$$5$$) {
|
222
|
-
for(var $l$$4$$ = $arr$$18$$.length, $res$$ = [], $resLength$$ = 0, $arr2$$2$$ = $goog$isString$$($arr$$18$$) ? $arr$$18$$.split("") : $arr$$18$$, $i$$16$$ = 0;$i$$16$$ < $l$$4$$;$i$$16$$++) {
|
223
|
-
if($i$$16$$ in $arr2$$2$$) {
|
224
|
-
var $val$$11$$ = $arr2$$2$$[$i$$16$$];
|
225
|
-
$f$$4$$.call($opt_obj$$5$$, $val$$11$$, $i$$16$$, $arr$$18$$) && ($res$$[$resLength$$++] = $val$$11$$)
|
226
|
-
}
|
227
|
-
}
|
228
|
-
return $res$$
|
229
|
-
}, $goog$array$some$$ = $goog$array$ARRAY_PROTOTYPE_$$.some ? function($arr$$23$$, $f$$9$$, $opt_obj$$10$$) {
|
230
|
-
$goog$asserts$assert$$($arr$$23$$.length != $JSCompiler_alias_NULL$$);
|
231
|
-
return $goog$array$ARRAY_PROTOTYPE_$$.some.call($arr$$23$$, $f$$9$$, $opt_obj$$10$$)
|
232
|
-
} : function($arr$$24$$, $f$$10$$, $opt_obj$$11$$) {
|
233
|
-
for(var $l$$6$$ = $arr$$24$$.length, $arr2$$4$$ = $goog$isString$$($arr$$24$$) ? $arr$$24$$.split("") : $arr$$24$$, $i$$18$$ = 0;$i$$18$$ < $l$$6$$;$i$$18$$++) {
|
234
|
-
if($i$$18$$ in $arr2$$4$$ && $f$$10$$.call($opt_obj$$11$$, $arr2$$4$$[$i$$18$$], $i$$18$$, $arr$$24$$)) {
|
235
|
-
return!0
|
236
|
-
}
|
237
|
-
}
|
238
|
-
return!1
|
239
|
-
};
|
240
|
-
function $goog$array$contains$$($arr$$31$$, $obj$$25$$) {
|
241
|
-
return $goog$array$indexOf$$($arr$$31$$, $obj$$25$$) >= 0
|
242
|
-
}
|
243
|
-
function $goog$array$insert$$($arr$$34$$, $obj$$26$$) {
|
244
|
-
$goog$array$contains$$($arr$$34$$, $obj$$26$$) || $arr$$34$$.push($obj$$26$$)
|
245
|
-
}
|
246
|
-
function $goog$array$remove$$($arr$$38$$, $obj$$29$$) {
|
247
|
-
var $i$$26$$ = $goog$array$indexOf$$($arr$$38$$, $obj$$29$$);
|
248
|
-
$i$$26$$ >= 0 && ($goog$asserts$assert$$($arr$$38$$.length != $JSCompiler_alias_NULL$$), $goog$array$ARRAY_PROTOTYPE_$$.splice.call($arr$$38$$, $i$$26$$, 1))
|
249
|
-
}
|
250
|
-
function $goog$array$concat$$($var_args$$33$$) {
|
251
|
-
return $goog$array$ARRAY_PROTOTYPE_$$.concat.apply($goog$array$ARRAY_PROTOTYPE_$$, arguments)
|
252
|
-
}
|
253
|
-
function $goog$array$clone$$($arr$$41$$) {
|
254
|
-
if($goog$isArray$$($arr$$41$$)) {
|
255
|
-
return $goog$array$concat$$($arr$$41$$)
|
256
|
-
}else {
|
257
|
-
for(var $rv$$3$$ = [], $i$$29$$ = 0, $len$$ = $arr$$41$$.length;$i$$29$$ < $len$$;$i$$29$$++) {
|
258
|
-
$rv$$3$$[$i$$29$$] = $arr$$41$$[$i$$29$$]
|
259
|
-
}
|
260
|
-
return $rv$$3$$
|
261
|
-
}
|
262
|
-
}
|
263
|
-
function $goog$array$extend$$($arr1$$, $var_args$$34$$) {
|
264
|
-
for(var $i$$30$$ = 1;$i$$30$$ < arguments.length;$i$$30$$++) {
|
265
|
-
var $arr2$$8$$ = arguments[$i$$30$$], $isArrayLike$$;
|
266
|
-
if($goog$isArray$$($arr2$$8$$) || ($isArrayLike$$ = $goog$isArrayLike$$($arr2$$8$$)) && $arr2$$8$$.hasOwnProperty("callee")) {
|
267
|
-
$arr1$$.push.apply($arr1$$, $arr2$$8$$)
|
268
|
-
}else {
|
269
|
-
if($isArrayLike$$) {
|
270
|
-
for(var $len1$$ = $arr1$$.length, $len2$$ = $arr2$$8$$.length, $j$$1$$ = 0;$j$$1$$ < $len2$$;$j$$1$$++) {
|
271
|
-
$arr1$$[$len1$$ + $j$$1$$] = $arr2$$8$$[$j$$1$$]
|
272
|
-
}
|
273
|
-
}else {
|
274
|
-
$arr1$$.push($arr2$$8$$)
|
275
|
-
}
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
function $goog$array$slice$$($arr$$43$$, $start$$5$$, $opt_end$$5$$) {
|
280
|
-
$goog$asserts$assert$$($arr$$43$$.length != $JSCompiler_alias_NULL$$);
|
281
|
-
return arguments.length <= 2 ? $goog$array$ARRAY_PROTOTYPE_$$.slice.call($arr$$43$$, $start$$5$$) : $goog$array$ARRAY_PROTOTYPE_$$.slice.call($arr$$43$$, $start$$5$$, $opt_end$$5$$)
|
282
|
-
}
|
283
|
-
;var $goog$userAgent$detectedOpera_$$, $goog$userAgent$detectedIe_$$, $goog$userAgent$detectedWebkit_$$, $goog$userAgent$detectedGecko_$$;
|
284
|
-
function $goog$userAgent$getUserAgentString$$() {
|
285
|
-
return $goog$global$$.navigator ? $goog$global$$.navigator.userAgent : $JSCompiler_alias_NULL$$
|
286
|
-
}
|
287
|
-
$goog$userAgent$detectedGecko_$$ = $goog$userAgent$detectedWebkit_$$ = $goog$userAgent$detectedIe_$$ = $goog$userAgent$detectedOpera_$$ = !1;
|
288
|
-
var $ua$$inline_27$$;
|
289
|
-
if($ua$$inline_27$$ = $goog$userAgent$getUserAgentString$$()) {
|
290
|
-
var $navigator$$inline_28$$ = $goog$global$$.navigator;
|
291
|
-
$goog$userAgent$detectedOpera_$$ = $ua$$inline_27$$.indexOf("Opera") == 0;
|
292
|
-
$goog$userAgent$detectedIe_$$ = !$goog$userAgent$detectedOpera_$$ && $ua$$inline_27$$.indexOf("MSIE") != -1;
|
293
|
-
$goog$userAgent$detectedWebkit_$$ = !$goog$userAgent$detectedOpera_$$ && $ua$$inline_27$$.indexOf("WebKit") != -1;
|
294
|
-
$goog$userAgent$detectedGecko_$$ = !$goog$userAgent$detectedOpera_$$ && !$goog$userAgent$detectedWebkit_$$ && $navigator$$inline_28$$.product == "Gecko"
|
295
|
-
}
|
296
|
-
var $goog$userAgent$IE$$ = $goog$userAgent$detectedIe_$$, $goog$userAgent$GECKO$$ = $goog$userAgent$detectedGecko_$$, $goog$userAgent$WEBKIT$$ = $goog$userAgent$detectedWebkit_$$, $navigator$$inline_31$$ = $goog$global$$.navigator, $goog$userAgent$MAC$$ = ($navigator$$inline_31$$ && $navigator$$inline_31$$.platform || "").indexOf("Mac") != -1, $goog$userAgent$VERSION$$;
|
297
|
-
a: {
|
298
|
-
var $version$$inline_39$$ = "", $re$$inline_40$$;
|
299
|
-
if($goog$userAgent$detectedOpera_$$ && $goog$global$$.opera) {
|
300
|
-
var $operaVersion$$inline_41$$ = $goog$global$$.opera.version, $version$$inline_39$$ = typeof $operaVersion$$inline_41$$ == "function" ? $operaVersion$$inline_41$$() : $operaVersion$$inline_41$$
|
301
|
-
}else {
|
302
|
-
if($goog$userAgent$GECKO$$ ? $re$$inline_40$$ = /rv\:([^\);]+)(\)|;)/ : $goog$userAgent$IE$$ ? $re$$inline_40$$ = /MSIE\s+([^\);]+)(\)|;)/ : $goog$userAgent$WEBKIT$$ && ($re$$inline_40$$ = /WebKit\/(\S+)/), $re$$inline_40$$) {
|
303
|
-
var $arr$$inline_42$$ = $re$$inline_40$$.exec($goog$userAgent$getUserAgentString$$()), $version$$inline_39$$ = $arr$$inline_42$$ ? $arr$$inline_42$$[1] : ""
|
304
|
-
}
|
305
|
-
}
|
306
|
-
if($goog$userAgent$IE$$) {
|
307
|
-
var $docMode$$inline_43$$, $doc$$inline_464$$ = $goog$global$$.document;
|
308
|
-
$docMode$$inline_43$$ = $doc$$inline_464$$ ? $doc$$inline_464$$.documentMode : $JSCompiler_alias_VOID$$;
|
309
|
-
if($docMode$$inline_43$$ > parseFloat($version$$inline_39$$)) {
|
310
|
-
$goog$userAgent$VERSION$$ = String($docMode$$inline_43$$);
|
311
|
-
break a
|
312
|
-
}
|
313
|
-
}
|
314
|
-
$goog$userAgent$VERSION$$ = $version$$inline_39$$
|
315
|
-
}
|
316
|
-
var $goog$userAgent$isVersionCache_$$ = {};
|
317
|
-
function $goog$userAgent$isVersion$$($version$$8$$) {
|
318
|
-
return $goog$userAgent$isVersionCache_$$[$version$$8$$] || ($goog$userAgent$isVersionCache_$$[$version$$8$$] = $goog$string$compareVersions$$($goog$userAgent$VERSION$$, $version$$8$$) >= 0)
|
319
|
-
}
|
320
|
-
var $goog$userAgent$isDocumentModeCache_$$ = {};
|
321
|
-
function $goog$userAgent$isDocumentMode$$() {
|
322
|
-
return $goog$userAgent$isDocumentModeCache_$$[9] || ($goog$userAgent$isDocumentModeCache_$$[9] = $goog$userAgent$IE$$ && document.documentMode && document.documentMode >= 9)
|
323
|
-
}
|
324
|
-
;var $goog$dom$defaultDomHelper_$$, $goog$dom$BrowserFeature$CAN_ADD_NAME_OR_TYPE_ATTRIBUTES$$ = !$goog$userAgent$IE$$ || $goog$userAgent$isDocumentMode$$();
|
325
|
-
!$goog$userAgent$GECKO$$ && !$goog$userAgent$IE$$ || $goog$userAgent$IE$$ && $goog$userAgent$isDocumentMode$$() || $goog$userAgent$GECKO$$ && $goog$userAgent$isVersion$$("1.9.1");
|
326
|
-
$goog$userAgent$IE$$ && $goog$userAgent$isVersion$$("9");
|
327
|
-
function $goog$dom$classes$add$$($element$$7$$, $var_args$$38$$) {
|
328
|
-
var $className$$inline_48_classes$$;
|
329
|
-
$className$$inline_48_classes$$ = ($className$$inline_48_classes$$ = $element$$7$$.className) && typeof $className$$inline_48_classes$$.split == "function" ? $className$$inline_48_classes$$.split(/\s+/) : [];
|
330
|
-
var $args$$3_args$$inline_55$$ = $goog$array$slice$$(arguments, 1), $b$$4_classes$$inline_54$$;
|
331
|
-
$b$$4_classes$$inline_54$$ = $className$$inline_48_classes$$;
|
332
|
-
for(var $rv$$inline_56$$ = 0, $i$$inline_57$$ = 0;$i$$inline_57$$ < $args$$3_args$$inline_55$$.length;$i$$inline_57$$++) {
|
333
|
-
$goog$array$contains$$($b$$4_classes$$inline_54$$, $args$$3_args$$inline_55$$[$i$$inline_57$$]) || ($b$$4_classes$$inline_54$$.push($args$$3_args$$inline_55$$[$i$$inline_57$$]), $rv$$inline_56$$++)
|
334
|
-
}
|
335
|
-
$b$$4_classes$$inline_54$$ = $rv$$inline_56$$ == $args$$3_args$$inline_55$$.length;
|
336
|
-
$element$$7$$.className = $className$$inline_48_classes$$.join(" ");
|
337
|
-
return $b$$4_classes$$inline_54$$
|
338
|
-
}
|
339
|
-
;function $goog$object$forEach$$($obj$$30$$, $f$$18$$) {
|
340
|
-
for(var $key$$19$$ in $obj$$30$$) {
|
341
|
-
$f$$18$$.call($JSCompiler_alias_VOID$$, $obj$$30$$[$key$$19$$], $key$$19$$, $obj$$30$$)
|
342
|
-
}
|
343
|
-
}
|
344
|
-
function $goog$object$getValues$$($obj$$39$$) {
|
345
|
-
var $res$$4$$ = [], $i$$43$$ = 0, $key$$27$$;
|
346
|
-
for($key$$27$$ in $obj$$39$$) {
|
347
|
-
$res$$4$$[$i$$43$$++] = $obj$$39$$[$key$$27$$]
|
348
|
-
}
|
349
|
-
return $res$$4$$
|
350
|
-
}
|
351
|
-
function $goog$object$getKeys$$($obj$$40$$) {
|
352
|
-
var $res$$5$$ = [], $i$$44$$ = 0, $key$$28$$;
|
353
|
-
for($key$$28$$ in $obj$$40$$) {
|
354
|
-
$res$$5$$[$i$$44$$++] = $key$$28$$
|
355
|
-
}
|
356
|
-
return $res$$5$$
|
357
|
-
}
|
358
|
-
var $goog$object$PROTOTYPE_FIELDS_$$ = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
359
|
-
function $goog$object$extend$$($target$$38$$, $var_args$$41$$) {
|
360
|
-
for(var $key$$42$$, $source$$2$$, $i$$47$$ = 1;$i$$47$$ < arguments.length;$i$$47$$++) {
|
361
|
-
$source$$2$$ = arguments[$i$$47$$];
|
362
|
-
for($key$$42$$ in $source$$2$$) {
|
363
|
-
$target$$38$$[$key$$42$$] = $source$$2$$[$key$$42$$]
|
364
|
-
}
|
365
|
-
for(var $j$$4$$ = 0;$j$$4$$ < $goog$object$PROTOTYPE_FIELDS_$$.length;$j$$4$$++) {
|
366
|
-
$key$$42$$ = $goog$object$PROTOTYPE_FIELDS_$$[$j$$4$$], Object.prototype.hasOwnProperty.call($source$$2$$, $key$$42$$) && ($target$$38$$[$key$$42$$] = $source$$2$$[$key$$42$$])
|
367
|
-
}
|
368
|
-
}
|
369
|
-
}
|
370
|
-
;function $goog$dom$getDomHelper$$($opt_element$$) {
|
371
|
-
return $opt_element$$ ? new $goog$dom$DomHelper$$($opt_element$$.nodeType == 9 ? $opt_element$$ : $opt_element$$.ownerDocument || $opt_element$$.document) : $goog$dom$defaultDomHelper_$$ || ($goog$dom$defaultDomHelper_$$ = new $goog$dom$DomHelper$$)
|
372
|
-
}
|
373
|
-
function $goog$dom$getElementsByTagNameAndClass_$$($doc$$5_parent$$5$$, $opt_tag$$1_tagName$$1$$, $opt_el$$3$$) {
|
374
|
-
$doc$$5_parent$$5$$ = $opt_el$$3$$ || $doc$$5_parent$$5$$;
|
375
|
-
$opt_tag$$1_tagName$$1$$ = $opt_tag$$1_tagName$$1$$ && $opt_tag$$1_tagName$$1$$ != "*" ? $opt_tag$$1_tagName$$1$$.toUpperCase() : "";
|
376
|
-
return $doc$$5_parent$$5$$.querySelectorAll && $doc$$5_parent$$5$$.querySelector && (!$goog$userAgent$WEBKIT$$ || document.compatMode == "CSS1Compat" || $goog$userAgent$isVersion$$("528")) && $opt_tag$$1_tagName$$1$$ ? $doc$$5_parent$$5$$.querySelectorAll($opt_tag$$1_tagName$$1$$ + "") : $doc$$5_parent$$5$$.getElementsByTagName($opt_tag$$1_tagName$$1$$ || "*")
|
377
|
-
}
|
378
|
-
function $goog$dom$setProperties$$($element$$15$$, $properties$$) {
|
379
|
-
$goog$object$forEach$$($properties$$, function($val$$19$$, $key$$43$$) {
|
380
|
-
$key$$43$$ == "style" ? $element$$15$$.style.cssText = $val$$19$$ : $key$$43$$ == "class" ? $element$$15$$.className = $val$$19$$ : $key$$43$$ == "for" ? $element$$15$$.htmlFor = $val$$19$$ : $key$$43$$ in $goog$dom$DIRECT_ATTRIBUTE_MAP_$$ ? $element$$15$$.setAttribute($goog$dom$DIRECT_ATTRIBUTE_MAP_$$[$key$$43$$], $val$$19$$) : $key$$43$$.lastIndexOf("aria-", 0) == 0 ? $element$$15$$.setAttribute($key$$43$$, $val$$19$$) : $element$$15$$[$key$$43$$] = $val$$19$$
|
381
|
-
})
|
382
|
-
}
|
383
|
-
var $goog$dom$DIRECT_ATTRIBUTE_MAP_$$ = {cellpadding:"cellPadding", cellspacing:"cellSpacing", colspan:"colSpan", rowspan:"rowSpan", valign:"vAlign", height:"height", width:"width", usemap:"useMap", frameborder:"frameBorder", maxlength:"maxLength", type:"type"};
|
384
|
-
function $goog$dom$append_$$($doc$$12$$, $parent$$6$$, $args$$8$$) {
|
385
|
-
function $childHandler$$($child$$1$$) {
|
386
|
-
$child$$1$$ && $parent$$6$$.appendChild($goog$isString$$($child$$1$$) ? $doc$$12$$.createTextNode($child$$1$$) : $child$$1$$)
|
387
|
-
}
|
388
|
-
for(var $i$$51$$ = 2;$i$$51$$ < $args$$8$$.length;$i$$51$$++) {
|
389
|
-
var $arg$$5$$ = $args$$8$$[$i$$51$$];
|
390
|
-
$goog$isArrayLike$$($arg$$5$$) && !($goog$isObject$$($arg$$5$$) && $arg$$5$$.nodeType > 0) ? $goog$array$forEach$$($goog$dom$isNodeList$$($arg$$5$$) ? $goog$array$clone$$($arg$$5$$) : $arg$$5$$, $childHandler$$) : $childHandler$$($arg$$5$$)
|
391
|
-
}
|
392
|
-
}
|
393
|
-
function $goog$dom$removeNode$$($node$$4$$) {
|
394
|
-
$node$$4$$ && $node$$4$$.parentNode && $node$$4$$.parentNode.removeChild($node$$4$$)
|
395
|
-
}
|
396
|
-
function $goog$dom$isNodeList$$($val$$20$$) {
|
397
|
-
if($val$$20$$ && typeof $val$$20$$.length == "number") {
|
398
|
-
if($goog$isObject$$($val$$20$$)) {
|
399
|
-
return typeof $val$$20$$.item == "function" || typeof $val$$20$$.item == "string"
|
400
|
-
}else {
|
401
|
-
if($goog$isFunction$$($val$$20$$)) {
|
402
|
-
return typeof $val$$20$$.item == "function"
|
403
|
-
}
|
404
|
-
}
|
405
|
-
}
|
406
|
-
return!1
|
407
|
-
}
|
408
|
-
function $goog$dom$DomHelper$$($opt_document$$) {
|
409
|
-
this.$document_$ = $opt_document$$ || $goog$global$$.document || document
|
410
|
-
}
|
411
|
-
$JSCompiler_prototypeAlias$$ = $goog$dom$DomHelper$$.prototype;
|
412
|
-
$JSCompiler_prototypeAlias$$.$getDomHelper$ = $goog$dom$getDomHelper$$;
|
413
|
-
$JSCompiler_prototypeAlias$$.$getElement$ = function $$JSCompiler_prototypeAlias$$$$getElement$$($element$$26$$) {
|
414
|
-
return $goog$isString$$($element$$26$$) ? this.$document_$.getElementById($element$$26$$) : $element$$26$$
|
415
|
-
};
|
416
|
-
$JSCompiler_prototypeAlias$$.$createDom$ = function $$JSCompiler_prototypeAlias$$$$createDom$$($tagName$$5$$, $opt_attributes$$1$$, $var_args$$47$$) {
|
417
|
-
var $doc$$inline_74$$ = this.$document_$, $args$$inline_75$$ = arguments, $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$ = $args$$inline_75$$[0], $attributes$$inline_77$$ = $args$$inline_75$$[1];
|
418
|
-
if(!$goog$dom$BrowserFeature$CAN_ADD_NAME_OR_TYPE_ATTRIBUTES$$ && $attributes$$inline_77$$ && ($attributes$$inline_77$$.name || $attributes$$inline_77$$.type)) {
|
419
|
-
$element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$ = ["<", $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$];
|
420
|
-
$attributes$$inline_77$$.name && $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$.push(' name="', $goog$string$htmlEscape$$($attributes$$inline_77$$.name), '"');
|
421
|
-
if($attributes$$inline_77$$.type) {
|
422
|
-
$element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$.push(' type="', $goog$string$htmlEscape$$($attributes$$inline_77$$.type), '"');
|
423
|
-
var $clone$$inline_79$$ = {};
|
424
|
-
$goog$object$extend$$($clone$$inline_79$$, $attributes$$inline_77$$);
|
425
|
-
$attributes$$inline_77$$ = $clone$$inline_79$$;
|
426
|
-
delete $attributes$$inline_77$$.type
|
427
|
-
}
|
428
|
-
$element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$.push(">");
|
429
|
-
$element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$ = $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$.join("")
|
430
|
-
}
|
431
|
-
$element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$ = $doc$$inline_74$$.createElement($element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$);
|
432
|
-
if($attributes$$inline_77$$) {
|
433
|
-
$goog$isString$$($attributes$$inline_77$$) ? $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$.className = $attributes$$inline_77$$ : $goog$isArray$$($attributes$$inline_77$$) ? $goog$dom$classes$add$$.apply($JSCompiler_alias_NULL$$, [$element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$].concat($attributes$$inline_77$$)) : $goog$dom$setProperties$$($element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$, $attributes$$inline_77$$)
|
434
|
-
}
|
435
|
-
$args$$inline_75$$.length > 2 && $goog$dom$append_$$($doc$$inline_74$$, $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$, $args$$inline_75$$);
|
436
|
-
return $element$$inline_80_tagName$$inline_76_tagNameArr$$inline_78$$
|
437
|
-
};
|
438
|
-
$JSCompiler_prototypeAlias$$.createElement = function $$JSCompiler_prototypeAlias$$$createElement$($name$$59$$) {
|
439
|
-
return this.$document_$.createElement($name$$59$$)
|
440
|
-
};
|
441
|
-
$JSCompiler_prototypeAlias$$.createTextNode = function $$JSCompiler_prototypeAlias$$$createTextNode$($content$$1$$) {
|
442
|
-
return this.$document_$.createTextNode($content$$1$$)
|
443
|
-
};
|
444
|
-
$JSCompiler_prototypeAlias$$.appendChild = function $$JSCompiler_prototypeAlias$$$appendChild$($parent$$7$$, $child$$2$$) {
|
445
|
-
$parent$$7$$.appendChild($child$$2$$)
|
446
|
-
};
|
447
|
-
function $goog$Disposable$$() {
|
448
|
-
}
|
449
|
-
$goog$Disposable$$.prototype.$disposed_$ = !1;
|
450
|
-
$goog$Disposable$$.prototype.$dispose$ = function $$goog$Disposable$$$$$dispose$$() {
|
451
|
-
if(!this.$disposed_$) {
|
452
|
-
this.$disposed_$ = !0, this.$disposeInternal$()
|
453
|
-
}
|
454
|
-
};
|
455
|
-
$goog$Disposable$$.prototype.$disposeInternal$ = function $$goog$Disposable$$$$$disposeInternal$$() {
|
456
|
-
this.$dependentDisposables_$ && $goog$disposeAll$$.apply($JSCompiler_alias_NULL$$, this.$dependentDisposables_$)
|
457
|
-
};
|
458
|
-
function $goog$dispose$$($obj$$59$$) {
|
459
|
-
$obj$$59$$ && typeof $obj$$59$$.$dispose$ == "function" && $obj$$59$$.$dispose$()
|
460
|
-
}
|
461
|
-
function $goog$disposeAll$$($var_args$$48$$) {
|
462
|
-
for(var $i$$55$$ = 0, $len$$2$$ = arguments.length;$i$$55$$ < $len$$2$$;++$i$$55$$) {
|
463
|
-
var $disposable$$1$$ = arguments[$i$$55$$];
|
464
|
-
$goog$isArrayLike$$($disposable$$1$$) ? $goog$disposeAll$$.apply($JSCompiler_alias_NULL$$, $disposable$$1$$) : $goog$dispose$$($disposable$$1$$)
|
465
|
-
}
|
466
|
-
}
|
467
|
-
;var $goog$events$requiresSyntheticEventPropagation_$$;
|
468
|
-
!$goog$userAgent$IE$$ || $goog$userAgent$isDocumentMode$$();
|
469
|
-
$goog$userAgent$IE$$ && $goog$userAgent$isVersion$$("8");
|
470
|
-
function $goog$events$Event$$($type$$52$$, $opt_target$$1$$) {
|
471
|
-
this.type = $type$$52$$;
|
472
|
-
this.currentTarget = this.target = $opt_target$$1$$
|
473
|
-
}
|
474
|
-
$goog$inherits$$($goog$events$Event$$, $goog$Disposable$$);
|
475
|
-
$goog$events$Event$$.prototype.$disposeInternal$ = function $$goog$events$Event$$$$$disposeInternal$$() {
|
476
|
-
delete this.type;
|
477
|
-
delete this.target;
|
478
|
-
delete this.currentTarget
|
479
|
-
};
|
480
|
-
$goog$events$Event$$.prototype.$propagationStopped_$ = !1;
|
481
|
-
$goog$events$Event$$.prototype.$returnValue_$ = !0;
|
482
|
-
function $goog$reflect$sinkValue$$($x$$51$$) {
|
483
|
-
$goog$reflect$sinkValue$$[" "]($x$$51$$);
|
484
|
-
return $x$$51$$
|
485
|
-
}
|
486
|
-
$goog$reflect$sinkValue$$[" "] = $goog$nullFunction$$;
|
487
|
-
function $goog$events$BrowserEvent$$($opt_e$$, $opt_currentTarget$$) {
|
488
|
-
$opt_e$$ && this.$init$($opt_e$$, $opt_currentTarget$$)
|
489
|
-
}
|
490
|
-
$goog$inherits$$($goog$events$BrowserEvent$$, $goog$events$Event$$);
|
491
|
-
$JSCompiler_prototypeAlias$$ = $goog$events$BrowserEvent$$.prototype;
|
492
|
-
$JSCompiler_prototypeAlias$$.target = $JSCompiler_alias_NULL$$;
|
493
|
-
$JSCompiler_prototypeAlias$$.relatedTarget = $JSCompiler_alias_NULL$$;
|
494
|
-
$JSCompiler_prototypeAlias$$.offsetX = 0;
|
495
|
-
$JSCompiler_prototypeAlias$$.offsetY = 0;
|
496
|
-
$JSCompiler_prototypeAlias$$.clientX = 0;
|
497
|
-
$JSCompiler_prototypeAlias$$.clientY = 0;
|
498
|
-
$JSCompiler_prototypeAlias$$.screenX = 0;
|
499
|
-
$JSCompiler_prototypeAlias$$.screenY = 0;
|
500
|
-
$JSCompiler_prototypeAlias$$.button = 0;
|
501
|
-
$JSCompiler_prototypeAlias$$.keyCode = 0;
|
502
|
-
$JSCompiler_prototypeAlias$$.charCode = 0;
|
503
|
-
$JSCompiler_prototypeAlias$$.ctrlKey = !1;
|
504
|
-
$JSCompiler_prototypeAlias$$.altKey = !1;
|
505
|
-
$JSCompiler_prototypeAlias$$.shiftKey = !1;
|
506
|
-
$JSCompiler_prototypeAlias$$.metaKey = !1;
|
507
|
-
$JSCompiler_prototypeAlias$$.$platformModifierKey$ = !1;
|
508
|
-
$JSCompiler_prototypeAlias$$.$event_$ = $JSCompiler_alias_NULL$$;
|
509
|
-
$JSCompiler_prototypeAlias$$.$init$ = function $$JSCompiler_prototypeAlias$$$$init$$($e$$8$$, $opt_currentTarget$$1$$) {
|
510
|
-
var $type$$54$$ = this.type = $e$$8$$.type;
|
511
|
-
$goog$events$Event$$.call(this, $type$$54$$);
|
512
|
-
this.target = $e$$8$$.target || $e$$8$$.srcElement;
|
513
|
-
this.currentTarget = $opt_currentTarget$$1$$;
|
514
|
-
var $relatedTarget$$ = $e$$8$$.relatedTarget;
|
515
|
-
if($relatedTarget$$) {
|
516
|
-
if($goog$userAgent$GECKO$$) {
|
517
|
-
var $JSCompiler_inline_result$$82$$;
|
518
|
-
a: {
|
519
|
-
try {
|
520
|
-
$goog$reflect$sinkValue$$($relatedTarget$$.nodeName);
|
521
|
-
$JSCompiler_inline_result$$82$$ = !0;
|
522
|
-
break a
|
523
|
-
}catch($e$$inline_85$$) {
|
524
|
-
}
|
525
|
-
$JSCompiler_inline_result$$82$$ = !1
|
526
|
-
}
|
527
|
-
$JSCompiler_inline_result$$82$$ || ($relatedTarget$$ = $JSCompiler_alias_NULL$$)
|
528
|
-
}
|
529
|
-
}else {
|
530
|
-
if($type$$54$$ == "mouseover") {
|
531
|
-
$relatedTarget$$ = $e$$8$$.fromElement
|
532
|
-
}else {
|
533
|
-
if($type$$54$$ == "mouseout") {
|
534
|
-
$relatedTarget$$ = $e$$8$$.toElement
|
535
|
-
}
|
536
|
-
}
|
537
|
-
}
|
538
|
-
this.relatedTarget = $relatedTarget$$;
|
539
|
-
this.offsetX = $e$$8$$.offsetX !== $JSCompiler_alias_VOID$$ ? $e$$8$$.offsetX : $e$$8$$.layerX;
|
540
|
-
this.offsetY = $e$$8$$.offsetY !== $JSCompiler_alias_VOID$$ ? $e$$8$$.offsetY : $e$$8$$.layerY;
|
541
|
-
this.clientX = $e$$8$$.clientX !== $JSCompiler_alias_VOID$$ ? $e$$8$$.clientX : $e$$8$$.pageX;
|
542
|
-
this.clientY = $e$$8$$.clientY !== $JSCompiler_alias_VOID$$ ? $e$$8$$.clientY : $e$$8$$.pageY;
|
543
|
-
this.screenX = $e$$8$$.screenX || 0;
|
544
|
-
this.screenY = $e$$8$$.screenY || 0;
|
545
|
-
this.button = $e$$8$$.button;
|
546
|
-
this.keyCode = $e$$8$$.keyCode || 0;
|
547
|
-
this.charCode = $e$$8$$.charCode || ($type$$54$$ == "keypress" ? $e$$8$$.keyCode : 0);
|
548
|
-
this.ctrlKey = $e$$8$$.ctrlKey;
|
549
|
-
this.altKey = $e$$8$$.altKey;
|
550
|
-
this.shiftKey = $e$$8$$.shiftKey;
|
551
|
-
this.metaKey = $e$$8$$.metaKey;
|
552
|
-
this.$platformModifierKey$ = $goog$userAgent$MAC$$ ? $e$$8$$.metaKey : $e$$8$$.ctrlKey;
|
553
|
-
this.state = $e$$8$$.state;
|
554
|
-
this.$event_$ = $e$$8$$;
|
555
|
-
delete this.$returnValue_$;
|
556
|
-
delete this.$propagationStopped_$
|
557
|
-
};
|
558
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
559
|
-
$goog$events$BrowserEvent$$.$superClass_$.$disposeInternal$.call(this);
|
560
|
-
this.relatedTarget = this.currentTarget = this.target = this.$event_$ = $JSCompiler_alias_NULL$$
|
561
|
-
};
|
562
|
-
function $goog$events$Listener$$() {
|
563
|
-
}
|
564
|
-
var $goog$events$Listener$counter_$$ = 0;
|
565
|
-
$JSCompiler_prototypeAlias$$ = $goog$events$Listener$$.prototype;
|
566
|
-
$JSCompiler_prototypeAlias$$.key = 0;
|
567
|
-
$JSCompiler_prototypeAlias$$.$removed$ = !1;
|
568
|
-
$JSCompiler_prototypeAlias$$.$callOnce$ = !1;
|
569
|
-
$JSCompiler_prototypeAlias$$.$init$ = function $$JSCompiler_prototypeAlias$$$$init$$($listener$$30$$, $proxy$$, $src$$6$$, $type$$55$$, $capture$$, $opt_handler$$) {
|
570
|
-
$goog$isFunction$$($listener$$30$$) ? this.$isFunctionListener_$ = !0 : $listener$$30$$ && $listener$$30$$.handleEvent && $goog$isFunction$$($listener$$30$$.handleEvent) ? this.$isFunctionListener_$ = !1 : $JSCompiler_alias_THROW$$(Error("Invalid listener argument"));
|
571
|
-
this.$listener$ = $listener$$30$$;
|
572
|
-
this.$proxy$ = $proxy$$;
|
573
|
-
this.src = $src$$6$$;
|
574
|
-
this.type = $type$$55$$;
|
575
|
-
this.capture = !!$capture$$;
|
576
|
-
this.$handler$ = $opt_handler$$;
|
577
|
-
this.$callOnce$ = !1;
|
578
|
-
this.key = ++$goog$events$Listener$counter_$$;
|
579
|
-
this.$removed$ = !1
|
580
|
-
};
|
581
|
-
$JSCompiler_prototypeAlias$$.handleEvent = function $$JSCompiler_prototypeAlias$$$handleEvent$($eventObject$$) {
|
582
|
-
return this.$isFunctionListener_$ ? this.$listener$.call(this.$handler$ || this.src, $eventObject$$) : this.$listener$.handleEvent.call(this.$listener$, $eventObject$$)
|
583
|
-
};
|
584
|
-
function $goog$structs$SimplePool$$($initialCount$$, $maxCount$$) {
|
585
|
-
this.$maxCount_$ = $maxCount$$;
|
586
|
-
this.$freeQueue_$ = [];
|
587
|
-
$initialCount$$ > this.$maxCount_$ && $JSCompiler_alias_THROW$$(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));
|
588
|
-
for(var $i$$inline_92$$ = 0;$i$$inline_92$$ < $initialCount$$;$i$$inline_92$$++) {
|
589
|
-
this.$freeQueue_$.push(this.$createObject$())
|
590
|
-
}
|
591
|
-
}
|
592
|
-
$goog$inherits$$($goog$structs$SimplePool$$, $goog$Disposable$$);
|
593
|
-
$JSCompiler_prototypeAlias$$ = $goog$structs$SimplePool$$.prototype;
|
594
|
-
$JSCompiler_prototypeAlias$$.$createObjectFn_$ = $JSCompiler_alias_NULL$$;
|
595
|
-
$JSCompiler_prototypeAlias$$.$disposeObjectFn_$ = $JSCompiler_alias_NULL$$;
|
596
|
-
$JSCompiler_prototypeAlias$$.getObject = function $$JSCompiler_prototypeAlias$$$getObject$() {
|
597
|
-
return this.$freeQueue_$.length ? this.$freeQueue_$.pop() : this.$createObject$()
|
598
|
-
};
|
599
|
-
function $JSCompiler_StaticMethods_releaseObject$$($JSCompiler_StaticMethods_releaseObject$self$$, $obj$$61$$) {
|
600
|
-
$JSCompiler_StaticMethods_releaseObject$self$$.$freeQueue_$.length < $JSCompiler_StaticMethods_releaseObject$self$$.$maxCount_$ ? $JSCompiler_StaticMethods_releaseObject$self$$.$freeQueue_$.push($obj$$61$$) : $JSCompiler_StaticMethods_releaseObject$self$$.$disposeObject$($obj$$61$$)
|
601
|
-
}
|
602
|
-
$JSCompiler_prototypeAlias$$.$createObject$ = function $$JSCompiler_prototypeAlias$$$$createObject$$() {
|
603
|
-
return this.$createObjectFn_$ ? this.$createObjectFn_$() : {}
|
604
|
-
};
|
605
|
-
$JSCompiler_prototypeAlias$$.$disposeObject$ = function $$JSCompiler_prototypeAlias$$$$disposeObject$$($obj$$62$$) {
|
606
|
-
if(this.$disposeObjectFn_$) {
|
607
|
-
this.$disposeObjectFn_$($obj$$62$$)
|
608
|
-
}else {
|
609
|
-
if($goog$isObject$$($obj$$62$$)) {
|
610
|
-
if($goog$isFunction$$($obj$$62$$.$dispose$)) {
|
611
|
-
$obj$$62$$.$dispose$()
|
612
|
-
}else {
|
613
|
-
for(var $i$$60$$ in $obj$$62$$) {
|
614
|
-
delete $obj$$62$$[$i$$60$$]
|
615
|
-
}
|
616
|
-
}
|
617
|
-
}
|
618
|
-
}
|
619
|
-
};
|
620
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
621
|
-
$goog$structs$SimplePool$$.$superClass_$.$disposeInternal$.call(this);
|
622
|
-
for(var $freeQueue$$ = this.$freeQueue_$;$freeQueue$$.length;) {
|
623
|
-
this.$disposeObject$($freeQueue$$.pop())
|
624
|
-
}
|
625
|
-
delete this.$freeQueue_$
|
626
|
-
};
|
627
|
-
var $goog$userAgent$jscript$DETECTED_HAS_JSCRIPT_$$, $goog$userAgent$jscript$VERSION$$ = ($goog$userAgent$jscript$DETECTED_HAS_JSCRIPT_$$ = "ScriptEngine" in $goog$global$$ && $goog$global$$.ScriptEngine() == "JScript") ? $goog$global$$.ScriptEngineMajorVersion() + "." + $goog$global$$.ScriptEngineMinorVersion() + "." + $goog$global$$.ScriptEngineBuildVersion() : "0";
|
628
|
-
var $goog$events$pools$getObject$$, $goog$events$pools$releaseObject$$, $goog$events$pools$getArray$$, $goog$events$pools$releaseArray$$, $goog$events$pools$getProxy$$, $goog$events$pools$setProxyCallbackFunction$$, $goog$events$pools$releaseProxy$$, $goog$events$pools$getListener$$, $goog$events$pools$releaseListener$$, $goog$events$pools$getEvent$$, $goog$events$pools$releaseEvent$$;
|
629
|
-
(function() {
|
630
|
-
function $getObject$$() {
|
631
|
-
return{$count_$:0, $remaining_$:0}
|
632
|
-
}
|
633
|
-
function $getArray$$() {
|
634
|
-
return[]
|
635
|
-
}
|
636
|
-
function $getProxy$$() {
|
637
|
-
function $f$$25$$($eventObject$$1_v$$) {
|
638
|
-
$eventObject$$1_v$$ = $proxyCallbackFunction$$.call($f$$25$$.src, $f$$25$$.key, $eventObject$$1_v$$);
|
639
|
-
if(!$eventObject$$1_v$$) {
|
640
|
-
return $eventObject$$1_v$$
|
641
|
-
}
|
642
|
-
}
|
643
|
-
return $f$$25$$
|
644
|
-
}
|
645
|
-
function $getListener$$() {
|
646
|
-
return new $goog$events$Listener$$
|
647
|
-
}
|
648
|
-
function $getEvent$$() {
|
649
|
-
return new $goog$events$BrowserEvent$$
|
650
|
-
}
|
651
|
-
var $BAD_GC$$ = $goog$userAgent$jscript$DETECTED_HAS_JSCRIPT_$$ && !($goog$string$compareVersions$$($goog$userAgent$jscript$VERSION$$, "5.7") >= 0), $proxyCallbackFunction$$;
|
652
|
-
$goog$events$pools$setProxyCallbackFunction$$ = function $$goog$events$pools$setProxyCallbackFunction$$$($cb$$) {
|
653
|
-
$proxyCallbackFunction$$ = $cb$$
|
654
|
-
};
|
655
|
-
if($BAD_GC$$) {
|
656
|
-
$goog$events$pools$getObject$$ = function $$goog$events$pools$getObject$$$() {
|
657
|
-
return $objectPool$$.getObject()
|
658
|
-
};
|
659
|
-
$goog$events$pools$releaseObject$$ = function $$goog$events$pools$releaseObject$$$($obj$$63$$) {
|
660
|
-
$JSCompiler_StaticMethods_releaseObject$$($objectPool$$, $obj$$63$$)
|
661
|
-
};
|
662
|
-
$goog$events$pools$getArray$$ = function $$goog$events$pools$getArray$$$() {
|
663
|
-
return $arrayPool$$.getObject()
|
664
|
-
};
|
665
|
-
$goog$events$pools$releaseArray$$ = function $$goog$events$pools$releaseArray$$$($obj$$64$$) {
|
666
|
-
$JSCompiler_StaticMethods_releaseObject$$($arrayPool$$, $obj$$64$$)
|
667
|
-
};
|
668
|
-
$goog$events$pools$getProxy$$ = function $$goog$events$pools$getProxy$$$() {
|
669
|
-
return $proxyPool$$.getObject()
|
670
|
-
};
|
671
|
-
$goog$events$pools$releaseProxy$$ = function $$goog$events$pools$releaseProxy$$$() {
|
672
|
-
$JSCompiler_StaticMethods_releaseObject$$($proxyPool$$, $getProxy$$())
|
673
|
-
};
|
674
|
-
$goog$events$pools$getListener$$ = function $$goog$events$pools$getListener$$$() {
|
675
|
-
return $listenerPool$$.getObject()
|
676
|
-
};
|
677
|
-
$goog$events$pools$releaseListener$$ = function $$goog$events$pools$releaseListener$$$($obj$$66$$) {
|
678
|
-
$JSCompiler_StaticMethods_releaseObject$$($listenerPool$$, $obj$$66$$)
|
679
|
-
};
|
680
|
-
$goog$events$pools$getEvent$$ = function $$goog$events$pools$getEvent$$$() {
|
681
|
-
return $eventPool$$.getObject()
|
682
|
-
};
|
683
|
-
$goog$events$pools$releaseEvent$$ = function $$goog$events$pools$releaseEvent$$$($obj$$67$$) {
|
684
|
-
$JSCompiler_StaticMethods_releaseObject$$($eventPool$$, $obj$$67$$)
|
685
|
-
};
|
686
|
-
var $objectPool$$ = new $goog$structs$SimplePool$$(0, 600);
|
687
|
-
$objectPool$$.$createObjectFn_$ = $getObject$$;
|
688
|
-
var $arrayPool$$ = new $goog$structs$SimplePool$$(0, 600);
|
689
|
-
$arrayPool$$.$createObjectFn_$ = $getArray$$;
|
690
|
-
var $proxyPool$$ = new $goog$structs$SimplePool$$(0, 600);
|
691
|
-
$proxyPool$$.$createObjectFn_$ = $getProxy$$;
|
692
|
-
var $listenerPool$$ = new $goog$structs$SimplePool$$(0, 600);
|
693
|
-
$listenerPool$$.$createObjectFn_$ = $getListener$$;
|
694
|
-
var $eventPool$$ = new $goog$structs$SimplePool$$(0, 600);
|
695
|
-
$eventPool$$.$createObjectFn_$ = $getEvent$$
|
696
|
-
}else {
|
697
|
-
$goog$events$pools$getObject$$ = $getObject$$, $goog$events$pools$releaseObject$$ = $goog$nullFunction$$, $goog$events$pools$getArray$$ = $getArray$$, $goog$events$pools$releaseArray$$ = $goog$nullFunction$$, $goog$events$pools$getProxy$$ = $getProxy$$, $goog$events$pools$releaseProxy$$ = $goog$nullFunction$$, $goog$events$pools$getListener$$ = $getListener$$, $goog$events$pools$releaseListener$$ = $goog$nullFunction$$, $goog$events$pools$getEvent$$ = $getEvent$$, $goog$events$pools$releaseEvent$$ =
|
698
|
-
$goog$nullFunction$$
|
699
|
-
}
|
700
|
-
})();
|
701
|
-
var $goog$events$listeners_$$ = {}, $goog$events$listenerTree_$$ = {}, $goog$events$sources_$$ = {}, $goog$events$onStringMap_$$ = {};
|
702
|
-
function $goog$events$listen$$($src$$7$$, $type$$56$$, $key$$44_listener$$31$$, $capture$$1_opt_capt$$2$$, $opt_handler$$1$$) {
|
703
|
-
if($type$$56$$) {
|
704
|
-
if($goog$isArray$$($type$$56$$)) {
|
705
|
-
for(var $i$$61_proxy$$1$$ = 0;$i$$61_proxy$$1$$ < $type$$56$$.length;$i$$61_proxy$$1$$++) {
|
706
|
-
$goog$events$listen$$($src$$7$$, $type$$56$$[$i$$61_proxy$$1$$], $key$$44_listener$$31$$, $capture$$1_opt_capt$$2$$, $opt_handler$$1$$)
|
707
|
-
}
|
708
|
-
return $JSCompiler_alias_NULL$$
|
709
|
-
}else {
|
710
|
-
var $capture$$1_opt_capt$$2$$ = !!$capture$$1_opt_capt$$2$$, $listenerObj_map$$ = $goog$events$listenerTree_$$;
|
711
|
-
$type$$56$$ in $listenerObj_map$$ || ($listenerObj_map$$[$type$$56$$] = $goog$events$pools$getObject$$());
|
712
|
-
$listenerObj_map$$ = $listenerObj_map$$[$type$$56$$];
|
713
|
-
$capture$$1_opt_capt$$2$$ in $listenerObj_map$$ || ($listenerObj_map$$[$capture$$1_opt_capt$$2$$] = $goog$events$pools$getObject$$(), $listenerObj_map$$.$count_$++);
|
714
|
-
var $listenerObj_map$$ = $listenerObj_map$$[$capture$$1_opt_capt$$2$$], $srcUid$$ = $goog$getUid$$($src$$7$$), $listenerArray$$;
|
715
|
-
$listenerObj_map$$.$remaining_$++;
|
716
|
-
if($listenerObj_map$$[$srcUid$$]) {
|
717
|
-
$listenerArray$$ = $listenerObj_map$$[$srcUid$$];
|
718
|
-
for($i$$61_proxy$$1$$ = 0;$i$$61_proxy$$1$$ < $listenerArray$$.length;$i$$61_proxy$$1$$++) {
|
719
|
-
if($listenerObj_map$$ = $listenerArray$$[$i$$61_proxy$$1$$], $listenerObj_map$$.$listener$ == $key$$44_listener$$31$$ && $listenerObj_map$$.$handler$ == $opt_handler$$1$$) {
|
720
|
-
if($listenerObj_map$$.$removed$) {
|
721
|
-
break
|
722
|
-
}
|
723
|
-
return $listenerArray$$[$i$$61_proxy$$1$$].key
|
724
|
-
}
|
725
|
-
}
|
726
|
-
}else {
|
727
|
-
$listenerArray$$ = $listenerObj_map$$[$srcUid$$] = $goog$events$pools$getArray$$(), $listenerObj_map$$.$count_$++
|
728
|
-
}
|
729
|
-
$i$$61_proxy$$1$$ = $goog$events$pools$getProxy$$();
|
730
|
-
$i$$61_proxy$$1$$.src = $src$$7$$;
|
731
|
-
$listenerObj_map$$ = $goog$events$pools$getListener$$();
|
732
|
-
$listenerObj_map$$.$init$($key$$44_listener$$31$$, $i$$61_proxy$$1$$, $src$$7$$, $type$$56$$, $capture$$1_opt_capt$$2$$, $opt_handler$$1$$);
|
733
|
-
$key$$44_listener$$31$$ = $listenerObj_map$$.key;
|
734
|
-
$i$$61_proxy$$1$$.key = $key$$44_listener$$31$$;
|
735
|
-
$listenerArray$$.push($listenerObj_map$$);
|
736
|
-
$goog$events$listeners_$$[$key$$44_listener$$31$$] = $listenerObj_map$$;
|
737
|
-
$goog$events$sources_$$[$srcUid$$] || ($goog$events$sources_$$[$srcUid$$] = $goog$events$pools$getArray$$());
|
738
|
-
$goog$events$sources_$$[$srcUid$$].push($listenerObj_map$$);
|
739
|
-
$src$$7$$.addEventListener ? ($src$$7$$ == $goog$global$$ || !$src$$7$$.$customEvent_$) && $src$$7$$.addEventListener($type$$56$$, $i$$61_proxy$$1$$, $capture$$1_opt_capt$$2$$) : $src$$7$$.attachEvent($type$$56$$ in $goog$events$onStringMap_$$ ? $goog$events$onStringMap_$$[$type$$56$$] : $goog$events$onStringMap_$$[$type$$56$$] = "on" + $type$$56$$, $i$$61_proxy$$1$$);
|
740
|
-
return $key$$44_listener$$31$$
|
741
|
-
}
|
742
|
-
}else {
|
743
|
-
$JSCompiler_alias_THROW$$(Error("Invalid event type"))
|
744
|
-
}
|
745
|
-
}
|
746
|
-
function $goog$events$unlisten$$($listenerArray$$1_objUid$$inline_129_src$$10$$, $type$$58$$, $listener$$34$$, $capture$$2_opt_capt$$5$$, $opt_handler$$4$$) {
|
747
|
-
if($goog$isArray$$($type$$58$$)) {
|
748
|
-
for(var $i$$63_map$$inline_128$$ = 0;$i$$63_map$$inline_128$$ < $type$$58$$.length;$i$$63_map$$inline_128$$++) {
|
749
|
-
$goog$events$unlisten$$($listenerArray$$1_objUid$$inline_129_src$$10$$, $type$$58$$[$i$$63_map$$inline_128$$], $listener$$34$$, $capture$$2_opt_capt$$5$$, $opt_handler$$4$$)
|
750
|
-
}
|
751
|
-
}else {
|
752
|
-
$capture$$2_opt_capt$$5$$ = !!$capture$$2_opt_capt$$5$$;
|
753
|
-
a: {
|
754
|
-
$i$$63_map$$inline_128$$ = $goog$events$listenerTree_$$;
|
755
|
-
if($type$$58$$ in $i$$63_map$$inline_128$$ && ($i$$63_map$$inline_128$$ = $i$$63_map$$inline_128$$[$type$$58$$], $capture$$2_opt_capt$$5$$ in $i$$63_map$$inline_128$$ && ($i$$63_map$$inline_128$$ = $i$$63_map$$inline_128$$[$capture$$2_opt_capt$$5$$], $listenerArray$$1_objUid$$inline_129_src$$10$$ = $goog$getUid$$($listenerArray$$1_objUid$$inline_129_src$$10$$), $i$$63_map$$inline_128$$[$listenerArray$$1_objUid$$inline_129_src$$10$$]))) {
|
756
|
-
$listenerArray$$1_objUid$$inline_129_src$$10$$ = $i$$63_map$$inline_128$$[$listenerArray$$1_objUid$$inline_129_src$$10$$];
|
757
|
-
break a
|
758
|
-
}
|
759
|
-
$listenerArray$$1_objUid$$inline_129_src$$10$$ = $JSCompiler_alias_NULL$$
|
760
|
-
}
|
761
|
-
if($listenerArray$$1_objUid$$inline_129_src$$10$$) {
|
762
|
-
for($i$$63_map$$inline_128$$ = 0;$i$$63_map$$inline_128$$ < $listenerArray$$1_objUid$$inline_129_src$$10$$.length;$i$$63_map$$inline_128$$++) {
|
763
|
-
if($listenerArray$$1_objUid$$inline_129_src$$10$$[$i$$63_map$$inline_128$$].$listener$ == $listener$$34$$ && $listenerArray$$1_objUid$$inline_129_src$$10$$[$i$$63_map$$inline_128$$].capture == $capture$$2_opt_capt$$5$$ && $listenerArray$$1_objUid$$inline_129_src$$10$$[$i$$63_map$$inline_128$$].$handler$ == $opt_handler$$4$$) {
|
764
|
-
$goog$events$unlistenByKey$$($listenerArray$$1_objUid$$inline_129_src$$10$$[$i$$63_map$$inline_128$$].key);
|
765
|
-
break
|
766
|
-
}
|
767
|
-
}
|
768
|
-
}
|
769
|
-
}
|
770
|
-
}
|
771
|
-
function $goog$events$unlistenByKey$$($key$$46$$) {
|
772
|
-
if(!$goog$events$listeners_$$[$key$$46$$]) {
|
773
|
-
return!1
|
774
|
-
}
|
775
|
-
var $listener$$35$$ = $goog$events$listeners_$$[$key$$46$$];
|
776
|
-
if($listener$$35$$.$removed$) {
|
777
|
-
return!1
|
778
|
-
}
|
779
|
-
var $src$$11_srcUid$$1$$ = $listener$$35$$.src, $type$$59$$ = $listener$$35$$.type, $listenerArray$$2_proxy$$2$$ = $listener$$35$$.$proxy$, $capture$$3$$ = $listener$$35$$.capture;
|
780
|
-
$src$$11_srcUid$$1$$.removeEventListener ? ($src$$11_srcUid$$1$$ == $goog$global$$ || !$src$$11_srcUid$$1$$.$customEvent_$) && $src$$11_srcUid$$1$$.removeEventListener($type$$59$$, $listenerArray$$2_proxy$$2$$, $capture$$3$$) : $src$$11_srcUid$$1$$.detachEvent && $src$$11_srcUid$$1$$.detachEvent($type$$59$$ in $goog$events$onStringMap_$$ ? $goog$events$onStringMap_$$[$type$$59$$] : $goog$events$onStringMap_$$[$type$$59$$] = "on" + $type$$59$$, $listenerArray$$2_proxy$$2$$);
|
781
|
-
$src$$11_srcUid$$1$$ = $goog$getUid$$($src$$11_srcUid$$1$$);
|
782
|
-
$listenerArray$$2_proxy$$2$$ = $goog$events$listenerTree_$$[$type$$59$$][$capture$$3$$][$src$$11_srcUid$$1$$];
|
783
|
-
if($goog$events$sources_$$[$src$$11_srcUid$$1$$]) {
|
784
|
-
var $sourcesArray$$ = $goog$events$sources_$$[$src$$11_srcUid$$1$$];
|
785
|
-
$goog$array$remove$$($sourcesArray$$, $listener$$35$$);
|
786
|
-
$sourcesArray$$.length == 0 && delete $goog$events$sources_$$[$src$$11_srcUid$$1$$]
|
787
|
-
}
|
788
|
-
$listener$$35$$.$removed$ = !0;
|
789
|
-
$listenerArray$$2_proxy$$2$$.$needsCleanup_$ = !0;
|
790
|
-
$goog$events$cleanUp_$$($type$$59$$, $capture$$3$$, $src$$11_srcUid$$1$$, $listenerArray$$2_proxy$$2$$);
|
791
|
-
delete $goog$events$listeners_$$[$key$$46$$];
|
792
|
-
return!0
|
793
|
-
}
|
794
|
-
function $goog$events$cleanUp_$$($type$$60$$, $capture$$4$$, $srcUid$$2$$, $listenerArray$$3$$) {
|
795
|
-
if(!$listenerArray$$3$$.$locked_$ && $listenerArray$$3$$.$needsCleanup_$) {
|
796
|
-
for(var $oldIndex$$ = 0, $newIndex$$ = 0;$oldIndex$$ < $listenerArray$$3$$.length;$oldIndex$$++) {
|
797
|
-
if($listenerArray$$3$$[$oldIndex$$].$removed$) {
|
798
|
-
var $proxy$$3$$ = $listenerArray$$3$$[$oldIndex$$].$proxy$;
|
799
|
-
$proxy$$3$$.src = $JSCompiler_alias_NULL$$;
|
800
|
-
$goog$events$pools$releaseProxy$$($proxy$$3$$);
|
801
|
-
$goog$events$pools$releaseListener$$($listenerArray$$3$$[$oldIndex$$])
|
802
|
-
}else {
|
803
|
-
$oldIndex$$ != $newIndex$$ && ($listenerArray$$3$$[$newIndex$$] = $listenerArray$$3$$[$oldIndex$$]), $newIndex$$++
|
804
|
-
}
|
805
|
-
}
|
806
|
-
$listenerArray$$3$$.length = $newIndex$$;
|
807
|
-
$listenerArray$$3$$.$needsCleanup_$ = !1;
|
808
|
-
$newIndex$$ == 0 && ($goog$events$pools$releaseArray$$($listenerArray$$3$$), delete $goog$events$listenerTree_$$[$type$$60$$][$capture$$4$$][$srcUid$$2$$], $goog$events$listenerTree_$$[$type$$60$$][$capture$$4$$].$count_$--, $goog$events$listenerTree_$$[$type$$60$$][$capture$$4$$].$count_$ == 0 && ($goog$events$pools$releaseObject$$($goog$events$listenerTree_$$[$type$$60$$][$capture$$4$$]), delete $goog$events$listenerTree_$$[$type$$60$$][$capture$$4$$], $goog$events$listenerTree_$$[$type$$60$$].$count_$--),
|
809
|
-
$goog$events$listenerTree_$$[$type$$60$$].$count_$ == 0 && ($goog$events$pools$releaseObject$$($goog$events$listenerTree_$$[$type$$60$$]), delete $goog$events$listenerTree_$$[$type$$60$$]))
|
810
|
-
}
|
811
|
-
}
|
812
|
-
function $goog$events$removeAll$$($opt_obj$$25_sourcesArray$$1_srcUid$$3$$) {
|
813
|
-
var $opt_capt$$7$$, $count$$7$$ = 0, $noCapt$$ = $opt_capt$$7$$ == $JSCompiler_alias_NULL$$;
|
814
|
-
$opt_capt$$7$$ = !!$opt_capt$$7$$;
|
815
|
-
if($opt_obj$$25_sourcesArray$$1_srcUid$$3$$ == $JSCompiler_alias_NULL$$) {
|
816
|
-
$goog$object$forEach$$($goog$events$sources_$$, function($listeners$$) {
|
817
|
-
for(var $i$$65$$ = $listeners$$.length - 1;$i$$65$$ >= 0;$i$$65$$--) {
|
818
|
-
var $listener$$38$$ = $listeners$$[$i$$65$$];
|
819
|
-
if($noCapt$$ || $opt_capt$$7$$ == $listener$$38$$.capture) {
|
820
|
-
$goog$events$unlistenByKey$$($listener$$38$$.key), $count$$7$$++
|
821
|
-
}
|
822
|
-
}
|
823
|
-
})
|
824
|
-
}else {
|
825
|
-
if($opt_obj$$25_sourcesArray$$1_srcUid$$3$$ = $goog$getUid$$($opt_obj$$25_sourcesArray$$1_srcUid$$3$$), $goog$events$sources_$$[$opt_obj$$25_sourcesArray$$1_srcUid$$3$$]) {
|
826
|
-
for(var $opt_obj$$25_sourcesArray$$1_srcUid$$3$$ = $goog$events$sources_$$[$opt_obj$$25_sourcesArray$$1_srcUid$$3$$], $i$$64$$ = $opt_obj$$25_sourcesArray$$1_srcUid$$3$$.length - 1;$i$$64$$ >= 0;$i$$64$$--) {
|
827
|
-
var $listener$$37$$ = $opt_obj$$25_sourcesArray$$1_srcUid$$3$$[$i$$64$$];
|
828
|
-
if($noCapt$$ || $opt_capt$$7$$ == $listener$$37$$.capture) {
|
829
|
-
$goog$events$unlistenByKey$$($listener$$37$$.key), $count$$7$$++
|
830
|
-
}
|
831
|
-
}
|
832
|
-
}
|
833
|
-
}
|
834
|
-
}
|
835
|
-
function $goog$events$fireListeners_$$($listenerArray$$5_map$$4$$, $obj$$72_objUid$$2$$, $type$$66$$, $capture$$9$$, $eventObject$$3$$) {
|
836
|
-
var $retval$$ = 1, $obj$$72_objUid$$2$$ = $goog$getUid$$($obj$$72_objUid$$2$$);
|
837
|
-
if($listenerArray$$5_map$$4$$[$obj$$72_objUid$$2$$]) {
|
838
|
-
$listenerArray$$5_map$$4$$.$remaining_$--;
|
839
|
-
$listenerArray$$5_map$$4$$ = $listenerArray$$5_map$$4$$[$obj$$72_objUid$$2$$];
|
840
|
-
$listenerArray$$5_map$$4$$.$locked_$ ? $listenerArray$$5_map$$4$$.$locked_$++ : $listenerArray$$5_map$$4$$.$locked_$ = 1;
|
841
|
-
try {
|
842
|
-
for(var $length$$16$$ = $listenerArray$$5_map$$4$$.length, $i$$67$$ = 0;$i$$67$$ < $length$$16$$;$i$$67$$++) {
|
843
|
-
var $listener$$41$$ = $listenerArray$$5_map$$4$$[$i$$67$$];
|
844
|
-
$listener$$41$$ && !$listener$$41$$.$removed$ && ($retval$$ &= $goog$events$fireListener$$($listener$$41$$, $eventObject$$3$$) !== !1)
|
845
|
-
}
|
846
|
-
}finally {
|
847
|
-
$listenerArray$$5_map$$4$$.$locked_$--, $goog$events$cleanUp_$$($type$$66$$, $capture$$9$$, $obj$$72_objUid$$2$$, $listenerArray$$5_map$$4$$)
|
848
|
-
}
|
849
|
-
}
|
850
|
-
return Boolean($retval$$)
|
851
|
-
}
|
852
|
-
function $goog$events$fireListener$$($listener$$42$$, $eventObject$$4$$) {
|
853
|
-
var $rv$$13$$ = $listener$$42$$.handleEvent($eventObject$$4$$);
|
854
|
-
$listener$$42$$.$callOnce$ && $goog$events$unlistenByKey$$($listener$$42$$.key);
|
855
|
-
return $rv$$13$$
|
856
|
-
}
|
857
|
-
$goog$events$pools$setProxyCallbackFunction$$(function($key$$48$$, $opt_evt$$) {
|
858
|
-
if(!$goog$events$listeners_$$[$key$$48$$]) {
|
859
|
-
return!0
|
860
|
-
}
|
861
|
-
var $listener$$43$$ = $goog$events$listeners_$$[$key$$48$$], $be$$1_type$$68$$ = $listener$$43$$.type, $map$$6$$ = $goog$events$listenerTree_$$;
|
862
|
-
if(!($be$$1_type$$68$$ in $map$$6$$)) {
|
863
|
-
return!0
|
864
|
-
}
|
865
|
-
var $map$$6$$ = $map$$6$$[$be$$1_type$$68$$], $ieEvent_retval$$1$$, $targetsMap$$1$$;
|
866
|
-
$goog$events$requiresSyntheticEventPropagation_$$ === $JSCompiler_alias_VOID$$ && ($goog$events$requiresSyntheticEventPropagation_$$ = $goog$userAgent$IE$$ && !$goog$global$$.addEventListener);
|
867
|
-
if($goog$events$requiresSyntheticEventPropagation_$$) {
|
868
|
-
$ieEvent_retval$$1$$ = $opt_evt$$ || $goog$getObjectByName$$("window.event");
|
869
|
-
var $hasCapture$$2$$ = !0 in $map$$6$$, $hasBubble$$1$$ = !1 in $map$$6$$;
|
870
|
-
if($hasCapture$$2$$) {
|
871
|
-
if($ieEvent_retval$$1$$.keyCode < 0 || $ieEvent_retval$$1$$.returnValue != $JSCompiler_alias_VOID$$) {
|
872
|
-
return!0
|
873
|
-
}
|
874
|
-
a: {
|
875
|
-
var $evt$$15_useReturnValue$$inline_136$$ = !1;
|
876
|
-
if($ieEvent_retval$$1$$.keyCode == 0) {
|
877
|
-
try {
|
878
|
-
$ieEvent_retval$$1$$.keyCode = -1;
|
879
|
-
break a
|
880
|
-
}catch($ex$$inline_137$$) {
|
881
|
-
$evt$$15_useReturnValue$$inline_136$$ = !0
|
882
|
-
}
|
883
|
-
}
|
884
|
-
if($evt$$15_useReturnValue$$inline_136$$ || $ieEvent_retval$$1$$.returnValue == $JSCompiler_alias_VOID$$) {
|
885
|
-
$ieEvent_retval$$1$$.returnValue = !0
|
886
|
-
}
|
887
|
-
}
|
888
|
-
}
|
889
|
-
$evt$$15_useReturnValue$$inline_136$$ = $goog$events$pools$getEvent$$();
|
890
|
-
$evt$$15_useReturnValue$$inline_136$$.$init$($ieEvent_retval$$1$$, this);
|
891
|
-
$ieEvent_retval$$1$$ = !0;
|
892
|
-
try {
|
893
|
-
if($hasCapture$$2$$) {
|
894
|
-
for(var $ancestors$$2$$ = $goog$events$pools$getArray$$(), $parent$$16$$ = $evt$$15_useReturnValue$$inline_136$$.currentTarget;$parent$$16$$;$parent$$16$$ = $parent$$16$$.parentNode) {
|
895
|
-
$ancestors$$2$$.push($parent$$16$$)
|
896
|
-
}
|
897
|
-
$targetsMap$$1$$ = $map$$6$$[!0];
|
898
|
-
$targetsMap$$1$$.$remaining_$ = $targetsMap$$1$$.$count_$;
|
899
|
-
for(var $i$$69$$ = $ancestors$$2$$.length - 1;!$evt$$15_useReturnValue$$inline_136$$.$propagationStopped_$ && $i$$69$$ >= 0 && $targetsMap$$1$$.$remaining_$;$i$$69$$--) {
|
900
|
-
$evt$$15_useReturnValue$$inline_136$$.currentTarget = $ancestors$$2$$[$i$$69$$], $ieEvent_retval$$1$$ &= $goog$events$fireListeners_$$($targetsMap$$1$$, $ancestors$$2$$[$i$$69$$], $be$$1_type$$68$$, !0, $evt$$15_useReturnValue$$inline_136$$)
|
901
|
-
}
|
902
|
-
if($hasBubble$$1$$) {
|
903
|
-
$targetsMap$$1$$ = $map$$6$$[!1];
|
904
|
-
$targetsMap$$1$$.$remaining_$ = $targetsMap$$1$$.$count_$;
|
905
|
-
for($i$$69$$ = 0;!$evt$$15_useReturnValue$$inline_136$$.$propagationStopped_$ && $i$$69$$ < $ancestors$$2$$.length && $targetsMap$$1$$.$remaining_$;$i$$69$$++) {
|
906
|
-
$evt$$15_useReturnValue$$inline_136$$.currentTarget = $ancestors$$2$$[$i$$69$$], $ieEvent_retval$$1$$ &= $goog$events$fireListeners_$$($targetsMap$$1$$, $ancestors$$2$$[$i$$69$$], $be$$1_type$$68$$, !1, $evt$$15_useReturnValue$$inline_136$$)
|
907
|
-
}
|
908
|
-
}
|
909
|
-
}else {
|
910
|
-
$ieEvent_retval$$1$$ = $goog$events$fireListener$$($listener$$43$$, $evt$$15_useReturnValue$$inline_136$$)
|
911
|
-
}
|
912
|
-
}finally {
|
913
|
-
if($ancestors$$2$$) {
|
914
|
-
$ancestors$$2$$.length = 0, $goog$events$pools$releaseArray$$($ancestors$$2$$)
|
915
|
-
}
|
916
|
-
$evt$$15_useReturnValue$$inline_136$$.$dispose$();
|
917
|
-
$goog$events$pools$releaseEvent$$($evt$$15_useReturnValue$$inline_136$$)
|
918
|
-
}
|
919
|
-
return $ieEvent_retval$$1$$
|
920
|
-
}
|
921
|
-
$be$$1_type$$68$$ = new $goog$events$BrowserEvent$$($opt_evt$$, this);
|
922
|
-
try {
|
923
|
-
$ieEvent_retval$$1$$ = $goog$events$fireListener$$($listener$$43$$, $be$$1_type$$68$$)
|
924
|
-
}finally {
|
925
|
-
$be$$1_type$$68$$.$dispose$()
|
926
|
-
}
|
927
|
-
return $ieEvent_retval$$1$$
|
928
|
-
});
|
929
|
-
function $goog$events$EventHandler$$($opt_handler$$7$$) {
|
930
|
-
this.$handler_$ = $opt_handler$$7$$;
|
931
|
-
this.$keys_$ = []
|
932
|
-
}
|
933
|
-
$goog$inherits$$($goog$events$EventHandler$$, $goog$Disposable$$);
|
934
|
-
var $goog$events$EventHandler$typeArray_$$ = [];
|
935
|
-
function $JSCompiler_StaticMethods_listen$$($JSCompiler_StaticMethods_listen$self$$, $src$$15$$, $type$$69$$, $opt_fn$$, $opt_capture$$1$$, $opt_handler$$8$$) {
|
936
|
-
$goog$isArray$$($type$$69$$) || ($goog$events$EventHandler$typeArray_$$[0] = $type$$69$$, $type$$69$$ = $goog$events$EventHandler$typeArray_$$);
|
937
|
-
for(var $i$$70$$ = 0;$i$$70$$ < $type$$69$$.length;$i$$70$$++) {
|
938
|
-
$JSCompiler_StaticMethods_listen$self$$.$keys_$.push($goog$events$listen$$($src$$15$$, $type$$69$$[$i$$70$$], $opt_fn$$ || $JSCompiler_StaticMethods_listen$self$$, $opt_capture$$1$$ || !1, $opt_handler$$8$$ || $JSCompiler_StaticMethods_listen$self$$.$handler_$ || $JSCompiler_StaticMethods_listen$self$$))
|
939
|
-
}
|
940
|
-
}
|
941
|
-
function $JSCompiler_StaticMethods_removeAll$$($JSCompiler_StaticMethods_removeAll$self$$) {
|
942
|
-
$goog$array$forEach$$($JSCompiler_StaticMethods_removeAll$self$$.$keys_$, $goog$events$unlistenByKey$$);
|
943
|
-
$JSCompiler_StaticMethods_removeAll$self$$.$keys_$.length = 0
|
944
|
-
}
|
945
|
-
$goog$events$EventHandler$$.prototype.$disposeInternal$ = function $$goog$events$EventHandler$$$$$disposeInternal$$() {
|
946
|
-
$goog$events$EventHandler$$.$superClass_$.$disposeInternal$.call(this);
|
947
|
-
$JSCompiler_StaticMethods_removeAll$$(this)
|
948
|
-
};
|
949
|
-
$goog$events$EventHandler$$.prototype.handleEvent = function $$goog$events$EventHandler$$$$handleEvent$() {
|
950
|
-
$JSCompiler_alias_THROW$$(Error("EventHandler.handleEvent not implemented"))
|
951
|
-
};
|
952
|
-
function $goog$events$EventTarget$$() {
|
953
|
-
}
|
954
|
-
$goog$inherits$$($goog$events$EventTarget$$, $goog$Disposable$$);
|
955
|
-
$JSCompiler_prototypeAlias$$ = $goog$events$EventTarget$$.prototype;
|
956
|
-
$JSCompiler_prototypeAlias$$.$customEvent_$ = !0;
|
957
|
-
$JSCompiler_prototypeAlias$$.$parentEventTarget_$ = $JSCompiler_alias_NULL$$;
|
958
|
-
$JSCompiler_prototypeAlias$$.$setParentEventTarget$ = function $$JSCompiler_prototypeAlias$$$$setParentEventTarget$$($parent$$17$$) {
|
959
|
-
this.$parentEventTarget_$ = $parent$$17$$
|
960
|
-
};
|
961
|
-
$JSCompiler_prototypeAlias$$.addEventListener = function $$JSCompiler_prototypeAlias$$$addEventListener$($type$$72$$, $handler$$3$$, $opt_capture$$4$$, $opt_handlerScope$$) {
|
962
|
-
$goog$events$listen$$(this, $type$$72$$, $handler$$3$$, $opt_capture$$4$$, $opt_handlerScope$$)
|
963
|
-
};
|
964
|
-
$JSCompiler_prototypeAlias$$.removeEventListener = function $$JSCompiler_prototypeAlias$$$removeEventListener$($type$$73$$, $handler$$4$$, $opt_capture$$5$$, $opt_handlerScope$$1$$) {
|
965
|
-
$goog$events$unlisten$$(this, $type$$73$$, $handler$$4$$, $opt_capture$$5$$, $opt_handlerScope$$1$$)
|
966
|
-
};
|
967
|
-
$JSCompiler_prototypeAlias$$.dispatchEvent = function $$JSCompiler_prototypeAlias$$$dispatchEvent$($JSCompiler_inline_result$$139_e$$14_e$$inline_153$$) {
|
968
|
-
var $hasCapture$$inline_159_type$$inline_154$$ = $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.type || $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$, $map$$inline_155$$ = $goog$events$listenerTree_$$;
|
969
|
-
if($hasCapture$$inline_159_type$$inline_154$$ in $map$$inline_155$$) {
|
970
|
-
if($goog$isString$$($JSCompiler_inline_result$$139_e$$14_e$$inline_153$$)) {
|
971
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$ = new $goog$events$Event$$($JSCompiler_inline_result$$139_e$$14_e$$inline_153$$, this)
|
972
|
-
}else {
|
973
|
-
if($JSCompiler_inline_result$$139_e$$14_e$$inline_153$$ instanceof $goog$events$Event$$) {
|
974
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.target = $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.target || this
|
975
|
-
}else {
|
976
|
-
var $oldEvent$$inline_156_rv$$inline_157$$ = $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$, $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$ = new $goog$events$Event$$($hasCapture$$inline_159_type$$inline_154$$, this);
|
977
|
-
$goog$object$extend$$($JSCompiler_inline_result$$139_e$$14_e$$inline_153$$, $oldEvent$$inline_156_rv$$inline_157$$)
|
978
|
-
}
|
979
|
-
}
|
980
|
-
var $oldEvent$$inline_156_rv$$inline_157$$ = 1, $ancestors$$inline_158_current$$inline_163$$, $map$$inline_155$$ = $map$$inline_155$$[$hasCapture$$inline_159_type$$inline_154$$], $hasCapture$$inline_159_type$$inline_154$$ = !0 in $map$$inline_155$$, $parent$$inline_161_targetsMap$$inline_160$$;
|
981
|
-
if($hasCapture$$inline_159_type$$inline_154$$) {
|
982
|
-
$ancestors$$inline_158_current$$inline_163$$ = [];
|
983
|
-
for($parent$$inline_161_targetsMap$$inline_160$$ = this;$parent$$inline_161_targetsMap$$inline_160$$;$parent$$inline_161_targetsMap$$inline_160$$ = $parent$$inline_161_targetsMap$$inline_160$$.$parentEventTarget_$) {
|
984
|
-
$ancestors$$inline_158_current$$inline_163$$.push($parent$$inline_161_targetsMap$$inline_160$$)
|
985
|
-
}
|
986
|
-
$parent$$inline_161_targetsMap$$inline_160$$ = $map$$inline_155$$[!0];
|
987
|
-
$parent$$inline_161_targetsMap$$inline_160$$.$remaining_$ = $parent$$inline_161_targetsMap$$inline_160$$.$count_$;
|
988
|
-
for(var $i$$inline_162$$ = $ancestors$$inline_158_current$$inline_163$$.length - 1;!$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.$propagationStopped_$ && $i$$inline_162$$ >= 0 && $parent$$inline_161_targetsMap$$inline_160$$.$remaining_$;$i$$inline_162$$--) {
|
989
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.currentTarget = $ancestors$$inline_158_current$$inline_163$$[$i$$inline_162$$], $oldEvent$$inline_156_rv$$inline_157$$ &= $goog$events$fireListeners_$$($parent$$inline_161_targetsMap$$inline_160$$, $ancestors$$inline_158_current$$inline_163$$[$i$$inline_162$$], $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.type, !0, $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$) && $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.$returnValue_$ !=
|
990
|
-
!1
|
991
|
-
}
|
992
|
-
}
|
993
|
-
if(!1 in $map$$inline_155$$) {
|
994
|
-
if($parent$$inline_161_targetsMap$$inline_160$$ = $map$$inline_155$$[!1], $parent$$inline_161_targetsMap$$inline_160$$.$remaining_$ = $parent$$inline_161_targetsMap$$inline_160$$.$count_$, $hasCapture$$inline_159_type$$inline_154$$) {
|
995
|
-
for($i$$inline_162$$ = 0;!$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.$propagationStopped_$ && $i$$inline_162$$ < $ancestors$$inline_158_current$$inline_163$$.length && $parent$$inline_161_targetsMap$$inline_160$$.$remaining_$;$i$$inline_162$$++) {
|
996
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.currentTarget = $ancestors$$inline_158_current$$inline_163$$[$i$$inline_162$$], $oldEvent$$inline_156_rv$$inline_157$$ &= $goog$events$fireListeners_$$($parent$$inline_161_targetsMap$$inline_160$$, $ancestors$$inline_158_current$$inline_163$$[$i$$inline_162$$], $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.type, !1, $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$) && $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.$returnValue_$ !=
|
997
|
-
!1
|
998
|
-
}
|
999
|
-
}else {
|
1000
|
-
for($ancestors$$inline_158_current$$inline_163$$ = this;!$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.$propagationStopped_$ && $ancestors$$inline_158_current$$inline_163$$ && $parent$$inline_161_targetsMap$$inline_160$$.$remaining_$;$ancestors$$inline_158_current$$inline_163$$ = $ancestors$$inline_158_current$$inline_163$$.$parentEventTarget_$) {
|
1001
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.currentTarget = $ancestors$$inline_158_current$$inline_163$$, $oldEvent$$inline_156_rv$$inline_157$$ &= $goog$events$fireListeners_$$($parent$$inline_161_targetsMap$$inline_160$$, $ancestors$$inline_158_current$$inline_163$$, $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.type, !1, $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$) && $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$.$returnValue_$ != !1
|
1002
|
-
}
|
1003
|
-
}
|
1004
|
-
}
|
1005
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$ = Boolean($oldEvent$$inline_156_rv$$inline_157$$)
|
1006
|
-
}else {
|
1007
|
-
$JSCompiler_inline_result$$139_e$$14_e$$inline_153$$ = !0
|
1008
|
-
}
|
1009
|
-
return $JSCompiler_inline_result$$139_e$$14_e$$inline_153$$
|
1010
|
-
};
|
1011
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
1012
|
-
$goog$events$EventTarget$$.$superClass_$.$disposeInternal$.call(this);
|
1013
|
-
$goog$events$removeAll$$(this);
|
1014
|
-
this.$parentEventTarget_$ = $JSCompiler_alias_NULL$$
|
1015
|
-
};
|
1016
|
-
function $goog$ui$IdGenerator$$() {
|
1017
|
-
}
|
1018
|
-
$goog$addSingletonGetter$$($goog$ui$IdGenerator$$);
|
1019
|
-
$goog$ui$IdGenerator$$.prototype.$nextId_$ = 0;
|
1020
|
-
$goog$ui$IdGenerator$$.$getInstance$();
|
1021
|
-
function $goog$ui$Component$$($opt_domHelper$$) {
|
1022
|
-
this.$dom_$ = $opt_domHelper$$ || $goog$dom$getDomHelper$$();
|
1023
|
-
this.$rightToLeft_$ = $goog$ui$Component$defaultRightToLeft_$$
|
1024
|
-
}
|
1025
|
-
$goog$inherits$$($goog$ui$Component$$, $goog$events$EventTarget$$);
|
1026
|
-
$goog$ui$Component$$.prototype.$idGenerator_$ = $goog$ui$IdGenerator$$.$getInstance$();
|
1027
|
-
var $goog$ui$Component$defaultRightToLeft_$$ = $JSCompiler_alias_NULL$$;
|
1028
|
-
$JSCompiler_prototypeAlias$$ = $goog$ui$Component$$.prototype;
|
1029
|
-
$JSCompiler_prototypeAlias$$.$id_$ = $JSCompiler_alias_NULL$$;
|
1030
|
-
$JSCompiler_prototypeAlias$$.$inDocument_$ = !1;
|
1031
|
-
$JSCompiler_prototypeAlias$$.$element_$ = $JSCompiler_alias_NULL$$;
|
1032
|
-
$JSCompiler_prototypeAlias$$.$rightToLeft_$ = $JSCompiler_alias_NULL$$;
|
1033
|
-
$JSCompiler_prototypeAlias$$.$model_$ = $JSCompiler_alias_NULL$$;
|
1034
|
-
$JSCompiler_prototypeAlias$$.$parent_$ = $JSCompiler_alias_NULL$$;
|
1035
|
-
$JSCompiler_prototypeAlias$$.$children_$ = $JSCompiler_alias_NULL$$;
|
1036
|
-
$JSCompiler_prototypeAlias$$.$childIndex_$ = $JSCompiler_alias_NULL$$;
|
1037
|
-
$JSCompiler_prototypeAlias$$.$wasDecorated_$ = !1;
|
1038
|
-
$JSCompiler_prototypeAlias$$.$getId$ = function $$JSCompiler_prototypeAlias$$$$getId$$() {
|
1039
|
-
return this.$id_$ || (this.$id_$ = ":" + (this.$idGenerator_$.$nextId_$++).toString(36))
|
1040
|
-
};
|
1041
|
-
$JSCompiler_prototypeAlias$$.$getElement$ = $JSCompiler_get$$("$element_$");
|
1042
|
-
function $JSCompiler_StaticMethods_setParent$$($JSCompiler_StaticMethods_setParent$self$$, $parent$$20$$) {
|
1043
|
-
$JSCompiler_StaticMethods_setParent$self$$ == $parent$$20$$ && $JSCompiler_alias_THROW$$(Error("Unable to set parent component"));
|
1044
|
-
$parent$$20$$ && $JSCompiler_StaticMethods_setParent$self$$.$parent_$ && $JSCompiler_StaticMethods_setParent$self$$.$id_$ && $JSCompiler_StaticMethods_setParent$self$$.$parent_$.$childIndex_$ && $JSCompiler_StaticMethods_setParent$self$$.$id_$ && $JSCompiler_StaticMethods_setParent$self$$.$id_$ in $JSCompiler_StaticMethods_setParent$self$$.$parent_$.$childIndex_$ && $JSCompiler_StaticMethods_setParent$self$$.$parent_$.$childIndex_$[$JSCompiler_StaticMethods_setParent$self$$.$id_$] && $JSCompiler_StaticMethods_setParent$self$$.$parent_$ !=
|
1045
|
-
$parent$$20$$ && $JSCompiler_alias_THROW$$(Error("Unable to set parent component"));
|
1046
|
-
$JSCompiler_StaticMethods_setParent$self$$.$parent_$ = $parent$$20$$;
|
1047
|
-
$goog$ui$Component$$.$superClass_$.$setParentEventTarget$.call($JSCompiler_StaticMethods_setParent$self$$, $parent$$20$$)
|
1048
|
-
}
|
1049
|
-
$JSCompiler_prototypeAlias$$.getParent = $JSCompiler_get$$("$parent_$");
|
1050
|
-
$JSCompiler_prototypeAlias$$.$setParentEventTarget$ = function $$JSCompiler_prototypeAlias$$$$setParentEventTarget$$($parent$$21$$) {
|
1051
|
-
this.$parent_$ && this.$parent_$ != $parent$$21$$ && $JSCompiler_alias_THROW$$(Error("Method not supported"));
|
1052
|
-
$goog$ui$Component$$.$superClass_$.$setParentEventTarget$.call(this, $parent$$21$$)
|
1053
|
-
};
|
1054
|
-
$JSCompiler_prototypeAlias$$.$getDomHelper$ = $JSCompiler_stubMethod$$(2);
|
1055
|
-
$JSCompiler_prototypeAlias$$.$createDom$ = function $$JSCompiler_prototypeAlias$$$$createDom$$() {
|
1056
|
-
this.$element_$ = this.$dom_$.createElement("div")
|
1057
|
-
};
|
1058
|
-
function $JSCompiler_StaticMethods_render_$$($JSCompiler_StaticMethods_render_$self$$, $opt_parentElement$$1$$, $opt_beforeNode$$) {
|
1059
|
-
$JSCompiler_StaticMethods_render_$self$$.$inDocument_$ && $JSCompiler_alias_THROW$$(Error("Component already rendered"));
|
1060
|
-
$JSCompiler_StaticMethods_render_$self$$.$element_$ || $JSCompiler_StaticMethods_render_$self$$.$createDom$();
|
1061
|
-
$opt_parentElement$$1$$ ? $opt_parentElement$$1$$.insertBefore($JSCompiler_StaticMethods_render_$self$$.$element_$, $opt_beforeNode$$ || $JSCompiler_alias_NULL$$) : $JSCompiler_StaticMethods_render_$self$$.$dom_$.$document_$.body.appendChild($JSCompiler_StaticMethods_render_$self$$.$element_$);
|
1062
|
-
(!$JSCompiler_StaticMethods_render_$self$$.$parent_$ || $JSCompiler_StaticMethods_render_$self$$.$parent_$.$inDocument_$) && $JSCompiler_StaticMethods_render_$self$$.$enterDocument$()
|
1063
|
-
}
|
1064
|
-
$JSCompiler_prototypeAlias$$.$enterDocument$ = function $$JSCompiler_prototypeAlias$$$$enterDocument$$() {
|
1065
|
-
this.$inDocument_$ = !0;
|
1066
|
-
$JSCompiler_StaticMethods_forEachChild$$(this, function($child$$8$$) {
|
1067
|
-
!$child$$8$$.$inDocument_$ && $child$$8$$.$getElement$() && $child$$8$$.$enterDocument$()
|
1068
|
-
})
|
1069
|
-
};
|
1070
|
-
function $JSCompiler_StaticMethods_exitDocument$$($JSCompiler_StaticMethods_exitDocument$self$$) {
|
1071
|
-
$JSCompiler_StaticMethods_forEachChild$$($JSCompiler_StaticMethods_exitDocument$self$$, function($child$$9$$) {
|
1072
|
-
$child$$9$$.$inDocument_$ && $JSCompiler_StaticMethods_exitDocument$$($child$$9$$)
|
1073
|
-
});
|
1074
|
-
$JSCompiler_StaticMethods_exitDocument$self$$.$googUiComponentHandler_$ && $JSCompiler_StaticMethods_removeAll$$($JSCompiler_StaticMethods_exitDocument$self$$.$googUiComponentHandler_$);
|
1075
|
-
$JSCompiler_StaticMethods_exitDocument$self$$.$inDocument_$ = !1
|
1076
|
-
}
|
1077
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
1078
|
-
$goog$ui$Component$$.$superClass_$.$disposeInternal$.call(this);
|
1079
|
-
this.$inDocument_$ && $JSCompiler_StaticMethods_exitDocument$$(this);
|
1080
|
-
this.$googUiComponentHandler_$ && (this.$googUiComponentHandler_$.$dispose$(), delete this.$googUiComponentHandler_$);
|
1081
|
-
$JSCompiler_StaticMethods_forEachChild$$(this, function($child$$10$$) {
|
1082
|
-
$child$$10$$.$dispose$()
|
1083
|
-
});
|
1084
|
-
!this.$wasDecorated_$ && this.$element_$ && $goog$dom$removeNode$$(this.$element_$);
|
1085
|
-
this.$parent_$ = this.$model_$ = this.$element_$ = this.$childIndex_$ = this.$children_$ = $JSCompiler_alias_NULL$$
|
1086
|
-
};
|
1087
|
-
function $JSCompiler_StaticMethods_forEachChild$$($JSCompiler_StaticMethods_forEachChild$self$$, $f$$26$$) {
|
1088
|
-
$JSCompiler_StaticMethods_forEachChild$self$$.$children_$ && $goog$array$forEach$$($JSCompiler_StaticMethods_forEachChild$self$$.$children_$, $f$$26$$, $JSCompiler_alias_VOID$$)
|
1089
|
-
}
|
1090
|
-
$JSCompiler_prototypeAlias$$.removeChild = function $$JSCompiler_prototypeAlias$$$removeChild$($child$$15$$, $opt_unrender$$) {
|
1091
|
-
if($child$$15$$) {
|
1092
|
-
var $id$$5$$ = $goog$isString$$($child$$15$$) ? $child$$15$$ : $child$$15$$.$getId$(), $child$$15$$ = this.$childIndex_$ && $id$$5$$ ? ($id$$5$$ in this.$childIndex_$ ? this.$childIndex_$[$id$$5$$] : $JSCompiler_alias_VOID$$) || $JSCompiler_alias_NULL$$ : $JSCompiler_alias_NULL$$;
|
1093
|
-
if($id$$5$$ && $child$$15$$) {
|
1094
|
-
var $obj$$inline_189$$ = this.$childIndex_$;
|
1095
|
-
$id$$5$$ in $obj$$inline_189$$ && delete $obj$$inline_189$$[$id$$5$$];
|
1096
|
-
$goog$array$remove$$(this.$children_$, $child$$15$$);
|
1097
|
-
$opt_unrender$$ && ($JSCompiler_StaticMethods_exitDocument$$($child$$15$$), $child$$15$$.$element_$ && $goog$dom$removeNode$$($child$$15$$.$element_$));
|
1098
|
-
$JSCompiler_StaticMethods_setParent$$($child$$15$$, $JSCompiler_alias_NULL$$)
|
1099
|
-
}
|
1100
|
-
}
|
1101
|
-
$child$$15$$ || $JSCompiler_alias_THROW$$(Error("Child is not in parent component"));
|
1102
|
-
return $child$$15$$
|
1103
|
-
};
|
1104
|
-
function $example$App$$($dom$$1$$) {
|
1105
|
-
$goog$ui$Component$$.call(this, $dom$$1$$)
|
1106
|
-
}
|
1107
|
-
var $example$App$instance_$$;
|
1108
|
-
$goog$inherits$$($example$App$$, $goog$ui$Component$$);
|
1109
|
-
var $example$App$buttonClickHandler_$$ = $goog$nullFunction$$;
|
1110
|
-
$JSCompiler_prototypeAlias$$ = $example$App$$.prototype;
|
1111
|
-
$JSCompiler_prototypeAlias$$.$createDom$ = function $$JSCompiler_prototypeAlias$$$$createDom$$() {
|
1112
|
-
var $dom$$2$$ = this.$dom_$;
|
1113
|
-
this.$element_$ = $dom$$2$$.$createDom$("div", $JSCompiler_alias_VOID$$, $dom$$2$$.$createDom$("span", $JSCompiler_alias_VOID$$, "Messages appear here"), $dom$$2$$.$createDom$("button", $JSCompiler_alias_VOID$$, "Load Settings"))
|
1114
|
-
};
|
1115
|
-
$JSCompiler_prototypeAlias$$.$enterDocument$ = function $$JSCompiler_prototypeAlias$$$$enterDocument$$() {
|
1116
|
-
$example$App$$.$superClass_$.$enterDocument$.call(this);
|
1117
|
-
var $button$$1$$ = $goog$dom$getElementsByTagNameAndClass_$$(this.$dom_$.$document_$, "button", this.$getElement$())[0];
|
1118
|
-
$JSCompiler_StaticMethods_listen$$(this.$googUiComponentHandler_$ || (this.$googUiComponentHandler_$ = new $goog$events$EventHandler$$(this)), $button$$1$$, "click", this.$onButtonClick_$)
|
1119
|
-
};
|
1120
|
-
$JSCompiler_prototypeAlias$$.$onButtonClick_$ = function $$JSCompiler_prototypeAlias$$$$onButtonClick_$$($e$$16$$) {
|
1121
|
-
$example$App$buttonClickHandler_$$.call(this, $e$$16$$)
|
1122
|
-
};
|
1123
|
-
$JSCompiler_prototypeAlias$$.$onSettingsLoaded$ = function $$JSCompiler_prototypeAlias$$$$onSettingsLoaded$$() {
|
1124
|
-
this.$settings_$ = this.$children_$ ? this.$children_$[0] || $JSCompiler_alias_NULL$$ : $JSCompiler_alias_NULL$$
|
1125
|
-
};
|
1126
|
-
$JSCompiler_prototypeAlias$$.$setMessage$ = $JSCompiler_stubMethod$$(1);
|
1127
|
-
function $example$App$install$$($id$$6$$) {
|
1128
|
-
if(!$example$App$instance_$$) {
|
1129
|
-
var $dom$$3$$ = new $goog$dom$DomHelper$$, $app$$1$$ = new $example$App$$($dom$$3$$);
|
1130
|
-
$JSCompiler_StaticMethods_render_$$($app$$1$$, $dom$$3$$.$getElement$($id$$6$$));
|
1131
|
-
$example$App$instance_$$ = $app$$1$$
|
1132
|
-
}
|
1133
|
-
}
|
1134
|
-
$goog$exportPath_$$("example.App.install", $example$App$install$$);
|
1135
|
-
function $goog$structs$getValues$$($col$$1$$) {
|
1136
|
-
if(typeof $col$$1$$.$getValues$ == "function") {
|
1137
|
-
return $col$$1$$.$getValues$()
|
1138
|
-
}
|
1139
|
-
if($goog$isString$$($col$$1$$)) {
|
1140
|
-
return $col$$1$$.split("")
|
1141
|
-
}
|
1142
|
-
if($goog$isArrayLike$$($col$$1$$)) {
|
1143
|
-
for(var $rv$$15$$ = [], $l$$12$$ = $col$$1$$.length, $i$$75$$ = 0;$i$$75$$ < $l$$12$$;$i$$75$$++) {
|
1144
|
-
$rv$$15$$.push($col$$1$$[$i$$75$$])
|
1145
|
-
}
|
1146
|
-
return $rv$$15$$
|
1147
|
-
}
|
1148
|
-
return $goog$object$getValues$$($col$$1$$)
|
1149
|
-
}
|
1150
|
-
function $goog$structs$forEach$$($col$$6$$, $f$$27$$, $opt_obj$$27$$) {
|
1151
|
-
if(typeof $col$$6$$.forEach == "function") {
|
1152
|
-
$col$$6$$.forEach($f$$27$$, $opt_obj$$27$$)
|
1153
|
-
}else {
|
1154
|
-
if($goog$isArrayLike$$($col$$6$$) || $goog$isString$$($col$$6$$)) {
|
1155
|
-
$goog$array$forEach$$($col$$6$$, $f$$27$$, $opt_obj$$27$$)
|
1156
|
-
}else {
|
1157
|
-
var $keys$$1_rv$$inline_212$$;
|
1158
|
-
if(typeof $col$$6$$.$getKeys$ == "function") {
|
1159
|
-
$keys$$1_rv$$inline_212$$ = $col$$6$$.$getKeys$()
|
1160
|
-
}else {
|
1161
|
-
if(typeof $col$$6$$.$getValues$ != "function") {
|
1162
|
-
if($goog$isArrayLike$$($col$$6$$) || $goog$isString$$($col$$6$$)) {
|
1163
|
-
$keys$$1_rv$$inline_212$$ = [];
|
1164
|
-
for(var $l$$inline_213_values$$5$$ = $col$$6$$.length, $i$$inline_214_l$$14$$ = 0;$i$$inline_214_l$$14$$ < $l$$inline_213_values$$5$$;$i$$inline_214_l$$14$$++) {
|
1165
|
-
$keys$$1_rv$$inline_212$$.push($i$$inline_214_l$$14$$)
|
1166
|
-
}
|
1167
|
-
}else {
|
1168
|
-
$keys$$1_rv$$inline_212$$ = $goog$object$getKeys$$($col$$6$$)
|
1169
|
-
}
|
1170
|
-
}else {
|
1171
|
-
$keys$$1_rv$$inline_212$$ = $JSCompiler_alias_VOID$$
|
1172
|
-
}
|
1173
|
-
}
|
1174
|
-
for(var $l$$inline_213_values$$5$$ = $goog$structs$getValues$$($col$$6$$), $i$$inline_214_l$$14$$ = $l$$inline_213_values$$5$$.length, $i$$77$$ = 0;$i$$77$$ < $i$$inline_214_l$$14$$;$i$$77$$++) {
|
1175
|
-
$f$$27$$.call($opt_obj$$27$$, $l$$inline_213_values$$5$$[$i$$77$$], $keys$$1_rv$$inline_212$$ && $keys$$1_rv$$inline_212$$[$i$$77$$], $col$$6$$)
|
1176
|
-
}
|
1177
|
-
}
|
1178
|
-
}
|
1179
|
-
}
|
1180
|
-
;var $goog$iter$StopIteration$$ = "StopIteration" in $goog$global$$ ? $goog$global$$.StopIteration : Error("StopIteration");
|
1181
|
-
function $goog$iter$Iterator$$() {
|
1182
|
-
}
|
1183
|
-
$goog$iter$Iterator$$.prototype.next = function $$goog$iter$Iterator$$$$next$() {
|
1184
|
-
$JSCompiler_alias_THROW$$($goog$iter$StopIteration$$)
|
1185
|
-
};
|
1186
|
-
$goog$iter$Iterator$$.prototype.$__iterator__$ = function $$goog$iter$Iterator$$$$$__iterator__$$() {
|
1187
|
-
return this
|
1188
|
-
};
|
1189
|
-
function $goog$iter$toIterator$$($iterable$$) {
|
1190
|
-
if($iterable$$ instanceof $goog$iter$Iterator$$) {
|
1191
|
-
return $iterable$$
|
1192
|
-
}
|
1193
|
-
if(typeof $iterable$$.$__iterator__$ == "function") {
|
1194
|
-
return $iterable$$.$__iterator__$(!1)
|
1195
|
-
}
|
1196
|
-
if($goog$isArrayLike$$($iterable$$)) {
|
1197
|
-
var $i$$82$$ = 0, $newIter$$ = new $goog$iter$Iterator$$;
|
1198
|
-
$newIter$$.next = function $$newIter$$$next$() {
|
1199
|
-
for(;;) {
|
1200
|
-
if($i$$82$$ >= $iterable$$.length && $JSCompiler_alias_THROW$$($goog$iter$StopIteration$$), $i$$82$$ in $iterable$$) {
|
1201
|
-
return $iterable$$[$i$$82$$++]
|
1202
|
-
}else {
|
1203
|
-
$i$$82$$++
|
1204
|
-
}
|
1205
|
-
}
|
1206
|
-
};
|
1207
|
-
return $newIter$$
|
1208
|
-
}
|
1209
|
-
$JSCompiler_alias_THROW$$(Error("Not implemented"))
|
1210
|
-
}
|
1211
|
-
function $goog$iter$forEach$$($iterable$$1$$, $f$$32$$) {
|
1212
|
-
if($goog$isArrayLike$$($iterable$$1$$)) {
|
1213
|
-
try {
|
1214
|
-
$goog$array$forEach$$($iterable$$1$$, $f$$32$$, $JSCompiler_alias_VOID$$)
|
1215
|
-
}catch($ex$$3$$) {
|
1216
|
-
$ex$$3$$ !== $goog$iter$StopIteration$$ && $JSCompiler_alias_THROW$$($ex$$3$$)
|
1217
|
-
}
|
1218
|
-
}else {
|
1219
|
-
$iterable$$1$$ = $goog$iter$toIterator$$($iterable$$1$$);
|
1220
|
-
try {
|
1221
|
-
for(;;) {
|
1222
|
-
$f$$32$$.call($JSCompiler_alias_VOID$$, $iterable$$1$$.next(), $JSCompiler_alias_VOID$$, $iterable$$1$$)
|
1223
|
-
}
|
1224
|
-
}catch($ex$$4$$) {
|
1225
|
-
$ex$$4$$ !== $goog$iter$StopIteration$$ && $JSCompiler_alias_THROW$$($ex$$4$$)
|
1226
|
-
}
|
1227
|
-
}
|
1228
|
-
}
|
1229
|
-
;function $goog$structs$Map$$($opt_map$$, $var_args$$52$$) {
|
1230
|
-
this.$map_$ = {};
|
1231
|
-
this.$keys_$ = [];
|
1232
|
-
var $argLength$$2_keys$$inline_223$$ = arguments.length;
|
1233
|
-
if($argLength$$2_keys$$inline_223$$ > 1) {
|
1234
|
-
$argLength$$2_keys$$inline_223$$ % 2 && $JSCompiler_alias_THROW$$(Error("Uneven number of arguments"));
|
1235
|
-
for(var $i$$85_values$$inline_224$$ = 0;$i$$85_values$$inline_224$$ < $argLength$$2_keys$$inline_223$$;$i$$85_values$$inline_224$$ += 2) {
|
1236
|
-
this.set(arguments[$i$$85_values$$inline_224$$], arguments[$i$$85_values$$inline_224$$ + 1])
|
1237
|
-
}
|
1238
|
-
}else {
|
1239
|
-
if($opt_map$$) {
|
1240
|
-
$opt_map$$ instanceof $goog$structs$Map$$ ? ($argLength$$2_keys$$inline_223$$ = $opt_map$$.$getKeys$(), $i$$85_values$$inline_224$$ = $opt_map$$.$getValues$()) : ($argLength$$2_keys$$inline_223$$ = $goog$object$getKeys$$($opt_map$$), $i$$85_values$$inline_224$$ = $goog$object$getValues$$($opt_map$$));
|
1241
|
-
for(var $i$$inline_225$$ = 0;$i$$inline_225$$ < $argLength$$2_keys$$inline_223$$.length;$i$$inline_225$$++) {
|
1242
|
-
this.set($argLength$$2_keys$$inline_223$$[$i$$inline_225$$], $i$$85_values$$inline_224$$[$i$$inline_225$$])
|
1243
|
-
}
|
1244
|
-
}
|
1245
|
-
}
|
1246
|
-
}
|
1247
|
-
$JSCompiler_prototypeAlias$$ = $goog$structs$Map$$.prototype;
|
1248
|
-
$JSCompiler_prototypeAlias$$.$count_$ = 0;
|
1249
|
-
$JSCompiler_prototypeAlias$$.$version_$ = 0;
|
1250
|
-
$JSCompiler_prototypeAlias$$.$getValues$ = function $$JSCompiler_prototypeAlias$$$$getValues$$() {
|
1251
|
-
$JSCompiler_StaticMethods_cleanupKeysArray_$$(this);
|
1252
|
-
for(var $rv$$20$$ = [], $i$$86$$ = 0;$i$$86$$ < this.$keys_$.length;$i$$86$$++) {
|
1253
|
-
$rv$$20$$.push(this.$map_$[this.$keys_$[$i$$86$$]])
|
1254
|
-
}
|
1255
|
-
return $rv$$20$$
|
1256
|
-
};
|
1257
|
-
$JSCompiler_prototypeAlias$$.$getKeys$ = function $$JSCompiler_prototypeAlias$$$$getKeys$$() {
|
1258
|
-
$JSCompiler_StaticMethods_cleanupKeysArray_$$(this);
|
1259
|
-
return this.$keys_$.concat()
|
1260
|
-
};
|
1261
|
-
$JSCompiler_prototypeAlias$$.clear = function $$JSCompiler_prototypeAlias$$$clear$() {
|
1262
|
-
this.$map_$ = {};
|
1263
|
-
this.$version_$ = this.$count_$ = this.$keys_$.length = 0
|
1264
|
-
};
|
1265
|
-
function $JSCompiler_StaticMethods_cleanupKeysArray_$$($JSCompiler_StaticMethods_cleanupKeysArray_$self$$) {
|
1266
|
-
if($JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$count_$ != $JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$.length) {
|
1267
|
-
for(var $srcIndex$$ = 0, $destIndex$$ = 0;$srcIndex$$ < $JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$.length;) {
|
1268
|
-
var $key$$59$$ = $JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$[$srcIndex$$];
|
1269
|
-
Object.prototype.hasOwnProperty.call($JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$map_$, $key$$59$$) && ($JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$[$destIndex$$++] = $key$$59$$);
|
1270
|
-
$srcIndex$$++
|
1271
|
-
}
|
1272
|
-
$JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$.length = $destIndex$$
|
1273
|
-
}
|
1274
|
-
if($JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$count_$ != $JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$.length) {
|
1275
|
-
for(var $seen$$2$$ = {}, $destIndex$$ = $srcIndex$$ = 0;$srcIndex$$ < $JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$.length;) {
|
1276
|
-
$key$$59$$ = $JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$[$srcIndex$$], Object.prototype.hasOwnProperty.call($seen$$2$$, $key$$59$$) || ($JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$[$destIndex$$++] = $key$$59$$, $seen$$2$$[$key$$59$$] = 1), $srcIndex$$++
|
1277
|
-
}
|
1278
|
-
$JSCompiler_StaticMethods_cleanupKeysArray_$self$$.$keys_$.length = $destIndex$$
|
1279
|
-
}
|
1280
|
-
}
|
1281
|
-
$JSCompiler_prototypeAlias$$.get = function $$JSCompiler_prototypeAlias$$$get$($key$$60$$, $opt_val$$1$$) {
|
1282
|
-
return Object.prototype.hasOwnProperty.call(this.$map_$, $key$$60$$) ? this.$map_$[$key$$60$$] : $opt_val$$1$$
|
1283
|
-
};
|
1284
|
-
$JSCompiler_prototypeAlias$$.set = function $$JSCompiler_prototypeAlias$$$set$($key$$61$$, $value$$62$$) {
|
1285
|
-
Object.prototype.hasOwnProperty.call(this.$map_$, $key$$61$$) || (this.$count_$++, this.$keys_$.push($key$$61$$), this.$version_$++);
|
1286
|
-
this.$map_$[$key$$61$$] = $value$$62$$
|
1287
|
-
};
|
1288
|
-
$JSCompiler_prototypeAlias$$.$__iterator__$ = function $$JSCompiler_prototypeAlias$$$$__iterator__$$($opt_keys$$1$$) {
|
1289
|
-
$JSCompiler_StaticMethods_cleanupKeysArray_$$(this);
|
1290
|
-
var $i$$92$$ = 0, $keys$$7$$ = this.$keys_$, $map$$8$$ = this.$map_$, $version$$10$$ = this.$version_$, $selfObj$$4$$ = this, $newIter$$7$$ = new $goog$iter$Iterator$$;
|
1291
|
-
$newIter$$7$$.next = function $$newIter$$7$$$next$() {
|
1292
|
-
for(;;) {
|
1293
|
-
$version$$10$$ != $selfObj$$4$$.$version_$ && $JSCompiler_alias_THROW$$(Error("The map has changed since the iterator was created"));
|
1294
|
-
$i$$92$$ >= $keys$$7$$.length && $JSCompiler_alias_THROW$$($goog$iter$StopIteration$$);
|
1295
|
-
var $key$$64$$ = $keys$$7$$[$i$$92$$++];
|
1296
|
-
return $opt_keys$$1$$ ? $key$$64$$ : $map$$8$$[$key$$64$$]
|
1297
|
-
}
|
1298
|
-
};
|
1299
|
-
return $newIter$$7$$
|
1300
|
-
};
|
1301
|
-
function $goog$debug$getStacktrace$$($opt_fn$$4$$) {
|
1302
|
-
return $goog$debug$getStacktraceHelper_$$($opt_fn$$4$$ || arguments.callee.caller, [])
|
1303
|
-
}
|
1304
|
-
function $goog$debug$getStacktraceHelper_$$($fn$$7$$, $visited$$) {
|
1305
|
-
var $sb$$3$$ = [];
|
1306
|
-
if($goog$array$contains$$($visited$$, $fn$$7$$)) {
|
1307
|
-
$sb$$3$$.push("[...circular reference...]")
|
1308
|
-
}else {
|
1309
|
-
if($fn$$7$$ && $visited$$.length < 50) {
|
1310
|
-
$sb$$3$$.push($goog$debug$getFunctionName$$($fn$$7$$) + "(");
|
1311
|
-
for(var $args$$10$$ = $fn$$7$$.arguments, $i$$97$$ = 0;$i$$97$$ < $args$$10$$.length;$i$$97$$++) {
|
1312
|
-
$i$$97$$ > 0 && $sb$$3$$.push(", ");
|
1313
|
-
var $arg$$6_argDesc$$;
|
1314
|
-
$arg$$6_argDesc$$ = $args$$10$$[$i$$97$$];
|
1315
|
-
switch(typeof $arg$$6_argDesc$$) {
|
1316
|
-
case "object":
|
1317
|
-
$arg$$6_argDesc$$ = $arg$$6_argDesc$$ ? "object" : "null";
|
1318
|
-
break;
|
1319
|
-
case "string":
|
1320
|
-
break;
|
1321
|
-
case "number":
|
1322
|
-
$arg$$6_argDesc$$ = String($arg$$6_argDesc$$);
|
1323
|
-
break;
|
1324
|
-
case "boolean":
|
1325
|
-
$arg$$6_argDesc$$ = $arg$$6_argDesc$$ ? "true" : "false";
|
1326
|
-
break;
|
1327
|
-
case "function":
|
1328
|
-
$arg$$6_argDesc$$ = ($arg$$6_argDesc$$ = $goog$debug$getFunctionName$$($arg$$6_argDesc$$)) ? $arg$$6_argDesc$$ : "[fn]";
|
1329
|
-
break;
|
1330
|
-
default:
|
1331
|
-
$arg$$6_argDesc$$ = typeof $arg$$6_argDesc$$
|
1332
|
-
}
|
1333
|
-
$arg$$6_argDesc$$.length > 40 && ($arg$$6_argDesc$$ = $arg$$6_argDesc$$.substr(0, 40) + "...");
|
1334
|
-
$sb$$3$$.push($arg$$6_argDesc$$)
|
1335
|
-
}
|
1336
|
-
$visited$$.push($fn$$7$$);
|
1337
|
-
$sb$$3$$.push(")\n");
|
1338
|
-
try {
|
1339
|
-
$sb$$3$$.push($goog$debug$getStacktraceHelper_$$($fn$$7$$.caller, $visited$$))
|
1340
|
-
}catch($e$$25$$) {
|
1341
|
-
$sb$$3$$.push("[exception trying to get caller]\n")
|
1342
|
-
}
|
1343
|
-
}else {
|
1344
|
-
$fn$$7$$ ? $sb$$3$$.push("[...long stack...]") : $sb$$3$$.push("[end]")
|
1345
|
-
}
|
1346
|
-
}
|
1347
|
-
return $sb$$3$$.join("")
|
1348
|
-
}
|
1349
|
-
function $goog$debug$getFunctionName$$($fn$$8_functionSource$$) {
|
1350
|
-
if($goog$debug$fnNameCache_$$[$fn$$8_functionSource$$]) {
|
1351
|
-
return $goog$debug$fnNameCache_$$[$fn$$8_functionSource$$]
|
1352
|
-
}
|
1353
|
-
$fn$$8_functionSource$$ = String($fn$$8_functionSource$$);
|
1354
|
-
if(!$goog$debug$fnNameCache_$$[$fn$$8_functionSource$$]) {
|
1355
|
-
var $matches$$ = /function ([^\(]+)/.exec($fn$$8_functionSource$$);
|
1356
|
-
$goog$debug$fnNameCache_$$[$fn$$8_functionSource$$] = $matches$$ ? $matches$$[1] : "[Anonymous]"
|
1357
|
-
}
|
1358
|
-
return $goog$debug$fnNameCache_$$[$fn$$8_functionSource$$]
|
1359
|
-
}
|
1360
|
-
var $goog$debug$fnNameCache_$$ = {};
|
1361
|
-
function $goog$debug$LogRecord$$($level$$5$$, $msg$$4$$, $loggerName$$, $opt_time$$, $opt_sequenceNumber$$) {
|
1362
|
-
this.reset($level$$5$$, $msg$$4$$, $loggerName$$, $opt_time$$, $opt_sequenceNumber$$)
|
1363
|
-
}
|
1364
|
-
$goog$debug$LogRecord$$.prototype.$sequenceNumber_$ = 0;
|
1365
|
-
$goog$debug$LogRecord$$.prototype.$exception_$ = $JSCompiler_alias_NULL$$;
|
1366
|
-
$goog$debug$LogRecord$$.prototype.$exceptionText_$ = $JSCompiler_alias_NULL$$;
|
1367
|
-
var $goog$debug$LogRecord$nextSequenceNumber_$$ = 0;
|
1368
|
-
$goog$debug$LogRecord$$.prototype.reset = function $$goog$debug$LogRecord$$$$reset$($level$$6$$, $msg$$5$$, $loggerName$$1$$, $opt_time$$1$$, $opt_sequenceNumber$$1$$) {
|
1369
|
-
this.$sequenceNumber_$ = typeof $opt_sequenceNumber$$1$$ == "number" ? $opt_sequenceNumber$$1$$ : $goog$debug$LogRecord$nextSequenceNumber_$$++;
|
1370
|
-
this.$time_$ = $opt_time$$1$$ || $goog$now$$();
|
1371
|
-
this.$level_$ = $level$$6$$;
|
1372
|
-
this.$msg_$ = $msg$$5$$;
|
1373
|
-
this.$loggerName_$ = $loggerName$$1$$;
|
1374
|
-
delete this.$exception_$;
|
1375
|
-
delete this.$exceptionText_$
|
1376
|
-
};
|
1377
|
-
$goog$debug$LogRecord$$.prototype.$setLevel$ = function $$goog$debug$LogRecord$$$$$setLevel$$($level$$7$$) {
|
1378
|
-
this.$level_$ = $level$$7$$
|
1379
|
-
};
|
1380
|
-
$goog$debug$LogRecord$$.prototype.$setMessage$ = $JSCompiler_stubMethod$$(0);
|
1381
|
-
function $goog$debug$Logger$$($name$$63$$) {
|
1382
|
-
this.$name_$ = $name$$63$$
|
1383
|
-
}
|
1384
|
-
$goog$debug$Logger$$.prototype.$parent_$ = $JSCompiler_alias_NULL$$;
|
1385
|
-
$goog$debug$Logger$$.prototype.$level_$ = $JSCompiler_alias_NULL$$;
|
1386
|
-
$goog$debug$Logger$$.prototype.$children_$ = $JSCompiler_alias_NULL$$;
|
1387
|
-
$goog$debug$Logger$$.prototype.$handlers_$ = $JSCompiler_alias_NULL$$;
|
1388
|
-
function $goog$debug$Logger$Level$$($name$$64$$, $value$$66$$) {
|
1389
|
-
this.name = $name$$64$$;
|
1390
|
-
this.value = $value$$66$$
|
1391
|
-
}
|
1392
|
-
$goog$debug$Logger$Level$$.prototype.toString = $JSCompiler_get$$("name");
|
1393
|
-
var $goog$debug$Logger$Level$SEVERE$$ = new $goog$debug$Logger$Level$$("SEVERE", 1E3), $goog$debug$Logger$Level$WARNING$$ = new $goog$debug$Logger$Level$$("WARNING", 900), $goog$debug$Logger$Level$INFO$$ = new $goog$debug$Logger$Level$$("INFO", 800), $goog$debug$Logger$Level$CONFIG$$ = new $goog$debug$Logger$Level$$("CONFIG", 700), $goog$debug$Logger$Level$FINE$$ = new $goog$debug$Logger$Level$$("FINE", 500), $goog$debug$Logger$Level$FINEST$$ = new $goog$debug$Logger$Level$$("FINEST", 300);
|
1394
|
-
$JSCompiler_prototypeAlias$$ = $goog$debug$Logger$$.prototype;
|
1395
|
-
$JSCompiler_prototypeAlias$$.getParent = $JSCompiler_get$$("$parent_$");
|
1396
|
-
$JSCompiler_prototypeAlias$$.$setLevel$ = function $$JSCompiler_prototypeAlias$$$$setLevel$$($level$$11$$) {
|
1397
|
-
this.$level_$ = $level$$11$$
|
1398
|
-
};
|
1399
|
-
function $JSCompiler_StaticMethods_getEffectiveLevel$$($JSCompiler_StaticMethods_getEffectiveLevel$self$$) {
|
1400
|
-
if($JSCompiler_StaticMethods_getEffectiveLevel$self$$.$level_$) {
|
1401
|
-
return $JSCompiler_StaticMethods_getEffectiveLevel$self$$.$level_$
|
1402
|
-
}
|
1403
|
-
if($JSCompiler_StaticMethods_getEffectiveLevel$self$$.$parent_$) {
|
1404
|
-
return $JSCompiler_StaticMethods_getEffectiveLevel$$($JSCompiler_StaticMethods_getEffectiveLevel$self$$.$parent_$)
|
1405
|
-
}
|
1406
|
-
$goog$asserts$fail$$("Root logger has no level set.");
|
1407
|
-
return $JSCompiler_alias_NULL$$
|
1408
|
-
}
|
1409
|
-
$JSCompiler_prototypeAlias$$.log = function $$JSCompiler_prototypeAlias$$$log$($level$$13_logRecord$$inline_231$$, $msg$$9_msg$$inline_467_target$$inline_232$$, $JSCompiler_StaticMethods_callPublish_$self$$inline_473_opt_exception$$) {
|
1410
|
-
if($level$$13_logRecord$$inline_231$$.value >= $JSCompiler_StaticMethods_getEffectiveLevel$$(this).value) {
|
1411
|
-
$level$$13_logRecord$$inline_231$$ = this.$getLogRecord$($level$$13_logRecord$$inline_231$$, $msg$$9_msg$$inline_467_target$$inline_232$$, $JSCompiler_StaticMethods_callPublish_$self$$inline_473_opt_exception$$);
|
1412
|
-
$msg$$9_msg$$inline_467_target$$inline_232$$ = "log:" + $level$$13_logRecord$$inline_231$$.$msg_$;
|
1413
|
-
$goog$global$$.console && ($goog$global$$.console.timeStamp ? $goog$global$$.console.timeStamp($msg$$9_msg$$inline_467_target$$inline_232$$) : $goog$global$$.console.markTimeline && $goog$global$$.console.markTimeline($msg$$9_msg$$inline_467_target$$inline_232$$));
|
1414
|
-
$goog$global$$.msWriteProfilerMark && $goog$global$$.msWriteProfilerMark($msg$$9_msg$$inline_467_target$$inline_232$$);
|
1415
|
-
for($msg$$9_msg$$inline_467_target$$inline_232$$ = this;$msg$$9_msg$$inline_467_target$$inline_232$$;) {
|
1416
|
-
var $JSCompiler_StaticMethods_callPublish_$self$$inline_473_opt_exception$$ = $msg$$9_msg$$inline_467_target$$inline_232$$, $logRecord$$inline_474$$ = $level$$13_logRecord$$inline_231$$;
|
1417
|
-
if($JSCompiler_StaticMethods_callPublish_$self$$inline_473_opt_exception$$.$handlers_$) {
|
1418
|
-
for(var $i$$inline_475$$ = 0, $handler$$inline_476$$ = $JSCompiler_alias_VOID$$;$handler$$inline_476$$ = $JSCompiler_StaticMethods_callPublish_$self$$inline_473_opt_exception$$.$handlers_$[$i$$inline_475$$];$i$$inline_475$$++) {
|
1419
|
-
$handler$$inline_476$$($logRecord$$inline_474$$)
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
$msg$$9_msg$$inline_467_target$$inline_232$$ = $msg$$9_msg$$inline_467_target$$inline_232$$.getParent()
|
1423
|
-
}
|
1424
|
-
}
|
1425
|
-
};
|
1426
|
-
$JSCompiler_prototypeAlias$$.$getLogRecord$ = function $$JSCompiler_prototypeAlias$$$$getLogRecord$$($level$$14$$, $msg$$10$$, $opt_exception$$1$$) {
|
1427
|
-
var $logRecord$$ = new $goog$debug$LogRecord$$($level$$14$$, String($msg$$10$$), this.$name_$);
|
1428
|
-
if($opt_exception$$1$$) {
|
1429
|
-
$logRecord$$.$exception_$ = $opt_exception$$1$$;
|
1430
|
-
var $JSCompiler_inline_result$$254$$;
|
1431
|
-
var $opt_fn$$inline_259$$ = arguments.callee.caller;
|
1432
|
-
try {
|
1433
|
-
var $e$$inline_260$$;
|
1434
|
-
var $href$$inline_484$$ = $goog$getObjectByName$$("window.location.href");
|
1435
|
-
if($goog$isString$$($opt_exception$$1$$)) {
|
1436
|
-
$e$$inline_260$$ = {message:$opt_exception$$1$$, name:"Unknown error", lineNumber:"Not available", fileName:$href$$inline_484$$, stack:"Not available"}
|
1437
|
-
}else {
|
1438
|
-
var $lineNumber$$inline_485$$, $fileName$$inline_486$$, $threwError$$inline_487$$ = !1;
|
1439
|
-
try {
|
1440
|
-
$lineNumber$$inline_485$$ = $opt_exception$$1$$.lineNumber || $opt_exception$$1$$.$line$ || "Not available"
|
1441
|
-
}catch($e$$inline_488$$) {
|
1442
|
-
$lineNumber$$inline_485$$ = "Not available", $threwError$$inline_487$$ = !0
|
1443
|
-
}
|
1444
|
-
try {
|
1445
|
-
$fileName$$inline_486$$ = $opt_exception$$1$$.fileName || $opt_exception$$1$$.filename || $opt_exception$$1$$.sourceURL || $href$$inline_484$$
|
1446
|
-
}catch($e$$inline_489$$) {
|
1447
|
-
$fileName$$inline_486$$ = "Not available", $threwError$$inline_487$$ = !0
|
1448
|
-
}
|
1449
|
-
$e$$inline_260$$ = $threwError$$inline_487$$ || !$opt_exception$$1$$.lineNumber || !$opt_exception$$1$$.fileName || !$opt_exception$$1$$.stack ? {message:$opt_exception$$1$$.message, name:$opt_exception$$1$$.name, lineNumber:$lineNumber$$inline_485$$, fileName:$fileName$$inline_486$$, stack:$opt_exception$$1$$.stack || "Not available"} : $opt_exception$$1$$
|
1450
|
-
}
|
1451
|
-
$JSCompiler_inline_result$$254$$ = "Message: " + $goog$string$htmlEscape$$($e$$inline_260$$.message) + '\nUrl: <a href="view-source:' + $e$$inline_260$$.fileName + '" target="_new">' + $e$$inline_260$$.fileName + "</a>\nLine: " + $e$$inline_260$$.lineNumber + "\n\nBrowser stack:\n" + $goog$string$htmlEscape$$($e$$inline_260$$.stack + "-> ") + "[end]\n\nJS stack traversal:\n" + $goog$string$htmlEscape$$($goog$debug$getStacktrace$$($opt_fn$$inline_259$$) + "-> ")
|
1452
|
-
}catch($e2$$inline_261$$) {
|
1453
|
-
$JSCompiler_inline_result$$254$$ = "Exception trying to expose exception! You win, we lose. " + $e2$$inline_261$$
|
1454
|
-
}
|
1455
|
-
$logRecord$$.$exceptionText_$ = $JSCompiler_inline_result$$254$$
|
1456
|
-
}
|
1457
|
-
return $logRecord$$
|
1458
|
-
};
|
1459
|
-
$JSCompiler_prototypeAlias$$.info = function $$JSCompiler_prototypeAlias$$$info$($msg$$14$$, $opt_exception$$5$$) {
|
1460
|
-
this.log($goog$debug$Logger$Level$INFO$$, $msg$$14$$, $opt_exception$$5$$)
|
1461
|
-
};
|
1462
|
-
function $JSCompiler_StaticMethods_fine$$($JSCompiler_StaticMethods_fine$self$$, $msg$$16$$) {
|
1463
|
-
$JSCompiler_StaticMethods_fine$self$$.log($goog$debug$Logger$Level$FINE$$, $msg$$16$$, $JSCompiler_alias_VOID$$)
|
1464
|
-
}
|
1465
|
-
var $goog$debug$LogManager$loggers_$$ = {}, $goog$debug$LogManager$rootLogger_$$ = $JSCompiler_alias_NULL$$;
|
1466
|
-
function $goog$debug$LogManager$getLogger$$($name$$68$$) {
|
1467
|
-
$goog$debug$LogManager$rootLogger_$$ || ($goog$debug$LogManager$rootLogger_$$ = new $goog$debug$Logger$$(""), $goog$debug$LogManager$loggers_$$[""] = $goog$debug$LogManager$rootLogger_$$, $goog$debug$LogManager$rootLogger_$$.$setLevel$($goog$debug$Logger$Level$CONFIG$$));
|
1468
|
-
var $JSCompiler_temp$$0_logger$$inline_279$$;
|
1469
|
-
if(!($JSCompiler_temp$$0_logger$$inline_279$$ = $goog$debug$LogManager$loggers_$$[$name$$68$$])) {
|
1470
|
-
$JSCompiler_temp$$0_logger$$inline_279$$ = new $goog$debug$Logger$$($name$$68$$);
|
1471
|
-
var $lastDotIndex$$inline_280_parentLogger$$inline_282$$ = $name$$68$$.lastIndexOf("."), $leafName$$inline_281$$ = $name$$68$$.substr($lastDotIndex$$inline_280_parentLogger$$inline_282$$ + 1), $lastDotIndex$$inline_280_parentLogger$$inline_282$$ = $goog$debug$LogManager$getLogger$$($name$$68$$.substr(0, $lastDotIndex$$inline_280_parentLogger$$inline_282$$));
|
1472
|
-
if(!$lastDotIndex$$inline_280_parentLogger$$inline_282$$.$children_$) {
|
1473
|
-
$lastDotIndex$$inline_280_parentLogger$$inline_282$$.$children_$ = {}
|
1474
|
-
}
|
1475
|
-
$lastDotIndex$$inline_280_parentLogger$$inline_282$$.$children_$[$leafName$$inline_281$$] = $JSCompiler_temp$$0_logger$$inline_279$$;
|
1476
|
-
$JSCompiler_temp$$0_logger$$inline_279$$.$parent_$ = $lastDotIndex$$inline_280_parentLogger$$inline_282$$;
|
1477
|
-
$goog$debug$LogManager$loggers_$$[$name$$68$$] = $JSCompiler_temp$$0_logger$$inline_279$$
|
1478
|
-
}
|
1479
|
-
return $JSCompiler_temp$$0_logger$$inline_279$$
|
1480
|
-
}
|
1481
|
-
;function $goog$module$BaseModuleLoader$$() {
|
1482
|
-
}
|
1483
|
-
$goog$inherits$$($goog$module$BaseModuleLoader$$, $goog$Disposable$$);
|
1484
|
-
$goog$module$BaseModuleLoader$$.prototype.$logger$ = $goog$debug$LogManager$getLogger$$("goog.module.BaseModuleLoader");
|
1485
|
-
$goog$module$BaseModuleLoader$$.prototype.$debugMode_$ = !1;
|
1486
|
-
$goog$module$BaseModuleLoader$$.prototype.$codePostfix_$ = $JSCompiler_alias_NULL$$;
|
1487
|
-
$goog$module$BaseModuleLoader$$.prototype.$loadModulesInternal$ = function $$goog$module$BaseModuleLoader$$$$$loadModulesInternal$$() {
|
1488
|
-
};
|
1489
|
-
function $goog$net$BulkLoaderHelper$$($uris$$) {
|
1490
|
-
this.$uris_$ = $uris$$;
|
1491
|
-
this.$responseTexts_$ = []
|
1492
|
-
}
|
1493
|
-
$goog$inherits$$($goog$net$BulkLoaderHelper$$, $goog$Disposable$$);
|
1494
|
-
$goog$net$BulkLoaderHelper$$.prototype.$logger_$ = $goog$debug$LogManager$getLogger$$("goog.net.BulkLoaderHelper");
|
1495
|
-
$goog$net$BulkLoaderHelper$$.prototype.$getResponseTexts$ = $JSCompiler_get$$("$responseTexts_$");
|
1496
|
-
$goog$net$BulkLoaderHelper$$.prototype.$disposeInternal$ = function $$goog$net$BulkLoaderHelper$$$$$disposeInternal$$() {
|
1497
|
-
$goog$net$BulkLoaderHelper$$.$superClass_$.$disposeInternal$.call(this);
|
1498
|
-
this.$responseTexts_$ = this.$uris_$ = $JSCompiler_alias_NULL$$
|
1499
|
-
};
|
1500
|
-
var $goog$Timer$defaultTimerObject$$ = $goog$global$$.window;
|
1501
|
-
function $goog$Timer$callOnce$$($listener$$47$$, $opt_handler$$13$$) {
|
1502
|
-
$goog$isFunction$$($listener$$47$$) ? $opt_handler$$13$$ && ($listener$$47$$ = $goog$bind$$($listener$$47$$, $opt_handler$$13$$)) : $listener$$47$$ && typeof $listener$$47$$.handleEvent == "function" ? $listener$$47$$ = $goog$bind$$($listener$$47$$.handleEvent, $listener$$47$$) : $JSCompiler_alias_THROW$$(Error("Invalid listener argument"));
|
1503
|
-
$goog$Timer$defaultTimerObject$$.setTimeout($listener$$47$$, 5)
|
1504
|
-
}
|
1505
|
-
;function $goog$net$XmlHttpFactory$$() {
|
1506
|
-
}
|
1507
|
-
$goog$net$XmlHttpFactory$$.prototype.$cachedOptions_$ = $JSCompiler_alias_NULL$$;
|
1508
|
-
var $goog$net$XmlHttp$factory_$$;
|
1509
|
-
function $goog$net$DefaultXmlHttpFactory$$() {
|
1510
|
-
}
|
1511
|
-
$goog$inherits$$($goog$net$DefaultXmlHttpFactory$$, $goog$net$XmlHttpFactory$$);
|
1512
|
-
function $JSCompiler_StaticMethods_createInstance$$($JSCompiler_StaticMethods_createInstance$self_progId$$1$$) {
|
1513
|
-
return($JSCompiler_StaticMethods_createInstance$self_progId$$1$$ = $JSCompiler_StaticMethods_getProgId_$$($JSCompiler_StaticMethods_createInstance$self_progId$$1$$)) ? new ActiveXObject($JSCompiler_StaticMethods_createInstance$self_progId$$1$$) : new XMLHttpRequest
|
1514
|
-
}
|
1515
|
-
function $JSCompiler_StaticMethods_internalGetOptions$$($JSCompiler_StaticMethods_internalGetOptions$self$$) {
|
1516
|
-
var $options$$2$$ = {};
|
1517
|
-
$JSCompiler_StaticMethods_getProgId_$$($JSCompiler_StaticMethods_internalGetOptions$self$$) && ($options$$2$$[0] = !0, $options$$2$$[1] = !0);
|
1518
|
-
return $options$$2$$
|
1519
|
-
}
|
1520
|
-
$goog$net$DefaultXmlHttpFactory$$.prototype.$ieProgId_$ = $JSCompiler_alias_NULL$$;
|
1521
|
-
function $JSCompiler_StaticMethods_getProgId_$$($JSCompiler_StaticMethods_getProgId_$self$$) {
|
1522
|
-
if(!$JSCompiler_StaticMethods_getProgId_$self$$.$ieProgId_$ && typeof XMLHttpRequest == "undefined" && typeof ActiveXObject != "undefined") {
|
1523
|
-
for(var $ACTIVE_X_IDENTS$$ = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], $i$$105$$ = 0;$i$$105$$ < $ACTIVE_X_IDENTS$$.length;$i$$105$$++) {
|
1524
|
-
var $candidate$$ = $ACTIVE_X_IDENTS$$[$i$$105$$];
|
1525
|
-
try {
|
1526
|
-
return new ActiveXObject($candidate$$), $JSCompiler_StaticMethods_getProgId_$self$$.$ieProgId_$ = $candidate$$
|
1527
|
-
}catch($e$$27$$) {
|
1528
|
-
}
|
1529
|
-
}
|
1530
|
-
$JSCompiler_alias_THROW$$(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))
|
1531
|
-
}
|
1532
|
-
return $JSCompiler_StaticMethods_getProgId_$self$$.$ieProgId_$
|
1533
|
-
}
|
1534
|
-
$goog$net$XmlHttp$factory_$$ = new $goog$net$DefaultXmlHttpFactory$$;
|
1535
|
-
function $goog$net$XhrMonitor_$$() {
|
1536
|
-
if($goog$userAgent$GECKO$$) {
|
1537
|
-
this.$contextsToXhr_$ = {}, this.$xhrToContexts_$ = {}, this.$stack_$ = []
|
1538
|
-
}
|
1539
|
-
}
|
1540
|
-
$goog$net$XhrMonitor_$$.prototype.$logger_$ = $goog$debug$LogManager$getLogger$$("goog.net.xhrMonitor");
|
1541
|
-
$goog$net$XhrMonitor_$$.prototype.$enabled_$ = $goog$userAgent$GECKO$$;
|
1542
|
-
function $JSCompiler_StaticMethods_pushContext$$($context$$) {
|
1543
|
-
var $JSCompiler_StaticMethods_pushContext$self$$ = $goog$net$xhrMonitor$$;
|
1544
|
-
if($JSCompiler_StaticMethods_pushContext$self$$.$enabled_$) {
|
1545
|
-
var $key$$67$$ = $goog$isString$$($context$$) ? $context$$ : $goog$isObject$$($context$$) ? $goog$getUid$$($context$$) : "";
|
1546
|
-
$JSCompiler_StaticMethods_pushContext$self$$.$logger_$.log($goog$debug$Logger$Level$FINEST$$, "Pushing context: " + $context$$ + " (" + $key$$67$$ + ")", $JSCompiler_alias_VOID$$);
|
1547
|
-
$JSCompiler_StaticMethods_pushContext$self$$.$stack_$.push($key$$67$$)
|
1548
|
-
}
|
1549
|
-
}
|
1550
|
-
function $JSCompiler_StaticMethods_popContext$$() {
|
1551
|
-
var $JSCompiler_StaticMethods_popContext$self$$ = $goog$net$xhrMonitor$$;
|
1552
|
-
if($JSCompiler_StaticMethods_popContext$self$$.$enabled_$) {
|
1553
|
-
var $context$$1$$ = $JSCompiler_StaticMethods_popContext$self$$.$stack_$.pop();
|
1554
|
-
$JSCompiler_StaticMethods_popContext$self$$.$logger_$.log($goog$debug$Logger$Level$FINEST$$, "Popping context: " + $context$$1$$, $JSCompiler_alias_VOID$$);
|
1555
|
-
$JSCompiler_StaticMethods_updateDependentContexts_$$($JSCompiler_StaticMethods_popContext$self$$, $context$$1$$)
|
1556
|
-
}
|
1557
|
-
}
|
1558
|
-
function $JSCompiler_StaticMethods_markXhrOpen$$($uid$$1_xhr$$) {
|
1559
|
-
var $JSCompiler_StaticMethods_markXhrOpen$self$$ = $goog$net$xhrMonitor$$;
|
1560
|
-
if($JSCompiler_StaticMethods_markXhrOpen$self$$.$enabled_$) {
|
1561
|
-
$uid$$1_xhr$$ = $goog$getUid$$($uid$$1_xhr$$);
|
1562
|
-
$JSCompiler_StaticMethods_fine$$($JSCompiler_StaticMethods_markXhrOpen$self$$.$logger_$, "Opening XHR : " + $uid$$1_xhr$$);
|
1563
|
-
for(var $i$$106$$ = 0;$i$$106$$ < $JSCompiler_StaticMethods_markXhrOpen$self$$.$stack_$.length;$i$$106$$++) {
|
1564
|
-
var $context$$3$$ = $JSCompiler_StaticMethods_markXhrOpen$self$$.$stack_$[$i$$106$$];
|
1565
|
-
$JSCompiler_StaticMethods_addToMap_$$($JSCompiler_StaticMethods_markXhrOpen$self$$.$contextsToXhr_$, $context$$3$$, $uid$$1_xhr$$);
|
1566
|
-
$JSCompiler_StaticMethods_addToMap_$$($JSCompiler_StaticMethods_markXhrOpen$self$$.$xhrToContexts_$, $uid$$1_xhr$$, $context$$3$$)
|
1567
|
-
}
|
1568
|
-
}
|
1569
|
-
}
|
1570
|
-
function $JSCompiler_StaticMethods_updateDependentContexts_$$($JSCompiler_StaticMethods_updateDependentContexts_$self$$, $xhrUid$$) {
|
1571
|
-
var $contexts$$ = $JSCompiler_StaticMethods_updateDependentContexts_$self$$.$xhrToContexts_$[$xhrUid$$], $xhrs$$ = $JSCompiler_StaticMethods_updateDependentContexts_$self$$.$contextsToXhr_$[$xhrUid$$];
|
1572
|
-
$contexts$$ && $xhrs$$ && ($JSCompiler_StaticMethods_updateDependentContexts_$self$$.$logger_$.log($goog$debug$Logger$Level$FINEST$$, "Updating dependent contexts", $JSCompiler_alias_VOID$$), $goog$array$forEach$$($contexts$$, function($context$$5$$) {
|
1573
|
-
$goog$array$forEach$$($xhrs$$, function($xhr$$2$$) {
|
1574
|
-
$JSCompiler_StaticMethods_addToMap_$$(this.$contextsToXhr_$, $context$$5$$, $xhr$$2$$);
|
1575
|
-
$JSCompiler_StaticMethods_addToMap_$$(this.$xhrToContexts_$, $xhr$$2$$, $context$$5$$)
|
1576
|
-
}, this)
|
1577
|
-
}, $JSCompiler_StaticMethods_updateDependentContexts_$self$$))
|
1578
|
-
}
|
1579
|
-
function $JSCompiler_StaticMethods_addToMap_$$($map$$9$$, $key$$68$$, $value$$69$$) {
|
1580
|
-
$map$$9$$[$key$$68$$] || ($map$$9$$[$key$$68$$] = []);
|
1581
|
-
$goog$array$contains$$($map$$9$$[$key$$68$$], $value$$69$$) || $map$$9$$[$key$$68$$].push($value$$69$$)
|
1582
|
-
}
|
1583
|
-
var $goog$net$xhrMonitor$$ = new $goog$net$XhrMonitor_$$;
|
1584
|
-
var $goog$uri$utils$splitRe_$$ = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
|
1585
|
-
function $goog$net$XhrIo$$($opt_xmlHttpFactory$$) {
|
1586
|
-
this.headers = new $goog$structs$Map$$;
|
1587
|
-
this.$xmlHttpFactory_$ = $opt_xmlHttpFactory$$ || $JSCompiler_alias_NULL$$
|
1588
|
-
}
|
1589
|
-
$goog$inherits$$($goog$net$XhrIo$$, $goog$events$EventTarget$$);
|
1590
|
-
$goog$net$XhrIo$$.prototype.$logger_$ = $goog$debug$LogManager$getLogger$$("goog.net.XhrIo");
|
1591
|
-
var $goog$net$XhrIo$HTTP_SCHEME_PATTERN$$ = /^https?:?$/i;
|
1592
|
-
$JSCompiler_prototypeAlias$$ = $goog$net$XhrIo$$.prototype;
|
1593
|
-
$JSCompiler_prototypeAlias$$.$active_$ = !1;
|
1594
|
-
$JSCompiler_prototypeAlias$$.$xhr_$ = $JSCompiler_alias_NULL$$;
|
1595
|
-
$JSCompiler_prototypeAlias$$.$xhrOptions_$ = $JSCompiler_alias_NULL$$;
|
1596
|
-
$JSCompiler_prototypeAlias$$.$lastUri_$ = "";
|
1597
|
-
$JSCompiler_prototypeAlias$$.$lastMethod_$ = "";
|
1598
|
-
$JSCompiler_prototypeAlias$$.$lastErrorCode_$ = 0;
|
1599
|
-
$JSCompiler_prototypeAlias$$.$lastError_$ = "";
|
1600
|
-
$JSCompiler_prototypeAlias$$.$errorDispatched_$ = !1;
|
1601
|
-
$JSCompiler_prototypeAlias$$.$inSend_$ = !1;
|
1602
|
-
$JSCompiler_prototypeAlias$$.$inOpen_$ = !1;
|
1603
|
-
$JSCompiler_prototypeAlias$$.$inAbort_$ = !1;
|
1604
|
-
$JSCompiler_prototypeAlias$$.$timeoutInterval_$ = 0;
|
1605
|
-
$JSCompiler_prototypeAlias$$.$timeoutId_$ = $JSCompiler_alias_NULL$$;
|
1606
|
-
$JSCompiler_prototypeAlias$$.$responseType_$ = "";
|
1607
|
-
$JSCompiler_prototypeAlias$$.$withCredentials_$ = !1;
|
1608
|
-
$JSCompiler_prototypeAlias$$.send = function $$JSCompiler_prototypeAlias$$$send$($content$$2_url$$23$$, $method$$3_opt_method$$1$$, $opt_content$$1$$, $opt_headers$$1$$) {
|
1609
|
-
this.$xhr_$ && $JSCompiler_alias_THROW$$(Error("[goog.net.XhrIo] Object is active with another request"));
|
1610
|
-
$method$$3_opt_method$$1$$ = $method$$3_opt_method$$1$$ ? $method$$3_opt_method$$1$$.toUpperCase() : "GET";
|
1611
|
-
this.$lastUri_$ = $content$$2_url$$23$$;
|
1612
|
-
this.$lastError_$ = "";
|
1613
|
-
this.$lastErrorCode_$ = 0;
|
1614
|
-
this.$lastMethod_$ = $method$$3_opt_method$$1$$;
|
1615
|
-
this.$errorDispatched_$ = !1;
|
1616
|
-
this.$active_$ = !0;
|
1617
|
-
this.$xhr_$ = this.$xmlHttpFactory_$ ? $JSCompiler_StaticMethods_createInstance$$(this.$xmlHttpFactory_$) : $JSCompiler_StaticMethods_createInstance$$($goog$net$XmlHttp$factory_$$);
|
1618
|
-
this.$xhrOptions_$ = this.$xmlHttpFactory_$ ? this.$xmlHttpFactory_$.$cachedOptions_$ || (this.$xmlHttpFactory_$.$cachedOptions_$ = $JSCompiler_StaticMethods_internalGetOptions$$(this.$xmlHttpFactory_$)) : $goog$net$XmlHttp$factory_$$.$cachedOptions_$ || ($goog$net$XmlHttp$factory_$$.$cachedOptions_$ = $JSCompiler_StaticMethods_internalGetOptions$$($goog$net$XmlHttp$factory_$$));
|
1619
|
-
$JSCompiler_StaticMethods_markXhrOpen$$(this.$xhr_$);
|
1620
|
-
this.$xhr_$.onreadystatechange = $goog$bind$$(this.$onReadyStateChange_$, this);
|
1621
|
-
try {
|
1622
|
-
$JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, "Opening Xhr")), this.$inOpen_$ = !0, this.$xhr_$.open($method$$3_opt_method$$1$$, $content$$2_url$$23$$, !0), this.$inOpen_$ = !1
|
1623
|
-
}catch($err$$3$$) {
|
1624
|
-
$JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, "Error opening Xhr: " + $err$$3$$.message));
|
1625
|
-
$JSCompiler_StaticMethods_error_$$(this, $err$$3$$);
|
1626
|
-
return
|
1627
|
-
}
|
1628
|
-
var $content$$2_url$$23$$ = $opt_content$$1$$ || "", $headers$$ = new $goog$structs$Map$$(this.headers);
|
1629
|
-
$opt_headers$$1$$ && $goog$structs$forEach$$($opt_headers$$1$$, function($value$$73$$, $key$$72$$) {
|
1630
|
-
$headers$$.set($key$$72$$, $value$$73$$)
|
1631
|
-
});
|
1632
|
-
$method$$3_opt_method$$1$$ == "POST" && !Object.prototype.hasOwnProperty.call($headers$$.$map_$, "Content-Type") && $headers$$.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
|
1633
|
-
$goog$structs$forEach$$($headers$$, function($value$$74$$, $key$$73$$) {
|
1634
|
-
this.$xhr_$.setRequestHeader($key$$73$$, $value$$74$$)
|
1635
|
-
}, this);
|
1636
|
-
if(this.$responseType_$) {
|
1637
|
-
this.$xhr_$.responseType = this.$responseType_$
|
1638
|
-
}
|
1639
|
-
if("withCredentials" in this.$xhr_$) {
|
1640
|
-
this.$xhr_$.withCredentials = this.$withCredentials_$
|
1641
|
-
}
|
1642
|
-
try {
|
1643
|
-
if(this.$timeoutId_$) {
|
1644
|
-
$goog$Timer$defaultTimerObject$$.clearTimeout(this.$timeoutId_$), this.$timeoutId_$ = $JSCompiler_alias_NULL$$
|
1645
|
-
}
|
1646
|
-
if(this.$timeoutInterval_$ > 0) {
|
1647
|
-
$JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, "Will abort after " + this.$timeoutInterval_$ + "ms if incomplete")), this.$timeoutId_$ = $goog$Timer$defaultTimerObject$$.setTimeout($goog$bind$$(this.$timeout_$, this), this.$timeoutInterval_$)
|
1648
|
-
}
|
1649
|
-
$JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, "Sending request"));
|
1650
|
-
this.$inSend_$ = !0;
|
1651
|
-
this.$xhr_$.send($content$$2_url$$23$$);
|
1652
|
-
this.$inSend_$ = !1
|
1653
|
-
}catch($err$$4$$) {
|
1654
|
-
$JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, "Send error: " + $err$$4$$.message)), $JSCompiler_StaticMethods_error_$$(this, $err$$4$$)
|
1655
|
-
}
|
1656
|
-
};
|
1657
|
-
$JSCompiler_prototypeAlias$$.dispatchEvent = function $$JSCompiler_prototypeAlias$$$dispatchEvent$($e$$28$$) {
|
1658
|
-
if(this.$xhr_$) {
|
1659
|
-
$JSCompiler_StaticMethods_pushContext$$(this.$xhr_$);
|
1660
|
-
try {
|
1661
|
-
return $goog$net$XhrIo$$.$superClass_$.dispatchEvent.call(this, $e$$28$$)
|
1662
|
-
}finally {
|
1663
|
-
$JSCompiler_StaticMethods_popContext$$()
|
1664
|
-
}
|
1665
|
-
}else {
|
1666
|
-
return $goog$net$XhrIo$$.$superClass_$.dispatchEvent.call(this, $e$$28$$)
|
1667
|
-
}
|
1668
|
-
};
|
1669
|
-
$JSCompiler_prototypeAlias$$.$timeout_$ = function $$JSCompiler_prototypeAlias$$$$timeout_$$() {
|
1670
|
-
if(typeof $goog$$ != "undefined" && this.$xhr_$) {
|
1671
|
-
this.$lastError_$ = "Timed out after " + this.$timeoutInterval_$ + "ms, aborting", this.$lastErrorCode_$ = 8, $JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, this.$lastError_$)), this.dispatchEvent("timeout"), this.abort(8)
|
1672
|
-
}
|
1673
|
-
};
|
1674
|
-
function $JSCompiler_StaticMethods_error_$$($JSCompiler_StaticMethods_error_$self$$, $err$$5$$) {
|
1675
|
-
$JSCompiler_StaticMethods_error_$self$$.$active_$ = !1;
|
1676
|
-
if($JSCompiler_StaticMethods_error_$self$$.$xhr_$) {
|
1677
|
-
$JSCompiler_StaticMethods_error_$self$$.$inAbort_$ = !0, $JSCompiler_StaticMethods_error_$self$$.$xhr_$.abort(), $JSCompiler_StaticMethods_error_$self$$.$inAbort_$ = !1
|
1678
|
-
}
|
1679
|
-
$JSCompiler_StaticMethods_error_$self$$.$lastError_$ = $err$$5$$;
|
1680
|
-
$JSCompiler_StaticMethods_error_$self$$.$lastErrorCode_$ = 5;
|
1681
|
-
$JSCompiler_StaticMethods_dispatchErrors_$$($JSCompiler_StaticMethods_error_$self$$);
|
1682
|
-
$JSCompiler_StaticMethods_cleanUpXhr_$$($JSCompiler_StaticMethods_error_$self$$)
|
1683
|
-
}
|
1684
|
-
function $JSCompiler_StaticMethods_dispatchErrors_$$($JSCompiler_StaticMethods_dispatchErrors_$self$$) {
|
1685
|
-
if(!$JSCompiler_StaticMethods_dispatchErrors_$self$$.$errorDispatched_$) {
|
1686
|
-
$JSCompiler_StaticMethods_dispatchErrors_$self$$.$errorDispatched_$ = !0, $JSCompiler_StaticMethods_dispatchErrors_$self$$.dispatchEvent("complete"), $JSCompiler_StaticMethods_dispatchErrors_$self$$.dispatchEvent("error")
|
1687
|
-
}
|
1688
|
-
}
|
1689
|
-
$JSCompiler_prototypeAlias$$.abort = function $$JSCompiler_prototypeAlias$$$abort$($opt_failureCode$$) {
|
1690
|
-
if(this.$xhr_$ && this.$active_$) {
|
1691
|
-
$JSCompiler_StaticMethods_fine$$(this.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$(this, "Aborting")), this.$active_$ = !1, this.$inAbort_$ = !0, this.$xhr_$.abort(), this.$inAbort_$ = !1, this.$lastErrorCode_$ = $opt_failureCode$$ || 7, this.dispatchEvent("complete"), this.dispatchEvent("abort"), $JSCompiler_StaticMethods_cleanUpXhr_$$(this)
|
1692
|
-
}
|
1693
|
-
};
|
1694
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
1695
|
-
if(this.$xhr_$) {
|
1696
|
-
if(this.$active_$) {
|
1697
|
-
this.$active_$ = !1, this.$inAbort_$ = !0, this.$xhr_$.abort(), this.$inAbort_$ = !1
|
1698
|
-
}
|
1699
|
-
$JSCompiler_StaticMethods_cleanUpXhr_$$(this, !0)
|
1700
|
-
}
|
1701
|
-
$goog$net$XhrIo$$.$superClass_$.$disposeInternal$.call(this)
|
1702
|
-
};
|
1703
|
-
$JSCompiler_prototypeAlias$$.$onReadyStateChange_$ = function $$JSCompiler_prototypeAlias$$$$onReadyStateChange_$$() {
|
1704
|
-
!this.$inOpen_$ && !this.$inSend_$ && !this.$inAbort_$ ? this.$onReadyStateChangeEntryPoint_$() : $JSCompiler_StaticMethods_onReadyStateChangeHelper_$$(this)
|
1705
|
-
};
|
1706
|
-
$JSCompiler_prototypeAlias$$.$onReadyStateChangeEntryPoint_$ = function $$JSCompiler_prototypeAlias$$$$onReadyStateChangeEntryPoint_$$() {
|
1707
|
-
$JSCompiler_StaticMethods_onReadyStateChangeHelper_$$(this)
|
1708
|
-
};
|
1709
|
-
function $JSCompiler_StaticMethods_onReadyStateChangeHelper_$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) {
|
1710
|
-
if($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$active_$ && typeof $goog$$ != "undefined") {
|
1711
|
-
if($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$xhrOptions_$[1] && $JSCompiler_StaticMethods_getReadyState$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) == 4 && $JSCompiler_StaticMethods_getStatus$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) == 2) {
|
1712
|
-
$JSCompiler_StaticMethods_fine$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$, "Local request error detected and ignored"))
|
1713
|
-
}else {
|
1714
|
-
if($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$inSend_$ && $JSCompiler_StaticMethods_getReadyState$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) == 4) {
|
1715
|
-
$goog$Timer$defaultTimerObject$$.setTimeout($goog$bind$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$onReadyStateChange_$, $JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$), 0)
|
1716
|
-
}else {
|
1717
|
-
if($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.dispatchEvent("readystatechange"), $JSCompiler_StaticMethods_getReadyState$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) == 4) {
|
1718
|
-
$JSCompiler_StaticMethods_fine$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$logger_$, $JSCompiler_StaticMethods_formatMsg_$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$, "Request complete"));
|
1719
|
-
$JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$active_$ = !1;
|
1720
|
-
if($JSCompiler_StaticMethods_isSuccess$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$)) {
|
1721
|
-
$JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.dispatchEvent("complete"), $JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.dispatchEvent("success")
|
1722
|
-
}else {
|
1723
|
-
$JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$lastErrorCode_$ = 6;
|
1724
|
-
var $JSCompiler_inline_result$$315$$;
|
1725
|
-
try {
|
1726
|
-
$JSCompiler_inline_result$$315$$ = $JSCompiler_StaticMethods_getReadyState$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) > 2 ? $JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$xhr_$.statusText : ""
|
1727
|
-
}catch($e$$inline_318$$) {
|
1728
|
-
$JSCompiler_StaticMethods_fine$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$logger_$, "Can not get status: " + $e$$inline_318$$.message), $JSCompiler_inline_result$$315$$ = ""
|
1729
|
-
}
|
1730
|
-
$JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$.$lastError_$ = $JSCompiler_inline_result$$315$$ + " [" + $JSCompiler_StaticMethods_getStatus$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$) + "]";
|
1731
|
-
$JSCompiler_StaticMethods_dispatchErrors_$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$)
|
1732
|
-
}
|
1733
|
-
$JSCompiler_StaticMethods_cleanUpXhr_$$($JSCompiler_StaticMethods_onReadyStateChangeHelper_$self$$)
|
1734
|
-
}
|
1735
|
-
}
|
1736
|
-
}
|
1737
|
-
}
|
1738
|
-
}
|
1739
|
-
function $JSCompiler_StaticMethods_cleanUpXhr_$$($JSCompiler_StaticMethods_cleanUpXhr_$self$$, $opt_fromDispose$$) {
|
1740
|
-
if($JSCompiler_StaticMethods_cleanUpXhr_$self$$.$xhr_$) {
|
1741
|
-
var $xhr$$3$$ = $JSCompiler_StaticMethods_cleanUpXhr_$self$$.$xhr_$, $clearedOnReadyStateChange$$ = $JSCompiler_StaticMethods_cleanUpXhr_$self$$.$xhrOptions_$[0] ? $goog$nullFunction$$ : $JSCompiler_alias_NULL$$;
|
1742
|
-
$JSCompiler_StaticMethods_cleanUpXhr_$self$$.$xhr_$ = $JSCompiler_alias_NULL$$;
|
1743
|
-
$JSCompiler_StaticMethods_cleanUpXhr_$self$$.$xhrOptions_$ = $JSCompiler_alias_NULL$$;
|
1744
|
-
if($JSCompiler_StaticMethods_cleanUpXhr_$self$$.$timeoutId_$) {
|
1745
|
-
$goog$Timer$defaultTimerObject$$.clearTimeout($JSCompiler_StaticMethods_cleanUpXhr_$self$$.$timeoutId_$), $JSCompiler_StaticMethods_cleanUpXhr_$self$$.$timeoutId_$ = $JSCompiler_alias_NULL$$
|
1746
|
-
}
|
1747
|
-
$opt_fromDispose$$ || ($JSCompiler_StaticMethods_pushContext$$($xhr$$3$$), $JSCompiler_StaticMethods_cleanUpXhr_$self$$.dispatchEvent("ready"), $JSCompiler_StaticMethods_popContext$$());
|
1748
|
-
var $JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$ = $goog$net$xhrMonitor$$;
|
1749
|
-
if($JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$enabled_$) {
|
1750
|
-
var $uid$$inline_326$$ = $goog$getUid$$($xhr$$3$$);
|
1751
|
-
$JSCompiler_StaticMethods_fine$$($JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$logger_$, "Closing XHR : " + $uid$$inline_326$$);
|
1752
|
-
delete $JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$xhrToContexts_$[$uid$$inline_326$$];
|
1753
|
-
for(var $context$$inline_327$$ in $JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$contextsToXhr_$) {
|
1754
|
-
$goog$array$remove$$($JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$contextsToXhr_$[$context$$inline_327$$], $uid$$inline_326$$), $JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$contextsToXhr_$[$context$$inline_327$$].length == 0 && delete $JSCompiler_StaticMethods_markXhrClosed$self$$inline_325$$.$contextsToXhr_$[$context$$inline_327$$]
|
1755
|
-
}
|
1756
|
-
}
|
1757
|
-
try {
|
1758
|
-
$xhr$$3$$.onreadystatechange = $clearedOnReadyStateChange$$
|
1759
|
-
}catch($e$$29$$) {
|
1760
|
-
$JSCompiler_StaticMethods_cleanUpXhr_$self$$.$logger_$.log($goog$debug$Logger$Level$SEVERE$$, "Problem encountered resetting onreadystatechange: " + $e$$29$$.message, $JSCompiler_alias_VOID$$)
|
1761
|
-
}
|
1762
|
-
}
|
1763
|
-
}
|
1764
|
-
$JSCompiler_prototypeAlias$$.$isActive$ = function $$JSCompiler_prototypeAlias$$$$isActive$$() {
|
1765
|
-
return!!this.$xhr_$
|
1766
|
-
};
|
1767
|
-
function $JSCompiler_StaticMethods_isSuccess$$($JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$) {
|
1768
|
-
switch($JSCompiler_StaticMethods_getStatus$$($JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$)) {
|
1769
|
-
case 0:
|
1770
|
-
return $JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$ = $goog$isString$$($JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$.$lastUri_$) ? $JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$.$lastUri_$.match($goog$uri$utils$splitRe_$$)[1] || $JSCompiler_alias_NULL$$ : $JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$.$lastUri_$.$getScheme$(), !($JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$ ? $goog$net$XhrIo$HTTP_SCHEME_PATTERN$$.test($JSCompiler_StaticMethods_isSuccess$self_lastUriScheme$$inline_338$$) :
|
1771
|
-
self.location ? $goog$net$XhrIo$HTTP_SCHEME_PATTERN$$.test(self.location.protocol) : 1);
|
1772
|
-
case 200:
|
1773
|
-
;
|
1774
|
-
case 201:
|
1775
|
-
;
|
1776
|
-
case 202:
|
1777
|
-
;
|
1778
|
-
case 204:
|
1779
|
-
;
|
1780
|
-
case 304:
|
1781
|
-
;
|
1782
|
-
case 1223:
|
1783
|
-
return!0;
|
1784
|
-
default:
|
1785
|
-
return!1
|
1786
|
-
}
|
1787
|
-
}
|
1788
|
-
function $JSCompiler_StaticMethods_getReadyState$$($JSCompiler_StaticMethods_getReadyState$self$$) {
|
1789
|
-
return $JSCompiler_StaticMethods_getReadyState$self$$.$xhr_$ ? $JSCompiler_StaticMethods_getReadyState$self$$.$xhr_$.readyState : 0
|
1790
|
-
}
|
1791
|
-
function $JSCompiler_StaticMethods_getStatus$$($JSCompiler_StaticMethods_getStatus$self$$) {
|
1792
|
-
try {
|
1793
|
-
return $JSCompiler_StaticMethods_getReadyState$$($JSCompiler_StaticMethods_getStatus$self$$) > 2 ? $JSCompiler_StaticMethods_getStatus$self$$.$xhr_$.status : -1
|
1794
|
-
}catch($e$$30$$) {
|
1795
|
-
return $JSCompiler_StaticMethods_getStatus$self$$.$logger_$.log($goog$debug$Logger$Level$WARNING$$, "Can not get status: " + $e$$30$$.message, $JSCompiler_alias_VOID$$), -1
|
1796
|
-
}
|
1797
|
-
}
|
1798
|
-
function $JSCompiler_StaticMethods_formatMsg_$$($JSCompiler_StaticMethods_formatMsg_$self$$, $msg$$19$$) {
|
1799
|
-
return $msg$$19$$ + " [" + $JSCompiler_StaticMethods_formatMsg_$self$$.$lastMethod_$ + " " + $JSCompiler_StaticMethods_formatMsg_$self$$.$lastUri_$ + " " + $JSCompiler_StaticMethods_getStatus$$($JSCompiler_StaticMethods_formatMsg_$self$$) + "]"
|
1800
|
-
}
|
1801
|
-
;function $goog$net$BulkLoader$$($uris$$1$$) {
|
1802
|
-
this.$helper_$ = new $goog$net$BulkLoaderHelper$$($uris$$1$$);
|
1803
|
-
this.$eventHandler_$ = new $goog$events$EventHandler$$(this)
|
1804
|
-
}
|
1805
|
-
$goog$inherits$$($goog$net$BulkLoader$$, $goog$events$EventTarget$$);
|
1806
|
-
$JSCompiler_prototypeAlias$$ = $goog$net$BulkLoader$$.prototype;
|
1807
|
-
$JSCompiler_prototypeAlias$$.$logger_$ = $goog$debug$LogManager$getLogger$$("goog.net.BulkLoader");
|
1808
|
-
$JSCompiler_prototypeAlias$$.$getResponseTexts$ = function $$JSCompiler_prototypeAlias$$$$getResponseTexts$$() {
|
1809
|
-
return this.$helper_$.$getResponseTexts$()
|
1810
|
-
};
|
1811
|
-
$JSCompiler_prototypeAlias$$.load = function $$JSCompiler_prototypeAlias$$$load$() {
|
1812
|
-
var $eventHandler$$ = this.$eventHandler_$, $uris$$2$$ = this.$helper_$.$uris_$;
|
1813
|
-
this.$logger_$.info("Starting load of code with " + $uris$$2$$.length + " uris.");
|
1814
|
-
for(var $i$$108$$ = 0;$i$$108$$ < $uris$$2$$.length;$i$$108$$++) {
|
1815
|
-
var $xhrIo$$ = new $goog$net$XhrIo$$;
|
1816
|
-
$JSCompiler_StaticMethods_listen$$($eventHandler$$, $xhrIo$$, "complete", $goog$bind$$(this.$handleEvent_$, this, $i$$108$$));
|
1817
|
-
$xhrIo$$.send($uris$$2$$[$i$$108$$])
|
1818
|
-
}
|
1819
|
-
};
|
1820
|
-
$JSCompiler_prototypeAlias$$.$handleEvent_$ = function $$JSCompiler_prototypeAlias$$$$handleEvent_$$($id$$9$$, $e$$35$$) {
|
1821
|
-
this.$logger_$.info('Received event "' + $e$$35$$.type + '" for id ' + $id$$9$$ + " with uri " + this.$helper_$.$uris_$[$id$$9$$]);
|
1822
|
-
var $xhrIo$$1$$ = $e$$35$$.target;
|
1823
|
-
if($JSCompiler_StaticMethods_isSuccess$$($xhrIo$$1$$)) {
|
1824
|
-
var $JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$ = this.$helper_$, $JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$;
|
1825
|
-
try {
|
1826
|
-
$JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$ = $xhrIo$$1$$.$xhr_$ ? $xhrIo$$1$$.$xhr_$.responseText : ""
|
1827
|
-
}catch($e$$inline_506$$) {
|
1828
|
-
$JSCompiler_StaticMethods_fine$$($xhrIo$$1$$.$logger_$, "Can not get responseText: " + $e$$inline_506$$.message), $JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$ = ""
|
1829
|
-
}
|
1830
|
-
$JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$.$responseTexts_$[$id$$9$$] = $JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$;
|
1831
|
-
a: {
|
1832
|
-
if($JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$ = this.$helper_$, $JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$ = $JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$.$responseTexts_$, $JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$.length == $JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$.$uris_$.length) {
|
1833
|
-
for($JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$ = 0;$JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$ < $JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$.length;$JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$++) {
|
1834
|
-
if($JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$[$JSCompiler_StaticMethods_isLoadComplete$self$$inline_519_JSCompiler_inline_result$$503_i$$inline_521$$] == $JSCompiler_alias_NULL$$) {
|
1835
|
-
$JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$ = !1;
|
1836
|
-
break a
|
1837
|
-
}
|
1838
|
-
}
|
1839
|
-
$JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$ = !0
|
1840
|
-
}else {
|
1841
|
-
$JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$ = !1
|
1842
|
-
}
|
1843
|
-
}
|
1844
|
-
$JSCompiler_inline_result$$515_JSCompiler_temp_const$$461_responseTexts$$inline_520$$ && (this.$logger_$.info("All uris loaded."), this.dispatchEvent("success"))
|
1845
|
-
}else {
|
1846
|
-
this.dispatchEvent("error")
|
1847
|
-
}
|
1848
|
-
$xhrIo$$1$$.$dispose$()
|
1849
|
-
};
|
1850
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
1851
|
-
$goog$net$BulkLoader$$.$superClass_$.$disposeInternal$.call(this);
|
1852
|
-
this.$eventHandler_$.$dispose$();
|
1853
|
-
this.$eventHandler_$ = $JSCompiler_alias_NULL$$;
|
1854
|
-
this.$helper_$.$dispose$();
|
1855
|
-
this.$helper_$ = $JSCompiler_alias_NULL$$
|
1856
|
-
};
|
1857
|
-
function $goog$module$ModuleLoader$$() {
|
1858
|
-
this.$eventHandler_$ = new $goog$events$EventHandler$$(this);
|
1859
|
-
this.$scriptsToLoadDebugMode_$ = []
|
1860
|
-
}
|
1861
|
-
$goog$inherits$$($goog$module$ModuleLoader$$, $goog$module$BaseModuleLoader$$);
|
1862
|
-
$JSCompiler_prototypeAlias$$ = $goog$module$ModuleLoader$$.prototype;
|
1863
|
-
$JSCompiler_prototypeAlias$$.$logger$ = $goog$debug$LogManager$getLogger$$("goog.module.ModuleLoader");
|
1864
|
-
$JSCompiler_prototypeAlias$$.$loadModulesInternal$ = function $$JSCompiler_prototypeAlias$$$$loadModulesInternal$$($ids$$5$$, $bulkLoader_moduleInfoMap$$3$$, $opt_successFn$$3$$, $opt_errorFn$$3$$) {
|
1865
|
-
for(var $eventHandler$$1_uris$$3$$ = [], $i$$109$$ = 0;$i$$109$$ < $ids$$5$$.length;$i$$109$$++) {
|
1866
|
-
$goog$array$extend$$($eventHandler$$1_uris$$3$$, $bulkLoader_moduleInfoMap$$3$$[$ids$$5$$[$i$$109$$]].$uris_$)
|
1867
|
-
}
|
1868
|
-
this.$logger$.info("loadModules ids:" + $ids$$5$$ + " uris:" + $eventHandler$$1_uris$$3$$);
|
1869
|
-
this.$debugMode_$ ? $JSCompiler_StaticMethods_loadModulesInDebugMode_$$(this, $eventHandler$$1_uris$$3$$) : ($bulkLoader_moduleInfoMap$$3$$ = new $goog$net$BulkLoader$$($eventHandler$$1_uris$$3$$), $eventHandler$$1_uris$$3$$ = this.$eventHandler_$, $JSCompiler_StaticMethods_listen$$($eventHandler$$1_uris$$3$$, $bulkLoader_moduleInfoMap$$3$$, "success", $goog$bind$$(this.$handleSuccess$, this, $bulkLoader_moduleInfoMap$$3$$, $ids$$5$$, $opt_successFn$$3$$, $opt_errorFn$$3$$), !1, $JSCompiler_alias_NULL$$),
|
1870
|
-
$JSCompiler_StaticMethods_listen$$($eventHandler$$1_uris$$3$$, $bulkLoader_moduleInfoMap$$3$$, "error", $goog$bind$$(this.handleError, this, $bulkLoader_moduleInfoMap$$3$$, $ids$$5$$, $opt_errorFn$$3$$), !1, $JSCompiler_alias_NULL$$), $bulkLoader_moduleInfoMap$$3$$.load())
|
1871
|
-
};
|
1872
|
-
function $JSCompiler_StaticMethods_createScriptElement_$$($uri$$40$$) {
|
1873
|
-
var $scriptEl$$ = document.createElement("script");
|
1874
|
-
$scriptEl$$.src = $uri$$40$$;
|
1875
|
-
$scriptEl$$.type = "text/javascript";
|
1876
|
-
return $scriptEl$$
|
1877
|
-
}
|
1878
|
-
function $JSCompiler_StaticMethods_loadModulesInDebugMode_$$($JSCompiler_StaticMethods_loadModulesInDebugMode_$self$$, $uris$$4$$) {
|
1879
|
-
if($uris$$4$$.length) {
|
1880
|
-
var $scriptParent$$ = document.getElementsByTagName("head")[0] || document.documentElement;
|
1881
|
-
if($goog$userAgent$GECKO$$ && !$goog$userAgent$isVersion$$(2)) {
|
1882
|
-
for(var $i$$110_isAnotherModuleLoading$$ = 0;$i$$110_isAnotherModuleLoading$$ < $uris$$4$$.length;$i$$110_isAnotherModuleLoading$$++) {
|
1883
|
-
var $scriptEl$$1$$ = $JSCompiler_StaticMethods_createScriptElement_$$($uris$$4$$[$i$$110_isAnotherModuleLoading$$]);
|
1884
|
-
$scriptParent$$.appendChild($scriptEl$$1$$)
|
1885
|
-
}
|
1886
|
-
}else {
|
1887
|
-
if($i$$110_isAnotherModuleLoading$$ = $JSCompiler_StaticMethods_loadModulesInDebugMode_$self$$.$scriptsToLoadDebugMode_$.length, $goog$array$extend$$($JSCompiler_StaticMethods_loadModulesInDebugMode_$self$$.$scriptsToLoadDebugMode_$, $uris$$4$$), !$i$$110_isAnotherModuleLoading$$) {
|
1888
|
-
var $uris$$4$$ = $JSCompiler_StaticMethods_loadModulesInDebugMode_$self$$.$scriptsToLoadDebugMode_$, $popAndLoadNextScript$$ = function $$popAndLoadNextScript$$$() {
|
1889
|
-
var $uri$$41$$ = $uris$$4$$.shift(), $scriptEl$$2$$ = $JSCompiler_StaticMethods_createScriptElement_$$($uri$$41$$);
|
1890
|
-
if($uris$$4$$.length) {
|
1891
|
-
$goog$userAgent$IE$$ ? $scriptEl$$2$$.onreadystatechange = function $$scriptEl$$2$$$onreadystatechange$() {
|
1892
|
-
if(!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
|
1893
|
-
$scriptEl$$2$$.onreadystatechange = $goog$nullFunction$$, $popAndLoadNextScript$$()
|
1894
|
-
}
|
1895
|
-
} : $scriptEl$$2$$.onload = $popAndLoadNextScript$$
|
1896
|
-
}
|
1897
|
-
$scriptParent$$.appendChild($scriptEl$$2$$)
|
1898
|
-
};
|
1899
|
-
$popAndLoadNextScript$$()
|
1900
|
-
}
|
1901
|
-
}
|
1902
|
-
}
|
1903
|
-
}
|
1904
|
-
$JSCompiler_prototypeAlias$$.$handleSuccess$ = function $$JSCompiler_prototypeAlias$$$$handleSuccess$$($bulkLoader$$1$$, $moduleIds$$4$$, $successFn$$1$$, $errorFn$$2$$) {
|
1905
|
-
var $jsCode$$inline_368_success$$inline_372$$ = $bulkLoader$$1$$.$getResponseTexts$().join("\n");
|
1906
|
-
this.$logger$.info("Code loaded for module(s): " + $moduleIds$$4$$);
|
1907
|
-
var $success$$inline_535$$ = !0;
|
1908
|
-
try {
|
1909
|
-
var $JSCompiler_temp$$586$$;
|
1910
|
-
if(this.$codePostfix_$) {
|
1911
|
-
var $suffix$$inline_598$$ = this.$codePostfix_$, $l$$inline_599$$ = $jsCode$$inline_368_success$$inline_372$$.length - $suffix$$inline_598$$.length;
|
1912
|
-
$JSCompiler_temp$$586$$ = $l$$inline_599$$ >= 0 && $jsCode$$inline_368_success$$inline_372$$.indexOf($suffix$$inline_598$$, $l$$inline_599$$) == $l$$inline_599$$
|
1913
|
-
}else {
|
1914
|
-
$JSCompiler_temp$$586$$ = 1
|
1915
|
-
}
|
1916
|
-
if($JSCompiler_temp$$586$$) {
|
1917
|
-
if($goog$global$$.execScript) {
|
1918
|
-
$goog$global$$.execScript($jsCode$$inline_368_success$$inline_372$$, "JavaScript")
|
1919
|
-
}else {
|
1920
|
-
if($goog$global$$.eval) {
|
1921
|
-
if($goog$evalWorksForGlobals_$$ == $JSCompiler_alias_NULL$$ && ($goog$global$$.eval("var _et_ = 1;"), typeof $goog$global$$._et_ != "undefined" ? (delete $goog$global$$._et_, $goog$evalWorksForGlobals_$$ = !0) : $goog$evalWorksForGlobals_$$ = !1), $goog$evalWorksForGlobals_$$) {
|
1922
|
-
$goog$global$$.eval($jsCode$$inline_368_success$$inline_372$$)
|
1923
|
-
}else {
|
1924
|
-
var $doc$$inline_536$$ = $goog$global$$.document, $scriptElt$$inline_537$$ = $doc$$inline_536$$.createElement("script");
|
1925
|
-
$scriptElt$$inline_537$$.type = "text/javascript";
|
1926
|
-
$scriptElt$$inline_537$$.defer = !1;
|
1927
|
-
$scriptElt$$inline_537$$.appendChild($doc$$inline_536$$.createTextNode($jsCode$$inline_368_success$$inline_372$$));
|
1928
|
-
$doc$$inline_536$$.body.appendChild($scriptElt$$inline_537$$);
|
1929
|
-
$doc$$inline_536$$.body.removeChild($scriptElt$$inline_537$$)
|
1930
|
-
}
|
1931
|
-
}else {
|
1932
|
-
$JSCompiler_alias_THROW$$(Error("goog.globalEval not available"))
|
1933
|
-
}
|
1934
|
-
}
|
1935
|
-
}else {
|
1936
|
-
$success$$inline_535$$ = !1
|
1937
|
-
}
|
1938
|
-
}catch($e$$inline_538$$) {
|
1939
|
-
$success$$inline_535$$ = !1, this.$logger$.log($goog$debug$Logger$Level$WARNING$$, "Loaded incomplete code for module(s): " + $moduleIds$$4$$, $e$$inline_538$$)
|
1940
|
-
}
|
1941
|
-
($jsCode$$inline_368_success$$inline_372$$ = $success$$inline_535$$) ? $jsCode$$inline_368_success$$inline_372$$ && $successFn$$1$$ && $successFn$$1$$() : (this.$logger$.log($goog$debug$Logger$Level$WARNING$$, "Request failed for module(s): " + $moduleIds$$4$$, $JSCompiler_alias_VOID$$), $errorFn$$2$$ && $errorFn$$2$$($JSCompiler_alias_NULL$$));
|
1942
|
-
$goog$Timer$callOnce$$($bulkLoader$$1$$.$dispose$, $bulkLoader$$1$$)
|
1943
|
-
};
|
1944
|
-
$JSCompiler_prototypeAlias$$.handleError = function $$JSCompiler_prototypeAlias$$$handleError$($bulkLoader$$2$$, $moduleIds$$5$$, $errorFn$$3$$, $status$$1$$) {
|
1945
|
-
this.$logger$.log($goog$debug$Logger$Level$WARNING$$, "Request failed for module(s): " + $moduleIds$$5$$, $JSCompiler_alias_VOID$$);
|
1946
|
-
$errorFn$$3$$ && $errorFn$$3$$($status$$1$$);
|
1947
|
-
$goog$Timer$callOnce$$($bulkLoader$$2$$.$dispose$, $bulkLoader$$2$$)
|
1948
|
-
};
|
1949
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
1950
|
-
$goog$module$ModuleLoader$$.$superClass_$.$disposeInternal$.call(this);
|
1951
|
-
this.$eventHandler_$.$dispose$();
|
1952
|
-
this.$eventHandler_$ = $JSCompiler_alias_NULL$$
|
1953
|
-
};
|
1954
|
-
/*
|
1955
|
-
Portions of this code are from MochiKit, received by
|
1956
|
-
The Closure Authors under the MIT license. All other code is Copyright
|
1957
|
-
2005-2009 The Closure Authors. All Rights Reserved.
|
1958
|
-
*/
|
1959
|
-
function $goog$async$Deferred$$($opt_canceller$$, $opt_defaultScope$$) {
|
1960
|
-
this.$chain_$ = [];
|
1961
|
-
this.$canceller_$ = $opt_canceller$$;
|
1962
|
-
this.$defaultScope_$ = $opt_defaultScope$$ || $JSCompiler_alias_NULL$$
|
1963
|
-
}
|
1964
|
-
$JSCompiler_prototypeAlias$$ = $goog$async$Deferred$$.prototype;
|
1965
|
-
$JSCompiler_prototypeAlias$$.$fired_$ = !1;
|
1966
|
-
$JSCompiler_prototypeAlias$$.$hadError_$ = !1;
|
1967
|
-
$JSCompiler_prototypeAlias$$.$paused_$ = 0;
|
1968
|
-
$JSCompiler_prototypeAlias$$.$silentlyCancelled_$ = !1;
|
1969
|
-
$JSCompiler_prototypeAlias$$.$chained_$ = !1;
|
1970
|
-
$JSCompiler_prototypeAlias$$.$branches_$ = 0;
|
1971
|
-
$JSCompiler_prototypeAlias$$.$continue_$ = function $$JSCompiler_prototypeAlias$$$$continue_$$($isSuccess$$, $res$$7$$) {
|
1972
|
-
$JSCompiler_StaticMethods_resback_$$(this, $isSuccess$$, $res$$7$$);
|
1973
|
-
this.$paused_$--;
|
1974
|
-
this.$paused_$ == 0 && this.$fired_$ && $JSCompiler_StaticMethods_fire_$$(this)
|
1975
|
-
};
|
1976
|
-
function $JSCompiler_StaticMethods_resback_$$($JSCompiler_StaticMethods_resback_$self$$, $isSuccess$$1$$, $res$$8$$) {
|
1977
|
-
$JSCompiler_StaticMethods_resback_$self$$.$fired_$ = !0;
|
1978
|
-
$JSCompiler_StaticMethods_resback_$self$$.$result_$ = $res$$8$$;
|
1979
|
-
$JSCompiler_StaticMethods_resback_$self$$.$hadError_$ = !$isSuccess$$1$$;
|
1980
|
-
$JSCompiler_StaticMethods_fire_$$($JSCompiler_StaticMethods_resback_$self$$)
|
1981
|
-
}
|
1982
|
-
function $JSCompiler_StaticMethods_check_$$($JSCompiler_StaticMethods_check_$self$$) {
|
1983
|
-
if($JSCompiler_StaticMethods_check_$self$$.$fired_$) {
|
1984
|
-
$JSCompiler_StaticMethods_check_$self$$.$silentlyCancelled_$ || $JSCompiler_alias_THROW$$(new $goog$async$Deferred$AlreadyCalledError$$($JSCompiler_StaticMethods_check_$self$$)), $JSCompiler_StaticMethods_check_$self$$.$silentlyCancelled_$ = !1
|
1985
|
-
}
|
1986
|
-
}
|
1987
|
-
$JSCompiler_prototypeAlias$$.$callback$ = function $$JSCompiler_prototypeAlias$$$$callback$$($result$$9$$) {
|
1988
|
-
$JSCompiler_StaticMethods_check_$$(this);
|
1989
|
-
$JSCompiler_StaticMethods_assertNotDeferred_$$($result$$9$$);
|
1990
|
-
$JSCompiler_StaticMethods_resback_$$(this, !0, $result$$9$$)
|
1991
|
-
};
|
1992
|
-
function $JSCompiler_StaticMethods_assertNotDeferred_$$($obj$$82$$) {
|
1993
|
-
$goog$asserts$assert$$(!($obj$$82$$ instanceof $goog$async$Deferred$$), "Deferred instances can only be chained if they are the result of a callback")
|
1994
|
-
}
|
1995
|
-
function $JSCompiler_StaticMethods_addCallbacks$$($JSCompiler_StaticMethods_addCallbacks$self$$, $cb$$2$$, $eb$$1$$) {
|
1996
|
-
$goog$asserts$assert$$(!$JSCompiler_StaticMethods_addCallbacks$self$$.$chained_$, "Chained Deferreds can not be re-used");
|
1997
|
-
$JSCompiler_StaticMethods_addCallbacks$self$$.$chain_$.push([$cb$$2$$, $eb$$1$$, $JSCompiler_alias_VOID$$]);
|
1998
|
-
$JSCompiler_StaticMethods_addCallbacks$self$$.$fired_$ && $JSCompiler_StaticMethods_fire_$$($JSCompiler_StaticMethods_addCallbacks$self$$)
|
1999
|
-
}
|
2000
|
-
function $JSCompiler_StaticMethods_hasErrback_$$($JSCompiler_StaticMethods_hasErrback_$self$$) {
|
2001
|
-
return $goog$array$some$$($JSCompiler_StaticMethods_hasErrback_$self$$.$chain_$, function($chainRow$$) {
|
2002
|
-
return $goog$isFunction$$($chainRow$$[1])
|
2003
|
-
})
|
2004
|
-
}
|
2005
|
-
function $JSCompiler_StaticMethods_fire_$$($JSCompiler_StaticMethods_fire_$self$$) {
|
2006
|
-
$JSCompiler_StaticMethods_fire_$self$$.$unhandledExceptionTimeoutId_$ && $JSCompiler_StaticMethods_fire_$self$$.$fired_$ && $JSCompiler_StaticMethods_hasErrback_$$($JSCompiler_StaticMethods_fire_$self$$) && ($goog$global$$.clearTimeout($JSCompiler_StaticMethods_fire_$self$$.$unhandledExceptionTimeoutId_$), delete $JSCompiler_StaticMethods_fire_$self$$.$unhandledExceptionTimeoutId_$);
|
2007
|
-
$JSCompiler_StaticMethods_fire_$self$$.$parent_$ && ($JSCompiler_StaticMethods_fire_$self$$.$parent_$.$branches_$--, delete $JSCompiler_StaticMethods_fire_$self$$.$parent_$);
|
2008
|
-
for(var $res$$10$$ = $JSCompiler_StaticMethods_fire_$self$$.$result_$, $unhandledException$$ = !1, $isChained$$ = !1;$JSCompiler_StaticMethods_fire_$self$$.$chain_$.length && $JSCompiler_StaticMethods_fire_$self$$.$paused_$ == 0;) {
|
2009
|
-
var $chainEntry_scope$$ = $JSCompiler_StaticMethods_fire_$self$$.$chain_$.shift(), $callback$$23_f$$41$$ = $chainEntry_scope$$[0], $errback$$ = $chainEntry_scope$$[1], $chainEntry_scope$$ = $chainEntry_scope$$[2];
|
2010
|
-
if($callback$$23_f$$41$$ = $JSCompiler_StaticMethods_fire_$self$$.$hadError_$ ? $errback$$ : $callback$$23_f$$41$$) {
|
2011
|
-
try {
|
2012
|
-
var $ret$$3$$ = $callback$$23_f$$41$$.call($chainEntry_scope$$ || $JSCompiler_StaticMethods_fire_$self$$.$defaultScope_$, $res$$10$$);
|
2013
|
-
if($ret$$3$$ !== $JSCompiler_alias_VOID$$) {
|
2014
|
-
$JSCompiler_StaticMethods_fire_$self$$.$hadError_$ = $JSCompiler_StaticMethods_fire_$self$$.$hadError_$ && ($ret$$3$$ == $res$$10$$ || $ret$$3$$ instanceof Error), $JSCompiler_StaticMethods_fire_$self$$.$result_$ = $res$$10$$ = $ret$$3$$
|
2015
|
-
}
|
2016
|
-
$res$$10$$ instanceof $goog$async$Deferred$$ && ($isChained$$ = !0, $JSCompiler_StaticMethods_fire_$self$$.$paused_$++)
|
2017
|
-
}catch($ex$$10$$) {
|
2018
|
-
$res$$10$$ = $ex$$10$$, $JSCompiler_StaticMethods_fire_$self$$.$hadError_$ = !0, $JSCompiler_StaticMethods_hasErrback_$$($JSCompiler_StaticMethods_fire_$self$$) || ($unhandledException$$ = !0)
|
2019
|
-
}
|
2020
|
-
}
|
2021
|
-
}
|
2022
|
-
$JSCompiler_StaticMethods_fire_$self$$.$result_$ = $res$$10$$;
|
2023
|
-
if($isChained$$ && $JSCompiler_StaticMethods_fire_$self$$.$paused_$) {
|
2024
|
-
$JSCompiler_StaticMethods_addCallbacks$$($res$$10$$, $goog$bind$$($JSCompiler_StaticMethods_fire_$self$$.$continue_$, $JSCompiler_StaticMethods_fire_$self$$, !0), $goog$bind$$($JSCompiler_StaticMethods_fire_$self$$.$continue_$, $JSCompiler_StaticMethods_fire_$self$$, !1)), $res$$10$$.$chained_$ = !0
|
2025
|
-
}
|
2026
|
-
if($unhandledException$$) {
|
2027
|
-
$JSCompiler_StaticMethods_fire_$self$$.$unhandledExceptionTimeoutId_$ = $goog$global$$.setTimeout(function() {
|
2028
|
-
$res$$10$$.message !== $JSCompiler_alias_VOID$$ && $res$$10$$.stack && ($res$$10$$.message += "\n" + $res$$10$$.stack);
|
2029
|
-
$JSCompiler_alias_THROW$$($res$$10$$)
|
2030
|
-
}, 0)
|
2031
|
-
}
|
2032
|
-
}
|
2033
|
-
function $goog$async$Deferred$AlreadyCalledError$$($deferred$$) {
|
2034
|
-
$goog$debug$Error$$.call(this);
|
2035
|
-
this.$deferred$ = $deferred$$
|
2036
|
-
}
|
2037
|
-
$goog$inherits$$($goog$async$Deferred$AlreadyCalledError$$, $goog$debug$Error$$);
|
2038
|
-
$goog$async$Deferred$AlreadyCalledError$$.prototype.message = "Already called";
|
2039
|
-
function $goog$debug$Trace_$$() {
|
2040
|
-
this.$events_$ = [];
|
2041
|
-
this.$outstandingEvents_$ = new $goog$structs$Map$$;
|
2042
|
-
this.$tracerOverheadComment_$ = this.$tracerOverheadEnd_$ = this.$tracerOverheadStart_$ = this.$startTime_$ = 0;
|
2043
|
-
this.$stats_$ = new $goog$structs$Map$$;
|
2044
|
-
this.$commentCount_$ = this.$tracerCount_$ = 0;
|
2045
|
-
this.$nextId_$ = 1;
|
2046
|
-
this.$eventPool_$ = new $goog$structs$SimplePool$$(0, 4E3);
|
2047
|
-
this.$eventPool_$.$createObject$ = function $this$$eventPool_$$$createObject$$() {
|
2048
|
-
return new $goog$debug$Trace_$Event_$$
|
2049
|
-
};
|
2050
|
-
this.$statPool_$ = new $goog$structs$SimplePool$$(0, 50);
|
2051
|
-
this.$statPool_$.$createObject$ = function $this$$statPool_$$$createObject$$() {
|
2052
|
-
return new $goog$debug$Trace_$Stat_$$
|
2053
|
-
};
|
2054
|
-
var $that$$ = this;
|
2055
|
-
this.$idPool_$ = new $goog$structs$SimplePool$$(0, 2E3);
|
2056
|
-
this.$idPool_$.$createObject$ = function $this$$idPool_$$$createObject$$() {
|
2057
|
-
return String($that$$.$nextId_$++)
|
2058
|
-
};
|
2059
|
-
this.$idPool_$.$disposeObject$ = function $this$$idPool_$$$disposeObject$$() {
|
2060
|
-
};
|
2061
|
-
this.$defaultThreshold_$ = 3
|
2062
|
-
}
|
2063
|
-
$goog$debug$Trace_$$.prototype.$logger_$ = $goog$debug$LogManager$getLogger$$("goog.debug.Trace");
|
2064
|
-
function $goog$debug$Trace_$Stat_$$() {
|
2065
|
-
this.$varAlloc$ = this.$time$ = this.count = 0
|
2066
|
-
}
|
2067
|
-
$goog$debug$Trace_$Stat_$$.prototype.toString = function $$goog$debug$Trace_$Stat_$$$$toString$() {
|
2068
|
-
var $sb$$10$$ = [];
|
2069
|
-
$sb$$10$$.push(this.type, " ", this.count, " (", Math.round(this.$time$ * 10) / 10, " ms)");
|
2070
|
-
this.$varAlloc$ && $sb$$10$$.push(" [VarAlloc = ", this.$varAlloc$, "]");
|
2071
|
-
return $sb$$10$$.join("")
|
2072
|
-
};
|
2073
|
-
function $goog$debug$Trace_$Event_$$() {
|
2074
|
-
}
|
2075
|
-
function $JSCompiler_StaticMethods_toTraceString$$($JSCompiler_StaticMethods_toTraceString$self$$, $startTime$$, $prevTime$$, $indent$$) {
|
2076
|
-
var $sb$$11$$ = [];
|
2077
|
-
$prevTime$$ == -1 ? $sb$$11$$.push(" ") : $sb$$11$$.push($goog$debug$Trace_$longToPaddedString_$$($JSCompiler_StaticMethods_toTraceString$self$$.$eventTime$ - $prevTime$$));
|
2078
|
-
$sb$$11$$.push(" ", $goog$debug$Trace_$formatTime_$$($JSCompiler_StaticMethods_toTraceString$self$$.$eventTime$ - $startTime$$));
|
2079
|
-
$JSCompiler_StaticMethods_toTraceString$self$$.$eventType$ == 0 ? $sb$$11$$.push(" Start ") : $JSCompiler_StaticMethods_toTraceString$self$$.$eventType$ == 1 ? ($sb$$11$$.push(" Done "), $sb$$11$$.push($goog$debug$Trace_$longToPaddedString_$$($JSCompiler_StaticMethods_toTraceString$self$$.$stopTime$ - $JSCompiler_StaticMethods_toTraceString$self$$.startTime), " ms ")) : $sb$$11$$.push(" Comment ");
|
2080
|
-
$sb$$11$$.push($indent$$, $JSCompiler_StaticMethods_toTraceString$self$$);
|
2081
|
-
$JSCompiler_StaticMethods_toTraceString$self$$.$totalVarAlloc$ > 0 && $sb$$11$$.push("[VarAlloc ", $JSCompiler_StaticMethods_toTraceString$self$$.$totalVarAlloc$, "] ");
|
2082
|
-
return $sb$$11$$.join("")
|
2083
|
-
}
|
2084
|
-
$goog$debug$Trace_$Event_$$.prototype.toString = function $$goog$debug$Trace_$Event_$$$$toString$() {
|
2085
|
-
return this.type == $JSCompiler_alias_NULL$$ ? this.$comment$ : "[" + this.type + "] " + this.$comment$
|
2086
|
-
};
|
2087
|
-
$goog$debug$Trace_$$.prototype.reset = function $$goog$debug$Trace_$$$$reset$($defaultThreshold$$1_i$$111$$) {
|
2088
|
-
this.$defaultThreshold_$ = $defaultThreshold$$1_i$$111$$;
|
2089
|
-
for($defaultThreshold$$1_i$$111$$ = 0;$defaultThreshold$$1_i$$111$$ < this.$events_$.length;$defaultThreshold$$1_i$$111$$++) {
|
2090
|
-
var $id$$12_keys$$8$$ = this.$eventPool_$.id;
|
2091
|
-
$id$$12_keys$$8$$ && $JSCompiler_StaticMethods_releaseObject$$(this.$idPool_$, $id$$12_keys$$8$$);
|
2092
|
-
$JSCompiler_StaticMethods_releaseObject$$(this.$eventPool_$, this.$events_$[$defaultThreshold$$1_i$$111$$])
|
2093
|
-
}
|
2094
|
-
this.$events_$.length = 0;
|
2095
|
-
this.$outstandingEvents_$.clear();
|
2096
|
-
this.$startTime_$ = $goog$now$$();
|
2097
|
-
this.$commentCount_$ = this.$tracerCount_$ = this.$tracerOverheadComment_$ = this.$tracerOverheadEnd_$ = this.$tracerOverheadStart_$ = 0;
|
2098
|
-
$id$$12_keys$$8$$ = this.$stats_$.$getKeys$();
|
2099
|
-
for($defaultThreshold$$1_i$$111$$ = 0;$defaultThreshold$$1_i$$111$$ < $id$$12_keys$$8$$.length;$defaultThreshold$$1_i$$111$$++) {
|
2100
|
-
var $stat$$ = this.$stats_$.get($id$$12_keys$$8$$[$defaultThreshold$$1_i$$111$$]);
|
2101
|
-
$stat$$.count = 0;
|
2102
|
-
$stat$$.$time$ = 0;
|
2103
|
-
$stat$$.$varAlloc$ = 0;
|
2104
|
-
$JSCompiler_StaticMethods_releaseObject$$(this.$statPool_$, $stat$$)
|
2105
|
-
}
|
2106
|
-
this.$stats_$.clear()
|
2107
|
-
};
|
2108
|
-
$goog$debug$Trace_$$.prototype.toString = function $$goog$debug$Trace_$$$$toString$() {
|
2109
|
-
for(var $sb$$12$$ = [], $etime_statKeys$$ = -1, $indent$$1_stat$$4$$ = [], $i$$115$$ = 0;$i$$115$$ < this.$events_$.length;$i$$115$$++) {
|
2110
|
-
var $e$$36$$ = this.$events_$[$i$$115$$];
|
2111
|
-
$e$$36$$.$eventType$ == 1 && $indent$$1_stat$$4$$.pop();
|
2112
|
-
$sb$$12$$.push(" ", $JSCompiler_StaticMethods_toTraceString$$($e$$36$$, this.$startTime_$, $etime_statKeys$$, $indent$$1_stat$$4$$.join("")));
|
2113
|
-
$etime_statKeys$$ = $e$$36$$.$eventTime$;
|
2114
|
-
$sb$$12$$.push("\n");
|
2115
|
-
$e$$36$$.$eventType$ == 0 && $indent$$1_stat$$4$$.push("| ")
|
2116
|
-
}
|
2117
|
-
if(this.$outstandingEvents_$.$count_$ != 0) {
|
2118
|
-
var $now$$3$$ = $goog$now$$();
|
2119
|
-
$sb$$12$$.push(" Unstopped timers:\n");
|
2120
|
-
$goog$iter$forEach$$(this.$outstandingEvents_$, function($startEvent$$1$$) {
|
2121
|
-
$sb$$12$$.push(" ", $startEvent$$1$$, " (", $now$$3$$ - $startEvent$$1$$.startTime, " ms, started at ", $goog$debug$Trace_$formatTime_$$($startEvent$$1$$.startTime), ")\n")
|
2122
|
-
})
|
2123
|
-
}
|
2124
|
-
$etime_statKeys$$ = this.$stats_$.$getKeys$();
|
2125
|
-
for($i$$115$$ = 0;$i$$115$$ < $etime_statKeys$$.length;$i$$115$$++) {
|
2126
|
-
$indent$$1_stat$$4$$ = this.$stats_$.get($etime_statKeys$$[$i$$115$$]), $indent$$1_stat$$4$$.count > 1 && $sb$$12$$.push(" TOTAL ", $indent$$1_stat$$4$$, "\n")
|
2127
|
-
}
|
2128
|
-
$sb$$12$$.push("Total tracers created ", this.$tracerCount_$, "\n", "Total comments created ", this.$commentCount_$, "\n", "Overhead start: ", this.$tracerOverheadStart_$, " ms\n", "Overhead end: ", this.$tracerOverheadEnd_$, " ms\n", "Overhead comment: ", this.$tracerOverheadComment_$, " ms\n");
|
2129
|
-
return $sb$$12$$.join("")
|
2130
|
-
};
|
2131
|
-
function $goog$debug$Trace_$longToPaddedString_$$($v$$1$$) {
|
2132
|
-
var $v$$1$$ = Math.round($v$$1$$), $space$$1$$ = "";
|
2133
|
-
$v$$1$$ < 1E3 && ($space$$1$$ = " ");
|
2134
|
-
$v$$1$$ < 100 && ($space$$1$$ = " ");
|
2135
|
-
$v$$1$$ < 10 && ($space$$1$$ = " ");
|
2136
|
-
return $space$$1$$ + $v$$1$$
|
2137
|
-
}
|
2138
|
-
function $goog$debug$Trace_$formatTime_$$($time$$1$$) {
|
2139
|
-
$time$$1$$ = Math.round($time$$1$$);
|
2140
|
-
return String(100 + $time$$1$$ / 1E3 % 60).substring(1, 3) + "." + String(1E3 + $time$$1$$ % 1E3).substring(1, 4)
|
2141
|
-
}
|
2142
|
-
new $goog$debug$Trace_$$;
|
2143
|
-
function $goog$functions$error$$($message$$13$$) {
|
2144
|
-
return function() {
|
2145
|
-
$JSCompiler_alias_THROW$$(Error($message$$13$$))
|
2146
|
-
}
|
2147
|
-
}
|
2148
|
-
;function $goog$module$BaseModule$$() {
|
2149
|
-
}
|
2150
|
-
$goog$inherits$$($goog$module$BaseModule$$, $goog$Disposable$$);
|
2151
|
-
function $goog$module$ModuleLoadCallback$$($fn$$9$$, $opt_handler$$14$$) {
|
2152
|
-
this.$fn_$ = $fn$$9$$;
|
2153
|
-
this.$handler_$ = $opt_handler$$14$$
|
2154
|
-
}
|
2155
|
-
$goog$module$ModuleLoadCallback$$.prototype.execute = function $$goog$module$ModuleLoadCallback$$$$execute$($context$$7$$) {
|
2156
|
-
if(this.$fn_$) {
|
2157
|
-
this.$fn_$.call(this.$handler_$ || $JSCompiler_alias_NULL$$, $context$$7$$), this.$fn_$ = this.$handler_$ = $JSCompiler_alias_NULL$$
|
2158
|
-
}
|
2159
|
-
};
|
2160
|
-
$goog$module$ModuleLoadCallback$$.prototype.abort = function $$goog$module$ModuleLoadCallback$$$$abort$() {
|
2161
|
-
this.$handler_$ = this.$fn_$ = $JSCompiler_alias_NULL$$
|
2162
|
-
};
|
2163
|
-
function $goog$module$ModuleInfo$$($deps$$3$$, $id$$14$$) {
|
2164
|
-
this.$deps_$ = $deps$$3$$;
|
2165
|
-
this.$id_$ = $id$$14$$;
|
2166
|
-
this.$onloadCallbacks_$ = [];
|
2167
|
-
this.$onErrorCallbacks_$ = [];
|
2168
|
-
this.$earlyOnloadCallbacks_$ = []
|
2169
|
-
}
|
2170
|
-
$goog$inherits$$($goog$module$ModuleInfo$$, $goog$Disposable$$);
|
2171
|
-
$JSCompiler_prototypeAlias$$ = $goog$module$ModuleInfo$$.prototype;
|
2172
|
-
$JSCompiler_prototypeAlias$$.$uris_$ = $JSCompiler_alias_NULL$$;
|
2173
|
-
$JSCompiler_prototypeAlias$$.$moduleConstructor_$ = $goog$module$BaseModule$$;
|
2174
|
-
$JSCompiler_prototypeAlias$$.$module_$ = $JSCompiler_alias_NULL$$;
|
2175
|
-
$JSCompiler_prototypeAlias$$.$getId$ = $JSCompiler_get$$("$id_$");
|
2176
|
-
$JSCompiler_prototypeAlias$$.$registerCallback$ = function $$JSCompiler_prototypeAlias$$$$registerCallback$$($fn$$11$$, $opt_handler$$16$$) {
|
2177
|
-
return this.$registerCallback_$(this.$onloadCallbacks_$, $fn$$11$$, $opt_handler$$16$$)
|
2178
|
-
};
|
2179
|
-
function $JSCompiler_StaticMethods_registerErrback$$($JSCompiler_StaticMethods_registerErrback$self$$, $fn$$12$$) {
|
2180
|
-
$JSCompiler_StaticMethods_registerErrback$self$$.$registerCallback_$($JSCompiler_StaticMethods_registerErrback$self$$.$onErrorCallbacks_$, $fn$$12$$, $JSCompiler_alias_VOID$$)
|
2181
|
-
}
|
2182
|
-
$JSCompiler_prototypeAlias$$.$registerCallback_$ = function $$JSCompiler_prototypeAlias$$$$registerCallback_$$($callbacks$$, $callback$$24_fn$$13$$, $opt_handler$$18$$) {
|
2183
|
-
$callback$$24_fn$$13$$ = new $goog$module$ModuleLoadCallback$$($callback$$24_fn$$13$$, $opt_handler$$18$$);
|
2184
|
-
$callbacks$$.push($callback$$24_fn$$13$$);
|
2185
|
-
return $callback$$24_fn$$13$$
|
2186
|
-
};
|
2187
|
-
function $JSCompiler_StaticMethods_onLoad$$($JSCompiler_StaticMethods_onLoad$self$$, $contextProvider$$) {
|
2188
|
-
var $errors_module$$ = new $JSCompiler_StaticMethods_onLoad$self$$.$moduleConstructor_$;
|
2189
|
-
$contextProvider$$();
|
2190
|
-
$JSCompiler_StaticMethods_onLoad$self$$.$module_$ = $errors_module$$;
|
2191
|
-
$errors_module$$ = $JSCompiler_StaticMethods_callCallbacks_$$($JSCompiler_StaticMethods_onLoad$self$$.$earlyOnloadCallbacks_$, $contextProvider$$());
|
2192
|
-
($errors_module$$ = !!$errors_module$$ || !!$JSCompiler_StaticMethods_callCallbacks_$$($JSCompiler_StaticMethods_onLoad$self$$.$onloadCallbacks_$, $contextProvider$$())) ? $JSCompiler_StaticMethods_onError$$($JSCompiler_StaticMethods_onLoad$self$$, $goog$module$ModuleManager$FailureType$INIT_ERROR$$) : $JSCompiler_StaticMethods_onLoad$self$$.$onErrorCallbacks_$.length = 0
|
2193
|
-
}
|
2194
|
-
function $JSCompiler_StaticMethods_onError$$($JSCompiler_StaticMethods_onError$self$$, $cause$$) {
|
2195
|
-
var $result$$13$$ = $JSCompiler_StaticMethods_callCallbacks_$$($JSCompiler_StaticMethods_onError$self$$.$onErrorCallbacks_$, $cause$$);
|
2196
|
-
$result$$13$$ && window.setTimeout($goog$functions$error$$("Module errback failures: " + $result$$13$$), 0);
|
2197
|
-
$JSCompiler_StaticMethods_onError$self$$.$earlyOnloadCallbacks_$.length = 0;
|
2198
|
-
$JSCompiler_StaticMethods_onError$self$$.$onloadCallbacks_$.length = 0
|
2199
|
-
}
|
2200
|
-
function $JSCompiler_StaticMethods_callCallbacks_$$($callbacks$$1$$, $context$$8$$) {
|
2201
|
-
for(var $errors$$1$$ = [], $i$$120$$ = 0;$i$$120$$ < $callbacks$$1$$.length;$i$$120$$++) {
|
2202
|
-
try {
|
2203
|
-
$callbacks$$1$$[$i$$120$$].execute($context$$8$$)
|
2204
|
-
}catch($e$$37$$) {
|
2205
|
-
$errors$$1$$.push($e$$37$$)
|
2206
|
-
}
|
2207
|
-
}
|
2208
|
-
$callbacks$$1$$.length = 0;
|
2209
|
-
return $errors$$1$$.length ? $errors$$1$$ : $JSCompiler_alias_NULL$$
|
2210
|
-
}
|
2211
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
2212
|
-
$goog$module$ModuleInfo$$.$superClass_$.$disposeInternal$.call(this);
|
2213
|
-
$goog$dispose$$(this.$module_$)
|
2214
|
-
};
|
2215
|
-
function $goog$module$ModuleManager$$() {
|
2216
|
-
this.$moduleInfoMap_$ = {};
|
2217
|
-
this.$loadingModuleIds_$ = [];
|
2218
|
-
this.$requestedModuleIdsQueue_$ = [];
|
2219
|
-
this.$userInitiatedLoadingModuleIds_$ = [];
|
2220
|
-
this.$callbackMap_$ = {};
|
2221
|
-
this.$currentlyLoadingModule_$ = this.$baseModuleInfo_$ = new $goog$module$ModuleInfo$$([], "")
|
2222
|
-
}
|
2223
|
-
$goog$inherits$$($goog$module$ModuleManager$$, $goog$Disposable$$);
|
2224
|
-
$goog$addSingletonGetter$$($goog$module$ModuleManager$$);
|
2225
|
-
$JSCompiler_prototypeAlias$$ = $goog$module$ModuleManager$$.prototype;
|
2226
|
-
$JSCompiler_prototypeAlias$$.$logger_$ = $goog$debug$LogManager$getLogger$$("goog.module.ModuleManager");
|
2227
|
-
$JSCompiler_prototypeAlias$$.$batchModeEnabled_$ = !1;
|
2228
|
-
$JSCompiler_prototypeAlias$$.$loader_$ = $JSCompiler_alias_NULL$$;
|
2229
|
-
$JSCompiler_prototypeAlias$$.$consecutiveFailures_$ = 0;
|
2230
|
-
$JSCompiler_prototypeAlias$$.$lastActive_$ = !1;
|
2231
|
-
$JSCompiler_prototypeAlias$$.$userLastActive_$ = !1;
|
2232
|
-
$JSCompiler_prototypeAlias$$.$moduleContext_$ = $JSCompiler_alias_NULL$$;
|
2233
|
-
$JSCompiler_prototypeAlias$$.$getModuleContext$ = $JSCompiler_get$$("$moduleContext_$");
|
2234
|
-
$JSCompiler_prototypeAlias$$.$isActive$ = function $$JSCompiler_prototypeAlias$$$$isActive$$() {
|
2235
|
-
return this.$loadingModuleIds_$.length > 0
|
2236
|
-
};
|
2237
|
-
function $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$($JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$) {
|
2238
|
-
var $active_userActive$$ = $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$.$isActive$();
|
2239
|
-
if($active_userActive$$ != $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$.$lastActive_$) {
|
2240
|
-
$JSCompiler_StaticMethods_executeCallbacks_$$($JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$, $active_userActive$$ ? "active" : "idle"), $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$.$lastActive_$ = $active_userActive$$
|
2241
|
-
}
|
2242
|
-
$active_userActive$$ = $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$.$userInitiatedLoadingModuleIds_$.length > 0;
|
2243
|
-
if($active_userActive$$ != $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$.$userLastActive_$) {
|
2244
|
-
$JSCompiler_StaticMethods_executeCallbacks_$$($JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$, $active_userActive$$ ? "userActive" : "userIdle"), $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$self$$.$userLastActive_$ = $active_userActive$$
|
2245
|
-
}
|
2246
|
-
}
|
2247
|
-
function $JSCompiler_StaticMethods_loadModuleOrEnqueue_$$($JSCompiler_StaticMethods_loadModuleOrEnqueue_$self$$, $id$$21$$) {
|
2248
|
-
$JSCompiler_StaticMethods_loadModuleOrEnqueue_$self$$.$loadingModuleIds_$.length == 0 ? $JSCompiler_StaticMethods_loadModule_$$($JSCompiler_StaticMethods_loadModuleOrEnqueue_$self$$, $id$$21$$) : ($JSCompiler_StaticMethods_loadModuleOrEnqueue_$self$$.$requestedModuleIdsQueue_$.push($id$$21$$), $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$($JSCompiler_StaticMethods_loadModuleOrEnqueue_$self$$))
|
2249
|
-
}
|
2250
|
-
function $JSCompiler_StaticMethods_loadModule_$$($JSCompiler_StaticMethods_loadModule_$self$$, $delay$$3_id$$22$$, $opt_isRetry$$, $opt_forceReload$$5$$) {
|
2251
|
-
function $load$$() {
|
2252
|
-
var $ids$$inline_387$$ = $goog$array$clone$$($ids$$6$$), $opt_errorFn$$inline_389$$ = $goog$bind$$(this.$handleLoadError_$, this), $opt_timeoutFn$$inline_390$$ = $goog$bind$$(this.$handleLoadTimeout_$, this);
|
2253
|
-
this.$loader_$.$loadModulesInternal$($ids$$inline_387$$, this.$moduleInfoMap_$, $JSCompiler_alias_NULL$$, $opt_errorFn$$inline_389$$, $opt_timeoutFn$$inline_390$$, !!$opt_forceReload$$5$$)
|
2254
|
-
}
|
2255
|
-
$JSCompiler_StaticMethods_loadModule_$self$$.$moduleInfoMap_$[$delay$$3_id$$22$$].$module_$ && $JSCompiler_alias_THROW$$(Error("Module already loaded: " + $delay$$3_id$$22$$));
|
2256
|
-
var $ids$$6$$ = $JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$$($JSCompiler_StaticMethods_loadModule_$self$$, $delay$$3_id$$22$$);
|
2257
|
-
if(!$JSCompiler_StaticMethods_loadModule_$self$$.$batchModeEnabled_$ && $ids$$6$$.length > 1) {
|
2258
|
-
var $idToLoad$$ = $ids$$6$$.shift();
|
2259
|
-
$JSCompiler_StaticMethods_loadModule_$self$$.$logger_$.info("Must load " + $idToLoad$$ + " module before " + $delay$$3_id$$22$$);
|
2260
|
-
$JSCompiler_StaticMethods_loadModule_$self$$.$requestedModuleIdsQueue_$ = $ids$$6$$.concat($JSCompiler_StaticMethods_loadModule_$self$$.$requestedModuleIdsQueue_$);
|
2261
|
-
$ids$$6$$ = [$idToLoad$$]
|
2262
|
-
}
|
2263
|
-
if(!$opt_isRetry$$) {
|
2264
|
-
$JSCompiler_StaticMethods_loadModule_$self$$.$consecutiveFailures_$ = 0
|
2265
|
-
}
|
2266
|
-
$JSCompiler_StaticMethods_loadModule_$self$$.$logger_$.info("Loading module(s): " + $ids$$6$$);
|
2267
|
-
$JSCompiler_StaticMethods_loadModule_$self$$.$loadingModuleIds_$ = $ids$$6$$;
|
2268
|
-
$JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$($JSCompiler_StaticMethods_loadModule_$self$$);
|
2269
|
-
($delay$$3_id$$22$$ = Math.pow($JSCompiler_StaticMethods_loadModule_$self$$.$consecutiveFailures_$, 2) * 5E3) ? window.setTimeout($goog$bind$$($load$$, $JSCompiler_StaticMethods_loadModule_$self$$), $delay$$3_id$$22$$) : $load$$.call($JSCompiler_StaticMethods_loadModule_$self$$)
|
2270
|
-
}
|
2271
|
-
function $JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$$($JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$self$$, $id$$23$$) {
|
2272
|
-
for(var $ids$$7$$ = [$id$$23$$], $depIds_seen$$inline_402$$ = $goog$array$clone$$($JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$self$$.$moduleInfoMap_$[$id$$23$$].$deps_$);$depIds_seen$$inline_402$$.length;) {
|
2273
|
-
var $cursorInsert$$inline_403_depId$$ = $depIds_seen$$inline_402$$.pop();
|
2274
|
-
$JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$self$$.$moduleInfoMap_$[$cursorInsert$$inline_403_depId$$].$module_$ || ($ids$$7$$.unshift($cursorInsert$$inline_403_depId$$), Array.prototype.unshift.apply($depIds_seen$$inline_402$$, $JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$self$$.$moduleInfoMap_$[$cursorInsert$$inline_403_depId$$].$deps_$))
|
2275
|
-
}
|
2276
|
-
for(var $depIds_seen$$inline_402$$ = {}, $cursorRead$$inline_404$$ = $cursorInsert$$inline_403_depId$$ = 0;$cursorRead$$inline_404$$ < $ids$$7$$.length;) {
|
2277
|
-
var $current$$inline_405$$ = $ids$$7$$[$cursorRead$$inline_404$$++], $key$$inline_406$$ = $goog$isObject$$($current$$inline_405$$) ? "o" + $goog$getUid$$($current$$inline_405$$) : (typeof $current$$inline_405$$).charAt(0) + $current$$inline_405$$;
|
2278
|
-
Object.prototype.hasOwnProperty.call($depIds_seen$$inline_402$$, $key$$inline_406$$) || ($depIds_seen$$inline_402$$[$key$$inline_406$$] = !0, $ids$$7$$[$cursorInsert$$inline_403_depId$$++] = $current$$inline_405$$)
|
2279
|
-
}
|
2280
|
-
$ids$$7$$.length = $cursorInsert$$inline_403_depId$$;
|
2281
|
-
return $ids$$7$$
|
2282
|
-
}
|
2283
|
-
function $JSCompiler_StaticMethods_setLoaded$$($JSCompiler_StaticMethods_setLoaded$self$$, $id$$24$$) {
|
2284
|
-
$JSCompiler_StaticMethods_setLoaded$self$$.$disposed_$ ? $JSCompiler_StaticMethods_setLoaded$self$$.$logger_$.log($goog$debug$Logger$Level$WARNING$$, "Module loaded after module manager was disposed: " + $id$$24$$, $JSCompiler_alias_VOID$$) : ($JSCompiler_StaticMethods_setLoaded$self$$.$logger_$.info("Module loaded: " + $id$$24$$), $JSCompiler_StaticMethods_onLoad$$($JSCompiler_StaticMethods_setLoaded$self$$.$moduleInfoMap_$[$id$$24$$], $goog$bind$$($JSCompiler_StaticMethods_setLoaded$self$$.$getModuleContext$,
|
2285
|
-
$JSCompiler_StaticMethods_setLoaded$self$$)), $goog$array$remove$$($JSCompiler_StaticMethods_setLoaded$self$$.$userInitiatedLoadingModuleIds_$, $id$$24$$), $goog$array$remove$$($JSCompiler_StaticMethods_setLoaded$self$$.$loadingModuleIds_$, $id$$24$$), $JSCompiler_StaticMethods_setLoaded$self$$.$loadingModuleIds_$.length == 0 && $JSCompiler_StaticMethods_loadNextModule_$$($JSCompiler_StaticMethods_setLoaded$self$$), $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$($JSCompiler_StaticMethods_setLoaded$self$$))
|
2286
|
-
}
|
2287
|
-
function $JSCompiler_StaticMethods_execOnLoad$$($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$, $moduleId$$, $fn$$14$$, $opt_handler$$19$$) {
|
2288
|
-
var $moduleInfo$$2$$ = $JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$moduleInfoMap_$[$moduleId$$];
|
2289
|
-
$moduleInfo$$2$$.$module_$ ? ($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$logger_$.info($moduleId$$ + " module already loaded"), $JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$ = new $goog$module$ModuleLoadCallback$$($fn$$14$$, $opt_handler$$19$$), window.setTimeout($goog$bind$$($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.execute, $JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$), 0)) : $goog$array$contains$$($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$loadingModuleIds_$,
|
2290
|
-
$moduleId$$) || $goog$array$contains$$($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$requestedModuleIdsQueue_$, $moduleId$$) ? ($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$logger_$.info($moduleId$$ + " module already loading"), $moduleInfo$$2$$.$registerCallback$($fn$$14$$, $opt_handler$$19$$)) : ($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$logger_$.info("Registering callback for module: " + $moduleId$$), $moduleInfo$$2$$.$registerCallback$($fn$$14$$,
|
2291
|
-
$opt_handler$$19$$), $JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$.$logger_$.info("Initiating module load: " + $moduleId$$), $JSCompiler_StaticMethods_loadModuleOrEnqueue_$$($JSCompiler_StaticMethods_execOnLoad$self_callbackWrapper$$, $moduleId$$))
|
2292
|
-
}
|
2293
|
-
$JSCompiler_prototypeAlias$$.load = function $$JSCompiler_prototypeAlias$$$load$($moduleId$$1$$, $opt_userInitiated$$1$$) {
|
2294
|
-
var $moduleInfo$$3$$ = this.$moduleInfoMap_$[$moduleId$$1$$], $d$$5$$ = new $goog$async$Deferred$$;
|
2295
|
-
$moduleInfo$$3$$.$module_$ ? $d$$5$$.$callback$(this.$moduleContext_$) : $goog$array$contains$$(this.$loadingModuleIds_$, $moduleId$$1$$) || $goog$array$contains$$(this.$requestedModuleIdsQueue_$, $moduleId$$1$$) ? (this.$logger_$.info($moduleId$$1$$ + " module already loading"), $moduleInfo$$3$$.$registerCallback$($d$$5$$.$callback$, $d$$5$$), $JSCompiler_StaticMethods_registerErrback$$($moduleInfo$$3$$, function($err$$7_result$$inline_411$$) {
|
2296
|
-
$err$$7_result$$inline_411$$ = Error($err$$7_result$$inline_411$$);
|
2297
|
-
$JSCompiler_StaticMethods_check_$$($d$$5$$);
|
2298
|
-
$JSCompiler_StaticMethods_assertNotDeferred_$$($err$$7_result$$inline_411$$);
|
2299
|
-
$JSCompiler_StaticMethods_resback_$$($d$$5$$, !1, $err$$7_result$$inline_411$$)
|
2300
|
-
}), $opt_userInitiated$$1$$ && (this.$logger_$.info("User initiated module already loading: " + $moduleId$$1$$), $JSCompiler_StaticMethods_addUserIntiatedLoadingModule_$$(this, $moduleId$$1$$), $JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$(this))) : (this.$logger_$.info("Registering callback for module: " + $moduleId$$1$$), $moduleInfo$$3$$.$registerCallback$($d$$5$$.$callback$, $d$$5$$), $JSCompiler_StaticMethods_registerErrback$$($moduleInfo$$3$$, function($err$$8_result$$inline_416$$) {
|
2301
|
-
$err$$8_result$$inline_416$$ = Error($err$$8_result$$inline_416$$);
|
2302
|
-
$JSCompiler_StaticMethods_check_$$($d$$5$$);
|
2303
|
-
$JSCompiler_StaticMethods_assertNotDeferred_$$($err$$8_result$$inline_416$$);
|
2304
|
-
$JSCompiler_StaticMethods_resback_$$($d$$5$$, !1, $err$$8_result$$inline_416$$)
|
2305
|
-
}), $opt_userInitiated$$1$$ ? (this.$logger_$.info("User initiated module load: " + $moduleId$$1$$), $JSCompiler_StaticMethods_addUserIntiatedLoadingModule_$$(this, $moduleId$$1$$)) : this.$logger_$.info("Initiating module load: " + $moduleId$$1$$), $JSCompiler_StaticMethods_loadModuleOrEnqueue_$$(this, $moduleId$$1$$));
|
2306
|
-
return $d$$5$$
|
2307
|
-
};
|
2308
|
-
function $JSCompiler_StaticMethods_addUserIntiatedLoadingModule_$$($JSCompiler_StaticMethods_addUserIntiatedLoadingModule_$self$$, $id$$26$$) {
|
2309
|
-
$goog$array$contains$$($JSCompiler_StaticMethods_addUserIntiatedLoadingModule_$self$$.$userInitiatedLoadingModuleIds_$, $id$$26$$) || $JSCompiler_StaticMethods_addUserIntiatedLoadingModule_$self$$.$userInitiatedLoadingModuleIds_$.push($id$$26$$)
|
2310
|
-
}
|
2311
|
-
var $goog$module$ModuleManager$FailureType$INIT_ERROR$$ = 4;
|
2312
|
-
$JSCompiler_prototypeAlias$$ = $goog$module$ModuleManager$$.prototype;
|
2313
|
-
$JSCompiler_prototypeAlias$$.$handleLoadError_$ = function $$JSCompiler_prototypeAlias$$$$handleLoadError_$$($status$$2$$) {
|
2314
|
-
this.$consecutiveFailures_$++;
|
2315
|
-
if($status$$2$$ == 401) {
|
2316
|
-
this.$logger_$.info("Module loading unauthorized"), $JSCompiler_StaticMethods_dispatchModuleLoadFailed_$$(this, 0), this.$requestedModuleIdsQueue_$.length = 0
|
2317
|
-
}else {
|
2318
|
-
if($status$$2$$ == 410) {
|
2319
|
-
$JSCompiler_StaticMethods_dispatchModuleLoadFailed_$$(this, 3), $JSCompiler_StaticMethods_loadNextModule_$$(this)
|
2320
|
-
}else {
|
2321
|
-
if(this.$consecutiveFailures_$ >= 3) {
|
2322
|
-
this.$logger_$.info("Aborting after failure to load: " + this.$loadingModuleIds_$), $JSCompiler_StaticMethods_dispatchModuleLoadFailed_$$(this, 1), $JSCompiler_StaticMethods_loadNextModule_$$(this)
|
2323
|
-
}else {
|
2324
|
-
this.$logger_$.info("Retrying after failure to load: " + this.$loadingModuleIds_$);
|
2325
|
-
var $id$$29$$ = this.$loadingModuleIds_$.pop();
|
2326
|
-
this.$loadingModuleIds_$.length = 0;
|
2327
|
-
$JSCompiler_StaticMethods_loadModule_$$(this, $id$$29$$, !0, $status$$2$$ == 8001)
|
2328
|
-
}
|
2329
|
-
}
|
2330
|
-
}
|
2331
|
-
};
|
2332
|
-
$JSCompiler_prototypeAlias$$.$handleLoadTimeout_$ = function $$JSCompiler_prototypeAlias$$$$handleLoadTimeout_$$() {
|
2333
|
-
this.$logger_$.info("Aborting after timeout: " + this.$loadingModuleIds_$);
|
2334
|
-
$JSCompiler_StaticMethods_dispatchModuleLoadFailed_$$(this, 2);
|
2335
|
-
$JSCompiler_StaticMethods_loadNextModule_$$(this)
|
2336
|
-
};
|
2337
|
-
function $JSCompiler_StaticMethods_dispatchModuleLoadFailed_$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$, $cause$$1$$) {
|
2338
|
-
var $id$$30$$ = $JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$loadingModuleIds_$.pop();
|
2339
|
-
$JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$loadingModuleIds_$.length = 0;
|
2340
|
-
var $idsToCancel$$ = $goog$array$filter$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$requestedModuleIdsQueue_$, function($requestedId$$) {
|
2341
|
-
return $goog$array$contains$$($JSCompiler_StaticMethods_getNotYetLoadedTransitiveDepIds_$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$, $requestedId$$), $id$$30$$)
|
2342
|
-
});
|
2343
|
-
$id$$30$$ && $goog$array$insert$$($idsToCancel$$, $id$$30$$);
|
2344
|
-
for(var $i$$122$$ = 0;$i$$122$$ < $idsToCancel$$.length;$i$$122$$++) {
|
2345
|
-
$goog$array$remove$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$requestedModuleIdsQueue_$, $idsToCancel$$[$i$$122$$]), $goog$array$remove$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$userInitiatedLoadingModuleIds_$, $idsToCancel$$[$i$$122$$])
|
2346
|
-
}
|
2347
|
-
var $errorCallbacks$$ = $JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$callbackMap_$.error;
|
2348
|
-
if($errorCallbacks$$) {
|
2349
|
-
for($i$$122$$ = 0;$i$$122$$ < $errorCallbacks$$.length;$i$$122$$++) {
|
2350
|
-
for(var $callback$$25$$ = $errorCallbacks$$[$i$$122$$], $j$$8$$ = 0;$j$$8$$ < $idsToCancel$$.length;$j$$8$$++) {
|
2351
|
-
$callback$$25$$("error", $idsToCancel$$[$j$$8$$], $cause$$1$$)
|
2352
|
-
}
|
2353
|
-
}
|
2354
|
-
}
|
2355
|
-
$JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$moduleInfoMap_$[$id$$30$$] && $JSCompiler_StaticMethods_onError$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$.$moduleInfoMap_$[$id$$30$$], $cause$$1$$);
|
2356
|
-
$JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$($JSCompiler_StaticMethods_dispatchModuleLoadFailed_$self$$)
|
2357
|
-
}
|
2358
|
-
function $JSCompiler_StaticMethods_loadNextModule_$$($JSCompiler_StaticMethods_loadNextModule_$self$$) {
|
2359
|
-
for(;$JSCompiler_StaticMethods_loadNextModule_$self$$.$requestedModuleIdsQueue_$.length;) {
|
2360
|
-
var $nextId$$ = $JSCompiler_StaticMethods_loadNextModule_$self$$.$requestedModuleIdsQueue_$.shift();
|
2361
|
-
if(!$JSCompiler_StaticMethods_loadNextModule_$self$$.$moduleInfoMap_$[$nextId$$].$module_$) {
|
2362
|
-
$JSCompiler_StaticMethods_loadModule_$$($JSCompiler_StaticMethods_loadNextModule_$self$$, $nextId$$);
|
2363
|
-
return
|
2364
|
-
}
|
2365
|
-
}
|
2366
|
-
$JSCompiler_StaticMethods_dispatchActiveIdleChangeIfNeeded_$$($JSCompiler_StaticMethods_loadNextModule_$self$$)
|
2367
|
-
}
|
2368
|
-
$JSCompiler_prototypeAlias$$.$registerCallback$ = function $$JSCompiler_prototypeAlias$$$$registerCallback$$($types$$, $fn$$17$$) {
|
2369
|
-
$goog$isArray$$($types$$) || ($types$$ = [$types$$]);
|
2370
|
-
for(var $i$$123$$ = 0;$i$$123$$ < $types$$.length;$i$$123$$++) {
|
2371
|
-
this.$registerCallback_$($types$$[$i$$123$$], $fn$$17$$)
|
2372
|
-
}
|
2373
|
-
};
|
2374
|
-
$JSCompiler_prototypeAlias$$.$registerCallback_$ = function $$JSCompiler_prototypeAlias$$$$registerCallback_$$($type$$79$$, $fn$$18$$) {
|
2375
|
-
var $callbackMap$$ = this.$callbackMap_$;
|
2376
|
-
$callbackMap$$[$type$$79$$] || ($callbackMap$$[$type$$79$$] = []);
|
2377
|
-
$callbackMap$$[$type$$79$$].push($fn$$18$$)
|
2378
|
-
};
|
2379
|
-
function $JSCompiler_StaticMethods_executeCallbacks_$$($JSCompiler_StaticMethods_executeCallbacks_$self$$, $type$$80$$) {
|
2380
|
-
for(var $callbacks$$2$$ = $JSCompiler_StaticMethods_executeCallbacks_$self$$.$callbackMap_$[$type$$80$$], $i$$124$$ = 0;$callbacks$$2$$ && $i$$124$$ < $callbacks$$2$$.length;$i$$124$$++) {
|
2381
|
-
$callbacks$$2$$[$i$$124$$]($type$$80$$)
|
2382
|
-
}
|
2383
|
-
}
|
2384
|
-
$JSCompiler_prototypeAlias$$.$disposeInternal$ = function $$JSCompiler_prototypeAlias$$$$disposeInternal$$() {
|
2385
|
-
$goog$module$ModuleManager$$.$superClass_$.$disposeInternal$.call(this);
|
2386
|
-
$goog$array$forEach$$($goog$object$getValues$$(this.$moduleInfoMap_$), $goog$dispose$$);
|
2387
|
-
this.$callbackMap_$ = this.$requestedModuleIdsQueue_$ = this.$userInitiatedLoadingModuleIds_$ = this.$loadingModuleIds_$ = this.$moduleInfoMap_$ = $JSCompiler_alias_NULL$$
|
2388
|
-
};
|
2389
|
-
$example$App$buttonClickHandler_$$ = function $$example$App$buttonClickHandler_$$$() {
|
2390
|
-
$JSCompiler_StaticMethods_execOnLoad$$($goog$module$ModuleManager$$.$getInstance$(), "settings", this.$onSettingsLoaded$, this)
|
2391
|
-
};
|
2392
|
-
$example$App$install$$("content");
|
2393
|
-
var $moduleManager$$ = $goog$module$ModuleManager$$.$getInstance$(), $moduleLoader$$ = new $goog$module$ModuleLoader$$;
|
2394
|
-
$moduleManager$$.$loader_$ = $moduleLoader$$;
|
2395
|
-
var $infoMap$$inline_426$$ = $goog$global$$.MODULE_INFO, $id$$inline_427$$;
|
2396
|
-
for($id$$inline_427$$ in $infoMap$$inline_426$$) {
|
2397
|
-
$moduleManager$$.$moduleInfoMap_$[$id$$inline_427$$] = new $goog$module$ModuleInfo$$($infoMap$$inline_426$$[$id$$inline_427$$], $id$$inline_427$$)
|
2398
|
-
}
|
2399
|
-
if($moduleManager$$.$currentlyLoadingModule_$ == $moduleManager$$.$baseModuleInfo_$) {
|
2400
|
-
$moduleManager$$.$currentlyLoadingModule_$ = $JSCompiler_alias_NULL$$, $JSCompiler_StaticMethods_onLoad$$($moduleManager$$.$baseModuleInfo_$, $goog$bind$$($moduleManager$$.$getModuleContext$, $moduleManager$$))
|
2401
|
-
}
|
2402
|
-
var $moduleUriMap$$inline_438$$ = $goog$global$$.MODULE_URIS, $id$$inline_439$$;
|
2403
|
-
for($id$$inline_439$$ in $moduleUriMap$$inline_438$$) {
|
2404
|
-
$moduleManager$$.$moduleInfoMap_$[$id$$inline_439$$].$uris_$ = $moduleUriMap$$inline_438$$[$id$$inline_439$$]
|
2405
|
-
}
|
2406
|
-
$JSCompiler_StaticMethods_setLoaded$$($moduleManager$$, "app");
|
2407
|
-
$goog$exportPath_$$("example.api.load", function($callback$$26$$) {
|
2408
|
-
$JSCompiler_StaticMethods_execOnLoad$$($moduleManager$$, "api", $callback$$26$$)
|
2409
|
-
});
|
2410
|
-
$goog$exportPath_$$("example.api.isLoaded", function() {
|
2411
|
-
var $moduleInfo$$4$$ = $moduleManager$$.$moduleInfoMap_$.api;
|
2412
|
-
return $moduleInfo$$4$$ ? !!$moduleInfo$$4$$.$module_$ : !1
|
2413
|
-
});
|
2414
|
-
|