@cruglobal/godtools-shared 1.2.0-SNAPSHOT.1779 → 1.2.0-SNAPSHOT.1789
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/Kermit-kermit-core.js +36 -36
- package/Kermit-kermit.js +5 -5
- package/antlr-kotlin-antlr-kotlin-runtime.js +2924 -2924
- package/colormath-root-colormath.js +548 -548
- package/fluid-locale.js +125 -125
- package/kotlin-kotlin-stdlib.js +181 -181
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-base.js +289 -18
- package/kotlin-mpp-godtools-tool-parser-module-parser-base.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +387 -387
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2634 -2850
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-renderer-state.js +116 -116
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +69 -69
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2135 -2135
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -46,6 +46,11 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
46
46
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
+
if (typeof Math.log2 === 'undefined') {
|
|
50
|
+
Math.log2 = function (x) {
|
|
51
|
+
return Math.log(x) * Math.LOG2E;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
49
54
|
if (typeof Math.clz32 === 'undefined') {
|
|
50
55
|
Math.clz32 = function (log, LN2) {
|
|
51
56
|
return function (x) {
|
|
@@ -57,11 +62,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
57
62
|
};
|
|
58
63
|
}(Math.log, Math.LN2);
|
|
59
64
|
}
|
|
60
|
-
if (typeof Math.log2 === 'undefined') {
|
|
61
|
-
Math.log2 = function (x) {
|
|
62
|
-
return Math.log(x) * Math.LOG2E;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
65
|
if (typeof String.prototype.startsWith === 'undefined') {
|
|
66
66
|
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
67
67
|
position = position || 0;
|
|
@@ -100,17 +100,17 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
100
100
|
}
|
|
101
101
|
initMetadataForInterface(KtList, 'List', VOID, VOID, [Collection]);
|
|
102
102
|
initMetadataForInterface(Entry, 'Entry');
|
|
103
|
-
initMetadataForInterface(MutableEntry, 'MutableEntry', VOID, VOID, [Entry]);
|
|
104
103
|
initMetadataForCompanion(Companion_0);
|
|
105
|
-
function asJsReadonlySetView() {
|
|
106
|
-
return createJsReadonlySetViewFrom(this);
|
|
107
|
-
}
|
|
108
|
-
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
109
|
-
initMetadataForCompanion(Companion_1);
|
|
110
104
|
function asJsReadonlyMapView() {
|
|
111
105
|
return createJsReadonlyMapViewFrom(this);
|
|
112
106
|
}
|
|
113
107
|
initMetadataForInterface(KtMap, 'Map');
|
|
108
|
+
initMetadataForCompanion(Companion_1);
|
|
109
|
+
function asJsReadonlySetView() {
|
|
110
|
+
return createJsReadonlySetViewFrom(this);
|
|
111
|
+
}
|
|
112
|
+
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
113
|
+
initMetadataForInterface(MutableEntry, 'MutableEntry', VOID, VOID, [Entry]);
|
|
114
114
|
initMetadataForCompanion(Companion_2);
|
|
115
115
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
116
116
|
initMetadataForCompanion(Companion_3);
|
|
@@ -118,8 +118,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
118
118
|
initMetadataForInterface(FunctionAdapter, 'FunctionAdapter');
|
|
119
119
|
initMetadataForClass(arrayIterator$1);
|
|
120
120
|
initMetadataForClass(JsArrayView, 'JsArrayView', JsArrayView, Array);
|
|
121
|
-
initMetadataForClass(JsSetView, 'JsSetView', JsSetView, Set);
|
|
122
121
|
initMetadataForClass(JsMapView, 'JsMapView', JsMapView, Map);
|
|
122
|
+
initMetadataForClass(JsSetView, 'JsSetView', JsSetView, Set);
|
|
123
123
|
initMetadataForObject(Digit, 'Digit');
|
|
124
124
|
initMetadataForObject(Letter, 'Letter');
|
|
125
125
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
@@ -128,23 +128,23 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
128
128
|
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection]);
|
|
129
129
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
130
130
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
131
|
-
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
131
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtList, Collection]);
|
|
132
132
|
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList);
|
|
133
133
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
134
134
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMap]);
|
|
135
|
-
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
135
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, Collection, KtSet]);
|
|
136
136
|
initMetadataForCompanion(Companion_4);
|
|
137
|
-
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList,
|
|
137
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtList, Collection]);
|
|
138
138
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
|
|
139
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
139
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, KtSet, AbstractMutableSet]);
|
|
140
140
|
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, AbstractMutableCollection]);
|
|
141
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
141
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, KtSet, AbstractMutableSet]);
|
|
142
142
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
143
143
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
144
144
|
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
|
|
145
145
|
initMetadataForClass(HashMapValuesDefault$iterator$1);
|
|
146
146
|
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
|
|
147
|
-
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet,
|
|
147
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, Collection, KtSet]);
|
|
148
148
|
initMetadataForCompanion(Companion_5);
|
|
149
149
|
initMetadataForClass(Itr, 'Itr');
|
|
150
150
|
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
@@ -191,7 +191,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
191
191
|
initMetadataForObject(EmptyHolder, 'EmptyHolder');
|
|
192
192
|
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMap]);
|
|
193
193
|
initMetadataForObject(EmptyHolder_0, 'EmptyHolder');
|
|
194
|
-
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet,
|
|
194
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, Collection, KtSet]);
|
|
195
195
|
initMetadataForClass(BaseOutput, 'BaseOutput');
|
|
196
196
|
initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
|
|
197
197
|
initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
|
|
@@ -253,8 +253,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
253
253
|
initMetadataForCompanion(Companion_10);
|
|
254
254
|
initMetadataForClass(ArrayDeque, 'ArrayDeque', ArrayDeque_init_$Create$, AbstractMutableList);
|
|
255
255
|
initMetadataForObject(EmptyList, 'EmptyList', VOID, VOID, [KtList]);
|
|
256
|
-
initMetadataForClass(ArrayAsCollection, 'ArrayAsCollection', VOID, VOID, [Collection]);
|
|
257
256
|
initMetadataForObject(EmptyIterator, 'EmptyIterator');
|
|
257
|
+
initMetadataForClass(ArrayAsCollection, 'ArrayAsCollection', VOID, VOID, [Collection]);
|
|
258
258
|
initMetadataForClass(IndexedValue, 'IndexedValue');
|
|
259
259
|
initMetadataForObject(EmptyMap, 'EmptyMap', VOID, VOID, [KtMap]);
|
|
260
260
|
initMetadataForClass(IntIterator, 'IntIterator');
|
|
@@ -378,6 +378,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
378
378
|
}
|
|
379
379
|
function Number_0() {
|
|
380
380
|
}
|
|
381
|
+
function contains_0(_this__u8e3s4, element) {
|
|
382
|
+
return indexOf(_this__u8e3s4, element) >= 0;
|
|
383
|
+
}
|
|
381
384
|
function toSet(_this__u8e3s4) {
|
|
382
385
|
switch (_this__u8e3s4.length) {
|
|
383
386
|
case 0:
|
|
@@ -388,9 +391,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
388
391
|
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_0(mapCapacity(_this__u8e3s4.length)));
|
|
389
392
|
}
|
|
390
393
|
}
|
|
391
|
-
function contains_0(_this__u8e3s4, element) {
|
|
392
|
-
return indexOf(_this__u8e3s4, element) >= 0;
|
|
393
|
-
}
|
|
394
394
|
function indexOf(_this__u8e3s4, element) {
|
|
395
395
|
if (element == null) {
|
|
396
396
|
var inductionVariable = 0;
|
|
@@ -419,6 +419,19 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
419
419
|
}
|
|
420
420
|
return -1;
|
|
421
421
|
}
|
|
422
|
+
function toCollection(_this__u8e3s4, destination) {
|
|
423
|
+
var inductionVariable = 0;
|
|
424
|
+
var last = _this__u8e3s4.length;
|
|
425
|
+
while (inductionVariable < last) {
|
|
426
|
+
var item = _this__u8e3s4[inductionVariable];
|
|
427
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
428
|
+
destination.e(item);
|
|
429
|
+
}
|
|
430
|
+
return destination;
|
|
431
|
+
}
|
|
432
|
+
function get_lastIndex(_this__u8e3s4) {
|
|
433
|
+
return _this__u8e3s4.length - 1 | 0;
|
|
434
|
+
}
|
|
422
435
|
function lastIndexOf(_this__u8e3s4, element) {
|
|
423
436
|
if (element == null) {
|
|
424
437
|
var inductionVariable = _this__u8e3s4.length - 1 | 0;
|
|
@@ -445,19 +458,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
445
458
|
}
|
|
446
459
|
return -1;
|
|
447
460
|
}
|
|
448
|
-
function toCollection(_this__u8e3s4, destination) {
|
|
449
|
-
var inductionVariable = 0;
|
|
450
|
-
var last = _this__u8e3s4.length;
|
|
451
|
-
while (inductionVariable < last) {
|
|
452
|
-
var item = _this__u8e3s4[inductionVariable];
|
|
453
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
454
|
-
destination.e(item);
|
|
455
|
-
}
|
|
456
|
-
return destination;
|
|
457
|
-
}
|
|
458
|
-
function get_lastIndex(_this__u8e3s4) {
|
|
459
|
-
return _this__u8e3s4.length - 1 | 0;
|
|
460
|
-
}
|
|
461
461
|
function contains_1(_this__u8e3s4, element) {
|
|
462
462
|
return indexOf_0(_this__u8e3s4, element) >= 0;
|
|
463
463
|
}
|
|
@@ -474,15 +474,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
474
474
|
}
|
|
475
475
|
return tmp;
|
|
476
476
|
}
|
|
477
|
-
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
478
|
-
separator = separator === VOID ? ', ' : separator;
|
|
479
|
-
prefix = prefix === VOID ? '' : prefix;
|
|
480
|
-
postfix = postfix === VOID ? '' : postfix;
|
|
481
|
-
limit = limit === VOID ? -1 : limit;
|
|
482
|
-
truncated = truncated === VOID ? '...' : truncated;
|
|
483
|
-
transform = transform === VOID ? null : transform;
|
|
484
|
-
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
485
|
-
}
|
|
486
477
|
function indexOf_0(_this__u8e3s4, element) {
|
|
487
478
|
var inductionVariable = 0;
|
|
488
479
|
var last = _this__u8e3s4.length - 1 | 0;
|
|
@@ -497,6 +488,15 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
497
488
|
while (inductionVariable <= last);
|
|
498
489
|
return -1;
|
|
499
490
|
}
|
|
491
|
+
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
492
|
+
separator = separator === VOID ? ', ' : separator;
|
|
493
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
494
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
495
|
+
limit = limit === VOID ? -1 : limit;
|
|
496
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
497
|
+
transform = transform === VOID ? null : transform;
|
|
498
|
+
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
499
|
+
}
|
|
500
500
|
function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
501
501
|
separator = separator === VOID ? ', ' : separator;
|
|
502
502
|
prefix = prefix === VOID ? '' : prefix;
|
|
@@ -1072,10 +1072,10 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
function Collection() {
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function Entry() {
|
|
1076
1076
|
}
|
|
1077
|
-
protoOf(Companion_0).
|
|
1078
|
-
return
|
|
1077
|
+
protoOf(Companion_0).fromJsMap = function (map) {
|
|
1078
|
+
return createMapFrom(map);
|
|
1079
1079
|
};
|
|
1080
1080
|
function Companion_0() {
|
|
1081
1081
|
}
|
|
@@ -1083,12 +1083,10 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1083
1083
|
function Companion_getInstance_0() {
|
|
1084
1084
|
return Companion_instance_0;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1087
|
-
}
|
|
1088
|
-
function Entry() {
|
|
1086
|
+
function KtMap() {
|
|
1089
1087
|
}
|
|
1090
|
-
protoOf(Companion_1).
|
|
1091
|
-
return
|
|
1088
|
+
protoOf(Companion_1).fromJsSet = function (set) {
|
|
1089
|
+
return createSetFrom(set);
|
|
1092
1090
|
};
|
|
1093
1091
|
function Companion_1() {
|
|
1094
1092
|
}
|
|
@@ -1096,7 +1094,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1096
1094
|
function Companion_getInstance_1() {
|
|
1097
1095
|
return Companion_instance_1;
|
|
1098
1096
|
}
|
|
1099
|
-
function
|
|
1097
|
+
function KtSet() {
|
|
1098
|
+
}
|
|
1099
|
+
function MutableEntry() {
|
|
1100
1100
|
}
|
|
1101
1101
|
function Companion_2() {
|
|
1102
1102
|
}
|
|
@@ -1533,45 +1533,45 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1533
1533
|
function JsArrayView() {
|
|
1534
1534
|
Array.call(this);
|
|
1535
1535
|
}
|
|
1536
|
-
function createJsReadonlySetViewFrom(set) {
|
|
1537
|
-
var tmp = createJsReadonlySetViewFrom$lambda(set);
|
|
1538
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1539
|
-
var tmp_0 = UNSUPPORTED_OPERATION$ref_2();
|
|
1540
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1541
|
-
var tmp_1 = UNSUPPORTED_OPERATION$ref_3();
|
|
1542
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1543
|
-
var tmp_2 = UNSUPPORTED_OPERATION$ref_4();
|
|
1544
|
-
var tmp_3 = createJsReadonlySetViewFrom$lambda_0(set);
|
|
1545
|
-
var tmp_4 = createJsReadonlySetViewFrom$lambda_1(set);
|
|
1546
|
-
var tmp_5 = createJsReadonlySetViewFrom$lambda_2(set);
|
|
1547
|
-
return createJsSetViewWith(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, createJsReadonlySetViewFrom$lambda_3);
|
|
1548
|
-
}
|
|
1549
1536
|
function createJsReadonlyMapViewFrom(map) {
|
|
1550
1537
|
var tmp = createJsReadonlyMapViewFrom$lambda(map);
|
|
1551
1538
|
var tmp_0 = createJsReadonlyMapViewFrom$lambda_0(map);
|
|
1552
1539
|
var tmp_1 = createJsReadonlyMapViewFrom$lambda_1(map);
|
|
1553
1540
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1554
|
-
var tmp_2 = UNSUPPORTED_OPERATION$
|
|
1541
|
+
var tmp_2 = UNSUPPORTED_OPERATION$ref_2();
|
|
1555
1542
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1556
|
-
var tmp_3 = UNSUPPORTED_OPERATION$
|
|
1543
|
+
var tmp_3 = UNSUPPORTED_OPERATION$ref_3();
|
|
1557
1544
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1558
|
-
var tmp_4 = UNSUPPORTED_OPERATION$
|
|
1545
|
+
var tmp_4 = UNSUPPORTED_OPERATION$ref_4();
|
|
1559
1546
|
var tmp_5 = createJsReadonlyMapViewFrom$lambda_2(map);
|
|
1560
1547
|
var tmp_6 = createJsReadonlyMapViewFrom$lambda_3(map);
|
|
1561
1548
|
var tmp_7 = createJsReadonlyMapViewFrom$lambda_4(map);
|
|
1562
1549
|
return createJsMapViewWith(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, createJsReadonlyMapViewFrom$lambda_5);
|
|
1563
1550
|
}
|
|
1564
|
-
function
|
|
1551
|
+
function createJsReadonlySetViewFrom(set) {
|
|
1552
|
+
var tmp = createJsReadonlySetViewFrom$lambda(set);
|
|
1553
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1554
|
+
var tmp_0 = UNSUPPORTED_OPERATION$ref_5();
|
|
1555
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1556
|
+
var tmp_1 = UNSUPPORTED_OPERATION$ref_6();
|
|
1557
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1558
|
+
var tmp_2 = UNSUPPORTED_OPERATION$ref_7();
|
|
1559
|
+
var tmp_3 = createJsReadonlySetViewFrom$lambda_0(set);
|
|
1560
|
+
var tmp_4 = createJsReadonlySetViewFrom$lambda_1(set);
|
|
1561
|
+
var tmp_5 = createJsReadonlySetViewFrom$lambda_2(set);
|
|
1562
|
+
return createJsSetViewWith(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, createJsReadonlySetViewFrom$lambda_3);
|
|
1563
|
+
}
|
|
1564
|
+
function createJsMapViewWith(mapSize, mapGet, mapContains, mapPut, mapRemove, mapClear, keysIterator, valuesIterator, entriesIterator, forEach) {
|
|
1565
1565
|
// Inline function 'kotlin.also' call
|
|
1566
|
-
var this_0 = objectCreate(protoOf(
|
|
1567
|
-
this_0[Symbol.iterator] =
|
|
1568
|
-
defineProp(this_0, 'size',
|
|
1569
|
-
var
|
|
1570
|
-
return Object.assign(
|
|
1571
|
-
|
|
1566
|
+
var this_0 = objectCreate(protoOf(JsMapView));
|
|
1567
|
+
this_0[Symbol.iterator] = entriesIterator;
|
|
1568
|
+
defineProp(this_0, 'size', mapSize, VOID);
|
|
1569
|
+
var mapView = this_0;
|
|
1570
|
+
return Object.assign(mapView, {get: mapGet, set: function (key, value) {
|
|
1571
|
+
mapPut(key, value);
|
|
1572
1572
|
return this;
|
|
1573
|
-
}, 'delete':
|
|
1574
|
-
forEach(cb,
|
|
1573
|
+
}, 'delete': mapRemove, clear: mapClear, has: mapContains, keys: keysIterator, values: valuesIterator, entries: entriesIterator, forEach: function (cb, thisArg) {
|
|
1574
|
+
forEach(cb, mapView, thisArg);
|
|
1575
1575
|
}});
|
|
1576
1576
|
}
|
|
1577
1577
|
function createJsIteratorFrom(iterator, transform) {
|
|
@@ -1606,25 +1606,25 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1606
1606
|
result = iterator.next();
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function createJsSetViewWith(setSize, setAdd, setRemove, setClear, setContains, valuesIterator, entriesIterator, forEach) {
|
|
1610
1610
|
// Inline function 'kotlin.also' call
|
|
1611
|
-
var this_0 = objectCreate(protoOf(
|
|
1612
|
-
this_0[Symbol.iterator] =
|
|
1613
|
-
defineProp(this_0, 'size',
|
|
1614
|
-
var
|
|
1615
|
-
return Object.assign(
|
|
1616
|
-
|
|
1611
|
+
var this_0 = objectCreate(protoOf(JsSetView));
|
|
1612
|
+
this_0[Symbol.iterator] = valuesIterator;
|
|
1613
|
+
defineProp(this_0, 'size', setSize, VOID);
|
|
1614
|
+
var setView = this_0;
|
|
1615
|
+
return Object.assign(setView, {add: function (value) {
|
|
1616
|
+
setAdd(value);
|
|
1617
1617
|
return this;
|
|
1618
|
-
}, 'delete':
|
|
1619
|
-
forEach(cb,
|
|
1618
|
+
}, 'delete': setRemove, clear: setClear, has: setContains, keys: valuesIterator, values: valuesIterator, entries: entriesIterator, forEach: function (cb, thisArg) {
|
|
1619
|
+
forEach(cb, setView, thisArg);
|
|
1620
1620
|
}});
|
|
1621
1621
|
}
|
|
1622
|
-
function JsSetView() {
|
|
1623
|
-
Set.call(this);
|
|
1624
|
-
}
|
|
1625
1622
|
function JsMapView() {
|
|
1626
1623
|
Map.call(this);
|
|
1627
1624
|
}
|
|
1625
|
+
function JsSetView() {
|
|
1626
|
+
Set.call(this);
|
|
1627
|
+
}
|
|
1628
1628
|
function createListFrom(array) {
|
|
1629
1629
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1630
1630
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -1679,9 +1679,19 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1679
1679
|
l.callableName = 'UNSUPPORTED_OPERATION';
|
|
1680
1680
|
return l;
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function createJsReadonlyMapViewFrom$lambda($map) {
|
|
1683
1683
|
return function () {
|
|
1684
|
-
return $
|
|
1684
|
+
return $map.m();
|
|
1685
|
+
};
|
|
1686
|
+
}
|
|
1687
|
+
function createJsReadonlyMapViewFrom$lambda_0($map) {
|
|
1688
|
+
return function (k) {
|
|
1689
|
+
return $map.q1(k);
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
function createJsReadonlyMapViewFrom$lambda_1($map) {
|
|
1693
|
+
return function (k) {
|
|
1694
|
+
return $map.o1(k);
|
|
1685
1695
|
};
|
|
1686
1696
|
}
|
|
1687
1697
|
function UNSUPPORTED_OPERATION$ref_2() {
|
|
@@ -1708,45 +1718,35 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1708
1718
|
l.callableName = 'UNSUPPORTED_OPERATION';
|
|
1709
1719
|
return l;
|
|
1710
1720
|
}
|
|
1711
|
-
function
|
|
1712
|
-
return function (
|
|
1713
|
-
return $
|
|
1721
|
+
function createJsReadonlyMapViewFrom$lambda_2($map) {
|
|
1722
|
+
return function () {
|
|
1723
|
+
return createJsIteratorFrom($map.r1().j());
|
|
1714
1724
|
};
|
|
1715
1725
|
}
|
|
1716
|
-
function
|
|
1726
|
+
function createJsReadonlyMapViewFrom$lambda_3($map) {
|
|
1717
1727
|
return function () {
|
|
1718
|
-
return createJsIteratorFrom($
|
|
1728
|
+
return createJsIteratorFrom($map.s1().j());
|
|
1719
1729
|
};
|
|
1720
1730
|
}
|
|
1721
|
-
function
|
|
1731
|
+
function createJsReadonlyMapViewFrom$lambda$lambda(it) {
|
|
1722
1732
|
// Inline function 'kotlin.arrayOf' call
|
|
1723
1733
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1724
1734
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1725
|
-
return [it, it];
|
|
1735
|
+
return [it.m1(), it.n1()];
|
|
1726
1736
|
}
|
|
1727
|
-
function
|
|
1737
|
+
function createJsReadonlyMapViewFrom$lambda_4($map) {
|
|
1728
1738
|
return function () {
|
|
1729
|
-
var tmp = $
|
|
1730
|
-
return createJsIteratorFrom(tmp,
|
|
1739
|
+
var tmp = $map.t1().j();
|
|
1740
|
+
return createJsIteratorFrom(tmp, createJsReadonlyMapViewFrom$lambda$lambda);
|
|
1731
1741
|
};
|
|
1732
1742
|
}
|
|
1733
|
-
function
|
|
1734
|
-
forEach(callback,
|
|
1743
|
+
function createJsReadonlyMapViewFrom$lambda_5(callback, map, thisArg) {
|
|
1744
|
+
forEach(callback, map, thisArg);
|
|
1735
1745
|
return Unit_instance;
|
|
1736
1746
|
}
|
|
1737
|
-
function
|
|
1747
|
+
function createJsReadonlySetViewFrom$lambda($set) {
|
|
1738
1748
|
return function () {
|
|
1739
|
-
return $
|
|
1740
|
-
};
|
|
1741
|
-
}
|
|
1742
|
-
function createJsReadonlyMapViewFrom$lambda_0($map) {
|
|
1743
|
-
return function (k) {
|
|
1744
|
-
return $map.q1(k);
|
|
1745
|
-
};
|
|
1746
|
-
}
|
|
1747
|
-
function createJsReadonlyMapViewFrom$lambda_1($map) {
|
|
1748
|
-
return function (k) {
|
|
1749
|
-
return $map.o1(k);
|
|
1749
|
+
return $set.m();
|
|
1750
1750
|
};
|
|
1751
1751
|
}
|
|
1752
1752
|
function UNSUPPORTED_OPERATION$ref_5() {
|
|
@@ -1773,30 +1773,30 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1773
1773
|
l.callableName = 'UNSUPPORTED_OPERATION';
|
|
1774
1774
|
return l;
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1777
|
-
return function () {
|
|
1778
|
-
return
|
|
1776
|
+
function createJsReadonlySetViewFrom$lambda_0($set) {
|
|
1777
|
+
return function (v) {
|
|
1778
|
+
return $set.f1(v);
|
|
1779
1779
|
};
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function createJsReadonlySetViewFrom$lambda_1($set) {
|
|
1782
1782
|
return function () {
|
|
1783
|
-
return createJsIteratorFrom($
|
|
1783
|
+
return createJsIteratorFrom($set.j());
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function createJsReadonlySetViewFrom$lambda$lambda(it) {
|
|
1787
1787
|
// Inline function 'kotlin.arrayOf' call
|
|
1788
1788
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1789
1789
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1790
|
-
return [it
|
|
1790
|
+
return [it, it];
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function createJsReadonlySetViewFrom$lambda_2($set) {
|
|
1793
1793
|
return function () {
|
|
1794
|
-
var tmp = $
|
|
1795
|
-
return createJsIteratorFrom(tmp,
|
|
1794
|
+
var tmp = $set.j();
|
|
1795
|
+
return createJsIteratorFrom(tmp, createJsReadonlySetViewFrom$lambda$lambda);
|
|
1796
1796
|
};
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1799
|
-
forEach(callback,
|
|
1798
|
+
function createJsReadonlySetViewFrom$lambda_3(callback, set, thisArg) {
|
|
1799
|
+
forEach(callback, set, thisArg);
|
|
1800
1800
|
return Unit_instance;
|
|
1801
1801
|
}
|
|
1802
1802
|
function createJsIteratorFrom$lambda(it) {
|
|
@@ -7880,22 +7880,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
7880
7880
|
function listOfNotNull(element) {
|
|
7881
7881
|
return !(element == null) ? listOf(element) : emptyList();
|
|
7882
7882
|
}
|
|
7883
|
-
function optimizeReadOnlyList(_this__u8e3s4) {
|
|
7884
|
-
switch (_this__u8e3s4.m()) {
|
|
7885
|
-
case 0:
|
|
7886
|
-
return emptyList();
|
|
7887
|
-
case 1:
|
|
7888
|
-
return listOf(_this__u8e3s4.o(0));
|
|
7889
|
-
default:
|
|
7890
|
-
return _this__u8e3s4;
|
|
7891
|
-
}
|
|
7892
|
-
}
|
|
7893
|
-
function mutableListOf(elements) {
|
|
7894
|
-
return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
|
|
7895
|
-
}
|
|
7896
|
-
function get_lastIndex_0(_this__u8e3s4) {
|
|
7897
|
-
return _this__u8e3s4.m() - 1 | 0;
|
|
7898
|
-
}
|
|
7899
7883
|
function EmptyList() {
|
|
7900
7884
|
EmptyList_instance = this;
|
|
7901
7885
|
this.vd_1 = new Long(-1478467534, -1720727600);
|
|
@@ -7994,6 +7978,43 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
7994
7978
|
new EmptyList();
|
|
7995
7979
|
return EmptyList_instance;
|
|
7996
7980
|
}
|
|
7981
|
+
function EmptyIterator() {
|
|
7982
|
+
}
|
|
7983
|
+
protoOf(EmptyIterator).k = function () {
|
|
7984
|
+
return false;
|
|
7985
|
+
};
|
|
7986
|
+
protoOf(EmptyIterator).x3 = function () {
|
|
7987
|
+
return false;
|
|
7988
|
+
};
|
|
7989
|
+
protoOf(EmptyIterator).y3 = function () {
|
|
7990
|
+
return 0;
|
|
7991
|
+
};
|
|
7992
|
+
protoOf(EmptyIterator).l = function () {
|
|
7993
|
+
throw NoSuchElementException_init_$Create$();
|
|
7994
|
+
};
|
|
7995
|
+
protoOf(EmptyIterator).z3 = function () {
|
|
7996
|
+
throw NoSuchElementException_init_$Create$();
|
|
7997
|
+
};
|
|
7998
|
+
var EmptyIterator_instance;
|
|
7999
|
+
function EmptyIterator_getInstance() {
|
|
8000
|
+
return EmptyIterator_instance;
|
|
8001
|
+
}
|
|
8002
|
+
function optimizeReadOnlyList(_this__u8e3s4) {
|
|
8003
|
+
switch (_this__u8e3s4.m()) {
|
|
8004
|
+
case 0:
|
|
8005
|
+
return emptyList();
|
|
8006
|
+
case 1:
|
|
8007
|
+
return listOf(_this__u8e3s4.o(0));
|
|
8008
|
+
default:
|
|
8009
|
+
return _this__u8e3s4;
|
|
8010
|
+
}
|
|
8011
|
+
}
|
|
8012
|
+
function mutableListOf(elements) {
|
|
8013
|
+
return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
|
|
8014
|
+
}
|
|
8015
|
+
function get_lastIndex_0(_this__u8e3s4) {
|
|
8016
|
+
return _this__u8e3s4.m() - 1 | 0;
|
|
8017
|
+
}
|
|
7997
8018
|
function ArrayAsCollection(values, isVarargs) {
|
|
7998
8019
|
this.ae_1 = values;
|
|
7999
8020
|
this.be_1 = isVarargs;
|
|
@@ -8045,27 +8066,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8045
8066
|
protoOf(ArrayAsCollection).j = function () {
|
|
8046
8067
|
return arrayIterator(this.ae_1);
|
|
8047
8068
|
};
|
|
8048
|
-
function EmptyIterator() {
|
|
8049
|
-
}
|
|
8050
|
-
protoOf(EmptyIterator).k = function () {
|
|
8051
|
-
return false;
|
|
8052
|
-
};
|
|
8053
|
-
protoOf(EmptyIterator).x3 = function () {
|
|
8054
|
-
return false;
|
|
8055
|
-
};
|
|
8056
|
-
protoOf(EmptyIterator).y3 = function () {
|
|
8057
|
-
return 0;
|
|
8058
|
-
};
|
|
8059
|
-
protoOf(EmptyIterator).l = function () {
|
|
8060
|
-
throw NoSuchElementException_init_$Create$();
|
|
8061
|
-
};
|
|
8062
|
-
protoOf(EmptyIterator).z3 = function () {
|
|
8063
|
-
throw NoSuchElementException_init_$Create$();
|
|
8064
|
-
};
|
|
8065
|
-
var EmptyIterator_instance;
|
|
8066
|
-
function EmptyIterator_getInstance() {
|
|
8067
|
-
return EmptyIterator_instance;
|
|
8068
|
-
}
|
|
8069
8069
|
function arrayListOf(elements) {
|
|
8070
8070
|
return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
|
|
8071
8071
|
}
|
|
@@ -8421,19 +8421,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8421
8421
|
function emptySet() {
|
|
8422
8422
|
return EmptySet_getInstance();
|
|
8423
8423
|
}
|
|
8424
|
-
function optimizeReadOnlySet(_this__u8e3s4) {
|
|
8425
|
-
switch (_this__u8e3s4.m()) {
|
|
8426
|
-
case 0:
|
|
8427
|
-
return emptySet();
|
|
8428
|
-
case 1:
|
|
8429
|
-
return setOf(_this__u8e3s4.j().l());
|
|
8430
|
-
default:
|
|
8431
|
-
return _this__u8e3s4;
|
|
8432
|
-
}
|
|
8433
|
-
}
|
|
8434
|
-
function hashSetOf(elements) {
|
|
8435
|
-
return toCollection(elements, HashSet_init_$Create$_0(mapCapacity(elements.length)));
|
|
8436
|
-
}
|
|
8437
8424
|
function EmptySet() {
|
|
8438
8425
|
EmptySet_instance = this;
|
|
8439
8426
|
this.if_1 = new Long(1993859828, 793161749);
|
|
@@ -8488,6 +8475,19 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8488
8475
|
new EmptySet();
|
|
8489
8476
|
return EmptySet_instance;
|
|
8490
8477
|
}
|
|
8478
|
+
function optimizeReadOnlySet(_this__u8e3s4) {
|
|
8479
|
+
switch (_this__u8e3s4.m()) {
|
|
8480
|
+
case 0:
|
|
8481
|
+
return emptySet();
|
|
8482
|
+
case 1:
|
|
8483
|
+
return setOf(_this__u8e3s4.j().l());
|
|
8484
|
+
default:
|
|
8485
|
+
return _this__u8e3s4;
|
|
8486
|
+
}
|
|
8487
|
+
}
|
|
8488
|
+
function hashSetOf(elements) {
|
|
8489
|
+
return toCollection(elements, HashSet_init_$Create$_0(mapCapacity(elements.length)));
|
|
8490
|
+
}
|
|
8491
8491
|
function compareValues(a, b) {
|
|
8492
8492
|
if (a === b)
|
|
8493
8493
|
return 0;
|
|
@@ -10644,8 +10644,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
10644
10644
|
var $kotlin = _.kotlin || (_.kotlin = {});
|
|
10645
10645
|
var $kotlin$collections = $kotlin.collections || ($kotlin.collections = {});
|
|
10646
10646
|
defineProp($kotlin$collections, 'KtList', Companion_getInstance);
|
|
10647
|
-
defineProp($kotlin$collections, '
|
|
10648
|
-
defineProp($kotlin$collections, '
|
|
10647
|
+
defineProp($kotlin$collections, 'KtMap', Companion_getInstance_0);
|
|
10648
|
+
defineProp($kotlin$collections, 'KtSet', Companion_getInstance_1);
|
|
10649
10649
|
}
|
|
10650
10650
|
$jsExportAll$(_);
|
|
10651
10651
|
_.$jsExportAll$ = $jsExportAll$;
|