UNPKG

kyberkotlin

Version:

ML-KEM (NIST FIPS 203) optimized implementation on 100% Kotlin.

1,499 lines (1,497 loc) 83.4 kB
//region block: polyfills (function () { if (typeof globalThis === 'object') return; Object.defineProperty(Object.prototype, '__magic__', {get: function () { return this; }, configurable: true}); __magic__.globalThis = __magic__; delete Object.prototype.__magic__; }()); if (typeof Math.imul === 'undefined') { Math.imul = function imul(a, b) { return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0; }; } if (typeof ArrayBuffer.isView === 'undefined') { ArrayBuffer.isView = function (a) { return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__; }; } if (typeof Array.prototype.fill === 'undefined') { // Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill#Polyfill Object.defineProperty(Array.prototype, 'fill', {value: function (value) { // Steps 1-2. if (this == null) { throw new TypeError('this is null or not defined'); } var O = Object(this); // Steps 3-5. var len = O.length >>> 0; // Steps 6-7. var start = arguments[1]; var relativeStart = start >> 0; // Step 8. var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 9-10. var end = arguments[2]; var relativeEnd = end === undefined ? len : end >> 0; // Step 11. var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step 12. while (k < finalValue) { O[k] = value; k++; } ; // Step 13. return O; }}); } [Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) { if (typeof TypedArray.prototype.fill === 'undefined') { Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill}); } }); //endregion (function (factory) { if (typeof define === 'function' && define.amd) define(['exports'], factory); else if (typeof exports === 'object') factory(module.exports); else globalThis['kotlin-kotlin-stdlib'] = factory(typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined' ? {} : globalThis['kotlin-kotlin-stdlib']); }(function (_) { 'use strict'; //region block: imports var imul = Math.imul; var isView = ArrayBuffer.isView; //endregion //region block: pre-declaration initMetadataForInterface(CharSequence, 'CharSequence'); initMetadataForClass(Number_0, 'Number'); initMetadataForCompanion(Companion); initMetadataForClass(Enum, 'Enum'); initMetadataForCompanion(Companion_0); initMetadataForClass(Long, 'Long', VOID, Number_0); initMetadataForClass(ByteIterator, 'ByteIterator'); initMetadataForClass(byteArrayIterator$1, VOID, VOID, ByteIterator); initMetadataForObject(Unit, 'Unit'); initMetadataForClass(Exception, 'Exception', Exception_init_$Create$, Error); initMetadataForClass(RuntimeException, 'RuntimeException', RuntimeException_init_$Create$, Exception); initMetadataForClass(IllegalArgumentException, 'IllegalArgumentException', IllegalArgumentException_init_$Create$, RuntimeException); initMetadataForClass(IllegalStateException, 'IllegalStateException', IllegalStateException_init_$Create$, RuntimeException); initMetadataForClass(UnsupportedOperationException, 'UnsupportedOperationException', UnsupportedOperationException_init_$Create$, RuntimeException); initMetadataForClass(IndexOutOfBoundsException, 'IndexOutOfBoundsException', IndexOutOfBoundsException_init_$Create$, RuntimeException); initMetadataForClass(ArithmeticException, 'ArithmeticException', ArithmeticException_init_$Create$, RuntimeException); initMetadataForClass(NullPointerException, 'NullPointerException', NullPointerException_init_$Create$, RuntimeException); initMetadataForClass(ClassCastException, 'ClassCastException', ClassCastException_init_$Create$, RuntimeException); initMetadataForInterface(KClass, 'KClass'); initMetadataForClass(KClassImpl, 'KClassImpl', VOID, VOID, [KClass]); initMetadataForObject(NothingKClassImpl, 'NothingKClassImpl', VOID, KClassImpl); initMetadataForClass(ErrorKClass, 'ErrorKClass', ErrorKClass, VOID, [KClass]); initMetadataForClass(PrimitiveKClassImpl, 'PrimitiveKClassImpl', VOID, KClassImpl); initMetadataForClass(SimpleKClassImpl, 'SimpleKClassImpl', VOID, KClassImpl); initMetadataForInterface(KProperty0, 'KProperty0'); initMetadataForObject(PrimitiveClasses, 'PrimitiveClasses'); initMetadataForCompanion(Companion_1); initMetadataForCompanion(Companion_2); initMetadataForClass(IntProgression, 'IntProgression'); initMetadataForClass(IntRange, 'IntRange', VOID, IntProgression); initMetadataForCompanion(Companion_3); initMetadataForClass(UnsafeLazyImpl, 'UnsafeLazyImpl'); initMetadataForObject(UNINITIALIZED_VALUE, 'UNINITIALIZED_VALUE'); //endregion function CharSequence() { } function Number_0() { } protoOf(Number_0).d = function () { return numberToChar(numberToInt(this)); }; function get_indices(_this__u8e3s4) { return new IntRange(0, get_lastIndex(_this__u8e3s4)); } function get_lastIndex(_this__u8e3s4) { return _this__u8e3s4.length - 1 | 0; } function until(_this__u8e3s4, to) { if (to <= -2147483648) return Companion_getInstance_2().e_1; return numberRangeToNumber(_this__u8e3s4, to - 1 | 0); } function step(_this__u8e3s4, step) { checkStepIsPositive(step > 0, step); return Companion_instance_3.i(_this__u8e3s4.f_1, _this__u8e3s4.g_1, _this__u8e3s4.h_1 > 0 ? step : -step | 0); } function _Char___init__impl__6a9atx(value) { return value; } function _get_value__a43j40($this) { return $this; } function _Char___init__impl__6a9atx_0(code) { // Inline function 'kotlin.UShort.toInt' call var tmp$ret$0 = _UShort___get_data__impl__g0245(code) & 65535; return _Char___init__impl__6a9atx(tmp$ret$0); } function Char__toInt_impl_vasixd($this) { return _get_value__a43j40($this); } function Companion() { } var Companion_instance; function Companion_getInstance() { return Companion_instance; } function Enum(name, ordinal) { this.j_1 = name; this.k_1 = ordinal; } protoOf(Enum).l = function () { return this.j_1; }; protoOf(Enum).m = function () { return this.k_1; }; protoOf(Enum).n = function (other) { return compareTo(this.k_1, other.k_1); }; protoOf(Enum).o = function (other) { return this.n(other instanceof Enum ? other : THROW_CCE()); }; protoOf(Enum).equals = function (other) { return this === other; }; protoOf(Enum).hashCode = function () { return identityHashCode(this); }; protoOf(Enum).toString = function () { return this.j_1; }; function toString(_this__u8e3s4) { var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : toString_0(_this__u8e3s4); return tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs; } function Companion_0() { Companion_instance_0 = this; this.p_1 = new Long(0, -2147483648); this.q_1 = new Long(-1, 2147483647); this.r_1 = 8; this.s_1 = 64; } var Companion_instance_0; function Companion_getInstance_0() { if (Companion_instance_0 == null) new Companion_0(); return Companion_instance_0; } function Long(low, high) { Companion_getInstance_0(); Number_0.call(this); this.t_1 = low; this.u_1 = high; } protoOf(Long).v = function (other) { return compare(this, other); }; protoOf(Long).o = function (other) { return this.v(other instanceof Long ? other : THROW_CCE()); }; protoOf(Long).w = function (other) { return add(this, other); }; protoOf(Long).x = function (other) { return divide(this, other); }; protoOf(Long).y = function () { return this.z().w(new Long(1, 0)); }; protoOf(Long).a1 = function (bitCount) { return shiftLeft(this, bitCount); }; protoOf(Long).b1 = function (bitCount) { return shiftRight(this, bitCount); }; protoOf(Long).c1 = function (other) { return new Long(this.t_1 & other.t_1, this.u_1 & other.u_1); }; protoOf(Long).d1 = function (other) { return new Long(this.t_1 | other.t_1, this.u_1 | other.u_1); }; protoOf(Long).e1 = function (other) { return new Long(this.t_1 ^ other.t_1, this.u_1 ^ other.u_1); }; protoOf(Long).z = function () { return new Long(~this.t_1, ~this.u_1); }; protoOf(Long).f1 = function () { return toByte(this.t_1); }; protoOf(Long).g1 = function () { return this.t_1; }; protoOf(Long).h1 = function () { return toNumber(this); }; protoOf(Long).toString = function () { return toStringImpl(this, 10); }; protoOf(Long).equals = function (other) { var tmp; if (other instanceof Long) { tmp = equalsLong(this, other); } else { tmp = false; } return tmp; }; protoOf(Long).hashCode = function () { return hashCode_0(this); }; protoOf(Long).valueOf = function () { return this.h1(); }; function implement(interfaces) { var maxSize = 1; var masks = []; var inductionVariable = 0; var last = interfaces.length; while (inductionVariable < last) { var i = interfaces[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; var currentSize = maxSize; var tmp0_elvis_lhs = i.prototype.$imask$; var imask = tmp0_elvis_lhs == null ? i.$imask$ : tmp0_elvis_lhs; if (!(imask == null)) { masks.push(imask); currentSize = imask.length; } var iid = i.$metadata$.iid; var tmp; if (iid == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.js.implement.<anonymous>' call tmp = bitMaskWith(iid); } var iidImask = tmp; if (!(iidImask == null)) { masks.push(iidImask); currentSize = Math.max(currentSize, iidImask.length); } if (currentSize > maxSize) { maxSize = currentSize; } } return compositeBitMask(maxSize, masks); } function bitMaskWith(activeBit) { var numberIndex = activeBit >> 5; var intArray = new Int32Array(numberIndex + 1 | 0); var positionInNumber = activeBit & 31; var numberWithSettledBit = 1 << positionInNumber; intArray[numberIndex] = intArray[numberIndex] | numberWithSettledBit; return intArray; } function compositeBitMask(capacity, masks) { var tmp = 0; var tmp_0 = new Int32Array(capacity); while (tmp < capacity) { var tmp_1 = tmp; var result = 0; var inductionVariable = 0; var last = masks.length; while (inductionVariable < last) { var mask = masks[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; if (tmp_1 < mask.length) { result = result | mask[tmp_1]; } } tmp_0[tmp_1] = result; tmp = tmp + 1 | 0; } return tmp_0; } function isBitSet(_this__u8e3s4, possibleActiveBit) { var numberIndex = possibleActiveBit >> 5; if (numberIndex > _this__u8e3s4.length) return false; var positionInNumber = possibleActiveBit & 31; var numberWithSettledBit = 1 << positionInNumber; return !((_this__u8e3s4[numberIndex] & numberWithSettledBit) === 0); } function fillArrayVal(array, initValue) { var inductionVariable = 0; var last = array.length - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; array[i] = initValue; } while (!(i === last)); return array; } function byteArrayIterator(array) { return new byteArrayIterator$1(array); } function booleanArray(size) { var tmp0 = 'BooleanArray'; // Inline function 'withType' call var array = fillArrayVal(Array(size), false); array.$type$ = tmp0; // Inline function 'kotlin.js.unsafeCast' call return array; } function longArray(size) { var tmp0 = 'LongArray'; // Inline function 'withType' call var array = fillArrayVal(Array(size), new Long(0, 0)); array.$type$ = tmp0; // Inline function 'kotlin.js.unsafeCast' call return array; } function longArrayOf(arr) { var tmp1 = 'LongArray'; // Inline function 'kotlin.js.asDynamic' call // Inline function 'withType' call var array = arr.slice(); array.$type$ = tmp1; // Inline function 'kotlin.js.unsafeCast' call return array; } function byteArrayIterator$1($array) { this.j1_1 = $array; ByteIterator.call(this); this.i1_1 = 0; } function get_buf() { _init_properties_bitUtils_kt__nfcg4k(); return buf; } var buf; function get_bufFloat64() { _init_properties_bitUtils_kt__nfcg4k(); return bufFloat64; } var bufFloat64; var bufFloat32; function get_bufInt32() { _init_properties_bitUtils_kt__nfcg4k(); return bufInt32; } var bufInt32; function get_lowIndex() { _init_properties_bitUtils_kt__nfcg4k(); return lowIndex; } var lowIndex; function get_highIndex() { _init_properties_bitUtils_kt__nfcg4k(); return highIndex; } var highIndex; function getNumberHashCode(obj) { _init_properties_bitUtils_kt__nfcg4k(); // Inline function 'kotlin.js.jsBitwiseOr' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call if ((obj | 0) === obj) { return numberToInt(obj); } get_bufFloat64()[0] = obj; return imul(get_bufInt32()[get_highIndex()], 31) + get_bufInt32()[get_lowIndex()] | 0; } var properties_initialized_bitUtils_kt_i2bo3e; function _init_properties_bitUtils_kt__nfcg4k() { if (!properties_initialized_bitUtils_kt_i2bo3e) { properties_initialized_bitUtils_kt_i2bo3e = true; buf = new ArrayBuffer(8); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call bufFloat64 = new Float64Array(get_buf()); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call bufFloat32 = new Float32Array(get_buf()); // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call bufInt32 = new Int32Array(get_buf()); // Inline function 'kotlin.run' call // Inline function 'kotlin.js.lowIndex.<anonymous>' call get_bufFloat64()[0] = -1.0; lowIndex = !(get_bufInt32()[0] === 0) ? 1 : 0; highIndex = 1 - get_lowIndex() | 0; } } function charSequenceGet(a, index) { var tmp; if (isString(a)) { // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.Char' call var code = a.charCodeAt(index); var tmp_0; // Inline function 'kotlin.code' call var this_0 = _Char___init__impl__6a9atx(0); if (code < Char__toInt_impl_vasixd(this_0)) { tmp_0 = true; } else { // Inline function 'kotlin.code' call var this_1 = _Char___init__impl__6a9atx(65535); tmp_0 = code > Char__toInt_impl_vasixd(this_1); } if (tmp_0) { throw IllegalArgumentException_init_$Create$_0('Invalid Char code: ' + code); } tmp = numberToChar(code); } else { tmp = a.b(index); } return tmp; } function isString(a) { return typeof a === 'string'; } function charSequenceLength(a) { var tmp; if (isString(a)) { // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.unsafeCast' call tmp = a.length; } else { tmp = a.a(); } return tmp; } function charSequenceSubSequence(a, startIndex, endIndex) { var tmp; if (isString(a)) { // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.unsafeCast' call tmp = a.substring(startIndex, endIndex); } else { tmp = a.c(startIndex, endIndex); } return tmp; } function contentEqualsInternal(_this__u8e3s4, other) { // Inline function 'kotlin.js.asDynamic' call var a = _this__u8e3s4; // Inline function 'kotlin.js.asDynamic' call var b = other; if (a === b) return true; if (a == null || b == null || !isArrayish(b) || a.length != b.length) return false; var inductionVariable = 0; var last = a.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (!equals(a[i], b[i])) { return false; } } while (inductionVariable < last); return true; } function contentHashCodeInternal(_this__u8e3s4) { // Inline function 'kotlin.js.asDynamic' call var a = _this__u8e3s4; if (a == null) return 0; var result = 1; var inductionVariable = 0; var last = a.length; if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; result = imul(result, 31) + hashCode(a[i]) | 0; } while (inductionVariable < last); return result; } function compareTo(a, b) { var tmp; switch (typeof a) { case 'number': var tmp_0; if (typeof b === 'number') { tmp_0 = doubleCompareTo(a, b); } else { if (b instanceof Long) { tmp_0 = doubleCompareTo(a, b.h1()); } else { tmp_0 = primitiveCompareTo(a, b); } } tmp = tmp_0; break; case 'string': case 'boolean': tmp = primitiveCompareTo(a, b); break; default: tmp = compareToDoNotIntrinsicify(a, b); break; } return tmp; } function doubleCompareTo(a, b) { var tmp; if (a < b) { tmp = -1; } else if (a > b) { tmp = 1; } else if (a === b) { var tmp_0; if (a !== 0) { tmp_0 = 0; } else { // Inline function 'kotlin.js.asDynamic' call var ia = 1 / a; var tmp_1; // Inline function 'kotlin.js.asDynamic' call if (ia === 1 / b) { tmp_1 = 0; } else { if (ia < 0) { tmp_1 = -1; } else { tmp_1 = 1; } } tmp_0 = tmp_1; } tmp = tmp_0; } else if (a !== a) { tmp = b !== b ? 0 : 1; } else { tmp = -1; } return tmp; } function primitiveCompareTo(a, b) { return a < b ? -1 : a > b ? 1 : 0; } function compareToDoNotIntrinsicify(a, b) { return a.o(b); } function identityHashCode(obj) { return getObjectHashCode(obj); } function getObjectHashCode(obj) { // Inline function 'kotlin.js.jsIn' call if (!('kotlinHashCodeValue$' in obj)) { var hash = calculateRandomHash(); var descriptor = new Object(); descriptor.value = hash; descriptor.enumerable = false; Object.defineProperty(obj, 'kotlinHashCodeValue$', descriptor); } // Inline function 'kotlin.js.unsafeCast' call return obj['kotlinHashCodeValue$']; } function calculateRandomHash() { // Inline function 'kotlin.js.jsBitwiseOr' call return Math.random() * 4.294967296E9 | 0; } function equals(obj1, obj2) { if (obj1 == null) { return obj2 == null; } if (obj2 == null) { return false; } if (typeof obj1 === 'object' && typeof obj1.equals === 'function') { return obj1.equals(obj2); } if (obj1 !== obj1) { return obj2 !== obj2; } if (typeof obj1 === 'number' && typeof obj2 === 'number') { var tmp; if (obj1 === obj2) { var tmp_0; if (obj1 !== 0) { tmp_0 = true; } else { // Inline function 'kotlin.js.asDynamic' call var tmp_1 = 1 / obj1; // Inline function 'kotlin.js.asDynamic' call tmp_0 = tmp_1 === 1 / obj2; } tmp = tmp_0; } else { tmp = false; } return tmp; } return obj1 === obj2; } function hashCode(obj) { if (obj == null) return 0; var typeOf = typeof obj; var tmp; switch (typeOf) { case 'object': tmp = 'function' === typeof obj.hashCode ? obj.hashCode() : getObjectHashCode(obj); break; case 'function': tmp = getObjectHashCode(obj); break; case 'number': tmp = getNumberHashCode(obj); break; case 'boolean': // Inline function 'kotlin.js.unsafeCast' call tmp = getBooleanHashCode(obj); break; case 'string': tmp = getStringHashCode(String(obj)); break; case 'bigint': tmp = getBigIntHashCode(obj); break; case 'symbol': tmp = getSymbolHashCode(obj); break; default: tmp = function () { throw new Error('Unexpected typeof `' + typeOf + '`'); }(); break; } return tmp; } function getBooleanHashCode(value) { return value ? 1231 : 1237; } function getStringHashCode(str) { var hash = 0; var length = str.length; var inductionVariable = 0; var last = length - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.js.asDynamic' call var code = str.charCodeAt(i); hash = imul(hash, 31) + code | 0; } while (!(i === last)); return hash; } function getBigIntHashCode(value) { var shiftNumber = BigInt(32); var MASK = BigInt(4.294967295E9); var bigNumber = value < 0 ? -value : value; var hashCode = 0; var signum = value < 0 ? -1 : 1; while (bigNumber != 0) { // Inline function 'kotlin.js.unsafeCast' call var chunk = Number(bigNumber & MASK); hashCode = imul(31, hashCode) + chunk | 0; bigNumber = bigNumber >> shiftNumber; } return imul(hashCode, signum); } function getSymbolHashCode(value) { var hashCodeMap = symbolIsSharable(value) ? getSymbolMap() : getSymbolWeakMap(); var cachedHashCode = hashCodeMap.get(value); if (cachedHashCode !== VOID) return cachedHashCode; var hash = calculateRandomHash(); hashCodeMap.set(value, hash); return hash; } function symbolIsSharable(symbol) { return Symbol.keyFor(symbol) != VOID; } function getSymbolMap() { if (symbolMap === VOID) { symbolMap = new Map(); } return symbolMap; } function getSymbolWeakMap() { if (symbolWeakMap === VOID) { symbolWeakMap = new WeakMap(); } return symbolWeakMap; } var symbolMap; var symbolWeakMap; function defineProp(obj, name, getter, setter) { return Object.defineProperty(obj, name, {configurable: true, get: getter, set: setter}); } function objectCreate(proto) { proto = proto === VOID ? null : proto; return Object.create(proto); } function toString_0(o) { var tmp; if (o == null) { tmp = 'null'; } else if (isArrayish(o)) { tmp = '[...]'; } else if (!(typeof o.toString === 'function')) { tmp = anyToString(o); } else { // Inline function 'kotlin.js.unsafeCast' call tmp = o.toString(); } return tmp; } function anyToString(o) { return Object.prototype.toString.call(o); } function captureStack(instance, constructorFunction) { if (Error.captureStackTrace != null) { Error.captureStackTrace(instance, constructorFunction); } else { // Inline function 'kotlin.js.asDynamic' call instance.stack = (new Error()).stack; } } function protoOf(constructor) { return constructor.prototype; } function extendThrowable(this_, message, cause) { Error.call(this_); setPropertiesToThrowableInstance(this_, message, cause); } function setPropertiesToThrowableInstance(this_, message, cause) { var errorInfo = calculateErrorInfo(Object.getPrototypeOf(this_)); if ((errorInfo & 1) === 0) { var tmp; if (message == null) { var tmp_0; if (!(message === null)) { var tmp1_elvis_lhs = cause == null ? null : cause.toString(); tmp_0 = tmp1_elvis_lhs == null ? VOID : tmp1_elvis_lhs; } else { tmp_0 = VOID; } tmp = tmp_0; } else { tmp = message; } this_.message = tmp; } if ((errorInfo & 2) === 0) { this_.cause = cause; } this_.name = Object.getPrototypeOf(this_).constructor.name; } function ensureNotNull(v) { var tmp; if (v == null) { THROW_NPE(); } else { tmp = v; } return tmp; } function THROW_NPE() { throw NullPointerException_init_$Create$(); } function THROW_CCE() { throw ClassCastException_init_$Create$(); } function THROW_IAE(msg) { throw IllegalArgumentException_init_$Create$_0(msg); } function get_ZERO() { _init_properties_longJs_kt__elc2w5(); return ZERO; } var ZERO; function get_ONE() { _init_properties_longJs_kt__elc2w5(); return ONE; } var ONE; function get_NEG_ONE() { _init_properties_longJs_kt__elc2w5(); return NEG_ONE; } var NEG_ONE; function get_MAX_VALUE() { _init_properties_longJs_kt__elc2w5(); return MAX_VALUE; } var MAX_VALUE; function get_MIN_VALUE() { _init_properties_longJs_kt__elc2w5(); return MIN_VALUE; } var MIN_VALUE; function get_TWO_PWR_24_() { _init_properties_longJs_kt__elc2w5(); return TWO_PWR_24_; } var TWO_PWR_24_; function compare(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); if (equalsLong(_this__u8e3s4, other)) { return 0; } var thisNeg = isNegative(_this__u8e3s4); var otherNeg = isNegative(other); return thisNeg && !otherNeg ? -1 : !thisNeg && otherNeg ? 1 : isNegative(subtract(_this__u8e3s4, other)) ? -1 : 1; } function add(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); var a48 = _this__u8e3s4.u_1 >>> 16 | 0; var a32 = _this__u8e3s4.u_1 & 65535; var a16 = _this__u8e3s4.t_1 >>> 16 | 0; var a00 = _this__u8e3s4.t_1 & 65535; var b48 = other.u_1 >>> 16 | 0; var b32 = other.u_1 & 65535; var b16 = other.t_1 >>> 16 | 0; var b00 = other.t_1 & 65535; var c48 = 0; var c32 = 0; var c16 = 0; var c00 = 0; c00 = c00 + (a00 + b00 | 0) | 0; c16 = c16 + (c00 >>> 16 | 0) | 0; c00 = c00 & 65535; c16 = c16 + (a16 + b16 | 0) | 0; c32 = c32 + (c16 >>> 16 | 0) | 0; c16 = c16 & 65535; c32 = c32 + (a32 + b32 | 0) | 0; c48 = c48 + (c32 >>> 16 | 0) | 0; c32 = c32 & 65535; c48 = c48 + (a48 + b48 | 0) | 0; c48 = c48 & 65535; return new Long(c16 << 16 | c00, c48 << 16 | c32); } function subtract(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); return add(_this__u8e3s4, other.y()); } function multiply(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); if (isZero(_this__u8e3s4)) { return get_ZERO(); } else if (isZero(other)) { return get_ZERO(); } if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) { return isOdd(other) ? get_MIN_VALUE() : get_ZERO(); } else if (equalsLong(other, get_MIN_VALUE())) { return isOdd(_this__u8e3s4) ? get_MIN_VALUE() : get_ZERO(); } if (isNegative(_this__u8e3s4)) { var tmp; if (isNegative(other)) { tmp = multiply(negate(_this__u8e3s4), negate(other)); } else { tmp = negate(multiply(negate(_this__u8e3s4), other)); } return tmp; } else if (isNegative(other)) { return negate(multiply(_this__u8e3s4, negate(other))); } if (lessThan(_this__u8e3s4, get_TWO_PWR_24_()) && lessThan(other, get_TWO_PWR_24_())) { return fromNumber(toNumber(_this__u8e3s4) * toNumber(other)); } var a48 = _this__u8e3s4.u_1 >>> 16 | 0; var a32 = _this__u8e3s4.u_1 & 65535; var a16 = _this__u8e3s4.t_1 >>> 16 | 0; var a00 = _this__u8e3s4.t_1 & 65535; var b48 = other.u_1 >>> 16 | 0; var b32 = other.u_1 & 65535; var b16 = other.t_1 >>> 16 | 0; var b00 = other.t_1 & 65535; var c48 = 0; var c32 = 0; var c16 = 0; var c00 = 0; c00 = c00 + imul(a00, b00) | 0; c16 = c16 + (c00 >>> 16 | 0) | 0; c00 = c00 & 65535; c16 = c16 + imul(a16, b00) | 0; c32 = c32 + (c16 >>> 16 | 0) | 0; c16 = c16 & 65535; c16 = c16 + imul(a00, b16) | 0; c32 = c32 + (c16 >>> 16 | 0) | 0; c16 = c16 & 65535; c32 = c32 + imul(a32, b00) | 0; c48 = c48 + (c32 >>> 16 | 0) | 0; c32 = c32 & 65535; c32 = c32 + imul(a16, b16) | 0; c48 = c48 + (c32 >>> 16 | 0) | 0; c32 = c32 & 65535; c32 = c32 + imul(a00, b32) | 0; c48 = c48 + (c32 >>> 16 | 0) | 0; c32 = c32 & 65535; c48 = c48 + (((imul(a48, b00) + imul(a32, b16) | 0) + imul(a16, b32) | 0) + imul(a00, b48) | 0) | 0; c48 = c48 & 65535; return new Long(c16 << 16 | c00, c48 << 16 | c32); } function divide(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); if (isZero(other)) { throw Exception_init_$Create$_0('division by zero'); } else if (isZero(_this__u8e3s4)) { return get_ZERO(); } if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) { if (equalsLong(other, get_ONE()) || equalsLong(other, get_NEG_ONE())) { return get_MIN_VALUE(); } else if (equalsLong(other, get_MIN_VALUE())) { return get_ONE(); } else { var halfThis = shiftRight(_this__u8e3s4, 1); var approx = shiftLeft(halfThis.x(other), 1); if (equalsLong(approx, get_ZERO())) { return isNegative(other) ? get_ONE() : get_NEG_ONE(); } else { var rem = subtract(_this__u8e3s4, multiply(other, approx)); return add(approx, rem.x(other)); } } } else if (equalsLong(other, get_MIN_VALUE())) { return get_ZERO(); } if (isNegative(_this__u8e3s4)) { var tmp; if (isNegative(other)) { tmp = negate(_this__u8e3s4).x(negate(other)); } else { tmp = negate(negate(_this__u8e3s4).x(other)); } return tmp; } else if (isNegative(other)) { return negate(_this__u8e3s4.x(negate(other))); } var res = get_ZERO(); var rem_0 = _this__u8e3s4; while (greaterThanOrEqual(rem_0, other)) { var approxDouble = toNumber(rem_0) / toNumber(other); var approx2 = Math.max(1.0, Math.floor(approxDouble)); var log2 = Math.ceil(Math.log(approx2) / Math.LN2); var delta = log2 <= 48 ? 1.0 : Math.pow(2.0, log2 - 48); var approxRes = fromNumber(approx2); var approxRem = multiply(approxRes, other); while (isNegative(approxRem) || greaterThan(approxRem, rem_0)) { approx2 = approx2 - delta; approxRes = fromNumber(approx2); approxRem = multiply(approxRes, other); } if (isZero(approxRes)) { approxRes = get_ONE(); } res = add(res, approxRes); rem_0 = subtract(rem_0, approxRem); } return res; } function shiftLeft(_this__u8e3s4, numBits) { _init_properties_longJs_kt__elc2w5(); var numBits_0 = numBits & 63; if (numBits_0 === 0) { return _this__u8e3s4; } else { if (numBits_0 < 32) { return new Long(_this__u8e3s4.t_1 << numBits_0, _this__u8e3s4.u_1 << numBits_0 | (_this__u8e3s4.t_1 >>> (32 - numBits_0 | 0) | 0)); } else { return new Long(0, _this__u8e3s4.t_1 << (numBits_0 - 32 | 0)); } } } function shiftRight(_this__u8e3s4, numBits) { _init_properties_longJs_kt__elc2w5(); var numBits_0 = numBits & 63; if (numBits_0 === 0) { return _this__u8e3s4; } else { if (numBits_0 < 32) { return new Long(_this__u8e3s4.t_1 >>> numBits_0 | 0 | _this__u8e3s4.u_1 << (32 - numBits_0 | 0), _this__u8e3s4.u_1 >> numBits_0); } else { return new Long(_this__u8e3s4.u_1 >> (numBits_0 - 32 | 0), _this__u8e3s4.u_1 >= 0 ? 0 : -1); } } } function toNumber(_this__u8e3s4) { _init_properties_longJs_kt__elc2w5(); return _this__u8e3s4.u_1 * 4.294967296E9 + getLowBitsUnsigned(_this__u8e3s4); } function toStringImpl(_this__u8e3s4, radix) { _init_properties_longJs_kt__elc2w5(); if (radix < 2 || 36 < radix) { throw Exception_init_$Create$_0('radix out of range: ' + radix); } if (isZero(_this__u8e3s4)) { return '0'; } if (isNegative(_this__u8e3s4)) { if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) { var radixLong = fromInt(radix); var div = _this__u8e3s4.x(radixLong); var rem = subtract(multiply(div, radixLong), _this__u8e3s4).g1(); var tmp = toStringImpl(div, radix); // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.unsafeCast' call return tmp + rem.toString(radix); } else { return '-' + toStringImpl(negate(_this__u8e3s4), radix); } } var digitsPerTime = radix === 2 ? 31 : radix <= 10 ? 9 : radix <= 21 ? 7 : radix <= 35 ? 6 : 5; var radixToPower = fromNumber(Math.pow(radix, digitsPerTime)); var rem_0 = _this__u8e3s4; var result = ''; while (true) { var remDiv = rem_0.x(radixToPower); var intval = subtract(rem_0, multiply(remDiv, radixToPower)).g1(); // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.unsafeCast' call var digits = intval.toString(radix); rem_0 = remDiv; if (isZero(rem_0)) { return digits + result; } else { while (digits.length < digitsPerTime) { digits = '0' + digits; } result = digits + result; } } } function equalsLong(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); return _this__u8e3s4.u_1 === other.u_1 && _this__u8e3s4.t_1 === other.t_1; } function hashCode_0(l) { _init_properties_longJs_kt__elc2w5(); return l.t_1 ^ l.u_1; } function fromInt(value) { _init_properties_longJs_kt__elc2w5(); return new Long(value, value < 0 ? -1 : 0); } function isNegative(_this__u8e3s4) { _init_properties_longJs_kt__elc2w5(); return _this__u8e3s4.u_1 < 0; } function isZero(_this__u8e3s4) { _init_properties_longJs_kt__elc2w5(); return _this__u8e3s4.u_1 === 0 && _this__u8e3s4.t_1 === 0; } function isOdd(_this__u8e3s4) { _init_properties_longJs_kt__elc2w5(); return (_this__u8e3s4.t_1 & 1) === 1; } function negate(_this__u8e3s4) { _init_properties_longJs_kt__elc2w5(); return _this__u8e3s4.y(); } function lessThan(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); return compare(_this__u8e3s4, other) < 0; } function fromNumber(value) { _init_properties_longJs_kt__elc2w5(); if (isNaN_0(value)) { return get_ZERO(); } else if (value <= -9.223372036854776E18) { return get_MIN_VALUE(); } else if (value + 1 >= 9.223372036854776E18) { return get_MAX_VALUE(); } else if (value < 0) { return negate(fromNumber(-value)); } else { var twoPwr32 = 4.294967296E9; // Inline function 'kotlin.js.jsBitwiseOr' call var tmp = value % twoPwr32 | 0; // Inline function 'kotlin.js.jsBitwiseOr' call var tmp$ret$1 = value / twoPwr32 | 0; return new Long(tmp, tmp$ret$1); } } function greaterThan(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); return compare(_this__u8e3s4, other) > 0; } function greaterThanOrEqual(_this__u8e3s4, other) { _init_properties_longJs_kt__elc2w5(); return compare(_this__u8e3s4, other) >= 0; } function getLowBitsUnsigned(_this__u8e3s4) { _init_properties_longJs_kt__elc2w5(); return _this__u8e3s4.t_1 >= 0 ? _this__u8e3s4.t_1 : 4.294967296E9 + _this__u8e3s4.t_1; } var properties_initialized_longJs_kt_4syf89; function _init_properties_longJs_kt__elc2w5() { if (!properties_initialized_longJs_kt_4syf89) { properties_initialized_longJs_kt_4syf89 = true; ZERO = fromInt(0); ONE = fromInt(1); NEG_ONE = fromInt(-1); MAX_VALUE = new Long(-1, 2147483647); MIN_VALUE = new Long(0, -2147483648); TWO_PWR_24_ = fromInt(16777216); } } function createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) { var undef = VOID; var iid = kind === 'interface' ? generateInterfaceId() : VOID; return {kind: kind, simpleName: name, associatedObjectKey: associatedObjectKey, associatedObjects: associatedObjects, suspendArity: suspendArity, $kClass$: undef, defaultConstructor: defaultConstructor, iid: iid}; } function generateInterfaceId() { if (globalInterfaceId === VOID) { globalInterfaceId = 0; } // Inline function 'kotlin.js.unsafeCast' call globalInterfaceId = globalInterfaceId + 1 | 0; // Inline function 'kotlin.js.unsafeCast' call return globalInterfaceId; } var globalInterfaceId; function initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) { if (!(parent == null)) { ctor.prototype = Object.create(parent.prototype); ctor.prototype.constructor = ctor; } var metadata = createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity); ctor.$metadata$ = metadata; if (!(interfaces == null)) { var receiver = !equals(metadata.iid, VOID) ? ctor : ctor.prototype; receiver.$imask$ = implement(interfaces); } } function initMetadataForClass(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) { var kind = 'class'; initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects); } function initMetadataForObject(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) { var kind = 'object'; initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects); } function initMetadataForInterface(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) { var kind = 'interface'; initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects); } function initMetadataForLambda(ctor, parent, interfaces, suspendArity) { initMetadataForClass(ctor, 'Lambda', VOID, parent, interfaces, suspendArity, VOID, VOID); } function initMetadataForCoroutine(ctor, parent, interfaces, suspendArity) { initMetadataForClass(ctor, 'Coroutine', VOID, parent, interfaces, suspendArity, VOID, VOID); } function initMetadataForFunctionReference(ctor, parent, interfaces, suspendArity) { initMetadataForClass(ctor, 'FunctionReference', VOID, parent, interfaces, suspendArity, VOID, VOID); } function initMetadataForCompanion(ctor, parent, interfaces, suspendArity) { initMetadataForObject(ctor, 'Companion', VOID, parent, interfaces, suspendArity, VOID, VOID); } function numberToByte(a) { return toByte(numberToInt(a)); } function toByte(a) { // Inline function 'kotlin.js.unsafeCast' call return a << 24 >> 24; } function numberToInt(a) { var tmp; if (a instanceof Long) { tmp = a.g1(); } else { tmp = doubleToInt(a); } return tmp; } function doubleToInt(a) { var tmp; if (a > 2147483647) { tmp = 2147483647; } else if (a < -2147483648) { tmp = -2147483648; } else { // Inline function 'kotlin.js.jsBitwiseOr' call tmp = a | 0; } return tmp; } function toShort(a) { // Inline function 'kotlin.js.unsafeCast' call return a << 16 >> 16; } function numberToChar(a) { // Inline function 'kotlin.toUShort' call var this_0 = numberToInt(a); var tmp$ret$0 = _UShort___init__impl__jigrne(toShort(this_0)); return _Char___init__impl__6a9atx_0(tmp$ret$0); } function toLong(a) { return fromInt(a); } function numberRangeToNumber(start, endInclusive) { return new IntRange(start, endInclusive); } function get_propertyRefClassMetadataCache() { _init_properties_reflectRuntime_kt__5r4uu3(); return propertyRefClassMetadataCache; } var propertyRefClassMetadataCache; function metadataObject() { _init_properties_reflectRuntime_kt__5r4uu3(); return createMetadata('class', VOID, VOID, VOID, VOID, VOID); } function getPropertyCallableRef(name, paramCount, superType, getter, setter) { _init_properties_reflectRuntime_kt__5r4uu3(); getter.get = getter; getter.set = setter; getter.callableName = name; // Inline function 'kotlin.js.unsafeCast' call return getPropertyRefClass(getter, getKPropMetadata(paramCount, setter), getInterfaceMaskFor(getter, superType)); } function getPropertyRefClass(obj, metadata, imask) { _init_properties_reflectRuntime_kt__5r4uu3(); obj.$metadata$ = metadata; obj.constructor = obj; obj.$imask$ = imask; return obj; } function getKPropMetadata(paramCount, setter) { _init_properties_reflectRuntime_kt__5r4uu3(); return get_propertyRefClassMetadataCache()[paramCount][setter == null ? 0 : 1]; } function getInterfaceMaskFor(obj, superType) { _init_properties_reflectRuntime_kt__5r4uu3(); var tmp0_elvis_lhs = obj.$imask$; var tmp; if (tmp0_elvis_lhs == null) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = [superType]; tmp = implement(tmp$ret$2); } else { tmp = tmp0_elvis_lhs; } return tmp; } var properties_initialized_reflectRuntime_kt_inkhwd; function _init_properties_reflectRuntime_kt__5r4uu3() { if (!properties_initialized_reflectRuntime_kt_inkhwd) { properties_initialized_reflectRuntime_kt_inkhwd = true; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = [metadataObject(), metadataObject()]; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_0 = [metadataObject(), metadataObject()]; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call propertyRefClassMetadataCache = [tmp, tmp_0, [metadataObject(), metadataObject()]]; } } function isArrayish(o) { return isJsArray(o) || isView(o); } function isJsArray(obj) { // Inline function 'kotlin.js.unsafeCast' call return Array.isArray(obj); } function isInterface(obj, iface) { return isInterfaceImpl(obj, iface.$metadata$.iid); } function isInterfaceImpl(obj, iface) { // Inline function 'kotlin.js.unsafeCast' call var tmp0_elvis_lhs = obj.$imask$; var tmp; if (tmp0_elvis_lhs == null) { return false; } else { tmp = tmp0_elvis_lhs; } var mask = tmp; return isBitSet(mask, iface); } function isArray(obj) { var tmp; if (isJsArray(obj)) { // Inline function 'kotlin.js.asDynamic' call tmp = !obj.$type$; } else { tmp = false; } return tmp; } function isNumber(a) { var tmp; if (typeof a === 'number') { tmp = true; } else { tmp = a instanceof Long; } return tmp; } function isCharSequence(value) { return typeof value === 'string' || isInterface(value, CharSequence); } function isBooleanArray(a) { return isJsArray(a) && a.$type$ === 'BooleanArray'; } function isByteArray(a) { // Inline function 'kotlin.js.jsInstanceOf' call return a instanceof Int8Array; } function isShortArray(a) { // Inline function 'kotlin.js.jsInstanceOf' call return a instanceof Int16Array; } function isCharArray(a) { var tmp; // Inline function 'kotlin.js.jsInstanceOf' call if (a instanceof Uint16Array) { tmp = a.$type$ === 'CharArray'; } else { tmp = false; } return tmp; } function isIntArray(a) { // Inline function 'kotlin.js.jsInstanceOf' call return a instanceof Int32Array; } function isFloatArray(a) { // Inline function 'kotlin.js.jsInstanceOf' call return a instanceof Float32Array; } function isLongArray(a) { return isJsArray(a) && a.$type$ === 'LongArray'; } function isDoubleArray(a) { // Inline function 'kotlin.js.jsInstanceOf' call return a instanceof Float64Array; } function calculateErrorInfo(proto) { var tmp0_safe_receiver = proto.constructor; var metadata = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.$metadata$; var tmp2_safe_receiver = metadata == null ? null : metadata.errorInfo; if (tmp2_safe_receiver == null) null; else { // Inline function 'kotlin.let' call return tmp2_safe_receiver; } var result = 0; if (hasProp(proto, 'message')) result = result | 1; if (hasProp(proto, 'cause')) result = result | 2; if (!(result === 3)) { var parentProto = getPrototypeOf(proto); if (parentProto != Error.prototype) { result = result | calculateErrorInfo(parentProto); } } if (!(metadata == null)) { metadata.errorInfo = result; } return result; } function hasProp(proto, propName) { return proto.hasOwnProperty(propName); } function getPrototypeOf(obj) { return Object.getPrototypeOf(obj); } function get_VOID() { _init_properties_void_kt__3zg9as(); return VOID; } var VOID; var properties_initialized_void_kt_e4ret2; function _init_properties_void_kt__3zg9as() { if (!properties_initialized_void_kt_e4ret2) { properties_initialized_void_kt_e4ret2 = true; VOID = void 0; } } function fill(_this__u8e3s4, element, fromIndex, toIndex) { fromIndex = fromIndex === VOID ? 0 : fromIndex; toIndex = toIndex === VOID ? _this__u8e3s4.length : toIndex; Companion_instance_1.l1(fromIndex, toIndex, _this__u8e3s4.length); // Inline function 'kotlin.js.nativeFill' call // Inline function 'kotlin.js.asDynamic' call _this__u8e3s4.fill(element, fromIndex, toIndex); } function copyOf(_this__u8e3s4, newSize) { // Inline function 'kotlin.require' call if (!(newSize >= 0)) { // Inline function 'kotlin.collections.copyOf.<anonymous>' call var message = 'Invalid new array size: ' + newSize + '.'; throw IllegalArgumentException_init_$Create$_0(toString_0(message)); } return fillFrom(_this__u8e3s4, new Int8Array(newSize)); } function fill_0(_this__u8e3s4, element, fromIndex, toIndex) { fromIndex = fromIndex === VOID ? 0 : fromIndex; toIndex = toIndex === VOID ? _this__u8e3s4.length : toIndex; Companion_instance_1.l1(fromIndex, toIndex, _this__u8e3s4.length); // Inline function 'kotlin.js.nativeFill' call // Inline function 'kotlin.js.asDynamic' call _this__u8e3s4.fill(element, fromIndex, toIndex); } function copyOfRange(_this__u8e3s4, fromIndex, toIndex) { Companion_instance_1.l1(fromIndex, toIndex, _this__u8e3s4.length); // Inline function 'kotlin.js.asDynamic' call return _this__u8e3s4.slice(fromIndex, toIndex); } function contentEquals(_this__u8e3s4, other) { return contentEqualsInternal(_this__u8e3s4, other); } function contentHashCode(_this__u8e3s4) { return contentHashCodeInternal(_this__u8e3s4); } function copyOfRange_0(_this__u8e3s4, fromIndex, toIndex) { Companion_instance_1.l1(fromIndex, toIndex, _this__u8e3s4.length); // Inline function 'kotlin.js.asDynamic' call return _this__u8e3s4.slice(fromIndex, toIndex); } function isWhitespaceImpl(_this__u8e3s4) { // Inline function 'kotlin.code' call var ch = Char__toInt_impl_vasixd(_this__u8e3s4); return (9 <= ch ? ch <= 13 : false) || (28 <= ch ? ch <= 32 : false) || ch === 160 || (ch > 4096 && (ch === 5760 || (8192 <= ch ? ch <= 8202 : false) || ch === 8232 || ch === 8233 || ch === 8239 || ch === 8287 || ch === 12288)); } function isNaN_0(_this__u8e3s4) { return !(_this__u8e3s4 === _this__u8e3s4); } function rotateLeft(_this__u8e3s4, bitCount) { if (!((bitCount & 31) === 0)) { var low = _this__u8e3s4.t_1; var high = _this__u8e3s4.u_1; var newLow = low << bitCount | (high >>> (-bitCount | 0) | 0); var newHigh = high << bitCount | (low >>> (-bitCount | 0) | 0); return (bitCount & 32) === 0 ? new Long(newLow, newHigh) : new Long(newHigh, newLow); } else { return (bitCount & 32) === 0 ? _this__u8e3s4 : new Long(_this__u8e3s4.u_1, _this__u8e3s4.t_1); } } function Unit() { } protoOf(Unit).toString = function () { return 'kotlin.Unit'; }; var Unit_instance; function Unit_getInstance() { return Unit_instance; } function arrayCopy(source, destination, destinationOffset, startIndex, endIndex) { Companion_instance_1.l1(startIndex, endIndex, source.length); var rangeSize = endIndex - startIndex | 0; Companion_instance_1.l1(destinationOffset, destinationOffset + rangeSize | 0, destination.length); if (isView(destination) && isView(source)) { // Inline function 'kotlin.js.asDynami