game_client_logic_deb 1.8.185 → 1.8.208
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 +74 -74
- package/Kosi-Kodein-kodein-di.js +583 -583
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1413 -1413
- package/Logic_Debertz-core.js +1527 -1484
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +16658 -15083
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +70 -26
- package/Logic_Debertz-game_client.js +3462 -3671
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +626 -619
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +19 -19
- package/kotlinx-coroutines-core.js +2223 -2223
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +271 -271
- package/kotlinx-serialization-kotlinx-serialization-core.js +1894 -1894
- package/kotlinx-serialization-kotlinx-serialization-json.js +1366 -1366
- package/ktor-ktor-client-content-negotiation.js +158 -158
- package/ktor-ktor-client-core.js +1605 -1605
- package/ktor-ktor-client-logging.js +306 -306
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +688 -688
- package/ktor-ktor-io.js +1311 -1311
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +155 -155
- package/ktor-ktor-serialization.js +73 -73
- package/ktor-ktor-utils.js +560 -560
- package/ktor-ktor-websockets.js +59 -59
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +272 -394
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +29 -14
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1194 -884
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +18 -18
- package/uuid.js +30 -30
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
}(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_utils) {
|
|
31
31
|
'use strict';
|
|
32
32
|
//region block: imports
|
|
33
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
35
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
37
|
-
var trim = kotlin_kotlin.$_$.
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
39
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
40
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
41
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
33
|
+
var CoroutineImpl = kotlin_kotlin.$_$.sa;
|
|
34
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
|
|
35
|
+
var THROW_CCE = kotlin_kotlin.$_$.qg;
|
|
36
|
+
var isCharSequence = kotlin_kotlin.$_$.zb;
|
|
37
|
+
var trim = kotlin_kotlin.$_$.uf;
|
|
38
|
+
var toString = kotlin_kotlin.$_$.uc;
|
|
39
|
+
var Unit_instance = kotlin_kotlin.$_$.n5;
|
|
40
|
+
var protoOf = kotlin_kotlin.$_$.qc;
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.db;
|
|
43
43
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
44
44
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
45
45
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
46
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
46
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
47
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
48
48
|
var VOID = kotlin_kotlin.$_$.f;
|
|
49
|
-
var Enum = kotlin_kotlin.$_$.
|
|
49
|
+
var Enum = kotlin_kotlin.$_$.fg;
|
|
50
50
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.n;
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
52
|
-
var println = kotlin_kotlin.$_$.
|
|
51
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
|
|
52
|
+
var println = kotlin_kotlin.$_$.va;
|
|
53
53
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
54
54
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
55
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
56
56
|
var Url = kotlin_io_ktor_ktor_http.$_$.x;
|
|
57
57
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
58
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
58
|
+
var toString_0 = kotlin_kotlin.$_$.uh;
|
|
59
59
|
var charset = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
60
60
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
61
61
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
@@ -68,21 +68,21 @@
|
|
|
68
68
|
var ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
69
69
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
70
70
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
71
|
-
var Collection = kotlin_kotlin.$_$.
|
|
72
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
71
|
+
var Collection = kotlin_kotlin.$_$.p5;
|
|
72
|
+
var isInterface = kotlin_kotlin.$_$.dc;
|
|
73
73
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
74
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.tb;
|
|
75
75
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
76
76
|
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
77
77
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
78
78
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
79
79
|
var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
80
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
81
|
-
var toList = kotlin_kotlin.$_$.
|
|
82
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
83
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
84
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
85
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
80
|
+
var emptyList = kotlin_kotlin.$_$.l7;
|
|
81
|
+
var toList = kotlin_kotlin.$_$.q9;
|
|
82
|
+
var sortedWith = kotlin_kotlin.$_$.i9;
|
|
83
|
+
var joinToString = kotlin_kotlin.$_$.d8;
|
|
84
|
+
var Comparator = kotlin_kotlin.$_$.cg;
|
|
85
|
+
var compareValues = kotlin_kotlin.$_$.ca;
|
|
86
86
|
var writer = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
87
87
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
88
88
|
var close = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
//endregion
|
|
116
116
|
function $logResponseExceptionCOROUTINE$0(_this__u8e3s4, message, resultContinuation) {
|
|
117
117
|
CoroutineImpl.call(this, resultContinuation);
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
118
|
+
this.d3s_1 = _this__u8e3s4;
|
|
119
|
+
this.e3s_1 = message;
|
|
120
120
|
}
|
|
121
121
|
protoOf($logResponseExceptionCOROUTINE$0).l9 = function () {
|
|
122
122
|
var suspendResult = this.f9_1;
|
|
@@ -127,15 +127,15 @@
|
|
|
127
127
|
case 0:
|
|
128
128
|
this.e9_1 = 2;
|
|
129
129
|
this.d9_1 = 1;
|
|
130
|
-
suspendResult = this.
|
|
130
|
+
suspendResult = this.d3s_1.i3s_1.eo(this);
|
|
131
131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
132
132
|
return suspendResult;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
continue $sm;
|
|
136
136
|
case 1:
|
|
137
|
-
var this_0 = this.
|
|
138
|
-
this.
|
|
137
|
+
var this_0 = this.e3s_1;
|
|
138
|
+
this.d3s_1.f3s_1.m3s(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
139
139
|
return Unit_instance;
|
|
140
140
|
case 2:
|
|
141
141
|
throw this.g9_1;
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
};
|
|
154
154
|
function $logResponseBodyCOROUTINE$1(_this__u8e3s4, message, resultContinuation) {
|
|
155
155
|
CoroutineImpl.call(this, resultContinuation);
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
156
|
+
this.v3s_1 = _this__u8e3s4;
|
|
157
|
+
this.w3s_1 = message;
|
|
158
158
|
}
|
|
159
159
|
protoOf($logResponseBodyCOROUTINE$1).l9 = function () {
|
|
160
160
|
var suspendResult = this.f9_1;
|
|
@@ -165,14 +165,14 @@
|
|
|
165
165
|
case 0:
|
|
166
166
|
this.e9_1 = 2;
|
|
167
167
|
this.d9_1 = 1;
|
|
168
|
-
suspendResult = this.
|
|
168
|
+
suspendResult = this.v3s_1.j3s_1.eo(this);
|
|
169
169
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
170
170
|
return suspendResult;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
continue $sm;
|
|
174
174
|
case 1:
|
|
175
|
-
this.
|
|
175
|
+
this.v3s_1.h3s_1.i8(this.w3s_1);
|
|
176
176
|
return Unit_instance;
|
|
177
177
|
case 2:
|
|
178
178
|
throw this.g9_1;
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
};
|
|
191
191
|
function $closeResponseLogCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
192
192
|
CoroutineImpl.call(this, resultContinuation);
|
|
193
|
-
this.
|
|
193
|
+
this.f3t_1 = _this__u8e3s4;
|
|
194
194
|
}
|
|
195
195
|
protoOf($closeResponseLogCOROUTINE$2).l9 = function () {
|
|
196
196
|
var suspendResult = this.f9_1;
|
|
@@ -200,19 +200,19 @@
|
|
|
200
200
|
switch (tmp) {
|
|
201
201
|
case 0:
|
|
202
202
|
this.e9_1 = 2;
|
|
203
|
-
if (!this.
|
|
203
|
+
if (!this.f3t_1.l3s_1.atomicfu$compareAndSet(false, true))
|
|
204
204
|
return Unit_instance;
|
|
205
205
|
this.d9_1 = 1;
|
|
206
|
-
suspendResult = this.
|
|
206
|
+
suspendResult = this.f3t_1.i3s_1.eo(this);
|
|
207
207
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
208
208
|
return suspendResult;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
continue $sm;
|
|
212
212
|
case 1:
|
|
213
|
-
var message = toString(trim(this.
|
|
213
|
+
var message = toString(trim(this.f3t_1.h3s_1));
|
|
214
214
|
if (charSequenceLength(message) > 0) {
|
|
215
|
-
this.
|
|
215
|
+
this.f3t_1.f3s_1.m3s(message);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
return Unit_instance;
|
|
@@ -231,57 +231,57 @@
|
|
|
231
231
|
while (true);
|
|
232
232
|
};
|
|
233
233
|
function HttpClientCallLogger(logger) {
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
234
|
+
this.f3s_1 = logger;
|
|
235
|
+
this.g3s_1 = StringBuilder_init_$Create$();
|
|
236
|
+
this.h3s_1 = StringBuilder_init_$Create$();
|
|
237
|
+
this.i3s_1 = Job();
|
|
238
|
+
this.j3s_1 = Job();
|
|
239
|
+
this.k3s_1 = atomic$boolean$1(false);
|
|
240
|
+
this.l3s_1 = atomic$boolean$1(false);
|
|
241
241
|
}
|
|
242
|
-
protoOf(HttpClientCallLogger).
|
|
242
|
+
protoOf(HttpClientCallLogger).g3t = function (message) {
|
|
243
243
|
// Inline function 'kotlin.text.appendLine' call
|
|
244
|
-
var this_0 = this.
|
|
244
|
+
var this_0 = this.g3s_1;
|
|
245
245
|
// Inline function 'kotlin.text.trim' call
|
|
246
246
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
247
247
|
// Inline function 'kotlin.text.appendLine' call
|
|
248
248
|
this_0.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
249
249
|
};
|
|
250
|
-
protoOf(HttpClientCallLogger).
|
|
250
|
+
protoOf(HttpClientCallLogger).h3t = function (message) {
|
|
251
251
|
// Inline function 'kotlin.text.appendLine' call
|
|
252
|
-
var this_0 = this.
|
|
252
|
+
var this_0 = this.h3s_1;
|
|
253
253
|
// Inline function 'kotlin.text.trim' call
|
|
254
254
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
255
255
|
// Inline function 'kotlin.text.appendLine' call
|
|
256
256
|
this_0.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
257
|
-
this.
|
|
257
|
+
this.j3s_1.vu();
|
|
258
258
|
};
|
|
259
|
-
protoOf(HttpClientCallLogger).
|
|
259
|
+
protoOf(HttpClientCallLogger).i3t = function (message, $completion) {
|
|
260
260
|
var tmp = new $logResponseExceptionCOROUTINE$0(this, message, $completion);
|
|
261
261
|
tmp.f9_1 = Unit_instance;
|
|
262
262
|
tmp.g9_1 = null;
|
|
263
263
|
return tmp.l9();
|
|
264
264
|
};
|
|
265
|
-
protoOf(HttpClientCallLogger).
|
|
265
|
+
protoOf(HttpClientCallLogger).j3t = function (message, $completion) {
|
|
266
266
|
var tmp = new $logResponseBodyCOROUTINE$1(this, message, $completion);
|
|
267
267
|
tmp.f9_1 = Unit_instance;
|
|
268
268
|
tmp.g9_1 = null;
|
|
269
269
|
return tmp.l9();
|
|
270
270
|
};
|
|
271
|
-
protoOf(HttpClientCallLogger).
|
|
272
|
-
if (!this.
|
|
271
|
+
protoOf(HttpClientCallLogger).k3t = function () {
|
|
272
|
+
if (!this.k3s_1.atomicfu$compareAndSet(false, true))
|
|
273
273
|
return Unit_instance;
|
|
274
274
|
try {
|
|
275
|
-
var message = toString(trim(this.
|
|
275
|
+
var message = toString(trim(this.g3s_1));
|
|
276
276
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
277
277
|
if (charSequenceLength(message) > 0) {
|
|
278
|
-
this.
|
|
278
|
+
this.f3s_1.m3s(message);
|
|
279
279
|
}
|
|
280
280
|
}finally {
|
|
281
|
-
this.
|
|
281
|
+
this.i3s_1.vu();
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
|
-
protoOf(HttpClientCallLogger).
|
|
284
|
+
protoOf(HttpClientCallLogger).l3t = function ($completion) {
|
|
285
285
|
var tmp = new $closeResponseLogCOROUTINE$2(this, $completion);
|
|
286
286
|
tmp.f9_1 = Unit_instance;
|
|
287
287
|
tmp.g9_1 = null;
|
|
@@ -305,9 +305,9 @@
|
|
|
305
305
|
}
|
|
306
306
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
307
307
|
Enum.call(this, name, ordinal);
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
308
|
+
this.o3t_1 = info;
|
|
309
|
+
this.p3t_1 = headers;
|
|
310
|
+
this.q3t_1 = body;
|
|
311
311
|
}
|
|
312
312
|
function LogLevel_ALL_getInstance() {
|
|
313
313
|
LogLevel_initEntries();
|
|
@@ -323,27 +323,27 @@
|
|
|
323
323
|
}
|
|
324
324
|
function LoggedContent(originalContent, channel) {
|
|
325
325
|
ReadChannelContent.call(this);
|
|
326
|
-
this.
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
326
|
+
this.s3t_1 = originalContent;
|
|
327
|
+
this.t3t_1 = channel;
|
|
328
|
+
this.u3t_1 = this.s3t_1.v2m();
|
|
329
|
+
this.v3t_1 = this.s3t_1.x2m();
|
|
330
|
+
this.w3t_1 = this.s3t_1.w2m();
|
|
331
|
+
this.x3t_1 = this.s3t_1.r2h();
|
|
332
332
|
}
|
|
333
|
-
protoOf(LoggedContent).t2m = function () {
|
|
334
|
-
return this.s3t_1;
|
|
335
|
-
};
|
|
336
333
|
protoOf(LoggedContent).v2m = function () {
|
|
337
|
-
return this.t3t_1;
|
|
338
|
-
};
|
|
339
|
-
protoOf(LoggedContent).u2m = function () {
|
|
340
334
|
return this.u3t_1;
|
|
341
335
|
};
|
|
342
|
-
protoOf(LoggedContent).
|
|
336
|
+
protoOf(LoggedContent).x2m = function () {
|
|
343
337
|
return this.v3t_1;
|
|
344
338
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
346
|
-
return this.
|
|
339
|
+
protoOf(LoggedContent).w2m = function () {
|
|
340
|
+
return this.w3t_1;
|
|
341
|
+
};
|
|
342
|
+
protoOf(LoggedContent).r2h = function () {
|
|
343
|
+
return this.x3t_1;
|
|
344
|
+
};
|
|
345
|
+
protoOf(LoggedContent).b2n = function () {
|
|
346
|
+
return this.t3t_1;
|
|
347
347
|
};
|
|
348
348
|
function Companion() {
|
|
349
349
|
}
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
}
|
|
357
357
|
function SimpleLogger() {
|
|
358
358
|
}
|
|
359
|
-
protoOf(SimpleLogger).
|
|
359
|
+
protoOf(SimpleLogger).m3s = function (message) {
|
|
360
360
|
println('HttpClient: ' + message);
|
|
361
361
|
};
|
|
362
362
|
function get_ClientCallLogger() {
|
|
@@ -372,51 +372,51 @@
|
|
|
372
372
|
function Config() {
|
|
373
373
|
var tmp = this;
|
|
374
374
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
375
|
-
tmp.
|
|
375
|
+
tmp.y3t_1 = ArrayList_init_$Create$();
|
|
376
376
|
var tmp_0 = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp_0.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
378
|
+
tmp_0.z3t_1 = ArrayList_init_$Create$();
|
|
379
|
+
this.a3u_1 = null;
|
|
380
|
+
this.b3u_1 = LogLevel_HEADERS_getInstance();
|
|
381
381
|
}
|
|
382
|
-
protoOf(Config).
|
|
383
|
-
this.
|
|
382
|
+
protoOf(Config).c3u = function (value) {
|
|
383
|
+
this.a3u_1 = value;
|
|
384
384
|
};
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
var tmp0_elvis_lhs = this.
|
|
385
|
+
protoOf(Config).d3u = function () {
|
|
386
|
+
var tmp0_elvis_lhs = this.a3u_1;
|
|
387
387
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
388
388
|
};
|
|
389
389
|
function setupRequestLogging($this, client) {
|
|
390
|
-
var tmp = Phases_getInstance().
|
|
391
|
-
client.
|
|
390
|
+
var tmp = Phases_getInstance().u2t_1;
|
|
391
|
+
client.e2r_1.w2a(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
392
392
|
}
|
|
393
393
|
function logRequest($this, request, $completion) {
|
|
394
|
-
var tmp = request.
|
|
394
|
+
var tmp = request.f2t_1;
|
|
395
395
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
396
|
-
var logger = new HttpClientCallLogger($this.
|
|
397
|
-
request.
|
|
396
|
+
var logger = new HttpClientCallLogger($this.e3u_1);
|
|
397
|
+
request.h2t_1.p23(get_ClientCallLogger(), logger);
|
|
398
398
|
// Inline function 'kotlin.text.buildString' call
|
|
399
399
|
// Inline function 'kotlin.contracts.contract' call
|
|
400
400
|
// Inline function 'kotlin.apply' call
|
|
401
401
|
var this_0 = StringBuilder_init_$Create$();
|
|
402
402
|
// Inline function 'kotlin.contracts.contract' call
|
|
403
403
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>' call
|
|
404
|
-
if ($this.
|
|
404
|
+
if ($this.f3u_1.o3t_1) {
|
|
405
405
|
// Inline function 'kotlin.text.appendLine' call
|
|
406
|
-
var value = 'REQUEST: ' + Url(request.
|
|
406
|
+
var value = 'REQUEST: ' + Url(request.c2t_1).toString();
|
|
407
407
|
// Inline function 'kotlin.text.appendLine' call
|
|
408
408
|
this_0.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
409
409
|
// Inline function 'kotlin.text.appendLine' call
|
|
410
|
-
var value_0 = 'METHOD: ' + request.
|
|
410
|
+
var value_0 = 'METHOD: ' + request.d2t_1.toString();
|
|
411
411
|
// Inline function 'kotlin.text.appendLine' call
|
|
412
412
|
this_0.i8(value_0).j8(_Char___init__impl__6a9atx(10));
|
|
413
413
|
}
|
|
414
|
-
if ($this.
|
|
414
|
+
if ($this.f3u_1.p3t_1) {
|
|
415
415
|
// Inline function 'kotlin.text.appendLine' call
|
|
416
416
|
var value_1 = 'COMMON HEADERS';
|
|
417
417
|
// Inline function 'kotlin.text.appendLine' call
|
|
418
418
|
this_0.i8(value_1).j8(_Char___init__impl__6a9atx(10));
|
|
419
|
-
logHeaders(this_0, request.
|
|
419
|
+
logHeaders(this_0, request.e2t_1.q27(), $this.h3u_1);
|
|
420
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
421
|
var value_2 = 'CONTENT HEADERS';
|
|
422
422
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -424,11 +424,11 @@
|
|
|
424
424
|
var tmp$ret$9;
|
|
425
425
|
$l$block: {
|
|
426
426
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
427
|
-
var tmp0_iterator = $this.
|
|
427
|
+
var tmp0_iterator = $this.h3u_1.j();
|
|
428
428
|
while (tmp0_iterator.k()) {
|
|
429
429
|
var element = tmp0_iterator.l();
|
|
430
430
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>.<anonymous>' call
|
|
431
|
-
if (element.
|
|
431
|
+
if (element.j3u_1(HttpHeaders_getInstance().d2e_1)) {
|
|
432
432
|
tmp$ret$9 = element;
|
|
433
433
|
break $l$block;
|
|
434
434
|
}
|
|
@@ -436,15 +436,15 @@
|
|
|
436
436
|
tmp$ret$9 = null;
|
|
437
437
|
}
|
|
438
438
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
439
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
439
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3u_1;
|
|
440
440
|
var tmp$ret$11;
|
|
441
441
|
$l$block_0: {
|
|
442
442
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
443
|
-
var tmp0_iterator_0 = $this.
|
|
443
|
+
var tmp0_iterator_0 = $this.h3u_1.j();
|
|
444
444
|
while (tmp0_iterator_0.k()) {
|
|
445
445
|
var element_0 = tmp0_iterator_0.l();
|
|
446
446
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>.<anonymous>' call
|
|
447
|
-
if (element_0.
|
|
447
|
+
if (element_0.j3u_1(HttpHeaders_getInstance().g2e_1)) {
|
|
448
448
|
tmp$ret$11 = element_0;
|
|
449
449
|
break $l$block_0;
|
|
450
450
|
}
|
|
@@ -452,41 +452,41 @@
|
|
|
452
452
|
tmp$ret$11 = null;
|
|
453
453
|
}
|
|
454
454
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
455
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
456
|
-
var tmp2_safe_receiver = content.
|
|
455
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i3u_1;
|
|
456
|
+
var tmp2_safe_receiver = content.x2m();
|
|
457
457
|
if (tmp2_safe_receiver == null)
|
|
458
458
|
null;
|
|
459
459
|
else {
|
|
460
460
|
// Inline function 'kotlin.let' call
|
|
461
461
|
// Inline function 'kotlin.contracts.contract' call
|
|
462
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
462
|
+
var tmp_0 = HttpHeaders_getInstance().d2e_1;
|
|
463
463
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
464
464
|
}
|
|
465
|
-
var tmp3_safe_receiver = content.
|
|
465
|
+
var tmp3_safe_receiver = content.v2m();
|
|
466
466
|
if (tmp3_safe_receiver == null)
|
|
467
467
|
null;
|
|
468
468
|
else {
|
|
469
469
|
// Inline function 'kotlin.let' call
|
|
470
470
|
// Inline function 'kotlin.contracts.contract' call
|
|
471
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
471
|
+
var tmp_1 = HttpHeaders_getInstance().g2e_1;
|
|
472
472
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
473
473
|
}
|
|
474
|
-
logHeaders(this_0, content.
|
|
474
|
+
logHeaders(this_0, content.r2h().q27(), $this.h3u_1);
|
|
475
475
|
}
|
|
476
476
|
var message = this_0.toString();
|
|
477
477
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
478
478
|
if (charSequenceLength(message) > 0) {
|
|
479
|
-
logger.
|
|
479
|
+
logger.g3t(message);
|
|
480
480
|
}
|
|
481
481
|
var tmp_2;
|
|
482
482
|
// Inline function 'kotlin.text.isEmpty' call
|
|
483
483
|
if (charSequenceLength(message) === 0) {
|
|
484
484
|
tmp_2 = true;
|
|
485
485
|
} else {
|
|
486
|
-
tmp_2 = !$this.
|
|
486
|
+
tmp_2 = !$this.f3u_1.q3t_1;
|
|
487
487
|
}
|
|
488
488
|
if (tmp_2) {
|
|
489
|
-
logger.
|
|
489
|
+
logger.k3t();
|
|
490
490
|
return null;
|
|
491
491
|
}
|
|
492
492
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -494,63 +494,63 @@
|
|
|
494
494
|
function logRequestBody($this, content, logger, $completion) {
|
|
495
495
|
var requestLog = StringBuilder_init_$Create$();
|
|
496
496
|
// Inline function 'kotlin.text.appendLine' call
|
|
497
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
497
|
+
var value = 'BODY Content-Type: ' + toString_0(content.v2m());
|
|
498
498
|
// Inline function 'kotlin.text.appendLine' call
|
|
499
499
|
requestLog.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
500
|
-
var tmp0_safe_receiver = content.
|
|
500
|
+
var tmp0_safe_receiver = content.v2m();
|
|
501
501
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
502
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
502
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1z_1 : tmp1_elvis_lhs;
|
|
503
503
|
var channel = ByteChannel();
|
|
504
504
|
var tmp = GlobalScope_instance;
|
|
505
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
505
|
+
var tmp_0 = Dispatchers_getInstance().bz_1;
|
|
506
506
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
507
|
-
tmp_1.
|
|
507
|
+
tmp_1.bo(Logging$logRequestBody$lambda(logger, requestLog));
|
|
508
508
|
return observe(content, channel, $completion);
|
|
509
509
|
}
|
|
510
510
|
function logRequestException($this, context, cause) {
|
|
511
|
-
if ($this.
|
|
512
|
-
$this.
|
|
511
|
+
if ($this.f3u_1.o3t_1) {
|
|
512
|
+
$this.e3u_1.m3s('REQUEST ' + Url(context.c2t_1).toString() + ' failed with exception: ' + cause.toString());
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function setupResponseLogging($this, client) {
|
|
516
|
-
var tmp = Phases_getInstance_0().
|
|
517
|
-
client.
|
|
518
|
-
var tmp_0 = Phases_getInstance_1().
|
|
519
|
-
client.
|
|
520
|
-
if (!$this.
|
|
516
|
+
var tmp = Phases_getInstance_0().f30_1;
|
|
517
|
+
client.f2r_1.w2a(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
518
|
+
var tmp_0 = Phases_getInstance_1().a2u_1;
|
|
519
|
+
client.d2r_1.w2a(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
520
|
+
if (!$this.f3u_1.q3t_1)
|
|
521
521
|
return Unit_instance;
|
|
522
522
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
523
|
-
Plugin_getInstance().
|
|
523
|
+
Plugin_getInstance().y3h(new ResponseObserver(observer), client);
|
|
524
524
|
}
|
|
525
525
|
function logResponseException($this, log, request, cause) {
|
|
526
|
-
if (!$this.
|
|
526
|
+
if (!$this.f3u_1.o3t_1)
|
|
527
527
|
return Unit_instance;
|
|
528
|
-
log.i8('RESPONSE ' + request.
|
|
528
|
+
log.i8('RESPONSE ' + request.p2v().toString() + ' failed with exception: ' + cause.toString());
|
|
529
529
|
}
|
|
530
530
|
function Companion_0() {
|
|
531
531
|
Companion_instance_0 = this;
|
|
532
|
-
this.
|
|
532
|
+
this.k3u_1 = new AttributeKey('ClientLogging');
|
|
533
533
|
}
|
|
534
534
|
protoOf(Companion_0).t = function () {
|
|
535
|
-
return this.
|
|
535
|
+
return this.k3u_1;
|
|
536
536
|
};
|
|
537
|
-
protoOf(Companion_0).
|
|
537
|
+
protoOf(Companion_0).l3u = function (block) {
|
|
538
538
|
// Inline function 'kotlin.apply' call
|
|
539
539
|
var this_0 = new Config();
|
|
540
540
|
// Inline function 'kotlin.contracts.contract' call
|
|
541
541
|
block(this_0);
|
|
542
542
|
var config = this_0;
|
|
543
|
-
return new Logging(config.
|
|
543
|
+
return new Logging(config.d3u(), config.b3u_1, config.y3t_1, config.z3t_1);
|
|
544
544
|
};
|
|
545
|
-
protoOf(Companion_0).
|
|
546
|
-
return this.
|
|
545
|
+
protoOf(Companion_0).h2u = function (block) {
|
|
546
|
+
return this.l3u(block);
|
|
547
547
|
};
|
|
548
|
-
protoOf(Companion_0).
|
|
548
|
+
protoOf(Companion_0).m3u = function (plugin, scope) {
|
|
549
549
|
setupRequestLogging(plugin, scope);
|
|
550
550
|
setupResponseLogging(plugin, scope);
|
|
551
551
|
};
|
|
552
|
-
protoOf(Companion_0).
|
|
553
|
-
return this.
|
|
552
|
+
protoOf(Companion_0).i2u = function (plugin, scope) {
|
|
553
|
+
return this.m3u(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
554
554
|
};
|
|
555
555
|
var Companion_instance_0;
|
|
556
556
|
function Companion_getInstance_0() {
|
|
@@ -560,13 +560,13 @@
|
|
|
560
560
|
}
|
|
561
561
|
function shouldBeLogged($this, request) {
|
|
562
562
|
var tmp;
|
|
563
|
-
if ($this.
|
|
563
|
+
if ($this.g3u_1.p()) {
|
|
564
564
|
tmp = true;
|
|
565
565
|
} else {
|
|
566
566
|
var tmp$ret$0;
|
|
567
567
|
$l$block_0: {
|
|
568
568
|
// Inline function 'kotlin.collections.any' call
|
|
569
|
-
var this_0 = $this.
|
|
569
|
+
var this_0 = $this.g3u_1;
|
|
570
570
|
var tmp_0;
|
|
571
571
|
if (isInterface(this_0, Collection)) {
|
|
572
572
|
tmp_0 = this_0.p();
|
|
@@ -593,18 +593,18 @@
|
|
|
593
593
|
return tmp;
|
|
594
594
|
}
|
|
595
595
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
596
|
-
this.
|
|
596
|
+
this.v3u_1 = this$0;
|
|
597
597
|
CoroutineImpl.call(this, resultContinuation);
|
|
598
598
|
}
|
|
599
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
600
|
-
var tmp = this.
|
|
599
|
+
protoOf(Logging$setupRequestLogging$slambda).w2r = function ($this$intercept, it, $completion) {
|
|
600
|
+
var tmp = this.x2r($this$intercept, it, $completion);
|
|
601
601
|
tmp.f9_1 = Unit_instance;
|
|
602
602
|
tmp.g9_1 = null;
|
|
603
603
|
return tmp.l9();
|
|
604
604
|
};
|
|
605
605
|
protoOf(Logging$setupRequestLogging$slambda).wi = function (p1, p2, $completion) {
|
|
606
606
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
607
|
-
return this.
|
|
607
|
+
return this.w2r(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
608
608
|
};
|
|
609
609
|
protoOf(Logging$setupRequestLogging$slambda).l9 = function () {
|
|
610
610
|
var suspendResult = this.f9_1;
|
|
@@ -614,21 +614,21 @@
|
|
|
614
614
|
switch (tmp) {
|
|
615
615
|
case 0:
|
|
616
616
|
this.e9_1 = 8;
|
|
617
|
-
if (!shouldBeLogged(this.
|
|
618
|
-
this.
|
|
617
|
+
if (!shouldBeLogged(this.v3u_1, this.w3u_1.s2a_1)) {
|
|
618
|
+
this.w3u_1.s2a_1.h2t_1.p23(get_DisableLogging(), Unit_instance);
|
|
619
619
|
return Unit_instance;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
this.e9_1 = 2;
|
|
623
623
|
this.d9_1 = 1;
|
|
624
|
-
suspendResult = logRequest(this.
|
|
624
|
+
suspendResult = logRequest(this.v3u_1, this.w3u_1.s2a_1, this);
|
|
625
625
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
626
626
|
return suspendResult;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
continue $sm;
|
|
630
630
|
case 1:
|
|
631
|
-
this.
|
|
631
|
+
this.y3u_1 = suspendResult;
|
|
632
632
|
this.e9_1 = 8;
|
|
633
633
|
this.d9_1 = 3;
|
|
634
634
|
continue $sm;
|
|
@@ -636,9 +636,9 @@
|
|
|
636
636
|
this.e9_1 = 8;
|
|
637
637
|
var tmp_0 = this.g9_1;
|
|
638
638
|
if (tmp_0 instanceof Error) {
|
|
639
|
-
this.
|
|
639
|
+
this.z3u_1 = this.g9_1;
|
|
640
640
|
var tmp_1 = this;
|
|
641
|
-
tmp_1.
|
|
641
|
+
tmp_1.y3u_1 = null;
|
|
642
642
|
this.d9_1 = 3;
|
|
643
643
|
continue $sm;
|
|
644
644
|
} else {
|
|
@@ -647,15 +647,15 @@
|
|
|
647
647
|
|
|
648
648
|
case 3:
|
|
649
649
|
this.e9_1 = 8;
|
|
650
|
-
this.
|
|
650
|
+
this.a3v_1 = this.y3u_1;
|
|
651
651
|
this.d9_1 = 4;
|
|
652
652
|
continue $sm;
|
|
653
653
|
case 4:
|
|
654
654
|
this.e9_1 = 7;
|
|
655
655
|
this.e9_1 = 6;
|
|
656
656
|
this.d9_1 = 5;
|
|
657
|
-
var tmp0_elvis_lhs = this.
|
|
658
|
-
suspendResult = this.
|
|
657
|
+
var tmp0_elvis_lhs = this.a3v_1;
|
|
658
|
+
suspendResult = this.w3u_1.w29(tmp0_elvis_lhs == null ? this.w3u_1.v29() : tmp0_elvis_lhs, this);
|
|
659
659
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
660
660
|
return suspendResult;
|
|
661
661
|
}
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
continue $sm;
|
|
664
664
|
case 5:
|
|
665
665
|
var tmp_2 = this;
|
|
666
|
-
tmp_2.
|
|
666
|
+
tmp_2.b3v_1 = Unit_instance;
|
|
667
667
|
this.e9_1 = 8;
|
|
668
668
|
this.d9_1 = 9;
|
|
669
669
|
continue $sm;
|
|
@@ -673,7 +673,7 @@
|
|
|
673
673
|
if (tmp_3 instanceof Error) {
|
|
674
674
|
var cause = this.g9_1;
|
|
675
675
|
var tmp_4 = this;
|
|
676
|
-
logRequestException(this.
|
|
676
|
+
logRequestException(this.v3u_1, this.w3u_1.s2a_1, cause);
|
|
677
677
|
throw cause;
|
|
678
678
|
} else {
|
|
679
679
|
throw this.g9_1;
|
|
@@ -700,34 +700,34 @@
|
|
|
700
700
|
}
|
|
701
701
|
while (true);
|
|
702
702
|
};
|
|
703
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
704
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
705
|
-
i.
|
|
706
|
-
i.
|
|
703
|
+
protoOf(Logging$setupRequestLogging$slambda).x2r = function ($this$intercept, it, completion) {
|
|
704
|
+
var i = new Logging$setupRequestLogging$slambda(this.v3u_1, completion);
|
|
705
|
+
i.w3u_1 = $this$intercept;
|
|
706
|
+
i.x3u_1 = it;
|
|
707
707
|
return i;
|
|
708
708
|
};
|
|
709
709
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
710
710
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
711
711
|
var l = function ($this$intercept, it, $completion) {
|
|
712
|
-
return i.
|
|
712
|
+
return i.w2r($this$intercept, it, $completion);
|
|
713
713
|
};
|
|
714
714
|
l.$arity = 2;
|
|
715
715
|
return l;
|
|
716
716
|
}
|
|
717
717
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
718
|
+
this.k3v_1 = $channel;
|
|
719
|
+
this.l3v_1 = $charset;
|
|
720
|
+
this.m3v_1 = $requestLog;
|
|
721
721
|
CoroutineImpl.call(this, resultContinuation);
|
|
722
722
|
}
|
|
723
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
724
|
-
var tmp = this.
|
|
723
|
+
protoOf(Logging$logRequestBody$slambda).c1c = function ($this$launch, $completion) {
|
|
724
|
+
var tmp = this.d1c($this$launch, $completion);
|
|
725
725
|
tmp.f9_1 = Unit_instance;
|
|
726
726
|
tmp.g9_1 = null;
|
|
727
727
|
return tmp.l9();
|
|
728
728
|
};
|
|
729
729
|
protoOf(Logging$logRequestBody$slambda).ga = function (p1, $completion) {
|
|
730
|
-
return this.
|
|
730
|
+
return this.c1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
731
731
|
};
|
|
732
732
|
protoOf(Logging$logRequestBody$slambda).l9 = function () {
|
|
733
733
|
var suspendResult = this.f9_1;
|
|
@@ -738,12 +738,12 @@
|
|
|
738
738
|
case 0:
|
|
739
739
|
this.e9_1 = 3;
|
|
740
740
|
var tmp_0 = this;
|
|
741
|
-
tmp_0.
|
|
741
|
+
tmp_0.o3v_1 = this.k3v_1;
|
|
742
742
|
var tmp_1 = this;
|
|
743
|
-
tmp_1.
|
|
743
|
+
tmp_1.p3v_1 = this.l3v_1;
|
|
744
744
|
this.e9_1 = 2;
|
|
745
745
|
this.d9_1 = 1;
|
|
746
|
-
suspendResult = this.
|
|
746
|
+
suspendResult = this.o3v_1.e1v(VOID, this);
|
|
747
747
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
748
748
|
return suspendResult;
|
|
749
749
|
}
|
|
@@ -751,7 +751,7 @@
|
|
|
751
751
|
continue $sm;
|
|
752
752
|
case 1:
|
|
753
753
|
var ARGUMENT = suspendResult;
|
|
754
|
-
this.
|
|
754
|
+
this.q3v_1 = readText(ARGUMENT, this.p3v_1);
|
|
755
755
|
this.e9_1 = 3;
|
|
756
756
|
this.d9_1 = 4;
|
|
757
757
|
continue $sm;
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
if (tmp_2 instanceof Error) {
|
|
762
762
|
var cause = this.g9_1;
|
|
763
763
|
var tmp_3 = this;
|
|
764
|
-
tmp_3.
|
|
764
|
+
tmp_3.q3v_1 = null;
|
|
765
765
|
this.d9_1 = 4;
|
|
766
766
|
continue $sm;
|
|
767
767
|
} else {
|
|
@@ -772,13 +772,13 @@
|
|
|
772
772
|
throw this.g9_1;
|
|
773
773
|
case 4:
|
|
774
774
|
this.e9_1 = 3;
|
|
775
|
-
var tmp0_elvis_lhs = this.
|
|
775
|
+
var tmp0_elvis_lhs = this.q3v_1;
|
|
776
776
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
777
|
-
var this_0 = this.
|
|
777
|
+
var this_0 = this.m3v_1;
|
|
778
778
|
var value = 'BODY START';
|
|
779
779
|
this_0.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
780
|
-
this.
|
|
781
|
-
this.
|
|
780
|
+
this.m3v_1.i8(text).j8(_Char___init__impl__6a9atx(10));
|
|
781
|
+
this.m3v_1.i8('BODY END');
|
|
782
782
|
return Unit_instance;
|
|
783
783
|
}
|
|
784
784
|
} catch ($p) {
|
|
@@ -792,39 +792,39 @@
|
|
|
792
792
|
}
|
|
793
793
|
while (true);
|
|
794
794
|
};
|
|
795
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
796
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
797
|
-
i.
|
|
795
|
+
protoOf(Logging$logRequestBody$slambda).d1c = function ($this$launch, completion) {
|
|
796
|
+
var i = new Logging$logRequestBody$slambda(this.k3v_1, this.l3v_1, this.m3v_1, completion);
|
|
797
|
+
i.n3v_1 = $this$launch;
|
|
798
798
|
return i;
|
|
799
799
|
};
|
|
800
800
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
801
801
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
802
802
|
var l = function ($this$launch, $completion) {
|
|
803
|
-
return i.
|
|
803
|
+
return i.c1c($this$launch, $completion);
|
|
804
804
|
};
|
|
805
805
|
l.$arity = 1;
|
|
806
806
|
return l;
|
|
807
807
|
}
|
|
808
808
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
809
809
|
return function (it) {
|
|
810
|
-
$logger.
|
|
811
|
-
$logger.
|
|
810
|
+
$logger.g3t($requestLog.toString());
|
|
811
|
+
$logger.k3t();
|
|
812
812
|
return Unit_instance;
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
815
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
816
|
-
this.
|
|
816
|
+
this.z3v_1 = this$0;
|
|
817
817
|
CoroutineImpl.call(this, resultContinuation);
|
|
818
818
|
}
|
|
819
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
820
|
-
var tmp = this.
|
|
819
|
+
protoOf(Logging$setupResponseLogging$slambda).i31 = function ($this$intercept, response, $completion) {
|
|
820
|
+
var tmp = this.j31($this$intercept, response, $completion);
|
|
821
821
|
tmp.f9_1 = Unit_instance;
|
|
822
822
|
tmp.g9_1 = null;
|
|
823
823
|
return tmp.l9();
|
|
824
824
|
};
|
|
825
825
|
protoOf(Logging$setupResponseLogging$slambda).wi = function (p1, p2, $completion) {
|
|
826
826
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
827
|
-
return this.
|
|
827
|
+
return this.i31(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
828
828
|
};
|
|
829
829
|
protoOf(Logging$setupResponseLogging$slambda).l9 = function () {
|
|
830
830
|
var suspendResult = this.f9_1;
|
|
@@ -834,19 +834,19 @@
|
|
|
834
834
|
switch (tmp) {
|
|
835
835
|
case 0:
|
|
836
836
|
this.e9_1 = 10;
|
|
837
|
-
if (this.
|
|
837
|
+
if (this.z3v_1.f3u_1.equals(LogLevel_NONE_getInstance()) || this.b3w_1.k2w().r2u().o23(get_DisableLogging()))
|
|
838
838
|
return Unit_instance;
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
839
|
+
this.c3w_1 = this.b3w_1.k2w().r2u().m23(get_ClientCallLogger());
|
|
840
|
+
this.d3w_1 = StringBuilder_init_$Create$();
|
|
841
|
+
this.e3w_1 = false;
|
|
842
842
|
this.d9_1 = 1;
|
|
843
843
|
continue $sm;
|
|
844
844
|
case 1:
|
|
845
845
|
this.e9_1 = 4;
|
|
846
846
|
this.e9_1 = 3;
|
|
847
|
-
logResponseHeader(this.
|
|
847
|
+
logResponseHeader(this.d3w_1, this.b3w_1.k2w().d2s(), this.z3v_1.f3u_1, this.z3v_1.h3u_1);
|
|
848
848
|
this.d9_1 = 2;
|
|
849
|
-
suspendResult = this.
|
|
849
|
+
suspendResult = this.a3w_1.w29(this.a3w_1.v29(), this);
|
|
850
850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
851
851
|
return suspendResult;
|
|
852
852
|
}
|
|
@@ -854,7 +854,7 @@
|
|
|
854
854
|
continue $sm;
|
|
855
855
|
case 2:
|
|
856
856
|
var tmp_0 = this;
|
|
857
|
-
tmp_0.
|
|
857
|
+
tmp_0.f3w_1 = Unit_instance;
|
|
858
858
|
this.e9_1 = 10;
|
|
859
859
|
this.d9_1 = 7;
|
|
860
860
|
continue $sm;
|
|
@@ -862,22 +862,22 @@
|
|
|
862
862
|
this.e9_1 = 4;
|
|
863
863
|
var tmp_1 = this.g9_1;
|
|
864
864
|
if (tmp_1 instanceof Error) {
|
|
865
|
-
this.
|
|
865
|
+
this.g3w_1 = this.g9_1;
|
|
866
866
|
var tmp_2 = this;
|
|
867
|
-
logResponseException(this.
|
|
868
|
-
this.
|
|
869
|
-
throw this.
|
|
867
|
+
logResponseException(this.z3v_1, this.d3w_1, this.b3w_1.k2w().m2v(), this.g3w_1);
|
|
868
|
+
this.e3w_1 = true;
|
|
869
|
+
throw this.g3w_1;
|
|
870
870
|
} else {
|
|
871
871
|
throw this.g9_1;
|
|
872
872
|
}
|
|
873
873
|
|
|
874
874
|
case 4:
|
|
875
875
|
this.e9_1 = 10;
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
878
|
-
if (this.
|
|
876
|
+
this.h3w_1 = this.g9_1;
|
|
877
|
+
this.c3w_1.h3t(this.d3w_1.toString());
|
|
878
|
+
if (this.e3w_1 || !this.z3v_1.f3u_1.q3t_1) {
|
|
879
879
|
this.d9_1 = 5;
|
|
880
|
-
suspendResult = this.
|
|
880
|
+
suspendResult = this.c3w_1.l3t(this);
|
|
881
881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
882
882
|
return suspendResult;
|
|
883
883
|
}
|
|
@@ -891,13 +891,13 @@
|
|
|
891
891
|
this.d9_1 = 6;
|
|
892
892
|
continue $sm;
|
|
893
893
|
case 6:
|
|
894
|
-
throw this.
|
|
894
|
+
throw this.h3w_1;
|
|
895
895
|
case 7:
|
|
896
896
|
this.e9_1 = 10;
|
|
897
|
-
this.
|
|
898
|
-
if (this.
|
|
897
|
+
this.c3w_1.h3t(this.d3w_1.toString());
|
|
898
|
+
if (this.e3w_1 || !this.z3v_1.f3u_1.q3t_1) {
|
|
899
899
|
this.d9_1 = 8;
|
|
900
|
-
suspendResult = this.
|
|
900
|
+
suspendResult = this.c3w_1.l3t(this);
|
|
901
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
902
|
return suspendResult;
|
|
903
903
|
}
|
|
@@ -926,33 +926,33 @@
|
|
|
926
926
|
}
|
|
927
927
|
while (true);
|
|
928
928
|
};
|
|
929
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
930
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
931
|
-
i.
|
|
932
|
-
i.
|
|
929
|
+
protoOf(Logging$setupResponseLogging$slambda).j31 = function ($this$intercept, response, completion) {
|
|
930
|
+
var i = new Logging$setupResponseLogging$slambda(this.z3v_1, completion);
|
|
931
|
+
i.a3w_1 = $this$intercept;
|
|
932
|
+
i.b3w_1 = response;
|
|
933
933
|
return i;
|
|
934
934
|
};
|
|
935
935
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
936
936
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
937
937
|
var l = function ($this$intercept, response, $completion) {
|
|
938
|
-
return i.
|
|
938
|
+
return i.i31($this$intercept, response, $completion);
|
|
939
939
|
};
|
|
940
940
|
l.$arity = 2;
|
|
941
941
|
return l;
|
|
942
942
|
}
|
|
943
943
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
944
|
-
this.
|
|
944
|
+
this.q3w_1 = this$0;
|
|
945
945
|
CoroutineImpl.call(this, resultContinuation);
|
|
946
946
|
}
|
|
947
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
948
|
-
var tmp = this.
|
|
947
|
+
protoOf(Logging$setupResponseLogging$slambda_1).q2s = function ($this$intercept, it, $completion) {
|
|
948
|
+
var tmp = this.r2s($this$intercept, it, $completion);
|
|
949
949
|
tmp.f9_1 = Unit_instance;
|
|
950
950
|
tmp.g9_1 = null;
|
|
951
951
|
return tmp.l9();
|
|
952
952
|
};
|
|
953
953
|
protoOf(Logging$setupResponseLogging$slambda_1).wi = function (p1, p2, $completion) {
|
|
954
954
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
955
|
-
return this.
|
|
955
|
+
return this.q2s(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
956
956
|
};
|
|
957
957
|
protoOf(Logging$setupResponseLogging$slambda_1).l9 = function () {
|
|
958
958
|
var suspendResult = this.f9_1;
|
|
@@ -962,13 +962,13 @@
|
|
|
962
962
|
switch (tmp) {
|
|
963
963
|
case 0:
|
|
964
964
|
this.e9_1 = 6;
|
|
965
|
-
if (this.
|
|
965
|
+
if (this.q3w_1.f3u_1.equals(LogLevel_NONE_getInstance()) || this.r3w_1.s2a_1.r2u().o23(get_DisableLogging())) {
|
|
966
966
|
return Unit_instance;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
969
|
this.e9_1 = 3;
|
|
970
970
|
this.d9_1 = 1;
|
|
971
|
-
suspendResult = this.
|
|
971
|
+
suspendResult = this.r3w_1.x29(this);
|
|
972
972
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
973
973
|
return suspendResult;
|
|
974
974
|
}
|
|
@@ -985,12 +985,12 @@
|
|
|
985
985
|
this.e9_1 = 6;
|
|
986
986
|
var tmp_0 = this.g9_1;
|
|
987
987
|
if (tmp_0 instanceof Error) {
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
logResponseException(this.
|
|
988
|
+
this.t3w_1 = this.g9_1;
|
|
989
|
+
this.u3w_1 = StringBuilder_init_$Create$();
|
|
990
|
+
this.v3w_1 = this.r3w_1.s2a_1.r2u().m23(get_ClientCallLogger());
|
|
991
|
+
logResponseException(this.q3w_1, this.u3w_1, this.r3w_1.s2a_1.m2v(), this.t3w_1);
|
|
992
992
|
this.d9_1 = 4;
|
|
993
|
-
suspendResult = this.
|
|
993
|
+
suspendResult = this.v3w_1.i3t(this.u3w_1.toString(), this);
|
|
994
994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
995
995
|
return suspendResult;
|
|
996
996
|
}
|
|
@@ -1001,14 +1001,14 @@
|
|
|
1001
1001
|
|
|
1002
1002
|
case 4:
|
|
1003
1003
|
this.d9_1 = 5;
|
|
1004
|
-
suspendResult = this.
|
|
1004
|
+
suspendResult = this.v3w_1.l3t(this);
|
|
1005
1005
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1006
1006
|
return suspendResult;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
1009
|
continue $sm;
|
|
1010
1010
|
case 5:
|
|
1011
|
-
throw this.
|
|
1011
|
+
throw this.t3w_1;
|
|
1012
1012
|
case 6:
|
|
1013
1013
|
throw this.g9_1;
|
|
1014
1014
|
}
|
|
@@ -1023,32 +1023,32 @@
|
|
|
1023
1023
|
}
|
|
1024
1024
|
while (true);
|
|
1025
1025
|
};
|
|
1026
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1027
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1028
|
-
i.
|
|
1029
|
-
i.
|
|
1026
|
+
protoOf(Logging$setupResponseLogging$slambda_1).r2s = function ($this$intercept, it, completion) {
|
|
1027
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.q3w_1, completion);
|
|
1028
|
+
i.r3w_1 = $this$intercept;
|
|
1029
|
+
i.s3w_1 = it;
|
|
1030
1030
|
return i;
|
|
1031
1031
|
};
|
|
1032
1032
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1033
1033
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1034
1034
|
var l = function ($this$intercept, it, $completion) {
|
|
1035
|
-
return i.
|
|
1035
|
+
return i.q2s($this$intercept, it, $completion);
|
|
1036
1036
|
};
|
|
1037
1037
|
l.$arity = 2;
|
|
1038
1038
|
return l;
|
|
1039
1039
|
}
|
|
1040
1040
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1041
|
-
this.
|
|
1041
|
+
this.e3x_1 = this$0;
|
|
1042
1042
|
CoroutineImpl.call(this, resultContinuation);
|
|
1043
1043
|
}
|
|
1044
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1045
|
-
var tmp = this.
|
|
1044
|
+
protoOf(Logging$setupResponseLogging$slambda_3).a33 = function (it, $completion) {
|
|
1045
|
+
var tmp = this.b33(it, $completion);
|
|
1046
1046
|
tmp.f9_1 = Unit_instance;
|
|
1047
1047
|
tmp.g9_1 = null;
|
|
1048
1048
|
return tmp.l9();
|
|
1049
1049
|
};
|
|
1050
1050
|
protoOf(Logging$setupResponseLogging$slambda_3).ga = function (p1, $completion) {
|
|
1051
|
-
return this.
|
|
1051
|
+
return this.a33(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1052
1052
|
};
|
|
1053
1053
|
protoOf(Logging$setupResponseLogging$slambda_3).l9 = function () {
|
|
1054
1054
|
var suspendResult = this.f9_1;
|
|
@@ -1058,26 +1058,26 @@
|
|
|
1058
1058
|
switch (tmp) {
|
|
1059
1059
|
case 0:
|
|
1060
1060
|
this.e9_1 = 10;
|
|
1061
|
-
if (this.
|
|
1061
|
+
if (this.e3x_1.f3u_1.equals(LogLevel_NONE_getInstance()) || this.f3x_1.k2w().r2u().o23(get_DisableLogging())) {
|
|
1062
1062
|
return Unit_instance;
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
|
-
this.
|
|
1066
|
-
this.
|
|
1065
|
+
this.g3x_1 = this.f3x_1.k2w().r2u().m23(get_ClientCallLogger());
|
|
1066
|
+
this.h3x_1 = StringBuilder_init_$Create$();
|
|
1067
1067
|
this.d9_1 = 1;
|
|
1068
1068
|
continue $sm;
|
|
1069
1069
|
case 1:
|
|
1070
1070
|
this.e9_1 = 4;
|
|
1071
1071
|
this.e9_1 = 3;
|
|
1072
1072
|
this.d9_1 = 2;
|
|
1073
|
-
suspendResult = logResponseBody(this.
|
|
1073
|
+
suspendResult = logResponseBody(this.h3x_1, contentType(this.f3x_1), this.f3x_1.n2v(), this);
|
|
1074
1074
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1075
1075
|
return suspendResult;
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
continue $sm;
|
|
1079
1079
|
case 2:
|
|
1080
|
-
this.
|
|
1080
|
+
this.i3x_1 = suspendResult;
|
|
1081
1081
|
this.e9_1 = 10;
|
|
1082
1082
|
this.d9_1 = 7;
|
|
1083
1083
|
continue $sm;
|
|
@@ -1085,9 +1085,9 @@
|
|
|
1085
1085
|
this.e9_1 = 4;
|
|
1086
1086
|
var tmp_0 = this.g9_1;
|
|
1087
1087
|
if (tmp_0 instanceof Error) {
|
|
1088
|
-
this.
|
|
1088
|
+
this.j3x_1 = this.g9_1;
|
|
1089
1089
|
var tmp_1 = this;
|
|
1090
|
-
tmp_1.
|
|
1090
|
+
tmp_1.i3x_1 = Unit_instance;
|
|
1091
1091
|
this.e9_1 = 10;
|
|
1092
1092
|
this.d9_1 = 7;
|
|
1093
1093
|
continue $sm;
|
|
@@ -1097,10 +1097,10 @@
|
|
|
1097
1097
|
|
|
1098
1098
|
case 4:
|
|
1099
1099
|
this.e9_1 = 10;
|
|
1100
|
-
this.
|
|
1100
|
+
this.k3x_1 = this.g9_1;
|
|
1101
1101
|
this.d9_1 = 5;
|
|
1102
|
-
var this_0 = this.
|
|
1103
|
-
suspendResult = this.
|
|
1102
|
+
var this_0 = this.h3x_1.toString();
|
|
1103
|
+
suspendResult = this.g3x_1.j3t(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1104
1104
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1105
1105
|
return suspendResult;
|
|
1106
1106
|
}
|
|
@@ -1108,19 +1108,19 @@
|
|
|
1108
1108
|
continue $sm;
|
|
1109
1109
|
case 5:
|
|
1110
1110
|
this.d9_1 = 6;
|
|
1111
|
-
suspendResult = this.
|
|
1111
|
+
suspendResult = this.g3x_1.l3t(this);
|
|
1112
1112
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1113
1113
|
return suspendResult;
|
|
1114
1114
|
}
|
|
1115
1115
|
|
|
1116
1116
|
continue $sm;
|
|
1117
1117
|
case 6:
|
|
1118
|
-
throw this.
|
|
1118
|
+
throw this.k3x_1;
|
|
1119
1119
|
case 7:
|
|
1120
1120
|
this.e9_1 = 10;
|
|
1121
1121
|
this.d9_1 = 8;
|
|
1122
|
-
var this_1 = this.
|
|
1123
|
-
suspendResult = this.
|
|
1122
|
+
var this_1 = this.h3x_1.toString();
|
|
1123
|
+
suspendResult = this.g3x_1.j3t(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1124
1124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1125
|
return suspendResult;
|
|
1126
1126
|
}
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
continue $sm;
|
|
1129
1129
|
case 8:
|
|
1130
1130
|
this.d9_1 = 9;
|
|
1131
|
-
suspendResult = this.
|
|
1131
|
+
suspendResult = this.g3x_1.l3t(this);
|
|
1132
1132
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1133
1133
|
return suspendResult;
|
|
1134
1134
|
}
|
|
@@ -1150,15 +1150,15 @@
|
|
|
1150
1150
|
}
|
|
1151
1151
|
while (true);
|
|
1152
1152
|
};
|
|
1153
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1154
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1155
|
-
i.
|
|
1153
|
+
protoOf(Logging$setupResponseLogging$slambda_3).b33 = function (it, completion) {
|
|
1154
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.e3x_1, completion);
|
|
1155
|
+
i.f3x_1 = it;
|
|
1156
1156
|
return i;
|
|
1157
1157
|
};
|
|
1158
1158
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1159
1159
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1160
1160
|
var l = function (it, $completion) {
|
|
1161
|
-
return i.
|
|
1161
|
+
return i.a33(it, $completion);
|
|
1162
1162
|
};
|
|
1163
1163
|
l.$arity = 1;
|
|
1164
1164
|
return l;
|
|
@@ -1166,10 +1166,10 @@
|
|
|
1166
1166
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1167
1167
|
Companion_getInstance_0();
|
|
1168
1168
|
filters = filters === VOID ? emptyList() : filters;
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1169
|
+
this.e3u_1 = logger;
|
|
1170
|
+
this.f3u_1 = level;
|
|
1171
|
+
this.g3u_1 = filters;
|
|
1172
|
+
this.h3u_1 = sanitizedHeaders;
|
|
1173
1173
|
}
|
|
1174
1174
|
var properties_initialized_Logging_kt_588vu7;
|
|
1175
1175
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1202,7 +1202,7 @@
|
|
|
1202
1202
|
while (tmp0_iterator_0.k()) {
|
|
1203
1203
|
var element_0 = tmp0_iterator_0.l();
|
|
1204
1204
|
// Inline function 'io.ktor.client.plugins.logging.logHeaders.<anonymous>.<anonymous>' call
|
|
1205
|
-
if (element_0.
|
|
1205
|
+
if (element_0.j3u_1(key)) {
|
|
1206
1206
|
tmp$ret$5 = element_0;
|
|
1207
1207
|
break $l$block;
|
|
1208
1208
|
}
|
|
@@ -1210,7 +1210,7 @@
|
|
|
1210
1210
|
tmp$ret$5 = null;
|
|
1211
1211
|
}
|
|
1212
1212
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1213
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1213
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i3u_1;
|
|
1214
1214
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
@@ -1223,26 +1223,26 @@
|
|
|
1223
1223
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1224
1224
|
// Inline function 'kotlin.with' call
|
|
1225
1225
|
// Inline function 'kotlin.contracts.contract' call
|
|
1226
|
-
if (level.
|
|
1226
|
+
if (level.o3t_1) {
|
|
1227
1227
|
// Inline function 'kotlin.text.appendLine' call
|
|
1228
|
-
var value = 'RESPONSE: ' + response.
|
|
1228
|
+
var value = 'RESPONSE: ' + response.w2m().toString();
|
|
1229
1229
|
// Inline function 'kotlin.text.appendLine' call
|
|
1230
1230
|
log.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
1231
1231
|
// Inline function 'kotlin.text.appendLine' call
|
|
1232
|
-
var value_0 = 'METHOD: ' + response.
|
|
1232
|
+
var value_0 = 'METHOD: ' + response.k2w().m2v().l2w().toString();
|
|
1233
1233
|
// Inline function 'kotlin.text.appendLine' call
|
|
1234
1234
|
log.i8(value_0).j8(_Char___init__impl__6a9atx(10));
|
|
1235
1235
|
// Inline function 'kotlin.text.appendLine' call
|
|
1236
|
-
var value_1 = 'FROM: ' + response.
|
|
1236
|
+
var value_1 = 'FROM: ' + response.k2w().m2v().p2v().toString();
|
|
1237
1237
|
// Inline function 'kotlin.text.appendLine' call
|
|
1238
1238
|
log.i8(value_1).j8(_Char___init__impl__6a9atx(10));
|
|
1239
1239
|
}
|
|
1240
|
-
if (level.
|
|
1240
|
+
if (level.p3t_1) {
|
|
1241
1241
|
// Inline function 'kotlin.text.appendLine' call
|
|
1242
1242
|
var value_2 = 'COMMON HEADERS';
|
|
1243
1243
|
// Inline function 'kotlin.text.appendLine' call
|
|
1244
1244
|
log.i8(value_2).j8(_Char___init__impl__6a9atx(10));
|
|
1245
|
-
logHeaders(log, response.
|
|
1245
|
+
logHeaders(log, response.r2h().q27(), sanitizedHeaders);
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
1248
|
function logResponseBody(log, contentType, content, $completion) {
|
|
@@ -1252,10 +1252,10 @@
|
|
|
1252
1252
|
return tmp.l9();
|
|
1253
1253
|
}
|
|
1254
1254
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1255
|
-
this.
|
|
1255
|
+
this.b3y_1 = function_0;
|
|
1256
1256
|
}
|
|
1257
1257
|
protoOf(sam$kotlin_Comparator$0).jc = function (a, b) {
|
|
1258
|
-
return this.
|
|
1258
|
+
return this.b3y_1(a, b);
|
|
1259
1259
|
};
|
|
1260
1260
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1261
1261
|
return this.jc(a, b);
|
|
@@ -1270,9 +1270,9 @@
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function $logResponseBodyCOROUTINE$4(log, contentType, content, resultContinuation) {
|
|
1272
1272
|
CoroutineImpl.call(this, resultContinuation);
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1273
|
+
this.t3x_1 = log;
|
|
1274
|
+
this.u3x_1 = contentType;
|
|
1275
|
+
this.v3x_1 = content;
|
|
1276
1276
|
}
|
|
1277
1277
|
protoOf($logResponseBodyCOROUTINE$4).l9 = function () {
|
|
1278
1278
|
var suspendResult = this.f9_1;
|
|
@@ -1283,24 +1283,24 @@
|
|
|
1283
1283
|
case 0:
|
|
1284
1284
|
this.e9_1 = 4;
|
|
1285
1285
|
var tmp_0 = this;
|
|
1286
|
-
tmp_0.
|
|
1286
|
+
tmp_0.w3x_1 = this.t3x_1;
|
|
1287
1287
|
var tmp_1 = this;
|
|
1288
|
-
tmp_1.
|
|
1289
|
-
var this_0 = this.
|
|
1290
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
1288
|
+
tmp_1.x3x_1 = this.w3x_1;
|
|
1289
|
+
var this_0 = this.x3x_1;
|
|
1290
|
+
var value = 'BODY Content-Type: ' + toString_0(this.u3x_1);
|
|
1291
1291
|
this_0.i8(value).j8(_Char___init__impl__6a9atx(10));
|
|
1292
|
-
var this_1 = this.
|
|
1292
|
+
var this_1 = this.x3x_1;
|
|
1293
1293
|
var value_0 = 'BODY START';
|
|
1294
1294
|
this_1.i8(value_0).j8(_Char___init__impl__6a9atx(10));
|
|
1295
1295
|
var tmp_2 = this;
|
|
1296
|
-
tmp_2.
|
|
1296
|
+
tmp_2.y3x_1 = this.v3x_1;
|
|
1297
1297
|
var tmp_3 = this;
|
|
1298
|
-
var tmp0_safe_receiver = this.
|
|
1298
|
+
var tmp0_safe_receiver = this.u3x_1;
|
|
1299
1299
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1300
|
-
tmp_3.
|
|
1300
|
+
tmp_3.z3x_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1z_1 : tmp1_elvis_lhs;
|
|
1301
1301
|
this.e9_1 = 2;
|
|
1302
1302
|
this.d9_1 = 1;
|
|
1303
|
-
suspendResult = this.
|
|
1303
|
+
suspendResult = this.y3x_1.e1v(VOID, this);
|
|
1304
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
1305
|
return suspendResult;
|
|
1306
1306
|
}
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
continue $sm;
|
|
1309
1309
|
case 1:
|
|
1310
1310
|
var ARGUMENT = suspendResult;
|
|
1311
|
-
this.
|
|
1311
|
+
this.a3y_1 = readText(ARGUMENT, this.z3x_1);
|
|
1312
1312
|
this.e9_1 = 4;
|
|
1313
1313
|
this.d9_1 = 3;
|
|
1314
1314
|
continue $sm;
|
|
@@ -1318,7 +1318,7 @@
|
|
|
1318
1318
|
if (tmp_4 instanceof Error) {
|
|
1319
1319
|
var cause = this.g9_1;
|
|
1320
1320
|
var tmp_5 = this;
|
|
1321
|
-
tmp_5.
|
|
1321
|
+
tmp_5.a3y_1 = null;
|
|
1322
1322
|
this.d9_1 = 3;
|
|
1323
1323
|
continue $sm;
|
|
1324
1324
|
} else {
|
|
@@ -1327,10 +1327,10 @@
|
|
|
1327
1327
|
|
|
1328
1328
|
case 3:
|
|
1329
1329
|
this.e9_1 = 4;
|
|
1330
|
-
var tmp2_elvis_lhs = this.
|
|
1330
|
+
var tmp2_elvis_lhs = this.a3y_1;
|
|
1331
1331
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1332
|
+
this.x3x_1.i8(message).j8(_Char___init__impl__6a9atx(10));
|
|
1333
|
+
this.x3x_1.i8('BODY END');
|
|
1334
1334
|
return Unit_instance;
|
|
1335
1335
|
case 4:
|
|
1336
1336
|
throw this.g9_1;
|
|
@@ -1354,21 +1354,21 @@
|
|
|
1354
1354
|
}
|
|
1355
1355
|
function toReadChannel(_this__u8e3s4) {
|
|
1356
1356
|
var tmp = GlobalScope_instance;
|
|
1357
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1358
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1357
|
+
var tmp_0 = Dispatchers_getInstance().az_1;
|
|
1358
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).xz();
|
|
1359
1359
|
}
|
|
1360
1360
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1361
|
-
this.
|
|
1361
|
+
this.w3y_1 = $this_toReadChannel;
|
|
1362
1362
|
CoroutineImpl.call(this, resultContinuation);
|
|
1363
1363
|
}
|
|
1364
|
-
protoOf(toReadChannel$slambda).
|
|
1365
|
-
var tmp = this.
|
|
1364
|
+
protoOf(toReadChannel$slambda).i2x = function ($this$writer, $completion) {
|
|
1365
|
+
var tmp = this.j2x($this$writer, $completion);
|
|
1366
1366
|
tmp.f9_1 = Unit_instance;
|
|
1367
1367
|
tmp.g9_1 = null;
|
|
1368
1368
|
return tmp.l9();
|
|
1369
1369
|
};
|
|
1370
1370
|
protoOf(toReadChannel$slambda).ga = function (p1, $completion) {
|
|
1371
|
-
return this.
|
|
1371
|
+
return this.i2x((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(toReadChannel$slambda).l9 = function () {
|
|
1374
1374
|
var suspendResult = this.f9_1;
|
|
@@ -1379,7 +1379,7 @@
|
|
|
1379
1379
|
case 0:
|
|
1380
1380
|
this.e9_1 = 2;
|
|
1381
1381
|
this.d9_1 = 1;
|
|
1382
|
-
suspendResult = this.
|
|
1382
|
+
suspendResult = this.w3y_1.d2n(this.x3y_1.xz(), this);
|
|
1383
1383
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1384
1384
|
return suspendResult;
|
|
1385
1385
|
}
|
|
@@ -1401,23 +1401,23 @@
|
|
|
1401
1401
|
}
|
|
1402
1402
|
while (true);
|
|
1403
1403
|
};
|
|
1404
|
-
protoOf(toReadChannel$slambda).
|
|
1405
|
-
var i = new toReadChannel$slambda(this.
|
|
1406
|
-
i.
|
|
1404
|
+
protoOf(toReadChannel$slambda).j2x = function ($this$writer, completion) {
|
|
1405
|
+
var i = new toReadChannel$slambda(this.w3y_1, completion);
|
|
1406
|
+
i.x3y_1 = $this$writer;
|
|
1407
1407
|
return i;
|
|
1408
1408
|
};
|
|
1409
1409
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1410
1410
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1411
1411
|
var l = function ($this$writer, $completion) {
|
|
1412
|
-
return i.
|
|
1412
|
+
return i.i2x($this$writer, $completion);
|
|
1413
1413
|
};
|
|
1414
1414
|
l.$arity = 1;
|
|
1415
1415
|
return l;
|
|
1416
1416
|
}
|
|
1417
1417
|
function $observeCOROUTINE$5(_this__u8e3s4, log, resultContinuation) {
|
|
1418
1418
|
CoroutineImpl.call(this, resultContinuation);
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1419
|
+
this.k3y_1 = _this__u8e3s4;
|
|
1420
|
+
this.l3y_1 = log;
|
|
1421
1421
|
}
|
|
1422
1422
|
protoOf($observeCOROUTINE$5).l9 = function () {
|
|
1423
1423
|
var suspendResult = this.f9_1;
|
|
@@ -1427,39 +1427,39 @@
|
|
|
1427
1427
|
switch (tmp) {
|
|
1428
1428
|
case 0:
|
|
1429
1429
|
this.e9_1 = 3;
|
|
1430
|
-
this.
|
|
1431
|
-
var tmp_0 = this.
|
|
1430
|
+
this.m3y_1 = this.k3y_1;
|
|
1431
|
+
var tmp_0 = this.m3y_1;
|
|
1432
1432
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
1433
1433
|
this.d9_1 = 1;
|
|
1434
|
-
suspendResult = writeFully(this.
|
|
1434
|
+
suspendResult = writeFully(this.l3y_1, this.k3y_1.y2m(), this);
|
|
1435
1435
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1436
1436
|
return suspendResult;
|
|
1437
1437
|
}
|
|
1438
1438
|
continue $sm;
|
|
1439
1439
|
} else {
|
|
1440
|
-
var tmp_1 = this.
|
|
1440
|
+
var tmp_1 = this.m3y_1;
|
|
1441
1441
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
1442
1442
|
var tmp_2 = this;
|
|
1443
1443
|
var responseChannel = ByteChannel();
|
|
1444
|
-
var content = this.
|
|
1445
|
-
copyToBoth(content, this.
|
|
1446
|
-
tmp_2.
|
|
1444
|
+
var content = this.k3y_1.b2n();
|
|
1445
|
+
copyToBoth(content, this.l3y_1, responseChannel);
|
|
1446
|
+
tmp_2.n3y_1 = new LoggedContent(this.k3y_1, responseChannel);
|
|
1447
1447
|
this.d9_1 = 2;
|
|
1448
1448
|
continue $sm;
|
|
1449
1449
|
} else {
|
|
1450
|
-
var tmp_3 = this.
|
|
1450
|
+
var tmp_3 = this.m3y_1;
|
|
1451
1451
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
1452
1452
|
var tmp_4 = this;
|
|
1453
1453
|
var responseChannel_0 = ByteChannel();
|
|
1454
|
-
var content_0 = toReadChannel(this.
|
|
1455
|
-
copyToBoth(content_0, this.
|
|
1456
|
-
tmp_4.
|
|
1454
|
+
var content_0 = toReadChannel(this.k3y_1);
|
|
1455
|
+
copyToBoth(content_0, this.l3y_1, responseChannel_0);
|
|
1456
|
+
tmp_4.n3y_1 = new LoggedContent(this.k3y_1, responseChannel_0);
|
|
1457
1457
|
this.d9_1 = 2;
|
|
1458
1458
|
continue $sm;
|
|
1459
1459
|
} else {
|
|
1460
1460
|
var tmp_5 = this;
|
|
1461
|
-
close(this.
|
|
1462
|
-
tmp_5.
|
|
1461
|
+
close(this.l3y_1);
|
|
1462
|
+
tmp_5.n3y_1 = this.k3y_1;
|
|
1463
1463
|
this.d9_1 = 2;
|
|
1464
1464
|
continue $sm;
|
|
1465
1465
|
}
|
|
@@ -1467,12 +1467,12 @@
|
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
1469
|
case 1:
|
|
1470
|
-
close(this.
|
|
1471
|
-
this.
|
|
1470
|
+
close(this.l3y_1);
|
|
1471
|
+
this.n3y_1 = this.k3y_1;
|
|
1472
1472
|
this.d9_1 = 2;
|
|
1473
1473
|
continue $sm;
|
|
1474
1474
|
case 2:
|
|
1475
|
-
return this.
|
|
1475
|
+
return this.n3y_1;
|
|
1476
1476
|
case 3:
|
|
1477
1477
|
throw this.g9_1;
|
|
1478
1478
|
}
|