raspberry_games_engine_helpers 1.8.248

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.
Files changed (66) hide show
  1. package/Kosi-Kaverit-kaverit.js +339 -0
  2. package/Kosi-Kaverit-kaverit.js.map +1 -0
  3. package/Kosi-Kodein-kodein-di.js +2294 -0
  4. package/Kosi-Kodein-kodein-di.js.map +1 -0
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +6215 -0
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  7. package/Logic_Debertz-core.js +3907 -0
  8. package/Logic_Debertz-core.js.map +1 -0
  9. package/Logic_Debertz-engine.d.ts +1844 -0
  10. package/Logic_Debertz-engine.js +31732 -0
  11. package/Logic_Debertz-engine.js.map +1 -0
  12. package/kotlin-kotlin-stdlib.js +12753 -0
  13. package/kotlin-kotlin-stdlib.js.map +1 -0
  14. package/kotlin-kotlinx-atomicfu-runtime.js +15 -0
  15. package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
  16. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  17. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  18. package/kotlinx-atomicfu.js +15 -0
  19. package/kotlinx-atomicfu.js.map +1 -0
  20. package/kotlinx-coroutines-core.js +15 -0
  21. package/kotlinx-coroutines-core.js.map +1 -0
  22. package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
  23. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  24. package/kotlinx-io-kotlinx-io-core.js +275 -0
  25. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  26. package/kotlinx-serialization-kotlinx-serialization-core.js +6287 -0
  27. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  28. package/kotlinx-serialization-kotlinx-serialization-json.js +5078 -0
  29. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  30. package/ktor-ktor-client-content-negotiation.js +15 -0
  31. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  32. package/ktor-ktor-client-core.js +15 -0
  33. package/ktor-ktor-client-core.js.map +1 -0
  34. package/ktor-ktor-client-js.js +15 -0
  35. package/ktor-ktor-client-js.js.map +1 -0
  36. package/ktor-ktor-client-logging.js +15 -0
  37. package/ktor-ktor-client-logging.js.map +1 -0
  38. package/ktor-ktor-events.js +15 -0
  39. package/ktor-ktor-events.js.map +1 -0
  40. package/ktor-ktor-http.js +15 -0
  41. package/ktor-ktor-http.js.map +1 -0
  42. package/ktor-ktor-io.js +19 -0
  43. package/ktor-ktor-io.js.map +1 -0
  44. package/ktor-ktor-serialization-kotlinx-json.js +15 -0
  45. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  46. package/ktor-ktor-serialization-kotlinx.js +15 -0
  47. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  48. package/ktor-ktor-serialization.js +15 -0
  49. package/ktor-ktor-serialization.js.map +1 -0
  50. package/ktor-ktor-utils.js +19 -0
  51. package/ktor-ktor-utils.js.map +1 -0
  52. package/ktor-ktor-websocket-serialization.js +15 -0
  53. package/ktor-ktor-websocket-serialization.js.map +1 -0
  54. package/ktor-ktor-websockets.js +15 -0
  55. package/ktor-ktor-websockets.js.map +1 -0
  56. package/package.json +13 -0
  57. package/raspberry-cardgame-lib-core.js +529 -0
  58. package/raspberry-cardgame-lib-core.js.map +1 -0
  59. package/raspberry-cardgame-lib-logger.js +197 -0
  60. package/raspberry-cardgame-lib-logger.js.map +1 -0
  61. package/raspberry-cardgame-lib-random.js +560 -0
  62. package/raspberry-cardgame-lib-random.js.map +1 -0
  63. package/secure-random-secure-random.js +15 -0
  64. package/secure-random-secure-random.js.map +1 -0
  65. package/uuid.js +15 -0
  66. package/uuid.js.map +1 -0
