game_client_logic_deb 1.8.225 → 1.8.232
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/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +504 -504
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +967 -944
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10073 -9734
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +44 -14
- package/Logic_Debertz-game_client.js +2987 -2833
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +28 -28
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +7 -7
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +227 -227
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +156 -156
- package/raspberry-cardgame-lib-random.js +528 -534
- package/raspberry-cardgame-lib-random.js.map +1 -1
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -1102,34 +1102,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.m() - n | 0, 0));
|
|
1104
1104
|
}
|
|
1105
|
-
function take(_this__u8e3s4, n) {
|
|
1106
|
-
// Inline function 'kotlin.require' call
|
|
1107
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1108
|
-
if (!(n >= 0)) {
|
|
1109
|
-
// Inline function 'kotlin.collections.take.<anonymous>' call
|
|
1110
|
-
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1111
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1112
|
-
}
|
|
1113
|
-
if (n === 0)
|
|
1114
|
-
return emptyList();
|
|
1115
|
-
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1116
|
-
if (n >= _this__u8e3s4.m())
|
|
1117
|
-
return toList_0(_this__u8e3s4);
|
|
1118
|
-
if (n === 1)
|
|
1119
|
-
return listOf(first_1(_this__u8e3s4));
|
|
1120
|
-
}
|
|
1121
|
-
var count = 0;
|
|
1122
|
-
var list = ArrayList_init_$Create$_0(n);
|
|
1123
|
-
var tmp0_iterator = _this__u8e3s4.j();
|
|
1124
|
-
$l$loop: while (tmp0_iterator.k()) {
|
|
1125
|
-
var item = tmp0_iterator.l();
|
|
1126
|
-
list.e(item);
|
|
1127
|
-
count = count + 1 | 0;
|
|
1128
|
-
if (count === n)
|
|
1129
|
-
break $l$loop;
|
|
1130
|
-
}
|
|
1131
|
-
return optimizeReadOnlyList(list);
|
|
1132
|
-
}
|
|
1133
1105
|
function first_1(_this__u8e3s4) {
|
|
1134
1106
|
if (isInterface(_this__u8e3s4, KtList))
|
|
1135
1107
|
return first_0(_this__u8e3s4);
|
|
@@ -1179,6 +1151,34 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1179
1151
|
function filterNotNull_0(_this__u8e3s4) {
|
|
1180
1152
|
return filterNotNullTo_0(_this__u8e3s4, ArrayList_init_$Create$());
|
|
1181
1153
|
}
|
|
1154
|
+
function take(_this__u8e3s4, n) {
|
|
1155
|
+
// Inline function 'kotlin.require' call
|
|
1156
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1157
|
+
if (!(n >= 0)) {
|
|
1158
|
+
// Inline function 'kotlin.collections.take.<anonymous>' call
|
|
1159
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1160
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1161
|
+
}
|
|
1162
|
+
if (n === 0)
|
|
1163
|
+
return emptyList();
|
|
1164
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1165
|
+
if (n >= _this__u8e3s4.m())
|
|
1166
|
+
return toList_0(_this__u8e3s4);
|
|
1167
|
+
if (n === 1)
|
|
1168
|
+
return listOf(first_1(_this__u8e3s4));
|
|
1169
|
+
}
|
|
1170
|
+
var count = 0;
|
|
1171
|
+
var list = ArrayList_init_$Create$_0(n);
|
|
1172
|
+
var tmp0_iterator = _this__u8e3s4.j();
|
|
1173
|
+
$l$loop: while (tmp0_iterator.k()) {
|
|
1174
|
+
var item = tmp0_iterator.l();
|
|
1175
|
+
list.e(item);
|
|
1176
|
+
count = count + 1 | 0;
|
|
1177
|
+
if (count === n)
|
|
1178
|
+
break $l$loop;
|
|
1179
|
+
}
|
|
1180
|
+
return optimizeReadOnlyList(list);
|
|
1181
|
+
}
|
|
1182
1182
|
function filterNotNullTo_0(_this__u8e3s4, destination) {
|
|
1183
1183
|
var tmp0_iterator = _this__u8e3s4.j();
|
|
1184
1184
|
while (tmp0_iterator.k()) {
|