@doordeck/doordeck-headless-sdk 0.45.0 → 0.47.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 +1394 -1464
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +19 -21
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -8
- package/kotlin/Stately-stately-concurrency.js +6 -8
- package/kotlin/Stately-stately-concurrent-collections.js +53 -55
- package/kotlin/Stately-stately-strict.js +0 -2
- package/kotlin/doordeck-sdk.js +11765 -11217
- package/kotlin/kotlin-kotlin-stdlib.js +1938 -1924
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -2
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -2
- package/kotlin/kotlinx-atomicfu.js +13 -15
- package/kotlin/kotlinx-coroutines-core.js +2051 -2089
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +0 -2
- package/kotlin/kotlinx-io-kotlinx-io-core.js +559 -550
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1849 -1872
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1523 -1523
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2832 -2843
- package/kotlin/ktor-ktor-client-ktor-client-js.js +0 -2
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +388 -391
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +198 -199
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js +0 -2
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +0 -2
- package/kotlin/ktor-ktor-http.js +833 -860
- package/kotlin/ktor-ktor-io.js +641 -653
- package/kotlin/ktor-ktor-shared-ktor-events.js +7 -10
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +266 -263
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +113 -111
- package/kotlin/ktor-ktor-shared-ktor-sse.js +0 -2
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js +0 -2
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +46 -46
- package/kotlin/ktor-ktor-utils.js +590 -606
- package/kotlin/projects-core-koin-core.js +299 -316
- package/package.json +4 -3
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +0 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js.map +0 -1
- package/kotlin/Stately-stately-concurrency.js.map +0 -1
- package/kotlin/Stately-stately-concurrent-collections.js.map +0 -1
- package/kotlin/Stately-stately-strict.js.map +0 -1
- package/kotlin/doordeck-sdk.js.map +0 -1
- package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +0 -1
- package/kotlin/kotlinx-atomicfu.js.map +0 -1
- package/kotlin/kotlinx-coroutines-core.js.map +0 -1
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-core.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-js.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js.map +0 -1
- package/kotlin/ktor-ktor-http.js.map +0 -1
- package/kotlin/ktor-ktor-io.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-events.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-sse.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +0 -1
- package/kotlin/ktor-ktor-utils.js.map +0 -1
- package/kotlin/projects-core-koin-core.js.map +0 -1
package/kotlin/ktor-ktor-http.js
CHANGED
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
var protoOf = kotlin_kotlin.$_$.pb;
|
|
30
30
|
var initMetadataForClass = kotlin_kotlin.$_$.pa;
|
|
31
31
|
var Char__minus_impl_a2frrh_0 = kotlin_kotlin.$_$.v2;
|
|
32
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
|
|
32
33
|
var numberToChar = kotlin_kotlin.$_$.lb;
|
|
33
34
|
var canRead = kotlin_io_ktor_ktor_io.$_$.r;
|
|
34
35
|
var Char__rangeTo_impl_tkncvp = kotlin_kotlin.$_$.y2;
|
|
@@ -36,7 +37,6 @@
|
|
|
36
37
|
var plus_0 = kotlin_kotlin.$_$.b8;
|
|
37
38
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i6;
|
|
38
39
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
39
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
|
|
40
40
|
var toSet = kotlin_kotlin.$_$.w8;
|
|
41
41
|
var setOf = kotlin_kotlin.$_$.i8;
|
|
42
42
|
var plus_1 = kotlin_kotlin.$_$.z7;
|
|
@@ -225,34 +225,30 @@
|
|
|
225
225
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
226
226
|
_init_properties_Codecs_kt__fudxxf();
|
|
227
227
|
// Inline function 'kotlin.text.buildString' call
|
|
228
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
229
228
|
// Inline function 'kotlin.apply' call
|
|
230
229
|
var this_0 = StringBuilder_init_$Create$();
|
|
231
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
232
230
|
// Inline function 'io.ktor.http.encodeURLParameter.<anonymous>' call
|
|
233
|
-
var content = encode(Charsets_getInstance().
|
|
231
|
+
var content = encode(Charsets_getInstance().y1l_1.c1m(), _this__u8e3s4);
|
|
234
232
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
235
233
|
return this_0.toString();
|
|
236
234
|
}
|
|
237
235
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
238
236
|
start = start === VOID ? 0 : start;
|
|
239
237
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
240
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
238
|
+
charset = charset === VOID ? Charsets_getInstance().y1l_1 : charset;
|
|
241
239
|
_init_properties_Codecs_kt__fudxxf();
|
|
242
240
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
243
241
|
}
|
|
244
242
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
245
243
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
246
244
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
247
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
245
|
+
charset = charset === VOID ? Charsets_getInstance().y1l_1 : charset;
|
|
248
246
|
_init_properties_Codecs_kt__fudxxf();
|
|
249
247
|
// Inline function 'kotlin.text.buildString' call
|
|
250
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
251
248
|
// Inline function 'kotlin.apply' call
|
|
252
249
|
var this_0 = StringBuilder_init_$Create$();
|
|
253
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
254
250
|
// Inline function 'io.ktor.http.encodeURLQueryComponent.<anonymous>' call
|
|
255
|
-
var content = encode(charset.
|
|
251
|
+
var content = encode(charset.c1m(), _this__u8e3s4);
|
|
256
252
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
257
253
|
return this_0.toString();
|
|
258
254
|
}
|
|
@@ -260,7 +256,7 @@
|
|
|
260
256
|
start = start === VOID ? 0 : start;
|
|
261
257
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
262
258
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
263
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
259
|
+
charset = charset === VOID ? Charsets_getInstance().y1l_1 : charset;
|
|
264
260
|
_init_properties_Codecs_kt__fudxxf();
|
|
265
261
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
266
262
|
}
|
|
@@ -309,29 +305,27 @@
|
|
|
309
305
|
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
310
306
|
_init_properties_Codecs_kt__fudxxf();
|
|
311
307
|
// Inline function 'kotlin.text.buildString' call
|
|
312
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
313
308
|
// Inline function 'kotlin.apply' call
|
|
314
309
|
var this_0 = StringBuilder_init_$Create$();
|
|
315
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
316
310
|
// Inline function 'io.ktor.http.encodeURLPath.<anonymous>' call
|
|
317
|
-
var charset = Charsets_getInstance().
|
|
311
|
+
var charset = Charsets_getInstance().y1l_1;
|
|
318
312
|
var index = 0;
|
|
319
313
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
320
314
|
var current = charSequenceGet(_this__u8e3s4, index);
|
|
321
315
|
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().x1(new Char(current)) || get_VALID_PATH_PART().x1(new Char(current))) {
|
|
322
|
-
this_0.
|
|
316
|
+
this_0.q8(current);
|
|
323
317
|
index = index + 1 | 0;
|
|
324
318
|
continue $l$loop_0;
|
|
325
319
|
}
|
|
326
320
|
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().x1(new Char(charSequenceGet(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().x1(new Char(charSequenceGet(_this__u8e3s4, index + 2 | 0)))) {
|
|
327
|
-
this_0.
|
|
328
|
-
this_0.
|
|
329
|
-
this_0.
|
|
321
|
+
this_0.q8(current);
|
|
322
|
+
this_0.q8(charSequenceGet(_this__u8e3s4, index + 1 | 0));
|
|
323
|
+
this_0.q8(charSequenceGet(_this__u8e3s4, index + 2 | 0));
|
|
330
324
|
index = index + 3 | 0;
|
|
331
325
|
continue $l$loop_0;
|
|
332
326
|
}
|
|
333
327
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
334
|
-
var tmp = encode(charset.
|
|
328
|
+
var tmp = encode(charset.c1m(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
335
329
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
336
330
|
index = index + symbolSize | 0;
|
|
337
331
|
}
|
|
@@ -347,14 +341,14 @@
|
|
|
347
341
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
348
342
|
var sb = StringBuilder_init_$Create$_0(sbSize);
|
|
349
343
|
if (prefixEnd > start) {
|
|
350
|
-
sb.
|
|
344
|
+
sb.uc(_this__u8e3s4, start, prefixEnd);
|
|
351
345
|
}
|
|
352
346
|
var index = prefixEnd;
|
|
353
347
|
var bytes = null;
|
|
354
348
|
while (index < end) {
|
|
355
349
|
var c = charSequenceGet(_this__u8e3s4, index);
|
|
356
350
|
if (plusIsSpace && c === _Char___init__impl__6a9atx(43)) {
|
|
357
|
-
sb.
|
|
351
|
+
sb.q8(_Char___init__impl__6a9atx(32));
|
|
358
352
|
index = index + 1 | 0;
|
|
359
353
|
} else if (c === _Char___init__impl__6a9atx(37)) {
|
|
360
354
|
if (bytes == null) {
|
|
@@ -380,9 +374,9 @@
|
|
|
380
374
|
tmp[_unary__edvuaz] = toByte(imul(digit1, 16) + digit2 | 0);
|
|
381
375
|
index = index + 3 | 0;
|
|
382
376
|
}
|
|
383
|
-
sb.
|
|
377
|
+
sb.p8(decodeToString(bytes, 0, 0 + count | 0));
|
|
384
378
|
} else {
|
|
385
|
-
sb.
|
|
379
|
+
sb.q8(c);
|
|
386
380
|
index = index + 1 | 0;
|
|
387
381
|
}
|
|
388
382
|
}
|
|
@@ -403,39 +397,59 @@
|
|
|
403
397
|
function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
404
398
|
return function (it) {
|
|
405
399
|
if (get_URL_ALPHABET().x1(it) || get_SPECIAL_SYMBOLS().x1(it))
|
|
406
|
-
$$this$buildString.
|
|
407
|
-
else
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
400
|
+
$$this$buildString.q8(numberToChar(it));
|
|
401
|
+
else {
|
|
402
|
+
var tmp;
|
|
403
|
+
if ($spaceToPlus) {
|
|
404
|
+
var tmp_0 = it;
|
|
405
|
+
// Inline function 'kotlin.code' call
|
|
406
|
+
var this_0 = _Char___init__impl__6a9atx(32);
|
|
407
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
408
|
+
tmp = tmp_0 === toByte(tmp$ret$0);
|
|
409
|
+
} else {
|
|
410
|
+
tmp = false;
|
|
411
|
+
}
|
|
412
|
+
if (tmp)
|
|
413
|
+
$$this$buildString.q8(_Char___init__impl__6a9atx(43));
|
|
414
|
+
else {
|
|
415
|
+
$$this$buildString.p8(percentEncode(it));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
411
418
|
return Unit_instance;
|
|
412
419
|
};
|
|
413
420
|
}
|
|
414
421
|
function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encodeFull) {
|
|
415
422
|
return function (it) {
|
|
416
|
-
|
|
423
|
+
var tmp = it;
|
|
424
|
+
// Inline function 'kotlin.code' call
|
|
425
|
+
var this_0 = _Char___init__impl__6a9atx(32);
|
|
426
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
427
|
+
if (tmp === toByte(tmp$ret$0))
|
|
417
428
|
if ($spaceToPlus)
|
|
418
|
-
$$this$buildString.
|
|
429
|
+
$$this$buildString.q8(_Char___init__impl__6a9atx(43));
|
|
419
430
|
else
|
|
420
|
-
$$this$buildString.
|
|
421
|
-
else
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
431
|
+
$$this$buildString.p8('%20');
|
|
432
|
+
else {
|
|
433
|
+
if (get_URL_ALPHABET().x1(it) || (!$encodeFull && get_URL_PROTOCOL_PART().x1(it)))
|
|
434
|
+
$$this$buildString.q8(numberToChar(it));
|
|
435
|
+
else {
|
|
436
|
+
$$this$buildString.p8(percentEncode(it));
|
|
437
|
+
}
|
|
438
|
+
}
|
|
425
439
|
return Unit_instance;
|
|
426
440
|
};
|
|
427
441
|
}
|
|
428
442
|
function forEach$lambda($block) {
|
|
429
443
|
return function (buffer) {
|
|
430
444
|
while (canRead(buffer)) {
|
|
431
|
-
$block(buffer.
|
|
445
|
+
$block(buffer.y1b());
|
|
432
446
|
}
|
|
433
447
|
return true;
|
|
434
448
|
};
|
|
435
449
|
}
|
|
436
450
|
function encodeURLPath$lambda($$this$buildString) {
|
|
437
451
|
return function (it) {
|
|
438
|
-
$$this$buildString.
|
|
452
|
+
$$this$buildString.p8(percentEncode(it));
|
|
439
453
|
return Unit_instance;
|
|
440
454
|
};
|
|
441
455
|
}
|
|
@@ -447,9 +461,9 @@
|
|
|
447
461
|
var this_0 = plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57)));
|
|
448
462
|
// Inline function 'kotlin.collections.mapTo' call
|
|
449
463
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
450
|
-
var
|
|
451
|
-
while (
|
|
452
|
-
var item =
|
|
464
|
+
var _iterator__ex2g4s = this_0.p();
|
|
465
|
+
while (_iterator__ex2g4s.q()) {
|
|
466
|
+
var item = _iterator__ex2g4s.r();
|
|
453
467
|
// Inline function 'io.ktor.http.URL_ALPHABET.<anonymous>' call
|
|
454
468
|
// Inline function 'kotlin.code' call
|
|
455
469
|
var this_1 = item.l1_1;
|
|
@@ -464,9 +478,9 @@
|
|
|
464
478
|
var this_2 = setOf([new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(93)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126)), new Char(_Char___init__impl__6a9atx(43))]);
|
|
465
479
|
// Inline function 'kotlin.collections.mapTo' call
|
|
466
480
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
467
|
-
var
|
|
468
|
-
while (
|
|
469
|
-
var item_0 =
|
|
481
|
+
var _iterator__ex2g4s_0 = this_2.p();
|
|
482
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
483
|
+
var item_0 = _iterator__ex2g4s_0.r();
|
|
470
484
|
// Inline function 'io.ktor.http.URL_PROTOCOL_PART.<anonymous>' call
|
|
471
485
|
// Inline function 'kotlin.code' call
|
|
472
486
|
var this_3 = item_0.l1_1;
|
|
@@ -481,9 +495,9 @@
|
|
|
481
495
|
var this_4 = listOf([new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
|
|
482
496
|
// Inline function 'kotlin.collections.mapTo' call
|
|
483
497
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
484
|
-
var
|
|
485
|
-
while (
|
|
486
|
-
var item_1 =
|
|
498
|
+
var _iterator__ex2g4s_1 = this_4.p();
|
|
499
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
500
|
+
var item_1 = _iterator__ex2g4s_1.r();
|
|
487
501
|
// Inline function 'io.ktor.http.SPECIAL_SYMBOLS.<anonymous>' call
|
|
488
502
|
// Inline function 'kotlin.code' call
|
|
489
503
|
var this_5 = item_1.l1_1;
|
|
@@ -504,28 +518,26 @@
|
|
|
504
518
|
}
|
|
505
519
|
function hasParameter($this, name, value) {
|
|
506
520
|
var tmp;
|
|
507
|
-
switch ($this.
|
|
521
|
+
switch ($this.w2d_1.s()) {
|
|
508
522
|
case 0:
|
|
509
523
|
tmp = false;
|
|
510
524
|
break;
|
|
511
525
|
case 1:
|
|
512
526
|
// Inline function 'kotlin.let' call
|
|
513
527
|
|
|
514
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
515
|
-
|
|
516
528
|
// Inline function 'io.ktor.http.ContentType.hasParameter.<anonymous>' call
|
|
517
529
|
|
|
518
|
-
var it = $this.
|
|
519
|
-
tmp = (equals(it.
|
|
530
|
+
var it = $this.w2d_1.u(0);
|
|
531
|
+
tmp = (equals(it.x2d_1, name, true) && equals(it.y2d_1, value, true));
|
|
520
532
|
break;
|
|
521
533
|
default:
|
|
534
|
+
var tmp2 = $this.w2d_1;
|
|
522
535
|
var tmp$ret$2;
|
|
523
536
|
$l$block_0: {
|
|
524
537
|
// Inline function 'kotlin.collections.any' call
|
|
525
|
-
var this_0 = $this.n2c_1;
|
|
526
538
|
var tmp_0;
|
|
527
|
-
if (isInterface(
|
|
528
|
-
tmp_0 =
|
|
539
|
+
if (isInterface(tmp2, Collection)) {
|
|
540
|
+
tmp_0 = tmp2.h();
|
|
529
541
|
} else {
|
|
530
542
|
tmp_0 = false;
|
|
531
543
|
}
|
|
@@ -533,11 +545,11 @@
|
|
|
533
545
|
tmp$ret$2 = false;
|
|
534
546
|
break $l$block_0;
|
|
535
547
|
}
|
|
536
|
-
var
|
|
537
|
-
while (
|
|
538
|
-
var element =
|
|
548
|
+
var _iterator__ex2g4s = tmp2.p();
|
|
549
|
+
while (_iterator__ex2g4s.q()) {
|
|
550
|
+
var element = _iterator__ex2g4s.r();
|
|
539
551
|
// Inline function 'io.ktor.http.ContentType.hasParameter.<anonymous>' call
|
|
540
|
-
if (equals(element.
|
|
552
|
+
if (equals(element.x2d_1, name, true) && equals(element.y2d_1, value, true)) {
|
|
541
553
|
tmp$ret$2 = true;
|
|
542
554
|
break $l$block_0;
|
|
543
555
|
}
|
|
@@ -552,37 +564,37 @@
|
|
|
552
564
|
}
|
|
553
565
|
function Companion() {
|
|
554
566
|
Companion_instance = this;
|
|
555
|
-
this.
|
|
567
|
+
this.a2e_1 = ContentType_init_$Create$('*', '*');
|
|
556
568
|
}
|
|
557
|
-
protoOf(Companion).
|
|
569
|
+
protoOf(Companion).kl = function (value) {
|
|
558
570
|
if (isBlank(value))
|
|
559
|
-
return this.
|
|
571
|
+
return this.a2e_1;
|
|
560
572
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
561
573
|
var headerValue = last(parseHeaderValue(value));
|
|
574
|
+
var tmp2 = headerValue.b2e_1;
|
|
562
575
|
// Inline function 'io.ktor.http.Companion.parse.<anonymous>' call
|
|
563
|
-
var
|
|
564
|
-
var
|
|
565
|
-
var slash = indexOf(parts, _Char___init__impl__6a9atx(47));
|
|
576
|
+
var parameters = headerValue.c2e_1;
|
|
577
|
+
var slash = indexOf(tmp2, _Char___init__impl__6a9atx(47));
|
|
566
578
|
if (slash === -1) {
|
|
567
579
|
// Inline function 'kotlin.text.trim' call
|
|
568
|
-
if (toString(trim(isCharSequence(
|
|
569
|
-
return Companion_getInstance().
|
|
580
|
+
if (toString(trim(isCharSequence(tmp2) ? tmp2 : THROW_CCE())) === '*')
|
|
581
|
+
return Companion_getInstance().a2e_1;
|
|
570
582
|
throw new BadContentTypeFormatException(value);
|
|
571
583
|
}
|
|
572
|
-
// Inline function 'kotlin.text.trim' call
|
|
573
584
|
// Inline function 'kotlin.text.substring' call
|
|
574
585
|
// Inline function 'kotlin.js.asDynamic' call
|
|
575
|
-
|
|
586
|
+
// Inline function 'kotlin.text.trim' call
|
|
587
|
+
var this_0 = tmp2.substring(0, slash);
|
|
576
588
|
var type = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
577
589
|
// Inline function 'kotlin.text.isEmpty' call
|
|
578
590
|
if (charSequenceLength(type) === 0) {
|
|
579
591
|
throw new BadContentTypeFormatException(value);
|
|
580
592
|
}
|
|
581
|
-
// Inline function 'kotlin.text.trim' call
|
|
582
593
|
// Inline function 'kotlin.text.substring' call
|
|
583
594
|
var startIndex = slash + 1 | 0;
|
|
584
595
|
// Inline function 'kotlin.js.asDynamic' call
|
|
585
|
-
|
|
596
|
+
// Inline function 'kotlin.text.trim' call
|
|
597
|
+
var this_1 = tmp2.substring(startIndex);
|
|
586
598
|
var subtype = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
587
599
|
if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
|
|
588
600
|
throw new BadContentTypeFormatException(value);
|
|
@@ -607,28 +619,28 @@
|
|
|
607
619
|
}
|
|
608
620
|
function Application() {
|
|
609
621
|
Application_instance = this;
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
622
|
+
this.e2e_1 = ContentType_init_$Create$('application', '*');
|
|
623
|
+
this.f2e_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
624
|
+
this.g2e_1 = ContentType_init_$Create$('application', 'cbor');
|
|
625
|
+
this.h2e_1 = ContentType_init_$Create$('application', 'json');
|
|
626
|
+
this.i2e_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
627
|
+
this.j2e_1 = ContentType_init_$Create$('application', 'javascript');
|
|
628
|
+
this.k2e_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
629
|
+
this.l2e_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
630
|
+
this.m2e_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
631
|
+
this.n2e_1 = ContentType_init_$Create$('application', 'xml');
|
|
632
|
+
this.o2e_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
633
|
+
this.p2e_1 = ContentType_init_$Create$('application', 'zip');
|
|
634
|
+
this.q2e_1 = ContentType_init_$Create$('application', 'gzip');
|
|
635
|
+
this.r2e_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
636
|
+
this.s2e_1 = ContentType_init_$Create$('application', 'pdf');
|
|
637
|
+
this.t2e_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
638
|
+
this.u2e_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
639
|
+
this.v2e_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
640
|
+
this.w2e_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
641
|
+
this.x2e_1 = ContentType_init_$Create$('application', 'wasm');
|
|
642
|
+
this.y2e_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
643
|
+
this.z2e_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
632
644
|
}
|
|
633
645
|
var Application_instance;
|
|
634
646
|
function Application_getInstance() {
|
|
@@ -638,15 +650,15 @@
|
|
|
638
650
|
}
|
|
639
651
|
function Text() {
|
|
640
652
|
Text_instance = this;
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
653
|
+
this.a2f_1 = ContentType_init_$Create$('text', '*');
|
|
654
|
+
this.b2f_1 = ContentType_init_$Create$('text', 'plain');
|
|
655
|
+
this.c2f_1 = ContentType_init_$Create$('text', 'css');
|
|
656
|
+
this.d2f_1 = ContentType_init_$Create$('text', 'csv');
|
|
657
|
+
this.e2f_1 = ContentType_init_$Create$('text', 'html');
|
|
658
|
+
this.f2f_1 = ContentType_init_$Create$('text', 'javascript');
|
|
659
|
+
this.g2f_1 = ContentType_init_$Create$('text', 'vcard');
|
|
660
|
+
this.h2f_1 = ContentType_init_$Create$('text', 'xml');
|
|
661
|
+
this.i2f_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
650
662
|
}
|
|
651
663
|
var Text_instance;
|
|
652
664
|
function Text_getInstance() {
|
|
@@ -658,42 +670,42 @@
|
|
|
658
670
|
Companion_getInstance();
|
|
659
671
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
660
672
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
673
|
+
this.l2f_1 = contentType;
|
|
674
|
+
this.m2f_1 = contentSubtype;
|
|
663
675
|
}
|
|
664
|
-
protoOf(ContentType).
|
|
676
|
+
protoOf(ContentType).n2f = function (name, value) {
|
|
665
677
|
if (hasParameter(this, name, value))
|
|
666
678
|
return this;
|
|
667
|
-
return new ContentType(this.
|
|
679
|
+
return new ContentType(this.l2f_1, this.m2f_1, this.v2d_1, plus_2(this.w2d_1, HeaderValueParam_init_$Create$(name, value)));
|
|
668
680
|
};
|
|
669
|
-
protoOf(ContentType).
|
|
670
|
-
return this.
|
|
681
|
+
protoOf(ContentType).o2f = function () {
|
|
682
|
+
return this.w2d_1.h() ? this : ContentType_init_$Create$(this.l2f_1, this.m2f_1);
|
|
671
683
|
};
|
|
672
|
-
protoOf(ContentType).
|
|
673
|
-
if (!(pattern.
|
|
684
|
+
protoOf(ContentType).p2f = function (pattern) {
|
|
685
|
+
if (!(pattern.l2f_1 === '*') && !equals(pattern.l2f_1, this.l2f_1, true)) {
|
|
674
686
|
return false;
|
|
675
687
|
}
|
|
676
|
-
if (!(pattern.
|
|
688
|
+
if (!(pattern.m2f_1 === '*') && !equals(pattern.m2f_1, this.m2f_1, true)) {
|
|
677
689
|
return false;
|
|
678
690
|
}
|
|
679
|
-
var _iterator__ex2g4s = pattern.
|
|
691
|
+
var _iterator__ex2g4s = pattern.w2d_1.p();
|
|
680
692
|
while (_iterator__ex2g4s.q()) {
|
|
681
693
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
682
|
-
var patternName = _destruct__k2r9zo.
|
|
683
|
-
var patternValue = _destruct__k2r9zo.
|
|
694
|
+
var patternName = _destruct__k2r9zo.qg();
|
|
695
|
+
var patternValue = _destruct__k2r9zo.rg();
|
|
684
696
|
var tmp;
|
|
685
697
|
if (patternName === '*') {
|
|
686
698
|
var tmp_0;
|
|
687
699
|
if (patternValue === '*') {
|
|
688
700
|
tmp_0 = true;
|
|
689
701
|
} else {
|
|
702
|
+
var tmp0 = this.w2d_1;
|
|
690
703
|
var tmp$ret$0;
|
|
691
704
|
$l$block_0: {
|
|
692
705
|
// Inline function 'kotlin.collections.any' call
|
|
693
|
-
var this_0 = this.n2c_1;
|
|
694
706
|
var tmp_1;
|
|
695
|
-
if (isInterface(
|
|
696
|
-
tmp_1 =
|
|
707
|
+
if (isInterface(tmp0, Collection)) {
|
|
708
|
+
tmp_1 = tmp0.h();
|
|
697
709
|
} else {
|
|
698
710
|
tmp_1 = false;
|
|
699
711
|
}
|
|
@@ -701,11 +713,11 @@
|
|
|
701
713
|
tmp$ret$0 = false;
|
|
702
714
|
break $l$block_0;
|
|
703
715
|
}
|
|
704
|
-
var
|
|
705
|
-
while (
|
|
706
|
-
var element =
|
|
716
|
+
var _iterator__ex2g4s_0 = tmp0.p();
|
|
717
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
718
|
+
var element = _iterator__ex2g4s_0.r();
|
|
707
719
|
// Inline function 'io.ktor.http.ContentType.match.<anonymous>' call
|
|
708
|
-
if (equals(element.
|
|
720
|
+
if (equals(element.y2d_1, patternValue, true)) {
|
|
709
721
|
tmp$ret$0 = true;
|
|
710
722
|
break $l$block_0;
|
|
711
723
|
}
|
|
@@ -716,7 +728,7 @@
|
|
|
716
728
|
}
|
|
717
729
|
tmp = tmp_0;
|
|
718
730
|
} else {
|
|
719
|
-
var value = this.
|
|
731
|
+
var value = this.q2f(patternName);
|
|
720
732
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
721
733
|
}
|
|
722
734
|
var matches = tmp;
|
|
@@ -731,17 +743,17 @@
|
|
|
731
743
|
var tmp_0;
|
|
732
744
|
var tmp_1;
|
|
733
745
|
if (other instanceof ContentType) {
|
|
734
|
-
tmp_1 = equals(this.
|
|
746
|
+
tmp_1 = equals(this.l2f_1, other.l2f_1, true);
|
|
735
747
|
} else {
|
|
736
748
|
tmp_1 = false;
|
|
737
749
|
}
|
|
738
750
|
if (tmp_1) {
|
|
739
|
-
tmp_0 = equals(this.
|
|
751
|
+
tmp_0 = equals(this.m2f_1, other.m2f_1, true);
|
|
740
752
|
} else {
|
|
741
753
|
tmp_0 = false;
|
|
742
754
|
}
|
|
743
755
|
if (tmp_0) {
|
|
744
|
-
tmp = equals_0(this.
|
|
756
|
+
tmp = equals_0(this.w2d_1, other.w2d_1);
|
|
745
757
|
} else {
|
|
746
758
|
tmp = false;
|
|
747
759
|
}
|
|
@@ -750,15 +762,15 @@
|
|
|
750
762
|
protoOf(ContentType).hashCode = function () {
|
|
751
763
|
// Inline function 'kotlin.text.lowercase' call
|
|
752
764
|
// Inline function 'kotlin.js.asDynamic' call
|
|
753
|
-
var tmp$ret$1 = this.
|
|
765
|
+
var tmp$ret$1 = this.l2f_1.toLowerCase();
|
|
754
766
|
var result = getStringHashCode(tmp$ret$1);
|
|
755
767
|
var tmp = result;
|
|
756
768
|
var tmp_0 = imul(31, result);
|
|
757
769
|
// Inline function 'kotlin.text.lowercase' call
|
|
758
770
|
// Inline function 'kotlin.js.asDynamic' call
|
|
759
|
-
var tmp$ret$3 = this.
|
|
771
|
+
var tmp$ret$3 = this.m2f_1.toLowerCase();
|
|
760
772
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
761
|
-
result = result + imul(31, hashCode(this.
|
|
773
|
+
result = result + imul(31, hashCode(this.w2d_1)) | 0;
|
|
762
774
|
return result;
|
|
763
775
|
};
|
|
764
776
|
function BadContentTypeFormatException(value) {
|
|
@@ -766,13 +778,12 @@
|
|
|
766
778
|
captureStack(this, BadContentTypeFormatException);
|
|
767
779
|
}
|
|
768
780
|
function charset(_this__u8e3s4) {
|
|
769
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
781
|
+
var tmp0_safe_receiver = _this__u8e3s4.q2f('charset');
|
|
770
782
|
var tmp;
|
|
771
783
|
if (tmp0_safe_receiver == null) {
|
|
772
784
|
tmp = null;
|
|
773
785
|
} else {
|
|
774
786
|
// Inline function 'kotlin.let' call
|
|
775
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
776
787
|
// Inline function 'io.ktor.http.charset.<anonymous>' call
|
|
777
788
|
var tmp_0;
|
|
778
789
|
try {
|
|
@@ -792,16 +803,16 @@
|
|
|
792
803
|
return tmp;
|
|
793
804
|
}
|
|
794
805
|
function withCharset(_this__u8e3s4, charset) {
|
|
795
|
-
return _this__u8e3s4.
|
|
806
|
+
return _this__u8e3s4.n2f('charset', get_name(charset));
|
|
796
807
|
}
|
|
797
808
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
798
809
|
var tmp;
|
|
799
810
|
// Inline function 'kotlin.text.lowercase' call
|
|
800
811
|
// Inline function 'kotlin.js.asDynamic' call
|
|
801
|
-
if (!(_this__u8e3s4.
|
|
812
|
+
if (!(_this__u8e3s4.l2f_1.toLowerCase() === 'text')) {
|
|
802
813
|
tmp = _this__u8e3s4;
|
|
803
814
|
} else {
|
|
804
|
-
tmp = _this__u8e3s4.
|
|
815
|
+
tmp = _this__u8e3s4.n2f('charset', get_name(charset));
|
|
805
816
|
}
|
|
806
817
|
return tmp;
|
|
807
818
|
}
|
|
@@ -821,19 +832,19 @@
|
|
|
821
832
|
}
|
|
822
833
|
function HeaderValueWithParameters(content, parameters) {
|
|
823
834
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
835
|
+
this.v2d_1 = content;
|
|
836
|
+
this.w2d_1 = parameters;
|
|
826
837
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
838
|
+
protoOf(HeaderValueWithParameters).q2f = function (name) {
|
|
828
839
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
840
|
+
var last = get_lastIndex(this.w2d_1);
|
|
830
841
|
if (inductionVariable <= last)
|
|
831
842
|
do {
|
|
832
843
|
var index = inductionVariable;
|
|
833
844
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var parameter = this.
|
|
835
|
-
if (equals(parameter.
|
|
836
|
-
return parameter.
|
|
845
|
+
var parameter = this.w2d_1.u(index);
|
|
846
|
+
if (equals(parameter.x2d_1, name, true)) {
|
|
847
|
+
return parameter.y2d_1;
|
|
837
848
|
}
|
|
838
849
|
}
|
|
839
850
|
while (!(index === last));
|
|
@@ -841,41 +852,40 @@
|
|
|
841
852
|
};
|
|
842
853
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
854
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
855
|
+
if (this.w2d_1.h()) {
|
|
856
|
+
tmp = this.v2d_1;
|
|
846
857
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
858
|
+
var tmp_0 = this.v2d_1.length;
|
|
848
859
|
// Inline function 'kotlin.collections.sumOf' call
|
|
849
860
|
var sum = 0;
|
|
850
|
-
var
|
|
851
|
-
while (
|
|
852
|
-
var element =
|
|
861
|
+
var _iterator__ex2g4s = this.w2d_1.p();
|
|
862
|
+
while (_iterator__ex2g4s.q()) {
|
|
863
|
+
var element = _iterator__ex2g4s.r();
|
|
853
864
|
var tmp_1 = sum;
|
|
854
865
|
// Inline function 'io.ktor.http.HeaderValueWithParameters.toString.<anonymous>' call
|
|
855
|
-
sum = tmp_1 + ((element.
|
|
866
|
+
sum = tmp_1 + ((element.x2d_1.length + element.y2d_1.length | 0) + 3 | 0) | 0;
|
|
856
867
|
}
|
|
857
868
|
var size = tmp_0 + sum | 0;
|
|
858
869
|
// Inline function 'kotlin.apply' call
|
|
859
870
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
860
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
861
871
|
// Inline function 'io.ktor.http.HeaderValueWithParameters.toString.<anonymous>' call
|
|
862
|
-
this_0.
|
|
872
|
+
this_0.p8(this.v2d_1);
|
|
863
873
|
var inductionVariable = 0;
|
|
864
|
-
var last = get_lastIndex(this.
|
|
874
|
+
var last = get_lastIndex(this.w2d_1);
|
|
865
875
|
if (inductionVariable <= last)
|
|
866
876
|
do {
|
|
867
877
|
var index = inductionVariable;
|
|
868
878
|
inductionVariable = inductionVariable + 1 | 0;
|
|
869
|
-
var element_0 = this.
|
|
870
|
-
this_0.
|
|
871
|
-
this_0.
|
|
872
|
-
this_0.
|
|
879
|
+
var element_0 = this.w2d_1.u(index);
|
|
880
|
+
this_0.p8('; ');
|
|
881
|
+
this_0.p8(element_0.x2d_1);
|
|
882
|
+
this_0.p8('=');
|
|
873
883
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
874
|
-
var this_1 = element_0.
|
|
875
|
-
if (needQuotes
|
|
876
|
-
this_0.
|
|
884
|
+
var this_1 = element_0.y2d_1;
|
|
885
|
+
if (needQuotes(this_1))
|
|
886
|
+
this_0.p8(quote(this_1));
|
|
877
887
|
else
|
|
878
|
-
this_0.
|
|
888
|
+
this_0.p8(this_1);
|
|
879
889
|
}
|
|
880
890
|
while (!(index === last));
|
|
881
891
|
tmp = this_0.toString();
|
|
@@ -902,10 +912,8 @@
|
|
|
902
912
|
function quote(_this__u8e3s4) {
|
|
903
913
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
904
914
|
// Inline function 'kotlin.text.buildString' call
|
|
905
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
906
915
|
// Inline function 'kotlin.apply' call
|
|
907
916
|
var this_0 = StringBuilder_init_$Create$();
|
|
908
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
909
917
|
// Inline function 'io.ktor.http.quote.<anonymous>' call
|
|
910
918
|
quoteTo(_this__u8e3s4, this_0);
|
|
911
919
|
return this_0.toString();
|
|
@@ -940,7 +948,7 @@
|
|
|
940
948
|
}
|
|
941
949
|
function quoteTo(_this__u8e3s4, out) {
|
|
942
950
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
943
|
-
out.
|
|
951
|
+
out.p8('"');
|
|
944
952
|
var inductionVariable = 0;
|
|
945
953
|
var last = _this__u8e3s4.length;
|
|
946
954
|
while (inductionVariable < last) {
|
|
@@ -948,31 +956,27 @@
|
|
|
948
956
|
inductionVariable = inductionVariable + 1 | 0;
|
|
949
957
|
var ch = element;
|
|
950
958
|
if (ch === _Char___init__impl__6a9atx(92))
|
|
951
|
-
out.
|
|
959
|
+
out.p8('\\\\');
|
|
952
960
|
else if (ch === _Char___init__impl__6a9atx(10))
|
|
953
|
-
out.
|
|
961
|
+
out.p8('\\n');
|
|
954
962
|
else if (ch === _Char___init__impl__6a9atx(13))
|
|
955
|
-
out.
|
|
963
|
+
out.p8('\\r');
|
|
956
964
|
else if (ch === _Char___init__impl__6a9atx(9))
|
|
957
|
-
out.
|
|
965
|
+
out.p8('\\t');
|
|
958
966
|
else if (ch === _Char___init__impl__6a9atx(34))
|
|
959
|
-
out.
|
|
967
|
+
out.p8('\\"');
|
|
960
968
|
else
|
|
961
|
-
out.
|
|
969
|
+
out.q8(ch);
|
|
962
970
|
}
|
|
963
|
-
out.
|
|
971
|
+
out.p8('"');
|
|
964
972
|
}
|
|
965
973
|
function append(_this__u8e3s4, name, value) {
|
|
966
974
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
967
|
-
_this__u8e3s4.
|
|
975
|
+
_this__u8e3s4.t29(name, value.toString());
|
|
968
976
|
}
|
|
969
977
|
function escapeIfNeeded(_this__u8e3s4) {
|
|
970
978
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
971
|
-
return needQuotes
|
|
972
|
-
}
|
|
973
|
-
function needQuotes$accessor$vynnj(_this__u8e3s4) {
|
|
974
|
-
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
975
|
-
return needQuotes(_this__u8e3s4);
|
|
979
|
+
return needQuotes(_this__u8e3s4) ? quote(_this__u8e3s4) : _this__u8e3s4;
|
|
976
980
|
}
|
|
977
981
|
var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
978
982
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
@@ -983,7 +987,7 @@
|
|
|
983
987
|
}
|
|
984
988
|
function Companion_1() {
|
|
985
989
|
Companion_instance_1 = this;
|
|
986
|
-
this.
|
|
990
|
+
this.r2f_1 = EmptyHeaders_instance;
|
|
987
991
|
}
|
|
988
992
|
var Companion_instance_1;
|
|
989
993
|
function Companion_getInstance_1() {
|
|
@@ -995,33 +999,33 @@
|
|
|
995
999
|
size = size === VOID ? 8 : size;
|
|
996
1000
|
StringValuesBuilderImpl.call(this, true, size);
|
|
997
1001
|
}
|
|
998
|
-
protoOf(HeadersBuilder).
|
|
999
|
-
return new HeadersImpl(this.
|
|
1002
|
+
protoOf(HeadersBuilder).u2f = function () {
|
|
1003
|
+
return new HeadersImpl(this.m29_1);
|
|
1000
1004
|
};
|
|
1001
|
-
protoOf(HeadersBuilder).
|
|
1002
|
-
protoOf(StringValuesBuilderImpl).
|
|
1003
|
-
HttpHeaders_getInstance().
|
|
1005
|
+
protoOf(HeadersBuilder).n29 = function (name) {
|
|
1006
|
+
protoOf(StringValuesBuilderImpl).n29.call(this, name);
|
|
1007
|
+
HttpHeaders_getInstance().r2j(name);
|
|
1004
1008
|
};
|
|
1005
|
-
protoOf(HeadersBuilder).
|
|
1006
|
-
protoOf(StringValuesBuilderImpl).
|
|
1007
|
-
HttpHeaders_getInstance().
|
|
1009
|
+
protoOf(HeadersBuilder).s29 = function (value) {
|
|
1010
|
+
protoOf(StringValuesBuilderImpl).s29.call(this, value);
|
|
1011
|
+
HttpHeaders_getInstance().s2j(value);
|
|
1008
1012
|
};
|
|
1009
1013
|
function EmptyHeaders() {
|
|
1010
1014
|
}
|
|
1011
|
-
protoOf(EmptyHeaders).
|
|
1015
|
+
protoOf(EmptyHeaders).g29 = function () {
|
|
1012
1016
|
return true;
|
|
1013
1017
|
};
|
|
1014
|
-
protoOf(EmptyHeaders).
|
|
1018
|
+
protoOf(EmptyHeaders).h29 = function (name) {
|
|
1015
1019
|
return null;
|
|
1016
1020
|
};
|
|
1017
|
-
protoOf(EmptyHeaders).
|
|
1021
|
+
protoOf(EmptyHeaders).i29 = function () {
|
|
1018
1022
|
return emptySet();
|
|
1019
1023
|
};
|
|
1020
|
-
protoOf(EmptyHeaders).
|
|
1024
|
+
protoOf(EmptyHeaders).j29 = function () {
|
|
1021
1025
|
return emptySet();
|
|
1022
1026
|
};
|
|
1023
1027
|
protoOf(EmptyHeaders).toString = function () {
|
|
1024
|
-
return 'Headers ' + toString(this.
|
|
1028
|
+
return 'Headers ' + toString(this.j29());
|
|
1025
1029
|
};
|
|
1026
1030
|
var EmptyHeaders_instance;
|
|
1027
1031
|
function EmptyHeaders_getInstance() {
|
|
@@ -1032,7 +1036,7 @@
|
|
|
1032
1036
|
StringValuesImpl.call(this, true, values);
|
|
1033
1037
|
}
|
|
1034
1038
|
protoOf(HeadersImpl).toString = function () {
|
|
1035
|
-
return 'Headers ' + toString(this.
|
|
1039
|
+
return 'Headers ' + toString(this.j29());
|
|
1036
1040
|
};
|
|
1037
1041
|
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1038
1042
|
HeaderValueParam.call($this, name, value, false);
|
|
@@ -1042,20 +1046,20 @@
|
|
|
1042
1046
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1043
1047
|
}
|
|
1044
1048
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1049
|
+
this.x2d_1 = name;
|
|
1050
|
+
this.y2d_1 = value;
|
|
1051
|
+
this.z2d_1 = escapeValue;
|
|
1048
1052
|
}
|
|
1049
1053
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1050
1054
|
var tmp;
|
|
1051
1055
|
var tmp_0;
|
|
1052
1056
|
if (other instanceof HeaderValueParam) {
|
|
1053
|
-
tmp_0 = equals(other.
|
|
1057
|
+
tmp_0 = equals(other.x2d_1, this.x2d_1, true);
|
|
1054
1058
|
} else {
|
|
1055
1059
|
tmp_0 = false;
|
|
1056
1060
|
}
|
|
1057
1061
|
if (tmp_0) {
|
|
1058
|
-
tmp = equals(other.
|
|
1062
|
+
tmp = equals(other.y2d_1, this.y2d_1, true);
|
|
1059
1063
|
} else {
|
|
1060
1064
|
tmp = false;
|
|
1061
1065
|
}
|
|
@@ -1064,38 +1068,39 @@
|
|
|
1064
1068
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1065
1069
|
// Inline function 'kotlin.text.lowercase' call
|
|
1066
1070
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1067
|
-
var tmp$ret$1 = this.
|
|
1071
|
+
var tmp$ret$1 = this.x2d_1.toLowerCase();
|
|
1068
1072
|
var result = getStringHashCode(tmp$ret$1);
|
|
1069
1073
|
var tmp = result;
|
|
1070
1074
|
var tmp_0 = imul(31, result);
|
|
1071
1075
|
// Inline function 'kotlin.text.lowercase' call
|
|
1072
1076
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1073
|
-
var tmp$ret$3 = this.
|
|
1077
|
+
var tmp$ret$3 = this.y2d_1.toLowerCase();
|
|
1074
1078
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1075
1079
|
return result;
|
|
1076
1080
|
};
|
|
1077
|
-
protoOf(HeaderValueParam).
|
|
1078
|
-
return this.
|
|
1081
|
+
protoOf(HeaderValueParam).qg = function () {
|
|
1082
|
+
return this.x2d_1;
|
|
1079
1083
|
};
|
|
1080
|
-
protoOf(HeaderValueParam).
|
|
1081
|
-
return this.
|
|
1084
|
+
protoOf(HeaderValueParam).rg = function () {
|
|
1085
|
+
return this.y2d_1;
|
|
1082
1086
|
};
|
|
1083
1087
|
protoOf(HeaderValueParam).toString = function () {
|
|
1084
|
-
return 'HeaderValueParam(name=' + this.
|
|
1088
|
+
return 'HeaderValueParam(name=' + this.x2d_1 + ', value=' + this.y2d_1 + ', escapeValue=' + this.z2d_1 + ')';
|
|
1085
1089
|
};
|
|
1086
1090
|
function HeaderValue(value, params) {
|
|
1087
1091
|
params = params === VOID ? emptyList() : params;
|
|
1088
|
-
this.
|
|
1089
|
-
this.
|
|
1092
|
+
this.b2e_1 = value;
|
|
1093
|
+
this.c2e_1 = params;
|
|
1090
1094
|
var tmp = this;
|
|
1095
|
+
var tmp0 = this.c2e_1;
|
|
1091
1096
|
var tmp$ret$1;
|
|
1092
1097
|
$l$block: {
|
|
1093
1098
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1094
|
-
var
|
|
1095
|
-
while (
|
|
1096
|
-
var element =
|
|
1099
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
1100
|
+
while (_iterator__ex2g4s.q()) {
|
|
1101
|
+
var element = _iterator__ex2g4s.r();
|
|
1097
1102
|
// Inline function 'io.ktor.http.HeaderValue.quality.<anonymous>' call
|
|
1098
|
-
if (element.
|
|
1103
|
+
if (element.x2d_1 === 'q') {
|
|
1099
1104
|
tmp$ret$1 = element;
|
|
1100
1105
|
break $l$block;
|
|
1101
1106
|
}
|
|
@@ -1103,14 +1108,13 @@
|
|
|
1103
1108
|
tmp$ret$1 = null;
|
|
1104
1109
|
}
|
|
1105
1110
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1106
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1111
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2d_1;
|
|
1107
1112
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1108
1113
|
var tmp_0;
|
|
1109
1114
|
if (tmp2_safe_receiver == null) {
|
|
1110
1115
|
tmp_0 = null;
|
|
1111
1116
|
} else {
|
|
1112
1117
|
// Inline function 'kotlin.takeIf' call
|
|
1113
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1114
1118
|
var tmp_1;
|
|
1115
1119
|
// Inline function 'io.ktor.http.HeaderValue.quality.<anonymous>' call
|
|
1116
1120
|
if (0.0 <= tmp2_safe_receiver ? tmp2_safe_receiver <= 1.0 : false) {
|
|
@@ -1121,17 +1125,17 @@
|
|
|
1121
1125
|
tmp_0 = tmp_1;
|
|
1122
1126
|
}
|
|
1123
1127
|
var tmp3_elvis_lhs = tmp_0;
|
|
1124
|
-
tmp.
|
|
1128
|
+
tmp.d2e_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1125
1129
|
}
|
|
1126
|
-
protoOf(HeaderValue).
|
|
1127
|
-
return this.
|
|
1130
|
+
protoOf(HeaderValue).qg = function () {
|
|
1131
|
+
return this.b2e_1;
|
|
1128
1132
|
};
|
|
1129
1133
|
protoOf(HeaderValue).toString = function () {
|
|
1130
|
-
return 'HeaderValue(value=' + this.
|
|
1134
|
+
return 'HeaderValue(value=' + this.b2e_1 + ', params=' + toString(this.c2e_1) + ')';
|
|
1131
1135
|
};
|
|
1132
1136
|
protoOf(HeaderValue).hashCode = function () {
|
|
1133
|
-
var result = getStringHashCode(this.
|
|
1134
|
-
result = imul(result, 31) + hashCode(this.
|
|
1137
|
+
var result = getStringHashCode(this.b2e_1);
|
|
1138
|
+
result = imul(result, 31) + hashCode(this.c2e_1) | 0;
|
|
1135
1139
|
return result;
|
|
1136
1140
|
};
|
|
1137
1141
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1140,9 +1144,9 @@
|
|
|
1140
1144
|
if (!(other instanceof HeaderValue))
|
|
1141
1145
|
return false;
|
|
1142
1146
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1143
|
-
if (!(this.
|
|
1147
|
+
if (!(this.b2e_1 === tmp0_other_with_cast.b2e_1))
|
|
1144
1148
|
return false;
|
|
1145
|
-
if (!equals_0(this.
|
|
1149
|
+
if (!equals_0(this.c2e_1, tmp0_other_with_cast.c2e_1))
|
|
1146
1150
|
return false;
|
|
1147
1151
|
return true;
|
|
1148
1152
|
};
|
|
@@ -1193,12 +1197,12 @@
|
|
|
1193
1197
|
return position;
|
|
1194
1198
|
}
|
|
1195
1199
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1196
|
-
return _this__u8e3s4.
|
|
1200
|
+
return _this__u8e3s4.vk() ? _this__u8e3s4.z() : emptyList();
|
|
1197
1201
|
}
|
|
1198
1202
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1199
|
-
// Inline function 'kotlin.text.trim' call
|
|
1200
1203
|
// Inline function 'kotlin.text.substring' call
|
|
1201
1204
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1205
|
+
// Inline function 'kotlin.text.trim' call
|
|
1202
1206
|
var this_0 = _this__u8e3s4.substring(start, end);
|
|
1203
1207
|
return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1204
1208
|
}
|
|
@@ -1208,8 +1212,8 @@
|
|
|
1208
1212
|
var tmp0_subject = charSequenceGet(text, position);
|
|
1209
1213
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1210
1214
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1211
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1212
|
-
var paramValue = _destruct__k2r9zo.
|
|
1215
|
+
var paramEnd = _destruct__k2r9zo.qg();
|
|
1216
|
+
var paramValue = _destruct__k2r9zo.rg();
|
|
1213
1217
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1214
1218
|
return paramEnd;
|
|
1215
1219
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1248,18 +1252,18 @@
|
|
|
1248
1252
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsSemicolonOrEnd(value, position)) {
|
|
1249
1253
|
return to(position + 1 | 0, builder.toString());
|
|
1250
1254
|
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < (get_lastIndex_0(value) - 2 | 0)) {
|
|
1251
|
-
builder.
|
|
1255
|
+
builder.q8(charSequenceGet(value, position + 1 | 0));
|
|
1252
1256
|
position = position + 2 | 0;
|
|
1253
1257
|
continue loop;
|
|
1254
1258
|
}
|
|
1255
|
-
builder.
|
|
1259
|
+
builder.q8(currentChar);
|
|
1256
1260
|
position = position + 1 | 0;
|
|
1257
1261
|
}
|
|
1258
1262
|
var tmp = position;
|
|
1263
|
+
var tmp0 = _Char___init__impl__6a9atx(34);
|
|
1259
1264
|
// Inline function 'kotlin.text.plus' call
|
|
1260
|
-
var this_0 = _Char___init__impl__6a9atx(34);
|
|
1261
1265
|
var other = builder.toString();
|
|
1262
|
-
var tmp$ret$0 = toString_0(
|
|
1266
|
+
var tmp$ret$0 = toString_0(tmp0) + other;
|
|
1263
1267
|
return to(tmp, tmp$ret$0);
|
|
1264
1268
|
}
|
|
1265
1269
|
function nextIsSemicolonOrEnd(_this__u8e3s4, start) {
|
|
@@ -1278,16 +1282,16 @@
|
|
|
1278
1282
|
return sortedWith(this_0, tmp$ret$0);
|
|
1279
1283
|
}
|
|
1280
1284
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1281
|
-
this.
|
|
1285
|
+
this.t2j_1 = function_0;
|
|
1282
1286
|
}
|
|
1283
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1284
|
-
return this.
|
|
1287
|
+
protoOf(sam$kotlin_Comparator$0).ge = function (a, b) {
|
|
1288
|
+
return this.t2j_1(a, b);
|
|
1285
1289
|
};
|
|
1286
1290
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1287
|
-
return this.
|
|
1291
|
+
return this.ge(a, b);
|
|
1288
1292
|
};
|
|
1289
1293
|
protoOf(sam$kotlin_Comparator$0).r3 = function () {
|
|
1290
|
-
return this.
|
|
1294
|
+
return this.t2j_1;
|
|
1291
1295
|
};
|
|
1292
1296
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1293
1297
|
var tmp;
|
|
@@ -1326,145 +1330,145 @@
|
|
|
1326
1330
|
function parseAndSortHeader$lambda(a, b) {
|
|
1327
1331
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1328
1332
|
// Inline function 'io.ktor.http.parseAndSortHeader.<anonymous>' call
|
|
1329
|
-
var tmp = b.
|
|
1333
|
+
var tmp = b.d2e_1;
|
|
1330
1334
|
// Inline function 'io.ktor.http.parseAndSortHeader.<anonymous>' call
|
|
1331
|
-
var tmp$ret$1 = a.
|
|
1335
|
+
var tmp$ret$1 = a.d2e_1;
|
|
1332
1336
|
return compareValues(tmp, tmp$ret$1);
|
|
1333
1337
|
}
|
|
1334
1338
|
function HttpHeaders() {
|
|
1335
1339
|
HttpHeaders_instance = this;
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1340
|
+
this.v2f_1 = 'Accept';
|
|
1341
|
+
this.w2f_1 = 'Accept-Charset';
|
|
1342
|
+
this.x2f_1 = 'Accept-Encoding';
|
|
1343
|
+
this.y2f_1 = 'Accept-Language';
|
|
1344
|
+
this.z2f_1 = 'Accept-Ranges';
|
|
1345
|
+
this.a2g_1 = 'Age';
|
|
1346
|
+
this.b2g_1 = 'Allow';
|
|
1347
|
+
this.c2g_1 = 'ALPN';
|
|
1348
|
+
this.d2g_1 = 'Authentication-Info';
|
|
1349
|
+
this.e2g_1 = 'Authorization';
|
|
1350
|
+
this.f2g_1 = 'Cache-Control';
|
|
1351
|
+
this.g2g_1 = 'Connection';
|
|
1352
|
+
this.h2g_1 = 'Content-Disposition';
|
|
1353
|
+
this.i2g_1 = 'Content-Encoding';
|
|
1354
|
+
this.j2g_1 = 'Content-Language';
|
|
1355
|
+
this.k2g_1 = 'Content-Length';
|
|
1356
|
+
this.l2g_1 = 'Content-Location';
|
|
1357
|
+
this.m2g_1 = 'Content-Range';
|
|
1358
|
+
this.n2g_1 = 'Content-Type';
|
|
1359
|
+
this.o2g_1 = 'Cookie';
|
|
1360
|
+
this.p2g_1 = 'DASL';
|
|
1361
|
+
this.q2g_1 = 'Date';
|
|
1362
|
+
this.r2g_1 = 'DAV';
|
|
1363
|
+
this.s2g_1 = 'Depth';
|
|
1364
|
+
this.t2g_1 = 'Destination';
|
|
1365
|
+
this.u2g_1 = 'ETag';
|
|
1366
|
+
this.v2g_1 = 'Expect';
|
|
1367
|
+
this.w2g_1 = 'Expires';
|
|
1368
|
+
this.x2g_1 = 'From';
|
|
1369
|
+
this.y2g_1 = 'Forwarded';
|
|
1370
|
+
this.z2g_1 = 'Host';
|
|
1371
|
+
this.a2h_1 = 'HTTP2-Settings';
|
|
1372
|
+
this.b2h_1 = 'If';
|
|
1373
|
+
this.c2h_1 = 'If-Match';
|
|
1374
|
+
this.d2h_1 = 'If-Modified-Since';
|
|
1375
|
+
this.e2h_1 = 'If-None-Match';
|
|
1376
|
+
this.f2h_1 = 'If-Range';
|
|
1377
|
+
this.g2h_1 = 'If-Schedule-Tag-Match';
|
|
1378
|
+
this.h2h_1 = 'If-Unmodified-Since';
|
|
1379
|
+
this.i2h_1 = 'Last-Modified';
|
|
1380
|
+
this.j2h_1 = 'Location';
|
|
1381
|
+
this.k2h_1 = 'Lock-Token';
|
|
1382
|
+
this.l2h_1 = 'Link';
|
|
1383
|
+
this.m2h_1 = 'Max-Forwards';
|
|
1384
|
+
this.n2h_1 = 'MIME-Version';
|
|
1385
|
+
this.o2h_1 = 'Ordering-Type';
|
|
1386
|
+
this.p2h_1 = 'Origin';
|
|
1387
|
+
this.q2h_1 = 'Overwrite';
|
|
1388
|
+
this.r2h_1 = 'Position';
|
|
1389
|
+
this.s2h_1 = 'Pragma';
|
|
1390
|
+
this.t2h_1 = 'Prefer';
|
|
1391
|
+
this.u2h_1 = 'Preference-Applied';
|
|
1392
|
+
this.v2h_1 = 'Proxy-Authenticate';
|
|
1393
|
+
this.w2h_1 = 'Proxy-Authentication-Info';
|
|
1394
|
+
this.x2h_1 = 'Proxy-Authorization';
|
|
1395
|
+
this.y2h_1 = 'Public-Key-Pins';
|
|
1396
|
+
this.z2h_1 = 'Public-Key-Pins-Report-Only';
|
|
1397
|
+
this.a2i_1 = 'Range';
|
|
1398
|
+
this.b2i_1 = 'Referer';
|
|
1399
|
+
this.c2i_1 = 'Retry-After';
|
|
1400
|
+
this.d2i_1 = 'Schedule-Reply';
|
|
1401
|
+
this.e2i_1 = 'Schedule-Tag';
|
|
1402
|
+
this.f2i_1 = 'Sec-WebSocket-Accept';
|
|
1403
|
+
this.g2i_1 = 'Sec-WebSocket-Extensions';
|
|
1404
|
+
this.h2i_1 = 'Sec-WebSocket-Key';
|
|
1405
|
+
this.i2i_1 = 'Sec-WebSocket-Protocol';
|
|
1406
|
+
this.j2i_1 = 'Sec-WebSocket-Version';
|
|
1407
|
+
this.k2i_1 = 'Server';
|
|
1408
|
+
this.l2i_1 = 'Set-Cookie';
|
|
1409
|
+
this.m2i_1 = 'SLUG';
|
|
1410
|
+
this.n2i_1 = 'Strict-Transport-Security';
|
|
1411
|
+
this.o2i_1 = 'TE';
|
|
1412
|
+
this.p2i_1 = 'Timeout';
|
|
1413
|
+
this.q2i_1 = 'Trailer';
|
|
1414
|
+
this.r2i_1 = 'Transfer-Encoding';
|
|
1415
|
+
this.s2i_1 = 'Upgrade';
|
|
1416
|
+
this.t2i_1 = 'User-Agent';
|
|
1417
|
+
this.u2i_1 = 'Vary';
|
|
1418
|
+
this.v2i_1 = 'Via';
|
|
1419
|
+
this.w2i_1 = 'Warning';
|
|
1420
|
+
this.x2i_1 = 'WWW-Authenticate';
|
|
1421
|
+
this.y2i_1 = 'Access-Control-Allow-Origin';
|
|
1422
|
+
this.z2i_1 = 'Access-Control-Allow-Methods';
|
|
1423
|
+
this.a2j_1 = 'Access-Control-Allow-Credentials';
|
|
1424
|
+
this.b2j_1 = 'Access-Control-Allow-Headers';
|
|
1425
|
+
this.c2j_1 = 'Access-Control-Request-Method';
|
|
1426
|
+
this.d2j_1 = 'Access-Control-Request-Headers';
|
|
1427
|
+
this.e2j_1 = 'Access-Control-Expose-Headers';
|
|
1428
|
+
this.f2j_1 = 'Access-Control-Max-Age';
|
|
1429
|
+
this.g2j_1 = 'X-Http-Method-Override';
|
|
1430
|
+
this.h2j_1 = 'X-Forwarded-Host';
|
|
1431
|
+
this.i2j_1 = 'X-Forwarded-Server';
|
|
1432
|
+
this.j2j_1 = 'X-Forwarded-Proto';
|
|
1433
|
+
this.k2j_1 = 'X-Forwarded-For';
|
|
1434
|
+
this.l2j_1 = 'X-Forwarded-Port';
|
|
1435
|
+
this.m2j_1 = 'X-Request-ID';
|
|
1436
|
+
this.n2j_1 = 'X-Correlation-ID';
|
|
1437
|
+
this.o2j_1 = 'X-Total-Count';
|
|
1434
1438
|
var tmp = this;
|
|
1435
1439
|
// Inline function 'kotlin.arrayOf' call
|
|
1436
1440
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1437
1441
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1438
|
-
tmp.
|
|
1439
|
-
this.
|
|
1442
|
+
tmp.p2j_1 = [this.r2i_1, this.s2i_1];
|
|
1443
|
+
this.q2j_1 = asList(this.p2j_1);
|
|
1440
1444
|
}
|
|
1441
|
-
protoOf(HttpHeaders).
|
|
1445
|
+
protoOf(HttpHeaders).r2j = function (name) {
|
|
1442
1446
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1443
1447
|
var index = 0;
|
|
1444
1448
|
var inductionVariable = 0;
|
|
1445
1449
|
while (inductionVariable < charSequenceLength(name)) {
|
|
1446
1450
|
var item = charSequenceGet(name, inductionVariable);
|
|
1447
1451
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1452
|
+
var _unary__edvuaz = index;
|
|
1453
|
+
index = _unary__edvuaz + 1 | 0;
|
|
1448
1454
|
// Inline function 'io.ktor.http.HttpHeaders.checkHeaderName.<anonymous>' call
|
|
1449
|
-
var tmp1 = index;
|
|
1450
|
-
index = tmp1 + 1 | 0;
|
|
1451
1455
|
if (Char__compareTo_impl_ypi4mb(item, _Char___init__impl__6a9atx(32)) <= 0 || isDelimiter(item)) {
|
|
1452
|
-
throw new IllegalHeaderNameException(name,
|
|
1456
|
+
throw new IllegalHeaderNameException(name, _unary__edvuaz);
|
|
1453
1457
|
}
|
|
1454
1458
|
}
|
|
1455
1459
|
};
|
|
1456
|
-
protoOf(HttpHeaders).
|
|
1460
|
+
protoOf(HttpHeaders).s2j = function (value) {
|
|
1457
1461
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1458
1462
|
var index = 0;
|
|
1459
1463
|
var inductionVariable = 0;
|
|
1460
1464
|
while (inductionVariable < charSequenceLength(value)) {
|
|
1461
1465
|
var item = charSequenceGet(value, inductionVariable);
|
|
1462
1466
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1467
|
+
var _unary__edvuaz = index;
|
|
1468
|
+
index = _unary__edvuaz + 1 | 0;
|
|
1463
1469
|
// Inline function 'io.ktor.http.HttpHeaders.checkHeaderValue.<anonymous>' call
|
|
1464
|
-
var tmp1 = index;
|
|
1465
|
-
index = tmp1 + 1 | 0;
|
|
1466
1470
|
if (Char__compareTo_impl_ypi4mb(item, _Char___init__impl__6a9atx(32)) < 0 && !(item === _Char___init__impl__6a9atx(9))) {
|
|
1467
|
-
throw new IllegalHeaderValueException(value,
|
|
1471
|
+
throw new IllegalHeaderValueException(value, _unary__edvuaz);
|
|
1468
1472
|
}
|
|
1469
1473
|
}
|
|
1470
1474
|
};
|
|
@@ -1484,8 +1488,8 @@
|
|
|
1484
1488
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1485
1489
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1486
1490
|
captureStack(this, IllegalHeaderNameException);
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1491
|
+
this.u2j_1 = headerName;
|
|
1492
|
+
this.v2j_1 = position;
|
|
1489
1493
|
}
|
|
1490
1494
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1491
1495
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charSequenceGet(headerValue, position)) + "'";
|
|
@@ -1494,15 +1498,15 @@
|
|
|
1494
1498
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1495
1499
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1496
1500
|
captureStack(this, IllegalHeaderValueException);
|
|
1497
|
-
this.
|
|
1498
|
-
this.
|
|
1501
|
+
this.w2j_1 = headerValue;
|
|
1502
|
+
this.x2j_1 = position;
|
|
1499
1503
|
}
|
|
1500
1504
|
function UnsafeHeaderException(header) {
|
|
1501
1505
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1502
1506
|
captureStack(this, UnsafeHeaderException);
|
|
1503
1507
|
}
|
|
1504
1508
|
function contentLength(_this__u8e3s4) {
|
|
1505
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1509
|
+
var tmp0_safe_receiver = _this__u8e3s4.y2j().c28(HttpHeaders_getInstance().k2g_1);
|
|
1506
1510
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1507
1511
|
}
|
|
1508
1512
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1510,41 +1514,39 @@
|
|
|
1510
1514
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1511
1515
|
}
|
|
1512
1516
|
function contentType(_this__u8e3s4) {
|
|
1513
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1517
|
+
var tmp0_safe_receiver = _this__u8e3s4.y2j().c28(HttpHeaders_getInstance().n2g_1);
|
|
1514
1518
|
var tmp;
|
|
1515
1519
|
if (tmp0_safe_receiver == null) {
|
|
1516
1520
|
tmp = null;
|
|
1517
1521
|
} else {
|
|
1518
1522
|
// Inline function 'kotlin.let' call
|
|
1519
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1520
1523
|
// Inline function 'io.ktor.http.contentType.<anonymous>' call
|
|
1521
|
-
tmp = Companion_getInstance().
|
|
1524
|
+
tmp = Companion_getInstance().kl(tmp0_safe_receiver);
|
|
1522
1525
|
}
|
|
1523
1526
|
return tmp;
|
|
1524
1527
|
}
|
|
1525
1528
|
function contentType_0(_this__u8e3s4) {
|
|
1526
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1529
|
+
var tmp0_safe_receiver = _this__u8e3s4.y2j().c28(HttpHeaders_getInstance().n2g_1);
|
|
1527
1530
|
var tmp;
|
|
1528
1531
|
if (tmp0_safe_receiver == null) {
|
|
1529
1532
|
tmp = null;
|
|
1530
1533
|
} else {
|
|
1531
1534
|
// Inline function 'kotlin.let' call
|
|
1532
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1533
1535
|
// Inline function 'io.ktor.http.contentType.<anonymous>' call
|
|
1534
|
-
tmp = Companion_getInstance().
|
|
1536
|
+
tmp = Companion_getInstance().kl(tmp0_safe_receiver);
|
|
1535
1537
|
}
|
|
1536
1538
|
return tmp;
|
|
1537
1539
|
}
|
|
1538
1540
|
function Companion_2() {
|
|
1539
1541
|
Companion_instance_2 = this;
|
|
1540
|
-
this.
|
|
1541
|
-
this.
|
|
1542
|
-
this.
|
|
1543
|
-
this.
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1542
|
+
this.z2j_1 = new HttpMethod('GET');
|
|
1543
|
+
this.a2k_1 = new HttpMethod('POST');
|
|
1544
|
+
this.b2k_1 = new HttpMethod('PUT');
|
|
1545
|
+
this.c2k_1 = new HttpMethod('PATCH');
|
|
1546
|
+
this.d2k_1 = new HttpMethod('DELETE');
|
|
1547
|
+
this.e2k_1 = new HttpMethod('HEAD');
|
|
1548
|
+
this.f2k_1 = new HttpMethod('OPTIONS');
|
|
1549
|
+
this.g2k_1 = listOf([this.z2j_1, this.a2k_1, this.b2k_1, this.c2k_1, this.d2k_1, this.e2k_1, this.f2k_1]);
|
|
1548
1550
|
}
|
|
1549
1551
|
var Companion_instance_2;
|
|
1550
1552
|
function Companion_getInstance_2() {
|
|
@@ -1554,13 +1556,13 @@
|
|
|
1554
1556
|
}
|
|
1555
1557
|
function HttpMethod(value) {
|
|
1556
1558
|
Companion_getInstance_2();
|
|
1557
|
-
this.
|
|
1559
|
+
this.h2k_1 = value;
|
|
1558
1560
|
}
|
|
1559
1561
|
protoOf(HttpMethod).toString = function () {
|
|
1560
|
-
return 'HttpMethod(value=' + this.
|
|
1562
|
+
return 'HttpMethod(value=' + this.h2k_1 + ')';
|
|
1561
1563
|
};
|
|
1562
1564
|
protoOf(HttpMethod).hashCode = function () {
|
|
1563
|
-
return getStringHashCode(this.
|
|
1565
|
+
return getStringHashCode(this.h2k_1);
|
|
1564
1566
|
};
|
|
1565
1567
|
protoOf(HttpMethod).equals = function (other) {
|
|
1566
1568
|
if (this === other)
|
|
@@ -1568,17 +1570,17 @@
|
|
|
1568
1570
|
if (!(other instanceof HttpMethod))
|
|
1569
1571
|
return false;
|
|
1570
1572
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1571
|
-
if (!(this.
|
|
1573
|
+
if (!(this.h2k_1 === tmp0_other_with_cast.h2k_1))
|
|
1572
1574
|
return false;
|
|
1573
1575
|
return true;
|
|
1574
1576
|
};
|
|
1575
1577
|
function Companion_3() {
|
|
1576
1578
|
Companion_instance_3 = this;
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1579
|
+
this.i2k_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1580
|
+
this.j2k_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1581
|
+
this.k2k_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1582
|
+
this.l2k_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1583
|
+
this.m2k_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1582
1584
|
}
|
|
1583
1585
|
var Companion_instance_3;
|
|
1584
1586
|
function Companion_getInstance_3() {
|
|
@@ -1588,17 +1590,17 @@
|
|
|
1588
1590
|
}
|
|
1589
1591
|
function HttpProtocolVersion(name, major, minor) {
|
|
1590
1592
|
Companion_getInstance_3();
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1593
|
+
this.n2k_1 = name;
|
|
1594
|
+
this.o2k_1 = major;
|
|
1595
|
+
this.p2k_1 = minor;
|
|
1594
1596
|
}
|
|
1595
1597
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1596
|
-
return this.
|
|
1598
|
+
return this.n2k_1 + '/' + this.o2k_1 + '.' + this.p2k_1;
|
|
1597
1599
|
};
|
|
1598
1600
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1599
|
-
var result = getStringHashCode(this.
|
|
1600
|
-
result = imul(result, 31) + this.
|
|
1601
|
-
result = imul(result, 31) + this.
|
|
1601
|
+
var result = getStringHashCode(this.n2k_1);
|
|
1602
|
+
result = imul(result, 31) + this.o2k_1 | 0;
|
|
1603
|
+
result = imul(result, 31) + this.p2k_1 | 0;
|
|
1602
1604
|
return result;
|
|
1603
1605
|
};
|
|
1604
1606
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1607,84 +1609,84 @@
|
|
|
1607
1609
|
if (!(other instanceof HttpProtocolVersion))
|
|
1608
1610
|
return false;
|
|
1609
1611
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1610
|
-
if (!(this.
|
|
1612
|
+
if (!(this.n2k_1 === tmp0_other_with_cast.n2k_1))
|
|
1611
1613
|
return false;
|
|
1612
|
-
if (!(this.
|
|
1614
|
+
if (!(this.o2k_1 === tmp0_other_with_cast.o2k_1))
|
|
1613
1615
|
return false;
|
|
1614
|
-
if (!(this.
|
|
1616
|
+
if (!(this.p2k_1 === tmp0_other_with_cast.p2k_1))
|
|
1615
1617
|
return false;
|
|
1616
1618
|
return true;
|
|
1617
1619
|
};
|
|
1618
1620
|
function Companion_4() {
|
|
1619
1621
|
Companion_instance_4 = this;
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1641
|
-
this.
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1622
|
+
this.q2k_1 = new HttpStatusCode(100, 'Continue');
|
|
1623
|
+
this.r2k_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1624
|
+
this.s2k_1 = new HttpStatusCode(102, 'Processing');
|
|
1625
|
+
this.t2k_1 = new HttpStatusCode(200, 'OK');
|
|
1626
|
+
this.u2k_1 = new HttpStatusCode(201, 'Created');
|
|
1627
|
+
this.v2k_1 = new HttpStatusCode(202, 'Accepted');
|
|
1628
|
+
this.w2k_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1629
|
+
this.x2k_1 = new HttpStatusCode(204, 'No Content');
|
|
1630
|
+
this.y2k_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1631
|
+
this.z2k_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1632
|
+
this.a2l_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1633
|
+
this.b2l_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1634
|
+
this.c2l_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1635
|
+
this.d2l_1 = new HttpStatusCode(302, 'Found');
|
|
1636
|
+
this.e2l_1 = new HttpStatusCode(303, 'See Other');
|
|
1637
|
+
this.f2l_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1638
|
+
this.g2l_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1639
|
+
this.h2l_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1640
|
+
this.i2l_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1641
|
+
this.j2l_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1642
|
+
this.k2l_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1643
|
+
this.l2l_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1644
|
+
this.m2l_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1645
|
+
this.n2l_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1646
|
+
this.o2l_1 = new HttpStatusCode(404, 'Not Found');
|
|
1647
|
+
this.p2l_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1648
|
+
this.q2l_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1649
|
+
this.r2l_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1650
|
+
this.s2l_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1651
|
+
this.t2l_1 = new HttpStatusCode(409, 'Conflict');
|
|
1652
|
+
this.u2l_1 = new HttpStatusCode(410, 'Gone');
|
|
1653
|
+
this.v2l_1 = new HttpStatusCode(411, 'Length Required');
|
|
1654
|
+
this.w2l_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1655
|
+
this.x2l_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1656
|
+
this.y2l_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1657
|
+
this.z2l_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1658
|
+
this.a2m_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1659
|
+
this.b2m_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1660
|
+
this.c2m_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1661
|
+
this.d2m_1 = new HttpStatusCode(423, 'Locked');
|
|
1662
|
+
this.e2m_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1663
|
+
this.f2m_1 = new HttpStatusCode(425, 'Too Early');
|
|
1664
|
+
this.g2m_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1665
|
+
this.h2m_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1666
|
+
this.i2m_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1667
|
+
this.j2m_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1668
|
+
this.k2m_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1669
|
+
this.l2m_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1670
|
+
this.m2m_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1671
|
+
this.n2m_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1672
|
+
this.o2m_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1673
|
+
this.p2m_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1674
|
+
this.q2m_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1675
|
+
this.r2m_1 = allStatusCodes();
|
|
1674
1676
|
var tmp = this;
|
|
1675
1677
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1676
|
-
var this_0 = this.
|
|
1678
|
+
var this_0 = this.r2m_1;
|
|
1677
1679
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1678
1680
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1679
1681
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1680
|
-
var
|
|
1681
|
-
while (
|
|
1682
|
-
var element =
|
|
1682
|
+
var _iterator__ex2g4s = this_0.p();
|
|
1683
|
+
while (_iterator__ex2g4s.q()) {
|
|
1684
|
+
var element = _iterator__ex2g4s.r();
|
|
1683
1685
|
// Inline function 'io.ktor.http.Companion.statusCodesMap.<anonymous>' call
|
|
1684
|
-
var tmp$ret$0 = element.
|
|
1686
|
+
var tmp$ret$0 = element.t2m_1;
|
|
1685
1687
|
destination.n2(tmp$ret$0, element);
|
|
1686
1688
|
}
|
|
1687
|
-
tmp.
|
|
1689
|
+
tmp.s2m_1 = destination;
|
|
1688
1690
|
}
|
|
1689
1691
|
var Companion_instance_4;
|
|
1690
1692
|
function Companion_getInstance_4() {
|
|
@@ -1694,40 +1696,40 @@
|
|
|
1694
1696
|
}
|
|
1695
1697
|
function HttpStatusCode(value, description) {
|
|
1696
1698
|
Companion_getInstance_4();
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
+
this.t2m_1 = value;
|
|
1700
|
+
this.u2m_1 = description;
|
|
1699
1701
|
}
|
|
1700
1702
|
protoOf(HttpStatusCode).toString = function () {
|
|
1701
|
-
return '' + this.
|
|
1703
|
+
return '' + this.t2m_1 + ' ' + this.u2m_1;
|
|
1702
1704
|
};
|
|
1703
1705
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1704
1706
|
var tmp;
|
|
1705
1707
|
if (other instanceof HttpStatusCode) {
|
|
1706
|
-
tmp = other.
|
|
1708
|
+
tmp = other.t2m_1 === this.t2m_1;
|
|
1707
1709
|
} else {
|
|
1708
1710
|
tmp = false;
|
|
1709
1711
|
}
|
|
1710
1712
|
return tmp;
|
|
1711
1713
|
};
|
|
1712
1714
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1713
|
-
return this.
|
|
1715
|
+
return this.t2m_1;
|
|
1714
1716
|
};
|
|
1715
|
-
protoOf(HttpStatusCode).
|
|
1716
|
-
return this.
|
|
1717
|
+
protoOf(HttpStatusCode).v2m = function (other) {
|
|
1718
|
+
return this.t2m_1 - other.t2m_1 | 0;
|
|
1717
1719
|
};
|
|
1718
1720
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1719
|
-
return this.
|
|
1721
|
+
return this.v2m(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1720
1722
|
};
|
|
1721
1723
|
function allStatusCodes() {
|
|
1722
|
-
return listOf([Companion_getInstance_4().
|
|
1724
|
+
return listOf([Companion_getInstance_4().q2k_1, Companion_getInstance_4().r2k_1, Companion_getInstance_4().s2k_1, Companion_getInstance_4().t2k_1, Companion_getInstance_4().u2k_1, Companion_getInstance_4().v2k_1, Companion_getInstance_4().w2k_1, Companion_getInstance_4().x2k_1, Companion_getInstance_4().y2k_1, Companion_getInstance_4().z2k_1, Companion_getInstance_4().a2l_1, Companion_getInstance_4().b2l_1, Companion_getInstance_4().c2l_1, Companion_getInstance_4().d2l_1, Companion_getInstance_4().e2l_1, Companion_getInstance_4().f2l_1, Companion_getInstance_4().g2l_1, Companion_getInstance_4().h2l_1, Companion_getInstance_4().i2l_1, Companion_getInstance_4().j2l_1, Companion_getInstance_4().k2l_1, Companion_getInstance_4().l2l_1, Companion_getInstance_4().m2l_1, Companion_getInstance_4().n2l_1, Companion_getInstance_4().o2l_1, Companion_getInstance_4().p2l_1, Companion_getInstance_4().q2l_1, Companion_getInstance_4().r2l_1, Companion_getInstance_4().s2l_1, Companion_getInstance_4().t2l_1, Companion_getInstance_4().u2l_1, Companion_getInstance_4().v2l_1, Companion_getInstance_4().w2l_1, Companion_getInstance_4().x2l_1, Companion_getInstance_4().y2l_1, Companion_getInstance_4().z2l_1, Companion_getInstance_4().a2m_1, Companion_getInstance_4().b2m_1, Companion_getInstance_4().c2m_1, Companion_getInstance_4().d2m_1, Companion_getInstance_4().e2m_1, Companion_getInstance_4().f2m_1, Companion_getInstance_4().g2m_1, Companion_getInstance_4().h2m_1, Companion_getInstance_4().i2m_1, Companion_getInstance_4().j2m_1, Companion_getInstance_4().k2m_1, Companion_getInstance_4().l2m_1, Companion_getInstance_4().m2m_1, Companion_getInstance_4().n2m_1, Companion_getInstance_4().o2m_1, Companion_getInstance_4().p2m_1, Companion_getInstance_4().q2m_1]);
|
|
1723
1725
|
}
|
|
1724
1726
|
function isSuccess(_this__u8e3s4) {
|
|
1725
|
-
var containsArg = _this__u8e3s4.
|
|
1727
|
+
var containsArg = _this__u8e3s4.t2m_1;
|
|
1726
1728
|
return 200 <= containsArg ? containsArg < 300 : false;
|
|
1727
1729
|
}
|
|
1728
1730
|
function Companion_5() {
|
|
1729
1731
|
Companion_instance_5 = this;
|
|
1730
|
-
this.
|
|
1732
|
+
this.w2m_1 = EmptyParameters_instance;
|
|
1731
1733
|
}
|
|
1732
1734
|
var Companion_instance_5;
|
|
1733
1735
|
function Companion_getInstance_5() {
|
|
@@ -1739,23 +1741,23 @@
|
|
|
1739
1741
|
}
|
|
1740
1742
|
function EmptyParameters() {
|
|
1741
1743
|
}
|
|
1742
|
-
protoOf(EmptyParameters).
|
|
1744
|
+
protoOf(EmptyParameters).g29 = function () {
|
|
1743
1745
|
return true;
|
|
1744
1746
|
};
|
|
1745
|
-
protoOf(EmptyParameters).
|
|
1747
|
+
protoOf(EmptyParameters).h29 = function (name) {
|
|
1746
1748
|
return null;
|
|
1747
1749
|
};
|
|
1748
|
-
protoOf(EmptyParameters).
|
|
1750
|
+
protoOf(EmptyParameters).i29 = function () {
|
|
1749
1751
|
return emptySet();
|
|
1750
1752
|
};
|
|
1751
|
-
protoOf(EmptyParameters).
|
|
1753
|
+
protoOf(EmptyParameters).j29 = function () {
|
|
1752
1754
|
return emptySet();
|
|
1753
1755
|
};
|
|
1754
1756
|
protoOf(EmptyParameters).h = function () {
|
|
1755
1757
|
return true;
|
|
1756
1758
|
};
|
|
1757
1759
|
protoOf(EmptyParameters).toString = function () {
|
|
1758
|
-
return 'Parameters ' + toString(this.
|
|
1760
|
+
return 'Parameters ' + toString(this.j29());
|
|
1759
1761
|
};
|
|
1760
1762
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1761
1763
|
var tmp;
|
|
@@ -1778,15 +1780,15 @@
|
|
|
1778
1780
|
size = size === VOID ? 8 : size;
|
|
1779
1781
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1780
1782
|
}
|
|
1781
|
-
protoOf(ParametersBuilderImpl).
|
|
1782
|
-
return new ParametersImpl(this.
|
|
1783
|
+
protoOf(ParametersBuilderImpl).u2f = function () {
|
|
1784
|
+
return new ParametersImpl(this.m29_1);
|
|
1783
1785
|
};
|
|
1784
1786
|
function ParametersImpl(values) {
|
|
1785
1787
|
values = values === VOID ? emptyMap() : values;
|
|
1786
1788
|
StringValuesImpl.call(this, true, values);
|
|
1787
1789
|
}
|
|
1788
1790
|
protoOf(ParametersImpl).toString = function () {
|
|
1789
|
-
return 'Parameters ' + toString(this.
|
|
1791
|
+
return 'Parameters ' + toString(this.j29());
|
|
1790
1792
|
};
|
|
1791
1793
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1792
1794
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1794,16 +1796,15 @@
|
|
|
1794
1796
|
decode = decode === VOID ? true : decode;
|
|
1795
1797
|
var tmp;
|
|
1796
1798
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1797
|
-
tmp = Companion_getInstance_5().
|
|
1799
|
+
tmp = Companion_getInstance_5().w2m_1;
|
|
1798
1800
|
} else {
|
|
1799
1801
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1800
1802
|
Companion_getInstance_5();
|
|
1801
1803
|
// Inline function 'kotlin.apply' call
|
|
1802
1804
|
var this_0 = ParametersBuilder();
|
|
1803
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1804
1805
|
// Inline function 'io.ktor.http.parseQueryString.<anonymous>' call
|
|
1805
1806
|
parse(this_0, query, startIndex, limit, decode);
|
|
1806
|
-
tmp = this_0.
|
|
1807
|
+
tmp = this_0.u2f();
|
|
1807
1808
|
}
|
|
1808
1809
|
return tmp;
|
|
1809
1810
|
}
|
|
@@ -1852,7 +1853,7 @@
|
|
|
1852
1853
|
tmp = query.substring(spaceNameIndex, spaceEndIndex);
|
|
1853
1854
|
}
|
|
1854
1855
|
var name = tmp;
|
|
1855
|
-
_this__u8e3s4.
|
|
1856
|
+
_this__u8e3s4.o29(name, emptyList());
|
|
1856
1857
|
}
|
|
1857
1858
|
return Unit_instance;
|
|
1858
1859
|
}
|
|
@@ -1879,7 +1880,7 @@
|
|
|
1879
1880
|
tmp_1 = query.substring(spaceValueIndex, spaceEndIndex_0);
|
|
1880
1881
|
}
|
|
1881
1882
|
var value = tmp_1;
|
|
1882
|
-
_this__u8e3s4.
|
|
1883
|
+
_this__u8e3s4.t29(name_0, value);
|
|
1883
1884
|
}
|
|
1884
1885
|
}
|
|
1885
1886
|
function trimStart(start, end, query) {
|
|
@@ -1899,24 +1900,24 @@
|
|
|
1899
1900
|
function applyOrigin($this) {
|
|
1900
1901
|
var tmp;
|
|
1901
1902
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1902
|
-
var this_0 = $this.
|
|
1903
|
+
var this_0 = $this.z2m_1;
|
|
1903
1904
|
if (charSequenceLength(this_0) > 0) {
|
|
1904
1905
|
tmp = true;
|
|
1905
1906
|
} else {
|
|
1906
|
-
tmp = $this.
|
|
1907
|
+
tmp = $this.l2n().j2n_1 === 'file';
|
|
1907
1908
|
}
|
|
1908
1909
|
if (tmp)
|
|
1909
1910
|
return Unit_instance;
|
|
1910
|
-
$this.
|
|
1911
|
-
if ($this.
|
|
1912
|
-
$this.
|
|
1913
|
-
if ($this.
|
|
1914
|
-
$this.
|
|
1911
|
+
$this.z2m_1 = Companion_getInstance_6().f2o_1.m2n_1;
|
|
1912
|
+
if ($this.c2n_1 == null)
|
|
1913
|
+
$this.c2n_1 = Companion_getInstance_6().f2o_1.x2n_1;
|
|
1914
|
+
if ($this.b2n_1 === 0) {
|
|
1915
|
+
$this.g2o(Companion_getInstance_6().f2o_1.n2n_1);
|
|
1915
1916
|
}
|
|
1916
1917
|
}
|
|
1917
1918
|
function Companion_6() {
|
|
1918
1919
|
Companion_instance_6 = this;
|
|
1919
|
-
this.
|
|
1920
|
+
this.f2o_1 = Url(get_origin(this));
|
|
1920
1921
|
}
|
|
1921
1922
|
var Companion_instance_6;
|
|
1922
1923
|
function Companion_getInstance_6() {
|
|
@@ -1932,147 +1933,142 @@
|
|
|
1932
1933
|
user = user === VOID ? null : user;
|
|
1933
1934
|
password = password === VOID ? null : password;
|
|
1934
1935
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1935
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1936
|
+
parameters = parameters === VOID ? Companion_getInstance_5().w2m_1 : parameters;
|
|
1936
1937
|
fragment = fragment === VOID ? '' : fragment;
|
|
1937
1938
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1939
|
+
this.z2m_1 = host;
|
|
1940
|
+
this.a2n_1 = trailingQuery;
|
|
1941
|
+
this.b2n_1 = port;
|
|
1942
|
+
this.c2n_1 = protocol;
|
|
1942
1943
|
var tmp = this;
|
|
1943
|
-
tmp.
|
|
1944
|
+
tmp.d2n_1 = user == null ? null : encodeURLParameter(user);
|
|
1944
1945
|
var tmp_0 = this;
|
|
1945
|
-
tmp_0.
|
|
1946
|
-
this.
|
|
1946
|
+
tmp_0.e2n_1 = password == null ? null : encodeURLParameter(password);
|
|
1947
|
+
this.f2n_1 = encodeURLQueryComponent(fragment);
|
|
1947
1948
|
var tmp_1 = this;
|
|
1948
1949
|
// Inline function 'kotlin.collections.map' call
|
|
1949
1950
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1950
1951
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(pathSegments, 10));
|
|
1951
|
-
var
|
|
1952
|
-
while (
|
|
1953
|
-
var item =
|
|
1952
|
+
var _iterator__ex2g4s = pathSegments.p();
|
|
1953
|
+
while (_iterator__ex2g4s.q()) {
|
|
1954
|
+
var item = _iterator__ex2g4s.r();
|
|
1954
1955
|
// Inline function 'io.ktor.http.URLBuilder.encodedPathSegments.<anonymous>' call
|
|
1955
1956
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1956
1957
|
destination.k(tmp$ret$0);
|
|
1957
1958
|
}
|
|
1958
|
-
tmp_1.
|
|
1959
|
-
this.
|
|
1960
|
-
this.
|
|
1959
|
+
tmp_1.g2n_1 = destination;
|
|
1960
|
+
this.h2n_1 = encodeParameters(parameters);
|
|
1961
|
+
this.i2n_1 = new UrlDecodedParametersBuilder(this.h2n_1);
|
|
1961
1962
|
}
|
|
1962
|
-
protoOf(URLBuilder).
|
|
1963
|
+
protoOf(URLBuilder).g2o = function (value) {
|
|
1963
1964
|
// Inline function 'kotlin.require' call
|
|
1964
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1965
1965
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1966
1966
|
// Inline function 'io.ktor.http.URLBuilder.<set-port>.<anonymous>' call
|
|
1967
1967
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1968
1968
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1969
1969
|
}
|
|
1970
|
-
this.
|
|
1970
|
+
this.b2n_1 = value;
|
|
1971
1971
|
};
|
|
1972
|
-
protoOf(URLBuilder).
|
|
1973
|
-
this.
|
|
1972
|
+
protoOf(URLBuilder).h2o = function (value) {
|
|
1973
|
+
this.c2n_1 = value;
|
|
1974
1974
|
};
|
|
1975
|
-
protoOf(URLBuilder).
|
|
1976
|
-
var tmp0_elvis_lhs = this.
|
|
1977
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1975
|
+
protoOf(URLBuilder).l2n = function () {
|
|
1976
|
+
var tmp0_elvis_lhs = this.c2n_1;
|
|
1977
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().i2o_1 : tmp0_elvis_lhs;
|
|
1978
1978
|
};
|
|
1979
|
-
protoOf(URLBuilder).
|
|
1979
|
+
protoOf(URLBuilder).o2o = function (value) {
|
|
1980
1980
|
var tmp = this;
|
|
1981
|
-
tmp.
|
|
1981
|
+
tmp.d2n_1 = value == null ? null : encodeURLParameter(value);
|
|
1982
1982
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
var tmp0_safe_receiver = this.
|
|
1983
|
+
protoOf(URLBuilder).p2o = function () {
|
|
1984
|
+
var tmp0_safe_receiver = this.d2n_1;
|
|
1985
1985
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1986
1986
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1988
|
-
var tmp0_safe_receiver = this.
|
|
1987
|
+
protoOf(URLBuilder).q2o = function () {
|
|
1988
|
+
var tmp0_safe_receiver = this.e2n_1;
|
|
1989
1989
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1990
1990
|
};
|
|
1991
|
-
protoOf(URLBuilder).
|
|
1992
|
-
return decodeURLQueryComponent(this.
|
|
1991
|
+
protoOf(URLBuilder).r2o = function () {
|
|
1992
|
+
return decodeURLQueryComponent(this.f2n_1);
|
|
1993
1993
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
1994
|
+
protoOf(URLBuilder).s2o = function () {
|
|
1995
1995
|
// Inline function 'kotlin.collections.map' call
|
|
1996
|
-
var this_0 = this.
|
|
1996
|
+
var this_0 = this.g2n_1;
|
|
1997
1997
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1998
1998
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1999
|
-
var
|
|
2000
|
-
while (
|
|
2001
|
-
var item =
|
|
1999
|
+
var _iterator__ex2g4s = this_0.p();
|
|
2000
|
+
while (_iterator__ex2g4s.q()) {
|
|
2001
|
+
var item = _iterator__ex2g4s.r();
|
|
2002
2002
|
// Inline function 'io.ktor.http.URLBuilder.<get-pathSegments>.<anonymous>' call
|
|
2003
2003
|
var tmp$ret$0 = decodeURLPart(item);
|
|
2004
2004
|
destination.k(tmp$ret$0);
|
|
2005
2005
|
}
|
|
2006
2006
|
return destination;
|
|
2007
2007
|
};
|
|
2008
|
-
protoOf(URLBuilder).
|
|
2009
|
-
this.
|
|
2010
|
-
this.
|
|
2008
|
+
protoOf(URLBuilder).t2o = function (value) {
|
|
2009
|
+
this.h2n_1 = value;
|
|
2010
|
+
this.i2n_1 = new UrlDecodedParametersBuilder(value);
|
|
2011
2011
|
};
|
|
2012
|
-
protoOf(URLBuilder).
|
|
2012
|
+
protoOf(URLBuilder).u2o = function () {
|
|
2013
2013
|
applyOrigin(this);
|
|
2014
2014
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2015
2015
|
};
|
|
2016
2016
|
protoOf(URLBuilder).toString = function () {
|
|
2017
2017
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2018
2018
|
};
|
|
2019
|
-
protoOf(URLBuilder).
|
|
2019
|
+
protoOf(URLBuilder).u2f = function () {
|
|
2020
2020
|
applyOrigin(this);
|
|
2021
|
-
return new Url_0(this.
|
|
2021
|
+
return new Url_0(this.c2n_1, this.z2m_1, this.b2n_1, this.s2o(), this.i2n_1.u2f(), this.r2o(), this.p2o(), this.q2o(), this.a2n_1, this.u2o());
|
|
2022
2022
|
};
|
|
2023
2023
|
function get_authority(_this__u8e3s4) {
|
|
2024
2024
|
// Inline function 'kotlin.text.buildString' call
|
|
2025
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2026
2025
|
// Inline function 'kotlin.apply' call
|
|
2027
2026
|
var this_0 = StringBuilder_init_$Create$();
|
|
2028
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2029
2027
|
// Inline function 'io.ktor.http.<get-authority>.<anonymous>' call
|
|
2030
|
-
this_0.
|
|
2031
|
-
this_0.
|
|
2032
|
-
if (!(_this__u8e3s4.
|
|
2033
|
-
this_0.
|
|
2034
|
-
this_0.
|
|
2028
|
+
this_0.p8(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2029
|
+
this_0.p8(_this__u8e3s4.z2m_1);
|
|
2030
|
+
if (!(_this__u8e3s4.b2n_1 === 0) && !(_this__u8e3s4.b2n_1 === _this__u8e3s4.l2n().k2n_1)) {
|
|
2031
|
+
this_0.p8(':');
|
|
2032
|
+
this_0.p8(_this__u8e3s4.b2n_1.toString());
|
|
2035
2033
|
}
|
|
2036
2034
|
return this_0.toString();
|
|
2037
2035
|
}
|
|
2038
2036
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2039
|
-
_this__u8e3s4.
|
|
2037
|
+
_this__u8e3s4.g2n_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2040
2038
|
}
|
|
2041
2039
|
function get_encodedPath(_this__u8e3s4) {
|
|
2042
|
-
return joinPath(_this__u8e3s4.
|
|
2040
|
+
return joinPath(_this__u8e3s4.g2n_1);
|
|
2043
2041
|
}
|
|
2044
2042
|
function appendTo(_this__u8e3s4, out) {
|
|
2045
|
-
out.l(_this__u8e3s4.
|
|
2046
|
-
switch (_this__u8e3s4.
|
|
2043
|
+
out.l(_this__u8e3s4.l2n().j2n_1);
|
|
2044
|
+
switch (_this__u8e3s4.l2n().j2n_1) {
|
|
2047
2045
|
case 'file':
|
|
2048
|
-
appendFile(out, _this__u8e3s4.
|
|
2046
|
+
appendFile(out, _this__u8e3s4.z2m_1, get_encodedPath(_this__u8e3s4));
|
|
2049
2047
|
return out;
|
|
2050
2048
|
case 'mailto':
|
|
2051
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2049
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.z2m_1);
|
|
2052
2050
|
return out;
|
|
2053
2051
|
case 'about':
|
|
2054
|
-
appendAbout(out, _this__u8e3s4.
|
|
2052
|
+
appendAbout(out, _this__u8e3s4.z2m_1);
|
|
2055
2053
|
return out;
|
|
2056
2054
|
}
|
|
2057
2055
|
out.l('://');
|
|
2058
2056
|
out.l(get_authority(_this__u8e3s4));
|
|
2059
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2057
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.h2n_1, _this__u8e3s4.a2n_1);
|
|
2060
2058
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2061
|
-
var this_0 = _this__u8e3s4.
|
|
2059
|
+
var this_0 = _this__u8e3s4.f2n_1;
|
|
2062
2060
|
if (charSequenceLength(this_0) > 0) {
|
|
2063
|
-
out.
|
|
2064
|
-
out.l(_this__u8e3s4.
|
|
2061
|
+
out.q8(_Char___init__impl__6a9atx(35));
|
|
2062
|
+
out.l(_this__u8e3s4.f2n_1);
|
|
2065
2063
|
}
|
|
2066
2064
|
return out;
|
|
2067
2065
|
}
|
|
2068
2066
|
function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
2069
2067
|
// Inline function 'kotlin.text.buildString' call
|
|
2070
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2071
2068
|
// Inline function 'kotlin.apply' call
|
|
2072
2069
|
var this_0 = StringBuilder_init_$Create$();
|
|
2073
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2074
2070
|
// Inline function 'io.ktor.http.<get-encodedUserAndPassword>.<anonymous>' call
|
|
2075
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2071
|
+
appendUserAndPassword(this_0, _this__u8e3s4.d2n_1, _this__u8e3s4.e2n_1);
|
|
2076
2072
|
return this_0.toString();
|
|
2077
2073
|
}
|
|
2078
2074
|
function joinPath(_this__u8e3s4) {
|
|
@@ -2091,7 +2087,7 @@
|
|
|
2091
2087
|
_this__u8e3s4.l('://');
|
|
2092
2088
|
_this__u8e3s4.l(host);
|
|
2093
2089
|
if (!startsWith(encodedPath, _Char___init__impl__6a9atx(47))) {
|
|
2094
|
-
_this__u8e3s4.
|
|
2090
|
+
_this__u8e3s4.q8(_Char___init__impl__6a9atx(47));
|
|
2095
2091
|
}
|
|
2096
2092
|
_this__u8e3s4.l(encodedPath);
|
|
2097
2093
|
}
|
|
@@ -2170,25 +2166,23 @@
|
|
|
2170
2166
|
var endIndex = tmp$ret$3 + 1 | 0;
|
|
2171
2167
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2172
2168
|
if (schemeLength > 0) {
|
|
2169
|
+
var tmp5 = startIndex;
|
|
2173
2170
|
// Inline function 'kotlin.text.substring' call
|
|
2174
|
-
var startIndex_0 = startIndex;
|
|
2175
2171
|
var endIndex_0 = startIndex + schemeLength | 0;
|
|
2176
2172
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2177
|
-
var scheme = urlString.substring(
|
|
2178
|
-
_this__u8e3s4.
|
|
2173
|
+
var scheme = urlString.substring(tmp5, endIndex_0);
|
|
2174
|
+
_this__u8e3s4.h2o(Companion_getInstance_7().v2o(scheme));
|
|
2179
2175
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2180
2176
|
}
|
|
2181
2177
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2182
2178
|
startIndex = startIndex + slashCount | 0;
|
|
2183
|
-
if (_this__u8e3s4.
|
|
2179
|
+
if (_this__u8e3s4.l2n().j2n_1 === 'file') {
|
|
2184
2180
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2185
2181
|
return _this__u8e3s4;
|
|
2186
2182
|
}
|
|
2187
|
-
if (_this__u8e3s4.
|
|
2183
|
+
if (_this__u8e3s4.l2n().j2n_1 === 'mailto') {
|
|
2188
2184
|
// Inline function 'kotlin.require' call
|
|
2189
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2190
2185
|
// Inline function 'kotlin.require' call
|
|
2191
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2192
2186
|
if (!(slashCount === 0)) {
|
|
2193
2187
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
2194
2188
|
var message = 'Failed requirement.';
|
|
@@ -2197,11 +2191,9 @@
|
|
|
2197
2191
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2198
2192
|
return _this__u8e3s4;
|
|
2199
2193
|
}
|
|
2200
|
-
if (_this__u8e3s4.
|
|
2194
|
+
if (_this__u8e3s4.l2n().j2n_1 === 'about') {
|
|
2201
2195
|
// Inline function 'kotlin.require' call
|
|
2202
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2203
2196
|
// Inline function 'kotlin.require' call
|
|
2204
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2205
2197
|
if (!(slashCount === 0)) {
|
|
2206
2198
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
2207
2199
|
var message_0 = 'Failed requirement.';
|
|
@@ -2209,16 +2201,15 @@
|
|
|
2209
2201
|
}
|
|
2210
2202
|
var tmp = _this__u8e3s4;
|
|
2211
2203
|
// Inline function 'kotlin.text.substring' call
|
|
2212
|
-
var
|
|
2204
|
+
var startIndex_0 = startIndex;
|
|
2213
2205
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2214
|
-
tmp.
|
|
2206
|
+
tmp.z2m_1 = urlString.substring(startIndex_0, endIndex);
|
|
2215
2207
|
return _this__u8e3s4;
|
|
2216
2208
|
}
|
|
2217
2209
|
if (slashCount >= 2) {
|
|
2218
2210
|
loop: while (true) {
|
|
2219
2211
|
// Inline function 'kotlin.takeIf' call
|
|
2220
2212
|
var this_0 = indexOfAny(urlString, toCharArray('@/\\?#'), startIndex);
|
|
2221
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2222
2213
|
var tmp_0;
|
|
2223
2214
|
// Inline function 'io.ktor.http.takeFromUnsafe.<anonymous>' call
|
|
2224
2215
|
if (this_0 > 0) {
|
|
@@ -2233,20 +2224,20 @@
|
|
|
2233
2224
|
if (!(passwordIndex === -1)) {
|
|
2234
2225
|
var tmp_1 = _this__u8e3s4;
|
|
2235
2226
|
// Inline function 'kotlin.text.substring' call
|
|
2236
|
-
var
|
|
2227
|
+
var startIndex_1 = startIndex;
|
|
2237
2228
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2238
|
-
tmp_1.
|
|
2229
|
+
tmp_1.d2n_1 = urlString.substring(startIndex_1, passwordIndex);
|
|
2239
2230
|
var tmp_2 = _this__u8e3s4;
|
|
2240
2231
|
// Inline function 'kotlin.text.substring' call
|
|
2241
|
-
var
|
|
2232
|
+
var startIndex_2 = passwordIndex + 1 | 0;
|
|
2242
2233
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2243
|
-
tmp_2.
|
|
2234
|
+
tmp_2.e2n_1 = urlString.substring(startIndex_2, delimiter);
|
|
2244
2235
|
} else {
|
|
2245
2236
|
var tmp_3 = _this__u8e3s4;
|
|
2246
2237
|
// Inline function 'kotlin.text.substring' call
|
|
2247
|
-
var
|
|
2238
|
+
var startIndex_3 = startIndex;
|
|
2248
2239
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2249
|
-
tmp_3.
|
|
2240
|
+
tmp_3.d2n_1 = urlString.substring(startIndex_3, delimiter);
|
|
2250
2241
|
}
|
|
2251
2242
|
startIndex = delimiter + 1 | 0;
|
|
2252
2243
|
} else {
|
|
@@ -2257,20 +2248,19 @@
|
|
|
2257
2248
|
}
|
|
2258
2249
|
}
|
|
2259
2250
|
if (startIndex >= endIndex) {
|
|
2260
|
-
_this__u8e3s4.
|
|
2251
|
+
_this__u8e3s4.g2n_1 = charSequenceGet(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2261
2252
|
return _this__u8e3s4;
|
|
2262
2253
|
}
|
|
2263
2254
|
var tmp_4 = _this__u8e3s4;
|
|
2264
2255
|
var tmp_5;
|
|
2265
2256
|
if (slashCount === 0) {
|
|
2266
|
-
tmp_5 = dropLast(_this__u8e3s4.
|
|
2257
|
+
tmp_5 = dropLast(_this__u8e3s4.g2n_1, 1);
|
|
2267
2258
|
} else {
|
|
2268
2259
|
tmp_5 = emptyList();
|
|
2269
2260
|
}
|
|
2270
|
-
tmp_4.
|
|
2261
|
+
tmp_4.g2n_1 = tmp_5;
|
|
2271
2262
|
// Inline function 'kotlin.takeIf' call
|
|
2272
2263
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2273
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2274
2264
|
var tmp_6;
|
|
2275
2265
|
// Inline function 'io.ktor.http.takeFromUnsafe.<anonymous>' call
|
|
2276
2266
|
if (this_1 > 0) {
|
|
@@ -2282,14 +2272,14 @@
|
|
|
2282
2272
|
var pathEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2283
2273
|
if (pathEnd > startIndex) {
|
|
2284
2274
|
// Inline function 'kotlin.text.substring' call
|
|
2285
|
-
var
|
|
2275
|
+
var startIndex_4 = startIndex;
|
|
2286
2276
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2287
|
-
var rawPath = urlString.substring(
|
|
2277
|
+
var rawPath = urlString.substring(startIndex_4, pathEnd);
|
|
2288
2278
|
var tmp_7;
|
|
2289
2279
|
var tmp_8;
|
|
2290
|
-
if (_this__u8e3s4.
|
|
2280
|
+
if (_this__u8e3s4.g2n_1.s() === 1) {
|
|
2291
2281
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2292
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2282
|
+
var this_2 = first_0(_this__u8e3s4.g2n_1);
|
|
2293
2283
|
tmp_8 = charSequenceLength(this_2) === 0;
|
|
2294
2284
|
} else {
|
|
2295
2285
|
tmp_8 = false;
|
|
@@ -2297,12 +2287,12 @@
|
|
|
2297
2287
|
if (tmp_8) {
|
|
2298
2288
|
tmp_7 = emptyList();
|
|
2299
2289
|
} else {
|
|
2300
|
-
tmp_7 = _this__u8e3s4.
|
|
2290
|
+
tmp_7 = _this__u8e3s4.g2n_1;
|
|
2301
2291
|
}
|
|
2302
2292
|
var basePath = tmp_7;
|
|
2303
2293
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2304
2294
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2305
|
-
_this__u8e3s4.
|
|
2295
|
+
_this__u8e3s4.g2n_1 = plus_0(basePath, relativePath);
|
|
2306
2296
|
startIndex = pathEnd;
|
|
2307
2297
|
}
|
|
2308
2298
|
if (startIndex < endIndex && charSequenceGet(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2357,7 +2347,7 @@
|
|
|
2357
2347
|
var tmp = _this__u8e3s4;
|
|
2358
2348
|
// Inline function 'kotlin.text.substring' call
|
|
2359
2349
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2360
|
-
tmp.
|
|
2350
|
+
tmp.z2m_1 = urlString.substring(startIndex, endIndex);
|
|
2361
2351
|
return Unit_instance;
|
|
2362
2352
|
}
|
|
2363
2353
|
|
|
@@ -2366,7 +2356,7 @@
|
|
|
2366
2356
|
|
|
2367
2357
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2368
2358
|
|
|
2369
|
-
tmp_0.
|
|
2359
|
+
tmp_0.z2m_1 = urlString.substring(startIndex, nextSlash);
|
|
2370
2360
|
// Inline function 'kotlin.text.substring' call
|
|
2371
2361
|
|
|
2372
2362
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2375,7 +2365,7 @@
|
|
|
2375
2365
|
set_encodedPath(_this__u8e3s4, tmp$ret$5);
|
|
2376
2366
|
break;
|
|
2377
2367
|
case 3:
|
|
2378
|
-
_this__u8e3s4.
|
|
2368
|
+
_this__u8e3s4.z2m_1 = '';
|
|
2379
2369
|
// Inline function 'kotlin.text.substring' call
|
|
2380
2370
|
|
|
2381
2371
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2396,12 +2386,12 @@
|
|
|
2396
2386
|
// Inline function 'kotlin.text.substring' call
|
|
2397
2387
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2398
2388
|
var tmp$ret$1 = urlString.substring(startIndex, delimiter);
|
|
2399
|
-
_this__u8e3s4.
|
|
2389
|
+
_this__u8e3s4.o2o(decodeURLPart(tmp$ret$1));
|
|
2400
2390
|
var tmp = _this__u8e3s4;
|
|
2401
2391
|
// Inline function 'kotlin.text.substring' call
|
|
2402
2392
|
var startIndex_0 = delimiter + 1 | 0;
|
|
2403
2393
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2404
|
-
tmp.
|
|
2394
|
+
tmp.z2m_1 = urlString.substring(startIndex_0, endIndex);
|
|
2405
2395
|
}
|
|
2406
2396
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2407
2397
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2427,7 +2417,6 @@
|
|
|
2427
2417
|
_init_properties_URLParser_kt__sf11to();
|
|
2428
2418
|
// Inline function 'kotlin.takeIf' call
|
|
2429
2419
|
var this_0 = indexOfColonInHostPort(urlString, startIndex, endIndex);
|
|
2430
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2431
2420
|
var tmp;
|
|
2432
2421
|
// Inline function 'io.ktor.http.fillHost.<anonymous>' call
|
|
2433
2422
|
if (this_0 > 0) {
|
|
@@ -2440,7 +2429,7 @@
|
|
|
2440
2429
|
var tmp_0 = _this__u8e3s4;
|
|
2441
2430
|
// Inline function 'kotlin.text.substring' call
|
|
2442
2431
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2443
|
-
tmp_0.
|
|
2432
|
+
tmp_0.z2m_1 = urlString.substring(startIndex, colonIndex);
|
|
2444
2433
|
var tmp_1;
|
|
2445
2434
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2446
2435
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -2451,17 +2440,16 @@
|
|
|
2451
2440
|
} else {
|
|
2452
2441
|
tmp_1 = 0;
|
|
2453
2442
|
}
|
|
2454
|
-
_this__u8e3s4.
|
|
2443
|
+
_this__u8e3s4.g2o(tmp_1);
|
|
2455
2444
|
}
|
|
2456
2445
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2457
2446
|
_init_properties_URLParser_kt__sf11to();
|
|
2458
2447
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2459
|
-
_this__u8e3s4.
|
|
2448
|
+
_this__u8e3s4.a2n_1 = true;
|
|
2460
2449
|
return endIndex;
|
|
2461
2450
|
}
|
|
2462
2451
|
// Inline function 'kotlin.takeIf' call
|
|
2463
2452
|
var this_0 = indexOf(urlString, _Char___init__impl__6a9atx(35), startIndex + 1 | 0);
|
|
2464
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2465
2453
|
var tmp;
|
|
2466
2454
|
// Inline function 'io.ktor.http.parseQuery.<anonymous>' call
|
|
2467
2455
|
if (this_0 > 0) {
|
|
@@ -2476,7 +2464,7 @@
|
|
|
2476
2464
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2477
2465
|
var tmp$ret$3 = urlString.substring(startIndex_0, fragmentStart);
|
|
2478
2466
|
var rawParameters = parseQueryString(tmp$ret$3, VOID, VOID, false);
|
|
2479
|
-
rawParameters.
|
|
2467
|
+
rawParameters.k29(parseQuery$lambda(_this__u8e3s4));
|
|
2480
2468
|
return fragmentStart;
|
|
2481
2469
|
}
|
|
2482
2470
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
@@ -2486,12 +2474,12 @@
|
|
|
2486
2474
|
// Inline function 'kotlin.text.substring' call
|
|
2487
2475
|
var startIndex_0 = startIndex + 1 | 0;
|
|
2488
2476
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2489
|
-
tmp.
|
|
2477
|
+
tmp.f2n_1 = urlString.substring(startIndex_0, endIndex);
|
|
2490
2478
|
}
|
|
2491
2479
|
}
|
|
2492
2480
|
function parseQuery$lambda($this_parseQuery) {
|
|
2493
2481
|
return function (key, values) {
|
|
2494
|
-
$this_parseQuery.
|
|
2482
|
+
$this_parseQuery.h2n_1.o29(key, values);
|
|
2495
2483
|
return Unit_instance;
|
|
2496
2484
|
};
|
|
2497
2485
|
}
|
|
@@ -2504,32 +2492,31 @@
|
|
|
2504
2492
|
}
|
|
2505
2493
|
function Companion_7() {
|
|
2506
2494
|
Companion_instance_7 = this;
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2495
|
+
this.i2o_1 = new URLProtocol('http', 80);
|
|
2496
|
+
this.j2o_1 = new URLProtocol('https', 443);
|
|
2497
|
+
this.k2o_1 = new URLProtocol('ws', 80);
|
|
2498
|
+
this.l2o_1 = new URLProtocol('wss', 443);
|
|
2499
|
+
this.m2o_1 = new URLProtocol('socks', 1080);
|
|
2512
2500
|
var tmp = this;
|
|
2513
2501
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2514
|
-
var this_0 = listOf([this.
|
|
2502
|
+
var this_0 = listOf([this.i2o_1, this.j2o_1, this.k2o_1, this.l2o_1, this.m2o_1]);
|
|
2515
2503
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2516
2504
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2517
2505
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2518
|
-
var
|
|
2519
|
-
while (
|
|
2520
|
-
var element =
|
|
2506
|
+
var _iterator__ex2g4s = this_0.p();
|
|
2507
|
+
while (_iterator__ex2g4s.q()) {
|
|
2508
|
+
var element = _iterator__ex2g4s.r();
|
|
2521
2509
|
// Inline function 'io.ktor.http.Companion.byName.<anonymous>' call
|
|
2522
|
-
var tmp$ret$0 = element.
|
|
2510
|
+
var tmp$ret$0 = element.j2n_1;
|
|
2523
2511
|
destination.n2(tmp$ret$0, element);
|
|
2524
2512
|
}
|
|
2525
|
-
tmp.
|
|
2513
|
+
tmp.n2o_1 = destination;
|
|
2526
2514
|
}
|
|
2527
|
-
protoOf(Companion_7).
|
|
2515
|
+
protoOf(Companion_7).v2o = function (name) {
|
|
2528
2516
|
// Inline function 'kotlin.let' call
|
|
2529
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2530
2517
|
// Inline function 'io.ktor.http.Companion.createOrDefault.<anonymous>' call
|
|
2531
2518
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2532
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2519
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().n2o_1.k2(it);
|
|
2533
2520
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2534
2521
|
};
|
|
2535
2522
|
var Companion_instance_7;
|
|
@@ -2540,16 +2527,15 @@
|
|
|
2540
2527
|
}
|
|
2541
2528
|
function URLProtocol(name, defaultPort) {
|
|
2542
2529
|
Companion_getInstance_7();
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2545
|
-
|
|
2530
|
+
this.j2n_1 = name;
|
|
2531
|
+
this.k2n_1 = defaultPort;
|
|
2532
|
+
var tmp0 = this.j2n_1;
|
|
2546
2533
|
var tmp$ret$1;
|
|
2547
2534
|
$l$block: {
|
|
2548
2535
|
// Inline function 'kotlin.text.all' call
|
|
2549
|
-
var indexedObject = this.a2m_1;
|
|
2550
2536
|
var inductionVariable = 0;
|
|
2551
|
-
while (inductionVariable < charSequenceLength(
|
|
2552
|
-
var element = charSequenceGet(
|
|
2537
|
+
while (inductionVariable < charSequenceLength(tmp0)) {
|
|
2538
|
+
var element = charSequenceGet(tmp0, inductionVariable);
|
|
2553
2539
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2554
2540
|
// Inline function 'io.ktor.http.URLProtocol.<anonymous>' call
|
|
2555
2541
|
if (!isLowerCase(element)) {
|
|
@@ -2559,7 +2545,7 @@
|
|
|
2559
2545
|
}
|
|
2560
2546
|
tmp$ret$1 = true;
|
|
2561
2547
|
}
|
|
2562
|
-
// Inline function 'kotlin.
|
|
2548
|
+
// Inline function 'kotlin.require' call
|
|
2563
2549
|
if (!tmp$ret$1) {
|
|
2564
2550
|
// Inline function 'io.ktor.http.URLProtocol.<anonymous>' call
|
|
2565
2551
|
var message = 'All characters should be lower case';
|
|
@@ -2567,11 +2553,11 @@
|
|
|
2567
2553
|
}
|
|
2568
2554
|
}
|
|
2569
2555
|
protoOf(URLProtocol).toString = function () {
|
|
2570
|
-
return 'URLProtocol(name=' + this.
|
|
2556
|
+
return 'URLProtocol(name=' + this.j2n_1 + ', defaultPort=' + this.k2n_1 + ')';
|
|
2571
2557
|
};
|
|
2572
2558
|
protoOf(URLProtocol).hashCode = function () {
|
|
2573
|
-
var result = getStringHashCode(this.
|
|
2574
|
-
result = imul(result, 31) + this.
|
|
2559
|
+
var result = getStringHashCode(this.j2n_1);
|
|
2560
|
+
result = imul(result, 31) + this.k2n_1 | 0;
|
|
2575
2561
|
return result;
|
|
2576
2562
|
};
|
|
2577
2563
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2580,52 +2566,51 @@
|
|
|
2580
2566
|
if (!(other instanceof URLProtocol))
|
|
2581
2567
|
return false;
|
|
2582
2568
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2583
|
-
if (!(this.
|
|
2569
|
+
if (!(this.j2n_1 === tmp0_other_with_cast.j2n_1))
|
|
2584
2570
|
return false;
|
|
2585
|
-
if (!(this.
|
|
2571
|
+
if (!(this.k2n_1 === tmp0_other_with_cast.k2n_1))
|
|
2586
2572
|
return false;
|
|
2587
2573
|
return true;
|
|
2588
2574
|
};
|
|
2589
2575
|
function isSecure(_this__u8e3s4) {
|
|
2590
|
-
return _this__u8e3s4.
|
|
2576
|
+
return _this__u8e3s4.j2n_1 === 'https' || _this__u8e3s4.j2n_1 === 'wss';
|
|
2591
2577
|
}
|
|
2592
2578
|
function isWebsocket(_this__u8e3s4) {
|
|
2593
|
-
return _this__u8e3s4.
|
|
2579
|
+
return _this__u8e3s4.j2n_1 === 'ws' || _this__u8e3s4.j2n_1 === 'wss';
|
|
2594
2580
|
}
|
|
2595
2581
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2596
|
-
_this__u8e3s4.
|
|
2597
|
-
_this__u8e3s4.
|
|
2598
|
-
_this__u8e3s4.
|
|
2599
|
-
_this__u8e3s4.
|
|
2600
|
-
_this__u8e3s4.
|
|
2601
|
-
_this__u8e3s4.
|
|
2582
|
+
_this__u8e3s4.c2n_1 = url.c2n_1;
|
|
2583
|
+
_this__u8e3s4.z2m_1 = url.z2m_1;
|
|
2584
|
+
_this__u8e3s4.g2o(url.b2n_1);
|
|
2585
|
+
_this__u8e3s4.g2n_1 = url.g2n_1;
|
|
2586
|
+
_this__u8e3s4.d2n_1 = url.d2n_1;
|
|
2587
|
+
_this__u8e3s4.e2n_1 = url.e2n_1;
|
|
2602
2588
|
// Inline function 'kotlin.apply' call
|
|
2603
2589
|
var this_0 = ParametersBuilder();
|
|
2604
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2605
2590
|
// Inline function 'io.ktor.http.takeFrom.<anonymous>' call
|
|
2606
|
-
appendAll(this_0, url.
|
|
2607
|
-
_this__u8e3s4.
|
|
2608
|
-
_this__u8e3s4.
|
|
2609
|
-
_this__u8e3s4.
|
|
2591
|
+
appendAll(this_0, url.h2n_1);
|
|
2592
|
+
_this__u8e3s4.t2o(this_0);
|
|
2593
|
+
_this__u8e3s4.f2n_1 = url.f2n_1;
|
|
2594
|
+
_this__u8e3s4.a2n_1 = url.a2n_1;
|
|
2610
2595
|
return _this__u8e3s4;
|
|
2611
2596
|
}
|
|
2612
2597
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2613
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2614
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2598
|
+
var tmp0_subject = _this__u8e3s4.n2n_1;
|
|
2599
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.y2n_1.k2n_1 ? _this__u8e3s4.m2n_1 : get_hostWithPort(_this__u8e3s4);
|
|
2615
2600
|
}
|
|
2616
2601
|
function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
2617
2602
|
if (encodedUser == null) {
|
|
2618
2603
|
return Unit_instance;
|
|
2619
2604
|
}
|
|
2620
|
-
_this__u8e3s4.
|
|
2605
|
+
_this__u8e3s4.p8(encodedUser);
|
|
2621
2606
|
if (!(encodedPassword == null)) {
|
|
2622
|
-
_this__u8e3s4.
|
|
2623
|
-
_this__u8e3s4.
|
|
2607
|
+
_this__u8e3s4.q8(_Char___init__impl__6a9atx(58));
|
|
2608
|
+
_this__u8e3s4.p8(encodedPassword);
|
|
2624
2609
|
}
|
|
2625
|
-
_this__u8e3s4.
|
|
2610
|
+
_this__u8e3s4.p8('@');
|
|
2626
2611
|
}
|
|
2627
2612
|
function Url(urlString) {
|
|
2628
|
-
return URLBuilder_0(urlString).
|
|
2613
|
+
return URLBuilder_0(urlString).u2f();
|
|
2629
2614
|
}
|
|
2630
2615
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2631
2616
|
var tmp;
|
|
@@ -2636,19 +2621,19 @@
|
|
|
2636
2621
|
tmp = false;
|
|
2637
2622
|
}
|
|
2638
2623
|
if (tmp) {
|
|
2639
|
-
_this__u8e3s4.
|
|
2624
|
+
_this__u8e3s4.q8(_Char___init__impl__6a9atx(47));
|
|
2640
2625
|
}
|
|
2641
2626
|
_this__u8e3s4.l(encodedPath);
|
|
2642
2627
|
if (!encodedQueryParameters.h() || trailingQuery) {
|
|
2643
2628
|
_this__u8e3s4.l('?');
|
|
2644
2629
|
}
|
|
2645
2630
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2631
|
+
var tmp0 = encodedQueryParameters.j29();
|
|
2646
2632
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2647
|
-
var this_0 = encodedQueryParameters.a28();
|
|
2648
2633
|
var destination = ArrayList_init_$Create$_0();
|
|
2649
|
-
var
|
|
2650
|
-
while (
|
|
2651
|
-
var element =
|
|
2634
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
2635
|
+
while (_iterator__ex2g4s.q()) {
|
|
2636
|
+
var element = _iterator__ex2g4s.r();
|
|
2652
2637
|
// Inline function 'io.ktor.http.appendUrlFullPath.<anonymous>' call
|
|
2653
2638
|
// Inline function 'kotlin.collections.component1' call
|
|
2654
2639
|
var key = element.y();
|
|
@@ -2661,9 +2646,9 @@
|
|
|
2661
2646
|
// Inline function 'kotlin.collections.map' call
|
|
2662
2647
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2663
2648
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(value, 10));
|
|
2664
|
-
var
|
|
2665
|
-
while (
|
|
2666
|
-
var item =
|
|
2649
|
+
var _iterator__ex2g4s_0 = value.p();
|
|
2650
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
2651
|
+
var item = _iterator__ex2g4s_0.r();
|
|
2667
2652
|
// Inline function 'io.ktor.http.appendUrlFullPath.<anonymous>.<anonymous>' call
|
|
2668
2653
|
var tmp$ret$3 = to(key, item);
|
|
2669
2654
|
destination_0.k(tmp$ret$3);
|
|
@@ -2677,7 +2662,7 @@
|
|
|
2677
2662
|
joinTo(tmp_1, _this__u8e3s4, '&', VOID, VOID, VOID, VOID, appendUrlFullPath$lambda);
|
|
2678
2663
|
}
|
|
2679
2664
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2680
|
-
return _this__u8e3s4.
|
|
2665
|
+
return _this__u8e3s4.m2n_1 + ':' + _this__u8e3s4.w2o();
|
|
2681
2666
|
}
|
|
2682
2667
|
function URLBuilder_0(urlString) {
|
|
2683
2668
|
return takeFrom(new URLBuilder(), urlString);
|
|
@@ -2686,29 +2671,28 @@
|
|
|
2686
2671
|
return takeFrom_1(new URLBuilder(), url);
|
|
2687
2672
|
}
|
|
2688
2673
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
2689
|
-
_this__u8e3s4.
|
|
2690
|
-
_this__u8e3s4.
|
|
2691
|
-
_this__u8e3s4.
|
|
2692
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
2693
|
-
_this__u8e3s4.
|
|
2694
|
-
_this__u8e3s4.
|
|
2674
|
+
_this__u8e3s4.c2n_1 = url.x2n_1;
|
|
2675
|
+
_this__u8e3s4.z2m_1 = url.m2n_1;
|
|
2676
|
+
_this__u8e3s4.g2o(url.w2o());
|
|
2677
|
+
set_encodedPath(_this__u8e3s4, url.x2o());
|
|
2678
|
+
_this__u8e3s4.d2n_1 = url.y2o();
|
|
2679
|
+
_this__u8e3s4.e2n_1 = url.z2o();
|
|
2695
2680
|
// Inline function 'kotlin.apply' call
|
|
2696
2681
|
var this_0 = ParametersBuilder();
|
|
2697
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2698
2682
|
// Inline function 'io.ktor.http.takeFrom.<anonymous>' call
|
|
2699
|
-
this_0.
|
|
2700
|
-
_this__u8e3s4.
|
|
2701
|
-
_this__u8e3s4.
|
|
2702
|
-
_this__u8e3s4.
|
|
2683
|
+
this_0.u29(parseQueryString(url.a2p(), VOID, VOID, false));
|
|
2684
|
+
_this__u8e3s4.t2o(this_0);
|
|
2685
|
+
_this__u8e3s4.f2n_1 = url.b2p();
|
|
2686
|
+
_this__u8e3s4.a2n_1 = url.s2n_1;
|
|
2703
2687
|
return _this__u8e3s4;
|
|
2704
2688
|
}
|
|
2705
2689
|
function appendUrlFullPath$lambda(it) {
|
|
2706
|
-
var key = it.
|
|
2690
|
+
var key = it.og_1;
|
|
2707
2691
|
var tmp;
|
|
2708
|
-
if (it.
|
|
2692
|
+
if (it.pg_1 == null) {
|
|
2709
2693
|
tmp = key;
|
|
2710
2694
|
} else {
|
|
2711
|
-
var value = toString_1(it.
|
|
2695
|
+
var value = toString_1(it.pg_1);
|
|
2712
2696
|
tmp = key + '=' + value;
|
|
2713
2697
|
}
|
|
2714
2698
|
return tmp;
|
|
@@ -2758,157 +2742,155 @@
|
|
|
2758
2742
|
if ($pathSegments.h()) {
|
|
2759
2743
|
return '';
|
|
2760
2744
|
}
|
|
2761
|
-
var pathStartIndex = indexOf(this$0.
|
|
2745
|
+
var pathStartIndex = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(47), this$0.y2n_1.j2n_1.length + 3 | 0);
|
|
2762
2746
|
var tmp_0;
|
|
2763
2747
|
if (pathStartIndex === -1) {
|
|
2764
2748
|
return '';
|
|
2765
2749
|
}
|
|
2766
2750
|
// Inline function 'kotlin.charArrayOf' call
|
|
2767
2751
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2768
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2752
|
+
var pathEndIndex = indexOfAny(this$0.t2n_1, tmp$ret$0, pathStartIndex);
|
|
2769
2753
|
var tmp_1;
|
|
2770
2754
|
if (pathEndIndex === -1) {
|
|
2771
2755
|
// Inline function 'kotlin.text.substring' call
|
|
2772
2756
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2773
|
-
return this$0.
|
|
2757
|
+
return this$0.t2n_1.substring(pathStartIndex);
|
|
2774
2758
|
}
|
|
2775
2759
|
// Inline function 'kotlin.text.substring' call
|
|
2776
2760
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2777
|
-
return this$0.
|
|
2761
|
+
return this$0.t2n_1.substring(pathStartIndex, pathEndIndex);
|
|
2778
2762
|
};
|
|
2779
2763
|
}
|
|
2780
2764
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2781
2765
|
return function () {
|
|
2782
|
-
var queryStart = indexOf(this$0.
|
|
2766
|
+
var queryStart = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2783
2767
|
var tmp;
|
|
2784
2768
|
if (queryStart === 0) {
|
|
2785
2769
|
return '';
|
|
2786
2770
|
}
|
|
2787
|
-
var queryEnd = indexOf(this$0.
|
|
2771
|
+
var queryEnd = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2788
2772
|
var tmp_0;
|
|
2789
2773
|
if (queryEnd === -1) {
|
|
2790
2774
|
// Inline function 'kotlin.text.substring' call
|
|
2791
2775
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2792
|
-
return this$0.
|
|
2776
|
+
return this$0.t2n_1.substring(queryStart);
|
|
2793
2777
|
}
|
|
2794
2778
|
// Inline function 'kotlin.text.substring' call
|
|
2795
2779
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2796
|
-
return this$0.
|
|
2780
|
+
return this$0.t2n_1.substring(queryStart, queryEnd);
|
|
2797
2781
|
};
|
|
2798
2782
|
}
|
|
2799
2783
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2800
2784
|
return function () {
|
|
2801
|
-
var pathStart = indexOf(this$0.
|
|
2785
|
+
var pathStart = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(47), this$0.y2n_1.j2n_1.length + 3 | 0);
|
|
2802
2786
|
var tmp;
|
|
2803
2787
|
if (pathStart === -1) {
|
|
2804
2788
|
return '';
|
|
2805
2789
|
}
|
|
2806
|
-
var queryEnd = indexOf(this$0.
|
|
2790
|
+
var queryEnd = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2807
2791
|
var tmp_0;
|
|
2808
2792
|
if (queryEnd === -1) {
|
|
2809
2793
|
// Inline function 'kotlin.text.substring' call
|
|
2810
2794
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2811
|
-
return this$0.
|
|
2795
|
+
return this$0.t2n_1.substring(pathStart);
|
|
2812
2796
|
}
|
|
2813
2797
|
// Inline function 'kotlin.text.substring' call
|
|
2814
2798
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2815
|
-
return this$0.
|
|
2799
|
+
return this$0.t2n_1.substring(pathStart, queryEnd);
|
|
2816
2800
|
};
|
|
2817
2801
|
}
|
|
2818
2802
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2819
2803
|
return function () {
|
|
2820
2804
|
var tmp;
|
|
2821
|
-
if (this$0.
|
|
2805
|
+
if (this$0.q2n_1 == null) {
|
|
2822
2806
|
return null;
|
|
2823
2807
|
}
|
|
2824
2808
|
var tmp_0;
|
|
2825
2809
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2826
|
-
var this_0 = this$0.
|
|
2810
|
+
var this_0 = this$0.q2n_1;
|
|
2827
2811
|
if (charSequenceLength(this_0) === 0) {
|
|
2828
2812
|
return '';
|
|
2829
2813
|
}
|
|
2830
|
-
var usernameStart = this$0.
|
|
2814
|
+
var usernameStart = this$0.y2n_1.j2n_1.length + 3 | 0;
|
|
2831
2815
|
// Inline function 'kotlin.charArrayOf' call
|
|
2832
2816
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2833
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2817
|
+
var usernameEnd = indexOfAny(this$0.t2n_1, tmp$ret$1, usernameStart);
|
|
2834
2818
|
// Inline function 'kotlin.text.substring' call
|
|
2835
2819
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2836
|
-
return this$0.
|
|
2820
|
+
return this$0.t2n_1.substring(usernameStart, usernameEnd);
|
|
2837
2821
|
};
|
|
2838
2822
|
}
|
|
2839
2823
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2840
2824
|
return function () {
|
|
2841
2825
|
var tmp;
|
|
2842
|
-
if (this$0.
|
|
2826
|
+
if (this$0.r2n_1 == null) {
|
|
2843
2827
|
return null;
|
|
2844
2828
|
}
|
|
2845
2829
|
var tmp_0;
|
|
2846
2830
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2847
|
-
var this_0 = this$0.
|
|
2831
|
+
var this_0 = this$0.r2n_1;
|
|
2848
2832
|
if (charSequenceLength(this_0) === 0) {
|
|
2849
2833
|
return '';
|
|
2850
2834
|
}
|
|
2851
|
-
var passwordStart = indexOf(this$0.
|
|
2852
|
-
var passwordEnd = indexOf(this$0.
|
|
2835
|
+
var passwordStart = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(58), this$0.y2n_1.j2n_1.length + 3 | 0) + 1 | 0;
|
|
2836
|
+
var passwordEnd = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(64));
|
|
2853
2837
|
// Inline function 'kotlin.text.substring' call
|
|
2854
2838
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2855
|
-
return this$0.
|
|
2839
|
+
return this$0.t2n_1.substring(passwordStart, passwordEnd);
|
|
2856
2840
|
};
|
|
2857
2841
|
}
|
|
2858
2842
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2859
2843
|
return function () {
|
|
2860
|
-
var fragmentStart = indexOf(this$0.
|
|
2844
|
+
var fragmentStart = indexOf(this$0.t2n_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2861
2845
|
var tmp;
|
|
2862
2846
|
if (fragmentStart === 0) {
|
|
2863
2847
|
return '';
|
|
2864
2848
|
}
|
|
2865
2849
|
// Inline function 'kotlin.text.substring' call
|
|
2866
2850
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2867
|
-
return this$0.
|
|
2851
|
+
return this$0.t2n_1.substring(fragmentStart);
|
|
2868
2852
|
};
|
|
2869
2853
|
}
|
|
2870
2854
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2871
|
-
this.
|
|
2872
|
-
this.
|
|
2873
|
-
this.
|
|
2874
|
-
this.
|
|
2875
|
-
this.
|
|
2876
|
-
this.
|
|
2877
|
-
this.
|
|
2878
|
-
this.
|
|
2855
|
+
this.m2n_1 = host;
|
|
2856
|
+
this.n2n_1 = specifiedPort;
|
|
2857
|
+
this.o2n_1 = parameters;
|
|
2858
|
+
this.p2n_1 = fragment;
|
|
2859
|
+
this.q2n_1 = user;
|
|
2860
|
+
this.r2n_1 = password;
|
|
2861
|
+
this.s2n_1 = trailingQuery;
|
|
2862
|
+
this.t2n_1 = urlString;
|
|
2863
|
+
var containsArg = this.n2n_1;
|
|
2879
2864
|
// Inline function 'kotlin.require' call
|
|
2880
|
-
var containsArg = this.e2m_1;
|
|
2881
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2882
2865
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2883
2866
|
// Inline function 'io.ktor.http.Url.<anonymous>' call
|
|
2884
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2867
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.n2n_1;
|
|
2885
2868
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2886
2869
|
}
|
|
2887
|
-
this.
|
|
2888
|
-
this.
|
|
2870
|
+
this.u2n_1 = pathSegments;
|
|
2871
|
+
this.v2n_1 = pathSegments;
|
|
2889
2872
|
var tmp = this;
|
|
2890
|
-
tmp.
|
|
2891
|
-
this.
|
|
2873
|
+
tmp.w2n_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2874
|
+
this.x2n_1 = protocol;
|
|
2892
2875
|
var tmp_0 = this;
|
|
2893
|
-
var tmp0_elvis_lhs = this.
|
|
2894
|
-
tmp_0.
|
|
2876
|
+
var tmp0_elvis_lhs = this.x2n_1;
|
|
2877
|
+
tmp_0.y2n_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().i2o_1 : tmp0_elvis_lhs;
|
|
2895
2878
|
var tmp_1 = this;
|
|
2896
|
-
tmp_1.
|
|
2879
|
+
tmp_1.z2n_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2897
2880
|
var tmp_2 = this;
|
|
2898
|
-
tmp_2.
|
|
2881
|
+
tmp_2.a2o_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2899
2882
|
var tmp_3 = this;
|
|
2900
|
-
tmp_3.
|
|
2883
|
+
tmp_3.b2o_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2901
2884
|
var tmp_4 = this;
|
|
2902
|
-
tmp_4.
|
|
2885
|
+
tmp_4.c2o_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2903
2886
|
var tmp_5 = this;
|
|
2904
|
-
tmp_5.
|
|
2887
|
+
tmp_5.d2o_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2905
2888
|
var tmp_6 = this;
|
|
2906
|
-
tmp_6.
|
|
2889
|
+
tmp_6.e2o_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2907
2890
|
}
|
|
2908
|
-
protoOf(Url_0).
|
|
2891
|
+
protoOf(Url_0).w2o = function () {
|
|
2909
2892
|
// Inline function 'kotlin.takeUnless' call
|
|
2910
|
-
var this_0 = this.
|
|
2911
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2893
|
+
var this_0 = this.n2n_1;
|
|
2912
2894
|
var tmp;
|
|
2913
2895
|
// Inline function 'io.ktor.http.Url.<get-port>.<anonymous>' call
|
|
2914
2896
|
if (!(this_0 === 0)) {
|
|
@@ -2917,40 +2899,40 @@
|
|
|
2917
2899
|
tmp = null;
|
|
2918
2900
|
}
|
|
2919
2901
|
var tmp0_elvis_lhs = tmp;
|
|
2920
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2902
|
+
return tmp0_elvis_lhs == null ? this.y2n_1.k2n_1 : tmp0_elvis_lhs;
|
|
2921
2903
|
};
|
|
2922
|
-
protoOf(Url_0).
|
|
2904
|
+
protoOf(Url_0).x2o = function () {
|
|
2905
|
+
var tmp0 = this.z2n_1;
|
|
2923
2906
|
// Inline function 'kotlin.getValue' call
|
|
2924
|
-
var this_0 = this.q2m_1;
|
|
2925
2907
|
encodedPath$factory();
|
|
2926
|
-
return
|
|
2908
|
+
return tmp0.z();
|
|
2927
2909
|
};
|
|
2928
|
-
protoOf(Url_0).
|
|
2910
|
+
protoOf(Url_0).a2p = function () {
|
|
2911
|
+
var tmp0 = this.a2o_1;
|
|
2929
2912
|
// Inline function 'kotlin.getValue' call
|
|
2930
|
-
var this_0 = this.r2m_1;
|
|
2931
2913
|
encodedQuery$factory();
|
|
2932
|
-
return
|
|
2914
|
+
return tmp0.z();
|
|
2933
2915
|
};
|
|
2934
|
-
protoOf(Url_0).
|
|
2916
|
+
protoOf(Url_0).y2o = function () {
|
|
2917
|
+
var tmp0 = this.c2o_1;
|
|
2935
2918
|
// Inline function 'kotlin.getValue' call
|
|
2936
|
-
var this_0 = this.t2m_1;
|
|
2937
2919
|
encodedUser$factory();
|
|
2938
|
-
return
|
|
2920
|
+
return tmp0.z();
|
|
2939
2921
|
};
|
|
2940
|
-
protoOf(Url_0).
|
|
2922
|
+
protoOf(Url_0).z2o = function () {
|
|
2923
|
+
var tmp0 = this.d2o_1;
|
|
2941
2924
|
// Inline function 'kotlin.getValue' call
|
|
2942
|
-
var this_0 = this.u2m_1;
|
|
2943
2925
|
encodedPassword$factory();
|
|
2944
|
-
return
|
|
2926
|
+
return tmp0.z();
|
|
2945
2927
|
};
|
|
2946
|
-
protoOf(Url_0).
|
|
2928
|
+
protoOf(Url_0).b2p = function () {
|
|
2929
|
+
var tmp0 = this.e2o_1;
|
|
2947
2930
|
// Inline function 'kotlin.getValue' call
|
|
2948
|
-
var this_0 = this.v2m_1;
|
|
2949
2931
|
encodedFragment$factory();
|
|
2950
|
-
return
|
|
2932
|
+
return tmp0.z();
|
|
2951
2933
|
};
|
|
2952
2934
|
protoOf(Url_0).toString = function () {
|
|
2953
|
-
return this.
|
|
2935
|
+
return this.t2n_1;
|
|
2954
2936
|
};
|
|
2955
2937
|
protoOf(Url_0).equals = function (other) {
|
|
2956
2938
|
if (this === other)
|
|
@@ -2959,69 +2941,65 @@
|
|
|
2959
2941
|
return false;
|
|
2960
2942
|
if (!(other instanceof Url_0))
|
|
2961
2943
|
THROW_CCE();
|
|
2962
|
-
return this.
|
|
2944
|
+
return this.t2n_1 === other.t2n_1;
|
|
2963
2945
|
};
|
|
2964
2946
|
protoOf(Url_0).hashCode = function () {
|
|
2965
|
-
return getStringHashCode(this.
|
|
2947
|
+
return getStringHashCode(this.t2n_1);
|
|
2966
2948
|
};
|
|
2967
2949
|
function get_authority_0(_this__u8e3s4) {
|
|
2968
2950
|
// Inline function 'kotlin.text.buildString' call
|
|
2969
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2970
2951
|
// Inline function 'kotlin.apply' call
|
|
2971
2952
|
var this_0 = StringBuilder_init_$Create$();
|
|
2972
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2973
2953
|
// Inline function 'io.ktor.http.<get-authority>.<anonymous>' call
|
|
2974
|
-
this_0.
|
|
2975
|
-
this_0.
|
|
2954
|
+
this_0.p8(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2955
|
+
this_0.p8(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
2976
2956
|
return this_0.toString();
|
|
2977
2957
|
}
|
|
2978
2958
|
function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
2979
2959
|
// Inline function 'kotlin.text.buildString' call
|
|
2980
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2981
2960
|
// Inline function 'kotlin.apply' call
|
|
2982
2961
|
var this_0 = StringBuilder_init_$Create$();
|
|
2983
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
2984
2962
|
// Inline function 'io.ktor.http.<get-encodedUserAndPassword>.<anonymous>' call
|
|
2985
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2963
|
+
appendUserAndPassword(this_0, _this__u8e3s4.y2o(), _this__u8e3s4.z2o());
|
|
2986
2964
|
return this_0.toString();
|
|
2987
2965
|
}
|
|
2988
2966
|
function encodedPath$factory() {
|
|
2989
2967
|
return getPropertyCallableRef('encodedPath', 1, KProperty1, function (receiver) {
|
|
2990
|
-
return receiver.
|
|
2968
|
+
return receiver.x2o();
|
|
2991
2969
|
}, null);
|
|
2992
2970
|
}
|
|
2993
2971
|
function encodedQuery$factory() {
|
|
2994
2972
|
return getPropertyCallableRef('encodedQuery', 1, KProperty1, function (receiver) {
|
|
2995
|
-
return receiver.
|
|
2973
|
+
return receiver.a2p();
|
|
2996
2974
|
}, null);
|
|
2997
2975
|
}
|
|
2998
2976
|
function encodedUser$factory() {
|
|
2999
2977
|
return getPropertyCallableRef('encodedUser', 1, KProperty1, function (receiver) {
|
|
3000
|
-
return receiver.
|
|
2978
|
+
return receiver.y2o();
|
|
3001
2979
|
}, null);
|
|
3002
2980
|
}
|
|
3003
2981
|
function encodedPassword$factory() {
|
|
3004
2982
|
return getPropertyCallableRef('encodedPassword', 1, KProperty1, function (receiver) {
|
|
3005
|
-
return receiver.
|
|
2983
|
+
return receiver.z2o();
|
|
3006
2984
|
}, null);
|
|
3007
2985
|
}
|
|
3008
2986
|
function encodedFragment$factory() {
|
|
3009
2987
|
return getPropertyCallableRef('encodedFragment', 1, KProperty1, function (receiver) {
|
|
3010
|
-
return receiver.
|
|
2988
|
+
return receiver.b2p();
|
|
3011
2989
|
}, null);
|
|
3012
2990
|
}
|
|
3013
2991
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
3014
|
-
this.
|
|
3015
|
-
this.
|
|
2992
|
+
this.c2p_1 = encodedParametersBuilder;
|
|
2993
|
+
this.d2p_1 = this.c2p_1.g29();
|
|
3016
2994
|
}
|
|
3017
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3018
|
-
return decodeParameters(this.
|
|
2995
|
+
protoOf(UrlDecodedParametersBuilder).u2f = function () {
|
|
2996
|
+
return decodeParameters(this.c2p_1);
|
|
3019
2997
|
};
|
|
3020
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3021
|
-
return this.
|
|
2998
|
+
protoOf(UrlDecodedParametersBuilder).g29 = function () {
|
|
2999
|
+
return this.d2p_1;
|
|
3022
3000
|
};
|
|
3023
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3024
|
-
var tmp0_safe_receiver = this.
|
|
3001
|
+
protoOf(UrlDecodedParametersBuilder).h29 = function (name) {
|
|
3002
|
+
var tmp0_safe_receiver = this.c2p_1.h29(encodeURLParameter(name));
|
|
3025
3003
|
var tmp;
|
|
3026
3004
|
if (tmp0_safe_receiver == null) {
|
|
3027
3005
|
tmp = null;
|
|
@@ -3029,9 +3007,9 @@
|
|
|
3029
3007
|
// Inline function 'kotlin.collections.map' call
|
|
3030
3008
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3031
3009
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
3032
|
-
var
|
|
3033
|
-
while (
|
|
3034
|
-
var item =
|
|
3010
|
+
var _iterator__ex2g4s = tmp0_safe_receiver.p();
|
|
3011
|
+
while (_iterator__ex2g4s.q()) {
|
|
3012
|
+
var item = _iterator__ex2g4s.r();
|
|
3035
3013
|
// Inline function 'io.ktor.http.UrlDecodedParametersBuilder.getAll.<anonymous>' call
|
|
3036
3014
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3037
3015
|
destination.k(tmp$ret$0);
|
|
@@ -3040,17 +3018,17 @@
|
|
|
3040
3018
|
}
|
|
3041
3019
|
return tmp;
|
|
3042
3020
|
};
|
|
3043
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3044
|
-
return this.
|
|
3021
|
+
protoOf(UrlDecodedParametersBuilder).p29 = function (name) {
|
|
3022
|
+
return this.c2p_1.p29(encodeURLParameter(name));
|
|
3045
3023
|
};
|
|
3046
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3024
|
+
protoOf(UrlDecodedParametersBuilder).i29 = function () {
|
|
3047
3025
|
// Inline function 'kotlin.collections.map' call
|
|
3048
|
-
var this_0 = this.
|
|
3026
|
+
var this_0 = this.c2p_1.i29();
|
|
3049
3027
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3050
3028
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3051
|
-
var
|
|
3052
|
-
while (
|
|
3053
|
-
var item =
|
|
3029
|
+
var _iterator__ex2g4s = this_0.p();
|
|
3030
|
+
while (_iterator__ex2g4s.q()) {
|
|
3031
|
+
var item = _iterator__ex2g4s.r();
|
|
3054
3032
|
// Inline function 'io.ktor.http.UrlDecodedParametersBuilder.names.<anonymous>' call
|
|
3055
3033
|
var tmp$ret$0 = decodeURLQueryComponent(item);
|
|
3056
3034
|
destination.k(tmp$ret$0);
|
|
@@ -3058,38 +3036,37 @@
|
|
|
3058
3036
|
return toSet(destination);
|
|
3059
3037
|
};
|
|
3060
3038
|
protoOf(UrlDecodedParametersBuilder).h = function () {
|
|
3061
|
-
return this.
|
|
3039
|
+
return this.c2p_1.h();
|
|
3062
3040
|
};
|
|
3063
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3064
|
-
return decodeParameters(this.
|
|
3041
|
+
protoOf(UrlDecodedParametersBuilder).j29 = function () {
|
|
3042
|
+
return decodeParameters(this.c2p_1).j29();
|
|
3065
3043
|
};
|
|
3066
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3067
|
-
return this.
|
|
3044
|
+
protoOf(UrlDecodedParametersBuilder).t29 = function (name, value) {
|
|
3045
|
+
return this.c2p_1.t29(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3068
3046
|
};
|
|
3069
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3070
|
-
return appendAllEncoded(this.
|
|
3047
|
+
protoOf(UrlDecodedParametersBuilder).u29 = function (stringValues) {
|
|
3048
|
+
return appendAllEncoded(this.c2p_1, stringValues);
|
|
3071
3049
|
};
|
|
3072
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3050
|
+
protoOf(UrlDecodedParametersBuilder).o29 = function (name, values) {
|
|
3073
3051
|
var tmp = encodeURLParameter(name);
|
|
3074
3052
|
// Inline function 'kotlin.collections.map' call
|
|
3075
3053
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3076
3054
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3077
|
-
var
|
|
3078
|
-
while (
|
|
3079
|
-
var item =
|
|
3055
|
+
var _iterator__ex2g4s = values.p();
|
|
3056
|
+
while (_iterator__ex2g4s.q()) {
|
|
3057
|
+
var item = _iterator__ex2g4s.r();
|
|
3080
3058
|
// Inline function 'io.ktor.http.UrlDecodedParametersBuilder.appendAll.<anonymous>' call
|
|
3081
3059
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3082
3060
|
destination.k(tmp$ret$0);
|
|
3083
3061
|
}
|
|
3084
|
-
return this.
|
|
3062
|
+
return this.c2p_1.o29(tmp, destination);
|
|
3085
3063
|
};
|
|
3086
3064
|
protoOf(UrlDecodedParametersBuilder).e2 = function () {
|
|
3087
|
-
return this.
|
|
3065
|
+
return this.c2p_1.e2();
|
|
3088
3066
|
};
|
|
3089
3067
|
function encodeParameters(parameters) {
|
|
3090
3068
|
// Inline function 'kotlin.apply' call
|
|
3091
3069
|
var this_0 = ParametersBuilder();
|
|
3092
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3093
3070
|
// Inline function 'io.ktor.http.encodeParameters.<anonymous>' call
|
|
3094
3071
|
appendAllEncoded(this_0, parameters);
|
|
3095
3072
|
return this_0;
|
|
@@ -3097,53 +3074,52 @@
|
|
|
3097
3074
|
function decodeParameters(parameters) {
|
|
3098
3075
|
// Inline function 'kotlin.apply' call
|
|
3099
3076
|
var this_0 = ParametersBuilder();
|
|
3100
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3101
3077
|
// Inline function 'io.ktor.http.decodeParameters.<anonymous>' call
|
|
3102
3078
|
appendAllDecoded(this_0, parameters);
|
|
3103
|
-
return this_0.
|
|
3079
|
+
return this_0.u2f();
|
|
3104
3080
|
}
|
|
3105
3081
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3106
3082
|
// Inline function 'kotlin.collections.forEach' call
|
|
3107
|
-
var
|
|
3108
|
-
while (
|
|
3109
|
-
var element =
|
|
3083
|
+
var _iterator__ex2g4s = parameters.i29().p();
|
|
3084
|
+
while (_iterator__ex2g4s.q()) {
|
|
3085
|
+
var element = _iterator__ex2g4s.r();
|
|
3110
3086
|
// Inline function 'io.ktor.http.appendAllEncoded.<anonymous>' call
|
|
3111
|
-
var tmp0_elvis_lhs = parameters.
|
|
3087
|
+
var tmp0_elvis_lhs = parameters.h29(element);
|
|
3112
3088
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3113
3089
|
var tmp = encodeURLParameter(element);
|
|
3114
3090
|
// Inline function 'kotlin.collections.map' call
|
|
3115
3091
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3116
3092
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3117
|
-
var
|
|
3118
|
-
while (
|
|
3119
|
-
var item =
|
|
3093
|
+
var _iterator__ex2g4s_0 = values.p();
|
|
3094
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
3095
|
+
var item = _iterator__ex2g4s_0.r();
|
|
3120
3096
|
// Inline function 'io.ktor.http.appendAllEncoded.<anonymous>.<anonymous>' call
|
|
3121
3097
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3122
3098
|
destination.k(tmp$ret$0);
|
|
3123
3099
|
}
|
|
3124
|
-
_this__u8e3s4.
|
|
3100
|
+
_this__u8e3s4.o29(tmp, destination);
|
|
3125
3101
|
}
|
|
3126
3102
|
}
|
|
3127
3103
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3128
3104
|
// Inline function 'kotlin.collections.forEach' call
|
|
3129
|
-
var
|
|
3130
|
-
while (
|
|
3131
|
-
var element =
|
|
3105
|
+
var _iterator__ex2g4s = parameters.i29().p();
|
|
3106
|
+
while (_iterator__ex2g4s.q()) {
|
|
3107
|
+
var element = _iterator__ex2g4s.r();
|
|
3132
3108
|
// Inline function 'io.ktor.http.appendAllDecoded.<anonymous>' call
|
|
3133
|
-
var tmp0_elvis_lhs = parameters.
|
|
3109
|
+
var tmp0_elvis_lhs = parameters.h29(element);
|
|
3134
3110
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3135
3111
|
var tmp = decodeURLQueryComponent(element);
|
|
3136
3112
|
// Inline function 'kotlin.collections.map' call
|
|
3137
3113
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3138
3114
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3139
|
-
var
|
|
3140
|
-
while (
|
|
3141
|
-
var item =
|
|
3115
|
+
var _iterator__ex2g4s_0 = values.p();
|
|
3116
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
3117
|
+
var item = _iterator__ex2g4s_0.r();
|
|
3142
3118
|
// Inline function 'io.ktor.http.appendAllDecoded.<anonymous>.<anonymous>' call
|
|
3143
3119
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3144
3120
|
destination.k(tmp$ret$0);
|
|
3145
3121
|
}
|
|
3146
|
-
_this__u8e3s4.
|
|
3122
|
+
_this__u8e3s4.o29(tmp, destination);
|
|
3147
3123
|
}
|
|
3148
3124
|
}
|
|
3149
3125
|
var HeaderValueEncoding_QUOTED_WHEN_REQUIRED_instance;
|
|
@@ -3191,9 +3167,9 @@
|
|
|
3191
3167
|
var this_0 = parameters.x();
|
|
3192
3168
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3193
3169
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3194
|
-
var
|
|
3195
|
-
while (
|
|
3196
|
-
var item =
|
|
3170
|
+
var _iterator__ex2g4s = this_0.p();
|
|
3171
|
+
while (_iterator__ex2g4s.q()) {
|
|
3172
|
+
var item = _iterator__ex2g4s.r();
|
|
3197
3173
|
// Inline function 'io.ktor.http.auth.Parameterized.<init>.<anonymous>' call
|
|
3198
3174
|
var tmp$ret$0 = HeaderValueParam_init_$Create$(item.y(), item.z());
|
|
3199
3175
|
destination.k(tmp$ret$0);
|
|
@@ -3224,72 +3200,73 @@
|
|
|
3224
3200
|
}
|
|
3225
3201
|
function HttpAuthHeader$Parameterized$render$lambda(this$0, $encoding) {
|
|
3226
3202
|
return function (it) {
|
|
3227
|
-
return it.
|
|
3203
|
+
return it.x2d_1 + '=' + encode_0(it.y2d_1, this$0, $encoding);
|
|
3228
3204
|
};
|
|
3229
3205
|
}
|
|
3230
3206
|
function Single(authScheme, blob) {
|
|
3231
3207
|
HttpAuthHeader.call(this, authScheme);
|
|
3232
|
-
this.
|
|
3208
|
+
this.f2p_1 = blob;
|
|
3209
|
+
var tmp0 = this.f2p_1;
|
|
3233
3210
|
// Inline function 'kotlin.text.matches' call
|
|
3234
|
-
|
|
3235
|
-
if (!get_token68Pattern().ed(this_0)) {
|
|
3211
|
+
if (!get_token68Pattern().nd(tmp0)) {
|
|
3236
3212
|
throw new ParseException('Invalid blob value: it should be token68');
|
|
3237
3213
|
}
|
|
3238
3214
|
}
|
|
3239
|
-
protoOf(Single).
|
|
3240
|
-
return this.
|
|
3215
|
+
protoOf(Single).g2p = function () {
|
|
3216
|
+
return this.h2p_1 + ' ' + this.f2p_1;
|
|
3241
3217
|
};
|
|
3242
3218
|
protoOf(Single).equals = function (other) {
|
|
3243
3219
|
if (!(other instanceof Single))
|
|
3244
3220
|
return false;
|
|
3245
|
-
return equals(other.
|
|
3221
|
+
return equals(other.h2p_1, this.h2p_1, true) && equals(other.f2p_1, this.f2p_1, true);
|
|
3246
3222
|
};
|
|
3247
3223
|
protoOf(Single).hashCode = function () {
|
|
3248
3224
|
var tmp = Hash_instance;
|
|
3249
3225
|
// Inline function 'kotlin.text.lowercase' call
|
|
3250
3226
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3251
|
-
var tmp_0 = this.
|
|
3227
|
+
var tmp_0 = this.h2p_1.toLowerCase();
|
|
3252
3228
|
// Inline function 'kotlin.text.lowercase' call
|
|
3253
3229
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3254
|
-
var tmp$ret$3 = this.
|
|
3255
|
-
return tmp.
|
|
3230
|
+
var tmp$ret$3 = this.f2p_1.toLowerCase();
|
|
3231
|
+
return tmp.v28([tmp_0, tmp$ret$3]);
|
|
3256
3232
|
};
|
|
3257
3233
|
function Parameterized(authScheme, parameters, encoding) {
|
|
3258
3234
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3259
3235
|
HttpAuthHeader.call(this, authScheme);
|
|
3260
|
-
this.
|
|
3261
|
-
this.
|
|
3236
|
+
this.j2p_1 = parameters;
|
|
3237
|
+
this.k2p_1 = encoding;
|
|
3262
3238
|
// Inline function 'kotlin.collections.forEach' call
|
|
3263
|
-
var
|
|
3264
|
-
while (
|
|
3265
|
-
var element =
|
|
3239
|
+
var _iterator__ex2g4s = this.j2p_1.p();
|
|
3240
|
+
while (_iterator__ex2g4s.q()) {
|
|
3241
|
+
var element = _iterator__ex2g4s.r();
|
|
3266
3242
|
// Inline function 'io.ktor.http.auth.Parameterized.<anonymous>' call
|
|
3243
|
+
var tmp0 = element.x2d_1;
|
|
3267
3244
|
// Inline function 'kotlin.text.matches' call
|
|
3268
|
-
|
|
3269
|
-
if (!get_token68Pattern().ed(this_0)) {
|
|
3245
|
+
if (!get_token68Pattern().nd(tmp0)) {
|
|
3270
3246
|
throw new ParseException('Parameter name should be a token');
|
|
3271
3247
|
}
|
|
3272
3248
|
}
|
|
3273
3249
|
}
|
|
3274
|
-
protoOf(Parameterized).
|
|
3250
|
+
protoOf(Parameterized).l2p = function (encoding) {
|
|
3275
3251
|
var tmp;
|
|
3276
|
-
if (this.
|
|
3277
|
-
tmp = this.
|
|
3252
|
+
if (this.j2p_1.h()) {
|
|
3253
|
+
tmp = this.h2p_1;
|
|
3278
3254
|
} else {
|
|
3279
|
-
var tmp_0 = this.
|
|
3280
|
-
tmp = joinToString(this.
|
|
3255
|
+
var tmp_0 = this.h2p_1 + ' ';
|
|
3256
|
+
tmp = joinToString(this.j2p_1, ', ', tmp_0, VOID, VOID, VOID, HttpAuthHeader$Parameterized$render$lambda(this, encoding));
|
|
3281
3257
|
}
|
|
3282
3258
|
return tmp;
|
|
3283
3259
|
};
|
|
3284
|
-
protoOf(Parameterized).
|
|
3260
|
+
protoOf(Parameterized).q2f = function (name) {
|
|
3261
|
+
var tmp0 = this.j2p_1;
|
|
3285
3262
|
var tmp$ret$1;
|
|
3286
3263
|
$l$block: {
|
|
3287
3264
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3288
|
-
var
|
|
3289
|
-
while (
|
|
3290
|
-
var element =
|
|
3265
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
3266
|
+
while (_iterator__ex2g4s.q()) {
|
|
3267
|
+
var element = _iterator__ex2g4s.r();
|
|
3291
3268
|
// Inline function 'io.ktor.http.auth.Parameterized.parameter.<anonymous>' call
|
|
3292
|
-
if (element.
|
|
3269
|
+
if (element.x2d_1 === name) {
|
|
3293
3270
|
tmp$ret$1 = element;
|
|
3294
3271
|
break $l$block;
|
|
3295
3272
|
}
|
|
@@ -3297,22 +3274,22 @@
|
|
|
3297
3274
|
tmp$ret$1 = null;
|
|
3298
3275
|
}
|
|
3299
3276
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
3300
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3277
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2d_1;
|
|
3301
3278
|
};
|
|
3302
|
-
protoOf(Parameterized).
|
|
3303
|
-
return this.
|
|
3279
|
+
protoOf(Parameterized).g2p = function () {
|
|
3280
|
+
return this.l2p(this.k2p_1);
|
|
3304
3281
|
};
|
|
3305
3282
|
protoOf(Parameterized).equals = function (other) {
|
|
3306
3283
|
if (!(other instanceof Parameterized))
|
|
3307
3284
|
return false;
|
|
3308
|
-
return equals(other.
|
|
3285
|
+
return equals(other.h2p_1, this.h2p_1, true) && equals_0(other.j2p_1, this.j2p_1);
|
|
3309
3286
|
};
|
|
3310
3287
|
protoOf(Parameterized).hashCode = function () {
|
|
3311
3288
|
var tmp = Hash_instance;
|
|
3312
3289
|
// Inline function 'kotlin.text.lowercase' call
|
|
3313
3290
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3314
|
-
var tmp$ret$1 = this.
|
|
3315
|
-
return tmp.
|
|
3291
|
+
var tmp$ret$1 = this.h2p_1.toLowerCase();
|
|
3292
|
+
return tmp.v28([tmp$ret$1, this.j2p_1]);
|
|
3316
3293
|
};
|
|
3317
3294
|
function Companion_9() {
|
|
3318
3295
|
}
|
|
@@ -3321,15 +3298,15 @@
|
|
|
3321
3298
|
return Companion_instance_9;
|
|
3322
3299
|
}
|
|
3323
3300
|
function HttpAuthHeader(authScheme) {
|
|
3324
|
-
this.
|
|
3301
|
+
this.h2p_1 = authScheme;
|
|
3302
|
+
var tmp0 = this.h2p_1;
|
|
3325
3303
|
// Inline function 'kotlin.text.matches' call
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.y2n_1);
|
|
3304
|
+
if (!get_token68Pattern().nd(tmp0)) {
|
|
3305
|
+
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.h2p_1);
|
|
3329
3306
|
}
|
|
3330
3307
|
}
|
|
3331
3308
|
protoOf(HttpAuthHeader).toString = function () {
|
|
3332
|
-
return this.
|
|
3309
|
+
return this.g2p();
|
|
3333
3310
|
};
|
|
3334
3311
|
function parseAuthorizationHeaders(headerValue) {
|
|
3335
3312
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3358,7 +3335,6 @@
|
|
|
3358
3335
|
null;
|
|
3359
3336
|
else {
|
|
3360
3337
|
// Inline function 'kotlin.let' call
|
|
3361
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3362
3338
|
return tmp0_safe_receiver;
|
|
3363
3339
|
}
|
|
3364
3340
|
var token68EndIndex = matchToken68(headerValue, index);
|
|
@@ -3372,7 +3348,6 @@
|
|
|
3372
3348
|
null;
|
|
3373
3349
|
else {
|
|
3374
3350
|
// Inline function 'kotlin.let' call
|
|
3375
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3376
3351
|
return tmp1_safe_receiver;
|
|
3377
3352
|
}
|
|
3378
3353
|
}
|
|
@@ -3493,10 +3468,10 @@
|
|
|
3493
3468
|
}
|
|
3494
3469
|
function unescaped(_this__u8e3s4) {
|
|
3495
3470
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3471
|
+
var tmp1 = get_escapeRegex();
|
|
3496
3472
|
// Inline function 'kotlin.text.replace' call
|
|
3497
|
-
var regex = get_escapeRegex();
|
|
3498
3473
|
var transform = unescaped$lambda;
|
|
3499
|
-
return
|
|
3474
|
+
return tmp1.qd(_this__u8e3s4, transform);
|
|
3500
3475
|
}
|
|
3501
3476
|
function unescaped$lambda(it) {
|
|
3502
3477
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3519,18 +3494,18 @@
|
|
|
3519
3494
|
contentType = contentType === VOID ? null : contentType;
|
|
3520
3495
|
status = status === VOID ? null : status;
|
|
3521
3496
|
ByteArrayContent_0.call(this);
|
|
3522
|
-
this.
|
|
3523
|
-
this.
|
|
3524
|
-
this.
|
|
3497
|
+
this.n2p_1 = bytes;
|
|
3498
|
+
this.o2p_1 = contentType;
|
|
3499
|
+
this.p2p_1 = status;
|
|
3525
3500
|
}
|
|
3526
|
-
protoOf(ByteArrayContent).
|
|
3527
|
-
return this.
|
|
3501
|
+
protoOf(ByteArrayContent).q2p = function () {
|
|
3502
|
+
return this.o2p_1;
|
|
3528
3503
|
};
|
|
3529
|
-
protoOf(ByteArrayContent).
|
|
3530
|
-
return toLong_0(this.
|
|
3504
|
+
protoOf(ByteArrayContent).r2p = function () {
|
|
3505
|
+
return toLong_0(this.n2p_1.length);
|
|
3531
3506
|
};
|
|
3532
|
-
protoOf(ByteArrayContent).
|
|
3533
|
-
return this.
|
|
3507
|
+
protoOf(ByteArrayContent).s2p = function () {
|
|
3508
|
+
return this.n2p_1;
|
|
3534
3509
|
};
|
|
3535
3510
|
function NoContent() {
|
|
3536
3511
|
OutgoingContent.call(this);
|
|
@@ -3547,20 +3522,20 @@
|
|
|
3547
3522
|
}
|
|
3548
3523
|
function ContentWrapper() {
|
|
3549
3524
|
}
|
|
3550
|
-
protoOf(ContentWrapper).
|
|
3551
|
-
return this.
|
|
3525
|
+
protoOf(ContentWrapper).b2q = function () {
|
|
3526
|
+
return this.a2q_1;
|
|
3552
3527
|
};
|
|
3553
3528
|
function OutgoingContent() {
|
|
3554
|
-
this.
|
|
3529
|
+
this.t2p_1 = null;
|
|
3555
3530
|
}
|
|
3556
|
-
protoOf(OutgoingContent).
|
|
3531
|
+
protoOf(OutgoingContent).q2p = function () {
|
|
3557
3532
|
return null;
|
|
3558
3533
|
};
|
|
3559
|
-
protoOf(OutgoingContent).
|
|
3534
|
+
protoOf(OutgoingContent).r2p = function () {
|
|
3560
3535
|
return null;
|
|
3561
3536
|
};
|
|
3562
|
-
protoOf(OutgoingContent).
|
|
3563
|
-
return Companion_getInstance_1().
|
|
3537
|
+
protoOf(OutgoingContent).y2j = function () {
|
|
3538
|
+
return Companion_getInstance_1().r2f_1;
|
|
3564
3539
|
};
|
|
3565
3540
|
function NullBody() {
|
|
3566
3541
|
}
|
|
@@ -3571,40 +3546,40 @@
|
|
|
3571
3546
|
function TextContent(text, contentType, status) {
|
|
3572
3547
|
status = status === VOID ? null : status;
|
|
3573
3548
|
ByteArrayContent_0.call(this);
|
|
3574
|
-
this.
|
|
3575
|
-
this.
|
|
3576
|
-
this.
|
|
3549
|
+
this.d2q_1 = text;
|
|
3550
|
+
this.e2q_1 = contentType;
|
|
3551
|
+
this.f2q_1 = status;
|
|
3577
3552
|
var tmp = this;
|
|
3578
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3579
|
-
tmp.
|
|
3553
|
+
var tmp0_elvis_lhs = charset(this.e2q_1);
|
|
3554
|
+
tmp.g2q_1 = toByteArray(this.d2q_1, tmp0_elvis_lhs == null ? Charsets_getInstance().y1l_1 : tmp0_elvis_lhs);
|
|
3580
3555
|
}
|
|
3581
|
-
protoOf(TextContent).
|
|
3582
|
-
return this.
|
|
3556
|
+
protoOf(TextContent).q2p = function () {
|
|
3557
|
+
return this.e2q_1;
|
|
3583
3558
|
};
|
|
3584
|
-
protoOf(TextContent).
|
|
3585
|
-
return toLong_0(this.
|
|
3559
|
+
protoOf(TextContent).r2p = function () {
|
|
3560
|
+
return toLong_0(this.g2q_1.length);
|
|
3586
3561
|
};
|
|
3587
|
-
protoOf(TextContent).
|
|
3588
|
-
return this.
|
|
3562
|
+
protoOf(TextContent).s2p = function () {
|
|
3563
|
+
return this.g2q_1;
|
|
3589
3564
|
};
|
|
3590
3565
|
protoOf(TextContent).toString = function () {
|
|
3591
|
-
return 'TextContent[' + this.
|
|
3566
|
+
return 'TextContent[' + this.e2q_1.toString() + '] "' + take(this.d2q_1, 30) + '"';
|
|
3592
3567
|
};
|
|
3593
3568
|
function ParseException(message, cause) {
|
|
3594
3569
|
cause = cause === VOID ? null : cause;
|
|
3595
3570
|
IllegalArgumentException_init_$Init$_0(message, cause, this);
|
|
3596
3571
|
captureStack(this, ParseException);
|
|
3597
|
-
this.
|
|
3598
|
-
this.
|
|
3572
|
+
this.h2q_1 = message;
|
|
3573
|
+
this.i2q_1 = cause;
|
|
3599
3574
|
}
|
|
3600
|
-
protoOf(ParseException).t9 = function () {
|
|
3601
|
-
return this.y2o_1;
|
|
3602
|
-
};
|
|
3603
3575
|
protoOf(ParseException).u9 = function () {
|
|
3604
|
-
return this.
|
|
3576
|
+
return this.h2q_1;
|
|
3577
|
+
};
|
|
3578
|
+
protoOf(ParseException).v9 = function () {
|
|
3579
|
+
return this.i2q_1;
|
|
3605
3580
|
};
|
|
3606
3581
|
function get_origin(_this__u8e3s4) {
|
|
3607
|
-
return PlatformUtils_getInstance().
|
|
3582
|
+
return PlatformUtils_getInstance().y28_1 ? locationOrigin() : 'http://localhost';
|
|
3608
3583
|
}
|
|
3609
3584
|
function locationOrigin() {
|
|
3610
3585
|
return function () {
|
|
@@ -3622,14 +3597,14 @@
|
|
|
3622
3597
|
}();
|
|
3623
3598
|
}
|
|
3624
3599
|
//region block: post-declaration
|
|
3625
|
-
protoOf(EmptyHeaders).
|
|
3626
|
-
protoOf(EmptyHeaders).
|
|
3627
|
-
protoOf(EmptyParameters).
|
|
3600
|
+
protoOf(EmptyHeaders).c28 = get;
|
|
3601
|
+
protoOf(EmptyHeaders).k29 = forEach;
|
|
3602
|
+
protoOf(EmptyParameters).k29 = forEach;
|
|
3628
3603
|
defineProp(protoOf(ParseException), 'message', function () {
|
|
3629
|
-
return this.
|
|
3604
|
+
return this.u9();
|
|
3630
3605
|
});
|
|
3631
3606
|
defineProp(protoOf(ParseException), 'cause', function () {
|
|
3632
|
-
return this.
|
|
3607
|
+
return this.v9();
|
|
3633
3608
|
});
|
|
3634
3609
|
//endregion
|
|
3635
3610
|
//region block: init
|
|
@@ -3689,5 +3664,3 @@
|
|
|
3689
3664
|
//endregion
|
|
3690
3665
|
return _;
|
|
3691
3666
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-utils.js')));
|
|
3692
|
-
|
|
3693
|
-
//# sourceMappingURL=ktor-ktor-http.js.map
|