@solibo/solibo-sdk 1.0.23-SNAPSHOT
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.js +15 -0
- package/KmLogging-logging.js.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js +15 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/KotlinBigInteger-bignum.js +15 -0
- package/KotlinBigInteger-bignum.js.map +1 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.js +15 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.js.map +1 -0
- package/MultiplatformSettings-multiplatform-settings.js +15 -0
- package/MultiplatformSettings-multiplatform-settings.js.map +1 -0
- package/Stately-stately-concurrency.js +15 -0
- package/Stately-stately-concurrency.js.map +1 -0
- package/Stately-stately-strict.js +19 -0
- package/Stately-stately-strict.js.map +1 -0
- package/cryptography-kotlin-cryptography-bigint.js +15 -0
- package/cryptography-kotlin-cryptography-bigint.js.map +1 -0
- package/cryptography-kotlin-cryptography-core.js +213 -0
- package/cryptography-kotlin-cryptography-core.js.map +1 -0
- package/cryptography-kotlin-cryptography-provider-base.js +15 -0
- package/cryptography-kotlin-cryptography-provider-base.js.map +1 -0
- package/cryptography-kotlin-cryptography-provider-optimal.js +15 -0
- package/cryptography-kotlin-cryptography-provider-optimal.js.map +1 -0
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +84 -0
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +1 -0
- package/cryptography-kotlin-cryptography-random.js +70 -0
- package/cryptography-kotlin-cryptography-random.js.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +15 -0
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-asn1.js +15 -0
- package/cryptography-kotlin-cryptography-serialization-asn1.js.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -0
- package/cryptography-kotlin-cryptography-serialization-pem.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +3118 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-atomicfu.js +83 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +15 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +15 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/ktor-ktor-client-auth.js +15 -0
- package/ktor-ktor-client-auth.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js +15 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +117 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-logging.js +15 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-client-mock.js +15 -0
- package/ktor-ktor-client-mock.js.map +1 -0
- package/ktor-ktor-events.js +15 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http-cio.js +15 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +15 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +15 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +15 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +15 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +15 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-sse.js +15 -0
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +19 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +15 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/package.json +10 -0
- package/solibo-sdk-sdk-home-api.js +15 -0
- package/solibo-sdk-sdk-home-api.js.map +1 -0
- package/solibo-sdk-sdk.d.ts +11 -0
- package/solibo-sdk-sdk.js +26 -0
- package/solibo-sdk-sdk.js.map +1 -0
|
@@ -0,0 +1,3118 @@
|
|
|
1
|
+
//region block: polyfills
|
|
2
|
+
(function () {
|
|
3
|
+
if (typeof globalThis === 'object')
|
|
4
|
+
return;
|
|
5
|
+
Object.defineProperty(Object.prototype, '__magic__', {get: function () {
|
|
6
|
+
return this;
|
|
7
|
+
}, configurable: true});
|
|
8
|
+
__magic__.globalThis = __magic__;
|
|
9
|
+
delete Object.prototype.__magic__;
|
|
10
|
+
}());
|
|
11
|
+
if (typeof Math.imul === 'undefined') {
|
|
12
|
+
Math.imul = function imul(a, b) {
|
|
13
|
+
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if (typeof ArrayBuffer.isView === 'undefined') {
|
|
17
|
+
ArrayBuffer.isView = function (a) {
|
|
18
|
+
return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (typeof Array.prototype.fill === 'undefined') {
|
|
22
|
+
// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill#Polyfill
|
|
23
|
+
Object.defineProperty(Array.prototype, 'fill', {value: function (value) {
|
|
24
|
+
// Steps 1-2.
|
|
25
|
+
if (this == null) {
|
|
26
|
+
throw new TypeError('this is null or not defined');
|
|
27
|
+
}
|
|
28
|
+
var O = Object(this); // Steps 3-5.
|
|
29
|
+
var len = O.length >>> 0; // Steps 6-7.
|
|
30
|
+
var start = arguments[1];
|
|
31
|
+
var relativeStart = start >> 0; // Step 8.
|
|
32
|
+
var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 9-10.
|
|
33
|
+
var end = arguments[2];
|
|
34
|
+
var relativeEnd = end === undefined ? len : end >> 0; // Step 11.
|
|
35
|
+
var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step 12.
|
|
36
|
+
while (k < finalValue) {
|
|
37
|
+
O[k] = value;
|
|
38
|
+
k++;
|
|
39
|
+
}
|
|
40
|
+
; // Step 13.
|
|
41
|
+
return O;
|
|
42
|
+
}});
|
|
43
|
+
}
|
|
44
|
+
[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
|
|
45
|
+
if (typeof TypedArray.prototype.fill === 'undefined') {
|
|
46
|
+
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
if (typeof Math.clz32 === 'undefined') {
|
|
50
|
+
Math.clz32 = function (log, LN2) {
|
|
51
|
+
return function (x) {
|
|
52
|
+
var asUint = x >>> 0;
|
|
53
|
+
if (asUint === 0) {
|
|
54
|
+
return 32;
|
|
55
|
+
}
|
|
56
|
+
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
57
|
+
};
|
|
58
|
+
}(Math.log, Math.LN2);
|
|
59
|
+
}
|
|
60
|
+
//endregion
|
|
61
|
+
(function (factory) {
|
|
62
|
+
if (typeof define === 'function' && define.amd)
|
|
63
|
+
define(['exports'], factory);
|
|
64
|
+
else if (typeof exports === 'object')
|
|
65
|
+
factory(module.exports);
|
|
66
|
+
else
|
|
67
|
+
globalThis['kotlin-kotlin-stdlib'] = factory(typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined' ? {} : globalThis['kotlin-kotlin-stdlib']);
|
|
68
|
+
}(function (_) {
|
|
69
|
+
'use strict';
|
|
70
|
+
//region block: imports
|
|
71
|
+
var imul = Math.imul;
|
|
72
|
+
var isView = ArrayBuffer.isView;
|
|
73
|
+
var clz32 = Math.clz32;
|
|
74
|
+
//endregion
|
|
75
|
+
//region block: pre-declaration
|
|
76
|
+
initMetadataForInterface(CharSequence, 'CharSequence');
|
|
77
|
+
initMetadataForInterface(Comparable, 'Comparable');
|
|
78
|
+
initMetadataForClass(Number_0, 'Number');
|
|
79
|
+
initMetadataForClass(Char, 'Char', VOID, VOID, [Comparable]);
|
|
80
|
+
initMetadataForInterface(Collection, 'Collection');
|
|
81
|
+
initMetadataForInterface(KtList, 'List', VOID, VOID, [Collection]);
|
|
82
|
+
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
83
|
+
initMetadataForInterface(Entry, 'Entry');
|
|
84
|
+
initMetadataForInterface(KtMap, 'Map');
|
|
85
|
+
initMetadataForCompanion(Companion);
|
|
86
|
+
initMetadataForClass(Long, 'Long', VOID, Number_0, [Number_0, Comparable]);
|
|
87
|
+
initMetadataForInterface(FunctionAdapter, 'FunctionAdapter');
|
|
88
|
+
initMetadataForInterface(Comparator, 'Comparator');
|
|
89
|
+
initMetadataForObject(Unit, 'Unit');
|
|
90
|
+
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
91
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection]);
|
|
92
|
+
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
93
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtList, Collection]);
|
|
94
|
+
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
95
|
+
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMap]);
|
|
96
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtSet, Collection]);
|
|
97
|
+
initMetadataForCompanion(Companion_0);
|
|
98
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtList, Collection]);
|
|
99
|
+
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
|
|
100
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtSet, Collection, AbstractMutableSet]);
|
|
101
|
+
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
102
|
+
initMetadataForCompanion(Companion_1);
|
|
103
|
+
initMetadataForClass(Itr, 'Itr');
|
|
104
|
+
initMetadataForClass(EntriesItr, 'EntriesItr', VOID, Itr);
|
|
105
|
+
initMetadataForClass(EntryRef, 'EntryRef', VOID, VOID, [Entry]);
|
|
106
|
+
function containsAllEntries(m) {
|
|
107
|
+
var tmp$ret$0;
|
|
108
|
+
$l$block_0: {
|
|
109
|
+
// Inline function 'kotlin.collections.all' call
|
|
110
|
+
var tmp;
|
|
111
|
+
if (isInterface(m, Collection)) {
|
|
112
|
+
tmp = m.h();
|
|
113
|
+
} else {
|
|
114
|
+
tmp = false;
|
|
115
|
+
}
|
|
116
|
+
if (tmp) {
|
|
117
|
+
tmp$ret$0 = true;
|
|
118
|
+
break $l$block_0;
|
|
119
|
+
}
|
|
120
|
+
var _iterator__ex2g4s = m.c();
|
|
121
|
+
while (_iterator__ex2g4s.d()) {
|
|
122
|
+
var element = _iterator__ex2g4s.e();
|
|
123
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
124
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
125
|
+
var entry = element;
|
|
126
|
+
var tmp_0;
|
|
127
|
+
if (!(entry == null) ? isInterface(entry, Entry) : false) {
|
|
128
|
+
tmp_0 = this.x3(entry);
|
|
129
|
+
} else {
|
|
130
|
+
tmp_0 = false;
|
|
131
|
+
}
|
|
132
|
+
if (!tmp_0) {
|
|
133
|
+
tmp$ret$0 = false;
|
|
134
|
+
break $l$block_0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
tmp$ret$0 = true;
|
|
138
|
+
}
|
|
139
|
+
return tmp$ret$0;
|
|
140
|
+
}
|
|
141
|
+
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
142
|
+
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
|
|
143
|
+
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMap]);
|
|
144
|
+
initMetadataForClass(Exception, 'Exception', Exception_init_$Create$, Error);
|
|
145
|
+
initMetadataForClass(RuntimeException, 'RuntimeException', RuntimeException_init_$Create$, Exception);
|
|
146
|
+
initMetadataForClass(UnsupportedOperationException, 'UnsupportedOperationException', UnsupportedOperationException_init_$Create$, RuntimeException);
|
|
147
|
+
initMetadataForClass(IllegalStateException, 'IllegalStateException', IllegalStateException_init_$Create$, RuntimeException);
|
|
148
|
+
initMetadataForClass(IllegalArgumentException, 'IllegalArgumentException', IllegalArgumentException_init_$Create$, RuntimeException);
|
|
149
|
+
initMetadataForClass(NoSuchElementException, 'NoSuchElementException', NoSuchElementException_init_$Create$, RuntimeException);
|
|
150
|
+
initMetadataForClass(IndexOutOfBoundsException, 'IndexOutOfBoundsException', IndexOutOfBoundsException_init_$Create$, RuntimeException);
|
|
151
|
+
initMetadataForClass(ConcurrentModificationException, 'ConcurrentModificationException', ConcurrentModificationException_init_$Create$, RuntimeException);
|
|
152
|
+
initMetadataForClass(NullPointerException, 'NullPointerException', NullPointerException_init_$Create$, RuntimeException);
|
|
153
|
+
initMetadataForClass(ClassCastException, 'ClassCastException', ClassCastException_init_$Create$, RuntimeException);
|
|
154
|
+
initMetadataForClass(KClassImpl, 'KClassImpl');
|
|
155
|
+
initMetadataForClass(PrimitiveKClassImpl, 'PrimitiveKClassImpl', VOID, KClassImpl);
|
|
156
|
+
initMetadataForObject(NothingKClassImpl, 'NothingKClassImpl', VOID, KClassImpl);
|
|
157
|
+
initMetadataForClass(StringBuilder, 'StringBuilder', StringBuilder_init_$Create$_0, VOID, [CharSequence]);
|
|
158
|
+
initMetadataForCompanion(Companion_2);
|
|
159
|
+
initMetadataForCompanion(Companion_3);
|
|
160
|
+
initMetadataForCompanion(Companion_4);
|
|
161
|
+
initMetadataForObject(EmptyList, 'EmptyList', VOID, VOID, [KtList]);
|
|
162
|
+
initMetadataForObject(EmptyIterator, 'EmptyIterator');
|
|
163
|
+
initMetadataForClass(Random, 'Random');
|
|
164
|
+
initMetadataForObject(Default, 'Default', VOID, Random);
|
|
165
|
+
initMetadataForCompanion(Companion_5);
|
|
166
|
+
initMetadataForClass(XorWowRandom, 'XorWowRandom', VOID, Random);
|
|
167
|
+
initMetadataForClass(UnsafeLazyImpl, 'UnsafeLazyImpl');
|
|
168
|
+
initMetadataForObject(UNINITIALIZED_VALUE, 'UNINITIALIZED_VALUE');
|
|
169
|
+
//endregion
|
|
170
|
+
function CharSequence() {
|
|
171
|
+
}
|
|
172
|
+
function Comparable() {
|
|
173
|
+
}
|
|
174
|
+
function Number_0() {
|
|
175
|
+
}
|
|
176
|
+
function indexOf(_this__u8e3s4, element) {
|
|
177
|
+
if (element == null) {
|
|
178
|
+
var inductionVariable = 0;
|
|
179
|
+
var last = _this__u8e3s4.length - 1 | 0;
|
|
180
|
+
if (inductionVariable <= last)
|
|
181
|
+
do {
|
|
182
|
+
var index = inductionVariable;
|
|
183
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
184
|
+
if (_this__u8e3s4[index] == null) {
|
|
185
|
+
return index;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
while (inductionVariable <= last);
|
|
189
|
+
} else {
|
|
190
|
+
var inductionVariable_0 = 0;
|
|
191
|
+
var last_0 = _this__u8e3s4.length - 1 | 0;
|
|
192
|
+
if (inductionVariable_0 <= last_0)
|
|
193
|
+
do {
|
|
194
|
+
var index_0 = inductionVariable_0;
|
|
195
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
196
|
+
if (equals(element, _this__u8e3s4[index_0])) {
|
|
197
|
+
return index_0;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
while (inductionVariable_0 <= last_0);
|
|
201
|
+
}
|
|
202
|
+
return -1;
|
|
203
|
+
}
|
|
204
|
+
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
205
|
+
separator = separator === VOID ? ', ' : separator;
|
|
206
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
207
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
208
|
+
limit = limit === VOID ? -1 : limit;
|
|
209
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
210
|
+
transform = transform === VOID ? null : transform;
|
|
211
|
+
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
212
|
+
}
|
|
213
|
+
function get_lastIndex(_this__u8e3s4) {
|
|
214
|
+
return _this__u8e3s4.length - 1 | 0;
|
|
215
|
+
}
|
|
216
|
+
function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
217
|
+
separator = separator === VOID ? ', ' : separator;
|
|
218
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
219
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
220
|
+
limit = limit === VOID ? -1 : limit;
|
|
221
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
222
|
+
transform = transform === VOID ? null : transform;
|
|
223
|
+
buffer.b(prefix);
|
|
224
|
+
var count = 0;
|
|
225
|
+
var inductionVariable = 0;
|
|
226
|
+
var last = _this__u8e3s4.length;
|
|
227
|
+
$l$loop: while (inductionVariable < last) {
|
|
228
|
+
var element = _this__u8e3s4[inductionVariable];
|
|
229
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
230
|
+
count = count + 1 | 0;
|
|
231
|
+
if (count > 1) {
|
|
232
|
+
buffer.b(separator);
|
|
233
|
+
}
|
|
234
|
+
if (limit < 0 || count <= limit) {
|
|
235
|
+
appendElement(buffer, element, transform);
|
|
236
|
+
} else
|
|
237
|
+
break $l$loop;
|
|
238
|
+
}
|
|
239
|
+
if (limit >= 0 && count > limit) {
|
|
240
|
+
buffer.b(truncated);
|
|
241
|
+
}
|
|
242
|
+
buffer.b(postfix);
|
|
243
|
+
return buffer;
|
|
244
|
+
}
|
|
245
|
+
function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
246
|
+
separator = separator === VOID ? ', ' : separator;
|
|
247
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
248
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
249
|
+
limit = limit === VOID ? -1 : limit;
|
|
250
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
251
|
+
transform = transform === VOID ? null : transform;
|
|
252
|
+
return joinTo_0(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
253
|
+
}
|
|
254
|
+
function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
255
|
+
separator = separator === VOID ? ', ' : separator;
|
|
256
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
257
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
258
|
+
limit = limit === VOID ? -1 : limit;
|
|
259
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
260
|
+
transform = transform === VOID ? null : transform;
|
|
261
|
+
buffer.b(prefix);
|
|
262
|
+
var count = 0;
|
|
263
|
+
var _iterator__ex2g4s = _this__u8e3s4.c();
|
|
264
|
+
$l$loop: while (_iterator__ex2g4s.d()) {
|
|
265
|
+
var element = _iterator__ex2g4s.e();
|
|
266
|
+
count = count + 1 | 0;
|
|
267
|
+
if (count > 1) {
|
|
268
|
+
buffer.b(separator);
|
|
269
|
+
}
|
|
270
|
+
if (limit < 0 || count <= limit) {
|
|
271
|
+
appendElement(buffer, element, transform);
|
|
272
|
+
} else
|
|
273
|
+
break $l$loop;
|
|
274
|
+
}
|
|
275
|
+
if (limit >= 0 && count > limit) {
|
|
276
|
+
buffer.b(truncated);
|
|
277
|
+
}
|
|
278
|
+
buffer.b(postfix);
|
|
279
|
+
return buffer;
|
|
280
|
+
}
|
|
281
|
+
function toList(_this__u8e3s4) {
|
|
282
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
283
|
+
var tmp;
|
|
284
|
+
switch (_this__u8e3s4.f()) {
|
|
285
|
+
case 0:
|
|
286
|
+
tmp = emptyList();
|
|
287
|
+
break;
|
|
288
|
+
case 1:
|
|
289
|
+
var tmp_0;
|
|
290
|
+
if (isInterface(_this__u8e3s4, KtList)) {
|
|
291
|
+
tmp_0 = _this__u8e3s4.g(0);
|
|
292
|
+
} else {
|
|
293
|
+
tmp_0 = _this__u8e3s4.c().e();
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
tmp = listOf(tmp_0);
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
tmp = toMutableList(_this__u8e3s4);
|
|
300
|
+
break;
|
|
301
|
+
}
|
|
302
|
+
return tmp;
|
|
303
|
+
}
|
|
304
|
+
return optimizeReadOnlyList(toMutableList_0(_this__u8e3s4));
|
|
305
|
+
}
|
|
306
|
+
function first(_this__u8e3s4) {
|
|
307
|
+
if (_this__u8e3s4.h())
|
|
308
|
+
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
309
|
+
return _this__u8e3s4.g(0);
|
|
310
|
+
}
|
|
311
|
+
function toMutableList(_this__u8e3s4) {
|
|
312
|
+
return ArrayList_init_$Create$_1(_this__u8e3s4);
|
|
313
|
+
}
|
|
314
|
+
function toMutableList_0(_this__u8e3s4) {
|
|
315
|
+
if (isInterface(_this__u8e3s4, Collection))
|
|
316
|
+
return toMutableList(_this__u8e3s4);
|
|
317
|
+
return toCollection(_this__u8e3s4, ArrayList_init_$Create$());
|
|
318
|
+
}
|
|
319
|
+
function sortedWith(_this__u8e3s4, comparator) {
|
|
320
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
321
|
+
if (_this__u8e3s4.f() <= 1)
|
|
322
|
+
return toList(_this__u8e3s4);
|
|
323
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
324
|
+
var tmp = copyToArray(_this__u8e3s4);
|
|
325
|
+
// Inline function 'kotlin.apply' call
|
|
326
|
+
var this_0 = isArray(tmp) ? tmp : THROW_CCE();
|
|
327
|
+
sortWith(this_0, comparator);
|
|
328
|
+
return asList(this_0);
|
|
329
|
+
}
|
|
330
|
+
// Inline function 'kotlin.apply' call
|
|
331
|
+
var this_1 = toMutableList_0(_this__u8e3s4);
|
|
332
|
+
sortWith_0(this_1, comparator);
|
|
333
|
+
return this_1;
|
|
334
|
+
}
|
|
335
|
+
function toCollection(_this__u8e3s4, destination) {
|
|
336
|
+
var _iterator__ex2g4s = _this__u8e3s4.c();
|
|
337
|
+
while (_iterator__ex2g4s.d()) {
|
|
338
|
+
var item = _iterator__ex2g4s.e();
|
|
339
|
+
destination.i(item);
|
|
340
|
+
}
|
|
341
|
+
return destination;
|
|
342
|
+
}
|
|
343
|
+
function coerceAtLeast(_this__u8e3s4, minimumValue) {
|
|
344
|
+
return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4;
|
|
345
|
+
}
|
|
346
|
+
function coerceAtMost(_this__u8e3s4, maximumValue) {
|
|
347
|
+
return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4;
|
|
348
|
+
}
|
|
349
|
+
function _Char___init__impl__6a9atx(value) {
|
|
350
|
+
return value;
|
|
351
|
+
}
|
|
352
|
+
function _get_value__a43j40($this) {
|
|
353
|
+
return $this;
|
|
354
|
+
}
|
|
355
|
+
function toString($this) {
|
|
356
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
357
|
+
return String.fromCharCode(_get_value__a43j40($this));
|
|
358
|
+
}
|
|
359
|
+
function Char() {
|
|
360
|
+
}
|
|
361
|
+
function KtList() {
|
|
362
|
+
}
|
|
363
|
+
function Collection() {
|
|
364
|
+
}
|
|
365
|
+
function KtSet() {
|
|
366
|
+
}
|
|
367
|
+
function Entry() {
|
|
368
|
+
}
|
|
369
|
+
function KtMap() {
|
|
370
|
+
}
|
|
371
|
+
function toString_0(_this__u8e3s4) {
|
|
372
|
+
var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : toString_1(_this__u8e3s4);
|
|
373
|
+
return tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs;
|
|
374
|
+
}
|
|
375
|
+
function Companion() {
|
|
376
|
+
Companion_instance = this;
|
|
377
|
+
this.q_1 = new Long(0, -2147483648);
|
|
378
|
+
this.r_1 = new Long(-1, 2147483647);
|
|
379
|
+
this.s_1 = 8;
|
|
380
|
+
this.t_1 = 64;
|
|
381
|
+
}
|
|
382
|
+
var Companion_instance;
|
|
383
|
+
function Companion_getInstance() {
|
|
384
|
+
if (Companion_instance == null)
|
|
385
|
+
new Companion();
|
|
386
|
+
return Companion_instance;
|
|
387
|
+
}
|
|
388
|
+
function Long(low, high) {
|
|
389
|
+
Companion_getInstance();
|
|
390
|
+
Number_0.call(this);
|
|
391
|
+
this.u_1 = low;
|
|
392
|
+
this.v_1 = high;
|
|
393
|
+
}
|
|
394
|
+
protoOf(Long).w = function (other) {
|
|
395
|
+
return compare(this, other);
|
|
396
|
+
};
|
|
397
|
+
protoOf(Long).a = function (other) {
|
|
398
|
+
return this.w(other instanceof Long ? other : THROW_CCE());
|
|
399
|
+
};
|
|
400
|
+
protoOf(Long).toString = function () {
|
|
401
|
+
return toStringImpl(this, 10);
|
|
402
|
+
};
|
|
403
|
+
protoOf(Long).equals = function (other) {
|
|
404
|
+
var tmp;
|
|
405
|
+
if (other instanceof Long) {
|
|
406
|
+
tmp = equalsLong(this, other);
|
|
407
|
+
} else {
|
|
408
|
+
tmp = false;
|
|
409
|
+
}
|
|
410
|
+
return tmp;
|
|
411
|
+
};
|
|
412
|
+
protoOf(Long).hashCode = function () {
|
|
413
|
+
return hashCode(this);
|
|
414
|
+
};
|
|
415
|
+
protoOf(Long).valueOf = function () {
|
|
416
|
+
return toNumber(this);
|
|
417
|
+
};
|
|
418
|
+
function abs(_this__u8e3s4) {
|
|
419
|
+
var tmp;
|
|
420
|
+
// Inline function 'kotlin.js.internal.isNegative' call
|
|
421
|
+
if (_this__u8e3s4 < 0) {
|
|
422
|
+
// Inline function 'kotlin.js.internal.unaryMinus' call
|
|
423
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
424
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
425
|
+
tmp = -_this__u8e3s4;
|
|
426
|
+
} else {
|
|
427
|
+
tmp = _this__u8e3s4;
|
|
428
|
+
}
|
|
429
|
+
return tmp;
|
|
430
|
+
}
|
|
431
|
+
function implement(interfaces) {
|
|
432
|
+
var maxSize = 1;
|
|
433
|
+
var masks = [];
|
|
434
|
+
var inductionVariable = 0;
|
|
435
|
+
var last = interfaces.length;
|
|
436
|
+
while (inductionVariable < last) {
|
|
437
|
+
var i = interfaces[inductionVariable];
|
|
438
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
439
|
+
var currentSize = maxSize;
|
|
440
|
+
var tmp0_elvis_lhs = i.prototype.$imask$;
|
|
441
|
+
var imask = tmp0_elvis_lhs == null ? i.$imask$ : tmp0_elvis_lhs;
|
|
442
|
+
if (!(imask == null)) {
|
|
443
|
+
masks.push(imask);
|
|
444
|
+
currentSize = imask.length;
|
|
445
|
+
}
|
|
446
|
+
var iid = i.$metadata$.iid;
|
|
447
|
+
var tmp;
|
|
448
|
+
if (iid == null) {
|
|
449
|
+
tmp = null;
|
|
450
|
+
} else {
|
|
451
|
+
// Inline function 'kotlin.let' call
|
|
452
|
+
tmp = bitMaskWith(iid);
|
|
453
|
+
}
|
|
454
|
+
var iidImask = tmp;
|
|
455
|
+
if (!(iidImask == null)) {
|
|
456
|
+
masks.push(iidImask);
|
|
457
|
+
currentSize = Math.max(currentSize, iidImask.length);
|
|
458
|
+
}
|
|
459
|
+
if (currentSize > maxSize) {
|
|
460
|
+
maxSize = currentSize;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return compositeBitMask(maxSize, masks);
|
|
464
|
+
}
|
|
465
|
+
function bitMaskWith(activeBit) {
|
|
466
|
+
var numberIndex = activeBit >> 5;
|
|
467
|
+
var intArray = new Int32Array(numberIndex + 1 | 0);
|
|
468
|
+
var positionInNumber = activeBit & 31;
|
|
469
|
+
var numberWithSettledBit = 1 << positionInNumber;
|
|
470
|
+
intArray[numberIndex] = intArray[numberIndex] | numberWithSettledBit;
|
|
471
|
+
return intArray;
|
|
472
|
+
}
|
|
473
|
+
function compositeBitMask(capacity, masks) {
|
|
474
|
+
var tmp = 0;
|
|
475
|
+
var tmp_0 = new Int32Array(capacity);
|
|
476
|
+
while (tmp < capacity) {
|
|
477
|
+
var tmp_1 = tmp;
|
|
478
|
+
var result = 0;
|
|
479
|
+
var inductionVariable = 0;
|
|
480
|
+
var last = masks.length;
|
|
481
|
+
while (inductionVariable < last) {
|
|
482
|
+
var mask = masks[inductionVariable];
|
|
483
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
484
|
+
if (tmp_1 < mask.length) {
|
|
485
|
+
result = result | mask[tmp_1];
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
tmp_0[tmp_1] = result;
|
|
489
|
+
tmp = tmp + 1 | 0;
|
|
490
|
+
}
|
|
491
|
+
return tmp_0;
|
|
492
|
+
}
|
|
493
|
+
function isBitSet(_this__u8e3s4, possibleActiveBit) {
|
|
494
|
+
var numberIndex = possibleActiveBit >> 5;
|
|
495
|
+
if (numberIndex > _this__u8e3s4.length)
|
|
496
|
+
return false;
|
|
497
|
+
var positionInNumber = possibleActiveBit & 31;
|
|
498
|
+
var numberWithSettledBit = 1 << positionInNumber;
|
|
499
|
+
return !((_this__u8e3s4[numberIndex] & numberWithSettledBit) === 0);
|
|
500
|
+
}
|
|
501
|
+
function FunctionAdapter() {
|
|
502
|
+
}
|
|
503
|
+
function get_buf() {
|
|
504
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
505
|
+
return buf;
|
|
506
|
+
}
|
|
507
|
+
var buf;
|
|
508
|
+
function get_bufFloat64() {
|
|
509
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
510
|
+
return bufFloat64;
|
|
511
|
+
}
|
|
512
|
+
var bufFloat64;
|
|
513
|
+
var bufFloat32;
|
|
514
|
+
function get_bufInt32() {
|
|
515
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
516
|
+
return bufInt32;
|
|
517
|
+
}
|
|
518
|
+
var bufInt32;
|
|
519
|
+
function get_lowIndex() {
|
|
520
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
521
|
+
return lowIndex;
|
|
522
|
+
}
|
|
523
|
+
var lowIndex;
|
|
524
|
+
function get_highIndex() {
|
|
525
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
526
|
+
return highIndex;
|
|
527
|
+
}
|
|
528
|
+
var highIndex;
|
|
529
|
+
function getNumberHashCode(obj) {
|
|
530
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
531
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
532
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
533
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
534
|
+
if ((obj | 0) === obj) {
|
|
535
|
+
return numberToInt(obj);
|
|
536
|
+
}
|
|
537
|
+
get_bufFloat64()[0] = obj;
|
|
538
|
+
return imul(get_bufInt32()[get_highIndex()], 31) + get_bufInt32()[get_lowIndex()] | 0;
|
|
539
|
+
}
|
|
540
|
+
var properties_initialized_bitUtils_kt_i2bo3e;
|
|
541
|
+
function _init_properties_bitUtils_kt__nfcg4k() {
|
|
542
|
+
if (!properties_initialized_bitUtils_kt_i2bo3e) {
|
|
543
|
+
properties_initialized_bitUtils_kt_i2bo3e = true;
|
|
544
|
+
buf = new ArrayBuffer(8);
|
|
545
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
546
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
547
|
+
bufFloat64 = new Float64Array(get_buf());
|
|
548
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
549
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
550
|
+
bufFloat32 = new Float32Array(get_buf());
|
|
551
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
552
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
553
|
+
bufInt32 = new Int32Array(get_buf());
|
|
554
|
+
// Inline function 'kotlin.run' call
|
|
555
|
+
get_bufFloat64()[0] = -1.0;
|
|
556
|
+
lowIndex = !(get_bufInt32()[0] === 0) ? 1 : 0;
|
|
557
|
+
highIndex = 1 - get_lowIndex() | 0;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
function get_ZERO() {
|
|
561
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
562
|
+
return ZERO;
|
|
563
|
+
}
|
|
564
|
+
var ZERO;
|
|
565
|
+
function get_ONE() {
|
|
566
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
567
|
+
return ONE;
|
|
568
|
+
}
|
|
569
|
+
var ONE;
|
|
570
|
+
function get_NEG_ONE() {
|
|
571
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
572
|
+
return NEG_ONE;
|
|
573
|
+
}
|
|
574
|
+
var NEG_ONE;
|
|
575
|
+
function get_MAX_VALUE() {
|
|
576
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
577
|
+
return MAX_VALUE;
|
|
578
|
+
}
|
|
579
|
+
var MAX_VALUE;
|
|
580
|
+
function get_MIN_VALUE() {
|
|
581
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
582
|
+
return MIN_VALUE;
|
|
583
|
+
}
|
|
584
|
+
var MIN_VALUE;
|
|
585
|
+
function get_TWO_PWR_24_() {
|
|
586
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
587
|
+
return TWO_PWR_24_;
|
|
588
|
+
}
|
|
589
|
+
var TWO_PWR_24_;
|
|
590
|
+
var longArrayClass;
|
|
591
|
+
function compare(_this__u8e3s4, other) {
|
|
592
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
593
|
+
if (equalsLong(_this__u8e3s4, other)) {
|
|
594
|
+
return 0;
|
|
595
|
+
}
|
|
596
|
+
var thisNeg = isNegative(_this__u8e3s4);
|
|
597
|
+
var otherNeg = isNegative(other);
|
|
598
|
+
return thisNeg && !otherNeg ? -1 : !thisNeg && otherNeg ? 1 : isNegative(subtract(_this__u8e3s4, other)) ? -1 : 1;
|
|
599
|
+
}
|
|
600
|
+
function convertToInt(_this__u8e3s4) {
|
|
601
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
602
|
+
return _this__u8e3s4.u_1;
|
|
603
|
+
}
|
|
604
|
+
function toNumber(_this__u8e3s4) {
|
|
605
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
606
|
+
return _this__u8e3s4.v_1 * 4.294967296E9 + getLowBitsUnsigned(_this__u8e3s4);
|
|
607
|
+
}
|
|
608
|
+
function toStringImpl(_this__u8e3s4, radix) {
|
|
609
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
610
|
+
if (isZero(_this__u8e3s4)) {
|
|
611
|
+
return '0';
|
|
612
|
+
}
|
|
613
|
+
if (isNegative(_this__u8e3s4)) {
|
|
614
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
615
|
+
var radixLong = fromInt(radix);
|
|
616
|
+
var div = divide(_this__u8e3s4, radixLong);
|
|
617
|
+
var rem = convertToInt(subtract(multiply(div, radixLong), _this__u8e3s4));
|
|
618
|
+
var tmp = toStringImpl(div, radix);
|
|
619
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
620
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
621
|
+
return tmp + rem.toString(radix);
|
|
622
|
+
} else {
|
|
623
|
+
return '-' + toStringImpl(negate(_this__u8e3s4), radix);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
var digitsPerTime = radix === 2 ? 31 : radix <= 10 ? 9 : radix <= 21 ? 7 : radix <= 35 ? 6 : 5;
|
|
627
|
+
var radixToPower = fromNumber(Math.pow(radix, digitsPerTime));
|
|
628
|
+
var rem_0 = _this__u8e3s4;
|
|
629
|
+
var result = '';
|
|
630
|
+
while (true) {
|
|
631
|
+
var remDiv = divide(rem_0, radixToPower);
|
|
632
|
+
var intval = convertToInt(subtract(rem_0, multiply(remDiv, radixToPower)));
|
|
633
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
634
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
635
|
+
var digits = intval.toString(radix);
|
|
636
|
+
rem_0 = remDiv;
|
|
637
|
+
if (isZero(rem_0)) {
|
|
638
|
+
return digits + result;
|
|
639
|
+
} else {
|
|
640
|
+
while (digits.length < digitsPerTime) {
|
|
641
|
+
digits = '0' + digits;
|
|
642
|
+
}
|
|
643
|
+
result = digits + result;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
function equalsLong(_this__u8e3s4, other) {
|
|
648
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
649
|
+
return _this__u8e3s4.v_1 === other.v_1 && _this__u8e3s4.u_1 === other.u_1;
|
|
650
|
+
}
|
|
651
|
+
function hashCode(l) {
|
|
652
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
653
|
+
return l.u_1 ^ l.v_1;
|
|
654
|
+
}
|
|
655
|
+
function fromInt(value) {
|
|
656
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
657
|
+
return new Long(value, value < 0 ? -1 : 0);
|
|
658
|
+
}
|
|
659
|
+
function isNegative(_this__u8e3s4) {
|
|
660
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
661
|
+
return _this__u8e3s4.v_1 < 0;
|
|
662
|
+
}
|
|
663
|
+
function subtract(_this__u8e3s4, other) {
|
|
664
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
665
|
+
return add(_this__u8e3s4, negate(other));
|
|
666
|
+
}
|
|
667
|
+
function getLowBitsUnsigned(_this__u8e3s4) {
|
|
668
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
669
|
+
return _this__u8e3s4.u_1 >= 0 ? _this__u8e3s4.u_1 : 4.294967296E9 + _this__u8e3s4.u_1;
|
|
670
|
+
}
|
|
671
|
+
function isZero(_this__u8e3s4) {
|
|
672
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
673
|
+
return _this__u8e3s4.v_1 === 0 && _this__u8e3s4.u_1 === 0;
|
|
674
|
+
}
|
|
675
|
+
function multiply(_this__u8e3s4, other) {
|
|
676
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
677
|
+
if (isZero(_this__u8e3s4)) {
|
|
678
|
+
return get_ZERO();
|
|
679
|
+
} else if (isZero(other)) {
|
|
680
|
+
return get_ZERO();
|
|
681
|
+
}
|
|
682
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
683
|
+
return isOdd(other) ? get_MIN_VALUE() : get_ZERO();
|
|
684
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
685
|
+
return isOdd(_this__u8e3s4) ? get_MIN_VALUE() : get_ZERO();
|
|
686
|
+
}
|
|
687
|
+
if (isNegative(_this__u8e3s4)) {
|
|
688
|
+
var tmp;
|
|
689
|
+
if (isNegative(other)) {
|
|
690
|
+
tmp = multiply(negate(_this__u8e3s4), negate(other));
|
|
691
|
+
} else {
|
|
692
|
+
tmp = negate(multiply(negate(_this__u8e3s4), other));
|
|
693
|
+
}
|
|
694
|
+
return tmp;
|
|
695
|
+
} else if (isNegative(other)) {
|
|
696
|
+
return negate(multiply(_this__u8e3s4, negate(other)));
|
|
697
|
+
}
|
|
698
|
+
if (lessThan(_this__u8e3s4, get_TWO_PWR_24_()) && lessThan(other, get_TWO_PWR_24_())) {
|
|
699
|
+
return fromNumber(toNumber(_this__u8e3s4) * toNumber(other));
|
|
700
|
+
}
|
|
701
|
+
var a48 = _this__u8e3s4.v_1 >>> 16 | 0;
|
|
702
|
+
var a32 = _this__u8e3s4.v_1 & 65535;
|
|
703
|
+
var a16 = _this__u8e3s4.u_1 >>> 16 | 0;
|
|
704
|
+
var a00 = _this__u8e3s4.u_1 & 65535;
|
|
705
|
+
var b48 = other.v_1 >>> 16 | 0;
|
|
706
|
+
var b32 = other.v_1 & 65535;
|
|
707
|
+
var b16 = other.u_1 >>> 16 | 0;
|
|
708
|
+
var b00 = other.u_1 & 65535;
|
|
709
|
+
var c48 = 0;
|
|
710
|
+
var c32 = 0;
|
|
711
|
+
var c16 = 0;
|
|
712
|
+
var c00 = 0;
|
|
713
|
+
c00 = c00 + imul(a00, b00) | 0;
|
|
714
|
+
c16 = c16 + (c00 >>> 16 | 0) | 0;
|
|
715
|
+
c00 = c00 & 65535;
|
|
716
|
+
c16 = c16 + imul(a16, b00) | 0;
|
|
717
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
718
|
+
c16 = c16 & 65535;
|
|
719
|
+
c16 = c16 + imul(a00, b16) | 0;
|
|
720
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
721
|
+
c16 = c16 & 65535;
|
|
722
|
+
c32 = c32 + imul(a32, b00) | 0;
|
|
723
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
724
|
+
c32 = c32 & 65535;
|
|
725
|
+
c32 = c32 + imul(a16, b16) | 0;
|
|
726
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
727
|
+
c32 = c32 & 65535;
|
|
728
|
+
c32 = c32 + imul(a00, b32) | 0;
|
|
729
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
730
|
+
c32 = c32 & 65535;
|
|
731
|
+
c48 = c48 + (((imul(a48, b00) + imul(a32, b16) | 0) + imul(a16, b32) | 0) + imul(a00, b48) | 0) | 0;
|
|
732
|
+
c48 = c48 & 65535;
|
|
733
|
+
return new Long(c16 << 16 | c00, c48 << 16 | c32);
|
|
734
|
+
}
|
|
735
|
+
function negate(_this__u8e3s4) {
|
|
736
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
737
|
+
return add(invert(_this__u8e3s4), new Long(1, 0));
|
|
738
|
+
}
|
|
739
|
+
function fromNumber(value) {
|
|
740
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
741
|
+
if (isNaN_0(value)) {
|
|
742
|
+
return get_ZERO();
|
|
743
|
+
} else if (value <= -9.223372036854776E18) {
|
|
744
|
+
return get_MIN_VALUE();
|
|
745
|
+
} else if (value + 1 >= 9.223372036854776E18) {
|
|
746
|
+
return get_MAX_VALUE();
|
|
747
|
+
} else if (value < 0) {
|
|
748
|
+
return negate(fromNumber(-value));
|
|
749
|
+
} else {
|
|
750
|
+
var twoPwr32 = 4.294967296E9;
|
|
751
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
752
|
+
var tmp = value % twoPwr32 | 0;
|
|
753
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
754
|
+
var tmp$ret$1 = value / twoPwr32 | 0;
|
|
755
|
+
return new Long(tmp, tmp$ret$1);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function add(_this__u8e3s4, other) {
|
|
759
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
760
|
+
var a48 = _this__u8e3s4.v_1 >>> 16 | 0;
|
|
761
|
+
var a32 = _this__u8e3s4.v_1 & 65535;
|
|
762
|
+
var a16 = _this__u8e3s4.u_1 >>> 16 | 0;
|
|
763
|
+
var a00 = _this__u8e3s4.u_1 & 65535;
|
|
764
|
+
var b48 = other.v_1 >>> 16 | 0;
|
|
765
|
+
var b32 = other.v_1 & 65535;
|
|
766
|
+
var b16 = other.u_1 >>> 16 | 0;
|
|
767
|
+
var b00 = other.u_1 & 65535;
|
|
768
|
+
var c48 = 0;
|
|
769
|
+
var c32 = 0;
|
|
770
|
+
var c16 = 0;
|
|
771
|
+
var c00 = 0;
|
|
772
|
+
c00 = c00 + (a00 + b00 | 0) | 0;
|
|
773
|
+
c16 = c16 + (c00 >>> 16 | 0) | 0;
|
|
774
|
+
c00 = c00 & 65535;
|
|
775
|
+
c16 = c16 + (a16 + b16 | 0) | 0;
|
|
776
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
777
|
+
c16 = c16 & 65535;
|
|
778
|
+
c32 = c32 + (a32 + b32 | 0) | 0;
|
|
779
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
780
|
+
c32 = c32 & 65535;
|
|
781
|
+
c48 = c48 + (a48 + b48 | 0) | 0;
|
|
782
|
+
c48 = c48 & 65535;
|
|
783
|
+
return new Long(c16 << 16 | c00, c48 << 16 | c32);
|
|
784
|
+
}
|
|
785
|
+
function isOdd(_this__u8e3s4) {
|
|
786
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
787
|
+
return (_this__u8e3s4.u_1 & 1) === 1;
|
|
788
|
+
}
|
|
789
|
+
function lessThan(_this__u8e3s4, other) {
|
|
790
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
791
|
+
return compare(_this__u8e3s4, other) < 0;
|
|
792
|
+
}
|
|
793
|
+
function invert(_this__u8e3s4) {
|
|
794
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
795
|
+
return new Long(~_this__u8e3s4.u_1, ~_this__u8e3s4.v_1);
|
|
796
|
+
}
|
|
797
|
+
function divide(_this__u8e3s4, other) {
|
|
798
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
799
|
+
if (isZero(other)) {
|
|
800
|
+
throw Exception_init_$Create$_0('division by zero');
|
|
801
|
+
} else if (isZero(_this__u8e3s4)) {
|
|
802
|
+
return get_ZERO();
|
|
803
|
+
}
|
|
804
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
805
|
+
if (equalsLong(other, get_ONE()) || equalsLong(other, get_NEG_ONE())) {
|
|
806
|
+
return get_MIN_VALUE();
|
|
807
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
808
|
+
return get_ONE();
|
|
809
|
+
} else {
|
|
810
|
+
var halfThis = shiftRight(_this__u8e3s4, 1);
|
|
811
|
+
var approx = shiftLeft(divide(halfThis, other), 1);
|
|
812
|
+
if (equalsLong(approx, get_ZERO())) {
|
|
813
|
+
return isNegative(other) ? get_ONE() : get_NEG_ONE();
|
|
814
|
+
} else {
|
|
815
|
+
var rem = subtract(_this__u8e3s4, multiply(other, approx));
|
|
816
|
+
return add(approx, divide(rem, other));
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
820
|
+
return get_ZERO();
|
|
821
|
+
}
|
|
822
|
+
if (isNegative(_this__u8e3s4)) {
|
|
823
|
+
var tmp;
|
|
824
|
+
if (isNegative(other)) {
|
|
825
|
+
tmp = divide(negate(_this__u8e3s4), negate(other));
|
|
826
|
+
} else {
|
|
827
|
+
tmp = negate(divide(negate(_this__u8e3s4), other));
|
|
828
|
+
}
|
|
829
|
+
return tmp;
|
|
830
|
+
} else if (isNegative(other)) {
|
|
831
|
+
return negate(divide(_this__u8e3s4, negate(other)));
|
|
832
|
+
}
|
|
833
|
+
var res = get_ZERO();
|
|
834
|
+
var rem_0 = _this__u8e3s4;
|
|
835
|
+
while (greaterThanOrEqual(rem_0, other)) {
|
|
836
|
+
var approxDouble = toNumber(rem_0) / toNumber(other);
|
|
837
|
+
var approx2 = Math.max(1.0, Math.floor(approxDouble));
|
|
838
|
+
var log2 = Math.ceil(Math.log(approx2) / Math.LN2);
|
|
839
|
+
var delta = log2 <= 48 ? 1.0 : Math.pow(2.0, log2 - 48);
|
|
840
|
+
var approxRes = fromNumber(approx2);
|
|
841
|
+
var approxRem = multiply(approxRes, other);
|
|
842
|
+
while (isNegative(approxRem) || greaterThan(approxRem, rem_0)) {
|
|
843
|
+
approx2 = approx2 - delta;
|
|
844
|
+
approxRes = fromNumber(approx2);
|
|
845
|
+
approxRem = multiply(approxRes, other);
|
|
846
|
+
}
|
|
847
|
+
if (isZero(approxRes)) {
|
|
848
|
+
approxRes = get_ONE();
|
|
849
|
+
}
|
|
850
|
+
res = add(res, approxRes);
|
|
851
|
+
rem_0 = subtract(rem_0, approxRem);
|
|
852
|
+
}
|
|
853
|
+
return res;
|
|
854
|
+
}
|
|
855
|
+
function shiftRight(_this__u8e3s4, numBits) {
|
|
856
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
857
|
+
var numBits_0 = numBits & 63;
|
|
858
|
+
if (numBits_0 === 0) {
|
|
859
|
+
return _this__u8e3s4;
|
|
860
|
+
} else {
|
|
861
|
+
if (numBits_0 < 32) {
|
|
862
|
+
return new Long(_this__u8e3s4.u_1 >>> numBits_0 | 0 | _this__u8e3s4.v_1 << (32 - numBits_0 | 0), _this__u8e3s4.v_1 >> numBits_0);
|
|
863
|
+
} else {
|
|
864
|
+
return new Long(_this__u8e3s4.v_1 >> (numBits_0 - 32 | 0), _this__u8e3s4.v_1 >= 0 ? 0 : -1);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
function shiftLeft(_this__u8e3s4, numBits) {
|
|
869
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
870
|
+
var numBits_0 = numBits & 63;
|
|
871
|
+
if (numBits_0 === 0) {
|
|
872
|
+
return _this__u8e3s4;
|
|
873
|
+
} else {
|
|
874
|
+
if (numBits_0 < 32) {
|
|
875
|
+
return new Long(_this__u8e3s4.u_1 << numBits_0, _this__u8e3s4.v_1 << numBits_0 | (_this__u8e3s4.u_1 >>> (32 - numBits_0 | 0) | 0));
|
|
876
|
+
} else {
|
|
877
|
+
return new Long(0, _this__u8e3s4.u_1 << (numBits_0 - 32 | 0));
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function greaterThan(_this__u8e3s4, other) {
|
|
882
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
883
|
+
return compare(_this__u8e3s4, other) > 0;
|
|
884
|
+
}
|
|
885
|
+
function greaterThanOrEqual(_this__u8e3s4, other) {
|
|
886
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
887
|
+
return compare(_this__u8e3s4, other) >= 0;
|
|
888
|
+
}
|
|
889
|
+
function isLongArray(a) {
|
|
890
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
891
|
+
return isJsArray(a) && a.$type$ === 'LongArray';
|
|
892
|
+
}
|
|
893
|
+
function longArrayClass$lambda(it) {
|
|
894
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
895
|
+
return !(it == null) ? isLongArray(it) : false;
|
|
896
|
+
}
|
|
897
|
+
var properties_initialized_boxedLong_kt_lfwt2;
|
|
898
|
+
function _init_properties_boxedLong_kt__v24qrw() {
|
|
899
|
+
if (!properties_initialized_boxedLong_kt_lfwt2) {
|
|
900
|
+
properties_initialized_boxedLong_kt_lfwt2 = true;
|
|
901
|
+
ZERO = fromInt(0);
|
|
902
|
+
ONE = fromInt(1);
|
|
903
|
+
NEG_ONE = fromInt(-1);
|
|
904
|
+
MAX_VALUE = new Long(-1, 2147483647);
|
|
905
|
+
MIN_VALUE = new Long(0, -2147483648);
|
|
906
|
+
TWO_PWR_24_ = fromInt(16777216);
|
|
907
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
908
|
+
var tmp = Array;
|
|
909
|
+
longArrayClass = new PrimitiveKClassImpl(tmp, 'LongArray', longArrayClass$lambda);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
function arrayToString(array) {
|
|
913
|
+
return joinToString(array, ', ', '[', ']', VOID, VOID, arrayToString$lambda);
|
|
914
|
+
}
|
|
915
|
+
function arrayToString$lambda(it) {
|
|
916
|
+
return toString_1(it);
|
|
917
|
+
}
|
|
918
|
+
function compareTo(a, b) {
|
|
919
|
+
var tmp;
|
|
920
|
+
switch (typeof a) {
|
|
921
|
+
case 'number':
|
|
922
|
+
var tmp_0;
|
|
923
|
+
if (typeof b === 'number') {
|
|
924
|
+
tmp_0 = doubleCompareTo(a, b);
|
|
925
|
+
} else {
|
|
926
|
+
if (b instanceof Long) {
|
|
927
|
+
tmp_0 = doubleCompareTo(a, toNumber(b));
|
|
928
|
+
} else {
|
|
929
|
+
tmp_0 = primitiveCompareTo(a, b);
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
tmp = tmp_0;
|
|
934
|
+
break;
|
|
935
|
+
case 'string':
|
|
936
|
+
case 'boolean':
|
|
937
|
+
case 'bigint':
|
|
938
|
+
tmp = primitiveCompareTo(a, b);
|
|
939
|
+
break;
|
|
940
|
+
default:
|
|
941
|
+
tmp = compareToDoNotIntrinsicify(a, b);
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
return tmp;
|
|
945
|
+
}
|
|
946
|
+
function doubleCompareTo(a, b) {
|
|
947
|
+
var tmp;
|
|
948
|
+
if (a < b) {
|
|
949
|
+
tmp = -1;
|
|
950
|
+
} else if (a > b) {
|
|
951
|
+
tmp = 1;
|
|
952
|
+
} else if (a === b) {
|
|
953
|
+
var tmp_0;
|
|
954
|
+
if (a !== 0) {
|
|
955
|
+
tmp_0 = 0;
|
|
956
|
+
} else {
|
|
957
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
958
|
+
var ia = 1 / a;
|
|
959
|
+
var tmp_1;
|
|
960
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
961
|
+
if (ia === 1 / b) {
|
|
962
|
+
tmp_1 = 0;
|
|
963
|
+
} else {
|
|
964
|
+
if (ia < 0) {
|
|
965
|
+
tmp_1 = -1;
|
|
966
|
+
} else {
|
|
967
|
+
tmp_1 = 1;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
tmp_0 = tmp_1;
|
|
971
|
+
}
|
|
972
|
+
tmp = tmp_0;
|
|
973
|
+
} else if (a !== a) {
|
|
974
|
+
tmp = b !== b ? 0 : 1;
|
|
975
|
+
} else {
|
|
976
|
+
tmp = -1;
|
|
977
|
+
}
|
|
978
|
+
return tmp;
|
|
979
|
+
}
|
|
980
|
+
function primitiveCompareTo(a, b) {
|
|
981
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
982
|
+
}
|
|
983
|
+
function compareToDoNotIntrinsicify(a, b) {
|
|
984
|
+
return a.a(b);
|
|
985
|
+
}
|
|
986
|
+
function getObjectHashCode(obj) {
|
|
987
|
+
// Inline function 'kotlin.js.jsIn' call
|
|
988
|
+
if (!('kotlinHashCodeValue$' in obj)) {
|
|
989
|
+
var hash = calculateRandomHash();
|
|
990
|
+
var descriptor = new Object();
|
|
991
|
+
descriptor.value = hash;
|
|
992
|
+
descriptor.enumerable = false;
|
|
993
|
+
Object.defineProperty(obj, 'kotlinHashCodeValue$', descriptor);
|
|
994
|
+
}
|
|
995
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
996
|
+
return obj['kotlinHashCodeValue$'];
|
|
997
|
+
}
|
|
998
|
+
function calculateRandomHash() {
|
|
999
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
1000
|
+
return Math.random() * 4.294967296E9 | 0;
|
|
1001
|
+
}
|
|
1002
|
+
function objectCreate(proto) {
|
|
1003
|
+
proto = proto === VOID ? null : proto;
|
|
1004
|
+
return Object.create(proto);
|
|
1005
|
+
}
|
|
1006
|
+
function defineProp(obj, name, getter, setter, enumerable) {
|
|
1007
|
+
return Object.defineProperty(obj, name, {configurable: true, get: getter, set: setter, enumerable: enumerable});
|
|
1008
|
+
}
|
|
1009
|
+
function toString_1(o) {
|
|
1010
|
+
var tmp;
|
|
1011
|
+
if (o == null) {
|
|
1012
|
+
tmp = 'null';
|
|
1013
|
+
} else if (isArrayish(o)) {
|
|
1014
|
+
tmp = '[...]';
|
|
1015
|
+
} else if (!(typeof o.toString === 'function')) {
|
|
1016
|
+
tmp = anyToString(o);
|
|
1017
|
+
} else {
|
|
1018
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1019
|
+
tmp = o.toString();
|
|
1020
|
+
}
|
|
1021
|
+
return tmp;
|
|
1022
|
+
}
|
|
1023
|
+
function equals(obj1, obj2) {
|
|
1024
|
+
if (obj1 == null) {
|
|
1025
|
+
return obj2 == null;
|
|
1026
|
+
}
|
|
1027
|
+
if (obj2 == null) {
|
|
1028
|
+
return false;
|
|
1029
|
+
}
|
|
1030
|
+
if (typeof obj1 === 'object' && typeof obj1.equals === 'function') {
|
|
1031
|
+
return obj1.equals(obj2);
|
|
1032
|
+
}
|
|
1033
|
+
if (obj1 !== obj1) {
|
|
1034
|
+
return obj2 !== obj2;
|
|
1035
|
+
}
|
|
1036
|
+
if (typeof obj1 === 'number' && typeof obj2 === 'number') {
|
|
1037
|
+
var tmp;
|
|
1038
|
+
if (obj1 === obj2) {
|
|
1039
|
+
var tmp_0;
|
|
1040
|
+
if (obj1 !== 0) {
|
|
1041
|
+
tmp_0 = true;
|
|
1042
|
+
} else {
|
|
1043
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1044
|
+
var tmp_1 = 1 / obj1;
|
|
1045
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1046
|
+
tmp_0 = tmp_1 === 1 / obj2;
|
|
1047
|
+
}
|
|
1048
|
+
tmp = tmp_0;
|
|
1049
|
+
} else {
|
|
1050
|
+
tmp = false;
|
|
1051
|
+
}
|
|
1052
|
+
return tmp;
|
|
1053
|
+
}
|
|
1054
|
+
return obj1 === obj2;
|
|
1055
|
+
}
|
|
1056
|
+
function hashCode_0(obj) {
|
|
1057
|
+
if (obj == null)
|
|
1058
|
+
return 0;
|
|
1059
|
+
var typeOf = typeof obj;
|
|
1060
|
+
var tmp;
|
|
1061
|
+
switch (typeOf) {
|
|
1062
|
+
case 'object':
|
|
1063
|
+
tmp = 'function' === typeof obj.hashCode ? obj.hashCode() : getObjectHashCode(obj);
|
|
1064
|
+
break;
|
|
1065
|
+
case 'function':
|
|
1066
|
+
tmp = getObjectHashCode(obj);
|
|
1067
|
+
break;
|
|
1068
|
+
case 'number':
|
|
1069
|
+
tmp = getNumberHashCode(obj);
|
|
1070
|
+
break;
|
|
1071
|
+
case 'boolean':
|
|
1072
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1073
|
+
|
|
1074
|
+
tmp = getBooleanHashCode(obj);
|
|
1075
|
+
break;
|
|
1076
|
+
case 'string':
|
|
1077
|
+
tmp = getStringHashCode(String(obj));
|
|
1078
|
+
break;
|
|
1079
|
+
case 'bigint':
|
|
1080
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1081
|
+
|
|
1082
|
+
tmp = getBigIntHashCode(obj);
|
|
1083
|
+
break;
|
|
1084
|
+
case 'symbol':
|
|
1085
|
+
tmp = getSymbolHashCode(obj);
|
|
1086
|
+
break;
|
|
1087
|
+
default:
|
|
1088
|
+
tmp = function () {
|
|
1089
|
+
throw new Error('Unexpected typeof `' + typeOf + '`');
|
|
1090
|
+
}();
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
return tmp;
|
|
1094
|
+
}
|
|
1095
|
+
function anyToString(o) {
|
|
1096
|
+
return Object.prototype.toString.call(o);
|
|
1097
|
+
}
|
|
1098
|
+
function getBooleanHashCode(value) {
|
|
1099
|
+
return value ? 1231 : 1237;
|
|
1100
|
+
}
|
|
1101
|
+
function getStringHashCode(str) {
|
|
1102
|
+
var hash = 0;
|
|
1103
|
+
var length = str.length;
|
|
1104
|
+
var inductionVariable = 0;
|
|
1105
|
+
var last = length - 1 | 0;
|
|
1106
|
+
if (inductionVariable <= last)
|
|
1107
|
+
do {
|
|
1108
|
+
var i = inductionVariable;
|
|
1109
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1110
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1111
|
+
var code = str.charCodeAt(i);
|
|
1112
|
+
hash = imul(hash, 31) + code | 0;
|
|
1113
|
+
}
|
|
1114
|
+
while (!(i === last));
|
|
1115
|
+
return hash;
|
|
1116
|
+
}
|
|
1117
|
+
function getBigIntHashCode(value) {
|
|
1118
|
+
var shiftNumber = BigInt(32);
|
|
1119
|
+
var mask = BigInt(4.294967295E9);
|
|
1120
|
+
var bigNumber = abs(value);
|
|
1121
|
+
var hashCode = 0;
|
|
1122
|
+
var tmp;
|
|
1123
|
+
// Inline function 'kotlin.js.internal.isNegative' call
|
|
1124
|
+
if (value < 0) {
|
|
1125
|
+
tmp = -1;
|
|
1126
|
+
} else {
|
|
1127
|
+
tmp = 1;
|
|
1128
|
+
}
|
|
1129
|
+
var signum = tmp;
|
|
1130
|
+
$l$loop: while (true) {
|
|
1131
|
+
// Inline function 'kotlin.js.internal.isZero' call
|
|
1132
|
+
if (!!(bigNumber == 0)) {
|
|
1133
|
+
break $l$loop;
|
|
1134
|
+
}
|
|
1135
|
+
// Inline function 'kotlin.js.internal.and' call
|
|
1136
|
+
// Inline function 'kotlin.js.jsBitwiseAnd' call
|
|
1137
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1138
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1139
|
+
// Inline function 'kotlin.js.internal.toNumber' call
|
|
1140
|
+
var self_0 = bigNumber & mask;
|
|
1141
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1142
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1143
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1144
|
+
var chunk = Number(self_0);
|
|
1145
|
+
hashCode = imul(31, hashCode) + chunk | 0;
|
|
1146
|
+
// Inline function 'kotlin.js.internal.shr' call
|
|
1147
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1148
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1149
|
+
bigNumber = bigNumber >> shiftNumber;
|
|
1150
|
+
}
|
|
1151
|
+
return imul(hashCode, signum);
|
|
1152
|
+
}
|
|
1153
|
+
function getSymbolHashCode(value) {
|
|
1154
|
+
var hashCodeMap = symbolIsSharable(value) ? getSymbolMap() : getSymbolWeakMap();
|
|
1155
|
+
var cachedHashCode = hashCodeMap.get(value);
|
|
1156
|
+
if (cachedHashCode !== VOID)
|
|
1157
|
+
return cachedHashCode;
|
|
1158
|
+
var hash = calculateRandomHash();
|
|
1159
|
+
hashCodeMap.set(value, hash);
|
|
1160
|
+
return hash;
|
|
1161
|
+
}
|
|
1162
|
+
function symbolIsSharable(symbol) {
|
|
1163
|
+
return Symbol.keyFor(symbol) != VOID;
|
|
1164
|
+
}
|
|
1165
|
+
function getSymbolMap() {
|
|
1166
|
+
if (symbolMap === VOID) {
|
|
1167
|
+
symbolMap = new Map();
|
|
1168
|
+
}
|
|
1169
|
+
return symbolMap;
|
|
1170
|
+
}
|
|
1171
|
+
function getSymbolWeakMap() {
|
|
1172
|
+
if (symbolWeakMap === VOID) {
|
|
1173
|
+
symbolWeakMap = new WeakMap();
|
|
1174
|
+
}
|
|
1175
|
+
return symbolWeakMap;
|
|
1176
|
+
}
|
|
1177
|
+
var symbolMap;
|
|
1178
|
+
var symbolWeakMap;
|
|
1179
|
+
function unboxIntrinsic(x) {
|
|
1180
|
+
var message = 'Should be lowered';
|
|
1181
|
+
throw IllegalStateException_init_$Create$_0(toString_1(message));
|
|
1182
|
+
}
|
|
1183
|
+
function captureStack(instance, constructorFunction) {
|
|
1184
|
+
if (Error.captureStackTrace != null) {
|
|
1185
|
+
Error.captureStackTrace(instance, constructorFunction);
|
|
1186
|
+
} else {
|
|
1187
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1188
|
+
instance.stack = (new Error()).stack;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
function protoOf(constructor) {
|
|
1192
|
+
return constructor.prototype;
|
|
1193
|
+
}
|
|
1194
|
+
function defineMessage(message, cause) {
|
|
1195
|
+
var tmp;
|
|
1196
|
+
if (isUndefined(message)) {
|
|
1197
|
+
var tmp_0;
|
|
1198
|
+
if (isUndefined(cause)) {
|
|
1199
|
+
tmp_0 = message;
|
|
1200
|
+
} else {
|
|
1201
|
+
var tmp1_elvis_lhs = cause == null ? null : cause.toString();
|
|
1202
|
+
tmp_0 = tmp1_elvis_lhs == null ? VOID : tmp1_elvis_lhs;
|
|
1203
|
+
}
|
|
1204
|
+
tmp = tmp_0;
|
|
1205
|
+
} else {
|
|
1206
|
+
tmp = message == null ? VOID : message;
|
|
1207
|
+
}
|
|
1208
|
+
return tmp;
|
|
1209
|
+
}
|
|
1210
|
+
function isUndefined(value) {
|
|
1211
|
+
return value === VOID;
|
|
1212
|
+
}
|
|
1213
|
+
function extendThrowable(this_, message, cause) {
|
|
1214
|
+
defineFieldOnInstance(this_, 'message', defineMessage(message, cause));
|
|
1215
|
+
defineFieldOnInstance(this_, 'cause', cause);
|
|
1216
|
+
defineFieldOnInstance(this_, 'name', Object.getPrototypeOf(this_).constructor.name);
|
|
1217
|
+
}
|
|
1218
|
+
function defineFieldOnInstance(this_, name, value) {
|
|
1219
|
+
Object.defineProperty(this_, name, {configurable: true, writable: true, value: value});
|
|
1220
|
+
}
|
|
1221
|
+
function ensureNotNull(v) {
|
|
1222
|
+
var tmp;
|
|
1223
|
+
if (v == null) {
|
|
1224
|
+
THROW_NPE();
|
|
1225
|
+
} else {
|
|
1226
|
+
tmp = v;
|
|
1227
|
+
}
|
|
1228
|
+
return tmp;
|
|
1229
|
+
}
|
|
1230
|
+
function THROW_NPE() {
|
|
1231
|
+
throw NullPointerException_init_$Create$();
|
|
1232
|
+
}
|
|
1233
|
+
function THROW_CCE() {
|
|
1234
|
+
throw ClassCastException_init_$Create$();
|
|
1235
|
+
}
|
|
1236
|
+
function createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
|
|
1237
|
+
var undef = VOID;
|
|
1238
|
+
var iid = kind === 'interface' ? generateInterfaceId() : VOID;
|
|
1239
|
+
return {kind: kind, simpleName: name, associatedObjectKey: associatedObjectKey, associatedObjects: associatedObjects, suspendArity: suspendArity, $kClass$: undef, defaultConstructor: defaultConstructor, iid: iid};
|
|
1240
|
+
}
|
|
1241
|
+
function generateInterfaceId() {
|
|
1242
|
+
if (globalInterfaceId === VOID) {
|
|
1243
|
+
globalInterfaceId = 0;
|
|
1244
|
+
}
|
|
1245
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1246
|
+
globalInterfaceId = globalInterfaceId + 1 | 0;
|
|
1247
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1248
|
+
return globalInterfaceId;
|
|
1249
|
+
}
|
|
1250
|
+
var globalInterfaceId;
|
|
1251
|
+
function initMetadataForClass(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1252
|
+
var kind = 'class';
|
|
1253
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
1254
|
+
}
|
|
1255
|
+
function initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1256
|
+
if (!(parent == null)) {
|
|
1257
|
+
ctor.prototype = Object.create(parent.prototype);
|
|
1258
|
+
ctor.prototype.constructor = ctor;
|
|
1259
|
+
}
|
|
1260
|
+
var metadata = createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity);
|
|
1261
|
+
ctor.$metadata$ = metadata;
|
|
1262
|
+
if (!(interfaces == null)) {
|
|
1263
|
+
var receiver = !equals(metadata.iid, VOID) ? ctor : ctor.prototype;
|
|
1264
|
+
receiver.$imask$ = implement(interfaces);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
function initMetadataForObject(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1268
|
+
var kind = 'object';
|
|
1269
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
1270
|
+
}
|
|
1271
|
+
function initMetadataForInterface(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1272
|
+
var kind = 'interface';
|
|
1273
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
1274
|
+
}
|
|
1275
|
+
function initMetadataForLambda(ctor, parent, interfaces, suspendArity) {
|
|
1276
|
+
initMetadataForClass(ctor, 'Lambda', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1277
|
+
}
|
|
1278
|
+
function initMetadataForCoroutine(ctor, parent, interfaces, suspendArity) {
|
|
1279
|
+
initMetadataForClass(ctor, 'Coroutine', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1280
|
+
}
|
|
1281
|
+
function initMetadataForFunctionReference(ctor, parent, interfaces, suspendArity) {
|
|
1282
|
+
initMetadataForClass(ctor, 'FunctionReference', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1283
|
+
}
|
|
1284
|
+
function initMetadataForCompanion(ctor, parent, interfaces, suspendArity) {
|
|
1285
|
+
initMetadataForObject(ctor, 'Companion', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1286
|
+
}
|
|
1287
|
+
function numberToInt(a) {
|
|
1288
|
+
var tmp;
|
|
1289
|
+
if (a instanceof Long) {
|
|
1290
|
+
tmp = convertToInt(a);
|
|
1291
|
+
} else {
|
|
1292
|
+
tmp = doubleToInt(a);
|
|
1293
|
+
}
|
|
1294
|
+
return tmp;
|
|
1295
|
+
}
|
|
1296
|
+
function doubleToInt(a) {
|
|
1297
|
+
var tmp;
|
|
1298
|
+
if (a > 2147483647) {
|
|
1299
|
+
tmp = 2147483647;
|
|
1300
|
+
} else if (a < -2147483648) {
|
|
1301
|
+
tmp = -2147483648;
|
|
1302
|
+
} else {
|
|
1303
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
1304
|
+
tmp = a | 0;
|
|
1305
|
+
}
|
|
1306
|
+
return tmp;
|
|
1307
|
+
}
|
|
1308
|
+
function isArrayish(o) {
|
|
1309
|
+
return isJsArray(o) || isView(o);
|
|
1310
|
+
}
|
|
1311
|
+
function isJsArray(obj) {
|
|
1312
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1313
|
+
return Array.isArray(obj);
|
|
1314
|
+
}
|
|
1315
|
+
function isInterface(obj, iface) {
|
|
1316
|
+
return isInterfaceImpl(obj, iface.$metadata$.iid);
|
|
1317
|
+
}
|
|
1318
|
+
function isInterfaceImpl(obj, iface) {
|
|
1319
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1320
|
+
var tmp0_elvis_lhs = obj.$imask$;
|
|
1321
|
+
var tmp;
|
|
1322
|
+
if (tmp0_elvis_lhs == null) {
|
|
1323
|
+
return false;
|
|
1324
|
+
} else {
|
|
1325
|
+
tmp = tmp0_elvis_lhs;
|
|
1326
|
+
}
|
|
1327
|
+
var mask = tmp;
|
|
1328
|
+
return isBitSet(mask, iface);
|
|
1329
|
+
}
|
|
1330
|
+
function isArray(obj) {
|
|
1331
|
+
var tmp;
|
|
1332
|
+
if (isJsArray(obj)) {
|
|
1333
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1334
|
+
tmp = !obj.$type$;
|
|
1335
|
+
} else {
|
|
1336
|
+
tmp = false;
|
|
1337
|
+
}
|
|
1338
|
+
return tmp;
|
|
1339
|
+
}
|
|
1340
|
+
function isNumber(a) {
|
|
1341
|
+
var tmp;
|
|
1342
|
+
if (typeof a === 'number') {
|
|
1343
|
+
tmp = true;
|
|
1344
|
+
} else {
|
|
1345
|
+
tmp = a instanceof Long;
|
|
1346
|
+
}
|
|
1347
|
+
return tmp;
|
|
1348
|
+
}
|
|
1349
|
+
function isComparable(value) {
|
|
1350
|
+
var type = typeof value;
|
|
1351
|
+
return type === 'string' || type === 'boolean' || isNumber(value) || isInterface(value, Comparable);
|
|
1352
|
+
}
|
|
1353
|
+
function isCharSequence(value) {
|
|
1354
|
+
return typeof value === 'string' || isInterface(value, CharSequence);
|
|
1355
|
+
}
|
|
1356
|
+
function get_VOID() {
|
|
1357
|
+
_init_properties_void_kt__3zg9as();
|
|
1358
|
+
return VOID;
|
|
1359
|
+
}
|
|
1360
|
+
var VOID;
|
|
1361
|
+
var properties_initialized_void_kt_e4ret2;
|
|
1362
|
+
function _init_properties_void_kt__3zg9as() {
|
|
1363
|
+
if (!properties_initialized_void_kt_e4ret2) {
|
|
1364
|
+
properties_initialized_void_kt_e4ret2 = true;
|
|
1365
|
+
VOID = void 0;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
function asList(_this__u8e3s4) {
|
|
1369
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1370
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1371
|
+
return new ArrayList(_this__u8e3s4);
|
|
1372
|
+
}
|
|
1373
|
+
function copyOf(_this__u8e3s4, newSize) {
|
|
1374
|
+
// Inline function 'kotlin.require' call
|
|
1375
|
+
if (!(newSize >= 0)) {
|
|
1376
|
+
var message = 'Invalid new array size: ' + newSize + '.';
|
|
1377
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1378
|
+
}
|
|
1379
|
+
return arrayCopyResize(_this__u8e3s4, newSize, null);
|
|
1380
|
+
}
|
|
1381
|
+
function copyOf_0(_this__u8e3s4, newSize) {
|
|
1382
|
+
// Inline function 'kotlin.require' call
|
|
1383
|
+
if (!(newSize >= 0)) {
|
|
1384
|
+
var message = 'Invalid new array size: ' + newSize + '.';
|
|
1385
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1386
|
+
}
|
|
1387
|
+
return fillFrom(_this__u8e3s4, new Int32Array(newSize));
|
|
1388
|
+
}
|
|
1389
|
+
function sortWith(_this__u8e3s4, comparator) {
|
|
1390
|
+
if (_this__u8e3s4.length > 1) {
|
|
1391
|
+
sortArrayWith(_this__u8e3s4, comparator);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
function Comparator() {
|
|
1395
|
+
}
|
|
1396
|
+
function isNaN_0(_this__u8e3s4) {
|
|
1397
|
+
return !(_this__u8e3s4 === _this__u8e3s4);
|
|
1398
|
+
}
|
|
1399
|
+
function takeHighestOneBit(_this__u8e3s4) {
|
|
1400
|
+
var tmp;
|
|
1401
|
+
if (_this__u8e3s4 === 0) {
|
|
1402
|
+
tmp = 0;
|
|
1403
|
+
} else {
|
|
1404
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1405
|
+
tmp = 1 << (31 - clz32(_this__u8e3s4) | 0);
|
|
1406
|
+
}
|
|
1407
|
+
return tmp;
|
|
1408
|
+
}
|
|
1409
|
+
function Unit() {
|
|
1410
|
+
}
|
|
1411
|
+
protoOf(Unit).toString = function () {
|
|
1412
|
+
return 'kotlin.Unit';
|
|
1413
|
+
};
|
|
1414
|
+
var Unit_instance;
|
|
1415
|
+
function Unit_getInstance() {
|
|
1416
|
+
return Unit_instance;
|
|
1417
|
+
}
|
|
1418
|
+
function collectionToArray(collection) {
|
|
1419
|
+
return collectionToArrayCommonImpl(collection);
|
|
1420
|
+
}
|
|
1421
|
+
function listOf(element) {
|
|
1422
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1423
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1424
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1425
|
+
var tmp$ret$2 = [element];
|
|
1426
|
+
return new ArrayList(tmp$ret$2);
|
|
1427
|
+
}
|
|
1428
|
+
function copyToArray(collection) {
|
|
1429
|
+
var tmp;
|
|
1430
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1431
|
+
if (collection.toArray !== undefined) {
|
|
1432
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1433
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1434
|
+
tmp = collection.toArray();
|
|
1435
|
+
} else {
|
|
1436
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1437
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1438
|
+
tmp = collectionToArray(collection);
|
|
1439
|
+
}
|
|
1440
|
+
return tmp;
|
|
1441
|
+
}
|
|
1442
|
+
function sortWith_0(_this__u8e3s4, comparator) {
|
|
1443
|
+
collectionsSort(_this__u8e3s4, comparator);
|
|
1444
|
+
}
|
|
1445
|
+
function collectionsSort(list, comparator) {
|
|
1446
|
+
if (list.f() <= 1)
|
|
1447
|
+
return Unit_instance;
|
|
1448
|
+
var array = copyToArray(list);
|
|
1449
|
+
sortArrayWith(array, comparator);
|
|
1450
|
+
var inductionVariable = 0;
|
|
1451
|
+
var last = array.length;
|
|
1452
|
+
if (inductionVariable < last)
|
|
1453
|
+
do {
|
|
1454
|
+
var i = inductionVariable;
|
|
1455
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1456
|
+
list.y(i, array[i]);
|
|
1457
|
+
}
|
|
1458
|
+
while (inductionVariable < last);
|
|
1459
|
+
}
|
|
1460
|
+
function AbstractMutableCollection() {
|
|
1461
|
+
AbstractCollection.call(this);
|
|
1462
|
+
}
|
|
1463
|
+
protoOf(AbstractMutableCollection).toJSON = function () {
|
|
1464
|
+
return this.toArray();
|
|
1465
|
+
};
|
|
1466
|
+
protoOf(AbstractMutableCollection).z = function () {
|
|
1467
|
+
};
|
|
1468
|
+
function IteratorImpl($outer) {
|
|
1469
|
+
this.c1_1 = $outer;
|
|
1470
|
+
this.a1_1 = 0;
|
|
1471
|
+
this.b1_1 = -1;
|
|
1472
|
+
}
|
|
1473
|
+
protoOf(IteratorImpl).d = function () {
|
|
1474
|
+
return this.a1_1 < this.c1_1.f();
|
|
1475
|
+
};
|
|
1476
|
+
protoOf(IteratorImpl).e = function () {
|
|
1477
|
+
if (!this.d())
|
|
1478
|
+
throw NoSuchElementException_init_$Create$();
|
|
1479
|
+
var tmp = this;
|
|
1480
|
+
var _unary__edvuaz = this.a1_1;
|
|
1481
|
+
this.a1_1 = _unary__edvuaz + 1 | 0;
|
|
1482
|
+
tmp.b1_1 = _unary__edvuaz;
|
|
1483
|
+
return this.c1_1.g(this.b1_1);
|
|
1484
|
+
};
|
|
1485
|
+
function AbstractMutableList() {
|
|
1486
|
+
AbstractMutableCollection.call(this);
|
|
1487
|
+
this.d1_1 = 0;
|
|
1488
|
+
}
|
|
1489
|
+
protoOf(AbstractMutableList).i = function (element) {
|
|
1490
|
+
this.z();
|
|
1491
|
+
this.e1(this.f(), element);
|
|
1492
|
+
return true;
|
|
1493
|
+
};
|
|
1494
|
+
protoOf(AbstractMutableList).c = function () {
|
|
1495
|
+
return new IteratorImpl(this);
|
|
1496
|
+
};
|
|
1497
|
+
protoOf(AbstractMutableList).j = function (element) {
|
|
1498
|
+
return this.f1(element) >= 0;
|
|
1499
|
+
};
|
|
1500
|
+
protoOf(AbstractMutableList).f1 = function (element) {
|
|
1501
|
+
var tmp$ret$1;
|
|
1502
|
+
$l$block: {
|
|
1503
|
+
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
1504
|
+
var index = 0;
|
|
1505
|
+
var _iterator__ex2g4s = this.c();
|
|
1506
|
+
while (_iterator__ex2g4s.d()) {
|
|
1507
|
+
var item = _iterator__ex2g4s.e();
|
|
1508
|
+
if (equals(item, element)) {
|
|
1509
|
+
tmp$ret$1 = index;
|
|
1510
|
+
break $l$block;
|
|
1511
|
+
}
|
|
1512
|
+
index = index + 1 | 0;
|
|
1513
|
+
}
|
|
1514
|
+
tmp$ret$1 = -1;
|
|
1515
|
+
}
|
|
1516
|
+
return tmp$ret$1;
|
|
1517
|
+
};
|
|
1518
|
+
protoOf(AbstractMutableList).equals = function (other) {
|
|
1519
|
+
if (other === this)
|
|
1520
|
+
return true;
|
|
1521
|
+
if (!(!(other == null) ? isInterface(other, KtList) : false))
|
|
1522
|
+
return false;
|
|
1523
|
+
return Companion_instance_2.h1(this, other);
|
|
1524
|
+
};
|
|
1525
|
+
protoOf(AbstractMutableList).hashCode = function () {
|
|
1526
|
+
return Companion_instance_2.i1(this);
|
|
1527
|
+
};
|
|
1528
|
+
function AbstractMutableMap() {
|
|
1529
|
+
AbstractMap.call(this);
|
|
1530
|
+
this.l1_1 = null;
|
|
1531
|
+
this.m1_1 = null;
|
|
1532
|
+
}
|
|
1533
|
+
function AbstractMutableSet() {
|
|
1534
|
+
AbstractMutableCollection.call(this);
|
|
1535
|
+
}
|
|
1536
|
+
protoOf(AbstractMutableSet).equals = function (other) {
|
|
1537
|
+
if (other === this)
|
|
1538
|
+
return true;
|
|
1539
|
+
if (!(!(other == null) ? isInterface(other, KtSet) : false))
|
|
1540
|
+
return false;
|
|
1541
|
+
return Companion_instance_4.r1(this, other);
|
|
1542
|
+
};
|
|
1543
|
+
protoOf(AbstractMutableSet).hashCode = function () {
|
|
1544
|
+
return Companion_instance_4.s1(this);
|
|
1545
|
+
};
|
|
1546
|
+
function arrayOfUninitializedElements(capacity) {
|
|
1547
|
+
// Inline function 'kotlin.require' call
|
|
1548
|
+
if (!(capacity >= 0)) {
|
|
1549
|
+
var message = 'capacity must be non-negative.';
|
|
1550
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1551
|
+
}
|
|
1552
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1553
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1554
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1555
|
+
return Array(capacity);
|
|
1556
|
+
}
|
|
1557
|
+
function resetRange(_this__u8e3s4, fromIndex, toIndex) {
|
|
1558
|
+
// Inline function 'kotlin.js.nativeFill' call
|
|
1559
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1560
|
+
_this__u8e3s4.fill(null, fromIndex, toIndex);
|
|
1561
|
+
}
|
|
1562
|
+
function copyOfUninitializedElements(_this__u8e3s4, newSize) {
|
|
1563
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1564
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1565
|
+
return copyOf(_this__u8e3s4, newSize);
|
|
1566
|
+
}
|
|
1567
|
+
function Companion_0() {
|
|
1568
|
+
Companion_instance_0 = this;
|
|
1569
|
+
var tmp = this;
|
|
1570
|
+
// Inline function 'kotlin.also' call
|
|
1571
|
+
var this_0 = ArrayList_init_$Create$_0(0);
|
|
1572
|
+
this_0.v1_1 = true;
|
|
1573
|
+
tmp.w1_1 = this_0;
|
|
1574
|
+
}
|
|
1575
|
+
var Companion_instance_0;
|
|
1576
|
+
function Companion_getInstance_0() {
|
|
1577
|
+
if (Companion_instance_0 == null)
|
|
1578
|
+
new Companion_0();
|
|
1579
|
+
return Companion_instance_0;
|
|
1580
|
+
}
|
|
1581
|
+
function ArrayList_init_$Init$($this) {
|
|
1582
|
+
// Inline function 'kotlin.emptyArray' call
|
|
1583
|
+
var tmp$ret$0 = [];
|
|
1584
|
+
ArrayList.call($this, tmp$ret$0);
|
|
1585
|
+
return $this;
|
|
1586
|
+
}
|
|
1587
|
+
function ArrayList_init_$Create$() {
|
|
1588
|
+
return ArrayList_init_$Init$(objectCreate(protoOf(ArrayList)));
|
|
1589
|
+
}
|
|
1590
|
+
function ArrayList_init_$Init$_0(initialCapacity, $this) {
|
|
1591
|
+
// Inline function 'kotlin.emptyArray' call
|
|
1592
|
+
var tmp$ret$0 = [];
|
|
1593
|
+
ArrayList.call($this, tmp$ret$0);
|
|
1594
|
+
// Inline function 'kotlin.require' call
|
|
1595
|
+
if (!(initialCapacity >= 0)) {
|
|
1596
|
+
var message = 'Negative initial capacity: ' + initialCapacity;
|
|
1597
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1598
|
+
}
|
|
1599
|
+
return $this;
|
|
1600
|
+
}
|
|
1601
|
+
function ArrayList_init_$Create$_0(initialCapacity) {
|
|
1602
|
+
return ArrayList_init_$Init$_0(initialCapacity, objectCreate(protoOf(ArrayList)));
|
|
1603
|
+
}
|
|
1604
|
+
function ArrayList_init_$Init$_1(elements, $this) {
|
|
1605
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1606
|
+
var tmp$ret$0 = copyToArray(elements);
|
|
1607
|
+
ArrayList.call($this, tmp$ret$0);
|
|
1608
|
+
return $this;
|
|
1609
|
+
}
|
|
1610
|
+
function ArrayList_init_$Create$_1(elements) {
|
|
1611
|
+
return ArrayList_init_$Init$_1(elements, objectCreate(protoOf(ArrayList)));
|
|
1612
|
+
}
|
|
1613
|
+
function rangeCheck($this, index) {
|
|
1614
|
+
// Inline function 'kotlin.apply' call
|
|
1615
|
+
Companion_instance_2.x1(index, $this.f());
|
|
1616
|
+
return index;
|
|
1617
|
+
}
|
|
1618
|
+
function insertionRangeCheck($this, index) {
|
|
1619
|
+
// Inline function 'kotlin.apply' call
|
|
1620
|
+
Companion_instance_2.y1(index, $this.f());
|
|
1621
|
+
return index;
|
|
1622
|
+
}
|
|
1623
|
+
function ArrayList(array) {
|
|
1624
|
+
Companion_getInstance_0();
|
|
1625
|
+
AbstractMutableList.call(this);
|
|
1626
|
+
this.u1_1 = array;
|
|
1627
|
+
this.v1_1 = false;
|
|
1628
|
+
}
|
|
1629
|
+
protoOf(ArrayList).f = function () {
|
|
1630
|
+
return this.u1_1.length;
|
|
1631
|
+
};
|
|
1632
|
+
protoOf(ArrayList).g = function (index) {
|
|
1633
|
+
var tmp = this.u1_1[rangeCheck(this, index)];
|
|
1634
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1635
|
+
};
|
|
1636
|
+
protoOf(ArrayList).y = function (index, element) {
|
|
1637
|
+
this.z();
|
|
1638
|
+
rangeCheck(this, index);
|
|
1639
|
+
// Inline function 'kotlin.apply' call
|
|
1640
|
+
var this_0 = this.u1_1[index];
|
|
1641
|
+
this.u1_1[index] = element;
|
|
1642
|
+
var tmp = this_0;
|
|
1643
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1644
|
+
};
|
|
1645
|
+
protoOf(ArrayList).i = function (element) {
|
|
1646
|
+
this.z();
|
|
1647
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1648
|
+
this.u1_1.push(element);
|
|
1649
|
+
this.d1_1 = this.d1_1 + 1 | 0;
|
|
1650
|
+
return true;
|
|
1651
|
+
};
|
|
1652
|
+
protoOf(ArrayList).e1 = function (index, element) {
|
|
1653
|
+
this.z();
|
|
1654
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1655
|
+
this.u1_1.splice(insertionRangeCheck(this, index), 0, element);
|
|
1656
|
+
this.d1_1 = this.d1_1 + 1 | 0;
|
|
1657
|
+
};
|
|
1658
|
+
protoOf(ArrayList).f1 = function (element) {
|
|
1659
|
+
return indexOf(this.u1_1, element);
|
|
1660
|
+
};
|
|
1661
|
+
protoOf(ArrayList).toString = function () {
|
|
1662
|
+
return arrayToString(this.u1_1);
|
|
1663
|
+
};
|
|
1664
|
+
protoOf(ArrayList).z1 = function () {
|
|
1665
|
+
return [].slice.call(this.u1_1);
|
|
1666
|
+
};
|
|
1667
|
+
protoOf(ArrayList).toArray = function () {
|
|
1668
|
+
return this.z1();
|
|
1669
|
+
};
|
|
1670
|
+
protoOf(ArrayList).z = function () {
|
|
1671
|
+
if (this.v1_1)
|
|
1672
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
1673
|
+
};
|
|
1674
|
+
var _stableSortingIsSupported;
|
|
1675
|
+
function sortArrayWith(array, comparator) {
|
|
1676
|
+
if (getStableSortingIsSupported()) {
|
|
1677
|
+
var comparison = sortArrayWith$lambda(comparator);
|
|
1678
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1679
|
+
array.sort(comparison);
|
|
1680
|
+
} else {
|
|
1681
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1682
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1683
|
+
mergeSort(array, 0, get_lastIndex(array), comparator);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
function getStableSortingIsSupported() {
|
|
1687
|
+
var tmp0_safe_receiver = _stableSortingIsSupported;
|
|
1688
|
+
if (tmp0_safe_receiver == null)
|
|
1689
|
+
null;
|
|
1690
|
+
else {
|
|
1691
|
+
// Inline function 'kotlin.let' call
|
|
1692
|
+
return tmp0_safe_receiver;
|
|
1693
|
+
}
|
|
1694
|
+
_stableSortingIsSupported = false;
|
|
1695
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1696
|
+
var array = [];
|
|
1697
|
+
var inductionVariable = 0;
|
|
1698
|
+
if (inductionVariable < 600)
|
|
1699
|
+
do {
|
|
1700
|
+
var index = inductionVariable;
|
|
1701
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1702
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1703
|
+
array.push(index);
|
|
1704
|
+
}
|
|
1705
|
+
while (inductionVariable < 600);
|
|
1706
|
+
var comparison = getStableSortingIsSupported$lambda;
|
|
1707
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1708
|
+
array.sort(comparison);
|
|
1709
|
+
var inductionVariable_0 = 1;
|
|
1710
|
+
var last = array.length;
|
|
1711
|
+
if (inductionVariable_0 < last)
|
|
1712
|
+
do {
|
|
1713
|
+
var index_0 = inductionVariable_0;
|
|
1714
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1715
|
+
var a = array[index_0 - 1 | 0];
|
|
1716
|
+
var b = array[index_0];
|
|
1717
|
+
if ((a & 3) === (b & 3) && a >= b)
|
|
1718
|
+
return false;
|
|
1719
|
+
}
|
|
1720
|
+
while (inductionVariable_0 < last);
|
|
1721
|
+
_stableSortingIsSupported = true;
|
|
1722
|
+
return true;
|
|
1723
|
+
}
|
|
1724
|
+
function mergeSort(array, start, endInclusive, comparator) {
|
|
1725
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1726
|
+
var size = array.length;
|
|
1727
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1728
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1729
|
+
var buffer = Array(size);
|
|
1730
|
+
var result = mergeSort_0(array, buffer, start, endInclusive, comparator);
|
|
1731
|
+
if (!(result === array)) {
|
|
1732
|
+
var inductionVariable = start;
|
|
1733
|
+
if (inductionVariable <= endInclusive)
|
|
1734
|
+
do {
|
|
1735
|
+
var i = inductionVariable;
|
|
1736
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1737
|
+
array[i] = result[i];
|
|
1738
|
+
}
|
|
1739
|
+
while (!(i === endInclusive));
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
function mergeSort_0(array, buffer, start, end, comparator) {
|
|
1743
|
+
if (start === end) {
|
|
1744
|
+
return array;
|
|
1745
|
+
}
|
|
1746
|
+
var median = (start + end | 0) / 2 | 0;
|
|
1747
|
+
var left = mergeSort_0(array, buffer, start, median, comparator);
|
|
1748
|
+
var right = mergeSort_0(array, buffer, median + 1 | 0, end, comparator);
|
|
1749
|
+
var target = left === buffer ? array : buffer;
|
|
1750
|
+
var leftIndex = start;
|
|
1751
|
+
var rightIndex = median + 1 | 0;
|
|
1752
|
+
var inductionVariable = start;
|
|
1753
|
+
if (inductionVariable <= end)
|
|
1754
|
+
do {
|
|
1755
|
+
var i = inductionVariable;
|
|
1756
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1757
|
+
if (leftIndex <= median && rightIndex <= end) {
|
|
1758
|
+
var leftValue = left[leftIndex];
|
|
1759
|
+
var rightValue = right[rightIndex];
|
|
1760
|
+
if (comparator.compare(leftValue, rightValue) <= 0) {
|
|
1761
|
+
target[i] = leftValue;
|
|
1762
|
+
leftIndex = leftIndex + 1 | 0;
|
|
1763
|
+
} else {
|
|
1764
|
+
target[i] = rightValue;
|
|
1765
|
+
rightIndex = rightIndex + 1 | 0;
|
|
1766
|
+
}
|
|
1767
|
+
} else if (leftIndex <= median) {
|
|
1768
|
+
target[i] = left[leftIndex];
|
|
1769
|
+
leftIndex = leftIndex + 1 | 0;
|
|
1770
|
+
} else {
|
|
1771
|
+
target[i] = right[rightIndex];
|
|
1772
|
+
rightIndex = rightIndex + 1 | 0;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
while (!(i === end));
|
|
1776
|
+
return target;
|
|
1777
|
+
}
|
|
1778
|
+
function sortArrayWith$lambda($comparator) {
|
|
1779
|
+
return function (a, b) {
|
|
1780
|
+
return $comparator.compare(a, b);
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
function getStableSortingIsSupported$lambda(a, b) {
|
|
1784
|
+
return (a & 3) - (b & 3) | 0;
|
|
1785
|
+
}
|
|
1786
|
+
function HashMap_init_$Init$(internalMap, $this) {
|
|
1787
|
+
AbstractMutableMap.call($this);
|
|
1788
|
+
HashMap.call($this);
|
|
1789
|
+
$this.e2_1 = internalMap;
|
|
1790
|
+
return $this;
|
|
1791
|
+
}
|
|
1792
|
+
function HashMap_init_$Init$_0($this) {
|
|
1793
|
+
HashMap_init_$Init$(InternalHashMap_init_$Create$(), $this);
|
|
1794
|
+
return $this;
|
|
1795
|
+
}
|
|
1796
|
+
function HashMap_init_$Create$() {
|
|
1797
|
+
return HashMap_init_$Init$_0(objectCreate(protoOf(HashMap)));
|
|
1798
|
+
}
|
|
1799
|
+
protoOf(HashMap).n = function (key) {
|
|
1800
|
+
return this.e2_1.g2(key);
|
|
1801
|
+
};
|
|
1802
|
+
protoOf(HashMap).p = function () {
|
|
1803
|
+
var tmp0_elvis_lhs = this.f2_1;
|
|
1804
|
+
var tmp;
|
|
1805
|
+
if (tmp0_elvis_lhs == null) {
|
|
1806
|
+
// Inline function 'kotlin.also' call
|
|
1807
|
+
var this_0 = new HashMapEntrySet(this.e2_1);
|
|
1808
|
+
this.f2_1 = this_0;
|
|
1809
|
+
tmp = this_0;
|
|
1810
|
+
} else {
|
|
1811
|
+
tmp = tmp0_elvis_lhs;
|
|
1812
|
+
}
|
|
1813
|
+
return tmp;
|
|
1814
|
+
};
|
|
1815
|
+
protoOf(HashMap).o = function (key) {
|
|
1816
|
+
return this.e2_1.o(key);
|
|
1817
|
+
};
|
|
1818
|
+
protoOf(HashMap).n1 = function (key, value) {
|
|
1819
|
+
return this.e2_1.n1(key, value);
|
|
1820
|
+
};
|
|
1821
|
+
protoOf(HashMap).f = function () {
|
|
1822
|
+
return this.e2_1.f();
|
|
1823
|
+
};
|
|
1824
|
+
function HashMap() {
|
|
1825
|
+
this.f2_1 = null;
|
|
1826
|
+
}
|
|
1827
|
+
function HashMapEntrySet(backing) {
|
|
1828
|
+
HashMapEntrySetBase.call(this, backing);
|
|
1829
|
+
}
|
|
1830
|
+
protoOf(HashMapEntrySet).c = function () {
|
|
1831
|
+
return this.i2_1.j2();
|
|
1832
|
+
};
|
|
1833
|
+
function HashMapEntrySetBase(backing) {
|
|
1834
|
+
AbstractMutableSet.call(this);
|
|
1835
|
+
this.i2_1 = backing;
|
|
1836
|
+
}
|
|
1837
|
+
protoOf(HashMapEntrySetBase).f = function () {
|
|
1838
|
+
return this.i2_1.f();
|
|
1839
|
+
};
|
|
1840
|
+
protoOf(HashMapEntrySetBase).h = function () {
|
|
1841
|
+
return this.i2_1.f() === 0;
|
|
1842
|
+
};
|
|
1843
|
+
protoOf(HashMapEntrySetBase).k2 = function (element) {
|
|
1844
|
+
return this.i2_1.m2(element);
|
|
1845
|
+
};
|
|
1846
|
+
protoOf(HashMapEntrySetBase).j = function (element) {
|
|
1847
|
+
if (!(!(element == null) ? isInterface(element, Entry) : false))
|
|
1848
|
+
return false;
|
|
1849
|
+
return this.k2((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
1850
|
+
};
|
|
1851
|
+
protoOf(HashMapEntrySetBase).l2 = function (element) {
|
|
1852
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
1853
|
+
};
|
|
1854
|
+
protoOf(HashMapEntrySetBase).i = function (element) {
|
|
1855
|
+
return this.l2((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
1856
|
+
};
|
|
1857
|
+
protoOf(HashMapEntrySetBase).k = function (elements) {
|
|
1858
|
+
return this.i2_1.n2(elements);
|
|
1859
|
+
};
|
|
1860
|
+
function computeHashSize($this, capacity) {
|
|
1861
|
+
return takeHighestOneBit(imul(coerceAtLeast(capacity, 1), 3));
|
|
1862
|
+
}
|
|
1863
|
+
function computeShift($this, hashSize) {
|
|
1864
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1865
|
+
return clz32(hashSize) + 1 | 0;
|
|
1866
|
+
}
|
|
1867
|
+
function checkForComodification($this) {
|
|
1868
|
+
if (!($this.y2_1.v2_1 === $this.a3_1))
|
|
1869
|
+
throw ConcurrentModificationException_init_$Create$_0('The backing map has been modified after this entry was obtained.');
|
|
1870
|
+
}
|
|
1871
|
+
function InternalHashMap_init_$Init$($this) {
|
|
1872
|
+
InternalHashMap_init_$Init$_0(8, $this);
|
|
1873
|
+
return $this;
|
|
1874
|
+
}
|
|
1875
|
+
function InternalHashMap_init_$Create$() {
|
|
1876
|
+
return InternalHashMap_init_$Init$(objectCreate(protoOf(InternalHashMap)));
|
|
1877
|
+
}
|
|
1878
|
+
function InternalHashMap_init_$Init$_0(initialCapacity, $this) {
|
|
1879
|
+
InternalHashMap.call($this, arrayOfUninitializedElements(initialCapacity), null, new Int32Array(initialCapacity), new Int32Array(computeHashSize(Companion_instance_1, initialCapacity)), 2, 0);
|
|
1880
|
+
return $this;
|
|
1881
|
+
}
|
|
1882
|
+
function _get_capacity__a9k9f3($this) {
|
|
1883
|
+
return $this.o2_1.length;
|
|
1884
|
+
}
|
|
1885
|
+
function _get_hashSize__tftcho($this) {
|
|
1886
|
+
return $this.r2_1.length;
|
|
1887
|
+
}
|
|
1888
|
+
function registerModification($this) {
|
|
1889
|
+
$this.v2_1 = $this.v2_1 + 1 | 0;
|
|
1890
|
+
}
|
|
1891
|
+
function ensureExtraCapacity($this, n) {
|
|
1892
|
+
if (shouldCompact($this, n)) {
|
|
1893
|
+
compact($this, true);
|
|
1894
|
+
} else {
|
|
1895
|
+
ensureCapacity($this, $this.t2_1 + n | 0);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
function shouldCompact($this, extraCapacity) {
|
|
1899
|
+
var spareCapacity = _get_capacity__a9k9f3($this) - $this.t2_1 | 0;
|
|
1900
|
+
var gaps = $this.t2_1 - $this.f() | 0;
|
|
1901
|
+
return spareCapacity < extraCapacity && (gaps + spareCapacity | 0) >= extraCapacity && gaps >= (_get_capacity__a9k9f3($this) / 4 | 0);
|
|
1902
|
+
}
|
|
1903
|
+
function ensureCapacity($this, minCapacity) {
|
|
1904
|
+
if (minCapacity < 0)
|
|
1905
|
+
throw RuntimeException_init_$Create$_0('too many elements');
|
|
1906
|
+
if (minCapacity > _get_capacity__a9k9f3($this)) {
|
|
1907
|
+
var newSize = Companion_instance_2.b3(_get_capacity__a9k9f3($this), minCapacity);
|
|
1908
|
+
$this.o2_1 = copyOfUninitializedElements($this.o2_1, newSize);
|
|
1909
|
+
var tmp = $this;
|
|
1910
|
+
var tmp0_safe_receiver = $this.p2_1;
|
|
1911
|
+
tmp.p2_1 = tmp0_safe_receiver == null ? null : copyOfUninitializedElements(tmp0_safe_receiver, newSize);
|
|
1912
|
+
$this.q2_1 = copyOf_0($this.q2_1, newSize);
|
|
1913
|
+
var newHashSize = computeHashSize(Companion_instance_1, newSize);
|
|
1914
|
+
if (newHashSize > _get_hashSize__tftcho($this)) {
|
|
1915
|
+
rehash($this, newHashSize);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
function allocateValuesArray($this) {
|
|
1920
|
+
var curValuesArray = $this.p2_1;
|
|
1921
|
+
if (!(curValuesArray == null))
|
|
1922
|
+
return curValuesArray;
|
|
1923
|
+
var newValuesArray = arrayOfUninitializedElements(_get_capacity__a9k9f3($this));
|
|
1924
|
+
$this.p2_1 = newValuesArray;
|
|
1925
|
+
return newValuesArray;
|
|
1926
|
+
}
|
|
1927
|
+
function hash($this, key) {
|
|
1928
|
+
return key == null ? 0 : imul(hashCode_0(key), -1640531527) >>> $this.u2_1 | 0;
|
|
1929
|
+
}
|
|
1930
|
+
function compact($this, updateHashArray) {
|
|
1931
|
+
var i = 0;
|
|
1932
|
+
var j = 0;
|
|
1933
|
+
var valuesArray = $this.p2_1;
|
|
1934
|
+
while (i < $this.t2_1) {
|
|
1935
|
+
var hash = $this.q2_1[i];
|
|
1936
|
+
if (hash >= 0) {
|
|
1937
|
+
$this.o2_1[j] = $this.o2_1[i];
|
|
1938
|
+
if (!(valuesArray == null)) {
|
|
1939
|
+
valuesArray[j] = valuesArray[i];
|
|
1940
|
+
}
|
|
1941
|
+
if (updateHashArray) {
|
|
1942
|
+
$this.q2_1[j] = hash;
|
|
1943
|
+
$this.r2_1[hash] = j + 1 | 0;
|
|
1944
|
+
}
|
|
1945
|
+
j = j + 1 | 0;
|
|
1946
|
+
}
|
|
1947
|
+
i = i + 1 | 0;
|
|
1948
|
+
}
|
|
1949
|
+
resetRange($this.o2_1, j, $this.t2_1);
|
|
1950
|
+
if (valuesArray == null)
|
|
1951
|
+
null;
|
|
1952
|
+
else {
|
|
1953
|
+
resetRange(valuesArray, j, $this.t2_1);
|
|
1954
|
+
}
|
|
1955
|
+
$this.t2_1 = j;
|
|
1956
|
+
}
|
|
1957
|
+
function rehash($this, newHashSize) {
|
|
1958
|
+
registerModification($this);
|
|
1959
|
+
if ($this.t2_1 > $this.w2_1) {
|
|
1960
|
+
compact($this, false);
|
|
1961
|
+
}
|
|
1962
|
+
$this.r2_1 = new Int32Array(newHashSize);
|
|
1963
|
+
$this.u2_1 = computeShift(Companion_instance_1, newHashSize);
|
|
1964
|
+
var i = 0;
|
|
1965
|
+
while (i < $this.t2_1) {
|
|
1966
|
+
var _unary__edvuaz = i;
|
|
1967
|
+
i = _unary__edvuaz + 1 | 0;
|
|
1968
|
+
if (!putRehash($this, _unary__edvuaz)) {
|
|
1969
|
+
throw IllegalStateException_init_$Create$_0('This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?');
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
function putRehash($this, i) {
|
|
1974
|
+
var hash_0 = hash($this, $this.o2_1[i]);
|
|
1975
|
+
var probesLeft = $this.s2_1;
|
|
1976
|
+
while (true) {
|
|
1977
|
+
var index = $this.r2_1[hash_0];
|
|
1978
|
+
if (index === 0) {
|
|
1979
|
+
$this.r2_1[hash_0] = i + 1 | 0;
|
|
1980
|
+
$this.q2_1[i] = hash_0;
|
|
1981
|
+
return true;
|
|
1982
|
+
}
|
|
1983
|
+
probesLeft = probesLeft - 1 | 0;
|
|
1984
|
+
if (probesLeft < 0)
|
|
1985
|
+
return false;
|
|
1986
|
+
var _unary__edvuaz = hash_0;
|
|
1987
|
+
hash_0 = _unary__edvuaz - 1 | 0;
|
|
1988
|
+
if (_unary__edvuaz === 0)
|
|
1989
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
function findKey($this, key) {
|
|
1993
|
+
var hash_0 = hash($this, key);
|
|
1994
|
+
var probesLeft = $this.s2_1;
|
|
1995
|
+
while (true) {
|
|
1996
|
+
var index = $this.r2_1[hash_0];
|
|
1997
|
+
if (index === 0)
|
|
1998
|
+
return -1;
|
|
1999
|
+
if (index > 0 && equals($this.o2_1[index - 1 | 0], key))
|
|
2000
|
+
return index - 1 | 0;
|
|
2001
|
+
probesLeft = probesLeft - 1 | 0;
|
|
2002
|
+
if (probesLeft < 0)
|
|
2003
|
+
return -1;
|
|
2004
|
+
var _unary__edvuaz = hash_0;
|
|
2005
|
+
hash_0 = _unary__edvuaz - 1 | 0;
|
|
2006
|
+
if (_unary__edvuaz === 0)
|
|
2007
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
function addKey($this, key) {
|
|
2011
|
+
$this.c3();
|
|
2012
|
+
retry: while (true) {
|
|
2013
|
+
var hash_0 = hash($this, key);
|
|
2014
|
+
var tentativeMaxProbeDistance = coerceAtMost(imul($this.s2_1, 2), _get_hashSize__tftcho($this) / 2 | 0);
|
|
2015
|
+
var probeDistance = 0;
|
|
2016
|
+
while (true) {
|
|
2017
|
+
var index = $this.r2_1[hash_0];
|
|
2018
|
+
if (index <= 0) {
|
|
2019
|
+
if ($this.t2_1 >= _get_capacity__a9k9f3($this)) {
|
|
2020
|
+
ensureExtraCapacity($this, 1);
|
|
2021
|
+
continue retry;
|
|
2022
|
+
}
|
|
2023
|
+
var _unary__edvuaz = $this.t2_1;
|
|
2024
|
+
$this.t2_1 = _unary__edvuaz + 1 | 0;
|
|
2025
|
+
var putIndex = _unary__edvuaz;
|
|
2026
|
+
$this.o2_1[putIndex] = key;
|
|
2027
|
+
$this.q2_1[putIndex] = hash_0;
|
|
2028
|
+
$this.r2_1[hash_0] = putIndex + 1 | 0;
|
|
2029
|
+
$this.w2_1 = $this.w2_1 + 1 | 0;
|
|
2030
|
+
registerModification($this);
|
|
2031
|
+
if (probeDistance > $this.s2_1)
|
|
2032
|
+
$this.s2_1 = probeDistance;
|
|
2033
|
+
return putIndex;
|
|
2034
|
+
}
|
|
2035
|
+
if (equals($this.o2_1[index - 1 | 0], key)) {
|
|
2036
|
+
return -index | 0;
|
|
2037
|
+
}
|
|
2038
|
+
probeDistance = probeDistance + 1 | 0;
|
|
2039
|
+
if (probeDistance > tentativeMaxProbeDistance) {
|
|
2040
|
+
rehash($this, imul(_get_hashSize__tftcho($this), 2));
|
|
2041
|
+
continue retry;
|
|
2042
|
+
}
|
|
2043
|
+
var _unary__edvuaz_0 = hash_0;
|
|
2044
|
+
hash_0 = _unary__edvuaz_0 - 1 | 0;
|
|
2045
|
+
if (_unary__edvuaz_0 === 0)
|
|
2046
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
function contentEquals($this, other) {
|
|
2051
|
+
return $this.w2_1 === other.f() && $this.n2(other.p());
|
|
2052
|
+
}
|
|
2053
|
+
function Companion_1() {
|
|
2054
|
+
this.d3_1 = -1640531527;
|
|
2055
|
+
this.e3_1 = 8;
|
|
2056
|
+
this.f3_1 = 2;
|
|
2057
|
+
this.g3_1 = -1;
|
|
2058
|
+
}
|
|
2059
|
+
var Companion_instance_1;
|
|
2060
|
+
function Companion_getInstance_1() {
|
|
2061
|
+
return Companion_instance_1;
|
|
2062
|
+
}
|
|
2063
|
+
function Itr(map) {
|
|
2064
|
+
this.h3_1 = map;
|
|
2065
|
+
this.i3_1 = 0;
|
|
2066
|
+
this.j3_1 = -1;
|
|
2067
|
+
this.k3_1 = this.h3_1.v2_1;
|
|
2068
|
+
this.l3();
|
|
2069
|
+
}
|
|
2070
|
+
protoOf(Itr).l3 = function () {
|
|
2071
|
+
while (this.i3_1 < this.h3_1.t2_1 && this.h3_1.q2_1[this.i3_1] < 0) {
|
|
2072
|
+
this.i3_1 = this.i3_1 + 1 | 0;
|
|
2073
|
+
}
|
|
2074
|
+
};
|
|
2075
|
+
protoOf(Itr).d = function () {
|
|
2076
|
+
return this.i3_1 < this.h3_1.t2_1;
|
|
2077
|
+
};
|
|
2078
|
+
protoOf(Itr).m3 = function () {
|
|
2079
|
+
if (!(this.h3_1.v2_1 === this.k3_1))
|
|
2080
|
+
throw ConcurrentModificationException_init_$Create$();
|
|
2081
|
+
};
|
|
2082
|
+
function EntriesItr(map) {
|
|
2083
|
+
Itr.call(this, map);
|
|
2084
|
+
}
|
|
2085
|
+
protoOf(EntriesItr).e = function () {
|
|
2086
|
+
this.m3();
|
|
2087
|
+
if (this.i3_1 >= this.h3_1.t2_1)
|
|
2088
|
+
throw NoSuchElementException_init_$Create$();
|
|
2089
|
+
var tmp = this;
|
|
2090
|
+
var _unary__edvuaz = this.i3_1;
|
|
2091
|
+
this.i3_1 = _unary__edvuaz + 1 | 0;
|
|
2092
|
+
tmp.j3_1 = _unary__edvuaz;
|
|
2093
|
+
var result = new EntryRef(this.h3_1, this.j3_1);
|
|
2094
|
+
this.l3();
|
|
2095
|
+
return result;
|
|
2096
|
+
};
|
|
2097
|
+
protoOf(EntriesItr).r3 = function () {
|
|
2098
|
+
if (this.i3_1 >= this.h3_1.t2_1)
|
|
2099
|
+
throw NoSuchElementException_init_$Create$();
|
|
2100
|
+
var tmp = this;
|
|
2101
|
+
var _unary__edvuaz = this.i3_1;
|
|
2102
|
+
this.i3_1 = _unary__edvuaz + 1 | 0;
|
|
2103
|
+
tmp.j3_1 = _unary__edvuaz;
|
|
2104
|
+
// Inline function 'kotlin.hashCode' call
|
|
2105
|
+
var tmp0_safe_receiver = this.h3_1.o2_1[this.j3_1];
|
|
2106
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
|
|
2107
|
+
var tmp_0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
2108
|
+
// Inline function 'kotlin.hashCode' call
|
|
2109
|
+
var tmp0_safe_receiver_0 = ensureNotNull(this.h3_1.p2_1)[this.j3_1];
|
|
2110
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode_0(tmp0_safe_receiver_0);
|
|
2111
|
+
var result = tmp_0 ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
2112
|
+
this.l3();
|
|
2113
|
+
return result;
|
|
2114
|
+
};
|
|
2115
|
+
protoOf(EntriesItr).s3 = function (sb) {
|
|
2116
|
+
if (this.i3_1 >= this.h3_1.t2_1)
|
|
2117
|
+
throw NoSuchElementException_init_$Create$();
|
|
2118
|
+
var tmp = this;
|
|
2119
|
+
var _unary__edvuaz = this.i3_1;
|
|
2120
|
+
this.i3_1 = _unary__edvuaz + 1 | 0;
|
|
2121
|
+
tmp.j3_1 = _unary__edvuaz;
|
|
2122
|
+
var key = this.h3_1.o2_1[this.j3_1];
|
|
2123
|
+
if (equals(key, this.h3_1))
|
|
2124
|
+
sb.v3('(this Map)');
|
|
2125
|
+
else
|
|
2126
|
+
sb.u3(key);
|
|
2127
|
+
sb.w3(_Char___init__impl__6a9atx(61));
|
|
2128
|
+
var value = ensureNotNull(this.h3_1.p2_1)[this.j3_1];
|
|
2129
|
+
if (equals(value, this.h3_1))
|
|
2130
|
+
sb.v3('(this Map)');
|
|
2131
|
+
else
|
|
2132
|
+
sb.u3(value);
|
|
2133
|
+
this.l3();
|
|
2134
|
+
};
|
|
2135
|
+
function EntryRef(map, index) {
|
|
2136
|
+
this.y2_1 = map;
|
|
2137
|
+
this.z2_1 = index;
|
|
2138
|
+
this.a3_1 = this.y2_1.v2_1;
|
|
2139
|
+
}
|
|
2140
|
+
protoOf(EntryRef).l = function () {
|
|
2141
|
+
checkForComodification(this);
|
|
2142
|
+
return this.y2_1.o2_1[this.z2_1];
|
|
2143
|
+
};
|
|
2144
|
+
protoOf(EntryRef).m = function () {
|
|
2145
|
+
checkForComodification(this);
|
|
2146
|
+
return ensureNotNull(this.y2_1.p2_1)[this.z2_1];
|
|
2147
|
+
};
|
|
2148
|
+
protoOf(EntryRef).equals = function (other) {
|
|
2149
|
+
var tmp;
|
|
2150
|
+
var tmp_0;
|
|
2151
|
+
if (!(other == null) ? isInterface(other, Entry) : false) {
|
|
2152
|
+
tmp_0 = equals(other.l(), this.l());
|
|
2153
|
+
} else {
|
|
2154
|
+
tmp_0 = false;
|
|
2155
|
+
}
|
|
2156
|
+
if (tmp_0) {
|
|
2157
|
+
tmp = equals(other.m(), this.m());
|
|
2158
|
+
} else {
|
|
2159
|
+
tmp = false;
|
|
2160
|
+
}
|
|
2161
|
+
return tmp;
|
|
2162
|
+
};
|
|
2163
|
+
protoOf(EntryRef).hashCode = function () {
|
|
2164
|
+
// Inline function 'kotlin.hashCode' call
|
|
2165
|
+
var tmp0_safe_receiver = this.l();
|
|
2166
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
|
|
2167
|
+
var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
2168
|
+
// Inline function 'kotlin.hashCode' call
|
|
2169
|
+
var tmp0_safe_receiver_0 = this.m();
|
|
2170
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode_0(tmp0_safe_receiver_0);
|
|
2171
|
+
return tmp ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
2172
|
+
};
|
|
2173
|
+
protoOf(EntryRef).toString = function () {
|
|
2174
|
+
return toString_0(this.l()) + '=' + toString_0(this.m());
|
|
2175
|
+
};
|
|
2176
|
+
function InternalHashMap(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length) {
|
|
2177
|
+
this.o2_1 = keysArray;
|
|
2178
|
+
this.p2_1 = valuesArray;
|
|
2179
|
+
this.q2_1 = presenceArray;
|
|
2180
|
+
this.r2_1 = hashArray;
|
|
2181
|
+
this.s2_1 = maxProbeDistance;
|
|
2182
|
+
this.t2_1 = length;
|
|
2183
|
+
this.u2_1 = computeShift(Companion_instance_1, _get_hashSize__tftcho(this));
|
|
2184
|
+
this.v2_1 = 0;
|
|
2185
|
+
this.w2_1 = 0;
|
|
2186
|
+
this.x2_1 = false;
|
|
2187
|
+
}
|
|
2188
|
+
protoOf(InternalHashMap).f = function () {
|
|
2189
|
+
return this.w2_1;
|
|
2190
|
+
};
|
|
2191
|
+
protoOf(InternalHashMap).o = function (key) {
|
|
2192
|
+
var index = findKey(this, key);
|
|
2193
|
+
if (index < 0)
|
|
2194
|
+
return null;
|
|
2195
|
+
return ensureNotNull(this.p2_1)[index];
|
|
2196
|
+
};
|
|
2197
|
+
protoOf(InternalHashMap).g2 = function (key) {
|
|
2198
|
+
return findKey(this, key) >= 0;
|
|
2199
|
+
};
|
|
2200
|
+
protoOf(InternalHashMap).n1 = function (key, value) {
|
|
2201
|
+
var index = addKey(this, key);
|
|
2202
|
+
var valuesArray = allocateValuesArray(this);
|
|
2203
|
+
if (index < 0) {
|
|
2204
|
+
var oldValue = valuesArray[(-index | 0) - 1 | 0];
|
|
2205
|
+
valuesArray[(-index | 0) - 1 | 0] = value;
|
|
2206
|
+
return oldValue;
|
|
2207
|
+
} else {
|
|
2208
|
+
valuesArray[index] = value;
|
|
2209
|
+
return null;
|
|
2210
|
+
}
|
|
2211
|
+
};
|
|
2212
|
+
protoOf(InternalHashMap).equals = function (other) {
|
|
2213
|
+
var tmp;
|
|
2214
|
+
if (other === this) {
|
|
2215
|
+
tmp = true;
|
|
2216
|
+
} else {
|
|
2217
|
+
var tmp_0;
|
|
2218
|
+
if (!(other == null) ? isInterface(other, KtMap) : false) {
|
|
2219
|
+
tmp_0 = contentEquals(this, other);
|
|
2220
|
+
} else {
|
|
2221
|
+
tmp_0 = false;
|
|
2222
|
+
}
|
|
2223
|
+
tmp = tmp_0;
|
|
2224
|
+
}
|
|
2225
|
+
return tmp;
|
|
2226
|
+
};
|
|
2227
|
+
protoOf(InternalHashMap).hashCode = function () {
|
|
2228
|
+
var result = 0;
|
|
2229
|
+
var it = this.j2();
|
|
2230
|
+
while (it.d()) {
|
|
2231
|
+
result = result + it.r3() | 0;
|
|
2232
|
+
}
|
|
2233
|
+
return result;
|
|
2234
|
+
};
|
|
2235
|
+
protoOf(InternalHashMap).toString = function () {
|
|
2236
|
+
var sb = StringBuilder_init_$Create$(2 + imul(this.w2_1, 3) | 0);
|
|
2237
|
+
sb.v3('{');
|
|
2238
|
+
var i = 0;
|
|
2239
|
+
var it = this.j2();
|
|
2240
|
+
while (it.d()) {
|
|
2241
|
+
if (i > 0) {
|
|
2242
|
+
sb.v3(', ');
|
|
2243
|
+
}
|
|
2244
|
+
it.s3(sb);
|
|
2245
|
+
i = i + 1 | 0;
|
|
2246
|
+
}
|
|
2247
|
+
sb.v3('}');
|
|
2248
|
+
return sb.toString();
|
|
2249
|
+
};
|
|
2250
|
+
protoOf(InternalHashMap).c3 = function () {
|
|
2251
|
+
if (this.x2_1)
|
|
2252
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
2253
|
+
};
|
|
2254
|
+
protoOf(InternalHashMap).m2 = function (entry) {
|
|
2255
|
+
var index = findKey(this, entry.l());
|
|
2256
|
+
if (index < 0)
|
|
2257
|
+
return false;
|
|
2258
|
+
return equals(ensureNotNull(this.p2_1)[index], entry.m());
|
|
2259
|
+
};
|
|
2260
|
+
protoOf(InternalHashMap).x3 = function (entry) {
|
|
2261
|
+
return this.m2(isInterface(entry, Entry) ? entry : THROW_CCE());
|
|
2262
|
+
};
|
|
2263
|
+
protoOf(InternalHashMap).j2 = function () {
|
|
2264
|
+
return new EntriesItr(this);
|
|
2265
|
+
};
|
|
2266
|
+
function InternalMap() {
|
|
2267
|
+
}
|
|
2268
|
+
function LinkedHashMap_init_$Init$($this) {
|
|
2269
|
+
HashMap_init_$Init$_0($this);
|
|
2270
|
+
LinkedHashMap.call($this);
|
|
2271
|
+
return $this;
|
|
2272
|
+
}
|
|
2273
|
+
function LinkedHashMap_init_$Create$() {
|
|
2274
|
+
return LinkedHashMap_init_$Init$(objectCreate(protoOf(LinkedHashMap)));
|
|
2275
|
+
}
|
|
2276
|
+
function LinkedHashMap() {
|
|
2277
|
+
}
|
|
2278
|
+
function UnsupportedOperationException_init_$Init$($this) {
|
|
2279
|
+
RuntimeException_init_$Init$($this);
|
|
2280
|
+
UnsupportedOperationException.call($this);
|
|
2281
|
+
return $this;
|
|
2282
|
+
}
|
|
2283
|
+
function UnsupportedOperationException_init_$Create$() {
|
|
2284
|
+
var tmp = UnsupportedOperationException_init_$Init$(objectCreate(protoOf(UnsupportedOperationException)));
|
|
2285
|
+
captureStack(tmp, UnsupportedOperationException_init_$Create$);
|
|
2286
|
+
return tmp;
|
|
2287
|
+
}
|
|
2288
|
+
function UnsupportedOperationException() {
|
|
2289
|
+
captureStack(this, UnsupportedOperationException);
|
|
2290
|
+
}
|
|
2291
|
+
function IllegalStateException_init_$Init$($this) {
|
|
2292
|
+
RuntimeException_init_$Init$($this);
|
|
2293
|
+
IllegalStateException.call($this);
|
|
2294
|
+
return $this;
|
|
2295
|
+
}
|
|
2296
|
+
function IllegalStateException_init_$Create$() {
|
|
2297
|
+
var tmp = IllegalStateException_init_$Init$(objectCreate(protoOf(IllegalStateException)));
|
|
2298
|
+
captureStack(tmp, IllegalStateException_init_$Create$);
|
|
2299
|
+
return tmp;
|
|
2300
|
+
}
|
|
2301
|
+
function IllegalStateException_init_$Init$_0(message, $this) {
|
|
2302
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2303
|
+
IllegalStateException.call($this);
|
|
2304
|
+
return $this;
|
|
2305
|
+
}
|
|
2306
|
+
function IllegalStateException_init_$Create$_0(message) {
|
|
2307
|
+
var tmp = IllegalStateException_init_$Init$_0(message, objectCreate(protoOf(IllegalStateException)));
|
|
2308
|
+
captureStack(tmp, IllegalStateException_init_$Create$_0);
|
|
2309
|
+
return tmp;
|
|
2310
|
+
}
|
|
2311
|
+
function IllegalStateException() {
|
|
2312
|
+
captureStack(this, IllegalStateException);
|
|
2313
|
+
}
|
|
2314
|
+
function IllegalArgumentException_init_$Init$($this) {
|
|
2315
|
+
RuntimeException_init_$Init$($this);
|
|
2316
|
+
IllegalArgumentException.call($this);
|
|
2317
|
+
return $this;
|
|
2318
|
+
}
|
|
2319
|
+
function IllegalArgumentException_init_$Create$() {
|
|
2320
|
+
var tmp = IllegalArgumentException_init_$Init$(objectCreate(protoOf(IllegalArgumentException)));
|
|
2321
|
+
captureStack(tmp, IllegalArgumentException_init_$Create$);
|
|
2322
|
+
return tmp;
|
|
2323
|
+
}
|
|
2324
|
+
function IllegalArgumentException_init_$Init$_0(message, $this) {
|
|
2325
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2326
|
+
IllegalArgumentException.call($this);
|
|
2327
|
+
return $this;
|
|
2328
|
+
}
|
|
2329
|
+
function IllegalArgumentException_init_$Create$_0(message) {
|
|
2330
|
+
var tmp = IllegalArgumentException_init_$Init$_0(message, objectCreate(protoOf(IllegalArgumentException)));
|
|
2331
|
+
captureStack(tmp, IllegalArgumentException_init_$Create$_0);
|
|
2332
|
+
return tmp;
|
|
2333
|
+
}
|
|
2334
|
+
function IllegalArgumentException() {
|
|
2335
|
+
captureStack(this, IllegalArgumentException);
|
|
2336
|
+
}
|
|
2337
|
+
function RuntimeException_init_$Init$($this) {
|
|
2338
|
+
Exception_init_$Init$($this);
|
|
2339
|
+
RuntimeException.call($this);
|
|
2340
|
+
return $this;
|
|
2341
|
+
}
|
|
2342
|
+
function RuntimeException_init_$Create$() {
|
|
2343
|
+
var tmp = RuntimeException_init_$Init$(objectCreate(protoOf(RuntimeException)));
|
|
2344
|
+
captureStack(tmp, RuntimeException_init_$Create$);
|
|
2345
|
+
return tmp;
|
|
2346
|
+
}
|
|
2347
|
+
function RuntimeException_init_$Init$_0(message, $this) {
|
|
2348
|
+
Exception_init_$Init$_0(message, $this);
|
|
2349
|
+
RuntimeException.call($this);
|
|
2350
|
+
return $this;
|
|
2351
|
+
}
|
|
2352
|
+
function RuntimeException_init_$Create$_0(message) {
|
|
2353
|
+
var tmp = RuntimeException_init_$Init$_0(message, objectCreate(protoOf(RuntimeException)));
|
|
2354
|
+
captureStack(tmp, RuntimeException_init_$Create$_0);
|
|
2355
|
+
return tmp;
|
|
2356
|
+
}
|
|
2357
|
+
function RuntimeException() {
|
|
2358
|
+
captureStack(this, RuntimeException);
|
|
2359
|
+
}
|
|
2360
|
+
function Exception_init_$Init$($this) {
|
|
2361
|
+
extendThrowable($this);
|
|
2362
|
+
Exception.call($this);
|
|
2363
|
+
return $this;
|
|
2364
|
+
}
|
|
2365
|
+
function Exception_init_$Create$() {
|
|
2366
|
+
var tmp = Exception_init_$Init$(objectCreate(protoOf(Exception)));
|
|
2367
|
+
captureStack(tmp, Exception_init_$Create$);
|
|
2368
|
+
return tmp;
|
|
2369
|
+
}
|
|
2370
|
+
function Exception_init_$Init$_0(message, $this) {
|
|
2371
|
+
extendThrowable($this, message);
|
|
2372
|
+
Exception.call($this);
|
|
2373
|
+
return $this;
|
|
2374
|
+
}
|
|
2375
|
+
function Exception_init_$Create$_0(message) {
|
|
2376
|
+
var tmp = Exception_init_$Init$_0(message, objectCreate(protoOf(Exception)));
|
|
2377
|
+
captureStack(tmp, Exception_init_$Create$_0);
|
|
2378
|
+
return tmp;
|
|
2379
|
+
}
|
|
2380
|
+
function Exception() {
|
|
2381
|
+
captureStack(this, Exception);
|
|
2382
|
+
}
|
|
2383
|
+
function NoSuchElementException_init_$Init$($this) {
|
|
2384
|
+
RuntimeException_init_$Init$($this);
|
|
2385
|
+
NoSuchElementException.call($this);
|
|
2386
|
+
return $this;
|
|
2387
|
+
}
|
|
2388
|
+
function NoSuchElementException_init_$Create$() {
|
|
2389
|
+
var tmp = NoSuchElementException_init_$Init$(objectCreate(protoOf(NoSuchElementException)));
|
|
2390
|
+
captureStack(tmp, NoSuchElementException_init_$Create$);
|
|
2391
|
+
return tmp;
|
|
2392
|
+
}
|
|
2393
|
+
function NoSuchElementException_init_$Init$_0(message, $this) {
|
|
2394
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2395
|
+
NoSuchElementException.call($this);
|
|
2396
|
+
return $this;
|
|
2397
|
+
}
|
|
2398
|
+
function NoSuchElementException_init_$Create$_0(message) {
|
|
2399
|
+
var tmp = NoSuchElementException_init_$Init$_0(message, objectCreate(protoOf(NoSuchElementException)));
|
|
2400
|
+
captureStack(tmp, NoSuchElementException_init_$Create$_0);
|
|
2401
|
+
return tmp;
|
|
2402
|
+
}
|
|
2403
|
+
function NoSuchElementException() {
|
|
2404
|
+
captureStack(this, NoSuchElementException);
|
|
2405
|
+
}
|
|
2406
|
+
function IndexOutOfBoundsException_init_$Init$($this) {
|
|
2407
|
+
RuntimeException_init_$Init$($this);
|
|
2408
|
+
IndexOutOfBoundsException.call($this);
|
|
2409
|
+
return $this;
|
|
2410
|
+
}
|
|
2411
|
+
function IndexOutOfBoundsException_init_$Create$() {
|
|
2412
|
+
var tmp = IndexOutOfBoundsException_init_$Init$(objectCreate(protoOf(IndexOutOfBoundsException)));
|
|
2413
|
+
captureStack(tmp, IndexOutOfBoundsException_init_$Create$);
|
|
2414
|
+
return tmp;
|
|
2415
|
+
}
|
|
2416
|
+
function IndexOutOfBoundsException_init_$Init$_0(message, $this) {
|
|
2417
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2418
|
+
IndexOutOfBoundsException.call($this);
|
|
2419
|
+
return $this;
|
|
2420
|
+
}
|
|
2421
|
+
function IndexOutOfBoundsException_init_$Create$_0(message) {
|
|
2422
|
+
var tmp = IndexOutOfBoundsException_init_$Init$_0(message, objectCreate(protoOf(IndexOutOfBoundsException)));
|
|
2423
|
+
captureStack(tmp, IndexOutOfBoundsException_init_$Create$_0);
|
|
2424
|
+
return tmp;
|
|
2425
|
+
}
|
|
2426
|
+
function IndexOutOfBoundsException() {
|
|
2427
|
+
captureStack(this, IndexOutOfBoundsException);
|
|
2428
|
+
}
|
|
2429
|
+
function ConcurrentModificationException_init_$Init$($this) {
|
|
2430
|
+
RuntimeException_init_$Init$($this);
|
|
2431
|
+
ConcurrentModificationException.call($this);
|
|
2432
|
+
return $this;
|
|
2433
|
+
}
|
|
2434
|
+
function ConcurrentModificationException_init_$Create$() {
|
|
2435
|
+
var tmp = ConcurrentModificationException_init_$Init$(objectCreate(protoOf(ConcurrentModificationException)));
|
|
2436
|
+
captureStack(tmp, ConcurrentModificationException_init_$Create$);
|
|
2437
|
+
return tmp;
|
|
2438
|
+
}
|
|
2439
|
+
function ConcurrentModificationException_init_$Init$_0(message, $this) {
|
|
2440
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2441
|
+
ConcurrentModificationException.call($this);
|
|
2442
|
+
return $this;
|
|
2443
|
+
}
|
|
2444
|
+
function ConcurrentModificationException_init_$Create$_0(message) {
|
|
2445
|
+
var tmp = ConcurrentModificationException_init_$Init$_0(message, objectCreate(protoOf(ConcurrentModificationException)));
|
|
2446
|
+
captureStack(tmp, ConcurrentModificationException_init_$Create$_0);
|
|
2447
|
+
return tmp;
|
|
2448
|
+
}
|
|
2449
|
+
function ConcurrentModificationException() {
|
|
2450
|
+
captureStack(this, ConcurrentModificationException);
|
|
2451
|
+
}
|
|
2452
|
+
function NullPointerException_init_$Init$($this) {
|
|
2453
|
+
RuntimeException_init_$Init$($this);
|
|
2454
|
+
NullPointerException.call($this);
|
|
2455
|
+
return $this;
|
|
2456
|
+
}
|
|
2457
|
+
function NullPointerException_init_$Create$() {
|
|
2458
|
+
var tmp = NullPointerException_init_$Init$(objectCreate(protoOf(NullPointerException)));
|
|
2459
|
+
captureStack(tmp, NullPointerException_init_$Create$);
|
|
2460
|
+
return tmp;
|
|
2461
|
+
}
|
|
2462
|
+
function NullPointerException() {
|
|
2463
|
+
captureStack(this, NullPointerException);
|
|
2464
|
+
}
|
|
2465
|
+
function ClassCastException_init_$Init$($this) {
|
|
2466
|
+
RuntimeException_init_$Init$($this);
|
|
2467
|
+
ClassCastException.call($this);
|
|
2468
|
+
return $this;
|
|
2469
|
+
}
|
|
2470
|
+
function ClassCastException_init_$Create$() {
|
|
2471
|
+
var tmp = ClassCastException_init_$Init$(objectCreate(protoOf(ClassCastException)));
|
|
2472
|
+
captureStack(tmp, ClassCastException_init_$Create$);
|
|
2473
|
+
return tmp;
|
|
2474
|
+
}
|
|
2475
|
+
function ClassCastException() {
|
|
2476
|
+
captureStack(this, ClassCastException);
|
|
2477
|
+
}
|
|
2478
|
+
function lazy(initializer) {
|
|
2479
|
+
return new UnsafeLazyImpl(initializer);
|
|
2480
|
+
}
|
|
2481
|
+
function fillFrom(src, dst) {
|
|
2482
|
+
var srcLen = src.length;
|
|
2483
|
+
var dstLen = dst.length;
|
|
2484
|
+
var index = 0;
|
|
2485
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2486
|
+
var arr = dst;
|
|
2487
|
+
while (index < srcLen && index < dstLen) {
|
|
2488
|
+
var tmp = index;
|
|
2489
|
+
var _unary__edvuaz = index;
|
|
2490
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2491
|
+
arr[tmp] = src[_unary__edvuaz];
|
|
2492
|
+
}
|
|
2493
|
+
return dst;
|
|
2494
|
+
}
|
|
2495
|
+
function arrayCopyResize(source, newSize, defaultValue) {
|
|
2496
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2497
|
+
var result = source.slice(0, newSize);
|
|
2498
|
+
// Inline function 'kotlin.copyArrayType' call
|
|
2499
|
+
if (source.$type$ !== undefined) {
|
|
2500
|
+
result.$type$ = source.$type$;
|
|
2501
|
+
}
|
|
2502
|
+
var index = source.length;
|
|
2503
|
+
if (newSize > index) {
|
|
2504
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2505
|
+
result.length = newSize;
|
|
2506
|
+
while (index < newSize) {
|
|
2507
|
+
var _unary__edvuaz = index;
|
|
2508
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2509
|
+
result[_unary__edvuaz] = defaultValue;
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
return result;
|
|
2513
|
+
}
|
|
2514
|
+
var INV_2_26;
|
|
2515
|
+
var INV_2_53;
|
|
2516
|
+
function defaultPlatformRandom() {
|
|
2517
|
+
_init_properties_PlatformRandom_kt__6kjv62();
|
|
2518
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2519
|
+
var tmp$ret$0 = Math.random() * Math.pow(2, 32) | 0;
|
|
2520
|
+
return Random_0(tmp$ret$0);
|
|
2521
|
+
}
|
|
2522
|
+
var properties_initialized_PlatformRandom_kt_uibhw8;
|
|
2523
|
+
function _init_properties_PlatformRandom_kt__6kjv62() {
|
|
2524
|
+
if (!properties_initialized_PlatformRandom_kt_uibhw8) {
|
|
2525
|
+
properties_initialized_PlatformRandom_kt_uibhw8 = true;
|
|
2526
|
+
// Inline function 'kotlin.math.pow' call
|
|
2527
|
+
INV_2_26 = Math.pow(2.0, -26);
|
|
2528
|
+
// Inline function 'kotlin.math.pow' call
|
|
2529
|
+
INV_2_53 = Math.pow(2.0, -53);
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
function PrimitiveKClassImpl(jClass, givenSimpleName, isInstanceFunction) {
|
|
2533
|
+
KClassImpl.call(this);
|
|
2534
|
+
this.a4_1 = jClass;
|
|
2535
|
+
this.b4_1 = givenSimpleName;
|
|
2536
|
+
this.c4_1 = isInstanceFunction;
|
|
2537
|
+
}
|
|
2538
|
+
protoOf(PrimitiveKClassImpl).d4 = function () {
|
|
2539
|
+
return this.a4_1;
|
|
2540
|
+
};
|
|
2541
|
+
protoOf(PrimitiveKClassImpl).equals = function (other) {
|
|
2542
|
+
if (!(other instanceof PrimitiveKClassImpl))
|
|
2543
|
+
return false;
|
|
2544
|
+
return protoOf(KClassImpl).equals.call(this, other) && this.b4_1 === other.b4_1;
|
|
2545
|
+
};
|
|
2546
|
+
protoOf(PrimitiveKClassImpl).e4 = function () {
|
|
2547
|
+
return this.b4_1;
|
|
2548
|
+
};
|
|
2549
|
+
function KClassImpl() {
|
|
2550
|
+
}
|
|
2551
|
+
protoOf(KClassImpl).equals = function (other) {
|
|
2552
|
+
var tmp;
|
|
2553
|
+
if (other instanceof NothingKClassImpl) {
|
|
2554
|
+
tmp = false;
|
|
2555
|
+
} else {
|
|
2556
|
+
if (other instanceof KClassImpl) {
|
|
2557
|
+
tmp = equals(this.d4(), other.d4());
|
|
2558
|
+
} else {
|
|
2559
|
+
tmp = false;
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
return tmp;
|
|
2563
|
+
};
|
|
2564
|
+
protoOf(KClassImpl).hashCode = function () {
|
|
2565
|
+
var tmp0_safe_receiver = this.e4();
|
|
2566
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
2567
|
+
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
2568
|
+
};
|
|
2569
|
+
protoOf(KClassImpl).toString = function () {
|
|
2570
|
+
return 'class ' + this.e4();
|
|
2571
|
+
};
|
|
2572
|
+
function NothingKClassImpl() {
|
|
2573
|
+
}
|
|
2574
|
+
function StringBuilder_init_$Init$(capacity, $this) {
|
|
2575
|
+
StringBuilder_init_$Init$_0($this);
|
|
2576
|
+
return $this;
|
|
2577
|
+
}
|
|
2578
|
+
function StringBuilder_init_$Create$(capacity) {
|
|
2579
|
+
return StringBuilder_init_$Init$(capacity, objectCreate(protoOf(StringBuilder)));
|
|
2580
|
+
}
|
|
2581
|
+
function StringBuilder_init_$Init$_0($this) {
|
|
2582
|
+
StringBuilder.call($this, '');
|
|
2583
|
+
return $this;
|
|
2584
|
+
}
|
|
2585
|
+
function StringBuilder_init_$Create$_0() {
|
|
2586
|
+
return StringBuilder_init_$Init$_0(objectCreate(protoOf(StringBuilder)));
|
|
2587
|
+
}
|
|
2588
|
+
function StringBuilder(content) {
|
|
2589
|
+
this.t3_1 = content;
|
|
2590
|
+
}
|
|
2591
|
+
protoOf(StringBuilder).w3 = function (value) {
|
|
2592
|
+
this.t3_1 = this.t3_1 + toString(value);
|
|
2593
|
+
return this;
|
|
2594
|
+
};
|
|
2595
|
+
protoOf(StringBuilder).b = function (value) {
|
|
2596
|
+
this.t3_1 = this.t3_1 + toString_0(value);
|
|
2597
|
+
return this;
|
|
2598
|
+
};
|
|
2599
|
+
protoOf(StringBuilder).u3 = function (value) {
|
|
2600
|
+
this.t3_1 = this.t3_1 + toString_0(value);
|
|
2601
|
+
return this;
|
|
2602
|
+
};
|
|
2603
|
+
protoOf(StringBuilder).v3 = function (value) {
|
|
2604
|
+
var tmp = this;
|
|
2605
|
+
var tmp_0 = this.t3_1;
|
|
2606
|
+
tmp.t3_1 = tmp_0 + (value == null ? 'null' : value);
|
|
2607
|
+
return this;
|
|
2608
|
+
};
|
|
2609
|
+
protoOf(StringBuilder).toString = function () {
|
|
2610
|
+
return this.t3_1;
|
|
2611
|
+
};
|
|
2612
|
+
function AbstractCollection$toString$lambda(this$0) {
|
|
2613
|
+
return function (it) {
|
|
2614
|
+
return it === this$0 ? '(this Collection)' : toString_0(it);
|
|
2615
|
+
};
|
|
2616
|
+
}
|
|
2617
|
+
function AbstractCollection() {
|
|
2618
|
+
}
|
|
2619
|
+
protoOf(AbstractCollection).j = function (element) {
|
|
2620
|
+
var tmp$ret$0;
|
|
2621
|
+
$l$block_0: {
|
|
2622
|
+
// Inline function 'kotlin.collections.any' call
|
|
2623
|
+
var tmp;
|
|
2624
|
+
if (isInterface(this, Collection)) {
|
|
2625
|
+
tmp = this.h();
|
|
2626
|
+
} else {
|
|
2627
|
+
tmp = false;
|
|
2628
|
+
}
|
|
2629
|
+
if (tmp) {
|
|
2630
|
+
tmp$ret$0 = false;
|
|
2631
|
+
break $l$block_0;
|
|
2632
|
+
}
|
|
2633
|
+
var _iterator__ex2g4s = this.c();
|
|
2634
|
+
while (_iterator__ex2g4s.d()) {
|
|
2635
|
+
var element_0 = _iterator__ex2g4s.e();
|
|
2636
|
+
if (equals(element_0, element)) {
|
|
2637
|
+
tmp$ret$0 = true;
|
|
2638
|
+
break $l$block_0;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
tmp$ret$0 = false;
|
|
2642
|
+
}
|
|
2643
|
+
return tmp$ret$0;
|
|
2644
|
+
};
|
|
2645
|
+
protoOf(AbstractCollection).k = function (elements) {
|
|
2646
|
+
var tmp$ret$0;
|
|
2647
|
+
$l$block_0: {
|
|
2648
|
+
// Inline function 'kotlin.collections.all' call
|
|
2649
|
+
var tmp;
|
|
2650
|
+
if (isInterface(elements, Collection)) {
|
|
2651
|
+
tmp = elements.h();
|
|
2652
|
+
} else {
|
|
2653
|
+
tmp = false;
|
|
2654
|
+
}
|
|
2655
|
+
if (tmp) {
|
|
2656
|
+
tmp$ret$0 = true;
|
|
2657
|
+
break $l$block_0;
|
|
2658
|
+
}
|
|
2659
|
+
var _iterator__ex2g4s = elements.c();
|
|
2660
|
+
while (_iterator__ex2g4s.d()) {
|
|
2661
|
+
var element = _iterator__ex2g4s.e();
|
|
2662
|
+
if (!this.j(element)) {
|
|
2663
|
+
tmp$ret$0 = false;
|
|
2664
|
+
break $l$block_0;
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
tmp$ret$0 = true;
|
|
2668
|
+
}
|
|
2669
|
+
return tmp$ret$0;
|
|
2670
|
+
};
|
|
2671
|
+
protoOf(AbstractCollection).h = function () {
|
|
2672
|
+
return this.f() === 0;
|
|
2673
|
+
};
|
|
2674
|
+
protoOf(AbstractCollection).toString = function () {
|
|
2675
|
+
return joinToString_0(this, ', ', '[', ']', VOID, VOID, AbstractCollection$toString$lambda(this));
|
|
2676
|
+
};
|
|
2677
|
+
protoOf(AbstractCollection).toArray = function () {
|
|
2678
|
+
return collectionToArray(this);
|
|
2679
|
+
};
|
|
2680
|
+
function Companion_2() {
|
|
2681
|
+
this.g1_1 = 2147483639;
|
|
2682
|
+
}
|
|
2683
|
+
protoOf(Companion_2).x1 = function (index, size) {
|
|
2684
|
+
if (index < 0 || index >= size) {
|
|
2685
|
+
throw IndexOutOfBoundsException_init_$Create$_0('index: ' + index + ', size: ' + size);
|
|
2686
|
+
}
|
|
2687
|
+
};
|
|
2688
|
+
protoOf(Companion_2).y1 = function (index, size) {
|
|
2689
|
+
if (index < 0 || index > size) {
|
|
2690
|
+
throw IndexOutOfBoundsException_init_$Create$_0('index: ' + index + ', size: ' + size);
|
|
2691
|
+
}
|
|
2692
|
+
};
|
|
2693
|
+
protoOf(Companion_2).b3 = function (oldCapacity, minCapacity) {
|
|
2694
|
+
var newCapacity = oldCapacity + (oldCapacity >> 1) | 0;
|
|
2695
|
+
if ((newCapacity - minCapacity | 0) < 0)
|
|
2696
|
+
newCapacity = minCapacity;
|
|
2697
|
+
if ((newCapacity - 2147483639 | 0) > 0)
|
|
2698
|
+
newCapacity = minCapacity > 2147483639 ? 2147483647 : 2147483639;
|
|
2699
|
+
return newCapacity;
|
|
2700
|
+
};
|
|
2701
|
+
protoOf(Companion_2).i1 = function (c) {
|
|
2702
|
+
var hashCode = 1;
|
|
2703
|
+
var _iterator__ex2g4s = c.c();
|
|
2704
|
+
while (_iterator__ex2g4s.d()) {
|
|
2705
|
+
var e = _iterator__ex2g4s.e();
|
|
2706
|
+
var tmp = imul(31, hashCode);
|
|
2707
|
+
var tmp1_elvis_lhs = e == null ? null : hashCode_0(e);
|
|
2708
|
+
hashCode = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
2709
|
+
}
|
|
2710
|
+
return hashCode;
|
|
2711
|
+
};
|
|
2712
|
+
protoOf(Companion_2).h1 = function (c, other) {
|
|
2713
|
+
if (!(c.f() === other.f()))
|
|
2714
|
+
return false;
|
|
2715
|
+
var otherIterator = other.c();
|
|
2716
|
+
var _iterator__ex2g4s = c.c();
|
|
2717
|
+
while (_iterator__ex2g4s.d()) {
|
|
2718
|
+
var elem = _iterator__ex2g4s.e();
|
|
2719
|
+
var elemOther = otherIterator.e();
|
|
2720
|
+
if (!equals(elem, elemOther)) {
|
|
2721
|
+
return false;
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
return true;
|
|
2725
|
+
};
|
|
2726
|
+
var Companion_instance_2;
|
|
2727
|
+
function Companion_getInstance_2() {
|
|
2728
|
+
return Companion_instance_2;
|
|
2729
|
+
}
|
|
2730
|
+
function toString_2($this, entry) {
|
|
2731
|
+
return toString_3($this, entry.l()) + '=' + toString_3($this, entry.m());
|
|
2732
|
+
}
|
|
2733
|
+
function toString_3($this, o) {
|
|
2734
|
+
return o === $this ? '(this Map)' : toString_0(o);
|
|
2735
|
+
}
|
|
2736
|
+
function implFindEntry($this, key) {
|
|
2737
|
+
var tmp0 = $this.p();
|
|
2738
|
+
var tmp$ret$1;
|
|
2739
|
+
$l$block: {
|
|
2740
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2741
|
+
var _iterator__ex2g4s = tmp0.c();
|
|
2742
|
+
while (_iterator__ex2g4s.d()) {
|
|
2743
|
+
var element = _iterator__ex2g4s.e();
|
|
2744
|
+
if (equals(element.l(), key)) {
|
|
2745
|
+
tmp$ret$1 = element;
|
|
2746
|
+
break $l$block;
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
tmp$ret$1 = null;
|
|
2750
|
+
}
|
|
2751
|
+
return tmp$ret$1;
|
|
2752
|
+
}
|
|
2753
|
+
function Companion_3() {
|
|
2754
|
+
}
|
|
2755
|
+
var Companion_instance_3;
|
|
2756
|
+
function Companion_getInstance_3() {
|
|
2757
|
+
return Companion_instance_3;
|
|
2758
|
+
}
|
|
2759
|
+
function AbstractMap$toString$lambda(this$0) {
|
|
2760
|
+
return function (it) {
|
|
2761
|
+
return toString_2(this$0, it);
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
function AbstractMap() {
|
|
2765
|
+
this.o1_1 = null;
|
|
2766
|
+
this.p1_1 = null;
|
|
2767
|
+
}
|
|
2768
|
+
protoOf(AbstractMap).n = function (key) {
|
|
2769
|
+
return !(implFindEntry(this, key) == null);
|
|
2770
|
+
};
|
|
2771
|
+
protoOf(AbstractMap).q1 = function (entry) {
|
|
2772
|
+
if (!(!(entry == null) ? isInterface(entry, Entry) : false))
|
|
2773
|
+
return false;
|
|
2774
|
+
var key = entry.l();
|
|
2775
|
+
var value = entry.m();
|
|
2776
|
+
// Inline function 'kotlin.collections.get' call
|
|
2777
|
+
var ourValue = (isInterface(this, KtMap) ? this : THROW_CCE()).o(key);
|
|
2778
|
+
if (!equals(value, ourValue)) {
|
|
2779
|
+
return false;
|
|
2780
|
+
}
|
|
2781
|
+
var tmp;
|
|
2782
|
+
if (ourValue == null) {
|
|
2783
|
+
// Inline function 'kotlin.collections.containsKey' call
|
|
2784
|
+
tmp = !(isInterface(this, KtMap) ? this : THROW_CCE()).n(key);
|
|
2785
|
+
} else {
|
|
2786
|
+
tmp = false;
|
|
2787
|
+
}
|
|
2788
|
+
if (tmp) {
|
|
2789
|
+
return false;
|
|
2790
|
+
}
|
|
2791
|
+
return true;
|
|
2792
|
+
};
|
|
2793
|
+
protoOf(AbstractMap).equals = function (other) {
|
|
2794
|
+
if (other === this)
|
|
2795
|
+
return true;
|
|
2796
|
+
if (!(!(other == null) ? isInterface(other, KtMap) : false))
|
|
2797
|
+
return false;
|
|
2798
|
+
if (!(this.f() === other.f()))
|
|
2799
|
+
return false;
|
|
2800
|
+
var tmp0 = other.p();
|
|
2801
|
+
var tmp$ret$0;
|
|
2802
|
+
$l$block_0: {
|
|
2803
|
+
// Inline function 'kotlin.collections.all' call
|
|
2804
|
+
var tmp;
|
|
2805
|
+
if (isInterface(tmp0, Collection)) {
|
|
2806
|
+
tmp = tmp0.h();
|
|
2807
|
+
} else {
|
|
2808
|
+
tmp = false;
|
|
2809
|
+
}
|
|
2810
|
+
if (tmp) {
|
|
2811
|
+
tmp$ret$0 = true;
|
|
2812
|
+
break $l$block_0;
|
|
2813
|
+
}
|
|
2814
|
+
var _iterator__ex2g4s = tmp0.c();
|
|
2815
|
+
while (_iterator__ex2g4s.d()) {
|
|
2816
|
+
var element = _iterator__ex2g4s.e();
|
|
2817
|
+
if (!this.q1(element)) {
|
|
2818
|
+
tmp$ret$0 = false;
|
|
2819
|
+
break $l$block_0;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
tmp$ret$0 = true;
|
|
2823
|
+
}
|
|
2824
|
+
return tmp$ret$0;
|
|
2825
|
+
};
|
|
2826
|
+
protoOf(AbstractMap).o = function (key) {
|
|
2827
|
+
var tmp0_safe_receiver = implFindEntry(this, key);
|
|
2828
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m();
|
|
2829
|
+
};
|
|
2830
|
+
protoOf(AbstractMap).hashCode = function () {
|
|
2831
|
+
return hashCode_0(this.p());
|
|
2832
|
+
};
|
|
2833
|
+
protoOf(AbstractMap).f = function () {
|
|
2834
|
+
return this.p().f();
|
|
2835
|
+
};
|
|
2836
|
+
protoOf(AbstractMap).toString = function () {
|
|
2837
|
+
var tmp = this.p();
|
|
2838
|
+
return joinToString_0(tmp, ', ', '{', '}', VOID, VOID, AbstractMap$toString$lambda(this));
|
|
2839
|
+
};
|
|
2840
|
+
function Companion_4() {
|
|
2841
|
+
}
|
|
2842
|
+
protoOf(Companion_4).s1 = function (c) {
|
|
2843
|
+
var hashCode = 0;
|
|
2844
|
+
var _iterator__ex2g4s = c.c();
|
|
2845
|
+
while (_iterator__ex2g4s.d()) {
|
|
2846
|
+
var element = _iterator__ex2g4s.e();
|
|
2847
|
+
var tmp = hashCode;
|
|
2848
|
+
var tmp1_elvis_lhs = element == null ? null : hashCode_0(element);
|
|
2849
|
+
hashCode = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
2850
|
+
}
|
|
2851
|
+
return hashCode;
|
|
2852
|
+
};
|
|
2853
|
+
protoOf(Companion_4).r1 = function (c, other) {
|
|
2854
|
+
if (!(c.f() === other.f()))
|
|
2855
|
+
return false;
|
|
2856
|
+
return c.k(other);
|
|
2857
|
+
};
|
|
2858
|
+
var Companion_instance_4;
|
|
2859
|
+
function Companion_getInstance_4() {
|
|
2860
|
+
return Companion_instance_4;
|
|
2861
|
+
}
|
|
2862
|
+
function collectionToArrayCommonImpl(collection) {
|
|
2863
|
+
if (collection.h()) {
|
|
2864
|
+
// Inline function 'kotlin.emptyArray' call
|
|
2865
|
+
return [];
|
|
2866
|
+
}
|
|
2867
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
2868
|
+
var size = collection.f();
|
|
2869
|
+
var destination = Array(size);
|
|
2870
|
+
var iterator = collection.c();
|
|
2871
|
+
var index = 0;
|
|
2872
|
+
while (iterator.d()) {
|
|
2873
|
+
var _unary__edvuaz = index;
|
|
2874
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2875
|
+
destination[_unary__edvuaz] = iterator.e();
|
|
2876
|
+
}
|
|
2877
|
+
return destination;
|
|
2878
|
+
}
|
|
2879
|
+
function emptyList() {
|
|
2880
|
+
return EmptyList_getInstance();
|
|
2881
|
+
}
|
|
2882
|
+
function EmptyList() {
|
|
2883
|
+
EmptyList_instance = this;
|
|
2884
|
+
this.f4_1 = new Long(-1478467534, -1720727600);
|
|
2885
|
+
}
|
|
2886
|
+
protoOf(EmptyList).equals = function (other) {
|
|
2887
|
+
var tmp;
|
|
2888
|
+
if (!(other == null) ? isInterface(other, KtList) : false) {
|
|
2889
|
+
tmp = other.h();
|
|
2890
|
+
} else {
|
|
2891
|
+
tmp = false;
|
|
2892
|
+
}
|
|
2893
|
+
return tmp;
|
|
2894
|
+
};
|
|
2895
|
+
protoOf(EmptyList).hashCode = function () {
|
|
2896
|
+
return 1;
|
|
2897
|
+
};
|
|
2898
|
+
protoOf(EmptyList).toString = function () {
|
|
2899
|
+
return '[]';
|
|
2900
|
+
};
|
|
2901
|
+
protoOf(EmptyList).f = function () {
|
|
2902
|
+
return 0;
|
|
2903
|
+
};
|
|
2904
|
+
protoOf(EmptyList).h = function () {
|
|
2905
|
+
return true;
|
|
2906
|
+
};
|
|
2907
|
+
protoOf(EmptyList).g = function (index) {
|
|
2908
|
+
throw IndexOutOfBoundsException_init_$Create$_0("Empty list doesn't contain element at index " + index + '.');
|
|
2909
|
+
};
|
|
2910
|
+
protoOf(EmptyList).c = function () {
|
|
2911
|
+
return EmptyIterator_instance;
|
|
2912
|
+
};
|
|
2913
|
+
var EmptyList_instance;
|
|
2914
|
+
function EmptyList_getInstance() {
|
|
2915
|
+
if (EmptyList_instance == null)
|
|
2916
|
+
new EmptyList();
|
|
2917
|
+
return EmptyList_instance;
|
|
2918
|
+
}
|
|
2919
|
+
function EmptyIterator() {
|
|
2920
|
+
}
|
|
2921
|
+
protoOf(EmptyIterator).d = function () {
|
|
2922
|
+
return false;
|
|
2923
|
+
};
|
|
2924
|
+
protoOf(EmptyIterator).e = function () {
|
|
2925
|
+
throw NoSuchElementException_init_$Create$();
|
|
2926
|
+
};
|
|
2927
|
+
var EmptyIterator_instance;
|
|
2928
|
+
function EmptyIterator_getInstance() {
|
|
2929
|
+
return EmptyIterator_instance;
|
|
2930
|
+
}
|
|
2931
|
+
function optimizeReadOnlyList(_this__u8e3s4) {
|
|
2932
|
+
switch (_this__u8e3s4.f()) {
|
|
2933
|
+
case 0:
|
|
2934
|
+
return emptyList();
|
|
2935
|
+
case 1:
|
|
2936
|
+
return listOf(_this__u8e3s4.g(0));
|
|
2937
|
+
default:
|
|
2938
|
+
return _this__u8e3s4;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
function collectionSizeOrDefault(_this__u8e3s4, default_0) {
|
|
2942
|
+
var tmp;
|
|
2943
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
2944
|
+
tmp = _this__u8e3s4.f();
|
|
2945
|
+
} else {
|
|
2946
|
+
tmp = default_0;
|
|
2947
|
+
}
|
|
2948
|
+
return tmp;
|
|
2949
|
+
}
|
|
2950
|
+
function compareValues(a, b) {
|
|
2951
|
+
if (a === b)
|
|
2952
|
+
return 0;
|
|
2953
|
+
if (a == null)
|
|
2954
|
+
return -1;
|
|
2955
|
+
if (b == null)
|
|
2956
|
+
return 1;
|
|
2957
|
+
return compareTo((!(a == null) ? isComparable(a) : false) ? a : THROW_CCE(), b);
|
|
2958
|
+
}
|
|
2959
|
+
function Default() {
|
|
2960
|
+
Default_instance = this;
|
|
2961
|
+
Random.call(this);
|
|
2962
|
+
this.g4_1 = defaultPlatformRandom();
|
|
2963
|
+
}
|
|
2964
|
+
var Default_instance;
|
|
2965
|
+
function Default_getInstance() {
|
|
2966
|
+
if (Default_instance == null)
|
|
2967
|
+
new Default();
|
|
2968
|
+
return Default_instance;
|
|
2969
|
+
}
|
|
2970
|
+
function Random() {
|
|
2971
|
+
Default_getInstance();
|
|
2972
|
+
}
|
|
2973
|
+
function Random_0(seed) {
|
|
2974
|
+
return XorWowRandom_init_$Create$(seed, seed >> 31);
|
|
2975
|
+
}
|
|
2976
|
+
function XorWowRandom_init_$Init$(seed1, seed2, $this) {
|
|
2977
|
+
XorWowRandom.call($this, seed1, seed2, 0, 0, ~seed1, seed1 << 10 ^ (seed2 >>> 4 | 0));
|
|
2978
|
+
return $this;
|
|
2979
|
+
}
|
|
2980
|
+
function XorWowRandom_init_$Create$(seed1, seed2) {
|
|
2981
|
+
return XorWowRandom_init_$Init$(seed1, seed2, objectCreate(protoOf(XorWowRandom)));
|
|
2982
|
+
}
|
|
2983
|
+
function checkInvariants($this) {
|
|
2984
|
+
// Inline function 'kotlin.require' call
|
|
2985
|
+
if (!!(($this.h4_1 | $this.i4_1 | $this.j4_1 | $this.k4_1 | $this.l4_1) === 0)) {
|
|
2986
|
+
var message = 'Initial state must have at least one non-zero element.';
|
|
2987
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
function Companion_5() {
|
|
2991
|
+
Companion_instance_5 = this;
|
|
2992
|
+
this.n4_1 = new Long(0, 0);
|
|
2993
|
+
}
|
|
2994
|
+
var Companion_instance_5;
|
|
2995
|
+
function Companion_getInstance_5() {
|
|
2996
|
+
if (Companion_instance_5 == null)
|
|
2997
|
+
new Companion_5();
|
|
2998
|
+
return Companion_instance_5;
|
|
2999
|
+
}
|
|
3000
|
+
function XorWowRandom(x, y, z, w, v, addend) {
|
|
3001
|
+
Companion_getInstance_5();
|
|
3002
|
+
Random.call(this);
|
|
3003
|
+
this.h4_1 = x;
|
|
3004
|
+
this.i4_1 = y;
|
|
3005
|
+
this.j4_1 = z;
|
|
3006
|
+
this.k4_1 = w;
|
|
3007
|
+
this.l4_1 = v;
|
|
3008
|
+
this.m4_1 = addend;
|
|
3009
|
+
checkInvariants(this);
|
|
3010
|
+
// Inline function 'kotlin.repeat' call
|
|
3011
|
+
var inductionVariable = 0;
|
|
3012
|
+
if (inductionVariable < 64)
|
|
3013
|
+
do {
|
|
3014
|
+
var index = inductionVariable;
|
|
3015
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3016
|
+
this.o4();
|
|
3017
|
+
}
|
|
3018
|
+
while (inductionVariable < 64);
|
|
3019
|
+
}
|
|
3020
|
+
protoOf(XorWowRandom).o4 = function () {
|
|
3021
|
+
var t = this.h4_1;
|
|
3022
|
+
t = t ^ (t >>> 2 | 0);
|
|
3023
|
+
this.h4_1 = this.i4_1;
|
|
3024
|
+
this.i4_1 = this.j4_1;
|
|
3025
|
+
this.j4_1 = this.k4_1;
|
|
3026
|
+
var v0 = this.l4_1;
|
|
3027
|
+
this.k4_1 = v0;
|
|
3028
|
+
t = t ^ t << 1 ^ v0 ^ v0 << 4;
|
|
3029
|
+
this.l4_1 = t;
|
|
3030
|
+
this.m4_1 = this.m4_1 + 362437 | 0;
|
|
3031
|
+
return t + this.m4_1 | 0;
|
|
3032
|
+
};
|
|
3033
|
+
function appendElement(_this__u8e3s4, element, transform) {
|
|
3034
|
+
if (!(transform == null))
|
|
3035
|
+
_this__u8e3s4.b(transform(element));
|
|
3036
|
+
else {
|
|
3037
|
+
if (element == null ? true : isCharSequence(element))
|
|
3038
|
+
_this__u8e3s4.b(element);
|
|
3039
|
+
else {
|
|
3040
|
+
if (element instanceof Char)
|
|
3041
|
+
_this__u8e3s4.w3(element.p4_1);
|
|
3042
|
+
else {
|
|
3043
|
+
_this__u8e3s4.b(toString_1(element));
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
function UnsafeLazyImpl(initializer) {
|
|
3049
|
+
this.q4_1 = initializer;
|
|
3050
|
+
this.r4_1 = UNINITIALIZED_VALUE_instance;
|
|
3051
|
+
}
|
|
3052
|
+
protoOf(UnsafeLazyImpl).m = function () {
|
|
3053
|
+
if (this.r4_1 === UNINITIALIZED_VALUE_instance) {
|
|
3054
|
+
this.r4_1 = ensureNotNull(this.q4_1)();
|
|
3055
|
+
this.q4_1 = null;
|
|
3056
|
+
}
|
|
3057
|
+
var tmp = this.r4_1;
|
|
3058
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
3059
|
+
};
|
|
3060
|
+
protoOf(UnsafeLazyImpl).s4 = function () {
|
|
3061
|
+
return !(this.r4_1 === UNINITIALIZED_VALUE_instance);
|
|
3062
|
+
};
|
|
3063
|
+
protoOf(UnsafeLazyImpl).toString = function () {
|
|
3064
|
+
return this.s4() ? toString_0(this.m()) : 'Lazy value not initialized yet.';
|
|
3065
|
+
};
|
|
3066
|
+
function UNINITIALIZED_VALUE() {
|
|
3067
|
+
}
|
|
3068
|
+
var UNINITIALIZED_VALUE_instance;
|
|
3069
|
+
function UNINITIALIZED_VALUE_getInstance() {
|
|
3070
|
+
return UNINITIALIZED_VALUE_instance;
|
|
3071
|
+
}
|
|
3072
|
+
//region block: post-declaration
|
|
3073
|
+
protoOf(InternalHashMap).n2 = containsAllEntries;
|
|
3074
|
+
//endregion
|
|
3075
|
+
//region block: init
|
|
3076
|
+
Unit_instance = new Unit();
|
|
3077
|
+
_stableSortingIsSupported = null;
|
|
3078
|
+
Companion_instance_1 = new Companion_1();
|
|
3079
|
+
Companion_instance_2 = new Companion_2();
|
|
3080
|
+
Companion_instance_3 = new Companion_3();
|
|
3081
|
+
Companion_instance_4 = new Companion_4();
|
|
3082
|
+
EmptyIterator_instance = new EmptyIterator();
|
|
3083
|
+
UNINITIALIZED_VALUE_instance = new UNINITIALIZED_VALUE();
|
|
3084
|
+
//endregion
|
|
3085
|
+
//region block: exports
|
|
3086
|
+
_.$_$ = _.$_$ || {};
|
|
3087
|
+
_.$_$.a = VOID;
|
|
3088
|
+
_.$_$.b = ArrayList_init_$Create$_0;
|
|
3089
|
+
_.$_$.c = LinkedHashMap_init_$Create$;
|
|
3090
|
+
_.$_$.d = IllegalArgumentException_init_$Create$_0;
|
|
3091
|
+
_.$_$.e = IllegalStateException_init_$Create$_0;
|
|
3092
|
+
_.$_$.f = Unit_instance;
|
|
3093
|
+
_.$_$.g = KtMap;
|
|
3094
|
+
_.$_$.h = collectionSizeOrDefault;
|
|
3095
|
+
_.$_$.i = first;
|
|
3096
|
+
_.$_$.j = sortedWith;
|
|
3097
|
+
_.$_$.k = compareValues;
|
|
3098
|
+
_.$_$.l = FunctionAdapter;
|
|
3099
|
+
_.$_$.m = defineProp;
|
|
3100
|
+
_.$_$.n = equals;
|
|
3101
|
+
_.$_$.o = hashCode_0;
|
|
3102
|
+
_.$_$.p = initMetadataForClass;
|
|
3103
|
+
_.$_$.q = initMetadataForCompanion;
|
|
3104
|
+
_.$_$.r = initMetadataForObject;
|
|
3105
|
+
_.$_$.s = isInterface;
|
|
3106
|
+
_.$_$.t = protoOf;
|
|
3107
|
+
_.$_$.u = toString_1;
|
|
3108
|
+
_.$_$.v = Random;
|
|
3109
|
+
_.$_$.w = Comparator;
|
|
3110
|
+
_.$_$.x = THROW_CCE;
|
|
3111
|
+
_.$_$.y = ensureNotNull;
|
|
3112
|
+
_.$_$.z = lazy;
|
|
3113
|
+
_.$_$.a1 = toString_0;
|
|
3114
|
+
//endregion
|
|
3115
|
+
return _;
|
|
3116
|
+
}));
|
|
3117
|
+
|
|
3118
|
+
//# sourceMappingURL=kotlin-kotlin-stdlib.js.map
|