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