Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/site/articles/trydart/examples/6-piratebadge_json/piratebadge.dart.js

Issue 35913002: Try Dart 1 hour experience first draft (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: rough draft ready for review (2nd try after errors) Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by dart2js, the Dart to JavaScript compiler. 1 // Generated by dart2js, the Dart to JavaScript compiler.
2 // The code supports the following hooks: 2 // The code supports the following hooks:
3 // dartPrint(message) - if this function is defined it is called 3 // dartPrint(message) - if this function is defined it is called
4 // instead of the Dart [print] method. 4 // instead of the Dart [print] method.
5 // dartMainRunner(main) - if this function is defined, the Dart [main] 5 // dartMainRunner(main) - if this function is defined, the Dart [main]
6 // method will not be invoked directly. 6 // method will not be invoked directly.
7 // Instead, a closure that will invoke [main] is 7 // Instead, a closure that will invoke [main] is
8 // passed to [dartMainRunner]. 8 // passed to [dartMainRunner].
9 (function($) { 9 (function($) {
10 var A = {}; 10 var A = {};
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 return t1; 270 return t1;
271 }, 271 },
272 elementAt$1: function(receiver, index) { 272 elementAt$1: function(receiver, index) {
273 if (index < 0 || index >= receiver.length) 273 if (index < 0 || index >= receiver.length)
274 throw H.ioore(receiver, index); 274 throw H.ioore(receiver, index);
275 return receiver[index]; 275 return receiver[index];
276 }, 276 },
277 toString$0: function(receiver) { 277 toString$0: function(receiver) {
278 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); 278 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]");
279 }, 279 },
280 toList$1$growable: function(receiver, growable) {
281 return P.List_List$from(receiver, growable, H.getRuntimeTypeArgument(receive r, "JSArray", 0));
282 },
283 toList$0: function($receiver) {
284 return this.toList$1$growable($receiver, true);
285 },
280 get$iterator: function(receiver) { 286 get$iterator: function(receiver) {
281 return new H.ListIterator(receiver, receiver.length, 0, null); 287 return new H.ListIterator(receiver, receiver.length, 0, null);
282 }, 288 },
283 get$hashCode: function(receiver) { 289 get$hashCode: function(receiver) {
284 return H.Primitives_objectHashCode(receiver); 290 return H.Primitives_objectHashCode(receiver);
285 }, 291 },
286 get$length: function(receiver) { 292 get$length: function(receiver) {
287 return receiver.length; 293 return receiver.length;
288 }, 294 },
289 set$length: function(receiver, newLength) { 295 set$length: function(receiver, newLength) {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 throw H.iae(endIndex); 411 throw H.iae(endIndex);
406 if (startIndex > endIndex) 412 if (startIndex > endIndex)
407 throw H.wrapException(new P.RangeError("value " + startIndex)); 413 throw H.wrapException(new P.RangeError("value " + startIndex));
408 if (endIndex > receiver.length) 414 if (endIndex > receiver.length)
409 throw H.wrapException(new P.RangeError("value " + H.S(endIndex))); 415 throw H.wrapException(new P.RangeError("value " + H.S(endIndex)));
410 return receiver.substring(startIndex, endIndex); 416 return receiver.substring(startIndex, endIndex);
411 }, 417 },
412 substring$1: function($receiver, startIndex) { 418 substring$1: function($receiver, startIndex) {
413 return this.substring$2($receiver, startIndex, null); 419 return this.substring$2($receiver, startIndex, null);
414 }, 420 },
421 trim$0: function(receiver) {
422 var endIndex, startIndex, codeUnit, endIndex0, endIndex1;
423 for (endIndex = receiver.length, startIndex = 0; startIndex < endIndex;) {
424 if (startIndex >= endIndex)
425 H.throwExpression(new P.RangeError("value " + startIndex));
426 codeUnit = receiver.charCodeAt(startIndex);
427 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni t))
428 ++startIndex;
429 else
430 break;
431 }
432 if (startIndex === endIndex)
433 return "";
434 for (endIndex0 = endIndex; true; endIndex0 = endIndex1) {
435 endIndex1 = endIndex0 - 1;
436 if (endIndex1 < 0)
437 H.throwExpression(new P.RangeError("value " + endIndex1));
438 if (endIndex1 >= endIndex)
439 H.throwExpression(new P.RangeError("value " + endIndex1));
440 codeUnit = receiver.charCodeAt(endIndex1);
441 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni t))
442 ;
443 else
444 break;
445 }
446 if (startIndex === 0 && endIndex0 === endIndex)
447 return receiver;
448 return receiver.substring(startIndex, endIndex0);
449 },
415 get$isEmpty: function(receiver) { 450 get$isEmpty: function(receiver) {
416 return receiver.length === 0; 451 return receiver.length === 0;
417 }, 452 },
418 toString$0: function(receiver) { 453 toString$0: function(receiver) {
419 return receiver; 454 return receiver;
420 }, 455 },
421 get$hashCode: function(receiver) { 456 get$hashCode: function(receiver) {
422 var t1, hash, i; 457 var t1, hash, i;
423 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { 458 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
424 hash = 536870911 & hash + receiver.charCodeAt(i); 459 hash = 536870911 & hash + receiver.charCodeAt(i);
425 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); 460 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0);
426 hash ^= hash >> 6; 461 hash ^= hash >> 6;
427 } 462 }
428 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); 463 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0);
429 hash ^= hash >> 11; 464 hash ^= hash >> 11;
430 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); 465 return 536870911 & hash + ((16383 & hash) << 15 >>> 0);
431 }, 466 },
432 get$length: function(receiver) { 467 get$length: function(receiver) {
433 return receiver.length; 468 return receiver.length;
434 }, 469 },
435 $index: function(receiver, index) { 470 $index: function(receiver, index) {
436 if (typeof index !== "number" || Math.floor(index) !== index) 471 if (typeof index !== "number" || Math.floor(index) !== index)
437 throw H.wrapException(new P.ArgumentError(index)); 472 throw H.wrapException(new P.ArgumentError(index));
438 if (index >= receiver.length || index < 0) 473 if (index >= receiver.length || index < 0)
439 throw H.wrapException(new P.RangeError("value " + H.S(index))); 474 throw H.wrapException(new P.RangeError("value " + H.S(index)));
440 return receiver[index]; 475 return receiver[index];
441 }, 476 },
442 $isString: true 477 $isString: true,
478 static: {
479 JSString__isWhitespace: function(codeUnit) {
480 if (codeUnit < 256)
481 switch (codeUnit) {
482 case 9:
483 case 10:
484 case 11:
485 case 12:
486 case 13:
487 case 32:
488 case 133:
489 case 160:
490 return true;
491 default:
492 return false;
493 }
494 switch (codeUnit) {
495 case 5760:
496 case 6158:
497 case 8192:
498 case 8193:
499 case 8194:
500 case 8195:
501 case 8196:
502 case 8197:
503 case 8198:
504 case 8199:
505 case 8200:
506 case 8201:
507 case 8202:
508 case 8232:
509 case 8233:
510 case 8239:
511 case 8287:
512 case 12288:
513 case 65279:
514 return true;
515 default:
516 return false;
517 }
518 }}
519
443 }}], 520 }}],
444 ["_isolate_helper", "dart:_isolate_helper", , H, { 521 ["_isolate_helper", "dart:_isolate_helper", , H, {
445 _callInIsolate: function(isolate, $function) { 522 _callInIsolate: function(isolate, $function) {
446 var result = isolate.eval$1($function); 523 var result = isolate.eval$1($function);
447 $globalState.topEventLoop.run$0(); 524 $globalState.topEventLoop.run$0();
448 return result; 525 return result;
449 }, 526 },
450 527
451 startRootIsolate: function(entry) { 528 startRootIsolate: function(entry) {
452 var rootContext; 529 var rootContext;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 if (old != null) 759 if (old != null)
683 $ = old.get$isolateStatics(); 760 $ = old.get$isolateStatics();
684 } 761 }
685 return result; 762 return result;
686 }, 763 },
687 lookup$1: function(portId) { 764 lookup$1: function(portId) {
688 var t1 = this.ports; 765 var t1 = this.ports;
689 return t1.$index(t1, portId); 766 return t1.$index(t1, portId);
690 }, 767 },
691 register$2: function(_, portId, port) { 768 register$2: function(_, portId, port) {
692 var t1; 769 var t1 = this.ports;
693 if (this.ports.containsKey$1(portId)) 770 if (t1.containsKey$1(t1, portId))
694 throw H.wrapException(new P._ExceptionImplementation("Registry: ports must be registered only once.")); 771 throw H.wrapException(new P._ExceptionImplementation("Registry: ports must be registered only once."));
695 t1 = this.ports; 772 t1 = this.ports;
696 t1.$indexSet(t1, portId, port); 773 t1.$indexSet(t1, portId, port);
697 t1 = $globalState.isolates; 774 t1 = $globalState.isolates;
698 t1.$indexSet(t1, this.id, this); 775 t1.$indexSet(t1, this.id, this);
699 }, 776 },
700 unregister$1: function(portId) { 777 unregister$1: function(portId) {
701 var t1 = this.ports; 778 var t1 = this.ports;
702 t1.remove$1(t1, portId); 779 t1.remove$1(t1, portId);
703 if (this.ports._collection$_length === 0) { 780 if (this.ports._collection$_length === 0) {
(...skipping 21 matching lines...) Expand all
725 }, 802 },
726 803
727 _EventLoop: {"": "Object;events,activeTimerCount", 804 _EventLoop: {"": "Object;events,activeTimerCount",
728 dequeue$0: function() { 805 dequeue$0: function() {
729 var t1 = this.events; 806 var t1 = this.events;
730 if (t1._head === t1._tail) 807 if (t1._head === t1._tail)
731 return; 808 return;
732 return t1.removeFirst$0(); 809 return t1.removeFirst$0();
733 }, 810 },
734 checkOpenReceivePortsFromCommandLine$0: function() { 811 checkOpenReceivePortsFromCommandLine$0: function() {
735 if ($globalState.rootContext != null && $globalState.isolates.containsKey$1( $globalState.rootContext.id) && $globalState.fromCommandLine === true && $global State.rootContext.ports._collection$_length === 0) 812 if ($globalState.rootContext != null) {
813 var t1 = $globalState.isolates;
814 t1 = t1.containsKey$1(t1, $globalState.rootContext.id) && $globalState.fro mCommandLine === true && $globalState.rootContext.ports._collection$_length === 0;
815 } else
816 t1 = false;
817 if (t1)
736 throw H.wrapException(new P._ExceptionImplementation("Program exited with open ReceivePorts.")); 818 throw H.wrapException(new P._ExceptionImplementation("Program exited with open ReceivePorts."));
737 }, 819 },
738 runIteration$0: function() { 820 runIteration$0: function() {
739 var $event, t1, t2; 821 var $event, t1, t2;
740 $event = this.dequeue$0(); 822 $event = this.dequeue$0();
741 if ($event == null) { 823 if ($event == null) {
742 this.checkOpenReceivePortsFromCommandLine$0(); 824 this.checkOpenReceivePortsFromCommandLine$0();
743 t1 = $globalState; 825 t1 = $globalState;
744 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to pEventLoop.activeTimerCount === 0) { 826 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to pEventLoop.activeTimerCount === 0) {
745 t1 = t1.mainManager; 827 t1 = t1.mainManager;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 t1 = this._visited; 1085 t1 = this._visited;
1004 t1.$indexSet(t1, list, true); 1086 t1.$indexSet(t1, list, true);
1005 J.forEach$1$ax(list, new H._PendingSendPortFinder_visitList_closure(this)); 1087 J.forEach$1$ax(list, new H._PendingSendPortFinder_visitList_closure(this));
1006 }, 1088 },
1007 visitMap$1: function(map) { 1089 visitMap$1: function(map) {
1008 var t1 = this._visited; 1090 var t1 = this._visited;
1009 if (t1.$index(t1, map) != null) 1091 if (t1.$index(t1, map) != null)
1010 return; 1092 return;
1011 t1 = this._visited; 1093 t1 = this._visited;
1012 t1.$indexSet(t1, map, true); 1094 t1.$indexSet(t1, map, true);
1013 t1 = map.get$values(map); 1095 J.forEach$1$ax(J.get$values$x(map), new H._PendingSendPortFinder_visitMap_cl osure(this));
1014 t1.forEach$1(t1, new H._PendingSendPortFinder_visitMap_closure(this));
1015 }, 1096 },
1016 visitSendPort$1: function(port) { 1097 visitSendPort$1: function(port) {
1017 }, 1098 },
1018 visitIsolateSink$1: function(sink) { 1099 visitIsolateSink$1: function(sink) {
1019 this.visitSendPort$1(sink._port); 1100 this.visitSendPort$1(sink._port);
1020 }, 1101 },
1021 visitCloseToken$1: function(token) { 1102 visitCloseToken$1: function(token) {
1022 }, 1103 },
1023 _PendingSendPortFinder$0: function() { 1104 _PendingSendPortFinder$0: function() {
1024 this._visited = new H._JsVisitedMap(null); 1105 this._visited = new H._JsVisitedMap(null);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 var t1, t2; 1315 var t1, t2;
1235 t1 = {}; 1316 t1 = {};
1236 t2 = this._visited; 1317 t2 = this._visited;
1237 t1.copy_0 = t2.$index(t2, map); 1318 t1.copy_0 = t2.$index(t2, map);
1238 t2 = t1.copy_0; 1319 t2 = t1.copy_0;
1239 if (t2 != null) 1320 if (t2 != null)
1240 return t2; 1321 return t2;
1241 t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); 1322 t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null);
1242 t2 = this._visited; 1323 t2 = this._visited;
1243 t2.$indexSet(t2, map, t1.copy_0); 1324 t2.$indexSet(t2, map, t1.copy_0);
1244 map.forEach$1(map, new H._Copier_visitMap_closure(t1, this)); 1325 J.forEach$1$ax(map, new H._Copier_visitMap_closure(t1, this));
1245 return t1.copy_0; 1326 return t1.copy_0;
1246 } 1327 }
1247 }, 1328 },
1248 1329
1249 _Copier_visitMap_closure: {"": "Closure;box_0,this_1", 1330 _Copier_visitMap_closure: {"": "Closure;box_0,this_1",
1250 call$2: function(key, val) { 1331 call$2: function(key, val) {
1251 var t1 = this.this_1; 1332 var t1 = this.this_1;
1252 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val)); 1333 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val));
1253 } 1334 }
1254 }, 1335 },
1255 1336
1256 _Serializer: {"": "_MessageTraverser;", 1337 _Serializer: {"": "_MessageTraverser;",
1257 visitPrimitive$1: function(x) { 1338 visitPrimitive$1: function(x) {
1258 return x; 1339 return x;
1259 }, 1340 },
1260 visitList$1: function(list) { 1341 visitList$1: function(list) {
1261 var t1, copyId, id; 1342 var t1, copyId, id;
1262 t1 = this._visited; 1343 t1 = this._visited;
1263 copyId = t1.$index(t1, list); 1344 copyId = t1.$index(t1, list);
1264 if (copyId != null) 1345 if (copyId != null)
1265 return ["ref", copyId]; 1346 return ["ref", copyId];
1266 id = this._nextFreeRefId; 1347 id = this._nextFreeRefId;
1267 this._nextFreeRefId = id + 1; 1348 this._nextFreeRefId = id + 1;
1268 t1 = this._visited; 1349 t1 = this._visited;
1269 t1.$indexSet(t1, list, id); 1350 t1.$indexSet(t1, list, id);
1270 return ["list", id, this._serializeList$1(list)]; 1351 return ["list", id, this._serializeList$1(list)];
1271 }, 1352 },
1272 visitMap$1: function(map) { 1353 visitMap$1: function(map) {
1273 var t1, copyId, id, keys; 1354 var t1, copyId, id;
1274 t1 = this._visited; 1355 t1 = this._visited;
1275 copyId = t1.$index(t1, map); 1356 copyId = t1.$index(t1, map);
1276 if (copyId != null) 1357 if (copyId != null)
1277 return ["ref", copyId]; 1358 return ["ref", copyId];
1278 id = this._nextFreeRefId; 1359 id = this._nextFreeRefId;
1279 this._nextFreeRefId = id + 1; 1360 this._nextFreeRefId = id + 1;
1280 t1 = this._visited; 1361 t1 = this._visited;
1281 t1.$indexSet(t1, map, id); 1362 t1.$indexSet(t1, map, id);
1282 t1 = map.get$keys(); 1363 t1 = J.getInterceptor$x(map);
1283 keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgu ment(t1, "IterableBase", 0))); 1364 return ["map", id, this._serializeList$1(J.toList$0$ax(t1.get$keys(map))), t his._serializeList$1(J.toList$0$ax(t1.get$values(map)))];
1284 t1 = map.get$values(map);
1285 return ["map", id, keys, this._serializeList$1(t1.toList$0(t1))];
1286 }, 1365 },
1287 _serializeList$1: function(list) { 1366 _serializeList$1: function(list) {
1288 var len, result, t1, i, t2; 1367 var len, result, t1, i, t2;
1289 if (typeof list !== "string" && (typeof list !== "object" || list === null | | list.constructor !== Array && !H.isJsIndexable(list, list[init.dispatchPropert yName]))) 1368 if (typeof list !== "string" && (typeof list !== "object" || list === null | | list.constructor !== Array && !H.isJsIndexable(list, list[init.dispatchPropert yName])))
1290 return this._serializeList$1$bailout(1, list); 1369 return this._serializeList$1$bailout(1, list);
1291 len = list.length; 1370 len = list.length;
1292 result = P.List_List(len, null); 1371 result = P.List_List(len, null);
1293 for (t1 = result.length, i = 0; i < len; ++i) { 1372 for (t1 = result.length, i = 0; i < len; ++i) {
1294 if (i >= list.length) 1373 if (i >= list.length)
1295 throw H.ioore(list, i); 1374 throw H.ioore(list, i);
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 if (closure == null) 1898 if (closure == null)
1820 return; 1899 return;
1821 $function = closure.$identity; 1900 $function = closure.$identity;
1822 if (!!$function) 1901 if (!!$function)
1823 return $function; 1902 return $function;
1824 $function = (function(closure, arity, context, invoke) { return function(a1, a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})( closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); 1903 $function = (function(closure, arity, context, invoke) { return function(a1, a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})( closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7);
1825 closure.$identity = $function; 1904 closure.$identity = $function;
1826 return $function; 1905 return $function;
1827 }, 1906 },
1828 1907
1908 propertyTypeCastError: function(value, property) {
1909 var actualType, t1, expectedType;
1910 actualType = H.Primitives_objectTypeName(value);
1911 t1 = J.getInterceptor$asx(property);
1912 expectedType = t1.substring$2(property, 3, t1.get$length(property));
1913 throw H.wrapException(new H.CastErrorImplementation("CastError: Casting value of type " + actualType + " to incompatible type " + expectedType));
1914 },
1915
1916 interceptedTypeCast: function(value, property) {
1917 var t1;
1918 if (value != null)
1919 t1 = typeof value === "object" && J.getInterceptor(value)[property];
1920 else
1921 t1 = true;
1922 if (t1)
1923 return value;
1924 H.propertyTypeCastError(value, property);
1925 },
1926
1829 throwCyclicInit: function(staticName) { 1927 throwCyclicInit: function(staticName) {
1830 throw H.wrapException(new P.CyclicInitializationError("Cyclic initialization f or static " + H.S(staticName))); 1928 throw H.wrapException(new P.CyclicInitializationError("Cyclic initialization f or static " + H.S(staticName)));
1831 }, 1929 },
1832 1930
1833 setRuntimeTypeInfo: function(target, typeInfo) { 1931 setRuntimeTypeInfo: function(target, typeInfo) {
1834 if (target != null) 1932 if (target != null)
1835 target.$builtinTypeInfo = typeInfo; 1933 target.$builtinTypeInfo = typeInfo;
1836 return target; 1934 return target;
1837 }, 1935 },
1838 1936
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2263 ConstantMap: {"": "Object;", 2361 ConstantMap: {"": "Object;",
2264 toString$0: function(_) { 2362 toString$0: function(_) {
2265 return P.Maps_mapToString(this); 2363 return P.Maps_mapToString(this);
2266 }, 2364 },
2267 _throwUnmodifiable$0: function() { 2365 _throwUnmodifiable$0: function() {
2268 throw H.wrapException(new P.UnsupportedError("Cannot modify unmodifiable Map ")); 2366 throw H.wrapException(new P.UnsupportedError("Cannot modify unmodifiable Map "));
2269 }, 2367 },
2270 $indexSet: function(_, key, val) { 2368 $indexSet: function(_, key, val) {
2271 return this._throwUnmodifiable$0(); 2369 return this._throwUnmodifiable$0();
2272 }, 2370 },
2273 $isMap: true 2371 $isMap: true,
2372 $asMap: null
2274 }, 2373 },
2275 2374
2276 ConstantStringMap: {"": "ConstantMap;length>,_jsObject,_keys", 2375 ConstantStringMap: {"": "ConstantMap;length>,_jsObject,_keys",
2277 containsKey$1: function(key) { 2376 containsKey$1: function(_, key) {
2278 if (typeof key !== "string") 2377 if (typeof key !== "string")
2279 return false; 2378 return false;
2280 if (key === "__proto__") 2379 if (key === "__proto__")
2281 return false; 2380 return false;
2282 return this._jsObject.hasOwnProperty(key); 2381 return this._jsObject.hasOwnProperty(key);
2283 }, 2382 },
2284 $index: function(_, key) { 2383 $index: function(_, key) {
2285 if (typeof key !== "string") 2384 if (typeof key !== "string")
2286 return; 2385 return;
2287 if (!this.containsKey$1(key)) 2386 if (!this.containsKey$1(this, key))
2288 return; 2387 return;
2289 return this._jsObject[key]; 2388 return this._jsObject[key];
2290 }, 2389 },
2291 forEach$1: function(_, f) { 2390 forEach$1: function(_, f) {
2292 J.forEach$1$ax(this._keys, new H.ConstantStringMap_forEach_closure(this, f)) ; 2391 J.forEach$1$ax(this._keys, new H.ConstantStringMap_forEach_closure(this, f)) ;
2293 }, 2392 },
2294 get$keys: function() { 2393 get$keys: function(_) {
2295 var t1 = new H._ConstantMapKeyIterable(this); 2394 var t1 = new H._ConstantMapKeyIterable(this);
2296 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "ConstantStringMap" , 0)]); 2395 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "ConstantStringMap" , 0)]);
2297 return t1; 2396 return t1;
2298 }, 2397 },
2299 get$values: function(_) { 2398 get$values: function(_) {
2300 return J.map$1$ax(this._keys, new H.ConstantStringMap_values_closure(this)); 2399 return J.map$1$ax(this._keys, new H.ConstantStringMap_values_closure(this));
2301 }, 2400 },
2302 $asConstantMap: null, 2401 $asConstantMap: null,
2303 $asMap: null 2402 $asMap: null
2304 }, 2403 },
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2551 t1 = this._receiver; 2650 t1 = this._receiver;
2552 if (t1 == null) 2651 if (t1 == null)
2553 receiverHashCode = H.Primitives_objectHashCode(this._self); 2652 receiverHashCode = H.Primitives_objectHashCode(this._self);
2554 else 2653 else
2555 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit ives_objectHashCode(t1); 2654 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit ives_objectHashCode(t1);
2556 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar get)) >>> 0; 2655 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar get)) >>> 0;
2557 }, 2656 },
2558 $isBoundClosure: true 2657 $isBoundClosure: true
2559 }, 2658 },
2560 2659
2660 CastErrorImplementation: {"": "Error;message",
2661 toString$0: function(_) {
2662 return this.message;
2663 },
2664 $isError: true
2665 },
2666
2561 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_ 0", 2667 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_ 0",
2562 call$1: function(object) { 2668 call$1: function(object) {
2563 return this.newGetTagJSFunction_0(object); 2669 return this.newGetTagJSFunction_0(object);
2564 } 2670 }
2565 }}], 2671 }}],
2566 ["dart._collection.dev", "dart:_collection-dev", , H, { 2672 ["dart._collection.dev", "dart:_collection-dev", , H, {
2567 Arrays_copy: function(src, srcStart, dst, dstStart, count) { 2673 Arrays_copy: function(src, srcStart, dst, dstStart, count) {
2568 var i, j, t1, t2, t3, t4; 2674 var i, j, t1, t2, t3, t4;
2569 if (typeof dst !== "object" || dst === null || (dst.constructor !== Array || ! !dst.immutable$list) && !H.isJsIndexable(dst, dst[init.dispatchPropertyName])) 2675 if (typeof dst !== "object" || dst === null || (dst.constructor !== Array || ! !dst.immutable$list) && !H.isJsIndexable(dst, dst[init.dispatchPropertyName]))
2570 return H.Arrays_copy$bailout(1, dst, src, srcStart, dstStart, count); 2676 return H.Arrays_copy$bailout(1, dst, src, srcStart, dstStart, count);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 return J.get$length$asx(this._source); 2879 return J.get$length$asx(this._source);
2774 }, 2880 },
2775 elementAt$1: function(_, index) { 2881 elementAt$1: function(_, index) {
2776 return this._f$1(J.elementAt$1$ax(this._source, index)); 2882 return this._f$1(J.elementAt$1$ax(this._source, index));
2777 }, 2883 },
2778 $asListIterable: function($S, $T) { 2884 $asListIterable: function($S, $T) {
2779 return [$T]; 2885 return [$T];
2780 } 2886 }
2781 }, 2887 },
2782 2888
2783 WhereIterable: {"": "IterableBase;_iterable,_f",
2784 get$iterator: function(_) {
2785 var t1 = J.get$iterator$ax(this._iterable);
2786 t1 = new H.WhereIterator(t1, this._f);
2787 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "WhereIterable", 0) ]);
2788 return t1;
2789 },
2790 $asIterableBase: null
2791 },
2792
2793 WhereIterator: {"": "Iterator;_iterator,_f",
2794 _f$1: function(arg0) {
2795 return this._f.call$1(arg0);
2796 },
2797 moveNext$0: function() {
2798 for (var t1 = this._iterator; t1.moveNext$0();)
2799 if (this._f$1(t1.get$current()) === true)
2800 return true;
2801 return false;
2802 },
2803 get$current: function() {
2804 return this._iterator.get$current();
2805 },
2806 $asIterator: null
2807 },
2808
2809 FixedLengthListMixin: {"": "Object;"}}], 2889 FixedLengthListMixin: {"": "Object;"}}],
2810 ["dart.async", "dart:async", , P, { 2890 ["dart.async", "dart:async", , P, {
2811 _attachStackTrace: function(o, st) { 2891 _attachStackTrace: function(o, st) {
2812 var t1; 2892 var t1;
2813 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o = == "string") 2893 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o = == "string")
2814 return; 2894 return;
2815 t1 = $.get$_stackTraceExpando(); 2895 t1 = $.get$_stackTraceExpando();
2816 t1.$indexSet(t1, o, st); 2896 t1.$indexSet(t1, o, st);
2817 }, 2897 },
2818 2898
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
4059 var registered = new P._ZoneDelegate(this).registerUnaryCallback$2(this, f); 4139 var registered = new P._ZoneDelegate(this).registerUnaryCallback$2(this, f);
4060 if (runGuarded) 4140 if (runGuarded)
4061 return new P._CustomizedZone_bindUnaryCallback_closure(this, registered); 4141 return new P._CustomizedZone_bindUnaryCallback_closure(this, registered);
4062 else 4142 else
4063 return new P._CustomizedZone_bindUnaryCallback_closure0(this, registered); 4143 return new P._CustomizedZone_bindUnaryCallback_closure0(this, registered);
4064 }, 4144 },
4065 $index: function(_, key) { 4145 $index: function(_, key) {
4066 var t1, result; 4146 var t1, result;
4067 t1 = this._map; 4147 t1 = this._map;
4068 result = t1.$index(t1, key); 4148 result = t1.$index(t1, key);
4069 if (result != null || t1.containsKey$1(key)) 4149 if (result != null || t1.containsKey$1(t1, key))
4070 return result; 4150 return result;
4071 t1 = this.parent; 4151 t1 = this.parent;
4072 if (t1 != null) 4152 if (t1 != null)
4073 return J.$index$asx(t1, key); 4153 return J.$index$asx(t1, key);
4074 return; 4154 return;
4075 }, 4155 },
4076 handleUncaughtError$1: function(error) { 4156 handleUncaughtError$1: function(error) {
4077 return new P._ZoneDelegate(this).handleUncaughtError$2(this, error); 4157 return new P._ZoneDelegate(this).handleUncaughtError$2(this, error);
4078 }, 4158 },
4079 run$1: function(f) { 4159 run$1: function(f) {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
4203 throw H.ioore(t1, 0); 4283 throw H.ioore(t1, 0);
4204 t1.pop(); 4284 t1.pop();
4205 } 4285 }
4206 return result.get$_contents(); 4286 return result.get$_contents();
4207 }, 4287 },
4208 4288
4209 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_collection$_key s", 4289 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_collection$_key s",
4210 get$length: function(_) { 4290 get$length: function(_) {
4211 return this._collection$_length; 4291 return this._collection$_length;
4212 }, 4292 },
4213 get$keys: function() { 4293 get$keys: function(_) {
4214 var t1 = new P.HashMapKeyIterable(this); 4294 var t1 = new P.HashMapKeyIterable(this);
4215 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); 4295 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]);
4216 return t1; 4296 return t1;
4217 }, 4297 },
4218 get$values: function(_) { 4298 get$values: function(_) {
4219 var t1, t2; 4299 var t1, t2;
4220 t1 = new P.HashMapKeyIterable(this); 4300 t1 = new P.HashMapKeyIterable(this);
4221 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); 4301 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]);
4222 t2 = new H.MappedIterable(t1, new P._HashMap_values_closure(this)); 4302 t2 = new H.MappedIterable(t1, new P._HashMap_values_closure(this));
4223 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), n ull]); 4303 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), n ull]);
4224 return t2; 4304 return t2;
4225 }, 4305 },
4226 containsKey$1: function(key) { 4306 containsKey$1: function(_, key) {
4227 var strings, nums, rest; 4307 var strings, nums, rest;
4228 if (typeof key === "string" && key !== "__proto__") { 4308 if (typeof key === "string" && key !== "__proto__") {
4229 strings = this._strings; 4309 strings = this._strings;
4230 return strings == null ? false : strings[key] != null; 4310 return strings == null ? false : strings[key] != null;
4231 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { 4311 } else if (typeof key === "number" && (key & 0x3ffffff) === key) {
4232 nums = this._nums; 4312 nums = this._nums;
4233 return nums == null ? false : nums[key] != null; 4313 return nums == null ? false : nums[key] != null;
4234 } else { 4314 } else {
4235 rest = this._rest; 4315 rest = this._rest;
4236 if (rest == null) 4316 if (rest == null)
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
4372 var $length, i; 4452 var $length, i;
4373 if (bucket == null) 4453 if (bucket == null)
4374 return -1; 4454 return -1;
4375 $length = bucket.length; 4455 $length = bucket.length;
4376 for (i = 0; i < $length; i += 2) 4456 for (i = 0; i < $length; i += 2)
4377 if (J.$eq(bucket[i], key)) 4457 if (J.$eq(bucket[i], key))
4378 return i; 4458 return i;
4379 return -1; 4459 return -1;
4380 }, 4460 },
4381 $isMap: true, 4461 $isMap: true,
4462 $asMap: null,
4382 static: { 4463 static: {
4383 _HashMap__setTableEntry: function(table, key, value) { 4464 _HashMap__setTableEntry: function(table, key, value) {
4384 if (value == null) 4465 if (value == null)
4385 table[key] = table; 4466 table[key] = table;
4386 else 4467 else
4387 table[key] = value; 4468 table[key] = value;
4388 }, 4469 },
4389 4470
4390 _HashMap__newHashTable: function() { 4471 _HashMap__newHashTable: function() {
4391 var table = Object.create(null); 4472 var table = Object.create(null);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
4443 this._offset = offset + 1; 4524 this._offset = offset + 1;
4444 return true; 4525 return true;
4445 } 4526 }
4446 } 4527 }
4447 }, 4528 },
4448 4529
4449 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la st,_modifications", 4530 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la st,_modifications",
4450 get$length: function(_) { 4531 get$length: function(_) {
4451 return this._collection$_length; 4532 return this._collection$_length;
4452 }, 4533 },
4453 get$keys: function() { 4534 get$keys: function(_) {
4454 var t1 = new P.LinkedHashMapKeyIterable(this); 4535 var t1 = new P.LinkedHashMapKeyIterable(this);
4455 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0 )]); 4536 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0 )]);
4456 return t1; 4537 return t1;
4457 }, 4538 },
4458 get$values: function(_) { 4539 get$values: function(_) {
4459 var t1, t2; 4540 var t1, t2;
4460 t1 = new P.LinkedHashMapKeyIterable(this); 4541 t1 = new P.LinkedHashMapKeyIterable(this);
4461 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0 )]); 4542 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0 )]);
4462 t2 = new H.MappedIterable(t1, new P._LinkedHashMap_values_closure(this)); 4543 t2 = new H.MappedIterable(t1, new P._LinkedHashMap_values_closure(this));
4463 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), n ull]); 4544 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), n ull]);
4464 return t2; 4545 return t2;
4465 }, 4546 },
4466 containsKey$1: function(key) { 4547 containsKey$1: function(_, key) {
4467 var strings, nums, rest; 4548 var strings, nums, rest;
4468 if (typeof key === "string" && key !== "__proto__") { 4549 if (typeof key === "string" && key !== "__proto__") {
4469 strings = this._strings; 4550 strings = this._strings;
4470 if (strings == null) 4551 if (strings == null)
4471 return false; 4552 return false;
4472 return strings[key] != null; 4553 return strings[key] != null;
4473 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { 4554 } else if (typeof key === "number" && (key & 0x3ffffff) === key) {
4474 nums = this._nums; 4555 nums = this._nums;
4475 if (nums == null) 4556 if (nums == null)
4476 return false; 4557 return false;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
4623 }, 4704 },
4624 _computeHashCode$1: function(key) { 4705 _computeHashCode$1: function(key) {
4625 return J.get$hashCode$(key) & 0x3ffffff; 4706 return J.get$hashCode$(key) & 0x3ffffff;
4626 }, 4707 },
4627 _findBucketIndex$2: function(bucket, key) { 4708 _findBucketIndex$2: function(bucket, key) {
4628 var $length, i; 4709 var $length, i;
4629 if (bucket == null) 4710 if (bucket == null)
4630 return -1; 4711 return -1;
4631 $length = bucket.length; 4712 $length = bucket.length;
4632 for (i = 0; i < $length; ++i) 4713 for (i = 0; i < $length; ++i)
4633 if (J.$eq(bucket[i].get$_key(), key)) 4714 if (J.$eq(J.get$_key$x(bucket[i]), key))
4634 return i; 4715 return i;
4635 return -1; 4716 return -1;
4636 }, 4717 },
4637 toString$0: function(_) { 4718 toString$0: function(_) {
4638 return P.Maps_mapToString(this); 4719 return P.Maps_mapToString(this);
4639 }, 4720 },
4640 $isMap: true, 4721 $isMap: true,
4722 $asMap: null,
4641 static: { 4723 static: {
4642 _LinkedHashMap__newHashTable: function() { 4724 _LinkedHashMap__newHashTable: function() {
4643 var table = Object.create(null); 4725 var table = Object.create(null);
4644 table["<non-identifier-key>"] = table; 4726 table["<non-identifier-key>"] = table;
4645 delete table["<non-identifier-key>"]; 4727 delete table["<non-identifier-key>"];
4646 return table; 4728 return table;
4647 }} 4729 }}
4648 4730
4649 }, 4731 },
4650 4732
4651 _LinkedHashMap_values_closure: {"": "Closure;this_0", 4733 _LinkedHashMap_values_closure: {"": "Closure;this_0",
4652 call$1: function(each) { 4734 call$1: function(each) {
4653 var t1 = this.this_0; 4735 var t1 = this.this_0;
4654 return t1.$index(t1, each); 4736 return t1.$index(t1, each);
4655 } 4737 }
4656 }, 4738 },
4657 4739
4658 _LinkedIdentityHashMap: {"": "_LinkedHashMap;_collection$_length,_strings,_nums, _rest,_first,_last,_modifications", 4740 _LinkedIdentityHashMap: {"": "_LinkedHashMap;_collection$_length,_strings,_nums, _rest,_first,_last,_modifications",
4659 _computeHashCode$1: function(key) { 4741 _computeHashCode$1: function(key) {
4660 return H.objectHashCode(key) & 0x3ffffff; 4742 return H.objectHashCode(key) & 0x3ffffff;
4661 }, 4743 },
4662 _findBucketIndex$2: function(bucket, key) { 4744 _findBucketIndex$2: function(bucket, key) {
4663 var $length, i, t1; 4745 var $length, i, t1;
4664 if (bucket == null) 4746 if (bucket == null)
4665 return -1; 4747 return -1;
4666 $length = bucket.length; 4748 $length = bucket.length;
4667 for (i = 0; i < $length; ++i) { 4749 for (i = 0; i < $length; ++i) {
4668 t1 = bucket[i].get$_key(); 4750 t1 = J.get$_key$x(bucket[i]);
4669 if (t1 == null ? key == null : t1 === key) 4751 if (t1 == null ? key == null : t1 === key)
4670 return i; 4752 return i;
4671 } 4753 }
4672 return -1; 4754 return -1;
4673 }, 4755 },
4674 $as_LinkedHashMap: null, 4756 $as_LinkedHashMap: null,
4675 $asMap: null 4757 $asMap: null
4676 }, 4758 },
4677 4759
4678 _LinkedCustomHashMap: {"": "_LinkedHashMap;_equals,_hashCode,_validKey,_collecti on$_length,_strings,_nums,_rest,_first,_last,_modifications", 4760 _LinkedCustomHashMap: {"": "_LinkedHashMap;_equals,_hashCode,_validKey,_collecti on$_length,_strings,_nums,_rest,_first,_last,_modifications",
4679 _equals$2: function(arg0, arg1) { 4761 _equals$2: function(arg0, arg1) {
4680 return this._equals.call$2(arg0, arg1); 4762 return this._equals.call$2(arg0, arg1);
4681 }, 4763 },
4682 _hashCode$1: function(arg0) { 4764 _hashCode$1: function(arg0) {
4683 return this._hashCode.call$1(arg0); 4765 return this._hashCode.call$1(arg0);
4684 }, 4766 },
4685 _validKey$1: function(arg0) { 4767 _validKey$1: function(arg0) {
4686 return this._validKey.call$1(arg0); 4768 return this._validKey.call$1(arg0);
4687 }, 4769 },
4688 $index: function(_, key) { 4770 $index: function(_, key) {
4689 if (this._validKey$1(key) !== true) 4771 if (this._validKey$1(key) !== true)
4690 return; 4772 return;
4691 return P._LinkedHashMap.prototype.$index.call(this, this, key); 4773 return P._LinkedHashMap.prototype.$index.call(this, this, key);
4692 }, 4774 },
4693 containsKey$1: function(key) { 4775 containsKey$1: function(_, key) {
4694 if (this._validKey$1(key) !== true) 4776 if (this._validKey$1(key) !== true)
4695 return false; 4777 return false;
4696 return P._LinkedHashMap.prototype.containsKey$1.call(this, key); 4778 return P._LinkedHashMap.prototype.containsKey$1.call(this, this, key);
4697 }, 4779 },
4698 remove$1: function(_, key) { 4780 remove$1: function(_, key) {
4699 if (this._validKey$1(key) !== true) 4781 if (this._validKey$1(key) !== true)
4700 return; 4782 return;
4701 return P._LinkedHashMap.prototype.remove$1.call(this, this, key); 4783 return P._LinkedHashMap.prototype.remove$1.call(this, this, key);
4702 }, 4784 },
4703 _computeHashCode$1: function(key) { 4785 _computeHashCode$1: function(key) {
4704 return this._hashCode$1(key) & 0x3ffffff; 4786 return this._hashCode$1(key) & 0x3ffffff;
4705 }, 4787 },
4706 _findBucketIndex$2: function(bucket, key) { 4788 _findBucketIndex$2: function(bucket, key) {
4707 var $length, i; 4789 var $length, i;
4708 if (bucket == null) 4790 if (bucket == null)
4709 return -1; 4791 return -1;
4710 $length = bucket.length; 4792 $length = bucket.length;
4711 for (i = 0; i < $length; ++i) 4793 for (i = 0; i < $length; ++i)
4712 if (this._equals$2(bucket[i].get$_key(), key) === true) 4794 if (this._equals$2(J.get$_key$x(bucket[i]), key) === true)
4713 return i; 4795 return i;
4714 return -1; 4796 return -1;
4715 }, 4797 },
4716 $as_LinkedHashMap: null, 4798 $as_LinkedHashMap: null,
4717 $asMap: null, 4799 $asMap: null,
4718 static: { 4800 static: {
4719 _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) { 4801 _LinkedCustomHashMap$: function(_equals, _hashCode, validKey, $K, $V) {
4720 var t1 = new P._LinkedCustomHashMap_closure($K); 4802 var t1 = new P._LinkedCustomHashMap_closure($K);
4721 t1 = new P._LinkedCustomHashMap(_equals, _hashCode, t1, 0, null, null, null, n ull, null, 0); 4803 t1 = new P._LinkedCustomHashMap(_equals, _hashCode, t1, 0, null, null, null, n ull, null, 0);
4722 H.setRuntimeTypeInfo(t1, [$K, $V]); 4804 H.setRuntimeTypeInfo(t1, [$K, $V]);
4723 return t1; 4805 return t1;
4724 }} 4806 }}
4725 4807
4726 }, 4808 },
4727 4809
4728 _LinkedCustomHashMap_closure: {"": "Closure;K_0", 4810 _LinkedCustomHashMap_closure: {"": "Closure;K_0",
4729 call$1: function(v) { 4811 call$1: function(v) {
4730 var t1 = H.checkSubtypeOfRuntimeType(v, this.K_0); 4812 var t1 = H.checkSubtypeOfRuntimeType(v, this.K_0);
4731 return t1; 4813 return t1;
4732 } 4814 }
4733 }, 4815 },
4734 4816
4735 LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, 4817 LinkedHashMapCell: {"": "Object;_key>,_collection$_value@,_next<,_previous<"},
4736 4818
4737 LinkedHashMapKeyIterable: {"": "IterableBase;_collection$_map", 4819 LinkedHashMapKeyIterable: {"": "IterableBase;_collection$_map",
4738 get$length: function(_) { 4820 get$length: function(_) {
4739 return this._collection$_map._collection$_length; 4821 return this._collection$_map._collection$_length;
4740 }, 4822 },
4741 get$iterator: function(_) { 4823 get$iterator: function(_) {
4742 var t1 = this._collection$_map; 4824 var t1 = this._collection$_map;
4743 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); 4825 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null);
4744 t1._cell = t1._collection$_map._first; 4826 t1._cell = t1._collection$_map._first;
4745 return t1; 4827 return t1;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
4812 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { 4894 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) {
4813 element = t1.get$current(); 4895 element = t1.get$current();
4814 if (remaining === 0) 4896 if (remaining === 0)
4815 return element; 4897 return element;
4816 --remaining; 4898 --remaining;
4817 } 4899 }
4818 throw H.wrapException(new P.RangeError("value " + index)); 4900 throw H.wrapException(new P.RangeError("value " + index));
4819 } 4901 }
4820 }, 4902 },
4821 4903
4822 ListBase: {"": "Object+ListMixin;", $isList: true, $asList: null},
4823
4824 ListMixin: {"": "Object;", 4904 ListMixin: {"": "Object;",
4825 get$iterator: function(receiver) { 4905 get$iterator: function(receiver) {
4826 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); 4906 return new H.ListIterator(receiver, this.get$length(receiver), 0, null);
4827 }, 4907 },
4828 elementAt$1: function(receiver, index) { 4908 elementAt$1: function(receiver, index) {
4829 return this.$index(receiver, index); 4909 return this.$index(receiver, index);
4830 }, 4910 },
4831 forEach$1: function(receiver, action) { 4911 forEach$1: function(receiver, action) {
4832 var $length, i; 4912 var $length, i;
4833 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei ver[init.dispatchPropertyName]))) 4913 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei ver[init.dispatchPropertyName])))
4834 return this.forEach$1$bailout(1, receiver, action); 4914 return this.forEach$1$bailout(1, receiver, action);
4835 $length = receiver.length; 4915 $length = C.JS_CONST_ZYJ(receiver);
4836 for (i = 0; i < $length; ++i) { 4916 for (i = 0; i < $length; ++i) {
4837 if (i >= receiver.length) 4917 if (i >= C.JS_CONST_ZYJ(receiver))
4838 throw H.ioore(receiver, i); 4918 throw H.ioore(receiver, i);
4839 action.call$1(receiver[i]); 4919 action.call$1(receiver[i]);
4840 if ($length !== receiver.length) 4920 if ($length !== C.JS_CONST_ZYJ(receiver))
4841 throw H.wrapException(new P.ConcurrentModificationError(receiver)); 4921 throw H.wrapException(new P.ConcurrentModificationError(receiver));
4842 } 4922 }
4843 }, 4923 },
4844 forEach$1$bailout: function(state0, receiver, action) { 4924 forEach$1$bailout: function(state0, receiver, action) {
4845 var $length, i; 4925 var $length, i;
4846 $length = this.get$length(receiver); 4926 $length = this.get$length(receiver);
4847 for (i = 0; i < $length; ++i) { 4927 for (i = 0; i < $length; ++i) {
4848 action.call$1(this.$index(receiver, i)); 4928 action.call$1(this.$index(receiver, i));
4849 if ($length !== this.get$length(receiver)) 4929 if ($length !== this.get$length(receiver))
4850 throw H.wrapException(new P.ConcurrentModificationError(receiver)); 4930 throw H.wrapException(new P.ConcurrentModificationError(receiver));
4851 } 4931 }
4852 }, 4932 },
4853 where$1: function(receiver, test) {
4854 var t1 = new H.WhereIterable(receiver, test);
4855 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0) ]);
4856 return t1;
4857 },
4858 map$1: function(receiver, f) { 4933 map$1: function(receiver, f) {
4859 var t1 = new H.MappedListIterable(receiver, f); 4934 var t1 = new H.MappedListIterable(receiver, f);
4860 H.setRuntimeTypeInfo(t1, [null, null]); 4935 H.setRuntimeTypeInfo(t1, [null, null]);
4861 return t1; 4936 return t1;
4862 }, 4937 },
4863 toList$1$growable: function(receiver, growable) {
4864 var result, t1, t2, i, t3;
4865 if (typeof receiver !== "string" && (typeof receiver !== "object" || receive r === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, recei ver[init.dispatchPropertyName])))
4866 return this.toList$1$growable$bailout(1, receiver, growable);
4867 if (growable) {
4868 result = P.List_List(null, H.getRuntimeTypeArgument(receiver, "ListMixin", 0));
4869 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi n", 0)]);
4870 C.JSArray_methods.set$length(result, receiver.length);
4871 } else {
4872 result = P.List_List(receiver.length, H.getRuntimeTypeArgument(receiver, " ListMixin", 0));
4873 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi n", 0)]);
4874 }
4875 for (t1 = receiver.length, t2 = result.length, i = 0; i < t1; ++i) {
4876 t3 = receiver[i];
4877 if (i >= t2)
4878 throw H.ioore(result, i);
4879 result[i] = t3;
4880 }
4881 return result;
4882 },
4883 toList$1$growable$bailout: function(state0, receiver, growable) {
4884 var result, i, t1;
4885 if (growable) {
4886 result = P.List_List(null, H.getRuntimeTypeArgument(receiver, "ListMixin", 0));
4887 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi n", 0)]);
4888 C.JSArray_methods.set$length(result, this.get$length(receiver));
4889 } else {
4890 result = P.List_List(this.get$length(receiver), H.getRuntimeTypeArgument(r eceiver, "ListMixin", 0));
4891 H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixi n", 0)]);
4892 }
4893 for (i = 0; i < this.get$length(receiver); ++i) {
4894 t1 = this.$index(receiver, i);
4895 if (i >= result.length)
4896 throw H.ioore(result, i);
4897 result[i] = t1;
4898 }
4899 return result;
4900 },
4901 toList$0: function($receiver) {
4902 return this.toList$1$growable($receiver, true);
4903 },
4904 toString$0: function(receiver) { 4938 toString$0: function(receiver) {
4905 var result, i, t1; 4939 var result, i, t1;
4906 for (i = 0; i < $.get$ListMixin__toStringList().length; ++i) { 4940 for (i = 0; i < $.get$ListMixin__toStringList().length; ++i) {
4907 t1 = $.get$ListMixin__toStringList(); 4941 t1 = $.get$ListMixin__toStringList();
4908 if (i >= t1.length) 4942 if (i >= t1.length)
4909 throw H.ioore(t1, i); 4943 throw H.ioore(t1, i);
4910 if (t1[i] === receiver) 4944 if (t1[i] === receiver)
4911 return "[...]"; 4945 return "[...]";
4912 } 4946 }
4913 result = P.StringBuffer$(""); 4947 result = P.StringBuffer$("");
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
5398 static: { 5432 static: {
5399 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount ", 5433 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount ",
5400 } 5434 }
5401 5435
5402 }, 5436 },
5403 5437
5404 Function: {"": "Object;"}, 5438 Function: {"": "Object;"},
5405 5439
5406 Iterator: {"": "Object;"}, 5440 Iterator: {"": "Object;"},
5407 5441
5408 Map: {"": "Object;", $isMap: true}, 5442 Map: {"": "Object;", $isMap: true, $asMap: null},
5409 5443
5410 Null: {"": "Object;", 5444 Null: {"": "Object;",
5411 toString$0: function(_) { 5445 toString$0: function(_) {
5412 return "null"; 5446 return "null";
5413 } 5447 }
5414 }, 5448 },
5415 5449
5416 Object: {"": ";", 5450 Object: {"": ";",
5417 $eq: function(_, other) { 5451 $eq: function(_, other) {
5418 return this === other; 5452 return this === other;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
5503 xhr.send(); 5537 xhr.send();
5504 return completer.future; 5538 return completer.future;
5505 }, 5539 },
5506 5540
5507 _convertNativeToDart_Window: function(win) { 5541 _convertNativeToDart_Window: function(win) {
5508 if (win == null) 5542 if (win == null)
5509 return; 5543 return;
5510 return W._DOMWindowCrossFrame__createSafe(win); 5544 return W._DOMWindowCrossFrame__createSafe(win);
5511 }, 5545 },
5512 5546
5513 _ChildrenElementList: {"": "ListBase;_element,_childElements", 5547 _convertNativeToDart_EventTarget: function(e) {
5514 get$length: function(_) { 5548 var $window, t1;
5515 return this._childElements.length; 5549 if (e == null)
5516 }, 5550 return;
5517 $index: function(_, index) { 5551 if ("setInterval" in e) {
5518 var t1 = this._childElements; 5552 $window = W._DOMWindowCrossFrame__createSafe(e);
5519 if (index >>> 0 !== index || index >= t1.length) 5553 t1 = J.getInterceptor($window);
5520 throw H.ioore(t1, index); 5554 if (typeof $window === "object" && $window !== null && !!t1.$isEventTarget)
5521 return t1[index]; 5555 return $window;
5522 }, 5556 return;
5523 $indexSet: function(_, index, value) { 5557 } else
5524 var t1 = this._childElements; 5558 return e;
5525 if (index >>> 0 !== index || index >= t1.length)
5526 throw H.ioore(t1, index);
5527 this._element.replaceChild(value, t1[index]);
5528 },
5529 add$1: function(_, value) {
5530 this._element.appendChild(value);
5531 return value;
5532 },
5533 get$iterator: function(_) {
5534 var t1 = this.toList$0(this);
5535 return new H.ListIterator(t1, t1.length, 0, null);
5536 },
5537 $asList: function() {
5538 return [W.Element];
5539 }
5540 }, 5559 },
5541 5560
5542 Interceptor_ListMixin: {"": "Interceptor+ListMixin;", $isList: true, $asList: nu ll},
5543
5544 Interceptor_ListMixin_ImmutableListMixin: {"": "Interceptor_ListMixin+ImmutableL istMixin;", $asList: null, $isList: true},
5545
5546 HttpRequest_getString_closure: {"": "Closure;", 5561 HttpRequest_getString_closure: {"": "Closure;",
5547 call$1: function(xhr) { 5562 call$1: function(xhr) {
5548 return J.get$responseText$x(xhr); 5563 return J.get$responseText$x(xhr);
5549 } 5564 }
5550 }, 5565 },
5551 5566
5552 HttpRequest_request_closure1: {"": "Closure;xhr_0", 5567 HttpRequest_request_closure1: {"": "Closure;xhr_0",
5553 call$2: function(header, value) { 5568 call$2: function(header, value) {
5554 this.xhr_0.setRequestHeader(header, value); 5569 this.xhr_0.setRequestHeader(header, value);
5555 } 5570 }
(...skipping 24 matching lines...) Expand all
5580 5595
5581 HttpRequest_request_closure0: {"": "Closure;completer_3", 5596 HttpRequest_request_closure0: {"": "Closure;completer_3",
5582 call$1: function(e) { 5597 call$1: function(e) {
5583 var t1 = this.completer_3.future; 5598 var t1 = this.completer_3.future;
5584 if (t1._state !== 0) 5599 if (t1._state !== 0)
5585 H.throwExpression(new P.StateError("Future already completed")); 5600 H.throwExpression(new P.StateError("Future already completed"));
5586 t1._asyncCompleteError$2(e, null); 5601 t1._asyncCompleteError$2(e, null);
5587 } 5602 }
5588 }, 5603 },
5589 5604
5590 _ChildNodeListLazy: {"": "ListBase;_this", 5605 Storage_keys_closure: {"": "Closure;keys_0",
5591 $indexSet: function(_, index, value) { 5606 call$2: function(k, v) {
5592 var t1, t2; 5607 return this.keys_0.push(k);
5593 t1 = this._this;
5594 t2 = t1.childNodes;
5595 if (index >>> 0 !== index || index >= t2.length)
5596 throw H.ioore(t2, index);
5597 t1.replaceChild(value, t2[index]);
5598 },
5599 get$iterator: function(_) {
5600 return C.NodeList_methods.get$iterator(this._this.childNodes);
5601 },
5602 get$length: function(_) {
5603 return this._this.childNodes.length;
5604 },
5605 $index: function(_, index) {
5606 var t1 = this._this.childNodes;
5607 if (index >>> 0 !== index || index >= t1.length)
5608 throw H.ioore(t1, index);
5609 return t1[index];
5610 },
5611 $asList: function() {
5612 return [W.Node];
5613 } 5608 }
5614 }, 5609 },
5615 5610
5616 Interceptor_ListMixin0: {"": "Interceptor+ListMixin;", $isList: true, $asList: n ull}, 5611 Storage_values_closure: {"": "Closure;values_0",
5617 5612 call$2: function(k, v) {
5618 Interceptor_ListMixin_ImmutableListMixin0: {"": "Interceptor_ListMixin0+Immutabl eListMixin;", $asList: null, $isList: true}, 5613 return this.values_0.push(v);
5614 }
5615 },
5619 5616
5620 _EventStream: {"": "Stream;_target,_eventType,_useCapture", 5617 _EventStream: {"": "Stream;_target,_eventType,_useCapture",
5621 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) { 5618 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) {
5622 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W. _EventStreamSubscription__wrapZone(onData), this._useCapture); 5619 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W. _EventStreamSubscription__wrapZone(onData), this._useCapture);
5623 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)] ); 5620 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)] );
5624 t1._tryResume$0(); 5621 t1._tryResume$0();
5625 return t1; 5622 return t1;
5626 }, 5623 },
5627 listen$3$onDone$onError: function(onData, onDone, onError) { 5624 listen$3$onDone$onError: function(onData, onDone, onError) {
5628 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onEr ror); 5625 return this.listen$4$cancelOnError$onDone$onError(onData, null, onDone, onEr ror);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5670 _EventStreamSubscription__wrapZone: function(callback) { 5667 _EventStreamSubscription__wrapZone: function(callback) {
5671 if (J.$eq($.Zone__current, C._CustomizedZone_WYN)) 5668 if (J.$eq($.Zone__current, C._CustomizedZone_WYN))
5672 return callback; 5669 return callback;
5673 return $.Zone__current.bindUnaryCallback$2$runGuarded(callback, true); 5670 return $.Zone__current.bindUnaryCallback$2$runGuarded(callback, true);
5674 }} 5671 }}
5675 5672
5676 }, 5673 },
5677 5674
5678 EventStreamProvider: {"": "Object;_eventType"}, 5675 EventStreamProvider: {"": "Object;_eventType"},
5679 5676
5680 ImmutableListMixin: {"": "Object;",
5681 get$iterator: function(receiver) {
5682 return W.FixedSizeListIterator$(receiver);
5683 },
5684 $isList: true,
5685 $asList: null
5686 },
5687
5688 FixedSizeListIterator: {"": "Object;_array,_html$_length,_html$_position,_html$_ current",
5689 moveNext$0: function() {
5690 var nextPosition, t1;
5691 nextPosition = this._html$_position + 1;
5692 t1 = this._html$_length;
5693 if (nextPosition < t1) {
5694 this._html$_current = J.$index$asx(this._array, nextPosition);
5695 this._html$_position = nextPosition;
5696 return true;
5697 }
5698 this._html$_current = null;
5699 this._html$_position = t1;
5700 return false;
5701 },
5702 get$current: function() {
5703 return this._html$_current;
5704 },
5705 static: {
5706 FixedSizeListIterator$: function(array) {
5707 return new W.FixedSizeListIterator(array, J.get$length$asx(array), -1, null);
5708 }}
5709
5710 },
5711
5712 _DOMWindowCrossFrame: {"": "Object;_window", 5677 _DOMWindowCrossFrame: {"": "Object;_window",
5713 get$parent: function(_) { 5678 get$parent: function(_) {
5714 return W._DOMWindowCrossFrame__createSafe(this._window.parent); 5679 return W._DOMWindowCrossFrame__createSafe(this._window.parent);
5715 }, 5680 },
5681 $isEventTarget: true,
5716 static: { 5682 static: {
5717 _DOMWindowCrossFrame__createSafe: function(w) { 5683 _DOMWindowCrossFrame__createSafe: function(w) {
5718 if (w === window) 5684 if (w === window)
5719 return w; 5685 return w;
5720 else 5686 else
5721 return new W._DOMWindowCrossFrame(w); 5687 return new W._DOMWindowCrossFrame(w);
5722 }} 5688 }}
5723 5689
5724 }, 5690 },
5725 5691
5726 HtmlElement: {"": "Element;"}, 5692 HtmlElement: {"": "Element;"},
5727 5693
5728 AnchorElement: {"": "HtmlElement;", 5694 AnchorElement: {"": "HtmlElement;target=",
5729 toString$0: function(receiver) { 5695 toString$0: function(receiver) {
5730 return receiver.toString(); 5696 return receiver.toString();
5731 } 5697 }
5732 }, 5698 },
5733 5699
5700 AreaElement: {"": "HtmlElement;target="},
5701
5702 BaseElement: {"": "HtmlElement;target="},
5703
5704 ButtonElement: {"": "HtmlElement;disabled}"},
5705
5734 CharacterData: {"": "Node;length="}, 5706 CharacterData: {"": "Node;length="},
5735 5707
5736 DomException: {"": "Interceptor;", 5708 DomException: {"": "Interceptor;",
5737 toString$0: function(receiver) { 5709 toString$0: function(receiver) {
5738 return receiver.toString(); 5710 return receiver.toString();
5739 } 5711 }
5740 }, 5712 },
5741 5713
5742 Element: {"": "Node;", 5714 Element: {"": "Node;",
5743 get$children: function(receiver) {
5744 return new W._ChildrenElementList(receiver, receiver.children);
5745 },
5746 toString$0: function(receiver) { 5715 toString$0: function(receiver) {
5747 return receiver.localName; 5716 return receiver.localName;
5748 }, 5717 }
5749 $isElement: true
5750 }, 5718 },
5751 5719
5752 Event: {"": "Interceptor;"}, 5720 Event: {"": "Interceptor;",
5721 get$target: function(receiver) {
5722 return W._convertNativeToDart_EventTarget(receiver.target);
5723 },
5724 $isEvent: true
5725 },
5753 5726
5754 EventTarget: {"": "Interceptor;", 5727 EventTarget: {"": "Interceptor;",
5755 $$dom_addEventListener$3: function(receiver, type, listener, useCapture) { 5728 $$dom_addEventListener$3: function(receiver, type, listener, useCapture) {
5756 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1) , useCapture); 5729 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1) , useCapture);
5757 }, 5730 },
5758 $$dom_removeEventListener$3: function(receiver, type, listener, useCapture) { 5731 $$dom_removeEventListener$3: function(receiver, type, listener, useCapture) {
5759 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener, 1), useCapture); 5732 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener, 1), useCapture);
5760 } 5733 },
5734 $isEventTarget: true
5761 }, 5735 },
5762 5736
5763 FormElement: {"": "HtmlElement;length="}, 5737 FieldSetElement: {"": "HtmlElement;disabled}"},
5764 5738
5765 HtmlCollection: {"": "Interceptor_ListMixin_ImmutableListMixin;", 5739 FormElement: {"": "HtmlElement;length=,target="},
5766 get$length: function(receiver) {
5767 return receiver.length;
5768 },
5769 $index: function(receiver, index) {
5770 var t1 = receiver.length;
5771 if (index >>> 0 !== index || index >= t1)
5772 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra nge 0.." + t1));
5773 return receiver[index];
5774 },
5775 $indexSet: function(receiver, index, value) {
5776 throw H.wrapException(new P.UnsupportedError("Cannot assign element of immut able List."));
5777 },
5778 elementAt$1: function(receiver, index) {
5779 if (index < 0 || index >= receiver.length)
5780 throw H.ioore(receiver, index);
5781 return receiver[index];
5782 },
5783 $asList: function() {
5784 return [W.Node];
5785 },
5786 $isList: true,
5787 $isJavaScriptIndexingBehavior: true
5788 },
5789 5740
5790 HttpRequest: {"": "XmlHttpRequestEventTarget;responseText=", 5741 HttpRequest: {"": "XmlHttpRequestEventTarget;responseText=",
5791 open$5$async$password$user: function(receiver, method, url, async, password, u ser) { 5742 open$5$async$password$user: function(receiver, method, url, async, password, u ser) {
5792 return receiver.open(method, url, async, user, password); 5743 return receiver.open(method, url, async, user, password);
5793 }, 5744 },
5794 open$3$async: function($receiver, method, url, async) { 5745 open$3$async: function($receiver, method, url, async) {
5795 return $receiver.open(method, url, async); 5746 return $receiver.open(method, url, async);
5796 }, 5747 },
5797 $isHttpRequest: true 5748 $isHttpRequest: true
5798 }, 5749 },
5799 5750
5800 InputElement: {"": "HtmlElement;", $isElement: true, $isNode: true}, 5751 InputElement: {"": "HtmlElement;disabled}", $isInputElement: true, $isEventTarge t: true},
5752
5753 KeygenElement: {"": "HtmlElement;disabled}"},
5754
5755 LinkElement: {"": "HtmlElement;disabled}"},
5801 5756
5802 MouseEvent: {"": "UIEvent;", $isMouseEvent: true}, 5757 MouseEvent: {"": "UIEvent;", $isMouseEvent: true},
5803 5758
5804 Node: {"": "EventTarget;parent:parentElement=", 5759 Node: {"": "EventTarget;parent:parentElement=",
5805 replaceWith$1: function(receiver, otherNode) {
5806 var $parent, exception;
5807 try {
5808 $parent = receiver.parentNode;
5809 J._replaceChild$2$x($parent, otherNode, receiver);
5810 } catch (exception) {
5811 H.unwrapException(exception);
5812 }
5813
5814 return receiver;
5815 },
5816 toString$0: function(receiver) { 5760 toString$0: function(receiver) {
5817 var t1 = receiver.nodeValue; 5761 var t1 = receiver.nodeValue;
5818 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver) : t1; 5762 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver) : t1;
5819 }, 5763 }
5820 _replaceChild$2: function(receiver, newChild, oldChild) {
5821 return receiver.replaceChild(newChild, oldChild);
5822 },
5823 $isNode: true
5824 }, 5764 },
5825 5765
5826 NodeList: {"": "Interceptor_ListMixin_ImmutableListMixin0;", 5766 OptGroupElement: {"": "HtmlElement;disabled}"},
5767
5768 OptionElement: {"": "HtmlElement;disabled}"},
5769
5770 ProcessingInstruction: {"": "CharacterData;target="},
5771
5772 ProgressEvent: {"": "Event;", $isProgressEvent: true},
5773
5774 SelectElement: {"": "HtmlElement;disabled},length="},
5775
5776 Storage: {"": "Interceptor;",
5777 $index: function(receiver, key) {
5778 return receiver.getItem(key);
5779 },
5780 $indexSet: function(receiver, key, value) {
5781 receiver.setItem(key, value);
5782 },
5783 forEach$1: function(receiver, f) {
5784 var i, key;
5785 for (i = 0; true; ++i) {
5786 key = receiver.key(i);
5787 if (key == null)
5788 return;
5789 f.call$2(key, receiver.getItem(key));
5790 }
5791 },
5792 get$keys: function(receiver) {
5793 var keys = [];
5794 this.forEach$1(receiver, new W.Storage_keys_closure(keys));
5795 return keys;
5796 },
5797 get$values: function(receiver) {
5798 var values = [];
5799 this.forEach$1(receiver, new W.Storage_values_closure(values));
5800 return values;
5801 },
5827 get$length: function(receiver) { 5802 get$length: function(receiver) {
5828 return receiver.length; 5803 return receiver.length;
5829 }, 5804 },
5830 $index: function(receiver, index) { 5805 $isMap: true,
5831 var t1 = receiver.length; 5806 $asMap: function() {
5832 if (index >>> 0 !== index || index >= t1) 5807 return [J.JSString, J.JSString];
5833 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra nge 0.." + t1)); 5808 }
5834 return receiver[index];
5835 },
5836 $indexSet: function(receiver, index, value) {
5837 throw H.wrapException(new P.UnsupportedError("Cannot assign element of immut able List."));
5838 },
5839 elementAt$1: function(receiver, index) {
5840 if (index < 0 || index >= receiver.length)
5841 throw H.ioore(receiver, index);
5842 return receiver[index];
5843 },
5844 $asList: function() {
5845 return [W.Node];
5846 },
5847 $isList: true,
5848 $isJavaScriptIndexingBehavior: true
5849 }, 5809 },
5850 5810
5851 ProgressEvent: {"": "Event;", $isProgressEvent: true}, 5811 StyleElement: {"": "HtmlElement;disabled}"},
5852 5812
5853 SelectElement: {"": "HtmlElement;length="}, 5813 TextAreaElement: {"": "HtmlElement;disabled}"},
5854 5814
5855 UIEvent: {"": "Event;"}, 5815 UIEvent: {"": "Event;"},
5856 5816
5857 Window: {"": "EventTarget;", 5817 Window: {"": "EventTarget;",
5858 get$parent: function(receiver) { 5818 get$parent: function(receiver) {
5859 return W._convertNativeToDart_Window(receiver.parent); 5819 return W._convertNativeToDart_Window(receiver.parent);
5860 }, 5820 },
5861 toString$0: function(receiver) { 5821 toString$0: function(receiver) {
5862 return receiver.toString(); 5822 return receiver.toString();
5863 } 5823 },
5824 $isEventTarget: true
5864 }, 5825 },
5865 5826
5866 XmlHttpRequestEventTarget: {"": "EventTarget;"}}], 5827 XmlHttpRequestEventTarget: {"": "EventTarget;"}}],
5867 ["dart.dom.svg", "dart:svg", , P, { 5828 ["dart.dom.svg", "dart:svg", , P, {
5868 SvgElement: {"": "Element;", 5829 AElement: {"": "GraphicsElement;target="},
5869 get$children: function(receiver) { 5830
5870 var t1 = new P.FilteredElementList(receiver, new W._ChildNodeListLazy(receiv er)); 5831 GraphicsElement: {"": "SvgElement;"},
5871 H.setRuntimeTypeInfo(t1, [W.Element]); 5832
5872 return t1; 5833 StyleElement0: {"": "SvgElement;disabled}"},
5873 } 5834
5874 }}], 5835 SvgElement: {"": "Element;"}}],
5875 ["dart.isolate", "dart:isolate", , P, { 5836 ["dart.isolate", "dart:isolate", , P, {
5876 _Isolate_port: function() { 5837 _Isolate_port: function() {
5877 if ($.lazyPort == null) 5838 if ($.lazyPort == null)
5878 $.lazyPort = H.ReceivePortImpl$(); 5839 $.lazyPort = H.ReceivePortImpl$();
5879 return $.lazyPort; 5840 return $.lazyPort;
5880 }, 5841 },
5881 5842
5882 ReceivePort: {"": "Object;", $isReceivePort: true}}], 5843 ReceivePort: {"": "Object;", $isReceivePort: true}}],
5844 ["dart.math", "dart:math", , P, {
5845 _Random: {"": "Object;",
5846 nextInt$1: function(max) {
5847 var t1 = J.getInterceptor$n(max);
5848 if (t1.$lt(max, 0))
5849 throw H.wrapException(new P.ArgumentError("negative max: " + H.S(max)));
5850 if (t1.$gt(max, 4294967295))
5851 max = 4294967295;
5852 return Math.random() * max >>> 0;
5853 }
5854 }}],
5883 ["dart.typed_data", "dart:typed_data", , P, { 5855 ["dart.typed_data", "dart:typed_data", , P, {
5884 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null}, 5856 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null},
5885 5857
5886 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL istMixin;", $asList: null}, 5858 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL istMixin;", $asList: null},
5887 5859
5888 TypedData: {"": "Interceptor;", 5860 TypedData: {"": "Interceptor;",
5889 _invalidIndex$2: function(receiver, index, $length) { 5861 _invalidIndex$2: function(receiver, index, $length) {
5890 var t1 = J.getInterceptor$n(index); 5862 var t1 = J.getInterceptor$n(index);
5891 if (t1.$lt(index, 0) || t1.$ge(index, $length)) 5863 if (t1.$lt(index, 0) || t1.$ge(index, $length))
5892 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra nge 0.." + $length)); 5864 throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in ra nge 0.." + $length));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5928 if (index >>> 0 != index || J.$ge$n(index, t1)) 5900 if (index >>> 0 != index || J.$ge$n(index, t1))
5929 this._invalidIndex$2(receiver, index, t1); 5901 this._invalidIndex$2(receiver, index, t1);
5930 receiver[index] = value; 5902 receiver[index] = value;
5931 }, 5903 },
5932 $asList: function() { 5904 $asList: function() {
5933 return [J.JSInt]; 5905 return [J.JSInt];
5934 }, 5906 },
5935 $isList: true, 5907 $isList: true,
5936 $isJavaScriptIndexingBehavior: true 5908 $isJavaScriptIndexingBehavior: true
5937 }}], 5909 }}],
5938 ["html_common", "dart:html_common", , P, { 5910 ["piratebadge.dart", "piratebadge.dart", , A, {
5939 FilteredElementList: {"": "ListBase;_node,_childNodes", 5911 main: function() {
5940 get$_filtered: function() { 5912 var inputField, t1, t2, t3;
5941 var t1 = this._childNodes; 5913 inputField = document.querySelector("#inputName");
5942 return P.List_List$from(t1.where$1(t1, new P.FilteredElementList__filtered_c losure()), true, W.Element); 5914 inputField.toString;
5943 }, 5915 t1 = new W._ElementEventStreamImpl(inputField, C.EventStreamProvider_input._ev entType, false);
5944 forEach$1: function(_, f) { 5916 H.setRuntimeTypeInfo(t1, [null]);
5945 H.IterableMixinWorkaround_forEach(this.get$_filtered(), f); 5917 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStre amSubscription__wrapZone(A.updateBadge$closure), t1._useCapture);
5946 }, 5918 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]);
5947 $indexSet: function(_, index, value) { 5919 t2._tryResume$0();
5948 var t1 = this.get$_filtered(); 5920 t2 = document.querySelector("#generateButton");
5949 if (index >>> 0 !== index || index >= t1.length) 5921 t2.toString;
5950 throw H.ioore(t1, index); 5922 t1 = new W._ElementEventStreamImpl(t2, C.EventStreamProvider_click._eventType, false);
5951 J.replaceWith$1$x(t1[index], value); 5923 H.setRuntimeTypeInfo(t1, [null]);
5952 }, 5924 t3 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStre amSubscription__wrapZone(A.generateBadge$closure), t1._useCapture);
5953 add$1: function(_, value) { 5925 H.setRuntimeTypeInfo(t3, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]);
5954 this._childNodes._this.appendChild(value); 5926 t3._tryResume$0();
5955 }, 5927 $.genButton = t2;
5956 get$length: function(_) { 5928 $.badgeNameElement = document.querySelector("#badgeName");
5957 return this.get$_filtered().length; 5929 A.PirateName_readyThePirates().then$1(new A.main_closure(inputField)).catchErr or$1(new A.main_closure0());
5958 },
5959 $index: function(_, index) {
5960 var t1 = this.get$_filtered();
5961 if (index >>> 0 !== index || index >= t1.length)
5962 throw H.ioore(t1, index);
5963 return t1[index];
5964 },
5965 get$iterator: function(_) {
5966 var t1 = this.get$_filtered();
5967 return new H.ListIterator(t1, t1.length, 0, null);
5968 },
5969 $asListBase: null,
5970 $asList: null
5971 }, 5930 },
5972 5931
5973 FilteredElementList__filtered_closure: {"": "Closure;", 5932 updateBadge: function(e) {
5974 call$1: function(n) { 5933 var inputName, t1, t2;
5975 var t1 = J.getInterceptor(n); 5934 inputName = H.interceptedTypeCast(J.get$target$x(e), "$isInputElement").value;
5976 return typeof n === "object" && n !== null && !!t1.$isElement; 5935 A.badgeName(A.PirateName$(null, inputName));
5977 } 5936 t1 = J.trim$0$s(inputName);
5978 }}], 5937 t2 = $.genButton;
5979 ["portmanteaux_simple.dart", "portmanteaux_simple.dart", , O, { 5938 if (t1.length === 0) {
5980 main: function() { 5939 J.set$disabled$x(t2, false);
5981 var t1, t2; 5940 t2.textContent = "Generate badge";
5982 t1 = document.querySelector("#getWords"); 5941 } else {
5983 t1.toString; 5942 J.set$disabled$x(t2, true);
5984 t1 = new W._ElementEventStreamImpl(t1, C.EventStreamProvider_click._eventType, false); 5943 t2.textContent = "Arrr! Remove the text!";
5985 H.setRuntimeTypeInfo(t1, [null]);
5986 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStre amSubscription__wrapZone(O.makeRequest$closure), t1._useCapture);
5987 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]);
5988 t2._tryResume$0();
5989 $.wordList = document.querySelector("#wordList");
5990 },
5991
5992 makeRequest: function(e) {
5993 W.HttpRequest_getString("portmanteaux_simple.json", null, null).then$1(O.proce ssString$closure).catchError$1(O.handleError$closure);
5994 },
5995
5996 processString: function(jsonString) {
5997 var portmanteaux, i, t1, t2;
5998 portmanteaux = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver);
5999 if (typeof portmanteaux !== "string" && (typeof portmanteaux !== "object" || p ortmanteaux === null || portmanteaux.constructor !== Array && !H.isJsIndexable(p ortmanteaux, portmanteaux[init.dispatchPropertyName])))
6000 return O.processString$bailout(1, portmanteaux);
6001 for (i = 0; i < portmanteaux.length; ++i) {
6002 t1 = J.get$children$x($.wordList);
6003 t2 = document.createElement("li", null);
6004 if (i >= portmanteaux.length)
6005 throw H.ioore(portmanteaux, i);
6006 t2.textContent = portmanteaux[i];
6007 t1.add$1(t1, t2);
6008 } 5944 }
6009 }, 5945 },
6010 5946
6011 processString$bailout: function(state0, portmanteaux) { 5947 generateBadge: function(e) {
6012 var t1, i, t2, t3; 5948 A.badgeName(A.PirateName$(null, null));
6013 t1 = J.getInterceptor$asx(portmanteaux); 5949 },
6014 i = 0; 5950
6015 while (true) { 5951 badgeName: function(newName) {
6016 t2 = t1.get$length(portmanteaux); 5952 $.badgeNameElement.textContent = H.S(newName._firstName) + " the " + H.S(newNa me._appellation);
6017 if (typeof t2 !== "number") 5953 window.localStorage.setItem("pirateName", "{ \"f\": \"" + H.S(newName._firstNa me) + "\", \"a\": \"" + H.S(newName._appellation) + "\" } ");
6018 throw H.iae(t2); 5954 },
6019 if (!(i < t2)) 5955
6020 break; 5956 pirateNameFromStorage: function() {
6021 t2 = J.get$children$x($.wordList); 5957 var storedName = window.localStorage.getItem("pirateName");
6022 t3 = document.createElement("li", null); 5958 if (storedName != null)
6023 t3.textContent = t1.$index(portmanteaux, i); 5959 return A.PirateName$fromJSON(storedName);
6024 t2.add$1(t2, t3); 5960 else
6025 ++i; 5961 return;
5962 },
5963
5964 main_closure: {"": "Closure;inputField_0",
5965 call$1: function(_) {
5966 J.set$disabled$x(this.inputField_0, false);
5967 J.set$disabled$x($.genButton, false);
5968 A.badgeName(A.pirateNameFromStorage());
6026 } 5969 }
6027 }, 5970 },
6028 5971
6029 handleError: function(error) { 5972 main_closure0: {"": "Closure;",
6030 var t1, t2; 5973 call$1: function(arrr) {
6031 t1 = J.get$children$x($.wordList); 5974 H.Primitives_printString("Error initializing pirate names: " + H.S(arrr));
6032 t2 = document.createElement("li", null); 5975 $.badgeNameElement.textContent = "Arrr! No names.";
6033 t2.textContent = "Request failed."; 5976 }
6034 t1.add$1(t1, t2); 5977 },
5978
5979 PirateName: {"": "Object;_firstName,_appellation",
5980 toString$0: function(_) {
5981 return H.S(this._firstName) + " the " + H.S(this._appellation);
5982 },
5983 PirateName$2$appellation$firstName: function(appellation, firstName) {
5984 if (firstName == null)
5985 this._firstName = J.$index$asx($.get$PirateName_names(), $.get$PirateName_ indexGen().nextInt$1(J.get$length$asx($.get$PirateName_names())));
5986 else
5987 this._firstName = firstName;
5988 this._appellation = J.$index$asx($.get$PirateName_appellations(), $.get$Pira teName_indexGen().nextInt$1(J.get$length$asx($.get$PirateName_appellations())));
5989 },
5990 PirateName$fromJSON$1: function(jsonString) {
5991 var storedName, t1;
5992 storedName = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver);
5993 t1 = J.getInterceptor$asx(storedName);
5994 this._firstName = t1.$index(storedName, "f");
5995 this._appellation = t1.$index(storedName, "a");
5996 },
5997 static: {
5998 "": "PirateName_indexGen,PirateName_names,PirateName_appellations",
5999 PirateName$: function(appellation, firstName) {
6000 var t1 = new A.PirateName(null, null);
6001 t1.PirateName$2$appellation$firstName(appellation, firstName);
6002 return t1;
6003 },
6004
6005 PirateName$fromJSON: function(jsonString) {
6006 var t1 = new A.PirateName(null, null);
6007 t1.PirateName$fromJSON$1(jsonString);
6008 return t1;
6009 },
6010
6011 PirateName_readyThePirates: function() {
6012 return W.HttpRequest_getString("piratenames.json", null, null).then$1(A.Pirate Name__parsePirateNamesFromJSON$closure);
6013 },
6014
6015 PirateName__parsePirateNamesFromJSON: function(jsonString) {
6016 var pirateNames, t1;
6017 pirateNames = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver);
6018 t1 = J.getInterceptor$asx(pirateNames);
6019 $.PirateName_names = t1.$index(pirateNames, "names");
6020 $.PirateName_appellations = t1.$index(pirateNames, "appellations");
6021 }}
6022
6035 }}, 6023 }},
6036 1], 6024 1],
6037 ]); 6025 ]);
6038 Isolate.$finishClasses($$, $, null); 6026 Isolate.$finishClasses($$, $, null);
6039 $$ = null; 6027 $$ = null;
6040 6028
6041 // Static function getters 6029 // Static function getters
6042 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo rkerMessage, "IsolateNatives__processWorkerMessage$closure"); 6030 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo rkerMessage, "IsolateNatives__processWorkerMessage$closure");
6043 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H .Closure$0(H.toStringWrapper, "toStringWrapper$closure"); 6031 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H .Closure$0(H.toStringWrapper, "toStringWrapper$closure");
6044 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo sure$7(H.invokeClosure, "invokeClosure$closure"); 6032 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo sure$7(H.invokeClosure, "invokeClosure$closure");
(...skipping 15 matching lines...) Expand all
6060 init.globalFunctions._rootRegisterCallback$closure = P._rootRegisterCallback$clo sure = new P.Closure$4(P._rootRegisterCallback, "_rootRegisterCallback$closure") ; 6048 init.globalFunctions._rootRegisterCallback$closure = P._rootRegisterCallback$clo sure = new P.Closure$4(P._rootRegisterCallback, "_rootRegisterCallback$closure") ;
6061 init.globalFunctions._rootRegisterUnaryCallback$closure = P._rootRegisterUnaryCa llback$closure = new P.Closure$4(P._rootRegisterUnaryCallback, "_rootRegisterUna ryCallback$closure"); 6049 init.globalFunctions._rootRegisterUnaryCallback$closure = P._rootRegisterUnaryCa llback$closure = new P.Closure$4(P._rootRegisterUnaryCallback, "_rootRegisterUna ryCallback$closure");
6062 init.globalFunctions._rootScheduleMicrotask$closure = P._rootScheduleMicrotask$c losure = new P.Closure$4(P._rootScheduleMicrotask, "_rootScheduleMicrotask$closu re"); 6050 init.globalFunctions._rootScheduleMicrotask$closure = P._rootScheduleMicrotask$c losure = new P.Closure$4(P._rootScheduleMicrotask, "_rootScheduleMicrotask$closu re");
6063 init.globalFunctions._rootCreateTimer$closure = P._rootCreateTimer$closure = new P.Closure$5(P._rootCreateTimer, "_rootCreateTimer$closure"); 6051 init.globalFunctions._rootCreateTimer$closure = P._rootCreateTimer$closure = new P.Closure$5(P._rootCreateTimer, "_rootCreateTimer$closure");
6064 init.globalFunctions._rootCreatePeriodicTimer$closure = P._rootCreatePeriodicTim er$closure = new P.Closure$5(P._rootCreatePeriodicTimer, "_rootCreatePeriodicTim er$closure"); 6052 init.globalFunctions._rootCreatePeriodicTimer$closure = P._rootCreatePeriodicTim er$closure = new P.Closure$5(P._rootCreatePeriodicTimer, "_rootCreatePeriodicTim er$closure");
6065 init.globalFunctions._rootFork$closure = P._rootFork$closure = new P.Closure$5(P ._rootFork, "_rootFork$closure"); 6053 init.globalFunctions._rootFork$closure = P._rootFork$closure = new P.Closure$5(P ._rootFork, "_rootFork$closure");
6066 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C losure$2(P._defaultEquals, "_defaultEquals$closure"); 6054 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C losure$2(P._defaultEquals, "_defaultEquals$closure");
6067 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); 6055 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure");
6068 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P .identical, "identical$closure"); 6056 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P .identical, "identical$closure");
6069 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new H.Closure$1(P.identityHashCode, "identityHashCode$closure"); 6057 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new H.Closure$1(P.identityHashCode, "identityHashCode$closure");
6070 init.globalFunctions.main$closure = O.main$closure = new H.Closure$0(O.main, "ma in$closure"); 6058 init.globalFunctions.main$closure = A.main$closure = new H.Closure$0(A.main, "ma in$closure");
6071 init.globalFunctions.makeRequest$closure = O.makeRequest$closure = new H.Closure $1(O.makeRequest, "makeRequest$closure"); 6059 init.globalFunctions.updateBadge$closure = A.updateBadge$closure = new H.Closure $1(A.updateBadge, "updateBadge$closure");
6072 init.globalFunctions.processString$closure = O.processString$closure = new H.Clo sure$1(O.processString, "processString$closure"); 6060 init.globalFunctions.generateBadge$closure = A.generateBadge$closure = new H.Clo sure$1(A.generateBadge, "generateBadge$closure");
6073 init.globalFunctions.handleError$closure = O.handleError$closure = new H.Closure $1(O.handleError, "handleError$closure"); 6061 init.globalFunctions.PirateName__parsePirateNamesFromJSON$closure = A.PirateName __parsePirateNamesFromJSON$closure = new H.Closure$1(A.PirateName__parsePirateNa mesFromJSON, "PirateName__parsePirateNamesFromJSON$closure");
6074 // Runtime type support 6062 // Runtime type support
6063 J.JSString.$isString = true;
6064 J.JSString.$isObject = true;
6075 J.JSInt.$isint = true; 6065 J.JSInt.$isint = true;
6076 J.JSInt.$isObject = true; 6066 J.JSInt.$isObject = true;
6077 W.Node.$isObject = true;
6078 J.JSString.$isString = true;
6079 J.JSString.$isObject = true;
6080 J.JSNumber.$isObject = true; 6067 J.JSNumber.$isObject = true;
6068 P.Object.$isObject = true;
6081 P.Duration.$isDuration = true; 6069 P.Duration.$isDuration = true;
6082 P.Duration.$isObject = true; 6070 P.Duration.$isObject = true;
6083 W.Element.$isObject = true; 6071 W.Event.$isEvent = true;
6084 P.Object.$isObject = true; 6072 W.Event.$isObject = true;
6085 W.MouseEvent.$isEvent = true; 6073 W.MouseEvent.$isEvent = true;
6086 W.MouseEvent.$isObject = true; 6074 W.MouseEvent.$isObject = true;
6087 P.Symbol.$isSymbol = true; 6075 P.Symbol.$isSymbol = true;
6088 P.Symbol.$isObject = true; 6076 P.Symbol.$isObject = true;
6089 W.HttpRequest.$isObject = true; 6077 W.HttpRequest.$isObject = true;
6090 W.ProgressEvent.$isEvent = true; 6078 W.ProgressEvent.$isEvent = true;
6091 W.ProgressEvent.$isObject = true; 6079 W.ProgressEvent.$isObject = true;
6092 P.ReceivePort.$isObject = true; 6080 P.ReceivePort.$isObject = true;
6093 H._IsolateEvent.$isObject = true; 6081 H._IsolateEvent.$isObject = true;
6094 H._IsolateContext.$isObject = true; 6082 H._IsolateContext.$isObject = true;
6095 J.JSArray.$isObject = true; 6083 J.JSArray.$isObject = true;
6096 P.Future.$isFuture = true; 6084 P.Future.$isFuture = true;
6097 P.Future.$isObject = true; 6085 P.Future.$isObject = true;
6098 W.Event.$isEvent = true;
6099 W.Event.$isObject = true;
6100 P.Zone.$isZone = true; 6086 P.Zone.$isZone = true;
6101 P.Zone.$isObject = true; 6087 P.Zone.$isObject = true;
6102 P.ZoneDelegate.$isZoneDelegate = true; 6088 P.ZoneDelegate.$isZoneDelegate = true;
6103 P.ZoneDelegate.$isObject = true; 6089 P.ZoneDelegate.$isObject = true;
6104 P.Timer.$isTimer = true; 6090 P.Timer.$isTimer = true;
6105 P.Timer.$isObject = true; 6091 P.Timer.$isObject = true;
6106 P.ZoneSpecification.$isZoneSpecification = true; 6092 P.ZoneSpecification.$isZoneSpecification = true;
6107 P.ZoneSpecification.$isObject = true; 6093 P.ZoneSpecification.$isObject = true;
6108 P.Map.$isMap = true; 6094 P.Map.$isMap = true;
6109 P.Map.$isObject = true; 6095 P.Map.$isObject = true;
6110 P.Function.$isFunction = true; 6096 P.Function.$isFunction = true;
6111 P.Function.$isObject = true; 6097 P.Function.$isObject = true;
6112 J.JSBool.$isbool = true; 6098 J.JSBool.$isbool = true;
6113 J.JSBool.$isObject = true; 6099 J.JSBool.$isObject = true;
6114 P.Error.$isError = true;
6115 P.Error.$isObject = true;
6116 P.StackTrace.$isStackTrace = true; 6100 P.StackTrace.$isStackTrace = true;
6117 P.StackTrace.$isObject = true; 6101 P.StackTrace.$isObject = true;
6118 P._EventSink.$is_EventSink = true; 6102 P._EventSink.$is_EventSink = true;
6119 P._EventSink.$isObject = true; 6103 P._EventSink.$isObject = true;
6120 // getInterceptor methods 6104 // getInterceptor methods
6121 J.getInterceptor = function(receiver) { 6105 J.getInterceptor = function(receiver) {
6122 if (typeof receiver == "number") { 6106 if (typeof receiver == "number") {
6123 if (Math.floor(receiver) == receiver) 6107 if (Math.floor(receiver) == receiver)
6124 return J.JSInt.prototype; 6108 return J.JSInt.prototype;
6125 return J.JSDouble.prototype; 6109 return J.JSDouble.prototype;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
6185 return receiver; 6169 return receiver;
6186 if (typeof receiver != "object") 6170 if (typeof receiver != "object")
6187 return receiver; 6171 return receiver;
6188 if (receiver instanceof P.Object) 6172 if (receiver instanceof P.Object)
6189 return receiver; 6173 return receiver;
6190 return J.getNativeInterceptor(receiver); 6174 return J.getNativeInterceptor(receiver);
6191 }; 6175 };
6192 C.C_CloseToken = new H.CloseToken(); 6176 C.C_CloseToken = new H.CloseToken();
6193 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); 6177 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject();
6194 C.C__DelayedDone = new P._DelayedDone(); 6178 C.C__DelayedDone = new P._DelayedDone();
6179 C.C__Random = new P._Random();
6195 C.Duration_0 = new P.Duration(0); 6180 C.Duration_0 = new P.Duration(0);
6196 C.EventStreamProvider_click = new W.EventStreamProvider("click"); 6181 C.EventStreamProvider_click = new W.EventStreamProvider("click");
6197 C.EventStreamProvider_error = new W.EventStreamProvider("error"); 6182 C.EventStreamProvider_error = new W.EventStreamProvider("error");
6183 C.EventStreamProvider_input = new W.EventStreamProvider("input");
6198 C.EventStreamProvider_load = new W.EventStreamProvider("load"); 6184 C.EventStreamProvider_load = new W.EventStreamProvider("load");
6199 C.HttpRequest_methods = W.HttpRequest.prototype; 6185 C.HttpRequest_methods = W.HttpRequest.prototype;
6200 C.JSArray_methods = J.JSArray.prototype; 6186 C.JSArray_methods = J.JSArray.prototype;
6201 C.JSInt_methods = J.JSInt.prototype; 6187 C.JSInt_methods = J.JSInt.prototype;
6202 C.JSNumber_methods = J.JSNumber.prototype; 6188 C.JSNumber_methods = J.JSNumber.prototype;
6203 C.JSString_methods = J.JSString.prototype; 6189 C.JSString_methods = J.JSString.prototype;
6204 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" && "system" in os) 6190 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" && "system" in os)
6205 || (typeof navigator == "object" 6191 || (typeof navigator == "object"
6206 && navigator.userAgent.indexOf('Chrome') != -1)) 6192 && navigator.userAgent.indexOf('Chrome') != -1))
6207 ? function(x) { return x.$dartCachedLength || x.length; } 6193 ? function(x) { return x.$dartCachedLength || x.length; }
6208 : function(x) { return x.length; }; 6194 : function(x) { return x.length; };
6209 ; 6195 ;
6210 Isolate.makeConstantList = function(list) { 6196 Isolate.makeConstantList = function(list) {
6211 list.immutable$list = true; 6197 list.immutable$list = true;
6212 list.fixed$length = true; 6198 list.fixed$length = true;
6213 return list; 6199 return list;
6214 }; 6200 };
6215 C.List_empty = Isolate.makeConstantList([]); 6201 C.List_empty = Isolate.makeConstantList([]);
6216 C.NodeList_methods = W.NodeList.prototype;
6217 C._ZoneSpecification_eDx = new P._ZoneSpecification(P._rootHandleUncaughtError$c losure, P._rootRun$closure, P._rootRunUnary$closure, P._rootRegisterCallback$clo sure, P._rootRegisterUnaryCallback$closure, P._rootScheduleMicrotask$closure, P. _rootCreateTimer$closure, P._rootCreatePeriodicTimer$closure, P._rootFork$closur e); 6202 C._ZoneSpecification_eDx = new P._ZoneSpecification(P._rootHandleUncaughtError$c losure, P._rootRun$closure, P._rootRunUnary$closure, P._rootRegisterCallback$clo sure, P._rootRegisterUnaryCallback$closure, P._rootScheduleMicrotask$closure, P. _rootCreateTimer$closure, P._rootCreatePeriodicTimer$closure, P._rootFork$closur e);
6218 C.List_empty0 = H.setRuntimeTypeInfo(Isolate.makeConstantList([]), [P.Symbol]); 6203 C.List_empty0 = H.setRuntimeTypeInfo(Isolate.makeConstantList([]), [P.Symbol]);
6219 C.Map_empty = H.setRuntimeTypeInfo(new H.ConstantStringMap(0, {}, C.List_empty0) , [P.Symbol, null]); 6204 C.Map_empty = H.setRuntimeTypeInfo(new H.ConstantStringMap(0, {}, C.List_empty0) , [P.Symbol, null]);
6220 C._CustomizedZone_WYN = new P._CustomizedZone(null, C._ZoneSpecification_eDx, C. Map_empty); 6205 C._CustomizedZone_WYN = new P._CustomizedZone(null, C._ZoneSpecification_eDx, C. Map_empty);
6221 C._ZoneSpecification_eLJ = new P._ZoneSpecification(null, null, null, null, null , null, null, null, null); 6206 C._ZoneSpecification_eLJ = new P._ZoneSpecification(null, null, null, null, null , null, null, null, null);
6222 $.lazyPort = null; 6207 $.lazyPort = null;
6223 $.ReceivePortImpl__nextFreeId = 1; 6208 $.ReceivePortImpl__nextFreeId = 1;
6224 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; 6209 $.Primitives_mirrorFunctionCacheName = "$cachedFunction";
6225 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; 6210 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation";
6226 $.interceptorsByTag = null; 6211 $.interceptorsByTag = null;
6227 $.leafTags = null; 6212 $.leafTags = null;
6228 $.interceptorToTag = null; 6213 $.interceptorToTag = null;
6229 $._callbacksAreEnqueued = false; 6214 $._callbacksAreEnqueued = false;
6230 $.Zone__current = C._CustomizedZone_WYN; 6215 $.Zone__current = C._CustomizedZone_WYN;
6231 $.Expando__keyCount = 0; 6216 $.Expando__keyCount = 0;
6232 $.Device__isOpera = null; 6217 $.Device__isOpera = null;
6233 $.Device__isWebKit = null; 6218 $.Device__isWebKit = null;
6234 $.wordList = null; 6219 $.badgeNameElement = null;
6220 $.genButton = null;
6235 J.$$dom_addEventListener$3$x = function(receiver, a0, a1, a2) { 6221 J.$$dom_addEventListener$3$x = function(receiver, a0, a1, a2) {
6236 return J.getInterceptor$x(receiver).$$dom_addEventListener$3(receiver, a0, a1, a2); 6222 return J.getInterceptor$x(receiver).$$dom_addEventListener$3(receiver, a0, a1, a2);
6237 }; 6223 };
6238 J.$$dom_removeEventListener$3$x = function(receiver, a0, a1, a2) { 6224 J.$$dom_removeEventListener$3$x = function(receiver, a0, a1, a2) {
6239 return J.getInterceptor$x(receiver).$$dom_removeEventListener$3(receiver, a0, a1, a2); 6225 return J.getInterceptor$x(receiver).$$dom_removeEventListener$3(receiver, a0, a1, a2);
6240 }; 6226 };
6241 J.$eq = function(receiver, a0) { 6227 J.$eq = function(receiver, a0) {
6242 if (receiver == null) 6228 if (receiver == null)
6243 return a0 == null; 6229 return a0 == null;
6244 if (typeof receiver != "object") 6230 if (typeof receiver != "object")
6245 return a0 != null && receiver === a0; 6231 return a0 != null && receiver === a0;
6246 return J.getInterceptor(receiver).$eq(receiver, a0); 6232 return J.getInterceptor(receiver).$eq(receiver, a0);
6247 }; 6233 };
6248 J.$ge$n = function(receiver, a0) { 6234 J.$ge$n = function(receiver, a0) {
6249 if (typeof receiver == "number" && typeof a0 == "number") 6235 if (typeof receiver == "number" && typeof a0 == "number")
6250 return receiver >= a0; 6236 return receiver >= a0;
6251 return J.getInterceptor$n(receiver).$ge(receiver, a0); 6237 return J.getInterceptor$n(receiver).$ge(receiver, a0);
6252 }; 6238 };
6253 J.$index$asx = function(receiver, a0) { 6239 J.$index$asx = function(receiver, a0) {
6254 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde xable(receiver, receiver[init.dispatchPropertyName])) 6240 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde xable(receiver, receiver[init.dispatchPropertyName]))
6255 if (a0 >>> 0 === a0 && a0 < receiver.length) 6241 if (a0 >>> 0 === a0 && a0 < receiver.length)
6256 return receiver[a0]; 6242 return receiver[a0];
6257 return J.getInterceptor$asx(receiver).$index(receiver, a0); 6243 return J.getInterceptor$asx(receiver).$index(receiver, a0);
6258 }; 6244 };
6259 J.$indexSet$ax = function(receiver, a0, a1) { 6245 J.$indexSet$ax = function(receiver, a0, a1) {
6260 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init. dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r eceiver.length) 6246 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init. dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r eceiver.length)
6261 return receiver[a0] = a1; 6247 return receiver[a0] = a1;
6262 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); 6248 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
6263 }; 6249 };
6264 J._replaceChild$2$x = function(receiver, a0, a1) {
6265 return J.getInterceptor$x(receiver)._replaceChild$2(receiver, a0, a1);
6266 };
6267 J.elementAt$1$ax = function(receiver, a0) { 6250 J.elementAt$1$ax = function(receiver, a0) {
6268 return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0); 6251 return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
6269 }; 6252 };
6270 J.forEach$1$ax = function(receiver, a0) { 6253 J.forEach$1$ax = function(receiver, a0) {
6271 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); 6254 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0);
6272 }; 6255 };
6273 J.get$children$x = function(receiver) { 6256 J.get$_key$x = function(receiver) {
6274 return J.getInterceptor$x(receiver).get$children(receiver); 6257 return J.getInterceptor$x(receiver).get$_key(receiver);
6275 }; 6258 };
6276 J.get$hashCode$ = function(receiver) { 6259 J.get$hashCode$ = function(receiver) {
6277 return J.getInterceptor(receiver).get$hashCode(receiver); 6260 return J.getInterceptor(receiver).get$hashCode(receiver);
6278 }; 6261 };
6279 J.get$iterator$ax = function(receiver) { 6262 J.get$iterator$ax = function(receiver) {
6280 return J.getInterceptor$ax(receiver).get$iterator(receiver); 6263 return J.getInterceptor$ax(receiver).get$iterator(receiver);
6281 }; 6264 };
6282 J.get$length$asx = function(receiver) { 6265 J.get$length$asx = function(receiver) {
6283 return J.getInterceptor$asx(receiver).get$length(receiver); 6266 return J.getInterceptor$asx(receiver).get$length(receiver);
6284 }; 6267 };
6285 J.get$responseText$x = function(receiver) { 6268 J.get$responseText$x = function(receiver) {
6286 return J.getInterceptor$x(receiver).get$responseText(receiver); 6269 return J.getInterceptor$x(receiver).get$responseText(receiver);
6287 }; 6270 };
6271 J.get$target$x = function(receiver) {
6272 return J.getInterceptor$x(receiver).get$target(receiver);
6273 };
6274 J.get$values$x = function(receiver) {
6275 return J.getInterceptor$x(receiver).get$values(receiver);
6276 };
6288 J.map$1$ax = function(receiver, a0) { 6277 J.map$1$ax = function(receiver, a0) {
6289 return J.getInterceptor$ax(receiver).map$1(receiver, a0); 6278 return J.getInterceptor$ax(receiver).map$1(receiver, a0);
6290 }; 6279 };
6291 J.replaceWith$1$x = function(receiver, a0) {
6292 return J.getInterceptor$x(receiver).replaceWith$1(receiver, a0);
6293 };
6294 J.send$2$x = function(receiver, a0, a1) { 6280 J.send$2$x = function(receiver, a0, a1) {
6295 return J.getInterceptor$x(receiver).send$2(receiver, a0, a1); 6281 return J.getInterceptor$x(receiver).send$2(receiver, a0, a1);
6296 }; 6282 };
6283 J.set$disabled$x = function(receiver, value) {
6284 return J.getInterceptor$x(receiver).set$disabled(receiver, value);
6285 };
6286 J.toList$0$ax = function(receiver) {
6287 return J.getInterceptor$ax(receiver).toList$0(receiver);
6288 };
6297 J.toString$0 = function(receiver) { 6289 J.toString$0 = function(receiver) {
6298 return J.getInterceptor(receiver).toString$0(receiver); 6290 return J.getInterceptor(receiver).toString$0(receiver);
6299 }; 6291 };
6292 J.trim$0$s = function(receiver) {
6293 return J.getInterceptor$s(receiver).trim$0(receiver);
6294 };
6300 $.mapTypeToInterceptor = []; 6295 $.mapTypeToInterceptor = [];
6301 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { 6296 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() {
6302 return function() { return this; }(); 6297 return function() { return this; }();
6303 }); 6298 });
6304 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function() { 6299 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function() {
6305 return $.get$globalThis().window; 6300 return $.get$globalThis().window;
6306 }); 6301 });
6307 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function() { 6302 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function() {
6308 return $.get$globalThis().Worker; 6303 return $.get$globalThis().Worker;
6309 }); 6304 });
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
6357 }); 6352 });
6358 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu nction() { 6353 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu nction() {
6359 return P.ListQueue$(null, {func: "void_", void: true}); 6354 return P.ListQueue$(null, {func: "void_", void: true});
6360 }); 6355 });
6361 Isolate.$lazy($, "_toStringList", "ListMixin__toStringList", "get$ListMixin__toS tringList", function() { 6356 Isolate.$lazy($, "_toStringList", "ListMixin__toStringList", "get$ListMixin__toS tringList", function() {
6362 return P.List_List(null, null); 6357 return P.List_List(null, null);
6363 }); 6358 });
6364 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList" , function() { 6359 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList" , function() {
6365 return P.List_List(null, null); 6360 return P.List_List(null, null);
6366 }); 6361 });
6362 Isolate.$lazy($, "indexGen", "PirateName_indexGen", "get$PirateName_indexGen", f unction() {
6363 return C.C__Random;
6364 });
6365 Isolate.$lazy($, "names", "PirateName_names", "get$PirateName_names", function() {
6366 return [];
6367 });
6368 Isolate.$lazy($, "appellations", "PirateName_appellations", "get$PirateName_appe llations", function() {
6369 return [];
6370 });
6367 // Native classes 6371 // Native classes
6368 H.defineNativeMethods("DOMError|FileError|MediaError|MediaKeyError|Navigator|Nav igatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList", J.Intercepto r); 6372 H.defineNativeMethods("DOMError|FileError|MediaError|MediaKeyError|Navigator|Nav igatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedStr ing", J.Interceptor);
6369 6373
6370 H.defineNativeMethods("HTMLAppletElement|HTMLAreaElement|HTMLAudioElement|HTMLBR Element|HTMLBaseElement|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HT MLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDeta ilsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElemen t|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLH RElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HT MLImageElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElemen t|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMediaElement|HTMLMenuEle ment|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObject Element|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphEle ment|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLSc riptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement |HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataC ellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLT ableSectionElement|HTMLTemplateElement|HTMLTextAreaElement|HTMLTitleElement|HTML TrackElement|HTMLUListElement|HTMLUnknownElement|HTMLVideoElement", W.HtmlElemen t); 6374 H.defineNativeMethods("HTMLAppletElement|HTMLAudioElement|HTMLBRElement|HTMLBase FontElement|HTMLBodyElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElemen t|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement| HTMLDivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetEle ment|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrame Element|HTMLImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMa pElement|HTMLMarqueeElement|HTMLMediaElement|HTMLMenuElement|HTMLMetaElement|HTM LMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOutputElemen t|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQ uoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElemen t|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableData CellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTML TableSectionElement|HTMLTemplateElement|HTMLTitleElement|HTMLTrackElement|HTMLUL istElement|HTMLUnknownElement|HTMLVideoElement", W.HtmlElement);
6371 6375
6372 H.defineNativeMethodsNonleaf("HTMLElement", W.HtmlElement); 6376 H.defineNativeMethodsNonleaf("HTMLElement", W.HtmlElement);
6373 6377
6374 H.defineNativeMethods("HTMLAnchorElement", W.AnchorElement); 6378 H.defineNativeMethods("HTMLAnchorElement", W.AnchorElement);
6375 6379
6376 H.defineNativeMethods("CDATASection|CharacterData|Comment|ProcessingInstruction| Text", W.CharacterData); 6380 H.defineNativeMethods("HTMLAreaElement", W.AreaElement);
6381
6382 H.defineNativeMethods("HTMLBaseElement", W.BaseElement);
6383
6384 H.defineNativeMethods("HTMLButtonElement", W.ButtonElement);
6385
6386 H.defineNativeMethods("CDATASection|Comment|Text", W.CharacterData);
6387
6388 H.defineNativeMethodsNonleaf("CharacterData", W.CharacterData);
6377 6389
6378 H.defineNativeMethods("DOMException", W.DomException); 6390 H.defineNativeMethods("DOMException", W.DomException);
6379 6391
6380 H.defineNativeMethodsNonleaf("Element", W.Element); 6392 H.defineNativeMethodsNonleaf("Element", W.Element);
6381 6393
6382 H.defineNativeMethods("AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEve nt|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientati onEvent|ErrorEvent|HashChangeEvent|IDBVersionChangeEvent|MIDIConnectionEvent|MID IMessageEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStream Event|MediaStreamTrackEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEve nt|OverflowEvent|PageTransitionEvent|PopStateEvent|RTCDTMFToneChangeEvent|RTCDat aChannelEvent|RTCIceCandidateEvent|SecurityPolicyViolationEvent|SpeechInputEvent |SpeechRecognitionError|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent |TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransit ionEvent", W.Event); 6394 H.defineNativeMethods("AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEve nt|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientati onEvent|ErrorEvent|HashChangeEvent|IDBVersionChangeEvent|MIDIConnectionEvent|MID IMessageEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStream Event|MediaStreamTrackEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEve nt|OverflowEvent|PageTransitionEvent|PopStateEvent|RTCDTMFToneChangeEvent|RTCDat aChannelEvent|RTCIceCandidateEvent|SecurityPolicyViolationEvent|SpeechInputEvent |SpeechRecognitionError|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent |TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransit ionEvent", W.Event);
6383 6395
6384 H.defineNativeMethodsNonleaf("Event", W.Event); 6396 H.defineNativeMethodsNonleaf("Event", W.Event);
6385 6397
6386 H.defineNativeMethodsNonleaf("EventTarget", W.EventTarget); 6398 H.defineNativeMethodsNonleaf("EventTarget", W.EventTarget);
6387 6399
6400 H.defineNativeMethods("HTMLFieldSetElement", W.FieldSetElement);
6401
6388 H.defineNativeMethods("HTMLFormElement", W.FormElement); 6402 H.defineNativeMethods("HTMLFormElement", W.FormElement);
6389 6403
6390 H.defineNativeMethods("HTMLCollection|HTMLFormControlsCollection|HTMLOptionsColl ection", W.HtmlCollection);
6391
6392 H.defineNativeMethods("XMLHttpRequest", W.HttpRequest); 6404 H.defineNativeMethods("XMLHttpRequest", W.HttpRequest);
6393 6405
6394 H.defineNativeMethods("HTMLInputElement", W.InputElement); 6406 H.defineNativeMethods("HTMLInputElement", W.InputElement);
6395 6407
6408 H.defineNativeMethods("HTMLKeygenElement", W.KeygenElement);
6409
6410 H.defineNativeMethods("HTMLLinkElement", W.LinkElement);
6411
6396 H.defineNativeMethods("DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|Mous eWheelEvent|PointerEvent|WheelEvent", W.MouseEvent); 6412 H.defineNativeMethods("DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|Mous eWheelEvent|PointerEvent|WheelEvent", W.MouseEvent);
6397 6413
6398 H.defineNativeMethods("Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDo cument|Notation|SVGDocument|ShadowRoot", W.Node); 6414 H.defineNativeMethods("Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDo cument|Notation|SVGDocument|ShadowRoot", W.Node);
6399 6415
6400 H.defineNativeMethodsNonleaf("Node", W.Node); 6416 H.defineNativeMethodsNonleaf("Node", W.Node);
6401 6417
6402 H.defineNativeMethods("NodeList|RadioNodeList", W.NodeList); 6418 H.defineNativeMethods("HTMLOptGroupElement", W.OptGroupElement);
6419
6420 H.defineNativeMethods("HTMLOptionElement", W.OptionElement);
6421
6422 H.defineNativeMethods("ProcessingInstruction", W.ProcessingInstruction);
6403 6423
6404 H.defineNativeMethods("ProgressEvent|ResourceProgressEvent|XMLHttpRequestProgres sEvent", W.ProgressEvent); 6424 H.defineNativeMethods("ProgressEvent|ResourceProgressEvent|XMLHttpRequestProgres sEvent", W.ProgressEvent);
6405 6425
6406 H.defineNativeMethods("HTMLSelectElement", W.SelectElement); 6426 H.defineNativeMethods("HTMLSelectElement", W.SelectElement);
6407 6427
6428 H.defineNativeMethods("Storage", W.Storage);
6429
6430 H.defineNativeMethods("HTMLStyleElement", W.StyleElement);
6431
6432 H.defineNativeMethods("HTMLTextAreaElement", W.TextAreaElement);
6433
6408 H.defineNativeMethods("CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|Te xtEvent|TouchEvent", W.UIEvent); 6434 H.defineNativeMethods("CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|Te xtEvent|TouchEvent", W.UIEvent);
6409 6435
6410 H.defineNativeMethodsNonleaf("UIEvent", W.UIEvent); 6436 H.defineNativeMethodsNonleaf("UIEvent", W.UIEvent);
6411 6437
6412 H.defineNativeMethods("DOMWindow|Window", W.Window); 6438 H.defineNativeMethods("DOMWindow|Window", W.Window);
6413 6439
6414 H.defineNativeMethodsNonleaf("XMLHttpRequestEventTarget", W.XmlHttpRequestEventT arget); 6440 H.defineNativeMethodsNonleaf("XMLHttpRequestEventTarget", W.XmlHttpRequestEventT arget);
6415 6441
6416 H.defineNativeMethods("SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphElement|SVGA ltGlyphItemElement|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElem ent|SVGAnimateTransformElement|SVGAnimationElement|SVGCircleElement|SVGClipPathE lement|SVGComponentTransferFunctionElement|SVGCursorElement|SVGDefsElement|SVGDe scElement|SVGElement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement |SVGFEComponentTransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement| SVGFEDiffuseLightingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement |SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SV GFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVG FEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|S VGFEPointLightElement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETi leElement|SVGFETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElem ent|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFon tFaceUriElement|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefE lement|SVGGradientElement|SVGGraphicsElement|SVGHKernElement|SVGImageElement|SVG LineElement|SVGLinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskEle ment|SVGMetadataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement| SVGPolygonElement|SVGPolylineElement|SVGRadialGradientElement|SVGRectElement|SVG SVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSwit chElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTextContentElement| SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGTitleElement|SVGU seElement|SVGVKernElement|SVGViewElement", P.SvgElement); 6442 H.defineNativeMethods("SVGAElement", P.AElement);
6443
6444 H.defineNativeMethods("SVGAltGlyphElement|SVGCircleElement|SVGClipPathElement|SV GDefsElement|SVGEllipseElement|SVGForeignObjectElement|SVGGElement|SVGImageEleme nt|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolylineElement|SVGRectEle ment|SVGSVGElement|SVGSwitchElement|SVGTRefElement|SVGTSpanElement|SVGTextConten tElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGUseEleme nt", P.GraphicsElement);
6445
6446 H.defineNativeMethodsNonleaf("SVGGraphicsElement", P.GraphicsElement);
6447
6448 H.defineNativeMethods("SVGStyleElement", P.StyleElement0);
6449
6450 H.defineNativeMethods("SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimateCo lorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTransformElement| SVGAnimationElement|SVGComponentTransferFunctionElement|SVGCursorElement|SVGDesc Element|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransferElement| SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVG FEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFl oodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncREleme nt|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeEl ement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpec ularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurbulenceElemen t|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SV GFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVGGlyphElement |SVGGlyphRefElement|SVGGradientElement|SVGHKernElement|SVGLinearGradientElement| SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|SVGMissingGly phElement|SVGPatternElement|SVGRadialGradientElement|SVGScriptElement|SVGSetElem ent|SVGStopElement|SVGSymbolElement|SVGTitleElement|SVGVKernElement|SVGViewEleme nt", P.SvgElement);
6451
6452 H.defineNativeMethodsNonleaf("SVGElement", P.SvgElement);
6417 6453
6418 H.defineNativeMethodsExtended("ArrayBufferView", P.TypedData, [P.TypedData_ListM ixin, P.TypedData_ListMixin_FixedLengthListMixin]); 6454 H.defineNativeMethodsExtended("ArrayBufferView", P.TypedData, [P.TypedData_ListM ixin, P.TypedData_ListMixin_FixedLengthListMixin]);
6419 6455
6420 H.defineNativeMethodsNonleaf("Uint8Array", P.Uint8List); 6456 H.defineNativeMethodsNonleaf("Uint8Array", P.Uint8List);
6421 6457
6422 6458
6423 init.functionAliases = {}; 6459 init.functionAliases = {};
6424 ; 6460 ;
6425 init.metadata = []; 6461 init.metadata = [];
6426 $ = null; 6462 $ = null;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
6485 } 6521 }
6486 callback(event.target); 6522 callback(event.target);
6487 } 6523 }
6488 for (var i = 0; i < scripts.length; ++i) { 6524 for (var i = 0; i < scripts.length; ++i) {
6489 scripts[i].addEventListener("load", onLoad, false); 6525 scripts[i].addEventListener("load", onLoad, false);
6490 } 6526 }
6491 })(function(currentScript) { 6527 })(function(currentScript) {
6492 init.currentScript = currentScript; 6528 init.currentScript = currentScript;
6493 6529
6494 if (typeof dartMainRunner === "function") { 6530 if (typeof dartMainRunner === "function") {
6495 dartMainRunner(function() { H.startRootIsolate(O.main$closure); }); 6531 dartMainRunner(function() { H.startRootIsolate(A.main$closure); });
6496 } else { 6532 } else {
6497 H.startRootIsolate(O.main$closure); 6533 H.startRootIsolate(A.main$closure);
6498 } 6534 }
6499 }); 6535 });
6500 // END invoke [main]. 6536 // END invoke [main].
6501 function init() { 6537 function init() {
6502 Isolate.$isolateProperties = {}; 6538 Isolate.$isolateProperties = {};
6503 function generateAccessor(field, accessors, cls) { 6539 function generateAccessor(field, accessors, cls) {
6504 var len = field.length; 6540 var len = field.length;
6505 var code = field.charCodeAt(len - 1); 6541 var code = field.charCodeAt(len - 1);
6506 var reflectable = false; 6542 var reflectable = false;
6507 if (code == 45) { 6543 if (code == 45) {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
6714 Isolate.prototype = oldIsolate.prototype; 6750 Isolate.prototype = oldIsolate.prototype;
6715 Isolate.prototype.constructor = Isolate; 6751 Isolate.prototype.constructor = Isolate;
6716 Isolate.$isolateProperties = isolateProperties; 6752 Isolate.$isolateProperties = isolateProperties;
6717 Isolate.$finishClasses = oldIsolate.$finishClasses; 6753 Isolate.$finishClasses = oldIsolate.$finishClasses;
6718 Isolate.makeConstantList = oldIsolate.makeConstantList; 6754 Isolate.makeConstantList = oldIsolate.makeConstantList;
6719 return Isolate; 6755 return Isolate;
6720 }; 6756 };
6721 } 6757 }
6722 })() 6758 })()
6723 6759
6724 //# sourceMappingURL=portmanteaux_simple.dart.js.map 6760 //# sourceMappingURL=piratebadge.dart.js.map
6725 //@ sourceMappingURL=portmanteaux_simple.dart.js.map 6761 //@ sourceMappingURL=piratebadge.dart.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698