game_client_logic_deb 1.8.232 → 1.8.243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +82 -82
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +735 -730
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1556 -1521
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1496 -1496
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +12667 -12525
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +11 -6
- package/Logic_Debertz-game_client.js +4470 -4455
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2312 -2575
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +2869 -2875
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +978 -577
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2026 -2047
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1556 -1556
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2533 -2533
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +747 -747
- package/ktor-ktor-io.js +1648 -1648
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +273 -273
- package/ktor-ktor-serialization.js +131 -131
- package/ktor-ktor-utils.js +727 -727
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +263 -263
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +984 -984
- package/secure-random-secure-random.js +20 -20
- package/uuid.js +32 -32
|
@@ -53,49 +53,49 @@
|
|
|
53
53
|
//region block: imports
|
|
54
54
|
var imul = Math.imul;
|
|
55
55
|
var clz32 = Math.clz32;
|
|
56
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
58
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
56
|
+
var protoOf = kotlin_kotlin.$_$.uc;
|
|
57
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
58
|
+
var RuntimeException = kotlin_kotlin.$_$.rg;
|
|
59
59
|
var VOID = kotlin_kotlin.$_$.f;
|
|
60
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
61
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
62
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
-
var toString = kotlin_kotlin.$_$.
|
|
66
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var listOf = kotlin_kotlin.$_$.
|
|
69
|
-
var plus = kotlin_kotlin.$_$.
|
|
70
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
71
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
72
|
-
var toLong = kotlin_kotlin.$_$.
|
|
60
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
61
|
+
var captureStack = kotlin_kotlin.$_$.db;
|
|
62
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
63
|
+
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
64
|
+
var THROW_CCE = kotlin_kotlin.$_$.sg;
|
|
65
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
66
|
+
var hashCode = kotlin_kotlin.$_$.sb;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.lb;
|
|
68
|
+
var listOf = kotlin_kotlin.$_$.p8;
|
|
69
|
+
var plus = kotlin_kotlin.$_$.a9;
|
|
70
|
+
var emptyList = kotlin_kotlin.$_$.n7;
|
|
71
|
+
var defineProp = kotlin_kotlin.$_$.kb;
|
|
72
|
+
var toLong = kotlin_kotlin.$_$.wc;
|
|
73
73
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
74
74
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
75
75
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
76
76
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
77
77
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
78
78
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
79
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
79
|
+
var initMetadataForObject = kotlin_kotlin.$_$.yb;
|
|
80
80
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
81
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
81
|
+
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
82
|
+
var objectCreate = kotlin_kotlin.$_$.tc;
|
|
83
|
+
var toString_0 = kotlin_kotlin.$_$.wh;
|
|
84
84
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
85
85
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
86
86
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
87
87
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
90
|
-
var getValue = kotlin_kotlin.$_$.
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ob;
|
|
89
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
90
|
+
var getValue = kotlin_kotlin.$_$.a8;
|
|
91
91
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
92
|
+
var CoroutineImpl = kotlin_kotlin.$_$.va;
|
|
93
93
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
94
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
95
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
96
96
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
97
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
98
|
+
var arrayOf = kotlin_kotlin.$_$.gh;
|
|
99
99
|
var createKType = kotlin_kotlin.$_$.b;
|
|
100
100
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
101
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -103,37 +103,37 @@
|
|
|
103
103
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
104
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
105
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
106
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
107
107
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
108
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
109
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
110
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
111
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
112
|
-
var Long = kotlin_kotlin.$_$.
|
|
108
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
|
|
109
|
+
var KtMap = kotlin_kotlin.$_$.a6;
|
|
110
|
+
var isInterface = kotlin_kotlin.$_$.hc;
|
|
111
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.g5;
|
|
112
|
+
var Long = kotlin_kotlin.$_$.mg;
|
|
113
113
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
115
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
116
|
-
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.
|
|
117
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
118
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
119
|
-
var toMap = kotlin_kotlin.$_$.
|
|
120
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
121
|
-
var to = kotlin_kotlin.$_$.
|
|
122
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
123
|
-
var Result = kotlin_kotlin.$_$.
|
|
114
|
+
var toDuration = kotlin_kotlin.$_$.yf;
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.v2;
|
|
116
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.o2;
|
|
117
|
+
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.x9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.u9;
|
|
120
|
+
var get_lastIndex = kotlin_kotlin.$_$.i8;
|
|
121
|
+
var to = kotlin_kotlin.$_$.xh;
|
|
122
|
+
var mapOf = kotlin_kotlin.$_$.s8;
|
|
123
|
+
var Result = kotlin_kotlin.$_$.qg;
|
|
124
124
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
125
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
126
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
125
|
+
var Companion_instance = kotlin_kotlin.$_$.k5;
|
|
126
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f3;
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
128
128
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
129
129
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
130
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
130
|
+
var createFailure = kotlin_kotlin.$_$.ih;
|
|
131
131
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
132
132
|
var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
133
|
-
var toDuration_0 = kotlin_kotlin.$_$.
|
|
134
|
-
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.
|
|
133
|
+
var toDuration_0 = kotlin_kotlin.$_$.zf;
|
|
134
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.n2;
|
|
135
135
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
136
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
136
|
+
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
137
137
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
138
138
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
139
139
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
@@ -146,10 +146,10 @@
|
|
|
146
146
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
147
147
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
148
148
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
149
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
149
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
150
150
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
151
151
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
152
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
152
|
+
var Default_getInstance = kotlin_kotlin.$_$.d5;
|
|
153
153
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
154
154
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
155
155
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
202
202
|
signed = signed === VOID ? false : signed;
|
|
203
203
|
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
204
|
-
return $super === VOID ? this.
|
|
204
|
+
return $super === VOID ? this.y5p(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.y5p.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
205
205
|
}
|
|
206
206
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
207
207
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
do {
|
|
222
222
|
var i = inductionVariable;
|
|
223
223
|
inductionVariable = inductionVariable + -1 | 0;
|
|
224
|
-
var j = this.
|
|
225
|
-
list.
|
|
224
|
+
var j = this.y5u(0, i + 1 | 0);
|
|
225
|
+
list.b2(j, list.b2(i, list.o(j)));
|
|
226
226
|
}
|
|
227
227
|
while (1 <= inductionVariable);
|
|
228
228
|
return list;
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
233
233
|
//endregion
|
|
234
234
|
function Companion() {
|
|
235
|
-
this.
|
|
235
|
+
this.c5l_1 = 100001;
|
|
236
236
|
}
|
|
237
237
|
var Companion_instance_1;
|
|
238
238
|
function Companion_getInstance_2() {
|
|
@@ -243,31 +243,31 @@
|
|
|
243
243
|
cause = cause === VOID ? null : cause;
|
|
244
244
|
RuntimeException_init_$Init$(message, cause, this);
|
|
245
245
|
captureStack(this, RandomException);
|
|
246
|
-
this.
|
|
246
|
+
this.d5l_1 = code;
|
|
247
247
|
}
|
|
248
248
|
function CardDecksRequestUserData(id, count) {
|
|
249
249
|
this.id = id;
|
|
250
250
|
this.count = count;
|
|
251
251
|
}
|
|
252
|
-
protoOf(CardDecksRequestUserData).
|
|
252
|
+
protoOf(CardDecksRequestUserData).x5j = function () {
|
|
253
253
|
return this.id;
|
|
254
254
|
};
|
|
255
|
-
protoOf(CardDecksRequestUserData).
|
|
255
|
+
protoOf(CardDecksRequestUserData).e5l = function () {
|
|
256
256
|
return this.count;
|
|
257
257
|
};
|
|
258
|
-
protoOf(CardDecksRequestUserData).
|
|
258
|
+
protoOf(CardDecksRequestUserData).pe = function () {
|
|
259
259
|
return this.id;
|
|
260
260
|
};
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
261
|
+
protoOf(CardDecksRequestUserData).qe = function () {
|
|
262
262
|
return this.count;
|
|
263
263
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
264
|
+
protoOf(CardDecksRequestUserData).f5l = function (id, count) {
|
|
265
265
|
return new CardDecksRequestUserData(id, count);
|
|
266
266
|
};
|
|
267
267
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
268
268
|
id = id === VOID ? this.id : id;
|
|
269
269
|
count = count === VOID ? this.count : count;
|
|
270
|
-
return this.
|
|
270
|
+
return this.f5l(id, count);
|
|
271
271
|
};
|
|
272
272
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
273
273
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -293,25 +293,25 @@
|
|
|
293
293
|
this.players = players;
|
|
294
294
|
this.gameId = gameId;
|
|
295
295
|
}
|
|
296
|
-
protoOf(CardDeckRequestUserData).
|
|
296
|
+
protoOf(CardDeckRequestUserData).g5l = function () {
|
|
297
297
|
return this.players;
|
|
298
298
|
};
|
|
299
|
-
protoOf(CardDeckRequestUserData).
|
|
299
|
+
protoOf(CardDeckRequestUserData).h5l = function () {
|
|
300
300
|
return this.gameId;
|
|
301
301
|
};
|
|
302
|
-
protoOf(CardDeckRequestUserData).
|
|
302
|
+
protoOf(CardDeckRequestUserData).pe = function () {
|
|
303
303
|
return this.players;
|
|
304
304
|
};
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
305
|
+
protoOf(CardDeckRequestUserData).qe = function () {
|
|
306
306
|
return this.gameId;
|
|
307
307
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
308
|
+
protoOf(CardDeckRequestUserData).i5l = function (players, gameId) {
|
|
309
309
|
return new CardDeckRequestUserData(players, gameId);
|
|
310
310
|
};
|
|
311
311
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
312
312
|
players = players === VOID ? this.players : players;
|
|
313
313
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
314
|
-
return this.
|
|
314
|
+
return this.i5l(players, gameId);
|
|
315
315
|
};
|
|
316
316
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
317
317
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -337,25 +337,25 @@
|
|
|
337
337
|
this.id = id;
|
|
338
338
|
this.name = name;
|
|
339
339
|
}
|
|
340
|
-
protoOf(UserInfoData).
|
|
340
|
+
protoOf(UserInfoData).x5j = function () {
|
|
341
341
|
return this.id;
|
|
342
342
|
};
|
|
343
|
-
protoOf(UserInfoData).
|
|
343
|
+
protoOf(UserInfoData).o2 = function () {
|
|
344
344
|
return this.name;
|
|
345
345
|
};
|
|
346
|
-
protoOf(UserInfoData).
|
|
346
|
+
protoOf(UserInfoData).pe = function () {
|
|
347
347
|
return this.id;
|
|
348
348
|
};
|
|
349
|
-
protoOf(UserInfoData).
|
|
349
|
+
protoOf(UserInfoData).qe = function () {
|
|
350
350
|
return this.name;
|
|
351
351
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).j5l = function (id, name) {
|
|
353
353
|
return new UserInfoData(id, name);
|
|
354
354
|
};
|
|
355
355
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
356
356
|
id = id === VOID ? this.id : id;
|
|
357
357
|
name = name === VOID ? this.name : name;
|
|
358
|
-
return this.
|
|
358
|
+
return this.j5l(id, name);
|
|
359
359
|
};
|
|
360
360
|
protoOf(UserInfoData).toString = function () {
|
|
361
361
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -378,19 +378,19 @@
|
|
|
378
378
|
return true;
|
|
379
379
|
};
|
|
380
380
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
381
|
+
this.k5l_1 = cardDecks;
|
|
382
|
+
this.l5l_1 = responseText;
|
|
383
|
+
this.m5l_1 = id;
|
|
384
|
+
this.n5l_1 = signature;
|
|
385
385
|
}
|
|
386
386
|
protoOf(CardDeckResult).toString = function () {
|
|
387
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
387
|
+
return 'CardDeckResult(cardDecks=' + toString(this.k5l_1) + ', responseText=' + this.l5l_1 + ', id=' + this.m5l_1 + ', signature=' + this.n5l_1 + ')';
|
|
388
388
|
};
|
|
389
389
|
protoOf(CardDeckResult).hashCode = function () {
|
|
390
|
-
var result = hashCode(this.
|
|
391
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
392
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
393
|
-
result = imul(result, 31) + (this.
|
|
390
|
+
var result = hashCode(this.k5l_1);
|
|
391
|
+
result = imul(result, 31) + getStringHashCode(this.l5l_1) | 0;
|
|
392
|
+
result = imul(result, 31) + getStringHashCode(this.m5l_1) | 0;
|
|
393
|
+
result = imul(result, 31) + (this.n5l_1 == null ? 0 : getStringHashCode(this.n5l_1)) | 0;
|
|
394
394
|
return result;
|
|
395
395
|
};
|
|
396
396
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -399,13 +399,13 @@
|
|
|
399
399
|
if (!(other instanceof CardDeckResult))
|
|
400
400
|
return false;
|
|
401
401
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
402
|
-
if (!equals(this.
|
|
402
|
+
if (!equals(this.k5l_1, tmp0_other_with_cast.k5l_1))
|
|
403
403
|
return false;
|
|
404
|
-
if (!(this.
|
|
404
|
+
if (!(this.l5l_1 === tmp0_other_with_cast.l5l_1))
|
|
405
405
|
return false;
|
|
406
|
-
if (!(this.
|
|
406
|
+
if (!(this.m5l_1 === tmp0_other_with_cast.m5l_1))
|
|
407
407
|
return false;
|
|
408
|
-
if (!(this.
|
|
408
|
+
if (!(this.n5l_1 == tmp0_other_with_cast.n5l_1))
|
|
409
409
|
return false;
|
|
410
410
|
return true;
|
|
411
411
|
};
|
|
@@ -428,31 +428,31 @@
|
|
|
428
428
|
this.userData = userData;
|
|
429
429
|
this.rounds = rounds;
|
|
430
430
|
}
|
|
431
|
-
protoOf(GameCardDecksRecord).
|
|
431
|
+
protoOf(GameCardDecksRecord).o5l = function () {
|
|
432
432
|
return this.poolId;
|
|
433
433
|
};
|
|
434
|
-
protoOf(GameCardDecksRecord).
|
|
434
|
+
protoOf(GameCardDecksRecord).p5l = function () {
|
|
435
435
|
return this.signature;
|
|
436
436
|
};
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
437
|
+
protoOf(GameCardDecksRecord).q5l = function () {
|
|
438
438
|
return this.userData;
|
|
439
439
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
440
|
+
protoOf(GameCardDecksRecord).r5l = function () {
|
|
441
441
|
return this.rounds;
|
|
442
442
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
443
|
+
protoOf(GameCardDecksRecord).pe = function () {
|
|
444
444
|
return this.poolId;
|
|
445
445
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
446
|
+
protoOf(GameCardDecksRecord).qe = function () {
|
|
447
447
|
return this.signature;
|
|
448
448
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
449
|
+
protoOf(GameCardDecksRecord).fk = function () {
|
|
450
450
|
return this.userData;
|
|
451
451
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).s5l = function () {
|
|
453
453
|
return this.rounds;
|
|
454
454
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
455
|
+
protoOf(GameCardDecksRecord).t5l = function (poolId, signature, userData, rounds) {
|
|
456
456
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
457
457
|
};
|
|
458
458
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
signature = signature === VOID ? this.signature : signature;
|
|
461
461
|
userData = userData === VOID ? this.userData : userData;
|
|
462
462
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
463
|
-
return this.
|
|
463
|
+
return this.t5l(poolId, signature, userData, rounds);
|
|
464
464
|
};
|
|
465
465
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
466
466
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -492,25 +492,25 @@
|
|
|
492
492
|
this.cardDeckIndex = cardDeckIndex;
|
|
493
493
|
this.cards = cards;
|
|
494
494
|
}
|
|
495
|
-
protoOf(GameCardDeckData).
|
|
495
|
+
protoOf(GameCardDeckData).u5l = function () {
|
|
496
496
|
return this.cardDeckIndex;
|
|
497
497
|
};
|
|
498
|
-
protoOf(GameCardDeckData).
|
|
498
|
+
protoOf(GameCardDeckData).v5l = function () {
|
|
499
499
|
return this.cards;
|
|
500
500
|
};
|
|
501
|
-
protoOf(GameCardDeckData).
|
|
501
|
+
protoOf(GameCardDeckData).pe = function () {
|
|
502
502
|
return this.cardDeckIndex;
|
|
503
503
|
};
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
504
|
+
protoOf(GameCardDeckData).qe = function () {
|
|
505
505
|
return this.cards;
|
|
506
506
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).w5l = function (cardDeckIndex, cards) {
|
|
508
508
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
509
509
|
};
|
|
510
510
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
511
511
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
512
512
|
cards = cards === VOID ? this.cards : cards;
|
|
513
|
-
return this.
|
|
513
|
+
return this.w5l(cardDeckIndex, cards);
|
|
514
514
|
};
|
|
515
515
|
protoOf(GameCardDeckData).toString = function () {
|
|
516
516
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -537,25 +537,25 @@
|
|
|
537
537
|
this.baseUrl = baseUrl;
|
|
538
538
|
this.timeoutMillis = timeoutMillis;
|
|
539
539
|
}
|
|
540
|
-
protoOf(HttpConfig).
|
|
540
|
+
protoOf(HttpConfig).x5l = function () {
|
|
541
541
|
return this.baseUrl;
|
|
542
542
|
};
|
|
543
|
-
protoOf(HttpConfig).
|
|
543
|
+
protoOf(HttpConfig).y5l = function () {
|
|
544
544
|
return this.timeoutMillis;
|
|
545
545
|
};
|
|
546
|
-
protoOf(HttpConfig).
|
|
546
|
+
protoOf(HttpConfig).pe = function () {
|
|
547
547
|
return this.baseUrl;
|
|
548
548
|
};
|
|
549
|
-
protoOf(HttpConfig).
|
|
549
|
+
protoOf(HttpConfig).qe = function () {
|
|
550
550
|
return this.timeoutMillis;
|
|
551
551
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
552
|
+
protoOf(HttpConfig).f5l = function (baseUrl, timeoutMillis) {
|
|
553
553
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
554
554
|
};
|
|
555
555
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
556
556
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
557
557
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
558
|
-
return this.
|
|
558
|
+
return this.f5l(baseUrl, timeoutMillis);
|
|
559
559
|
};
|
|
560
560
|
protoOf(HttpConfig).toString = function () {
|
|
561
561
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -590,31 +590,31 @@
|
|
|
590
590
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
591
591
|
this.httpConfig = httpConfig;
|
|
592
592
|
}
|
|
593
|
-
protoOf(RandomOrgConfig).
|
|
593
|
+
protoOf(RandomOrgConfig).z5l = function () {
|
|
594
594
|
return this.apiKey;
|
|
595
595
|
};
|
|
596
|
-
protoOf(RandomOrgConfig).
|
|
596
|
+
protoOf(RandomOrgConfig).a5m = function () {
|
|
597
597
|
return this.poolSize;
|
|
598
598
|
};
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
599
|
+
protoOf(RandomOrgConfig).b5m = function () {
|
|
600
600
|
return this.thresholdForUsedPool;
|
|
601
601
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).c5m = function () {
|
|
603
603
|
return this.httpConfig;
|
|
604
604
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
605
|
+
protoOf(RandomOrgConfig).pe = function () {
|
|
606
606
|
return this.apiKey;
|
|
607
607
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
608
|
+
protoOf(RandomOrgConfig).qe = function () {
|
|
609
609
|
return this.poolSize;
|
|
610
610
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
611
|
+
protoOf(RandomOrgConfig).fk = function () {
|
|
612
612
|
return this.thresholdForUsedPool;
|
|
613
613
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).s5l = function () {
|
|
615
615
|
return this.httpConfig;
|
|
616
616
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).d5m = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
618
618
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
619
619
|
};
|
|
620
620
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
623
623
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
624
624
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
625
|
-
return this.
|
|
625
|
+
return this.d5m(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
626
626
|
};
|
|
627
627
|
protoOf(RandomOrgConfig).toString = function () {
|
|
628
628
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -659,59 +659,59 @@
|
|
|
659
659
|
function $serializer() {
|
|
660
660
|
$serializer_instance = this;
|
|
661
661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
662
|
-
tmp0_serialDesc.
|
|
663
|
-
tmp0_serialDesc.
|
|
664
|
-
this.
|
|
665
|
-
}
|
|
666
|
-
protoOf($serializer).
|
|
667
|
-
var tmp0_desc = this.
|
|
668
|
-
var tmp1_output = encoder.
|
|
669
|
-
tmp1_output.
|
|
670
|
-
tmp1_output.
|
|
671
|
-
tmp1_output.
|
|
672
|
-
};
|
|
673
|
-
protoOf($serializer).
|
|
674
|
-
return this.
|
|
675
|
-
};
|
|
676
|
-
protoOf($serializer).
|
|
677
|
-
var tmp0_desc = this.
|
|
662
|
+
tmp0_serialDesc.p4e('jsonrpc', false);
|
|
663
|
+
tmp0_serialDesc.p4e('error', false);
|
|
664
|
+
this.e5m_1 = tmp0_serialDesc;
|
|
665
|
+
}
|
|
666
|
+
protoOf($serializer).f5m = function (encoder, value) {
|
|
667
|
+
var tmp0_desc = this.e5m_1;
|
|
668
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
669
|
+
tmp1_output.p48(tmp0_desc, 0, value.g5m_1);
|
|
670
|
+
tmp1_output.t48(tmp0_desc, 1, $serializer_getInstance_0(), value.h5m_1);
|
|
671
|
+
tmp1_output.c47(tmp0_desc);
|
|
672
|
+
};
|
|
673
|
+
protoOf($serializer).o43 = function (encoder, value) {
|
|
674
|
+
return this.f5m(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
675
|
+
};
|
|
676
|
+
protoOf($serializer).p43 = function (decoder) {
|
|
677
|
+
var tmp0_desc = this.e5m_1;
|
|
678
678
|
var tmp1_flag = true;
|
|
679
679
|
var tmp2_index = 0;
|
|
680
680
|
var tmp3_bitMask0 = 0;
|
|
681
681
|
var tmp4_local0 = null;
|
|
682
682
|
var tmp5_local1 = null;
|
|
683
|
-
var tmp6_input = decoder.
|
|
684
|
-
if (tmp6_input.
|
|
685
|
-
tmp4_local0 = tmp6_input.
|
|
683
|
+
var tmp6_input = decoder.b47(tmp0_desc);
|
|
684
|
+
if (tmp6_input.q47()) {
|
|
685
|
+
tmp4_local0 = tmp6_input.l47(tmp0_desc, 0);
|
|
686
686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
687
|
-
tmp5_local1 = tmp6_input.
|
|
687
|
+
tmp5_local1 = tmp6_input.p47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
688
688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
689
689
|
} else
|
|
690
690
|
while (tmp1_flag) {
|
|
691
|
-
tmp2_index = tmp6_input.
|
|
691
|
+
tmp2_index = tmp6_input.r47(tmp0_desc);
|
|
692
692
|
switch (tmp2_index) {
|
|
693
693
|
case -1:
|
|
694
694
|
tmp1_flag = false;
|
|
695
695
|
break;
|
|
696
696
|
case 0:
|
|
697
|
-
tmp4_local0 = tmp6_input.
|
|
697
|
+
tmp4_local0 = tmp6_input.l47(tmp0_desc, 0);
|
|
698
698
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
699
699
|
break;
|
|
700
700
|
case 1:
|
|
701
|
-
tmp5_local1 = tmp6_input.
|
|
701
|
+
tmp5_local1 = tmp6_input.p47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
702
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
703
703
|
break;
|
|
704
704
|
default:
|
|
705
705
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
tmp6_input.
|
|
708
|
+
tmp6_input.c47(tmp0_desc);
|
|
709
709
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
710
710
|
};
|
|
711
|
-
protoOf($serializer).
|
|
712
|
-
return this.
|
|
711
|
+
protoOf($serializer).n43 = function () {
|
|
712
|
+
return this.e5m_1;
|
|
713
713
|
};
|
|
714
|
-
protoOf($serializer).
|
|
714
|
+
protoOf($serializer).e4f = function () {
|
|
715
715
|
// Inline function 'kotlin.arrayOf' call
|
|
716
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
717
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -725,25 +725,25 @@
|
|
|
725
725
|
}
|
|
726
726
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
727
727
|
if (!(3 === (3 & seen0))) {
|
|
728
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().e5m_1);
|
|
729
729
|
}
|
|
730
|
-
$this.
|
|
731
|
-
$this.
|
|
730
|
+
$this.g5m_1 = jsonrpc;
|
|
731
|
+
$this.h5m_1 = error;
|
|
732
732
|
return $this;
|
|
733
733
|
}
|
|
734
734
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
735
735
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
736
736
|
}
|
|
737
737
|
function ErrorResponseDto(jsonrpc, error) {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
738
|
+
this.g5m_1 = jsonrpc;
|
|
739
|
+
this.h5m_1 = error;
|
|
740
740
|
}
|
|
741
741
|
protoOf(ErrorResponseDto).toString = function () {
|
|
742
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
742
|
+
return 'ErrorResponseDto(jsonrpc=' + this.g5m_1 + ', error=' + toString_0(this.h5m_1) + ')';
|
|
743
743
|
};
|
|
744
744
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
745
|
-
var result = getStringHashCode(this.
|
|
746
|
-
result = imul(result, 31) + (this.
|
|
745
|
+
var result = getStringHashCode(this.g5m_1);
|
|
746
|
+
result = imul(result, 31) + (this.h5m_1 == null ? 0 : this.h5m_1.hashCode()) | 0;
|
|
747
747
|
return result;
|
|
748
748
|
};
|
|
749
749
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -752,68 +752,68 @@
|
|
|
752
752
|
if (!(other instanceof ErrorResponseDto))
|
|
753
753
|
return false;
|
|
754
754
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
755
|
-
if (!(this.
|
|
755
|
+
if (!(this.g5m_1 === tmp0_other_with_cast.g5m_1))
|
|
756
756
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.h5m_1, tmp0_other_with_cast.h5m_1))
|
|
758
758
|
return false;
|
|
759
759
|
return true;
|
|
760
760
|
};
|
|
761
761
|
function $serializer_0() {
|
|
762
762
|
$serializer_instance_0 = this;
|
|
763
763
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
764
|
-
tmp0_serialDesc.
|
|
765
|
-
tmp0_serialDesc.
|
|
766
|
-
this.
|
|
764
|
+
tmp0_serialDesc.p4e('code', false);
|
|
765
|
+
tmp0_serialDesc.p4e('message', false);
|
|
766
|
+
this.i5m_1 = tmp0_serialDesc;
|
|
767
767
|
}
|
|
768
|
-
protoOf($serializer_0).
|
|
769
|
-
var tmp0_desc = this.
|
|
770
|
-
var tmp1_output = encoder.
|
|
771
|
-
tmp1_output.
|
|
772
|
-
tmp1_output.
|
|
773
|
-
tmp1_output.
|
|
768
|
+
protoOf($serializer_0).j5m = function (encoder, value) {
|
|
769
|
+
var tmp0_desc = this.i5m_1;
|
|
770
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
771
|
+
tmp1_output.t48(tmp0_desc, 0, IntSerializer_getInstance(), value.k5m_1);
|
|
772
|
+
tmp1_output.t48(tmp0_desc, 1, StringSerializer_getInstance(), value.l5m_1);
|
|
773
|
+
tmp1_output.c47(tmp0_desc);
|
|
774
774
|
};
|
|
775
|
-
protoOf($serializer_0).
|
|
776
|
-
return this.
|
|
775
|
+
protoOf($serializer_0).o43 = function (encoder, value) {
|
|
776
|
+
return this.j5m(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
777
777
|
};
|
|
778
|
-
protoOf($serializer_0).
|
|
779
|
-
var tmp0_desc = this.
|
|
778
|
+
protoOf($serializer_0).p43 = function (decoder) {
|
|
779
|
+
var tmp0_desc = this.i5m_1;
|
|
780
780
|
var tmp1_flag = true;
|
|
781
781
|
var tmp2_index = 0;
|
|
782
782
|
var tmp3_bitMask0 = 0;
|
|
783
783
|
var tmp4_local0 = null;
|
|
784
784
|
var tmp5_local1 = null;
|
|
785
|
-
var tmp6_input = decoder.
|
|
786
|
-
if (tmp6_input.
|
|
787
|
-
tmp4_local0 = tmp6_input.
|
|
785
|
+
var tmp6_input = decoder.b47(tmp0_desc);
|
|
786
|
+
if (tmp6_input.q47()) {
|
|
787
|
+
tmp4_local0 = tmp6_input.p47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
788
788
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
789
|
-
tmp5_local1 = tmp6_input.
|
|
789
|
+
tmp5_local1 = tmp6_input.p47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
790
790
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
791
791
|
} else
|
|
792
792
|
while (tmp1_flag) {
|
|
793
|
-
tmp2_index = tmp6_input.
|
|
793
|
+
tmp2_index = tmp6_input.r47(tmp0_desc);
|
|
794
794
|
switch (tmp2_index) {
|
|
795
795
|
case -1:
|
|
796
796
|
tmp1_flag = false;
|
|
797
797
|
break;
|
|
798
798
|
case 0:
|
|
799
|
-
tmp4_local0 = tmp6_input.
|
|
799
|
+
tmp4_local0 = tmp6_input.p47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
800
800
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
801
801
|
break;
|
|
802
802
|
case 1:
|
|
803
|
-
tmp5_local1 = tmp6_input.
|
|
803
|
+
tmp5_local1 = tmp6_input.p47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
804
804
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
805
805
|
break;
|
|
806
806
|
default:
|
|
807
807
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
tmp6_input.
|
|
810
|
+
tmp6_input.c47(tmp0_desc);
|
|
811
811
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
812
812
|
};
|
|
813
|
-
protoOf($serializer_0).
|
|
814
|
-
return this.
|
|
813
|
+
protoOf($serializer_0).n43 = function () {
|
|
814
|
+
return this.i5m_1;
|
|
815
815
|
};
|
|
816
|
-
protoOf($serializer_0).
|
|
816
|
+
protoOf($serializer_0).e4f = function () {
|
|
817
817
|
// Inline function 'kotlin.arrayOf' call
|
|
818
818
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
819
819
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -827,10 +827,10 @@
|
|
|
827
827
|
}
|
|
828
828
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
829
829
|
if (!(3 === (3 & seen0))) {
|
|
830
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
830
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().i5m_1);
|
|
831
831
|
}
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
832
|
+
$this.k5m_1 = code;
|
|
833
|
+
$this.l5m_1 = message;
|
|
834
834
|
return $this;
|
|
835
835
|
}
|
|
836
836
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -839,11 +839,11 @@
|
|
|
839
839
|
function ErrorDto() {
|
|
840
840
|
}
|
|
841
841
|
protoOf(ErrorDto).toString = function () {
|
|
842
|
-
return 'ErrorDto(code=' + this.
|
|
842
|
+
return 'ErrorDto(code=' + this.k5m_1 + ', message=' + this.l5m_1 + ')';
|
|
843
843
|
};
|
|
844
844
|
protoOf(ErrorDto).hashCode = function () {
|
|
845
|
-
var result = this.
|
|
846
|
-
result = imul(result, 31) + (this.
|
|
845
|
+
var result = this.k5m_1 == null ? 0 : this.k5m_1;
|
|
846
|
+
result = imul(result, 31) + (this.l5m_1 == null ? 0 : getStringHashCode(this.l5m_1)) | 0;
|
|
847
847
|
return result;
|
|
848
848
|
};
|
|
849
849
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -852,15 +852,15 @@
|
|
|
852
852
|
if (!(other instanceof ErrorDto))
|
|
853
853
|
return false;
|
|
854
854
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
855
|
-
if (!(this.
|
|
855
|
+
if (!(this.k5m_1 == tmp0_other_with_cast.k5m_1))
|
|
856
856
|
return false;
|
|
857
|
-
if (!(this.
|
|
857
|
+
if (!(this.l5m_1 == tmp0_other_with_cast.l5m_1))
|
|
858
858
|
return false;
|
|
859
859
|
return true;
|
|
860
860
|
};
|
|
861
861
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
862
862
|
$serializer_1.call($this);
|
|
863
|
-
$this.
|
|
863
|
+
$this.n5m_1 = typeSerial0;
|
|
864
864
|
return $this;
|
|
865
865
|
}
|
|
866
866
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -869,17 +869,17 @@
|
|
|
869
869
|
function Companion_2() {
|
|
870
870
|
Companion_instance_4 = this;
|
|
871
871
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
872
|
-
tmp0_serialDesc.
|
|
873
|
-
tmp0_serialDesc.
|
|
874
|
-
tmp0_serialDesc.
|
|
875
|
-
tmp0_serialDesc.
|
|
876
|
-
this.
|
|
872
|
+
tmp0_serialDesc.p4e('jsonrpc', false);
|
|
873
|
+
tmp0_serialDesc.p4e('method', false);
|
|
874
|
+
tmp0_serialDesc.p4e('params', false);
|
|
875
|
+
tmp0_serialDesc.p4e('id', false);
|
|
876
|
+
this.o5m_1 = tmp0_serialDesc;
|
|
877
877
|
}
|
|
878
|
-
protoOf(Companion_2).
|
|
878
|
+
protoOf(Companion_2).p5m = function (typeSerial0) {
|
|
879
879
|
return $serializer_init_$Create$(typeSerial0);
|
|
880
880
|
};
|
|
881
|
-
protoOf(Companion_2).
|
|
882
|
-
return this.
|
|
881
|
+
protoOf(Companion_2).p4f = function (typeParamsSerializers) {
|
|
882
|
+
return this.p5m(typeParamsSerializers[0]);
|
|
883
883
|
};
|
|
884
884
|
var Companion_instance_4;
|
|
885
885
|
function Companion_getInstance_5() {
|
|
@@ -889,26 +889,26 @@
|
|
|
889
889
|
}
|
|
890
890
|
function $serializer_1() {
|
|
891
891
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
892
|
-
tmp0_serialDesc.
|
|
893
|
-
tmp0_serialDesc.
|
|
894
|
-
tmp0_serialDesc.
|
|
895
|
-
tmp0_serialDesc.
|
|
896
|
-
this.
|
|
897
|
-
}
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
var tmp0_desc = this.
|
|
900
|
-
var tmp1_output = encoder.
|
|
901
|
-
tmp1_output.
|
|
902
|
-
tmp1_output.
|
|
903
|
-
tmp1_output.
|
|
904
|
-
tmp1_output.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
};
|
|
907
|
-
protoOf($serializer_1).
|
|
908
|
-
return this.
|
|
909
|
-
};
|
|
910
|
-
protoOf($serializer_1).
|
|
911
|
-
var tmp0_desc = this.
|
|
892
|
+
tmp0_serialDesc.p4e('jsonrpc', false);
|
|
893
|
+
tmp0_serialDesc.p4e('method', false);
|
|
894
|
+
tmp0_serialDesc.p4e('params', false);
|
|
895
|
+
tmp0_serialDesc.p4e('id', false);
|
|
896
|
+
this.m5m_1 = tmp0_serialDesc;
|
|
897
|
+
}
|
|
898
|
+
protoOf($serializer_1).q5m = function (encoder, value) {
|
|
899
|
+
var tmp0_desc = this.m5m_1;
|
|
900
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
901
|
+
tmp1_output.p48(tmp0_desc, 0, value.r5m_1);
|
|
902
|
+
tmp1_output.p48(tmp0_desc, 1, value.s5m_1);
|
|
903
|
+
tmp1_output.r48(tmp0_desc, 2, this.n5m_1, value.t5m_1);
|
|
904
|
+
tmp1_output.p48(tmp0_desc, 3, value.u5m_1);
|
|
905
|
+
tmp1_output.c47(tmp0_desc);
|
|
906
|
+
};
|
|
907
|
+
protoOf($serializer_1).o43 = function (encoder, value) {
|
|
908
|
+
return this.q5m(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
909
|
+
};
|
|
910
|
+
protoOf($serializer_1).p43 = function (decoder) {
|
|
911
|
+
var tmp0_desc = this.m5m_1;
|
|
912
912
|
var tmp1_flag = true;
|
|
913
913
|
var tmp2_index = 0;
|
|
914
914
|
var tmp3_bitMask0 = 0;
|
|
@@ -916,69 +916,69 @@
|
|
|
916
916
|
var tmp5_local1 = null;
|
|
917
917
|
var tmp6_local2 = null;
|
|
918
918
|
var tmp7_local3 = null;
|
|
919
|
-
var tmp8_input = decoder.
|
|
920
|
-
if (tmp8_input.
|
|
921
|
-
tmp4_local0 = tmp8_input.
|
|
919
|
+
var tmp8_input = decoder.b47(tmp0_desc);
|
|
920
|
+
if (tmp8_input.q47()) {
|
|
921
|
+
tmp4_local0 = tmp8_input.l47(tmp0_desc, 0);
|
|
922
922
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
923
|
-
tmp5_local1 = tmp8_input.
|
|
923
|
+
tmp5_local1 = tmp8_input.l47(tmp0_desc, 1);
|
|
924
924
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
925
|
-
tmp6_local2 = tmp8_input.
|
|
925
|
+
tmp6_local2 = tmp8_input.n47(tmp0_desc, 2, this.n5m_1, tmp6_local2);
|
|
926
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
927
|
-
tmp7_local3 = tmp8_input.
|
|
927
|
+
tmp7_local3 = tmp8_input.l47(tmp0_desc, 3);
|
|
928
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
929
929
|
} else
|
|
930
930
|
while (tmp1_flag) {
|
|
931
|
-
tmp2_index = tmp8_input.
|
|
931
|
+
tmp2_index = tmp8_input.r47(tmp0_desc);
|
|
932
932
|
switch (tmp2_index) {
|
|
933
933
|
case -1:
|
|
934
934
|
tmp1_flag = false;
|
|
935
935
|
break;
|
|
936
936
|
case 0:
|
|
937
|
-
tmp4_local0 = tmp8_input.
|
|
937
|
+
tmp4_local0 = tmp8_input.l47(tmp0_desc, 0);
|
|
938
938
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
939
939
|
break;
|
|
940
940
|
case 1:
|
|
941
|
-
tmp5_local1 = tmp8_input.
|
|
941
|
+
tmp5_local1 = tmp8_input.l47(tmp0_desc, 1);
|
|
942
942
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
943
943
|
break;
|
|
944
944
|
case 2:
|
|
945
|
-
tmp6_local2 = tmp8_input.
|
|
945
|
+
tmp6_local2 = tmp8_input.n47(tmp0_desc, 2, this.n5m_1, tmp6_local2);
|
|
946
946
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
947
947
|
break;
|
|
948
948
|
case 3:
|
|
949
|
-
tmp7_local3 = tmp8_input.
|
|
949
|
+
tmp7_local3 = tmp8_input.l47(tmp0_desc, 3);
|
|
950
950
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
951
951
|
break;
|
|
952
952
|
default:
|
|
953
953
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
tmp8_input.
|
|
956
|
+
tmp8_input.c47(tmp0_desc);
|
|
957
957
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
958
958
|
};
|
|
959
|
-
protoOf($serializer_1).
|
|
960
|
-
return this.
|
|
959
|
+
protoOf($serializer_1).n43 = function () {
|
|
960
|
+
return this.m5m_1;
|
|
961
961
|
};
|
|
962
|
-
protoOf($serializer_1).
|
|
962
|
+
protoOf($serializer_1).e4f = function () {
|
|
963
963
|
// Inline function 'kotlin.arrayOf' call
|
|
964
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
966
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.n5m_1, StringSerializer_getInstance()];
|
|
967
967
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
968
|
+
protoOf($serializer_1).f4f = function () {
|
|
969
969
|
// Inline function 'kotlin.arrayOf' call
|
|
970
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [this.
|
|
972
|
+
return [this.n5m_1];
|
|
973
973
|
};
|
|
974
974
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
975
975
|
if (!(15 === (15 & seen0))) {
|
|
976
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
976
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().o5m_1);
|
|
977
977
|
}
|
|
978
|
-
$this.
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
978
|
+
$this.r5m_1 = jsonrpc;
|
|
979
|
+
$this.s5m_1 = method;
|
|
980
|
+
$this.t5m_1 = params;
|
|
981
|
+
$this.u5m_1 = id;
|
|
982
982
|
return $this;
|
|
983
983
|
}
|
|
984
984
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -986,19 +986,19 @@
|
|
|
986
986
|
}
|
|
987
987
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
988
988
|
Companion_getInstance_5();
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
989
|
+
this.r5m_1 = jsonrpc;
|
|
990
|
+
this.s5m_1 = method;
|
|
991
|
+
this.t5m_1 = params;
|
|
992
|
+
this.u5m_1 = id;
|
|
993
993
|
}
|
|
994
994
|
protoOf(RandomRequestDto).toString = function () {
|
|
995
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
995
|
+
return 'RandomRequestDto(jsonrpc=' + this.r5m_1 + ', method=' + this.s5m_1 + ', params=' + toString(this.t5m_1) + ', id=' + this.u5m_1 + ')';
|
|
996
996
|
};
|
|
997
997
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
998
|
-
var result = getStringHashCode(this.
|
|
999
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1000
|
-
result = imul(result, 31) + hashCode(this.
|
|
1001
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
998
|
+
var result = getStringHashCode(this.r5m_1);
|
|
999
|
+
result = imul(result, 31) + getStringHashCode(this.s5m_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + hashCode(this.t5m_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.u5m_1) | 0;
|
|
1002
1002
|
return result;
|
|
1003
1003
|
};
|
|
1004
1004
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1007,13 +1007,13 @@
|
|
|
1007
1007
|
if (!(other instanceof RandomRequestDto))
|
|
1008
1008
|
return false;
|
|
1009
1009
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1010
|
-
if (!(this.
|
|
1010
|
+
if (!(this.r5m_1 === tmp0_other_with_cast.r5m_1))
|
|
1011
1011
|
return false;
|
|
1012
|
-
if (!(this.
|
|
1012
|
+
if (!(this.s5m_1 === tmp0_other_with_cast.s5m_1))
|
|
1013
1013
|
return false;
|
|
1014
|
-
if (!equals(this.
|
|
1014
|
+
if (!equals(this.t5m_1, tmp0_other_with_cast.t5m_1))
|
|
1015
1015
|
return false;
|
|
1016
|
-
if (!(this.
|
|
1016
|
+
if (!(this.u5m_1 === tmp0_other_with_cast.u5m_1))
|
|
1017
1017
|
return false;
|
|
1018
1018
|
return true;
|
|
1019
1019
|
};
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
// Inline function 'kotlin.arrayOf' call
|
|
1024
1024
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1025
1025
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1026
|
-
tmp.
|
|
1026
|
+
tmp.v5m_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1027
1027
|
}
|
|
1028
1028
|
var Companion_instance_5;
|
|
1029
1029
|
function Companion_getInstance_6() {
|
|
@@ -1034,35 +1034,35 @@
|
|
|
1034
1034
|
function $serializer_2() {
|
|
1035
1035
|
$serializer_instance_1 = this;
|
|
1036
1036
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1037
|
-
tmp0_serialDesc.
|
|
1038
|
-
tmp0_serialDesc.
|
|
1039
|
-
tmp0_serialDesc.
|
|
1040
|
-
tmp0_serialDesc.
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
this.
|
|
1046
|
-
}
|
|
1047
|
-
protoOf($serializer_2).
|
|
1048
|
-
var tmp0_desc = this.
|
|
1049
|
-
var tmp1_output = encoder.
|
|
1050
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1051
|
-
tmp1_output.
|
|
1052
|
-
tmp1_output.
|
|
1053
|
-
tmp1_output.
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
};
|
|
1061
|
-
protoOf($serializer_2).
|
|
1062
|
-
return this.
|
|
1063
|
-
};
|
|
1064
|
-
protoOf($serializer_2).
|
|
1065
|
-
var tmp0_desc = this.
|
|
1037
|
+
tmp0_serialDesc.p4e('apiKey', false);
|
|
1038
|
+
tmp0_serialDesc.p4e('n', false);
|
|
1039
|
+
tmp0_serialDesc.p4e('length', false);
|
|
1040
|
+
tmp0_serialDesc.p4e('min', false);
|
|
1041
|
+
tmp0_serialDesc.p4e('max', false);
|
|
1042
|
+
tmp0_serialDesc.p4e('replacement', false);
|
|
1043
|
+
tmp0_serialDesc.p4e('ticketId', false);
|
|
1044
|
+
tmp0_serialDesc.p4e('userData', false);
|
|
1045
|
+
this.w5m_1 = tmp0_serialDesc;
|
|
1046
|
+
}
|
|
1047
|
+
protoOf($serializer_2).x5m = function (encoder, value) {
|
|
1048
|
+
var tmp0_desc = this.w5m_1;
|
|
1049
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
1050
|
+
var tmp2_cached = Companion_getInstance_6().v5m_1;
|
|
1051
|
+
tmp1_output.p48(tmp0_desc, 0, value.y5m_1);
|
|
1052
|
+
tmp1_output.k48(tmp0_desc, 1, value.z5m_1);
|
|
1053
|
+
tmp1_output.r48(tmp0_desc, 2, tmp2_cached[2], value.a5n_1);
|
|
1054
|
+
tmp1_output.k48(tmp0_desc, 3, value.b5n_1);
|
|
1055
|
+
tmp1_output.k48(tmp0_desc, 4, value.c5n_1);
|
|
1056
|
+
tmp1_output.h48(tmp0_desc, 5, value.d5n_1);
|
|
1057
|
+
tmp1_output.t48(tmp0_desc, 6, StringSerializer_getInstance(), value.e5n_1);
|
|
1058
|
+
tmp1_output.t48(tmp0_desc, 7, $serializer_getInstance_2(), value.f5n_1);
|
|
1059
|
+
tmp1_output.c47(tmp0_desc);
|
|
1060
|
+
};
|
|
1061
|
+
protoOf($serializer_2).o43 = function (encoder, value) {
|
|
1062
|
+
return this.x5m(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1063
|
+
};
|
|
1064
|
+
protoOf($serializer_2).p43 = function (decoder) {
|
|
1065
|
+
var tmp0_desc = this.w5m_1;
|
|
1066
1066
|
var tmp1_flag = true;
|
|
1067
1067
|
var tmp2_index = 0;
|
|
1068
1068
|
var tmp3_bitMask0 = 0;
|
|
@@ -1074,76 +1074,76 @@
|
|
|
1074
1074
|
var tmp9_local5 = false;
|
|
1075
1075
|
var tmp10_local6 = null;
|
|
1076
1076
|
var tmp11_local7 = null;
|
|
1077
|
-
var tmp12_input = decoder.
|
|
1078
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1079
|
-
if (tmp12_input.
|
|
1080
|
-
tmp4_local0 = tmp12_input.
|
|
1077
|
+
var tmp12_input = decoder.b47(tmp0_desc);
|
|
1078
|
+
var tmp13_cached = Companion_getInstance_6().v5m_1;
|
|
1079
|
+
if (tmp12_input.q47()) {
|
|
1080
|
+
tmp4_local0 = tmp12_input.l47(tmp0_desc, 0);
|
|
1081
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1082
|
-
tmp5_local1 = tmp12_input.
|
|
1082
|
+
tmp5_local1 = tmp12_input.g47(tmp0_desc, 1);
|
|
1083
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1084
|
-
tmp6_local2 = tmp12_input.
|
|
1084
|
+
tmp6_local2 = tmp12_input.n47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1085
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1086
|
-
tmp7_local3 = tmp12_input.
|
|
1086
|
+
tmp7_local3 = tmp12_input.g47(tmp0_desc, 3);
|
|
1087
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1088
|
-
tmp8_local4 = tmp12_input.
|
|
1088
|
+
tmp8_local4 = tmp12_input.g47(tmp0_desc, 4);
|
|
1089
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1090
|
-
tmp9_local5 = tmp12_input.
|
|
1090
|
+
tmp9_local5 = tmp12_input.d47(tmp0_desc, 5);
|
|
1091
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1092
|
-
tmp10_local6 = tmp12_input.
|
|
1092
|
+
tmp10_local6 = tmp12_input.p47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1093
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1094
|
-
tmp11_local7 = tmp12_input.
|
|
1094
|
+
tmp11_local7 = tmp12_input.p47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1095
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1096
1096
|
} else
|
|
1097
1097
|
while (tmp1_flag) {
|
|
1098
|
-
tmp2_index = tmp12_input.
|
|
1098
|
+
tmp2_index = tmp12_input.r47(tmp0_desc);
|
|
1099
1099
|
switch (tmp2_index) {
|
|
1100
1100
|
case -1:
|
|
1101
1101
|
tmp1_flag = false;
|
|
1102
1102
|
break;
|
|
1103
1103
|
case 0:
|
|
1104
|
-
tmp4_local0 = tmp12_input.
|
|
1104
|
+
tmp4_local0 = tmp12_input.l47(tmp0_desc, 0);
|
|
1105
1105
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1106
1106
|
break;
|
|
1107
1107
|
case 1:
|
|
1108
|
-
tmp5_local1 = tmp12_input.
|
|
1108
|
+
tmp5_local1 = tmp12_input.g47(tmp0_desc, 1);
|
|
1109
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1110
1110
|
break;
|
|
1111
1111
|
case 2:
|
|
1112
|
-
tmp6_local2 = tmp12_input.
|
|
1112
|
+
tmp6_local2 = tmp12_input.n47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1113
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1114
1114
|
break;
|
|
1115
1115
|
case 3:
|
|
1116
|
-
tmp7_local3 = tmp12_input.
|
|
1116
|
+
tmp7_local3 = tmp12_input.g47(tmp0_desc, 3);
|
|
1117
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1118
1118
|
break;
|
|
1119
1119
|
case 4:
|
|
1120
|
-
tmp8_local4 = tmp12_input.
|
|
1120
|
+
tmp8_local4 = tmp12_input.g47(tmp0_desc, 4);
|
|
1121
1121
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1122
1122
|
break;
|
|
1123
1123
|
case 5:
|
|
1124
|
-
tmp9_local5 = tmp12_input.
|
|
1124
|
+
tmp9_local5 = tmp12_input.d47(tmp0_desc, 5);
|
|
1125
1125
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1126
1126
|
break;
|
|
1127
1127
|
case 6:
|
|
1128
|
-
tmp10_local6 = tmp12_input.
|
|
1128
|
+
tmp10_local6 = tmp12_input.p47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1129
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1130
1130
|
break;
|
|
1131
1131
|
case 7:
|
|
1132
|
-
tmp11_local7 = tmp12_input.
|
|
1132
|
+
tmp11_local7 = tmp12_input.p47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1133
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1134
1134
|
break;
|
|
1135
1135
|
default:
|
|
1136
1136
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
tmp12_input.
|
|
1139
|
+
tmp12_input.c47(tmp0_desc);
|
|
1140
1140
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf($serializer_2).
|
|
1143
|
-
return this.
|
|
1142
|
+
protoOf($serializer_2).n43 = function () {
|
|
1143
|
+
return this.w5m_1;
|
|
1144
1144
|
};
|
|
1145
|
-
protoOf($serializer_2).
|
|
1146
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1145
|
+
protoOf($serializer_2).e4f = function () {
|
|
1146
|
+
var tmp0_cached = Companion_getInstance_6().v5m_1;
|
|
1147
1147
|
// Inline function 'kotlin.arrayOf' call
|
|
1148
1148
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1149
1149
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1157,16 +1157,16 @@
|
|
|
1157
1157
|
}
|
|
1158
1158
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1159
1159
|
if (!(255 === (255 & seen0))) {
|
|
1160
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1160
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().w5m_1);
|
|
1161
1161
|
}
|
|
1162
|
-
$this.
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1162
|
+
$this.y5m_1 = apiKey;
|
|
1163
|
+
$this.z5m_1 = n;
|
|
1164
|
+
$this.a5n_1 = length;
|
|
1165
|
+
$this.b5n_1 = min;
|
|
1166
|
+
$this.c5n_1 = max;
|
|
1167
|
+
$this.d5n_1 = replacement;
|
|
1168
|
+
$this.e5n_1 = ticketId;
|
|
1169
|
+
$this.f5n_1 = userData;
|
|
1170
1170
|
return $this;
|
|
1171
1171
|
}
|
|
1172
1172
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1174,27 +1174,27 @@
|
|
|
1174
1174
|
}
|
|
1175
1175
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1176
1176
|
Companion_getInstance_6();
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1177
|
+
this.y5m_1 = apiKey;
|
|
1178
|
+
this.z5m_1 = n;
|
|
1179
|
+
this.a5n_1 = length;
|
|
1180
|
+
this.b5n_1 = min;
|
|
1181
|
+
this.c5n_1 = max;
|
|
1182
|
+
this.d5n_1 = replacement;
|
|
1183
|
+
this.e5n_1 = ticketId;
|
|
1184
|
+
this.f5n_1 = userData;
|
|
1185
1185
|
}
|
|
1186
1186
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1187
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1187
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.y5m_1 + ', n=' + this.z5m_1 + ', length=' + toString(this.a5n_1) + ', min=' + this.b5n_1 + ', max=' + this.c5n_1 + ', replacement=' + this.d5n_1 + ', ticketId=' + this.e5n_1 + ', userData=' + toString_0(this.f5n_1) + ')';
|
|
1188
1188
|
};
|
|
1189
1189
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1190
|
-
var result = getStringHashCode(this.
|
|
1191
|
-
result = imul(result, 31) + this.
|
|
1192
|
-
result = imul(result, 31) + hashCode(this.
|
|
1193
|
-
result = imul(result, 31) + this.
|
|
1194
|
-
result = imul(result, 31) + this.
|
|
1195
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1196
|
-
result = imul(result, 31) + (this.
|
|
1197
|
-
result = imul(result, 31) + (this.
|
|
1190
|
+
var result = getStringHashCode(this.y5m_1);
|
|
1191
|
+
result = imul(result, 31) + this.z5m_1 | 0;
|
|
1192
|
+
result = imul(result, 31) + hashCode(this.a5n_1) | 0;
|
|
1193
|
+
result = imul(result, 31) + this.b5n_1 | 0;
|
|
1194
|
+
result = imul(result, 31) + this.c5n_1 | 0;
|
|
1195
|
+
result = imul(result, 31) + getBooleanHashCode(this.d5n_1) | 0;
|
|
1196
|
+
result = imul(result, 31) + (this.e5n_1 == null ? 0 : getStringHashCode(this.e5n_1)) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.f5n_1 == null ? 0 : this.f5n_1.hashCode()) | 0;
|
|
1198
1198
|
return result;
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1203,21 +1203,21 @@
|
|
|
1203
1203
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1204
1204
|
return false;
|
|
1205
1205
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1206
|
-
if (!(this.
|
|
1206
|
+
if (!(this.y5m_1 === tmp0_other_with_cast.y5m_1))
|
|
1207
1207
|
return false;
|
|
1208
|
-
if (!(this.
|
|
1208
|
+
if (!(this.z5m_1 === tmp0_other_with_cast.z5m_1))
|
|
1209
1209
|
return false;
|
|
1210
|
-
if (!equals(this.
|
|
1210
|
+
if (!equals(this.a5n_1, tmp0_other_with_cast.a5n_1))
|
|
1211
1211
|
return false;
|
|
1212
|
-
if (!(this.
|
|
1212
|
+
if (!(this.b5n_1 === tmp0_other_with_cast.b5n_1))
|
|
1213
1213
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1214
|
+
if (!(this.c5n_1 === tmp0_other_with_cast.c5n_1))
|
|
1215
1215
|
return false;
|
|
1216
|
-
if (!(this.
|
|
1216
|
+
if (!(this.d5n_1 === tmp0_other_with_cast.d5n_1))
|
|
1217
1217
|
return false;
|
|
1218
|
-
if (!(this.
|
|
1218
|
+
if (!(this.e5n_1 == tmp0_other_with_cast.e5n_1))
|
|
1219
1219
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1220
|
+
if (!equals(this.f5n_1, tmp0_other_with_cast.f5n_1))
|
|
1221
1221
|
return false;
|
|
1222
1222
|
return true;
|
|
1223
1223
|
};
|
|
@@ -1230,59 +1230,59 @@
|
|
|
1230
1230
|
function $serializer_3() {
|
|
1231
1231
|
$serializer_instance_2 = this;
|
|
1232
1232
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1233
|
-
tmp0_serialDesc.
|
|
1234
|
-
tmp0_serialDesc.
|
|
1235
|
-
this.
|
|
1236
|
-
}
|
|
1237
|
-
protoOf($serializer_3).
|
|
1238
|
-
var tmp0_desc = this.
|
|
1239
|
-
var tmp1_output = encoder.
|
|
1240
|
-
tmp1_output.
|
|
1241
|
-
tmp1_output.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
};
|
|
1244
|
-
protoOf($serializer_3).
|
|
1245
|
-
return this.
|
|
1246
|
-
};
|
|
1247
|
-
protoOf($serializer_3).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1233
|
+
tmp0_serialDesc.p4e('id', false);
|
|
1234
|
+
tmp0_serialDesc.p4e('count', false);
|
|
1235
|
+
this.g5n_1 = tmp0_serialDesc;
|
|
1236
|
+
}
|
|
1237
|
+
protoOf($serializer_3).h5n = function (encoder, value) {
|
|
1238
|
+
var tmp0_desc = this.g5n_1;
|
|
1239
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
1240
|
+
tmp1_output.p48(tmp0_desc, 0, value.i5n_1);
|
|
1241
|
+
tmp1_output.k48(tmp0_desc, 1, value.j5n_1);
|
|
1242
|
+
tmp1_output.c47(tmp0_desc);
|
|
1243
|
+
};
|
|
1244
|
+
protoOf($serializer_3).o43 = function (encoder, value) {
|
|
1245
|
+
return this.h5n(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1246
|
+
};
|
|
1247
|
+
protoOf($serializer_3).p43 = function (decoder) {
|
|
1248
|
+
var tmp0_desc = this.g5n_1;
|
|
1249
1249
|
var tmp1_flag = true;
|
|
1250
1250
|
var tmp2_index = 0;
|
|
1251
1251
|
var tmp3_bitMask0 = 0;
|
|
1252
1252
|
var tmp4_local0 = null;
|
|
1253
1253
|
var tmp5_local1 = 0;
|
|
1254
|
-
var tmp6_input = decoder.
|
|
1255
|
-
if (tmp6_input.
|
|
1256
|
-
tmp4_local0 = tmp6_input.
|
|
1254
|
+
var tmp6_input = decoder.b47(tmp0_desc);
|
|
1255
|
+
if (tmp6_input.q47()) {
|
|
1256
|
+
tmp4_local0 = tmp6_input.l47(tmp0_desc, 0);
|
|
1257
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1258
|
-
tmp5_local1 = tmp6_input.
|
|
1258
|
+
tmp5_local1 = tmp6_input.g47(tmp0_desc, 1);
|
|
1259
1259
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1260
1260
|
} else
|
|
1261
1261
|
while (tmp1_flag) {
|
|
1262
|
-
tmp2_index = tmp6_input.
|
|
1262
|
+
tmp2_index = tmp6_input.r47(tmp0_desc);
|
|
1263
1263
|
switch (tmp2_index) {
|
|
1264
1264
|
case -1:
|
|
1265
1265
|
tmp1_flag = false;
|
|
1266
1266
|
break;
|
|
1267
1267
|
case 0:
|
|
1268
|
-
tmp4_local0 = tmp6_input.
|
|
1268
|
+
tmp4_local0 = tmp6_input.l47(tmp0_desc, 0);
|
|
1269
1269
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1270
1270
|
break;
|
|
1271
1271
|
case 1:
|
|
1272
|
-
tmp5_local1 = tmp6_input.
|
|
1272
|
+
tmp5_local1 = tmp6_input.g47(tmp0_desc, 1);
|
|
1273
1273
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1274
1274
|
break;
|
|
1275
1275
|
default:
|
|
1276
1276
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
tmp6_input.
|
|
1279
|
+
tmp6_input.c47(tmp0_desc);
|
|
1280
1280
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf($serializer_3).
|
|
1283
|
-
return this.
|
|
1282
|
+
protoOf($serializer_3).n43 = function () {
|
|
1283
|
+
return this.g5n_1;
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf($serializer_3).
|
|
1285
|
+
protoOf($serializer_3).e4f = function () {
|
|
1286
1286
|
// Inline function 'kotlin.arrayOf' call
|
|
1287
1287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1288
1288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1296,25 +1296,25 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1298
1298
|
if (!(3 === (3 & seen0))) {
|
|
1299
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1299
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().g5n_1);
|
|
1300
1300
|
}
|
|
1301
|
-
$this.
|
|
1302
|
-
$this.
|
|
1301
|
+
$this.i5n_1 = id;
|
|
1302
|
+
$this.j5n_1 = count;
|
|
1303
1303
|
return $this;
|
|
1304
1304
|
}
|
|
1305
1305
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1306
1306
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1307
1307
|
}
|
|
1308
1308
|
function CardDecksUserDataDto(id, count) {
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1309
|
+
this.i5n_1 = id;
|
|
1310
|
+
this.j5n_1 = count;
|
|
1311
1311
|
}
|
|
1312
1312
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1313
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1313
|
+
return 'CardDecksUserDataDto(id=' + this.i5n_1 + ', count=' + this.j5n_1 + ')';
|
|
1314
1314
|
};
|
|
1315
1315
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1316
|
-
var result = getStringHashCode(this.
|
|
1317
|
-
result = imul(result, 31) + this.
|
|
1316
|
+
var result = getStringHashCode(this.i5n_1);
|
|
1317
|
+
result = imul(result, 31) + this.j5n_1 | 0;
|
|
1318
1318
|
return result;
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1323,15 +1323,15 @@
|
|
|
1323
1323
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1324
1324
|
return false;
|
|
1325
1325
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1326
|
-
if (!(this.
|
|
1326
|
+
if (!(this.i5n_1 === tmp0_other_with_cast.i5n_1))
|
|
1327
1327
|
return false;
|
|
1328
|
-
if (!(this.
|
|
1328
|
+
if (!(this.j5n_1 === tmp0_other_with_cast.j5n_1))
|
|
1329
1329
|
return false;
|
|
1330
1330
|
return true;
|
|
1331
1331
|
};
|
|
1332
1332
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1333
1333
|
$serializer_4.call($this);
|
|
1334
|
-
$this.
|
|
1334
|
+
$this.l5n_1 = typeSerial0;
|
|
1335
1335
|
return $this;
|
|
1336
1336
|
}
|
|
1337
1337
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1340,16 +1340,16 @@
|
|
|
1340
1340
|
function Companion_5() {
|
|
1341
1341
|
Companion_instance_7 = this;
|
|
1342
1342
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1343
|
-
tmp0_serialDesc.
|
|
1344
|
-
tmp0_serialDesc.
|
|
1345
|
-
tmp0_serialDesc.
|
|
1346
|
-
this.
|
|
1343
|
+
tmp0_serialDesc.p4e('jsonrpc', false);
|
|
1344
|
+
tmp0_serialDesc.p4e('result', false);
|
|
1345
|
+
tmp0_serialDesc.p4e('id', false);
|
|
1346
|
+
this.m5n_1 = tmp0_serialDesc;
|
|
1347
1347
|
}
|
|
1348
|
-
protoOf(Companion_5).
|
|
1348
|
+
protoOf(Companion_5).p5m = function (typeSerial0) {
|
|
1349
1349
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1350
1350
|
};
|
|
1351
|
-
protoOf(Companion_5).
|
|
1352
|
-
return this.
|
|
1351
|
+
protoOf(Companion_5).p4f = function (typeParamsSerializers) {
|
|
1352
|
+
return this.p5m(typeParamsSerializers[0]);
|
|
1353
1353
|
};
|
|
1354
1354
|
var Companion_instance_7;
|
|
1355
1355
|
function Companion_getInstance_8() {
|
|
@@ -1359,86 +1359,86 @@
|
|
|
1359
1359
|
}
|
|
1360
1360
|
function $serializer_4() {
|
|
1361
1361
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1362
|
-
tmp0_serialDesc.
|
|
1363
|
-
tmp0_serialDesc.
|
|
1364
|
-
tmp0_serialDesc.
|
|
1365
|
-
this.
|
|
1366
|
-
}
|
|
1367
|
-
protoOf($serializer_4).
|
|
1368
|
-
var tmp0_desc = this.
|
|
1369
|
-
var tmp1_output = encoder.
|
|
1370
|
-
tmp1_output.
|
|
1371
|
-
tmp1_output.
|
|
1372
|
-
tmp1_output.
|
|
1373
|
-
tmp1_output.
|
|
1374
|
-
};
|
|
1375
|
-
protoOf($serializer_4).
|
|
1376
|
-
return this.
|
|
1377
|
-
};
|
|
1378
|
-
protoOf($serializer_4).
|
|
1379
|
-
var tmp0_desc = this.
|
|
1362
|
+
tmp0_serialDesc.p4e('jsonrpc', false);
|
|
1363
|
+
tmp0_serialDesc.p4e('result', false);
|
|
1364
|
+
tmp0_serialDesc.p4e('id', false);
|
|
1365
|
+
this.k5n_1 = tmp0_serialDesc;
|
|
1366
|
+
}
|
|
1367
|
+
protoOf($serializer_4).n5n = function (encoder, value) {
|
|
1368
|
+
var tmp0_desc = this.k5n_1;
|
|
1369
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
1370
|
+
tmp1_output.p48(tmp0_desc, 0, value.o5n_1);
|
|
1371
|
+
tmp1_output.r48(tmp0_desc, 1, this.l5n_1, value.p5n_1);
|
|
1372
|
+
tmp1_output.p48(tmp0_desc, 2, value.q5n_1);
|
|
1373
|
+
tmp1_output.c47(tmp0_desc);
|
|
1374
|
+
};
|
|
1375
|
+
protoOf($serializer_4).o43 = function (encoder, value) {
|
|
1376
|
+
return this.n5n(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1377
|
+
};
|
|
1378
|
+
protoOf($serializer_4).p43 = function (decoder) {
|
|
1379
|
+
var tmp0_desc = this.k5n_1;
|
|
1380
1380
|
var tmp1_flag = true;
|
|
1381
1381
|
var tmp2_index = 0;
|
|
1382
1382
|
var tmp3_bitMask0 = 0;
|
|
1383
1383
|
var tmp4_local0 = null;
|
|
1384
1384
|
var tmp5_local1 = null;
|
|
1385
1385
|
var tmp6_local2 = null;
|
|
1386
|
-
var tmp7_input = decoder.
|
|
1387
|
-
if (tmp7_input.
|
|
1388
|
-
tmp4_local0 = tmp7_input.
|
|
1386
|
+
var tmp7_input = decoder.b47(tmp0_desc);
|
|
1387
|
+
if (tmp7_input.q47()) {
|
|
1388
|
+
tmp4_local0 = tmp7_input.l47(tmp0_desc, 0);
|
|
1389
1389
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1390
|
-
tmp5_local1 = tmp7_input.
|
|
1390
|
+
tmp5_local1 = tmp7_input.n47(tmp0_desc, 1, this.l5n_1, tmp5_local1);
|
|
1391
1391
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1392
|
-
tmp6_local2 = tmp7_input.
|
|
1392
|
+
tmp6_local2 = tmp7_input.l47(tmp0_desc, 2);
|
|
1393
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1394
1394
|
} else
|
|
1395
1395
|
while (tmp1_flag) {
|
|
1396
|
-
tmp2_index = tmp7_input.
|
|
1396
|
+
tmp2_index = tmp7_input.r47(tmp0_desc);
|
|
1397
1397
|
switch (tmp2_index) {
|
|
1398
1398
|
case -1:
|
|
1399
1399
|
tmp1_flag = false;
|
|
1400
1400
|
break;
|
|
1401
1401
|
case 0:
|
|
1402
|
-
tmp4_local0 = tmp7_input.
|
|
1402
|
+
tmp4_local0 = tmp7_input.l47(tmp0_desc, 0);
|
|
1403
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1404
1404
|
break;
|
|
1405
1405
|
case 1:
|
|
1406
|
-
tmp5_local1 = tmp7_input.
|
|
1406
|
+
tmp5_local1 = tmp7_input.n47(tmp0_desc, 1, this.l5n_1, tmp5_local1);
|
|
1407
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1408
1408
|
break;
|
|
1409
1409
|
case 2:
|
|
1410
|
-
tmp6_local2 = tmp7_input.
|
|
1410
|
+
tmp6_local2 = tmp7_input.l47(tmp0_desc, 2);
|
|
1411
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1412
1412
|
break;
|
|
1413
1413
|
default:
|
|
1414
1414
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
tmp7_input.
|
|
1417
|
+
tmp7_input.c47(tmp0_desc);
|
|
1418
1418
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1419
1419
|
};
|
|
1420
|
-
protoOf($serializer_4).
|
|
1421
|
-
return this.
|
|
1420
|
+
protoOf($serializer_4).n43 = function () {
|
|
1421
|
+
return this.k5n_1;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf($serializer_4).
|
|
1423
|
+
protoOf($serializer_4).e4f = function () {
|
|
1424
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1425
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1426
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1427
|
-
return [StringSerializer_getInstance(), this.
|
|
1427
|
+
return [StringSerializer_getInstance(), this.l5n_1, StringSerializer_getInstance()];
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1429
|
+
protoOf($serializer_4).f4f = function () {
|
|
1430
1430
|
// Inline function 'kotlin.arrayOf' call
|
|
1431
1431
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1432
1432
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1433
|
-
return [this.
|
|
1433
|
+
return [this.l5n_1];
|
|
1434
1434
|
};
|
|
1435
1435
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1436
1436
|
if (!(7 === (7 & seen0))) {
|
|
1437
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1437
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().m5n_1);
|
|
1438
1438
|
}
|
|
1439
|
-
$this.
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1439
|
+
$this.o5n_1 = jsonrpc;
|
|
1440
|
+
$this.p5n_1 = result;
|
|
1441
|
+
$this.q5n_1 = id;
|
|
1442
1442
|
return $this;
|
|
1443
1443
|
}
|
|
1444
1444
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1446,17 +1446,17 @@
|
|
|
1446
1446
|
}
|
|
1447
1447
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1448
1448
|
Companion_getInstance_8();
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1449
|
+
this.o5n_1 = jsonrpc;
|
|
1450
|
+
this.p5n_1 = result;
|
|
1451
|
+
this.q5n_1 = id;
|
|
1452
1452
|
}
|
|
1453
1453
|
protoOf(RandomResponseDto).toString = function () {
|
|
1454
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1454
|
+
return 'RandomResponseDto(jsonrpc=' + this.o5n_1 + ', result=' + toString(this.p5n_1) + ', id=' + this.q5n_1 + ')';
|
|
1455
1455
|
};
|
|
1456
1456
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1457
|
-
var result = getStringHashCode(this.
|
|
1458
|
-
result = imul(result, 31) + hashCode(this.
|
|
1459
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1457
|
+
var result = getStringHashCode(this.o5n_1);
|
|
1458
|
+
result = imul(result, 31) + hashCode(this.p5n_1) | 0;
|
|
1459
|
+
result = imul(result, 31) + getStringHashCode(this.q5n_1) | 0;
|
|
1460
1460
|
return result;
|
|
1461
1461
|
};
|
|
1462
1462
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1465,11 +1465,11 @@
|
|
|
1465
1465
|
if (!(other instanceof RandomResponseDto))
|
|
1466
1466
|
return false;
|
|
1467
1467
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1468
|
-
if (!(this.
|
|
1468
|
+
if (!(this.o5n_1 === tmp0_other_with_cast.o5n_1))
|
|
1469
1469
|
return false;
|
|
1470
|
-
if (!equals(this.
|
|
1470
|
+
if (!equals(this.p5n_1, tmp0_other_with_cast.p5n_1))
|
|
1471
1471
|
return false;
|
|
1472
|
-
if (!(this.
|
|
1472
|
+
if (!(this.q5n_1 === tmp0_other_with_cast.q5n_1))
|
|
1473
1473
|
return false;
|
|
1474
1474
|
return true;
|
|
1475
1475
|
};
|
|
@@ -1482,30 +1482,30 @@
|
|
|
1482
1482
|
function $serializer_5() {
|
|
1483
1483
|
$serializer_instance_3 = this;
|
|
1484
1484
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1485
|
-
tmp0_serialDesc.
|
|
1486
|
-
tmp0_serialDesc.
|
|
1487
|
-
tmp0_serialDesc.
|
|
1488
|
-
tmp0_serialDesc.
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
this.
|
|
1492
|
-
}
|
|
1493
|
-
protoOf($serializer_5).
|
|
1494
|
-
var tmp0_desc = this.
|
|
1495
|
-
var tmp1_output = encoder.
|
|
1496
|
-
tmp1_output.
|
|
1497
|
-
tmp1_output.
|
|
1498
|
-
tmp1_output.
|
|
1499
|
-
tmp1_output.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
};
|
|
1504
|
-
protoOf($serializer_5).
|
|
1505
|
-
return this.
|
|
1506
|
-
};
|
|
1507
|
-
protoOf($serializer_5).
|
|
1508
|
-
var tmp0_desc = this.
|
|
1485
|
+
tmp0_serialDesc.p4e('random', false);
|
|
1486
|
+
tmp0_serialDesc.p4e('signature', false);
|
|
1487
|
+
tmp0_serialDesc.p4e('bitsUsed', false);
|
|
1488
|
+
tmp0_serialDesc.p4e('bitsLeft', false);
|
|
1489
|
+
tmp0_serialDesc.p4e('requestsLeft', false);
|
|
1490
|
+
tmp0_serialDesc.p4e('advisoryDelay', false);
|
|
1491
|
+
this.r5n_1 = tmp0_serialDesc;
|
|
1492
|
+
}
|
|
1493
|
+
protoOf($serializer_5).s5n = function (encoder, value) {
|
|
1494
|
+
var tmp0_desc = this.r5n_1;
|
|
1495
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
1496
|
+
tmp1_output.r48(tmp0_desc, 0, $serializer_getInstance_4(), value.t5n_1);
|
|
1497
|
+
tmp1_output.t48(tmp0_desc, 1, StringSerializer_getInstance(), value.u5n_1);
|
|
1498
|
+
tmp1_output.t48(tmp0_desc, 2, IntSerializer_getInstance(), value.v5n_1);
|
|
1499
|
+
tmp1_output.t48(tmp0_desc, 3, IntSerializer_getInstance(), value.w5n_1);
|
|
1500
|
+
tmp1_output.t48(tmp0_desc, 4, IntSerializer_getInstance(), value.x5n_1);
|
|
1501
|
+
tmp1_output.t48(tmp0_desc, 5, IntSerializer_getInstance(), value.y5n_1);
|
|
1502
|
+
tmp1_output.c47(tmp0_desc);
|
|
1503
|
+
};
|
|
1504
|
+
protoOf($serializer_5).o43 = function (encoder, value) {
|
|
1505
|
+
return this.s5n(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1506
|
+
};
|
|
1507
|
+
protoOf($serializer_5).p43 = function (decoder) {
|
|
1508
|
+
var tmp0_desc = this.r5n_1;
|
|
1509
1509
|
var tmp1_flag = true;
|
|
1510
1510
|
var tmp2_index = 0;
|
|
1511
1511
|
var tmp3_bitMask0 = 0;
|
|
@@ -1515,62 +1515,62 @@
|
|
|
1515
1515
|
var tmp7_local3 = null;
|
|
1516
1516
|
var tmp8_local4 = null;
|
|
1517
1517
|
var tmp9_local5 = null;
|
|
1518
|
-
var tmp10_input = decoder.
|
|
1519
|
-
if (tmp10_input.
|
|
1520
|
-
tmp4_local0 = tmp10_input.
|
|
1518
|
+
var tmp10_input = decoder.b47(tmp0_desc);
|
|
1519
|
+
if (tmp10_input.q47()) {
|
|
1520
|
+
tmp4_local0 = tmp10_input.n47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1521
1521
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1522
|
-
tmp5_local1 = tmp10_input.
|
|
1522
|
+
tmp5_local1 = tmp10_input.p47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1523
1523
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1524
|
-
tmp6_local2 = tmp10_input.
|
|
1524
|
+
tmp6_local2 = tmp10_input.p47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1525
1525
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1526
|
-
tmp7_local3 = tmp10_input.
|
|
1526
|
+
tmp7_local3 = tmp10_input.p47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1527
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1528
|
-
tmp8_local4 = tmp10_input.
|
|
1528
|
+
tmp8_local4 = tmp10_input.p47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1529
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1530
|
-
tmp9_local5 = tmp10_input.
|
|
1530
|
+
tmp9_local5 = tmp10_input.p47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1531
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1532
1532
|
} else
|
|
1533
1533
|
while (tmp1_flag) {
|
|
1534
|
-
tmp2_index = tmp10_input.
|
|
1534
|
+
tmp2_index = tmp10_input.r47(tmp0_desc);
|
|
1535
1535
|
switch (tmp2_index) {
|
|
1536
1536
|
case -1:
|
|
1537
1537
|
tmp1_flag = false;
|
|
1538
1538
|
break;
|
|
1539
1539
|
case 0:
|
|
1540
|
-
tmp4_local0 = tmp10_input.
|
|
1540
|
+
tmp4_local0 = tmp10_input.n47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1541
1541
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1542
1542
|
break;
|
|
1543
1543
|
case 1:
|
|
1544
|
-
tmp5_local1 = tmp10_input.
|
|
1544
|
+
tmp5_local1 = tmp10_input.p47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1545
1545
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1546
1546
|
break;
|
|
1547
1547
|
case 2:
|
|
1548
|
-
tmp6_local2 = tmp10_input.
|
|
1548
|
+
tmp6_local2 = tmp10_input.p47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1549
1549
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1550
1550
|
break;
|
|
1551
1551
|
case 3:
|
|
1552
|
-
tmp7_local3 = tmp10_input.
|
|
1552
|
+
tmp7_local3 = tmp10_input.p47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1553
1553
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1554
1554
|
break;
|
|
1555
1555
|
case 4:
|
|
1556
|
-
tmp8_local4 = tmp10_input.
|
|
1556
|
+
tmp8_local4 = tmp10_input.p47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1557
1557
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1558
1558
|
break;
|
|
1559
1559
|
case 5:
|
|
1560
|
-
tmp9_local5 = tmp10_input.
|
|
1560
|
+
tmp9_local5 = tmp10_input.p47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1561
1561
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1562
1562
|
break;
|
|
1563
1563
|
default:
|
|
1564
1564
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
tmp10_input.
|
|
1567
|
+
tmp10_input.c47(tmp0_desc);
|
|
1568
1568
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1569
1569
|
};
|
|
1570
|
-
protoOf($serializer_5).
|
|
1571
|
-
return this.
|
|
1570
|
+
protoOf($serializer_5).n43 = function () {
|
|
1571
|
+
return this.r5n_1;
|
|
1572
1572
|
};
|
|
1573
|
-
protoOf($serializer_5).
|
|
1573
|
+
protoOf($serializer_5).e4f = function () {
|
|
1574
1574
|
// Inline function 'kotlin.arrayOf' call
|
|
1575
1575
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1576
1576
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1584,37 +1584,37 @@
|
|
|
1584
1584
|
}
|
|
1585
1585
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1586
1586
|
if (!(63 === (63 & seen0))) {
|
|
1587
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1587
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().r5n_1);
|
|
1588
1588
|
}
|
|
1589
|
-
$this.
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1589
|
+
$this.t5n_1 = random;
|
|
1590
|
+
$this.u5n_1 = signature;
|
|
1591
|
+
$this.v5n_1 = bitsUsed;
|
|
1592
|
+
$this.w5n_1 = bitsLeft;
|
|
1593
|
+
$this.x5n_1 = requestsLeft;
|
|
1594
|
+
$this.y5n_1 = advisoryDelay;
|
|
1595
1595
|
return $this;
|
|
1596
1596
|
}
|
|
1597
1597
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1598
1598
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1599
1599
|
}
|
|
1600
1600
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1601
|
+
this.t5n_1 = random;
|
|
1602
|
+
this.u5n_1 = signature;
|
|
1603
|
+
this.v5n_1 = bitsUsed;
|
|
1604
|
+
this.w5n_1 = bitsLeft;
|
|
1605
|
+
this.x5n_1 = requestsLeft;
|
|
1606
|
+
this.y5n_1 = advisoryDelay;
|
|
1607
1607
|
}
|
|
1608
1608
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1609
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1609
|
+
return 'IntegerSequencesResultDto(random=' + this.t5n_1.toString() + ', signature=' + this.u5n_1 + ', bitsUsed=' + this.v5n_1 + ', bitsLeft=' + this.w5n_1 + ', requestsLeft=' + this.x5n_1 + ', advisoryDelay=' + this.y5n_1 + ')';
|
|
1610
1610
|
};
|
|
1611
1611
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1612
|
-
var result = this.
|
|
1613
|
-
result = imul(result, 31) + (this.
|
|
1614
|
-
result = imul(result, 31) + (this.
|
|
1615
|
-
result = imul(result, 31) + (this.
|
|
1616
|
-
result = imul(result, 31) + (this.
|
|
1617
|
-
result = imul(result, 31) + (this.
|
|
1612
|
+
var result = this.t5n_1.hashCode();
|
|
1613
|
+
result = imul(result, 31) + (this.u5n_1 == null ? 0 : getStringHashCode(this.u5n_1)) | 0;
|
|
1614
|
+
result = imul(result, 31) + (this.v5n_1 == null ? 0 : this.v5n_1) | 0;
|
|
1615
|
+
result = imul(result, 31) + (this.w5n_1 == null ? 0 : this.w5n_1) | 0;
|
|
1616
|
+
result = imul(result, 31) + (this.x5n_1 == null ? 0 : this.x5n_1) | 0;
|
|
1617
|
+
result = imul(result, 31) + (this.y5n_1 == null ? 0 : this.y5n_1) | 0;
|
|
1618
1618
|
return result;
|
|
1619
1619
|
};
|
|
1620
1620
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1623,17 +1623,17 @@
|
|
|
1623
1623
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1624
1624
|
return false;
|
|
1625
1625
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1626
|
-
if (!this.
|
|
1626
|
+
if (!this.t5n_1.equals(tmp0_other_with_cast.t5n_1))
|
|
1627
1627
|
return false;
|
|
1628
|
-
if (!(this.
|
|
1628
|
+
if (!(this.u5n_1 == tmp0_other_with_cast.u5n_1))
|
|
1629
1629
|
return false;
|
|
1630
|
-
if (!(this.
|
|
1630
|
+
if (!(this.v5n_1 == tmp0_other_with_cast.v5n_1))
|
|
1631
1631
|
return false;
|
|
1632
|
-
if (!(this.
|
|
1632
|
+
if (!(this.w5n_1 == tmp0_other_with_cast.w5n_1))
|
|
1633
1633
|
return false;
|
|
1634
|
-
if (!(this.
|
|
1634
|
+
if (!(this.x5n_1 == tmp0_other_with_cast.x5n_1))
|
|
1635
1635
|
return false;
|
|
1636
|
-
if (!(this.
|
|
1636
|
+
if (!(this.y5n_1 == tmp0_other_with_cast.y5n_1))
|
|
1637
1637
|
return false;
|
|
1638
1638
|
return true;
|
|
1639
1639
|
};
|
|
@@ -1643,7 +1643,7 @@
|
|
|
1643
1643
|
// Inline function 'kotlin.arrayOf' call
|
|
1644
1644
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1645
1645
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1646
|
-
tmp.
|
|
1646
|
+
tmp.z5n_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1647
1647
|
}
|
|
1648
1648
|
var Companion_instance_9;
|
|
1649
1649
|
function Companion_getInstance_10() {
|
|
@@ -1654,74 +1654,74 @@
|
|
|
1654
1654
|
function $serializer_6() {
|
|
1655
1655
|
$serializer_instance_4 = this;
|
|
1656
1656
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1657
|
-
tmp0_serialDesc.
|
|
1658
|
-
tmp0_serialDesc.
|
|
1659
|
-
tmp0_serialDesc.
|
|
1660
|
-
this.
|
|
1661
|
-
}
|
|
1662
|
-
protoOf($serializer_6).
|
|
1663
|
-
var tmp0_desc = this.
|
|
1664
|
-
var tmp1_output = encoder.
|
|
1665
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1666
|
-
tmp1_output.
|
|
1667
|
-
tmp1_output.
|
|
1668
|
-
tmp1_output.
|
|
1669
|
-
tmp1_output.
|
|
1670
|
-
};
|
|
1671
|
-
protoOf($serializer_6).
|
|
1672
|
-
return this.
|
|
1673
|
-
};
|
|
1674
|
-
protoOf($serializer_6).
|
|
1675
|
-
var tmp0_desc = this.
|
|
1657
|
+
tmp0_serialDesc.p4e('data', false);
|
|
1658
|
+
tmp0_serialDesc.p4e('completionTime', false);
|
|
1659
|
+
tmp0_serialDesc.p4e('ticketId', false);
|
|
1660
|
+
this.a5o_1 = tmp0_serialDesc;
|
|
1661
|
+
}
|
|
1662
|
+
protoOf($serializer_6).b5o = function (encoder, value) {
|
|
1663
|
+
var tmp0_desc = this.a5o_1;
|
|
1664
|
+
var tmp1_output = encoder.b47(tmp0_desc);
|
|
1665
|
+
var tmp2_cached = Companion_getInstance_10().z5n_1;
|
|
1666
|
+
tmp1_output.r48(tmp0_desc, 0, tmp2_cached[0], value.c5o_1);
|
|
1667
|
+
tmp1_output.p48(tmp0_desc, 1, value.d5o_1);
|
|
1668
|
+
tmp1_output.t48(tmp0_desc, 2, StringSerializer_getInstance(), value.e5o_1);
|
|
1669
|
+
tmp1_output.c47(tmp0_desc);
|
|
1670
|
+
};
|
|
1671
|
+
protoOf($serializer_6).o43 = function (encoder, value) {
|
|
1672
|
+
return this.b5o(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1673
|
+
};
|
|
1674
|
+
protoOf($serializer_6).p43 = function (decoder) {
|
|
1675
|
+
var tmp0_desc = this.a5o_1;
|
|
1676
1676
|
var tmp1_flag = true;
|
|
1677
1677
|
var tmp2_index = 0;
|
|
1678
1678
|
var tmp3_bitMask0 = 0;
|
|
1679
1679
|
var tmp4_local0 = null;
|
|
1680
1680
|
var tmp5_local1 = null;
|
|
1681
1681
|
var tmp6_local2 = null;
|
|
1682
|
-
var tmp7_input = decoder.
|
|
1683
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1684
|
-
if (tmp7_input.
|
|
1685
|
-
tmp4_local0 = tmp7_input.
|
|
1682
|
+
var tmp7_input = decoder.b47(tmp0_desc);
|
|
1683
|
+
var tmp8_cached = Companion_getInstance_10().z5n_1;
|
|
1684
|
+
if (tmp7_input.q47()) {
|
|
1685
|
+
tmp4_local0 = tmp7_input.n47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1686
1686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1687
|
-
tmp5_local1 = tmp7_input.
|
|
1687
|
+
tmp5_local1 = tmp7_input.l47(tmp0_desc, 1);
|
|
1688
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1689
|
-
tmp6_local2 = tmp7_input.
|
|
1689
|
+
tmp6_local2 = tmp7_input.p47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1690
1690
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1691
1691
|
} else
|
|
1692
1692
|
while (tmp1_flag) {
|
|
1693
|
-
tmp2_index = tmp7_input.
|
|
1693
|
+
tmp2_index = tmp7_input.r47(tmp0_desc);
|
|
1694
1694
|
switch (tmp2_index) {
|
|
1695
1695
|
case -1:
|
|
1696
1696
|
tmp1_flag = false;
|
|
1697
1697
|
break;
|
|
1698
1698
|
case 0:
|
|
1699
|
-
tmp4_local0 = tmp7_input.
|
|
1699
|
+
tmp4_local0 = tmp7_input.n47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1700
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1701
1701
|
break;
|
|
1702
1702
|
case 1:
|
|
1703
|
-
tmp5_local1 = tmp7_input.
|
|
1703
|
+
tmp5_local1 = tmp7_input.l47(tmp0_desc, 1);
|
|
1704
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1705
1705
|
break;
|
|
1706
1706
|
case 2:
|
|
1707
|
-
tmp6_local2 = tmp7_input.
|
|
1707
|
+
tmp6_local2 = tmp7_input.p47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1708
1708
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1709
1709
|
break;
|
|
1710
1710
|
default:
|
|
1711
1711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
tmp7_input.
|
|
1714
|
+
tmp7_input.c47(tmp0_desc);
|
|
1715
1715
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1716
1716
|
};
|
|
1717
|
-
protoOf($serializer_6).
|
|
1718
|
-
return this.
|
|
1717
|
+
protoOf($serializer_6).n43 = function () {
|
|
1718
|
+
return this.a5o_1;
|
|
1719
1719
|
};
|
|
1720
|
-
protoOf($serializer_6).
|
|
1720
|
+
protoOf($serializer_6).e4f = function () {
|
|
1721
1721
|
// Inline function 'kotlin.arrayOf' call
|
|
1722
1722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1723
1723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1724
|
-
return [Companion_getInstance_10().
|
|
1724
|
+
return [Companion_getInstance_10().z5n_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1725
1725
|
};
|
|
1726
1726
|
var $serializer_instance_4;
|
|
1727
1727
|
function $serializer_getInstance_4() {
|
|
@@ -1731,11 +1731,11 @@
|
|
|
1731
1731
|
}
|
|
1732
1732
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1733
1733
|
if (!(7 === (7 & seen0))) {
|
|
1734
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1734
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().a5o_1);
|
|
1735
1735
|
}
|
|
1736
|
-
$this.
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1736
|
+
$this.c5o_1 = data;
|
|
1737
|
+
$this.d5o_1 = completionTime;
|
|
1738
|
+
$this.e5o_1 = ticketId;
|
|
1739
1739
|
return $this;
|
|
1740
1740
|
}
|
|
1741
1741
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1744,12 +1744,12 @@
|
|
|
1744
1744
|
function IntegerSequencesDataDto() {
|
|
1745
1745
|
}
|
|
1746
1746
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1747
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1747
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.c5o_1) + ', completionTime=' + this.d5o_1 + ', ticketId=' + this.e5o_1 + ')';
|
|
1748
1748
|
};
|
|
1749
1749
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1750
|
-
var result = hashCode(this.
|
|
1751
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1752
|
-
result = imul(result, 31) + (this.
|
|
1750
|
+
var result = hashCode(this.c5o_1);
|
|
1751
|
+
result = imul(result, 31) + getStringHashCode(this.d5o_1) | 0;
|
|
1752
|
+
result = imul(result, 31) + (this.e5o_1 == null ? 0 : getStringHashCode(this.e5o_1)) | 0;
|
|
1753
1753
|
return result;
|
|
1754
1754
|
};
|
|
1755
1755
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1758,11 +1758,11 @@
|
|
|
1758
1758
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1759
1759
|
return false;
|
|
1760
1760
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1761
|
-
if (!equals(this.
|
|
1761
|
+
if (!equals(this.c5o_1, tmp0_other_with_cast.c5o_1))
|
|
1762
1762
|
return false;
|
|
1763
|
-
if (!(this.
|
|
1763
|
+
if (!(this.d5o_1 === tmp0_other_with_cast.d5o_1))
|
|
1764
1764
|
return false;
|
|
1765
|
-
if (!(this.
|
|
1765
|
+
if (!(this.e5o_1 == tmp0_other_with_cast.e5o_1))
|
|
1766
1766
|
return false;
|
|
1767
1767
|
return true;
|
|
1768
1768
|
};
|
|
@@ -1773,15 +1773,15 @@
|
|
|
1773
1773
|
}
|
|
1774
1774
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1775
1775
|
var tmp = new $throwIfErrorCOROUTINE$2($this, bodyAsJson, response, $completion);
|
|
1776
|
-
tmp.
|
|
1777
|
-
tmp.
|
|
1778
|
-
return tmp.
|
|
1776
|
+
tmp.g9_1 = Unit_instance;
|
|
1777
|
+
tmp.h9_1 = null;
|
|
1778
|
+
return tmp.m9();
|
|
1779
1779
|
}
|
|
1780
1780
|
function extractRandomResult($this, bodyAsJson) {
|
|
1781
1781
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1782
1782
|
}
|
|
1783
1783
|
function Companion_8() {
|
|
1784
|
-
this.
|
|
1784
|
+
this.s5o_1 = 52;
|
|
1785
1785
|
}
|
|
1786
1786
|
var Companion_instance_10;
|
|
1787
1787
|
function Companion_getInstance_11() {
|
|
@@ -1789,48 +1789,48 @@
|
|
|
1789
1789
|
}
|
|
1790
1790
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1791
1791
|
CoroutineImpl.call(this, resultContinuation);
|
|
1792
|
-
this.
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
}
|
|
1800
|
-
protoOf($getRandomCardDecksCOROUTINE$1).
|
|
1801
|
-
var suspendResult = this.
|
|
1792
|
+
this.b5p_1 = _this__u8e3s4;
|
|
1793
|
+
this.c5p_1 = min;
|
|
1794
|
+
this.d5p_1 = max;
|
|
1795
|
+
this.e5p_1 = decksCount;
|
|
1796
|
+
this.f5p_1 = cardsCount;
|
|
1797
|
+
this.g5p_1 = userData;
|
|
1798
|
+
this.h5p_1 = signed;
|
|
1799
|
+
}
|
|
1800
|
+
protoOf($getRandomCardDecksCOROUTINE$1).m9 = function () {
|
|
1801
|
+
var suspendResult = this.g9_1;
|
|
1802
1802
|
$sm: do
|
|
1803
1803
|
try {
|
|
1804
|
-
var tmp = this.
|
|
1804
|
+
var tmp = this.e9_1;
|
|
1805
1805
|
switch (tmp) {
|
|
1806
1806
|
case 0:
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1807
|
+
this.f9_1 = 6;
|
|
1808
|
+
this.f9_1 = 5;
|
|
1809
1809
|
var tmp_0 = this;
|
|
1810
|
-
tmp_0.
|
|
1810
|
+
tmp_0.i5p_1 = this.b5p_1.r5p_1;
|
|
1811
1811
|
var tmp_1 = this;
|
|
1812
|
-
tmp_1.
|
|
1812
|
+
tmp_1.j5p_1 = this.i5p_1;
|
|
1813
1813
|
var tmp_2 = this;
|
|
1814
1814
|
var this_0 = new HttpRequestBuilder();
|
|
1815
1815
|
url(this_0, '/json-rpc/4/invoke');
|
|
1816
|
-
var tmp11_id = this.
|
|
1817
|
-
var tmp12_method = this.
|
|
1818
|
-
var tmp8_apiKey = this.
|
|
1819
|
-
var size = this.
|
|
1816
|
+
var tmp11_id = this.g5p_1.id;
|
|
1817
|
+
var tmp12_method = this.h5p_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1818
|
+
var tmp8_apiKey = this.b5p_1.s5p_1;
|
|
1819
|
+
var size = this.e5p_1;
|
|
1820
1820
|
var list = ArrayList_init_$Create$(size);
|
|
1821
1821
|
var inductionVariable = 0;
|
|
1822
1822
|
if (inductionVariable < size)
|
|
1823
1823
|
do {
|
|
1824
1824
|
var index = inductionVariable;
|
|
1825
1825
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1826
|
-
list.e(this.
|
|
1826
|
+
list.e(this.f5p_1);
|
|
1827
1827
|
}
|
|
1828
1828
|
while (inductionVariable < size);
|
|
1829
|
-
var tmp10_userData = this.
|
|
1830
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1829
|
+
var tmp10_userData = this.h5p_1 ? mapToDto(this.g5p_1) : null;
|
|
1830
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.e5p_1, list, this.c5p_1, this.d5p_1, false, null, tmp10_userData);
|
|
1831
1831
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1832
1832
|
if (body == null) {
|
|
1833
|
-
this_0.
|
|
1833
|
+
this_0.t2u_1 = NullBody_instance;
|
|
1834
1834
|
var tmp_3 = JsType_instance;
|
|
1835
1835
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1836
1836
|
var tmp_5;
|
|
@@ -1846,13 +1846,13 @@
|
|
|
1846
1846
|
}
|
|
1847
1847
|
tmp_5 = tmp_6;
|
|
1848
1848
|
}
|
|
1849
|
-
this_0.
|
|
1849
|
+
this_0.p30(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1850
1850
|
} else {
|
|
1851
1851
|
if (body instanceof OutgoingContent) {
|
|
1852
|
-
this_0.
|
|
1853
|
-
this_0.
|
|
1852
|
+
this_0.t2u_1 = body;
|
|
1853
|
+
this_0.p30(null);
|
|
1854
1854
|
} else {
|
|
1855
|
-
this_0.
|
|
1855
|
+
this_0.t2u_1 = body;
|
|
1856
1856
|
var tmp_7 = JsType_instance;
|
|
1857
1857
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1858
1858
|
var tmp_9;
|
|
@@ -1868,29 +1868,29 @@
|
|
|
1868
1868
|
}
|
|
1869
1869
|
tmp_9 = tmp_10;
|
|
1870
1870
|
}
|
|
1871
|
-
this_0.
|
|
1871
|
+
this_0.p30(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
tmp_2.
|
|
1876
|
-
this.
|
|
1875
|
+
tmp_2.k5p_1 = this_0;
|
|
1876
|
+
this.k5p_1.r2u_1 = Companion_getInstance().h2j_1;
|
|
1877
1877
|
var tmp_11 = this;
|
|
1878
|
-
tmp_11.
|
|
1878
|
+
tmp_11.l5p_1 = this.j5p_1;
|
|
1879
1879
|
var tmp_12 = this;
|
|
1880
|
-
tmp_12.
|
|
1881
|
-
this.
|
|
1882
|
-
suspendResult = (new HttpStatement(this.
|
|
1880
|
+
tmp_12.m5p_1 = this.k5p_1;
|
|
1881
|
+
this.e9_1 = 1;
|
|
1882
|
+
suspendResult = (new HttpStatement(this.m5p_1, this.l5p_1)).z3n(this);
|
|
1883
1883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1884
1884
|
return suspendResult;
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
1887
1887
|
continue $sm;
|
|
1888
1888
|
case 1:
|
|
1889
|
-
this.
|
|
1889
|
+
this.n5p_1 = suspendResult;
|
|
1890
1890
|
var tmp_13 = this;
|
|
1891
|
-
tmp_13.
|
|
1892
|
-
this.
|
|
1893
|
-
var tmp_14 = this.
|
|
1891
|
+
tmp_13.o5p_1 = this.n5p_1;
|
|
1892
|
+
this.e9_1 = 2;
|
|
1893
|
+
var tmp_14 = this.o5p_1.y2x();
|
|
1894
1894
|
var tmp_15 = JsType_instance;
|
|
1895
1895
|
var tmp_16 = getKClass(JsonObject);
|
|
1896
1896
|
var tmp_17;
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
tmp_17 = tmp_18;
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
suspendResult = tmp_14.
|
|
1910
|
+
suspendResult = tmp_14.c2x(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1911
1911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1912
1912
|
return suspendResult;
|
|
1913
1913
|
}
|
|
@@ -1915,9 +1915,9 @@
|
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
case 2:
|
|
1917
1917
|
var tmp_19 = this;
|
|
1918
|
-
tmp_19.
|
|
1919
|
-
this.
|
|
1920
|
-
suspendResult = throwIfError(this.
|
|
1918
|
+
tmp_19.p5p_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1919
|
+
this.e9_1 = 3;
|
|
1920
|
+
suspendResult = throwIfError(this.b5p_1, this.p5p_1, this.n5p_1, this);
|
|
1921
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
1922
|
return suspendResult;
|
|
1923
1923
|
}
|
|
@@ -1925,9 +1925,9 @@
|
|
|
1925
1925
|
continue $sm;
|
|
1926
1926
|
case 3:
|
|
1927
1927
|
var tmp_20 = this;
|
|
1928
|
-
tmp_20.
|
|
1929
|
-
this.
|
|
1930
|
-
var tmp_21 = this.
|
|
1928
|
+
tmp_20.q5p_1 = this.n5p_1;
|
|
1929
|
+
this.e9_1 = 4;
|
|
1930
|
+
var tmp_21 = this.q5p_1.y2x();
|
|
1931
1931
|
var tmp_22 = JsType_instance;
|
|
1932
1932
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1933
1933
|
var tmp_24;
|
|
@@ -1944,7 +1944,7 @@
|
|
|
1944
1944
|
tmp_24 = tmp_25;
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
|
-
suspendResult = tmp_21.
|
|
1947
|
+
suspendResult = tmp_21.c2x(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1948
1948
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1949
1949
|
return suspendResult;
|
|
1950
1950
|
}
|
|
@@ -1952,59 +1952,59 @@
|
|
|
1952
1952
|
continue $sm;
|
|
1953
1953
|
case 4:
|
|
1954
1954
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1955
|
-
var randomJson = extractRandomResult(this.
|
|
1956
|
-
var tmp14_cardDecks = responseDto.t5n_1.
|
|
1957
|
-
var tmp15_signature = responseDto.
|
|
1958
|
-
var tmp16_id = responseDto.
|
|
1955
|
+
var randomJson = extractRandomResult(this.b5p_1, this.p5p_1);
|
|
1956
|
+
var tmp14_cardDecks = responseDto.p5n_1.t5n_1.c5o_1;
|
|
1957
|
+
var tmp15_signature = responseDto.p5n_1.u5n_1;
|
|
1958
|
+
var tmp16_id = responseDto.q5n_1;
|
|
1959
1959
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1960
1960
|
case 5:
|
|
1961
|
-
this.
|
|
1962
|
-
var tmp_26 = this.
|
|
1961
|
+
this.f9_1 = 6;
|
|
1962
|
+
var tmp_26 = this.h9_1;
|
|
1963
1963
|
if (tmp_26 instanceof Error) {
|
|
1964
|
-
var error = this.
|
|
1964
|
+
var error = this.h9_1;
|
|
1965
1965
|
if (error instanceof RandomException)
|
|
1966
1966
|
throw error;
|
|
1967
1967
|
else {
|
|
1968
1968
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1969
1969
|
}
|
|
1970
1970
|
} else {
|
|
1971
|
-
throw this.
|
|
1971
|
+
throw this.h9_1;
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
1974
|
case 6:
|
|
1975
|
-
throw this.
|
|
1975
|
+
throw this.h9_1;
|
|
1976
1976
|
}
|
|
1977
1977
|
} catch ($p) {
|
|
1978
1978
|
var e = $p;
|
|
1979
|
-
if (this.
|
|
1979
|
+
if (this.f9_1 === 6) {
|
|
1980
1980
|
throw e;
|
|
1981
1981
|
} else {
|
|
1982
|
-
this.
|
|
1983
|
-
this.
|
|
1982
|
+
this.e9_1 = this.f9_1;
|
|
1983
|
+
this.h9_1 = e;
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
1986
|
while (true);
|
|
1987
1987
|
};
|
|
1988
1988
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1989
1989
|
CoroutineImpl.call(this, resultContinuation);
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1990
|
+
this.o5o_1 = _this__u8e3s4;
|
|
1991
|
+
this.p5o_1 = bodyAsJson;
|
|
1992
|
+
this.q5o_1 = response;
|
|
1993
1993
|
}
|
|
1994
|
-
protoOf($throwIfErrorCOROUTINE$2).
|
|
1995
|
-
var suspendResult = this.
|
|
1994
|
+
protoOf($throwIfErrorCOROUTINE$2).m9 = function () {
|
|
1995
|
+
var suspendResult = this.g9_1;
|
|
1996
1996
|
$sm: do
|
|
1997
1997
|
try {
|
|
1998
|
-
var tmp = this.
|
|
1998
|
+
var tmp = this.e9_1;
|
|
1999
1999
|
switch (tmp) {
|
|
2000
2000
|
case 0:
|
|
2001
|
-
this.
|
|
2002
|
-
var this_0 = this.
|
|
2003
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2001
|
+
this.f9_1 = 3;
|
|
2002
|
+
var this_0 = this.p5o_1;
|
|
2003
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).e2('error')) {
|
|
2004
2004
|
var tmp_0 = this;
|
|
2005
|
-
tmp_0.
|
|
2006
|
-
this.
|
|
2007
|
-
var tmp_1 = this.
|
|
2005
|
+
tmp_0.r5o_1 = this.q5o_1;
|
|
2006
|
+
this.e9_1 = 2;
|
|
2007
|
+
var tmp_1 = this.r5o_1.y2x();
|
|
2008
2008
|
var tmp_2 = JsType_instance;
|
|
2009
2009
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2010
2010
|
var tmp_4;
|
|
@@ -2020,13 +2020,13 @@
|
|
|
2020
2020
|
}
|
|
2021
2021
|
tmp_4 = tmp_5;
|
|
2022
2022
|
}
|
|
2023
|
-
suspendResult = tmp_1.
|
|
2023
|
+
suspendResult = tmp_1.c2x(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2024
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2025
|
return suspendResult;
|
|
2026
2026
|
}
|
|
2027
2027
|
continue $sm;
|
|
2028
2028
|
} else {
|
|
2029
|
-
this.
|
|
2029
|
+
this.e9_1 = 1;
|
|
2030
2030
|
continue $sm;
|
|
2031
2031
|
}
|
|
2032
2032
|
|
|
@@ -2034,33 +2034,33 @@
|
|
|
2034
2034
|
return Unit_instance;
|
|
2035
2035
|
case 2:
|
|
2036
2036
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2037
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2038
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2039
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2040
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2037
|
+
var tmp18_safe_receiver = errorResponseDto.h5m_1;
|
|
2038
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.k5m_1;
|
|
2039
|
+
var tmp19_safe_receiver = errorResponseDto.h5m_1;
|
|
2040
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.l5m_1);
|
|
2041
2041
|
case 3:
|
|
2042
|
-
throw this.
|
|
2042
|
+
throw this.h9_1;
|
|
2043
2043
|
}
|
|
2044
2044
|
} catch ($p) {
|
|
2045
2045
|
var e = $p;
|
|
2046
|
-
if (this.
|
|
2046
|
+
if (this.f9_1 === 3) {
|
|
2047
2047
|
throw e;
|
|
2048
2048
|
} else {
|
|
2049
|
-
this.
|
|
2050
|
-
this.
|
|
2049
|
+
this.e9_1 = this.f9_1;
|
|
2050
|
+
this.h9_1 = e;
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
while (true);
|
|
2054
2054
|
};
|
|
2055
2055
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2056
|
+
this.r5p_1 = client;
|
|
2057
|
+
this.s5p_1 = apiKey;
|
|
2058
2058
|
}
|
|
2059
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2059
|
+
protoOf(RandomOrgApiServiceImpl).f5o = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2060
2060
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2061
|
-
tmp.
|
|
2062
|
-
tmp.
|
|
2063
|
-
return tmp.
|
|
2061
|
+
tmp.g9_1 = Unit_instance;
|
|
2062
|
+
tmp.h9_1 = null;
|
|
2063
|
+
return tmp.m9();
|
|
2064
2064
|
};
|
|
2065
2065
|
function PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2066
2066
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2083,37 +2083,37 @@
|
|
|
2083
2083
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2084
2084
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2085
2085
|
}
|
|
2086
|
-
protoOf(PoolParams).
|
|
2086
|
+
protoOf(PoolParams).a5m = function () {
|
|
2087
2087
|
return this.poolSize;
|
|
2088
2088
|
};
|
|
2089
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).b5m = function () {
|
|
2090
2090
|
return this.thresholdForUsedPool;
|
|
2091
2091
|
};
|
|
2092
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).t5p = function () {
|
|
2093
2093
|
return this.requestDurationWarn;
|
|
2094
2094
|
};
|
|
2095
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).u5p = function () {
|
|
2096
2096
|
return this.failedRequestAttempts;
|
|
2097
2097
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).v5p = function () {
|
|
2099
2099
|
return this.failedAttemptCooldown;
|
|
2100
2100
|
};
|
|
2101
|
-
protoOf(PoolParams).
|
|
2101
|
+
protoOf(PoolParams).pe = function () {
|
|
2102
2102
|
return this.poolSize;
|
|
2103
2103
|
};
|
|
2104
|
-
protoOf(PoolParams).
|
|
2104
|
+
protoOf(PoolParams).qe = function () {
|
|
2105
2105
|
return this.thresholdForUsedPool;
|
|
2106
2106
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2107
|
+
protoOf(PoolParams).fk = function () {
|
|
2108
2108
|
return this.requestDurationWarn;
|
|
2109
2109
|
};
|
|
2110
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).s5l = function () {
|
|
2111
2111
|
return this.failedRequestAttempts;
|
|
2112
2112
|
};
|
|
2113
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).w5p = function () {
|
|
2114
2114
|
return this.failedAttemptCooldown;
|
|
2115
2115
|
};
|
|
2116
|
-
protoOf(PoolParams).
|
|
2116
|
+
protoOf(PoolParams).x5p = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2117
2117
|
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2118
2118
|
};
|
|
2119
2119
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2123
2123
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2124
2124
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2125
|
-
return this.
|
|
2125
|
+
return this.x5p(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2126
2126
|
};
|
|
2127
2127
|
protoOf(PoolParams).toString = function () {
|
|
2128
2128
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2159,74 +2159,74 @@
|
|
|
2159
2159
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2160
2160
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2161
2161
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2162
|
+
this.b5q_1 = randomResult;
|
|
2163
|
+
this.c5q_1 = usedByGames;
|
|
2164
|
+
this.d5q_1 = reservedCardDecks;
|
|
2165
|
+
this.e5q_1 = isUsed;
|
|
2166
2166
|
}
|
|
2167
|
-
protoOf(RandomPoolValue).
|
|
2168
|
-
return this.
|
|
2167
|
+
protoOf(RandomPoolValue).f5q = function () {
|
|
2168
|
+
return this.b5q_1.k5l_1.m();
|
|
2169
2169
|
};
|
|
2170
|
-
protoOf(RandomPoolValue).
|
|
2171
|
-
if (this.
|
|
2170
|
+
protoOf(RandomPoolValue).g5q = function (minRoundsCount) {
|
|
2171
|
+
if (this.e5q_1) {
|
|
2172
2172
|
return false;
|
|
2173
2173
|
}
|
|
2174
|
-
var availableCount = this.
|
|
2174
|
+
var availableCount = this.f5q() - this.d5q_1 | 0;
|
|
2175
2175
|
return availableCount >= minRoundsCount;
|
|
2176
2176
|
};
|
|
2177
|
-
protoOf(RandomPoolValue).
|
|
2178
|
-
var lastReservedCardDeckIndex = this.
|
|
2177
|
+
protoOf(RandomPoolValue).h5q = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2178
|
+
var lastReservedCardDeckIndex = this.d5q_1 - 1 | 0;
|
|
2179
2179
|
// Inline function 'kotlin.apply' call
|
|
2180
|
-
var this_0 = toMutableMap(this.
|
|
2180
|
+
var this_0 = toMutableMap(this.c5q_1);
|
|
2181
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2182
2182
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2183
|
-
this_0.
|
|
2183
|
+
this_0.j2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2184
2184
|
var newNewUsedBy = toMap(this_0);
|
|
2185
|
-
var newReservedCardDecks = this.
|
|
2186
|
-
return this.
|
|
2185
|
+
var newReservedCardDecks = this.d5q_1 + reservedCardDecks | 0;
|
|
2186
|
+
return this.i5q(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.f5q());
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(RandomPoolValue).
|
|
2189
|
-
var currentCardDeckIndex = getValue(this.
|
|
2188
|
+
protoOf(RandomPoolValue).j5q = function (gameId) {
|
|
2189
|
+
var currentCardDeckIndex = getValue(this.c5q_1, gameId);
|
|
2190
2190
|
var tmp;
|
|
2191
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2191
|
+
if (currentCardDeckIndex === get_lastIndex(this.b5q_1.k5l_1)) {
|
|
2192
2192
|
tmp = 0;
|
|
2193
2193
|
} else {
|
|
2194
2194
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2195
2195
|
}
|
|
2196
2196
|
var newCardDeckIndex = tmp;
|
|
2197
2197
|
// Inline function 'kotlin.apply' call
|
|
2198
|
-
var this_0 = toMutableMap(this.
|
|
2198
|
+
var this_0 = toMutableMap(this.c5q_1);
|
|
2199
2199
|
// Inline function 'kotlin.contracts.contract' call
|
|
2200
2200
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2201
|
-
this_0.
|
|
2201
|
+
this_0.j2(gameId, newCardDeckIndex);
|
|
2202
2202
|
var newNewUsedBy = toMap(this_0);
|
|
2203
|
-
return this.
|
|
2203
|
+
return this.i5q(VOID, newNewUsedBy);
|
|
2204
2204
|
};
|
|
2205
|
-
protoOf(RandomPoolValue).
|
|
2206
|
-
return this.
|
|
2205
|
+
protoOf(RandomPoolValue).k5q = function (gameId, reservedCardDecks) {
|
|
2206
|
+
return this.i5q(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2207
2207
|
};
|
|
2208
|
-
protoOf(RandomPoolValue).
|
|
2209
|
-
var index = getValue(this.
|
|
2210
|
-
return new GameCardDeckData(index, this.
|
|
2208
|
+
protoOf(RandomPoolValue).l5q = function (gameId) {
|
|
2209
|
+
var index = getValue(this.c5q_1, gameId);
|
|
2210
|
+
return new GameCardDeckData(index, this.b5q_1.k5l_1.o(index));
|
|
2211
2211
|
};
|
|
2212
|
-
protoOf(RandomPoolValue).
|
|
2212
|
+
protoOf(RandomPoolValue).m5q = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2213
2213
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(RandomPoolValue).
|
|
2216
|
-
randomResult = randomResult === VOID ? this.
|
|
2217
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2218
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2219
|
-
isUsed = isUsed === VOID ? this.
|
|
2220
|
-
return $super === VOID ? this.
|
|
2215
|
+
protoOf(RandomPoolValue).i5q = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2216
|
+
randomResult = randomResult === VOID ? this.b5q_1 : randomResult;
|
|
2217
|
+
usedByGames = usedByGames === VOID ? this.c5q_1 : usedByGames;
|
|
2218
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.d5q_1 : reservedCardDecks;
|
|
2219
|
+
isUsed = isUsed === VOID ? this.e5q_1 : isUsed;
|
|
2220
|
+
return $super === VOID ? this.m5q(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.m5q.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2221
2221
|
};
|
|
2222
2222
|
protoOf(RandomPoolValue).toString = function () {
|
|
2223
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2223
|
+
return 'RandomPoolValue(randomResult=' + this.b5q_1.toString() + ', usedByGames=' + toString(this.c5q_1) + ', reservedCardDecks=' + this.d5q_1 + ', isUsed=' + this.e5q_1 + ')';
|
|
2224
2224
|
};
|
|
2225
2225
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2226
|
-
var result = this.
|
|
2227
|
-
result = imul(result, 31) + hashCode(this.
|
|
2228
|
-
result = imul(result, 31) + this.
|
|
2229
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2226
|
+
var result = this.b5q_1.hashCode();
|
|
2227
|
+
result = imul(result, 31) + hashCode(this.c5q_1) | 0;
|
|
2228
|
+
result = imul(result, 31) + this.d5q_1 | 0;
|
|
2229
|
+
result = imul(result, 31) + getBooleanHashCode(this.e5q_1) | 0;
|
|
2230
2230
|
return result;
|
|
2231
2231
|
};
|
|
2232
2232
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2235,48 +2235,48 @@
|
|
|
2235
2235
|
if (!(other instanceof RandomPoolValue))
|
|
2236
2236
|
return false;
|
|
2237
2237
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2238
|
-
if (!this.
|
|
2238
|
+
if (!this.b5q_1.equals(tmp0_other_with_cast.b5q_1))
|
|
2239
2239
|
return false;
|
|
2240
|
-
if (!equals(this.
|
|
2240
|
+
if (!equals(this.c5q_1, tmp0_other_with_cast.c5q_1))
|
|
2241
2241
|
return false;
|
|
2242
|
-
if (!(this.
|
|
2242
|
+
if (!(this.d5q_1 === tmp0_other_with_cast.d5q_1))
|
|
2243
2243
|
return false;
|
|
2244
|
-
if (!(this.
|
|
2244
|
+
if (!(this.e5q_1 === tmp0_other_with_cast.e5q_1))
|
|
2245
2245
|
return false;
|
|
2246
2246
|
return true;
|
|
2247
2247
|
};
|
|
2248
2248
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2255
|
-
this.
|
|
2249
|
+
this.v5q_1 = this$0;
|
|
2250
|
+
this.w5q_1 = $minRoundsCountInPool;
|
|
2251
|
+
this.x5q_1 = $userData;
|
|
2252
|
+
this.y5q_1 = $min;
|
|
2253
|
+
this.z5q_1 = $max;
|
|
2254
|
+
this.a5r_1 = $cardsCount;
|
|
2255
|
+
this.b5r_1 = $signed;
|
|
2256
2256
|
CoroutineImpl.call(this, resultContinuation);
|
|
2257
2257
|
}
|
|
2258
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2259
|
-
var tmp = this.
|
|
2260
|
-
tmp.
|
|
2261
|
-
tmp.
|
|
2262
|
-
var tmp_0 = tmp.
|
|
2258
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).d5r = function ($this$withTimeout, $completion) {
|
|
2259
|
+
var tmp = this.o1d($this$withTimeout, $completion);
|
|
2260
|
+
tmp.g9_1 = Unit_instance;
|
|
2261
|
+
tmp.h9_1 = null;
|
|
2262
|
+
var tmp_0 = tmp.m9();
|
|
2263
2263
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2264
2264
|
return tmp_0;
|
|
2265
2265
|
return tmp_0;
|
|
2266
2266
|
};
|
|
2267
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2268
|
-
return this.
|
|
2267
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).w9 = function (p1, $completion) {
|
|
2268
|
+
return this.d5r((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2269
2269
|
};
|
|
2270
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2271
|
-
var suspendResult = this.
|
|
2270
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).m9 = function () {
|
|
2271
|
+
var suspendResult = this.g9_1;
|
|
2272
2272
|
$sm: do
|
|
2273
2273
|
try {
|
|
2274
|
-
var tmp = this.
|
|
2274
|
+
var tmp = this.e9_1;
|
|
2275
2275
|
switch (tmp) {
|
|
2276
2276
|
case 0:
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2279
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2277
|
+
this.f9_1 = 2;
|
|
2278
|
+
this.e9_1 = 1;
|
|
2279
|
+
suspendResult = getOrLoadGameCardDeckData(this.v5q_1, this.w5q_1, this.x5q_1, this.y5q_1, this.z5q_1, this.a5r_1, this.b5r_1, this);
|
|
2280
2280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2281
2281
|
return suspendResult;
|
|
2282
2282
|
}
|
|
@@ -2286,43 +2286,43 @@
|
|
|
2286
2286
|
var cardDeckData = suspendResult;
|
|
2287
2287
|
return new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2288
2288
|
case 2:
|
|
2289
|
-
throw this.
|
|
2289
|
+
throw this.h9_1;
|
|
2290
2290
|
}
|
|
2291
2291
|
} catch ($p) {
|
|
2292
2292
|
var e = $p;
|
|
2293
|
-
if (this.
|
|
2293
|
+
if (this.f9_1 === 2) {
|
|
2294
2294
|
throw e;
|
|
2295
2295
|
} else {
|
|
2296
|
-
this.
|
|
2297
|
-
this.
|
|
2296
|
+
this.e9_1 = this.f9_1;
|
|
2297
|
+
this.h9_1 = e;
|
|
2298
2298
|
}
|
|
2299
2299
|
}
|
|
2300
2300
|
while (true);
|
|
2301
2301
|
};
|
|
2302
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2303
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.
|
|
2304
|
-
i.
|
|
2302
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).o1d = function ($this$withTimeout, completion) {
|
|
2303
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.v5q_1, this.w5q_1, this.x5q_1, this.y5q_1, this.z5q_1, this.a5r_1, this.b5r_1, completion);
|
|
2304
|
+
i.c5r_1 = $this$withTimeout;
|
|
2305
2305
|
return i;
|
|
2306
2306
|
};
|
|
2307
2307
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2308
2308
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2309
2309
|
var l = function ($this$withTimeout, $completion) {
|
|
2310
|
-
return i.
|
|
2310
|
+
return i.d5r($this$withTimeout, $completion);
|
|
2311
2311
|
};
|
|
2312
2312
|
l.$arity = 1;
|
|
2313
2313
|
return l;
|
|
2314
2314
|
}
|
|
2315
2315
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
|
|
2316
2316
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
|
|
2317
|
-
tmp.
|
|
2318
|
-
tmp.
|
|
2319
|
-
return tmp.
|
|
2317
|
+
tmp.g9_1 = Unit_instance;
|
|
2318
|
+
tmp.h9_1 = null;
|
|
2319
|
+
return tmp.m9();
|
|
2320
2320
|
}
|
|
2321
2321
|
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2322
|
-
return withContext($this.
|
|
2322
|
+
return withContext($this.x5r_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2323
2323
|
}
|
|
2324
2324
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2325
|
-
var existingCardDeck = $this.
|
|
2325
|
+
var existingCardDeck = $this.b5s_1.g2(userData.gameId);
|
|
2326
2326
|
var tmp;
|
|
2327
2327
|
if (!(existingCardDeck == null)) {
|
|
2328
2328
|
tmp = Companion_instance_2.newRound(existingCardDeck, cardDeckData);
|
|
@@ -2333,14 +2333,14 @@
|
|
|
2333
2333
|
}
|
|
2334
2334
|
function getPreparedRandomPoolValue($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion) {
|
|
2335
2335
|
var tmp = new $getPreparedRandomPoolValueCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion);
|
|
2336
|
-
tmp.
|
|
2337
|
-
tmp.
|
|
2338
|
-
return tmp.
|
|
2336
|
+
tmp.g9_1 = Unit_instance;
|
|
2337
|
+
tmp.h9_1 = null;
|
|
2338
|
+
return tmp.m9();
|
|
2339
2339
|
}
|
|
2340
2340
|
function Companion_9() {
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2341
|
+
this.v5s_1 = 100;
|
|
2342
|
+
this.w5s_1 = 3;
|
|
2343
|
+
this.x5s_1 = 3000;
|
|
2344
2344
|
}
|
|
2345
2345
|
var Companion_instance_11;
|
|
2346
2346
|
function Companion_getInstance_12() {
|
|
@@ -2350,181 +2350,181 @@
|
|
|
2350
2350
|
return uuid4().toString();
|
|
2351
2351
|
}
|
|
2352
2352
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2353
|
-
this.
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2353
|
+
this.g5t_1 = this$0;
|
|
2354
|
+
this.h5t_1 = $timeoutMillis;
|
|
2355
|
+
this.i5t_1 = $minRoundsCountInPool;
|
|
2356
|
+
this.j5t_1 = $userData;
|
|
2357
|
+
this.k5t_1 = $min;
|
|
2358
|
+
this.l5t_1 = $max;
|
|
2359
|
+
this.m5t_1 = $cardsCount;
|
|
2360
|
+
this.n5t_1 = $signed;
|
|
2361
2361
|
CoroutineImpl.call(this, resultContinuation);
|
|
2362
2362
|
}
|
|
2363
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2364
|
-
var tmp = this.
|
|
2365
|
-
tmp.
|
|
2366
|
-
tmp.
|
|
2367
|
-
var tmp_0 = tmp.
|
|
2363
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).d5r = function ($this$withContext, $completion) {
|
|
2364
|
+
var tmp = this.o1d($this$withContext, $completion);
|
|
2365
|
+
tmp.g9_1 = Unit_instance;
|
|
2366
|
+
tmp.h9_1 = null;
|
|
2367
|
+
var tmp_0 = tmp.m9();
|
|
2368
2368
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2369
2369
|
return tmp_0;
|
|
2370
2370
|
return tmp_0;
|
|
2371
2371
|
};
|
|
2372
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2373
|
-
return this.
|
|
2372
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).w9 = function (p1, $completion) {
|
|
2373
|
+
return this.d5r((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2374
2374
|
};
|
|
2375
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2376
|
-
var suspendResult = this.
|
|
2375
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).m9 = function () {
|
|
2376
|
+
var suspendResult = this.g9_1;
|
|
2377
2377
|
$sm: do
|
|
2378
2378
|
try {
|
|
2379
|
-
var tmp = this.
|
|
2379
|
+
var tmp = this.e9_1;
|
|
2380
2380
|
switch (tmp) {
|
|
2381
2381
|
case 0:
|
|
2382
|
-
this.
|
|
2382
|
+
this.f9_1 = 11;
|
|
2383
2383
|
var tmp_0 = this;
|
|
2384
|
-
tmp_0.
|
|
2384
|
+
tmp_0.p5t_1 = this.g5t_1.z5r_1;
|
|
2385
2385
|
var tmp_1 = this;
|
|
2386
|
-
tmp_1.
|
|
2387
|
-
this.
|
|
2388
|
-
suspendResult = this.
|
|
2386
|
+
tmp_1.q5t_1 = null;
|
|
2387
|
+
this.e9_1 = 1;
|
|
2388
|
+
suspendResult = this.p5t_1.k1l(this.q5t_1, this);
|
|
2389
2389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2390
2390
|
return suspendResult;
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
2393
2393
|
continue $sm;
|
|
2394
2394
|
case 1:
|
|
2395
|
-
this.
|
|
2396
|
-
this.
|
|
2395
|
+
this.r5t_1 = Unit_instance;
|
|
2396
|
+
this.e9_1 = 2;
|
|
2397
2397
|
continue $sm;
|
|
2398
2398
|
case 2:
|
|
2399
|
-
this.
|
|
2400
|
-
this.
|
|
2401
|
-
this.
|
|
2399
|
+
this.f9_1 = 10;
|
|
2400
|
+
this.s5t_1 = Unit_instance;
|
|
2401
|
+
this.e9_1 = 3;
|
|
2402
2402
|
continue $sm;
|
|
2403
2403
|
case 3:
|
|
2404
|
-
this.
|
|
2405
|
-
if (!(this.
|
|
2406
|
-
this.
|
|
2407
|
-
if (this.
|
|
2408
|
-
this.
|
|
2409
|
-
this.
|
|
2404
|
+
this.t5t_1 = this.g5t_1.c5s_1;
|
|
2405
|
+
if (!(this.t5t_1 == null) && this.g5t_1.d5s_1 >= this.g5t_1.u5r_1.failedRequestAttempts) {
|
|
2406
|
+
this.u5t_1 = this.t5t_1.f5k(this.g5t_1.u5r_1.failedAttemptCooldown);
|
|
2407
|
+
if (this.u5t_1.j5k(System_instance.r54()) > 0) {
|
|
2408
|
+
this.v5t_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.u5t_1.toString());
|
|
2409
|
+
this.g5t_1.w5r_1.v('RandomPoolProvider', VOID, this.v5t_1);
|
|
2410
2410
|
var tmp_2 = this;
|
|
2411
|
-
var exception = this.
|
|
2412
|
-
tmp_2.
|
|
2413
|
-
this.
|
|
2411
|
+
var exception = this.v5t_1;
|
|
2412
|
+
tmp_2.s5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2413
|
+
this.e9_1 = 8;
|
|
2414
2414
|
continue $sm;
|
|
2415
2415
|
} else {
|
|
2416
|
-
this.
|
|
2416
|
+
this.e9_1 = 4;
|
|
2417
2417
|
continue $sm;
|
|
2418
2418
|
}
|
|
2419
2419
|
} else {
|
|
2420
|
-
this.
|
|
2420
|
+
this.e9_1 = 5;
|
|
2421
2421
|
continue $sm;
|
|
2422
2422
|
}
|
|
2423
2423
|
|
|
2424
2424
|
case 4:
|
|
2425
|
-
this.
|
|
2425
|
+
this.e9_1 = 5;
|
|
2426
2426
|
continue $sm;
|
|
2427
2427
|
case 5:
|
|
2428
|
-
this.
|
|
2429
|
-
this.
|
|
2430
|
-
suspendResult = withTimeout(this.
|
|
2428
|
+
this.f9_1 = 7;
|
|
2429
|
+
this.e9_1 = 6;
|
|
2430
|
+
suspendResult = withTimeout(this.h5t_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.g5t_1, this.i5t_1, this.j5t_1, this.k5t_1, this.l5t_1, this.m5t_1, this.n5t_1, null), this);
|
|
2431
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2432
2432
|
return suspendResult;
|
|
2433
2433
|
}
|
|
2434
2434
|
|
|
2435
2435
|
continue $sm;
|
|
2436
2436
|
case 6:
|
|
2437
|
-
this.
|
|
2438
|
-
this.
|
|
2437
|
+
this.s5t_1 = suspendResult;
|
|
2438
|
+
this.e9_1 = 8;
|
|
2439
2439
|
continue $sm;
|
|
2440
2440
|
case 7:
|
|
2441
|
-
this.
|
|
2442
|
-
var tmp_3 = this.
|
|
2441
|
+
this.f9_1 = 10;
|
|
2442
|
+
var tmp_3 = this.h9_1;
|
|
2443
2443
|
if (tmp_3 instanceof Error) {
|
|
2444
|
-
var error = this.
|
|
2445
|
-
this.
|
|
2446
|
-
var _unary__edvuaz = this.
|
|
2447
|
-
this.
|
|
2444
|
+
var error = this.h9_1;
|
|
2445
|
+
this.g5t_1.c5s_1 = System_instance.r54();
|
|
2446
|
+
var _unary__edvuaz = this.g5t_1.d5s_1;
|
|
2447
|
+
this.g5t_1.d5s_1 = _unary__edvuaz + 1 | 0;
|
|
2448
2448
|
var exception_0 = new RandomException(VOID, 'createNewShuffledCardDeck error message = ' + error.message, error);
|
|
2449
|
-
this.
|
|
2449
|
+
this.g5t_1.w5r_1.v('RandomPoolProvider', VOID, exception_0);
|
|
2450
2450
|
var tmp_4 = this;
|
|
2451
|
-
tmp_4.
|
|
2452
|
-
this.
|
|
2451
|
+
tmp_4.s5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2452
|
+
this.e9_1 = 8;
|
|
2453
2453
|
continue $sm;
|
|
2454
2454
|
} else {
|
|
2455
|
-
throw this.
|
|
2455
|
+
throw this.h9_1;
|
|
2456
2456
|
}
|
|
2457
2457
|
|
|
2458
2458
|
case 8:
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2459
|
+
this.r5t_1 = this.s5t_1;
|
|
2460
|
+
this.f9_1 = 11;
|
|
2461
|
+
this.e9_1 = 9;
|
|
2462
2462
|
continue $sm;
|
|
2463
2463
|
case 9:
|
|
2464
|
-
var tmp_5 = this.
|
|
2465
|
-
this.
|
|
2466
|
-
this.
|
|
2464
|
+
var tmp_5 = this.r5t_1;
|
|
2465
|
+
this.f9_1 = 11;
|
|
2466
|
+
this.p5t_1.v1k(this.q5t_1);
|
|
2467
2467
|
return tmp_5;
|
|
2468
2468
|
case 10:
|
|
2469
|
-
this.
|
|
2470
|
-
var t = this.
|
|
2471
|
-
this.
|
|
2469
|
+
this.f9_1 = 11;
|
|
2470
|
+
var t = this.h9_1;
|
|
2471
|
+
this.p5t_1.v1k(this.q5t_1);
|
|
2472
2472
|
throw t;
|
|
2473
2473
|
case 11:
|
|
2474
|
-
throw this.
|
|
2474
|
+
throw this.h9_1;
|
|
2475
2475
|
}
|
|
2476
2476
|
} catch ($p) {
|
|
2477
2477
|
var e = $p;
|
|
2478
|
-
if (this.
|
|
2478
|
+
if (this.f9_1 === 11) {
|
|
2479
2479
|
throw e;
|
|
2480
2480
|
} else {
|
|
2481
|
-
this.
|
|
2482
|
-
this.
|
|
2481
|
+
this.e9_1 = this.f9_1;
|
|
2482
|
+
this.h9_1 = e;
|
|
2483
2483
|
}
|
|
2484
2484
|
}
|
|
2485
2485
|
while (true);
|
|
2486
2486
|
};
|
|
2487
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2488
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2489
|
-
i.
|
|
2487
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).o1d = function ($this$withContext, completion) {
|
|
2488
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.g5t_1, this.h5t_1, this.i5t_1, this.j5t_1, this.k5t_1, this.l5t_1, this.m5t_1, this.n5t_1, completion);
|
|
2489
|
+
i.o5t_1 = $this$withContext;
|
|
2490
2490
|
return i;
|
|
2491
2491
|
};
|
|
2492
2492
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2493
2493
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2494
2494
|
var l = function ($this$withContext, $completion) {
|
|
2495
|
-
return i.
|
|
2495
|
+
return i.d5r($this$withContext, $completion);
|
|
2496
2496
|
};
|
|
2497
2497
|
l.$arity = 1;
|
|
2498
2498
|
return l;
|
|
2499
2499
|
}
|
|
2500
2500
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2501
|
-
this.
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2501
|
+
this.e5u_1 = this$0;
|
|
2502
|
+
this.f5u_1 = $min;
|
|
2503
|
+
this.g5u_1 = $max;
|
|
2504
|
+
this.h5u_1 = $cardsCount;
|
|
2505
|
+
this.i5u_1 = $signed;
|
|
2506
2506
|
CoroutineImpl.call(this, resultContinuation);
|
|
2507
2507
|
}
|
|
2508
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2509
|
-
var tmp = this.
|
|
2510
|
-
tmp.
|
|
2511
|
-
tmp.
|
|
2512
|
-
return tmp.
|
|
2508
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).l5u = function ($this$withContext, $completion) {
|
|
2509
|
+
var tmp = this.o1d($this$withContext, $completion);
|
|
2510
|
+
tmp.g9_1 = Unit_instance;
|
|
2511
|
+
tmp.h9_1 = null;
|
|
2512
|
+
return tmp.m9();
|
|
2513
2513
|
};
|
|
2514
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2515
|
-
return this.
|
|
2514
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).w9 = function (p1, $completion) {
|
|
2515
|
+
return this.l5u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2516
2516
|
};
|
|
2517
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2518
|
-
var suspendResult = this.
|
|
2517
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).m9 = function () {
|
|
2518
|
+
var suspendResult = this.g9_1;
|
|
2519
2519
|
$sm: do
|
|
2520
2520
|
try {
|
|
2521
|
-
var tmp = this.
|
|
2521
|
+
var tmp = this.e9_1;
|
|
2522
2522
|
switch (tmp) {
|
|
2523
2523
|
case 0:
|
|
2524
|
-
this.
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2527
|
-
suspendResult = this.
|
|
2524
|
+
this.f9_1 = 2;
|
|
2525
|
+
this.k5u_1 = System_instance.r54();
|
|
2526
|
+
this.e9_1 = 1;
|
|
2527
|
+
suspendResult = this.e5u_1.v5r_1.f5o(this.f5u_1, this.g5u_1, this.e5u_1.u5r_1.poolSize, this.h5u_1, new CardDecksRequestUserData(this.e5u_1.y5r_1(), this.e5u_1.u5r_1.poolSize), this.i5u_1, this);
|
|
2528
2528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2529
2529
|
return suspendResult;
|
|
2530
2530
|
}
|
|
@@ -2532,64 +2532,64 @@
|
|
|
2532
2532
|
continue $sm;
|
|
2533
2533
|
case 1:
|
|
2534
2534
|
var result = suspendResult;
|
|
2535
|
-
var requestEndTime = System_instance.
|
|
2536
|
-
var requestDuration = requestEndTime.
|
|
2535
|
+
var requestEndTime = System_instance.r54();
|
|
2536
|
+
var requestDuration = requestEndTime.i5k(this.k5u_1);
|
|
2537
2537
|
Companion_getInstance_0();
|
|
2538
|
-
var this_0 = this.
|
|
2538
|
+
var this_0 = this.e5u_1.u5r_1.requestDurationWarn;
|
|
2539
2539
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2540
|
-
this.
|
|
2540
|
+
this.e5u_1.w5r_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.e5u_1.u5r_1.requestDurationWarn));
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
2544
2544
|
return newCardDecksValue;
|
|
2545
2545
|
case 2:
|
|
2546
|
-
throw this.
|
|
2546
|
+
throw this.h9_1;
|
|
2547
2547
|
}
|
|
2548
2548
|
} catch ($p) {
|
|
2549
2549
|
var e = $p;
|
|
2550
|
-
if (this.
|
|
2550
|
+
if (this.f9_1 === 2) {
|
|
2551
2551
|
throw e;
|
|
2552
2552
|
} else {
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2553
|
+
this.e9_1 = this.f9_1;
|
|
2554
|
+
this.h9_1 = e;
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
while (true);
|
|
2558
2558
|
};
|
|
2559
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2560
|
-
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.
|
|
2561
|
-
i.
|
|
2559
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).o1d = function ($this$withContext, completion) {
|
|
2560
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.e5u_1, this.f5u_1, this.g5u_1, this.h5u_1, this.i5u_1, completion);
|
|
2561
|
+
i.j5u_1 = $this$withContext;
|
|
2562
2562
|
return i;
|
|
2563
2563
|
};
|
|
2564
2564
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2565
2565
|
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2566
2566
|
var l = function ($this$withContext, $completion) {
|
|
2567
|
-
return i.
|
|
2567
|
+
return i.l5u($this$withContext, $completion);
|
|
2568
2568
|
};
|
|
2569
2569
|
l.$arity = 1;
|
|
2570
2570
|
return l;
|
|
2571
2571
|
}
|
|
2572
2572
|
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2573
2573
|
CoroutineImpl.call(this, resultContinuation);
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2576
|
-
this.
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
}
|
|
2582
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).
|
|
2583
|
-
var suspendResult = this.
|
|
2574
|
+
this.m5r_1 = _this__u8e3s4;
|
|
2575
|
+
this.n5r_1 = minRoundsCountInPool;
|
|
2576
|
+
this.o5r_1 = userData;
|
|
2577
|
+
this.p5r_1 = min;
|
|
2578
|
+
this.q5r_1 = max;
|
|
2579
|
+
this.r5r_1 = cardsCount;
|
|
2580
|
+
this.s5r_1 = signed;
|
|
2581
|
+
}
|
|
2582
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).m9 = function () {
|
|
2583
|
+
var suspendResult = this.g9_1;
|
|
2584
2584
|
$sm: do
|
|
2585
2585
|
try {
|
|
2586
|
-
var tmp = this.
|
|
2586
|
+
var tmp = this.e9_1;
|
|
2587
2587
|
switch (tmp) {
|
|
2588
2588
|
case 0:
|
|
2589
|
-
this.
|
|
2590
|
-
this.
|
|
2591
|
-
this.
|
|
2592
|
-
suspendResult = getPreparedRandomPoolValue(this.
|
|
2589
|
+
this.f9_1 = 2;
|
|
2590
|
+
this.t5r_1 = this.o5r_1.gameId;
|
|
2591
|
+
this.e9_1 = 1;
|
|
2592
|
+
suspendResult = getPreparedRandomPoolValue(this.m5r_1, this.t5r_1, this.p5r_1, this.q5r_1, this.n5r_1, this.r5r_1, this.s5r_1, this);
|
|
2593
2593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2594
2594
|
return suspendResult;
|
|
2595
2595
|
}
|
|
@@ -2597,85 +2597,85 @@
|
|
|
2597
2597
|
continue $sm;
|
|
2598
2598
|
case 1:
|
|
2599
2599
|
var randomPoolValue = suspendResult;
|
|
2600
|
-
var this_0 = this.
|
|
2601
|
-
var key = randomPoolValue.
|
|
2602
|
-
this_0.
|
|
2603
|
-
var cardDeckData = randomPoolValue.
|
|
2604
|
-
var tmp21_poolId = randomPoolValue.
|
|
2605
|
-
var tmp22_signature = randomPoolValue.
|
|
2606
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2607
|
-
var this_1 = this.
|
|
2608
|
-
var key_0 = this.
|
|
2609
|
-
this_1.
|
|
2600
|
+
var this_0 = this.m5r_1.a5s_1;
|
|
2601
|
+
var key = randomPoolValue.b5q_1.m5l_1;
|
|
2602
|
+
this_0.j2(key, randomPoolValue);
|
|
2603
|
+
var cardDeckData = randomPoolValue.l5q(this.o5r_1.gameId);
|
|
2604
|
+
var tmp21_poolId = randomPoolValue.b5q_1.m5l_1;
|
|
2605
|
+
var tmp22_signature = randomPoolValue.b5q_1.n5l_1;
|
|
2606
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.m5r_1, tmp21_poolId, tmp22_signature, cardDeckData, this.o5r_1);
|
|
2607
|
+
var this_1 = this.m5r_1.b5s_1;
|
|
2608
|
+
var key_0 = this.o5r_1.gameId;
|
|
2609
|
+
this_1.j2(key_0, cardDecksRecord);
|
|
2610
2610
|
return cardDeckData;
|
|
2611
2611
|
case 2:
|
|
2612
|
-
throw this.
|
|
2612
|
+
throw this.h9_1;
|
|
2613
2613
|
}
|
|
2614
2614
|
} catch ($p) {
|
|
2615
2615
|
var e = $p;
|
|
2616
|
-
if (this.
|
|
2616
|
+
if (this.f9_1 === 2) {
|
|
2617
2617
|
throw e;
|
|
2618
2618
|
} else {
|
|
2619
|
-
this.
|
|
2620
|
-
this.
|
|
2619
|
+
this.e9_1 = this.f9_1;
|
|
2620
|
+
this.h9_1 = e;
|
|
2621
2621
|
}
|
|
2622
2622
|
}
|
|
2623
2623
|
while (true);
|
|
2624
2624
|
};
|
|
2625
2625
|
function $getPreparedRandomPoolValueCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2626
2626
|
CoroutineImpl.call(this, resultContinuation);
|
|
2627
|
-
this.
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2631
|
-
this.
|
|
2632
|
-
this.
|
|
2633
|
-
this.
|
|
2634
|
-
}
|
|
2635
|
-
protoOf($getPreparedRandomPoolValueCOROUTINE$4).
|
|
2636
|
-
var suspendResult = this.
|
|
2627
|
+
this.m5s_1 = _this__u8e3s4;
|
|
2628
|
+
this.n5s_1 = gameId;
|
|
2629
|
+
this.o5s_1 = min;
|
|
2630
|
+
this.p5s_1 = max;
|
|
2631
|
+
this.q5s_1 = minRoundsCount;
|
|
2632
|
+
this.r5s_1 = cardsCount;
|
|
2633
|
+
this.s5s_1 = signed;
|
|
2634
|
+
}
|
|
2635
|
+
protoOf($getPreparedRandomPoolValueCOROUTINE$4).m9 = function () {
|
|
2636
|
+
var suspendResult = this.g9_1;
|
|
2637
2637
|
$sm: do
|
|
2638
2638
|
try {
|
|
2639
|
-
var tmp = this.
|
|
2639
|
+
var tmp = this.e9_1;
|
|
2640
2640
|
switch (tmp) {
|
|
2641
2641
|
case 0:
|
|
2642
|
-
this.
|
|
2642
|
+
this.f9_1 = 2;
|
|
2643
2643
|
var tmp_0 = this;
|
|
2644
|
-
var this_0 = this.
|
|
2644
|
+
var this_0 = this.m5s_1.a5s_1;
|
|
2645
2645
|
var destination = LinkedHashMap_init_$Create$();
|
|
2646
2646
|
var tmp0_iterator = this_0.s().j();
|
|
2647
2647
|
while (tmp0_iterator.k()) {
|
|
2648
2648
|
var element = tmp0_iterator.l();
|
|
2649
|
-
var this_1 = element.u().
|
|
2650
|
-
var key = this.
|
|
2651
|
-
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).
|
|
2652
|
-
destination.
|
|
2649
|
+
var this_1 = element.u().c5q_1;
|
|
2650
|
+
var key = this.n5s_1;
|
|
2651
|
+
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).e2(key)) {
|
|
2652
|
+
destination.j2(element.t(), element.u());
|
|
2653
2653
|
}
|
|
2654
2654
|
}
|
|
2655
2655
|
|
|
2656
|
-
tmp_0.
|
|
2657
|
-
if (!(this.
|
|
2658
|
-
return this.
|
|
2656
|
+
tmp_0.t5s_1 = firstOrNull(destination.s());
|
|
2657
|
+
if (!(this.t5s_1 == null)) {
|
|
2658
|
+
return this.t5s_1.u().j5q(this.n5s_1);
|
|
2659
2659
|
}
|
|
2660
2660
|
|
|
2661
2661
|
var tmp_1 = this;
|
|
2662
|
-
var this_2 = this.
|
|
2662
|
+
var this_2 = this.m5s_1.a5s_1;
|
|
2663
2663
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2664
2664
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2665
2665
|
while (tmp0_iterator_0.k()) {
|
|
2666
2666
|
var element_0 = tmp0_iterator_0.l();
|
|
2667
|
-
if (element_0.u().
|
|
2668
|
-
destination_0.
|
|
2667
|
+
if (element_0.u().g5q(this.q5s_1)) {
|
|
2668
|
+
destination_0.j2(element_0.t(), element_0.u());
|
|
2669
2669
|
}
|
|
2670
2670
|
}
|
|
2671
2671
|
|
|
2672
|
-
tmp_1.
|
|
2673
|
-
if (!(this.
|
|
2674
|
-
return this.
|
|
2672
|
+
tmp_1.u5s_1 = firstOrNull(destination_0.s());
|
|
2673
|
+
if (!(this.u5s_1 == null)) {
|
|
2674
|
+
return this.u5s_1.u().h5q(this.n5s_1, this.q5s_1, this.m5s_1.u5r_1.thresholdForUsedPool);
|
|
2675
2675
|
}
|
|
2676
2676
|
|
|
2677
|
-
this.
|
|
2678
|
-
suspendResult = requestNewCardDecks(this.
|
|
2677
|
+
this.e9_1 = 1;
|
|
2678
|
+
suspendResult = requestNewCardDecks(this.m5s_1, this.o5s_1, this.p5s_1, this.r5s_1, this.s5s_1, this);
|
|
2679
2679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2680
2680
|
return suspendResult;
|
|
2681
2681
|
}
|
|
@@ -2683,23 +2683,23 @@
|
|
|
2683
2683
|
continue $sm;
|
|
2684
2684
|
case 1:
|
|
2685
2685
|
var cardDecks = suspendResult;
|
|
2686
|
-
return cardDecks.
|
|
2686
|
+
return cardDecks.k5q(this.n5s_1, this.q5s_1);
|
|
2687
2687
|
case 2:
|
|
2688
|
-
throw this.
|
|
2688
|
+
throw this.h9_1;
|
|
2689
2689
|
}
|
|
2690
2690
|
} catch ($p) {
|
|
2691
2691
|
var e = $p;
|
|
2692
|
-
if (this.
|
|
2692
|
+
if (this.f9_1 === 2) {
|
|
2693
2693
|
throw e;
|
|
2694
2694
|
} else {
|
|
2695
|
-
this.
|
|
2696
|
-
this.
|
|
2695
|
+
this.e9_1 = this.f9_1;
|
|
2696
|
+
this.h9_1 = e;
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
while (true);
|
|
2700
2700
|
};
|
|
2701
2701
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2702
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2702
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().j10_1 : dispatcher;
|
|
2703
2703
|
var tmp;
|
|
2704
2704
|
if (idsProvider === VOID) {
|
|
2705
2705
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2707,86 +2707,86 @@
|
|
|
2707
2707
|
tmp = idsProvider;
|
|
2708
2708
|
}
|
|
2709
2709
|
idsProvider = tmp;
|
|
2710
|
-
this.
|
|
2711
|
-
this.
|
|
2712
|
-
this.
|
|
2713
|
-
this.
|
|
2714
|
-
this.
|
|
2715
|
-
this.
|
|
2710
|
+
this.u5r_1 = params;
|
|
2711
|
+
this.v5r_1 = randomOrgApiService;
|
|
2712
|
+
this.w5r_1 = logger;
|
|
2713
|
+
this.x5r_1 = dispatcher;
|
|
2714
|
+
this.y5r_1 = idsProvider;
|
|
2715
|
+
this.z5r_1 = Mutex();
|
|
2716
2716
|
var tmp_0 = this;
|
|
2717
2717
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2718
|
-
tmp_0.
|
|
2718
|
+
tmp_0.a5s_1 = LinkedHashMap_init_$Create$();
|
|
2719
2719
|
var tmp_1 = this;
|
|
2720
2720
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2721
|
-
tmp_1.
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2721
|
+
tmp_1.b5s_1 = LinkedHashMap_init_$Create$();
|
|
2722
|
+
this.c5s_1 = null;
|
|
2723
|
+
this.d5s_1 = 0;
|
|
2724
2724
|
}
|
|
2725
|
-
protoOf(RandomPoolProviderImpl).
|
|
2726
|
-
var tmp = withContext(this.
|
|
2725
|
+
protoOf(RandomPoolProviderImpl).y5p = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2726
|
+
var tmp = withContext(this.x5r_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2727
2727
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2728
2728
|
return tmp;
|
|
2729
2729
|
return tmp;
|
|
2730
2730
|
};
|
|
2731
|
-
protoOf(RandomPoolProviderImpl).
|
|
2732
|
-
return this.
|
|
2731
|
+
protoOf(RandomPoolProviderImpl).m5u = function (gameId) {
|
|
2732
|
+
return this.b5s_1.g2(gameId);
|
|
2733
2733
|
};
|
|
2734
2734
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2735
|
-
return this.
|
|
2735
|
+
return this.m5u(gameId);
|
|
2736
2736
|
};
|
|
2737
|
-
protoOf(RandomPoolProviderImpl).
|
|
2738
|
-
return this.
|
|
2737
|
+
protoOf(RandomPoolProviderImpl).n5u = function (id) {
|
|
2738
|
+
return this.a5s_1.g2(id);
|
|
2739
2739
|
};
|
|
2740
2740
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2741
|
-
return this.
|
|
2741
|
+
return this.n5u(id);
|
|
2742
2742
|
};
|
|
2743
|
-
protoOf(RandomPoolProviderImpl).
|
|
2744
|
-
return this.
|
|
2743
|
+
protoOf(RandomPoolProviderImpl).o5u = function () {
|
|
2744
|
+
return this.a5s_1.m();
|
|
2745
2745
|
};
|
|
2746
2746
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2747
|
-
return this.
|
|
2747
|
+
return this.o5u();
|
|
2748
2748
|
};
|
|
2749
|
-
protoOf(RandomPoolProviderImpl).
|
|
2750
|
-
var gameCardDecksRecord = this.
|
|
2749
|
+
protoOf(RandomPoolProviderImpl).a5q = function (gameId) {
|
|
2750
|
+
var gameCardDecksRecord = this.b5s_1.g2(gameId);
|
|
2751
2751
|
if (!(gameCardDecksRecord == null)) {
|
|
2752
|
-
var randomPoolValue = this.
|
|
2752
|
+
var randomPoolValue = this.a5s_1.g2(gameCardDecksRecord.poolId);
|
|
2753
2753
|
if (!(randomPoolValue == null)) {
|
|
2754
2754
|
// Inline function 'kotlin.apply' call
|
|
2755
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2755
|
+
var this_0 = toMutableMap(randomPoolValue.c5q_1);
|
|
2756
2756
|
// Inline function 'kotlin.contracts.contract' call
|
|
2757
2757
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2758
|
-
this_0.
|
|
2759
|
-
var newPoolValue = randomPoolValue.
|
|
2760
|
-
if (newPoolValue.
|
|
2761
|
-
this.
|
|
2758
|
+
this_0.k2(gameId);
|
|
2759
|
+
var newPoolValue = randomPoolValue.i5q(VOID, toMap(this_0));
|
|
2760
|
+
if (newPoolValue.c5q_1.p()) {
|
|
2761
|
+
this.a5s_1.k2(gameCardDecksRecord.poolId);
|
|
2762
2762
|
} else {
|
|
2763
2763
|
// Inline function 'kotlin.collections.set' call
|
|
2764
|
-
var this_1 = this.
|
|
2764
|
+
var this_1 = this.a5s_1;
|
|
2765
2765
|
var key = gameCardDecksRecord.poolId;
|
|
2766
|
-
this_1.
|
|
2766
|
+
this_1.j2(key, newPoolValue);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
2770
|
-
this.
|
|
2770
|
+
this.b5s_1.k2(gameId);
|
|
2771
2771
|
};
|
|
2772
2772
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2773
2773
|
return function ($this$defaultRequest) {
|
|
2774
2774
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2775
|
-
$this$defaultRequest.
|
|
2775
|
+
$this$defaultRequest.q33($url);
|
|
2776
2776
|
return Unit_instance;
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
2779
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2780
|
-
this.
|
|
2780
|
+
this.p5u_1 = $externalLogger;
|
|
2781
2781
|
}
|
|
2782
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2783
|
-
this.
|
|
2782
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).a3u = function (message) {
|
|
2783
|
+
this.p5u_1(message);
|
|
2784
2784
|
};
|
|
2785
2785
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2786
2786
|
return function ($this$install) {
|
|
2787
|
-
$this$install.
|
|
2788
|
-
$this$install.
|
|
2789
|
-
$this$install.
|
|
2787
|
+
$this$install.q3v(get_DEFAULT(Companion_instance_0));
|
|
2788
|
+
$this$install.p3v_1 = $config.s5u_1;
|
|
2789
|
+
$this$install.q3v(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2790
2790
|
return Unit_instance;
|
|
2791
2791
|
};
|
|
2792
2792
|
}
|
|
@@ -2798,32 +2798,32 @@
|
|
|
2798
2798
|
}
|
|
2799
2799
|
function ApiCommonConfigs() {
|
|
2800
2800
|
}
|
|
2801
|
-
protoOf(ApiCommonConfigs).
|
|
2802
|
-
_this__u8e3s4.
|
|
2803
|
-
this.
|
|
2804
|
-
this.
|
|
2805
|
-
this.
|
|
2801
|
+
protoOf(ApiCommonConfigs).u5u = function (_this__u8e3s4, config, externalLogger) {
|
|
2802
|
+
_this__u8e3s4.c2v_1 = true;
|
|
2803
|
+
this.v5u(_this__u8e3s4, config.q5u_1);
|
|
2804
|
+
this.w5u(_this__u8e3s4, config.t5u_1);
|
|
2805
|
+
this.x5u(_this__u8e3s4, config, externalLogger);
|
|
2806
2806
|
};
|
|
2807
|
-
protoOf(ApiCommonConfigs).
|
|
2807
|
+
protoOf(ApiCommonConfigs).v5u = function (_this__u8e3s4, url) {
|
|
2808
2808
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2809
2809
|
};
|
|
2810
|
-
protoOf(ApiCommonConfigs).
|
|
2810
|
+
protoOf(ApiCommonConfigs).x5u = function (_this__u8e3s4, config, externalLogger) {
|
|
2811
2811
|
var tmp = Companion_getInstance_1();
|
|
2812
|
-
_this__u8e3s4.
|
|
2812
|
+
_this__u8e3s4.x2v(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2813
2813
|
};
|
|
2814
|
-
protoOf(ApiCommonConfigs).
|
|
2814
|
+
protoOf(ApiCommonConfigs).w5u = function (_this__u8e3s4, json) {
|
|
2815
2815
|
var tmp = Plugin_getInstance();
|
|
2816
|
-
_this__u8e3s4.
|
|
2816
|
+
_this__u8e3s4.x2v(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2817
2817
|
};
|
|
2818
2818
|
var ApiCommonConfigs_instance;
|
|
2819
2819
|
function ApiCommonConfigs_getInstance() {
|
|
2820
2820
|
return ApiCommonConfigs_instance;
|
|
2821
2821
|
}
|
|
2822
2822
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2823
|
-
$this$Json.
|
|
2824
|
-
$this$Json.
|
|
2825
|
-
$this$Json.
|
|
2826
|
-
$this$Json.
|
|
2823
|
+
$this$Json.h4u_1 = true;
|
|
2824
|
+
$this$Json.g4u_1 = true;
|
|
2825
|
+
$this$Json.f4u_1 = true;
|
|
2826
|
+
$this$Json.e4u_1 = false;
|
|
2827
2827
|
return Unit_instance;
|
|
2828
2828
|
}
|
|
2829
2829
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2836,19 +2836,19 @@
|
|
|
2836
2836
|
tmp = json;
|
|
2837
2837
|
}
|
|
2838
2838
|
json = tmp;
|
|
2839
|
-
this.
|
|
2840
|
-
this.
|
|
2841
|
-
this.
|
|
2842
|
-
this.
|
|
2839
|
+
this.q5u_1 = baseUrl;
|
|
2840
|
+
this.r5u_1 = timeoutMillis;
|
|
2841
|
+
this.s5u_1 = loggingLevel;
|
|
2842
|
+
this.t5u_1 = json;
|
|
2843
2843
|
}
|
|
2844
2844
|
protoOf(HttpParams).toString = function () {
|
|
2845
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2845
|
+
return 'HttpParams(baseUrl=' + this.q5u_1 + ', timeoutMillis=' + this.r5u_1.toString() + ', loggingLevel=' + this.s5u_1.toString() + ', json=' + toString(this.t5u_1) + ')';
|
|
2846
2846
|
};
|
|
2847
2847
|
protoOf(HttpParams).hashCode = function () {
|
|
2848
|
-
var result = getStringHashCode(this.
|
|
2849
|
-
result = imul(result, 31) + this.
|
|
2850
|
-
result = imul(result, 31) + this.
|
|
2851
|
-
result = imul(result, 31) + hashCode(this.
|
|
2848
|
+
var result = getStringHashCode(this.q5u_1);
|
|
2849
|
+
result = imul(result, 31) + this.r5u_1.hashCode() | 0;
|
|
2850
|
+
result = imul(result, 31) + this.s5u_1.hashCode() | 0;
|
|
2851
|
+
result = imul(result, 31) + hashCode(this.t5u_1) | 0;
|
|
2852
2852
|
return result;
|
|
2853
2853
|
};
|
|
2854
2854
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2857,13 +2857,13 @@
|
|
|
2857
2857
|
if (!(other instanceof HttpParams))
|
|
2858
2858
|
return false;
|
|
2859
2859
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2860
|
-
if (!(this.
|
|
2860
|
+
if (!(this.q5u_1 === tmp0_other_with_cast.q5u_1))
|
|
2861
2861
|
return false;
|
|
2862
|
-
if (!this.
|
|
2862
|
+
if (!this.r5u_1.equals(tmp0_other_with_cast.r5u_1))
|
|
2863
2863
|
return false;
|
|
2864
|
-
if (!this.
|
|
2864
|
+
if (!this.s5u_1.equals(tmp0_other_with_cast.s5u_1))
|
|
2865
2865
|
return false;
|
|
2866
|
-
if (!equals(this.
|
|
2866
|
+
if (!equals(this.t5u_1, tmp0_other_with_cast.t5u_1))
|
|
2867
2867
|
return false;
|
|
2868
2868
|
return true;
|
|
2869
2869
|
};
|
|
@@ -2889,12 +2889,12 @@
|
|
|
2889
2889
|
}
|
|
2890
2890
|
function nextBytesCopyTo($this, bytes) {
|
|
2891
2891
|
try {
|
|
2892
|
-
$this.
|
|
2892
|
+
$this.b5v_1.y5k(bytes);
|
|
2893
2893
|
} catch ($p) {
|
|
2894
2894
|
if ($p instanceof SecRandomCopyException) {
|
|
2895
2895
|
var error = $p;
|
|
2896
|
-
$this.
|
|
2897
|
-
$this.
|
|
2896
|
+
$this.a5v_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2897
|
+
$this.c5v_1.qg(bytes);
|
|
2898
2898
|
return Unit_instance;
|
|
2899
2899
|
} else {
|
|
2900
2900
|
throw $p;
|
|
@@ -2920,11 +2920,11 @@
|
|
|
2920
2920
|
}
|
|
2921
2921
|
function SecureRandom_0(logger) {
|
|
2922
2922
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2923
|
-
this.
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2923
|
+
this.a5v_1 = logger;
|
|
2924
|
+
this.b5v_1 = new SecureRandom();
|
|
2925
|
+
this.c5v_1 = Default_getInstance();
|
|
2926
2926
|
}
|
|
2927
|
-
protoOf(SecureRandom_0).
|
|
2927
|
+
protoOf(SecureRandom_0).y5u = function (from, until) {
|
|
2928
2928
|
checkRangeBounds(this, from, until);
|
|
2929
2929
|
var n = until - from | 0;
|
|
2930
2930
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2953,22 +2953,22 @@
|
|
|
2953
2953
|
};
|
|
2954
2954
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2955
2955
|
return function ($this$install) {
|
|
2956
|
-
$this$install.
|
|
2957
|
-
$this$install.
|
|
2956
|
+
$this$install.o3f($config.r5u_1);
|
|
2957
|
+
$this$install.m3f($config.r5u_1);
|
|
2958
2958
|
return Unit_instance;
|
|
2959
2959
|
};
|
|
2960
2960
|
}
|
|
2961
2961
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2962
2962
|
return function ($this$HttpClient) {
|
|
2963
2963
|
var tmp = Plugin_getInstance_0();
|
|
2964
|
-
$this$HttpClient.
|
|
2965
|
-
ApiCommonConfigs_instance.
|
|
2964
|
+
$this$HttpClient.x2v(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2965
|
+
ApiCommonConfigs_instance.u5u($this$HttpClient, $config, $externalLogger);
|
|
2966
2966
|
return Unit_instance;
|
|
2967
2967
|
};
|
|
2968
2968
|
}
|
|
2969
2969
|
function HttpFactory() {
|
|
2970
2970
|
}
|
|
2971
|
-
protoOf(HttpFactory).
|
|
2971
|
+
protoOf(HttpFactory).d5v = function (config, externalLogger) {
|
|
2972
2972
|
var tmp = Js_instance;
|
|
2973
2973
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2974
2974
|
};
|
|
@@ -2977,14 +2977,14 @@
|
|
|
2977
2977
|
return HttpFactory_instance;
|
|
2978
2978
|
}
|
|
2979
2979
|
//region block: post-declaration
|
|
2980
|
-
protoOf($serializer).
|
|
2981
|
-
protoOf($serializer_0).
|
|
2982
|
-
protoOf($serializer_2).
|
|
2983
|
-
protoOf($serializer_3).
|
|
2984
|
-
protoOf($serializer_5).
|
|
2985
|
-
protoOf($serializer_6).
|
|
2986
|
-
protoOf(RandomPoolProviderImpl).
|
|
2987
|
-
protoOf(SecureRandom_0).
|
|
2980
|
+
protoOf($serializer).f4f = typeParametersSerializers;
|
|
2981
|
+
protoOf($serializer_0).f4f = typeParametersSerializers;
|
|
2982
|
+
protoOf($serializer_2).f4f = typeParametersSerializers;
|
|
2983
|
+
protoOf($serializer_3).f4f = typeParametersSerializers;
|
|
2984
|
+
protoOf($serializer_5).f4f = typeParametersSerializers;
|
|
2985
|
+
protoOf($serializer_6).f4f = typeParametersSerializers;
|
|
2986
|
+
protoOf(RandomPoolProviderImpl).z5p = getCardDeck$default;
|
|
2987
|
+
protoOf(SecureRandom_0).z5u = shuffle;
|
|
2988
2988
|
//endregion
|
|
2989
2989
|
//region block: init
|
|
2990
2990
|
Companion_instance_1 = new Companion();
|