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