@doordeck/doordeck-headless-sdk 0.67.0 → 0.69.0
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/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1172 -1172
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -6
- package/kotlin/doordeck-sdk.js +7595 -11752
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1058 -1058
- package/kotlin/ktor-ktor-client-ktor-client-core.js +825 -813
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +203 -203
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +119 -119
- package/kotlin/ktor-ktor-http.js +6 -11
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +5 -5
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +104 -104
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +1 -1
- package/package.json +1 -1
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.y;
|
|
102
102
|
var ParametersBuilder = kotlin_io_ktor_ktor_http.$_$.x;
|
|
103
103
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.v;
|
|
104
|
-
var takeFrom = kotlin_io_ktor_ktor_http.$_$.
|
|
104
|
+
var takeFrom = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
105
105
|
var first = kotlin_kotlin.$_$.y6;
|
|
106
106
|
var checkBuilderCapacity = kotlin_kotlin.$_$.z5;
|
|
107
107
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
@@ -139,13 +139,13 @@
|
|
|
139
139
|
var Comparator = kotlin_kotlin.$_$.je;
|
|
140
140
|
var hashCode = kotlin_kotlin.$_$.ia;
|
|
141
141
|
var charset = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
142
|
-
var withCharset = kotlin_io_ktor_ktor_http.$_$.
|
|
142
|
+
var withCharset = kotlin_io_ktor_ktor_http.$_$.q1;
|
|
143
143
|
var charset_0 = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
144
144
|
var readText_0 = kotlin_io_ktor_ktor_io.$_$.u;
|
|
145
145
|
var compareValues = kotlin_kotlin.$_$.t8;
|
|
146
146
|
var Companion_getInstance_1 = kotlin_io_ktor_ktor_http.$_$.h;
|
|
147
147
|
var get_authority = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
148
|
-
var takeFrom_0 = kotlin_io_ktor_ktor_http.$_$.
|
|
148
|
+
var takeFrom_0 = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
149
149
|
var isSecure = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
150
150
|
var get_authority_0 = kotlin_io_ktor_ktor_http.$_$.c1;
|
|
151
151
|
var EventDefinition = kotlin_io_ktor_ktor_events.$_$.a;
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
158
158
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
159
159
|
var delay = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
160
|
-
var isWebsocket = kotlin_io_ktor_ktor_http.$_$.
|
|
160
|
+
var isWebsocket = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
161
161
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
162
162
|
var createKTypeParameter = kotlin_kotlin.$_$.b;
|
|
163
163
|
var NullBody = kotlin_io_ktor_ktor_http.$_$.m;
|
|
@@ -363,14 +363,14 @@
|
|
|
363
363
|
initMetadataForObject(Phases_0, 'Phases');
|
|
364
364
|
initMetadataForClass(HttpSendPipeline, 'HttpSendPipeline', HttpSendPipeline, Pipeline, VOID, [2]);
|
|
365
365
|
initMetadataForClass(DefaultHttpResponse, 'DefaultHttpResponse', VOID, HttpResponse);
|
|
366
|
-
initMetadataForCoroutine($bodyAsTextCOROUTINE$
|
|
366
|
+
initMetadataForCoroutine($bodyAsTextCOROUTINE$24, CoroutineImpl);
|
|
367
367
|
initMetadataForObject(Phases_1, 'Phases');
|
|
368
368
|
initMetadataForClass(HttpReceivePipeline, 'HttpReceivePipeline', HttpReceivePipeline, Pipeline, VOID, [2]);
|
|
369
369
|
initMetadataForObject(Phases_2, 'Phases');
|
|
370
370
|
initMetadataForClass(HttpResponsePipeline, 'HttpResponsePipeline', HttpResponsePipeline, Pipeline, VOID, [2]);
|
|
371
371
|
initMetadataForClass(HttpResponseContainer, 'HttpResponseContainer');
|
|
372
|
-
initMetadataForCoroutine($fetchResponseCOROUTINE$
|
|
373
|
-
initMetadataForCoroutine($cleanupCOROUTINE$
|
|
372
|
+
initMetadataForCoroutine($fetchResponseCOROUTINE$27, CoroutineImpl);
|
|
373
|
+
initMetadataForCoroutine($cleanupCOROUTINE$28, CoroutineImpl);
|
|
374
374
|
initMetadataForClass(HttpStatement, 'HttpStatement', VOID, VOID, VOID, [1, 0]);
|
|
375
375
|
initMetadataForLambda(observable$slambda, CoroutineImpl, VOID, [1]);
|
|
376
376
|
initMetadataForClass(HttpResponseReceiveFail, 'HttpResponseReceiveFail');
|
|
@@ -378,13 +378,13 @@
|
|
|
378
378
|
initMetadataForClass(JsClientEngineConfig, 'JsClientEngineConfig', JsClientEngineConfig, HttpClientEngineConfig);
|
|
379
379
|
initMetadataForObject(Js, 'Js');
|
|
380
380
|
initMetadataForClass(JsClientEngine$createWebSocket$headers_capturingHack$1);
|
|
381
|
-
initMetadataForCoroutine($executeCOROUTINE$
|
|
382
|
-
initMetadataForCoroutine($createWebSocketCOROUTINE$
|
|
383
|
-
initMetadataForCoroutine($executeWebSocketRequestCOROUTINE$
|
|
381
|
+
initMetadataForCoroutine($executeCOROUTINE$30, CoroutineImpl);
|
|
382
|
+
initMetadataForCoroutine($createWebSocketCOROUTINE$31, CoroutineImpl);
|
|
383
|
+
initMetadataForCoroutine($executeWebSocketRequestCOROUTINE$32, CoroutineImpl);
|
|
384
384
|
initMetadataForClass(JsClientEngine, 'JsClientEngine', VOID, HttpClientEngineBase, VOID, [1, 2]);
|
|
385
385
|
initMetadataForLambda(getBodyBytes$slambda, CoroutineImpl, VOID, [1]);
|
|
386
|
-
initMetadataForCoroutine($toRawCOROUTINE$
|
|
387
|
-
initMetadataForCoroutine($getBodyBytesCOROUTINE$
|
|
386
|
+
initMetadataForCoroutine($toRawCOROUTINE$33, CoroutineImpl);
|
|
387
|
+
initMetadataForCoroutine($getBodyBytesCOROUTINE$34, CoroutineImpl);
|
|
388
388
|
initMetadataForLambda(channelFromStream$slambda, CoroutineImpl, VOID, [1]);
|
|
389
389
|
initMetadataForLambda(JsWebSocketSession$slambda, CoroutineImpl, VOID, [1]);
|
|
390
390
|
initMetadataForClass(JsWebSocketSession, 'JsWebSocketSession', VOID, VOID, [CoroutineScope], [0, 1]);
|
|
@@ -3213,16 +3213,23 @@
|
|
|
3213
3213
|
tmp_0.a37_1 = ArrayList_init_$Create$();
|
|
3214
3214
|
this.b37_1 = true;
|
|
3215
3215
|
}
|
|
3216
|
+
protoOf(HttpCallValidatorConfig).b3a = function (block) {
|
|
3217
|
+
var tmp0 = this.a37_1;
|
|
3218
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
3219
|
+
var element = new RequestExceptionHandlerWrapper(block);
|
|
3220
|
+
tmp0.k(element);
|
|
3221
|
+
};
|
|
3216
3222
|
protoOf(HttpCallValidatorConfig).c37 = function (block) {
|
|
3217
3223
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3218
3224
|
this.z36_1.k(block);
|
|
3219
3225
|
};
|
|
3220
3226
|
function ExceptionHandlerWrapper() {
|
|
3221
3227
|
}
|
|
3222
|
-
function RequestExceptionHandlerWrapper() {
|
|
3228
|
+
function RequestExceptionHandlerWrapper(handler) {
|
|
3229
|
+
this.c3a_1 = handler;
|
|
3223
3230
|
}
|
|
3224
3231
|
function RequestError$install$slambda($handler, resultContinuation) {
|
|
3225
|
-
this.
|
|
3232
|
+
this.l3a_1 = $handler;
|
|
3226
3233
|
CoroutineImpl.call(this, resultContinuation);
|
|
3227
3234
|
}
|
|
3228
3235
|
protoOf(RequestError$install$slambda).o2u = function ($this$intercept, it, $completion) {
|
|
@@ -3245,14 +3252,14 @@
|
|
|
3245
3252
|
this.e9_1 = 5;
|
|
3246
3253
|
this.e9_1 = 2;
|
|
3247
3254
|
this.d9_1 = 1;
|
|
3248
|
-
suspendResult = this.
|
|
3255
|
+
suspendResult = this.m3a_1.l2b(this);
|
|
3249
3256
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3250
3257
|
return suspendResult;
|
|
3251
3258
|
}
|
|
3252
3259
|
|
|
3253
3260
|
continue $sm;
|
|
3254
3261
|
case 1:
|
|
3255
|
-
this.
|
|
3262
|
+
this.o3a_1 = suspendResult;
|
|
3256
3263
|
this.e9_1 = 5;
|
|
3257
3264
|
this.d9_1 = 4;
|
|
3258
3265
|
continue $sm;
|
|
@@ -3260,9 +3267,9 @@
|
|
|
3260
3267
|
this.e9_1 = 5;
|
|
3261
3268
|
var tmp_0 = this.g9_1;
|
|
3262
3269
|
if (tmp_0 instanceof Error) {
|
|
3263
|
-
this.
|
|
3270
|
+
this.p3a_1 = this.g9_1;
|
|
3264
3271
|
this.d9_1 = 3;
|
|
3265
|
-
suspendResult = this.
|
|
3272
|
+
suspendResult = this.l3a_1(HttpRequest(this.m3a_1.g2c_1), this.p3a_1, this);
|
|
3266
3273
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3267
3274
|
return suspendResult;
|
|
3268
3275
|
}
|
|
@@ -3276,7 +3283,7 @@
|
|
|
3276
3283
|
var tmp_1 = this;
|
|
3277
3284
|
if (!(error == null))
|
|
3278
3285
|
throw error;
|
|
3279
|
-
tmp_1.
|
|
3286
|
+
tmp_1.o3a_1 = Unit_instance;
|
|
3280
3287
|
this.d9_1 = 4;
|
|
3281
3288
|
continue $sm;
|
|
3282
3289
|
case 4:
|
|
@@ -3297,9 +3304,9 @@
|
|
|
3297
3304
|
while (true);
|
|
3298
3305
|
};
|
|
3299
3306
|
protoOf(RequestError$install$slambda).p2u = function ($this$intercept, it, completion) {
|
|
3300
|
-
var i = new RequestError$install$slambda(this.
|
|
3301
|
-
i.
|
|
3302
|
-
i.
|
|
3307
|
+
var i = new RequestError$install$slambda(this.l3a_1, completion);
|
|
3308
|
+
i.m3a_1 = $this$intercept;
|
|
3309
|
+
i.n3a_1 = it;
|
|
3303
3310
|
return i;
|
|
3304
3311
|
};
|
|
3305
3312
|
function RequestError$install$slambda_0($handler, resultContinuation) {
|
|
@@ -3312,19 +3319,19 @@
|
|
|
3312
3319
|
}
|
|
3313
3320
|
function RequestError() {
|
|
3314
3321
|
}
|
|
3315
|
-
protoOf(RequestError).
|
|
3322
|
+
protoOf(RequestError).q3a = function (client, handler) {
|
|
3316
3323
|
var tmp = Phases_getInstance().h33_1;
|
|
3317
3324
|
client.u2t_1.k2c(tmp, RequestError$install$slambda_0(handler, null));
|
|
3318
3325
|
};
|
|
3319
3326
|
protoOf(RequestError).m33 = function (client, handler) {
|
|
3320
|
-
return this.
|
|
3327
|
+
return this.q3a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
3321
3328
|
};
|
|
3322
3329
|
var RequestError_instance;
|
|
3323
3330
|
function RequestError_getInstance() {
|
|
3324
3331
|
return RequestError_instance;
|
|
3325
3332
|
}
|
|
3326
3333
|
function ReceiveError$install$slambda($handler, resultContinuation) {
|
|
3327
|
-
this.
|
|
3334
|
+
this.z3a_1 = $handler;
|
|
3328
3335
|
CoroutineImpl.call(this, resultContinuation);
|
|
3329
3336
|
}
|
|
3330
3337
|
protoOf(ReceiveError$install$slambda).j2v = function ($this$intercept, it, $completion) {
|
|
@@ -3347,14 +3354,14 @@
|
|
|
3347
3354
|
this.e9_1 = 5;
|
|
3348
3355
|
this.e9_1 = 2;
|
|
3349
3356
|
this.d9_1 = 1;
|
|
3350
|
-
suspendResult = this.
|
|
3357
|
+
suspendResult = this.a3b_1.l2b(this);
|
|
3351
3358
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3352
3359
|
return suspendResult;
|
|
3353
3360
|
}
|
|
3354
3361
|
|
|
3355
3362
|
continue $sm;
|
|
3356
3363
|
case 1:
|
|
3357
|
-
this.
|
|
3364
|
+
this.c3b_1 = suspendResult;
|
|
3358
3365
|
this.e9_1 = 5;
|
|
3359
3366
|
this.d9_1 = 4;
|
|
3360
3367
|
continue $sm;
|
|
@@ -3362,9 +3369,9 @@
|
|
|
3362
3369
|
this.e9_1 = 5;
|
|
3363
3370
|
var tmp_0 = this.g9_1;
|
|
3364
3371
|
if (tmp_0 instanceof Error) {
|
|
3365
|
-
this.
|
|
3372
|
+
this.d3b_1 = this.g9_1;
|
|
3366
3373
|
this.d9_1 = 3;
|
|
3367
|
-
suspendResult = this.
|
|
3374
|
+
suspendResult = this.z3a_1(this.a3b_1.g2c_1.e2y(), this.d3b_1, this);
|
|
3368
3375
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3369
3376
|
return suspendResult;
|
|
3370
3377
|
}
|
|
@@ -3378,7 +3385,7 @@
|
|
|
3378
3385
|
var tmp_1 = this;
|
|
3379
3386
|
if (!(error == null))
|
|
3380
3387
|
throw error;
|
|
3381
|
-
tmp_1.
|
|
3388
|
+
tmp_1.c3b_1 = Unit_instance;
|
|
3382
3389
|
this.d9_1 = 4;
|
|
3383
3390
|
continue $sm;
|
|
3384
3391
|
case 4:
|
|
@@ -3399,9 +3406,9 @@
|
|
|
3399
3406
|
while (true);
|
|
3400
3407
|
};
|
|
3401
3408
|
protoOf(ReceiveError$install$slambda).k2v = function ($this$intercept, it, completion) {
|
|
3402
|
-
var i = new ReceiveError$install$slambda(this.
|
|
3403
|
-
i.
|
|
3404
|
-
i.
|
|
3409
|
+
var i = new ReceiveError$install$slambda(this.z3a_1, completion);
|
|
3410
|
+
i.a3b_1 = $this$intercept;
|
|
3411
|
+
i.b3b_1 = it;
|
|
3405
3412
|
return i;
|
|
3406
3413
|
};
|
|
3407
3414
|
function ReceiveError$install$slambda_0($handler, resultContinuation) {
|
|
@@ -3414,13 +3421,13 @@
|
|
|
3414
3421
|
}
|
|
3415
3422
|
function ReceiveError() {
|
|
3416
3423
|
}
|
|
3417
|
-
protoOf(ReceiveError).
|
|
3424
|
+
protoOf(ReceiveError).q3a = function (client, handler) {
|
|
3418
3425
|
var BeforeReceive = new PipelinePhase('BeforeReceive');
|
|
3419
3426
|
client.v2t_1.j2c(Phases_getInstance_2().t2w_1, BeforeReceive);
|
|
3420
3427
|
client.v2t_1.k2c(BeforeReceive, ReceiveError$install$slambda_0(handler, null));
|
|
3421
3428
|
};
|
|
3422
3429
|
protoOf(ReceiveError).m33 = function (client, handler) {
|
|
3423
|
-
return this.
|
|
3430
|
+
return this.q3a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
3424
3431
|
};
|
|
3425
3432
|
var ReceiveError_instance;
|
|
3426
3433
|
function ReceiveError_getInstance() {
|
|
@@ -3474,17 +3481,17 @@
|
|
|
3474
3481
|
};
|
|
3475
3482
|
}
|
|
3476
3483
|
function HttpCallValidator$lambda$slambda($expectSuccess, resultContinuation) {
|
|
3477
|
-
this.
|
|
3484
|
+
this.u3c_1 = $expectSuccess;
|
|
3478
3485
|
CoroutineImpl.call(this, resultContinuation);
|
|
3479
3486
|
}
|
|
3480
|
-
protoOf(HttpCallValidator$lambda$slambda).
|
|
3481
|
-
var tmp = this.
|
|
3487
|
+
protoOf(HttpCallValidator$lambda$slambda).w3c = function (request, $completion) {
|
|
3488
|
+
var tmp = this.x3c(request, $completion);
|
|
3482
3489
|
tmp.f9_1 = Unit_instance;
|
|
3483
3490
|
tmp.g9_1 = null;
|
|
3484
3491
|
return tmp.l9();
|
|
3485
3492
|
};
|
|
3486
3493
|
protoOf(HttpCallValidator$lambda$slambda).v9 = function (p1, $completion) {
|
|
3487
|
-
return this.
|
|
3494
|
+
return this.w3c(p1 instanceof HttpRequestBuilder ? p1 : THROW_CCE(), $completion);
|
|
3488
3495
|
};
|
|
3489
3496
|
protoOf(HttpCallValidator$lambda$slambda).l9 = function () {
|
|
3490
3497
|
var suspendResult = this.f9_1;
|
|
@@ -3494,7 +3501,7 @@
|
|
|
3494
3501
|
if (tmp === 0) {
|
|
3495
3502
|
this.e9_1 = 1;
|
|
3496
3503
|
var tmp_0 = get_ExpectSuccessAttributeKey();
|
|
3497
|
-
this.
|
|
3504
|
+
this.v3c_1.a2w_1.l27(tmp_0, HttpCallValidator$lambda$slambda$lambda(this.u3c_1));
|
|
3498
3505
|
return Unit_instance;
|
|
3499
3506
|
} else if (tmp === 1) {
|
|
3500
3507
|
throw this.g9_1;
|
|
@@ -3505,32 +3512,32 @@
|
|
|
3505
3512
|
}
|
|
3506
3513
|
while (true);
|
|
3507
3514
|
};
|
|
3508
|
-
protoOf(HttpCallValidator$lambda$slambda).
|
|
3509
|
-
var i = new HttpCallValidator$lambda$slambda(this.
|
|
3510
|
-
i.
|
|
3515
|
+
protoOf(HttpCallValidator$lambda$slambda).x3c = function (request, completion) {
|
|
3516
|
+
var i = new HttpCallValidator$lambda$slambda(this.u3c_1, completion);
|
|
3517
|
+
i.v3c_1 = request;
|
|
3511
3518
|
return i;
|
|
3512
3519
|
};
|
|
3513
3520
|
function HttpCallValidator$lambda$slambda_0($expectSuccess, resultContinuation) {
|
|
3514
3521
|
var i = new HttpCallValidator$lambda$slambda($expectSuccess, resultContinuation);
|
|
3515
3522
|
var l = function (request, $completion) {
|
|
3516
|
-
return i.
|
|
3523
|
+
return i.w3c(request, $completion);
|
|
3517
3524
|
};
|
|
3518
3525
|
l.$arity = 1;
|
|
3519
3526
|
return l;
|
|
3520
3527
|
}
|
|
3521
3528
|
function HttpCallValidator$lambda$slambda_1($responseValidators, resultContinuation) {
|
|
3522
|
-
this.
|
|
3529
|
+
this.g3d_1 = $responseValidators;
|
|
3523
3530
|
CoroutineImpl.call(this, resultContinuation);
|
|
3524
3531
|
}
|
|
3525
|
-
protoOf(HttpCallValidator$lambda$slambda_1).
|
|
3526
|
-
var tmp = this.
|
|
3532
|
+
protoOf(HttpCallValidator$lambda$slambda_1).k3d = function ($this$on, request, $completion) {
|
|
3533
|
+
var tmp = this.l3d($this$on, request, $completion);
|
|
3527
3534
|
tmp.f9_1 = Unit_instance;
|
|
3528
3535
|
tmp.g9_1 = null;
|
|
3529
3536
|
return tmp.l9();
|
|
3530
3537
|
};
|
|
3531
3538
|
protoOf(HttpCallValidator$lambda$slambda_1).w9 = function (p1, p2, $completion) {
|
|
3532
3539
|
var tmp = p1 instanceof Sender_0 ? p1 : THROW_CCE();
|
|
3533
|
-
return this.
|
|
3540
|
+
return this.k3d(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
3534
3541
|
};
|
|
3535
3542
|
protoOf(HttpCallValidator$lambda$slambda_1).l9 = function () {
|
|
3536
3543
|
var suspendResult = this.f9_1;
|
|
@@ -3541,23 +3548,23 @@
|
|
|
3541
3548
|
case 0:
|
|
3542
3549
|
this.e9_1 = 3;
|
|
3543
3550
|
this.d9_1 = 1;
|
|
3544
|
-
suspendResult = this.
|
|
3551
|
+
suspendResult = this.h3d_1.o3d(this.i3d_1, this);
|
|
3545
3552
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3546
3553
|
return suspendResult;
|
|
3547
3554
|
}
|
|
3548
3555
|
|
|
3549
3556
|
continue $sm;
|
|
3550
3557
|
case 1:
|
|
3551
|
-
this.
|
|
3558
|
+
this.j3d_1 = suspendResult;
|
|
3552
3559
|
this.d9_1 = 2;
|
|
3553
|
-
suspendResult = invoke$validateResponse(this.
|
|
3560
|
+
suspendResult = invoke$validateResponse(this.g3d_1, this.j3d_1.v2u(), this);
|
|
3554
3561
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3555
3562
|
return suspendResult;
|
|
3556
3563
|
}
|
|
3557
3564
|
|
|
3558
3565
|
continue $sm;
|
|
3559
3566
|
case 2:
|
|
3560
|
-
return this.
|
|
3567
|
+
return this.j3d_1;
|
|
3561
3568
|
case 3:
|
|
3562
3569
|
throw this.g9_1;
|
|
3563
3570
|
}
|
|
@@ -3572,33 +3579,33 @@
|
|
|
3572
3579
|
}
|
|
3573
3580
|
while (true);
|
|
3574
3581
|
};
|
|
3575
|
-
protoOf(HttpCallValidator$lambda$slambda_1).
|
|
3576
|
-
var i = new HttpCallValidator$lambda$slambda_1(this.
|
|
3577
|
-
i.
|
|
3578
|
-
i.
|
|
3582
|
+
protoOf(HttpCallValidator$lambda$slambda_1).l3d = function ($this$on, request, completion) {
|
|
3583
|
+
var i = new HttpCallValidator$lambda$slambda_1(this.g3d_1, completion);
|
|
3584
|
+
i.h3d_1 = $this$on;
|
|
3585
|
+
i.i3d_1 = request;
|
|
3579
3586
|
return i;
|
|
3580
3587
|
};
|
|
3581
3588
|
function HttpCallValidator$lambda$slambda_2($responseValidators, resultContinuation) {
|
|
3582
3589
|
var i = new HttpCallValidator$lambda$slambda_1($responseValidators, resultContinuation);
|
|
3583
3590
|
var l = function ($this$on, request, $completion) {
|
|
3584
|
-
return i.
|
|
3591
|
+
return i.k3d($this$on, request, $completion);
|
|
3585
3592
|
};
|
|
3586
3593
|
l.$arity = 2;
|
|
3587
3594
|
return l;
|
|
3588
3595
|
}
|
|
3589
3596
|
function HttpCallValidator$lambda$slambda_3($callExceptionHandlers, resultContinuation) {
|
|
3590
|
-
this.
|
|
3597
|
+
this.x3d_1 = $callExceptionHandlers;
|
|
3591
3598
|
CoroutineImpl.call(this, resultContinuation);
|
|
3592
3599
|
}
|
|
3593
|
-
protoOf(HttpCallValidator$lambda$slambda_3).
|
|
3594
|
-
var tmp = this.
|
|
3600
|
+
protoOf(HttpCallValidator$lambda$slambda_3).b3e = function (request, cause, $completion) {
|
|
3601
|
+
var tmp = this.c3e(request, cause, $completion);
|
|
3595
3602
|
tmp.f9_1 = Unit_instance;
|
|
3596
3603
|
tmp.g9_1 = null;
|
|
3597
3604
|
return tmp.l9();
|
|
3598
3605
|
};
|
|
3599
3606
|
protoOf(HttpCallValidator$lambda$slambda_3).w9 = function (p1, p2, $completion) {
|
|
3600
3607
|
var tmp = (!(p1 == null) ? isInterface(p1, HttpRequest_0) : false) ? p1 : THROW_CCE();
|
|
3601
|
-
return this.
|
|
3608
|
+
return this.b3e(tmp, p2 instanceof Error ? p2 : THROW_CCE(), $completion);
|
|
3602
3609
|
};
|
|
3603
3610
|
protoOf(HttpCallValidator$lambda$slambda_3).l9 = function () {
|
|
3604
3611
|
var suspendResult = this.f9_1;
|
|
@@ -3608,16 +3615,16 @@
|
|
|
3608
3615
|
switch (tmp) {
|
|
3609
3616
|
case 0:
|
|
3610
3617
|
this.e9_1 = 2;
|
|
3611
|
-
this.
|
|
3618
|
+
this.a3e_1 = unwrapCancellationException(this.z3d_1);
|
|
3612
3619
|
this.d9_1 = 1;
|
|
3613
|
-
suspendResult = invoke$processException(this.
|
|
3620
|
+
suspendResult = invoke$processException(this.x3d_1, this.a3e_1, this.y3d_1, this);
|
|
3614
3621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3615
3622
|
return suspendResult;
|
|
3616
3623
|
}
|
|
3617
3624
|
|
|
3618
3625
|
continue $sm;
|
|
3619
3626
|
case 1:
|
|
3620
|
-
return this.
|
|
3627
|
+
return this.a3e_1;
|
|
3621
3628
|
case 2:
|
|
3622
3629
|
throw this.g9_1;
|
|
3623
3630
|
}
|
|
@@ -3632,33 +3639,33 @@
|
|
|
3632
3639
|
}
|
|
3633
3640
|
while (true);
|
|
3634
3641
|
};
|
|
3635
|
-
protoOf(HttpCallValidator$lambda$slambda_3).
|
|
3636
|
-
var i = new HttpCallValidator$lambda$slambda_3(this.
|
|
3637
|
-
i.
|
|
3638
|
-
i.
|
|
3642
|
+
protoOf(HttpCallValidator$lambda$slambda_3).c3e = function (request, cause, completion) {
|
|
3643
|
+
var i = new HttpCallValidator$lambda$slambda_3(this.x3d_1, completion);
|
|
3644
|
+
i.y3d_1 = request;
|
|
3645
|
+
i.z3d_1 = cause;
|
|
3639
3646
|
return i;
|
|
3640
3647
|
};
|
|
3641
3648
|
function HttpCallValidator$lambda$slambda_4($callExceptionHandlers, resultContinuation) {
|
|
3642
3649
|
var i = new HttpCallValidator$lambda$slambda_3($callExceptionHandlers, resultContinuation);
|
|
3643
3650
|
var l = function (request, cause, $completion) {
|
|
3644
|
-
return i.
|
|
3651
|
+
return i.b3e(request, cause, $completion);
|
|
3645
3652
|
};
|
|
3646
3653
|
l.$arity = 2;
|
|
3647
3654
|
return l;
|
|
3648
3655
|
}
|
|
3649
3656
|
function HttpCallValidator$lambda$slambda_5($callExceptionHandlers, resultContinuation) {
|
|
3650
|
-
this.
|
|
3657
|
+
this.l3e_1 = $callExceptionHandlers;
|
|
3651
3658
|
CoroutineImpl.call(this, resultContinuation);
|
|
3652
3659
|
}
|
|
3653
|
-
protoOf(HttpCallValidator$lambda$slambda_5).
|
|
3654
|
-
var tmp = this.
|
|
3660
|
+
protoOf(HttpCallValidator$lambda$slambda_5).b3e = function (request, cause, $completion) {
|
|
3661
|
+
var tmp = this.c3e(request, cause, $completion);
|
|
3655
3662
|
tmp.f9_1 = Unit_instance;
|
|
3656
3663
|
tmp.g9_1 = null;
|
|
3657
3664
|
return tmp.l9();
|
|
3658
3665
|
};
|
|
3659
3666
|
protoOf(HttpCallValidator$lambda$slambda_5).w9 = function (p1, p2, $completion) {
|
|
3660
3667
|
var tmp = (!(p1 == null) ? isInterface(p1, HttpRequest_0) : false) ? p1 : THROW_CCE();
|
|
3661
|
-
return this.
|
|
3668
|
+
return this.b3e(tmp, p2 instanceof Error ? p2 : THROW_CCE(), $completion);
|
|
3662
3669
|
};
|
|
3663
3670
|
protoOf(HttpCallValidator$lambda$slambda_5).l9 = function () {
|
|
3664
3671
|
var suspendResult = this.f9_1;
|
|
@@ -3668,16 +3675,16 @@
|
|
|
3668
3675
|
switch (tmp) {
|
|
3669
3676
|
case 0:
|
|
3670
3677
|
this.e9_1 = 2;
|
|
3671
|
-
this.
|
|
3678
|
+
this.o3e_1 = unwrapCancellationException(this.n3e_1);
|
|
3672
3679
|
this.d9_1 = 1;
|
|
3673
|
-
suspendResult = invoke$processException(this.
|
|
3680
|
+
suspendResult = invoke$processException(this.l3e_1, this.o3e_1, this.m3e_1, this);
|
|
3674
3681
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3675
3682
|
return suspendResult;
|
|
3676
3683
|
}
|
|
3677
3684
|
|
|
3678
3685
|
continue $sm;
|
|
3679
3686
|
case 1:
|
|
3680
|
-
return this.
|
|
3687
|
+
return this.o3e_1;
|
|
3681
3688
|
case 2:
|
|
3682
3689
|
throw this.g9_1;
|
|
3683
3690
|
}
|
|
@@ -3692,24 +3699,24 @@
|
|
|
3692
3699
|
}
|
|
3693
3700
|
while (true);
|
|
3694
3701
|
};
|
|
3695
|
-
protoOf(HttpCallValidator$lambda$slambda_5).
|
|
3696
|
-
var i = new HttpCallValidator$lambda$slambda_5(this.
|
|
3697
|
-
i.
|
|
3698
|
-
i.
|
|
3702
|
+
protoOf(HttpCallValidator$lambda$slambda_5).c3e = function (request, cause, completion) {
|
|
3703
|
+
var i = new HttpCallValidator$lambda$slambda_5(this.l3e_1, completion);
|
|
3704
|
+
i.m3e_1 = request;
|
|
3705
|
+
i.n3e_1 = cause;
|
|
3699
3706
|
return i;
|
|
3700
3707
|
};
|
|
3701
3708
|
function HttpCallValidator$lambda$slambda_6($callExceptionHandlers, resultContinuation) {
|
|
3702
3709
|
var i = new HttpCallValidator$lambda$slambda_5($callExceptionHandlers, resultContinuation);
|
|
3703
3710
|
var l = function (request, cause, $completion) {
|
|
3704
|
-
return i.
|
|
3711
|
+
return i.b3e(request, cause, $completion);
|
|
3705
3712
|
};
|
|
3706
3713
|
l.$arity = 2;
|
|
3707
3714
|
return l;
|
|
3708
3715
|
}
|
|
3709
3716
|
function $invoke$validateResponseCOROUTINE$5(responseValidators, response, resultContinuation) {
|
|
3710
3717
|
CoroutineImpl.call(this, resultContinuation);
|
|
3711
|
-
this.
|
|
3712
|
-
this.
|
|
3718
|
+
this.m3b_1 = responseValidators;
|
|
3719
|
+
this.n3b_1 = response;
|
|
3713
3720
|
}
|
|
3714
3721
|
protoOf($invoke$validateResponseCOROUTINE$5).l9 = function () {
|
|
3715
3722
|
var suspendResult = this.f9_1;
|
|
@@ -3719,25 +3726,25 @@
|
|
|
3719
3726
|
switch (tmp) {
|
|
3720
3727
|
case 0:
|
|
3721
3728
|
this.e9_1 = 4;
|
|
3722
|
-
get_LOGGER_2().k2d('Validating response for request ' + this.
|
|
3729
|
+
get_LOGGER_2().k2d('Validating response for request ' + this.n3b_1.e2z().e2y().h2y().toString());
|
|
3723
3730
|
var tmp_0 = this;
|
|
3724
|
-
tmp_0.
|
|
3725
|
-
this.
|
|
3726
|
-
this.
|
|
3731
|
+
tmp_0.o3b_1 = this.m3b_1;
|
|
3732
|
+
this.p3b_1 = this.o3b_1;
|
|
3733
|
+
this.q3b_1 = this.p3b_1.p();
|
|
3727
3734
|
this.d9_1 = 1;
|
|
3728
3735
|
continue $sm;
|
|
3729
3736
|
case 1:
|
|
3730
|
-
if (!this.
|
|
3737
|
+
if (!this.q3b_1.q()) {
|
|
3731
3738
|
this.d9_1 = 3;
|
|
3732
3739
|
continue $sm;
|
|
3733
3740
|
}
|
|
3734
3741
|
|
|
3735
|
-
this.
|
|
3742
|
+
this.r3b_1 = this.q3b_1.r();
|
|
3736
3743
|
var tmp_1 = this;
|
|
3737
|
-
tmp_1.
|
|
3738
|
-
this.
|
|
3744
|
+
tmp_1.s3b_1 = this.r3b_1;
|
|
3745
|
+
this.t3b_1 = this.s3b_1;
|
|
3739
3746
|
this.d9_1 = 2;
|
|
3740
|
-
suspendResult = this.
|
|
3747
|
+
suspendResult = this.t3b_1(this.n3b_1, this);
|
|
3741
3748
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3742
3749
|
return suspendResult;
|
|
3743
3750
|
}
|
|
@@ -3764,9 +3771,9 @@
|
|
|
3764
3771
|
};
|
|
3765
3772
|
function $invoke$processExceptionCOROUTINE$6(callExceptionHandlers, cause, request, resultContinuation) {
|
|
3766
3773
|
CoroutineImpl.call(this, resultContinuation);
|
|
3767
|
-
this.
|
|
3768
|
-
this.
|
|
3769
|
-
this.
|
|
3774
|
+
this.c3c_1 = callExceptionHandlers;
|
|
3775
|
+
this.d3c_1 = cause;
|
|
3776
|
+
this.e3c_1 = request;
|
|
3770
3777
|
}
|
|
3771
3778
|
protoOf($invoke$processExceptionCOROUTINE$6).l9 = function () {
|
|
3772
3779
|
var suspendResult = this.f9_1;
|
|
@@ -3776,37 +3783,37 @@
|
|
|
3776
3783
|
switch (tmp) {
|
|
3777
3784
|
case 0:
|
|
3778
3785
|
this.e9_1 = 6;
|
|
3779
|
-
get_LOGGER_2().k2d('Processing exception ' + this.
|
|
3786
|
+
get_LOGGER_2().k2d('Processing exception ' + this.d3c_1.toString() + ' for request ' + this.e3c_1.h2y().toString());
|
|
3780
3787
|
var tmp_0 = this;
|
|
3781
|
-
tmp_0.
|
|
3782
|
-
this.
|
|
3783
|
-
this.
|
|
3788
|
+
tmp_0.f3c_1 = this.c3c_1;
|
|
3789
|
+
this.g3c_1 = this.f3c_1;
|
|
3790
|
+
this.h3c_1 = this.g3c_1.p();
|
|
3784
3791
|
this.d9_1 = 1;
|
|
3785
3792
|
continue $sm;
|
|
3786
3793
|
case 1:
|
|
3787
|
-
if (!this.
|
|
3794
|
+
if (!this.h3c_1.q()) {
|
|
3788
3795
|
this.d9_1 = 5;
|
|
3789
3796
|
continue $sm;
|
|
3790
3797
|
}
|
|
3791
3798
|
|
|
3792
|
-
this.
|
|
3799
|
+
this.i3c_1 = this.h3c_1.r();
|
|
3793
3800
|
var tmp_1 = this;
|
|
3794
|
-
tmp_1.
|
|
3795
|
-
this.
|
|
3796
|
-
this.
|
|
3797
|
-
var tmp_2 = this.
|
|
3801
|
+
tmp_1.j3c_1 = this.i3c_1;
|
|
3802
|
+
this.k3c_1 = this.j3c_1;
|
|
3803
|
+
this.l3c_1 = this.k3c_1;
|
|
3804
|
+
var tmp_2 = this.l3c_1;
|
|
3798
3805
|
if (tmp_2 instanceof ExceptionHandlerWrapper) {
|
|
3799
3806
|
this.d9_1 = 3;
|
|
3800
|
-
suspendResult = this.
|
|
3807
|
+
suspendResult = this.k3c_1.p3e_1(this.d3c_1, this);
|
|
3801
3808
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3802
3809
|
return suspendResult;
|
|
3803
3810
|
}
|
|
3804
3811
|
continue $sm;
|
|
3805
3812
|
} else {
|
|
3806
|
-
var tmp_3 = this.
|
|
3813
|
+
var tmp_3 = this.l3c_1;
|
|
3807
3814
|
if (tmp_3 instanceof RequestExceptionHandlerWrapper) {
|
|
3808
3815
|
this.d9_1 = 2;
|
|
3809
|
-
suspendResult = this.
|
|
3816
|
+
suspendResult = this.k3c_1.c3a_1(this.d3c_1, this.e3c_1, this);
|
|
3810
3817
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3811
3818
|
return suspendResult;
|
|
3812
3819
|
}
|
|
@@ -3843,27 +3850,27 @@
|
|
|
3843
3850
|
while (true);
|
|
3844
3851
|
};
|
|
3845
3852
|
function HttpRequest$1($builder) {
|
|
3846
|
-
this.
|
|
3847
|
-
this.
|
|
3848
|
-
this.
|
|
3849
|
-
this.
|
|
3850
|
-
this.
|
|
3853
|
+
this.u3e_1 = $builder;
|
|
3854
|
+
this.q3e_1 = $builder.w2v_1;
|
|
3855
|
+
this.r3e_1 = $builder.v2v_1.k2f();
|
|
3856
|
+
this.s3e_1 = $builder.a2w_1;
|
|
3857
|
+
this.t3e_1 = $builder.x2v_1.k2f();
|
|
3851
3858
|
}
|
|
3852
3859
|
protoOf(HttpRequest$1).e2z = function () {
|
|
3853
3860
|
var message = 'Call is not initialized';
|
|
3854
3861
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
3855
3862
|
};
|
|
3856
3863
|
protoOf(HttpRequest$1).b2z = function () {
|
|
3857
|
-
return this.
|
|
3864
|
+
return this.q3e_1;
|
|
3858
3865
|
};
|
|
3859
3866
|
protoOf(HttpRequest$1).h2y = function () {
|
|
3860
|
-
return this.
|
|
3867
|
+
return this.r3e_1;
|
|
3861
3868
|
};
|
|
3862
3869
|
protoOf(HttpRequest$1).k2x = function () {
|
|
3863
|
-
return this.
|
|
3870
|
+
return this.s3e_1;
|
|
3864
3871
|
};
|
|
3865
3872
|
protoOf(HttpRequest$1).o2j = function () {
|
|
3866
|
-
return this.
|
|
3873
|
+
return this.t3e_1;
|
|
3867
3874
|
};
|
|
3868
3875
|
var properties_initialized_HttpCallValidator_kt_xrx49w;
|
|
3869
3876
|
function _init_properties_HttpCallValidator_kt__r6yh2y() {
|
|
@@ -3956,15 +3963,15 @@
|
|
|
3956
3963
|
function HttpPlainTextConfig() {
|
|
3957
3964
|
var tmp = this;
|
|
3958
3965
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
3959
|
-
tmp.
|
|
3966
|
+
tmp.v3e_1 = LinkedHashSet_init_$Create$();
|
|
3960
3967
|
var tmp_0 = this;
|
|
3961
3968
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
3962
|
-
tmp_0.
|
|
3963
|
-
this.
|
|
3964
|
-
this.
|
|
3969
|
+
tmp_0.w3e_1 = LinkedHashMap_init_$Create$();
|
|
3970
|
+
this.x3e_1 = null;
|
|
3971
|
+
this.y3e_1 = Charsets_getInstance().o1l_1;
|
|
3965
3972
|
}
|
|
3966
3973
|
function RenderRequestHook$install$slambda($handler, resultContinuation) {
|
|
3967
|
-
this.
|
|
3974
|
+
this.h3f_1 = $handler;
|
|
3968
3975
|
CoroutineImpl.call(this, resultContinuation);
|
|
3969
3976
|
}
|
|
3970
3977
|
protoOf(RenderRequestHook$install$slambda).o2u = function ($this$intercept, content, $completion) {
|
|
@@ -3986,17 +3993,17 @@
|
|
|
3986
3993
|
case 0:
|
|
3987
3994
|
this.e9_1 = 4;
|
|
3988
3995
|
this.d9_1 = 1;
|
|
3989
|
-
suspendResult = this.
|
|
3996
|
+
suspendResult = this.h3f_1(this.i3f_1.g2c_1, this.j3f_1, this);
|
|
3990
3997
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3991
3998
|
return suspendResult;
|
|
3992
3999
|
}
|
|
3993
4000
|
|
|
3994
4001
|
continue $sm;
|
|
3995
4002
|
case 1:
|
|
3996
|
-
this.
|
|
3997
|
-
if (!(this.
|
|
4003
|
+
this.k3f_1 = suspendResult;
|
|
4004
|
+
if (!(this.k3f_1 == null)) {
|
|
3998
4005
|
this.d9_1 = 2;
|
|
3999
|
-
suspendResult = this.
|
|
4006
|
+
suspendResult = this.i3f_1.k2b(this.k3f_1, this);
|
|
4000
4007
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4001
4008
|
return suspendResult;
|
|
4002
4009
|
}
|
|
@@ -4026,9 +4033,9 @@
|
|
|
4026
4033
|
while (true);
|
|
4027
4034
|
};
|
|
4028
4035
|
protoOf(RenderRequestHook$install$slambda).p2u = function ($this$intercept, content, completion) {
|
|
4029
|
-
var i = new RenderRequestHook$install$slambda(this.
|
|
4030
|
-
i.
|
|
4031
|
-
i.
|
|
4036
|
+
var i = new RenderRequestHook$install$slambda(this.h3f_1, completion);
|
|
4037
|
+
i.i3f_1 = $this$intercept;
|
|
4038
|
+
i.j3f_1 = content;
|
|
4032
4039
|
return i;
|
|
4033
4040
|
};
|
|
4034
4041
|
function RenderRequestHook$install$slambda_0($handler, resultContinuation) {
|
|
@@ -4041,12 +4048,12 @@
|
|
|
4041
4048
|
}
|
|
4042
4049
|
function RenderRequestHook() {
|
|
4043
4050
|
}
|
|
4044
|
-
protoOf(RenderRequestHook).
|
|
4051
|
+
protoOf(RenderRequestHook).l3f = function (client, handler) {
|
|
4045
4052
|
var tmp = Phases_getInstance().k33_1;
|
|
4046
4053
|
client.u2t_1.k2c(tmp, RenderRequestHook$install$slambda_0(handler, null));
|
|
4047
4054
|
};
|
|
4048
4055
|
protoOf(RenderRequestHook).m33 = function (client, handler) {
|
|
4049
|
-
return this.
|
|
4056
|
+
return this.l3f(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
4050
4057
|
};
|
|
4051
4058
|
var RenderRequestHook_instance;
|
|
4052
4059
|
function RenderRequestHook_getInstance() {
|
|
@@ -4062,21 +4069,21 @@
|
|
|
4062
4069
|
function HttpPlainText$lambda($this$createClientPlugin) {
|
|
4063
4070
|
_init_properties_HttpPlainText_kt__iy89z1();
|
|
4064
4071
|
// Inline function 'kotlin.collections.sortedByDescending' call
|
|
4065
|
-
var this_0 = toList($this$createClientPlugin.h34_1.
|
|
4072
|
+
var this_0 = toList($this$createClientPlugin.h34_1.w3e_1);
|
|
4066
4073
|
// Inline function 'kotlin.comparisons.compareByDescending' call
|
|
4067
4074
|
var tmp = HttpPlainText$lambda$lambda;
|
|
4068
4075
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
4069
4076
|
var withQuality = sortedWith(this_0, tmp$ret$0);
|
|
4070
|
-
var responseCharsetFallback = $this$createClientPlugin.h34_1.
|
|
4077
|
+
var responseCharsetFallback = $this$createClientPlugin.h34_1.y3e_1;
|
|
4071
4078
|
// Inline function 'kotlin.collections.filter' call
|
|
4072
|
-
var tmp0 = $this$createClientPlugin.h34_1.
|
|
4079
|
+
var tmp0 = $this$createClientPlugin.h34_1.v3e_1;
|
|
4073
4080
|
// Inline function 'kotlin.collections.filterTo' call
|
|
4074
4081
|
var destination = ArrayList_init_$Create$();
|
|
4075
4082
|
var _iterator__ex2g4s = tmp0.p();
|
|
4076
4083
|
while (_iterator__ex2g4s.q()) {
|
|
4077
4084
|
var element = _iterator__ex2g4s.r();
|
|
4078
4085
|
// Inline function 'io.ktor.client.plugins.HttpPlainText.<anonymous>.<anonymous>' call
|
|
4079
|
-
if (!$this$createClientPlugin.h34_1.
|
|
4086
|
+
if (!$this$createClientPlugin.h34_1.w3e_1.i2(element)) {
|
|
4080
4087
|
destination.k(element);
|
|
4081
4088
|
}
|
|
4082
4089
|
}
|
|
@@ -4125,7 +4132,7 @@
|
|
|
4125
4132
|
this_1.o8(get_name(responseCharsetFallback));
|
|
4126
4133
|
}
|
|
4127
4134
|
var acceptCharsetHeader = this_1.toString();
|
|
4128
|
-
var tmp0_elvis_lhs = $this$createClientPlugin.h34_1.
|
|
4135
|
+
var tmp0_elvis_lhs = $this$createClientPlugin.h34_1.x3e_1;
|
|
4129
4136
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? firstOrNull(withoutQuality) : tmp0_elvis_lhs;
|
|
4130
4137
|
var tmp_1;
|
|
4131
4138
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -4138,20 +4145,20 @@
|
|
|
4138
4145
|
var requestCharset = tmp3_elvis_lhs == null ? Charsets_getInstance().o1l_1 : tmp3_elvis_lhs;
|
|
4139
4146
|
var tmp_2 = RenderRequestHook_instance;
|
|
4140
4147
|
$this$createClientPlugin.k34(tmp_2, HttpPlainText$lambda$slambda_0(acceptCharsetHeader, requestCharset, null));
|
|
4141
|
-
$this$createClientPlugin.
|
|
4148
|
+
$this$createClientPlugin.m3f(HttpPlainText$lambda$slambda_2(responseCharsetFallback, null));
|
|
4142
4149
|
return Unit_instance;
|
|
4143
4150
|
}
|
|
4144
4151
|
function sam$kotlin_Comparator$0(function_0) {
|
|
4145
|
-
this.
|
|
4152
|
+
this.n3f_1 = function_0;
|
|
4146
4153
|
}
|
|
4147
4154
|
protoOf(sam$kotlin_Comparator$0).fe = function (a, b) {
|
|
4148
|
-
return this.
|
|
4155
|
+
return this.n3f_1(a, b);
|
|
4149
4156
|
};
|
|
4150
4157
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
4151
4158
|
return this.fe(a, b);
|
|
4152
4159
|
};
|
|
4153
4160
|
protoOf(sam$kotlin_Comparator$0).r3 = function () {
|
|
4154
|
-
return this.
|
|
4161
|
+
return this.n3f_1;
|
|
4155
4162
|
};
|
|
4156
4163
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
4157
4164
|
var tmp;
|
|
@@ -4209,19 +4216,19 @@
|
|
|
4209
4216
|
return compareValues(tmp, tmp$ret$1);
|
|
4210
4217
|
}
|
|
4211
4218
|
function HttpPlainText$lambda$slambda($acceptCharsetHeader, $requestCharset, resultContinuation) {
|
|
4212
|
-
this.
|
|
4213
|
-
this.
|
|
4219
|
+
this.w3f_1 = $acceptCharsetHeader;
|
|
4220
|
+
this.x3f_1 = $requestCharset;
|
|
4214
4221
|
CoroutineImpl.call(this, resultContinuation);
|
|
4215
4222
|
}
|
|
4216
|
-
protoOf(HttpPlainText$lambda$slambda).
|
|
4217
|
-
var tmp = this.
|
|
4223
|
+
protoOf(HttpPlainText$lambda$slambda).a3g = function (request, content, $completion) {
|
|
4224
|
+
var tmp = this.b3g(request, content, $completion);
|
|
4218
4225
|
tmp.f9_1 = Unit_instance;
|
|
4219
4226
|
tmp.g9_1 = null;
|
|
4220
4227
|
return tmp.l9();
|
|
4221
4228
|
};
|
|
4222
4229
|
protoOf(HttpPlainText$lambda$slambda).w9 = function (p1, p2, $completion) {
|
|
4223
4230
|
var tmp = p1 instanceof HttpRequestBuilder ? p1 : THROW_CCE();
|
|
4224
|
-
return this.
|
|
4231
|
+
return this.a3g(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
4225
4232
|
};
|
|
4226
4233
|
protoOf(HttpPlainText$lambda$slambda).l9 = function () {
|
|
4227
4234
|
var suspendResult = this.f9_1;
|
|
@@ -4230,15 +4237,15 @@
|
|
|
4230
4237
|
var tmp = this.d9_1;
|
|
4231
4238
|
if (tmp === 0) {
|
|
4232
4239
|
this.e9_1 = 1;
|
|
4233
|
-
invoke$addCharsetHeaders(this.
|
|
4234
|
-
var tmp_0 = this.
|
|
4240
|
+
invoke$addCharsetHeaders(this.w3f_1, this.y3f_1);
|
|
4241
|
+
var tmp_0 = this.z3f_1;
|
|
4235
4242
|
if (!(typeof tmp_0 === 'string'))
|
|
4236
4243
|
return null;
|
|
4237
|
-
var contentType_0 = contentType(this.
|
|
4244
|
+
var contentType_0 = contentType(this.y3f_1);
|
|
4238
4245
|
if (!(contentType_0 == null) && !(contentType_0.b2f_1 === Text_getInstance().r2e_1.b2f_1)) {
|
|
4239
4246
|
return null;
|
|
4240
4247
|
}
|
|
4241
|
-
return invoke$wrapContent(this.
|
|
4248
|
+
return invoke$wrapContent(this.x3f_1, this.y3f_1, this.z3f_1, contentType_0);
|
|
4242
4249
|
} else if (tmp === 1) {
|
|
4243
4250
|
throw this.g9_1;
|
|
4244
4251
|
}
|
|
@@ -4248,35 +4255,35 @@
|
|
|
4248
4255
|
}
|
|
4249
4256
|
while (true);
|
|
4250
4257
|
};
|
|
4251
|
-
protoOf(HttpPlainText$lambda$slambda).
|
|
4252
|
-
var i = new HttpPlainText$lambda$slambda(this.
|
|
4253
|
-
i.
|
|
4254
|
-
i.
|
|
4258
|
+
protoOf(HttpPlainText$lambda$slambda).b3g = function (request, content, completion) {
|
|
4259
|
+
var i = new HttpPlainText$lambda$slambda(this.w3f_1, this.x3f_1, completion);
|
|
4260
|
+
i.y3f_1 = request;
|
|
4261
|
+
i.z3f_1 = content;
|
|
4255
4262
|
return i;
|
|
4256
4263
|
};
|
|
4257
4264
|
function HttpPlainText$lambda$slambda_0($acceptCharsetHeader, $requestCharset, resultContinuation) {
|
|
4258
4265
|
var i = new HttpPlainText$lambda$slambda($acceptCharsetHeader, $requestCharset, resultContinuation);
|
|
4259
4266
|
var l = function (request, content, $completion) {
|
|
4260
|
-
return i.
|
|
4267
|
+
return i.a3g(request, content, $completion);
|
|
4261
4268
|
};
|
|
4262
4269
|
l.$arity = 2;
|
|
4263
4270
|
return l;
|
|
4264
4271
|
}
|
|
4265
4272
|
function HttpPlainText$lambda$slambda_1($responseCharsetFallback, resultContinuation) {
|
|
4266
|
-
this.
|
|
4273
|
+
this.k3g_1 = $responseCharsetFallback;
|
|
4267
4274
|
CoroutineImpl.call(this, resultContinuation);
|
|
4268
4275
|
}
|
|
4269
|
-
protoOf(HttpPlainText$lambda$slambda_1).
|
|
4270
|
-
var tmp = this.
|
|
4276
|
+
protoOf(HttpPlainText$lambda$slambda_1).p3g = function ($this$transformResponseBody, response, content, requestedType, $completion) {
|
|
4277
|
+
var tmp = this.q3g($this$transformResponseBody, response, content, requestedType, $completion);
|
|
4271
4278
|
tmp.f9_1 = Unit_instance;
|
|
4272
4279
|
tmp.g9_1 = null;
|
|
4273
4280
|
return tmp.l9();
|
|
4274
4281
|
};
|
|
4275
|
-
protoOf(HttpPlainText$lambda$slambda_1).
|
|
4282
|
+
protoOf(HttpPlainText$lambda$slambda_1).r3g = function (p1, p2, p3, p4, $completion) {
|
|
4276
4283
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
4277
4284
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
4278
4285
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
4279
|
-
return this.
|
|
4286
|
+
return this.p3g(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
4280
4287
|
};
|
|
4281
4288
|
protoOf(HttpPlainText$lambda$slambda_1).l9 = function () {
|
|
4282
4289
|
var suspendResult = this.f9_1;
|
|
@@ -4286,10 +4293,10 @@
|
|
|
4286
4293
|
switch (tmp) {
|
|
4287
4294
|
case 0:
|
|
4288
4295
|
this.e9_1 = 2;
|
|
4289
|
-
if (!this.
|
|
4296
|
+
if (!this.o3g_1.y2c_1.equals(PrimitiveClasses_getInstance().jc()))
|
|
4290
4297
|
return null;
|
|
4291
4298
|
this.d9_1 = 1;
|
|
4292
|
-
suspendResult = readRemaining(this.
|
|
4299
|
+
suspendResult = readRemaining(this.n3g_1, this);
|
|
4293
4300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4294
4301
|
return suspendResult;
|
|
4295
4302
|
}
|
|
@@ -4297,7 +4304,7 @@
|
|
|
4297
4304
|
continue $sm;
|
|
4298
4305
|
case 1:
|
|
4299
4306
|
var bodyBytes = suspendResult;
|
|
4300
|
-
return invoke$read(this.
|
|
4307
|
+
return invoke$read(this.k3g_1, this.m3g_1.e2z(), bodyBytes);
|
|
4301
4308
|
case 2:
|
|
4302
4309
|
throw this.g9_1;
|
|
4303
4310
|
}
|
|
@@ -4312,18 +4319,18 @@
|
|
|
4312
4319
|
}
|
|
4313
4320
|
while (true);
|
|
4314
4321
|
};
|
|
4315
|
-
protoOf(HttpPlainText$lambda$slambda_1).
|
|
4316
|
-
var i = new HttpPlainText$lambda$slambda_1(this.
|
|
4317
|
-
i.
|
|
4318
|
-
i.
|
|
4319
|
-
i.
|
|
4320
|
-
i.
|
|
4322
|
+
protoOf(HttpPlainText$lambda$slambda_1).q3g = function ($this$transformResponseBody, response, content, requestedType, completion) {
|
|
4323
|
+
var i = new HttpPlainText$lambda$slambda_1(this.k3g_1, completion);
|
|
4324
|
+
i.l3g_1 = $this$transformResponseBody;
|
|
4325
|
+
i.m3g_1 = response;
|
|
4326
|
+
i.n3g_1 = content;
|
|
4327
|
+
i.o3g_1 = requestedType;
|
|
4321
4328
|
return i;
|
|
4322
4329
|
};
|
|
4323
4330
|
function HttpPlainText$lambda$slambda_2($responseCharsetFallback, resultContinuation) {
|
|
4324
4331
|
var i = new HttpPlainText$lambda$slambda_1($responseCharsetFallback, resultContinuation);
|
|
4325
4332
|
var l = function ($this$transformResponseBody, response, content, requestedType, $completion) {
|
|
4326
|
-
return i.
|
|
4333
|
+
return i.p3g($this$transformResponseBody, response, content, requestedType, $completion);
|
|
4327
4334
|
};
|
|
4328
4335
|
l.$arity = 4;
|
|
4329
4336
|
return l;
|
|
@@ -4358,8 +4365,8 @@
|
|
|
4358
4365
|
}
|
|
4359
4366
|
var HttpRedirect;
|
|
4360
4367
|
function HttpRedirectConfig() {
|
|
4361
|
-
this.
|
|
4362
|
-
this.
|
|
4368
|
+
this.s3g_1 = true;
|
|
4369
|
+
this.t3g_1 = false;
|
|
4363
4370
|
}
|
|
4364
4371
|
function isRedirect(_this__u8e3s4) {
|
|
4365
4372
|
_init_properties_HttpRedirect_kt__ure7fo();
|
|
@@ -4375,8 +4382,8 @@
|
|
|
4375
4382
|
}
|
|
4376
4383
|
function HttpRedirect$lambda($this$createClientPlugin) {
|
|
4377
4384
|
_init_properties_HttpRedirect_kt__ure7fo();
|
|
4378
|
-
var checkHttpMethod = $this$createClientPlugin.h34_1.
|
|
4379
|
-
var allowHttpsDowngrade = $this$createClientPlugin.h34_1.
|
|
4385
|
+
var checkHttpMethod = $this$createClientPlugin.h34_1.s3g_1;
|
|
4386
|
+
var allowHttpsDowngrade = $this$createClientPlugin.h34_1.t3g_1;
|
|
4380
4387
|
var tmp = Send_instance;
|
|
4381
4388
|
$this$createClientPlugin.k34(tmp, HttpRedirect$lambda$slambda_0(checkHttpMethod, allowHttpsDowngrade, $this$createClientPlugin, null));
|
|
4382
4389
|
return Unit_instance;
|
|
@@ -4388,20 +4395,20 @@
|
|
|
4388
4395
|
return tmp.l9();
|
|
4389
4396
|
}
|
|
4390
4397
|
function HttpRedirect$lambda$slambda($checkHttpMethod, $allowHttpsDowngrade, $this_createClientPlugin, resultContinuation) {
|
|
4391
|
-
this.
|
|
4392
|
-
this.
|
|
4393
|
-
this.
|
|
4398
|
+
this.u3h_1 = $checkHttpMethod;
|
|
4399
|
+
this.v3h_1 = $allowHttpsDowngrade;
|
|
4400
|
+
this.w3h_1 = $this_createClientPlugin;
|
|
4394
4401
|
CoroutineImpl.call(this, resultContinuation);
|
|
4395
4402
|
}
|
|
4396
|
-
protoOf(HttpRedirect$lambda$slambda).
|
|
4397
|
-
var tmp = this.
|
|
4403
|
+
protoOf(HttpRedirect$lambda$slambda).k3d = function ($this$on, request, $completion) {
|
|
4404
|
+
var tmp = this.l3d($this$on, request, $completion);
|
|
4398
4405
|
tmp.f9_1 = Unit_instance;
|
|
4399
4406
|
tmp.g9_1 = null;
|
|
4400
4407
|
return tmp.l9();
|
|
4401
4408
|
};
|
|
4402
4409
|
protoOf(HttpRedirect$lambda$slambda).w9 = function (p1, p2, $completion) {
|
|
4403
4410
|
var tmp = p1 instanceof Sender_0 ? p1 : THROW_CCE();
|
|
4404
|
-
return this.
|
|
4411
|
+
return this.k3d(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
4405
4412
|
};
|
|
4406
4413
|
protoOf(HttpRedirect$lambda$slambda).l9 = function () {
|
|
4407
4414
|
var suspendResult = this.f9_1;
|
|
@@ -4412,20 +4419,20 @@
|
|
|
4412
4419
|
case 0:
|
|
4413
4420
|
this.e9_1 = 3;
|
|
4414
4421
|
this.d9_1 = 1;
|
|
4415
|
-
suspendResult = this.
|
|
4422
|
+
suspendResult = this.x3h_1.o3d(this.y3h_1, this);
|
|
4416
4423
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4417
4424
|
return suspendResult;
|
|
4418
4425
|
}
|
|
4419
4426
|
|
|
4420
4427
|
continue $sm;
|
|
4421
4428
|
case 1:
|
|
4422
|
-
this.
|
|
4423
|
-
if (this.
|
|
4424
|
-
return this.
|
|
4429
|
+
this.z3h_1 = suspendResult;
|
|
4430
|
+
if (this.u3h_1 && !get_ALLOWED_FOR_REDIRECT().x1(this.z3h_1.e2y().b2z())) {
|
|
4431
|
+
return this.z3h_1;
|
|
4425
4432
|
}
|
|
4426
4433
|
|
|
4427
4434
|
this.d9_1 = 2;
|
|
4428
|
-
suspendResult = invoke$handleCall(this.
|
|
4435
|
+
suspendResult = invoke$handleCall(this.x3h_1, this.y3h_1, this.z3h_1, this.v3h_1, this.w3h_1.g34_1, this);
|
|
4429
4436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4430
4437
|
return suspendResult;
|
|
4431
4438
|
}
|
|
@@ -4447,27 +4454,27 @@
|
|
|
4447
4454
|
}
|
|
4448
4455
|
while (true);
|
|
4449
4456
|
};
|
|
4450
|
-
protoOf(HttpRedirect$lambda$slambda).
|
|
4451
|
-
var i = new HttpRedirect$lambda$slambda(this.
|
|
4452
|
-
i.
|
|
4453
|
-
i.
|
|
4457
|
+
protoOf(HttpRedirect$lambda$slambda).l3d = function ($this$on, request, completion) {
|
|
4458
|
+
var i = new HttpRedirect$lambda$slambda(this.u3h_1, this.v3h_1, this.w3h_1, completion);
|
|
4459
|
+
i.x3h_1 = $this$on;
|
|
4460
|
+
i.y3h_1 = request;
|
|
4454
4461
|
return i;
|
|
4455
4462
|
};
|
|
4456
4463
|
function HttpRedirect$lambda$slambda_0($checkHttpMethod, $allowHttpsDowngrade, $this_createClientPlugin, resultContinuation) {
|
|
4457
4464
|
var i = new HttpRedirect$lambda$slambda($checkHttpMethod, $allowHttpsDowngrade, $this_createClientPlugin, resultContinuation);
|
|
4458
4465
|
var l = function ($this$on, request, $completion) {
|
|
4459
|
-
return i.
|
|
4466
|
+
return i.k3d($this$on, request, $completion);
|
|
4460
4467
|
};
|
|
4461
4468
|
l.$arity = 2;
|
|
4462
4469
|
return l;
|
|
4463
4470
|
}
|
|
4464
4471
|
function $invoke$handleCallCOROUTINE$7(_this__u8e3s4, context, origin, allowHttpsDowngrade, client, resultContinuation) {
|
|
4465
4472
|
CoroutineImpl.call(this, resultContinuation);
|
|
4466
|
-
this.
|
|
4467
|
-
this.
|
|
4468
|
-
this.
|
|
4469
|
-
this.
|
|
4470
|
-
this.
|
|
4473
|
+
this.c3h_1 = _this__u8e3s4;
|
|
4474
|
+
this.d3h_1 = context;
|
|
4475
|
+
this.e3h_1 = origin;
|
|
4476
|
+
this.f3h_1 = allowHttpsDowngrade;
|
|
4477
|
+
this.g3h_1 = client;
|
|
4471
4478
|
}
|
|
4472
4479
|
protoOf($invoke$handleCallCOROUTINE$7).l9 = function () {
|
|
4473
4480
|
var suspendResult = this.f9_1;
|
|
@@ -4477,12 +4484,12 @@
|
|
|
4477
4484
|
switch (tmp) {
|
|
4478
4485
|
case 0:
|
|
4479
4486
|
this.e9_1 = 3;
|
|
4480
|
-
if (!isRedirect(this.
|
|
4481
|
-
return this.
|
|
4482
|
-
this.
|
|
4483
|
-
this.
|
|
4484
|
-
this.
|
|
4485
|
-
this.
|
|
4487
|
+
if (!isRedirect(this.e3h_1.v2u().i2y()))
|
|
4488
|
+
return this.e3h_1;
|
|
4489
|
+
this.h3h_1 = this.e3h_1;
|
|
4490
|
+
this.i3h_1 = this.d3h_1;
|
|
4491
|
+
this.j3h_1 = this.e3h_1.e2y().h2y().o2n_1;
|
|
4492
|
+
this.k3h_1 = get_authority(this.e3h_1.e2y().h2y());
|
|
4486
4493
|
this.d9_1 = 1;
|
|
4487
4494
|
continue $sm;
|
|
4488
4495
|
case 1:
|
|
@@ -4491,42 +4498,42 @@
|
|
|
4491
4498
|
continue $sm;
|
|
4492
4499
|
}
|
|
4493
4500
|
|
|
4494
|
-
this.
|
|
4495
|
-
this.
|
|
4496
|
-
get_LOGGER_4().k2d('Received redirect response to ' + this.
|
|
4501
|
+
this.g3h_1.a2u_1.b2q(get_HttpResponseRedirectEvent(), this.h3h_1.v2u());
|
|
4502
|
+
this.l3h_1 = this.h3h_1.v2u().o2j().s27(HttpHeaders_getInstance().z2g_1);
|
|
4503
|
+
get_LOGGER_4().k2d('Received redirect response to ' + this.l3h_1 + ' for request ' + this.d3h_1.v2v_1.toString());
|
|
4497
4504
|
var tmp_0 = this;
|
|
4498
4505
|
var this_0 = new HttpRequestBuilder();
|
|
4499
|
-
this_0.t31(this.
|
|
4506
|
+
this_0.t31(this.i3h_1);
|
|
4500
4507
|
this_0.v2v_1.y2m_1.e2();
|
|
4501
|
-
var tmp0_safe_receiver = this.
|
|
4508
|
+
var tmp0_safe_receiver = this.l3h_1;
|
|
4502
4509
|
if (tmp0_safe_receiver == null)
|
|
4503
4510
|
null;
|
|
4504
4511
|
else {
|
|
4505
4512
|
takeFrom_0(this_0.v2v_1, tmp0_safe_receiver);
|
|
4506
4513
|
}
|
|
4507
4514
|
|
|
4508
|
-
if (!this.
|
|
4509
|
-
get_LOGGER_4().k2d('Can not redirect ' + this.
|
|
4510
|
-
return this.
|
|
4515
|
+
if (!this.f3h_1 && isSecure(this.j3h_1) && !isSecure(this_0.v2v_1.b2n())) {
|
|
4516
|
+
get_LOGGER_4().k2d('Can not redirect ' + this.d3h_1.v2v_1.toString() + ' because of security downgrade');
|
|
4517
|
+
return this.h3h_1;
|
|
4511
4518
|
}
|
|
4512
4519
|
|
|
4513
|
-
if (!(this.
|
|
4520
|
+
if (!(this.k3h_1 === get_authority_0(this_0.v2v_1))) {
|
|
4514
4521
|
this_0.x2v_1.m29(HttpHeaders_getInstance().u2f_1);
|
|
4515
|
-
get_LOGGER_4().k2d('Removing Authorization header from redirect for ' + this.
|
|
4522
|
+
get_LOGGER_4().k2d('Removing Authorization header from redirect for ' + this.d3h_1.v2v_1.toString());
|
|
4516
4523
|
}
|
|
4517
4524
|
|
|
4518
|
-
tmp_0.
|
|
4525
|
+
tmp_0.i3h_1 = this_0;
|
|
4519
4526
|
this.d9_1 = 2;
|
|
4520
|
-
suspendResult = this.
|
|
4527
|
+
suspendResult = this.c3h_1.o3d(this.i3h_1, this);
|
|
4521
4528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4522
4529
|
return suspendResult;
|
|
4523
4530
|
}
|
|
4524
4531
|
|
|
4525
4532
|
continue $sm;
|
|
4526
4533
|
case 2:
|
|
4527
|
-
this.
|
|
4528
|
-
if (!isRedirect(this.
|
|
4529
|
-
return this.
|
|
4534
|
+
this.h3h_1 = suspendResult;
|
|
4535
|
+
if (!isRedirect(this.h3h_1.v2u().i2y()))
|
|
4536
|
+
return this.h3h_1;
|
|
4530
4537
|
this.d9_1 = 1;
|
|
4531
4538
|
continue $sm;
|
|
4532
4539
|
case 3:
|
|
@@ -4573,10 +4580,10 @@
|
|
|
4573
4580
|
return tmp.l9();
|
|
4574
4581
|
}
|
|
4575
4582
|
function SetupRequestContext$install$slambda$proceed$ref($boundThis) {
|
|
4576
|
-
this.
|
|
4583
|
+
this.j3i_1 = $boundThis;
|
|
4577
4584
|
}
|
|
4578
4585
|
protoOf(SetupRequestContext$install$slambda$proceed$ref).g1k = function ($completion) {
|
|
4579
|
-
return invoke$proceed(this.
|
|
4586
|
+
return invoke$proceed(this.j3i_1, $completion);
|
|
4580
4587
|
};
|
|
4581
4588
|
protoOf(SetupRequestContext$install$slambda$proceed$ref).ab = function ($completion) {
|
|
4582
4589
|
return this.g1k($completion);
|
|
@@ -4591,7 +4598,7 @@
|
|
|
4591
4598
|
}
|
|
4592
4599
|
function $invoke$proceedCOROUTINE$8(receiver, resultContinuation) {
|
|
4593
4600
|
CoroutineImpl.call(this, resultContinuation);
|
|
4594
|
-
this.
|
|
4601
|
+
this.i3i_1 = receiver;
|
|
4595
4602
|
}
|
|
4596
4603
|
protoOf($invoke$proceedCOROUTINE$8).l9 = function () {
|
|
4597
4604
|
var suspendResult = this.f9_1;
|
|
@@ -4602,7 +4609,7 @@
|
|
|
4602
4609
|
case 0:
|
|
4603
4610
|
this.e9_1 = 2;
|
|
4604
4611
|
this.d9_1 = 1;
|
|
4605
|
-
suspendResult = this.
|
|
4612
|
+
suspendResult = this.i3i_1.l2b(this);
|
|
4606
4613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4607
4614
|
return suspendResult;
|
|
4608
4615
|
}
|
|
@@ -4625,7 +4632,7 @@
|
|
|
4625
4632
|
while (true);
|
|
4626
4633
|
};
|
|
4627
4634
|
function SetupRequestContext$install$slambda($handler, resultContinuation) {
|
|
4628
|
-
this.
|
|
4635
|
+
this.s3i_1 = $handler;
|
|
4629
4636
|
CoroutineImpl.call(this, resultContinuation);
|
|
4630
4637
|
}
|
|
4631
4638
|
protoOf(SetupRequestContext$install$slambda).o2u = function ($this$intercept, it, $completion) {
|
|
@@ -4647,7 +4654,7 @@
|
|
|
4647
4654
|
case 0:
|
|
4648
4655
|
this.e9_1 = 2;
|
|
4649
4656
|
this.d9_1 = 1;
|
|
4650
|
-
suspendResult = this.
|
|
4657
|
+
suspendResult = this.s3i_1(this.t3i_1.g2c_1, SetupRequestContext$install$slambda$proceed$ref_0(this.t3i_1), this);
|
|
4651
4658
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4652
4659
|
return suspendResult;
|
|
4653
4660
|
}
|
|
@@ -4670,9 +4677,9 @@
|
|
|
4670
4677
|
while (true);
|
|
4671
4678
|
};
|
|
4672
4679
|
protoOf(SetupRequestContext$install$slambda).p2u = function ($this$intercept, it, completion) {
|
|
4673
|
-
var i = new SetupRequestContext$install$slambda(this.
|
|
4674
|
-
i.
|
|
4675
|
-
i.
|
|
4680
|
+
var i = new SetupRequestContext$install$slambda(this.s3i_1, completion);
|
|
4681
|
+
i.t3i_1 = $this$intercept;
|
|
4682
|
+
i.u3i_1 = it;
|
|
4676
4683
|
return i;
|
|
4677
4684
|
};
|
|
4678
4685
|
function SetupRequestContext$install$slambda_0($handler, resultContinuation) {
|
|
@@ -4685,12 +4692,12 @@
|
|
|
4685
4692
|
}
|
|
4686
4693
|
function SetupRequestContext() {
|
|
4687
4694
|
}
|
|
4688
|
-
protoOf(SetupRequestContext).
|
|
4695
|
+
protoOf(SetupRequestContext).v3i = function (client, handler) {
|
|
4689
4696
|
var tmp = Phases_getInstance().h33_1;
|
|
4690
4697
|
client.u2t_1.k2c(tmp, SetupRequestContext$install$slambda_0(handler, null));
|
|
4691
4698
|
};
|
|
4692
4699
|
protoOf(SetupRequestContext).m33 = function (client, handler) {
|
|
4693
|
-
return this.
|
|
4700
|
+
return this.v3i(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
4694
4701
|
};
|
|
4695
4702
|
var SetupRequestContext_instance;
|
|
4696
4703
|
function SetupRequestContext_getInstance() {
|
|
@@ -4708,18 +4715,18 @@
|
|
|
4708
4715
|
return Unit_instance;
|
|
4709
4716
|
}
|
|
4710
4717
|
function HttpRequestLifecycle$lambda$slambda($this_createClientPlugin, resultContinuation) {
|
|
4711
|
-
this.
|
|
4718
|
+
this.e3j_1 = $this_createClientPlugin;
|
|
4712
4719
|
CoroutineImpl.call(this, resultContinuation);
|
|
4713
4720
|
}
|
|
4714
|
-
protoOf(HttpRequestLifecycle$lambda$slambda).
|
|
4715
|
-
var tmp = this.
|
|
4721
|
+
protoOf(HttpRequestLifecycle$lambda$slambda).j3j = function (request, proceed, $completion) {
|
|
4722
|
+
var tmp = this.k3j(request, proceed, $completion);
|
|
4716
4723
|
tmp.f9_1 = Unit_instance;
|
|
4717
4724
|
tmp.g9_1 = null;
|
|
4718
4725
|
return tmp.l9();
|
|
4719
4726
|
};
|
|
4720
4727
|
protoOf(HttpRequestLifecycle$lambda$slambda).w9 = function (p1, p2, $completion) {
|
|
4721
4728
|
var tmp = p1 instanceof HttpRequestBuilder ? p1 : THROW_CCE();
|
|
4722
|
-
return this.
|
|
4729
|
+
return this.j3j(tmp, (!(p2 == null) ? isSuspendFunction(p2, 0) : false) ? p2 : THROW_CCE(), $completion);
|
|
4723
4730
|
};
|
|
4724
4731
|
protoOf(HttpRequestLifecycle$lambda$slambda).l9 = function () {
|
|
4725
4732
|
var suspendResult = this.f9_1;
|
|
@@ -4729,23 +4736,23 @@
|
|
|
4729
4736
|
switch (tmp) {
|
|
4730
4737
|
case 0:
|
|
4731
4738
|
this.e9_1 = 6;
|
|
4732
|
-
this.
|
|
4733
|
-
attachToClientEngineJob(this.
|
|
4739
|
+
this.h3j_1 = SupervisorJob(this.f3j_1.z2v_1);
|
|
4740
|
+
attachToClientEngineJob(this.h3j_1, ensureNotNull(this.e3j_1.g34_1.t2t_1.q9(Key_instance)));
|
|
4734
4741
|
this.d9_1 = 1;
|
|
4735
4742
|
continue $sm;
|
|
4736
4743
|
case 1:
|
|
4737
4744
|
this.e9_1 = 4;
|
|
4738
4745
|
this.e9_1 = 3;
|
|
4739
|
-
this.
|
|
4746
|
+
this.f3j_1.z2v_1 = this.h3j_1;
|
|
4740
4747
|
this.d9_1 = 2;
|
|
4741
|
-
suspendResult = this.
|
|
4748
|
+
suspendResult = this.g3j_1(this);
|
|
4742
4749
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4743
4750
|
return suspendResult;
|
|
4744
4751
|
}
|
|
4745
4752
|
|
|
4746
4753
|
continue $sm;
|
|
4747
4754
|
case 2:
|
|
4748
|
-
this.
|
|
4755
|
+
this.i3j_1 = suspendResult;
|
|
4749
4756
|
this.e9_1 = 6;
|
|
4750
4757
|
this.d9_1 = 5;
|
|
4751
4758
|
continue $sm;
|
|
@@ -4755,7 +4762,7 @@
|
|
|
4755
4762
|
if (tmp_0 instanceof Error) {
|
|
4756
4763
|
var cause = this.g9_1;
|
|
4757
4764
|
var tmp_1 = this;
|
|
4758
|
-
this.
|
|
4765
|
+
this.h3j_1.hu(cause);
|
|
4759
4766
|
throw cause;
|
|
4760
4767
|
} else {
|
|
4761
4768
|
throw this.g9_1;
|
|
@@ -4764,11 +4771,11 @@
|
|
|
4764
4771
|
case 4:
|
|
4765
4772
|
this.e9_1 = 6;
|
|
4766
4773
|
var t = this.g9_1;
|
|
4767
|
-
this.
|
|
4774
|
+
this.h3j_1.iu();
|
|
4768
4775
|
throw t;
|
|
4769
4776
|
case 5:
|
|
4770
4777
|
this.e9_1 = 6;
|
|
4771
|
-
this.
|
|
4778
|
+
this.h3j_1.iu();
|
|
4772
4779
|
return Unit_instance;
|
|
4773
4780
|
case 6:
|
|
4774
4781
|
throw this.g9_1;
|
|
@@ -4784,16 +4791,16 @@
|
|
|
4784
4791
|
}
|
|
4785
4792
|
while (true);
|
|
4786
4793
|
};
|
|
4787
|
-
protoOf(HttpRequestLifecycle$lambda$slambda).
|
|
4788
|
-
var i = new HttpRequestLifecycle$lambda$slambda(this.
|
|
4789
|
-
i.
|
|
4790
|
-
i.
|
|
4794
|
+
protoOf(HttpRequestLifecycle$lambda$slambda).k3j = function (request, proceed, completion) {
|
|
4795
|
+
var i = new HttpRequestLifecycle$lambda$slambda(this.e3j_1, completion);
|
|
4796
|
+
i.f3j_1 = request;
|
|
4797
|
+
i.g3j_1 = proceed;
|
|
4791
4798
|
return i;
|
|
4792
4799
|
};
|
|
4793
4800
|
function HttpRequestLifecycle$lambda$slambda_0($this_createClientPlugin, resultContinuation) {
|
|
4794
4801
|
var i = new HttpRequestLifecycle$lambda$slambda($this_createClientPlugin, resultContinuation);
|
|
4795
4802
|
var l = function (request, proceed, $completion) {
|
|
4796
|
-
return i.
|
|
4803
|
+
return i.j3j(request, proceed, $completion);
|
|
4797
4804
|
};
|
|
4798
4805
|
l.$arity = 2;
|
|
4799
4806
|
return l;
|
|
@@ -4827,8 +4834,8 @@
|
|
|
4827
4834
|
function Sender() {
|
|
4828
4835
|
}
|
|
4829
4836
|
function HttpSend$Plugin$install$slambda($plugin, $scope, resultContinuation) {
|
|
4830
|
-
this.
|
|
4831
|
-
this.
|
|
4837
|
+
this.u3j_1 = $plugin;
|
|
4838
|
+
this.v3j_1 = $scope;
|
|
4832
4839
|
CoroutineImpl.call(this, resultContinuation);
|
|
4833
4840
|
}
|
|
4834
4841
|
protoOf(HttpSend$Plugin$install$slambda).o2u = function ($this$intercept, content, $completion) {
|
|
@@ -4849,14 +4856,14 @@
|
|
|
4849
4856
|
switch (tmp) {
|
|
4850
4857
|
case 0:
|
|
4851
4858
|
this.e9_1 = 3;
|
|
4852
|
-
var tmp_0 = this.
|
|
4859
|
+
var tmp_0 = this.x3j_1;
|
|
4853
4860
|
if (!(tmp_0 instanceof OutgoingContent)) {
|
|
4854
|
-
var message = trimMargin('\n|Fail to prepare request body for sending. \n|The body type is: ' + toString(getKClassFromExpression(this.
|
|
4861
|
+
var message = trimMargin('\n|Fail to prepare request body for sending. \n|The body type is: ' + toString(getKClassFromExpression(this.x3j_1)) + ', with Content-Type: ' + toString_0(contentType(this.w3j_1.g2c_1)) + '.\n|\n|If you expect serialized body, please check that you have installed the corresponding plugin(like `ContentNegotiation`) and set `Content-Type` header.');
|
|
4855
4862
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4856
4863
|
}
|
|
4857
4864
|
|
|
4858
|
-
var tmp1 = this.
|
|
4859
|
-
var body = this.
|
|
4865
|
+
var tmp1 = this.w3j_1.g2c_1;
|
|
4866
|
+
var body = this.x3j_1;
|
|
4860
4867
|
if (body == null) {
|
|
4861
4868
|
tmp1.y2v_1 = NullBody_instance;
|
|
4862
4869
|
var tmp_1 = getKClass(OutgoingContent);
|
|
@@ -4898,25 +4905,25 @@
|
|
|
4898
4905
|
}
|
|
4899
4906
|
}
|
|
4900
4907
|
|
|
4901
|
-
this.
|
|
4902
|
-
this.
|
|
4903
|
-
var _iterator__ex2g4s = reversed(this.
|
|
4908
|
+
this.y3j_1 = new DefaultSender(this.u3j_1.b3k_1, this.v3j_1);
|
|
4909
|
+
this.z3j_1 = this.y3j_1;
|
|
4910
|
+
var _iterator__ex2g4s = reversed(this.u3j_1.c3k_1).p();
|
|
4904
4911
|
while (_iterator__ex2g4s.q()) {
|
|
4905
4912
|
var interceptor = _iterator__ex2g4s.r();
|
|
4906
|
-
this.
|
|
4913
|
+
this.z3j_1 = new InterceptedSender(interceptor, this.z3j_1);
|
|
4907
4914
|
}
|
|
4908
4915
|
|
|
4909
4916
|
this.d9_1 = 1;
|
|
4910
|
-
suspendResult = this.
|
|
4917
|
+
suspendResult = this.z3j_1.l3j(this.w3j_1.g2c_1, this);
|
|
4911
4918
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4912
4919
|
return suspendResult;
|
|
4913
4920
|
}
|
|
4914
4921
|
|
|
4915
4922
|
continue $sm;
|
|
4916
4923
|
case 1:
|
|
4917
|
-
this.
|
|
4924
|
+
this.a3k_1 = suspendResult;
|
|
4918
4925
|
this.d9_1 = 2;
|
|
4919
|
-
suspendResult = this.
|
|
4926
|
+
suspendResult = this.w3j_1.k2b(this.a3k_1, this);
|
|
4920
4927
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4921
4928
|
return suspendResult;
|
|
4922
4929
|
}
|
|
@@ -4939,9 +4946,9 @@
|
|
|
4939
4946
|
while (true);
|
|
4940
4947
|
};
|
|
4941
4948
|
protoOf(HttpSend$Plugin$install$slambda).p2u = function ($this$intercept, content, completion) {
|
|
4942
|
-
var i = new HttpSend$Plugin$install$slambda(this.
|
|
4943
|
-
i.
|
|
4944
|
-
i.
|
|
4949
|
+
var i = new HttpSend$Plugin$install$slambda(this.u3j_1, this.v3j_1, completion);
|
|
4950
|
+
i.w3j_1 = $this$intercept;
|
|
4951
|
+
i.x3j_1 = content;
|
|
4945
4952
|
return i;
|
|
4946
4953
|
};
|
|
4947
4954
|
function HttpSend$Plugin$install$slambda_0($plugin, $scope, resultContinuation) {
|
|
@@ -4954,8 +4961,8 @@
|
|
|
4954
4961
|
}
|
|
4955
4962
|
function $executeCOROUTINE$9(_this__u8e3s4, requestBuilder, resultContinuation) {
|
|
4956
4963
|
CoroutineImpl.call(this, resultContinuation);
|
|
4957
|
-
this.
|
|
4958
|
-
this.
|
|
4964
|
+
this.l3k_1 = _this__u8e3s4;
|
|
4965
|
+
this.m3k_1 = requestBuilder;
|
|
4959
4966
|
}
|
|
4960
4967
|
protoOf($executeCOROUTINE$9).l9 = function () {
|
|
4961
4968
|
var suspendResult = this.f9_1;
|
|
@@ -4965,21 +4972,21 @@
|
|
|
4965
4972
|
switch (tmp) {
|
|
4966
4973
|
case 0:
|
|
4967
4974
|
this.e9_1 = 2;
|
|
4968
|
-
var tmp0_safe_receiver = this.
|
|
4975
|
+
var tmp0_safe_receiver = this.l3k_1.q3k_1;
|
|
4969
4976
|
if (tmp0_safe_receiver == null)
|
|
4970
4977
|
null;
|
|
4971
4978
|
else {
|
|
4972
4979
|
cancel(tmp0_safe_receiver);
|
|
4973
4980
|
}
|
|
4974
4981
|
|
|
4975
|
-
if (this.
|
|
4976
|
-
throw new SendCountExceedException('Max send count ' + this.
|
|
4982
|
+
if (this.l3k_1.p3k_1 >= this.l3k_1.n3k_1) {
|
|
4983
|
+
throw new SendCountExceedException('Max send count ' + this.l3k_1.n3k_1 + ' exceeded. Consider increasing the property ' + 'maxSendCount if more is required.');
|
|
4977
4984
|
}
|
|
4978
4985
|
|
|
4979
|
-
var _unary__edvuaz = this.
|
|
4980
|
-
this.
|
|
4986
|
+
var _unary__edvuaz = this.l3k_1.p3k_1;
|
|
4987
|
+
this.l3k_1.p3k_1 = _unary__edvuaz + 1 | 0;
|
|
4981
4988
|
this.d9_1 = 1;
|
|
4982
|
-
suspendResult = this.
|
|
4989
|
+
suspendResult = this.l3k_1.o3k_1.w2t_1.f2c(this.m3k_1, this.m3k_1.y2v_1, this);
|
|
4983
4990
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
4984
4991
|
return suspendResult;
|
|
4985
4992
|
}
|
|
@@ -4997,7 +5004,7 @@
|
|
|
4997
5004
|
}
|
|
4998
5005
|
|
|
4999
5006
|
var call = tmp_0;
|
|
5000
|
-
this.
|
|
5007
|
+
this.l3k_1.q3k_1 = call;
|
|
5001
5008
|
return call;
|
|
5002
5009
|
case 2:
|
|
5003
5010
|
throw this.g9_1;
|
|
@@ -5014,7 +5021,7 @@
|
|
|
5014
5021
|
while (true);
|
|
5015
5022
|
};
|
|
5016
5023
|
function Config() {
|
|
5017
|
-
this.
|
|
5024
|
+
this.r3k_1 = 20;
|
|
5018
5025
|
}
|
|
5019
5026
|
function Plugin_0() {
|
|
5020
5027
|
Plugin_instance_0 = this;
|
|
@@ -5039,27 +5046,27 @@
|
|
|
5039
5046
|
}
|
|
5040
5047
|
var tmp$ret$0 = tmp_1;
|
|
5041
5048
|
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$0);
|
|
5042
|
-
tmp.
|
|
5049
|
+
tmp.s3k_1 = new AttributeKey(name, tmp$ret$1);
|
|
5043
5050
|
}
|
|
5044
5051
|
protoOf(Plugin_0).y = function () {
|
|
5045
|
-
return this.
|
|
5052
|
+
return this.s3k_1;
|
|
5046
5053
|
};
|
|
5047
|
-
protoOf(Plugin_0).
|
|
5054
|
+
protoOf(Plugin_0).t3k = function (block) {
|
|
5048
5055
|
// Inline function 'kotlin.apply' call
|
|
5049
5056
|
var this_0 = new Config();
|
|
5050
5057
|
block(this_0);
|
|
5051
5058
|
var config = this_0;
|
|
5052
|
-
return new HttpSend(config.
|
|
5059
|
+
return new HttpSend(config.r3k_1);
|
|
5053
5060
|
};
|
|
5054
5061
|
protoOf(Plugin_0).a2x = function (block) {
|
|
5055
|
-
return this.
|
|
5062
|
+
return this.t3k(block);
|
|
5056
5063
|
};
|
|
5057
|
-
protoOf(Plugin_0).
|
|
5064
|
+
protoOf(Plugin_0).u3k = function (plugin, scope) {
|
|
5058
5065
|
var tmp = Phases_getInstance().l33_1;
|
|
5059
5066
|
scope.u2t_1.k2c(tmp, HttpSend$Plugin$install$slambda_0(plugin, scope, null));
|
|
5060
5067
|
};
|
|
5061
5068
|
protoOf(Plugin_0).b2x = function (plugin, scope) {
|
|
5062
|
-
return this.
|
|
5069
|
+
return this.u3k(plugin instanceof HttpSend ? plugin : THROW_CCE(), scope);
|
|
5063
5070
|
};
|
|
5064
5071
|
var Plugin_instance_0;
|
|
5065
5072
|
function Plugin_getInstance_0() {
|
|
@@ -5068,19 +5075,19 @@
|
|
|
5068
5075
|
return Plugin_instance_0;
|
|
5069
5076
|
}
|
|
5070
5077
|
function InterceptedSender(interceptor, nextSender) {
|
|
5071
|
-
this.
|
|
5072
|
-
this.
|
|
5078
|
+
this.v3k_1 = interceptor;
|
|
5079
|
+
this.w3k_1 = nextSender;
|
|
5073
5080
|
}
|
|
5074
|
-
protoOf(InterceptedSender).
|
|
5075
|
-
return this.
|
|
5081
|
+
protoOf(InterceptedSender).l3j = function (requestBuilder, $completion) {
|
|
5082
|
+
return this.v3k_1(this.w3k_1, requestBuilder, $completion);
|
|
5076
5083
|
};
|
|
5077
5084
|
function DefaultSender(maxSendCount, client) {
|
|
5078
|
-
this.
|
|
5079
|
-
this.
|
|
5080
|
-
this.
|
|
5081
|
-
this.
|
|
5085
|
+
this.n3k_1 = maxSendCount;
|
|
5086
|
+
this.o3k_1 = client;
|
|
5087
|
+
this.p3k_1 = 0;
|
|
5088
|
+
this.q3k_1 = null;
|
|
5082
5089
|
}
|
|
5083
|
-
protoOf(DefaultSender).
|
|
5090
|
+
protoOf(DefaultSender).l3j = function (requestBuilder, $completion) {
|
|
5084
5091
|
var tmp = new $executeCOROUTINE$9(this, requestBuilder, $completion);
|
|
5085
5092
|
tmp.f9_1 = Unit_instance;
|
|
5086
5093
|
tmp.g9_1 = null;
|
|
@@ -5089,14 +5096,14 @@
|
|
|
5089
5096
|
function HttpSend(maxSendCount) {
|
|
5090
5097
|
Plugin_getInstance_0();
|
|
5091
5098
|
maxSendCount = maxSendCount === VOID ? 20 : maxSendCount;
|
|
5092
|
-
this.
|
|
5099
|
+
this.b3k_1 = maxSendCount;
|
|
5093
5100
|
var tmp = this;
|
|
5094
5101
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
5095
|
-
tmp.
|
|
5102
|
+
tmp.c3k_1 = ArrayList_init_$Create$();
|
|
5096
5103
|
}
|
|
5097
|
-
protoOf(HttpSend).
|
|
5104
|
+
protoOf(HttpSend).x3k = function (block) {
|
|
5098
5105
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5099
|
-
this.
|
|
5106
|
+
this.c3k_1.k(block);
|
|
5100
5107
|
};
|
|
5101
5108
|
function SendCountExceedException(message) {
|
|
5102
5109
|
IllegalStateException_init_$Init$_0(message, this);
|
|
@@ -5134,8 +5141,8 @@
|
|
|
5134
5141
|
}
|
|
5135
5142
|
function HttpRequestTimeoutException_init_$Init$(request, $this) {
|
|
5136
5143
|
var tmp = request.v2v_1.l2o();
|
|
5137
|
-
var tmp0_safe_receiver = request.
|
|
5138
|
-
HttpRequestTimeoutException.call($this, tmp, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
5144
|
+
var tmp0_safe_receiver = request.y3k(HttpTimeoutCapability_instance);
|
|
5145
|
+
HttpRequestTimeoutException.call($this, tmp, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c3l());
|
|
5139
5146
|
return $this;
|
|
5140
5147
|
}
|
|
5141
5148
|
function HttpRequestTimeoutException_init_$Create$(request) {
|
|
@@ -5147,20 +5154,20 @@
|
|
|
5147
5154
|
cause = cause === VOID ? null : cause;
|
|
5148
5155
|
IOException_init_$Init$('Request timeout has expired [url=' + url + ', request_timeout=' + toString(timeoutMillis == null ? 'unknown' : timeoutMillis) + ' ms]', cause, this);
|
|
5149
5156
|
captureStack(this, HttpRequestTimeoutException);
|
|
5150
|
-
this.
|
|
5151
|
-
this.
|
|
5157
|
+
this.d3l_1 = url;
|
|
5158
|
+
this.e3l_1 = timeoutMillis;
|
|
5152
5159
|
}
|
|
5153
5160
|
protoOf(HttpRequestTimeoutException).ru = function () {
|
|
5154
|
-
return new HttpRequestTimeoutException(this.
|
|
5161
|
+
return new HttpRequestTimeoutException(this.d3l_1, this.e3l_1, this.cause);
|
|
5155
5162
|
};
|
|
5156
5163
|
function HttpTimeoutConfig_init_$Init$(requestTimeoutMillis, connectTimeoutMillis, socketTimeoutMillis, $this) {
|
|
5157
5164
|
requestTimeoutMillis = requestTimeoutMillis === VOID ? null : requestTimeoutMillis;
|
|
5158
5165
|
connectTimeoutMillis = connectTimeoutMillis === VOID ? null : connectTimeoutMillis;
|
|
5159
5166
|
socketTimeoutMillis = socketTimeoutMillis === VOID ? null : socketTimeoutMillis;
|
|
5160
5167
|
HttpTimeoutConfig.call($this);
|
|
5161
|
-
$this.
|
|
5162
|
-
$this.
|
|
5163
|
-
$this.
|
|
5168
|
+
$this.f3l(requestTimeoutMillis);
|
|
5169
|
+
$this.g3l(connectTimeoutMillis);
|
|
5170
|
+
$this.h3l(socketTimeoutMillis);
|
|
5164
5171
|
return $this;
|
|
5165
5172
|
}
|
|
5166
5173
|
function HttpTimeoutConfig_init_$Create$(requestTimeoutMillis, connectTimeoutMillis, socketTimeoutMillis) {
|
|
@@ -5177,7 +5184,7 @@
|
|
|
5177
5184
|
}
|
|
5178
5185
|
function Companion_1() {
|
|
5179
5186
|
Companion_instance_2 = this;
|
|
5180
|
-
this.
|
|
5187
|
+
this.i3l_1 = new Long(-1, 2147483647);
|
|
5181
5188
|
var tmp = this;
|
|
5182
5189
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
5183
5190
|
var name = 'TimeoutConfiguration';
|
|
@@ -5199,7 +5206,7 @@
|
|
|
5199
5206
|
}
|
|
5200
5207
|
var tmp$ret$0 = tmp_1;
|
|
5201
5208
|
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$0);
|
|
5202
|
-
tmp.
|
|
5209
|
+
tmp.j3l_1 = new AttributeKey(name, tmp$ret$1);
|
|
5203
5210
|
}
|
|
5204
5211
|
var Companion_instance_2;
|
|
5205
5212
|
function Companion_getInstance_7() {
|
|
@@ -5207,16 +5214,10 @@
|
|
|
5207
5214
|
new Companion_1();
|
|
5208
5215
|
return Companion_instance_2;
|
|
5209
5216
|
}
|
|
5210
|
-
protoOf(HttpTimeoutConfig).e3l = function (value) {
|
|
5211
|
-
this.y3k_1 = checkTimeoutValue(this, value);
|
|
5212
|
-
};
|
|
5213
|
-
protoOf(HttpTimeoutConfig).b3l = function () {
|
|
5214
|
-
return this.y3k_1;
|
|
5215
|
-
};
|
|
5216
5217
|
protoOf(HttpTimeoutConfig).f3l = function (value) {
|
|
5217
5218
|
this.z3k_1 = checkTimeoutValue(this, value);
|
|
5218
5219
|
};
|
|
5219
|
-
protoOf(HttpTimeoutConfig).
|
|
5220
|
+
protoOf(HttpTimeoutConfig).c3l = function () {
|
|
5220
5221
|
return this.z3k_1;
|
|
5221
5222
|
};
|
|
5222
5223
|
protoOf(HttpTimeoutConfig).g3l = function (value) {
|
|
@@ -5225,6 +5226,12 @@
|
|
|
5225
5226
|
protoOf(HttpTimeoutConfig).k3l = function () {
|
|
5226
5227
|
return this.a3l_1;
|
|
5227
5228
|
};
|
|
5229
|
+
protoOf(HttpTimeoutConfig).h3l = function (value) {
|
|
5230
|
+
this.b3l_1 = checkTimeoutValue(this, value);
|
|
5231
|
+
};
|
|
5232
|
+
protoOf(HttpTimeoutConfig).l3l = function () {
|
|
5233
|
+
return this.b3l_1;
|
|
5234
|
+
};
|
|
5228
5235
|
protoOf(HttpTimeoutConfig).equals = function (other) {
|
|
5229
5236
|
if (this === other)
|
|
5230
5237
|
return true;
|
|
@@ -5232,33 +5239,33 @@
|
|
|
5232
5239
|
return false;
|
|
5233
5240
|
if (!(other instanceof HttpTimeoutConfig))
|
|
5234
5241
|
THROW_CCE();
|
|
5235
|
-
if (!equals(this.y3k_1, other.y3k_1))
|
|
5236
|
-
return false;
|
|
5237
5242
|
if (!equals(this.z3k_1, other.z3k_1))
|
|
5238
5243
|
return false;
|
|
5239
5244
|
if (!equals(this.a3l_1, other.a3l_1))
|
|
5240
5245
|
return false;
|
|
5246
|
+
if (!equals(this.b3l_1, other.b3l_1))
|
|
5247
|
+
return false;
|
|
5241
5248
|
return true;
|
|
5242
5249
|
};
|
|
5243
5250
|
protoOf(HttpTimeoutConfig).hashCode = function () {
|
|
5244
|
-
var tmp0_safe_receiver = this.
|
|
5251
|
+
var tmp0_safe_receiver = this.z3k_1;
|
|
5245
5252
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hashCode();
|
|
5246
5253
|
var result = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
5247
5254
|
var tmp = imul(31, result);
|
|
5248
|
-
var tmp2_safe_receiver = this.
|
|
5255
|
+
var tmp2_safe_receiver = this.a3l_1;
|
|
5249
5256
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hashCode();
|
|
5250
5257
|
result = tmp + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
|
|
5251
5258
|
var tmp_0 = imul(31, result);
|
|
5252
|
-
var tmp4_safe_receiver = this.
|
|
5259
|
+
var tmp4_safe_receiver = this.b3l_1;
|
|
5253
5260
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hashCode();
|
|
5254
5261
|
result = tmp_0 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
|
|
5255
5262
|
return result;
|
|
5256
5263
|
};
|
|
5257
5264
|
function HttpTimeoutConfig() {
|
|
5258
5265
|
Companion_getInstance_7();
|
|
5259
|
-
this.y3k_1 = new Long(0, 0);
|
|
5260
5266
|
this.z3k_1 = new Long(0, 0);
|
|
5261
5267
|
this.a3l_1 = new Long(0, 0);
|
|
5268
|
+
this.b3l_1 = new Long(0, 0);
|
|
5262
5269
|
}
|
|
5263
5270
|
function HttpTimeout$lambda() {
|
|
5264
5271
|
return HttpTimeoutConfig_init_$Create$();
|
|
@@ -5270,9 +5277,9 @@
|
|
|
5270
5277
|
}
|
|
5271
5278
|
function HttpTimeout$lambda_0($this$createClientPlugin) {
|
|
5272
5279
|
_init_properties_HttpTimeout_kt__pucqrr();
|
|
5273
|
-
var requestTimeoutMillis = $this$createClientPlugin.h34_1.
|
|
5274
|
-
var connectTimeoutMillis = $this$createClientPlugin.h34_1.
|
|
5275
|
-
var socketTimeoutMillis = $this$createClientPlugin.h34_1.
|
|
5280
|
+
var requestTimeoutMillis = $this$createClientPlugin.h34_1.c3l();
|
|
5281
|
+
var connectTimeoutMillis = $this$createClientPlugin.h34_1.k3l();
|
|
5282
|
+
var socketTimeoutMillis = $this$createClientPlugin.h34_1.l3l();
|
|
5276
5283
|
var tmp = Send_instance;
|
|
5277
5284
|
$this$createClientPlugin.k34(tmp, HttpTimeout$lambda$slambda_0(connectTimeoutMillis, socketTimeoutMillis, requestTimeoutMillis, null));
|
|
5278
5285
|
return Unit_instance;
|
|
@@ -5281,9 +5288,9 @@
|
|
|
5281
5288
|
return !(requestTimeoutMillis == null) || !(connectTimeoutMillis == null) || !(socketTimeoutMillis == null);
|
|
5282
5289
|
}
|
|
5283
5290
|
function HttpTimeout$lambda$slambda$slambda($requestTimeout, $request, $executionContext, resultContinuation) {
|
|
5284
|
-
this.
|
|
5285
|
-
this.
|
|
5286
|
-
this.
|
|
5291
|
+
this.u3l_1 = $requestTimeout;
|
|
5292
|
+
this.v3l_1 = $request;
|
|
5293
|
+
this.w3l_1 = $executionContext;
|
|
5287
5294
|
CoroutineImpl.call(this, resultContinuation);
|
|
5288
5295
|
}
|
|
5289
5296
|
protoOf(HttpTimeout$lambda$slambda$slambda).k1l = function ($this$launch, $completion) {
|
|
@@ -5304,16 +5311,16 @@
|
|
|
5304
5311
|
case 0:
|
|
5305
5312
|
this.e9_1 = 2;
|
|
5306
5313
|
this.d9_1 = 1;
|
|
5307
|
-
suspendResult = delay(this.
|
|
5314
|
+
suspendResult = delay(this.u3l_1, this);
|
|
5308
5315
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5309
5316
|
return suspendResult;
|
|
5310
5317
|
}
|
|
5311
5318
|
|
|
5312
5319
|
continue $sm;
|
|
5313
5320
|
case 1:
|
|
5314
|
-
var cause = HttpRequestTimeoutException_init_$Create$(this.
|
|
5315
|
-
get_LOGGER_6().k2d('Request timeout: ' + this.
|
|
5316
|
-
cancel_2(this.
|
|
5321
|
+
var cause = HttpRequestTimeoutException_init_$Create$(this.v3l_1);
|
|
5322
|
+
get_LOGGER_6().k2d('Request timeout: ' + this.v3l_1.v2v_1.toString());
|
|
5323
|
+
cancel_2(this.w3l_1, ensureNotNull(cause.message), cause);
|
|
5317
5324
|
return Unit_instance;
|
|
5318
5325
|
case 2:
|
|
5319
5326
|
throw this.g9_1;
|
|
@@ -5330,8 +5337,8 @@
|
|
|
5330
5337
|
while (true);
|
|
5331
5338
|
};
|
|
5332
5339
|
protoOf(HttpTimeout$lambda$slambda$slambda).l1l = function ($this$launch, completion) {
|
|
5333
|
-
var i = new HttpTimeout$lambda$slambda$slambda(this.
|
|
5334
|
-
i.
|
|
5340
|
+
var i = new HttpTimeout$lambda$slambda$slambda(this.u3l_1, this.v3l_1, this.w3l_1, completion);
|
|
5341
|
+
i.x3l_1 = $this$launch;
|
|
5335
5342
|
return i;
|
|
5336
5343
|
};
|
|
5337
5344
|
function HttpTimeout$lambda$slambda$slambda_0($requestTimeout, $request, $executionContext, resultContinuation) {
|
|
@@ -5349,20 +5356,20 @@
|
|
|
5349
5356
|
};
|
|
5350
5357
|
}
|
|
5351
5358
|
function HttpTimeout$lambda$slambda($connectTimeoutMillis, $socketTimeoutMillis, $requestTimeoutMillis, resultContinuation) {
|
|
5352
|
-
this.
|
|
5353
|
-
this.
|
|
5354
|
-
this.
|
|
5359
|
+
this.g3m_1 = $connectTimeoutMillis;
|
|
5360
|
+
this.h3m_1 = $socketTimeoutMillis;
|
|
5361
|
+
this.i3m_1 = $requestTimeoutMillis;
|
|
5355
5362
|
CoroutineImpl.call(this, resultContinuation);
|
|
5356
5363
|
}
|
|
5357
|
-
protoOf(HttpTimeout$lambda$slambda).
|
|
5358
|
-
var tmp = this.
|
|
5364
|
+
protoOf(HttpTimeout$lambda$slambda).k3d = function ($this$on, request, $completion) {
|
|
5365
|
+
var tmp = this.l3d($this$on, request, $completion);
|
|
5359
5366
|
tmp.f9_1 = Unit_instance;
|
|
5360
5367
|
tmp.g9_1 = null;
|
|
5361
5368
|
return tmp.l9();
|
|
5362
5369
|
};
|
|
5363
5370
|
protoOf(HttpTimeout$lambda$slambda).w9 = function (p1, p2, $completion) {
|
|
5364
5371
|
var tmp = p1 instanceof Sender_0 ? p1 : THROW_CCE();
|
|
5365
|
-
return this.
|
|
5372
|
+
return this.k3d(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
5366
5373
|
};
|
|
5367
5374
|
protoOf(HttpTimeout$lambda$slambda).l9 = function () {
|
|
5368
5375
|
var suspendResult = this.f9_1;
|
|
@@ -5372,26 +5379,26 @@
|
|
|
5372
5379
|
switch (tmp) {
|
|
5373
5380
|
case 0:
|
|
5374
5381
|
this.e9_1 = 4;
|
|
5375
|
-
this.
|
|
5382
|
+
this.l3m_1 = isWebsocket(this.k3m_1.v2v_1.b2n());
|
|
5376
5383
|
var tmp_0;
|
|
5377
5384
|
var tmp_1;
|
|
5378
|
-
if (this.
|
|
5385
|
+
if (this.l3m_1) {
|
|
5379
5386
|
tmp_1 = true;
|
|
5380
5387
|
} else {
|
|
5381
|
-
var tmp_2 = this.
|
|
5388
|
+
var tmp_2 = this.k3m_1.y2v_1;
|
|
5382
5389
|
tmp_1 = tmp_2 instanceof ClientUpgradeContent;
|
|
5383
5390
|
}
|
|
5384
5391
|
|
|
5385
5392
|
if (tmp_1) {
|
|
5386
5393
|
tmp_0 = true;
|
|
5387
5394
|
} else {
|
|
5388
|
-
var tmp_3 = this.
|
|
5395
|
+
var tmp_3 = this.k3m_1.y2v_1;
|
|
5389
5396
|
tmp_0 = tmp_3 instanceof SSEClientContent;
|
|
5390
5397
|
}
|
|
5391
5398
|
|
|
5392
5399
|
if (tmp_0) {
|
|
5393
5400
|
this.d9_1 = 3;
|
|
5394
|
-
suspendResult = this.
|
|
5401
|
+
suspendResult = this.j3m_1.o3d(this.k3m_1, this);
|
|
5395
5402
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5396
5403
|
return suspendResult;
|
|
5397
5404
|
}
|
|
@@ -5402,37 +5409,37 @@
|
|
|
5402
5409
|
}
|
|
5403
5410
|
|
|
5404
5411
|
case 1:
|
|
5405
|
-
this.
|
|
5406
|
-
if (this.
|
|
5407
|
-
this.
|
|
5408
|
-
this.
|
|
5412
|
+
this.m3m_1 = this.k3m_1.y3k(HttpTimeoutCapability_instance);
|
|
5413
|
+
if (this.m3m_1 == null && invoke$hasNotNullTimeouts(this.i3m_1, this.g3m_1, this.h3m_1)) {
|
|
5414
|
+
this.m3m_1 = HttpTimeoutConfig_init_$Create$();
|
|
5415
|
+
this.k3m_1.n3m(HttpTimeoutCapability_instance, this.m3m_1);
|
|
5409
5416
|
}
|
|
5410
5417
|
|
|
5411
|
-
var tmp0_safe_receiver = this.
|
|
5418
|
+
var tmp0_safe_receiver = this.m3m_1;
|
|
5412
5419
|
if (tmp0_safe_receiver == null)
|
|
5413
5420
|
null;
|
|
5414
5421
|
else {
|
|
5415
5422
|
l$ret$1: do {
|
|
5416
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver.
|
|
5417
|
-
tmp0_safe_receiver.
|
|
5418
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver.
|
|
5419
|
-
tmp0_safe_receiver.
|
|
5420
|
-
var tmp2_elvis_lhs = tmp0_safe_receiver.
|
|
5421
|
-
tmp0_safe_receiver.
|
|
5422
|
-
var requestTimeout = tmp0_safe_receiver.
|
|
5423
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver.k3l();
|
|
5424
|
+
tmp0_safe_receiver.g3l(tmp0_elvis_lhs == null ? this.g3m_1 : tmp0_elvis_lhs);
|
|
5425
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver.l3l();
|
|
5426
|
+
tmp0_safe_receiver.h3l(tmp1_elvis_lhs == null ? this.h3m_1 : tmp1_elvis_lhs);
|
|
5427
|
+
var tmp2_elvis_lhs = tmp0_safe_receiver.c3l();
|
|
5428
|
+
tmp0_safe_receiver.f3l(tmp2_elvis_lhs == null ? this.i3m_1 : tmp2_elvis_lhs);
|
|
5429
|
+
var requestTimeout = tmp0_safe_receiver.c3l();
|
|
5423
5430
|
if (requestTimeout == null || equals(requestTimeout, new Long(-1, 2147483647))) {
|
|
5424
5431
|
break l$ret$1;
|
|
5425
5432
|
}
|
|
5426
|
-
var executionContext = this.
|
|
5427
|
-
var killer = launch(this.
|
|
5428
|
-
var tmp_4 = this.
|
|
5433
|
+
var executionContext = this.k3m_1.z2v_1;
|
|
5434
|
+
var killer = launch(this.j3m_1, VOID, VOID, HttpTimeout$lambda$slambda$slambda_0(requestTimeout, this.k3m_1, executionContext, null));
|
|
5435
|
+
var tmp_4 = this.k3m_1.z2v_1;
|
|
5429
5436
|
tmp_4.po(HttpTimeout$lambda$slambda$lambda(killer));
|
|
5430
5437
|
}
|
|
5431
5438
|
while (false);
|
|
5432
5439
|
}
|
|
5433
5440
|
|
|
5434
5441
|
this.d9_1 = 2;
|
|
5435
|
-
suspendResult = this.
|
|
5442
|
+
suspendResult = this.j3m_1.o3d(this.k3m_1, this);
|
|
5436
5443
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5437
5444
|
return suspendResult;
|
|
5438
5445
|
}
|
|
@@ -5456,16 +5463,16 @@
|
|
|
5456
5463
|
}
|
|
5457
5464
|
while (true);
|
|
5458
5465
|
};
|
|
5459
|
-
protoOf(HttpTimeout$lambda$slambda).
|
|
5460
|
-
var i = new HttpTimeout$lambda$slambda(this.
|
|
5461
|
-
i.
|
|
5462
|
-
i.
|
|
5466
|
+
protoOf(HttpTimeout$lambda$slambda).l3d = function ($this$on, request, completion) {
|
|
5467
|
+
var i = new HttpTimeout$lambda$slambda(this.g3m_1, this.h3m_1, this.i3m_1, completion);
|
|
5468
|
+
i.j3m_1 = $this$on;
|
|
5469
|
+
i.k3m_1 = request;
|
|
5463
5470
|
return i;
|
|
5464
5471
|
};
|
|
5465
5472
|
function HttpTimeout$lambda$slambda_0($connectTimeoutMillis, $socketTimeoutMillis, $requestTimeoutMillis, resultContinuation) {
|
|
5466
5473
|
var i = new HttpTimeout$lambda$slambda($connectTimeoutMillis, $socketTimeoutMillis, $requestTimeoutMillis, resultContinuation);
|
|
5467
5474
|
var l = function ($this$on, request, $completion) {
|
|
5468
|
-
return i.
|
|
5475
|
+
return i.k3d($this$on, request, $completion);
|
|
5469
5476
|
};
|
|
5470
5477
|
l.$arity = 2;
|
|
5471
5478
|
return l;
|
|
@@ -5491,7 +5498,7 @@
|
|
|
5491
5498
|
var UserAgent;
|
|
5492
5499
|
function UserAgentConfig(agent) {
|
|
5493
5500
|
agent = agent === VOID ? 'Ktor http-client' : agent;
|
|
5494
|
-
this.
|
|
5501
|
+
this.o3m_1 = agent;
|
|
5495
5502
|
}
|
|
5496
5503
|
function UserAgent$lambda() {
|
|
5497
5504
|
return new UserAgentConfig();
|
|
@@ -5503,24 +5510,24 @@
|
|
|
5503
5510
|
}
|
|
5504
5511
|
function UserAgent$lambda_0($this$createClientPlugin) {
|
|
5505
5512
|
_init_properties_UserAgent_kt__w65p14();
|
|
5506
|
-
var agent = $this$createClientPlugin.h34_1.
|
|
5507
|
-
$this$createClientPlugin.
|
|
5513
|
+
var agent = $this$createClientPlugin.h34_1.o3m_1;
|
|
5514
|
+
$this$createClientPlugin.p3m(UserAgent$lambda$slambda_0(agent, null));
|
|
5508
5515
|
return Unit_instance;
|
|
5509
5516
|
}
|
|
5510
5517
|
function UserAgent$lambda$slambda($agent, resultContinuation) {
|
|
5511
|
-
this.
|
|
5518
|
+
this.y3m_1 = $agent;
|
|
5512
5519
|
CoroutineImpl.call(this, resultContinuation);
|
|
5513
5520
|
}
|
|
5514
|
-
protoOf(UserAgent$lambda$slambda).
|
|
5515
|
-
var tmp = this.
|
|
5521
|
+
protoOf(UserAgent$lambda$slambda).c3n = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
5522
|
+
var tmp = this.d3n($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
5516
5523
|
tmp.f9_1 = Unit_instance;
|
|
5517
5524
|
tmp.g9_1 = null;
|
|
5518
5525
|
return tmp.l9();
|
|
5519
5526
|
};
|
|
5520
|
-
protoOf(UserAgent$lambda$slambda).
|
|
5527
|
+
protoOf(UserAgent$lambda$slambda).e3n = function (p1, p2, p3, $completion) {
|
|
5521
5528
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
5522
5529
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
5523
|
-
return this.
|
|
5530
|
+
return this.c3n(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
5524
5531
|
};
|
|
5525
5532
|
protoOf(UserAgent$lambda$slambda).l9 = function () {
|
|
5526
5533
|
var suspendResult = this.f9_1;
|
|
@@ -5529,8 +5536,8 @@
|
|
|
5529
5536
|
var tmp = this.d9_1;
|
|
5530
5537
|
if (tmp === 0) {
|
|
5531
5538
|
this.e9_1 = 1;
|
|
5532
|
-
get_LOGGER_7().k2d('Adding User-Agent header: agent for ' + this.
|
|
5533
|
-
header(this.
|
|
5539
|
+
get_LOGGER_7().k2d('Adding User-Agent header: agent for ' + this.a3n_1.v2v_1.toString());
|
|
5540
|
+
header(this.a3n_1, HttpHeaders_getInstance().j2i_1, this.y3m_1);
|
|
5534
5541
|
return Unit_instance;
|
|
5535
5542
|
} else if (tmp === 1) {
|
|
5536
5543
|
throw this.g9_1;
|
|
@@ -5541,17 +5548,17 @@
|
|
|
5541
5548
|
}
|
|
5542
5549
|
while (true);
|
|
5543
5550
|
};
|
|
5544
|
-
protoOf(UserAgent$lambda$slambda).
|
|
5545
|
-
var i = new UserAgent$lambda$slambda(this.
|
|
5546
|
-
i.
|
|
5547
|
-
i.
|
|
5548
|
-
i.
|
|
5551
|
+
protoOf(UserAgent$lambda$slambda).d3n = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
5552
|
+
var i = new UserAgent$lambda$slambda(this.y3m_1, completion);
|
|
5553
|
+
i.z3m_1 = $this$onRequest;
|
|
5554
|
+
i.a3n_1 = request;
|
|
5555
|
+
i.b3n_1 = _unused_var__etf5q3;
|
|
5549
5556
|
return i;
|
|
5550
5557
|
};
|
|
5551
5558
|
function UserAgent$lambda$slambda_0($agent, resultContinuation) {
|
|
5552
5559
|
var i = new UserAgent$lambda$slambda($agent, resultContinuation);
|
|
5553
5560
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
5554
|
-
return i.
|
|
5561
|
+
return i.c3n($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
5555
5562
|
};
|
|
5556
5563
|
l.$arity = 3;
|
|
5557
5564
|
return l;
|
|
@@ -5566,11 +5573,11 @@
|
|
|
5566
5573
|
}
|
|
5567
5574
|
}
|
|
5568
5575
|
function HookHandler(hook, handler) {
|
|
5569
|
-
this.
|
|
5570
|
-
this.
|
|
5576
|
+
this.f3n_1 = hook;
|
|
5577
|
+
this.g3n_1 = handler;
|
|
5571
5578
|
}
|
|
5572
5579
|
protoOf(HookHandler).c2w = function (client) {
|
|
5573
|
-
this.
|
|
5580
|
+
this.f3n_1.m33(client, this.g3n_1);
|
|
5574
5581
|
};
|
|
5575
5582
|
function ClientPluginBuilder$onClose$lambda() {
|
|
5576
5583
|
return Unit_instance;
|
|
@@ -5585,13 +5592,13 @@
|
|
|
5585
5592
|
var tmp_0 = this;
|
|
5586
5593
|
tmp_0.j34_1 = ClientPluginBuilder$onClose$lambda;
|
|
5587
5594
|
}
|
|
5588
|
-
protoOf(ClientPluginBuilder).
|
|
5595
|
+
protoOf(ClientPluginBuilder).p3m = function (block) {
|
|
5589
5596
|
this.k34(RequestHook_instance, block);
|
|
5590
5597
|
};
|
|
5591
|
-
protoOf(ClientPluginBuilder).
|
|
5598
|
+
protoOf(ClientPluginBuilder).h3n = function (block) {
|
|
5592
5599
|
this.k34(TransformRequestBodyHook_instance, block);
|
|
5593
5600
|
};
|
|
5594
|
-
protoOf(ClientPluginBuilder).
|
|
5601
|
+
protoOf(ClientPluginBuilder).m3f = function (block) {
|
|
5595
5602
|
this.k34(TransformResponseBodyHook_instance, block);
|
|
5596
5603
|
};
|
|
5597
5604
|
protoOf(ClientPluginBuilder).k34 = function (hook, handler) {
|
|
@@ -5601,18 +5608,18 @@
|
|
|
5601
5608
|
return Unit_instance;
|
|
5602
5609
|
}
|
|
5603
5610
|
function ClientPluginInstance(key, config, body) {
|
|
5604
|
-
this.
|
|
5605
|
-
this.
|
|
5606
|
-
this.
|
|
5611
|
+
this.i3n_1 = key;
|
|
5612
|
+
this.j3n_1 = config;
|
|
5613
|
+
this.k3n_1 = body;
|
|
5607
5614
|
var tmp = this;
|
|
5608
|
-
tmp.
|
|
5615
|
+
tmp.l3n_1 = ClientPluginInstance$onClose$lambda;
|
|
5609
5616
|
}
|
|
5610
5617
|
protoOf(ClientPluginInstance).c2w = function (scope) {
|
|
5611
|
-
var tmp0 = new ClientPluginBuilder(this.
|
|
5618
|
+
var tmp0 = new ClientPluginBuilder(this.i3n_1, scope, this.j3n_1);
|
|
5612
5619
|
// Inline function 'kotlin.apply' call
|
|
5613
|
-
this.
|
|
5620
|
+
this.k3n_1(tmp0);
|
|
5614
5621
|
var pluginBuilder = tmp0;
|
|
5615
|
-
this.
|
|
5622
|
+
this.l3n_1 = pluginBuilder.j34_1;
|
|
5616
5623
|
// Inline function 'kotlin.collections.forEach' call
|
|
5617
5624
|
var _iterator__ex2g4s = pluginBuilder.i34_1.p();
|
|
5618
5625
|
while (_iterator__ex2g4s.q()) {
|
|
@@ -5622,7 +5629,7 @@
|
|
|
5622
5629
|
}
|
|
5623
5630
|
};
|
|
5624
5631
|
function SetupRequest$install$slambda($handler, resultContinuation) {
|
|
5625
|
-
this.
|
|
5632
|
+
this.u3n_1 = $handler;
|
|
5626
5633
|
CoroutineImpl.call(this, resultContinuation);
|
|
5627
5634
|
}
|
|
5628
5635
|
protoOf(SetupRequest$install$slambda).o2u = function ($this$intercept, it, $completion) {
|
|
@@ -5644,7 +5651,7 @@
|
|
|
5644
5651
|
case 0:
|
|
5645
5652
|
this.e9_1 = 2;
|
|
5646
5653
|
this.d9_1 = 1;
|
|
5647
|
-
suspendResult = this.
|
|
5654
|
+
suspendResult = this.u3n_1(this.v3n_1.g2c_1, this);
|
|
5648
5655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5649
5656
|
return suspendResult;
|
|
5650
5657
|
}
|
|
@@ -5667,9 +5674,9 @@
|
|
|
5667
5674
|
while (true);
|
|
5668
5675
|
};
|
|
5669
5676
|
protoOf(SetupRequest$install$slambda).p2u = function ($this$intercept, it, completion) {
|
|
5670
|
-
var i = new SetupRequest$install$slambda(this.
|
|
5671
|
-
i.
|
|
5672
|
-
i.
|
|
5677
|
+
var i = new SetupRequest$install$slambda(this.u3n_1, completion);
|
|
5678
|
+
i.v3n_1 = $this$intercept;
|
|
5679
|
+
i.w3n_1 = it;
|
|
5673
5680
|
return i;
|
|
5674
5681
|
};
|
|
5675
5682
|
function SetupRequest$install$slambda_0($handler, resultContinuation) {
|
|
@@ -5682,41 +5689,41 @@
|
|
|
5682
5689
|
}
|
|
5683
5690
|
function SetupRequest() {
|
|
5684
5691
|
}
|
|
5685
|
-
protoOf(SetupRequest).
|
|
5692
|
+
protoOf(SetupRequest).x3n = function (client, handler) {
|
|
5686
5693
|
var tmp = Phases_getInstance().h33_1;
|
|
5687
5694
|
client.u2t_1.k2c(tmp, SetupRequest$install$slambda_0(handler, null));
|
|
5688
5695
|
};
|
|
5689
5696
|
protoOf(SetupRequest).m33 = function (client, handler) {
|
|
5690
|
-
return this.
|
|
5697
|
+
return this.x3n(client, (!(handler == null) ? isSuspendFunction(handler, 1) : false) ? handler : THROW_CCE());
|
|
5691
5698
|
};
|
|
5692
5699
|
var SetupRequest_instance;
|
|
5693
5700
|
function SetupRequest_getInstance() {
|
|
5694
5701
|
return SetupRequest_instance;
|
|
5695
5702
|
}
|
|
5696
5703
|
function Sender_0(httpSendSender, coroutineContext) {
|
|
5697
|
-
this.
|
|
5698
|
-
this.
|
|
5704
|
+
this.m3d_1 = httpSendSender;
|
|
5705
|
+
this.n3d_1 = coroutineContext;
|
|
5699
5706
|
}
|
|
5700
5707
|
protoOf(Sender_0).nn = function () {
|
|
5701
|
-
return this.
|
|
5708
|
+
return this.n3d_1;
|
|
5702
5709
|
};
|
|
5703
|
-
protoOf(Sender_0).
|
|
5704
|
-
return this.
|
|
5710
|
+
protoOf(Sender_0).o3d = function (requestBuilder, $completion) {
|
|
5711
|
+
return this.m3d_1.l3j(requestBuilder, $completion);
|
|
5705
5712
|
};
|
|
5706
5713
|
function Send$install$slambda($handler, $client, resultContinuation) {
|
|
5707
|
-
this.
|
|
5708
|
-
this.
|
|
5714
|
+
this.g3o_1 = $handler;
|
|
5715
|
+
this.h3o_1 = $client;
|
|
5709
5716
|
CoroutineImpl.call(this, resultContinuation);
|
|
5710
5717
|
}
|
|
5711
|
-
protoOf(Send$install$slambda).
|
|
5712
|
-
var tmp = this.
|
|
5718
|
+
protoOf(Send$install$slambda).k3o = function ($this$intercept, request, $completion) {
|
|
5719
|
+
var tmp = this.l3o($this$intercept, request, $completion);
|
|
5713
5720
|
tmp.f9_1 = Unit_instance;
|
|
5714
5721
|
tmp.g9_1 = null;
|
|
5715
5722
|
return tmp.l9();
|
|
5716
5723
|
};
|
|
5717
5724
|
protoOf(Send$install$slambda).w9 = function (p1, p2, $completion) {
|
|
5718
5725
|
var tmp = (!(p1 == null) ? isInterface(p1, Sender) : false) ? p1 : THROW_CCE();
|
|
5719
|
-
return this.
|
|
5726
|
+
return this.k3o(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
5720
5727
|
};
|
|
5721
5728
|
protoOf(Send$install$slambda).l9 = function () {
|
|
5722
5729
|
var suspendResult = this.f9_1;
|
|
@@ -5727,7 +5734,7 @@
|
|
|
5727
5734
|
case 0:
|
|
5728
5735
|
this.e9_1 = 2;
|
|
5729
5736
|
this.d9_1 = 1;
|
|
5730
|
-
suspendResult = this.
|
|
5737
|
+
suspendResult = this.g3o_1(new Sender_0(this.i3o_1, this.h3o_1.t2t_1), this.j3o_1, this);
|
|
5731
5738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5732
5739
|
return suspendResult;
|
|
5733
5740
|
}
|
|
@@ -5749,28 +5756,28 @@
|
|
|
5749
5756
|
}
|
|
5750
5757
|
while (true);
|
|
5751
5758
|
};
|
|
5752
|
-
protoOf(Send$install$slambda).
|
|
5753
|
-
var i = new Send$install$slambda(this.
|
|
5754
|
-
i.
|
|
5755
|
-
i.
|
|
5759
|
+
protoOf(Send$install$slambda).l3o = function ($this$intercept, request, completion) {
|
|
5760
|
+
var i = new Send$install$slambda(this.g3o_1, this.h3o_1, completion);
|
|
5761
|
+
i.i3o_1 = $this$intercept;
|
|
5762
|
+
i.j3o_1 = request;
|
|
5756
5763
|
return i;
|
|
5757
5764
|
};
|
|
5758
5765
|
function Send$install$slambda_0($handler, $client, resultContinuation) {
|
|
5759
5766
|
var i = new Send$install$slambda($handler, $client, resultContinuation);
|
|
5760
5767
|
var l = function ($this$intercept, request, $completion) {
|
|
5761
|
-
return i.
|
|
5768
|
+
return i.k3o($this$intercept, request, $completion);
|
|
5762
5769
|
};
|
|
5763
5770
|
l.$arity = 2;
|
|
5764
5771
|
return l;
|
|
5765
5772
|
}
|
|
5766
5773
|
function Send() {
|
|
5767
5774
|
}
|
|
5768
|
-
protoOf(Send).
|
|
5775
|
+
protoOf(Send).m3o = function (client, handler) {
|
|
5769
5776
|
var tmp = plugin(client, Plugin_getInstance_0());
|
|
5770
|
-
tmp.
|
|
5777
|
+
tmp.x3k(Send$install$slambda_0(handler, client, null));
|
|
5771
5778
|
};
|
|
5772
5779
|
protoOf(Send).m33 = function (client, handler) {
|
|
5773
|
-
return this.
|
|
5780
|
+
return this.m3o(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
5774
5781
|
};
|
|
5775
5782
|
var Send_instance;
|
|
5776
5783
|
function Send_getInstance() {
|
|
@@ -5783,8 +5790,8 @@
|
|
|
5783
5790
|
return new ClientPluginImpl(name, createConfiguration, body);
|
|
5784
5791
|
}
|
|
5785
5792
|
function ClientPluginImpl(name, createConfiguration, body) {
|
|
5786
|
-
this.
|
|
5787
|
-
this.
|
|
5793
|
+
this.n3o_1 = createConfiguration;
|
|
5794
|
+
this.o3o_1 = body;
|
|
5788
5795
|
var tmp = this;
|
|
5789
5796
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
5790
5797
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -5805,26 +5812,26 @@
|
|
|
5805
5812
|
}
|
|
5806
5813
|
var tmp$ret$0 = tmp_1;
|
|
5807
5814
|
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$0);
|
|
5808
|
-
tmp.
|
|
5815
|
+
tmp.p3o_1 = new AttributeKey(name, tmp$ret$1);
|
|
5809
5816
|
}
|
|
5810
5817
|
protoOf(ClientPluginImpl).y = function () {
|
|
5811
|
-
return this.
|
|
5818
|
+
return this.p3o_1;
|
|
5812
5819
|
};
|
|
5813
|
-
protoOf(ClientPluginImpl).
|
|
5820
|
+
protoOf(ClientPluginImpl).q3o = function (block) {
|
|
5814
5821
|
// Inline function 'kotlin.apply' call
|
|
5815
|
-
var this_0 = this.
|
|
5822
|
+
var this_0 = this.n3o_1();
|
|
5816
5823
|
block(this_0);
|
|
5817
5824
|
var config = this_0;
|
|
5818
|
-
return new ClientPluginInstance(this.
|
|
5825
|
+
return new ClientPluginInstance(this.p3o_1, config, this.o3o_1);
|
|
5819
5826
|
};
|
|
5820
5827
|
protoOf(ClientPluginImpl).a2x = function (block) {
|
|
5821
|
-
return this.
|
|
5828
|
+
return this.q3o(block);
|
|
5822
5829
|
};
|
|
5823
|
-
protoOf(ClientPluginImpl).
|
|
5830
|
+
protoOf(ClientPluginImpl).r3o = function (plugin, scope) {
|
|
5824
5831
|
plugin.c2w(scope);
|
|
5825
5832
|
};
|
|
5826
5833
|
protoOf(ClientPluginImpl).b2x = function (plugin, scope) {
|
|
5827
|
-
return this.
|
|
5834
|
+
return this.r3o(plugin instanceof ClientPluginInstance ? plugin : THROW_CCE(), scope);
|
|
5828
5835
|
};
|
|
5829
5836
|
function createClientPlugin$lambda() {
|
|
5830
5837
|
return Unit_instance;
|
|
@@ -5834,7 +5841,7 @@
|
|
|
5834
5841
|
function OnRequestContext() {
|
|
5835
5842
|
}
|
|
5836
5843
|
function RequestHook$install$slambda($handler, resultContinuation) {
|
|
5837
|
-
this.
|
|
5844
|
+
this.a3p_1 = $handler;
|
|
5838
5845
|
CoroutineImpl.call(this, resultContinuation);
|
|
5839
5846
|
}
|
|
5840
5847
|
protoOf(RequestHook$install$slambda).o2u = function ($this$intercept, it, $completion) {
|
|
@@ -5856,7 +5863,7 @@
|
|
|
5856
5863
|
case 0:
|
|
5857
5864
|
this.e9_1 = 2;
|
|
5858
5865
|
this.d9_1 = 1;
|
|
5859
|
-
suspendResult = this.
|
|
5866
|
+
suspendResult = this.a3p_1(new OnRequestContext(), this.b3p_1.g2c_1, this.b3p_1.j2b(), this);
|
|
5860
5867
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5861
5868
|
return suspendResult;
|
|
5862
5869
|
}
|
|
@@ -5879,9 +5886,9 @@
|
|
|
5879
5886
|
while (true);
|
|
5880
5887
|
};
|
|
5881
5888
|
protoOf(RequestHook$install$slambda).p2u = function ($this$intercept, it, completion) {
|
|
5882
|
-
var i = new RequestHook$install$slambda(this.
|
|
5883
|
-
i.
|
|
5884
|
-
i.
|
|
5889
|
+
var i = new RequestHook$install$slambda(this.a3p_1, completion);
|
|
5890
|
+
i.b3p_1 = $this$intercept;
|
|
5891
|
+
i.c3p_1 = it;
|
|
5885
5892
|
return i;
|
|
5886
5893
|
};
|
|
5887
5894
|
function RequestHook$install$slambda_0($handler, resultContinuation) {
|
|
@@ -5894,12 +5901,12 @@
|
|
|
5894
5901
|
}
|
|
5895
5902
|
function RequestHook() {
|
|
5896
5903
|
}
|
|
5897
|
-
protoOf(RequestHook).
|
|
5904
|
+
protoOf(RequestHook).d3p = function (client, handler) {
|
|
5898
5905
|
var tmp = Phases_getInstance().i33_1;
|
|
5899
5906
|
client.u2t_1.k2c(tmp, RequestHook$install$slambda_0(handler, null));
|
|
5900
5907
|
};
|
|
5901
5908
|
protoOf(RequestHook).m33 = function (client, handler) {
|
|
5902
|
-
return this.
|
|
5909
|
+
return this.d3p(client, (!(handler == null) ? isSuspendFunction(handler, 3) : false) ? handler : THROW_CCE());
|
|
5903
5910
|
};
|
|
5904
5911
|
var RequestHook_instance;
|
|
5905
5912
|
function RequestHook_getInstance() {
|
|
@@ -5908,7 +5915,7 @@
|
|
|
5908
5915
|
function TransformRequestBodyContext() {
|
|
5909
5916
|
}
|
|
5910
5917
|
function TransformRequestBodyHook$install$slambda($handler, resultContinuation) {
|
|
5911
|
-
this.
|
|
5918
|
+
this.m3p_1 = $handler;
|
|
5912
5919
|
CoroutineImpl.call(this, resultContinuation);
|
|
5913
5920
|
}
|
|
5914
5921
|
protoOf(TransformRequestBodyHook$install$slambda).o2u = function ($this$intercept, it, $completion) {
|
|
@@ -5930,17 +5937,17 @@
|
|
|
5930
5937
|
case 0:
|
|
5931
5938
|
this.e9_1 = 4;
|
|
5932
5939
|
this.d9_1 = 1;
|
|
5933
|
-
suspendResult = this.
|
|
5940
|
+
suspendResult = this.m3p_1(new TransformRequestBodyContext(), this.n3p_1.g2c_1, this.n3p_1.j2b(), this.n3p_1.g2c_1.q3p(), this);
|
|
5934
5941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5935
5942
|
return suspendResult;
|
|
5936
5943
|
}
|
|
5937
5944
|
|
|
5938
5945
|
continue $sm;
|
|
5939
5946
|
case 1:
|
|
5940
|
-
this.
|
|
5941
|
-
if (!(this.
|
|
5947
|
+
this.p3p_1 = suspendResult;
|
|
5948
|
+
if (!(this.p3p_1 == null)) {
|
|
5942
5949
|
this.d9_1 = 2;
|
|
5943
|
-
suspendResult = this.
|
|
5950
|
+
suspendResult = this.n3p_1.k2b(this.p3p_1, this);
|
|
5944
5951
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5945
5952
|
return suspendResult;
|
|
5946
5953
|
}
|
|
@@ -5970,9 +5977,9 @@
|
|
|
5970
5977
|
while (true);
|
|
5971
5978
|
};
|
|
5972
5979
|
protoOf(TransformRequestBodyHook$install$slambda).p2u = function ($this$intercept, it, completion) {
|
|
5973
|
-
var i = new TransformRequestBodyHook$install$slambda(this.
|
|
5974
|
-
i.
|
|
5975
|
-
i.
|
|
5980
|
+
var i = new TransformRequestBodyHook$install$slambda(this.m3p_1, completion);
|
|
5981
|
+
i.n3p_1 = $this$intercept;
|
|
5982
|
+
i.o3p_1 = it;
|
|
5976
5983
|
return i;
|
|
5977
5984
|
};
|
|
5978
5985
|
function TransformRequestBodyHook$install$slambda_0($handler, resultContinuation) {
|
|
@@ -5985,19 +5992,19 @@
|
|
|
5985
5992
|
}
|
|
5986
5993
|
function TransformRequestBodyHook() {
|
|
5987
5994
|
}
|
|
5988
|
-
protoOf(TransformRequestBodyHook).
|
|
5995
|
+
protoOf(TransformRequestBodyHook).r3p = function (client, handler) {
|
|
5989
5996
|
var tmp = Phases_getInstance().j33_1;
|
|
5990
5997
|
client.u2t_1.k2c(tmp, TransformRequestBodyHook$install$slambda_0(handler, null));
|
|
5991
5998
|
};
|
|
5992
5999
|
protoOf(TransformRequestBodyHook).m33 = function (client, handler) {
|
|
5993
|
-
return this.
|
|
6000
|
+
return this.r3p(client, (!(handler == null) ? isSuspendFunction(handler, 4) : false) ? handler : THROW_CCE());
|
|
5994
6001
|
};
|
|
5995
6002
|
var TransformRequestBodyHook_instance;
|
|
5996
6003
|
function TransformRequestBodyHook_getInstance() {
|
|
5997
6004
|
return TransformRequestBodyHook_instance;
|
|
5998
6005
|
}
|
|
5999
6006
|
function TransformResponseBodyHook$install$slambda($handler, resultContinuation) {
|
|
6000
|
-
this.
|
|
6007
|
+
this.a3q_1 = $handler;
|
|
6001
6008
|
CoroutineImpl.call(this, resultContinuation);
|
|
6002
6009
|
}
|
|
6003
6010
|
protoOf(TransformResponseBodyHook$install$slambda).j2v = function ($this$intercept, it, $completion) {
|
|
@@ -6018,44 +6025,44 @@
|
|
|
6018
6025
|
switch (tmp) {
|
|
6019
6026
|
case 0:
|
|
6020
6027
|
this.e9_1 = 3;
|
|
6021
|
-
this.
|
|
6022
|
-
this.
|
|
6023
|
-
this.
|
|
6024
|
-
var tmp_0 = this.
|
|
6028
|
+
this.d3q_1 = this.b3q_1.j2b();
|
|
6029
|
+
this.e3q_1 = this.d3q_1.hg();
|
|
6030
|
+
this.f3q_1 = this.d3q_1.ig();
|
|
6031
|
+
var tmp_0 = this.f3q_1;
|
|
6025
6032
|
if (!isInterface(tmp_0, ByteReadChannel))
|
|
6026
6033
|
return Unit_instance;
|
|
6027
6034
|
this.d9_1 = 1;
|
|
6028
|
-
suspendResult = this.
|
|
6035
|
+
suspendResult = this.a3q_1(new TransformResponseBodyContext(), this.b3q_1.g2c_1.v2u(), this.f3q_1, this.e3q_1, this);
|
|
6029
6036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6030
6037
|
return suspendResult;
|
|
6031
6038
|
}
|
|
6032
6039
|
|
|
6033
6040
|
continue $sm;
|
|
6034
6041
|
case 1:
|
|
6035
|
-
this.
|
|
6042
|
+
this.g3q_1 = suspendResult;
|
|
6036
6043
|
var tmp_1 = this;
|
|
6037
6044
|
var tmp_2;
|
|
6038
|
-
if (this.
|
|
6045
|
+
if (this.g3q_1 == null) {
|
|
6039
6046
|
return Unit_instance;
|
|
6040
6047
|
} else {
|
|
6041
|
-
tmp_2 = this.
|
|
6048
|
+
tmp_2 = this.g3q_1;
|
|
6042
6049
|
}
|
|
6043
6050
|
|
|
6044
|
-
tmp_1.
|
|
6051
|
+
tmp_1.h3q_1 = tmp_2;
|
|
6045
6052
|
var tmp_3;
|
|
6046
|
-
var tmp_4 = this.
|
|
6053
|
+
var tmp_4 = this.h3q_1;
|
|
6047
6054
|
if (!(tmp_4 instanceof NullBody)) {
|
|
6048
|
-
tmp_3 = !this.
|
|
6055
|
+
tmp_3 = !this.e3q_1.y2c_1.eb(this.h3q_1);
|
|
6049
6056
|
} else {
|
|
6050
6057
|
tmp_3 = false;
|
|
6051
6058
|
}
|
|
6052
6059
|
|
|
6053
6060
|
if (tmp_3) {
|
|
6054
|
-
throw IllegalStateException_init_$Create$('transformResponseBody returned ' + toString(this.
|
|
6061
|
+
throw IllegalStateException_init_$Create$('transformResponseBody returned ' + toString(this.h3q_1) + ' but expected value of type ' + this.e3q_1.toString());
|
|
6055
6062
|
}
|
|
6056
6063
|
|
|
6057
6064
|
this.d9_1 = 2;
|
|
6058
|
-
suspendResult = this.
|
|
6065
|
+
suspendResult = this.b3q_1.k2b(new HttpResponseContainer(this.e3q_1, this.h3q_1), this);
|
|
6059
6066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6060
6067
|
return suspendResult;
|
|
6061
6068
|
}
|
|
@@ -6078,9 +6085,9 @@
|
|
|
6078
6085
|
while (true);
|
|
6079
6086
|
};
|
|
6080
6087
|
protoOf(TransformResponseBodyHook$install$slambda).k2v = function ($this$intercept, it, completion) {
|
|
6081
|
-
var i = new TransformResponseBodyHook$install$slambda(this.
|
|
6082
|
-
i.
|
|
6083
|
-
i.
|
|
6088
|
+
var i = new TransformResponseBodyHook$install$slambda(this.a3q_1, completion);
|
|
6089
|
+
i.b3q_1 = $this$intercept;
|
|
6090
|
+
i.c3q_1 = it;
|
|
6084
6091
|
return i;
|
|
6085
6092
|
};
|
|
6086
6093
|
function TransformResponseBodyHook$install$slambda_0($handler, resultContinuation) {
|
|
@@ -6093,20 +6100,20 @@
|
|
|
6093
6100
|
}
|
|
6094
6101
|
function TransformResponseBodyHook() {
|
|
6095
6102
|
}
|
|
6096
|
-
protoOf(TransformResponseBodyHook).
|
|
6103
|
+
protoOf(TransformResponseBodyHook).i3q = function (client, handler) {
|
|
6097
6104
|
var tmp = Phases_getInstance_2().v2w_1;
|
|
6098
6105
|
client.v2t_1.k2c(tmp, TransformResponseBodyHook$install$slambda_0(handler, null));
|
|
6099
6106
|
};
|
|
6100
6107
|
protoOf(TransformResponseBodyHook).m33 = function (client, handler) {
|
|
6101
|
-
return this.
|
|
6108
|
+
return this.i3q(client, (!(handler == null) ? isSuspendFunction(handler, 4) : false) ? handler : THROW_CCE());
|
|
6102
6109
|
};
|
|
6103
6110
|
var TransformResponseBodyHook_instance;
|
|
6104
6111
|
function TransformResponseBodyHook_getInstance() {
|
|
6105
6112
|
return TransformResponseBodyHook_instance;
|
|
6106
6113
|
}
|
|
6107
6114
|
function ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda(this$0, this$1, resultContinuation) {
|
|
6108
|
-
this.
|
|
6109
|
-
this.
|
|
6115
|
+
this.r3q_1 = this$0;
|
|
6116
|
+
this.s3q_1 = this$1;
|
|
6110
6117
|
CoroutineImpl.call(this, resultContinuation);
|
|
6111
6118
|
}
|
|
6112
6119
|
protoOf(ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda).g30 = function ($this$writer, $completion) {
|
|
@@ -6126,19 +6133,19 @@
|
|
|
6126
6133
|
switch (tmp) {
|
|
6127
6134
|
case 0:
|
|
6128
6135
|
this.e9_1 = 12;
|
|
6129
|
-
this.
|
|
6136
|
+
this.u3q_1 = BytePacketBuilder();
|
|
6130
6137
|
this.e9_1 = 11;
|
|
6131
6138
|
this.d9_1 = 1;
|
|
6132
6139
|
continue $sm;
|
|
6133
6140
|
case 1:
|
|
6134
|
-
if (!!this.
|
|
6141
|
+
if (!!this.r3q_1.k39_1.t1g()) {
|
|
6135
6142
|
this.d9_1 = 10;
|
|
6136
6143
|
continue $sm;
|
|
6137
6144
|
}
|
|
6138
6145
|
|
|
6139
|
-
if (get_availableForRead(this.
|
|
6146
|
+
if (get_availableForRead(this.r3q_1.k39_1) === 0) {
|
|
6140
6147
|
this.d9_1 = 2;
|
|
6141
|
-
suspendResult = this.
|
|
6148
|
+
suspendResult = this.r3q_1.k39_1.v1g(VOID, this);
|
|
6142
6149
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6143
6150
|
return suspendResult;
|
|
6144
6151
|
}
|
|
@@ -6153,18 +6160,18 @@
|
|
|
6153
6160
|
continue $sm;
|
|
6154
6161
|
case 3:
|
|
6155
6162
|
this.d9_1 = 4;
|
|
6156
|
-
suspendResult = readPacket(this.
|
|
6163
|
+
suspendResult = readPacket(this.r3q_1.k39_1, get_availableForRead(this.r3q_1.k39_1), this);
|
|
6157
6164
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6158
6165
|
return suspendResult;
|
|
6159
6166
|
}
|
|
6160
6167
|
|
|
6161
6168
|
continue $sm;
|
|
6162
6169
|
case 4:
|
|
6163
|
-
this.
|
|
6170
|
+
this.w3q_1 = suspendResult;
|
|
6164
6171
|
this.e9_1 = 8;
|
|
6165
|
-
if (!this.
|
|
6172
|
+
if (!this.t3q_1.c1k_1.r1g()) {
|
|
6166
6173
|
this.d9_1 = 5;
|
|
6167
|
-
suspendResult = writePacket(this.
|
|
6174
|
+
suspendResult = writePacket(this.t3q_1.c1k_1, this.w3q_1.l1c(), this);
|
|
6168
6175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6169
6176
|
return suspendResult;
|
|
6170
6177
|
}
|
|
@@ -6176,7 +6183,7 @@
|
|
|
6176
6183
|
|
|
6177
6184
|
case 5:
|
|
6178
6185
|
this.d9_1 = 6;
|
|
6179
|
-
suspendResult = this.
|
|
6186
|
+
suspendResult = this.t3q_1.c1k_1.n1g(this);
|
|
6180
6187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6181
6188
|
return suspendResult;
|
|
6182
6189
|
}
|
|
@@ -6202,18 +6209,18 @@
|
|
|
6202
6209
|
|
|
6203
6210
|
case 9:
|
|
6204
6211
|
this.e9_1 = 11;
|
|
6205
|
-
writePacket_0(this.
|
|
6212
|
+
writePacket_0(this.u3q_1, this.w3q_1);
|
|
6206
6213
|
this.d9_1 = 1;
|
|
6207
6214
|
continue $sm;
|
|
6208
6215
|
case 10:
|
|
6209
|
-
var tmp0_safe_receiver = this.
|
|
6216
|
+
var tmp0_safe_receiver = this.r3q_1.k39_1.p1g();
|
|
6210
6217
|
if (tmp0_safe_receiver == null)
|
|
6211
6218
|
null;
|
|
6212
6219
|
else {
|
|
6213
6220
|
throw tmp0_safe_receiver;
|
|
6214
6221
|
}
|
|
6215
6222
|
|
|
6216
|
-
this.
|
|
6223
|
+
this.v3q_1 = this.s3q_1.x3q_1.fu(readByteArray(build(this.u3q_1)));
|
|
6217
6224
|
this.e9_1 = 12;
|
|
6218
6225
|
this.d9_1 = 13;
|
|
6219
6226
|
continue $sm;
|
|
@@ -6223,8 +6230,8 @@
|
|
|
6223
6230
|
if (tmp_1 instanceof Error) {
|
|
6224
6231
|
var cause = this.g9_1;
|
|
6225
6232
|
var tmp_2 = this;
|
|
6226
|
-
this.
|
|
6227
|
-
this.
|
|
6233
|
+
this.u3q_1.d1d();
|
|
6234
|
+
this.s3q_1.x3q_1.hu(cause);
|
|
6228
6235
|
throw cause;
|
|
6229
6236
|
} else {
|
|
6230
6237
|
throw this.g9_1;
|
|
@@ -6248,8 +6255,8 @@
|
|
|
6248
6255
|
while (true);
|
|
6249
6256
|
};
|
|
6250
6257
|
protoOf(ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda).h30 = function ($this$writer, completion) {
|
|
6251
|
-
var i = new ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda(this.
|
|
6252
|
-
i.
|
|
6258
|
+
var i = new ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda(this.r3q_1, this.s3q_1, completion);
|
|
6259
|
+
i.t3q_1 = $this$writer;
|
|
6253
6260
|
return i;
|
|
6254
6261
|
};
|
|
6255
6262
|
function ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda_0(this$0, this$1, resultContinuation) {
|
|
@@ -6262,11 +6269,11 @@
|
|
|
6262
6269
|
}
|
|
6263
6270
|
function CopyFromSourceTask($outer, savedResponse) {
|
|
6264
6271
|
savedResponse = savedResponse === VOID ? CompletableDeferred() : savedResponse;
|
|
6265
|
-
this.
|
|
6266
|
-
this.
|
|
6272
|
+
this.z3q_1 = $outer;
|
|
6273
|
+
this.x3q_1 = savedResponse;
|
|
6267
6274
|
}
|
|
6268
|
-
protoOf(CopyFromSourceTask).
|
|
6269
|
-
var tmp = this.
|
|
6275
|
+
protoOf(CopyFromSourceTask).a3r = function () {
|
|
6276
|
+
var tmp = this.y3q_1;
|
|
6270
6277
|
if (!(tmp == null))
|
|
6271
6278
|
return tmp;
|
|
6272
6279
|
else {
|
|
@@ -6274,22 +6281,22 @@
|
|
|
6274
6281
|
}
|
|
6275
6282
|
};
|
|
6276
6283
|
protoOf(CopyFromSourceTask).ko = function () {
|
|
6277
|
-
this.
|
|
6278
|
-
return this.
|
|
6284
|
+
this.y3q_1 = this.b3r();
|
|
6285
|
+
return this.a3r().a1k_1;
|
|
6279
6286
|
};
|
|
6280
|
-
protoOf(CopyFromSourceTask).
|
|
6287
|
+
protoOf(CopyFromSourceTask).b3r = function () {
|
|
6281
6288
|
var tmp = GlobalScope_instance;
|
|
6282
6289
|
var tmp_0 = Dispatchers_getInstance().iy_1;
|
|
6283
|
-
return writer(tmp, tmp_0, VOID, ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda_0(this.
|
|
6290
|
+
return writer(tmp, tmp_0, VOID, ByteChannelReplay$CopyFromSourceTask$receiveBody$slambda_0(this.z3q_1, this, null));
|
|
6284
6291
|
};
|
|
6285
|
-
protoOf(CopyFromSourceTask).
|
|
6286
|
-
if (!get_isCompleted(this.
|
|
6287
|
-
this.
|
|
6292
|
+
protoOf(CopyFromSourceTask).c3r = function ($completion) {
|
|
6293
|
+
if (!get_isCompleted(this.a3r())) {
|
|
6294
|
+
this.a3r().a1k_1.x1g(new SaveBodyAbandonedReadException());
|
|
6288
6295
|
}
|
|
6289
|
-
return this.
|
|
6296
|
+
return this.x3q_1.hq($completion);
|
|
6290
6297
|
};
|
|
6291
6298
|
function ByteChannelReplay$replay$slambda($copyTask, resultContinuation) {
|
|
6292
|
-
this.
|
|
6299
|
+
this.l3r_1 = $copyTask;
|
|
6293
6300
|
CoroutineImpl.call(this, resultContinuation);
|
|
6294
6301
|
}
|
|
6295
6302
|
protoOf(ByteChannelReplay$replay$slambda).g30 = function ($this$writer, $completion) {
|
|
@@ -6310,16 +6317,16 @@
|
|
|
6310
6317
|
case 0:
|
|
6311
6318
|
this.e9_1 = 3;
|
|
6312
6319
|
this.d9_1 = 1;
|
|
6313
|
-
suspendResult = ensureNotNull(this.
|
|
6320
|
+
suspendResult = ensureNotNull(this.l3r_1._v).c3r(this);
|
|
6314
6321
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6315
6322
|
return suspendResult;
|
|
6316
6323
|
}
|
|
6317
6324
|
|
|
6318
6325
|
continue $sm;
|
|
6319
6326
|
case 1:
|
|
6320
|
-
this.
|
|
6327
|
+
this.n3r_1 = suspendResult;
|
|
6321
6328
|
this.d9_1 = 2;
|
|
6322
|
-
suspendResult = writeFully(this.
|
|
6329
|
+
suspendResult = writeFully(this.m3r_1.c1k_1, this.n3r_1, VOID, VOID, this);
|
|
6323
6330
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6324
6331
|
return suspendResult;
|
|
6325
6332
|
}
|
|
@@ -6342,8 +6349,8 @@
|
|
|
6342
6349
|
while (true);
|
|
6343
6350
|
};
|
|
6344
6351
|
protoOf(ByteChannelReplay$replay$slambda).h30 = function ($this$writer, completion) {
|
|
6345
|
-
var i = new ByteChannelReplay$replay$slambda(this.
|
|
6346
|
-
i.
|
|
6352
|
+
var i = new ByteChannelReplay$replay$slambda(this.l3r_1, completion);
|
|
6353
|
+
i.m3r_1 = $this$writer;
|
|
6347
6354
|
return i;
|
|
6348
6355
|
};
|
|
6349
6356
|
function ByteChannelReplay$replay$slambda_0($copyTask, resultContinuation) {
|
|
@@ -6404,59 +6411,59 @@
|
|
|
6404
6411
|
this.t2u_1 = new DelegatedResponse(this, block, originCall.v2u(), responseHeaders);
|
|
6405
6412
|
}
|
|
6406
6413
|
function DelegatedRequest(call, origin) {
|
|
6407
|
-
this.
|
|
6408
|
-
this.
|
|
6414
|
+
this.o3r_1 = origin;
|
|
6415
|
+
this.p3r_1 = call;
|
|
6409
6416
|
}
|
|
6410
6417
|
protoOf(DelegatedRequest).e2z = function () {
|
|
6411
|
-
return this.
|
|
6418
|
+
return this.p3r_1;
|
|
6412
6419
|
};
|
|
6413
6420
|
protoOf(DelegatedRequest).nn = function () {
|
|
6414
|
-
return this.
|
|
6421
|
+
return this.o3r_1.nn();
|
|
6415
6422
|
};
|
|
6416
6423
|
protoOf(DelegatedRequest).b2z = function () {
|
|
6417
|
-
return this.
|
|
6424
|
+
return this.o3r_1.b2z();
|
|
6418
6425
|
};
|
|
6419
6426
|
protoOf(DelegatedRequest).h2y = function () {
|
|
6420
|
-
return this.
|
|
6427
|
+
return this.o3r_1.h2y();
|
|
6421
6428
|
};
|
|
6422
6429
|
protoOf(DelegatedRequest).k2x = function () {
|
|
6423
|
-
return this.
|
|
6430
|
+
return this.o3r_1.k2x();
|
|
6424
6431
|
};
|
|
6425
6432
|
protoOf(DelegatedRequest).o2j = function () {
|
|
6426
|
-
return this.
|
|
6433
|
+
return this.o3r_1.o2j();
|
|
6427
6434
|
};
|
|
6428
6435
|
function DelegatedResponse(call, block, origin, headers) {
|
|
6429
6436
|
headers = headers === VOID ? origin.o2j() : headers;
|
|
6430
6437
|
HttpResponse.call(this);
|
|
6431
|
-
this.
|
|
6432
|
-
this.
|
|
6433
|
-
this.
|
|
6434
|
-
this.
|
|
6435
|
-
this.
|
|
6438
|
+
this.q3r_1 = call;
|
|
6439
|
+
this.r3r_1 = block;
|
|
6440
|
+
this.s3r_1 = origin;
|
|
6441
|
+
this.t3r_1 = headers;
|
|
6442
|
+
this.u3r_1 = this.s3r_1.nn();
|
|
6436
6443
|
}
|
|
6437
6444
|
protoOf(DelegatedResponse).e2z = function () {
|
|
6438
|
-
return this.
|
|
6445
|
+
return this.q3r_1;
|
|
6439
6446
|
};
|
|
6440
6447
|
protoOf(DelegatedResponse).o2j = function () {
|
|
6441
|
-
return this.
|
|
6448
|
+
return this.t3r_1;
|
|
6442
6449
|
};
|
|
6443
6450
|
protoOf(DelegatedResponse).f2y = function () {
|
|
6444
|
-
return this.
|
|
6451
|
+
return this.r3r_1();
|
|
6445
6452
|
};
|
|
6446
6453
|
protoOf(DelegatedResponse).nn = function () {
|
|
6447
|
-
return this.
|
|
6454
|
+
return this.u3r_1;
|
|
6448
6455
|
};
|
|
6449
6456
|
protoOf(DelegatedResponse).i2y = function () {
|
|
6450
|
-
return this.
|
|
6457
|
+
return this.s3r_1.i2y();
|
|
6451
6458
|
};
|
|
6452
6459
|
protoOf(DelegatedResponse).n2z = function () {
|
|
6453
|
-
return this.
|
|
6460
|
+
return this.s3r_1.n2z();
|
|
6454
6461
|
};
|
|
6455
6462
|
protoOf(DelegatedResponse).o2z = function () {
|
|
6456
|
-
return this.
|
|
6463
|
+
return this.s3r_1.o2z();
|
|
6457
6464
|
};
|
|
6458
6465
|
protoOf(DelegatedResponse).p2z = function () {
|
|
6459
|
-
return this.
|
|
6466
|
+
return this.s3r_1.p2z();
|
|
6460
6467
|
};
|
|
6461
6468
|
function SSECapability() {
|
|
6462
6469
|
}
|
|
@@ -6516,30 +6523,30 @@
|
|
|
6516
6523
|
function ClientUpgradeContent() {
|
|
6517
6524
|
}
|
|
6518
6525
|
function DefaultHttpRequest(call, data) {
|
|
6519
|
-
this.
|
|
6520
|
-
this.
|
|
6521
|
-
this.
|
|
6522
|
-
this.
|
|
6523
|
-
this.
|
|
6524
|
-
this.
|
|
6526
|
+
this.v3r_1 = call;
|
|
6527
|
+
this.w3r_1 = data.v30_1;
|
|
6528
|
+
this.x3r_1 = data.u30_1;
|
|
6529
|
+
this.y3r_1 = data.x30_1;
|
|
6530
|
+
this.z3r_1 = data.w30_1;
|
|
6531
|
+
this.a3s_1 = data.z30_1;
|
|
6525
6532
|
}
|
|
6526
6533
|
protoOf(DefaultHttpRequest).e2z = function () {
|
|
6527
|
-
return this.
|
|
6534
|
+
return this.v3r_1;
|
|
6528
6535
|
};
|
|
6529
6536
|
protoOf(DefaultHttpRequest).nn = function () {
|
|
6530
6537
|
return this.e2z().nn();
|
|
6531
6538
|
};
|
|
6532
6539
|
protoOf(DefaultHttpRequest).b2z = function () {
|
|
6533
|
-
return this.
|
|
6540
|
+
return this.w3r_1;
|
|
6534
6541
|
};
|
|
6535
6542
|
protoOf(DefaultHttpRequest).h2y = function () {
|
|
6536
|
-
return this.
|
|
6543
|
+
return this.x3r_1;
|
|
6537
6544
|
};
|
|
6538
6545
|
protoOf(DefaultHttpRequest).o2j = function () {
|
|
6539
|
-
return this.
|
|
6546
|
+
return this.z3r_1;
|
|
6540
6547
|
};
|
|
6541
6548
|
protoOf(DefaultHttpRequest).k2x = function () {
|
|
6542
|
-
return this.
|
|
6549
|
+
return this.a3s_1;
|
|
6543
6550
|
};
|
|
6544
6551
|
function get_ResponseAdapterAttributeKey() {
|
|
6545
6552
|
_init_properties_HttpRequest_kt__813lx1();
|
|
@@ -6574,10 +6581,10 @@
|
|
|
6574
6581
|
this.a2w_1.k27(get_BodyTypeAttributeKey());
|
|
6575
6582
|
}
|
|
6576
6583
|
};
|
|
6577
|
-
protoOf(HttpRequestBuilder).
|
|
6584
|
+
protoOf(HttpRequestBuilder).q3p = function () {
|
|
6578
6585
|
return this.a2w_1.h27(get_BodyTypeAttributeKey());
|
|
6579
6586
|
};
|
|
6580
|
-
protoOf(HttpRequestBuilder).
|
|
6587
|
+
protoOf(HttpRequestBuilder).b3s = function (block) {
|
|
6581
6588
|
return block(this.v2v_1, this.v2v_1);
|
|
6582
6589
|
};
|
|
6583
6590
|
protoOf(HttpRequestBuilder).k2f = function () {
|
|
@@ -6597,25 +6604,25 @@
|
|
|
6597
6604
|
};
|
|
6598
6605
|
protoOf(HttpRequestBuilder).t31 = function (builder) {
|
|
6599
6606
|
this.z2v_1 = builder.z2v_1;
|
|
6600
|
-
return this.
|
|
6607
|
+
return this.c3s(builder);
|
|
6601
6608
|
};
|
|
6602
|
-
protoOf(HttpRequestBuilder).
|
|
6609
|
+
protoOf(HttpRequestBuilder).c3s = function (builder) {
|
|
6603
6610
|
this.w2v_1 = builder.w2v_1;
|
|
6604
6611
|
this.y2v_1 = builder.y2v_1;
|
|
6605
|
-
this.u31(builder.
|
|
6612
|
+
this.u31(builder.q3p());
|
|
6606
6613
|
takeFrom(this.v2v_1, builder.v2v_1);
|
|
6607
6614
|
this.v2v_1.w2m_1 = this.v2v_1.w2m_1;
|
|
6608
6615
|
appendAll(this.x2v_1, builder.x2v_1);
|
|
6609
6616
|
putAll(this.a2w_1, builder.a2w_1);
|
|
6610
6617
|
return this;
|
|
6611
6618
|
};
|
|
6612
|
-
protoOf(HttpRequestBuilder).
|
|
6619
|
+
protoOf(HttpRequestBuilder).n3m = function (key, capability) {
|
|
6613
6620
|
var tmp = get_ENGINE_CAPABILITIES_KEY();
|
|
6614
6621
|
var capabilities = this.a2w_1.l27(tmp, HttpRequestBuilder$setCapability$lambda);
|
|
6615
6622
|
// Inline function 'kotlin.collections.set' call
|
|
6616
6623
|
capabilities.n2(key, capability);
|
|
6617
6624
|
};
|
|
6618
|
-
protoOf(HttpRequestBuilder).
|
|
6625
|
+
protoOf(HttpRequestBuilder).y3k = function (key) {
|
|
6619
6626
|
var tmp0_safe_receiver = this.a2w_1.h27(get_ENGINE_CAPABILITIES_KEY());
|
|
6620
6627
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k2(key);
|
|
6621
6628
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
@@ -6651,10 +6658,6 @@
|
|
|
6651
6658
|
protoOf(HttpResponseData).toString = function () {
|
|
6652
6659
|
return 'HttpResponseData=(statusCode=' + this.d2x_1.toString() + ')';
|
|
6653
6660
|
};
|
|
6654
|
-
function url(_this__u8e3s4, urlString) {
|
|
6655
|
-
_init_properties_HttpRequest_kt__813lx1();
|
|
6656
|
-
takeFrom_0(_this__u8e3s4.v2v_1, urlString);
|
|
6657
|
-
}
|
|
6658
6661
|
function headers(_this__u8e3s4, block) {
|
|
6659
6662
|
_init_properties_HttpRequest_kt__813lx1();
|
|
6660
6663
|
// Inline function 'kotlin.apply' call
|
|
@@ -6662,6 +6665,10 @@
|
|
|
6662
6665
|
block(this_0);
|
|
6663
6666
|
return this_0;
|
|
6664
6667
|
}
|
|
6668
|
+
function url(_this__u8e3s4, urlString) {
|
|
6669
|
+
_init_properties_HttpRequest_kt__813lx1();
|
|
6670
|
+
takeFrom_0(_this__u8e3s4.v2v_1, urlString);
|
|
6671
|
+
}
|
|
6665
6672
|
function isUpgradeRequest(_this__u8e3s4) {
|
|
6666
6673
|
_init_properties_HttpRequest_kt__813lx1();
|
|
6667
6674
|
var tmp = _this__u8e3s4.x30_1;
|
|
@@ -6712,10 +6719,10 @@
|
|
|
6712
6719
|
Phases_getInstance();
|
|
6713
6720
|
developmentMode = developmentMode === VOID ? true : developmentMode;
|
|
6714
6721
|
Pipeline.call(this, [Phases_getInstance().h33_1, Phases_getInstance().i33_1, Phases_getInstance().j33_1, Phases_getInstance().k33_1, Phases_getInstance().l33_1]);
|
|
6715
|
-
this.
|
|
6722
|
+
this.l3s_1 = developmentMode;
|
|
6716
6723
|
}
|
|
6717
6724
|
protoOf(HttpRequestPipeline).e2c = function () {
|
|
6718
|
-
return this.
|
|
6725
|
+
return this.l3s_1;
|
|
6719
6726
|
};
|
|
6720
6727
|
function Phases_0() {
|
|
6721
6728
|
Phases_instance_0 = this;
|
|
@@ -6735,10 +6742,10 @@
|
|
|
6735
6742
|
Phases_getInstance_0();
|
|
6736
6743
|
developmentMode = developmentMode === VOID ? true : developmentMode;
|
|
6737
6744
|
Pipeline.call(this, [Phases_getInstance_0().d2w_1, Phases_getInstance_0().e2w_1, Phases_getInstance_0().f2w_1, Phases_getInstance_0().g2w_1, Phases_getInstance_0().h2w_1]);
|
|
6738
|
-
this.
|
|
6745
|
+
this.t3s_1 = developmentMode;
|
|
6739
6746
|
}
|
|
6740
6747
|
protoOf(HttpSendPipeline).e2c = function () {
|
|
6741
|
-
return this.
|
|
6748
|
+
return this.t3s_1;
|
|
6742
6749
|
};
|
|
6743
6750
|
function get_BodyTypeAttributeKey() {
|
|
6744
6751
|
_init_properties_RequestBody_kt__bo3lwf();
|
|
@@ -6803,41 +6810,41 @@
|
|
|
6803
6810
|
}
|
|
6804
6811
|
function DefaultHttpResponse(call, responseData) {
|
|
6805
6812
|
HttpResponse.call(this);
|
|
6806
|
-
this.
|
|
6807
|
-
this.
|
|
6808
|
-
this.
|
|
6809
|
-
this.
|
|
6810
|
-
this.
|
|
6811
|
-
this.
|
|
6813
|
+
this.u3s_1 = call;
|
|
6814
|
+
this.v3s_1 = responseData.i2x_1;
|
|
6815
|
+
this.w3s_1 = responseData.d2x_1;
|
|
6816
|
+
this.x3s_1 = responseData.g2x_1;
|
|
6817
|
+
this.y3s_1 = responseData.e2x_1;
|
|
6818
|
+
this.z3s_1 = responseData.j2x_1;
|
|
6812
6819
|
var tmp = this;
|
|
6813
6820
|
var tmp_0 = responseData.h2x_1;
|
|
6814
6821
|
var tmp0_elvis_lhs = isInterface(tmp_0, ByteReadChannel) ? tmp_0 : null;
|
|
6815
|
-
tmp.
|
|
6816
|
-
this.
|
|
6822
|
+
tmp.a3t_1 = tmp0_elvis_lhs == null ? Companion_getInstance_0().a1h_1 : tmp0_elvis_lhs;
|
|
6823
|
+
this.b3t_1 = responseData.f2x_1;
|
|
6817
6824
|
}
|
|
6818
6825
|
protoOf(DefaultHttpResponse).e2z = function () {
|
|
6819
|
-
return this.
|
|
6826
|
+
return this.u3s_1;
|
|
6820
6827
|
};
|
|
6821
6828
|
protoOf(DefaultHttpResponse).nn = function () {
|
|
6822
|
-
return this.
|
|
6829
|
+
return this.v3s_1;
|
|
6823
6830
|
};
|
|
6824
6831
|
protoOf(DefaultHttpResponse).i2y = function () {
|
|
6825
|
-
return this.
|
|
6832
|
+
return this.w3s_1;
|
|
6826
6833
|
};
|
|
6827
6834
|
protoOf(DefaultHttpResponse).n2z = function () {
|
|
6828
|
-
return this.
|
|
6835
|
+
return this.x3s_1;
|
|
6829
6836
|
};
|
|
6830
6837
|
protoOf(DefaultHttpResponse).o2z = function () {
|
|
6831
|
-
return this.
|
|
6838
|
+
return this.y3s_1;
|
|
6832
6839
|
};
|
|
6833
6840
|
protoOf(DefaultHttpResponse).p2z = function () {
|
|
6834
|
-
return this.
|
|
6841
|
+
return this.z3s_1;
|
|
6835
6842
|
};
|
|
6836
6843
|
protoOf(DefaultHttpResponse).f2y = function () {
|
|
6837
|
-
return this.
|
|
6844
|
+
return this.a3t_1;
|
|
6838
6845
|
};
|
|
6839
6846
|
protoOf(DefaultHttpResponse).o2j = function () {
|
|
6840
|
-
return this.
|
|
6847
|
+
return this.b3t_1;
|
|
6841
6848
|
};
|
|
6842
6849
|
function HttpResponse() {
|
|
6843
6850
|
}
|
|
@@ -6849,17 +6856,17 @@
|
|
|
6849
6856
|
}
|
|
6850
6857
|
function bodyAsText(_this__u8e3s4, fallbackCharset, $completion) {
|
|
6851
6858
|
fallbackCharset = fallbackCharset === VOID ? Charsets_getInstance().o1l_1 : fallbackCharset;
|
|
6852
|
-
var tmp = new $bodyAsTextCOROUTINE$
|
|
6859
|
+
var tmp = new $bodyAsTextCOROUTINE$24(_this__u8e3s4, fallbackCharset, $completion);
|
|
6853
6860
|
tmp.f9_1 = Unit_instance;
|
|
6854
6861
|
tmp.g9_1 = null;
|
|
6855
6862
|
return tmp.l9();
|
|
6856
6863
|
}
|
|
6857
|
-
function $bodyAsTextCOROUTINE$
|
|
6864
|
+
function $bodyAsTextCOROUTINE$24(_this__u8e3s4, fallbackCharset, resultContinuation) {
|
|
6858
6865
|
CoroutineImpl.call(this, resultContinuation);
|
|
6859
|
-
this.
|
|
6860
|
-
this.
|
|
6866
|
+
this.k3t_1 = _this__u8e3s4;
|
|
6867
|
+
this.l3t_1 = fallbackCharset;
|
|
6861
6868
|
}
|
|
6862
|
-
protoOf($bodyAsTextCOROUTINE$
|
|
6869
|
+
protoOf($bodyAsTextCOROUTINE$24).l9 = function () {
|
|
6863
6870
|
var suspendResult = this.f9_1;
|
|
6864
6871
|
$sm: do
|
|
6865
6872
|
try {
|
|
@@ -6868,14 +6875,14 @@
|
|
|
6868
6875
|
case 0:
|
|
6869
6876
|
this.e9_1 = 2;
|
|
6870
6877
|
var tmp_0 = this;
|
|
6871
|
-
var tmp0_elvis_lhs = charset_0(this.
|
|
6872
|
-
tmp_0.
|
|
6873
|
-
this.
|
|
6878
|
+
var tmp0_elvis_lhs = charset_0(this.k3t_1);
|
|
6879
|
+
tmp_0.m3t_1 = tmp0_elvis_lhs == null ? this.l3t_1 : tmp0_elvis_lhs;
|
|
6880
|
+
this.n3t_1 = this.m3t_1.r1l();
|
|
6874
6881
|
var tmp_1 = this;
|
|
6875
|
-
tmp_1.
|
|
6876
|
-
this.
|
|
6882
|
+
tmp_1.o3t_1 = this.k3t_1;
|
|
6883
|
+
this.p3t_1 = this.o3t_1;
|
|
6877
6884
|
this.d9_1 = 1;
|
|
6878
|
-
var tmp_2 = this.
|
|
6885
|
+
var tmp_2 = this.p3t_1.e2z();
|
|
6879
6886
|
var tmp_3 = getKClass(Source);
|
|
6880
6887
|
var tmp_4;
|
|
6881
6888
|
try {
|
|
@@ -6899,7 +6906,7 @@
|
|
|
6899
6906
|
continue $sm;
|
|
6900
6907
|
case 1:
|
|
6901
6908
|
var input = (!(suspendResult == null) ? isInterface(suspendResult, Source) : false) ? suspendResult : THROW_CCE();
|
|
6902
|
-
return decode(this.
|
|
6909
|
+
return decode(this.n3t_1, input);
|
|
6903
6910
|
case 2:
|
|
6904
6911
|
throw this.g9_1;
|
|
6905
6912
|
}
|
|
@@ -6930,10 +6937,10 @@
|
|
|
6930
6937
|
Phases_getInstance_1();
|
|
6931
6938
|
developmentMode = developmentMode === VOID ? true : developmentMode;
|
|
6932
6939
|
Pipeline.call(this, [Phases_getInstance_1().c34_1, Phases_getInstance_1().d34_1, Phases_getInstance_1().e34_1]);
|
|
6933
|
-
this.
|
|
6940
|
+
this.x3t_1 = developmentMode;
|
|
6934
6941
|
}
|
|
6935
6942
|
protoOf(HttpReceivePipeline).e2c = function () {
|
|
6936
|
-
return this.
|
|
6943
|
+
return this.x3t_1;
|
|
6937
6944
|
};
|
|
6938
6945
|
function Phases_2() {
|
|
6939
6946
|
Phases_instance_2 = this;
|
|
@@ -6953,10 +6960,10 @@
|
|
|
6953
6960
|
Phases_getInstance_2();
|
|
6954
6961
|
developmentMode = developmentMode === VOID ? true : developmentMode;
|
|
6955
6962
|
Pipeline.call(this, [Phases_getInstance_2().t2w_1, Phases_getInstance_2().u2w_1, Phases_getInstance_2().v2w_1, Phases_getInstance_2().w2w_1, Phases_getInstance_2().x2w_1]);
|
|
6956
|
-
this.
|
|
6963
|
+
this.f3u_1 = developmentMode;
|
|
6957
6964
|
}
|
|
6958
6965
|
protoOf(HttpResponsePipeline).e2c = function () {
|
|
6959
|
-
return this.
|
|
6966
|
+
return this.f3u_1;
|
|
6960
6967
|
};
|
|
6961
6968
|
function HttpResponseContainer(expectedType, response) {
|
|
6962
6969
|
this.c2y_1 = expectedType;
|
|
@@ -6988,11 +6995,11 @@
|
|
|
6988
6995
|
return false;
|
|
6989
6996
|
return true;
|
|
6990
6997
|
};
|
|
6991
|
-
function $fetchResponseCOROUTINE$
|
|
6998
|
+
function $fetchResponseCOROUTINE$27(_this__u8e3s4, resultContinuation) {
|
|
6992
6999
|
CoroutineImpl.call(this, resultContinuation);
|
|
6993
|
-
this.
|
|
7000
|
+
this.o3u_1 = _this__u8e3s4;
|
|
6994
7001
|
}
|
|
6995
|
-
protoOf($fetchResponseCOROUTINE$
|
|
7002
|
+
protoOf($fetchResponseCOROUTINE$27).l9 = function () {
|
|
6996
7003
|
var suspendResult = this.f9_1;
|
|
6997
7004
|
$sm: do
|
|
6998
7005
|
try {
|
|
@@ -7004,28 +7011,28 @@
|
|
|
7004
7011
|
continue $sm;
|
|
7005
7012
|
case 1:
|
|
7006
7013
|
this.e9_1 = 6;
|
|
7007
|
-
this.
|
|
7014
|
+
this.q3u_1 = (new HttpRequestBuilder()).t31(this.o3u_1.u3u_1);
|
|
7008
7015
|
this.d9_1 = 2;
|
|
7009
|
-
suspendResult = this.
|
|
7016
|
+
suspendResult = this.o3u_1.v3u_1.y2w(this.q3u_1, this);
|
|
7010
7017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7011
7018
|
return suspendResult;
|
|
7012
7019
|
}
|
|
7013
7020
|
|
|
7014
7021
|
continue $sm;
|
|
7015
7022
|
case 2:
|
|
7016
|
-
this.
|
|
7023
|
+
this.r3u_1 = suspendResult;
|
|
7017
7024
|
this.d9_1 = 3;
|
|
7018
|
-
suspendResult = save(this.
|
|
7025
|
+
suspendResult = save(this.r3u_1, this);
|
|
7019
7026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7020
7027
|
return suspendResult;
|
|
7021
7028
|
}
|
|
7022
7029
|
|
|
7023
7030
|
continue $sm;
|
|
7024
7031
|
case 3:
|
|
7025
|
-
this.
|
|
7026
|
-
this.
|
|
7032
|
+
this.s3u_1 = suspendResult;
|
|
7033
|
+
this.t3u_1 = this.s3u_1.v2u();
|
|
7027
7034
|
this.d9_1 = 4;
|
|
7028
|
-
suspendResult = this.
|
|
7035
|
+
suspendResult = this.o3u_1.w3u(this.r3u_1.v2u(), this);
|
|
7029
7036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7030
7037
|
return suspendResult;
|
|
7031
7038
|
}
|
|
@@ -7033,9 +7040,9 @@
|
|
|
7033
7040
|
continue $sm;
|
|
7034
7041
|
case 4:
|
|
7035
7042
|
var tmp_0 = this;
|
|
7036
|
-
return this.
|
|
7043
|
+
return this.t3u_1;
|
|
7037
7044
|
case 5:
|
|
7038
|
-
return this.
|
|
7045
|
+
return this.p3u_1;
|
|
7039
7046
|
case 6:
|
|
7040
7047
|
this.e9_1 = 7;
|
|
7041
7048
|
var tmp_1 = this.g9_1;
|
|
@@ -7060,12 +7067,12 @@
|
|
|
7060
7067
|
}
|
|
7061
7068
|
while (true);
|
|
7062
7069
|
};
|
|
7063
|
-
function $cleanupCOROUTINE$
|
|
7070
|
+
function $cleanupCOROUTINE$28(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
7064
7071
|
CoroutineImpl.call(this, resultContinuation);
|
|
7065
|
-
this.
|
|
7066
|
-
this.
|
|
7072
|
+
this.f3v_1 = _this__u8e3s4;
|
|
7073
|
+
this.g3v_1 = _this__u8e3s4_0;
|
|
7067
7074
|
}
|
|
7068
|
-
protoOf($cleanupCOROUTINE$
|
|
7075
|
+
protoOf($cleanupCOROUTINE$28).l9 = function () {
|
|
7069
7076
|
var suspendResult = this.f9_1;
|
|
7070
7077
|
$sm: do
|
|
7071
7078
|
try {
|
|
@@ -7074,17 +7081,17 @@
|
|
|
7074
7081
|
case 0:
|
|
7075
7082
|
this.e9_1 = 4;
|
|
7076
7083
|
var tmp_0 = this;
|
|
7077
|
-
var tmp_1 = ensureNotNull(this.
|
|
7078
|
-
tmp_0.
|
|
7084
|
+
var tmp_1 = ensureNotNull(this.g3v_1.nn().q9(Key_instance));
|
|
7085
|
+
tmp_0.h3v_1 = isInterface(tmp_1, CompletableJob) ? tmp_1 : THROW_CCE();
|
|
7079
7086
|
var tmp_2 = this;
|
|
7080
|
-
tmp_2.
|
|
7081
|
-
this.
|
|
7087
|
+
tmp_2.i3v_1 = this.h3v_1;
|
|
7088
|
+
this.j3v_1 = this.i3v_1;
|
|
7082
7089
|
var tmp_3 = this;
|
|
7083
|
-
tmp_3.
|
|
7084
|
-
this.
|
|
7085
|
-
this.
|
|
7090
|
+
tmp_3.k3v_1 = this.j3v_1;
|
|
7091
|
+
this.l3v_1 = this.k3v_1;
|
|
7092
|
+
this.l3v_1.iu();
|
|
7086
7093
|
this.e9_1 = 1;
|
|
7087
|
-
cancel_1(this.
|
|
7094
|
+
cancel_1(this.g3v_1.f2y());
|
|
7088
7095
|
this.e9_1 = 4;
|
|
7089
7096
|
this.d9_1 = 2;
|
|
7090
7097
|
continue $sm;
|
|
@@ -7092,7 +7099,7 @@
|
|
|
7092
7099
|
this.e9_1 = 4;
|
|
7093
7100
|
var tmp_4 = this.g9_1;
|
|
7094
7101
|
if (tmp_4 instanceof Error) {
|
|
7095
|
-
this.
|
|
7102
|
+
this.m3v_1 = this.g9_1;
|
|
7096
7103
|
this.d9_1 = 2;
|
|
7097
7104
|
continue $sm;
|
|
7098
7105
|
} else {
|
|
@@ -7102,7 +7109,7 @@
|
|
|
7102
7109
|
case 2:
|
|
7103
7110
|
this.e9_1 = 4;
|
|
7104
7111
|
this.d9_1 = 3;
|
|
7105
|
-
suspendResult = this.
|
|
7112
|
+
suspendResult = this.l3v_1.ju(this);
|
|
7106
7113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7107
7114
|
return suspendResult;
|
|
7108
7115
|
}
|
|
@@ -7125,35 +7132,35 @@
|
|
|
7125
7132
|
while (true);
|
|
7126
7133
|
};
|
|
7127
7134
|
function HttpStatement(builder, client) {
|
|
7128
|
-
this.
|
|
7129
|
-
this.
|
|
7135
|
+
this.u3u_1 = builder;
|
|
7136
|
+
this.v3u_1 = client;
|
|
7130
7137
|
}
|
|
7131
|
-
protoOf(HttpStatement).m3v = function ($completion) {
|
|
7132
|
-
return this.n3v($completion);
|
|
7133
|
-
};
|
|
7134
7138
|
protoOf(HttpStatement).n3v = function ($completion) {
|
|
7135
|
-
|
|
7139
|
+
return this.o3v($completion);
|
|
7140
|
+
};
|
|
7141
|
+
protoOf(HttpStatement).o3v = function ($completion) {
|
|
7142
|
+
var tmp = new $fetchResponseCOROUTINE$27(this, $completion);
|
|
7136
7143
|
tmp.f9_1 = Unit_instance;
|
|
7137
7144
|
tmp.g9_1 = null;
|
|
7138
7145
|
return tmp.l9();
|
|
7139
7146
|
};
|
|
7140
|
-
protoOf(HttpStatement).
|
|
7141
|
-
var tmp = new $cleanupCOROUTINE$
|
|
7147
|
+
protoOf(HttpStatement).w3u = function (_this__u8e3s4, $completion) {
|
|
7148
|
+
var tmp = new $cleanupCOROUTINE$28(this, _this__u8e3s4, $completion);
|
|
7142
7149
|
tmp.f9_1 = Unit_instance;
|
|
7143
7150
|
tmp.g9_1 = null;
|
|
7144
7151
|
return tmp.l9();
|
|
7145
7152
|
};
|
|
7146
7153
|
protoOf(HttpStatement).toString = function () {
|
|
7147
|
-
return 'HttpStatement[' + this.
|
|
7154
|
+
return 'HttpStatement[' + this.u3u_1.v2v_1.toString() + ']';
|
|
7148
7155
|
};
|
|
7149
7156
|
function observable(_this__u8e3s4, context, contentLength, listener) {
|
|
7150
7157
|
var tmp = GlobalScope_instance;
|
|
7151
7158
|
return writer(tmp, context, true, observable$slambda_0(_this__u8e3s4, listener, contentLength, null)).a1k_1;
|
|
7152
7159
|
}
|
|
7153
7160
|
function observable$slambda($this_observable, $listener, $contentLength, resultContinuation) {
|
|
7154
|
-
this.
|
|
7155
|
-
this.
|
|
7156
|
-
this.
|
|
7161
|
+
this.x3v_1 = $this_observable;
|
|
7162
|
+
this.y3v_1 = $listener;
|
|
7163
|
+
this.z3v_1 = $contentLength;
|
|
7157
7164
|
CoroutineImpl.call(this, resultContinuation);
|
|
7158
7165
|
}
|
|
7159
7166
|
protoOf(observable$slambda).g30 = function ($this$writer, $completion) {
|
|
@@ -7174,12 +7181,12 @@
|
|
|
7174
7181
|
case 0:
|
|
7175
7182
|
this.e9_1 = 16;
|
|
7176
7183
|
var tmp_0 = this;
|
|
7177
|
-
tmp_0.
|
|
7184
|
+
tmp_0.b3w_1 = get_ByteArrayPool();
|
|
7178
7185
|
this.d9_1 = 1;
|
|
7179
7186
|
continue $sm;
|
|
7180
7187
|
case 1:
|
|
7181
|
-
this.
|
|
7182
|
-
this.
|
|
7188
|
+
this.d3w_1 = this.b3w_1;
|
|
7189
|
+
this.e3w_1 = this.d3w_1.d1m();
|
|
7183
7190
|
this.d9_1 = 2;
|
|
7184
7191
|
continue $sm;
|
|
7185
7192
|
case 2:
|
|
@@ -7188,27 +7195,27 @@
|
|
|
7188
7195
|
case 3:
|
|
7189
7196
|
this.e9_1 = 15;
|
|
7190
7197
|
var tmp_1 = this;
|
|
7191
|
-
tmp_1.
|
|
7192
|
-
this.
|
|
7193
|
-
this.
|
|
7198
|
+
tmp_1.g3w_1 = this.e3w_1;
|
|
7199
|
+
this.h3w_1 = this.g3w_1;
|
|
7200
|
+
this.i3w_1 = new Long(0, 0);
|
|
7194
7201
|
this.d9_1 = 4;
|
|
7195
7202
|
continue $sm;
|
|
7196
7203
|
case 4:
|
|
7197
|
-
if (!!this.
|
|
7204
|
+
if (!!this.x3v_1.t1g()) {
|
|
7198
7205
|
this.d9_1 = 9;
|
|
7199
7206
|
continue $sm;
|
|
7200
7207
|
}
|
|
7201
7208
|
|
|
7202
7209
|
this.d9_1 = 5;
|
|
7203
|
-
suspendResult = readAvailable(this.
|
|
7210
|
+
suspendResult = readAvailable(this.x3v_1, this.h3w_1, VOID, VOID, this);
|
|
7204
7211
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7205
7212
|
return suspendResult;
|
|
7206
7213
|
}
|
|
7207
7214
|
|
|
7208
7215
|
continue $sm;
|
|
7209
7216
|
case 5:
|
|
7210
|
-
this.
|
|
7211
|
-
if (this.
|
|
7217
|
+
this.j3w_1 = suspendResult;
|
|
7218
|
+
if (this.j3w_1 <= 0) {
|
|
7212
7219
|
this.d9_1 = 4;
|
|
7213
7220
|
continue $sm;
|
|
7214
7221
|
} else {
|
|
@@ -7218,7 +7225,7 @@
|
|
|
7218
7225
|
|
|
7219
7226
|
case 6:
|
|
7220
7227
|
this.d9_1 = 7;
|
|
7221
|
-
suspendResult = writeFully(this.
|
|
7228
|
+
suspendResult = writeFully(this.a3w_1.c1k_1, this.h3w_1, 0, this.j3w_1, this);
|
|
7222
7229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7223
7230
|
return suspendResult;
|
|
7224
7231
|
}
|
|
@@ -7226,11 +7233,11 @@
|
|
|
7226
7233
|
continue $sm;
|
|
7227
7234
|
case 7:
|
|
7228
7235
|
var tmp_2 = this;
|
|
7229
|
-
var tmp0 = this.
|
|
7230
|
-
var other = this.
|
|
7231
|
-
tmp_2.
|
|
7236
|
+
var tmp0 = this.i3w_1;
|
|
7237
|
+
var other = this.j3w_1;
|
|
7238
|
+
tmp_2.i3w_1 = tmp0.z2(toLong(other));
|
|
7232
7239
|
this.d9_1 = 8;
|
|
7233
|
-
suspendResult = this.
|
|
7240
|
+
suspendResult = this.y3v_1.q2z(this.i3w_1, this.z3v_1, this);
|
|
7234
7241
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7235
7242
|
return suspendResult;
|
|
7236
7243
|
}
|
|
@@ -7240,11 +7247,11 @@
|
|
|
7240
7247
|
this.d9_1 = 4;
|
|
7241
7248
|
continue $sm;
|
|
7242
7249
|
case 9:
|
|
7243
|
-
this.
|
|
7244
|
-
close(this.
|
|
7245
|
-
if (this.
|
|
7250
|
+
this.k3w_1 = this.x3v_1.p1g();
|
|
7251
|
+
close(this.a3w_1.c1k_1, this.k3w_1);
|
|
7252
|
+
if (this.k3w_1 == null && this.i3w_1.equals(new Long(0, 0))) {
|
|
7246
7253
|
this.d9_1 = 10;
|
|
7247
|
-
suspendResult = this.
|
|
7254
|
+
suspendResult = this.y3v_1.q2z(this.i3w_1, this.z3v_1, this);
|
|
7248
7255
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7249
7256
|
return suspendResult;
|
|
7250
7257
|
}
|
|
@@ -7259,7 +7266,7 @@
|
|
|
7259
7266
|
continue $sm;
|
|
7260
7267
|
case 11:
|
|
7261
7268
|
var tmp_3 = this;
|
|
7262
|
-
tmp_3.
|
|
7269
|
+
tmp_3.f3w_1 = Unit_instance;
|
|
7263
7270
|
this.e9_1 = 16;
|
|
7264
7271
|
this.d9_1 = 12;
|
|
7265
7272
|
var tmp_4 = this;
|
|
@@ -7267,13 +7274,13 @@
|
|
|
7267
7274
|
case 12:
|
|
7268
7275
|
this.e9_1 = 16;
|
|
7269
7276
|
var tmp_5 = this;
|
|
7270
|
-
this.
|
|
7271
|
-
tmp_5.
|
|
7277
|
+
this.d3w_1.e1m(this.e3w_1);
|
|
7278
|
+
tmp_5.c3w_1 = Unit_instance;
|
|
7272
7279
|
this.d9_1 = 14;
|
|
7273
7280
|
continue $sm;
|
|
7274
7281
|
case 13:
|
|
7275
7282
|
this.e9_1 = 16;
|
|
7276
|
-
this.
|
|
7283
|
+
this.d3w_1.e1m(this.e3w_1);
|
|
7277
7284
|
if (false) {
|
|
7278
7285
|
this.d9_1 = 1;
|
|
7279
7286
|
continue $sm;
|
|
@@ -7286,7 +7293,7 @@
|
|
|
7286
7293
|
case 15:
|
|
7287
7294
|
this.e9_1 = 16;
|
|
7288
7295
|
var t = this.g9_1;
|
|
7289
|
-
this.
|
|
7296
|
+
this.d3w_1.e1m(this.e3w_1);
|
|
7290
7297
|
throw t;
|
|
7291
7298
|
case 16:
|
|
7292
7299
|
throw this.g9_1;
|
|
@@ -7303,8 +7310,8 @@
|
|
|
7303
7310
|
while (true);
|
|
7304
7311
|
};
|
|
7305
7312
|
protoOf(observable$slambda).h30 = function ($this$writer, completion) {
|
|
7306
|
-
var i = new observable$slambda(this.
|
|
7307
|
-
i.
|
|
7313
|
+
var i = new observable$slambda(this.x3v_1, this.y3v_1, this.z3v_1, completion);
|
|
7314
|
+
i.a3w_1 = $this$writer;
|
|
7308
7315
|
return i;
|
|
7309
7316
|
};
|
|
7310
7317
|
function observable$slambda_0($this_observable, $listener, $contentLength, resultContinuation) {
|
|
@@ -7341,8 +7348,8 @@
|
|
|
7341
7348
|
}
|
|
7342
7349
|
var HttpResponseCancelled;
|
|
7343
7350
|
function HttpResponseReceiveFail(response, cause) {
|
|
7344
|
-
this.
|
|
7345
|
-
this.
|
|
7351
|
+
this.l3w_1 = response;
|
|
7352
|
+
this.m3w_1 = cause;
|
|
7346
7353
|
}
|
|
7347
7354
|
var properties_initialized_ClientEvents_kt_rdee4m;
|
|
7348
7355
|
function _init_properties_ClientEvents_kt__xuvbz8() {
|
|
@@ -7358,10 +7365,10 @@
|
|
|
7358
7365
|
function EmptyContent() {
|
|
7359
7366
|
EmptyContent_instance = this;
|
|
7360
7367
|
NoContent.call(this);
|
|
7361
|
-
this.
|
|
7368
|
+
this.o3w_1 = new Long(0, 0);
|
|
7362
7369
|
}
|
|
7363
7370
|
protoOf(EmptyContent).i2p = function () {
|
|
7364
|
-
return this.
|
|
7371
|
+
return this.o3w_1;
|
|
7365
7372
|
};
|
|
7366
7373
|
protoOf(EmptyContent).toString = function () {
|
|
7367
7374
|
return 'EmptyContent';
|
|
@@ -7455,31 +7462,31 @@
|
|
|
7455
7462
|
}
|
|
7456
7463
|
function JsClientEngineConfig() {
|
|
7457
7464
|
HttpClientEngineConfig.call(this);
|
|
7458
|
-
this.
|
|
7465
|
+
this.t3w_1 = Object.create(null);
|
|
7459
7466
|
}
|
|
7460
7467
|
function Js() {
|
|
7461
7468
|
}
|
|
7462
|
-
protoOf(Js).
|
|
7469
|
+
protoOf(Js).u3w = function (block) {
|
|
7463
7470
|
// Inline function 'kotlin.apply' call
|
|
7464
7471
|
var this_0 = new JsClientEngineConfig();
|
|
7465
7472
|
block(this_0);
|
|
7466
7473
|
return new JsClientEngine(this_0);
|
|
7467
7474
|
};
|
|
7468
7475
|
protoOf(Js).z2w = function (block) {
|
|
7469
|
-
return this.
|
|
7476
|
+
return this.u3w(block);
|
|
7470
7477
|
};
|
|
7471
7478
|
var Js_instance;
|
|
7472
7479
|
function Js_getInstance() {
|
|
7473
7480
|
return Js_instance;
|
|
7474
7481
|
}
|
|
7475
7482
|
function createWebSocket($this, urlString_capturingHack, headers, $completion) {
|
|
7476
|
-
var tmp = new $createWebSocketCOROUTINE$
|
|
7483
|
+
var tmp = new $createWebSocketCOROUTINE$31($this, urlString_capturingHack, headers, $completion);
|
|
7477
7484
|
tmp.f9_1 = Unit_instance;
|
|
7478
7485
|
tmp.g9_1 = null;
|
|
7479
7486
|
return tmp.l9();
|
|
7480
7487
|
}
|
|
7481
7488
|
function executeWebSocketRequest($this, request, callContext, $completion) {
|
|
7482
|
-
var tmp = new $executeWebSocketRequestCOROUTINE$
|
|
7489
|
+
var tmp = new $executeWebSocketRequestCOROUTINE$32($this, request, callContext, $completion);
|
|
7483
7490
|
tmp.f9_1 = Unit_instance;
|
|
7484
7491
|
tmp.g9_1 = null;
|
|
7485
7492
|
return tmp.l9();
|
|
@@ -7498,12 +7505,12 @@
|
|
|
7498
7505
|
return Unit_instance;
|
|
7499
7506
|
};
|
|
7500
7507
|
}
|
|
7501
|
-
function $executeCOROUTINE$
|
|
7508
|
+
function $executeCOROUTINE$30(_this__u8e3s4, data, resultContinuation) {
|
|
7502
7509
|
CoroutineImpl.call(this, resultContinuation);
|
|
7503
|
-
this.
|
|
7504
|
-
this.
|
|
7510
|
+
this.i3y_1 = _this__u8e3s4;
|
|
7511
|
+
this.j3y_1 = data;
|
|
7505
7512
|
}
|
|
7506
|
-
protoOf($executeCOROUTINE$
|
|
7513
|
+
protoOf($executeCOROUTINE$30).l9 = function () {
|
|
7507
7514
|
var suspendResult = this.f9_1;
|
|
7508
7515
|
$sm: do
|
|
7509
7516
|
try {
|
|
@@ -7519,11 +7526,11 @@
|
|
|
7519
7526
|
|
|
7520
7527
|
continue $sm;
|
|
7521
7528
|
case 1:
|
|
7522
|
-
this.
|
|
7523
|
-
this.
|
|
7524
|
-
if (isUpgradeRequest(this.
|
|
7529
|
+
this.k3y_1 = suspendResult;
|
|
7530
|
+
this.l3y_1 = this.j3y_1.z30_1.g27(get_CLIENT_CONFIG());
|
|
7531
|
+
if (isUpgradeRequest(this.j3y_1)) {
|
|
7525
7532
|
this.d9_1 = 5;
|
|
7526
|
-
suspendResult = executeWebSocketRequest(this.
|
|
7533
|
+
suspendResult = executeWebSocketRequest(this.i3y_1, this.j3y_1, this.k3y_1, this);
|
|
7527
7534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7528
7535
|
return suspendResult;
|
|
7529
7536
|
}
|
|
@@ -7534,22 +7541,22 @@
|
|
|
7534
7541
|
}
|
|
7535
7542
|
|
|
7536
7543
|
case 2:
|
|
7537
|
-
this.
|
|
7544
|
+
this.m3y_1 = GMTDate();
|
|
7538
7545
|
this.d9_1 = 3;
|
|
7539
|
-
suspendResult = toRaw(this.
|
|
7546
|
+
suspendResult = toRaw(this.j3y_1, this.l3y_1, this.k3y_1, this);
|
|
7540
7547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7541
7548
|
return suspendResult;
|
|
7542
7549
|
}
|
|
7543
7550
|
|
|
7544
7551
|
continue $sm;
|
|
7545
7552
|
case 3:
|
|
7546
|
-
this.
|
|
7547
|
-
this.
|
|
7548
|
-
this.
|
|
7549
|
-
var tmp_0 = get_job(this.
|
|
7550
|
-
tmp_0.ro(true, VOID, JsClientEngine$execute$lambda(this.
|
|
7553
|
+
this.n3y_1 = suspendResult;
|
|
7554
|
+
this.o3y_1 = AbortController_0();
|
|
7555
|
+
this.n3y_1.signal = this.o3y_1.signal;
|
|
7556
|
+
var tmp_0 = get_job(this.k3y_1);
|
|
7557
|
+
tmp_0.ro(true, VOID, JsClientEngine$execute$lambda(this.o3y_1));
|
|
7551
7558
|
this.d9_1 = 4;
|
|
7552
|
-
suspendResult = commonFetch(this.
|
|
7559
|
+
suspendResult = commonFetch(this.j3y_1.u30_1.toString(), this.n3y_1, this.i3y_1.t3y_1, this);
|
|
7553
7560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7554
7561
|
return suspendResult;
|
|
7555
7562
|
}
|
|
@@ -7558,13 +7565,13 @@
|
|
|
7558
7565
|
case 4:
|
|
7559
7566
|
var rawResponse = suspendResult;
|
|
7560
7567
|
var status = new HttpStatusCode(rawResponse.status, rawResponse.statusText);
|
|
7561
|
-
var headers = mapToKtor(rawResponse.headers, this.
|
|
7568
|
+
var headers = mapToKtor(rawResponse.headers, this.j3y_1.v30_1, this.j3y_1.z30_1);
|
|
7562
7569
|
var version = Companion_getInstance_2().z2j_1;
|
|
7563
|
-
var body = readBody(CoroutineScope_0(this.
|
|
7564
|
-
var tmp0_safe_receiver = this.
|
|
7565
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
7570
|
+
var body = readBody(CoroutineScope_0(this.k3y_1), rawResponse);
|
|
7571
|
+
var tmp0_safe_receiver = this.j3y_1.z30_1.h27(get_ResponseAdapterAttributeKey());
|
|
7572
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d3s(this.j3y_1, status, headers, body, this.j3y_1.x30_1, this.k3y_1);
|
|
7566
7573
|
var responseBody = tmp1_elvis_lhs == null ? body : tmp1_elvis_lhs;
|
|
7567
|
-
return new HttpResponseData(status, this.
|
|
7574
|
+
return new HttpResponseData(status, this.m3y_1, headers, version, responseBody, this.k3y_1);
|
|
7568
7575
|
case 5:
|
|
7569
7576
|
return suspendResult;
|
|
7570
7577
|
case 6:
|
|
@@ -7581,13 +7588,13 @@
|
|
|
7581
7588
|
}
|
|
7582
7589
|
while (true);
|
|
7583
7590
|
};
|
|
7584
|
-
function $createWebSocketCOROUTINE$
|
|
7591
|
+
function $createWebSocketCOROUTINE$31(_this__u8e3s4, urlString_capturingHack, headers, resultContinuation) {
|
|
7585
7592
|
CoroutineImpl.call(this, resultContinuation);
|
|
7586
|
-
this.
|
|
7587
|
-
this.
|
|
7588
|
-
this.
|
|
7593
|
+
this.d3x_1 = _this__u8e3s4;
|
|
7594
|
+
this.e3x_1 = urlString_capturingHack;
|
|
7595
|
+
this.f3x_1 = headers;
|
|
7589
7596
|
}
|
|
7590
|
-
protoOf($createWebSocketCOROUTINE$
|
|
7597
|
+
protoOf($createWebSocketCOROUTINE$31).l9 = function () {
|
|
7591
7598
|
var suspendResult = this.f9_1;
|
|
7592
7599
|
$sm: do
|
|
7593
7600
|
try {
|
|
@@ -7596,7 +7603,7 @@
|
|
|
7596
7603
|
case 0:
|
|
7597
7604
|
this.e9_1 = 3;
|
|
7598
7605
|
var tmp_0 = this;
|
|
7599
|
-
var tmp0 = this.
|
|
7606
|
+
var tmp0 = this.f3x_1.y28();
|
|
7600
7607
|
var destination = ArrayList_init_$Create$();
|
|
7601
7608
|
var _iterator__ex2g4s = tmp0.p();
|
|
7602
7609
|
while (_iterator__ex2g4s.q()) {
|
|
@@ -7606,14 +7613,14 @@
|
|
|
7606
7613
|
}
|
|
7607
7614
|
}
|
|
7608
7615
|
|
|
7609
|
-
tmp_0.
|
|
7616
|
+
tmp_0.g3x_1 = destination;
|
|
7610
7617
|
var tmp_1 = this;
|
|
7611
|
-
var tmp0_0 = this.
|
|
7618
|
+
var tmp0_0 = this.g3x_1;
|
|
7612
7619
|
var destination_0 = ArrayList_init_$Create$();
|
|
7613
7620
|
var _iterator__ex2g4s_0 = tmp0_0.p();
|
|
7614
7621
|
while (_iterator__ex2g4s_0.q()) {
|
|
7615
7622
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
7616
|
-
var tmp0_safe_receiver = this.
|
|
7623
|
+
var tmp0_safe_receiver = this.f3x_1.x28(element_0);
|
|
7617
7624
|
if (tmp0_safe_receiver == null)
|
|
7618
7625
|
null;
|
|
7619
7626
|
else {
|
|
@@ -7622,15 +7629,15 @@
|
|
|
7622
7629
|
}
|
|
7623
7630
|
|
|
7624
7631
|
var this_0 = flatten(destination_0);
|
|
7625
|
-
tmp_1.
|
|
7632
|
+
tmp_1.h3x_1 = copyToArray(this_0);
|
|
7626
7633
|
if (PlatformUtils_getInstance().o28_1) {
|
|
7627
|
-
this.
|
|
7634
|
+
this.i3x_1 = new WebSocket(this.e3x_1, this.h3x_1);
|
|
7628
7635
|
this.d9_1 = 2;
|
|
7629
7636
|
continue $sm;
|
|
7630
7637
|
} else {
|
|
7631
|
-
this.
|
|
7638
|
+
this.j3x_1 = import('ws');
|
|
7632
7639
|
this.d9_1 = 1;
|
|
7633
|
-
suspendResult = await_0(this.
|
|
7640
|
+
suspendResult = await_0(this.j3x_1, this);
|
|
7634
7641
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7635
7642
|
return suspendResult;
|
|
7636
7643
|
}
|
|
@@ -7640,12 +7647,12 @@
|
|
|
7640
7647
|
case 1:
|
|
7641
7648
|
var ws_capturingHack = suspendResult.default;
|
|
7642
7649
|
var headers_capturingHack = new JsClientEngine$createWebSocket$headers_capturingHack$1();
|
|
7643
|
-
this.
|
|
7644
|
-
this.
|
|
7650
|
+
this.f3x_1.a29(JsClientEngine$createWebSocket$lambda(headers_capturingHack));
|
|
7651
|
+
this.i3x_1 = new ws_capturingHack(this.e3x_1, this.h3x_1, {headers: headers_capturingHack});
|
|
7645
7652
|
this.d9_1 = 2;
|
|
7646
7653
|
continue $sm;
|
|
7647
7654
|
case 2:
|
|
7648
|
-
return this.
|
|
7655
|
+
return this.i3x_1;
|
|
7649
7656
|
case 3:
|
|
7650
7657
|
throw this.g9_1;
|
|
7651
7658
|
}
|
|
@@ -7660,13 +7667,13 @@
|
|
|
7660
7667
|
}
|
|
7661
7668
|
while (true);
|
|
7662
7669
|
};
|
|
7663
|
-
function $executeWebSocketRequestCOROUTINE$
|
|
7670
|
+
function $executeWebSocketRequestCOROUTINE$32(_this__u8e3s4, request, callContext, resultContinuation) {
|
|
7664
7671
|
CoroutineImpl.call(this, resultContinuation);
|
|
7665
|
-
this.
|
|
7666
|
-
this.
|
|
7667
|
-
this.
|
|
7672
|
+
this.s3x_1 = _this__u8e3s4;
|
|
7673
|
+
this.t3x_1 = request;
|
|
7674
|
+
this.u3x_1 = callContext;
|
|
7668
7675
|
}
|
|
7669
|
-
protoOf($executeWebSocketRequestCOROUTINE$
|
|
7676
|
+
protoOf($executeWebSocketRequestCOROUTINE$32).l9 = function () {
|
|
7670
7677
|
var suspendResult = this.f9_1;
|
|
7671
7678
|
$sm: do
|
|
7672
7679
|
try {
|
|
@@ -7674,28 +7681,28 @@
|
|
|
7674
7681
|
switch (tmp) {
|
|
7675
7682
|
case 0:
|
|
7676
7683
|
this.e9_1 = 5;
|
|
7677
|
-
this.
|
|
7678
|
-
this.
|
|
7684
|
+
this.v3x_1 = GMTDate();
|
|
7685
|
+
this.w3x_1 = this.t3x_1.u30_1.toString();
|
|
7679
7686
|
this.d9_1 = 1;
|
|
7680
|
-
suspendResult = createWebSocket(this.
|
|
7687
|
+
suspendResult = createWebSocket(this.s3x_1, this.w3x_1, this.t3x_1.w30_1, this);
|
|
7681
7688
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7682
7689
|
return suspendResult;
|
|
7683
7690
|
}
|
|
7684
7691
|
|
|
7685
7692
|
continue $sm;
|
|
7686
7693
|
case 1:
|
|
7687
|
-
this.
|
|
7688
|
-
this.
|
|
7694
|
+
this.x3x_1 = suspendResult;
|
|
7695
|
+
this.y3x_1 = new JsWebSocketSession(this.u3x_1, this.x3x_1);
|
|
7689
7696
|
this.e9_1 = 3;
|
|
7690
7697
|
this.d9_1 = 2;
|
|
7691
|
-
suspendResult = awaitConnection(this.
|
|
7698
|
+
suspendResult = awaitConnection(this.x3x_1, this);
|
|
7692
7699
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7693
7700
|
return suspendResult;
|
|
7694
7701
|
}
|
|
7695
7702
|
|
|
7696
7703
|
continue $sm;
|
|
7697
7704
|
case 2:
|
|
7698
|
-
this.
|
|
7705
|
+
this.z3x_1 = suspendResult;
|
|
7699
7706
|
this.e9_1 = 5;
|
|
7700
7707
|
this.d9_1 = 4;
|
|
7701
7708
|
continue $sm;
|
|
@@ -7705,7 +7712,7 @@
|
|
|
7705
7712
|
if (tmp_0 instanceof Error) {
|
|
7706
7713
|
var cause = this.g9_1;
|
|
7707
7714
|
var tmp_1 = this;
|
|
7708
|
-
cancel_3(this.
|
|
7715
|
+
cancel_3(this.u3x_1, CancellationException_0('Failed to connect to ' + this.w3x_1, cause));
|
|
7709
7716
|
throw cause;
|
|
7710
7717
|
} else {
|
|
7711
7718
|
throw this.g9_1;
|
|
@@ -7713,7 +7720,7 @@
|
|
|
7713
7720
|
|
|
7714
7721
|
case 4:
|
|
7715
7722
|
this.e9_1 = 5;
|
|
7716
|
-
return new HttpResponseData(Companion_getInstance_1().h2k_1, this.
|
|
7723
|
+
return new HttpResponseData(Companion_getInstance_1().h2k_1, this.v3x_1, Companion_getInstance_3().h2f_1, Companion_getInstance_2().z2j_1, this.y3x_1, this.u3x_1);
|
|
7717
7724
|
case 5:
|
|
7718
7725
|
throw this.g9_1;
|
|
7719
7726
|
}
|
|
@@ -7730,23 +7737,23 @@
|
|
|
7730
7737
|
};
|
|
7731
7738
|
function JsClientEngine(config) {
|
|
7732
7739
|
HttpClientEngineBase.call(this, 'ktor-js');
|
|
7733
|
-
this.
|
|
7734
|
-
this.
|
|
7740
|
+
this.t3y_1 = config;
|
|
7741
|
+
this.u3y_1 = setOf_0([HttpTimeoutCapability_instance, WebSocketCapability_instance, SSECapability_instance]);
|
|
7735
7742
|
// Inline function 'kotlin.check' call
|
|
7736
|
-
if (!(this.
|
|
7743
|
+
if (!(this.t3y_1.m32_1 == null)) {
|
|
7737
7744
|
// Inline function 'io.ktor.client.engine.js.JsClientEngine.<anonymous>' call
|
|
7738
7745
|
var message = 'Proxy unsupported in Js engine.';
|
|
7739
7746
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
7740
7747
|
}
|
|
7741
7748
|
}
|
|
7742
7749
|
protoOf(JsClientEngine).b2w = function () {
|
|
7743
|
-
return this.
|
|
7750
|
+
return this.t3y_1;
|
|
7744
7751
|
};
|
|
7745
7752
|
protoOf(JsClientEngine).b31 = function () {
|
|
7746
|
-
return this.
|
|
7753
|
+
return this.u3y_1;
|
|
7747
7754
|
};
|
|
7748
7755
|
protoOf(JsClientEngine).h32 = function (data, $completion) {
|
|
7749
|
-
var tmp = new $executeCOROUTINE$
|
|
7756
|
+
var tmp = new $executeCOROUTINE$30(this, data, $completion);
|
|
7750
7757
|
tmp.f9_1 = Unit_instance;
|
|
7751
7758
|
tmp.g9_1 = null;
|
|
7752
7759
|
return tmp.l9();
|
|
@@ -7834,13 +7841,13 @@
|
|
|
7834
7841
|
};
|
|
7835
7842
|
}
|
|
7836
7843
|
function toRaw(_this__u8e3s4, clientConfig, callContext, $completion) {
|
|
7837
|
-
var tmp = new $toRawCOROUTINE$
|
|
7844
|
+
var tmp = new $toRawCOROUTINE$33(_this__u8e3s4, clientConfig, callContext, $completion);
|
|
7838
7845
|
tmp.f9_1 = Unit_instance;
|
|
7839
7846
|
tmp.g9_1 = null;
|
|
7840
7847
|
return tmp.l9();
|
|
7841
7848
|
}
|
|
7842
7849
|
function getBodyBytes(content, callContext, $completion) {
|
|
7843
|
-
var tmp = new $getBodyBytesCOROUTINE$
|
|
7850
|
+
var tmp = new $getBodyBytesCOROUTINE$34(content, callContext, $completion);
|
|
7844
7851
|
tmp.f9_1 = Unit_instance;
|
|
7845
7852
|
tmp.g9_1 = null;
|
|
7846
7853
|
return tmp.l9();
|
|
@@ -7887,7 +7894,7 @@
|
|
|
7887
7894
|
};
|
|
7888
7895
|
}
|
|
7889
7896
|
function getBodyBytes$slambda($content, resultContinuation) {
|
|
7890
|
-
this.
|
|
7897
|
+
this.b40_1 = $content;
|
|
7891
7898
|
CoroutineImpl.call(this, resultContinuation);
|
|
7892
7899
|
}
|
|
7893
7900
|
protoOf(getBodyBytes$slambda).g30 = function ($this$writer, $completion) {
|
|
@@ -7908,7 +7915,7 @@
|
|
|
7908
7915
|
case 0:
|
|
7909
7916
|
this.e9_1 = 2;
|
|
7910
7917
|
this.d9_1 = 1;
|
|
7911
|
-
suspendResult = this.
|
|
7918
|
+
suspendResult = this.b40_1.o2p(this.c40_1.c1k_1, this);
|
|
7912
7919
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7913
7920
|
return suspendResult;
|
|
7914
7921
|
}
|
|
@@ -7931,8 +7938,8 @@
|
|
|
7931
7938
|
while (true);
|
|
7932
7939
|
};
|
|
7933
7940
|
protoOf(getBodyBytes$slambda).h30 = function ($this$writer, completion) {
|
|
7934
|
-
var i = new getBodyBytes$slambda(this.
|
|
7935
|
-
i.
|
|
7941
|
+
var i = new getBodyBytes$slambda(this.b40_1, completion);
|
|
7942
|
+
i.c40_1 = $this$writer;
|
|
7936
7943
|
return i;
|
|
7937
7944
|
};
|
|
7938
7945
|
function getBodyBytes$slambda_0($content, resultContinuation) {
|
|
@@ -7943,13 +7950,13 @@
|
|
|
7943
7950
|
l.$arity = 1;
|
|
7944
7951
|
return l;
|
|
7945
7952
|
}
|
|
7946
|
-
function $toRawCOROUTINE$
|
|
7953
|
+
function $toRawCOROUTINE$33(_this__u8e3s4, clientConfig, callContext, resultContinuation) {
|
|
7947
7954
|
CoroutineImpl.call(this, resultContinuation);
|
|
7948
|
-
this.
|
|
7949
|
-
this.
|
|
7950
|
-
this.
|
|
7955
|
+
this.d3z_1 = _this__u8e3s4;
|
|
7956
|
+
this.e3z_1 = clientConfig;
|
|
7957
|
+
this.f3z_1 = callContext;
|
|
7951
7958
|
}
|
|
7952
|
-
protoOf($toRawCOROUTINE$
|
|
7959
|
+
protoOf($toRawCOROUTINE$33).l9 = function () {
|
|
7953
7960
|
var suspendResult = this.f9_1;
|
|
7954
7961
|
$sm: do
|
|
7955
7962
|
try {
|
|
@@ -7957,10 +7964,10 @@
|
|
|
7957
7964
|
switch (tmp) {
|
|
7958
7965
|
case 0:
|
|
7959
7966
|
this.e9_1 = 2;
|
|
7960
|
-
this.
|
|
7961
|
-
mergeHeaders(this.
|
|
7967
|
+
this.g3z_1 = {};
|
|
7968
|
+
mergeHeaders(this.d3z_1.w30_1, this.d3z_1.x30_1, toRaw$lambda(this.g3z_1));
|
|
7962
7969
|
this.d9_1 = 1;
|
|
7963
|
-
suspendResult = getBodyBytes(this.
|
|
7970
|
+
suspendResult = getBodyBytes(this.d3z_1.x30_1, this.f3z_1, this);
|
|
7964
7971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7965
7972
|
return suspendResult;
|
|
7966
7973
|
}
|
|
@@ -7968,7 +7975,7 @@
|
|
|
7968
7975
|
continue $sm;
|
|
7969
7976
|
case 1:
|
|
7970
7977
|
var bodyBytes = suspendResult;
|
|
7971
|
-
return buildObject(toRaw$lambda_0(this.
|
|
7978
|
+
return buildObject(toRaw$lambda_0(this.d3z_1, this.g3z_1, this.e3z_1, bodyBytes));
|
|
7972
7979
|
case 2:
|
|
7973
7980
|
throw this.g9_1;
|
|
7974
7981
|
}
|
|
@@ -7983,12 +7990,12 @@
|
|
|
7983
7990
|
}
|
|
7984
7991
|
while (true);
|
|
7985
7992
|
};
|
|
7986
|
-
function $getBodyBytesCOROUTINE$
|
|
7993
|
+
function $getBodyBytesCOROUTINE$34(content, callContext, resultContinuation) {
|
|
7987
7994
|
CoroutineImpl.call(this, resultContinuation);
|
|
7988
|
-
this.
|
|
7989
|
-
this.
|
|
7995
|
+
this.p3z_1 = content;
|
|
7996
|
+
this.q3z_1 = callContext;
|
|
7990
7997
|
}
|
|
7991
|
-
protoOf($getBodyBytesCOROUTINE$
|
|
7998
|
+
protoOf($getBodyBytesCOROUTINE$34).l9 = function () {
|
|
7992
7999
|
var suspendResult = this.f9_1;
|
|
7993
8000
|
$sm: do
|
|
7994
8001
|
try {
|
|
@@ -7996,51 +8003,51 @@
|
|
|
7996
8003
|
switch (tmp) {
|
|
7997
8004
|
case 0:
|
|
7998
8005
|
this.e9_1 = 4;
|
|
7999
|
-
this.
|
|
8000
|
-
var tmp_0 = this.
|
|
8006
|
+
this.r3z_1 = this.p3z_1;
|
|
8007
|
+
var tmp_0 = this.r3z_1;
|
|
8001
8008
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
8002
|
-
this.
|
|
8009
|
+
this.s3z_1 = this.p3z_1.j2p();
|
|
8003
8010
|
this.d9_1 = 5;
|
|
8004
8011
|
continue $sm;
|
|
8005
8012
|
} else {
|
|
8006
|
-
var tmp_1 = this.
|
|
8013
|
+
var tmp_1 = this.r3z_1;
|
|
8007
8014
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
8008
8015
|
this.d9_1 = 3;
|
|
8009
|
-
suspendResult = readRemaining(this.
|
|
8016
|
+
suspendResult = readRemaining(this.p3z_1.m2p(), this);
|
|
8010
8017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8011
8018
|
return suspendResult;
|
|
8012
8019
|
}
|
|
8013
8020
|
continue $sm;
|
|
8014
8021
|
} else {
|
|
8015
|
-
var tmp_2 = this.
|
|
8022
|
+
var tmp_2 = this.r3z_1;
|
|
8016
8023
|
if (tmp_2 instanceof WriteChannelContent) {
|
|
8017
8024
|
this.d9_1 = 2;
|
|
8018
8025
|
var tmp_3 = GlobalScope_instance;
|
|
8019
|
-
suspendResult = readRemaining(writer(tmp_3, this.
|
|
8026
|
+
suspendResult = readRemaining(writer(tmp_3, this.q3z_1, VOID, getBodyBytes$slambda_0(this.p3z_1, null)).a1k_1, this);
|
|
8020
8027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8021
8028
|
return suspendResult;
|
|
8022
8029
|
}
|
|
8023
8030
|
continue $sm;
|
|
8024
8031
|
} else {
|
|
8025
|
-
var tmp_4 = this.
|
|
8032
|
+
var tmp_4 = this.r3z_1;
|
|
8026
8033
|
if (tmp_4 instanceof ContentWrapper) {
|
|
8027
8034
|
this.d9_1 = 1;
|
|
8028
|
-
suspendResult = getBodyBytes(this.
|
|
8035
|
+
suspendResult = getBodyBytes(this.p3z_1.s2p(), this.q3z_1, this);
|
|
8029
8036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8030
8037
|
return suspendResult;
|
|
8031
8038
|
}
|
|
8032
8039
|
continue $sm;
|
|
8033
8040
|
} else {
|
|
8034
|
-
var tmp_5 = this.
|
|
8041
|
+
var tmp_5 = this.r3z_1;
|
|
8035
8042
|
if (tmp_5 instanceof NoContent) {
|
|
8036
|
-
this.
|
|
8043
|
+
this.s3z_1 = null;
|
|
8037
8044
|
this.d9_1 = 5;
|
|
8038
8045
|
continue $sm;
|
|
8039
8046
|
} else {
|
|
8040
|
-
var tmp_6 = this.
|
|
8047
|
+
var tmp_6 = this.r3z_1;
|
|
8041
8048
|
if (tmp_6 instanceof ProtocolUpgrade) {
|
|
8042
8049
|
var tmp_7 = this;
|
|
8043
|
-
throw new UnsupportedContentTypeException(this.
|
|
8050
|
+
throw new UnsupportedContentTypeException(this.p3z_1);
|
|
8044
8051
|
} else {
|
|
8045
8052
|
var tmp_8 = this;
|
|
8046
8053
|
noWhenBranchMatchedException();
|
|
@@ -8053,23 +8060,23 @@
|
|
|
8053
8060
|
|
|
8054
8061
|
break;
|
|
8055
8062
|
case 1:
|
|
8056
|
-
this.
|
|
8063
|
+
this.s3z_1 = suspendResult;
|
|
8057
8064
|
this.d9_1 = 5;
|
|
8058
8065
|
continue $sm;
|
|
8059
8066
|
case 2:
|
|
8060
8067
|
var ARGUMENT = suspendResult;
|
|
8061
|
-
this.
|
|
8068
|
+
this.s3z_1 = readByteArray(ARGUMENT);
|
|
8062
8069
|
this.d9_1 = 5;
|
|
8063
8070
|
continue $sm;
|
|
8064
8071
|
case 3:
|
|
8065
8072
|
var ARGUMENT_0 = suspendResult;
|
|
8066
|
-
this.
|
|
8073
|
+
this.s3z_1 = readByteArray(ARGUMENT_0);
|
|
8067
8074
|
this.d9_1 = 5;
|
|
8068
8075
|
continue $sm;
|
|
8069
8076
|
case 4:
|
|
8070
8077
|
throw this.g9_1;
|
|
8071
8078
|
case 5:
|
|
8072
|
-
return this.
|
|
8079
|
+
return this.s3z_1;
|
|
8073
8080
|
}
|
|
8074
8081
|
} catch ($p) {
|
|
8075
8082
|
var e = $p;
|
|
@@ -8111,7 +8118,7 @@
|
|
|
8111
8118
|
return cancellable.ls();
|
|
8112
8119
|
}
|
|
8113
8120
|
function channelFromStream$slambda($stream, resultContinuation) {
|
|
8114
|
-
this.
|
|
8121
|
+
this.l40_1 = $stream;
|
|
8115
8122
|
CoroutineImpl.call(this, resultContinuation);
|
|
8116
8123
|
}
|
|
8117
8124
|
protoOf(channelFromStream$slambda).g30 = function ($this$writer, $completion) {
|
|
@@ -8131,7 +8138,7 @@
|
|
|
8131
8138
|
switch (tmp) {
|
|
8132
8139
|
case 0:
|
|
8133
8140
|
this.e9_1 = 8;
|
|
8134
|
-
this.
|
|
8141
|
+
this.n40_1 = this.l40_1.getReader();
|
|
8135
8142
|
this.d9_1 = 1;
|
|
8136
8143
|
continue $sm;
|
|
8137
8144
|
case 1:
|
|
@@ -8142,29 +8149,29 @@
|
|
|
8142
8149
|
|
|
8143
8150
|
this.e9_1 = 7;
|
|
8144
8151
|
this.d9_1 = 2;
|
|
8145
|
-
suspendResult = readChunk(this.
|
|
8152
|
+
suspendResult = readChunk(this.n40_1, this);
|
|
8146
8153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8147
8154
|
return suspendResult;
|
|
8148
8155
|
}
|
|
8149
8156
|
|
|
8150
8157
|
continue $sm;
|
|
8151
8158
|
case 2:
|
|
8152
|
-
this.
|
|
8153
|
-
if (this.
|
|
8159
|
+
this.o40_1 = suspendResult;
|
|
8160
|
+
if (this.o40_1 == null) {
|
|
8154
8161
|
this.e9_1 = 8;
|
|
8155
8162
|
this.d9_1 = 9;
|
|
8156
8163
|
var tmp_0 = this;
|
|
8157
8164
|
continue $sm;
|
|
8158
8165
|
} else {
|
|
8159
|
-
this.
|
|
8166
|
+
this.p40_1 = this.o40_1;
|
|
8160
8167
|
this.d9_1 = 3;
|
|
8161
8168
|
continue $sm;
|
|
8162
8169
|
}
|
|
8163
8170
|
|
|
8164
8171
|
case 3:
|
|
8165
|
-
this.
|
|
8172
|
+
this.q40_1 = this.p40_1;
|
|
8166
8173
|
this.d9_1 = 4;
|
|
8167
|
-
suspendResult = writeFully(this.
|
|
8174
|
+
suspendResult = writeFully(this.m40_1.c1k_1, asByteArray(this.q40_1), VOID, VOID, this);
|
|
8168
8175
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8169
8176
|
return suspendResult;
|
|
8170
8177
|
}
|
|
@@ -8172,7 +8179,7 @@
|
|
|
8172
8179
|
continue $sm;
|
|
8173
8180
|
case 4:
|
|
8174
8181
|
this.d9_1 = 5;
|
|
8175
|
-
suspendResult = this.
|
|
8182
|
+
suspendResult = this.m40_1.c1k_1.n1g(this);
|
|
8176
8183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8177
8184
|
return suspendResult;
|
|
8178
8185
|
}
|
|
@@ -8191,7 +8198,7 @@
|
|
|
8191
8198
|
var tmp_1 = this.g9_1;
|
|
8192
8199
|
if (tmp_1 instanceof Error) {
|
|
8193
8200
|
var cause = this.g9_1;
|
|
8194
|
-
this.
|
|
8201
|
+
this.n40_1.cancel(cause);
|
|
8195
8202
|
throw cause;
|
|
8196
8203
|
} else {
|
|
8197
8204
|
throw this.g9_1;
|
|
@@ -8214,8 +8221,8 @@
|
|
|
8214
8221
|
while (true);
|
|
8215
8222
|
};
|
|
8216
8223
|
protoOf(channelFromStream$slambda).h30 = function ($this$writer, completion) {
|
|
8217
|
-
var i = new channelFromStream$slambda(this.
|
|
8218
|
-
i.
|
|
8224
|
+
var i = new channelFromStream$slambda(this.l40_1, completion);
|
|
8225
|
+
i.m40_1 = $this$writer;
|
|
8219
8226
|
return i;
|
|
8220
8227
|
};
|
|
8221
8228
|
function channelFromStream$slambda_0($stream, resultContinuation) {
|
|
@@ -8258,7 +8265,7 @@
|
|
|
8258
8265
|
if (PlatformUtils_getInstance().o28_1) {
|
|
8259
8266
|
tmp = fetch(input, init);
|
|
8260
8267
|
} else {
|
|
8261
|
-
var options = Object.assign(Object.create(null), init, config.
|
|
8268
|
+
var options = Object.assign(Object.create(null), init, config.t3w_1);
|
|
8262
8269
|
tmp = fetch(input, options);
|
|
8263
8270
|
}
|
|
8264
8271
|
var promise = tmp;
|
|
@@ -8309,21 +8316,21 @@
|
|
|
8309
8316
|
tmp = Text_init_$Create$(data);
|
|
8310
8317
|
} else {
|
|
8311
8318
|
var error = IllegalStateException_init_$Create$('Unknown frame type: ' + event.type);
|
|
8312
|
-
this$0.
|
|
8319
|
+
this$0.t40_1.hu(error);
|
|
8313
8320
|
throw error;
|
|
8314
8321
|
}
|
|
8315
8322
|
}
|
|
8316
8323
|
var frame = tmp;
|
|
8317
|
-
this$0.
|
|
8324
|
+
this$0.u40_1.r12(frame);
|
|
8318
8325
|
return Unit_instance;
|
|
8319
8326
|
};
|
|
8320
8327
|
}
|
|
8321
8328
|
function JsWebSocketSession$lambda_0(this$0) {
|
|
8322
8329
|
return function (it) {
|
|
8323
8330
|
var cause = WebSocketException_init_$Create$(toString(it));
|
|
8324
|
-
this$0.
|
|
8325
|
-
this$0.
|
|
8326
|
-
this$0.
|
|
8331
|
+
this$0.t40_1.hu(cause);
|
|
8332
|
+
this$0.u40_1.v12(cause);
|
|
8333
|
+
this$0.v40_1.z12();
|
|
8327
8334
|
return Unit_instance;
|
|
8328
8335
|
};
|
|
8329
8336
|
}
|
|
@@ -8333,15 +8340,15 @@
|
|
|
8333
8340
|
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
8334
8341
|
var tmp_1 = event.reason;
|
|
8335
8342
|
var reason = new CloseReason(tmp_0, (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
8336
|
-
this$0.
|
|
8337
|
-
this$0.
|
|
8338
|
-
this$0.
|
|
8339
|
-
this$0.
|
|
8343
|
+
this$0.t40_1.fu(reason);
|
|
8344
|
+
this$0.u40_1.r12(Close_init_$Create$(reason));
|
|
8345
|
+
this$0.u40_1.x12();
|
|
8346
|
+
this$0.v40_1.z12();
|
|
8340
8347
|
return Unit_instance;
|
|
8341
8348
|
};
|
|
8342
8349
|
}
|
|
8343
8350
|
function JsWebSocketSession$slambda(this$0, resultContinuation) {
|
|
8344
|
-
this.
|
|
8351
|
+
this.h41_1 = this$0;
|
|
8345
8352
|
CoroutineImpl.call(this, resultContinuation);
|
|
8346
8353
|
}
|
|
8347
8354
|
protoOf(JsWebSocketSession$slambda).k1l = function ($this$launch, $completion) {
|
|
@@ -8362,15 +8369,15 @@
|
|
|
8362
8369
|
case 0:
|
|
8363
8370
|
this.e9_1 = 10;
|
|
8364
8371
|
var tmp_0 = this;
|
|
8365
|
-
tmp_0.
|
|
8366
|
-
this.
|
|
8372
|
+
tmp_0.j41_1 = this.h41_1.v40_1;
|
|
8373
|
+
this.k41_1 = this.j41_1;
|
|
8367
8374
|
var tmp_1 = this;
|
|
8368
|
-
tmp_1.
|
|
8375
|
+
tmp_1.l41_1 = this.k41_1;
|
|
8369
8376
|
this.d9_1 = 1;
|
|
8370
8377
|
continue $sm;
|
|
8371
8378
|
case 1:
|
|
8372
|
-
this.
|
|
8373
|
-
this.
|
|
8379
|
+
this.n41_1 = this.l41_1;
|
|
8380
|
+
this.o41_1 = null;
|
|
8374
8381
|
this.d9_1 = 2;
|
|
8375
8382
|
continue $sm;
|
|
8376
8383
|
case 2:
|
|
@@ -8380,14 +8387,14 @@
|
|
|
8380
8387
|
this.e9_1 = 9;
|
|
8381
8388
|
this.e9_1 = 8;
|
|
8382
8389
|
var tmp_2 = this;
|
|
8383
|
-
tmp_2.
|
|
8384
|
-
this.
|
|
8385
|
-
this.
|
|
8390
|
+
tmp_2.q41_1 = this.n41_1;
|
|
8391
|
+
this.r41_1 = this.q41_1;
|
|
8392
|
+
this.s41_1 = this.r41_1.p();
|
|
8386
8393
|
this.d9_1 = 4;
|
|
8387
8394
|
continue $sm;
|
|
8388
8395
|
case 4:
|
|
8389
8396
|
this.d9_1 = 5;
|
|
8390
|
-
suspendResult = this.
|
|
8397
|
+
suspendResult = this.s41_1.h12(this);
|
|
8391
8398
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8392
8399
|
return suspendResult;
|
|
8393
8400
|
}
|
|
@@ -8399,17 +8406,17 @@
|
|
|
8399
8406
|
continue $sm;
|
|
8400
8407
|
}
|
|
8401
8408
|
|
|
8402
|
-
var e = this.
|
|
8409
|
+
var e = this.s41_1.r();
|
|
8403
8410
|
switch (e.v2q_1.r2_1) {
|
|
8404
8411
|
case 0:
|
|
8405
8412
|
var text = e.w2q_1;
|
|
8406
|
-
this.
|
|
8413
|
+
this.h41_1.s40_1.send(decodeToString(text, 0, 0 + text.length | 0));
|
|
8407
8414
|
break;
|
|
8408
8415
|
case 1:
|
|
8409
8416
|
var tmp_3 = e.w2q_1;
|
|
8410
8417
|
var source = tmp_3 instanceof Int8Array ? tmp_3 : THROW_CCE();
|
|
8411
8418
|
var frameData = source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength | 0);
|
|
8412
|
-
this.
|
|
8419
|
+
this.h41_1.s40_1.send(frameData);
|
|
8413
8420
|
break;
|
|
8414
8421
|
case 2:
|
|
8415
8422
|
var builder = new Buffer();
|
|
@@ -8417,11 +8424,11 @@
|
|
|
8417
8424
|
var data = builder;
|
|
8418
8425
|
var code = data.w1b();
|
|
8419
8426
|
var reason = readText(data);
|
|
8420
|
-
this.
|
|
8421
|
-
if (isReservedStatusCode(code, this.
|
|
8422
|
-
this.
|
|
8427
|
+
this.h41_1.t40_1.fu(new CloseReason(code, reason));
|
|
8428
|
+
if (isReservedStatusCode(code, this.h41_1)) {
|
|
8429
|
+
this.h41_1.s40_1.close();
|
|
8423
8430
|
} else {
|
|
8424
|
-
this.
|
|
8431
|
+
this.h41_1.s40_1.close(code, reason);
|
|
8425
8432
|
}
|
|
8426
8433
|
|
|
8427
8434
|
break;
|
|
@@ -8437,7 +8444,7 @@
|
|
|
8437
8444
|
continue $sm;
|
|
8438
8445
|
case 6:
|
|
8439
8446
|
var tmp_4 = this;
|
|
8440
|
-
tmp_4.
|
|
8447
|
+
tmp_4.p41_1 = Unit_instance;
|
|
8441
8448
|
this.e9_1 = 10;
|
|
8442
8449
|
this.d9_1 = 7;
|
|
8443
8450
|
var tmp_5 = this;
|
|
@@ -8445,8 +8452,8 @@
|
|
|
8445
8452
|
case 7:
|
|
8446
8453
|
this.e9_1 = 10;
|
|
8447
8454
|
var tmp_6 = this;
|
|
8448
|
-
cancelConsumed(this.
|
|
8449
|
-
tmp_6.
|
|
8455
|
+
cancelConsumed(this.n41_1, this.o41_1);
|
|
8456
|
+
tmp_6.m41_1 = Unit_instance;
|
|
8450
8457
|
this.d9_1 = 12;
|
|
8451
8458
|
continue $sm;
|
|
8452
8459
|
case 8:
|
|
@@ -8455,7 +8462,7 @@
|
|
|
8455
8462
|
if (tmp_7 instanceof Error) {
|
|
8456
8463
|
var e_0 = this.g9_1;
|
|
8457
8464
|
var tmp_8 = this;
|
|
8458
|
-
this.
|
|
8465
|
+
this.o41_1 = e_0;
|
|
8459
8466
|
throw e_0;
|
|
8460
8467
|
} else {
|
|
8461
8468
|
throw this.g9_1;
|
|
@@ -8464,13 +8471,13 @@
|
|
|
8464
8471
|
case 9:
|
|
8465
8472
|
this.e9_1 = 10;
|
|
8466
8473
|
var t = this.g9_1;
|
|
8467
|
-
cancelConsumed(this.
|
|
8474
|
+
cancelConsumed(this.n41_1, this.o41_1);
|
|
8468
8475
|
throw t;
|
|
8469
8476
|
case 10:
|
|
8470
8477
|
throw this.g9_1;
|
|
8471
8478
|
case 11:
|
|
8472
8479
|
this.e9_1 = 10;
|
|
8473
|
-
cancelConsumed(this.
|
|
8480
|
+
cancelConsumed(this.n41_1, this.o41_1);
|
|
8474
8481
|
if (false) {
|
|
8475
8482
|
this.d9_1 = 1;
|
|
8476
8483
|
continue $sm;
|
|
@@ -8493,8 +8500,8 @@
|
|
|
8493
8500
|
while (true);
|
|
8494
8501
|
};
|
|
8495
8502
|
protoOf(JsWebSocketSession$slambda).l1l = function ($this$launch, completion) {
|
|
8496
|
-
var i = new JsWebSocketSession$slambda(this.
|
|
8497
|
-
i.
|
|
8503
|
+
var i = new JsWebSocketSession$slambda(this.h41_1, completion);
|
|
8504
|
+
i.i41_1 = $this$launch;
|
|
8498
8505
|
return i;
|
|
8499
8506
|
};
|
|
8500
8507
|
function JsWebSocketSession$slambda_0(this$0, resultContinuation) {
|
|
@@ -8509,34 +8516,34 @@
|
|
|
8509
8516
|
return function (cause) {
|
|
8510
8517
|
var tmp;
|
|
8511
8518
|
if (cause == null) {
|
|
8512
|
-
this$0.
|
|
8519
|
+
this$0.s40_1.close();
|
|
8513
8520
|
tmp = Unit_instance;
|
|
8514
8521
|
} else {
|
|
8515
|
-
this$0.
|
|
8522
|
+
this$0.s40_1.close(Codes_NORMAL_getInstance().g2q_1, 'Client failed');
|
|
8516
8523
|
tmp = Unit_instance;
|
|
8517
8524
|
}
|
|
8518
8525
|
return Unit_instance;
|
|
8519
8526
|
};
|
|
8520
8527
|
}
|
|
8521
8528
|
function JsWebSocketSession(coroutineContext, websocket) {
|
|
8522
|
-
this.
|
|
8523
|
-
this.
|
|
8524
|
-
this.
|
|
8525
|
-
this.t40_1 = Channel(2147483647);
|
|
8529
|
+
this.r40_1 = coroutineContext;
|
|
8530
|
+
this.s40_1 = websocket;
|
|
8531
|
+
this.t40_1 = CompletableDeferred();
|
|
8526
8532
|
this.u40_1 = Channel(2147483647);
|
|
8527
|
-
this.v40_1 =
|
|
8533
|
+
this.v40_1 = Channel(2147483647);
|
|
8528
8534
|
this.w40_1 = this.u40_1;
|
|
8529
|
-
this.x40_1 = this.
|
|
8535
|
+
this.x40_1 = this.v40_1;
|
|
8536
|
+
this.y40_1 = this.t40_1;
|
|
8530
8537
|
// Inline function 'org.w3c.dom.ARRAYBUFFER' call
|
|
8531
8538
|
// Inline function 'kotlin.js.asDynamic' call
|
|
8532
8539
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
8533
8540
|
var tmp$ret$2 = 'arraybuffer';
|
|
8534
|
-
this.
|
|
8535
|
-
this.
|
|
8536
|
-
this.
|
|
8537
|
-
this.
|
|
8541
|
+
this.s40_1.binaryType = tmp$ret$2;
|
|
8542
|
+
this.s40_1.addEventListener('message', JsWebSocketSession$lambda(this));
|
|
8543
|
+
this.s40_1.addEventListener('error', JsWebSocketSession$lambda_0(this));
|
|
8544
|
+
this.s40_1.addEventListener('close', JsWebSocketSession$lambda_1(this));
|
|
8538
8545
|
launch(this, VOID, VOID, JsWebSocketSession$slambda_0(this, null));
|
|
8539
|
-
var tmp0_safe_receiver = this.
|
|
8546
|
+
var tmp0_safe_receiver = this.r40_1.q9(Key_instance);
|
|
8540
8547
|
if (tmp0_safe_receiver == null)
|
|
8541
8548
|
null;
|
|
8542
8549
|
else {
|
|
@@ -8544,7 +8551,7 @@
|
|
|
8544
8551
|
}
|
|
8545
8552
|
}
|
|
8546
8553
|
protoOf(JsWebSocketSession).nn = function () {
|
|
8547
|
-
return this.
|
|
8554
|
+
return this.r40_1;
|
|
8548
8555
|
};
|
|
8549
8556
|
function HttpClient_1(block) {
|
|
8550
8557
|
var tmp;
|
|
@@ -8638,20 +8645,25 @@
|
|
|
8638
8645
|
_.$_$.g = TransformRequestBodyContext;
|
|
8639
8646
|
_.$_$.h = TransformResponseBodyContext;
|
|
8640
8647
|
_.$_$.i = createClientPlugin_0;
|
|
8641
|
-
_.$_$.j =
|
|
8642
|
-
_.$_$.k =
|
|
8643
|
-
_.$_$.l =
|
|
8644
|
-
_.$_$.m =
|
|
8645
|
-
_.$_$.n =
|
|
8646
|
-
_.$_$.o =
|
|
8647
|
-
_.$_$.p =
|
|
8648
|
-
_.$_$.q =
|
|
8649
|
-
_.$_$.r =
|
|
8650
|
-
_.$_$.s =
|
|
8651
|
-
_.$_$.t =
|
|
8652
|
-
_.$_$.u =
|
|
8653
|
-
_.$_$.v =
|
|
8654
|
-
_.$_$.w =
|
|
8648
|
+
_.$_$.j = ClientRequestException;
|
|
8649
|
+
_.$_$.k = HttpResponseValidator;
|
|
8650
|
+
_.$_$.l = get_HttpTimeout;
|
|
8651
|
+
_.$_$.m = RedirectResponseException;
|
|
8652
|
+
_.$_$.n = Sender;
|
|
8653
|
+
_.$_$.o = ServerResponseException;
|
|
8654
|
+
_.$_$.p = get_UserAgent;
|
|
8655
|
+
_.$_$.q = defaultRequest;
|
|
8656
|
+
_.$_$.r = plugin;
|
|
8657
|
+
_.$_$.s = HttpRequestBuilder;
|
|
8658
|
+
_.$_$.t = HttpRequest_0;
|
|
8659
|
+
_.$_$.u = accept;
|
|
8660
|
+
_.$_$.v = headers;
|
|
8661
|
+
_.$_$.w = parameter;
|
|
8662
|
+
_.$_$.x = url;
|
|
8663
|
+
_.$_$.y = HttpResponse;
|
|
8664
|
+
_.$_$.z = HttpStatement;
|
|
8665
|
+
_.$_$.a1 = get_request;
|
|
8666
|
+
_.$_$.b1 = HttpClient_1;
|
|
8655
8667
|
//endregion
|
|
8656
8668
|
return _;
|
|
8657
8669
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-utils.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-shared-ktor-events.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-http.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./ktor-ktor-shared-ktor-websockets.js')));
|