Index: src/site/articles/trydart/examples/6-piratebadge_json/piratebadge.dart.js |
diff --git a/src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart.js b/src/site/articles/trydart/examples/6-piratebadge_json/piratebadge.dart.js |
similarity index 92% |
copy from src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart.js |
copy to src/site/articles/trydart/examples/6-piratebadge_json/piratebadge.dart.js |
index d619abbe92a51e728ef163db447447ec5f57ddf7..515a684da305ae1eedc5c3349ff345cac05ebc4c 100644 |
--- a/src/site/docs/tutorials/fetchdata/examples/portmanteaux_simple/portmanteaux_simple.dart.js |
+++ b/src/site/articles/trydart/examples/6-piratebadge_json/piratebadge.dart.js |
@@ -277,6 +277,12 @@ JSArray: {"": "List/Interceptor;", |
toString$0: function(receiver) { |
return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); |
}, |
+ toList$1$growable: function(receiver, growable) { |
+ return P.List_List$from(receiver, growable, H.getRuntimeTypeArgument(receiver, "JSArray", 0)); |
+ }, |
+ toList$0: function($receiver) { |
+ return this.toList$1$growable($receiver, true); |
+ }, |
get$iterator: function(receiver) { |
return new H.ListIterator(receiver, receiver.length, 0, null); |
}, |
@@ -412,6 +418,35 @@ JSString: {"": "String/Interceptor;", |
substring$1: function($receiver, startIndex) { |
return this.substring$2($receiver, startIndex, null); |
}, |
+ trim$0: function(receiver) { |
+ var endIndex, startIndex, codeUnit, endIndex0, endIndex1; |
+ for (endIndex = receiver.length, startIndex = 0; startIndex < endIndex;) { |
+ if (startIndex >= endIndex) |
+ H.throwExpression(new P.RangeError("value " + startIndex)); |
+ codeUnit = receiver.charCodeAt(startIndex); |
+ if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUnit)) |
+ ++startIndex; |
+ else |
+ break; |
+ } |
+ if (startIndex === endIndex) |
+ return ""; |
+ for (endIndex0 = endIndex; true; endIndex0 = endIndex1) { |
+ endIndex1 = endIndex0 - 1; |
+ if (endIndex1 < 0) |
+ H.throwExpression(new P.RangeError("value " + endIndex1)); |
+ if (endIndex1 >= endIndex) |
+ H.throwExpression(new P.RangeError("value " + endIndex1)); |
+ codeUnit = receiver.charCodeAt(endIndex1); |
+ if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUnit)) |
+ ; |
+ else |
+ break; |
+ } |
+ if (startIndex === 0 && endIndex0 === endIndex) |
+ return receiver; |
+ return receiver.substring(startIndex, endIndex0); |
+ }, |
get$isEmpty: function(receiver) { |
return receiver.length === 0; |
}, |
@@ -439,7 +474,49 @@ JSString: {"": "String/Interceptor;", |
throw H.wrapException(new P.RangeError("value " + H.S(index))); |
return receiver[index]; |
}, |
- $isString: true |
+ $isString: true, |
+ static: { |
+JSString__isWhitespace: function(codeUnit) { |
+ if (codeUnit < 256) |
+ switch (codeUnit) { |
+ case 9: |
+ case 10: |
+ case 11: |
+ case 12: |
+ case 13: |
+ case 32: |
+ case 133: |
+ case 160: |
+ return true; |
+ default: |
+ return false; |
+ } |
+ switch (codeUnit) { |
+ case 5760: |
+ case 6158: |
+ case 8192: |
+ case 8193: |
+ case 8194: |
+ case 8195: |
+ case 8196: |
+ case 8197: |
+ case 8198: |
+ case 8199: |
+ case 8200: |
+ case 8201: |
+ case 8202: |
+ case 8232: |
+ case 8233: |
+ case 8239: |
+ case 8287: |
+ case 12288: |
+ case 65279: |
+ return true; |
+ default: |
+ return false; |
+ } |
+}} |
+ |
}}], |
["_isolate_helper", "dart:_isolate_helper", , H, { |
_callInIsolate: function(isolate, $function) { |
@@ -689,8 +766,8 @@ _IsolateContext: {"": "Object;id,ports,isolateStatics<", |
return t1.$index(t1, portId); |
}, |
register$2: function(_, portId, port) { |
- var t1; |
- if (this.ports.containsKey$1(portId)) |
+ var t1 = this.ports; |
+ if (t1.containsKey$1(t1, portId)) |
throw H.wrapException(new P._ExceptionImplementation("Registry: ports must be registered only once.")); |
t1 = this.ports; |
t1.$indexSet(t1, portId, port); |
@@ -732,7 +809,12 @@ _EventLoop: {"": "Object;events,activeTimerCount", |
return t1.removeFirst$0(); |
}, |
checkOpenReceivePortsFromCommandLine$0: function() { |
- if ($globalState.rootContext != null && $globalState.isolates.containsKey$1($globalState.rootContext.id) && $globalState.fromCommandLine === true && $globalState.rootContext.ports._collection$_length === 0) |
+ if ($globalState.rootContext != null) { |
+ var t1 = $globalState.isolates; |
+ t1 = t1.containsKey$1(t1, $globalState.rootContext.id) && $globalState.fromCommandLine === true && $globalState.rootContext.ports._collection$_length === 0; |
+ } else |
+ t1 = false; |
+ if (t1) |
throw H.wrapException(new P._ExceptionImplementation("Program exited with open ReceivePorts.")); |
}, |
runIteration$0: function() { |
@@ -1010,8 +1092,7 @@ _PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited", |
return; |
t1 = this._visited; |
t1.$indexSet(t1, map, true); |
- t1 = map.get$values(map); |
- t1.forEach$1(t1, new H._PendingSendPortFinder_visitMap_closure(this)); |
+ J.forEach$1$ax(J.get$values$x(map), new H._PendingSendPortFinder_visitMap_closure(this)); |
}, |
visitSendPort$1: function(port) { |
}, |
@@ -1241,7 +1322,7 @@ _Copier: {"": "_MessageTraverser;", |
t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); |
t2 = this._visited; |
t2.$indexSet(t2, map, t1.copy_0); |
- map.forEach$1(map, new H._Copier_visitMap_closure(t1, this)); |
+ J.forEach$1$ax(map, new H._Copier_visitMap_closure(t1, this)); |
return t1.copy_0; |
} |
}, |
@@ -1270,7 +1351,7 @@ _Serializer: {"": "_MessageTraverser;", |
return ["list", id, this._serializeList$1(list)]; |
}, |
visitMap$1: function(map) { |
- var t1, copyId, id, keys; |
+ var t1, copyId, id; |
t1 = this._visited; |
copyId = t1.$index(t1, map); |
if (copyId != null) |
@@ -1279,10 +1360,8 @@ _Serializer: {"": "_MessageTraverser;", |
this._nextFreeRefId = id + 1; |
t1 = this._visited; |
t1.$indexSet(t1, map, id); |
- t1 = map.get$keys(); |
- keys = this._serializeList$1(P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "IterableBase", 0))); |
- t1 = map.get$values(map); |
- return ["map", id, keys, this._serializeList$1(t1.toList$0(t1))]; |
+ t1 = J.getInterceptor$x(map); |
+ return ["map", id, this._serializeList$1(J.toList$0$ax(t1.get$keys(map))), this._serializeList$1(J.toList$0$ax(t1.get$values(map)))]; |
}, |
_serializeList$1: function(list) { |
var len, result, t1, i, t2; |
@@ -1826,6 +1905,25 @@ convertDartClosureToJS: function(closure, arity) { |
return $function; |
}, |
+propertyTypeCastError: function(value, property) { |
+ var actualType, t1, expectedType; |
+ actualType = H.Primitives_objectTypeName(value); |
+ t1 = J.getInterceptor$asx(property); |
+ expectedType = t1.substring$2(property, 3, t1.get$length(property)); |
+ throw H.wrapException(new H.CastErrorImplementation("CastError: Casting value of type " + actualType + " to incompatible type " + expectedType)); |
+}, |
+ |
+interceptedTypeCast: function(value, property) { |
+ var t1; |
+ if (value != null) |
+ t1 = typeof value === "object" && J.getInterceptor(value)[property]; |
+ else |
+ t1 = true; |
+ if (t1) |
+ return value; |
+ H.propertyTypeCastError(value, property); |
+}, |
+ |
throwCyclicInit: function(staticName) { |
throw H.wrapException(new P.CyclicInitializationError("Cyclic initialization for static " + H.S(staticName))); |
}, |
@@ -2270,11 +2368,12 @@ ConstantMap: {"": "Object;", |
$indexSet: function(_, key, val) { |
return this._throwUnmodifiable$0(); |
}, |
- $isMap: true |
+ $isMap: true, |
+ $asMap: null |
}, |
ConstantStringMap: {"": "ConstantMap;length>,_jsObject,_keys", |
- containsKey$1: function(key) { |
+ containsKey$1: function(_, key) { |
if (typeof key !== "string") |
return false; |
if (key === "__proto__") |
@@ -2284,14 +2383,14 @@ ConstantStringMap: {"": "ConstantMap;length>,_jsObject,_keys", |
$index: function(_, key) { |
if (typeof key !== "string") |
return; |
- if (!this.containsKey$1(key)) |
+ if (!this.containsKey$1(this, key)) |
return; |
return this._jsObject[key]; |
}, |
forEach$1: function(_, f) { |
J.forEach$1$ax(this._keys, new H.ConstantStringMap_forEach_closure(this, f)); |
}, |
- get$keys: function() { |
+ get$keys: function(_) { |
var t1 = new H._ConstantMapKeyIterable(this); |
H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "ConstantStringMap", 0)]); |
return t1; |
@@ -2558,6 +2657,13 @@ BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_nam |
$isBoundClosure: true |
}, |
+CastErrorImplementation: {"": "Error;message", |
+ toString$0: function(_) { |
+ return this.message; |
+ }, |
+ $isError: true |
+}, |
+ |
applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_0", |
call$1: function(object) { |
return this.newGetTagJSFunction_0(object); |
@@ -2780,32 +2886,6 @@ MappedListIterable: {"": "ListIterable;_source,_f", |
} |
}, |
-WhereIterable: {"": "IterableBase;_iterable,_f", |
- get$iterator: function(_) { |
- var t1 = J.get$iterator$ax(this._iterable); |
- t1 = new H.WhereIterator(t1, this._f); |
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "WhereIterable", 0)]); |
- return t1; |
- }, |
- $asIterableBase: null |
-}, |
- |
-WhereIterator: {"": "Iterator;_iterator,_f", |
- _f$1: function(arg0) { |
- return this._f.call$1(arg0); |
- }, |
- moveNext$0: function() { |
- for (var t1 = this._iterator; t1.moveNext$0();) |
- if (this._f$1(t1.get$current()) === true) |
- return true; |
- return false; |
- }, |
- get$current: function() { |
- return this._iterator.get$current(); |
- }, |
- $asIterator: null |
-}, |
- |
FixedLengthListMixin: {"": "Object;"}}], |
["dart.async", "dart:async", , P, { |
_attachStackTrace: function(o, st) { |
@@ -4066,7 +4146,7 @@ _CustomizedZone: {"": "Object;parent>,_specification<,_map", |
var t1, result; |
t1 = this._map; |
result = t1.$index(t1, key); |
- if (result != null || t1.containsKey$1(key)) |
+ if (result != null || t1.containsKey$1(t1, key)) |
return result; |
t1 = this.parent; |
if (t1 != null) |
@@ -4210,7 +4290,7 @@ _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_collection$_key |
get$length: function(_) { |
return this._collection$_length; |
}, |
- get$keys: function() { |
+ get$keys: function(_) { |
var t1 = new P.HashMapKeyIterable(this); |
H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); |
return t1; |
@@ -4223,7 +4303,7 @@ _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_collection$_key |
H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), null]); |
return t2; |
}, |
- containsKey$1: function(key) { |
+ containsKey$1: function(_, key) { |
var strings, nums, rest; |
if (typeof key === "string" && key !== "__proto__") { |
strings = this._strings; |
@@ -4379,6 +4459,7 @@ _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_collection$_key |
return -1; |
}, |
$isMap: true, |
+ $asMap: null, |
static: { |
_HashMap__setTableEntry: function(table, key, value) { |
if (value == null) |
@@ -4450,7 +4531,7 @@ _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la |
get$length: function(_) { |
return this._collection$_length; |
}, |
- get$keys: function() { |
+ get$keys: function(_) { |
var t1 = new P.LinkedHashMapKeyIterable(this); |
H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0)]); |
return t1; |
@@ -4463,7 +4544,7 @@ _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la |
H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "IterableBase", 0), null]); |
return t2; |
}, |
- containsKey$1: function(key) { |
+ containsKey$1: function(_, key) { |
var strings, nums, rest; |
if (typeof key === "string" && key !== "__proto__") { |
strings = this._strings; |
@@ -4630,7 +4711,7 @@ _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la |
return -1; |
$length = bucket.length; |
for (i = 0; i < $length; ++i) |
- if (J.$eq(bucket[i].get$_key(), key)) |
+ if (J.$eq(J.get$_key$x(bucket[i]), key)) |
return i; |
return -1; |
}, |
@@ -4638,6 +4719,7 @@ _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la |
return P.Maps_mapToString(this); |
}, |
$isMap: true, |
+ $asMap: null, |
static: { |
_LinkedHashMap__newHashTable: function() { |
var table = Object.create(null); |
@@ -4665,7 +4747,7 @@ _LinkedIdentityHashMap: {"": "_LinkedHashMap;_collection$_length,_strings,_nums, |
return -1; |
$length = bucket.length; |
for (i = 0; i < $length; ++i) { |
- t1 = bucket[i].get$_key(); |
+ t1 = J.get$_key$x(bucket[i]); |
if (t1 == null ? key == null : t1 === key) |
return i; |
} |
@@ -4690,10 +4772,10 @@ _LinkedCustomHashMap: {"": "_LinkedHashMap;_equals,_hashCode,_validKey,_collecti |
return; |
return P._LinkedHashMap.prototype.$index.call(this, this, key); |
}, |
- containsKey$1: function(key) { |
+ containsKey$1: function(_, key) { |
if (this._validKey$1(key) !== true) |
return false; |
- return P._LinkedHashMap.prototype.containsKey$1.call(this, key); |
+ return P._LinkedHashMap.prototype.containsKey$1.call(this, this, key); |
}, |
remove$1: function(_, key) { |
if (this._validKey$1(key) !== true) |
@@ -4709,7 +4791,7 @@ _LinkedCustomHashMap: {"": "_LinkedHashMap;_equals,_hashCode,_validKey,_collecti |
return -1; |
$length = bucket.length; |
for (i = 0; i < $length; ++i) |
- if (this._equals$2(bucket[i].get$_key(), key) === true) |
+ if (this._equals$2(J.get$_key$x(bucket[i]), key) === true) |
return i; |
return -1; |
}, |
@@ -4732,7 +4814,7 @@ _LinkedCustomHashMap_closure: {"": "Closure;K_0", |
} |
}, |
-LinkedHashMapCell: {"": "Object;_key<,_collection$_value@,_next<,_previous<"}, |
+LinkedHashMapCell: {"": "Object;_key>,_collection$_value@,_next<,_previous<"}, |
LinkedHashMapKeyIterable: {"": "IterableBase;_collection$_map", |
get$length: function(_) { |
@@ -4819,8 +4901,6 @@ IterableBase: {"": "Object;", |
} |
}, |
-ListBase: {"": "Object+ListMixin;", $isList: true, $asList: null}, |
- |
ListMixin: {"": "Object;", |
get$iterator: function(receiver) { |
return new H.ListIterator(receiver, this.get$length(receiver), 0, null); |
@@ -4832,12 +4912,12 @@ ListMixin: {"": "Object;", |
var $length, i; |
if (typeof receiver !== "string" && (typeof receiver !== "object" || receiver === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))) |
return this.forEach$1$bailout(1, receiver, action); |
- $length = receiver.length; |
+ $length = C.JS_CONST_ZYJ(receiver); |
for (i = 0; i < $length; ++i) { |
- if (i >= receiver.length) |
+ if (i >= C.JS_CONST_ZYJ(receiver)) |
throw H.ioore(receiver, i); |
action.call$1(receiver[i]); |
- if ($length !== receiver.length) |
+ if ($length !== C.JS_CONST_ZYJ(receiver)) |
throw H.wrapException(new P.ConcurrentModificationError(receiver)); |
} |
}, |
@@ -4850,57 +4930,11 @@ ListMixin: {"": "Object;", |
throw H.wrapException(new P.ConcurrentModificationError(receiver)); |
} |
}, |
- where$1: function(receiver, test) { |
- var t1 = new H.WhereIterable(receiver, test); |
- H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0)]); |
- return t1; |
- }, |
map$1: function(receiver, f) { |
var t1 = new H.MappedListIterable(receiver, f); |
H.setRuntimeTypeInfo(t1, [null, null]); |
return t1; |
}, |
- toList$1$growable: function(receiver, growable) { |
- var result, t1, t2, i, t3; |
- if (typeof receiver !== "string" && (typeof receiver !== "object" || receiver === null || receiver.constructor !== Array && !H.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))) |
- return this.toList$1$growable$bailout(1, receiver, growable); |
- if (growable) { |
- result = P.List_List(null, H.getRuntimeTypeArgument(receiver, "ListMixin", 0)); |
- H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0)]); |
- C.JSArray_methods.set$length(result, receiver.length); |
- } else { |
- result = P.List_List(receiver.length, H.getRuntimeTypeArgument(receiver, "ListMixin", 0)); |
- H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0)]); |
- } |
- for (t1 = receiver.length, t2 = result.length, i = 0; i < t1; ++i) { |
- t3 = receiver[i]; |
- if (i >= t2) |
- throw H.ioore(result, i); |
- result[i] = t3; |
- } |
- return result; |
- }, |
- toList$1$growable$bailout: function(state0, receiver, growable) { |
- var result, i, t1; |
- if (growable) { |
- result = P.List_List(null, H.getRuntimeTypeArgument(receiver, "ListMixin", 0)); |
- H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0)]); |
- C.JSArray_methods.set$length(result, this.get$length(receiver)); |
- } else { |
- result = P.List_List(this.get$length(receiver), H.getRuntimeTypeArgument(receiver, "ListMixin", 0)); |
- H.setRuntimeTypeInfo(result, [H.getRuntimeTypeArgument(receiver, "ListMixin", 0)]); |
- } |
- for (i = 0; i < this.get$length(receiver); ++i) { |
- t1 = this.$index(receiver, i); |
- if (i >= result.length) |
- throw H.ioore(result, i); |
- result[i] = t1; |
- } |
- return result; |
- }, |
- toList$0: function($receiver) { |
- return this.toList$1$growable($receiver, true); |
- }, |
toString$0: function(receiver) { |
var result, i, t1; |
for (i = 0; i < $.get$ListMixin__toStringList().length; ++i) { |
@@ -5405,7 +5439,7 @@ Function: {"": "Object;"}, |
Iterator: {"": "Object;"}, |
-Map: {"": "Object;", $isMap: true}, |
+Map: {"": "Object;", $isMap: true, $asMap: null}, |
Null: {"": "Object;", |
toString$0: function(_) { |
@@ -5510,39 +5544,20 @@ _convertNativeToDart_Window: function(win) { |
return W._DOMWindowCrossFrame__createSafe(win); |
}, |
-_ChildrenElementList: {"": "ListBase;_element,_childElements", |
- get$length: function(_) { |
- return this._childElements.length; |
- }, |
- $index: function(_, index) { |
- var t1 = this._childElements; |
- if (index >>> 0 !== index || index >= t1.length) |
- throw H.ioore(t1, index); |
- return t1[index]; |
- }, |
- $indexSet: function(_, index, value) { |
- var t1 = this._childElements; |
- if (index >>> 0 !== index || index >= t1.length) |
- throw H.ioore(t1, index); |
- this._element.replaceChild(value, t1[index]); |
- }, |
- add$1: function(_, value) { |
- this._element.appendChild(value); |
- return value; |
- }, |
- get$iterator: function(_) { |
- var t1 = this.toList$0(this); |
- return new H.ListIterator(t1, t1.length, 0, null); |
- }, |
- $asList: function() { |
- return [W.Element]; |
- } |
+_convertNativeToDart_EventTarget: function(e) { |
+ var $window, t1; |
+ if (e == null) |
+ return; |
+ if ("setInterval" in e) { |
+ $window = W._DOMWindowCrossFrame__createSafe(e); |
+ t1 = J.getInterceptor($window); |
+ if (typeof $window === "object" && $window !== null && !!t1.$isEventTarget) |
+ return $window; |
+ return; |
+ } else |
+ return e; |
}, |
-Interceptor_ListMixin: {"": "Interceptor+ListMixin;", $isList: true, $asList: null}, |
- |
-Interceptor_ListMixin_ImmutableListMixin: {"": "Interceptor_ListMixin+ImmutableListMixin;", $asList: null, $isList: true}, |
- |
HttpRequest_getString_closure: {"": "Closure;", |
call$1: function(xhr) { |
return J.get$responseText$x(xhr); |
@@ -5587,35 +5602,17 @@ HttpRequest_request_closure0: {"": "Closure;completer_3", |
} |
}, |
-_ChildNodeListLazy: {"": "ListBase;_this", |
- $indexSet: function(_, index, value) { |
- var t1, t2; |
- t1 = this._this; |
- t2 = t1.childNodes; |
- if (index >>> 0 !== index || index >= t2.length) |
- throw H.ioore(t2, index); |
- t1.replaceChild(value, t2[index]); |
- }, |
- get$iterator: function(_) { |
- return C.NodeList_methods.get$iterator(this._this.childNodes); |
- }, |
- get$length: function(_) { |
- return this._this.childNodes.length; |
- }, |
- $index: function(_, index) { |
- var t1 = this._this.childNodes; |
- if (index >>> 0 !== index || index >= t1.length) |
- throw H.ioore(t1, index); |
- return t1[index]; |
- }, |
- $asList: function() { |
- return [W.Node]; |
+Storage_keys_closure: {"": "Closure;keys_0", |
+ call$2: function(k, v) { |
+ return this.keys_0.push(k); |
} |
}, |
-Interceptor_ListMixin0: {"": "Interceptor+ListMixin;", $isList: true, $asList: null}, |
- |
-Interceptor_ListMixin_ImmutableListMixin0: {"": "Interceptor_ListMixin0+ImmutableListMixin;", $asList: null, $isList: true}, |
+Storage_values_closure: {"": "Closure;values_0", |
+ call$2: function(k, v) { |
+ return this.values_0.push(v); |
+ } |
+}, |
_EventStream: {"": "Stream;_target,_eventType,_useCapture", |
listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone, onError) { |
@@ -5677,42 +5674,11 @@ _EventStreamSubscription__wrapZone: function(callback) { |
EventStreamProvider: {"": "Object;_eventType"}, |
-ImmutableListMixin: {"": "Object;", |
- get$iterator: function(receiver) { |
- return W.FixedSizeListIterator$(receiver); |
- }, |
- $isList: true, |
- $asList: null |
-}, |
- |
-FixedSizeListIterator: {"": "Object;_array,_html$_length,_html$_position,_html$_current", |
- moveNext$0: function() { |
- var nextPosition, t1; |
- nextPosition = this._html$_position + 1; |
- t1 = this._html$_length; |
- if (nextPosition < t1) { |
- this._html$_current = J.$index$asx(this._array, nextPosition); |
- this._html$_position = nextPosition; |
- return true; |
- } |
- this._html$_current = null; |
- this._html$_position = t1; |
- return false; |
- }, |
- get$current: function() { |
- return this._html$_current; |
- }, |
- static: { |
-FixedSizeListIterator$: function(array) { |
- return new W.FixedSizeListIterator(array, J.get$length$asx(array), -1, null); |
-}} |
- |
-}, |
- |
_DOMWindowCrossFrame: {"": "Object;_window", |
get$parent: function(_) { |
return W._DOMWindowCrossFrame__createSafe(this._window.parent); |
}, |
+ $isEventTarget: true, |
static: { |
_DOMWindowCrossFrame__createSafe: function(w) { |
if (w === window) |
@@ -5725,12 +5691,18 @@ _DOMWindowCrossFrame__createSafe: function(w) { |
HtmlElement: {"": "Element;"}, |
-AnchorElement: {"": "HtmlElement;", |
+AnchorElement: {"": "HtmlElement;target=", |
toString$0: function(receiver) { |
return receiver.toString(); |
} |
}, |
+AreaElement: {"": "HtmlElement;target="}, |
+ |
+BaseElement: {"": "HtmlElement;target="}, |
+ |
+ButtonElement: {"": "HtmlElement;disabled}"}, |
+ |
CharacterData: {"": "Node;length="}, |
DomException: {"": "Interceptor;", |
@@ -5740,16 +5712,17 @@ DomException: {"": "Interceptor;", |
}, |
Element: {"": "Node;", |
- get$children: function(receiver) { |
- return new W._ChildrenElementList(receiver, receiver.children); |
- }, |
toString$0: function(receiver) { |
return receiver.localName; |
- }, |
- $isElement: true |
+ } |
}, |
-Event: {"": "Interceptor;"}, |
+Event: {"": "Interceptor;", |
+ get$target: function(receiver) { |
+ return W._convertNativeToDart_EventTarget(receiver.target); |
+ }, |
+ $isEvent: true |
+}, |
EventTarget: {"": "Interceptor;", |
$$dom_addEventListener$3: function(receiver, type, listener, useCapture) { |
@@ -5757,35 +5730,13 @@ EventTarget: {"": "Interceptor;", |
}, |
$$dom_removeEventListener$3: function(receiver, type, listener, useCapture) { |
return receiver.removeEventListener(type, H.convertDartClosureToJS(listener, 1), useCapture); |
- } |
+ }, |
+ $isEventTarget: true |
}, |
-FormElement: {"": "HtmlElement;length="}, |
+FieldSetElement: {"": "HtmlElement;disabled}"}, |
-HtmlCollection: {"": "Interceptor_ListMixin_ImmutableListMixin;", |
- get$length: function(receiver) { |
- return receiver.length; |
- }, |
- $index: function(receiver, index) { |
- var t1 = receiver.length; |
- if (index >>> 0 !== index || index >= t1) |
- throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in range 0.." + t1)); |
- return receiver[index]; |
- }, |
- $indexSet: function(receiver, index, value) { |
- throw H.wrapException(new P.UnsupportedError("Cannot assign element of immutable List.")); |
- }, |
- elementAt$1: function(receiver, index) { |
- if (index < 0 || index >= receiver.length) |
- throw H.ioore(receiver, index); |
- return receiver[index]; |
- }, |
- $asList: function() { |
- return [W.Node]; |
- }, |
- $isList: true, |
- $isJavaScriptIndexingBehavior: true |
-}, |
+FormElement: {"": "HtmlElement;length=,target="}, |
HttpRequest: {"": "XmlHttpRequestEventTarget;responseText=", |
open$5$async$password$user: function(receiver, method, url, async, password, user) { |
@@ -5797,60 +5748,69 @@ HttpRequest: {"": "XmlHttpRequestEventTarget;responseText=", |
$isHttpRequest: true |
}, |
-InputElement: {"": "HtmlElement;", $isElement: true, $isNode: true}, |
+InputElement: {"": "HtmlElement;disabled}", $isInputElement: true, $isEventTarget: true}, |
+ |
+KeygenElement: {"": "HtmlElement;disabled}"}, |
+ |
+LinkElement: {"": "HtmlElement;disabled}"}, |
MouseEvent: {"": "UIEvent;", $isMouseEvent: true}, |
Node: {"": "EventTarget;parent:parentElement=", |
- replaceWith$1: function(receiver, otherNode) { |
- var $parent, exception; |
- try { |
- $parent = receiver.parentNode; |
- J._replaceChild$2$x($parent, otherNode, receiver); |
- } catch (exception) { |
- H.unwrapException(exception); |
- } |
- |
- return receiver; |
- }, |
toString$0: function(receiver) { |
var t1 = receiver.nodeValue; |
return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver) : t1; |
- }, |
- _replaceChild$2: function(receiver, newChild, oldChild) { |
- return receiver.replaceChild(newChild, oldChild); |
- }, |
- $isNode: true |
+ } |
}, |
-NodeList: {"": "Interceptor_ListMixin_ImmutableListMixin0;", |
- get$length: function(receiver) { |
- return receiver.length; |
+OptGroupElement: {"": "HtmlElement;disabled}"}, |
+ |
+OptionElement: {"": "HtmlElement;disabled}"}, |
+ |
+ProcessingInstruction: {"": "CharacterData;target="}, |
+ |
+ProgressEvent: {"": "Event;", $isProgressEvent: true}, |
+ |
+SelectElement: {"": "HtmlElement;disabled},length="}, |
+ |
+Storage: {"": "Interceptor;", |
+ $index: function(receiver, key) { |
+ return receiver.getItem(key); |
}, |
- $index: function(receiver, index) { |
- var t1 = receiver.length; |
- if (index >>> 0 !== index || index >= t1) |
- throw H.wrapException(new P.RangeError("value " + H.S(index) + " not in range 0.." + t1)); |
- return receiver[index]; |
+ $indexSet: function(receiver, key, value) { |
+ receiver.setItem(key, value); |
}, |
- $indexSet: function(receiver, index, value) { |
- throw H.wrapException(new P.UnsupportedError("Cannot assign element of immutable List.")); |
+ forEach$1: function(receiver, f) { |
+ var i, key; |
+ for (i = 0; true; ++i) { |
+ key = receiver.key(i); |
+ if (key == null) |
+ return; |
+ f.call$2(key, receiver.getItem(key)); |
+ } |
}, |
- elementAt$1: function(receiver, index) { |
- if (index < 0 || index >= receiver.length) |
- throw H.ioore(receiver, index); |
- return receiver[index]; |
+ get$keys: function(receiver) { |
+ var keys = []; |
+ this.forEach$1(receiver, new W.Storage_keys_closure(keys)); |
+ return keys; |
}, |
- $asList: function() { |
- return [W.Node]; |
+ get$values: function(receiver) { |
+ var values = []; |
+ this.forEach$1(receiver, new W.Storage_values_closure(values)); |
+ return values; |
}, |
- $isList: true, |
- $isJavaScriptIndexingBehavior: true |
+ get$length: function(receiver) { |
+ return receiver.length; |
+ }, |
+ $isMap: true, |
+ $asMap: function() { |
+ return [J.JSString, J.JSString]; |
+ } |
}, |
-ProgressEvent: {"": "Event;", $isProgressEvent: true}, |
+StyleElement: {"": "HtmlElement;disabled}"}, |
-SelectElement: {"": "HtmlElement;length="}, |
+TextAreaElement: {"": "HtmlElement;disabled}"}, |
UIEvent: {"": "Event;"}, |
@@ -5860,18 +5820,19 @@ Window: {"": "EventTarget;", |
}, |
toString$0: function(receiver) { |
return receiver.toString(); |
- } |
+ }, |
+ $isEventTarget: true |
}, |
XmlHttpRequestEventTarget: {"": "EventTarget;"}}], |
["dart.dom.svg", "dart:svg", , P, { |
-SvgElement: {"": "Element;", |
- get$children: function(receiver) { |
- var t1 = new P.FilteredElementList(receiver, new W._ChildNodeListLazy(receiver)); |
- H.setRuntimeTypeInfo(t1, [W.Element]); |
- return t1; |
- } |
-}}], |
+AElement: {"": "GraphicsElement;target="}, |
+ |
+GraphicsElement: {"": "SvgElement;"}, |
+ |
+StyleElement0: {"": "SvgElement;disabled}"}, |
+ |
+SvgElement: {"": "Element;"}}], |
["dart.isolate", "dart:isolate", , P, { |
_Isolate_port: function() { |
if ($.lazyPort == null) |
@@ -5880,6 +5841,17 @@ _Isolate_port: function() { |
}, |
ReceivePort: {"": "Object;", $isReceivePort: true}}], |
+["dart.math", "dart:math", , P, { |
+_Random: {"": "Object;", |
+ nextInt$1: function(max) { |
+ var t1 = J.getInterceptor$n(max); |
+ if (t1.$lt(max, 0)) |
+ throw H.wrapException(new P.ArgumentError("negative max: " + H.S(max))); |
+ if (t1.$gt(max, 4294967295)) |
+ max = 4294967295; |
+ return Math.random() * max >>> 0; |
+ } |
+}}], |
["dart.typed_data", "dart:typed_data", , P, { |
TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null}, |
@@ -5935,103 +5907,119 @@ Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", |
$isList: true, |
$isJavaScriptIndexingBehavior: true |
}}], |
-["html_common", "dart:html_common", , P, { |
-FilteredElementList: {"": "ListBase;_node,_childNodes", |
- get$_filtered: function() { |
- var t1 = this._childNodes; |
- return P.List_List$from(t1.where$1(t1, new P.FilteredElementList__filtered_closure()), true, W.Element); |
- }, |
- forEach$1: function(_, f) { |
- H.IterableMixinWorkaround_forEach(this.get$_filtered(), f); |
- }, |
- $indexSet: function(_, index, value) { |
- var t1 = this.get$_filtered(); |
- if (index >>> 0 !== index || index >= t1.length) |
- throw H.ioore(t1, index); |
- J.replaceWith$1$x(t1[index], value); |
- }, |
- add$1: function(_, value) { |
- this._childNodes._this.appendChild(value); |
- }, |
- get$length: function(_) { |
- return this.get$_filtered().length; |
- }, |
- $index: function(_, index) { |
- var t1 = this.get$_filtered(); |
- if (index >>> 0 !== index || index >= t1.length) |
- throw H.ioore(t1, index); |
- return t1[index]; |
- }, |
- get$iterator: function(_) { |
- var t1 = this.get$_filtered(); |
- return new H.ListIterator(t1, t1.length, 0, null); |
- }, |
- $asListBase: null, |
- $asList: null |
-}, |
- |
-FilteredElementList__filtered_closure: {"": "Closure;", |
- call$1: function(n) { |
- var t1 = J.getInterceptor(n); |
- return typeof n === "object" && n !== null && !!t1.$isElement; |
- } |
-}}], |
-["portmanteaux_simple.dart", "portmanteaux_simple.dart", , O, { |
+["piratebadge.dart", "piratebadge.dart", , A, { |
main: function() { |
- var t1, t2; |
- t1 = document.querySelector("#getWords"); |
- t1.toString; |
- t1 = new W._ElementEventStreamImpl(t1, C.EventStreamProvider_click._eventType, false); |
+ var inputField, t1, t2, t3; |
+ inputField = document.querySelector("#inputName"); |
+ inputField.toString; |
+ t1 = new W._ElementEventStreamImpl(inputField, C.EventStreamProvider_input._eventType, false); |
H.setRuntimeTypeInfo(t1, [null]); |
- t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStreamSubscription__wrapZone(O.makeRequest$closure), t1._useCapture); |
+ t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStreamSubscription__wrapZone(A.updateBadge$closure), t1._useCapture); |
H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); |
t2._tryResume$0(); |
- $.wordList = document.querySelector("#wordList"); |
+ t2 = document.querySelector("#generateButton"); |
+ t2.toString; |
+ t1 = new W._ElementEventStreamImpl(t2, C.EventStreamProvider_click._eventType, false); |
+ H.setRuntimeTypeInfo(t1, [null]); |
+ t3 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._EventStreamSubscription__wrapZone(A.generateBadge$closure), t1._useCapture); |
+ H.setRuntimeTypeInfo(t3, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); |
+ t3._tryResume$0(); |
+ $.genButton = t2; |
+ $.badgeNameElement = document.querySelector("#badgeName"); |
+ A.PirateName_readyThePirates().then$1(new A.main_closure(inputField)).catchError$1(new A.main_closure0()); |
+}, |
+ |
+updateBadge: function(e) { |
+ var inputName, t1, t2; |
+ inputName = H.interceptedTypeCast(J.get$target$x(e), "$isInputElement").value; |
+ A.badgeName(A.PirateName$(null, inputName)); |
+ t1 = J.trim$0$s(inputName); |
+ t2 = $.genButton; |
+ if (t1.length === 0) { |
+ J.set$disabled$x(t2, false); |
+ t2.textContent = "Generate badge"; |
+ } else { |
+ J.set$disabled$x(t2, true); |
+ t2.textContent = "Arrr! Remove the text!"; |
+ } |
}, |
-makeRequest: function(e) { |
- W.HttpRequest_getString("portmanteaux_simple.json", null, null).then$1(O.processString$closure).catchError$1(O.handleError$closure); |
+generateBadge: function(e) { |
+ A.badgeName(A.PirateName$(null, null)); |
}, |
-processString: function(jsonString) { |
- var portmanteaux, i, t1, t2; |
- portmanteaux = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver); |
- if (typeof portmanteaux !== "string" && (typeof portmanteaux !== "object" || portmanteaux === null || portmanteaux.constructor !== Array && !H.isJsIndexable(portmanteaux, portmanteaux[init.dispatchPropertyName]))) |
- return O.processString$bailout(1, portmanteaux); |
- for (i = 0; i < portmanteaux.length; ++i) { |
- t1 = J.get$children$x($.wordList); |
- t2 = document.createElement("li", null); |
- if (i >= portmanteaux.length) |
- throw H.ioore(portmanteaux, i); |
- t2.textContent = portmanteaux[i]; |
- t1.add$1(t1, t2); |
+badgeName: function(newName) { |
+ $.badgeNameElement.textContent = H.S(newName._firstName) + " the " + H.S(newName._appellation); |
+ window.localStorage.setItem("pirateName", "{ \"f\": \"" + H.S(newName._firstName) + "\", \"a\": \"" + H.S(newName._appellation) + "\" } "); |
+}, |
+ |
+pirateNameFromStorage: function() { |
+ var storedName = window.localStorage.getItem("pirateName"); |
+ if (storedName != null) |
+ return A.PirateName$fromJSON(storedName); |
+ else |
+ return; |
+}, |
+ |
+main_closure: {"": "Closure;inputField_0", |
+ call$1: function(_) { |
+ J.set$disabled$x(this.inputField_0, false); |
+ J.set$disabled$x($.genButton, false); |
+ A.badgeName(A.pirateNameFromStorage()); |
} |
}, |
-processString$bailout: function(state0, portmanteaux) { |
- var t1, i, t2, t3; |
- t1 = J.getInterceptor$asx(portmanteaux); |
- i = 0; |
- while (true) { |
- t2 = t1.get$length(portmanteaux); |
- if (typeof t2 !== "number") |
- throw H.iae(t2); |
- if (!(i < t2)) |
- break; |
- t2 = J.get$children$x($.wordList); |
- t3 = document.createElement("li", null); |
- t3.textContent = t1.$index(portmanteaux, i); |
- t2.add$1(t2, t3); |
- ++i; |
+main_closure0: {"": "Closure;", |
+ call$1: function(arrr) { |
+ H.Primitives_printString("Error initializing pirate names: " + H.S(arrr)); |
+ $.badgeNameElement.textContent = "Arrr! No names."; |
} |
}, |
-handleError: function(error) { |
- var t1, t2; |
- t1 = J.get$children$x($.wordList); |
- t2 = document.createElement("li", null); |
- t2.textContent = "Request failed."; |
- t1.add$1(t1, t2); |
+PirateName: {"": "Object;_firstName,_appellation", |
+ toString$0: function(_) { |
+ return H.S(this._firstName) + " the " + H.S(this._appellation); |
+ }, |
+ PirateName$2$appellation$firstName: function(appellation, firstName) { |
+ if (firstName == null) |
+ this._firstName = J.$index$asx($.get$PirateName_names(), $.get$PirateName_indexGen().nextInt$1(J.get$length$asx($.get$PirateName_names()))); |
+ else |
+ this._firstName = firstName; |
+ this._appellation = J.$index$asx($.get$PirateName_appellations(), $.get$PirateName_indexGen().nextInt$1(J.get$length$asx($.get$PirateName_appellations()))); |
+ }, |
+ PirateName$fromJSON$1: function(jsonString) { |
+ var storedName, t1; |
+ storedName = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver); |
+ t1 = J.getInterceptor$asx(storedName); |
+ this._firstName = t1.$index(storedName, "f"); |
+ this._appellation = t1.$index(storedName, "a"); |
+ }, |
+ static: { |
+"": "PirateName_indexGen,PirateName_names,PirateName_appellations", |
+PirateName$: function(appellation, firstName) { |
+ var t1 = new A.PirateName(null, null); |
+ t1.PirateName$2$appellation$firstName(appellation, firstName); |
+ return t1; |
+}, |
+ |
+PirateName$fromJSON: function(jsonString) { |
+ var t1 = new A.PirateName(null, null); |
+ t1.PirateName$fromJSON$1(jsonString); |
+ return t1; |
+}, |
+ |
+PirateName_readyThePirates: function() { |
+ return W.HttpRequest_getString("piratenames.json", null, null).then$1(A.PirateName__parsePirateNamesFromJSON$closure); |
+}, |
+ |
+PirateName__parsePirateNamesFromJSON: function(jsonString) { |
+ var pirateNames, t1; |
+ pirateNames = P._parseJson(jsonString, new P.JsonDecoder(null)._reviver); |
+ t1 = J.getInterceptor$asx(pirateNames); |
+ $.PirateName_names = t1.$index(pirateNames, "names"); |
+ $.PirateName_appellations = t1.$index(pirateNames, "appellations"); |
+}} |
+ |
}}, |
1], |
]); |
@@ -6067,21 +6055,21 @@ init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C |
init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); |
init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P.identical, "identical$closure"); |
init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new H.Closure$1(P.identityHashCode, "identityHashCode$closure"); |
-init.globalFunctions.main$closure = O.main$closure = new H.Closure$0(O.main, "main$closure"); |
-init.globalFunctions.makeRequest$closure = O.makeRequest$closure = new H.Closure$1(O.makeRequest, "makeRequest$closure"); |
-init.globalFunctions.processString$closure = O.processString$closure = new H.Closure$1(O.processString, "processString$closure"); |
-init.globalFunctions.handleError$closure = O.handleError$closure = new H.Closure$1(O.handleError, "handleError$closure"); |
+init.globalFunctions.main$closure = A.main$closure = new H.Closure$0(A.main, "main$closure"); |
+init.globalFunctions.updateBadge$closure = A.updateBadge$closure = new H.Closure$1(A.updateBadge, "updateBadge$closure"); |
+init.globalFunctions.generateBadge$closure = A.generateBadge$closure = new H.Closure$1(A.generateBadge, "generateBadge$closure"); |
+init.globalFunctions.PirateName__parsePirateNamesFromJSON$closure = A.PirateName__parsePirateNamesFromJSON$closure = new H.Closure$1(A.PirateName__parsePirateNamesFromJSON, "PirateName__parsePirateNamesFromJSON$closure"); |
// Runtime type support |
-J.JSInt.$isint = true; |
-J.JSInt.$isObject = true; |
-W.Node.$isObject = true; |
J.JSString.$isString = true; |
J.JSString.$isObject = true; |
+J.JSInt.$isint = true; |
+J.JSInt.$isObject = true; |
J.JSNumber.$isObject = true; |
+P.Object.$isObject = true; |
P.Duration.$isDuration = true; |
P.Duration.$isObject = true; |
-W.Element.$isObject = true; |
-P.Object.$isObject = true; |
+W.Event.$isEvent = true; |
+W.Event.$isObject = true; |
W.MouseEvent.$isEvent = true; |
W.MouseEvent.$isObject = true; |
P.Symbol.$isSymbol = true; |
@@ -6095,8 +6083,6 @@ H._IsolateContext.$isObject = true; |
J.JSArray.$isObject = true; |
P.Future.$isFuture = true; |
P.Future.$isObject = true; |
-W.Event.$isEvent = true; |
-W.Event.$isObject = true; |
P.Zone.$isZone = true; |
P.Zone.$isObject = true; |
P.ZoneDelegate.$isZoneDelegate = true; |
@@ -6111,8 +6097,6 @@ P.Function.$isFunction = true; |
P.Function.$isObject = true; |
J.JSBool.$isbool = true; |
J.JSBool.$isObject = true; |
-P.Error.$isError = true; |
-P.Error.$isObject = true; |
P.StackTrace.$isStackTrace = true; |
P.StackTrace.$isObject = true; |
P._EventSink.$is_EventSink = true; |
@@ -6192,9 +6176,11 @@ J.getInterceptor$x = function(receiver) { |
C.C_CloseToken = new H.CloseToken(); |
C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); |
C.C__DelayedDone = new P._DelayedDone(); |
+C.C__Random = new P._Random(); |
C.Duration_0 = new P.Duration(0); |
C.EventStreamProvider_click = new W.EventStreamProvider("click"); |
C.EventStreamProvider_error = new W.EventStreamProvider("error"); |
+C.EventStreamProvider_input = new W.EventStreamProvider("input"); |
C.EventStreamProvider_load = new W.EventStreamProvider("load"); |
C.HttpRequest_methods = W.HttpRequest.prototype; |
C.JSArray_methods = J.JSArray.prototype; |
@@ -6213,7 +6199,6 @@ Isolate.makeConstantList = function(list) { |
return list; |
}; |
C.List_empty = Isolate.makeConstantList([]); |
-C.NodeList_methods = W.NodeList.prototype; |
C._ZoneSpecification_eDx = new P._ZoneSpecification(P._rootHandleUncaughtError$closure, P._rootRun$closure, P._rootRunUnary$closure, P._rootRegisterCallback$closure, P._rootRegisterUnaryCallback$closure, P._rootScheduleMicrotask$closure, P._rootCreateTimer$closure, P._rootCreatePeriodicTimer$closure, P._rootFork$closure); |
C.List_empty0 = H.setRuntimeTypeInfo(Isolate.makeConstantList([]), [P.Symbol]); |
C.Map_empty = H.setRuntimeTypeInfo(new H.ConstantStringMap(0, {}, C.List_empty0), [P.Symbol, null]); |
@@ -6231,7 +6216,8 @@ $.Zone__current = C._CustomizedZone_WYN; |
$.Expando__keyCount = 0; |
$.Device__isOpera = null; |
$.Device__isWebKit = null; |
-$.wordList = null; |
+$.badgeNameElement = null; |
+$.genButton = null; |
J.$$dom_addEventListener$3$x = function(receiver, a0, a1, a2) { |
return J.getInterceptor$x(receiver).$$dom_addEventListener$3(receiver, a0, a1, a2); |
}; |
@@ -6261,17 +6247,14 @@ J.$indexSet$ax = function(receiver, a0, a1) { |
return receiver[a0] = a1; |
return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); |
}; |
-J._replaceChild$2$x = function(receiver, a0, a1) { |
- return J.getInterceptor$x(receiver)._replaceChild$2(receiver, a0, a1); |
-}; |
J.elementAt$1$ax = function(receiver, a0) { |
return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0); |
}; |
J.forEach$1$ax = function(receiver, a0) { |
return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); |
}; |
-J.get$children$x = function(receiver) { |
- return J.getInterceptor$x(receiver).get$children(receiver); |
+J.get$_key$x = function(receiver) { |
+ return J.getInterceptor$x(receiver).get$_key(receiver); |
}; |
J.get$hashCode$ = function(receiver) { |
return J.getInterceptor(receiver).get$hashCode(receiver); |
@@ -6285,18 +6268,30 @@ J.get$length$asx = function(receiver) { |
J.get$responseText$x = function(receiver) { |
return J.getInterceptor$x(receiver).get$responseText(receiver); |
}; |
+J.get$target$x = function(receiver) { |
+ return J.getInterceptor$x(receiver).get$target(receiver); |
+}; |
+J.get$values$x = function(receiver) { |
+ return J.getInterceptor$x(receiver).get$values(receiver); |
+}; |
J.map$1$ax = function(receiver, a0) { |
return J.getInterceptor$ax(receiver).map$1(receiver, a0); |
}; |
-J.replaceWith$1$x = function(receiver, a0) { |
- return J.getInterceptor$x(receiver).replaceWith$1(receiver, a0); |
-}; |
J.send$2$x = function(receiver, a0, a1) { |
return J.getInterceptor$x(receiver).send$2(receiver, a0, a1); |
}; |
+J.set$disabled$x = function(receiver, value) { |
+ return J.getInterceptor$x(receiver).set$disabled(receiver, value); |
+}; |
+J.toList$0$ax = function(receiver) { |
+ return J.getInterceptor$ax(receiver).toList$0(receiver); |
+}; |
J.toString$0 = function(receiver) { |
return J.getInterceptor(receiver).toString$0(receiver); |
}; |
+J.trim$0$s = function(receiver) { |
+ return J.getInterceptor$s(receiver).trim$0(receiver); |
+}; |
$.mapTypeToInterceptor = []; |
Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { |
return function() { return this; }(); |
@@ -6364,16 +6359,33 @@ Isolate.$lazy($, "_toStringList", "ListMixin__toStringList", "get$ListMixin__toS |
Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList", function() { |
return P.List_List(null, null); |
}); |
+Isolate.$lazy($, "indexGen", "PirateName_indexGen", "get$PirateName_indexGen", function() { |
+ return C.C__Random; |
+}); |
+Isolate.$lazy($, "names", "PirateName_names", "get$PirateName_names", function() { |
+ return []; |
+}); |
+Isolate.$lazy($, "appellations", "PirateName_appellations", "get$PirateName_appellations", function() { |
+ return []; |
+}); |
// Native classes |
-H.defineNativeMethods("DOMError|FileError|MediaError|MediaKeyError|Navigator|NavigatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList", J.Interceptor); |
+H.defineNativeMethods("DOMError|FileError|MediaError|MediaKeyError|Navigator|NavigatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedString", J.Interceptor); |
-H.defineNativeMethods("HTMLAppletElement|HTMLAreaElement|HTMLAudioElement|HTMLBRElement|HTMLBaseElement|HTMLBaseFontElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMediaElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTextAreaElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElement|HTMLVideoElement", W.HtmlElement); |
+H.defineNativeMethods("HTMLAppletElement|HTMLAudioElement|HTMLBRElement|HTMLBaseFontElement|HTMLBodyElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapElement|HTMLMarqueeElement|HTMLMediaElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElement|HTMLVideoElement", W.HtmlElement); |
H.defineNativeMethodsNonleaf("HTMLElement", W.HtmlElement); |
H.defineNativeMethods("HTMLAnchorElement", W.AnchorElement); |
-H.defineNativeMethods("CDATASection|CharacterData|Comment|ProcessingInstruction|Text", W.CharacterData); |
+H.defineNativeMethods("HTMLAreaElement", W.AreaElement); |
+ |
+H.defineNativeMethods("HTMLBaseElement", W.BaseElement); |
+ |
+H.defineNativeMethods("HTMLButtonElement", W.ButtonElement); |
+ |
+H.defineNativeMethods("CDATASection|Comment|Text", W.CharacterData); |
+ |
+H.defineNativeMethodsNonleaf("CharacterData", W.CharacterData); |
H.defineNativeMethods("DOMException", W.DomException); |
@@ -6385,26 +6397,40 @@ H.defineNativeMethodsNonleaf("Event", W.Event); |
H.defineNativeMethodsNonleaf("EventTarget", W.EventTarget); |
-H.defineNativeMethods("HTMLFormElement", W.FormElement); |
+H.defineNativeMethods("HTMLFieldSetElement", W.FieldSetElement); |
-H.defineNativeMethods("HTMLCollection|HTMLFormControlsCollection|HTMLOptionsCollection", W.HtmlCollection); |
+H.defineNativeMethods("HTMLFormElement", W.FormElement); |
H.defineNativeMethods("XMLHttpRequest", W.HttpRequest); |
H.defineNativeMethods("HTMLInputElement", W.InputElement); |
+H.defineNativeMethods("HTMLKeygenElement", W.KeygenElement); |
+ |
+H.defineNativeMethods("HTMLLinkElement", W.LinkElement); |
+ |
H.defineNativeMethods("DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|MouseWheelEvent|PointerEvent|WheelEvent", W.MouseEvent); |
H.defineNativeMethods("Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDocument|Notation|SVGDocument|ShadowRoot", W.Node); |
H.defineNativeMethodsNonleaf("Node", W.Node); |
-H.defineNativeMethods("NodeList|RadioNodeList", W.NodeList); |
+H.defineNativeMethods("HTMLOptGroupElement", W.OptGroupElement); |
+ |
+H.defineNativeMethods("HTMLOptionElement", W.OptionElement); |
+ |
+H.defineNativeMethods("ProcessingInstruction", W.ProcessingInstruction); |
H.defineNativeMethods("ProgressEvent|ResourceProgressEvent|XMLHttpRequestProgressEvent", W.ProgressEvent); |
H.defineNativeMethods("HTMLSelectElement", W.SelectElement); |
+H.defineNativeMethods("Storage", W.Storage); |
+ |
+H.defineNativeMethods("HTMLStyleElement", W.StyleElement); |
+ |
+H.defineNativeMethods("HTMLTextAreaElement", W.TextAreaElement); |
+ |
H.defineNativeMethods("CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|TextEvent|TouchEvent", W.UIEvent); |
H.defineNativeMethodsNonleaf("UIEvent", W.UIEvent); |
@@ -6413,7 +6439,17 @@ H.defineNativeMethods("DOMWindow|Window", W.Window); |
H.defineNativeMethodsNonleaf("XMLHttpRequestEventTarget", W.XmlHttpRequestEventTarget); |
-H.defineNativeMethods("SVGAElement|SVGAltGlyphDefElement|SVGAltGlyphElement|SVGAltGlyphItemElement|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTransformElement|SVGAnimationElement|SVGCircleElement|SVGClipPathElement|SVGComponentTransferFunctionElement|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGElement|SVGEllipseElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGGraphicsElement|SVGHKernElement|SVGImageElement|SVGLineElement|SVGLinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPathElement|SVGPatternElement|SVGPolygonElement|SVGPolylineElement|SVGRadialGradientElement|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTextContentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGTitleElement|SVGUseElement|SVGVKernElement|SVGViewElement", P.SvgElement); |
+H.defineNativeMethods("SVGAElement", P.AElement); |
+ |
+H.defineNativeMethods("SVGAltGlyphElement|SVGCircleElement|SVGClipPathElement|SVGDefsElement|SVGEllipseElement|SVGForeignObjectElement|SVGGElement|SVGImageElement|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolylineElement|SVGRectElement|SVGSVGElement|SVGSwitchElement|SVGTRefElement|SVGTSpanElement|SVGTextContentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGUseElement", P.GraphicsElement); |
+ |
+H.defineNativeMethodsNonleaf("SVGGraphicsElement", P.GraphicsElement); |
+ |
+H.defineNativeMethods("SVGStyleElement", P.StyleElement0); |
+ |
+H.defineNativeMethods("SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTransformElement|SVGAnimationElement|SVGComponentTransferFunctionElement|SVGCursorElement|SVGDescElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVGGlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGHKernElement|SVGLinearGradientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPatternElement|SVGRadialGradientElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGSymbolElement|SVGTitleElement|SVGVKernElement|SVGViewElement", P.SvgElement); |
+ |
+H.defineNativeMethodsNonleaf("SVGElement", P.SvgElement); |
H.defineNativeMethodsExtended("ArrayBufferView", P.TypedData, [P.TypedData_ListMixin, P.TypedData_ListMixin_FixedLengthListMixin]); |
@@ -6492,9 +6528,9 @@ Z = convertToFastObject(Z); |
init.currentScript = currentScript; |
if (typeof dartMainRunner === "function") { |
- dartMainRunner(function() { H.startRootIsolate(O.main$closure); }); |
+ dartMainRunner(function() { H.startRootIsolate(A.main$closure); }); |
} else { |
- H.startRootIsolate(O.main$closure); |
+ H.startRootIsolate(A.main$closure); |
} |
}); |
// END invoke [main]. |
@@ -6721,5 +6757,5 @@ function init() { |
} |
})() |
-//# sourceMappingURL=portmanteaux_simple.dart.js.map |
-//@ sourceMappingURL=portmanteaux_simple.dart.js.map |
+//# sourceMappingURL=piratebadge.dart.js.map |
+//@ sourceMappingURL=piratebadge.dart.js.map |