game_client_logic_deb 1.8.346 → 1.8.348
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 +78 -78
- package/Kosi-Kodein-kodein-di.js +653 -653
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1760 -1760
- package/Logic_Debertz-core.js +1706 -1706
- package/Logic_Debertz-engine.js +14589 -14589
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +4868 -4872
- package/Logic_Debertz-game_client.js.map +1 -1
- package/error-library-error.js +53 -0
- package/error-library-error.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +3036 -2802
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +24 -24
- package/kotlinx-coroutines-core.js +2882 -2882
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +356 -356
- package/kotlinx-serialization-kotlinx-serialization-core.js +2044 -2044
- package/kotlinx-serialization-kotlinx-serialization-json.js +1583 -1583
- package/ktor-ktor-client-content-negotiation.js +221 -221
- package/ktor-ktor-client-core.js +2549 -2549
- package/ktor-ktor-client-logging.js +559 -559
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +765 -765
- package/ktor-ktor-io.js +1645 -1645
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +279 -279
- package/ktor-ktor-serialization.js +134 -134
- package/ktor-ktor-utils.js +743 -743
- package/ktor-ktor-websockets.js +59 -59
- package/package.json +1 -1
- package/random-library-crypto-rand.js +251 -0
- package/random-library-crypto-rand.js.map +1 -0
- package/random-library-secure-random.js +93 -0
- package/random-library-secure-random.js.map +1 -0
- package/raspberry-cardgame-lib-core.js +296 -296
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +107 -107
- package/raspberry-cardgame-lib-random.js +1045 -981
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +33 -33
- package/secure-random-secure-random.js +0 -174
- package/secure-random-secure-random.js.map +0 -1
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
}(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.$_$.ra;
|
|
34
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
35
|
+
var THROW_CCE = kotlin_kotlin.$_$.pg;
|
|
36
|
+
var isCharSequence = kotlin_kotlin.$_$.zb;
|
|
37
|
+
var trim = kotlin_kotlin.$_$.rf;
|
|
38
|
+
var toString = kotlin_kotlin.$_$.uc;
|
|
39
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
40
|
+
var protoOf = kotlin_kotlin.$_$.qc;
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.eb;
|
|
43
43
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
44
44
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
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.$_$.p2;
|
|
47
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
48
48
|
var VOID = kotlin_kotlin.$_$.f;
|
|
49
|
-
var Enum = kotlin_kotlin.$_$.
|
|
49
|
+
var Enum = kotlin_kotlin.$_$.eg;
|
|
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.$_$.ua;
|
|
53
53
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
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.$_$.th;
|
|
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,24 +68,24 @@
|
|
|
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.$_$.l5;
|
|
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.$_$.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;
|
|
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 equals = kotlin_kotlin.$_$.
|
|
85
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
86
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
87
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
88
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
80
|
+
var emptyList = kotlin_kotlin.$_$.h7;
|
|
81
|
+
var toList = kotlin_kotlin.$_$.n9;
|
|
82
|
+
var sortedWith = kotlin_kotlin.$_$.f9;
|
|
83
|
+
var joinToString = kotlin_kotlin.$_$.z7;
|
|
84
|
+
var equals = kotlin_kotlin.$_$.ib;
|
|
85
|
+
var FunctionAdapter = kotlin_kotlin.$_$.va;
|
|
86
|
+
var Comparator = kotlin_kotlin.$_$.bg;
|
|
87
|
+
var hashCode = kotlin_kotlin.$_$.ob;
|
|
88
|
+
var compareValues = kotlin_kotlin.$_$.aa;
|
|
89
89
|
var writer = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
90
90
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
91
91
|
var close = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -118,177 +118,177 @@
|
|
|
118
118
|
//endregion
|
|
119
119
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.k3x_1 = _this__u8e3s4;
|
|
122
|
+
this.l3x_1 = message;
|
|
123
123
|
}
|
|
124
|
-
protoOf($logResponseExceptionCOROUTINE$).
|
|
125
|
-
var suspendResult = this.
|
|
124
|
+
protoOf($logResponseExceptionCOROUTINE$).t9 = function () {
|
|
125
|
+
var suspendResult = this.n9_1;
|
|
126
126
|
$sm: do
|
|
127
127
|
try {
|
|
128
|
-
var tmp = this.
|
|
128
|
+
var tmp = this.l9_1;
|
|
129
129
|
switch (tmp) {
|
|
130
130
|
case 0:
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
suspendResult = this.
|
|
131
|
+
this.m9_1 = 2;
|
|
132
|
+
this.l9_1 = 1;
|
|
133
|
+
suspendResult = this.k3x_1.p3x_1.zr(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.l3x_1;
|
|
141
|
+
this.k3x_1.m3x_1.t3x(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
|
-
throw this.
|
|
144
|
+
throw this.o9_1;
|
|
145
145
|
}
|
|
146
146
|
} catch ($p) {
|
|
147
147
|
var e = $p;
|
|
148
|
-
if (this.
|
|
148
|
+
if (this.m9_1 === 2) {
|
|
149
149
|
throw e;
|
|
150
150
|
} else {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
151
|
+
this.l9_1 = this.m9_1;
|
|
152
|
+
this.o9_1 = e;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
while (true);
|
|
156
156
|
};
|
|
157
157
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.c3y_1 = _this__u8e3s4;
|
|
160
|
+
this.d3y_1 = message;
|
|
161
161
|
}
|
|
162
|
-
protoOf($logResponseBodyCOROUTINE$).
|
|
163
|
-
var suspendResult = this.
|
|
162
|
+
protoOf($logResponseBodyCOROUTINE$).t9 = function () {
|
|
163
|
+
var suspendResult = this.n9_1;
|
|
164
164
|
$sm: do
|
|
165
165
|
try {
|
|
166
|
-
var tmp = this.
|
|
166
|
+
var tmp = this.l9_1;
|
|
167
167
|
switch (tmp) {
|
|
168
168
|
case 0:
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
suspendResult = this.
|
|
169
|
+
this.m9_1 = 2;
|
|
170
|
+
this.l9_1 = 1;
|
|
171
|
+
suspendResult = this.c3y_1.q3x_1.zr(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.o3x_1.
|
|
178
|
+
this.c3y_1.o3x_1.w8(this.d3y_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
|
-
throw this.
|
|
181
|
+
throw this.o9_1;
|
|
182
182
|
}
|
|
183
183
|
} catch ($p) {
|
|
184
184
|
var e = $p;
|
|
185
|
-
if (this.
|
|
185
|
+
if (this.m9_1 === 2) {
|
|
186
186
|
throw e;
|
|
187
187
|
} else {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
188
|
+
this.l9_1 = this.m9_1;
|
|
189
|
+
this.o9_1 = e;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
while (true);
|
|
193
193
|
};
|
|
194
194
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.m3y_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
|
-
protoOf($closeResponseLogCOROUTINE$).
|
|
199
|
-
var suspendResult = this.
|
|
198
|
+
protoOf($closeResponseLogCOROUTINE$).t9 = function () {
|
|
199
|
+
var suspendResult = this.n9_1;
|
|
200
200
|
$sm: do
|
|
201
201
|
try {
|
|
202
|
-
var tmp = this.
|
|
202
|
+
var tmp = this.l9_1;
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
|
-
this.
|
|
206
|
-
if (!this.
|
|
205
|
+
this.m9_1 = 2;
|
|
206
|
+
if (!this.m3y_1.s3x_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
|
-
this.
|
|
209
|
-
suspendResult = this.
|
|
208
|
+
this.l9_1 = 1;
|
|
209
|
+
suspendResult = this.m3y_1.p3x_1.zr(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.m3y_1.o3x_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.m3y_1.m3x_1.t3x(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
222
222
|
case 2:
|
|
223
|
-
throw this.
|
|
223
|
+
throw this.o9_1;
|
|
224
224
|
}
|
|
225
225
|
} catch ($p) {
|
|
226
226
|
var e = $p;
|
|
227
|
-
if (this.
|
|
227
|
+
if (this.m9_1 === 2) {
|
|
228
228
|
throw e;
|
|
229
229
|
} else {
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
230
|
+
this.l9_1 = this.m9_1;
|
|
231
|
+
this.o9_1 = e;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
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.m3x_1 = logger;
|
|
238
|
+
this.n3x_1 = StringBuilder_init_$Create$();
|
|
239
|
+
this.o3x_1 = StringBuilder_init_$Create$();
|
|
240
|
+
this.p3x_1 = Job();
|
|
241
|
+
this.q3x_1 = Job();
|
|
242
|
+
this.r3x_1 = atomic$boolean$1(false);
|
|
243
|
+
this.s3x_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
246
|
-
var tmp0 = this.
|
|
245
|
+
protoOf(HttpClientCallLogger).n3y = function (message) {
|
|
246
|
+
var tmp0 = this.n3x_1;
|
|
247
247
|
// Inline function 'kotlin.text.trim' call
|
|
248
248
|
// Inline function 'kotlin.text.appendLine' call
|
|
249
249
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
250
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
|
-
tmp0.
|
|
251
|
+
tmp0.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
254
|
-
var tmp0 = this.
|
|
253
|
+
protoOf(HttpClientCallLogger).o3y = function (message) {
|
|
254
|
+
var tmp0 = this.o3x_1;
|
|
255
255
|
// Inline function 'kotlin.text.trim' call
|
|
256
256
|
// Inline function 'kotlin.text.appendLine' call
|
|
257
257
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
258
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
|
-
tmp0.
|
|
260
|
-
this.
|
|
259
|
+
tmp0.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
260
|
+
this.q3x_1.az();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
262
|
+
protoOf(HttpClientCallLogger).p3y = function (message, $completion) {
|
|
263
263
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
264
|
-
tmp.
|
|
265
|
-
tmp.
|
|
266
|
-
return tmp.
|
|
264
|
+
tmp.n9_1 = Unit_instance;
|
|
265
|
+
tmp.o9_1 = null;
|
|
266
|
+
return tmp.t9();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
268
|
+
protoOf(HttpClientCallLogger).q3y = function (message, $completion) {
|
|
269
269
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
270
|
-
tmp.
|
|
271
|
-
tmp.
|
|
272
|
-
return tmp.
|
|
270
|
+
tmp.n9_1 = Unit_instance;
|
|
271
|
+
tmp.o9_1 = null;
|
|
272
|
+
return tmp.t9();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).r3y = function () {
|
|
275
|
+
if (!this.r3x_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.n3x_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.m3x_1.t3x(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.p3x_1.az();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
+
protoOf(HttpClientCallLogger).s3y = function ($completion) {
|
|
288
288
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
289
|
-
tmp.
|
|
290
|
-
tmp.
|
|
291
|
-
return tmp.
|
|
289
|
+
tmp.n9_1 = Unit_instance;
|
|
290
|
+
tmp.o9_1 = null;
|
|
291
|
+
return tmp.t9();
|
|
292
292
|
};
|
|
293
293
|
var LogLevel_ALL_instance;
|
|
294
294
|
var LogLevel_HEADERS_instance;
|
|
@@ -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.v3y_1 = info;
|
|
312
|
+
this.w3y_1 = headers;
|
|
313
|
+
this.x3y_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.z3y_1 = originalContent;
|
|
330
|
+
this.a3z_1 = channel;
|
|
331
|
+
this.b3z_1 = this.z3y_1.h2r();
|
|
332
|
+
this.c3z_1 = this.z3y_1.j2r();
|
|
333
|
+
this.d3z_1 = this.z3y_1.i2r();
|
|
334
|
+
this.e3z_1 = this.z3y_1.d2m();
|
|
335
335
|
}
|
|
336
|
-
protoOf(LoggedContent).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(LoggedContent).h2r = function () {
|
|
337
|
+
return this.b3z_1;
|
|
338
338
|
};
|
|
339
|
-
protoOf(LoggedContent).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(LoggedContent).j2r = function () {
|
|
340
|
+
return this.c3z_1;
|
|
341
341
|
};
|
|
342
|
-
protoOf(LoggedContent).
|
|
343
|
-
return this.
|
|
342
|
+
protoOf(LoggedContent).i2r = function () {
|
|
343
|
+
return this.d3z_1;
|
|
344
344
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(LoggedContent).d2m = function () {
|
|
346
|
+
return this.e3z_1;
|
|
347
347
|
};
|
|
348
|
-
protoOf(LoggedContent).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(LoggedContent).n2r = function () {
|
|
349
|
+
return this.a3z_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).t3x = function (message) {
|
|
363
363
|
println('HttpClient: ' + message);
|
|
364
364
|
};
|
|
365
365
|
function get_ClientCallLogger() {
|
|
@@ -375,60 +375,60 @@
|
|
|
375
375
|
function Config() {
|
|
376
376
|
var tmp = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp.
|
|
378
|
+
tmp.f3z_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.g3z_1 = ArrayList_init_$Create$();
|
|
382
|
+
this.h3z_1 = null;
|
|
383
|
+
this.i3z_1 = LogLevel_HEADERS_getInstance();
|
|
384
384
|
}
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(Config).j3z = function (value) {
|
|
386
|
+
this.h3z_1 = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Config).
|
|
389
|
-
var tmp0_elvis_lhs = this.
|
|
388
|
+
protoOf(Config).k3z = function () {
|
|
389
|
+
var tmp0_elvis_lhs = this.h3z_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().k2y_1;
|
|
394
|
+
client.u2v_1.j2f(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
395
395
|
}
|
|
396
396
|
function logRequest($this, request, $completion) {
|
|
397
|
-
var tmp = request.
|
|
397
|
+
var tmp = request.v2x_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.l3z_1);
|
|
400
|
+
request.x2x_1.z27(get_ClientCallLogger(), logger);
|
|
401
401
|
// Inline function 'kotlin.text.buildString' call
|
|
402
402
|
// Inline function 'kotlin.apply' call
|
|
403
403
|
var this_0 = StringBuilder_init_$Create$();
|
|
404
|
-
if ($this.
|
|
404
|
+
if ($this.m3z_1.v3y_1) {
|
|
405
405
|
// Inline function 'kotlin.text.appendLine' call
|
|
406
|
-
var value = 'REQUEST: ' + Url(request.
|
|
406
|
+
var value = 'REQUEST: ' + Url(request.s2x_1).toString();
|
|
407
407
|
// Inline function 'kotlin.text.appendLine' call
|
|
408
|
-
this_0.
|
|
408
|
+
this_0.w8(value).x8(_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.t2x_1.toString();
|
|
411
411
|
// Inline function 'kotlin.text.appendLine' call
|
|
412
|
-
this_0.
|
|
412
|
+
this_0.w8(value_0).x8(_Char___init__impl__6a9atx(10));
|
|
413
413
|
}
|
|
414
|
-
if ($this.
|
|
414
|
+
if ($this.m3z_1.w3y_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
|
-
this_0.
|
|
419
|
-
logHeaders(this_0, request.
|
|
418
|
+
this_0.w8(value_1).x8(_Char___init__impl__6a9atx(10));
|
|
419
|
+
logHeaders(this_0, request.u2x_1.c2c(), $this.o3z_1);
|
|
420
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
421
|
var value_2 = 'CONTENT HEADERS';
|
|
422
422
|
// Inline function 'kotlin.text.appendLine' call
|
|
423
|
-
this_0.
|
|
424
|
-
var tmp0 = $this.
|
|
423
|
+
this_0.w8(value_2).x8(_Char___init__impl__6a9atx(10));
|
|
424
|
+
var tmp0 = $this.o3z_1;
|
|
425
425
|
var tmp$ret$9;
|
|
426
426
|
$l$block: {
|
|
427
427
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
428
428
|
var _iterator__ex2g4s = tmp0.j();
|
|
429
429
|
while (_iterator__ex2g4s.k()) {
|
|
430
430
|
var element = _iterator__ex2g4s.l();
|
|
431
|
-
if (element.
|
|
431
|
+
if (element.q3z_1(HttpHeaders_getInstance().p2i_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.
|
|
440
|
-
var tmp0_0 = $this.
|
|
439
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p3z_1;
|
|
440
|
+
var tmp0_0 = $this.o3z_1;
|
|
441
441
|
var tmp$ret$11;
|
|
442
442
|
$l$block_0: {
|
|
443
443
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
444
444
|
var _iterator__ex2g4s_0 = tmp0_0.j();
|
|
445
445
|
while (_iterator__ex2g4s_0.k()) {
|
|
446
446
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
447
|
-
if (element_0.
|
|
447
|
+
if (element_0.q3z_1(HttpHeaders_getInstance().s2i_1)) {
|
|
448
448
|
tmp$ret$11 = element_0;
|
|
449
449
|
break $l$block_0;
|
|
450
450
|
}
|
|
@@ -452,39 +452,39 @@
|
|
|
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.p3z_1;
|
|
456
|
+
var tmp2_safe_receiver = content.j2r();
|
|
457
457
|
if (tmp2_safe_receiver == null)
|
|
458
458
|
null;
|
|
459
459
|
else {
|
|
460
460
|
// Inline function 'kotlin.let' call
|
|
461
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
461
|
+
var tmp_0 = HttpHeaders_getInstance().p2i_1;
|
|
462
462
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
463
463
|
}
|
|
464
|
-
var tmp3_safe_receiver = content.
|
|
464
|
+
var tmp3_safe_receiver = content.h2r();
|
|
465
465
|
if (tmp3_safe_receiver == null)
|
|
466
466
|
null;
|
|
467
467
|
else {
|
|
468
468
|
// Inline function 'kotlin.let' call
|
|
469
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
469
|
+
var tmp_1 = HttpHeaders_getInstance().s2i_1;
|
|
470
470
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
471
471
|
}
|
|
472
|
-
logHeaders(this_0, content.
|
|
472
|
+
logHeaders(this_0, content.d2m().c2c(), $this.o3z_1);
|
|
473
473
|
}
|
|
474
474
|
var message = this_0.toString();
|
|
475
475
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
476
476
|
if (charSequenceLength(message) > 0) {
|
|
477
|
-
logger.
|
|
477
|
+
logger.n3y(message);
|
|
478
478
|
}
|
|
479
479
|
var tmp_2;
|
|
480
480
|
// Inline function 'kotlin.text.isEmpty' call
|
|
481
481
|
if (charSequenceLength(message) === 0) {
|
|
482
482
|
tmp_2 = true;
|
|
483
483
|
} else {
|
|
484
|
-
tmp_2 = !$this.
|
|
484
|
+
tmp_2 = !$this.m3z_1.x3y_1;
|
|
485
485
|
}
|
|
486
486
|
if (tmp_2) {
|
|
487
|
-
logger.
|
|
487
|
+
logger.r3y();
|
|
488
488
|
return null;
|
|
489
489
|
}
|
|
490
490
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -492,62 +492,62 @@
|
|
|
492
492
|
function logRequestBody($this, content, logger, $completion) {
|
|
493
493
|
var requestLog = StringBuilder_init_$Create$();
|
|
494
494
|
// Inline function 'kotlin.text.appendLine' call
|
|
495
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
495
|
+
var value = 'BODY Content-Type: ' + toString_0(content.h2r());
|
|
496
496
|
// Inline function 'kotlin.text.appendLine' call
|
|
497
|
-
requestLog.
|
|
498
|
-
var tmp0_safe_receiver = content.
|
|
497
|
+
requestLog.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
498
|
+
var tmp0_safe_receiver = content.h2r();
|
|
499
499
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
500
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
500
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().d24_1 : tmp1_elvis_lhs;
|
|
501
501
|
var channel = ByteChannel();
|
|
502
502
|
var tmp = GlobalScope_instance;
|
|
503
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
503
|
+
var tmp_0 = Dispatchers_getInstance().q12_1;
|
|
504
504
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
505
|
-
tmp_1.
|
|
505
|
+
tmp_1.vr(Logging$logRequestBody$lambda(logger, requestLog));
|
|
506
506
|
return observe(content, channel, $completion);
|
|
507
507
|
}
|
|
508
508
|
function logRequestException($this, context, cause) {
|
|
509
|
-
if ($this.
|
|
510
|
-
$this.
|
|
509
|
+
if ($this.m3z_1.v3y_1) {
|
|
510
|
+
$this.l3z_1.t3x('REQUEST ' + Url(context.s2x_1).toString() + ' failed with exception: ' + cause.toString());
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
function setupResponseLogging($this, client) {
|
|
514
|
-
var tmp = Phases_getInstance_0().
|
|
515
|
-
client.
|
|
516
|
-
var tmp_0 = Phases_getInstance_1().
|
|
517
|
-
client.
|
|
518
|
-
if (!$this.
|
|
514
|
+
var tmp = Phases_getInstance_0().v34_1;
|
|
515
|
+
client.v2v_1.j2f(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
516
|
+
var tmp_0 = Phases_getInstance_1().q2y_1;
|
|
517
|
+
client.t2v_1.j2f(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
518
|
+
if (!$this.m3z_1.x3y_1)
|
|
519
519
|
return Unit_instance;
|
|
520
520
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
521
|
-
Plugin_getInstance().
|
|
521
|
+
Plugin_getInstance().x3m(new ResponseObserver(observer), client);
|
|
522
522
|
}
|
|
523
523
|
function logResponseException($this, log, request, cause) {
|
|
524
|
-
if (!$this.
|
|
524
|
+
if (!$this.m3z_1.v3y_1)
|
|
525
525
|
return Unit_instance;
|
|
526
|
-
log.
|
|
526
|
+
log.w8('RESPONSE ' + request.f30().toString() + ' failed with exception: ' + cause.toString());
|
|
527
527
|
}
|
|
528
528
|
function Companion_0() {
|
|
529
529
|
Companion_instance_0 = this;
|
|
530
|
-
this.
|
|
530
|
+
this.r3z_1 = new AttributeKey('ClientLogging');
|
|
531
531
|
}
|
|
532
532
|
protoOf(Companion_0).t = function () {
|
|
533
|
-
return this.
|
|
533
|
+
return this.r3z_1;
|
|
534
534
|
};
|
|
535
|
-
protoOf(Companion_0).
|
|
535
|
+
protoOf(Companion_0).s3z = function (block) {
|
|
536
536
|
// Inline function 'kotlin.apply' call
|
|
537
537
|
var this_0 = new Config();
|
|
538
538
|
block(this_0);
|
|
539
539
|
var config = this_0;
|
|
540
|
-
return new Logging(config.
|
|
540
|
+
return new Logging(config.k3z(), config.i3z_1, config.f3z_1, config.g3z_1);
|
|
541
541
|
};
|
|
542
|
-
protoOf(Companion_0).
|
|
543
|
-
return this.
|
|
542
|
+
protoOf(Companion_0).x2y = function (block) {
|
|
543
|
+
return this.s3z(block);
|
|
544
544
|
};
|
|
545
|
-
protoOf(Companion_0).
|
|
545
|
+
protoOf(Companion_0).t3z = function (plugin, scope) {
|
|
546
546
|
setupRequestLogging(plugin, scope);
|
|
547
547
|
setupResponseLogging(plugin, scope);
|
|
548
548
|
};
|
|
549
|
-
protoOf(Companion_0).
|
|
550
|
-
return this.
|
|
549
|
+
protoOf(Companion_0).y2y = function (plugin, scope) {
|
|
550
|
+
return this.t3z(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
551
551
|
};
|
|
552
552
|
var Companion_instance_0;
|
|
553
553
|
function Companion_getInstance_0() {
|
|
@@ -557,10 +557,10 @@
|
|
|
557
557
|
}
|
|
558
558
|
function shouldBeLogged($this, request) {
|
|
559
559
|
var tmp;
|
|
560
|
-
if ($this.
|
|
560
|
+
if ($this.n3z_1.p()) {
|
|
561
561
|
tmp = true;
|
|
562
562
|
} else {
|
|
563
|
-
var tmp0 = $this.
|
|
563
|
+
var tmp0 = $this.n3z_1;
|
|
564
564
|
var tmp$ret$0;
|
|
565
565
|
$l$block_0: {
|
|
566
566
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -589,69 +589,69 @@
|
|
|
589
589
|
return tmp;
|
|
590
590
|
}
|
|
591
591
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
592
|
-
this.
|
|
592
|
+
this.c40_1 = this$0;
|
|
593
593
|
CoroutineImpl.call(this, resultContinuation);
|
|
594
594
|
}
|
|
595
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
596
|
-
var tmp = this.
|
|
597
|
-
tmp.
|
|
598
|
-
tmp.
|
|
599
|
-
return tmp.
|
|
595
|
+
protoOf(Logging$setupRequestLogging$slambda).m2w = function ($this$intercept, it, $completion) {
|
|
596
|
+
var tmp = this.n2w($this$intercept, it, $completion);
|
|
597
|
+
tmp.n9_1 = Unit_instance;
|
|
598
|
+
tmp.o9_1 = null;
|
|
599
|
+
return tmp.t9();
|
|
600
600
|
};
|
|
601
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
601
|
+
protoOf(Logging$setupRequestLogging$slambda).ea = function (p1, p2, $completion) {
|
|
602
602
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
603
|
-
return this.
|
|
603
|
+
return this.m2w(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
604
604
|
};
|
|
605
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
606
|
-
var suspendResult = this.
|
|
605
|
+
protoOf(Logging$setupRequestLogging$slambda).t9 = function () {
|
|
606
|
+
var suspendResult = this.n9_1;
|
|
607
607
|
$sm: do
|
|
608
608
|
try {
|
|
609
|
-
var tmp = this.
|
|
609
|
+
var tmp = this.l9_1;
|
|
610
610
|
switch (tmp) {
|
|
611
611
|
case 0:
|
|
612
|
-
this.
|
|
613
|
-
if (!shouldBeLogged(this.
|
|
614
|
-
this.
|
|
612
|
+
this.m9_1 = 8;
|
|
613
|
+
if (!shouldBeLogged(this.c40_1, this.d40_1.f2f_1)) {
|
|
614
|
+
this.d40_1.f2f_1.x2x_1.z27(get_DisableLogging(), Unit_instance);
|
|
615
615
|
return Unit_instance;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
suspendResult = logRequest(this.
|
|
618
|
+
this.m9_1 = 2;
|
|
619
|
+
this.l9_1 = 1;
|
|
620
|
+
suspendResult = logRequest(this.c40_1, this.d40_1.f2f_1, this);
|
|
621
621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
622
|
return suspendResult;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 1:
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
627
|
+
this.f40_1 = suspendResult;
|
|
628
|
+
this.m9_1 = 8;
|
|
629
|
+
this.l9_1 = 3;
|
|
630
630
|
continue $sm;
|
|
631
631
|
case 2:
|
|
632
|
-
this.
|
|
633
|
-
var tmp_0 = this.
|
|
632
|
+
this.m9_1 = 8;
|
|
633
|
+
var tmp_0 = this.o9_1;
|
|
634
634
|
if (tmp_0 instanceof Error) {
|
|
635
|
-
this.
|
|
635
|
+
this.g40_1 = this.o9_1;
|
|
636
636
|
var tmp_1 = this;
|
|
637
|
-
tmp_1.
|
|
638
|
-
this.
|
|
637
|
+
tmp_1.f40_1 = null;
|
|
638
|
+
this.l9_1 = 3;
|
|
639
639
|
continue $sm;
|
|
640
640
|
} else {
|
|
641
|
-
throw this.
|
|
641
|
+
throw this.o9_1;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
case 3:
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
645
|
+
this.m9_1 = 8;
|
|
646
|
+
this.h40_1 = this.f40_1;
|
|
647
|
+
this.l9_1 = 4;
|
|
648
648
|
continue $sm;
|
|
649
649
|
case 4:
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
var tmp0_elvis_lhs = this.
|
|
654
|
-
suspendResult = this.
|
|
650
|
+
this.m9_1 = 7;
|
|
651
|
+
this.m9_1 = 6;
|
|
652
|
+
this.l9_1 = 5;
|
|
653
|
+
var tmp0_elvis_lhs = this.h40_1;
|
|
654
|
+
suspendResult = this.d40_1.j2e(tmp0_elvis_lhs == null ? this.d40_1.i2e() : tmp0_elvis_lhs, this);
|
|
655
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
656
656
|
return suspendResult;
|
|
657
657
|
}
|
|
@@ -659,89 +659,89 @@
|
|
|
659
659
|
continue $sm;
|
|
660
660
|
case 5:
|
|
661
661
|
var tmp_2 = this;
|
|
662
|
-
tmp_2.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
662
|
+
tmp_2.i40_1 = Unit_instance;
|
|
663
|
+
this.m9_1 = 8;
|
|
664
|
+
this.l9_1 = 9;
|
|
665
665
|
continue $sm;
|
|
666
666
|
case 6:
|
|
667
|
-
this.
|
|
668
|
-
var tmp_3 = this.
|
|
667
|
+
this.m9_1 = 7;
|
|
668
|
+
var tmp_3 = this.o9_1;
|
|
669
669
|
if (tmp_3 instanceof Error) {
|
|
670
|
-
var cause = this.
|
|
670
|
+
var cause = this.o9_1;
|
|
671
671
|
var tmp_4 = this;
|
|
672
|
-
logRequestException(this.
|
|
672
|
+
logRequestException(this.c40_1, this.d40_1.f2f_1, cause);
|
|
673
673
|
throw cause;
|
|
674
674
|
} else {
|
|
675
|
-
throw this.
|
|
675
|
+
throw this.o9_1;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
case 7:
|
|
679
|
-
this.
|
|
680
|
-
var t = this.
|
|
679
|
+
this.m9_1 = 8;
|
|
680
|
+
var t = this.o9_1;
|
|
681
681
|
throw t;
|
|
682
682
|
case 8:
|
|
683
|
-
throw this.
|
|
683
|
+
throw this.o9_1;
|
|
684
684
|
case 9:
|
|
685
|
-
this.
|
|
685
|
+
this.m9_1 = 8;
|
|
686
686
|
return Unit_instance;
|
|
687
687
|
}
|
|
688
688
|
} catch ($p) {
|
|
689
689
|
var e = $p;
|
|
690
|
-
if (this.
|
|
690
|
+
if (this.m9_1 === 8) {
|
|
691
691
|
throw e;
|
|
692
692
|
} else {
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
693
|
+
this.l9_1 = this.m9_1;
|
|
694
|
+
this.o9_1 = e;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
while (true);
|
|
698
698
|
};
|
|
699
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
700
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
701
|
-
i.
|
|
702
|
-
i.
|
|
699
|
+
protoOf(Logging$setupRequestLogging$slambda).n2w = function ($this$intercept, it, completion) {
|
|
700
|
+
var i = new Logging$setupRequestLogging$slambda(this.c40_1, completion);
|
|
701
|
+
i.d40_1 = $this$intercept;
|
|
702
|
+
i.e40_1 = it;
|
|
703
703
|
return i;
|
|
704
704
|
};
|
|
705
705
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
706
706
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
707
707
|
var l = function ($this$intercept, it, $completion) {
|
|
708
|
-
return i.
|
|
708
|
+
return i.m2w($this$intercept, it, $completion);
|
|
709
709
|
};
|
|
710
710
|
l.$arity = 2;
|
|
711
711
|
return l;
|
|
712
712
|
}
|
|
713
713
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
714
|
+
this.r40_1 = $channel;
|
|
715
|
+
this.s40_1 = $charset;
|
|
716
|
+
this.t40_1 = $requestLog;
|
|
717
717
|
CoroutineImpl.call(this, resultContinuation);
|
|
718
718
|
}
|
|
719
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
720
|
-
var tmp = this.
|
|
721
|
-
tmp.
|
|
722
|
-
tmp.
|
|
723
|
-
return tmp.
|
|
719
|
+
protoOf(Logging$logRequestBody$slambda).c1g = function ($this$launch, $completion) {
|
|
720
|
+
var tmp = this.d1g($this$launch, $completion);
|
|
721
|
+
tmp.n9_1 = Unit_instance;
|
|
722
|
+
tmp.o9_1 = null;
|
|
723
|
+
return tmp.t9();
|
|
724
724
|
};
|
|
725
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
726
|
-
return this.
|
|
725
|
+
protoOf(Logging$logRequestBody$slambda).da = function (p1, $completion) {
|
|
726
|
+
return this.c1g((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
727
727
|
};
|
|
728
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
729
|
-
var suspendResult = this.
|
|
728
|
+
protoOf(Logging$logRequestBody$slambda).t9 = function () {
|
|
729
|
+
var suspendResult = this.n9_1;
|
|
730
730
|
$sm: do
|
|
731
731
|
try {
|
|
732
|
-
var tmp = this.
|
|
732
|
+
var tmp = this.l9_1;
|
|
733
733
|
switch (tmp) {
|
|
734
734
|
case 0:
|
|
735
|
-
this.
|
|
735
|
+
this.m9_1 = 3;
|
|
736
736
|
var tmp_0 = this;
|
|
737
|
-
tmp_0.
|
|
737
|
+
tmp_0.v40_1 = this.r40_1;
|
|
738
738
|
var tmp_1 = this;
|
|
739
|
-
tmp_1.
|
|
740
|
-
this.
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
743
|
-
this.
|
|
744
|
-
suspendResult = this.
|
|
739
|
+
tmp_1.w40_1 = this.s40_1;
|
|
740
|
+
this.x40_1 = this.v40_1;
|
|
741
|
+
this.y40_1 = this.w40_1;
|
|
742
|
+
this.m9_1 = 2;
|
|
743
|
+
this.l9_1 = 1;
|
|
744
|
+
suspendResult = this.x40_1.o1z(VOID, this);
|
|
745
745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
746
746
|
return suspendResult;
|
|
747
747
|
}
|
|
@@ -749,102 +749,102 @@
|
|
|
749
749
|
continue $sm;
|
|
750
750
|
case 1:
|
|
751
751
|
var ARGUMENT = suspendResult;
|
|
752
|
-
this.
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
752
|
+
this.z40_1 = readText(ARGUMENT, this.y40_1);
|
|
753
|
+
this.m9_1 = 3;
|
|
754
|
+
this.l9_1 = 4;
|
|
755
755
|
continue $sm;
|
|
756
756
|
case 2:
|
|
757
|
-
this.
|
|
758
|
-
var tmp_2 = this.
|
|
757
|
+
this.m9_1 = 3;
|
|
758
|
+
var tmp_2 = this.o9_1;
|
|
759
759
|
if (tmp_2 instanceof Error) {
|
|
760
|
-
var cause = this.
|
|
760
|
+
var cause = this.o9_1;
|
|
761
761
|
var tmp_3 = this;
|
|
762
|
-
tmp_3.
|
|
763
|
-
this.
|
|
762
|
+
tmp_3.z40_1 = null;
|
|
763
|
+
this.l9_1 = 4;
|
|
764
764
|
continue $sm;
|
|
765
765
|
} else {
|
|
766
|
-
throw this.
|
|
766
|
+
throw this.o9_1;
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
case 3:
|
|
770
|
-
throw this.
|
|
770
|
+
throw this.o9_1;
|
|
771
771
|
case 4:
|
|
772
|
-
this.
|
|
773
|
-
var tmp0_elvis_lhs = this.
|
|
772
|
+
this.m9_1 = 3;
|
|
773
|
+
var tmp0_elvis_lhs = this.z40_1;
|
|
774
774
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
775
|
-
var tmp0 = this.
|
|
775
|
+
var tmp0 = this.t40_1;
|
|
776
776
|
var value = 'BODY START';
|
|
777
|
-
tmp0.
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
777
|
+
tmp0.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
778
|
+
this.t40_1.w8(text).x8(_Char___init__impl__6a9atx(10));
|
|
779
|
+
this.t40_1.w8('BODY END');
|
|
780
780
|
return Unit_instance;
|
|
781
781
|
}
|
|
782
782
|
} catch ($p) {
|
|
783
783
|
var e = $p;
|
|
784
|
-
if (this.
|
|
784
|
+
if (this.m9_1 === 3) {
|
|
785
785
|
throw e;
|
|
786
786
|
} else {
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
787
|
+
this.l9_1 = this.m9_1;
|
|
788
|
+
this.o9_1 = e;
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
while (true);
|
|
792
792
|
};
|
|
793
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
794
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
795
|
-
i.
|
|
793
|
+
protoOf(Logging$logRequestBody$slambda).d1g = function ($this$launch, completion) {
|
|
794
|
+
var i = new Logging$logRequestBody$slambda(this.r40_1, this.s40_1, this.t40_1, completion);
|
|
795
|
+
i.u40_1 = $this$launch;
|
|
796
796
|
return i;
|
|
797
797
|
};
|
|
798
798
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
799
799
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
800
800
|
var l = function ($this$launch, $completion) {
|
|
801
|
-
return i.
|
|
801
|
+
return i.c1g($this$launch, $completion);
|
|
802
802
|
};
|
|
803
803
|
l.$arity = 1;
|
|
804
804
|
return l;
|
|
805
805
|
}
|
|
806
806
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
807
807
|
return function (it) {
|
|
808
|
-
$logger.
|
|
809
|
-
$logger.
|
|
808
|
+
$logger.n3y($requestLog.toString());
|
|
809
|
+
$logger.r3y();
|
|
810
810
|
return Unit_instance;
|
|
811
811
|
};
|
|
812
812
|
}
|
|
813
813
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
814
|
-
this.
|
|
814
|
+
this.i41_1 = this$0;
|
|
815
815
|
CoroutineImpl.call(this, resultContinuation);
|
|
816
816
|
}
|
|
817
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
818
|
-
var tmp = this.
|
|
819
|
-
tmp.
|
|
820
|
-
tmp.
|
|
821
|
-
return tmp.
|
|
817
|
+
protoOf(Logging$setupResponseLogging$slambda).y35 = function ($this$intercept, response, $completion) {
|
|
818
|
+
var tmp = this.z35($this$intercept, response, $completion);
|
|
819
|
+
tmp.n9_1 = Unit_instance;
|
|
820
|
+
tmp.o9_1 = null;
|
|
821
|
+
return tmp.t9();
|
|
822
822
|
};
|
|
823
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
823
|
+
protoOf(Logging$setupResponseLogging$slambda).ea = function (p1, p2, $completion) {
|
|
824
824
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
825
|
-
return this.
|
|
825
|
+
return this.y35(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
826
826
|
};
|
|
827
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
828
|
-
var suspendResult = this.
|
|
827
|
+
protoOf(Logging$setupResponseLogging$slambda).t9 = function () {
|
|
828
|
+
var suspendResult = this.n9_1;
|
|
829
829
|
$sm: do
|
|
830
830
|
try {
|
|
831
|
-
var tmp = this.
|
|
831
|
+
var tmp = this.l9_1;
|
|
832
832
|
switch (tmp) {
|
|
833
833
|
case 0:
|
|
834
|
-
this.
|
|
835
|
-
if (this.
|
|
834
|
+
this.m9_1 = 10;
|
|
835
|
+
if (this.i41_1.m3z_1.equals(LogLevel_NONE_getInstance()) || this.k41_1.a31().h2z().y27(get_DisableLogging()))
|
|
836
836
|
return Unit_instance;
|
|
837
|
-
this.
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
837
|
+
this.l41_1 = this.k41_1.a31().h2z().w27(get_ClientCallLogger());
|
|
838
|
+
this.m41_1 = StringBuilder_init_$Create$();
|
|
839
|
+
this.n41_1 = false;
|
|
840
|
+
this.l9_1 = 1;
|
|
841
841
|
continue $sm;
|
|
842
842
|
case 1:
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
logResponseHeader(this.
|
|
846
|
-
this.
|
|
847
|
-
suspendResult = this.
|
|
843
|
+
this.m9_1 = 4;
|
|
844
|
+
this.m9_1 = 3;
|
|
845
|
+
logResponseHeader(this.m41_1, this.k41_1.a31().t2w(), this.i41_1.m3z_1, this.i41_1.o3z_1);
|
|
846
|
+
this.l9_1 = 2;
|
|
847
|
+
suspendResult = this.j41_1.j2e(this.j41_1.i2e(), this);
|
|
848
848
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
849
849
|
return suspendResult;
|
|
850
850
|
}
|
|
@@ -852,281 +852,281 @@
|
|
|
852
852
|
continue $sm;
|
|
853
853
|
case 2:
|
|
854
854
|
var tmp_0 = this;
|
|
855
|
-
tmp_0.
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
855
|
+
tmp_0.o41_1 = Unit_instance;
|
|
856
|
+
this.m9_1 = 10;
|
|
857
|
+
this.l9_1 = 7;
|
|
858
858
|
continue $sm;
|
|
859
859
|
case 3:
|
|
860
|
-
this.
|
|
861
|
-
var tmp_1 = this.
|
|
860
|
+
this.m9_1 = 4;
|
|
861
|
+
var tmp_1 = this.o9_1;
|
|
862
862
|
if (tmp_1 instanceof Error) {
|
|
863
|
-
this.
|
|
863
|
+
this.p41_1 = this.o9_1;
|
|
864
864
|
var tmp_2 = this;
|
|
865
|
-
logResponseException(this.
|
|
866
|
-
this.
|
|
867
|
-
throw this.
|
|
865
|
+
logResponseException(this.i41_1, this.m41_1, this.k41_1.a31().c30(), this.p41_1);
|
|
866
|
+
this.n41_1 = true;
|
|
867
|
+
throw this.p41_1;
|
|
868
868
|
} else {
|
|
869
|
-
throw this.
|
|
869
|
+
throw this.o9_1;
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
case 4:
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
876
|
-
if (this.
|
|
877
|
-
this.
|
|
878
|
-
suspendResult = this.
|
|
873
|
+
this.m9_1 = 10;
|
|
874
|
+
this.q41_1 = this.o9_1;
|
|
875
|
+
this.l41_1.o3y(this.m41_1.toString());
|
|
876
|
+
if (this.n41_1 || !this.i41_1.m3z_1.x3y_1) {
|
|
877
|
+
this.l9_1 = 5;
|
|
878
|
+
suspendResult = this.l41_1.s3y(this);
|
|
879
879
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
880
|
return suspendResult;
|
|
881
881
|
}
|
|
882
882
|
continue $sm;
|
|
883
883
|
} else {
|
|
884
|
-
this.
|
|
884
|
+
this.l9_1 = 6;
|
|
885
885
|
continue $sm;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
case 5:
|
|
889
|
-
this.
|
|
889
|
+
this.l9_1 = 6;
|
|
890
890
|
continue $sm;
|
|
891
891
|
case 6:
|
|
892
|
-
throw this.
|
|
892
|
+
throw this.q41_1;
|
|
893
893
|
case 7:
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
if (this.
|
|
897
|
-
this.
|
|
898
|
-
suspendResult = this.
|
|
894
|
+
this.m9_1 = 10;
|
|
895
|
+
this.l41_1.o3y(this.m41_1.toString());
|
|
896
|
+
if (this.n41_1 || !this.i41_1.m3z_1.x3y_1) {
|
|
897
|
+
this.l9_1 = 8;
|
|
898
|
+
suspendResult = this.l41_1.s3y(this);
|
|
899
899
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
900
900
|
return suspendResult;
|
|
901
901
|
}
|
|
902
902
|
continue $sm;
|
|
903
903
|
} else {
|
|
904
|
-
this.
|
|
904
|
+
this.l9_1 = 9;
|
|
905
905
|
continue $sm;
|
|
906
906
|
}
|
|
907
907
|
|
|
908
908
|
case 8:
|
|
909
|
-
this.
|
|
909
|
+
this.l9_1 = 9;
|
|
910
910
|
continue $sm;
|
|
911
911
|
case 9:
|
|
912
912
|
return Unit_instance;
|
|
913
913
|
case 10:
|
|
914
|
-
throw this.
|
|
914
|
+
throw this.o9_1;
|
|
915
915
|
}
|
|
916
916
|
} catch ($p) {
|
|
917
917
|
var e = $p;
|
|
918
|
-
if (this.
|
|
918
|
+
if (this.m9_1 === 10) {
|
|
919
919
|
throw e;
|
|
920
920
|
} else {
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
921
|
+
this.l9_1 = this.m9_1;
|
|
922
|
+
this.o9_1 = e;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
while (true);
|
|
926
926
|
};
|
|
927
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
928
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
929
|
-
i.
|
|
930
|
-
i.
|
|
927
|
+
protoOf(Logging$setupResponseLogging$slambda).z35 = function ($this$intercept, response, completion) {
|
|
928
|
+
var i = new Logging$setupResponseLogging$slambda(this.i41_1, completion);
|
|
929
|
+
i.j41_1 = $this$intercept;
|
|
930
|
+
i.k41_1 = response;
|
|
931
931
|
return i;
|
|
932
932
|
};
|
|
933
933
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
934
934
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
935
935
|
var l = function ($this$intercept, response, $completion) {
|
|
936
|
-
return i.
|
|
936
|
+
return i.y35($this$intercept, response, $completion);
|
|
937
937
|
};
|
|
938
938
|
l.$arity = 2;
|
|
939
939
|
return l;
|
|
940
940
|
}
|
|
941
941
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
942
|
-
this.
|
|
942
|
+
this.z41_1 = this$0;
|
|
943
943
|
CoroutineImpl.call(this, resultContinuation);
|
|
944
944
|
}
|
|
945
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
946
|
-
var tmp = this.
|
|
947
|
-
tmp.
|
|
948
|
-
tmp.
|
|
949
|
-
return tmp.
|
|
945
|
+
protoOf(Logging$setupResponseLogging$slambda_1).g2x = function ($this$intercept, it, $completion) {
|
|
946
|
+
var tmp = this.h2x($this$intercept, it, $completion);
|
|
947
|
+
tmp.n9_1 = Unit_instance;
|
|
948
|
+
tmp.o9_1 = null;
|
|
949
|
+
return tmp.t9();
|
|
950
950
|
};
|
|
951
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
951
|
+
protoOf(Logging$setupResponseLogging$slambda_1).ea = function (p1, p2, $completion) {
|
|
952
952
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
953
|
-
return this.
|
|
953
|
+
return this.g2x(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
954
954
|
};
|
|
955
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
956
|
-
var suspendResult = this.
|
|
955
|
+
protoOf(Logging$setupResponseLogging$slambda_1).t9 = function () {
|
|
956
|
+
var suspendResult = this.n9_1;
|
|
957
957
|
$sm: do
|
|
958
958
|
try {
|
|
959
|
-
var tmp = this.
|
|
959
|
+
var tmp = this.l9_1;
|
|
960
960
|
switch (tmp) {
|
|
961
961
|
case 0:
|
|
962
|
-
this.
|
|
963
|
-
if (this.
|
|
962
|
+
this.m9_1 = 6;
|
|
963
|
+
if (this.z41_1.m3z_1.equals(LogLevel_NONE_getInstance()) || this.a42_1.f2f_1.h2z().y27(get_DisableLogging())) {
|
|
964
964
|
return Unit_instance;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
969
|
-
suspendResult = this.
|
|
967
|
+
this.m9_1 = 3;
|
|
968
|
+
this.l9_1 = 1;
|
|
969
|
+
suspendResult = this.a42_1.k2e(this);
|
|
970
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
971
|
return suspendResult;
|
|
972
972
|
}
|
|
973
973
|
|
|
974
974
|
continue $sm;
|
|
975
975
|
case 1:
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
976
|
+
this.m9_1 = 6;
|
|
977
|
+
this.l9_1 = 2;
|
|
978
978
|
continue $sm;
|
|
979
979
|
case 2:
|
|
980
|
-
this.
|
|
980
|
+
this.m9_1 = 6;
|
|
981
981
|
return Unit_instance;
|
|
982
982
|
case 3:
|
|
983
|
-
this.
|
|
984
|
-
var tmp_0 = this.
|
|
983
|
+
this.m9_1 = 6;
|
|
984
|
+
var tmp_0 = this.o9_1;
|
|
985
985
|
if (tmp_0 instanceof Error) {
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
989
|
-
logResponseException(this.
|
|
990
|
-
this.
|
|
991
|
-
suspendResult = this.
|
|
986
|
+
this.c42_1 = this.o9_1;
|
|
987
|
+
this.d42_1 = StringBuilder_init_$Create$();
|
|
988
|
+
this.e42_1 = this.a42_1.f2f_1.h2z().w27(get_ClientCallLogger());
|
|
989
|
+
logResponseException(this.z41_1, this.d42_1, this.a42_1.f2f_1.c30(), this.c42_1);
|
|
990
|
+
this.l9_1 = 4;
|
|
991
|
+
suspendResult = this.e42_1.p3y(this.d42_1.toString(), this);
|
|
992
992
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
993
993
|
return suspendResult;
|
|
994
994
|
}
|
|
995
995
|
continue $sm;
|
|
996
996
|
} else {
|
|
997
|
-
throw this.
|
|
997
|
+
throw this.o9_1;
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
case 4:
|
|
1001
|
-
this.
|
|
1002
|
-
suspendResult = this.
|
|
1001
|
+
this.l9_1 = 5;
|
|
1002
|
+
suspendResult = this.e42_1.s3y(this);
|
|
1003
1003
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1004
1004
|
return suspendResult;
|
|
1005
1005
|
}
|
|
1006
1006
|
|
|
1007
1007
|
continue $sm;
|
|
1008
1008
|
case 5:
|
|
1009
|
-
throw this.
|
|
1009
|
+
throw this.c42_1;
|
|
1010
1010
|
case 6:
|
|
1011
|
-
throw this.
|
|
1011
|
+
throw this.o9_1;
|
|
1012
1012
|
}
|
|
1013
1013
|
} catch ($p) {
|
|
1014
1014
|
var e = $p;
|
|
1015
|
-
if (this.
|
|
1015
|
+
if (this.m9_1 === 6) {
|
|
1016
1016
|
throw e;
|
|
1017
1017
|
} else {
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1018
|
+
this.l9_1 = this.m9_1;
|
|
1019
|
+
this.o9_1 = e;
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
while (true);
|
|
1023
1023
|
};
|
|
1024
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1025
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1026
|
-
i.
|
|
1027
|
-
i.
|
|
1024
|
+
protoOf(Logging$setupResponseLogging$slambda_1).h2x = function ($this$intercept, it, completion) {
|
|
1025
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.z41_1, completion);
|
|
1026
|
+
i.a42_1 = $this$intercept;
|
|
1027
|
+
i.b42_1 = it;
|
|
1028
1028
|
return i;
|
|
1029
1029
|
};
|
|
1030
1030
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1031
1031
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1032
1032
|
var l = function ($this$intercept, it, $completion) {
|
|
1033
|
-
return i.
|
|
1033
|
+
return i.g2x($this$intercept, it, $completion);
|
|
1034
1034
|
};
|
|
1035
1035
|
l.$arity = 2;
|
|
1036
1036
|
return l;
|
|
1037
1037
|
}
|
|
1038
1038
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1039
|
-
this.
|
|
1039
|
+
this.n42_1 = this$0;
|
|
1040
1040
|
CoroutineImpl.call(this, resultContinuation);
|
|
1041
1041
|
}
|
|
1042
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1043
|
-
var tmp = this.
|
|
1044
|
-
tmp.
|
|
1045
|
-
tmp.
|
|
1046
|
-
return tmp.
|
|
1042
|
+
protoOf(Logging$setupResponseLogging$slambda_3).q37 = function (it, $completion) {
|
|
1043
|
+
var tmp = this.r37(it, $completion);
|
|
1044
|
+
tmp.n9_1 = Unit_instance;
|
|
1045
|
+
tmp.o9_1 = null;
|
|
1046
|
+
return tmp.t9();
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1049
|
-
return this.
|
|
1048
|
+
protoOf(Logging$setupResponseLogging$slambda_3).da = function (p1, $completion) {
|
|
1049
|
+
return this.q37(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1050
1050
|
};
|
|
1051
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1052
|
-
var suspendResult = this.
|
|
1051
|
+
protoOf(Logging$setupResponseLogging$slambda_3).t9 = function () {
|
|
1052
|
+
var suspendResult = this.n9_1;
|
|
1053
1053
|
$sm: do
|
|
1054
1054
|
try {
|
|
1055
|
-
var tmp = this.
|
|
1055
|
+
var tmp = this.l9_1;
|
|
1056
1056
|
switch (tmp) {
|
|
1057
1057
|
case 0:
|
|
1058
|
-
this.
|
|
1059
|
-
if (this.
|
|
1058
|
+
this.m9_1 = 10;
|
|
1059
|
+
if (this.n42_1.m3z_1.equals(LogLevel_NONE_getInstance()) || this.o42_1.a31().h2z().y27(get_DisableLogging())) {
|
|
1060
1060
|
return Unit_instance;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1063
|
+
this.p42_1 = this.o42_1.a31().h2z().w27(get_ClientCallLogger());
|
|
1064
|
+
this.q42_1 = StringBuilder_init_$Create$();
|
|
1065
|
+
this.l9_1 = 1;
|
|
1066
1066
|
continue $sm;
|
|
1067
1067
|
case 1:
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1071
|
-
suspendResult = logResponseBody(this.
|
|
1068
|
+
this.m9_1 = 4;
|
|
1069
|
+
this.m9_1 = 3;
|
|
1070
|
+
this.l9_1 = 2;
|
|
1071
|
+
suspendResult = logResponseBody(this.q42_1, contentType(this.o42_1), this.o42_1.d30(), this);
|
|
1072
1072
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1073
1073
|
return suspendResult;
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
1076
|
continue $sm;
|
|
1077
1077
|
case 2:
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1078
|
+
this.r42_1 = suspendResult;
|
|
1079
|
+
this.m9_1 = 10;
|
|
1080
|
+
this.l9_1 = 7;
|
|
1081
1081
|
continue $sm;
|
|
1082
1082
|
case 3:
|
|
1083
|
-
this.
|
|
1084
|
-
var tmp_0 = this.
|
|
1083
|
+
this.m9_1 = 4;
|
|
1084
|
+
var tmp_0 = this.o9_1;
|
|
1085
1085
|
if (tmp_0 instanceof Error) {
|
|
1086
|
-
this.
|
|
1086
|
+
this.s42_1 = this.o9_1;
|
|
1087
1087
|
var tmp_1 = this;
|
|
1088
|
-
tmp_1.
|
|
1089
|
-
this.
|
|
1090
|
-
this.
|
|
1088
|
+
tmp_1.r42_1 = Unit_instance;
|
|
1089
|
+
this.m9_1 = 10;
|
|
1090
|
+
this.l9_1 = 7;
|
|
1091
1091
|
continue $sm;
|
|
1092
1092
|
} else {
|
|
1093
|
-
throw this.
|
|
1093
|
+
throw this.o9_1;
|
|
1094
1094
|
}
|
|
1095
1095
|
|
|
1096
1096
|
case 4:
|
|
1097
|
-
this.
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1100
|
-
var this_0 = this.
|
|
1101
|
-
suspendResult = this.
|
|
1097
|
+
this.m9_1 = 10;
|
|
1098
|
+
this.t42_1 = this.o9_1;
|
|
1099
|
+
this.l9_1 = 5;
|
|
1100
|
+
var this_0 = this.q42_1.toString();
|
|
1101
|
+
suspendResult = this.p42_1.q3y(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1102
1102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1103
1103
|
return suspendResult;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
1106
|
continue $sm;
|
|
1107
1107
|
case 5:
|
|
1108
|
-
this.
|
|
1109
|
-
suspendResult = this.
|
|
1108
|
+
this.l9_1 = 6;
|
|
1109
|
+
suspendResult = this.p42_1.s3y(this);
|
|
1110
1110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1111
1111
|
return suspendResult;
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
1114
|
continue $sm;
|
|
1115
1115
|
case 6:
|
|
1116
|
-
throw this.
|
|
1116
|
+
throw this.t42_1;
|
|
1117
1117
|
case 7:
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1120
|
-
var this_1 = this.
|
|
1121
|
-
suspendResult = this.
|
|
1118
|
+
this.m9_1 = 10;
|
|
1119
|
+
this.l9_1 = 8;
|
|
1120
|
+
var this_1 = this.q42_1.toString();
|
|
1121
|
+
suspendResult = this.p42_1.q3y(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1122
1122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1123
1123
|
return suspendResult;
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
1126
|
continue $sm;
|
|
1127
1127
|
case 8:
|
|
1128
|
-
this.
|
|
1129
|
-
suspendResult = this.
|
|
1128
|
+
this.l9_1 = 9;
|
|
1129
|
+
suspendResult = this.p42_1.s3y(this);
|
|
1130
1130
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1131
1131
|
return suspendResult;
|
|
1132
1132
|
}
|
|
@@ -1135,28 +1135,28 @@
|
|
|
1135
1135
|
case 9:
|
|
1136
1136
|
return Unit_instance;
|
|
1137
1137
|
case 10:
|
|
1138
|
-
throw this.
|
|
1138
|
+
throw this.o9_1;
|
|
1139
1139
|
}
|
|
1140
1140
|
} catch ($p) {
|
|
1141
1141
|
var e = $p;
|
|
1142
|
-
if (this.
|
|
1142
|
+
if (this.m9_1 === 10) {
|
|
1143
1143
|
throw e;
|
|
1144
1144
|
} else {
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1145
|
+
this.l9_1 = this.m9_1;
|
|
1146
|
+
this.o9_1 = e;
|
|
1147
1147
|
}
|
|
1148
1148
|
}
|
|
1149
1149
|
while (true);
|
|
1150
1150
|
};
|
|
1151
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1152
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1153
|
-
i.
|
|
1151
|
+
protoOf(Logging$setupResponseLogging$slambda_3).r37 = function (it, completion) {
|
|
1152
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.n42_1, completion);
|
|
1153
|
+
i.o42_1 = it;
|
|
1154
1154
|
return i;
|
|
1155
1155
|
};
|
|
1156
1156
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1157
1157
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1158
1158
|
var l = function (it, $completion) {
|
|
1159
|
-
return i.
|
|
1159
|
+
return i.q37(it, $completion);
|
|
1160
1160
|
};
|
|
1161
1161
|
l.$arity = 1;
|
|
1162
1162
|
return l;
|
|
@@ -1164,10 +1164,10 @@
|
|
|
1164
1164
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1165
1165
|
Companion_getInstance_0();
|
|
1166
1166
|
filters = filters === VOID ? emptyList() : filters;
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1167
|
+
this.l3z_1 = logger;
|
|
1168
|
+
this.m3z_1 = level;
|
|
1169
|
+
this.n3z_1 = filters;
|
|
1170
|
+
this.o3z_1 = sanitizedHeaders;
|
|
1171
1171
|
}
|
|
1172
1172
|
var properties_initialized_Logging_kt_588vu7;
|
|
1173
1173
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
var _iterator__ex2g4s_0 = sanitizedHeaders.j();
|
|
1199
1199
|
while (_iterator__ex2g4s_0.k()) {
|
|
1200
1200
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
1201
|
-
if (element_0.
|
|
1201
|
+
if (element_0.q3z_1(key)) {
|
|
1202
1202
|
tmp$ret$5 = element_0;
|
|
1203
1203
|
break $l$block;
|
|
1204
1204
|
}
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
tmp$ret$5 = null;
|
|
1207
1207
|
}
|
|
1208
1208
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1209
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1209
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p3z_1;
|
|
1210
1210
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
@@ -1214,56 +1214,56 @@
|
|
|
1214
1214
|
// Inline function 'kotlin.text.appendLine' call
|
|
1215
1215
|
var value_0 = '-> ' + key + ': ' + value;
|
|
1216
1216
|
// Inline function 'kotlin.text.appendLine' call
|
|
1217
|
-
_this__u8e3s4.f(value_0).
|
|
1217
|
+
_this__u8e3s4.f(value_0).x8(_Char___init__impl__6a9atx(10));
|
|
1218
1218
|
}
|
|
1219
1219
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1220
1220
|
// Inline function 'kotlin.with' call
|
|
1221
|
-
if (level.
|
|
1221
|
+
if (level.v3y_1) {
|
|
1222
1222
|
// Inline function 'kotlin.text.appendLine' call
|
|
1223
|
-
var value = 'RESPONSE: ' + response.
|
|
1223
|
+
var value = 'RESPONSE: ' + response.i2r().toString();
|
|
1224
1224
|
// Inline function 'kotlin.text.appendLine' call
|
|
1225
|
-
log.
|
|
1225
|
+
log.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
1226
1226
|
// Inline function 'kotlin.text.appendLine' call
|
|
1227
|
-
var value_0 = 'METHOD: ' + response.
|
|
1227
|
+
var value_0 = 'METHOD: ' + response.a31().c30().b31().toString();
|
|
1228
1228
|
// Inline function 'kotlin.text.appendLine' call
|
|
1229
|
-
log.
|
|
1229
|
+
log.w8(value_0).x8(_Char___init__impl__6a9atx(10));
|
|
1230
1230
|
// Inline function 'kotlin.text.appendLine' call
|
|
1231
|
-
var value_1 = 'FROM: ' + response.
|
|
1231
|
+
var value_1 = 'FROM: ' + response.a31().c30().f30().toString();
|
|
1232
1232
|
// Inline function 'kotlin.text.appendLine' call
|
|
1233
|
-
log.
|
|
1233
|
+
log.w8(value_1).x8(_Char___init__impl__6a9atx(10));
|
|
1234
1234
|
}
|
|
1235
|
-
if (level.
|
|
1235
|
+
if (level.w3y_1) {
|
|
1236
1236
|
// Inline function 'kotlin.text.appendLine' call
|
|
1237
1237
|
var value_2 = 'COMMON HEADERS';
|
|
1238
1238
|
// Inline function 'kotlin.text.appendLine' call
|
|
1239
|
-
log.
|
|
1240
|
-
logHeaders(log, response.
|
|
1239
|
+
log.w8(value_2).x8(_Char___init__impl__6a9atx(10));
|
|
1240
|
+
logHeaders(log, response.d2m().c2c(), sanitizedHeaders);
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
function logResponseBody(log, contentType, content, $completion) {
|
|
1244
1244
|
var tmp = new $logResponseBodyCOROUTINE$_0(log, contentType, content, $completion);
|
|
1245
|
-
tmp.
|
|
1246
|
-
tmp.
|
|
1247
|
-
return tmp.
|
|
1245
|
+
tmp.n9_1 = Unit_instance;
|
|
1246
|
+
tmp.o9_1 = null;
|
|
1247
|
+
return tmp.t9();
|
|
1248
1248
|
}
|
|
1249
1249
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1250
|
-
this.
|
|
1250
|
+
this.o43_1 = function_0;
|
|
1251
1251
|
}
|
|
1252
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1253
|
-
return this.
|
|
1252
|
+
protoOf(sam$kotlin_Comparator$0).bd = function (a, b) {
|
|
1253
|
+
return this.o43_1(a, b);
|
|
1254
1254
|
};
|
|
1255
1255
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1256
|
-
return this.
|
|
1256
|
+
return this.bd(a, b);
|
|
1257
1257
|
};
|
|
1258
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1259
|
-
return this.
|
|
1258
|
+
protoOf(sam$kotlin_Comparator$0).u3 = function () {
|
|
1259
|
+
return this.o43_1;
|
|
1260
1260
|
};
|
|
1261
1261
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1262
1262
|
var tmp;
|
|
1263
1263
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1264
1264
|
var tmp_0;
|
|
1265
1265
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1266
|
-
tmp_0 = equals(this.
|
|
1266
|
+
tmp_0 = equals(this.u3(), other.u3());
|
|
1267
1267
|
} else {
|
|
1268
1268
|
tmp_0 = false;
|
|
1269
1269
|
}
|
|
@@ -1274,7 +1274,7 @@
|
|
|
1274
1274
|
return tmp;
|
|
1275
1275
|
};
|
|
1276
1276
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1277
|
-
return hashCode(this.
|
|
1277
|
+
return hashCode(this.u3());
|
|
1278
1278
|
};
|
|
1279
1279
|
function logHeaders$lambda(a, b) {
|
|
1280
1280
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -1284,41 +1284,41 @@
|
|
|
1284
1284
|
}
|
|
1285
1285
|
function $logResponseBodyCOROUTINE$_0(log, contentType, content, resultContinuation) {
|
|
1286
1286
|
CoroutineImpl.call(this, resultContinuation);
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1287
|
+
this.c43_1 = log;
|
|
1288
|
+
this.d43_1 = contentType;
|
|
1289
|
+
this.e43_1 = content;
|
|
1290
1290
|
}
|
|
1291
|
-
protoOf($logResponseBodyCOROUTINE$_0).
|
|
1292
|
-
var suspendResult = this.
|
|
1291
|
+
protoOf($logResponseBodyCOROUTINE$_0).t9 = function () {
|
|
1292
|
+
var suspendResult = this.n9_1;
|
|
1293
1293
|
$sm: do
|
|
1294
1294
|
try {
|
|
1295
|
-
var tmp = this.
|
|
1295
|
+
var tmp = this.l9_1;
|
|
1296
1296
|
switch (tmp) {
|
|
1297
1297
|
case 0:
|
|
1298
|
-
this.
|
|
1298
|
+
this.m9_1 = 3;
|
|
1299
1299
|
var tmp_0 = this;
|
|
1300
|
-
tmp_0.
|
|
1301
|
-
this.
|
|
1300
|
+
tmp_0.f43_1 = this.c43_1;
|
|
1301
|
+
this.g43_1 = this.f43_1;
|
|
1302
1302
|
var tmp_1 = this;
|
|
1303
|
-
tmp_1.
|
|
1304
|
-
this.
|
|
1305
|
-
var tmp0 = this.
|
|
1306
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
1307
|
-
tmp0.
|
|
1308
|
-
var tmp0_0 = this.
|
|
1303
|
+
tmp_1.h43_1 = this.g43_1;
|
|
1304
|
+
this.i43_1 = this.h43_1;
|
|
1305
|
+
var tmp0 = this.i43_1;
|
|
1306
|
+
var value = 'BODY Content-Type: ' + toString_0(this.d43_1);
|
|
1307
|
+
tmp0.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
1308
|
+
var tmp0_0 = this.i43_1;
|
|
1309
1309
|
var value_0 = 'BODY START';
|
|
1310
|
-
tmp0_0.
|
|
1310
|
+
tmp0_0.w8(value_0).x8(_Char___init__impl__6a9atx(10));
|
|
1311
1311
|
var tmp_2 = this;
|
|
1312
|
-
tmp_2.
|
|
1312
|
+
tmp_2.j43_1 = this.e43_1;
|
|
1313
1313
|
var tmp_3 = this;
|
|
1314
|
-
var tmp0_safe_receiver = this.
|
|
1314
|
+
var tmp0_safe_receiver = this.d43_1;
|
|
1315
1315
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1316
|
-
tmp_3.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1321
|
-
suspendResult = this.
|
|
1316
|
+
tmp_3.k43_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().d24_1 : tmp1_elvis_lhs;
|
|
1317
|
+
this.l43_1 = this.j43_1;
|
|
1318
|
+
this.m43_1 = this.k43_1;
|
|
1319
|
+
this.m9_1 = 2;
|
|
1320
|
+
this.l9_1 = 1;
|
|
1321
|
+
suspendResult = this.l43_1.o1z(VOID, this);
|
|
1322
1322
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1323
1323
|
return suspendResult;
|
|
1324
1324
|
}
|
|
@@ -1326,78 +1326,78 @@
|
|
|
1326
1326
|
continue $sm;
|
|
1327
1327
|
case 1:
|
|
1328
1328
|
var ARGUMENT = suspendResult;
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1329
|
+
this.n43_1 = readText(ARGUMENT, this.m43_1);
|
|
1330
|
+
this.m9_1 = 3;
|
|
1331
|
+
this.l9_1 = 4;
|
|
1332
1332
|
continue $sm;
|
|
1333
1333
|
case 2:
|
|
1334
|
-
this.
|
|
1335
|
-
var tmp_4 = this.
|
|
1334
|
+
this.m9_1 = 3;
|
|
1335
|
+
var tmp_4 = this.o9_1;
|
|
1336
1336
|
if (tmp_4 instanceof Error) {
|
|
1337
|
-
var cause = this.
|
|
1337
|
+
var cause = this.o9_1;
|
|
1338
1338
|
var tmp_5 = this;
|
|
1339
|
-
tmp_5.
|
|
1340
|
-
this.
|
|
1339
|
+
tmp_5.n43_1 = null;
|
|
1340
|
+
this.l9_1 = 4;
|
|
1341
1341
|
continue $sm;
|
|
1342
1342
|
} else {
|
|
1343
|
-
throw this.
|
|
1343
|
+
throw this.o9_1;
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
1346
|
case 3:
|
|
1347
|
-
throw this.
|
|
1347
|
+
throw this.o9_1;
|
|
1348
1348
|
case 4:
|
|
1349
|
-
this.
|
|
1350
|
-
var tmp2_elvis_lhs = this.
|
|
1349
|
+
this.m9_1 = 3;
|
|
1350
|
+
var tmp2_elvis_lhs = this.n43_1;
|
|
1351
1351
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1352
|
+
this.i43_1.w8(message).x8(_Char___init__impl__6a9atx(10));
|
|
1353
|
+
this.i43_1.w8('BODY END');
|
|
1354
1354
|
return Unit_instance;
|
|
1355
1355
|
}
|
|
1356
1356
|
} catch ($p) {
|
|
1357
1357
|
var e = $p;
|
|
1358
|
-
if (this.
|
|
1358
|
+
if (this.m9_1 === 3) {
|
|
1359
1359
|
throw e;
|
|
1360
1360
|
} else {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1361
|
+
this.l9_1 = this.m9_1;
|
|
1362
|
+
this.o9_1 = e;
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
while (true);
|
|
1366
1366
|
};
|
|
1367
1367
|
function observe(_this__u8e3s4, log, $completion) {
|
|
1368
1368
|
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
1369
|
-
tmp.
|
|
1370
|
-
tmp.
|
|
1371
|
-
return tmp.
|
|
1369
|
+
tmp.n9_1 = Unit_instance;
|
|
1370
|
+
tmp.o9_1 = null;
|
|
1371
|
+
return tmp.t9();
|
|
1372
1372
|
}
|
|
1373
1373
|
function toReadChannel(_this__u8e3s4) {
|
|
1374
1374
|
var tmp = GlobalScope_instance;
|
|
1375
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1376
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1375
|
+
var tmp_0 = Dispatchers_getInstance().p12_1;
|
|
1376
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).g13();
|
|
1377
1377
|
}
|
|
1378
1378
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1379
|
-
this.
|
|
1379
|
+
this.j44_1 = $this_toReadChannel;
|
|
1380
1380
|
CoroutineImpl.call(this, resultContinuation);
|
|
1381
1381
|
}
|
|
1382
|
-
protoOf(toReadChannel$slambda).
|
|
1383
|
-
var tmp = this.
|
|
1384
|
-
tmp.
|
|
1385
|
-
tmp.
|
|
1386
|
-
return tmp.
|
|
1382
|
+
protoOf(toReadChannel$slambda).y31 = function ($this$writer, $completion) {
|
|
1383
|
+
var tmp = this.z31($this$writer, $completion);
|
|
1384
|
+
tmp.n9_1 = Unit_instance;
|
|
1385
|
+
tmp.o9_1 = null;
|
|
1386
|
+
return tmp.t9();
|
|
1387
1387
|
};
|
|
1388
|
-
protoOf(toReadChannel$slambda).
|
|
1389
|
-
return this.
|
|
1388
|
+
protoOf(toReadChannel$slambda).da = function (p1, $completion) {
|
|
1389
|
+
return this.y31((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1390
1390
|
};
|
|
1391
|
-
protoOf(toReadChannel$slambda).
|
|
1392
|
-
var suspendResult = this.
|
|
1391
|
+
protoOf(toReadChannel$slambda).t9 = function () {
|
|
1392
|
+
var suspendResult = this.n9_1;
|
|
1393
1393
|
$sm: do
|
|
1394
1394
|
try {
|
|
1395
|
-
var tmp = this.
|
|
1395
|
+
var tmp = this.l9_1;
|
|
1396
1396
|
switch (tmp) {
|
|
1397
1397
|
case 0:
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
suspendResult = this.
|
|
1398
|
+
this.m9_1 = 2;
|
|
1399
|
+
this.l9_1 = 1;
|
|
1400
|
+
suspendResult = this.j44_1.p2r(this.k44_1.g13(), this);
|
|
1401
1401
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1402
1402
|
return suspendResult;
|
|
1403
1403
|
}
|
|
@@ -1406,101 +1406,101 @@
|
|
|
1406
1406
|
case 1:
|
|
1407
1407
|
return Unit_instance;
|
|
1408
1408
|
case 2:
|
|
1409
|
-
throw this.
|
|
1409
|
+
throw this.o9_1;
|
|
1410
1410
|
}
|
|
1411
1411
|
} catch ($p) {
|
|
1412
1412
|
var e = $p;
|
|
1413
|
-
if (this.
|
|
1413
|
+
if (this.m9_1 === 2) {
|
|
1414
1414
|
throw e;
|
|
1415
1415
|
} else {
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1416
|
+
this.l9_1 = this.m9_1;
|
|
1417
|
+
this.o9_1 = e;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
while (true);
|
|
1421
1421
|
};
|
|
1422
|
-
protoOf(toReadChannel$slambda).
|
|
1423
|
-
var i = new toReadChannel$slambda(this.
|
|
1424
|
-
i.
|
|
1422
|
+
protoOf(toReadChannel$slambda).z31 = function ($this$writer, completion) {
|
|
1423
|
+
var i = new toReadChannel$slambda(this.j44_1, completion);
|
|
1424
|
+
i.k44_1 = $this$writer;
|
|
1425
1425
|
return i;
|
|
1426
1426
|
};
|
|
1427
1427
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1428
1428
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1429
1429
|
var l = function ($this$writer, $completion) {
|
|
1430
|
-
return i.
|
|
1430
|
+
return i.y31($this$writer, $completion);
|
|
1431
1431
|
};
|
|
1432
1432
|
l.$arity = 1;
|
|
1433
1433
|
return l;
|
|
1434
1434
|
}
|
|
1435
1435
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
1436
1436
|
CoroutineImpl.call(this, resultContinuation);
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1437
|
+
this.x43_1 = _this__u8e3s4;
|
|
1438
|
+
this.y43_1 = log;
|
|
1439
1439
|
}
|
|
1440
|
-
protoOf($observeCOROUTINE$).
|
|
1441
|
-
var suspendResult = this.
|
|
1440
|
+
protoOf($observeCOROUTINE$).t9 = function () {
|
|
1441
|
+
var suspendResult = this.n9_1;
|
|
1442
1442
|
$sm: do
|
|
1443
1443
|
try {
|
|
1444
|
-
var tmp = this.
|
|
1444
|
+
var tmp = this.l9_1;
|
|
1445
1445
|
switch (tmp) {
|
|
1446
1446
|
case 0:
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
var tmp_0 = this.
|
|
1447
|
+
this.m9_1 = 3;
|
|
1448
|
+
this.z43_1 = this.x43_1;
|
|
1449
|
+
var tmp_0 = this.z43_1;
|
|
1450
1450
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
1451
|
-
this.
|
|
1452
|
-
suspendResult = writeFully(this.
|
|
1451
|
+
this.l9_1 = 1;
|
|
1452
|
+
suspendResult = writeFully(this.y43_1, this.x43_1.k2r(), this);
|
|
1453
1453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1454
|
return suspendResult;
|
|
1455
1455
|
}
|
|
1456
1456
|
continue $sm;
|
|
1457
1457
|
} else {
|
|
1458
|
-
var tmp_1 = this.
|
|
1458
|
+
var tmp_1 = this.z43_1;
|
|
1459
1459
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
1460
1460
|
var tmp_2 = this;
|
|
1461
1461
|
var responseChannel = ByteChannel();
|
|
1462
|
-
var content = this.
|
|
1463
|
-
copyToBoth(content, this.
|
|
1464
|
-
tmp_2.
|
|
1465
|
-
this.
|
|
1462
|
+
var content = this.x43_1.n2r();
|
|
1463
|
+
copyToBoth(content, this.y43_1, responseChannel);
|
|
1464
|
+
tmp_2.a44_1 = new LoggedContent(this.x43_1, responseChannel);
|
|
1465
|
+
this.l9_1 = 2;
|
|
1466
1466
|
continue $sm;
|
|
1467
1467
|
} else {
|
|
1468
|
-
var tmp_3 = this.
|
|
1468
|
+
var tmp_3 = this.z43_1;
|
|
1469
1469
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
1470
1470
|
var tmp_4 = this;
|
|
1471
1471
|
var responseChannel_0 = ByteChannel();
|
|
1472
|
-
var content_0 = toReadChannel(this.
|
|
1473
|
-
copyToBoth(content_0, this.
|
|
1474
|
-
tmp_4.
|
|
1475
|
-
this.
|
|
1472
|
+
var content_0 = toReadChannel(this.x43_1);
|
|
1473
|
+
copyToBoth(content_0, this.y43_1, responseChannel_0);
|
|
1474
|
+
tmp_4.a44_1 = new LoggedContent(this.x43_1, responseChannel_0);
|
|
1475
|
+
this.l9_1 = 2;
|
|
1476
1476
|
continue $sm;
|
|
1477
1477
|
} else {
|
|
1478
1478
|
var tmp_5 = this;
|
|
1479
|
-
close(this.
|
|
1480
|
-
tmp_5.
|
|
1481
|
-
this.
|
|
1479
|
+
close(this.y43_1);
|
|
1480
|
+
tmp_5.a44_1 = this.x43_1;
|
|
1481
|
+
this.l9_1 = 2;
|
|
1482
1482
|
continue $sm;
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
|
|
1487
1487
|
case 1:
|
|
1488
|
-
close(this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1488
|
+
close(this.y43_1);
|
|
1489
|
+
this.a44_1 = this.x43_1;
|
|
1490
|
+
this.l9_1 = 2;
|
|
1491
1491
|
continue $sm;
|
|
1492
1492
|
case 2:
|
|
1493
|
-
return this.
|
|
1493
|
+
return this.a44_1;
|
|
1494
1494
|
case 3:
|
|
1495
|
-
throw this.
|
|
1495
|
+
throw this.o9_1;
|
|
1496
1496
|
}
|
|
1497
1497
|
} catch ($p) {
|
|
1498
1498
|
var e = $p;
|
|
1499
|
-
if (this.
|
|
1499
|
+
if (this.m9_1 === 3) {
|
|
1500
1500
|
throw e;
|
|
1501
1501
|
} else {
|
|
1502
|
-
this.
|
|
1503
|
-
this.
|
|
1502
|
+
this.l9_1 = this.m9_1;
|
|
1503
|
+
this.o9_1 = e;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
1506
|
while (true);
|