@supernovan/zipcode-validator 1.0.0
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/kotlin/kotlin-kotlin-stdlib.js +2671 -0
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlin/zipcode-validator.js +3119 -0
- package/kotlin/zipcode-validator.js.map +1 -0
- package/package.json +13 -0
|
@@ -0,0 +1,2671 @@
|
|
|
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
|
+
initMetadataForClass(Number_0, 'Number');
|
|
78
|
+
initMetadataForClass(Char, 'Char');
|
|
79
|
+
initMetadataForInterface(Collection, 'Collection');
|
|
80
|
+
initMetadataForInterface(KtList, 'List', VOID, VOID, [Collection]);
|
|
81
|
+
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
82
|
+
initMetadataForInterface(Entry, 'Entry');
|
|
83
|
+
initMetadataForInterface(KtMap, 'Map');
|
|
84
|
+
initMetadataForCompanion(Companion);
|
|
85
|
+
initMetadataForClass(Enum, 'Enum');
|
|
86
|
+
initMetadataForCompanion(Companion_0);
|
|
87
|
+
initMetadataForClass(Long, 'Long', VOID, Number_0);
|
|
88
|
+
initMetadataForInterface(FunctionAdapter, 'FunctionAdapter');
|
|
89
|
+
initMetadataForInterface(Comparator, 'Comparator');
|
|
90
|
+
initMetadataForObject(Unit, 'Unit');
|
|
91
|
+
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
92
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection]);
|
|
93
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, Collection, KtSet]);
|
|
94
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, Collection, KtSet]);
|
|
95
|
+
initMetadataForCompanion(Companion_1);
|
|
96
|
+
initMetadataForClass(Itr, 'Itr');
|
|
97
|
+
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
98
|
+
initMetadataForClass(EntriesItr, 'EntriesItr', VOID, Itr);
|
|
99
|
+
initMetadataForClass(EntryRef, 'EntryRef', VOID, VOID, [Entry]);
|
|
100
|
+
function containsAllEntries(m) {
|
|
101
|
+
var tmp$ret$0;
|
|
102
|
+
$l$block_0: {
|
|
103
|
+
// Inline function 'kotlin.collections.all' call
|
|
104
|
+
var tmp;
|
|
105
|
+
if (isInterface(m, Collection)) {
|
|
106
|
+
tmp = m.k();
|
|
107
|
+
} else {
|
|
108
|
+
tmp = false;
|
|
109
|
+
}
|
|
110
|
+
if (tmp) {
|
|
111
|
+
tmp$ret$0 = true;
|
|
112
|
+
break $l$block_0;
|
|
113
|
+
}
|
|
114
|
+
var _iterator__ex2g4s = m.f();
|
|
115
|
+
while (_iterator__ex2g4s.g()) {
|
|
116
|
+
var element = _iterator__ex2g4s.h();
|
|
117
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
118
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
119
|
+
var entry = element;
|
|
120
|
+
var tmp_0;
|
|
121
|
+
if (!(entry == null) ? isInterface(entry, Entry) : false) {
|
|
122
|
+
tmp_0 = this.b3(entry);
|
|
123
|
+
} else {
|
|
124
|
+
tmp_0 = false;
|
|
125
|
+
}
|
|
126
|
+
if (!tmp_0) {
|
|
127
|
+
tmp$ret$0 = false;
|
|
128
|
+
break $l$block_0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
tmp$ret$0 = true;
|
|
132
|
+
}
|
|
133
|
+
return tmp$ret$0;
|
|
134
|
+
}
|
|
135
|
+
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
136
|
+
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
|
|
137
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, Collection, KtSet]);
|
|
138
|
+
initMetadataForClass(Exception, 'Exception', Exception_init_$Create$, Error);
|
|
139
|
+
initMetadataForClass(RuntimeException, 'RuntimeException', RuntimeException_init_$Create$, Exception);
|
|
140
|
+
initMetadataForClass(UnsupportedOperationException, 'UnsupportedOperationException', UnsupportedOperationException_init_$Create$, RuntimeException);
|
|
141
|
+
initMetadataForClass(IllegalStateException, 'IllegalStateException', IllegalStateException_init_$Create$, RuntimeException);
|
|
142
|
+
initMetadataForClass(IllegalArgumentException, 'IllegalArgumentException', IllegalArgumentException_init_$Create$, RuntimeException);
|
|
143
|
+
initMetadataForClass(NoSuchElementException, 'NoSuchElementException', NoSuchElementException_init_$Create$, RuntimeException);
|
|
144
|
+
initMetadataForClass(IndexOutOfBoundsException, 'IndexOutOfBoundsException', IndexOutOfBoundsException_init_$Create$, RuntimeException);
|
|
145
|
+
initMetadataForClass(ConcurrentModificationException, 'ConcurrentModificationException', ConcurrentModificationException_init_$Create$, RuntimeException);
|
|
146
|
+
initMetadataForClass(NullPointerException, 'NullPointerException', NullPointerException_init_$Create$, RuntimeException);
|
|
147
|
+
initMetadataForClass(NoWhenBranchMatchedException, 'NoWhenBranchMatchedException', NoWhenBranchMatchedException_init_$Create$, RuntimeException);
|
|
148
|
+
initMetadataForClass(ClassCastException, 'ClassCastException', ClassCastException_init_$Create$, RuntimeException);
|
|
149
|
+
initMetadataForClass(KClassImpl, 'KClassImpl');
|
|
150
|
+
initMetadataForClass(PrimitiveKClassImpl, 'PrimitiveKClassImpl', VOID, KClassImpl);
|
|
151
|
+
initMetadataForObject(NothingKClassImpl, 'NothingKClassImpl', VOID, KClassImpl);
|
|
152
|
+
initMetadataForClass(StringBuilder, 'StringBuilder', StringBuilder_init_$Create$_0, VOID, [CharSequence]);
|
|
153
|
+
initMetadataForCompanion(Companion_2);
|
|
154
|
+
initMetadataForClass(Regex, 'Regex');
|
|
155
|
+
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
156
|
+
initMetadataForCompanion(Companion_3);
|
|
157
|
+
initMetadataForCompanion(Companion_4);
|
|
158
|
+
initMetadataForObject(EmptyIterator, 'EmptyIterator');
|
|
159
|
+
initMetadataForObject(EmptySet, 'EmptySet', VOID, VOID, [KtSet]);
|
|
160
|
+
//endregion
|
|
161
|
+
function CharSequence() {
|
|
162
|
+
}
|
|
163
|
+
function Number_0() {
|
|
164
|
+
}
|
|
165
|
+
function toCollection(_this__u8e3s4, destination) {
|
|
166
|
+
var inductionVariable = 0;
|
|
167
|
+
var last = _this__u8e3s4.length;
|
|
168
|
+
while (inductionVariable < last) {
|
|
169
|
+
var item = _this__u8e3s4[inductionVariable];
|
|
170
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
171
|
+
destination.d(item);
|
|
172
|
+
}
|
|
173
|
+
return destination;
|
|
174
|
+
}
|
|
175
|
+
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
176
|
+
separator = separator === VOID ? ', ' : separator;
|
|
177
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
178
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
179
|
+
limit = limit === VOID ? -1 : limit;
|
|
180
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
181
|
+
transform = transform === VOID ? null : transform;
|
|
182
|
+
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
183
|
+
}
|
|
184
|
+
function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
185
|
+
separator = separator === VOID ? ', ' : separator;
|
|
186
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
187
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
188
|
+
limit = limit === VOID ? -1 : limit;
|
|
189
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
190
|
+
transform = transform === VOID ? null : transform;
|
|
191
|
+
buffer.e(prefix);
|
|
192
|
+
var count = 0;
|
|
193
|
+
var _iterator__ex2g4s = _this__u8e3s4.f();
|
|
194
|
+
$l$loop: while (_iterator__ex2g4s.g()) {
|
|
195
|
+
var element = _iterator__ex2g4s.h();
|
|
196
|
+
count = count + 1 | 0;
|
|
197
|
+
if (count > 1) {
|
|
198
|
+
buffer.e(separator);
|
|
199
|
+
}
|
|
200
|
+
if (limit < 0 || count <= limit) {
|
|
201
|
+
appendElement(buffer, element, transform);
|
|
202
|
+
} else
|
|
203
|
+
break $l$loop;
|
|
204
|
+
}
|
|
205
|
+
if (limit >= 0 && count > limit) {
|
|
206
|
+
buffer.e(truncated);
|
|
207
|
+
}
|
|
208
|
+
buffer.e(postfix);
|
|
209
|
+
return buffer;
|
|
210
|
+
}
|
|
211
|
+
function toSet(_this__u8e3s4) {
|
|
212
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
213
|
+
var tmp;
|
|
214
|
+
switch (_this__u8e3s4.i()) {
|
|
215
|
+
case 0:
|
|
216
|
+
tmp = emptySet();
|
|
217
|
+
break;
|
|
218
|
+
case 1:
|
|
219
|
+
var tmp_0;
|
|
220
|
+
if (isInterface(_this__u8e3s4, KtList)) {
|
|
221
|
+
tmp_0 = _this__u8e3s4.j(0);
|
|
222
|
+
} else {
|
|
223
|
+
tmp_0 = _this__u8e3s4.f().h();
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
tmp = setOf(tmp_0);
|
|
227
|
+
break;
|
|
228
|
+
default:
|
|
229
|
+
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$_0(mapCapacity(_this__u8e3s4.i())));
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
return tmp;
|
|
233
|
+
}
|
|
234
|
+
return optimizeReadOnlySet(toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$()));
|
|
235
|
+
}
|
|
236
|
+
function toCollection_0(_this__u8e3s4, destination) {
|
|
237
|
+
var _iterator__ex2g4s = _this__u8e3s4.f();
|
|
238
|
+
while (_iterator__ex2g4s.g()) {
|
|
239
|
+
var item = _iterator__ex2g4s.h();
|
|
240
|
+
destination.d(item);
|
|
241
|
+
}
|
|
242
|
+
return destination;
|
|
243
|
+
}
|
|
244
|
+
function coerceAtLeast(_this__u8e3s4, minimumValue) {
|
|
245
|
+
return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4;
|
|
246
|
+
}
|
|
247
|
+
function coerceAtMost(_this__u8e3s4, maximumValue) {
|
|
248
|
+
return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4;
|
|
249
|
+
}
|
|
250
|
+
function _Char___init__impl__6a9atx(value) {
|
|
251
|
+
return value;
|
|
252
|
+
}
|
|
253
|
+
function _get_value__a43j40($this) {
|
|
254
|
+
return $this;
|
|
255
|
+
}
|
|
256
|
+
function Char__compareTo_impl_ypi4mb($this, other) {
|
|
257
|
+
return _get_value__a43j40($this) - _get_value__a43j40(other) | 0;
|
|
258
|
+
}
|
|
259
|
+
function Char__toInt_impl_vasixd($this) {
|
|
260
|
+
return _get_value__a43j40($this);
|
|
261
|
+
}
|
|
262
|
+
function toString($this) {
|
|
263
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
264
|
+
return String.fromCharCode(_get_value__a43j40($this));
|
|
265
|
+
}
|
|
266
|
+
function Char() {
|
|
267
|
+
}
|
|
268
|
+
function KtList() {
|
|
269
|
+
}
|
|
270
|
+
function Collection() {
|
|
271
|
+
}
|
|
272
|
+
function KtSet() {
|
|
273
|
+
}
|
|
274
|
+
function Entry() {
|
|
275
|
+
}
|
|
276
|
+
function KtMap() {
|
|
277
|
+
}
|
|
278
|
+
function Companion() {
|
|
279
|
+
}
|
|
280
|
+
var Companion_instance;
|
|
281
|
+
function Companion_getInstance() {
|
|
282
|
+
return Companion_instance;
|
|
283
|
+
}
|
|
284
|
+
function Enum(name, ordinal) {
|
|
285
|
+
this.q_1 = name;
|
|
286
|
+
this.r_1 = ordinal;
|
|
287
|
+
}
|
|
288
|
+
protoOf(Enum).s = function () {
|
|
289
|
+
return this.q_1;
|
|
290
|
+
};
|
|
291
|
+
protoOf(Enum).t = function () {
|
|
292
|
+
return this.r_1;
|
|
293
|
+
};
|
|
294
|
+
protoOf(Enum).u = function (other) {
|
|
295
|
+
return compareTo(this.r_1, other.r_1);
|
|
296
|
+
};
|
|
297
|
+
protoOf(Enum).v = function (other) {
|
|
298
|
+
return this.u(other instanceof Enum ? other : THROW_CCE());
|
|
299
|
+
};
|
|
300
|
+
protoOf(Enum).equals = function (other) {
|
|
301
|
+
return this === other;
|
|
302
|
+
};
|
|
303
|
+
protoOf(Enum).hashCode = function () {
|
|
304
|
+
return identityHashCode(this);
|
|
305
|
+
};
|
|
306
|
+
protoOf(Enum).toString = function () {
|
|
307
|
+
return this.q_1;
|
|
308
|
+
};
|
|
309
|
+
function toString_0(_this__u8e3s4) {
|
|
310
|
+
var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : toString_1(_this__u8e3s4);
|
|
311
|
+
return tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs;
|
|
312
|
+
}
|
|
313
|
+
function Companion_0() {
|
|
314
|
+
Companion_instance_0 = this;
|
|
315
|
+
this.w_1 = new Long(0, -2147483648);
|
|
316
|
+
this.x_1 = new Long(-1, 2147483647);
|
|
317
|
+
this.y_1 = 8;
|
|
318
|
+
this.z_1 = 64;
|
|
319
|
+
}
|
|
320
|
+
var Companion_instance_0;
|
|
321
|
+
function Companion_getInstance_0() {
|
|
322
|
+
if (Companion_instance_0 == null)
|
|
323
|
+
new Companion_0();
|
|
324
|
+
return Companion_instance_0;
|
|
325
|
+
}
|
|
326
|
+
function Long(low, high) {
|
|
327
|
+
Companion_getInstance_0();
|
|
328
|
+
Number_0.call(this);
|
|
329
|
+
this.a1_1 = low;
|
|
330
|
+
this.b1_1 = high;
|
|
331
|
+
}
|
|
332
|
+
protoOf(Long).c1 = function (other) {
|
|
333
|
+
return compare(this, other);
|
|
334
|
+
};
|
|
335
|
+
protoOf(Long).v = function (other) {
|
|
336
|
+
return this.c1(other instanceof Long ? other : THROW_CCE());
|
|
337
|
+
};
|
|
338
|
+
protoOf(Long).toString = function () {
|
|
339
|
+
return toStringImpl(this, 10);
|
|
340
|
+
};
|
|
341
|
+
protoOf(Long).equals = function (other) {
|
|
342
|
+
var tmp;
|
|
343
|
+
if (other instanceof Long) {
|
|
344
|
+
tmp = equalsLong(this, other);
|
|
345
|
+
} else {
|
|
346
|
+
tmp = false;
|
|
347
|
+
}
|
|
348
|
+
return tmp;
|
|
349
|
+
};
|
|
350
|
+
protoOf(Long).hashCode = function () {
|
|
351
|
+
return hashCode(this);
|
|
352
|
+
};
|
|
353
|
+
protoOf(Long).valueOf = function () {
|
|
354
|
+
return toNumber(this);
|
|
355
|
+
};
|
|
356
|
+
function abs(_this__u8e3s4) {
|
|
357
|
+
var tmp;
|
|
358
|
+
// Inline function 'kotlin.js.internal.isNegative' call
|
|
359
|
+
if (_this__u8e3s4 < 0) {
|
|
360
|
+
// Inline function 'kotlin.js.internal.unaryMinus' call
|
|
361
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
362
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
363
|
+
tmp = -_this__u8e3s4;
|
|
364
|
+
} else {
|
|
365
|
+
tmp = _this__u8e3s4;
|
|
366
|
+
}
|
|
367
|
+
return tmp;
|
|
368
|
+
}
|
|
369
|
+
function implement(interfaces) {
|
|
370
|
+
var maxSize = 1;
|
|
371
|
+
var masks = [];
|
|
372
|
+
var inductionVariable = 0;
|
|
373
|
+
var last = interfaces.length;
|
|
374
|
+
while (inductionVariable < last) {
|
|
375
|
+
var i = interfaces[inductionVariable];
|
|
376
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
377
|
+
var currentSize = maxSize;
|
|
378
|
+
var tmp0_elvis_lhs = i.prototype.$imask$;
|
|
379
|
+
var imask = tmp0_elvis_lhs == null ? i.$imask$ : tmp0_elvis_lhs;
|
|
380
|
+
if (!(imask == null)) {
|
|
381
|
+
masks.push(imask);
|
|
382
|
+
currentSize = imask.length;
|
|
383
|
+
}
|
|
384
|
+
var iid = i.$metadata$.iid;
|
|
385
|
+
var tmp;
|
|
386
|
+
if (iid == null) {
|
|
387
|
+
tmp = null;
|
|
388
|
+
} else {
|
|
389
|
+
// Inline function 'kotlin.let' call
|
|
390
|
+
tmp = bitMaskWith(iid);
|
|
391
|
+
}
|
|
392
|
+
var iidImask = tmp;
|
|
393
|
+
if (!(iidImask == null)) {
|
|
394
|
+
masks.push(iidImask);
|
|
395
|
+
currentSize = Math.max(currentSize, iidImask.length);
|
|
396
|
+
}
|
|
397
|
+
if (currentSize > maxSize) {
|
|
398
|
+
maxSize = currentSize;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return compositeBitMask(maxSize, masks);
|
|
402
|
+
}
|
|
403
|
+
function bitMaskWith(activeBit) {
|
|
404
|
+
var numberIndex = activeBit >> 5;
|
|
405
|
+
var intArray = new Int32Array(numberIndex + 1 | 0);
|
|
406
|
+
var positionInNumber = activeBit & 31;
|
|
407
|
+
var numberWithSettledBit = 1 << positionInNumber;
|
|
408
|
+
intArray[numberIndex] = intArray[numberIndex] | numberWithSettledBit;
|
|
409
|
+
return intArray;
|
|
410
|
+
}
|
|
411
|
+
function compositeBitMask(capacity, masks) {
|
|
412
|
+
var tmp = 0;
|
|
413
|
+
var tmp_0 = new Int32Array(capacity);
|
|
414
|
+
while (tmp < capacity) {
|
|
415
|
+
var tmp_1 = tmp;
|
|
416
|
+
var result = 0;
|
|
417
|
+
var inductionVariable = 0;
|
|
418
|
+
var last = masks.length;
|
|
419
|
+
while (inductionVariable < last) {
|
|
420
|
+
var mask = masks[inductionVariable];
|
|
421
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
422
|
+
if (tmp_1 < mask.length) {
|
|
423
|
+
result = result | mask[tmp_1];
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
tmp_0[tmp_1] = result;
|
|
427
|
+
tmp = tmp + 1 | 0;
|
|
428
|
+
}
|
|
429
|
+
return tmp_0;
|
|
430
|
+
}
|
|
431
|
+
function isBitSet(_this__u8e3s4, possibleActiveBit) {
|
|
432
|
+
var numberIndex = possibleActiveBit >> 5;
|
|
433
|
+
if (numberIndex > _this__u8e3s4.length)
|
|
434
|
+
return false;
|
|
435
|
+
var positionInNumber = possibleActiveBit & 31;
|
|
436
|
+
var numberWithSettledBit = 1 << positionInNumber;
|
|
437
|
+
return !((_this__u8e3s4[numberIndex] & numberWithSettledBit) === 0);
|
|
438
|
+
}
|
|
439
|
+
function FunctionAdapter() {
|
|
440
|
+
}
|
|
441
|
+
function get_buf() {
|
|
442
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
443
|
+
return buf;
|
|
444
|
+
}
|
|
445
|
+
var buf;
|
|
446
|
+
function get_bufFloat64() {
|
|
447
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
448
|
+
return bufFloat64;
|
|
449
|
+
}
|
|
450
|
+
var bufFloat64;
|
|
451
|
+
var bufFloat32;
|
|
452
|
+
function get_bufInt32() {
|
|
453
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
454
|
+
return bufInt32;
|
|
455
|
+
}
|
|
456
|
+
var bufInt32;
|
|
457
|
+
function get_lowIndex() {
|
|
458
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
459
|
+
return lowIndex;
|
|
460
|
+
}
|
|
461
|
+
var lowIndex;
|
|
462
|
+
function get_highIndex() {
|
|
463
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
464
|
+
return highIndex;
|
|
465
|
+
}
|
|
466
|
+
var highIndex;
|
|
467
|
+
function getNumberHashCode(obj) {
|
|
468
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
469
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
470
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
471
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
472
|
+
if ((obj | 0) === obj) {
|
|
473
|
+
return numberToInt(obj);
|
|
474
|
+
}
|
|
475
|
+
get_bufFloat64()[0] = obj;
|
|
476
|
+
return imul(get_bufInt32()[get_highIndex()], 31) + get_bufInt32()[get_lowIndex()] | 0;
|
|
477
|
+
}
|
|
478
|
+
var properties_initialized_bitUtils_kt_i2bo3e;
|
|
479
|
+
function _init_properties_bitUtils_kt__nfcg4k() {
|
|
480
|
+
if (!properties_initialized_bitUtils_kt_i2bo3e) {
|
|
481
|
+
properties_initialized_bitUtils_kt_i2bo3e = true;
|
|
482
|
+
buf = new ArrayBuffer(8);
|
|
483
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
484
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
485
|
+
bufFloat64 = new Float64Array(get_buf());
|
|
486
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
487
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
488
|
+
bufFloat32 = new Float32Array(get_buf());
|
|
489
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
490
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
491
|
+
bufInt32 = new Int32Array(get_buf());
|
|
492
|
+
// Inline function 'kotlin.run' call
|
|
493
|
+
get_bufFloat64()[0] = -1.0;
|
|
494
|
+
lowIndex = !(get_bufInt32()[0] === 0) ? 1 : 0;
|
|
495
|
+
highIndex = 1 - get_lowIndex() | 0;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
function get_ZERO() {
|
|
499
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
500
|
+
return ZERO;
|
|
501
|
+
}
|
|
502
|
+
var ZERO;
|
|
503
|
+
function get_ONE() {
|
|
504
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
505
|
+
return ONE;
|
|
506
|
+
}
|
|
507
|
+
var ONE;
|
|
508
|
+
function get_NEG_ONE() {
|
|
509
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
510
|
+
return NEG_ONE;
|
|
511
|
+
}
|
|
512
|
+
var NEG_ONE;
|
|
513
|
+
function get_MAX_VALUE() {
|
|
514
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
515
|
+
return MAX_VALUE;
|
|
516
|
+
}
|
|
517
|
+
var MAX_VALUE;
|
|
518
|
+
function get_MIN_VALUE() {
|
|
519
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
520
|
+
return MIN_VALUE;
|
|
521
|
+
}
|
|
522
|
+
var MIN_VALUE;
|
|
523
|
+
function get_TWO_PWR_24_() {
|
|
524
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
525
|
+
return TWO_PWR_24_;
|
|
526
|
+
}
|
|
527
|
+
var TWO_PWR_24_;
|
|
528
|
+
var longArrayClass;
|
|
529
|
+
function compare(_this__u8e3s4, other) {
|
|
530
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
531
|
+
if (equalsLong(_this__u8e3s4, other)) {
|
|
532
|
+
return 0;
|
|
533
|
+
}
|
|
534
|
+
var thisNeg = isNegative(_this__u8e3s4);
|
|
535
|
+
var otherNeg = isNegative(other);
|
|
536
|
+
return thisNeg && !otherNeg ? -1 : !thisNeg && otherNeg ? 1 : isNegative(subtract(_this__u8e3s4, other)) ? -1 : 1;
|
|
537
|
+
}
|
|
538
|
+
function convertToInt(_this__u8e3s4) {
|
|
539
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
540
|
+
return _this__u8e3s4.a1_1;
|
|
541
|
+
}
|
|
542
|
+
function toNumber(_this__u8e3s4) {
|
|
543
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
544
|
+
return _this__u8e3s4.b1_1 * 4.294967296E9 + getLowBitsUnsigned(_this__u8e3s4);
|
|
545
|
+
}
|
|
546
|
+
function toStringImpl(_this__u8e3s4, radix) {
|
|
547
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
548
|
+
if (isZero(_this__u8e3s4)) {
|
|
549
|
+
return '0';
|
|
550
|
+
}
|
|
551
|
+
if (isNegative(_this__u8e3s4)) {
|
|
552
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
553
|
+
var radixLong = fromInt(radix);
|
|
554
|
+
var div = divide(_this__u8e3s4, radixLong);
|
|
555
|
+
var rem = convertToInt(subtract(multiply(div, radixLong), _this__u8e3s4));
|
|
556
|
+
var tmp = toStringImpl(div, radix);
|
|
557
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
558
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
559
|
+
return tmp + rem.toString(radix);
|
|
560
|
+
} else {
|
|
561
|
+
return '-' + toStringImpl(negate(_this__u8e3s4), radix);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
var digitsPerTime = radix === 2 ? 31 : radix <= 10 ? 9 : radix <= 21 ? 7 : radix <= 35 ? 6 : 5;
|
|
565
|
+
var radixToPower = fromNumber(Math.pow(radix, digitsPerTime));
|
|
566
|
+
var rem_0 = _this__u8e3s4;
|
|
567
|
+
var result = '';
|
|
568
|
+
while (true) {
|
|
569
|
+
var remDiv = divide(rem_0, radixToPower);
|
|
570
|
+
var intval = convertToInt(subtract(rem_0, multiply(remDiv, radixToPower)));
|
|
571
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
572
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
573
|
+
var digits = intval.toString(radix);
|
|
574
|
+
rem_0 = remDiv;
|
|
575
|
+
if (isZero(rem_0)) {
|
|
576
|
+
return digits + result;
|
|
577
|
+
} else {
|
|
578
|
+
while (digits.length < digitsPerTime) {
|
|
579
|
+
digits = '0' + digits;
|
|
580
|
+
}
|
|
581
|
+
result = digits + result;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function equalsLong(_this__u8e3s4, other) {
|
|
586
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
587
|
+
return _this__u8e3s4.b1_1 === other.b1_1 && _this__u8e3s4.a1_1 === other.a1_1;
|
|
588
|
+
}
|
|
589
|
+
function hashCode(l) {
|
|
590
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
591
|
+
return l.a1_1 ^ l.b1_1;
|
|
592
|
+
}
|
|
593
|
+
function fromInt(value) {
|
|
594
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
595
|
+
return new Long(value, value < 0 ? -1 : 0);
|
|
596
|
+
}
|
|
597
|
+
function isNegative(_this__u8e3s4) {
|
|
598
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
599
|
+
return _this__u8e3s4.b1_1 < 0;
|
|
600
|
+
}
|
|
601
|
+
function subtract(_this__u8e3s4, other) {
|
|
602
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
603
|
+
return add(_this__u8e3s4, negate(other));
|
|
604
|
+
}
|
|
605
|
+
function getLowBitsUnsigned(_this__u8e3s4) {
|
|
606
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
607
|
+
return _this__u8e3s4.a1_1 >= 0 ? _this__u8e3s4.a1_1 : 4.294967296E9 + _this__u8e3s4.a1_1;
|
|
608
|
+
}
|
|
609
|
+
function isZero(_this__u8e3s4) {
|
|
610
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
611
|
+
return _this__u8e3s4.b1_1 === 0 && _this__u8e3s4.a1_1 === 0;
|
|
612
|
+
}
|
|
613
|
+
function multiply(_this__u8e3s4, other) {
|
|
614
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
615
|
+
if (isZero(_this__u8e3s4)) {
|
|
616
|
+
return get_ZERO();
|
|
617
|
+
} else if (isZero(other)) {
|
|
618
|
+
return get_ZERO();
|
|
619
|
+
}
|
|
620
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
621
|
+
return isOdd(other) ? get_MIN_VALUE() : get_ZERO();
|
|
622
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
623
|
+
return isOdd(_this__u8e3s4) ? get_MIN_VALUE() : get_ZERO();
|
|
624
|
+
}
|
|
625
|
+
if (isNegative(_this__u8e3s4)) {
|
|
626
|
+
var tmp;
|
|
627
|
+
if (isNegative(other)) {
|
|
628
|
+
tmp = multiply(negate(_this__u8e3s4), negate(other));
|
|
629
|
+
} else {
|
|
630
|
+
tmp = negate(multiply(negate(_this__u8e3s4), other));
|
|
631
|
+
}
|
|
632
|
+
return tmp;
|
|
633
|
+
} else if (isNegative(other)) {
|
|
634
|
+
return negate(multiply(_this__u8e3s4, negate(other)));
|
|
635
|
+
}
|
|
636
|
+
if (lessThan(_this__u8e3s4, get_TWO_PWR_24_()) && lessThan(other, get_TWO_PWR_24_())) {
|
|
637
|
+
return fromNumber(toNumber(_this__u8e3s4) * toNumber(other));
|
|
638
|
+
}
|
|
639
|
+
var a48 = _this__u8e3s4.b1_1 >>> 16 | 0;
|
|
640
|
+
var a32 = _this__u8e3s4.b1_1 & 65535;
|
|
641
|
+
var a16 = _this__u8e3s4.a1_1 >>> 16 | 0;
|
|
642
|
+
var a00 = _this__u8e3s4.a1_1 & 65535;
|
|
643
|
+
var b48 = other.b1_1 >>> 16 | 0;
|
|
644
|
+
var b32 = other.b1_1 & 65535;
|
|
645
|
+
var b16 = other.a1_1 >>> 16 | 0;
|
|
646
|
+
var b00 = other.a1_1 & 65535;
|
|
647
|
+
var c48 = 0;
|
|
648
|
+
var c32 = 0;
|
|
649
|
+
var c16 = 0;
|
|
650
|
+
var c00 = 0;
|
|
651
|
+
c00 = c00 + imul(a00, b00) | 0;
|
|
652
|
+
c16 = c16 + (c00 >>> 16 | 0) | 0;
|
|
653
|
+
c00 = c00 & 65535;
|
|
654
|
+
c16 = c16 + imul(a16, b00) | 0;
|
|
655
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
656
|
+
c16 = c16 & 65535;
|
|
657
|
+
c16 = c16 + imul(a00, b16) | 0;
|
|
658
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
659
|
+
c16 = c16 & 65535;
|
|
660
|
+
c32 = c32 + imul(a32, b00) | 0;
|
|
661
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
662
|
+
c32 = c32 & 65535;
|
|
663
|
+
c32 = c32 + imul(a16, b16) | 0;
|
|
664
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
665
|
+
c32 = c32 & 65535;
|
|
666
|
+
c32 = c32 + imul(a00, b32) | 0;
|
|
667
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
668
|
+
c32 = c32 & 65535;
|
|
669
|
+
c48 = c48 + (((imul(a48, b00) + imul(a32, b16) | 0) + imul(a16, b32) | 0) + imul(a00, b48) | 0) | 0;
|
|
670
|
+
c48 = c48 & 65535;
|
|
671
|
+
return new Long(c16 << 16 | c00, c48 << 16 | c32);
|
|
672
|
+
}
|
|
673
|
+
function negate(_this__u8e3s4) {
|
|
674
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
675
|
+
return add(invert(_this__u8e3s4), new Long(1, 0));
|
|
676
|
+
}
|
|
677
|
+
function fromNumber(value) {
|
|
678
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
679
|
+
if (isNaN_0(value)) {
|
|
680
|
+
return get_ZERO();
|
|
681
|
+
} else if (value <= -9.223372036854776E18) {
|
|
682
|
+
return get_MIN_VALUE();
|
|
683
|
+
} else if (value + 1 >= 9.223372036854776E18) {
|
|
684
|
+
return get_MAX_VALUE();
|
|
685
|
+
} else if (value < 0) {
|
|
686
|
+
return negate(fromNumber(-value));
|
|
687
|
+
} else {
|
|
688
|
+
var twoPwr32 = 4.294967296E9;
|
|
689
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
690
|
+
var tmp = value % twoPwr32 | 0;
|
|
691
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
692
|
+
var tmp$ret$1 = value / twoPwr32 | 0;
|
|
693
|
+
return new Long(tmp, tmp$ret$1);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
function add(_this__u8e3s4, other) {
|
|
697
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
698
|
+
var a48 = _this__u8e3s4.b1_1 >>> 16 | 0;
|
|
699
|
+
var a32 = _this__u8e3s4.b1_1 & 65535;
|
|
700
|
+
var a16 = _this__u8e3s4.a1_1 >>> 16 | 0;
|
|
701
|
+
var a00 = _this__u8e3s4.a1_1 & 65535;
|
|
702
|
+
var b48 = other.b1_1 >>> 16 | 0;
|
|
703
|
+
var b32 = other.b1_1 & 65535;
|
|
704
|
+
var b16 = other.a1_1 >>> 16 | 0;
|
|
705
|
+
var b00 = other.a1_1 & 65535;
|
|
706
|
+
var c48 = 0;
|
|
707
|
+
var c32 = 0;
|
|
708
|
+
var c16 = 0;
|
|
709
|
+
var c00 = 0;
|
|
710
|
+
c00 = c00 + (a00 + b00 | 0) | 0;
|
|
711
|
+
c16 = c16 + (c00 >>> 16 | 0) | 0;
|
|
712
|
+
c00 = c00 & 65535;
|
|
713
|
+
c16 = c16 + (a16 + b16 | 0) | 0;
|
|
714
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
715
|
+
c16 = c16 & 65535;
|
|
716
|
+
c32 = c32 + (a32 + b32 | 0) | 0;
|
|
717
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
718
|
+
c32 = c32 & 65535;
|
|
719
|
+
c48 = c48 + (a48 + b48 | 0) | 0;
|
|
720
|
+
c48 = c48 & 65535;
|
|
721
|
+
return new Long(c16 << 16 | c00, c48 << 16 | c32);
|
|
722
|
+
}
|
|
723
|
+
function isOdd(_this__u8e3s4) {
|
|
724
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
725
|
+
return (_this__u8e3s4.a1_1 & 1) === 1;
|
|
726
|
+
}
|
|
727
|
+
function lessThan(_this__u8e3s4, other) {
|
|
728
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
729
|
+
return compare(_this__u8e3s4, other) < 0;
|
|
730
|
+
}
|
|
731
|
+
function invert(_this__u8e3s4) {
|
|
732
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
733
|
+
return new Long(~_this__u8e3s4.a1_1, ~_this__u8e3s4.b1_1);
|
|
734
|
+
}
|
|
735
|
+
function divide(_this__u8e3s4, other) {
|
|
736
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
737
|
+
if (isZero(other)) {
|
|
738
|
+
throw Exception_init_$Create$_0('division by zero');
|
|
739
|
+
} else if (isZero(_this__u8e3s4)) {
|
|
740
|
+
return get_ZERO();
|
|
741
|
+
}
|
|
742
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
743
|
+
if (equalsLong(other, get_ONE()) || equalsLong(other, get_NEG_ONE())) {
|
|
744
|
+
return get_MIN_VALUE();
|
|
745
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
746
|
+
return get_ONE();
|
|
747
|
+
} else {
|
|
748
|
+
var halfThis = shiftRight(_this__u8e3s4, 1);
|
|
749
|
+
var approx = shiftLeft(divide(halfThis, other), 1);
|
|
750
|
+
if (equalsLong(approx, get_ZERO())) {
|
|
751
|
+
return isNegative(other) ? get_ONE() : get_NEG_ONE();
|
|
752
|
+
} else {
|
|
753
|
+
var rem = subtract(_this__u8e3s4, multiply(other, approx));
|
|
754
|
+
return add(approx, divide(rem, other));
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
758
|
+
return get_ZERO();
|
|
759
|
+
}
|
|
760
|
+
if (isNegative(_this__u8e3s4)) {
|
|
761
|
+
var tmp;
|
|
762
|
+
if (isNegative(other)) {
|
|
763
|
+
tmp = divide(negate(_this__u8e3s4), negate(other));
|
|
764
|
+
} else {
|
|
765
|
+
tmp = negate(divide(negate(_this__u8e3s4), other));
|
|
766
|
+
}
|
|
767
|
+
return tmp;
|
|
768
|
+
} else if (isNegative(other)) {
|
|
769
|
+
return negate(divide(_this__u8e3s4, negate(other)));
|
|
770
|
+
}
|
|
771
|
+
var res = get_ZERO();
|
|
772
|
+
var rem_0 = _this__u8e3s4;
|
|
773
|
+
while (greaterThanOrEqual(rem_0, other)) {
|
|
774
|
+
var approxDouble = toNumber(rem_0) / toNumber(other);
|
|
775
|
+
var approx2 = Math.max(1.0, Math.floor(approxDouble));
|
|
776
|
+
var log2 = Math.ceil(Math.log(approx2) / Math.LN2);
|
|
777
|
+
var delta = log2 <= 48 ? 1.0 : Math.pow(2.0, log2 - 48);
|
|
778
|
+
var approxRes = fromNumber(approx2);
|
|
779
|
+
var approxRem = multiply(approxRes, other);
|
|
780
|
+
while (isNegative(approxRem) || greaterThan(approxRem, rem_0)) {
|
|
781
|
+
approx2 = approx2 - delta;
|
|
782
|
+
approxRes = fromNumber(approx2);
|
|
783
|
+
approxRem = multiply(approxRes, other);
|
|
784
|
+
}
|
|
785
|
+
if (isZero(approxRes)) {
|
|
786
|
+
approxRes = get_ONE();
|
|
787
|
+
}
|
|
788
|
+
res = add(res, approxRes);
|
|
789
|
+
rem_0 = subtract(rem_0, approxRem);
|
|
790
|
+
}
|
|
791
|
+
return res;
|
|
792
|
+
}
|
|
793
|
+
function shiftRight(_this__u8e3s4, numBits) {
|
|
794
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
795
|
+
var numBits_0 = numBits & 63;
|
|
796
|
+
if (numBits_0 === 0) {
|
|
797
|
+
return _this__u8e3s4;
|
|
798
|
+
} else {
|
|
799
|
+
if (numBits_0 < 32) {
|
|
800
|
+
return new Long(_this__u8e3s4.a1_1 >>> numBits_0 | 0 | _this__u8e3s4.b1_1 << (32 - numBits_0 | 0), _this__u8e3s4.b1_1 >> numBits_0);
|
|
801
|
+
} else {
|
|
802
|
+
return new Long(_this__u8e3s4.b1_1 >> (numBits_0 - 32 | 0), _this__u8e3s4.b1_1 >= 0 ? 0 : -1);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function shiftLeft(_this__u8e3s4, numBits) {
|
|
807
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
808
|
+
var numBits_0 = numBits & 63;
|
|
809
|
+
if (numBits_0 === 0) {
|
|
810
|
+
return _this__u8e3s4;
|
|
811
|
+
} else {
|
|
812
|
+
if (numBits_0 < 32) {
|
|
813
|
+
return new Long(_this__u8e3s4.a1_1 << numBits_0, _this__u8e3s4.b1_1 << numBits_0 | (_this__u8e3s4.a1_1 >>> (32 - numBits_0 | 0) | 0));
|
|
814
|
+
} else {
|
|
815
|
+
return new Long(0, _this__u8e3s4.a1_1 << (numBits_0 - 32 | 0));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
function greaterThan(_this__u8e3s4, other) {
|
|
820
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
821
|
+
return compare(_this__u8e3s4, other) > 0;
|
|
822
|
+
}
|
|
823
|
+
function greaterThanOrEqual(_this__u8e3s4, other) {
|
|
824
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
825
|
+
return compare(_this__u8e3s4, other) >= 0;
|
|
826
|
+
}
|
|
827
|
+
function isLongArray(a) {
|
|
828
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
829
|
+
return isJsArray(a) && a.$type$ === 'LongArray';
|
|
830
|
+
}
|
|
831
|
+
function longArrayClass$lambda(it) {
|
|
832
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
833
|
+
return !(it == null) ? isLongArray(it) : false;
|
|
834
|
+
}
|
|
835
|
+
var properties_initialized_boxedLong_kt_lfwt2;
|
|
836
|
+
function _init_properties_boxedLong_kt__v24qrw() {
|
|
837
|
+
if (!properties_initialized_boxedLong_kt_lfwt2) {
|
|
838
|
+
properties_initialized_boxedLong_kt_lfwt2 = true;
|
|
839
|
+
ZERO = fromInt(0);
|
|
840
|
+
ONE = fromInt(1);
|
|
841
|
+
NEG_ONE = fromInt(-1);
|
|
842
|
+
MAX_VALUE = new Long(-1, 2147483647);
|
|
843
|
+
MIN_VALUE = new Long(0, -2147483648);
|
|
844
|
+
TWO_PWR_24_ = fromInt(16777216);
|
|
845
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
846
|
+
var tmp = Array;
|
|
847
|
+
longArrayClass = new PrimitiveKClassImpl(tmp, 'LongArray', longArrayClass$lambda);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
function charSequenceGet(a, index) {
|
|
851
|
+
var tmp;
|
|
852
|
+
if (isString(a)) {
|
|
853
|
+
tmp = charCodeAt(a, index);
|
|
854
|
+
} else {
|
|
855
|
+
tmp = a.b(index);
|
|
856
|
+
}
|
|
857
|
+
return tmp;
|
|
858
|
+
}
|
|
859
|
+
function isString(a) {
|
|
860
|
+
return typeof a === 'string';
|
|
861
|
+
}
|
|
862
|
+
function charCodeAt(_this__u8e3s4, index) {
|
|
863
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
864
|
+
return _this__u8e3s4.charCodeAt(index);
|
|
865
|
+
}
|
|
866
|
+
function charSequenceLength(a) {
|
|
867
|
+
var tmp;
|
|
868
|
+
if (isString(a)) {
|
|
869
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
870
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
871
|
+
tmp = a.length;
|
|
872
|
+
} else {
|
|
873
|
+
tmp = a.a();
|
|
874
|
+
}
|
|
875
|
+
return tmp;
|
|
876
|
+
}
|
|
877
|
+
function charSequenceSubSequence(a, startIndex, endIndex) {
|
|
878
|
+
var tmp;
|
|
879
|
+
if (isString(a)) {
|
|
880
|
+
tmp = substring(a, startIndex, endIndex);
|
|
881
|
+
} else {
|
|
882
|
+
tmp = a.c(startIndex, endIndex);
|
|
883
|
+
}
|
|
884
|
+
return tmp;
|
|
885
|
+
}
|
|
886
|
+
function compareTo(a, b) {
|
|
887
|
+
var tmp;
|
|
888
|
+
switch (typeof a) {
|
|
889
|
+
case 'number':
|
|
890
|
+
var tmp_0;
|
|
891
|
+
if (typeof b === 'number') {
|
|
892
|
+
tmp_0 = doubleCompareTo(a, b);
|
|
893
|
+
} else {
|
|
894
|
+
if (b instanceof Long) {
|
|
895
|
+
tmp_0 = doubleCompareTo(a, toNumber(b));
|
|
896
|
+
} else {
|
|
897
|
+
tmp_0 = primitiveCompareTo(a, b);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
tmp = tmp_0;
|
|
902
|
+
break;
|
|
903
|
+
case 'string':
|
|
904
|
+
case 'boolean':
|
|
905
|
+
case 'bigint':
|
|
906
|
+
tmp = primitiveCompareTo(a, b);
|
|
907
|
+
break;
|
|
908
|
+
default:
|
|
909
|
+
tmp = compareToDoNotIntrinsicify(a, b);
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
912
|
+
return tmp;
|
|
913
|
+
}
|
|
914
|
+
function doubleCompareTo(a, b) {
|
|
915
|
+
var tmp;
|
|
916
|
+
if (a < b) {
|
|
917
|
+
tmp = -1;
|
|
918
|
+
} else if (a > b) {
|
|
919
|
+
tmp = 1;
|
|
920
|
+
} else if (a === b) {
|
|
921
|
+
var tmp_0;
|
|
922
|
+
if (a !== 0) {
|
|
923
|
+
tmp_0 = 0;
|
|
924
|
+
} else {
|
|
925
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
926
|
+
var ia = 1 / a;
|
|
927
|
+
var tmp_1;
|
|
928
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
929
|
+
if (ia === 1 / b) {
|
|
930
|
+
tmp_1 = 0;
|
|
931
|
+
} else {
|
|
932
|
+
if (ia < 0) {
|
|
933
|
+
tmp_1 = -1;
|
|
934
|
+
} else {
|
|
935
|
+
tmp_1 = 1;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
tmp_0 = tmp_1;
|
|
939
|
+
}
|
|
940
|
+
tmp = tmp_0;
|
|
941
|
+
} else if (a !== a) {
|
|
942
|
+
tmp = b !== b ? 0 : 1;
|
|
943
|
+
} else {
|
|
944
|
+
tmp = -1;
|
|
945
|
+
}
|
|
946
|
+
return tmp;
|
|
947
|
+
}
|
|
948
|
+
function primitiveCompareTo(a, b) {
|
|
949
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
950
|
+
}
|
|
951
|
+
function compareToDoNotIntrinsicify(a, b) {
|
|
952
|
+
return a.v(b);
|
|
953
|
+
}
|
|
954
|
+
function identityHashCode(obj) {
|
|
955
|
+
return getObjectHashCode(obj);
|
|
956
|
+
}
|
|
957
|
+
function getObjectHashCode(obj) {
|
|
958
|
+
// Inline function 'kotlin.js.jsIn' call
|
|
959
|
+
if (!('kotlinHashCodeValue$' in obj)) {
|
|
960
|
+
var hash = calculateRandomHash();
|
|
961
|
+
var descriptor = new Object();
|
|
962
|
+
descriptor.value = hash;
|
|
963
|
+
descriptor.enumerable = false;
|
|
964
|
+
Object.defineProperty(obj, 'kotlinHashCodeValue$', descriptor);
|
|
965
|
+
}
|
|
966
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
967
|
+
return obj['kotlinHashCodeValue$'];
|
|
968
|
+
}
|
|
969
|
+
function calculateRandomHash() {
|
|
970
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
971
|
+
return Math.random() * 4.294967296E9 | 0;
|
|
972
|
+
}
|
|
973
|
+
function objectCreate(proto) {
|
|
974
|
+
proto = proto === VOID ? null : proto;
|
|
975
|
+
return Object.create(proto);
|
|
976
|
+
}
|
|
977
|
+
function defineProp(obj, name, getter, setter, enumerable) {
|
|
978
|
+
return Object.defineProperty(obj, name, {configurable: true, get: getter, set: setter, enumerable: enumerable});
|
|
979
|
+
}
|
|
980
|
+
function toString_1(o) {
|
|
981
|
+
var tmp;
|
|
982
|
+
if (o == null) {
|
|
983
|
+
tmp = 'null';
|
|
984
|
+
} else if (isArrayish(o)) {
|
|
985
|
+
tmp = '[...]';
|
|
986
|
+
} else if (!(typeof o.toString === 'function')) {
|
|
987
|
+
tmp = anyToString(o);
|
|
988
|
+
} else {
|
|
989
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
990
|
+
tmp = o.toString();
|
|
991
|
+
}
|
|
992
|
+
return tmp;
|
|
993
|
+
}
|
|
994
|
+
function anyToString(o) {
|
|
995
|
+
return Object.prototype.toString.call(o);
|
|
996
|
+
}
|
|
997
|
+
function hashCode_0(obj) {
|
|
998
|
+
if (obj == null)
|
|
999
|
+
return 0;
|
|
1000
|
+
var typeOf = typeof obj;
|
|
1001
|
+
var tmp;
|
|
1002
|
+
switch (typeOf) {
|
|
1003
|
+
case 'object':
|
|
1004
|
+
tmp = 'function' === typeof obj.hashCode ? obj.hashCode() : getObjectHashCode(obj);
|
|
1005
|
+
break;
|
|
1006
|
+
case 'function':
|
|
1007
|
+
tmp = getObjectHashCode(obj);
|
|
1008
|
+
break;
|
|
1009
|
+
case 'number':
|
|
1010
|
+
tmp = getNumberHashCode(obj);
|
|
1011
|
+
break;
|
|
1012
|
+
case 'boolean':
|
|
1013
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1014
|
+
|
|
1015
|
+
tmp = getBooleanHashCode(obj);
|
|
1016
|
+
break;
|
|
1017
|
+
case 'string':
|
|
1018
|
+
tmp = getStringHashCode(String(obj));
|
|
1019
|
+
break;
|
|
1020
|
+
case 'bigint':
|
|
1021
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1022
|
+
|
|
1023
|
+
tmp = getBigIntHashCode(obj);
|
|
1024
|
+
break;
|
|
1025
|
+
case 'symbol':
|
|
1026
|
+
tmp = getSymbolHashCode(obj);
|
|
1027
|
+
break;
|
|
1028
|
+
default:
|
|
1029
|
+
tmp = function () {
|
|
1030
|
+
throw new Error('Unexpected typeof `' + typeOf + '`');
|
|
1031
|
+
}();
|
|
1032
|
+
break;
|
|
1033
|
+
}
|
|
1034
|
+
return tmp;
|
|
1035
|
+
}
|
|
1036
|
+
function getBooleanHashCode(value) {
|
|
1037
|
+
return value ? 1231 : 1237;
|
|
1038
|
+
}
|
|
1039
|
+
function getStringHashCode(str) {
|
|
1040
|
+
var hash = 0;
|
|
1041
|
+
var length = str.length;
|
|
1042
|
+
var inductionVariable = 0;
|
|
1043
|
+
var last = length - 1 | 0;
|
|
1044
|
+
if (inductionVariable <= last)
|
|
1045
|
+
do {
|
|
1046
|
+
var i = inductionVariable;
|
|
1047
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1048
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1049
|
+
var code = str.charCodeAt(i);
|
|
1050
|
+
hash = imul(hash, 31) + code | 0;
|
|
1051
|
+
}
|
|
1052
|
+
while (!(i === last));
|
|
1053
|
+
return hash;
|
|
1054
|
+
}
|
|
1055
|
+
function getBigIntHashCode(value) {
|
|
1056
|
+
var shiftNumber = BigInt(32);
|
|
1057
|
+
var mask = BigInt(4.294967295E9);
|
|
1058
|
+
var bigNumber = abs(value);
|
|
1059
|
+
var hashCode = 0;
|
|
1060
|
+
var tmp;
|
|
1061
|
+
// Inline function 'kotlin.js.internal.isNegative' call
|
|
1062
|
+
if (value < 0) {
|
|
1063
|
+
tmp = -1;
|
|
1064
|
+
} else {
|
|
1065
|
+
tmp = 1;
|
|
1066
|
+
}
|
|
1067
|
+
var signum = tmp;
|
|
1068
|
+
$l$loop: while (true) {
|
|
1069
|
+
// Inline function 'kotlin.js.internal.isZero' call
|
|
1070
|
+
if (!!(bigNumber == 0)) {
|
|
1071
|
+
break $l$loop;
|
|
1072
|
+
}
|
|
1073
|
+
// Inline function 'kotlin.js.internal.and' call
|
|
1074
|
+
// Inline function 'kotlin.js.jsBitwiseAnd' call
|
|
1075
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1076
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1077
|
+
// Inline function 'kotlin.js.internal.toNumber' call
|
|
1078
|
+
var self_0 = bigNumber & mask;
|
|
1079
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1080
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1081
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1082
|
+
var chunk = Number(self_0);
|
|
1083
|
+
hashCode = imul(31, hashCode) + chunk | 0;
|
|
1084
|
+
// Inline function 'kotlin.js.internal.shr' call
|
|
1085
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1086
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1087
|
+
bigNumber = bigNumber >> shiftNumber;
|
|
1088
|
+
}
|
|
1089
|
+
return imul(hashCode, signum);
|
|
1090
|
+
}
|
|
1091
|
+
function getSymbolHashCode(value) {
|
|
1092
|
+
var hashCodeMap = symbolIsSharable(value) ? getSymbolMap() : getSymbolWeakMap();
|
|
1093
|
+
var cachedHashCode = hashCodeMap.get(value);
|
|
1094
|
+
if (cachedHashCode !== VOID)
|
|
1095
|
+
return cachedHashCode;
|
|
1096
|
+
var hash = calculateRandomHash();
|
|
1097
|
+
hashCodeMap.set(value, hash);
|
|
1098
|
+
return hash;
|
|
1099
|
+
}
|
|
1100
|
+
function symbolIsSharable(symbol) {
|
|
1101
|
+
return Symbol.keyFor(symbol) != VOID;
|
|
1102
|
+
}
|
|
1103
|
+
function getSymbolMap() {
|
|
1104
|
+
if (symbolMap === VOID) {
|
|
1105
|
+
symbolMap = new Map();
|
|
1106
|
+
}
|
|
1107
|
+
return symbolMap;
|
|
1108
|
+
}
|
|
1109
|
+
function getSymbolWeakMap() {
|
|
1110
|
+
if (symbolWeakMap === VOID) {
|
|
1111
|
+
symbolWeakMap = new WeakMap();
|
|
1112
|
+
}
|
|
1113
|
+
return symbolWeakMap;
|
|
1114
|
+
}
|
|
1115
|
+
var symbolMap;
|
|
1116
|
+
var symbolWeakMap;
|
|
1117
|
+
function equals(obj1, obj2) {
|
|
1118
|
+
if (obj1 == null) {
|
|
1119
|
+
return obj2 == null;
|
|
1120
|
+
}
|
|
1121
|
+
if (obj2 == null) {
|
|
1122
|
+
return false;
|
|
1123
|
+
}
|
|
1124
|
+
if (typeof obj1 === 'object' && typeof obj1.equals === 'function') {
|
|
1125
|
+
return obj1.equals(obj2);
|
|
1126
|
+
}
|
|
1127
|
+
if (obj1 !== obj1) {
|
|
1128
|
+
return obj2 !== obj2;
|
|
1129
|
+
}
|
|
1130
|
+
if (typeof obj1 === 'number' && typeof obj2 === 'number') {
|
|
1131
|
+
var tmp;
|
|
1132
|
+
if (obj1 === obj2) {
|
|
1133
|
+
var tmp_0;
|
|
1134
|
+
if (obj1 !== 0) {
|
|
1135
|
+
tmp_0 = true;
|
|
1136
|
+
} else {
|
|
1137
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1138
|
+
var tmp_1 = 1 / obj1;
|
|
1139
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1140
|
+
tmp_0 = tmp_1 === 1 / obj2;
|
|
1141
|
+
}
|
|
1142
|
+
tmp = tmp_0;
|
|
1143
|
+
} else {
|
|
1144
|
+
tmp = false;
|
|
1145
|
+
}
|
|
1146
|
+
return tmp;
|
|
1147
|
+
}
|
|
1148
|
+
return obj1 === obj2;
|
|
1149
|
+
}
|
|
1150
|
+
function unboxIntrinsic(x) {
|
|
1151
|
+
var message = 'Should be lowered';
|
|
1152
|
+
throw IllegalStateException_init_$Create$_0(toString_1(message));
|
|
1153
|
+
}
|
|
1154
|
+
function captureStack(instance, constructorFunction) {
|
|
1155
|
+
if (Error.captureStackTrace != null) {
|
|
1156
|
+
Error.captureStackTrace(instance, constructorFunction);
|
|
1157
|
+
} else {
|
|
1158
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1159
|
+
instance.stack = (new Error()).stack;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
function protoOf(constructor) {
|
|
1163
|
+
return constructor.prototype;
|
|
1164
|
+
}
|
|
1165
|
+
function defineMessage(message, cause) {
|
|
1166
|
+
var tmp;
|
|
1167
|
+
if (isUndefined(message)) {
|
|
1168
|
+
var tmp_0;
|
|
1169
|
+
if (isUndefined(cause)) {
|
|
1170
|
+
tmp_0 = message;
|
|
1171
|
+
} else {
|
|
1172
|
+
var tmp1_elvis_lhs = cause == null ? null : cause.toString();
|
|
1173
|
+
tmp_0 = tmp1_elvis_lhs == null ? VOID : tmp1_elvis_lhs;
|
|
1174
|
+
}
|
|
1175
|
+
tmp = tmp_0;
|
|
1176
|
+
} else {
|
|
1177
|
+
tmp = message == null ? VOID : message;
|
|
1178
|
+
}
|
|
1179
|
+
return tmp;
|
|
1180
|
+
}
|
|
1181
|
+
function isUndefined(value) {
|
|
1182
|
+
return value === VOID;
|
|
1183
|
+
}
|
|
1184
|
+
function extendThrowable(this_, message, cause) {
|
|
1185
|
+
defineFieldOnInstance(this_, 'message', defineMessage(message, cause));
|
|
1186
|
+
defineFieldOnInstance(this_, 'cause', cause);
|
|
1187
|
+
defineFieldOnInstance(this_, 'name', Object.getPrototypeOf(this_).constructor.name);
|
|
1188
|
+
}
|
|
1189
|
+
function defineFieldOnInstance(this_, name, value) {
|
|
1190
|
+
Object.defineProperty(this_, name, {configurable: true, writable: true, value: value});
|
|
1191
|
+
}
|
|
1192
|
+
function ensureNotNull(v) {
|
|
1193
|
+
var tmp;
|
|
1194
|
+
if (v == null) {
|
|
1195
|
+
THROW_NPE();
|
|
1196
|
+
} else {
|
|
1197
|
+
tmp = v;
|
|
1198
|
+
}
|
|
1199
|
+
return tmp;
|
|
1200
|
+
}
|
|
1201
|
+
function THROW_NPE() {
|
|
1202
|
+
throw NullPointerException_init_$Create$();
|
|
1203
|
+
}
|
|
1204
|
+
function noWhenBranchMatchedException() {
|
|
1205
|
+
throw NoWhenBranchMatchedException_init_$Create$();
|
|
1206
|
+
}
|
|
1207
|
+
function THROW_CCE() {
|
|
1208
|
+
throw ClassCastException_init_$Create$();
|
|
1209
|
+
}
|
|
1210
|
+
function THROW_IAE(msg) {
|
|
1211
|
+
throw IllegalArgumentException_init_$Create$_0(msg);
|
|
1212
|
+
}
|
|
1213
|
+
function createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
|
|
1214
|
+
var undef = VOID;
|
|
1215
|
+
var iid = kind === 'interface' ? generateInterfaceId() : VOID;
|
|
1216
|
+
return {kind: kind, simpleName: name, associatedObjectKey: associatedObjectKey, associatedObjects: associatedObjects, suspendArity: suspendArity, $kClass$: undef, defaultConstructor: defaultConstructor, iid: iid};
|
|
1217
|
+
}
|
|
1218
|
+
function generateInterfaceId() {
|
|
1219
|
+
if (globalInterfaceId === VOID) {
|
|
1220
|
+
globalInterfaceId = 0;
|
|
1221
|
+
}
|
|
1222
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1223
|
+
globalInterfaceId = globalInterfaceId + 1 | 0;
|
|
1224
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1225
|
+
return globalInterfaceId;
|
|
1226
|
+
}
|
|
1227
|
+
var globalInterfaceId;
|
|
1228
|
+
function initMetadataForClass(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1229
|
+
var kind = 'class';
|
|
1230
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
1231
|
+
}
|
|
1232
|
+
function initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1233
|
+
if (!(parent == null)) {
|
|
1234
|
+
ctor.prototype = Object.create(parent.prototype);
|
|
1235
|
+
ctor.prototype.constructor = ctor;
|
|
1236
|
+
}
|
|
1237
|
+
var metadata = createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity);
|
|
1238
|
+
ctor.$metadata$ = metadata;
|
|
1239
|
+
if (!(interfaces == null)) {
|
|
1240
|
+
var receiver = !equals(metadata.iid, VOID) ? ctor : ctor.prototype;
|
|
1241
|
+
receiver.$imask$ = implement(interfaces);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
function initMetadataForObject(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1245
|
+
var kind = 'object';
|
|
1246
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
1247
|
+
}
|
|
1248
|
+
function initMetadataForInterface(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
1249
|
+
var kind = 'interface';
|
|
1250
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
1251
|
+
}
|
|
1252
|
+
function initMetadataForLambda(ctor, parent, interfaces, suspendArity) {
|
|
1253
|
+
initMetadataForClass(ctor, 'Lambda', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1254
|
+
}
|
|
1255
|
+
function initMetadataForCoroutine(ctor, parent, interfaces, suspendArity) {
|
|
1256
|
+
initMetadataForClass(ctor, 'Coroutine', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1257
|
+
}
|
|
1258
|
+
function initMetadataForFunctionReference(ctor, parent, interfaces, suspendArity) {
|
|
1259
|
+
initMetadataForClass(ctor, 'FunctionReference', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1260
|
+
}
|
|
1261
|
+
function initMetadataForCompanion(ctor, parent, interfaces, suspendArity) {
|
|
1262
|
+
initMetadataForObject(ctor, 'Companion', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
1263
|
+
}
|
|
1264
|
+
function numberToInt(a) {
|
|
1265
|
+
var tmp;
|
|
1266
|
+
if (a instanceof Long) {
|
|
1267
|
+
tmp = convertToInt(a);
|
|
1268
|
+
} else {
|
|
1269
|
+
tmp = doubleToInt(a);
|
|
1270
|
+
}
|
|
1271
|
+
return tmp;
|
|
1272
|
+
}
|
|
1273
|
+
function doubleToInt(a) {
|
|
1274
|
+
var tmp;
|
|
1275
|
+
if (a > 2147483647) {
|
|
1276
|
+
tmp = 2147483647;
|
|
1277
|
+
} else if (a < -2147483648) {
|
|
1278
|
+
tmp = -2147483648;
|
|
1279
|
+
} else {
|
|
1280
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
1281
|
+
tmp = a | 0;
|
|
1282
|
+
}
|
|
1283
|
+
return tmp;
|
|
1284
|
+
}
|
|
1285
|
+
function isArrayish(o) {
|
|
1286
|
+
return isJsArray(o) || isView(o);
|
|
1287
|
+
}
|
|
1288
|
+
function isJsArray(obj) {
|
|
1289
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1290
|
+
return Array.isArray(obj);
|
|
1291
|
+
}
|
|
1292
|
+
function isInterface(obj, iface) {
|
|
1293
|
+
return isInterfaceImpl(obj, iface.$metadata$.iid);
|
|
1294
|
+
}
|
|
1295
|
+
function isInterfaceImpl(obj, iface) {
|
|
1296
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1297
|
+
var tmp0_elvis_lhs = obj.$imask$;
|
|
1298
|
+
var tmp;
|
|
1299
|
+
if (tmp0_elvis_lhs == null) {
|
|
1300
|
+
return false;
|
|
1301
|
+
} else {
|
|
1302
|
+
tmp = tmp0_elvis_lhs;
|
|
1303
|
+
}
|
|
1304
|
+
var mask = tmp;
|
|
1305
|
+
return isBitSet(mask, iface);
|
|
1306
|
+
}
|
|
1307
|
+
function isCharSequence(value) {
|
|
1308
|
+
return typeof value === 'string' || isInterface(value, CharSequence);
|
|
1309
|
+
}
|
|
1310
|
+
function get_VOID() {
|
|
1311
|
+
_init_properties_void_kt__3zg9as();
|
|
1312
|
+
return VOID;
|
|
1313
|
+
}
|
|
1314
|
+
var VOID;
|
|
1315
|
+
var properties_initialized_void_kt_e4ret2;
|
|
1316
|
+
function _init_properties_void_kt__3zg9as() {
|
|
1317
|
+
if (!properties_initialized_void_kt_e4ret2) {
|
|
1318
|
+
properties_initialized_void_kt_e4ret2 = true;
|
|
1319
|
+
VOID = void 0;
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
function copyOf(_this__u8e3s4, newSize) {
|
|
1323
|
+
// Inline function 'kotlin.require' call
|
|
1324
|
+
if (!(newSize >= 0)) {
|
|
1325
|
+
var message = 'Invalid new array size: ' + newSize + '.';
|
|
1326
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1327
|
+
}
|
|
1328
|
+
return fillFrom(_this__u8e3s4, new Int32Array(newSize));
|
|
1329
|
+
}
|
|
1330
|
+
function copyOf_0(_this__u8e3s4, newSize) {
|
|
1331
|
+
// Inline function 'kotlin.require' call
|
|
1332
|
+
if (!(newSize >= 0)) {
|
|
1333
|
+
var message = 'Invalid new array size: ' + newSize + '.';
|
|
1334
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1335
|
+
}
|
|
1336
|
+
return arrayCopyResize(_this__u8e3s4, newSize, null);
|
|
1337
|
+
}
|
|
1338
|
+
function isWhitespaceImpl(_this__u8e3s4) {
|
|
1339
|
+
// Inline function 'kotlin.code' call
|
|
1340
|
+
var ch = Char__toInt_impl_vasixd(_this__u8e3s4);
|
|
1341
|
+
return (9 <= ch ? ch <= 13 : false) || (28 <= ch ? ch <= 32 : false) || ch === 160 || (ch > 4096 && (ch === 5760 || (8192 <= ch ? ch <= 8202 : false) || ch === 8232 || ch === 8233 || ch === 8239 || ch === 8287 || ch === 12288));
|
|
1342
|
+
}
|
|
1343
|
+
function Comparator() {
|
|
1344
|
+
}
|
|
1345
|
+
function isNaN_0(_this__u8e3s4) {
|
|
1346
|
+
return !(_this__u8e3s4 === _this__u8e3s4);
|
|
1347
|
+
}
|
|
1348
|
+
function takeHighestOneBit(_this__u8e3s4) {
|
|
1349
|
+
var tmp;
|
|
1350
|
+
if (_this__u8e3s4 === 0) {
|
|
1351
|
+
tmp = 0;
|
|
1352
|
+
} else {
|
|
1353
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1354
|
+
tmp = 1 << (31 - clz32(_this__u8e3s4) | 0);
|
|
1355
|
+
}
|
|
1356
|
+
return tmp;
|
|
1357
|
+
}
|
|
1358
|
+
function Unit() {
|
|
1359
|
+
}
|
|
1360
|
+
protoOf(Unit).toString = function () {
|
|
1361
|
+
return 'kotlin.Unit';
|
|
1362
|
+
};
|
|
1363
|
+
var Unit_instance;
|
|
1364
|
+
function Unit_getInstance() {
|
|
1365
|
+
return Unit_instance;
|
|
1366
|
+
}
|
|
1367
|
+
function collectionToArray(collection) {
|
|
1368
|
+
return collectionToArrayCommonImpl(collection);
|
|
1369
|
+
}
|
|
1370
|
+
function setOf(element) {
|
|
1371
|
+
return hashSetOf([element]);
|
|
1372
|
+
}
|
|
1373
|
+
function mapCapacity(expectedSize) {
|
|
1374
|
+
return expectedSize;
|
|
1375
|
+
}
|
|
1376
|
+
function AbstractMutableCollection() {
|
|
1377
|
+
AbstractCollection.call(this);
|
|
1378
|
+
}
|
|
1379
|
+
protoOf(AbstractMutableCollection).toJSON = function () {
|
|
1380
|
+
return this.toArray();
|
|
1381
|
+
};
|
|
1382
|
+
function AbstractMutableSet() {
|
|
1383
|
+
AbstractMutableCollection.call(this);
|
|
1384
|
+
}
|
|
1385
|
+
protoOf(AbstractMutableSet).equals = function (other) {
|
|
1386
|
+
if (other === this)
|
|
1387
|
+
return true;
|
|
1388
|
+
if (!(!(other == null) ? isInterface(other, KtSet) : false))
|
|
1389
|
+
return false;
|
|
1390
|
+
return Companion_instance_4.e1(this, other);
|
|
1391
|
+
};
|
|
1392
|
+
protoOf(AbstractMutableSet).hashCode = function () {
|
|
1393
|
+
return Companion_instance_4.f1(this);
|
|
1394
|
+
};
|
|
1395
|
+
function arrayOfUninitializedElements(capacity) {
|
|
1396
|
+
// Inline function 'kotlin.require' call
|
|
1397
|
+
if (!(capacity >= 0)) {
|
|
1398
|
+
var message = 'capacity must be non-negative.';
|
|
1399
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1400
|
+
}
|
|
1401
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1402
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1403
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1404
|
+
return Array(capacity);
|
|
1405
|
+
}
|
|
1406
|
+
function resetRange(_this__u8e3s4, fromIndex, toIndex) {
|
|
1407
|
+
// Inline function 'kotlin.js.nativeFill' call
|
|
1408
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1409
|
+
_this__u8e3s4.fill(null, fromIndex, toIndex);
|
|
1410
|
+
}
|
|
1411
|
+
function copyOfUninitializedElements(_this__u8e3s4, newSize) {
|
|
1412
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1413
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1414
|
+
return copyOf_0(_this__u8e3s4, newSize);
|
|
1415
|
+
}
|
|
1416
|
+
function HashSet_init_$Init$(map, $this) {
|
|
1417
|
+
AbstractMutableSet.call($this);
|
|
1418
|
+
HashSet.call($this);
|
|
1419
|
+
$this.g1_1 = map;
|
|
1420
|
+
return $this;
|
|
1421
|
+
}
|
|
1422
|
+
function HashSet_init_$Init$_0($this) {
|
|
1423
|
+
HashSet_init_$Init$(InternalHashMap_init_$Create$(), $this);
|
|
1424
|
+
return $this;
|
|
1425
|
+
}
|
|
1426
|
+
function HashSet_init_$Create$() {
|
|
1427
|
+
return HashSet_init_$Init$_0(objectCreate(protoOf(HashSet)));
|
|
1428
|
+
}
|
|
1429
|
+
function HashSet_init_$Init$_1(initialCapacity, loadFactor, $this) {
|
|
1430
|
+
HashSet_init_$Init$(InternalHashMap_init_$Create$_0(initialCapacity, loadFactor), $this);
|
|
1431
|
+
return $this;
|
|
1432
|
+
}
|
|
1433
|
+
function HashSet_init_$Init$_2(initialCapacity, $this) {
|
|
1434
|
+
HashSet_init_$Init$_1(initialCapacity, 1.0, $this);
|
|
1435
|
+
return $this;
|
|
1436
|
+
}
|
|
1437
|
+
function HashSet_init_$Create$_0(initialCapacity) {
|
|
1438
|
+
return HashSet_init_$Init$_2(initialCapacity, objectCreate(protoOf(HashSet)));
|
|
1439
|
+
}
|
|
1440
|
+
protoOf(HashSet).d = function (element) {
|
|
1441
|
+
return this.g1_1.h1(element, true) == null;
|
|
1442
|
+
};
|
|
1443
|
+
protoOf(HashSet).l = function (element) {
|
|
1444
|
+
return this.g1_1.i1(element);
|
|
1445
|
+
};
|
|
1446
|
+
protoOf(HashSet).k = function () {
|
|
1447
|
+
return this.g1_1.i() === 0;
|
|
1448
|
+
};
|
|
1449
|
+
protoOf(HashSet).f = function () {
|
|
1450
|
+
return this.g1_1.j1();
|
|
1451
|
+
};
|
|
1452
|
+
protoOf(HashSet).i = function () {
|
|
1453
|
+
return this.g1_1.i();
|
|
1454
|
+
};
|
|
1455
|
+
function HashSet() {
|
|
1456
|
+
}
|
|
1457
|
+
function computeHashSize($this, capacity) {
|
|
1458
|
+
return takeHighestOneBit(imul(coerceAtLeast(capacity, 1), 3));
|
|
1459
|
+
}
|
|
1460
|
+
function computeShift($this, hashSize) {
|
|
1461
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
1462
|
+
return clz32(hashSize) + 1 | 0;
|
|
1463
|
+
}
|
|
1464
|
+
function checkForComodification($this) {
|
|
1465
|
+
if (!($this.u1_1.r1_1 === $this.w1_1))
|
|
1466
|
+
throw ConcurrentModificationException_init_$Create$_0('The backing map has been modified after this entry was obtained.');
|
|
1467
|
+
}
|
|
1468
|
+
function InternalHashMap_init_$Init$($this) {
|
|
1469
|
+
InternalHashMap_init_$Init$_0(8, $this);
|
|
1470
|
+
return $this;
|
|
1471
|
+
}
|
|
1472
|
+
function InternalHashMap_init_$Create$() {
|
|
1473
|
+
return InternalHashMap_init_$Init$(objectCreate(protoOf(InternalHashMap)));
|
|
1474
|
+
}
|
|
1475
|
+
function InternalHashMap_init_$Init$_0(initialCapacity, $this) {
|
|
1476
|
+
InternalHashMap.call($this, arrayOfUninitializedElements(initialCapacity), null, new Int32Array(initialCapacity), new Int32Array(computeHashSize(Companion_instance_1, initialCapacity)), 2, 0);
|
|
1477
|
+
return $this;
|
|
1478
|
+
}
|
|
1479
|
+
function InternalHashMap_init_$Init$_1(initialCapacity, loadFactor, $this) {
|
|
1480
|
+
InternalHashMap_init_$Init$_0(initialCapacity, $this);
|
|
1481
|
+
// Inline function 'kotlin.require' call
|
|
1482
|
+
if (!(loadFactor > 0)) {
|
|
1483
|
+
var message = 'Non-positive load factor: ' + loadFactor;
|
|
1484
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1485
|
+
}
|
|
1486
|
+
return $this;
|
|
1487
|
+
}
|
|
1488
|
+
function InternalHashMap_init_$Create$_0(initialCapacity, loadFactor) {
|
|
1489
|
+
return InternalHashMap_init_$Init$_1(initialCapacity, loadFactor, objectCreate(protoOf(InternalHashMap)));
|
|
1490
|
+
}
|
|
1491
|
+
function _get_capacity__a9k9f3($this) {
|
|
1492
|
+
return $this.k1_1.length;
|
|
1493
|
+
}
|
|
1494
|
+
function _get_hashSize__tftcho($this) {
|
|
1495
|
+
return $this.n1_1.length;
|
|
1496
|
+
}
|
|
1497
|
+
function registerModification($this) {
|
|
1498
|
+
$this.r1_1 = $this.r1_1 + 1 | 0;
|
|
1499
|
+
}
|
|
1500
|
+
function ensureExtraCapacity($this, n) {
|
|
1501
|
+
if (shouldCompact($this, n)) {
|
|
1502
|
+
compact($this, true);
|
|
1503
|
+
} else {
|
|
1504
|
+
ensureCapacity($this, $this.p1_1 + n | 0);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
function shouldCompact($this, extraCapacity) {
|
|
1508
|
+
var spareCapacity = _get_capacity__a9k9f3($this) - $this.p1_1 | 0;
|
|
1509
|
+
var gaps = $this.p1_1 - $this.i() | 0;
|
|
1510
|
+
return spareCapacity < extraCapacity && (gaps + spareCapacity | 0) >= extraCapacity && gaps >= (_get_capacity__a9k9f3($this) / 4 | 0);
|
|
1511
|
+
}
|
|
1512
|
+
function ensureCapacity($this, minCapacity) {
|
|
1513
|
+
if (minCapacity < 0)
|
|
1514
|
+
throw RuntimeException_init_$Create$_0('too many elements');
|
|
1515
|
+
if (minCapacity > _get_capacity__a9k9f3($this)) {
|
|
1516
|
+
var newSize = Companion_instance_3.y1(_get_capacity__a9k9f3($this), minCapacity);
|
|
1517
|
+
$this.k1_1 = copyOfUninitializedElements($this.k1_1, newSize);
|
|
1518
|
+
var tmp = $this;
|
|
1519
|
+
var tmp0_safe_receiver = $this.l1_1;
|
|
1520
|
+
tmp.l1_1 = tmp0_safe_receiver == null ? null : copyOfUninitializedElements(tmp0_safe_receiver, newSize);
|
|
1521
|
+
$this.m1_1 = copyOf($this.m1_1, newSize);
|
|
1522
|
+
var newHashSize = computeHashSize(Companion_instance_1, newSize);
|
|
1523
|
+
if (newHashSize > _get_hashSize__tftcho($this)) {
|
|
1524
|
+
rehash($this, newHashSize);
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
function allocateValuesArray($this) {
|
|
1529
|
+
var curValuesArray = $this.l1_1;
|
|
1530
|
+
if (!(curValuesArray == null))
|
|
1531
|
+
return curValuesArray;
|
|
1532
|
+
var newValuesArray = arrayOfUninitializedElements(_get_capacity__a9k9f3($this));
|
|
1533
|
+
$this.l1_1 = newValuesArray;
|
|
1534
|
+
return newValuesArray;
|
|
1535
|
+
}
|
|
1536
|
+
function hash($this, key) {
|
|
1537
|
+
return key == null ? 0 : imul(hashCode_0(key), -1640531527) >>> $this.q1_1 | 0;
|
|
1538
|
+
}
|
|
1539
|
+
function compact($this, updateHashArray) {
|
|
1540
|
+
var i = 0;
|
|
1541
|
+
var j = 0;
|
|
1542
|
+
var valuesArray = $this.l1_1;
|
|
1543
|
+
while (i < $this.p1_1) {
|
|
1544
|
+
var hash = $this.m1_1[i];
|
|
1545
|
+
if (hash >= 0) {
|
|
1546
|
+
$this.k1_1[j] = $this.k1_1[i];
|
|
1547
|
+
if (!(valuesArray == null)) {
|
|
1548
|
+
valuesArray[j] = valuesArray[i];
|
|
1549
|
+
}
|
|
1550
|
+
if (updateHashArray) {
|
|
1551
|
+
$this.m1_1[j] = hash;
|
|
1552
|
+
$this.n1_1[hash] = j + 1 | 0;
|
|
1553
|
+
}
|
|
1554
|
+
j = j + 1 | 0;
|
|
1555
|
+
}
|
|
1556
|
+
i = i + 1 | 0;
|
|
1557
|
+
}
|
|
1558
|
+
resetRange($this.k1_1, j, $this.p1_1);
|
|
1559
|
+
if (valuesArray == null)
|
|
1560
|
+
null;
|
|
1561
|
+
else {
|
|
1562
|
+
resetRange(valuesArray, j, $this.p1_1);
|
|
1563
|
+
}
|
|
1564
|
+
$this.p1_1 = j;
|
|
1565
|
+
}
|
|
1566
|
+
function rehash($this, newHashSize) {
|
|
1567
|
+
registerModification($this);
|
|
1568
|
+
if ($this.p1_1 > $this.s1_1) {
|
|
1569
|
+
compact($this, false);
|
|
1570
|
+
}
|
|
1571
|
+
$this.n1_1 = new Int32Array(newHashSize);
|
|
1572
|
+
$this.q1_1 = computeShift(Companion_instance_1, newHashSize);
|
|
1573
|
+
var i = 0;
|
|
1574
|
+
while (i < $this.p1_1) {
|
|
1575
|
+
var _unary__edvuaz = i;
|
|
1576
|
+
i = _unary__edvuaz + 1 | 0;
|
|
1577
|
+
if (!putRehash($this, _unary__edvuaz)) {
|
|
1578
|
+
throw IllegalStateException_init_$Create$_0('This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?');
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
function putRehash($this, i) {
|
|
1583
|
+
var hash_0 = hash($this, $this.k1_1[i]);
|
|
1584
|
+
var probesLeft = $this.o1_1;
|
|
1585
|
+
while (true) {
|
|
1586
|
+
var index = $this.n1_1[hash_0];
|
|
1587
|
+
if (index === 0) {
|
|
1588
|
+
$this.n1_1[hash_0] = i + 1 | 0;
|
|
1589
|
+
$this.m1_1[i] = hash_0;
|
|
1590
|
+
return true;
|
|
1591
|
+
}
|
|
1592
|
+
probesLeft = probesLeft - 1 | 0;
|
|
1593
|
+
if (probesLeft < 0)
|
|
1594
|
+
return false;
|
|
1595
|
+
var _unary__edvuaz = hash_0;
|
|
1596
|
+
hash_0 = _unary__edvuaz - 1 | 0;
|
|
1597
|
+
if (_unary__edvuaz === 0)
|
|
1598
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
function findKey($this, key) {
|
|
1602
|
+
var hash_0 = hash($this, key);
|
|
1603
|
+
var probesLeft = $this.o1_1;
|
|
1604
|
+
while (true) {
|
|
1605
|
+
var index = $this.n1_1[hash_0];
|
|
1606
|
+
if (index === 0)
|
|
1607
|
+
return -1;
|
|
1608
|
+
if (index > 0 && equals($this.k1_1[index - 1 | 0], key))
|
|
1609
|
+
return index - 1 | 0;
|
|
1610
|
+
probesLeft = probesLeft - 1 | 0;
|
|
1611
|
+
if (probesLeft < 0)
|
|
1612
|
+
return -1;
|
|
1613
|
+
var _unary__edvuaz = hash_0;
|
|
1614
|
+
hash_0 = _unary__edvuaz - 1 | 0;
|
|
1615
|
+
if (_unary__edvuaz === 0)
|
|
1616
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
function addKey($this, key) {
|
|
1620
|
+
$this.z1();
|
|
1621
|
+
retry: while (true) {
|
|
1622
|
+
var hash_0 = hash($this, key);
|
|
1623
|
+
var tentativeMaxProbeDistance = coerceAtMost(imul($this.o1_1, 2), _get_hashSize__tftcho($this) / 2 | 0);
|
|
1624
|
+
var probeDistance = 0;
|
|
1625
|
+
while (true) {
|
|
1626
|
+
var index = $this.n1_1[hash_0];
|
|
1627
|
+
if (index <= 0) {
|
|
1628
|
+
if ($this.p1_1 >= _get_capacity__a9k9f3($this)) {
|
|
1629
|
+
ensureExtraCapacity($this, 1);
|
|
1630
|
+
continue retry;
|
|
1631
|
+
}
|
|
1632
|
+
var _unary__edvuaz = $this.p1_1;
|
|
1633
|
+
$this.p1_1 = _unary__edvuaz + 1 | 0;
|
|
1634
|
+
var putIndex = _unary__edvuaz;
|
|
1635
|
+
$this.k1_1[putIndex] = key;
|
|
1636
|
+
$this.m1_1[putIndex] = hash_0;
|
|
1637
|
+
$this.n1_1[hash_0] = putIndex + 1 | 0;
|
|
1638
|
+
$this.s1_1 = $this.s1_1 + 1 | 0;
|
|
1639
|
+
registerModification($this);
|
|
1640
|
+
if (probeDistance > $this.o1_1)
|
|
1641
|
+
$this.o1_1 = probeDistance;
|
|
1642
|
+
return putIndex;
|
|
1643
|
+
}
|
|
1644
|
+
if (equals($this.k1_1[index - 1 | 0], key)) {
|
|
1645
|
+
return -index | 0;
|
|
1646
|
+
}
|
|
1647
|
+
probeDistance = probeDistance + 1 | 0;
|
|
1648
|
+
if (probeDistance > tentativeMaxProbeDistance) {
|
|
1649
|
+
rehash($this, imul(_get_hashSize__tftcho($this), 2));
|
|
1650
|
+
continue retry;
|
|
1651
|
+
}
|
|
1652
|
+
var _unary__edvuaz_0 = hash_0;
|
|
1653
|
+
hash_0 = _unary__edvuaz_0 - 1 | 0;
|
|
1654
|
+
if (_unary__edvuaz_0 === 0)
|
|
1655
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
function contentEquals($this, other) {
|
|
1660
|
+
return $this.s1_1 === other.i() && $this.a2(other.p());
|
|
1661
|
+
}
|
|
1662
|
+
function Companion_1() {
|
|
1663
|
+
this.b2_1 = -1640531527;
|
|
1664
|
+
this.c2_1 = 8;
|
|
1665
|
+
this.d2_1 = 2;
|
|
1666
|
+
this.e2_1 = -1;
|
|
1667
|
+
}
|
|
1668
|
+
var Companion_instance_1;
|
|
1669
|
+
function Companion_getInstance_1() {
|
|
1670
|
+
return Companion_instance_1;
|
|
1671
|
+
}
|
|
1672
|
+
function Itr(map) {
|
|
1673
|
+
this.f2_1 = map;
|
|
1674
|
+
this.g2_1 = 0;
|
|
1675
|
+
this.h2_1 = -1;
|
|
1676
|
+
this.i2_1 = this.f2_1.r1_1;
|
|
1677
|
+
this.j2();
|
|
1678
|
+
}
|
|
1679
|
+
protoOf(Itr).j2 = function () {
|
|
1680
|
+
while (this.g2_1 < this.f2_1.p1_1 && this.f2_1.m1_1[this.g2_1] < 0) {
|
|
1681
|
+
this.g2_1 = this.g2_1 + 1 | 0;
|
|
1682
|
+
}
|
|
1683
|
+
};
|
|
1684
|
+
protoOf(Itr).g = function () {
|
|
1685
|
+
return this.g2_1 < this.f2_1.p1_1;
|
|
1686
|
+
};
|
|
1687
|
+
protoOf(Itr).k2 = function () {
|
|
1688
|
+
if (!(this.f2_1.r1_1 === this.i2_1))
|
|
1689
|
+
throw ConcurrentModificationException_init_$Create$();
|
|
1690
|
+
};
|
|
1691
|
+
function KeysItr(map) {
|
|
1692
|
+
Itr.call(this, map);
|
|
1693
|
+
}
|
|
1694
|
+
protoOf(KeysItr).h = function () {
|
|
1695
|
+
this.k2();
|
|
1696
|
+
if (this.g2_1 >= this.f2_1.p1_1)
|
|
1697
|
+
throw NoSuchElementException_init_$Create$();
|
|
1698
|
+
var tmp = this;
|
|
1699
|
+
var _unary__edvuaz = this.g2_1;
|
|
1700
|
+
this.g2_1 = _unary__edvuaz + 1 | 0;
|
|
1701
|
+
tmp.h2_1 = _unary__edvuaz;
|
|
1702
|
+
var result = this.f2_1.k1_1[this.h2_1];
|
|
1703
|
+
this.j2();
|
|
1704
|
+
return result;
|
|
1705
|
+
};
|
|
1706
|
+
function EntriesItr(map) {
|
|
1707
|
+
Itr.call(this, map);
|
|
1708
|
+
}
|
|
1709
|
+
protoOf(EntriesItr).h = function () {
|
|
1710
|
+
this.k2();
|
|
1711
|
+
if (this.g2_1 >= this.f2_1.p1_1)
|
|
1712
|
+
throw NoSuchElementException_init_$Create$();
|
|
1713
|
+
var tmp = this;
|
|
1714
|
+
var _unary__edvuaz = this.g2_1;
|
|
1715
|
+
this.g2_1 = _unary__edvuaz + 1 | 0;
|
|
1716
|
+
tmp.h2_1 = _unary__edvuaz;
|
|
1717
|
+
var result = new EntryRef(this.f2_1, this.h2_1);
|
|
1718
|
+
this.j2();
|
|
1719
|
+
return result;
|
|
1720
|
+
};
|
|
1721
|
+
protoOf(EntriesItr).t2 = function () {
|
|
1722
|
+
if (this.g2_1 >= this.f2_1.p1_1)
|
|
1723
|
+
throw NoSuchElementException_init_$Create$();
|
|
1724
|
+
var tmp = this;
|
|
1725
|
+
var _unary__edvuaz = this.g2_1;
|
|
1726
|
+
this.g2_1 = _unary__edvuaz + 1 | 0;
|
|
1727
|
+
tmp.h2_1 = _unary__edvuaz;
|
|
1728
|
+
// Inline function 'kotlin.hashCode' call
|
|
1729
|
+
var tmp0_safe_receiver = this.f2_1.k1_1[this.h2_1];
|
|
1730
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
|
|
1731
|
+
var tmp_0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1732
|
+
// Inline function 'kotlin.hashCode' call
|
|
1733
|
+
var tmp0_safe_receiver_0 = ensureNotNull(this.f2_1.l1_1)[this.h2_1];
|
|
1734
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode_0(tmp0_safe_receiver_0);
|
|
1735
|
+
var result = tmp_0 ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
1736
|
+
this.j2();
|
|
1737
|
+
return result;
|
|
1738
|
+
};
|
|
1739
|
+
protoOf(EntriesItr).u2 = function (sb) {
|
|
1740
|
+
if (this.g2_1 >= this.f2_1.p1_1)
|
|
1741
|
+
throw NoSuchElementException_init_$Create$();
|
|
1742
|
+
var tmp = this;
|
|
1743
|
+
var _unary__edvuaz = this.g2_1;
|
|
1744
|
+
this.g2_1 = _unary__edvuaz + 1 | 0;
|
|
1745
|
+
tmp.h2_1 = _unary__edvuaz;
|
|
1746
|
+
var key = this.f2_1.k1_1[this.h2_1];
|
|
1747
|
+
if (equals(key, this.f2_1))
|
|
1748
|
+
sb.x2('(this Map)');
|
|
1749
|
+
else
|
|
1750
|
+
sb.w2(key);
|
|
1751
|
+
sb.y2(_Char___init__impl__6a9atx(61));
|
|
1752
|
+
var value = ensureNotNull(this.f2_1.l1_1)[this.h2_1];
|
|
1753
|
+
if (equals(value, this.f2_1))
|
|
1754
|
+
sb.x2('(this Map)');
|
|
1755
|
+
else
|
|
1756
|
+
sb.w2(value);
|
|
1757
|
+
this.j2();
|
|
1758
|
+
};
|
|
1759
|
+
function EntryRef(map, index) {
|
|
1760
|
+
this.u1_1 = map;
|
|
1761
|
+
this.v1_1 = index;
|
|
1762
|
+
this.w1_1 = this.u1_1.r1_1;
|
|
1763
|
+
}
|
|
1764
|
+
protoOf(EntryRef).n = function () {
|
|
1765
|
+
checkForComodification(this);
|
|
1766
|
+
return this.u1_1.k1_1[this.v1_1];
|
|
1767
|
+
};
|
|
1768
|
+
protoOf(EntryRef).o = function () {
|
|
1769
|
+
checkForComodification(this);
|
|
1770
|
+
return ensureNotNull(this.u1_1.l1_1)[this.v1_1];
|
|
1771
|
+
};
|
|
1772
|
+
protoOf(EntryRef).equals = function (other) {
|
|
1773
|
+
var tmp;
|
|
1774
|
+
var tmp_0;
|
|
1775
|
+
if (!(other == null) ? isInterface(other, Entry) : false) {
|
|
1776
|
+
tmp_0 = equals(other.n(), this.n());
|
|
1777
|
+
} else {
|
|
1778
|
+
tmp_0 = false;
|
|
1779
|
+
}
|
|
1780
|
+
if (tmp_0) {
|
|
1781
|
+
tmp = equals(other.o(), this.o());
|
|
1782
|
+
} else {
|
|
1783
|
+
tmp = false;
|
|
1784
|
+
}
|
|
1785
|
+
return tmp;
|
|
1786
|
+
};
|
|
1787
|
+
protoOf(EntryRef).hashCode = function () {
|
|
1788
|
+
// Inline function 'kotlin.hashCode' call
|
|
1789
|
+
var tmp0_safe_receiver = this.n();
|
|
1790
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
|
|
1791
|
+
var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1792
|
+
// Inline function 'kotlin.hashCode' call
|
|
1793
|
+
var tmp0_safe_receiver_0 = this.o();
|
|
1794
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode_0(tmp0_safe_receiver_0);
|
|
1795
|
+
return tmp ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
1796
|
+
};
|
|
1797
|
+
protoOf(EntryRef).toString = function () {
|
|
1798
|
+
return toString_0(this.n()) + '=' + toString_0(this.o());
|
|
1799
|
+
};
|
|
1800
|
+
function InternalHashMap(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length) {
|
|
1801
|
+
this.k1_1 = keysArray;
|
|
1802
|
+
this.l1_1 = valuesArray;
|
|
1803
|
+
this.m1_1 = presenceArray;
|
|
1804
|
+
this.n1_1 = hashArray;
|
|
1805
|
+
this.o1_1 = maxProbeDistance;
|
|
1806
|
+
this.p1_1 = length;
|
|
1807
|
+
this.q1_1 = computeShift(Companion_instance_1, _get_hashSize__tftcho(this));
|
|
1808
|
+
this.r1_1 = 0;
|
|
1809
|
+
this.s1_1 = 0;
|
|
1810
|
+
this.t1_1 = false;
|
|
1811
|
+
}
|
|
1812
|
+
protoOf(InternalHashMap).i = function () {
|
|
1813
|
+
return this.s1_1;
|
|
1814
|
+
};
|
|
1815
|
+
protoOf(InternalHashMap).i1 = function (key) {
|
|
1816
|
+
return findKey(this, key) >= 0;
|
|
1817
|
+
};
|
|
1818
|
+
protoOf(InternalHashMap).h1 = function (key, value) {
|
|
1819
|
+
var index = addKey(this, key);
|
|
1820
|
+
var valuesArray = allocateValuesArray(this);
|
|
1821
|
+
if (index < 0) {
|
|
1822
|
+
var oldValue = valuesArray[(-index | 0) - 1 | 0];
|
|
1823
|
+
valuesArray[(-index | 0) - 1 | 0] = value;
|
|
1824
|
+
return oldValue;
|
|
1825
|
+
} else {
|
|
1826
|
+
valuesArray[index] = value;
|
|
1827
|
+
return null;
|
|
1828
|
+
}
|
|
1829
|
+
};
|
|
1830
|
+
protoOf(InternalHashMap).equals = function (other) {
|
|
1831
|
+
var tmp;
|
|
1832
|
+
if (other === this) {
|
|
1833
|
+
tmp = true;
|
|
1834
|
+
} else {
|
|
1835
|
+
var tmp_0;
|
|
1836
|
+
if (!(other == null) ? isInterface(other, KtMap) : false) {
|
|
1837
|
+
tmp_0 = contentEquals(this, other);
|
|
1838
|
+
} else {
|
|
1839
|
+
tmp_0 = false;
|
|
1840
|
+
}
|
|
1841
|
+
tmp = tmp_0;
|
|
1842
|
+
}
|
|
1843
|
+
return tmp;
|
|
1844
|
+
};
|
|
1845
|
+
protoOf(InternalHashMap).hashCode = function () {
|
|
1846
|
+
var result = 0;
|
|
1847
|
+
var it = this.z2();
|
|
1848
|
+
while (it.g()) {
|
|
1849
|
+
result = result + it.t2() | 0;
|
|
1850
|
+
}
|
|
1851
|
+
return result;
|
|
1852
|
+
};
|
|
1853
|
+
protoOf(InternalHashMap).toString = function () {
|
|
1854
|
+
var sb = StringBuilder_init_$Create$(2 + imul(this.s1_1, 3) | 0);
|
|
1855
|
+
sb.x2('{');
|
|
1856
|
+
var i = 0;
|
|
1857
|
+
var it = this.z2();
|
|
1858
|
+
while (it.g()) {
|
|
1859
|
+
if (i > 0) {
|
|
1860
|
+
sb.x2(', ');
|
|
1861
|
+
}
|
|
1862
|
+
it.u2(sb);
|
|
1863
|
+
i = i + 1 | 0;
|
|
1864
|
+
}
|
|
1865
|
+
sb.x2('}');
|
|
1866
|
+
return sb.toString();
|
|
1867
|
+
};
|
|
1868
|
+
protoOf(InternalHashMap).z1 = function () {
|
|
1869
|
+
if (this.t1_1)
|
|
1870
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
1871
|
+
};
|
|
1872
|
+
protoOf(InternalHashMap).a3 = function (entry) {
|
|
1873
|
+
var index = findKey(this, entry.n());
|
|
1874
|
+
if (index < 0)
|
|
1875
|
+
return false;
|
|
1876
|
+
return equals(ensureNotNull(this.l1_1)[index], entry.o());
|
|
1877
|
+
};
|
|
1878
|
+
protoOf(InternalHashMap).b3 = function (entry) {
|
|
1879
|
+
return this.a3(isInterface(entry, Entry) ? entry : THROW_CCE());
|
|
1880
|
+
};
|
|
1881
|
+
protoOf(InternalHashMap).j1 = function () {
|
|
1882
|
+
return new KeysItr(this);
|
|
1883
|
+
};
|
|
1884
|
+
protoOf(InternalHashMap).z2 = function () {
|
|
1885
|
+
return new EntriesItr(this);
|
|
1886
|
+
};
|
|
1887
|
+
function InternalMap() {
|
|
1888
|
+
}
|
|
1889
|
+
function LinkedHashSet_init_$Init$($this) {
|
|
1890
|
+
HashSet_init_$Init$_0($this);
|
|
1891
|
+
LinkedHashSet.call($this);
|
|
1892
|
+
return $this;
|
|
1893
|
+
}
|
|
1894
|
+
function LinkedHashSet_init_$Create$() {
|
|
1895
|
+
return LinkedHashSet_init_$Init$(objectCreate(protoOf(LinkedHashSet)));
|
|
1896
|
+
}
|
|
1897
|
+
function LinkedHashSet_init_$Init$_0(initialCapacity, loadFactor, $this) {
|
|
1898
|
+
HashSet_init_$Init$_1(initialCapacity, loadFactor, $this);
|
|
1899
|
+
LinkedHashSet.call($this);
|
|
1900
|
+
return $this;
|
|
1901
|
+
}
|
|
1902
|
+
function LinkedHashSet_init_$Init$_1(initialCapacity, $this) {
|
|
1903
|
+
LinkedHashSet_init_$Init$_0(initialCapacity, 1.0, $this);
|
|
1904
|
+
return $this;
|
|
1905
|
+
}
|
|
1906
|
+
function LinkedHashSet_init_$Create$_0(initialCapacity) {
|
|
1907
|
+
return LinkedHashSet_init_$Init$_1(initialCapacity, objectCreate(protoOf(LinkedHashSet)));
|
|
1908
|
+
}
|
|
1909
|
+
function LinkedHashSet() {
|
|
1910
|
+
}
|
|
1911
|
+
function UnsupportedOperationException_init_$Init$($this) {
|
|
1912
|
+
RuntimeException_init_$Init$($this);
|
|
1913
|
+
UnsupportedOperationException.call($this);
|
|
1914
|
+
return $this;
|
|
1915
|
+
}
|
|
1916
|
+
function UnsupportedOperationException_init_$Create$() {
|
|
1917
|
+
var tmp = UnsupportedOperationException_init_$Init$(objectCreate(protoOf(UnsupportedOperationException)));
|
|
1918
|
+
captureStack(tmp, UnsupportedOperationException_init_$Create$);
|
|
1919
|
+
return tmp;
|
|
1920
|
+
}
|
|
1921
|
+
function UnsupportedOperationException() {
|
|
1922
|
+
captureStack(this, UnsupportedOperationException);
|
|
1923
|
+
}
|
|
1924
|
+
function IllegalStateException_init_$Init$($this) {
|
|
1925
|
+
RuntimeException_init_$Init$($this);
|
|
1926
|
+
IllegalStateException.call($this);
|
|
1927
|
+
return $this;
|
|
1928
|
+
}
|
|
1929
|
+
function IllegalStateException_init_$Create$() {
|
|
1930
|
+
var tmp = IllegalStateException_init_$Init$(objectCreate(protoOf(IllegalStateException)));
|
|
1931
|
+
captureStack(tmp, IllegalStateException_init_$Create$);
|
|
1932
|
+
return tmp;
|
|
1933
|
+
}
|
|
1934
|
+
function IllegalStateException_init_$Init$_0(message, $this) {
|
|
1935
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
1936
|
+
IllegalStateException.call($this);
|
|
1937
|
+
return $this;
|
|
1938
|
+
}
|
|
1939
|
+
function IllegalStateException_init_$Create$_0(message) {
|
|
1940
|
+
var tmp = IllegalStateException_init_$Init$_0(message, objectCreate(protoOf(IllegalStateException)));
|
|
1941
|
+
captureStack(tmp, IllegalStateException_init_$Create$_0);
|
|
1942
|
+
return tmp;
|
|
1943
|
+
}
|
|
1944
|
+
function IllegalStateException() {
|
|
1945
|
+
captureStack(this, IllegalStateException);
|
|
1946
|
+
}
|
|
1947
|
+
function IllegalArgumentException_init_$Init$($this) {
|
|
1948
|
+
RuntimeException_init_$Init$($this);
|
|
1949
|
+
IllegalArgumentException.call($this);
|
|
1950
|
+
return $this;
|
|
1951
|
+
}
|
|
1952
|
+
function IllegalArgumentException_init_$Create$() {
|
|
1953
|
+
var tmp = IllegalArgumentException_init_$Init$(objectCreate(protoOf(IllegalArgumentException)));
|
|
1954
|
+
captureStack(tmp, IllegalArgumentException_init_$Create$);
|
|
1955
|
+
return tmp;
|
|
1956
|
+
}
|
|
1957
|
+
function IllegalArgumentException_init_$Init$_0(message, $this) {
|
|
1958
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
1959
|
+
IllegalArgumentException.call($this);
|
|
1960
|
+
return $this;
|
|
1961
|
+
}
|
|
1962
|
+
function IllegalArgumentException_init_$Create$_0(message) {
|
|
1963
|
+
var tmp = IllegalArgumentException_init_$Init$_0(message, objectCreate(protoOf(IllegalArgumentException)));
|
|
1964
|
+
captureStack(tmp, IllegalArgumentException_init_$Create$_0);
|
|
1965
|
+
return tmp;
|
|
1966
|
+
}
|
|
1967
|
+
function IllegalArgumentException() {
|
|
1968
|
+
captureStack(this, IllegalArgumentException);
|
|
1969
|
+
}
|
|
1970
|
+
function RuntimeException_init_$Init$($this) {
|
|
1971
|
+
Exception_init_$Init$($this);
|
|
1972
|
+
RuntimeException.call($this);
|
|
1973
|
+
return $this;
|
|
1974
|
+
}
|
|
1975
|
+
function RuntimeException_init_$Create$() {
|
|
1976
|
+
var tmp = RuntimeException_init_$Init$(objectCreate(protoOf(RuntimeException)));
|
|
1977
|
+
captureStack(tmp, RuntimeException_init_$Create$);
|
|
1978
|
+
return tmp;
|
|
1979
|
+
}
|
|
1980
|
+
function RuntimeException_init_$Init$_0(message, $this) {
|
|
1981
|
+
Exception_init_$Init$_0(message, $this);
|
|
1982
|
+
RuntimeException.call($this);
|
|
1983
|
+
return $this;
|
|
1984
|
+
}
|
|
1985
|
+
function RuntimeException_init_$Create$_0(message) {
|
|
1986
|
+
var tmp = RuntimeException_init_$Init$_0(message, objectCreate(protoOf(RuntimeException)));
|
|
1987
|
+
captureStack(tmp, RuntimeException_init_$Create$_0);
|
|
1988
|
+
return tmp;
|
|
1989
|
+
}
|
|
1990
|
+
function RuntimeException() {
|
|
1991
|
+
captureStack(this, RuntimeException);
|
|
1992
|
+
}
|
|
1993
|
+
function Exception_init_$Init$($this) {
|
|
1994
|
+
extendThrowable($this);
|
|
1995
|
+
Exception.call($this);
|
|
1996
|
+
return $this;
|
|
1997
|
+
}
|
|
1998
|
+
function Exception_init_$Create$() {
|
|
1999
|
+
var tmp = Exception_init_$Init$(objectCreate(protoOf(Exception)));
|
|
2000
|
+
captureStack(tmp, Exception_init_$Create$);
|
|
2001
|
+
return tmp;
|
|
2002
|
+
}
|
|
2003
|
+
function Exception_init_$Init$_0(message, $this) {
|
|
2004
|
+
extendThrowable($this, message);
|
|
2005
|
+
Exception.call($this);
|
|
2006
|
+
return $this;
|
|
2007
|
+
}
|
|
2008
|
+
function Exception_init_$Create$_0(message) {
|
|
2009
|
+
var tmp = Exception_init_$Init$_0(message, objectCreate(protoOf(Exception)));
|
|
2010
|
+
captureStack(tmp, Exception_init_$Create$_0);
|
|
2011
|
+
return tmp;
|
|
2012
|
+
}
|
|
2013
|
+
function Exception() {
|
|
2014
|
+
captureStack(this, Exception);
|
|
2015
|
+
}
|
|
2016
|
+
function NoSuchElementException_init_$Init$($this) {
|
|
2017
|
+
RuntimeException_init_$Init$($this);
|
|
2018
|
+
NoSuchElementException.call($this);
|
|
2019
|
+
return $this;
|
|
2020
|
+
}
|
|
2021
|
+
function NoSuchElementException_init_$Create$() {
|
|
2022
|
+
var tmp = NoSuchElementException_init_$Init$(objectCreate(protoOf(NoSuchElementException)));
|
|
2023
|
+
captureStack(tmp, NoSuchElementException_init_$Create$);
|
|
2024
|
+
return tmp;
|
|
2025
|
+
}
|
|
2026
|
+
function NoSuchElementException() {
|
|
2027
|
+
captureStack(this, NoSuchElementException);
|
|
2028
|
+
}
|
|
2029
|
+
function IndexOutOfBoundsException_init_$Init$($this) {
|
|
2030
|
+
RuntimeException_init_$Init$($this);
|
|
2031
|
+
IndexOutOfBoundsException.call($this);
|
|
2032
|
+
return $this;
|
|
2033
|
+
}
|
|
2034
|
+
function IndexOutOfBoundsException_init_$Create$() {
|
|
2035
|
+
var tmp = IndexOutOfBoundsException_init_$Init$(objectCreate(protoOf(IndexOutOfBoundsException)));
|
|
2036
|
+
captureStack(tmp, IndexOutOfBoundsException_init_$Create$);
|
|
2037
|
+
return tmp;
|
|
2038
|
+
}
|
|
2039
|
+
function IndexOutOfBoundsException_init_$Init$_0(message, $this) {
|
|
2040
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2041
|
+
IndexOutOfBoundsException.call($this);
|
|
2042
|
+
return $this;
|
|
2043
|
+
}
|
|
2044
|
+
function IndexOutOfBoundsException_init_$Create$_0(message) {
|
|
2045
|
+
var tmp = IndexOutOfBoundsException_init_$Init$_0(message, objectCreate(protoOf(IndexOutOfBoundsException)));
|
|
2046
|
+
captureStack(tmp, IndexOutOfBoundsException_init_$Create$_0);
|
|
2047
|
+
return tmp;
|
|
2048
|
+
}
|
|
2049
|
+
function IndexOutOfBoundsException() {
|
|
2050
|
+
captureStack(this, IndexOutOfBoundsException);
|
|
2051
|
+
}
|
|
2052
|
+
function ConcurrentModificationException_init_$Init$($this) {
|
|
2053
|
+
RuntimeException_init_$Init$($this);
|
|
2054
|
+
ConcurrentModificationException.call($this);
|
|
2055
|
+
return $this;
|
|
2056
|
+
}
|
|
2057
|
+
function ConcurrentModificationException_init_$Create$() {
|
|
2058
|
+
var tmp = ConcurrentModificationException_init_$Init$(objectCreate(protoOf(ConcurrentModificationException)));
|
|
2059
|
+
captureStack(tmp, ConcurrentModificationException_init_$Create$);
|
|
2060
|
+
return tmp;
|
|
2061
|
+
}
|
|
2062
|
+
function ConcurrentModificationException_init_$Init$_0(message, $this) {
|
|
2063
|
+
RuntimeException_init_$Init$_0(message, $this);
|
|
2064
|
+
ConcurrentModificationException.call($this);
|
|
2065
|
+
return $this;
|
|
2066
|
+
}
|
|
2067
|
+
function ConcurrentModificationException_init_$Create$_0(message) {
|
|
2068
|
+
var tmp = ConcurrentModificationException_init_$Init$_0(message, objectCreate(protoOf(ConcurrentModificationException)));
|
|
2069
|
+
captureStack(tmp, ConcurrentModificationException_init_$Create$_0);
|
|
2070
|
+
return tmp;
|
|
2071
|
+
}
|
|
2072
|
+
function ConcurrentModificationException() {
|
|
2073
|
+
captureStack(this, ConcurrentModificationException);
|
|
2074
|
+
}
|
|
2075
|
+
function NullPointerException_init_$Init$($this) {
|
|
2076
|
+
RuntimeException_init_$Init$($this);
|
|
2077
|
+
NullPointerException.call($this);
|
|
2078
|
+
return $this;
|
|
2079
|
+
}
|
|
2080
|
+
function NullPointerException_init_$Create$() {
|
|
2081
|
+
var tmp = NullPointerException_init_$Init$(objectCreate(protoOf(NullPointerException)));
|
|
2082
|
+
captureStack(tmp, NullPointerException_init_$Create$);
|
|
2083
|
+
return tmp;
|
|
2084
|
+
}
|
|
2085
|
+
function NullPointerException() {
|
|
2086
|
+
captureStack(this, NullPointerException);
|
|
2087
|
+
}
|
|
2088
|
+
function NoWhenBranchMatchedException_init_$Init$($this) {
|
|
2089
|
+
RuntimeException_init_$Init$($this);
|
|
2090
|
+
NoWhenBranchMatchedException.call($this);
|
|
2091
|
+
return $this;
|
|
2092
|
+
}
|
|
2093
|
+
function NoWhenBranchMatchedException_init_$Create$() {
|
|
2094
|
+
var tmp = NoWhenBranchMatchedException_init_$Init$(objectCreate(protoOf(NoWhenBranchMatchedException)));
|
|
2095
|
+
captureStack(tmp, NoWhenBranchMatchedException_init_$Create$);
|
|
2096
|
+
return tmp;
|
|
2097
|
+
}
|
|
2098
|
+
function NoWhenBranchMatchedException() {
|
|
2099
|
+
captureStack(this, NoWhenBranchMatchedException);
|
|
2100
|
+
}
|
|
2101
|
+
function ClassCastException_init_$Init$($this) {
|
|
2102
|
+
RuntimeException_init_$Init$($this);
|
|
2103
|
+
ClassCastException.call($this);
|
|
2104
|
+
return $this;
|
|
2105
|
+
}
|
|
2106
|
+
function ClassCastException_init_$Create$() {
|
|
2107
|
+
var tmp = ClassCastException_init_$Init$(objectCreate(protoOf(ClassCastException)));
|
|
2108
|
+
captureStack(tmp, ClassCastException_init_$Create$);
|
|
2109
|
+
return tmp;
|
|
2110
|
+
}
|
|
2111
|
+
function ClassCastException() {
|
|
2112
|
+
captureStack(this, ClassCastException);
|
|
2113
|
+
}
|
|
2114
|
+
function fillFrom(src, dst) {
|
|
2115
|
+
var srcLen = src.length;
|
|
2116
|
+
var dstLen = dst.length;
|
|
2117
|
+
var index = 0;
|
|
2118
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2119
|
+
var arr = dst;
|
|
2120
|
+
while (index < srcLen && index < dstLen) {
|
|
2121
|
+
var tmp = index;
|
|
2122
|
+
var _unary__edvuaz = index;
|
|
2123
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2124
|
+
arr[tmp] = src[_unary__edvuaz];
|
|
2125
|
+
}
|
|
2126
|
+
return dst;
|
|
2127
|
+
}
|
|
2128
|
+
function arrayCopyResize(source, newSize, defaultValue) {
|
|
2129
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2130
|
+
var result = source.slice(0, newSize);
|
|
2131
|
+
// Inline function 'kotlin.copyArrayType' call
|
|
2132
|
+
if (source.$type$ !== undefined) {
|
|
2133
|
+
result.$type$ = source.$type$;
|
|
2134
|
+
}
|
|
2135
|
+
var index = source.length;
|
|
2136
|
+
if (newSize > index) {
|
|
2137
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2138
|
+
result.length = newSize;
|
|
2139
|
+
while (index < newSize) {
|
|
2140
|
+
var _unary__edvuaz = index;
|
|
2141
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2142
|
+
result[_unary__edvuaz] = defaultValue;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
return result;
|
|
2146
|
+
}
|
|
2147
|
+
function PrimitiveKClassImpl(jClass, givenSimpleName, isInstanceFunction) {
|
|
2148
|
+
KClassImpl.call(this);
|
|
2149
|
+
this.e3_1 = jClass;
|
|
2150
|
+
this.f3_1 = givenSimpleName;
|
|
2151
|
+
this.g3_1 = isInstanceFunction;
|
|
2152
|
+
}
|
|
2153
|
+
protoOf(PrimitiveKClassImpl).h3 = function () {
|
|
2154
|
+
return this.e3_1;
|
|
2155
|
+
};
|
|
2156
|
+
protoOf(PrimitiveKClassImpl).equals = function (other) {
|
|
2157
|
+
if (!(other instanceof PrimitiveKClassImpl))
|
|
2158
|
+
return false;
|
|
2159
|
+
return protoOf(KClassImpl).equals.call(this, other) && this.f3_1 === other.f3_1;
|
|
2160
|
+
};
|
|
2161
|
+
protoOf(PrimitiveKClassImpl).i3 = function () {
|
|
2162
|
+
return this.f3_1;
|
|
2163
|
+
};
|
|
2164
|
+
function KClassImpl() {
|
|
2165
|
+
}
|
|
2166
|
+
protoOf(KClassImpl).equals = function (other) {
|
|
2167
|
+
var tmp;
|
|
2168
|
+
if (other instanceof NothingKClassImpl) {
|
|
2169
|
+
tmp = false;
|
|
2170
|
+
} else {
|
|
2171
|
+
if (other instanceof KClassImpl) {
|
|
2172
|
+
tmp = equals(this.h3(), other.h3());
|
|
2173
|
+
} else {
|
|
2174
|
+
tmp = false;
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
return tmp;
|
|
2178
|
+
};
|
|
2179
|
+
protoOf(KClassImpl).hashCode = function () {
|
|
2180
|
+
var tmp0_safe_receiver = this.i3();
|
|
2181
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
2182
|
+
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
2183
|
+
};
|
|
2184
|
+
protoOf(KClassImpl).toString = function () {
|
|
2185
|
+
return 'class ' + this.i3();
|
|
2186
|
+
};
|
|
2187
|
+
function NothingKClassImpl() {
|
|
2188
|
+
}
|
|
2189
|
+
function reset(_this__u8e3s4) {
|
|
2190
|
+
_this__u8e3s4.lastIndex = 0;
|
|
2191
|
+
}
|
|
2192
|
+
function StringBuilder_init_$Init$(capacity, $this) {
|
|
2193
|
+
StringBuilder_init_$Init$_0($this);
|
|
2194
|
+
return $this;
|
|
2195
|
+
}
|
|
2196
|
+
function StringBuilder_init_$Create$(capacity) {
|
|
2197
|
+
return StringBuilder_init_$Init$(capacity, objectCreate(protoOf(StringBuilder)));
|
|
2198
|
+
}
|
|
2199
|
+
function StringBuilder_init_$Init$_0($this) {
|
|
2200
|
+
StringBuilder.call($this, '');
|
|
2201
|
+
return $this;
|
|
2202
|
+
}
|
|
2203
|
+
function StringBuilder_init_$Create$_0() {
|
|
2204
|
+
return StringBuilder_init_$Init$_0(objectCreate(protoOf(StringBuilder)));
|
|
2205
|
+
}
|
|
2206
|
+
function StringBuilder(content) {
|
|
2207
|
+
this.v2_1 = content;
|
|
2208
|
+
}
|
|
2209
|
+
protoOf(StringBuilder).a = function () {
|
|
2210
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2211
|
+
return this.v2_1.length;
|
|
2212
|
+
};
|
|
2213
|
+
protoOf(StringBuilder).b = function (index) {
|
|
2214
|
+
// Inline function 'kotlin.text.getOrElse' call
|
|
2215
|
+
var this_0 = this.v2_1;
|
|
2216
|
+
var tmp;
|
|
2217
|
+
if (0 <= index ? index <= (charSequenceLength(this_0) - 1 | 0) : false) {
|
|
2218
|
+
tmp = charSequenceGet(this_0, index);
|
|
2219
|
+
} else {
|
|
2220
|
+
throw IndexOutOfBoundsException_init_$Create$_0('index: ' + index + ', length: ' + this.a() + '}');
|
|
2221
|
+
}
|
|
2222
|
+
return tmp;
|
|
2223
|
+
};
|
|
2224
|
+
protoOf(StringBuilder).c = function (startIndex, endIndex) {
|
|
2225
|
+
return substring(this.v2_1, startIndex, endIndex);
|
|
2226
|
+
};
|
|
2227
|
+
protoOf(StringBuilder).y2 = function (value) {
|
|
2228
|
+
this.v2_1 = this.v2_1 + toString(value);
|
|
2229
|
+
return this;
|
|
2230
|
+
};
|
|
2231
|
+
protoOf(StringBuilder).e = function (value) {
|
|
2232
|
+
this.v2_1 = this.v2_1 + toString_0(value);
|
|
2233
|
+
return this;
|
|
2234
|
+
};
|
|
2235
|
+
protoOf(StringBuilder).w2 = function (value) {
|
|
2236
|
+
this.v2_1 = this.v2_1 + toString_0(value);
|
|
2237
|
+
return this;
|
|
2238
|
+
};
|
|
2239
|
+
protoOf(StringBuilder).x2 = function (value) {
|
|
2240
|
+
var tmp = this;
|
|
2241
|
+
var tmp_0 = this.v2_1;
|
|
2242
|
+
tmp.v2_1 = tmp_0 + (value == null ? 'null' : value);
|
|
2243
|
+
return this;
|
|
2244
|
+
};
|
|
2245
|
+
protoOf(StringBuilder).toString = function () {
|
|
2246
|
+
return this.v2_1;
|
|
2247
|
+
};
|
|
2248
|
+
function uppercaseChar(_this__u8e3s4) {
|
|
2249
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
2250
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2251
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2252
|
+
var uppercase = toString(_this__u8e3s4).toUpperCase();
|
|
2253
|
+
return uppercase.length > 1 ? _this__u8e3s4 : charCodeAt(uppercase, 0);
|
|
2254
|
+
}
|
|
2255
|
+
function isWhitespace(_this__u8e3s4) {
|
|
2256
|
+
return isWhitespaceImpl(_this__u8e3s4);
|
|
2257
|
+
}
|
|
2258
|
+
function Regex_init_$Init$(pattern, $this) {
|
|
2259
|
+
Regex.call($this, pattern, emptySet());
|
|
2260
|
+
return $this;
|
|
2261
|
+
}
|
|
2262
|
+
function Regex_init_$Create$(pattern) {
|
|
2263
|
+
return Regex_init_$Init$(pattern, objectCreate(protoOf(Regex)));
|
|
2264
|
+
}
|
|
2265
|
+
function Companion_2() {
|
|
2266
|
+
Companion_instance_2 = this;
|
|
2267
|
+
this.j3_1 = new RegExp('[\\\\^$*+?.()|[\\]{}]', 'g');
|
|
2268
|
+
this.k3_1 = new RegExp('[\\\\$]', 'g');
|
|
2269
|
+
this.l3_1 = new RegExp('\\$', 'g');
|
|
2270
|
+
}
|
|
2271
|
+
var Companion_instance_2;
|
|
2272
|
+
function Companion_getInstance_2() {
|
|
2273
|
+
if (Companion_instance_2 == null)
|
|
2274
|
+
new Companion_2();
|
|
2275
|
+
return Companion_instance_2;
|
|
2276
|
+
}
|
|
2277
|
+
function Regex(pattern, options) {
|
|
2278
|
+
Companion_getInstance_2();
|
|
2279
|
+
this.m3_1 = pattern;
|
|
2280
|
+
this.n3_1 = toSet(options);
|
|
2281
|
+
this.o3_1 = new RegExp(pattern, toFlags(options, 'gu'));
|
|
2282
|
+
this.p3_1 = null;
|
|
2283
|
+
this.q3_1 = null;
|
|
2284
|
+
}
|
|
2285
|
+
protoOf(Regex).r3 = function (input) {
|
|
2286
|
+
reset(this.o3_1);
|
|
2287
|
+
var match = this.o3_1.exec(toString_1(input));
|
|
2288
|
+
return !(match == null) && match.index === 0 && this.o3_1.lastIndex === charSequenceLength(input);
|
|
2289
|
+
};
|
|
2290
|
+
protoOf(Regex).toString = function () {
|
|
2291
|
+
return this.o3_1.toString();
|
|
2292
|
+
};
|
|
2293
|
+
function toFlags(_this__u8e3s4, prepend) {
|
|
2294
|
+
return joinToString(_this__u8e3s4, '', prepend, VOID, VOID, VOID, toFlags$lambda);
|
|
2295
|
+
}
|
|
2296
|
+
function toFlags$lambda(it) {
|
|
2297
|
+
return it.u3_1;
|
|
2298
|
+
}
|
|
2299
|
+
var STRING_CASE_INSENSITIVE_ORDER;
|
|
2300
|
+
function substring(_this__u8e3s4, startIndex, endIndex) {
|
|
2301
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
2302
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2303
|
+
return _this__u8e3s4.substring(startIndex, endIndex);
|
|
2304
|
+
}
|
|
2305
|
+
function compareTo_0(_this__u8e3s4, other, ignoreCase) {
|
|
2306
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
2307
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
2308
|
+
if (ignoreCase) {
|
|
2309
|
+
var n1 = _this__u8e3s4.length;
|
|
2310
|
+
var n2 = other.length;
|
|
2311
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2312
|
+
var min = Math.min(n1, n2);
|
|
2313
|
+
if (min === 0)
|
|
2314
|
+
return n1 - n2 | 0;
|
|
2315
|
+
var inductionVariable = 0;
|
|
2316
|
+
if (inductionVariable < min)
|
|
2317
|
+
do {
|
|
2318
|
+
var index = inductionVariable;
|
|
2319
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2320
|
+
var thisChar = charCodeAt(_this__u8e3s4, index);
|
|
2321
|
+
var otherChar = charCodeAt(other, index);
|
|
2322
|
+
if (!(thisChar === otherChar)) {
|
|
2323
|
+
thisChar = uppercaseChar(thisChar);
|
|
2324
|
+
otherChar = uppercaseChar(otherChar);
|
|
2325
|
+
if (!(thisChar === otherChar)) {
|
|
2326
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
2327
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2328
|
+
var this_0 = thisChar;
|
|
2329
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2330
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2331
|
+
var tmp$ret$3 = toString(this_0).toLowerCase();
|
|
2332
|
+
thisChar = charCodeAt(tmp$ret$3, 0);
|
|
2333
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
2334
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
2335
|
+
var this_1 = otherChar;
|
|
2336
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2337
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2338
|
+
var tmp$ret$7 = toString(this_1).toLowerCase();
|
|
2339
|
+
otherChar = charCodeAt(tmp$ret$7, 0);
|
|
2340
|
+
if (!(thisChar === otherChar)) {
|
|
2341
|
+
return Char__compareTo_impl_ypi4mb(thisChar, otherChar);
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
while (inductionVariable < min);
|
|
2347
|
+
return n1 - n2 | 0;
|
|
2348
|
+
} else {
|
|
2349
|
+
return compareTo(_this__u8e3s4, other);
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
function sam$kotlin_Comparator$0(function_0) {
|
|
2353
|
+
this.v3_1 = function_0;
|
|
2354
|
+
}
|
|
2355
|
+
protoOf(sam$kotlin_Comparator$0).w3 = function (a, b) {
|
|
2356
|
+
return this.v3_1(a, b);
|
|
2357
|
+
};
|
|
2358
|
+
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2359
|
+
return this.w3(a, b);
|
|
2360
|
+
};
|
|
2361
|
+
protoOf(sam$kotlin_Comparator$0).d1 = function () {
|
|
2362
|
+
return this.v3_1;
|
|
2363
|
+
};
|
|
2364
|
+
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2365
|
+
var tmp;
|
|
2366
|
+
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
2367
|
+
var tmp_0;
|
|
2368
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
2369
|
+
tmp_0 = equals(this.d1(), other.d1());
|
|
2370
|
+
} else {
|
|
2371
|
+
tmp_0 = false;
|
|
2372
|
+
}
|
|
2373
|
+
tmp = tmp_0;
|
|
2374
|
+
} else {
|
|
2375
|
+
tmp = false;
|
|
2376
|
+
}
|
|
2377
|
+
return tmp;
|
|
2378
|
+
};
|
|
2379
|
+
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
2380
|
+
return hashCode_0(this.d1());
|
|
2381
|
+
};
|
|
2382
|
+
function STRING_CASE_INSENSITIVE_ORDER$lambda(a, b) {
|
|
2383
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
2384
|
+
return compareTo_0(a, b, true);
|
|
2385
|
+
}
|
|
2386
|
+
var properties_initialized_stringJs_kt_nta8o4;
|
|
2387
|
+
function _init_properties_stringJs_kt__bg7zye() {
|
|
2388
|
+
if (!properties_initialized_stringJs_kt_nta8o4) {
|
|
2389
|
+
properties_initialized_stringJs_kt_nta8o4 = true;
|
|
2390
|
+
var tmp = STRING_CASE_INSENSITIVE_ORDER$lambda;
|
|
2391
|
+
STRING_CASE_INSENSITIVE_ORDER = new sam$kotlin_Comparator$0(tmp);
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
function AbstractCollection$toString$lambda(this$0) {
|
|
2395
|
+
return function (it) {
|
|
2396
|
+
return it === this$0 ? '(this Collection)' : toString_0(it);
|
|
2397
|
+
};
|
|
2398
|
+
}
|
|
2399
|
+
function AbstractCollection() {
|
|
2400
|
+
}
|
|
2401
|
+
protoOf(AbstractCollection).l = function (element) {
|
|
2402
|
+
var tmp$ret$0;
|
|
2403
|
+
$l$block_0: {
|
|
2404
|
+
// Inline function 'kotlin.collections.any' call
|
|
2405
|
+
var tmp;
|
|
2406
|
+
if (isInterface(this, Collection)) {
|
|
2407
|
+
tmp = this.k();
|
|
2408
|
+
} else {
|
|
2409
|
+
tmp = false;
|
|
2410
|
+
}
|
|
2411
|
+
if (tmp) {
|
|
2412
|
+
tmp$ret$0 = false;
|
|
2413
|
+
break $l$block_0;
|
|
2414
|
+
}
|
|
2415
|
+
var _iterator__ex2g4s = this.f();
|
|
2416
|
+
while (_iterator__ex2g4s.g()) {
|
|
2417
|
+
var element_0 = _iterator__ex2g4s.h();
|
|
2418
|
+
if (equals(element_0, element)) {
|
|
2419
|
+
tmp$ret$0 = true;
|
|
2420
|
+
break $l$block_0;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
tmp$ret$0 = false;
|
|
2424
|
+
}
|
|
2425
|
+
return tmp$ret$0;
|
|
2426
|
+
};
|
|
2427
|
+
protoOf(AbstractCollection).m = function (elements) {
|
|
2428
|
+
var tmp$ret$0;
|
|
2429
|
+
$l$block_0: {
|
|
2430
|
+
// Inline function 'kotlin.collections.all' call
|
|
2431
|
+
var tmp;
|
|
2432
|
+
if (isInterface(elements, Collection)) {
|
|
2433
|
+
tmp = elements.k();
|
|
2434
|
+
} else {
|
|
2435
|
+
tmp = false;
|
|
2436
|
+
}
|
|
2437
|
+
if (tmp) {
|
|
2438
|
+
tmp$ret$0 = true;
|
|
2439
|
+
break $l$block_0;
|
|
2440
|
+
}
|
|
2441
|
+
var _iterator__ex2g4s = elements.f();
|
|
2442
|
+
while (_iterator__ex2g4s.g()) {
|
|
2443
|
+
var element = _iterator__ex2g4s.h();
|
|
2444
|
+
if (!this.l(element)) {
|
|
2445
|
+
tmp$ret$0 = false;
|
|
2446
|
+
break $l$block_0;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
tmp$ret$0 = true;
|
|
2450
|
+
}
|
|
2451
|
+
return tmp$ret$0;
|
|
2452
|
+
};
|
|
2453
|
+
protoOf(AbstractCollection).k = function () {
|
|
2454
|
+
return this.i() === 0;
|
|
2455
|
+
};
|
|
2456
|
+
protoOf(AbstractCollection).toString = function () {
|
|
2457
|
+
return joinToString(this, ', ', '[', ']', VOID, VOID, AbstractCollection$toString$lambda(this));
|
|
2458
|
+
};
|
|
2459
|
+
protoOf(AbstractCollection).toArray = function () {
|
|
2460
|
+
return collectionToArray(this);
|
|
2461
|
+
};
|
|
2462
|
+
function Companion_3() {
|
|
2463
|
+
this.x1_1 = 2147483639;
|
|
2464
|
+
}
|
|
2465
|
+
protoOf(Companion_3).y1 = function (oldCapacity, minCapacity) {
|
|
2466
|
+
var newCapacity = oldCapacity + (oldCapacity >> 1) | 0;
|
|
2467
|
+
if ((newCapacity - minCapacity | 0) < 0)
|
|
2468
|
+
newCapacity = minCapacity;
|
|
2469
|
+
if ((newCapacity - 2147483639 | 0) > 0)
|
|
2470
|
+
newCapacity = minCapacity > 2147483639 ? 2147483647 : 2147483639;
|
|
2471
|
+
return newCapacity;
|
|
2472
|
+
};
|
|
2473
|
+
var Companion_instance_3;
|
|
2474
|
+
function Companion_getInstance_3() {
|
|
2475
|
+
return Companion_instance_3;
|
|
2476
|
+
}
|
|
2477
|
+
function Companion_4() {
|
|
2478
|
+
}
|
|
2479
|
+
protoOf(Companion_4).f1 = function (c) {
|
|
2480
|
+
var hashCode = 0;
|
|
2481
|
+
var _iterator__ex2g4s = c.f();
|
|
2482
|
+
while (_iterator__ex2g4s.g()) {
|
|
2483
|
+
var element = _iterator__ex2g4s.h();
|
|
2484
|
+
var tmp = hashCode;
|
|
2485
|
+
var tmp1_elvis_lhs = element == null ? null : hashCode_0(element);
|
|
2486
|
+
hashCode = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
2487
|
+
}
|
|
2488
|
+
return hashCode;
|
|
2489
|
+
};
|
|
2490
|
+
protoOf(Companion_4).e1 = function (c, other) {
|
|
2491
|
+
if (!(c.i() === other.i()))
|
|
2492
|
+
return false;
|
|
2493
|
+
return c.m(other);
|
|
2494
|
+
};
|
|
2495
|
+
var Companion_instance_4;
|
|
2496
|
+
function Companion_getInstance_4() {
|
|
2497
|
+
return Companion_instance_4;
|
|
2498
|
+
}
|
|
2499
|
+
function collectionToArrayCommonImpl(collection) {
|
|
2500
|
+
if (collection.k()) {
|
|
2501
|
+
// Inline function 'kotlin.emptyArray' call
|
|
2502
|
+
return [];
|
|
2503
|
+
}
|
|
2504
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
2505
|
+
var size = collection.i();
|
|
2506
|
+
var destination = Array(size);
|
|
2507
|
+
var iterator = collection.f();
|
|
2508
|
+
var index = 0;
|
|
2509
|
+
while (iterator.g()) {
|
|
2510
|
+
var _unary__edvuaz = index;
|
|
2511
|
+
index = _unary__edvuaz + 1 | 0;
|
|
2512
|
+
destination[_unary__edvuaz] = iterator.h();
|
|
2513
|
+
}
|
|
2514
|
+
return destination;
|
|
2515
|
+
}
|
|
2516
|
+
function EmptyIterator() {
|
|
2517
|
+
}
|
|
2518
|
+
protoOf(EmptyIterator).g = function () {
|
|
2519
|
+
return false;
|
|
2520
|
+
};
|
|
2521
|
+
protoOf(EmptyIterator).h = function () {
|
|
2522
|
+
throw NoSuchElementException_init_$Create$();
|
|
2523
|
+
};
|
|
2524
|
+
var EmptyIterator_instance;
|
|
2525
|
+
function EmptyIterator_getInstance() {
|
|
2526
|
+
return EmptyIterator_instance;
|
|
2527
|
+
}
|
|
2528
|
+
function emptySet() {
|
|
2529
|
+
return EmptySet_getInstance();
|
|
2530
|
+
}
|
|
2531
|
+
function hashSetOf(elements) {
|
|
2532
|
+
return toCollection(elements, HashSet_init_$Create$_0(mapCapacity(elements.length)));
|
|
2533
|
+
}
|
|
2534
|
+
function EmptySet() {
|
|
2535
|
+
EmptySet_instance = this;
|
|
2536
|
+
this.x3_1 = new Long(1993859828, 793161749);
|
|
2537
|
+
}
|
|
2538
|
+
protoOf(EmptySet).equals = function (other) {
|
|
2539
|
+
var tmp;
|
|
2540
|
+
if (!(other == null) ? isInterface(other, KtSet) : false) {
|
|
2541
|
+
tmp = other.k();
|
|
2542
|
+
} else {
|
|
2543
|
+
tmp = false;
|
|
2544
|
+
}
|
|
2545
|
+
return tmp;
|
|
2546
|
+
};
|
|
2547
|
+
protoOf(EmptySet).hashCode = function () {
|
|
2548
|
+
return 0;
|
|
2549
|
+
};
|
|
2550
|
+
protoOf(EmptySet).toString = function () {
|
|
2551
|
+
return '[]';
|
|
2552
|
+
};
|
|
2553
|
+
protoOf(EmptySet).i = function () {
|
|
2554
|
+
return 0;
|
|
2555
|
+
};
|
|
2556
|
+
protoOf(EmptySet).k = function () {
|
|
2557
|
+
return true;
|
|
2558
|
+
};
|
|
2559
|
+
protoOf(EmptySet).y3 = function (elements) {
|
|
2560
|
+
return elements.k();
|
|
2561
|
+
};
|
|
2562
|
+
protoOf(EmptySet).m = function (elements) {
|
|
2563
|
+
return this.y3(elements);
|
|
2564
|
+
};
|
|
2565
|
+
protoOf(EmptySet).f = function () {
|
|
2566
|
+
return EmptyIterator_instance;
|
|
2567
|
+
};
|
|
2568
|
+
var EmptySet_instance;
|
|
2569
|
+
function EmptySet_getInstance() {
|
|
2570
|
+
if (EmptySet_instance == null)
|
|
2571
|
+
new EmptySet();
|
|
2572
|
+
return EmptySet_instance;
|
|
2573
|
+
}
|
|
2574
|
+
function optimizeReadOnlySet(_this__u8e3s4) {
|
|
2575
|
+
switch (_this__u8e3s4.i()) {
|
|
2576
|
+
case 0:
|
|
2577
|
+
return emptySet();
|
|
2578
|
+
case 1:
|
|
2579
|
+
return setOf(_this__u8e3s4.f().h());
|
|
2580
|
+
default:
|
|
2581
|
+
return _this__u8e3s4;
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
function appendElement(_this__u8e3s4, element, transform) {
|
|
2585
|
+
if (!(transform == null))
|
|
2586
|
+
_this__u8e3s4.e(transform(element));
|
|
2587
|
+
else {
|
|
2588
|
+
if (element == null ? true : isCharSequence(element))
|
|
2589
|
+
_this__u8e3s4.e(element);
|
|
2590
|
+
else {
|
|
2591
|
+
if (element instanceof Char)
|
|
2592
|
+
_this__u8e3s4.y2(element.z3_1);
|
|
2593
|
+
else {
|
|
2594
|
+
_this__u8e3s4.e(toString_1(element));
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
function isBlank(_this__u8e3s4) {
|
|
2600
|
+
var tmp$ret$1;
|
|
2601
|
+
$l$block: {
|
|
2602
|
+
// Inline function 'kotlin.text.all' call
|
|
2603
|
+
var inductionVariable = 0;
|
|
2604
|
+
while (inductionVariable < charSequenceLength(_this__u8e3s4)) {
|
|
2605
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
2606
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2607
|
+
if (!isWhitespace(element)) {
|
|
2608
|
+
tmp$ret$1 = false;
|
|
2609
|
+
break $l$block;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
tmp$ret$1 = true;
|
|
2613
|
+
}
|
|
2614
|
+
return tmp$ret$1;
|
|
2615
|
+
}
|
|
2616
|
+
function trim(_this__u8e3s4) {
|
|
2617
|
+
// Inline function 'kotlin.text.trim' call
|
|
2618
|
+
var startIndex = 0;
|
|
2619
|
+
var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
2620
|
+
var startFound = false;
|
|
2621
|
+
$l$loop: while (startIndex <= endIndex) {
|
|
2622
|
+
var index = !startFound ? startIndex : endIndex;
|
|
2623
|
+
var p0 = charSequenceGet(_this__u8e3s4, index);
|
|
2624
|
+
var match = isWhitespace(p0);
|
|
2625
|
+
if (!startFound) {
|
|
2626
|
+
if (!match)
|
|
2627
|
+
startFound = true;
|
|
2628
|
+
else
|
|
2629
|
+
startIndex = startIndex + 1 | 0;
|
|
2630
|
+
} else {
|
|
2631
|
+
if (!match)
|
|
2632
|
+
break $l$loop;
|
|
2633
|
+
else
|
|
2634
|
+
endIndex = endIndex - 1 | 0;
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
return charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
|
|
2638
|
+
}
|
|
2639
|
+
//region block: post-declaration
|
|
2640
|
+
protoOf(InternalHashMap).a2 = containsAllEntries;
|
|
2641
|
+
//endregion
|
|
2642
|
+
//region block: init
|
|
2643
|
+
Companion_instance = new Companion();
|
|
2644
|
+
Unit_instance = new Unit();
|
|
2645
|
+
Companion_instance_1 = new Companion_1();
|
|
2646
|
+
Companion_instance_3 = new Companion_3();
|
|
2647
|
+
Companion_instance_4 = new Companion_4();
|
|
2648
|
+
EmptyIterator_instance = new EmptyIterator();
|
|
2649
|
+
//endregion
|
|
2650
|
+
//region block: exports
|
|
2651
|
+
_.$_$ = _.$_$ || {};
|
|
2652
|
+
_.$_$.a = VOID;
|
|
2653
|
+
_.$_$.b = Regex_init_$Create$;
|
|
2654
|
+
_.$_$.c = Unit_instance;
|
|
2655
|
+
_.$_$.d = defineProp;
|
|
2656
|
+
_.$_$.e = initMetadataForClass;
|
|
2657
|
+
_.$_$.f = initMetadataForObject;
|
|
2658
|
+
_.$_$.g = isCharSequence;
|
|
2659
|
+
_.$_$.h = protoOf;
|
|
2660
|
+
_.$_$.i = toString_1;
|
|
2661
|
+
_.$_$.j = isBlank;
|
|
2662
|
+
_.$_$.k = trim;
|
|
2663
|
+
_.$_$.l = Enum;
|
|
2664
|
+
_.$_$.m = THROW_CCE;
|
|
2665
|
+
_.$_$.n = THROW_IAE;
|
|
2666
|
+
_.$_$.o = noWhenBranchMatchedException;
|
|
2667
|
+
//endregion
|
|
2668
|
+
return _;
|
|
2669
|
+
}));
|
|
2670
|
+
|
|
2671
|
+
//# sourceMappingURL=kotlin-kotlin-stdlib.js.map
|