game_client_logic_deb 1.4.21 → 1.4.23
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/Kodein-kodein-di.js +5 -5
- package/{Kaverit-kaverit.js → KosiTypeSystem-kaverit.js} +3 -3
- package/Logic_Debertz-core.js +615 -579
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +5910 -5910
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +3 -3
- package/Logic_Debertz-game_client.js +2183 -2183
- package/package.json +1 -1
- /package/{Kaverit-kaverit.js.map → KosiTypeSystem-kaverit.js.map} +0 -0
package/Logic_Debertz-core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './kotlinx-serialization-kotlinx-serialization-core-js-ir.js', './Kotlin-DateTime-library-kotlinx-datetime-js-ir.js', './kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js', './uuid-js-ir.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './kotlinx-serialization-kotlinx-serialization-core-js-ir.js', './Kotlin-DateTime-library-kotlinx-datetime-js-ir.js', './kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js', './uuid-js-ir.js', './KosiTypeSystem-kaverit.js', './Kodein-kodein-di.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlinx-serialization-kotlinx-serialization-core-js-ir.js'), require('./Kotlin-DateTime-library-kotlinx-datetime-js-ir.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./uuid-js-ir.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlinx-serialization-kotlinx-serialization-core-js-ir.js'), require('./Kotlin-DateTime-library-kotlinx-datetime-js-ir.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./uuid-js-ir.js'), require('./KosiTypeSystem-kaverit.js'), require('./Kodein-kodein-di.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'Logic_Debertz-core'.");
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
if (typeof this['uuid-js-ir'] === 'undefined') {
|
|
20
20
|
throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'uuid-js-ir' was not found. Please, check whether 'uuid-js-ir' is loaded prior to 'Logic_Debertz-core'.");
|
|
21
21
|
}
|
|
22
|
-
if (typeof this['
|
|
23
|
-
throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency '
|
|
22
|
+
if (typeof this['KosiTypeSystem-kaverit'] === 'undefined') {
|
|
23
|
+
throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'KosiTypeSystem-kaverit' was not found. Please, check whether 'KosiTypeSystem-kaverit' is loaded prior to 'Logic_Debertz-core'.");
|
|
24
24
|
}
|
|
25
25
|
if (typeof this['Kodein-kodein-di'] === 'undefined') {
|
|
26
26
|
throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'Kodein-kodein-di' was not found. Please, check whether 'Kodein-kodein-di' is loaded prior to 'Logic_Debertz-core'.");
|
|
27
27
|
}
|
|
28
|
-
root['Logic_Debertz-core'] = factory(typeof this['Logic_Debertz-core'] === 'undefined' ? {} : this['Logic_Debertz-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlinx-serialization-kotlinx-serialization-core-js-ir'], this['Kotlin-DateTime-library-kotlinx-datetime-js-ir'], this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'], this['uuid-js-ir'], this['
|
|
28
|
+
root['Logic_Debertz-core'] = factory(typeof this['Logic_Debertz-core'] === 'undefined' ? {} : this['Logic_Debertz-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlinx-serialization-kotlinx-serialization-core-js-ir'], this['Kotlin-DateTime-library-kotlinx-datetime-js-ir'], this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'], this['uuid-js-ir'], this['KosiTypeSystem-kaverit'], this['Kodein-kodein-di']);
|
|
29
29
|
}
|
|
30
30
|
}(this, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_org_kodein_type_kaverit, kotlin_org_kodein_di_kodein_di) {
|
|
31
31
|
'use strict';
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
var toInstant = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.c;
|
|
68
68
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
69
69
|
var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
70
|
+
var Companion_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
70
71
|
var ensureNotNull = kotlin_kotlin.$_$.oc;
|
|
71
72
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
72
73
|
var Comparator = kotlin_kotlin.$_$.kb;
|
|
@@ -114,18 +115,18 @@
|
|
|
114
115
|
//region block: pre-declaration
|
|
115
116
|
setMetadataFor(GameEngineConfig, 'GameEngineConfig', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
116
117
|
setMetadataFor(Companion, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
117
|
-
setMetadataFor(ContinueGameReason, 'ContinueGameReason', classMeta, undefined, undefined, undefined, {0:
|
|
118
|
+
setMetadataFor(ContinueGameReason, 'ContinueGameReason', classMeta, undefined, undefined, undefined, {0: Companion_getInstance_0}, []);
|
|
118
119
|
setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
119
120
|
setMetadataFor($serializer, '$serializer', objectMeta, undefined, [GeneratedSerializer], undefined, undefined, []);
|
|
120
121
|
setMetadataFor(PlayerReturnsReason, 'PlayerReturnsReason', classMeta, ContinueGameReason, undefined, undefined, {0: $serializer_getInstance}, []);
|
|
121
122
|
setMetadataFor(RestartGameReason, 'RestartGameReason', objectMeta, undefined, [SerializerFactory], undefined, {0: RestartGameReason_getInstance}, []);
|
|
122
123
|
setMetadataFor(Companion_1, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
123
|
-
setMetadataFor(TerminationGameReason, 'TerminationGameReason', classMeta, undefined, undefined, undefined, {0:
|
|
124
|
+
setMetadataFor(TerminationGameReason, 'TerminationGameReason', classMeta, undefined, undefined, undefined, {0: Companion_getInstance_2}, []);
|
|
124
125
|
setMetadataFor(Companion_2, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
125
126
|
setMetadataFor($serializer_0, '$serializer', objectMeta, undefined, [GeneratedSerializer], undefined, undefined, []);
|
|
126
127
|
setMetadataFor(GameErrorReason, 'GameErrorReason', classMeta, TerminationGameReason, undefined, undefined, {0: $serializer_getInstance_0}, []);
|
|
127
128
|
setMetadataFor(Companion_3, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
128
|
-
setMetadataFor(Reason, 'Reason', classMeta, Enum, undefined, undefined, {0:
|
|
129
|
+
setMetadataFor(Reason, 'Reason', classMeta, Enum, undefined, undefined, {0: Companion_getInstance_4}, []);
|
|
129
130
|
setMetadataFor(Companion_4, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
130
131
|
setMetadataFor($serializer_1, '$serializer', objectMeta, undefined, [GeneratedSerializer], undefined, undefined, []);
|
|
131
132
|
setMetadataFor(GameFinishedReason, 'GameFinishedReason', classMeta, TerminationGameReason, undefined, undefined, {0: $serializer_getInstance_1}, []);
|
|
@@ -145,9 +146,9 @@
|
|
|
145
146
|
setMetadataFor(PlayerIdContract, 'PlayerIdContract', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
146
147
|
setMetadataFor(GameUserInfo, 'GameUserInfo', classMeta, undefined, [PlayerIdContract], undefined, undefined, []);
|
|
147
148
|
setMetadataFor(Companion_8, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
148
|
-
setMetadataFor(PlayerConnectionState, 'PlayerConnectionState', classMeta, Enum, undefined, undefined, {0:
|
|
149
|
+
setMetadataFor(PlayerConnectionState, 'PlayerConnectionState', classMeta, Enum, undefined, undefined, {0: Companion_getInstance_9}, []);
|
|
149
150
|
setMetadataFor(Companion_9, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
150
|
-
setMetadataFor(PlayerWaitingState, 'PlayerWaitingState', classMeta, Enum, undefined, undefined, {0:
|
|
151
|
+
setMetadataFor(PlayerWaitingState, 'PlayerWaitingState', classMeta, Enum, undefined, undefined, {0: Companion_getInstance_10}, []);
|
|
151
152
|
setMetadataFor(Companion_10, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
|
|
152
153
|
setMetadataFor(PlayerState, 'PlayerState', classMeta, undefined, undefined, undefined, undefined, []);
|
|
153
154
|
setMetadataFor(Team, 'Team', classMeta, undefined, undefined, undefined, undefined, []);
|
|
@@ -173,17 +174,17 @@
|
|
|
173
174
|
setMetadataFor(GameCardWIthPlayerId, 'GameCardWIthPlayerId', classMeta, undefined, [PlayerIdContract], undefined, undefined, []);
|
|
174
175
|
setMetadataFor(ProcessingCard, 'ProcessingCard', classMeta, undefined, undefined, undefined, undefined, []);
|
|
175
176
|
setMetadataFor(Companion_17, 'Companion', objectMeta, undefined, [SerializerFactory], undefined, undefined, []);
|
|
176
|
-
setMetadataFor(Suit, 'Suit', classMeta, Enum, undefined, undefined, {0:
|
|
177
|
+
setMetadataFor(Suit, 'Suit', classMeta, Enum, undefined, undefined, {0: Companion_getInstance_18}, []);
|
|
177
178
|
setMetadataFor(_no_name_provided__qut3iv, undefined, classMeta, AbstractCoroutineContextElement, [AbstractCoroutineContextElement, Element], undefined, undefined, []);
|
|
178
179
|
function launchWorker$default(context, block, $mask0, $handler) {
|
|
179
180
|
if (!(($mask0 & 1) === 0))
|
|
180
|
-
context = this.
|
|
181
|
-
return $handler == null ? this.
|
|
181
|
+
context = this.w2h();
|
|
182
|
+
return $handler == null ? this.z2h(context, block) : $handler(context, block);
|
|
182
183
|
}
|
|
183
184
|
function launchStore$default(context, block, $mask0, $handler) {
|
|
184
185
|
if (!(($mask0 & 1) === 0))
|
|
185
|
-
context = this.
|
|
186
|
-
return $handler == null ? this.
|
|
186
|
+
context = this.w2h();
|
|
187
|
+
return $handler == null ? this.x2h(context, block) : $handler(context, block);
|
|
187
188
|
}
|
|
188
189
|
setMetadataFor(AsyncProvider, 'AsyncProvider', interfaceMeta, undefined, undefined, undefined, undefined, []);
|
|
189
190
|
setMetadataFor(AsyncProviderImpl, 'AsyncProviderImpl', classMeta, undefined, [AsyncProvider], undefined, undefined, []);
|
|
@@ -243,7 +244,7 @@
|
|
|
243
244
|
payload = null;
|
|
244
245
|
var tmp;
|
|
245
246
|
if ($handler == null) {
|
|
246
|
-
this.
|
|
247
|
+
this.o2l(tag, message, payload);
|
|
247
248
|
tmp = Unit_getInstance();
|
|
248
249
|
} else {
|
|
249
250
|
tmp = $handler(tag, message, payload);
|
|
@@ -261,7 +262,7 @@
|
|
|
261
262
|
payload = null;
|
|
262
263
|
var tmp;
|
|
263
264
|
if ($handler == null) {
|
|
264
|
-
this.
|
|
265
|
+
this.q2l(tag, message, exception, payload);
|
|
265
266
|
tmp = Unit_getInstance();
|
|
266
267
|
} else {
|
|
267
268
|
tmp = $handler(tag, message, exception, payload);
|
|
@@ -275,7 +276,7 @@
|
|
|
275
276
|
payload = null;
|
|
276
277
|
var tmp;
|
|
277
278
|
if ($handler == null) {
|
|
278
|
-
this.
|
|
279
|
+
this.r2l(tag, message, payload);
|
|
279
280
|
tmp = Unit_getInstance();
|
|
280
281
|
} else {
|
|
281
282
|
tmp = $handler(tag, message, payload);
|
|
@@ -291,7 +292,7 @@
|
|
|
291
292
|
//endregion
|
|
292
293
|
function GameEngineConfig() {
|
|
293
294
|
GameEngineConfig_instance = this;
|
|
294
|
-
this.version = '1.4.
|
|
295
|
+
this.version = '1.4.23';
|
|
295
296
|
}
|
|
296
297
|
GameEngineConfig.prototype.f2c = function () {
|
|
297
298
|
return this.version;
|
|
@@ -350,7 +351,7 @@
|
|
|
350
351
|
return this.l1w();
|
|
351
352
|
};
|
|
352
353
|
var Companion_instance;
|
|
353
|
-
function
|
|
354
|
+
function Companion_getInstance_0() {
|
|
354
355
|
if (Companion_instance == null)
|
|
355
356
|
new Companion();
|
|
356
357
|
return Companion_instance;
|
|
@@ -359,13 +360,13 @@
|
|
|
359
360
|
return $this;
|
|
360
361
|
}
|
|
361
362
|
function ContinueGameReason() {
|
|
362
|
-
|
|
363
|
+
Companion_getInstance_0();
|
|
363
364
|
}
|
|
364
365
|
function Companion_0() {
|
|
365
366
|
Companion_instance_0 = this;
|
|
366
367
|
}
|
|
367
368
|
var Companion_instance_0;
|
|
368
|
-
function
|
|
369
|
+
function Companion_getInstance_1() {
|
|
369
370
|
if (Companion_instance_0 == null)
|
|
370
371
|
new Companion_0();
|
|
371
372
|
return Companion_instance_0;
|
|
@@ -447,7 +448,7 @@
|
|
|
447
448
|
return PlayerReturnsReason_init_$Init$(seen1, playerId, serializationConstructorMarker, Object.create(PlayerReturnsReason.prototype));
|
|
448
449
|
}
|
|
449
450
|
function PlayerReturnsReason(playerId) {
|
|
450
|
-
|
|
451
|
+
Companion_getInstance_1();
|
|
451
452
|
ContinueGameReason.call(this);
|
|
452
453
|
this.j2c_1 = playerId;
|
|
453
454
|
}
|
|
@@ -575,7 +576,7 @@
|
|
|
575
576
|
return this.serializer();
|
|
576
577
|
};
|
|
577
578
|
var Companion_instance_1;
|
|
578
|
-
function
|
|
579
|
+
function Companion_getInstance_2() {
|
|
579
580
|
if (Companion_instance_1 == null)
|
|
580
581
|
new Companion_1();
|
|
581
582
|
return Companion_instance_1;
|
|
@@ -587,13 +588,13 @@
|
|
|
587
588
|
return TerminationGameReason_init_$Init$(seen1, serializationConstructorMarker, Object.create(TerminationGameReason.prototype));
|
|
588
589
|
}
|
|
589
590
|
function TerminationGameReason() {
|
|
590
|
-
|
|
591
|
+
Companion_getInstance_2();
|
|
591
592
|
}
|
|
592
593
|
function Companion_2() {
|
|
593
594
|
Companion_instance_2 = this;
|
|
594
595
|
}
|
|
595
596
|
var Companion_instance_2;
|
|
596
|
-
function
|
|
597
|
+
function Companion_getInstance_3() {
|
|
597
598
|
if (Companion_instance_2 == null)
|
|
598
599
|
new Companion_2();
|
|
599
600
|
return Companion_instance_2;
|
|
@@ -675,7 +676,7 @@
|
|
|
675
676
|
return GameErrorReason_init_$Init$(seen1, reason, serializationConstructorMarker, Object.create(GameErrorReason.prototype));
|
|
676
677
|
}
|
|
677
678
|
function GameErrorReason(reason) {
|
|
678
|
-
|
|
679
|
+
Companion_getInstance_3();
|
|
679
680
|
TerminationGameReason.call(this);
|
|
680
681
|
this.o2c_1 = reason;
|
|
681
682
|
}
|
|
@@ -715,7 +716,7 @@
|
|
|
715
716
|
return this.l1w();
|
|
716
717
|
};
|
|
717
718
|
var Companion_instance_3;
|
|
718
|
-
function
|
|
719
|
+
function Companion_getInstance_4() {
|
|
719
720
|
Reason_initEntries();
|
|
720
721
|
if (Companion_instance_3 == null)
|
|
721
722
|
new Companion_3();
|
|
@@ -733,7 +734,7 @@
|
|
|
733
734
|
Reason_PLAYER_DELETED_instance = new Reason('PLAYER_DELETED', 1);
|
|
734
735
|
Reason_NO_ACTIVE_PLAYERS_instance = new Reason('NO_ACTIVE_PLAYERS', 2);
|
|
735
736
|
Reason_GAME_NOT_EXISTS_instance = new Reason('GAME_NOT_EXISTS', 3);
|
|
736
|
-
|
|
737
|
+
Companion_getInstance_4();
|
|
737
738
|
}
|
|
738
739
|
function Reason(name, ordinal) {
|
|
739
740
|
Enum.call(this, name, ordinal);
|
|
@@ -742,7 +743,7 @@
|
|
|
742
743
|
Companion_instance_4 = this;
|
|
743
744
|
}
|
|
744
745
|
var Companion_instance_4;
|
|
745
|
-
function
|
|
746
|
+
function Companion_getInstance_5() {
|
|
746
747
|
if (Companion_instance_4 == null)
|
|
747
748
|
new Companion_4();
|
|
748
749
|
return Companion_instance_4;
|
|
@@ -759,7 +760,7 @@
|
|
|
759
760
|
$serializer_1.prototype.q1k = function () {
|
|
760
761
|
var tmp$ret$2;
|
|
761
762
|
// Inline function 'kotlin.arrayOf' call
|
|
762
|
-
var tmp0_arrayOf = [get_nullable(
|
|
763
|
+
var tmp0_arrayOf = [get_nullable(Companion_getInstance_4().l1w())];
|
|
763
764
|
var tmp$ret$1;
|
|
764
765
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
765
766
|
var tmp$ret$0;
|
|
@@ -777,7 +778,7 @@
|
|
|
777
778
|
var tmp4_local0 = null;
|
|
778
779
|
var tmp5_input = decoder.w1c(tmp0_desc);
|
|
779
780
|
if (tmp5_input.m1d()) {
|
|
780
|
-
tmp4_local0 = tmp5_input.k1d(tmp0_desc, 0,
|
|
781
|
+
tmp4_local0 = tmp5_input.k1d(tmp0_desc, 0, Companion_getInstance_4().l1w(), tmp4_local0);
|
|
781
782
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
782
783
|
} else
|
|
783
784
|
while (tmp1_flag) {
|
|
@@ -787,7 +788,7 @@
|
|
|
787
788
|
tmp1_flag = false;
|
|
788
789
|
break;
|
|
789
790
|
case 0:
|
|
790
|
-
tmp4_local0 = tmp5_input.k1d(tmp0_desc, 0,
|
|
791
|
+
tmp4_local0 = tmp5_input.k1d(tmp0_desc, 0, Companion_getInstance_4().l1w(), tmp4_local0);
|
|
791
792
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
792
793
|
break;
|
|
793
794
|
default:
|
|
@@ -801,7 +802,7 @@
|
|
|
801
802
|
var tmp0_desc = this.q2c_1;
|
|
802
803
|
var tmp1_output = encoder.w1c(tmp0_desc);
|
|
803
804
|
if (tmp1_output.t1e(tmp0_desc, 0) ? true : !(value.s2c_1 == null)) {
|
|
804
|
-
tmp1_output.p1e(tmp0_desc, 0,
|
|
805
|
+
tmp1_output.p1e(tmp0_desc, 0, Companion_getInstance_4().l1w(), value.s2c_1);
|
|
805
806
|
}
|
|
806
807
|
tmp1_output.x1c(tmp0_desc);
|
|
807
808
|
};
|
|
@@ -845,7 +846,7 @@
|
|
|
845
846
|
return Reason_GAME_NOT_EXISTS_instance;
|
|
846
847
|
}
|
|
847
848
|
function GameFinishedReason(reason) {
|
|
848
|
-
|
|
849
|
+
Companion_getInstance_5();
|
|
849
850
|
TerminationGameReason.call(this);
|
|
850
851
|
this.s2c_1 = reason;
|
|
851
852
|
}
|
|
@@ -869,7 +870,7 @@
|
|
|
869
870
|
Companion_instance_5 = this;
|
|
870
871
|
}
|
|
871
872
|
var Companion_instance_5;
|
|
872
|
-
function
|
|
873
|
+
function Companion_getInstance_6() {
|
|
873
874
|
if (Companion_instance_5 == null)
|
|
874
875
|
new Companion_5();
|
|
875
876
|
return Companion_instance_5;
|
|
@@ -951,7 +952,7 @@
|
|
|
951
952
|
return PlayerExitReason_init_$Init$(seen1, playerId, serializationConstructorMarker, Object.create(PlayerExitReason.prototype));
|
|
952
953
|
}
|
|
953
954
|
function PlayerExitReason(playerId) {
|
|
954
|
-
|
|
955
|
+
Companion_getInstance_6();
|
|
955
956
|
TerminationGameReason.call(this);
|
|
956
957
|
this.v2c_1 = playerId;
|
|
957
958
|
}
|
|
@@ -978,7 +979,7 @@
|
|
|
978
979
|
Companion_instance_6 = this;
|
|
979
980
|
}
|
|
980
981
|
var Companion_instance_6;
|
|
981
|
-
function
|
|
982
|
+
function Companion_getInstance_7() {
|
|
982
983
|
if (Companion_instance_6 == null)
|
|
983
984
|
new Companion_6();
|
|
984
985
|
return Companion_instance_6;
|
|
@@ -1070,7 +1071,7 @@
|
|
|
1070
1071
|
return PlayerLostConnectionReason_init_$Init$(seen1, playerId, tag, serializationConstructorMarker, Object.create(PlayerLostConnectionReason.prototype));
|
|
1071
1072
|
}
|
|
1072
1073
|
function PlayerLostConnectionReason(playerId, tag) {
|
|
1073
|
-
|
|
1074
|
+
Companion_getInstance_7();
|
|
1074
1075
|
TerminationGameReason.call(this);
|
|
1075
1076
|
this.z2c_1 = playerId;
|
|
1076
1077
|
this.a2d_1 = tag;
|
|
@@ -1102,7 +1103,7 @@
|
|
|
1102
1103
|
Companion_instance_7 = this;
|
|
1103
1104
|
}
|
|
1104
1105
|
var Companion_instance_7;
|
|
1105
|
-
function
|
|
1106
|
+
function Companion_getInstance_8() {
|
|
1106
1107
|
if (Companion_instance_7 == null)
|
|
1107
1108
|
new Companion_7();
|
|
1108
1109
|
return Companion_instance_7;
|
|
@@ -1194,7 +1195,7 @@
|
|
|
1194
1195
|
return PlayerTimeoutReason_init_$Init$(seen1, playerId, tag, serializationConstructorMarker, Object.create(PlayerTimeoutReason.prototype));
|
|
1195
1196
|
}
|
|
1196
1197
|
function PlayerTimeoutReason(playerId, tag) {
|
|
1197
|
-
|
|
1198
|
+
Companion_getInstance_8();
|
|
1198
1199
|
TerminationGameReason.call(this);
|
|
1199
1200
|
this.d2d_1 = playerId;
|
|
1200
1201
|
this.e2d_1 = tag;
|
|
@@ -1503,7 +1504,7 @@
|
|
|
1503
1504
|
}
|
|
1504
1505
|
function playerTurnPredicate$lambda(p1) {
|
|
1505
1506
|
init_properties_Player_kt_txblev();
|
|
1506
|
-
return p1.xi().
|
|
1507
|
+
return p1.xi().v2d() ? true : p1.xi().u2d();
|
|
1507
1508
|
}
|
|
1508
1509
|
var properties_initialized_Player_kt_56shkt;
|
|
1509
1510
|
function init_properties_Player_kt_txblev() {
|
|
@@ -1527,16 +1528,16 @@
|
|
|
1527
1528
|
Companion_instance_8 = this;
|
|
1528
1529
|
var tmp = this;
|
|
1529
1530
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1530
|
-
tmp.
|
|
1531
|
+
tmp.w2d_1 = lazy(tmp_0, PlayerConnectionState$Companion$$cachedSerializer$delegate$_anonymous__bycx8c);
|
|
1531
1532
|
}
|
|
1532
1533
|
Companion_8.prototype.serializer = function () {
|
|
1533
|
-
return this.
|
|
1534
|
+
return this.w2d_1.j1();
|
|
1534
1535
|
};
|
|
1535
1536
|
Companion_8.prototype.b1l = function (typeParamsSerializers) {
|
|
1536
1537
|
return this.serializer();
|
|
1537
1538
|
};
|
|
1538
1539
|
var Companion_instance_8;
|
|
1539
|
-
function
|
|
1540
|
+
function Companion_getInstance_9() {
|
|
1540
1541
|
PlayerConnectionState_initEntries();
|
|
1541
1542
|
if (Companion_instance_8 == null)
|
|
1542
1543
|
new Companion_8();
|
|
@@ -1576,66 +1577,66 @@
|
|
|
1576
1577
|
PlayerConnectionState_LEFT_instance = new PlayerConnectionState('LEFT', 3);
|
|
1577
1578
|
PlayerConnectionState_DISCONNECTING_instance = new PlayerConnectionState('DISCONNECTING', 4);
|
|
1578
1579
|
PlayerConnectionState_DELETED_instance = new PlayerConnectionState('DELETED', 5);
|
|
1579
|
-
|
|
1580
|
+
Companion_getInstance_9();
|
|
1580
1581
|
}
|
|
1581
1582
|
function PlayerConnectionState(name, ordinal) {
|
|
1582
1583
|
Enum.call(this, name, ordinal);
|
|
1583
1584
|
}
|
|
1584
|
-
PlayerConnectionState.prototype.
|
|
1585
|
+
PlayerConnectionState.prototype.z2d = function () {
|
|
1585
1586
|
return this.equals(PlayerConnectionState_LIVE_getInstance());
|
|
1586
1587
|
};
|
|
1587
|
-
PlayerConnectionState.prototype.
|
|
1588
|
+
PlayerConnectionState.prototype.a2e = function () {
|
|
1588
1589
|
return this.equals(PlayerConnectionState_TIMEOUT_getInstance());
|
|
1589
1590
|
};
|
|
1590
|
-
PlayerConnectionState.prototype.
|
|
1591
|
+
PlayerConnectionState.prototype.b2e = function () {
|
|
1591
1592
|
return this.equals(PlayerConnectionState_LOST_CONNECTION_getInstance());
|
|
1592
1593
|
};
|
|
1593
|
-
PlayerConnectionState.prototype.
|
|
1594
|
+
PlayerConnectionState.prototype.c2e = function () {
|
|
1594
1595
|
return this.equals(PlayerConnectionState_LEFT_getInstance());
|
|
1595
1596
|
};
|
|
1596
|
-
PlayerConnectionState.prototype.
|
|
1597
|
+
PlayerConnectionState.prototype.d2e = function () {
|
|
1597
1598
|
return this.equals(PlayerConnectionState_DELETED_getInstance());
|
|
1598
1599
|
};
|
|
1599
|
-
PlayerConnectionState.prototype.
|
|
1600
|
+
PlayerConnectionState.prototype.e2e = function () {
|
|
1600
1601
|
return this.equals(PlayerConnectionState_DISCONNECTING_getInstance());
|
|
1601
1602
|
};
|
|
1602
|
-
PlayerConnectionState.prototype.
|
|
1603
|
+
PlayerConnectionState.prototype.f2e = function () {
|
|
1603
1604
|
return ((this.isTimeOut ? true : this.isLostConnection) ? true : this.isLeft) ? true : this.isDeleted;
|
|
1604
1605
|
};
|
|
1605
|
-
PlayerConnectionState.prototype.
|
|
1606
|
+
PlayerConnectionState.prototype.g2e = function () {
|
|
1606
1607
|
return (this.isTimeOut ? true : this.isLostConnection) ? true : this.isLeft;
|
|
1607
1608
|
};
|
|
1608
1609
|
Object.defineProperty(PlayerConnectionState.prototype, 'isLive', {
|
|
1609
1610
|
configurable: true,
|
|
1610
|
-
get: PlayerConnectionState.prototype.
|
|
1611
|
+
get: PlayerConnectionState.prototype.z2d
|
|
1611
1612
|
});
|
|
1612
1613
|
Object.defineProperty(PlayerConnectionState.prototype, 'isTimeOut', {
|
|
1613
1614
|
configurable: true,
|
|
1614
|
-
get: PlayerConnectionState.prototype.
|
|
1615
|
+
get: PlayerConnectionState.prototype.a2e
|
|
1615
1616
|
});
|
|
1616
1617
|
Object.defineProperty(PlayerConnectionState.prototype, 'isLostConnection', {
|
|
1617
1618
|
configurable: true,
|
|
1618
|
-
get: PlayerConnectionState.prototype.
|
|
1619
|
+
get: PlayerConnectionState.prototype.b2e
|
|
1619
1620
|
});
|
|
1620
1621
|
Object.defineProperty(PlayerConnectionState.prototype, 'isLeft', {
|
|
1621
1622
|
configurable: true,
|
|
1622
|
-
get: PlayerConnectionState.prototype.
|
|
1623
|
+
get: PlayerConnectionState.prototype.c2e
|
|
1623
1624
|
});
|
|
1624
1625
|
Object.defineProperty(PlayerConnectionState.prototype, 'isDeleted', {
|
|
1625
1626
|
configurable: true,
|
|
1626
|
-
get: PlayerConnectionState.prototype.
|
|
1627
|
+
get: PlayerConnectionState.prototype.d2e
|
|
1627
1628
|
});
|
|
1628
1629
|
Object.defineProperty(PlayerConnectionState.prototype, 'isDisconnecting', {
|
|
1629
1630
|
configurable: true,
|
|
1630
|
-
get: PlayerConnectionState.prototype.
|
|
1631
|
+
get: PlayerConnectionState.prototype.e2e
|
|
1631
1632
|
});
|
|
1632
1633
|
Object.defineProperty(PlayerConnectionState.prototype, 'isNotAlive', {
|
|
1633
1634
|
configurable: true,
|
|
1634
|
-
get: PlayerConnectionState.prototype.
|
|
1635
|
+
get: PlayerConnectionState.prototype.f2e
|
|
1635
1636
|
});
|
|
1636
1637
|
Object.defineProperty(PlayerConnectionState.prototype, 'isPossibleToBeLive', {
|
|
1637
1638
|
configurable: true,
|
|
1638
|
-
get: PlayerConnectionState.prototype.
|
|
1639
|
+
get: PlayerConnectionState.prototype.g2e
|
|
1639
1640
|
});
|
|
1640
1641
|
Object.defineProperty(PlayerConnectionState.prototype, 'name', {
|
|
1641
1642
|
configurable: true,
|
|
@@ -1679,16 +1680,16 @@
|
|
|
1679
1680
|
Companion_instance_9 = this;
|
|
1680
1681
|
var tmp = this;
|
|
1681
1682
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1682
|
-
tmp.
|
|
1683
|
+
tmp.h2e_1 = lazy(tmp_0, PlayerState$PlayerWaitingState$Companion$$cachedSerializer$delegate$_anonymous__yamkar);
|
|
1683
1684
|
}
|
|
1684
1685
|
Companion_9.prototype.l1w = function () {
|
|
1685
|
-
return this.
|
|
1686
|
+
return this.h2e_1.j1();
|
|
1686
1687
|
};
|
|
1687
1688
|
Companion_9.prototype.b1l = function (typeParamsSerializers) {
|
|
1688
1689
|
return this.l1w();
|
|
1689
1690
|
};
|
|
1690
1691
|
var Companion_instance_9;
|
|
1691
|
-
function
|
|
1692
|
+
function Companion_getInstance_10() {
|
|
1692
1693
|
PlayerWaitingState_initEntries();
|
|
1693
1694
|
if (Companion_instance_9 == null)
|
|
1694
1695
|
new Companion_9();
|
|
@@ -1705,34 +1706,34 @@
|
|
|
1705
1706
|
PlayerWaitingState_IDLE_instance = new PlayerWaitingState('IDLE', 0);
|
|
1706
1707
|
PlayerWaitingState_IN_PROGRESS_instance = new PlayerWaitingState('IN_PROGRESS', 1);
|
|
1707
1708
|
PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_instance = new PlayerWaitingState('IN_PROGRESS_ATTENTION_MODE', 2);
|
|
1708
|
-
|
|
1709
|
+
Companion_getInstance_10();
|
|
1709
1710
|
}
|
|
1710
1711
|
function PlayerWaitingState(name, ordinal) {
|
|
1711
1712
|
Enum.call(this, name, ordinal);
|
|
1712
1713
|
}
|
|
1713
|
-
PlayerWaitingState.prototype.
|
|
1714
|
-
return this.equals(PlayerWaitingState_IN_PROGRESS_getInstance()) ? true : this.
|
|
1714
|
+
PlayerWaitingState.prototype.v2d = function () {
|
|
1715
|
+
return this.equals(PlayerWaitingState_IN_PROGRESS_getInstance()) ? true : this.u2d();
|
|
1715
1716
|
};
|
|
1716
|
-
PlayerWaitingState.prototype.
|
|
1717
|
+
PlayerWaitingState.prototype.u2d = function () {
|
|
1717
1718
|
return this.equals(PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_getInstance());
|
|
1718
1719
|
};
|
|
1719
1720
|
function Companion_10() {
|
|
1720
1721
|
Companion_instance_10 = this;
|
|
1721
1722
|
}
|
|
1722
|
-
Companion_10.prototype.
|
|
1723
|
+
Companion_10.prototype.k2e = function (connectionState) {
|
|
1723
1724
|
var tmp0_state = PlayerWaitingState_IDLE_getInstance();
|
|
1724
1725
|
return new PlayerState(null, null, tmp0_state, false, connectionState, null);
|
|
1725
1726
|
};
|
|
1726
|
-
Companion_10.prototype.
|
|
1727
|
+
Companion_10.prototype.l2e = function (_this__u8e3s4) {
|
|
1727
1728
|
var tmp = PlayerWaitingState_IDLE_getInstance();
|
|
1728
|
-
return _this__u8e3s4.
|
|
1729
|
+
return _this__u8e3s4.m2e(null, null, tmp, false, null, null, 26, null);
|
|
1729
1730
|
};
|
|
1730
|
-
Companion_10.prototype.
|
|
1731
|
+
Companion_10.prototype.n2e = function (_this__u8e3s4, startFromTime, tag) {
|
|
1731
1732
|
var tmp0_state = PlayerWaitingState_IN_PROGRESS_getInstance();
|
|
1732
|
-
return _this__u8e3s4.
|
|
1733
|
+
return _this__u8e3s4.m2e(startFromTime, null, tmp0_state, false, null, tag, 18, null);
|
|
1733
1734
|
};
|
|
1734
1735
|
var Companion_instance_10;
|
|
1735
|
-
function
|
|
1736
|
+
function Companion_getInstance_11() {
|
|
1736
1737
|
if (Companion_instance_10 == null)
|
|
1737
1738
|
new Companion_10();
|
|
1738
1739
|
return Companion_instance_10;
|
|
@@ -1750,15 +1751,37 @@
|
|
|
1750
1751
|
return PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_instance;
|
|
1751
1752
|
}
|
|
1752
1753
|
function PlayerState(startFromTime, waitPlayerUntilTime, state, ready, connectionState, tag) {
|
|
1753
|
-
|
|
1754
|
+
Companion_getInstance_11();
|
|
1754
1755
|
this.n2d_1 = startFromTime;
|
|
1755
1756
|
this.o2d_1 = waitPlayerUntilTime;
|
|
1756
1757
|
this.p2d_1 = state;
|
|
1757
1758
|
this.q2d_1 = ready;
|
|
1758
1759
|
this.r2d_1 = connectionState;
|
|
1759
1760
|
this.s2d_1 = tag;
|
|
1761
|
+
var tmp = this;
|
|
1762
|
+
var tmp$ret$2;
|
|
1763
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
1764
|
+
var tmp0_requireNotNull = this.n2d_1;
|
|
1765
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1766
|
+
var tmp$ret$1;
|
|
1767
|
+
$l$block: {
|
|
1768
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
1769
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1770
|
+
if (tmp0_requireNotNull == null) {
|
|
1771
|
+
var tmp$ret$0;
|
|
1772
|
+
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
1773
|
+
tmp$ret$0 = 'Required value was null.';
|
|
1774
|
+
var message = tmp$ret$0;
|
|
1775
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1776
|
+
} else {
|
|
1777
|
+
tmp$ret$1 = tmp0_requireNotNull;
|
|
1778
|
+
break $l$block;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
tmp$ret$2 = tmp$ret$1;
|
|
1782
|
+
tmp.t2d_1 = tmp$ret$2;
|
|
1760
1783
|
}
|
|
1761
|
-
PlayerState.prototype.
|
|
1784
|
+
PlayerState.prototype.o2e = function () {
|
|
1762
1785
|
var tmp$ret$2;
|
|
1763
1786
|
// Inline function 'kotlin.requireNotNull' call
|
|
1764
1787
|
var tmp0_requireNotNull = this.s2d_1;
|
|
@@ -1781,20 +1804,20 @@
|
|
|
1781
1804
|
tmp$ret$2 = tmp$ret$1;
|
|
1782
1805
|
return tmp$ret$2;
|
|
1783
1806
|
};
|
|
1784
|
-
PlayerState.prototype.
|
|
1807
|
+
PlayerState.prototype.p2e = function () {
|
|
1785
1808
|
var tmp0_elvis_lhs = this.s2d_1;
|
|
1786
1809
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
1787
1810
|
};
|
|
1811
|
+
PlayerState.prototype.v2d = function () {
|
|
1812
|
+
return this.p2d_1.v2d();
|
|
1813
|
+
};
|
|
1788
1814
|
PlayerState.prototype.u2d = function () {
|
|
1789
1815
|
return this.p2d_1.u2d();
|
|
1790
1816
|
};
|
|
1791
|
-
PlayerState.prototype.
|
|
1792
|
-
return this.p2d_1.t2d();
|
|
1793
|
-
};
|
|
1794
|
-
PlayerState.prototype.p2e = function (startFromTime, waitPlayerUntilTime, state, ready, connectionState, tag) {
|
|
1817
|
+
PlayerState.prototype.q2e = function (startFromTime, waitPlayerUntilTime, state, ready, connectionState, tag) {
|
|
1795
1818
|
return new PlayerState(startFromTime, waitPlayerUntilTime, state, ready, connectionState, tag);
|
|
1796
1819
|
};
|
|
1797
|
-
PlayerState.prototype.
|
|
1820
|
+
PlayerState.prototype.m2e = function (startFromTime, waitPlayerUntilTime, state, ready, connectionState, tag, $mask0, $handler) {
|
|
1798
1821
|
if (!(($mask0 & 1) === 0))
|
|
1799
1822
|
startFromTime = this.n2d_1;
|
|
1800
1823
|
if (!(($mask0 & 2) === 0))
|
|
@@ -1807,7 +1830,7 @@
|
|
|
1807
1830
|
connectionState = this.r2d_1;
|
|
1808
1831
|
if (!(($mask0 & 32) === 0))
|
|
1809
1832
|
tag = this.s2d_1;
|
|
1810
|
-
return this.
|
|
1833
|
+
return this.q2e(startFromTime, waitPlayerUntilTime, state, ready, connectionState, tag);
|
|
1811
1834
|
};
|
|
1812
1835
|
PlayerState.prototype.toString = function () {
|
|
1813
1836
|
return 'PlayerState(startFromTime=' + this.n2d_1 + ', waitPlayerUntilTime=' + this.o2d_1 + ', state=' + this.p2d_1 + ', ready=' + this.q2d_1 + ', connectionState=' + this.r2d_1 + ', tag=' + this.s2d_1 + ')';
|
|
@@ -1842,13 +1865,13 @@
|
|
|
1842
1865
|
return true;
|
|
1843
1866
|
};
|
|
1844
1867
|
function Team(playerIds) {
|
|
1845
|
-
this.
|
|
1868
|
+
this.r2e_1 = playerIds;
|
|
1846
1869
|
}
|
|
1847
1870
|
Team.prototype.toString = function () {
|
|
1848
|
-
return 'Team(playerIds=' + this.
|
|
1871
|
+
return 'Team(playerIds=' + this.r2e_1 + ')';
|
|
1849
1872
|
};
|
|
1850
1873
|
Team.prototype.hashCode = function () {
|
|
1851
|
-
return hashCode(this.
|
|
1874
|
+
return hashCode(this.r2e_1);
|
|
1852
1875
|
};
|
|
1853
1876
|
Team.prototype.equals = function (other) {
|
|
1854
1877
|
if (this === other)
|
|
@@ -1856,7 +1879,7 @@
|
|
|
1856
1879
|
if (!(other instanceof Team))
|
|
1857
1880
|
return false;
|
|
1858
1881
|
var tmp0_other_with_cast = other instanceof Team ? other : THROW_CCE();
|
|
1859
|
-
if (!equals(this.
|
|
1882
|
+
if (!equals(this.r2e_1, tmp0_other_with_cast.r2e_1))
|
|
1860
1883
|
return false;
|
|
1861
1884
|
return true;
|
|
1862
1885
|
};
|
|
@@ -1879,13 +1902,13 @@
|
|
|
1879
1902
|
return new Rules(false, false, false, false, true, true, true, false, false, false, false, false, 50, false, false, false, false);
|
|
1880
1903
|
};
|
|
1881
1904
|
var Companion_instance_11;
|
|
1882
|
-
function
|
|
1905
|
+
function Companion_getInstance_12() {
|
|
1883
1906
|
if (Companion_instance_11 == null)
|
|
1884
1907
|
new Companion_11();
|
|
1885
1908
|
return Companion_instance_11;
|
|
1886
1909
|
}
|
|
1887
1910
|
function Rules(needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand) {
|
|
1888
|
-
|
|
1911
|
+
Companion_getInstance_12();
|
|
1889
1912
|
this.needToPutHigherTrump = needToPutHigherTrump;
|
|
1890
1913
|
this.distributePoints = distributePoints;
|
|
1891
1914
|
this.protectBella = protectBella;
|
|
@@ -1904,55 +1927,55 @@
|
|
|
1904
1927
|
this.checkOnlyTrumpDebertz = checkOnlyTrumpDebertz;
|
|
1905
1928
|
this.tenCardsInHand = tenCardsInHand;
|
|
1906
1929
|
}
|
|
1907
|
-
Rules.prototype.
|
|
1930
|
+
Rules.prototype.s2e = function () {
|
|
1908
1931
|
return this.needToPutHigherTrump;
|
|
1909
1932
|
};
|
|
1910
|
-
Rules.prototype.
|
|
1933
|
+
Rules.prototype.t2e = function () {
|
|
1911
1934
|
return this.distributePoints;
|
|
1912
1935
|
};
|
|
1913
|
-
Rules.prototype.
|
|
1936
|
+
Rules.prototype.u2e = function () {
|
|
1914
1937
|
return this.protectBella;
|
|
1915
1938
|
};
|
|
1916
|
-
Rules.prototype.
|
|
1939
|
+
Rules.prototype.v2e = function () {
|
|
1917
1940
|
return this.oneTryToProtectBella;
|
|
1918
1941
|
};
|
|
1919
|
-
Rules.prototype.
|
|
1942
|
+
Rules.prototype.w2e = function () {
|
|
1920
1943
|
return this.enableFourSevensCombination;
|
|
1921
1944
|
};
|
|
1922
|
-
Rules.prototype.
|
|
1945
|
+
Rules.prototype.x2e = function () {
|
|
1923
1946
|
return this.enableTrumpSevenCombination;
|
|
1924
1947
|
};
|
|
1925
|
-
Rules.prototype.
|
|
1948
|
+
Rules.prototype.y2e = function () {
|
|
1926
1949
|
return this.enableTrumpSevenCombinationAfterDistribution;
|
|
1927
1950
|
};
|
|
1928
|
-
Rules.prototype.
|
|
1951
|
+
Rules.prototype.z2e = function () {
|
|
1929
1952
|
return this.playerWhoChooseSuitGoFirst;
|
|
1930
1953
|
};
|
|
1931
|
-
Rules.prototype.
|
|
1954
|
+
Rules.prototype.a2f = function () {
|
|
1932
1955
|
return this.winnerShuffleCards;
|
|
1933
1956
|
};
|
|
1934
|
-
Rules.prototype.
|
|
1957
|
+
Rules.prototype.b2f = function () {
|
|
1935
1958
|
return this.playWithoutLiabilities;
|
|
1936
1959
|
};
|
|
1937
|
-
Rules.prototype.
|
|
1960
|
+
Rules.prototype.c2f = function () {
|
|
1938
1961
|
return this.trumpCardGoToPlayerWhoShuffleCards;
|
|
1939
1962
|
};
|
|
1940
|
-
Rules.prototype.
|
|
1963
|
+
Rules.prototype.d2f = function () {
|
|
1941
1964
|
return this.enableFineIfNoBribes;
|
|
1942
1965
|
};
|
|
1943
|
-
Rules.prototype.
|
|
1966
|
+
Rules.prototype.e2f = function () {
|
|
1944
1967
|
return this.fineIfNoBribes;
|
|
1945
1968
|
};
|
|
1946
|
-
Rules.prototype.
|
|
1969
|
+
Rules.prototype.f2f = function () {
|
|
1947
1970
|
return this.enableFineAfterThirdByte;
|
|
1948
1971
|
};
|
|
1949
|
-
Rules.prototype.
|
|
1972
|
+
Rules.prototype.g2f = function () {
|
|
1950
1973
|
return this.checkTrumpCombination;
|
|
1951
1974
|
};
|
|
1952
|
-
Rules.prototype.
|
|
1975
|
+
Rules.prototype.h2f = function () {
|
|
1953
1976
|
return this.checkOnlyTrumpDebertz;
|
|
1954
1977
|
};
|
|
1955
|
-
Rules.prototype.
|
|
1978
|
+
Rules.prototype.i2f = function () {
|
|
1956
1979
|
return this.tenCardsInHand;
|
|
1957
1980
|
};
|
|
1958
1981
|
Rules.prototype.component1 = function () {
|
|
@@ -2007,12 +2030,12 @@
|
|
|
2007
2030
|
return this.tenCardsInHand;
|
|
2008
2031
|
};
|
|
2009
2032
|
Rules.prototype.copy = function (needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand) {
|
|
2010
|
-
return this.
|
|
2033
|
+
return this.j2f(needToPutHigherTrump === void 1 ? this.needToPutHigherTrump : needToPutHigherTrump, distributePoints === void 1 ? this.distributePoints : distributePoints, protectBella === void 1 ? this.protectBella : protectBella, oneTryToProtectBella === void 1 ? this.oneTryToProtectBella : oneTryToProtectBella, enableFourSevensCombination === void 1 ? this.enableFourSevensCombination : enableFourSevensCombination, enableTrumpSevenCombination === void 1 ? this.enableTrumpSevenCombination : enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution === void 1 ? this.enableTrumpSevenCombinationAfterDistribution : enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst === void 1 ? this.playerWhoChooseSuitGoFirst : playerWhoChooseSuitGoFirst, winnerShuffleCards === void 1 ? this.winnerShuffleCards : winnerShuffleCards, playWithoutLiabilities === void 1 ? this.playWithoutLiabilities : playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards === void 1 ? this.trumpCardGoToPlayerWhoShuffleCards : trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes === void 1 ? this.enableFineIfNoBribes : enableFineIfNoBribes, fineIfNoBribes === void 1 ? this.fineIfNoBribes : fineIfNoBribes, enableFineAfterThirdByte === void 1 ? this.enableFineAfterThirdByte : enableFineAfterThirdByte, checkTrumpCombination === void 1 ? this.checkTrumpCombination : checkTrumpCombination, checkOnlyTrumpDebertz === void 1 ? this.checkOnlyTrumpDebertz : checkOnlyTrumpDebertz, tenCardsInHand === void 1 ? this.tenCardsInHand : tenCardsInHand);
|
|
2011
2034
|
};
|
|
2012
|
-
Rules.prototype.
|
|
2035
|
+
Rules.prototype.j2f = function (needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand) {
|
|
2013
2036
|
return new Rules(needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand);
|
|
2014
2037
|
};
|
|
2015
|
-
Rules.prototype.
|
|
2038
|
+
Rules.prototype.k2f = function (needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand, $mask0, $handler) {
|
|
2016
2039
|
if (!(($mask0 & 1) === 0))
|
|
2017
2040
|
needToPutHigherTrump = this.needToPutHigherTrump;
|
|
2018
2041
|
if (!(($mask0 & 2) === 0))
|
|
@@ -2047,7 +2070,7 @@
|
|
|
2047
2070
|
checkOnlyTrumpDebertz = this.checkOnlyTrumpDebertz;
|
|
2048
2071
|
if (!(($mask0 & 65536) === 0))
|
|
2049
2072
|
tenCardsInHand = this.tenCardsInHand;
|
|
2050
|
-
return this.
|
|
2073
|
+
return this.j2f(needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand);
|
|
2051
2074
|
};
|
|
2052
2075
|
Rules.prototype.toString = function () {
|
|
2053
2076
|
return 'Rules(needToPutHigherTrump=' + this.needToPutHigherTrump + ', distributePoints=' + this.distributePoints + ', protectBella=' + this.protectBella + ', oneTryToProtectBella=' + this.oneTryToProtectBella + ', enableFourSevensCombination=' + this.enableFourSevensCombination + ', enableTrumpSevenCombination=' + this.enableTrumpSevenCombination + ', enableTrumpSevenCombinationAfterDistribution=' + this.enableTrumpSevenCombinationAfterDistribution + ', playerWhoChooseSuitGoFirst=' + this.playerWhoChooseSuitGoFirst + ', winnerShuffleCards=' + this.winnerShuffleCards + ', playWithoutLiabilities=' + this.playWithoutLiabilities + ', trumpCardGoToPlayerWhoShuffleCards=' + this.trumpCardGoToPlayerWhoShuffleCards + ', enableFineIfNoBribes=' + this.enableFineIfNoBribes + ', fineIfNoBribes=' + this.fineIfNoBribes + ', enableFineAfterThirdByte=' + this.enableFineAfterThirdByte + ', checkTrumpCombination=' + this.checkTrumpCombination + ', checkOnlyTrumpDebertz=' + this.checkOnlyTrumpDebertz + ', tenCardsInHand=' + this.tenCardsInHand + ')';
|
|
@@ -2183,20 +2206,20 @@
|
|
|
2183
2206
|
return RulesSetType_custom_instance;
|
|
2184
2207
|
}
|
|
2185
2208
|
function mapToDto(_this__u8e3s4) {
|
|
2186
|
-
return _this__u8e3s4.
|
|
2209
|
+
return _this__u8e3s4.n2f_1;
|
|
2187
2210
|
}
|
|
2188
2211
|
function mapFromDto(_this__u8e3s4) {
|
|
2189
2212
|
return new GameCard(_this__u8e3s4);
|
|
2190
2213
|
}
|
|
2191
2214
|
function mapToDto_0(_this__u8e3s4) {
|
|
2192
|
-
return _this__u8e3s4.
|
|
2215
|
+
return _this__u8e3s4.p2f_1.n2f_1;
|
|
2193
2216
|
}
|
|
2194
2217
|
function mapToDto_1(_this__u8e3s4) {
|
|
2195
2218
|
return RulesDto_init_$Create$(_this__u8e3s4.needToPutHigherTrump, _this__u8e3s4.distributePoints, _this__u8e3s4.protectBella, null, _this__u8e3s4.enableFourSevensCombination, _this__u8e3s4.enableTrumpSevenCombination, _this__u8e3s4.enableTrumpSevenCombinationAfterDistribution, _this__u8e3s4.playerWhoChooseSuitGoFirst, _this__u8e3s4.winnerShuffleCards, _this__u8e3s4.playWithoutLiabilities, _this__u8e3s4.trumpCardGoToPlayerWhoShuffleCards, _this__u8e3s4.enableFineIfNoBribes, _this__u8e3s4.fineIfNoBribes, _this__u8e3s4.enableFineAfterThirdByte, _this__u8e3s4.checkTrumpCombination, _this__u8e3s4.checkOnlyTrumpDebertz, _this__u8e3s4.tenCardsInHand, 8, null);
|
|
2196
2219
|
}
|
|
2197
2220
|
function mapFromDto_0(_this__u8e3s4) {
|
|
2198
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2199
|
-
return new Rules(_this__u8e3s4.
|
|
2221
|
+
var tmp0_elvis_lhs = _this__u8e3s4.t2f_1;
|
|
2222
|
+
return new Rules(_this__u8e3s4.q2f_1, _this__u8e3s4.r2f_1, _this__u8e3s4.s2f_1, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs, _this__u8e3s4.u2f_1, _this__u8e3s4.v2f_1, _this__u8e3s4.w2f_1, _this__u8e3s4.x2f_1, _this__u8e3s4.y2f_1, _this__u8e3s4.z2f_1, _this__u8e3s4.a2g_1, _this__u8e3s4.b2g_1, _this__u8e3s4.c2g_1, _this__u8e3s4.d2g_1, _this__u8e3s4.e2g_1, _this__u8e3s4.f2g_1, _this__u8e3s4.g2g_1);
|
|
2200
2223
|
}
|
|
2201
2224
|
function mapToDto_2(_this__u8e3s4) {
|
|
2202
2225
|
var tmp$ret$1;
|
|
@@ -2216,9 +2239,9 @@
|
|
|
2216
2239
|
return new GameUserInfoDto(_this__u8e3s4.h2d_1, _this__u8e3s4.name, _this__u8e3s4.avatarUrl, tmp$ret$1);
|
|
2217
2240
|
}
|
|
2218
2241
|
function mapFromDto_1(_this__u8e3s4) {
|
|
2219
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
2242
|
+
var tmp0_elvis_lhs = _this__u8e3s4.k2g_1;
|
|
2220
2243
|
var tmp = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
2221
|
-
return GameUserInfo_init_$Create$(_this__u8e3s4.
|
|
2244
|
+
return GameUserInfo_init_$Create$(_this__u8e3s4.h2g_1, _this__u8e3s4.i2g_1, _this__u8e3s4.j2g_1, tmp, null, 16, null);
|
|
2222
2245
|
}
|
|
2223
2246
|
function mapToDto_3(_this__u8e3s4) {
|
|
2224
2247
|
var tmp0_safe_receiver = _this__u8e3s4.n2d_1;
|
|
@@ -2234,19 +2257,19 @@
|
|
|
2234
2257
|
return new PlayerStateDto(tmp4_startFromTime, tmp5_startFrom, tmp6_waitPlayerUntilTime, tmp7_state, tmp9_ready, tmp8_tag);
|
|
2235
2258
|
}
|
|
2236
2259
|
function mapFromDto_2(_this__u8e3s4, connectionState) {
|
|
2237
|
-
var tmp1_startFromTime = _this__u8e3s4.
|
|
2238
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2260
|
+
var tmp1_startFromTime = _this__u8e3s4.r2g();
|
|
2261
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2g_1;
|
|
2239
2262
|
var tmp2_waitPlayerUntilTime = tmp0_safe_receiver == null ? null : toInstant(tmp0_safe_receiver);
|
|
2240
|
-
var tmp3_state = _this__u8e3s4.
|
|
2241
|
-
var tmp4_tag = _this__u8e3s4.
|
|
2242
|
-
var tmp5_ready = _this__u8e3s4.
|
|
2263
|
+
var tmp3_state = _this__u8e3s4.o2g_1;
|
|
2264
|
+
var tmp4_tag = _this__u8e3s4.q2g_1;
|
|
2265
|
+
var tmp5_ready = _this__u8e3s4.p2g_1;
|
|
2243
2266
|
return new PlayerState(tmp1_startFromTime, tmp2_waitPlayerUntilTime, tmp3_state, tmp5_ready, connectionState, tmp4_tag);
|
|
2244
2267
|
}
|
|
2245
2268
|
function Companion_12() {
|
|
2246
2269
|
Companion_instance_12 = this;
|
|
2247
2270
|
}
|
|
2248
2271
|
var Companion_instance_12;
|
|
2249
|
-
function
|
|
2272
|
+
function Companion_getInstance_13() {
|
|
2250
2273
|
if (Companion_instance_12 == null)
|
|
2251
2274
|
new Companion_12();
|
|
2252
2275
|
return Companion_instance_12;
|
|
@@ -2258,10 +2281,10 @@
|
|
|
2258
2281
|
tmp0_serialDesc.b1k('name', false);
|
|
2259
2282
|
tmp0_serialDesc.b1k('avatarUrl', false);
|
|
2260
2283
|
tmp0_serialDesc.b1k('isBot', true);
|
|
2261
|
-
this.
|
|
2284
|
+
this.s2g_1 = tmp0_serialDesc;
|
|
2262
2285
|
}
|
|
2263
2286
|
$serializer_5.prototype.p19 = function () {
|
|
2264
|
-
return this.
|
|
2287
|
+
return this.s2g_1;
|
|
2265
2288
|
};
|
|
2266
2289
|
$serializer_5.prototype.q1k = function () {
|
|
2267
2290
|
var tmp$ret$2;
|
|
@@ -2277,7 +2300,7 @@
|
|
|
2277
2300
|
return tmp$ret$2;
|
|
2278
2301
|
};
|
|
2279
2302
|
$serializer_5.prototype.r19 = function (decoder) {
|
|
2280
|
-
var tmp0_desc = this.
|
|
2303
|
+
var tmp0_desc = this.s2g_1;
|
|
2281
2304
|
var tmp1_flag = true;
|
|
2282
2305
|
var tmp2_index = 0;
|
|
2283
2306
|
var tmp3_bitMask0 = 0;
|
|
@@ -2325,19 +2348,19 @@
|
|
|
2325
2348
|
tmp8_input.x1c(tmp0_desc);
|
|
2326
2349
|
return GameUserInfoDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
2327
2350
|
};
|
|
2328
|
-
$serializer_5.prototype.
|
|
2329
|
-
var tmp0_desc = this.
|
|
2351
|
+
$serializer_5.prototype.t2g = function (encoder, value) {
|
|
2352
|
+
var tmp0_desc = this.s2g_1;
|
|
2330
2353
|
var tmp1_output = encoder.w1c(tmp0_desc);
|
|
2331
|
-
tmp1_output.l1e(tmp0_desc, 0, value.
|
|
2332
|
-
tmp1_output.l1e(tmp0_desc, 1, value.
|
|
2333
|
-
tmp1_output.l1e(tmp0_desc, 2, value.
|
|
2334
|
-
if (tmp1_output.t1e(tmp0_desc, 3) ? true : !(value.
|
|
2335
|
-
tmp1_output.p1e(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
2354
|
+
tmp1_output.l1e(tmp0_desc, 0, value.h2g_1);
|
|
2355
|
+
tmp1_output.l1e(tmp0_desc, 1, value.i2g_1);
|
|
2356
|
+
tmp1_output.l1e(tmp0_desc, 2, value.j2g_1);
|
|
2357
|
+
if (tmp1_output.t1e(tmp0_desc, 3) ? true : !(value.k2g_1 === false)) {
|
|
2358
|
+
tmp1_output.p1e(tmp0_desc, 3, BooleanSerializer_getInstance(), value.k2g_1);
|
|
2336
2359
|
}
|
|
2337
2360
|
tmp1_output.x1c(tmp0_desc);
|
|
2338
2361
|
};
|
|
2339
2362
|
$serializer_5.prototype.q19 = function (encoder, value) {
|
|
2340
|
-
return this.
|
|
2363
|
+
return this.t2g(encoder, value instanceof GameUserInfoDto ? value : THROW_CCE());
|
|
2341
2364
|
};
|
|
2342
2365
|
var $serializer_instance_5;
|
|
2343
2366
|
function $serializer_getInstance_5() {
|
|
@@ -2347,35 +2370,35 @@
|
|
|
2347
2370
|
}
|
|
2348
2371
|
function GameUserInfoDto_init_$Init$(seen1, playerId, name, avatarUrl, isBot, serializationConstructorMarker, $this) {
|
|
2349
2372
|
if (!(7 === (7 & seen1))) {
|
|
2350
|
-
throwMissingFieldException(seen1, 7, $serializer_getInstance_5().
|
|
2373
|
+
throwMissingFieldException(seen1, 7, $serializer_getInstance_5().s2g_1);
|
|
2351
2374
|
}
|
|
2352
|
-
$this.
|
|
2353
|
-
$this.
|
|
2354
|
-
$this.
|
|
2375
|
+
$this.h2g_1 = playerId;
|
|
2376
|
+
$this.i2g_1 = name;
|
|
2377
|
+
$this.j2g_1 = avatarUrl;
|
|
2355
2378
|
if (0 === (seen1 & 8))
|
|
2356
|
-
$this.
|
|
2379
|
+
$this.k2g_1 = false;
|
|
2357
2380
|
else
|
|
2358
|
-
$this.
|
|
2381
|
+
$this.k2g_1 = isBot;
|
|
2359
2382
|
return $this;
|
|
2360
2383
|
}
|
|
2361
2384
|
function GameUserInfoDto_init_$Create$(seen1, playerId, name, avatarUrl, isBot, serializationConstructorMarker) {
|
|
2362
2385
|
return GameUserInfoDto_init_$Init$(seen1, playerId, name, avatarUrl, isBot, serializationConstructorMarker, Object.create(GameUserInfoDto.prototype));
|
|
2363
2386
|
}
|
|
2364
2387
|
function GameUserInfoDto(playerId, name, avatarUrl, isBot) {
|
|
2365
|
-
|
|
2366
|
-
this.
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2388
|
+
Companion_getInstance_13();
|
|
2389
|
+
this.h2g_1 = playerId;
|
|
2390
|
+
this.i2g_1 = name;
|
|
2391
|
+
this.j2g_1 = avatarUrl;
|
|
2392
|
+
this.k2g_1 = isBot;
|
|
2370
2393
|
}
|
|
2371
2394
|
GameUserInfoDto.prototype.toString = function () {
|
|
2372
|
-
return 'GameUserInfoDto(playerId=' + this.
|
|
2395
|
+
return 'GameUserInfoDto(playerId=' + this.h2g_1 + ', name=' + this.i2g_1 + ', avatarUrl=' + this.j2g_1 + ', isBot=' + this.k2g_1 + ')';
|
|
2373
2396
|
};
|
|
2374
2397
|
GameUserInfoDto.prototype.hashCode = function () {
|
|
2375
|
-
var result = getStringHashCode(this.
|
|
2376
|
-
result = imul(result, 31) + getStringHashCode(this.h2g_1) | 0;
|
|
2398
|
+
var result = getStringHashCode(this.h2g_1);
|
|
2377
2399
|
result = imul(result, 31) + getStringHashCode(this.i2g_1) | 0;
|
|
2378
|
-
result = imul(result, 31) + (this.j2g_1
|
|
2400
|
+
result = imul(result, 31) + getStringHashCode(this.j2g_1) | 0;
|
|
2401
|
+
result = imul(result, 31) + (this.k2g_1 == null ? 0 : this.k2g_1 | 0) | 0;
|
|
2379
2402
|
return result;
|
|
2380
2403
|
};
|
|
2381
2404
|
GameUserInfoDto.prototype.equals = function (other) {
|
|
@@ -2384,13 +2407,13 @@
|
|
|
2384
2407
|
if (!(other instanceof GameUserInfoDto))
|
|
2385
2408
|
return false;
|
|
2386
2409
|
var tmp0_other_with_cast = other instanceof GameUserInfoDto ? other : THROW_CCE();
|
|
2387
|
-
if (!(this.g2g_1 === tmp0_other_with_cast.g2g_1))
|
|
2388
|
-
return false;
|
|
2389
2410
|
if (!(this.h2g_1 === tmp0_other_with_cast.h2g_1))
|
|
2390
2411
|
return false;
|
|
2391
2412
|
if (!(this.i2g_1 === tmp0_other_with_cast.i2g_1))
|
|
2392
2413
|
return false;
|
|
2393
|
-
if (!(this.j2g_1
|
|
2414
|
+
if (!(this.j2g_1 === tmp0_other_with_cast.j2g_1))
|
|
2415
|
+
return false;
|
|
2416
|
+
if (!(this.k2g_1 == tmp0_other_with_cast.k2g_1))
|
|
2394
2417
|
return false;
|
|
2395
2418
|
return true;
|
|
2396
2419
|
};
|
|
@@ -2398,7 +2421,7 @@
|
|
|
2398
2421
|
Companion_instance_13 = this;
|
|
2399
2422
|
}
|
|
2400
2423
|
var Companion_instance_13;
|
|
2401
|
-
function
|
|
2424
|
+
function Companion_getInstance_14() {
|
|
2402
2425
|
if (Companion_instance_13 == null)
|
|
2403
2426
|
new Companion_13();
|
|
2404
2427
|
return Companion_instance_13;
|
|
@@ -2412,15 +2435,15 @@
|
|
|
2412
2435
|
tmp0_serialDesc.b1k('state', false);
|
|
2413
2436
|
tmp0_serialDesc.b1k('ready', false);
|
|
2414
2437
|
tmp0_serialDesc.b1k('tag', true);
|
|
2415
|
-
this.
|
|
2438
|
+
this.u2g_1 = tmp0_serialDesc;
|
|
2416
2439
|
}
|
|
2417
2440
|
$serializer_6.prototype.p19 = function () {
|
|
2418
|
-
return this.
|
|
2441
|
+
return this.u2g_1;
|
|
2419
2442
|
};
|
|
2420
2443
|
$serializer_6.prototype.q1k = function () {
|
|
2421
2444
|
var tmp$ret$2;
|
|
2422
2445
|
// Inline function 'kotlin.arrayOf' call
|
|
2423
|
-
var tmp0_arrayOf = [get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()),
|
|
2446
|
+
var tmp0_arrayOf = [get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), Companion_getInstance_10().l1w(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
2424
2447
|
var tmp$ret$1;
|
|
2425
2448
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2426
2449
|
var tmp$ret$0;
|
|
@@ -2431,7 +2454,7 @@
|
|
|
2431
2454
|
return tmp$ret$2;
|
|
2432
2455
|
};
|
|
2433
2456
|
$serializer_6.prototype.r19 = function (decoder) {
|
|
2434
|
-
var tmp0_desc = this.
|
|
2457
|
+
var tmp0_desc = this.u2g_1;
|
|
2435
2458
|
var tmp1_flag = true;
|
|
2436
2459
|
var tmp2_index = 0;
|
|
2437
2460
|
var tmp3_bitMask0 = 0;
|
|
@@ -2449,7 +2472,7 @@
|
|
|
2449
2472
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
2450
2473
|
tmp6_local2 = tmp10_input.k1d(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
2451
2474
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2452
|
-
tmp7_local3 = tmp10_input.i1d(tmp0_desc, 3,
|
|
2475
|
+
tmp7_local3 = tmp10_input.i1d(tmp0_desc, 3, Companion_getInstance_10().l1w(), tmp7_local3);
|
|
2453
2476
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2454
2477
|
tmp8_local4 = tmp10_input.y1c(tmp0_desc, 4);
|
|
2455
2478
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
@@ -2475,7 +2498,7 @@
|
|
|
2475
2498
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
2476
2499
|
break;
|
|
2477
2500
|
case 3:
|
|
2478
|
-
tmp7_local3 = tmp10_input.i1d(tmp0_desc, 3,
|
|
2501
|
+
tmp7_local3 = tmp10_input.i1d(tmp0_desc, 3, Companion_getInstance_10().l1w(), tmp7_local3);
|
|
2479
2502
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
2480
2503
|
break;
|
|
2481
2504
|
case 4:
|
|
@@ -2493,27 +2516,27 @@
|
|
|
2493
2516
|
tmp10_input.x1c(tmp0_desc);
|
|
2494
2517
|
return PlayerStateDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
2495
2518
|
};
|
|
2496
|
-
$serializer_6.prototype.
|
|
2497
|
-
var tmp0_desc = this.
|
|
2519
|
+
$serializer_6.prototype.v2g = function (encoder, value) {
|
|
2520
|
+
var tmp0_desc = this.u2g_1;
|
|
2498
2521
|
var tmp1_output = encoder.w1c(tmp0_desc);
|
|
2499
|
-
if (tmp1_output.t1e(tmp0_desc, 0) ? true : !(value.
|
|
2500
|
-
tmp1_output.p1e(tmp0_desc, 0, LongSerializer_getInstance(), value.
|
|
2522
|
+
if (tmp1_output.t1e(tmp0_desc, 0) ? true : !(value.l2g_1 == null)) {
|
|
2523
|
+
tmp1_output.p1e(tmp0_desc, 0, LongSerializer_getInstance(), value.l2g_1);
|
|
2501
2524
|
}
|
|
2502
|
-
if (tmp1_output.t1e(tmp0_desc, 1) ? true : !(value.
|
|
2503
|
-
tmp1_output.p1e(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
2525
|
+
if (tmp1_output.t1e(tmp0_desc, 1) ? true : !(value.m2g_1 == null)) {
|
|
2526
|
+
tmp1_output.p1e(tmp0_desc, 1, StringSerializer_getInstance(), value.m2g_1);
|
|
2504
2527
|
}
|
|
2505
|
-
if (tmp1_output.t1e(tmp0_desc, 2) ? true : !(value.
|
|
2506
|
-
tmp1_output.p1e(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
2528
|
+
if (tmp1_output.t1e(tmp0_desc, 2) ? true : !(value.n2g_1 == null)) {
|
|
2529
|
+
tmp1_output.p1e(tmp0_desc, 2, StringSerializer_getInstance(), value.n2g_1);
|
|
2507
2530
|
}
|
|
2508
|
-
tmp1_output.n1e(tmp0_desc, 3,
|
|
2509
|
-
tmp1_output.d1e(tmp0_desc, 4, value.
|
|
2510
|
-
if (tmp1_output.t1e(tmp0_desc, 5) ? true : !(value.
|
|
2511
|
-
tmp1_output.p1e(tmp0_desc, 5, StringSerializer_getInstance(), value.
|
|
2531
|
+
tmp1_output.n1e(tmp0_desc, 3, Companion_getInstance_10().l1w(), value.o2g_1);
|
|
2532
|
+
tmp1_output.d1e(tmp0_desc, 4, value.p2g_1);
|
|
2533
|
+
if (tmp1_output.t1e(tmp0_desc, 5) ? true : !(value.q2g_1 == null)) {
|
|
2534
|
+
tmp1_output.p1e(tmp0_desc, 5, StringSerializer_getInstance(), value.q2g_1);
|
|
2512
2535
|
}
|
|
2513
2536
|
tmp1_output.x1c(tmp0_desc);
|
|
2514
2537
|
};
|
|
2515
2538
|
$serializer_6.prototype.q19 = function (encoder, value) {
|
|
2516
|
-
return this.
|
|
2539
|
+
return this.v2g(encoder, value instanceof PlayerStateDto ? value : THROW_CCE());
|
|
2517
2540
|
};
|
|
2518
2541
|
var $serializer_instance_6;
|
|
2519
2542
|
function $serializer_getInstance_6() {
|
|
@@ -2523,55 +2546,68 @@
|
|
|
2523
2546
|
}
|
|
2524
2547
|
function PlayerStateDto_init_$Init$(seen1, startFromTime, startFrom, waitPlayerUntilTime, state, ready, tag, serializationConstructorMarker, $this) {
|
|
2525
2548
|
if (!(24 === (24 & seen1))) {
|
|
2526
|
-
throwMissingFieldException(seen1, 24, $serializer_getInstance_6().
|
|
2549
|
+
throwMissingFieldException(seen1, 24, $serializer_getInstance_6().u2g_1);
|
|
2527
2550
|
}
|
|
2528
2551
|
if (0 === (seen1 & 1))
|
|
2529
|
-
$this.
|
|
2552
|
+
$this.l2g_1 = null;
|
|
2530
2553
|
else
|
|
2531
|
-
$this.
|
|
2554
|
+
$this.l2g_1 = startFromTime;
|
|
2532
2555
|
if (0 === (seen1 & 2))
|
|
2533
|
-
$this.
|
|
2556
|
+
$this.m2g_1 = null;
|
|
2534
2557
|
else
|
|
2535
|
-
$this.
|
|
2558
|
+
$this.m2g_1 = startFrom;
|
|
2536
2559
|
if (0 === (seen1 & 4))
|
|
2537
|
-
$this.
|
|
2560
|
+
$this.n2g_1 = null;
|
|
2538
2561
|
else
|
|
2539
|
-
$this.
|
|
2540
|
-
$this.
|
|
2541
|
-
$this.
|
|
2562
|
+
$this.n2g_1 = waitPlayerUntilTime;
|
|
2563
|
+
$this.o2g_1 = state;
|
|
2564
|
+
$this.p2g_1 = ready;
|
|
2542
2565
|
if (0 === (seen1 & 32))
|
|
2543
|
-
$this.
|
|
2566
|
+
$this.q2g_1 = null;
|
|
2544
2567
|
else
|
|
2545
|
-
$this.
|
|
2568
|
+
$this.q2g_1 = tag;
|
|
2546
2569
|
return $this;
|
|
2547
2570
|
}
|
|
2548
2571
|
function PlayerStateDto_init_$Create$(seen1, startFromTime, startFrom, waitPlayerUntilTime, state, ready, tag, serializationConstructorMarker) {
|
|
2549
2572
|
return PlayerStateDto_init_$Init$(seen1, startFromTime, startFrom, waitPlayerUntilTime, state, ready, tag, serializationConstructorMarker, Object.create(PlayerStateDto.prototype));
|
|
2550
2573
|
}
|
|
2551
2574
|
function PlayerStateDto(startFromTime, startFrom, waitPlayerUntilTime, state, ready, tag) {
|
|
2552
|
-
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2555
|
-
this.
|
|
2556
|
-
this.
|
|
2557
|
-
this.
|
|
2558
|
-
this.
|
|
2559
|
-
}
|
|
2560
|
-
PlayerStateDto.prototype.
|
|
2575
|
+
Companion_getInstance_14();
|
|
2576
|
+
this.l2g_1 = startFromTime;
|
|
2577
|
+
this.m2g_1 = startFrom;
|
|
2578
|
+
this.n2g_1 = waitPlayerUntilTime;
|
|
2579
|
+
this.o2g_1 = state;
|
|
2580
|
+
this.p2g_1 = ready;
|
|
2581
|
+
this.q2g_1 = tag;
|
|
2582
|
+
}
|
|
2583
|
+
PlayerStateDto.prototype.r2g = function () {
|
|
2561
2584
|
var tmp0_safe_receiver = this.l2g_1;
|
|
2562
|
-
var
|
|
2563
|
-
|
|
2585
|
+
var tmp;
|
|
2586
|
+
if (tmp0_safe_receiver == null) {
|
|
2587
|
+
tmp = null;
|
|
2588
|
+
} else {
|
|
2589
|
+
var tmp$ret$1;
|
|
2590
|
+
// Inline function 'kotlin.let' call
|
|
2591
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2592
|
+
var tmp$ret$0;
|
|
2593
|
+
// Inline function 'com.logic.data.models.serializable.player.PlayerStateDto.<get-time>.<anonymous>' call
|
|
2594
|
+
tmp$ret$0 = Companion_getInstance().v2b(this.l2g_1);
|
|
2595
|
+
tmp$ret$1 = tmp$ret$0;
|
|
2596
|
+
tmp = tmp$ret$1;
|
|
2597
|
+
}
|
|
2598
|
+
var tmp1_elvis_lhs = tmp;
|
|
2599
|
+
return tmp1_elvis_lhs == null ? toInstant(ensureNotNull(this.m2g_1)) : tmp1_elvis_lhs;
|
|
2564
2600
|
};
|
|
2565
2601
|
PlayerStateDto.prototype.toString = function () {
|
|
2566
|
-
return 'PlayerStateDto(startFromTime=' + toString(this.
|
|
2602
|
+
return 'PlayerStateDto(startFromTime=' + toString(this.l2g_1) + ', startFrom=' + this.m2g_1 + ', waitPlayerUntilTime=' + this.n2g_1 + ', state=' + this.o2g_1 + ', ready=' + this.p2g_1 + ', tag=' + this.q2g_1 + ')';
|
|
2567
2603
|
};
|
|
2568
2604
|
PlayerStateDto.prototype.hashCode = function () {
|
|
2569
|
-
var result = this.
|
|
2570
|
-
result = imul(result, 31) + (this.l2g_1 == null ? 0 : getStringHashCode(this.l2g_1)) | 0;
|
|
2605
|
+
var result = this.l2g_1 == null ? 0 : this.l2g_1.hashCode();
|
|
2571
2606
|
result = imul(result, 31) + (this.m2g_1 == null ? 0 : getStringHashCode(this.m2g_1)) | 0;
|
|
2572
|
-
result = imul(result, 31) + this.n2g_1.
|
|
2573
|
-
result = imul(result, 31) +
|
|
2574
|
-
result = imul(result, 31) + (this.p2g_1
|
|
2607
|
+
result = imul(result, 31) + (this.n2g_1 == null ? 0 : getStringHashCode(this.n2g_1)) | 0;
|
|
2608
|
+
result = imul(result, 31) + this.o2g_1.hashCode() | 0;
|
|
2609
|
+
result = imul(result, 31) + (this.p2g_1 | 0) | 0;
|
|
2610
|
+
result = imul(result, 31) + (this.q2g_1 == null ? 0 : getStringHashCode(this.q2g_1)) | 0;
|
|
2575
2611
|
return result;
|
|
2576
2612
|
};
|
|
2577
2613
|
PlayerStateDto.prototype.equals = function (other) {
|
|
@@ -2580,17 +2616,17 @@
|
|
|
2580
2616
|
if (!(other instanceof PlayerStateDto))
|
|
2581
2617
|
return false;
|
|
2582
2618
|
var tmp0_other_with_cast = other instanceof PlayerStateDto ? other : THROW_CCE();
|
|
2583
|
-
if (!equals(this.
|
|
2584
|
-
return false;
|
|
2585
|
-
if (!(this.l2g_1 == tmp0_other_with_cast.l2g_1))
|
|
2619
|
+
if (!equals(this.l2g_1, tmp0_other_with_cast.l2g_1))
|
|
2586
2620
|
return false;
|
|
2587
2621
|
if (!(this.m2g_1 == tmp0_other_with_cast.m2g_1))
|
|
2588
2622
|
return false;
|
|
2589
|
-
if (!this.n2g_1
|
|
2623
|
+
if (!(this.n2g_1 == tmp0_other_with_cast.n2g_1))
|
|
2624
|
+
return false;
|
|
2625
|
+
if (!this.o2g_1.equals(tmp0_other_with_cast.o2g_1))
|
|
2590
2626
|
return false;
|
|
2591
|
-
if (!(this.
|
|
2627
|
+
if (!(this.p2g_1 === tmp0_other_with_cast.p2g_1))
|
|
2592
2628
|
return false;
|
|
2593
|
-
if (!(this.
|
|
2629
|
+
if (!(this.q2g_1 == tmp0_other_with_cast.q2g_1))
|
|
2594
2630
|
return false;
|
|
2595
2631
|
return true;
|
|
2596
2632
|
};
|
|
@@ -2607,7 +2643,7 @@
|
|
|
2607
2643
|
Companion_instance_14 = this;
|
|
2608
2644
|
}
|
|
2609
2645
|
var Companion_instance_14;
|
|
2610
|
-
function
|
|
2646
|
+
function Companion_getInstance_15() {
|
|
2611
2647
|
if (Companion_instance_14 == null)
|
|
2612
2648
|
new Companion_14();
|
|
2613
2649
|
return Companion_instance_14;
|
|
@@ -2632,10 +2668,10 @@
|
|
|
2632
2668
|
tmp0_serialDesc.b1k('checkTrumpCombination', false);
|
|
2633
2669
|
tmp0_serialDesc.b1k('checkOnlyTrumpDebertz', false);
|
|
2634
2670
|
tmp0_serialDesc.b1k('tenCardsInHand', false);
|
|
2635
|
-
this.
|
|
2671
|
+
this.w2g_1 = tmp0_serialDesc;
|
|
2636
2672
|
}
|
|
2637
2673
|
$serializer_7.prototype.p19 = function () {
|
|
2638
|
-
return this.
|
|
2674
|
+
return this.w2g_1;
|
|
2639
2675
|
};
|
|
2640
2676
|
$serializer_7.prototype.q1k = function () {
|
|
2641
2677
|
var tmp$ret$2;
|
|
@@ -2651,7 +2687,7 @@
|
|
|
2651
2687
|
return tmp$ret$2;
|
|
2652
2688
|
};
|
|
2653
2689
|
$serializer_7.prototype.r19 = function (decoder) {
|
|
2654
|
-
var tmp0_desc = this.
|
|
2690
|
+
var tmp0_desc = this.w2g_1;
|
|
2655
2691
|
var tmp1_flag = true;
|
|
2656
2692
|
var tmp2_index = 0;
|
|
2657
2693
|
var tmp3_bitMask0 = 0;
|
|
@@ -2790,32 +2826,32 @@
|
|
|
2790
2826
|
tmp21_input.x1c(tmp0_desc);
|
|
2791
2827
|
return RulesDto_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, null);
|
|
2792
2828
|
};
|
|
2793
|
-
$serializer_7.prototype.
|
|
2794
|
-
var tmp0_desc = this.
|
|
2829
|
+
$serializer_7.prototype.x2g = function (encoder, value) {
|
|
2830
|
+
var tmp0_desc = this.w2g_1;
|
|
2795
2831
|
var tmp1_output = encoder.w1c(tmp0_desc);
|
|
2796
|
-
tmp1_output.d1e(tmp0_desc, 0, value.
|
|
2797
|
-
tmp1_output.d1e(tmp0_desc, 1, value.
|
|
2798
|
-
tmp1_output.d1e(tmp0_desc, 2, value.
|
|
2799
|
-
if (tmp1_output.t1e(tmp0_desc, 3) ? true : !(value.
|
|
2800
|
-
tmp1_output.p1e(tmp0_desc, 3, BooleanSerializer_getInstance(), value.
|
|
2832
|
+
tmp1_output.d1e(tmp0_desc, 0, value.q2f_1);
|
|
2833
|
+
tmp1_output.d1e(tmp0_desc, 1, value.r2f_1);
|
|
2834
|
+
tmp1_output.d1e(tmp0_desc, 2, value.s2f_1);
|
|
2835
|
+
if (tmp1_output.t1e(tmp0_desc, 3) ? true : !(value.t2f_1 == null)) {
|
|
2836
|
+
tmp1_output.p1e(tmp0_desc, 3, BooleanSerializer_getInstance(), value.t2f_1);
|
|
2801
2837
|
}
|
|
2802
|
-
tmp1_output.d1e(tmp0_desc, 4, value.
|
|
2803
|
-
tmp1_output.d1e(tmp0_desc, 5, value.
|
|
2804
|
-
tmp1_output.d1e(tmp0_desc, 6, value.
|
|
2805
|
-
tmp1_output.d1e(tmp0_desc, 7, value.
|
|
2806
|
-
tmp1_output.d1e(tmp0_desc, 8, value.
|
|
2807
|
-
tmp1_output.d1e(tmp0_desc, 9, value.
|
|
2808
|
-
tmp1_output.d1e(tmp0_desc, 10, value.
|
|
2809
|
-
tmp1_output.d1e(tmp0_desc, 11, value.
|
|
2810
|
-
tmp1_output.g1e(tmp0_desc, 12, value.
|
|
2811
|
-
tmp1_output.d1e(tmp0_desc, 13, value.
|
|
2812
|
-
tmp1_output.d1e(tmp0_desc, 14, value.
|
|
2813
|
-
tmp1_output.d1e(tmp0_desc, 15, value.
|
|
2814
|
-
tmp1_output.d1e(tmp0_desc, 16, value.
|
|
2838
|
+
tmp1_output.d1e(tmp0_desc, 4, value.u2f_1);
|
|
2839
|
+
tmp1_output.d1e(tmp0_desc, 5, value.v2f_1);
|
|
2840
|
+
tmp1_output.d1e(tmp0_desc, 6, value.w2f_1);
|
|
2841
|
+
tmp1_output.d1e(tmp0_desc, 7, value.x2f_1);
|
|
2842
|
+
tmp1_output.d1e(tmp0_desc, 8, value.y2f_1);
|
|
2843
|
+
tmp1_output.d1e(tmp0_desc, 9, value.z2f_1);
|
|
2844
|
+
tmp1_output.d1e(tmp0_desc, 10, value.a2g_1);
|
|
2845
|
+
tmp1_output.d1e(tmp0_desc, 11, value.b2g_1);
|
|
2846
|
+
tmp1_output.g1e(tmp0_desc, 12, value.c2g_1);
|
|
2847
|
+
tmp1_output.d1e(tmp0_desc, 13, value.d2g_1);
|
|
2848
|
+
tmp1_output.d1e(tmp0_desc, 14, value.e2g_1);
|
|
2849
|
+
tmp1_output.d1e(tmp0_desc, 15, value.f2g_1);
|
|
2850
|
+
tmp1_output.d1e(tmp0_desc, 16, value.g2g_1);
|
|
2815
2851
|
tmp1_output.x1c(tmp0_desc);
|
|
2816
2852
|
};
|
|
2817
2853
|
$serializer_7.prototype.q19 = function (encoder, value) {
|
|
2818
|
-
return this.
|
|
2854
|
+
return this.x2g(encoder, value instanceof RulesDto ? value : THROW_CCE());
|
|
2819
2855
|
};
|
|
2820
2856
|
var $serializer_instance_7;
|
|
2821
2857
|
function $serializer_getInstance_7() {
|
|
@@ -2825,62 +2861,61 @@
|
|
|
2825
2861
|
}
|
|
2826
2862
|
function RulesDto_init_$Init$_0(seen1, needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand, serializationConstructorMarker, $this) {
|
|
2827
2863
|
if (!(131063 === (131063 & seen1))) {
|
|
2828
|
-
throwMissingFieldException(seen1, 131063, $serializer_getInstance_7().
|
|
2864
|
+
throwMissingFieldException(seen1, 131063, $serializer_getInstance_7().w2g_1);
|
|
2829
2865
|
}
|
|
2830
|
-
$this.
|
|
2831
|
-
$this.
|
|
2832
|
-
$this.
|
|
2866
|
+
$this.q2f_1 = needToPutHigherTrump;
|
|
2867
|
+
$this.r2f_1 = distributePoints;
|
|
2868
|
+
$this.s2f_1 = protectBella;
|
|
2833
2869
|
if (0 === (seen1 & 8))
|
|
2834
|
-
$this.
|
|
2870
|
+
$this.t2f_1 = null;
|
|
2835
2871
|
else
|
|
2836
|
-
$this.
|
|
2837
|
-
$this.
|
|
2838
|
-
$this.
|
|
2839
|
-
$this.
|
|
2840
|
-
$this.
|
|
2841
|
-
$this.
|
|
2842
|
-
$this.
|
|
2843
|
-
$this.
|
|
2844
|
-
$this.
|
|
2845
|
-
$this.
|
|
2846
|
-
$this.
|
|
2847
|
-
$this.
|
|
2848
|
-
$this.
|
|
2849
|
-
$this.
|
|
2872
|
+
$this.t2f_1 = oneTryToProtectBella;
|
|
2873
|
+
$this.u2f_1 = enableFourSevensCombination;
|
|
2874
|
+
$this.v2f_1 = enableTrumpSevenCombination;
|
|
2875
|
+
$this.w2f_1 = enableTrumpSevenCombinationAfterDistribution;
|
|
2876
|
+
$this.x2f_1 = playerWhoChooseSuitGoFirst;
|
|
2877
|
+
$this.y2f_1 = winnerShuffleCards;
|
|
2878
|
+
$this.z2f_1 = playWithoutLiabilities;
|
|
2879
|
+
$this.a2g_1 = trumpCardGoToPlayerWhoShuffleCards;
|
|
2880
|
+
$this.b2g_1 = enableFineIfNoBribes;
|
|
2881
|
+
$this.c2g_1 = fineIfNoBribes;
|
|
2882
|
+
$this.d2g_1 = enableFineAfterThirdByte;
|
|
2883
|
+
$this.e2g_1 = checkTrumpCombination;
|
|
2884
|
+
$this.f2g_1 = checkOnlyTrumpDebertz;
|
|
2885
|
+
$this.g2g_1 = tenCardsInHand;
|
|
2850
2886
|
return $this;
|
|
2851
2887
|
}
|
|
2852
2888
|
function RulesDto_init_$Create$_0(seen1, needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand, serializationConstructorMarker) {
|
|
2853
2889
|
return RulesDto_init_$Init$_0(seen1, needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand, serializationConstructorMarker, Object.create(RulesDto.prototype));
|
|
2854
2890
|
}
|
|
2855
2891
|
function RulesDto(needToPutHigherTrump, distributePoints, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, checkTrumpCombination, checkOnlyTrumpDebertz, tenCardsInHand) {
|
|
2856
|
-
|
|
2857
|
-
this.
|
|
2858
|
-
this.
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2862
|
-
this.
|
|
2863
|
-
this.
|
|
2864
|
-
this.
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2869
|
-
this.
|
|
2870
|
-
this.
|
|
2871
|
-
this.
|
|
2872
|
-
this.
|
|
2873
|
-
this.
|
|
2892
|
+
Companion_getInstance_15();
|
|
2893
|
+
this.q2f_1 = needToPutHigherTrump;
|
|
2894
|
+
this.r2f_1 = distributePoints;
|
|
2895
|
+
this.s2f_1 = protectBella;
|
|
2896
|
+
this.t2f_1 = oneTryToProtectBella;
|
|
2897
|
+
this.u2f_1 = enableFourSevensCombination;
|
|
2898
|
+
this.v2f_1 = enableTrumpSevenCombination;
|
|
2899
|
+
this.w2f_1 = enableTrumpSevenCombinationAfterDistribution;
|
|
2900
|
+
this.x2f_1 = playerWhoChooseSuitGoFirst;
|
|
2901
|
+
this.y2f_1 = winnerShuffleCards;
|
|
2902
|
+
this.z2f_1 = playWithoutLiabilities;
|
|
2903
|
+
this.a2g_1 = trumpCardGoToPlayerWhoShuffleCards;
|
|
2904
|
+
this.b2g_1 = enableFineIfNoBribes;
|
|
2905
|
+
this.c2g_1 = fineIfNoBribes;
|
|
2906
|
+
this.d2g_1 = enableFineAfterThirdByte;
|
|
2907
|
+
this.e2g_1 = checkTrumpCombination;
|
|
2908
|
+
this.f2g_1 = checkOnlyTrumpDebertz;
|
|
2909
|
+
this.g2g_1 = tenCardsInHand;
|
|
2874
2910
|
}
|
|
2875
2911
|
RulesDto.prototype.toString = function () {
|
|
2876
|
-
return 'RulesDto(needToPutHigherTrump=' + this.
|
|
2912
|
+
return 'RulesDto(needToPutHigherTrump=' + this.q2f_1 + ', distributePoints=' + this.r2f_1 + ', protectBella=' + this.s2f_1 + ', oneTryToProtectBella=' + this.t2f_1 + ', enableFourSevensCombination=' + this.u2f_1 + ', enableTrumpSevenCombination=' + this.v2f_1 + ', enableTrumpSevenCombinationAfterDistribution=' + this.w2f_1 + ', playerWhoChooseSuitGoFirst=' + this.x2f_1 + ', winnerShuffleCards=' + this.y2f_1 + ', playWithoutLiabilities=' + this.z2f_1 + ', trumpCardGoToPlayerWhoShuffleCards=' + this.a2g_1 + ', enableFineIfNoBribes=' + this.b2g_1 + ', fineIfNoBribes=' + this.c2g_1 + ', enableFineAfterThirdByte=' + this.d2g_1 + ', checkTrumpCombination=' + this.e2g_1 + ', checkOnlyTrumpDebertz=' + this.f2g_1 + ', tenCardsInHand=' + this.g2g_1 + ')';
|
|
2877
2913
|
};
|
|
2878
2914
|
RulesDto.prototype.hashCode = function () {
|
|
2879
|
-
var result = this.
|
|
2880
|
-
result = imul(result, 31) + (this.q2f_1 | 0) | 0;
|
|
2915
|
+
var result = this.q2f_1 | 0;
|
|
2881
2916
|
result = imul(result, 31) + (this.r2f_1 | 0) | 0;
|
|
2882
|
-
result = imul(result, 31) + (this.s2f_1
|
|
2883
|
-
result = imul(result, 31) + (this.t2f_1 | 0) | 0;
|
|
2917
|
+
result = imul(result, 31) + (this.s2f_1 | 0) | 0;
|
|
2918
|
+
result = imul(result, 31) + (this.t2f_1 == null ? 0 : this.t2f_1 | 0) | 0;
|
|
2884
2919
|
result = imul(result, 31) + (this.u2f_1 | 0) | 0;
|
|
2885
2920
|
result = imul(result, 31) + (this.v2f_1 | 0) | 0;
|
|
2886
2921
|
result = imul(result, 31) + (this.w2f_1 | 0) | 0;
|
|
@@ -2888,11 +2923,12 @@
|
|
|
2888
2923
|
result = imul(result, 31) + (this.y2f_1 | 0) | 0;
|
|
2889
2924
|
result = imul(result, 31) + (this.z2f_1 | 0) | 0;
|
|
2890
2925
|
result = imul(result, 31) + (this.a2g_1 | 0) | 0;
|
|
2891
|
-
result = imul(result, 31) + this.b2g_1 | 0;
|
|
2892
|
-
result = imul(result, 31) +
|
|
2926
|
+
result = imul(result, 31) + (this.b2g_1 | 0) | 0;
|
|
2927
|
+
result = imul(result, 31) + this.c2g_1 | 0;
|
|
2893
2928
|
result = imul(result, 31) + (this.d2g_1 | 0) | 0;
|
|
2894
2929
|
result = imul(result, 31) + (this.e2g_1 | 0) | 0;
|
|
2895
2930
|
result = imul(result, 31) + (this.f2g_1 | 0) | 0;
|
|
2931
|
+
result = imul(result, 31) + (this.g2g_1 | 0) | 0;
|
|
2896
2932
|
return result;
|
|
2897
2933
|
};
|
|
2898
2934
|
RulesDto.prototype.equals = function (other) {
|
|
@@ -2901,15 +2937,13 @@
|
|
|
2901
2937
|
if (!(other instanceof RulesDto))
|
|
2902
2938
|
return false;
|
|
2903
2939
|
var tmp0_other_with_cast = other instanceof RulesDto ? other : THROW_CCE();
|
|
2904
|
-
if (!(this.p2f_1 === tmp0_other_with_cast.p2f_1))
|
|
2905
|
-
return false;
|
|
2906
2940
|
if (!(this.q2f_1 === tmp0_other_with_cast.q2f_1))
|
|
2907
2941
|
return false;
|
|
2908
2942
|
if (!(this.r2f_1 === tmp0_other_with_cast.r2f_1))
|
|
2909
2943
|
return false;
|
|
2910
|
-
if (!(this.s2f_1
|
|
2944
|
+
if (!(this.s2f_1 === tmp0_other_with_cast.s2f_1))
|
|
2911
2945
|
return false;
|
|
2912
|
-
if (!(this.t2f_1
|
|
2946
|
+
if (!(this.t2f_1 == tmp0_other_with_cast.t2f_1))
|
|
2913
2947
|
return false;
|
|
2914
2948
|
if (!(this.u2f_1 === tmp0_other_with_cast.u2f_1))
|
|
2915
2949
|
return false;
|
|
@@ -2935,18 +2969,20 @@
|
|
|
2935
2969
|
return false;
|
|
2936
2970
|
if (!(this.f2g_1 === tmp0_other_with_cast.f2g_1))
|
|
2937
2971
|
return false;
|
|
2972
|
+
if (!(this.g2g_1 === tmp0_other_with_cast.g2g_1))
|
|
2973
|
+
return false;
|
|
2938
2974
|
return true;
|
|
2939
2975
|
};
|
|
2940
2976
|
function CardGrowthComparator(trump, firstCardSuit) {
|
|
2941
|
-
this.
|
|
2942
|
-
this.
|
|
2977
|
+
this.y2g_1 = trump;
|
|
2978
|
+
this.z2g_1 = firstCardSuit;
|
|
2943
2979
|
}
|
|
2944
|
-
CardGrowthComparator.prototype.
|
|
2945
|
-
return getGrowth(b, this.
|
|
2980
|
+
CardGrowthComparator.prototype.a2h = function (a, b) {
|
|
2981
|
+
return getGrowth(b, this.y2g_1, this.z2g_1) - getGrowth(a, this.y2g_1, this.z2g_1) | 0;
|
|
2946
2982
|
};
|
|
2947
2983
|
CardGrowthComparator.prototype.compare = function (a, b) {
|
|
2948
2984
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
2949
|
-
return this.
|
|
2985
|
+
return this.a2h(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
2950
2986
|
};
|
|
2951
2987
|
function filterByCardName(_this__u8e3s4, name) {
|
|
2952
2988
|
var tmp$ret$1;
|
|
@@ -2969,12 +3005,12 @@
|
|
|
2969
3005
|
function CardIndexComparator() {
|
|
2970
3006
|
CardIndexComparator_instance = this;
|
|
2971
3007
|
}
|
|
2972
|
-
CardIndexComparator.prototype.
|
|
2973
|
-
return a.
|
|
3008
|
+
CardIndexComparator.prototype.a2h = function (a, b) {
|
|
3009
|
+
return a.n2f_1 - b.n2f_1 | 0;
|
|
2974
3010
|
};
|
|
2975
3011
|
CardIndexComparator.prototype.compare = function (a, b) {
|
|
2976
3012
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
2977
|
-
return this.
|
|
3013
|
+
return this.a2h(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
2978
3014
|
};
|
|
2979
3015
|
var CardIndexComparator_instance;
|
|
2980
3016
|
function CardIndexComparator_getInstance() {
|
|
@@ -3003,12 +3039,12 @@
|
|
|
3003
3039
|
function CardNumberComparator() {
|
|
3004
3040
|
CardNumberComparator_instance = this;
|
|
3005
3041
|
}
|
|
3006
|
-
CardNumberComparator.prototype.
|
|
3007
|
-
return b.
|
|
3042
|
+
CardNumberComparator.prototype.a2h = function (a, b) {
|
|
3043
|
+
return b.b2h() - a.b2h() | 0;
|
|
3008
3044
|
};
|
|
3009
3045
|
CardNumberComparator.prototype.compare = function (a, b) {
|
|
3010
3046
|
var tmp = a instanceof GameCard ? a : THROW_CCE();
|
|
3011
|
-
return this.
|
|
3047
|
+
return this.a2h(tmp, b instanceof GameCard ? b : THROW_CCE());
|
|
3012
3048
|
};
|
|
3013
3049
|
var CardNumberComparator_instance;
|
|
3014
3050
|
function CardNumberComparator_getInstance() {
|
|
@@ -3017,7 +3053,7 @@
|
|
|
3017
3053
|
return CardNumberComparator_instance;
|
|
3018
3054
|
}
|
|
3019
3055
|
function getPoint(_this__u8e3s4, trump) {
|
|
3020
|
-
var isNotTrump = !trump.equals(_this__u8e3s4.
|
|
3056
|
+
var isNotTrump = !trump.equals(_this__u8e3s4.c2h());
|
|
3021
3057
|
var tmp0_subject = _this__u8e3s4.zf();
|
|
3022
3058
|
var tmp0 = tmp0_subject.n4_1;
|
|
3023
3059
|
var tmp;
|
|
@@ -3051,8 +3087,8 @@
|
|
|
3051
3087
|
}
|
|
3052
3088
|
function getGrowth(_this__u8e3s4, trump, firstCardSuit) {
|
|
3053
3089
|
var minPoint = 0;
|
|
3054
|
-
var isTrump = trump.equals(_this__u8e3s4.
|
|
3055
|
-
var isCurrentSuit = firstCardSuit.equals(_this__u8e3s4.
|
|
3090
|
+
var isTrump = trump.equals(_this__u8e3s4.c2h());
|
|
3091
|
+
var isCurrentSuit = firstCardSuit.equals(_this__u8e3s4.c2h());
|
|
3056
3092
|
var minGrowth;
|
|
3057
3093
|
var maxGrowth;
|
|
3058
3094
|
var tmp0_subject = _this__u8e3s4.zf();
|
|
@@ -3150,7 +3186,7 @@
|
|
|
3150
3186
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3151
3187
|
var tmp$ret$0;
|
|
3152
3188
|
// Inline function 'com.logic.data.models.table.cards.bySuitPredicate.<anonymous>.<anonymous>' call
|
|
3153
|
-
tmp$ret$0 = p1.
|
|
3189
|
+
tmp$ret$0 = p1.c2h().equals(element);
|
|
3154
3190
|
if (tmp$ret$0) {
|
|
3155
3191
|
tmp$ret$1 = true;
|
|
3156
3192
|
break $l$block;
|
|
@@ -3198,10 +3234,10 @@
|
|
|
3198
3234
|
function Companion_15() {
|
|
3199
3235
|
Companion_instance_15 = this;
|
|
3200
3236
|
}
|
|
3201
|
-
Companion_15.prototype.
|
|
3202
|
-
return new GameCard(getNumber(
|
|
3237
|
+
Companion_15.prototype.d2h = function (suit, cardNumber) {
|
|
3238
|
+
return new GameCard(getNumber(Companion_getInstance_17(), cardNumber, suit));
|
|
3203
3239
|
};
|
|
3204
|
-
Companion_15.prototype.
|
|
3240
|
+
Companion_15.prototype.e2h = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
|
|
3205
3241
|
var tmp0_safe_receiver = previousStubCardWithMaxIndex;
|
|
3206
3242
|
var tmp;
|
|
3207
3243
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3213,7 +3249,7 @@
|
|
|
3213
3249
|
var tmp_0;
|
|
3214
3250
|
var tmp$ret$0;
|
|
3215
3251
|
// Inline function 'com.logic.data.models.table.cards.Companion.createUniqueStub.<anonymous>' call
|
|
3216
|
-
tmp$ret$0 = tmp0_safe_receiver.
|
|
3252
|
+
tmp$ret$0 = tmp0_safe_receiver.f2h();
|
|
3217
3253
|
if (tmp$ret$0) {
|
|
3218
3254
|
tmp_0 = tmp0_safe_receiver;
|
|
3219
3255
|
} else {
|
|
@@ -3223,8 +3259,8 @@
|
|
|
3223
3259
|
tmp = tmp$ret$1;
|
|
3224
3260
|
}
|
|
3225
3261
|
var tmp1_safe_receiver = tmp;
|
|
3226
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
3227
|
-
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null :
|
|
3262
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n2f_1;
|
|
3263
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_getInstance_17().k2h(tmp2_safe_receiver, playerIndex, reverse);
|
|
3228
3264
|
var tmp_1;
|
|
3229
3265
|
if (tmp3_safe_receiver == null) {
|
|
3230
3266
|
tmp_1 = null;
|
|
@@ -3242,26 +3278,26 @@
|
|
|
3242
3278
|
var previousGameCardIndex = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
3243
3279
|
var tmp_2;
|
|
3244
3280
|
if (reverse) {
|
|
3245
|
-
|
|
3246
|
-
|
|
3281
|
+
Companion_getInstance_17();
|
|
3282
|
+
Companion_getInstance_17();
|
|
3247
3283
|
tmp_2 = ((53 + imul(playerIndex, 13 + 1 | 0) | 0) - position | 0) - previousGameCardIndex | 0;
|
|
3248
3284
|
} else {
|
|
3249
|
-
|
|
3250
|
-
|
|
3285
|
+
Companion_getInstance_17();
|
|
3286
|
+
Companion_getInstance_17();
|
|
3251
3287
|
tmp_2 = ((53 + imul(playerIndex, 13) | 0) + position | 0) + previousGameCardIndex | 0;
|
|
3252
3288
|
}
|
|
3253
3289
|
var index = tmp_2;
|
|
3254
3290
|
return new GameCard(index);
|
|
3255
3291
|
};
|
|
3256
|
-
Companion_15.prototype.
|
|
3292
|
+
Companion_15.prototype.l2h = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $mask0, $handler) {
|
|
3257
3293
|
if (!(($mask0 & 4) === 0))
|
|
3258
3294
|
previousStubCardWithMaxIndex = null;
|
|
3259
3295
|
if (!(($mask0 & 8) === 0))
|
|
3260
3296
|
reverse = false;
|
|
3261
|
-
return this.
|
|
3297
|
+
return this.e2h(position, playerIndex, previousStubCardWithMaxIndex, reverse);
|
|
3262
3298
|
};
|
|
3263
3299
|
var Companion_instance_15;
|
|
3264
|
-
function
|
|
3300
|
+
function Companion_getInstance_16() {
|
|
3265
3301
|
if (Companion_instance_15 == null)
|
|
3266
3302
|
new Companion_15();
|
|
3267
3303
|
return Companion_instance_15;
|
|
@@ -3367,8 +3403,8 @@
|
|
|
3367
3403
|
return tmp;
|
|
3368
3404
|
}
|
|
3369
3405
|
function _get_isShirt__vd98rp($this) {
|
|
3370
|
-
var tmp = $this.
|
|
3371
|
-
|
|
3406
|
+
var tmp = $this.n2f_1;
|
|
3407
|
+
Companion_getInstance_17();
|
|
3372
3408
|
return tmp === 52;
|
|
3373
3409
|
}
|
|
3374
3410
|
function CardName(name, ordinal) {
|
|
@@ -3376,12 +3412,12 @@
|
|
|
3376
3412
|
}
|
|
3377
3413
|
function Companion_16() {
|
|
3378
3414
|
Companion_instance_16 = this;
|
|
3379
|
-
this.
|
|
3380
|
-
this.
|
|
3381
|
-
this.
|
|
3382
|
-
this.
|
|
3415
|
+
this.g2h_1 = -1;
|
|
3416
|
+
this.h2h_1 = 13;
|
|
3417
|
+
this.i2h_1 = 52;
|
|
3418
|
+
this.j2h_1 = 53;
|
|
3383
3419
|
}
|
|
3384
|
-
Companion_16.prototype.
|
|
3420
|
+
Companion_16.prototype.k2h = function (_this__u8e3s4, playerIndex, reverse) {
|
|
3385
3421
|
var tmp;
|
|
3386
3422
|
if (reverse) {
|
|
3387
3423
|
tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
|
|
@@ -3391,7 +3427,7 @@
|
|
|
3391
3427
|
return tmp;
|
|
3392
3428
|
};
|
|
3393
3429
|
var Companion_instance_16;
|
|
3394
|
-
function
|
|
3430
|
+
function Companion_getInstance_17() {
|
|
3395
3431
|
if (Companion_instance_16 == null)
|
|
3396
3432
|
new Companion_16();
|
|
3397
3433
|
return Companion_instance_16;
|
|
@@ -3453,70 +3489,70 @@
|
|
|
3453
3489
|
return CardName_STUB_instance;
|
|
3454
3490
|
}
|
|
3455
3491
|
function GameCard(index) {
|
|
3456
|
-
|
|
3457
|
-
this.
|
|
3492
|
+
Companion_getInstance_17();
|
|
3493
|
+
this.n2f_1 = index;
|
|
3458
3494
|
}
|
|
3459
|
-
GameCard.prototype.
|
|
3495
|
+
GameCard.prototype.c2h = function () {
|
|
3460
3496
|
var tmp;
|
|
3461
|
-
|
|
3497
|
+
Companion_getInstance_17();
|
|
3462
3498
|
var containsUpper = 13;
|
|
3463
|
-
var containsArg = this.
|
|
3499
|
+
var containsArg = this.n2f_1;
|
|
3464
3500
|
if (0 <= containsArg ? containsArg <= containsUpper : false) {
|
|
3465
3501
|
tmp = Suit_DIAMOND_getInstance();
|
|
3466
3502
|
} else {
|
|
3467
|
-
var tmp_0 = this.
|
|
3468
|
-
|
|
3503
|
+
var tmp_0 = this.n2f_1;
|
|
3504
|
+
Companion_getInstance_17();
|
|
3469
3505
|
if (tmp_0 <= imul(13, 2)) {
|
|
3470
3506
|
tmp = Suit_SPADE_getInstance();
|
|
3471
3507
|
} else {
|
|
3472
|
-
var tmp_1 = this.
|
|
3473
|
-
|
|
3508
|
+
var tmp_1 = this.n2f_1;
|
|
3509
|
+
Companion_getInstance_17();
|
|
3474
3510
|
if (tmp_1 <= imul(13, 3)) {
|
|
3475
3511
|
tmp = Suit_HEART_getInstance();
|
|
3476
3512
|
} else {
|
|
3477
|
-
var tmp_2 = this.
|
|
3478
|
-
|
|
3513
|
+
var tmp_2 = this.n2f_1;
|
|
3514
|
+
Companion_getInstance_17();
|
|
3479
3515
|
if (tmp_2 <= imul(13, 4)) {
|
|
3480
3516
|
tmp = Suit_CLUB_getInstance();
|
|
3481
3517
|
} else {
|
|
3482
|
-
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.
|
|
3518
|
+
throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.n2f_1);
|
|
3483
3519
|
}
|
|
3484
3520
|
}
|
|
3485
3521
|
}
|
|
3486
3522
|
}
|
|
3487
3523
|
return tmp;
|
|
3488
3524
|
};
|
|
3489
|
-
GameCard.prototype.
|
|
3525
|
+
GameCard.prototype.b2h = function () {
|
|
3490
3526
|
var tmp;
|
|
3491
|
-
if (this.
|
|
3492
|
-
|
|
3527
|
+
if (this.f2h()) {
|
|
3528
|
+
Companion_getInstance_17();
|
|
3493
3529
|
tmp = -1;
|
|
3494
3530
|
} else {
|
|
3495
|
-
var tmp_0 = this.
|
|
3496
|
-
|
|
3497
|
-
tmp = tmp_0 - imul(13, getIndex(this.
|
|
3531
|
+
var tmp_0 = this.n2f_1;
|
|
3532
|
+
Companion_getInstance_17();
|
|
3533
|
+
tmp = tmp_0 - imul(13, getIndex(this.c2h())) | 0;
|
|
3498
3534
|
}
|
|
3499
3535
|
return tmp;
|
|
3500
3536
|
};
|
|
3501
3537
|
GameCard.prototype.zf = function () {
|
|
3502
|
-
return this.
|
|
3538
|
+
return this.f2h() ? CardName_STUB_getInstance() : getName(Companion_getInstance_17(), this.b2h());
|
|
3503
3539
|
};
|
|
3504
|
-
GameCard.prototype.
|
|
3505
|
-
var tmp = this.
|
|
3506
|
-
|
|
3540
|
+
GameCard.prototype.f2h = function () {
|
|
3541
|
+
var tmp = this.n2f_1;
|
|
3542
|
+
Companion_getInstance_17();
|
|
3507
3543
|
return tmp >= 53;
|
|
3508
3544
|
};
|
|
3509
3545
|
GameCard.prototype.toString = function () {
|
|
3510
3546
|
if (_get_isShirt__vd98rp(this)) {
|
|
3511
3547
|
return 'GameCard(SHIRT)';
|
|
3512
3548
|
}
|
|
3513
|
-
if (this.
|
|
3514
|
-
return 'GameCard(STUB, ' + this.
|
|
3549
|
+
if (this.f2h()) {
|
|
3550
|
+
return 'GameCard(STUB, ' + this.n2f_1 + ')';
|
|
3515
3551
|
}
|
|
3516
|
-
return 'GameCard(' + this.zf() + ', suit: ' + this.
|
|
3552
|
+
return 'GameCard(' + this.zf() + ', suit: ' + this.c2h() + ', index=' + this.n2f_1 + ')';
|
|
3517
3553
|
};
|
|
3518
3554
|
GameCard.prototype.hashCode = function () {
|
|
3519
|
-
return this.
|
|
3555
|
+
return this.n2f_1;
|
|
3520
3556
|
};
|
|
3521
3557
|
GameCard.prototype.equals = function (other) {
|
|
3522
3558
|
if (this === other)
|
|
@@ -3524,23 +3560,23 @@
|
|
|
3524
3560
|
if (!(other instanceof GameCard))
|
|
3525
3561
|
return false;
|
|
3526
3562
|
var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
|
|
3527
|
-
if (!(this.
|
|
3563
|
+
if (!(this.n2f_1 === tmp0_other_with_cast.n2f_1))
|
|
3528
3564
|
return false;
|
|
3529
3565
|
return true;
|
|
3530
3566
|
};
|
|
3531
3567
|
function GameCardWIthPlayerId(playerId, gameCard) {
|
|
3532
|
-
this.
|
|
3533
|
-
this.
|
|
3568
|
+
this.o2f_1 = playerId;
|
|
3569
|
+
this.p2f_1 = gameCard;
|
|
3534
3570
|
}
|
|
3535
3571
|
GameCardWIthPlayerId.prototype.w2c = function () {
|
|
3536
|
-
return this.
|
|
3572
|
+
return this.o2f_1;
|
|
3537
3573
|
};
|
|
3538
3574
|
GameCardWIthPlayerId.prototype.toString = function () {
|
|
3539
|
-
return 'GameCardWIthPlayerId(playerId=' + this.
|
|
3575
|
+
return 'GameCardWIthPlayerId(playerId=' + this.o2f_1 + ', gameCard=' + this.p2f_1 + ')';
|
|
3540
3576
|
};
|
|
3541
3577
|
GameCardWIthPlayerId.prototype.hashCode = function () {
|
|
3542
|
-
var result = getStringHashCode(this.
|
|
3543
|
-
result = imul(result, 31) + this.
|
|
3578
|
+
var result = getStringHashCode(this.o2f_1);
|
|
3579
|
+
result = imul(result, 31) + this.p2f_1.hashCode() | 0;
|
|
3544
3580
|
return result;
|
|
3545
3581
|
};
|
|
3546
3582
|
GameCardWIthPlayerId.prototype.equals = function (other) {
|
|
@@ -3549,9 +3585,9 @@
|
|
|
3549
3585
|
if (!(other instanceof GameCardWIthPlayerId))
|
|
3550
3586
|
return false;
|
|
3551
3587
|
var tmp0_other_with_cast = other instanceof GameCardWIthPlayerId ? other : THROW_CCE();
|
|
3552
|
-
if (!(this.
|
|
3588
|
+
if (!(this.o2f_1 === tmp0_other_with_cast.o2f_1))
|
|
3553
3589
|
return false;
|
|
3554
|
-
if (!this.
|
|
3590
|
+
if (!this.p2f_1.equals(tmp0_other_with_cast.p2f_1))
|
|
3555
3591
|
return false;
|
|
3556
3592
|
return true;
|
|
3557
3593
|
};
|
|
@@ -3562,15 +3598,15 @@
|
|
|
3562
3598
|
}
|
|
3563
3599
|
});
|
|
3564
3600
|
function ProcessingCard(gameCard, payload) {
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3601
|
+
this.m2h_1 = gameCard;
|
|
3602
|
+
this.n2h_1 = payload;
|
|
3567
3603
|
}
|
|
3568
3604
|
ProcessingCard.prototype.toString = function () {
|
|
3569
|
-
return 'ProcessingCard(gameCard=' + this.
|
|
3605
|
+
return 'ProcessingCard(gameCard=' + this.m2h_1 + ', payload=' + this.n2h_1 + ')';
|
|
3570
3606
|
};
|
|
3571
3607
|
ProcessingCard.prototype.hashCode = function () {
|
|
3572
|
-
var result = this.
|
|
3573
|
-
result = imul(result, 31) + (this.
|
|
3608
|
+
var result = this.m2h_1.hashCode();
|
|
3609
|
+
result = imul(result, 31) + (this.n2h_1 == null ? 0 : hashCode(this.n2h_1)) | 0;
|
|
3574
3610
|
return result;
|
|
3575
3611
|
};
|
|
3576
3612
|
ProcessingCard.prototype.equals = function (other) {
|
|
@@ -3579,9 +3615,9 @@
|
|
|
3579
3615
|
if (!(other instanceof ProcessingCard))
|
|
3580
3616
|
return false;
|
|
3581
3617
|
var tmp0_other_with_cast = other instanceof ProcessingCard ? other : THROW_CCE();
|
|
3582
|
-
if (!this.
|
|
3618
|
+
if (!this.m2h_1.equals(tmp0_other_with_cast.m2h_1))
|
|
3583
3619
|
return false;
|
|
3584
|
-
if (!equals(this.
|
|
3620
|
+
if (!equals(this.n2h_1, tmp0_other_with_cast.n2h_1))
|
|
3585
3621
|
return false;
|
|
3586
3622
|
return true;
|
|
3587
3623
|
};
|
|
@@ -3596,16 +3632,16 @@
|
|
|
3596
3632
|
Companion_instance_17 = this;
|
|
3597
3633
|
var tmp = this;
|
|
3598
3634
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3599
|
-
tmp.
|
|
3635
|
+
tmp.o2h_1 = lazy(tmp_0, Suit$Companion$$cachedSerializer$delegate$_anonymous__8wfs3b);
|
|
3600
3636
|
}
|
|
3601
3637
|
Companion_17.prototype.l1w = function () {
|
|
3602
|
-
return this.
|
|
3638
|
+
return this.o2h_1.j1();
|
|
3603
3639
|
};
|
|
3604
3640
|
Companion_17.prototype.b1l = function (typeParamsSerializers) {
|
|
3605
3641
|
return this.l1w();
|
|
3606
3642
|
};
|
|
3607
3643
|
var Companion_instance_17;
|
|
3608
|
-
function
|
|
3644
|
+
function Companion_getInstance_18() {
|
|
3609
3645
|
Suit_initEntries();
|
|
3610
3646
|
if (Companion_instance_17 == null)
|
|
3611
3647
|
new Companion_17();
|
|
@@ -3623,7 +3659,7 @@
|
|
|
3623
3659
|
Suit_SPADE_instance = new Suit('SPADE', 1);
|
|
3624
3660
|
Suit_HEART_instance = new Suit('HEART', 2);
|
|
3625
3661
|
Suit_CLUB_instance = new Suit('CLUB', 3);
|
|
3626
|
-
|
|
3662
|
+
Companion_getInstance_18();
|
|
3627
3663
|
}
|
|
3628
3664
|
function Suit(name, ordinal) {
|
|
3629
3665
|
Enum.call(this, name, ordinal);
|
|
@@ -3668,81 +3704,81 @@
|
|
|
3668
3704
|
return tmp;
|
|
3669
3705
|
}
|
|
3670
3706
|
function _no_name_provided__qut3iv($logger) {
|
|
3671
|
-
this.
|
|
3707
|
+
this.q2h_1 = $logger;
|
|
3672
3708
|
AbstractCoroutineContextElement.call(this, Key_getInstance());
|
|
3673
3709
|
}
|
|
3674
3710
|
_no_name_provided__qut3iv.prototype.vm = function (context, exception) {
|
|
3675
3711
|
var tmp = 'AsyncProvider error: ' + exception;
|
|
3676
|
-
return this.
|
|
3712
|
+
return this.q2h_1.r2h('AsyncErrorHandler', tmp, exception, null, 8, null);
|
|
3677
3713
|
};
|
|
3678
3714
|
function AsyncProviderImpl(logger) {
|
|
3679
3715
|
var tmp = this;
|
|
3680
|
-
tmp.
|
|
3716
|
+
tmp.s2h_1 = Job$default(null, 1, null);
|
|
3681
3717
|
var tmp_0 = this;
|
|
3682
3718
|
var tmp$ret$0;
|
|
3683
3719
|
// Inline function 'kotlinx.coroutines.CoroutineExceptionHandler' call
|
|
3684
3720
|
tmp$ret$0 = new _no_name_provided__qut3iv(logger);
|
|
3685
|
-
tmp_0.
|
|
3686
|
-
this.
|
|
3687
|
-
this.
|
|
3721
|
+
tmp_0.t2h_1 = tmp$ret$0;
|
|
3722
|
+
this.u2h_1 = CoroutineScope(Dispatchers_getInstance().vq().h4(this.s2h_1));
|
|
3723
|
+
this.v2h_1 = CoroutineScope(Dispatchers_getInstance().rq_1.h4(this.s2h_1));
|
|
3688
3724
|
}
|
|
3689
|
-
AsyncProviderImpl.prototype.
|
|
3690
|
-
return this.
|
|
3725
|
+
AsyncProviderImpl.prototype.w2h = function () {
|
|
3726
|
+
return this.t2h_1;
|
|
3691
3727
|
};
|
|
3692
|
-
AsyncProviderImpl.prototype.
|
|
3693
|
-
return launch$default(this.t2h_1, context, null, block, 2, null);
|
|
3694
|
-
};
|
|
3695
|
-
AsyncProviderImpl.prototype.y2h = function (context, block) {
|
|
3728
|
+
AsyncProviderImpl.prototype.x2h = function (context, block) {
|
|
3696
3729
|
return launch$default(this.u2h_1, context, null, block, 2, null);
|
|
3697
3730
|
};
|
|
3731
|
+
AsyncProviderImpl.prototype.z2h = function (context, block) {
|
|
3732
|
+
return launch$default(this.v2h_1, context, null, block, 2, null);
|
|
3733
|
+
};
|
|
3698
3734
|
AsyncProviderImpl.prototype.nk = function () {
|
|
3699
|
-
if (!this.
|
|
3700
|
-
this.
|
|
3735
|
+
if (!this.s2h_1.np()) {
|
|
3736
|
+
this.s2h_1.lj(null, 1, null);
|
|
3701
3737
|
}
|
|
3702
3738
|
};
|
|
3703
3739
|
function AsyncProvider() {
|
|
3704
3740
|
}
|
|
3705
3741
|
function UUIDIdsProvider() {
|
|
3706
3742
|
}
|
|
3707
|
-
UUIDIdsProvider.prototype.
|
|
3743
|
+
UUIDIdsProvider.prototype.b2i = function () {
|
|
3708
3744
|
return uuid4().toString();
|
|
3709
3745
|
};
|
|
3710
3746
|
function IdsProvider() {
|
|
3711
3747
|
}
|
|
3712
3748
|
function JobsProviderImpl(logger) {
|
|
3713
|
-
this.
|
|
3749
|
+
this.c2i_1 = logger;
|
|
3714
3750
|
var tmp = this;
|
|
3715
3751
|
var tmp$ret$0;
|
|
3716
3752
|
// Inline function 'kotlin.collections.hashMapOf' call
|
|
3717
3753
|
tmp$ret$0 = HashMap_init_$Create$();
|
|
3718
|
-
tmp.
|
|
3754
|
+
tmp.d2i_1 = tmp$ret$0;
|
|
3719
3755
|
}
|
|
3720
|
-
JobsProviderImpl.prototype.
|
|
3721
|
-
if (this.
|
|
3756
|
+
JobsProviderImpl.prototype.e2i = function (timerTag, job) {
|
|
3757
|
+
if (this.g2i(timerTag)) {
|
|
3722
3758
|
var tmp = 'Timer already exists for that tag: ' + timerTag;
|
|
3723
|
-
this.
|
|
3759
|
+
this.c2i_1.f2i(null, tmp, null, 5, null);
|
|
3724
3760
|
}
|
|
3725
3761
|
// Inline function 'kotlin.collections.set' call
|
|
3726
|
-
var tmp0_set = this.
|
|
3762
|
+
var tmp0_set = this.d2i_1;
|
|
3727
3763
|
tmp0_set.w2(timerTag, job);
|
|
3728
3764
|
};
|
|
3729
|
-
JobsProviderImpl.prototype.f2i = function (timerTag) {
|
|
3730
|
-
return this.c2i_1.q1(timerTag);
|
|
3731
|
-
};
|
|
3732
3765
|
JobsProviderImpl.prototype.g2i = function (timerTag) {
|
|
3733
|
-
|
|
3766
|
+
return this.d2i_1.q1(timerTag);
|
|
3767
|
+
};
|
|
3768
|
+
JobsProviderImpl.prototype.h2i = function (timerTag) {
|
|
3769
|
+
if (!this.g2i(timerTag)) {
|
|
3734
3770
|
var tmp = "Can't find timer for that tag: " + timerTag;
|
|
3735
|
-
this.
|
|
3771
|
+
this.c2i_1.f2i(null, tmp, null, 5, null);
|
|
3736
3772
|
}
|
|
3737
|
-
this.
|
|
3773
|
+
this.d2i_1.sb(timerTag);
|
|
3738
3774
|
};
|
|
3739
|
-
JobsProviderImpl.prototype.
|
|
3775
|
+
JobsProviderImpl.prototype.i2i = function (timers) {
|
|
3740
3776
|
// Inline function 'kotlin.collections.forEach' call
|
|
3741
3777
|
var tmp0_iterator = timers.g();
|
|
3742
3778
|
while (tmp0_iterator.h()) {
|
|
3743
3779
|
var element = tmp0_iterator.i();
|
|
3744
3780
|
// Inline function 'com.logic.data.providers.JobsProviderImpl.cancelJobs.<anonymous>' call
|
|
3745
|
-
var timer = this.
|
|
3781
|
+
var timer = this.d2i_1.t1(element);
|
|
3746
3782
|
var tmp0_safe_receiver = timer;
|
|
3747
3783
|
if (tmp0_safe_receiver == null)
|
|
3748
3784
|
null;
|
|
@@ -3750,11 +3786,11 @@
|
|
|
3750
3786
|
tmp0_safe_receiver.lj(null, 1, null);
|
|
3751
3787
|
}
|
|
3752
3788
|
}
|
|
3753
|
-
this.
|
|
3789
|
+
this.d2i_1.u1().qa(toSet(timers));
|
|
3754
3790
|
};
|
|
3755
|
-
JobsProviderImpl.prototype.
|
|
3756
|
-
var timer = this.
|
|
3757
|
-
this.
|
|
3791
|
+
JobsProviderImpl.prototype.j2i = function (timerTag) {
|
|
3792
|
+
var timer = this.d2i_1.t1(timerTag);
|
|
3793
|
+
this.d2i_1.sb(timerTag);
|
|
3758
3794
|
var tmp0_safe_receiver = timer;
|
|
3759
3795
|
if (tmp0_safe_receiver == null)
|
|
3760
3796
|
null;
|
|
@@ -3908,10 +3944,10 @@
|
|
|
3908
3944
|
}
|
|
3909
3945
|
function createStore$dispatch(currentState, currentReducer, $logger, action) {
|
|
3910
3946
|
try {
|
|
3911
|
-
currentState.fy(currentReducer._v.
|
|
3947
|
+
currentState.fy(currentReducer._v.k2i(currentState.j1(), action));
|
|
3912
3948
|
} catch ($p) {
|
|
3913
3949
|
if ($p instanceof Exception) {
|
|
3914
|
-
$logger.
|
|
3950
|
+
$logger.r2h('createStore.dispatch', null, $p, null, 10, null);
|
|
3915
3951
|
} else {
|
|
3916
3952
|
throw $p;
|
|
3917
3953
|
}
|
|
@@ -3943,46 +3979,46 @@
|
|
|
3943
3979
|
return l;
|
|
3944
3980
|
}
|
|
3945
3981
|
function createStore$2($currentState, $currentReducer, $logger) {
|
|
3946
|
-
this.
|
|
3982
|
+
this.n2i_1 = $currentState;
|
|
3947
3983
|
var tmp = this;
|
|
3948
|
-
tmp.
|
|
3984
|
+
tmp.l2i_1 = createStore$dispatch$ref($currentState, $currentReducer, $logger);
|
|
3949
3985
|
var tmp_0 = this;
|
|
3950
|
-
tmp_0.
|
|
3986
|
+
tmp_0.m2i_1 = createStore$replaceReducer$ref($currentReducer, $currentState, $logger);
|
|
3951
3987
|
}
|
|
3952
|
-
createStore$2.prototype.
|
|
3953
|
-
this.
|
|
3954
|
-
};
|
|
3955
|
-
createStore$2.prototype.o2i = function () {
|
|
3956
|
-
return this.k2i_1;
|
|
3988
|
+
createStore$2.prototype.o2i = function (_set____db54di) {
|
|
3989
|
+
this.l2i_1 = _set____db54di;
|
|
3957
3990
|
};
|
|
3958
3991
|
createStore$2.prototype.p2i = function () {
|
|
3959
|
-
return this.
|
|
3992
|
+
return this.l2i_1;
|
|
3960
3993
|
};
|
|
3961
3994
|
createStore$2.prototype.q2i = function () {
|
|
3962
|
-
return this.
|
|
3995
|
+
return this.n2i_1;
|
|
3996
|
+
};
|
|
3997
|
+
createStore$2.prototype.r2i = function () {
|
|
3998
|
+
return this.m2i_1;
|
|
3963
3999
|
};
|
|
3964
4000
|
createStore$2.prototype.xi = function () {
|
|
3965
|
-
return this.
|
|
4001
|
+
return this.n2i_1.j1();
|
|
3966
4002
|
};
|
|
3967
4003
|
Object.defineProperty(createStore$2.prototype, 'dispatch', {
|
|
3968
4004
|
configurable: true,
|
|
3969
4005
|
get: function () {
|
|
3970
|
-
return this.
|
|
4006
|
+
return this.p2i();
|
|
3971
4007
|
},
|
|
3972
4008
|
set: function (value) {
|
|
3973
|
-
this.
|
|
4009
|
+
this.o2i(value);
|
|
3974
4010
|
}
|
|
3975
4011
|
});
|
|
3976
4012
|
Object.defineProperty(createStore$2.prototype, 'observe', {
|
|
3977
4013
|
configurable: true,
|
|
3978
4014
|
get: function () {
|
|
3979
|
-
return this.
|
|
4015
|
+
return this.q2i();
|
|
3980
4016
|
}
|
|
3981
4017
|
});
|
|
3982
4018
|
Object.defineProperty(createStore$2.prototype, 'replaceReducer', {
|
|
3983
4019
|
configurable: true,
|
|
3984
4020
|
get: function () {
|
|
3985
|
-
return this.
|
|
4021
|
+
return this.r2i();
|
|
3986
4022
|
}
|
|
3987
4023
|
});
|
|
3988
4024
|
Object.defineProperty(createStore$2.prototype, 'state', {
|
|
@@ -4015,10 +4051,10 @@
|
|
|
4015
4051
|
return new middleware$1(dispatch);
|
|
4016
4052
|
}
|
|
4017
4053
|
function middleware$1($dispatch) {
|
|
4018
|
-
this.
|
|
4054
|
+
this.v2i_1 = $dispatch;
|
|
4019
4055
|
}
|
|
4020
|
-
middleware$1.prototype.
|
|
4021
|
-
this.
|
|
4056
|
+
middleware$1.prototype.u2i = function (store, next, action) {
|
|
4057
|
+
this.v2i_1(store, next, action);
|
|
4022
4058
|
};
|
|
4023
4059
|
function Reducer() {
|
|
4024
4060
|
}
|
|
@@ -4026,9 +4062,9 @@
|
|
|
4026
4062
|
return new combineReducers$1(reducers);
|
|
4027
4063
|
}
|
|
4028
4064
|
function combineReducers$1($reducers) {
|
|
4029
|
-
this.
|
|
4065
|
+
this.w2i_1 = $reducers;
|
|
4030
4066
|
}
|
|
4031
|
-
combineReducers$1.prototype.
|
|
4067
|
+
combineReducers$1.prototype.x2i = function (state, action) {
|
|
4032
4068
|
var tmp$ret$4;
|
|
4033
4069
|
// Inline function 'kotlin.collections.fold' call
|
|
4034
4070
|
var tmp$ret$2;
|
|
@@ -4036,7 +4072,7 @@
|
|
|
4036
4072
|
var tmp$ret$1;
|
|
4037
4073
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4038
4074
|
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
4039
|
-
var indexedObject = this.
|
|
4075
|
+
var indexedObject = this.w2i_1;
|
|
4040
4076
|
var inductionVariable = 0;
|
|
4041
4077
|
var last = indexedObject.length;
|
|
4042
4078
|
while (inductionVariable < last) {
|
|
@@ -4044,7 +4080,7 @@
|
|
|
4044
4080
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4045
4081
|
var tmp$ret$0;
|
|
4046
4082
|
// Inline function 'com.logic.domain.engine.definitions.<no name provided>.reduce.<anonymous>' call
|
|
4047
|
-
tmp$ret$0 = element.
|
|
4083
|
+
tmp$ret$0 = element.t2i(action);
|
|
4048
4084
|
if (tmp$ret$0) {
|
|
4049
4085
|
tmp0_filterTo.a(element);
|
|
4050
4086
|
}
|
|
@@ -4059,14 +4095,14 @@
|
|
|
4059
4095
|
var tmp$ret$3;
|
|
4060
4096
|
// Inline function 'com.logic.domain.engine.definitions.<no name provided>.reduce.<anonymous>' call
|
|
4061
4097
|
var tmp1__anonymous__uwfjfc = accumulator;
|
|
4062
|
-
tmp$ret$3 = element_0.
|
|
4098
|
+
tmp$ret$3 = element_0.k2i(tmp1__anonymous__uwfjfc, action);
|
|
4063
4099
|
accumulator = tmp$ret$3;
|
|
4064
4100
|
}
|
|
4065
4101
|
tmp$ret$4 = accumulator;
|
|
4066
4102
|
return tmp$ret$4;
|
|
4067
4103
|
};
|
|
4068
|
-
combineReducers$1.prototype.
|
|
4069
|
-
return this.
|
|
4104
|
+
combineReducers$1.prototype.k2i = function (state, action) {
|
|
4105
|
+
return this.x2i((state == null ? true : isObject(state)) ? state : THROW_CCE(), action);
|
|
4070
4106
|
};
|
|
4071
4107
|
function Store() {
|
|
4072
4108
|
}
|
|
@@ -4077,7 +4113,7 @@
|
|
|
4077
4113
|
Object.defineProperty(INIT.prototype, 'actionTag', {
|
|
4078
4114
|
configurable: true,
|
|
4079
4115
|
get: function () {
|
|
4080
|
-
return this.
|
|
4116
|
+
return this.s2i();
|
|
4081
4117
|
}
|
|
4082
4118
|
});
|
|
4083
4119
|
var INIT_instance;
|
|
@@ -4093,7 +4129,7 @@
|
|
|
4093
4129
|
Object.defineProperty(REPLACE.prototype, 'actionTag', {
|
|
4094
4130
|
configurable: true,
|
|
4095
4131
|
get: function () {
|
|
4096
|
-
return this.
|
|
4132
|
+
return this.s2i();
|
|
4097
4133
|
}
|
|
4098
4134
|
});
|
|
4099
4135
|
var REPLACE_instance;
|
|
@@ -4107,7 +4143,7 @@
|
|
|
4107
4143
|
Object.defineProperty(StoreLifecycleAction.prototype, 'actionTag', {
|
|
4108
4144
|
configurable: true,
|
|
4109
4145
|
get: function () {
|
|
4110
|
-
return this.
|
|
4146
|
+
return this.s2i();
|
|
4111
4147
|
}
|
|
4112
4148
|
});
|
|
4113
4149
|
function BufferedAction() {
|
|
@@ -4118,16 +4154,16 @@
|
|
|
4118
4154
|
}
|
|
4119
4155
|
function StopTimerAction(timerTag) {
|
|
4120
4156
|
TimerAction.call(this);
|
|
4121
|
-
this.
|
|
4157
|
+
this.z2i_1 = timerTag;
|
|
4122
4158
|
}
|
|
4123
|
-
StopTimerAction.prototype.
|
|
4124
|
-
return this.
|
|
4159
|
+
StopTimerAction.prototype.a2j = function () {
|
|
4160
|
+
return this.z2i_1;
|
|
4125
4161
|
};
|
|
4126
4162
|
StopTimerAction.prototype.toString = function () {
|
|
4127
|
-
return 'StopTimerAction(timerTag=' + this.
|
|
4163
|
+
return 'StopTimerAction(timerTag=' + this.z2i_1 + ')';
|
|
4128
4164
|
};
|
|
4129
4165
|
StopTimerAction.prototype.hashCode = function () {
|
|
4130
|
-
return hashCode(this.
|
|
4166
|
+
return hashCode(this.z2i_1);
|
|
4131
4167
|
};
|
|
4132
4168
|
StopTimerAction.prototype.equals = function (other) {
|
|
4133
4169
|
if (this === other)
|
|
@@ -4135,14 +4171,14 @@
|
|
|
4135
4171
|
if (!(other instanceof StopTimerAction))
|
|
4136
4172
|
return false;
|
|
4137
4173
|
var tmp0_other_with_cast = other instanceof StopTimerAction ? other : THROW_CCE();
|
|
4138
|
-
if (!equals(this.
|
|
4174
|
+
if (!equals(this.z2i_1, tmp0_other_with_cast.z2i_1))
|
|
4139
4175
|
return false;
|
|
4140
4176
|
return true;
|
|
4141
4177
|
};
|
|
4142
4178
|
Object.defineProperty(StopTimerAction.prototype, 'actionTag', {
|
|
4143
4179
|
configurable: true,
|
|
4144
4180
|
get: function () {
|
|
4145
|
-
return this.
|
|
4181
|
+
return this.s2i();
|
|
4146
4182
|
}
|
|
4147
4183
|
});
|
|
4148
4184
|
function StartTimerAction_init_$Init$(timerTag, delayMillis, initialDelay, type, $mask0, $marker, $this) {
|
|
@@ -4158,22 +4194,22 @@
|
|
|
4158
4194
|
}
|
|
4159
4195
|
function StartTimerAction(timerTag, delayMillis, initialDelay, type) {
|
|
4160
4196
|
TimerAction.call(this);
|
|
4161
|
-
this.
|
|
4162
|
-
this.
|
|
4163
|
-
this.
|
|
4164
|
-
this.
|
|
4197
|
+
this.b2j_1 = timerTag;
|
|
4198
|
+
this.c2j_1 = delayMillis;
|
|
4199
|
+
this.d2j_1 = initialDelay;
|
|
4200
|
+
this.e2j_1 = type;
|
|
4165
4201
|
}
|
|
4166
|
-
StartTimerAction.prototype.
|
|
4167
|
-
return this.
|
|
4202
|
+
StartTimerAction.prototype.a2j = function () {
|
|
4203
|
+
return this.b2j_1;
|
|
4168
4204
|
};
|
|
4169
4205
|
StartTimerAction.prototype.toString = function () {
|
|
4170
|
-
return 'StartTimerAction(timerTag=' + this.
|
|
4206
|
+
return 'StartTimerAction(timerTag=' + this.b2j_1 + ', delayMillis=' + toString_0(this.c2j_1) + ', initialDelay=' + toString_0(this.d2j_1) + ', type=' + this.e2j_1 + ')';
|
|
4171
4207
|
};
|
|
4172
4208
|
StartTimerAction.prototype.hashCode = function () {
|
|
4173
|
-
var result = hashCode(this.
|
|
4174
|
-
result = imul(result, 31) + this.b2j_1.hashCode() | 0;
|
|
4209
|
+
var result = hashCode(this.b2j_1);
|
|
4175
4210
|
result = imul(result, 31) + this.c2j_1.hashCode() | 0;
|
|
4176
4211
|
result = imul(result, 31) + this.d2j_1.hashCode() | 0;
|
|
4212
|
+
result = imul(result, 31) + this.e2j_1.hashCode() | 0;
|
|
4177
4213
|
return result;
|
|
4178
4214
|
};
|
|
4179
4215
|
StartTimerAction.prototype.equals = function (other) {
|
|
@@ -4182,20 +4218,20 @@
|
|
|
4182
4218
|
if (!(other instanceof StartTimerAction))
|
|
4183
4219
|
return false;
|
|
4184
4220
|
var tmp0_other_with_cast = other instanceof StartTimerAction ? other : THROW_CCE();
|
|
4185
|
-
if (!equals(this.
|
|
4186
|
-
return false;
|
|
4187
|
-
if (!this.b2j_1.equals(tmp0_other_with_cast.b2j_1))
|
|
4221
|
+
if (!equals(this.b2j_1, tmp0_other_with_cast.b2j_1))
|
|
4188
4222
|
return false;
|
|
4189
4223
|
if (!this.c2j_1.equals(tmp0_other_with_cast.c2j_1))
|
|
4190
4224
|
return false;
|
|
4191
4225
|
if (!this.d2j_1.equals(tmp0_other_with_cast.d2j_1))
|
|
4192
4226
|
return false;
|
|
4227
|
+
if (!this.e2j_1.equals(tmp0_other_with_cast.e2j_1))
|
|
4228
|
+
return false;
|
|
4193
4229
|
return true;
|
|
4194
4230
|
};
|
|
4195
4231
|
Object.defineProperty(StartTimerAction.prototype, 'actionTag', {
|
|
4196
4232
|
configurable: true,
|
|
4197
4233
|
get: function () {
|
|
4198
|
-
return this.
|
|
4234
|
+
return this.s2i();
|
|
4199
4235
|
}
|
|
4200
4236
|
});
|
|
4201
4237
|
var TimerType_DELAY_instance;
|
|
@@ -4213,21 +4249,21 @@
|
|
|
4213
4249
|
}
|
|
4214
4250
|
function TimerTickAction(timerTag, type) {
|
|
4215
4251
|
TimerAction.call(this);
|
|
4216
|
-
this.
|
|
4217
|
-
this.
|
|
4252
|
+
this.f2j_1 = timerTag;
|
|
4253
|
+
this.g2j_1 = type;
|
|
4218
4254
|
}
|
|
4219
|
-
TimerTickAction.prototype.
|
|
4220
|
-
return this.
|
|
4255
|
+
TimerTickAction.prototype.a2j = function () {
|
|
4256
|
+
return this.f2j_1;
|
|
4221
4257
|
};
|
|
4222
4258
|
TimerTickAction.prototype.notValidateWhenFinished = function () {
|
|
4223
|
-
return this.
|
|
4259
|
+
return this.f2j_1.notValidateWhenFinished();
|
|
4224
4260
|
};
|
|
4225
4261
|
TimerTickAction.prototype.toString = function () {
|
|
4226
|
-
return 'TimerTickAction(timerTag=' + this.
|
|
4262
|
+
return 'TimerTickAction(timerTag=' + this.f2j_1 + ', type=' + this.g2j_1 + ')';
|
|
4227
4263
|
};
|
|
4228
4264
|
TimerTickAction.prototype.hashCode = function () {
|
|
4229
|
-
var result = hashCode(this.
|
|
4230
|
-
result = imul(result, 31) + this.
|
|
4265
|
+
var result = hashCode(this.f2j_1);
|
|
4266
|
+
result = imul(result, 31) + this.g2j_1.hashCode() | 0;
|
|
4231
4267
|
return result;
|
|
4232
4268
|
};
|
|
4233
4269
|
TimerTickAction.prototype.equals = function (other) {
|
|
@@ -4236,16 +4272,16 @@
|
|
|
4236
4272
|
if (!(other instanceof TimerTickAction))
|
|
4237
4273
|
return false;
|
|
4238
4274
|
var tmp0_other_with_cast = other instanceof TimerTickAction ? other : THROW_CCE();
|
|
4239
|
-
if (!equals(this.
|
|
4275
|
+
if (!equals(this.f2j_1, tmp0_other_with_cast.f2j_1))
|
|
4240
4276
|
return false;
|
|
4241
|
-
if (!this.
|
|
4277
|
+
if (!this.g2j_1.equals(tmp0_other_with_cast.g2j_1))
|
|
4242
4278
|
return false;
|
|
4243
4279
|
return true;
|
|
4244
4280
|
};
|
|
4245
4281
|
Object.defineProperty(TimerTickAction.prototype, 'actionTag', {
|
|
4246
4282
|
configurable: true,
|
|
4247
4283
|
get: function () {
|
|
4248
|
-
return this.
|
|
4284
|
+
return this.s2i();
|
|
4249
4285
|
}
|
|
4250
4286
|
});
|
|
4251
4287
|
function TimerAction() {
|
|
@@ -4253,7 +4289,7 @@
|
|
|
4253
4289
|
Object.defineProperty(TimerAction.prototype, 'actionTag', {
|
|
4254
4290
|
configurable: true,
|
|
4255
4291
|
get: function () {
|
|
4256
|
-
return this.
|
|
4292
|
+
return this.s2i();
|
|
4257
4293
|
}
|
|
4258
4294
|
});
|
|
4259
4295
|
function TimerType_DELAY_getInstance() {
|
|
@@ -4280,7 +4316,7 @@
|
|
|
4280
4316
|
var tmp_0;
|
|
4281
4317
|
if ($p instanceof Exception) {
|
|
4282
4318
|
var tmp_1 = 'StoreEnhancer error: ' + $p;
|
|
4283
|
-
$logger.
|
|
4319
|
+
$logger.r2h('StoreEnhancer', tmp_1, $p, null, 8, null);
|
|
4284
4320
|
tmp_0 = Unit_getInstance();
|
|
4285
4321
|
} else {
|
|
4286
4322
|
throw $p;
|
|
@@ -4308,7 +4344,7 @@
|
|
|
4308
4344
|
}
|
|
4309
4345
|
function applyMiddleware$lambda$lambda$lambda$lambda($tmp0__anonymous__1nv1x1, $store, $tmp1__anonymous__6ijp4k) {
|
|
4310
4346
|
return function (action) {
|
|
4311
|
-
$tmp0__anonymous__1nv1x1.
|
|
4347
|
+
$tmp0__anonymous__1nv1x1.u2i($store, $tmp1__anonymous__6ijp4k, action);
|
|
4312
4348
|
return Unit_getInstance();
|
|
4313
4349
|
};
|
|
4314
4350
|
}
|
|
@@ -4327,7 +4363,7 @@
|
|
|
4327
4363
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4328
4364
|
var tmp$ret$0;
|
|
4329
4365
|
// Inline function 'com.logic.redux.enhancers.applyMiddleware.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
4330
|
-
tmp$ret$0 = element.
|
|
4366
|
+
tmp$ret$0 = element.t2i(action);
|
|
4331
4367
|
if (tmp$ret$0) {
|
|
4332
4368
|
tmp0_filterTo.a(element);
|
|
4333
4369
|
}
|
|
@@ -4375,9 +4411,9 @@
|
|
|
4375
4411
|
return tmp$ret$0;
|
|
4376
4412
|
}
|
|
4377
4413
|
function timerMiddleware$o$handle$slambda$slambda($jobsProvider, $tmp0__anonymous__1nv1x1, $store, resultContinuation) {
|
|
4378
|
-
this.
|
|
4379
|
-
this.
|
|
4380
|
-
this.
|
|
4414
|
+
this.p2j_1 = $jobsProvider;
|
|
4415
|
+
this.q2j_1 = $tmp0__anonymous__1nv1x1;
|
|
4416
|
+
this.r2j_1 = $store;
|
|
4381
4417
|
CoroutineImpl.call(this, resultContinuation);
|
|
4382
4418
|
}
|
|
4383
4419
|
timerMiddleware$o$handle$slambda$slambda.prototype.k12 = function ($this$launchStore, $cont) {
|
|
@@ -4396,8 +4432,8 @@
|
|
|
4396
4432
|
var tmp = this.xg_1;
|
|
4397
4433
|
if (tmp === 0) {
|
|
4398
4434
|
this.yg_1 = 1;
|
|
4399
|
-
if (this.
|
|
4400
|
-
this.
|
|
4435
|
+
if (this.p2j_1.g2i(this.q2j_1.a2j())) {
|
|
4436
|
+
this.r2j_1.dispatch(new TimerTickAction(this.q2j_1.a2j(), TimerType_DELAY_getInstance()));
|
|
4401
4437
|
}
|
|
4402
4438
|
return Unit_getInstance();
|
|
4403
4439
|
} else if (tmp === 1) {
|
|
@@ -4409,8 +4445,8 @@
|
|
|
4409
4445
|
while (true);
|
|
4410
4446
|
};
|
|
4411
4447
|
timerMiddleware$o$handle$slambda$slambda.prototype.l12 = function ($this$launchStore, completion) {
|
|
4412
|
-
var i = new timerMiddleware$o$handle$slambda$slambda(this.
|
|
4413
|
-
i.
|
|
4448
|
+
var i = new timerMiddleware$o$handle$slambda$slambda(this.p2j_1, this.q2j_1, this.r2j_1, completion);
|
|
4449
|
+
i.s2j_1 = $this$launchStore;
|
|
4414
4450
|
return i;
|
|
4415
4451
|
};
|
|
4416
4452
|
function timerMiddleware$o$handle$slambda$slambda_0($jobsProvider, $tmp0__anonymous__1nv1x1, $store, resultContinuation) {
|
|
@@ -4422,9 +4458,9 @@
|
|
|
4422
4458
|
return l;
|
|
4423
4459
|
}
|
|
4424
4460
|
function timerMiddleware$o$handle$slambda$slambda_1($jobsProvider, $tmp0__anonymous__1nv1x1, $store, resultContinuation) {
|
|
4425
|
-
this.
|
|
4426
|
-
this.
|
|
4427
|
-
this.
|
|
4461
|
+
this.b2k_1 = $jobsProvider;
|
|
4462
|
+
this.c2k_1 = $tmp0__anonymous__1nv1x1;
|
|
4463
|
+
this.d2k_1 = $store;
|
|
4428
4464
|
CoroutineImpl.call(this, resultContinuation);
|
|
4429
4465
|
}
|
|
4430
4466
|
timerMiddleware$o$handle$slambda$slambda_1.prototype.k12 = function ($this$launchStore, $cont) {
|
|
@@ -4443,8 +4479,8 @@
|
|
|
4443
4479
|
var tmp = this.xg_1;
|
|
4444
4480
|
if (tmp === 0) {
|
|
4445
4481
|
this.yg_1 = 1;
|
|
4446
|
-
if (this.
|
|
4447
|
-
this.
|
|
4482
|
+
if (this.b2k_1.g2i(this.c2k_1.a2j())) {
|
|
4483
|
+
this.d2k_1.dispatch(new TimerTickAction(this.c2k_1.a2j(), TimerType_INTERVAL_getInstance()));
|
|
4448
4484
|
}
|
|
4449
4485
|
return Unit_getInstance();
|
|
4450
4486
|
} else if (tmp === 1) {
|
|
@@ -4456,8 +4492,8 @@
|
|
|
4456
4492
|
while (true);
|
|
4457
4493
|
};
|
|
4458
4494
|
timerMiddleware$o$handle$slambda$slambda_1.prototype.l12 = function ($this$launchStore, completion) {
|
|
4459
|
-
var i = new timerMiddleware$o$handle$slambda$slambda_1(this.
|
|
4460
|
-
i.
|
|
4495
|
+
var i = new timerMiddleware$o$handle$slambda$slambda_1(this.b2k_1, this.c2k_1, this.d2k_1, completion);
|
|
4496
|
+
i.e2k_1 = $this$launchStore;
|
|
4461
4497
|
return i;
|
|
4462
4498
|
};
|
|
4463
4499
|
function timerMiddleware$o$handle$slambda$slambda_2($jobsProvider, $tmp0__anonymous__1nv1x1, $store, resultContinuation) {
|
|
@@ -4469,10 +4505,10 @@
|
|
|
4469
4505
|
return l;
|
|
4470
4506
|
}
|
|
4471
4507
|
function timerMiddleware$o$handle$slambda($tmp0__anonymous__1nv1x1, $asyncProvider, $jobsProvider, $store, resultContinuation) {
|
|
4472
|
-
this.
|
|
4473
|
-
this.
|
|
4474
|
-
this.
|
|
4475
|
-
this.
|
|
4508
|
+
this.n2k_1 = $tmp0__anonymous__1nv1x1;
|
|
4509
|
+
this.o2k_1 = $asyncProvider;
|
|
4510
|
+
this.p2k_1 = $jobsProvider;
|
|
4511
|
+
this.q2k_1 = $store;
|
|
4476
4512
|
CoroutineImpl.call(this, resultContinuation);
|
|
4477
4513
|
}
|
|
4478
4514
|
timerMiddleware$o$handle$slambda.prototype.k12 = function ($this$launchWorker, $cont) {
|
|
@@ -4492,9 +4528,9 @@
|
|
|
4492
4528
|
switch (tmp) {
|
|
4493
4529
|
case 0:
|
|
4494
4530
|
this.yg_1 = 10;
|
|
4495
|
-
if (!this.
|
|
4531
|
+
if (!this.n2k_1.d2j_1.equals(new Long(0, 0)) ? this.n2k_1.e2j_1.equals(TimerType_INTERVAL_getInstance()) : false) {
|
|
4496
4532
|
this.xg_1 = 1;
|
|
4497
|
-
suspendResult = delay(this.
|
|
4533
|
+
suspendResult = delay(this.n2k_1.d2j_1, this);
|
|
4498
4534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4499
4535
|
return suspendResult;
|
|
4500
4536
|
}
|
|
@@ -4509,20 +4545,20 @@
|
|
|
4509
4545
|
this.xg_1 = 2;
|
|
4510
4546
|
continue $sm;
|
|
4511
4547
|
case 2:
|
|
4512
|
-
this.
|
|
4513
|
-
this.
|
|
4514
|
-
if (this.
|
|
4548
|
+
this.s2k_1 = this.n2k_1.e2j_1;
|
|
4549
|
+
this.t2k_1 = this.s2k_1.n4_1;
|
|
4550
|
+
if (this.t2k_1 === 0) {
|
|
4515
4551
|
this.xg_1 = 8;
|
|
4516
|
-
suspendResult = delay(this.
|
|
4552
|
+
suspendResult = delay(this.n2k_1.c2j_1, this);
|
|
4517
4553
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4518
4554
|
return suspendResult;
|
|
4519
4555
|
}
|
|
4520
4556
|
continue $sm;
|
|
4521
4557
|
} else {
|
|
4522
|
-
if (this.
|
|
4523
|
-
if (!this.
|
|
4558
|
+
if (this.t2k_1 === 1) {
|
|
4559
|
+
if (!this.n2k_1.d2j_1.equals(new Long(0, 0))) {
|
|
4524
4560
|
this.xg_1 = 3;
|
|
4525
|
-
suspendResult = delay(this.
|
|
4561
|
+
suspendResult = delay(this.n2k_1.d2j_1, this);
|
|
4526
4562
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4527
4563
|
return suspendResult;
|
|
4528
4564
|
}
|
|
@@ -4545,15 +4581,15 @@
|
|
|
4545
4581
|
this.xg_1 = 5;
|
|
4546
4582
|
continue $sm;
|
|
4547
4583
|
case 5:
|
|
4548
|
-
if (!get_isActive(this.
|
|
4584
|
+
if (!get_isActive(this.r2k_1)) {
|
|
4549
4585
|
this.xg_1 = 7;
|
|
4550
4586
|
continue $sm;
|
|
4551
4587
|
}
|
|
4552
4588
|
|
|
4553
|
-
this.
|
|
4589
|
+
this.o2k_1.y2h(null, timerMiddleware$o$handle$slambda$slambda_2(this.p2k_1, this.n2k_1, this.q2k_1, null), 1, null);
|
|
4554
4590
|
;
|
|
4555
4591
|
this.xg_1 = 6;
|
|
4556
|
-
suspendResult = delay(this.
|
|
4592
|
+
suspendResult = delay(this.n2k_1.d2j_1, this);
|
|
4557
4593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4558
4594
|
return suspendResult;
|
|
4559
4595
|
}
|
|
@@ -4566,7 +4602,7 @@
|
|
|
4566
4602
|
this.xg_1 = 9;
|
|
4567
4603
|
continue $sm;
|
|
4568
4604
|
case 8:
|
|
4569
|
-
this.
|
|
4605
|
+
this.o2k_1.y2h(null, timerMiddleware$o$handle$slambda$slambda_0(this.p2k_1, this.n2k_1, this.q2k_1, null), 1, null);
|
|
4570
4606
|
;
|
|
4571
4607
|
this.xg_1 = 9;
|
|
4572
4608
|
continue $sm;
|
|
@@ -4586,8 +4622,8 @@
|
|
|
4586
4622
|
while (true);
|
|
4587
4623
|
};
|
|
4588
4624
|
timerMiddleware$o$handle$slambda.prototype.l12 = function ($this$launchWorker, completion) {
|
|
4589
|
-
var i = new timerMiddleware$o$handle$slambda(this.
|
|
4590
|
-
i.
|
|
4625
|
+
var i = new timerMiddleware$o$handle$slambda(this.n2k_1, this.o2k_1, this.p2k_1, this.q2k_1, completion);
|
|
4626
|
+
i.r2k_1 = $this$launchWorker;
|
|
4591
4627
|
return i;
|
|
4592
4628
|
};
|
|
4593
4629
|
function timerMiddleware$o$handle$slambda_0($tmp0__anonymous__1nv1x1, $asyncProvider, $jobsProvider, $store, resultContinuation) {
|
|
@@ -4599,34 +4635,34 @@
|
|
|
4599
4635
|
return l;
|
|
4600
4636
|
}
|
|
4601
4637
|
function _no_name_provided__qut3iv_0($asyncProvider, $jobsProvider) {
|
|
4602
|
-
this.
|
|
4603
|
-
this.
|
|
4638
|
+
this.u2k_1 = $asyncProvider;
|
|
4639
|
+
this.v2k_1 = $jobsProvider;
|
|
4604
4640
|
}
|
|
4605
|
-
_no_name_provided__qut3iv_0.prototype.
|
|
4641
|
+
_no_name_provided__qut3iv_0.prototype.t2i = function (action) {
|
|
4606
4642
|
return action instanceof TimerAction;
|
|
4607
4643
|
};
|
|
4608
|
-
_no_name_provided__qut3iv_0.prototype.
|
|
4644
|
+
_no_name_provided__qut3iv_0.prototype.w2k = function (store, next, action) {
|
|
4609
4645
|
// Inline function 'com.logic.redux.middlewares.timers.timerMiddleware.<anonymous>' call
|
|
4610
4646
|
var tmp0__anonymous__q1qw7t = action instanceof TimerAction ? action : THROW_CCE();
|
|
4611
4647
|
var tmp0_subject = tmp0__anonymous__q1qw7t;
|
|
4612
4648
|
if (tmp0_subject instanceof StartTimerAction) {
|
|
4613
|
-
var job = this.
|
|
4614
|
-
this.
|
|
4649
|
+
var job = this.u2k_1.a2i(null, timerMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, this.u2k_1, this.v2k_1, store, null), 1, null);
|
|
4650
|
+
this.v2k_1.e2i(tmp0__anonymous__q1qw7t.a2j(), job);
|
|
4615
4651
|
} else {
|
|
4616
4652
|
if (tmp0_subject instanceof StopTimerAction) {
|
|
4617
|
-
this.
|
|
4653
|
+
this.v2k_1.j2i(tmp0__anonymous__q1qw7t.a2j());
|
|
4618
4654
|
} else {
|
|
4619
4655
|
if (tmp0_subject instanceof TimerTickAction) {
|
|
4620
|
-
if (tmp0__anonymous__q1qw7t.
|
|
4621
|
-
this.
|
|
4656
|
+
if (tmp0__anonymous__q1qw7t.g2j_1.equals(TimerType_DELAY_getInstance())) {
|
|
4657
|
+
this.v2k_1.h2i(tmp0__anonymous__q1qw7t.a2j());
|
|
4622
4658
|
}
|
|
4623
4659
|
}
|
|
4624
4660
|
}
|
|
4625
4661
|
}
|
|
4626
4662
|
next(tmp0__anonymous__q1qw7t);
|
|
4627
4663
|
};
|
|
4628
|
-
_no_name_provided__qut3iv_0.prototype.
|
|
4629
|
-
return this.
|
|
4664
|
+
_no_name_provided__qut3iv_0.prototype.u2i = function (store, next, action) {
|
|
4665
|
+
return this.w2k(store, next, action);
|
|
4630
4666
|
};
|
|
4631
4667
|
function enumToString(_this__u8e3s4, mapping) {
|
|
4632
4668
|
var tmp$ret$2;
|
|
@@ -4794,23 +4830,23 @@
|
|
|
4794
4830
|
Category_NONE_instance = new Category('NONE', 1, true);
|
|
4795
4831
|
}
|
|
4796
4832
|
function generateTag($this, tag) {
|
|
4797
|
-
return (!($this.
|
|
4833
|
+
return (!($this.z2k_1 == null) ? !(tag == null) : false) ? '' + $this.z2k_1 + ':' + tag : tag;
|
|
4798
4834
|
}
|
|
4799
4835
|
function Category(name, ordinal, isEnabled) {
|
|
4800
4836
|
Enum.call(this, name, ordinal);
|
|
4801
|
-
this.
|
|
4837
|
+
this.c2l_1 = isEnabled;
|
|
4802
4838
|
}
|
|
4803
4839
|
function Logger$loggerSource$1() {
|
|
4804
|
-
this.
|
|
4840
|
+
this.d2l_1 = new PlatformLogger();
|
|
4805
4841
|
}
|
|
4806
|
-
Logger$loggerSource$1.prototype.
|
|
4807
|
-
this.
|
|
4842
|
+
Logger$loggerSource$1.prototype.e2l = function (tag, msg) {
|
|
4843
|
+
this.d2l_1.e2l(tag, msg);
|
|
4808
4844
|
};
|
|
4809
|
-
Logger$loggerSource$1.prototype.
|
|
4810
|
-
this.
|
|
4845
|
+
Logger$loggerSource$1.prototype.f2l = function (tag, msg, exception) {
|
|
4846
|
+
this.d2l_1.f2l(tag, msg, exception);
|
|
4811
4847
|
};
|
|
4812
|
-
Logger$loggerSource$1.prototype.
|
|
4813
|
-
this.
|
|
4848
|
+
Logger$loggerSource$1.prototype.g2l = function (tag, msg) {
|
|
4849
|
+
this.d2l_1.g2l(tag, msg);
|
|
4814
4850
|
};
|
|
4815
4851
|
function Category_NONE_getInstance() {
|
|
4816
4852
|
Category_initEntries();
|
|
@@ -4819,42 +4855,42 @@
|
|
|
4819
4855
|
function Logger() {
|
|
4820
4856
|
Logger_instance = this;
|
|
4821
4857
|
var tmp = this;
|
|
4822
|
-
tmp.
|
|
4823
|
-
this.
|
|
4824
|
-
this.
|
|
4858
|
+
tmp.x2k_1 = new Logger$loggerSource$1();
|
|
4859
|
+
this.y2k_1 = true;
|
|
4860
|
+
this.z2k_1 = null;
|
|
4825
4861
|
}
|
|
4826
|
-
Logger.prototype.
|
|
4827
|
-
this.
|
|
4862
|
+
Logger.prototype.h2l = function (tag, message) {
|
|
4863
|
+
this.i2l(tag, message, Category_NONE_getInstance());
|
|
4828
4864
|
};
|
|
4829
|
-
Logger.prototype.
|
|
4830
|
-
if (this.
|
|
4831
|
-
this.
|
|
4865
|
+
Logger.prototype.j2l = function (tag, message, category) {
|
|
4866
|
+
if (this.y2k_1 ? category.c2l_1 : false) {
|
|
4867
|
+
this.x2k_1.g2l(generateTag(this, tag), message);
|
|
4832
4868
|
}
|
|
4833
4869
|
};
|
|
4834
|
-
Logger.prototype.
|
|
4870
|
+
Logger.prototype.k2l = function (tag, message, category, $mask0, $handler) {
|
|
4835
4871
|
if (!(($mask0 & 1) === 0))
|
|
4836
4872
|
tag = null;
|
|
4837
4873
|
if (!(($mask0 & 4) === 0))
|
|
4838
4874
|
category = Category_NONE_getInstance();
|
|
4839
|
-
return this.
|
|
4875
|
+
return this.j2l(tag, message, category);
|
|
4840
4876
|
};
|
|
4841
|
-
Logger.prototype.
|
|
4842
|
-
if (this.
|
|
4843
|
-
this.
|
|
4877
|
+
Logger.prototype.i2l = function (tag, message, category) {
|
|
4878
|
+
if (this.y2k_1 ? category.c2l_1 : false) {
|
|
4879
|
+
this.x2k_1.e2l(generateTag(this, tag), message);
|
|
4844
4880
|
}
|
|
4845
4881
|
};
|
|
4846
|
-
Logger.prototype.
|
|
4847
|
-
if (this.
|
|
4882
|
+
Logger.prototype.l2l = function (tag, message, exception, category) {
|
|
4883
|
+
if (this.y2k_1 ? category.c2l_1 : false) {
|
|
4848
4884
|
var tmp0_safe_receiver = exception;
|
|
4849
4885
|
if (tmp0_safe_receiver == null)
|
|
4850
4886
|
null;
|
|
4851
4887
|
else {
|
|
4852
4888
|
printStackTrace(tmp0_safe_receiver);
|
|
4853
4889
|
}
|
|
4854
|
-
this.
|
|
4890
|
+
this.x2k_1.f2l(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
4855
4891
|
}
|
|
4856
4892
|
};
|
|
4857
|
-
Logger.prototype.
|
|
4893
|
+
Logger.prototype.m2l = function (tag, message, exception, category, $mask0, $handler) {
|
|
4858
4894
|
if (!(($mask0 & 1) === 0))
|
|
4859
4895
|
tag = null;
|
|
4860
4896
|
if (!(($mask0 & 2) === 0))
|
|
@@ -4863,7 +4899,7 @@
|
|
|
4863
4899
|
exception = null;
|
|
4864
4900
|
if (!(($mask0 & 8) === 0))
|
|
4865
4901
|
category = Category_NONE_getInstance();
|
|
4866
|
-
return this.
|
|
4902
|
+
return this.l2l(tag, message, exception, category);
|
|
4867
4903
|
};
|
|
4868
4904
|
var Logger_instance;
|
|
4869
4905
|
function Logger_getInstance() {
|
|
@@ -4899,36 +4935,36 @@
|
|
|
4899
4935
|
return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
4900
4936
|
}
|
|
4901
4937
|
function CombinedGameLogger(logOutputs) {
|
|
4902
|
-
this.
|
|
4938
|
+
this.n2l_1 = logOutputs;
|
|
4903
4939
|
}
|
|
4904
|
-
CombinedGameLogger.prototype.
|
|
4940
|
+
CombinedGameLogger.prototype.o2l = function (tag, message, payload) {
|
|
4905
4941
|
// Inline function 'kotlin.collections.forEach' call
|
|
4906
|
-
var tmp0_forEach = this.
|
|
4942
|
+
var tmp0_forEach = this.n2l_1;
|
|
4907
4943
|
var tmp0_iterator = tmp0_forEach.g();
|
|
4908
4944
|
while (tmp0_iterator.h()) {
|
|
4909
4945
|
var element = tmp0_iterator.i();
|
|
4910
4946
|
// Inline function 'com.logic.utils.logger.game.CombinedGameLogger.d.<anonymous>' call
|
|
4911
|
-
element.
|
|
4947
|
+
element.o2l(tag, message, payload);
|
|
4912
4948
|
}
|
|
4913
4949
|
};
|
|
4914
|
-
CombinedGameLogger.prototype.
|
|
4950
|
+
CombinedGameLogger.prototype.q2l = function (tag, message, exception, payload) {
|
|
4915
4951
|
// Inline function 'kotlin.collections.forEach' call
|
|
4916
|
-
var tmp0_forEach = this.
|
|
4952
|
+
var tmp0_forEach = this.n2l_1;
|
|
4917
4953
|
var tmp0_iterator = tmp0_forEach.g();
|
|
4918
4954
|
while (tmp0_iterator.h()) {
|
|
4919
4955
|
var element = tmp0_iterator.i();
|
|
4920
4956
|
// Inline function 'com.logic.utils.logger.game.CombinedGameLogger.e.<anonymous>' call
|
|
4921
|
-
element.
|
|
4957
|
+
element.q2l(tag, message, exception, payload);
|
|
4922
4958
|
}
|
|
4923
4959
|
};
|
|
4924
|
-
CombinedGameLogger.prototype.
|
|
4960
|
+
CombinedGameLogger.prototype.r2l = function (tag, message, payload) {
|
|
4925
4961
|
// Inline function 'kotlin.collections.forEach' call
|
|
4926
|
-
var tmp0_forEach = this.
|
|
4962
|
+
var tmp0_forEach = this.n2l_1;
|
|
4927
4963
|
var tmp0_iterator = tmp0_forEach.g();
|
|
4928
4964
|
while (tmp0_iterator.h()) {
|
|
4929
4965
|
var element = tmp0_iterator.i();
|
|
4930
4966
|
// Inline function 'com.logic.utils.logger.game.CombinedGameLogger.w.<anonymous>' call
|
|
4931
|
-
element.
|
|
4967
|
+
element.r2l(tag, message, payload);
|
|
4932
4968
|
}
|
|
4933
4969
|
};
|
|
4934
4970
|
function GameLogger() {
|
|
@@ -4945,40 +4981,40 @@
|
|
|
4945
4981
|
return PlatformGameLogger_init_$Init$(enabled, $mask0, $marker, Object.create(PlatformGameLogger.prototype));
|
|
4946
4982
|
}
|
|
4947
4983
|
function PlatformGameLogger(enabled) {
|
|
4948
|
-
this.
|
|
4984
|
+
this.s2l_1 = enabled;
|
|
4949
4985
|
}
|
|
4950
|
-
PlatformGameLogger.prototype.
|
|
4951
|
-
if (!this.
|
|
4986
|
+
PlatformGameLogger.prototype.o2l = function (tag, message, payload) {
|
|
4987
|
+
if (!this.s2l_1)
|
|
4952
4988
|
return Unit_getInstance();
|
|
4953
|
-
Logger_getInstance().
|
|
4989
|
+
Logger_getInstance().h2l(tag, message);
|
|
4954
4990
|
};
|
|
4955
|
-
PlatformGameLogger.prototype.
|
|
4956
|
-
if (!this.
|
|
4991
|
+
PlatformGameLogger.prototype.q2l = function (tag, message, exception, payload) {
|
|
4992
|
+
if (!this.s2l_1)
|
|
4957
4993
|
return Unit_getInstance();
|
|
4958
4994
|
var tmp = Logger_getInstance();
|
|
4959
|
-
tmp.
|
|
4995
|
+
tmp.m2l(tag, message, exception, null, 8, null);
|
|
4960
4996
|
};
|
|
4961
|
-
PlatformGameLogger.prototype.
|
|
4962
|
-
if (!this.
|
|
4997
|
+
PlatformGameLogger.prototype.r2l = function (tag, message, payload) {
|
|
4998
|
+
if (!this.s2l_1)
|
|
4963
4999
|
return Unit_getInstance();
|
|
4964
5000
|
var tmp = Logger_getInstance();
|
|
4965
|
-
tmp.
|
|
5001
|
+
tmp.k2l(tag, message, null, 4, null);
|
|
4966
5002
|
};
|
|
4967
5003
|
function LoggerOutput() {
|
|
4968
5004
|
}
|
|
4969
5005
|
function PlatformLogger() {
|
|
4970
5006
|
}
|
|
4971
|
-
PlatformLogger.prototype.
|
|
5007
|
+
PlatformLogger.prototype.e2l = function (tag, msg) {
|
|
4972
5008
|
console.log(getLogTag(tag) + ': ' + msg);
|
|
4973
5009
|
};
|
|
4974
|
-
PlatformLogger.prototype.
|
|
5010
|
+
PlatformLogger.prototype.f2l = function (tag, msg, exception) {
|
|
4975
5011
|
if (!(exception == null)) {
|
|
4976
5012
|
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + exception);
|
|
4977
5013
|
} else {
|
|
4978
5014
|
console.error(getLogTag(tag) + ': ' + msg);
|
|
4979
5015
|
}
|
|
4980
5016
|
};
|
|
4981
|
-
PlatformLogger.prototype.
|
|
5017
|
+
PlatformLogger.prototype.g2l = function (tag, msg) {
|
|
4982
5018
|
console.warn(getLogTag(tag) + ': ' + msg);
|
|
4983
5019
|
};
|
|
4984
5020
|
//region block: post-declaration
|
|
@@ -4995,25 +5031,25 @@
|
|
|
4995
5031
|
_no_name_provided__qut3iv.prototype.g4 = fold;
|
|
4996
5032
|
_no_name_provided__qut3iv.prototype.f4 = minusKey;
|
|
4997
5033
|
_no_name_provided__qut3iv.prototype.h4 = plus;
|
|
4998
|
-
AsyncProviderImpl.prototype.
|
|
4999
|
-
AsyncProviderImpl.prototype.
|
|
5000
|
-
middleware$1.prototype.
|
|
5001
|
-
combineReducers$1.prototype.
|
|
5002
|
-
StoreLifecycleAction.prototype.
|
|
5003
|
-
INIT.prototype.
|
|
5004
|
-
REPLACE.prototype.
|
|
5005
|
-
TimerAction.prototype.
|
|
5006
|
-
StopTimerAction.prototype.
|
|
5034
|
+
AsyncProviderImpl.prototype.y2h = launchStore$default;
|
|
5035
|
+
AsyncProviderImpl.prototype.a2i = launchWorker$default;
|
|
5036
|
+
middleware$1.prototype.t2i = canHandle;
|
|
5037
|
+
combineReducers$1.prototype.t2i = canHandle_0;
|
|
5038
|
+
StoreLifecycleAction.prototype.s2i = get_actionTag;
|
|
5039
|
+
INIT.prototype.s2i = get_actionTag;
|
|
5040
|
+
REPLACE.prototype.s2i = get_actionTag;
|
|
5041
|
+
TimerAction.prototype.s2i = get_actionTag;
|
|
5042
|
+
StopTimerAction.prototype.s2i = get_actionTag;
|
|
5007
5043
|
StopTimerAction.prototype.notValidateWhenFinishing = notValidateWhenFinishing;
|
|
5008
5044
|
StopTimerAction.prototype.notValidateWhenFinished = notValidateWhenFinished;
|
|
5009
|
-
StartTimerAction.prototype.
|
|
5010
|
-
TimerTickAction.prototype.
|
|
5011
|
-
CombinedGameLogger.prototype.
|
|
5012
|
-
CombinedGameLogger.prototype.
|
|
5013
|
-
CombinedGameLogger.prototype.
|
|
5014
|
-
PlatformGameLogger.prototype.
|
|
5015
|
-
PlatformGameLogger.prototype.
|
|
5016
|
-
PlatformGameLogger.prototype.
|
|
5045
|
+
StartTimerAction.prototype.s2i = get_actionTag;
|
|
5046
|
+
TimerTickAction.prototype.s2i = get_actionTag;
|
|
5047
|
+
CombinedGameLogger.prototype.p2l = d$default;
|
|
5048
|
+
CombinedGameLogger.prototype.r2h = e$default;
|
|
5049
|
+
CombinedGameLogger.prototype.f2i = w$default;
|
|
5050
|
+
PlatformGameLogger.prototype.p2l = d$default;
|
|
5051
|
+
PlatformGameLogger.prototype.r2h = e$default;
|
|
5052
|
+
PlatformGameLogger.prototype.f2i = w$default;
|
|
5017
5053
|
//endregion
|
|
5018
5054
|
//region block: exports
|
|
5019
5055
|
function $jsExportAll$(_) {
|
|
@@ -5031,7 +5067,7 @@
|
|
|
5031
5067
|
$com$logic$data$models.TerminationGameReason.TerminationGameReason_init_$Create$ = TerminationGameReason_init_$Create$;
|
|
5032
5068
|
Object.defineProperty($com$logic$data$models.TerminationGameReason, 'Companion', {
|
|
5033
5069
|
configurable: true,
|
|
5034
|
-
get:
|
|
5070
|
+
get: Companion_getInstance_2
|
|
5035
5071
|
});
|
|
5036
5072
|
var $com = _.com || (_.com = {});
|
|
5037
5073
|
var $com$logic = $com.logic || ($com.logic = {});
|
|
@@ -5080,7 +5116,7 @@
|
|
|
5080
5116
|
});
|
|
5081
5117
|
Object.defineProperty($com$logic$data$models$player.PlayerConnectionState, 'Companion', {
|
|
5082
5118
|
configurable: true,
|
|
5083
|
-
get:
|
|
5119
|
+
get: Companion_getInstance_9
|
|
5084
5120
|
});
|
|
5085
5121
|
var $com = _.com || (_.com = {});
|
|
5086
5122
|
var $com$logic = $com.logic || ($com.logic = {});
|
|
@@ -5090,7 +5126,7 @@
|
|
|
5090
5126
|
$com$logic$data$models$rules.Rules = Rules;
|
|
5091
5127
|
Object.defineProperty($com$logic$data$models$rules.Rules, 'Companion', {
|
|
5092
5128
|
configurable: true,
|
|
5093
|
-
get:
|
|
5129
|
+
get: Companion_getInstance_12
|
|
5094
5130
|
});
|
|
5095
5131
|
var $com = _.com || (_.com = {});
|
|
5096
5132
|
var $com$logic = $com.logic || ($com.logic = {});
|
|
@@ -5251,19 +5287,19 @@
|
|
|
5251
5287
|
_.$_$.r3 = w$default;
|
|
5252
5288
|
_.$_$.s3 = StartTimerAction_init_$Create$;
|
|
5253
5289
|
_.$_$.t3 = PlatformGameLogger_init_$Create$;
|
|
5254
|
-
_.$_$.u3 =
|
|
5255
|
-
_.$_$.v3 =
|
|
5290
|
+
_.$_$.u3 = Companion_getInstance_9;
|
|
5291
|
+
_.$_$.v3 = Companion_getInstance_11;
|
|
5256
5292
|
_.$_$.w3 = $serializer_getInstance_5;
|
|
5257
5293
|
_.$_$.x3 = $serializer_getInstance_6;
|
|
5258
5294
|
_.$_$.y3 = $serializer_getInstance_7;
|
|
5259
5295
|
_.$_$.z3 = CardIndexComparator_getInstance;
|
|
5260
5296
|
_.$_$.a4 = CardNumberComparator_getInstance;
|
|
5261
|
-
_.$_$.b4 =
|
|
5262
|
-
_.$_$.c4 =
|
|
5263
|
-
_.$_$.d4 =
|
|
5297
|
+
_.$_$.b4 = Companion_getInstance_16;
|
|
5298
|
+
_.$_$.c4 = Companion_getInstance_18;
|
|
5299
|
+
_.$_$.d4 = Companion_getInstance_0;
|
|
5264
5300
|
_.$_$.e4 = ProcessingReason_getInstance;
|
|
5265
5301
|
_.$_$.f4 = RestartGameReason_getInstance;
|
|
5266
|
-
_.$_$.g4 =
|
|
5302
|
+
_.$_$.g4 = Companion_getInstance_2;
|
|
5267
5303
|
_.$_$.h4 = Logger_getInstance;
|
|
5268
5304
|
//endregion
|
|
5269
5305
|
return _;
|