raspberry_games_server_game_logic 1.8.430 → 1.8.432
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 +2 -2
- package/Kosi-Kodein-kodein-di.js +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime.js +151 -151
- package/Logic_Debertz-ai_module.js +193 -193
- package/Logic_Debertz-core.js +536 -536
- package/Logic_Debertz-engine.js +12058 -11986
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +5 -0
- package/Logic_Debertz-game_server.js +1068 -1067
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +550 -544
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2164 -2164
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +314 -314
- package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1442 -1442
- package/ktor-ktor-client-logging.js +265 -265
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +590 -590
- package/ktor-ktor-io.js +1241 -1241
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +132 -132
- package/ktor-ktor-serialization.js +61 -61
- package/ktor-ktor-utils.js +483 -483
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/random-library-crypto-rand.js +1 -1
- package/random-library-secure-random.js +2 -2
- package/raspberry-cardgame-lib-core.js +7 -7
- package/raspberry-cardgame-lib-logger.js +90 -90
- package/raspberry-cardgame-lib-random.js +794 -794
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +12 -12
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
}
|
|
174
174
|
function OpenAIApiImpl$chatCompletion$lambda(this$0) {
|
|
175
175
|
return function ($this$headers) {
|
|
176
|
-
$this$headers.
|
|
176
|
+
$this$headers.x39(HttpHeaders_getInstance().t3f_1, 'Bearer ' + this$0.n6m_1.g6m_1);
|
|
177
177
|
return Unit_instance;
|
|
178
178
|
};
|
|
179
179
|
}
|
|
@@ -197,9 +197,9 @@
|
|
|
197
197
|
var this_0 = new HttpRequestBuilder();
|
|
198
198
|
url(this_0, urlString);
|
|
199
199
|
headers(this_0, OpenAIApiImpl$chatCompletion$lambda(this.x6m_1));
|
|
200
|
-
contentType(this_0, Application_getInstance().
|
|
200
|
+
contentType(this_0, Application_getInstance().y3d_1);
|
|
201
201
|
if (request == null) {
|
|
202
|
-
this_0.
|
|
202
|
+
this_0.p3s_1 = NullBody_instance;
|
|
203
203
|
var tmp_0 = JsType_instance;
|
|
204
204
|
var tmp_1 = getKClass(OpenAIRequest);
|
|
205
205
|
var tmp_2;
|
|
@@ -215,13 +215,13 @@
|
|
|
215
215
|
}
|
|
216
216
|
tmp_2 = tmp_3;
|
|
217
217
|
}
|
|
218
|
-
this_0.
|
|
218
|
+
this_0.b3y(typeInfoImpl(tmp_0, tmp_1, tmp_2));
|
|
219
219
|
} else {
|
|
220
220
|
if (request instanceof OutgoingContent) {
|
|
221
|
-
this_0.
|
|
222
|
-
this_0.
|
|
221
|
+
this_0.p3s_1 = request;
|
|
222
|
+
this_0.b3y(null);
|
|
223
223
|
} else {
|
|
224
|
-
this_0.
|
|
224
|
+
this_0.p3s_1 = request;
|
|
225
225
|
var tmp_4 = JsType_instance;
|
|
226
226
|
var tmp_5 = getKClass(OpenAIRequest);
|
|
227
227
|
var tmp_6;
|
|
@@ -237,13 +237,13 @@
|
|
|
237
237
|
}
|
|
238
238
|
tmp_6 = tmp_7;
|
|
239
239
|
}
|
|
240
|
-
this_0.
|
|
240
|
+
this_0.b3y(typeInfoImpl(tmp_4, tmp_5, tmp_6));
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
this_0.
|
|
244
|
+
this_0.n3s_1 = Companion_getInstance().p3j_1;
|
|
245
245
|
this.s8_1 = 1;
|
|
246
|
-
suspendResult = (new HttpStatement(this_0, tmp0)).
|
|
246
|
+
suspendResult = (new HttpStatement(this_0, tmp0)).c4j(this);
|
|
247
247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
248
248
|
return suspendResult;
|
|
249
249
|
}
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
var tmp_8 = this;
|
|
255
255
|
tmp_8.a6n_1 = Companion_instance;
|
|
256
256
|
this.s8_1 = 2;
|
|
257
|
-
var tmp_9 = response.
|
|
257
|
+
var tmp_9 = response.q3v();
|
|
258
258
|
var tmp_10 = JsType_instance;
|
|
259
259
|
var tmp_11 = getKClass(OpenAIResponse);
|
|
260
260
|
var tmp_12;
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
tmp_12 = tmp_13;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
suspendResult = tmp_9.
|
|
274
|
+
suspendResult = tmp_9.u3u(typeInfoImpl(tmp_10, tmp_11, tmp_12), this);
|
|
275
275
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
276
276
|
return suspendResult;
|
|
277
277
|
}
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
return true;
|
|
355
355
|
};
|
|
356
356
|
function cleanExpired($this) {
|
|
357
|
-
var now = System_instance.
|
|
357
|
+
var now = System_instance.dk().rk();
|
|
358
358
|
var tmp = $this.g6n_1.v();
|
|
359
359
|
removeAll(tmp, InMemoryBotChatCache$cleanExpired$lambda(now, $this));
|
|
360
360
|
}
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
375
375
|
tmp.g6n_1 = LinkedHashMap_init_$Create$();
|
|
376
376
|
}
|
|
377
|
-
protoOf(InMemoryBotChatCache).
|
|
377
|
+
protoOf(InMemoryBotChatCache).u1b = function (key) {
|
|
378
378
|
cleanExpired(this);
|
|
379
379
|
var tmp0_elvis_lhs = this.g6n_1.c2(key);
|
|
380
380
|
var tmp;
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
tmp = tmp0_elvis_lhs;
|
|
385
385
|
}
|
|
386
386
|
var entry = tmp;
|
|
387
|
-
if (compare(subtract(System_instance.
|
|
387
|
+
if (compare(subtract(System_instance.dk().rk(), entry.d6n_1), this.e6n_1) > 0) {
|
|
388
388
|
this.g6n_1.g2(key);
|
|
389
389
|
return null;
|
|
390
390
|
}
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
}
|
|
432
432
|
var tmp0_0 = this.g6n_1;
|
|
433
433
|
// Inline function 'kotlin.collections.set' call
|
|
434
|
-
var value_0 = new CacheEntry(value, System_instance.
|
|
434
|
+
var value_0 = new CacheEntry(value, System_instance.dk().rk());
|
|
435
435
|
tmp0_0.f2(key, value_0);
|
|
436
436
|
};
|
|
437
437
|
function BotChatConfig() {
|
|
@@ -473,30 +473,30 @@
|
|
|
473
473
|
function $serializer() {
|
|
474
474
|
$serializer_instance = this;
|
|
475
475
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.BotChatContext', this, 4);
|
|
476
|
-
tmp0_serialDesc.
|
|
477
|
-
tmp0_serialDesc.
|
|
478
|
-
tmp0_serialDesc.
|
|
479
|
-
tmp0_serialDesc.
|
|
476
|
+
tmp0_serialDesc.hz('botPersonality', false);
|
|
477
|
+
tmp0_serialDesc.hz('gameState', false);
|
|
478
|
+
tmp0_serialDesc.hz('conversationHistory', true);
|
|
479
|
+
tmp0_serialDesc.hz('playerName', true);
|
|
480
480
|
this.o6n_1 = tmp0_serialDesc;
|
|
481
481
|
}
|
|
482
482
|
protoOf($serializer).p6n = function (encoder, value) {
|
|
483
483
|
var tmp0_desc = this.o6n_1;
|
|
484
|
-
var tmp1_output = encoder.
|
|
484
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
485
485
|
var tmp2_cached = Companion_getInstance_1().n6n_1;
|
|
486
|
-
tmp1_output.
|
|
487
|
-
tmp1_output.
|
|
488
|
-
if (tmp1_output.
|
|
489
|
-
tmp1_output.
|
|
486
|
+
tmp1_output.et(tmp0_desc, 0, value.q6n_1);
|
|
487
|
+
tmp1_output.et(tmp0_desc, 1, value.r6n_1);
|
|
488
|
+
if (tmp1_output.mt(tmp0_desc, 2) ? true : !equals(value.s6n_1, emptyList())) {
|
|
489
|
+
tmp1_output.gt(tmp0_desc, 2, tmp2_cached[2].x(), value.s6n_1);
|
|
490
490
|
}
|
|
491
|
-
if (tmp1_output.
|
|
492
|
-
tmp1_output.
|
|
491
|
+
if (tmp1_output.mt(tmp0_desc, 3) ? true : !(value.t6n_1 == null)) {
|
|
492
|
+
tmp1_output.it(tmp0_desc, 3, StringSerializer_getInstance(), value.t6n_1);
|
|
493
493
|
}
|
|
494
|
-
tmp1_output.
|
|
494
|
+
tmp1_output.qr(tmp0_desc);
|
|
495
495
|
};
|
|
496
|
-
protoOf($serializer).
|
|
496
|
+
protoOf($serializer).do = function (encoder, value) {
|
|
497
497
|
return this.p6n(encoder, value instanceof BotChatContext ? value : THROW_CCE());
|
|
498
498
|
};
|
|
499
|
-
protoOf($serializer).
|
|
499
|
+
protoOf($serializer).eo = function (decoder) {
|
|
500
500
|
var tmp0_desc = this.o6n_1;
|
|
501
501
|
var tmp1_flag = true;
|
|
502
502
|
var tmp2_index = 0;
|
|
@@ -505,51 +505,51 @@
|
|
|
505
505
|
var tmp5_local1 = null;
|
|
506
506
|
var tmp6_local2 = null;
|
|
507
507
|
var tmp7_local3 = null;
|
|
508
|
-
var tmp8_input = decoder.
|
|
508
|
+
var tmp8_input = decoder.pr(tmp0_desc);
|
|
509
509
|
var tmp9_cached = Companion_getInstance_1().n6n_1;
|
|
510
|
-
if (tmp8_input.
|
|
511
|
-
tmp4_local0 = tmp8_input.
|
|
510
|
+
if (tmp8_input.fs()) {
|
|
511
|
+
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
512
512
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
513
|
-
tmp5_local1 = tmp8_input.
|
|
513
|
+
tmp5_local1 = tmp8_input.zr(tmp0_desc, 1);
|
|
514
514
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
515
|
-
tmp6_local2 = tmp8_input.
|
|
515
|
+
tmp6_local2 = tmp8_input.bs(tmp0_desc, 2, tmp9_cached[2].x(), tmp6_local2);
|
|
516
516
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
517
|
-
tmp7_local3 = tmp8_input.
|
|
517
|
+
tmp7_local3 = tmp8_input.ds(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
518
518
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
519
519
|
} else
|
|
520
520
|
while (tmp1_flag) {
|
|
521
|
-
tmp2_index = tmp8_input.
|
|
521
|
+
tmp2_index = tmp8_input.gs(tmp0_desc);
|
|
522
522
|
switch (tmp2_index) {
|
|
523
523
|
case -1:
|
|
524
524
|
tmp1_flag = false;
|
|
525
525
|
break;
|
|
526
526
|
case 0:
|
|
527
|
-
tmp4_local0 = tmp8_input.
|
|
527
|
+
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
528
528
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
529
529
|
break;
|
|
530
530
|
case 1:
|
|
531
|
-
tmp5_local1 = tmp8_input.
|
|
531
|
+
tmp5_local1 = tmp8_input.zr(tmp0_desc, 1);
|
|
532
532
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
533
533
|
break;
|
|
534
534
|
case 2:
|
|
535
|
-
tmp6_local2 = tmp8_input.
|
|
535
|
+
tmp6_local2 = tmp8_input.bs(tmp0_desc, 2, tmp9_cached[2].x(), tmp6_local2);
|
|
536
536
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
537
537
|
break;
|
|
538
538
|
case 3:
|
|
539
|
-
tmp7_local3 = tmp8_input.
|
|
539
|
+
tmp7_local3 = tmp8_input.ds(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
540
540
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
541
541
|
break;
|
|
542
542
|
default:
|
|
543
543
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
|
-
tmp8_input.
|
|
546
|
+
tmp8_input.qr(tmp0_desc);
|
|
547
547
|
return BotChatContext_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
548
548
|
};
|
|
549
|
-
protoOf($serializer).
|
|
549
|
+
protoOf($serializer).co = function () {
|
|
550
550
|
return this.o6n_1;
|
|
551
551
|
};
|
|
552
|
-
protoOf($serializer).
|
|
552
|
+
protoOf($serializer).wz = function () {
|
|
553
553
|
var tmp0_cached = Companion_getInstance_1().n6n_1;
|
|
554
554
|
// Inline function 'kotlin.arrayOf' call
|
|
555
555
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -642,11 +642,11 @@
|
|
|
642
642
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
643
643
|
tmp.u6n_1 = lazy(tmp_0, ChatMessage$Role$Companion$_anonymous__13jozo);
|
|
644
644
|
}
|
|
645
|
-
protoOf(Companion_0).
|
|
645
|
+
protoOf(Companion_0).b1c = function () {
|
|
646
646
|
return _get_$cachedSerializer__te6jhj(this);
|
|
647
647
|
};
|
|
648
|
-
protoOf(Companion_0).
|
|
649
|
-
return this.
|
|
648
|
+
protoOf(Companion_0).h10 = function (typeParamsSerializers) {
|
|
649
|
+
return this.b1c();
|
|
650
650
|
};
|
|
651
651
|
var Companion_instance_2;
|
|
652
652
|
function Companion_getInstance_2() {
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
Companion_getInstance_2();
|
|
667
667
|
}
|
|
668
668
|
function ChatMessage$Companion$$childSerializers$_anonymous__qywqat() {
|
|
669
|
-
return Companion_getInstance_2().
|
|
669
|
+
return Companion_getInstance_2().b1c();
|
|
670
670
|
}
|
|
671
671
|
function Role(name, ordinal) {
|
|
672
672
|
Enum.call(this, name, ordinal);
|
|
@@ -698,61 +698,61 @@
|
|
|
698
698
|
function $serializer_0() {
|
|
699
699
|
$serializer_instance_0 = this;
|
|
700
700
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.ChatMessage', this, 2);
|
|
701
|
-
tmp0_serialDesc.
|
|
702
|
-
tmp0_serialDesc.
|
|
701
|
+
tmp0_serialDesc.hz('role', false);
|
|
702
|
+
tmp0_serialDesc.hz('content', false);
|
|
703
703
|
this.z6n_1 = tmp0_serialDesc;
|
|
704
704
|
}
|
|
705
705
|
protoOf($serializer_0).a6o = function (encoder, value) {
|
|
706
706
|
var tmp0_desc = this.z6n_1;
|
|
707
|
-
var tmp1_output = encoder.
|
|
707
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
708
708
|
var tmp2_cached = Companion_getInstance_3().v6n_1;
|
|
709
|
-
tmp1_output.
|
|
710
|
-
tmp1_output.
|
|
711
|
-
tmp1_output.
|
|
709
|
+
tmp1_output.gt(tmp0_desc, 0, tmp2_cached[0].x(), value.b6o_1);
|
|
710
|
+
tmp1_output.et(tmp0_desc, 1, value.c6o_1);
|
|
711
|
+
tmp1_output.qr(tmp0_desc);
|
|
712
712
|
};
|
|
713
|
-
protoOf($serializer_0).
|
|
713
|
+
protoOf($serializer_0).do = function (encoder, value) {
|
|
714
714
|
return this.a6o(encoder, value instanceof ChatMessage ? value : THROW_CCE());
|
|
715
715
|
};
|
|
716
|
-
protoOf($serializer_0).
|
|
716
|
+
protoOf($serializer_0).eo = function (decoder) {
|
|
717
717
|
var tmp0_desc = this.z6n_1;
|
|
718
718
|
var tmp1_flag = true;
|
|
719
719
|
var tmp2_index = 0;
|
|
720
720
|
var tmp3_bitMask0 = 0;
|
|
721
721
|
var tmp4_local0 = null;
|
|
722
722
|
var tmp5_local1 = null;
|
|
723
|
-
var tmp6_input = decoder.
|
|
723
|
+
var tmp6_input = decoder.pr(tmp0_desc);
|
|
724
724
|
var tmp7_cached = Companion_getInstance_3().v6n_1;
|
|
725
|
-
if (tmp6_input.
|
|
726
|
-
tmp4_local0 = tmp6_input.
|
|
725
|
+
if (tmp6_input.fs()) {
|
|
726
|
+
tmp4_local0 = tmp6_input.bs(tmp0_desc, 0, tmp7_cached[0].x(), tmp4_local0);
|
|
727
727
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
728
|
-
tmp5_local1 = tmp6_input.
|
|
728
|
+
tmp5_local1 = tmp6_input.zr(tmp0_desc, 1);
|
|
729
729
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
730
730
|
} else
|
|
731
731
|
while (tmp1_flag) {
|
|
732
|
-
tmp2_index = tmp6_input.
|
|
732
|
+
tmp2_index = tmp6_input.gs(tmp0_desc);
|
|
733
733
|
switch (tmp2_index) {
|
|
734
734
|
case -1:
|
|
735
735
|
tmp1_flag = false;
|
|
736
736
|
break;
|
|
737
737
|
case 0:
|
|
738
|
-
tmp4_local0 = tmp6_input.
|
|
738
|
+
tmp4_local0 = tmp6_input.bs(tmp0_desc, 0, tmp7_cached[0].x(), tmp4_local0);
|
|
739
739
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
740
740
|
break;
|
|
741
741
|
case 1:
|
|
742
|
-
tmp5_local1 = tmp6_input.
|
|
742
|
+
tmp5_local1 = tmp6_input.zr(tmp0_desc, 1);
|
|
743
743
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
744
744
|
break;
|
|
745
745
|
default:
|
|
746
746
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
tmp6_input.
|
|
749
|
+
tmp6_input.qr(tmp0_desc);
|
|
750
750
|
return ChatMessage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
751
751
|
};
|
|
752
|
-
protoOf($serializer_0).
|
|
752
|
+
protoOf($serializer_0).co = function () {
|
|
753
753
|
return this.z6n_1;
|
|
754
754
|
};
|
|
755
|
-
protoOf($serializer_0).
|
|
755
|
+
protoOf($serializer_0).wz = function () {
|
|
756
756
|
// Inline function 'kotlin.arrayOf' call
|
|
757
757
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
758
758
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -881,26 +881,26 @@
|
|
|
881
881
|
function $serializer_1() {
|
|
882
882
|
$serializer_instance_1 = this;
|
|
883
883
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIRequest', this, 4);
|
|
884
|
-
tmp0_serialDesc.
|
|
885
|
-
tmp0_serialDesc.
|
|
886
|
-
tmp0_serialDesc.
|
|
887
|
-
tmp0_serialDesc.
|
|
884
|
+
tmp0_serialDesc.hz('model', false);
|
|
885
|
+
tmp0_serialDesc.hz('messages', false);
|
|
886
|
+
tmp0_serialDesc.hz('temperature', false);
|
|
887
|
+
tmp0_serialDesc.hz('max_tokens', false);
|
|
888
888
|
this.e6o_1 = tmp0_serialDesc;
|
|
889
889
|
}
|
|
890
890
|
protoOf($serializer_1).f6o = function (encoder, value) {
|
|
891
891
|
var tmp0_desc = this.e6o_1;
|
|
892
|
-
var tmp1_output = encoder.
|
|
892
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
893
893
|
var tmp2_cached = Companion_getInstance_4().d6o_1;
|
|
894
|
-
tmp1_output.
|
|
895
|
-
tmp1_output.
|
|
896
|
-
tmp1_output.
|
|
897
|
-
tmp1_output.
|
|
898
|
-
tmp1_output.
|
|
894
|
+
tmp1_output.et(tmp0_desc, 0, value.g6o_1);
|
|
895
|
+
tmp1_output.gt(tmp0_desc, 1, tmp2_cached[1].x(), value.h6o_1);
|
|
896
|
+
tmp1_output.ct(tmp0_desc, 2, value.i6o_1);
|
|
897
|
+
tmp1_output.zs(tmp0_desc, 3, value.j6o_1);
|
|
898
|
+
tmp1_output.qr(tmp0_desc);
|
|
899
899
|
};
|
|
900
|
-
protoOf($serializer_1).
|
|
900
|
+
protoOf($serializer_1).do = function (encoder, value) {
|
|
901
901
|
return this.f6o(encoder, value instanceof OpenAIRequest ? value : THROW_CCE());
|
|
902
902
|
};
|
|
903
|
-
protoOf($serializer_1).
|
|
903
|
+
protoOf($serializer_1).eo = function (decoder) {
|
|
904
904
|
var tmp0_desc = this.e6o_1;
|
|
905
905
|
var tmp1_flag = true;
|
|
906
906
|
var tmp2_index = 0;
|
|
@@ -909,51 +909,51 @@
|
|
|
909
909
|
var tmp5_local1 = null;
|
|
910
910
|
var tmp6_local2 = 0.0;
|
|
911
911
|
var tmp7_local3 = 0;
|
|
912
|
-
var tmp8_input = decoder.
|
|
912
|
+
var tmp8_input = decoder.pr(tmp0_desc);
|
|
913
913
|
var tmp9_cached = Companion_getInstance_4().d6o_1;
|
|
914
|
-
if (tmp8_input.
|
|
915
|
-
tmp4_local0 = tmp8_input.
|
|
914
|
+
if (tmp8_input.fs()) {
|
|
915
|
+
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
916
916
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
917
|
-
tmp5_local1 = tmp8_input.
|
|
917
|
+
tmp5_local1 = tmp8_input.bs(tmp0_desc, 1, tmp9_cached[1].x(), tmp5_local1);
|
|
918
918
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
919
|
-
tmp6_local2 = tmp8_input.
|
|
919
|
+
tmp6_local2 = tmp8_input.xr(tmp0_desc, 2);
|
|
920
920
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
921
|
-
tmp7_local3 = tmp8_input.
|
|
921
|
+
tmp7_local3 = tmp8_input.ur(tmp0_desc, 3);
|
|
922
922
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
923
923
|
} else
|
|
924
924
|
while (tmp1_flag) {
|
|
925
|
-
tmp2_index = tmp8_input.
|
|
925
|
+
tmp2_index = tmp8_input.gs(tmp0_desc);
|
|
926
926
|
switch (tmp2_index) {
|
|
927
927
|
case -1:
|
|
928
928
|
tmp1_flag = false;
|
|
929
929
|
break;
|
|
930
930
|
case 0:
|
|
931
|
-
tmp4_local0 = tmp8_input.
|
|
931
|
+
tmp4_local0 = tmp8_input.zr(tmp0_desc, 0);
|
|
932
932
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
933
933
|
break;
|
|
934
934
|
case 1:
|
|
935
|
-
tmp5_local1 = tmp8_input.
|
|
935
|
+
tmp5_local1 = tmp8_input.bs(tmp0_desc, 1, tmp9_cached[1].x(), tmp5_local1);
|
|
936
936
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
937
937
|
break;
|
|
938
938
|
case 2:
|
|
939
|
-
tmp6_local2 = tmp8_input.
|
|
939
|
+
tmp6_local2 = tmp8_input.xr(tmp0_desc, 2);
|
|
940
940
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
941
941
|
break;
|
|
942
942
|
case 3:
|
|
943
|
-
tmp7_local3 = tmp8_input.
|
|
943
|
+
tmp7_local3 = tmp8_input.ur(tmp0_desc, 3);
|
|
944
944
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
945
945
|
break;
|
|
946
946
|
default:
|
|
947
947
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
tmp8_input.
|
|
950
|
+
tmp8_input.qr(tmp0_desc);
|
|
951
951
|
return OpenAIRequest_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
952
952
|
};
|
|
953
|
-
protoOf($serializer_1).
|
|
953
|
+
protoOf($serializer_1).co = function () {
|
|
954
954
|
return this.e6o_1;
|
|
955
955
|
};
|
|
956
|
-
protoOf($serializer_1).
|
|
956
|
+
protoOf($serializer_1).wz = function () {
|
|
957
957
|
var tmp0_cached = Companion_getInstance_4().d6o_1;
|
|
958
958
|
// Inline function 'kotlin.arrayOf' call
|
|
959
959
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -1014,25 +1014,25 @@
|
|
|
1014
1014
|
function $serializer_2() {
|
|
1015
1015
|
$serializer_instance_2 = this;
|
|
1016
1016
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse.Choice', this, 3);
|
|
1017
|
-
tmp0_serialDesc.
|
|
1018
|
-
tmp0_serialDesc.
|
|
1019
|
-
tmp0_serialDesc.
|
|
1017
|
+
tmp0_serialDesc.hz('index', false);
|
|
1018
|
+
tmp0_serialDesc.hz('message', false);
|
|
1019
|
+
tmp0_serialDesc.hz('finish_reason', true);
|
|
1020
1020
|
this.k6o_1 = tmp0_serialDesc;
|
|
1021
1021
|
}
|
|
1022
1022
|
protoOf($serializer_2).l6o = function (encoder, value) {
|
|
1023
1023
|
var tmp0_desc = this.k6o_1;
|
|
1024
|
-
var tmp1_output = encoder.
|
|
1025
|
-
tmp1_output.
|
|
1026
|
-
tmp1_output.
|
|
1027
|
-
if (tmp1_output.
|
|
1028
|
-
tmp1_output.
|
|
1024
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1025
|
+
tmp1_output.zs(tmp0_desc, 0, value.m6o_1);
|
|
1026
|
+
tmp1_output.gt(tmp0_desc, 1, $serializer_getInstance_0(), value.n6o_1);
|
|
1027
|
+
if (tmp1_output.mt(tmp0_desc, 2) ? true : !(value.o6o_1 == null)) {
|
|
1028
|
+
tmp1_output.it(tmp0_desc, 2, StringSerializer_getInstance(), value.o6o_1);
|
|
1029
1029
|
}
|
|
1030
|
-
tmp1_output.
|
|
1030
|
+
tmp1_output.qr(tmp0_desc);
|
|
1031
1031
|
};
|
|
1032
|
-
protoOf($serializer_2).
|
|
1032
|
+
protoOf($serializer_2).do = function (encoder, value) {
|
|
1033
1033
|
return this.l6o(encoder, value instanceof Choice ? value : THROW_CCE());
|
|
1034
1034
|
};
|
|
1035
|
-
protoOf($serializer_2).
|
|
1035
|
+
protoOf($serializer_2).eo = function (decoder) {
|
|
1036
1036
|
var tmp0_desc = this.k6o_1;
|
|
1037
1037
|
var tmp1_flag = true;
|
|
1038
1038
|
var tmp2_index = 0;
|
|
@@ -1040,44 +1040,44 @@
|
|
|
1040
1040
|
var tmp4_local0 = 0;
|
|
1041
1041
|
var tmp5_local1 = null;
|
|
1042
1042
|
var tmp6_local2 = null;
|
|
1043
|
-
var tmp7_input = decoder.
|
|
1044
|
-
if (tmp7_input.
|
|
1045
|
-
tmp4_local0 = tmp7_input.
|
|
1043
|
+
var tmp7_input = decoder.pr(tmp0_desc);
|
|
1044
|
+
if (tmp7_input.fs()) {
|
|
1045
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
1046
1046
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1047
|
-
tmp5_local1 = tmp7_input.
|
|
1047
|
+
tmp5_local1 = tmp7_input.bs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
1048
1048
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1049
|
-
tmp6_local2 = tmp7_input.
|
|
1049
|
+
tmp6_local2 = tmp7_input.ds(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1050
1050
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1051
1051
|
} else
|
|
1052
1052
|
while (tmp1_flag) {
|
|
1053
|
-
tmp2_index = tmp7_input.
|
|
1053
|
+
tmp2_index = tmp7_input.gs(tmp0_desc);
|
|
1054
1054
|
switch (tmp2_index) {
|
|
1055
1055
|
case -1:
|
|
1056
1056
|
tmp1_flag = false;
|
|
1057
1057
|
break;
|
|
1058
1058
|
case 0:
|
|
1059
|
-
tmp4_local0 = tmp7_input.
|
|
1059
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
1060
1060
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1061
1061
|
break;
|
|
1062
1062
|
case 1:
|
|
1063
|
-
tmp5_local1 = tmp7_input.
|
|
1063
|
+
tmp5_local1 = tmp7_input.bs(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
1064
1064
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1065
1065
|
break;
|
|
1066
1066
|
case 2:
|
|
1067
|
-
tmp6_local2 = tmp7_input.
|
|
1067
|
+
tmp6_local2 = tmp7_input.ds(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1068
1068
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1069
1069
|
break;
|
|
1070
1070
|
default:
|
|
1071
1071
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
-
tmp7_input.
|
|
1074
|
+
tmp7_input.qr(tmp0_desc);
|
|
1075
1075
|
return Choice_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1076
1076
|
};
|
|
1077
|
-
protoOf($serializer_2).
|
|
1077
|
+
protoOf($serializer_2).co = function () {
|
|
1078
1078
|
return this.k6o_1;
|
|
1079
1079
|
};
|
|
1080
|
-
protoOf($serializer_2).
|
|
1080
|
+
protoOf($serializer_2).wz = function () {
|
|
1081
1081
|
// Inline function 'kotlin.arrayOf' call
|
|
1082
1082
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1083
1083
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1107,23 +1107,23 @@
|
|
|
1107
1107
|
function $serializer_3() {
|
|
1108
1108
|
$serializer_instance_3 = this;
|
|
1109
1109
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse.Usage', this, 3);
|
|
1110
|
-
tmp0_serialDesc.
|
|
1111
|
-
tmp0_serialDesc.
|
|
1112
|
-
tmp0_serialDesc.
|
|
1110
|
+
tmp0_serialDesc.hz('prompt_tokens', false);
|
|
1111
|
+
tmp0_serialDesc.hz('completion_tokens', false);
|
|
1112
|
+
tmp0_serialDesc.hz('total_tokens', false);
|
|
1113
1113
|
this.p6o_1 = tmp0_serialDesc;
|
|
1114
1114
|
}
|
|
1115
1115
|
protoOf($serializer_3).q6o = function (encoder, value) {
|
|
1116
1116
|
var tmp0_desc = this.p6o_1;
|
|
1117
|
-
var tmp1_output = encoder.
|
|
1118
|
-
tmp1_output.
|
|
1119
|
-
tmp1_output.
|
|
1120
|
-
tmp1_output.
|
|
1121
|
-
tmp1_output.
|
|
1117
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1118
|
+
tmp1_output.zs(tmp0_desc, 0, value.r6o_1);
|
|
1119
|
+
tmp1_output.zs(tmp0_desc, 1, value.s6o_1);
|
|
1120
|
+
tmp1_output.zs(tmp0_desc, 2, value.t6o_1);
|
|
1121
|
+
tmp1_output.qr(tmp0_desc);
|
|
1122
1122
|
};
|
|
1123
|
-
protoOf($serializer_3).
|
|
1123
|
+
protoOf($serializer_3).do = function (encoder, value) {
|
|
1124
1124
|
return this.q6o(encoder, value instanceof Usage ? value : THROW_CCE());
|
|
1125
1125
|
};
|
|
1126
|
-
protoOf($serializer_3).
|
|
1126
|
+
protoOf($serializer_3).eo = function (decoder) {
|
|
1127
1127
|
var tmp0_desc = this.p6o_1;
|
|
1128
1128
|
var tmp1_flag = true;
|
|
1129
1129
|
var tmp2_index = 0;
|
|
@@ -1131,44 +1131,44 @@
|
|
|
1131
1131
|
var tmp4_local0 = 0;
|
|
1132
1132
|
var tmp5_local1 = 0;
|
|
1133
1133
|
var tmp6_local2 = 0;
|
|
1134
|
-
var tmp7_input = decoder.
|
|
1135
|
-
if (tmp7_input.
|
|
1136
|
-
tmp4_local0 = tmp7_input.
|
|
1134
|
+
var tmp7_input = decoder.pr(tmp0_desc);
|
|
1135
|
+
if (tmp7_input.fs()) {
|
|
1136
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
1137
1137
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1138
|
-
tmp5_local1 = tmp7_input.
|
|
1138
|
+
tmp5_local1 = tmp7_input.ur(tmp0_desc, 1);
|
|
1139
1139
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1140
|
-
tmp6_local2 = tmp7_input.
|
|
1140
|
+
tmp6_local2 = tmp7_input.ur(tmp0_desc, 2);
|
|
1141
1141
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1142
1142
|
} else
|
|
1143
1143
|
while (tmp1_flag) {
|
|
1144
|
-
tmp2_index = tmp7_input.
|
|
1144
|
+
tmp2_index = tmp7_input.gs(tmp0_desc);
|
|
1145
1145
|
switch (tmp2_index) {
|
|
1146
1146
|
case -1:
|
|
1147
1147
|
tmp1_flag = false;
|
|
1148
1148
|
break;
|
|
1149
1149
|
case 0:
|
|
1150
|
-
tmp4_local0 = tmp7_input.
|
|
1150
|
+
tmp4_local0 = tmp7_input.ur(tmp0_desc, 0);
|
|
1151
1151
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1152
1152
|
break;
|
|
1153
1153
|
case 1:
|
|
1154
|
-
tmp5_local1 = tmp7_input.
|
|
1154
|
+
tmp5_local1 = tmp7_input.ur(tmp0_desc, 1);
|
|
1155
1155
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1156
1156
|
break;
|
|
1157
1157
|
case 2:
|
|
1158
|
-
tmp6_local2 = tmp7_input.
|
|
1158
|
+
tmp6_local2 = tmp7_input.ur(tmp0_desc, 2);
|
|
1159
1159
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1160
1160
|
break;
|
|
1161
1161
|
default:
|
|
1162
1162
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
tmp7_input.
|
|
1165
|
+
tmp7_input.qr(tmp0_desc);
|
|
1166
1166
|
return Usage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1167
1167
|
};
|
|
1168
|
-
protoOf($serializer_3).
|
|
1168
|
+
protoOf($serializer_3).co = function () {
|
|
1169
1169
|
return this.p6o_1;
|
|
1170
1170
|
};
|
|
1171
|
-
protoOf($serializer_3).
|
|
1171
|
+
protoOf($serializer_3).wz = function () {
|
|
1172
1172
|
// Inline function 'kotlin.arrayOf' call
|
|
1173
1173
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1174
1174
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1261,32 +1261,32 @@
|
|
|
1261
1261
|
function $serializer_4() {
|
|
1262
1262
|
$serializer_instance_4 = this;
|
|
1263
1263
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.logic.ai.data.models.OpenAIResponse', this, 6);
|
|
1264
|
-
tmp0_serialDesc.
|
|
1265
|
-
tmp0_serialDesc.
|
|
1266
|
-
tmp0_serialDesc.
|
|
1267
|
-
tmp0_serialDesc.
|
|
1268
|
-
tmp0_serialDesc.
|
|
1269
|
-
tmp0_serialDesc.
|
|
1264
|
+
tmp0_serialDesc.hz('id', false);
|
|
1265
|
+
tmp0_serialDesc.hz('object', false);
|
|
1266
|
+
tmp0_serialDesc.hz('created', false);
|
|
1267
|
+
tmp0_serialDesc.hz('model', false);
|
|
1268
|
+
tmp0_serialDesc.hz('choices', false);
|
|
1269
|
+
tmp0_serialDesc.hz('usage', true);
|
|
1270
1270
|
this.v6o_1 = tmp0_serialDesc;
|
|
1271
1271
|
}
|
|
1272
1272
|
protoOf($serializer_4).w6o = function (encoder, value) {
|
|
1273
1273
|
var tmp0_desc = this.v6o_1;
|
|
1274
|
-
var tmp1_output = encoder.
|
|
1274
|
+
var tmp1_output = encoder.pr(tmp0_desc);
|
|
1275
1275
|
var tmp2_cached = Companion_getInstance_5().u6o_1;
|
|
1276
|
-
tmp1_output.
|
|
1277
|
-
tmp1_output.
|
|
1278
|
-
tmp1_output.
|
|
1279
|
-
tmp1_output.
|
|
1280
|
-
tmp1_output.
|
|
1281
|
-
if (tmp1_output.
|
|
1282
|
-
tmp1_output.
|
|
1276
|
+
tmp1_output.et(tmp0_desc, 0, value.x6o_1);
|
|
1277
|
+
tmp1_output.et(tmp0_desc, 1, value.y6o_1);
|
|
1278
|
+
tmp1_output.at(tmp0_desc, 2, value.z6o_1);
|
|
1279
|
+
tmp1_output.et(tmp0_desc, 3, value.a6p_1);
|
|
1280
|
+
tmp1_output.gt(tmp0_desc, 4, tmp2_cached[4].x(), value.b6p_1);
|
|
1281
|
+
if (tmp1_output.mt(tmp0_desc, 5) ? true : !(value.c6p_1 == null)) {
|
|
1282
|
+
tmp1_output.it(tmp0_desc, 5, $serializer_getInstance_3(), value.c6p_1);
|
|
1283
1283
|
}
|
|
1284
|
-
tmp1_output.
|
|
1284
|
+
tmp1_output.qr(tmp0_desc);
|
|
1285
1285
|
};
|
|
1286
|
-
protoOf($serializer_4).
|
|
1286
|
+
protoOf($serializer_4).do = function (encoder, value) {
|
|
1287
1287
|
return this.w6o(encoder, value instanceof OpenAIResponse ? value : THROW_CCE());
|
|
1288
1288
|
};
|
|
1289
|
-
protoOf($serializer_4).
|
|
1289
|
+
protoOf($serializer_4).eo = function (decoder) {
|
|
1290
1290
|
var tmp0_desc = this.v6o_1;
|
|
1291
1291
|
var tmp1_flag = true;
|
|
1292
1292
|
var tmp2_index = 0;
|
|
@@ -1297,63 +1297,63 @@
|
|
|
1297
1297
|
var tmp7_local3 = null;
|
|
1298
1298
|
var tmp8_local4 = null;
|
|
1299
1299
|
var tmp9_local5 = null;
|
|
1300
|
-
var tmp10_input = decoder.
|
|
1300
|
+
var tmp10_input = decoder.pr(tmp0_desc);
|
|
1301
1301
|
var tmp11_cached = Companion_getInstance_5().u6o_1;
|
|
1302
|
-
if (tmp10_input.
|
|
1303
|
-
tmp4_local0 = tmp10_input.
|
|
1302
|
+
if (tmp10_input.fs()) {
|
|
1303
|
+
tmp4_local0 = tmp10_input.zr(tmp0_desc, 0);
|
|
1304
1304
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1305
|
-
tmp5_local1 = tmp10_input.
|
|
1305
|
+
tmp5_local1 = tmp10_input.zr(tmp0_desc, 1);
|
|
1306
1306
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1307
|
-
tmp6_local2 = tmp10_input.
|
|
1307
|
+
tmp6_local2 = tmp10_input.vr(tmp0_desc, 2);
|
|
1308
1308
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1309
|
-
tmp7_local3 = tmp10_input.
|
|
1309
|
+
tmp7_local3 = tmp10_input.zr(tmp0_desc, 3);
|
|
1310
1310
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1311
|
-
tmp8_local4 = tmp10_input.
|
|
1311
|
+
tmp8_local4 = tmp10_input.bs(tmp0_desc, 4, tmp11_cached[4].x(), tmp8_local4);
|
|
1312
1312
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1313
|
-
tmp9_local5 = tmp10_input.
|
|
1313
|
+
tmp9_local5 = tmp10_input.ds(tmp0_desc, 5, $serializer_getInstance_3(), tmp9_local5);
|
|
1314
1314
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1315
1315
|
} else
|
|
1316
1316
|
while (tmp1_flag) {
|
|
1317
|
-
tmp2_index = tmp10_input.
|
|
1317
|
+
tmp2_index = tmp10_input.gs(tmp0_desc);
|
|
1318
1318
|
switch (tmp2_index) {
|
|
1319
1319
|
case -1:
|
|
1320
1320
|
tmp1_flag = false;
|
|
1321
1321
|
break;
|
|
1322
1322
|
case 0:
|
|
1323
|
-
tmp4_local0 = tmp10_input.
|
|
1323
|
+
tmp4_local0 = tmp10_input.zr(tmp0_desc, 0);
|
|
1324
1324
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1325
1325
|
break;
|
|
1326
1326
|
case 1:
|
|
1327
|
-
tmp5_local1 = tmp10_input.
|
|
1327
|
+
tmp5_local1 = tmp10_input.zr(tmp0_desc, 1);
|
|
1328
1328
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1329
1329
|
break;
|
|
1330
1330
|
case 2:
|
|
1331
|
-
tmp6_local2 = tmp10_input.
|
|
1331
|
+
tmp6_local2 = tmp10_input.vr(tmp0_desc, 2);
|
|
1332
1332
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1333
1333
|
break;
|
|
1334
1334
|
case 3:
|
|
1335
|
-
tmp7_local3 = tmp10_input.
|
|
1335
|
+
tmp7_local3 = tmp10_input.zr(tmp0_desc, 3);
|
|
1336
1336
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1337
1337
|
break;
|
|
1338
1338
|
case 4:
|
|
1339
|
-
tmp8_local4 = tmp10_input.
|
|
1339
|
+
tmp8_local4 = tmp10_input.bs(tmp0_desc, 4, tmp11_cached[4].x(), tmp8_local4);
|
|
1340
1340
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1341
1341
|
break;
|
|
1342
1342
|
case 5:
|
|
1343
|
-
tmp9_local5 = tmp10_input.
|
|
1343
|
+
tmp9_local5 = tmp10_input.ds(tmp0_desc, 5, $serializer_getInstance_3(), tmp9_local5);
|
|
1344
1344
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1345
1345
|
break;
|
|
1346
1346
|
default:
|
|
1347
1347
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
tmp10_input.
|
|
1350
|
+
tmp10_input.qr(tmp0_desc);
|
|
1351
1351
|
return OpenAIResponse_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1352
1352
|
};
|
|
1353
|
-
protoOf($serializer_4).
|
|
1353
|
+
protoOf($serializer_4).co = function () {
|
|
1354
1354
|
return this.v6o_1;
|
|
1355
1355
|
};
|
|
1356
|
-
protoOf($serializer_4).
|
|
1356
|
+
protoOf($serializer_4).wz = function () {
|
|
1357
1357
|
var tmp0_cached = Companion_getInstance_5().u6o_1;
|
|
1358
1358
|
// Inline function 'kotlin.arrayOf' call
|
|
1359
1359
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -1447,18 +1447,18 @@
|
|
|
1447
1447
|
this.s8_1 = 2;
|
|
1448
1448
|
continue $sm;
|
|
1449
1449
|
case 1:
|
|
1450
|
-
var unboxed = suspendResult.
|
|
1450
|
+
var unboxed = suspendResult.ul_1;
|
|
1451
1451
|
suspendResult = new Result(unboxed);
|
|
1452
1452
|
this.s8_1 = 2;
|
|
1453
1453
|
continue $sm;
|
|
1454
1454
|
case 2:
|
|
1455
|
-
var this_0 = suspendResult.
|
|
1455
|
+
var this_0 = suspendResult.ul_1;
|
|
1456
1456
|
var tmp_0;
|
|
1457
1457
|
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
1458
1458
|
var this_1 = new Result(this_0);
|
|
1459
1459
|
var tmp_1;
|
|
1460
1460
|
try {
|
|
1461
|
-
var $this$runCatching = this_1.
|
|
1461
|
+
var $this$runCatching = this_1.ul_1;
|
|
1462
1462
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1463
1463
|
var response = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1464
1464
|
var tmp0_safe_receiver = firstOrNull(response.b6p_1);
|
|
@@ -1609,18 +1609,18 @@
|
|
|
1609
1609
|
this.s8_1 = 2;
|
|
1610
1610
|
continue $sm;
|
|
1611
1611
|
case 1:
|
|
1612
|
-
var unboxed = suspendResult.
|
|
1612
|
+
var unboxed = suspendResult.ul_1;
|
|
1613
1613
|
suspendResult = new Result(unboxed);
|
|
1614
1614
|
this.s8_1 = 2;
|
|
1615
1615
|
continue $sm;
|
|
1616
1616
|
case 2:
|
|
1617
|
-
var this_0 = suspendResult.
|
|
1617
|
+
var this_0 = suspendResult.ul_1;
|
|
1618
1618
|
var tmp_0;
|
|
1619
1619
|
if (_Result___get_isSuccess__impl__sndoy8(this_0)) {
|
|
1620
1620
|
var this_1 = new Result(this_0);
|
|
1621
1621
|
var tmp_1;
|
|
1622
1622
|
try {
|
|
1623
|
-
var $this$runCatching = this_1.
|
|
1623
|
+
var $this$runCatching = this_1.ul_1;
|
|
1624
1624
|
var tmp_2 = _Result___get_value__impl__bjfvqg($this$runCatching);
|
|
1625
1625
|
var content = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
|
|
1626
1626
|
this.z6p_1.c6q_1.b6n(this.b6q_1, content);
|
|
@@ -1661,7 +1661,7 @@
|
|
|
1661
1661
|
}
|
|
1662
1662
|
protoOf(BotChatRepositoryImpl).p6p = function (playerMessage, context, $completion) {
|
|
1663
1663
|
var cacheKey = buildCacheKey(this, 'answer', playerMessage, context);
|
|
1664
|
-
var tmp0_safe_receiver = this.c6q_1.
|
|
1664
|
+
var tmp0_safe_receiver = this.c6q_1.u1b(cacheKey);
|
|
1665
1665
|
if (tmp0_safe_receiver == null)
|
|
1666
1666
|
null;
|
|
1667
1667
|
else {
|
|
@@ -1678,7 +1678,7 @@
|
|
|
1678
1678
|
};
|
|
1679
1679
|
protoOf(BotChatRepositoryImpl).q6p = function (context, $completion) {
|
|
1680
1680
|
var cacheKey = buildCacheKey(this, 'random', null, context);
|
|
1681
|
-
var tmp0_safe_receiver = this.c6q_1.
|
|
1681
|
+
var tmp0_safe_receiver = this.c6q_1.u1b(cacheKey);
|
|
1682
1682
|
if (tmp0_safe_receiver == null)
|
|
1683
1683
|
null;
|
|
1684
1684
|
else {
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
function UserReportsResolverRepository() {
|
|
1697
1697
|
}
|
|
1698
1698
|
function UserReportsResolverRepositoryImpl$_init_$lambda_sckkav($this$Json) {
|
|
1699
|
-
$this$Json.
|
|
1699
|
+
$this$Json.g1a_1 = true;
|
|
1700
1700
|
return Unit_instance;
|
|
1701
1701
|
}
|
|
1702
1702
|
function UserReportsResolverRepositoryImpl(openAIApi, json) {
|
|
@@ -1732,9 +1732,9 @@
|
|
|
1732
1732
|
}
|
|
1733
1733
|
function aiModule$lambda$lambda$lambda$lambda$lambda($openAIConfig) {
|
|
1734
1734
|
return function ($this$Json) {
|
|
1735
|
-
$this$Json.f1a_1 = true;
|
|
1736
1735
|
$this$Json.g1a_1 = true;
|
|
1737
|
-
$this$Json.h1a_1 =
|
|
1736
|
+
$this$Json.h1a_1 = true;
|
|
1737
|
+
$this$Json.i1a_1 = $openAIConfig.m6m_1;
|
|
1738
1738
|
return Unit_instance;
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
@@ -1746,17 +1746,17 @@
|
|
|
1746
1746
|
}
|
|
1747
1747
|
function aiModule$lambda$lambda$lambda$lambda_0($openAIConfig) {
|
|
1748
1748
|
return function ($this$install) {
|
|
1749
|
-
$this$install.
|
|
1750
|
-
$this$install.
|
|
1749
|
+
$this$install.h4q(get_DEFAULT(Companion_instance_0));
|
|
1750
|
+
$this$install.g4q_1 = $openAIConfig.m6m_1 ? LogLevel_INFO_getInstance() : LogLevel_NONE_getInstance();
|
|
1751
1751
|
return Unit_instance;
|
|
1752
1752
|
};
|
|
1753
1753
|
}
|
|
1754
1754
|
function aiModule$lambda$lambda$lambda($openAIConfig) {
|
|
1755
1755
|
return function ($this$HttpClient) {
|
|
1756
1756
|
var tmp = Plugin_getInstance();
|
|
1757
|
-
$this$HttpClient.
|
|
1757
|
+
$this$HttpClient.t3t(tmp, aiModule$lambda$lambda$lambda$lambda($openAIConfig));
|
|
1758
1758
|
var tmp_0 = Companion_getInstance_0();
|
|
1759
|
-
$this$HttpClient.
|
|
1759
|
+
$this$HttpClient.t3t(tmp_0, aiModule$lambda$lambda$lambda$lambda_0($openAIConfig));
|
|
1760
1760
|
return Unit_instance;
|
|
1761
1761
|
};
|
|
1762
1762
|
}
|
|
@@ -1895,12 +1895,12 @@
|
|
|
1895
1895
|
};
|
|
1896
1896
|
}
|
|
1897
1897
|
//region block: post-declaration
|
|
1898
|
-
protoOf($serializer).
|
|
1899
|
-
protoOf($serializer_0).
|
|
1900
|
-
protoOf($serializer_1).
|
|
1901
|
-
protoOf($serializer_2).
|
|
1902
|
-
protoOf($serializer_3).
|
|
1903
|
-
protoOf($serializer_4).
|
|
1898
|
+
protoOf($serializer).xz = typeParametersSerializers;
|
|
1899
|
+
protoOf($serializer_0).xz = typeParametersSerializers;
|
|
1900
|
+
protoOf($serializer_1).xz = typeParametersSerializers;
|
|
1901
|
+
protoOf($serializer_2).xz = typeParametersSerializers;
|
|
1902
|
+
protoOf($serializer_3).xz = typeParametersSerializers;
|
|
1903
|
+
protoOf($serializer_4).xz = typeParametersSerializers;
|
|
1904
1904
|
//endregion
|
|
1905
1905
|
//region block: exports
|
|
1906
1906
|
_.$_$ = _.$_$ || {};
|