Skip to content

Instantly share code, notes, and snippets.

@ara-ta3
Created August 5, 2015 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ara-ta3/75836fb57c2bbbe461cd to your computer and use it in GitHub Desktop.
Save ara-ta3/75836fb57c2bbbe461cd to your computer and use it in GitHub Desktop.
(function(){
'use strict';
/* Scala.js runtime support
* Copyright 2013 LAMP/EPFL
* Author: Sébastien Doeraene
*/
/* ---------------------------------- *
* The top-level Scala.js environment *
* ---------------------------------- */
// Get the environment info
var $env = (typeof __ScalaJSEnv === "object" && __ScalaJSEnv) ? __ScalaJSEnv : {};
// Global scope
var $g =
(typeof $env["global"] === "object" && $env["global"])
? $env["global"]
: ((typeof global === "object" && global && global["Object"] === Object) ? global : this);
$env["global"] = $g;
// Where to send exports
var $e =
(typeof $env["exportsNamespace"] === "object" && $env["exportsNamespace"])
? $env["exportsNamespace"] : $g;
$env["exportsNamespace"] = $e;
// Freeze the environment info
$g["Object"]["freeze"]($env);
// Linking info - must be in sync with scala.scalajs.runtime.LinkingInfo
var $linkingInfo = {
"semantics": {
"asInstanceOfs": 1,
"moduleInit": 2,
"strictFloats": false
},
"assumingES6": false
};
$g["Object"]["freeze"]($linkingInfo);
$g["Object"]["freeze"]($linkingInfo["semantics"]);
// Snapshots of builtins and polyfills
var $imul = $g["Math"]["imul"] || (function(a, b) {
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul
var ah = (a >>> 16) & 0xffff;
var al = a & 0xffff;
var bh = (b >>> 16) & 0xffff;
var bl = b & 0xffff;
// the shift by 0 fixes the sign on the high part
// the final |0 converts the unsigned value into a signed value
return ((al * bl) + (((ah * bl + al * bh) << 16) >>> 0) | 0);
});
var $fround = $g["Math"]["fround"] ||
(function(v) {
return +v;
});
// Other fields
var $lastIDHash = 0; // last value attributed to an id hash code
var $idHashCodeMap = $g["WeakMap"] ? new $g["WeakMap"]() : null;
// Core mechanism
var $makeIsArrayOfPrimitive = function(primitiveData) {
return function(obj, depth) {
return !!(obj && obj.$classData &&
(obj.$classData.arrayDepth === depth) &&
(obj.$classData.arrayBase === primitiveData));
}
};
var $makeAsArrayOfPrimitive = function(isInstanceOfFunction, arrayEncodedName) {
return function(obj, depth) {
if (isInstanceOfFunction(obj, depth) || (obj === null))
return obj;
else
$throwArrayCastException(obj, arrayEncodedName, depth);
}
};
/** Encode a property name for runtime manipulation
* Usage:
* env.propertyName({someProp:0})
* Returns:
* "someProp"
* Useful when the property is renamed by a global optimizer (like Closure)
* but we must still get hold of a string of that name for runtime
* reflection.
*/
var $propertyName = function(obj) {
for (var prop in obj)
return prop;
};
// Runtime functions
var $isScalaJSObject = function(obj) {
return !!(obj && obj.$classData);
};
var $throwClassCastException = function(instance, classFullName) {
throw new $c_sjsr_UndefinedBehaviorError().init___jl_Throwable(
new $c_jl_ClassCastException().init___T(
instance + " is not an instance of " + classFullName));
};
var $throwArrayCastException = function(instance, classArrayEncodedName, depth) {
for (; depth; --depth)
classArrayEncodedName = "[" + classArrayEncodedName;
$throwClassCastException(instance, classArrayEncodedName);
};
var $noIsInstance = function(instance) {
throw new $g["TypeError"](
"Cannot call isInstance() on a Class representing a raw JS trait/object");
};
var $makeNativeArrayWrapper = function(arrayClassData, nativeArray) {
return new arrayClassData.constr(nativeArray);
};
var $newArrayObject = function(arrayClassData, lengths) {
return $newArrayObjectInternal(arrayClassData, lengths, 0);
};
var $newArrayObjectInternal = function(arrayClassData, lengths, lengthIndex) {
var result = new arrayClassData.constr(lengths[lengthIndex]);
if (lengthIndex < lengths.length-1) {
var subArrayClassData = arrayClassData.componentData;
var subLengthIndex = lengthIndex+1;
var underlying = result.u;
for (var i = 0; i < underlying.length; i++) {
underlying[i] = $newArrayObjectInternal(
subArrayClassData, lengths, subLengthIndex);
}
}
return result;
};
var $checkNonNull = function(obj) {
return obj !== null ? obj : $throwNullPointerException();
};
var $throwNullPointerException = function() {
throw new $c_jl_NullPointerException().init___();
};
var $objectToString = function(instance) {
if (instance === void 0)
return "undefined";
else
return instance.toString();
};
var $objectGetClass = function(instance) {
switch (typeof instance) {
case "string":
return $d_T.getClassOf();
case "number": {
var v = instance | 0;
if (v === instance) { // is the value integral?
if ($isByte(v))
return $d_jl_Byte.getClassOf();
else if ($isShort(v))
return $d_jl_Short.getClassOf();
else
return $d_jl_Integer.getClassOf();
} else {
if ($isFloat(instance))
return $d_jl_Float.getClassOf();
else
return $d_jl_Double.getClassOf();
}
}
case "boolean":
return $d_jl_Boolean.getClassOf();
case "undefined":
return $d_sr_BoxedUnit.getClassOf();
default:
if (instance === null)
$throwNullPointerException();
else if ($is_sjsr_RuntimeLong(instance))
return $d_jl_Long.getClassOf();
else if ($isScalaJSObject(instance))
return instance.$classData.getClassOf();
else
return null; // Exception?
}
};
var $objectClone = function(instance) {
if ($isScalaJSObject(instance) || (instance === null))
return instance.clone__O();
else
throw new $c_jl_CloneNotSupportedException().init___();
};
var $objectNotify = function(instance) {
// final and no-op in java.lang.Object
if (instance === null)
instance.notify__V();
};
var $objectNotifyAll = function(instance) {
// final and no-op in java.lang.Object
if (instance === null)
instance.notifyAll__V();
};
var $objectFinalize = function(instance) {
if ($isScalaJSObject(instance) || (instance === null))
instance.finalize__V();
// else no-op
};
var $objectEquals = function(instance, rhs) {
if ($isScalaJSObject(instance) || (instance === null))
return instance.equals__O__Z(rhs);
else if (typeof instance === "number")
return typeof rhs === "number" && $numberEquals(instance, rhs);
else
return instance === rhs;
};
var $numberEquals = function(lhs, rhs) {
return (lhs === rhs) ? (
// 0.0.equals(-0.0) must be false
lhs !== 0 || 1/lhs === 1/rhs
) : (
// are they both NaN?
(lhs !== lhs) && (rhs !== rhs)
);
};
var $objectHashCode = function(instance) {
switch (typeof instance) {
case "string":
return $m_sjsr_RuntimeString$().hashCode__T__I(instance);
case "number":
return $m_sjsr_Bits$().numberHashCode__D__I(instance);
case "boolean":
return instance ? 1231 : 1237;
case "undefined":
return 0;
default:
if ($isScalaJSObject(instance) || instance === null)
return instance.hashCode__I();
else if ($idHashCodeMap === null)
return 42;
else
return $systemIdentityHashCode(instance);
}
};
var $comparableCompareTo = function(instance, rhs) {
switch (typeof instance) {
case "string":
$as_T(rhs);
return instance === rhs ? 0 : (instance < rhs ? -1 : 1);
case "number":
$as_jl_Number(rhs);
return $m_jl_Double$().compare__D__D__I(instance, rhs);
case "boolean":
$asBoolean(rhs);
return instance - rhs; // yes, this gives the right result
default:
return instance.compareTo__O__I(rhs);
}
};
var $charSequenceLength = function(instance) {
if (typeof(instance) === "string")
return $uI(instance["length"]);
else
return instance.length__I();
};
var $charSequenceCharAt = function(instance, index) {
if (typeof(instance) === "string")
return $uI(instance["charCodeAt"](index)) & 0xffff;
else
return instance.charAt__I__C(index);
};
var $charSequenceSubSequence = function(instance, start, end) {
if (typeof(instance) === "string")
return $as_T(instance["substring"](start, end));
else
return instance.subSequence__I__I__jl_CharSequence(start, end);
};
var $booleanBooleanValue = function(instance) {
if (typeof instance === "boolean") return instance;
else return instance.booleanValue__Z();
};
var $numberByteValue = function(instance) {
if (typeof instance === "number") return (instance << 24) >> 24;
else return instance.byteValue__B();
};
var $numberShortValue = function(instance) {
if (typeof instance === "number") return (instance << 16) >> 16;
else return instance.shortValue__S();
};
var $numberIntValue = function(instance) {
if (typeof instance === "number") return instance | 0;
else return instance.intValue__I();
};
var $numberLongValue = function(instance) {
if (typeof instance === "number")
return $m_sjsr_RuntimeLong$().fromDouble__D__sjsr_RuntimeLong(instance);
else
return instance.longValue__J();
};
var $numberFloatValue = function(instance) {
if (typeof instance === "number") return $fround(instance);
else return instance.floatValue__F();
};
var $numberDoubleValue = function(instance) {
if (typeof instance === "number") return instance;
else return instance.doubleValue__D();
};
var $isNaN = function(instance) {
return instance !== instance;
};
var $isInfinite = function(instance) {
return !$g["isFinite"](instance) && !$isNaN(instance);
};
var $doubleToInt = function(x) {
return (x > 2147483647) ? (2147483647) : ((x < -2147483648) ? -2147483648 : (x | 0));
};
/** Instantiates a JS object with variadic arguments to the constructor. */
var $newJSObjectWithVarargs = function(ctor, args) {
// This basically emulates the ECMAScript specification for 'new'.
var instance = $g["Object"]["create"](ctor.prototype);
var result = ctor["apply"](instance, args);
switch (typeof result) {
case "string": case "number": case "boolean": case "undefined": case "symbol":
return instance;
default:
return result === null ? instance : result;
}
};
var $propertiesOf = function(obj) {
var result = [];
for (var prop in obj)
result["push"](prop);
return result;
};
var $systemArraycopy = function(src, srcPos, dest, destPos, length) {
var srcu = src.u;
var destu = dest.u;
if (srcu !== destu || destPos < srcPos || srcPos + length < destPos) {
for (var i = 0; i < length; i++)
destu[destPos+i] = srcu[srcPos+i];
} else {
for (var i = length-1; i >= 0; i--)
destu[destPos+i] = srcu[srcPos+i];
}
};
var $systemIdentityHashCode =
($idHashCodeMap !== null) ?
(function(obj) {
switch (typeof obj) {
case "string": case "number": case "boolean": case "undefined":
return $objectHashCode(obj);
default:
if (obj === null) {
return 0;
} else {
var hash = $idHashCodeMap["get"](obj);
if (hash === void 0) {
hash = ($lastIDHash + 1) | 0;
$lastIDHash = hash;
$idHashCodeMap["set"](obj, hash);
}
return hash;
}
}
}) :
(function(obj) {
if ($isScalaJSObject(obj)) {
var hash = obj["$idHashCode$0"];
if (hash !== void 0) {
return hash;
} else if (!$g["Object"]["isSealed"](obj)) {
hash = ($lastIDHash + 1) | 0;
$lastIDHash = hash;
obj["$idHashCode$0"] = hash;
return hash;
} else {
return 42;
}
} else if (obj === null) {
return 0;
} else {
return $objectHashCode(obj);
}
});
// is/as for hijacked boxed classes (the non-trivial ones)
var $isByte = function(v) {
return (v << 24 >> 24) === v && 1/v !== 1/-0;
};
var $isShort = function(v) {
return (v << 16 >> 16) === v && 1/v !== 1/-0;
};
var $isInt = function(v) {
return (v | 0) === v && 1/v !== 1/-0;
};
var $isFloat = function(v) {
return v !== v || $fround(v) === v;
};
var $asUnit = function(v) {
if (v === void 0 || v === null)
return v;
else
$throwClassCastException(v, "scala.runtime.BoxedUnit");
};
var $asBoolean = function(v) {
if (typeof v === "boolean" || v === null)
return v;
else
$throwClassCastException(v, "java.lang.Boolean");
};
var $asByte = function(v) {
if ($isByte(v) || v === null)
return v;
else
$throwClassCastException(v, "java.lang.Byte");
};
var $asShort = function(v) {
if ($isShort(v) || v === null)
return v;
else
$throwClassCastException(v, "java.lang.Short");
};
var $asInt = function(v) {
if ($isInt(v) || v === null)
return v;
else
$throwClassCastException(v, "java.lang.Integer");
};
var $asFloat = function(v) {
if ($isFloat(v) || v === null)
return v;
else
$throwClassCastException(v, "java.lang.Float");
};
var $asDouble = function(v) {
if (typeof v === "number" || v === null)
return v;
else
$throwClassCastException(v, "java.lang.Double");
};
// Unboxes
var $uZ = function(value) {
return !!$asBoolean(value);
};
var $uB = function(value) {
return $asByte(value) | 0;
};
var $uS = function(value) {
return $asShort(value) | 0;
};
var $uI = function(value) {
return $asInt(value) | 0;
};
var $uJ = function(value) {
return null === value ? $m_sjsr_RuntimeLong$().Zero$1
: $as_sjsr_RuntimeLong(value);
};
var $uF = function(value) {
/* Here, it is fine to use + instead of fround, because asFloat already
* ensures that the result is either null or a float.
*/
return +$asFloat(value);
};
var $uD = function(value) {
return +$asDouble(value);
};
// TypeArray conversions
var $byteArray2TypedArray = function(value) { return new $g["Int8Array"](value.u); };
var $shortArray2TypedArray = function(value) { return new $g["Int16Array"](value.u); };
var $charArray2TypedArray = function(value) { return new $g["Uint16Array"](value.u); };
var $intArray2TypedArray = function(value) { return new $g["Int32Array"](value.u); };
var $floatArray2TypedArray = function(value) { return new $g["Float32Array"](value.u); };
var $doubleArray2TypedArray = function(value) { return new $g["Float64Array"](value.u); };
var $typedArray2ByteArray = function(value) {
var arrayClassData = $d_B.getArrayOf();
return new arrayClassData.constr(new $g["Int8Array"](value));
};
var $typedArray2ShortArray = function(value) {
var arrayClassData = $d_S.getArrayOf();
return new arrayClassData.constr(new $g["Int16Array"](value));
};
var $typedArray2CharArray = function(value) {
var arrayClassData = $d_C.getArrayOf();
return new arrayClassData.constr(new $g["Uint16Array"](value));
};
var $typedArray2IntArray = function(value) {
var arrayClassData = $d_I.getArrayOf();
return new arrayClassData.constr(new $g["Int32Array"](value));
};
var $typedArray2FloatArray = function(value) {
var arrayClassData = $d_F.getArrayOf();
return new arrayClassData.constr(new $g["Float32Array"](value));
};
var $typedArray2DoubleArray = function(value) {
var arrayClassData = $d_D.getArrayOf();
return new arrayClassData.constr(new $g["Float64Array"](value));
};
/* We have to force a non-elidable *read* of $e, otherwise Closure will
* eliminate it altogether, along with all the exports, which is ... er ...
* plain wrong.
*/
this["__ScalaJSExportsNamespace"] = $e;
// TypeData class
/** @constructor */
var $TypeData = function() {
// Runtime support
this.constr = void 0;
this.parentData = void 0;
this.ancestors = null;
this.componentData = null;
this.arrayBase = null;
this.arrayDepth = 0;
this.zero = null;
this.arrayEncodedName = "";
this._classOf = void 0;
this._arrayOf = void 0;
this.isArrayOf = void 0;
// java.lang.Class support
this["name"] = "";
this["isPrimitive"] = false;
this["isInterface"] = false;
this["isArrayClass"] = false;
this["isRawJSType"] = false;
this["isInstance"] = void 0;
};
$TypeData.prototype.initPrim = function(
zero, arrayEncodedName, displayName) {
// Runtime support
this.ancestors = {};
this.componentData = null;
this.zero = zero;
this.arrayEncodedName = arrayEncodedName;
this.isArrayOf = function(obj, depth) { return false; };
// java.lang.Class support
this["name"] = displayName;
this["isPrimitive"] = true;
this["isInstance"] = function(obj) { return false; };
return this;
};
$TypeData.prototype.initClass = function(
internalNameObj, isInterface, fullName,
ancestors, isRawJSType, parentData, isInstance, isArrayOf) {
var internalName = $propertyName(internalNameObj);
isInstance = isInstance || function(obj) {
return !!(obj && obj.$classData && obj.$classData.ancestors[internalName]);
};
isArrayOf = isArrayOf || function(obj, depth) {
return !!(obj && obj.$classData && (obj.$classData.arrayDepth === depth)
&& obj.$classData.arrayBase.ancestors[internalName])
};
// Runtime support
this.parentData = parentData;
this.ancestors = ancestors;
this.arrayEncodedName = "L"+fullName+";";
this.isArrayOf = isArrayOf;
// java.lang.Class support
this["name"] = fullName;
this["isInterface"] = isInterface;
this["isRawJSType"] = !!isRawJSType;
this["isInstance"] = isInstance;
return this;
};
$TypeData.prototype.initArray = function(
componentData) {
// The constructor
var componentZero0 = componentData.zero;
// The zero for the Long runtime representation
// is a special case here, since the class has not
// been defined yet, when this file is read
var componentZero = (componentZero0 == "longZero")
? $m_sjsr_RuntimeLong$().Zero$1
: componentZero0;
/** @constructor */
var ArrayClass = function(arg) {
if (typeof(arg) === "number") {
// arg is the length of the array
this.u = new Array(arg);
for (var i = 0; i < arg; i++)
this.u[i] = componentZero;
} else {
// arg is a native array that we wrap
this.u = arg;
}
}
ArrayClass.prototype = new $h_O;
ArrayClass.prototype.constructor = ArrayClass;
ArrayClass.prototype.clone__O = function() {
if (this.u instanceof Array)
return new ArrayClass(this.u["slice"](0));
else
// The underlying Array is a TypedArray
return new ArrayClass(this.u.constructor(this.u));
};
ArrayClass.prototype.$classData = this;
// Don't generate reflective call proxies. The compiler special cases
// reflective calls to methods on scala.Array
// The data
var encodedName = "[" + componentData.arrayEncodedName;
var componentBase = componentData.arrayBase || componentData;
var arrayDepth = componentData.arrayDepth + 1;
var isInstance = function(obj) {
return componentBase.isArrayOf(obj, arrayDepth);
}
// Runtime support
this.constr = ArrayClass;
this.parentData = $d_O;
this.ancestors = {O: 1};
this.componentData = componentData;
this.arrayBase = componentBase;
this.arrayDepth = arrayDepth;
this.zero = null;
this.arrayEncodedName = encodedName;
this._classOf = undefined;
this._arrayOf = undefined;
this.isArrayOf = undefined;
// java.lang.Class support
this["name"] = encodedName;
this["isPrimitive"] = false;
this["isInterface"] = false;
this["isArrayClass"] = true;
this["isInstance"] = isInstance;
return this;
};
$TypeData.prototype.getClassOf = function() {
if (!this._classOf)
this._classOf = new $c_jl_Class().init___jl_ScalaJSClassData(this);
return this._classOf;
};
$TypeData.prototype.getArrayOf = function() {
if (!this._arrayOf)
this._arrayOf = new $TypeData().initArray(this);
return this._arrayOf;
};
// java.lang.Class support
$TypeData.prototype["getFakeInstance"] = function() {
if (this === $d_T)
return "some string";
else if (this === $d_jl_Boolean)
return false;
else if (this === $d_jl_Byte ||
this === $d_jl_Short ||
this === $d_jl_Integer ||
this === $d_jl_Float ||
this === $d_jl_Double)
return 0;
else if (this === $d_jl_Long)
return $m_sjsr_RuntimeLong$().Zero$1;
else if (this === $d_sr_BoxedUnit)
return void 0;
else
return {$classData: this};
};
$TypeData.prototype["getSuperclass"] = function() {
return this.parentData ? this.parentData.getClassOf() : null;
};
$TypeData.prototype["getComponentType"] = function() {
return this.componentData ? this.componentData.getClassOf() : null;
};
$TypeData.prototype["newArrayOfThisClass"] = function(lengths) {
var arrayClassData = this;
for (var i = 0; i < lengths.length; i++)
arrayClassData = arrayClassData.getArrayOf();
return $newArrayObject(arrayClassData, lengths);
};
// Create primitive types
var $d_V = new $TypeData().initPrim(undefined, "V", "void");
var $d_Z = new $TypeData().initPrim(false, "Z", "boolean");
var $d_C = new $TypeData().initPrim(0, "C", "char");
var $d_B = new $TypeData().initPrim(0, "B", "byte");
var $d_S = new $TypeData().initPrim(0, "S", "short");
var $d_I = new $TypeData().initPrim(0, "I", "int");
var $d_J = new $TypeData().initPrim("longZero", "J", "long");
var $d_F = new $TypeData().initPrim(0.0, "F", "float");
var $d_D = new $TypeData().initPrim(0.0, "D", "double");
// Instance tests for array of primitives
var $isArrayOf_Z = $makeIsArrayOfPrimitive($d_Z);
$d_Z.isArrayOf = $isArrayOf_Z;
var $isArrayOf_C = $makeIsArrayOfPrimitive($d_C);
$d_C.isArrayOf = $isArrayOf_C;
var $isArrayOf_B = $makeIsArrayOfPrimitive($d_B);
$d_B.isArrayOf = $isArrayOf_B;
var $isArrayOf_S = $makeIsArrayOfPrimitive($d_S);
$d_S.isArrayOf = $isArrayOf_S;
var $isArrayOf_I = $makeIsArrayOfPrimitive($d_I);
$d_I.isArrayOf = $isArrayOf_I;
var $isArrayOf_J = $makeIsArrayOfPrimitive($d_J);
$d_J.isArrayOf = $isArrayOf_J;
var $isArrayOf_F = $makeIsArrayOfPrimitive($d_F);
$d_F.isArrayOf = $isArrayOf_F;
var $isArrayOf_D = $makeIsArrayOfPrimitive($d_D);
$d_D.isArrayOf = $isArrayOf_D;
// asInstanceOfs for array of primitives
var $asArrayOf_Z = $makeAsArrayOfPrimitive($isArrayOf_Z, "Z");
var $asArrayOf_C = $makeAsArrayOfPrimitive($isArrayOf_C, "C");
var $asArrayOf_B = $makeAsArrayOfPrimitive($isArrayOf_B, "B");
var $asArrayOf_S = $makeAsArrayOfPrimitive($isArrayOf_S, "S");
var $asArrayOf_I = $makeAsArrayOfPrimitive($isArrayOf_I, "I");
var $asArrayOf_J = $makeAsArrayOfPrimitive($isArrayOf_J, "J");
var $asArrayOf_F = $makeAsArrayOfPrimitive($isArrayOf_F, "F");
var $asArrayOf_D = $makeAsArrayOfPrimitive($isArrayOf_D, "D");
/** @constructor */
var $c_O = (function() {
/*<skip>*/
});
/** @constructor */
var $h_O = (function() {
/*<skip>*/
});
$h_O.prototype = $c_O.prototype;
$c_O.prototype.init___ = (function() {
return this
});
$c_O.prototype.equals__O__Z = (function(that) {
return (this === that)
});
$c_O.prototype.toString__T = (function() {
var jsx$2 = $objectGetClass(this).getName__T();
var i = this.hashCode__I();
var x = $uD((i >>> 0));
var jsx$1 = x["toString"](16);
return ((jsx$2 + "@") + $as_T(jsx$1))
});
$c_O.prototype.hashCode__I = (function() {
return $systemIdentityHashCode(this)
});
$c_O.prototype["toString"] = (function() {
return this.toString__T()
});
var $is_O = (function(obj) {
return (obj !== null)
});
var $as_O = (function(obj) {
return obj
});
var $isArrayOf_O = (function(obj, depth) {
var data = (obj && obj.$classData);
if ((!data)) {
return false
} else {
var arrayDepth = (data.arrayDepth || 0);
return ((!(arrayDepth < depth)) && ((arrayDepth > depth) || (!data.arrayBase["isPrimitive"])))
}
});
var $asArrayOf_O = (function(obj, depth) {
return (($isArrayOf_O(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Object;", depth))
});
var $d_O = new $TypeData().initClass({
O: 0
}, false, "java.lang.Object", {
O: 1
}, (void 0), (void 0), $is_O, $isArrayOf_O);
$c_O.prototype.$classData = $d_O;
/** @constructor */
var $c_jl_Class = (function() {
$c_O.call(this);
this.data$1 = null
});
$c_jl_Class.prototype = new $h_O();
$c_jl_Class.prototype.constructor = $c_jl_Class;
/** @constructor */
var $h_jl_Class = (function() {
/*<skip>*/
});
$h_jl_Class.prototype = $c_jl_Class.prototype;
$c_jl_Class.prototype.getName__T = (function() {
return $as_T(this.data$1["name"])
});
$c_jl_Class.prototype.isPrimitive__Z = (function() {
return $uZ(this.data$1["isPrimitive"])
});
$c_jl_Class.prototype.toString__T = (function() {
return ((this.isInterface__Z() ? "interface " : (this.isPrimitive__Z() ? "" : "class ")) + this.getName__T())
});
$c_jl_Class.prototype.init___jl_ScalaJSClassData = (function(data) {
this.data$1 = data;
return this
});
$c_jl_Class.prototype.isInterface__Z = (function() {
return $uZ(this.data$1["isInterface"])
});
var $d_jl_Class = new $TypeData().initClass({
jl_Class: 0
}, false, "java.lang.Class", {
jl_Class: 1,
O: 1
});
$c_jl_Class.prototype.$classData = $d_jl_Class;
/** @constructor */
var $c_jl_Double$ = (function() {
$c_O.call(this);
this.TYPE$1 = null;
this.POSITIVE$undINFINITY$1 = 0.0;
this.NEGATIVE$undINFINITY$1 = 0.0;
this.NaN$1 = 0.0;
this.MAX$undVALUE$1 = 0.0;
this.MIN$undVALUE$1 = 0.0;
this.MAX$undEXPONENT$1 = 0;
this.MIN$undEXPONENT$1 = 0;
this.SIZE$1 = 0;
this.doubleStrPat$1 = null;
this.bitmap$0$1 = false
});
$c_jl_Double$.prototype = new $h_O();
$c_jl_Double$.prototype.constructor = $c_jl_Double$;
/** @constructor */
var $h_jl_Double$ = (function() {
/*<skip>*/
});
$h_jl_Double$.prototype = $c_jl_Double$.prototype;
$c_jl_Double$.prototype.compare__D__D__I = (function(a, b) {
if ((a !== a)) {
return ((b !== b) ? 0 : 1)
} else if ((b !== b)) {
return (-1)
} else if ((a === b)) {
if ((a === 0.0)) {
var ainf = (1.0 / a);
return ((ainf === (1.0 / b)) ? 0 : ((ainf < 0) ? (-1) : 1))
} else {
return 0
}
} else {
return ((a < b) ? (-1) : 1)
}
});
var $d_jl_Double$ = new $TypeData().initClass({
jl_Double$: 0
}, false, "java.lang.Double$", {
jl_Double$: 1,
O: 1
});
$c_jl_Double$.prototype.$classData = $d_jl_Double$;
var $n_jl_Double$ = (void 0);
var $m_jl_Double$ = (function() {
if ((!$n_jl_Double$)) {
$n_jl_Double$ = new $c_jl_Double$().init___()
};
return $n_jl_Double$
});
/** @constructor */
var $c_jl_Integer$ = (function() {
$c_O.call(this);
this.TYPE$1 = null;
this.MIN$undVALUE$1 = 0;
this.MAX$undVALUE$1 = 0;
this.SIZE$1 = 0;
this.BYTES$1 = 0
});
$c_jl_Integer$.prototype = new $h_O();
$c_jl_Integer$.prototype.constructor = $c_jl_Integer$;
/** @constructor */
var $h_jl_Integer$ = (function() {
/*<skip>*/
});
$h_jl_Integer$.prototype = $c_jl_Integer$.prototype;
$c_jl_Integer$.prototype.rotateLeft__I__I__I = (function(i, distance) {
return ((i << distance) | ((i >>> ((-distance) | 0)) | 0))
});
$c_jl_Integer$.prototype.numberOfLeadingZeros__I__I = (function(i) {
var x = i;
x = (x | ((x >>> 1) | 0));
x = (x | ((x >>> 2) | 0));
x = (x | ((x >>> 4) | 0));
x = (x | ((x >>> 8) | 0));
x = (x | ((x >>> 16) | 0));
return ((32 - this.bitCount__I__I(x)) | 0)
});
$c_jl_Integer$.prototype.bitCount__I__I = (function(i) {
var t1 = ((i - (1431655765 & (i >> 1))) | 0);
var t2 = (((858993459 & t1) + (858993459 & (t1 >> 2))) | 0);
return ($imul(16843009, (252645135 & ((t2 + (t2 >> 4)) | 0))) >> 24)
});
$c_jl_Integer$.prototype.numberOfTrailingZeros__I__I = (function(i) {
return this.bitCount__I__I((((-1) + (i & ((-i) | 0))) | 0))
});
var $d_jl_Integer$ = new $TypeData().initClass({
jl_Integer$: 0
}, false, "java.lang.Integer$", {
jl_Integer$: 1,
O: 1
});
$c_jl_Integer$.prototype.$classData = $d_jl_Integer$;
var $n_jl_Integer$ = (void 0);
var $m_jl_Integer$ = (function() {
if ((!$n_jl_Integer$)) {
$n_jl_Integer$ = new $c_jl_Integer$().init___()
};
return $n_jl_Integer$
});
/** @constructor */
var $c_jl_Number = (function() {
$c_O.call(this)
});
$c_jl_Number.prototype = new $h_O();
$c_jl_Number.prototype.constructor = $c_jl_Number;
/** @constructor */
var $h_jl_Number = (function() {
/*<skip>*/
});
$h_jl_Number.prototype = $c_jl_Number.prototype;
var $is_jl_Number = (function(obj) {
return (!(!(((obj && obj.$classData) && obj.$classData.ancestors.jl_Number) || ((typeof obj) === "number"))))
});
var $as_jl_Number = (function(obj) {
return (($is_jl_Number(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.Number"))
});
var $isArrayOf_jl_Number = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Number)))
});
var $asArrayOf_jl_Number = (function(obj, depth) {
return (($isArrayOf_jl_Number(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Number;", depth))
});
/** @constructor */
var $c_jl_System$ = (function() {
$c_O.call(this);
this.out$1 = null;
this.err$1 = null;
this.in$1 = null;
this.getHighPrecisionTime$1 = null
});
$c_jl_System$.prototype = new $h_O();
$c_jl_System$.prototype.constructor = $c_jl_System$;
/** @constructor */
var $h_jl_System$ = (function() {
/*<skip>*/
});
$h_jl_System$.prototype = $c_jl_System$.prototype;
$c_jl_System$.prototype.init___ = (function() {
$n_jl_System$ = this;
this.out$1 = new $c_jl_JSConsoleBasedPrintStream().init___jl_Boolean(false);
this.err$1 = new $c_jl_JSConsoleBasedPrintStream().init___jl_Boolean(true);
this.in$1 = null;
var x = $g["performance"];
if ($uZ((!(!x)))) {
var x$1 = $g["performance"]["now"];
if ($uZ((!(!x$1)))) {
var jsx$1 = (function() {
return $uD($g["performance"]["now"]())
})
} else {
var x$2 = $g["performance"]["webkitNow"];
if ($uZ((!(!x$2)))) {
var jsx$1 = (function() {
return $uD($g["performance"]["webkitNow"]())
})
} else {
var jsx$1 = (function() {
return $uD(new $g["Date"]()["getTime"]())
})
}
}
} else {
var jsx$1 = (function() {
return $uD(new $g["Date"]()["getTime"]())
})
};
this.getHighPrecisionTime$1 = jsx$1;
return this
});
var $d_jl_System$ = new $TypeData().initClass({
jl_System$: 0
}, false, "java.lang.System$", {
jl_System$: 1,
O: 1
});
$c_jl_System$.prototype.$classData = $d_jl_System$;
var $n_jl_System$ = (void 0);
var $m_jl_System$ = (function() {
if ((!$n_jl_System$)) {
$n_jl_System$ = new $c_jl_System$().init___()
};
return $n_jl_System$
});
/** @constructor */
var $c_jl_ThreadLocal = (function() {
$c_O.call(this);
this.hasValue$1 = null;
this.v$1 = null
});
$c_jl_ThreadLocal.prototype = new $h_O();
$c_jl_ThreadLocal.prototype.constructor = $c_jl_ThreadLocal;
/** @constructor */
var $h_jl_ThreadLocal = (function() {
/*<skip>*/
});
$h_jl_ThreadLocal.prototype = $c_jl_ThreadLocal.prototype;
$c_jl_ThreadLocal.prototype.init___ = (function() {
this.hasValue$1 = false;
return this
});
$c_jl_ThreadLocal.prototype.get__O = (function() {
var x = this.hasValue$1;
if ((!$uZ(x))) {
this.set__O__V(this.initialValue__O())
};
return this.v$1
});
$c_jl_ThreadLocal.prototype.set__O__V = (function(o) {
this.v$1 = o;
this.hasValue$1 = true
});
/** @constructor */
var $c_s_DeprecatedConsole = (function() {
$c_O.call(this)
});
$c_s_DeprecatedConsole.prototype = new $h_O();
$c_s_DeprecatedConsole.prototype.constructor = $c_s_DeprecatedConsole;
/** @constructor */
var $h_s_DeprecatedConsole = (function() {
/*<skip>*/
});
$h_s_DeprecatedConsole.prototype = $c_s_DeprecatedConsole.prototype;
/** @constructor */
var $c_s_util_DynamicVariable = (function() {
$c_O.call(this);
this.scala$util$DynamicVariable$$init$f = null;
this.tl$1 = null
});
$c_s_util_DynamicVariable.prototype = new $h_O();
$c_s_util_DynamicVariable.prototype.constructor = $c_s_util_DynamicVariable;
/** @constructor */
var $h_s_util_DynamicVariable = (function() {
/*<skip>*/
});
$h_s_util_DynamicVariable.prototype = $c_s_util_DynamicVariable.prototype;
$c_s_util_DynamicVariable.prototype.toString__T = (function() {
return (("DynamicVariable(" + this.tl$1.get__O()) + ")")
});
$c_s_util_DynamicVariable.prototype.init___O = (function(init) {
this.scala$util$DynamicVariable$$init$f = init;
this.tl$1 = new $c_s_util_DynamicVariable$$anon$1().init___s_util_DynamicVariable(this);
return this
});
var $d_s_util_DynamicVariable = new $TypeData().initClass({
s_util_DynamicVariable: 0
}, false, "scala.util.DynamicVariable", {
s_util_DynamicVariable: 1,
O: 1
});
$c_s_util_DynamicVariable.prototype.$classData = $d_s_util_DynamicVariable;
/** @constructor */
var $c_s_util_hashing_MurmurHash3 = (function() {
$c_O.call(this)
});
$c_s_util_hashing_MurmurHash3.prototype = new $h_O();
$c_s_util_hashing_MurmurHash3.prototype.constructor = $c_s_util_hashing_MurmurHash3;
/** @constructor */
var $h_s_util_hashing_MurmurHash3 = (function() {
/*<skip>*/
});
$h_s_util_hashing_MurmurHash3.prototype = $c_s_util_hashing_MurmurHash3.prototype;
$c_s_util_hashing_MurmurHash3.prototype.mixLast__I__I__I = (function(hash, data) {
var k = data;
k = $imul((-862048943), k);
k = $m_jl_Integer$().rotateLeft__I__I__I(k, 15);
k = $imul(461845907, k);
return (hash ^ k)
});
$c_s_util_hashing_MurmurHash3.prototype.mix__I__I__I = (function(hash, data) {
var h = this.mixLast__I__I__I(hash, data);
h = $m_jl_Integer$().rotateLeft__I__I__I(h, 13);
return (((-430675100) + $imul(5, h)) | 0)
});
$c_s_util_hashing_MurmurHash3.prototype.avalanche__p1__I__I = (function(hash) {
var h = hash;
h = (h ^ ((h >>> 16) | 0));
h = $imul((-2048144789), h);
h = (h ^ ((h >>> 13) | 0));
h = $imul((-1028477387), h);
h = (h ^ ((h >>> 16) | 0));
return h
});
$c_s_util_hashing_MurmurHash3.prototype.productHash__s_Product__I__I = (function(x, seed) {
var arr = x.productArity__I();
if ((arr === 0)) {
var this$1 = x.productPrefix__T();
return $m_sjsr_RuntimeString$().hashCode__T__I(this$1)
} else {
var h = seed;
var i = 0;
while ((i < arr)) {
h = this.mix__I__I__I(h, $m_sr_ScalaRunTime$().hash__O__I(x.productElement__I__O(i)));
i = ((1 + i) | 0)
};
return this.finalizeHash__I__I__I(h, arr)
}
});
$c_s_util_hashing_MurmurHash3.prototype.finalizeHash__I__I__I = (function(hash, length) {
return this.avalanche__p1__I__I((hash ^ length))
});
/** @constructor */
var $c_sjsr_Bits$ = (function() {
$c_O.call(this);
this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f = false;
this.arrayBuffer$1 = null;
this.int32Array$1 = null;
this.float32Array$1 = null;
this.float64Array$1 = null;
this.areTypedArraysBigEndian$1 = false;
this.highOffset$1 = 0;
this.lowOffset$1 = 0
});
$c_sjsr_Bits$.prototype = new $h_O();
$c_sjsr_Bits$.prototype.constructor = $c_sjsr_Bits$;
/** @constructor */
var $h_sjsr_Bits$ = (function() {
/*<skip>*/
});
$h_sjsr_Bits$.prototype = $c_sjsr_Bits$.prototype;
$c_sjsr_Bits$.prototype.init___ = (function() {
$n_sjsr_Bits$ = this;
var x = ((($g["ArrayBuffer"] && $g["Int32Array"]) && $g["Float32Array"]) && $g["Float64Array"]);
this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f = $uZ((!(!x)));
this.arrayBuffer$1 = (this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f ? new $g["ArrayBuffer"](8) : null);
this.int32Array$1 = (this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f ? new $g["Int32Array"](this.arrayBuffer$1, 0, 2) : null);
this.float32Array$1 = (this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f ? new $g["Float32Array"](this.arrayBuffer$1, 0, 2) : null);
this.float64Array$1 = (this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f ? new $g["Float64Array"](this.arrayBuffer$1, 0, 1) : null);
if ((!this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f)) {
var jsx$1 = true
} else {
this.int32Array$1[0] = 16909060;
var jsx$1 = ($uB(new $g["Int8Array"](this.arrayBuffer$1, 0, 8)[0]) === 1)
};
this.areTypedArraysBigEndian$1 = jsx$1;
this.highOffset$1 = (this.areTypedArraysBigEndian$1 ? 0 : 1);
this.lowOffset$1 = (this.areTypedArraysBigEndian$1 ? 1 : 0);
return this
});
$c_sjsr_Bits$.prototype.numberHashCode__D__I = (function(value) {
var iv = $uI((value | 0));
if (((iv === value) && ((1.0 / value) !== (-Infinity)))) {
return iv
} else {
var this$1 = this.doubleToLongBits__D__J(value);
return this$1.$$up__sjsr_RuntimeLong__sjsr_RuntimeLong(this$1.$$greater$greater$greater__I__sjsr_RuntimeLong(32)).toInt__I()
}
});
$c_sjsr_Bits$.prototype.doubleToLongBitsPolyfill__p1__D__J = (function(value) {
if ((value !== value)) {
var _3 = $uD($g["Math"]["pow"](2.0, 51));
var x1_$_$$und1$1 = false;
var x1_$_$$und2$1 = 2047;
var x1_$_$$und3$1 = _3
} else if (((value === Infinity) || (value === (-Infinity)))) {
var _1 = (value < 0);
var x1_$_$$und1$1 = _1;
var x1_$_$$und2$1 = 2047;
var x1_$_$$und3$1 = 0.0
} else if ((value === 0.0)) {
var _1$1 = ((1 / value) === (-Infinity));
var x1_$_$$und1$1 = _1$1;
var x1_$_$$und2$1 = 0;
var x1_$_$$und3$1 = 0.0
} else {
var s = (value < 0);
var av = (s ? (-value) : value);
if ((av >= $uD($g["Math"]["pow"](2.0, (-1022))))) {
var twoPowFbits = $uD($g["Math"]["pow"](2.0, 52));
var a = ($uD($g["Math"]["log"](av)) / 0.6931471805599453);
var x = $uD($g["Math"]["floor"](a));
var a$1 = $uI((x | 0));
var e = ((a$1 < 1023) ? a$1 : 1023);
var b = e;
var n = ((av / $uD($g["Math"]["pow"](2.0, b))) * twoPowFbits);
var w = $uD($g["Math"]["floor"](n));
var f = (n - w);
var f$1 = ((f < 0.5) ? w : ((f > 0.5) ? (1 + w) : (((w % 2) !== 0) ? (1 + w) : w)));
if (((f$1 / twoPowFbits) >= 2)) {
e = ((1 + e) | 0);
f$1 = 1.0
};
if ((e > 1023)) {
e = 2047;
f$1 = 0.0
} else {
e = ((1023 + e) | 0);
f$1 = (f$1 - twoPowFbits)
};
var _2 = e;
var _3$1 = f$1;
var x1_$_$$und1$1 = s;
var x1_$_$$und2$1 = _2;
var x1_$_$$und3$1 = _3$1
} else {
var n$1 = (av / $uD($g["Math"]["pow"](2.0, (-1074))));
var w$1 = $uD($g["Math"]["floor"](n$1));
var f$2 = (n$1 - w$1);
var _3$2 = ((f$2 < 0.5) ? w$1 : ((f$2 > 0.5) ? (1 + w$1) : (((w$1 % 2) !== 0) ? (1 + w$1) : w$1)));
var x1_$_$$und1$1 = s;
var x1_$_$$und2$1 = 0;
var x1_$_$$und3$1 = _3$2
}
};
var s$1 = $uZ(x1_$_$$und1$1);
var e$1 = $uI(x1_$_$$und2$1);
var f$3 = $uD(x1_$_$$und3$1);
var x$1 = (f$3 / 4.294967296E9);
var hif = $uI((x$1 | 0));
var hi = (((s$1 ? (-2147483648) : 0) | (e$1 << 20)) | hif);
var lo = $uI((f$3 | 0));
return new $c_sjsr_RuntimeLong().init___I(hi).$$less$less__I__sjsr_RuntimeLong(32).$$bar__sjsr_RuntimeLong__sjsr_RuntimeLong(new $c_sjsr_RuntimeLong().init___I__I__I(4194303, 1023, 0).$$amp__sjsr_RuntimeLong__sjsr_RuntimeLong(new $c_sjsr_RuntimeLong().init___I(lo)))
});
$c_sjsr_Bits$.prototype.doubleToLongBits__D__J = (function(value) {
if (this.scala$scalajs$runtime$Bits$$$undareTypedArraysSupported$f) {
this.float64Array$1[0] = value;
return new $c_sjsr_RuntimeLong().init___I($uI(this.int32Array$1[this.highOffset$1])).$$less$less__I__sjsr_RuntimeLong(32).$$bar__sjsr_RuntimeLong__sjsr_RuntimeLong(new $c_sjsr_RuntimeLong().init___I__I__I(4194303, 1023, 0).$$amp__sjsr_RuntimeLong__sjsr_RuntimeLong(new $c_sjsr_RuntimeLong().init___I($uI(this.int32Array$1[this.lowOffset$1]))))
} else {
return this.doubleToLongBitsPolyfill__p1__D__J(value)
}
});
var $d_sjsr_Bits$ = new $TypeData().initClass({
sjsr_Bits$: 0
}, false, "scala.scalajs.runtime.Bits$", {
sjsr_Bits$: 1,
O: 1
});
$c_sjsr_Bits$.prototype.$classData = $d_sjsr_Bits$;
var $n_sjsr_Bits$ = (void 0);
var $m_sjsr_Bits$ = (function() {
if ((!$n_sjsr_Bits$)) {
$n_sjsr_Bits$ = new $c_sjsr_Bits$().init___()
};
return $n_sjsr_Bits$
});
/** @constructor */
var $c_sjsr_RuntimeString$ = (function() {
$c_O.call(this)
});
$c_sjsr_RuntimeString$.prototype = new $h_O();
$c_sjsr_RuntimeString$.prototype.constructor = $c_sjsr_RuntimeString$;
/** @constructor */
var $h_sjsr_RuntimeString$ = (function() {
/*<skip>*/
});
$h_sjsr_RuntimeString$.prototype = $c_sjsr_RuntimeString$.prototype;
$c_sjsr_RuntimeString$.prototype.valueOf__O__T = (function(value) {
return ((value === null) ? "null" : $objectToString(value))
});
$c_sjsr_RuntimeString$.prototype.hashCode__T__I = (function(thiz) {
var res = 0;
var mul = 1;
var i = (((-1) + $uI(thiz["length"])) | 0);
while ((i >= 0)) {
var jsx$1 = res;
var index = i;
res = ((jsx$1 + $imul((65535 & $uI(thiz["charCodeAt"](index))), mul)) | 0);
mul = $imul(31, mul);
i = (((-1) + i) | 0)
};
return res
});
var $d_sjsr_RuntimeString$ = new $TypeData().initClass({
sjsr_RuntimeString$: 0
}, false, "scala.scalajs.runtime.RuntimeString$", {
sjsr_RuntimeString$: 1,
O: 1
});
$c_sjsr_RuntimeString$.prototype.$classData = $d_sjsr_RuntimeString$;
var $n_sjsr_RuntimeString$ = (void 0);
var $m_sjsr_RuntimeString$ = (function() {
if ((!$n_sjsr_RuntimeString$)) {
$n_sjsr_RuntimeString$ = new $c_sjsr_RuntimeString$().init___()
};
return $n_sjsr_RuntimeString$
});
/** @constructor */
var $c_sjsr_StackTrace$ = (function() {
$c_O.call(this);
this.isRhino$1 = false;
this.decompressedClasses$1 = null;
this.decompressedPrefixes$1 = null;
this.compressedPrefixes$1 = null;
this.bitmap$0$1 = false
});
$c_sjsr_StackTrace$.prototype = new $h_O();
$c_sjsr_StackTrace$.prototype.constructor = $c_sjsr_StackTrace$;
/** @constructor */
var $h_sjsr_StackTrace$ = (function() {
/*<skip>*/
});
$h_sjsr_StackTrace$.prototype = $c_sjsr_StackTrace$.prototype;
$c_sjsr_StackTrace$.prototype.init___ = (function() {
$n_sjsr_StackTrace$ = this;
var dict = {
"O": "java_lang_Object",
"T": "java_lang_String",
"V": "scala_Unit",
"Z": "scala_Boolean",
"C": "scala_Char",
"B": "scala_Byte",
"S": "scala_Short",
"I": "scala_Int",
"J": "scala_Long",
"F": "scala_Float",
"D": "scala_Double"
};
var index = 0;
while ((index <= 22)) {
if ((index >= 2)) {
dict[("T" + index)] = ("scala_Tuple" + index)
};
dict[("F" + index)] = ("scala_Function" + index);
index = ((1 + index) | 0)
};
this.decompressedClasses$1 = dict;
this.decompressedPrefixes$1 = {
"sjsr_": "scala_scalajs_runtime_",
"sjs_": "scala_scalajs_",
"sci_": "scala_collection_immutable_",
"scm_": "scala_collection_mutable_",
"scg_": "scala_collection_generic_",
"sc_": "scala_collection_",
"sr_": "scala_runtime_",
"s_": "scala_",
"jl_": "java_lang_",
"ju_": "java_util_"
};
this.compressedPrefixes$1 = $g["Object"]["keys"](this.decompressedPrefixes$1);
return this
});
$c_sjsr_StackTrace$.prototype.createException__p1__O = (function() {
try {
return this["undef"]()
} catch (e) {
var e$2 = $m_sjsr_package$().wrapJavaScriptException__O__jl_Throwable(e);
if ((e$2 !== null)) {
if ($is_sjs_js_JavaScriptException(e$2)) {
var x5 = $as_sjs_js_JavaScriptException(e$2);
var e$3 = x5.exception$4;
return e$3
} else {
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(e$2)
}
} else {
throw e
}
}
});
$c_sjsr_StackTrace$.prototype.captureState__jl_Throwable__O__V = (function(throwable, e) {
throwable["stackdata"] = e
});
var $d_sjsr_StackTrace$ = new $TypeData().initClass({
sjsr_StackTrace$: 0
}, false, "scala.scalajs.runtime.StackTrace$", {
sjsr_StackTrace$: 1,
O: 1
});
$c_sjsr_StackTrace$.prototype.$classData = $d_sjsr_StackTrace$;
var $n_sjsr_StackTrace$ = (void 0);
var $m_sjsr_StackTrace$ = (function() {
if ((!$n_sjsr_StackTrace$)) {
$n_sjsr_StackTrace$ = new $c_sjsr_StackTrace$().init___()
};
return $n_sjsr_StackTrace$
});
/** @constructor */
var $c_sjsr_package$ = (function() {
$c_O.call(this)
});
$c_sjsr_package$.prototype = new $h_O();
$c_sjsr_package$.prototype.constructor = $c_sjsr_package$;
/** @constructor */
var $h_sjsr_package$ = (function() {
/*<skip>*/
});
$h_sjsr_package$.prototype = $c_sjsr_package$.prototype;
$c_sjsr_package$.prototype.unwrapJavaScriptException__jl_Throwable__O = (function(th) {
if ($is_sjs_js_JavaScriptException(th)) {
var x2 = $as_sjs_js_JavaScriptException(th);
var e = x2.exception$4;
return e
} else {
return th
}
});
$c_sjsr_package$.prototype.wrapJavaScriptException__O__jl_Throwable = (function(e) {
if ($is_jl_Throwable(e)) {
var x2 = $as_jl_Throwable(e);
return x2
} else {
return new $c_sjs_js_JavaScriptException().init___O(e)
}
});
var $d_sjsr_package$ = new $TypeData().initClass({
sjsr_package$: 0
}, false, "scala.scalajs.runtime.package$", {
sjsr_package$: 1,
O: 1
});
$c_sjsr_package$.prototype.$classData = $d_sjsr_package$;
var $n_sjsr_package$ = (void 0);
var $m_sjsr_package$ = (function() {
if ((!$n_sjsr_package$)) {
$n_sjsr_package$ = new $c_sjsr_package$().init___()
};
return $n_sjsr_package$
});
var $d_sr_BoxedUnit = new $TypeData().initClass({
sr_BoxedUnit: 0
}, false, "scala.runtime.BoxedUnit", {
sr_BoxedUnit: 1,
O: 1
}, (void 0), (void 0), (function(x) {
return (x === (void 0))
}));
/** @constructor */
var $c_sr_BoxesRunTime$ = (function() {
$c_O.call(this)
});
$c_sr_BoxesRunTime$.prototype = new $h_O();
$c_sr_BoxesRunTime$.prototype.constructor = $c_sr_BoxesRunTime$;
/** @constructor */
var $h_sr_BoxesRunTime$ = (function() {
/*<skip>*/
});
$h_sr_BoxesRunTime$.prototype = $c_sr_BoxesRunTime$.prototype;
$c_sr_BoxesRunTime$.prototype.equalsCharObject__jl_Character__O__Z = (function(xc, y) {
if ($is_jl_Character(y)) {
var x2 = $as_jl_Character(y);
return (xc.value$1 === x2.value$1)
} else if ($is_jl_Number(y)) {
var x3 = $as_jl_Number(y);
if (((typeof x3) === "number")) {
var x2$1 = $uD(x3);
return (x2$1 === xc.value$1)
} else if ($is_sjsr_RuntimeLong(x3)) {
var x3$1 = $uJ(x3);
return x3$1.equals__sjsr_RuntimeLong__Z(new $c_sjsr_RuntimeLong().init___I(xc.value$1))
} else {
return ((x3 === null) ? (xc === null) : $objectEquals(x3, xc))
}
} else {
return ((xc === null) && (y === null))
}
});
$c_sr_BoxesRunTime$.prototype.equalsNumObject__jl_Number__O__Z = (function(xn, y) {
if ($is_jl_Number(y)) {
var x2 = $as_jl_Number(y);
return this.equalsNumNum__jl_Number__jl_Number__Z(xn, x2)
} else if ($is_jl_Character(y)) {
var x3 = $as_jl_Character(y);
if (((typeof xn) === "number")) {
var x2$1 = $uD(xn);
return (x2$1 === x3.value$1)
} else if ($is_sjsr_RuntimeLong(xn)) {
var x3$1 = $uJ(xn);
return x3$1.equals__sjsr_RuntimeLong__Z(new $c_sjsr_RuntimeLong().init___I(x3.value$1))
} else {
return ((xn === null) ? (x3 === null) : $objectEquals(xn, x3))
}
} else {
return ((xn === null) ? (y === null) : $objectEquals(xn, y))
}
});
$c_sr_BoxesRunTime$.prototype.equals__O__O__Z = (function(x, y) {
if ((x === y)) {
return true
} else if ($is_jl_Number(x)) {
var x2 = $as_jl_Number(x);
return this.equalsNumObject__jl_Number__O__Z(x2, y)
} else if ($is_jl_Character(x)) {
var x3 = $as_jl_Character(x);
return this.equalsCharObject__jl_Character__O__Z(x3, y)
} else {
return ((x === null) ? (y === null) : $objectEquals(x, y))
}
});
$c_sr_BoxesRunTime$.prototype.hashFromLong__jl_Long__I = (function(n) {
var iv = $uJ(n).toInt__I();
return (new $c_sjsr_RuntimeLong().init___I(iv).equals__sjsr_RuntimeLong__Z($uJ(n)) ? iv : $uJ(n).$$up__sjsr_RuntimeLong__sjsr_RuntimeLong($uJ(n).$$greater$greater$greater__I__sjsr_RuntimeLong(32)).toInt__I())
});
$c_sr_BoxesRunTime$.prototype.hashFromNumber__jl_Number__I = (function(n) {
if ($isInt(n)) {
var x2 = $uI(n);
return x2
} else if ($is_sjsr_RuntimeLong(n)) {
var x3 = $as_sjsr_RuntimeLong(n);
return this.hashFromLong__jl_Long__I(x3)
} else if (((typeof n) === "number")) {
var x4 = $asDouble(n);
return this.hashFromDouble__jl_Double__I(x4)
} else {
return $objectHashCode(n)
}
});
$c_sr_BoxesRunTime$.prototype.equalsNumNum__jl_Number__jl_Number__Z = (function(xn, yn) {
if (((typeof xn) === "number")) {
var x2 = $uD(xn);
if (((typeof yn) === "number")) {
var x2$2 = $uD(yn);
return (x2 === x2$2)
} else if ($is_sjsr_RuntimeLong(yn)) {
var x3 = $uJ(yn);
return (x2 === x3.toDouble__D())
} else if ($is_s_math_ScalaNumber(yn)) {
var x4 = $as_s_math_ScalaNumber(yn);
return x4.equals__O__Z(x2)
} else {
return false
}
} else if ($is_sjsr_RuntimeLong(xn)) {
var x3$2 = $uJ(xn);
if ($is_sjsr_RuntimeLong(yn)) {
var x2$3 = $uJ(yn);
return x3$2.equals__sjsr_RuntimeLong__Z(x2$3)
} else if (((typeof yn) === "number")) {
var x3$3 = $uD(yn);
return (x3$2.toDouble__D() === x3$3)
} else if ($is_s_math_ScalaNumber(yn)) {
var x4$2 = $as_s_math_ScalaNumber(yn);
return x4$2.equals__O__Z(x3$2)
} else {
return false
}
} else {
return ((xn === null) ? (yn === null) : $objectEquals(xn, yn))
}
});
$c_sr_BoxesRunTime$.prototype.hashFromDouble__jl_Double__I = (function(n) {
var iv = $doubleToInt($uD(n));
var dv = $uD(n);
if ((iv === dv)) {
return iv
} else {
var lv = $m_sjsr_RuntimeLong$().fromDouble__D__sjsr_RuntimeLong($uD(n));
return ((lv.toDouble__D() === dv) ? lv.$$up__sjsr_RuntimeLong__sjsr_RuntimeLong(lv.$$greater$greater$greater__I__sjsr_RuntimeLong(32)).toInt__I() : $m_sjsr_Bits$().numberHashCode__D__I($uD(n)))
}
});
var $d_sr_BoxesRunTime$ = new $TypeData().initClass({
sr_BoxesRunTime$: 0
}, false, "scala.runtime.BoxesRunTime$", {
sr_BoxesRunTime$: 1,
O: 1
});
$c_sr_BoxesRunTime$.prototype.$classData = $d_sr_BoxesRunTime$;
var $n_sr_BoxesRunTime$ = (void 0);
var $m_sr_BoxesRunTime$ = (function() {
if ((!$n_sr_BoxesRunTime$)) {
$n_sr_BoxesRunTime$ = new $c_sr_BoxesRunTime$().init___()
};
return $n_sr_BoxesRunTime$
});
/** @constructor */
var $c_sr_ScalaRunTime$ = (function() {
$c_O.call(this)
});
$c_sr_ScalaRunTime$.prototype = new $h_O();
$c_sr_ScalaRunTime$.prototype.constructor = $c_sr_ScalaRunTime$;
/** @constructor */
var $h_sr_ScalaRunTime$ = (function() {
/*<skip>*/
});
$h_sr_ScalaRunTime$.prototype = $c_sr_ScalaRunTime$.prototype;
$c_sr_ScalaRunTime$.prototype.hash__O__I = (function(x) {
return ((x === null) ? 0 : ($is_jl_Number(x) ? $m_sr_BoxesRunTime$().hashFromNumber__jl_Number__I($as_jl_Number(x)) : $objectHashCode(x)))
});
var $d_sr_ScalaRunTime$ = new $TypeData().initClass({
sr_ScalaRunTime$: 0
}, false, "scala.runtime.ScalaRunTime$", {
sr_ScalaRunTime$: 1,
O: 1
});
$c_sr_ScalaRunTime$.prototype.$classData = $d_sr_ScalaRunTime$;
var $n_sr_ScalaRunTime$ = (void 0);
var $m_sr_ScalaRunTime$ = (function() {
if ((!$n_sr_ScalaRunTime$)) {
$n_sr_ScalaRunTime$ = new $c_sr_ScalaRunTime$().init___()
};
return $n_sr_ScalaRunTime$
});
/** @constructor */
var $c_Ltutorial_webapp_TutorialApp$ = (function() {
$c_O.call(this)
});
$c_Ltutorial_webapp_TutorialApp$.prototype = new $h_O();
$c_Ltutorial_webapp_TutorialApp$.prototype.constructor = $c_Ltutorial_webapp_TutorialApp$;
/** @constructor */
var $h_Ltutorial_webapp_TutorialApp$ = (function() {
/*<skip>*/
});
$h_Ltutorial_webapp_TutorialApp$.prototype = $c_Ltutorial_webapp_TutorialApp$.prototype;
$c_Ltutorial_webapp_TutorialApp$.prototype.init___ = (function() {
$n_Ltutorial_webapp_TutorialApp$ = this;
return this
});
$c_Ltutorial_webapp_TutorialApp$.prototype.$$js$exported$meth$main__O = (function() {
var this$2 = $m_s_Console$();
var this$3 = this$2.outVar$2;
$as_Ljava_io_PrintStream(this$3.tl$1.get__O()).println__O__V("Hello World!")
});
$c_Ltutorial_webapp_TutorialApp$.prototype["main"] = (function() {
return this.$$js$exported$meth$main__O()
});
var $d_Ltutorial_webapp_TutorialApp$ = new $TypeData().initClass({
Ltutorial_webapp_TutorialApp$: 0
}, false, "tutorial.webapp.TutorialApp$", {
Ltutorial_webapp_TutorialApp$: 1,
O: 1,
sjs_js_JSApp: 1
});
$c_Ltutorial_webapp_TutorialApp$.prototype.$classData = $d_Ltutorial_webapp_TutorialApp$;
var $n_Ltutorial_webapp_TutorialApp$ = (void 0);
var $m_Ltutorial_webapp_TutorialApp$ = (function() {
if ((!$n_Ltutorial_webapp_TutorialApp$)) {
$n_Ltutorial_webapp_TutorialApp$ = new $c_Ltutorial_webapp_TutorialApp$().init___()
};
return $n_Ltutorial_webapp_TutorialApp$
});
$e["tutorial"] = ($e["tutorial"] || {});
$e["tutorial"]["webapp"] = ($e["tutorial"]["webapp"] || {});
$e["tutorial"]["webapp"]["TutorialApp"] = $m_Ltutorial_webapp_TutorialApp$;
var $d_jl_Boolean = new $TypeData().initClass({
jl_Boolean: 0
}, false, "java.lang.Boolean", {
jl_Boolean: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return ((typeof x) === "boolean")
}));
var $is_jl_Character = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.jl_Character)))
});
var $as_jl_Character = (function(obj) {
return (($is_jl_Character(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.Character"))
});
var $isArrayOf_jl_Character = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Character)))
});
var $asArrayOf_jl_Character = (function(obj, depth) {
return (($isArrayOf_jl_Character(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Character;", depth))
});
/** @constructor */
var $c_jl_InheritableThreadLocal = (function() {
$c_jl_ThreadLocal.call(this)
});
$c_jl_InheritableThreadLocal.prototype = new $h_jl_ThreadLocal();
$c_jl_InheritableThreadLocal.prototype.constructor = $c_jl_InheritableThreadLocal;
/** @constructor */
var $h_jl_InheritableThreadLocal = (function() {
/*<skip>*/
});
$h_jl_InheritableThreadLocal.prototype = $c_jl_InheritableThreadLocal.prototype;
/** @constructor */
var $c_jl_Throwable = (function() {
$c_O.call(this);
this.s$1 = null;
this.e$1 = null;
this.stackTrace$1 = null
});
$c_jl_Throwable.prototype = new $h_O();
$c_jl_Throwable.prototype.constructor = $c_jl_Throwable;
/** @constructor */
var $h_jl_Throwable = (function() {
/*<skip>*/
});
$h_jl_Throwable.prototype = $c_jl_Throwable.prototype;
$c_jl_Throwable.prototype.fillInStackTrace__jl_Throwable = (function() {
var this$1 = $m_sjsr_StackTrace$();
this$1.captureState__jl_Throwable__O__V(this, this$1.createException__p1__O());
return this
});
$c_jl_Throwable.prototype.getMessage__T = (function() {
return this.s$1
});
$c_jl_Throwable.prototype.toString__T = (function() {
var className = $objectGetClass(this).getName__T();
var message = this.getMessage__T();
return ((message === null) ? className : ((className + ": ") + message))
});
$c_jl_Throwable.prototype.init___T__jl_Throwable = (function(s, e) {
this.s$1 = s;
this.e$1 = e;
this.fillInStackTrace__jl_Throwable();
return this
});
var $is_jl_Throwable = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.jl_Throwable)))
});
var $as_jl_Throwable = (function(obj) {
return (($is_jl_Throwable(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.Throwable"))
});
var $isArrayOf_jl_Throwable = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Throwable)))
});
var $asArrayOf_jl_Throwable = (function(obj, depth) {
return (($isArrayOf_jl_Throwable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Throwable;", depth))
});
var $is_s_math_ScalaNumber = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.s_math_ScalaNumber)))
});
var $as_s_math_ScalaNumber = (function(obj) {
return (($is_s_math_ScalaNumber(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.math.ScalaNumber"))
});
var $isArrayOf_s_math_ScalaNumber = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.s_math_ScalaNumber)))
});
var $asArrayOf_s_math_ScalaNumber = (function(obj, depth) {
return (($isArrayOf_s_math_ScalaNumber(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.math.ScalaNumber;", depth))
});
/** @constructor */
var $c_s_util_hashing_MurmurHash3$ = (function() {
$c_s_util_hashing_MurmurHash3.call(this);
this.arraySeed$2 = 0;
this.stringSeed$2 = 0;
this.productSeed$2 = 0;
this.symmetricSeed$2 = 0;
this.traversableSeed$2 = 0;
this.seqSeed$2 = 0;
this.mapSeed$2 = 0;
this.setSeed$2 = 0
});
$c_s_util_hashing_MurmurHash3$.prototype = new $h_s_util_hashing_MurmurHash3();
$c_s_util_hashing_MurmurHash3$.prototype.constructor = $c_s_util_hashing_MurmurHash3$;
/** @constructor */
var $h_s_util_hashing_MurmurHash3$ = (function() {
/*<skip>*/
});
$h_s_util_hashing_MurmurHash3$.prototype = $c_s_util_hashing_MurmurHash3$.prototype;
$c_s_util_hashing_MurmurHash3$.prototype.init___ = (function() {
$n_s_util_hashing_MurmurHash3$ = this;
this.seqSeed$2 = $m_sjsr_RuntimeString$().hashCode__T__I("Seq");
this.mapSeed$2 = $m_sjsr_RuntimeString$().hashCode__T__I("Map");
this.setSeed$2 = $m_sjsr_RuntimeString$().hashCode__T__I("Set");
return this
});
var $d_s_util_hashing_MurmurHash3$ = new $TypeData().initClass({
s_util_hashing_MurmurHash3$: 0
}, false, "scala.util.hashing.MurmurHash3$", {
s_util_hashing_MurmurHash3$: 1,
s_util_hashing_MurmurHash3: 1,
O: 1
});
$c_s_util_hashing_MurmurHash3$.prototype.$classData = $d_s_util_hashing_MurmurHash3$;
var $n_s_util_hashing_MurmurHash3$ = (void 0);
var $m_s_util_hashing_MurmurHash3$ = (function() {
if ((!$n_s_util_hashing_MurmurHash3$)) {
$n_s_util_hashing_MurmurHash3$ = new $c_s_util_hashing_MurmurHash3$().init___()
};
return $n_s_util_hashing_MurmurHash3$
});
/** @constructor */
var $c_Ljava_io_OutputStream = (function() {
$c_O.call(this)
});
$c_Ljava_io_OutputStream.prototype = new $h_O();
$c_Ljava_io_OutputStream.prototype.constructor = $c_Ljava_io_OutputStream;
/** @constructor */
var $h_Ljava_io_OutputStream = (function() {
/*<skip>*/
});
$h_Ljava_io_OutputStream.prototype = $c_Ljava_io_OutputStream.prototype;
var $d_jl_Byte = new $TypeData().initClass({
jl_Byte: 0
}, false, "java.lang.Byte", {
jl_Byte: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return $isByte(x)
}));
var $isArrayOf_jl_Double = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Double)))
});
var $asArrayOf_jl_Double = (function(obj, depth) {
return (($isArrayOf_jl_Double(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Double;", depth))
});
var $d_jl_Double = new $TypeData().initClass({
jl_Double: 0
}, false, "java.lang.Double", {
jl_Double: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return ((typeof x) === "number")
}));
/** @constructor */
var $c_jl_Error = (function() {
$c_jl_Throwable.call(this)
});
$c_jl_Error.prototype = new $h_jl_Throwable();
$c_jl_Error.prototype.constructor = $c_jl_Error;
/** @constructor */
var $h_jl_Error = (function() {
/*<skip>*/
});
$h_jl_Error.prototype = $c_jl_Error.prototype;
/** @constructor */
var $c_jl_Exception = (function() {
$c_jl_Throwable.call(this)
});
$c_jl_Exception.prototype = new $h_jl_Throwable();
$c_jl_Exception.prototype.constructor = $c_jl_Exception;
/** @constructor */
var $h_jl_Exception = (function() {
/*<skip>*/
});
$h_jl_Exception.prototype = $c_jl_Exception.prototype;
$c_jl_Exception.prototype.init___T = (function(s) {
$c_jl_Exception.prototype.init___T__jl_Throwable.call(this, s, null);
return this
});
var $d_jl_Float = new $TypeData().initClass({
jl_Float: 0
}, false, "java.lang.Float", {
jl_Float: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return $isFloat(x)
}));
var $isArrayOf_jl_Integer = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Integer)))
});
var $asArrayOf_jl_Integer = (function(obj, depth) {
return (($isArrayOf_jl_Integer(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Integer;", depth))
});
var $d_jl_Integer = new $TypeData().initClass({
jl_Integer: 0
}, false, "java.lang.Integer", {
jl_Integer: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return $isInt(x)
}));
var $isArrayOf_jl_Long = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.jl_Long)))
});
var $asArrayOf_jl_Long = (function(obj, depth) {
return (($isArrayOf_jl_Long(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Long;", depth))
});
var $d_jl_Long = new $TypeData().initClass({
jl_Long: 0
}, false, "java.lang.Long", {
jl_Long: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return $is_sjsr_RuntimeLong(x)
}));
var $d_jl_Short = new $TypeData().initClass({
jl_Short: 0
}, false, "java.lang.Short", {
jl_Short: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
}, (void 0), (void 0), (function(x) {
return $isShort(x)
}));
/** @constructor */
var $c_s_Console$ = (function() {
$c_s_DeprecatedConsole.call(this);
this.outVar$2 = null;
this.errVar$2 = null;
this.inVar$2 = null
});
$c_s_Console$.prototype = new $h_s_DeprecatedConsole();
$c_s_Console$.prototype.constructor = $c_s_Console$;
/** @constructor */
var $h_s_Console$ = (function() {
/*<skip>*/
});
$h_s_Console$.prototype = $c_s_Console$.prototype;
$c_s_Console$.prototype.init___ = (function() {
$n_s_Console$ = this;
this.outVar$2 = new $c_s_util_DynamicVariable().init___O($m_jl_System$().out$1);
this.errVar$2 = new $c_s_util_DynamicVariable().init___O($m_jl_System$().err$1);
this.inVar$2 = new $c_s_util_DynamicVariable().init___O(null);
return this
});
var $d_s_Console$ = new $TypeData().initClass({
s_Console$: 0
}, false, "scala.Console$", {
s_Console$: 1,
s_DeprecatedConsole: 1,
O: 1,
s_io_AnsiColor: 1
});
$c_s_Console$.prototype.$classData = $d_s_Console$;
var $n_s_Console$ = (void 0);
var $m_s_Console$ = (function() {
if ((!$n_s_Console$)) {
$n_s_Console$ = new $c_s_Console$().init___()
};
return $n_s_Console$
});
/** @constructor */
var $c_s_util_DynamicVariable$$anon$1 = (function() {
$c_jl_InheritableThreadLocal.call(this);
this.$$outer$3 = null
});
$c_s_util_DynamicVariable$$anon$1.prototype = new $h_jl_InheritableThreadLocal();
$c_s_util_DynamicVariable$$anon$1.prototype.constructor = $c_s_util_DynamicVariable$$anon$1;
/** @constructor */
var $h_s_util_DynamicVariable$$anon$1 = (function() {
/*<skip>*/
});
$h_s_util_DynamicVariable$$anon$1.prototype = $c_s_util_DynamicVariable$$anon$1.prototype;
$c_s_util_DynamicVariable$$anon$1.prototype.init___s_util_DynamicVariable = (function($$outer) {
if (($$outer === null)) {
throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null)
} else {
this.$$outer$3 = $$outer
};
$c_jl_InheritableThreadLocal.prototype.init___.call(this);
return this
});
$c_s_util_DynamicVariable$$anon$1.prototype.initialValue__O = (function() {
return this.$$outer$3.scala$util$DynamicVariable$$init$f
});
var $d_s_util_DynamicVariable$$anon$1 = new $TypeData().initClass({
s_util_DynamicVariable$$anon$1: 0
}, false, "scala.util.DynamicVariable$$anon$1", {
s_util_DynamicVariable$$anon$1: 1,
jl_InheritableThreadLocal: 1,
jl_ThreadLocal: 1,
O: 1
});
$c_s_util_DynamicVariable$$anon$1.prototype.$classData = $d_s_util_DynamicVariable$$anon$1;
/** @constructor */
var $c_sjsr_RuntimeLong = (function() {
$c_jl_Number.call(this);
this.l$2 = 0;
this.m$2 = 0;
this.h$2 = 0
});
$c_sjsr_RuntimeLong.prototype = new $h_jl_Number();
$c_sjsr_RuntimeLong.prototype.constructor = $c_sjsr_RuntimeLong;
/** @constructor */
var $h_sjsr_RuntimeLong = (function() {
/*<skip>*/
});
$h_sjsr_RuntimeLong.prototype = $c_sjsr_RuntimeLong.prototype;
$c_sjsr_RuntimeLong.prototype.longValue__J = (function() {
return $uJ(this)
});
$c_sjsr_RuntimeLong.prototype.powerOfTwo__p2__I = (function() {
return (((((this.h$2 === 0) && (this.m$2 === 0)) && (this.l$2 !== 0)) && ((this.l$2 & (((-1) + this.l$2) | 0)) === 0)) ? $m_jl_Integer$().numberOfTrailingZeros__I__I(this.l$2) : (((((this.h$2 === 0) && (this.m$2 !== 0)) && (this.l$2 === 0)) && ((this.m$2 & (((-1) + this.m$2) | 0)) === 0)) ? ((22 + $m_jl_Integer$().numberOfTrailingZeros__I__I(this.m$2)) | 0) : (((((this.h$2 !== 0) && (this.m$2 === 0)) && (this.l$2 === 0)) && ((this.h$2 & (((-1) + this.h$2) | 0)) === 0)) ? ((44 + $m_jl_Integer$().numberOfTrailingZeros__I__I(this.h$2)) | 0) : (-1))))
});
$c_sjsr_RuntimeLong.prototype.$$bar__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
return new $c_sjsr_RuntimeLong().init___I__I__I((this.l$2 | y.l$2), (this.m$2 | y.m$2), (this.h$2 | y.h$2))
});
$c_sjsr_RuntimeLong.prototype.$$greater$eq__sjsr_RuntimeLong__Z = (function(y) {
return (((524288 & this.h$2) === 0) ? (((((524288 & y.h$2) !== 0) || (this.h$2 > y.h$2)) || ((this.h$2 === y.h$2) && (this.m$2 > y.m$2))) || (((this.h$2 === y.h$2) && (this.m$2 === y.m$2)) && (this.l$2 >= y.l$2))) : (!(((((524288 & y.h$2) === 0) || (this.h$2 < y.h$2)) || ((this.h$2 === y.h$2) && (this.m$2 < y.m$2))) || (((this.h$2 === y.h$2) && (this.m$2 === y.m$2)) && (this.l$2 < y.l$2)))))
});
$c_sjsr_RuntimeLong.prototype.byteValue__B = (function() {
return this.toByte__B()
});
$c_sjsr_RuntimeLong.prototype.toShort__S = (function() {
return ((this.toInt__I() << 16) >> 16)
});
$c_sjsr_RuntimeLong.prototype.equals__O__Z = (function(that) {
if ($is_sjsr_RuntimeLong(that)) {
var x2 = $as_sjsr_RuntimeLong(that);
return this.equals__sjsr_RuntimeLong__Z(x2)
} else {
return false
}
});
$c_sjsr_RuntimeLong.prototype.$$less__sjsr_RuntimeLong__Z = (function(y) {
return y.$$greater__sjsr_RuntimeLong__Z(this)
});
$c_sjsr_RuntimeLong.prototype.$$times__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
var _1 = (8191 & this.l$2);
var _2 = ((this.l$2 >> 13) | ((15 & this.m$2) << 9));
var _3 = (8191 & (this.m$2 >> 4));
var _4 = ((this.m$2 >> 17) | ((255 & this.h$2) << 5));
var _5 = ((1048320 & this.h$2) >> 8);
var _1$1 = (8191 & y.l$2);
var _2$1 = ((y.l$2 >> 13) | ((15 & y.m$2) << 9));
var _3$1 = (8191 & (y.m$2 >> 4));
var _4$1 = ((y.m$2 >> 17) | ((255 & y.h$2) << 5));
var _5$1 = ((1048320 & y.h$2) >> 8);
var p0 = $imul(_1, _1$1);
var p1 = $imul(_2, _1$1);
var p2 = $imul(_3, _1$1);
var p3 = $imul(_4, _1$1);
var p4 = $imul(_5, _1$1);
if ((_2$1 !== 0)) {
p1 = ((p1 + $imul(_1, _2$1)) | 0);
p2 = ((p2 + $imul(_2, _2$1)) | 0);
p3 = ((p3 + $imul(_3, _2$1)) | 0);
p4 = ((p4 + $imul(_4, _2$1)) | 0)
};
if ((_3$1 !== 0)) {
p2 = ((p2 + $imul(_1, _3$1)) | 0);
p3 = ((p3 + $imul(_2, _3$1)) | 0);
p4 = ((p4 + $imul(_3, _3$1)) | 0)
};
if ((_4$1 !== 0)) {
p3 = ((p3 + $imul(_1, _4$1)) | 0);
p4 = ((p4 + $imul(_2, _4$1)) | 0)
};
if ((_5$1 !== 0)) {
p4 = ((p4 + $imul(_1, _5$1)) | 0)
};
var c00 = (4194303 & p0);
var c01 = ((511 & p1) << 13);
var c0 = ((c00 + c01) | 0);
var c10 = (p0 >> 22);
var c11 = (p1 >> 9);
var c12 = ((262143 & p2) << 4);
var c13 = ((31 & p3) << 17);
var c1 = ((((((c10 + c11) | 0) + c12) | 0) + c13) | 0);
var c22 = (p2 >> 18);
var c23 = (p3 >> 5);
var c24 = ((4095 & p4) << 8);
var c2 = ((((c22 + c23) | 0) + c24) | 0);
var c1n = ((c1 + (c0 >> 22)) | 0);
var h = ((c2 + (c1n >> 22)) | 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & c0), (4194303 & c1n), (1048575 & h))
});
$c_sjsr_RuntimeLong.prototype.init___I__I__I = (function(l, m, h) {
this.l$2 = l;
this.m$2 = m;
this.h$2 = h;
return this
});
$c_sjsr_RuntimeLong.prototype.$$percent__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
return $as_sjsr_RuntimeLong(this.scala$scalajs$runtime$RuntimeLong$$divMod__sjsr_RuntimeLong__sjs_js_Array(y)[1])
});
$c_sjsr_RuntimeLong.prototype.toString__T = (function() {
if ((((this.l$2 === 0) && (this.m$2 === 0)) && (this.h$2 === 0))) {
return "0"
} else if (this.equals__sjsr_RuntimeLong__Z($m_sjsr_RuntimeLong$().MinValue$1)) {
return "-9223372036854775808"
} else if (((524288 & this.h$2) !== 0)) {
return ("-" + this.unary$und$minus__sjsr_RuntimeLong().toString__T())
} else {
var tenPow9 = $m_sjsr_RuntimeLong$().TenPow9$1;
var v = this;
var acc = "";
_toString0: while (true) {
var this$1 = v;
if ((((this$1.l$2 === 0) && (this$1.m$2 === 0)) && (this$1.h$2 === 0))) {
return acc
} else {
var quotRem = v.scala$scalajs$runtime$RuntimeLong$$divMod__sjsr_RuntimeLong__sjs_js_Array(tenPow9);
var quot = $as_sjsr_RuntimeLong(quotRem[0]);
var rem = $as_sjsr_RuntimeLong(quotRem[1]);
var this$2 = rem.toInt__I();
var digits = ("" + this$2);
if ((((quot.l$2 === 0) && (quot.m$2 === 0)) && (quot.h$2 === 0))) {
var zeroPrefix = ""
} else {
var beginIndex = $uI(digits["length"]);
var zeroPrefix = $as_T("000000000"["substring"](beginIndex))
};
var temp$acc = ((zeroPrefix + digits) + acc);
v = quot;
acc = temp$acc;
continue _toString0
}
}
}
});
$c_sjsr_RuntimeLong.prototype.$$less$eq__sjsr_RuntimeLong__Z = (function(y) {
return y.$$greater$eq__sjsr_RuntimeLong__Z(this)
});
$c_sjsr_RuntimeLong.prototype.compareTo__O__I = (function(x$1) {
var that = $as_sjsr_RuntimeLong(x$1);
return this.compareTo__sjsr_RuntimeLong__I($as_sjsr_RuntimeLong(that))
});
$c_sjsr_RuntimeLong.prototype.scala$scalajs$runtime$RuntimeLong$$setBit__I__sjsr_RuntimeLong = (function(bit) {
return ((bit < 22) ? new $c_sjsr_RuntimeLong().init___I__I__I((this.l$2 | (1 << bit)), this.m$2, this.h$2) : ((bit < 44) ? new $c_sjsr_RuntimeLong().init___I__I__I(this.l$2, (this.m$2 | (1 << (((-22) + bit) | 0))), this.h$2) : new $c_sjsr_RuntimeLong().init___I__I__I(this.l$2, this.m$2, (this.h$2 | (1 << (((-44) + bit) | 0))))))
});
$c_sjsr_RuntimeLong.prototype.scala$scalajs$runtime$RuntimeLong$$divMod__sjsr_RuntimeLong__sjs_js_Array = (function(y) {
if ((((y.l$2 === 0) && (y.m$2 === 0)) && (y.h$2 === 0))) {
throw new $c_jl_ArithmeticException().init___T("/ by zero")
} else if ((((this.l$2 === 0) && (this.m$2 === 0)) && (this.h$2 === 0))) {
return [$m_sjsr_RuntimeLong$().Zero$1, $m_sjsr_RuntimeLong$().Zero$1]
} else if (y.equals__sjsr_RuntimeLong__Z($m_sjsr_RuntimeLong$().MinValue$1)) {
return (this.equals__sjsr_RuntimeLong__Z($m_sjsr_RuntimeLong$().MinValue$1) ? [$m_sjsr_RuntimeLong$().One$1, $m_sjsr_RuntimeLong$().Zero$1] : [$m_sjsr_RuntimeLong$().Zero$1, this])
} else {
var xNegative = ((524288 & this.h$2) !== 0);
var yNegative = ((524288 & y.h$2) !== 0);
var xMinValue = this.equals__sjsr_RuntimeLong__Z($m_sjsr_RuntimeLong$().MinValue$1);
var pow = y.powerOfTwo__p2__I();
if ((pow >= 0)) {
if (xMinValue) {
var z = this.$$greater$greater__I__sjsr_RuntimeLong(pow);
return [(yNegative ? z.unary$und$minus__sjsr_RuntimeLong() : z), $m_sjsr_RuntimeLong$().Zero$1]
} else {
var absX = (((524288 & this.h$2) !== 0) ? this.unary$und$minus__sjsr_RuntimeLong() : this);
var absZ = absX.$$greater$greater__I__sjsr_RuntimeLong(pow);
var z$2 = ((xNegative !== yNegative) ? absZ.unary$und$minus__sjsr_RuntimeLong() : absZ);
var remAbs = ((pow <= 22) ? new $c_sjsr_RuntimeLong().init___I__I__I((absX.l$2 & (((-1) + (1 << pow)) | 0)), 0, 0) : ((pow <= 44) ? new $c_sjsr_RuntimeLong().init___I__I__I(absX.l$2, (absX.m$2 & (((-1) + (1 << (((-22) + pow) | 0))) | 0)), 0) : new $c_sjsr_RuntimeLong().init___I__I__I(absX.l$2, absX.m$2, (absX.h$2 & (((-1) + (1 << (((-44) + pow) | 0))) | 0)))));
var rem = (xNegative ? remAbs.unary$und$minus__sjsr_RuntimeLong() : remAbs);
return [z$2, rem]
}
} else {
var absY = (((524288 & y.h$2) !== 0) ? y.unary$und$minus__sjsr_RuntimeLong() : y);
if (xMinValue) {
var newX = $m_sjsr_RuntimeLong$().MaxValue$1
} else {
var absX$2 = (((524288 & this.h$2) !== 0) ? this.unary$und$minus__sjsr_RuntimeLong() : this);
if (absY.$$greater__sjsr_RuntimeLong__Z(absX$2)) {
var newX;
return [$m_sjsr_RuntimeLong$().Zero$1, this]
} else {
var newX = absX$2
}
};
var shift = ((absY.numberOfLeadingZeros__I() - newX.numberOfLeadingZeros__I()) | 0);
var yShift = absY.$$less$less__I__sjsr_RuntimeLong(shift);
var shift$1 = shift;
var yShift$1 = yShift;
var curX = newX;
var quot = $m_sjsr_RuntimeLong$().Zero$1;
x: {
var x1_$_$$und1$f;
var x1_$_$$und2$f;
_divide0: while (true) {
if ((shift$1 < 0)) {
var jsx$1 = true
} else {
var this$1 = curX;
var jsx$1 = (((this$1.l$2 === 0) && (this$1.m$2 === 0)) && (this$1.h$2 === 0))
};
if (jsx$1) {
var _1 = quot;
var _2 = curX;
var x1_$_$$und1$f = _1;
var x1_$_$$und2$f = _2;
break x
} else {
var this$2 = curX;
var y$1 = yShift$1;
var newX$1 = this$2.$$plus__sjsr_RuntimeLong__sjsr_RuntimeLong(y$1.unary$und$minus__sjsr_RuntimeLong());
if (((524288 & newX$1.h$2) === 0)) {
var temp$shift = (((-1) + shift$1) | 0);
var temp$yShift = yShift$1.$$greater$greater__I__sjsr_RuntimeLong(1);
var temp$quot = quot.scala$scalajs$runtime$RuntimeLong$$setBit__I__sjsr_RuntimeLong(shift$1);
shift$1 = temp$shift;
yShift$1 = temp$yShift;
curX = newX$1;
quot = temp$quot;
continue _divide0
} else {
var temp$shift$2 = (((-1) + shift$1) | 0);
var temp$yShift$2 = yShift$1.$$greater$greater__I__sjsr_RuntimeLong(1);
shift$1 = temp$shift$2;
yShift$1 = temp$yShift$2;
continue _divide0
}
}
}
};
var absQuot = $as_sjsr_RuntimeLong(x1_$_$$und1$f);
var absRem = $as_sjsr_RuntimeLong(x1_$_$$und2$f);
var quot$1 = ((xNegative !== yNegative) ? absQuot.unary$und$minus__sjsr_RuntimeLong() : absQuot);
if ((xNegative && xMinValue)) {
var this$3 = absRem.unary$und$minus__sjsr_RuntimeLong();
var y$2 = $m_sjsr_RuntimeLong$().One$1;
var rem$1 = this$3.$$plus__sjsr_RuntimeLong__sjsr_RuntimeLong(y$2.unary$und$minus__sjsr_RuntimeLong())
} else {
var rem$1 = (xNegative ? absRem.unary$und$minus__sjsr_RuntimeLong() : absRem)
};
return [quot$1, rem$1]
}
}
});
$c_sjsr_RuntimeLong.prototype.$$amp__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
return new $c_sjsr_RuntimeLong().init___I__I__I((this.l$2 & y.l$2), (this.m$2 & y.m$2), (this.h$2 & y.h$2))
});
$c_sjsr_RuntimeLong.prototype.$$greater$greater$greater__I__sjsr_RuntimeLong = (function(n_in) {
var n = (63 & n_in);
if ((n < 22)) {
var remBits = ((22 - n) | 0);
var l = ((this.l$2 >> n) | (this.m$2 << remBits));
var m = ((this.m$2 >> n) | (this.h$2 << remBits));
var h = ((this.h$2 >>> n) | 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l), (4194303 & m), (1048575 & h))
} else if ((n < 44)) {
var shfBits = (((-22) + n) | 0);
var remBits$2 = ((44 - n) | 0);
var l$1 = ((this.m$2 >> shfBits) | (this.h$2 << remBits$2));
var m$1 = ((this.h$2 >>> shfBits) | 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l$1), (4194303 & m$1), 0)
} else {
var l$2 = ((this.h$2 >>> (((-44) + n) | 0)) | 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l$2), 0, 0)
}
});
$c_sjsr_RuntimeLong.prototype.compareTo__sjsr_RuntimeLong__I = (function(that) {
return (this.equals__sjsr_RuntimeLong__Z(that) ? 0 : (this.$$greater__sjsr_RuntimeLong__Z(that) ? 1 : (-1)))
});
$c_sjsr_RuntimeLong.prototype.$$greater__sjsr_RuntimeLong__Z = (function(y) {
return (((524288 & this.h$2) === 0) ? (((((524288 & y.h$2) !== 0) || (this.h$2 > y.h$2)) || ((this.h$2 === y.h$2) && (this.m$2 > y.m$2))) || (((this.h$2 === y.h$2) && (this.m$2 === y.m$2)) && (this.l$2 > y.l$2))) : (!(((((524288 & y.h$2) === 0) || (this.h$2 < y.h$2)) || ((this.h$2 === y.h$2) && (this.m$2 < y.m$2))) || (((this.h$2 === y.h$2) && (this.m$2 === y.m$2)) && (this.l$2 <= y.l$2)))))
});
$c_sjsr_RuntimeLong.prototype.$$less$less__I__sjsr_RuntimeLong = (function(n_in) {
var n = (63 & n_in);
if ((n < 22)) {
var remBits = ((22 - n) | 0);
var l = (this.l$2 << n);
var m = ((this.m$2 << n) | (this.l$2 >> remBits));
var h = ((this.h$2 << n) | (this.m$2 >> remBits));
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l), (4194303 & m), (1048575 & h))
} else if ((n < 44)) {
var shfBits = (((-22) + n) | 0);
var remBits$2 = ((44 - n) | 0);
var m$1 = (this.l$2 << shfBits);
var h$1 = ((this.m$2 << shfBits) | (this.l$2 >> remBits$2));
return new $c_sjsr_RuntimeLong().init___I__I__I(0, (4194303 & m$1), (1048575 & h$1))
} else {
var h$2 = (this.l$2 << (((-44) + n) | 0));
return new $c_sjsr_RuntimeLong().init___I__I__I(0, 0, (1048575 & h$2))
}
});
$c_sjsr_RuntimeLong.prototype.toInt__I = (function() {
return (this.l$2 | (this.m$2 << 22))
});
$c_sjsr_RuntimeLong.prototype.init___I = (function(value) {
$c_sjsr_RuntimeLong.prototype.init___I__I__I.call(this, (4194303 & value), (4194303 & (value >> 22)), ((value < 0) ? 1048575 : 0));
return this
});
$c_sjsr_RuntimeLong.prototype.notEquals__sjsr_RuntimeLong__Z = (function(that) {
return (!this.equals__sjsr_RuntimeLong__Z(that))
});
$c_sjsr_RuntimeLong.prototype.unary$und$minus__sjsr_RuntimeLong = (function() {
var neg0 = (4194303 & ((1 + (~this.l$2)) | 0));
var neg1 = (4194303 & (((~this.m$2) + ((neg0 === 0) ? 1 : 0)) | 0));
var neg2 = (1048575 & (((~this.h$2) + (((neg0 === 0) && (neg1 === 0)) ? 1 : 0)) | 0));
return new $c_sjsr_RuntimeLong().init___I__I__I(neg0, neg1, neg2)
});
$c_sjsr_RuntimeLong.prototype.shortValue__S = (function() {
return this.toShort__S()
});
$c_sjsr_RuntimeLong.prototype.$$plus__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
var sum0 = ((this.l$2 + y.l$2) | 0);
var sum1 = ((((this.m$2 + y.m$2) | 0) + (sum0 >> 22)) | 0);
var sum2 = ((((this.h$2 + y.h$2) | 0) + (sum1 >> 22)) | 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & sum0), (4194303 & sum1), (1048575 & sum2))
});
$c_sjsr_RuntimeLong.prototype.$$greater$greater__I__sjsr_RuntimeLong = (function(n_in) {
var n = (63 & n_in);
var negative = ((524288 & this.h$2) !== 0);
var xh = (negative ? ((-1048576) | this.h$2) : this.h$2);
if ((n < 22)) {
var remBits = ((22 - n) | 0);
var l = ((this.l$2 >> n) | (this.m$2 << remBits));
var m = ((this.m$2 >> n) | (xh << remBits));
var h = (xh >> n);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l), (4194303 & m), (1048575 & h))
} else if ((n < 44)) {
var shfBits = (((-22) + n) | 0);
var remBits$2 = ((44 - n) | 0);
var l$1 = ((this.m$2 >> shfBits) | (xh << remBits$2));
var m$1 = (xh >> shfBits);
var h$1 = (negative ? 1048575 : 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l$1), (4194303 & m$1), (1048575 & h$1))
} else {
var l$2 = (xh >> (((-44) + n) | 0));
var m$2 = (negative ? 4194303 : 0);
var h$2 = (negative ? 1048575 : 0);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l$2), (4194303 & m$2), (1048575 & h$2))
}
});
$c_sjsr_RuntimeLong.prototype.toDouble__D = (function() {
return (this.equals__sjsr_RuntimeLong__Z($m_sjsr_RuntimeLong$().MinValue$1) ? (-9.223372036854776E18) : (((524288 & this.h$2) !== 0) ? (-this.unary$und$minus__sjsr_RuntimeLong().toDouble__D()) : ((this.l$2 + (4194304.0 * this.m$2)) + (1.7592186044416E13 * this.h$2))))
});
$c_sjsr_RuntimeLong.prototype.$$div__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
return $as_sjsr_RuntimeLong(this.scala$scalajs$runtime$RuntimeLong$$divMod__sjsr_RuntimeLong__sjs_js_Array(y)[0])
});
$c_sjsr_RuntimeLong.prototype.numberOfLeadingZeros__I = (function() {
return ((this.h$2 !== 0) ? (((-12) + $m_jl_Integer$().numberOfLeadingZeros__I__I(this.h$2)) | 0) : ((this.m$2 !== 0) ? ((10 + $m_jl_Integer$().numberOfLeadingZeros__I__I(this.m$2)) | 0) : ((32 + $m_jl_Integer$().numberOfLeadingZeros__I__I(this.l$2)) | 0)))
});
$c_sjsr_RuntimeLong.prototype.toByte__B = (function() {
return ((this.toInt__I() << 24) >> 24)
});
$c_sjsr_RuntimeLong.prototype.doubleValue__D = (function() {
return this.toDouble__D()
});
$c_sjsr_RuntimeLong.prototype.hashCode__I = (function() {
return this.$$up__sjsr_RuntimeLong__sjsr_RuntimeLong(this.$$greater$greater$greater__I__sjsr_RuntimeLong(32)).toInt__I()
});
$c_sjsr_RuntimeLong.prototype.intValue__I = (function() {
return this.toInt__I()
});
$c_sjsr_RuntimeLong.prototype.unary$und$tilde__sjsr_RuntimeLong = (function() {
var l = (~this.l$2);
var m = (~this.m$2);
var h = (~this.h$2);
return new $c_sjsr_RuntimeLong().init___I__I__I((4194303 & l), (4194303 & m), (1048575 & h))
});
$c_sjsr_RuntimeLong.prototype.compareTo__jl_Long__I = (function(that) {
return this.compareTo__sjsr_RuntimeLong__I($as_sjsr_RuntimeLong(that))
});
$c_sjsr_RuntimeLong.prototype.floatValue__F = (function() {
return this.toFloat__F()
});
$c_sjsr_RuntimeLong.prototype.$$minus__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
return this.$$plus__sjsr_RuntimeLong__sjsr_RuntimeLong(y.unary$und$minus__sjsr_RuntimeLong())
});
$c_sjsr_RuntimeLong.prototype.toFloat__F = (function() {
return $fround(this.toDouble__D())
});
$c_sjsr_RuntimeLong.prototype.$$up__sjsr_RuntimeLong__sjsr_RuntimeLong = (function(y) {
return new $c_sjsr_RuntimeLong().init___I__I__I((this.l$2 ^ y.l$2), (this.m$2 ^ y.m$2), (this.h$2 ^ y.h$2))
});
$c_sjsr_RuntimeLong.prototype.equals__sjsr_RuntimeLong__Z = (function(y) {
return (((this.l$2 === y.l$2) && (this.m$2 === y.m$2)) && (this.h$2 === y.h$2))
});
var $is_sjsr_RuntimeLong = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sjsr_RuntimeLong)))
});
var $as_sjsr_RuntimeLong = (function(obj) {
return (($is_sjsr_RuntimeLong(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.scalajs.runtime.RuntimeLong"))
});
var $isArrayOf_sjsr_RuntimeLong = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sjsr_RuntimeLong)))
});
var $asArrayOf_sjsr_RuntimeLong = (function(obj, depth) {
return (($isArrayOf_sjsr_RuntimeLong(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.scalajs.runtime.RuntimeLong;", depth))
});
var $d_sjsr_RuntimeLong = new $TypeData().initClass({
sjsr_RuntimeLong: 0
}, false, "scala.scalajs.runtime.RuntimeLong", {
sjsr_RuntimeLong: 1,
jl_Number: 1,
O: 1,
jl_Comparable: 1
});
$c_sjsr_RuntimeLong.prototype.$classData = $d_sjsr_RuntimeLong;
/** @constructor */
var $c_sjsr_RuntimeLong$ = (function() {
$c_O.call(this);
this.BITS$1 = 0;
this.BITS01$1 = 0;
this.BITS2$1 = 0;
this.MASK$1 = 0;
this.MASK$und2$1 = 0;
this.SIGN$undBIT$1 = 0;
this.SIGN$undBIT$undVALUE$1 = 0;
this.TWO$undPWR$und15$undDBL$1 = 0.0;
this.TWO$undPWR$und16$undDBL$1 = 0.0;
this.TWO$undPWR$und22$undDBL$1 = 0.0;
this.TWO$undPWR$und31$undDBL$1 = 0.0;
this.TWO$undPWR$und32$undDBL$1 = 0.0;
this.TWO$undPWR$und44$undDBL$1 = 0.0;
this.TWO$undPWR$und63$undDBL$1 = 0.0;
this.Zero$1 = null;
this.One$1 = null;
this.MinusOne$1 = null;
this.MinValue$1 = null;
this.MaxValue$1 = null;
this.TenPow9$1 = null
});
$c_sjsr_RuntimeLong$.prototype = new $h_O();
$c_sjsr_RuntimeLong$.prototype.constructor = $c_sjsr_RuntimeLong$;
/** @constructor */
var $h_sjsr_RuntimeLong$ = (function() {
/*<skip>*/
});
$h_sjsr_RuntimeLong$.prototype = $c_sjsr_RuntimeLong$.prototype;
$c_sjsr_RuntimeLong$.prototype.init___ = (function() {
$n_sjsr_RuntimeLong$ = this;
this.Zero$1 = new $c_sjsr_RuntimeLong().init___I__I__I(0, 0, 0);
this.One$1 = new $c_sjsr_RuntimeLong().init___I__I__I(1, 0, 0);
this.MinusOne$1 = new $c_sjsr_RuntimeLong().init___I__I__I(4194303, 4194303, 1048575);
this.MinValue$1 = new $c_sjsr_RuntimeLong().init___I__I__I(0, 0, 524288);
this.MaxValue$1 = new $c_sjsr_RuntimeLong().init___I__I__I(4194303, 4194303, 524287);
this.TenPow9$1 = new $c_sjsr_RuntimeLong().init___I__I__I(1755648, 238, 0);
return this
});
$c_sjsr_RuntimeLong$.prototype.Zero__sjsr_RuntimeLong = (function() {
return this.Zero$1
});
$c_sjsr_RuntimeLong$.prototype.fromDouble__D__sjsr_RuntimeLong = (function(value) {
if ((value !== value)) {
return this.Zero$1
} else if ((value < (-9.223372036854776E18))) {
return this.MinValue$1
} else if ((value >= 9.223372036854776E18)) {
return this.MaxValue$1
} else if ((value < 0)) {
return this.fromDouble__D__sjsr_RuntimeLong((-value)).unary$und$minus__sjsr_RuntimeLong()
} else {
var acc = value;
var a2 = ((acc >= 1.7592186044416E13) ? $doubleToInt((acc / 1.7592186044416E13)) : 0);
acc = (acc - (1.7592186044416E13 * a2));
var a1 = ((acc >= 4194304.0) ? $doubleToInt((acc / 4194304.0)) : 0);
acc = (acc - (4194304.0 * a1));
var a0 = $doubleToInt(acc);
return new $c_sjsr_RuntimeLong().init___I__I__I(a0, a1, a2)
}
});
var $d_sjsr_RuntimeLong$ = new $TypeData().initClass({
sjsr_RuntimeLong$: 0
}, false, "scala.scalajs.runtime.RuntimeLong$", {
sjsr_RuntimeLong$: 1,
O: 1,
s_Serializable: 1,
Ljava_io_Serializable: 1
});
$c_sjsr_RuntimeLong$.prototype.$classData = $d_sjsr_RuntimeLong$;
var $n_sjsr_RuntimeLong$ = (void 0);
var $m_sjsr_RuntimeLong$ = (function() {
if ((!$n_sjsr_RuntimeLong$)) {
$n_sjsr_RuntimeLong$ = new $c_sjsr_RuntimeLong$().init___()
};
return $n_sjsr_RuntimeLong$
});
/** @constructor */
var $c_Ljava_io_FilterOutputStream = (function() {
$c_Ljava_io_OutputStream.call(this);
this.out$2 = null
});
$c_Ljava_io_FilterOutputStream.prototype = new $h_Ljava_io_OutputStream();
$c_Ljava_io_FilterOutputStream.prototype.constructor = $c_Ljava_io_FilterOutputStream;
/** @constructor */
var $h_Ljava_io_FilterOutputStream = (function() {
/*<skip>*/
});
$h_Ljava_io_FilterOutputStream.prototype = $c_Ljava_io_FilterOutputStream.prototype;
$c_Ljava_io_FilterOutputStream.prototype.init___Ljava_io_OutputStream = (function(out) {
this.out$2 = out;
return this
});
var $is_T = (function(obj) {
return ((typeof obj) === "string")
});
var $as_T = (function(obj) {
return (($is_T(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.lang.String"))
});
var $isArrayOf_T = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.T)))
});
var $asArrayOf_T = (function(obj, depth) {
return (($isArrayOf_T(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.String;", depth))
});
var $d_T = new $TypeData().initClass({
T: 0
}, false, "java.lang.String", {
T: 1,
O: 1,
Ljava_io_Serializable: 1,
jl_CharSequence: 1,
jl_Comparable: 1
}, (void 0), (void 0), $is_T);
/** @constructor */
var $c_jl_CloneNotSupportedException = (function() {
$c_jl_Exception.call(this)
});
$c_jl_CloneNotSupportedException.prototype = new $h_jl_Exception();
$c_jl_CloneNotSupportedException.prototype.constructor = $c_jl_CloneNotSupportedException;
/** @constructor */
var $h_jl_CloneNotSupportedException = (function() {
/*<skip>*/
});
$h_jl_CloneNotSupportedException.prototype = $c_jl_CloneNotSupportedException.prototype;
$c_jl_CloneNotSupportedException.prototype.init___ = (function() {
$c_jl_CloneNotSupportedException.prototype.init___T.call(this, null);
return this
});
var $d_jl_CloneNotSupportedException = new $TypeData().initClass({
jl_CloneNotSupportedException: 0
}, false, "java.lang.CloneNotSupportedException", {
jl_CloneNotSupportedException: 1,
jl_Exception: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1
});
$c_jl_CloneNotSupportedException.prototype.$classData = $d_jl_CloneNotSupportedException;
/** @constructor */
var $c_jl_JSConsoleBasedPrintStream$DummyOutputStream = (function() {
$c_Ljava_io_OutputStream.call(this)
});
$c_jl_JSConsoleBasedPrintStream$DummyOutputStream.prototype = new $h_Ljava_io_OutputStream();
$c_jl_JSConsoleBasedPrintStream$DummyOutputStream.prototype.constructor = $c_jl_JSConsoleBasedPrintStream$DummyOutputStream;
/** @constructor */
var $h_jl_JSConsoleBasedPrintStream$DummyOutputStream = (function() {
/*<skip>*/
});
$h_jl_JSConsoleBasedPrintStream$DummyOutputStream.prototype = $c_jl_JSConsoleBasedPrintStream$DummyOutputStream.prototype;
var $d_jl_JSConsoleBasedPrintStream$DummyOutputStream = new $TypeData().initClass({
jl_JSConsoleBasedPrintStream$DummyOutputStream: 0
}, false, "java.lang.JSConsoleBasedPrintStream$DummyOutputStream", {
jl_JSConsoleBasedPrintStream$DummyOutputStream: 1,
Ljava_io_OutputStream: 1,
O: 1,
Ljava_io_Closeable: 1,
Ljava_io_Flushable: 1
});
$c_jl_JSConsoleBasedPrintStream$DummyOutputStream.prototype.$classData = $d_jl_JSConsoleBasedPrintStream$DummyOutputStream;
/** @constructor */
var $c_jl_RuntimeException = (function() {
$c_jl_Exception.call(this)
});
$c_jl_RuntimeException.prototype = new $h_jl_Exception();
$c_jl_RuntimeException.prototype.constructor = $c_jl_RuntimeException;
/** @constructor */
var $h_jl_RuntimeException = (function() {
/*<skip>*/
});
$h_jl_RuntimeException.prototype = $c_jl_RuntimeException.prototype;
$c_jl_RuntimeException.prototype.init___ = (function() {
$c_jl_RuntimeException.prototype.init___T__jl_Throwable.call(this, null, null);
return this
});
$c_jl_RuntimeException.prototype.init___T = (function(s) {
$c_jl_RuntimeException.prototype.init___T__jl_Throwable.call(this, s, null);
return this
});
/** @constructor */
var $c_jl_ArithmeticException = (function() {
$c_jl_RuntimeException.call(this)
});
$c_jl_ArithmeticException.prototype = new $h_jl_RuntimeException();
$c_jl_ArithmeticException.prototype.constructor = $c_jl_ArithmeticException;
/** @constructor */
var $h_jl_ArithmeticException = (function() {
/*<skip>*/
});
$h_jl_ArithmeticException.prototype = $c_jl_ArithmeticException.prototype;
var $d_jl_ArithmeticException = new $TypeData().initClass({
jl_ArithmeticException: 0
}, false, "java.lang.ArithmeticException", {
jl_ArithmeticException: 1,
jl_RuntimeException: 1,
jl_Exception: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1
});
$c_jl_ArithmeticException.prototype.$classData = $d_jl_ArithmeticException;
/** @constructor */
var $c_jl_ClassCastException = (function() {
$c_jl_RuntimeException.call(this)
});
$c_jl_ClassCastException.prototype = new $h_jl_RuntimeException();
$c_jl_ClassCastException.prototype.constructor = $c_jl_ClassCastException;
/** @constructor */
var $h_jl_ClassCastException = (function() {
/*<skip>*/
});
$h_jl_ClassCastException.prototype = $c_jl_ClassCastException.prototype;
var $d_jl_ClassCastException = new $TypeData().initClass({
jl_ClassCastException: 0
}, false, "java.lang.ClassCastException", {
jl_ClassCastException: 1,
jl_RuntimeException: 1,
jl_Exception: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1
});
$c_jl_ClassCastException.prototype.$classData = $d_jl_ClassCastException;
/** @constructor */
var $c_jl_IndexOutOfBoundsException = (function() {
$c_jl_RuntimeException.call(this)
});
$c_jl_IndexOutOfBoundsException.prototype = new $h_jl_RuntimeException();
$c_jl_IndexOutOfBoundsException.prototype.constructor = $c_jl_IndexOutOfBoundsException;
/** @constructor */
var $h_jl_IndexOutOfBoundsException = (function() {
/*<skip>*/
});
$h_jl_IndexOutOfBoundsException.prototype = $c_jl_IndexOutOfBoundsException.prototype;
var $d_jl_IndexOutOfBoundsException = new $TypeData().initClass({
jl_IndexOutOfBoundsException: 0
}, false, "java.lang.IndexOutOfBoundsException", {
jl_IndexOutOfBoundsException: 1,
jl_RuntimeException: 1,
jl_Exception: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1
});
$c_jl_IndexOutOfBoundsException.prototype.$classData = $d_jl_IndexOutOfBoundsException;
/** @constructor */
var $c_jl_NullPointerException = (function() {
$c_jl_RuntimeException.call(this)
});
$c_jl_NullPointerException.prototype = new $h_jl_RuntimeException();
$c_jl_NullPointerException.prototype.constructor = $c_jl_NullPointerException;
/** @constructor */
var $h_jl_NullPointerException = (function() {
/*<skip>*/
});
$h_jl_NullPointerException.prototype = $c_jl_NullPointerException.prototype;
$c_jl_NullPointerException.prototype.init___ = (function() {
$c_jl_NullPointerException.prototype.init___T.call(this, null);
return this
});
var $d_jl_NullPointerException = new $TypeData().initClass({
jl_NullPointerException: 0
}, false, "java.lang.NullPointerException", {
jl_NullPointerException: 1,
jl_RuntimeException: 1,
jl_Exception: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1
});
$c_jl_NullPointerException.prototype.$classData = $d_jl_NullPointerException;
/** @constructor */
var $c_Ljava_io_PrintStream = (function() {
$c_Ljava_io_FilterOutputStream.call(this);
this.java$io$PrintStream$$autoFlush$f = false;
this.charset$3 = null;
this.java$io$PrintStream$$encoder$3 = null;
this.java$io$PrintStream$$closing$3 = false;
this.java$io$PrintStream$$closed$3 = false;
this.errorFlag$3 = false;
this.bitmap$0$3 = false
});
$c_Ljava_io_PrintStream.prototype = new $h_Ljava_io_FilterOutputStream();
$c_Ljava_io_PrintStream.prototype.constructor = $c_Ljava_io_PrintStream;
/** @constructor */
var $h_Ljava_io_PrintStream = (function() {
/*<skip>*/
});
$h_Ljava_io_PrintStream.prototype = $c_Ljava_io_PrintStream.prototype;
$c_Ljava_io_PrintStream.prototype.println__O__V = (function(obj) {
this.print__O__V(obj);
this.printString__p4__T__V("\n")
});
$c_Ljava_io_PrintStream.prototype.init___Ljava_io_OutputStream__Z__Ljava_nio_charset_Charset = (function(_out, autoFlush, charset) {
this.java$io$PrintStream$$autoFlush$f = autoFlush;
this.charset$3 = charset;
$c_Ljava_io_FilterOutputStream.prototype.init___Ljava_io_OutputStream.call(this, _out);
this.java$io$PrintStream$$closing$3 = false;
this.java$io$PrintStream$$closed$3 = false;
this.errorFlag$3 = false;
return this
});
$c_Ljava_io_PrintStream.prototype.init___Ljava_io_OutputStream = (function(out) {
$c_Ljava_io_PrintStream.prototype.init___Ljava_io_OutputStream__Z__Ljava_nio_charset_Charset.call(this, out, false, null);
return this
});
var $is_Ljava_io_PrintStream = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Ljava_io_PrintStream)))
});
var $as_Ljava_io_PrintStream = (function(obj) {
return (($is_Ljava_io_PrintStream(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.io.PrintStream"))
});
var $isArrayOf_Ljava_io_PrintStream = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Ljava_io_PrintStream)))
});
var $asArrayOf_Ljava_io_PrintStream = (function(obj, depth) {
return (($isArrayOf_Ljava_io_PrintStream(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.io.PrintStream;", depth))
});
/** @constructor */
var $c_sjsr_UndefinedBehaviorError = (function() {
$c_jl_Error.call(this)
});
$c_sjsr_UndefinedBehaviorError.prototype = new $h_jl_Error();
$c_sjsr_UndefinedBehaviorError.prototype.constructor = $c_sjsr_UndefinedBehaviorError;
/** @constructor */
var $h_sjsr_UndefinedBehaviorError = (function() {
/*<skip>*/
});
$h_sjsr_UndefinedBehaviorError.prototype = $c_sjsr_UndefinedBehaviorError.prototype;
$c_sjsr_UndefinedBehaviorError.prototype.fillInStackTrace__jl_Throwable = (function() {
return $c_jl_Throwable.prototype.fillInStackTrace__jl_Throwable.call(this)
});
$c_sjsr_UndefinedBehaviorError.prototype.init___jl_Throwable = (function(cause) {
$c_sjsr_UndefinedBehaviorError.prototype.init___T__jl_Throwable.call(this, ("An undefined behavior was detected" + ((cause === null) ? "" : (": " + cause.getMessage__T()))), cause);
return this
});
$c_sjsr_UndefinedBehaviorError.prototype.init___T__jl_Throwable = (function(message, cause) {
$c_jl_Error.prototype.init___T__jl_Throwable.call(this, message, cause);
return this
});
var $d_sjsr_UndefinedBehaviorError = new $TypeData().initClass({
sjsr_UndefinedBehaviorError: 0
}, false, "scala.scalajs.runtime.UndefinedBehaviorError", {
sjsr_UndefinedBehaviorError: 1,
jl_Error: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1,
s_util_control_ControlThrowable: 1,
s_util_control_NoStackTrace: 1
});
$c_sjsr_UndefinedBehaviorError.prototype.$classData = $d_sjsr_UndefinedBehaviorError;
/** @constructor */
var $c_jl_JSConsoleBasedPrintStream = (function() {
$c_Ljava_io_PrintStream.call(this);
this.isErr$4 = null;
this.flushed$4 = false;
this.buffer$4 = null
});
$c_jl_JSConsoleBasedPrintStream.prototype = new $h_Ljava_io_PrintStream();
$c_jl_JSConsoleBasedPrintStream.prototype.constructor = $c_jl_JSConsoleBasedPrintStream;
/** @constructor */
var $h_jl_JSConsoleBasedPrintStream = (function() {
/*<skip>*/
});
$h_jl_JSConsoleBasedPrintStream.prototype = $c_jl_JSConsoleBasedPrintStream.prototype;
$c_jl_JSConsoleBasedPrintStream.prototype.init___jl_Boolean = (function(isErr) {
this.isErr$4 = isErr;
$c_Ljava_io_PrintStream.prototype.init___Ljava_io_OutputStream.call(this, new $c_jl_JSConsoleBasedPrintStream$DummyOutputStream().init___());
this.flushed$4 = true;
this.buffer$4 = "";
return this
});
$c_jl_JSConsoleBasedPrintStream.prototype.doWriteLine__p4__T__V = (function(line) {
var x = $g["console"];
if ($uZ((!(!x)))) {
var x$1 = this.isErr$4;
if ($uZ(x$1)) {
var x$2 = $g["console"]["error"];
var jsx$1 = $uZ((!(!x$2)))
} else {
var jsx$1 = false
};
if (jsx$1) {
$g["console"]["error"](line)
} else {
$g["console"]["log"](line)
}
}
});
$c_jl_JSConsoleBasedPrintStream.prototype.print__O__V = (function(obj) {
this.printString__p4__T__V($m_sjsr_RuntimeString$().valueOf__O__T(obj))
});
$c_jl_JSConsoleBasedPrintStream.prototype.printString__p4__T__V = (function(s) {
var rest = s;
while ((rest !== "")) {
var thiz = rest;
var nlPos = $uI(thiz["indexOf"]("\n"));
if ((nlPos < 0)) {
this.buffer$4 = (("" + this.buffer$4) + rest);
this.flushed$4 = false;
rest = ""
} else {
var jsx$1 = this.buffer$4;
var thiz$1 = rest;
this.doWriteLine__p4__T__V((("" + jsx$1) + $as_T(thiz$1["substring"](0, nlPos))));
this.buffer$4 = "";
this.flushed$4 = true;
var thiz$2 = rest;
var beginIndex = ((1 + nlPos) | 0);
rest = $as_T(thiz$2["substring"](beginIndex))
}
}
});
var $d_jl_JSConsoleBasedPrintStream = new $TypeData().initClass({
jl_JSConsoleBasedPrintStream: 0
}, false, "java.lang.JSConsoleBasedPrintStream", {
jl_JSConsoleBasedPrintStream: 1,
Ljava_io_PrintStream: 1,
Ljava_io_FilterOutputStream: 1,
Ljava_io_OutputStream: 1,
O: 1,
Ljava_io_Closeable: 1,
Ljava_io_Flushable: 1,
jl_Appendable: 1
});
$c_jl_JSConsoleBasedPrintStream.prototype.$classData = $d_jl_JSConsoleBasedPrintStream;
/** @constructor */
var $c_sjs_js_JavaScriptException = (function() {
$c_jl_RuntimeException.call(this);
this.exception$4 = null
});
$c_sjs_js_JavaScriptException.prototype = new $h_jl_RuntimeException();
$c_sjs_js_JavaScriptException.prototype.constructor = $c_sjs_js_JavaScriptException;
/** @constructor */
var $h_sjs_js_JavaScriptException = (function() {
/*<skip>*/
});
$h_sjs_js_JavaScriptException.prototype = $c_sjs_js_JavaScriptException.prototype;
$c_sjs_js_JavaScriptException.prototype.productPrefix__T = (function() {
return "JavaScriptException"
});
$c_sjs_js_JavaScriptException.prototype.productArity__I = (function() {
return 1
});
$c_sjs_js_JavaScriptException.prototype.fillInStackTrace__jl_Throwable = (function() {
$m_sjsr_StackTrace$().captureState__jl_Throwable__O__V(this, this.exception$4);
return this
});
$c_sjs_js_JavaScriptException.prototype.equals__O__Z = (function(x$1) {
if ((this === x$1)) {
return true
} else if ($is_sjs_js_JavaScriptException(x$1)) {
var JavaScriptException$1 = $as_sjs_js_JavaScriptException(x$1);
return $m_sr_BoxesRunTime$().equals__O__O__Z(this.exception$4, JavaScriptException$1.exception$4)
} else {
return false
}
});
$c_sjs_js_JavaScriptException.prototype.productElement__I__O = (function(x$1) {
switch (x$1) {
case 0: {
return this.exception$4;
break
}
default: {
throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
}
}
});
$c_sjs_js_JavaScriptException.prototype.toString__T = (function() {
return $objectToString(this.exception$4)
});
$c_sjs_js_JavaScriptException.prototype.init___O = (function(exception) {
this.exception$4 = exception;
$c_jl_RuntimeException.prototype.init___.call(this);
return this
});
$c_sjs_js_JavaScriptException.prototype.hashCode__I = (function() {
var this$2 = $m_s_util_hashing_MurmurHash3$();
return this$2.productHash__s_Product__I__I(this, (-889275714))
});
var $is_sjs_js_JavaScriptException = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sjs_js_JavaScriptException)))
});
var $as_sjs_js_JavaScriptException = (function(obj) {
return (($is_sjs_js_JavaScriptException(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.scalajs.js.JavaScriptException"))
});
var $isArrayOf_sjs_js_JavaScriptException = (function(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sjs_js_JavaScriptException)))
});
var $asArrayOf_sjs_js_JavaScriptException = (function(obj, depth) {
return (($isArrayOf_sjs_js_JavaScriptException(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.scalajs.js.JavaScriptException;", depth))
});
var $d_sjs_js_JavaScriptException = new $TypeData().initClass({
sjs_js_JavaScriptException: 0
}, false, "scala.scalajs.js.JavaScriptException", {
sjs_js_JavaScriptException: 1,
jl_RuntimeException: 1,
jl_Exception: 1,
jl_Throwable: 1,
O: 1,
Ljava_io_Serializable: 1,
s_Product: 1,
s_Equals: 1,
s_Serializable: 1
});
$c_sjs_js_JavaScriptException.prototype.$classData = $d_sjs_js_JavaScriptException;
}).call(this);
//# sourceMappingURL=scala-js-tutorial-fastopt.js.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment