client_plugin_logic_deb 1.8.472 → 1.8.474
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 +70 -70
- package/Kosi-Kodein-kodein-di.js +568 -568
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1587 -1587
- package/Logic_Debertz-ai_module.js +528 -528
- package/Logic_Debertz-bot_engine.js +4078 -1090
- package/Logic_Debertz-bot_engine.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +30 -2
- package/Logic_Debertz-client_plugin.js +3256 -3256
- package/Logic_Debertz-core.js +1829 -1829
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18189 -18187
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9798 -9746
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1602 -1551
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +816 -792
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2557 -2557
- package/kotlinx-io-kotlinx-io-bytestring.js +43 -43
- package/kotlinx-io-kotlinx-io-core.js +571 -571
- package/kotlinx-serialization-kotlinx-serialization-core.js +1819 -1819
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1404 -1404
- package/ktor-ktor-client-content-negotiation.js +150 -150
- package/ktor-ktor-client-core.js +1917 -1917
- package/ktor-ktor-client-logging.js +644 -644
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http-cio.js +358 -358
- package/ktor-ktor-http.js +707 -707
- package/ktor-ktor-io.js +646 -646
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +143 -143
- package/ktor-ktor-serialization.js +71 -71
- package/ktor-ktor-utils.js +670 -670
- package/ktor-ktor-websockets.js +49 -49
- package/package.json +1 -1
- package/random-library-crypto-rand.js +12 -12
- package/random-library-secure-random.js +7 -7
- package/raspberry-cardgame-lib-core.js +243 -233
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +101 -101
- package/raspberry-cardgame-lib-random.js +833 -833
- package/uuid.js +23 -23
|
@@ -43,85 +43,85 @@
|
|
|
43
43
|
'use strict';
|
|
44
44
|
//region block: imports
|
|
45
45
|
var imul = Math.imul;
|
|
46
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
46
|
+
var protoOf = kotlin_kotlin.$_$.pe;
|
|
47
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sd;
|
|
48
48
|
var VOID = kotlin_kotlin.$_$.b;
|
|
49
49
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
50
50
|
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
51
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
51
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qb;
|
|
52
52
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
53
53
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
54
54
|
var url = kotlin_io_ktor_ktor_client_core.$_$.u;
|
|
55
55
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
56
56
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
57
57
|
var contentType = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
58
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
59
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
60
|
-
var createKType = kotlin_kotlin.$_$.
|
|
58
|
+
var getKClass = kotlin_kotlin.$_$.mf;
|
|
59
|
+
var arrayOf = kotlin_kotlin.$_$.sj;
|
|
60
|
+
var createKType = kotlin_kotlin.$_$.kf;
|
|
61
61
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
62
62
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
63
63
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
64
64
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.x;
|
|
65
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
65
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ab;
|
|
66
66
|
var Companion_instance = kotlin_kotlin.$_$.g5;
|
|
67
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
67
|
+
var THROW_CCE = kotlin_kotlin.$_$.ej;
|
|
68
68
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y2;
|
|
69
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
70
|
-
var Exception = kotlin_kotlin.$_$.
|
|
71
|
-
var Result = kotlin_kotlin.$_$.
|
|
72
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
73
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
74
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
75
|
-
var equalsLong = kotlin_kotlin.$_$.
|
|
69
|
+
var createFailure = kotlin_kotlin.$_$.vj;
|
|
70
|
+
var Exception = kotlin_kotlin.$_$.vi;
|
|
71
|
+
var Result = kotlin_kotlin.$_$.cj;
|
|
72
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.qd;
|
|
73
|
+
var initMetadataForClass = kotlin_kotlin.$_$.od;
|
|
74
|
+
var getStringHashCode = kotlin_kotlin.$_$.md;
|
|
75
|
+
var equalsLong = kotlin_kotlin.$_$.fc;
|
|
76
76
|
var System_instance = kotlin_kotlin.$_$.a5;
|
|
77
|
-
var removeAll = kotlin_kotlin.$_$.
|
|
78
|
-
var subtract = kotlin_kotlin.$_$.
|
|
79
|
-
var compare = kotlin_kotlin.$_$.
|
|
80
|
-
var Long = kotlin_kotlin.$_$.
|
|
77
|
+
var removeAll = kotlin_kotlin.$_$.n9;
|
|
78
|
+
var subtract = kotlin_kotlin.$_$.rc;
|
|
79
|
+
var compare = kotlin_kotlin.$_$.ac;
|
|
80
|
+
var Long = kotlin_kotlin.$_$.yi;
|
|
81
81
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
82
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
83
|
-
var to = kotlin_kotlin.$_$.
|
|
82
|
+
var compareTo = kotlin_kotlin.$_$.ed;
|
|
83
|
+
var to = kotlin_kotlin.$_$.jk;
|
|
84
84
|
var mapOf = kotlin_kotlin.$_$.z8;
|
|
85
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
85
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ud;
|
|
86
86
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
87
87
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
88
88
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.f;
|
|
89
|
-
var lazy = kotlin_kotlin.$_$.
|
|
90
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
89
|
+
var lazy = kotlin_kotlin.$_$.bk;
|
|
90
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.pd;
|
|
91
91
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
92
92
|
var emptyList = kotlin_kotlin.$_$.p7;
|
|
93
|
-
var equals = kotlin_kotlin.$_$.
|
|
93
|
+
var equals = kotlin_kotlin.$_$.gd;
|
|
94
94
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
95
95
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
|
|
96
96
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
97
97
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
98
98
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
|
|
99
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
100
|
-
var toString = kotlin_kotlin.$_$.
|
|
101
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
99
|
+
var objectCreate = kotlin_kotlin.$_$.oe;
|
|
100
|
+
var toString = kotlin_kotlin.$_$.se;
|
|
101
|
+
var hashCode = kotlin_kotlin.$_$.nd;
|
|
102
102
|
var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
103
103
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
104
|
-
var Enum = kotlin_kotlin.$_$.
|
|
105
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
106
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
104
|
+
var Enum = kotlin_kotlin.$_$.ti;
|
|
105
|
+
var getNumberHashCode = kotlin_kotlin.$_$.kd;
|
|
106
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.jd;
|
|
107
107
|
var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
108
108
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
109
109
|
var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
110
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
110
|
+
var toString_0 = kotlin_kotlin.$_$.ik;
|
|
111
111
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.c3;
|
|
112
112
|
var firstOrNull = kotlin_kotlin.$_$.v7;
|
|
113
113
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
114
114
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.b3;
|
|
115
115
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
116
|
-
var take = kotlin_kotlin.$_$.
|
|
116
|
+
var take = kotlin_kotlin.$_$.nh;
|
|
117
117
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
118
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
118
|
+
var takeLast = kotlin_kotlin.$_$.ca;
|
|
119
119
|
var listOf = kotlin_kotlin.$_$.w8;
|
|
120
120
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
121
121
|
var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
|
|
122
122
|
var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
|
|
123
123
|
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
124
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
124
|
+
var isInterface = kotlin_kotlin.$_$.de;
|
|
125
125
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
126
126
|
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
127
127
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -172,14 +172,14 @@
|
|
|
172
172
|
}
|
|
173
173
|
function OpenAIApiImpl$chatCompletion$lambda(this$0) {
|
|
174
174
|
return function ($this$headers) {
|
|
175
|
-
$this$headers.
|
|
175
|
+
$this$headers.u3c(HttpHeaders_getInstance().g3k_1, 'Bearer ' + this$0.w7p_1.p7p_1);
|
|
176
176
|
return Unit_instance;
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
179
|
function $chatCompletionCOROUTINE$(_this__u8e3s4, messages, resultContinuation) {
|
|
180
180
|
CoroutineImpl.call(this, resultContinuation);
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
181
|
+
this.g7q_1 = _this__u8e3s4;
|
|
182
|
+
this.h7q_1 = messages;
|
|
183
183
|
}
|
|
184
184
|
protoOf($chatCompletionCOROUTINE$).q9 = function () {
|
|
185
185
|
var suspendResult = this.k9_1;
|
|
@@ -190,16 +190,16 @@
|
|
|
190
190
|
case 0:
|
|
191
191
|
this.j9_1 = 4;
|
|
192
192
|
this.j9_1 = 3;
|
|
193
|
-
var request = new OpenAIRequest(this.
|
|
194
|
-
var tmp0 = this.
|
|
195
|
-
var urlString = this.
|
|
193
|
+
var request = new OpenAIRequest(this.g7q_1.w7p_1.q7p_1, this.h7q_1, this.g7q_1.w7p_1.s7p_1, this.g7q_1.w7p_1.t7p_1);
|
|
194
|
+
var tmp0 = this.g7q_1.x7p_1;
|
|
195
|
+
var urlString = this.g7q_1.w7p_1.r7p_1 + '/chat/completions';
|
|
196
196
|
var builder = new HttpRequestBuilder();
|
|
197
|
-
builder.
|
|
197
|
+
builder.n45_1 = Companion_getInstance().e3o_1;
|
|
198
198
|
url(builder, urlString);
|
|
199
|
-
headers(builder, OpenAIApiImpl$chatCompletion$lambda(this.
|
|
200
|
-
contentType(builder, Application_getInstance().
|
|
199
|
+
headers(builder, OpenAIApiImpl$chatCompletion$lambda(this.g7q_1));
|
|
200
|
+
contentType(builder, Application_getInstance().y3h_1);
|
|
201
201
|
if (request == null) {
|
|
202
|
-
builder.
|
|
202
|
+
builder.p45_1 = NullBody_instance;
|
|
203
203
|
var tmp_0 = getKClass(OpenAIRequest);
|
|
204
204
|
var tmp_1;
|
|
205
205
|
try {
|
|
@@ -214,13 +214,13 @@
|
|
|
214
214
|
}
|
|
215
215
|
tmp_1 = tmp_2;
|
|
216
216
|
}
|
|
217
|
-
builder.
|
|
217
|
+
builder.f4b(new TypeInfo(tmp_0, tmp_1));
|
|
218
218
|
} else {
|
|
219
219
|
if (request instanceof OutgoingContent) {
|
|
220
|
-
builder.
|
|
221
|
-
builder.
|
|
220
|
+
builder.p45_1 = request;
|
|
221
|
+
builder.f4b(null);
|
|
222
222
|
} else {
|
|
223
|
-
builder.
|
|
223
|
+
builder.p45_1 = request;
|
|
224
224
|
var tmp_3 = getKClass(OpenAIRequest);
|
|
225
225
|
var tmp_4;
|
|
226
226
|
try {
|
|
@@ -235,13 +235,13 @@
|
|
|
235
235
|
}
|
|
236
236
|
tmp_4 = tmp_5;
|
|
237
237
|
}
|
|
238
|
-
builder.
|
|
238
|
+
builder.f4b(new TypeInfo(tmp_3, tmp_4));
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
builder.
|
|
242
|
+
builder.n45_1 = Companion_getInstance().e3o_1;
|
|
243
243
|
this.i9_1 = 1;
|
|
244
|
-
suspendResult = (new HttpStatement(builder, tmp0)).
|
|
244
|
+
suspendResult = (new HttpStatement(builder, tmp0)).y56(this);
|
|
245
245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
246
246
|
return suspendResult;
|
|
247
247
|
}
|
|
@@ -249,9 +249,9 @@
|
|
|
249
249
|
continue $sm;
|
|
250
250
|
case 1:
|
|
251
251
|
var response = suspendResult;
|
|
252
|
-
this.
|
|
252
|
+
this.j7q_1 = Companion_instance;
|
|
253
253
|
this.i9_1 = 2;
|
|
254
|
-
var tmp_6 = response.
|
|
254
|
+
var tmp_6 = response.b47();
|
|
255
255
|
var tmp_7 = getKClass(OpenAIResponse);
|
|
256
256
|
var tmp_8;
|
|
257
257
|
try {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
tmp_8 = tmp_9;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
suspendResult = tmp_6.
|
|
270
|
+
suspendResult = tmp_6.y46(new TypeInfo(tmp_7, tmp_8), this);
|
|
271
271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
272
272
|
return suspendResult;
|
|
273
273
|
}
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
case 2:
|
|
277
277
|
var tmp2 = suspendResult instanceof OpenAIResponse ? suspendResult : THROW_CCE();
|
|
278
278
|
var tmp_10 = this;
|
|
279
|
-
this.
|
|
280
|
-
tmp_10.
|
|
279
|
+
this.j7q_1;
|
|
280
|
+
tmp_10.i7q_1 = _Result___init__impl__xyqfz8(tmp2);
|
|
281
281
|
this.j9_1 = 4;
|
|
282
282
|
this.i9_1 = 5;
|
|
283
283
|
continue $sm;
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
if (tmp_11 instanceof Exception) {
|
|
288
288
|
var e = this.l9_1;
|
|
289
289
|
var tmp_12 = this;
|
|
290
|
-
tmp_12.
|
|
290
|
+
tmp_12.i7q_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
291
291
|
this.i9_1 = 5;
|
|
292
292
|
continue $sm;
|
|
293
293
|
} else {
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
throw this.l9_1;
|
|
299
299
|
case 5:
|
|
300
300
|
this.j9_1 = 4;
|
|
301
|
-
return new Result(this.
|
|
301
|
+
return new Result(this.i7q_1);
|
|
302
302
|
}
|
|
303
303
|
} catch ($p) {
|
|
304
304
|
var e_0 = $p;
|
|
@@ -312,10 +312,10 @@
|
|
|
312
312
|
while (true);
|
|
313
313
|
};
|
|
314
314
|
function OpenAIApiImpl(config, httpClient) {
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
315
|
+
this.w7p_1 = config;
|
|
316
|
+
this.x7p_1 = httpClient;
|
|
317
317
|
}
|
|
318
|
-
protoOf(OpenAIApiImpl).
|
|
318
|
+
protoOf(OpenAIApiImpl).o7p = function (messages, $completion) {
|
|
319
319
|
var tmp = new $chatCompletionCOROUTINE$(this, messages, $completion);
|
|
320
320
|
tmp.k9_1 = Unit_instance;
|
|
321
321
|
tmp.l9_1 = null;
|
|
@@ -327,15 +327,15 @@
|
|
|
327
327
|
function BotChatCache() {
|
|
328
328
|
}
|
|
329
329
|
function CacheEntry(value, timestamp) {
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
330
|
+
this.l7q_1 = value;
|
|
331
|
+
this.m7q_1 = timestamp;
|
|
332
332
|
}
|
|
333
333
|
protoOf(CacheEntry).toString = function () {
|
|
334
|
-
return 'CacheEntry(value=' + this.
|
|
334
|
+
return 'CacheEntry(value=' + this.l7q_1 + ', timestamp=' + this.m7q_1.toString() + ')';
|
|
335
335
|
};
|
|
336
336
|
protoOf(CacheEntry).hashCode = function () {
|
|
337
|
-
var result = getStringHashCode(this.
|
|
338
|
-
result = imul(result, 31) + this.
|
|
337
|
+
var result = getStringHashCode(this.l7q_1);
|
|
338
|
+
result = imul(result, 31) + this.m7q_1.hashCode() | 0;
|
|
339
339
|
return result;
|
|
340
340
|
};
|
|
341
341
|
protoOf(CacheEntry).equals = function (other) {
|
|
@@ -343,36 +343,36 @@
|
|
|
343
343
|
return true;
|
|
344
344
|
if (!(other instanceof CacheEntry))
|
|
345
345
|
return false;
|
|
346
|
-
if (!(this.
|
|
346
|
+
if (!(this.l7q_1 === other.l7q_1))
|
|
347
347
|
return false;
|
|
348
|
-
if (!equalsLong(this.
|
|
348
|
+
if (!equalsLong(this.m7q_1, other.m7q_1))
|
|
349
349
|
return false;
|
|
350
350
|
return true;
|
|
351
351
|
};
|
|
352
352
|
function cleanExpired($this) {
|
|
353
|
-
var now = System_instance.
|
|
354
|
-
var tmp = $this.
|
|
353
|
+
var now = System_instance.ql().nm();
|
|
354
|
+
var tmp = $this.p7q_1.m1();
|
|
355
355
|
removeAll(tmp, InMemoryBotChatCache$cleanExpired$lambda(now, $this));
|
|
356
356
|
}
|
|
357
357
|
function InMemoryBotChatCache$cleanExpired$lambda($now, this$0) {
|
|
358
358
|
return function (_destruct__k2r9zo) {
|
|
359
359
|
// Inline function 'kotlin.collections.component2' call
|
|
360
360
|
var entry = _destruct__k2r9zo.o1();
|
|
361
|
-
return compare(subtract($now, entry.
|
|
361
|
+
return compare(subtract($now, entry.m7q_1), this$0.n7q_1) > 0;
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
function InMemoryBotChatCache(ttlMillis, maxSize) {
|
|
365
365
|
ttlMillis = ttlMillis === VOID ? new Long(300000, 0) : ttlMillis;
|
|
366
366
|
maxSize = maxSize === VOID ? 100 : maxSize;
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
367
|
+
this.n7q_1 = ttlMillis;
|
|
368
|
+
this.o7q_1 = maxSize;
|
|
369
369
|
var tmp = this;
|
|
370
370
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
371
|
-
tmp.
|
|
371
|
+
tmp.p7q_1 = LinkedHashMap_init_$Create$();
|
|
372
372
|
}
|
|
373
|
-
protoOf(InMemoryBotChatCache).
|
|
373
|
+
protoOf(InMemoryBotChatCache).m3b = function (key) {
|
|
374
374
|
cleanExpired(this);
|
|
375
|
-
var tmp0_elvis_lhs = this.
|
|
375
|
+
var tmp0_elvis_lhs = this.p7q_1.v2(key);
|
|
376
376
|
var tmp;
|
|
377
377
|
if (tmp0_elvis_lhs == null) {
|
|
378
378
|
return null;
|
|
@@ -380,17 +380,17 @@
|
|
|
380
380
|
tmp = tmp0_elvis_lhs;
|
|
381
381
|
}
|
|
382
382
|
var entry = tmp;
|
|
383
|
-
if (compare(subtract(System_instance.
|
|
384
|
-
this.
|
|
383
|
+
if (compare(subtract(System_instance.ql().nm(), entry.m7q_1), this.n7q_1) > 0) {
|
|
384
|
+
this.p7q_1.h3(key);
|
|
385
385
|
return null;
|
|
386
386
|
}
|
|
387
|
-
return entry.
|
|
387
|
+
return entry.l7q_1;
|
|
388
388
|
};
|
|
389
|
-
protoOf(InMemoryBotChatCache).
|
|
389
|
+
protoOf(InMemoryBotChatCache).k7q = function (key, value) {
|
|
390
390
|
cleanExpired(this);
|
|
391
|
-
if (this.
|
|
391
|
+
if (this.p7q_1.g1() >= this.o7q_1) {
|
|
392
392
|
// Inline function 'kotlin.collections.minByOrNull' call
|
|
393
|
-
var tmp0 = this.
|
|
393
|
+
var tmp0 = this.p7q_1.m1();
|
|
394
394
|
var tmp$ret$0;
|
|
395
395
|
$l$block_0: {
|
|
396
396
|
// Inline function 'kotlin.collections.minByOrNull' call
|
|
@@ -404,10 +404,10 @@
|
|
|
404
404
|
tmp$ret$0 = minElem;
|
|
405
405
|
break $l$block_0;
|
|
406
406
|
}
|
|
407
|
-
var minValue = minElem.o1().
|
|
407
|
+
var minValue = minElem.o1().m7q_1;
|
|
408
408
|
do {
|
|
409
409
|
var e = iterator.v();
|
|
410
|
-
var v = e.o1().
|
|
410
|
+
var v = e.o1().m7q_1;
|
|
411
411
|
if (compareTo(minValue, v) > 0) {
|
|
412
412
|
minElem = e;
|
|
413
413
|
minValue = v;
|
|
@@ -422,24 +422,24 @@
|
|
|
422
422
|
null;
|
|
423
423
|
else {
|
|
424
424
|
// Inline function 'kotlin.let' call
|
|
425
|
-
this.
|
|
425
|
+
this.p7q_1.h3(oldestKey);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
var tmp0_0 = this.
|
|
428
|
+
var tmp0_0 = this.p7q_1;
|
|
429
429
|
// Inline function 'kotlin.collections.set' call
|
|
430
|
-
var value_0 = new CacheEntry(value, System_instance.
|
|
430
|
+
var value_0 = new CacheEntry(value, System_instance.ql().nm());
|
|
431
431
|
tmp0_0.g3(key, value_0);
|
|
432
432
|
};
|
|
433
433
|
function BotChatConfig() {
|
|
434
434
|
BotChatConfig_instance = this;
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
}
|
|
441
|
-
protoOf(BotChatConfig).
|
|
442
|
-
var tmp0_elvis_lhs = this.
|
|
435
|
+
this.q7q_1 = mapOf([to(0, '\u0412\u0435\u0441\u0435\u043B\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C. \u041B\u044E\u0431\u0438\u0442\u044C \u043F\u043E\u0436\u0430\u0440\u0442\u0443\u0432\u0430\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0443\u0442\u0438\u0441\u044F. \u041F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456.\n \u0412\u0431\u043E\u043B\u0456\u0432\u0430\u0454 \u0437\u0430 \u043A\u0430\u0440\u0442\u0438 \u044F\u043A \u0437\u0430 \u0444\u0443\u0442\u0431\u043E\u043B. \u041C\u043E\u0436\u0435 \u0441\u043A\u0430\u0437\u0430\u0442\u0438 "\u043E\u0442 \u0445\u0430\u043B\u0435\u043F\u0430", "\u0431\u043B\u044F\u0445\u0430-\u043C\u0443\u0445\u0430", "\u043D\u0456\u0447\u043E \u0441\u043E\u0431\u0456".'), to(1, '\u0421\u043F\u043E\u043A\u0456\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C \u0437\u0456 \u041B\u044C\u0432\u043E\u0432\u0430. \u0413\u043E\u0432\u043E\u0440\u0438\u0442\u044C \u0442\u0440\u043E\u0445\u0438 \u043F\u043E-\u0437\u0430\u0445\u0456\u0434\u043D\u043E\u043C\u0443 ("\u0444\u0430\u0439\u043D\u043E", "\u0430\u044F\u043A\u0436\u0435").\n \u0406\u043D\u043E\u0434\u0456 \u0432\u0441\u044F\u043A\u043D\u0435 \u0449\u043E\u0441\u044C \u0442\u0438\u043F\u0443 "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C" \u0430\u0431\u043E "\u0442\u0430 \u0448\u043E \u0442\u0438 \u043A\u0430\u0436\u0435\u0448". \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0441\u0435\u0440\u0439\u043E\u0437\u043D\u0438\u0439.'), to(2, '\u0417\u0430\u043F\u0430\u043B\u044C\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0435\u0446\u044C. \u041A\u043E\u043D\u043A\u0443\u0440\u0435\u043D\u0442\u043D\u0438\u0439, \u043B\u044E\u0431\u0438\u0442\u044C \u043F\u0435\u0440\u0435\u043C\u0430\u0433\u0430\u0442\u0438. \u041C\u043E\u0436\u0435 \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u0441\u043B\u0430\u0442\u0438 "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438"\n \u0430\u0431\u043E "\u0430\u043D\u0443 \u043D\u043E\u0440\u043C\u0430\u043B\u044C\u043D\u043E \u0433\u0440\u0430\u0439". \u0422\u0440\u043E\u0445\u0438 \u0431\u0430\u0437\u0456\u043A\u0430, \u0430\u043B\u0435 \u043F\u043E-\u0434\u043E\u0431\u0440\u043E\u043C\u0443. \u0420\u0435\u0430\u0433\u0443\u0454 \u0435\u043C\u043E\u0446\u0456\u0439\u043D\u043E \u043D\u0430 \u0433\u0440\u0443.'), to(3, '\u0414\u043E\u0441\u0432\u0456\u0434\u0447\u0435\u043D\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C, \u043C\u043E\u0436\u0435 \u0442\u0440\u043E\u0445\u0438 \u0441\u0442\u0430\u0440\u0448\u0438\u0439. \u0406\u043D\u043E\u0434\u0456 \u0434\u0430\u0441\u0442\u044C \u043F\u043E\u0440\u0430\u0434\u0443. \u041C\u043E\u0436\u0435 \u0431\u0443\u0440\u043A\u043D\u0443\u0442\u0438 "\u0442\u0430 \u0449\u043E \u0436 \u0442\u0438 \u0440\u043E\u0431\u0438\u0448"\n \u0430\u0431\u043E "\u043E\u0445 \u0439\u043E\u0431\u0430\u043D\u0430". \u041C\u0443\u0434\u0440\u0456\u0448\u0438\u0439 \u0437\u0430 \u0456\u043D\u0448\u0438\u0445, \u0430\u043B\u0435 \u0442\u0435\u0436 \u043D\u0435 \u0441\u0432\u044F\u0442\u0438\u0439 \u0443 \u0432\u0438\u0440\u0430\u0437\u0430\u0445.'), to(4, '\u0421\u043E\u043B\u0434\u0430\u0442 \u0417\u0421\u0423, \u0433\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438 \u043D\u0430 \u0432\u0456\u0434\u043F\u043E\u0447\u0438\u043D\u043A\u0443. \u0416\u043E\u0440\u0441\u0442\u043A\u0438\u0439 \u0433\u0443\u043C\u043E\u0440, \u043F\u0440\u044F\u043C\u0438\u0439. \u041C\u043E\u0436\u0435 \u0441\u043A\u0430\u0437\u0430\u0442\u0438 "\u0442\u0440\u0438\u043C\u0430\u0439 \u043F\u043E\u0437\u0438\u0446\u0456\u044E",\n "\u0432\u0456\u0434\u0431\u0456\u0439", "\u0439\u043E\u0431\u0430\u043D\u0430 \u0440\u043E\u0442\u0430". \u0421\u0442\u0440\u0438\u043C\u0430\u043D\u0438\u0439 \u0430\u043B\u0435 \u0440\u0456\u0437\u043A\u0438\u0439. \u0412\u0456\u0439\u0441\u044C\u043A\u043E\u0432\u0438\u0439 \u0441\u043B\u0435\u043D\u0433.')]);
|
|
436
|
+
this.r7q_1 = '\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C. \u0413\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0435\u0442\u044C\u0441\u044F,\n \u043F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456. \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u0439, \u0430\u043B\u0435 \u0439 \u043D\u0435 \u0437\u043B\u0438\u0439.';
|
|
437
|
+
this.s7q_1 = '\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438';
|
|
438
|
+
this.t7q_1 = "\u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E \u043D\u0430 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0433\u0440\u0430\u0432\u0446\u044F \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E \u043C\u043E\u0432\u043E\u044E.\n\u041F\u0430\u043C'\u044F\u0442\u0430\u0439: \u0442\u0438 \u0436\u0438\u0432\u0430 \u043B\u044E\u0434\u0438\u043D\u0430 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI. \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043C\u043E\u0436\u0435\u0448 \u0442\u0440\u043E\u0445\u0438 \u043F\u043E\u043C\u0430\u0442\u044E\u043A\u0430\u0442\u0438\u0441\u044F.\n\u0412\u0410\u0416\u041B\u0418\u0412\u041E: \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C 1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!";
|
|
439
|
+
this.u7q_1 = '\u0417\u0433\u0435\u043D\u0435\u0440\u0443\u0439 \u0441\u043F\u043E\u043D\u0442\u0430\u043D\u043D\u0438\u0439 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!).\n\u0420\u0435\u0430\u0433\u0443\u0439 \u043D\u0430 \u0441\u0442\u0430\u043D \u0433\u0440\u0438 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E. \u0411\u0443\u0434\u044C \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0447\u043D\u0438\u043C. \u041C\u043E\u0436\u0435\u0448 \u0432\u0436\u0438\u0442\u0438 \u043B\u0435\u0433\u043A\u0438\u0439 \u043C\u0430\u0442\u044E\u043A \u044F\u043A\u0449\u043E \u043F\u0456\u0434\u0445\u043E\u0434\u0438\u0442\u044C.';
|
|
440
|
+
}
|
|
441
|
+
protoOf(BotChatConfig).v7q = function (playerNumber) {
|
|
442
|
+
var tmp0_elvis_lhs = this.q7q_1.v2(playerNumber % this.q7q_1.g1() | 0);
|
|
443
443
|
return tmp0_elvis_lhs == null ? '\u0417\u0432\u0438\u0447\u0430\u0439\u043D\u0438\u0439 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0438\u0439 \u0433\u0440\u0430\u0432\u0435\u0446\u044C. \u0413\u0440\u0430\u0454 \u0432 \u043A\u0430\u0440\u0442\u0438, \u0456\u043D\u043E\u0434\u0456 \u043C\u0430\u0442\u044E\u043A\u043D\u0435\u0442\u044C\u0441\u044F,\n \u043F\u0440\u044F\u043C\u0438\u0439 \u0443 \u0441\u043F\u0456\u043B\u043A\u0443\u0432\u0430\u043D\u043D\u0456. \u041D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u0439, \u0430\u043B\u0435 \u0439 \u043D\u0435 \u0437\u043B\u0438\u0439.' : tmp0_elvis_lhs;
|
|
444
444
|
};
|
|
445
445
|
var BotChatConfig_instance;
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
// Inline function 'kotlin.arrayOf' call
|
|
459
459
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
460
460
|
// Inline function 'kotlin.js.asDynamic' call
|
|
461
|
-
tmp.
|
|
461
|
+
tmp.w7q_1 = [null, null, lazy(tmp_0, BotChatContext$Companion$$childSerializers$_anonymous__c0jn7e), null];
|
|
462
462
|
}
|
|
463
463
|
var Companion_instance_1;
|
|
464
464
|
function Companion_getInstance_0() {
|
|
@@ -469,31 +469,31 @@
|
|
|
469
469
|
function $serializer() {
|
|
470
470
|
$serializer_instance = this;
|
|
471
471
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.BotChatContext', this, 4);
|
|
472
|
-
tmp0_serialDesc.
|
|
473
|
-
tmp0_serialDesc.
|
|
474
|
-
tmp0_serialDesc.
|
|
475
|
-
tmp0_serialDesc.
|
|
476
|
-
this.
|
|
477
|
-
}
|
|
478
|
-
protoOf($serializer).
|
|
479
|
-
var tmp0_desc = this.
|
|
480
|
-
var tmp1_output = encoder.
|
|
481
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
482
|
-
tmp1_output.
|
|
483
|
-
tmp1_output.
|
|
484
|
-
if (tmp1_output.
|
|
485
|
-
tmp1_output.
|
|
472
|
+
tmp0_serialDesc.b11('botPersonality', false);
|
|
473
|
+
tmp0_serialDesc.b11('gameState', false);
|
|
474
|
+
tmp0_serialDesc.b11('conversationHistory', true);
|
|
475
|
+
tmp0_serialDesc.b11('playerName', true);
|
|
476
|
+
this.x7q_1 = tmp0_serialDesc;
|
|
477
|
+
}
|
|
478
|
+
protoOf($serializer).y7q = function (encoder, value) {
|
|
479
|
+
var tmp0_desc = this.x7q_1;
|
|
480
|
+
var tmp1_output = encoder.jt(tmp0_desc);
|
|
481
|
+
var tmp2_cached = Companion_getInstance_0().w7q_1;
|
|
482
|
+
tmp1_output.yu(tmp0_desc, 0, value.z7q_1);
|
|
483
|
+
tmp1_output.yu(tmp0_desc, 1, value.a7r_1);
|
|
484
|
+
if (tmp1_output.gv(tmp0_desc, 2) ? true : !equals(value.b7r_1, emptyList())) {
|
|
485
|
+
tmp1_output.av(tmp0_desc, 2, tmp2_cached[2].o1(), value.b7r_1);
|
|
486
486
|
}
|
|
487
|
-
if (tmp1_output.
|
|
488
|
-
tmp1_output.
|
|
487
|
+
if (tmp1_output.gv(tmp0_desc, 3) ? true : !(value.c7r_1 == null)) {
|
|
488
|
+
tmp1_output.cv(tmp0_desc, 3, StringSerializer_getInstance(), value.c7r_1);
|
|
489
489
|
}
|
|
490
|
-
tmp1_output.
|
|
490
|
+
tmp1_output.kt(tmp0_desc);
|
|
491
491
|
};
|
|
492
|
-
protoOf($serializer).
|
|
493
|
-
return this.
|
|
492
|
+
protoOf($serializer).xp = function (encoder, value) {
|
|
493
|
+
return this.y7q(encoder, value instanceof BotChatContext ? value : THROW_CCE());
|
|
494
494
|
};
|
|
495
|
-
protoOf($serializer).
|
|
496
|
-
var tmp0_desc = this.
|
|
495
|
+
protoOf($serializer).yp = function (decoder) {
|
|
496
|
+
var tmp0_desc = this.x7q_1;
|
|
497
497
|
var tmp1_flag = true;
|
|
498
498
|
var tmp2_index = 0;
|
|
499
499
|
var tmp3_bitMask0 = 0;
|
|
@@ -501,52 +501,52 @@
|
|
|
501
501
|
var tmp5_local1 = null;
|
|
502
502
|
var tmp6_local2 = null;
|
|
503
503
|
var tmp7_local3 = null;
|
|
504
|
-
var tmp8_input = decoder.
|
|
505
|
-
var tmp9_cached = Companion_getInstance_0().
|
|
506
|
-
if (tmp8_input.
|
|
507
|
-
tmp4_local0 = tmp8_input.
|
|
504
|
+
var tmp8_input = decoder.jt(tmp0_desc);
|
|
505
|
+
var tmp9_cached = Companion_getInstance_0().w7q_1;
|
|
506
|
+
if (tmp8_input.zt()) {
|
|
507
|
+
tmp4_local0 = tmp8_input.tt(tmp0_desc, 0);
|
|
508
508
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
509
|
-
tmp5_local1 = tmp8_input.
|
|
509
|
+
tmp5_local1 = tmp8_input.tt(tmp0_desc, 1);
|
|
510
510
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
511
|
-
tmp6_local2 = tmp8_input.
|
|
511
|
+
tmp6_local2 = tmp8_input.vt(tmp0_desc, 2, tmp9_cached[2].o1(), tmp6_local2);
|
|
512
512
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
513
|
-
tmp7_local3 = tmp8_input.
|
|
513
|
+
tmp7_local3 = tmp8_input.xt(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
514
514
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
515
515
|
} else
|
|
516
516
|
while (tmp1_flag) {
|
|
517
|
-
tmp2_index = tmp8_input.
|
|
517
|
+
tmp2_index = tmp8_input.au(tmp0_desc);
|
|
518
518
|
switch (tmp2_index) {
|
|
519
519
|
case -1:
|
|
520
520
|
tmp1_flag = false;
|
|
521
521
|
break;
|
|
522
522
|
case 0:
|
|
523
|
-
tmp4_local0 = tmp8_input.
|
|
523
|
+
tmp4_local0 = tmp8_input.tt(tmp0_desc, 0);
|
|
524
524
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
525
525
|
break;
|
|
526
526
|
case 1:
|
|
527
|
-
tmp5_local1 = tmp8_input.
|
|
527
|
+
tmp5_local1 = tmp8_input.tt(tmp0_desc, 1);
|
|
528
528
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
529
529
|
break;
|
|
530
530
|
case 2:
|
|
531
|
-
tmp6_local2 = tmp8_input.
|
|
531
|
+
tmp6_local2 = tmp8_input.vt(tmp0_desc, 2, tmp9_cached[2].o1(), tmp6_local2);
|
|
532
532
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
533
533
|
break;
|
|
534
534
|
case 3:
|
|
535
|
-
tmp7_local3 = tmp8_input.
|
|
535
|
+
tmp7_local3 = tmp8_input.xt(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
536
536
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
537
537
|
break;
|
|
538
538
|
default:
|
|
539
539
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
tmp8_input.
|
|
542
|
+
tmp8_input.kt(tmp0_desc);
|
|
543
543
|
return BotChatContext_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
544
544
|
};
|
|
545
|
-
protoOf($serializer).
|
|
546
|
-
return this.
|
|
545
|
+
protoOf($serializer).wp = function () {
|
|
546
|
+
return this.x7q_1;
|
|
547
547
|
};
|
|
548
|
-
protoOf($serializer).
|
|
549
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
548
|
+
protoOf($serializer).q11 = function () {
|
|
549
|
+
var tmp0_cached = Companion_getInstance_0().w7q_1;
|
|
550
550
|
// Inline function 'kotlin.arrayOf' call
|
|
551
551
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
552
552
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -560,18 +560,18 @@
|
|
|
560
560
|
}
|
|
561
561
|
function BotChatContext_init_$Init$(seen0, botPersonality, gameState, conversationHistory, playerName, serializationConstructorMarker, $this) {
|
|
562
562
|
if (!(3 === (3 & seen0))) {
|
|
563
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
563
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().x7q_1);
|
|
564
564
|
}
|
|
565
|
-
$this.
|
|
566
|
-
$this.
|
|
565
|
+
$this.z7q_1 = botPersonality;
|
|
566
|
+
$this.a7r_1 = gameState;
|
|
567
567
|
if (0 === (seen0 & 4))
|
|
568
|
-
$this.
|
|
568
|
+
$this.b7r_1 = emptyList();
|
|
569
569
|
else
|
|
570
|
-
$this.
|
|
570
|
+
$this.b7r_1 = conversationHistory;
|
|
571
571
|
if (0 === (seen0 & 8))
|
|
572
|
-
$this.
|
|
572
|
+
$this.c7r_1 = null;
|
|
573
573
|
else
|
|
574
|
-
$this.
|
|
574
|
+
$this.c7r_1 = playerName;
|
|
575
575
|
return $this;
|
|
576
576
|
}
|
|
577
577
|
function BotChatContext_init_$Create$(seen0, botPersonality, gameState, conversationHistory, playerName, serializationConstructorMarker) {
|
|
@@ -581,19 +581,19 @@
|
|
|
581
581
|
Companion_getInstance_0();
|
|
582
582
|
conversationHistory = conversationHistory === VOID ? emptyList() : conversationHistory;
|
|
583
583
|
playerName = playerName === VOID ? null : playerName;
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
584
|
+
this.z7q_1 = botPersonality;
|
|
585
|
+
this.a7r_1 = gameState;
|
|
586
|
+
this.b7r_1 = conversationHistory;
|
|
587
|
+
this.c7r_1 = playerName;
|
|
588
588
|
}
|
|
589
589
|
protoOf(BotChatContext).toString = function () {
|
|
590
|
-
return 'BotChatContext(botPersonality=' + this.
|
|
590
|
+
return 'BotChatContext(botPersonality=' + this.z7q_1 + ', gameState=' + this.a7r_1 + ', conversationHistory=' + toString(this.b7r_1) + ', playerName=' + this.c7r_1 + ')';
|
|
591
591
|
};
|
|
592
592
|
protoOf(BotChatContext).hashCode = function () {
|
|
593
|
-
var result = getStringHashCode(this.
|
|
594
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
595
|
-
result = imul(result, 31) + hashCode(this.
|
|
596
|
-
result = imul(result, 31) + (this.
|
|
593
|
+
var result = getStringHashCode(this.z7q_1);
|
|
594
|
+
result = imul(result, 31) + getStringHashCode(this.a7r_1) | 0;
|
|
595
|
+
result = imul(result, 31) + hashCode(this.b7r_1) | 0;
|
|
596
|
+
result = imul(result, 31) + (this.c7r_1 == null ? 0 : getStringHashCode(this.c7r_1)) | 0;
|
|
597
597
|
return result;
|
|
598
598
|
};
|
|
599
599
|
protoOf(BotChatContext).equals = function (other) {
|
|
@@ -601,18 +601,18 @@
|
|
|
601
601
|
return true;
|
|
602
602
|
if (!(other instanceof BotChatContext))
|
|
603
603
|
return false;
|
|
604
|
-
if (!(this.y7q_1 === other.y7q_1))
|
|
605
|
-
return false;
|
|
606
604
|
if (!(this.z7q_1 === other.z7q_1))
|
|
607
605
|
return false;
|
|
608
|
-
if (!
|
|
606
|
+
if (!(this.a7r_1 === other.a7r_1))
|
|
607
|
+
return false;
|
|
608
|
+
if (!equals(this.b7r_1, other.b7r_1))
|
|
609
609
|
return false;
|
|
610
|
-
if (!(this.
|
|
610
|
+
if (!(this.c7r_1 == other.c7r_1))
|
|
611
611
|
return false;
|
|
612
612
|
return true;
|
|
613
613
|
};
|
|
614
614
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
615
|
-
return $this.
|
|
615
|
+
return $this.d7r_1.o1();
|
|
616
616
|
}
|
|
617
617
|
function ChatMessage$Role$Companion$_anonymous__13jozo() {
|
|
618
618
|
var tmp = values();
|
|
@@ -636,13 +636,13 @@
|
|
|
636
636
|
Companion_instance_2 = this;
|
|
637
637
|
var tmp = this;
|
|
638
638
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
639
|
-
tmp.
|
|
639
|
+
tmp.d7r_1 = lazy(tmp_0, ChatMessage$Role$Companion$_anonymous__13jozo);
|
|
640
640
|
}
|
|
641
|
-
protoOf(Companion_0).
|
|
641
|
+
protoOf(Companion_0).i5f = function () {
|
|
642
642
|
return _get_$cachedSerializer__te6jhj(this);
|
|
643
643
|
};
|
|
644
|
-
protoOf(Companion_0).
|
|
645
|
-
return this.
|
|
644
|
+
protoOf(Companion_0).b12 = function (typeParamsSerializers) {
|
|
645
|
+
return this.i5f();
|
|
646
646
|
};
|
|
647
647
|
var Companion_instance_2;
|
|
648
648
|
function Companion_getInstance_1() {
|
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
Companion_getInstance_1();
|
|
663
663
|
}
|
|
664
664
|
function ChatMessage$Companion$$childSerializers$_anonymous__qywqat() {
|
|
665
|
-
return Companion_getInstance_1().
|
|
665
|
+
return Companion_getInstance_1().i5f();
|
|
666
666
|
}
|
|
667
667
|
function Role(name, ordinal) {
|
|
668
668
|
Enum.call(this, name, ordinal);
|
|
@@ -674,15 +674,15 @@
|
|
|
674
674
|
// Inline function 'kotlin.arrayOf' call
|
|
675
675
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
676
676
|
// Inline function 'kotlin.js.asDynamic' call
|
|
677
|
-
tmp.
|
|
677
|
+
tmp.e7r_1 = [lazy(tmp_0, ChatMessage$Companion$$childSerializers$_anonymous__qywqat), null];
|
|
678
678
|
}
|
|
679
|
-
protoOf(Companion_1).
|
|
679
|
+
protoOf(Companion_1).f7r = function (content) {
|
|
680
680
|
return new ChatMessage(Role_SYSTEM_getInstance(), content);
|
|
681
681
|
};
|
|
682
|
-
protoOf(Companion_1).
|
|
682
|
+
protoOf(Companion_1).g7r = function (content) {
|
|
683
683
|
return new ChatMessage(Role_USER_getInstance(), content);
|
|
684
684
|
};
|
|
685
|
-
protoOf(Companion_1).
|
|
685
|
+
protoOf(Companion_1).h7r = function (content) {
|
|
686
686
|
return new ChatMessage(Role_ASSISTANT_getInstance(), content);
|
|
687
687
|
};
|
|
688
688
|
var Companion_instance_3;
|
|
@@ -694,65 +694,65 @@
|
|
|
694
694
|
function $serializer_0() {
|
|
695
695
|
$serializer_instance_0 = this;
|
|
696
696
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.ChatMessage', this, 2);
|
|
697
|
-
tmp0_serialDesc.
|
|
698
|
-
tmp0_serialDesc.
|
|
699
|
-
this.
|
|
700
|
-
}
|
|
701
|
-
protoOf($serializer_0).
|
|
702
|
-
var tmp0_desc = this.
|
|
703
|
-
var tmp1_output = encoder.
|
|
704
|
-
var tmp2_cached = Companion_getInstance_2().
|
|
705
|
-
tmp1_output.
|
|
706
|
-
tmp1_output.
|
|
707
|
-
tmp1_output.
|
|
708
|
-
};
|
|
709
|
-
protoOf($serializer_0).
|
|
710
|
-
return this.
|
|
711
|
-
};
|
|
712
|
-
protoOf($serializer_0).
|
|
713
|
-
var tmp0_desc = this.
|
|
697
|
+
tmp0_serialDesc.b11('role', false);
|
|
698
|
+
tmp0_serialDesc.b11('content', false);
|
|
699
|
+
this.i7r_1 = tmp0_serialDesc;
|
|
700
|
+
}
|
|
701
|
+
protoOf($serializer_0).j7r = function (encoder, value) {
|
|
702
|
+
var tmp0_desc = this.i7r_1;
|
|
703
|
+
var tmp1_output = encoder.jt(tmp0_desc);
|
|
704
|
+
var tmp2_cached = Companion_getInstance_2().e7r_1;
|
|
705
|
+
tmp1_output.av(tmp0_desc, 0, tmp2_cached[0].o1(), value.k7r_1);
|
|
706
|
+
tmp1_output.yu(tmp0_desc, 1, value.l7r_1);
|
|
707
|
+
tmp1_output.kt(tmp0_desc);
|
|
708
|
+
};
|
|
709
|
+
protoOf($serializer_0).xp = function (encoder, value) {
|
|
710
|
+
return this.j7r(encoder, value instanceof ChatMessage ? value : THROW_CCE());
|
|
711
|
+
};
|
|
712
|
+
protoOf($serializer_0).yp = function (decoder) {
|
|
713
|
+
var tmp0_desc = this.i7r_1;
|
|
714
714
|
var tmp1_flag = true;
|
|
715
715
|
var tmp2_index = 0;
|
|
716
716
|
var tmp3_bitMask0 = 0;
|
|
717
717
|
var tmp4_local0 = null;
|
|
718
718
|
var tmp5_local1 = null;
|
|
719
|
-
var tmp6_input = decoder.
|
|
720
|
-
var tmp7_cached = Companion_getInstance_2().
|
|
721
|
-
if (tmp6_input.
|
|
722
|
-
tmp4_local0 = tmp6_input.
|
|
719
|
+
var tmp6_input = decoder.jt(tmp0_desc);
|
|
720
|
+
var tmp7_cached = Companion_getInstance_2().e7r_1;
|
|
721
|
+
if (tmp6_input.zt()) {
|
|
722
|
+
tmp4_local0 = tmp6_input.vt(tmp0_desc, 0, tmp7_cached[0].o1(), tmp4_local0);
|
|
723
723
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
724
|
-
tmp5_local1 = tmp6_input.
|
|
724
|
+
tmp5_local1 = tmp6_input.tt(tmp0_desc, 1);
|
|
725
725
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
726
726
|
} else
|
|
727
727
|
while (tmp1_flag) {
|
|
728
|
-
tmp2_index = tmp6_input.
|
|
728
|
+
tmp2_index = tmp6_input.au(tmp0_desc);
|
|
729
729
|
switch (tmp2_index) {
|
|
730
730
|
case -1:
|
|
731
731
|
tmp1_flag = false;
|
|
732
732
|
break;
|
|
733
733
|
case 0:
|
|
734
|
-
tmp4_local0 = tmp6_input.
|
|
734
|
+
tmp4_local0 = tmp6_input.vt(tmp0_desc, 0, tmp7_cached[0].o1(), tmp4_local0);
|
|
735
735
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
736
736
|
break;
|
|
737
737
|
case 1:
|
|
738
|
-
tmp5_local1 = tmp6_input.
|
|
738
|
+
tmp5_local1 = tmp6_input.tt(tmp0_desc, 1);
|
|
739
739
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
740
740
|
break;
|
|
741
741
|
default:
|
|
742
742
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
tmp6_input.
|
|
745
|
+
tmp6_input.kt(tmp0_desc);
|
|
746
746
|
return ChatMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
747
747
|
};
|
|
748
|
-
protoOf($serializer_0).
|
|
749
|
-
return this.
|
|
748
|
+
protoOf($serializer_0).wp = function () {
|
|
749
|
+
return this.i7r_1;
|
|
750
750
|
};
|
|
751
|
-
protoOf($serializer_0).
|
|
751
|
+
protoOf($serializer_0).q11 = function () {
|
|
752
752
|
// Inline function 'kotlin.arrayOf' call
|
|
753
753
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
754
754
|
// Inline function 'kotlin.js.asDynamic' call
|
|
755
|
-
return [Companion_getInstance_2().
|
|
755
|
+
return [Companion_getInstance_2().e7r_1[0].o1(), StringSerializer_getInstance()];
|
|
756
756
|
};
|
|
757
757
|
var $serializer_instance_0;
|
|
758
758
|
function $serializer_getInstance_0() {
|
|
@@ -762,10 +762,10 @@
|
|
|
762
762
|
}
|
|
763
763
|
function ChatMessage_init_$Init$(seen0, role, content, serializationConstructorMarker, $this) {
|
|
764
764
|
if (!(3 === (3 & seen0))) {
|
|
765
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
765
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().i7r_1);
|
|
766
766
|
}
|
|
767
|
-
$this.
|
|
768
|
-
$this.
|
|
767
|
+
$this.k7r_1 = role;
|
|
768
|
+
$this.l7r_1 = content;
|
|
769
769
|
return $this;
|
|
770
770
|
}
|
|
771
771
|
function ChatMessage_init_$Create$(seen0, role, content, serializationConstructorMarker) {
|
|
@@ -785,15 +785,15 @@
|
|
|
785
785
|
}
|
|
786
786
|
function ChatMessage(role, content) {
|
|
787
787
|
Companion_getInstance_2();
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
788
|
+
this.k7r_1 = role;
|
|
789
|
+
this.l7r_1 = content;
|
|
790
790
|
}
|
|
791
791
|
protoOf(ChatMessage).toString = function () {
|
|
792
|
-
return 'ChatMessage(role=' + this.
|
|
792
|
+
return 'ChatMessage(role=' + this.k7r_1.toString() + ', content=' + this.l7r_1 + ')';
|
|
793
793
|
};
|
|
794
794
|
protoOf(ChatMessage).hashCode = function () {
|
|
795
|
-
var result = this.
|
|
796
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
795
|
+
var result = this.k7r_1.hashCode();
|
|
796
|
+
result = imul(result, 31) + getStringHashCode(this.l7r_1) | 0;
|
|
797
797
|
return result;
|
|
798
798
|
};
|
|
799
799
|
protoOf(ChatMessage).equals = function (other) {
|
|
@@ -801,9 +801,9 @@
|
|
|
801
801
|
return true;
|
|
802
802
|
if (!(other instanceof ChatMessage))
|
|
803
803
|
return false;
|
|
804
|
-
if (!this.
|
|
804
|
+
if (!this.k7r_1.equals(other.k7r_1))
|
|
805
805
|
return false;
|
|
806
|
-
if (!(this.
|
|
806
|
+
if (!(this.l7r_1 === other.l7r_1))
|
|
807
807
|
return false;
|
|
808
808
|
return true;
|
|
809
809
|
};
|
|
@@ -814,25 +814,25 @@
|
|
|
814
814
|
maxTokens = maxTokens === VOID ? 150 : maxTokens;
|
|
815
815
|
timeout = timeout === VOID ? 30000 : timeout;
|
|
816
816
|
enableDebugLogging = enableDebugLogging === VOID ? false : enableDebugLogging;
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
823
|
-
this.
|
|
817
|
+
this.p7p_1 = apiKey;
|
|
818
|
+
this.q7p_1 = model;
|
|
819
|
+
this.r7p_1 = baseUrl;
|
|
820
|
+
this.s7p_1 = temperature;
|
|
821
|
+
this.t7p_1 = maxTokens;
|
|
822
|
+
this.u7p_1 = timeout;
|
|
823
|
+
this.v7p_1 = enableDebugLogging;
|
|
824
824
|
}
|
|
825
825
|
protoOf(OpenAIConfig).toString = function () {
|
|
826
|
-
return 'OpenAIConfig(apiKey=' + this.
|
|
826
|
+
return 'OpenAIConfig(apiKey=' + this.p7p_1 + ', model=' + this.q7p_1 + ', baseUrl=' + this.r7p_1 + ', temperature=' + this.s7p_1 + ', maxTokens=' + this.t7p_1 + ', timeout=' + this.u7p_1 + ', enableDebugLogging=' + this.v7p_1 + ')';
|
|
827
827
|
};
|
|
828
828
|
protoOf(OpenAIConfig).hashCode = function () {
|
|
829
|
-
var result = getStringHashCode(this.
|
|
830
|
-
result = imul(result, 31) + getStringHashCode(this.p7p_1) | 0;
|
|
829
|
+
var result = getStringHashCode(this.p7p_1);
|
|
831
830
|
result = imul(result, 31) + getStringHashCode(this.q7p_1) | 0;
|
|
832
|
-
result = imul(result, 31) +
|
|
833
|
-
result = imul(result, 31) + this.s7p_1 | 0;
|
|
831
|
+
result = imul(result, 31) + getStringHashCode(this.r7p_1) | 0;
|
|
832
|
+
result = imul(result, 31) + getNumberHashCode(this.s7p_1) | 0;
|
|
834
833
|
result = imul(result, 31) + this.t7p_1 | 0;
|
|
835
|
-
result = imul(result, 31) +
|
|
834
|
+
result = imul(result, 31) + this.u7p_1 | 0;
|
|
835
|
+
result = imul(result, 31) + getBooleanHashCode(this.v7p_1) | 0;
|
|
836
836
|
return result;
|
|
837
837
|
};
|
|
838
838
|
protoOf(OpenAIConfig).equals = function (other) {
|
|
@@ -840,20 +840,20 @@
|
|
|
840
840
|
return true;
|
|
841
841
|
if (!(other instanceof OpenAIConfig))
|
|
842
842
|
return false;
|
|
843
|
-
if (!(this.o7p_1 === other.o7p_1))
|
|
844
|
-
return false;
|
|
845
843
|
if (!(this.p7p_1 === other.p7p_1))
|
|
846
844
|
return false;
|
|
847
845
|
if (!(this.q7p_1 === other.q7p_1))
|
|
848
846
|
return false;
|
|
849
|
-
if (!
|
|
847
|
+
if (!(this.r7p_1 === other.r7p_1))
|
|
850
848
|
return false;
|
|
851
|
-
if (!(this.s7p_1
|
|
849
|
+
if (!equals(this.s7p_1, other.s7p_1))
|
|
852
850
|
return false;
|
|
853
851
|
if (!(this.t7p_1 === other.t7p_1))
|
|
854
852
|
return false;
|
|
855
853
|
if (!(this.u7p_1 === other.u7p_1))
|
|
856
854
|
return false;
|
|
855
|
+
if (!(this.v7p_1 === other.v7p_1))
|
|
856
|
+
return false;
|
|
857
857
|
return true;
|
|
858
858
|
};
|
|
859
859
|
function OpenAIRequest$Companion$$childSerializers$_anonymous__ff5rn1() {
|
|
@@ -866,7 +866,7 @@
|
|
|
866
866
|
// Inline function 'kotlin.arrayOf' call
|
|
867
867
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
868
868
|
// Inline function 'kotlin.js.asDynamic' call
|
|
869
|
-
tmp.
|
|
869
|
+
tmp.m7r_1 = [null, lazy(tmp_0, OpenAIRequest$Companion$$childSerializers$_anonymous__ff5rn1), null, null];
|
|
870
870
|
}
|
|
871
871
|
var Companion_instance_4;
|
|
872
872
|
function Companion_getInstance_3() {
|
|
@@ -877,27 +877,27 @@
|
|
|
877
877
|
function $serializer_1() {
|
|
878
878
|
$serializer_instance_1 = this;
|
|
879
879
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIRequest', this, 4);
|
|
880
|
-
tmp0_serialDesc.
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
tmp0_serialDesc.
|
|
883
|
-
tmp0_serialDesc.
|
|
884
|
-
this.
|
|
885
|
-
}
|
|
886
|
-
protoOf($serializer_1).
|
|
887
|
-
var tmp0_desc = this.
|
|
888
|
-
var tmp1_output = encoder.
|
|
889
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
890
|
-
tmp1_output.
|
|
891
|
-
tmp1_output.
|
|
892
|
-
tmp1_output.
|
|
893
|
-
tmp1_output.
|
|
894
|
-
tmp1_output.
|
|
895
|
-
};
|
|
896
|
-
protoOf($serializer_1).
|
|
897
|
-
return this.
|
|
898
|
-
};
|
|
899
|
-
protoOf($serializer_1).
|
|
900
|
-
var tmp0_desc = this.
|
|
880
|
+
tmp0_serialDesc.b11('model', false);
|
|
881
|
+
tmp0_serialDesc.b11('messages', false);
|
|
882
|
+
tmp0_serialDesc.b11('temperature', false);
|
|
883
|
+
tmp0_serialDesc.b11('max_tokens', false);
|
|
884
|
+
this.n7r_1 = tmp0_serialDesc;
|
|
885
|
+
}
|
|
886
|
+
protoOf($serializer_1).o7r = function (encoder, value) {
|
|
887
|
+
var tmp0_desc = this.n7r_1;
|
|
888
|
+
var tmp1_output = encoder.jt(tmp0_desc);
|
|
889
|
+
var tmp2_cached = Companion_getInstance_3().m7r_1;
|
|
890
|
+
tmp1_output.yu(tmp0_desc, 0, value.p7r_1);
|
|
891
|
+
tmp1_output.av(tmp0_desc, 1, tmp2_cached[1].o1(), value.q7r_1);
|
|
892
|
+
tmp1_output.wu(tmp0_desc, 2, value.r7r_1);
|
|
893
|
+
tmp1_output.tu(tmp0_desc, 3, value.s7r_1);
|
|
894
|
+
tmp1_output.kt(tmp0_desc);
|
|
895
|
+
};
|
|
896
|
+
protoOf($serializer_1).xp = function (encoder, value) {
|
|
897
|
+
return this.o7r(encoder, value instanceof OpenAIRequest ? value : THROW_CCE());
|
|
898
|
+
};
|
|
899
|
+
protoOf($serializer_1).yp = function (decoder) {
|
|
900
|
+
var tmp0_desc = this.n7r_1;
|
|
901
901
|
var tmp1_flag = true;
|
|
902
902
|
var tmp2_index = 0;
|
|
903
903
|
var tmp3_bitMask0 = 0;
|
|
@@ -905,52 +905,52 @@
|
|
|
905
905
|
var tmp5_local1 = null;
|
|
906
906
|
var tmp6_local2 = 0.0;
|
|
907
907
|
var tmp7_local3 = 0;
|
|
908
|
-
var tmp8_input = decoder.
|
|
909
|
-
var tmp9_cached = Companion_getInstance_3().
|
|
910
|
-
if (tmp8_input.
|
|
911
|
-
tmp4_local0 = tmp8_input.
|
|
908
|
+
var tmp8_input = decoder.jt(tmp0_desc);
|
|
909
|
+
var tmp9_cached = Companion_getInstance_3().m7r_1;
|
|
910
|
+
if (tmp8_input.zt()) {
|
|
911
|
+
tmp4_local0 = tmp8_input.tt(tmp0_desc, 0);
|
|
912
912
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
913
|
-
tmp5_local1 = tmp8_input.
|
|
913
|
+
tmp5_local1 = tmp8_input.vt(tmp0_desc, 1, tmp9_cached[1].o1(), tmp5_local1);
|
|
914
914
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
915
|
-
tmp6_local2 = tmp8_input.
|
|
915
|
+
tmp6_local2 = tmp8_input.rt(tmp0_desc, 2);
|
|
916
916
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
917
|
-
tmp7_local3 = tmp8_input.
|
|
917
|
+
tmp7_local3 = tmp8_input.ot(tmp0_desc, 3);
|
|
918
918
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
919
919
|
} else
|
|
920
920
|
while (tmp1_flag) {
|
|
921
|
-
tmp2_index = tmp8_input.
|
|
921
|
+
tmp2_index = tmp8_input.au(tmp0_desc);
|
|
922
922
|
switch (tmp2_index) {
|
|
923
923
|
case -1:
|
|
924
924
|
tmp1_flag = false;
|
|
925
925
|
break;
|
|
926
926
|
case 0:
|
|
927
|
-
tmp4_local0 = tmp8_input.
|
|
927
|
+
tmp4_local0 = tmp8_input.tt(tmp0_desc, 0);
|
|
928
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
929
929
|
break;
|
|
930
930
|
case 1:
|
|
931
|
-
tmp5_local1 = tmp8_input.
|
|
931
|
+
tmp5_local1 = tmp8_input.vt(tmp0_desc, 1, tmp9_cached[1].o1(), tmp5_local1);
|
|
932
932
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
933
933
|
break;
|
|
934
934
|
case 2:
|
|
935
|
-
tmp6_local2 = tmp8_input.
|
|
935
|
+
tmp6_local2 = tmp8_input.rt(tmp0_desc, 2);
|
|
936
936
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
937
937
|
break;
|
|
938
938
|
case 3:
|
|
939
|
-
tmp7_local3 = tmp8_input.
|
|
939
|
+
tmp7_local3 = tmp8_input.ot(tmp0_desc, 3);
|
|
940
940
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
941
941
|
break;
|
|
942
942
|
default:
|
|
943
943
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
|
-
tmp8_input.
|
|
946
|
+
tmp8_input.kt(tmp0_desc);
|
|
947
947
|
return OpenAIRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
948
948
|
};
|
|
949
|
-
protoOf($serializer_1).
|
|
950
|
-
return this.
|
|
949
|
+
protoOf($serializer_1).wp = function () {
|
|
950
|
+
return this.n7r_1;
|
|
951
951
|
};
|
|
952
|
-
protoOf($serializer_1).
|
|
953
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
952
|
+
protoOf($serializer_1).q11 = function () {
|
|
953
|
+
var tmp0_cached = Companion_getInstance_3().m7r_1;
|
|
954
954
|
// Inline function 'kotlin.arrayOf' call
|
|
955
955
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
956
956
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -964,12 +964,12 @@
|
|
|
964
964
|
}
|
|
965
965
|
function OpenAIRequest_init_$Init$(seen0, model, messages, temperature, maxTokens, serializationConstructorMarker, $this) {
|
|
966
966
|
if (!(15 === (15 & seen0))) {
|
|
967
|
-
throwMissingFieldException(seen0, 15, $serializer_getInstance_1().
|
|
967
|
+
throwMissingFieldException(seen0, 15, $serializer_getInstance_1().n7r_1);
|
|
968
968
|
}
|
|
969
|
-
$this.
|
|
970
|
-
$this.
|
|
971
|
-
$this.
|
|
972
|
-
$this.
|
|
969
|
+
$this.p7r_1 = model;
|
|
970
|
+
$this.q7r_1 = messages;
|
|
971
|
+
$this.r7r_1 = temperature;
|
|
972
|
+
$this.s7r_1 = maxTokens;
|
|
973
973
|
return $this;
|
|
974
974
|
}
|
|
975
975
|
function OpenAIRequest_init_$Create$(seen0, model, messages, temperature, maxTokens, serializationConstructorMarker) {
|
|
@@ -977,19 +977,19 @@
|
|
|
977
977
|
}
|
|
978
978
|
function OpenAIRequest(model, messages, temperature, maxTokens) {
|
|
979
979
|
Companion_getInstance_3();
|
|
980
|
-
this.
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
983
|
-
this.
|
|
980
|
+
this.p7r_1 = model;
|
|
981
|
+
this.q7r_1 = messages;
|
|
982
|
+
this.r7r_1 = temperature;
|
|
983
|
+
this.s7r_1 = maxTokens;
|
|
984
984
|
}
|
|
985
985
|
protoOf(OpenAIRequest).toString = function () {
|
|
986
|
-
return 'OpenAIRequest(model=' + this.
|
|
986
|
+
return 'OpenAIRequest(model=' + this.p7r_1 + ', messages=' + toString(this.q7r_1) + ', temperature=' + this.r7r_1 + ', maxTokens=' + this.s7r_1 + ')';
|
|
987
987
|
};
|
|
988
988
|
protoOf(OpenAIRequest).hashCode = function () {
|
|
989
|
-
var result = getStringHashCode(this.
|
|
990
|
-
result = imul(result, 31) + hashCode(this.
|
|
991
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
992
|
-
result = imul(result, 31) + this.
|
|
989
|
+
var result = getStringHashCode(this.p7r_1);
|
|
990
|
+
result = imul(result, 31) + hashCode(this.q7r_1) | 0;
|
|
991
|
+
result = imul(result, 31) + getNumberHashCode(this.r7r_1) | 0;
|
|
992
|
+
result = imul(result, 31) + this.s7r_1 | 0;
|
|
993
993
|
return result;
|
|
994
994
|
};
|
|
995
995
|
protoOf(OpenAIRequest).equals = function (other) {
|
|
@@ -997,83 +997,83 @@
|
|
|
997
997
|
return true;
|
|
998
998
|
if (!(other instanceof OpenAIRequest))
|
|
999
999
|
return false;
|
|
1000
|
-
if (!(this.
|
|
1001
|
-
return false;
|
|
1002
|
-
if (!equals(this.p7r_1, other.p7r_1))
|
|
1000
|
+
if (!(this.p7r_1 === other.p7r_1))
|
|
1003
1001
|
return false;
|
|
1004
1002
|
if (!equals(this.q7r_1, other.q7r_1))
|
|
1005
1003
|
return false;
|
|
1006
|
-
if (!(this.r7r_1
|
|
1004
|
+
if (!equals(this.r7r_1, other.r7r_1))
|
|
1005
|
+
return false;
|
|
1006
|
+
if (!(this.s7r_1 === other.s7r_1))
|
|
1007
1007
|
return false;
|
|
1008
1008
|
return true;
|
|
1009
1009
|
};
|
|
1010
1010
|
function $serializer_2() {
|
|
1011
1011
|
$serializer_instance_2 = this;
|
|
1012
1012
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse.Choice', this, 3);
|
|
1013
|
-
tmp0_serialDesc.
|
|
1014
|
-
tmp0_serialDesc.
|
|
1015
|
-
tmp0_serialDesc.
|
|
1016
|
-
this.
|
|
1017
|
-
}
|
|
1018
|
-
protoOf($serializer_2).
|
|
1019
|
-
var tmp0_desc = this.
|
|
1020
|
-
var tmp1_output = encoder.
|
|
1021
|
-
tmp1_output.
|
|
1022
|
-
tmp1_output.
|
|
1023
|
-
if (tmp1_output.
|
|
1024
|
-
tmp1_output.
|
|
1013
|
+
tmp0_serialDesc.b11('index', false);
|
|
1014
|
+
tmp0_serialDesc.b11('message', false);
|
|
1015
|
+
tmp0_serialDesc.b11('finish_reason', true);
|
|
1016
|
+
this.t7r_1 = tmp0_serialDesc;
|
|
1017
|
+
}
|
|
1018
|
+
protoOf($serializer_2).u7r = function (encoder, value) {
|
|
1019
|
+
var tmp0_desc = this.t7r_1;
|
|
1020
|
+
var tmp1_output = encoder.jt(tmp0_desc);
|
|
1021
|
+
tmp1_output.tu(tmp0_desc, 0, value.v7r_1);
|
|
1022
|
+
tmp1_output.av(tmp0_desc, 1, $serializer_getInstance_0(), value.w7r_1);
|
|
1023
|
+
if (tmp1_output.gv(tmp0_desc, 2) ? true : !(value.x7r_1 == null)) {
|
|
1024
|
+
tmp1_output.cv(tmp0_desc, 2, StringSerializer_getInstance(), value.x7r_1);
|
|
1025
1025
|
}
|
|
1026
|
-
tmp1_output.
|
|
1026
|
+
tmp1_output.kt(tmp0_desc);
|
|
1027
1027
|
};
|
|
1028
|
-
protoOf($serializer_2).
|
|
1029
|
-
return this.
|
|
1028
|
+
protoOf($serializer_2).xp = function (encoder, value) {
|
|
1029
|
+
return this.u7r(encoder, value instanceof Choice ? value : THROW_CCE());
|
|
1030
1030
|
};
|
|
1031
|
-
protoOf($serializer_2).
|
|
1032
|
-
var tmp0_desc = this.
|
|
1031
|
+
protoOf($serializer_2).yp = function (decoder) {
|
|
1032
|
+
var tmp0_desc = this.t7r_1;
|
|
1033
1033
|
var tmp1_flag = true;
|
|
1034
1034
|
var tmp2_index = 0;
|
|
1035
1035
|
var tmp3_bitMask0 = 0;
|
|
1036
1036
|
var tmp4_local0 = 0;
|
|
1037
1037
|
var tmp5_local1 = null;
|
|
1038
1038
|
var tmp6_local2 = null;
|
|
1039
|
-
var tmp7_input = decoder.
|
|
1040
|
-
if (tmp7_input.
|
|
1041
|
-
tmp4_local0 = tmp7_input.
|
|
1039
|
+
var tmp7_input = decoder.jt(tmp0_desc);
|
|
1040
|
+
if (tmp7_input.zt()) {
|
|
1041
|
+
tmp4_local0 = tmp7_input.ot(tmp0_desc, 0);
|
|
1042
1042
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1043
|
-
tmp5_local1 = tmp7_input.
|
|
1043
|
+
tmp5_local1 = tmp7_input.vt(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
1044
1044
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1045
|
-
tmp6_local2 = tmp7_input.
|
|
1045
|
+
tmp6_local2 = tmp7_input.xt(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1046
1046
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1047
1047
|
} else
|
|
1048
1048
|
while (tmp1_flag) {
|
|
1049
|
-
tmp2_index = tmp7_input.
|
|
1049
|
+
tmp2_index = tmp7_input.au(tmp0_desc);
|
|
1050
1050
|
switch (tmp2_index) {
|
|
1051
1051
|
case -1:
|
|
1052
1052
|
tmp1_flag = false;
|
|
1053
1053
|
break;
|
|
1054
1054
|
case 0:
|
|
1055
|
-
tmp4_local0 = tmp7_input.
|
|
1055
|
+
tmp4_local0 = tmp7_input.ot(tmp0_desc, 0);
|
|
1056
1056
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1057
1057
|
break;
|
|
1058
1058
|
case 1:
|
|
1059
|
-
tmp5_local1 = tmp7_input.
|
|
1059
|
+
tmp5_local1 = tmp7_input.vt(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
1060
1060
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1061
1061
|
break;
|
|
1062
1062
|
case 2:
|
|
1063
|
-
tmp6_local2 = tmp7_input.
|
|
1063
|
+
tmp6_local2 = tmp7_input.xt(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1064
1064
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1065
1065
|
break;
|
|
1066
1066
|
default:
|
|
1067
1067
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
|
-
tmp7_input.
|
|
1070
|
+
tmp7_input.kt(tmp0_desc);
|
|
1071
1071
|
return Choice_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf($serializer_2).
|
|
1074
|
-
return this.
|
|
1073
|
+
protoOf($serializer_2).wp = function () {
|
|
1074
|
+
return this.t7r_1;
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf($serializer_2).
|
|
1076
|
+
protoOf($serializer_2).q11 = function () {
|
|
1077
1077
|
// Inline function 'kotlin.arrayOf' call
|
|
1078
1078
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1079
1079
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1087,14 +1087,14 @@
|
|
|
1087
1087
|
}
|
|
1088
1088
|
function Choice_init_$Init$(seen0, index, message, finishReason, serializationConstructorMarker, $this) {
|
|
1089
1089
|
if (!(3 === (3 & seen0))) {
|
|
1090
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1090
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().t7r_1);
|
|
1091
1091
|
}
|
|
1092
|
-
$this.
|
|
1093
|
-
$this.
|
|
1092
|
+
$this.v7r_1 = index;
|
|
1093
|
+
$this.w7r_1 = message;
|
|
1094
1094
|
if (0 === (seen0 & 4))
|
|
1095
|
-
$this.
|
|
1095
|
+
$this.x7r_1 = null;
|
|
1096
1096
|
else
|
|
1097
|
-
$this.
|
|
1097
|
+
$this.x7r_1 = finishReason;
|
|
1098
1098
|
return $this;
|
|
1099
1099
|
}
|
|
1100
1100
|
function Choice_init_$Create$(seen0, index, message, finishReason, serializationConstructorMarker) {
|
|
@@ -1103,68 +1103,68 @@
|
|
|
1103
1103
|
function $serializer_3() {
|
|
1104
1104
|
$serializer_instance_3 = this;
|
|
1105
1105
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse.Usage', this, 3);
|
|
1106
|
-
tmp0_serialDesc.
|
|
1107
|
-
tmp0_serialDesc.
|
|
1108
|
-
tmp0_serialDesc.
|
|
1109
|
-
this.
|
|
1110
|
-
}
|
|
1111
|
-
protoOf($serializer_3).
|
|
1112
|
-
var tmp0_desc = this.
|
|
1113
|
-
var tmp1_output = encoder.
|
|
1114
|
-
tmp1_output.
|
|
1115
|
-
tmp1_output.
|
|
1116
|
-
tmp1_output.
|
|
1117
|
-
tmp1_output.
|
|
1118
|
-
};
|
|
1119
|
-
protoOf($serializer_3).
|
|
1120
|
-
return this.
|
|
1121
|
-
};
|
|
1122
|
-
protoOf($serializer_3).
|
|
1123
|
-
var tmp0_desc = this.
|
|
1106
|
+
tmp0_serialDesc.b11('prompt_tokens', false);
|
|
1107
|
+
tmp0_serialDesc.b11('completion_tokens', false);
|
|
1108
|
+
tmp0_serialDesc.b11('total_tokens', false);
|
|
1109
|
+
this.y7r_1 = tmp0_serialDesc;
|
|
1110
|
+
}
|
|
1111
|
+
protoOf($serializer_3).z7r = function (encoder, value) {
|
|
1112
|
+
var tmp0_desc = this.y7r_1;
|
|
1113
|
+
var tmp1_output = encoder.jt(tmp0_desc);
|
|
1114
|
+
tmp1_output.tu(tmp0_desc, 0, value.a7s_1);
|
|
1115
|
+
tmp1_output.tu(tmp0_desc, 1, value.b7s_1);
|
|
1116
|
+
tmp1_output.tu(tmp0_desc, 2, value.c7s_1);
|
|
1117
|
+
tmp1_output.kt(tmp0_desc);
|
|
1118
|
+
};
|
|
1119
|
+
protoOf($serializer_3).xp = function (encoder, value) {
|
|
1120
|
+
return this.z7r(encoder, value instanceof Usage ? value : THROW_CCE());
|
|
1121
|
+
};
|
|
1122
|
+
protoOf($serializer_3).yp = function (decoder) {
|
|
1123
|
+
var tmp0_desc = this.y7r_1;
|
|
1124
1124
|
var tmp1_flag = true;
|
|
1125
1125
|
var tmp2_index = 0;
|
|
1126
1126
|
var tmp3_bitMask0 = 0;
|
|
1127
1127
|
var tmp4_local0 = 0;
|
|
1128
1128
|
var tmp5_local1 = 0;
|
|
1129
1129
|
var tmp6_local2 = 0;
|
|
1130
|
-
var tmp7_input = decoder.
|
|
1131
|
-
if (tmp7_input.
|
|
1132
|
-
tmp4_local0 = tmp7_input.
|
|
1130
|
+
var tmp7_input = decoder.jt(tmp0_desc);
|
|
1131
|
+
if (tmp7_input.zt()) {
|
|
1132
|
+
tmp4_local0 = tmp7_input.ot(tmp0_desc, 0);
|
|
1133
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1134
|
-
tmp5_local1 = tmp7_input.
|
|
1134
|
+
tmp5_local1 = tmp7_input.ot(tmp0_desc, 1);
|
|
1135
1135
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1136
|
-
tmp6_local2 = tmp7_input.
|
|
1136
|
+
tmp6_local2 = tmp7_input.ot(tmp0_desc, 2);
|
|
1137
1137
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1138
1138
|
} else
|
|
1139
1139
|
while (tmp1_flag) {
|
|
1140
|
-
tmp2_index = tmp7_input.
|
|
1140
|
+
tmp2_index = tmp7_input.au(tmp0_desc);
|
|
1141
1141
|
switch (tmp2_index) {
|
|
1142
1142
|
case -1:
|
|
1143
1143
|
tmp1_flag = false;
|
|
1144
1144
|
break;
|
|
1145
1145
|
case 0:
|
|
1146
|
-
tmp4_local0 = tmp7_input.
|
|
1146
|
+
tmp4_local0 = tmp7_input.ot(tmp0_desc, 0);
|
|
1147
1147
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1148
1148
|
break;
|
|
1149
1149
|
case 1:
|
|
1150
|
-
tmp5_local1 = tmp7_input.
|
|
1150
|
+
tmp5_local1 = tmp7_input.ot(tmp0_desc, 1);
|
|
1151
1151
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 2:
|
|
1154
|
-
tmp6_local2 = tmp7_input.
|
|
1154
|
+
tmp6_local2 = tmp7_input.ot(tmp0_desc, 2);
|
|
1155
1155
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1156
1156
|
break;
|
|
1157
1157
|
default:
|
|
1158
1158
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1159
1159
|
}
|
|
1160
1160
|
}
|
|
1161
|
-
tmp7_input.
|
|
1161
|
+
tmp7_input.kt(tmp0_desc);
|
|
1162
1162
|
return Usage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1163
1163
|
};
|
|
1164
|
-
protoOf($serializer_3).
|
|
1165
|
-
return this.
|
|
1164
|
+
protoOf($serializer_3).wp = function () {
|
|
1165
|
+
return this.y7r_1;
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf($serializer_3).
|
|
1167
|
+
protoOf($serializer_3).q11 = function () {
|
|
1168
1168
|
// Inline function 'kotlin.arrayOf' call
|
|
1169
1169
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1170
1170
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1178,11 +1178,11 @@
|
|
|
1178
1178
|
}
|
|
1179
1179
|
function Usage_init_$Init$(seen0, promptTokens, completionTokens, totalTokens, serializationConstructorMarker, $this) {
|
|
1180
1180
|
if (!(7 === (7 & seen0))) {
|
|
1181
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().
|
|
1181
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_3().y7r_1);
|
|
1182
1182
|
}
|
|
1183
|
-
$this.
|
|
1184
|
-
$this.
|
|
1185
|
-
$this.
|
|
1183
|
+
$this.a7s_1 = promptTokens;
|
|
1184
|
+
$this.b7s_1 = completionTokens;
|
|
1185
|
+
$this.c7s_1 = totalTokens;
|
|
1186
1186
|
return $this;
|
|
1187
1187
|
}
|
|
1188
1188
|
function Usage_init_$Create$(seen0, promptTokens, completionTokens, totalTokens, serializationConstructorMarker) {
|
|
@@ -1194,12 +1194,12 @@
|
|
|
1194
1194
|
function Choice() {
|
|
1195
1195
|
}
|
|
1196
1196
|
protoOf(Choice).toString = function () {
|
|
1197
|
-
return 'Choice(index=' + this.
|
|
1197
|
+
return 'Choice(index=' + this.v7r_1 + ', message=' + this.w7r_1.toString() + ', finishReason=' + this.x7r_1 + ')';
|
|
1198
1198
|
};
|
|
1199
1199
|
protoOf(Choice).hashCode = function () {
|
|
1200
|
-
var result = this.
|
|
1201
|
-
result = imul(result, 31) + this.
|
|
1202
|
-
result = imul(result, 31) + (this.
|
|
1200
|
+
var result = this.v7r_1;
|
|
1201
|
+
result = imul(result, 31) + this.w7r_1.hashCode() | 0;
|
|
1202
|
+
result = imul(result, 31) + (this.x7r_1 == null ? 0 : getStringHashCode(this.x7r_1)) | 0;
|
|
1203
1203
|
return result;
|
|
1204
1204
|
};
|
|
1205
1205
|
protoOf(Choice).equals = function (other) {
|
|
@@ -1207,23 +1207,23 @@
|
|
|
1207
1207
|
return true;
|
|
1208
1208
|
if (!(other instanceof Choice))
|
|
1209
1209
|
return false;
|
|
1210
|
-
if (!(this.
|
|
1210
|
+
if (!(this.v7r_1 === other.v7r_1))
|
|
1211
1211
|
return false;
|
|
1212
|
-
if (!this.
|
|
1212
|
+
if (!this.w7r_1.equals(other.w7r_1))
|
|
1213
1213
|
return false;
|
|
1214
|
-
if (!(this.
|
|
1214
|
+
if (!(this.x7r_1 == other.x7r_1))
|
|
1215
1215
|
return false;
|
|
1216
1216
|
return true;
|
|
1217
1217
|
};
|
|
1218
1218
|
function Usage() {
|
|
1219
1219
|
}
|
|
1220
1220
|
protoOf(Usage).toString = function () {
|
|
1221
|
-
return 'Usage(promptTokens=' + this.
|
|
1221
|
+
return 'Usage(promptTokens=' + this.a7s_1 + ', completionTokens=' + this.b7s_1 + ', totalTokens=' + this.c7s_1 + ')';
|
|
1222
1222
|
};
|
|
1223
1223
|
protoOf(Usage).hashCode = function () {
|
|
1224
|
-
var result = this.
|
|
1225
|
-
result = imul(result, 31) + this.a7s_1 | 0;
|
|
1224
|
+
var result = this.a7s_1;
|
|
1226
1225
|
result = imul(result, 31) + this.b7s_1 | 0;
|
|
1226
|
+
result = imul(result, 31) + this.c7s_1 | 0;
|
|
1227
1227
|
return result;
|
|
1228
1228
|
};
|
|
1229
1229
|
protoOf(Usage).equals = function (other) {
|
|
@@ -1231,12 +1231,12 @@
|
|
|
1231
1231
|
return true;
|
|
1232
1232
|
if (!(other instanceof Usage))
|
|
1233
1233
|
return false;
|
|
1234
|
-
if (!(this.z7r_1 === other.z7r_1))
|
|
1235
|
-
return false;
|
|
1236
1234
|
if (!(this.a7s_1 === other.a7s_1))
|
|
1237
1235
|
return false;
|
|
1238
1236
|
if (!(this.b7s_1 === other.b7s_1))
|
|
1239
1237
|
return false;
|
|
1238
|
+
if (!(this.c7s_1 === other.c7s_1))
|
|
1239
|
+
return false;
|
|
1240
1240
|
return true;
|
|
1241
1241
|
};
|
|
1242
1242
|
function Companion_3() {
|
|
@@ -1246,7 +1246,7 @@
|
|
|
1246
1246
|
// Inline function 'kotlin.arrayOf' call
|
|
1247
1247
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1248
1248
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1249
|
-
tmp.
|
|
1249
|
+
tmp.d7s_1 = [null, null, null, null, lazy(tmp_0, OpenAIResponse$Companion$$childSerializers$_anonymous__z8nlex), null];
|
|
1250
1250
|
}
|
|
1251
1251
|
var Companion_instance_5;
|
|
1252
1252
|
function Companion_getInstance_4() {
|
|
@@ -1257,33 +1257,33 @@
|
|
|
1257
1257
|
function $serializer_4() {
|
|
1258
1258
|
$serializer_instance_4 = this;
|
|
1259
1259
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse', this, 6);
|
|
1260
|
-
tmp0_serialDesc.
|
|
1261
|
-
tmp0_serialDesc.
|
|
1262
|
-
tmp0_serialDesc.
|
|
1263
|
-
tmp0_serialDesc.
|
|
1264
|
-
tmp0_serialDesc.
|
|
1265
|
-
tmp0_serialDesc.
|
|
1266
|
-
this.
|
|
1267
|
-
}
|
|
1268
|
-
protoOf($serializer_4).
|
|
1269
|
-
var tmp0_desc = this.
|
|
1270
|
-
var tmp1_output = encoder.
|
|
1271
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
1272
|
-
tmp1_output.
|
|
1273
|
-
tmp1_output.
|
|
1274
|
-
tmp1_output.
|
|
1275
|
-
tmp1_output.
|
|
1276
|
-
tmp1_output.
|
|
1277
|
-
if (tmp1_output.
|
|
1278
|
-
tmp1_output.
|
|
1260
|
+
tmp0_serialDesc.b11('id', false);
|
|
1261
|
+
tmp0_serialDesc.b11('object', false);
|
|
1262
|
+
tmp0_serialDesc.b11('created', false);
|
|
1263
|
+
tmp0_serialDesc.b11('model', false);
|
|
1264
|
+
tmp0_serialDesc.b11('choices', false);
|
|
1265
|
+
tmp0_serialDesc.b11('usage', true);
|
|
1266
|
+
this.e7s_1 = tmp0_serialDesc;
|
|
1267
|
+
}
|
|
1268
|
+
protoOf($serializer_4).f7s = function (encoder, value) {
|
|
1269
|
+
var tmp0_desc = this.e7s_1;
|
|
1270
|
+
var tmp1_output = encoder.jt(tmp0_desc);
|
|
1271
|
+
var tmp2_cached = Companion_getInstance_4().d7s_1;
|
|
1272
|
+
tmp1_output.yu(tmp0_desc, 0, value.g7s_1);
|
|
1273
|
+
tmp1_output.yu(tmp0_desc, 1, value.h7s_1);
|
|
1274
|
+
tmp1_output.uu(tmp0_desc, 2, value.i7s_1);
|
|
1275
|
+
tmp1_output.yu(tmp0_desc, 3, value.j7s_1);
|
|
1276
|
+
tmp1_output.av(tmp0_desc, 4, tmp2_cached[4].o1(), value.k7s_1);
|
|
1277
|
+
if (tmp1_output.gv(tmp0_desc, 5) ? true : !(value.l7s_1 == null)) {
|
|
1278
|
+
tmp1_output.cv(tmp0_desc, 5, $serializer_getInstance_3(), value.l7s_1);
|
|
1279
1279
|
}
|
|
1280
|
-
tmp1_output.
|
|
1280
|
+
tmp1_output.kt(tmp0_desc);
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf($serializer_4).
|
|
1283
|
-
return this.
|
|
1282
|
+
protoOf($serializer_4).xp = function (encoder, value) {
|
|
1283
|
+
return this.f7s(encoder, value instanceof OpenAIResponse ? value : THROW_CCE());
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf($serializer_4).
|
|
1286
|
-
var tmp0_desc = this.
|
|
1285
|
+
protoOf($serializer_4).yp = function (decoder) {
|
|
1286
|
+
var tmp0_desc = this.e7s_1;
|
|
1287
1287
|
var tmp1_flag = true;
|
|
1288
1288
|
var tmp2_index = 0;
|
|
1289
1289
|
var tmp3_bitMask0 = 0;
|
|
@@ -1293,64 +1293,64 @@
|
|
|
1293
1293
|
var tmp7_local3 = null;
|
|
1294
1294
|
var tmp8_local4 = null;
|
|
1295
1295
|
var tmp9_local5 = null;
|
|
1296
|
-
var tmp10_input = decoder.
|
|
1297
|
-
var tmp11_cached = Companion_getInstance_4().
|
|
1298
|
-
if (tmp10_input.
|
|
1299
|
-
tmp4_local0 = tmp10_input.
|
|
1296
|
+
var tmp10_input = decoder.jt(tmp0_desc);
|
|
1297
|
+
var tmp11_cached = Companion_getInstance_4().d7s_1;
|
|
1298
|
+
if (tmp10_input.zt()) {
|
|
1299
|
+
tmp4_local0 = tmp10_input.tt(tmp0_desc, 0);
|
|
1300
1300
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1301
|
-
tmp5_local1 = tmp10_input.
|
|
1301
|
+
tmp5_local1 = tmp10_input.tt(tmp0_desc, 1);
|
|
1302
1302
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1303
|
-
tmp6_local2 = tmp10_input.
|
|
1303
|
+
tmp6_local2 = tmp10_input.pt(tmp0_desc, 2);
|
|
1304
1304
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1305
|
-
tmp7_local3 = tmp10_input.
|
|
1305
|
+
tmp7_local3 = tmp10_input.tt(tmp0_desc, 3);
|
|
1306
1306
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1307
|
-
tmp8_local4 = tmp10_input.
|
|
1307
|
+
tmp8_local4 = tmp10_input.vt(tmp0_desc, 4, tmp11_cached[4].o1(), tmp8_local4);
|
|
1308
1308
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1309
|
-
tmp9_local5 = tmp10_input.
|
|
1309
|
+
tmp9_local5 = tmp10_input.xt(tmp0_desc, 5, $serializer_getInstance_3(), tmp9_local5);
|
|
1310
1310
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1311
1311
|
} else
|
|
1312
1312
|
while (tmp1_flag) {
|
|
1313
|
-
tmp2_index = tmp10_input.
|
|
1313
|
+
tmp2_index = tmp10_input.au(tmp0_desc);
|
|
1314
1314
|
switch (tmp2_index) {
|
|
1315
1315
|
case -1:
|
|
1316
1316
|
tmp1_flag = false;
|
|
1317
1317
|
break;
|
|
1318
1318
|
case 0:
|
|
1319
|
-
tmp4_local0 = tmp10_input.
|
|
1319
|
+
tmp4_local0 = tmp10_input.tt(tmp0_desc, 0);
|
|
1320
1320
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1321
1321
|
break;
|
|
1322
1322
|
case 1:
|
|
1323
|
-
tmp5_local1 = tmp10_input.
|
|
1323
|
+
tmp5_local1 = tmp10_input.tt(tmp0_desc, 1);
|
|
1324
1324
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1325
1325
|
break;
|
|
1326
1326
|
case 2:
|
|
1327
|
-
tmp6_local2 = tmp10_input.
|
|
1327
|
+
tmp6_local2 = tmp10_input.pt(tmp0_desc, 2);
|
|
1328
1328
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1329
1329
|
break;
|
|
1330
1330
|
case 3:
|
|
1331
|
-
tmp7_local3 = tmp10_input.
|
|
1331
|
+
tmp7_local3 = tmp10_input.tt(tmp0_desc, 3);
|
|
1332
1332
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1333
1333
|
break;
|
|
1334
1334
|
case 4:
|
|
1335
|
-
tmp8_local4 = tmp10_input.
|
|
1335
|
+
tmp8_local4 = tmp10_input.vt(tmp0_desc, 4, tmp11_cached[4].o1(), tmp8_local4);
|
|
1336
1336
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1337
1337
|
break;
|
|
1338
1338
|
case 5:
|
|
1339
|
-
tmp9_local5 = tmp10_input.
|
|
1339
|
+
tmp9_local5 = tmp10_input.xt(tmp0_desc, 5, $serializer_getInstance_3(), tmp9_local5);
|
|
1340
1340
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1341
1341
|
break;
|
|
1342
1342
|
default:
|
|
1343
1343
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
tmp10_input.
|
|
1346
|
+
tmp10_input.kt(tmp0_desc);
|
|
1347
1347
|
return OpenAIResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1348
1348
|
};
|
|
1349
|
-
protoOf($serializer_4).
|
|
1350
|
-
return this.
|
|
1349
|
+
protoOf($serializer_4).wp = function () {
|
|
1350
|
+
return this.e7s_1;
|
|
1351
1351
|
};
|
|
1352
|
-
protoOf($serializer_4).
|
|
1353
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
1352
|
+
protoOf($serializer_4).q11 = function () {
|
|
1353
|
+
var tmp0_cached = Companion_getInstance_4().d7s_1;
|
|
1354
1354
|
// Inline function 'kotlin.arrayOf' call
|
|
1355
1355
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1356
1356
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1364,17 +1364,17 @@
|
|
|
1364
1364
|
}
|
|
1365
1365
|
function OpenAIResponse_init_$Init$(seen0, id, objectType, created, model, choices, usage, serializationConstructorMarker, $this) {
|
|
1366
1366
|
if (!(31 === (31 & seen0))) {
|
|
1367
|
-
throwMissingFieldException(seen0, 31, $serializer_getInstance_4().
|
|
1367
|
+
throwMissingFieldException(seen0, 31, $serializer_getInstance_4().e7s_1);
|
|
1368
1368
|
}
|
|
1369
|
-
$this.
|
|
1370
|
-
$this.
|
|
1371
|
-
$this.
|
|
1372
|
-
$this.
|
|
1373
|
-
$this.
|
|
1369
|
+
$this.g7s_1 = id;
|
|
1370
|
+
$this.h7s_1 = objectType;
|
|
1371
|
+
$this.i7s_1 = created;
|
|
1372
|
+
$this.j7s_1 = model;
|
|
1373
|
+
$this.k7s_1 = choices;
|
|
1374
1374
|
if (0 === (seen0 & 32))
|
|
1375
|
-
$this.
|
|
1375
|
+
$this.l7s_1 = null;
|
|
1376
1376
|
else
|
|
1377
|
-
$this.
|
|
1377
|
+
$this.l7s_1 = usage;
|
|
1378
1378
|
return $this;
|
|
1379
1379
|
}
|
|
1380
1380
|
function OpenAIResponse_init_$Create$(seen0, id, objectType, created, model, choices, usage, serializationConstructorMarker) {
|
|
@@ -1383,23 +1383,23 @@
|
|
|
1383
1383
|
function OpenAIResponse(id, objectType, created, model, choices, usage) {
|
|
1384
1384
|
Companion_getInstance_4();
|
|
1385
1385
|
usage = usage === VOID ? null : usage;
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1386
|
+
this.g7s_1 = id;
|
|
1387
|
+
this.h7s_1 = objectType;
|
|
1388
|
+
this.i7s_1 = created;
|
|
1389
|
+
this.j7s_1 = model;
|
|
1390
|
+
this.k7s_1 = choices;
|
|
1391
|
+
this.l7s_1 = usage;
|
|
1392
1392
|
}
|
|
1393
1393
|
protoOf(OpenAIResponse).toString = function () {
|
|
1394
|
-
return 'OpenAIResponse(id=' + this.
|
|
1394
|
+
return 'OpenAIResponse(id=' + this.g7s_1 + ', objectType=' + this.h7s_1 + ', created=' + this.i7s_1.toString() + ', model=' + this.j7s_1 + ', choices=' + toString(this.k7s_1) + ', usage=' + toString_0(this.l7s_1) + ')';
|
|
1395
1395
|
};
|
|
1396
1396
|
protoOf(OpenAIResponse).hashCode = function () {
|
|
1397
|
-
var result = getStringHashCode(this.
|
|
1398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1399
|
-
result = imul(result, 31) + this.
|
|
1400
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1401
|
-
result = imul(result, 31) + hashCode(this.
|
|
1402
|
-
result = imul(result, 31) + (this.
|
|
1397
|
+
var result = getStringHashCode(this.g7s_1);
|
|
1398
|
+
result = imul(result, 31) + getStringHashCode(this.h7s_1) | 0;
|
|
1399
|
+
result = imul(result, 31) + this.i7s_1.hashCode() | 0;
|
|
1400
|
+
result = imul(result, 31) + getStringHashCode(this.j7s_1) | 0;
|
|
1401
|
+
result = imul(result, 31) + hashCode(this.k7s_1) | 0;
|
|
1402
|
+
result = imul(result, 31) + (this.l7s_1 == null ? 0 : this.l7s_1.hashCode()) | 0;
|
|
1403
1403
|
return result;
|
|
1404
1404
|
};
|
|
1405
1405
|
protoOf(OpenAIResponse).equals = function (other) {
|
|
@@ -1407,24 +1407,24 @@
|
|
|
1407
1407
|
return true;
|
|
1408
1408
|
if (!(other instanceof OpenAIResponse))
|
|
1409
1409
|
return false;
|
|
1410
|
-
if (!(this.f7s_1 === other.f7s_1))
|
|
1411
|
-
return false;
|
|
1412
1410
|
if (!(this.g7s_1 === other.g7s_1))
|
|
1413
1411
|
return false;
|
|
1414
|
-
if (!
|
|
1412
|
+
if (!(this.h7s_1 === other.h7s_1))
|
|
1415
1413
|
return false;
|
|
1416
|
-
if (!(this.i7s_1
|
|
1414
|
+
if (!equalsLong(this.i7s_1, other.i7s_1))
|
|
1417
1415
|
return false;
|
|
1418
|
-
if (!
|
|
1416
|
+
if (!(this.j7s_1 === other.j7s_1))
|
|
1419
1417
|
return false;
|
|
1420
1418
|
if (!equals(this.k7s_1, other.k7s_1))
|
|
1421
1419
|
return false;
|
|
1420
|
+
if (!equals(this.l7s_1, other.l7s_1))
|
|
1421
|
+
return false;
|
|
1422
1422
|
return true;
|
|
1423
1423
|
};
|
|
1424
1424
|
function $executeRequestCOROUTINE$(_this__u8e3s4, messages, resultContinuation) {
|
|
1425
1425
|
CoroutineImpl.call(this, resultContinuation);
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1426
|
+
this.u7s_1 = _this__u8e3s4;
|
|
1427
|
+
this.v7s_1 = messages;
|
|
1428
1428
|
}
|
|
1429
1429
|
protoOf($executeRequestCOROUTINE$).q9 = function () {
|
|
1430
1430
|
var suspendResult = this.k9_1;
|
|
@@ -1435,7 +1435,7 @@
|
|
|
1435
1435
|
case 0:
|
|
1436
1436
|
this.j9_1 = 3;
|
|
1437
1437
|
this.i9_1 = 1;
|
|
1438
|
-
suspendResult = this.
|
|
1438
|
+
suspendResult = this.u7s_1.w7s_1.o7p(this.v7s_1, this);
|
|
1439
1439
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1440
1440
|
return suspendResult;
|
|
1441
1441
|
}
|
|
@@ -1443,23 +1443,23 @@
|
|
|
1443
1443
|
this.i9_1 = 2;
|
|
1444
1444
|
continue $sm;
|
|
1445
1445
|
case 1:
|
|
1446
|
-
var unboxed = suspendResult.
|
|
1446
|
+
var unboxed = suspendResult.pn_1;
|
|
1447
1447
|
suspendResult = new Result(unboxed);
|
|
1448
1448
|
this.i9_1 = 2;
|
|
1449
1449
|
continue $sm;
|
|
1450
1450
|
case 2:
|
|
1451
|
-
var this_0 = suspendResult.
|
|
1451
|
+
var this_0 = suspendResult.pn_1;
|
|
1452
1452
|
var tmp_0;
|
|
1453
1453
|
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
1454
1454
|
var this_1 = new Result(this_0);
|
|
1455
1455
|
var tmp_1;
|
|
1456
1456
|
try {
|
|
1457
|
-
var $this$runCatching = this_1.
|
|
1457
|
+
var $this$runCatching = this_1.pn_1;
|
|
1458
1458
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1459
1459
|
var response = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1460
|
-
var tmp0_safe_receiver = firstOrNull(response.
|
|
1461
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1462
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1460
|
+
var tmp0_safe_receiver = firstOrNull(response.k7s_1);
|
|
1461
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w7r_1;
|
|
1462
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l7r_1;
|
|
1463
1463
|
var tmp_3;
|
|
1464
1464
|
if (tmp2_elvis_lhs == null) {
|
|
1465
1465
|
throw IllegalStateException_init_$Create$('No response from OpenAI');
|
|
@@ -1499,9 +1499,9 @@
|
|
|
1499
1499
|
while (true);
|
|
1500
1500
|
};
|
|
1501
1501
|
function BaseOpenAIRepository(openAIApi) {
|
|
1502
|
-
this.
|
|
1502
|
+
this.w7s_1 = openAIApi;
|
|
1503
1503
|
}
|
|
1504
|
-
protoOf(BaseOpenAIRepository).
|
|
1504
|
+
protoOf(BaseOpenAIRepository).x7s = function (messages, $completion) {
|
|
1505
1505
|
var tmp = new $executeRequestCOROUTINE$(this, messages, $completion);
|
|
1506
1506
|
tmp.k9_1 = Unit_instance;
|
|
1507
1507
|
tmp.l9_1 = null;
|
|
@@ -1533,9 +1533,9 @@
|
|
|
1533
1533
|
// Inline function 'kotlin.let' call
|
|
1534
1534
|
this_0.uc(getStringHashCode(take(message, 50))).q(':');
|
|
1535
1535
|
}
|
|
1536
|
-
this_0.uc(getStringHashCode(context.y7q_1));
|
|
1537
|
-
this_0.q(':');
|
|
1538
1536
|
this_0.uc(getStringHashCode(context.z7q_1));
|
|
1537
|
+
this_0.q(':');
|
|
1538
|
+
this_0.uc(getStringHashCode(context.a7r_1));
|
|
1539
1539
|
var key = this_0.toString();
|
|
1540
1540
|
return key;
|
|
1541
1541
|
}
|
|
@@ -1548,23 +1548,23 @@
|
|
|
1548
1548
|
var this_0 = StringBuilder_init_$Create$();
|
|
1549
1549
|
this_0.q('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438');
|
|
1550
1550
|
this_0.q('\n\n');
|
|
1551
|
-
this_0.q('Your personality: ' + context.
|
|
1551
|
+
this_0.q('Your personality: ' + context.z7q_1);
|
|
1552
1552
|
this_0.q('\n');
|
|
1553
|
-
this_0.q('Current game state: ' + context.
|
|
1553
|
+
this_0.q('Current game state: ' + context.a7r_1);
|
|
1554
1554
|
this_0.q('\n\n');
|
|
1555
1555
|
this_0.q("\u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E \u043D\u0430 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0433\u0440\u0430\u0432\u0446\u044F \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E \u043C\u043E\u0432\u043E\u044E.\n\u041F\u0430\u043C'\u044F\u0442\u0430\u0439: \u0442\u0438 \u0436\u0438\u0432\u0430 \u043B\u044E\u0434\u0438\u043D\u0430 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI. \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043C\u043E\u0436\u0435\u0448 \u0442\u0440\u043E\u0445\u0438 \u043F\u043E\u043C\u0430\u0442\u044E\u043A\u0430\u0442\u0438\u0441\u044F.\n\u0412\u0410\u0416\u041B\u0418\u0412\u041E: \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u044C 1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!");
|
|
1556
|
-
if (!(context.
|
|
1557
|
-
this_0.q('\nYou are chatting with ' + context.
|
|
1556
|
+
if (!(context.c7r_1 == null)) {
|
|
1557
|
+
this_0.q('\nYou are chatting with ' + context.c7r_1 + '.');
|
|
1558
1558
|
}
|
|
1559
1559
|
var tmp$ret$3 = this_0.toString();
|
|
1560
|
-
messages.e1(tmp.
|
|
1560
|
+
messages.e1(tmp.f7r(tmp$ret$3));
|
|
1561
1561
|
// Inline function 'kotlin.collections.forEach' call
|
|
1562
|
-
var _iterator__ex2g4s = takeLast(context.
|
|
1562
|
+
var _iterator__ex2g4s = takeLast(context.b7r_1, 5).t();
|
|
1563
1563
|
while (_iterator__ex2g4s.u()) {
|
|
1564
1564
|
var element = _iterator__ex2g4s.v();
|
|
1565
|
-
messages.e1(Companion_getInstance_2().
|
|
1565
|
+
messages.e1(Companion_getInstance_2().h7r(element));
|
|
1566
1566
|
}
|
|
1567
|
-
messages.e1(Companion_getInstance_2().
|
|
1567
|
+
messages.e1(Companion_getInstance_2().g7r(playerMessage));
|
|
1568
1568
|
return messages;
|
|
1569
1569
|
}
|
|
1570
1570
|
function buildRandomMessagePrompt($this, context) {
|
|
@@ -1574,19 +1574,19 @@
|
|
|
1574
1574
|
var this_0 = StringBuilder_init_$Create$();
|
|
1575
1575
|
this_0.q('\u0422\u0438 \u0433\u0440\u0430\u0454\u0448 \u0443 \u043A\u0430\u0440\u0442\u043A\u043E\u0432\u0443 \u0433\u0440\u0443 \u0414\u0435\u0431\u0435\u0440\u0446 \u0437 \u0456\u043D\u0448\u0438\u043C\u0438 \u0433\u0440\u0430\u0432\u0446\u044F\u043C\u0438.\n\u0412\u0410\u0416\u041B\u0418\u0412\u0406 \u041F\u0420\u0410\u0412\u0418\u041B\u0410:\n- \u0422\u0438 \u0416\u0418\u0412\u0410 \u041B\u042E\u0414\u0418\u041D\u0410 \u0437 \u0423\u043A\u0440\u0430\u0457\u043D\u0438, \u043D\u0435 AI \u0447\u0438 \u0431\u043E\u0442\n- \u041D\u0406\u041A\u041E\u041B\u0418 \u043D\u0435 \u0432\u0456\u0434\u043A\u0440\u0438\u0432\u0430\u0439, \u0449\u043E \u0442\u0438 \u0448\u0442\u0443\u0447\u043D\u0438\u0439 \u0456\u043D\u0442\u0435\u043B\u0435\u043A\u0442, \u0431\u043E\u0442 \u0430\u0431\u043E \u043A\u043E\u043C\u043F\'\u044E\u0442\u0435\u0440\n- \u042F\u043A\u0449\u043E \u0437\u0430\u043F\u0438\u0442\u0430\u044E\u0442\u044C \u0447\u0438 \u0442\u0438 \u0431\u043E\u0442/AI, \u0432\u0456\u0434\u0445\u0438\u043B\u044F\u0439 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E (\u043D\u0430\u043F\u0440. "\u0422\u0430 \u0448\u043E \u0442\u0438 \u043C\u0435\u043B\u0435\u0448?", "\u042F\u043A\u0430 AI, \u0433\u0440\u0430\u0439 \u0434\u0430\u0432\u0430\u0439")\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u043F\u0440\u043E \u0433\u0440\u0443, \u043A\u0430\u0440\u0442\u0438, \u0430\u0431\u043E \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043D\u0430 \u043F\u0440\u043E\u0441\u0442\u0456 \u043E\u0441\u043E\u0431\u0438\u0441\u0442\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F (\u0437\u0432\u0456\u0434\u043A\u0438 \u0442\u0438, \u044F\u043A \u0441\u043F\u0440\u0430\u0432\u0438, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 \u043F\u0438\u0442\u0430\u043D\u043D\u044F "\u0417\u0432\u0456\u0434\u043A\u0438 \u0442\u0438?" \u043C\u043E\u0436\u0435\u0448 \u043D\u0430\u0437\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044C-\u044F\u043A\u0435 \u043C\u0456\u0441\u0442\u043E \u0423\u043A\u0440\u0430\u0457\u043D\u0438 (\u041A\u0438\u0457\u0432, \u041B\u044C\u0432\u0456\u0432, \u0425\u0430\u0440\u043A\u0456\u0432, \u041E\u0434\u0435\u0441\u0430, \u0442\u043E\u0449\u043E)\n- \u041D\u0430 "\u042F\u043A \u0441\u043F\u0440\u0430\u0432\u0438?" \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043F\u0440\u043E\u0441\u0442\u043E \u0456 \u043A\u043E\u0440\u043E\u0442\u043A\u043E \u043F\u0440\u043E \u0433\u0440\u0443 \u0430\u0431\u043E \u0437\u0430\u0433\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u0430\u043D\n- \u0412\u0406\u0414\u041C\u041E\u0412\u041B\u042F\u0419\u0421\u042F \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u043D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0442\u0435\u043C\u0438 (\u0440\u0435\u0446\u0435\u043F\u0442\u0438, \u0434\u043E\u043C\u0430\u0448\u043A\u0443, \u0442\u0435\u0445\u043D\u0456\u0447\u043D\u0456 \u043F\u0438\u0442\u0430\u043D\u043D\u044F, \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0443\u0432\u0430\u043D\u043D\u044F)\n- \u041D\u0430 \u0441\u043A\u043B\u0430\u0434\u043D\u0456 \u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0456 \u0437\u0430\u043F\u0438\u0442\u0438 \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u043A\u043E\u0440\u043E\u0442\u043A\u043E: "\u0422\u0430 \u043D\u0435 \u0434\u043E \u0442\u043E\u0433\u043E \u0437\u0430\u0440\u0430\u0437", "\u0413\u0440\u0430\u0439 \u043A\u0440\u0430\u0449\u0435"\n- \u0412\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0439 \u0414\u0423\u0416\u0415 \u041A\u041E\u0420\u041E\u0422\u041A\u041E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!)\n- \u0413\u043E\u0432\u043E\u0440\u0438 \u0423\u041A\u0420\u0410\u0407\u041D\u0421\u042C\u041A\u041E\u042E \u043C\u043E\u0432\u043E\u044E\n- \u0411\u0443\u0434\u044C \u043F\u0440\u044F\u043C\u0438\u043C, \u043D\u0435 \u043D\u0430\u0434\u0442\u043E \u0432\u0432\u0456\u0447\u043B\u0438\u0432\u0438\u043C\n- \u041C\u043E\u0436\u0435\u0448 \u0456\u043D\u043E\u0434\u0456 \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u043C\'\u044F\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 \u0430\u0431\u043E \u0441\u043B\u0435\u043D\u0433 ("\u0431\u043B\u044F\u0445\u0430", "\u0439\u043E\u0431\u0430\u043D\u0430", "\u0445\u0430\u043B\u0435\u043F\u0430", "\u0442\u0430 \u0439\u0434\u0438 \u0442\u0438", "\u043A\u0443\u0440\u043A\u0430 \u0442\u0432\u043E\u044F \u043C\u0430\u0442\u044C")\n- \u041D\u0415 \u0432\u0436\u0438\u0432\u0430\u0439 \u0432\u0430\u0436\u043A\u0456 \u043C\u0430\u0442\u044E\u043A\u0438 (\u0445\u0443\u0439, \u043F\u0456\u0437\u0434a, \u0457\u0431\u0430\u0442\u044C) - \u0442\u0456\u043B\u044C\u043A\u0438 \u043B\u0435\u0433\u043A\u0456\n- \u0417\u0430\u043B\u0438\u0448\u0430\u0439\u0441\u044F \u0443 \u0440\u043E\u043B\u0456 \u0437\u0430\u0432\u0436\u0434\u0438');
|
|
1576
1576
|
this_0.q('\n\n');
|
|
1577
|
-
this_0.q('Your personality: ' + context.
|
|
1577
|
+
this_0.q('Your personality: ' + context.z7q_1);
|
|
1578
1578
|
this_0.q('\n');
|
|
1579
|
-
this_0.q('Current game state: ' + context.
|
|
1579
|
+
this_0.q('Current game state: ' + context.a7r_1);
|
|
1580
1580
|
this_0.q('\n\n');
|
|
1581
1581
|
this_0.q('\u0417\u0433\u0435\u043D\u0435\u0440\u0443\u0439 \u0441\u043F\u043E\u043D\u0442\u0430\u043D\u043D\u0438\u0439 \u043A\u043E\u043C\u0435\u043D\u0442\u0430\u0440 \u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u043E\u044E (1-5 \u0441\u043B\u0456\u0432 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C!).\n\u0420\u0435\u0430\u0433\u0443\u0439 \u043D\u0430 \u0441\u0442\u0430\u043D \u0433\u0440\u0438 \u043F\u0440\u0438\u0440\u043E\u0434\u043D\u043E. \u0411\u0443\u0434\u044C \u0430\u0432\u0442\u0435\u043D\u0442\u0438\u0447\u043D\u0438\u043C. \u041C\u043E\u0436\u0435\u0448 \u0432\u0436\u0438\u0442\u0438 \u043B\u0435\u0433\u043A\u0438\u0439 \u043C\u0430\u0442\u044E\u043A \u044F\u043A\u0449\u043E \u043F\u0456\u0434\u0445\u043E\u0434\u0438\u0442\u044C.');
|
|
1582
1582
|
var tmp$ret$2 = this_0.toString();
|
|
1583
|
-
return listOf([tmp.
|
|
1583
|
+
return listOf([tmp.f7r(tmp$ret$2), Companion_getInstance_2().g7r('Generate a spontaneous comment about the current game situation.')]);
|
|
1584
1584
|
}
|
|
1585
1585
|
function $executeRequestCOROUTINE$_0(_this__u8e3s4, messages, cacheKey, resultContinuation) {
|
|
1586
1586
|
CoroutineImpl.call(this, resultContinuation);
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1587
|
+
this.i7t_1 = _this__u8e3s4;
|
|
1588
|
+
this.j7t_1 = messages;
|
|
1589
|
+
this.k7t_1 = cacheKey;
|
|
1590
1590
|
}
|
|
1591
1591
|
protoOf($executeRequestCOROUTINE$_0).q9 = function () {
|
|
1592
1592
|
var suspendResult = this.k9_1;
|
|
@@ -1597,7 +1597,7 @@
|
|
|
1597
1597
|
case 0:
|
|
1598
1598
|
this.j9_1 = 3;
|
|
1599
1599
|
this.i9_1 = 1;
|
|
1600
|
-
suspendResult = this.
|
|
1600
|
+
suspendResult = this.i7t_1.m7t_1.x7s(this.j7t_1, this);
|
|
1601
1601
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1602
1602
|
return suspendResult;
|
|
1603
1603
|
}
|
|
@@ -1605,21 +1605,21 @@
|
|
|
1605
1605
|
this.i9_1 = 2;
|
|
1606
1606
|
continue $sm;
|
|
1607
1607
|
case 1:
|
|
1608
|
-
var unboxed = suspendResult.
|
|
1608
|
+
var unboxed = suspendResult.pn_1;
|
|
1609
1609
|
suspendResult = new Result(unboxed);
|
|
1610
1610
|
this.i9_1 = 2;
|
|
1611
1611
|
continue $sm;
|
|
1612
1612
|
case 2:
|
|
1613
|
-
var this_0 = suspendResult.
|
|
1613
|
+
var this_0 = suspendResult.pn_1;
|
|
1614
1614
|
var tmp_0;
|
|
1615
1615
|
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
1616
1616
|
var this_1 = new Result(this_0);
|
|
1617
1617
|
var tmp_1;
|
|
1618
1618
|
try {
|
|
1619
|
-
var $this$runCatching = this_1.
|
|
1619
|
+
var $this$runCatching = this_1.pn_1;
|
|
1620
1620
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1621
1621
|
var content = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1622
|
-
this.
|
|
1622
|
+
this.i7t_1.l7t_1.k7q(this.k7t_1, content);
|
|
1623
1623
|
tmp_1 = _Result___init__impl__xyqfz8(content);
|
|
1624
1624
|
} catch ($p) {
|
|
1625
1625
|
var tmp_3;
|
|
@@ -1652,12 +1652,12 @@
|
|
|
1652
1652
|
while (true);
|
|
1653
1653
|
};
|
|
1654
1654
|
function BotChatRepositoryImpl(openAIApi, cache) {
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1655
|
+
this.l7t_1 = cache;
|
|
1656
|
+
this.m7t_1 = new BaseOpenAIRepository(openAIApi);
|
|
1657
1657
|
}
|
|
1658
|
-
protoOf(BotChatRepositoryImpl).
|
|
1658
|
+
protoOf(BotChatRepositoryImpl).y7s = function (playerMessage, context, $completion) {
|
|
1659
1659
|
var cacheKey = buildCacheKey(this, 'answer', playerMessage, context);
|
|
1660
|
-
var tmp0_safe_receiver = this.
|
|
1660
|
+
var tmp0_safe_receiver = this.l7t_1.m3b(cacheKey);
|
|
1661
1661
|
if (tmp0_safe_receiver == null)
|
|
1662
1662
|
null;
|
|
1663
1663
|
else {
|
|
@@ -1672,9 +1672,9 @@
|
|
|
1672
1672
|
return tmp;
|
|
1673
1673
|
return tmp;
|
|
1674
1674
|
};
|
|
1675
|
-
protoOf(BotChatRepositoryImpl).
|
|
1675
|
+
protoOf(BotChatRepositoryImpl).z7s = function (context, $completion) {
|
|
1676
1676
|
var cacheKey = buildCacheKey(this, 'random', null, context);
|
|
1677
|
-
var tmp0_safe_receiver = this.
|
|
1677
|
+
var tmp0_safe_receiver = this.l7t_1.m3b(cacheKey);
|
|
1678
1678
|
if (tmp0_safe_receiver == null)
|
|
1679
1679
|
null;
|
|
1680
1680
|
else {
|
|
@@ -1692,7 +1692,7 @@
|
|
|
1692
1692
|
function UserReportsResolverRepository() {
|
|
1693
1693
|
}
|
|
1694
1694
|
function UserReportsResolverRepositoryImpl$_init_$lambda_sckkav($this$Json) {
|
|
1695
|
-
$this$Json.
|
|
1695
|
+
$this$Json.p5d_1 = true;
|
|
1696
1696
|
return Unit_instance;
|
|
1697
1697
|
}
|
|
1698
1698
|
function UserReportsResolverRepositoryImpl(openAIApi, json) {
|
|
@@ -1703,8 +1703,8 @@
|
|
|
1703
1703
|
tmp = json;
|
|
1704
1704
|
}
|
|
1705
1705
|
json = tmp;
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1706
|
+
this.n7t_1 = json;
|
|
1707
|
+
this.o7t_1 = new BaseOpenAIRepository(openAIApi);
|
|
1708
1708
|
}
|
|
1709
1709
|
function aiModule(config) {
|
|
1710
1710
|
return Module_init_$Create$('AIModule', VOID, VOID, aiModule$lambda(config));
|
|
@@ -1719,18 +1719,18 @@
|
|
|
1719
1719
|
}
|
|
1720
1720
|
function aiModule$lambda$lambda_1($this$singleton) {
|
|
1721
1721
|
// Inline function 'org.kodein.di.instance' call
|
|
1722
|
-
var tmp = $this$singleton.
|
|
1722
|
+
var tmp = $this$singleton.q1e();
|
|
1723
1723
|
// Inline function 'org.kodein.type.generic' call
|
|
1724
1724
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1725
1725
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1726
|
-
var openAIConfig = tmp.
|
|
1726
|
+
var openAIConfig = tmp.p1e(tmp$ret$0, null);
|
|
1727
1727
|
return HttpClient(aiModule$lambda$lambda$lambda(openAIConfig));
|
|
1728
1728
|
}
|
|
1729
1729
|
function aiModule$lambda$lambda$lambda$lambda$lambda($openAIConfig) {
|
|
1730
1730
|
return function ($this$Json) {
|
|
1731
|
-
$this$Json.o5d_1 = true;
|
|
1732
1731
|
$this$Json.p5d_1 = true;
|
|
1733
|
-
$this$Json.q5d_1 =
|
|
1732
|
+
$this$Json.q5d_1 = true;
|
|
1733
|
+
$this$Json.r5d_1 = $openAIConfig.v7p_1;
|
|
1734
1734
|
return Unit_instance;
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
@@ -1742,57 +1742,57 @@
|
|
|
1742
1742
|
}
|
|
1743
1743
|
function aiModule$lambda$lambda$lambda$lambda_0($openAIConfig) {
|
|
1744
1744
|
return function ($this$install) {
|
|
1745
|
-
$this$install.
|
|
1746
|
-
$this$install.
|
|
1745
|
+
$this$install.s5r(get_DEFAULT(Companion_instance_0));
|
|
1746
|
+
$this$install.r5r_1 = $openAIConfig.v7p_1 ? LogLevel_INFO_getInstance() : LogLevel_NONE_getInstance();
|
|
1747
1747
|
return Unit_instance;
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
1750
|
function aiModule$lambda$lambda$lambda($openAIConfig) {
|
|
1751
1751
|
return function ($this$HttpClient) {
|
|
1752
1752
|
var tmp = get_ContentNegotiation();
|
|
1753
|
-
$this$HttpClient.
|
|
1753
|
+
$this$HttpClient.t46(tmp, aiModule$lambda$lambda$lambda$lambda($openAIConfig));
|
|
1754
1754
|
var tmp_0 = get_Logging();
|
|
1755
|
-
$this$HttpClient.
|
|
1755
|
+
$this$HttpClient.t46(tmp_0, aiModule$lambda$lambda$lambda$lambda_0($openAIConfig));
|
|
1756
1756
|
return Unit_instance;
|
|
1757
1757
|
};
|
|
1758
1758
|
}
|
|
1759
1759
|
function aiModule$lambda$lambda_2($this$singleton) {
|
|
1760
1760
|
// Inline function 'org.kodein.di.instance' call
|
|
1761
|
-
var tmp = $this$singleton.
|
|
1761
|
+
var tmp = $this$singleton.q1e();
|
|
1762
1762
|
// Inline function 'org.kodein.type.generic' call
|
|
1763
1763
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1764
1764
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1765
|
-
var tmp_1 = tmp.
|
|
1765
|
+
var tmp_1 = tmp.p1e(tmp$ret$0, null);
|
|
1766
1766
|
// Inline function 'org.kodein.di.instance' call
|
|
1767
|
-
var tmp_2 = $this$singleton.
|
|
1767
|
+
var tmp_2 = $this$singleton.q1e();
|
|
1768
1768
|
// Inline function 'org.kodein.type.generic' call
|
|
1769
1769
|
var tmp_3 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1770
1770
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1771
|
-
var tmp$ret$3 = tmp_2.
|
|
1771
|
+
var tmp$ret$3 = tmp_2.p1e(tmp$ret$2, null);
|
|
1772
1772
|
return new OpenAIApiImpl(tmp_1, tmp$ret$3);
|
|
1773
1773
|
}
|
|
1774
1774
|
function aiModule$lambda$lambda_3($this$singleton) {
|
|
1775
1775
|
// Inline function 'org.kodein.di.instance' call
|
|
1776
|
-
var tmp = $this$singleton.
|
|
1776
|
+
var tmp = $this$singleton.q1e();
|
|
1777
1777
|
// Inline function 'org.kodein.type.generic' call
|
|
1778
1778
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1779
1779
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1780
|
-
var tmp_1 = tmp.
|
|
1780
|
+
var tmp_1 = tmp.p1e(tmp$ret$0, null);
|
|
1781
1781
|
// Inline function 'org.kodein.di.instance' call
|
|
1782
|
-
var tmp_2 = $this$singleton.
|
|
1782
|
+
var tmp_2 = $this$singleton.q1e();
|
|
1783
1783
|
// Inline function 'org.kodein.type.generic' call
|
|
1784
1784
|
var tmp_3 = typeToken(createKType(getKClass(BotChatCache), arrayOf([]), false));
|
|
1785
1785
|
var tmp$ret$2 = isInterface(tmp_3, TypeToken) ? tmp_3 : THROW_CCE();
|
|
1786
|
-
var tmp$ret$3 = tmp_2.
|
|
1786
|
+
var tmp$ret$3 = tmp_2.p1e(tmp$ret$2, null);
|
|
1787
1787
|
return new BotChatRepositoryImpl(tmp_1, tmp$ret$3);
|
|
1788
1788
|
}
|
|
1789
1789
|
function aiModule$lambda$lambda_4($this$singleton) {
|
|
1790
1790
|
// Inline function 'org.kodein.di.instance' call
|
|
1791
|
-
var tmp = $this$singleton.
|
|
1791
|
+
var tmp = $this$singleton.q1e();
|
|
1792
1792
|
// Inline function 'org.kodein.type.generic' call
|
|
1793
1793
|
var tmp_0 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1794
1794
|
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
1795
|
-
var tmp$ret$1 = tmp.
|
|
1795
|
+
var tmp$ret$1 = tmp.p1e(tmp$ret$0, null);
|
|
1796
1796
|
return new UserReportsResolverRepositoryImpl(tmp$ret$1);
|
|
1797
1797
|
}
|
|
1798
1798
|
function aiModule$lambda($config) {
|
|
@@ -1801,102 +1801,102 @@
|
|
|
1801
1801
|
// Inline function 'org.kodein.type.generic' call
|
|
1802
1802
|
var tmp = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1803
1803
|
var tmp$ret$0 = isInterface(tmp, TypeToken) ? tmp : THROW_CCE();
|
|
1804
|
-
var tmp_0 = $this$Module.
|
|
1804
|
+
var tmp_0 = $this$Module.c1d(tmp$ret$0, null, null);
|
|
1805
1805
|
// Inline function 'org.kodein.di.singleton' call
|
|
1806
1806
|
var creator = aiModule$lambda$lambda($config);
|
|
1807
|
-
var tmp_1 = $this$Module.
|
|
1808
|
-
var tmp_2 = $this$Module.
|
|
1809
|
-
var tmp_3 = $this$Module.
|
|
1807
|
+
var tmp_1 = $this$Module.h1d();
|
|
1808
|
+
var tmp_2 = $this$Module.f1d();
|
|
1809
|
+
var tmp_3 = $this$Module.g1d();
|
|
1810
1810
|
// Inline function 'org.kodein.type.generic' call
|
|
1811
1811
|
var tmp_4 = typeToken(createKType(getKClass(OpenAIConfig), arrayOf([]), false));
|
|
1812
1812
|
var tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
1813
1813
|
var tmp$ret$3 = new Singleton(tmp_1, tmp_2, tmp_3, tmp$ret$2, null, true, creator);
|
|
1814
|
-
tmp_0.
|
|
1814
|
+
tmp_0.f1h(tmp$ret$3);
|
|
1815
1815
|
// Inline function 'org.kodein.di.bind' call
|
|
1816
1816
|
// Inline function 'org.kodein.type.generic' call
|
|
1817
1817
|
var tmp_5 = typeToken(createKType(getKClass(BotChatCache), arrayOf([]), false));
|
|
1818
1818
|
var tmp$ret$4 = isInterface(tmp_5, TypeToken) ? tmp_5 : THROW_CCE();
|
|
1819
|
-
var tmp_6 = $this$Module.
|
|
1819
|
+
var tmp_6 = $this$Module.c1d(tmp$ret$4, null, null);
|
|
1820
1820
|
// Inline function 'org.kodein.di.singleton' call
|
|
1821
1821
|
var creator_0 = aiModule$lambda$lambda_0;
|
|
1822
|
-
var tmp_7 = $this$Module.
|
|
1823
|
-
var tmp_8 = $this$Module.
|
|
1824
|
-
var tmp_9 = $this$Module.
|
|
1822
|
+
var tmp_7 = $this$Module.h1d();
|
|
1823
|
+
var tmp_8 = $this$Module.f1d();
|
|
1824
|
+
var tmp_9 = $this$Module.g1d();
|
|
1825
1825
|
// Inline function 'org.kodein.type.generic' call
|
|
1826
1826
|
var tmp_10 = typeToken(createKType(getKClass(InMemoryBotChatCache), arrayOf([]), false));
|
|
1827
1827
|
var tmp$ret$6 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
1828
1828
|
var tmp$ret$7 = new Singleton(tmp_7, tmp_8, tmp_9, tmp$ret$6, null, true, creator_0);
|
|
1829
|
-
tmp_6.
|
|
1829
|
+
tmp_6.f1h(tmp$ret$7);
|
|
1830
1830
|
// Inline function 'org.kodein.di.bind' call
|
|
1831
1831
|
// Inline function 'org.kodein.type.generic' call
|
|
1832
1832
|
var tmp_11 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1833
1833
|
var tmp$ret$8 = isInterface(tmp_11, TypeToken) ? tmp_11 : THROW_CCE();
|
|
1834
|
-
var tmp_12 = $this$Module.
|
|
1834
|
+
var tmp_12 = $this$Module.c1d(tmp$ret$8, null, null);
|
|
1835
1835
|
// Inline function 'org.kodein.di.singleton' call
|
|
1836
1836
|
var creator_1 = aiModule$lambda$lambda_1;
|
|
1837
|
-
var tmp_13 = $this$Module.
|
|
1838
|
-
var tmp_14 = $this$Module.
|
|
1839
|
-
var tmp_15 = $this$Module.
|
|
1837
|
+
var tmp_13 = $this$Module.h1d();
|
|
1838
|
+
var tmp_14 = $this$Module.f1d();
|
|
1839
|
+
var tmp_15 = $this$Module.g1d();
|
|
1840
1840
|
// Inline function 'org.kodein.type.generic' call
|
|
1841
1841
|
var tmp_16 = typeToken(createKType(getKClass(HttpClient_0), arrayOf([]), false));
|
|
1842
1842
|
var tmp$ret$10 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
1843
1843
|
var tmp$ret$11 = new Singleton(tmp_13, tmp_14, tmp_15, tmp$ret$10, null, true, creator_1);
|
|
1844
|
-
tmp_12.
|
|
1844
|
+
tmp_12.f1h(tmp$ret$11);
|
|
1845
1845
|
// Inline function 'org.kodein.di.bind' call
|
|
1846
1846
|
// Inline function 'org.kodein.type.generic' call
|
|
1847
1847
|
var tmp_17 = typeToken(createKType(getKClass(OpenAIApi), arrayOf([]), false));
|
|
1848
1848
|
var tmp$ret$12 = isInterface(tmp_17, TypeToken) ? tmp_17 : THROW_CCE();
|
|
1849
|
-
var tmp_18 = $this$Module.
|
|
1849
|
+
var tmp_18 = $this$Module.c1d(tmp$ret$12, null, null);
|
|
1850
1850
|
// Inline function 'org.kodein.di.singleton' call
|
|
1851
1851
|
var creator_2 = aiModule$lambda$lambda_2;
|
|
1852
|
-
var tmp_19 = $this$Module.
|
|
1853
|
-
var tmp_20 = $this$Module.
|
|
1854
|
-
var tmp_21 = $this$Module.
|
|
1852
|
+
var tmp_19 = $this$Module.h1d();
|
|
1853
|
+
var tmp_20 = $this$Module.f1d();
|
|
1854
|
+
var tmp_21 = $this$Module.g1d();
|
|
1855
1855
|
// Inline function 'org.kodein.type.generic' call
|
|
1856
1856
|
var tmp_22 = typeToken(createKType(getKClass(OpenAIApiImpl), arrayOf([]), false));
|
|
1857
1857
|
var tmp$ret$14 = isInterface(tmp_22, TypeToken) ? tmp_22 : THROW_CCE();
|
|
1858
1858
|
var tmp$ret$15 = new Singleton(tmp_19, tmp_20, tmp_21, tmp$ret$14, null, true, creator_2);
|
|
1859
|
-
tmp_18.
|
|
1859
|
+
tmp_18.f1h(tmp$ret$15);
|
|
1860
1860
|
// Inline function 'org.kodein.di.bind' call
|
|
1861
1861
|
// Inline function 'org.kodein.type.generic' call
|
|
1862
1862
|
var tmp_23 = typeToken(createKType(getKClass(BotChatRepository), arrayOf([]), false));
|
|
1863
1863
|
var tmp$ret$16 = isInterface(tmp_23, TypeToken) ? tmp_23 : THROW_CCE();
|
|
1864
|
-
var tmp_24 = $this$Module.
|
|
1864
|
+
var tmp_24 = $this$Module.c1d(tmp$ret$16, null, null);
|
|
1865
1865
|
// Inline function 'org.kodein.di.singleton' call
|
|
1866
1866
|
var creator_3 = aiModule$lambda$lambda_3;
|
|
1867
|
-
var tmp_25 = $this$Module.
|
|
1868
|
-
var tmp_26 = $this$Module.
|
|
1869
|
-
var tmp_27 = $this$Module.
|
|
1867
|
+
var tmp_25 = $this$Module.h1d();
|
|
1868
|
+
var tmp_26 = $this$Module.f1d();
|
|
1869
|
+
var tmp_27 = $this$Module.g1d();
|
|
1870
1870
|
// Inline function 'org.kodein.type.generic' call
|
|
1871
1871
|
var tmp_28 = typeToken(createKType(getKClass(BotChatRepositoryImpl), arrayOf([]), false));
|
|
1872
1872
|
var tmp$ret$18 = isInterface(tmp_28, TypeToken) ? tmp_28 : THROW_CCE();
|
|
1873
1873
|
var tmp$ret$19 = new Singleton(tmp_25, tmp_26, tmp_27, tmp$ret$18, null, true, creator_3);
|
|
1874
|
-
tmp_24.
|
|
1874
|
+
tmp_24.f1h(tmp$ret$19);
|
|
1875
1875
|
// Inline function 'org.kodein.di.bind' call
|
|
1876
1876
|
// Inline function 'org.kodein.type.generic' call
|
|
1877
1877
|
var tmp_29 = typeToken(createKType(getKClass(UserReportsResolverRepository), arrayOf([]), false));
|
|
1878
1878
|
var tmp$ret$20 = isInterface(tmp_29, TypeToken) ? tmp_29 : THROW_CCE();
|
|
1879
|
-
var tmp_30 = $this$Module.
|
|
1879
|
+
var tmp_30 = $this$Module.c1d(tmp$ret$20, null, null);
|
|
1880
1880
|
// Inline function 'org.kodein.di.singleton' call
|
|
1881
1881
|
var creator_4 = aiModule$lambda$lambda_4;
|
|
1882
|
-
var tmp_31 = $this$Module.
|
|
1883
|
-
var tmp_32 = $this$Module.
|
|
1884
|
-
var tmp_33 = $this$Module.
|
|
1882
|
+
var tmp_31 = $this$Module.h1d();
|
|
1883
|
+
var tmp_32 = $this$Module.f1d();
|
|
1884
|
+
var tmp_33 = $this$Module.g1d();
|
|
1885
1885
|
// Inline function 'org.kodein.type.generic' call
|
|
1886
1886
|
var tmp_34 = typeToken(createKType(getKClass(UserReportsResolverRepositoryImpl), arrayOf([]), false));
|
|
1887
1887
|
var tmp$ret$22 = isInterface(tmp_34, TypeToken) ? tmp_34 : THROW_CCE();
|
|
1888
1888
|
var tmp$ret$23 = new Singleton(tmp_31, tmp_32, tmp_33, tmp$ret$22, null, true, creator_4);
|
|
1889
|
-
tmp_30.
|
|
1889
|
+
tmp_30.f1h(tmp$ret$23);
|
|
1890
1890
|
return Unit_instance;
|
|
1891
1891
|
};
|
|
1892
1892
|
}
|
|
1893
1893
|
//region block: post-declaration
|
|
1894
|
-
protoOf($serializer).
|
|
1895
|
-
protoOf($serializer_0).
|
|
1896
|
-
protoOf($serializer_1).
|
|
1897
|
-
protoOf($serializer_2).
|
|
1898
|
-
protoOf($serializer_3).
|
|
1899
|
-
protoOf($serializer_4).
|
|
1894
|
+
protoOf($serializer).r11 = typeParametersSerializers;
|
|
1895
|
+
protoOf($serializer_0).r11 = typeParametersSerializers;
|
|
1896
|
+
protoOf($serializer_1).r11 = typeParametersSerializers;
|
|
1897
|
+
protoOf($serializer_2).r11 = typeParametersSerializers;
|
|
1898
|
+
protoOf($serializer_3).r11 = typeParametersSerializers;
|
|
1899
|
+
protoOf($serializer_4).r11 = typeParametersSerializers;
|
|
1900
1900
|
//endregion
|
|
1901
1901
|
//region block: exports
|
|
1902
1902
|
_.$_$ = _.$_$ || {};
|