game_client_logic_deb 1.8.304 → 1.8.310
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 +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1376 -1376
- package/Logic_Debertz-core.js +1449 -1449
- package/Logic_Debertz-engine.js +13801 -13806
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +4 -3
- package/Logic_Debertz-game_client.js +3132 -3140
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1419 -1573
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1801 -1801
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1536 -1536
- package/ktor-ktor-client-logging.js +287 -287
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1255 -1255
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +138 -138
- package/ktor-ktor-serialization.js +64 -64
- package/ktor-ktor-utils.js +498 -498
- package/ktor-ktor-websockets.js +41 -41
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +190 -187
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +880 -948
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.wb;
|
|
42
42
|
var charSequenceLength = kotlin_kotlin.$_$.ib;
|
|
43
43
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
44
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
44
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
45
45
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
46
46
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.x2;
|
|
47
47
|
var initMetadataForClass = kotlin_kotlin.$_$.ub;
|
|
@@ -59,9 +59,9 @@
|
|
|
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;
|
|
62
|
-
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
63
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
64
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
62
|
+
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
63
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
64
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1;
|
|
65
65
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
66
66
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
67
67
|
var Plugin_getInstance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
var isInterface = kotlin_kotlin.$_$.ic;
|
|
73
73
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
74
|
var initMetadataForLambda = kotlin_kotlin.$_$.yb;
|
|
75
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
75
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
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;
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
//endregion
|
|
119
119
|
function $logResponseExceptionCOROUTINE$0(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.i3t_1 = _this__u8e3s4;
|
|
122
|
+
this.j3t_1 = message;
|
|
123
123
|
}
|
|
124
124
|
protoOf($logResponseExceptionCOROUTINE$0).n9 = function () {
|
|
125
125
|
var suspendResult = this.h9_1;
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
case 0:
|
|
131
131
|
this.g9_1 = 2;
|
|
132
132
|
this.f9_1 = 1;
|
|
133
|
-
suspendResult = this.
|
|
133
|
+
suspendResult = this.i3t_1.n3t_1.rp(this);
|
|
134
134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
135
135
|
return suspendResult;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
continue $sm;
|
|
139
139
|
case 1:
|
|
140
|
-
var this_0 = this.
|
|
141
|
-
this.
|
|
140
|
+
var this_0 = this.j3t_1;
|
|
141
|
+
this.i3t_1.k3t_1.r3t(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
144
|
throw this.i9_1;
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
};
|
|
157
157
|
function $logResponseBodyCOROUTINE$1(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.a3u_1 = _this__u8e3s4;
|
|
160
|
+
this.b3u_1 = message;
|
|
161
161
|
}
|
|
162
162
|
protoOf($logResponseBodyCOROUTINE$1).n9 = function () {
|
|
163
163
|
var suspendResult = this.h9_1;
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
case 0:
|
|
169
169
|
this.g9_1 = 2;
|
|
170
170
|
this.f9_1 = 1;
|
|
171
|
-
suspendResult = this.
|
|
171
|
+
suspendResult = this.a3u_1.o3t_1.rp(this);
|
|
172
172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
173
|
return suspendResult;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
continue $sm;
|
|
177
177
|
case 1:
|
|
178
|
-
this.
|
|
178
|
+
this.a3u_1.m3t_1.o8(this.b3u_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
181
|
throw this.i9_1;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
};
|
|
194
194
|
function $closeResponseLogCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.k3u_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
198
|
protoOf($closeResponseLogCOROUTINE$2).n9 = function () {
|
|
199
199
|
var suspendResult = this.h9_1;
|
|
@@ -203,19 +203,19 @@
|
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
205
|
this.g9_1 = 2;
|
|
206
|
-
if (!this.
|
|
206
|
+
if (!this.k3u_1.q3t_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
208
|
this.f9_1 = 1;
|
|
209
|
-
suspendResult = this.
|
|
209
|
+
suspendResult = this.k3u_1.n3t_1.rp(this);
|
|
210
210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
211
|
return suspendResult;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
continue $sm;
|
|
215
215
|
case 1:
|
|
216
|
-
var message = toString(trim(this.
|
|
216
|
+
var message = toString(trim(this.k3u_1.m3t_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.k3u_1.k3t_1.r3t(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
@@ -234,57 +234,57 @@
|
|
|
234
234
|
while (true);
|
|
235
235
|
};
|
|
236
236
|
function HttpClientCallLogger(logger) {
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
237
|
+
this.k3t_1 = logger;
|
|
238
|
+
this.l3t_1 = StringBuilder_init_$Create$();
|
|
239
|
+
this.m3t_1 = StringBuilder_init_$Create$();
|
|
240
|
+
this.n3t_1 = Job();
|
|
241
|
+
this.o3t_1 = Job();
|
|
242
|
+
this.p3t_1 = atomic$boolean$1(false);
|
|
243
|
+
this.q3t_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
245
|
+
protoOf(HttpClientCallLogger).l3u = function (message) {
|
|
246
246
|
// Inline function 'kotlin.text.appendLine' call
|
|
247
|
-
var this_0 = this.
|
|
247
|
+
var this_0 = this.l3t_1;
|
|
248
248
|
// Inline function 'kotlin.text.trim' call
|
|
249
249
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
250
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
251
|
this_0.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
253
|
+
protoOf(HttpClientCallLogger).m3u = function (message) {
|
|
254
254
|
// Inline function 'kotlin.text.appendLine' call
|
|
255
|
-
var this_0 = this.
|
|
255
|
+
var this_0 = this.m3t_1;
|
|
256
256
|
// Inline function 'kotlin.text.trim' call
|
|
257
257
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
258
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
259
|
this_0.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
260
|
-
this.
|
|
260
|
+
this.o3t_1.rw();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
262
|
+
protoOf(HttpClientCallLogger).n3u = function (message, $completion) {
|
|
263
263
|
var tmp = new $logResponseExceptionCOROUTINE$0(this, message, $completion);
|
|
264
264
|
tmp.h9_1 = Unit_instance;
|
|
265
265
|
tmp.i9_1 = null;
|
|
266
266
|
return tmp.n9();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
268
|
+
protoOf(HttpClientCallLogger).o3u = function (message, $completion) {
|
|
269
269
|
var tmp = new $logResponseBodyCOROUTINE$1(this, message, $completion);
|
|
270
270
|
tmp.h9_1 = Unit_instance;
|
|
271
271
|
tmp.i9_1 = null;
|
|
272
272
|
return tmp.n9();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).p3u = function () {
|
|
275
|
+
if (!this.p3t_1.atomicfu$compareAndSet(false, true))
|
|
276
276
|
return Unit_instance;
|
|
277
277
|
try {
|
|
278
|
-
var message = toString(trim(this.
|
|
278
|
+
var message = toString(trim(this.l3t_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.k3t_1.r3t(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.n3t_1.rw();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
+
protoOf(HttpClientCallLogger).q3u = function ($completion) {
|
|
288
288
|
var tmp = new $closeResponseLogCOROUTINE$2(this, $completion);
|
|
289
289
|
tmp.h9_1 = Unit_instance;
|
|
290
290
|
tmp.i9_1 = null;
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
}
|
|
309
309
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
310
310
|
Enum.call(this, name, ordinal);
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
311
|
+
this.t3u_1 = info;
|
|
312
|
+
this.u3u_1 = headers;
|
|
313
|
+
this.v3u_1 = body;
|
|
314
314
|
}
|
|
315
315
|
function LogLevel_ALL_getInstance() {
|
|
316
316
|
LogLevel_initEntries();
|
|
@@ -326,27 +326,27 @@
|
|
|
326
326
|
}
|
|
327
327
|
function LoggedContent(originalContent, channel) {
|
|
328
328
|
ReadChannelContent.call(this);
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
329
|
+
this.x3u_1 = originalContent;
|
|
330
|
+
this.y3u_1 = channel;
|
|
331
|
+
this.z3u_1 = this.x3u_1.a2o();
|
|
332
|
+
this.a3v_1 = this.x3u_1.c2o();
|
|
333
|
+
this.b3v_1 = this.x3u_1.b2o();
|
|
334
|
+
this.c3v_1 = this.x3u_1.w2i();
|
|
335
335
|
}
|
|
336
|
-
protoOf(LoggedContent).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(LoggedContent).a2o = function () {
|
|
337
|
+
return this.z3u_1;
|
|
338
338
|
};
|
|
339
|
-
protoOf(LoggedContent).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(LoggedContent).c2o = function () {
|
|
340
|
+
return this.a3v_1;
|
|
341
341
|
};
|
|
342
|
-
protoOf(LoggedContent).
|
|
343
|
-
return this.
|
|
342
|
+
protoOf(LoggedContent).b2o = function () {
|
|
343
|
+
return this.b3v_1;
|
|
344
344
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(LoggedContent).w2i = function () {
|
|
346
|
+
return this.c3v_1;
|
|
347
347
|
};
|
|
348
|
-
protoOf(LoggedContent).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(LoggedContent).g2o = function () {
|
|
349
|
+
return this.y3u_1;
|
|
350
350
|
};
|
|
351
351
|
function Companion() {
|
|
352
352
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
}
|
|
360
360
|
function SimpleLogger() {
|
|
361
361
|
}
|
|
362
|
-
protoOf(SimpleLogger).
|
|
362
|
+
protoOf(SimpleLogger).r3t = function (message) {
|
|
363
363
|
println('HttpClient: ' + message);
|
|
364
364
|
};
|
|
365
365
|
function get_ClientCallLogger() {
|
|
@@ -375,51 +375,51 @@
|
|
|
375
375
|
function Config() {
|
|
376
376
|
var tmp = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp.
|
|
378
|
+
tmp.d3v_1 = ArrayList_init_$Create$();
|
|
379
379
|
var tmp_0 = this;
|
|
380
380
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
381
|
-
tmp_0.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
381
|
+
tmp_0.e3v_1 = ArrayList_init_$Create$();
|
|
382
|
+
this.f3v_1 = null;
|
|
383
|
+
this.g3v_1 = LogLevel_HEADERS_getInstance();
|
|
384
384
|
}
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(Config).h3v = function (value) {
|
|
386
|
+
this.f3v_1 = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Config).
|
|
389
|
-
var tmp0_elvis_lhs = this.
|
|
388
|
+
protoOf(Config).i3v = function () {
|
|
389
|
+
var tmp0_elvis_lhs = this.f3v_1;
|
|
390
390
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
391
391
|
};
|
|
392
392
|
function setupRequestLogging($this, client) {
|
|
393
|
-
var tmp = Phases_getInstance().
|
|
394
|
-
client.
|
|
393
|
+
var tmp = Phases_getInstance().z2u_1;
|
|
394
|
+
client.j2s_1.c2c(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
395
395
|
}
|
|
396
396
|
function logRequest($this, request, $completion) {
|
|
397
|
-
var tmp = request.
|
|
397
|
+
var tmp = request.k2u_1;
|
|
398
398
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
399
|
-
var logger = new HttpClientCallLogger($this.
|
|
400
|
-
request.
|
|
399
|
+
var logger = new HttpClientCallLogger($this.j3v_1);
|
|
400
|
+
request.m2u_1.u24(get_ClientCallLogger(), logger);
|
|
401
401
|
// Inline function 'kotlin.text.buildString' call
|
|
402
402
|
// Inline function 'kotlin.contracts.contract' call
|
|
403
403
|
// Inline function 'kotlin.apply' call
|
|
404
404
|
var this_0 = StringBuilder_init_$Create$();
|
|
405
405
|
// Inline function 'kotlin.contracts.contract' call
|
|
406
406
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>' call
|
|
407
|
-
if ($this.
|
|
407
|
+
if ($this.k3v_1.t3u_1) {
|
|
408
408
|
// Inline function 'kotlin.text.appendLine' call
|
|
409
|
-
var value = 'REQUEST: ' + Url(request.
|
|
409
|
+
var value = 'REQUEST: ' + Url(request.h2u_1).toString();
|
|
410
410
|
// Inline function 'kotlin.text.appendLine' call
|
|
411
411
|
this_0.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
412
412
|
// Inline function 'kotlin.text.appendLine' call
|
|
413
|
-
var value_0 = 'METHOD: ' + request.
|
|
413
|
+
var value_0 = 'METHOD: ' + request.i2u_1.toString();
|
|
414
414
|
// Inline function 'kotlin.text.appendLine' call
|
|
415
415
|
this_0.o8(value_0).p8(_Char___init__impl__6a9atx(10));
|
|
416
416
|
}
|
|
417
|
-
if ($this.
|
|
417
|
+
if ($this.k3v_1.u3u_1) {
|
|
418
418
|
// Inline function 'kotlin.text.appendLine' call
|
|
419
419
|
var value_1 = 'COMMON HEADERS';
|
|
420
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
421
|
this_0.o8(value_1).p8(_Char___init__impl__6a9atx(10));
|
|
422
|
-
logHeaders(this_0, request.
|
|
422
|
+
logHeaders(this_0, request.j2u_1.v28(), $this.m3v_1);
|
|
423
423
|
// Inline function 'kotlin.text.appendLine' call
|
|
424
424
|
var value_2 = 'CONTENT HEADERS';
|
|
425
425
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -427,11 +427,11 @@
|
|
|
427
427
|
var tmp$ret$9;
|
|
428
428
|
$l$block: {
|
|
429
429
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
430
|
-
var tmp0_iterator = $this.
|
|
430
|
+
var tmp0_iterator = $this.m3v_1.j();
|
|
431
431
|
while (tmp0_iterator.k()) {
|
|
432
432
|
var element = tmp0_iterator.l();
|
|
433
433
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>.<anonymous>' call
|
|
434
|
-
if (element.
|
|
434
|
+
if (element.o3v_1(HttpHeaders_getInstance().i2f_1)) {
|
|
435
435
|
tmp$ret$9 = element;
|
|
436
436
|
break $l$block;
|
|
437
437
|
}
|
|
@@ -439,15 +439,15 @@
|
|
|
439
439
|
tmp$ret$9 = null;
|
|
440
440
|
}
|
|
441
441
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
442
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
442
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n3v_1;
|
|
443
443
|
var tmp$ret$11;
|
|
444
444
|
$l$block_0: {
|
|
445
445
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
446
|
-
var tmp0_iterator_0 = $this.
|
|
446
|
+
var tmp0_iterator_0 = $this.m3v_1.j();
|
|
447
447
|
while (tmp0_iterator_0.k()) {
|
|
448
448
|
var element_0 = tmp0_iterator_0.l();
|
|
449
449
|
// Inline function 'io.ktor.client.plugins.logging.Logging.logRequest.<anonymous>.<anonymous>' call
|
|
450
|
-
if (element_0.
|
|
450
|
+
if (element_0.o3v_1(HttpHeaders_getInstance().l2f_1)) {
|
|
451
451
|
tmp$ret$11 = element_0;
|
|
452
452
|
break $l$block_0;
|
|
453
453
|
}
|
|
@@ -455,41 +455,41 @@
|
|
|
455
455
|
tmp$ret$11 = null;
|
|
456
456
|
}
|
|
457
457
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
458
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
459
|
-
var tmp2_safe_receiver = content.
|
|
458
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n3v_1;
|
|
459
|
+
var tmp2_safe_receiver = content.c2o();
|
|
460
460
|
if (tmp2_safe_receiver == null)
|
|
461
461
|
null;
|
|
462
462
|
else {
|
|
463
463
|
// Inline function 'kotlin.let' call
|
|
464
464
|
// Inline function 'kotlin.contracts.contract' call
|
|
465
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
465
|
+
var tmp_0 = HttpHeaders_getInstance().i2f_1;
|
|
466
466
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
467
467
|
}
|
|
468
|
-
var tmp3_safe_receiver = content.
|
|
468
|
+
var tmp3_safe_receiver = content.a2o();
|
|
469
469
|
if (tmp3_safe_receiver == null)
|
|
470
470
|
null;
|
|
471
471
|
else {
|
|
472
472
|
// Inline function 'kotlin.let' call
|
|
473
473
|
// Inline function 'kotlin.contracts.contract' call
|
|
474
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
474
|
+
var tmp_1 = HttpHeaders_getInstance().l2f_1;
|
|
475
475
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
476
476
|
}
|
|
477
|
-
logHeaders(this_0, content.
|
|
477
|
+
logHeaders(this_0, content.w2i().v28(), $this.m3v_1);
|
|
478
478
|
}
|
|
479
479
|
var message = this_0.toString();
|
|
480
480
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
481
481
|
if (charSequenceLength(message) > 0) {
|
|
482
|
-
logger.
|
|
482
|
+
logger.l3u(message);
|
|
483
483
|
}
|
|
484
484
|
var tmp_2;
|
|
485
485
|
// Inline function 'kotlin.text.isEmpty' call
|
|
486
486
|
if (charSequenceLength(message) === 0) {
|
|
487
487
|
tmp_2 = true;
|
|
488
488
|
} else {
|
|
489
|
-
tmp_2 = !$this.
|
|
489
|
+
tmp_2 = !$this.k3v_1.v3u_1;
|
|
490
490
|
}
|
|
491
491
|
if (tmp_2) {
|
|
492
|
-
logger.
|
|
492
|
+
logger.p3u();
|
|
493
493
|
return null;
|
|
494
494
|
}
|
|
495
495
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -497,63 +497,63 @@
|
|
|
497
497
|
function logRequestBody($this, content, logger, $completion) {
|
|
498
498
|
var requestLog = StringBuilder_init_$Create$();
|
|
499
499
|
// Inline function 'kotlin.text.appendLine' call
|
|
500
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
500
|
+
var value = 'BODY Content-Type: ' + toString_0(content.a2o());
|
|
501
501
|
// Inline function 'kotlin.text.appendLine' call
|
|
502
502
|
requestLog.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
503
|
-
var tmp0_safe_receiver = content.
|
|
503
|
+
var tmp0_safe_receiver = content.a2o();
|
|
504
504
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
505
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
505
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().y20_1 : tmp1_elvis_lhs;
|
|
506
506
|
var channel = ByteChannel();
|
|
507
507
|
var tmp = GlobalScope_instance;
|
|
508
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
508
|
+
var tmp_0 = Dispatchers_getInstance().g10_1;
|
|
509
509
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
510
510
|
tmp_1.np(Logging$logRequestBody$lambda(logger, requestLog));
|
|
511
511
|
return observe(content, channel, $completion);
|
|
512
512
|
}
|
|
513
513
|
function logRequestException($this, context, cause) {
|
|
514
|
-
if ($this.
|
|
515
|
-
$this.
|
|
514
|
+
if ($this.k3v_1.t3u_1) {
|
|
515
|
+
$this.j3v_1.r3t('REQUEST ' + Url(context.h2u_1).toString() + ' failed with exception: ' + cause.toString());
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
function setupResponseLogging($this, client) {
|
|
519
|
-
var tmp = Phases_getInstance_0().
|
|
520
|
-
client.
|
|
521
|
-
var tmp_0 = Phases_getInstance_1().
|
|
522
|
-
client.
|
|
523
|
-
if (!$this.
|
|
519
|
+
var tmp = Phases_getInstance_0().k31_1;
|
|
520
|
+
client.k2s_1.c2c(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
521
|
+
var tmp_0 = Phases_getInstance_1().f2v_1;
|
|
522
|
+
client.i2s_1.c2c(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
523
|
+
if (!$this.k3v_1.v3u_1)
|
|
524
524
|
return Unit_instance;
|
|
525
525
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
526
|
-
Plugin_getInstance().
|
|
526
|
+
Plugin_getInstance().d3j(new ResponseObserver(observer), client);
|
|
527
527
|
}
|
|
528
528
|
function logResponseException($this, log, request, cause) {
|
|
529
|
-
if (!$this.
|
|
529
|
+
if (!$this.k3v_1.t3u_1)
|
|
530
530
|
return Unit_instance;
|
|
531
|
-
log.o8('RESPONSE ' + request.
|
|
531
|
+
log.o8('RESPONSE ' + request.u2w().toString() + ' failed with exception: ' + cause.toString());
|
|
532
532
|
}
|
|
533
533
|
function Companion_0() {
|
|
534
534
|
Companion_instance_0 = this;
|
|
535
|
-
this.
|
|
535
|
+
this.p3v_1 = new AttributeKey('ClientLogging');
|
|
536
536
|
}
|
|
537
537
|
protoOf(Companion_0).t = function () {
|
|
538
|
-
return this.
|
|
538
|
+
return this.p3v_1;
|
|
539
539
|
};
|
|
540
|
-
protoOf(Companion_0).
|
|
540
|
+
protoOf(Companion_0).q3v = function (block) {
|
|
541
541
|
// Inline function 'kotlin.apply' call
|
|
542
542
|
var this_0 = new Config();
|
|
543
543
|
// Inline function 'kotlin.contracts.contract' call
|
|
544
544
|
block(this_0);
|
|
545
545
|
var config = this_0;
|
|
546
|
-
return new Logging(config.
|
|
546
|
+
return new Logging(config.i3v(), config.g3v_1, config.d3v_1, config.e3v_1);
|
|
547
547
|
};
|
|
548
|
-
protoOf(Companion_0).
|
|
549
|
-
return this.
|
|
548
|
+
protoOf(Companion_0).m2v = function (block) {
|
|
549
|
+
return this.q3v(block);
|
|
550
550
|
};
|
|
551
|
-
protoOf(Companion_0).
|
|
551
|
+
protoOf(Companion_0).r3v = function (plugin, scope) {
|
|
552
552
|
setupRequestLogging(plugin, scope);
|
|
553
553
|
setupResponseLogging(plugin, scope);
|
|
554
554
|
};
|
|
555
|
-
protoOf(Companion_0).
|
|
556
|
-
return this.
|
|
555
|
+
protoOf(Companion_0).n2v = function (plugin, scope) {
|
|
556
|
+
return this.r3v(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
557
557
|
};
|
|
558
558
|
var Companion_instance_0;
|
|
559
559
|
function Companion_getInstance_0() {
|
|
@@ -563,13 +563,13 @@
|
|
|
563
563
|
}
|
|
564
564
|
function shouldBeLogged($this, request) {
|
|
565
565
|
var tmp;
|
|
566
|
-
if ($this.
|
|
566
|
+
if ($this.l3v_1.p()) {
|
|
567
567
|
tmp = true;
|
|
568
568
|
} else {
|
|
569
569
|
var tmp$ret$0;
|
|
570
570
|
$l$block_0: {
|
|
571
571
|
// Inline function 'kotlin.collections.any' call
|
|
572
|
-
var this_0 = $this.
|
|
572
|
+
var this_0 = $this.l3v_1;
|
|
573
573
|
var tmp_0;
|
|
574
574
|
if (isInterface(this_0, Collection)) {
|
|
575
575
|
tmp_0 = this_0.p();
|
|
@@ -596,18 +596,18 @@
|
|
|
596
596
|
return tmp;
|
|
597
597
|
}
|
|
598
598
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
599
|
-
this.
|
|
599
|
+
this.a3w_1 = this$0;
|
|
600
600
|
CoroutineImpl.call(this, resultContinuation);
|
|
601
601
|
}
|
|
602
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
603
|
-
var tmp = this.
|
|
602
|
+
protoOf(Logging$setupRequestLogging$slambda).b2t = function ($this$intercept, it, $completion) {
|
|
603
|
+
var tmp = this.c2t($this$intercept, it, $completion);
|
|
604
604
|
tmp.h9_1 = Unit_instance;
|
|
605
605
|
tmp.i9_1 = null;
|
|
606
606
|
return tmp.n9();
|
|
607
607
|
};
|
|
608
608
|
protoOf(Logging$setupRequestLogging$slambda).y9 = function (p1, p2, $completion) {
|
|
609
609
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
610
|
-
return this.
|
|
610
|
+
return this.b2t(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
611
611
|
};
|
|
612
612
|
protoOf(Logging$setupRequestLogging$slambda).n9 = function () {
|
|
613
613
|
var suspendResult = this.h9_1;
|
|
@@ -617,21 +617,21 @@
|
|
|
617
617
|
switch (tmp) {
|
|
618
618
|
case 0:
|
|
619
619
|
this.g9_1 = 8;
|
|
620
|
-
if (!shouldBeLogged(this.
|
|
621
|
-
this.
|
|
620
|
+
if (!shouldBeLogged(this.a3w_1, this.b3w_1.y2b_1)) {
|
|
621
|
+
this.b3w_1.y2b_1.m2u_1.u24(get_DisableLogging(), Unit_instance);
|
|
622
622
|
return Unit_instance;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
this.g9_1 = 2;
|
|
626
626
|
this.f9_1 = 1;
|
|
627
|
-
suspendResult = logRequest(this.
|
|
627
|
+
suspendResult = logRequest(this.a3w_1, this.b3w_1.y2b_1, this);
|
|
628
628
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
629
629
|
return suspendResult;
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
continue $sm;
|
|
633
633
|
case 1:
|
|
634
|
-
this.
|
|
634
|
+
this.d3w_1 = suspendResult;
|
|
635
635
|
this.g9_1 = 8;
|
|
636
636
|
this.f9_1 = 3;
|
|
637
637
|
continue $sm;
|
|
@@ -639,9 +639,9 @@
|
|
|
639
639
|
this.g9_1 = 8;
|
|
640
640
|
var tmp_0 = this.i9_1;
|
|
641
641
|
if (tmp_0 instanceof Error) {
|
|
642
|
-
this.
|
|
642
|
+
this.e3w_1 = this.i9_1;
|
|
643
643
|
var tmp_1 = this;
|
|
644
|
-
tmp_1.
|
|
644
|
+
tmp_1.d3w_1 = null;
|
|
645
645
|
this.f9_1 = 3;
|
|
646
646
|
continue $sm;
|
|
647
647
|
} else {
|
|
@@ -650,15 +650,15 @@
|
|
|
650
650
|
|
|
651
651
|
case 3:
|
|
652
652
|
this.g9_1 = 8;
|
|
653
|
-
this.
|
|
653
|
+
this.f3w_1 = this.d3w_1;
|
|
654
654
|
this.f9_1 = 4;
|
|
655
655
|
continue $sm;
|
|
656
656
|
case 4:
|
|
657
657
|
this.g9_1 = 7;
|
|
658
658
|
this.g9_1 = 6;
|
|
659
659
|
this.f9_1 = 5;
|
|
660
|
-
var tmp0_elvis_lhs = this.
|
|
661
|
-
suspendResult = this.
|
|
660
|
+
var tmp0_elvis_lhs = this.f3w_1;
|
|
661
|
+
suspendResult = this.b3w_1.c2b(tmp0_elvis_lhs == null ? this.b3w_1.b2b() : tmp0_elvis_lhs, this);
|
|
662
662
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
663
663
|
return suspendResult;
|
|
664
664
|
}
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
continue $sm;
|
|
667
667
|
case 5:
|
|
668
668
|
var tmp_2 = this;
|
|
669
|
-
tmp_2.
|
|
669
|
+
tmp_2.g3w_1 = Unit_instance;
|
|
670
670
|
this.g9_1 = 8;
|
|
671
671
|
this.f9_1 = 9;
|
|
672
672
|
continue $sm;
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
if (tmp_3 instanceof Error) {
|
|
677
677
|
var cause = this.i9_1;
|
|
678
678
|
var tmp_4 = this;
|
|
679
|
-
logRequestException(this.
|
|
679
|
+
logRequestException(this.a3w_1, this.b3w_1.y2b_1, cause);
|
|
680
680
|
throw cause;
|
|
681
681
|
} else {
|
|
682
682
|
throw this.i9_1;
|
|
@@ -703,34 +703,34 @@
|
|
|
703
703
|
}
|
|
704
704
|
while (true);
|
|
705
705
|
};
|
|
706
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
707
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
708
|
-
i.
|
|
709
|
-
i.
|
|
706
|
+
protoOf(Logging$setupRequestLogging$slambda).c2t = function ($this$intercept, it, completion) {
|
|
707
|
+
var i = new Logging$setupRequestLogging$slambda(this.a3w_1, completion);
|
|
708
|
+
i.b3w_1 = $this$intercept;
|
|
709
|
+
i.c3w_1 = it;
|
|
710
710
|
return i;
|
|
711
711
|
};
|
|
712
712
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
713
713
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
714
714
|
var l = function ($this$intercept, it, $completion) {
|
|
715
|
-
return i.
|
|
715
|
+
return i.b2t($this$intercept, it, $completion);
|
|
716
716
|
};
|
|
717
717
|
l.$arity = 2;
|
|
718
718
|
return l;
|
|
719
719
|
}
|
|
720
720
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
723
|
-
this.
|
|
721
|
+
this.p3w_1 = $channel;
|
|
722
|
+
this.q3w_1 = $charset;
|
|
723
|
+
this.r3w_1 = $requestLog;
|
|
724
724
|
CoroutineImpl.call(this, resultContinuation);
|
|
725
725
|
}
|
|
726
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
727
|
-
var tmp = this.
|
|
726
|
+
protoOf(Logging$logRequestBody$slambda).d1d = function ($this$launch, $completion) {
|
|
727
|
+
var tmp = this.e1d($this$launch, $completion);
|
|
728
728
|
tmp.h9_1 = Unit_instance;
|
|
729
729
|
tmp.i9_1 = null;
|
|
730
730
|
return tmp.n9();
|
|
731
731
|
};
|
|
732
732
|
protoOf(Logging$logRequestBody$slambda).x9 = function (p1, $completion) {
|
|
733
|
-
return this.
|
|
733
|
+
return this.d1d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
734
734
|
};
|
|
735
735
|
protoOf(Logging$logRequestBody$slambda).n9 = function () {
|
|
736
736
|
var suspendResult = this.h9_1;
|
|
@@ -741,12 +741,12 @@
|
|
|
741
741
|
case 0:
|
|
742
742
|
this.g9_1 = 3;
|
|
743
743
|
var tmp_0 = this;
|
|
744
|
-
tmp_0.
|
|
744
|
+
tmp_0.t3w_1 = this.p3w_1;
|
|
745
745
|
var tmp_1 = this;
|
|
746
|
-
tmp_1.
|
|
746
|
+
tmp_1.u3w_1 = this.q3w_1;
|
|
747
747
|
this.g9_1 = 2;
|
|
748
748
|
this.f9_1 = 1;
|
|
749
|
-
suspendResult = this.
|
|
749
|
+
suspendResult = this.t3w_1.j1w(VOID, this);
|
|
750
750
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
751
751
|
return suspendResult;
|
|
752
752
|
}
|
|
@@ -754,7 +754,7 @@
|
|
|
754
754
|
continue $sm;
|
|
755
755
|
case 1:
|
|
756
756
|
var ARGUMENT = suspendResult;
|
|
757
|
-
this.
|
|
757
|
+
this.v3w_1 = readText(ARGUMENT, this.u3w_1);
|
|
758
758
|
this.g9_1 = 3;
|
|
759
759
|
this.f9_1 = 4;
|
|
760
760
|
continue $sm;
|
|
@@ -764,7 +764,7 @@
|
|
|
764
764
|
if (tmp_2 instanceof Error) {
|
|
765
765
|
var cause = this.i9_1;
|
|
766
766
|
var tmp_3 = this;
|
|
767
|
-
tmp_3.
|
|
767
|
+
tmp_3.v3w_1 = null;
|
|
768
768
|
this.f9_1 = 4;
|
|
769
769
|
continue $sm;
|
|
770
770
|
} else {
|
|
@@ -775,13 +775,13 @@
|
|
|
775
775
|
throw this.i9_1;
|
|
776
776
|
case 4:
|
|
777
777
|
this.g9_1 = 3;
|
|
778
|
-
var tmp0_elvis_lhs = this.
|
|
778
|
+
var tmp0_elvis_lhs = this.v3w_1;
|
|
779
779
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
780
|
-
var this_0 = this.
|
|
780
|
+
var this_0 = this.r3w_1;
|
|
781
781
|
var value = 'BODY START';
|
|
782
782
|
this_0.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
783
|
+
this.r3w_1.o8(text).p8(_Char___init__impl__6a9atx(10));
|
|
784
|
+
this.r3w_1.o8('BODY END');
|
|
785
785
|
return Unit_instance;
|
|
786
786
|
}
|
|
787
787
|
} catch ($p) {
|
|
@@ -795,39 +795,39 @@
|
|
|
795
795
|
}
|
|
796
796
|
while (true);
|
|
797
797
|
};
|
|
798
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
799
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
800
|
-
i.
|
|
798
|
+
protoOf(Logging$logRequestBody$slambda).e1d = function ($this$launch, completion) {
|
|
799
|
+
var i = new Logging$logRequestBody$slambda(this.p3w_1, this.q3w_1, this.r3w_1, completion);
|
|
800
|
+
i.s3w_1 = $this$launch;
|
|
801
801
|
return i;
|
|
802
802
|
};
|
|
803
803
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
804
804
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
805
805
|
var l = function ($this$launch, $completion) {
|
|
806
|
-
return i.
|
|
806
|
+
return i.d1d($this$launch, $completion);
|
|
807
807
|
};
|
|
808
808
|
l.$arity = 1;
|
|
809
809
|
return l;
|
|
810
810
|
}
|
|
811
811
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
812
812
|
return function (it) {
|
|
813
|
-
$logger.
|
|
814
|
-
$logger.
|
|
813
|
+
$logger.l3u($requestLog.toString());
|
|
814
|
+
$logger.p3u();
|
|
815
815
|
return Unit_instance;
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
819
|
-
this.
|
|
819
|
+
this.e3x_1 = this$0;
|
|
820
820
|
CoroutineImpl.call(this, resultContinuation);
|
|
821
821
|
}
|
|
822
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
823
|
-
var tmp = this.
|
|
822
|
+
protoOf(Logging$setupResponseLogging$slambda).n32 = function ($this$intercept, response, $completion) {
|
|
823
|
+
var tmp = this.o32($this$intercept, response, $completion);
|
|
824
824
|
tmp.h9_1 = Unit_instance;
|
|
825
825
|
tmp.i9_1 = null;
|
|
826
826
|
return tmp.n9();
|
|
827
827
|
};
|
|
828
828
|
protoOf(Logging$setupResponseLogging$slambda).y9 = function (p1, p2, $completion) {
|
|
829
829
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
830
|
-
return this.
|
|
830
|
+
return this.n32(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
831
831
|
};
|
|
832
832
|
protoOf(Logging$setupResponseLogging$slambda).n9 = function () {
|
|
833
833
|
var suspendResult = this.h9_1;
|
|
@@ -837,19 +837,19 @@
|
|
|
837
837
|
switch (tmp) {
|
|
838
838
|
case 0:
|
|
839
839
|
this.g9_1 = 10;
|
|
840
|
-
if (this.
|
|
840
|
+
if (this.e3x_1.k3v_1.equals(LogLevel_NONE_getInstance()) || this.g3x_1.p2x().w2v().t24(get_DisableLogging()))
|
|
841
841
|
return Unit_instance;
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
842
|
+
this.h3x_1 = this.g3x_1.p2x().w2v().r24(get_ClientCallLogger());
|
|
843
|
+
this.i3x_1 = StringBuilder_init_$Create$();
|
|
844
|
+
this.j3x_1 = false;
|
|
845
845
|
this.f9_1 = 1;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 1:
|
|
848
848
|
this.g9_1 = 4;
|
|
849
849
|
this.g9_1 = 3;
|
|
850
|
-
logResponseHeader(this.
|
|
850
|
+
logResponseHeader(this.i3x_1, this.g3x_1.p2x().i2t(), this.e3x_1.k3v_1, this.e3x_1.m3v_1);
|
|
851
851
|
this.f9_1 = 2;
|
|
852
|
-
suspendResult = this.
|
|
852
|
+
suspendResult = this.f3x_1.c2b(this.f3x_1.b2b(), this);
|
|
853
853
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
854
854
|
return suspendResult;
|
|
855
855
|
}
|
|
@@ -857,7 +857,7 @@
|
|
|
857
857
|
continue $sm;
|
|
858
858
|
case 2:
|
|
859
859
|
var tmp_0 = this;
|
|
860
|
-
tmp_0.
|
|
860
|
+
tmp_0.k3x_1 = Unit_instance;
|
|
861
861
|
this.g9_1 = 10;
|
|
862
862
|
this.f9_1 = 7;
|
|
863
863
|
continue $sm;
|
|
@@ -865,22 +865,22 @@
|
|
|
865
865
|
this.g9_1 = 4;
|
|
866
866
|
var tmp_1 = this.i9_1;
|
|
867
867
|
if (tmp_1 instanceof Error) {
|
|
868
|
-
this.
|
|
868
|
+
this.l3x_1 = this.i9_1;
|
|
869
869
|
var tmp_2 = this;
|
|
870
|
-
logResponseException(this.
|
|
871
|
-
this.
|
|
872
|
-
throw this.
|
|
870
|
+
logResponseException(this.e3x_1, this.i3x_1, this.g3x_1.p2x().r2w(), this.l3x_1);
|
|
871
|
+
this.j3x_1 = true;
|
|
872
|
+
throw this.l3x_1;
|
|
873
873
|
} else {
|
|
874
874
|
throw this.i9_1;
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
case 4:
|
|
878
878
|
this.g9_1 = 10;
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
881
|
-
if (this.
|
|
879
|
+
this.m3x_1 = this.i9_1;
|
|
880
|
+
this.h3x_1.m3u(this.i3x_1.toString());
|
|
881
|
+
if (this.j3x_1 || !this.e3x_1.k3v_1.v3u_1) {
|
|
882
882
|
this.f9_1 = 5;
|
|
883
|
-
suspendResult = this.
|
|
883
|
+
suspendResult = this.h3x_1.q3u(this);
|
|
884
884
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
885
885
|
return suspendResult;
|
|
886
886
|
}
|
|
@@ -894,13 +894,13 @@
|
|
|
894
894
|
this.f9_1 = 6;
|
|
895
895
|
continue $sm;
|
|
896
896
|
case 6:
|
|
897
|
-
throw this.
|
|
897
|
+
throw this.m3x_1;
|
|
898
898
|
case 7:
|
|
899
899
|
this.g9_1 = 10;
|
|
900
|
-
this.
|
|
901
|
-
if (this.
|
|
900
|
+
this.h3x_1.m3u(this.i3x_1.toString());
|
|
901
|
+
if (this.j3x_1 || !this.e3x_1.k3v_1.v3u_1) {
|
|
902
902
|
this.f9_1 = 8;
|
|
903
|
-
suspendResult = this.
|
|
903
|
+
suspendResult = this.h3x_1.q3u(this);
|
|
904
904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
905
|
return suspendResult;
|
|
906
906
|
}
|
|
@@ -929,33 +929,33 @@
|
|
|
929
929
|
}
|
|
930
930
|
while (true);
|
|
931
931
|
};
|
|
932
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
933
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
934
|
-
i.
|
|
935
|
-
i.
|
|
932
|
+
protoOf(Logging$setupResponseLogging$slambda).o32 = function ($this$intercept, response, completion) {
|
|
933
|
+
var i = new Logging$setupResponseLogging$slambda(this.e3x_1, completion);
|
|
934
|
+
i.f3x_1 = $this$intercept;
|
|
935
|
+
i.g3x_1 = response;
|
|
936
936
|
return i;
|
|
937
937
|
};
|
|
938
938
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
939
939
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
940
940
|
var l = function ($this$intercept, response, $completion) {
|
|
941
|
-
return i.
|
|
941
|
+
return i.n32($this$intercept, response, $completion);
|
|
942
942
|
};
|
|
943
943
|
l.$arity = 2;
|
|
944
944
|
return l;
|
|
945
945
|
}
|
|
946
946
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
947
|
-
this.
|
|
947
|
+
this.v3x_1 = this$0;
|
|
948
948
|
CoroutineImpl.call(this, resultContinuation);
|
|
949
949
|
}
|
|
950
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
951
|
-
var tmp = this.
|
|
950
|
+
protoOf(Logging$setupResponseLogging$slambda_1).v2t = function ($this$intercept, it, $completion) {
|
|
951
|
+
var tmp = this.w2t($this$intercept, it, $completion);
|
|
952
952
|
tmp.h9_1 = Unit_instance;
|
|
953
953
|
tmp.i9_1 = null;
|
|
954
954
|
return tmp.n9();
|
|
955
955
|
};
|
|
956
956
|
protoOf(Logging$setupResponseLogging$slambda_1).y9 = function (p1, p2, $completion) {
|
|
957
957
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
958
|
-
return this.
|
|
958
|
+
return this.v2t(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
959
959
|
};
|
|
960
960
|
protoOf(Logging$setupResponseLogging$slambda_1).n9 = function () {
|
|
961
961
|
var suspendResult = this.h9_1;
|
|
@@ -965,13 +965,13 @@
|
|
|
965
965
|
switch (tmp) {
|
|
966
966
|
case 0:
|
|
967
967
|
this.g9_1 = 6;
|
|
968
|
-
if (this.
|
|
968
|
+
if (this.v3x_1.k3v_1.equals(LogLevel_NONE_getInstance()) || this.w3x_1.y2b_1.w2v().t24(get_DisableLogging())) {
|
|
969
969
|
return Unit_instance;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
972
|
this.g9_1 = 3;
|
|
973
973
|
this.f9_1 = 1;
|
|
974
|
-
suspendResult = this.
|
|
974
|
+
suspendResult = this.w3x_1.d2b(this);
|
|
975
975
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
976
976
|
return suspendResult;
|
|
977
977
|
}
|
|
@@ -988,12 +988,12 @@
|
|
|
988
988
|
this.g9_1 = 6;
|
|
989
989
|
var tmp_0 = this.i9_1;
|
|
990
990
|
if (tmp_0 instanceof Error) {
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
994
|
-
logResponseException(this.
|
|
991
|
+
this.y3x_1 = this.i9_1;
|
|
992
|
+
this.z3x_1 = StringBuilder_init_$Create$();
|
|
993
|
+
this.a3y_1 = this.w3x_1.y2b_1.w2v().r24(get_ClientCallLogger());
|
|
994
|
+
logResponseException(this.v3x_1, this.z3x_1, this.w3x_1.y2b_1.r2w(), this.y3x_1);
|
|
995
995
|
this.f9_1 = 4;
|
|
996
|
-
suspendResult = this.
|
|
996
|
+
suspendResult = this.a3y_1.n3u(this.z3x_1.toString(), this);
|
|
997
997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
998
|
return suspendResult;
|
|
999
999
|
}
|
|
@@ -1004,14 +1004,14 @@
|
|
|
1004
1004
|
|
|
1005
1005
|
case 4:
|
|
1006
1006
|
this.f9_1 = 5;
|
|
1007
|
-
suspendResult = this.
|
|
1007
|
+
suspendResult = this.a3y_1.q3u(this);
|
|
1008
1008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1009
1009
|
return suspendResult;
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
1012
|
continue $sm;
|
|
1013
1013
|
case 5:
|
|
1014
|
-
throw this.
|
|
1014
|
+
throw this.y3x_1;
|
|
1015
1015
|
case 6:
|
|
1016
1016
|
throw this.i9_1;
|
|
1017
1017
|
}
|
|
@@ -1026,32 +1026,32 @@
|
|
|
1026
1026
|
}
|
|
1027
1027
|
while (true);
|
|
1028
1028
|
};
|
|
1029
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1030
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1031
|
-
i.
|
|
1032
|
-
i.
|
|
1029
|
+
protoOf(Logging$setupResponseLogging$slambda_1).w2t = function ($this$intercept, it, completion) {
|
|
1030
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.v3x_1, completion);
|
|
1031
|
+
i.w3x_1 = $this$intercept;
|
|
1032
|
+
i.x3x_1 = it;
|
|
1033
1033
|
return i;
|
|
1034
1034
|
};
|
|
1035
1035
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1036
1036
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1037
1037
|
var l = function ($this$intercept, it, $completion) {
|
|
1038
|
-
return i.
|
|
1038
|
+
return i.v2t($this$intercept, it, $completion);
|
|
1039
1039
|
};
|
|
1040
1040
|
l.$arity = 2;
|
|
1041
1041
|
return l;
|
|
1042
1042
|
}
|
|
1043
1043
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1044
|
-
this.
|
|
1044
|
+
this.j3y_1 = this$0;
|
|
1045
1045
|
CoroutineImpl.call(this, resultContinuation);
|
|
1046
1046
|
}
|
|
1047
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1048
|
-
var tmp = this.
|
|
1047
|
+
protoOf(Logging$setupResponseLogging$slambda_3).f34 = function (it, $completion) {
|
|
1048
|
+
var tmp = this.g34(it, $completion);
|
|
1049
1049
|
tmp.h9_1 = Unit_instance;
|
|
1050
1050
|
tmp.i9_1 = null;
|
|
1051
1051
|
return tmp.n9();
|
|
1052
1052
|
};
|
|
1053
1053
|
protoOf(Logging$setupResponseLogging$slambda_3).x9 = function (p1, $completion) {
|
|
1054
|
-
return this.
|
|
1054
|
+
return this.f34(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1055
1055
|
};
|
|
1056
1056
|
protoOf(Logging$setupResponseLogging$slambda_3).n9 = function () {
|
|
1057
1057
|
var suspendResult = this.h9_1;
|
|
@@ -1061,26 +1061,26 @@
|
|
|
1061
1061
|
switch (tmp) {
|
|
1062
1062
|
case 0:
|
|
1063
1063
|
this.g9_1 = 10;
|
|
1064
|
-
if (this.
|
|
1064
|
+
if (this.j3y_1.k3v_1.equals(LogLevel_NONE_getInstance()) || this.k3y_1.p2x().w2v().t24(get_DisableLogging())) {
|
|
1065
1065
|
return Unit_instance;
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1068
|
+
this.l3y_1 = this.k3y_1.p2x().w2v().r24(get_ClientCallLogger());
|
|
1069
|
+
this.m3y_1 = StringBuilder_init_$Create$();
|
|
1070
1070
|
this.f9_1 = 1;
|
|
1071
1071
|
continue $sm;
|
|
1072
1072
|
case 1:
|
|
1073
1073
|
this.g9_1 = 4;
|
|
1074
1074
|
this.g9_1 = 3;
|
|
1075
1075
|
this.f9_1 = 2;
|
|
1076
|
-
suspendResult = logResponseBody(this.
|
|
1076
|
+
suspendResult = logResponseBody(this.m3y_1, contentType(this.k3y_1), this.k3y_1.s2w(), this);
|
|
1077
1077
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1078
1078
|
return suspendResult;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
continue $sm;
|
|
1082
1082
|
case 2:
|
|
1083
|
-
this.
|
|
1083
|
+
this.n3y_1 = suspendResult;
|
|
1084
1084
|
this.g9_1 = 10;
|
|
1085
1085
|
this.f9_1 = 7;
|
|
1086
1086
|
continue $sm;
|
|
@@ -1088,9 +1088,9 @@
|
|
|
1088
1088
|
this.g9_1 = 4;
|
|
1089
1089
|
var tmp_0 = this.i9_1;
|
|
1090
1090
|
if (tmp_0 instanceof Error) {
|
|
1091
|
-
this.
|
|
1091
|
+
this.o3y_1 = this.i9_1;
|
|
1092
1092
|
var tmp_1 = this;
|
|
1093
|
-
tmp_1.
|
|
1093
|
+
tmp_1.n3y_1 = Unit_instance;
|
|
1094
1094
|
this.g9_1 = 10;
|
|
1095
1095
|
this.f9_1 = 7;
|
|
1096
1096
|
continue $sm;
|
|
@@ -1100,10 +1100,10 @@
|
|
|
1100
1100
|
|
|
1101
1101
|
case 4:
|
|
1102
1102
|
this.g9_1 = 10;
|
|
1103
|
-
this.
|
|
1103
|
+
this.p3y_1 = this.i9_1;
|
|
1104
1104
|
this.f9_1 = 5;
|
|
1105
|
-
var this_0 = this.
|
|
1106
|
-
suspendResult = this.
|
|
1105
|
+
var this_0 = this.m3y_1.toString();
|
|
1106
|
+
suspendResult = this.l3y_1.o3u(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1107
1107
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1108
1108
|
return suspendResult;
|
|
1109
1109
|
}
|
|
@@ -1111,19 +1111,19 @@
|
|
|
1111
1111
|
continue $sm;
|
|
1112
1112
|
case 5:
|
|
1113
1113
|
this.f9_1 = 6;
|
|
1114
|
-
suspendResult = this.
|
|
1114
|
+
suspendResult = this.l3y_1.q3u(this);
|
|
1115
1115
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1116
1116
|
return suspendResult;
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
continue $sm;
|
|
1120
1120
|
case 6:
|
|
1121
|
-
throw this.
|
|
1121
|
+
throw this.p3y_1;
|
|
1122
1122
|
case 7:
|
|
1123
1123
|
this.g9_1 = 10;
|
|
1124
1124
|
this.f9_1 = 8;
|
|
1125
|
-
var this_1 = this.
|
|
1126
|
-
suspendResult = this.
|
|
1125
|
+
var this_1 = this.m3y_1.toString();
|
|
1126
|
+
suspendResult = this.l3y_1.o3u(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1127
1127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1128
1128
|
return suspendResult;
|
|
1129
1129
|
}
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
continue $sm;
|
|
1132
1132
|
case 8:
|
|
1133
1133
|
this.f9_1 = 9;
|
|
1134
|
-
suspendResult = this.
|
|
1134
|
+
suspendResult = this.l3y_1.q3u(this);
|
|
1135
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1136
|
return suspendResult;
|
|
1137
1137
|
}
|
|
@@ -1153,15 +1153,15 @@
|
|
|
1153
1153
|
}
|
|
1154
1154
|
while (true);
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1157
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1158
|
-
i.
|
|
1156
|
+
protoOf(Logging$setupResponseLogging$slambda_3).g34 = function (it, completion) {
|
|
1157
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.j3y_1, completion);
|
|
1158
|
+
i.k3y_1 = it;
|
|
1159
1159
|
return i;
|
|
1160
1160
|
};
|
|
1161
1161
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1162
1162
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1163
1163
|
var l = function (it, $completion) {
|
|
1164
|
-
return i.
|
|
1164
|
+
return i.f34(it, $completion);
|
|
1165
1165
|
};
|
|
1166
1166
|
l.$arity = 1;
|
|
1167
1167
|
return l;
|
|
@@ -1169,10 +1169,10 @@
|
|
|
1169
1169
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1170
1170
|
Companion_getInstance_0();
|
|
1171
1171
|
filters = filters === VOID ? emptyList() : filters;
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1172
|
+
this.j3v_1 = logger;
|
|
1173
|
+
this.k3v_1 = level;
|
|
1174
|
+
this.l3v_1 = filters;
|
|
1175
|
+
this.m3v_1 = sanitizedHeaders;
|
|
1176
1176
|
}
|
|
1177
1177
|
var properties_initialized_Logging_kt_588vu7;
|
|
1178
1178
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
while (tmp0_iterator_0.k()) {
|
|
1206
1206
|
var element_0 = tmp0_iterator_0.l();
|
|
1207
1207
|
// Inline function 'io.ktor.client.plugins.logging.logHeaders.<anonymous>.<anonymous>' call
|
|
1208
|
-
if (element_0.
|
|
1208
|
+
if (element_0.o3v_1(key)) {
|
|
1209
1209
|
tmp$ret$5 = element_0;
|
|
1210
1210
|
break $l$block;
|
|
1211
1211
|
}
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
tmp$ret$5 = null;
|
|
1214
1214
|
}
|
|
1215
1215
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1216
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1216
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n3v_1;
|
|
1217
1217
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
@@ -1226,26 +1226,26 @@
|
|
|
1226
1226
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1227
1227
|
// Inline function 'kotlin.with' call
|
|
1228
1228
|
// Inline function 'kotlin.contracts.contract' call
|
|
1229
|
-
if (level.
|
|
1229
|
+
if (level.t3u_1) {
|
|
1230
1230
|
// Inline function 'kotlin.text.appendLine' call
|
|
1231
|
-
var value = 'RESPONSE: ' + response.
|
|
1231
|
+
var value = 'RESPONSE: ' + response.b2o().toString();
|
|
1232
1232
|
// Inline function 'kotlin.text.appendLine' call
|
|
1233
1233
|
log.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
1234
1234
|
// Inline function 'kotlin.text.appendLine' call
|
|
1235
|
-
var value_0 = 'METHOD: ' + response.
|
|
1235
|
+
var value_0 = 'METHOD: ' + response.p2x().r2w().q2x().toString();
|
|
1236
1236
|
// Inline function 'kotlin.text.appendLine' call
|
|
1237
1237
|
log.o8(value_0).p8(_Char___init__impl__6a9atx(10));
|
|
1238
1238
|
// Inline function 'kotlin.text.appendLine' call
|
|
1239
|
-
var value_1 = 'FROM: ' + response.
|
|
1239
|
+
var value_1 = 'FROM: ' + response.p2x().r2w().u2w().toString();
|
|
1240
1240
|
// Inline function 'kotlin.text.appendLine' call
|
|
1241
1241
|
log.o8(value_1).p8(_Char___init__impl__6a9atx(10));
|
|
1242
1242
|
}
|
|
1243
|
-
if (level.
|
|
1243
|
+
if (level.u3u_1) {
|
|
1244
1244
|
// Inline function 'kotlin.text.appendLine' call
|
|
1245
1245
|
var value_2 = 'COMMON HEADERS';
|
|
1246
1246
|
// Inline function 'kotlin.text.appendLine' call
|
|
1247
1247
|
log.o8(value_2).p8(_Char___init__impl__6a9atx(10));
|
|
1248
|
-
logHeaders(log, response.
|
|
1248
|
+
logHeaders(log, response.w2i().v28(), sanitizedHeaders);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
function logResponseBody(log, contentType, content, $completion) {
|
|
@@ -1255,16 +1255,16 @@
|
|
|
1255
1255
|
return tmp.n9();
|
|
1256
1256
|
}
|
|
1257
1257
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1258
|
-
this.
|
|
1258
|
+
this.g3z_1 = function_0;
|
|
1259
1259
|
}
|
|
1260
1260
|
protoOf(sam$kotlin_Comparator$0).nc = function (a, b) {
|
|
1261
|
-
return this.
|
|
1261
|
+
return this.g3z_1(a, b);
|
|
1262
1262
|
};
|
|
1263
1263
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1264
1264
|
return this.nc(a, b);
|
|
1265
1265
|
};
|
|
1266
1266
|
protoOf(sam$kotlin_Comparator$0).p3 = function () {
|
|
1267
|
-
return this.
|
|
1267
|
+
return this.g3z_1;
|
|
1268
1268
|
};
|
|
1269
1269
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1270
1270
|
var tmp;
|
|
@@ -1294,9 +1294,9 @@
|
|
|
1294
1294
|
}
|
|
1295
1295
|
function $logResponseBodyCOROUTINE$4(log, contentType, content, resultContinuation) {
|
|
1296
1296
|
CoroutineImpl.call(this, resultContinuation);
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1297
|
+
this.y3y_1 = log;
|
|
1298
|
+
this.z3y_1 = contentType;
|
|
1299
|
+
this.a3z_1 = content;
|
|
1300
1300
|
}
|
|
1301
1301
|
protoOf($logResponseBodyCOROUTINE$4).n9 = function () {
|
|
1302
1302
|
var suspendResult = this.h9_1;
|
|
@@ -1307,24 +1307,24 @@
|
|
|
1307
1307
|
case 0:
|
|
1308
1308
|
this.g9_1 = 4;
|
|
1309
1309
|
var tmp_0 = this;
|
|
1310
|
-
tmp_0.
|
|
1310
|
+
tmp_0.b3z_1 = this.y3y_1;
|
|
1311
1311
|
var tmp_1 = this;
|
|
1312
|
-
tmp_1.
|
|
1313
|
-
var this_0 = this.
|
|
1314
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
1312
|
+
tmp_1.c3z_1 = this.b3z_1;
|
|
1313
|
+
var this_0 = this.c3z_1;
|
|
1314
|
+
var value = 'BODY Content-Type: ' + toString_0(this.z3y_1);
|
|
1315
1315
|
this_0.o8(value).p8(_Char___init__impl__6a9atx(10));
|
|
1316
|
-
var this_1 = this.
|
|
1316
|
+
var this_1 = this.c3z_1;
|
|
1317
1317
|
var value_0 = 'BODY START';
|
|
1318
1318
|
this_1.o8(value_0).p8(_Char___init__impl__6a9atx(10));
|
|
1319
1319
|
var tmp_2 = this;
|
|
1320
|
-
tmp_2.
|
|
1320
|
+
tmp_2.d3z_1 = this.a3z_1;
|
|
1321
1321
|
var tmp_3 = this;
|
|
1322
|
-
var tmp0_safe_receiver = this.
|
|
1322
|
+
var tmp0_safe_receiver = this.z3y_1;
|
|
1323
1323
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1324
|
-
tmp_3.
|
|
1324
|
+
tmp_3.e3z_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().y20_1 : tmp1_elvis_lhs;
|
|
1325
1325
|
this.g9_1 = 2;
|
|
1326
1326
|
this.f9_1 = 1;
|
|
1327
|
-
suspendResult = this.
|
|
1327
|
+
suspendResult = this.d3z_1.j1w(VOID, this);
|
|
1328
1328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1329
1329
|
return suspendResult;
|
|
1330
1330
|
}
|
|
@@ -1332,7 +1332,7 @@
|
|
|
1332
1332
|
continue $sm;
|
|
1333
1333
|
case 1:
|
|
1334
1334
|
var ARGUMENT = suspendResult;
|
|
1335
|
-
this.
|
|
1335
|
+
this.f3z_1 = readText(ARGUMENT, this.e3z_1);
|
|
1336
1336
|
this.g9_1 = 4;
|
|
1337
1337
|
this.f9_1 = 3;
|
|
1338
1338
|
continue $sm;
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
if (tmp_4 instanceof Error) {
|
|
1343
1343
|
var cause = this.i9_1;
|
|
1344
1344
|
var tmp_5 = this;
|
|
1345
|
-
tmp_5.
|
|
1345
|
+
tmp_5.f3z_1 = null;
|
|
1346
1346
|
this.f9_1 = 3;
|
|
1347
1347
|
continue $sm;
|
|
1348
1348
|
} else {
|
|
@@ -1351,10 +1351,10 @@
|
|
|
1351
1351
|
|
|
1352
1352
|
case 3:
|
|
1353
1353
|
this.g9_1 = 4;
|
|
1354
|
-
var tmp2_elvis_lhs = this.
|
|
1354
|
+
var tmp2_elvis_lhs = this.f3z_1;
|
|
1355
1355
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1356
|
+
this.c3z_1.o8(message).p8(_Char___init__impl__6a9atx(10));
|
|
1357
|
+
this.c3z_1.o8('BODY END');
|
|
1358
1358
|
return Unit_instance;
|
|
1359
1359
|
case 4:
|
|
1360
1360
|
throw this.i9_1;
|
|
@@ -1378,21 +1378,21 @@
|
|
|
1378
1378
|
}
|
|
1379
1379
|
function toReadChannel(_this__u8e3s4) {
|
|
1380
1380
|
var tmp = GlobalScope_instance;
|
|
1381
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1382
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1381
|
+
var tmp_0 = Dispatchers_getInstance().f10_1;
|
|
1382
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).w10();
|
|
1383
1383
|
}
|
|
1384
1384
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1385
|
-
this.
|
|
1385
|
+
this.b40_1 = $this_toReadChannel;
|
|
1386
1386
|
CoroutineImpl.call(this, resultContinuation);
|
|
1387
1387
|
}
|
|
1388
|
-
protoOf(toReadChannel$slambda).
|
|
1389
|
-
var tmp = this.
|
|
1388
|
+
protoOf(toReadChannel$slambda).n2y = function ($this$writer, $completion) {
|
|
1389
|
+
var tmp = this.o2y($this$writer, $completion);
|
|
1390
1390
|
tmp.h9_1 = Unit_instance;
|
|
1391
1391
|
tmp.i9_1 = null;
|
|
1392
1392
|
return tmp.n9();
|
|
1393
1393
|
};
|
|
1394
1394
|
protoOf(toReadChannel$slambda).x9 = function (p1, $completion) {
|
|
1395
|
-
return this.
|
|
1395
|
+
return this.n2y((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1396
1396
|
};
|
|
1397
1397
|
protoOf(toReadChannel$slambda).n9 = function () {
|
|
1398
1398
|
var suspendResult = this.h9_1;
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
case 0:
|
|
1404
1404
|
this.g9_1 = 2;
|
|
1405
1405
|
this.f9_1 = 1;
|
|
1406
|
-
suspendResult = this.
|
|
1406
|
+
suspendResult = this.b40_1.i2o(this.c40_1.w10(), this);
|
|
1407
1407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1408
1408
|
return suspendResult;
|
|
1409
1409
|
}
|
|
@@ -1425,23 +1425,23 @@
|
|
|
1425
1425
|
}
|
|
1426
1426
|
while (true);
|
|
1427
1427
|
};
|
|
1428
|
-
protoOf(toReadChannel$slambda).
|
|
1429
|
-
var i = new toReadChannel$slambda(this.
|
|
1430
|
-
i.
|
|
1428
|
+
protoOf(toReadChannel$slambda).o2y = function ($this$writer, completion) {
|
|
1429
|
+
var i = new toReadChannel$slambda(this.b40_1, completion);
|
|
1430
|
+
i.c40_1 = $this$writer;
|
|
1431
1431
|
return i;
|
|
1432
1432
|
};
|
|
1433
1433
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1434
1434
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1435
1435
|
var l = function ($this$writer, $completion) {
|
|
1436
|
-
return i.
|
|
1436
|
+
return i.n2y($this$writer, $completion);
|
|
1437
1437
|
};
|
|
1438
1438
|
l.$arity = 1;
|
|
1439
1439
|
return l;
|
|
1440
1440
|
}
|
|
1441
1441
|
function $observeCOROUTINE$5(_this__u8e3s4, log, resultContinuation) {
|
|
1442
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1443
|
+
this.p3z_1 = _this__u8e3s4;
|
|
1444
|
+
this.q3z_1 = log;
|
|
1445
1445
|
}
|
|
1446
1446
|
protoOf($observeCOROUTINE$5).n9 = function () {
|
|
1447
1447
|
var suspendResult = this.h9_1;
|
|
@@ -1451,39 +1451,39 @@
|
|
|
1451
1451
|
switch (tmp) {
|
|
1452
1452
|
case 0:
|
|
1453
1453
|
this.g9_1 = 3;
|
|
1454
|
-
this.
|
|
1455
|
-
var tmp_0 = this.
|
|
1454
|
+
this.r3z_1 = this.p3z_1;
|
|
1455
|
+
var tmp_0 = this.r3z_1;
|
|
1456
1456
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
1457
1457
|
this.f9_1 = 1;
|
|
1458
|
-
suspendResult = writeFully(this.
|
|
1458
|
+
suspendResult = writeFully(this.q3z_1, this.p3z_1.d2o(), this);
|
|
1459
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1460
1460
|
return suspendResult;
|
|
1461
1461
|
}
|
|
1462
1462
|
continue $sm;
|
|
1463
1463
|
} else {
|
|
1464
|
-
var tmp_1 = this.
|
|
1464
|
+
var tmp_1 = this.r3z_1;
|
|
1465
1465
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
1466
1466
|
var tmp_2 = this;
|
|
1467
1467
|
var responseChannel = ByteChannel();
|
|
1468
|
-
var content = this.
|
|
1469
|
-
copyToBoth(content, this.
|
|
1470
|
-
tmp_2.
|
|
1468
|
+
var content = this.p3z_1.g2o();
|
|
1469
|
+
copyToBoth(content, this.q3z_1, responseChannel);
|
|
1470
|
+
tmp_2.s3z_1 = new LoggedContent(this.p3z_1, responseChannel);
|
|
1471
1471
|
this.f9_1 = 2;
|
|
1472
1472
|
continue $sm;
|
|
1473
1473
|
} else {
|
|
1474
|
-
var tmp_3 = this.
|
|
1474
|
+
var tmp_3 = this.r3z_1;
|
|
1475
1475
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
1476
1476
|
var tmp_4 = this;
|
|
1477
1477
|
var responseChannel_0 = ByteChannel();
|
|
1478
|
-
var content_0 = toReadChannel(this.
|
|
1479
|
-
copyToBoth(content_0, this.
|
|
1480
|
-
tmp_4.
|
|
1478
|
+
var content_0 = toReadChannel(this.p3z_1);
|
|
1479
|
+
copyToBoth(content_0, this.q3z_1, responseChannel_0);
|
|
1480
|
+
tmp_4.s3z_1 = new LoggedContent(this.p3z_1, responseChannel_0);
|
|
1481
1481
|
this.f9_1 = 2;
|
|
1482
1482
|
continue $sm;
|
|
1483
1483
|
} else {
|
|
1484
1484
|
var tmp_5 = this;
|
|
1485
|
-
close(this.
|
|
1486
|
-
tmp_5.
|
|
1485
|
+
close(this.q3z_1);
|
|
1486
|
+
tmp_5.s3z_1 = this.p3z_1;
|
|
1487
1487
|
this.f9_1 = 2;
|
|
1488
1488
|
continue $sm;
|
|
1489
1489
|
}
|
|
@@ -1491,12 +1491,12 @@
|
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
1493
|
case 1:
|
|
1494
|
-
close(this.
|
|
1495
|
-
this.
|
|
1494
|
+
close(this.q3z_1);
|
|
1495
|
+
this.s3z_1 = this.p3z_1;
|
|
1496
1496
|
this.f9_1 = 2;
|
|
1497
1497
|
continue $sm;
|
|
1498
1498
|
case 2:
|
|
1499
|
-
return this.
|
|
1499
|
+
return this.s3z_1;
|
|
1500
1500
|
case 3:
|
|
1501
1501
|
throw this.i9_1;
|
|
1502
1502
|
}
|