-
-
Save yeco/31c3264ad3367425aff0e04cbdb9c8eb to your computer and use it in GitHub Desktop.
Dart compiled to JavaScript & Optimized JavaScript (--optimize)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
// Simple test program invoked with an option to eagerly | |
// compile all code that is loaded in the isolate. | |
// VMOptions=--compile_all | |
class HelloDartTest { | |
static testMain() { | |
print("Hello, Darter!"); | |
} | |
} | |
main() { | |
HelloDartTest.testMain(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
function native_ArrayFactory__new(typeToken, length) { | |
return RTT.setTypeInfo( | |
new Array(length), | |
Array.$lookupRTT(RTT.getTypeInfo(typeToken).typeArgs)); | |
} | |
function native_ListFactory__new(typeToken, length) { | |
return RTT.setTypeInfo( | |
new Array(length), | |
Array.$lookupRTT(RTT.getTypeInfo(typeToken).typeArgs)); | |
} | |
function native_ObjectArray__indexOperator(index) { | |
return this[index]; | |
} | |
function native_ObjectArray__indexAssignOperator(index, value) { | |
this[index] = value; | |
} | |
function native_ObjectArray_get$length() { | |
return this.length; | |
} | |
function native_ObjectArray__setLength(length) { | |
this.length = length; | |
} | |
function native_ObjectArray__add(element) { | |
this.push(element); | |
} | |
function $inlineArrayIndexCheck(array, index) { | |
if (index >= 0 && index < array.length) { | |
return index; | |
} | |
native__ArrayJsUtil__throwIndexOutOfRangeException(index); | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
/** | |
* Extend the Boolean prototype with members expected in dart. | |
* | |
* TODO(jimhug): Add verification to ! and truth tests | |
*/ | |
Boolean.$instanceOf = function(obj) { | |
return typeof obj == 'boolean' || obj instanceof Boolean; | |
}; | |
function native_BoolImplementation_EQ(other) { | |
if (typeof other == 'boolean') { | |
return this == other; | |
} else if (other instanceof Boolean) { | |
// Must convert other to a primitive for value equality to work | |
return this == Boolean(other); | |
} else { | |
return false; | |
} | |
} | |
function native_BoolImplementation_toString() { | |
return (this == true) ? "true" : "false"; | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
/** | |
* Helpers for lazy static initialization. | |
*/ | |
var static$uninitialized = {}; | |
var static$initializing = {}; | |
// Optimized versions of closure bindings. | |
// Name convention: $bind<number-of-scopes>_<number-of-arguments>(fn, this, scopes, args) | |
function $bind0_0(fn, thisObj) { | |
return function() { | |
return fn.call(thisObj); | |
} | |
} | |
function $bind0_1(fn, thisObj) { | |
return function(arg) { | |
return fn.call(thisObj, arg); | |
} | |
} | |
function $bind0_2(fn, thisObj) { | |
return function(arg1, arg2) { | |
return fn.call(thisObj, arg1, arg2); | |
} | |
} | |
function $bind0_3(fn, thisObj) { | |
return function(arg1, arg2, arg3) { | |
return fn.call(thisObj, arg1, arg2, arg3); | |
} | |
} | |
function $bind0_4(fn, thisObj) { | |
return function(arg1, arg2, arg3, arg4) { | |
return fn.call(thisObj, arg1, arg2, arg3, arg4); | |
} | |
} | |
function $bind0_5(fn, thisObj) { | |
return function(arg1, arg2, arg3, arg4, arg5) { | |
return fn.call(thisObj, arg1, arg2, arg3, arg4, arg5); | |
} | |
} | |
function $bind1_0(fn, thisObj, scope) { | |
return function() { | |
return fn.call(thisObj, scope); | |
} | |
} | |
function $bind1_1(fn, thisObj, scope) { | |
return function(arg) { | |
return fn.call(thisObj, scope, arg); | |
} | |
} | |
function $bind1_2(fn, thisObj, scope) { | |
return function(arg1, arg2) { | |
return fn.call(thisObj, scope, arg1, arg2); | |
} | |
} | |
function $bind1_3(fn, thisObj, scope) { | |
return function(arg1, arg2, arg3) { | |
return fn.call(thisObj, scope, arg1, arg2, arg3); | |
} | |
} | |
function $bind1_4(fn, thisObj, scope) { | |
return function(arg1, arg2, arg3, arg4) { | |
return fn.call(thisObj, scope, arg1, arg2, arg3, arg4); | |
} | |
} | |
function $bind1_5(fn, thisObj, scope) { | |
return function(arg1, arg2, arg3, arg4, arg5) { | |
return fn.call(thisObj, scope, arg1, arg2, arg3, arg4, arg5); | |
} | |
} | |
function $bind2_0(fn, thisObj, scope1, scope2) { | |
return function() { | |
return fn.call(thisObj, scope1, scope2); | |
} | |
} | |
function $bind2_1(fn, thisObj, scope1, scope2) { | |
return function(arg) { | |
return fn.call(thisObj, scope1, scope2, arg); | |
} | |
} | |
function $bind2_2(fn, thisObj, scope1, scope2) { | |
return function(arg1, arg2) { | |
return fn.call(thisObj, scope1, scope2, arg1, arg2); | |
} | |
} | |
function $bind2_3(fn, thisObj, scope1, scope2) { | |
return function(arg1, arg2, arg3) { | |
return fn.call(thisObj, scope1, scope2, arg1, arg2, arg3); | |
} | |
} | |
function $bind2_4(fn, thisObj, scope1, scope2) { | |
return function(arg1, arg2, arg3, arg4) { | |
return fn.call(thisObj, scope1, scope2, arg1, arg2, arg3, arg4); | |
} | |
} | |
function $bind2_5(fn, thisObj, scope1, scope2) { | |
return function(arg1, arg2, arg3, arg4, arg5) { | |
return fn.call(thisObj, scope1, scope2, arg1, arg2, arg3, arg4, arg5); | |
} | |
} | |
function $bind3_0(fn, thisObj, scope1, scope2, scope3) { | |
return function() { | |
return fn.call(thisObj, scope1, scope2, scope3); | |
} | |
} | |
function $bind3_1(fn, thisObj, scope1, scope2, scope3) { | |
return function(arg) { | |
return fn.call(thisObj, scope1, scope2, scope3, arg); | |
} | |
} | |
function $bind3_2(fn, thisObj, scope1, scope2, scope3) { | |
return function(arg1, arg2) { | |
return fn.call(thisObj, scope1, scope2, arg1, arg2); | |
} | |
} | |
function $bind3_3(fn, thisObj, scope1, scope2, scope3) { | |
return function(arg1, arg2, arg3) { | |
return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3); | |
} | |
} | |
function $bind3_4(fn, thisObj, scope1, scope2, scope3) { | |
return function(arg1, arg2, arg3, arg4) { | |
return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3, arg4); | |
} | |
} | |
function $bind3_5(fn, thisObj, scope1, scope2, scope3) { | |
return function(arg1, arg2, arg3, arg4, arg5) { | |
return fn.call(thisObj, scope1, scope2, scope3, arg1, arg2, arg3, arg4, arg5); | |
} | |
} | |
/** | |
* Implements extends for dart classes on javascript prototypes. | |
* @param {Function} child | |
* @param {Function} parent | |
*/ | |
function $inherits(child, parent) { | |
if (child.prototype.__proto__) { | |
child.prototype.__proto__ = parent.prototype; | |
} else { | |
function tmp() {}; | |
tmp.prototype = parent.prototype; | |
child.prototype = new tmp(); | |
child.prototype.constructor = child; | |
} | |
} | |
/** | |
* @param {Function} fn | |
* @param {Object|undefined} thisObj | |
* @param {...*} var_args | |
*/ | |
function $bind(fn, thisObj, var_args) { | |
if (arguments.length > 2) { | |
var boundArgs = Array.prototype.slice.call(arguments, 2); | |
return function() { | |
// Prepend the bound arguments to the current arguments. | |
var newArgs = Array.prototype.slice.call(arguments); | |
Array.prototype.unshift.apply(newArgs, boundArgs); | |
return fn.apply(thisObj, newArgs); | |
}; | |
} else { | |
return function() { | |
return fn.apply(thisObj, arguments); | |
}; | |
} | |
} | |
/** | |
* Dart null object that should be used by JS implementation to test for | |
* Dart null. | |
* | |
* TODO(ngeoffray): update dartc to generate this variable instead of | |
* undefined. | |
* @const | |
*/ | |
var $Dart$Null = void 0; | |
function assert(expr, msg) { | |
var val = typeof(expr) == 'function' ? expr() : expr; | |
if (!val) { | |
// TODO: throw a Dart AssertionError instead | |
var err = new Error('Assertion failed. ' + (msg || '')); | |
Error.captureStackTrace && Error.captureStackTrace(err); | |
throw err; | |
} | |
} | |
// TODO(jimhug): Remove these functions after updating compiler backend. | |
function BIT_OR$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 | val2 | |
: val1.BIT_OR$operator(val2); | |
} | |
function BIT_XOR$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 ^ val2 | |
: val1.BIT_XOR$operator(val2); | |
} | |
function BIT_AND$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 & val2 | |
: val1.BIT_AND$operator(val2); | |
} | |
function BIT_NOT$operator(val) { | |
return (typeof(val) == 'number') ? ~val : val.BIT_NOT$operator(); | |
} | |
function SHL$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 << val2 | |
: val1.SHL$operator(val2); | |
} | |
function SAR$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 >> val2 | |
: val1.SAR$operator(val2); | |
} | |
function SHR$operator(val1, val2) { | |
return val1.SHR$operator(val2); | |
} | |
function ADD$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 + val2 | |
: val1.ADD$operator(val2); | |
} | |
function SUB$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 - val2 | |
: val1.SUB$operator(val2); | |
} | |
function MUL$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 * val2 | |
: val1.MUL$operator(val2); | |
} | |
function DIV$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 / val2 | |
: val1.DIV$operator(val2); | |
} | |
function MOD$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? number$euclideanModulo(val1, val2) | |
: val1.MOD$operator(val2); | |
} | |
function TRUNC$operator(val1, val2) { | |
if (typeof(val1) == 'number' && typeof(val2) == 'number') { | |
var tmp = val1 / val2; | |
return (tmp < 0) ? Math.ceil(tmp) : Math.floor(tmp); | |
} else { | |
return val1.TRUNC$operator(val2); | |
} | |
} | |
function negate$operator(val) { | |
return (typeof(val) == 'number') ? -val : val.negate$operator(); | |
} | |
function LT$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 < val2 | |
: val1.LT$operator(val2); | |
} | |
function GT$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 > val2 | |
: val1.GT$operator(val2); | |
} | |
function LTE$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 <= val2 | |
: val1.LTE$operator(val2); | |
} | |
function GTE$operator(val1, val2) { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 >= val2 | |
: val1.GTE$operator(val2); | |
} | |
/** | |
* These operators need to work correctly with undefined | |
* so must be functions. | |
*/ | |
function EQ$operator(val1, val2) { | |
if (val1 === $Dart$Null) { | |
return val2 === $Dart$Null; | |
} else { | |
return (typeof(val1) == 'number' && typeof(val2) == 'number') | |
? val1 == val2 | |
: val1.EQ$operator(val2); | |
} | |
} | |
function NE$operator(val1, val2) { | |
return !EQ$operator(val1, val2); | |
} | |
// The following operator-functions are not called from Dart-generated code, but | |
// only from handwritten JS code. | |
function INDEX$operator(obj, index) { | |
return obj.INDEX$operator(index); | |
} | |
function ASSIGN_INDEX$operator(obj, index, newVal) { | |
obj.ASSIGN_INDEX$operator(index, newVal); | |
} | |
function $Dart$ThrowException(e) { | |
// If e is not a value, we can use V8's captureStackTrace utility method. | |
if (e && (typeof e == "object") && Error.captureStackTrace) { | |
Error.captureStackTrace(e); | |
} | |
throw e; | |
} | |
function $toString(x) { | |
return native__StringJsUtil_toDartString(x); | |
} | |
// Translate a JavaScript exception to a Dart exception | |
// TODO(zundel): cross browser support. This is Chrome specific. | |
function $transformBrowserException(e) { | |
if (e instanceof TypeError) { | |
switch(e.type) { | |
case "property_not_function": | |
case "called_non_callable": | |
if (e.arguments[0] == "undefined") { | |
return native_ExceptionHelper_createNullPointerException(); | |
} | |
return native_ExceptionHelper_createObjectNotClosureException(); | |
case "non_object_property_call": | |
case "non_object_property_load": | |
return native_ExceptionHelper_createNullPointerException(); | |
case "undefined_method": | |
if (e.arguments[0] == "call" || e.arguments[0] == "apply") { | |
return native_ExceptionHelper_createObjectNotClosureException(); | |
} | |
return native_ExceptionHelper_createNoSuchMethodException( | |
"", e.arguments[0], []); | |
} | |
} | |
return e; | |
} | |
// Throws a NoSuchMethodException (used by named-parameter trampolines). | |
function $nsme() { | |
var e = native_ExceptionHelper_createNoSuchMethodException("", "", []); | |
$Dart$ThrowException(e); | |
} | |
// Throws a NoSuchMethodException (used when instantiating via a non-existent class or ctor). | |
function $nsme2(name, args) { | |
var e = native_ExceptionHelper_createNoSuchMethodException(name, name, args); | |
$Dart$ThrowException(e); | |
} | |
// Shared named-argument object used by call-sites with no named arguments. | |
/** @const */ | |
var $noargs = {count:0}; | |
// Used for invoking dart functions from js. | |
function $dartcall(fn, args) { | |
args.unshift(args.length, $noargs); | |
fn.apply(null, args); | |
} | |
// | |
// The following methods are used to create canonical constants. | |
// | |
function native_ConstHelper_getConstId(o) { | |
return $dart_const_id(o); | |
} | |
// compile time const canonicalization helpers | |
function $dart_const_id(o) { | |
if (o === $Dart$Null) return ""; | |
if (typeof o === "number") return "n" + o; | |
if (typeof o === "boolean") return "b" + ((o) ? 1 : 0); | |
if (typeof o === "string") return $dart_const_string_id(o); | |
if (typeof o === "function") throw "a function is not a constant expression"; | |
var result = o.$dartConstId; | |
if (result === undefined) { | |
throw "internal error: reference to non-canonical constant"; | |
} | |
return result; | |
} | |
// Array ids have the form: "aID,ID,ID" | |
function $dart_const_array_id(o) { | |
var ids = []; | |
for (var i=o.length-1; i>=0; i--) { | |
ids.push($dart_const_id(o[i])); | |
} | |
return "a" + ids.join(","); | |
} | |
var $CONST_MAP_PREFIX = ":" | |
// String ids have the form "sID" | |
var $string_id = 0; | |
var $string_id_cache = {}; | |
function $dart_const_string_id(s) { | |
var key = $CONST_MAP_PREFIX + s; | |
var id = $string_id_cache[key]; | |
if (!id) { | |
id = "s" + (++$string_id); | |
$string_id_cache[key] = id; | |
} | |
return id; | |
} | |
// A place to store the canonical consts | |
var $consts = {}; | |
function $isDartMap(o) { | |
return !!(o && o.$implements$Map$Dart); | |
} | |
// Intern const object "o" | |
function $intern(o, type_args) { | |
var id; | |
// Maps and arrays need special handling | |
// TODO(johnlenz): This array check may not be sufficient across iframes. | |
if (o instanceof Array) { | |
// Dart array literals are implemented as JavaScript native arrays. | |
id = $dart_const_array_id(o); | |
} else if ($isDartMap(o)) { | |
// Dart map literals are currently implemented by a non-const Dart class. | |
id = native_ConstHelper_getConstMapId(o); | |
} else { | |
id = "o" + o.$const_id(); | |
} | |
if (type_args != null) { | |
id += '<'; | |
for (var i=type_args.length-1; i >= 0; i--) { | |
id += type_args[i]; | |
id += "," | |
} | |
id += '>'; | |
} | |
var key = $CONST_MAP_PREFIX + id; | |
var match = $consts[key]; | |
if (match != null) { | |
return match; | |
} | |
o.$dartConstId = id; | |
$consts[key] = o; | |
return o; | |
} | |
function $Dart$MapLiteralFactory() { | |
return native__CoreJsUtil__newMapLiteral(); | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
// Dart core library. | |
function date$validateValue(value) { | |
if (isNaN(value)) { | |
// TODO(floitsch): Use real exception object. | |
throw Error("Invalid Date"); | |
} | |
return value; | |
} | |
function native_DateImplementation__valueFromDecomposed( | |
years, month, day, hours, minutes, seconds, milliseconds, isUtc) { | |
// JavaScript has 0-based months. | |
var jsMonth = month - 1; | |
var value = isUtc ? | |
Date.UTC(years, jsMonth, day, | |
hours, minutes, seconds, milliseconds) : | |
new Date(years, jsMonth, day, | |
hours, minutes, seconds, milliseconds).valueOf(); | |
return date$validateValue(value); | |
} | |
function native_DateImplementation__valueFromString(str) { | |
return date$validateValue(Date.parse(str)); | |
} | |
function native_DateImplementation__now() { | |
return new Date().valueOf(); | |
} | |
function date$dateFrom(dartDate, value) { | |
// Lazily keep a JS Date stored in the dart object. | |
var date = dartDate.date; | |
if (!date) { | |
date = new Date(value); | |
dartDate.date = date; | |
} | |
return date; | |
} | |
function native_DateImplementation__getYear(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
return isUtc ? date.getUTCFullYear() : date.getFullYear(); | |
} | |
function native_DateImplementation__getMonth(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
var jsMonth = isUtc ? date.getUTCMonth() : date.getMonth(); | |
// JavaScript has 0-based months. | |
return jsMonth + 1; | |
} | |
function native_DateImplementation__getDay(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
return isUtc ? date.getUTCDate() : date.getDate(); | |
} | |
function native_DateImplementation__getHours(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
return isUtc ? date.getUTCHours() : date.getHours(); | |
} | |
function native_DateImplementation__getMinutes(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
return isUtc ? date.getUTCMinutes() : date.getMinutes(); | |
} | |
function native_DateImplementation__getSeconds(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
return isUtc ? date.getUTCSeconds() : date.getSeconds(); | |
} | |
function native_DateImplementation__getMilliseconds(value, isUtc) { | |
var date = date$dateFrom(this, value); | |
return isUtc ? date.getUTCMilliseconds() : date.getMilliseconds(); | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
var isolate$current = null; | |
var isolate$rootIsolate = null; // Will only be set in the main worker. | |
var isolate$inits = []; | |
var isolate$globalThis = this; | |
// These declarations are needed to avoid errors from the Closure Compiler | |
// optimizer. They are defined in client/dom/generated/dart_dom_wrapping.js. | |
var __dom_wrap; | |
var __dom_unwrap; | |
var isolate$inWorker = | |
(typeof isolate$globalThis['importScripts']) != "undefined"; | |
var isolate$supportsWorkers = | |
isolate$inWorker || ((typeof isolate$globalThis['Worker']) != 'undefined'); | |
var isolate$MAIN_WORKER_ID = 0; | |
// Non-main workers will update the id variable. | |
var isolate$thisWorkerId = isolate$MAIN_WORKER_ID; | |
// Whether to use web workers when implementing isolates. | |
var isolate$useWorkers = isolate$supportsWorkers; | |
// Uncomment this to not use web workers even if they're available. | |
// isolate$useWorkers = false; | |
// Whether to use the web-worker JSON-based message serialization protocol, | |
// even if not using web workers. | |
var isolate$useWorkerSerializationProtocol = false; | |
// Uncomment this to always use the web-worker JSON-based message | |
// serialization protocol, e.g. for testing purposes. | |
// isolate$useWorkerSerializationProtocol = true; | |
// ------- SendPort ------- | |
function isolate$sendMessage(workerId, isolateId, receivePortId, | |
message, replyTo) { | |
// Both, the message and the replyTo are already serialized. | |
if (workerId == isolate$thisWorkerId) { | |
var isolate = isolate$isolateRegistry.get(isolateId); | |
if (!isolate) return; // Isolate has been closed. | |
var receivePort = isolate.getReceivePortForId(receivePortId); | |
if (!receivePort) return; // ReceivePort has been closed. | |
isolate$receiveMessage(receivePort, isolate, message, replyTo); | |
} else { | |
var worker; | |
if (isolate$inWorker) { | |
worker = isolate$mainWorker; | |
} else { | |
worker = isolate$workerRegistry.get(workerId); | |
} | |
worker.postMessage({ command: 'message', | |
workerId: workerId, | |
isolateId: isolateId, | |
portId: receivePortId, | |
msg: message, | |
replyTo: replyTo }); | |
} | |
} | |
function isolate$receiveMessage(port, isolate, | |
serializedMessage, serializedReplyTo) { | |
isolate$IsolateEvent.enqueue(isolate, function() { | |
var message = isolate$deserializeMessage(serializedMessage); | |
var replyTo = isolate$deserializeMessage(serializedReplyTo); | |
native_ReceivePortImpl__invokeCallback(port, message, replyTo); | |
native__IsolateJsUtil__promiseQueueProcess(); | |
}); | |
} | |
// ------- ReceivePort ------- | |
function native_ReceivePortImpl__register(id) { | |
isolate$current.registerReceivePort(id, this); | |
} | |
function native_ReceivePortImpl__unregister(id) { | |
isolate$current.unregisterReceivePort(id); | |
} | |
function native_ReceivePortImpl__currentWorkerId() { | |
return isolate$thisWorkerId; | |
} | |
function native_ReceivePortImpl__currentIsolateId() { | |
return isolate$current.id; | |
} | |
// -------- Registry --------- | |
function isolate$Registry() { | |
this.map = {}; | |
this.count = 0; | |
} | |
isolate$Registry.prototype.register = function(id, val) { | |
if (this.map[id]) { | |
throw Error("Registry: Elements must be registered only once."); | |
} | |
this.map[id] = val; | |
this.count++; | |
}; | |
isolate$Registry.prototype.unregister = function(id) { | |
if (id in this.map) { | |
delete this.map[id]; | |
this.count--; | |
} | |
}; | |
isolate$Registry.prototype.get = function(id) { | |
return this.map[id]; | |
}; | |
isolate$Registry.prototype.isEmpty = function() { | |
return this.count === 0; | |
}; | |
// ------- Worker registry ------- | |
// Only used in the main worker. | |
var isolate$workerRegistry = new isolate$Registry(); | |
// ------- Isolate registry ------- | |
// Isolates must be registered if, and only if, receive ports are alive. | |
// Normally no open receive-ports means that the isolate is dead, but | |
// DOM callbacks could resurrect it. | |
var isolate$isolateRegistry = new isolate$Registry(); | |
// ------- Debugging log function ------- | |
function isolate$log(msg) { | |
return; | |
if (isolate$inWorker) { | |
isolate$mainWorker.postMessage({ command: 'log', msg: msg }); | |
} else { | |
try { | |
isolate$globalThis.console.log(msg); | |
} catch(e) { | |
throw String(e.stack); | |
} | |
} | |
} | |
function isolate$initializeWorker(workerId) { | |
isolate$thisWorkerId = workerId; | |
} | |
var isolate$workerPrint = false; | |
if (isolate$inWorker) { | |
isolate$workerPrint = function(msg){ | |
isolate$mainWorker.postMessage({ command: 'print', msg: msg }); | |
} | |
} | |
// ------- Message handler ------- | |
function isolate$processWorkerMessage(sender, e) { | |
var msg = e.data; | |
switch (msg.command) { | |
case 'start': | |
isolate$log("starting worker: " + msg.id + " " + msg.factoryName); | |
isolate$initializeWorker(msg.id); | |
var runnerObject = (isolate$globalThis[msg.factoryName])(); | |
var serializedReplyTo = msg.replyTo; | |
isolate$IsolateEvent.enqueue(new isolate$Isolate(), function() { | |
var replyTo = isolate$deserializeMessage(serializedReplyTo); | |
native__IsolateJsUtil__startIsolate(runnerObject, replyTo); | |
}); | |
isolate$runEventLoop(); | |
break; | |
case 'spawn-worker': | |
isolate$spawnWorker(msg.factoryName, msg.replyPort); | |
break; | |
case 'message': | |
isolate$sendMessage(msg.workerId, msg.isolateId, msg.portId, | |
msg.msg, msg.replyTo); | |
isolate$runEventLoop(); | |
break; | |
case 'close': | |
isolate$log("Closing Worker"); | |
isolate$workerRegistry.unregister(sender.id); | |
sender.terminate(); | |
isolate$runEventLoop(); | |
break; | |
case 'log': | |
isolate$log(msg.msg); | |
break; | |
case 'print': | |
native__IsolateJsUtil__print(msg.msg); | |
break; | |
case 'error': | |
throw msg.msg; | |
break; | |
} | |
} | |
if (isolate$supportsWorkers) { | |
isolate$globalThis.onmessage = function(e) { | |
isolate$processWorkerMessage(isolate$mainWorker, e); | |
}; | |
} | |
// ------- Default Worker ------- | |
function isolate$MainWorker() { | |
this.id = isolate$MAIN_WORKER_ID; | |
} | |
var isolate$mainWorker = new isolate$MainWorker(); | |
isolate$mainWorker.postMessage = function(msg) { | |
isolate$globalThis.postMessage(msg); | |
}; | |
var isolate$nextFreeIsolateId = 1; | |
// Native methods for isolate functionality. | |
/** | |
* @constructor | |
*/ | |
function isolate$Isolate() { | |
// The isolate ids is only unique within the current worker and frame. | |
this.id = isolate$nextFreeIsolateId++; | |
// When storing information on DOM nodes the isolate's id is not enough. | |
// We instead use a token with a hashcode. The token can be stored in the | |
// DOM node (since it is small and will not keep much data alive). | |
this.token = new Object(); | |
this.token.hashCode = (Math.random() * 0xFFFFFFF) >>> 0; | |
this.receivePorts = new isolate$Registry(); | |
this.run(function() { | |
// The Dart-to-JavaScript compiler builds a list of functions that | |
// need to run for each isolate to setup the state of static | |
// variables. Run through the list and execute each function. | |
for (var i = 0, len = isolate$inits.length; i < len; i++) { | |
isolate$inits[i](); | |
} | |
}); | |
} | |
// It is allowed to stack 'run' calls. The stacked isolates can be different. | |
// That is Isolate1.run could call the DOM which then calls Isolate2.run. | |
isolate$Isolate.prototype.run = function(code) { | |
var old = isolate$current; | |
isolate$current = this; | |
var result = null; | |
try { | |
result = code(); | |
} finally { | |
isolate$current = old; | |
} | |
return result; | |
}; | |
isolate$Isolate.prototype.registerReceivePort = function(id, port) { | |
if (this.receivePorts.isEmpty()) { | |
isolate$isolateRegistry.register(this.id, this); | |
} | |
this.receivePorts.register(id, port); | |
}; | |
isolate$Isolate.prototype.unregisterReceivePort = function(id) { | |
this.receivePorts.unregister(id); | |
if (this.receivePorts.isEmpty()) { | |
isolate$isolateRegistry.unregister(this.id); | |
} | |
}; | |
isolate$Isolate.prototype.getReceivePortForId = function(id) { | |
return this.receivePorts.get(id); | |
}; | |
var isolate$events = []; | |
/** | |
* @constructor | |
*/ | |
function isolate$IsolateEvent(isolate, fn) { | |
this.isolate = isolate; | |
this.fn = fn; | |
} | |
isolate$IsolateEvent.prototype.process = function() { | |
this.isolate.run(this.fn); | |
}; | |
isolate$IsolateEvent.enqueue = function(isolate, fn) { | |
isolate$events.push(new isolate$IsolateEvent(isolate, fn)); | |
}; | |
isolate$IsolateEvent.dequeue = function() { | |
if (isolate$events.length == 0) return $Dart$Null; | |
var result = isolate$events[0]; | |
isolate$events.splice(0, 1); | |
return result; | |
}; | |
function native_IsolateNatives__spawn(runnable, light, replyPort) { | |
// TODO(floitsch): throw exception if runnable's class doesn't have a | |
// default constructor. | |
if (isolate$useWorkers && !light) { | |
isolate$startWorker(runnable, replyPort); | |
} else { | |
isolate$startNonWorker(runnable, replyPort); | |
} | |
} | |
function native_IsolateNatives_bind(fn) { | |
var isolate = isolate$current; | |
return function() { | |
var self = this; | |
var args = arguments; | |
isolate.run(function() { | |
fn.apply(self, args); | |
}); | |
isolate$runEventLoop(); | |
}; | |
} | |
function isolate$startNonWorker(runnable, replyTo) { | |
// Spawn a new isolate and create the receive port in it. | |
var spawned = new isolate$Isolate(); | |
// Instead of just running the provided runnable, we create a | |
// new cloned instance of it with a fresh state in the spawned | |
// isolate. This way, we do not get cross-isolate references | |
// through the runnable. | |
var factory = runnable.getIsolateFactory(); | |
isolate$IsolateEvent.enqueue(spawned, function() { | |
native__IsolateJsUtil__startIsolate(factory(), replyTo); | |
}); | |
} | |
// This field is only used by the main worker. | |
var isolate$nextFreeWorkerId = isolate$thisWorkerId + 1; | |
var isolate$thisScript = function() { | |
if (!isolate$supportsWorkers || isolate$inWorker) return null; | |
// TODO(5334778): Find a cross-platform non-brittle way of getting the | |
// currently running script. | |
var scripts = document.getElementsByTagName('script'); | |
// The scripts variable only contains the scripts that have already been | |
// executed. The last one is the currently running script. | |
var script = scripts[scripts.length - 1]; | |
var src = script.src; | |
if (!src) { | |
// TODO() | |
src = "FIXME:5407062" + "_" + Math.random().toString(); | |
script.src = src; | |
} | |
return src; | |
}(); | |
function isolate$startWorker(runnable, replyPort) { | |
var factory = runnable.getIsolateFactory(); | |
var factoryName = factory.name; | |
var serializedReplyPort = isolate$serializeMessage(replyPort); | |
if (isolate$inWorker) { | |
isolate$mainWorker.postMessage({ command: 'spawn-worker', | |
factoryName: factoryName, | |
replyPort: serializedReplyPort } ); | |
} else { | |
isolate$spawnWorker(factoryName, serializedReplyPort); | |
} | |
} | |
function isolate$spawnWorker(factoryName, serializedReplyPort) { | |
var worker = new Worker(isolate$thisScript); | |
worker.onmessage = function(e) { | |
isolate$processWorkerMessage(worker, e); | |
}; | |
var workerId = isolate$nextFreeWorkerId++; | |
// We also store the id on the worker itself so that we can unregister it. | |
worker.id = workerId; | |
isolate$workerRegistry.register(workerId, worker); | |
worker.postMessage({ command: 'start', | |
id: workerId, | |
replyTo: serializedReplyPort, | |
factoryName: factoryName }); | |
} | |
function native_SendPortImpl__sendNow(message, replyTo) { | |
if (replyTo !== $Dart$Null && !(replyTo instanceof SendPortImpl$Dart)) { | |
throw "SendPort::send: Illegal replyTo type."; | |
} | |
message = isolate$serializeMessage(message); | |
replyTo = isolate$serializeMessage(replyTo); | |
var workerId = native_SendPortImpl__getWorkerId(this); | |
var isolateId = native_SendPortImpl__getIsolateId(this); | |
var receivePortId = native_SendPortImpl__getReceivePortId(this); | |
isolate$sendMessage(workerId, isolateId, receivePortId, message, replyTo); | |
} | |
function isolate$closeWorkerIfNecessary() { | |
if (!isolate$isolateRegistry.isEmpty()) return; | |
isolate$mainWorker.postMessage( { command: 'close' } ); | |
} | |
function isolate$doOneEventLoopIteration() { | |
var CONTINUE_LOOP = true; | |
var STOP_LOOP = false; | |
var event = isolate$IsolateEvent.dequeue(); | |
if (!event) { | |
if (isolate$inWorker) { | |
isolate$closeWorkerIfNecessary(); | |
} else if (!isolate$isolateRegistry.isEmpty() && | |
isolate$workerRegistry.isEmpty() && | |
!isolate$supportsWorkers && (typeof(window) == 'undefined')) { | |
// This should only trigger when running on the command-line. | |
// We don't want this check to execute in the browser where the isolate | |
// might still be alive due to DOM callbacks. | |
// throw Error("Program exited with open ReceivePorts."); | |
} | |
return STOP_LOOP; | |
} else { | |
event.process(); | |
return CONTINUE_LOOP; | |
} | |
} | |
function isolate$doRunEventLoop() { | |
if (typeof window != 'undefined' && window.setTimeout) { | |
(function next() { | |
var continueLoop = isolate$doOneEventLoopIteration(); | |
if (!continueLoop) return; | |
// TODO(kasperl): It might turn out to be too expensive to call | |
// setTimeout for every single event. This needs more investigation. | |
window.setTimeout(next, 0); | |
})(); | |
} else { | |
while (true) { | |
var continueLoop = isolate$doOneEventLoopIteration(); | |
if (!continueLoop) break; | |
} | |
} | |
} | |
function isolate$runEventLoop() { | |
if (!isolate$inWorker) { | |
isolate$doRunEventLoop(); | |
} else { | |
try { | |
isolate$doRunEventLoop(); | |
} catch(e) { | |
// TODO(floitsch): try to send stack-trace to the other side. | |
isolate$mainWorker.postMessage({ command: 'error', msg: "" + e }); | |
} | |
} | |
} | |
function RunEntry(entry, args) { | |
// Don't start the main loop again, if we are in a worker. | |
if (isolate$inWorker) return; | |
var isolate = new isolate$Isolate(); | |
isolate$rootIsolate = isolate; | |
isolate$IsolateEvent.enqueue(isolate, function() { | |
entry(args); | |
}); | |
isolate$runEventLoop(); | |
// BUG(5151491): This should not be necessary, but because closures | |
// passed to the DOM as event handlers do not bind their isolate | |
// automatically we try to give them a reasonable context to live in | |
// by having a "default" isolate (the first one created). | |
isolate$current = isolate; | |
} | |
// ------- Message Serializing and Deserializing ------- | |
function native_MessageTraverser__clearAttachedInfo(o) { | |
o['__MessageTraverser__attached_info__'] = (void 0); | |
} | |
function native_MessageTraverser__setAttachedInfo(o, info) { | |
o['__MessageTraverser__attached_info__'] = info; | |
} | |
function native_MessageTraverser__getAttachedInfo(o) { | |
return o['__MessageTraverser__attached_info__']; | |
} | |
function native_Serializer__newJsArray(len) { | |
return new Array(len); | |
} | |
function native_Serializer__jsArrayIndexSet(jsArray, index, val) { | |
jsArray[index] = val; | |
} | |
function native_Serializer__dartListToJsArrayNoCopy(list) { | |
if (list instanceof Array) { | |
RTT.removeTypeInfo(list); | |
return list; | |
} else { | |
var len = native__ArrayJsUtil__arrayLength(list); | |
var array = new Array(len); | |
for (var i = 0; i < len; i++) { | |
array[i] = INDEX$operator(list, i); | |
} | |
return array; | |
} | |
} | |
function native_Deserializer__isJsArray(x) { | |
return x instanceof Array; | |
} | |
function native_Deserializer__jsArrayIndex(x, index) { | |
return x[index]; | |
} | |
function native_Deserializer__jsArrayLength(x) { | |
return x.length; | |
} | |
function isolate$serializeMessage(message) { | |
if (isolate$useWorkers || isolate$useWorkerSerializationProtocol) { | |
return native__IsolateJsUtil__serializeObject(message); | |
} else { | |
return native__IsolateJsUtil__copyObject(message); | |
} | |
} | |
function isolate$deserializeMessage(message) { | |
if (isolate$useWorkers || isolate$useWorkerSerializationProtocol) { | |
return native__IsolateJsUtil__deserializeMessage(message); | |
} else { | |
// Nothing more to do. | |
return message; | |
} | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
// Native methods for Math. | |
var native_Math_ceil = Math.ceil; | |
var native_Math_floor = Math.floor; | |
var native_Math_max = Math.max; | |
var native_Math_min = Math.min; | |
var native_Math_round = Math.round; | |
// A valid integer-string is composed of: | |
// optional whitespace: \s* | |
// an optional sign: [+-]? | |
// either digits (at least one): \d+ | |
// or a hex-literal: 0[xX][0-9abcdefABCDEF]+ | |
// optional whitespace: \s* | |
var math$INT_REGEXP = | |
/^\s*[+-]?(:?\d+|0[xX][0-9abcdefABCDEF]+)\s*$/; | |
// A valid double-string is composed of: | |
// optional whitespace: \s* | |
// an optional sign: [+-]? | |
// either: | |
// digits* . digits+ exponent? | |
// digits+ exponent | |
// Infinity | |
// NaN | |
// optional whitespace: \s* | |
var math$DOUBLE_REGEXP = | |
/^\s*[+-]?((\d*\.\d+([eE][+-]?\d+)?)|(\d+([eE][+-]?\d+))|Infinity|NaN)\s*$/; | |
function native_MathNatives_parseDouble(str) { | |
if (math$INT_REGEXP.test(str) || math$DOUBLE_REGEXP.test(str)) return +str; | |
throw native_MathNatives__newBadNumberFormat(str); | |
} | |
function native_MathNatives_parseInt(str) { | |
if (math$INT_REGEXP.test(str)) return +str; | |
throw native_MathNatives__newBadNumberFormat(str); | |
} | |
function native_MathNatives_random() { return Math.random(); } | |
function native_MathNatives_sin(x) { return Math.sin(x); } | |
function native_MathNatives_cos(x) { return Math.cos(x); } | |
function native_MathNatives_tan(x) { return Math.tan(x); } | |
function native_MathNatives_asin(x) { return Math.asin(x); } | |
function native_MathNatives_acos(x) { return Math.acos(x); } | |
function native_MathNatives_atan(x) { return Math.atan(x); } | |
function native_MathNatives_atan2(x, y) { return Math.atan2(x, y); } | |
function native_MathNatives_sqrt(x) { return Math.sqrt(x); } | |
function native_MathNatives_exp(x) { return Math.exp(x); } | |
function native_MathNatives_log(x) { return Math.log(x); } | |
function native_MathNatives_pow(x, y) { return Math.pow(x, y); } | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
/** | |
* Extend the Number prototype with members expected in dart. | |
* | |
* TODO(jimhug): Figure out how to map dart's number hierarchy to Number. | |
*/ | |
Number.$instanceOf = function(obj) { | |
return typeof obj == 'number' || obj instanceof Number; | |
}; | |
function native_NumberImplementation_BIT_OR(other) { | |
return this | other; | |
} | |
function native_NumberImplementation_BIT_XOR(other) { | |
return this ^ other; | |
} | |
function native_NumberImplementation_BIT_AND(other) { | |
return this & other; | |
} | |
function native_NumberImplementation_SHL(other) { | |
return this << other; | |
} | |
function native_NumberImplementation_SAR(other) { | |
return this >> other; | |
} | |
function native_NumberImplementation_ADD(other) { | |
return this + other; | |
} | |
function native_NumberImplementation_SUB(other) { | |
return this - other; | |
} | |
function native_NumberImplementation_MUL(other) { | |
return this * other; | |
} | |
function native_NumberImplementation_DIV(other) { | |
return this / other; | |
} | |
function native_NumberImplementation_TRUNC(other) { | |
var tmp = this / other; | |
if (tmp < 0) { | |
return Math.ceil(tmp); | |
} else { | |
return Math.floor(tmp); | |
} | |
} | |
function number$euclideanModulo(a, b) { | |
var result = a % b; | |
if (result == 0) { | |
return 0; // Make sure we don't return -0.0. | |
} else if (result < 0) { | |
if (b < 0) { | |
return result - b; | |
} else { | |
return result + b; | |
} | |
} | |
return result; | |
} | |
function native_NumberImplementation_MOD(other) { | |
return number$euclideanModulo(this, other); | |
} | |
function native_NumberImplementation_LT(other) { | |
return this < other; | |
} | |
function native_NumberImplementation_GT(other) { | |
return this > other; | |
} | |
function native_NumberImplementation_LTE(other) { | |
return this <= other; | |
} | |
function native_NumberImplementation_GTE(other) { | |
return this >= other; | |
} | |
function native_NumberImplementation_EQ(other) { | |
if (typeof other == 'number') { | |
return this == other; | |
} else if (other instanceof Number) { | |
// Must convert other to a primitive for value equality to work | |
return this == Number(other); | |
} else { | |
return false; | |
} | |
} | |
function native_NumberImplementation_BIT_NOT() { | |
return ~this; | |
} | |
function native_NumberImplementation_negate() { return -this; } | |
function native_NumberImplementation_remainder(other) { | |
return this % other; | |
} | |
function native_NumberImplementation_abs() { return Math.abs(this); } | |
function native_NumberImplementation_round() { return Math.round(this); } | |
function native_NumberImplementation_floor() { return Math.floor(this); } | |
function native_NumberImplementation_ceil() { return Math.ceil(this); } | |
function native_NumberImplementation_truncate() { | |
return (this < 0) ? Math.ceil(this) : Math.floor(this); | |
} | |
function native_NumberImplementation_isNegative() { | |
// TODO(floitsch): is there a faster way to detect -0? | |
if (this == 0) return (1 / this) < 0; | |
return this < 0; | |
} | |
function native_NumberImplementation_isEven() { return ((this & 1) == 0); } | |
function native_NumberImplementation_isOdd() { return ((this & 1) == 1); } | |
function native_NumberImplementation_isNaN() { return isNaN(this); } | |
function native_NumberImplementation_isInfinite() { | |
return (this == Infinity) || (this == -Infinity); | |
} | |
function native_NumberImplementation_toString() { | |
return this.toString(); | |
} | |
function native_NumberImplementation_toStringAsFixed(fractionDigits) { | |
return this.toFixed(fractionDigits); | |
} | |
function native_NumberImplementation_toStringAsPrecision(precision) { | |
return this.toPrecision(precision); | |
} | |
function native_NumberImplementation_toStringAsExponential(fractionDigits) { | |
return this.toExponential(fractionDigits); | |
} | |
function native_NumberImplementation_toRadixString(radix) { | |
return this.toString(radix); | |
} | |
function native_NumberImplementation_hashCode() { | |
return this & 0xFFFFFFF; | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
Object.$instanceOf = function(obj) { | |
return true; | |
}; | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
function native__Logger__printString(str) { | |
if (isolate$workerPrint) { | |
isolate$workerPrint(str); | |
} else if (this.console) { | |
this.console.log(str); | |
} else if (this.write) { | |
this.write(str); | |
this.write('\n'); | |
} | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
function native_JSSyntaxRegExp_firstMatch(str) { | |
var re = $DartRegExpToJSRegExp(this); | |
var m = re.exec(str); | |
if (m != null) { | |
var match = native_JSSyntaxMatch__new(this, str); | |
match.match_ = m; | |
match.lastIndex_ = re.lastIndex; | |
return match; | |
} | |
return $Dart$Null; | |
} | |
function native_JSSyntaxRegExp_hasMatch(str) { | |
return $DartRegExpToJSRegExp(this).test(str); | |
} | |
function native_JSSyntaxRegExp_stringMatch(str) { | |
var m = $DartRegExpToJSRegExp(this).exec(str); | |
return (m != null ? m[0] : $Dart$Null); | |
} | |
function native_JSSyntaxMatch_group(nb) { | |
return this.match_[nb]; | |
} | |
function native_JSSyntaxMatch_groupCount() { | |
return this.match_.length; | |
} | |
function native_JSSyntaxMatch_start() { | |
return this.match_.index; | |
} | |
function native_JSSyntaxMatch_end() { | |
return this.lastIndex_; | |
} | |
function native__LazyAllMatchesIterator__jsInit(regExp) { | |
this.re = $DartRegExpToJSRegExp(regExp); | |
} | |
// The given RegExp is only used to initialize a new Match. We use the | |
// cached JS regexp to compute the next match. | |
function native__LazyAllMatchesIterator__computeNextMatch(regExp, str) { | |
var re = this.re; | |
if (re === null) return $Dart$Null; | |
var m = re.exec(str); | |
if (m == null) { | |
this.re = null; | |
return $Dart$Null; | |
} | |
var match = native_JSSyntaxMatch__new(regExp, str); | |
match.match_ = m; | |
match.lastIndex_ = re.lastIndex; | |
return match; | |
} | |
function $DartRegExpToJSRegExp(exp) { | |
var flags = "g"; | |
if (native_JSSyntaxRegExp__multiLine(exp)) flags += "m"; | |
if (native_JSSyntaxRegExp__ignoreCase(exp)) flags += "i"; | |
return new RegExp(native_JSSyntaxRegExp__pattern(exp), flags); | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
// The following methods are used to handle type information | |
// | |
/** | |
* @constructor | |
* @param {string} classkey | |
* @param {string=} typekey | |
* @param {Array.<RTT>=} typeargs | |
*/ | |
function RTT(classkey, typekey, typeargs) { | |
this.classKey = classkey; | |
this.typeKey = typekey ? typekey : classkey; | |
this.typeArgs = typeargs; | |
this.implementedTypes = {}; | |
// Add self | |
this.implementedTypes[classkey] = this; | |
// Add Object | |
if (classkey != $cls('Object')) { | |
this.implementedTypes[$cls('Object')] = RTT.objectType; | |
} | |
} | |
/** @type {Object.<string, Object>} */ | |
RTT.types = {}; | |
/** @type {Array.<RTT>} */ | |
RTT.prototype.derivedTypes = []; | |
/** @return {string} */ | |
RTT.prototype.toString = function() { return this.typeKey; } | |
/** | |
* @param {*} value | |
* @return {boolean} Whether this type is implemented by the value | |
*/ | |
RTT.prototype.implementedBy = function(value){ | |
return (value == null) ? RTT.nullInstanceOf(this) : | |
this.implementedByType(RTT.getTypeInfo(value)); | |
}; | |
/** | |
* A helper function for safely looking up a value | |
* in a Object used as a map. | |
* @param {Object.<*>} map | |
* @param {srting} key | |
* @return {*} the value or null; | |
*/ | |
function $mapLookup(map, key) { | |
return map.hasOwnProperty(key) ? map[key] : null; | |
} | |
/** | |
* @param {!RTT} other | |
* @return {boolean} Whether this type is implement by other | |
*/ | |
RTT.prototype.implementedByType = function(otherType) { | |
if (otherType === this || otherType === RTT.dynamicType) { | |
return true; | |
} | |
var targetTypeInfo = $mapLookup(otherType.implementedTypes, this.classKey); | |
if (targetTypeInfo == null) { | |
return false; | |
} | |
if (targetTypeInfo.typeArgs && this.typeArgs) { | |
for(var i = this.typeArgs.length - 1; i >= 0; i--) { | |
if (!this.typeArgs[i].implementedByType(targetTypeInfo.typeArgs[i])) { | |
return false; | |
} | |
} | |
} | |
return true; | |
}; | |
/** | |
* @return {string} the class name associated with this type | |
*/ | |
RTT.prototype.getClassName = function() { | |
var name = this.classKey; | |
if (name.substr(0, 4) == "cls:") { | |
name = name.substr(4); | |
} | |
if (name.substr(-5) == "$Dart") { | |
name = name.substr(0, name.length - 5); | |
} | |
return name; | |
} | |
/** | |
* @param {RTT} | |
* @return {boolean} | |
*/ | |
RTT.nullInstanceOf = function(type) { | |
return type === RTT.objectType || type === RTT.dynamicType; | |
}; | |
/** | |
* @param {*} value The value to retrieve type information for | |
* @return {RTT} | |
*/ | |
RTT.getNativeTypeInfo = function(value) { | |
if (value instanceof Array) return Array.$lookupRTT(); | |
switch (typeof value) { | |
case 'string': return String.$lookupRTT(); | |
case 'number': return Number.$lookupRTT(); | |
case 'boolean': return Boolean.$lookupRTT(); | |
} | |
return RTT.placeholderType; | |
}; | |
/** | |
* @param {string} name | |
* @param {function(RTT,Array.<RTT>)=} implementsSupplier | |
* @param {Array.<RTT>=} typeArgs | |
* @return {RTT} The RTT information object | |
*/ | |
RTT.create = function(name, implementsSupplier, typeArgs) { | |
if (name == $cls("Object")) return RTT.objectType; | |
var typekey = RTT.getTypeKey(name, typeArgs); | |
var rtt = $mapLookup(RTT.types, typekey); | |
if (rtt) { | |
return rtt; | |
} | |
var classkey = RTT.getTypeKey(name); | |
rtt = new RTT(classkey, typekey, typeArgs); | |
RTT.types[typekey] = rtt; | |
if (implementsSupplier) { | |
implementsSupplier(rtt, typeArgs); | |
} | |
return rtt; | |
}; | |
/** | |
* @param {string} classkey | |
* @param {Array.<(RTT|string)>=} typeargs | |
* @return {string} | |
*/ | |
RTT.getTypeKey = function(classkey, typeargs) { | |
var key = classkey; | |
if (typeargs) { | |
key += "<" + typeargs.join(",") + ">"; | |
} | |
return key; | |
}; | |
/** | |
* @return {*} value | |
* @return {RTT} return the RTT information object for the value | |
*/ | |
RTT.getTypeInfo = function(value) { | |
return (value.$typeInfo) ? value.$typeInfo : RTT.getNativeTypeInfo(value); | |
}; | |
/** | |
* @param {Object} o | |
* @param {RTT} rtt | |
* Sets the RTT on the object and returns the object itself. | |
*/ | |
RTT.setTypeInfo = function(o, rtt) { | |
o.$typeInfo = rtt; | |
return o; | |
}; | |
/** | |
* @param {Object} o | |
* Removes any RTT from the object and returns the object itself. | |
*/ | |
RTT.removeTypeInfo = function(o) { | |
o.$typeInfo = null; | |
return o; | |
}; | |
/** | |
* The typeArg array is optional | |
* @param {Array.<RTT>=} typeArgs | |
* @param {number} i | |
* @return {RTT} | |
*/ | |
RTT.getTypeArg = function(typeArgs, i) { | |
if (typeArgs) { | |
if (typeArgs.length > i) { | |
return typeArgs[i]; | |
} else { | |
throw new Error("Missing type arg"); | |
} | |
} | |
return RTT.dynamicType; | |
}; | |
/** | |
* The typeArg array is optional | |
* @param {*} o | |
* @param {string} classkey | |
* @return {Array.<RTT>} | |
*/ | |
RTT.getTypeArgsFor = function(o, classkey) { | |
var rtt = $mapLookup(RTT.getTypeInfo(o).implementedTypes, classkey); | |
if (!rtt) { | |
throw new Error("internal error: can not find " + | |
classkey + " in " + JSON.stringify(o)); | |
} | |
return rtt.typeArgs; | |
}; | |
// Base types for runtime type information | |
/** @type {!RTT} */ | |
RTT.objectType = new RTT($cls('Object')); | |
RTT.objectType.implementedBy = function(o) {return true}; | |
RTT.objectType.implementedByType = function(o) {return true}; | |
/** @type {!RTT} */ | |
RTT.dynamicType = new RTT($cls('Dynamic')); | |
RTT.dynamicType.implementedBy = function(o) {return true}; | |
RTT.dynamicType.implementedByType = function(o) {return true}; | |
/** @type {!RTT} */ | |
RTT.placeholderType = new RTT($cls('::')); | |
RTT.placeholderType.implementedBy = function(o) {return true}; | |
RTT.placeholderType.implementedByType = function(o) {return true}; | |
/** | |
* Checks that a value is assignable to an expected type, and either returns that | |
* value if it is, or else throws a TypeMismatchException. | |
* | |
* @param {!RTT} the expected type | |
* @param {*} the value to check | |
* @return {*} the value | |
*/ | |
function $chk(rtt, value) { | |
// null can be assigned to any type | |
if (value == $Dart$Null || rtt.implementedBy(value)) { | |
return value; | |
} | |
$te(rtt, value); | |
} | |
/** | |
* Throw a TypeError. See core.dart for the ExceptionHelper class. | |
* | |
* @param {!RTT} the expected type | |
* @param {*) the value that failed | |
*/ | |
function $te(rtt, value) { | |
var srcType = RTT.getTypeInfo(value).getClassName(); | |
var dstType = rtt.getClassName(); | |
var e = native_ExceptionHelper_createTypeError(srcType, dstType); | |
$Dart$ThrowException(e); | |
} | |
// Setup the Function object | |
Function.prototype.$implements$Function$Dart = 1; | |
RTT.setTypeInfo(Function.prototype, RTT.create($cls('Function$Dart'))); | |
/** | |
* @param {string} cls | |
* @return {string} | |
* @consistentIdGenerator | |
*/ | |
function $cls(cls) { | |
return "cls:" + cls; | |
} | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
/** | |
* Extend the String prototype with members expected in dart. | |
*/ | |
String.$instanceOf = function(obj) { | |
return typeof obj == 'string' || obj instanceof String; | |
}; | |
function native_StringImplementation__indexOperator(index) { | |
return this[index]; | |
} | |
function native_StringImplementation__charCodeAt(index) { | |
return this.charCodeAt(index); | |
} | |
function native_StringImplementation_get$length() { | |
return this.length; | |
} | |
function native_StringImplementation_EQ(other) { | |
if (typeof other == 'string') { | |
return this == other; | |
} else if (other instanceof String) { | |
// Must convert other to a primitive for value equality to work. | |
return this == String(other); | |
} else { | |
return false; | |
} | |
} | |
function native_StringImplementation_indexOf(other, startIndex) { | |
return this.indexOf(other, startIndex); | |
} | |
function native_StringImplementation_lastIndexOf(other, fromIndex) { | |
if (other == "") { | |
return Math.min(this.length, fromIndex); | |
} | |
return this.lastIndexOf(other, fromIndex); | |
} | |
function native_StringImplementation_concat(other) { | |
return this.concat(other); | |
} | |
function native_StringImplementation__substringUnchecked(startIndex, endIndex) { | |
return this.substring(startIndex, endIndex); | |
} | |
function native_StringImplementation_trim() { | |
if (this.trim) return this.trim(); | |
return this.replace(new RegExp("^[\s]+|[\s]+$", "g"), ""); | |
} | |
function native_StringImplementation__replace(from, to) { | |
if (String.$instanceOf(from)) { | |
return this.replace(from, to); | |
} else { | |
return this.replace($DartRegExpToJSRegExp(from), to); | |
} | |
} | |
function native_StringImplementation__replaceAll(from, to) { | |
if (String.$instanceOf(from)) { | |
var regexp = new RegExp( | |
from.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), 'g'); | |
return this.replace(regexp, to); | |
} else { | |
var regexp = $DartRegExpToJSRegExp(from); | |
return this.replace(regexp, to); | |
} | |
} | |
function native_StringImplementation__split(pattern) { | |
if (String.$instanceOf(pattern)) { | |
return this.split(pattern); | |
} else { | |
return this.split($DartRegExpToJSRegExp(pattern)); | |
} | |
} | |
function native_StringImplementation_toLowerCase() { | |
return this.toLowerCase(); | |
} | |
function native_StringImplementation_toUpperCase() { | |
return this.toUpperCase(); | |
} | |
// Inherited from Hashable. | |
function native_StringImplementation_hashCode() { | |
if (this.hash_ === undefined) { | |
for (var i = 0; i < this.length; i++) { | |
var ch = this.charCodeAt(i); | |
this.hash_ += ch; | |
this.hash_ += this.hash_ << 10; | |
this.hash_ ^= this.hash_ >> 6; | |
} | |
this.hash_ += this.hash_ << 3; | |
this.hash_ ^= this.hash_ >> 11; | |
this.hash_ += this.hash_ << 15; | |
this.hash_ = this.hash_ & ((1 << 29) - 1); | |
} | |
return this.hash_; | |
} | |
function native_StringImplementation_toString() { | |
// Return the primitive string of this String object. | |
return String(this); | |
} | |
// TODO(floitsch): If we allow comparison operators on the String class we | |
// should move this function into dart world. | |
function native_StringImplementation_compareTo(other) { | |
if (this == other) return 0; | |
if (this < other) return -1; | |
return 1; | |
} | |
function native_StringImplementation__newFromValues(array) { | |
if (!(array instanceof Array)) { | |
var length = native__ArrayJsUtil__arrayLength(array); | |
var tmp = new Array(length); | |
for (var i = 0; i < length; i++) { | |
tmp[i] = INDEX$operator(array, i); | |
} | |
array = tmp; | |
} | |
return String.fromCharCode.apply(this, array); | |
} | |
// Deprecated old name of new String.fromValues(..). | |
function native_StringBase_createFromCharCodes(array) { | |
return native_StringImplementation__newFromValues(array); | |
} | |
function ArrayFactory$Dart(){ | |
} | |
ArrayFactory$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ArrayFactory$Dart')); | |
} | |
; | |
ArrayFactory$Dart.$addTo = function(target){ | |
var rtt = ArrayFactory$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
ArrayFactory$Dart.prototype.$implements$ArrayFactory$Dart = 1; | |
ArrayFactory$Dart.prototype.$implements$Object$Dart = 1; | |
ArrayFactory$Dart.Array$from$5$Factory = function($typeArgs, other){ | |
var array = ArrayFactory$Dart.Array$$Factory([RTT.getTypeArg($typeArgs, 0)], $Dart$Null); | |
{ | |
var $0 = other.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
array.add$named(1, $noargs, e); | |
} | |
} | |
} | |
return array; | |
} | |
; | |
ArrayFactory$Dart.Array$fromArray$5$Factory = function($typeArgs, other, startIndex, endIndex){ | |
var tmp$0; | |
var array = ArrayFactory$Dart.Array$$Factory([RTT.getTypeArg($typeArgs, 0)], $Dart$Null); | |
if (GT$operator(endIndex, other.length$getter())) { | |
endIndex = other.length$getter(); | |
} | |
if (LT$operator(startIndex, 0)) { | |
startIndex = 0; | |
} | |
var count = SUB$operator(endIndex, startIndex); | |
if (GT$operator(count, 0)) { | |
array.length$setter(tmp$0 = count) , tmp$0; | |
Arrays$Dart.copy$member(other, startIndex, array, 0, count); | |
} | |
return array; | |
} | |
; | |
ArrayFactory$Dart.Array$$Factory = function($typeArgs, length_0){ | |
var tmp$0; | |
var isFixed = true; | |
if (length_0 == null) { | |
length_0 = 0; | |
isFixed = false; | |
} | |
else { | |
if (LT$operator(length_0, 0)) { | |
$Dart$ThrowException(IllegalArgumentException$Dart.IllegalArgumentException$$Factory(length_0)); | |
} | |
} | |
var array = ArrayFactory$Dart._new$$member_(TypeToken$Dart.TypeToken$$Factory(TypeToken$Dart.$lookupRTT([RTT.getTypeArg($typeArgs, 0)])), length_0); | |
array._isFixed$$setter_(tmp$0 = isFixed) , tmp$0; | |
return array; | |
} | |
; | |
ArrayFactory$Dart._new$$member_ = function(typeToken, length_0){ | |
return native_ArrayFactory__new(typeToken, length_0); | |
} | |
; | |
ArrayFactory$Dart._new$$named_ = function($n, $o, typeToken, length_0){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return ArrayFactory$Dart._new$$member_(typeToken, length_0); | |
} | |
; | |
ArrayFactory$Dart._new$$getter_ = function _new$$getter_(){ | |
return ArrayFactory$Dart._new$$named_; | |
} | |
; | |
function ListFactory$Dart(){ | |
} | |
ListFactory$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ListFactory$Dart')); | |
} | |
; | |
ListFactory$Dart.$addTo = function(target){ | |
var rtt = ListFactory$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
ListFactory$Dart.prototype.$implements$ListFactory$Dart = 1; | |
ListFactory$Dart.prototype.$implements$Object$Dart = 1; | |
ListFactory$Dart.List$from$4$Factory = function($typeArgs, other){ | |
var list = ListFactory$Dart.List$$Factory([RTT.getTypeArg($typeArgs, 0)], $Dart$Null); | |
{ | |
var $0 = other.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
list.add$named(1, $noargs, e); | |
} | |
} | |
} | |
return list; | |
} | |
; | |
ListFactory$Dart.List$fromList$4$Factory = function($typeArgs, other, startIndex, endIndex){ | |
var tmp$0; | |
var list = ListFactory$Dart.List$$Factory([RTT.getTypeArg($typeArgs, 0)], $Dart$Null); | |
if (GT$operator(endIndex, other.length$getter())) { | |
endIndex = other.length$getter(); | |
} | |
if (LT$operator(startIndex, 0)) { | |
startIndex = 0; | |
} | |
var count = SUB$operator(endIndex, startIndex); | |
if (GT$operator(count, 0)) { | |
list.length$setter(tmp$0 = count) , tmp$0; | |
Arrays$Dart.copy$member(other, startIndex, list, 0, count); | |
} | |
return list; | |
} | |
; | |
ListFactory$Dart.List$$Factory = function($typeArgs, length_0){ | |
var tmp$0; | |
var isFixed = true; | |
if (length_0 == null) { | |
length_0 = 0; | |
isFixed = false; | |
} | |
else { | |
if (LT$operator(length_0, 0)) { | |
$Dart$ThrowException(IllegalArgumentException$Dart.IllegalArgumentException$$Factory(length_0)); | |
} | |
} | |
var list = ListFactory$Dart._new$$member_(TypeToken$Dart.TypeToken$$Factory(TypeToken$Dart.$lookupRTT([RTT.getTypeArg($typeArgs, 0)])), length_0); | |
list._isFixed$$setter_(tmp$0 = isFixed) , tmp$0; | |
return list; | |
} | |
; | |
ListFactory$Dart._new$$member_ = function(typeToken, length_0){ | |
return native_ListFactory__new(typeToken, length_0); | |
} | |
; | |
ListFactory$Dart._new$$named_ = function($n, $o, typeToken, length_0){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return ListFactory$Dart._new$$member_(typeToken, length_0); | |
} | |
; | |
ListFactory$Dart._new$$getter_ = function _new$$getter_(){ | |
return ListFactory$Dart._new$$named_; | |
} | |
; | |
Array.$lookupRTT = function(typeArgs){ | |
return RTT.create($cls('Array'), Array.$RTTimplements, typeArgs); | |
} | |
; | |
Array.$RTTimplements = function(rtt, typeArgs){ | |
Array.$addTo(rtt, typeArgs); | |
rtt.derivedTypes = []; | |
} | |
; | |
Array.$addTo = function(target, typeArgs){ | |
var rtt = Array.$lookupRTT(typeArgs); | |
target.implementedTypes[rtt.classKey] = rtt; | |
Array$Dart.$addTo(target, [RTT.getTypeArg(target.typeArgs, 0)]); | |
} | |
; | |
Array.prototype.$implements$ObjectArray$Dart = 1; | |
Array.prototype.$implements$Array$Dart = 1; | |
Array.prototype.$implements$List$Dart = 1; | |
Array.prototype.$implements$Collection$Dart = 1; | |
Array.prototype.$implements$Iterable$Dart = 1; | |
Array.prototype.$implements$Object$Dart = 1; | |
Array.prototype._isFixed$$named_ = function(){ | |
return this._isFixed$$getter_().apply(this, arguments); | |
} | |
; | |
Array.prototype._isFixed$$getter_ = function(){ | |
return this._isFixed$$field_; | |
} | |
; | |
Array.prototype._isFixed$$setter_ = function(tmp$0){ | |
this._isFixed$$field_ = tmp$0; | |
} | |
; | |
Array.prototype.INDEX$operator = function(index){ | |
if (LTE$operator(0, index) && LT$operator(index, this.length$getter())) { | |
return this._indexOperator$$member_(index); | |
} | |
$Dart$ThrowException(IndexOutOfRangeException$Dart.IndexOutOfRangeException$$Factory(index)); | |
} | |
; | |
Array.prototype.ASSIGN_INDEX$operator = function(index, value){ | |
if (LT$operator(index, 0) || LTE$operator(this.length$getter(), index)) { | |
$Dart$ThrowException(IndexOutOfRangeException$Dart.IndexOutOfRangeException$$Factory(index)); | |
} | |
this._indexAssignOperator$$member_(index, value); | |
} | |
; | |
Array.prototype.iterator$member = function(){ | |
if (this._isFixed$$getter_()) { | |
return FixedSizeArrayIterator$Dart.FixedSizeArrayIterator$$Factory(FixedSizeArrayIterator$Dart.$lookupRTT([RTT.getTypeArg(RTT.getTypeArgsFor(this, $cls('Array')), 0)]), this); | |
} | |
else { | |
return VariableSizeArrayIterator$Dart.VariableSizeArrayIterator$$Factory(VariableSizeArrayIterator$Dart.$lookupRTT([RTT.getTypeArg(RTT.getTypeArgsFor(this, $cls('Array')), 0)]), this); | |
} | |
} | |
; | |
Array.prototype.iterator$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Array.prototype.iterator$member.call(this); | |
} | |
; | |
Array.prototype.iterator$getter = function iterator$getter(){ | |
return $bind(Array.prototype.iterator$named, this); | |
} | |
; | |
Array.prototype._indexOperator$$member_ = function(index){ | |
return native_ObjectArray__indexOperator.call(this, index); | |
} | |
; | |
Array.prototype._indexOperator$$named_ = function($n, $o, index){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype._indexOperator$$member_.call(this, index); | |
} | |
; | |
Array.prototype._indexOperator$$getter_ = function _indexOperator$$getter_(){ | |
return $bind(Array.prototype._indexOperator$$named_, this); | |
} | |
; | |
Array.prototype._indexAssignOperator$$member_ = function(index, value){ | |
return native_ObjectArray__indexAssignOperator.call(this, index, value); | |
} | |
; | |
Array.prototype._indexAssignOperator$$named_ = function($n, $o, index, value){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Array.prototype._indexAssignOperator$$member_.call(this, index, value); | |
} | |
; | |
Array.prototype._indexAssignOperator$$getter_ = function _indexAssignOperator$$getter_(){ | |
return $bind(Array.prototype._indexAssignOperator$$named_, this); | |
} | |
; | |
Array.prototype.length$named = function(){ | |
return this.length$getter().apply(this, arguments); | |
} | |
; | |
Array.prototype.length$getter = function(){ | |
return native_ObjectArray_get$length.call(this); | |
} | |
; | |
Array.prototype.length$setter = function(length_0){ | |
if (this._isFixed$$getter_()) { | |
$Dart$ThrowException($intern(UnsupportedOperationException$Dart.UnsupportedOperationException$$Factory('Cannot change the length of a non-extendable array'))); | |
} | |
else { | |
this._setLength$$member_(length_0); | |
} | |
} | |
; | |
Array.prototype._setLength$$member_ = function(length_0){ | |
return native_ObjectArray__setLength.call(this, length_0); | |
} | |
; | |
Array.prototype._setLength$$named_ = function($n, $o, length_0){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype._setLength$$member_.call(this, length_0); | |
} | |
; | |
Array.prototype._setLength$$getter_ = function _setLength$$getter_(){ | |
return $bind(Array.prototype._setLength$$named_, this); | |
} | |
; | |
Array.prototype._add$$member_ = function(value){ | |
return native_ObjectArray__add.call(this, value); | |
} | |
; | |
Array.prototype._add$$named_ = function($n, $o, value){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype._add$$member_.call(this, value); | |
} | |
; | |
Array.prototype._add$$getter_ = function _add$$getter_(){ | |
return $bind(Array.prototype._add$$named_, this); | |
} | |
; | |
Array.prototype.forEach$member = function(f){ | |
Collections$Dart.forEach$member(this, f); | |
} | |
; | |
Array.prototype.forEach$named = function($n, $o, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.forEach$member.call(this, f); | |
} | |
; | |
Array.prototype.forEach$getter = function forEach$getter(){ | |
return $bind(Array.prototype.forEach$named, this); | |
} | |
; | |
Array.prototype.filter$member = function(f){ | |
return Collections$Dart.filter$member(this, ArrayFactory$Dart.Array$$Factory([RTT.getTypeArg(RTT.getTypeArgsFor(this, $cls('Array')), 0)], $Dart$Null), f); | |
} | |
; | |
Array.prototype.filter$named = function($n, $o, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.filter$member.call(this, f); | |
} | |
; | |
Array.prototype.filter$getter = function filter$getter(){ | |
return $bind(Array.prototype.filter$named, this); | |
} | |
; | |
Array.prototype.every$member = function(f){ | |
return Collections$Dart.every$member(this, f); | |
} | |
; | |
Array.prototype.every$named = function($n, $o, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.every$member.call(this, f); | |
} | |
; | |
Array.prototype.every$getter = function every$getter(){ | |
return $bind(Array.prototype.every$named, this); | |
} | |
; | |
Array.prototype.some$member = function(f){ | |
return Collections$Dart.some$member(this, f); | |
} | |
; | |
Array.prototype.some$named = function($n, $o, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.some$member.call(this, f); | |
} | |
; | |
Array.prototype.some$getter = function some$getter(){ | |
return $bind(Array.prototype.some$named, this); | |
} | |
; | |
Array.prototype.isEmpty$member = function(){ | |
return EQ$operator(this.length$getter(), 0); | |
} | |
; | |
Array.prototype.isEmpty$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Array.prototype.isEmpty$member.call(this); | |
} | |
; | |
Array.prototype.isEmpty$getter = function isEmpty$getter(){ | |
return $bind(Array.prototype.isEmpty$named, this); | |
} | |
; | |
Array.prototype.sort$member = function(compare){ | |
DualPivotQuicksort$Dart.sort$member(this, compare); | |
} | |
; | |
Array.prototype.sort$named = function($n, $o, compare){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.sort$member.call(this, compare); | |
} | |
; | |
Array.prototype.sort$getter = function sort$getter(){ | |
return $bind(Array.prototype.sort$named, this); | |
} | |
; | |
Array.prototype.copyFrom$member = function(src, srcStart, dstStart, count){ | |
Arrays$Dart.copy$member(src, srcStart, this, dstStart, count); | |
} | |
; | |
Array.prototype.copyFrom$named = function($n, $o, src, srcStart, dstStart, count){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 4) | |
$nsme(); | |
return Array.prototype.copyFrom$member.call(this, src, srcStart, dstStart, count); | |
} | |
; | |
Array.prototype.copyFrom$getter = function copyFrom$getter(){ | |
return $bind(Array.prototype.copyFrom$named, this); | |
} | |
; | |
Array.prototype.setRange$member = function(start, length_0, from, startFrom){ | |
$Dart$ThrowException($intern(NotImplementedException$Dart.NotImplementedException$$Factory())); | |
} | |
; | |
Array.prototype.setRange$named = function($n, $o, start, length_0, from, startFrom){ | |
var seen = 0; | |
var def = 0; | |
switch ($n) { | |
case 3: | |
startFrom = $o.startFrom?(++seen , $o.startFrom):(++def , 0); | |
} | |
if (seen != $o.count || seen + def + $n != 4) | |
$nsme(); | |
return Array.prototype.setRange$member.call(this, start, length_0, from, startFrom); | |
} | |
; | |
Array.prototype.setRange$getter = function setRange$getter(){ | |
return $bind(Array.prototype.setRange$named, this); | |
} | |
; | |
Array.prototype.removeRange$member = function(start, length_0){ | |
$Dart$ThrowException($intern(NotImplementedException$Dart.NotImplementedException$$Factory())); | |
} | |
; | |
Array.prototype.removeRange$named = function($n, $o, start, length_0){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Array.prototype.removeRange$member.call(this, start, length_0); | |
} | |
; | |
Array.prototype.removeRange$getter = function removeRange$getter(){ | |
return $bind(Array.prototype.removeRange$named, this); | |
} | |
; | |
Array.prototype.insertRange$member = function(start, length_0, initialValue){ | |
$Dart$ThrowException($intern(NotImplementedException$Dart.NotImplementedException$$Factory())); | |
} | |
; | |
Array.prototype.insertRange$named = function($n, $o, start, length_0, initialValue){ | |
var seen = 0; | |
var def = 0; | |
switch ($n) { | |
case 2: | |
initialValue = $o.initialValue?(++seen , $o.initialValue):(++def , $Dart$Null); | |
} | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return Array.prototype.insertRange$member.call(this, start, length_0, initialValue); | |
} | |
; | |
Array.prototype.insertRange$getter = function insertRange$getter(){ | |
return $bind(Array.prototype.insertRange$named, this); | |
} | |
; | |
Array.prototype.getRange$member = function(start, length_0){ | |
$Dart$ThrowException($intern(NotImplementedException$Dart.NotImplementedException$$Factory())); | |
} | |
; | |
Array.prototype.getRange$named = function($n, $o, start, length_0){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Array.prototype.getRange$member.call(this, start, length_0); | |
} | |
; | |
Array.prototype.getRange$getter = function getRange$getter(){ | |
return $bind(Array.prototype.getRange$named, this); | |
} | |
; | |
Array.prototype.indexOf$member = function(element, startIndex){ | |
return Arrays$Dart.indexOf$member(this, element, startIndex, this.length$getter()); | |
} | |
; | |
Array.prototype.indexOf$named = function($n, $o, element, startIndex){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Array.prototype.indexOf$member.call(this, element, startIndex); | |
} | |
; | |
Array.prototype.indexOf$getter = function indexOf$getter(){ | |
return $bind(Array.prototype.indexOf$named, this); | |
} | |
; | |
Array.prototype.lastIndexOf$member = function(element, startIndex){ | |
return Arrays$Dart.lastIndexOf$member(this, element, startIndex); | |
} | |
; | |
Array.prototype.lastIndexOf$named = function($n, $o, element, startIndex){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Array.prototype.lastIndexOf$member.call(this, element, startIndex); | |
} | |
; | |
Array.prototype.lastIndexOf$getter = function lastIndexOf$getter(){ | |
return $bind(Array.prototype.lastIndexOf$named, this); | |
} | |
; | |
Array.prototype.add$member = function(element){ | |
if (this._isFixed$$getter_()) { | |
$Dart$ThrowException($intern(UnsupportedOperationException$Dart.UnsupportedOperationException$$Factory('Cannot add to a non-extendable array'))); | |
} | |
else { | |
this._add$$member_(element); | |
} | |
} | |
; | |
Array.prototype.add$named = function($n, $o, element){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.add$member.call(this, element); | |
} | |
; | |
Array.prototype.add$getter = function add$getter(){ | |
return $bind(Array.prototype.add$named, this); | |
} | |
; | |
Array.prototype.addLast$member = function(element){ | |
this.add$member(element); | |
} | |
; | |
Array.prototype.addLast$named = function($n, $o, element){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.addLast$member.call(this, element); | |
} | |
; | |
Array.prototype.addLast$getter = function addLast$getter(){ | |
return $bind(Array.prototype.addLast$named, this); | |
} | |
; | |
Array.prototype.addAll$member = function(elements){ | |
if (this._isFixed$$getter_()) { | |
$Dart$ThrowException($intern(UnsupportedOperationException$Dart.UnsupportedOperationException$$Factory('Cannot add to a non-extendable array'))); | |
} | |
else { | |
{ | |
var $0 = elements.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
this._add$$member_(e); | |
} | |
} | |
} | |
} | |
} | |
; | |
Array.prototype.addAll$named = function($n, $o, elements){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Array.prototype.addAll$member.call(this, elements); | |
} | |
; | |
Array.prototype.addAll$getter = function addAll$getter(){ | |
return $bind(Array.prototype.addAll$named, this); | |
} | |
; | |
Array.prototype.clear$member = function(){ | |
var tmp$0; | |
if (this._isFixed$$getter_()) { | |
$Dart$ThrowException($intern(UnsupportedOperationException$Dart.UnsupportedOperationException$$Factory('Cannot clear a non-extendable array'))); | |
} | |
else { | |
this.length$setter(tmp$0 = 0) , tmp$0; | |
} | |
} | |
; | |
Array.prototype.clear$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Array.prototype.clear$member.call(this); | |
} | |
; | |
Array.prototype.clear$getter = function clear$getter(){ | |
return $bind(Array.prototype.clear$named, this); | |
} | |
; | |
Array.prototype.removeLast$member = function(){ | |
var tmp$0; | |
if (this._isFixed$$getter_()) { | |
$Dart$ThrowException($intern(UnsupportedOperationException$Dart.UnsupportedOperationException$$Factory('Cannot remove in a non-extendable array'))); | |
} | |
else { | |
var element = this.last$member(); | |
this.length$setter(tmp$0 = SUB$operator(this.length$getter(), 1)) , tmp$0; | |
return element; | |
} | |
} | |
; | |
Array.prototype.removeLast$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Array.prototype.removeLast$member.call(this); | |
} | |
; | |
Array.prototype.removeLast$getter = function removeLast$getter(){ | |
return $bind(Array.prototype.removeLast$named, this); | |
} | |
; | |
Array.prototype.last$member = function(){ | |
return this.INDEX$operator(SUB$operator(this.length$getter(), 1)); | |
} | |
; | |
Array.prototype.last$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Array.prototype.last$member.call(this); | |
} | |
; | |
Array.prototype.last$getter = function last$getter(){ | |
return $bind(Array.prototype.last$named, this); | |
} | |
; | |
Array.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
Array.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
Array.ObjectArray$$Factory = function($rtt){ | |
var tmp$0 = new Array; | |
tmp$0.$typeInfo = $rtt; | |
Array.$Initializer.call(tmp$0); | |
Array.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function FixedSizeArrayIterator$Dart(){ | |
} | |
FixedSizeArrayIterator$Dart.$lookupRTT = function(typeArgs){ | |
return RTT.create($cls('FixedSizeArrayIterator$Dart'), FixedSizeArrayIterator$Dart.$RTTimplements, typeArgs); | |
} | |
; | |
FixedSizeArrayIterator$Dart.$RTTimplements = function(rtt, typeArgs){ | |
FixedSizeArrayIterator$Dart.$addTo(rtt, typeArgs); | |
rtt.derivedTypes = []; | |
} | |
; | |
FixedSizeArrayIterator$Dart.$addTo = function(target, typeArgs){ | |
var rtt = FixedSizeArrayIterator$Dart.$lookupRTT(typeArgs); | |
target.implementedTypes[rtt.classKey] = rtt; | |
VariableSizeArrayIterator$Dart.$addTo(target, [RTT.getTypeArg(target.typeArgs, 0)]); | |
} | |
; | |
FixedSizeArrayIterator$Dart.prototype.$implements$FixedSizeArrayIterator$Dart = 1; | |
FixedSizeArrayIterator$Dart.prototype.$implements$VariableSizeArrayIterator$Dart = 1; | |
FixedSizeArrayIterator$Dart.prototype.$implements$Iterator$Dart = 1; | |
FixedSizeArrayIterator$Dart.prototype.$implements$Object$Dart = 1; | |
$inherits(FixedSizeArrayIterator$Dart, VariableSizeArrayIterator$Dart); | |
FixedSizeArrayIterator$Dart.$Constructor = function(array){ | |
VariableSizeArrayIterator$Dart.$Constructor.call(this, array); | |
} | |
; | |
FixedSizeArrayIterator$Dart.$Initializer = function(array){ | |
VariableSizeArrayIterator$Dart.$Initializer.call(this, array); | |
this._length$$field_ = array.length$getter(); | |
} | |
; | |
FixedSizeArrayIterator$Dart.FixedSizeArrayIterator$$Factory = function($rtt, array){ | |
var tmp$0 = new FixedSizeArrayIterator$Dart; | |
tmp$0.$typeInfo = $rtt; | |
FixedSizeArrayIterator$Dart.$Initializer.call(tmp$0, array); | |
FixedSizeArrayIterator$Dart.$Constructor.call(tmp$0, array); | |
return tmp$0; | |
} | |
; | |
FixedSizeArrayIterator$Dart.prototype.hasNext$member = function(){ | |
return GT$operator(this._length$$getter_(), this._pos$$getter_()); | |
} | |
; | |
FixedSizeArrayIterator$Dart.prototype.hasNext$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return FixedSizeArrayIterator$Dart.prototype.hasNext$member.call(this); | |
} | |
; | |
FixedSizeArrayIterator$Dart.prototype.hasNext$getter = function hasNext$getter(){ | |
return $bind(FixedSizeArrayIterator$Dart.prototype.hasNext$named, this); | |
} | |
; | |
FixedSizeArrayIterator$Dart.prototype._length$$named_ = function(){ | |
return this._length$$getter_().apply(this, arguments); | |
} | |
; | |
FixedSizeArrayIterator$Dart.prototype._length$$getter_ = function(){ | |
return this._length$$field_; | |
} | |
; | |
function VariableSizeArrayIterator$Dart(){ | |
} | |
VariableSizeArrayIterator$Dart.$lookupRTT = function(typeArgs){ | |
return RTT.create($cls('VariableSizeArrayIterator$Dart'), VariableSizeArrayIterator$Dart.$RTTimplements, typeArgs); | |
} | |
; | |
VariableSizeArrayIterator$Dart.$RTTimplements = function(rtt, typeArgs){ | |
VariableSizeArrayIterator$Dart.$addTo(rtt, typeArgs); | |
rtt.derivedTypes = []; | |
} | |
; | |
VariableSizeArrayIterator$Dart.$addTo = function(target, typeArgs){ | |
var rtt = VariableSizeArrayIterator$Dart.$lookupRTT(typeArgs); | |
target.implementedTypes[rtt.classKey] = rtt; | |
Iterator$Dart.$addTo(target, [RTT.getTypeArg(target.typeArgs, 0)]); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.$implements$VariableSizeArrayIterator$Dart = 1; | |
VariableSizeArrayIterator$Dart.prototype.$implements$Iterator$Dart = 1; | |
VariableSizeArrayIterator$Dart.prototype.$implements$Object$Dart = 1; | |
VariableSizeArrayIterator$Dart.$Constructor = function(array){ | |
Object.$Constructor.call(this); | |
} | |
; | |
VariableSizeArrayIterator$Dart.$Initializer = function(array){ | |
Object.$Initializer.call(this); | |
this._array$$field_ = array; | |
this._pos$$field_ = 0; | |
} | |
; | |
VariableSizeArrayIterator$Dart.VariableSizeArrayIterator$$Factory = function($rtt, array){ | |
var tmp$0 = new VariableSizeArrayIterator$Dart; | |
tmp$0.$typeInfo = $rtt; | |
VariableSizeArrayIterator$Dart.$Initializer.call(tmp$0, array); | |
VariableSizeArrayIterator$Dart.$Constructor.call(tmp$0, array); | |
return tmp$0; | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.hasNext$member = function(){ | |
return GT$operator(this._array$$getter_().length$getter(), this._pos$$getter_()); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.hasNext$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return VariableSizeArrayIterator$Dart.prototype.hasNext$member.call(this); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.hasNext$getter = function hasNext$getter(){ | |
return $bind(VariableSizeArrayIterator$Dart.prototype.hasNext$named, this); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.next$member = function(){ | |
var tmp$1, tmp$0; | |
if (!this.hasNext$member()) { | |
$Dart$ThrowException($intern(NoMoreElementsException$Dart.NoMoreElementsException$$Factory())); | |
} | |
return this._array$$getter_().INDEX$operator((tmp$0 = this._pos$$getter_() , (this._pos$$setter_(tmp$1 = ADD$operator(tmp$0, 1)) , tmp$1 , tmp$0))); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.next$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return VariableSizeArrayIterator$Dart.prototype.next$member.call(this); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype.next$getter = function next$getter(){ | |
return $bind(VariableSizeArrayIterator$Dart.prototype.next$named, this); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype._array$$named_ = function(){ | |
return this._array$$getter_().apply(this, arguments); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype._array$$getter_ = function(){ | |
return this._array$$field_; | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype._pos$$named_ = function(){ | |
return this._pos$$getter_().apply(this, arguments); | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype._pos$$getter_ = function(){ | |
return this._pos$$field_; | |
} | |
; | |
VariableSizeArrayIterator$Dart.prototype._pos$$setter_ = function(tmp$0){ | |
this._pos$$field_ = tmp$0; | |
} | |
; | |
function _ArrayJsUtil$Dart(){ | |
} | |
_ArrayJsUtil$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('_ArrayJsUtil$Dart')); | |
} | |
; | |
_ArrayJsUtil$Dart.$addTo = function(target){ | |
var rtt = _ArrayJsUtil$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
_ArrayJsUtil$Dart.prototype.$implements$_ArrayJsUtil$Dart = 1; | |
_ArrayJsUtil$Dart.prototype.$implements$Object$Dart = 1; | |
_ArrayJsUtil$Dart._arrayLength$$member_ = function(array){ | |
return array.length$getter(); | |
} | |
; | |
_ArrayJsUtil$Dart._arrayLength$$named_ = function($n, $o, array){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _ArrayJsUtil$Dart._arrayLength$$member_(array); | |
} | |
; | |
function native__ArrayJsUtil__arrayLength(array){ | |
return _ArrayJsUtil$Dart._arrayLength$$member_(array); | |
} | |
_ArrayJsUtil$Dart._arrayLength$$getter_ = function _arrayLength$$getter_(){ | |
return _ArrayJsUtil$Dart._arrayLength$$named_; | |
} | |
; | |
_ArrayJsUtil$Dart._newArray$$member_ = function(len){ | |
return ArrayFactory$Dart.Array$$Factory(null, len); | |
} | |
; | |
_ArrayJsUtil$Dart._newArray$$named_ = function($n, $o, len){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _ArrayJsUtil$Dart._newArray$$member_(len); | |
} | |
; | |
function native__ArrayJsUtil__newArray(len){ | |
return _ArrayJsUtil$Dart._newArray$$member_(len); | |
} | |
_ArrayJsUtil$Dart._newArray$$getter_ = function _newArray$$getter_(){ | |
return _ArrayJsUtil$Dart._newArray$$named_; | |
} | |
; | |
_ArrayJsUtil$Dart._throwIndexOutOfRangeException$$member_ = function(index){ | |
$Dart$ThrowException(IndexOutOfRangeException$Dart.IndexOutOfRangeException$$Factory(index)); | |
} | |
; | |
_ArrayJsUtil$Dart._throwIndexOutOfRangeException$$named_ = function($n, $o, index){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _ArrayJsUtil$Dart._throwIndexOutOfRangeException$$member_(index); | |
} | |
; | |
function native__ArrayJsUtil__throwIndexOutOfRangeException(index){ | |
return _ArrayJsUtil$Dart._throwIndexOutOfRangeException$$member_(index); | |
} | |
_ArrayJsUtil$Dart._throwIndexOutOfRangeException$$getter_ = function _throwIndexOutOfRangeException$$getter_(){ | |
return _ArrayJsUtil$Dart._throwIndexOutOfRangeException$$named_; | |
} | |
; | |
_ArrayJsUtil$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
_ArrayJsUtil$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
_ArrayJsUtil$Dart._ArrayJsUtil$$Factory = function(){ | |
var tmp$0 = new _ArrayJsUtil$Dart; | |
tmp$0.$typeInfo = _ArrayJsUtil$Dart.$lookupRTT(); | |
_ArrayJsUtil$Dart.$Initializer.call(tmp$0); | |
_ArrayJsUtil$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function Arrays$Dart(){ | |
} | |
Arrays$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('Arrays$Dart')); | |
} | |
; | |
Arrays$Dart.$addTo = function(target){ | |
var rtt = Arrays$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
Arrays$Dart.prototype.$implements$Arrays$Dart = 1; | |
Arrays$Dart.prototype.$implements$Object$Dart = 1; | |
Arrays$Dart.copy$member = function(src, srcStart, dst, dstStart, count){ | |
var tmp$5, tmp$1, tmp$2, tmp$3, tmp$4, tmp$0; | |
if (srcStart == null) { | |
srcStart = 0; | |
} | |
if (dstStart == null) { | |
dstStart = 0; | |
} | |
if (LT$operator(srcStart, dstStart)) { | |
{ | |
var i = SUB$operator(ADD$operator(srcStart, count), 1); | |
var j = SUB$operator(ADD$operator(dstStart, count), 1); | |
for (; GTE$operator(i, srcStart); tmp$1 = i , (i = SUB$operator(tmp$1, 1) , tmp$1) , (tmp$0 = j , (j = SUB$operator(tmp$0, 1) , tmp$0))) { | |
dst.ASSIGN_INDEX$operator(j, tmp$2 = src.INDEX$operator(i)) , tmp$2; | |
} | |
} | |
} | |
else { | |
{ | |
var i_0 = srcStart; | |
var j_0 = dstStart; | |
for (; LT$operator(i_0, ADD$operator(srcStart, count)); tmp$4 = i_0 , (i_0 = ADD$operator(tmp$4, 1) , tmp$4) , (tmp$3 = j_0 , (j_0 = ADD$operator(tmp$3, 1) , tmp$3))) { | |
dst.ASSIGN_INDEX$operator(j_0, tmp$5 = src.INDEX$operator(i_0)) , tmp$5; | |
} | |
} | |
} | |
} | |
; | |
Arrays$Dart.copy$named = function($n, $o, src, srcStart, dst, dstStart, count){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 5) | |
$nsme(); | |
return Arrays$Dart.copy$member(src, srcStart, dst, dstStart, count); | |
} | |
; | |
Arrays$Dart.copy$getter = function copy$getter(){ | |
return Arrays$Dart.copy$named; | |
} | |
; | |
Arrays$Dart.indexOf$member = function(a, element, startIndex, endIndex){ | |
var tmp$0; | |
if (GTE$operator(startIndex, a.length$getter())) { | |
return negate$operator(1); | |
} | |
if (LT$operator(startIndex, 0)) { | |
startIndex = 0; | |
} | |
{ | |
var i = startIndex; | |
for (; LT$operator(i, endIndex); tmp$0 = i , (i = ADD$operator(tmp$0, 1) , tmp$0)) { | |
if (EQ$operator(a.INDEX$operator(i), element)) { | |
return i; | |
} | |
} | |
} | |
return negate$operator(1); | |
} | |
; | |
Arrays$Dart.indexOf$named = function($n, $o, a, element, startIndex, endIndex){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 4) | |
$nsme(); | |
return Arrays$Dart.indexOf$member(a, element, startIndex, endIndex); | |
} | |
; | |
Arrays$Dart.indexOf$getter = function indexOf$getter(){ | |
return Arrays$Dart.indexOf$named; | |
} | |
; | |
Arrays$Dart.lastIndexOf$member = function(a, element, startIndex){ | |
var tmp$0; | |
if (LT$operator(startIndex, 0)) { | |
return negate$operator(1); | |
} | |
if (GTE$operator(startIndex, a.length$getter())) { | |
startIndex = SUB$operator(a.length$getter(), 1); | |
} | |
{ | |
var i = startIndex; | |
for (; GTE$operator(i, 0); tmp$0 = i , (i = SUB$operator(tmp$0, 1) , tmp$0)) { | |
if (EQ$operator(a.INDEX$operator(i), element)) { | |
return i; | |
} | |
} | |
} | |
return negate$operator(1); | |
} | |
; | |
Arrays$Dart.lastIndexOf$named = function($n, $o, a, element, startIndex){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return Arrays$Dart.lastIndexOf$member(a, element, startIndex); | |
} | |
; | |
Arrays$Dart.lastIndexOf$getter = function lastIndexOf$getter(){ | |
return Arrays$Dart.lastIndexOf$named; | |
} | |
; | |
Arrays$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
Arrays$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
Arrays$Dart.Arrays$$Factory = function(){ | |
var tmp$0 = new Arrays$Dart; | |
tmp$0.$typeInfo = Arrays$Dart.$lookupRTT(); | |
Arrays$Dart.$Initializer.call(tmp$0); | |
Arrays$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
Boolean.$lookupRTT = function(){ | |
return RTT.create($cls('Boolean'), Boolean.$RTTimplements); | |
} | |
; | |
Boolean.$RTTimplements = function(rtt){ | |
Boolean.$addTo(rtt); | |
} | |
; | |
Boolean.$addTo = function(target){ | |
var rtt = Boolean.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
bool$Dart.$addTo(target); | |
} | |
; | |
Boolean.prototype.$implements$BoolImplementation$Dart = 1; | |
Boolean.prototype.$implements$bool$Dart = 1; | |
Boolean.prototype.$implements$Object$Dart = 1; | |
Boolean.prototype.EQ$operator = function(other){ | |
return native_BoolImplementation_EQ.call(this, other); | |
} | |
; | |
Boolean.prototype.toString$member = function(){ | |
return native_BoolImplementation_toString.call(this); | |
} | |
; | |
Boolean.prototype.toString$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Boolean.prototype.toString$member.call(this); | |
} | |
; | |
Boolean.prototype.toString$getter = function toString$getter(){ | |
return $bind(Boolean.prototype.toString$named, this); | |
} | |
; | |
Boolean.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
Boolean.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
Boolean.BoolImplementation$$Factory = function(){ | |
var tmp$0 = new Boolean; | |
tmp$0.$typeInfo = Boolean.$lookupRTT(); | |
Boolean.$Initializer.call(tmp$0); | |
Boolean.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function Collections$Dart(){ | |
} | |
Collections$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('Collections$Dart')); | |
} | |
; | |
Collections$Dart.$addTo = function(target){ | |
var rtt = Collections$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
Collections$Dart.prototype.$implements$Collections$Dart = 1; | |
Collections$Dart.prototype.$implements$Object$Dart = 1; | |
Collections$Dart.forEach$member = function(iterable, f){ | |
{ | |
var $0 = iterable.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
f(1, $noargs, e); | |
} | |
} | |
} | |
} | |
; | |
Collections$Dart.forEach$named = function($n, $o, iterable, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Collections$Dart.forEach$member(iterable, f); | |
} | |
; | |
Collections$Dart.forEach$getter = function forEach$getter(){ | |
return Collections$Dart.forEach$named; | |
} | |
; | |
Collections$Dart.some$member = function(iterable, f){ | |
{ | |
var $0 = iterable.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
if (f(1, $noargs, e)) { | |
return true; | |
} | |
} | |
} | |
} | |
return false; | |
} | |
; | |
Collections$Dart.some$named = function($n, $o, iterable, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Collections$Dart.some$member(iterable, f); | |
} | |
; | |
Collections$Dart.some$getter = function some$getter(){ | |
return Collections$Dart.some$named; | |
} | |
; | |
Collections$Dart.every$member = function(iterable, f){ | |
{ | |
var $0 = iterable.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
if (!f(1, $noargs, e)) { | |
return false; | |
} | |
} | |
} | |
} | |
return true; | |
} | |
; | |
Collections$Dart.every$named = function($n, $o, iterable, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Collections$Dart.every$member(iterable, f); | |
} | |
; | |
Collections$Dart.every$getter = function every$getter(){ | |
return Collections$Dart.every$named; | |
} | |
; | |
Collections$Dart.filter$member = function(source, destination, f){ | |
{ | |
var $0 = source.iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var e = $0.next$named(0, $noargs); | |
{ | |
if (f(1, $noargs, e)) { | |
destination.add$named(1, $noargs, e); | |
} | |
} | |
} | |
} | |
return destination; | |
} | |
; | |
Collections$Dart.filter$named = function($n, $o, source, destination, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return Collections$Dart.filter$member(source, destination, f); | |
} | |
; | |
Collections$Dart.filter$getter = function filter$getter(){ | |
return Collections$Dart.filter$named; | |
} | |
; | |
Collections$Dart.isEmpty$member = function(iterable){ | |
return !iterable.iterator$named(0, $noargs).hasNext$named(0, $noargs); | |
} | |
; | |
Collections$Dart.isEmpty$named = function($n, $o, iterable){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Collections$Dart.isEmpty$member(iterable); | |
} | |
; | |
Collections$Dart.isEmpty$getter = function isEmpty$getter(){ | |
return Collections$Dart.isEmpty$named; | |
} | |
; | |
Collections$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
Collections$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
Collections$Dart.Collections$$Factory = function(){ | |
var tmp$0 = new Collections$Dart; | |
tmp$0.$typeInfo = Collections$Dart.$lookupRTT(); | |
Collections$Dart.$Initializer.call(tmp$0); | |
Collections$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function ConstHelper$Dart(){ | |
} | |
ConstHelper$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ConstHelper$Dart')); | |
} | |
; | |
ConstHelper$Dart.$addTo = function(target){ | |
var rtt = ConstHelper$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
ConstHelper$Dart.prototype.$implements$ConstHelper$Dart = 1; | |
ConstHelper$Dart.prototype.$implements$Object$Dart = 1; | |
ConstHelper$Dart.getConstId$member = function(o){ | |
return native_ConstHelper_getConstId(o); | |
} | |
; | |
ConstHelper$Dart.getConstId$named = function($n, $o, o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ConstHelper$Dart.getConstId$member(o); | |
} | |
; | |
ConstHelper$Dart.getConstId$getter = function getConstId$getter(){ | |
return ConstHelper$Dart.getConstId$named; | |
} | |
; | |
ConstHelper$Dart.getConstMapId$member = function(map){ | |
var sb = StringBufferImpl$Dart.StringBufferImpl$$Factory(''); | |
sb.add$named(1, $noargs, 'm'); | |
var first = true; | |
{ | |
var $0 = map.getKeys$named(0, $noargs).iterator$named(0, $noargs); | |
while ($0.hasNext$named(0, $noargs)) { | |
var key = $0.next$named(0, $noargs); | |
{ | |
if (first) { | |
first = false; | |
} | |
else { | |
sb.add$named(1, $noargs, ','); | |
} | |
sb.add$named(1, $noargs, ConstHelper$Dart.getConstId$member(key)); | |
sb.add$named(1, $noargs, ','); | |
sb.add$named(1, $noargs, ConstHelper$Dart.getConstId$member(map.INDEX$operator(key))); | |
} | |
} | |
} | |
return sb.toString$named(0, $noargs); | |
} | |
; | |
ConstHelper$Dart.getConstMapId$named = function($n, $o, map){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ConstHelper$Dart.getConstMapId$member(map); | |
} | |
; | |
function native_ConstHelper_getConstMapId(map){ | |
return ConstHelper$Dart.getConstMapId$member(map); | |
} | |
ConstHelper$Dart.getConstMapId$getter = function getConstMapId$getter(){ | |
return ConstHelper$Dart.getConstMapId$named; | |
} | |
; | |
ConstHelper$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
ConstHelper$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
ConstHelper$Dart.ConstHelper$$Factory = function(){ | |
var tmp$0 = new ConstHelper$Dart; | |
tmp$0.$typeInfo = ConstHelper$Dart.$lookupRTT(); | |
ConstHelper$Dart.$Initializer.call(tmp$0); | |
ConstHelper$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function ExceptionHelper$Dart(){ | |
} | |
ExceptionHelper$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ExceptionHelper$Dart')); | |
} | |
; | |
ExceptionHelper$Dart.$addTo = function(target){ | |
var rtt = ExceptionHelper$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
ExceptionHelper$Dart.prototype.$implements$ExceptionHelper$Dart = 1; | |
ExceptionHelper$Dart.prototype.$implements$Object$Dart = 1; | |
ExceptionHelper$Dart.createNullPointerException$member = function(){ | |
return NullPointerException$Dart.NullPointerException$$Factory(); | |
} | |
; | |
ExceptionHelper$Dart.createNullPointerException$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ExceptionHelper$Dart.createNullPointerException$member(); | |
} | |
; | |
function native_ExceptionHelper_createNullPointerException(){ | |
return ExceptionHelper$Dart.createNullPointerException$member(); | |
} | |
ExceptionHelper$Dart.createNullPointerException$getter = function createNullPointerException$getter(){ | |
return ExceptionHelper$Dart.createNullPointerException$named; | |
} | |
; | |
ExceptionHelper$Dart.createObjectNotClosureException$member = function(){ | |
return ObjectNotClosureException$Dart.ObjectNotClosureException$$Factory(); | |
} | |
; | |
ExceptionHelper$Dart.createObjectNotClosureException$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ExceptionHelper$Dart.createObjectNotClosureException$member(); | |
} | |
; | |
function native_ExceptionHelper_createObjectNotClosureException(){ | |
return ExceptionHelper$Dart.createObjectNotClosureException$member(); | |
} | |
ExceptionHelper$Dart.createObjectNotClosureException$getter = function createObjectNotClosureException$getter(){ | |
return ExceptionHelper$Dart.createObjectNotClosureException$named; | |
} | |
; | |
ExceptionHelper$Dart.createNoSuchMethodException$member = function(receiver, functionName, arguments_0){ | |
return NoSuchMethodException$Dart.NoSuchMethodException$$Factory(receiver, functionName, arguments_0); | |
} | |
; | |
ExceptionHelper$Dart.createNoSuchMethodException$named = function($n, $o, receiver, functionName, arguments_0){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return ExceptionHelper$Dart.createNoSuchMethodException$member(receiver, functionName, arguments_0); | |
} | |
; | |
function native_ExceptionHelper_createNoSuchMethodException(receiver, functionName, arguments_0){ | |
return ExceptionHelper$Dart.createNoSuchMethodException$member(receiver, functionName, arguments_0); | |
} | |
ExceptionHelper$Dart.createNoSuchMethodException$getter = function createNoSuchMethodException$getter(){ | |
return ExceptionHelper$Dart.createNoSuchMethodException$named; | |
} | |
; | |
ExceptionHelper$Dart.createTypeError$member = function(srcType, dstType){ | |
return TypeError$Dart.TypeError$$Factory(srcType, dstType); | |
} | |
; | |
ExceptionHelper$Dart.createTypeError$named = function($n, $o, srcType, dstType){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return ExceptionHelper$Dart.createTypeError$member(srcType, dstType); | |
} | |
; | |
function native_ExceptionHelper_createTypeError(srcType, dstType){ | |
return ExceptionHelper$Dart.createTypeError$member(srcType, dstType); | |
} | |
ExceptionHelper$Dart.createTypeError$getter = function createTypeError$getter(){ | |
return ExceptionHelper$Dart.createTypeError$named; | |
} | |
; | |
ExceptionHelper$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
ExceptionHelper$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
ExceptionHelper$Dart.ExceptionHelper$$Factory = function(){ | |
var tmp$0 = new ExceptionHelper$Dart; | |
tmp$0.$typeInfo = ExceptionHelper$Dart.$lookupRTT(); | |
ExceptionHelper$Dart.$Initializer.call(tmp$0); | |
ExceptionHelper$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function _CoreJsUtil$Dart(){ | |
} | |
_CoreJsUtil$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('_CoreJsUtil$Dart')); | |
} | |
; | |
_CoreJsUtil$Dart.$addTo = function(target){ | |
var rtt = _CoreJsUtil$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
_CoreJsUtil$Dart.prototype.$implements$_CoreJsUtil$Dart = 1; | |
_CoreJsUtil$Dart.prototype.$implements$Object$Dart = 1; | |
_CoreJsUtil$Dart._newMapLiteral$$member_ = function(){ | |
return LinkedHashMapImplementation$Dart.LinkedHashMapImplementation$$Factory(LinkedHashMapImplementation$Dart.$lookupRTT()); | |
} | |
; | |
_CoreJsUtil$Dart._newMapLiteral$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return _CoreJsUtil$Dart._newMapLiteral$$member_(); | |
} | |
; | |
function native__CoreJsUtil__newMapLiteral(){ | |
return _CoreJsUtil$Dart._newMapLiteral$$member_(); | |
} | |
_CoreJsUtil$Dart._newMapLiteral$$getter_ = function _newMapLiteral$$getter_(){ | |
return _CoreJsUtil$Dart._newMapLiteral$$named_; | |
} | |
; | |
_CoreJsUtil$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
_CoreJsUtil$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
_CoreJsUtil$Dart._CoreJsUtil$$Factory = function(){ | |
var tmp$0 = new _CoreJsUtil$Dart; | |
tmp$0.$typeInfo = _CoreJsUtil$Dart.$lookupRTT(); | |
_CoreJsUtil$Dart.$Initializer.call(tmp$0); | |
_CoreJsUtil$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function DateImplementation$Dart(){ | |
} | |
DateImplementation$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('DateImplementation$Dart'), DateImplementation$Dart.$RTTimplements); | |
} | |
; | |
DateImplementation$Dart.$RTTimplements = function(rtt){ | |
DateImplementation$Dart.$addTo(rtt); | |
} | |
; | |
DateImplementation$Dart.$addTo = function(target){ | |
var rtt = DateImplementation$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
Date$Dart.$addTo(target); | |
} | |
; | |
DateImplementation$Dart.prototype.$implements$DateImplementation$Dart = 1; | |
DateImplementation$Dart.prototype.$implements$Date$Dart = 1; | |
DateImplementation$Dart.prototype.$implements$Comparable$Dart = 1; | |
DateImplementation$Dart.prototype.$implements$Object$Dart = 1; | |
DateImplementation$Dart.DateImplementation$$Factory = function(years, month, day, hours, minutes, seconds, milliseconds){ | |
return DateImplementation$Dart.DateImplementation$withTimeZone$18$Factory(years, month, day, hours, minutes, seconds, milliseconds, TimeZoneImplementation$Dart.TimeZoneImplementation$local$22$Factory()); | |
} | |
; | |
DateImplementation$Dart.withTimeZone$Constructor = function(years, month, day, hours, minutes, seconds, milliseconds, timeZone){ | |
Object.$Constructor.call(this); | |
} | |
; | |
DateImplementation$Dart.withTimeZone$Initializer = function(years, month, day, hours, minutes, seconds, milliseconds, timeZone){ | |
Object.$Initializer.call(this); | |
this.timeZone$field = timeZone; | |
this.value$field = DateImplementation$Dart._valueFromDecomposed$$member_(years, month, day, hours, minutes, seconds, milliseconds, timeZone.isUtc$getter()); | |
} | |
; | |
DateImplementation$Dart.DateImplementation$withTimeZone$18$Factory = function(years, month, day, hours, minutes, seconds, milliseconds, timeZone){ | |
var tmp$0 = new DateImplementation$Dart; | |
tmp$0.$typeInfo = DateImplementation$Dart.$lookupRTT(); | |
DateImplementation$Dart.withTimeZone$Initializer.call(tmp$0, years, month, day, hours, minutes, seconds, milliseconds, timeZone); | |
DateImplementation$Dart.withTimeZone$Constructor.call(tmp$0, years, month, day, hours, minutes, seconds, milliseconds, timeZone); | |
return tmp$0; | |
} | |
; | |
DateImplementation$Dart.now$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
DateImplementation$Dart.now$Initializer = function(){ | |
Object.$Initializer.call(this); | |
this.timeZone$field = TimeZoneImplementation$Dart.TimeZoneImplementation$local$22$Factory(); | |
this.value$field = DateImplementation$Dart._now$$member_(); | |
} | |
; | |
DateImplementation$Dart.DateImplementation$now$18$Factory = function(){ | |
var tmp$0 = new DateImplementation$Dart; | |
tmp$0.$typeInfo = DateImplementation$Dart.$lookupRTT(); | |
DateImplementation$Dart.now$Initializer.call(tmp$0); | |
DateImplementation$Dart.now$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
DateImplementation$Dart.fromString$Constructor = function(formattedString){ | |
Object.$Constructor.call(this); | |
} | |
; | |
DateImplementation$Dart.fromString$Initializer = function(formattedString){ | |
Object.$Initializer.call(this); | |
this.timeZone$field = TimeZoneImplementation$Dart.TimeZoneImplementation$local$22$Factory(); | |
this.value$field = DateImplementation$Dart._valueFromString$$member_(formattedString); | |
} | |
; | |
DateImplementation$Dart.DateImplementation$fromString$18$Factory = function(formattedString){ | |
var tmp$0 = new DateImplementation$Dart; | |
tmp$0.$typeInfo = DateImplementation$Dart.$lookupRTT(); | |
DateImplementation$Dart.fromString$Initializer.call(tmp$0, formattedString); | |
DateImplementation$Dart.fromString$Constructor.call(tmp$0, formattedString); | |
return tmp$0; | |
} | |
; | |
DateImplementation$Dart.fromEpoch$Constructor = function(value, timeZone){ | |
Object.$Constructor.call(this); | |
} | |
; | |
DateImplementation$Dart.fromEpoch$Initializer = function(value, timeZone){ | |
Object.$Initializer.call(this); | |
this.value$field = value; | |
this.timeZone$field = timeZone; | |
} | |
; | |
DateImplementation$Dart.DateImplementation$fromEpoch$18$Factory = function(value, timeZone){ | |
var tmp$0 = new DateImplementation$Dart; | |
tmp$0.$typeInfo = DateImplementation$Dart.$lookupRTT(); | |
DateImplementation$Dart.fromEpoch$Initializer.call(tmp$0, value, timeZone); | |
DateImplementation$Dart.fromEpoch$Constructor.call(tmp$0, value, timeZone); | |
return tmp$0; | |
} | |
; | |
DateImplementation$Dart.prototype.EQ$operator = function(other){ | |
var tmp$0; | |
if (!!!(tmp$0 = other , tmp$0 != null && tmp$0.$implements$DateImplementation$Dart)) { | |
return false; | |
} | |
return EQ$operator(this.value$getter(), other.value$getter()) && EQ$operator(this.timeZone$getter(), other.timeZone$getter()); | |
} | |
; | |
DateImplementation$Dart.prototype.compareTo$member = function(other){ | |
return this.value$getter().compareTo$named(1, $noargs, other.value$getter()); | |
} | |
; | |
DateImplementation$Dart.prototype.compareTo$named = function($n, $o, other){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart.prototype.compareTo$member.call(this, other); | |
} | |
; | |
DateImplementation$Dart.prototype.compareTo$getter = function compareTo$getter(){ | |
return $bind(DateImplementation$Dart.prototype.compareTo$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.changeTimeZone$member = function(targetTimeZone){ | |
if (EQ$operator(targetTimeZone, $Dart$Null)) { | |
targetTimeZone = TimeZoneImplementation$Dart.TimeZoneImplementation$local$22$Factory(); | |
} | |
return DateImplementation$Dart.DateImplementation$fromEpoch$18$Factory(this.value$getter(), targetTimeZone); | |
} | |
; | |
DateImplementation$Dart.prototype.changeTimeZone$named = function($n, $o, targetTimeZone){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart.prototype.changeTimeZone$member.call(this, targetTimeZone); | |
} | |
; | |
DateImplementation$Dart.prototype.changeTimeZone$getter = function changeTimeZone$getter(){ | |
return $bind(DateImplementation$Dart.prototype.changeTimeZone$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.year$named = function(){ | |
return this.year$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.year$getter = function(){ | |
return this._getYear$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.month$named = function(){ | |
return this.month$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.month$getter = function(){ | |
return this._getMonth$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.day$named = function(){ | |
return this.day$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.day$getter = function(){ | |
return this._getDay$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.hours$named = function(){ | |
return this.hours$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.hours$getter = function(){ | |
return this._getHours$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.minutes$named = function(){ | |
return this.minutes$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.minutes$getter = function(){ | |
return this._getMinutes$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.seconds$named = function(){ | |
return this.seconds$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.seconds$getter = function(){ | |
return this._getSeconds$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.milliseconds$named = function(){ | |
return this.milliseconds$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.milliseconds$getter = function(){ | |
return this._getMilliseconds$$member_(this.value$getter(), this.isUtc$member()); | |
} | |
; | |
DateImplementation$Dart.prototype.weekday$named = function(){ | |
return this.weekday$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.weekday$getter = function(){ | |
var unixTimeStart = DateImplementation$Dart.DateImplementation$withTimeZone$18$Factory(1970, 1, 1, 0, 0, 0, 0, this.timeZone$getter()); | |
var msSince1970 = this.difference$named(1, $noargs, unixTimeStart).inMilliseconds$getter(); | |
if (LT$operator(this.hours$getter(), 2)) { | |
msSince1970 = ADD$operator(msSince1970, MUL$operator(2, Duration$Dart.MILLISECONDS_PER_HOUR$getter())); | |
} | |
var daysSince1970 = DIV$operator(msSince1970, Duration$Dart.MILLISECONDS_PER_DAY$getter()).floor$named(0, $noargs).toInt$named(0, $noargs); | |
return MOD$operator(ADD$operator(daysSince1970, Date$Dart.THU$getter()), Date$Dart.DAYS_IN_WEEK$getter()); | |
} | |
; | |
DateImplementation$Dart.prototype.isLocalTime$member = function(){ | |
return !this.timeZone$getter().isUtc$getter(); | |
} | |
; | |
DateImplementation$Dart.prototype.isLocalTime$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return DateImplementation$Dart.prototype.isLocalTime$member.call(this); | |
} | |
; | |
DateImplementation$Dart.prototype.isLocalTime$getter = function isLocalTime$getter(){ | |
return $bind(DateImplementation$Dart.prototype.isLocalTime$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.isUtc$member = function(){ | |
return this.timeZone$getter().isUtc$getter(); | |
} | |
; | |
DateImplementation$Dart.prototype.isUtc$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return DateImplementation$Dart.prototype.isUtc$member.call(this); | |
} | |
; | |
DateImplementation$Dart.prototype.isUtc$getter = function isUtc$getter(){ | |
return $bind(DateImplementation$Dart.prototype.isUtc$named, this); | |
} | |
; | |
function DateImplementation$Dart$toString$c0$threeDigits$23_8_2$Hoisted(n){ | |
if (GTE$operator(n, 100)) { | |
return '' + $toString(n) + ''; | |
} | |
if (GT$operator(n, 10)) { | |
return '0' + $toString(n) + ''; | |
} | |
return '00' + $toString(n) + ''; | |
} | |
function DateImplementation$Dart$toString$c0$threeDigits$23_8_2$Hoisted$named($n, $o, n){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart$toString$c0$threeDigits$23_8_2$Hoisted(n); | |
} | |
function DateImplementation$Dart$toString$c1$twoDigits$23_8_2$Hoisted(n){ | |
if (GTE$operator(n, 10)) { | |
return '' + $toString(n) + ''; | |
} | |
return '0' + $toString(n) + ''; | |
} | |
function DateImplementation$Dart$toString$c1$twoDigits$23_8_2$Hoisted$named($n, $o, n){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart$toString$c1$twoDigits$23_8_2$Hoisted(n); | |
} | |
DateImplementation$Dart.prototype.toString$member = function(){ | |
var threeDigits = $bind(DateImplementation$Dart$toString$c0$threeDigits$23_8_2$Hoisted$named, $Dart$Null); | |
var twoDigits = $bind(DateImplementation$Dart$toString$c1$twoDigits$23_8_2$Hoisted$named, $Dart$Null); | |
var m = twoDigits(1, $noargs, this.month$getter()); | |
var d = twoDigits(1, $noargs, this.day$getter()); | |
var h = twoDigits(1, $noargs, this.hours$getter()); | |
var min = twoDigits(1, $noargs, this.minutes$getter()); | |
var sec = twoDigits(1, $noargs, this.seconds$getter()); | |
var ms = threeDigits(1, $noargs, this.milliseconds$getter()); | |
if (this.timeZone$getter().isUtc$getter()) { | |
return '' + $toString(this.year$getter()) + '-' + $toString(m) + '-' + $toString(d) + ' ' + $toString(h) + ':' + $toString(min) + ':' + $toString(sec) + '.' + $toString(ms) + 'Z'; | |
} | |
else { | |
return '' + $toString(this.year$getter()) + '-' + $toString(m) + '-' + $toString(d) + ' ' + $toString(h) + ':' + $toString(min) + ':' + $toString(sec) + '.' + $toString(ms) + ''; | |
} | |
} | |
; | |
DateImplementation$Dart.prototype.toString$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return DateImplementation$Dart.prototype.toString$member.call(this); | |
} | |
; | |
DateImplementation$Dart.prototype.toString$getter = function toString$getter(){ | |
return $bind(DateImplementation$Dart.prototype.toString$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.add$member = function(duration){ | |
return DateImplementation$Dart.DateImplementation$fromEpoch$18$Factory(ADD$operator(this.value$getter(), duration.inMilliseconds$getter()), this.timeZone$getter()); | |
} | |
; | |
DateImplementation$Dart.prototype.add$named = function($n, $o, duration){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart.prototype.add$member.call(this, duration); | |
} | |
; | |
DateImplementation$Dart.prototype.add$getter = function add$getter(){ | |
return $bind(DateImplementation$Dart.prototype.add$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.subtract$member = function(duration){ | |
return DateImplementation$Dart.DateImplementation$fromEpoch$18$Factory(SUB$operator(this.value$getter(), duration.inMilliseconds$getter()), this.timeZone$getter()); | |
} | |
; | |
DateImplementation$Dart.prototype.subtract$named = function($n, $o, duration){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart.prototype.subtract$member.call(this, duration); | |
} | |
; | |
DateImplementation$Dart.prototype.subtract$getter = function subtract$getter(){ | |
return $bind(DateImplementation$Dart.prototype.subtract$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.difference$member = function(other){ | |
return DurationImplementation$Dart.DurationImplementation$$Factory(0, 0, 0, 0, SUB$operator(this.value$getter(), other.value$getter())); | |
} | |
; | |
DateImplementation$Dart.prototype.difference$named = function($n, $o, other){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart.prototype.difference$member.call(this, other); | |
} | |
; | |
DateImplementation$Dart.prototype.difference$getter = function difference$getter(){ | |
return $bind(DateImplementation$Dart.prototype.difference$named, this); | |
} | |
; | |
DateImplementation$Dart.prototype.value$named = function(){ | |
return this.value$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.value$getter = function(){ | |
return this.value$field; | |
} | |
; | |
DateImplementation$Dart.prototype.timeZone$named = function(){ | |
return this.timeZone$getter().apply(this, arguments); | |
} | |
; | |
DateImplementation$Dart.prototype.timeZone$getter = function(){ | |
return this.timeZone$field; | |
} | |
; | |
DateImplementation$Dart._valueFromDecomposed$$member_ = function(years, month, day, hours, minutes, seconds, milliseconds, isUtc){ | |
return native_DateImplementation__valueFromDecomposed(years, month, day, hours, minutes, seconds, milliseconds, isUtc); | |
} | |
; | |
DateImplementation$Dart._valueFromDecomposed$$named_ = function($n, $o, years, month, day, hours, minutes, seconds, milliseconds, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 8) | |
$nsme(); | |
return DateImplementation$Dart._valueFromDecomposed$$member_(years, month, day, hours, minutes, seconds, milliseconds, isUtc); | |
} | |
; | |
DateImplementation$Dart._valueFromDecomposed$$getter_ = function _valueFromDecomposed$$getter_(){ | |
return DateImplementation$Dart._valueFromDecomposed$$named_; | |
} | |
; | |
DateImplementation$Dart._valueFromString$$member_ = function(str){ | |
return native_DateImplementation__valueFromString(str); | |
} | |
; | |
DateImplementation$Dart._valueFromString$$named_ = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return DateImplementation$Dart._valueFromString$$member_(str); | |
} | |
; | |
DateImplementation$Dart._valueFromString$$getter_ = function _valueFromString$$getter_(){ | |
return DateImplementation$Dart._valueFromString$$named_; | |
} | |
; | |
DateImplementation$Dart._now$$member_ = function(){ | |
return native_DateImplementation__now(); | |
} | |
; | |
DateImplementation$Dart._now$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return DateImplementation$Dart._now$$member_(); | |
} | |
; | |
DateImplementation$Dart._now$$getter_ = function _now$$getter_(){ | |
return DateImplementation$Dart._now$$named_; | |
} | |
; | |
DateImplementation$Dart.prototype._getYear$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getYear.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getYear$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getYear$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getYear$$getter_ = function _getYear$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getYear$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype._getMonth$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getMonth.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getMonth$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getMonth$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getMonth$$getter_ = function _getMonth$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getMonth$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype._getDay$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getDay.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getDay$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getDay$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getDay$$getter_ = function _getDay$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getDay$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype._getHours$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getHours.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getHours$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getHours$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getHours$$getter_ = function _getHours$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getHours$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype._getMinutes$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getMinutes.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getMinutes$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getMinutes$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getMinutes$$getter_ = function _getMinutes$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getMinutes$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype._getSeconds$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getSeconds.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getSeconds$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getSeconds$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getSeconds$$getter_ = function _getSeconds$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getSeconds$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype._getMilliseconds$$member_ = function(value, isUtc){ | |
return native_DateImplementation__getMilliseconds.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getMilliseconds$$named_ = function($n, $o, value, isUtc){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return DateImplementation$Dart.prototype._getMilliseconds$$member_.call(this, value, isUtc); | |
} | |
; | |
DateImplementation$Dart.prototype._getMilliseconds$$getter_ = function _getMilliseconds$$getter_(){ | |
return $bind(DateImplementation$Dart.prototype._getMilliseconds$$named_, this); | |
} | |
; | |
DateImplementation$Dart.prototype.$const_id = function(){ | |
return $cls('DateImplementation$Dart') + (':' + $dart_const_id(this.year$field)) + (':' + $dart_const_id(this.month$field)) + (':' + $dart_const_id(this.day$field)) + (':' + $dart_const_id(this.hours$field)) + (':' + $dart_const_id(this.minutes$field)) + (':' + $dart_const_id(this.seconds$field)) + (':' + $dart_const_id(this.milliseconds$field)) + (':' + $dart_const_id(this.weekday$field)) + (':' + $dart_const_id(this.value$field)) + (':' + $dart_const_id(this.timeZone$field)); | |
} | |
; | |
function SendPortImpl$Dart(){ | |
} | |
SendPortImpl$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('SendPortImpl$Dart'), SendPortImpl$Dart.$RTTimplements); | |
} | |
; | |
SendPortImpl$Dart.$RTTimplements = function(rtt){ | |
SendPortImpl$Dart.$addTo(rtt); | |
} | |
; | |
SendPortImpl$Dart.$addTo = function(target){ | |
var rtt = SendPortImpl$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
SendPort$Dart.$addTo(target); | |
} | |
; | |
SendPortImpl$Dart.prototype.$implements$SendPortImpl$Dart = 1; | |
SendPortImpl$Dart.prototype.$implements$SendPort$Dart = 1; | |
SendPortImpl$Dart.prototype.$implements$Hashable$Dart = 1; | |
SendPortImpl$Dart.prototype.$implements$Object$Dart = 1; | |
SendPortImpl$Dart.$Constructor = function(_workerId, _isolateId, _receivePortId){ | |
Object.$Constructor.call(this); | |
} | |
; | |
SendPortImpl$Dart.$Initializer = function(_workerId, _isolateId, _receivePortId){ | |
Object.$Initializer.call(this); | |
this._workerId$$field_ = _workerId; | |
this._isolateId$$field_ = _isolateId; | |
this._receivePortId$$field_ = _receivePortId; | |
} | |
; | |
SendPortImpl$Dart.SendPortImpl$$Factory = function(_workerId, _isolateId, _receivePortId){ | |
var tmp$0 = new SendPortImpl$Dart; | |
tmp$0.$typeInfo = SendPortImpl$Dart.$lookupRTT(); | |
SendPortImpl$Dart.$Initializer.call(tmp$0, _workerId, _isolateId, _receivePortId); | |
SendPortImpl$Dart.$Constructor.call(tmp$0, _workerId, _isolateId, _receivePortId); | |
return tmp$0; | |
} | |
; | |
SendPortImpl$Dart.prototype.send$member = function(message, replyTo){ | |
if (PromiseQueue$Dart.isEmpty$member()) { | |
this._sendNow$$named_(2, $noargs, message, replyTo); | |
} | |
else { | |
this._enqueueSend$$member_(message, replyTo); | |
} | |
} | |
; | |
SendPortImpl$Dart.prototype.send$named = function($n, $o, message, replyTo){ | |
var seen = 0; | |
var def = 0; | |
switch ($n) { | |
case 1: | |
replyTo = $o.replyTo?(++seen , $o.replyTo):(++def , $Dart$Null); | |
} | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return SendPortImpl$Dart.prototype.send$member.call(this, message, replyTo); | |
} | |
; | |
SendPortImpl$Dart.prototype.send$getter = function send$getter(){ | |
return $bind(SendPortImpl$Dart.prototype.send$named, this); | |
} | |
; | |
function SendPortImpl$Dart$_enqueueSend$c0$17_17$Hoisted(dartc_scp$0, ignored){ | |
this._sendNow$$named_(2, $noargs, dartc_scp$0.message, dartc_scp$0.replyTo); | |
} | |
function SendPortImpl$Dart$_enqueueSend$c0$17_17$Hoisted$named($s0, $n, $o, ignored){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return SendPortImpl$Dart$_enqueueSend$c0$17_17$Hoisted.call(this, $s0, ignored); | |
} | |
SendPortImpl$Dart.prototype._enqueueSend$$member_ = function(message, replyTo){ | |
var dartc_scp$0 = {message:message, replyTo:replyTo}; | |
PromiseQueue$Dart.enqueue$member($intern(RTT.setTypeInfo([], Array.$lookupRTT()), [''])).then$named(1, $noargs, $bind(SendPortImpl$Dart$_enqueueSend$c0$17_17$Hoisted$named, this, dartc_scp$0)); | |
} | |
; | |
SendPortImpl$Dart.prototype._enqueueSend$$named_ = function($n, $o, message, replyTo){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return SendPortImpl$Dart.prototype._enqueueSend$$member_.call(this, message, replyTo); | |
} | |
; | |
SendPortImpl$Dart.prototype._enqueueSend$$getter_ = function _enqueueSend$$getter_(){ | |
return $bind(SendPortImpl$Dart.prototype._enqueueSend$$named_, this); | |
} | |
; | |
SendPortImpl$Dart.prototype._sendNow$$member_ = function(message, replyTo){ | |
return native_SendPortImpl__sendNow.call(this, message, replyTo); | |
} | |
; | |
SendPortImpl$Dart.prototype._sendNow$$named_ = function($n, $o, message, replyTo){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return SendPortImpl$Dart.prototype._sendNow$$member_.call(this, message, replyTo); | |
} | |
; | |
SendPortImpl$Dart.prototype._sendNow$$getter_ = function _sendNow$$getter_(){ | |
return $bind(SendPortImpl$Dart.prototype._sendNow$$named_, this); | |
} | |
; | |
SendPortImpl$Dart.prototype.call$member = function(message){ | |
var result = ReceivePortSingleShotImpl$Dart.ReceivePortSingleShotImpl$$Factory(); | |
this.send$named(2, $noargs, message, result.toSendPort$named(0, $noargs)); | |
return result; | |
} | |
; | |
SendPortImpl$Dart.prototype.call$named = function($n, $o, message){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return SendPortImpl$Dart.prototype.call$member.call(this, message); | |
} | |
; | |
SendPortImpl$Dart.prototype.call$getter = function call$getter(){ | |
return $bind(SendPortImpl$Dart.prototype.call$named, this); | |
} | |
; | |
SendPortImpl$Dart.prototype._callNow$$member_ = function(message){ | |
var result = ReceivePortSingleShotImpl$Dart.ReceivePortSingleShotImpl$$Factory(); | |
this._sendNow$$named_(2, $noargs, message, result.toSendPort$named(0, $noargs)); | |
return result; | |
} | |
; | |
SendPortImpl$Dart.prototype._callNow$$named_ = function($n, $o, message){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return SendPortImpl$Dart.prototype._callNow$$member_.call(this, message); | |
} | |
; | |
SendPortImpl$Dart.prototype._callNow$$getter_ = function _callNow$$getter_(){ | |
return $bind(SendPortImpl$Dart.prototype._callNow$$named_, this); | |
} | |
; | |
SendPortImpl$Dart.prototype.EQ$operator = function(other){ | |
var tmp$0; | |
return !!(tmp$0 = other , tmp$0 != null && tmp$0.$implements$SendPortImpl$Dart) && EQ$operator(this._workerId$$getter_(), other._workerId$$getter_()) && EQ$operator(this._isolateId$$getter_(), other._isolateId$$getter_()) && EQ$operator(this._receivePortId$$getter_(), other._receivePortId$$getter_()); | |
} | |
; | |
SendPortImpl$Dart.prototype.hashCode$member = function(){ | |
return BIT_XOR$operator(BIT_XOR$operator(SHL$operator(this._workerId$$getter_(), 16), SHL$operator(this._isolateId$$getter_(), 8)), this._receivePortId$$getter_()); | |
} | |
; | |
SendPortImpl$Dart.prototype.hashCode$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return SendPortImpl$Dart.prototype.hashCode$member.call(this); | |
} | |
; | |
SendPortImpl$Dart.prototype.hashCode$getter = function hashCode$getter(){ | |
return $bind(SendPortImpl$Dart.prototype.hashCode$named, this); | |
} | |
; | |
SendPortImpl$Dart.prototype._receivePortId$$named_ = function(){ | |
return this._receivePortId$$getter_().apply(this, arguments); | |
} | |
; | |
SendPortImpl$Dart.prototype._receivePortId$$getter_ = function(){ | |
return this._receivePortId$$field_; | |
} | |
; | |
SendPortImpl$Dart.prototype._isolateId$$named_ = function(){ | |
return this._isolateId$$getter_().apply(this, arguments); | |
} | |
; | |
SendPortImpl$Dart.prototype._isolateId$$getter_ = function(){ | |
return this._isolateId$$field_; | |
} | |
; | |
SendPortImpl$Dart.prototype._workerId$$named_ = function(){ | |
return this._workerId$$getter_().apply(this, arguments); | |
} | |
; | |
SendPortImpl$Dart.prototype._workerId$$getter_ = function(){ | |
return this._workerId$$field_; | |
} | |
; | |
SendPortImpl$Dart._create$$member_ = function(workerId, isolateId, receivePortId){ | |
return SendPortImpl$Dart.SendPortImpl$$Factory(workerId, isolateId, receivePortId); | |
} | |
; | |
SendPortImpl$Dart._create$$named_ = function($n, $o, workerId, isolateId, receivePortId){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return SendPortImpl$Dart._create$$member_(workerId, isolateId, receivePortId); | |
} | |
; | |
function native_SendPortImpl__create(workerId, isolateId, receivePortId){ | |
return SendPortImpl$Dart._create$$member_(workerId, isolateId, receivePortId); | |
} | |
SendPortImpl$Dart._create$$getter_ = function _create$$getter_(){ | |
return SendPortImpl$Dart._create$$named_; | |
} | |
; | |
SendPortImpl$Dart._getReceivePortId$$member_ = function(port){ | |
return port._receivePortId$$getter_(); | |
} | |
; | |
SendPortImpl$Dart._getReceivePortId$$named_ = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return SendPortImpl$Dart._getReceivePortId$$member_(port); | |
} | |
; | |
function native_SendPortImpl__getReceivePortId(port){ | |
return SendPortImpl$Dart._getReceivePortId$$member_(port); | |
} | |
SendPortImpl$Dart._getReceivePortId$$getter_ = function _getReceivePortId$$getter_(){ | |
return SendPortImpl$Dart._getReceivePortId$$named_; | |
} | |
; | |
SendPortImpl$Dart._getIsolateId$$member_ = function(port){ | |
return port._isolateId$$getter_(); | |
} | |
; | |
SendPortImpl$Dart._getIsolateId$$named_ = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return SendPortImpl$Dart._getIsolateId$$member_(port); | |
} | |
; | |
function native_SendPortImpl__getIsolateId(port){ | |
return SendPortImpl$Dart._getIsolateId$$member_(port); | |
} | |
SendPortImpl$Dart._getIsolateId$$getter_ = function _getIsolateId$$getter_(){ | |
return SendPortImpl$Dart._getIsolateId$$named_; | |
} | |
; | |
SendPortImpl$Dart._getWorkerId$$member_ = function(port){ | |
return port._workerId$$getter_(); | |
} | |
; | |
SendPortImpl$Dart._getWorkerId$$named_ = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return SendPortImpl$Dart._getWorkerId$$member_(port); | |
} | |
; | |
function native_SendPortImpl__getWorkerId(port){ | |
return SendPortImpl$Dart._getWorkerId$$member_(port); | |
} | |
SendPortImpl$Dart._getWorkerId$$getter_ = function _getWorkerId$$getter_(){ | |
return SendPortImpl$Dart._getWorkerId$$named_; | |
} | |
; | |
SendPortImpl$Dart.prototype.$const_id = function(){ | |
return $cls('SendPortImpl$Dart') + (':' + $dart_const_id(this._receivePortId$$field_)) + (':' + $dart_const_id(this._isolateId$$field_)) + (':' + $dart_const_id(this._workerId$$field_)); | |
} | |
; | |
function ReceivePortFactory$Dart(){ | |
} | |
ReceivePortFactory$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ReceivePortFactory$Dart')); | |
} | |
; | |
ReceivePortFactory$Dart.$addTo = function(target){ | |
var rtt = ReceivePortFactory$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
ReceivePortFactory$Dart.prototype.$implements$ReceivePortFactory$Dart = 1; | |
ReceivePortFactory$Dart.prototype.$implements$Object$Dart = 1; | |
ReceivePortFactory$Dart.ReceivePort$$Factory = function(){ | |
return ReceivePortImpl$Dart.ReceivePortImpl$$Factory(); | |
} | |
; | |
ReceivePortFactory$Dart.ReceivePort$singleShot$11$Factory = function(){ | |
return ReceivePortSingleShotImpl$Dart.ReceivePortSingleShotImpl$$Factory(); | |
} | |
; | |
function ReceivePortImpl$Dart(){ | |
} | |
ReceivePortImpl$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ReceivePortImpl$Dart'), ReceivePortImpl$Dart.$RTTimplements); | |
} | |
; | |
ReceivePortImpl$Dart.$RTTimplements = function(rtt){ | |
ReceivePortImpl$Dart.$addTo(rtt); | |
} | |
; | |
ReceivePortImpl$Dart.$addTo = function(target){ | |
var rtt = ReceivePortImpl$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
ReceivePort$Dart.$addTo(target); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.$implements$ReceivePortImpl$Dart = 1; | |
ReceivePortImpl$Dart.prototype.$implements$ReceivePort$Dart = 1; | |
ReceivePortImpl$Dart.prototype.$implements$Object$Dart = 1; | |
ReceivePortImpl$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
this._register$$member_(this._id$$getter_()); | |
} | |
; | |
ReceivePortImpl$Dart.$Initializer = function(){ | |
var tmp$1, tmp$0; | |
Object.$Initializer.call(this); | |
this._callback$$field_ = $Dart$Null; | |
this._id$$field_ = (tmp$0 = ReceivePortImpl$Dart._nextFreeId$$getter_() , (ReceivePortImpl$Dart._nextFreeId$$setter_(tmp$1 = ADD$operator(tmp$0, 1)) , tmp$1 , tmp$0)); | |
} | |
; | |
ReceivePortImpl$Dart.ReceivePortImpl$$Factory = function(){ | |
var tmp$0 = new ReceivePortImpl$Dart; | |
tmp$0.$typeInfo = ReceivePortImpl$Dart.$lookupRTT(); | |
ReceivePortImpl$Dart.$Initializer.call(tmp$0); | |
ReceivePortImpl$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
ReceivePortImpl$Dart.prototype.receive$member = function(onMessage){ | |
var tmp$0; | |
this._callback$$setter_(tmp$0 = onMessage) , tmp$0; | |
} | |
; | |
ReceivePortImpl$Dart.prototype.receive$named = function($n, $o, onMessage){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ReceivePortImpl$Dart.prototype.receive$member.call(this, onMessage); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.receive$getter = function receive$getter(){ | |
return $bind(ReceivePortImpl$Dart.prototype.receive$named, this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.close$member = function(){ | |
var tmp$0; | |
this._callback$$setter_(tmp$0 = $Dart$Null) , tmp$0; | |
this._unregister$$member_(this._id$$getter_()); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.close$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortImpl$Dart.prototype.close$member.call(this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.close$getter = function close$getter(){ | |
return $bind(ReceivePortImpl$Dart.prototype.close$named, this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.toSendPort$member = function(){ | |
return this._toNewSendPort$$member_(); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.toSendPort$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortImpl$Dart.prototype.toSendPort$member.call(this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype.toSendPort$getter = function toSendPort$getter(){ | |
return $bind(ReceivePortImpl$Dart.prototype.toSendPort$named, this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._toNewSendPort$$member_ = function(){ | |
return SendPortImpl$Dart.SendPortImpl$$Factory(ReceivePortImpl$Dart._currentWorkerId$$member_(), ReceivePortImpl$Dart._currentIsolateId$$member_(), this._id$$getter_()); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._toNewSendPort$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortImpl$Dart.prototype._toNewSendPort$$member_.call(this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._toNewSendPort$$getter_ = function _toNewSendPort$$getter_(){ | |
return $bind(ReceivePortImpl$Dart.prototype._toNewSendPort$$named_, this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._id$$named_ = function(){ | |
return this._id$$getter_().apply(this, arguments); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._id$$getter_ = function(){ | |
return this._id$$field_; | |
} | |
; | |
ReceivePortImpl$Dart.prototype._id$$setter_ = function(tmp$0){ | |
this._id$$field_ = tmp$0; | |
} | |
; | |
ReceivePortImpl$Dart.prototype._callback$$named_ = function(){ | |
return this._callback$$getter_().apply(this, arguments); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._callback$$getter_ = function(){ | |
var tmp$0 = this._callback$$field_; | |
var tmp$1 = static$initializing; | |
if (tmp$0 === tmp$1) | |
throw 'circular initialization'; | |
if (tmp$0 !== static$uninitialized) | |
return tmp$0; | |
this._callback$$field_ = tmp$1; | |
var tmp$2 = $Dart$Null; | |
this._callback$$field_ = tmp$2; | |
return tmp$2; | |
} | |
; | |
ReceivePortImpl$Dart.prototype._callback$$setter_ = function(tmp$0){ | |
this._callback$$field_ = tmp$0; | |
} | |
; | |
ReceivePortImpl$Dart._nextFreeId$$named_ = function(){ | |
return ReceivePortImpl$Dart._nextFreeId$$getter_().apply(this, arguments); | |
} | |
; | |
ReceivePortImpl$Dart._nextFreeId$$getter_ = function(){ | |
return isolate$current.ReceivePortImpl$Dart_nextFreeId$$field_; | |
} | |
; | |
ReceivePortImpl$Dart._nextFreeId$$setter_ = function(tmp$0){ | |
isolate$current.ReceivePortImpl$Dart_nextFreeId$$field_ = tmp$0; | |
} | |
; | |
ReceivePortImpl$Dart.prototype._register$$member_ = function(id){ | |
return native_ReceivePortImpl__register.call(this, id); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._register$$named_ = function($n, $o, id){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ReceivePortImpl$Dart.prototype._register$$member_.call(this, id); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._register$$getter_ = function _register$$getter_(){ | |
return $bind(ReceivePortImpl$Dart.prototype._register$$named_, this); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._unregister$$member_ = function(id){ | |
return native_ReceivePortImpl__unregister.call(this, id); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._unregister$$named_ = function($n, $o, id){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ReceivePortImpl$Dart.prototype._unregister$$member_.call(this, id); | |
} | |
; | |
ReceivePortImpl$Dart.prototype._unregister$$getter_ = function _unregister$$getter_(){ | |
return $bind(ReceivePortImpl$Dart.prototype._unregister$$named_, this); | |
} | |
; | |
ReceivePortImpl$Dart._currentWorkerId$$member_ = function(){ | |
return native_ReceivePortImpl__currentWorkerId(); | |
} | |
; | |
ReceivePortImpl$Dart._currentWorkerId$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortImpl$Dart._currentWorkerId$$member_(); | |
} | |
; | |
ReceivePortImpl$Dart._currentWorkerId$$getter_ = function _currentWorkerId$$getter_(){ | |
return ReceivePortImpl$Dart._currentWorkerId$$named_; | |
} | |
; | |
ReceivePortImpl$Dart._currentIsolateId$$member_ = function(){ | |
return native_ReceivePortImpl__currentIsolateId(); | |
} | |
; | |
ReceivePortImpl$Dart._currentIsolateId$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortImpl$Dart._currentIsolateId$$member_(); | |
} | |
; | |
ReceivePortImpl$Dart._currentIsolateId$$getter_ = function _currentIsolateId$$getter_(){ | |
return ReceivePortImpl$Dart._currentIsolateId$$named_; | |
} | |
; | |
ReceivePortImpl$Dart._invokeCallback$$member_ = function(port, message, replyTo){ | |
if (port._callback$$getter_() != null) { | |
port._callback$$getter_()(2, $noargs, message, replyTo); | |
} | |
} | |
; | |
ReceivePortImpl$Dart._invokeCallback$$named_ = function($n, $o, port, message, replyTo){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return ReceivePortImpl$Dart._invokeCallback$$member_(port, message, replyTo); | |
} | |
; | |
function native_ReceivePortImpl__invokeCallback(port, message, replyTo){ | |
return ReceivePortImpl$Dart._invokeCallback$$member_(port, message, replyTo); | |
} | |
ReceivePortImpl$Dart._invokeCallback$$getter_ = function _invokeCallback$$getter_(){ | |
return ReceivePortImpl$Dart._invokeCallback$$named_; | |
} | |
; | |
ReceivePortImpl$Dart._getId$$member_ = function(port){ | |
return port._id$$getter_(); | |
} | |
; | |
ReceivePortImpl$Dart._getId$$named_ = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ReceivePortImpl$Dart._getId$$member_(port); | |
} | |
; | |
function native_ReceivePortImpl__getId(port){ | |
return ReceivePortImpl$Dart._getId$$member_(port); | |
} | |
ReceivePortImpl$Dart._getId$$getter_ = function _getId$$getter_(){ | |
return ReceivePortImpl$Dart._getId$$named_; | |
} | |
; | |
ReceivePortImpl$Dart._getCallback$$member_ = function(port){ | |
return port._callback$$getter_(); | |
} | |
; | |
ReceivePortImpl$Dart._getCallback$$named_ = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ReceivePortImpl$Dart._getCallback$$member_(port); | |
} | |
; | |
function native_ReceivePortImpl__getCallback(port){ | |
return ReceivePortImpl$Dart._getCallback$$member_(port); | |
} | |
ReceivePortImpl$Dart._getCallback$$getter_ = function _getCallback$$getter_(){ | |
return ReceivePortImpl$Dart._getCallback$$named_; | |
} | |
; | |
function ReceivePortSingleShotImpl$Dart(){ | |
} | |
ReceivePortSingleShotImpl$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('ReceivePortSingleShotImpl$Dart'), ReceivePortSingleShotImpl$Dart.$RTTimplements); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.$RTTimplements = function(rtt){ | |
ReceivePortSingleShotImpl$Dart.$addTo(rtt); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.$addTo = function(target){ | |
var rtt = ReceivePortSingleShotImpl$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
ReceivePort$Dart.$addTo(target); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.$implements$ReceivePortSingleShotImpl$Dart = 1; | |
ReceivePortSingleShotImpl$Dart.prototype.$implements$ReceivePort$Dart = 1; | |
ReceivePortSingleShotImpl$Dart.prototype.$implements$Object$Dart = 1; | |
ReceivePortSingleShotImpl$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
this._port$$field_ = ReceivePortImpl$Dart.ReceivePortImpl$$Factory(); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.ReceivePortSingleShotImpl$$Factory = function(){ | |
var tmp$0 = new ReceivePortSingleShotImpl$Dart; | |
tmp$0.$typeInfo = ReceivePortSingleShotImpl$Dart.$lookupRTT(); | |
ReceivePortSingleShotImpl$Dart.$Initializer.call(tmp$0); | |
ReceivePortSingleShotImpl$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function ReceivePortSingleShotImpl$Dart$receive$c0$30_30$Hoisted(dartc_scp$0, message_0, replyTo_0){ | |
this._port$$getter_().close$named(0, $noargs); | |
dartc_scp$0.callback(2, $noargs, message_0, replyTo_0); | |
} | |
function ReceivePortSingleShotImpl$Dart$receive$c0$30_30$Hoisted$named($s0, $n, $o, message, replyTo){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return ReceivePortSingleShotImpl$Dart$receive$c0$30_30$Hoisted.call(this, $s0, message, replyTo); | |
} | |
ReceivePortSingleShotImpl$Dart.prototype.receive$member = function(callback){ | |
var dartc_scp$0 = {callback:callback}; | |
this._port$$getter_().receive$named(1, $noargs, $bind(ReceivePortSingleShotImpl$Dart$receive$c0$30_30$Hoisted$named, this, dartc_scp$0)); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.receive$named = function($n, $o, callback){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return ReceivePortSingleShotImpl$Dart.prototype.receive$member.call(this, callback); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.receive$getter = function receive$getter(){ | |
return $bind(ReceivePortSingleShotImpl$Dart.prototype.receive$named, this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.close$member = function(){ | |
this._port$$getter_().close$named(0, $noargs); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.close$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortSingleShotImpl$Dart.prototype.close$member.call(this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.close$getter = function close$getter(){ | |
return $bind(ReceivePortSingleShotImpl$Dart.prototype.close$named, this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.toSendPort$member = function(){ | |
return this._toNewSendPort$$member_(); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.toSendPort$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortSingleShotImpl$Dart.prototype.toSendPort$member.call(this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype.toSendPort$getter = function toSendPort$getter(){ | |
return $bind(ReceivePortSingleShotImpl$Dart.prototype.toSendPort$named, this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype._toNewSendPort$$member_ = function(){ | |
return this._port$$getter_()._toNewSendPort$$named_(0, $noargs); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype._toNewSendPort$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return ReceivePortSingleShotImpl$Dart.prototype._toNewSendPort$$member_.call(this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype._toNewSendPort$$getter_ = function _toNewSendPort$$getter_(){ | |
return $bind(ReceivePortSingleShotImpl$Dart.prototype._toNewSendPort$$named_, this); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype._port$$named_ = function(){ | |
return this._port$$getter_().apply(this, arguments); | |
} | |
; | |
ReceivePortSingleShotImpl$Dart.prototype._port$$getter_ = function(){ | |
return this._port$$field_; | |
} | |
; | |
function IsolateNatives$Dart(){ | |
} | |
IsolateNatives$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('IsolateNatives$Dart')); | |
} | |
; | |
IsolateNatives$Dart.$addTo = function(target){ | |
var rtt = IsolateNatives$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
IsolateNatives$Dart.prototype.$implements$IsolateNatives$Dart = 1; | |
IsolateNatives$Dart.prototype.$implements$Object$Dart = 1; | |
function IsolateNatives$Dart$spawn$c0$19_19$Hoisted(dartc_scp$1, msg, replyPort){ | |
assert(EQ$operator(msg, _SPAWNED_SIGNAL$$getter_())); | |
dartc_scp$1.result.complete$named(1, $noargs, replyPort); | |
} | |
function IsolateNatives$Dart$spawn$c0$19_19$Hoisted$named($s0, $n, $o, msg, replyPort){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return IsolateNatives$Dart$spawn$c0$19_19$Hoisted($s0, msg, replyPort); | |
} | |
IsolateNatives$Dart.spawn$member = function(isolate, isLight){ | |
var dartc_scp$1; | |
dartc_scp$1 = {}; | |
dartc_scp$1.result = PromiseImpl$Dart.PromiseImpl$$Factory(PromiseImpl$Dart.$lookupRTT([SendPort$Dart.$lookupRTT()])); | |
var port = ReceivePortFactory$Dart.ReceivePort$singleShot$11$Factory(); | |
port.receive$named(1, $noargs, $bind(IsolateNatives$Dart$spawn$c0$19_19$Hoisted$named, $Dart$Null, dartc_scp$1)); | |
IsolateNatives$Dart._spawn$$member_(isolate, isLight, port.toSendPort$named(0, $noargs)); | |
return dartc_scp$1.result; | |
dartc_scp$1 = $Dart$Null; | |
} | |
; | |
IsolateNatives$Dart.spawn$named = function($n, $o, isolate, isLight){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return IsolateNatives$Dart.spawn$member(isolate, isLight); | |
} | |
; | |
IsolateNatives$Dart.spawn$getter = function spawn$getter(){ | |
return IsolateNatives$Dart.spawn$named; | |
} | |
; | |
IsolateNatives$Dart._spawn$$member_ = function(isolate, light, port){ | |
return native_IsolateNatives__spawn(isolate, light, port); | |
} | |
; | |
IsolateNatives$Dart._spawn$$named_ = function($n, $o, isolate, light, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return IsolateNatives$Dart._spawn$$member_(isolate, light, port); | |
} | |
; | |
IsolateNatives$Dart._spawn$$getter_ = function _spawn$$getter_(){ | |
return IsolateNatives$Dart._spawn$$named_; | |
} | |
; | |
IsolateNatives$Dart.bind$member = function(f){ | |
return native_IsolateNatives_bind(f); | |
} | |
; | |
IsolateNatives$Dart.bind$named = function($n, $o, f){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return IsolateNatives$Dart.bind$member(f); | |
} | |
; | |
IsolateNatives$Dart.bind$getter = function bind$getter(){ | |
return IsolateNatives$Dart.bind$named; | |
} | |
; | |
IsolateNatives$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
IsolateNatives$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
IsolateNatives$Dart.IsolateNatives$$Factory = function(){ | |
var tmp$0 = new IsolateNatives$Dart; | |
tmp$0.$typeInfo = IsolateNatives$Dart.$lookupRTT(); | |
IsolateNatives$Dart.$Initializer.call(tmp$0); | |
IsolateNatives$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function _IsolateJsUtil$Dart(){ | |
} | |
_IsolateJsUtil$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('_IsolateJsUtil$Dart')); | |
} | |
; | |
_IsolateJsUtil$Dart.$addTo = function(target){ | |
var rtt = _IsolateJsUtil$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
_IsolateJsUtil$Dart.prototype.$implements$_IsolateJsUtil$Dart = 1; | |
_IsolateJsUtil$Dart.prototype.$implements$Object$Dart = 1; | |
_IsolateJsUtil$Dart._promiseQueueProcess$$member_ = function(){ | |
PromiseQueue$Dart.process$member(); | |
} | |
; | |
_IsolateJsUtil$Dart._promiseQueueProcess$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return _IsolateJsUtil$Dart._promiseQueueProcess$$member_(); | |
} | |
; | |
function native__IsolateJsUtil__promiseQueueProcess(){ | |
return _IsolateJsUtil$Dart._promiseQueueProcess$$member_(); | |
} | |
_IsolateJsUtil$Dart._promiseQueueProcess$$getter_ = function _promiseQueueProcess$$getter_(){ | |
return _IsolateJsUtil$Dart._promiseQueueProcess$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart._startIsolate$$member_ = function(isolate, replyTo){ | |
var port = ReceivePortFactory$Dart.ReceivePort$$Factory(); | |
replyTo.send$named(2, $noargs, _SPAWNED_SIGNAL$$getter_(), port.toSendPort$named(0, $noargs)); | |
isolate._run$$named_(1, $noargs, port); | |
} | |
; | |
_IsolateJsUtil$Dart._startIsolate$$named_ = function($n, $o, isolate, replyTo){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return _IsolateJsUtil$Dart._startIsolate$$member_(isolate, replyTo); | |
} | |
; | |
function native__IsolateJsUtil__startIsolate(isolate, replyTo){ | |
return _IsolateJsUtil$Dart._startIsolate$$member_(isolate, replyTo); | |
} | |
_IsolateJsUtil$Dart._startIsolate$$getter_ = function _startIsolate$$getter_(){ | |
return _IsolateJsUtil$Dart._startIsolate$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart._toSendPort$$member_ = function(port){ | |
return port.toSendPort$named(0, $noargs); | |
} | |
; | |
_IsolateJsUtil$Dart._toSendPort$$named_ = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _IsolateJsUtil$Dart._toSendPort$$member_(port); | |
} | |
; | |
function native__IsolateJsUtil__toSendPort(port){ | |
return _IsolateJsUtil$Dart._toSendPort$$member_(port); | |
} | |
_IsolateJsUtil$Dart._toSendPort$$getter_ = function _toSendPort$$getter_(){ | |
return _IsolateJsUtil$Dart._toSendPort$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart._print$$member_ = function(msg){ | |
print$getter()(1, $noargs, msg); | |
} | |
; | |
_IsolateJsUtil$Dart._print$$named_ = function($n, $o, msg){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _IsolateJsUtil$Dart._print$$member_(msg); | |
} | |
; | |
function native__IsolateJsUtil__print(msg){ | |
return _IsolateJsUtil$Dart._print$$member_(msg); | |
} | |
_IsolateJsUtil$Dart._print$$getter_ = function _print$$getter_(){ | |
return _IsolateJsUtil$Dart._print$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart._copyObject$$member_ = function(obj){ | |
return Copier$Dart.Copier$$Factory().traverse$named(1, $noargs, obj); | |
} | |
; | |
_IsolateJsUtil$Dart._copyObject$$named_ = function($n, $o, obj){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _IsolateJsUtil$Dart._copyObject$$member_(obj); | |
} | |
; | |
function native__IsolateJsUtil__copyObject(obj){ | |
return _IsolateJsUtil$Dart._copyObject$$member_(obj); | |
} | |
_IsolateJsUtil$Dart._copyObject$$getter_ = function _copyObject$$getter_(){ | |
return _IsolateJsUtil$Dart._copyObject$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart._serializeObject$$member_ = function(obj){ | |
return Serializer$Dart.Serializer$$Factory().traverse$named(1, $noargs, obj); | |
} | |
; | |
_IsolateJsUtil$Dart._serializeObject$$named_ = function($n, $o, obj){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _IsolateJsUtil$Dart._serializeObject$$member_(obj); | |
} | |
; | |
function native__IsolateJsUtil__serializeObject(obj){ | |
return _IsolateJsUtil$Dart._serializeObject$$member_(obj); | |
} | |
_IsolateJsUtil$Dart._serializeObject$$getter_ = function _serializeObject$$getter_(){ | |
return _IsolateJsUtil$Dart._serializeObject$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart._deserializeMessage$$member_ = function(message){ | |
return Deserializer$Dart.Deserializer$$Factory().deserialize$named(1, $noargs, message); | |
} | |
; | |
_IsolateJsUtil$Dart._deserializeMessage$$named_ = function($n, $o, message){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return _IsolateJsUtil$Dart._deserializeMessage$$member_(message); | |
} | |
; | |
function native__IsolateJsUtil__deserializeMessage(message){ | |
return _IsolateJsUtil$Dart._deserializeMessage$$member_(message); | |
} | |
_IsolateJsUtil$Dart._deserializeMessage$$getter_ = function _deserializeMessage$$getter_(){ | |
return _IsolateJsUtil$Dart._deserializeMessage$$named_; | |
} | |
; | |
_IsolateJsUtil$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
_IsolateJsUtil$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
_IsolateJsUtil$Dart._IsolateJsUtil$$Factory = function(){ | |
var tmp$0 = new _IsolateJsUtil$Dart; | |
tmp$0.$typeInfo = _IsolateJsUtil$Dart.$lookupRTT(); | |
_IsolateJsUtil$Dart.$Initializer.call(tmp$0); | |
_IsolateJsUtil$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function _SPAWNED_SIGNAL$$getter_(){ | |
return 'spawned'; | |
} | |
function MessageTraverser$Dart(){ | |
} | |
MessageTraverser$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('MessageTraverser$Dart')); | |
} | |
; | |
MessageTraverser$Dart.$addTo = function(target){ | |
var rtt = MessageTraverser$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
MessageTraverser$Dart.prototype.$implements$MessageTraverser$Dart = 1; | |
MessageTraverser$Dart.prototype.$implements$Object$Dart = 1; | |
MessageTraverser$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
MessageTraverser$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
MessageTraverser$Dart.MessageTraverser$$Factory = function(){ | |
var tmp$0 = new MessageTraverser$Dart; | |
tmp$0.$typeInfo = MessageTraverser$Dart.$lookupRTT(); | |
MessageTraverser$Dart.$Initializer.call(tmp$0); | |
MessageTraverser$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
MessageTraverser$Dart.isPrimitive$member = function(x){ | |
var tmp$0; | |
return x == null || String.$instanceOf(x) || !!(tmp$0 = x , tmp$0 != null && tmp$0.$implements$num$Dart) || Boolean.$instanceOf(x); | |
} | |
; | |
MessageTraverser$Dart.isPrimitive$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.isPrimitive$member(x); | |
} | |
; | |
MessageTraverser$Dart.isPrimitive$getter = function isPrimitive$getter(){ | |
return MessageTraverser$Dart.isPrimitive$named; | |
} | |
; | |
MessageTraverser$Dart.prototype.traverse$member = function(x){ | |
var tmp$0; | |
if (MessageTraverser$Dart.isPrimitive$member(x)) { | |
return this.visitPrimitive$member(x); | |
} | |
this._taggedObjects$$setter_(tmp$0 = ListFactory$Dart.List$$Factory(null, $Dart$Null)) , tmp$0; | |
var result = $Dart$Null; | |
try { | |
result = this._dispatch$$member_(x); | |
} | |
finally { | |
this._cleanup$$member_(); | |
} | |
return result; | |
} | |
; | |
MessageTraverser$Dart.prototype.traverse$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.traverse$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.traverse$getter = function traverse$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.traverse$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._cleanup$$member_ = function(){ | |
var tmp$1, tmp$0; | |
var len = this._taggedObjects$$getter_().length$getter(); | |
{ | |
var i = 0; | |
for (; LT$operator(i, len); tmp$0 = i , (i = ADD$operator(tmp$0, 1) , tmp$0)) { | |
this._clearAttachedInfo$$member_(this._taggedObjects$$getter_().INDEX$operator(i)); | |
} | |
} | |
this._taggedObjects$$setter_(tmp$1 = $Dart$Null) , tmp$1; | |
} | |
; | |
MessageTraverser$Dart.prototype._cleanup$$named_ = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._cleanup$$member_.call(this); | |
} | |
; | |
MessageTraverser$Dart.prototype._cleanup$$getter_ = function _cleanup$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._cleanup$$named_, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._attachInfo$$member_ = function(o, info){ | |
this._taggedObjects$$getter_().add$named(1, $noargs, o); | |
this._setAttachedInfo$$member_(o, info); | |
} | |
; | |
MessageTraverser$Dart.prototype._attachInfo$$named_ = function($n, $o, o, info){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._attachInfo$$member_.call(this, o, info); | |
} | |
; | |
MessageTraverser$Dart.prototype._attachInfo$$getter_ = function _attachInfo$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._attachInfo$$named_, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._getInfo$$member_ = function(o){ | |
return this._getAttachedInfo$$member_(o); | |
} | |
; | |
MessageTraverser$Dart.prototype._getInfo$$named_ = function($n, $o, o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._getInfo$$member_.call(this, o); | |
} | |
; | |
MessageTraverser$Dart.prototype._getInfo$$getter_ = function _getInfo$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._getInfo$$named_, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._dispatch$$member_ = function(x){ | |
var tmp$1, tmp$2, tmp$3, tmp$4, tmp$0; | |
if (MessageTraverser$Dart.isPrimitive$member(x)) { | |
return this.visitPrimitive$member(x); | |
} | |
if (!!(tmp$0 = x , tmp$0 != null && tmp$0.$implements$List$Dart)) { | |
return this.visitList$member(x); | |
} | |
if (!!(tmp$1 = x , tmp$1 != null && tmp$1.$implements$Map$Dart)) { | |
return this.visitMap$member(x); | |
} | |
if (!!(tmp$2 = x , tmp$2 != null && tmp$2.$implements$SendPortImpl$Dart)) { | |
return this.visitSendPort$member(x); | |
} | |
if (!!(tmp$3 = x , tmp$3 != null && tmp$3.$implements$ReceivePortImpl$Dart)) { | |
return this.visitReceivePort$member(x); | |
} | |
if (!!(tmp$4 = x , tmp$4 != null && tmp$4.$implements$ReceivePortSingleShotImpl$Dart)) { | |
return this.visitReceivePortSingleShot$member(x); | |
} | |
$Dart$ThrowException('Message serialization: Illegal value ' + $toString(x) + ' passed'); | |
} | |
; | |
MessageTraverser$Dart.prototype._dispatch$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._dispatch$$member_.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype._dispatch$$getter_ = function _dispatch$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._dispatch$$named_, this); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitPrimitive$member = function(x){ | |
} | |
; | |
MessageTraverser$Dart.prototype.visitPrimitive$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.visitPrimitive$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitPrimitive$getter = function visitPrimitive$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.visitPrimitive$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitList$member = function(x){ | |
} | |
; | |
MessageTraverser$Dart.prototype.visitList$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.visitList$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitList$getter = function visitList$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.visitList$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitMap$member = function(x){ | |
} | |
; | |
MessageTraverser$Dart.prototype.visitMap$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.visitMap$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitMap$getter = function visitMap$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.visitMap$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitSendPort$member = function(x){ | |
} | |
; | |
MessageTraverser$Dart.prototype.visitSendPort$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.visitSendPort$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitSendPort$getter = function visitSendPort$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.visitSendPort$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitReceivePort$member = function(x){ | |
} | |
; | |
MessageTraverser$Dart.prototype.visitReceivePort$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.visitReceivePort$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitReceivePort$getter = function visitReceivePort$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.visitReceivePort$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitReceivePortSingleShot$member = function(x){ | |
} | |
; | |
MessageTraverser$Dart.prototype.visitReceivePortSingleShot$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype.visitReceivePortSingleShot$member.call(this, x); | |
} | |
; | |
MessageTraverser$Dart.prototype.visitReceivePortSingleShot$getter = function visitReceivePortSingleShot$getter(){ | |
return $bind(MessageTraverser$Dart.prototype.visitReceivePortSingleShot$named, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._taggedObjects$$named_ = function(){ | |
return this._taggedObjects$$getter_().apply(this, arguments); | |
} | |
; | |
MessageTraverser$Dart.prototype._taggedObjects$$getter_ = function(){ | |
return this._taggedObjects$$field_; | |
} | |
; | |
MessageTraverser$Dart.prototype._taggedObjects$$setter_ = function(tmp$0){ | |
this._taggedObjects$$field_ = tmp$0; | |
} | |
; | |
MessageTraverser$Dart.prototype._clearAttachedInfo$$member_ = function(obj){ | |
return native_MessageTraverser__clearAttachedInfo.call(this, obj); | |
} | |
; | |
MessageTraverser$Dart.prototype._clearAttachedInfo$$named_ = function($n, $o, obj){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._clearAttachedInfo$$member_.call(this, obj); | |
} | |
; | |
MessageTraverser$Dart.prototype._clearAttachedInfo$$getter_ = function _clearAttachedInfo$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._clearAttachedInfo$$named_, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._setAttachedInfo$$member_ = function(o, info){ | |
return native_MessageTraverser__setAttachedInfo.call(this, o, info); | |
} | |
; | |
MessageTraverser$Dart.prototype._setAttachedInfo$$named_ = function($n, $o, o, info){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._setAttachedInfo$$member_.call(this, o, info); | |
} | |
; | |
MessageTraverser$Dart.prototype._setAttachedInfo$$getter_ = function _setAttachedInfo$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._setAttachedInfo$$named_, this); | |
} | |
; | |
MessageTraverser$Dart.prototype._getAttachedInfo$$member_ = function(o){ | |
return native_MessageTraverser__getAttachedInfo.call(this, o); | |
} | |
; | |
MessageTraverser$Dart.prototype._getAttachedInfo$$named_ = function($n, $o, o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MessageTraverser$Dart.prototype._getAttachedInfo$$member_.call(this, o); | |
} | |
; | |
MessageTraverser$Dart.prototype._getAttachedInfo$$getter_ = function _getAttachedInfo$$getter_(){ | |
return $bind(MessageTraverser$Dart.prototype._getAttachedInfo$$named_, this); | |
} | |
; | |
function Copier$Dart(){ | |
} | |
Copier$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('Copier$Dart'), Copier$Dart.$RTTimplements); | |
} | |
; | |
Copier$Dart.$RTTimplements = function(rtt){ | |
Copier$Dart.$addTo(rtt); | |
} | |
; | |
Copier$Dart.$addTo = function(target){ | |
var rtt = Copier$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
MessageTraverser$Dart.$addTo(target); | |
} | |
; | |
Copier$Dart.prototype.$implements$Copier$Dart = 1; | |
Copier$Dart.prototype.$implements$MessageTraverser$Dart = 1; | |
Copier$Dart.prototype.$implements$Object$Dart = 1; | |
$inherits(Copier$Dart, MessageTraverser$Dart); | |
Copier$Dart.$Constructor = function(){ | |
MessageTraverser$Dart.$Constructor.call(this); | |
} | |
; | |
Copier$Dart.$Initializer = function(){ | |
MessageTraverser$Dart.$Initializer.call(this); | |
} | |
; | |
Copier$Dart.Copier$$Factory = function(){ | |
var tmp$0 = new Copier$Dart; | |
tmp$0.$typeInfo = Copier$Dart.$lookupRTT(); | |
Copier$Dart.$Initializer.call(tmp$0); | |
Copier$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
Copier$Dart.prototype.visitPrimitive$member = function(x){ | |
return x; | |
} | |
; | |
Copier$Dart.prototype.visitPrimitive$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Copier$Dart.prototype.visitPrimitive$member.call(this, x); | |
} | |
; | |
Copier$Dart.prototype.visitPrimitive$getter = function visitPrimitive$getter(){ | |
return $bind(Copier$Dart.prototype.visitPrimitive$named, this); | |
} | |
; | |
Copier$Dart.prototype.visitList$member = function(list){ | |
var tmp$1, tmp$0; | |
var copy = this._getInfo$$member_(list); | |
if (copy != null) { | |
return copy; | |
} | |
var len = list.length$getter(); | |
copy = ListFactory$Dart.List$$Factory(null, len); | |
this._attachInfo$$member_(list, copy); | |
{ | |
var i = 0; | |
for (; LT$operator(i, len); tmp$0 = i , (i = ADD$operator(tmp$0, 1) , tmp$0)) { | |
copy.ASSIGN_INDEX$operator(i, tmp$1 = this._dispatch$$member_(list.INDEX$operator(i))) , tmp$1; | |
} | |
} | |
return copy; | |
} | |
; | |
Copier$Dart.prototype.visitList$named = function($n, $o, list){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Copier$Dart.prototype.visitList$member.call(this, list); | |
} | |
; | |
Copier$Dart.prototype.visitList$getter = function visitList$getter(){ | |
return $bind(Copier$Dart.prototype.visitList$named, this); | |
} | |
; | |
function Copier$Dart$visitMap$c0$11_11$Hoisted(dartc_scp$1, key, val){ | |
var tmp$0; | |
dartc_scp$1.copy.ASSIGN_INDEX$operator(this._dispatch$$member_(key), tmp$0 = this._dispatch$$member_(val)) , tmp$0; | |
} | |
function Copier$Dart$visitMap$c0$11_11$Hoisted$named($s0, $n, $o, key, val){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Copier$Dart$visitMap$c0$11_11$Hoisted.call(this, $s0, key, val); | |
} | |
Copier$Dart.prototype.visitMap$member = function(map){ | |
var dartc_scp$1; | |
dartc_scp$1 = {}; | |
dartc_scp$1.copy = this._getInfo$$member_(map); | |
if (dartc_scp$1.copy != null) { | |
return dartc_scp$1.copy; | |
} | |
dartc_scp$1.copy = HashMapImplementation$Dart.HashMapImplementation$$Factory(HashMapImplementation$Dart.$lookupRTT()); | |
this._attachInfo$$member_(map, dartc_scp$1.copy); | |
map.forEach$named(1, $noargs, $bind(Copier$Dart$visitMap$c0$11_11$Hoisted$named, this, dartc_scp$1)); | |
return dartc_scp$1.copy; | |
dartc_scp$1 = $Dart$Null; | |
} | |
; | |
Copier$Dart.prototype.visitMap$named = function($n, $o, map){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Copier$Dart.prototype.visitMap$member.call(this, map); | |
} | |
; | |
Copier$Dart.prototype.visitMap$getter = function visitMap$getter(){ | |
return $bind(Copier$Dart.prototype.visitMap$named, this); | |
} | |
; | |
Copier$Dart.prototype.visitSendPort$member = function(port){ | |
return SendPortImpl$Dart.SendPortImpl$$Factory(port._workerId$$getter_(), port._isolateId$$getter_(), port._receivePortId$$getter_()); | |
} | |
; | |
Copier$Dart.prototype.visitSendPort$named = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Copier$Dart.prototype.visitSendPort$member.call(this, port); | |
} | |
; | |
Copier$Dart.prototype.visitSendPort$getter = function visitSendPort$getter(){ | |
return $bind(Copier$Dart.prototype.visitSendPort$named, this); | |
} | |
; | |
Copier$Dart.prototype.visitReceivePort$member = function(port){ | |
return port._toNewSendPort$$named_(0, $noargs); | |
} | |
; | |
Copier$Dart.prototype.visitReceivePort$named = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Copier$Dart.prototype.visitReceivePort$member.call(this, port); | |
} | |
; | |
Copier$Dart.prototype.visitReceivePort$getter = function visitReceivePort$getter(){ | |
return $bind(Copier$Dart.prototype.visitReceivePort$named, this); | |
} | |
; | |
Copier$Dart.prototype.visitReceivePortSingleShot$member = function(port){ | |
return port._toNewSendPort$$named_(0, $noargs); | |
} | |
; | |
Copier$Dart.prototype.visitReceivePortSingleShot$named = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Copier$Dart.prototype.visitReceivePortSingleShot$member.call(this, port); | |
} | |
; | |
Copier$Dart.prototype.visitReceivePortSingleShot$getter = function visitReceivePortSingleShot$getter(){ | |
return $bind(Copier$Dart.prototype.visitReceivePortSingleShot$named, this); | |
} | |
; | |
function Serializer$Dart(){ | |
} | |
Serializer$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('Serializer$Dart'), Serializer$Dart.$RTTimplements); | |
} | |
; | |
Serializer$Dart.$RTTimplements = function(rtt){ | |
Serializer$Dart.$addTo(rtt); | |
} | |
; | |
Serializer$Dart.$addTo = function(target){ | |
var rtt = Serializer$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
MessageTraverser$Dart.$addTo(target); | |
} | |
; | |
Serializer$Dart.prototype.$implements$Serializer$Dart = 1; | |
Serializer$Dart.prototype.$implements$MessageTraverser$Dart = 1; | |
Serializer$Dart.prototype.$implements$Object$Dart = 1; | |
$inherits(Serializer$Dart, MessageTraverser$Dart); | |
Serializer$Dart.$Constructor = function(){ | |
MessageTraverser$Dart.$Constructor.call(this); | |
} | |
; | |
Serializer$Dart.$Initializer = function(){ | |
MessageTraverser$Dart.$Initializer.call(this); | |
this._nextFreeRefId$$field_ = 0; | |
} | |
; | |
Serializer$Dart.Serializer$$Factory = function(){ | |
var tmp$0 = new Serializer$Dart; | |
tmp$0.$typeInfo = Serializer$Dart.$lookupRTT(); | |
Serializer$Dart.$Initializer.call(tmp$0); | |
Serializer$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
Serializer$Dart.prototype.visitPrimitive$member = function(x){ | |
return x; | |
} | |
; | |
Serializer$Dart.prototype.visitPrimitive$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype.visitPrimitive$member.call(this, x); | |
} | |
; | |
Serializer$Dart.prototype.visitPrimitive$getter = function visitPrimitive$getter(){ | |
return $bind(Serializer$Dart.prototype.visitPrimitive$named, this); | |
} | |
; | |
Serializer$Dart.prototype.visitList$member = function(list){ | |
var tmp$1, tmp$0; | |
var copyId = this._getInfo$$member_(list); | |
if (copyId != null) { | |
return this._makeRef$$member_(copyId); | |
} | |
var id = (tmp$0 = this._nextFreeRefId$$getter_() , (this._nextFreeRefId$$setter_(tmp$1 = ADD$operator(tmp$0, 1)) , tmp$1 , tmp$0)); | |
this._attachInfo$$member_(list, id); | |
var jsArray = this._serializeDartListIntoNewJsArray$$member_(list); | |
return Serializer$Dart._dartListToJsArrayNoCopy$$member_(RTT.setTypeInfo(['list', id, jsArray], Array.$lookupRTT())); | |
} | |
; | |
Serializer$Dart.prototype.visitList$named = function($n, $o, list){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype.visitList$member.call(this, list); | |
} | |
; | |
Serializer$Dart.prototype.visitList$getter = function visitList$getter(){ | |
return $bind(Serializer$Dart.prototype.visitList$named, this); | |
} | |
; | |
Serializer$Dart.prototype.visitMap$member = function(map){ | |
var tmp$1, tmp$0; | |
var copyId = this._getInfo$$member_(map); | |
if (copyId != null) { | |
return this._makeRef$$member_(copyId); | |
} | |
var id = (tmp$0 = this._nextFreeRefId$$getter_() , (this._nextFreeRefId$$setter_(tmp$1 = ADD$operator(tmp$0, 1)) , tmp$1 , tmp$0)); | |
this._attachInfo$$member_(map, id); | |
var keys = this._serializeDartListIntoNewJsArray$$member_(map.getKeys$named(0, $noargs)); | |
var values = this._serializeDartListIntoNewJsArray$$member_(map.getValues$named(0, $noargs)); | |
return Serializer$Dart._dartListToJsArrayNoCopy$$member_(RTT.setTypeInfo(['map', id, keys, values], Array.$lookupRTT())); | |
} | |
; | |
Serializer$Dart.prototype.visitMap$named = function($n, $o, map){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype.visitMap$member.call(this, map); | |
} | |
; | |
Serializer$Dart.prototype.visitMap$getter = function visitMap$getter(){ | |
return $bind(Serializer$Dart.prototype.visitMap$named, this); | |
} | |
; | |
Serializer$Dart.prototype.visitSendPort$member = function(port){ | |
return Serializer$Dart._dartListToJsArrayNoCopy$$member_(RTT.setTypeInfo(['sendport', port._workerId$$getter_(), port._isolateId$$getter_(), port._receivePortId$$getter_()], Array.$lookupRTT())); | |
} | |
; | |
Serializer$Dart.prototype.visitSendPort$named = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype.visitSendPort$member.call(this, port); | |
} | |
; | |
Serializer$Dart.prototype.visitSendPort$getter = function visitSendPort$getter(){ | |
return $bind(Serializer$Dart.prototype.visitSendPort$named, this); | |
} | |
; | |
Serializer$Dart.prototype.visitReceivePort$member = function(port){ | |
return this.visitSendPort$member(port.toSendPort$named(0, $noargs)); | |
; | |
} | |
; | |
Serializer$Dart.prototype.visitReceivePort$named = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype.visitReceivePort$member.call(this, port); | |
} | |
; | |
Serializer$Dart.prototype.visitReceivePort$getter = function visitReceivePort$getter(){ | |
return $bind(Serializer$Dart.prototype.visitReceivePort$named, this); | |
} | |
; | |
Serializer$Dart.prototype.visitReceivePortSingleShot$member = function(port){ | |
return this.visitSendPort$member(port.toSendPort$named(0, $noargs)); | |
} | |
; | |
Serializer$Dart.prototype.visitReceivePortSingleShot$named = function($n, $o, port){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype.visitReceivePortSingleShot$member.call(this, port); | |
} | |
; | |
Serializer$Dart.prototype.visitReceivePortSingleShot$getter = function visitReceivePortSingleShot$getter(){ | |
return $bind(Serializer$Dart.prototype.visitReceivePortSingleShot$named, this); | |
} | |
; | |
Serializer$Dart.prototype._serializeDartListIntoNewJsArray$$member_ = function(list){ | |
var tmp$0; | |
var len = list.length$getter(); | |
var jsArray = Serializer$Dart._newJsArray$$member_(len); | |
{ | |
var i = 0; | |
for (; LT$operator(i, len); tmp$0 = i , (i = ADD$operator(tmp$0, 1) , tmp$0)) { | |
Serializer$Dart._jsArrayIndexSet$$member_(jsArray, i, this._dispatch$$member_(list.INDEX$operator(i))); | |
} | |
} | |
return jsArray; | |
} | |
; | |
Serializer$Dart.prototype._serializeDartListIntoNewJsArray$$named_ = function($n, $o, list){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype._serializeDartListIntoNewJsArray$$member_.call(this, list); | |
} | |
; | |
Serializer$Dart.prototype._serializeDartListIntoNewJsArray$$getter_ = function _serializeDartListIntoNewJsArray$$getter_(){ | |
return $bind(Serializer$Dart.prototype._serializeDartListIntoNewJsArray$$named_, this); | |
} | |
; | |
Serializer$Dart.prototype._makeRef$$member_ = function(id){ | |
return Serializer$Dart._dartListToJsArrayNoCopy$$member_(RTT.setTypeInfo(['ref', id], Array.$lookupRTT())); | |
} | |
; | |
Serializer$Dart.prototype._makeRef$$named_ = function($n, $o, id){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart.prototype._makeRef$$member_.call(this, id); | |
} | |
; | |
Serializer$Dart.prototype._makeRef$$getter_ = function _makeRef$$getter_(){ | |
return $bind(Serializer$Dart.prototype._makeRef$$named_, this); | |
} | |
; | |
Serializer$Dart.prototype._nextFreeRefId$$named_ = function(){ | |
return this._nextFreeRefId$$getter_().apply(this, arguments); | |
} | |
; | |
Serializer$Dart.prototype._nextFreeRefId$$getter_ = function(){ | |
return this._nextFreeRefId$$field_; | |
} | |
; | |
Serializer$Dart.prototype._nextFreeRefId$$setter_ = function(tmp$0){ | |
this._nextFreeRefId$$field_ = tmp$0; | |
} | |
; | |
Serializer$Dart._newJsArray$$member_ = function(len){ | |
return native_Serializer__newJsArray(len); | |
} | |
; | |
Serializer$Dart._newJsArray$$named_ = function($n, $o, len){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart._newJsArray$$member_(len); | |
} | |
; | |
Serializer$Dart._newJsArray$$getter_ = function _newJsArray$$getter_(){ | |
return Serializer$Dart._newJsArray$$named_; | |
} | |
; | |
Serializer$Dart._jsArrayIndexSet$$member_ = function(jsArray, index, val){ | |
return native_Serializer__jsArrayIndexSet(jsArray, index, val); | |
} | |
; | |
Serializer$Dart._jsArrayIndexSet$$named_ = function($n, $o, jsArray, index, val){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 3) | |
$nsme(); | |
return Serializer$Dart._jsArrayIndexSet$$member_(jsArray, index, val); | |
} | |
; | |
Serializer$Dart._jsArrayIndexSet$$getter_ = function _jsArrayIndexSet$$getter_(){ | |
return Serializer$Dart._jsArrayIndexSet$$named_; | |
} | |
; | |
Serializer$Dart._dartListToJsArrayNoCopy$$member_ = function(list){ | |
return native_Serializer__dartListToJsArrayNoCopy(list); | |
} | |
; | |
Serializer$Dart._dartListToJsArrayNoCopy$$named_ = function($n, $o, list){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Serializer$Dart._dartListToJsArrayNoCopy$$member_(list); | |
} | |
; | |
Serializer$Dart._dartListToJsArrayNoCopy$$getter_ = function _dartListToJsArrayNoCopy$$getter_(){ | |
return Serializer$Dart._dartListToJsArrayNoCopy$$named_; | |
} | |
; | |
function Deserializer$Dart(){ | |
} | |
Deserializer$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('Deserializer$Dart')); | |
} | |
; | |
Deserializer$Dart.$addTo = function(target){ | |
var rtt = Deserializer$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
Deserializer$Dart.prototype.$implements$Deserializer$Dart = 1; | |
Deserializer$Dart.prototype.$implements$Object$Dart = 1; | |
Deserializer$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
Deserializer$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
Deserializer$Dart.Deserializer$$Factory = function(){ | |
var tmp$0 = new Deserializer$Dart; | |
tmp$0.$typeInfo = Deserializer$Dart.$lookupRTT(); | |
Deserializer$Dart.$Initializer.call(tmp$0); | |
Deserializer$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
Deserializer$Dart.isPrimitive$member = function(x){ | |
var tmp$0; | |
return x == null || String.$instanceOf(x) || !!(tmp$0 = x , tmp$0 != null && tmp$0.$implements$num$Dart) || Boolean.$instanceOf(x); | |
} | |
; | |
Deserializer$Dart.isPrimitive$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.isPrimitive$member(x); | |
} | |
; | |
Deserializer$Dart.isPrimitive$getter = function isPrimitive$getter(){ | |
return Deserializer$Dart.isPrimitive$named; | |
} | |
; | |
Deserializer$Dart.prototype.deserialize$member = function(x){ | |
var tmp$0; | |
if (Deserializer$Dart.isPrimitive$member(x)) { | |
return x; | |
} | |
this._deserialized$$setter_(tmp$0 = HashMapImplementation$Dart.HashMapImplementation$$Factory(HashMapImplementation$Dart.$lookupRTT())) , tmp$0; | |
return this._deserializeHelper$$member_(x); | |
} | |
; | |
Deserializer$Dart.prototype.deserialize$named = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype.deserialize$member.call(this, x); | |
} | |
; | |
Deserializer$Dart.prototype.deserialize$getter = function deserialize$getter(){ | |
return $bind(Deserializer$Dart.prototype.deserialize$named, this); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeHelper$$member_ = function(x){ | |
if (Deserializer$Dart.isPrimitive$member(x)) { | |
return x; | |
} | |
assert(Deserializer$Dart._isJsArray$$member_(x)); | |
switch (Deserializer$Dart._jsArrayIndex$$member_(x, 0)) { | |
case 'ref': | |
return this._deserializeRef$$member_(x); | |
case 'list': | |
return this._deserializeList$$member_(x); | |
case 'map': | |
return this._deserializeMap$$member_(x); | |
case 'sendport': | |
return this._deserializeSendPort$$member_(x); | |
default:{ | |
$Dart$ThrowException('Unexpected serialized object'); | |
} | |
} | |
} | |
; | |
Deserializer$Dart.prototype._deserializeHelper$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype._deserializeHelper$$member_.call(this, x); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeHelper$$getter_ = function _deserializeHelper$$getter_(){ | |
return $bind(Deserializer$Dart.prototype._deserializeHelper$$named_, this); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeRef$$member_ = function(x){ | |
var id = Deserializer$Dart._jsArrayIndex$$member_(x, 1); | |
var result = this._deserialized$$getter_().INDEX$operator(id); | |
assert(result != null); | |
return result; | |
} | |
; | |
Deserializer$Dart.prototype._deserializeRef$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype._deserializeRef$$member_.call(this, x); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeRef$$getter_ = function _deserializeRef$$getter_(){ | |
return $bind(Deserializer$Dart.prototype._deserializeRef$$named_, this); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeList$$member_ = function(x){ | |
var tmp$1, tmp$2, tmp$0; | |
var id = Deserializer$Dart._jsArrayIndex$$member_(x, 1); | |
var jsArray = Deserializer$Dart._jsArrayIndex$$member_(x, 2); | |
assert(Deserializer$Dart._isJsArray$$member_(jsArray)); | |
var dartList = this._jsArrayToDartListNoCopy$$member_(jsArray); | |
this._deserialized$$getter_().ASSIGN_INDEX$operator(id, tmp$0 = dartList) , tmp$0; | |
var len = dartList.length$getter(); | |
{ | |
var i = 0; | |
for (; LT$operator(i, len); tmp$1 = i , (i = ADD$operator(tmp$1, 1) , tmp$1)) { | |
dartList.ASSIGN_INDEX$operator(i, tmp$2 = this._deserializeHelper$$member_(dartList.INDEX$operator(i))) , tmp$2; | |
} | |
} | |
return dartList; | |
} | |
; | |
Deserializer$Dart.prototype._deserializeList$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype._deserializeList$$member_.call(this, x); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeList$$getter_ = function _deserializeList$$getter_(){ | |
return $bind(Deserializer$Dart.prototype._deserializeList$$named_, this); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeMap$$member_ = function(x){ | |
var tmp$1, tmp$2, tmp$0; | |
var result = HashMapImplementation$Dart.HashMapImplementation$$Factory(HashMapImplementation$Dart.$lookupRTT()); | |
var id = Deserializer$Dart._jsArrayIndex$$member_(x, 1); | |
this._deserialized$$getter_().ASSIGN_INDEX$operator(id, tmp$0 = result) , tmp$0; | |
var keys = Deserializer$Dart._jsArrayIndex$$member_(x, 2); | |
var values = Deserializer$Dart._jsArrayIndex$$member_(x, 3); | |
assert(Deserializer$Dart._isJsArray$$member_(keys)); | |
assert(Deserializer$Dart._isJsArray$$member_(values)); | |
var len = Deserializer$Dart._jsArrayLength$$member_(keys); | |
assert(EQ$operator(len, Deserializer$Dart._jsArrayLength$$member_(values))); | |
{ | |
var i = 0; | |
for (; LT$operator(i, len); tmp$1 = i , (i = ADD$operator(tmp$1, 1) , tmp$1)) { | |
var key = this._deserializeHelper$$member_(Deserializer$Dart._jsArrayIndex$$member_(keys, i)); | |
var value = this._deserializeHelper$$member_(Deserializer$Dart._jsArrayIndex$$member_(values, i)); | |
result.ASSIGN_INDEX$operator(key, tmp$2 = value) , tmp$2; | |
} | |
} | |
return result; | |
} | |
; | |
Deserializer$Dart.prototype._deserializeMap$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype._deserializeMap$$member_.call(this, x); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeMap$$getter_ = function _deserializeMap$$getter_(){ | |
return $bind(Deserializer$Dart.prototype._deserializeMap$$named_, this); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeSendPort$$member_ = function(x){ | |
var workerId = Deserializer$Dart._jsArrayIndex$$member_(x, 1); | |
var isolateId = Deserializer$Dart._jsArrayIndex$$member_(x, 2); | |
var receivePortId = Deserializer$Dart._jsArrayIndex$$member_(x, 3); | |
return SendPortImpl$Dart.SendPortImpl$$Factory(workerId, isolateId, receivePortId); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeSendPort$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype._deserializeSendPort$$member_.call(this, x); | |
} | |
; | |
Deserializer$Dart.prototype._deserializeSendPort$$getter_ = function _deserializeSendPort$$getter_(){ | |
return $bind(Deserializer$Dart.prototype._deserializeSendPort$$named_, this); | |
} | |
; | |
Deserializer$Dart.prototype._jsArrayToDartListNoCopy$$member_ = function(a){ | |
var tmp$0; | |
assert(!!(tmp$0 = a , tmp$0 != null && tmp$0.$implements$List$Dart)); | |
return a; | |
} | |
; | |
Deserializer$Dart.prototype._jsArrayToDartListNoCopy$$named_ = function($n, $o, a){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart.prototype._jsArrayToDartListNoCopy$$member_.call(this, a); | |
} | |
; | |
Deserializer$Dart.prototype._jsArrayToDartListNoCopy$$getter_ = function _jsArrayToDartListNoCopy$$getter_(){ | |
return $bind(Deserializer$Dart.prototype._jsArrayToDartListNoCopy$$named_, this); | |
} | |
; | |
Deserializer$Dart.prototype._deserialized$$named_ = function(){ | |
return this._deserialized$$getter_().apply(this, arguments); | |
} | |
; | |
Deserializer$Dart.prototype._deserialized$$getter_ = function(){ | |
return this._deserialized$$field_; | |
} | |
; | |
Deserializer$Dart.prototype._deserialized$$setter_ = function(tmp$0){ | |
this._deserialized$$field_ = tmp$0; | |
} | |
; | |
Deserializer$Dart._isJsArray$$member_ = function(x){ | |
return native_Deserializer__isJsArray(x); | |
} | |
; | |
Deserializer$Dart._isJsArray$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart._isJsArray$$member_(x); | |
} | |
; | |
Deserializer$Dart._isJsArray$$getter_ = function _isJsArray$$getter_(){ | |
return Deserializer$Dart._isJsArray$$named_; | |
} | |
; | |
Deserializer$Dart._jsArrayIndex$$member_ = function(x, index){ | |
return native_Deserializer__jsArrayIndex(x, index); | |
} | |
; | |
Deserializer$Dart._jsArrayIndex$$named_ = function($n, $o, x, index){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return Deserializer$Dart._jsArrayIndex$$member_(x, index); | |
} | |
; | |
Deserializer$Dart._jsArrayIndex$$getter_ = function _jsArrayIndex$$getter_(){ | |
return Deserializer$Dart._jsArrayIndex$$named_; | |
} | |
; | |
Deserializer$Dart._jsArrayLength$$member_ = function(x){ | |
return native_Deserializer__jsArrayLength(x); | |
} | |
; | |
Deserializer$Dart._jsArrayLength$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Deserializer$Dart._jsArrayLength$$member_(x); | |
} | |
; | |
Deserializer$Dart._jsArrayLength$$getter_ = function _jsArrayLength$$getter_(){ | |
return Deserializer$Dart._jsArrayLength$$named_; | |
} | |
; | |
function MathNatives$Dart(){ | |
} | |
MathNatives$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('MathNatives$Dart')); | |
} | |
; | |
MathNatives$Dart.$addTo = function(target){ | |
var rtt = MathNatives$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
} | |
; | |
MathNatives$Dart.prototype.$implements$MathNatives$Dart = 1; | |
MathNatives$Dart.prototype.$implements$Object$Dart = 1; | |
MathNatives$Dart.cos$member = function(d){ | |
return native_MathNatives_cos(d); | |
} | |
; | |
MathNatives$Dart.cos$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.cos$member(d); | |
} | |
; | |
MathNatives$Dart.cos$getter = function cos$getter(){ | |
return MathNatives$Dart.cos$named; | |
} | |
; | |
MathNatives$Dart.sin$member = function(d){ | |
return native_MathNatives_sin(d); | |
} | |
; | |
MathNatives$Dart.sin$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.sin$member(d); | |
} | |
; | |
MathNatives$Dart.sin$getter = function sin$getter(){ | |
return MathNatives$Dart.sin$named; | |
} | |
; | |
MathNatives$Dart.tan$member = function(d){ | |
return native_MathNatives_tan(d); | |
} | |
; | |
MathNatives$Dart.tan$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.tan$member(d); | |
} | |
; | |
MathNatives$Dart.tan$getter = function tan$getter(){ | |
return MathNatives$Dart.tan$named; | |
} | |
; | |
MathNatives$Dart.acos$member = function(d){ | |
return native_MathNatives_acos(d); | |
} | |
; | |
MathNatives$Dart.acos$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.acos$member(d); | |
} | |
; | |
MathNatives$Dart.acos$getter = function acos$getter(){ | |
return MathNatives$Dart.acos$named; | |
} | |
; | |
MathNatives$Dart.asin$member = function(d){ | |
return native_MathNatives_asin(d); | |
} | |
; | |
MathNatives$Dart.asin$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.asin$member(d); | |
} | |
; | |
MathNatives$Dart.asin$getter = function asin$getter(){ | |
return MathNatives$Dart.asin$named; | |
} | |
; | |
MathNatives$Dart.atan$member = function(d){ | |
return native_MathNatives_atan(d); | |
} | |
; | |
MathNatives$Dart.atan$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.atan$member(d); | |
} | |
; | |
MathNatives$Dart.atan$getter = function atan$getter(){ | |
return MathNatives$Dart.atan$named; | |
} | |
; | |
MathNatives$Dart.atan2$member = function(a, b){ | |
return native_MathNatives_atan2(a, b); | |
} | |
; | |
MathNatives$Dart.atan2$named = function($n, $o, a, b){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return MathNatives$Dart.atan2$member(a, b); | |
} | |
; | |
MathNatives$Dart.atan2$getter = function atan2$getter(){ | |
return MathNatives$Dart.atan2$named; | |
} | |
; | |
MathNatives$Dart.sqrt$member = function(d){ | |
return native_MathNatives_sqrt(d); | |
} | |
; | |
MathNatives$Dart.sqrt$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.sqrt$member(d); | |
} | |
; | |
MathNatives$Dart.sqrt$getter = function sqrt$getter(){ | |
return MathNatives$Dart.sqrt$named; | |
} | |
; | |
MathNatives$Dart.exp$member = function(d){ | |
return native_MathNatives_exp(d); | |
} | |
; | |
MathNatives$Dart.exp$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.exp$member(d); | |
} | |
; | |
MathNatives$Dart.exp$getter = function exp$getter(){ | |
return MathNatives$Dart.exp$named; | |
} | |
; | |
MathNatives$Dart.log$member = function(d){ | |
return native_MathNatives_log(d); | |
} | |
; | |
MathNatives$Dart.log$named = function($n, $o, d){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.log$member(d); | |
} | |
; | |
MathNatives$Dart.log$getter = function log$getter(){ | |
return MathNatives$Dart.log$named; | |
} | |
; | |
MathNatives$Dart.pow$member = function(d1, d2){ | |
return native_MathNatives_pow(d1, d2); | |
} | |
; | |
MathNatives$Dart.pow$named = function($n, $o, d1, d2){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 2) | |
$nsme(); | |
return MathNatives$Dart.pow$member(d1, d2); | |
} | |
; | |
MathNatives$Dart.pow$getter = function pow$getter(){ | |
return MathNatives$Dart.pow$named; | |
} | |
; | |
MathNatives$Dart.random$member = function(){ | |
return native_MathNatives_random(); | |
} | |
; | |
MathNatives$Dart.random$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return MathNatives$Dart.random$member(); | |
} | |
; | |
MathNatives$Dart.random$getter = function random$getter(){ | |
return MathNatives$Dart.random$named; | |
} | |
; | |
MathNatives$Dart.parseInt$member = function(str){ | |
return native_MathNatives_parseInt(str); | |
} | |
; | |
MathNatives$Dart.parseInt$named = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.parseInt$member(str); | |
} | |
; | |
MathNatives$Dart.parseInt$getter = function parseInt$getter(){ | |
return MathNatives$Dart.parseInt$named; | |
} | |
; | |
MathNatives$Dart.parseDouble$member = function(str){ | |
return native_MathNatives_parseDouble(str); | |
} | |
; | |
MathNatives$Dart.parseDouble$named = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart.parseDouble$member(str); | |
} | |
; | |
MathNatives$Dart.parseDouble$getter = function parseDouble$getter(){ | |
return MathNatives$Dart.parseDouble$named; | |
} | |
; | |
MathNatives$Dart._newBadNumberFormat$$member_ = function(x){ | |
return BadNumberFormatException$Dart.BadNumberFormatException$$Factory(x); | |
} | |
; | |
MathNatives$Dart._newBadNumberFormat$$named_ = function($n, $o, x){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return MathNatives$Dart._newBadNumberFormat$$member_(x); | |
} | |
; | |
function native_MathNatives__newBadNumberFormat(x){ | |
return MathNatives$Dart._newBadNumberFormat$$member_(x); | |
} | |
MathNatives$Dart._newBadNumberFormat$$getter_ = function _newBadNumberFormat$$getter_(){ | |
return MathNatives$Dart._newBadNumberFormat$$named_; | |
} | |
; | |
MathNatives$Dart.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
MathNatives$Dart.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
MathNatives$Dart.MathNatives$$Factory = function(){ | |
var tmp$0 = new MathNatives$Dart; | |
tmp$0.$typeInfo = MathNatives$Dart.$lookupRTT(); | |
MathNatives$Dart.$Initializer.call(tmp$0); | |
MathNatives$Dart.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
Number.$lookupRTT = function(){ | |
return RTT.create($cls('Number'), Number.$RTTimplements); | |
} | |
; | |
Number.$RTTimplements = function(rtt){ | |
Number.$addTo(rtt); | |
} | |
; | |
Number.$addTo = function(target){ | |
var rtt = Number.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
int$Dart.$addTo(target); | |
double$Dart.$addTo(target); | |
} | |
; | |
Number.prototype.$implements$NumberImplementation$Dart = 1; | |
Number.prototype.$implements$int$Dart = 1; | |
Number.prototype.$implements$num$Dart = 1; | |
Number.prototype.$implements$Comparable$Dart = 1; | |
Number.prototype.$implements$Hashable$Dart = 1; | |
Number.prototype.$implements$double$Dart = 1; | |
Number.prototype.$implements$Object$Dart = 1; | |
Number.prototype.ADD$operator = function(other){ | |
return native_NumberImplementation_ADD.call(this, other); | |
} | |
; | |
Number.prototype.SUB$operator = function(other){ | |
return native_NumberImplementation_SUB.call(this, other); | |
} | |
; | |
Number.prototype.MUL$operator = function(other){ | |
return native_NumberImplementation_MUL.call(this, other); | |
} | |
; | |
Number.prototype.DIV$operator = function(other){ | |
return native_NumberImplementation_DIV.call(this, other); | |
} | |
; | |
Number.prototype.TRUNC$operator = function(other){ | |
return native_NumberImplementation_TRUNC.call(this, other); | |
} | |
; | |
Number.prototype.MOD$operator = function(shiftAmount){ | |
return native_NumberImplementation_MOD.call(this, shiftAmount); | |
} | |
; | |
Number.prototype.negate$operator = function(){ | |
return native_NumberImplementation_negate.call(this); | |
} | |
; | |
Number.prototype.BIT_OR$operator = function(other){ | |
return native_NumberImplementation_BIT_OR.call(this, other); | |
} | |
; | |
Number.prototype.BIT_AND$operator = function(other){ | |
return native_NumberImplementation_BIT_AND.call(this, other); | |
} | |
; | |
Number.prototype.BIT_XOR$operator = function(other){ | |
return native_NumberImplementation_BIT_XOR.call(this, other); | |
} | |
; | |
Number.prototype.SHL$operator = function(shiftAmount){ | |
return native_NumberImplementation_SHL.call(this, shiftAmount); | |
} | |
; | |
Number.prototype.SAR$operator = function(shiftAmount){ | |
return native_NumberImplementation_SAR.call(this, shiftAmount); | |
} | |
; | |
Number.prototype.BIT_NOT$operator = function(){ | |
return native_NumberImplementation_BIT_NOT.call(this); | |
} | |
; | |
Number.prototype.EQ$operator = function(other){ | |
return native_NumberImplementation_EQ.call(this, other); | |
} | |
; | |
Number.prototype.LT$operator = function(other){ | |
return native_NumberImplementation_LT.call(this, other); | |
} | |
; | |
Number.prototype.LTE$operator = function(other){ | |
return native_NumberImplementation_LTE.call(this, other); | |
} | |
; | |
Number.prototype.GT$operator = function(other){ | |
return native_NumberImplementation_GT.call(this, other); | |
} | |
; | |
Number.prototype.GTE$operator = function(other){ | |
return native_NumberImplementation_GTE.call(this, other); | |
} | |
; | |
Number.prototype.remainder$member = function(other){ | |
return native_NumberImplementation_remainder.call(this, other); | |
} | |
; | |
Number.prototype.remainder$named = function($n, $o, other){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Number.prototype.remainder$member.call(this, other); | |
} | |
; | |
Number.prototype.remainder$getter = function remainder$getter(){ | |
return $bind(Number.prototype.remainder$named, this); | |
} | |
; | |
Number.prototype.abs$member = function(){ | |
return native_NumberImplementation_abs.call(this); | |
} | |
; | |
Number.prototype.abs$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.abs$member.call(this); | |
} | |
; | |
Number.prototype.abs$getter = function abs$getter(){ | |
return $bind(Number.prototype.abs$named, this); | |
} | |
; | |
Number.prototype.round$member = function(){ | |
return native_NumberImplementation_round.call(this); | |
} | |
; | |
Number.prototype.round$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.round$member.call(this); | |
} | |
; | |
Number.prototype.round$getter = function round$getter(){ | |
return $bind(Number.prototype.round$named, this); | |
} | |
; | |
Number.prototype.floor$member = function(){ | |
return native_NumberImplementation_floor.call(this); | |
} | |
; | |
Number.prototype.floor$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.floor$member.call(this); | |
} | |
; | |
Number.prototype.floor$getter = function floor$getter(){ | |
return $bind(Number.prototype.floor$named, this); | |
} | |
; | |
Number.prototype.ceil$member = function(){ | |
return native_NumberImplementation_ceil.call(this); | |
} | |
; | |
Number.prototype.ceil$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.ceil$member.call(this); | |
} | |
; | |
Number.prototype.ceil$getter = function ceil$getter(){ | |
return $bind(Number.prototype.ceil$named, this); | |
} | |
; | |
Number.prototype.truncate$member = function(){ | |
return native_NumberImplementation_truncate.call(this); | |
} | |
; | |
Number.prototype.truncate$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.truncate$member.call(this); | |
} | |
; | |
Number.prototype.truncate$getter = function truncate$getter(){ | |
return $bind(Number.prototype.truncate$named, this); | |
} | |
; | |
Number.prototype.compareTo$member = function(other){ | |
return SUB$operator(this, other); | |
} | |
; | |
Number.prototype.compareTo$named = function($n, $o, other){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Number.prototype.compareTo$member.call(this, other); | |
} | |
; | |
Number.prototype.compareTo$getter = function compareTo$getter(){ | |
return $bind(Number.prototype.compareTo$named, this); | |
} | |
; | |
Number.prototype.isNegative$member = function(){ | |
return native_NumberImplementation_isNegative.call(this); | |
} | |
; | |
Number.prototype.isNegative$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.isNegative$member.call(this); | |
} | |
; | |
Number.prototype.isNegative$getter = function isNegative$getter(){ | |
return $bind(Number.prototype.isNegative$named, this); | |
} | |
; | |
Number.prototype.isEven$member = function(){ | |
return native_NumberImplementation_isEven.call(this); | |
} | |
; | |
Number.prototype.isEven$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.isEven$member.call(this); | |
} | |
; | |
Number.prototype.isEven$getter = function isEven$getter(){ | |
return $bind(Number.prototype.isEven$named, this); | |
} | |
; | |
Number.prototype.isOdd$member = function(){ | |
return native_NumberImplementation_isOdd.call(this); | |
} | |
; | |
Number.prototype.isOdd$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.isOdd$member.call(this); | |
} | |
; | |
Number.prototype.isOdd$getter = function isOdd$getter(){ | |
return $bind(Number.prototype.isOdd$named, this); | |
} | |
; | |
Number.prototype.isNaN$member = function(){ | |
return native_NumberImplementation_isNaN.call(this); | |
} | |
; | |
Number.prototype.isNaN$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.isNaN$member.call(this); | |
} | |
; | |
Number.prototype.isNaN$getter = function isNaN$getter(){ | |
return $bind(Number.prototype.isNaN$named, this); | |
} | |
; | |
Number.prototype.isInfinite$member = function(){ | |
return native_NumberImplementation_isInfinite.call(this); | |
} | |
; | |
Number.prototype.isInfinite$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.isInfinite$member.call(this); | |
} | |
; | |
Number.prototype.isInfinite$getter = function isInfinite$getter(){ | |
return $bind(Number.prototype.isInfinite$named, this); | |
} | |
; | |
Number.prototype.toInt$member = function(){ | |
if (this.isNaN$member()) { | |
$Dart$ThrowException(BadNumberFormatException$Dart.BadNumberFormatException$$Factory('NaN')); | |
} | |
if (this.isInfinite$member()) { | |
$Dart$ThrowException(BadNumberFormatException$Dart.BadNumberFormatException$$Factory('Infinity')); | |
} | |
var truncated = this.truncate$member(); | |
if (EQ$operator(truncated, negate$operator(0))) { | |
return 0; | |
} | |
return truncated; | |
} | |
; | |
Number.prototype.toInt$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.toInt$member.call(this); | |
} | |
; | |
Number.prototype.toInt$getter = function toInt$getter(){ | |
return $bind(Number.prototype.toInt$named, this); | |
} | |
; | |
Number.prototype.toDouble$member = function(){ | |
return this; | |
} | |
; | |
Number.prototype.toDouble$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.toDouble$member.call(this); | |
} | |
; | |
Number.prototype.toDouble$getter = function toDouble$getter(){ | |
return $bind(Number.prototype.toDouble$named, this); | |
} | |
; | |
Number.prototype.toString$member = function(){ | |
return native_NumberImplementation_toString.call(this); | |
} | |
; | |
Number.prototype.toString$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.toString$member.call(this); | |
} | |
; | |
Number.prototype.toString$getter = function toString$getter(){ | |
return $bind(Number.prototype.toString$named, this); | |
} | |
; | |
Number.prototype.toStringAsFixed$member = function(fractionDigits){ | |
return native_NumberImplementation_toStringAsFixed.call(this, fractionDigits); | |
} | |
; | |
Number.prototype.toStringAsFixed$named = function($n, $o, fractionDigits){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Number.prototype.toStringAsFixed$member.call(this, fractionDigits); | |
} | |
; | |
Number.prototype.toStringAsFixed$getter = function toStringAsFixed$getter(){ | |
return $bind(Number.prototype.toStringAsFixed$named, this); | |
} | |
; | |
Number.prototype.toStringAsExponential$member = function(fractionDigits){ | |
return native_NumberImplementation_toStringAsExponential.call(this, fractionDigits); | |
} | |
; | |
Number.prototype.toStringAsExponential$named = function($n, $o, fractionDigits){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Number.prototype.toStringAsExponential$member.call(this, fractionDigits); | |
} | |
; | |
Number.prototype.toStringAsExponential$getter = function toStringAsExponential$getter(){ | |
return $bind(Number.prototype.toStringAsExponential$named, this); | |
} | |
; | |
Number.prototype.toStringAsPrecision$member = function(precision){ | |
return native_NumberImplementation_toStringAsPrecision.call(this, precision); | |
} | |
; | |
Number.prototype.toStringAsPrecision$named = function($n, $o, precision){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Number.prototype.toStringAsPrecision$member.call(this, precision); | |
} | |
; | |
Number.prototype.toStringAsPrecision$getter = function toStringAsPrecision$getter(){ | |
return $bind(Number.prototype.toStringAsPrecision$named, this); | |
} | |
; | |
Number.prototype.toRadixString$member = function(radix){ | |
return native_NumberImplementation_toRadixString.call(this, radix); | |
} | |
; | |
Number.prototype.toRadixString$named = function($n, $o, radix){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return Number.prototype.toRadixString$member.call(this, radix); | |
} | |
; | |
Number.prototype.toRadixString$getter = function toRadixString$getter(){ | |
return $bind(Number.prototype.toRadixString$named, this); | |
} | |
; | |
Number.prototype.hashCode$member = function(){ | |
return native_NumberImplementation_hashCode.call(this); | |
} | |
; | |
Number.prototype.hashCode$named = function($n, $o){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 0) | |
$nsme(); | |
return Number.prototype.hashCode$member.call(this); | |
} | |
; | |
Number.prototype.hashCode$getter = function hashCode$getter(){ | |
return $bind(Number.prototype.hashCode$named, this); | |
} | |
; | |
Number.$Constructor = function(){ | |
Object.$Constructor.call(this); | |
} | |
; | |
Number.$Initializer = function(){ | |
Object.$Initializer.call(this); | |
} | |
; | |
Number.NumberImplementation$$Factory = function(){ | |
var tmp$0 = new Number; | |
tmp$0.$typeInfo = Number.$lookupRTT(); | |
Number.$Initializer.call(tmp$0); | |
Number.$Constructor.call(tmp$0); | |
return tmp$0; | |
} | |
; | |
function JSSyntaxRegExp$Dart(){ | |
} | |
JSSyntaxRegExp$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('JSSyntaxRegExp$Dart'), JSSyntaxRegExp$Dart.$RTTimplements); | |
} | |
; | |
JSSyntaxRegExp$Dart.$RTTimplements = function(rtt){ | |
JSSyntaxRegExp$Dart.$addTo(rtt); | |
} | |
; | |
JSSyntaxRegExp$Dart.$addTo = function(target){ | |
var rtt = JSSyntaxRegExp$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
RegExp$Dart.$addTo(target); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.$implements$JSSyntaxRegExp$Dart = 1; | |
JSSyntaxRegExp$Dart.prototype.$implements$RegExp$Dart = 1; | |
JSSyntaxRegExp$Dart.prototype.$implements$Pattern$Dart = 1; | |
JSSyntaxRegExp$Dart.prototype.$implements$Object$Dart = 1; | |
JSSyntaxRegExp$Dart.$Constructor = function(pattern, multiLine, ignoreCase){ | |
Object.$Constructor.call(this); | |
} | |
; | |
JSSyntaxRegExp$Dart.$Initializer = function(pattern, multiLine, ignoreCase){ | |
Object.$Initializer.call(this); | |
this.pattern$field = pattern; | |
this.multiLine$field = multiLine; | |
this.ignoreCase$field = ignoreCase; | |
} | |
; | |
JSSyntaxRegExp$Dart.JSSyntaxRegExp$$Factory = function(pattern, multiLine, ignoreCase){ | |
var tmp$0 = new JSSyntaxRegExp$Dart; | |
tmp$0.$typeInfo = JSSyntaxRegExp$Dart.$lookupRTT(); | |
JSSyntaxRegExp$Dart.$Initializer.call(tmp$0, pattern, multiLine, ignoreCase); | |
JSSyntaxRegExp$Dart.$Constructor.call(tmp$0, pattern, multiLine, ignoreCase); | |
return tmp$0; | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.pattern$named = function(){ | |
return this.pattern$getter().apply(this, arguments); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.pattern$getter = function(){ | |
return this.pattern$field; | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.multiLine$named = function(){ | |
return this.multiLine$getter().apply(this, arguments); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.multiLine$getter = function(){ | |
return this.multiLine$field; | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.ignoreCase$named = function(){ | |
return this.ignoreCase$getter().apply(this, arguments); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.ignoreCase$getter = function(){ | |
return this.ignoreCase$field; | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.allMatches$member = function(str){ | |
return _LazyAllMatches$Dart._LazyAllMatches$$Factory(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.allMatches$named = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart.prototype.allMatches$member.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.allMatches$getter = function allMatches$getter(){ | |
return $bind(JSSyntaxRegExp$Dart.prototype.allMatches$named, this); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.firstMatch$member = function(str){ | |
return native_JSSyntaxRegExp_firstMatch.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.firstMatch$named = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart.prototype.firstMatch$member.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.firstMatch$getter = function firstMatch$getter(){ | |
return $bind(JSSyntaxRegExp$Dart.prototype.firstMatch$named, this); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.hasMatch$member = function(str){ | |
return native_JSSyntaxRegExp_hasMatch.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.hasMatch$named = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart.prototype.hasMatch$member.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.hasMatch$getter = function hasMatch$getter(){ | |
return $bind(JSSyntaxRegExp$Dart.prototype.hasMatch$named, this); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.stringMatch$member = function(str){ | |
return native_JSSyntaxRegExp_stringMatch.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.stringMatch$named = function($n, $o, str){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart.prototype.stringMatch$member.call(this, str); | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.stringMatch$getter = function stringMatch$getter(){ | |
return $bind(JSSyntaxRegExp$Dart.prototype.stringMatch$named, this); | |
} | |
; | |
JSSyntaxRegExp$Dart._pattern$$member_ = function(regexp){ | |
return regexp.pattern$getter(); | |
} | |
; | |
JSSyntaxRegExp$Dart._pattern$$named_ = function($n, $o, regexp){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart._pattern$$member_(regexp); | |
} | |
; | |
function native_JSSyntaxRegExp__pattern(regexp){ | |
return JSSyntaxRegExp$Dart._pattern$$member_(regexp); | |
} | |
JSSyntaxRegExp$Dart._pattern$$getter_ = function _pattern$$getter_(){ | |
return JSSyntaxRegExp$Dart._pattern$$named_; | |
} | |
; | |
JSSyntaxRegExp$Dart._multiLine$$member_ = function(regexp){ | |
return regexp.multiLine$getter(); | |
} | |
; | |
JSSyntaxRegExp$Dart._multiLine$$named_ = function($n, $o, regexp){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart._multiLine$$member_(regexp); | |
} | |
; | |
function native_JSSyntaxRegExp__multiLine(regexp){ | |
return JSSyntaxRegExp$Dart._multiLine$$member_(regexp); | |
} | |
JSSyntaxRegExp$Dart._multiLine$$getter_ = function _multiLine$$getter_(){ | |
return JSSyntaxRegExp$Dart._multiLine$$named_; | |
} | |
; | |
JSSyntaxRegExp$Dart._ignoreCase$$member_ = function(regexp){ | |
return regexp.ignoreCase$getter(); | |
} | |
; | |
JSSyntaxRegExp$Dart._ignoreCase$$named_ = function($n, $o, regexp){ | |
var seen = 0; | |
var def = 0; | |
if (seen != $o.count || seen + def + $n != 1) | |
$nsme(); | |
return JSSyntaxRegExp$Dart._ignoreCase$$member_(regexp); | |
} | |
; | |
function native_JSSyntaxRegExp__ignoreCase(regexp){ | |
return JSSyntaxRegExp$Dart._ignoreCase$$member_(regexp); | |
} | |
JSSyntaxRegExp$Dart._ignoreCase$$getter_ = function _ignoreCase$$getter_(){ | |
return JSSyntaxRegExp$Dart._ignoreCase$$named_; | |
} | |
; | |
JSSyntaxRegExp$Dart.prototype.$const_id = function(){ | |
return $cls('JSSyntaxRegExp$Dart') + (':' + $dart_const_id(this.pattern$field)) + (':' + $dart_const_id(this.multiLine$field)) + (':' + $dart_const_id(this.ignoreCase$field)); | |
} | |
; | |
function JSSyntaxMatch$Dart(){ | |
} | |
JSSyntaxMatch$Dart.$lookupRTT = function(){ | |
return RTT.create($cls('JSSyntaxMatch$Dart'), JSSyntaxMatch$Dart.$RTTimplements); | |
} | |
; | |
JSSyntaxMatch$Dart.$RTTimplements = function(rtt){ | |
JSSyntaxMatch$Dart.$addTo(rtt); | |
} | |
; | |
JSSyntaxMatch$Dart.$addTo = function(target){ | |
var rtt = JSSyntaxMatch$Dart.$lookupRTT(); | |
target.implementedTypes[rtt.classKey] = rtt; | |
Match$Dart.$addTo(target); | |
} | |
; | |
JSSyntaxMatch$Dart.prototype.$implements$JSSyntaxMatch$Dart = 1; | |
JSSyntaxMatch$Dart.prototype.$implements$Match$Dart = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var e;function f(a,b){if(b>=0&&b<a.length)return b;h(aa(b))};Boolean.D=function(a){return typeof a=="boolean"||a instanceof Boolean};var i={},ba={};function ca(a,b){return function(c,d){return a.call(void 0,b,c,d)}}function j(a,b,c){return function(d,g,m){return a.call(b,c,d,g,m)}}function da(a,b,c){return function(d,g,m,p){return a.call(b,c,d,g,m,p)}}function ea(a,b){var c=fa;return function(d,g,m){return c.call(void 0,a,b,d,g,m)}}function ga(a,b){if(a.prototype.__proto__)a.prototype.__proto__=b.prototype;else{var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a}} | |
function k(a){if(!(typeof a=="function"?a():a))throw a=Error("Assertion failed. "),Error.captureStackTrace&&Error.captureStackTrace(a),a;}function ha(a,b){return typeof a=="number"&&typeof b=="number"?a+b:a.Pa(b)}function ia(a){a/=4;return a<0?Math.ceil(a):Math.floor(a)}function l(a,b){return a===void 0?b===void 0:typeof a=="number"&&typeof b=="number"?a==b:a.U(b)}function h(a){a&&typeof a=="object"&&Error.captureStackTrace&&Error.captureStackTrace(a);throw a;} | |
function n(){var a=new o;a.f=ja();Object.g.call(a);a.Ya="";a.Sa="";a.ia=[];Object.d.call(a);h(a)}var q={a:0};function r(a){if(a===void 0)return"";if(typeof a==="number")return"n"+a;if(typeof a==="boolean")return"b"+(a?1:0);if(typeof a==="string"){var a=ka+a,b=la[a];b||(b="s"+ ++ma,la[a]=b);return b}if(typeof a==="function")throw"a function is not a constant expression";a=a.ab;if(a===void 0)throw"internal error: reference to non-canonical constant";return a}var ka=":",ma=0,la={},na={}; | |
function t(a,b){var c;if(a instanceof Array){c=[];for(var d=a.length-1;d>=0;d--)c.push(r(a[d]));c="a"+c.join(",")}else if(a&&a.Ma){c=oa();c.n("m");for(var d=true,g=pa(a).oa(0,q);g.aa(0,q);){var m=g.pa(0,q);d?d=false:c.n(",");c.n(r(m));c.n(",");c.n(qa(a.L(m)))}c=c.o(0,q)}else c="o"+a.t();if(b!=null){c+="<";for(d=b.length-1;d>=0;d--)c+=b[d],c+=",";c+=">"}d=ka+c;g=na[d];if(g!=null)return g;a.ab=c;return na[d]=a};var u=null,v=[],w=this,x=typeof w.importScripts!="undefined",ra=x||typeof w.Worker!="undefined",y=0,z=ra,A=false;function sa(a,b,c,d,g){if(a==y){if(a=ta.get(b))(c=a.Da.get(c))&&ua(c,a,d,g)}else(x?B:va.get(a)).postMessage({$:"message",qb:a,lb:b,mb:c,ea:d,ga:g})}function ua(a,b,c,d){wa(b,function(){var b=z||A?xa(c):c,m=z||A?xa(d):d;if(a.V!=null){var p;var C=a.V;if(C===ba)throw"circular initialization";C!==i?p=C:(a.V=ba,a.V=void 0);p(2,q,b,m)}ya()})}function za(){this.map={};this.a=0} | |
function Ba(a,b,c){if(a.map[b])throw Error("Registry: Elements must be registered only once.");a.map[b]=c;a.a++}function Ca(a){var b=va;a in b.map&&(delete b.map[a],b.a--)}za.prototype.get=function(a){return this.map[a]};var va=new za,ta=new za,Da=false;x&&(Da=function(a){B.postMessage({$:"print",ea:a})}); | |
function Ea(a,b){var c=b.data;switch(c.$){case "start":y=c.id;var d=w[c.$a](),g=c.ga;wa(new Fa,function(){var a=z||A?xa(g):g,b=Ga(),c;0!=q.a&&n();c=Ha.prototype.Fa.call(b);if(u.w==null||u.w.J())Ia.call(a,"spawned",c);else{c={message:"spawned",ga:c};var s=t(D([],Array.h()),[""]),J;J={};if(u.w==null){var Aa=Ja();u.w=Aa}J.Ga=s.length;Aa=j(Ka,void 0,J);for(s=s.oa(0,q);s.aa(0,q);)La(s.pa(0,q),Aa);J.result=Ma();u.w.S(ca(Na,J));ya();La(J.result,j(Oa,a,c))}d.Db(b)});Pa();break;case "spawn-worker":Qa(c.$a, | |
c.Jb);break;case "message":sa(c.qb,c.lb,c.mb,c.ea,c.ga);Pa();break;case "close":Ca(a.id);a.terminate();Pa();break;case "print":Ra(c.ea);break;case "error":throw c.ea;}}if(ra)w.onmessage=function(a){Ea(B,a)};var B=new function(){this.id=0};B.postMessage=function(a){w.postMessage(a)};var Sa=1;function Fa(){this.id=Sa++;this.nb={};this.nb.Ib=Math.random()*268435455>>>0;this.Da=new za;Ta(this,function(){for(var a=0,b=v.length;a<b;a++)v[a]()})}function Ta(a,b){var c=u;u=a;try{b()}finally{u=c}}var Ua=[]; | |
function Va(a,b){this.kb=a;this.hb=b}function wa(a,b){Ua.push(new Va(a,b))}var Wa=y+1,Xa;if(!ra||x)Xa=null;else{var Ya=document.getElementsByTagName("script"),Za=Ya[Ya.length-1],$a=Za.src;if(!$a)$a="FIXME:5407062_"+Math.random().toString(),Za.src=$a;Xa=$a}function Qa(a,b){var c=new Worker(Xa);c.onmessage=function(a){Ea(c,a)};var d=Wa++;c.id=d;Ba(va,d,c);c.postMessage({$:"start",id:d,ga:b,$a:a})} | |
function Ia(a,b){if(b!==void 0&&!(b instanceof ab))throw"SendPort::send: Illegal replyTo type.";a=z||A?bb(a):cb(a);b=z||A?bb(b):cb(b);sa(this.H,this.F,this.G,a,b)}function db(){var a;Ua.length!=0?(a=Ua[0],Ua.splice(0,1)):a=void 0;return a?(Ta(a.kb,a.hb),true):(x&&ta.a===0&&B.postMessage({$:"close"}),false)}function eb(){if(typeof window!="undefined"&&window.setTimeout)(function b(){db()&&window.setTimeout(b,0)})();else for(;;)if(!db())break} | |
function Pa(){if(x)try{eb()}catch(a){B.postMessage({$:"error",ea:""+a})}else eb()};Number.D=function(a){return typeof a=="number"||a instanceof Number};Object.D=function(){return true};function fb(a){Da?Da(a):this.console?this.console.log(a):this.write&&(this.write(a),this.write("\n"))};function E(a,b,c){this.c=a;this.pb=b?b:a;this.i=c;this.b={};this.b[a]=this;a!=F("Object")&&(this.b[F("Object")]=G)}var gb={};E.prototype.q=[];E.prototype.toString=function(){return this.pb};E.prototype.ya=function(a){return a==null?this===G||this===H:this.ca(hb(a))};function ib(a,b){return a.hasOwnProperty(b)?a[b]:null} | |
E.prototype.ca=function(a){if(a===this||a===H)return true;a=ib(a.b,this.c);if(a==null)return false;if(a.i&&this.i)for(var b=this.i.length-1;b>=0;b--)if(!this.i[b].ca(a.i[b]))return false;return true};function jb(a){if(a instanceof Array)return Array.h();switch(typeof a){case "string":return String.h();case "number":return Number.h();case "boolean":return Boolean.h()}return kb} | |
function I(a,b,c){if(a==F("Object"))return G;var d=lb(a,c),g=ib(gb,d);if(g)return g;a=lb(a);g=new E(a,d,c);gb[d]=g;b&&b(g,c);return g}function lb(a,b){var c=a;b&&(c+="<"+b.join(",")+">");return c}function hb(a){return a.f?a.f:jb(a)}function D(a,b){a.f=b;return a}function K(a,b){if(a)if(a.length>b)return a[b];else throw Error("Missing type arg");return H}function L(a,b){var c=ib(hb(a).b,b);if(!c)throw Error("internal error: can not find "+b+" in "+JSON.stringify(a));return c.i}var G=new E(F("Object")); | |
G.ya=function(){return true};G.ca=function(){return true};var H=new E(F("Dynamic"));H.ya=function(){return true};H.ca=function(){return true};var kb=new E(F("::"));kb.ya=function(){return true};kb.ca=function(){return true};D(Function.prototype,I(F("Function$Dart")));function F(a){return"cls:"+a};String.D=function(a){return typeof a=="string"||a instanceof String};function mb(a){if(!(a instanceof Array)){for(var b=a.length,c=Array(b),d=0;d<b;d++)c[d]=a.L(d);a=c}return String.fromCharCode.apply(this,a)};function M(a,b){var c=true;b==null?(b=0,c=false):b<0&&h(nb(b));var d;d=ob(pb([K(a,0)]));d=D(Array(b),Array.h(hb(d).i));d.X=c;return d};Array.h=function(a){return I(F("Array"),Array.C,a)};Array.C=function(a,b){Array.v(a,b);a.q=[]};Array.v=function(a,b){var c=Array.h(b);a.b[c.c]=c;qb(a,[K(a.i,0)])};e=Array.prototype;e.La=1;e.L=function(a){if(0<=a&&a<this.length)return this.sa(a);h(aa(a))};e.T=function(a,b){(a<0||this.length<=a)&&h(aa(a));this[a]=b}; | |
e.za=function(){var a;if(this.X){a=rb([K(L(this,F("Array")),0)]);var b=new N;b.f=a;Object.g.call(b);b.M=this;b.R=0;b.P=this.length}else a=sb([K(L(this,F("Array")),0)]),b=new O,b.f=a,Object.g.call(b),b.M=this,b.R=0;Object.d.call(b);return a=b};e.oa=function(a,b){(0!=b.a||0+a!=0)&&n();return Array.prototype.za.call(this)};e.sa=function(a){return this[a]};e.da=function(){return this.length};e.s=function(a){for(var b=this.oa(0,q);b.aa(0,q);){var c=b.pa(0,q);a(1,q,c)}}; | |
e.wa=function(a,b,c){(0!=b.a||0+a!=1)&&n();return Array.prototype.s.call(this,c)};e.J=function(){return this.length===0};e.n=function(a){this.X?h(t(tb("Cannot add to a non-extendable array"))):this.push(a)};e.S=function(a){this.n(a)};e.Z=function(){this.X?h(t(tb("Cannot clear a non-extendable array"))):this.X?h(t(tb("Cannot change the length of a non-extendable array"))):this.length=0};Array.d=function(){Object.d.call(this)};Array.g=function(){Object.g.call(this)}; | |
Array.Ab=function(a){var b=[];b.f=a;Array.g.call(b);Array.d.call(b);return b};function N(a,b,c){this.M=a;this.R=b;this.P=c}function rb(a){return I(F("FixedSizeArrayIterator$Dart"),ub,a)}function ub(a,b){var c=rb(b);a.b[c.c]=c;vb(a,[K(a.i,0)]);a.q=[]}ga(N,O);N.prototype.I=function(){return this.P>this.R};N.prototype.aa=function(a,b){(0!=b.a||0+a!=0)&&n();return N.prototype.I.call(this)};function O(a,b){this.M=a;this.R=b}function sb(a){return I(F("VariableSizeArrayIterator$Dart"),wb,a)}function wb(a,b){vb(a,b);a.q=[]}function vb(a,b){var c=sb(b);a.b[c.c]=c;xb(a,[K(a.i,0)])}O.prototype.I=function(){return this.M.length>this.R};O.prototype.aa=function(a,b){(0!=b.a||0+a!=0)&&n();return O.prototype.I.call(this)};O.prototype.Ba=function(){this.I()||h(t(yb()));return this.M[f(this.M,this.R++)]};O.prototype.pa=function(a,b){(0!=b.a||0+a!=0)&&n();return O.prototype.Ba.call(this)};Boolean.h=function(){return I(F("Boolean"),Boolean.C)};Boolean.C=function(a){Boolean.v(a)};Boolean.v=function(a){var b=Boolean.h();a.b[b.c]=b;b=I(F("bool$Dart"));a.b[b.c]=b};Boolean.prototype.U=function(a){return typeof a=="boolean"?this==a:a instanceof Boolean?this==Boolean(a):false};Boolean.prototype.j=function(){return this==true?"true":"false"};Boolean.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Boolean.prototype.j.call(this)};Boolean.d=function(){Object.d.call(this)};Boolean.g=function(){Object.g.call(this)}; | |
Boolean.sb=function(){var a=new Boolean;a.f=Boolean.h();Boolean.g.call(a);Boolean.d.call(a);return a};function qa(a){return r(a)};function ab(){}function zb(a){var b=I(F("SendPortImpl$Dart"),zb);a.b[b.c]=b;Ab(a)}e=ab.prototype;e.Na=1;function P(a,b,c){var d=new ab;d.f=I(F("SendPortImpl$Dart"),zb);Object.g.call(d);d.H=a;d.F=b;d.G=c;Object.d.call(d);return d}function Oa(a,b,c){(0!=c.a||0+b!=1)&&n();Ia.call(this,a.message,a.ga)}e.U=function(a){return!!(a!=null&&a.Na)&&l(this.H,a.H)&&l(this.F,a.F)&&l(this.G,a.G)};e.ba=function(){return this.H<<16^this.F<<8^this.G};e.na=function(a,b){(0!=b.a||0+a!=0)&&n();return ab.prototype.ba.call(this)}; | |
e.t=function(){return F("SendPortImpl$Dart")+(":"+r(this.G))+(":"+r(this.F))+(":"+r(this.H))};var Bb;function Ha(a,b){this.la=a;this.V=b}function Cb(){return I(F("ReceivePortImpl$Dart"),Db)}function Db(a){var b=Cb();a.b[b.c]=b;b=I(F("ReceivePort$Dart"));a.b[b.c]=b}Ha.prototype.bb=1;function Ga(){Bb=u.Qa;var a=ha(Bb,1);u.Qa=a;a=new Ha(Bb,void 0);Object.d.call(this);a.f=Cb();Object.d.call(a);var b=a.la,c=u;c.Da.a===0&&Ba(ta,c.id,c);Ba(c.Da,b,a);return a}Ha.prototype.Fa=function(){return P(y,u.id,this.la)};function cb(a){var b=new Eb;b.f=I(F("Copier$Dart"),Fb);Object.g.call(b);Object.d.call(b);return Gb(b,a)}function bb(a){var b=new Hb;b.f=I(F("Serializer$Dart"),Ib);Object.g.call(b);b.ma=0;Object.d.call(b);return Gb(b,a)}function xa(a){var b=Jb();0!=q.a&&n();return Kb.prototype.gb.call(b,a)};function Lb(a){this.B=a}function Mb(a){var b=I(F("MessageTraverser$Dart"));a.b[b.c]=b}function Nb(a){return a==null||String.D(a)||!!(a!=null&&a.Oa)||Boolean.D(a)}e=Lb.prototype;e.ob=function(a){if(Nb(a))return this.qa(a);this.B=M(null,void 0);var b=void 0;try{b=Q(this,a)}finally{for(var a=this.B.length,c=0;c<a;c++)this.B[f(this.B,c)].__MessageTraverser__attached_info__=void 0;this.B=void 0}return b};function Gb(a,b){0!=q.a&&n();return Lb.prototype.ob.call(a,b)} | |
function Ob(a,b,c){a.B.n(b);b.__MessageTraverser__attached_info__=c}function Q(a,b){if(Nb(b))return a.qa(b);if(b!=null&&b.La)return a.Ha(b);if(b!=null&&b.Ma)return a.Ia(b);if(b!=null&&b.Na)return a.ha(b);if(b!=null&&b.bb)return a.Ja(b);if(b!=null&&b.rb)return a.Ka(b);h("Message serialization: Illegal value "+R(b)+" passed")}e.qa=function(){};e.Ha=function(){};e.Ia=function(){};e.ha=function(){};e.Ja=function(){};e.Ka=function(){};function Pb(a){return a.__MessageTraverser__attached_info__};function Eb(a){this.B=a}function Fb(a){var b=I(F("Copier$Dart"),Fb);a.b[b.c]=b;Mb(a)}ga(Eb,Lb);e=Eb.prototype;e.qa=function(a){return a};e.Ha=function(a){var b=Pb(a);if(b!=null)return b;var c=a.length,b=M(null,c);Ob(this,a,b);for(var d=0;d<c;d++)b[f(b,d)]=Q(this,a[f(a,d)]);return b};function Qb(a,b,c,d,g){(0!=c.a||0+b!=2)&&n();a.copy.T(Q(this,d),Q(this,g))}e.Ia=function(a){var b;b={};b.copy=Pb(a);if(b.copy!=null)return b.copy;b.copy=Rb();Ob(this,a,b.copy);a.wa(1,q,da(Qb,this,b));return b.copy}; | |
e.ha=function(a){return P(a.H,a.F,a.G)};e.Ja=function(a){return P(y,u.id,a.la)};e.Ka=function(a){return P(y,u.id,a.la)};function Hb(a,b){this.B=a;this.ma=b}function Ib(a){var b=I(F("Serializer$Dart"),Ib);a.b[b.c]=b;Mb(a)}ga(Hb,Lb);e=Hb.prototype;e.qa=function(a){return a};e.Ha=function(a){var b=Pb(a);if(b!=null)return S(D(["ref",b],Array.h()));b=this.ma++;Ob(this,a,b);a=Sb(this,a);return S(D(["list",b,a],Array.h()))};e.Ia=function(a){var b=Pb(a);if(b!=null)return S(D(["ref",b],Array.h()));b=this.ma++;Ob(this,a,b);var c=Sb(this,pa(a));0!=q.a&&n();a=T.prototype.jb.call(a);a=Sb(this,a);return S(D(["map",b,c,a],Array.h()))}; | |
e.ha=function(a){return S(D(["sendport",a.H,a.F,a.G],Array.h()))};e.Ja=function(a){return this.ha(a.Fa())};e.Ka=function(a){return this.ha(a.Fa())};function Sb(a,b){for(var c=b.length,d=Array(c),g=0;g<c;g++){var m=Q(a,b[f(b,g)]);d[g]=m}return d}function S(a){if(a instanceof Array)a.f=null;else{for(var b=a.length,c=Array(b),d=0;d<b;d++)c[d]=a.L(d);a=c}return a};function Kb(a){this.ka=a}function Jb(){var a=new Kb(void 0);Object.d.call(this);a.f=I(F("Deserializer$Dart"));Object.d.call(a);return a}function Tb(a){return a==null||String.D(a)||!!(a!=null&&a.Oa)||Boolean.D(a)}Kb.prototype.gb=function(a){if(Tb(a))return a;this.ka=Rb();return Ub(this,a)}; | |
function Ub(a,b){if(Tb(b))return b;k(b instanceof Array);switch(b[0]){case "ref":var c=a.ka.L(b[1]);k(c!=null);return c;case "list":var d=b[1],c=b[2];k(c instanceof Array);k(!!(c!=null&&c.La));a.ka.T(d,c);for(var d=c.length,g=0;g<d;g++)c[f(c,g)]=Ub(a,c[f(c,g)]);return c;case "map":c=Rb();a.ka.T(b[1],c);d=b[2];g=b[3];k(d instanceof Array);k(g instanceof Array);var m=d.length;k(m===g.length);for(var p=0;p<m;p++){var C=Ub(a,d[p]),s=Ub(a,g[p]);c.T(C,s)}return c;case "sendport":return P(b[1],b[2],b[3]); | |
default:h("Unexpected serialized object")}};Number.h=function(){return I(F("Number"),Number.C)};Number.C=function(a){Number.v(a)};Number.v=function(a){var b=Number.h();a.b[b.c]=b;Vb(a);Wb(a)};e=Number.prototype;e.Oa=1;e.Pa=function(a){return this+a};e.U=function(a){return typeof a=="number"?this==a:a instanceof Number?this==Number(a):false};e.j=function(){return this.toString()};e.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Number.prototype.j.call(this)};e.ba=function(){return this&268435455};e.na=function(a,b){(0!=b.a||0+a!=0)&&n();return Number.prototype.ba.call(this)}; | |
Number.d=function(){Object.d.call(this)};Number.g=function(){Object.g.call(this)};Number.zb=function(){var a=new Number;a.f=Number.h();Number.g.call(a);Number.d.call(a);return a};String.h=function(){return I(F("String"),String.C)};String.C=function(a){String.v(a)};String.v=function(a){var b=String.h();a.b[b.c]=b;Xb(a)};String.Bb=function(a){return String.Xa(a)};e=String.prototype;e.L=function(a){if(0<=a&&a<this.length)return this.sa(a);h(aa(a))};e.da=function(){return this.length};e.U=function(a){return typeof a=="string"?this==a:a instanceof String?this==String(a):false};e.J=function(){return this.length===0};e.Pa=function(a){return this.concat(a.o(0,q))}; | |
e.ba=function(){if(this.r===void 0){for(var a=0;a<this.length;a++)this.r+=this.charCodeAt(a),this.r+=this.r<<10,this.r^=this.r>>6;this.r+=this.r<<3;this.r^=this.r>>11;this.r+=this.r<<15;this.r&=536870911}return this.r};e.na=function(a,b){(0!=b.a||0+a!=0)&&n();return String.prototype.ba.call(this)};e.j=function(){return String(this)};e.o=function(a,b){(0!=b.a||0+a!=0)&&n();return String.prototype.j.call(this)};String.Xa=function(a){return mb(a)};String.eb=function(a,b,c){(0!=b.a||0+a!=1)&&n();return String.Xa(c)}; | |
String.Cb=function(){return String.eb};String.prototype.sa=function(a){return this[a]};function R(a){return a==null?"null":a.o(0,q)};function Yb(){}function Zb(){return I(F("StringBufferImpl$Dart"),$b)}function $b(a){var b=Zb();a.b[b.c]=b;b=I(F("StringBuffer$Dart"));a.b[b.c]=b}function oa(){var a=new Yb;a.f=Zb();Object.g.call(a);Object.d.call(a);a.Z();a.n("");return a}e=Yb.prototype;e.da=function(){return this.P};e.J=function(){return this.P===0};e.n=function(a){a=a.o(0,q);if(a==null||a.J())return this;this.z.n(a);this.P+=a.da();return this}; | |
e.Z=function(){var a=[I(F("String$Dart"),ac)],b=void 0,c=true;b==null?(b=0,c=false):b<0&&h(nb(b));a=ob(pb([K(a,0)]));b=D(Array(b),Array.h(hb(a).i));b.X=c;this.z=b;this.P=0;return this};e.j=function(){if(this.z.length===0)return"";if(this.z.length===1)return this.z[f(this.z,0)];var a;a=this.z;for(var b="",c=0;c<a.length;c++){c>0&&(b=b.concat(""));var d=a[f(a,c)],b=b.concat(d)}a=b;this.z.Z();this.z.n(a);return a};e.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Yb.prototype.j.call(this)};function bc(){}function pb(a){return I(F("TypeToken$Dart"),null,a)}function ob(a){var b=new bc;b.f=a;Object.g.call(b);Object.d.call(b);return b}bc.prototype.t=function(){return F("TypeToken$Dart")};function cc(a,b){qb(a,b);a.q=[]}function qb(a,b){var c=I(F("Array$Dart"),cc,b);a.b[c.c]=c;dc(a,[K(a.i,0)])};function T(){}function ec(a){return I(F("HashMapImplementation$Dart"),fc,a)}function fc(a,b){var c=ec(b);a.b[c.c]=c;gc(a,[K(a.i,0),K(a.i,1)]);a.q=[]}e=T.prototype;e.Ma=1;function Rb(){var a=ec(),b=new T;b.f=a;Object.g.call(b);Object.d.call(b);if(u.K==null)a=Object.cb(),u.K=a;b.A=0;b.Y=0;a=ia(24);b.Va=a;b.e=M(null,8);b.k=M([K(L(b,F("HashMapImplementation$Dart")),1)],8);return b} | |
function hc(a,b){var c;c=b.na(0,q)&a.e.length-1;for(var d=1,g=-1;;){var m=a.e[f(a.e,c)];if(m==null)return g<0?c:g;else if(l(m,b))return c;else g<0&&u.K===m&&(g=c);m=d++;c=c+m&a.e.length-1}}function ic(a,b){var c;c=b.na(0,q)&a.e.length-1;for(var d=1;;){var g=a.e[f(a.e,c)];if(g==null)return-1;if(l(g,b))return c;g=d++;c=c+g&a.e.length-1}} | |
function jc(a,b){k((b&b-1)===0);var c=a.e.length;a.Va=ia(b*3);var d=a.e,g=a.k;a.e=M(null,b);a.k=M([K(L(a,F("HashMapImplementation$Dart")),1)],b);for(var m=0;m<c;m++){var p=d[f(d,m)];if(!(p==null||p===u.K)){var C=g[f(g,m)],s=hc(a,p);a.e[f(a.e,s)]=p;a.k[f(a.k,s)]=C}}a.Y=0}e.Z=function(){this.Y=this.A=0;for(var a=this.e.length,b=0;b<a;b++)this.e[f(this.e,b)]=void 0,this.k[f(this.k,b)]=void 0}; | |
e.T=function(a,b){var c=this.A+1;c>=this.Va?jc(this,this.e.length*2):this.Y>this.e.length-c-this.Y&&jc(this,this.e.length);c=hc(this,a);(this.e[f(this.e,c)]==null||this.e[f(this.e,c)]===u.K)&&this.A++;this.e[f(this.e,c)]=a;this.k[f(this.k,c)]=b};e.L=function(a){a=ic(this,a);return a<0?void 0:this.k[f(this.k,a)]};e.fa=function(a){a=ic(this,a);if(a>=0){this.A--;var b=this.k[f(this.k,a)];this.k[f(this.k,a)]=void 0;this.e[f(this.e,a)]=u.K;this.Y++;return b}}; | |
e.Ea=function(a,b,c){(0!=b.a||0+a!=1)&&n();return T.prototype.fa.call(this,c)};e.J=function(){return this.A===0};e.da=function(){return this.A};e.s=function(a){for(var b=this.e.length,c=0;c<b;c++)this.e[f(this.e,c)]!=null&&this.e[f(this.e,c)]!==u.K&&a(2,q,this.e[f(this.e,c)],this.k[f(this.k,c)])};e.wa=function(a,b,c){(0!=b.a||0+a!=1)&&n();return T.prototype.s.call(this,c)};function kc(a,b,c,d){(0!=c.a||0+b!=2)&&n();a.list[f(a.list,a.xa++)]=d} | |
e.ib=function(){var a;a={};a.list=M([K(L(this,F("HashMapImplementation$Dart")),0)],this.A);a.xa=0;this.s(da(kc,void 0,a));return a.list};function pa(a){0!=q.a&&n();return T.prototype.ib.call(a)}function lc(a,b,c,d,g){(0!=c.a||0+b!=2)&&n();a.list[f(a.list,a.xa++)]=g}e.jb=function(){var a;a={};a.list=M([K(L(this,F("HashMapImplementation$Dart")),1)],this.A);a.xa=0;this.s(da(lc,void 0,a));return a.list};function mc(){}function nc(a,b){var c=I(F("PromiseImpl$Dart"),nc,b);a.b[c.c]=c;c=[K(a.i,0)];c=I(F("Promise$Dart"),null,c);a.b[c.c]=c;a.q=[]}function Ma(){var a=I(F("PromiseImpl$Dart"),nc,void 0),b=new mc;b.f=a;Object.g.call(b);b.p=0;b.ta=void 0;b.ra=void 0;b.Q=void 0;b.O=void 0;b.ja=void 0;Object.d.call(b);return b}function U(a){return a.p!==0&&a.p!==1}function oc(a,b,c,d){(0!=c.a||0+b!=1)&&n();d(1,q,a.Aa)} | |
function pc(a,b){var c={Aa:b};a.p===4?(a.ta=c.Aa,a.p=5):(U(a)&&h("Attempted to complete an already completed promise."),a.ta=c.Aa,a.p=2,a.Q!=null&&a.Q.s(j(oc,void 0,c)),qc(a))}function qc(a){a.Q=void 0;a.O=void 0;a.ja=void 0}function rc(a,b,c,d){(0!=c.a||0+b!=1)&&n();d(1,q,a.va)}function sc(a,b){var c={va:b};a.p===4?(a.ra=c.va,a.p=6):(U(a)&&h("Can't fail an already completed promise."),a.ra=c.va,a.p=3,a.O!=null&&a.O.s(j(rc,void 0,c)),qc(a))} | |
function fa(a,b,c,d,g){(0!=d.a||0+c!=1)&&n();pc(b.Ca,a.fb(1,q,g))}function tc(a,b,c,d){(0!=c.a||0+b!=1)&&n();sc(a.Ca,d)}function uc(a,b,c){(0!=c.a||0+b!=0)&&n();sc(a.Ca,"Source promise was cancelled")} | |
function La(a,b){var c={fb:b},d;d={};d.Ca=Ma();c=ea(c,d);if(a.p===2)c(1,q,a.ta);else if(!U(a)){if(a.Q==null)a.Q=Ja();a.Q.S(c)}c=j(tc,void 0,d);if(a.p===3)c(1,q,a.ra);else if(!U(a)){if(a.O==null)a.O=Ja();a.O.S(c)}d=ca(uc,d);if(a.p===4||a.p===5||a.p===6)d(0,q);else if(!U(a)){if(a.ja==null)a.ja=Ja();a.ja.S(d)}};function Ka(a,b,c){(0!=c.a||0+b!=1)&&n();k(a.Ga>0);a.Ga--}function Na(a,b,c){(0!=c.a||0+b!=0)&&n();a.Ga>0?a=false:(pc(a.result,void 0),a=true);return a}function ya(){if(u.w!=null)for(;!u.w.J()&&u.w.m.l.ua()(0,q);)u.w.m.l.Ea(0,q)};function V(a,b,c){this.u=a;this.l=b;this.N=c}function vc(a){return I(F("DoubleLinkedQueueEntry$Dart"),null,a)}V.prototype.Ua=function(a,b){this.l=b;this.u=a;a.l=this;b.u=this};V.prototype.fa=function(){this.u.l=this.l;this.l.u=this.u;this.u=this.l=void 0;return this.N};V.prototype.Ea=function(a,b){(0!=b.a||0+a!=0)&&n();return V.prototype.fa.call(this)};V.prototype.ua=function(){return this.N};function W(a,b,c){this.u=a;this.l=b;this.N=c}function wc(a){return I(F("_DoubleLinkedQueueEntrySentinel$Dart"),xc,a)}function xc(a,b){var c=wc(b);a.b[c.c]=c;c=[K(a.i,0)];c=vc(c);a.b[c.c]=c;a.q=[]}ga(W,V);W.prototype.fa=function(){h(t(yc()))};W.prototype.Ea=function(a,b){(0!=b.a||0+a!=0)&&n();return W.prototype.fa.call(this)};W.prototype.ua=function(){h(t(yc()))};function zc(){}function Ac(a){return I(F("DoubleLinkedQueue$Dart"),Bc,a)}function Bc(a,b){var c=Ac(b);a.b[c.c]=c;Cc(a,[K(a.i,0)]);a.q=[]}function Ja(){var a=Ac([I(F("Function$Dart"))]),b=new zc;b.f=a;Object.g.call(b);Object.d.call(b);var a=wc([K(L(b,F("DoubleLinkedQueue$Dart")),0)]),c=new W;c.f=a;Object.g.call(c);Object.d.call(c);c.N=void 0;c.Ua(c,c);b.m=c;return b}e=zc.prototype; | |
e.S=function(a){var b=this.m,c=vc([K(L(b,F("DoubleLinkedQueueEntry$Dart")),0)]),d=new V;d.f=c;Object.g.call(d);Object.d.call(d);d.N=a;a=b.u;0!=q.a&&n();V.prototype.Ua.call(d,a,b)};e.n=function(a){this.S(a)};function Dc(a,b,c){(0!=c.a||0+b!=1)&&n();a.Za++}e.da=function(){var a;a={Za:0};this.s(j(Dc,void 0,a));return a.Za};e.J=function(){return this.m.l===this.m};e.Z=function(){this.m.l=this.m;this.m.u=this.m};e.s=function(a){for(var b=this.m.l;b!==this.m;)a(1,q,b.N),b=b.l}; | |
e.wa=function(a,b,c){(0!=b.a||0+a!=1)&&n();return zc.prototype.s.call(this,c)};e.za=function(){return Ec(Fc([K(L(this,F("DoubleLinkedQueue$Dart")),0)]),this.m)};e.oa=function(a,b){(0!=b.a||0+a!=0)&&n();return zc.prototype.za.call(this)};function X(a,b){this.m=a;this.W=b}function Fc(a){return I(F("_DoubleLinkedQueueIterator$Dart"),Gc,a)}function Gc(a,b){var c=Fc(b);a.b[c.c]=c;xb(a,[K(a.i,0)]);a.q=[]}function Ec(a,b){var c=new X(b,void 0);Object.d.call(this);c.f=a;Object.d.call(c);c.W=c.m;return c}X.prototype.I=function(){return this.W.l!==this.m};X.prototype.aa=function(a,b){(0!=b.a||0+a!=0)&&n();return X.prototype.I.call(this)};X.prototype.Ba=function(){this.I()||h(t(yb()));this.W=this.W.l;return this.W.ua()}; | |
X.prototype.pa=function(a,b){(0!=b.a||0+a!=0)&&n();return X.prototype.Ba.call(this)};Object.h=function(){return I(F("Object"))};Object.v=function(a){var b=Object.h();a.b[b.c]=b};Object.d=function(){};Object.g=function(){};Object.cb=function(){var a={};a.f=Object.h();Object.d.call(a);return a};Object.prototype.U=function(a){return this===a};Object.prototype.j=function(){return"Object"};Object.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Object.prototype.j.call(this)};Object.prototype.t=function(){return F("Object")+(":"+r(this.Hb))};function Ra(a){0!=q.a&&n();a=a==null?"null":a.o(0,q);fb(a)};function Hc(a,b){Ic(a,b);a.q=[]}function Ic(a,b){var c=I(F("Collection$Dart"),Hc,b);a.b[c.c]=c;c=[K(a.i,0)];c=I(F("Iterable$Dart"),null,c);a.b[c.c]=c};function Jc(a){Wb(a)}function Wb(a){var b=I(F("double$Dart"),Jc);a.b[b.c]=b;Kc(a)};function Y(a){var b=I(F("Exception$Dart"));a.b[b.c]=b};function Z(){}function Lc(){return I(F("IndexOutOfRangeException$Dart"),Mc)}function Mc(a){var b=Lc();a.b[b.c]=b;Y(a)}function aa(a){var b=new Z;b.f=Lc();Object.g.call(b);b.Ta=a;Object.d.call(b);return b}Z.prototype.j=function(){return"IndexOutOfRangeException: "+R(this.Ta)+""};Z.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Z.prototype.j.call(this)};Z.prototype.t=function(){return F("IndexOutOfRangeException$Dart")+(":"+r(this.Ta))};function o(){}function ja(){return I(F("NoSuchMethodException$Dart"),Nc)}function Nc(a){var b=ja();a.b[b.c]=b;Y(a)}o.prototype.j=function(){for(var a=oa(),b=0;b<this.ia.length;b++)b>0&&a.n(", "),a.n(this.ia[f(this.ia,b)]);a.n("]");return ha("NoSuchMethodException - receiver: '"+R(this.Ya)+"' ","function name: '"+R(this.Sa)+"' arguments: ["+R(a)+"]")};o.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return o.prototype.j.call(this)}; | |
o.prototype.t=function(){return F("NoSuchMethodException$Dart")+(":"+r(this.Ya))+(":"+r(this.Sa))+(":"+r(this.ia))};function $(){}function Oc(){return I(F("IllegalArgumentException$Dart"),Pc)}function Pc(a){var b=Oc();a.b[b.c]=b;Y(a)}function nb(a){var b=new $;b.f=Oc();Object.g.call(b);b.Ra=a;Object.d.call(b);return b}$.prototype.j=function(){return"Illegal argument(s): "+R(this.Ra)+""};$.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return $.prototype.j.call(this)};$.prototype.t=function(){return F("IllegalArgumentException$Dart")+(":"+r(this.Ra))};function Qc(){}function Rc(){return I(F("NoMoreElementsException$Dart"),Sc)}function Sc(a){var b=Rc();a.b[b.c]=b;Y(a)}function yb(){var a=new Qc;a.f=Rc();Object.g.call(a);Object.d.call(a);return a}Qc.prototype.j=function(){return"NoMoreElementsException"};Qc.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Qc.prototype.j.call(this)};Qc.prototype.t=function(){return F("NoMoreElementsException$Dart")};function Tc(){}function Uc(){return I(F("EmptyQueueException$Dart"),Vc)}function Vc(a){var b=Uc();a.b[b.c]=b;Y(a)}function yc(){var a=new Tc;a.f=Uc();Object.g.call(a);Object.d.call(a);return a}Tc.prototype.j=function(){return"EmptyQueueException"};Tc.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Tc.prototype.j.call(this)};Tc.prototype.t=function(){return F("EmptyQueueException$Dart")};function Wc(){}function Xc(){return I(F("UnsupportedOperationException$Dart"),Yc)}function Yc(a){var b=Xc();a.b[b.c]=b;Y(a)}function tb(a){var b=new Wc;b.f=Xc();Object.g.call(b);b.Wa=a;Object.d.call(b);return b}Wc.prototype.j=function(){return"UnsupportedOperationException: "+R(this.Wa)+""};Wc.prototype.o=function(a,b){(0!=b.a||0+a!=0)&&n();return Wc.prototype.j.call(this)};Wc.prototype.t=function(){return F("UnsupportedOperationException$Dart")+(":"+r(this.Wa))};function Zc(a){var b=I(F("Hashable$Dart"));a.b[b.c]=b};function $c(a){Vb(a)}function Vb(a){var b=I(F("int$Dart"),$c);a.b[b.c]=b;Kc(a)};function ad(a){Ab(a)}function Ab(a){var b=I(F("SendPort$Dart"),ad);a.b[b.c]=b;Zc(a)};function xb(a,b){var c=I(F("Iterator$Dart"),null,b);a.b[c.c]=c};function bd(a,b){dc(a,b);a.q=[]}function dc(a,b){var c=I(F("List$Dart"),bd,b);a.b[c.c]=c;Ic(a,[K(a.i,0)])};function cd(a,b){gc(a,b);a.q=[]}function gc(a,b){var c=I(F("HashMap$Dart"),cd,b);a.b[c.c]=c;c=[K(a.i,0),K(a.i,1)];c=I(F("Map$Dart"),null,c);a.b[c.c]=c};function dd(a){Kc(a)}function Kc(a){var b=I(F("num$Dart"),dd);a.b[b.c]=b;b=I(F("Comparable$Dart"));a.b[b.c]=b;Zc(a)};function ed(a,b){Cc(a,b);a.q=[]}function Cc(a,b){var c=I(F("Queue$Dart"),ed,b);a.b[c.c]=c;Ic(a,[K(a.i,0)])};function ac(a){Xb(a)}function Xb(a){var b=I(F("String$Dart"),ac);a.b[b.c]=b;b=I(F("Comparable$Dart"));a.b[b.c]=b;Zc(a);b=I(F("Pattern$Dart"));a.b[b.c]=b};v.push(function(){this.V=i;u.Qa=1});v.push(function(){this.ma=0});v.push(function(){u.Fb=i;u.Eb=i;u.Gb=i});v.push(function(){u.vb=i;u.ub=i;u.tb=i;u.yb=i;u.xb=i;u.wb=i});(function(a,b){if(!x){var c=new Fa;wa(c,function(){a(b)});Pa();u=c}})(function(){Ra("Hello, Darter!")},this.arguments?this.arguments.slice?[].concat(this.arguments.slice()):this.arguments:[]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment