raspberry_games_server_game_logic 1.8.249 → 1.8.250

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.
@@ -44,10 +44,10 @@
44
44
  var Unit_instance = kotlin_kotlin.$_$.p5;
45
45
  var protoOf = kotlin_kotlin.$_$.uc;
46
46
  var THROW_CCE = kotlin_kotlin.$_$.rg;
47
- var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.k1;
47
+ var ToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
48
48
  var initMetadataForLambda = kotlin_kotlin.$_$.xb;
49
49
  var VOID = kotlin_kotlin.$_$.f;
50
- var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
50
+ var AppState = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
51
51
  var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
52
52
  var equals = kotlin_kotlin.$_$.lb;
53
53
  var FunctionAdapter = kotlin_kotlin.$_$.za;
@@ -60,34 +60,34 @@
60
60
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
61
61
  var distinctUntilChanged = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w;
62
62
  var Store = kotlin_io_raspberryapps_game_engine_core.$_$.k2;
63
- var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.b4;
64
- var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g1;
65
- var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
66
- var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d3;
67
- var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h3;
68
- var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
63
+ var get_isCreated = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
64
+ var PlayerReadyFromClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
65
+ var PlayerConnectionState_LOST_CONNECTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k3;
66
+ var PlayerConnectionUpdateAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
67
+ var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
68
+ var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i3;
69
69
  var toList = kotlin_kotlin.$_$.t9;
70
70
  var getPlayer = kotlin_io_raspberryapps_game_engine_core.$_$.o;
71
- var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
71
+ var GameEngineConfig_instance = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
72
72
  var toMutableList = kotlin_kotlin.$_$.w9;
73
- var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.v2;
74
- var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
75
- var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
76
- var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.w4;
77
- var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h2;
78
- var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b3;
79
- var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l3;
73
+ var sortWithItem = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
74
+ var StartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l2;
75
+ var RestartRoundReason_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
76
+ var Companion_instance = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
77
+ var ContinueGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x1;
78
+ var SceneEndedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r2;
79
+ var Reason_GAME_NOT_EXISTS_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
80
80
  var GameErrorReason = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
81
- var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
82
- var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j2;
83
- var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c3;
84
- var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
85
- var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.x4;
86
- var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
81
+ var TerminationState = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
82
+ var FinishGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
83
+ var ClearAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s2;
84
+ var toDomainEnumSafe = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
85
+ var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
86
+ var Reason_DEPLOY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.r3;
87
87
  var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.g1;
88
- var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
88
+ var Reason_SERVER_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
89
89
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.ph;
90
- var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.c4;
90
+ var BaseGame = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
91
91
  var emptyList = kotlin_kotlin.$_$.n7;
92
92
  var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
93
93
  var getKClass = kotlin_kotlin.$_$.e;
@@ -96,10 +96,10 @@
96
96
  var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
97
97
  var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
98
98
  var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
99
- var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
99
+ var PlayerConnectionInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.t;
100
100
  var lazy = kotlin_kotlin.$_$.oh;
101
101
  var plus = kotlin_kotlin.$_$.z8;
102
- var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.e4;
102
+ var GameStore = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
103
103
  var defineProp = kotlin_kotlin.$_$.kb;
104
104
  var KProperty1 = kotlin_kotlin.$_$.pd;
105
105
  var getPropertyCallableRef = kotlin_kotlin.$_$.qb;
@@ -108,28 +108,28 @@
108
108
  var Enum = kotlin_kotlin.$_$.hg;
109
109
  var getBooleanHashCode = kotlin_kotlin.$_$.ob;
110
110
  var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
111
- var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.u3;
111
+ var TableLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
112
112
  var RandomPoolProvider = kotlin_io_raspberryapps_cardgame_random.$_$.i;
113
- var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
114
- var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
113
+ var ServerReduxConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
114
+ var PlayerTurnMechanicReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.j3;
115
115
  var IdsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
116
- var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.w;
117
- var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
118
- var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
119
- var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.s3;
116
+ var EngineLogicConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.m;
117
+ var jsonModule = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
118
+ var getEngineGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.o;
119
+ var MechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.i3;
120
120
  var Provider = kotlin_org_kodein_di_kodein_di.$_$.c;
121
121
  var Singleton = kotlin_org_kodein_di_kodein_di.$_$.d;
122
- var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.h3;
123
- var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.f4;
124
- var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.d4;
122
+ var StoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.x2;
123
+ var StateProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
124
+ var GameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.t3;
125
125
  var initMetadataForInterface = kotlin_kotlin.$_$.wb;
126
126
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
127
127
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
128
128
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
129
- var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
129
+ var CombinedToClientAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y;
130
130
  var single = kotlin_kotlin.$_$.i9;
131
131
  var copyToArray = kotlin_kotlin.$_$.i7;
132
- var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.h1;
132
+ var ActionDeliveryPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
133
133
  var toString = kotlin_kotlin.$_$.yc;
134
134
  var getStringHashCode = kotlin_kotlin.$_$.rb;
135
135
  var KtList = kotlin_kotlin.$_$.x5;
@@ -145,152 +145,121 @@
145
145
  var flatMapConcat = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
146
146
  var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.g2;
147
147
  var Action = kotlin_io_raspberryapps_game_engine_core.$_$.h2;
148
- var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.j3;
149
- var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.i3;
150
- var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
151
- var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.g3;
152
- var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.f3;
148
+ var ValidationStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
149
+ var TimersStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
150
+ var BotGameStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
151
+ var GameMechanicStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
152
+ var FileLoggerStoreContract = kotlin_io_raspberryapps_game_engine_engine.$_$.v2;
153
153
  var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.j1;
154
- var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
155
- var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
156
- var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.e1;
154
+ var LastCardInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
155
+ var EngineBotConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
156
+ var ScenePositionProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
157
157
  var listOf = kotlin_kotlin.$_$.q8;
158
- var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.q3;
158
+ var checkBotsMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.g3;
159
159
  var listOfNotNull = kotlin_kotlin.$_$.n8;
160
- var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.m3;
161
- var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.n3;
160
+ var playerConnectionUpdateMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.c3;
161
+ var playerReconnectionWaitingTimerTickMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.d3;
162
162
  var listOfNotNull_0 = kotlin_kotlin.$_$.o8;
163
- var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.k3;
164
- var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.o3;
163
+ var roundLifecycleMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.a3;
164
+ var playerTurnTimeoutWhenHostMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.e3;
165
165
  var listOf_0 = kotlin_kotlin.$_$.p8;
166
- var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
167
- var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
168
- var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f2;
166
+ var clearOnFinishMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.f3;
167
+ var putPlayerLastCardMiddleware = kotlin_io_raspberryapps_game_engine_engine.$_$.b3;
168
+ var RoundEndedAction = kotlin_io_raspberryapps_game_engine_engine.$_$.v1;
169
169
  var Middleware = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
170
- var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.l2;
171
- var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
172
- var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.u1;
173
- var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p2;
174
- var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.e;
175
- var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.z1;
176
- var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m2;
177
- var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.s1;
178
- var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a3;
179
- var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.q1;
180
- var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
181
- var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.x1;
182
- var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.r2;
183
- var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.m1;
184
- var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g2;
185
- var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.a2;
186
- var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.z2;
187
- var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
188
- var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.x2;
189
- var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
190
- var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q2;
191
- var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.g;
170
+ var MechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.b2;
171
+ var RoomActionPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.z;
172
+ var mapToClient = kotlin_io_raspberryapps_game_engine_engine.$_$.k1;
173
+ var PlayerConnectionChangedMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.f2;
174
+ var UserMessage = kotlin_io_raspberryapps_game_engine_engine.$_$.g;
175
+ var mapToClient_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.p1;
176
+ var MessageMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.c2;
177
+ var mapToClient_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.i1;
178
+ var WinnerCombinationsMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.q2;
179
+ var mapToClient_2 = kotlin_io_raspberryapps_game_engine_engine.$_$.g1;
180
+ var PickUpBribeMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.e2;
181
+ var mapToClient_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.n1;
182
+ var PutCardMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.h2;
183
+ var mapToClient_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
184
+ var CombinationChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w1;
185
+ var mapToClient_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.q1;
186
+ var TrumpMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.p2;
187
+ var mapToClient_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.u1;
188
+ var SuitChoiceMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.n2;
189
+ var mapToClient_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.t1;
190
+ var PlayerReadyMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.g2;
191
+ var getGameCreator = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
192
192
  var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
193
- var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.r4;
194
- var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.b2;
195
- var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y2;
196
- var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.y1;
197
- var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.t2;
198
- var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.c2;
199
- var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.u2;
200
- var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.v1;
201
- var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i2;
202
- var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
203
- var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.s2;
204
- var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.t1;
205
- var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.w1;
206
- var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.k2;
207
- var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.p1;
208
- var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.r1;
209
- var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.w2;
210
- var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.n1;
193
+ var UserActionPayload_init_$Create$ = kotlin_io_raspberryapps_game_engine_engine.$_$.x3;
194
+ var mapToClient_8 = kotlin_io_raspberryapps_game_engine_engine.$_$.r1;
195
+ var TeamsDataMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.o2;
196
+ var mapToClient_9 = kotlin_io_raspberryapps_game_engine_engine.$_$.o1;
197
+ var SceneActMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.j2;
198
+ var mapToClient_10 = kotlin_io_raspberryapps_game_engine_engine.$_$.s1;
199
+ var SceneMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.k2;
200
+ var mapToClient_11 = kotlin_io_raspberryapps_game_engine_engine.$_$.l1;
201
+ var ErrorAction = kotlin_io_raspberryapps_game_engine_engine.$_$.y1;
202
+ var mapToClient_12 = kotlin_io_raspberryapps_game_engine_engine.$_$.e1;
203
+ var RestartGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.i2;
204
+ var mapToClient_13 = kotlin_io_raspberryapps_game_engine_engine.$_$.j1;
205
+ var mapToClient_14 = kotlin_io_raspberryapps_game_engine_engine.$_$.m1;
206
+ var FinishingGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.a2;
207
+ var mapToClient_15 = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
208
+ var mapToClient_16 = kotlin_io_raspberryapps_game_engine_engine.$_$.h1;
209
+ var StartNewGameMechanicAction = kotlin_io_raspberryapps_game_engine_engine.$_$.m2;
210
+ var mapToClient_17 = kotlin_io_raspberryapps_game_engine_engine.$_$.d1;
211
211
  var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.j2;
212
- var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.b4;
213
- var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
212
+ var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.d4;
213
+ var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.b4;
214
214
  var Companion_getInstance = kotlin_kotlin.$_$.g5;
215
215
  var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
216
216
  var toDuration = kotlin_kotlin.$_$.zf;
217
- var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.r3;
218
- var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.q4;
217
+ var BaseMechanicLifecycleReducer = kotlin_io_raspberryapps_game_engine_engine.$_$.h3;
218
+ var GameLifecycleState_CREATED_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.w3;
219
219
  var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.m;
220
220
  var singleOrNull = kotlin_kotlin.$_$.h9;
221
221
  var Collection = kotlin_kotlin.$_$.r5;
222
222
  var toSet = kotlin_kotlin.$_$.z9;
223
- var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.f;
224
- var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.v3;
223
+ var Spectator = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
224
+ var AppStatePayload = kotlin_io_raspberryapps_game_engine_engine.$_$.l3;
225
225
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
226
- var isArray = kotlin_kotlin.$_$.zb;
227
- var get_entries = kotlin_io_raspberryapps_game_engine_engine.$_$.i;
228
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
229
- var get_entries_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.r;
230
- var get_entries_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
231
- var getUserProfilePayloadOrNull = kotlin_io_raspberryapps_game_engine_engine.$_$.h;
232
- var Companion_instance_3 = kotlin_io_raspberryapps_game_engine_engine.$_$.v4;
233
- var Config = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
234
- var PointsMode_SMALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.o4;
235
- var PointsMode_MEDIUM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.n4;
236
- var PointsMode_BIG_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.m4;
237
- var PointsMode_TEST_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.p4;
238
- var PlayersMode_TWO_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.l4;
239
- var PlayersMode_THREE_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.k4;
240
- var PlayersMode_FOUR_PLAYERS_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.j4;
241
- var PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.i4;
242
- var Rules = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
243
- var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.t2;
244
- var toRoundContractType = kotlin_io_raspberryapps_game_engine_engine.$_$.p;
245
- var Companion_getInstance_0 = kotlin_io_raspberryapps_game_engine_engine.$_$.s4;
246
- var toBidType = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
247
- var mapToCombinationType = kotlin_io_raspberryapps_game_engine_engine.$_$.l;
248
- var Companion_getInstance_1 = kotlin_io_raspberryapps_game_engine_engine.$_$.u4;
249
- var toPointsDistributeMode = kotlin_io_raspberryapps_game_engine_engine.$_$.o;
250
- var PointsDistributeMode_HIGHEST_PLAYER_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.h4;
251
- var PointsDistributeMode_ALL_getInstance = kotlin_io_raspberryapps_game_engine_engine.$_$.g4;
252
- var getValue = kotlin_kotlin.$_$.a8;
253
- var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.t4;
254
- var valueOf = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
255
- var Default_getInstance = kotlin_kotlin.$_$.d5;
256
- var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.c;
257
- var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.u;
226
+ var DealerConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.k;
258
227
  var CoreConfig = kotlin_io_raspberryapps_game_engine_core.$_$.e1;
259
228
  var RandomOrgConfig = kotlin_io_raspberryapps_cardgame_random.$_$.b;
260
- var Companion_instance_5 = kotlin_org_kodein_di_kodein_di.$_$.b;
261
- var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
229
+ var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
230
+ var LoggerCallbacksWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.c;
262
231
  var mutableListOf = kotlin_kotlin.$_$.v8;
263
232
  var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
264
233
  var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
265
234
  var randomOrgModule = kotlin_io_raspberryapps_game_engine_core.$_$.p1;
266
- var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
267
- var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.z3;
268
- var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.y3;
269
- var Companion_instance_6 = kotlin_io_raspberryapps_game_engine_engine.$_$.z4;
270
- var Companion_instance_7 = kotlin_io_raspberryapps_game_engine_engine.$_$.y4;
271
- var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.t;
235
+ var FileLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.q3;
236
+ var FileLoggerOutputImpl = kotlin_io_raspberryapps_game_engine_engine.$_$.p3;
237
+ var CallbackWrapperLoggerOutput = kotlin_io_raspberryapps_game_engine_engine.$_$.o3;
238
+ var Companion_instance_4 = kotlin_io_raspberryapps_game_engine_engine.$_$.b4;
239
+ var Companion_instance_5 = kotlin_io_raspberryapps_game_engine_engine.$_$.a4;
240
+ var toLoggerPayload = kotlin_io_raspberryapps_game_engine_engine.$_$.j;
272
241
  var combinedLoggerModule = kotlin_io_raspberryapps_game_engine_core.$_$.m1;
273
242
  var dealerModule = kotlin_io_raspberryapps_game_engine_core.$_$.o1;
274
243
  var coreModule = kotlin_io_raspberryapps_game_engine_core.$_$.n1;
275
- var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.n4;
276
- var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.x3;
277
- var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.y3;
278
- var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
244
+ var AppEnvironment_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.p4;
245
+ var AppEnvironmentValue_DEVELOPMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
246
+ var AppEnvironmentValue_PRODUCTION_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.a4;
247
+ var ParserHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.d;
248
+ var GameHelper = kotlin_io_raspberryapps_game_engine_engine.$_$.a;
249
+ var GameResources = kotlin_io_raspberryapps_game_engine_engine.$_$.b;
279
250
  var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
280
- var Companion_instance_8 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
251
+ var Companion_instance_6 = kotlin_io_raspberryapps_cardgame_logger.$_$.n;
281
252
  var toList_0 = kotlin_kotlin.$_$.s9;
282
253
  var middleware = kotlin_io_raspberryapps_game_engine_core.$_$.m2;
283
254
  var get_direct = kotlin_org_kodein_di_kodein_di.$_$.g;
284
- var mapToDto = kotlin_io_raspberryapps_game_engine_engine.$_$.m;
285
- var RoomConfig = kotlin_io_raspberryapps_game_engine_engine.$_$.a5;
286
- var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.x;
255
+ var get_botGameModule = kotlin_io_raspberryapps_game_engine_engine.$_$.n;
287
256
  var emptyMap = kotlin_kotlin.$_$.o7;
288
- var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.c1;
289
- var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.f1;
290
- var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.l1;
291
- var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.n2;
292
- var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.a1;
293
- var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.c;
257
+ var PlayerAnswerInteractor = kotlin_io_raspberryapps_game_engine_engine.$_$.s;
258
+ var FromClientActionPayloadProvider = kotlin_io_raspberryapps_game_engine_engine.$_$.v;
259
+ var mapFromClient = kotlin_io_raspberryapps_game_engine_engine.$_$.b1;
260
+ var NextPlayerTurnAction = kotlin_io_raspberryapps_game_engine_engine.$_$.d2;
261
+ var get_ratingModule = kotlin_io_raspberryapps_game_engine_engine.$_$.q;
262
+ var engineHelpersModule = kotlin_io_raspberryapps_game_engine_engine.$_$.e;
294
263
  //endregion
295
264
  //region block: pre-declaration
296
265
  initMetadataForLambda(GameServer$subscribeToClientAction$slambda$slambda, CoroutineImpl, VOID, [1]);
@@ -321,15 +290,15 @@
321
290
  tmp = spectators;
322
291
  }
323
292
  spectators = tmp;
324
- return this.t9c(roomId, gameCreatorId, config, users, spectators);
293
+ return this.l9d(roomId, gameCreatorId, config, users, spectators);
325
294
  }
326
295
  function roomOnDelete(newRid, $super) {
327
296
  newRid = newRid === VOID ? null : newRid;
328
- return this.u9c(newRid);
297
+ return this.m9d(newRid);
329
298
  }
330
299
  function shutdown(reason, roomId, $super) {
331
300
  roomId = roomId === VOID ? null : roomId;
332
- return this.v9c(reason, roomId);
301
+ return this.n9d(reason, roomId);
333
302
  }
334
303
  initMetadataForInterface(ServerGameEngineContract, 'ServerGameEngineContract', VOID, VOID, [GameStoreContract]);
335
304
  initMetadataForClass(GameServer, 'GameServer', VOID, BaseGame, [BaseGame, ServerGameEngineContract]);
@@ -358,24 +327,6 @@
358
327
  initMetadataForClass(_no_name_provided__qut3iv_3, VOID, VOID, VOID, [Reducer]);
359
328
  initMetadataForCompanion(Companion_1);
360
329
  initMetadataForClass(ServerState, 'ServerState', VOID, VOID, [AppStatePayload]);
361
- initMetadataForInterface(GameHelper, 'GameHelper');
362
- initMetadataForClass(GameHelperImpl, 'GameHelperImpl', GameHelperImpl, VOID, [GameHelper]);
363
- function createBotUser(playerId, existingNicknames, $super) {
364
- var tmp;
365
- if (existingNicknames === VOID) {
366
- // Inline function 'kotlin.emptyArray' call
367
- tmp = [];
368
- } else {
369
- tmp = existingNicknames;
370
- }
371
- existingNicknames = tmp;
372
- return this.w9g(playerId, existingNicknames);
373
- }
374
- initMetadataForInterface(GameResources, 'GameResources');
375
- initMetadataForCompanion(Companion_2);
376
- initMetadataForClass(AvatarSet, 'AvatarSet', VOID, Enum);
377
- initMetadataForClass(AvatarData, 'AvatarData');
378
- initMetadataForClass(GameResourcesImpl, 'GameResourcesImpl', GameResourcesImpl, VOID, [GameResources]);
379
330
  function createGameEngineWithLogic(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig, $super) {
380
331
  var tmp;
381
332
  if (reducers === VOID) {
@@ -397,7 +348,7 @@
397
348
  logicConfig = logicConfig === VOID ? new EngineLogicConfig() : logicConfig;
398
349
  dealerConfig = dealerConfig === VOID ? new DealerConfig() : dealerConfig;
399
350
  coreConfig = coreConfig === VOID ? new CoreConfig() : coreConfig;
400
- return this.n9h(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
351
+ return this.t9h(reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig);
401
352
  }
402
353
  initMetadataForInterface(GameEngineController, 'GameEngineController');
403
354
  initMetadataForClass(_no_name_provided__qut3iv_4, VOID, VOID, VOID, [Reducer]);
@@ -406,17 +357,17 @@
406
357
  initMetadataForClass(TestHelperImpl, 'TestHelperImpl', VOID, VOID, [TestHelper]);
407
358
  //endregion
408
359
  function GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation) {
409
- this.g95_1 = $subscriber;
360
+ this.y95_1 = $subscriber;
410
361
  CoroutineImpl.call(this, resultContinuation);
411
362
  }
412
- protoOf(GameServer$subscribeToClientAction$slambda$slambda).i95 = function (it, $completion) {
413
- var tmp = this.j95(it, $completion);
363
+ protoOf(GameServer$subscribeToClientAction$slambda$slambda).a96 = function (it, $completion) {
364
+ var tmp = this.b96(it, $completion);
414
365
  tmp.g9_1 = Unit_instance;
415
366
  tmp.h9_1 = null;
416
367
  return tmp.m9();
417
368
  };
418
369
  protoOf(GameServer$subscribeToClientAction$slambda$slambda).w9 = function (p1, $completion) {
419
- return this.i95(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
370
+ return this.a96(p1 instanceof ToClientAction ? p1 : THROW_CCE(), $completion);
420
371
  };
421
372
  protoOf(GameServer$subscribeToClientAction$slambda$slambda).m9 = function () {
422
373
  var suspendResult = this.g9_1;
@@ -425,7 +376,7 @@
425
376
  var tmp = this.e9_1;
426
377
  if (tmp === 0) {
427
378
  this.f9_1 = 1;
428
- this.g95_1(this.h95_1);
379
+ this.y95_1(this.z95_1);
429
380
  return Unit_instance;
430
381
  } else if (tmp === 1) {
431
382
  throw this.h9_1;
@@ -436,31 +387,31 @@
436
387
  }
437
388
  while (true);
438
389
  };
439
- protoOf(GameServer$subscribeToClientAction$slambda$slambda).j95 = function (it, completion) {
440
- var i = new GameServer$subscribeToClientAction$slambda$slambda(this.g95_1, completion);
441
- i.h95_1 = it;
390
+ protoOf(GameServer$subscribeToClientAction$slambda$slambda).b96 = function (it, completion) {
391
+ var i = new GameServer$subscribeToClientAction$slambda$slambda(this.y95_1, completion);
392
+ i.z95_1 = it;
442
393
  return i;
443
394
  };
444
395
  function GameServer$subscribeToClientAction$slambda$slambda_0($subscriber, resultContinuation) {
445
396
  var i = new GameServer$subscribeToClientAction$slambda$slambda($subscriber, resultContinuation);
446
397
  var l = function (it, $completion) {
447
- return i.i95(it, $completion);
398
+ return i.a96(it, $completion);
448
399
  };
449
400
  l.$arity = 1;
450
401
  return l;
451
402
  }
452
403
  function GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation) {
453
- this.s95_1 = $subscriber;
404
+ this.k96_1 = $subscriber;
454
405
  CoroutineImpl.call(this, resultContinuation);
455
406
  }
456
- protoOf(GameServer$subscribeWith$slambda$slambda).u95 = function (it, $completion) {
457
- var tmp = this.v95(it, $completion);
407
+ protoOf(GameServer$subscribeWith$slambda$slambda).m96 = function (it, $completion) {
408
+ var tmp = this.n96(it, $completion);
458
409
  tmp.g9_1 = Unit_instance;
459
410
  tmp.h9_1 = null;
460
411
  return tmp.m9();
461
412
  };
462
413
  protoOf(GameServer$subscribeWith$slambda$slambda).w9 = function (p1, $completion) {
463
- return this.u95(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
414
+ return this.m96(p1 instanceof AppState ? p1 : THROW_CCE(), $completion);
464
415
  };
465
416
  protoOf(GameServer$subscribeWith$slambda$slambda).m9 = function () {
466
417
  var suspendResult = this.g9_1;
@@ -469,7 +420,7 @@
469
420
  var tmp = this.e9_1;
470
421
  if (tmp === 0) {
471
422
  this.f9_1 = 1;
472
- this.s95_1(this.t95_1);
423
+ this.k96_1(this.l96_1);
473
424
  return Unit_instance;
474
425
  } else if (tmp === 1) {
475
426
  throw this.h9_1;
@@ -480,58 +431,58 @@
480
431
  }
481
432
  while (true);
482
433
  };
483
- protoOf(GameServer$subscribeWith$slambda$slambda).v95 = function (it, completion) {
484
- var i = new GameServer$subscribeWith$slambda$slambda(this.s95_1, completion);
485
- i.t95_1 = it;
434
+ protoOf(GameServer$subscribeWith$slambda$slambda).n96 = function (it, completion) {
435
+ var i = new GameServer$subscribeWith$slambda$slambda(this.k96_1, completion);
436
+ i.l96_1 = it;
486
437
  return i;
487
438
  };
488
439
  function GameServer$subscribeWith$slambda$slambda_0($subscriber, resultContinuation) {
489
440
  var i = new GameServer$subscribeWith$slambda$slambda($subscriber, resultContinuation);
490
441
  var l = function (it, $completion) {
491
- return i.u95(it, $completion);
442
+ return i.m96(it, $completion);
492
443
  };
493
444
  l.$arity = 1;
494
445
  return l;
495
446
  }
496
447
  function _get_logger__rkp4sl($this) {
497
448
  // Inline function 'kotlin.getValue' call
498
- var this_0 = $this.y95_1;
449
+ var this_0 = $this.q96_1;
499
450
  logger$factory_0();
500
451
  return this_0.u();
501
452
  }
502
453
  function _get_toClientEventsObserver__6rp51y($this) {
503
454
  // Inline function 'kotlin.getValue' call
504
- var this_0 = $this.z95_1;
455
+ var this_0 = $this.r96_1;
505
456
  toClientEventsObserver$factory_0();
506
457
  return this_0.u();
507
458
  }
508
459
  function _get_playerConnectionInteractor__si6cxf($this) {
509
460
  // Inline function 'kotlin.getValue' call
510
- var this_0 = $this.a96_1;
461
+ var this_0 = $this.s96_1;
511
462
  playerConnectionInteractor$factory_0();
512
463
  return this_0.u();
513
464
  }
514
465
  function _get_random__h29cgo($this) {
515
466
  // Inline function 'kotlin.getValue' call
516
- var this_0 = $this.b96_1;
467
+ var this_0 = $this.t96_1;
517
468
  random$factory();
518
469
  return this_0.u();
519
470
  }
520
471
  function Companion() {
521
- this.d96_1 = 'GameEngine_API';
472
+ this.v96_1 = 'GameEngine_API';
522
473
  }
523
- var Companion_instance_9;
524
- function Companion_getInstance_2() {
525
- return Companion_instance_9;
474
+ var Companion_instance_7;
475
+ function Companion_getInstance_0() {
476
+ return Companion_instance_7;
526
477
  }
527
478
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
528
- this.e96_1 = function_0;
479
+ this.w96_1 = function_0;
529
480
  }
530
481
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
531
- return this.e96_1(value, $completion);
482
+ return this.w96_1(value, $completion);
532
483
  };
533
484
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
534
- return this.e96_1;
485
+ return this.w96_1;
535
486
  };
536
487
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
537
488
  var tmp;
@@ -552,13 +503,13 @@
552
503
  return hashCode(this.o3());
553
504
  };
554
505
  function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
555
- this.f96_1 = function_0;
506
+ this.x96_1 = function_0;
556
507
  }
557
508
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
558
- return this.f96_1(value, $completion);
509
+ return this.x96_1(value, $completion);
559
510
  };
560
511
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
561
- return this.f96_1;
512
+ return this.x96_1;
562
513
  };
563
514
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
564
515
  var tmp;
@@ -584,8 +535,8 @@
584
535
  };
585
536
  }
586
537
  function GameServer$subscribeToClientAction$slambda(this$0, $subscriber, resultContinuation) {
587
- this.o96_1 = this$0;
588
- this.p96_1 = $subscriber;
538
+ this.g97_1 = this$0;
539
+ this.h97_1 = $subscriber;
589
540
  CoroutineImpl.call(this, resultContinuation);
590
541
  }
591
542
  protoOf(GameServer$subscribeToClientAction$slambda).h1d = function ($this$launchDefault, $completion) {
@@ -606,8 +557,8 @@
606
557
  case 0:
607
558
  this.f9_1 = 2;
608
559
  this.e9_1 = 1;
609
- var tmp_0 = _get_toClientEventsObserver__6rp51y(this.o96_1).r96();
610
- var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.p96_1, null);
560
+ var tmp_0 = _get_toClientEventsObserver__6rp51y(this.g97_1).j97();
561
+ var tmp_1 = GameServer$subscribeToClientAction$slambda$slambda_0(this.h97_1, null);
611
562
  suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
612
563
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
613
564
  return suspendResult;
@@ -631,8 +582,8 @@
631
582
  while (true);
632
583
  };
633
584
  protoOf(GameServer$subscribeToClientAction$slambda).i1d = function ($this$launchDefault, completion) {
634
- var i = new GameServer$subscribeToClientAction$slambda(this.o96_1, this.p96_1, completion);
635
- i.q96_1 = $this$launchDefault;
585
+ var i = new GameServer$subscribeToClientAction$slambda(this.g97_1, this.h97_1, completion);
586
+ i.i97_1 = $this$launchDefault;
636
587
  return i;
637
588
  };
638
589
  function GameServer$subscribeToClientAction$slambda_0(this$0, $subscriber, resultContinuation) {
@@ -644,8 +595,8 @@
644
595
  return l;
645
596
  }
646
597
  function GameServer$subscribeWith$slambda(this$0, $subscriber, resultContinuation) {
647
- this.a97_1 = this$0;
648
- this.b97_1 = $subscriber;
598
+ this.s97_1 = this$0;
599
+ this.t97_1 = $subscriber;
649
600
  CoroutineImpl.call(this, resultContinuation);
650
601
  }
651
602
  protoOf(GameServer$subscribeWith$slambda).h1d = function ($this$launchDefault, $completion) {
@@ -666,8 +617,8 @@
666
617
  case 0:
667
618
  this.f9_1 = 2;
668
619
  this.e9_1 = 1;
669
- var tmp_0 = distinctUntilChanged(this.a97_1.x6l());
670
- var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.b97_1, null);
620
+ var tmp_0 = distinctUntilChanged(this.s97_1.x6l());
621
+ var tmp_1 = GameServer$subscribeWith$slambda$slambda_0(this.t97_1, null);
671
622
  suspendResult = tmp_0.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
672
623
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
673
624
  return suspendResult;
@@ -691,8 +642,8 @@
691
642
  while (true);
692
643
  };
693
644
  protoOf(GameServer$subscribeWith$slambda).i1d = function ($this$launchDefault, completion) {
694
- var i = new GameServer$subscribeWith$slambda(this.a97_1, this.b97_1, completion);
695
- i.c97_1 = $this$launchDefault;
645
+ var i = new GameServer$subscribeWith$slambda(this.s97_1, this.t97_1, completion);
646
+ i.u97_1 = $this$launchDefault;
696
647
  return i;
697
648
  };
698
649
  function GameServer$subscribeWith$slambda_0(this$0, $subscriber, resultContinuation) {
@@ -704,18 +655,18 @@
704
655
  return l;
705
656
  }
706
657
  function GameServer$fromClientEvent$slambda($action, resultContinuation) {
707
- this.l97_1 = $action;
658
+ this.d98_1 = $action;
708
659
  CoroutineImpl.call(this, resultContinuation);
709
660
  }
710
- protoOf(GameServer$fromClientEvent$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
711
- var tmp = this.p97($this$dispatchAsync, store, $completion);
661
+ protoOf(GameServer$fromClientEvent$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
662
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
712
663
  tmp.g9_1 = Unit_instance;
713
664
  tmp.h9_1 = null;
714
665
  return tmp.m9();
715
666
  };
716
667
  protoOf(GameServer$fromClientEvent$slambda).x9 = function (p1, p2, $completion) {
717
668
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
718
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
669
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
719
670
  };
720
671
  protoOf(GameServer$fromClientEvent$slambda).m9 = function () {
721
672
  var suspendResult = this.g9_1;
@@ -724,11 +675,11 @@
724
675
  var tmp = this.e9_1;
725
676
  if (tmp === 0) {
726
677
  this.f9_1 = 1;
727
- if (this.l97_1 instanceof PlayerReadyFromClientAction)
728
- if (!get_isCreated(this.n97_1.state)) {
678
+ if (this.d98_1 instanceof PlayerReadyFromClientAction)
679
+ if (!get_isCreated(this.f98_1.state)) {
729
680
  return Unit_instance;
730
681
  }
731
- this.n97_1.dispatch(this.l97_1);
682
+ this.f98_1.dispatch(this.d98_1);
732
683
  return Unit_instance;
733
684
  } else if (tmp === 1) {
734
685
  throw this.h9_1;
@@ -739,33 +690,33 @@
739
690
  }
740
691
  while (true);
741
692
  };
742
- protoOf(GameServer$fromClientEvent$slambda).p97 = function ($this$dispatchAsync, store, completion) {
743
- var i = new GameServer$fromClientEvent$slambda(this.l97_1, completion);
744
- i.m97_1 = $this$dispatchAsync;
745
- i.n97_1 = store;
693
+ protoOf(GameServer$fromClientEvent$slambda).h98 = function ($this$dispatchAsync, store, completion) {
694
+ var i = new GameServer$fromClientEvent$slambda(this.d98_1, completion);
695
+ i.e98_1 = $this$dispatchAsync;
696
+ i.f98_1 = store;
746
697
  return i;
747
698
  };
748
699
  function GameServer$fromClientEvent$slambda_0($action, resultContinuation) {
749
700
  var i = new GameServer$fromClientEvent$slambda($action, resultContinuation);
750
701
  var l = function ($this$dispatchAsync, store, $completion) {
751
- return i.o97($this$dispatchAsync, store, $completion);
702
+ return i.g98($this$dispatchAsync, store, $completion);
752
703
  };
753
704
  l.$arity = 2;
754
705
  return l;
755
706
  }
756
707
  function GameServer$playerLostConnection$slambda($playerId, resultContinuation) {
757
- this.y97_1 = $playerId;
708
+ this.q98_1 = $playerId;
758
709
  CoroutineImpl.call(this, resultContinuation);
759
710
  }
760
- protoOf(GameServer$playerLostConnection$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
761
- var tmp = this.p97($this$dispatchAsync, store, $completion);
711
+ protoOf(GameServer$playerLostConnection$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
712
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
762
713
  tmp.g9_1 = Unit_instance;
763
714
  tmp.h9_1 = null;
764
715
  return tmp.m9();
765
716
  };
766
717
  protoOf(GameServer$playerLostConnection$slambda).x9 = function (p1, p2, $completion) {
767
718
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
768
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
719
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
769
720
  };
770
721
  protoOf(GameServer$playerLostConnection$slambda).m9 = function () {
771
722
  var suspendResult = this.g9_1;
@@ -774,12 +725,12 @@
774
725
  var tmp = this.e9_1;
775
726
  if (tmp === 0) {
776
727
  this.f9_1 = 1;
777
- if (!get_isCreated(this.a98_1.state)) {
728
+ if (!get_isCreated(this.s98_1.state)) {
778
729
  return Unit_instance;
779
730
  }
780
- var tmp_0 = this.a98_1.dispatch;
731
+ var tmp_0 = this.s98_1.dispatch;
781
732
  var tmp0_connectionState = PlayerConnectionState_LOST_CONNECTION_getInstance();
782
- tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.y97_1));
733
+ tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.q98_1));
783
734
  return Unit_instance;
784
735
  } else if (tmp === 1) {
785
736
  throw this.h9_1;
@@ -790,33 +741,33 @@
790
741
  }
791
742
  while (true);
792
743
  };
793
- protoOf(GameServer$playerLostConnection$slambda).p97 = function ($this$dispatchAsync, store, completion) {
794
- var i = new GameServer$playerLostConnection$slambda(this.y97_1, completion);
795
- i.z97_1 = $this$dispatchAsync;
796
- i.a98_1 = store;
744
+ protoOf(GameServer$playerLostConnection$slambda).h98 = function ($this$dispatchAsync, store, completion) {
745
+ var i = new GameServer$playerLostConnection$slambda(this.q98_1, completion);
746
+ i.r98_1 = $this$dispatchAsync;
747
+ i.s98_1 = store;
797
748
  return i;
798
749
  };
799
750
  function GameServer$playerLostConnection$slambda_0($playerId, resultContinuation) {
800
751
  var i = new GameServer$playerLostConnection$slambda($playerId, resultContinuation);
801
752
  var l = function ($this$dispatchAsync, store, $completion) {
802
- return i.o97($this$dispatchAsync, store, $completion);
753
+ return i.g98($this$dispatchAsync, store, $completion);
803
754
  };
804
755
  l.$arity = 2;
805
756
  return l;
806
757
  }
807
758
  function GameServer$playerLive$slambda($playerId, resultContinuation) {
808
- this.j98_1 = $playerId;
759
+ this.b99_1 = $playerId;
809
760
  CoroutineImpl.call(this, resultContinuation);
810
761
  }
811
- protoOf(GameServer$playerLive$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
812
- var tmp = this.p97($this$dispatchAsync, store, $completion);
762
+ protoOf(GameServer$playerLive$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
763
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
813
764
  tmp.g9_1 = Unit_instance;
814
765
  tmp.h9_1 = null;
815
766
  return tmp.m9();
816
767
  };
817
768
  protoOf(GameServer$playerLive$slambda).x9 = function (p1, p2, $completion) {
818
769
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
819
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
770
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
820
771
  };
821
772
  protoOf(GameServer$playerLive$slambda).m9 = function () {
822
773
  var suspendResult = this.g9_1;
@@ -825,9 +776,9 @@
825
776
  var tmp = this.e9_1;
826
777
  if (tmp === 0) {
827
778
  this.f9_1 = 1;
828
- var tmp_0 = this.l98_1.dispatch;
779
+ var tmp_0 = this.d99_1.dispatch;
829
780
  var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
830
- tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.j98_1));
781
+ tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.b99_1));
831
782
  return Unit_instance;
832
783
  } else if (tmp === 1) {
833
784
  throw this.h9_1;
@@ -838,33 +789,33 @@
838
789
  }
839
790
  while (true);
840
791
  };
841
- protoOf(GameServer$playerLive$slambda).p97 = function ($this$dispatchAsync, store, completion) {
842
- var i = new GameServer$playerLive$slambda(this.j98_1, completion);
843
- i.k98_1 = $this$dispatchAsync;
844
- i.l98_1 = store;
792
+ protoOf(GameServer$playerLive$slambda).h98 = function ($this$dispatchAsync, store, completion) {
793
+ var i = new GameServer$playerLive$slambda(this.b99_1, completion);
794
+ i.c99_1 = $this$dispatchAsync;
795
+ i.d99_1 = store;
845
796
  return i;
846
797
  };
847
798
  function GameServer$playerLive$slambda_0($playerId, resultContinuation) {
848
799
  var i = new GameServer$playerLive$slambda($playerId, resultContinuation);
849
800
  var l = function ($this$dispatchAsync, store, $completion) {
850
- return i.o97($this$dispatchAsync, store, $completion);
801
+ return i.g98($this$dispatchAsync, store, $completion);
851
802
  };
852
803
  l.$arity = 2;
853
804
  return l;
854
805
  }
855
806
  function GameServer$playerLeft$slambda($playerId, resultContinuation) {
856
- this.u98_1 = $playerId;
807
+ this.m99_1 = $playerId;
857
808
  CoroutineImpl.call(this, resultContinuation);
858
809
  }
859
- protoOf(GameServer$playerLeft$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
860
- var tmp = this.p97($this$dispatchAsync, store, $completion);
810
+ protoOf(GameServer$playerLeft$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
811
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
861
812
  tmp.g9_1 = Unit_instance;
862
813
  tmp.h9_1 = null;
863
814
  return tmp.m9();
864
815
  };
865
816
  protoOf(GameServer$playerLeft$slambda).x9 = function (p1, p2, $completion) {
866
817
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
867
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
818
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
868
819
  };
869
820
  protoOf(GameServer$playerLeft$slambda).m9 = function () {
870
821
  var suspendResult = this.g9_1;
@@ -873,9 +824,9 @@
873
824
  var tmp = this.e9_1;
874
825
  if (tmp === 0) {
875
826
  this.f9_1 = 1;
876
- var tmp_0 = this.w98_1.dispatch;
827
+ var tmp_0 = this.o99_1.dispatch;
877
828
  var tmp0_connectionState = PlayerConnectionState_LEFT_getInstance();
878
- tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.u98_1));
829
+ tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.m99_1));
879
830
  return Unit_instance;
880
831
  } else if (tmp === 1) {
881
832
  throw this.h9_1;
@@ -886,38 +837,38 @@
886
837
  }
887
838
  while (true);
888
839
  };
889
- protoOf(GameServer$playerLeft$slambda).p97 = function ($this$dispatchAsync, store, completion) {
890
- var i = new GameServer$playerLeft$slambda(this.u98_1, completion);
891
- i.v98_1 = $this$dispatchAsync;
892
- i.w98_1 = store;
840
+ protoOf(GameServer$playerLeft$slambda).h98 = function ($this$dispatchAsync, store, completion) {
841
+ var i = new GameServer$playerLeft$slambda(this.m99_1, completion);
842
+ i.n99_1 = $this$dispatchAsync;
843
+ i.o99_1 = store;
893
844
  return i;
894
845
  };
895
846
  function GameServer$playerLeft$slambda_0($playerId, resultContinuation) {
896
847
  var i = new GameServer$playerLeft$slambda($playerId, resultContinuation);
897
848
  var l = function ($this$dispatchAsync, store, $completion) {
898
- return i.o97($this$dispatchAsync, store, $completion);
849
+ return i.g98($this$dispatchAsync, store, $completion);
899
850
  };
900
851
  l.$arity = 2;
901
852
  return l;
902
853
  }
903
854
  function GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
904
- this.f99_1 = $users;
905
- this.g99_1 = $gameCreatorId;
906
- this.h99_1 = this$0;
907
- this.i99_1 = $spectators;
908
- this.j99_1 = $config;
909
- this.k99_1 = $roomId;
855
+ this.x99_1 = $users;
856
+ this.y99_1 = $gameCreatorId;
857
+ this.z99_1 = this$0;
858
+ this.a9a_1 = $spectators;
859
+ this.b9a_1 = $config;
860
+ this.c9a_1 = $roomId;
910
861
  CoroutineImpl.call(this, resultContinuation);
911
862
  }