@@ -0,0 +1,3907 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-io-kotlinx-io-core.js', './Kotlin-DateTime-library-kotlinx-datetime.js', './raspberry-cardgame-lib-core.js', './raspberry-cardgame-lib-logger.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.js'), require('./raspberry-cardgame-lib-core.js'), require('./raspberry-cardgame-lib-logger.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Logic_Debertz-core'.");
9
+ }
10
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'Logic_Debertz-core'.");
12
+ }
13
+ if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
14
+ throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'Logic_Debertz-core'.");
15
+ }
16
+ if (typeof globalThis['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
17
+ throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'Kotlin-DateTime-library-kotlinx-datetime' was not found. Please, check whether 'Kotlin-DateTime-library-kotlinx-datetime' is loaded prior to 'Logic_Debertz-core'.");
18
+ }
19
+ if (typeof globalThis['raspberry-cardgame-lib-core'] === 'undefined') {
20
+ throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'raspberry-cardgame-lib-core' was not found. Please, check whether 'raspberry-cardgame-lib-core' is loaded prior to 'Logic_Debertz-core'.");
21
+ }
22
+ if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
23
+ throw new Error("Error loading module 'Logic_Debertz-core'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'Logic_Debertz-core'.");
24
+ }
25
+ globalThis['Logic_Debertz-core'] = factory(typeof globalThis['Logic_Debertz-core'] === 'undefined' ? {} : globalThis['Logic_Debertz-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-io-kotlinx-io-core'], globalThis['Kotlin-DateTime-library-kotlinx-datetime'], globalThis['raspberry-cardgame-lib-core'], globalThis['raspberry-cardgame-lib-logger']);
26
+ }
27
+ }(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, kotlin_io_raspberryapps_cardgame_core, kotlin_io_raspberryapps_cardgame_logger) {
28
+ 'use strict';
29
+ //region block: imports
30
+ var imul = Math.imul;
31
+ var protoOf = kotlin_kotlin.$_$.o9;
32
+ var initMetadataForObject = kotlin_kotlin.$_$.w8;
33
+ var defineProp = kotlin_kotlin.$_$.j8;
34
+ var getKClass = kotlin_kotlin.$_$.e;
35
+ var ObjectSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
36
+ var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
37
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
38
+ var lazy = kotlin_kotlin.$_$.ad;
39
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
40
+ var initMetadataForCompanion = kotlin_kotlin.$_$.s8;
41
+ var VOID = kotlin_kotlin.$_$.f;
42
+ var initMetadataForClass = kotlin_kotlin.$_$.r8;
43
+ var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
44
+ var THROW_CCE = kotlin_kotlin.$_$.hc;
45
+ var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
46
+ var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
47
+ var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
48
+ var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
49
+ var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
50
+ var Unit_instance = kotlin_kotlin.$_$.j4;
51
+ var objectCreate = kotlin_kotlin.$_$.n9;
52
+ var getStringHashCode = kotlin_kotlin.$_$.p8;
53
+ var replace = kotlin_kotlin.$_$.xa;
54
+ var get_SystemTemporaryDirectory = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
55
+ var getBooleanHashCode = kotlin_kotlin.$_$.m8;
56
+ var initMetadataForInterface = kotlin_kotlin.$_$.u8;
57
+ var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
58
+ var THROW_IAE = kotlin_kotlin.$_$.ic;
59
+ var enumEntries = kotlin_kotlin.$_$.z7;
60
+ var Enum = kotlin_kotlin.$_$.ac;
61
+ var Exception = kotlin_kotlin.$_$.bc;
62
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.b1;
63
+ var captureStack = kotlin_kotlin.$_$.d8;
64
+ var toString = kotlin_kotlin.$_$.gd;
65
+ var listOfNotNull = kotlin_kotlin.$_$.t6;
66
+ var joinToString = kotlin_kotlin.$_$.l6;
67
+ var getNumberHashCode = kotlin_kotlin.$_$.n8;
68
+ var hashCode = kotlin_kotlin.$_$.q8;
69
+ var equals = kotlin_kotlin.$_$.k8;
70
+ var toString_0 = kotlin_kotlin.$_$.s9;
71
+ var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
72
+ var Companion_getInstance = kotlin_kotlin.$_$.a4;
73
+ var Duration = kotlin_kotlin.$_$.pb;
74
+ var Duration__plus_impl_yu9v8f = kotlin_kotlin.$_$.w1;
75
+ var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.s1;
76
+ var round = kotlin_kotlin.$_$.t9;
77
+ var numberToInt = kotlin_kotlin.$_$.l9;
78
+ var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.y1;
79
+ var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.r1;
80
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g1;
81
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
82
+ var GameCard = kotlin_io_raspberryapps_cardgame_core.$_$.d;
83
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.cd;
84
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.e5;
85
+ var mapCapacity = kotlin_kotlin.$_$.w6;
86
+ var coerceAtLeast = kotlin_kotlin.$_$.v9;
87
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
88
+ var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
89
+ var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
90
+ var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
91
+ var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
92
+ var getKClassFromExpression = kotlin_kotlin.$_$.d;
93
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
94
+ var checkIndexOverflow = kotlin_kotlin.$_$.d5;
95
+ var single = kotlin_kotlin.$_$.h7;
96
+ var copyToArray = kotlin_kotlin.$_$.s5;
97
+ var LoggerOutput = kotlin_io_raspberryapps_cardgame_logger.$_$.a;
98
+ var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.b;
99
+ var Companion_getInstance_0 = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.d;
100
+ var toLocalDateTime = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.f;
101
+ var charSequenceLength = kotlin_kotlin.$_$.g8;
102
+ //endregion
103
+ //region block: pre-declaration
104
+ initMetadataForObject(GameEngineConfig, 'GameEngineConfig');
105
+ initMetadataForCompanion(Companion, VOID, [SerializerFactory]);
106
+ initMetadataForClass(ContinueGameReason, 'ContinueGameReason', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_1});
107
+ initMetadataForCompanion(Companion_0);
108
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
109
+ initMetadataForClass(PlayerReturnsReason, 'PlayerReturnsReason', VOID, ContinueGameReason, VOID, VOID, VOID, {0: $serializer_getInstance});
110
+ initMetadataForObject(RestartRoundReason, 'RestartRoundReason', VOID, ContinueGameReason, [ContinueGameReason, SerializerFactory], VOID, VOID, {0: RestartRoundReason_getInstance});
111
+ initMetadataForCompanion(Companion_1);
112
+ initMetadataForClass(CoreConfig, 'CoreConfig', CoreConfig);
113
+ initMetadataForObject(RestartGameReason, 'RestartGameReason', VOID, VOID, [SerializerFactory], VOID, VOID, {0: RestartGameReason_getInstance});
114
+ initMetadataForClass(TerminationGameReason, 'TerminationGameReason');
115
+ initMetadataForInterface(FinishPlayerReason, 'FinishPlayerReason');
116
+ initMetadataForClass(PlayerLostConnectionReason, 'PlayerLostConnectionReason', VOID, TerminationGameReason, [TerminationGameReason, FinishPlayerReason]);
117
+ initMetadataForClass(PlayerTimeoutReason, 'PlayerTimeoutReason', VOID, TerminationGameReason, [TerminationGameReason, FinishPlayerReason]);
118
+ initMetadataForClass(PlayerExitReason, 'PlayerExitReason', VOID, TerminationGameReason, [TerminationGameReason, FinishPlayerReason]);
119
+ initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
120
+ initMetadataForClass(Reason, 'Reason', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_4});
121
+ initMetadataForClass(GameFinishedReason, 'GameFinishedReason', VOID, TerminationGameReason);
122
+ initMetadataForCompanion(Companion_3, VOID, [SerializerFactory]);
123
+ initMetadataForClass(Reason_0, 'Reason', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_5});
124
+ initMetadataForClass(GameErrorReason, 'GameErrorReason', VOID, TerminationGameReason);
125
+ initMetadataForObject(WaitingForConnectionReason, 'WaitingForConnectionReason', VOID, TerminationGameReason);
126
+ initMetadataForObject(ProcessingReason, 'ProcessingReason', VOID, TerminationGameReason);
127
+ initMetadataForClass(MechanicException, 'MechanicException', VOID, Exception);
128
+ initMetadataForInterface(PlayerIdContract, 'PlayerIdContract');
129
+ initMetadataForClass(GameUserInfo, 'GameUserInfo', VOID, VOID, [PlayerIdContract]);
130
+ initMetadataForClass(PlayerIndex, 'PlayerIndex', VOID, VOID, [PlayerIdContract]);
131
+ initMetadataForCompanion(Companion_4);
132
+ initMetadataForClass(PlayerConnection, 'PlayerConnection');
133
+ initMetadataForCompanion(Companion_5, VOID, [SerializerFactory]);
134
+ initMetadataForClass(PlayerConnectionState, 'PlayerConnectionState', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_7});
135
+ initMetadataForCompanion(Companion_6, VOID, [SerializerFactory]);
136
+ initMetadataForClass(PlayerWaitingState, 'PlayerWaitingState', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_8});
137
+ initMetadataForCompanion(Companion_7);
138
+ initMetadataForClass(PlayerState, 'PlayerState');
139
+ initMetadataForClass(Team, 'Team');
140
+ initMetadataForCompanion(Companion_8, VOID, [SerializerFactory]);
141
+ initMetadataForClass(TerminationGameReasonDto, 'TerminationGameReasonDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_10});
142
+ initMetadataForObject(ProcessingReasonDto, 'ProcessingReasonDto', VOID, TerminationGameReasonDto, [TerminationGameReasonDto, SerializerFactory], VOID, VOID, {0: ProcessingReasonDto_getInstance});
143
+ initMetadataForCompanion(Companion_9);
144
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
145
+ initMetadataForClass(GameErrorReasonDto, 'GameErrorReasonDto', VOID, TerminationGameReasonDto, VOID, VOID, VOID, {0: $serializer_getInstance_0});
146
+ initMetadataForCompanion(Companion_10);
147
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
148
+ initMetadataForClass(GameFinishedReasonDto, 'GameFinishedReasonDto', VOID, TerminationGameReasonDto, VOID, VOID, VOID, {0: $serializer_getInstance_1});
149
+ initMetadataForCompanion(Companion_11);
150
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
151
+ initMetadataForClass(PlayerExitReasonDto, 'PlayerExitReasonDto', VOID, TerminationGameReasonDto, VOID, VOID, VOID, {0: $serializer_getInstance_2});
152
+ initMetadataForCompanion(Companion_12);
153
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
154
+ initMetadataForClass(PlayerLostConnectionReasonDto, 'PlayerLostConnectionReasonDto', VOID, TerminationGameReasonDto, VOID, VOID, VOID, {0: $serializer_getInstance_3});
155
+ initMetadataForCompanion(Companion_13);
156
+ initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
157
+ initMetadataForClass(PlayerTimeoutReasonDto, 'PlayerTimeoutReasonDto', VOID, TerminationGameReasonDto, VOID, VOID, VOID, {0: $serializer_getInstance_4});
158
+ initMetadataForObject(WaitingForConnectionReasonDto, 'WaitingForConnectionReasonDto', VOID, TerminationGameReasonDto, [TerminationGameReasonDto, SerializerFactory], VOID, VOID, {0: WaitingForConnectionReasonDto_getInstance});
159
+ initMetadataForCompanion(Companion_14);
160
+ initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
161
+ initMetadataForClass(GameUserInfoDto, 'GameUserInfoDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_5});
162
+ initMetadataForCompanion(Companion_15);
163
+ initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
164
+ initMetadataForClass(RulesDto, 'RulesDto', RulesDto, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_6});
165
+ function get_actionTag() {
166
+ return toString_0(getKClassFromExpression(this));
167
+ }
168
+ initMetadataForInterface(Action, 'Action');
169
+ initMetadataForInterface(BufferedAction, 'BufferedAction', VOID, VOID, [Action]);
170
+ initMetadataForInterface(IgnoreBufferForAction, 'IgnoreBufferForAction', VOID, VOID, [Action]);
171
+ initMetadataForInterface(ReleaseBufferTriggerAction, 'ReleaseBufferTriggerAction', VOID, VOID, [Action]);
172
+ function notValidateWhenFinished() {
173
+ return true;
174
+ }
175
+ initMetadataForInterface(NotValidateIfGameFinished, 'NotValidateIfGameFinished');
176
+ function notValidateWhenFinishing() {
177
+ return true;
178
+ }
179
+ initMetadataForInterface(NotValidateIfGameFinishing, 'NotValidateIfGameFinishing');
180
+ initMetadataForInterface(Store, 'Store');
181
+ initMetadataForCompanion(Companion_16, VOID, [SerializerFactory]);
182
+ initMetadataForClass(LogType, 'LogType', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_18});
183
+ function observe(types, $super) {
184
+ var tmp;
185
+ if (types === VOID) {
186
+ // Inline function 'kotlin.collections.toTypedArray' call
187
+ var this_0 = get_entries_1();
188
+ tmp = copyToArray(this_0);
189
+ } else {
190
+ tmp = types;
191
+ }
192
+ types = tmp;
193
+ return this.z2a(types);
194
+ }
195
+ initMetadataForInterface(ObservableLoggerOutput, 'ObservableLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
196
+ initMetadataForCompanion(Companion_17);
197
+ initMetadataForObject($serializer_7, '$serializer', VOID, VOID, [GeneratedSerializer]);
198
+ initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_7});
199
+ //endregion
200
+ function GameEngineConfig() {
201
+ this.version = '1.8.248';
202
+ }
203
+ protoOf(GameEngineConfig).t24 = function () {
204
+ return this.version;
205
+ };
206
+ var GameEngineConfig_instance;
207
+ function GameEngineConfig_getInstance() {
208
+ return GameEngineConfig_instance;
209
+ }
210
+ function _get_$cachedSerializer__te6jhj($this) {
211
+ return $this.h25_1.a2();
212
+ }
213
+ function ContinueGameReason$Companion$_anonymous__g3m3ym() {
214
+ var tmp = getKClass(ContinueGameReason);
215
+ // Inline function 'kotlin.arrayOf' call
216
+ // Inline function 'kotlin.js.unsafeCast' call
217
+ // Inline function 'kotlin.js.asDynamic' call
218
+ var tmp_0 = [getKClass(PlayerReturnsReason), getKClass(RestartRoundReason)];
219
+ // Inline function 'kotlin.arrayOf' call
220
+ var tmp_1 = $serializer_getInstance();
221
+ var tmp_2 = RestartRoundReason_getInstance();
222
+ // Inline function 'kotlin.arrayOf' call
223
+ // Inline function 'kotlin.js.unsafeCast' call
224
+ // Inline function 'kotlin.js.asDynamic' call
225
+ var tmp$ret$5 = [];
226
+ // Inline function 'kotlin.js.unsafeCast' call
227
+ // Inline function 'kotlin.js.asDynamic' call
228
+ var tmp_3 = [tmp_1, ObjectSerializer_init_$Create$('RESTART_ROUND', tmp_2, tmp$ret$5)];
229
+ // Inline function 'kotlin.arrayOf' call
230
+ // Inline function 'kotlin.js.unsafeCast' call
231
+ // Inline function 'kotlin.js.asDynamic' call
232
+ var tmp$ret$11 = [];
233
+ return SealedClassSerializer_init_$Create$('com.logic.data.models.ContinueGameReason', tmp, tmp_0, tmp_3, tmp$ret$11);
234
+ }
235
+ function Companion() {
236
+ Companion_instance = this;
237
+ var tmp = this;
238
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
239
+ tmp.h25_1 = lazy(tmp_0, ContinueGameReason$Companion$_anonymous__g3m3ym);
240
+ }
241
+ protoOf(Companion).d17 = function () {
242
+ return _get_$cachedSerializer__te6jhj(this);
243
+ };
244
+ protoOf(Companion).mv = function (typeParamsSerializers) {
245
+ return this.d17();
246
+ };
247
+ var Companion_instance;
248
+ function Companion_getInstance_1() {
249
+ if (Companion_instance == null)
250
+ new Companion();
251
+ return Companion_instance;
252
+ }
253
+ function ContinueGameReason_init_$Init$(seen0, serializationConstructorMarker, $this) {
254
+ return $this;
255
+ }
256
+ function ContinueGameReason() {
257
+ Companion_getInstance_1();
258
+ }
259
+ function Companion_0() {
260
+ }
261
+ var Companion_instance_0;
262
+ function Companion_getInstance_2() {
263
+ return Companion_instance_0;
264
+ }
265
+ function $serializer() {
266
+ $serializer_instance = this;
267
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('PLAYER_RETURNS', this, 1);
268
+ tmp0_serialDesc.mu('playerId', false);
269
+ this.i25_1 = tmp0_serialDesc;
270
+ }
271
+ protoOf($serializer).j25 = function (encoder, value) {
272
+ var tmp0_desc = this.i25_1;
273
+ var tmp1_output = encoder.wm(tmp0_desc);
274
+ tmp1_output.lo(tmp0_desc, 0, value.k25_1);
275
+ tmp1_output.xm(tmp0_desc);
276
+ };
277
+ protoOf($serializer).oj = function (encoder, value) {
278
+ return this.j25(encoder, value instanceof PlayerReturnsReason ? value : THROW_CCE());
279
+ };
280
+ protoOf($serializer).pj = function (decoder) {
281
+ var tmp0_desc = this.i25_1;
282
+ var tmp1_flag = true;
283
+ var tmp2_index = 0;
284
+ var tmp3_bitMask0 = 0;
285
+ var tmp4_local0 = null;
286
+ var tmp5_input = decoder.wm(tmp0_desc);
287
+ if (tmp5_input.mn()) {
288
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
289
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
290
+ } else
291
+ while (tmp1_flag) {
292
+ tmp2_index = tmp5_input.nn(tmp0_desc);
293
+ switch (tmp2_index) {
294
+ case -1:
295
+ tmp1_flag = false;
296
+ break;
297
+ case 0:
298
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
299
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
300
+ break;
301
+ default:
302
+ throw UnknownFieldException_init_$Create$(tmp2_index);
303
+ }
304
+ }
305
+ tmp5_input.xm(tmp0_desc);
306
+ return PlayerReturnsReason_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
307
+ };
308
+ protoOf($serializer).nj = function () {
309
+ return this.i25_1;
310
+ };
311
+ protoOf($serializer).bv = function () {
312
+ // Inline function 'kotlin.arrayOf' call
313
+ // Inline function 'kotlin.js.unsafeCast' call
314
+ // Inline function 'kotlin.js.asDynamic' call
315
+ return [StringSerializer_getInstance()];
316
+ };
317
+ var $serializer_instance;
318
+ function $serializer_getInstance() {
319
+ if ($serializer_instance == null)
320
+ new $serializer();
321
+ return $serializer_instance;
322
+ }
323
+ function PlayerReturnsReason_init_$Init$(seen0, playerId, serializationConstructorMarker, $this) {
324
+ if (!(1 === (1 & seen0))) {
325
+ throwMissingFieldException(seen0, 1, $serializer_getInstance().i25_1);
326
+ }
327
+ ContinueGameReason_init_$Init$(seen0, serializationConstructorMarker, $this);
328
+ $this.k25_1 = playerId;
329
+ return $this;
330
+ }
331
+ function PlayerReturnsReason_init_$Create$(seen0, playerId, serializationConstructorMarker) {
332
+ return PlayerReturnsReason_init_$Init$(seen0, playerId, serializationConstructorMarker, objectCreate(protoOf(PlayerReturnsReason)));
333
+ }
334
+ function PlayerReturnsReason(playerId) {
335
+ ContinueGameReason.call(this);
336
+ this.k25_1 = playerId;
337
+ }
338
+ protoOf(PlayerReturnsReason).toString = function () {
339
+ return 'PlayerReturnsReason(playerId=' + this.k25_1 + ')';
340
+ };
341
+ protoOf(PlayerReturnsReason).hashCode = function () {
342
+ return getStringHashCode(this.k25_1);
343
+ };
344
+ protoOf(PlayerReturnsReason).equals = function (other) {
345
+ if (this === other)
346
+ return true;
347
+ if (!(other instanceof PlayerReturnsReason))
348
+ return false;
349
+ var tmp0_other_with_cast = other instanceof PlayerReturnsReason ? other : THROW_CCE();
350
+ if (!(this.k25_1 === tmp0_other_with_cast.k25_1))
351
+ return false;
352
+ return true;
353
+ };
354
+ function _get_$cachedSerializer__te6jhj_0($this) {
355
+ return $this.l25_1.a2();
356
+ }
357
+ function RestartRoundReason$_anonymous__2hwtqk() {
358
+ var tmp = RestartRoundReason_getInstance();
359
+ // Inline function 'kotlin.arrayOf' call
360
+ // Inline function 'kotlin.js.unsafeCast' call
361
+ // Inline function 'kotlin.js.asDynamic' call
362
+ var tmp$ret$2 = [];
363
+ return ObjectSerializer_init_$Create$('RESTART_ROUND', tmp, tmp$ret$2);
364
+ }
365
+ function RestartRoundReason() {
366
+ RestartRoundReason_instance = this;
367
+ ContinueGameReason.call(this);
368
+ var tmp = this;
369
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
370
+ tmp.l25_1 = lazy(tmp_0, RestartRoundReason$_anonymous__2hwtqk);
371
+ }
372
+ protoOf(RestartRoundReason).d17 = function () {
373
+ return _get_$cachedSerializer__te6jhj_0(this);
374
+ };
375
+ protoOf(RestartRoundReason).mv = function (typeParamsSerializers) {
376
+ return this.d17();
377
+ };
378
+ protoOf(RestartRoundReason).toString = function () {
379
+ return 'RestartRoundReason';
380
+ };
381
+ protoOf(RestartRoundReason).hashCode = function () {
382
+ return 1970706848;
383
+ };
384
+ protoOf(RestartRoundReason).equals = function (other) {
385
+ if (this === other)
386
+ return true;
387
+ if (!(other instanceof RestartRoundReason))
388
+ return false;
389
+ other instanceof RestartRoundReason || THROW_CCE();
390
+ return true;
391
+ };
392
+ var RestartRoundReason_instance;
393
+ function RestartRoundReason_getInstance() {
394
+ if (RestartRoundReason_instance == null)
395
+ new RestartRoundReason();
396
+ return RestartRoundReason_instance;
397
+ }
398
+ function Companion_1() {
399
+ }
400
+ protoOf(Companion_1).m25 = function (fileLogsEnabled, logsDirectoryPath, fileNameFormat) {
401
+ return new CoreConfig(fileLogsEnabled, false, logsDirectoryPath, fileNameFormat);
402
+ };
403
+ protoOf(Companion_1).getClientEngineTestMode = function (fileLogsEnabled, logsDirectoryPath, fileNameFormat, $super) {
404
+ fileNameFormat = fileNameFormat === VOID ? 'user_[uid].txt' : fileNameFormat;
405
+ return this.m25(fileLogsEnabled, logsDirectoryPath, fileNameFormat);
406
+ };
407
+ protoOf(Companion_1).formatter = function (segment, gameId, roomId, userId) {
408
+ return replace(replace(replace(segment, '[gid]', gameId), '[rid]', roomId), '[uid]', userId);
409
+ };
410
+ var Companion_instance_1;
411
+ function Companion_getInstance_3() {
412
+ return Companion_instance_1;
413
+ }
414
+ function CoreConfig(fileLogsEnabled, deleteFilesOnClear, logsDirectoryPath, fileNameFormat) {
415
+ fileLogsEnabled = fileLogsEnabled === VOID ? false : fileLogsEnabled;
416
+ deleteFilesOnClear = deleteFilesOnClear === VOID ? false : deleteFilesOnClear;
417
+ logsDirectoryPath = logsDirectoryPath === VOID ? null : logsDirectoryPath;
418
+ fileNameFormat = fileNameFormat === VOID ? '[gid]_logs.txt' : fileNameFormat;
419
+ this.fileLogsEnabled = fileLogsEnabled;
420
+ this.deleteFilesOnClear = deleteFilesOnClear;
421
+ this.logsDirectoryPath = logsDirectoryPath;
422
+ this.fileNameFormat = fileNameFormat;
423
+ }
424
+ protoOf(CoreConfig).n25 = function () {
425
+ return this.fileLogsEnabled;
426
+ };
427
+ protoOf(CoreConfig).o25 = function () {
428
+ return this.deleteFilesOnClear;
429
+ };
430
+ protoOf(CoreConfig).p25 = function () {
431
+ return this.logsDirectoryPath;
432
+ };
433
+ protoOf(CoreConfig).q25 = function () {
434
+ return this.fileNameFormat;
435
+ };
436
+ protoOf(CoreConfig).r25 = function () {
437
+ var tmp0_elvis_lhs = this.logsDirectoryPath;
438
+ return tmp0_elvis_lhs == null ? get_SystemTemporaryDirectory().toString() : tmp0_elvis_lhs;
439
+ };
440
+ protoOf(CoreConfig).zc = function () {
441
+ return this.fileLogsEnabled;
442
+ };
443
+ protoOf(CoreConfig).ad = function () {
444
+ return this.deleteFilesOnClear;
445
+ };
446
+ protoOf(CoreConfig).sg = function () {
447
+ return this.logsDirectoryPath;
448
+ };
449
+ protoOf(CoreConfig).t1w = function () {
450
+ return this.fileNameFormat;
451
+ };
452
+ protoOf(CoreConfig).s25 = function (fileLogsEnabled, deleteFilesOnClear, logsDirectoryPath, fileNameFormat) {
453
+ return new CoreConfig(fileLogsEnabled, deleteFilesOnClear, logsDirectoryPath, fileNameFormat);
454
+ };
455
+ protoOf(CoreConfig).copy = function (fileLogsEnabled, deleteFilesOnClear, logsDirectoryPath, fileNameFormat, $super) {
456
+ fileLogsEnabled = fileLogsEnabled === VOID ? this.fileLogsEnabled : fileLogsEnabled;
457
+ deleteFilesOnClear = deleteFilesOnClear === VOID ? this.deleteFilesOnClear : deleteFilesOnClear;
458
+ logsDirectoryPath = logsDirectoryPath === VOID ? this.logsDirectoryPath : logsDirectoryPath;
459
+ fileNameFormat = fileNameFormat === VOID ? this.fileNameFormat : fileNameFormat;
460
+ return this.s25(fileLogsEnabled, deleteFilesOnClear, logsDirectoryPath, fileNameFormat);
461
+ };
462
+ protoOf(CoreConfig).toString = function () {
463
+ return 'CoreConfig(fileLogsEnabled=' + this.fileLogsEnabled + ', deleteFilesOnClear=' + this.deleteFilesOnClear + ', logsDirectoryPath=' + this.logsDirectoryPath + ', fileNameFormat=' + this.fileNameFormat + ')';
464
+ };
465
+ protoOf(CoreConfig).hashCode = function () {
466
+ var result = getBooleanHashCode(this.fileLogsEnabled);
467
+ result = imul(result, 31) + getBooleanHashCode(this.deleteFilesOnClear) | 0;
468
+ result = imul(result, 31) + (this.logsDirectoryPath == null ? 0 : getStringHashCode(this.logsDirectoryPath)) | 0;
469
+ result = imul(result, 31) + getStringHashCode(this.fileNameFormat) | 0;
470
+ return result;
471
+ };
472
+ protoOf(CoreConfig).equals = function (other) {
473
+ if (this === other)
474
+ return true;
475
+ if (!(other instanceof CoreConfig))
476
+ return false;
477
+ var tmp0_other_with_cast = other instanceof CoreConfig ? other : THROW_CCE();
478
+ if (!(this.fileLogsEnabled === tmp0_other_with_cast.fileLogsEnabled))
479
+ return false;
480
+ if (!(this.deleteFilesOnClear === tmp0_other_with_cast.deleteFilesOnClear))
481
+ return false;
482
+ if (!(this.logsDirectoryPath == tmp0_other_with_cast.logsDirectoryPath))
483
+ return false;
484
+ if (!(this.fileNameFormat === tmp0_other_with_cast.fileNameFormat))
485
+ return false;
486
+ return true;
487
+ };
488
+ function _get_$cachedSerializer__te6jhj_1($this) {
489
+ return $this.t25_1.a2();
490
+ }
491
+ function RestartGameReason$_anonymous__zfkhim() {
492
+ var tmp = RestartGameReason_getInstance();
493
+ // Inline function 'kotlin.arrayOf' call
494
+ // Inline function 'kotlin.js.unsafeCast' call
495
+ // Inline function 'kotlin.js.asDynamic' call
496
+ var tmp$ret$2 = [];
497
+ return ObjectSerializer_init_$Create$('NEW_PARTY', tmp, tmp$ret$2);
498
+ }
499
+ function RestartGameReason() {
500
+ RestartGameReason_instance = this;
501
+ var tmp = this;
502
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
503
+ tmp.t25_1 = lazy(tmp_0, RestartGameReason$_anonymous__zfkhim);
504
+ }
505
+ protoOf(RestartGameReason).d17 = function () {
506
+ return _get_$cachedSerializer__te6jhj_1(this);
507
+ };
508
+ protoOf(RestartGameReason).mv = function (typeParamsSerializers) {
509
+ return this.d17();
510
+ };
511
+ protoOf(RestartGameReason).toString = function () {
512
+ return 'RestartGameReason';
513
+ };
514
+ protoOf(RestartGameReason).hashCode = function () {
515
+ return 1776550632;
516
+ };
517
+ protoOf(RestartGameReason).equals = function (other) {
518
+ if (this === other)
519
+ return true;
520
+ if (!(other instanceof RestartGameReason))
521
+ return false;
522
+ other instanceof RestartGameReason || THROW_CCE();
523
+ return true;
524
+ };
525
+ var RestartGameReason_instance;
526
+ function RestartGameReason_getInstance() {
527
+ if (RestartGameReason_instance == null)
528
+ new RestartGameReason();
529
+ return RestartGameReason_instance;
530
+ }
531
+ function TerminationGameReason() {
532
+ }
533
+ function PlayerLostConnectionReason(playerId, tag) {
534
+ TerminationGameReason.call(this);
535
+ this.u25_1 = playerId;
536
+ this.tag = tag;
537
+ }
538
+ protoOf(PlayerLostConnectionReason).v25 = function () {
539
+ return this.u25_1;
540
+ };
541
+ protoOf(PlayerLostConnectionReason).w25 = function () {
542
+ return this.tag;
543
+ };
544
+ protoOf(PlayerLostConnectionReason).x25 = function () {
545
+ return PlayerConnectionState_LOST_CONNECTION_getInstance();
546
+ };
547
+ protoOf(PlayerLostConnectionReason).zc = function () {
548
+ return this.u25_1;
549
+ };
550
+ protoOf(PlayerLostConnectionReason).ad = function () {
551
+ return this.tag;
552
+ };
553
+ protoOf(PlayerLostConnectionReason).y25 = function (playerId, tag) {
554
+ return new PlayerLostConnectionReason(playerId, tag);
555
+ };
556
+ protoOf(PlayerLostConnectionReason).copy = function (playerId, tag, $super) {
557
+ playerId = playerId === VOID ? this.u25_1 : playerId;
558
+ tag = tag === VOID ? this.tag : tag;
559
+ return this.y25(playerId, tag);
560
+ };
561
+ protoOf(PlayerLostConnectionReason).toString = function () {
562
+ return 'PlayerLostConnectionReason(playerId=' + this.u25_1 + ', tag=' + this.tag + ')';
563
+ };
564
+ protoOf(PlayerLostConnectionReason).hashCode = function () {
565
+ var result = getStringHashCode(this.u25_1);
566
+ result = imul(result, 31) + (this.tag == null ? 0 : getStringHashCode(this.tag)) | 0;
567
+ return result;
568
+ };
569
+ protoOf(PlayerLostConnectionReason).equals = function (other) {
570
+ if (this === other)
571
+ return true;
572
+ if (!(other instanceof PlayerLostConnectionReason))
573
+ return false;
574
+ var tmp0_other_with_cast = other instanceof PlayerLostConnectionReason ? other : THROW_CCE();
575
+ if (!(this.u25_1 === tmp0_other_with_cast.u25_1))
576
+ return false;
577
+ if (!(this.tag == tmp0_other_with_cast.tag))
578
+ return false;
579
+ return true;
580
+ };
581
+ function PlayerTimeoutReason(playerId, tag) {
582
+ TerminationGameReason.call(this);
583
+ this.z25_1 = playerId;
584
+ this.tag = tag;
585
+ }
586
+ protoOf(PlayerTimeoutReason).v25 = function () {
587
+ return this.z25_1;
588
+ };
589
+ protoOf(PlayerTimeoutReason).w25 = function () {
590
+ return this.tag;
591
+ };
592
+ protoOf(PlayerTimeoutReason).x25 = function () {
593
+ return PlayerConnectionState_TIMEOUT_getInstance();
594
+ };
595
+ protoOf(PlayerTimeoutReason).zc = function () {
596
+ return this.z25_1;
597
+ };
598
+ protoOf(PlayerTimeoutReason).ad = function () {
599
+ return this.tag;
600
+ };
601
+ protoOf(PlayerTimeoutReason).y25 = function (playerId, tag) {
602
+ return new PlayerTimeoutReason(playerId, tag);
603
+ };
604
+ protoOf(PlayerTimeoutReason).copy = function (playerId, tag, $super) {
605
+ playerId = playerId === VOID ? this.z25_1 : playerId;
606
+ tag = tag === VOID ? this.tag : tag;
607
+ return this.y25(playerId, tag);
608
+ };
609
+ protoOf(PlayerTimeoutReason).toString = function () {
610
+ return 'PlayerTimeoutReason(playerId=' + this.z25_1 + ', tag=' + this.tag + ')';
611
+ };
612
+ protoOf(PlayerTimeoutReason).hashCode = function () {
613
+ var result = getStringHashCode(this.z25_1);
614
+ result = imul(result, 31) + (this.tag == null ? 0 : getStringHashCode(this.tag)) | 0;
615
+ return result;
616
+ };
617
+ protoOf(PlayerTimeoutReason).equals = function (other) {
618
+ if (this === other)
619
+ return true;
620
+ if (!(other instanceof PlayerTimeoutReason))
621
+ return false;
622
+ var tmp0_other_with_cast = other instanceof PlayerTimeoutReason ? other : THROW_CCE();
623
+ if (!(this.z25_1 === tmp0_other_with_cast.z25_1))
624
+ return false;
625
+ if (!(this.tag == tmp0_other_with_cast.tag))
626
+ return false;
627
+ return true;
628
+ };
629
+ function PlayerExitReason(playerId) {
630
+ TerminationGameReason.call(this);
631
+ this.a26_1 = playerId;
632
+ }
633
+ protoOf(PlayerExitReason).v25 = function () {
634
+ return this.a26_1;
635
+ };
636
+ protoOf(PlayerExitReason).x25 = function () {
637
+ return PlayerConnectionState_LEFT_getInstance();
638
+ };
639
+ protoOf(PlayerExitReason).zc = function () {
640
+ return this.a26_1;
641
+ };
642
+ protoOf(PlayerExitReason).b26 = function (playerId) {
643
+ return new PlayerExitReason(playerId);
644
+ };
645
+ protoOf(PlayerExitReason).copy = function (playerId, $super) {
646
+ playerId = playerId === VOID ? this.a26_1 : playerId;
647
+ return this.b26(playerId);
648
+ };
649
+ protoOf(PlayerExitReason).toString = function () {
650
+ return 'PlayerExitReason(playerId=' + this.a26_1 + ')';
651
+ };
652
+ protoOf(PlayerExitReason).hashCode = function () {
653
+ return getStringHashCode(this.a26_1);
654
+ };
655
+ protoOf(PlayerExitReason).equals = function (other) {
656
+ if (this === other)
657
+ return true;
658
+ if (!(other instanceof PlayerExitReason))
659
+ return false;
660
+ var tmp0_other_with_cast = other instanceof PlayerExitReason ? other : THROW_CCE();
661
+ if (!(this.a26_1 === tmp0_other_with_cast.a26_1))
662
+ return false;
663
+ return true;
664
+ };
665
+ function FinishPlayerReason() {
666
+ }
667
+ function _get_$cachedSerializer__te6jhj_2($this) {
668
+ return $this.c26_1.a2();
669
+ }
670
+ function GameFinishedReason$Reason$Companion$_anonymous__q2gwr5() {
671
+ return createSimpleEnumSerializer('com.logic.data.models.GameFinishedReason.Reason', values());
672
+ }
673
+ var Reason_DEPLOY_instance;
674
+ var Reason_PLAYER_DELETED_instance;
675
+ var Reason_FINISHED_instance;
676
+ var Reason_NO_ACTIVE_PLAYERS_instance;
677
+ var Reason_GAME_NOT_EXISTS_instance;
678
+ function values() {
679
+ return [Reason_DEPLOY_getInstance(), Reason_PLAYER_DELETED_getInstance(), Reason_FINISHED_getInstance(), Reason_NO_ACTIVE_PLAYERS_getInstance(), Reason_GAME_NOT_EXISTS_getInstance()];
680
+ }
681
+ function valueOf(value) {
682
+ switch (value) {
683
+ case 'DEPLOY':
684
+ return Reason_DEPLOY_getInstance();
685
+ case 'PLAYER_DELETED':
686
+ return Reason_PLAYER_DELETED_getInstance();
687
+ case 'FINISHED':
688
+ return Reason_FINISHED_getInstance();
689
+ case 'NO_ACTIVE_PLAYERS':
690
+ return Reason_NO_ACTIVE_PLAYERS_getInstance();
691
+ case 'GAME_NOT_EXISTS':
692
+ return Reason_GAME_NOT_EXISTS_getInstance();
693
+ default:
694
+ Reason_initEntries();
695
+ THROW_IAE('No enum constant value.');
696
+ break;
697
+ }
698
+ }
699
+ function get_entries() {
700
+ if ($ENTRIES == null)
701
+ $ENTRIES = enumEntries(values());
702
+ return $ENTRIES;
703
+ }
704
+ function Companion_2() {
705
+ Companion_instance_2 = this;
706
+ var tmp = this;
707
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
708
+ tmp.c26_1 = lazy(tmp_0, GameFinishedReason$Reason$Companion$_anonymous__q2gwr5);
709
+ }
710
+ protoOf(Companion_2).d17 = function () {
711
+ return _get_$cachedSerializer__te6jhj_2(this);
712
+ };
713
+ protoOf(Companion_2).mv = function (typeParamsSerializers) {
714
+ return this.d17();
715
+ };
716
+ var Companion_instance_2;
717
+ function Companion_getInstance_4() {
718
+ Reason_initEntries();
719
+ if (Companion_instance_2 == null)
720
+ new Companion_2();
721
+ return Companion_instance_2;
722
+ }
723
+ var Reason_entriesInitialized;
724
+ function Reason_initEntries() {
725
+ if (Reason_entriesInitialized)
726
+ return Unit_instance;
727
+ Reason_entriesInitialized = true;
728
+ Reason_DEPLOY_instance = new Reason('DEPLOY', 0);
729
+ Reason_PLAYER_DELETED_instance = new Reason('PLAYER_DELETED', 1);
730
+ Reason_FINISHED_instance = new Reason('FINISHED', 2);
731
+ Reason_NO_ACTIVE_PLAYERS_instance = new Reason('NO_ACTIVE_PLAYERS', 3);
732
+ Reason_GAME_NOT_EXISTS_instance = new Reason('GAME_NOT_EXISTS', 4);
733
+ Companion_getInstance_4();
734
+ }
735
+ var $ENTRIES;
736
+ function Reason(name, ordinal) {
737
+ Enum.call(this, name, ordinal);
738
+ }
739
+ function Reason_DEPLOY_getInstance() {
740
+ Reason_initEntries();
741
+ return Reason_DEPLOY_instance;
742
+ }
743
+ function Reason_PLAYER_DELETED_getInstance() {
744
+ Reason_initEntries();
745
+ return Reason_PLAYER_DELETED_instance;
746
+ }
747
+ function Reason_FINISHED_getInstance() {
748
+ Reason_initEntries();
749
+ return Reason_FINISHED_instance;
750
+ }
751
+ function Reason_NO_ACTIVE_PLAYERS_getInstance() {
752
+ Reason_initEntries();
753
+ return Reason_NO_ACTIVE_PLAYERS_instance;
754
+ }
755
+ function Reason_GAME_NOT_EXISTS_getInstance() {
756
+ Reason_initEntries();
757
+ return Reason_GAME_NOT_EXISTS_instance;
758
+ }
759
+ function GameFinishedReason(reason) {
760
+ TerminationGameReason.call(this);
761
+ this.reason = reason;
762
+ }
763
+ protoOf(GameFinishedReason).f26 = function () {
764
+ return this.reason;
765
+ };
766
+ protoOf(GameFinishedReason).zc = function () {
767
+ return this.reason;
768
+ };
769
+ protoOf(GameFinishedReason).g26 = function (reason) {
770
+ return new GameFinishedReason(reason);
771
+ };
772
+ protoOf(GameFinishedReason).copy = function (reason, $super) {
773
+ reason = reason === VOID ? this.reason : reason;
774
+ return this.g26(reason);
775
+ };
776
+ protoOf(GameFinishedReason).toString = function () {
777
+ return 'GameFinishedReason(reason=' + this.reason.toString() + ')';
778
+ };
779
+ protoOf(GameFinishedReason).hashCode = function () {
780
+ return this.reason.hashCode();
781
+ };
782
+ protoOf(GameFinishedReason).equals = function (other) {
783
+ if (this === other)
784
+ return true;
785
+ if (!(other instanceof GameFinishedReason))
786
+ return false;
787
+ var tmp0_other_with_cast = other instanceof GameFinishedReason ? other : THROW_CCE();
788
+ if (!this.reason.equals(tmp0_other_with_cast.reason))
789
+ return false;
790
+ return true;
791
+ };
792
+ function _get_$cachedSerializer__te6jhj_3($this) {
793
+ return $this.h26_1.a2();
794
+ }
795
+ function GameErrorReason$Reason$Companion$_anonymous__54sopr() {
796
+ return createSimpleEnumSerializer('com.logic.data.models.GameErrorReason.Reason', values_0());
797
+ }
798
+ var Reason_SERVER_ERROR_instance;
799
+ var Reason_INTERNAL_ERROR_instance;
800
+ var Reason_GAME_NOT_EXISTS_instance_0;
801
+ var Reason_WRONG_PLAYER_TURN_instance;
802
+ var Reason_PLAYER_DISCONNECTED_instance;
803
+ function values_0() {
804
+ return [Reason_SERVER_ERROR_getInstance(), Reason_INTERNAL_ERROR_getInstance(), Reason_GAME_NOT_EXISTS_getInstance_0(), Reason_WRONG_PLAYER_TURN_getInstance(), Reason_PLAYER_DISCONNECTED_getInstance()];
805
+ }
806
+ function valueOf_0(value) {
807
+ switch (value) {
808
+ case 'SERVER_ERROR':
809
+ return Reason_SERVER_ERROR_getInstance();
810
+ case 'INTERNAL_ERROR':
811
+ return Reason_INTERNAL_ERROR_getInstance();
812
+ case 'GAME_NOT_EXISTS':
813
+ return Reason_GAME_NOT_EXISTS_getInstance_0();
814
+ case 'WRONG_PLAYER_TURN':
815
+ return Reason_WRONG_PLAYER_TURN_getInstance();
816
+ case 'PLAYER_DISCONNECTED':
817
+ return Reason_PLAYER_DISCONNECTED_getInstance();
818
+ default:
819
+ Reason_initEntries_0();
820
+ THROW_IAE('No enum constant value.');
821
+ break;
822
+ }
823
+ }
824
+ function get_entries_0() {
825
+ if ($ENTRIES_0 == null)
826
+ $ENTRIES_0 = enumEntries(values_0());
827
+ return $ENTRIES_0;
828
+ }
829
+ function Companion_3() {
830
+ Companion_instance_3 = this;
831
+ var tmp = this;
832
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
833
+ tmp.h26_1 = lazy(tmp_0, GameErrorReason$Reason$Companion$_anonymous__54sopr);
834
+ }
835
+ protoOf(Companion_3).d17 = function () {
836
+ return _get_$cachedSerializer__te6jhj_3(this);
837
+ };
838
+ protoOf(Companion_3).mv = function (typeParamsSerializers) {
839
+ return this.d17();
840
+ };
841
+ var Companion_instance_3;
842
+ function Companion_getInstance_5() {
843
+ Reason_initEntries_0();
844
+ if (Companion_instance_3 == null)
845
+ new Companion_3();
846
+ return Companion_instance_3;
847
+ }
848
+ var Reason_entriesInitialized_0;
849
+ function Reason_initEntries_0() {
850
+ if (Reason_entriesInitialized_0)
851
+ return Unit_instance;
852
+ Reason_entriesInitialized_0 = true;
853
+ Reason_SERVER_ERROR_instance = new Reason_0('SERVER_ERROR', 0);
854
+ Reason_INTERNAL_ERROR_instance = new Reason_0('INTERNAL_ERROR', 1);
855
+ Reason_GAME_NOT_EXISTS_instance_0 = new Reason_0('GAME_NOT_EXISTS', 2);
856
+ Reason_WRONG_PLAYER_TURN_instance = new Reason_0('WRONG_PLAYER_TURN', 3);
857
+ Reason_PLAYER_DISCONNECTED_instance = new Reason_0('PLAYER_DISCONNECTED', 4);
858
+ Companion_getInstance_5();
859
+ }
860
+ var $ENTRIES_0;
861
+ function Reason_0(name, ordinal) {
862
+ Enum.call(this, name, ordinal);
863
+ }
864
+ function Reason_SERVER_ERROR_getInstance() {
865
+ Reason_initEntries_0();
866
+ return Reason_SERVER_ERROR_instance;
867
+ }
868
+ function Reason_INTERNAL_ERROR_getInstance() {
869
+ Reason_initEntries_0();
870
+ return Reason_INTERNAL_ERROR_instance;
871
+ }
872
+ function Reason_GAME_NOT_EXISTS_getInstance_0() {
873
+ Reason_initEntries_0();
874
+ return Reason_GAME_NOT_EXISTS_instance_0;
875
+ }
876
+ function Reason_WRONG_PLAYER_TURN_getInstance() {
877
+ Reason_initEntries_0();
878
+ return Reason_WRONG_PLAYER_TURN_instance;
879
+ }
880
+ function Reason_PLAYER_DISCONNECTED_getInstance() {
881
+ Reason_initEntries_0();
882
+ return Reason_PLAYER_DISCONNECTED_instance;
883
+ }
884
+ function GameErrorReason(reason) {
885
+ TerminationGameReason.call(this);
886
+ this.reason = reason;
887
+ }
888
+ protoOf(GameErrorReason).f26 = function () {
889
+ return this.reason;
890
+ };
891
+ protoOf(GameErrorReason).zc = function () {
892
+ return this.reason;
893
+ };
894
+ protoOf(GameErrorReason).k26 = function (reason) {
895
+ return new GameErrorReason(reason);
896
+ };
897
+ protoOf(GameErrorReason).copy = function (reason, $super) {
898
+ reason = reason === VOID ? this.reason : reason;
899
+ return this.k26(reason);
900
+ };
901
+ protoOf(GameErrorReason).toString = function () {
902
+ return 'GameErrorReason(reason=' + this.reason.toString() + ')';
903
+ };
904
+ protoOf(GameErrorReason).hashCode = function () {
905
+ return this.reason.hashCode();
906
+ };
907
+ protoOf(GameErrorReason).equals = function (other) {
908
+ if (this === other)
909
+ return true;
910
+ if (!(other instanceof GameErrorReason))
911
+ return false;
912
+ var tmp0_other_with_cast = other instanceof GameErrorReason ? other : THROW_CCE();
913
+ if (!this.reason.equals(tmp0_other_with_cast.reason))
914
+ return false;
915
+ return true;
916
+ };
917
+ function WaitingForConnectionReason() {
918
+ WaitingForConnectionReason_instance = this;
919
+ TerminationGameReason.call(this);
920
+ }
921
+ protoOf(WaitingForConnectionReason).toString = function () {
922
+ return 'WaitingForConnectionReason';
923
+ };
924
+ protoOf(WaitingForConnectionReason).hashCode = function () {
925
+ return 288501467;
926
+ };
927
+ protoOf(WaitingForConnectionReason).equals = function (other) {
928
+ if (this === other)
929
+ return true;
930
+ if (!(other instanceof WaitingForConnectionReason))
931
+ return false;
932
+ other instanceof WaitingForConnectionReason || THROW_CCE();
933
+ return true;
934
+ };
935
+ var WaitingForConnectionReason_instance;
936
+ function WaitingForConnectionReason_getInstance() {
937
+ if (WaitingForConnectionReason_instance == null)
938
+ new WaitingForConnectionReason();
939
+ return WaitingForConnectionReason_instance;
940
+ }
941
+ function ProcessingReason() {
942
+ ProcessingReason_instance = this;
943
+ TerminationGameReason.call(this);
944
+ }
945
+ protoOf(ProcessingReason).toString = function () {
946
+ return 'ProcessingReason';
947
+ };
948
+ protoOf(ProcessingReason).hashCode = function () {
949
+ return -173313996;
950
+ };
951
+ protoOf(ProcessingReason).equals = function (other) {
952
+ if (this === other)
953
+ return true;
954
+ if (!(other instanceof ProcessingReason))
955
+ return false;
956
+ other instanceof ProcessingReason || THROW_CCE();
957
+ return true;
958
+ };
959
+ var ProcessingReason_instance;
960
+ function ProcessingReason_getInstance() {
961
+ if (ProcessingReason_instance == null)
962
+ new ProcessingReason();
963
+ return ProcessingReason_instance;
964
+ }
965
+ function MechanicException(message) {
966
+ Exception_init_$Init$(message, this);
967
+ captureStack(this, MechanicException);
968
+ }
969
+ function GameUserInfo(playerId, name, avatarUrl, isBot, initialLuckyFactor, payload) {
970
+ avatarUrl = avatarUrl === VOID ? null : avatarUrl;
971
+ isBot = isBot === VOID ? false : isBot;
972
+ initialLuckyFactor = initialLuckyFactor === VOID ? null : initialLuckyFactor;
973
+ payload = payload === VOID ? null : payload;
974
+ this.l26_1 = playerId;
975
+ this.name = name;
976
+ this.avatarUrl = avatarUrl;
977
+ this.isBot = isBot;
978
+ this.initialLuckyFactor = initialLuckyFactor;
979
+ this.payload = payload;
980
+ }
981
+ protoOf(GameUserInfo).v25 = function () {
982
+ return this.l26_1;
983
+ };
984
+ protoOf(GameUserInfo).k2 = function () {
985
+ return this.name;
986
+ };
987
+ protoOf(GameUserInfo).m26 = function () {
988
+ return this.avatarUrl;
989
+ };
990
+ protoOf(GameUserInfo).n26 = function () {
991
+ return this.isBot;
992
+ };
993
+ protoOf(GameUserInfo).o26 = function () {
994
+ return this.initialLuckyFactor;
995
+ };
996
+ protoOf(GameUserInfo).p26 = function () {
997
+ return this.payload;
998
+ };
999
+ protoOf(GameUserInfo).toString = function () {
1000
+ var tmp = 'playerId=' + this.l26_1;
1001
+ var tmp_0 = 'name=' + this.name;
1002
+ // Inline function 'kotlin.takeIf' call
1003
+ var this_0 = 'avatarUrl=' + this.avatarUrl;
1004
+ // Inline function 'kotlin.contracts.contract' call
1005
+ var tmp_1;
1006
+ // Inline function 'com.logic.data.models.player.GameUserInfo.toString.<anonymous>' call
1007
+ if (!(this.avatarUrl == null)) {
1008
+ tmp_1 = this_0;
1009
+ } else {
1010
+ tmp_1 = null;
1011
+ }
1012
+ var tmp_2 = tmp_1;
1013
+ // Inline function 'kotlin.takeIf' call
1014
+ var this_1 = 'isBot=' + this.isBot;
1015
+ // Inline function 'kotlin.contracts.contract' call
1016
+ var tmp_3;
1017
+ // Inline function 'com.logic.data.models.player.GameUserInfo.toString.<anonymous>' call
1018
+ if (this.isBot) {
1019
+ tmp_3 = this_1;
1020
+ } else {
1021
+ tmp_3 = null;
1022
+ }
1023
+ var tmp_4 = tmp_3;
1024
+ // Inline function 'kotlin.takeIf' call
1025
+ var this_2 = 'initialLuckyFactor=' + this.initialLuckyFactor;
1026
+ // Inline function 'kotlin.contracts.contract' call
1027
+ var tmp_5;
1028
+ // Inline function 'com.logic.data.models.player.GameUserInfo.toString.<anonymous>' call
1029
+ if (!(this.initialLuckyFactor == null)) {
1030
+ tmp_5 = this_2;
1031
+ } else {
1032
+ tmp_5 = null;
1033
+ }
1034
+ var tmp_6 = tmp_5;
1035
+ // Inline function 'kotlin.takeIf' call
1036
+ var this_3 = 'payload=' + toString(this.payload);
1037
+ // Inline function 'kotlin.contracts.contract' call
1038
+ var tmp_7;
1039
+ // Inline function 'com.logic.data.models.player.GameUserInfo.toString.<anonymous>' call
1040
+ if (!(this.payload == null)) {
1041
+ tmp_7 = this_3;
1042
+ } else {
1043
+ tmp_7 = null;
1044
+ }
1045
+ var tmp$ret$7 = tmp_7;
1046
+ return 'GameUserInfo(' + joinToString(listOfNotNull([tmp, tmp_0, tmp_2, tmp_4, tmp_6, tmp$ret$7])) + ')';
1047
+ };
1048
+ protoOf(GameUserInfo).zc = function () {
1049
+ return this.l26_1;
1050
+ };
1051
+ protoOf(GameUserInfo).ad = function () {
1052
+ return this.name;
1053
+ };
1054
+ protoOf(GameUserInfo).sg = function () {
1055
+ return this.avatarUrl;
1056
+ };
1057
+ protoOf(GameUserInfo).t1w = function () {
1058
+ return this.isBot;
1059
+ };
1060
+ protoOf(GameUserInfo).q26 = function () {
1061
+ return this.initialLuckyFactor;
1062
+ };
1063
+ protoOf(GameUserInfo).r26 = function () {
1064
+ return this.payload;
1065
+ };
1066
+ protoOf(GameUserInfo).s26 = function (playerId, name, avatarUrl, isBot, initialLuckyFactor, payload) {
1067
+ return new GameUserInfo(playerId, name, avatarUrl, isBot, initialLuckyFactor, payload);
1068
+ };
1069
+ protoOf(GameUserInfo).copy = function (playerId, name, avatarUrl, isBot, initialLuckyFactor, payload, $super) {
1070
+ playerId = playerId === VOID ? this.l26_1 : playerId;
1071
+ name = name === VOID ? this.name : name;
1072
+ avatarUrl = avatarUrl === VOID ? this.avatarUrl : avatarUrl;
1073
+ isBot = isBot === VOID ? this.isBot : isBot;
1074
+ initialLuckyFactor = initialLuckyFactor === VOID ? this.initialLuckyFactor : initialLuckyFactor;
1075
+ payload = payload === VOID ? this.payload : payload;
1076
+ return this.s26(playerId, name, avatarUrl, isBot, initialLuckyFactor, payload);
1077
+ };
1078
+ protoOf(GameUserInfo).hashCode = function () {
1079
+ var result = getStringHashCode(this.l26_1);
1080
+ result = imul(result, 31) + getStringHashCode(this.name) | 0;
1081
+ result = imul(result, 31) + (this.avatarUrl == null ? 0 : getStringHashCode(this.avatarUrl)) | 0;
1082
+ result = imul(result, 31) + getBooleanHashCode(this.isBot) | 0;
1083
+ result = imul(result, 31) + (this.initialLuckyFactor == null ? 0 : getNumberHashCode(this.initialLuckyFactor)) | 0;
1084
+ result = imul(result, 31) + (this.payload == null ? 0 : hashCode(this.payload)) | 0;
1085
+ return result;
1086
+ };
1087
+ protoOf(GameUserInfo).equals = function (other) {
1088
+ if (this === other)
1089
+ return true;
1090
+ if (!(other instanceof GameUserInfo))
1091
+ return false;
1092
+ var tmp0_other_with_cast = other instanceof GameUserInfo ? other : THROW_CCE();
1093
+ if (!(this.l26_1 === tmp0_other_with_cast.l26_1))
1094
+ return false;
1095
+ if (!(this.name === tmp0_other_with_cast.name))
1096
+ return false;
1097
+ if (!(this.avatarUrl == tmp0_other_with_cast.avatarUrl))
1098
+ return false;
1099
+ if (!(this.isBot === tmp0_other_with_cast.isBot))
1100
+ return false;
1101
+ if (!equals(this.initialLuckyFactor, tmp0_other_with_cast.initialLuckyFactor))
1102
+ return false;
1103
+ if (!equals(this.payload, tmp0_other_with_cast.payload))
1104
+ return false;
1105
+ return true;
1106
+ };
1107
+ function get_byIdPlayerPredicate() {
1108
+ _init_properties_Player_kt__qi83pd();
1109
+ return byIdPlayerPredicate;
1110
+ }
1111
+ var byIdPlayerPredicate;
1112
+ var playerTurnPredicate;
1113
+ function PlayerIdContract() {
1114
+ }
1115
+ function getPlayer(_this__u8e3s4, id) {
1116
+ _init_properties_Player_kt__qi83pd();
1117
+ var tmp$ret$0;
1118
+ $l$block_0: {
1119
+ // Inline function 'kotlin.collections.singleOrNull' call
1120
+ var predicate = get_byIdPlayerPredicate()(id);
1121
+ var single = null;
1122
+ var found = false;
1123
+ var tmp0_iterator = _this__u8e3s4.j();
1124
+ while (tmp0_iterator.k()) {
1125
+ var element = tmp0_iterator.l();
1126
+ if (predicate(element)) {
1127
+ if (found) {
1128
+ tmp$ret$0 = null;
1129
+ break $l$block_0;
1130
+ }
1131
+ single = element;
1132
+ found = true;
1133
+ }
1134
+ }
1135
+ if (!found) {
1136
+ tmp$ret$0 = null;
1137
+ break $l$block_0;
1138
+ }
1139
+ tmp$ret$0 = single;
1140
+ }
1141
+ var player = tmp$ret$0;
1142
+ if (!(player == null)) {
1143
+ return player;
1144
+ }
1145
+ throw new MechanicException("Can't find player by id:" + id + ', in ' + toString_0(_this__u8e3s4));
1146
+ }
1147
+ function getPlayerIndex(_this__u8e3s4, playerId) {
1148
+ _init_properties_Player_kt__qi83pd();
1149
+ return getItemIndex(_this__u8e3s4, get_byIdPlayerPredicate()(playerId));
1150
+ }
1151
+ function PlayerIndex(playerId, index) {
1152
+ this.t26_1 = playerId;
1153
+ this.u26_1 = index;
1154
+ }
1155
+ protoOf(PlayerIndex).v25 = function () {
1156
+ return this.t26_1;
1157
+ };
1158
+ protoOf(PlayerIndex).toString = function () {
1159
+ return 'PlayerIndex(playerId=' + this.t26_1 + ', index=' + this.u26_1 + ')';
1160
+ };
1161
+ protoOf(PlayerIndex).hashCode = function () {
1162
+ var result = getStringHashCode(this.t26_1);
1163
+ result = imul(result, 31) + this.u26_1 | 0;
1164
+ return result;
1165
+ };
1166
+ protoOf(PlayerIndex).equals = function (other) {
1167
+ if (this === other)
1168
+ return true;
1169
+ if (!(other instanceof PlayerIndex))
1170
+ return false;
1171
+ var tmp0_other_with_cast = other instanceof PlayerIndex ? other : THROW_CCE();
1172
+ if (!(this.t26_1 === tmp0_other_with_cast.t26_1))
1173
+ return false;
1174
+ if (!(this.u26_1 === tmp0_other_with_cast.u26_1))
1175
+ return false;
1176
+ return true;
1177
+ };
1178
+ function byIdPlayerPredicate$lambda(id) {
1179
+ _init_properties_Player_kt__qi83pd();
1180
+ return byIdPlayerPredicate$lambda$lambda(id);
1181
+ }
1182
+ function byIdPlayerPredicate$lambda$lambda($id) {
1183
+ return function (p1) {
1184
+ return p1.playerId === $id;
1185
+ };
1186
+ }
1187
+ function playerTurnPredicate$lambda(p1) {
1188
+ _init_properties_Player_kt__qi83pd();
1189
+ return p1.v26().d27();
1190
+ }
1191
+ var properties_initialized_Player_kt_56shkt;
1192
+ function _init_properties_Player_kt__qi83pd() {
1193
+ if (!properties_initialized_Player_kt_56shkt) {
1194
+ properties_initialized_Player_kt_56shkt = true;
1195
+ byIdPlayerPredicate = byIdPlayerPredicate$lambda;
1196
+ playerTurnPredicate = playerTurnPredicate$lambda;
1197
+ }
1198
+ }
1199
+ function Companion_4() {
1200
+ this.e27_1 = 75;
1201
+ }
1202
+ protoOf(Companion_4).f27 = function (state, timeout) {
1203
+ return new PlayerConnection(state, System_instance.c1g().u1v(timeout));
1204
+ };
1205
+ protoOf(Companion_4).g27 = function (state, timeout, $super) {
1206
+ timeout = timeout === VOID ? Companion_getInstance().wf_1 : timeout;
1207
+ return $super === VOID ? this.f27(state, timeout) : $super.f27.call(this, state, new Duration(timeout));
1208
+ };
1209
+ var Companion_instance_4;
1210
+ function Companion_getInstance_6() {
1211
+ return Companion_instance_4;
1212
+ }
1213
+ function PlayerConnection(state, connectionChangedTime, notLiveDurationRecord) {
1214
+ connectionChangedTime = connectionChangedTime === VOID ? System_instance.c1g() : connectionChangedTime;
1215
+ notLiveDurationRecord = notLiveDurationRecord === VOID ? Companion_getInstance().wf_1 : notLiveDurationRecord;
1216
+ this.h27_1 = state;
1217
+ this.i27_1 = connectionChangedTime;
1218
+ this.j27_1 = notLiveDurationRecord;
1219
+ }
1220
+ protoOf(PlayerConnection).k27 = function () {
1221
+ return System_instance.c1g().v1v(this.i27_1);
1222
+ };
1223
+ protoOf(PlayerConnection).l27 = function () {
1224
+ var tmp;
1225
+ if (this.h27_1.isLive) {
1226
+ tmp = this.j27_1;
1227
+ } else {
1228
+ tmp = Duration__plus_impl_yu9v8f(this.j27_1, this.k27());
1229
+ }
1230
+ return tmp;
1231
+ };
1232
+ protoOf(PlayerConnection).m27 = function (gameDuration) {
1233
+ // Inline function 'kotlin.Long.div' call
1234
+ var percent = _Duration___get_inWholeMilliseconds__impl__msfiry(gameDuration).h3() / 100.0;
1235
+ // Inline function 'kotlin.math.round' call
1236
+ // Inline function 'kotlin.Long.div' call
1237
+ var x = _Duration___get_inWholeMilliseconds__impl__msfiry(this.l27()).h3() / percent;
1238
+ var tmp$ret$2 = round(x);
1239
+ return numberToInt(tmp$ret$2);
1240
+ };
1241
+ protoOf(PlayerConnection).n27 = function (gameDuration) {
1242
+ return 100 - this.m27(gameDuration) | 0;
1243
+ };
1244
+ protoOf(PlayerConnection).o27 = function (gameDuration) {
1245
+ var percentage = this.n27(gameDuration);
1246
+ return percentage >= 75;
1247
+ };
1248
+ protoOf(PlayerConnection).toString = function () {
1249
+ return 'PlayerConnection(state=' + this.h27_1.toString() + ', connectionChangedTime=' + this.i27_1.toString() + ', notLiveDurationRecord=' + Duration__toString_impl_8d916b(this.j27_1) + ')';
1250
+ };
1251
+ protoOf(PlayerConnection).hashCode = function () {
1252
+ var result = this.h27_1.hashCode();
1253
+ result = imul(result, 31) + this.i27_1.hashCode() | 0;
1254
+ result = imul(result, 31) + Duration__hashCode_impl_u4exz6(this.j27_1) | 0;
1255
+ return result;
1256
+ };
1257
+ protoOf(PlayerConnection).equals = function (other) {
1258
+ if (this === other)
1259
+ return true;
1260
+ if (!(other instanceof PlayerConnection))
1261
+ return false;
1262
+ var tmp0_other_with_cast = other instanceof PlayerConnection ? other : THROW_CCE();
1263
+ if (!this.h27_1.equals(tmp0_other_with_cast.h27_1))
1264
+ return false;
1265
+ if (!this.i27_1.equals(tmp0_other_with_cast.i27_1))
1266
+ return false;
1267
+ if (!equals(this.j27_1, tmp0_other_with_cast.j27_1))
1268
+ return false;
1269
+ return true;
1270
+ };
1271
+ function _get_$cachedSerializer__te6jhj_4($this) {
1272
+ return $this.p27_1.a2();
1273
+ }
1274
+ function PlayerConnectionState$Companion$_anonymous__8wfaw3() {
1275
+ return createSimpleEnumSerializer('com.logic.data.models.player.PlayerConnectionState', values_1());
1276
+ }
1277
+ var PlayerConnectionState_LIVE_instance;
1278
+ var PlayerConnectionState_TIMEOUT_instance;
1279
+ var PlayerConnectionState_LOST_CONNECTION_instance;
1280
+ var PlayerConnectionState_LEFT_instance;
1281
+ var PlayerConnectionState_DISCONNECTING_instance;
1282
+ var PlayerConnectionState_DELETED_instance;
1283
+ function values_1() {
1284
+ return [PlayerConnectionState_LIVE_getInstance(), PlayerConnectionState_TIMEOUT_getInstance(), PlayerConnectionState_LOST_CONNECTION_getInstance(), PlayerConnectionState_LEFT_getInstance(), PlayerConnectionState_DISCONNECTING_getInstance(), PlayerConnectionState_DELETED_getInstance()];
1285
+ }
1286
+ function valueOf_1(value) {
1287
+ switch (value) {
1288
+ case 'LIVE':
1289
+ return PlayerConnectionState_LIVE_getInstance();
1290
+ case 'TIMEOUT':
1291
+ return PlayerConnectionState_TIMEOUT_getInstance();
1292
+ case 'LOST_CONNECTION':
1293
+ return PlayerConnectionState_LOST_CONNECTION_getInstance();
1294
+ case 'LEFT':
1295
+ return PlayerConnectionState_LEFT_getInstance();
1296
+ case 'DISCONNECTING':
1297
+ return PlayerConnectionState_DISCONNECTING_getInstance();
1298
+ case 'DELETED':
1299
+ return PlayerConnectionState_DELETED_getInstance();
1300
+ default:
1301
+ PlayerConnectionState_initEntries();
1302
+ THROW_IAE('No enum constant value.');
1303
+ break;
1304
+ }
1305
+ }
1306
+ function Companion_5() {
1307
+ Companion_instance_5 = this;
1308
+ var tmp = this;
1309
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1310
+ tmp.p27_1 = lazy(tmp_0, PlayerConnectionState$Companion$_anonymous__8wfaw3);
1311
+ }
1312
+ protoOf(Companion_5).d17 = function () {
1313
+ return _get_$cachedSerializer__te6jhj_4(this);
1314
+ };
1315
+ protoOf(Companion_5).mv = function (typeParamsSerializers) {
1316
+ return this.d17();
1317
+ };
1318
+ var Companion_instance_5;
1319
+ function Companion_getInstance_7() {
1320
+ PlayerConnectionState_initEntries();
1321
+ if (Companion_instance_5 == null)
1322
+ new Companion_5();
1323
+ return Companion_instance_5;
1324
+ }
1325
+ var PlayerConnectionState_entriesInitialized;
1326
+ function PlayerConnectionState_initEntries() {
1327
+ if (PlayerConnectionState_entriesInitialized)
1328
+ return Unit_instance;
1329
+ PlayerConnectionState_entriesInitialized = true;
1330
+ PlayerConnectionState_LIVE_instance = new PlayerConnectionState('LIVE', 0);
1331
+ PlayerConnectionState_TIMEOUT_instance = new PlayerConnectionState('TIMEOUT', 1);
1332
+ PlayerConnectionState_LOST_CONNECTION_instance = new PlayerConnectionState('LOST_CONNECTION', 2);
1333
+ PlayerConnectionState_LEFT_instance = new PlayerConnectionState('LEFT', 3);
1334
+ PlayerConnectionState_DISCONNECTING_instance = new PlayerConnectionState('DISCONNECTING', 4);
1335
+ PlayerConnectionState_DELETED_instance = new PlayerConnectionState('DELETED', 5);
1336
+ Companion_getInstance_7();
1337
+ }
1338
+ function PlayerConnectionState(name, ordinal) {
1339
+ Enum.call(this, name, ordinal);
1340
+ }
1341
+ protoOf(PlayerConnectionState).s27 = function () {
1342
+ return this.equals(PlayerConnectionState_LIVE_getInstance());
1343
+ };
1344
+ protoOf(PlayerConnectionState).t27 = function () {
1345
+ return this.equals(PlayerConnectionState_TIMEOUT_getInstance());
1346
+ };
1347
+ protoOf(PlayerConnectionState).u27 = function () {
1348
+ return this.equals(PlayerConnectionState_LOST_CONNECTION_getInstance());
1349
+ };
1350
+ protoOf(PlayerConnectionState).v27 = function () {
1351
+ return this.equals(PlayerConnectionState_LEFT_getInstance());
1352
+ };
1353
+ protoOf(PlayerConnectionState).w27 = function () {
1354
+ return this.equals(PlayerConnectionState_DELETED_getInstance());
1355
+ };
1356
+ protoOf(PlayerConnectionState).x27 = function () {
1357
+ return this.equals(PlayerConnectionState_DISCONNECTING_getInstance());
1358
+ };
1359
+ protoOf(PlayerConnectionState).y27 = function () {
1360
+ return this.isDisconnected || this.isDeleted;
1361
+ };
1362
+ protoOf(PlayerConnectionState).z27 = function () {
1363
+ return this.isTimeOut || this.isLostConnection || this.isLeft;
1364
+ };
1365
+ protoOf(PlayerConnectionState).a28 = function () {
1366
+ return this.isTimeOut || this.isLeft || this.isDeleted;
1367
+ };
1368
+ protoOf(PlayerConnectionState).b28 = function () {
1369
+ return this.isLostConnection;
1370
+ };
1371
+ function PlayerConnectionState_LIVE_getInstance() {
1372
+ PlayerConnectionState_initEntries();
1373
+ return PlayerConnectionState_LIVE_instance;
1374
+ }
1375
+ function PlayerConnectionState_TIMEOUT_getInstance() {
1376
+ PlayerConnectionState_initEntries();
1377
+ return PlayerConnectionState_TIMEOUT_instance;
1378
+ }
1379
+ function PlayerConnectionState_LOST_CONNECTION_getInstance() {
1380
+ PlayerConnectionState_initEntries();
1381
+ return PlayerConnectionState_LOST_CONNECTION_instance;
1382
+ }
1383
+ function PlayerConnectionState_LEFT_getInstance() {
1384
+ PlayerConnectionState_initEntries();
1385
+ return PlayerConnectionState_LEFT_instance;
1386
+ }
1387
+ function PlayerConnectionState_DISCONNECTING_getInstance() {
1388
+ PlayerConnectionState_initEntries();
1389
+ return PlayerConnectionState_DISCONNECTING_instance;
1390
+ }
1391
+ function PlayerConnectionState_DELETED_getInstance() {
1392
+ PlayerConnectionState_initEntries();
1393
+ return PlayerConnectionState_DELETED_instance;
1394
+ }
1395
+ function _get_$cachedSerializer__te6jhj_5($this) {
1396
+ return $this.c28_1.a2();
1397
+ }
1398
+ function PlayerState$PlayerWaitingState$Companion$_anonymous__jkatu2() {
1399
+ return createSimpleEnumSerializer('com.logic.data.models.player.PlayerState.PlayerWaitingState', values_2());
1400
+ }
1401
+ var PlayerWaitingState_IDLE_instance;
1402
+ var PlayerWaitingState_IN_PROGRESS_instance;
1403
+ var PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_instance;
1404
+ function values_2() {
1405
+ return [PlayerWaitingState_IDLE_getInstance(), PlayerWaitingState_IN_PROGRESS_getInstance(), PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_getInstance()];
1406
+ }
1407
+ function Companion_6() {
1408
+ Companion_instance_6 = this;
1409
+ var tmp = this;
1410
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1411
+ tmp.c28_1 = lazy(tmp_0, PlayerState$PlayerWaitingState$Companion$_anonymous__jkatu2);
1412
+ }
1413
+ protoOf(Companion_6).d17 = function () {
1414
+ return _get_$cachedSerializer__te6jhj_5(this);
1415
+ };
1416
+ protoOf(Companion_6).mv = function (typeParamsSerializers) {
1417
+ return this.d17();
1418
+ };
1419
+ var Companion_instance_6;
1420
+ function Companion_getInstance_8() {
1421
+ PlayerWaitingState_initEntries();
1422
+ if (Companion_instance_6 == null)
1423
+ new Companion_6();
1424
+ return Companion_instance_6;
1425
+ }
1426
+ var PlayerWaitingState_entriesInitialized;
1427
+ function PlayerWaitingState_initEntries() {
1428
+ if (PlayerWaitingState_entriesInitialized)
1429
+ return Unit_instance;
1430
+ PlayerWaitingState_entriesInitialized = true;
1431
+ PlayerWaitingState_IDLE_instance = new PlayerWaitingState('IDLE', 0);
1432
+ PlayerWaitingState_IN_PROGRESS_instance = new PlayerWaitingState('IN_PROGRESS', 1);
1433
+ PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_instance = new PlayerWaitingState('IN_PROGRESS_ATTENTION_MODE', 2);
1434
+ Companion_getInstance_8();
1435
+ }
1436
+ function PlayerWaitingState(name, ordinal) {
1437
+ Enum.call(this, name, ordinal);
1438
+ }
1439
+ protoOf(PlayerWaitingState).d27 = function () {
1440
+ return this.f28() || this.g28();
1441
+ };
1442
+ protoOf(PlayerWaitingState).f28 = function () {
1443
+ return this.equals(PlayerWaitingState_IN_PROGRESS_getInstance());
1444
+ };
1445
+ protoOf(PlayerWaitingState).g28 = function () {
1446
+ return this.equals(PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_getInstance());
1447
+ };
1448
+ function Companion_7() {
1449
+ }
1450
+ protoOf(Companion_7).h28 = function (connection) {
1451
+ var tmp0_state = PlayerWaitingState_IDLE_getInstance();
1452
+ return new PlayerState(null, null, null, tmp0_state, false, null, connection);
1453
+ };
1454
+ var Companion_instance_7;
1455
+ function Companion_getInstance_9() {
1456
+ return Companion_instance_7;
1457
+ }
1458
+ function PlayerWaitingState_IDLE_getInstance() {
1459
+ PlayerWaitingState_initEntries();
1460
+ return PlayerWaitingState_IDLE_instance;
1461
+ }
1462
+ function PlayerWaitingState_IN_PROGRESS_getInstance() {
1463
+ PlayerWaitingState_initEntries();
1464
+ return PlayerWaitingState_IN_PROGRESS_instance;
1465
+ }
1466
+ function PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_getInstance() {
1467
+ PlayerWaitingState_initEntries();
1468
+ return PlayerWaitingState_IN_PROGRESS_ATTENTION_MODE_instance;
1469
+ }
1470
+ function PlayerState(startFromTime, playerTurnTimeout, waitPlayerUntilTime, state, ready, tag, connection) {
1471
+ tag = tag === VOID ? null : tag;
1472
+ connection = connection === VOID ? null : connection;
1473
+ this.w26_1 = startFromTime;
1474
+ this.x26_1 = playerTurnTimeout;
1475
+ this.y26_1 = waitPlayerUntilTime;
1476
+ this.z26_1 = state;
1477
+ this.a27_1 = ready;
1478
+ this.b27_1 = tag;
1479
+ this.c27_1 = connection;
1480
+ }
1481
+ protoOf(PlayerState).i28 = function () {
1482
+ // Inline function 'kotlin.requireNotNull' call
1483
+ var value = this.c27_1;
1484
+ // Inline function 'kotlin.contracts.contract' call
1485
+ var tmp$ret$1;
1486
+ $l$block: {
1487
+ // Inline function 'kotlin.requireNotNull' call
1488
+ // Inline function 'kotlin.contracts.contract' call
1489
+ if (value == null) {
1490
+ // Inline function 'kotlin.requireNotNull.<anonymous>' call
1491
+ var message = 'Required value was null.';
1492
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
1493
+ } else {
1494
+ tmp$ret$1 = value;
1495
+ break $l$block;
1496
+ }
1497
+ }
1498
+ return tmp$ret$1;
1499
+ };
1500
+ protoOf(PlayerState).toString = function () {
1501
+ // Inline function 'kotlin.takeIf' call
1502
+ var this_0 = 'startFromTime=' + toString(this.w26_1);
1503
+ // Inline function 'kotlin.contracts.contract' call
1504
+ var tmp;
1505
+ // Inline function 'com.logic.data.models.player.PlayerState.toString.<anonymous>' call
1506
+ if (!(this.w26_1 == null)) {
1507
+ tmp = this_0;
1508
+ } else {
1509
+ tmp = null;
1510
+ }
1511
+ var tmp_0 = tmp;
1512
+ // Inline function 'kotlin.takeIf' call
1513
+ var this_1 = 'playerTurnTimeout=' + toString(this.x26_1);
1514
+ // Inline function 'kotlin.contracts.contract' call
1515
+ var tmp_1;
1516
+ // Inline function 'com.logic.data.models.player.PlayerState.toString.<anonymous>' call
1517
+ if (!(this.x26_1 == null)) {
1518
+ tmp_1 = this_1;
1519
+ } else {
1520
+ tmp_1 = null;
1521
+ }
1522
+ var tmp_2 = tmp_1;
1523
+ // Inline function 'kotlin.takeIf' call
1524
+ var this_2 = 'waitPlayerUntilTime=' + toString(this.y26_1);
1525
+ // Inline function 'kotlin.contracts.contract' call
1526
+ var tmp_3;
1527
+ // Inline function 'com.logic.data.models.player.PlayerState.toString.<anonymous>' call
1528
+ if (!(this.y26_1 == null)) {
1529
+ tmp_3 = this_2;
1530
+ } else {
1531
+ tmp_3 = null;
1532
+ }
1533
+ var tmp_4 = tmp_3;
1534
+ var tmp_5 = 'state=' + this.z26_1.toString();
1535
+ // Inline function 'kotlin.takeIf' call
1536
+ var this_3 = 'ready=' + this.a27_1;
1537
+ // Inline function 'kotlin.contracts.contract' call
1538
+ var tmp_6;
1539
+ // Inline function 'com.logic.data.models.player.PlayerState.toString.<anonymous>' call
1540
+ if (this.a27_1) {
1541
+ tmp_6 = this_3;
1542
+ } else {
1543
+ tmp_6 = null;
1544
+ }
1545
+ var tmp_7 = tmp_6;
1546
+ // Inline function 'kotlin.takeIf' call
1547
+ var this_4 = 'tag=' + this.b27_1;
1548
+ // Inline function 'kotlin.contracts.contract' call
1549
+ var tmp_8;
1550
+ // Inline function 'com.logic.data.models.player.PlayerState.toString.<anonymous>' call
1551
+ if (!(this.b27_1 == null)) {
1552
+ tmp_8 = this_4;
1553
+ } else {
1554
+ tmp_8 = null;
1555
+ }
1556
+ var tmp_9 = tmp_8;
1557
+ // Inline function 'kotlin.takeIf' call
1558
+ var this_5 = 'connection=' + toString(this.c27_1);
1559
+ // Inline function 'kotlin.contracts.contract' call
1560
+ var tmp_10;
1561
+ // Inline function 'com.logic.data.models.player.PlayerState.toString.<anonymous>' call
1562
+ if (!(this.c27_1 == null)) {
1563
+ tmp_10 = this_5;
1564
+ } else {
1565
+ tmp_10 = null;
1566
+ }
1567
+ var tmp$ret$11 = tmp_10;
1568
+ return 'PlayerState(' + joinToString(listOfNotNull([tmp_0, tmp_2, tmp_4, tmp_5, tmp_7, tmp_9, tmp$ret$11])) + ')';
1569
+ };
1570
+ protoOf(PlayerState).d27 = function () {
1571
+ return this.z26_1.d27();
1572
+ };
1573
+ protoOf(PlayerState).hashCode = function () {
1574
+ var result = this.w26_1 == null ? 0 : this.w26_1.hashCode();
1575
+ result = imul(result, 31) + (this.x26_1 == null ? 0 : this.x26_1.hashCode()) | 0;
1576
+ result = imul(result, 31) + (this.y26_1 == null ? 0 : this.y26_1.hashCode()) | 0;
1577
+ result = imul(result, 31) + this.z26_1.hashCode() | 0;
1578
+ result = imul(result, 31) + getBooleanHashCode(this.a27_1) | 0;
1579
+ result = imul(result, 31) + (this.b27_1 == null ? 0 : getStringHashCode(this.b27_1)) | 0;
1580
+ result = imul(result, 31) + (this.c27_1 == null ? 0 : this.c27_1.hashCode()) | 0;
1581
+ return result;
1582
+ };
1583
+ protoOf(PlayerState).equals = function (other) {
1584
+ if (this === other)
1585
+ return true;
1586
+ if (!(other instanceof PlayerState))
1587
+ return false;
1588
+ var tmp0_other_with_cast = other instanceof PlayerState ? other : THROW_CCE();
1589
+ if (!equals(this.w26_1, tmp0_other_with_cast.w26_1))
1590
+ return false;
1591
+ if (!equals(this.x26_1, tmp0_other_with_cast.x26_1))
1592
+ return false;
1593
+ if (!equals(this.y26_1, tmp0_other_with_cast.y26_1))
1594
+ return false;
1595
+ if (!this.z26_1.equals(tmp0_other_with_cast.z26_1))
1596
+ return false;
1597
+ if (!(this.a27_1 === tmp0_other_with_cast.a27_1))
1598
+ return false;
1599
+ if (!(this.b27_1 == tmp0_other_with_cast.b27_1))
1600
+ return false;
1601
+ if (!equals(this.c27_1, tmp0_other_with_cast.c27_1))
1602
+ return false;
1603
+ return true;
1604
+ };
1605
+ function Team(playerIds) {
1606
+ this.j28_1 = playerIds;
1607
+ }
1608
+ protoOf(Team).toString = function () {
1609
+ return 'Team(playerIds=' + toString_0(this.j28_1) + ')';
1610
+ };
1611
+ protoOf(Team).hashCode = function () {
1612
+ return hashCode(this.j28_1);
1613
+ };
1614
+ protoOf(Team).equals = function (other) {
1615
+ if (this === other)
1616
+ return true;
1617
+ if (!(other instanceof Team))
1618
+ return false;
1619
+ var tmp0_other_with_cast = other instanceof Team ? other : THROW_CCE();
1620
+ if (!equals(this.j28_1, tmp0_other_with_cast.j28_1))
1621
+ return false;
1622
+ return true;
1623
+ };
1624
+ function _get_$cachedSerializer__te6jhj_6($this) {
1625
+ return $this.k28_1.a2();
1626
+ }
1627
+ function TerminationGameReasonDto$Companion$_anonymous__30ivuy() {
1628
+ var tmp = getKClass(TerminationGameReasonDto);
1629
+ // Inline function 'kotlin.arrayOf' call
1630
+ // Inline function 'kotlin.js.unsafeCast' call
1631
+ // Inline function 'kotlin.js.asDynamic' call
1632
+ var tmp_0 = [getKClass(GameErrorReasonDto), getKClass(GameFinishedReasonDto), getKClass(PlayerExitReasonDto), getKClass(PlayerLostConnectionReasonDto), getKClass(PlayerTimeoutReasonDto), getKClass(ProcessingReasonDto), getKClass(WaitingForConnectionReasonDto)];
1633
+ // Inline function 'kotlin.arrayOf' call
1634
+ var tmp_1 = $serializer_getInstance_0();
1635
+ var tmp_2 = $serializer_getInstance_1();
1636
+ var tmp_3 = $serializer_getInstance_2();
1637
+ var tmp_4 = $serializer_getInstance_3();
1638
+ var tmp_5 = $serializer_getInstance_4();
1639
+ var tmp_6 = ProcessingReasonDto_getInstance();
1640
+ // Inline function 'kotlin.arrayOf' call
1641
+ // Inline function 'kotlin.js.unsafeCast' call
1642
+ // Inline function 'kotlin.js.asDynamic' call
1643
+ var tmp$ret$5 = [];
1644
+ var tmp_7 = ObjectSerializer_init_$Create$('PROCESSING_TYPE', tmp_6, tmp$ret$5);
1645
+ var tmp_8 = WaitingForConnectionReasonDto_getInstance();
1646
+ // Inline function 'kotlin.arrayOf' call
1647
+ // Inline function 'kotlin.js.unsafeCast' call
1648
+ // Inline function 'kotlin.js.asDynamic' call
1649
+ var tmp$ret$8 = [];
1650
+ // Inline function 'kotlin.js.unsafeCast' call
1651
+ // Inline function 'kotlin.js.asDynamic' call
1652
+ var tmp_9 = [tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_7, ObjectSerializer_init_$Create$('WAITING_FOR_CONNECTION_TYPE', tmp_8, tmp$ret$8)];
1653
+ // Inline function 'kotlin.arrayOf' call
1654
+ // Inline function 'kotlin.js.unsafeCast' call
1655
+ // Inline function 'kotlin.js.asDynamic' call
1656
+ var tmp$ret$14 = [];
1657
+ return SealedClassSerializer_init_$Create$('com.logic.data.models.serializable.TerminationGameReasonDto', tmp, tmp_0, tmp_9, tmp$ret$14);
1658
+ }
1659
+ function Companion_8() {
1660
+ Companion_instance_8 = this;
1661
+ var tmp = this;
1662
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1663
+ tmp.k28_1 = lazy(tmp_0, TerminationGameReasonDto$Companion$_anonymous__30ivuy);
1664
+ }
1665
+ protoOf(Companion_8).d17 = function () {
1666
+ return _get_$cachedSerializer__te6jhj_6(this);
1667
+ };
1668
+ protoOf(Companion_8).mv = function (typeParamsSerializers) {
1669
+ return this.d17();
1670
+ };
1671
+ var Companion_instance_8;
1672
+ function Companion_getInstance_10() {
1673
+ if (Companion_instance_8 == null)
1674
+ new Companion_8();
1675
+ return Companion_instance_8;
1676
+ }
1677
+ function TerminationGameReasonDto_init_$Init$(seen0, serializationConstructorMarker, $this) {
1678
+ return $this;
1679
+ }
1680
+ function TerminationGameReasonDto() {
1681
+ Companion_getInstance_10();
1682
+ }
1683
+ function _get_$cachedSerializer__te6jhj_7($this) {
1684
+ return $this.l28_1.a2();
1685
+ }
1686
+ function ProcessingReasonDto$_anonymous__78na4x() {
1687
+ var tmp = ProcessingReasonDto_getInstance();
1688
+ // Inline function 'kotlin.arrayOf' call
1689
+ // Inline function 'kotlin.js.unsafeCast' call
1690
+ // Inline function 'kotlin.js.asDynamic' call
1691
+ var tmp$ret$2 = [];
1692
+ return ObjectSerializer_init_$Create$('PROCESSING_TYPE', tmp, tmp$ret$2);
1693
+ }
1694
+ function ProcessingReasonDto() {
1695
+ ProcessingReasonDto_instance = this;
1696
+ TerminationGameReasonDto.call(this);
1697
+ var tmp = this;
1698
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
1699
+ tmp.l28_1 = lazy(tmp_0, ProcessingReasonDto$_anonymous__78na4x);
1700
+ }
1701
+ protoOf(ProcessingReasonDto).d17 = function () {
1702
+ return _get_$cachedSerializer__te6jhj_7(this);
1703
+ };
1704
+ protoOf(ProcessingReasonDto).mv = function (typeParamsSerializers) {
1705
+ return this.d17();
1706
+ };
1707
+ protoOf(ProcessingReasonDto).toString = function () {
1708
+ return 'ProcessingReasonDto';
1709
+ };
1710
+ protoOf(ProcessingReasonDto).hashCode = function () {
1711
+ return -1488680330;
1712
+ };
1713
+ protoOf(ProcessingReasonDto).equals = function (other) {
1714
+ if (this === other)
1715
+ return true;
1716
+ if (!(other instanceof ProcessingReasonDto))
1717
+ return false;
1718
+ other instanceof ProcessingReasonDto || THROW_CCE();
1719
+ return true;
1720
+ };
1721
+ var ProcessingReasonDto_instance;
1722
+ function ProcessingReasonDto_getInstance() {
1723
+ if (ProcessingReasonDto_instance == null)
1724
+ new ProcessingReasonDto();
1725
+ return ProcessingReasonDto_instance;
1726
+ }
1727
+ function Companion_9() {
1728
+ }
1729
+ var Companion_instance_9;
1730
+ function Companion_getInstance_11() {
1731
+ return Companion_instance_9;
1732
+ }
1733
+ function $serializer_0() {
1734
+ $serializer_instance_0 = this;
1735
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('GAME_ERROR_TYPE', this, 1);
1736
+ tmp0_serialDesc.mu('reason', false);
1737
+ this.m28_1 = tmp0_serialDesc;
1738
+ }
1739
+ protoOf($serializer_0).n28 = function (encoder, value) {
1740
+ var tmp0_desc = this.m28_1;
1741
+ var tmp1_output = encoder.wm(tmp0_desc);
1742
+ tmp1_output.lo(tmp0_desc, 0, value.reason);
1743
+ tmp1_output.xm(tmp0_desc);
1744
+ };
1745
+ protoOf($serializer_0).oj = function (encoder, value) {
1746
+ return this.n28(encoder, value instanceof GameErrorReasonDto ? value : THROW_CCE());
1747
+ };
1748
+ protoOf($serializer_0).pj = function (decoder) {
1749
+ var tmp0_desc = this.m28_1;
1750
+ var tmp1_flag = true;
1751
+ var tmp2_index = 0;
1752
+ var tmp3_bitMask0 = 0;
1753
+ var tmp4_local0 = null;
1754
+ var tmp5_input = decoder.wm(tmp0_desc);
1755
+ if (tmp5_input.mn()) {
1756
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
1757
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1758
+ } else
1759
+ while (tmp1_flag) {
1760
+ tmp2_index = tmp5_input.nn(tmp0_desc);
1761
+ switch (tmp2_index) {
1762
+ case -1:
1763
+ tmp1_flag = false;
1764
+ break;
1765
+ case 0:
1766
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
1767
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1768
+ break;
1769
+ default:
1770
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1771
+ }
1772
+ }
1773
+ tmp5_input.xm(tmp0_desc);
1774
+ return GameErrorReasonDto_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
1775
+ };
1776
+ protoOf($serializer_0).nj = function () {
1777
+ return this.m28_1;
1778
+ };
1779
+ protoOf($serializer_0).bv = function () {
1780
+ // Inline function 'kotlin.arrayOf' call
1781
+ // Inline function 'kotlin.js.unsafeCast' call
1782
+ // Inline function 'kotlin.js.asDynamic' call
1783
+ return [StringSerializer_getInstance()];
1784
+ };
1785
+ var $serializer_instance_0;
1786
+ function $serializer_getInstance_0() {
1787
+ if ($serializer_instance_0 == null)
1788
+ new $serializer_0();
1789
+ return $serializer_instance_0;
1790
+ }
1791
+ function GameErrorReasonDto_init_$Init$(seen0, reason, serializationConstructorMarker, $this) {
1792
+ if (!(1 === (1 & seen0))) {
1793
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_0().m28_1);
1794
+ }
1795
+ TerminationGameReasonDto_init_$Init$(seen0, serializationConstructorMarker, $this);
1796
+ $this.reason = reason;
1797
+ return $this;
1798
+ }
1799
+ function GameErrorReasonDto_init_$Create$(seen0, reason, serializationConstructorMarker) {
1800
+ return GameErrorReasonDto_init_$Init$(seen0, reason, serializationConstructorMarker, objectCreate(protoOf(GameErrorReasonDto)));
1801
+ }
1802
+ function GameErrorReasonDto(reason) {
1803
+ TerminationGameReasonDto.call(this);
1804
+ this.reason = reason;
1805
+ }
1806
+ protoOf(GameErrorReasonDto).f26 = function () {
1807
+ return this.reason;
1808
+ };
1809
+ protoOf(GameErrorReasonDto).toString = function () {
1810
+ return 'GameErrorReasonDto(reason=' + this.reason + ')';
1811
+ };
1812
+ protoOf(GameErrorReasonDto).hashCode = function () {
1813
+ return getStringHashCode(this.reason);
1814
+ };
1815
+ protoOf(GameErrorReasonDto).equals = function (other) {
1816
+ if (this === other)
1817
+ return true;
1818
+ if (!(other instanceof GameErrorReasonDto))
1819
+ return false;
1820
+ var tmp0_other_with_cast = other instanceof GameErrorReasonDto ? other : THROW_CCE();
1821
+ if (!(this.reason === tmp0_other_with_cast.reason))
1822
+ return false;
1823
+ return true;
1824
+ };
1825
+ function Companion_10() {
1826
+ }
1827
+ var Companion_instance_10;
1828
+ function Companion_getInstance_12() {
1829
+ return Companion_instance_10;
1830
+ }
1831
+ function $serializer_1() {
1832
+ $serializer_instance_1 = this;
1833
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('GAME_FINISHED_TYPE', this, 1);
1834
+ tmp0_serialDesc.mu('reason', false);
1835
+ this.o28_1 = tmp0_serialDesc;
1836
+ }
1837
+ protoOf($serializer_1).p28 = function (encoder, value) {
1838
+ var tmp0_desc = this.o28_1;
1839
+ var tmp1_output = encoder.wm(tmp0_desc);
1840
+ tmp1_output.lo(tmp0_desc, 0, value.q28_1);
1841
+ tmp1_output.xm(tmp0_desc);
1842
+ };
1843
+ protoOf($serializer_1).oj = function (encoder, value) {
1844
+ return this.p28(encoder, value instanceof GameFinishedReasonDto ? value : THROW_CCE());
1845
+ };
1846
+ protoOf($serializer_1).pj = function (decoder) {
1847
+ var tmp0_desc = this.o28_1;
1848
+ var tmp1_flag = true;
1849
+ var tmp2_index = 0;
1850
+ var tmp3_bitMask0 = 0;
1851
+ var tmp4_local0 = null;
1852
+ var tmp5_input = decoder.wm(tmp0_desc);
1853
+ if (tmp5_input.mn()) {
1854
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
1855
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1856
+ } else
1857
+ while (tmp1_flag) {
1858
+ tmp2_index = tmp5_input.nn(tmp0_desc);
1859
+ switch (tmp2_index) {
1860
+ case -1:
1861
+ tmp1_flag = false;
1862
+ break;
1863
+ case 0:
1864
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
1865
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1866
+ break;
1867
+ default:
1868
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1869
+ }
1870
+ }
1871
+ tmp5_input.xm(tmp0_desc);
1872
+ return GameFinishedReasonDto_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
1873
+ };
1874
+ protoOf($serializer_1).nj = function () {
1875
+ return this.o28_1;
1876
+ };
1877
+ protoOf($serializer_1).bv = function () {
1878
+ // Inline function 'kotlin.arrayOf' call
1879
+ // Inline function 'kotlin.js.unsafeCast' call
1880
+ // Inline function 'kotlin.js.asDynamic' call
1881
+ return [StringSerializer_getInstance()];
1882
+ };
1883
+ var $serializer_instance_1;
1884
+ function $serializer_getInstance_1() {
1885
+ if ($serializer_instance_1 == null)
1886
+ new $serializer_1();
1887
+ return $serializer_instance_1;
1888
+ }
1889
+ function GameFinishedReasonDto_init_$Init$(seen0, reason, serializationConstructorMarker, $this) {
1890
+ if (!(1 === (1 & seen0))) {
1891
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_1().o28_1);
1892
+ }
1893
+ TerminationGameReasonDto_init_$Init$(seen0, serializationConstructorMarker, $this);
1894
+ $this.q28_1 = reason;
1895
+ return $this;
1896
+ }
1897
+ function GameFinishedReasonDto_init_$Create$(seen0, reason, serializationConstructorMarker) {
1898
+ return GameFinishedReasonDto_init_$Init$(seen0, reason, serializationConstructorMarker, objectCreate(protoOf(GameFinishedReasonDto)));
1899
+ }
1900
+ function GameFinishedReasonDto(reason) {
1901
+ TerminationGameReasonDto.call(this);
1902
+ this.q28_1 = reason;
1903
+ }
1904
+ protoOf(GameFinishedReasonDto).toString = function () {
1905
+ return 'GameFinishedReasonDto(reason=' + this.q28_1 + ')';
1906
+ };
1907
+ protoOf(GameFinishedReasonDto).hashCode = function () {
1908
+ return getStringHashCode(this.q28_1);
1909
+ };
1910
+ protoOf(GameFinishedReasonDto).equals = function (other) {
1911
+ if (this === other)
1912
+ return true;
1913
+ if (!(other instanceof GameFinishedReasonDto))
1914
+ return false;
1915
+ var tmp0_other_with_cast = other instanceof GameFinishedReasonDto ? other : THROW_CCE();
1916
+ if (!(this.q28_1 === tmp0_other_with_cast.q28_1))
1917
+ return false;
1918
+ return true;
1919
+ };
1920
+ function Companion_11() {
1921
+ }
1922
+ var Companion_instance_11;
1923
+ function Companion_getInstance_13() {
1924
+ return Companion_instance_11;
1925
+ }
1926
+ function $serializer_2() {
1927
+ $serializer_instance_2 = this;
1928
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('PLAYER_EXIT', this, 1);
1929
+ tmp0_serialDesc.mu('playerId', false);
1930
+ this.r28_1 = tmp0_serialDesc;
1931
+ }
1932
+ protoOf($serializer_2).s28 = function (encoder, value) {
1933
+ var tmp0_desc = this.r28_1;
1934
+ var tmp1_output = encoder.wm(tmp0_desc);
1935
+ tmp1_output.lo(tmp0_desc, 0, value.t28_1);
1936
+ tmp1_output.xm(tmp0_desc);
1937
+ };
1938
+ protoOf($serializer_2).oj = function (encoder, value) {
1939
+ return this.s28(encoder, value instanceof PlayerExitReasonDto ? value : THROW_CCE());
1940
+ };
1941
+ protoOf($serializer_2).pj = function (decoder) {
1942
+ var tmp0_desc = this.r28_1;
1943
+ var tmp1_flag = true;
1944
+ var tmp2_index = 0;
1945
+ var tmp3_bitMask0 = 0;
1946
+ var tmp4_local0 = null;
1947
+ var tmp5_input = decoder.wm(tmp0_desc);
1948
+ if (tmp5_input.mn()) {
1949
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
1950
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1951
+ } else
1952
+ while (tmp1_flag) {
1953
+ tmp2_index = tmp5_input.nn(tmp0_desc);
1954
+ switch (tmp2_index) {
1955
+ case -1:
1956
+ tmp1_flag = false;
1957
+ break;
1958
+ case 0:
1959
+ tmp4_local0 = tmp5_input.gn(tmp0_desc, 0);
1960
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
1961
+ break;
1962
+ default:
1963
+ throw UnknownFieldException_init_$Create$(tmp2_index);
1964
+ }
1965
+ }
1966
+ tmp5_input.xm(tmp0_desc);
1967
+ return PlayerExitReasonDto_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
1968
+ };
1969
+ protoOf($serializer_2).nj = function () {
1970
+ return this.r28_1;
1971
+ };
1972
+ protoOf($serializer_2).bv = function () {
1973
+ // Inline function 'kotlin.arrayOf' call
1974
+ // Inline function 'kotlin.js.unsafeCast' call
1975
+ // Inline function 'kotlin.js.asDynamic' call
1976
+ return [StringSerializer_getInstance()];
1977
+ };
1978
+ var $serializer_instance_2;
1979
+ function $serializer_getInstance_2() {
1980
+ if ($serializer_instance_2 == null)
1981
+ new $serializer_2();
1982
+ return $serializer_instance_2;
1983
+ }
1984
+ function PlayerExitReasonDto_init_$Init$(seen0, playerId, serializationConstructorMarker, $this) {
1985
+ if (!(1 === (1 & seen0))) {
1986
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_2().r28_1);
1987
+ }
1988
+ TerminationGameReasonDto_init_$Init$(seen0, serializationConstructorMarker, $this);
1989
+ $this.t28_1 = playerId;
1990
+ return $this;
1991
+ }
1992
+ function PlayerExitReasonDto_init_$Create$(seen0, playerId, serializationConstructorMarker) {
1993
+ return PlayerExitReasonDto_init_$Init$(seen0, playerId, serializationConstructorMarker, objectCreate(protoOf(PlayerExitReasonDto)));
1994
+ }
1995
+ function PlayerExitReasonDto(playerId) {
1996
+ TerminationGameReasonDto.call(this);
1997
+ this.t28_1 = playerId;
1998
+ }
1999
+ protoOf(PlayerExitReasonDto).toString = function () {
2000
+ return 'PlayerExitReasonDto(playerId=' + this.t28_1 + ')';
2001
+ };
2002
+ protoOf(PlayerExitReasonDto).hashCode = function () {
2003
+ return getStringHashCode(this.t28_1);
2004
+ };
2005
+ protoOf(PlayerExitReasonDto).equals = function (other) {
2006
+ if (this === other)
2007
+ return true;
2008
+ if (!(other instanceof PlayerExitReasonDto))
2009
+ return false;
2010
+ var tmp0_other_with_cast = other instanceof PlayerExitReasonDto ? other : THROW_CCE();
2011
+ if (!(this.t28_1 === tmp0_other_with_cast.t28_1))
2012
+ return false;
2013
+ return true;
2014
+ };
2015
+ function Companion_12() {
2016
+ }
2017
+ var Companion_instance_12;
2018
+ function Companion_getInstance_14() {
2019
+ return Companion_instance_12;
2020
+ }
2021
+ function $serializer_3() {
2022
+ $serializer_instance_3 = this;
2023
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('PLAYER_LOST_CONNECTION', this, 2);
2024
+ tmp0_serialDesc.mu('playerId', false);
2025
+ tmp0_serialDesc.mu('tag', false);
2026
+ this.u28_1 = tmp0_serialDesc;
2027
+ }
2028
+ protoOf($serializer_3).v28 = function (encoder, value) {
2029
+ var tmp0_desc = this.u28_1;
2030
+ var tmp1_output = encoder.wm(tmp0_desc);
2031
+ tmp1_output.lo(tmp0_desc, 0, value.w28_1);
2032
+ tmp1_output.po(tmp0_desc, 1, StringSerializer_getInstance(), value.x28_1);
2033
+ tmp1_output.xm(tmp0_desc);
2034
+ };
2035
+ protoOf($serializer_3).oj = function (encoder, value) {
2036
+ return this.v28(encoder, value instanceof PlayerLostConnectionReasonDto ? value : THROW_CCE());
2037
+ };
2038
+ protoOf($serializer_3).pj = function (decoder) {
2039
+ var tmp0_desc = this.u28_1;
2040
+ var tmp1_flag = true;
2041
+ var tmp2_index = 0;
2042
+ var tmp3_bitMask0 = 0;
2043
+ var tmp4_local0 = null;
2044
+ var tmp5_local1 = null;
2045
+ var tmp6_input = decoder.wm(tmp0_desc);
2046
+ if (tmp6_input.mn()) {
2047
+ tmp4_local0 = tmp6_input.gn(tmp0_desc, 0);
2048
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2049
+ tmp5_local1 = tmp6_input.kn(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
2050
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2051
+ } else
2052
+ while (tmp1_flag) {
2053
+ tmp2_index = tmp6_input.nn(tmp0_desc);
2054
+ switch (tmp2_index) {
2055
+ case -1:
2056
+ tmp1_flag = false;
2057
+ break;
2058
+ case 0:
2059
+ tmp4_local0 = tmp6_input.gn(tmp0_desc, 0);
2060
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2061
+ break;
2062
+ case 1:
2063
+ tmp5_local1 = tmp6_input.kn(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
2064
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2065
+ break;
2066
+ default:
2067
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2068
+ }
2069
+ }
2070
+ tmp6_input.xm(tmp0_desc);
2071
+ return PlayerLostConnectionReasonDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
2072
+ };
2073
+ protoOf($serializer_3).nj = function () {
2074
+ return this.u28_1;
2075
+ };
2076
+ protoOf($serializer_3).bv = function () {
2077
+ // Inline function 'kotlin.arrayOf' call
2078
+ // Inline function 'kotlin.js.unsafeCast' call
2079
+ // Inline function 'kotlin.js.asDynamic' call
2080
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
2081
+ };
2082
+ var $serializer_instance_3;
2083
+ function $serializer_getInstance_3() {
2084
+ if ($serializer_instance_3 == null)
2085
+ new $serializer_3();
2086
+ return $serializer_instance_3;
2087
+ }
2088
+ function PlayerLostConnectionReasonDto_init_$Init$(seen0, playerId, tag, serializationConstructorMarker, $this) {
2089
+ if (!(3 === (3 & seen0))) {
2090
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_3().u28_1);
2091
+ }
2092
+ TerminationGameReasonDto_init_$Init$(seen0, serializationConstructorMarker, $this);
2093
+ $this.w28_1 = playerId;
2094
+ $this.x28_1 = tag;
2095
+ return $this;
2096
+ }
2097
+ function PlayerLostConnectionReasonDto_init_$Create$(seen0, playerId, tag, serializationConstructorMarker) {
2098
+ return PlayerLostConnectionReasonDto_init_$Init$(seen0, playerId, tag, serializationConstructorMarker, objectCreate(protoOf(PlayerLostConnectionReasonDto)));
2099
+ }
2100
+ function PlayerLostConnectionReasonDto(playerId, tag) {
2101
+ TerminationGameReasonDto.call(this);
2102
+ this.w28_1 = playerId;
2103
+ this.x28_1 = tag;
2104
+ }
2105
+ protoOf(PlayerLostConnectionReasonDto).toString = function () {
2106
+ return 'PlayerLostConnectionReasonDto(playerId=' + this.w28_1 + ', tag=' + this.x28_1 + ')';
2107
+ };
2108
+ protoOf(PlayerLostConnectionReasonDto).hashCode = function () {
2109
+ var result = getStringHashCode(this.w28_1);
2110
+ result = imul(result, 31) + (this.x28_1 == null ? 0 : getStringHashCode(this.x28_1)) | 0;
2111
+ return result;
2112
+ };
2113
+ protoOf(PlayerLostConnectionReasonDto).equals = function (other) {
2114
+ if (this === other)
2115
+ return true;
2116
+ if (!(other instanceof PlayerLostConnectionReasonDto))
2117
+ return false;
2118
+ var tmp0_other_with_cast = other instanceof PlayerLostConnectionReasonDto ? other : THROW_CCE();
2119
+ if (!(this.w28_1 === tmp0_other_with_cast.w28_1))
2120
+ return false;
2121
+ if (!(this.x28_1 == tmp0_other_with_cast.x28_1))
2122
+ return false;
2123
+ return true;
2124
+ };
2125
+ function Companion_13() {
2126
+ }
2127
+ var Companion_instance_13;
2128
+ function Companion_getInstance_15() {
2129
+ return Companion_instance_13;
2130
+ }
2131
+ function $serializer_4() {
2132
+ $serializer_instance_4 = this;
2133
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('PLAYER_TIMEOUT', this, 2);
2134
+ tmp0_serialDesc.mu('playerId', false);
2135
+ tmp0_serialDesc.mu('tag', false);
2136
+ this.y28_1 = tmp0_serialDesc;
2137
+ }
2138
+ protoOf($serializer_4).z28 = function (encoder, value) {
2139
+ var tmp0_desc = this.y28_1;
2140
+ var tmp1_output = encoder.wm(tmp0_desc);
2141
+ tmp1_output.lo(tmp0_desc, 0, value.a29_1);
2142
+ tmp1_output.po(tmp0_desc, 1, StringSerializer_getInstance(), value.b29_1);
2143
+ tmp1_output.xm(tmp0_desc);
2144
+ };
2145
+ protoOf($serializer_4).oj = function (encoder, value) {
2146
+ return this.z28(encoder, value instanceof PlayerTimeoutReasonDto ? value : THROW_CCE());
2147
+ };
2148
+ protoOf($serializer_4).pj = function (decoder) {
2149
+ var tmp0_desc = this.y28_1;
2150
+ var tmp1_flag = true;
2151
+ var tmp2_index = 0;
2152
+ var tmp3_bitMask0 = 0;
2153
+ var tmp4_local0 = null;
2154
+ var tmp5_local1 = null;
2155
+ var tmp6_input = decoder.wm(tmp0_desc);
2156
+ if (tmp6_input.mn()) {
2157
+ tmp4_local0 = tmp6_input.gn(tmp0_desc, 0);
2158
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2159
+ tmp5_local1 = tmp6_input.kn(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
2160
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2161
+ } else
2162
+ while (tmp1_flag) {
2163
+ tmp2_index = tmp6_input.nn(tmp0_desc);
2164
+ switch (tmp2_index) {
2165
+ case -1:
2166
+ tmp1_flag = false;
2167
+ break;
2168
+ case 0:
2169
+ tmp4_local0 = tmp6_input.gn(tmp0_desc, 0);
2170
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2171
+ break;
2172
+ case 1:
2173
+ tmp5_local1 = tmp6_input.kn(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
2174
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2175
+ break;
2176
+ default:
2177
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2178
+ }
2179
+ }
2180
+ tmp6_input.xm(tmp0_desc);
2181
+ return PlayerTimeoutReasonDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
2182
+ };
2183
+ protoOf($serializer_4).nj = function () {
2184
+ return this.y28_1;
2185
+ };
2186
+ protoOf($serializer_4).bv = function () {
2187
+ // Inline function 'kotlin.arrayOf' call
2188
+ // Inline function 'kotlin.js.unsafeCast' call
2189
+ // Inline function 'kotlin.js.asDynamic' call
2190
+ return [StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
2191
+ };
2192
+ var $serializer_instance_4;
2193
+ function $serializer_getInstance_4() {
2194
+ if ($serializer_instance_4 == null)
2195
+ new $serializer_4();
2196
+ return $serializer_instance_4;
2197
+ }
2198
+ function PlayerTimeoutReasonDto_init_$Init$(seen0, playerId, tag, serializationConstructorMarker, $this) {
2199
+ if (!(3 === (3 & seen0))) {
2200
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_4().y28_1);
2201
+ }
2202
+ TerminationGameReasonDto_init_$Init$(seen0, serializationConstructorMarker, $this);
2203
+ $this.a29_1 = playerId;
2204
+ $this.b29_1 = tag;
2205
+ return $this;
2206
+ }
2207
+ function PlayerTimeoutReasonDto_init_$Create$(seen0, playerId, tag, serializationConstructorMarker) {
2208
+ return PlayerTimeoutReasonDto_init_$Init$(seen0, playerId, tag, serializationConstructorMarker, objectCreate(protoOf(PlayerTimeoutReasonDto)));
2209
+ }
2210
+ function PlayerTimeoutReasonDto(playerId, tag) {
2211
+ TerminationGameReasonDto.call(this);
2212
+ this.a29_1 = playerId;
2213
+ this.b29_1 = tag;
2214
+ }
2215
+ protoOf(PlayerTimeoutReasonDto).toString = function () {
2216
+ return 'PlayerTimeoutReasonDto(playerId=' + this.a29_1 + ', tag=' + this.b29_1 + ')';
2217
+ };
2218
+ protoOf(PlayerTimeoutReasonDto).hashCode = function () {
2219
+ var result = getStringHashCode(this.a29_1);
2220
+ result = imul(result, 31) + (this.b29_1 == null ? 0 : getStringHashCode(this.b29_1)) | 0;
2221
+ return result;
2222
+ };
2223
+ protoOf(PlayerTimeoutReasonDto).equals = function (other) {
2224
+ if (this === other)
2225
+ return true;
2226
+ if (!(other instanceof PlayerTimeoutReasonDto))
2227
+ return false;
2228
+ var tmp0_other_with_cast = other instanceof PlayerTimeoutReasonDto ? other : THROW_CCE();
2229
+ if (!(this.a29_1 === tmp0_other_with_cast.a29_1))
2230
+ return false;
2231
+ if (!(this.b29_1 == tmp0_other_with_cast.b29_1))
2232
+ return false;
2233
+ return true;
2234
+ };
2235
+ function _get_$cachedSerializer__te6jhj_8($this) {
2236
+ return $this.c29_1.a2();
2237
+ }
2238
+ function WaitingForConnectionReasonDto$_anonymous__hgbgp6() {
2239
+ var tmp = WaitingForConnectionReasonDto_getInstance();
2240
+ // Inline function 'kotlin.arrayOf' call
2241
+ // Inline function 'kotlin.js.unsafeCast' call
2242
+ // Inline function 'kotlin.js.asDynamic' call
2243
+ var tmp$ret$2 = [];
2244
+ return ObjectSerializer_init_$Create$('WAITING_FOR_CONNECTION_TYPE', tmp, tmp$ret$2);
2245
+ }
2246
+ function WaitingForConnectionReasonDto() {
2247
+ WaitingForConnectionReasonDto_instance = this;
2248
+ TerminationGameReasonDto.call(this);
2249
+ var tmp = this;
2250
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2251
+ tmp.c29_1 = lazy(tmp_0, WaitingForConnectionReasonDto$_anonymous__hgbgp6);
2252
+ }
2253
+ protoOf(WaitingForConnectionReasonDto).d17 = function () {
2254
+ return _get_$cachedSerializer__te6jhj_8(this);
2255
+ };
2256
+ protoOf(WaitingForConnectionReasonDto).mv = function (typeParamsSerializers) {
2257
+ return this.d17();
2258
+ };
2259
+ protoOf(WaitingForConnectionReasonDto).toString = function () {
2260
+ return 'WaitingForConnectionReasonDto';
2261
+ };
2262
+ protoOf(WaitingForConnectionReasonDto).hashCode = function () {
2263
+ return 1123577007;
2264
+ };
2265
+ protoOf(WaitingForConnectionReasonDto).equals = function (other) {
2266
+ if (this === other)
2267
+ return true;
2268
+ if (!(other instanceof WaitingForConnectionReasonDto))
2269
+ return false;
2270
+ other instanceof WaitingForConnectionReasonDto || THROW_CCE();
2271
+ return true;
2272
+ };
2273
+ var WaitingForConnectionReasonDto_instance;
2274
+ function WaitingForConnectionReasonDto_getInstance() {
2275
+ if (WaitingForConnectionReasonDto_instance == null)
2276
+ new WaitingForConnectionReasonDto();
2277
+ return WaitingForConnectionReasonDto_instance;
2278
+ }
2279
+ function mapToDto(_this__u8e3s4) {
2280
+ return _this__u8e3s4.v24_1;
2281
+ }
2282
+ function mapFromDto(_this__u8e3s4) {
2283
+ return new GameCard(_this__u8e3s4);
2284
+ }
2285
+ function get_gameErrorReasonMapping() {
2286
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2287
+ return gameErrorReasonMapping;
2288
+ }
2289
+ var gameErrorReasonMapping;
2290
+ function get_gameFinishedReasonMapping() {
2291
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2292
+ return gameFinishedReasonMapping;
2293
+ }
2294
+ var gameFinishedReasonMapping;
2295
+ function mapToDto_0(_this__u8e3s4) {
2296
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2297
+ var tmp;
2298
+ if (_this__u8e3s4 instanceof GameErrorReason) {
2299
+ tmp = mapToDto_1(_this__u8e3s4);
2300
+ } else {
2301
+ if (_this__u8e3s4 instanceof GameFinishedReason) {
2302
+ tmp = mapToDto_2(_this__u8e3s4);
2303
+ } else {
2304
+ if (_this__u8e3s4 instanceof PlayerExitReason) {
2305
+ tmp = mapToDto_3(_this__u8e3s4);
2306
+ } else {
2307
+ if (_this__u8e3s4 instanceof PlayerLostConnectionReason) {
2308
+ tmp = mapToDto_4(_this__u8e3s4);
2309
+ } else {
2310
+ if (_this__u8e3s4 instanceof PlayerTimeoutReason) {
2311
+ tmp = mapToDto_5(_this__u8e3s4);
2312
+ } else {
2313
+ if (_this__u8e3s4 instanceof ProcessingReason) {
2314
+ tmp = mapToDto_6(_this__u8e3s4);
2315
+ } else {
2316
+ if (_this__u8e3s4 instanceof WaitingForConnectionReason) {
2317
+ tmp = mapToDto_7(_this__u8e3s4);
2318
+ } else {
2319
+ noWhenBranchMatchedException();
2320
+ }
2321
+ }
2322
+ }
2323
+ }
2324
+ }
2325
+ }
2326
+ }
2327
+ return tmp;
2328
+ }
2329
+ function mapFromDto_0(_this__u8e3s4) {
2330
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2331
+ var tmp;
2332
+ if (_this__u8e3s4 instanceof GameErrorReasonDto) {
2333
+ tmp = mapFromDto_1(_this__u8e3s4);
2334
+ } else {
2335
+ if (_this__u8e3s4 instanceof GameFinishedReasonDto) {
2336
+ tmp = mapFromDto_2(_this__u8e3s4);
2337
+ } else {
2338
+ if (_this__u8e3s4 instanceof PlayerExitReasonDto) {
2339
+ tmp = mapFromDto_3(_this__u8e3s4);
2340
+ } else {
2341
+ if (_this__u8e3s4 instanceof PlayerLostConnectionReasonDto) {
2342
+ tmp = mapFromDto_4(_this__u8e3s4);
2343
+ } else {
2344
+ if (_this__u8e3s4 instanceof PlayerTimeoutReasonDto) {
2345
+ tmp = mapFromDto_5(_this__u8e3s4);
2346
+ } else {
2347
+ if (_this__u8e3s4 instanceof ProcessingReasonDto) {
2348
+ tmp = mapFromDto_6(_this__u8e3s4);
2349
+ } else {
2350
+ if (_this__u8e3s4 instanceof WaitingForConnectionReasonDto) {
2351
+ tmp = mapFromDto_7(_this__u8e3s4);
2352
+ } else {
2353
+ noWhenBranchMatchedException();
2354
+ }
2355
+ }
2356
+ }
2357
+ }
2358
+ }
2359
+ }
2360
+ }
2361
+ return tmp;
2362
+ }
2363
+ function mapToDto_1(_this__u8e3s4) {
2364
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2365
+ return new GameErrorReasonDto(enumToString(_this__u8e3s4.reason, get_gameErrorReasonMapping()));
2366
+ }
2367
+ function mapToDto_2(_this__u8e3s4) {
2368
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2369
+ return new GameFinishedReasonDto(enumToString(_this__u8e3s4.reason, get_gameFinishedReasonMapping()));
2370
+ }
2371
+ function mapToDto_3(_this__u8e3s4) {
2372
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2373
+ return new PlayerExitReasonDto(_this__u8e3s4.a26_1);
2374
+ }
2375
+ function mapToDto_4(_this__u8e3s4) {
2376
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2377
+ return new PlayerLostConnectionReasonDto(_this__u8e3s4.u25_1, _this__u8e3s4.tag);
2378
+ }
2379
+ function mapToDto_5(_this__u8e3s4) {
2380
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2381
+ return new PlayerTimeoutReasonDto(_this__u8e3s4.z25_1, _this__u8e3s4.tag);
2382
+ }
2383
+ function mapToDto_6(_this__u8e3s4) {
2384
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2385
+ return ProcessingReasonDto_getInstance();
2386
+ }
2387
+ function mapToDto_7(_this__u8e3s4) {
2388
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2389
+ return WaitingForConnectionReasonDto_getInstance();
2390
+ }
2391
+ function mapFromDto_1(_this__u8e3s4) {
2392
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2393
+ var tmp0_elvis_lhs = toDomainEnumSafe(_this__u8e3s4.reason, get_gameErrorReasonMapping());
2394
+ return new GameErrorReason(tmp0_elvis_lhs == null ? Reason_INTERNAL_ERROR_getInstance() : tmp0_elvis_lhs);
2395
+ }
2396
+ function mapFromDto_2(_this__u8e3s4) {
2397
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2398
+ var tmp0_elvis_lhs = toDomainEnumSafe(_this__u8e3s4.q28_1, get_gameFinishedReasonMapping());
2399
+ return new GameFinishedReason(tmp0_elvis_lhs == null ? Reason_GAME_NOT_EXISTS_getInstance() : tmp0_elvis_lhs);
2400
+ }
2401
+ function mapFromDto_3(_this__u8e3s4) {
2402
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2403
+ return new PlayerExitReason(_this__u8e3s4.t28_1);
2404
+ }
2405
+ function mapFromDto_4(_this__u8e3s4) {
2406
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2407
+ return new PlayerLostConnectionReason(_this__u8e3s4.w28_1, _this__u8e3s4.x28_1);
2408
+ }
2409
+ function mapFromDto_5(_this__u8e3s4) {
2410
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2411
+ return new PlayerTimeoutReason(_this__u8e3s4.a29_1, _this__u8e3s4.b29_1);
2412
+ }
2413
+ function mapFromDto_6(_this__u8e3s4) {
2414
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2415
+ return ProcessingReason_getInstance();
2416
+ }
2417
+ function mapFromDto_7(_this__u8e3s4) {
2418
+ _init_properties_TerminationReasonMappers_kt__5n4kx6();
2419
+ return WaitingForConnectionReason_getInstance();
2420
+ }
2421
+ var properties_initialized_TerminationReasonMappers_kt_l3l74c;
2422
+ function _init_properties_TerminationReasonMappers_kt__5n4kx6() {
2423
+ if (!properties_initialized_TerminationReasonMappers_kt_l3l74c) {
2424
+ properties_initialized_TerminationReasonMappers_kt_l3l74c = true;
2425
+ // Inline function 'kotlin.collections.associateBy' call
2426
+ var this_0 = get_entries_0();
2427
+ var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
2428
+ // Inline function 'kotlin.collections.associateByTo' call
2429
+ var destination = LinkedHashMap_init_$Create$(capacity);
2430
+ var tmp0_iterator = this_0.j();
2431
+ while (tmp0_iterator.k()) {
2432
+ var element = tmp0_iterator.l();
2433
+ // Inline function 'com.logic.data.models.serializable.mappers.gameErrorReasonMapping.<anonymous>' call
2434
+ var tmp$ret$0 = element.toString();
2435
+ destination.g2(tmp$ret$0, element);
2436
+ }
2437
+ gameErrorReasonMapping = destination;
2438
+ // Inline function 'kotlin.collections.associateBy' call
2439
+ var this_1 = get_entries();
2440
+ var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_1, 10)), 16);
2441
+ // Inline function 'kotlin.collections.associateByTo' call
2442
+ var destination_0 = LinkedHashMap_init_$Create$(capacity_0);
2443
+ var tmp0_iterator_0 = this_1.j();
2444
+ while (tmp0_iterator_0.k()) {
2445
+ var element_0 = tmp0_iterator_0.l();
2446
+ // Inline function 'com.logic.data.models.serializable.mappers.gameFinishedReasonMapping.<anonymous>' call
2447
+ var tmp$ret$0_0 = element_0.toString();
2448
+ destination_0.g2(tmp$ret$0_0, element_0);
2449
+ }
2450
+ gameFinishedReasonMapping = destination_0;
2451
+ }
2452
+ }
2453
+ function mapToDto_8(_this__u8e3s4) {
2454
+ // Inline function 'kotlin.takeIf' call
2455
+ var this_0 = _this__u8e3s4.isBot;
2456
+ // Inline function 'kotlin.contracts.contract' call
2457
+ var tmp;
2458
+ // Inline function 'com.logic.data.models.serializable.mappers.mapToDto.<anonymous>' call
2459
+ if (this_0) {
2460
+ tmp = this_0;
2461
+ } else {
2462
+ tmp = null;
2463
+ }
2464
+ var tmp$ret$1 = tmp;
2465
+ return new GameUserInfoDto(_this__u8e3s4.l26_1, _this__u8e3s4.name, _this__u8e3s4.avatarUrl, tmp$ret$1, _this__u8e3s4.initialLuckyFactor);
2466
+ }
2467
+ function mapFromDto_8(_this__u8e3s4) {
2468
+ var tmp0_elvis_lhs = _this__u8e3s4.g29_1;
2469
+ return new GameUserInfo(_this__u8e3s4.d29_1, _this__u8e3s4.e29_1, _this__u8e3s4.f29_1, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs, _this__u8e3s4.h29_1);
2470
+ }
2471
+ function Companion_14() {
2472
+ }
2473
+ var Companion_instance_14;
2474
+ function Companion_getInstance_16() {
2475
+ return Companion_instance_14;
2476
+ }
2477
+ function $serializer_5() {
2478
+ $serializer_instance_5 = this;
2479
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.data.models.serializable.player.GameUserInfoDto', this, 5);
2480
+ tmp0_serialDesc.mu('playerId', false);
2481
+ tmp0_serialDesc.mu('name', false);
2482
+ tmp0_serialDesc.mu('avatarUrl', true);
2483
+ tmp0_serialDesc.mu('isBot', true);
2484
+ tmp0_serialDesc.mu('initialLuckyFactor', true);
2485
+ this.i29_1 = tmp0_serialDesc;
2486
+ }
2487
+ protoOf($serializer_5).j29 = function (encoder, value) {
2488
+ var tmp0_desc = this.i29_1;
2489
+ var tmp1_output = encoder.wm(tmp0_desc);
2490
+ tmp1_output.lo(tmp0_desc, 0, value.d29_1);
2491
+ tmp1_output.lo(tmp0_desc, 1, value.e29_1);
2492
+ if (tmp1_output.to(tmp0_desc, 2) ? true : !(value.f29_1 == null)) {
2493
+ tmp1_output.po(tmp0_desc, 2, StringSerializer_getInstance(), value.f29_1);
2494
+ }
2495
+ if (tmp1_output.to(tmp0_desc, 3) ? true : !(value.g29_1 == null)) {
2496
+ tmp1_output.po(tmp0_desc, 3, BooleanSerializer_getInstance(), value.g29_1);
2497
+ }
2498
+ if (tmp1_output.to(tmp0_desc, 4) ? true : !(value.h29_1 == null)) {
2499
+ tmp1_output.po(tmp0_desc, 4, FloatSerializer_getInstance(), value.h29_1);
2500
+ }
2501
+ tmp1_output.xm(tmp0_desc);
2502
+ };
2503
+ protoOf($serializer_5).oj = function (encoder, value) {
2504
+ return this.j29(encoder, value instanceof GameUserInfoDto ? value : THROW_CCE());
2505
+ };
2506
+ protoOf($serializer_5).pj = function (decoder) {
2507
+ var tmp0_desc = this.i29_1;
2508
+ var tmp1_flag = true;
2509
+ var tmp2_index = 0;
2510
+ var tmp3_bitMask0 = 0;
2511
+ var tmp4_local0 = null;
2512
+ var tmp5_local1 = null;
2513
+ var tmp6_local2 = null;
2514
+ var tmp7_local3 = null;
2515
+ var tmp8_local4 = null;
2516
+ var tmp9_input = decoder.wm(tmp0_desc);
2517
+ if (tmp9_input.mn()) {
2518
+ tmp4_local0 = tmp9_input.gn(tmp0_desc, 0);
2519
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2520
+ tmp5_local1 = tmp9_input.gn(tmp0_desc, 1);
2521
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2522
+ tmp6_local2 = tmp9_input.kn(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
2523
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
2524
+ tmp7_local3 = tmp9_input.kn(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
2525
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
2526
+ tmp8_local4 = tmp9_input.kn(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4);
2527
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
2528
+ } else
2529
+ while (tmp1_flag) {
2530
+ tmp2_index = tmp9_input.nn(tmp0_desc);
2531
+ switch (tmp2_index) {
2532
+ case -1:
2533
+ tmp1_flag = false;
2534
+ break;
2535
+ case 0:
2536
+ tmp4_local0 = tmp9_input.gn(tmp0_desc, 0);
2537
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2538
+ break;
2539
+ case 1:
2540
+ tmp5_local1 = tmp9_input.gn(tmp0_desc, 1);
2541
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2542
+ break;
2543
+ case 2:
2544
+ tmp6_local2 = tmp9_input.kn(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
2545
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
2546
+ break;
2547
+ case 3:
2548
+ tmp7_local3 = tmp9_input.kn(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
2549
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
2550
+ break;
2551
+ case 4:
2552
+ tmp8_local4 = tmp9_input.kn(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4);
2553
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
2554
+ break;
2555
+ default:
2556
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2557
+ }
2558
+ }
2559
+ tmp9_input.xm(tmp0_desc);
2560
+ return GameUserInfoDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
2561
+ };
2562
+ protoOf($serializer_5).nj = function () {
2563
+ return this.i29_1;
2564
+ };
2565
+ protoOf($serializer_5).bv = function () {
2566
+ // Inline function 'kotlin.arrayOf' call
2567
+ // Inline function 'kotlin.js.unsafeCast' call
2568
+ // Inline function 'kotlin.js.asDynamic' call
2569
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())];
2570
+ };
2571
+ var $serializer_instance_5;
2572
+ function $serializer_getInstance_5() {
2573
+ if ($serializer_instance_5 == null)
2574
+ new $serializer_5();
2575
+ return $serializer_instance_5;
2576
+ }
2577
+ function GameUserInfoDto_init_$Init$(seen0, playerId, name, avatarUrl, isBot, initialLuckyFactor, serializationConstructorMarker, $this) {
2578
+ if (!(3 === (3 & seen0))) {
2579
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_5().i29_1);
2580
+ }
2581
+ $this.d29_1 = playerId;
2582
+ $this.e29_1 = name;
2583
+ if (0 === (seen0 & 4))
2584
+ $this.f29_1 = null;
2585
+ else
2586
+ $this.f29_1 = avatarUrl;
2587
+ if (0 === (seen0 & 8))
2588
+ $this.g29_1 = null;
2589
+ else
2590
+ $this.g29_1 = isBot;
2591
+ if (0 === (seen0 & 16))
2592
+ $this.h29_1 = null;
2593
+ else
2594
+ $this.h29_1 = initialLuckyFactor;
2595
+ return $this;
2596
+ }
2597
+ function GameUserInfoDto_init_$Create$(seen0, playerId, name, avatarUrl, isBot, initialLuckyFactor, serializationConstructorMarker) {
2598
+ return GameUserInfoDto_init_$Init$(seen0, playerId, name, avatarUrl, isBot, initialLuckyFactor, serializationConstructorMarker, objectCreate(protoOf(GameUserInfoDto)));
2599
+ }
2600
+ function GameUserInfoDto(playerId, name, avatarUrl, isBot, initialLuckyFactor) {
2601
+ avatarUrl = avatarUrl === VOID ? null : avatarUrl;
2602
+ isBot = isBot === VOID ? null : isBot;
2603
+ initialLuckyFactor = initialLuckyFactor === VOID ? null : initialLuckyFactor;
2604
+ this.d29_1 = playerId;
2605
+ this.e29_1 = name;
2606
+ this.f29_1 = avatarUrl;
2607
+ this.g29_1 = isBot;
2608
+ this.h29_1 = initialLuckyFactor;
2609
+ }
2610
+ protoOf(GameUserInfoDto).k29 = function () {
2611
+ return this.l29(VOID, VOID, VOID, null, null);
2612
+ };
2613
+ protoOf(GameUserInfoDto).m29 = function (playerId, name, avatarUrl, isBot, initialLuckyFactor) {
2614
+ return new GameUserInfoDto(playerId, name, avatarUrl, isBot, initialLuckyFactor);
2615
+ };
2616
+ protoOf(GameUserInfoDto).l29 = function (playerId, name, avatarUrl, isBot, initialLuckyFactor, $super) {
2617
+ playerId = playerId === VOID ? this.d29_1 : playerId;
2618
+ name = name === VOID ? this.e29_1 : name;
2619
+ avatarUrl = avatarUrl === VOID ? this.f29_1 : avatarUrl;
2620
+ isBot = isBot === VOID ? this.g29_1 : isBot;
2621
+ initialLuckyFactor = initialLuckyFactor === VOID ? this.h29_1 : initialLuckyFactor;
2622
+ return $super === VOID ? this.m29(playerId, name, avatarUrl, isBot, initialLuckyFactor) : $super.m29.call(this, playerId, name, avatarUrl, isBot, initialLuckyFactor);
2623
+ };
2624
+ protoOf(GameUserInfoDto).toString = function () {
2625
+ return 'GameUserInfoDto(playerId=' + this.d29_1 + ', name=' + this.e29_1 + ', avatarUrl=' + this.f29_1 + ', isBot=' + this.g29_1 + ', initialLuckyFactor=' + this.h29_1 + ')';
2626
+ };
2627
+ protoOf(GameUserInfoDto).hashCode = function () {
2628
+ var result = getStringHashCode(this.d29_1);
2629
+ result = imul(result, 31) + getStringHashCode(this.e29_1) | 0;
2630
+ result = imul(result, 31) + (this.f29_1 == null ? 0 : getStringHashCode(this.f29_1)) | 0;
2631
+ result = imul(result, 31) + (this.g29_1 == null ? 0 : getBooleanHashCode(this.g29_1)) | 0;
2632
+ result = imul(result, 31) + (this.h29_1 == null ? 0 : getNumberHashCode(this.h29_1)) | 0;
2633
+ return result;
2634
+ };
2635
+ protoOf(GameUserInfoDto).equals = function (other) {
2636
+ if (this === other)
2637
+ return true;
2638
+ if (!(other instanceof GameUserInfoDto))
2639
+ return false;
2640
+ var tmp0_other_with_cast = other instanceof GameUserInfoDto ? other : THROW_CCE();
2641
+ if (!(this.d29_1 === tmp0_other_with_cast.d29_1))
2642
+ return false;
2643
+ if (!(this.e29_1 === tmp0_other_with_cast.e29_1))
2644
+ return false;
2645
+ if (!(this.f29_1 == tmp0_other_with_cast.f29_1))
2646
+ return false;
2647
+ if (!(this.g29_1 == tmp0_other_with_cast.g29_1))
2648
+ return false;
2649
+ if (!equals(this.h29_1, tmp0_other_with_cast.h29_1))
2650
+ return false;
2651
+ return true;
2652
+ };
2653
+ function Companion_15() {
2654
+ Companion_instance_15 = this;
2655
+ var tmp = this;
2656
+ // Inline function 'kotlin.arrayOf' call
2657
+ // Inline function 'kotlin.js.unsafeCast' call
2658
+ // Inline function 'kotlin.js.asDynamic' call
2659
+ tmp.n29_1 = [null, null, null, null, null, null, null, null, new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer(StringSerializer_getInstance()), new ArrayListSerializer(StringSerializer_getInstance()), null, null, null, null, null, null, null, null, null, null, null, null, null];
2660
+ }
2661
+ var Companion_instance_15;
2662
+ function Companion_getInstance_17() {
2663
+ if (Companion_instance_15 == null)
2664
+ new Companion_15();
2665
+ return Companion_instance_15;
2666
+ }
2667
+ function $serializer_6() {
2668
+ $serializer_instance_6 = this;
2669
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.data.models.serializable.rules.RulesDto', this, 24);
2670
+ tmp0_serialDesc.mu('needToPutHigherTrump', true);
2671
+ tmp0_serialDesc.mu('playerWhoChooseSuitGoFirst', true);
2672
+ tmp0_serialDesc.mu('winnerShuffleCards', true);
2673
+ tmp0_serialDesc.mu('playWithoutLiabilities', true);
2674
+ tmp0_serialDesc.mu('trumpCardGoToPlayerWhoShuffleCards', true);
2675
+ tmp0_serialDesc.mu('dealerInitialCardsCount', true);
2676
+ tmp0_serialDesc.mu('dealerFinalCardsCount', true);
2677
+ tmp0_serialDesc.mu('dealerCounterClockwise', true);
2678
+ tmp0_serialDesc.mu('contractTypes', true);
2679
+ tmp0_serialDesc.mu('bidTypes', true);
2680
+ tmp0_serialDesc.mu('combinationsWithFirstCard', true);
2681
+ tmp0_serialDesc.mu('protectBella', true);
2682
+ tmp0_serialDesc.mu('oneTryToProtectBella', true);
2683
+ tmp0_serialDesc.mu('enableFourSevensCombination', true);
2684
+ tmp0_serialDesc.mu('enableTrumpSevenCombination', true);
2685
+ tmp0_serialDesc.mu('enableTrumpSevenCombinationAfterDistribution', true);
2686
+ tmp0_serialDesc.mu('checkTrumpCombination', true);
2687
+ tmp0_serialDesc.mu('checkOnlyTrumpDebertz', true);
2688
+ tmp0_serialDesc.mu('distributePoints', true);
2689
+ tmp0_serialDesc.mu('pointsDistributeMode', true);
2690
+ tmp0_serialDesc.mu('enableFineIfNoBribes', true);
2691
+ tmp0_serialDesc.mu('fineIfNoBribes', true);
2692
+ tmp0_serialDesc.mu('enableFineAfterThirdByte', true);
2693
+ tmp0_serialDesc.mu('fineAfterThirdFailedContract', true);
2694
+ this.o29_1 = tmp0_serialDesc;
2695
+ }
2696
+ protoOf($serializer_6).p29 = function (encoder, value) {
2697
+ var tmp0_desc = this.o29_1;
2698
+ var tmp1_output = encoder.wm(tmp0_desc);
2699
+ var tmp2_cached = Companion_getInstance_17().n29_1;
2700
+ if (tmp1_output.to(tmp0_desc, 0) ? true : !(value.q29_1 == null)) {
2701
+ tmp1_output.po(tmp0_desc, 0, BooleanSerializer_getInstance(), value.q29_1);
2702
+ }
2703
+ if (tmp1_output.to(tmp0_desc, 1) ? true : !(value.r29_1 == null)) {
2704
+ tmp1_output.po(tmp0_desc, 1, BooleanSerializer_getInstance(), value.r29_1);
2705
+ }
2706
+ if (tmp1_output.to(tmp0_desc, 2) ? true : !(value.s29_1 == null)) {
2707
+ tmp1_output.po(tmp0_desc, 2, BooleanSerializer_getInstance(), value.s29_1);
2708
+ }
2709
+ if (tmp1_output.to(tmp0_desc, 3) ? true : !(value.t29_1 == null)) {
2710
+ tmp1_output.po(tmp0_desc, 3, BooleanSerializer_getInstance(), value.t29_1);
2711
+ }
2712
+ if (tmp1_output.to(tmp0_desc, 4) ? true : !(value.u29_1 == null)) {
2713
+ tmp1_output.po(tmp0_desc, 4, BooleanSerializer_getInstance(), value.u29_1);
2714
+ }
2715
+ if (tmp1_output.to(tmp0_desc, 5) ? true : !(value.v29_1 == null)) {
2716
+ tmp1_output.po(tmp0_desc, 5, IntSerializer_getInstance(), value.v29_1);
2717
+ }
2718
+ if (tmp1_output.to(tmp0_desc, 6) ? true : !(value.w29_1 == null)) {
2719
+ tmp1_output.po(tmp0_desc, 6, IntSerializer_getInstance(), value.w29_1);
2720
+ }
2721
+ if (tmp1_output.to(tmp0_desc, 7) ? true : !(value.x29_1 == null)) {
2722
+ tmp1_output.po(tmp0_desc, 7, BooleanSerializer_getInstance(), value.x29_1);
2723
+ }
2724
+ if (tmp1_output.to(tmp0_desc, 8) ? true : !(value.y29_1 == null)) {
2725
+ tmp1_output.po(tmp0_desc, 8, tmp2_cached[8], value.y29_1);
2726
+ }
2727
+ if (tmp1_output.to(tmp0_desc, 9) ? true : !(value.z29_1 == null)) {
2728
+ tmp1_output.po(tmp0_desc, 9, tmp2_cached[9], value.z29_1);
2729
+ }
2730
+ if (tmp1_output.to(tmp0_desc, 10) ? true : !(value.a2a_1 == null)) {
2731
+ tmp1_output.po(tmp0_desc, 10, tmp2_cached[10], value.a2a_1);
2732
+ }
2733
+ if (tmp1_output.to(tmp0_desc, 11) ? true : !(value.b2a_1 == null)) {
2734
+ tmp1_output.po(tmp0_desc, 11, BooleanSerializer_getInstance(), value.b2a_1);
2735
+ }
2736
+ if (tmp1_output.to(tmp0_desc, 12) ? true : !(value.c2a_1 == null)) {
2737
+ tmp1_output.po(tmp0_desc, 12, BooleanSerializer_getInstance(), value.c2a_1);
2738
+ }
2739
+ if (tmp1_output.to(tmp0_desc, 13) ? true : !(value.d2a_1 == null)) {
2740
+ tmp1_output.po(tmp0_desc, 13, BooleanSerializer_getInstance(), value.d2a_1);
2741
+ }
2742
+ if (tmp1_output.to(tmp0_desc, 14) ? true : !(value.e2a_1 == null)) {
2743
+ tmp1_output.po(tmp0_desc, 14, BooleanSerializer_getInstance(), value.e2a_1);
2744
+ }
2745
+ if (tmp1_output.to(tmp0_desc, 15) ? true : !(value.f2a_1 == null)) {
2746
+ tmp1_output.po(tmp0_desc, 15, BooleanSerializer_getInstance(), value.f2a_1);
2747
+ }
2748
+ if (tmp1_output.to(tmp0_desc, 16) ? true : !(value.g2a_1 == null)) {
2749
+ tmp1_output.po(tmp0_desc, 16, BooleanSerializer_getInstance(), value.g2a_1);
2750
+ }
2751
+ if (tmp1_output.to(tmp0_desc, 17) ? true : !(value.h2a_1 == null)) {
2752
+ tmp1_output.po(tmp0_desc, 17, BooleanSerializer_getInstance(), value.h2a_1);
2753
+ }
2754
+ if (tmp1_output.to(tmp0_desc, 18) ? true : !(value.i2a_1 == null)) {
2755
+ tmp1_output.po(tmp0_desc, 18, BooleanSerializer_getInstance(), value.i2a_1);
2756
+ }
2757
+ if (tmp1_output.to(tmp0_desc, 19) ? true : !(value.j2a_1 == null)) {
2758
+ tmp1_output.po(tmp0_desc, 19, StringSerializer_getInstance(), value.j2a_1);
2759
+ }
2760
+ if (tmp1_output.to(tmp0_desc, 20) ? true : !(value.k2a_1 == null)) {
2761
+ tmp1_output.po(tmp0_desc, 20, BooleanSerializer_getInstance(), value.k2a_1);
2762
+ }
2763
+ if (tmp1_output.to(tmp0_desc, 21) ? true : !(value.l2a_1 == null)) {
2764
+ tmp1_output.po(tmp0_desc, 21, IntSerializer_getInstance(), value.l2a_1);
2765
+ }
2766
+ if (tmp1_output.to(tmp0_desc, 22) ? true : !(value.m2a_1 == null)) {
2767
+ tmp1_output.po(tmp0_desc, 22, BooleanSerializer_getInstance(), value.m2a_1);
2768
+ }
2769
+ if (tmp1_output.to(tmp0_desc, 23) ? true : !(value.n2a_1 == null)) {
2770
+ tmp1_output.po(tmp0_desc, 23, IntSerializer_getInstance(), value.n2a_1);
2771
+ }
2772
+ tmp1_output.xm(tmp0_desc);
2773
+ };
2774
+ protoOf($serializer_6).oj = function (encoder, value) {
2775
+ return this.p29(encoder, value instanceof RulesDto ? value : THROW_CCE());
2776
+ };
2777
+ protoOf($serializer_6).pj = function (decoder) {
2778
+ var tmp0_desc = this.o29_1;
2779
+ var tmp1_flag = true;
2780
+ var tmp2_index = 0;
2781
+ var tmp3_bitMask0 = 0;
2782
+ var tmp4_local0 = null;
2783
+ var tmp5_local1 = null;
2784
+ var tmp6_local2 = null;
2785
+ var tmp7_local3 = null;
2786
+ var tmp8_local4 = null;
2787
+ var tmp9_local5 = null;
2788
+ var tmp10_local6 = null;
2789
+ var tmp11_local7 = null;
2790
+ var tmp12_local8 = null;
2791
+ var tmp13_local9 = null;
2792
+ var tmp14_local10 = null;
2793
+ var tmp15_local11 = null;
2794
+ var tmp16_local12 = null;
2795
+ var tmp17_local13 = null;
2796
+ var tmp18_local14 = null;
2797
+ var tmp19_local15 = null;
2798
+ var tmp20_local16 = null;
2799
+ var tmp21_local17 = null;
2800
+ var tmp22_local18 = null;
2801
+ var tmp23_local19 = null;
2802
+ var tmp24_local20 = null;
2803
+ var tmp25_local21 = null;
2804
+ var tmp26_local22 = null;
2805
+ var tmp27_local23 = null;
2806
+ var tmp28_input = decoder.wm(tmp0_desc);
2807
+ var tmp29_cached = Companion_getInstance_17().n29_1;
2808
+ if (tmp28_input.mn()) {
2809
+ tmp4_local0 = tmp28_input.kn(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0);
2810
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2811
+ tmp5_local1 = tmp28_input.kn(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1);
2812
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2813
+ tmp6_local2 = tmp28_input.kn(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2);
2814
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
2815
+ tmp7_local3 = tmp28_input.kn(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
2816
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
2817
+ tmp8_local4 = tmp28_input.kn(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
2818
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
2819
+ tmp9_local5 = tmp28_input.kn(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
2820
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
2821
+ tmp10_local6 = tmp28_input.kn(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6);
2822
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
2823
+ tmp11_local7 = tmp28_input.kn(tmp0_desc, 7, BooleanSerializer_getInstance(), tmp11_local7);
2824
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
2825
+ tmp12_local8 = tmp28_input.kn(tmp0_desc, 8, tmp29_cached[8], tmp12_local8);
2826
+ tmp3_bitMask0 = tmp3_bitMask0 | 256;
2827
+ tmp13_local9 = tmp28_input.kn(tmp0_desc, 9, tmp29_cached[9], tmp13_local9);
2828
+ tmp3_bitMask0 = tmp3_bitMask0 | 512;
2829
+ tmp14_local10 = tmp28_input.kn(tmp0_desc, 10, tmp29_cached[10], tmp14_local10);
2830
+ tmp3_bitMask0 = tmp3_bitMask0 | 1024;
2831
+ tmp15_local11 = tmp28_input.kn(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp15_local11);
2832
+ tmp3_bitMask0 = tmp3_bitMask0 | 2048;
2833
+ tmp16_local12 = tmp28_input.kn(tmp0_desc, 12, BooleanSerializer_getInstance(), tmp16_local12);
2834
+ tmp3_bitMask0 = tmp3_bitMask0 | 4096;
2835
+ tmp17_local13 = tmp28_input.kn(tmp0_desc, 13, BooleanSerializer_getInstance(), tmp17_local13);
2836
+ tmp3_bitMask0 = tmp3_bitMask0 | 8192;
2837
+ tmp18_local14 = tmp28_input.kn(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
2838
+ tmp3_bitMask0 = tmp3_bitMask0 | 16384;
2839
+ tmp19_local15 = tmp28_input.kn(tmp0_desc, 15, BooleanSerializer_getInstance(), tmp19_local15);
2840
+ tmp3_bitMask0 = tmp3_bitMask0 | 32768;
2841
+ tmp20_local16 = tmp28_input.kn(tmp0_desc, 16, BooleanSerializer_getInstance(), tmp20_local16);
2842
+ tmp3_bitMask0 = tmp3_bitMask0 | 65536;
2843
+ tmp21_local17 = tmp28_input.kn(tmp0_desc, 17, BooleanSerializer_getInstance(), tmp21_local17);
2844
+ tmp3_bitMask0 = tmp3_bitMask0 | 131072;
2845
+ tmp22_local18 = tmp28_input.kn(tmp0_desc, 18, BooleanSerializer_getInstance(), tmp22_local18);
2846
+ tmp3_bitMask0 = tmp3_bitMask0 | 262144;
2847
+ tmp23_local19 = tmp28_input.kn(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
2848
+ tmp3_bitMask0 = tmp3_bitMask0 | 524288;
2849
+ tmp24_local20 = tmp28_input.kn(tmp0_desc, 20, BooleanSerializer_getInstance(), tmp24_local20);
2850
+ tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
2851
+ tmp25_local21 = tmp28_input.kn(tmp0_desc, 21, IntSerializer_getInstance(), tmp25_local21);
2852
+ tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
2853
+ tmp26_local22 = tmp28_input.kn(tmp0_desc, 22, BooleanSerializer_getInstance(), tmp26_local22);
2854
+ tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
2855
+ tmp27_local23 = tmp28_input.kn(tmp0_desc, 23, IntSerializer_getInstance(), tmp27_local23);
2856
+ tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
2857
+ } else
2858
+ while (tmp1_flag) {
2859
+ tmp2_index = tmp28_input.nn(tmp0_desc);
2860
+ switch (tmp2_index) {
2861
+ case -1:
2862
+ tmp1_flag = false;
2863
+ break;
2864
+ case 0:
2865
+ tmp4_local0 = tmp28_input.kn(tmp0_desc, 0, BooleanSerializer_getInstance(), tmp4_local0);
2866
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
2867
+ break;
2868
+ case 1:
2869
+ tmp5_local1 = tmp28_input.kn(tmp0_desc, 1, BooleanSerializer_getInstance(), tmp5_local1);
2870
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
2871
+ break;
2872
+ case 2:
2873
+ tmp6_local2 = tmp28_input.kn(tmp0_desc, 2, BooleanSerializer_getInstance(), tmp6_local2);
2874
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
2875
+ break;
2876
+ case 3:
2877
+ tmp7_local3 = tmp28_input.kn(tmp0_desc, 3, BooleanSerializer_getInstance(), tmp7_local3);
2878
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
2879
+ break;
2880
+ case 4:
2881
+ tmp8_local4 = tmp28_input.kn(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4);
2882
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
2883
+ break;
2884
+ case 5:
2885
+ tmp9_local5 = tmp28_input.kn(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
2886
+ tmp3_bitMask0 = tmp3_bitMask0 | 32;
2887
+ break;
2888
+ case 6:
2889
+ tmp10_local6 = tmp28_input.kn(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6);
2890
+ tmp3_bitMask0 = tmp3_bitMask0 | 64;
2891
+ break;
2892
+ case 7:
2893
+ tmp11_local7 = tmp28_input.kn(tmp0_desc, 7, BooleanSerializer_getInstance(), tmp11_local7);
2894
+ tmp3_bitMask0 = tmp3_bitMask0 | 128;
2895
+ break;
2896
+ case 8:
2897
+ tmp12_local8 = tmp28_input.kn(tmp0_desc, 8, tmp29_cached[8], tmp12_local8);
2898
+ tmp3_bitMask0 = tmp3_bitMask0 | 256;
2899
+ break;
2900
+ case 9:
2901
+ tmp13_local9 = tmp28_input.kn(tmp0_desc, 9, tmp29_cached[9], tmp13_local9);
2902
+ tmp3_bitMask0 = tmp3_bitMask0 | 512;
2903
+ break;
2904
+ case 10:
2905
+ tmp14_local10 = tmp28_input.kn(tmp0_desc, 10, tmp29_cached[10], tmp14_local10);
2906
+ tmp3_bitMask0 = tmp3_bitMask0 | 1024;
2907
+ break;
2908
+ case 11:
2909
+ tmp15_local11 = tmp28_input.kn(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp15_local11);
2910
+ tmp3_bitMask0 = tmp3_bitMask0 | 2048;
2911
+ break;
2912
+ case 12:
2913
+ tmp16_local12 = tmp28_input.kn(tmp0_desc, 12, BooleanSerializer_getInstance(), tmp16_local12);
2914
+ tmp3_bitMask0 = tmp3_bitMask0 | 4096;
2915
+ break;
2916
+ case 13:
2917
+ tmp17_local13 = tmp28_input.kn(tmp0_desc, 13, BooleanSerializer_getInstance(), tmp17_local13);
2918
+ tmp3_bitMask0 = tmp3_bitMask0 | 8192;
2919
+ break;
2920
+ case 14:
2921
+ tmp18_local14 = tmp28_input.kn(tmp0_desc, 14, BooleanSerializer_getInstance(), tmp18_local14);
2922
+ tmp3_bitMask0 = tmp3_bitMask0 | 16384;
2923
+ break;
2924
+ case 15:
2925
+ tmp19_local15 = tmp28_input.kn(tmp0_desc, 15, BooleanSerializer_getInstance(), tmp19_local15);
2926
+ tmp3_bitMask0 = tmp3_bitMask0 | 32768;
2927
+ break;
2928
+ case 16:
2929
+ tmp20_local16 = tmp28_input.kn(tmp0_desc, 16, BooleanSerializer_getInstance(), tmp20_local16);
2930
+ tmp3_bitMask0 = tmp3_bitMask0 | 65536;
2931
+ break;
2932
+ case 17:
2933
+ tmp21_local17 = tmp28_input.kn(tmp0_desc, 17, BooleanSerializer_getInstance(), tmp21_local17);
2934
+ tmp3_bitMask0 = tmp3_bitMask0 | 131072;
2935
+ break;
2936
+ case 18:
2937
+ tmp22_local18 = tmp28_input.kn(tmp0_desc, 18, BooleanSerializer_getInstance(), tmp22_local18);
2938
+ tmp3_bitMask0 = tmp3_bitMask0 | 262144;
2939
+ break;
2940
+ case 19:
2941
+ tmp23_local19 = tmp28_input.kn(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19);
2942
+ tmp3_bitMask0 = tmp3_bitMask0 | 524288;
2943
+ break;
2944
+ case 20:
2945
+ tmp24_local20 = tmp28_input.kn(tmp0_desc, 20, BooleanSerializer_getInstance(), tmp24_local20);
2946
+ tmp3_bitMask0 = tmp3_bitMask0 | 1048576;
2947
+ break;
2948
+ case 21:
2949
+ tmp25_local21 = tmp28_input.kn(tmp0_desc, 21, IntSerializer_getInstance(), tmp25_local21);
2950
+ tmp3_bitMask0 = tmp3_bitMask0 | 2097152;
2951
+ break;
2952
+ case 22:
2953
+ tmp26_local22 = tmp28_input.kn(tmp0_desc, 22, BooleanSerializer_getInstance(), tmp26_local22);
2954
+ tmp3_bitMask0 = tmp3_bitMask0 | 4194304;
2955
+ break;
2956
+ case 23:
2957
+ tmp27_local23 = tmp28_input.kn(tmp0_desc, 23, IntSerializer_getInstance(), tmp27_local23);
2958
+ tmp3_bitMask0 = tmp3_bitMask0 | 8388608;
2959
+ break;
2960
+ default:
2961
+ throw UnknownFieldException_init_$Create$(tmp2_index);
2962
+ }
2963
+ }
2964
+ tmp28_input.xm(tmp0_desc);
2965
+ return RulesDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, tmp15_local11, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null);
2966
+ };
2967
+ protoOf($serializer_6).nj = function () {
2968
+ return this.o29_1;
2969
+ };
2970
+ protoOf($serializer_6).bv = function () {
2971
+ var tmp0_cached = Companion_getInstance_17().n29_1;
2972
+ // Inline function 'kotlin.arrayOf' call
2973
+ // Inline function 'kotlin.js.unsafeCast' call
2974
+ // Inline function 'kotlin.js.asDynamic' call
2975
+ return [get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(tmp0_cached[8]), get_nullable(tmp0_cached[9]), get_nullable(tmp0_cached[10]), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
2976
+ };
2977
+ var $serializer_instance_6;
2978
+ function $serializer_getInstance_6() {
2979
+ if ($serializer_instance_6 == null)
2980
+ new $serializer_6();
2981
+ return $serializer_instance_6;
2982
+ }
2983
+ function RulesDto_init_$Init$(seen0, needToPutHigherTrump, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, dealerInitialCardsCount, dealerFinalCardsCount, dealerCounterClockwise, contractTypes, bidTypes, combinationsWithFirstCard, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, checkTrumpCombination, checkOnlyTrumpDebertz, distributePoints, pointsDistributeMode, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, fineAfterThirdFailedContract, serializationConstructorMarker, $this) {
2984
+ if (!(0 === (0 & seen0))) {
2985
+ throwMissingFieldException(seen0, 0, $serializer_getInstance_6().o29_1);
2986
+ }
2987
+ if (0 === (seen0 & 1))
2988
+ $this.q29_1 = null;
2989
+ else
2990
+ $this.q29_1 = needToPutHigherTrump;
2991
+ if (0 === (seen0 & 2))
2992
+ $this.r29_1 = null;
2993
+ else
2994
+ $this.r29_1 = playerWhoChooseSuitGoFirst;
2995
+ if (0 === (seen0 & 4))
2996
+ $this.s29_1 = null;
2997
+ else
2998
+ $this.s29_1 = winnerShuffleCards;
2999
+ if (0 === (seen0 & 8))
3000
+ $this.t29_1 = null;
3001
+ else
3002
+ $this.t29_1 = playWithoutLiabilities;
3003
+ if (0 === (seen0 & 16))
3004
+ $this.u29_1 = null;
3005
+ else
3006
+ $this.u29_1 = trumpCardGoToPlayerWhoShuffleCards;
3007
+ if (0 === (seen0 & 32))
3008
+ $this.v29_1 = null;
3009
+ else
3010
+ $this.v29_1 = dealerInitialCardsCount;
3011
+ if (0 === (seen0 & 64))
3012
+ $this.w29_1 = null;
3013
+ else
3014
+ $this.w29_1 = dealerFinalCardsCount;
3015
+ if (0 === (seen0 & 128))
3016
+ $this.x29_1 = null;
3017
+ else
3018
+ $this.x29_1 = dealerCounterClockwise;
3019
+ if (0 === (seen0 & 256))
3020
+ $this.y29_1 = null;
3021
+ else
3022
+ $this.y29_1 = contractTypes;
3023
+ if (0 === (seen0 & 512))
3024
+ $this.z29_1 = null;
3025
+ else
3026
+ $this.z29_1 = bidTypes;
3027
+ if (0 === (seen0 & 1024))
3028
+ $this.a2a_1 = null;
3029
+ else
3030
+ $this.a2a_1 = combinationsWithFirstCard;
3031
+ if (0 === (seen0 & 2048))
3032
+ $this.b2a_1 = null;
3033
+ else
3034
+ $this.b2a_1 = protectBella;
3035
+ if (0 === (seen0 & 4096))
3036
+ $this.c2a_1 = null;
3037
+ else
3038
+ $this.c2a_1 = oneTryToProtectBella;
3039
+ if (0 === (seen0 & 8192))
3040
+ $this.d2a_1 = null;
3041
+ else
3042
+ $this.d2a_1 = enableFourSevensCombination;
3043
+ if (0 === (seen0 & 16384))
3044
+ $this.e2a_1 = null;
3045
+ else
3046
+ $this.e2a_1 = enableTrumpSevenCombination;
3047
+ if (0 === (seen0 & 32768))
3048
+ $this.f2a_1 = null;
3049
+ else
3050
+ $this.f2a_1 = enableTrumpSevenCombinationAfterDistribution;
3051
+ if (0 === (seen0 & 65536))
3052
+ $this.g2a_1 = null;
3053
+ else
3054
+ $this.g2a_1 = checkTrumpCombination;
3055
+ if (0 === (seen0 & 131072))
3056
+ $this.h2a_1 = null;
3057
+ else
3058
+ $this.h2a_1 = checkOnlyTrumpDebertz;
3059
+ if (0 === (seen0 & 262144))
3060
+ $this.i2a_1 = null;
3061
+ else
3062
+ $this.i2a_1 = distributePoints;
3063
+ if (0 === (seen0 & 524288))
3064
+ $this.j2a_1 = null;
3065
+ else
3066
+ $this.j2a_1 = pointsDistributeMode;
3067
+ if (0 === (seen0 & 1048576))
3068
+ $this.k2a_1 = null;
3069
+ else
3070
+ $this.k2a_1 = enableFineIfNoBribes;
3071
+ if (0 === (seen0 & 2097152))
3072
+ $this.l2a_1 = null;
3073
+ else
3074
+ $this.l2a_1 = fineIfNoBribes;
3075
+ if (0 === (seen0 & 4194304))
3076
+ $this.m2a_1 = null;
3077
+ else
3078
+ $this.m2a_1 = enableFineAfterThirdByte;
3079
+ if (0 === (seen0 & 8388608))
3080
+ $this.n2a_1 = null;
3081
+ else
3082
+ $this.n2a_1 = fineAfterThirdFailedContract;
3083
+ return $this;
3084
+ }
3085
+ function RulesDto_init_$Create$(seen0, needToPutHigherTrump, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, dealerInitialCardsCount, dealerFinalCardsCount, dealerCounterClockwise, contractTypes, bidTypes, combinationsWithFirstCard, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, checkTrumpCombination, checkOnlyTrumpDebertz, distributePoints, pointsDistributeMode, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, fineAfterThirdFailedContract, serializationConstructorMarker) {
3086
+ return RulesDto_init_$Init$(seen0, needToPutHigherTrump, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, dealerInitialCardsCount, dealerFinalCardsCount, dealerCounterClockwise, contractTypes, bidTypes, combinationsWithFirstCard, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, checkTrumpCombination, checkOnlyTrumpDebertz, distributePoints, pointsDistributeMode, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, fineAfterThirdFailedContract, serializationConstructorMarker, objectCreate(protoOf(RulesDto)));
3087
+ }
3088
+ function RulesDto(needToPutHigherTrump, playerWhoChooseSuitGoFirst, winnerShuffleCards, playWithoutLiabilities, trumpCardGoToPlayerWhoShuffleCards, dealerInitialCardsCount, dealerFinalCardsCount, dealerCounterClockwise, contractTypes, bidTypes, combinationsWithFirstCard, protectBella, oneTryToProtectBella, enableFourSevensCombination, enableTrumpSevenCombination, enableTrumpSevenCombinationAfterDistribution, checkTrumpCombination, checkOnlyTrumpDebertz, distributePoints, pointsDistributeMode, enableFineIfNoBribes, fineIfNoBribes, enableFineAfterThirdByte, fineAfterThirdFailedContract) {
3089
+ Companion_getInstance_17();
3090
+ needToPutHigherTrump = needToPutHigherTrump === VOID ? null : needToPutHigherTrump;
3091
+ playerWhoChooseSuitGoFirst = playerWhoChooseSuitGoFirst === VOID ? null : playerWhoChooseSuitGoFirst;
3092
+ winnerShuffleCards = winnerShuffleCards === VOID ? null : winnerShuffleCards;
3093
+ playWithoutLiabilities = playWithoutLiabilities === VOID ? null : playWithoutLiabilities;
3094
+ trumpCardGoToPlayerWhoShuffleCards = trumpCardGoToPlayerWhoShuffleCards === VOID ? null : trumpCardGoToPlayerWhoShuffleCards;
3095
+ dealerInitialCardsCount = dealerInitialCardsCount === VOID ? null : dealerInitialCardsCount;
3096
+ dealerFinalCardsCount = dealerFinalCardsCount === VOID ? null : dealerFinalCardsCount;
3097
+ dealerCounterClockwise = dealerCounterClockwise === VOID ? null : dealerCounterClockwise;
3098
+ contractTypes = contractTypes === VOID ? null : contractTypes;
3099
+ bidTypes = bidTypes === VOID ? null : bidTypes;
3100
+ combinationsWithFirstCard = combinationsWithFirstCard === VOID ? null : combinationsWithFirstCard;
3101
+ protectBella = protectBella === VOID ? null : protectBella;
3102
+ oneTryToProtectBella = oneTryToProtectBella === VOID ? null : oneTryToProtectBella;
3103
+ enableFourSevensCombination = enableFourSevensCombination === VOID ? null : enableFourSevensCombination;
3104
+ enableTrumpSevenCombination = enableTrumpSevenCombination === VOID ? null : enableTrumpSevenCombination;
3105
+ enableTrumpSevenCombinationAfterDistribution = enableTrumpSevenCombinationAfterDistribution === VOID ? null : enableTrumpSevenCombinationAfterDistribution;
3106
+ checkTrumpCombination = checkTrumpCombination === VOID ? null : checkTrumpCombination;
3107
+ checkOnlyTrumpDebertz = checkOnlyTrumpDebertz === VOID ? null : checkOnlyTrumpDebertz;
3108
+ distributePoints = distributePoints === VOID ? null : distributePoints;
3109
+ pointsDistributeMode = pointsDistributeMode === VOID ? null : pointsDistributeMode;
3110
+ enableFineIfNoBribes = enableFineIfNoBribes === VOID ? null : enableFineIfNoBribes;
3111
+ fineIfNoBribes = fineIfNoBribes === VOID ? null : fineIfNoBribes;
3112
+ enableFineAfterThirdByte = enableFineAfterThirdByte === VOID ? null : enableFineAfterThirdByte;
3113
+ fineAfterThirdFailedContract = fineAfterThirdFailedContract === VOID ? null : fineAfterThirdFailedContract;
3114
+ this.q29_1 = needToPutHigherTrump;
3115
+ this.r29_1 = playerWhoChooseSuitGoFirst;
3116
+ this.s29_1 = winnerShuffleCards;
3117
+ this.t29_1 = playWithoutLiabilities;
3118
+ this.u29_1 = trumpCardGoToPlayerWhoShuffleCards;
3119
+ this.v29_1 = dealerInitialCardsCount;
3120
+ this.w29_1 = dealerFinalCardsCount;
3121
+ this.x29_1 = dealerCounterClockwise;
3122
+ this.y29_1 = contractTypes;
3123
+ this.z29_1 = bidTypes;
3124
+ this.a2a_1 = combinationsWithFirstCard;
3125
+ this.b2a_1 = protectBella;
3126
+ this.c2a_1 = oneTryToProtectBella;
3127
+ this.d2a_1 = enableFourSevensCombination;
3128
+ this.e2a_1 = enableTrumpSevenCombination;
3129
+ this.f2a_1 = enableTrumpSevenCombinationAfterDistribution;
3130
+ this.g2a_1 = checkTrumpCombination;
3131
+ this.h2a_1 = checkOnlyTrumpDebertz;
3132
+ this.i2a_1 = distributePoints;
3133
+ this.j2a_1 = pointsDistributeMode;
3134
+ this.k2a_1 = enableFineIfNoBribes;
3135
+ this.l2a_1 = fineIfNoBribes;
3136
+ this.m2a_1 = enableFineAfterThirdByte;
3137
+ this.n2a_1 = fineAfterThirdFailedContract;
3138
+ }
3139
+ protoOf(RulesDto).toString = function () {
3140
+ return 'RulesDto(needToPutHigherTrump=' + this.q29_1 + ', playerWhoChooseSuitGoFirst=' + this.r29_1 + ', winnerShuffleCards=' + this.s29_1 + ', playWithoutLiabilities=' + this.t29_1 + ', trumpCardGoToPlayerWhoShuffleCards=' + this.u29_1 + ', dealerInitialCardsCount=' + this.v29_1 + ', dealerFinalCardsCount=' + this.w29_1 + ', dealerCounterClockwise=' + this.x29_1 + ', contractTypes=' + toString(this.y29_1) + ', bidTypes=' + toString(this.z29_1) + ', combinationsWithFirstCard=' + toString(this.a2a_1) + ', protectBella=' + this.b2a_1 + ', oneTryToProtectBella=' + this.c2a_1 + ', enableFourSevensCombination=' + this.d2a_1 + ', enableTrumpSevenCombination=' + this.e2a_1 + ', enableTrumpSevenCombinationAfterDistribution=' + this.f2a_1 + ', checkTrumpCombination=' + this.g2a_1 + ', checkOnlyTrumpDebertz=' + this.h2a_1 + ', distributePoints=' + this.i2a_1 + ', pointsDistributeMode=' + this.j2a_1 + ', enableFineIfNoBribes=' + this.k2a_1 + ', fineIfNoBribes=' + this.l2a_1 + ', enableFineAfterThirdByte=' + this.m2a_1 + ', fineAfterThirdFailedContract=' + this.n2a_1 + ')';
3141
+ };
3142
+ protoOf(RulesDto).hashCode = function () {
3143
+ var result = this.q29_1 == null ? 0 : getBooleanHashCode(this.q29_1);
3144
+ result = imul(result, 31) + (this.r29_1 == null ? 0 : getBooleanHashCode(this.r29_1)) | 0;
3145
+ result = imul(result, 31) + (this.s29_1 == null ? 0 : getBooleanHashCode(this.s29_1)) | 0;
3146
+ result = imul(result, 31) + (this.t29_1 == null ? 0 : getBooleanHashCode(this.t29_1)) | 0;
3147
+ result = imul(result, 31) + (this.u29_1 == null ? 0 : getBooleanHashCode(this.u29_1)) | 0;
3148
+ result = imul(result, 31) + (this.v29_1 == null ? 0 : this.v29_1) | 0;
3149
+ result = imul(result, 31) + (this.w29_1 == null ? 0 : this.w29_1) | 0;
3150
+ result = imul(result, 31) + (this.x29_1 == null ? 0 : getBooleanHashCode(this.x29_1)) | 0;
3151
+ result = imul(result, 31) + (this.y29_1 == null ? 0 : hashCode(this.y29_1)) | 0;
3152
+ result = imul(result, 31) + (this.z29_1 == null ? 0 : hashCode(this.z29_1)) | 0;
3153
+ result = imul(result, 31) + (this.a2a_1 == null ? 0 : hashCode(this.a2a_1)) | 0;
3154
+ result = imul(result, 31) + (this.b2a_1 == null ? 0 : getBooleanHashCode(this.b2a_1)) | 0;
3155
+ result = imul(result, 31) + (this.c2a_1 == null ? 0 : getBooleanHashCode(this.c2a_1)) | 0;
3156
+ result = imul(result, 31) + (this.d2a_1 == null ? 0 : getBooleanHashCode(this.d2a_1)) | 0;
3157
+ result = imul(result, 31) + (this.e2a_1 == null ? 0 : getBooleanHashCode(this.e2a_1)) | 0;
3158
+ result = imul(result, 31) + (this.f2a_1 == null ? 0 : getBooleanHashCode(this.f2a_1)) | 0;
3159
+ result = imul(result, 31) + (this.g2a_1 == null ? 0 : getBooleanHashCode(this.g2a_1)) | 0;
3160
+ result = imul(result, 31) + (this.h2a_1 == null ? 0 : getBooleanHashCode(this.h2a_1)) | 0;
3161
+ result = imul(result, 31) + (this.i2a_1 == null ? 0 : getBooleanHashCode(this.i2a_1)) | 0;
3162
+ result = imul(result, 31) + (this.j2a_1 == null ? 0 : getStringHashCode(this.j2a_1)) | 0;
3163
+ result = imul(result, 31) + (this.k2a_1 == null ? 0 : getBooleanHashCode(this.k2a_1)) | 0;
3164
+ result = imul(result, 31) + (this.l2a_1 == null ? 0 : this.l2a_1) | 0;
3165
+ result = imul(result, 31) + (this.m2a_1 == null ? 0 : getBooleanHashCode(this.m2a_1)) | 0;
3166
+ result = imul(result, 31) + (this.n2a_1 == null ? 0 : this.n2a_1) | 0;
3167
+ return result;
3168
+ };
3169
+ protoOf(RulesDto).equals = function (other) {
3170
+ if (this === other)
3171
+ return true;
3172
+ if (!(other instanceof RulesDto))
3173
+ return false;
3174
+ var tmp0_other_with_cast = other instanceof RulesDto ? other : THROW_CCE();
3175
+ if (!(this.q29_1 == tmp0_other_with_cast.q29_1))
3176
+ return false;
3177
+ if (!(this.r29_1 == tmp0_other_with_cast.r29_1))
3178
+ return false;
3179
+ if (!(this.s29_1 == tmp0_other_with_cast.s29_1))
3180
+ return false;
3181
+ if (!(this.t29_1 == tmp0_other_with_cast.t29_1))
3182
+ return false;
3183
+ if (!(this.u29_1 == tmp0_other_with_cast.u29_1))
3184
+ return false;
3185
+ if (!(this.v29_1 == tmp0_other_with_cast.v29_1))
3186
+ return false;
3187
+ if (!(this.w29_1 == tmp0_other_with_cast.w29_1))
3188
+ return false;
3189
+ if (!(this.x29_1 == tmp0_other_with_cast.x29_1))
3190
+ return false;
3191
+ if (!equals(this.y29_1, tmp0_other_with_cast.y29_1))
3192
+ return false;
3193
+ if (!equals(this.z29_1, tmp0_other_with_cast.z29_1))
3194
+ return false;
3195
+ if (!equals(this.a2a_1, tmp0_other_with_cast.a2a_1))
3196
+ return false;
3197
+ if (!(this.b2a_1 == tmp0_other_with_cast.b2a_1))
3198
+ return false;
3199
+ if (!(this.c2a_1 == tmp0_other_with_cast.c2a_1))
3200
+ return false;
3201
+ if (!(this.d2a_1 == tmp0_other_with_cast.d2a_1))
3202
+ return false;
3203
+ if (!(this.e2a_1 == tmp0_other_with_cast.e2a_1))
3204
+ return false;
3205
+ if (!(this.f2a_1 == tmp0_other_with_cast.f2a_1))
3206
+ return false;
3207
+ if (!(this.g2a_1 == tmp0_other_with_cast.g2a_1))
3208
+ return false;
3209
+ if (!(this.h2a_1 == tmp0_other_with_cast.h2a_1))
3210
+ return false;
3211
+ if (!(this.i2a_1 == tmp0_other_with_cast.i2a_1))
3212
+ return false;
3213
+ if (!(this.j2a_1 == tmp0_other_with_cast.j2a_1))
3214
+ return false;
3215
+ if (!(this.k2a_1 == tmp0_other_with_cast.k2a_1))
3216
+ return false;
3217
+ if (!(this.l2a_1 == tmp0_other_with_cast.l2a_1))
3218
+ return false;
3219
+ if (!(this.m2a_1 == tmp0_other_with_cast.m2a_1))
3220
+ return false;
3221
+ if (!(this.n2a_1 == tmp0_other_with_cast.n2a_1))
3222
+ return false;
3223
+ return true;
3224
+ };
3225
+ function BufferedAction() {
3226
+ }
3227
+ function IgnoreBufferForAction() {
3228
+ }
3229
+ function ReleaseBufferTriggerAction() {
3230
+ }
3231
+ function NotValidateIfGameFinished() {
3232
+ }
3233
+ function NotValidateIfGameFinishing() {
3234
+ }
3235
+ function Action() {
3236
+ }
3237
+ function Store() {
3238
+ }
3239
+ function enumToString(_this__u8e3s4, mapping) {
3240
+ // Inline function 'kotlin.collections.find' call
3241
+ var this_0 = mapping.s();
3242
+ var tmp$ret$1;
3243
+ $l$block: {
3244
+ // Inline function 'kotlin.collections.firstOrNull' call
3245
+ var tmp0_iterator = this_0.j();
3246
+ while (tmp0_iterator.k()) {
3247
+ var element = tmp0_iterator.l();
3248
+ // Inline function 'com.logic.utils.enumToString.<anonymous>' call
3249
+ if (equals(element.a2(), _this__u8e3s4)) {
3250
+ tmp$ret$1 = element;
3251
+ break $l$block;
3252
+ }
3253
+ }
3254
+ tmp$ret$1 = null;
3255
+ }
3256
+ var tmp0_safe_receiver = tmp$ret$1;
3257
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z1();
3258
+ var tmp;
3259
+ if (tmp1_elvis_lhs == null) {
3260
+ throw IllegalArgumentException_init_$Create$("can't find key " + _this__u8e3s4.toString() + ', in mapping ' + toString_0(mapping));
3261
+ } else {
3262
+ tmp = tmp1_elvis_lhs;
3263
+ }
3264
+ return tmp;
3265
+ }
3266
+ function toDomainEnum(_this__u8e3s4, mapping, exceptionProvider) {
3267
+ var tmp;
3268
+ if (exceptionProvider === VOID) {
3269
+ tmp = toDomainEnum$lambda(_this__u8e3s4, mapping);
3270
+ } else {
3271
+ tmp = exceptionProvider;
3272
+ }
3273
+ exceptionProvider = tmp;
3274
+ var tmp0_elvis_lhs = mapping.d2(_this__u8e3s4);
3275
+ var tmp_0;
3276
+ if (tmp0_elvis_lhs == null) {
3277
+ throw exceptionProvider(_this__u8e3s4);
3278
+ } else {
3279
+ tmp_0 = tmp0_elvis_lhs;
3280
+ }
3281
+ return tmp_0;
3282
+ }
3283
+ function toDomainEnumSafe(_this__u8e3s4, mapping) {
3284
+ var tmp;
3285
+ try {
3286
+ tmp = toDomainEnum(_this__u8e3s4, mapping);
3287
+ } catch ($p) {
3288
+ var tmp_0;
3289
+ if ($p instanceof Error) {
3290
+ var t = $p;
3291
+ tmp_0 = null;
3292
+ } else {
3293
+ throw $p;
3294
+ }
3295
+ tmp = tmp_0;
3296
+ }
3297
+ return tmp;
3298
+ }
3299
+ function toDomainEnum$lambda($this_toDomainEnum, $mapping) {
3300
+ return function (it) {
3301
+ return IllegalArgumentException_init_$Create$('Unknown value ' + toString($this_toDomainEnum) + ' for enum mapping ' + toString_0($mapping));
3302
+ };
3303
+ }
3304
+ function getItemIndex(_this__u8e3s4, predicate) {
3305
+ // Inline function 'kotlin.collections.mapIndexedNotNull' call
3306
+ // Inline function 'kotlin.collections.mapIndexedNotNullTo' call
3307
+ var destination = ArrayList_init_$Create$();
3308
+ // Inline function 'kotlin.collections.forEachIndexed' call
3309
+ var index = 0;
3310
+ var tmp0_iterator = _this__u8e3s4.j();
3311
+ while (tmp0_iterator.k()) {
3312
+ var item = tmp0_iterator.l();
3313
+ // Inline function 'kotlin.collections.mapIndexedNotNullTo.<anonymous>' call
3314
+ var tmp1 = index;
3315
+ index = tmp1 + 1 | 0;
3316
+ // Inline function 'com.logic.utils.getItemIndex.<anonymous>' call
3317
+ var index_0 = checkIndexOverflow(tmp1);
3318
+ var tmp;
3319
+ if (predicate(item)) {
3320
+ tmp = index_0;
3321
+ } else {
3322
+ tmp = null;
3323
+ }
3324
+ var tmp0_safe_receiver = tmp;
3325
+ if (tmp0_safe_receiver == null)
3326
+ null;
3327
+ else {
3328
+ // Inline function 'kotlin.let' call
3329
+ // Inline function 'kotlin.contracts.contract' call
3330
+ destination.e(tmp0_safe_receiver);
3331
+ }
3332
+ }
3333
+ return single(destination);
3334
+ }
3335
+ function _get_$cachedSerializer__te6jhj_9($this) {
3336
+ return $this.u2a_1.a2();
3337
+ }
3338
+ function LogType$Companion$_anonymous__d4fjnz() {
3339
+ return createSimpleEnumSerializer('com.logic.utils.logger.outputs.LogType', values_3());
3340
+ }
3341
+ var LogType_DEBUG_instance;
3342
+ var LogType_ERROR_instance;
3343
+ var LogType_WARN_instance;
3344
+ var LogType_VERBOSE_instance;
3345
+ var LogType_INFO_instance;
3346
+ function values_3() {
3347
+ return [LogType_DEBUG_getInstance(), LogType_ERROR_getInstance(), LogType_WARN_getInstance(), LogType_VERBOSE_getInstance(), LogType_INFO_getInstance()];
3348
+ }
3349
+ function valueOf_2(value) {
3350
+ switch (value) {
3351
+ case 'DEBUG':
3352
+ return LogType_DEBUG_getInstance();
3353
+ case 'ERROR':
3354
+ return LogType_ERROR_getInstance();
3355
+ case 'WARN':
3356
+ return LogType_WARN_getInstance();
3357
+ case 'VERBOSE':
3358
+ return LogType_VERBOSE_getInstance();
3359
+ case 'INFO':
3360
+ return LogType_INFO_getInstance();
3361
+ default:
3362
+ LogType_initEntries();
3363
+ THROW_IAE('No enum constant value.');
3364
+ break;
3365
+ }
3366
+ }
3367
+ function get_entries_1() {
3368
+ if ($ENTRIES_1 == null)
3369
+ $ENTRIES_1 = enumEntries(values_3());
3370
+ return $ENTRIES_1;
3371
+ }
3372
+ function Companion_16() {
3373
+ Companion_instance_16 = this;
3374
+ var tmp = this;
3375
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
3376
+ tmp.u2a_1 = lazy(tmp_0, LogType$Companion$_anonymous__d4fjnz);
3377
+ }
3378
+ protoOf(Companion_16).d17 = function () {
3379
+ return _get_$cachedSerializer__te6jhj_9(this);
3380
+ };
3381
+ protoOf(Companion_16).mv = function (typeParamsSerializers) {
3382
+ return this.d17();
3383
+ };
3384
+ var Companion_instance_16;
3385
+ function Companion_getInstance_18() {
3386
+ LogType_initEntries();
3387
+ if (Companion_instance_16 == null)
3388
+ new Companion_16();
3389
+ return Companion_instance_16;
3390
+ }
3391
+ var LogType_entriesInitialized;
3392
+ function LogType_initEntries() {
3393
+ if (LogType_entriesInitialized)
3394
+ return Unit_instance;
3395
+ LogType_entriesInitialized = true;
3396
+ LogType_DEBUG_instance = new LogType('DEBUG', 0);
3397
+ LogType_ERROR_instance = new LogType('ERROR', 1);
3398
+ LogType_WARN_instance = new LogType('WARN', 2);
3399
+ LogType_VERBOSE_instance = new LogType('VERBOSE', 3);
3400
+ LogType_INFO_instance = new LogType('INFO', 4);
3401
+ Companion_getInstance_18();
3402
+ }
3403
+ var $ENTRIES_1;
3404
+ function LogType(name, ordinal) {
3405
+ Enum.call(this, name, ordinal);
3406
+ }
3407
+ function LogType_DEBUG_getInstance() {
3408
+ LogType_initEntries();
3409
+ return LogType_DEBUG_instance;
3410
+ }
3411
+ function LogType_ERROR_getInstance() {
3412
+ LogType_initEntries();
3413
+ return LogType_ERROR_instance;
3414
+ }
3415
+ function LogType_WARN_getInstance() {
3416
+ LogType_initEntries();
3417
+ return LogType_WARN_instance;
3418
+ }
3419
+ function LogType_VERBOSE_getInstance() {
3420
+ LogType_initEntries();
3421
+ return LogType_VERBOSE_instance;
3422
+ }
3423
+ function LogType_INFO_getInstance() {
3424
+ LogType_initEntries();
3425
+ return LogType_INFO_instance;
3426
+ }
3427
+ function ObservableLoggerOutput() {
3428
+ }
3429
+ function Companion_17() {
3430
+ Companion_instance_17 = this;
3431
+ var tmp = this;
3432
+ // Inline function 'kotlin.arrayOf' call
3433
+ // Inline function 'kotlin.js.unsafeCast' call
3434
+ // Inline function 'kotlin.js.asDynamic' call
3435
+ tmp.a2b_1 = [Companion_getInstance_18().d17(), null, null, null, null];
3436
+ }
3437
+ protoOf(Companion_17).d17 = function () {
3438
+ return $serializer_getInstance_7();
3439
+ };
3440
+ var Companion_instance_17;
3441
+ function Companion_getInstance_19() {
3442
+ if (Companion_instance_17 == null)
3443
+ new Companion_17();
3444
+ return Companion_instance_17;
3445
+ }
3446
+ function $serializer_7() {
3447
+ $serializer_instance_7 = this;
3448
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.utils.logger.outputs.LoggerOutputDataDto', this, 5);
3449
+ tmp0_serialDesc.mu('type', false);
3450
+ tmp0_serialDesc.mu('key', false);
3451
+ tmp0_serialDesc.mu('tag', false);
3452
+ tmp0_serialDesc.mu('message', false);
3453
+ tmp0_serialDesc.mu('stackTrace', false);
3454
+ this.b2b_1 = tmp0_serialDesc;
3455
+ }
3456
+ protoOf($serializer_7).c2b = function (encoder, value) {
3457
+ var tmp0_desc = this.b2b_1;
3458
+ var tmp1_output = encoder.wm(tmp0_desc);
3459
+ var tmp2_cached = Companion_getInstance_19().a2b_1;
3460
+ tmp1_output.no(tmp0_desc, 0, tmp2_cached[0], value.type);
3461
+ tmp1_output.po(tmp0_desc, 1, StringSerializer_getInstance(), value.key);
3462
+ tmp1_output.po(tmp0_desc, 2, StringSerializer_getInstance(), value.tag);
3463
+ tmp1_output.po(tmp0_desc, 3, StringSerializer_getInstance(), value.message);
3464
+ tmp1_output.po(tmp0_desc, 4, StringSerializer_getInstance(), value.stackTrace);
3465
+ tmp1_output.xm(tmp0_desc);
3466
+ };
3467
+ protoOf($serializer_7).oj = function (encoder, value) {
3468
+ return this.c2b(encoder, value instanceof LoggerOutputDataDto ? value : THROW_CCE());
3469
+ };
3470
+ protoOf($serializer_7).pj = function (decoder) {
3471
+ var tmp0_desc = this.b2b_1;
3472
+ var tmp1_flag = true;
3473
+ var tmp2_index = 0;
3474
+ var tmp3_bitMask0 = 0;
3475
+ var tmp4_local0 = null;
3476
+ var tmp5_local1 = null;
3477
+ var tmp6_local2 = null;
3478
+ var tmp7_local3 = null;
3479
+ var tmp8_local4 = null;
3480
+ var tmp9_input = decoder.wm(tmp0_desc);
3481
+ var tmp10_cached = Companion_getInstance_19().a2b_1;
3482
+ if (tmp9_input.mn()) {
3483
+ tmp4_local0 = tmp9_input.in(tmp0_desc, 0, tmp10_cached[0], tmp4_local0);
3484
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3485
+ tmp5_local1 = tmp9_input.kn(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
3486
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3487
+ tmp6_local2 = tmp9_input.kn(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
3488
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3489
+ tmp7_local3 = tmp9_input.kn(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
3490
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3491
+ tmp8_local4 = tmp9_input.kn(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
3492
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
3493
+ } else
3494
+ while (tmp1_flag) {
3495
+ tmp2_index = tmp9_input.nn(tmp0_desc);
3496
+ switch (tmp2_index) {
3497
+ case -1:
3498
+ tmp1_flag = false;
3499
+ break;
3500
+ case 0:
3501
+ tmp4_local0 = tmp9_input.in(tmp0_desc, 0, tmp10_cached[0], tmp4_local0);
3502
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
3503
+ break;
3504
+ case 1:
3505
+ tmp5_local1 = tmp9_input.kn(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
3506
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
3507
+ break;
3508
+ case 2:
3509
+ tmp6_local2 = tmp9_input.kn(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
3510
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
3511
+ break;
3512
+ case 3:
3513
+ tmp7_local3 = tmp9_input.kn(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
3514
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
3515
+ break;
3516
+ case 4:
3517
+ tmp8_local4 = tmp9_input.kn(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
3518
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
3519
+ break;
3520
+ default:
3521
+ throw UnknownFieldException_init_$Create$(tmp2_index);
3522
+ }
3523
+ }
3524
+ tmp9_input.xm(tmp0_desc);
3525
+ return LoggerOutputDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
3526
+ };
3527
+ protoOf($serializer_7).nj = function () {
3528
+ return this.b2b_1;
3529
+ };
3530
+ protoOf($serializer_7).bv = function () {
3531
+ // Inline function 'kotlin.arrayOf' call
3532
+ // Inline function 'kotlin.js.unsafeCast' call
3533
+ // Inline function 'kotlin.js.asDynamic' call
3534
+ return [Companion_getInstance_19().a2b_1[0], get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
3535
+ };
3536
+ var $serializer_instance_7;
3537
+ function $serializer_getInstance_7() {
3538
+ if ($serializer_instance_7 == null)
3539
+ new $serializer_7();
3540
+ return $serializer_instance_7;
3541
+ }
3542
+ function LoggerOutputDataDto_init_$Init$(seen0, type, key, tag, message, stackTrace, serializationConstructorMarker, $this) {
3543
+ if (!(31 === (31 & seen0))) {
3544
+ throwMissingFieldException(seen0, 31, $serializer_getInstance_7().b2b_1);
3545
+ }
3546
+ $this.type = type;
3547
+ $this.key = key;
3548
+ $this.tag = tag;
3549
+ $this.message = message;
3550
+ $this.stackTrace = stackTrace;
3551
+ return $this;
3552
+ }
3553
+ function LoggerOutputDataDto_init_$Create$(seen0, type, key, tag, message, stackTrace, serializationConstructorMarker) {
3554
+ return LoggerOutputDataDto_init_$Init$(seen0, type, key, tag, message, stackTrace, serializationConstructorMarker, objectCreate(protoOf(LoggerOutputDataDto)));
3555
+ }
3556
+ function LoggerOutputDataDto(type, key, tag, message, stackTrace) {
3557
+ Companion_getInstance_19();
3558
+ this.type = type;
3559
+ this.key = key;
3560
+ this.tag = tag;
3561
+ this.message = message;
3562
+ this.stackTrace = stackTrace;
3563
+ }
3564
+ protoOf(LoggerOutputDataDto).p1z = function () {
3565
+ return this.type;
3566
+ };
3567
+ protoOf(LoggerOutputDataDto).z1 = function () {
3568
+ return this.key;
3569
+ };
3570
+ protoOf(LoggerOutputDataDto).w25 = function () {
3571
+ return this.tag;
3572
+ };
3573
+ protoOf(LoggerOutputDataDto).e9 = function () {
3574
+ return this.message;
3575
+ };
3576
+ protoOf(LoggerOutputDataDto).d2b = function () {
3577
+ return this.stackTrace;
3578
+ };
3579
+ protoOf(LoggerOutputDataDto).toMessageLog = function () {
3580
+ var time = toLocalDateTime(System_instance.c1g(), Companion_getInstance_0().e1w());
3581
+ var tmp = time.toString();
3582
+ // Inline function 'kotlin.text.lowercase' call
3583
+ // Inline function 'kotlin.js.asDynamic' call
3584
+ var tmp_0 = this.type.toString().toLowerCase();
3585
+ // Inline function 'kotlin.takeIf' call
3586
+ var this_0 = '[' + this.tag + ']';
3587
+ // Inline function 'kotlin.contracts.contract' call
3588
+ var tmp_1;
3589
+ // Inline function 'com.logic.utils.logger.outputs.LoggerOutputDataDto.toMessageLog.<anonymous>' call
3590
+ if (!(this.tag == null)) {
3591
+ tmp_1 = this_0;
3592
+ } else {
3593
+ tmp_1 = null;
3594
+ }
3595
+ var tmp_2 = tmp_1;
3596
+ // Inline function 'kotlin.takeUnless' call
3597
+ var this_1 = '' + this.message;
3598
+ // Inline function 'kotlin.contracts.contract' call
3599
+ var tmp_3;
3600
+ // Inline function 'com.logic.utils.logger.outputs.LoggerOutputDataDto.toMessageLog.<anonymous>' call
3601
+ // Inline function 'kotlin.text.isNullOrEmpty' call
3602
+ var this_2 = this.message;
3603
+ // Inline function 'kotlin.contracts.contract' call
3604
+ if (!(this_2 == null || charSequenceLength(this_2) === 0)) {
3605
+ tmp_3 = this_1;
3606
+ } else {
3607
+ tmp_3 = null;
3608
+ }
3609
+ var tmp_4 = tmp_3;
3610
+ // Inline function 'kotlin.takeUnless' call
3611
+ var this_3 = '' + this.stackTrace;
3612
+ // Inline function 'kotlin.contracts.contract' call
3613
+ var tmp_5;
3614
+ // Inline function 'com.logic.utils.logger.outputs.LoggerOutputDataDto.toMessageLog.<anonymous>' call
3615
+ // Inline function 'kotlin.text.isNullOrEmpty' call
3616
+ var this_4 = this.stackTrace;
3617
+ // Inline function 'kotlin.contracts.contract' call
3618
+ if (!(this_4 == null || charSequenceLength(this_4) === 0)) {
3619
+ tmp_5 = this_3;
3620
+ } else {
3621
+ tmp_5 = null;
3622
+ }
3623
+ var tmp$ret$9 = tmp_5;
3624
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, tmp_4, tmp$ret$9]), ' ');
3625
+ };
3626
+ protoOf(LoggerOutputDataDto).zc = function () {
3627
+ return this.type;
3628
+ };
3629
+ protoOf(LoggerOutputDataDto).ad = function () {
3630
+ return this.key;
3631
+ };
3632
+ protoOf(LoggerOutputDataDto).sg = function () {
3633
+ return this.tag;
3634
+ };
3635
+ protoOf(LoggerOutputDataDto).t1w = function () {
3636
+ return this.message;
3637
+ };
3638
+ protoOf(LoggerOutputDataDto).q26 = function () {
3639
+ return this.stackTrace;
3640
+ };
3641
+ protoOf(LoggerOutputDataDto).e2b = function (type, key, tag, message, stackTrace) {
3642
+ return new LoggerOutputDataDto(type, key, tag, message, stackTrace);
3643
+ };
3644
+ protoOf(LoggerOutputDataDto).copy = function (type, key, tag, message, stackTrace, $super) {
3645
+ type = type === VOID ? this.type : type;
3646
+ key = key === VOID ? this.key : key;
3647
+ tag = tag === VOID ? this.tag : tag;
3648
+ message = message === VOID ? this.message : message;
3649
+ stackTrace = stackTrace === VOID ? this.stackTrace : stackTrace;
3650
+ return this.e2b(type, key, tag, message, stackTrace);
3651
+ };
3652
+ protoOf(LoggerOutputDataDto).toString = function () {
3653
+ return 'LoggerOutputDataDto(type=' + this.type.toString() + ', key=' + this.key + ', tag=' + this.tag + ', message=' + this.message + ', stackTrace=' + this.stackTrace + ')';
3654
+ };
3655
+ protoOf(LoggerOutputDataDto).hashCode = function () {
3656
+ var result = this.type.hashCode();
3657
+ result = imul(result, 31) + (this.key == null ? 0 : getStringHashCode(this.key)) | 0;
3658
+ result = imul(result, 31) + (this.tag == null ? 0 : getStringHashCode(this.tag)) | 0;
3659
+ result = imul(result, 31) + (this.message == null ? 0 : getStringHashCode(this.message)) | 0;
3660
+ result = imul(result, 31) + (this.stackTrace == null ? 0 : getStringHashCode(this.stackTrace)) | 0;
3661
+ return result;
3662
+ };
3663
+ protoOf(LoggerOutputDataDto).equals = function (other) {
3664
+ if (this === other)
3665
+ return true;
3666
+ if (!(other instanceof LoggerOutputDataDto))
3667
+ return false;
3668
+ var tmp0_other_with_cast = other instanceof LoggerOutputDataDto ? other : THROW_CCE();
3669
+ if (!this.type.equals(tmp0_other_with_cast.type))
3670
+ return false;
3671
+ if (!(this.key == tmp0_other_with_cast.key))
3672
+ return false;
3673
+ if (!(this.tag == tmp0_other_with_cast.tag))
3674
+ return false;
3675
+ if (!(this.message == tmp0_other_with_cast.message))
3676
+ return false;
3677
+ if (!(this.stackTrace == tmp0_other_with_cast.stackTrace))
3678
+ return false;
3679
+ return true;
3680
+ };
3681
+ //region block: post-declaration
3682
+ protoOf($serializer).cv = typeParametersSerializers;
3683
+ defineProp(protoOf(CoreConfig), 'requireDirectoryPath', protoOf(CoreConfig).r25);
3684
+ defineProp(protoOf(PlayerLostConnectionReason), 'playerId', function () {
3685
+ return this.v25();
3686
+ });
3687
+ defineProp(protoOf(PlayerLostConnectionReason), 'connectionState', function () {
3688
+ return this.x25();
3689
+ });
3690
+ defineProp(protoOf(PlayerTimeoutReason), 'playerId', function () {
3691
+ return this.v25();
3692
+ });
3693
+ defineProp(protoOf(PlayerTimeoutReason), 'connectionState', function () {
3694
+ return this.x25();
3695
+ });
3696
+ defineProp(protoOf(PlayerExitReason), 'playerId', function () {
3697
+ return this.v25();
3698
+ });
3699
+ defineProp(protoOf(PlayerExitReason), 'connectionState', function () {
3700
+ return this.x25();
3701
+ });
3702
+ defineProp(protoOf(Reason), 'name', protoOf(Reason).k2);
3703
+ defineProp(protoOf(Reason), 'ordinal', protoOf(Reason).l2);
3704
+ defineProp(protoOf(Reason_0), 'name', protoOf(Reason_0).k2);
3705
+ defineProp(protoOf(Reason_0), 'ordinal', protoOf(Reason_0).l2);
3706
+ defineProp(protoOf(GameUserInfo), 'playerId', function () {
3707
+ return this.v25();
3708
+ });
3709
+ defineProp(protoOf(PlayerIndex), 'playerId', function () {
3710
+ return this.v25();
3711
+ });
3712
+ defineProp(protoOf(PlayerConnectionState), 'isLive', protoOf(PlayerConnectionState).s27);
3713
+ defineProp(protoOf(PlayerConnectionState), 'isTimeOut', protoOf(PlayerConnectionState).t27);
3714
+ defineProp(protoOf(PlayerConnectionState), 'isLostConnection', protoOf(PlayerConnectionState).u27);
3715
+ defineProp(protoOf(PlayerConnectionState), 'isLeft', protoOf(PlayerConnectionState).v27);
3716
+ defineProp(protoOf(PlayerConnectionState), 'isDeleted', protoOf(PlayerConnectionState).w27);
3717
+ defineProp(protoOf(PlayerConnectionState), 'isDisconnecting', protoOf(PlayerConnectionState).x27);
3718
+ defineProp(protoOf(PlayerConnectionState), 'isNotAlive', protoOf(PlayerConnectionState).y27);
3719
+ defineProp(protoOf(PlayerConnectionState), 'isDisconnected', protoOf(PlayerConnectionState).z27);
3720
+ defineProp(protoOf(PlayerConnectionState), 'isClientDisconnectReason', protoOf(PlayerConnectionState).a28);
3721
+ defineProp(protoOf(PlayerConnectionState), 'isServerDisconnectReason', protoOf(PlayerConnectionState).b28);
3722
+ defineProp(protoOf(PlayerConnectionState), 'name', protoOf(PlayerConnectionState).k2);
3723
+ defineProp(protoOf(PlayerConnectionState), 'ordinal', protoOf(PlayerConnectionState).l2);
3724
+ protoOf($serializer_0).cv = typeParametersSerializers;
3725
+ protoOf($serializer_1).cv = typeParametersSerializers;
3726
+ protoOf($serializer_2).cv = typeParametersSerializers;
3727
+ protoOf($serializer_3).cv = typeParametersSerializers;
3728
+ protoOf($serializer_4).cv = typeParametersSerializers;
3729
+ protoOf($serializer_5).cv = typeParametersSerializers;
3730
+ protoOf($serializer_6).cv = typeParametersSerializers;
3731
+ defineProp(protoOf(LogType), 'name', protoOf(LogType).k2);
3732
+ defineProp(protoOf(LogType), 'ordinal', protoOf(LogType).l2);
3733
+ protoOf($serializer_7).cv = typeParametersSerializers;
3734
+ //endregion
3735
+ //region block: init
3736
+ GameEngineConfig_instance = new GameEngineConfig();
3737
+ Companion_instance_0 = new Companion_0();
3738
+ Companion_instance_1 = new Companion_1();
3739
+ Companion_instance_4 = new Companion_4();
3740
+ Companion_instance_7 = new Companion_7();
3741
+ Companion_instance_9 = new Companion_9();
3742
+ Companion_instance_10 = new Companion_10();
3743
+ Companion_instance_11 = new Companion_11();
3744
+ Companion_instance_12 = new Companion_12();
3745
+ Companion_instance_13 = new Companion_13();
3746
+ Companion_instance_14 = new Companion_14();
3747
+ //endregion
3748
+ //region block: exports
3749
+ function $jsExportAll$(_) {
3750
+ var $com = _.com || (_.com = {});
3751
+ var $com$logic = $com.logic || ($com.logic = {});
3752
+ defineProp($com$logic, 'GameEngineConfig', GameEngineConfig_getInstance);
3753
+ var $com = _.com || (_.com = {});
3754
+ var $com$logic = $com.logic || ($com.logic = {});
3755
+ var $com$logic$data = $com$logic.data || ($com$logic.data = {});
3756
+ var $com$logic$data$models = $com$logic$data.models || ($com$logic$data.models = {});
3757
+ $com$logic$data$models.CoreConfig = CoreConfig;
3758
+ defineProp($com$logic$data$models.CoreConfig, 'Companion', Companion_getInstance_3);
3759
+ var $com = _.com || (_.com = {});
3760
+ var $com$logic = $com.logic || ($com.logic = {});
3761
+ var $com$logic$data = $com$logic.data || ($com$logic.data = {});
3762
+ var $com$logic$data$models = $com$logic$data.models || ($com$logic$data.models = {});
3763
+ $com$logic$data$models.TerminationGameReason = TerminationGameReason;
3764
+ $com$logic$data$models.PlayerLostConnectionReason = PlayerLostConnectionReason;
3765
+ $com$logic$data$models.PlayerTimeoutReason = PlayerTimeoutReason;
3766
+ $com$logic$data$models.PlayerExitReason = PlayerExitReason;
3767
+ $com$logic$data$models.GameFinishedReason = GameFinishedReason;
3768
+ $com$logic$data$models.GameFinishedReason.Reason = Reason;
3769
+ $com$logic$data$models.GameFinishedReason.Reason.values = values;
3770
+ $com$logic$data$models.GameFinishedReason.Reason.valueOf = valueOf;
3771
+ defineProp($com$logic$data$models.GameFinishedReason.Reason, 'DEPLOY', Reason_DEPLOY_getInstance);
3772
+ defineProp($com$logic$data$models.GameFinishedReason.Reason, 'PLAYER_DELETED', Reason_PLAYER_DELETED_getInstance);
3773
+ defineProp($com$logic$data$models.GameFinishedReason.Reason, 'FINISHED', Reason_FINISHED_getInstance);
3774
+ defineProp($com$logic$data$models.GameFinishedReason.Reason, 'NO_ACTIVE_PLAYERS', Reason_NO_ACTIVE_PLAYERS_getInstance);
3775
+ defineProp($com$logic$data$models.GameFinishedReason.Reason, 'GAME_NOT_EXISTS', Reason_GAME_NOT_EXISTS_getInstance);
3776
+ defineProp($com$logic$data$models.GameFinishedReason.Reason, 'Companion', Companion_getInstance_4);
3777
+ $com$logic$data$models.GameErrorReason = GameErrorReason;
3778
+ $com$logic$data$models.GameErrorReason.Reason = Reason_0;
3779
+ $com$logic$data$models.GameErrorReason.Reason.values = values_0;
3780
+ $com$logic$data$models.GameErrorReason.Reason.valueOf = valueOf_0;
3781
+ defineProp($com$logic$data$models.GameErrorReason.Reason, 'SERVER_ERROR', Reason_SERVER_ERROR_getInstance);
3782
+ defineProp($com$logic$data$models.GameErrorReason.Reason, 'INTERNAL_ERROR', Reason_INTERNAL_ERROR_getInstance);
3783
+ defineProp($com$logic$data$models.GameErrorReason.Reason, 'GAME_NOT_EXISTS', Reason_GAME_NOT_EXISTS_getInstance_0);
3784
+ defineProp($com$logic$data$models.GameErrorReason.Reason, 'WRONG_PLAYER_TURN', Reason_WRONG_PLAYER_TURN_getInstance);
3785
+ defineProp($com$logic$data$models.GameErrorReason.Reason, 'PLAYER_DISCONNECTED', Reason_PLAYER_DISCONNECTED_getInstance);
3786
+ defineProp($com$logic$data$models.GameErrorReason.Reason, 'Companion', Companion_getInstance_5);
3787
+ defineProp($com$logic$data$models, 'WaitingForConnectionReason', WaitingForConnectionReason_getInstance);
3788
+ defineProp($com$logic$data$models, 'ProcessingReason', ProcessingReason_getInstance);
3789
+ var $com = _.com || (_.com = {});
3790
+ var $com$logic = $com.logic || ($com.logic = {});
3791
+ var $com$logic$data = $com$logic.data || ($com$logic.data = {});
3792
+ var $com$logic$data$models = $com$logic$data.models || ($com$logic$data.models = {});
3793
+ var $com$logic$data$models$player = $com$logic$data$models.player || ($com$logic$data$models.player = {});
3794
+ $com$logic$data$models$player.GameUserInfo = GameUserInfo;
3795
+ var $com = _.com || (_.com = {});
3796
+ var $com$logic = $com.logic || ($com.logic = {});
3797
+ var $com$logic$data = $com$logic.data || ($com$logic.data = {});
3798
+ var $com$logic$data$models = $com$logic$data.models || ($com$logic$data.models = {});
3799
+ var $com$logic$data$models$player = $com$logic$data$models.player || ($com$logic$data$models.player = {});
3800
+ $com$logic$data$models$player.getPlayer = getPlayer;
3801
+ $com$logic$data$models$player.getPlayerIndex = getPlayerIndex;
3802
+ var $com = _.com || (_.com = {});
3803
+ var $com$logic = $com.logic || ($com.logic = {});
3804
+ var $com$logic$data = $com$logic.data || ($com$logic.data = {});
3805
+ var $com$logic$data$models = $com$logic$data.models || ($com$logic$data.models = {});
3806
+ var $com$logic$data$models$player = $com$logic$data$models.player || ($com$logic$data$models.player = {});
3807
+ $com$logic$data$models$player.PlayerConnectionState = PlayerConnectionState;
3808
+ $com$logic$data$models$player.PlayerConnectionState.values = values_1;
3809
+ $com$logic$data$models$player.PlayerConnectionState.valueOf = valueOf_1;
3810
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'LIVE', PlayerConnectionState_LIVE_getInstance);
3811
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'TIMEOUT', PlayerConnectionState_TIMEOUT_getInstance);
3812
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'LOST_CONNECTION', PlayerConnectionState_LOST_CONNECTION_getInstance);
3813
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'LEFT', PlayerConnectionState_LEFT_getInstance);
3814
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'DISCONNECTING', PlayerConnectionState_DISCONNECTING_getInstance);
3815
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'DELETED', PlayerConnectionState_DELETED_getInstance);
3816
+ defineProp($com$logic$data$models$player.PlayerConnectionState, 'Companion', Companion_getInstance_7);
3817
+ var $com = _.com || (_.com = {});
3818
+ var $com$logic = $com.logic || ($com.logic = {});
3819
+ var $com$logic$redux = $com$logic.redux || ($com$logic.redux = {});
3820
+ var $com$logic$redux$actions = $com$logic$redux.actions || ($com$logic$redux.actions = {});
3821
+ var $com = _.com || (_.com = {});
3822
+ var $com$logic = $com.logic || ($com.logic = {});
3823
+ var $com$logic$redux = $com$logic.redux || ($com$logic.redux = {});
3824
+ var $com$logic$redux$actions = $com$logic$redux.actions || ($com$logic$redux.actions = {});
3825
+ var $com$logic$redux$actions$validation = $com$logic$redux$actions.validation || ($com$logic$redux$actions.validation = {});
3826
+ var $com = _.com || (_.com = {});
3827
+ var $com$logic = $com.logic || ($com.logic = {});
3828
+ var $com$logic$redux = $com$logic.redux || ($com$logic.redux = {});
3829
+ var $com$logic$redux$actions = $com$logic$redux.actions || ($com$logic$redux.actions = {});
3830
+ var $com$logic$redux$actions$validation = $com$logic$redux$actions.validation || ($com$logic$redux$actions.validation = {});
3831
+ var $com = _.com || (_.com = {});
3832
+ var $com$logic = $com.logic || ($com.logic = {});
3833
+ var $com$logic$redux = $com$logic.redux || ($com$logic.redux = {});
3834
+ var $com$logic$redux$store = $com$logic$redux.store || ($com$logic$redux.store = {});
3835
+ var $com$logic$redux$store$definitions = $com$logic$redux$store.definitions || ($com$logic$redux$store.definitions = {});
3836
+ var $com = _.com || (_.com = {});
3837
+ var $com$logic = $com.logic || ($com.logic = {});
3838
+ var $com$logic$redux = $com$logic.redux || ($com$logic.redux = {});
3839
+ var $com$logic$redux$store = $com$logic$redux.store || ($com$logic$redux.store = {});
3840
+ var $com$logic$redux$store$definitions = $com$logic$redux$store.definitions || ($com$logic$redux$store.definitions = {});
3841
+ var $com = _.com || (_.com = {});
3842
+ var $com$logic = $com.logic || ($com.logic = {});
3843
+ var $com$logic$utils = $com$logic.utils || ($com$logic.utils = {});
3844
+ var $com$logic$utils$logger = $com$logic$utils.logger || ($com$logic$utils.logger = {});
3845
+ var $com$logic$utils$logger$outputs = $com$logic$utils$logger.outputs || ($com$logic$utils$logger.outputs = {});
3846
+ $com$logic$utils$logger$outputs.LogType = LogType;
3847
+ $com$logic$utils$logger$outputs.LogType.values = values_3;
3848
+ $com$logic$utils$logger$outputs.LogType.valueOf = valueOf_2;
3849
+ defineProp($com$logic$utils$logger$outputs.LogType, 'DEBUG', LogType_DEBUG_getInstance);
3850
+ defineProp($com$logic$utils$logger$outputs.LogType, 'ERROR', LogType_ERROR_getInstance);
3851
+ defineProp($com$logic$utils$logger$outputs.LogType, 'WARN', LogType_WARN_getInstance);
3852
+ defineProp($com$logic$utils$logger$outputs.LogType, 'VERBOSE', LogType_VERBOSE_getInstance);
3853
+ defineProp($com$logic$utils$logger$outputs.LogType, 'INFO', LogType_INFO_getInstance);
3854
+ defineProp($com$logic$utils$logger$outputs.LogType, 'Companion', Companion_getInstance_18);
3855
+ var $com = _.com || (_.com = {});
3856
+ var $com$logic = $com.logic || ($com.logic = {});
3857
+ var $com$logic$utils = $com$logic.utils || ($com$logic.utils = {});
3858
+ var $com$logic$utils$logger = $com$logic$utils.logger || ($com$logic$utils.logger = {});
3859
+ var $com$logic$utils$logger$outputs = $com$logic$utils$logger.outputs || ($com$logic$utils$logger.outputs = {});
3860
+ $com$logic$utils$logger$outputs.LoggerOutputDataDto = LoggerOutputDataDto;
3861
+ defineProp($com$logic$utils$logger$outputs.LoggerOutputDataDto, 'Companion', Companion_getInstance_19);
3862
+ }
3863
+ $jsExportAll$(_);
3864
+ _.$jsExportAll$ = $jsExportAll$;
3865
+ _.$_$ = _.$_$ || {};
3866
+ _.$_$.a = MechanicException;
3867
+ _.$_$.b = PlayerIdContract;
3868
+ _.$_$.c = PlayerIndex;
3869
+ _.$_$.d = PlayerState;
3870
+ _.$_$.e = Team;
3871
+ _.$_$.f = mapFromDto;
3872
+ _.$_$.g = mapFromDto_0;
3873
+ _.$_$.h = mapFromDto_8;
3874
+ _.$_$.i = mapToDto_0;
3875
+ _.$_$.j = mapToDto_8;
3876
+ _.$_$.k = mapToDto;
3877
+ _.$_$.l = RulesDto;
3878
+ _.$_$.m = TerminationGameReasonDto;
3879
+ _.$_$.n = notValidateWhenFinished;
3880
+ _.$_$.o = NotValidateIfGameFinished;
3881
+ _.$_$.p = notValidateWhenFinishing;
3882
+ _.$_$.q = NotValidateIfGameFinishing;
3883
+ _.$_$.r = BufferedAction;
3884
+ _.$_$.s = IgnoreBufferForAction;
3885
+ _.$_$.t = ReleaseBufferTriggerAction;
3886
+ _.$_$.u = get_actionTag;
3887
+ _.$_$.v = Action;
3888
+ _.$_$.w = enumToString;
3889
+ _.$_$.x = toDomainEnumSafe;
3890
+ _.$_$.y = toDomainEnum;
3891
+ _.$_$.z = PlayerConnectionState_LEFT_getInstance;
3892
+ _.$_$.a1 = PlayerConnectionState_LIVE_getInstance;
3893
+ _.$_$.b1 = Companion_instance_4;
3894
+ _.$_$.c1 = Companion_getInstance_7;
3895
+ _.$_$.d1 = Companion_instance_7;
3896
+ _.$_$.e1 = Companion_getInstance_8;
3897
+ _.$_$.f1 = $serializer_getInstance_5;
3898
+ _.$_$.g1 = $serializer_getInstance_6;
3899
+ _.$_$.h1 = ProcessingReasonDto_getInstance;
3900
+ _.$_$.i1 = Companion_getInstance_10;
3901
+ _.$_$.j1 = Companion_getInstance_1;
3902
+ _.$_$.k1 = RestartGameReason_getInstance;
3903
+ //endregion
3904
+ return _;
3905
+ }));
3906
+
3907
+ //# sourceMappingURL=Logic_Debertz-core.js.map