game_client_logic_deb 1.8.304 → 1.8.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1376 -1376
- package/Logic_Debertz-core.js +1449 -1449
- package/Logic_Debertz-engine.js +13801 -13806
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +4 -3
- package/Logic_Debertz-game_client.js +3132 -3140
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1419 -1573
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1801 -1801
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1536 -1536
- package/ktor-ktor-client-logging.js +287 -287
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1255 -1255
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +138 -138
- package/ktor-ktor-serialization.js +64 -64
- package/ktor-ktor-utils.js +498 -498
- package/ktor-ktor-websockets.js +41 -41
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +190 -187
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +880 -948
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './Kotlin-DateTime-library-kotlinx-datetime.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './secure-random-secure-random.js', './raspberry-cardgame-lib-logger.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./secure-random-secure-random.js'), require('./raspberry-cardgame-lib-logger.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
23
23
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
24
24
|
}
|
|
25
|
+
if (typeof globalThis['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
|
|
26
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'Kotlin-DateTime-library-kotlinx-datetime' was not found. Please, check whether 'Kotlin-DateTime-library-kotlinx-datetime' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
27
|
+
}
|
|
25
28
|
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
26
29
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
27
30
|
}
|
|
28
31
|
if (typeof uuid === 'undefined') {
|
|
29
32
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'uuid' was not found. Please, check whether 'uuid' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
30
33
|
}
|
|
31
|
-
if (typeof globalThis['Kotlin-DateTime-library-kotlinx-datetime'] === 'undefined') {
|
|
32
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'Kotlin-DateTime-library-kotlinx-datetime' was not found. Please, check whether 'Kotlin-DateTime-library-kotlinx-datetime' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
33
|
-
}
|
|
34
34
|
if (typeof globalThis['ktor-ktor-client-logging'] === 'undefined') {
|
|
35
35
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-logging' was not found. Please, check whether 'ktor-ktor-client-logging' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
36
36
|
}
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
47
47
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
48
48
|
}
|
|
49
|
-
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-
|
|
49
|
+
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['Kotlin-DateTime-library-kotlinx-datetime'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['secure-random-secure-random'], globalThis['raspberry-cardgame-lib-logger']);
|
|
50
50
|
}
|
|
51
|
-
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid,
|
|
51
|
+
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_kotlincrypto_secure_random, kotlin_io_raspberryapps_cardgame_logger) {
|
|
52
52
|
'use strict';
|
|
53
53
|
//region block: imports
|
|
54
54
|
var imul = Math.imul;
|
|
@@ -118,25 +118,21 @@
|
|
|
118
118
|
var toMutableMap = kotlin_kotlin.$_$.y9;
|
|
119
119
|
var toMap = kotlin_kotlin.$_$.v9;
|
|
120
120
|
var get_lastIndex = kotlin_kotlin.$_$.i8;
|
|
121
|
-
var
|
|
122
|
-
var
|
|
121
|
+
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
122
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
123
|
+
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
124
|
+
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
123
125
|
var Result = kotlin_kotlin.$_$.rg;
|
|
124
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
126
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
125
127
|
var Companion_instance = kotlin_kotlin.$_$.k5;
|
|
128
|
+
var createFailure = kotlin_kotlin.$_$.jh;
|
|
126
129
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f3;
|
|
127
130
|
var initMetadataForLambda = kotlin_kotlin.$_$.yb;
|
|
128
|
-
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
129
|
-
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
130
|
-
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
131
|
-
var createFailure = kotlin_kotlin.$_$.jh;
|
|
132
|
-
var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
133
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
134
|
-
var toDuration_0 = kotlin_kotlin.$_$.ag;
|
|
135
131
|
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.n2;
|
|
136
132
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
137
133
|
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
138
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
139
|
-
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
134
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
135
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
140
136
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
141
137
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
142
138
|
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -200,23 +196,22 @@
|
|
|
200
196
|
initMetadataForCoroutine($throwIfErrorCOROUTINE$2, CoroutineImpl);
|
|
201
197
|
initMetadataForClass(RandomOrgApiServiceImpl, 'RandomOrgApiServiceImpl', VOID, VOID, [RandomOrgApiService], [5, 6, 2]);
|
|
202
198
|
initMetadataForClass(PoolParams, 'PoolParams', PoolParams);
|
|
203
|
-
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed,
|
|
199
|
+
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion, $super) {
|
|
204
200
|
min = min === VOID ? 0 : min;
|
|
205
201
|
max = max === VOID ? 51 : max;
|
|
206
202
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
207
203
|
signed = signed === VOID ? false : signed;
|
|
208
|
-
|
|
209
|
-
return $super === VOID ? this.
|
|
204
|
+
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
205
|
+
return $super === VOID ? this.o5p(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.o5p.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
210
206
|
}
|
|
211
|
-
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
207
|
+
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
212
208
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
213
|
-
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
214
209
|
initMetadataForCompanion(Companion_9);
|
|
215
210
|
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
216
|
-
initMetadataForLambda(RandomPoolProviderImpl$
|
|
211
|
+
initMetadataForLambda(RandomPoolProviderImpl$requestNewPool$slambda, CoroutineImpl, VOID, [1]);
|
|
217
212
|
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$3, CoroutineImpl);
|
|
218
|
-
initMetadataForCoroutine($
|
|
219
|
-
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7,
|
|
213
|
+
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$4, CoroutineImpl);
|
|
214
|
+
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 5]);
|
|
220
215
|
initMetadataForClass(ApiCommonConfigs$setupLogging$1$1);
|
|
221
216
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
222
217
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
@@ -241,7 +236,7 @@
|
|
|
241
236
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
242
237
|
//endregion
|
|
243
238
|
function Companion() {
|
|
244
|
-
this.
|
|
239
|
+
this.t5k_1 = 100001;
|
|
245
240
|
}
|
|
246
241
|
var Companion_instance_1;
|
|
247
242
|
function Companion_getInstance_2() {
|
|
@@ -252,16 +247,16 @@
|
|
|
252
247
|
cause = cause === VOID ? null : cause;
|
|
253
248
|
RuntimeException_init_$Init$(message, cause, this);
|
|
254
249
|
captureStack(this, RandomException);
|
|
255
|
-
this.
|
|
250
|
+
this.u5k_1 = code;
|
|
256
251
|
}
|
|
257
252
|
function CardDecksRequestUserData(id, count) {
|
|
258
253
|
this.id = id;
|
|
259
254
|
this.count = count;
|
|
260
255
|
}
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
256
|
+
protoOf(CardDecksRequestUserData).o5j = function () {
|
|
262
257
|
return this.id;
|
|
263
258
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
259
|
+
protoOf(CardDecksRequestUserData).v5k = function () {
|
|
265
260
|
return this.count;
|
|
266
261
|
};
|
|
267
262
|
protoOf(CardDecksRequestUserData).qe = function () {
|
|
@@ -270,13 +265,13 @@
|
|
|
270
265
|
protoOf(CardDecksRequestUserData).re = function () {
|
|
271
266
|
return this.count;
|
|
272
267
|
};
|
|
273
|
-
protoOf(CardDecksRequestUserData).
|
|
268
|
+
protoOf(CardDecksRequestUserData).w5k = function (id, count) {
|
|
274
269
|
return new CardDecksRequestUserData(id, count);
|
|
275
270
|
};
|
|
276
271
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
277
272
|
id = id === VOID ? this.id : id;
|
|
278
273
|
count = count === VOID ? this.count : count;
|
|
279
|
-
return this.
|
|
274
|
+
return this.w5k(id, count);
|
|
280
275
|
};
|
|
281
276
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
282
277
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -302,10 +297,10 @@
|
|
|
302
297
|
this.players = players;
|
|
303
298
|
this.gameId = gameId;
|
|
304
299
|
}
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
300
|
+
protoOf(CardDeckRequestUserData).x5k = function () {
|
|
306
301
|
return this.players;
|
|
307
302
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
303
|
+
protoOf(CardDeckRequestUserData).y5k = function () {
|
|
309
304
|
return this.gameId;
|
|
310
305
|
};
|
|
311
306
|
protoOf(CardDeckRequestUserData).qe = function () {
|
|
@@ -314,13 +309,13 @@
|
|
|
314
309
|
protoOf(CardDeckRequestUserData).re = function () {
|
|
315
310
|
return this.gameId;
|
|
316
311
|
};
|
|
317
|
-
protoOf(CardDeckRequestUserData).
|
|
312
|
+
protoOf(CardDeckRequestUserData).z5k = function (players, gameId) {
|
|
318
313
|
return new CardDeckRequestUserData(players, gameId);
|
|
319
314
|
};
|
|
320
315
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
321
316
|
players = players === VOID ? this.players : players;
|
|
322
317
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
323
|
-
return this.
|
|
318
|
+
return this.z5k(players, gameId);
|
|
324
319
|
};
|
|
325
320
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
326
321
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -346,7 +341,7 @@
|
|
|
346
341
|
this.id = id;
|
|
347
342
|
this.name = name;
|
|
348
343
|
}
|
|
349
|
-
protoOf(UserInfoData).
|
|
344
|
+
protoOf(UserInfoData).o5j = function () {
|
|
350
345
|
return this.id;
|
|
351
346
|
};
|
|
352
347
|
protoOf(UserInfoData).p2 = function () {
|
|
@@ -358,13 +353,13 @@
|
|
|
358
353
|
protoOf(UserInfoData).re = function () {
|
|
359
354
|
return this.name;
|
|
360
355
|
};
|
|
361
|
-
protoOf(UserInfoData).
|
|
356
|
+
protoOf(UserInfoData).a5l = function (id, name) {
|
|
362
357
|
return new UserInfoData(id, name);
|
|
363
358
|
};
|
|
364
359
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
365
360
|
id = id === VOID ? this.id : id;
|
|
366
361
|
name = name === VOID ? this.name : name;
|
|
367
|
-
return this.
|
|
362
|
+
return this.a5l(id, name);
|
|
368
363
|
};
|
|
369
364
|
protoOf(UserInfoData).toString = function () {
|
|
370
365
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -387,19 +382,19 @@
|
|
|
387
382
|
return true;
|
|
388
383
|
};
|
|
389
384
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
385
|
+
this.b5l_1 = cardDecks;
|
|
386
|
+
this.c5l_1 = responseText;
|
|
387
|
+
this.d5l_1 = id;
|
|
388
|
+
this.e5l_1 = signature;
|
|
394
389
|
}
|
|
395
390
|
protoOf(CardDeckResult).toString = function () {
|
|
396
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
391
|
+
return 'CardDeckResult(cardDecks=' + toString(this.b5l_1) + ', responseText=' + this.c5l_1 + ', id=' + this.d5l_1 + ', signature=' + this.e5l_1 + ')';
|
|
397
392
|
};
|
|
398
393
|
protoOf(CardDeckResult).hashCode = function () {
|
|
399
|
-
var result = hashCode(this.
|
|
400
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
401
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
402
|
-
result = imul(result, 31) + (this.
|
|
394
|
+
var result = hashCode(this.b5l_1);
|
|
395
|
+
result = imul(result, 31) + getStringHashCode(this.c5l_1) | 0;
|
|
396
|
+
result = imul(result, 31) + getStringHashCode(this.d5l_1) | 0;
|
|
397
|
+
result = imul(result, 31) + (this.e5l_1 == null ? 0 : getStringHashCode(this.e5l_1)) | 0;
|
|
403
398
|
return result;
|
|
404
399
|
};
|
|
405
400
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -408,13 +403,13 @@
|
|
|
408
403
|
if (!(other instanceof CardDeckResult))
|
|
409
404
|
return false;
|
|
410
405
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
411
|
-
if (!equals(this.
|
|
406
|
+
if (!equals(this.b5l_1, tmp0_other_with_cast.b5l_1))
|
|
412
407
|
return false;
|
|
413
|
-
if (!(this.
|
|
408
|
+
if (!(this.c5l_1 === tmp0_other_with_cast.c5l_1))
|
|
414
409
|
return false;
|
|
415
|
-
if (!(this.
|
|
410
|
+
if (!(this.d5l_1 === tmp0_other_with_cast.d5l_1))
|
|
416
411
|
return false;
|
|
417
|
-
if (!(this.
|
|
412
|
+
if (!(this.e5l_1 == tmp0_other_with_cast.e5l_1))
|
|
418
413
|
return false;
|
|
419
414
|
return true;
|
|
420
415
|
};
|
|
@@ -437,16 +432,16 @@
|
|
|
437
432
|
this.userData = userData;
|
|
438
433
|
this.rounds = rounds;
|
|
439
434
|
}
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
435
|
+
protoOf(GameCardDecksRecord).f5l = function () {
|
|
441
436
|
return this.poolId;
|
|
442
437
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).g5l = function () {
|
|
444
439
|
return this.signature;
|
|
445
440
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).h5l = function () {
|
|
447
442
|
return this.userData;
|
|
448
443
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).i5l = function () {
|
|
450
445
|
return this.rounds;
|
|
451
446
|
};
|
|
452
447
|
protoOf(GameCardDecksRecord).qe = function () {
|
|
@@ -458,10 +453,10 @@
|
|
|
458
453
|
protoOf(GameCardDecksRecord).ik = function () {
|
|
459
454
|
return this.userData;
|
|
460
455
|
};
|
|
461
|
-
protoOf(GameCardDecksRecord).
|
|
456
|
+
protoOf(GameCardDecksRecord).j5l = function () {
|
|
462
457
|
return this.rounds;
|
|
463
458
|
};
|
|
464
|
-
protoOf(GameCardDecksRecord).
|
|
459
|
+
protoOf(GameCardDecksRecord).k5l = function (poolId, signature, userData, rounds) {
|
|
465
460
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
466
461
|
};
|
|
467
462
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -469,7 +464,7 @@
|
|
|
469
464
|
signature = signature === VOID ? this.signature : signature;
|
|
470
465
|
userData = userData === VOID ? this.userData : userData;
|
|
471
466
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
472
|
-
return this.
|
|
467
|
+
return this.k5l(poolId, signature, userData, rounds);
|
|
473
468
|
};
|
|
474
469
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
475
470
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -501,10 +496,10 @@
|
|
|
501
496
|
this.cardDeckIndex = cardDeckIndex;
|
|
502
497
|
this.cards = cards;
|
|
503
498
|
}
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
499
|
+
protoOf(GameCardDeckData).l5l = function () {
|
|
505
500
|
return this.cardDeckIndex;
|
|
506
501
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
502
|
+
protoOf(GameCardDeckData).m5l = function () {
|
|
508
503
|
return this.cards;
|
|
509
504
|
};
|
|
510
505
|
protoOf(GameCardDeckData).qe = function () {
|
|
@@ -513,13 +508,13 @@
|
|
|
513
508
|
protoOf(GameCardDeckData).re = function () {
|
|
514
509
|
return this.cards;
|
|
515
510
|
};
|
|
516
|
-
protoOf(GameCardDeckData).
|
|
511
|
+
protoOf(GameCardDeckData).n5l = function (cardDeckIndex, cards) {
|
|
517
512
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
518
513
|
};
|
|
519
514
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
520
515
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
521
516
|
cards = cards === VOID ? this.cards : cards;
|
|
522
|
-
return this.
|
|
517
|
+
return this.n5l(cardDeckIndex, cards);
|
|
523
518
|
};
|
|
524
519
|
protoOf(GameCardDeckData).toString = function () {
|
|
525
520
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -546,10 +541,10 @@
|
|
|
546
541
|
this.baseUrl = baseUrl;
|
|
547
542
|
this.timeoutMillis = timeoutMillis;
|
|
548
543
|
}
|
|
549
|
-
protoOf(HttpConfig).
|
|
544
|
+
protoOf(HttpConfig).o5l = function () {
|
|
550
545
|
return this.baseUrl;
|
|
551
546
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
547
|
+
protoOf(HttpConfig).p5l = function () {
|
|
553
548
|
return this.timeoutMillis;
|
|
554
549
|
};
|
|
555
550
|
protoOf(HttpConfig).qe = function () {
|
|
@@ -558,13 +553,13 @@
|
|
|
558
553
|
protoOf(HttpConfig).re = function () {
|
|
559
554
|
return this.timeoutMillis;
|
|
560
555
|
};
|
|
561
|
-
protoOf(HttpConfig).
|
|
556
|
+
protoOf(HttpConfig).w5k = function (baseUrl, timeoutMillis) {
|
|
562
557
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
563
558
|
};
|
|
564
559
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
565
560
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
566
561
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
567
|
-
return this.
|
|
562
|
+
return this.w5k(baseUrl, timeoutMillis);
|
|
568
563
|
};
|
|
569
564
|
protoOf(HttpConfig).toString = function () {
|
|
570
565
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -599,16 +594,16 @@
|
|
|
599
594
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
600
595
|
this.httpConfig = httpConfig;
|
|
601
596
|
}
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
597
|
+
protoOf(RandomOrgConfig).q5l = function () {
|
|
603
598
|
return this.apiKey;
|
|
604
599
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).r5l = function () {
|
|
606
601
|
return this.poolSize;
|
|
607
602
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).s5l = function () {
|
|
609
604
|
return this.thresholdForUsedPool;
|
|
610
605
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).t5l = function () {
|
|
612
607
|
return this.httpConfig;
|
|
613
608
|
};
|
|
614
609
|
protoOf(RandomOrgConfig).qe = function () {
|
|
@@ -620,10 +615,10 @@
|
|
|
620
615
|
protoOf(RandomOrgConfig).ik = function () {
|
|
621
616
|
return this.thresholdForUsedPool;
|
|
622
617
|
};
|
|
623
|
-
protoOf(RandomOrgConfig).
|
|
618
|
+
protoOf(RandomOrgConfig).j5l = function () {
|
|
624
619
|
return this.httpConfig;
|
|
625
620
|
};
|
|
626
|
-
protoOf(RandomOrgConfig).
|
|
621
|
+
protoOf(RandomOrgConfig).u5l = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
627
622
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
628
623
|
};
|
|
629
624
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -631,7 +626,7 @@
|
|
|
631
626
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
632
627
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
633
628
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
634
|
-
return this.
|
|
629
|
+
return this.u5l(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
635
630
|
};
|
|
636
631
|
protoOf(RandomOrgConfig).toString = function () {
|
|
637
632
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -668,59 +663,59 @@
|
|
|
668
663
|
function $serializer() {
|
|
669
664
|
$serializer_instance = this;
|
|
670
665
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
671
|
-
tmp0_serialDesc.
|
|
672
|
-
tmp0_serialDesc.
|
|
673
|
-
this.
|
|
674
|
-
}
|
|
675
|
-
protoOf($serializer).
|
|
676
|
-
var tmp0_desc = this.
|
|
677
|
-
var tmp1_output = encoder.
|
|
678
|
-
tmp1_output.
|
|
679
|
-
tmp1_output.
|
|
680
|
-
tmp1_output.
|
|
681
|
-
};
|
|
682
|
-
protoOf($serializer).
|
|
683
|
-
return this.
|
|
684
|
-
};
|
|
685
|
-
protoOf($serializer).
|
|
686
|
-
var tmp0_desc = this.
|
|
666
|
+
tmp0_serialDesc.g4e('jsonrpc', false);
|
|
667
|
+
tmp0_serialDesc.g4e('error', false);
|
|
668
|
+
this.v5l_1 = tmp0_serialDesc;
|
|
669
|
+
}
|
|
670
|
+
protoOf($serializer).w5l = function (encoder, value) {
|
|
671
|
+
var tmp0_desc = this.v5l_1;
|
|
672
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
673
|
+
tmp1_output.g48(tmp0_desc, 0, value.x5l_1);
|
|
674
|
+
tmp1_output.k48(tmp0_desc, 1, $serializer_getInstance_0(), value.y5l_1);
|
|
675
|
+
tmp1_output.t46(tmp0_desc);
|
|
676
|
+
};
|
|
677
|
+
protoOf($serializer).f43 = function (encoder, value) {
|
|
678
|
+
return this.w5l(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
679
|
+
};
|
|
680
|
+
protoOf($serializer).g43 = function (decoder) {
|
|
681
|
+
var tmp0_desc = this.v5l_1;
|
|
687
682
|
var tmp1_flag = true;
|
|
688
683
|
var tmp2_index = 0;
|
|
689
684
|
var tmp3_bitMask0 = 0;
|
|
690
685
|
var tmp4_local0 = null;
|
|
691
686
|
var tmp5_local1 = null;
|
|
692
|
-
var tmp6_input = decoder.
|
|
693
|
-
if (tmp6_input.
|
|
694
|
-
tmp4_local0 = tmp6_input.
|
|
687
|
+
var tmp6_input = decoder.s46(tmp0_desc);
|
|
688
|
+
if (tmp6_input.h47()) {
|
|
689
|
+
tmp4_local0 = tmp6_input.c47(tmp0_desc, 0);
|
|
695
690
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
696
|
-
tmp5_local1 = tmp6_input.
|
|
691
|
+
tmp5_local1 = tmp6_input.g47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
697
692
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
698
693
|
} else
|
|
699
694
|
while (tmp1_flag) {
|
|
700
|
-
tmp2_index = tmp6_input.
|
|
695
|
+
tmp2_index = tmp6_input.i47(tmp0_desc);
|
|
701
696
|
switch (tmp2_index) {
|
|
702
697
|
case -1:
|
|
703
698
|
tmp1_flag = false;
|
|
704
699
|
break;
|
|
705
700
|
case 0:
|
|
706
|
-
tmp4_local0 = tmp6_input.
|
|
701
|
+
tmp4_local0 = tmp6_input.c47(tmp0_desc, 0);
|
|
707
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
708
703
|
break;
|
|
709
704
|
case 1:
|
|
710
|
-
tmp5_local1 = tmp6_input.
|
|
705
|
+
tmp5_local1 = tmp6_input.g47(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
711
706
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
712
707
|
break;
|
|
713
708
|
default:
|
|
714
709
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
715
710
|
}
|
|
716
711
|
}
|
|
717
|
-
tmp6_input.
|
|
712
|
+
tmp6_input.t46(tmp0_desc);
|
|
718
713
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
719
714
|
};
|
|
720
|
-
protoOf($serializer).
|
|
721
|
-
return this.
|
|
715
|
+
protoOf($serializer).e43 = function () {
|
|
716
|
+
return this.v5l_1;
|
|
722
717
|
};
|
|
723
|
-
protoOf($serializer).
|
|
718
|
+
protoOf($serializer).v4e = function () {
|
|
724
719
|
// Inline function 'kotlin.arrayOf' call
|
|
725
720
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
726
721
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -734,25 +729,25 @@
|
|
|
734
729
|
}
|
|
735
730
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
736
731
|
if (!(3 === (3 & seen0))) {
|
|
737
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
732
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().v5l_1);
|
|
738
733
|
}
|
|
739
|
-
$this.
|
|
740
|
-
$this.
|
|
734
|
+
$this.x5l_1 = jsonrpc;
|
|
735
|
+
$this.y5l_1 = error;
|
|
741
736
|
return $this;
|
|
742
737
|
}
|
|
743
738
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
744
739
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
745
740
|
}
|
|
746
741
|
function ErrorResponseDto(jsonrpc, error) {
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
742
|
+
this.x5l_1 = jsonrpc;
|
|
743
|
+
this.y5l_1 = error;
|
|
749
744
|
}
|
|
750
745
|
protoOf(ErrorResponseDto).toString = function () {
|
|
751
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
746
|
+
return 'ErrorResponseDto(jsonrpc=' + this.x5l_1 + ', error=' + toString_0(this.y5l_1) + ')';
|
|
752
747
|
};
|
|
753
748
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
754
|
-
var result = getStringHashCode(this.
|
|
755
|
-
result = imul(result, 31) + (this.
|
|
749
|
+
var result = getStringHashCode(this.x5l_1);
|
|
750
|
+
result = imul(result, 31) + (this.y5l_1 == null ? 0 : this.y5l_1.hashCode()) | 0;
|
|
756
751
|
return result;
|
|
757
752
|
};
|
|
758
753
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -761,68 +756,68 @@
|
|
|
761
756
|
if (!(other instanceof ErrorResponseDto))
|
|
762
757
|
return false;
|
|
763
758
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
764
|
-
if (!(this.
|
|
759
|
+
if (!(this.x5l_1 === tmp0_other_with_cast.x5l_1))
|
|
765
760
|
return false;
|
|
766
|
-
if (!equals(this.
|
|
761
|
+
if (!equals(this.y5l_1, tmp0_other_with_cast.y5l_1))
|
|
767
762
|
return false;
|
|
768
763
|
return true;
|
|
769
764
|
};
|
|
770
765
|
function $serializer_0() {
|
|
771
766
|
$serializer_instance_0 = this;
|
|
772
767
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
773
|
-
tmp0_serialDesc.
|
|
774
|
-
tmp0_serialDesc.
|
|
775
|
-
this.
|
|
776
|
-
}
|
|
777
|
-
protoOf($serializer_0).
|
|
778
|
-
var tmp0_desc = this.
|
|
779
|
-
var tmp1_output = encoder.
|
|
780
|
-
tmp1_output.
|
|
781
|
-
tmp1_output.
|
|
782
|
-
tmp1_output.
|
|
783
|
-
};
|
|
784
|
-
protoOf($serializer_0).
|
|
785
|
-
return this.
|
|
786
|
-
};
|
|
787
|
-
protoOf($serializer_0).
|
|
788
|
-
var tmp0_desc = this.
|
|
768
|
+
tmp0_serialDesc.g4e('code', false);
|
|
769
|
+
tmp0_serialDesc.g4e('message', false);
|
|
770
|
+
this.z5l_1 = tmp0_serialDesc;
|
|
771
|
+
}
|
|
772
|
+
protoOf($serializer_0).a5m = function (encoder, value) {
|
|
773
|
+
var tmp0_desc = this.z5l_1;
|
|
774
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
775
|
+
tmp1_output.k48(tmp0_desc, 0, IntSerializer_getInstance(), value.b5m_1);
|
|
776
|
+
tmp1_output.k48(tmp0_desc, 1, StringSerializer_getInstance(), value.c5m_1);
|
|
777
|
+
tmp1_output.t46(tmp0_desc);
|
|
778
|
+
};
|
|
779
|
+
protoOf($serializer_0).f43 = function (encoder, value) {
|
|
780
|
+
return this.a5m(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
781
|
+
};
|
|
782
|
+
protoOf($serializer_0).g43 = function (decoder) {
|
|
783
|
+
var tmp0_desc = this.z5l_1;
|
|
789
784
|
var tmp1_flag = true;
|
|
790
785
|
var tmp2_index = 0;
|
|
791
786
|
var tmp3_bitMask0 = 0;
|
|
792
787
|
var tmp4_local0 = null;
|
|
793
788
|
var tmp5_local1 = null;
|
|
794
|
-
var tmp6_input = decoder.
|
|
795
|
-
if (tmp6_input.
|
|
796
|
-
tmp4_local0 = tmp6_input.
|
|
789
|
+
var tmp6_input = decoder.s46(tmp0_desc);
|
|
790
|
+
if (tmp6_input.h47()) {
|
|
791
|
+
tmp4_local0 = tmp6_input.g47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
797
792
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
798
|
-
tmp5_local1 = tmp6_input.
|
|
793
|
+
tmp5_local1 = tmp6_input.g47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
799
794
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
800
795
|
} else
|
|
801
796
|
while (tmp1_flag) {
|
|
802
|
-
tmp2_index = tmp6_input.
|
|
797
|
+
tmp2_index = tmp6_input.i47(tmp0_desc);
|
|
803
798
|
switch (tmp2_index) {
|
|
804
799
|
case -1:
|
|
805
800
|
tmp1_flag = false;
|
|
806
801
|
break;
|
|
807
802
|
case 0:
|
|
808
|
-
tmp4_local0 = tmp6_input.
|
|
803
|
+
tmp4_local0 = tmp6_input.g47(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
809
804
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
810
805
|
break;
|
|
811
806
|
case 1:
|
|
812
|
-
tmp5_local1 = tmp6_input.
|
|
807
|
+
tmp5_local1 = tmp6_input.g47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
813
808
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
814
809
|
break;
|
|
815
810
|
default:
|
|
816
811
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
817
812
|
}
|
|
818
813
|
}
|
|
819
|
-
tmp6_input.
|
|
814
|
+
tmp6_input.t46(tmp0_desc);
|
|
820
815
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
821
816
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
823
|
-
return this.
|
|
817
|
+
protoOf($serializer_0).e43 = function () {
|
|
818
|
+
return this.z5l_1;
|
|
824
819
|
};
|
|
825
|
-
protoOf($serializer_0).
|
|
820
|
+
protoOf($serializer_0).v4e = function () {
|
|
826
821
|
// Inline function 'kotlin.arrayOf' call
|
|
827
822
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
828
823
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -836,10 +831,10 @@
|
|
|
836
831
|
}
|
|
837
832
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
838
833
|
if (!(3 === (3 & seen0))) {
|
|
839
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
834
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().z5l_1);
|
|
840
835
|
}
|
|
841
|
-
$this.
|
|
842
|
-
$this.
|
|
836
|
+
$this.b5m_1 = code;
|
|
837
|
+
$this.c5m_1 = message;
|
|
843
838
|
return $this;
|
|
844
839
|
}
|
|
845
840
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -848,11 +843,11 @@
|
|
|
848
843
|
function ErrorDto() {
|
|
849
844
|
}
|
|
850
845
|
protoOf(ErrorDto).toString = function () {
|
|
851
|
-
return 'ErrorDto(code=' + this.
|
|
846
|
+
return 'ErrorDto(code=' + this.b5m_1 + ', message=' + this.c5m_1 + ')';
|
|
852
847
|
};
|
|
853
848
|
protoOf(ErrorDto).hashCode = function () {
|
|
854
|
-
var result = this.
|
|
855
|
-
result = imul(result, 31) + (this.
|
|
849
|
+
var result = this.b5m_1 == null ? 0 : this.b5m_1;
|
|
850
|
+
result = imul(result, 31) + (this.c5m_1 == null ? 0 : getStringHashCode(this.c5m_1)) | 0;
|
|
856
851
|
return result;
|
|
857
852
|
};
|
|
858
853
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -861,15 +856,15 @@
|
|
|
861
856
|
if (!(other instanceof ErrorDto))
|
|
862
857
|
return false;
|
|
863
858
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
864
|
-
if (!(this.
|
|
859
|
+
if (!(this.b5m_1 == tmp0_other_with_cast.b5m_1))
|
|
865
860
|
return false;
|
|
866
|
-
if (!(this.
|
|
861
|
+
if (!(this.c5m_1 == tmp0_other_with_cast.c5m_1))
|
|
867
862
|
return false;
|
|
868
863
|
return true;
|
|
869
864
|
};
|
|
870
865
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
871
866
|
$serializer_1.call($this);
|
|
872
|
-
$this.
|
|
867
|
+
$this.e5m_1 = typeSerial0;
|
|
873
868
|
return $this;
|
|
874
869
|
}
|
|
875
870
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -878,17 +873,17 @@
|
|
|
878
873
|
function Companion_2() {
|
|
879
874
|
Companion_instance_4 = this;
|
|
880
875
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
tmp0_serialDesc.
|
|
883
|
-
tmp0_serialDesc.
|
|
884
|
-
tmp0_serialDesc.
|
|
885
|
-
this.
|
|
876
|
+
tmp0_serialDesc.g4e('jsonrpc', false);
|
|
877
|
+
tmp0_serialDesc.g4e('method', false);
|
|
878
|
+
tmp0_serialDesc.g4e('params', false);
|
|
879
|
+
tmp0_serialDesc.g4e('id', false);
|
|
880
|
+
this.f5m_1 = tmp0_serialDesc;
|
|
886
881
|
}
|
|
887
|
-
protoOf(Companion_2).
|
|
882
|
+
protoOf(Companion_2).g5m = function (typeSerial0) {
|
|
888
883
|
return $serializer_init_$Create$(typeSerial0);
|
|
889
884
|
};
|
|
890
|
-
protoOf(Companion_2).
|
|
891
|
-
return this.
|
|
885
|
+
protoOf(Companion_2).g4f = function (typeParamsSerializers) {
|
|
886
|
+
return this.g5m(typeParamsSerializers[0]);
|
|
892
887
|
};
|
|
893
888
|
var Companion_instance_4;
|
|
894
889
|
function Companion_getInstance_5() {
|
|
@@ -898,26 +893,26 @@
|
|
|
898
893
|
}
|
|
899
894
|
function $serializer_1() {
|
|
900
895
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
tmp0_serialDesc.
|
|
903
|
-
tmp0_serialDesc.
|
|
904
|
-
tmp0_serialDesc.
|
|
905
|
-
this.
|
|
906
|
-
}
|
|
907
|
-
protoOf($serializer_1).
|
|
908
|
-
var tmp0_desc = this.
|
|
909
|
-
var tmp1_output = encoder.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
tmp1_output.
|
|
912
|
-
tmp1_output.
|
|
913
|
-
tmp1_output.
|
|
914
|
-
tmp1_output.
|
|
915
|
-
};
|
|
916
|
-
protoOf($serializer_1).
|
|
917
|
-
return this.
|
|
918
|
-
};
|
|
919
|
-
protoOf($serializer_1).
|
|
920
|
-
var tmp0_desc = this.
|
|
896
|
+
tmp0_serialDesc.g4e('jsonrpc', false);
|
|
897
|
+
tmp0_serialDesc.g4e('method', false);
|
|
898
|
+
tmp0_serialDesc.g4e('params', false);
|
|
899
|
+
tmp0_serialDesc.g4e('id', false);
|
|
900
|
+
this.d5m_1 = tmp0_serialDesc;
|
|
901
|
+
}
|
|
902
|
+
protoOf($serializer_1).h5m = function (encoder, value) {
|
|
903
|
+
var tmp0_desc = this.d5m_1;
|
|
904
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
905
|
+
tmp1_output.g48(tmp0_desc, 0, value.i5m_1);
|
|
906
|
+
tmp1_output.g48(tmp0_desc, 1, value.j5m_1);
|
|
907
|
+
tmp1_output.i48(tmp0_desc, 2, this.e5m_1, value.k5m_1);
|
|
908
|
+
tmp1_output.g48(tmp0_desc, 3, value.l5m_1);
|
|
909
|
+
tmp1_output.t46(tmp0_desc);
|
|
910
|
+
};
|
|
911
|
+
protoOf($serializer_1).f43 = function (encoder, value) {
|
|
912
|
+
return this.h5m(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
913
|
+
};
|
|
914
|
+
protoOf($serializer_1).g43 = function (decoder) {
|
|
915
|
+
var tmp0_desc = this.d5m_1;
|
|
921
916
|
var tmp1_flag = true;
|
|
922
917
|
var tmp2_index = 0;
|
|
923
918
|
var tmp3_bitMask0 = 0;
|
|
@@ -925,69 +920,69 @@
|
|
|
925
920
|
var tmp5_local1 = null;
|
|
926
921
|
var tmp6_local2 = null;
|
|
927
922
|
var tmp7_local3 = null;
|
|
928
|
-
var tmp8_input = decoder.
|
|
929
|
-
if (tmp8_input.
|
|
930
|
-
tmp4_local0 = tmp8_input.
|
|
923
|
+
var tmp8_input = decoder.s46(tmp0_desc);
|
|
924
|
+
if (tmp8_input.h47()) {
|
|
925
|
+
tmp4_local0 = tmp8_input.c47(tmp0_desc, 0);
|
|
931
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
932
|
-
tmp5_local1 = tmp8_input.
|
|
927
|
+
tmp5_local1 = tmp8_input.c47(tmp0_desc, 1);
|
|
933
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
934
|
-
tmp6_local2 = tmp8_input.
|
|
929
|
+
tmp6_local2 = tmp8_input.e47(tmp0_desc, 2, this.e5m_1, tmp6_local2);
|
|
935
930
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
936
|
-
tmp7_local3 = tmp8_input.
|
|
931
|
+
tmp7_local3 = tmp8_input.c47(tmp0_desc, 3);
|
|
937
932
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
938
933
|
} else
|
|
939
934
|
while (tmp1_flag) {
|
|
940
|
-
tmp2_index = tmp8_input.
|
|
935
|
+
tmp2_index = tmp8_input.i47(tmp0_desc);
|
|
941
936
|
switch (tmp2_index) {
|
|
942
937
|
case -1:
|
|
943
938
|
tmp1_flag = false;
|
|
944
939
|
break;
|
|
945
940
|
case 0:
|
|
946
|
-
tmp4_local0 = tmp8_input.
|
|
941
|
+
tmp4_local0 = tmp8_input.c47(tmp0_desc, 0);
|
|
947
942
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
948
943
|
break;
|
|
949
944
|
case 1:
|
|
950
|
-
tmp5_local1 = tmp8_input.
|
|
945
|
+
tmp5_local1 = tmp8_input.c47(tmp0_desc, 1);
|
|
951
946
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
952
947
|
break;
|
|
953
948
|
case 2:
|
|
954
|
-
tmp6_local2 = tmp8_input.
|
|
949
|
+
tmp6_local2 = tmp8_input.e47(tmp0_desc, 2, this.e5m_1, tmp6_local2);
|
|
955
950
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
956
951
|
break;
|
|
957
952
|
case 3:
|
|
958
|
-
tmp7_local3 = tmp8_input.
|
|
953
|
+
tmp7_local3 = tmp8_input.c47(tmp0_desc, 3);
|
|
959
954
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
960
955
|
break;
|
|
961
956
|
default:
|
|
962
957
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
963
958
|
}
|
|
964
959
|
}
|
|
965
|
-
tmp8_input.
|
|
960
|
+
tmp8_input.t46(tmp0_desc);
|
|
966
961
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
967
962
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
969
|
-
return this.
|
|
963
|
+
protoOf($serializer_1).e43 = function () {
|
|
964
|
+
return this.d5m_1;
|
|
970
965
|
};
|
|
971
|
-
protoOf($serializer_1).
|
|
966
|
+
protoOf($serializer_1).v4e = function () {
|
|
972
967
|
// Inline function 'kotlin.arrayOf' call
|
|
973
968
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
974
969
|
// Inline function 'kotlin.js.asDynamic' call
|
|
975
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
970
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.e5m_1, StringSerializer_getInstance()];
|
|
976
971
|
};
|
|
977
|
-
protoOf($serializer_1).
|
|
972
|
+
protoOf($serializer_1).w4e = function () {
|
|
978
973
|
// Inline function 'kotlin.arrayOf' call
|
|
979
974
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
980
975
|
// Inline function 'kotlin.js.asDynamic' call
|
|
981
|
-
return [this.
|
|
976
|
+
return [this.e5m_1];
|
|
982
977
|
};
|
|
983
978
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
984
979
|
if (!(15 === (15 & seen0))) {
|
|
985
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
980
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().f5m_1);
|
|
986
981
|
}
|
|
987
|
-
$this.
|
|
988
|
-
$this.
|
|
989
|
-
$this.
|
|
990
|
-
$this.
|
|
982
|
+
$this.i5m_1 = jsonrpc;
|
|
983
|
+
$this.j5m_1 = method;
|
|
984
|
+
$this.k5m_1 = params;
|
|
985
|
+
$this.l5m_1 = id;
|
|
991
986
|
return $this;
|
|
992
987
|
}
|
|
993
988
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -995,19 +990,19 @@
|
|
|
995
990
|
}
|
|
996
991
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
997
992
|
Companion_getInstance_5();
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
1001
|
-
this.
|
|
993
|
+
this.i5m_1 = jsonrpc;
|
|
994
|
+
this.j5m_1 = method;
|
|
995
|
+
this.k5m_1 = params;
|
|
996
|
+
this.l5m_1 = id;
|
|
1002
997
|
}
|
|
1003
998
|
protoOf(RandomRequestDto).toString = function () {
|
|
1004
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
999
|
+
return 'RandomRequestDto(jsonrpc=' + this.i5m_1 + ', method=' + this.j5m_1 + ', params=' + toString(this.k5m_1) + ', id=' + this.l5m_1 + ')';
|
|
1005
1000
|
};
|
|
1006
1001
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1007
|
-
var result = getStringHashCode(this.
|
|
1008
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1009
|
-
result = imul(result, 31) + hashCode(this.
|
|
1010
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1002
|
+
var result = getStringHashCode(this.i5m_1);
|
|
1003
|
+
result = imul(result, 31) + getStringHashCode(this.j5m_1) | 0;
|
|
1004
|
+
result = imul(result, 31) + hashCode(this.k5m_1) | 0;
|
|
1005
|
+
result = imul(result, 31) + getStringHashCode(this.l5m_1) | 0;
|
|
1011
1006
|
return result;
|
|
1012
1007
|
};
|
|
1013
1008
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1016,13 +1011,13 @@
|
|
|
1016
1011
|
if (!(other instanceof RandomRequestDto))
|
|
1017
1012
|
return false;
|
|
1018
1013
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1019
|
-
if (!(this.
|
|
1014
|
+
if (!(this.i5m_1 === tmp0_other_with_cast.i5m_1))
|
|
1020
1015
|
return false;
|
|
1021
|
-
if (!(this.
|
|
1016
|
+
if (!(this.j5m_1 === tmp0_other_with_cast.j5m_1))
|
|
1022
1017
|
return false;
|
|
1023
|
-
if (!equals(this.
|
|
1018
|
+
if (!equals(this.k5m_1, tmp0_other_with_cast.k5m_1))
|
|
1024
1019
|
return false;
|
|
1025
|
-
if (!(this.
|
|
1020
|
+
if (!(this.l5m_1 === tmp0_other_with_cast.l5m_1))
|
|
1026
1021
|
return false;
|
|
1027
1022
|
return true;
|
|
1028
1023
|
};
|
|
@@ -1032,7 +1027,7 @@
|
|
|
1032
1027
|
// Inline function 'kotlin.arrayOf' call
|
|
1033
1028
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1034
1029
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1035
|
-
tmp.
|
|
1030
|
+
tmp.m5m_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1036
1031
|
}
|
|
1037
1032
|
var Companion_instance_5;
|
|
1038
1033
|
function Companion_getInstance_6() {
|
|
@@ -1043,35 +1038,35 @@
|
|
|
1043
1038
|
function $serializer_2() {
|
|
1044
1039
|
$serializer_instance_1 = this;
|
|
1045
1040
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
tmp0_serialDesc.
|
|
1051
|
-
tmp0_serialDesc.
|
|
1052
|
-
tmp0_serialDesc.
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
this.
|
|
1055
|
-
}
|
|
1056
|
-
protoOf($serializer_2).
|
|
1057
|
-
var tmp0_desc = this.
|
|
1058
|
-
var tmp1_output = encoder.
|
|
1059
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1060
|
-
tmp1_output.
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1068
|
-
tmp1_output.
|
|
1069
|
-
};
|
|
1070
|
-
protoOf($serializer_2).
|
|
1071
|
-
return this.
|
|
1072
|
-
};
|
|
1073
|
-
protoOf($serializer_2).
|
|
1074
|
-
var tmp0_desc = this.
|
|
1041
|
+
tmp0_serialDesc.g4e('apiKey', false);
|
|
1042
|
+
tmp0_serialDesc.g4e('n', false);
|
|
1043
|
+
tmp0_serialDesc.g4e('length', false);
|
|
1044
|
+
tmp0_serialDesc.g4e('min', false);
|
|
1045
|
+
tmp0_serialDesc.g4e('max', false);
|
|
1046
|
+
tmp0_serialDesc.g4e('replacement', false);
|
|
1047
|
+
tmp0_serialDesc.g4e('ticketId', false);
|
|
1048
|
+
tmp0_serialDesc.g4e('userData', false);
|
|
1049
|
+
this.n5m_1 = tmp0_serialDesc;
|
|
1050
|
+
}
|
|
1051
|
+
protoOf($serializer_2).o5m = function (encoder, value) {
|
|
1052
|
+
var tmp0_desc = this.n5m_1;
|
|
1053
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
1054
|
+
var tmp2_cached = Companion_getInstance_6().m5m_1;
|
|
1055
|
+
tmp1_output.g48(tmp0_desc, 0, value.p5m_1);
|
|
1056
|
+
tmp1_output.b48(tmp0_desc, 1, value.q5m_1);
|
|
1057
|
+
tmp1_output.i48(tmp0_desc, 2, tmp2_cached[2], value.r5m_1);
|
|
1058
|
+
tmp1_output.b48(tmp0_desc, 3, value.s5m_1);
|
|
1059
|
+
tmp1_output.b48(tmp0_desc, 4, value.t5m_1);
|
|
1060
|
+
tmp1_output.y47(tmp0_desc, 5, value.u5m_1);
|
|
1061
|
+
tmp1_output.k48(tmp0_desc, 6, StringSerializer_getInstance(), value.v5m_1);
|
|
1062
|
+
tmp1_output.k48(tmp0_desc, 7, $serializer_getInstance_2(), value.w5m_1);
|
|
1063
|
+
tmp1_output.t46(tmp0_desc);
|
|
1064
|
+
};
|
|
1065
|
+
protoOf($serializer_2).f43 = function (encoder, value) {
|
|
1066
|
+
return this.o5m(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1067
|
+
};
|
|
1068
|
+
protoOf($serializer_2).g43 = function (decoder) {
|
|
1069
|
+
var tmp0_desc = this.n5m_1;
|
|
1075
1070
|
var tmp1_flag = true;
|
|
1076
1071
|
var tmp2_index = 0;
|
|
1077
1072
|
var tmp3_bitMask0 = 0;
|
|
@@ -1083,76 +1078,76 @@
|
|
|
1083
1078
|
var tmp9_local5 = false;
|
|
1084
1079
|
var tmp10_local6 = null;
|
|
1085
1080
|
var tmp11_local7 = null;
|
|
1086
|
-
var tmp12_input = decoder.
|
|
1087
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1088
|
-
if (tmp12_input.
|
|
1089
|
-
tmp4_local0 = tmp12_input.
|
|
1081
|
+
var tmp12_input = decoder.s46(tmp0_desc);
|
|
1082
|
+
var tmp13_cached = Companion_getInstance_6().m5m_1;
|
|
1083
|
+
if (tmp12_input.h47()) {
|
|
1084
|
+
tmp4_local0 = tmp12_input.c47(tmp0_desc, 0);
|
|
1090
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1091
|
-
tmp5_local1 = tmp12_input.
|
|
1086
|
+
tmp5_local1 = tmp12_input.x46(tmp0_desc, 1);
|
|
1092
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1093
|
-
tmp6_local2 = tmp12_input.
|
|
1088
|
+
tmp6_local2 = tmp12_input.e47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1094
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1095
|
-
tmp7_local3 = tmp12_input.
|
|
1090
|
+
tmp7_local3 = tmp12_input.x46(tmp0_desc, 3);
|
|
1096
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1097
|
-
tmp8_local4 = tmp12_input.
|
|
1092
|
+
tmp8_local4 = tmp12_input.x46(tmp0_desc, 4);
|
|
1098
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1099
|
-
tmp9_local5 = tmp12_input.
|
|
1094
|
+
tmp9_local5 = tmp12_input.u46(tmp0_desc, 5);
|
|
1100
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1101
|
-
tmp10_local6 = tmp12_input.
|
|
1096
|
+
tmp10_local6 = tmp12_input.g47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1102
1097
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1103
|
-
tmp11_local7 = tmp12_input.
|
|
1098
|
+
tmp11_local7 = tmp12_input.g47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1104
1099
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1105
1100
|
} else
|
|
1106
1101
|
while (tmp1_flag) {
|
|
1107
|
-
tmp2_index = tmp12_input.
|
|
1102
|
+
tmp2_index = tmp12_input.i47(tmp0_desc);
|
|
1108
1103
|
switch (tmp2_index) {
|
|
1109
1104
|
case -1:
|
|
1110
1105
|
tmp1_flag = false;
|
|
1111
1106
|
break;
|
|
1112
1107
|
case 0:
|
|
1113
|
-
tmp4_local0 = tmp12_input.
|
|
1108
|
+
tmp4_local0 = tmp12_input.c47(tmp0_desc, 0);
|
|
1114
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1115
1110
|
break;
|
|
1116
1111
|
case 1:
|
|
1117
|
-
tmp5_local1 = tmp12_input.
|
|
1112
|
+
tmp5_local1 = tmp12_input.x46(tmp0_desc, 1);
|
|
1118
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1119
1114
|
break;
|
|
1120
1115
|
case 2:
|
|
1121
|
-
tmp6_local2 = tmp12_input.
|
|
1116
|
+
tmp6_local2 = tmp12_input.e47(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1122
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1123
1118
|
break;
|
|
1124
1119
|
case 3:
|
|
1125
|
-
tmp7_local3 = tmp12_input.
|
|
1120
|
+
tmp7_local3 = tmp12_input.x46(tmp0_desc, 3);
|
|
1126
1121
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1127
1122
|
break;
|
|
1128
1123
|
case 4:
|
|
1129
|
-
tmp8_local4 = tmp12_input.
|
|
1124
|
+
tmp8_local4 = tmp12_input.x46(tmp0_desc, 4);
|
|
1130
1125
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1131
1126
|
break;
|
|
1132
1127
|
case 5:
|
|
1133
|
-
tmp9_local5 = tmp12_input.
|
|
1128
|
+
tmp9_local5 = tmp12_input.u46(tmp0_desc, 5);
|
|
1134
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1135
1130
|
break;
|
|
1136
1131
|
case 6:
|
|
1137
|
-
tmp10_local6 = tmp12_input.
|
|
1132
|
+
tmp10_local6 = tmp12_input.g47(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1138
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1139
1134
|
break;
|
|
1140
1135
|
case 7:
|
|
1141
|
-
tmp11_local7 = tmp12_input.
|
|
1136
|
+
tmp11_local7 = tmp12_input.g47(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1142
1137
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1143
1138
|
break;
|
|
1144
1139
|
default:
|
|
1145
1140
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1146
1141
|
}
|
|
1147
1142
|
}
|
|
1148
|
-
tmp12_input.
|
|
1143
|
+
tmp12_input.t46(tmp0_desc);
|
|
1149
1144
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1150
1145
|
};
|
|
1151
|
-
protoOf($serializer_2).
|
|
1152
|
-
return this.
|
|
1146
|
+
protoOf($serializer_2).e43 = function () {
|
|
1147
|
+
return this.n5m_1;
|
|
1153
1148
|
};
|
|
1154
|
-
protoOf($serializer_2).
|
|
1155
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1149
|
+
protoOf($serializer_2).v4e = function () {
|
|
1150
|
+
var tmp0_cached = Companion_getInstance_6().m5m_1;
|
|
1156
1151
|
// Inline function 'kotlin.arrayOf' call
|
|
1157
1152
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1158
1153
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1166,16 +1161,16 @@
|
|
|
1166
1161
|
}
|
|
1167
1162
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1168
1163
|
if (!(255 === (255 & seen0))) {
|
|
1169
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1164
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().n5m_1);
|
|
1170
1165
|
}
|
|
1171
|
-
$this.
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1178
|
-
$this.
|
|
1166
|
+
$this.p5m_1 = apiKey;
|
|
1167
|
+
$this.q5m_1 = n;
|
|
1168
|
+
$this.r5m_1 = length;
|
|
1169
|
+
$this.s5m_1 = min;
|
|
1170
|
+
$this.t5m_1 = max;
|
|
1171
|
+
$this.u5m_1 = replacement;
|
|
1172
|
+
$this.v5m_1 = ticketId;
|
|
1173
|
+
$this.w5m_1 = userData;
|
|
1179
1174
|
return $this;
|
|
1180
1175
|
}
|
|
1181
1176
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1183,27 +1178,27 @@
|
|
|
1183
1178
|
}
|
|
1184
1179
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1185
1180
|
Companion_getInstance_6();
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1181
|
+
this.p5m_1 = apiKey;
|
|
1182
|
+
this.q5m_1 = n;
|
|
1183
|
+
this.r5m_1 = length;
|
|
1184
|
+
this.s5m_1 = min;
|
|
1185
|
+
this.t5m_1 = max;
|
|
1186
|
+
this.u5m_1 = replacement;
|
|
1187
|
+
this.v5m_1 = ticketId;
|
|
1188
|
+
this.w5m_1 = userData;
|
|
1194
1189
|
}
|
|
1195
1190
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1196
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1191
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.p5m_1 + ', n=' + this.q5m_1 + ', length=' + toString(this.r5m_1) + ', min=' + this.s5m_1 + ', max=' + this.t5m_1 + ', replacement=' + this.u5m_1 + ', ticketId=' + this.v5m_1 + ', userData=' + toString_0(this.w5m_1) + ')';
|
|
1197
1192
|
};
|
|
1198
1193
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1199
|
-
var result = getStringHashCode(this.
|
|
1200
|
-
result = imul(result, 31) + this.
|
|
1201
|
-
result = imul(result, 31) + hashCode(this.
|
|
1202
|
-
result = imul(result, 31) + this.
|
|
1203
|
-
result = imul(result, 31) + this.
|
|
1204
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1205
|
-
result = imul(result, 31) + (this.
|
|
1206
|
-
result = imul(result, 31) + (this.
|
|
1194
|
+
var result = getStringHashCode(this.p5m_1);
|
|
1195
|
+
result = imul(result, 31) + this.q5m_1 | 0;
|
|
1196
|
+
result = imul(result, 31) + hashCode(this.r5m_1) | 0;
|
|
1197
|
+
result = imul(result, 31) + this.s5m_1 | 0;
|
|
1198
|
+
result = imul(result, 31) + this.t5m_1 | 0;
|
|
1199
|
+
result = imul(result, 31) + getBooleanHashCode(this.u5m_1) | 0;
|
|
1200
|
+
result = imul(result, 31) + (this.v5m_1 == null ? 0 : getStringHashCode(this.v5m_1)) | 0;
|
|
1201
|
+
result = imul(result, 31) + (this.w5m_1 == null ? 0 : this.w5m_1.hashCode()) | 0;
|
|
1207
1202
|
return result;
|
|
1208
1203
|
};
|
|
1209
1204
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1212,21 +1207,21 @@
|
|
|
1212
1207
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1213
1208
|
return false;
|
|
1214
1209
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1215
|
-
if (!(this.
|
|
1210
|
+
if (!(this.p5m_1 === tmp0_other_with_cast.p5m_1))
|
|
1216
1211
|
return false;
|
|
1217
|
-
if (!(this.
|
|
1212
|
+
if (!(this.q5m_1 === tmp0_other_with_cast.q5m_1))
|
|
1218
1213
|
return false;
|
|
1219
|
-
if (!equals(this.
|
|
1214
|
+
if (!equals(this.r5m_1, tmp0_other_with_cast.r5m_1))
|
|
1220
1215
|
return false;
|
|
1221
|
-
if (!(this.
|
|
1216
|
+
if (!(this.s5m_1 === tmp0_other_with_cast.s5m_1))
|
|
1222
1217
|
return false;
|
|
1223
|
-
if (!(this.
|
|
1218
|
+
if (!(this.t5m_1 === tmp0_other_with_cast.t5m_1))
|
|
1224
1219
|
return false;
|
|
1225
|
-
if (!(this.
|
|
1220
|
+
if (!(this.u5m_1 === tmp0_other_with_cast.u5m_1))
|
|
1226
1221
|
return false;
|
|
1227
|
-
if (!(this.
|
|
1222
|
+
if (!(this.v5m_1 == tmp0_other_with_cast.v5m_1))
|
|
1228
1223
|
return false;
|
|
1229
|
-
if (!equals(this.
|
|
1224
|
+
if (!equals(this.w5m_1, tmp0_other_with_cast.w5m_1))
|
|
1230
1225
|
return false;
|
|
1231
1226
|
return true;
|
|
1232
1227
|
};
|
|
@@ -1239,59 +1234,59 @@
|
|
|
1239
1234
|
function $serializer_3() {
|
|
1240
1235
|
$serializer_instance_2 = this;
|
|
1241
1236
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1242
|
-
tmp0_serialDesc.
|
|
1243
|
-
tmp0_serialDesc.
|
|
1244
|
-
this.
|
|
1245
|
-
}
|
|
1246
|
-
protoOf($serializer_3).
|
|
1247
|
-
var tmp0_desc = this.
|
|
1248
|
-
var tmp1_output = encoder.
|
|
1249
|
-
tmp1_output.
|
|
1250
|
-
tmp1_output.
|
|
1251
|
-
tmp1_output.
|
|
1252
|
-
};
|
|
1253
|
-
protoOf($serializer_3).
|
|
1254
|
-
return this.
|
|
1255
|
-
};
|
|
1256
|
-
protoOf($serializer_3).
|
|
1257
|
-
var tmp0_desc = this.
|
|
1237
|
+
tmp0_serialDesc.g4e('id', false);
|
|
1238
|
+
tmp0_serialDesc.g4e('count', false);
|
|
1239
|
+
this.x5m_1 = tmp0_serialDesc;
|
|
1240
|
+
}
|
|
1241
|
+
protoOf($serializer_3).y5m = function (encoder, value) {
|
|
1242
|
+
var tmp0_desc = this.x5m_1;
|
|
1243
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
1244
|
+
tmp1_output.g48(tmp0_desc, 0, value.z5m_1);
|
|
1245
|
+
tmp1_output.b48(tmp0_desc, 1, value.a5n_1);
|
|
1246
|
+
tmp1_output.t46(tmp0_desc);
|
|
1247
|
+
};
|
|
1248
|
+
protoOf($serializer_3).f43 = function (encoder, value) {
|
|
1249
|
+
return this.y5m(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1250
|
+
};
|
|
1251
|
+
protoOf($serializer_3).g43 = function (decoder) {
|
|
1252
|
+
var tmp0_desc = this.x5m_1;
|
|
1258
1253
|
var tmp1_flag = true;
|
|
1259
1254
|
var tmp2_index = 0;
|
|
1260
1255
|
var tmp3_bitMask0 = 0;
|
|
1261
1256
|
var tmp4_local0 = null;
|
|
1262
1257
|
var tmp5_local1 = 0;
|
|
1263
|
-
var tmp6_input = decoder.
|
|
1264
|
-
if (tmp6_input.
|
|
1265
|
-
tmp4_local0 = tmp6_input.
|
|
1258
|
+
var tmp6_input = decoder.s46(tmp0_desc);
|
|
1259
|
+
if (tmp6_input.h47()) {
|
|
1260
|
+
tmp4_local0 = tmp6_input.c47(tmp0_desc, 0);
|
|
1266
1261
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1267
|
-
tmp5_local1 = tmp6_input.
|
|
1262
|
+
tmp5_local1 = tmp6_input.x46(tmp0_desc, 1);
|
|
1268
1263
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1269
1264
|
} else
|
|
1270
1265
|
while (tmp1_flag) {
|
|
1271
|
-
tmp2_index = tmp6_input.
|
|
1266
|
+
tmp2_index = tmp6_input.i47(tmp0_desc);
|
|
1272
1267
|
switch (tmp2_index) {
|
|
1273
1268
|
case -1:
|
|
1274
1269
|
tmp1_flag = false;
|
|
1275
1270
|
break;
|
|
1276
1271
|
case 0:
|
|
1277
|
-
tmp4_local0 = tmp6_input.
|
|
1272
|
+
tmp4_local0 = tmp6_input.c47(tmp0_desc, 0);
|
|
1278
1273
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1279
1274
|
break;
|
|
1280
1275
|
case 1:
|
|
1281
|
-
tmp5_local1 = tmp6_input.
|
|
1276
|
+
tmp5_local1 = tmp6_input.x46(tmp0_desc, 1);
|
|
1282
1277
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1283
1278
|
break;
|
|
1284
1279
|
default:
|
|
1285
1280
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1286
1281
|
}
|
|
1287
1282
|
}
|
|
1288
|
-
tmp6_input.
|
|
1283
|
+
tmp6_input.t46(tmp0_desc);
|
|
1289
1284
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1290
1285
|
};
|
|
1291
|
-
protoOf($serializer_3).
|
|
1292
|
-
return this.
|
|
1286
|
+
protoOf($serializer_3).e43 = function () {
|
|
1287
|
+
return this.x5m_1;
|
|
1293
1288
|
};
|
|
1294
|
-
protoOf($serializer_3).
|
|
1289
|
+
protoOf($serializer_3).v4e = function () {
|
|
1295
1290
|
// Inline function 'kotlin.arrayOf' call
|
|
1296
1291
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1297
1292
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1305,25 +1300,25 @@
|
|
|
1305
1300
|
}
|
|
1306
1301
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1307
1302
|
if (!(3 === (3 & seen0))) {
|
|
1308
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1303
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().x5m_1);
|
|
1309
1304
|
}
|
|
1310
|
-
$this.
|
|
1311
|
-
$this.
|
|
1305
|
+
$this.z5m_1 = id;
|
|
1306
|
+
$this.a5n_1 = count;
|
|
1312
1307
|
return $this;
|
|
1313
1308
|
}
|
|
1314
1309
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1315
1310
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1316
1311
|
}
|
|
1317
1312
|
function CardDecksUserDataDto(id, count) {
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1313
|
+
this.z5m_1 = id;
|
|
1314
|
+
this.a5n_1 = count;
|
|
1320
1315
|
}
|
|
1321
1316
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1322
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1317
|
+
return 'CardDecksUserDataDto(id=' + this.z5m_1 + ', count=' + this.a5n_1 + ')';
|
|
1323
1318
|
};
|
|
1324
1319
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1325
|
-
var result = getStringHashCode(this.
|
|
1326
|
-
result = imul(result, 31) + this.
|
|
1320
|
+
var result = getStringHashCode(this.z5m_1);
|
|
1321
|
+
result = imul(result, 31) + this.a5n_1 | 0;
|
|
1327
1322
|
return result;
|
|
1328
1323
|
};
|
|
1329
1324
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1332,15 +1327,15 @@
|
|
|
1332
1327
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1333
1328
|
return false;
|
|
1334
1329
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1335
|
-
if (!(this.
|
|
1330
|
+
if (!(this.z5m_1 === tmp0_other_with_cast.z5m_1))
|
|
1336
1331
|
return false;
|
|
1337
|
-
if (!(this.
|
|
1332
|
+
if (!(this.a5n_1 === tmp0_other_with_cast.a5n_1))
|
|
1338
1333
|
return false;
|
|
1339
1334
|
return true;
|
|
1340
1335
|
};
|
|
1341
1336
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1342
1337
|
$serializer_4.call($this);
|
|
1343
|
-
$this.
|
|
1338
|
+
$this.c5n_1 = typeSerial0;
|
|
1344
1339
|
return $this;
|
|
1345
1340
|
}
|
|
1346
1341
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1349,16 +1344,16 @@
|
|
|
1349
1344
|
function Companion_5() {
|
|
1350
1345
|
Companion_instance_7 = this;
|
|
1351
1346
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1352
|
-
tmp0_serialDesc.
|
|
1353
|
-
tmp0_serialDesc.
|
|
1354
|
-
tmp0_serialDesc.
|
|
1355
|
-
this.
|
|
1347
|
+
tmp0_serialDesc.g4e('jsonrpc', false);
|
|
1348
|
+
tmp0_serialDesc.g4e('result', false);
|
|
1349
|
+
tmp0_serialDesc.g4e('id', false);
|
|
1350
|
+
this.d5n_1 = tmp0_serialDesc;
|
|
1356
1351
|
}
|
|
1357
|
-
protoOf(Companion_5).
|
|
1352
|
+
protoOf(Companion_5).g5m = function (typeSerial0) {
|
|
1358
1353
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1359
1354
|
};
|
|
1360
|
-
protoOf(Companion_5).
|
|
1361
|
-
return this.
|
|
1355
|
+
protoOf(Companion_5).g4f = function (typeParamsSerializers) {
|
|
1356
|
+
return this.g5m(typeParamsSerializers[0]);
|
|
1362
1357
|
};
|
|
1363
1358
|
var Companion_instance_7;
|
|
1364
1359
|
function Companion_getInstance_8() {
|
|
@@ -1368,86 +1363,86 @@
|
|
|
1368
1363
|
}
|
|
1369
1364
|
function $serializer_4() {
|
|
1370
1365
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1371
|
-
tmp0_serialDesc.
|
|
1372
|
-
tmp0_serialDesc.
|
|
1373
|
-
tmp0_serialDesc.
|
|
1374
|
-
this.
|
|
1375
|
-
}
|
|
1376
|
-
protoOf($serializer_4).
|
|
1377
|
-
var tmp0_desc = this.
|
|
1378
|
-
var tmp1_output = encoder.
|
|
1379
|
-
tmp1_output.
|
|
1380
|
-
tmp1_output.
|
|
1381
|
-
tmp1_output.
|
|
1382
|
-
tmp1_output.
|
|
1383
|
-
};
|
|
1384
|
-
protoOf($serializer_4).
|
|
1385
|
-
return this.
|
|
1386
|
-
};
|
|
1387
|
-
protoOf($serializer_4).
|
|
1388
|
-
var tmp0_desc = this.
|
|
1366
|
+
tmp0_serialDesc.g4e('jsonrpc', false);
|
|
1367
|
+
tmp0_serialDesc.g4e('result', false);
|
|
1368
|
+
tmp0_serialDesc.g4e('id', false);
|
|
1369
|
+
this.b5n_1 = tmp0_serialDesc;
|
|
1370
|
+
}
|
|
1371
|
+
protoOf($serializer_4).e5n = function (encoder, value) {
|
|
1372
|
+
var tmp0_desc = this.b5n_1;
|
|
1373
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
1374
|
+
tmp1_output.g48(tmp0_desc, 0, value.f5n_1);
|
|
1375
|
+
tmp1_output.i48(tmp0_desc, 1, this.c5n_1, value.g5n_1);
|
|
1376
|
+
tmp1_output.g48(tmp0_desc, 2, value.h5n_1);
|
|
1377
|
+
tmp1_output.t46(tmp0_desc);
|
|
1378
|
+
};
|
|
1379
|
+
protoOf($serializer_4).f43 = function (encoder, value) {
|
|
1380
|
+
return this.e5n(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1381
|
+
};
|
|
1382
|
+
protoOf($serializer_4).g43 = function (decoder) {
|
|
1383
|
+
var tmp0_desc = this.b5n_1;
|
|
1389
1384
|
var tmp1_flag = true;
|
|
1390
1385
|
var tmp2_index = 0;
|
|
1391
1386
|
var tmp3_bitMask0 = 0;
|
|
1392
1387
|
var tmp4_local0 = null;
|
|
1393
1388
|
var tmp5_local1 = null;
|
|
1394
1389
|
var tmp6_local2 = null;
|
|
1395
|
-
var tmp7_input = decoder.
|
|
1396
|
-
if (tmp7_input.
|
|
1397
|
-
tmp4_local0 = tmp7_input.
|
|
1390
|
+
var tmp7_input = decoder.s46(tmp0_desc);
|
|
1391
|
+
if (tmp7_input.h47()) {
|
|
1392
|
+
tmp4_local0 = tmp7_input.c47(tmp0_desc, 0);
|
|
1398
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1399
|
-
tmp5_local1 = tmp7_input.
|
|
1394
|
+
tmp5_local1 = tmp7_input.e47(tmp0_desc, 1, this.c5n_1, tmp5_local1);
|
|
1400
1395
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1401
|
-
tmp6_local2 = tmp7_input.
|
|
1396
|
+
tmp6_local2 = tmp7_input.c47(tmp0_desc, 2);
|
|
1402
1397
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1403
1398
|
} else
|
|
1404
1399
|
while (tmp1_flag) {
|
|
1405
|
-
tmp2_index = tmp7_input.
|
|
1400
|
+
tmp2_index = tmp7_input.i47(tmp0_desc);
|
|
1406
1401
|
switch (tmp2_index) {
|
|
1407
1402
|
case -1:
|
|
1408
1403
|
tmp1_flag = false;
|
|
1409
1404
|
break;
|
|
1410
1405
|
case 0:
|
|
1411
|
-
tmp4_local0 = tmp7_input.
|
|
1406
|
+
tmp4_local0 = tmp7_input.c47(tmp0_desc, 0);
|
|
1412
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1413
1408
|
break;
|
|
1414
1409
|
case 1:
|
|
1415
|
-
tmp5_local1 = tmp7_input.
|
|
1410
|
+
tmp5_local1 = tmp7_input.e47(tmp0_desc, 1, this.c5n_1, tmp5_local1);
|
|
1416
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1417
1412
|
break;
|
|
1418
1413
|
case 2:
|
|
1419
|
-
tmp6_local2 = tmp7_input.
|
|
1414
|
+
tmp6_local2 = tmp7_input.c47(tmp0_desc, 2);
|
|
1420
1415
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1421
1416
|
break;
|
|
1422
1417
|
default:
|
|
1423
1418
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1424
1419
|
}
|
|
1425
1420
|
}
|
|
1426
|
-
tmp7_input.
|
|
1421
|
+
tmp7_input.t46(tmp0_desc);
|
|
1427
1422
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1428
1423
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1430
|
-
return this.
|
|
1424
|
+
protoOf($serializer_4).e43 = function () {
|
|
1425
|
+
return this.b5n_1;
|
|
1431
1426
|
};
|
|
1432
|
-
protoOf($serializer_4).
|
|
1427
|
+
protoOf($serializer_4).v4e = function () {
|
|
1433
1428
|
// Inline function 'kotlin.arrayOf' call
|
|
1434
1429
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1435
1430
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1436
|
-
return [StringSerializer_getInstance(), this.
|
|
1431
|
+
return [StringSerializer_getInstance(), this.c5n_1, StringSerializer_getInstance()];
|
|
1437
1432
|
};
|
|
1438
|
-
protoOf($serializer_4).
|
|
1433
|
+
protoOf($serializer_4).w4e = function () {
|
|
1439
1434
|
// Inline function 'kotlin.arrayOf' call
|
|
1440
1435
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1441
1436
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1442
|
-
return [this.
|
|
1437
|
+
return [this.c5n_1];
|
|
1443
1438
|
};
|
|
1444
1439
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1445
1440
|
if (!(7 === (7 & seen0))) {
|
|
1446
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1441
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().d5n_1);
|
|
1447
1442
|
}
|
|
1448
|
-
$this.
|
|
1449
|
-
$this.
|
|
1450
|
-
$this.
|
|
1443
|
+
$this.f5n_1 = jsonrpc;
|
|
1444
|
+
$this.g5n_1 = result;
|
|
1445
|
+
$this.h5n_1 = id;
|
|
1451
1446
|
return $this;
|
|
1452
1447
|
}
|
|
1453
1448
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1455,17 +1450,17 @@
|
|
|
1455
1450
|
}
|
|
1456
1451
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1457
1452
|
Companion_getInstance_8();
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1453
|
+
this.f5n_1 = jsonrpc;
|
|
1454
|
+
this.g5n_1 = result;
|
|
1455
|
+
this.h5n_1 = id;
|
|
1461
1456
|
}
|
|
1462
1457
|
protoOf(RandomResponseDto).toString = function () {
|
|
1463
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1458
|
+
return 'RandomResponseDto(jsonrpc=' + this.f5n_1 + ', result=' + toString(this.g5n_1) + ', id=' + this.h5n_1 + ')';
|
|
1464
1459
|
};
|
|
1465
1460
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1466
|
-
var result = getStringHashCode(this.
|
|
1467
|
-
result = imul(result, 31) + hashCode(this.
|
|
1468
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1461
|
+
var result = getStringHashCode(this.f5n_1);
|
|
1462
|
+
result = imul(result, 31) + hashCode(this.g5n_1) | 0;
|
|
1463
|
+
result = imul(result, 31) + getStringHashCode(this.h5n_1) | 0;
|
|
1469
1464
|
return result;
|
|
1470
1465
|
};
|
|
1471
1466
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1474,11 +1469,11 @@
|
|
|
1474
1469
|
if (!(other instanceof RandomResponseDto))
|
|
1475
1470
|
return false;
|
|
1476
1471
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1477
|
-
if (!(this.
|
|
1472
|
+
if (!(this.f5n_1 === tmp0_other_with_cast.f5n_1))
|
|
1478
1473
|
return false;
|
|
1479
|
-
if (!equals(this.
|
|
1474
|
+
if (!equals(this.g5n_1, tmp0_other_with_cast.g5n_1))
|
|
1480
1475
|
return false;
|
|
1481
|
-
if (!(this.
|
|
1476
|
+
if (!(this.h5n_1 === tmp0_other_with_cast.h5n_1))
|
|
1482
1477
|
return false;
|
|
1483
1478
|
return true;
|
|
1484
1479
|
};
|
|
@@ -1491,30 +1486,30 @@
|
|
|
1491
1486
|
function $serializer_5() {
|
|
1492
1487
|
$serializer_instance_3 = this;
|
|
1493
1488
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1494
|
-
tmp0_serialDesc.
|
|
1495
|
-
tmp0_serialDesc.
|
|
1496
|
-
tmp0_serialDesc.
|
|
1497
|
-
tmp0_serialDesc.
|
|
1498
|
-
tmp0_serialDesc.
|
|
1499
|
-
tmp0_serialDesc.
|
|
1500
|
-
this.
|
|
1501
|
-
}
|
|
1502
|
-
protoOf($serializer_5).
|
|
1503
|
-
var tmp0_desc = this.
|
|
1504
|
-
var tmp1_output = encoder.
|
|
1505
|
-
tmp1_output.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
tmp1_output.
|
|
1509
|
-
tmp1_output.
|
|
1510
|
-
tmp1_output.
|
|
1511
|
-
tmp1_output.
|
|
1512
|
-
};
|
|
1513
|
-
protoOf($serializer_5).
|
|
1514
|
-
return this.
|
|
1515
|
-
};
|
|
1516
|
-
protoOf($serializer_5).
|
|
1517
|
-
var tmp0_desc = this.
|
|
1489
|
+
tmp0_serialDesc.g4e('random', false);
|
|
1490
|
+
tmp0_serialDesc.g4e('signature', false);
|
|
1491
|
+
tmp0_serialDesc.g4e('bitsUsed', false);
|
|
1492
|
+
tmp0_serialDesc.g4e('bitsLeft', false);
|
|
1493
|
+
tmp0_serialDesc.g4e('requestsLeft', false);
|
|
1494
|
+
tmp0_serialDesc.g4e('advisoryDelay', false);
|
|
1495
|
+
this.i5n_1 = tmp0_serialDesc;
|
|
1496
|
+
}
|
|
1497
|
+
protoOf($serializer_5).j5n = function (encoder, value) {
|
|
1498
|
+
var tmp0_desc = this.i5n_1;
|
|
1499
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
1500
|
+
tmp1_output.i48(tmp0_desc, 0, $serializer_getInstance_4(), value.k5n_1);
|
|
1501
|
+
tmp1_output.k48(tmp0_desc, 1, StringSerializer_getInstance(), value.l5n_1);
|
|
1502
|
+
tmp1_output.k48(tmp0_desc, 2, IntSerializer_getInstance(), value.m5n_1);
|
|
1503
|
+
tmp1_output.k48(tmp0_desc, 3, IntSerializer_getInstance(), value.n5n_1);
|
|
1504
|
+
tmp1_output.k48(tmp0_desc, 4, IntSerializer_getInstance(), value.o5n_1);
|
|
1505
|
+
tmp1_output.k48(tmp0_desc, 5, IntSerializer_getInstance(), value.p5n_1);
|
|
1506
|
+
tmp1_output.t46(tmp0_desc);
|
|
1507
|
+
};
|
|
1508
|
+
protoOf($serializer_5).f43 = function (encoder, value) {
|
|
1509
|
+
return this.j5n(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1510
|
+
};
|
|
1511
|
+
protoOf($serializer_5).g43 = function (decoder) {
|
|
1512
|
+
var tmp0_desc = this.i5n_1;
|
|
1518
1513
|
var tmp1_flag = true;
|
|
1519
1514
|
var tmp2_index = 0;
|
|
1520
1515
|
var tmp3_bitMask0 = 0;
|
|
@@ -1524,62 +1519,62 @@
|
|
|
1524
1519
|
var tmp7_local3 = null;
|
|
1525
1520
|
var tmp8_local4 = null;
|
|
1526
1521
|
var tmp9_local5 = null;
|
|
1527
|
-
var tmp10_input = decoder.
|
|
1528
|
-
if (tmp10_input.
|
|
1529
|
-
tmp4_local0 = tmp10_input.
|
|
1522
|
+
var tmp10_input = decoder.s46(tmp0_desc);
|
|
1523
|
+
if (tmp10_input.h47()) {
|
|
1524
|
+
tmp4_local0 = tmp10_input.e47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1530
1525
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1531
|
-
tmp5_local1 = tmp10_input.
|
|
1526
|
+
tmp5_local1 = tmp10_input.g47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1532
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1533
|
-
tmp6_local2 = tmp10_input.
|
|
1528
|
+
tmp6_local2 = tmp10_input.g47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1534
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1535
|
-
tmp7_local3 = tmp10_input.
|
|
1530
|
+
tmp7_local3 = tmp10_input.g47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1536
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1537
|
-
tmp8_local4 = tmp10_input.
|
|
1532
|
+
tmp8_local4 = tmp10_input.g47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1538
1533
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1539
|
-
tmp9_local5 = tmp10_input.
|
|
1534
|
+
tmp9_local5 = tmp10_input.g47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1540
1535
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1541
1536
|
} else
|
|
1542
1537
|
while (tmp1_flag) {
|
|
1543
|
-
tmp2_index = tmp10_input.
|
|
1538
|
+
tmp2_index = tmp10_input.i47(tmp0_desc);
|
|
1544
1539
|
switch (tmp2_index) {
|
|
1545
1540
|
case -1:
|
|
1546
1541
|
tmp1_flag = false;
|
|
1547
1542
|
break;
|
|
1548
1543
|
case 0:
|
|
1549
|
-
tmp4_local0 = tmp10_input.
|
|
1544
|
+
tmp4_local0 = tmp10_input.e47(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1550
1545
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1551
1546
|
break;
|
|
1552
1547
|
case 1:
|
|
1553
|
-
tmp5_local1 = tmp10_input.
|
|
1548
|
+
tmp5_local1 = tmp10_input.g47(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1554
1549
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1555
1550
|
break;
|
|
1556
1551
|
case 2:
|
|
1557
|
-
tmp6_local2 = tmp10_input.
|
|
1552
|
+
tmp6_local2 = tmp10_input.g47(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1558
1553
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1559
1554
|
break;
|
|
1560
1555
|
case 3:
|
|
1561
|
-
tmp7_local3 = tmp10_input.
|
|
1556
|
+
tmp7_local3 = tmp10_input.g47(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1562
1557
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1563
1558
|
break;
|
|
1564
1559
|
case 4:
|
|
1565
|
-
tmp8_local4 = tmp10_input.
|
|
1560
|
+
tmp8_local4 = tmp10_input.g47(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1566
1561
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1567
1562
|
break;
|
|
1568
1563
|
case 5:
|
|
1569
|
-
tmp9_local5 = tmp10_input.
|
|
1564
|
+
tmp9_local5 = tmp10_input.g47(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1570
1565
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1571
1566
|
break;
|
|
1572
1567
|
default:
|
|
1573
1568
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1574
1569
|
}
|
|
1575
1570
|
}
|
|
1576
|
-
tmp10_input.
|
|
1571
|
+
tmp10_input.t46(tmp0_desc);
|
|
1577
1572
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1578
1573
|
};
|
|
1579
|
-
protoOf($serializer_5).
|
|
1580
|
-
return this.
|
|
1574
|
+
protoOf($serializer_5).e43 = function () {
|
|
1575
|
+
return this.i5n_1;
|
|
1581
1576
|
};
|
|
1582
|
-
protoOf($serializer_5).
|
|
1577
|
+
protoOf($serializer_5).v4e = function () {
|
|
1583
1578
|
// Inline function 'kotlin.arrayOf' call
|
|
1584
1579
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1585
1580
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1593,37 +1588,37 @@
|
|
|
1593
1588
|
}
|
|
1594
1589
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1595
1590
|
if (!(63 === (63 & seen0))) {
|
|
1596
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1591
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().i5n_1);
|
|
1597
1592
|
}
|
|
1598
|
-
$this.
|
|
1599
|
-
$this.
|
|
1600
|
-
$this.
|
|
1601
|
-
$this.
|
|
1602
|
-
$this.
|
|
1603
|
-
$this.
|
|
1593
|
+
$this.k5n_1 = random;
|
|
1594
|
+
$this.l5n_1 = signature;
|
|
1595
|
+
$this.m5n_1 = bitsUsed;
|
|
1596
|
+
$this.n5n_1 = bitsLeft;
|
|
1597
|
+
$this.o5n_1 = requestsLeft;
|
|
1598
|
+
$this.p5n_1 = advisoryDelay;
|
|
1604
1599
|
return $this;
|
|
1605
1600
|
}
|
|
1606
1601
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1607
1602
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1608
1603
|
}
|
|
1609
1604
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1605
|
+
this.k5n_1 = random;
|
|
1606
|
+
this.l5n_1 = signature;
|
|
1607
|
+
this.m5n_1 = bitsUsed;
|
|
1608
|
+
this.n5n_1 = bitsLeft;
|
|
1609
|
+
this.o5n_1 = requestsLeft;
|
|
1610
|
+
this.p5n_1 = advisoryDelay;
|
|
1616
1611
|
}
|
|
1617
1612
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1618
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1613
|
+
return 'IntegerSequencesResultDto(random=' + this.k5n_1.toString() + ', signature=' + this.l5n_1 + ', bitsUsed=' + this.m5n_1 + ', bitsLeft=' + this.n5n_1 + ', requestsLeft=' + this.o5n_1 + ', advisoryDelay=' + this.p5n_1 + ')';
|
|
1619
1614
|
};
|
|
1620
1615
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1621
|
-
var result = this.
|
|
1622
|
-
result = imul(result, 31) + (this.
|
|
1623
|
-
result = imul(result, 31) + (this.
|
|
1624
|
-
result = imul(result, 31) + (this.
|
|
1625
|
-
result = imul(result, 31) + (this.
|
|
1626
|
-
result = imul(result, 31) + (this.
|
|
1616
|
+
var result = this.k5n_1.hashCode();
|
|
1617
|
+
result = imul(result, 31) + (this.l5n_1 == null ? 0 : getStringHashCode(this.l5n_1)) | 0;
|
|
1618
|
+
result = imul(result, 31) + (this.m5n_1 == null ? 0 : this.m5n_1) | 0;
|
|
1619
|
+
result = imul(result, 31) + (this.n5n_1 == null ? 0 : this.n5n_1) | 0;
|
|
1620
|
+
result = imul(result, 31) + (this.o5n_1 == null ? 0 : this.o5n_1) | 0;
|
|
1621
|
+
result = imul(result, 31) + (this.p5n_1 == null ? 0 : this.p5n_1) | 0;
|
|
1627
1622
|
return result;
|
|
1628
1623
|
};
|
|
1629
1624
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1632,17 +1627,17 @@
|
|
|
1632
1627
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1633
1628
|
return false;
|
|
1634
1629
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1635
|
-
if (!this.
|
|
1630
|
+
if (!this.k5n_1.equals(tmp0_other_with_cast.k5n_1))
|
|
1636
1631
|
return false;
|
|
1637
|
-
if (!(this.
|
|
1632
|
+
if (!(this.l5n_1 == tmp0_other_with_cast.l5n_1))
|
|
1638
1633
|
return false;
|
|
1639
|
-
if (!(this.
|
|
1634
|
+
if (!(this.m5n_1 == tmp0_other_with_cast.m5n_1))
|
|
1640
1635
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1636
|
+
if (!(this.n5n_1 == tmp0_other_with_cast.n5n_1))
|
|
1642
1637
|
return false;
|
|
1643
|
-
if (!(this.
|
|
1638
|
+
if (!(this.o5n_1 == tmp0_other_with_cast.o5n_1))
|
|
1644
1639
|
return false;
|
|
1645
|
-
if (!(this.
|
|
1640
|
+
if (!(this.p5n_1 == tmp0_other_with_cast.p5n_1))
|
|
1646
1641
|
return false;
|
|
1647
1642
|
return true;
|
|
1648
1643
|
};
|
|
@@ -1652,7 +1647,7 @@
|
|
|
1652
1647
|
// Inline function 'kotlin.arrayOf' call
|
|
1653
1648
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1654
1649
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1655
|
-
tmp.
|
|
1650
|
+
tmp.q5n_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1656
1651
|
}
|
|
1657
1652
|
var Companion_instance_9;
|
|
1658
1653
|
function Companion_getInstance_10() {
|
|
@@ -1663,74 +1658,74 @@
|
|
|
1663
1658
|
function $serializer_6() {
|
|
1664
1659
|
$serializer_instance_4 = this;
|
|
1665
1660
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1666
|
-
tmp0_serialDesc.
|
|
1667
|
-
tmp0_serialDesc.
|
|
1668
|
-
tmp0_serialDesc.
|
|
1669
|
-
this.
|
|
1670
|
-
}
|
|
1671
|
-
protoOf($serializer_6).
|
|
1672
|
-
var tmp0_desc = this.
|
|
1673
|
-
var tmp1_output = encoder.
|
|
1674
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1675
|
-
tmp1_output.
|
|
1676
|
-
tmp1_output.
|
|
1677
|
-
tmp1_output.
|
|
1678
|
-
tmp1_output.
|
|
1679
|
-
};
|
|
1680
|
-
protoOf($serializer_6).
|
|
1681
|
-
return this.
|
|
1682
|
-
};
|
|
1683
|
-
protoOf($serializer_6).
|
|
1684
|
-
var tmp0_desc = this.
|
|
1661
|
+
tmp0_serialDesc.g4e('data', false);
|
|
1662
|
+
tmp0_serialDesc.g4e('completionTime', false);
|
|
1663
|
+
tmp0_serialDesc.g4e('ticketId', false);
|
|
1664
|
+
this.r5n_1 = tmp0_serialDesc;
|
|
1665
|
+
}
|
|
1666
|
+
protoOf($serializer_6).s5n = function (encoder, value) {
|
|
1667
|
+
var tmp0_desc = this.r5n_1;
|
|
1668
|
+
var tmp1_output = encoder.s46(tmp0_desc);
|
|
1669
|
+
var tmp2_cached = Companion_getInstance_10().q5n_1;
|
|
1670
|
+
tmp1_output.i48(tmp0_desc, 0, tmp2_cached[0], value.t5n_1);
|
|
1671
|
+
tmp1_output.g48(tmp0_desc, 1, value.u5n_1);
|
|
1672
|
+
tmp1_output.k48(tmp0_desc, 2, StringSerializer_getInstance(), value.v5n_1);
|
|
1673
|
+
tmp1_output.t46(tmp0_desc);
|
|
1674
|
+
};
|
|
1675
|
+
protoOf($serializer_6).f43 = function (encoder, value) {
|
|
1676
|
+
return this.s5n(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1677
|
+
};
|
|
1678
|
+
protoOf($serializer_6).g43 = function (decoder) {
|
|
1679
|
+
var tmp0_desc = this.r5n_1;
|
|
1685
1680
|
var tmp1_flag = true;
|
|
1686
1681
|
var tmp2_index = 0;
|
|
1687
1682
|
var tmp3_bitMask0 = 0;
|
|
1688
1683
|
var tmp4_local0 = null;
|
|
1689
1684
|
var tmp5_local1 = null;
|
|
1690
1685
|
var tmp6_local2 = null;
|
|
1691
|
-
var tmp7_input = decoder.
|
|
1692
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1693
|
-
if (tmp7_input.
|
|
1694
|
-
tmp4_local0 = tmp7_input.
|
|
1686
|
+
var tmp7_input = decoder.s46(tmp0_desc);
|
|
1687
|
+
var tmp8_cached = Companion_getInstance_10().q5n_1;
|
|
1688
|
+
if (tmp7_input.h47()) {
|
|
1689
|
+
tmp4_local0 = tmp7_input.e47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1695
1690
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1696
|
-
tmp5_local1 = tmp7_input.
|
|
1691
|
+
tmp5_local1 = tmp7_input.c47(tmp0_desc, 1);
|
|
1697
1692
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1698
|
-
tmp6_local2 = tmp7_input.
|
|
1693
|
+
tmp6_local2 = tmp7_input.g47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1699
1694
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1700
1695
|
} else
|
|
1701
1696
|
while (tmp1_flag) {
|
|
1702
|
-
tmp2_index = tmp7_input.
|
|
1697
|
+
tmp2_index = tmp7_input.i47(tmp0_desc);
|
|
1703
1698
|
switch (tmp2_index) {
|
|
1704
1699
|
case -1:
|
|
1705
1700
|
tmp1_flag = false;
|
|
1706
1701
|
break;
|
|
1707
1702
|
case 0:
|
|
1708
|
-
tmp4_local0 = tmp7_input.
|
|
1703
|
+
tmp4_local0 = tmp7_input.e47(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1709
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1710
1705
|
break;
|
|
1711
1706
|
case 1:
|
|
1712
|
-
tmp5_local1 = tmp7_input.
|
|
1707
|
+
tmp5_local1 = tmp7_input.c47(tmp0_desc, 1);
|
|
1713
1708
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1714
1709
|
break;
|
|
1715
1710
|
case 2:
|
|
1716
|
-
tmp6_local2 = tmp7_input.
|
|
1711
|
+
tmp6_local2 = tmp7_input.g47(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1717
1712
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1718
1713
|
break;
|
|
1719
1714
|
default:
|
|
1720
1715
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1721
1716
|
}
|
|
1722
1717
|
}
|
|
1723
|
-
tmp7_input.
|
|
1718
|
+
tmp7_input.t46(tmp0_desc);
|
|
1724
1719
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1725
1720
|
};
|
|
1726
|
-
protoOf($serializer_6).
|
|
1727
|
-
return this.
|
|
1721
|
+
protoOf($serializer_6).e43 = function () {
|
|
1722
|
+
return this.r5n_1;
|
|
1728
1723
|
};
|
|
1729
|
-
protoOf($serializer_6).
|
|
1724
|
+
protoOf($serializer_6).v4e = function () {
|
|
1730
1725
|
// Inline function 'kotlin.arrayOf' call
|
|
1731
1726
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1732
1727
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1733
|
-
return [Companion_getInstance_10().
|
|
1728
|
+
return [Companion_getInstance_10().q5n_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1734
1729
|
};
|
|
1735
1730
|
var $serializer_instance_4;
|
|
1736
1731
|
function $serializer_getInstance_4() {
|
|
@@ -1740,11 +1735,11 @@
|
|
|
1740
1735
|
}
|
|
1741
1736
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1742
1737
|
if (!(7 === (7 & seen0))) {
|
|
1743
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1738
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().r5n_1);
|
|
1744
1739
|
}
|
|
1745
|
-
$this.
|
|
1746
|
-
$this.
|
|
1747
|
-
$this.
|
|
1740
|
+
$this.t5n_1 = data;
|
|
1741
|
+
$this.u5n_1 = completionTime;
|
|
1742
|
+
$this.v5n_1 = ticketId;
|
|
1748
1743
|
return $this;
|
|
1749
1744
|
}
|
|
1750
1745
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1753,12 +1748,12 @@
|
|
|
1753
1748
|
function IntegerSequencesDataDto() {
|
|
1754
1749
|
}
|
|
1755
1750
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1756
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1751
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.t5n_1) + ', completionTime=' + this.u5n_1 + ', ticketId=' + this.v5n_1 + ')';
|
|
1757
1752
|
};
|
|
1758
1753
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1759
|
-
var result = hashCode(this.
|
|
1760
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1761
|
-
result = imul(result, 31) + (this.
|
|
1754
|
+
var result = hashCode(this.t5n_1);
|
|
1755
|
+
result = imul(result, 31) + getStringHashCode(this.u5n_1) | 0;
|
|
1756
|
+
result = imul(result, 31) + (this.v5n_1 == null ? 0 : getStringHashCode(this.v5n_1)) | 0;
|
|
1762
1757
|
return result;
|
|
1763
1758
|
};
|
|
1764
1759
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1767,11 +1762,11 @@
|
|
|
1767
1762
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1768
1763
|
return false;
|
|
1769
1764
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1770
|
-
if (!equals(this.
|
|
1765
|
+
if (!equals(this.t5n_1, tmp0_other_with_cast.t5n_1))
|
|
1771
1766
|
return false;
|
|
1772
|
-
if (!(this.
|
|
1767
|
+
if (!(this.u5n_1 === tmp0_other_with_cast.u5n_1))
|
|
1773
1768
|
return false;
|
|
1774
|
-
if (!(this.
|
|
1769
|
+
if (!(this.v5n_1 == tmp0_other_with_cast.v5n_1))
|
|
1775
1770
|
return false;
|
|
1776
1771
|
return true;
|
|
1777
1772
|
};
|
|
@@ -1790,7 +1785,7 @@
|
|
|
1790
1785
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1791
1786
|
}
|
|
1792
1787
|
function Companion_8() {
|
|
1793
|
-
this.
|
|
1788
|
+
this.j5o_1 = 52;
|
|
1794
1789
|
}
|
|
1795
1790
|
var Companion_instance_10;
|
|
1796
1791
|
function Companion_getInstance_11() {
|
|
@@ -1798,13 +1793,13 @@
|
|
|
1798
1793
|
}
|
|
1799
1794
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1800
1795
|
CoroutineImpl.call(this, resultContinuation);
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1803
|
-
this.
|
|
1804
|
-
this.
|
|
1805
|
-
this.
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1796
|
+
this.s5o_1 = _this__u8e3s4;
|
|
1797
|
+
this.t5o_1 = min;
|
|
1798
|
+
this.u5o_1 = max;
|
|
1799
|
+
this.v5o_1 = decksCount;
|
|
1800
|
+
this.w5o_1 = cardsCount;
|
|
1801
|
+
this.x5o_1 = userData;
|
|
1802
|
+
this.y5o_1 = signed;
|
|
1808
1803
|
}
|
|
1809
1804
|
protoOf($getRandomCardDecksCOROUTINE$1).n9 = function () {
|
|
1810
1805
|
var suspendResult = this.h9_1;
|
|
@@ -1816,30 +1811,30 @@
|
|
|
1816
1811
|
this.g9_1 = 6;
|
|
1817
1812
|
this.g9_1 = 5;
|
|
1818
1813
|
var tmp_0 = this;
|
|
1819
|
-
tmp_0.
|
|
1814
|
+
tmp_0.z5o_1 = this.s5o_1.i5p_1;
|
|
1820
1815
|
var tmp_1 = this;
|
|
1821
|
-
tmp_1.
|
|
1816
|
+
tmp_1.a5p_1 = this.z5o_1;
|
|
1822
1817
|
var tmp_2 = this;
|
|
1823
1818
|
var this_0 = new HttpRequestBuilder();
|
|
1824
1819
|
url(this_0, '/json-rpc/4/invoke');
|
|
1825
|
-
var tmp11_id = this.
|
|
1826
|
-
var tmp12_method = this.
|
|
1827
|
-
var tmp8_apiKey = this.
|
|
1828
|
-
var size = this.
|
|
1820
|
+
var tmp11_id = this.x5o_1.id;
|
|
1821
|
+
var tmp12_method = this.y5o_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1822
|
+
var tmp8_apiKey = this.s5o_1.j5p_1;
|
|
1823
|
+
var size = this.v5o_1;
|
|
1829
1824
|
var list = ArrayList_init_$Create$(size);
|
|
1830
1825
|
var inductionVariable = 0;
|
|
1831
1826
|
if (inductionVariable < size)
|
|
1832
1827
|
do {
|
|
1833
1828
|
var index = inductionVariable;
|
|
1834
1829
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1835
|
-
list.e(this.
|
|
1830
|
+
list.e(this.w5o_1);
|
|
1836
1831
|
}
|
|
1837
1832
|
while (inductionVariable < size);
|
|
1838
|
-
var tmp10_userData = this.
|
|
1839
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1833
|
+
var tmp10_userData = this.y5o_1 ? mapToDto(this.x5o_1) : null;
|
|
1834
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.v5o_1, list, this.t5o_1, this.u5o_1, false, null, tmp10_userData);
|
|
1840
1835
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1841
1836
|
if (body == null) {
|
|
1842
|
-
this_0.
|
|
1837
|
+
this_0.k2u_1 = NullBody_instance;
|
|
1843
1838
|
var tmp_3 = JsType_instance;
|
|
1844
1839
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1845
1840
|
var tmp_5;
|
|
@@ -1855,13 +1850,13 @@
|
|
|
1855
1850
|
}
|
|
1856
1851
|
tmp_5 = tmp_6;
|
|
1857
1852
|
}
|
|
1858
|
-
this_0.
|
|
1853
|
+
this_0.g30(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1859
1854
|
} else {
|
|
1860
1855
|
if (body instanceof OutgoingContent) {
|
|
1861
|
-
this_0.
|
|
1862
|
-
this_0.
|
|
1856
|
+
this_0.k2u_1 = body;
|
|
1857
|
+
this_0.g30(null);
|
|
1863
1858
|
} else {
|
|
1864
|
-
this_0.
|
|
1859
|
+
this_0.k2u_1 = body;
|
|
1865
1860
|
var tmp_7 = JsType_instance;
|
|
1866
1861
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1867
1862
|
var tmp_9;
|
|
@@ -1877,29 +1872,29 @@
|
|
|
1877
1872
|
}
|
|
1878
1873
|
tmp_9 = tmp_10;
|
|
1879
1874
|
}
|
|
1880
|
-
this_0.
|
|
1875
|
+
this_0.g30(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1881
1876
|
}
|
|
1882
1877
|
}
|
|
1883
1878
|
|
|
1884
|
-
tmp_2.
|
|
1885
|
-
this.
|
|
1879
|
+
tmp_2.b5p_1 = this_0;
|
|
1880
|
+
this.b5p_1.i2u_1 = Companion_getInstance().y2i_1;
|
|
1886
1881
|
var tmp_11 = this;
|
|
1887
|
-
tmp_11.
|
|
1882
|
+
tmp_11.c5p_1 = this.a5p_1;
|
|
1888
1883
|
var tmp_12 = this;
|
|
1889
|
-
tmp_12.
|
|
1884
|
+
tmp_12.d5p_1 = this.b5p_1;
|
|
1890
1885
|
this.f9_1 = 1;
|
|
1891
|
-
suspendResult = (new HttpStatement(this.
|
|
1886
|
+
suspendResult = (new HttpStatement(this.d5p_1, this.c5p_1)).q3n(this);
|
|
1892
1887
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1893
1888
|
return suspendResult;
|
|
1894
1889
|
}
|
|
1895
1890
|
|
|
1896
1891
|
continue $sm;
|
|
1897
1892
|
case 1:
|
|
1898
|
-
this.
|
|
1893
|
+
this.e5p_1 = suspendResult;
|
|
1899
1894
|
var tmp_13 = this;
|
|
1900
|
-
tmp_13.
|
|
1895
|
+
tmp_13.f5p_1 = this.e5p_1;
|
|
1901
1896
|
this.f9_1 = 2;
|
|
1902
|
-
var tmp_14 = this.
|
|
1897
|
+
var tmp_14 = this.f5p_1.p2x();
|
|
1903
1898
|
var tmp_15 = JsType_instance;
|
|
1904
1899
|
var tmp_16 = getKClass(JsonObject);
|
|
1905
1900
|
var tmp_17;
|
|
@@ -1916,7 +1911,7 @@
|
|
|
1916
1911
|
tmp_17 = tmp_18;
|
|
1917
1912
|
}
|
|
1918
1913
|
|
|
1919
|
-
suspendResult = tmp_14.
|
|
1914
|
+
suspendResult = tmp_14.t2w(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1920
1915
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1921
1916
|
return suspendResult;
|
|
1922
1917
|
}
|
|
@@ -1924,9 +1919,9 @@
|
|
|
1924
1919
|
continue $sm;
|
|
1925
1920
|
case 2:
|
|
1926
1921
|
var tmp_19 = this;
|
|
1927
|
-
tmp_19.
|
|
1922
|
+
tmp_19.g5p_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1928
1923
|
this.f9_1 = 3;
|
|
1929
|
-
suspendResult = throwIfError(this.
|
|
1924
|
+
suspendResult = throwIfError(this.s5o_1, this.g5p_1, this.e5p_1, this);
|
|
1930
1925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1931
1926
|
return suspendResult;
|
|
1932
1927
|
}
|
|
@@ -1934,9 +1929,9 @@
|
|
|
1934
1929
|
continue $sm;
|
|
1935
1930
|
case 3:
|
|
1936
1931
|
var tmp_20 = this;
|
|
1937
|
-
tmp_20.
|
|
1932
|
+
tmp_20.h5p_1 = this.e5p_1;
|
|
1938
1933
|
this.f9_1 = 4;
|
|
1939
|
-
var tmp_21 = this.
|
|
1934
|
+
var tmp_21 = this.h5p_1.p2x();
|
|
1940
1935
|
var tmp_22 = JsType_instance;
|
|
1941
1936
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1942
1937
|
var tmp_24;
|
|
@@ -1953,7 +1948,7 @@
|
|
|
1953
1948
|
tmp_24 = tmp_25;
|
|
1954
1949
|
}
|
|
1955
1950
|
|
|
1956
|
-
suspendResult = tmp_21.
|
|
1951
|
+
suspendResult = tmp_21.t2w(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1957
1952
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1958
1953
|
return suspendResult;
|
|
1959
1954
|
}
|
|
@@ -1961,10 +1956,10 @@
|
|
|
1961
1956
|
continue $sm;
|
|
1962
1957
|
case 4:
|
|
1963
1958
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1964
|
-
var randomJson = extractRandomResult(this.
|
|
1965
|
-
var tmp14_cardDecks = responseDto.
|
|
1966
|
-
var tmp15_signature = responseDto.
|
|
1967
|
-
var tmp16_id = responseDto.
|
|
1959
|
+
var randomJson = extractRandomResult(this.s5o_1, this.g5p_1);
|
|
1960
|
+
var tmp14_cardDecks = responseDto.g5n_1.k5n_1.t5n_1;
|
|
1961
|
+
var tmp15_signature = responseDto.g5n_1.l5n_1;
|
|
1962
|
+
var tmp16_id = responseDto.h5n_1;
|
|
1968
1963
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1969
1964
|
case 5:
|
|
1970
1965
|
this.g9_1 = 6;
|
|
@@ -1996,9 +1991,9 @@
|
|
|
1996
1991
|
};
|
|
1997
1992
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1998
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
2001
|
-
this.
|
|
1994
|
+
this.f5o_1 = _this__u8e3s4;
|
|
1995
|
+
this.g5o_1 = bodyAsJson;
|
|
1996
|
+
this.h5o_1 = response;
|
|
2002
1997
|
}
|
|
2003
1998
|
protoOf($throwIfErrorCOROUTINE$2).n9 = function () {
|
|
2004
1999
|
var suspendResult = this.h9_1;
|
|
@@ -2008,12 +2003,12 @@
|
|
|
2008
2003
|
switch (tmp) {
|
|
2009
2004
|
case 0:
|
|
2010
2005
|
this.g9_1 = 3;
|
|
2011
|
-
var this_0 = this.
|
|
2006
|
+
var this_0 = this.g5o_1;
|
|
2012
2007
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2013
2008
|
var tmp_0 = this;
|
|
2014
|
-
tmp_0.
|
|
2009
|
+
tmp_0.i5o_1 = this.h5o_1;
|
|
2015
2010
|
this.f9_1 = 2;
|
|
2016
|
-
var tmp_1 = this.
|
|
2011
|
+
var tmp_1 = this.i5o_1.p2x();
|
|
2017
2012
|
var tmp_2 = JsType_instance;
|
|
2018
2013
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2019
2014
|
var tmp_4;
|
|
@@ -2029,7 +2024,7 @@
|
|
|
2029
2024
|
}
|
|
2030
2025
|
tmp_4 = tmp_5;
|
|
2031
2026
|
}
|
|
2032
|
-
suspendResult = tmp_1.
|
|
2027
|
+
suspendResult = tmp_1.t2w(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2033
2028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2034
2029
|
return suspendResult;
|
|
2035
2030
|
}
|
|
@@ -2043,10 +2038,10 @@
|
|
|
2043
2038
|
return Unit_instance;
|
|
2044
2039
|
case 2:
|
|
2045
2040
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2046
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2047
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2048
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2049
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2041
|
+
var tmp18_safe_receiver = errorResponseDto.y5l_1;
|
|
2042
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.b5m_1;
|
|
2043
|
+
var tmp19_safe_receiver = errorResponseDto.y5l_1;
|
|
2044
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.c5m_1);
|
|
2050
2045
|
case 3:
|
|
2051
2046
|
throw this.i9_1;
|
|
2052
2047
|
}
|
|
@@ -2062,19 +2057,18 @@
|
|
|
2062
2057
|
while (true);
|
|
2063
2058
|
};
|
|
2064
2059
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2065
|
-
this.
|
|
2066
|
-
this.
|
|
2060
|
+
this.i5p_1 = client;
|
|
2061
|
+
this.j5p_1 = apiKey;
|
|
2067
2062
|
}
|
|
2068
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2063
|
+
protoOf(RandomOrgApiServiceImpl).w5n = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2069
2064
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2070
2065
|
tmp.h9_1 = Unit_instance;
|
|
2071
2066
|
tmp.i9_1 = null;
|
|
2072
2067
|
return tmp.n9();
|
|
2073
2068
|
};
|
|
2074
|
-
function PoolParams(poolSize, thresholdForUsedPool,
|
|
2069
|
+
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2075
2070
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
2076
2071
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? 3 : thresholdForUsedPool;
|
|
2077
|
-
requestDurationWarn = requestDurationWarn === VOID ? 3000 : requestDurationWarn;
|
|
2078
2072
|
failedRequestAttempts = failedRequestAttempts === VOID ? 3 : failedRequestAttempts;
|
|
2079
2073
|
var tmp;
|
|
2080
2074
|
if (failedAttemptCooldown === VOID) {
|
|
@@ -2088,23 +2082,19 @@
|
|
|
2088
2082
|
failedAttemptCooldown = tmp;
|
|
2089
2083
|
this.poolSize = poolSize;
|
|
2090
2084
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
2091
|
-
this.requestDurationWarn = requestDurationWarn;
|
|
2092
2085
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2093
2086
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2094
2087
|
}
|
|
2095
|
-
protoOf(PoolParams).
|
|
2088
|
+
protoOf(PoolParams).r5l = function () {
|
|
2096
2089
|
return this.poolSize;
|
|
2097
2090
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2091
|
+
protoOf(PoolParams).s5l = function () {
|
|
2099
2092
|
return this.thresholdForUsedPool;
|
|
2100
2093
|
};
|
|
2101
|
-
protoOf(PoolParams).
|
|
2102
|
-
return this.requestDurationWarn;
|
|
2103
|
-
};
|
|
2104
|
-
protoOf(PoolParams).y5p = function () {
|
|
2094
|
+
protoOf(PoolParams).k5p = function () {
|
|
2105
2095
|
return this.failedRequestAttempts;
|
|
2106
2096
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2097
|
+
protoOf(PoolParams).l5p = function () {
|
|
2108
2098
|
return this.failedAttemptCooldown;
|
|
2109
2099
|
};
|
|
2110
2100
|
protoOf(PoolParams).qe = function () {
|
|
@@ -2114,32 +2104,27 @@
|
|
|
2114
2104
|
return this.thresholdForUsedPool;
|
|
2115
2105
|
};
|
|
2116
2106
|
protoOf(PoolParams).ik = function () {
|
|
2117
|
-
return this.requestDurationWarn;
|
|
2118
|
-
};
|
|
2119
|
-
protoOf(PoolParams).w5l = function () {
|
|
2120
2107
|
return this.failedRequestAttempts;
|
|
2121
2108
|
};
|
|
2122
|
-
protoOf(PoolParams).
|
|
2109
|
+
protoOf(PoolParams).m5p = function () {
|
|
2123
2110
|
return this.failedAttemptCooldown;
|
|
2124
2111
|
};
|
|
2125
|
-
protoOf(PoolParams).
|
|
2126
|
-
return new PoolParams(poolSize, thresholdForUsedPool,
|
|
2112
|
+
protoOf(PoolParams).n5p = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2113
|
+
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2127
2114
|
};
|
|
2128
|
-
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool,
|
|
2115
|
+
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
2129
2116
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
2130
2117
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2131
|
-
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2132
2118
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2133
2119
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2134
|
-
return this.
|
|
2120
|
+
return this.n5p(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2135
2121
|
};
|
|
2136
2122
|
protoOf(PoolParams).toString = function () {
|
|
2137
|
-
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ',
|
|
2123
|
+
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
2138
2124
|
};
|
|
2139
2125
|
protoOf(PoolParams).hashCode = function () {
|
|
2140
2126
|
var result = this.poolSize;
|
|
2141
2127
|
result = imul(result, 31) + this.thresholdForUsedPool | 0;
|
|
2142
|
-
result = imul(result, 31) + this.requestDurationWarn | 0;
|
|
2143
2128
|
result = imul(result, 31) + this.failedRequestAttempts | 0;
|
|
2144
2129
|
result = imul(result, 31) + Duration__hashCode_impl_u4exz6(this.failedAttemptCooldown) | 0;
|
|
2145
2130
|
return result;
|
|
@@ -2154,8 +2139,6 @@
|
|
|
2154
2139
|
return false;
|
|
2155
2140
|
if (!(this.thresholdForUsedPool === tmp0_other_with_cast.thresholdForUsedPool))
|
|
2156
2141
|
return false;
|
|
2157
|
-
if (!(this.requestDurationWarn === tmp0_other_with_cast.requestDurationWarn))
|
|
2158
|
-
return false;
|
|
2159
2142
|
if (!(this.failedRequestAttempts === tmp0_other_with_cast.failedRequestAttempts))
|
|
2160
2143
|
return false;
|
|
2161
2144
|
if (!equals(this.failedAttemptCooldown, tmp0_other_with_cast.failedAttemptCooldown))
|
|
@@ -2164,78 +2147,75 @@
|
|
|
2164
2147
|
};
|
|
2165
2148
|
function RandomPoolProvider() {
|
|
2166
2149
|
}
|
|
2150
|
+
function _get_cardDecksCount__ihvb5i($this) {
|
|
2151
|
+
return $this.r5p_1.b5l_1.m();
|
|
2152
|
+
}
|
|
2167
2153
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2168
2154
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2169
2155
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2170
2156
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2157
|
+
this.r5p_1 = randomResult;
|
|
2158
|
+
this.s5p_1 = usedByGames;
|
|
2159
|
+
this.t5p_1 = reservedCardDecks;
|
|
2160
|
+
this.u5p_1 = isUsed;
|
|
2175
2161
|
}
|
|
2176
|
-
protoOf(RandomPoolValue).
|
|
2177
|
-
|
|
2178
|
-
};
|
|
2179
|
-
protoOf(RandomPoolValue).k5q = function (minRoundsCount) {
|
|
2180
|
-
if (this.i5q_1) {
|
|
2162
|
+
protoOf(RandomPoolValue).v5p = function (minRoundsCount) {
|
|
2163
|
+
if (this.u5p_1) {
|
|
2181
2164
|
return false;
|
|
2182
2165
|
}
|
|
2183
|
-
var availableCount = this
|
|
2166
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.t5p_1 | 0;
|
|
2184
2167
|
return availableCount >= minRoundsCount;
|
|
2185
2168
|
};
|
|
2186
|
-
protoOf(RandomPoolValue).
|
|
2187
|
-
var
|
|
2169
|
+
protoOf(RandomPoolValue).w5p = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2170
|
+
var previousReservedCardDeckIndex = this.t5p_1;
|
|
2188
2171
|
// Inline function 'kotlin.apply' call
|
|
2189
|
-
var this_0 = toMutableMap(this.
|
|
2172
|
+
var this_0 = toMutableMap(this.s5p_1);
|
|
2190
2173
|
// Inline function 'kotlin.contracts.contract' call
|
|
2191
2174
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2192
|
-
this_0.k2(gameId,
|
|
2175
|
+
this_0.k2(gameId, previousReservedCardDeckIndex);
|
|
2193
2176
|
var newNewUsedBy = toMap(this_0);
|
|
2194
|
-
var newReservedCardDecks =
|
|
2195
|
-
return this.
|
|
2177
|
+
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2178
|
+
return this.x5p(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2196
2179
|
};
|
|
2197
|
-
protoOf(RandomPoolValue).
|
|
2198
|
-
var currentCardDeckIndex = getValue(this.
|
|
2180
|
+
protoOf(RandomPoolValue).y5p = function (gameId) {
|
|
2181
|
+
var currentCardDeckIndex = getValue(this.s5p_1, gameId);
|
|
2199
2182
|
var tmp;
|
|
2200
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2183
|
+
if (currentCardDeckIndex === get_lastIndex(this.r5p_1.b5l_1)) {
|
|
2201
2184
|
tmp = 0;
|
|
2202
2185
|
} else {
|
|
2203
2186
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2204
2187
|
}
|
|
2205
2188
|
var newCardDeckIndex = tmp;
|
|
2206
2189
|
// Inline function 'kotlin.apply' call
|
|
2207
|
-
var this_0 = toMutableMap(this.
|
|
2190
|
+
var this_0 = toMutableMap(this.s5p_1);
|
|
2208
2191
|
// Inline function 'kotlin.contracts.contract' call
|
|
2209
2192
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2210
2193
|
this_0.k2(gameId, newCardDeckIndex);
|
|
2211
2194
|
var newNewUsedBy = toMap(this_0);
|
|
2212
|
-
return this.
|
|
2195
|
+
return this.x5p(VOID, newNewUsedBy);
|
|
2213
2196
|
};
|
|
2214
|
-
protoOf(RandomPoolValue).
|
|
2215
|
-
|
|
2197
|
+
protoOf(RandomPoolValue).z5p = function (gameId) {
|
|
2198
|
+
var index = getValue(this.s5p_1, gameId);
|
|
2199
|
+
return new GameCardDeckData(index, this.r5p_1.b5l_1.o(index));
|
|
2216
2200
|
};
|
|
2217
|
-
protoOf(RandomPoolValue).
|
|
2218
|
-
var index = getValue(this.g5q_1, gameId);
|
|
2219
|
-
return new GameCardDeckData(index, this.f5q_1.o5l_1.o(index));
|
|
2220
|
-
};
|
|
2221
|
-
protoOf(RandomPoolValue).q5q = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2201
|
+
protoOf(RandomPoolValue).a5q = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2222
2202
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2223
2203
|
};
|
|
2224
|
-
protoOf(RandomPoolValue).
|
|
2225
|
-
randomResult = randomResult === VOID ? this.
|
|
2226
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2227
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2228
|
-
isUsed = isUsed === VOID ? this.
|
|
2229
|
-
return $super === VOID ? this.
|
|
2204
|
+
protoOf(RandomPoolValue).x5p = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2205
|
+
randomResult = randomResult === VOID ? this.r5p_1 : randomResult;
|
|
2206
|
+
usedByGames = usedByGames === VOID ? this.s5p_1 : usedByGames;
|
|
2207
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.t5p_1 : reservedCardDecks;
|
|
2208
|
+
isUsed = isUsed === VOID ? this.u5p_1 : isUsed;
|
|
2209
|
+
return $super === VOID ? this.a5q(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.a5q.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2230
2210
|
};
|
|
2231
2211
|
protoOf(RandomPoolValue).toString = function () {
|
|
2232
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2212
|
+
return 'RandomPoolValue(randomResult=' + this.r5p_1.toString() + ', usedByGames=' + toString(this.s5p_1) + ', reservedCardDecks=' + this.t5p_1 + ', isUsed=' + this.u5p_1 + ')';
|
|
2233
2213
|
};
|
|
2234
2214
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2235
|
-
var result = this.
|
|
2236
|
-
result = imul(result, 31) + hashCode(this.
|
|
2237
|
-
result = imul(result, 31) + this.
|
|
2238
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2215
|
+
var result = this.r5p_1.hashCode();
|
|
2216
|
+
result = imul(result, 31) + hashCode(this.s5p_1) | 0;
|
|
2217
|
+
result = imul(result, 31) + this.t5p_1 | 0;
|
|
2218
|
+
result = imul(result, 31) + getBooleanHashCode(this.u5p_1) | 0;
|
|
2239
2219
|
return result;
|
|
2240
2220
|
};
|
|
2241
2221
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2244,94 +2224,64 @@
|
|
|
2244
2224
|
if (!(other instanceof RandomPoolValue))
|
|
2245
2225
|
return false;
|
|
2246
2226
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2247
|
-
if (!this.
|
|
2227
|
+
if (!this.r5p_1.equals(tmp0_other_with_cast.r5p_1))
|
|
2248
2228
|
return false;
|
|
2249
|
-
if (!equals(this.
|
|
2229
|
+
if (!equals(this.s5p_1, tmp0_other_with_cast.s5p_1))
|
|
2250
2230
|
return false;
|
|
2251
|
-
if (!(this.
|
|
2231
|
+
if (!(this.t5p_1 === tmp0_other_with_cast.t5p_1))
|
|
2252
2232
|
return false;
|
|
2253
|
-
if (!(this.
|
|
2233
|
+
if (!(this.u5p_1 === tmp0_other_with_cast.u5p_1))
|
|
2254
2234
|
return false;
|
|
2255
2235
|
return true;
|
|
2256
2236
|
};
|
|
2257
|
-
function
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
this.
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
var tmp = this.r1d($this$withTimeout, $completion);
|
|
2269
|
-
tmp.h9_1 = Unit_instance;
|
|
2270
|
-
tmp.i9_1 = null;
|
|
2271
|
-
var tmp_0 = tmp.n9();
|
|
2272
|
-
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2273
|
-
return tmp_0;
|
|
2274
|
-
return tmp_0;
|
|
2275
|
-
};
|
|
2276
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).x9 = function (p1, $completion) {
|
|
2277
|
-
return this.h5r((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2278
|
-
};
|
|
2279
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).n9 = function () {
|
|
2280
|
-
var suspendResult = this.h9_1;
|
|
2281
|
-
$sm: do
|
|
2282
|
-
try {
|
|
2283
|
-
var tmp = this.f9_1;
|
|
2284
|
-
switch (tmp) {
|
|
2285
|
-
case 0:
|
|
2286
|
-
this.g9_1 = 2;
|
|
2287
|
-
this.f9_1 = 1;
|
|
2288
|
-
suspendResult = getOrLoadGameCardDeckData(this.z5q_1, this.a5r_1, this.b5r_1, this.c5r_1, this.d5r_1, this.e5r_1, this.f5r_1, this);
|
|
2289
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2290
|
-
return suspendResult;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
continue $sm;
|
|
2294
|
-
case 1:
|
|
2295
|
-
var cardDeckData = suspendResult;
|
|
2296
|
-
return new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2297
|
-
case 2:
|
|
2298
|
-
throw this.i9_1;
|
|
2299
|
-
}
|
|
2300
|
-
} catch ($p) {
|
|
2301
|
-
var e = $p;
|
|
2302
|
-
if (this.g9_1 === 2) {
|
|
2303
|
-
throw e;
|
|
2304
|
-
} else {
|
|
2305
|
-
this.f9_1 = this.g9_1;
|
|
2306
|
-
this.i9_1 = e;
|
|
2307
|
-
}
|
|
2237
|
+
function getExceptionIfCooldown($this) {
|
|
2238
|
+
var failedAttemptTime = $this.j5q_1;
|
|
2239
|
+
var currentTime = System_instance.i54();
|
|
2240
|
+
if (!(failedAttemptTime == null) && $this.k5q_1 >= $this.b5q_1.failedRequestAttempts) {
|
|
2241
|
+
var allowedRequestTime = failedAttemptTime.w5j($this.b5q_1.failedAttemptCooldown);
|
|
2242
|
+
if (allowedRequestTime.a5k(currentTime) > 0) {
|
|
2243
|
+
var exception = new RandomException(VOID, 'getCardDeck: cooldown ends in ' + allowedRequestTime.toString() + ', ' + ('failedAttemptTime = ' + toString_0(failedAttemptTime) + ', ') + ('currentTime = ' + currentTime.toString()));
|
|
2244
|
+
return exception;
|
|
2245
|
+
} else {
|
|
2246
|
+
$this.j5q_1 = null;
|
|
2247
|
+
$this.k5q_1 = 0;
|
|
2308
2248
|
}
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
var
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2249
|
+
}
|
|
2250
|
+
return null;
|
|
2251
|
+
}
|
|
2252
|
+
function mapToRandomExceptionIfError($this, error) {
|
|
2253
|
+
$this.j5q_1 = System_instance.i54();
|
|
2254
|
+
$this.k5q_1 = $this.k5q_1 + 1 | 0;
|
|
2255
|
+
var tmp = 'getCardDeck: error message = ' + error.message + ', ';
|
|
2256
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2257
|
+
var value = $this.j5q_1;
|
|
2258
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2259
|
+
var tmp$ret$1;
|
|
2260
|
+
$l$block: {
|
|
2261
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2262
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2263
|
+
if (value == null) {
|
|
2264
|
+
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
2265
|
+
var message = 'Required value was null.';
|
|
2266
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2267
|
+
} else {
|
|
2268
|
+
tmp$ret$1 = value;
|
|
2269
|
+
break $l$block;
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
var tmp$ret$2 = tmp$ret$1;
|
|
2273
|
+
var randomException = new RandomException(VOID, tmp + ('cooldown ends in ' + tmp$ret$2.w5j($this.b5q_1.failedAttemptCooldown).toString() + ', ') + ('currentTime = ' + toString_0($this.j5q_1)), error);
|
|
2274
|
+
$this.d5q_1.w('RandomPoolProvider', VOID, randomException);
|
|
2275
|
+
return randomException;
|
|
2323
2276
|
}
|
|
2324
|
-
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
|
|
2325
|
-
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
|
|
2277
|
+
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2278
|
+
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2326
2279
|
tmp.h9_1 = Unit_instance;
|
|
2327
2280
|
tmp.i9_1 = null;
|
|
2328
2281
|
return tmp.n9();
|
|
2329
2282
|
}
|
|
2330
|
-
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2331
|
-
return withContext($this.b5s_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2332
|
-
}
|
|
2333
2283
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2334
|
-
var existingCardDeck = $this.
|
|
2284
|
+
var existingCardDeck = $this.i5q_1.h2(userData.gameId);
|
|
2335
2285
|
var tmp;
|
|
2336
2286
|
if (!(existingCardDeck == null)) {
|
|
2337
2287
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2340,16 +2290,20 @@
|
|
|
2340
2290
|
}
|
|
2341
2291
|
return tmp;
|
|
2342
2292
|
}
|
|
2343
|
-
function
|
|
2344
|
-
var tmp = new $
|
|
2293
|
+
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2294
|
+
var tmp = new $getPreparedOrRequestPoolCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2345
2295
|
tmp.h9_1 = Unit_instance;
|
|
2346
2296
|
tmp.i9_1 = null;
|
|
2347
2297
|
return tmp.n9();
|
|
2348
2298
|
}
|
|
2299
|
+
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2300
|
+
return withContext($this.e5q_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2301
|
+
}
|
|
2349
2302
|
function Companion_9() {
|
|
2350
|
-
this.
|
|
2351
|
-
this.
|
|
2352
|
-
this.
|
|
2303
|
+
this.u5r_1 = 100;
|
|
2304
|
+
this.v5r_1 = 3;
|
|
2305
|
+
this.w5r_1 = 3000;
|
|
2306
|
+
this.x5r_1 = 10000;
|
|
2353
2307
|
}
|
|
2354
2308
|
var Companion_instance_11;
|
|
2355
2309
|
function Companion_getInstance_12() {
|
|
@@ -2358,19 +2312,19 @@
|
|
|
2358
2312
|
function RandomPoolProviderImpl$_init_$lambda_f6qzy3() {
|
|
2359
2313
|
return uuid4().toString();
|
|
2360
2314
|
}
|
|
2361
|
-
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $
|
|
2362
|
-
this.
|
|
2363
|
-
this.
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2366
|
-
this.
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2315
|
+
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2316
|
+
this.g5s_1 = this$0;
|
|
2317
|
+
this.h5s_1 = $minRoundsCountInPool;
|
|
2318
|
+
this.i5s_1 = $userData;
|
|
2319
|
+
this.j5s_1 = $min;
|
|
2320
|
+
this.k5s_1 = $max;
|
|
2321
|
+
this.l5s_1 = $cardsCount;
|
|
2322
|
+
this.m5s_1 = $signed;
|
|
2323
|
+
this.n5s_1 = $requestDurationWarnMillis;
|
|
2370
2324
|
CoroutineImpl.call(this, resultContinuation);
|
|
2371
2325
|
}
|
|
2372
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2373
|
-
var tmp = this.
|
|
2326
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).u5s = function ($this$withContext, $completion) {
|
|
2327
|
+
var tmp = this.e1d($this$withContext, $completion);
|
|
2374
2328
|
tmp.h9_1 = Unit_instance;
|
|
2375
2329
|
tmp.i9_1 = null;
|
|
2376
2330
|
var tmp_0 = tmp.n9();
|
|
@@ -2379,7 +2333,7 @@
|
|
|
2379
2333
|
return tmp_0;
|
|
2380
2334
|
};
|
|
2381
2335
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).x9 = function (p1, $completion) {
|
|
2382
|
-
return this.
|
|
2336
|
+
return this.u5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2383
2337
|
};
|
|
2384
2338
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).n9 = function () {
|
|
2385
2339
|
var suspendResult = this.h9_1;
|
|
@@ -2388,118 +2342,90 @@
|
|
|
2388
2342
|
var tmp = this.f9_1;
|
|
2389
2343
|
switch (tmp) {
|
|
2390
2344
|
case 0:
|
|
2391
|
-
this.g9_1 =
|
|
2345
|
+
this.g9_1 = 10;
|
|
2392
2346
|
var tmp_0 = this;
|
|
2393
|
-
tmp_0.
|
|
2347
|
+
tmp_0.p5s_1 = this.g5s_1.g5q_1;
|
|
2394
2348
|
var tmp_1 = this;
|
|
2395
|
-
tmp_1.
|
|
2349
|
+
tmp_1.q5s_1 = null;
|
|
2396
2350
|
this.f9_1 = 1;
|
|
2397
|
-
suspendResult = this.
|
|
2351
|
+
suspendResult = this.p5s_1.a1l(this.q5s_1, this);
|
|
2398
2352
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2399
2353
|
return suspendResult;
|
|
2400
2354
|
}
|
|
2401
2355
|
|
|
2402
2356
|
continue $sm;
|
|
2403
2357
|
case 1:
|
|
2404
|
-
this.
|
|
2358
|
+
this.r5s_1 = Unit_instance;
|
|
2405
2359
|
this.f9_1 = 2;
|
|
2406
2360
|
continue $sm;
|
|
2407
2361
|
case 2:
|
|
2408
|
-
this.g9_1 =
|
|
2409
|
-
this.
|
|
2362
|
+
this.g9_1 = 9;
|
|
2363
|
+
this.s5s_1 = Unit_instance;
|
|
2410
2364
|
this.f9_1 = 3;
|
|
2411
2365
|
continue $sm;
|
|
2412
2366
|
case 3:
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
var exception = this.a5u_1;
|
|
2421
|
-
tmp_2.w5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2422
|
-
this.f9_1 = 8;
|
|
2423
|
-
continue $sm;
|
|
2424
|
-
} else {
|
|
2425
|
-
this.k5t_1.g5s_1 = null;
|
|
2426
|
-
this.k5t_1.h5s_1 = 0;
|
|
2427
|
-
this.f9_1 = 4;
|
|
2428
|
-
continue $sm;
|
|
2429
|
-
}
|
|
2367
|
+
this.t5s_1 = getExceptionIfCooldown(this.g5s_1);
|
|
2368
|
+
if (!(this.t5s_1 == null)) {
|
|
2369
|
+
var tmp_2 = this;
|
|
2370
|
+
var exception = this.t5s_1;
|
|
2371
|
+
tmp_2.s5s_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2372
|
+
this.f9_1 = 7;
|
|
2373
|
+
continue $sm;
|
|
2430
2374
|
} else {
|
|
2431
|
-
this.f9_1 =
|
|
2375
|
+
this.f9_1 = 4;
|
|
2432
2376
|
continue $sm;
|
|
2433
2377
|
}
|
|
2434
2378
|
|
|
2435
2379
|
case 4:
|
|
2380
|
+
this.g9_1 = 6;
|
|
2436
2381
|
this.f9_1 = 5;
|
|
2437
|
-
|
|
2438
|
-
case 5:
|
|
2439
|
-
this.g9_1 = 7;
|
|
2440
|
-
this.f9_1 = 6;
|
|
2441
|
-
suspendResult = withTimeout(this.l5t_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.k5t_1, this.m5t_1, this.n5t_1, this.o5t_1, this.p5t_1, this.q5t_1, this.r5t_1, null), this);
|
|
2382
|
+
suspendResult = getOrLoadGameCardDeckData(this.g5s_1, this.h5s_1, this.i5s_1, this.j5s_1, this.k5s_1, this.l5s_1, this.m5s_1, this.n5s_1, this);
|
|
2442
2383
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2443
2384
|
return suspendResult;
|
|
2444
2385
|
}
|
|
2445
2386
|
|
|
2446
2387
|
continue $sm;
|
|
2447
|
-
case
|
|
2448
|
-
|
|
2449
|
-
|
|
2388
|
+
case 5:
|
|
2389
|
+
var cardDeckData = suspendResult;
|
|
2390
|
+
var tmp_3 = this;
|
|
2391
|
+
tmp_3.s5s_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2392
|
+
this.f9_1 = 7;
|
|
2450
2393
|
continue $sm;
|
|
2451
|
-
case
|
|
2452
|
-
this.g9_1 =
|
|
2453
|
-
var
|
|
2454
|
-
if (
|
|
2394
|
+
case 6:
|
|
2395
|
+
this.g9_1 = 9;
|
|
2396
|
+
var tmp_4 = this.i9_1;
|
|
2397
|
+
if (tmp_4 instanceof Error) {
|
|
2455
2398
|
var error = this.i9_1;
|
|
2456
|
-
this.k5t_1.g5s_1 = this.y5t_1;
|
|
2457
|
-
var _unary__edvuaz = this.k5t_1.h5s_1;
|
|
2458
|
-
this.k5t_1.h5s_1 = _unary__edvuaz + 1 | 0;
|
|
2459
|
-
var tmp_4 = 'getCardDeck: error message = ' + error.message + ', ';
|
|
2460
|
-
var value = this.k5t_1.g5s_1;
|
|
2461
|
-
var tmp$ret$2 = Unit_instance;
|
|
2462
|
-
l$ret$3: do {
|
|
2463
|
-
if (value == null) {
|
|
2464
|
-
var message = 'Required value was null.';
|
|
2465
|
-
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2466
|
-
} else {
|
|
2467
|
-
tmp$ret$2 = value;
|
|
2468
|
-
break l$ret$3;
|
|
2469
|
-
}
|
|
2470
|
-
}
|
|
2471
|
-
while (false);
|
|
2472
|
-
var exception_0 = new RandomException(VOID, tmp_4 + ('cooldown ends in ' + tmp$ret$2.j5k(this.k5t_1.y5r_1.failedAttemptCooldown).toString() + ', ') + ('failedAttemptTime = ' + toString_0(this.x5t_1) + ', ') + ('currentTime = ' + this.y5t_1.toString()), error);
|
|
2473
|
-
this.k5t_1.a5s_1.w('RandomPoolProvider', VOID, exception_0);
|
|
2474
2399
|
var tmp_5 = this;
|
|
2475
|
-
|
|
2476
|
-
|
|
2400
|
+
var exception_0 = mapToRandomExceptionIfError(this.g5s_1, error);
|
|
2401
|
+
tmp_5.s5s_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2402
|
+
this.f9_1 = 7;
|
|
2477
2403
|
continue $sm;
|
|
2478
2404
|
} else {
|
|
2479
2405
|
throw this.i9_1;
|
|
2480
2406
|
}
|
|
2481
2407
|
|
|
2482
|
-
case
|
|
2483
|
-
this.
|
|
2484
|
-
this.g9_1 =
|
|
2485
|
-
this.f9_1 =
|
|
2408
|
+
case 7:
|
|
2409
|
+
this.r5s_1 = this.s5s_1;
|
|
2410
|
+
this.g9_1 = 10;
|
|
2411
|
+
this.f9_1 = 8;
|
|
2486
2412
|
continue $sm;
|
|
2487
|
-
case
|
|
2488
|
-
var tmp_6 = this.
|
|
2489
|
-
this.g9_1 =
|
|
2490
|
-
this.
|
|
2413
|
+
case 8:
|
|
2414
|
+
var tmp_6 = this.r5s_1;
|
|
2415
|
+
this.g9_1 = 10;
|
|
2416
|
+
this.p5s_1.l1k(this.q5s_1);
|
|
2491
2417
|
return tmp_6;
|
|
2492
|
-
case
|
|
2493
|
-
this.g9_1 =
|
|
2418
|
+
case 9:
|
|
2419
|
+
this.g9_1 = 10;
|
|
2494
2420
|
var t = this.i9_1;
|
|
2495
|
-
this.
|
|
2421
|
+
this.p5s_1.l1k(this.q5s_1);
|
|
2496
2422
|
throw t;
|
|
2497
|
-
case
|
|
2423
|
+
case 10:
|
|
2498
2424
|
throw this.i9_1;
|
|
2499
2425
|
}
|
|
2500
2426
|
} catch ($p) {
|
|
2501
2427
|
var e = $p;
|
|
2502
|
-
if (this.g9_1 ===
|
|
2428
|
+
if (this.g9_1 === 10) {
|
|
2503
2429
|
throw e;
|
|
2504
2430
|
} else {
|
|
2505
2431
|
this.f9_1 = this.g9_1;
|
|
@@ -2508,37 +2434,38 @@
|
|
|
2508
2434
|
}
|
|
2509
2435
|
while (true);
|
|
2510
2436
|
};
|
|
2511
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2512
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2513
|
-
i.
|
|
2437
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).e1d = function ($this$withContext, completion) {
|
|
2438
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.g5s_1, this.h5s_1, this.i5s_1, this.j5s_1, this.k5s_1, this.l5s_1, this.m5s_1, this.n5s_1, completion);
|
|
2439
|
+
i.o5s_1 = $this$withContext;
|
|
2514
2440
|
return i;
|
|
2515
2441
|
};
|
|
2516
|
-
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $
|
|
2517
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $
|
|
2442
|
+
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2443
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2518
2444
|
var l = function ($this$withContext, $completion) {
|
|
2519
|
-
return i.
|
|
2445
|
+
return i.u5s($this$withContext, $completion);
|
|
2520
2446
|
};
|
|
2521
2447
|
l.$arity = 1;
|
|
2522
2448
|
return l;
|
|
2523
2449
|
}
|
|
2524
|
-
function RandomPoolProviderImpl$
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2528
|
-
this.
|
|
2529
|
-
this.
|
|
2450
|
+
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2451
|
+
this.d5t_1 = this$0;
|
|
2452
|
+
this.e5t_1 = $min;
|
|
2453
|
+
this.f5t_1 = $max;
|
|
2454
|
+
this.g5t_1 = $cardsCount;
|
|
2455
|
+
this.h5t_1 = $signed;
|
|
2456
|
+
this.i5t_1 = $requestDurationWarnMillis;
|
|
2530
2457
|
CoroutineImpl.call(this, resultContinuation);
|
|
2531
2458
|
}
|
|
2532
|
-
protoOf(RandomPoolProviderImpl$
|
|
2533
|
-
var tmp = this.
|
|
2459
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).l5t = function ($this$withContext, $completion) {
|
|
2460
|
+
var tmp = this.e1d($this$withContext, $completion);
|
|
2534
2461
|
tmp.h9_1 = Unit_instance;
|
|
2535
2462
|
tmp.i9_1 = null;
|
|
2536
2463
|
return tmp.n9();
|
|
2537
2464
|
};
|
|
2538
|
-
protoOf(RandomPoolProviderImpl$
|
|
2539
|
-
return this.
|
|
2465
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).x9 = function (p1, $completion) {
|
|
2466
|
+
return this.l5t((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2540
2467
|
};
|
|
2541
|
-
protoOf(RandomPoolProviderImpl$
|
|
2468
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).n9 = function () {
|
|
2542
2469
|
var suspendResult = this.h9_1;
|
|
2543
2470
|
$sm: do
|
|
2544
2471
|
try {
|
|
@@ -2546,9 +2473,9 @@
|
|
|
2546
2473
|
switch (tmp) {
|
|
2547
2474
|
case 0:
|
|
2548
2475
|
this.g9_1 = 2;
|
|
2549
|
-
this.
|
|
2476
|
+
this.k5t_1 = System_instance.i54();
|
|
2550
2477
|
this.f9_1 = 1;
|
|
2551
|
-
suspendResult = this.
|
|
2478
|
+
suspendResult = this.d5t_1.c5q_1.w5n(this.e5t_1, this.f5t_1, this.d5t_1.b5q_1.poolSize, this.g5t_1, new CardDecksRequestUserData(this.d5t_1.f5q_1(), this.d5t_1.b5q_1.poolSize), this.h5t_1, this);
|
|
2552
2479
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2553
2480
|
return suspendResult;
|
|
2554
2481
|
}
|
|
@@ -2556,12 +2483,15 @@
|
|
|
2556
2483
|
continue $sm;
|
|
2557
2484
|
case 1:
|
|
2558
2485
|
var result = suspendResult;
|
|
2559
|
-
var requestEndTime = System_instance.
|
|
2560
|
-
var requestDuration = requestEndTime.
|
|
2486
|
+
var requestEndTime = System_instance.i54();
|
|
2487
|
+
var requestDuration = requestEndTime.z5j(this.k5t_1);
|
|
2561
2488
|
Companion_getInstance_0();
|
|
2562
|
-
var this_0 = this.
|
|
2563
|
-
if (Duration__compareTo_impl_pchp0f(requestDuration,
|
|
2564
|
-
|
|
2489
|
+
var this_0 = this.i5t_1;
|
|
2490
|
+
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2491
|
+
var tmp_0 = 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ');
|
|
2492
|
+
Companion_getInstance_0();
|
|
2493
|
+
var this_1 = this.i5t_1;
|
|
2494
|
+
this.d5t_1.d5q_1.w('RandomPoolProvider', tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2565
2495
|
}
|
|
2566
2496
|
|
|
2567
2497
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
@@ -2580,28 +2510,29 @@
|
|
|
2580
2510
|
}
|
|
2581
2511
|
while (true);
|
|
2582
2512
|
};
|
|
2583
|
-
protoOf(RandomPoolProviderImpl$
|
|
2584
|
-
var i = new RandomPoolProviderImpl$
|
|
2585
|
-
i.
|
|
2513
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).e1d = function ($this$withContext, completion) {
|
|
2514
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.d5t_1, this.e5t_1, this.f5t_1, this.g5t_1, this.h5t_1, this.i5t_1, completion);
|
|
2515
|
+
i.j5t_1 = $this$withContext;
|
|
2586
2516
|
return i;
|
|
2587
2517
|
};
|
|
2588
|
-
function RandomPoolProviderImpl$
|
|
2589
|
-
var i = new RandomPoolProviderImpl$
|
|
2518
|
+
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2519
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2590
2520
|
var l = function ($this$withContext, $completion) {
|
|
2591
|
-
return i.
|
|
2521
|
+
return i.l5t($this$withContext, $completion);
|
|
2592
2522
|
};
|
|
2593
2523
|
l.$arity = 1;
|
|
2594
2524
|
return l;
|
|
2595
2525
|
}
|
|
2596
|
-
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2526
|
+
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2597
2527
|
CoroutineImpl.call(this, resultContinuation);
|
|
2598
|
-
this.
|
|
2599
|
-
this.
|
|
2600
|
-
this.
|
|
2601
|
-
this.
|
|
2602
|
-
this.
|
|
2603
|
-
this.
|
|
2604
|
-
this.
|
|
2528
|
+
this.t5q_1 = _this__u8e3s4;
|
|
2529
|
+
this.u5q_1 = minRoundsCountInPool;
|
|
2530
|
+
this.v5q_1 = userData;
|
|
2531
|
+
this.w5q_1 = min;
|
|
2532
|
+
this.x5q_1 = max;
|
|
2533
|
+
this.y5q_1 = cardsCount;
|
|
2534
|
+
this.z5q_1 = signed;
|
|
2535
|
+
this.a5r_1 = requestDurationWarnMillis;
|
|
2605
2536
|
}
|
|
2606
2537
|
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).n9 = function () {
|
|
2607
2538
|
var suspendResult = this.h9_1;
|
|
@@ -2611,9 +2542,9 @@
|
|
|
2611
2542
|
switch (tmp) {
|
|
2612
2543
|
case 0:
|
|
2613
2544
|
this.g9_1 = 2;
|
|
2614
|
-
this.
|
|
2545
|
+
this.b5r_1 = this.v5q_1.gameId;
|
|
2615
2546
|
this.f9_1 = 1;
|
|
2616
|
-
suspendResult =
|
|
2547
|
+
suspendResult = getPreparedOrRequestPool(this.t5q_1, this.b5r_1, this.w5q_1, this.x5q_1, this.u5q_1, this.y5q_1, this.z5q_1, this.a5r_1, this);
|
|
2617
2548
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2618
2549
|
return suspendResult;
|
|
2619
2550
|
}
|
|
@@ -2621,15 +2552,15 @@
|
|
|
2621
2552
|
continue $sm;
|
|
2622
2553
|
case 1:
|
|
2623
2554
|
var randomPoolValue = suspendResult;
|
|
2624
|
-
var this_0 = this.
|
|
2625
|
-
var key = randomPoolValue.
|
|
2555
|
+
var this_0 = this.t5q_1.h5q_1;
|
|
2556
|
+
var key = randomPoolValue.r5p_1.d5l_1;
|
|
2626
2557
|
this_0.k2(key, randomPoolValue);
|
|
2627
|
-
var cardDeckData = randomPoolValue.
|
|
2628
|
-
var tmp21_poolId = randomPoolValue.
|
|
2629
|
-
var tmp22_signature = randomPoolValue.
|
|
2630
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2631
|
-
var this_1 = this.
|
|
2632
|
-
var key_0 = this.
|
|
2558
|
+
var cardDeckData = randomPoolValue.z5p(this.v5q_1.gameId);
|
|
2559
|
+
var tmp21_poolId = randomPoolValue.r5p_1.d5l_1;
|
|
2560
|
+
var tmp22_signature = randomPoolValue.r5p_1.e5l_1;
|
|
2561
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.t5q_1, tmp21_poolId, tmp22_signature, cardDeckData, this.v5q_1);
|
|
2562
|
+
var this_1 = this.t5q_1.i5q_1;
|
|
2563
|
+
var key_0 = this.v5q_1.gameId;
|
|
2633
2564
|
this_1.k2(key_0, cardDecksRecord);
|
|
2634
2565
|
return cardDeckData;
|
|
2635
2566
|
case 2:
|
|
@@ -2646,17 +2577,18 @@
|
|
|
2646
2577
|
}
|
|
2647
2578
|
while (true);
|
|
2648
2579
|
};
|
|
2649
|
-
function $
|
|
2580
|
+
function $getPreparedOrRequestPoolCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2650
2581
|
CoroutineImpl.call(this, resultContinuation);
|
|
2651
|
-
this.
|
|
2652
|
-
this.
|
|
2653
|
-
this.
|
|
2654
|
-
this.
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2658
|
-
|
|
2659
|
-
|
|
2582
|
+
this.k5r_1 = _this__u8e3s4;
|
|
2583
|
+
this.l5r_1 = gameId;
|
|
2584
|
+
this.m5r_1 = min;
|
|
2585
|
+
this.n5r_1 = max;
|
|
2586
|
+
this.o5r_1 = minRoundsCount;
|
|
2587
|
+
this.p5r_1 = cardsCount;
|
|
2588
|
+
this.q5r_1 = signed;
|
|
2589
|
+
this.r5r_1 = requestDurationWarnMillis;
|
|
2590
|
+
}
|
|
2591
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$4).n9 = function () {
|
|
2660
2592
|
var suspendResult = this.h9_1;
|
|
2661
2593
|
$sm: do
|
|
2662
2594
|
try {
|
|
@@ -2665,41 +2597,41 @@
|
|
|
2665
2597
|
case 0:
|
|
2666
2598
|
this.g9_1 = 2;
|
|
2667
2599
|
var tmp_0 = this;
|
|
2668
|
-
var this_0 = this.
|
|
2600
|
+
var this_0 = this.k5r_1.h5q_1;
|
|
2669
2601
|
var destination = LinkedHashMap_init_$Create$();
|
|
2670
2602
|
var tmp0_iterator = this_0.s().j();
|
|
2671
2603
|
while (tmp0_iterator.k()) {
|
|
2672
2604
|
var element = tmp0_iterator.l();
|
|
2673
|
-
var this_1 = element.u().
|
|
2674
|
-
var key = this.
|
|
2605
|
+
var this_1 = element.u().s5p_1;
|
|
2606
|
+
var key = this.l5r_1;
|
|
2675
2607
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).f2(key)) {
|
|
2676
2608
|
destination.k2(element.t(), element.u());
|
|
2677
2609
|
}
|
|
2678
2610
|
}
|
|
2679
2611
|
|
|
2680
|
-
tmp_0.
|
|
2681
|
-
if (!(this.
|
|
2682
|
-
return this.
|
|
2612
|
+
tmp_0.s5r_1 = firstOrNull(destination.s());
|
|
2613
|
+
if (!(this.s5r_1 == null)) {
|
|
2614
|
+
return this.s5r_1.u().y5p(this.l5r_1);
|
|
2683
2615
|
}
|
|
2684
2616
|
|
|
2685
2617
|
var tmp_1 = this;
|
|
2686
|
-
var this_2 = this.
|
|
2618
|
+
var this_2 = this.k5r_1.h5q_1;
|
|
2687
2619
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2688
2620
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2689
2621
|
while (tmp0_iterator_0.k()) {
|
|
2690
2622
|
var element_0 = tmp0_iterator_0.l();
|
|
2691
|
-
if (element_0.u().
|
|
2623
|
+
if (element_0.u().v5p(this.o5r_1)) {
|
|
2692
2624
|
destination_0.k2(element_0.t(), element_0.u());
|
|
2693
2625
|
}
|
|
2694
2626
|
}
|
|
2695
2627
|
|
|
2696
|
-
tmp_1.
|
|
2697
|
-
if (!(this.
|
|
2698
|
-
return this.
|
|
2628
|
+
tmp_1.t5r_1 = firstOrNull(destination_0.s());
|
|
2629
|
+
if (!(this.t5r_1 == null)) {
|
|
2630
|
+
return this.t5r_1.u().w5p(this.l5r_1, this.o5r_1, this.k5r_1.b5q_1.thresholdForUsedPool);
|
|
2699
2631
|
}
|
|
2700
2632
|
|
|
2701
2633
|
this.f9_1 = 1;
|
|
2702
|
-
suspendResult =
|
|
2634
|
+
suspendResult = requestNewPool(this.k5r_1, this.m5r_1, this.n5r_1, this.p5r_1, this.q5r_1, this.r5r_1, this);
|
|
2703
2635
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2704
2636
|
return suspendResult;
|
|
2705
2637
|
}
|
|
@@ -2707,7 +2639,7 @@
|
|
|
2707
2639
|
continue $sm;
|
|
2708
2640
|
case 1:
|
|
2709
2641
|
var cardDecks = suspendResult;
|
|
2710
|
-
return cardDecks.
|
|
2642
|
+
return cardDecks.w5p(this.l5r_1, this.o5r_1, this.k5r_1.b5q_1.thresholdForUsedPool);
|
|
2711
2643
|
case 2:
|
|
2712
2644
|
throw this.i9_1;
|
|
2713
2645
|
}
|
|
@@ -2723,7 +2655,7 @@
|
|
|
2723
2655
|
while (true);
|
|
2724
2656
|
};
|
|
2725
2657
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2726
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2658
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().f10_1 : dispatcher;
|
|
2727
2659
|
var tmp;
|
|
2728
2660
|
if (idsProvider === VOID) {
|
|
2729
2661
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2731,86 +2663,86 @@
|
|
|
2731
2663
|
tmp = idsProvider;
|
|
2732
2664
|
}
|
|
2733
2665
|
idsProvider = tmp;
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2739
|
-
this.
|
|
2666
|
+
this.b5q_1 = params;
|
|
2667
|
+
this.c5q_1 = randomOrgApiService;
|
|
2668
|
+
this.d5q_1 = logger;
|
|
2669
|
+
this.e5q_1 = dispatcher;
|
|
2670
|
+
this.f5q_1 = idsProvider;
|
|
2671
|
+
this.g5q_1 = Mutex();
|
|
2740
2672
|
var tmp_0 = this;
|
|
2741
2673
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2742
|
-
tmp_0.
|
|
2674
|
+
tmp_0.h5q_1 = LinkedHashMap_init_$Create$();
|
|
2743
2675
|
var tmp_1 = this;
|
|
2744
2676
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2745
|
-
tmp_1.
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2677
|
+
tmp_1.i5q_1 = LinkedHashMap_init_$Create$();
|
|
2678
|
+
this.j5q_1 = null;
|
|
2679
|
+
this.k5q_1 = 0;
|
|
2748
2680
|
}
|
|
2749
|
-
protoOf(RandomPoolProviderImpl).
|
|
2750
|
-
var tmp = withContext(this.
|
|
2681
|
+
protoOf(RandomPoolProviderImpl).o5p = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2682
|
+
var tmp = withContext(this.e5q_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2751
2683
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2752
2684
|
return tmp;
|
|
2753
2685
|
return tmp;
|
|
2754
2686
|
};
|
|
2755
|
-
protoOf(RandomPoolProviderImpl).
|
|
2756
|
-
return this.
|
|
2687
|
+
protoOf(RandomPoolProviderImpl).m5t = function (gameId) {
|
|
2688
|
+
return this.i5q_1.h2(gameId);
|
|
2757
2689
|
};
|
|
2758
2690
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2759
|
-
return this.
|
|
2691
|
+
return this.m5t(gameId);
|
|
2760
2692
|
};
|
|
2761
|
-
protoOf(RandomPoolProviderImpl).
|
|
2762
|
-
return this.
|
|
2693
|
+
protoOf(RandomPoolProviderImpl).n5t = function (id) {
|
|
2694
|
+
return this.h5q_1.h2(id);
|
|
2763
2695
|
};
|
|
2764
2696
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2765
|
-
return this.
|
|
2697
|
+
return this.n5t(id);
|
|
2766
2698
|
};
|
|
2767
|
-
protoOf(RandomPoolProviderImpl).
|
|
2768
|
-
return this.
|
|
2699
|
+
protoOf(RandomPoolProviderImpl).o5t = function () {
|
|
2700
|
+
return this.h5q_1.m();
|
|
2769
2701
|
};
|
|
2770
2702
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2771
|
-
return this.
|
|
2703
|
+
return this.o5t();
|
|
2772
2704
|
};
|
|
2773
|
-
protoOf(RandomPoolProviderImpl).
|
|
2774
|
-
var gameCardDecksRecord = this.
|
|
2705
|
+
protoOf(RandomPoolProviderImpl).q5p = function (gameId) {
|
|
2706
|
+
var gameCardDecksRecord = this.i5q_1.h2(gameId);
|
|
2775
2707
|
if (!(gameCardDecksRecord == null)) {
|
|
2776
|
-
var randomPoolValue = this.
|
|
2708
|
+
var randomPoolValue = this.h5q_1.h2(gameCardDecksRecord.poolId);
|
|
2777
2709
|
if (!(randomPoolValue == null)) {
|
|
2778
2710
|
// Inline function 'kotlin.apply' call
|
|
2779
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2711
|
+
var this_0 = toMutableMap(randomPoolValue.s5p_1);
|
|
2780
2712
|
// Inline function 'kotlin.contracts.contract' call
|
|
2781
2713
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2782
2714
|
this_0.l2(gameId);
|
|
2783
|
-
var newPoolValue = randomPoolValue.
|
|
2784
|
-
if (newPoolValue.
|
|
2785
|
-
this.
|
|
2715
|
+
var newPoolValue = randomPoolValue.x5p(VOID, toMap(this_0));
|
|
2716
|
+
if (newPoolValue.s5p_1.p()) {
|
|
2717
|
+
this.h5q_1.l2(gameCardDecksRecord.poolId);
|
|
2786
2718
|
} else {
|
|
2787
2719
|
// Inline function 'kotlin.collections.set' call
|
|
2788
|
-
var this_1 = this.
|
|
2720
|
+
var this_1 = this.h5q_1;
|
|
2789
2721
|
var key = gameCardDecksRecord.poolId;
|
|
2790
2722
|
this_1.k2(key, newPoolValue);
|
|
2791
2723
|
}
|
|
2792
2724
|
}
|
|
2793
2725
|
}
|
|
2794
|
-
this.
|
|
2726
|
+
this.i5q_1.l2(gameId);
|
|
2795
2727
|
};
|
|
2796
2728
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2797
2729
|
return function ($this$defaultRequest) {
|
|
2798
2730
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2799
|
-
$this$defaultRequest.
|
|
2731
|
+
$this$defaultRequest.h33($url);
|
|
2800
2732
|
return Unit_instance;
|
|
2801
2733
|
};
|
|
2802
2734
|
}
|
|
2803
2735
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2804
|
-
this.
|
|
2736
|
+
this.p5t_1 = $externalLogger;
|
|
2805
2737
|
}
|
|
2806
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2807
|
-
this.
|
|
2738
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).r3t = function (message) {
|
|
2739
|
+
this.p5t_1(message);
|
|
2808
2740
|
};
|
|
2809
2741
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2810
2742
|
return function ($this$install) {
|
|
2811
|
-
$this$install.
|
|
2812
|
-
$this$install.
|
|
2813
|
-
$this$install.
|
|
2743
|
+
$this$install.h3v(get_DEFAULT(Companion_instance_0));
|
|
2744
|
+
$this$install.g3v_1 = $config.s5t_1;
|
|
2745
|
+
$this$install.h3v(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2814
2746
|
return Unit_instance;
|
|
2815
2747
|
};
|
|
2816
2748
|
}
|
|
@@ -2822,32 +2754,32 @@
|
|
|
2822
2754
|
}
|
|
2823
2755
|
function ApiCommonConfigs() {
|
|
2824
2756
|
}
|
|
2825
|
-
protoOf(ApiCommonConfigs).
|
|
2826
|
-
_this__u8e3s4.
|
|
2827
|
-
this.
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2757
|
+
protoOf(ApiCommonConfigs).u5t = function (_this__u8e3s4, config, externalLogger) {
|
|
2758
|
+
_this__u8e3s4.t2u_1 = true;
|
|
2759
|
+
this.v5t(_this__u8e3s4, config.q5t_1);
|
|
2760
|
+
this.w5t(_this__u8e3s4, config.t5t_1);
|
|
2761
|
+
this.x5t(_this__u8e3s4, config, externalLogger);
|
|
2830
2762
|
};
|
|
2831
|
-
protoOf(ApiCommonConfigs).
|
|
2763
|
+
protoOf(ApiCommonConfigs).v5t = function (_this__u8e3s4, url) {
|
|
2832
2764
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2833
2765
|
};
|
|
2834
|
-
protoOf(ApiCommonConfigs).
|
|
2766
|
+
protoOf(ApiCommonConfigs).x5t = function (_this__u8e3s4, config, externalLogger) {
|
|
2835
2767
|
var tmp = Companion_getInstance_1();
|
|
2836
|
-
_this__u8e3s4.
|
|
2768
|
+
_this__u8e3s4.o2v(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2837
2769
|
};
|
|
2838
|
-
protoOf(ApiCommonConfigs).
|
|
2770
|
+
protoOf(ApiCommonConfigs).w5t = function (_this__u8e3s4, json) {
|
|
2839
2771
|
var tmp = Plugin_getInstance();
|
|
2840
|
-
_this__u8e3s4.
|
|
2772
|
+
_this__u8e3s4.o2v(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2841
2773
|
};
|
|
2842
2774
|
var ApiCommonConfigs_instance;
|
|
2843
2775
|
function ApiCommonConfigs_getInstance() {
|
|
2844
2776
|
return ApiCommonConfigs_instance;
|
|
2845
2777
|
}
|
|
2846
2778
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2847
|
-
$this$Json.
|
|
2848
|
-
$this$Json.
|
|
2849
|
-
$this$Json.
|
|
2850
|
-
$this$Json.
|
|
2779
|
+
$this$Json.y4t_1 = true;
|
|
2780
|
+
$this$Json.x4t_1 = true;
|
|
2781
|
+
$this$Json.w4t_1 = true;
|
|
2782
|
+
$this$Json.v4t_1 = false;
|
|
2851
2783
|
return Unit_instance;
|
|
2852
2784
|
}
|
|
2853
2785
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2860,19 +2792,19 @@
|
|
|
2860
2792
|
tmp = json;
|
|
2861
2793
|
}
|
|
2862
2794
|
json = tmp;
|
|
2863
|
-
this.
|
|
2864
|
-
this.
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2795
|
+
this.q5t_1 = baseUrl;
|
|
2796
|
+
this.r5t_1 = timeoutMillis;
|
|
2797
|
+
this.s5t_1 = loggingLevel;
|
|
2798
|
+
this.t5t_1 = json;
|
|
2867
2799
|
}
|
|
2868
2800
|
protoOf(HttpParams).toString = function () {
|
|
2869
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2801
|
+
return 'HttpParams(baseUrl=' + this.q5t_1 + ', timeoutMillis=' + this.r5t_1.toString() + ', loggingLevel=' + this.s5t_1.toString() + ', json=' + toString(this.t5t_1) + ')';
|
|
2870
2802
|
};
|
|
2871
2803
|
protoOf(HttpParams).hashCode = function () {
|
|
2872
|
-
var result = getStringHashCode(this.
|
|
2873
|
-
result = imul(result, 31) + this.
|
|
2874
|
-
result = imul(result, 31) + this.
|
|
2875
|
-
result = imul(result, 31) + hashCode(this.
|
|
2804
|
+
var result = getStringHashCode(this.q5t_1);
|
|
2805
|
+
result = imul(result, 31) + this.r5t_1.hashCode() | 0;
|
|
2806
|
+
result = imul(result, 31) + this.s5t_1.hashCode() | 0;
|
|
2807
|
+
result = imul(result, 31) + hashCode(this.t5t_1) | 0;
|
|
2876
2808
|
return result;
|
|
2877
2809
|
};
|
|
2878
2810
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2881,13 +2813,13 @@
|
|
|
2881
2813
|
if (!(other instanceof HttpParams))
|
|
2882
2814
|
return false;
|
|
2883
2815
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2884
|
-
if (!(this.
|
|
2816
|
+
if (!(this.q5t_1 === tmp0_other_with_cast.q5t_1))
|
|
2885
2817
|
return false;
|
|
2886
|
-
if (!this.
|
|
2818
|
+
if (!this.r5t_1.equals(tmp0_other_with_cast.r5t_1))
|
|
2887
2819
|
return false;
|
|
2888
|
-
if (!this.
|
|
2820
|
+
if (!this.s5t_1.equals(tmp0_other_with_cast.s5t_1))
|
|
2889
2821
|
return false;
|
|
2890
|
-
if (!equals(this.
|
|
2822
|
+
if (!equals(this.t5t_1, tmp0_other_with_cast.t5t_1))
|
|
2891
2823
|
return false;
|
|
2892
2824
|
return true;
|
|
2893
2825
|
};
|
|
@@ -2913,12 +2845,12 @@
|
|
|
2913
2845
|
}
|
|
2914
2846
|
function nextBytesCopyTo($this, bytes) {
|
|
2915
2847
|
try {
|
|
2916
|
-
$this.
|
|
2848
|
+
$this.c5u_1.p5k(bytes);
|
|
2917
2849
|
} catch ($p) {
|
|
2918
2850
|
if ($p instanceof SecRandomCopyException) {
|
|
2919
2851
|
var error = $p;
|
|
2920
|
-
$this.
|
|
2921
|
-
$this.
|
|
2852
|
+
$this.b5u_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2853
|
+
$this.d5u_1.tg(bytes);
|
|
2922
2854
|
return Unit_instance;
|
|
2923
2855
|
} else {
|
|
2924
2856
|
throw $p;
|
|
@@ -2944,9 +2876,9 @@
|
|
|
2944
2876
|
}
|
|
2945
2877
|
function SecureRandom_0(logger) {
|
|
2946
2878
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2947
|
-
this.
|
|
2948
|
-
this.
|
|
2949
|
-
this.
|
|
2879
|
+
this.b5u_1 = logger;
|
|
2880
|
+
this.c5u_1 = new SecureRandom();
|
|
2881
|
+
this.d5u_1 = Default_getInstance();
|
|
2950
2882
|
}
|
|
2951
2883
|
protoOf(SecureRandom_0).qg = function (from, until) {
|
|
2952
2884
|
checkRangeBounds(this, from, until);
|
|
@@ -2975,7 +2907,7 @@
|
|
|
2975
2907
|
}
|
|
2976
2908
|
}
|
|
2977
2909
|
};
|
|
2978
|
-
protoOf(SecureRandom_0).
|
|
2910
|
+
protoOf(SecureRandom_0).z5t = function () {
|
|
2979
2911
|
return !(nextBits(this, 1) === 0);
|
|
2980
2912
|
};
|
|
2981
2913
|
function overhand(_this__u8e3s4, iterations, random) {
|
|
@@ -2996,7 +2928,7 @@
|
|
|
2996
2928
|
while (pile.m() > 0) {
|
|
2997
2929
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2998
2930
|
var a = pile.m();
|
|
2999
|
-
var b = 1 + random.
|
|
2931
|
+
var b = 1 + random.y5t(VOID, twentypc) | 0;
|
|
3000
2932
|
var cards = Math.min(a, b);
|
|
3001
2933
|
pile2.b2(0, take(pile, cards));
|
|
3002
2934
|
// Inline function 'kotlin.repeat' call
|
|
@@ -3031,11 +2963,11 @@
|
|
|
3031
2963
|
// Inline function 'games.raspberry.card_game.random.utils.random.riffle.<anonymous>' call
|
|
3032
2964
|
var mid = deck.m() / 2 | 0;
|
|
3033
2965
|
var tenpc = mid / 10 | 0;
|
|
3034
|
-
var cut = (mid - tenpc | 0) + random.
|
|
2966
|
+
var cut = (mid - tenpc | 0) + random.y5t(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3035
2967
|
var deck1 = toMutableList(take(pile, cut));
|
|
3036
2968
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3037
2969
|
pile.a2();
|
|
3038
|
-
var fromTop = random.
|
|
2970
|
+
var fromTop = random.z5t();
|
|
3039
2971
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
3040
2972
|
if (fromTop) {
|
|
3041
2973
|
pile.e(deck1.e2(0));
|
|
@@ -3057,22 +2989,22 @@
|
|
|
3057
2989
|
}
|
|
3058
2990
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3059
2991
|
return function ($this$install) {
|
|
3060
|
-
$this$install.
|
|
3061
|
-
$this$install.
|
|
2992
|
+
$this$install.f3f($config.r5t_1);
|
|
2993
|
+
$this$install.d3f($config.r5t_1);
|
|
3062
2994
|
return Unit_instance;
|
|
3063
2995
|
};
|
|
3064
2996
|
}
|
|
3065
2997
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3066
2998
|
return function ($this$HttpClient) {
|
|
3067
2999
|
var tmp = Plugin_getInstance_0();
|
|
3068
|
-
$this$HttpClient.
|
|
3069
|
-
ApiCommonConfigs_instance.
|
|
3000
|
+
$this$HttpClient.o2v(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3001
|
+
ApiCommonConfigs_instance.u5t($this$HttpClient, $config, $externalLogger);
|
|
3070
3002
|
return Unit_instance;
|
|
3071
3003
|
};
|
|
3072
3004
|
}
|
|
3073
3005
|
function HttpFactory() {
|
|
3074
3006
|
}
|
|
3075
|
-
protoOf(HttpFactory).
|
|
3007
|
+
protoOf(HttpFactory).e5u = function (config, externalLogger) {
|
|
3076
3008
|
var tmp = Js_instance;
|
|
3077
3009
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3078
3010
|
};
|
|
@@ -3081,15 +3013,15 @@
|
|
|
3081
3013
|
return HttpFactory_instance;
|
|
3082
3014
|
}
|
|
3083
3015
|
//region block: post-declaration
|
|
3084
|
-
protoOf($serializer).
|
|
3085
|
-
protoOf($serializer_0).
|
|
3086
|
-
protoOf($serializer_2).
|
|
3087
|
-
protoOf($serializer_3).
|
|
3088
|
-
protoOf($serializer_5).
|
|
3089
|
-
protoOf($serializer_6).
|
|
3090
|
-
protoOf(RandomPoolProviderImpl).
|
|
3091
|
-
protoOf(SecureRandom_0).
|
|
3092
|
-
protoOf(SecureRandom_0).
|
|
3016
|
+
protoOf($serializer).w4e = typeParametersSerializers;
|
|
3017
|
+
protoOf($serializer_0).w4e = typeParametersSerializers;
|
|
3018
|
+
protoOf($serializer_2).w4e = typeParametersSerializers;
|
|
3019
|
+
protoOf($serializer_3).w4e = typeParametersSerializers;
|
|
3020
|
+
protoOf($serializer_5).w4e = typeParametersSerializers;
|
|
3021
|
+
protoOf($serializer_6).w4e = typeParametersSerializers;
|
|
3022
|
+
protoOf(RandomPoolProviderImpl).p5p = getCardDeck$default;
|
|
3023
|
+
protoOf(SecureRandom_0).y5t = nextInt$default;
|
|
3024
|
+
protoOf(SecureRandom_0).a5u = shuffle;
|
|
3093
3025
|
//endregion
|
|
3094
3026
|
//region block: init
|
|
3095
3027
|
Companion_instance_1 = new Companion();
|