912
- protoOf(GameServer$roomOnCreate$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
913
- var tmp = this.p97($this$dispatchAsync, store, $completion);
863
+ protoOf(GameServer$roomOnCreate$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
864
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
914
865
  tmp.g9_1 = Unit_instance;
915
866
  tmp.h9_1 = null;
916
867
  return tmp.m9();
917
868
  };
918
869
  protoOf(GameServer$roomOnCreate$slambda).x9 = function (p1, p2, $completion) {
919
870
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
920
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
871
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
921
872
  };
922
873
  protoOf(GameServer$roomOnCreate$slambda).m9 = function () {
923
874
  var suspendResult = this.g9_1;
@@ -926,13 +877,13 @@
926
877
  var tmp = this.e9_1;
927
878
  if (tmp === 0) {
928
879
  this.f9_1 = 1;
929
- var usersList = toList(this.f99_1);
930
- var gameCreatorUser = getPlayer(usersList, this.g99_1);
931
- var tmp_0 = this.m99_1.dispatch;
880
+ var usersList = toList(this.x99_1);
881
+ var gameCreatorUser = getPlayer(usersList, this.y99_1);
882
+ var tmp_0 = this.e9a_1.dispatch;
932
883
  var tmp0_version = GameEngineConfig_instance.version;
933
- var tmp1_users = sortWithItem(_get_random__h29cgo(this.h99_1).s5s(toMutableList(usersList)), gameCreatorUser);
934
- var tmp2_spectators = toList(this.i99_1);
935
- tmp_0(new StartGameMechanicAction(this.j99_1, this.k99_1, tmp0_version, this.g99_1, tmp1_users, VOID, tmp2_spectators));
884
+ var tmp1_users = sortWithItem(_get_random__h29cgo(this.z99_1).s5s(toMutableList(usersList)), gameCreatorUser);
885
+ var tmp2_spectators = toList(this.a9a_1);
886
+ tmp_0(new StartGameMechanicAction(this.b9a_1, this.c9a_1, tmp0_version, this.y99_1, tmp1_users, VOID, tmp2_spectators));
936
887
  return Unit_instance;
937
888
  } else if (tmp === 1) {
938
889
  throw this.h9_1;
@@ -943,33 +894,33 @@
943
894
  }
944
895
  while (true);
945
896
  };
946
- protoOf(GameServer$roomOnCreate$slambda).p97 = function ($this$dispatchAsync, store, completion) {
947
- var i = new GameServer$roomOnCreate$slambda(this.f99_1, this.g99_1, this.h99_1, this.i99_1, this.j99_1, this.k99_1, completion);
948
- i.l99_1 = $this$dispatchAsync;
949
- i.m99_1 = store;
897
+ protoOf(GameServer$roomOnCreate$slambda).h98 = function ($this$dispatchAsync, store, completion) {
898
+ var i = new GameServer$roomOnCreate$slambda(this.x99_1, this.y99_1, this.z99_1, this.a9a_1, this.b9a_1, this.c9a_1, completion);
899
+ i.d9a_1 = $this$dispatchAsync;
900
+ i.e9a_1 = store;
950
901
  return i;
951
902
  };
952
903
  function GameServer$roomOnCreate$slambda_0($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation) {
953
904
  var i = new GameServer$roomOnCreate$slambda($users, $gameCreatorId, this$0, $spectators, $config, $roomId, resultContinuation);
954
905
  var l = function ($this$dispatchAsync, store, $completion) {
955
- return i.o97($this$dispatchAsync, store, $completion);
906
+ return i.g98($this$dispatchAsync, store, $completion);
956
907
  };
957
908
  l.$arity = 2;
958
909
  return l;
959
910
  }
960
911
  function GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation) {
961
- this.v99_1 = $tableLite;
912
+ this.n9a_1 = $tableLite;
962
913
  CoroutineImpl.call(this, resultContinuation);
963
914
  }
964
- protoOf(GameServer$roomOnContinueFromRound$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
965
- var tmp = this.p97($this$dispatchAsync, store, $completion);
915
+ protoOf(GameServer$roomOnContinueFromRound$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
916
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
966
917
  tmp.g9_1 = Unit_instance;
967
918
  tmp.h9_1 = null;
968
919
  return tmp.m9();
969
920
  };
970
921
  protoOf(GameServer$roomOnContinueFromRound$slambda).x9 = function (p1, p2, $completion) {
971
922
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
972
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
923
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
973
924
  };
974
925
  protoOf(GameServer$roomOnContinueFromRound$slambda).m9 = function () {
975
926
  var suspendResult = this.g9_1;
@@ -978,11 +929,11 @@
978
929
  var tmp = this.e9_1;
979
930
  if (tmp === 0) {
980
931
  this.f9_1 = 1;
981
- var tmp_0 = this.x99_1.dispatch;
932
+ var tmp_0 = this.p9a_1.dispatch;
982
933
  var tmp0_reason = RestartRoundReason_getInstance();
983
- var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.v99_1);
934
+ var tmp1_table = Companion_instance.restartRound(GameEngineConfig_instance.version, this.n9a_1);
984
935
  tmp_0(new ContinueGameMechanicAction(tmp1_table, tmp0_reason));
985
- this.x99_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
936
+ this.p9a_1.dispatch(new SceneEndedMechanicAction('CALC_POINTS'));
986
937
  return Unit_instance;
987
938
  } else if (tmp === 1) {
988
939
  throw this.h9_1;
@@ -993,33 +944,33 @@
993
944
  }
994
945
  while (true);
995
946
  };
996
- protoOf(GameServer$roomOnContinueFromRound$slambda).p97 = function ($this$dispatchAsync, store, completion) {
997
- var i = new GameServer$roomOnContinueFromRound$slambda(this.v99_1, completion);
998
- i.w99_1 = $this$dispatchAsync;
999
- i.x99_1 = store;
947
+ protoOf(GameServer$roomOnContinueFromRound$slambda).h98 = function ($this$dispatchAsync, store, completion) {
948
+ var i = new GameServer$roomOnContinueFromRound$slambda(this.n9a_1, completion);
949
+ i.o9a_1 = $this$dispatchAsync;
950
+ i.p9a_1 = store;
1000
951
  return i;
1001
952
  };
1002
953
  function GameServer$roomOnContinueFromRound$slambda_0($tableLite, resultContinuation) {
1003
954
  var i = new GameServer$roomOnContinueFromRound$slambda($tableLite, resultContinuation);
1004
955
  var l = function ($this$dispatchAsync, store, $completion) {
1005
- return i.o97($this$dispatchAsync, store, $completion);
956
+ return i.g98($this$dispatchAsync, store, $completion);
1006
957
  };
1007
958
  l.$arity = 2;
1008
959
  return l;
1009
960
  }
1010
961
  function GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation) {
1011
- this.g9a_1 = $spectators;
962
+ this.y9a_1 = $spectators;
1012
963
  CoroutineImpl.call(this, resultContinuation);
1013
964
  }
1014
- protoOf(GameServer$addSpectatorsToRoom$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
1015
- var tmp = this.p97($this$dispatchAsync, store, $completion);
965
+ protoOf(GameServer$addSpectatorsToRoom$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
966
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
1016
967
  tmp.g9_1 = Unit_instance;
1017
968
  tmp.h9_1 = null;
1018
969
  return tmp.m9();
1019
970
  };
1020
971
  protoOf(GameServer$addSpectatorsToRoom$slambda).x9 = function (p1, p2, $completion) {
1021
972
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
1022
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
973
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1023
974
  };
1024
975
  protoOf(GameServer$addSpectatorsToRoom$slambda).m9 = function () {
1025
976
  var suspendResult = this.g9_1;
@@ -1028,7 +979,7 @@
1028
979
  var tmp = this.e9_1;
1029
980
  if (tmp === 0) {
1030
981
  this.f9_1 = 1;
1031
- this.i9a_1.dispatch(new AddSpectatorsAction(toList(this.g9a_1)));
982
+ this.a9b_1.dispatch(new AddSpectatorsAction(toList(this.y9a_1)));
1032
983
  return Unit_instance;
1033
984
  } else if (tmp === 1) {
1034
985
  throw this.h9_1;
@@ -1039,33 +990,33 @@
1039
990
  }
1040
991
  while (true);
1041
992
  };
1042
- protoOf(GameServer$addSpectatorsToRoom$slambda).p97 = function ($this$dispatchAsync, store, completion) {
1043
- var i = new GameServer$addSpectatorsToRoom$slambda(this.g9a_1, completion);
1044
- i.h9a_1 = $this$dispatchAsync;
1045
- i.i9a_1 = store;
993
+ protoOf(GameServer$addSpectatorsToRoom$slambda).h98 = function ($this$dispatchAsync, store, completion) {
994
+ var i = new GameServer$addSpectatorsToRoom$slambda(this.y9a_1, completion);
995
+ i.z9a_1 = $this$dispatchAsync;
996
+ i.a9b_1 = store;
1046
997
  return i;
1047
998
  };
1048
999
  function GameServer$addSpectatorsToRoom$slambda_0($spectators, resultContinuation) {
1049
1000
  var i = new GameServer$addSpectatorsToRoom$slambda($spectators, resultContinuation);
1050
1001
  var l = function ($this$dispatchAsync, store, $completion) {
1051
- return i.o97($this$dispatchAsync, store, $completion);
1002
+ return i.g98($this$dispatchAsync, store, $completion);
1052
1003
  };
1053
1004
  l.$arity = 2;
1054
1005
  return l;
1055
1006
  }
1056
1007
  function GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation) {
1057
- this.r9a_1 = $spectators;
1008
+ this.j9b_1 = $spectators;
1058
1009
  CoroutineImpl.call(this, resultContinuation);
1059
1010
  }
1060
- protoOf(GameServer$removeSpectatorsFromRoom$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
1061
- var tmp = this.p97($this$dispatchAsync, store, $completion);
1011
+ protoOf(GameServer$removeSpectatorsFromRoom$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
1012
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
1062
1013
  tmp.g9_1 = Unit_instance;
1063
1014
  tmp.h9_1 = null;
1064
1015
  return tmp.m9();
1065
1016
  };
1066
1017
  protoOf(GameServer$removeSpectatorsFromRoom$slambda).x9 = function (p1, p2, $completion) {
1067
1018
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
1068
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1019
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1069
1020
  };
1070
1021
  protoOf(GameServer$removeSpectatorsFromRoom$slambda).m9 = function () {
1071
1022
  var suspendResult = this.g9_1;
@@ -1074,7 +1025,7 @@
1074
1025
  var tmp = this.e9_1;
1075
1026
  if (tmp === 0) {
1076
1027
  this.f9_1 = 1;
1077
- this.t9a_1.dispatch(new RemoveSpectatorsAction(toList(this.r9a_1)));
1028
+ this.l9b_1.dispatch(new RemoveSpectatorsAction(toList(this.j9b_1)));
1078
1029
  return Unit_instance;
1079
1030
  } else if (tmp === 1) {
1080
1031
  throw this.h9_1;
@@ -1085,34 +1036,34 @@
1085
1036
  }
1086
1037
  while (true);
1087
1038
  };
1088
- protoOf(GameServer$removeSpectatorsFromRoom$slambda).p97 = function ($this$dispatchAsync, store, completion) {
1089
- var i = new GameServer$removeSpectatorsFromRoom$slambda(this.r9a_1, completion);
1090
- i.s9a_1 = $this$dispatchAsync;
1091
- i.t9a_1 = store;
1039
+ protoOf(GameServer$removeSpectatorsFromRoom$slambda).h98 = function ($this$dispatchAsync, store, completion) {
1040
+ var i = new GameServer$removeSpectatorsFromRoom$slambda(this.j9b_1, completion);
1041
+ i.k9b_1 = $this$dispatchAsync;
1042
+ i.l9b_1 = store;
1092
1043
  return i;
1093
1044
  };
1094
1045
  function GameServer$removeSpectatorsFromRoom$slambda_0($spectators, resultContinuation) {
1095
1046
  var i = new GameServer$removeSpectatorsFromRoom$slambda($spectators, resultContinuation);
1096
1047
  var l = function ($this$dispatchAsync, store, $completion) {
1097
- return i.o97($this$dispatchAsync, store, $completion);
1048
+ return i.g98($this$dispatchAsync, store, $completion);
1098
1049
  };
1099
1050
  l.$arity = 2;
1100
1051
  return l;
1101
1052
  }
1102
1053
  function GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation) {
1103
- this.c9b_1 = $playerId;
1104
- this.d9b_1 = this$0;
1054
+ this.u9b_1 = $playerId;
1055
+ this.v9b_1 = this$0;
1105
1056
  CoroutineImpl.call(this, resultContinuation);
1106
1057
  }
1107
- protoOf(GameServer$roomRefreshPlayerState$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
1108
- var tmp = this.p97($this$dispatchAsync, store, $completion);
1058
+ protoOf(GameServer$roomRefreshPlayerState$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
1059
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
1109
1060
  tmp.g9_1 = Unit_instance;
1110
1061
  tmp.h9_1 = null;
1111
1062
  return tmp.m9();
1112
1063
  };
1113
1064
  protoOf(GameServer$roomRefreshPlayerState$slambda).x9 = function (p1, p2, $completion) {
1114
1065
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
1115
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1066
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1116
1067
  };
1117
1068
  protoOf(GameServer$roomRefreshPlayerState$slambda).m9 = function () {
1118
1069
  var suspendResult = this.g9_1;
@@ -1121,14 +1072,14 @@
1121
1072
  var tmp = this.e9_1;
1122
1073
  if (tmp === 0) {
1123
1074
  this.f9_1 = 1;
1124
- var table = this.f9b_1.state.a6n();
1125
- var player = getPlayer(table.players, this.c9b_1);
1126
- if (player.q6s_1.q69().h68_1.isLive) {
1127
- this.f9b_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.d9b_1).t8i(player, table));
1075
+ var table = this.x9b_1.state.a6n();
1076
+ var player = getPlayer(table.players, this.u9b_1);
1077
+ if (player.s6s_1.q69().h68_1.isLive) {
1078
+ this.x9b_1.dispatch(_get_playerConnectionInteractor__si6cxf(this.v9b_1).v8i(player, table));
1128
1079
  } else {
1129
- var tmp_0 = this.f9b_1.dispatch;
1080
+ var tmp_0 = this.x9b_1.dispatch;
1130
1081
  var tmp0_connectionState = PlayerConnectionState_LIVE_getInstance();
1131
- tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.c9b_1));
1082
+ tmp_0(new PlayerConnectionUpdateAction(tmp0_connectionState, this.u9b_1));
1132
1083
  }
1133
1084
  return Unit_instance;
1134
1085
  } else if (tmp === 1) {
@@ -1140,33 +1091,33 @@
1140
1091
  }
1141
1092
  while (true);
1142
1093
  };
1143
- protoOf(GameServer$roomRefreshPlayerState$slambda).p97 = function ($this$dispatchAsync, store, completion) {
1144
- var i = new GameServer$roomRefreshPlayerState$slambda(this.c9b_1, this.d9b_1, completion);
1145
- i.e9b_1 = $this$dispatchAsync;
1146
- i.f9b_1 = store;
1094
+ protoOf(GameServer$roomRefreshPlayerState$slambda).h98 = function ($this$dispatchAsync, store, completion) {
1095
+ var i = new GameServer$roomRefreshPlayerState$slambda(this.u9b_1, this.v9b_1, completion);
1096
+ i.w9b_1 = $this$dispatchAsync;
1097
+ i.x9b_1 = store;
1147
1098
  return i;
1148
1099
  };
1149
1100
  function GameServer$roomRefreshPlayerState$slambda_0($playerId, this$0, resultContinuation) {
1150
1101
  var i = new GameServer$roomRefreshPlayerState$slambda($playerId, this$0, resultContinuation);
1151
1102
  var l = function ($this$dispatchAsync, store, $completion) {
1152
- return i.o97($this$dispatchAsync, store, $completion);
1103
+ return i.g98($this$dispatchAsync, store, $completion);
1153
1104
  };
1154
1105
  l.$arity = 2;
1155
1106
  return l;
1156
1107
  }
1157
1108
  function GameServer$roomOnDelete$slambda(this$0, resultContinuation) {
1158
- this.o9b_1 = this$0;
1109
+ this.g9c_1 = this$0;
1159
1110
  CoroutineImpl.call(this, resultContinuation);
1160
1111
  }
1161
- protoOf(GameServer$roomOnDelete$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
1162
- var tmp = this.p97($this$dispatchAsync, store, $completion);
1112
+ protoOf(GameServer$roomOnDelete$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
1113
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
1163
1114
  tmp.g9_1 = Unit_instance;
1164
1115
  tmp.h9_1 = null;
1165
1116
  return tmp.m9();
1166
1117
  };
1167
1118
  protoOf(GameServer$roomOnDelete$slambda).x9 = function (p1, p2, $completion) {
1168
1119
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
1169
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1120
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1170
1121
  };
1171
1122
  protoOf(GameServer$roomOnDelete$slambda).m9 = function () {
1172
1123
  var suspendResult = this.g9_1;
@@ -1175,16 +1126,16 @@
1175
1126
  var tmp = this.e9_1;
1176
1127
  if (tmp === 0) {
1177
1128
  this.f9_1 = 1;
1178
- var it = this.o9b_1.n67().b6m_1;
1129
+ var it = this.g9c_1.n67().b6m_1;
1179
1130
  var tmp_0;
1180
1131
  if (it == null) {
1181
- _get_logger__rkp4sl(this.o9b_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
1132
+ _get_logger__rkp4sl(this.g9c_1).w('GameEngine_API', "GameServer: Termination reason can't be null");
1182
1133
  tmp_0 = new TerminationState(new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
1183
1134
  } else {
1184
1135
  tmp_0 = it;
1185
1136
  }
1186
1137
  var terminationState = tmp_0;
1187
- this.q9b_1.dispatch(new FinishGameMechanicAction(terminationState.n8m_1, this.o9b_1.n67().a6n().isGameFinished));
1138
+ this.i9c_1.dispatch(new FinishGameMechanicAction(terminationState.p8m_1, this.g9c_1.n67().a6n().isGameFinished));
1188
1139
  return Unit_instance;
1189
1140
  } else if (tmp === 1) {
1190
1141
  throw this.h9_1;
@@ -1195,33 +1146,33 @@
1195
1146
  }
1196
1147
  while (true);
1197
1148
  };
1198
- protoOf(GameServer$roomOnDelete$slambda).p97 = function ($this$dispatchAsync, store, completion) {
1199
- var i = new GameServer$roomOnDelete$slambda(this.o9b_1, completion);
1200
- i.p9b_1 = $this$dispatchAsync;
1201
- i.q9b_1 = store;
1149
+ protoOf(GameServer$roomOnDelete$slambda).h98 = function ($this$dispatchAsync, store, completion) {
1150
+ var i = new GameServer$roomOnDelete$slambda(this.g9c_1, completion);
1151
+ i.h9c_1 = $this$dispatchAsync;
1152
+ i.i9c_1 = store;
1202
1153
  return i;
1203
1154
  };
1204
1155
  function GameServer$roomOnDelete$slambda_0(this$0, resultContinuation) {
1205
1156
  var i = new GameServer$roomOnDelete$slambda(this$0, resultContinuation);
1206
1157
  var l = function ($this$dispatchAsync, store, $completion) {
1207
- return i.o97($this$dispatchAsync, store, $completion);
1158
+ return i.g98($this$dispatchAsync, store, $completion);
1208
1159
  };
1209
1160
  l.$arity = 2;
1210
1161
  return l;
1211
1162
  }
1212
1163
  function GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation) {
1213
- this.z9b_1 = $enabled;
1164
+ this.r9c_1 = $enabled;
1214
1165
  CoroutineImpl.call(this, resultContinuation);
1215
1166
  }
1216
- protoOf(GameServer$setCanStartNewGameEnabled$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
1217
- var tmp = this.p97($this$dispatchAsync, store, $completion);
1167
+ protoOf(GameServer$setCanStartNewGameEnabled$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
1168
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
1218
1169
  tmp.g9_1 = Unit_instance;
1219
1170
  tmp.h9_1 = null;
1220
1171
  return tmp.m9();
1221
1172
  };
1222
1173
  protoOf(GameServer$setCanStartNewGameEnabled$slambda).x9 = function (p1, p2, $completion) {
1223
1174
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
1224
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1175
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1225
1176
  };
1226
1177
  protoOf(GameServer$setCanStartNewGameEnabled$slambda).m9 = function () {
1227
1178
  var suspendResult = this.g9_1;
@@ -1230,7 +1181,7 @@
1230
1181
  var tmp = this.e9_1;
1231
1182
  if (tmp === 0) {
1232
1183
  this.f9_1 = 1;
1233
- this.b9c_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.b9c_1.state).c9c_1.e9c(this.z9b_1)));
1184
+ this.t9c_1.dispatch(new UpdateServerConfigAction(get_serverState_0(this.t9c_1.state).u9c_1.w9c(this.r9c_1)));
1234
1185
  return Unit_instance;
1235
1186
  } else if (tmp === 1) {
1236
1187
  throw this.h9_1;
@@ -1241,35 +1192,35 @@
1241
1192
  }
1242
1193
  while (true);
1243
1194
  };
1244
- protoOf(GameServer$setCanStartNewGameEnabled$slambda).p97 = function ($this$dispatchAsync, store, completion) {
1245
- var i = new GameServer$setCanStartNewGameEnabled$slambda(this.z9b_1, completion);
1246
- i.a9c_1 = $this$dispatchAsync;
1247
- i.b9c_1 = store;
1195
+ protoOf(GameServer$setCanStartNewGameEnabled$slambda).h98 = function ($this$dispatchAsync, store, completion) {
1196
+ var i = new GameServer$setCanStartNewGameEnabled$slambda(this.r9c_1, completion);
1197
+ i.s9c_1 = $this$dispatchAsync;
1198
+ i.t9c_1 = store;
1248
1199
  return i;
1249
1200
  };
1250
1201
  function GameServer$setCanStartNewGameEnabled$slambda_0($enabled, resultContinuation) {
1251
1202
  var i = new GameServer$setCanStartNewGameEnabled$slambda($enabled, resultContinuation);
1252
1203
  var l = function ($this$dispatchAsync, store, $completion) {
1253
- return i.o97($this$dispatchAsync, store, $completion);
1204
+ return i.g98($this$dispatchAsync, store, $completion);
1254
1205
  };
1255
1206
  l.$arity = 2;
1256
1207
  return l;
1257
1208
  }
1258
1209
  function GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation) {
1259
- this.n9c_1 = $reason;
1260
- this.o9c_1 = this$0;
1261
- this.p9c_1 = $roomId;
1210
+ this.f9d_1 = $reason;
1211
+ this.g9d_1 = this$0;
1212
+ this.h9d_1 = $roomId;
1262
1213
  CoroutineImpl.call(this, resultContinuation);
1263
1214
  }
1264
- protoOf(GameServer$shutdown$slambda).o97 = function ($this$dispatchAsync, store, $completion) {
1265
- var tmp = this.p97($this$dispatchAsync, store, $completion);
1215
+ protoOf(GameServer$shutdown$slambda).g98 = function ($this$dispatchAsync, store, $completion) {
1216
+ var tmp = this.h98($this$dispatchAsync, store, $completion);
1266
1217
  tmp.g9_1 = Unit_instance;
1267
1218
  tmp.h9_1 = null;
1268
1219
  return tmp.m9();
1269
1220
  };
1270
1221
  protoOf(GameServer$shutdown$slambda).x9 = function (p1, p2, $completion) {
1271
1222
  var tmp = (!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE();
1272
- return this.o97(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1223
+ return this.g98(tmp, (!(p2 == null) ? isInterface(p2, Store) : false) ? p2 : THROW_CCE(), $completion);
1273
1224
  };
1274
1225
  protoOf(GameServer$shutdown$slambda).m9 = function () {
1275
1226
  var suspendResult = this.g9_1;
@@ -1278,11 +1229,11 @@
1278
1229
  var tmp = this.e9_1;
1279
1230
  if (tmp === 0) {
1280
1231
  this.f9_1 = 1;
1281
- var state = this.r9c_1.store.state;
1232
+ var state = this.j9d_1.store.state;
1282
1233
  if (state.b6n()) {
1283
- var tmp0_elvis_lhs = toDomainEnumSafe(this.n9c_1, get_serverShutdownReasonMapping());
1234
+ var tmp0_elvis_lhs = toDomainEnumSafe(this.f9d_1, get_serverShutdownReasonMapping());
1284
1235
  var shutdownReason = tmp0_elvis_lhs == null ? ServerShutdownReason_ERROR_getInstance() : tmp0_elvis_lhs;
1285
- var tmp_0 = this.r9c_1.dispatch;
1236
+ var tmp_0 = this.j9d_1.dispatch;
1286
1237
  var tmp_1 = Companion_instance_0;
1287
1238
  var tmp_2;
1288
1239
  switch (shutdownReason.n2_1) {
@@ -1296,10 +1247,10 @@
1296
1247
  noWhenBranchMatchedException();
1297
1248
  break;
1298
1249
  }
1299
- tmp_0(tmp_1.withAnalytics(tmp_2, this.o9c_1.table.isGameFinished, this.o9c_1.table));
1250
+ tmp_0(tmp_1.withAnalytics(tmp_2, this.g9d_1.table.isGameFinished, this.g9d_1.table));
1300
1251
  } else {
1301
- _get_logger__rkp4sl(this.o9c_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.p9c_1);
1302
- this.r9c_1.dispatch(new ClearAction());
1252
+ _get_logger__rkp4sl(this.g9d_1).w('GameEngine_API', "GameServer: can't shutdown engine without table, roomId = " + this.h9d_1);
1253
+ this.j9d_1.dispatch(new ClearAction());
1303
1254
  }
1304
1255
  return Unit_instance;
1305
1256
  } else if (tmp === 1) {
@@ -1311,22 +1262,22 @@
1311
1262
  }
1312
1263
  while (true);
1313
1264
  };
1314
- protoOf(GameServer$shutdown$slambda).p97 = function ($this$dispatchAsync, store, completion) {
1315
- var i = new GameServer$shutdown$slambda(this.n9c_1, this.o9c_1, this.p9c_1, completion);
1316
- i.q9c_1 = $this$dispatchAsync;
1317
- i.r9c_1 = store;
1265
+ protoOf(GameServer$shutdown$slambda).h98 = function ($this$dispatchAsync, store, completion) {
1266
+ var i = new GameServer$shutdown$slambda(this.f9d_1, this.g9d_1, this.h9d_1, completion);
1267
+ i.i9d_1 = $this$dispatchAsync;
1268
+ i.j9d_1 = store;
1318
1269
  return i;
1319
1270
  };
1320
1271
  function GameServer$shutdown$slambda_0($reason, this$0, $roomId, resultContinuation) {
1321
1272
  var i = new GameServer$shutdown$slambda($reason, this$0, $roomId, resultContinuation);
1322
1273
  var l = function ($this$dispatchAsync, store, $completion) {
1323
- return i.o97($this$dispatchAsync, store, $completion);
1274
+ return i.g98($this$dispatchAsync, store, $completion);
1324
1275
  };
1325
1276
  l.$arity = 2;
1326
1277
  return l;
1327
1278
  }
1328
1279
  function GameServer(di, tag, storeContract, preloadedState, externalReducers, externalMiddlewares) {
1329
- preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_11.s9c()) : preloadedState;
1280
+ preloadedState = preloadedState === VOID ? new AppState(VOID, Companion_instance_9.k9d()) : preloadedState;
1330
1281
  var tmp;
1331
1282
  if (externalReducers === VOID) {
1332
1283
  // Inline function 'kotlin.collections.listOf' call
@@ -1349,28 +1300,28 @@
1349
1300
  // Inline function 'org.kodein.type.generic' call
1350
1301
  var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
1351
1302
  var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
1352
- tmp_1.y95_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
1303
+ tmp_1.q96_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory());
1353
1304
  var tmp_3 = this;
1354
1305
  // Inline function 'org.kodein.di.instance' call
1355
1306
  // Inline function 'org.kodein.type.generic' call
1356
1307
  var tmp_4 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
1357
1308
  var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
1358
- tmp_3.z95_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
1309
+ tmp_3.r96_1 = Instance(di, tmp$ret$4, null).e60(this, toClientEventsObserver$factory());
1359
1310
  var tmp_5 = this;
1360
1311
  // Inline function 'org.kodein.di.instance' call
1361
1312
  // Inline function 'org.kodein.type.generic' call
1362
1313
  var tmp_6 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
1363
1314
  var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
1364
- tmp_5.a96_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
1315
+ tmp_5.s96_1 = Instance(di, tmp$ret$6, null).e60(this, playerConnectionInteractor$factory());
1365
1316
  var tmp_7 = this;
1366
- tmp_7.b96_1 = lazy(GameServer$random$delegate$lambda(this));
1317
+ tmp_7.t96_1 = lazy(GameServer$random$delegate$lambda(this));
1367
1318
  var tmp_8 = this;
1368
- var tmp0_externalMiddlewares = plus(storeContract.s8q(), externalMiddlewares);
1369
- var tmp1_externalReducers = plus(storeContract.r8q(), externalReducers);
1370
- tmp_8.c96_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
1319
+ var tmp0_externalMiddlewares = plus(storeContract.u8q(), externalMiddlewares);
1320
+ var tmp1_externalReducers = plus(storeContract.t8q(), externalReducers);
1321
+ tmp_8.u96_1 = new GameStore(di, tag, preloadedState, tmp1_externalReducers, tmp0_externalMiddlewares);
1371
1322
  }
1372
1323
  protoOf(GameServer).n6l = function () {
1373
- return this.c96_1;
1324
+ return this.u96_1;
1374
1325
  };
1375
1326
  protoOf(GameServer).o5h = function () {
1376
1327
  return this.n67().a6n().id;
@@ -1394,44 +1345,44 @@
1394
1345
  };
1395
1346
  protoOf(GameServer).fromClientEvent = function (action) {
1396
1347
  _get_logger__rkp4sl(this).d('GameEngine_API', 'fromClientEvent: ' + action.playerId + ', ' + action.actionTag);
1397
- this.c96_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
1348
+ this.u96_1.z6m(GameServer$fromClientEvent$slambda_0(action, null));
1398
1349
  };
1399
1350
  protoOf(GameServer).playerLostConnection = function (playerId) {
1400
1351
  _get_logger__rkp4sl(this).d('GameEngine_API', 'playerLostConnection: ' + playerId);
1401
- this.c96_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
1352
+ this.u96_1.z6m(GameServer$playerLostConnection$slambda_0(playerId, null));
1402
1353
  };
1403
1354
  protoOf(GameServer).playerLive = function (playerId) {
1404
1355
  _get_logger__rkp4sl(this).d('GameEngine_API', 'playerLive: ' + playerId);
1405
- this.c96_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
1356
+ this.u96_1.z6m(GameServer$playerLive$slambda_0(playerId, null));
1406
1357
  };
1407
1358
  protoOf(GameServer).playerLeft = function (playerId) {
1408
1359
  _get_logger__rkp4sl(this).d('GameEngine_API', 'playerLeft: ' + playerId);
1409
- this.c96_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
1360
+ this.u96_1.z6m(GameServer$playerLeft$slambda_0(playerId, null));
1410
1361
  };
1411
- protoOf(GameServer).t9c = function (roomId, gameCreatorId, config, users, spectators) {
1412
- this.c96_1.z6m(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
1362
+ protoOf(GameServer).l9d = function (roomId, gameCreatorId, config, users, spectators) {
1363
+ this.u96_1.z6m(GameServer$roomOnCreate$slambda_0(users, gameCreatorId, this, spectators, config, roomId, null));
1413
1364
  };
1414
1365
  protoOf(GameServer).roomOnContinueFromRound = function (roomId, tableLite) {
1415
- this.c96_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
1366
+ this.u96_1.z6m(GameServer$roomOnContinueFromRound$slambda_0(tableLite, null));
1416
1367
  };
1417
1368
  protoOf(GameServer).addSpectatorsToRoom = function (spectators) {
1418
- this.c96_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
1369
+ this.u96_1.z6m(GameServer$addSpectatorsToRoom$slambda_0(spectators, null));
1419
1370
  };
1420
1371
  protoOf(GameServer).removeSpectatorsFromRoom = function (spectators) {
1421
- this.c96_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
1372
+ this.u96_1.z6m(GameServer$removeSpectatorsFromRoom$slambda_0(spectators, null));
1422
1373
  };
1423
1374
  protoOf(GameServer).roomRefreshPlayerState = function (playerId) {
1424
1375
  _get_logger__rkp4sl(this).d('GameEngine_API', 'roomRefreshPlayerState: ' + playerId);
1425
- this.c96_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
1376
+ this.u96_1.z6m(GameServer$roomRefreshPlayerState$slambda_0(playerId, this, null));
1426
1377
  };
1427
- protoOf(GameServer).u9c = function (newRid) {
1428
- this.c96_1.z6m(GameServer$roomOnDelete$slambda_0(this, null));
1378
+ protoOf(GameServer).m9d = function (newRid) {
1379
+ this.u96_1.z6m(GameServer$roomOnDelete$slambda_0(this, null));
1429
1380
  };
1430
1381
  protoOf(GameServer).setCanStartNewGameEnabled = function (enabled) {
1431
- this.c96_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
1382
+ this.u96_1.z6m(GameServer$setCanStartNewGameEnabled$slambda_0(enabled, null));
1432
1383
  };
1433
- protoOf(GameServer).v9c = function (reason, roomId) {
1434
- this.c96_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
1384
+ protoOf(GameServer).n9d = function (reason, roomId) {
1385
+ this.u96_1.z6m(GameServer$shutdown$slambda_0(reason, this, roomId, null));
1435
1386
  };
1436
1387
  protoOf(GameServer).clear = function () {
1437
1388
  return this.a2();
@@ -1505,16 +1456,16 @@
1505
1456
  return ServerShutdownReason_ERROR_instance;
1506
1457
  }
1507
1458
  function ServerConfig(canStartNewGame) {
1508
- this.d9c_1 = canStartNewGame;
1459
+ this.v9c_1 = canStartNewGame;
1509
1460
  }
1510
- protoOf(ServerConfig).e9c = function (canStartNewGame) {
1461
+ protoOf(ServerConfig).w9c = function (canStartNewGame) {
1511
1462
  return new ServerConfig(canStartNewGame);
1512
1463
  };
1513
1464
  protoOf(ServerConfig).toString = function () {
1514
- return 'ServerConfig(canStartNewGame=' + this.d9c_1 + ')';
1465
+ return 'ServerConfig(canStartNewGame=' + this.v9c_1 + ')';
1515
1466
  };
1516
1467
  protoOf(ServerConfig).hashCode = function () {
1517
- return getBooleanHashCode(this.d9c_1);
1468
+ return getBooleanHashCode(this.v9c_1);
1518
1469
  };
1519
1470
  protoOf(ServerConfig).equals = function (other) {
1520
1471
  if (this === other)
@@ -1522,7 +1473,7 @@
1522
1473
  if (!(other instanceof ServerConfig))
1523
1474
  return false;
1524
1475
  var tmp0_other_with_cast = other instanceof ServerConfig ? other : THROW_CCE();
1525
- if (!(this.d9c_1 === tmp0_other_with_cast.d9c_1))
1476
+ if (!(this.v9c_1 === tmp0_other_with_cast.v9c_1))
1526
1477
  return false;
1527
1478
  return true;
1528
1479
  };
@@ -1754,18 +1705,18 @@
1754
1705
  function ToClientEventsObserver() {
1755
1706
  }
1756
1707
  function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation) {
1757
- this.f9d_1 = this$0;
1758
- this.g9d_1 = $actions;
1708
+ this.x9d_1 = this$0;
1709
+ this.y9d_1 = $actions;
1759
1710
  CoroutineImpl.call(this, resultContinuation);
1760
1711
  }
1761
- protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).n9d = function ($this$flow, $completion) {
1762
- var tmp = this.o9d($this$flow, $completion);
1712
+ protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).f9e = function ($this$flow, $completion) {
1713
+ var tmp = this.g9e($this$flow, $completion);
1763
1714
  tmp.g9_1 = Unit_instance;
1764
1715
  tmp.h9_1 = null;
1765
1716
  return tmp.m9();
1766
1717
  };
1767
1718
  protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).w9 = function (p1, $completion) {
1768
- return this.n9d((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
1719
+ return this.f9e((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
1769
1720
  };
1770
1721
  protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).m9 = function () {
1771
1722
  var suspendResult = this.g9_1;
@@ -1776,23 +1727,23 @@
1776
1727
  case 0:
1777
1728
  this.f9_1 = 4;
1778
1729
  var tmp_0 = this;
1779
- tmp_0.i9d_1 = this.f9d_1.t9d_1;
1730
+ tmp_0.a9e_1 = this.x9d_1.l9e_1;
1780
1731
  var tmp_1 = this;
1781
- tmp_1.j9d_1 = transformToEmits(this.f9d_1, this.g9d_1);
1782
- this.k9d_1 = this.j9d_1.j();
1732
+ tmp_1.b9e_1 = transformToEmits(this.x9d_1, this.y9d_1);
1733
+ this.c9e_1 = this.b9e_1.j();
1783
1734
  this.e9_1 = 1;
1784
1735
  continue $sm;
1785
1736
  case 1:
1786
- if (!this.k9d_1.k()) {
1737
+ if (!this.c9e_1.k()) {
1787
1738
  this.e9_1 = 3;
1788
1739
  continue $sm;
1789
1740
  }
1790
1741
 
1791
- this.l9d_1 = this.k9d_1.l();
1742
+ this.d9e_1 = this.c9e_1.l();
1792
1743
  var tmp_2 = this;
1793
- tmp_2.m9d_1 = this.l9d_1;
1744
+ tmp_2.e9e_1 = this.d9e_1;
1794
1745
  this.e9_1 = 2;
1795
- suspendResult = this.h9d_1.p18(this.m9d_1, this);
1746
+ suspendResult = this.z9d_1.p18(this.e9e_1, this);
1796
1747
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1797
1748
  return suspendResult;
1798
1749
  }
@@ -1803,10 +1754,10 @@
1803
1754
  continue $sm;
1804
1755
  case 3:
1805
1756
  l$ret$1: do {
1806
- var this_0 = this.f9d_1.s9d_1;
1757
+ var this_0 = this.x9d_1.k9e_1;
1807
1758
  while (true) {
1808
1759
  var cur = this_0.kotlinx$atomicfu$value;
1809
- var upd = cur - this.g9d_1.m() | 0;
1760
+ var upd = cur - this.y9d_1.m() | 0;
1810
1761
  if (this_0.atomicfu$compareAndSet(cur, upd)) {
1811
1762
  break l$ret$1;
1812
1763
  }
@@ -1828,15 +1779,15 @@
1828
1779
  }
1829
1780
  while (true);
1830
1781
  };
1831
- protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).o9d = function ($this$flow, completion) {
1832
- var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.f9d_1, this.g9d_1, completion);
1833
- i.h9d_1 = $this$flow;
1782
+ protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda).g9e = function ($this$flow, completion) {
1783
+ var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this.x9d_1, this.y9d_1, completion);
1784
+ i.z9d_1 = $this$flow;
1834
1785
  return i;
1835
1786
  };
1836
1787
  function ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this$0, $actions, resultContinuation) {
1837
1788
  var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda(this$0, $actions, resultContinuation);
1838
1789
  var l = function ($this$flow, $completion) {
1839
- return i.n9d($this$flow, $completion);
1790
+ return i.f9e($this$flow, $completion);
1840
1791
  };
1841
1792
  l.$arity = 1;
1842
1793
  return l;
@@ -1909,29 +1860,29 @@
1909
1860
  return new GroupKey(_this__u8e3s4.id, toList(_this__u8e3s4.includePlayers), toList(_this__u8e3s4.excludePlayers), _this__u8e3s4.deliveryType);
1910
1861
  }
1911
1862
  function mapFromGroupKey(_this__u8e3s4, $this) {
1912
- var tmp = $this.r9d_1.g6d();
1863
+ var tmp = $this.j9e_1.g6d();
1913
1864
  // Inline function 'kotlin.collections.toTypedArray' call
1914
- var this_0 = _this__u8e3s4.w9d_1;
1865
+ var this_0 = _this__u8e3s4.o9e_1;
1915
1866
  var tmp_0 = copyToArray(this_0);
1916
1867
  // Inline function 'kotlin.collections.toTypedArray' call
1917
- var this_1 = _this__u8e3s4.x9d_1;
1868
+ var this_1 = _this__u8e3s4.p9e_1;
1918
1869
  var tmp$ret$1 = copyToArray(this_1);
1919
- return new ActionDeliveryPayload(_this__u8e3s4.v9d_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.y9d_1);
1870
+ return new ActionDeliveryPayload(_this__u8e3s4.n9e_1, tmp, tmp_0, tmp$ret$1, _this__u8e3s4.q9e_1);
1920
1871
  }
1921
1872
  function GroupKey(tableId, includePlayers, excludePlayers, deliveryType) {
1922
- this.v9d_1 = tableId;
1923
- this.w9d_1 = includePlayers;
1924
- this.x9d_1 = excludePlayers;
1925
- this.y9d_1 = deliveryType;
1873
+ this.n9e_1 = tableId;
1874
+ this.o9e_1 = includePlayers;
1875
+ this.p9e_1 = excludePlayers;
1876
+ this.q9e_1 = deliveryType;
1926
1877
  }
1927
1878
  protoOf(GroupKey).toString = function () {
1928
- return 'GroupKey(tableId=' + this.v9d_1 + ', includePlayers=' + toString(this.w9d_1) + ', excludePlayers=' + toString(this.x9d_1) + ', deliveryType=' + this.y9d_1.toString() + ')';
1879
+ return 'GroupKey(tableId=' + this.n9e_1 + ', includePlayers=' + toString(this.o9e_1) + ', excludePlayers=' + toString(this.p9e_1) + ', deliveryType=' + this.q9e_1.toString() + ')';
1929
1880
  };
1930
1881
  protoOf(GroupKey).hashCode = function () {
1931
- var result = getStringHashCode(this.v9d_1);
1932
- result = imul(result, 31) + hashCode(this.w9d_1) | 0;
1933
- result = imul(result, 31) + hashCode(this.x9d_1) | 0;
1934
- result = imul(result, 31) + this.y9d_1.hashCode() | 0;
1882
+ var result = getStringHashCode(this.n9e_1);
1883
+ result = imul(result, 31) + hashCode(this.o9e_1) | 0;
1884
+ result = imul(result, 31) + hashCode(this.p9e_1) | 0;
1885
+ result = imul(result, 31) + this.q9e_1.hashCode() | 0;
1935
1886
  return result;
1936
1887
  };
1937
1888
  protoOf(GroupKey).equals = function (other) {
@@ -1940,35 +1891,35 @@
1940
1891
  if (!(other instanceof GroupKey))
1941
1892
  return false;
1942
1893
  var tmp0_other_with_cast = other instanceof GroupKey ? other : THROW_CCE();
1943
- if (!(this.v9d_1 === tmp0_other_with_cast.v9d_1))
1894
+ if (!(this.n9e_1 === tmp0_other_with_cast.n9e_1))
1944
1895
  return false;
1945
- if (!equals(this.w9d_1, tmp0_other_with_cast.w9d_1))
1896
+ if (!equals(this.o9e_1, tmp0_other_with_cast.o9e_1))
1946
1897
  return false;
1947
- if (!equals(this.x9d_1, tmp0_other_with_cast.x9d_1))
1898
+ if (!equals(this.p9e_1, tmp0_other_with_cast.p9e_1))
1948
1899
  return false;
1949
- if (!this.y9d_1.equals(tmp0_other_with_cast.y9d_1))
1900
+ if (!this.q9e_1.equals(tmp0_other_with_cast.q9e_1))
1950
1901
  return false;
1951
1902
  return true;
1952
1903
  };
1953
1904
  function Companion_0() {
1954
- this.z9d_1 = 6;
1905
+ this.r9e_1 = 6;
1955
1906
  }
1956
- var Companion_instance_10;
1957
- function Companion_getInstance_3() {
1958
- return Companion_instance_10;
1907
+ var Companion_instance_8;
1908
+ function Companion_getInstance_1() {
1909
+ return Companion_instance_8;
1959
1910
  }
1960
1911
  function ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation) {
1961
- this.i9e_1 = this$0;
1912
+ this.a9f_1 = this$0;
1962
1913
  CoroutineImpl.call(this, resultContinuation);
1963
1914
  }
1964
- protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).k9e = function (actions, $completion) {
1965
- var tmp = this.l9e(actions, $completion);
1915
+ protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).c9f = function (actions, $completion) {
1916
+ var tmp = this.d9f(actions, $completion);
1966
1917
  tmp.g9_1 = Unit_instance;
1967
1918
  tmp.h9_1 = null;
1968
1919
  return tmp.m9();
1969
1920
  };
1970
1921
  protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).w9 = function (p1, $completion) {
1971
- return this.k9e((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
1922
+ return this.c9f((!(p1 == null) ? isInterface(p1, KtList) : false) ? p1 : THROW_CCE(), $completion);
1972
1923
  };
1973
1924
  protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).m9 = function () {
1974
1925
  var suspendResult = this.g9_1;
@@ -1977,7 +1928,7 @@
1977
1928
  var tmp = this.e9_1;
1978
1929
  if (tmp === 0) {
1979
1930
  this.f9_1 = 1;
1980
- return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.i9e_1, this.j9e_1, null));
1931
+ return flow(ToClientEventsObserverImpl$observeFromClientEvents$slambda$slambda_0(this.a9f_1, this.b9f_1, null));
1981
1932
  } else if (tmp === 1) {
1982
1933
  throw this.h9_1;
1983
1934
  }
@@ -1987,23 +1938,23 @@
1987
1938
  }
1988
1939
  while (true);
1989
1940
  };
1990
- protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).l9e = function (actions, completion) {
1991
- var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.i9e_1, completion);
1992
- i.j9e_1 = actions;
1941
+ protoOf(ToClientEventsObserverImpl$observeFromClientEvents$slambda).d9f = function (actions, completion) {
1942
+ var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this.a9f_1, completion);
1943
+ i.b9f_1 = actions;
1993
1944
  return i;
1994
1945
  };
1995
1946
  function ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this$0, resultContinuation) {
1996
1947
  var i = new ToClientEventsObserverImpl$observeFromClientEvents$slambda(this$0, resultContinuation);
1997
1948
  var l = function (actions, $completion) {
1998
- return i.k9e(actions, $completion);
1949
+ return i.c9f(actions, $completion);
1999
1950
  };
2000
1951
  l.$arity = 1;
2001
1952
  return l;
2002
1953
  }
2003
1954
  function $sentEventCOROUTINE$0(_this__u8e3s4, fromEvent, resultContinuation) {
2004
1955
  CoroutineImpl.call(this, resultContinuation);
2005
- this.u9e_1 = _this__u8e3s4;
2006
- this.v9e_1 = fromEvent;
1956
+ this.m9f_1 = _this__u8e3s4;
1957
+ this.n9f_1 = fromEvent;
2007
1958
  }
2008
1959
  protoOf($sentEventCOROUTINE$0).m9 = function () {
2009
1960
  var suspendResult = this.g9_1;
@@ -2014,9 +1965,9 @@
2014
1965
  case 0:
2015
1966
  this.f9_1 = 2;
2016
1967
  var tmp_0 = this;
2017
- tmp_0.w9e_1 = this.u9e_1.t9d_1;
1968
+ tmp_0.o9f_1 = this.m9f_1.l9e_1;
2018
1969
  l$ret$1: do {
2019
- var this_0 = this.u9e_1.s9d_1;
1970
+ var this_0 = this.m9f_1.k9e_1;
2020
1971
  while (true) {
2021
1972
  var cur = this_0.kotlinx$atomicfu$value;
2022
1973
  var upd = cur + 1 | 0;
@@ -2027,7 +1978,7 @@
2027
1978
  }
2028
1979
  while (false);
2029
1980
  this.e9_1 = 1;
2030
- suspendResult = this.u9e_1.u9d_1.p18(this.v9e_1, this);
1981
+ suspendResult = this.m9f_1.m9e_1.p18(this.n9f_1, this);
2031
1982
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2032
1983
  return suspendResult;
2033
1984
  }
@@ -2051,7 +2002,7 @@
2051
2002
  };
2052
2003
  function $waitForCOROUTINE$1(_this__u8e3s4, resultContinuation) {
2053
2004
  CoroutineImpl.call(this, resultContinuation);
2054
- this.f9f_1 = _this__u8e3s4;
2005
+ this.x9f_1 = _this__u8e3s4;
2055
2006
  }
2056
2007
  protoOf($waitForCOROUTINE$1).m9 = function () {
2057
2008
  var suspendResult = this.g9_1;
@@ -2062,12 +2013,12 @@
2062
2013
  case 0:
2063
2014
  this.f9_1 = 5;
2064
2015
  var tmp_0 = this;
2065
- tmp_0.g9f_1 = this.f9f_1.t9d_1;
2066
- this.h9f_1 = 0;
2016
+ tmp_0.y9f_1 = this.x9f_1.l9e_1;
2017
+ this.z9f_1 = 0;
2067
2018
  this.e9_1 = 1;
2068
2019
  continue $sm;
2069
2020
  case 1:
2070
- if (!!(this.f9f_1.s9d_1.kotlinx$atomicfu$value === 0)) {
2021
+ if (!!(this.x9f_1.k9e_1.kotlinx$atomicfu$value === 0)) {
2071
2022
  this.e9_1 = 4;
2072
2023
  continue $sm;
2073
2024
  }
@@ -2080,9 +2031,9 @@
2080
2031
 
2081
2032
  continue $sm;
2082
2033
  case 2:
2083
- this.h9f_1 = this.h9f_1 + 1 | 0;
2084
- if (this.h9f_1 > 6) {
2085
- this.f9f_1.q9d_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.f9f_1.s9d_1.kotlinx$atomicfu$value);
2034
+ this.z9f_1 = this.z9f_1 + 1 | 0;
2035
+ if (this.z9f_1 > 6) {
2036
+ this.x9f_1.i9e_1.w('ToClientEventsObserver', "waitUntilEmpty: can't finish in 6 cycles, not delivered events count = " + this.x9f_1.k9e_1.kotlinx$atomicfu$value);
2086
2037
  this.e9_1 = 4;
2087
2038
  continue $sm;
2088
2039
  } else {
@@ -2110,42 +2061,42 @@
2110
2061
  while (true);
2111
2062
  };
2112
2063
  function ToClientEventsObserverImpl(serverReduxConfig, logger, idsProvider) {
2113
- this.p9d_1 = serverReduxConfig;
2114
- this.q9d_1 = logger;
2115
- this.r9d_1 = idsProvider;
2116
- this.s9d_1 = atomic$ref$1(0);
2064
+ this.h9e_1 = serverReduxConfig;
2065
+ this.i9e_1 = logger;
2066
+ this.j9e_1 = idsProvider;
2067
+ this.k9e_1 = atomic$ref$1(0);
2117
2068
  var tmp = this;
2118
2069
  // Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
2119
- tmp.t9d_1 = get_atomicfu$reentrantLock();
2120
- this.u9d_1 = MutableSharedFlow();
2070
+ tmp.l9e_1 = get_atomicfu$reentrantLock();
2071
+ this.m9e_1 = MutableSharedFlow();
2121
2072
  }
2122
- protoOf(ToClientEventsObserverImpl).w9c = function (fromEvent, $completion) {
2073
+ protoOf(ToClientEventsObserverImpl).o9d = function (fromEvent, $completion) {
2123
2074
  var tmp = new $sentEventCOROUTINE$0(this, fromEvent, $completion);
2124
2075
  tmp.g9_1 = Unit_instance;
2125
2076
  tmp.h9_1 = null;
2126
2077
  return tmp.m9();
2127
2078
  };
2128
- protoOf(ToClientEventsObserverImpl).n8x = function ($completion) {
2079
+ protoOf(ToClientEventsObserverImpl).p8x = function ($completion) {
2129
2080
  var tmp = new $waitForCOROUTINE$1(this, $completion);
2130
2081
  tmp.g9_1 = Unit_instance;
2131
2082
  tmp.h9_1 = null;
2132
2083
  return tmp.m9();
2133
2084
  };
2134
- protoOf(ToClientEventsObserverImpl).r96 = function () {
2135
- if (!this.p9d_1.enabledCombinedEvents) {
2136
- return this.u9d_1;
2085
+ protoOf(ToClientEventsObserverImpl).j97 = function () {
2086
+ if (!this.h9e_1.enabledCombinedEvents) {
2087
+ return this.m9e_1;
2137
2088
  }
2138
- var tmp = windowedByInterval(this.u9d_1, toLong(this.p9d_1.combinedEventsPeriod));
2089
+ var tmp = windowedByInterval(this.m9e_1, toLong(this.h9e_1.combinedEventsPeriod));
2139
2090
  return flatMapConcat(tmp, ToClientEventsObserverImpl$observeFromClientEvents$slambda_0(this, null));
2140
2091
  };
2141
2092
  function UpdateServerConfigAction(serverConfig) {
2142
- this.i9f_1 = serverConfig;
2093
+ this.a9g_1 = serverConfig;
2143
2094
  }
2144
2095
  protoOf(UpdateServerConfigAction).toString = function () {
2145
- return 'UpdateServerConfigAction(serverConfig=' + this.i9f_1.toString() + ')';
2096
+ return 'UpdateServerConfigAction(serverConfig=' + this.a9g_1.toString() + ')';
2146
2097
  };
2147
2098
  protoOf(UpdateServerConfigAction).hashCode = function () {
2148
- return this.i9f_1.hashCode();
2099
+ return this.a9g_1.hashCode();
2149
2100
  };
2150
2101
  protoOf(UpdateServerConfigAction).equals = function (other) {
2151
2102
  if (this === other)
@@ -2153,20 +2104,20 @@
2153
2104
  if (!(other instanceof UpdateServerConfigAction))
2154
2105
  return false;
2155
2106
  var tmp0_other_with_cast = other instanceof UpdateServerConfigAction ? other : THROW_CCE();
2156
- if (!this.i9f_1.equals(tmp0_other_with_cast.i9f_1))
2107
+ if (!this.a9g_1.equals(tmp0_other_with_cast.a9g_1))
2157
2108
  return false;
2158
2109
  return true;
2159
2110
  };
2160
2111
  function SpectatorsAction() {
2161
2112
  }
2162
2113
  function AddSpectatorsAction(spectators) {
2163
- this.j9f_1 = spectators;
2114
+ this.b9g_1 = spectators;
2164
2115
  }
2165
2116
  protoOf(AddSpectatorsAction).toString = function () {
2166
- return 'AddSpectatorsAction(spectators=' + toString(this.j9f_1) + ')';
2117
+ return 'AddSpectatorsAction(spectators=' + toString(this.b9g_1) + ')';
2167
2118
  };
2168
2119
  protoOf(AddSpectatorsAction).hashCode = function () {
2169
- return hashCode(this.j9f_1);
2120
+ return hashCode(this.b9g_1);
2170
2121
  };
2171
2122
  protoOf(AddSpectatorsAction).equals = function (other) {
2172
2123
  if (this === other)
@@ -2174,18 +2125,18 @@
2174
2125
  if (!(other instanceof AddSpectatorsAction))
2175
2126
  return false;
2176
2127
  var tmp0_other_with_cast = other instanceof AddSpectatorsAction ? other : THROW_CCE();
2177
- if (!equals(this.j9f_1, tmp0_other_with_cast.j9f_1))
2128
+ if (!equals(this.b9g_1, tmp0_other_with_cast.b9g_1))
2178
2129
  return false;
2179
2130
  return true;
2180
2131
  };
2181
2132
  function RemoveSpectatorsAction(spectators) {
2182
- this.k9f_1 = spectators;
2133
+ this.c9g_1 = spectators;
2183
2134
  }
2184
2135
  protoOf(RemoveSpectatorsAction).toString = function () {
2185
- return 'RemoveSpectatorsAction(spectators=' + toString(this.k9f_1) + ')';
2136
+ return 'RemoveSpectatorsAction(spectators=' + toString(this.c9g_1) + ')';
2186
2137
  };
2187
2138
  protoOf(RemoveSpectatorsAction).hashCode = function () {
2188
- return hashCode(this.k9f_1);
2139
+ return hashCode(this.c9g_1);
2189
2140
  };
2190
2141
  protoOf(RemoveSpectatorsAction).equals = function (other) {
2191
2142
  if (this === other)
@@ -2193,72 +2144,72 @@
2193
2144
  if (!(other instanceof RemoveSpectatorsAction))
2194
2145
  return false;
2195
2146
  var tmp0_other_with_cast = other instanceof RemoveSpectatorsAction ? other : THROW_CCE();
2196
- if (!equals(this.k9f_1, tmp0_other_with_cast.k9f_1))
2147
+ if (!equals(this.c9g_1, tmp0_other_with_cast.c9g_1))
2197
2148
  return false;
2198
2149
  return true;
2199
2150
  };
2200
2151
  function _get_asyncProvider__jbpyhw($this) {
2201
2152
  // Inline function 'kotlin.getValue' call
2202
- var this_0 = $this.q9f_1;
2153
+ var this_0 = $this.i9g_1;
2203
2154
  asyncProvider$factory_0();
2204
2155
  return this_0.u();
2205
2156
  }
2206
2157
  function _get_logger__rkp4sl_0($this) {
2207
2158
  // Inline function 'kotlin.getValue' call
2208
- var this_0 = $this.r9f_1;
2159
+ var this_0 = $this.j9g_1;
2209
2160
  logger$factory_2();
2210
2161
  return this_0.u();
2211
2162
  }
2212
2163
  function _get_playerConnectionInteractor__si6cxf_0($this) {
2213
2164
  // Inline function 'kotlin.getValue' call
2214
- var this_0 = $this.s9f_1;
2165
+ var this_0 = $this.k9g_1;
2215
2166
  playerConnectionInteractor$factory_2();
2216
2167
  return this_0.u();
2217
2168
  }
2218
2169
  function _get_lastCardInteractor__h6lq3w($this) {
2219
2170
  // Inline function 'kotlin.getValue' call
2220
- var this_0 = $this.t9f_1;
2171
+ var this_0 = $this.l9g_1;
2221
2172
  lastCardInteractor$factory_0();
2222
2173
  return this_0.u();
2223
2174
  }
2224
2175
  function _get_serverConfig__rk2g06($this) {
2225
2176
  // Inline function 'kotlin.getValue' call
2226
- var this_0 = $this.u9f_1;
2177
+ var this_0 = $this.m9g_1;
2227
2178
  serverConfig$factory_0();
2228
2179
  return this_0.u();
2229
2180
  }
2230
2181
  function _get_logicConfig__52ww9d($this) {
2231
2182
  // Inline function 'kotlin.getValue' call
2232
- var this_0 = $this.v9f_1;
2183
+ var this_0 = $this.n9g_1;
2233
2184
  logicConfig$factory_0();
2234
2185
  return this_0.u();
2235
2186
  }
2236
2187
  function _get_idsProvider__fnfajc($this) {
2237
2188
  // Inline function 'kotlin.getValue' call
2238
- var this_0 = $this.w9f_1;
2189
+ var this_0 = $this.o9g_1;
2239
2190
  idsProvider$factory_0();
2240
2191
  return this_0.u();
2241
2192
  }
2242
2193
  function _get_botConfig__cpaxzc($this) {
2243
2194
  // Inline function 'kotlin.getValue' call
2244
- var this_0 = $this.x9f_1;
2195
+ var this_0 = $this.p9g_1;
2245
2196
  botConfig$factory_0();
2246
2197
  return this_0.u();
2247
2198
  }
2248
2199
  function _get_scenePositionProvider__kn0n1n($this) {
2249
2200
  // Inline function 'kotlin.getValue' call
2250
- var this_0 = $this.y9f_1;
2201
+ var this_0 = $this.q9g_1;
2251
2202
  scenePositionProvider$factory_0();
2252
2203
  return this_0.u();
2253
2204
  }
2254
2205
  function _get_toClientEventsObserver__6rp51y_0($this) {
2255
2206
  // Inline function 'kotlin.getValue' call
2256
- var this_0 = $this.z9f_1;
2207
+ var this_0 = $this.r9g_1;
2257
2208
  toClientEventsObserver$factory_2();
2258
2209
  return this_0.u();
2259
2210
  }
2260
2211
  function ServerGameStoreContract$_get_middlewares_$lambda_qmuw9r(player) {
2261
- return !player.v6s();
2212
+ return !player.x6s();
2262
2213
  }
2263
2214
  function ServerGameStoreContract(di, validationStoreContract, timersStoreContract, botGameStoreContract, gameMechanicStoreContract, fileLoggerStoreContract) {
2264
2215
  validationStoreContract = validationStoreContract === VOID ? new ValidationStoreContract(di, true, true, null) : validationStoreContract;
@@ -2266,77 +2217,77 @@
2266
2217
  botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di) : botGameStoreContract;
2267
2218
  gameMechanicStoreContract = gameMechanicStoreContract === VOID ? new GameMechanicStoreContract(di, null, true) : gameMechanicStoreContract;
2268
2219
  fileLoggerStoreContract = fileLoggerStoreContract === VOID ? new FileLoggerStoreContract(di) : fileLoggerStoreContract;
2269
- this.l9f_1 = validationStoreContract;
2270
- this.m9f_1 = timersStoreContract;
2271
- this.n9f_1 = botGameStoreContract;
2272
- this.o9f_1 = gameMechanicStoreContract;
2273
- this.p9f_1 = fileLoggerStoreContract;
2220
+ this.d9g_1 = validationStoreContract;
2221
+ this.e9g_1 = timersStoreContract;
2222
+ this.f9g_1 = botGameStoreContract;
2223
+ this.g9g_1 = gameMechanicStoreContract;
2224
+ this.h9g_1 = fileLoggerStoreContract;
2274
2225
  var tmp = this;
2275
2226
  // Inline function 'org.kodein.di.instance' call
2276
2227
  // Inline function 'org.kodein.type.generic' call
2277
2228
  var tmp_0 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
2278
2229
  var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
2279
- tmp.q9f_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
2230
+ tmp.i9g_1 = Instance(di, tmp$ret$0, null).e60(this, asyncProvider$factory());
2280
2231
  var tmp_1 = this;
2281
2232
  // Inline function 'org.kodein.di.instance' call
2282
2233
  // Inline function 'org.kodein.type.generic' call
2283
2234
  var tmp_2 = typeToken(createKType(getKClass(RaspberryLogger), arrayOf([]), false));
2284
2235
  var tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
2285
- tmp_1.r9f_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
2236
+ tmp_1.j9g_1 = Instance(di, tmp$ret$2, null).e60(this, logger$factory_1());
2286
2237
  var tmp_3 = this;
2287
2238
  // Inline function 'org.kodein.di.instance' call
2288
2239
  // Inline function 'org.kodein.type.generic' call
2289
2240
  var tmp_4 = typeToken(createKType(getKClass(PlayerConnectionInteractor), arrayOf([]), false));
2290
2241
  var tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
2291
- tmp_3.s9f_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
2242
+ tmp_3.k9g_1 = Instance(di, tmp$ret$4, null).e60(this, playerConnectionInteractor$factory_1());
2292
2243
  var tmp_5 = this;
2293
2244
  // Inline function 'org.kodein.di.instance' call
2294
2245
  // Inline function 'org.kodein.type.generic' call
2295
2246
  var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
2296
2247
  var tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
2297
- tmp_5.t9f_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
2248
+ tmp_5.l9g_1 = Instance(di, tmp$ret$6, null).e60(this, lastCardInteractor$factory());
2298
2249
  var tmp_7 = this;
2299
2250
  // Inline function 'org.kodein.di.instance' call
2300
2251
  // Inline function 'org.kodein.type.generic' call
2301
2252
  var tmp_8 = typeToken(createKType(getKClass(ServerReduxConfig), arrayOf([]), false));
2302
2253
  var tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
2303
- tmp_7.u9f_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
2254
+ tmp_7.m9g_1 = Instance(di, tmp$ret$8, null).e60(this, serverConfig$factory());
2304
2255
  var tmp_9 = this;
2305
2256
  // Inline function 'org.kodein.di.instance' call
2306
2257
  // Inline function 'org.kodein.type.generic' call
2307
2258
  var tmp_10 = typeToken(createKType(getKClass(EngineLogicConfig), arrayOf([]), false));
2308
2259
  var tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
2309
- tmp_9.v9f_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
2260
+ tmp_9.n9g_1 = Instance(di, tmp$ret$10, null).e60(this, logicConfig$factory());
2310
2261
  var tmp_11 = this;
2311
2262
  // Inline function 'org.kodein.di.instance' call
2312
2263
  // Inline function 'org.kodein.type.generic' call
2313
2264
  var tmp_12 = typeToken(createKType(getKClass(IdsProvider), arrayOf([]), false));
2314
2265
  var tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
2315
- tmp_11.w9f_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
2266
+ tmp_11.o9g_1 = Instance(di, tmp$ret$12, null).e60(this, idsProvider$factory());
2316
2267
  var tmp_13 = this;
2317
2268
  // Inline function 'org.kodein.di.instance' call
2318
2269
  // Inline function 'org.kodein.type.generic' call
2319
2270
  var tmp_14 = typeToken(createKType(getKClass(EngineBotConfig), arrayOf([]), false));
2320
2271
  var tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
2321
- tmp_13.x9f_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
2272
+ tmp_13.p9g_1 = Instance(di, tmp$ret$14, null).e60(this, botConfig$factory());
2322
2273
  var tmp_15 = this;
2323
2274
  // Inline function 'org.kodein.di.instance' call
2324
2275
  // Inline function 'org.kodein.type.generic' call
2325
2276
  var tmp_16 = typeToken(createKType(getKClass(ScenePositionProvider), arrayOf([]), false));
2326
2277
  var tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
2327
- tmp_15.y9f_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
2278
+ tmp_15.q9g_1 = Instance(di, tmp$ret$16, null).e60(this, scenePositionProvider$factory());
2328
2279
  var tmp_17 = this;
2329
2280
  // Inline function 'org.kodein.di.instance' call
2330
2281
  // Inline function 'org.kodein.type.generic' call
2331
2282
  var tmp_18 = typeToken(createKType(getKClass(ToClientEventsObserver), arrayOf([]), false));
2332
2283
  var tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
2333
- tmp_17.z9f_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
2284
+ tmp_17.r9g_1 = Instance(di, tmp$ret$18, null).e60(this, toClientEventsObserver$factory_1());
2334
2285
  }
2335
- protoOf(ServerGameStoreContract).r8q = function () {
2336
- return plus(plus(plus(plus(plus(this.l9f_1.r8q(), this.m9f_1.r8q()), this.n9f_1.r8q()), this.o9f_1.r8q()), this.p9f_1.r8q()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
2286
+ protoOf(ServerGameStoreContract).t8q = function () {
2287
+ return plus(plus(plus(plus(plus(this.d9g_1.t8q(), this.e9g_1.t8q()), this.f9g_1.t8q()), this.g9g_1.t8q()), this.h9g_1.t8q()), listOf([serverConfigReducer(), spectatorsReducer(_get_logger__rkp4sl_0(this))]));
2337
2288
  };
2338
- protoOf(ServerGameStoreContract).s8q = function () {
2339
- var tmp = plus(plus(plus(plus(plus(plus(plus(this.l9f_1.s8q(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.m9f_1.s8q()), this.n9f_1.s8q()), this.o9f_1.s8q()), this.p9f_1.s8q()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).k8s(), finishingGameWhenCantStartNewMiddleware()]));
2289
+ protoOf(ServerGameStoreContract).u8q = function () {
2290
+ var tmp = plus(plus(plus(plus(plus(plus(plus(this.d9g_1.u8q(), listOfNotNull(_get_serverConfig__rk2g06(this).finishGameIfAllBots ? checkBotsMiddleware(_get_logger__rkp4sl_0(this)) : null)), this.e9g_1.u8q()), this.f9g_1.u8q()), this.g9g_1.u8q()), this.h9g_1.u8q()), listOfNotNull_0([playerConnectionUpdateMiddleware(_get_playerConnectionInteractor__si6cxf_0(this)), playerReconnectionWaitingTimerTickMiddleware(_get_playerConnectionInteractor__si6cxf_0(this))])), listOfNotNull_0([serverSendEventsToClientsMiddleware(_get_asyncProvider__jbpyhw(this), _get_toClientEventsObserver__6rp51y_0(this)), (new ServerMapMechanicToClientActionMiddleware(_get_logicConfig__52ww9d(this), _get_idsProvider__fnfajc(this))).m8s(), finishingGameWhenCantStartNewMiddleware()]));
2340
2291
  var tmp_0 = roundLifecycleMiddleware(_get_scenePositionProvider__kn0n1n(this));
2341
2292
  var tmp0_serverConfig = _get_serverConfig__rk2g06(this);
2342
2293
  var tmp1_logger = _get_logger__rkp4sl_0(this);
@@ -2466,7 +2417,7 @@
2466
2417
  var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
2467
2418
  next(action_0);
2468
2419
  var state = store.state;
2469
- if (!get_serverState_0(state).c9c_1.d9c_1 && action_0.isGameFinished) {
2420
+ if (!get_serverState_0(state).u9c_1.v9c_1 && action_0.isGameFinished) {
2470
2421
  store.dispatch(Companion_instance_0.withAnalytics(new GameFinishedReason(Reason_DEPLOY_getInstance()), true, state.y6l_1));
2471
2422
  }
2472
2423
  };
@@ -2479,7 +2430,7 @@
2479
2430
  };
2480
2431
  }
2481
2432
  function _no_name_provided__qut3iv_0(this$0) {
2482
- this.c9g_1 = this$0;
2433
+ this.u9g_1 = this$0;
2483
2434
  }
2484
2435
  protoOf(_no_name_provided__qut3iv_0).d6f = function (action) {
2485
2436
  return action instanceof MechanicAction;
@@ -2494,11 +2445,11 @@
2494
2445
  var tmp;
2495
2446
  if (action_0 instanceof StartGameMechanicAction) {
2496
2447
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
2497
- var this_0 = this.c9g_1;
2498
- var tableId = action_0.l8n_1;
2499
- var gameCreatorPlayerId = action_0.n8n_1;
2448
+ var this_0 = this.u9g_1;
2449
+ var tableId = action_0.n8n_1;
2450
+ var gameCreatorPlayerId = action_0.p8n_1;
2500
2451
  // Inline function 'kotlin.collections.map' call
2501
- var this_1 = action_0.o8n_1;
2452
+ var this_1 = action_0.q8n_1;
2502
2453
  // Inline function 'kotlin.collections.mapTo' call
2503
2454
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
2504
2455
  var tmp0_iterator = this_1.j();
@@ -2539,7 +2490,7 @@
2539
2490
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2540
2491
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
2541
2492
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2542
- var tmp0_aid = this_0.b9g_1.g6d();
2493
+ var tmp0_aid = this_0.t9g_1.g6d();
2543
2494
  // Inline function 'kotlin.collections.map' call
2544
2495
  // Inline function 'kotlin.collections.mapTo' call
2545
2496
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
@@ -2564,17 +2515,17 @@
2564
2515
  } else {
2565
2516
  if (action_0 instanceof StartNewGameMechanicAction) {
2566
2517
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2567
- var this_2 = this.c9g_1;
2518
+ var this_2 = this.u9g_1;
2568
2519
  var table = state.a6n();
2569
2520
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2570
- var sendToPlayer_0 = new RoomActionPayload(this_2.b9g_1.g6d(), table.id, null);
2521
+ var sendToPlayer_0 = new RoomActionPayload(this_2.t9g_1.g6d(), table.id, null);
2571
2522
  var tmp$ret$18 = mapToClient_16(action_0, sendToPlayer_0);
2572
2523
  tmp = listOfNotNull(tmp$ret$18);
2573
2524
  } else {
2574
2525
  if (action_0 instanceof ContinueGameMechanicAction) {
2575
2526
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
2576
- var this_3 = this.c9g_1;
2577
- var tableId_0 = action_0.r8n_1.id;
2527
+ var this_3 = this.u9g_1;
2528
+ var tableId_0 = action_0.t8n_1.id;
2578
2529
  var gameCreatorPlayerId_0 = action_0.gameCreatorPlayerId;
2579
2530
  var players = getPlayers();
2580
2531
  // Inline function 'kotlin.collections.mapNotNull' call
@@ -2608,7 +2559,7 @@
2608
2559
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2609
2560
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
2610
2561
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2611
- var tmp0_aid_0 = this_3.b9g_1.g6d();
2562
+ var tmp0_aid_0 = this_3.t9g_1.g6d();
2612
2563
  // Inline function 'kotlin.collections.map' call
2613
2564
  // Inline function 'kotlin.collections.mapTo' call
2614
2565
  var destination_7 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players, 10));
@@ -2633,43 +2584,43 @@
2633
2584
  } else {
2634
2585
  if (action_0 instanceof FinishingGameMechanicAction) {
2635
2586
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2636
- var this_4 = this.c9g_1;
2587
+ var this_4 = this.u9g_1;
2637
2588
  var table_0 = state.a6n();
2638
2589
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2639
- var sendToPlayer_2 = new RoomActionPayload(this_4.b9g_1.g6d(), table_0.id, null);
2590
+ var sendToPlayer_2 = new RoomActionPayload(this_4.t9g_1.g6d(), table_0.id, null);
2640
2591
  var tmp$ret$35 = mapToClient_14(action_0, sendToPlayer_2);
2641
2592
  tmp = listOfNotNull(tmp$ret$35);
2642
2593
  } else {
2643
2594
  if (action_0 instanceof FinishGameMechanicAction) {
2644
2595
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2645
- var this_5 = this.c9g_1;
2596
+ var this_5 = this.u9g_1;
2646
2597
  var table_1 = state.a6n();
2647
2598
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2648
- var sendToPlayer_3 = new RoomActionPayload(this_5.b9g_1.g6d(), table_1.id, null);
2599
+ var sendToPlayer_3 = new RoomActionPayload(this_5.t9g_1.g6d(), table_1.id, null);
2649
2600
  var tmp$ret$37 = mapToClient_13(action_0, sendToPlayer_3);
2650
2601
  tmp = listOfNotNull(tmp$ret$37);
2651
2602
  } else {
2652
2603
  if (action_0 instanceof RestartGameMechanicAction) {
2653
2604
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2654
- var this_6 = this.c9g_1;
2605
+ var this_6 = this.u9g_1;
2655
2606
  var table_2 = state.a6n();
2656
2607
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2657
- var sendToPlayer_4 = new RoomActionPayload(this_6.b9g_1.g6d(), table_2.id, null);
2608
+ var sendToPlayer_4 = new RoomActionPayload(this_6.t9g_1.g6d(), table_2.id, null);
2658
2609
  var tmp$ret$39 = mapToClient_12(action_0, sendToPlayer_4);
2659
2610
  tmp = listOfNotNull(tmp$ret$39);
2660
2611
  } else {
2661
2612
  if (action_0 instanceof ErrorAction) {
2662
2613
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2663
- var this_7 = this.c9g_1;
2614
+ var this_7 = this.u9g_1;
2664
2615
  var table_3 = state.a6n();
2665
2616
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2666
- var sendToPlayer_5 = new RoomActionPayload(this_7.b9g_1.g6d(), table_3.id, null);
2617
+ var sendToPlayer_5 = new RoomActionPayload(this_7.t9g_1.g6d(), table_3.id, null);
2667
2618
  var tmp$ret$41 = mapToClient_11(action_0, sendToPlayer_5);
2668
2619
  tmp = listOfNotNull(tmp$ret$41);
2669
2620
  } else {
2670
2621
  if (action_0 instanceof SceneMechanicAction) {
2671
2622
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
2672
- var this_8 = this.c9g_1;
2623
+ var this_8 = this.u9g_1;
2673
2624
  var table_4 = state.a6n();
2674
2625
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
2675
2626
  var tableId_1 = table_4.id;
@@ -2706,7 +2657,7 @@
2706
2657
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2707
2658
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
2708
2659
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2709
- var tmp0_aid_1 = this_8.b9g_1.g6d();
2660
+ var tmp0_aid_1 = this_8.t9g_1.g6d();
2710
2661
  // Inline function 'kotlin.collections.map' call
2711
2662
  // Inline function 'kotlin.collections.mapTo' call
2712
2663
  var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_0, 10));
@@ -2731,7 +2682,7 @@
2731
2682
  } else {
2732
2683
  if (action_0 instanceof SceneActMechanicAction) {
2733
2684
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
2734
- var this_9 = this.c9g_1;
2685
+ var this_9 = this.u9g_1;
2735
2686
  var table_5 = state.a6n();
2736
2687
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
2737
2688
  var tableId_2 = table_5.id;
@@ -2768,7 +2719,7 @@
2768
2719
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2769
2720
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
2770
2721
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2771
- var tmp0_aid_2 = this_9.b9g_1.g6d();
2722
+ var tmp0_aid_2 = this_9.t9g_1.g6d();
2772
2723
  // Inline function 'kotlin.collections.map' call
2773
2724
  // Inline function 'kotlin.collections.mapTo' call
2774
2725
  var destination_15 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_1, 10));
@@ -2793,7 +2744,7 @@
2793
2744
  } else {
2794
2745
  if (action_0 instanceof TeamsDataMechanicAction) {
2795
2746
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createUserActionFromTable' call
2796
- var this_10 = this.c9g_1;
2747
+ var this_10 = this.u9g_1;
2797
2748
  var table_6 = state.a6n();
2798
2749
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser' call
2799
2750
  var tableId_3 = table_6.id;
@@ -2830,7 +2781,7 @@
2830
2781
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2831
2782
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createActionForUser.<anonymous>' call
2832
2783
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2833
- var tmp0_aid_3 = this_10.b9g_1.g6d();
2784
+ var tmp0_aid_3 = this_10.t9g_1.g6d();
2834
2785
  // Inline function 'kotlin.collections.map' call
2835
2786
  // Inline function 'kotlin.collections.mapTo' call
2836
2787
  var destination_19 = ArrayList_init_$Create$_0(collectionSizeOrDefault(players_2, 10));
@@ -2843,7 +2794,7 @@
2843
2794
  }
2844
2795
  var sendToPlayer_8 = UserActionPayload_init_$Create$(tmp0_aid_3, tableId_3, gameCreatorPlayerId_3, element_8, destination_19);
2845
2796
  var tmp_0;
2846
- if (this.c9g_1.a9g_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.c79_1).s6s_1.x6s_1) {
2797
+ if (this.u9g_1.s9g_1.supportBackwardActions && getPlayer(state.a6n().players, sendToPlayer_8.e79_1).u6s_1.z6s_1) {
2847
2798
  tmp_0 = null;
2848
2799
  } else {
2849
2800
  tmp_0 = mapToClient_8(action_0, sendToPlayer_8);
@@ -2861,79 +2812,79 @@
2861
2812
  } else {
2862
2813
  if (action_0 instanceof PlayerReadyMechanicAction) {
2863
2814
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2864
- var this_11 = this.c9g_1;
2815
+ var this_11 = this.u9g_1;
2865
2816
  var table_7 = state.a6n();
2866
- var exceptPlayerId = this.c9g_1.a9g_1.supportBackwardActions ? action_0.j8o_1 : null;
2817
+ var exceptPlayerId = this.u9g_1.s9g_1.supportBackwardActions ? action_0.l8o_1 : null;
2867
2818
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2868
- var sendToPlayer_9 = new RoomActionPayload(this_11.b9g_1.g6d(), table_7.id, exceptPlayerId);
2819
+ var sendToPlayer_9 = new RoomActionPayload(this_11.t9g_1.g6d(), table_7.id, exceptPlayerId);
2869
2820
  var tmp$ret$91 = mapToClient_7(action_0, sendToPlayer_9);
2870
2821
  tmp = listOfNotNull(tmp$ret$91);
2871
2822
  } else {
2872
2823
  if (action_0 instanceof SuitChoiceMechanicAction) {
2873
2824
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2874
- var this_12 = this.c9g_1;
2825
+ var this_12 = this.u9g_1;
2875
2826
  var table_8 = state.a6n();
2876
- var exceptPlayerId_0 = this.c9g_1.a9g_1.supportBackwardActions ? action_0.p8j_1 : null;
2827
+ var exceptPlayerId_0 = this.u9g_1.s9g_1.supportBackwardActions ? action_0.r8j_1 : null;
2877
2828
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2878
- var sendToPlayer_10 = new RoomActionPayload(this_12.b9g_1.g6d(), table_8.id, exceptPlayerId_0);
2829
+ var sendToPlayer_10 = new RoomActionPayload(this_12.t9g_1.g6d(), table_8.id, exceptPlayerId_0);
2879
2830
  var tmp$ret$93 = mapToClient_6(action_0, sendToPlayer_10);
2880
2831
  tmp = listOfNotNull(tmp$ret$93);
2881
2832
  } else {
2882
2833
  if (action_0 instanceof TrumpMechanicAction) {
2883
2834
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2884
- var this_13 = this.c9g_1;
2835
+ var this_13 = this.u9g_1;
2885
2836
  var table_9 = state.a6n();
2886
2837
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2887
- var sendToPlayer_11 = new RoomActionPayload(this_13.b9g_1.g6d(), table_9.id, null);
2838
+ var sendToPlayer_11 = new RoomActionPayload(this_13.t9g_1.g6d(), table_9.id, null);
2888
2839
  var tmp$ret$95 = mapToClient_5(action_0, sendToPlayer_11);
2889
2840
  tmp = listOfNotNull(tmp$ret$95);
2890
2841
  } else {
2891
2842
  if (action_0 instanceof CombinationChoiceMechanicAction) {
2892
2843
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2893
- var this_14 = this.c9g_1;
2844
+ var this_14 = this.u9g_1;
2894
2845
  var table_10 = state.a6n();
2895
- var exceptPlayerId_1 = this.c9g_1.a9g_1.supportBackwardActions ? action_0.p8o_1 : null;
2846
+ var exceptPlayerId_1 = this.u9g_1.s9g_1.supportBackwardActions ? action_0.r8o_1 : null;
2896
2847
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2897
- var sendToPlayer_12 = new RoomActionPayload(this_14.b9g_1.g6d(), table_10.id, exceptPlayerId_1);
2848
+ var sendToPlayer_12 = new RoomActionPayload(this_14.t9g_1.g6d(), table_10.id, exceptPlayerId_1);
2898
2849
  var tmp$ret$97 = mapToClient_4(action_0, sendToPlayer_12);
2899
2850
  tmp = listOfNotNull(tmp$ret$97);
2900
2851
  } else {
2901
2852
  if (action_0 instanceof PutCardMechanicAction) {
2902
2853
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2903
- var this_15 = this.c9g_1;
2854
+ var this_15 = this.u9g_1;
2904
2855
  var table_11 = state.a6n();
2905
- var exceptPlayerId_2 = this.c9g_1.a9g_1.supportBackwardActions ? action_0.u8j_1 : null;
2856
+ var exceptPlayerId_2 = this.u9g_1.s9g_1.supportBackwardActions ? action_0.w8j_1 : null;
2906
2857
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2907
- var sendToPlayer_13 = new RoomActionPayload(this_15.b9g_1.g6d(), table_11.id, exceptPlayerId_2);
2858
+ var sendToPlayer_13 = new RoomActionPayload(this_15.t9g_1.g6d(), table_11.id, exceptPlayerId_2);
2908
2859
  var tmp$ret$99 = mapToClient_3(action_0, sendToPlayer_13);
2909
2860
  tmp = listOfNotNull(tmp$ret$99);
2910
2861
  } else {
2911
2862
  if (action_0 instanceof PickUpBribeMechanicAction) {
2912
2863
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2913
- var this_16 = this.c9g_1;
2864
+ var this_16 = this.u9g_1;
2914
2865
  var table_12 = state.a6n();
2915
2866
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2916
- var sendToPlayer_14 = new RoomActionPayload(this_16.b9g_1.g6d(), table_12.id, null);
2867
+ var sendToPlayer_14 = new RoomActionPayload(this_16.t9g_1.g6d(), table_12.id, null);
2917
2868
  var tmp$ret$101 = mapToClient_2(action_0, sendToPlayer_14);
2918
2869
  tmp = listOfNotNull(tmp$ret$101);
2919
2870
  } else {
2920
2871
  if (action_0 instanceof WinnerCombinationsMechanicAction) {
2921
2872
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2922
- var this_17 = this.c9g_1;
2873
+ var this_17 = this.u9g_1;
2923
2874
  var table_13 = state.a6n();
2924
2875
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2925
- var sendToPlayer_15 = new RoomActionPayload(this_17.b9g_1.g6d(), table_13.id, null);
2876
+ var sendToPlayer_15 = new RoomActionPayload(this_17.t9g_1.g6d(), table_13.id, null);
2926
2877
  var tmp$ret$103 = mapToClient_1(action_0, sendToPlayer_15);
2927
2878
  tmp = listOfNotNull(tmp$ret$103);
2928
2879
  } else {
2929
2880
  if (action_0 instanceof MessageMechanicAction) {
2930
- var message = action_0.t8o_1;
2881
+ var message = action_0.v8o_1;
2931
2882
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2932
- var this_18 = this.c9g_1;
2883
+ var this_18 = this.u9g_1;
2933
2884
  var table_14 = state.a6n();
2934
2885
  var tmp_1;
2935
2886
  var tmp_2;
2936
- if (this.c9g_1.a9g_1.supportBackwardActions) {
2887
+ if (this.u9g_1.s9g_1.supportBackwardActions) {
2937
2888
  tmp_2 = isInterface(message, UserMessage);
2938
2889
  } else {
2939
2890
  tmp_2 = false;
@@ -2945,17 +2896,17 @@
2945
2896
  }
2946
2897
  var exceptPlayerId_3 = tmp_1;
2947
2898
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2948
- var sendToPlayer_16 = new RoomActionPayload(this_18.b9g_1.g6d(), table_14.id, exceptPlayerId_3);
2899
+ var sendToPlayer_16 = new RoomActionPayload(this_18.t9g_1.g6d(), table_14.id, exceptPlayerId_3);
2949
2900
  var tmp$ret$105 = mapToClient_0(action_0, sendToPlayer_16);
2950
2901
  tmp = listOfNotNull(tmp$ret$105);
2951
2902
  } else {
2952
2903
  if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
2953
2904
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.createRoomActionFromTable' call
2954
- var this_19 = this.c9g_1;
2905
+ var this_19 = this.u9g_1;
2955
2906
  var table_15 = state.a6n();
2956
2907
  var exceptPlayerId_4 = action_0.playerId;
2957
2908
  // Inline function 'games.jass.logic.server.redux.middlewares.ServerMapMechanicToClientActionMiddleware.middleware.<anonymous>.<anonymous>.<anonymous>' call
2958
- var sendToPlayer_17 = new RoomActionPayload(this_19.b9g_1.g6d(), table_15.id, exceptPlayerId_4);
2909
+ var sendToPlayer_17 = new RoomActionPayload(this_19.t9g_1.g6d(), table_15.id, exceptPlayerId_4);
2959
2910
  var tmp$ret$107 = mapToClient(action_0, sendToPlayer_17);
2960
2911
  tmp = listOfNotNull(tmp$ret$107);
2961
2912
  } else {
@@ -2993,10 +2944,10 @@
2993
2944
  return this.u6g(store, next, action);
2994
2945
  };
2995
2946
  function ServerMapMechanicToClientActionMiddleware(logicConfig, idsProvider) {
2996
- this.a9g_1 = logicConfig;
2997
- this.b9g_1 = idsProvider;
2947
+ this.s9g_1 = logicConfig;
2948
+ this.t9g_1 = idsProvider;
2998
2949
  }
2999
- protoOf(ServerMapMechanicToClientActionMiddleware).k8s = function () {
2950
+ protoOf(ServerMapMechanicToClientActionMiddleware).m8s = function () {
3000
2951
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
3001
2952
  return new _no_name_provided__qut3iv_0(this);
3002
2953
  };
@@ -3005,8 +2956,8 @@
3005
2956
  return new _no_name_provided__qut3iv_1(asyncProvider, provider);
3006
2957
  }
3007
2958
  function serverSendEventsToClientsMiddleware$o$handle$slambda($provider, $action, resultContinuation) {
3008
- this.l9g_1 = $provider;
3009
- this.m9g_1 = $action;
2959
+ this.d9h_1 = $provider;
2960
+ this.e9h_1 = $action;
3010
2961
  CoroutineImpl.call(this, resultContinuation);
3011
2962
  }
3012
2963
  protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).h1d = function ($this$launchDefault, $completion) {
@@ -3027,7 +2978,7 @@
3027
2978
  case 0:
3028
2979
  this.f9_1 = 2;
3029
2980
  this.e9_1 = 1;
3030
- suspendResult = this.l9g_1.w9c(this.m9g_1, this);
2981
+ suspendResult = this.d9h_1.o9d(this.e9h_1, this);
3031
2982
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
3032
2983
  return suspendResult;
3033
2984
  }
@@ -3050,8 +3001,8 @@
3050
3001
  while (true);
3051
3002
  };
3052
3003
  protoOf(serverSendEventsToClientsMiddleware$o$handle$slambda).i1d = function ($this$launchDefault, completion) {
3053
- var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.l9g_1, this.m9g_1, completion);
3054
- i.n9g_1 = $this$launchDefault;
3004
+ var i = new serverSendEventsToClientsMiddleware$o$handle$slambda(this.d9h_1, this.e9h_1, completion);
3005
+ i.f9h_1 = $this$launchDefault;
3055
3006
  return i;
3056
3007
  };
3057
3008
  function serverSendEventsToClientsMiddleware$o$handle$slambda_0($provider, $action, resultContinuation) {
@@ -3063,8 +3014,8 @@
3063
3014
  return l;
3064
3015
  }
3065
3016
  function _no_name_provided__qut3iv_1($asyncProvider, $provider) {
3066
- this.o9g_1 = $asyncProvider;
3067
- this.p9g_1 = $provider;
3017
+ this.g9h_1 = $asyncProvider;
3018
+ this.h9h_1 = $provider;
3068
3019
  }
3069
3020
  protoOf(_no_name_provided__qut3iv_1).d6f = function (action) {
3070
3021
  return action instanceof ToClientAction;
@@ -3072,7 +3023,7 @@
3072
3023
  protoOf(_no_name_provided__qut3iv_1).u6g = function (store, next, action) {
3073
3024
  // Inline function 'games.jass.logic.server.redux.middlewares.client.serverSendEventsToClientsMiddleware.<anonymous>' call
3074
3025
  var action_0 = action instanceof ToClientAction ? action : THROW_CCE();
3075
- this.o9g_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.p9g_1, action_0, null));
3026
+ this.g9h_1.d6c(VOID, serverSendEventsToClientsMiddleware$o$handle$slambda_0(this.h9h_1, action_0, null));
3076
3027
  next(action_0);
3077
3028
  };
3078
3029
  protoOf(_no_name_provided__qut3iv_1).c6f = function (store, next, action) {
@@ -3087,13 +3038,13 @@
3087
3038
  protoOf(_no_name_provided__qut3iv_2).d6f = function (action) {
3088
3039
  return action instanceof UpdateServerConfigAction;
3089
3040
  };
3090
- protoOf(_no_name_provided__qut3iv_2).f8z = function (state, action) {
3041
+ protoOf(_no_name_provided__qut3iv_2).h8z = function (state, action) {
3091
3042
  // Inline function 'games.jass.logic.server.redux.reducers.serverConfigReducer.<anonymous>' call
3092
3043
  var action_0 = action instanceof UpdateServerConfigAction ? action : THROW_CCE();
3093
- return state.m8m(VOID, get_serverState_0(state).q9g(action_0.i9f_1));
3044
+ return state.o8m(VOID, get_serverState_0(state).i9h(action_0.a9g_1));
3094
3045
  };
3095
3046
  protoOf(_no_name_provided__qut3iv_2).v6g = function (state, action) {
3096
- return this.f8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
3047
+ return this.h8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
3097
3048
  };
3098
3049
  function ServerMechanicLifecycleReducer$onStart$lambda($action) {
3099
3050
  return function (it) {
@@ -3106,7 +3057,7 @@
3106
3057
  var tmp_2 = PlayerConnectionState_LIVE_getInstance();
3107
3058
  // Inline function 'kotlin.time.Companion.milliseconds' call
3108
3059
  Companion_getInstance();
3109
- var this_0 = $action.k8n_1.timeoutTimeMillis;
3060
+ var this_0 = $action.m8n_1.timeoutTimeMillis;
3110
3061
  var tmp$ret$0 = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
3111
3062
  tmp_0 = tmp_1.e68(tmp_2, tmp$ret$0);
3112
3063
  }
@@ -3115,47 +3066,47 @@
3115
3066
  }
3116
3067
  function ServerMechanicLifecycleReducer(logger, tableLifecycleReducer, randomPoolProvider) {
3117
3068
  BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer, randomPoolProvider);
3118
- this.t9g_1 = logger;
3069
+ this.l9h_1 = logger;
3119
3070
  }
3120
- protoOf(ServerMechanicLifecycleReducer).r90 = function (state, action) {
3071
+ protoOf(ServerMechanicLifecycleReducer).t90 = function (state, action) {
3121
3072
  var serverState = get_serverStateOrNull(state.z6l_1);
3122
3073
  var tmp8_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
3123
- var tmp0_$this = this.s90_1;
3124
- var tmp1_tableId = action.l8n_1;
3125
- var tmp2_gameId = action.l8n_1;
3126
- var tmp3_version = action.m8n_1;
3127
- var tmp4_config = action.k8n_1;
3128
- var tmp5_users = action.o8n_1;
3074
+ var tmp0_$this = this.u90_1;
3075
+ var tmp1_tableId = action.n8n_1;
3076
+ var tmp2_gameId = action.n8n_1;
3077
+ var tmp3_version = action.o8n_1;
3078
+ var tmp4_config = action.m8n_1;
3079
+ var tmp5_users = action.q8n_1;
3129
3080
  var tmp6_spectators = action.spectators;
3130
- var tmp7_gameCreatorPlayerId = action.n8n_1;
3131
- var tmp9_tableOrNull = tmp0_$this.y91(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
3081
+ var tmp7_gameCreatorPlayerId = action.p8n_1;
3082
+ var tmp9_tableOrNull = tmp0_$this.a92(tmp1_tableId, tmp2_gameId, tmp4_config, tmp3_version, tmp5_users, tmp6_spectators, tmp7_gameCreatorPlayerId, ServerMechanicLifecycleReducer$onStart$lambda(action));
3132
3083
  var tmp;
3133
3084
  if (serverState == null) {
3134
- this.t9g_1.w(VOID, 'ServerPayload is not onStart');
3135
- tmp = Companion_instance_11.s9c();
3085
+ this.l9h_1.w(VOID, 'ServerPayload is not onStart');
3086
+ tmp = Companion_instance_9.k9d();
3136
3087
  } else {
3137
3088
  tmp = serverState;
3138
3089
  }
3139
3090
  var tmp10_payload = tmp;
3140
- return state.m8m(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
3091
+ return state.o8m(tmp9_tableOrNull, tmp10_payload, tmp8_gameLifecycleState);
3141
3092
  };
3142
- protoOf(ServerMechanicLifecycleReducer).q90 = function (state, action) {
3143
- this.t90_1.r5n(action.previousGameId);
3093
+ protoOf(ServerMechanicLifecycleReducer).s90 = function (state, action) {
3094
+ this.v90_1.r5n(action.previousGameId);
3144
3095
  var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
3145
- var tmp1_tableOrNull = this.s90_1.z91(state.a6n(), action.gameId);
3146
- return state.m8m(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
3096
+ var tmp1_tableOrNull = this.u90_1.b92(state.a6n(), action.gameId);
3097
+ return state.o8m(tmp1_tableOrNull, VOID, tmp0_gameLifecycleState);
3147
3098
  };
3148
3099
  function spectatorsReducer(logger) {
3149
3100
  // Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
3150
3101
  return new _no_name_provided__qut3iv_3(logger);
3151
3102
  }
3152
3103
  function _no_name_provided__qut3iv_3($logger) {
3153
- this.u9g_1 = $logger;
3104
+ this.m9h_1 = $logger;
3154
3105
  }
3155
3106
  protoOf(_no_name_provided__qut3iv_3).d6f = function (action) {
3156
3107
  return isInterface(action, SpectatorsAction);
3157
3108
  };
3158
- protoOf(_no_name_provided__qut3iv_3).f8z = function (state, action) {
3109
+ protoOf(_no_name_provided__qut3iv_3).h8z = function (state, action) {
3159
3110
  // Inline function 'games.jass.logic.server.redux.reducers.spectatorsReducer.<anonymous>' call
3160
3111
  var action_0 = isInterface(action, SpectatorsAction) ? action : THROW_CCE();
3161
3112
  var table = state.a6n();
@@ -3163,7 +3114,7 @@
3163
3114
  if (action_0 instanceof AddSpectatorsAction) {
3164
3115
  // Inline function 'kotlin.collections.mapNotNull' call
3165
3116
  // Inline function 'kotlin.collections.mapNotNullTo' call
3166
- var this_0 = action_0.j9f_1;
3117
+ var this_0 = action_0.b9g_1;
3167
3118
  var destination = ArrayList_init_$Create$();
3168
3119
  // Inline function 'kotlin.collections.forEach' call
3169
3120
  var tmp0_iterator = this_0.j();
@@ -3185,10 +3136,10 @@
3185
3136
  var tmp_0;
3186
3137
  // Inline function 'kotlin.collections.isNotEmpty' call
3187
3138
  if (!sameSpectators.p()) {
3188
- this.u9g_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
3139
+ this.m9h_1.w('spectatorsReducer', 'AddSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators));
3189
3140
  // Inline function 'kotlin.collections.filterNot' call
3190
3141
  // Inline function 'kotlin.collections.filterNotTo' call
3191
- var this_1 = action_0.j9f_1;
3142
+ var this_1 = action_0.b9g_1;
3192
3143
  var destination_0 = ArrayList_init_$Create$();
3193
3144
  var tmp0_iterator_0 = this_1.j();
3194
3145
  while (tmp0_iterator_0.k()) {
@@ -3224,7 +3175,7 @@
3224
3175
  }
3225
3176
  tmp_0 = destination_0;
3226
3177
  } else {
3227
- tmp_0 = action_0.j9f_1;
3178
+ tmp_0 = action_0.b9g_1;
3228
3179
  }
3229
3180
  var this_2 = tmp_0;
3230
3181
  // Inline function 'kotlin.collections.mapTo' call
@@ -3237,12 +3188,12 @@
3237
3188
  destination_1.e(tmp$ret$10);
3238
3189
  }
3239
3190
  var spectatorsToAdd = toSet(destination_1);
3240
- tmp = state.m8m(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
3191
+ tmp = state.o8m(table.copy(VOID, VOID, VOID, VOID, VOID, plus(table.spectators, spectatorsToAdd)));
3241
3192
  } else {
3242
3193
  if (action_0 instanceof RemoveSpectatorsAction) {
3243
3194
  // Inline function 'kotlin.collections.mapNotNull' call
3244
3195
  // Inline function 'kotlin.collections.mapNotNullTo' call
3245
- var this_3 = action_0.k9f_1;
3196
+ var this_3 = action_0.c9g_1;
3246
3197
  var destination_2 = ArrayList_init_$Create$();
3247
3198
  // Inline function 'kotlin.collections.forEach' call
3248
3199
  var tmp0_iterator_3 = this_3.j();
@@ -3263,10 +3214,10 @@
3263
3214
  var tmp_2;
3264
3215
  // Inline function 'kotlin.collections.isNotEmpty' call
3265
3216
  if (!sameSpectators_0.p()) {
3266
- this.u9g_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
3217
+ this.m9h_1.w('spectatorsReducer', 'RemoveSpectatorsAction: This spectator is already exists in this room, ' + toString(sameSpectators_0));
3267
3218
  // Inline function 'kotlin.collections.filterNot' call
3268
3219
  // Inline function 'kotlin.collections.filterNotTo' call
3269
- var this_4 = action_0.k9f_1;
3220
+ var this_4 = action_0.c9g_1;
3270
3221
  var destination_3 = ArrayList_init_$Create$();
3271
3222
  var tmp0_iterator_4 = this_4.j();
3272
3223
  while (tmp0_iterator_4.k()) {
@@ -3302,7 +3253,7 @@
3302
3253
  }
3303
3254
  tmp_2 = destination_3;
3304
3255
  } else {
3305
- tmp_2 = action_0.k9f_1;
3256
+ tmp_2 = action_0.c9g_1;
3306
3257
  }
3307
3258
  var spectatorsToRemove = toSet(tmp_2);
3308
3259
  // Inline function 'kotlin.collections.filterNot' call
@@ -3341,7 +3292,7 @@
3341
3292
  destination_4.e(element_5);
3342
3293
  }
3343
3294
  }
3344
- tmp = state.m8m(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
3295
+ tmp = state.o8m(table.copy(VOID, VOID, VOID, VOID, VOID, destination_4));
3345
3296
  } else {
3346
3297
  noWhenBranchMatchedException();
3347
3298
  }
@@ -3349,32 +3300,32 @@
3349
3300
  return tmp;
3350
3301
  };
3351
3302
  protoOf(_no_name_provided__qut3iv_3).v6g = function (state, action) {
3352
- return this.f8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
3303
+ return this.h8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
3353
3304
  };
3354
3305
  function Companion_1() {
3355
3306
  }
3356
- protoOf(Companion_1).v9g = function (config) {
3307
+ protoOf(Companion_1).n9h = function (config) {
3357
3308
  return new ServerState(config);
3358
3309
  };
3359
- protoOf(Companion_1).s9c = function (config, $super) {
3310
+ protoOf(Companion_1).k9d = function (config, $super) {
3360
3311
  config = config === VOID ? new ServerConfig(true) : config;
3361
- return $super === VOID ? this.v9g(config) : $super.v9g.call(this, config);
3312
+ return $super === VOID ? this.n9h(config) : $super.n9h.call(this, config);
3362
3313
  };
3363
- var Companion_instance_11;
3364
- function Companion_getInstance_4() {
3365
- return Companion_instance_11;
3314
+ var Companion_instance_9;
3315
+ function Companion_getInstance_2() {
3316
+ return Companion_instance_9;
3366
3317
  }
3367
3318
  function ServerState(config) {
3368
- this.c9c_1 = config;
3319
+ this.u9c_1 = config;
3369
3320
  }
3370
- protoOf(ServerState).q9g = function (config) {
3321
+ protoOf(ServerState).i9h = function (config) {
3371
3322
  return new ServerState(config);
3372
3323
  };
3373
3324
  protoOf(ServerState).toString = function () {
3374
- return 'ServerState(config=' + this.c9c_1.toString() + ')';
3325
+ return 'ServerState(config=' + this.u9c_1.toString() + ')';
3375
3326
  };
3376
3327
  protoOf(ServerState).hashCode = function () {
3377
- return this.c9c_1.hashCode();
3328
+ return this.u9c_1.hashCode();
3378
3329
  };
3379
3330
  protoOf(ServerState).equals = function (other) {
3380
3331
  if (this === other)
@@ -3382,7 +3333,7 @@
3382
3333
  if (!(other instanceof ServerState))
3383
3334
  return false;
3384
3335
  var tmp0_other_with_cast = other instanceof ServerState ? other : THROW_CCE();
3385
- if (!this.c9c_1.equals(tmp0_other_with_cast.c9c_1))
3336
+ if (!this.u9c_1.equals(tmp0_other_with_cast.u9c_1))
3386
3337
  return false;
3387
3338
  return true;
3388
3339
  };
@@ -3412,1037 +3363,6 @@
3412
3363
  var tmp$ret$2 = tmp$ret$1;
3413
3364
  return get_serverState(tmp$ret$2);
3414
3365
  }
3415
- function GameHelper() {
3416
- }
3417
- function prepareConfigObjectInternal($this, map) {
3418
- var jsObject = {};
3419
- var tmp = map.g2('players');
3420
- var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
3421
- var tmp_0;
3422
- if (tmp0_safe_receiver == null) {
3423
- tmp_0 = null;
3424
- } else {
3425
- // Inline function 'kotlin.collections.onEach' call
3426
- // Inline function 'kotlin.apply' call
3427
- // Inline function 'kotlin.contracts.contract' call
3428
- // Inline function 'kotlin.collections.onEach.<anonymous>' call
3429
- var inductionVariable = 0;
3430
- var last = tmp0_safe_receiver.length;
3431
- while (inductionVariable < last) {
3432
- var element = tmp0_safe_receiver[inductionVariable];
3433
- inductionVariable = inductionVariable + 1 | 0;
3434
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3435
- validatePlayers($this, element);
3436
- }
3437
- tmp_0 = tmp0_safe_receiver;
3438
- }
3439
- var tmp1_safe_receiver = tmp_0;
3440
- var tmp_1;
3441
- if (tmp1_safe_receiver == null) {
3442
- tmp_1 = null;
3443
- } else {
3444
- // Inline function 'kotlin.takeIf' call
3445
- // Inline function 'kotlin.contracts.contract' call
3446
- var tmp_2;
3447
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3448
- // Inline function 'kotlin.collections.isNotEmpty' call
3449
- // Inline function 'kotlin.collections.isEmpty' call
3450
- if (!(tmp1_safe_receiver.length === 0)) {
3451
- tmp_2 = tmp1_safe_receiver;
3452
- } else {
3453
- tmp_2 = null;
3454
- }
3455
- tmp_1 = tmp_2;
3456
- }
3457
- var players = tmp_1;
3458
- var tmp_3 = map.g2('points');
3459
- var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
3460
- var tmp_4;
3461
- if (tmp2_safe_receiver == null) {
3462
- tmp_4 = null;
3463
- } else {
3464
- // Inline function 'kotlin.collections.onEach' call
3465
- // Inline function 'kotlin.apply' call
3466
- // Inline function 'kotlin.contracts.contract' call
3467
- // Inline function 'kotlin.collections.onEach.<anonymous>' call
3468
- var inductionVariable_0 = 0;
3469
- var last_0 = tmp2_safe_receiver.length;
3470
- while (inductionVariable_0 < last_0) {
3471
- var element_0 = tmp2_safe_receiver[inductionVariable_0];
3472
- inductionVariable_0 = inductionVariable_0 + 1 | 0;
3473
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3474
- validatePoints($this, element_0);
3475
- }
3476
- tmp_4 = tmp2_safe_receiver;
3477
- }
3478
- var tmp3_safe_receiver = tmp_4;
3479
- var tmp_5;
3480
- if (tmp3_safe_receiver == null) {
3481
- tmp_5 = null;
3482
- } else {
3483
- // Inline function 'kotlin.takeIf' call
3484
- // Inline function 'kotlin.contracts.contract' call
3485
- var tmp_6;
3486
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3487
- // Inline function 'kotlin.collections.isNotEmpty' call
3488
- // Inline function 'kotlin.collections.isEmpty' call
3489
- if (!(tmp3_safe_receiver.length === 0)) {
3490
- tmp_6 = tmp3_safe_receiver;
3491
- } else {
3492
- tmp_6 = null;
3493
- }
3494
- tmp_5 = tmp_6;
3495
- }
3496
- var points = tmp_5;
3497
- var tmp_7 = map.g2('timeoutTime');
3498
- var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
3499
- var tmp_8;
3500
- if (tmp4_safe_receiver == null) {
3501
- tmp_8 = null;
3502
- } else {
3503
- // Inline function 'kotlin.collections.onEach' call
3504
- // Inline function 'kotlin.apply' call
3505
- // Inline function 'kotlin.contracts.contract' call
3506
- // Inline function 'kotlin.collections.onEach.<anonymous>' call
3507
- var inductionVariable_1 = 0;
3508
- var last_1 = tmp4_safe_receiver.length;
3509
- while (inductionVariable_1 < last_1) {
3510
- var element_1 = tmp4_safe_receiver[inductionVariable_1];
3511
- inductionVariable_1 = inductionVariable_1 + 1 | 0;
3512
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3513
- validateTimeoutTime($this, element_1);
3514
- }
3515
- tmp_8 = tmp4_safe_receiver;
3516
- }
3517
- var tmp5_safe_receiver = tmp_8;
3518
- var tmp_9;
3519
- if (tmp5_safe_receiver == null) {
3520
- tmp_9 = null;
3521
- } else {
3522
- // Inline function 'kotlin.takeIf' call
3523
- // Inline function 'kotlin.contracts.contract' call
3524
- var tmp_10;
3525
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3526
- // Inline function 'kotlin.collections.isNotEmpty' call
3527
- // Inline function 'kotlin.collections.isEmpty' call
3528
- if (!(tmp5_safe_receiver.length === 0)) {
3529
- tmp_10 = tmp5_safe_receiver;
3530
- } else {
3531
- tmp_10 = null;
3532
- }
3533
- tmp_9 = tmp_10;
3534
- }
3535
- var timeoutTime = tmp_9;
3536
- var tmp_11 = map.g2('rulesPreset');
3537
- var tmp6_safe_receiver = (tmp_11 == null ? true : isArray(tmp_11)) ? tmp_11 : null;
3538
- var tmp_12;
3539
- if (tmp6_safe_receiver == null) {
3540
- tmp_12 = null;
3541
- } else {
3542
- // Inline function 'kotlin.collections.onEach' call
3543
- // Inline function 'kotlin.apply' call
3544
- // Inline function 'kotlin.contracts.contract' call
3545
- // Inline function 'kotlin.collections.onEach.<anonymous>' call
3546
- var inductionVariable_2 = 0;
3547
- var last_2 = tmp6_safe_receiver.length;
3548
- while (inductionVariable_2 < last_2) {
3549
- var element_2 = tmp6_safe_receiver[inductionVariable_2];
3550
- inductionVariable_2 = inductionVariable_2 + 1 | 0;
3551
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3552
- validateRulesSetType($this, element_2);
3553
- }
3554
- tmp_12 = tmp6_safe_receiver;
3555
- }
3556
- var tmp7_safe_receiver = tmp_12;
3557
- var tmp_13;
3558
- if (tmp7_safe_receiver == null) {
3559
- tmp_13 = null;
3560
- } else {
3561
- // Inline function 'kotlin.takeIf' call
3562
- // Inline function 'kotlin.contracts.contract' call
3563
- var tmp_14;
3564
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3565
- // Inline function 'kotlin.collections.isNotEmpty' call
3566
- // Inline function 'kotlin.collections.isEmpty' call
3567
- if (!(tmp7_safe_receiver.length === 0)) {
3568
- tmp_14 = tmp7_safe_receiver;
3569
- } else {
3570
- tmp_14 = null;
3571
- }
3572
- tmp_13 = tmp_14;
3573
- }
3574
- var rulesPreset = tmp_13;
3575
- var tmp_15 = map.g2('isChatEnabled');
3576
- var isChatEnabled = (!(tmp_15 == null) ? typeof tmp_15 === 'boolean' : false) ? tmp_15 : null;
3577
- var tmp_16;
3578
- if (players == null) {
3579
- // Inline function 'kotlin.arrayOf' call
3580
- // Inline function 'kotlin.js.unsafeCast' call
3581
- // Inline function 'kotlin.js.asDynamic' call
3582
- tmp_16 = [2, 3, 4, 5];
3583
- } else {
3584
- tmp_16 = players;
3585
- }
3586
- jsObject['players'] = tmp_16;
3587
- var tmp_17;
3588
- if (points == null) {
3589
- // Inline function 'kotlin.arrayOf' call
3590
- // Inline function 'kotlin.js.unsafeCast' call
3591
- // Inline function 'kotlin.js.asDynamic' call
3592
- tmp_17 = [301, 501, 1001];
3593
- } else {
3594
- tmp_17 = points;
3595
- }
3596
- jsObject['points'] = tmp_17;
3597
- var tmp_18;
3598
- if (timeoutTime == null) {
3599
- // Inline function 'kotlin.arrayOf' call
3600
- // Inline function 'kotlin.js.unsafeCast' call
3601
- // Inline function 'kotlin.js.asDynamic' call
3602
- tmp_18 = [15, 30, 45];
3603
- } else {
3604
- tmp_18 = timeoutTime;
3605
- }
3606
- jsObject['timeoutTime'] = tmp_18;
3607
- var tmp_19;
3608
- if (rulesPreset == null) {
3609
- // Inline function 'kotlin.collections.toTypedArray' call
3610
- // Inline function 'kotlin.collections.map' call
3611
- var this_0 = get_entries();
3612
- // Inline function 'kotlin.collections.mapTo' call
3613
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3614
- var tmp0_iterator = this_0.j();
3615
- while (tmp0_iterator.k()) {
3616
- var item = tmp0_iterator.l();
3617
- // Inline function 'GameHelperImpl.prepareConfigObjectInternal.<anonymous>' call
3618
- var tmp$ret$33 = item.m2_1;
3619
- destination.e(tmp$ret$33);
3620
- }
3621
- tmp_19 = copyToArray(destination);
3622
- } else {
3623
- tmp_19 = rulesPreset;
3624
- }
3625
- jsObject['rulesPreset'] = tmp_19;
3626
- jsObject['isChatEnabled'] = isChatEnabled;
3627
- return jsObject;
3628
- }
3629
- function validateTimeoutTime($this, timeoutTime) {
3630
- if (!listOf([15, 30, 45]).s1(timeoutTime)) {
3631
- throw IllegalStateException_init_$Create$("Time out time allowed: 20, 40, 60, but it's " + timeoutTime);
3632
- }
3633
- }
3634
- function validatePlayers($this, players) {
3635
- // Inline function 'kotlin.collections.map' call
3636
- var this_0 = get_entries_0();
3637
- // Inline function 'kotlin.collections.mapTo' call
3638
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3639
- var tmp0_iterator = this_0.j();
3640
- while (tmp0_iterator.k()) {
3641
- var item = tmp0_iterator.l();
3642
- // Inline function 'GameHelperImpl.validatePlayers.<anonymous>' call
3643
- var tmp$ret$0 = item.value;
3644
- destination.e(tmp$ret$0);
3645
- }
3646
- if (!destination.s1(players)) {
3647
- throw IllegalStateException_init_$Create$('Not valid players mode ' + players);
3648
- }
3649
- }
3650
- function validatePoints($this, points) {
3651
- // Inline function 'kotlin.collections.map' call
3652
- var this_0 = get_entries_1();
3653
- // Inline function 'kotlin.collections.mapTo' call
3654
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3655
- var tmp0_iterator = this_0.j();
3656
- while (tmp0_iterator.k()) {
3657
- var item = tmp0_iterator.l();
3658
- // Inline function 'GameHelperImpl.validatePoints.<anonymous>' call
3659
- var tmp$ret$0 = item.value;
3660
- destination.e(tmp$ret$0);
3661
- }
3662
- if (!destination.s1(points)) {
3663
- throw IllegalStateException_init_$Create$('Not valid points mode ' + points);
3664
- }
3665
- }
3666
- function validateRulesSetType($this, rulesSetType) {
3667
- // Inline function 'kotlin.collections.map' call
3668
- var this_0 = get_entries();
3669
- // Inline function 'kotlin.collections.mapTo' call
3670
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3671
- var tmp0_iterator = this_0.j();
3672
- while (tmp0_iterator.k()) {
3673
- var item = tmp0_iterator.l();
3674
- // Inline function 'GameHelperImpl.validateRulesSetType.<anonymous>' call
3675
- var tmp$ret$0 = item.m2_1;
3676
- destination.e(tmp$ret$0);
3677
- }
3678
- if (!destination.s1(rulesSetType)) {
3679
- throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
3680
- }
3681
- }
3682
- function validateLimit($this, limit) {
3683
- if (limit < 20) {
3684
- throw IllegalStateException_init_$Create$('Limit should be bigger then 20');
3685
- }
3686
- }
3687
- function validateRules($this, rules) {
3688
- if (rules != null && rules != undefined) {
3689
- $this.mapRules(rules);
3690
- }
3691
- }
3692
- function GameHelperImpl() {
3693
- }
3694
- protoOf(GameHelperImpl).filterLivePlayers = function (store, playerIds) {
3695
- var state = store.state;
3696
- var tmp;
3697
- if (!state.b6n()) {
3698
- tmp = true;
3699
- } else {
3700
- // Inline function 'kotlin.collections.isEmpty' call
3701
- tmp = playerIds.length === 0;
3702
- }
3703
- if (tmp) {
3704
- return playerIds;
3705
- }
3706
- var players = state.a6n().players;
3707
- // Inline function 'kotlin.collections.toTypedArray' call
3708
- // Inline function 'kotlin.collections.map' call
3709
- // Inline function 'kotlin.collections.filter' call
3710
- // Inline function 'kotlin.collections.map' call
3711
- // Inline function 'kotlin.collections.mapTo' call
3712
- var destination = ArrayList_init_$Create$_0(playerIds.length);
3713
- var inductionVariable = 0;
3714
- var last = playerIds.length;
3715
- while (inductionVariable < last) {
3716
- var item = playerIds[inductionVariable];
3717
- inductionVariable = inductionVariable + 1 | 0;
3718
- // Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
3719
- var tmp$ret$1 = getPlayer(players, item);
3720
- destination.e(tmp$ret$1);
3721
- }
3722
- // Inline function 'kotlin.collections.filterTo' call
3723
- var destination_0 = ArrayList_init_$Create$();
3724
- var tmp0_iterator = destination.j();
3725
- while (tmp0_iterator.k()) {
3726
- var element = tmp0_iterator.l();
3727
- // Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
3728
- if (element.q6s_1.q69().h68_1.isLive) {
3729
- destination_0.e(element);
3730
- }
3731
- }
3732
- // Inline function 'kotlin.collections.mapTo' call
3733
- var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
3734
- var tmp0_iterator_0 = destination_0.j();
3735
- while (tmp0_iterator_0.k()) {
3736
- var item_0 = tmp0_iterator_0.l();
3737
- // Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
3738
- var tmp$ret$7 = item_0.playerId;
3739
- destination_1.e(tmp$ret$7);
3740
- }
3741
- return copyToArray(destination_1);
3742
- };
3743
- protoOf(GameHelperImpl).filterLiveDuringGamePlayers = function (store, playerIds) {
3744
- var state = store.state;
3745
- var tmp;
3746
- if (!state.b6n()) {
3747
- tmp = true;
3748
- } else {
3749
- // Inline function 'kotlin.collections.isEmpty' call
3750
- tmp = playerIds.length === 0;
3751
- }
3752
- if (tmp) {
3753
- return playerIds;
3754
- }
3755
- var players = state.a6n().players;
3756
- // Inline function 'kotlin.collections.toTypedArray' call
3757
- // Inline function 'kotlin.collections.map' call
3758
- // Inline function 'kotlin.collections.filter' call
3759
- // Inline function 'kotlin.collections.map' call
3760
- // Inline function 'kotlin.collections.mapTo' call
3761
- var destination = ArrayList_init_$Create$_0(playerIds.length);
3762
- var inductionVariable = 0;
3763
- var last = playerIds.length;
3764
- while (inductionVariable < last) {
3765
- var item = playerIds[inductionVariable];
3766
- inductionVariable = inductionVariable + 1 | 0;
3767
- // Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
3768
- var tmp$ret$1 = getPlayer(players, item);
3769
- destination.e(tmp$ret$1);
3770
- }
3771
- // Inline function 'kotlin.collections.filterTo' call
3772
- var destination_0 = ArrayList_init_$Create$();
3773
- var tmp0_iterator = destination.j();
3774
- while (tmp0_iterator.k()) {
3775
- var element = tmp0_iterator.l();
3776
- // Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
3777
- if (element.q6s_1.q69().s68(state.a6n().gameDuration)) {
3778
- destination_0.e(element);
3779
- }
3780
- }
3781
- // Inline function 'kotlin.collections.mapTo' call
3782
- var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
3783
- var tmp0_iterator_0 = destination_0.j();
3784
- while (tmp0_iterator_0.k()) {
3785
- var item_0 = tmp0_iterator_0.l();
3786
- // Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
3787
- var tmp$ret$7 = item_0.playerId;
3788
- destination_1.e(tmp$ret$7);
3789
- }
3790
- return copyToArray(destination_1);
3791
- };
3792
- protoOf(GameHelperImpl).filterBotPlayers = function (store, playerIds) {
3793
- var state = store.state;
3794
- var tmp;
3795
- if (!state.b6n()) {
3796
- tmp = true;
3797
- } else {
3798
- // Inline function 'kotlin.collections.isEmpty' call
3799
- tmp = playerIds.length === 0;
3800
- }
3801
- if (tmp) {
3802
- return playerIds;
3803
- }
3804
- var players = state.a6n().players;
3805
- // Inline function 'kotlin.collections.toTypedArray' call
3806
- // Inline function 'kotlin.collections.map' call
3807
- // Inline function 'kotlin.collections.filter' call
3808
- // Inline function 'kotlin.collections.map' call
3809
- // Inline function 'kotlin.collections.mapTo' call
3810
- var destination = ArrayList_init_$Create$_0(playerIds.length);
3811
- var inductionVariable = 0;
3812
- var last = playerIds.length;
3813
- while (inductionVariable < last) {
3814
- var item = playerIds[inductionVariable];
3815
- inductionVariable = inductionVariable + 1 | 0;
3816
- // Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
3817
- var tmp$ret$1 = getPlayer(players, item);
3818
- destination.e(tmp$ret$1);
3819
- }
3820
- // Inline function 'kotlin.collections.filterTo' call
3821
- var destination_0 = ArrayList_init_$Create$();
3822
- var tmp0_iterator = destination.j();
3823
- while (tmp0_iterator.k()) {
3824
- var element = tmp0_iterator.l();
3825
- // Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
3826
- if (element.p6s_1.isBot) {
3827
- destination_0.e(element);
3828
- }
3829
- }
3830
- // Inline function 'kotlin.collections.mapTo' call
3831
- var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
3832
- var tmp0_iterator_0 = destination_0.j();
3833
- while (tmp0_iterator_0.k()) {
3834
- var item_0 = tmp0_iterator_0.l();
3835
- // Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
3836
- var tmp$ret$7 = item_0.playerId;
3837
- destination_1.e(tmp$ret$7);
3838
- }
3839
- return copyToArray(destination_1);
3840
- };
3841
- protoOf(GameHelperImpl).filterRealPlayers = function (store, playerIds) {
3842
- var state = store.state;
3843
- var tmp;
3844
- if (!state.b6n()) {
3845
- tmp = true;
3846
- } else {
3847
- // Inline function 'kotlin.collections.isEmpty' call
3848
- tmp = playerIds.length === 0;
3849
- }
3850
- if (tmp) {
3851
- return playerIds;
3852
- }
3853
- var players = state.a6n().players;
3854
- // Inline function 'kotlin.collections.toTypedArray' call
3855
- // Inline function 'kotlin.collections.map' call
3856
- // Inline function 'kotlin.collections.filter' call
3857
- // Inline function 'kotlin.collections.map' call
3858
- // Inline function 'kotlin.collections.mapTo' call
3859
- var destination = ArrayList_init_$Create$_0(playerIds.length);
3860
- var inductionVariable = 0;
3861
- var last = playerIds.length;
3862
- while (inductionVariable < last) {
3863
- var item = playerIds[inductionVariable];
3864
- inductionVariable = inductionVariable + 1 | 0;
3865
- // Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
3866
- var tmp$ret$1 = getPlayer(players, item);
3867
- destination.e(tmp$ret$1);
3868
- }
3869
- // Inline function 'kotlin.collections.filterTo' call
3870
- var destination_0 = ArrayList_init_$Create$();
3871
- var tmp0_iterator = destination.j();
3872
- while (tmp0_iterator.k()) {
3873
- var element = tmp0_iterator.l();
3874
- // Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
3875
- if (!element.p6s_1.isBot) {
3876
- destination_0.e(element);
3877
- }
3878
- }
3879
- // Inline function 'kotlin.collections.mapTo' call
3880
- var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_0, 10));
3881
- var tmp0_iterator_0 = destination_0.j();
3882
- while (tmp0_iterator_0.k()) {
3883
- var item_0 = tmp0_iterator_0.l();
3884
- // Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
3885
- var tmp$ret$7 = item_0.playerId;
3886
- destination_1.e(tmp$ret$7);
3887
- }
3888
- return copyToArray(destination_1);
3889
- };
3890
- protoOf(GameHelperImpl).getUserSocketId = function (store, playerId) {
3891
- var state = store.state;
3892
- if (!state.b6n()) {
3893
- return null;
3894
- }
3895
- var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.a6n().players, playerId).p6s_1);
3896
- return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
3897
- };
3898
- protoOf(GameHelperImpl).getUserSocketIds = function (store) {
3899
- var state = store.state;
3900
- if (!state.b6n()) {
3901
- return null;
3902
- }
3903
- // Inline function 'kotlin.collections.toTypedArray' call
3904
- // Inline function 'kotlin.collections.mapNotNull' call
3905
- // Inline function 'kotlin.collections.mapNotNullTo' call
3906
- var this_0 = state.a6n().players;
3907
- var destination = ArrayList_init_$Create$();
3908
- // Inline function 'kotlin.collections.forEach' call
3909
- var tmp0_iterator = this_0.j();
3910
- while (tmp0_iterator.k()) {
3911
- var element = tmp0_iterator.l();
3912
- // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
3913
- // Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
3914
- var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.p6s_1);
3915
- var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
3916
- if (tmp0_safe_receiver_0 == null)
3917
- null;
3918
- else {
3919
- // Inline function 'kotlin.let' call
3920
- // Inline function 'kotlin.contracts.contract' call
3921
- destination.e(tmp0_safe_receiver_0);
3922
- }
3923
- }
3924
- return copyToArray(destination);
3925
- };
3926
- protoOf(GameHelperImpl).createConfig = function (points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate) {
3927
- var options = Companion_instance_3.getServerOptions(isEnableChat, isBotsEnabled, true);
3928
- var playersMode = this.mapPlayers(players);
3929
- var pointsMode = this.mapPoints(points);
3930
- var tmp;
3931
- if (rules == null || rules == undefined) {
3932
- tmp = this.getRulesByType(rulesSetType);
3933
- } else {
3934
- tmp = this.mapRules(rules);
3935
- }
3936
- var internalRules = tmp;
3937
- return new Config(internalRules, rulesSetType, options, playersMode, pointsMode, timeoutTimeMillis, isPrivate);
3938
- };
3939
- protoOf(GameHelperImpl).mapToRoomConfig = function (config) {
3940
- return mapToRoom(config);
3941
- };
3942
- protoOf(GameHelperImpl).mapPoints = function (points) {
3943
- var tmp;
3944
- switch (points) {
3945
- case 301:
3946
- tmp = PointsMode_SMALL_getInstance();
3947
- break;
3948
- case 501:
3949
- tmp = PointsMode_MEDIUM_getInstance();
3950
- break;
3951
- case 1001:
3952
- tmp = PointsMode_BIG_getInstance();
3953
- break;
3954
- case 10:
3955
- tmp = PointsMode_TEST_getInstance();
3956
- break;
3957
- default:
3958
- throw IllegalStateException_init_$Create$("mapPoints: can't support this type " + points);
3959
- }
3960
- return tmp;
3961
- };
3962
- protoOf(GameHelperImpl).mapPlayers = function (players) {
3963
- var tmp;
3964
- switch (players) {
3965
- case 2:
3966
- tmp = PlayersMode_TWO_PLAYERS_getInstance();
3967
- break;
3968
- case 3:
3969
- tmp = PlayersMode_THREE_PLAYERS_getInstance();
3970
- break;
3971
- case 4:
3972
- tmp = PlayersMode_FOUR_PLAYERS_getInstance();
3973
- break;
3974
- case 5:
3975
- tmp = PlayersMode_FOUR_PLAYERS_BY_TEAM_getInstance();
3976
- break;
3977
- default:
3978
- throw IllegalStateException_init_$Create$("mapPoints: can't support this type " + players);
3979
- }
3980
- return tmp;
3981
- };
3982
- protoOf(GameHelperImpl).mapRules = function (rules) {
3983
- if (rules instanceof Rules) {
3984
- return rules instanceof Rules ? rules : THROW_CCE();
3985
- }
3986
- var map = mapOfObject(rules);
3987
- var tmp = map.g2('needToPutHigherTrump');
3988
- var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : null;
3989
- var tmp31_needToPutHigherTrump = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
3990
- var tmp_0 = map.g2('playerWhoChooseSuitGoFirst');
3991
- var tmp1_elvis_lhs = (!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : null;
3992
- var tmp32_playerWhoChooseSuitGoFirst = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
3993
- var tmp_1 = map.g2('winnerShuffleCards');
3994
- var tmp2_elvis_lhs = (!(tmp_1 == null) ? typeof tmp_1 === 'boolean' : false) ? tmp_1 : null;
3995
- var tmp33_winnerShuffleCards = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
3996
- var tmp_2 = map.g2('playWithoutLiabilities');
3997
- var tmp3_elvis_lhs = (!(tmp_2 == null) ? typeof tmp_2 === 'boolean' : false) ? tmp_2 : null;
3998
- var tmp34_playWithoutLiabilities = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
3999
- var tmp_3 = map.g2('trumpCardGoToPlayerWhoShuffleCards');
4000
- var tmp4_elvis_lhs = (!(tmp_3 == null) ? typeof tmp_3 === 'boolean' : false) ? tmp_3 : null;
4001
- var tmp35_trumpCardGoToPlayerWhoShuffleCards = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
4002
- var tmp_4 = map.g2('dealerCounterClockwise');
4003
- var tmp5_elvis_lhs = (!(tmp_4 == null) ? typeof tmp_4 === 'boolean' : false) ? tmp_4 : null;
4004
- var tmp36_dealerCounterClockwise = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
4005
- var tmp_5 = map.g2('dealerInitialCardsCount');
4006
- var tmp6_elvis_lhs = (!(tmp_5 == null) ? typeof tmp_5 === 'number' : false) ? tmp_5 : null;
4007
- var tmp37_dealerInitialCardsCount = tmp6_elvis_lhs == null ? 6 : tmp6_elvis_lhs;
4008
- var tmp_6 = map.g2('dealerFinalCardsCount');
4009
- var tmp7_elvis_lhs = (!(tmp_6 == null) ? typeof tmp_6 === 'number' : false) ? tmp_6 : null;
4010
- var tmp38_dealerFinalCardsCount = tmp7_elvis_lhs == null ? 9 : tmp7_elvis_lhs;
4011
- var tmp_7 = map.g2('contractTypes');
4012
- var tmp8_safe_receiver = (!(tmp_7 == null) ? isArray(tmp_7) : false) ? tmp_7 : null;
4013
- var tmp_8;
4014
- if (tmp8_safe_receiver == null) {
4015
- tmp_8 = null;
4016
- } else {
4017
- // Inline function 'kotlin.collections.map' call
4018
- // Inline function 'kotlin.collections.mapTo' call
4019
- var destination = ArrayList_init_$Create$_0(tmp8_safe_receiver.length);
4020
- var inductionVariable = 0;
4021
- var last = tmp8_safe_receiver.length;
4022
- while (inductionVariable < last) {
4023
- var item = tmp8_safe_receiver[inductionVariable];
4024
- inductionVariable = inductionVariable + 1 | 0;
4025
- // Inline function 'GameHelperImpl.mapRules.<anonymous>' call
4026
- var tmp$ret$0 = toRoundContractType(item);
4027
- destination.e(tmp$ret$0);
4028
- }
4029
- tmp_8 = destination;
4030
- }
4031
- var tmp9_safe_receiver = tmp_8;
4032
- var tmp_9;
4033
- if (tmp9_safe_receiver == null) {
4034
- tmp_9 = null;
4035
- } else {
4036
- // Inline function 'kotlin.collections.toTypedArray' call
4037
- tmp_9 = copyToArray(tmp9_safe_receiver);
4038
- }
4039
- var tmp10_elvis_lhs = tmp_9;
4040
- var tmp_10;
4041
- if (tmp10_elvis_lhs == null) {
4042
- // Inline function 'kotlin.collections.toTypedArray' call
4043
- var this_0 = Companion_getInstance_0().debertzContractTypes;
4044
- tmp_10 = copyToArray(this_0);
4045
- } else {
4046
- tmp_10 = tmp10_elvis_lhs;
4047
- }
4048
- var tmp39_contractTypes = tmp_10;
4049
- var tmp_11 = map.g2('bidTypes');
4050
- var tmp11_safe_receiver = (!(tmp_11 == null) ? isArray(tmp_11) : false) ? tmp_11 : null;
4051
- var tmp_12;
4052
- if (tmp11_safe_receiver == null) {
4053
- tmp_12 = null;
4054
- } else {
4055
- // Inline function 'kotlin.collections.map' call
4056
- // Inline function 'kotlin.collections.mapTo' call
4057
- var destination_0 = ArrayList_init_$Create$_0(tmp11_safe_receiver.length);
4058
- var inductionVariable_0 = 0;
4059
- var last_0 = tmp11_safe_receiver.length;
4060
- while (inductionVariable_0 < last_0) {
4061
- var item_0 = tmp11_safe_receiver[inductionVariable_0];
4062
- inductionVariable_0 = inductionVariable_0 + 1 | 0;
4063
- // Inline function 'GameHelperImpl.mapRules.<anonymous>' call
4064
- var tmp$ret$5 = toBidType(item_0);
4065
- destination_0.e(tmp$ret$5);
4066
- }
4067
- tmp_12 = destination_0;
4068
- }
4069
- var tmp12_safe_receiver = tmp_12;
4070
- var tmp_13;
4071
- if (tmp12_safe_receiver == null) {
4072
- tmp_13 = null;
4073
- } else {
4074
- // Inline function 'kotlin.collections.toTypedArray' call
4075
- tmp_13 = copyToArray(tmp12_safe_receiver);
4076
- }
4077
- var tmp13_elvis_lhs = tmp_13;
4078
- var tmp_14;
4079
- if (tmp13_elvis_lhs == null) {
4080
- // Inline function 'kotlin.emptyArray' call
4081
- tmp_14 = [];
4082
- } else {
4083
- tmp_14 = tmp13_elvis_lhs;
4084
- }
4085
- var tmp40_bidTypes = tmp_14;
4086
- var tmp_15 = map.g2('combinationsWithFirstCard');
4087
- var tmp14_safe_receiver = (!(tmp_15 == null) ? isArray(tmp_15) : false) ? tmp_15 : null;
4088
- var tmp_16;
4089
- if (tmp14_safe_receiver == null) {
4090
- tmp_16 = null;
4091
- } else {
4092
- // Inline function 'kotlin.collections.map' call
4093
- // Inline function 'kotlin.collections.mapTo' call
4094
- var destination_1 = ArrayList_init_$Create$_0(tmp14_safe_receiver.length);
4095
- var inductionVariable_1 = 0;
4096
- var last_1 = tmp14_safe_receiver.length;
4097
- while (inductionVariable_1 < last_1) {
4098
- var item_1 = tmp14_safe_receiver[inductionVariable_1];
4099
- inductionVariable_1 = inductionVariable_1 + 1 | 0;
4100
- // Inline function 'GameHelperImpl.mapRules.<anonymous>' call
4101
- var tmp$ret$10 = mapToCombinationType(item_1);
4102
- destination_1.e(tmp$ret$10);
4103
- }
4104
- tmp_16 = destination_1;
4105
- }
4106
- var tmp15_safe_receiver = tmp_16;
4107
- var tmp_17;
4108
- if (tmp15_safe_receiver == null) {
4109
- tmp_17 = null;
4110
- } else {
4111
- // Inline function 'kotlin.collections.toTypedArray' call
4112
- tmp_17 = copyToArray(tmp15_safe_receiver);
4113
- }
4114
- var tmp16_elvis_lhs = tmp_17;
4115
- var tmp_18;
4116
- if (tmp16_elvis_lhs == null) {
4117
- // Inline function 'kotlin.collections.toTypedArray' call
4118
- var this_1 = Companion_getInstance_1().debertzWithFirstCardCombinations;
4119
- tmp_18 = copyToArray(this_1);
4120
- } else {
4121
- tmp_18 = tmp16_elvis_lhs;
4122
- }
4123
- var tmp41_combinationsWithFirstCard = tmp_18;
4124
- var tmp_19 = map.g2('protectBella');
4125
- var tmp17_elvis_lhs = (!(tmp_19 == null) ? typeof tmp_19 === 'boolean' : false) ? tmp_19 : null;
4126
- var tmp42_protectBella = tmp17_elvis_lhs == null ? false : tmp17_elvis_lhs;
4127
- var tmp_20 = map.g2('oneTryToProtectBella');
4128
- var tmp18_elvis_lhs = (!(tmp_20 == null) ? typeof tmp_20 === 'boolean' : false) ? tmp_20 : null;
4129
- var tmp43_oneTryToProtectBella = tmp18_elvis_lhs == null ? false : tmp18_elvis_lhs;
4130
- var tmp_21 = map.g2('enableFourSevensCombination');
4131
- var tmp19_elvis_lhs = (!(tmp_21 == null) ? typeof tmp_21 === 'boolean' : false) ? tmp_21 : null;
4132
- var tmp44_enableFourSevensCombination = tmp19_elvis_lhs == null ? false : tmp19_elvis_lhs;
4133
- var tmp_22 = map.g2('enableTrumpSevenCombination');
4134
- var tmp20_elvis_lhs = (!(tmp_22 == null) ? typeof tmp_22 === 'boolean' : false) ? tmp_22 : null;
4135
- var tmp45_enableTrumpSevenCombination = tmp20_elvis_lhs == null ? false : tmp20_elvis_lhs;
4136
- var tmp_23 = map.g2('enableTrumpSevenCombinationAfterDistribution');
4137
- var tmp21_elvis_lhs = (!(tmp_23 == null) ? typeof tmp_23 === 'boolean' : false) ? tmp_23 : null;
4138
- var tmp46_enableTrumpSevenCombinationAfterDistribution = tmp21_elvis_lhs == null ? false : tmp21_elvis_lhs;
4139
- var tmp_24 = map.g2('checkTrumpCombination');
4140
- var tmp22_elvis_lhs = (!(tmp_24 == null) ? typeof tmp_24 === 'boolean' : false) ? tmp_24 : null;
4141
- var tmp47_checkTrumpCombination = tmp22_elvis_lhs == null ? false : tmp22_elvis_lhs;
4142
- var tmp_25 = map.g2('checkOnlyTrumpDebertz');
4143
- var tmp23_elvis_lhs = (!(tmp_25 == null) ? typeof tmp_25 === 'boolean' : false) ? tmp_25 : null;
4144
- var tmp48_checkOnlyTrumpDebertz = tmp23_elvis_lhs == null ? false : tmp23_elvis_lhs;
4145
- var tmp_26 = map.g2('distributePoints');
4146
- var tmp24_elvis_lhs = (!(tmp_26 == null) ? typeof tmp_26 === 'boolean' : false) ? tmp_26 : null;
4147
- var tmp49_distributePoints = tmp24_elvis_lhs == null ? false : tmp24_elvis_lhs;
4148
- var tmp_27 = map.g2('pointsDistributeMode');
4149
- var tmp25_safe_receiver = (!(tmp_27 == null) ? typeof tmp_27 === 'string' : false) ? tmp_27 : null;
4150
- var tmp26_elvis_lhs = tmp25_safe_receiver == null ? null : toPointsDistributeMode(tmp25_safe_receiver);
4151
- var tmp_28;
4152
- if (tmp26_elvis_lhs == null) {
4153
- var tmp_29;
4154
- var tmp_30 = map.g2('distributePoints');
4155
- if (((!(tmp_30 == null) ? typeof tmp_30 === 'boolean' : false) ? tmp_30 : null) === true) {
4156
- tmp_29 = PointsDistributeMode_ALL_getInstance();
4157
- } else {
4158
- tmp_29 = PointsDistributeMode_HIGHEST_PLAYER_getInstance();
4159
- }
4160
- tmp_28 = tmp_29;
4161
- } else {
4162
- tmp_28 = tmp26_elvis_lhs;
4163
- }
4164
- var tmp50_pointsDistributeMode = tmp_28;
4165
- var tmp_31 = map.g2('enableFineIfNoBribes');
4166
- var tmp27_elvis_lhs = (!(tmp_31 == null) ? typeof tmp_31 === 'boolean' : false) ? tmp_31 : null;
4167
- var tmp51_enableFineIfNoBribes = tmp27_elvis_lhs == null ? false : tmp27_elvis_lhs;
4168
- var tmp_32 = map.g2('fineIfNoBribes');
4169
- var tmp28_elvis_lhs = (!(tmp_32 == null) ? typeof tmp_32 === 'number' : false) ? tmp_32 : null;
4170
- var tmp52_fineIfNoBribes = tmp28_elvis_lhs == null ? 50 : tmp28_elvis_lhs;
4171
- var tmp_33 = map.g2('enableFineAfterThirdByte');
4172
- var tmp29_elvis_lhs = (!(tmp_33 == null) ? typeof tmp_33 === 'boolean' : false) ? tmp_33 : null;
4173
- var tmp53_enableFineAfterThirdFailedContract = tmp29_elvis_lhs == null ? false : tmp29_elvis_lhs;
4174
- var tmp_34 = map.g2('fineAfterThirdFailedContract');
4175
- var tmp30_elvis_lhs = (!(tmp_34 == null) ? typeof tmp_34 === 'number' : false) ? tmp_34 : null;
4176
- var tmp54_fineAfterThirdFailedContract = tmp30_elvis_lhs == null ? 100 : tmp30_elvis_lhs;
4177
- return new Rules(tmp31_needToPutHigherTrump, tmp32_playerWhoChooseSuitGoFirst, tmp33_winnerShuffleCards, tmp34_playWithoutLiabilities, tmp35_trumpCardGoToPlayerWhoShuffleCards, tmp37_dealerInitialCardsCount, tmp38_dealerFinalCardsCount, tmp36_dealerCounterClockwise, tmp39_contractTypes, tmp40_bidTypes, tmp41_combinationsWithFirstCard, tmp42_protectBella, tmp43_oneTryToProtectBella, tmp44_enableFourSevensCombination, tmp45_enableTrumpSevenCombination, tmp46_enableTrumpSevenCombinationAfterDistribution, tmp47_checkTrumpCombination, tmp48_checkOnlyTrumpDebertz, tmp49_distributePoints, tmp50_pointsDistributeMode, tmp53_enableFineAfterThirdFailedContract, tmp54_fineAfterThirdFailedContract, tmp51_enableFineIfNoBribes, tmp52_fineIfNoBribes);
4178
- };
4179
- protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
4180
- var map = mapOfObject(config);
4181
- var tmp = map.g2('limit');
4182
- var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
4183
- var tmp_0;
4184
- if (tmp0_safe_receiver == null) {
4185
- tmp_0 = null;
4186
- } else {
4187
- // Inline function 'kotlin.also' call
4188
- // Inline function 'kotlin.contracts.contract' call
4189
- // Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
4190
- validateLimit(this, tmp0_safe_receiver);
4191
- tmp_0 = tmp0_safe_receiver;
4192
- }
4193
- var limit = tmp_0;
4194
- var jsObject = prepareConfigObjectInternal(this, map);
4195
- jsObject['limit'] = limit == null ? 20 : limit;
4196
- return jsObject;
4197
- };
4198
- protoOf(GameHelperImpl).prepareConfigObject = function (config) {
4199
- var map = mapOfObject(config);
4200
- return prepareConfigObjectInternal(this, map);
4201
- };
4202
- protoOf(GameHelperImpl).isValidConfigObject = function (config) {
4203
- var map = mapOfObject(config);
4204
- var rules = map.g2('rules');
4205
- var tmp = getValue(map, 'players');
4206
- var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
4207
- var tmp_1 = getValue(map, 'points');
4208
- var tmp_2 = (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE();
4209
- var tmp_3 = getValue(map, 'timeoutTime');
4210
- var tmp_4 = (!(tmp_3 == null) ? typeof tmp_3 === 'number' : false) ? tmp_3 : THROW_CCE();
4211
- var tmp_5 = getValue(map, 'rulesPreset');
4212
- var tmp_6 = (!(tmp_5 == null) ? typeof tmp_5 === 'string' : false) ? tmp_5 : THROW_CCE();
4213
- var tmp_7;
4214
- if (rules != null && rules != undefined) {
4215
- tmp_7 = this.mapRules(rules);
4216
- } else {
4217
- tmp_7 = null;
4218
- }
4219
- return this.isValidConfig(tmp_0, tmp_2, tmp_4, tmp_6, tmp_7);
4220
- };
4221
- protoOf(GameHelperImpl).isValidConfig = function (players, points, timeoutTime, rulesPreset, rules) {
4222
- validatePoints(this, points);
4223
- validatePlayers(this, players);
4224
- validateTimeoutTime(this, timeoutTime);
4225
- validateRulesSetType(this, rulesPreset);
4226
- validateRules(this, rules);
4227
- return true;
4228
- };
4229
- protoOf(GameHelperImpl).getRulesByType = function (rulesSetType) {
4230
- var tmp;
4231
- switch (rulesSetType.n2_1) {
4232
- case 0:
4233
- tmp = Companion_instance_4.belot();
4234
- break;
4235
- case 1:
4236
- tmp = Companion_instance_4.klabor();
4237
- break;
4238
- case 2:
4239
- tmp = Companion_instance_4.debertzCommon();
4240
- break;
4241
- case 3:
4242
- tmp = Companion_instance_4.kharkiv();
4243
- break;
4244
- case 4:
4245
- tmp = Companion_instance_4.saltivka();
4246
- break;
4247
- case 5:
4248
- throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
4249
- default:
4250
- noWhenBranchMatchedException();
4251
- break;
4252
- }
4253
- return tmp;
4254
- };
4255
- protoOf(GameHelperImpl).getRulesByString = function (name) {
4256
- var tmp;
4257
- switch (name) {
4258
- case 'belot':
4259
- tmp = Companion_instance_4.belot();
4260
- break;
4261
- case 'klabor':
4262
- tmp = Companion_instance_4.klabor();
4263
- break;
4264
- case 'debertzCommon':
4265
- tmp = Companion_instance_4.debertzCommon();
4266
- break;
4267
- case 'debertzKharkiv':
4268
- tmp = Companion_instance_4.kharkiv();
4269
- break;
4270
- case 'custom':
4271
- throw IllegalStateException_init_$Create$("You can't use default custom rule, you need to provide own one");
4272
- default:
4273
- throw IllegalStateException_init_$Create$("Can't support this " + name);
4274
- }
4275
- return tmp;
4276
- };
4277
- protoOf(GameHelperImpl).mapRulesSetType = function (name) {
4278
- return valueOf(name);
4279
- };
4280
- function GameResources() {
4281
- }
4282
- var AvatarSet_ORIGIN_instance;
4283
- var AvatarSet_NOSTALGIA_instance;
4284
- function values() {
4285
- return [AvatarSet_ORIGIN_getInstance(), AvatarSet_NOSTALGIA_getInstance()];
4286
- }
4287
- var AvatarSet_entriesInitialized;
4288
- function AvatarSet_initEntries() {
4289
- if (AvatarSet_entriesInitialized)
4290
- return Unit_instance;
4291
- AvatarSet_entriesInitialized = true;
4292
- AvatarSet_ORIGIN_instance = new AvatarSet('ORIGIN', 0);
4293
- AvatarSet_NOSTALGIA_instance = new AvatarSet('NOSTALGIA', 1);
4294
- }
4295
- function getRandomAvatarData($this, existingNicknames) {
4296
- var tries = 0;
4297
- var data = getRandomAvatarData_0($this);
4298
- $l$loop: while (tries < 5) {
4299
- var nickname = getNicknameByIndex($this, data);
4300
- var tmp$ret$1;
4301
- $l$block: {
4302
- // Inline function 'kotlin.collections.none' call
4303
- var inductionVariable = 0;
4304
- var last = existingNicknames.length;
4305
- while (inductionVariable < last) {
4306
- var element = existingNicknames[inductionVariable];
4307
- inductionVariable = inductionVariable + 1 | 0;
4308
- // Inline function 'GameResourcesImpl.getRandomAvatarData.<anonymous>' call
4309
- if (element === nickname) {
4310
- tmp$ret$1 = false;
4311
- break $l$block;
4312
- }
4313
- }
4314
- tmp$ret$1 = true;
4315
- }
4316
- if (tmp$ret$1) {
4317
- break $l$loop;
4318
- }
4319
- data = getRandomAvatarData_0($this);
4320
- tries = tries + 1 | 0;
4321
- }
4322
- return data;
4323
- }
4324
- function getRandomAvatarData_0($this) {
4325
- var avatarSetNumber = Default_getInstance().og(values().length);
4326
- var avatarSet = values()[avatarSetNumber];
4327
- return new AvatarData(Default_getInstance().og(avatarSet.z9g()), avatarSet);
4328
- }
4329
- function getAvatarUrlByIndex($this, data) {
4330
- return mapToPattern($this, data);
4331
- }
4332
- function getNicknameByIndex($this, data) {
4333
- return data.b9h_1.c9h(data.a9h_1);
4334
- }
4335
- function mapToPattern($this, data) {
4336
- return 'debertz://raspberry.games/' + data.b9h_1.n2_1 + '/' + data.a9h_1;
4337
- }
4338
- function Companion_2() {
4339
- Companion_instance_12 = this;
4340
- this.d9h_1 = 'debertz://raspberry.games';
4341
- var tmp = this;
4342
- // Inline function 'kotlin.arrayOf' call
4343
- // Inline function 'kotlin.js.unsafeCast' call
4344
- // Inline function 'kotlin.js.asDynamic' call
4345
- tmp.e9h_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
4346
- var tmp_0 = this;
4347
- // Inline function 'kotlin.arrayOf' call
4348
- // Inline function 'kotlin.js.unsafeCast' call
4349
- // Inline function 'kotlin.js.asDynamic' call
4350
- tmp_0.f9h_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
4351
- var tmp_1 = this;
4352
- // Inline function 'kotlin.arrayOf' call
4353
- // Inline function 'kotlin.js.unsafeCast' call
4354
- // Inline function 'kotlin.js.asDynamic' call
4355
- tmp_1.g9h_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
4356
- var tmp_2 = this;
4357
- // Inline function 'kotlin.arrayOf' call
4358
- // Inline function 'kotlin.js.unsafeCast' call
4359
- // Inline function 'kotlin.js.asDynamic' call
4360
- tmp_2.h9h_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
4361
- }
4362
- var Companion_instance_12;
4363
- function Companion_getInstance_5() {
4364
- if (Companion_instance_12 == null)
4365
- new Companion_2();
4366
- return Companion_instance_12;
4367
- }
4368
- function AvatarSet(name, ordinal) {
4369
- Enum.call(this, name, ordinal);
4370
- }
4371
- protoOf(AvatarSet).z9g = function () {
4372
- var tmp;
4373
- switch (this.n2_1) {
4374
- case 0:
4375
- tmp = Companion_getInstance_5().f9h_1.length;
4376
- break;
4377
- case 1:
4378
- tmp = Companion_getInstance_5().h9h_1.length;
4379
- break;
4380
- default:
4381
- noWhenBranchMatchedException();
4382
- break;
4383
- }
4384
- return tmp;
4385
- };
4386
- protoOf(AvatarSet).c9h = function (index) {
4387
- var tmp;
4388
- switch (this.n2_1) {
4389
- case 0:
4390
- tmp = Companion_getInstance_5().f9h_1[index];
4391
- break;
4392
- case 1:
4393
- tmp = Companion_getInstance_5().h9h_1[index];
4394
- break;
4395
- default:
4396
- noWhenBranchMatchedException();
4397
- break;
4398
- }
4399
- return tmp;
4400
- };
4401
- function AvatarData(index, avatarSet) {
4402
- this.a9h_1 = index;
4403
- this.b9h_1 = avatarSet;
4404
- }
4405
- function AvatarSet_ORIGIN_getInstance() {
4406
- AvatarSet_initEntries();
4407
- return AvatarSet_ORIGIN_instance;
4408
- }
4409
- function AvatarSet_NOSTALGIA_getInstance() {
4410
- AvatarSet_initEntries();
4411
- return AvatarSet_NOSTALGIA_instance;
4412
- }
4413
- function GameResourcesImpl() {
4414
- Companion_getInstance_5();
4415
- }
4416
- protoOf(GameResourcesImpl).w9g = function (playerId, existingNicknames) {
4417
- var data = getRandomAvatarData(this, existingNicknames);
4418
- return new GameUserInfo(playerId, getNicknameByIndex(this, data), getAvatarUrlByIndex(this, data), true);
4419
- };
4420
- protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
4421
- // Inline function 'kotlin.collections.mutableListOf' call
4422
- var users = ArrayList_init_$Create$();
4423
- var inductionVariable = 0;
4424
- var last = playerIds.length;
4425
- while (inductionVariable < last) {
4426
- var playerId = playerIds[inductionVariable];
4427
- inductionVariable = inductionVariable + 1 | 0;
4428
- // Inline function 'kotlin.collections.toTypedArray' call
4429
- // Inline function 'kotlin.collections.map' call
4430
- // Inline function 'kotlin.collections.mapTo' call
4431
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(users, 10));
4432
- var tmp0_iterator = users.j();
4433
- while (tmp0_iterator.k()) {
4434
- var item = tmp0_iterator.l();
4435
- // Inline function 'GameResourcesImpl.createBotUsers.<anonymous>' call
4436
- var tmp$ret$1 = item.name;
4437
- destination.e(tmp$ret$1);
4438
- }
4439
- var tmp$ret$4 = copyToArray(destination);
4440
- var user = this.createBotUser(playerId, tmp$ret$4);
4441
- users.e(user);
4442
- }
4443
- // Inline function 'kotlin.collections.toTypedArray' call
4444
- return copyToArray(users);
4445
- };
4446
3366
  function GameEngineController() {
4447
3367
  }
4448
3368
  function createGameServerController(loggerCallback, randomOrgConfig) {
@@ -4451,30 +3371,30 @@
4451
3371
  }
4452
3372
  function _get_controllerLogger__nbd727($this) {
4453
3373
  // Inline function 'kotlin.getValue' call
4454
- var this_0 = $this.q9h_1;
3374
+ var this_0 = $this.w9h_1;
4455
3375
  controllerLogger$factory();
4456
3376
  return this_0.u();
4457
3377
  }
4458
3378
  function _get_di__ndbzja($this) {
4459
3379
  // Inline function 'kotlin.getValue' call
4460
- var this_0 = $this.r9h_1;
3380
+ var this_0 = $this.x9h_1;
4461
3381
  di$factory();
4462
3382
  return this_0.u();
4463
3383
  }
4464
3384
  function createDI($this, combinedLogger, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares, externalModule) {
4465
- var tmp = Companion_instance_5;
3385
+ var tmp = Companion_instance_3;
4466
3386
  return tmp.s5u(VOID, GameServerEngineControllerImpl$createDI$lambda(combinedLogger, externalModule, $this, coreConfig, serverConfig, logicConfig, botConfig, dealerConfig, externalReducers, externalMiddlewares));
4467
3387
  }
4468
3388
  function GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this$0) {
4469
3389
  return function () {
4470
3390
  var tmp;
4471
- if (this$0.o9h_1 == null) {
3391
+ if (this$0.u9h_1 == null) {
4472
3392
  tmp = null;
4473
3393
  } else {
4474
3394
  // Inline function 'kotlin.let' call
4475
3395
  // Inline function 'kotlin.contracts.contract' call
4476
3396
  // Inline function 'GameServerEngineControllerImpl.controllerLogger$delegate.<anonymous>.<anonymous>' call
4477
- tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.o9h_1)]));
3397
+ tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.u9h_1)]));
4478
3398
  }
4479
3399
  var tmp1_elvis_lhs = tmp;
4480
3400
  return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
@@ -4502,27 +3422,27 @@
4502
3422
  tmp_0.h5y(tmp$ret$3);
4503
3423
  $this$DI.l5u(jsonModule());
4504
3424
  $this$DI.l5u(serverHelpersModule());
4505
- $this$DI.l5u(randomOrgModule(this$0.p9h_1));
3425
+ $this$DI.l5u(randomOrgModule(this$0.v9h_1));
4506
3426
  return Unit_instance;
4507
3427
  };
4508
3428
  }
4509
3429
  function GameServerEngineControllerImpl$di$delegate$lambda(this$0) {
4510
3430
  return function () {
4511
- var tmp = Companion_instance_5;
3431
+ var tmp = Companion_instance_3;
4512
3432
  return tmp.s5u(VOID, GameServerEngineControllerImpl$di$delegate$lambda$lambda(this$0));
4513
3433
  };
4514
3434
  }
4515
3435
  function _no_name_provided__qut3iv_4($item) {
4516
- this.x9h_1 = $item;
3436
+ this.d9i_1 = $item;
4517
3437
  }
4518
3438
  protoOf(_no_name_provided__qut3iv_4).d6f = function (action) {
4519
3439
  return isInterface(action, Action);
4520
3440
  };
4521
- protoOf(_no_name_provided__qut3iv_4).f8z = function (state, action) {
4522
- return this.x9h_1(state, isInterface(action, Action) ? action : THROW_CCE());
3441
+ protoOf(_no_name_provided__qut3iv_4).h8z = function (state, action) {
3442
+ return this.d9i_1(state, isInterface(action, Action) ? action : THROW_CCE());
4523
3443
  };
4524
3444
  protoOf(_no_name_provided__qut3iv_4).v6g = function (state, action) {
4525
- return this.f8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
3445
+ return this.h8z((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
4526
3446
  };
4527
3447
  function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda$lambda($fileLoggerOutput) {
4528
3448
  return function ($this$singleton) {
@@ -4579,7 +3499,7 @@
4579
3499
  }
4580
3500
  function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0($gameServer) {
4581
3501
  return function (it) {
4582
- var tmp0_elvis_lhs = Companion_instance_6.b94(it);
3502
+ var tmp0_elvis_lhs = Companion_instance_4.d94(it);
4583
3503
  var tmp;
4584
3504
  if (tmp0_elvis_lhs == null) {
4585
3505
  var tmp1_safe_receiver = $gameServer.n67().y6l_1;
@@ -4592,7 +3512,7 @@
4592
3512
  }
4593
3513
  function GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1($gameServer) {
4594
3514
  return function (it) {
4595
- var tmp0_elvis_lhs = Companion_instance_7.m92(it);
3515
+ var tmp0_elvis_lhs = Companion_instance_5.o92(it);
4596
3516
  var tmp;
4597
3517
  if (tmp0_elvis_lhs == null) {
4598
3518
  var tmp1_safe_receiver = $gameServer.n67().y6l_1;
@@ -4614,7 +3534,7 @@
4614
3534
  // Inline function 'kotlin.contracts.contract' call
4615
3535
  $this$DI.l5u(tmp0_safe_receiver);
4616
3536
  }
4617
- $this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.p9h_1));
3537
+ $this$DI.l5u(dealerModule(this$0.randomPoolProvider, this$0.v9h_1));
4618
3538
  $this$DI.l5u(coreModule($coreConfig));
4619
3539
  $this$DI.l5u(createGameServerDI($serverConfig, $logicConfig, $botConfig, $dealerConfig, $externalReducers, $externalMiddlewares));
4620
3540
  return Unit_instance;
@@ -4623,76 +3543,76 @@
4623
3543
  function GameServerEngineControllerImpl(loggerCallback, randomOrgConfig, production) {
4624
3544
  loggerCallback = loggerCallback === VOID ? null : loggerCallback;
4625
3545
  production = production === VOID ? true : production;
4626
- this.o9h_1 = loggerCallback;
4627
- this.p9h_1 = randomOrgConfig;
3546
+ this.u9h_1 = loggerCallback;
3547
+ this.v9h_1 = randomOrgConfig;
4628
3548
  AppEnvironment_getInstance().g6l(production ? AppEnvironmentValue_PRODUCTION_getInstance() : AppEnvironmentValue_DEVELOPMENT_getInstance());
4629
3549
  var tmp = this;
4630
- tmp.q9h_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
3550
+ tmp.w9h_1 = lazy(GameServerEngineControllerImpl$controllerLogger$delegate$lambda(this));
4631
3551
  var tmp_0 = this;
4632
- tmp_0.r9h_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
3552
+ tmp_0.x9h_1 = lazy(GameServerEngineControllerImpl$di$delegate$lambda(this));
4633
3553
  var tmp_1 = this;
4634
3554
  // Inline function 'org.kodein.di.instance' call
4635
3555
  var this_0 = _get_di__ndbzja(this);
4636
3556
  // Inline function 'org.kodein.type.generic' call
4637
3557
  var tmp_2 = typeToken(createKType(getKClass(ParserHelper), arrayOf([]), false));
4638
3558
  var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
4639
- tmp_1.s9h_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
3559
+ tmp_1.y9h_1 = Instance(this_0, tmp$ret$0, null).e60(this, parser$factory());
4640
3560
  var tmp_3 = this;
4641
3561
  // Inline function 'org.kodein.di.instance' call
4642
3562
  var this_1 = _get_di__ndbzja(this);
4643
3563
  // Inline function 'org.kodein.type.generic' call
4644
3564
  var tmp_4 = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
4645
3565
  var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
4646
- tmp_3.t9h_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
3566
+ tmp_3.z9h_1 = Instance(this_1, tmp$ret$2, null).e60(this, helper$factory());
4647
3567
  var tmp_5 = this;
4648
3568
  // Inline function 'org.kodein.di.instance' call
4649
3569
  var this_2 = _get_di__ndbzja(this);
4650
3570
  // Inline function 'org.kodein.type.generic' call
4651
3571
  var tmp_6 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
4652
3572
  var tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
4653
- tmp_5.u9h_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
3573
+ tmp_5.a9i_1 = Instance(this_2, tmp$ret$4, null).e60(this, resources$factory());
4654
3574
  var tmp_7 = this;
4655
3575
  // Inline function 'org.kodein.di.instance' call
4656
3576
  var this_3 = _get_di__ndbzja(this);
4657
3577
  // Inline function 'org.kodein.type.generic' call
4658
3578
  var tmp_8 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
4659
3579
  var tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
4660
- tmp_7.v9h_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
3580
+ tmp_7.b9i_1 = Instance(this_3, tmp$ret$6, null).e60(this, test$factory());
4661
3581
  var tmp_9 = this;
4662
3582
  // Inline function 'org.kodein.di.instance' call
4663
3583
  var this_4 = _get_di__ndbzja(this);
4664
3584
  // Inline function 'org.kodein.type.generic' call
4665
3585
  var tmp_10 = typeToken(createKType(getKClass(RandomPoolProvider), arrayOf([]), false));
4666
3586
  var tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
4667
- tmp_9.w9h_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
3587
+ tmp_9.c9i_1 = Instance(this_4, tmp$ret$8, null).e60(this, randomPoolProvider$factory());
4668
3588
  }
4669
- protoOf(GameServerEngineControllerImpl).i9h = function () {
3589
+ protoOf(GameServerEngineControllerImpl).o9h = function () {
4670
3590
  // Inline function 'kotlin.getValue' call
4671
- var this_0 = this.s9h_1;
3591
+ var this_0 = this.y9h_1;
4672
3592
  parser$factory_0();
4673
3593
  return this_0.u();
4674
3594
  };
4675
- protoOf(GameServerEngineControllerImpl).k9h = function () {
3595
+ protoOf(GameServerEngineControllerImpl).q9h = function () {
4676
3596
  // Inline function 'kotlin.getValue' call
4677
- var this_0 = this.t9h_1;
3597
+ var this_0 = this.z9h_1;
4678
3598
  helper$factory_0();
4679
3599
  return this_0.u();
4680
3600
  };
4681
- protoOf(GameServerEngineControllerImpl).l9h = function () {
3601
+ protoOf(GameServerEngineControllerImpl).r9h = function () {
4682
3602
  // Inline function 'kotlin.getValue' call
4683
- var this_0 = this.u9h_1;
3603
+ var this_0 = this.a9i_1;
4684
3604
  resources$factory_0();
4685
3605
  return this_0.u();
4686
3606
  };
4687
- protoOf(GameServerEngineControllerImpl).j9h = function () {
3607
+ protoOf(GameServerEngineControllerImpl).p9h = function () {
4688
3608
  // Inline function 'kotlin.getValue' call
4689
- var this_0 = this.v9h_1;
3609
+ var this_0 = this.b9i_1;
4690
3610
  test$factory_0();
4691
3611
  return this_0.u();
4692
3612
  };
4693
- protoOf(GameServerEngineControllerImpl).m9h = function () {
3613
+ protoOf(GameServerEngineControllerImpl).s9h = function () {
4694
3614
  // Inline function 'kotlin.getValue' call
4695
- var this_0 = this.w9h_1;
3615
+ var this_0 = this.c9i_1;
4696
3616
  randomPoolProvider$factory_0();
4697
3617
  return this_0.u();
4698
3618
  };
@@ -4702,8 +3622,8 @@
4702
3622
  protoOf(GameServerEngineControllerImpl).createGameEngine = function () {
4703
3623
  return this.createGameEngineWithLogic();
4704
3624
  };
4705
- protoOf(GameServerEngineControllerImpl).n9h = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
4706
- var combinedLogger = Companion_instance_8.qm();
3625
+ protoOf(GameServerEngineControllerImpl).t9h = function (reducers, middlewares, serverConfig, logicConfig, dealerConfig, coreConfig) {
3626
+ var combinedLogger = Companion_instance_6.qm();
4707
3627
  var tmp;
4708
3628
  if (coreConfig.fileLogsEnabled) {
4709
3629
  tmp = new FileLoggerOutputImpl();
@@ -4712,8 +3632,8 @@
4712
3632
  }
4713
3633
  var fileLoggerOutput = tmp;
4714
3634
  var tmp_0;
4715
- if (!(this.o9h_1 == null)) {
4716
- tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.o9h_1));
3635
+ if (!(this.u9h_1 == null)) {
3636
+ tmp_0 = new CallbackWrapperLoggerOutput(new LoggerCallbacksWrapperLoggerOutput(this.u9h_1));
4717
3637
  } else {
4718
3638
  tmp_0 = null;
4719
3639
  }
@@ -4756,12 +3676,12 @@
4756
3676
  var gameServer = tmp_1.v5v(tmp$ret$7, null);
4757
3677
  if (!(fileLoggerOutput == null)) {
4758
3678
  var tmp_3 = fileLoggerOutput;
4759
- tmp_3.q93_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
3679
+ tmp_3.s93_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_0(gameServer);
4760
3680
  combinedLogger.sm(fileLoggerOutput);
4761
3681
  }
4762
3682
  if (!(callbackWrapperLoggerOutput == null)) {
4763
3683
  var tmp_4 = callbackWrapperLoggerOutput;
4764
- tmp_4.o92_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
3684
+ tmp_4.q92_1 = GameServerEngineControllerImpl$createGameEngineWithLogic$lambda_1(gameServer);
4765
3685
  combinedLogger.sm(callbackWrapperLoggerOutput);
4766
3686
  }
4767
3687
  return gameServer;
@@ -4826,58 +3746,17 @@
4826
3746
  return receiver.randomPoolProvider;
4827
3747
  }, null);
4828
3748
  }
4829
- function mapToRoom(_this__u8e3s4) {
4830
- // Inline function 'kotlin.takeIf' call
4831
- var this_0 = _this__u8e3s4.rules;
4832
- // Inline function 'kotlin.contracts.contract' call
4833
- var tmp;
4834
- // Inline function 'mapToRoom.<anonymous>' call
4835
- if (_this__u8e3s4.rulesSetType.isCustom) {
4836
- tmp = this_0;
4837
- } else {
4838
- tmp = null;
4839
- }
4840
- var tmp0_safe_receiver = tmp;
4841
- var tmp1_rules = tmp0_safe_receiver == null ? null : mapToDto(tmp0_safe_receiver);
4842
- var tmp2_rulesPreset = _this__u8e3s4.rulesSetType.value;
4843
- var tmp3_players = _this__u8e3s4.playersMode.value;
4844
- var tmp4_points = _this__u8e3s4.pointsMode.value;
4845
- var tmp5_timeoutTime = _this__u8e3s4.timeoutTimeMillis / 1000 | 0;
4846
- // Inline function 'kotlin.takeIf' call
4847
- var this_1 = _this__u8e3s4.isPrivate;
4848
- // Inline function 'kotlin.contracts.contract' call
4849
- var tmp_0;
4850
- // Inline function 'mapToRoom.<anonymous>' call
4851
- if (this_1) {
4852
- tmp_0 = this_1;
4853
- } else {
4854
- tmp_0 = null;
4855
- }
4856
- var tmp6_isPrivate = tmp_0;
4857
- // Inline function 'kotlin.takeIf' call
4858
- var this_2 = _this__u8e3s4.options.isEnableChat;
4859
- // Inline function 'kotlin.contracts.contract' call
4860
- var tmp_1;
4861
- // Inline function 'mapToRoom.<anonymous>' call
4862
- if (this_2) {
4863
- tmp_1 = this_2;
4864
- } else {
4865
- tmp_1 = null;
4866
- }
4867
- var tmp7_isChatEnabled = tmp_1;
4868
- return new RoomConfig(tmp3_players, tmp4_points, tmp5_timeoutTime, tmp2_rulesPreset, tmp6_isPrivate, tmp7_isChatEnabled, tmp1_rules);
4869
- }
4870
3749
  function TestHelper() {
4871
3750
  }
4872
3751
  function _get_playerAnswerInteractor__msggz1($this) {
4873
3752
  // Inline function 'kotlin.getValue' call
4874
- var this_0 = $this.a9i_1;
3753
+ var this_0 = $this.g9i_1;
4875
3754
  playerAnswerInteractor$factory_0();
4876
3755
  return this_0.u();
4877
3756
  }
4878
3757
  function TestHelperImpl$di$lambda$lambda(this$0) {
4879
3758
  return function ($this$singleton) {
4880
- return this$0.y9h_1;
3759
+ return this$0.e9i_1;
4881
3760
  };
4882
3761
  }
4883
3762
  function TestHelperImpl$di$lambda(this$0) {
@@ -4906,20 +3785,20 @@
4906
3785
  return emptyMap();
4907
3786
  }
4908
3787
  function TestHelperImpl(logger) {
4909
- this.y9h_1 = logger;
3788
+ this.e9i_1 = logger;
4910
3789
  var tmp = this;
4911
- var tmp_0 = Companion_instance_5;
4912
- tmp.z9h_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
3790
+ var tmp_0 = Companion_instance_3;
3791
+ tmp.f9i_1 = tmp_0.s5u(VOID, TestHelperImpl$di$lambda(this));
4913
3792
  var tmp_1 = this;
4914
3793
  // Inline function 'org.kodein.di.instance' call
4915
- var this_0 = this.z9h_1;
3794
+ var this_0 = this.f9i_1;
4916
3795
  // Inline function 'org.kodein.type.generic' call
4917
3796
  var tmp_2 = typeToken(createKType(getKClass(PlayerAnswerInteractor), arrayOf([]), false));
4918
3797
  var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
4919
- tmp_1.a9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
3798
+ tmp_1.g9i_1 = Instance(this_0, tmp$ret$0, null).e60(this, playerAnswerInteractor$factory());
4920
3799
  }
4921
3800
  protoOf(TestHelperImpl).getPlayerAnswer = function (table, playerId, botConfig) {
4922
- return _get_playerAnswerInteractor__msggz1(this).c8d(playerId, table, botConfig);
3801
+ return _get_playerAnswerInteractor__msggz1(this).e8d(playerId, table, botConfig);
4923
3802
  };
4924
3803
  protoOf(TestHelperImpl).getPlayerAnswerFromClientAction = function (table, currentPlayerId, action, botConfig) {
4925
3804
  var mechanicAction = mapFromClient(action, new FromClientActionPayloadProvider(currentPlayerId, TestHelperImpl$getPlayerAnswerFromClientAction$lambda));
@@ -4927,7 +3806,7 @@
4927
3806
  var tmp$ret$0;
4928
3807
  $l$block_0: {
4929
3808
  // Inline function 'kotlin.collections.any' call
4930
- var this_0 = mechanicAction.w8p();
3809
+ var this_0 = mechanicAction.y8p();
4931
3810
  var tmp;
4932
3811
  if (isInterface(this_0, Collection)) {
4933
3812
  tmp = this_0.p();
@@ -4960,7 +3839,7 @@
4960
3839
  var tmp$ret$0;
4961
3840
  $l$block_0: {
4962
3841
  // Inline function 'kotlin.collections.any' call
4963
- var this_0 = action.w8p();
3842
+ var this_0 = action.y8p();
4964
3843
  var tmp;
4965
3844
  if (isInterface(this_0, Collection)) {
4966
3845
  tmp = this_0.p();
@@ -5006,7 +3885,7 @@
5006
3885
  $this$Module.l5u(engineHelpersModule());
5007
3886
  // Inline function 'org.kodein.di.bind' call
5008
3887
  // Inline function 'org.kodein.type.generic' call
5009
- var tmp = typeToken(createKType(getKClass(GameHelper), arrayOf([]), false));
3888
+ var tmp = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
5010
3889
  var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
5011
3890
  var tmp_0 = $this$Module.j5u(tmp$ret$0, null, null);
5012
3891
  // Inline function 'org.kodein.di.singleton' call
@@ -5015,46 +3894,13 @@
5015
3894
  var tmp_2 = $this$Module.m5u();
5016
3895
  var tmp_3 = $this$Module.n5u();
5017
3896
  // Inline function 'org.kodein.type.generic' call
5018
- var tmp_4 = typeToken(createKType(getKClass(GameHelperImpl), arrayOf([]), false));
3897
+ var tmp_4 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
5019
3898
  var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
5020
3899
  var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
5021
3900
  tmp_0.h5y(tmp$ret$3);
5022
- // Inline function 'org.kodein.di.bind' call
5023
- // Inline function 'org.kodein.type.generic' call
5024
- var tmp_5 = typeToken(createKType(getKClass(TestHelper), arrayOf([]), false));
5025
- var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
5026
- var tmp_6 = $this$Module.j5u(tmp$ret$4, null, null);
5027
- // Inline function 'org.kodein.di.singleton' call
5028
- var creator_0 = serverHelpersModule$lambda$lambda_0;
5029
- var tmp_7 = $this$Module.o5u();
5030
- var tmp_8 = $this$Module.m5u();
5031
- var tmp_9 = $this$Module.n5u();
5032
- // Inline function 'org.kodein.type.generic' call
5033
- var tmp_10 = typeToken(createKType(getKClass(TestHelperImpl), arrayOf([]), false));
5034
- var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
5035
- var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
5036
- tmp_6.h5y(tmp$ret$7);
5037
- // Inline function 'org.kodein.di.bind' call
5038
- // Inline function 'org.kodein.type.generic' call
5039
- var tmp_11 = typeToken(createKType(getKClass(GameResources), arrayOf([]), false));
5040
- var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
5041
- var tmp_12 = $this$Module.j5u(tmp$ret$8, null, null);
5042
- // Inline function 'org.kodein.di.singleton' call
5043
- var creator_1 = serverHelpersModule$lambda$lambda_1;
5044
- var tmp_13 = $this$Module.o5u();
5045
- var tmp_14 = $this$Module.m5u();
5046
- var tmp_15 = $this$Module.n5u();
5047
- // Inline function 'org.kodein.type.generic' call
5048
- var tmp_16 = typeToken(createKType(getKClass(GameResourcesImpl), arrayOf([]), false));
5049
- var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
5050
- var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
5051
- tmp_12.h5y(tmp$ret$11);
5052
3901
  return Unit_instance;
5053
3902
  }
5054
3903
  function serverHelpersModule$lambda$lambda($this$singleton) {
5055
- return new GameHelperImpl();
5056
- }
5057
- function serverHelpersModule$lambda$lambda_0($this$singleton) {
5058
3904
  // Inline function 'org.kodein.di.instance' call
5059
3905
  var tmp = $this$singleton.w5v();
5060
3906
  // Inline function 'org.kodein.type.generic' call
@@ -5063,9 +3909,6 @@
5063
3909
  var tmp$ret$1 = tmp.v5v(tmp$ret$0, null);
5064
3910
  return new TestHelperImpl(tmp$ret$1);
5065
3911
  }
5066
- function serverHelpersModule$lambda$lambda_1($this$singleton) {
5067
- return new GameResourcesImpl();
5068
- }
5069
3912
  //region block: post-declaration
5070
3913
  protoOf(GameServer).roomOnCreate = roomOnCreate;
5071
3914
  protoOf(GameServer).roomOnDelete = roomOnDelete;
@@ -5094,28 +3937,27 @@
5094
3937
  defineProp(protoOf(RemoveSpectatorsAction), 'actionTag', function () {
5095
3938
  return this.u6e();
5096
3939
  });
5097
- protoOf(GameResourcesImpl).createBotUser = createBotUser;
5098
3940
  protoOf(GameServerEngineControllerImpl).createGameEngineWithLogic = createGameEngineWithLogic;
5099
3941
  defineProp(protoOf(GameServerEngineControllerImpl), 'parser', function () {
5100
- return this.i9h();
3942
+ return this.o9h();
5101
3943
  });
5102
3944
  defineProp(protoOf(GameServerEngineControllerImpl), 'helper', function () {
5103
- return this.k9h();
3945
+ return this.q9h();
5104
3946
  });
5105
3947
  defineProp(protoOf(GameServerEngineControllerImpl), 'resources', function () {
5106
- return this.l9h();
3948
+ return this.r9h();
5107
3949
  });
5108
3950
  defineProp(protoOf(GameServerEngineControllerImpl), 'test', function () {
5109
- return this.j9h();
3951
+ return this.p9h();
5110
3952
  });
5111
3953
  defineProp(protoOf(GameServerEngineControllerImpl), 'randomPoolProvider', function () {
5112
- return this.m9h();
3954
+ return this.s9h();
5113
3955
  });
5114
3956
  //endregion
5115
3957
  //region block: init
5116
- Companion_instance_9 = new Companion();
5117
- Companion_instance_10 = new Companion_0();
5118
- Companion_instance_11 = new Companion_1();
3958
+ Companion_instance_7 = new Companion();
3959
+ Companion_instance_8 = new Companion_0();
3960
+ Companion_instance_9 = new Companion_1();
5119
3961
  //endregion
5120
3962
  //region block: exports
5121
3963
  function $jsExportAll$(_) {