@dmarket/p2p-tracker-core 1.0.0-beta.1 → 1.0.1-beta
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/dmarket-p2p-tracker-core-domain.mjs +2806 -2572
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +13 -22
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +30 -30
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +470 -450
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +1906 -1915
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +619 -599
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +741 -655
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +622 -622
- package/ktor-ktor-websockets.mjs +474 -418
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +5 -2
- package/p2p-tracker-core.mjs +6892 -5681
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-http.mjs
CHANGED
|
@@ -224,26 +224,26 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
224
224
|
// Inline function 'kotlin.text.buildString' call
|
|
225
225
|
// Inline function 'kotlin.apply' call
|
|
226
226
|
var this_0 = StringBuilder_init_$Create$();
|
|
227
|
-
var content = encode(Charsets_getInstance().
|
|
227
|
+
var content = encode(Charsets_getInstance().g3u_1.j3u(), _this__u8e3s4);
|
|
228
228
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
229
229
|
return this_0.toString();
|
|
230
230
|
}
|
|
231
231
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
232
232
|
start = start === VOID ? 0 : start;
|
|
233
233
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
234
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
234
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
235
235
|
_init_properties_Codecs_kt__fudxxf();
|
|
236
236
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
237
237
|
}
|
|
238
238
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
239
239
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
240
240
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
241
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
241
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
242
242
|
_init_properties_Codecs_kt__fudxxf();
|
|
243
243
|
// Inline function 'kotlin.text.buildString' call
|
|
244
244
|
// Inline function 'kotlin.apply' call
|
|
245
245
|
var this_0 = StringBuilder_init_$Create$();
|
|
246
|
-
var content = encode(charset.
|
|
246
|
+
var content = encode(charset.j3u(), _this__u8e3s4);
|
|
247
247
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
248
248
|
return this_0.toString();
|
|
249
249
|
}
|
|
@@ -251,7 +251,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
251
251
|
start = start === VOID ? 0 : start;
|
|
252
252
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
253
253
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
254
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
254
|
+
charset = charset === VOID ? Charsets_getInstance().g3u_1 : charset;
|
|
255
255
|
_init_properties_Codecs_kt__fudxxf();
|
|
256
256
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
257
257
|
}
|
|
@@ -302,7 +302,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
302
302
|
// Inline function 'kotlin.text.buildString' call
|
|
303
303
|
// Inline function 'kotlin.apply' call
|
|
304
304
|
var this_0 = StringBuilder_init_$Create$();
|
|
305
|
-
var charset = Charsets_getInstance().
|
|
305
|
+
var charset = Charsets_getInstance().g3u_1;
|
|
306
306
|
var index = 0;
|
|
307
307
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
308
308
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
@@ -319,7 +319,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
319
319
|
continue $l$loop_0;
|
|
320
320
|
}
|
|
321
321
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
322
|
-
var tmp = encode(charset.
|
|
322
|
+
var tmp = encode(charset.j3u(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
323
323
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
324
324
|
index = index + symbolSize | 0;
|
|
325
325
|
}
|
|
@@ -428,7 +428,7 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
428
428
|
function forEach$lambda($block) {
|
|
429
429
|
return function (buffer) {
|
|
430
430
|
while (canRead(buffer)) {
|
|
431
|
-
$block(buffer.
|
|
431
|
+
$block(buffer.s3f());
|
|
432
432
|
}
|
|
433
433
|
return true;
|
|
434
434
|
};
|
|
@@ -502,18 +502,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
502
502
|
}
|
|
503
503
|
function hasParameter($this, name, value) {
|
|
504
504
|
var tmp;
|
|
505
|
-
switch ($this.
|
|
505
|
+
switch ($this.n42_1.e1()) {
|
|
506
506
|
case 0:
|
|
507
507
|
tmp = false;
|
|
508
508
|
break;
|
|
509
509
|
case 1:
|
|
510
510
|
// Inline function 'kotlin.let' call
|
|
511
511
|
|
|
512
|
-
var it = $this.
|
|
513
|
-
tmp = (equals(it.
|
|
512
|
+
var it = $this.n42_1.f1(0);
|
|
513
|
+
tmp = (equals(it.o42_1, name, true) && equals(it.p42_1, value, true));
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
var tmp0 = $this.
|
|
516
|
+
var tmp0 = $this.n42_1;
|
|
517
517
|
var tmp$ret$2;
|
|
518
518
|
$l$block_0: {
|
|
519
519
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -530,7 +530,7 @@ function hasParameter($this, name, value) {
|
|
|
530
530
|
var _iterator__ex2g4s = tmp0.t();
|
|
531
531
|
while (_iterator__ex2g4s.u()) {
|
|
532
532
|
var element = _iterator__ex2g4s.v();
|
|
533
|
-
if (equals(element.
|
|
533
|
+
if (equals(element.o42_1, name, true) && equals(element.p42_1, value, true)) {
|
|
534
534
|
tmp$ret$2 = true;
|
|
535
535
|
break $l$block_0;
|
|
536
536
|
}
|
|
@@ -545,20 +545,20 @@ function hasParameter($this, name, value) {
|
|
|
545
545
|
}
|
|
546
546
|
function Companion() {
|
|
547
547
|
Companion_instance = this;
|
|
548
|
-
this.
|
|
548
|
+
this.r42_1 = ContentType_init_$Create$('*', '*');
|
|
549
549
|
}
|
|
550
550
|
protoOf(Companion).ho = function (value) {
|
|
551
551
|
if (isBlank(value))
|
|
552
|
-
return this.
|
|
552
|
+
return this.r42_1;
|
|
553
553
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
554
554
|
var headerValue = last(parseHeaderValue(value));
|
|
555
|
-
var tmp0 = headerValue.
|
|
556
|
-
var parameters = headerValue.
|
|
555
|
+
var tmp0 = headerValue.s42_1;
|
|
556
|
+
var parameters = headerValue.t42_1;
|
|
557
557
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
558
558
|
if (slash === -1) {
|
|
559
559
|
// Inline function 'kotlin.text.trim' call
|
|
560
560
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
561
|
-
return Companion_getInstance().
|
|
561
|
+
return Companion_getInstance().r42_1;
|
|
562
562
|
throw new BadContentTypeFormatException(value);
|
|
563
563
|
}
|
|
564
564
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -594,30 +594,30 @@ function Companion_getInstance() {
|
|
|
594
594
|
}
|
|
595
595
|
function Application() {
|
|
596
596
|
Application_instance = this;
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
597
|
+
this.v42_1 = 'application';
|
|
598
|
+
this.w42_1 = ContentType_init_$Create$('application', '*');
|
|
599
|
+
this.x42_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
600
|
+
this.y42_1 = ContentType_init_$Create$('application', 'cbor');
|
|
601
|
+
this.z42_1 = ContentType_init_$Create$('application', 'json');
|
|
602
|
+
this.a43_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
603
|
+
this.b43_1 = ContentType_init_$Create$('application', 'javascript');
|
|
604
|
+
this.c43_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
605
|
+
this.d43_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
606
|
+
this.e43_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
607
|
+
this.f43_1 = ContentType_init_$Create$('application', 'xml');
|
|
608
|
+
this.g43_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
609
|
+
this.h43_1 = ContentType_init_$Create$('application', 'yaml');
|
|
610
|
+
this.i43_1 = ContentType_init_$Create$('application', 'zip');
|
|
611
|
+
this.j43_1 = ContentType_init_$Create$('application', 'gzip');
|
|
612
|
+
this.k43_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
613
|
+
this.l43_1 = ContentType_init_$Create$('application', 'pdf');
|
|
614
|
+
this.m43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
615
|
+
this.n43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
616
|
+
this.o43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
617
|
+
this.p43_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
618
|
+
this.q43_1 = ContentType_init_$Create$('application', 'wasm');
|
|
619
|
+
this.r43_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
620
|
+
this.s43_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
621
621
|
}
|
|
622
622
|
var Application_instance;
|
|
623
623
|
function Application_getInstance() {
|
|
@@ -627,17 +627,17 @@ function Application_getInstance() {
|
|
|
627
627
|
}
|
|
628
628
|
function MultiPart() {
|
|
629
629
|
MultiPart_instance = this;
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
}
|
|
640
|
-
protoOf(MultiPart).
|
|
630
|
+
this.t43_1 = 'multipart';
|
|
631
|
+
this.u43_1 = ContentType_init_$Create$('multipart', '*');
|
|
632
|
+
this.v43_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
633
|
+
this.w43_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
634
|
+
this.x43_1 = ContentType_init_$Create$('multipart', 'related');
|
|
635
|
+
this.y43_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
636
|
+
this.z43_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
637
|
+
this.a44_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
638
|
+
this.b44_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
639
|
+
}
|
|
640
|
+
protoOf(MultiPart).c44 = function (contentType) {
|
|
641
641
|
return startsWith(contentType, 'multipart/', true);
|
|
642
642
|
};
|
|
643
643
|
var MultiPart_instance;
|
|
@@ -648,16 +648,16 @@ function MultiPart_getInstance() {
|
|
|
648
648
|
}
|
|
649
649
|
function Text() {
|
|
650
650
|
Text_instance = this;
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
651
|
+
this.d44_1 = 'text';
|
|
652
|
+
this.e44_1 = ContentType_init_$Create$('text', '*');
|
|
653
|
+
this.f44_1 = ContentType_init_$Create$('text', 'plain');
|
|
654
|
+
this.g44_1 = ContentType_init_$Create$('text', 'css');
|
|
655
|
+
this.h44_1 = ContentType_init_$Create$('text', 'csv');
|
|
656
|
+
this.i44_1 = ContentType_init_$Create$('text', 'html');
|
|
657
|
+
this.j44_1 = ContentType_init_$Create$('text', 'javascript');
|
|
658
|
+
this.k44_1 = ContentType_init_$Create$('text', 'vcard');
|
|
659
|
+
this.l44_1 = ContentType_init_$Create$('text', 'xml');
|
|
660
|
+
this.m44_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
661
661
|
}
|
|
662
662
|
var Text_instance;
|
|
663
663
|
function Text_getInstance() {
|
|
@@ -669,22 +669,22 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
669
669
|
Companion_getInstance();
|
|
670
670
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
671
671
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
672
|
+
this.p44_1 = contentType;
|
|
673
|
+
this.q44_1 = contentSubtype;
|
|
674
674
|
}
|
|
675
|
-
protoOf(ContentType).
|
|
675
|
+
protoOf(ContentType).r44 = function (name, value) {
|
|
676
676
|
if (hasParameter(this, name, value))
|
|
677
677
|
return this;
|
|
678
|
-
return new ContentType(this.
|
|
678
|
+
return new ContentType(this.p44_1, this.q44_1, this.m42_1, plus_2(this.n42_1, HeaderValueParam_init_$Create$(name, value)));
|
|
679
679
|
};
|
|
680
|
-
protoOf(ContentType).
|
|
681
|
-
if (!(pattern.
|
|
680
|
+
protoOf(ContentType).s44 = function (pattern) {
|
|
681
|
+
if (!(pattern.p44_1 === '*') && !equals(pattern.p44_1, this.p44_1, true)) {
|
|
682
682
|
return false;
|
|
683
683
|
}
|
|
684
|
-
if (!(pattern.
|
|
684
|
+
if (!(pattern.q44_1 === '*') && !equals(pattern.q44_1, this.q44_1, true)) {
|
|
685
685
|
return false;
|
|
686
686
|
}
|
|
687
|
-
var _iterator__ex2g4s = pattern.
|
|
687
|
+
var _iterator__ex2g4s = pattern.n42_1.t();
|
|
688
688
|
while (_iterator__ex2g4s.u()) {
|
|
689
689
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
690
690
|
var patternName = _destruct__k2r9zo.xg();
|
|
@@ -695,7 +695,7 @@ protoOf(ContentType).u43 = function (pattern) {
|
|
|
695
695
|
if (patternValue === '*') {
|
|
696
696
|
tmp_0 = true;
|
|
697
697
|
} else {
|
|
698
|
-
var tmp0 = this.
|
|
698
|
+
var tmp0 = this.n42_1;
|
|
699
699
|
var tmp$ret$0;
|
|
700
700
|
$l$block_0: {
|
|
701
701
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -712,7 +712,7 @@ protoOf(ContentType).u43 = function (pattern) {
|
|
|
712
712
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
713
713
|
while (_iterator__ex2g4s_0.u()) {
|
|
714
714
|
var element = _iterator__ex2g4s_0.v();
|
|
715
|
-
if (equals(element.
|
|
715
|
+
if (equals(element.p42_1, patternValue, true)) {
|
|
716
716
|
tmp$ret$0 = true;
|
|
717
717
|
break $l$block_0;
|
|
718
718
|
}
|
|
@@ -723,7 +723,7 @@ protoOf(ContentType).u43 = function (pattern) {
|
|
|
723
723
|
}
|
|
724
724
|
tmp = tmp_0;
|
|
725
725
|
} else {
|
|
726
|
-
var value = this.
|
|
726
|
+
var value = this.t44(patternName);
|
|
727
727
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
728
728
|
}
|
|
729
729
|
var matches = tmp;
|
|
@@ -738,17 +738,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
738
738
|
var tmp_0;
|
|
739
739
|
var tmp_1;
|
|
740
740
|
if (other instanceof ContentType) {
|
|
741
|
-
tmp_1 = equals(this.
|
|
741
|
+
tmp_1 = equals(this.p44_1, other.p44_1, true);
|
|
742
742
|
} else {
|
|
743
743
|
tmp_1 = false;
|
|
744
744
|
}
|
|
745
745
|
if (tmp_1) {
|
|
746
|
-
tmp_0 = equals(this.
|
|
746
|
+
tmp_0 = equals(this.q44_1, other.q44_1, true);
|
|
747
747
|
} else {
|
|
748
748
|
tmp_0 = false;
|
|
749
749
|
}
|
|
750
750
|
if (tmp_0) {
|
|
751
|
-
tmp = equals_0(this.
|
|
751
|
+
tmp = equals_0(this.n42_1, other.n42_1);
|
|
752
752
|
} else {
|
|
753
753
|
tmp = false;
|
|
754
754
|
}
|
|
@@ -757,20 +757,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
757
757
|
protoOf(ContentType).hashCode = function () {
|
|
758
758
|
// Inline function 'kotlin.text.lowercase' call
|
|
759
759
|
// Inline function 'kotlin.js.asDynamic' call
|
|
760
|
-
var tmp$ret$0 = this.
|
|
760
|
+
var tmp$ret$0 = this.p44_1.toLowerCase();
|
|
761
761
|
var result = getStringHashCode(tmp$ret$0);
|
|
762
762
|
var tmp = result;
|
|
763
763
|
var tmp_0 = imul(31, result);
|
|
764
764
|
// Inline function 'kotlin.text.lowercase' call
|
|
765
765
|
// Inline function 'kotlin.js.asDynamic' call
|
|
766
|
-
var tmp$ret$2 = this.
|
|
766
|
+
var tmp$ret$2 = this.q44_1.toLowerCase();
|
|
767
767
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
768
|
-
result = result + imul(31, hashCode(this.
|
|
768
|
+
result = result + imul(31, hashCode(this.n42_1)) | 0;
|
|
769
769
|
return result;
|
|
770
770
|
};
|
|
771
771
|
function charset(_this__u8e3s4) {
|
|
772
772
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
773
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
773
|
+
var tmp0_safe_receiver = _this__u8e3s4.t44('charset');
|
|
774
774
|
var tmp;
|
|
775
775
|
if (tmp0_safe_receiver == null) {
|
|
776
776
|
tmp = null;
|
|
@@ -795,7 +795,7 @@ function charset(_this__u8e3s4) {
|
|
|
795
795
|
}
|
|
796
796
|
function withCharset(_this__u8e3s4, charset) {
|
|
797
797
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
798
|
-
return _this__u8e3s4.
|
|
798
|
+
return _this__u8e3s4.r44('charset', get_name(charset));
|
|
799
799
|
}
|
|
800
800
|
function BadContentTypeFormatException(value) {
|
|
801
801
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
@@ -821,19 +821,19 @@ function Companion_getInstance_0() {
|
|
|
821
821
|
}
|
|
822
822
|
function HeaderValueWithParameters(content, parameters) {
|
|
823
823
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
824
|
+
this.m42_1 = content;
|
|
825
|
+
this.n42_1 = parameters;
|
|
826
826
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
827
|
+
protoOf(HeaderValueWithParameters).t44 = function (name) {
|
|
828
828
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
829
|
+
var last = get_lastIndex(this.n42_1);
|
|
830
830
|
if (inductionVariable <= last)
|
|
831
831
|
do {
|
|
832
832
|
var index = inductionVariable;
|
|
833
833
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var parameter = this.
|
|
835
|
-
if (equals(parameter.
|
|
836
|
-
return parameter.
|
|
834
|
+
var parameter = this.n42_1.f1(index);
|
|
835
|
+
if (equals(parameter.o42_1, name, true)) {
|
|
836
|
+
return parameter.p42_1;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
while (!(index === last));
|
|
@@ -841,34 +841,34 @@ protoOf(HeaderValueWithParameters).v43 = function (name) {
|
|
|
841
841
|
};
|
|
842
842
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
843
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
844
|
+
if (this.n42_1.r()) {
|
|
845
|
+
tmp = this.m42_1;
|
|
846
846
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
847
|
+
var tmp_0 = this.m42_1.length;
|
|
848
848
|
// Inline function 'kotlin.collections.sumOf' call
|
|
849
849
|
var sum = 0;
|
|
850
|
-
var _iterator__ex2g4s = this.
|
|
850
|
+
var _iterator__ex2g4s = this.n42_1.t();
|
|
851
851
|
while (_iterator__ex2g4s.u()) {
|
|
852
852
|
var element = _iterator__ex2g4s.v();
|
|
853
853
|
var tmp_1 = sum;
|
|
854
|
-
sum = tmp_1 + ((element.
|
|
854
|
+
sum = tmp_1 + ((element.o42_1.length + element.p42_1.length | 0) + 3 | 0) | 0;
|
|
855
855
|
}
|
|
856
856
|
var size = tmp_0 + sum | 0;
|
|
857
857
|
// Inline function 'kotlin.apply' call
|
|
858
858
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
859
|
-
this_0.q(this.
|
|
859
|
+
this_0.q(this.m42_1);
|
|
860
860
|
var inductionVariable = 0;
|
|
861
|
-
var last = get_lastIndex(this.
|
|
861
|
+
var last = get_lastIndex(this.n42_1);
|
|
862
862
|
if (inductionVariable <= last)
|
|
863
863
|
do {
|
|
864
864
|
var index = inductionVariable;
|
|
865
865
|
inductionVariable = inductionVariable + 1 | 0;
|
|
866
|
-
var element_0 = this.
|
|
866
|
+
var element_0 = this.n42_1.f1(index);
|
|
867
867
|
this_0.q('; ');
|
|
868
|
-
this_0.q(element_0.
|
|
868
|
+
this_0.q(element_0.o42_1);
|
|
869
869
|
this_0.q('=');
|
|
870
870
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
871
|
-
var this_1 = element_0.
|
|
871
|
+
var this_1 = element_0.p42_1;
|
|
872
872
|
if (needQuotes(this_1))
|
|
873
873
|
this_0.q(quote(this_1));
|
|
874
874
|
else
|
|
@@ -967,20 +967,20 @@ function HeadersBuilder(size) {
|
|
|
967
967
|
size = size === VOID ? 8 : size;
|
|
968
968
|
StringValuesBuilderImpl.call(this, true, size);
|
|
969
969
|
}
|
|
970
|
-
protoOf(HeadersBuilder).
|
|
971
|
-
return new HeadersImpl(this.
|
|
970
|
+
protoOf(HeadersBuilder).w44 = function () {
|
|
971
|
+
return new HeadersImpl(this.o3x_1);
|
|
972
972
|
};
|
|
973
|
-
protoOf(HeadersBuilder).
|
|
974
|
-
protoOf(StringValuesBuilderImpl).
|
|
975
|
-
HttpHeaders_getInstance().
|
|
973
|
+
protoOf(HeadersBuilder).p3x = function (name) {
|
|
974
|
+
protoOf(StringValuesBuilderImpl).p3x.call(this, name);
|
|
975
|
+
HttpHeaders_getInstance().w48(name);
|
|
976
976
|
};
|
|
977
|
-
protoOf(HeadersBuilder).
|
|
978
|
-
protoOf(StringValuesBuilderImpl).
|
|
979
|
-
HttpHeaders_getInstance().
|
|
977
|
+
protoOf(HeadersBuilder).u3x = function (value) {
|
|
978
|
+
protoOf(StringValuesBuilderImpl).u3x.call(this, value);
|
|
979
|
+
HttpHeaders_getInstance().x48(value);
|
|
980
980
|
};
|
|
981
981
|
function Companion_1() {
|
|
982
982
|
Companion_instance_1 = this;
|
|
983
|
-
this.
|
|
983
|
+
this.y48_1 = EmptyHeaders_instance;
|
|
984
984
|
}
|
|
985
985
|
var Companion_instance_1;
|
|
986
986
|
function Companion_getInstance_1() {
|
|
@@ -996,27 +996,27 @@ function HeadersImpl(values) {
|
|
|
996
996
|
StringValuesImpl.call(this, true, values);
|
|
997
997
|
}
|
|
998
998
|
protoOf(HeadersImpl).toString = function () {
|
|
999
|
-
return 'Headers ' + toString(this.
|
|
999
|
+
return 'Headers ' + toString(this.l3x());
|
|
1000
1000
|
};
|
|
1001
1001
|
function EmptyHeaders() {
|
|
1002
1002
|
}
|
|
1003
|
-
protoOf(EmptyHeaders).
|
|
1003
|
+
protoOf(EmptyHeaders).q3x = function () {
|
|
1004
1004
|
return true;
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(EmptyHeaders).
|
|
1006
|
+
protoOf(EmptyHeaders).r3x = function (name) {
|
|
1007
1007
|
return null;
|
|
1008
1008
|
};
|
|
1009
|
-
protoOf(EmptyHeaders).
|
|
1009
|
+
protoOf(EmptyHeaders).s3x = function () {
|
|
1010
1010
|
return emptySet();
|
|
1011
1011
|
};
|
|
1012
|
-
protoOf(EmptyHeaders).
|
|
1012
|
+
protoOf(EmptyHeaders).l3x = function () {
|
|
1013
1013
|
return emptySet();
|
|
1014
1014
|
};
|
|
1015
1015
|
protoOf(EmptyHeaders).r = function () {
|
|
1016
1016
|
return true;
|
|
1017
1017
|
};
|
|
1018
1018
|
protoOf(EmptyHeaders).toString = function () {
|
|
1019
|
-
return 'Headers ' + toString(this.
|
|
1019
|
+
return 'Headers ' + toString(this.l3x());
|
|
1020
1020
|
};
|
|
1021
1021
|
var EmptyHeaders_instance;
|
|
1022
1022
|
function EmptyHeaders_getInstance() {
|
|
@@ -1026,7 +1026,7 @@ function HeadersSingleImpl(name, values) {
|
|
|
1026
1026
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1027
1027
|
}
|
|
1028
1028
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1029
|
-
return 'Headers ' + toString(this.
|
|
1029
|
+
return 'Headers ' + toString(this.l3x());
|
|
1030
1030
|
};
|
|
1031
1031
|
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1032
1032
|
HeaderValueParam.call($this, name, value, false);
|
|
@@ -1036,20 +1036,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1036
1036
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1037
1037
|
}
|
|
1038
1038
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1039
|
-
this.
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1039
|
+
this.o42_1 = name;
|
|
1040
|
+
this.p42_1 = value;
|
|
1041
|
+
this.q42_1 = escapeValue;
|
|
1042
1042
|
}
|
|
1043
1043
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1044
1044
|
var tmp;
|
|
1045
1045
|
var tmp_0;
|
|
1046
1046
|
if (other instanceof HeaderValueParam) {
|
|
1047
|
-
tmp_0 = equals(other.
|
|
1047
|
+
tmp_0 = equals(other.o42_1, this.o42_1, true);
|
|
1048
1048
|
} else {
|
|
1049
1049
|
tmp_0 = false;
|
|
1050
1050
|
}
|
|
1051
1051
|
if (tmp_0) {
|
|
1052
|
-
tmp = equals(other.
|
|
1052
|
+
tmp = equals(other.p42_1, this.p42_1, true);
|
|
1053
1053
|
} else {
|
|
1054
1054
|
tmp = false;
|
|
1055
1055
|
}
|
|
@@ -1058,38 +1058,38 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1058
1058
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1059
1059
|
// Inline function 'kotlin.text.lowercase' call
|
|
1060
1060
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1061
|
-
var tmp$ret$0 = this.
|
|
1061
|
+
var tmp$ret$0 = this.o42_1.toLowerCase();
|
|
1062
1062
|
var result = getStringHashCode(tmp$ret$0);
|
|
1063
1063
|
var tmp = result;
|
|
1064
1064
|
var tmp_0 = imul(31, result);
|
|
1065
1065
|
// Inline function 'kotlin.text.lowercase' call
|
|
1066
1066
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1067
|
-
var tmp$ret$2 = this.
|
|
1067
|
+
var tmp$ret$2 = this.p42_1.toLowerCase();
|
|
1068
1068
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1069
1069
|
return result;
|
|
1070
1070
|
};
|
|
1071
1071
|
protoOf(HeaderValueParam).xg = function () {
|
|
1072
|
-
return this.
|
|
1072
|
+
return this.o42_1;
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(HeaderValueParam).yg = function () {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.p42_1;
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(HeaderValueParam).toString = function () {
|
|
1078
|
-
return 'HeaderValueParam(name=' + this.
|
|
1078
|
+
return 'HeaderValueParam(name=' + this.o42_1 + ', value=' + this.p42_1 + ', escapeValue=' + this.q42_1 + ')';
|
|
1079
1079
|
};
|
|
1080
1080
|
function HeaderValue(value, params) {
|
|
1081
1081
|
params = params === VOID ? emptyList() : params;
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1082
|
+
this.s42_1 = value;
|
|
1083
|
+
this.t42_1 = params;
|
|
1084
1084
|
var tmp = this;
|
|
1085
|
-
var tmp0 = this.
|
|
1085
|
+
var tmp0 = this.t42_1;
|
|
1086
1086
|
var tmp$ret$0;
|
|
1087
1087
|
$l$block: {
|
|
1088
1088
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1089
1089
|
var _iterator__ex2g4s = tmp0.t();
|
|
1090
1090
|
while (_iterator__ex2g4s.u()) {
|
|
1091
1091
|
var element = _iterator__ex2g4s.v();
|
|
1092
|
-
if (element.
|
|
1092
|
+
if (element.o42_1 === 'q') {
|
|
1093
1093
|
tmp$ret$0 = element;
|
|
1094
1094
|
break $l$block;
|
|
1095
1095
|
}
|
|
@@ -1097,7 +1097,7 @@ function HeaderValue(value, params) {
|
|
|
1097
1097
|
tmp$ret$0 = null;
|
|
1098
1098
|
}
|
|
1099
1099
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1100
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1100
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p42_1;
|
|
1101
1101
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1102
1102
|
var tmp_0;
|
|
1103
1103
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1113,14 +1113,14 @@ function HeaderValue(value, params) {
|
|
|
1113
1113
|
tmp_0 = tmp_1;
|
|
1114
1114
|
}
|
|
1115
1115
|
var tmp3_elvis_lhs = tmp_0;
|
|
1116
|
-
tmp.
|
|
1116
|
+
tmp.u42_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1117
1117
|
}
|
|
1118
1118
|
protoOf(HeaderValue).toString = function () {
|
|
1119
|
-
return 'HeaderValue(value=' + this.
|
|
1119
|
+
return 'HeaderValue(value=' + this.s42_1 + ', params=' + toString(this.t42_1) + ')';
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(HeaderValue).hashCode = function () {
|
|
1122
|
-
var result = getStringHashCode(this.
|
|
1123
|
-
result = imul(result, 31) + hashCode(this.
|
|
1122
|
+
var result = getStringHashCode(this.s42_1);
|
|
1123
|
+
result = imul(result, 31) + hashCode(this.t42_1) | 0;
|
|
1124
1124
|
return result;
|
|
1125
1125
|
};
|
|
1126
1126
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1128,9 +1128,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1128
1128
|
return true;
|
|
1129
1129
|
if (!(other instanceof HeaderValue))
|
|
1130
1130
|
return false;
|
|
1131
|
-
if (!(this.
|
|
1131
|
+
if (!(this.s42_1 === other.s42_1))
|
|
1132
1132
|
return false;
|
|
1133
|
-
if (!equals_0(this.
|
|
1133
|
+
if (!equals_0(this.t42_1, other.t42_1))
|
|
1134
1134
|
return false;
|
|
1135
1135
|
return true;
|
|
1136
1136
|
};
|
|
@@ -1273,115 +1273,115 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1273
1273
|
}
|
|
1274
1274
|
function HttpHeaders() {
|
|
1275
1275
|
HttpHeaders_instance = this;
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
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.
|
|
1276
|
+
this.x44_1 = 'Accept';
|
|
1277
|
+
this.y44_1 = 'Accept-Charset';
|
|
1278
|
+
this.z44_1 = 'Accept-Encoding';
|
|
1279
|
+
this.a45_1 = 'Accept-Language';
|
|
1280
|
+
this.b45_1 = 'Accept-Ranges';
|
|
1281
|
+
this.c45_1 = 'Age';
|
|
1282
|
+
this.d45_1 = 'Allow';
|
|
1283
|
+
this.e45_1 = 'ALPN';
|
|
1284
|
+
this.f45_1 = 'Authentication-Info';
|
|
1285
|
+
this.g45_1 = 'Authorization';
|
|
1286
|
+
this.h45_1 = 'Cache-Control';
|
|
1287
|
+
this.i45_1 = 'Connection';
|
|
1288
|
+
this.j45_1 = 'Content-Disposition';
|
|
1289
|
+
this.k45_1 = 'Content-Encoding';
|
|
1290
|
+
this.l45_1 = 'Content-Language';
|
|
1291
|
+
this.m45_1 = 'Content-Length';
|
|
1292
|
+
this.n45_1 = 'Content-Location';
|
|
1293
|
+
this.o45_1 = 'Content-Range';
|
|
1294
|
+
this.p45_1 = 'Content-Type';
|
|
1295
|
+
this.q45_1 = 'Cookie';
|
|
1296
|
+
this.r45_1 = 'DASL';
|
|
1297
|
+
this.s45_1 = 'Date';
|
|
1298
|
+
this.t45_1 = 'DAV';
|
|
1299
|
+
this.u45_1 = 'Depth';
|
|
1300
|
+
this.v45_1 = 'Destination';
|
|
1301
|
+
this.w45_1 = 'ETag';
|
|
1302
|
+
this.x45_1 = 'Expect';
|
|
1303
|
+
this.y45_1 = 'Expires';
|
|
1304
|
+
this.z45_1 = 'From';
|
|
1305
|
+
this.a46_1 = 'Forwarded';
|
|
1306
|
+
this.b46_1 = 'Host';
|
|
1307
|
+
this.c46_1 = 'HTTP2-Settings';
|
|
1308
|
+
this.d46_1 = 'If';
|
|
1309
|
+
this.e46_1 = 'If-Match';
|
|
1310
|
+
this.f46_1 = 'If-Modified-Since';
|
|
1311
|
+
this.g46_1 = 'If-None-Match';
|
|
1312
|
+
this.h46_1 = 'If-Range';
|
|
1313
|
+
this.i46_1 = 'If-Schedule-Tag-Match';
|
|
1314
|
+
this.j46_1 = 'If-Unmodified-Since';
|
|
1315
|
+
this.k46_1 = 'Last-Modified';
|
|
1316
|
+
this.l46_1 = 'Location';
|
|
1317
|
+
this.m46_1 = 'Lock-Token';
|
|
1318
|
+
this.n46_1 = 'Link';
|
|
1319
|
+
this.o46_1 = 'Max-Forwards';
|
|
1320
|
+
this.p46_1 = 'MIME-Version';
|
|
1321
|
+
this.q46_1 = 'Ordering-Type';
|
|
1322
|
+
this.r46_1 = 'Origin';
|
|
1323
|
+
this.s46_1 = 'Overwrite';
|
|
1324
|
+
this.t46_1 = 'Position';
|
|
1325
|
+
this.u46_1 = 'Pragma';
|
|
1326
|
+
this.v46_1 = 'Prefer';
|
|
1327
|
+
this.w46_1 = 'Preference-Applied';
|
|
1328
|
+
this.x46_1 = 'Proxy-Authenticate';
|
|
1329
|
+
this.y46_1 = 'Proxy-Authentication-Info';
|
|
1330
|
+
this.z46_1 = 'Proxy-Authorization';
|
|
1331
|
+
this.a47_1 = 'Public-Key-Pins';
|
|
1332
|
+
this.b47_1 = 'Public-Key-Pins-Report-Only';
|
|
1333
|
+
this.c47_1 = 'Range';
|
|
1334
|
+
this.d47_1 = 'Referer';
|
|
1335
|
+
this.e47_1 = 'Retry-After';
|
|
1336
|
+
this.f47_1 = 'Schedule-Reply';
|
|
1337
|
+
this.g47_1 = 'Schedule-Tag';
|
|
1338
|
+
this.h47_1 = 'Sec-WebSocket-Accept';
|
|
1339
|
+
this.i47_1 = 'Sec-WebSocket-Extensions';
|
|
1340
|
+
this.j47_1 = 'Sec-WebSocket-Key';
|
|
1341
|
+
this.k47_1 = 'Sec-WebSocket-Protocol';
|
|
1342
|
+
this.l47_1 = 'Sec-WebSocket-Version';
|
|
1343
|
+
this.m47_1 = 'Server';
|
|
1344
|
+
this.n47_1 = 'Set-Cookie';
|
|
1345
|
+
this.o47_1 = 'SLUG';
|
|
1346
|
+
this.p47_1 = 'Strict-Transport-Security';
|
|
1347
|
+
this.q47_1 = 'TE';
|
|
1348
|
+
this.r47_1 = 'Timeout';
|
|
1349
|
+
this.s47_1 = 'Trailer';
|
|
1350
|
+
this.t47_1 = 'Transfer-Encoding';
|
|
1351
|
+
this.u47_1 = 'Upgrade';
|
|
1352
|
+
this.v47_1 = 'User-Agent';
|
|
1353
|
+
this.w47_1 = 'Vary';
|
|
1354
|
+
this.x47_1 = 'Via';
|
|
1355
|
+
this.y47_1 = 'Warning';
|
|
1356
|
+
this.z47_1 = 'WWW-Authenticate';
|
|
1357
|
+
this.a48_1 = 'Access-Control-Allow-Origin';
|
|
1358
|
+
this.b48_1 = 'Access-Control-Allow-Methods';
|
|
1359
|
+
this.c48_1 = 'Access-Control-Allow-Credentials';
|
|
1360
|
+
this.d48_1 = 'Access-Control-Allow-Headers';
|
|
1361
|
+
this.e48_1 = 'Access-Control-Request-Method';
|
|
1362
|
+
this.f48_1 = 'Access-Control-Request-Headers';
|
|
1363
|
+
this.g48_1 = 'Access-Control-Expose-Headers';
|
|
1364
|
+
this.h48_1 = 'Access-Control-Max-Age';
|
|
1365
|
+
this.i48_1 = 'X-Http-Method-Override';
|
|
1366
|
+
this.j48_1 = 'X-Forwarded-Host';
|
|
1367
|
+
this.k48_1 = 'X-Forwarded-Server';
|
|
1368
|
+
this.l48_1 = 'X-Forwarded-Proto';
|
|
1369
|
+
this.m48_1 = 'X-Forwarded-For';
|
|
1370
|
+
this.n48_1 = 'X-Forwarded-Port';
|
|
1371
|
+
this.o48_1 = 'X-Request-ID';
|
|
1372
|
+
this.p48_1 = 'X-Correlation-ID';
|
|
1373
|
+
this.q48_1 = 'X-Total-Count';
|
|
1374
|
+
this.r48_1 = 'Last-Event-ID';
|
|
1375
|
+
this.s48_1 = 'TDM-Reservation';
|
|
1376
|
+
this.t48_1 = 'TDM-Policy';
|
|
1377
1377
|
var tmp = this;
|
|
1378
1378
|
// Inline function 'kotlin.arrayOf' call
|
|
1379
1379
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1380
1380
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1381
|
-
tmp.
|
|
1382
|
-
this.
|
|
1381
|
+
tmp.u48_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1382
|
+
this.v48_1 = asList(this.u48_1);
|
|
1383
1383
|
}
|
|
1384
|
-
protoOf(HttpHeaders).
|
|
1384
|
+
protoOf(HttpHeaders).w48 = function (name) {
|
|
1385
1385
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1386
1386
|
var index = 0;
|
|
1387
1387
|
var inductionVariable = 0;
|
|
@@ -1395,7 +1395,7 @@ protoOf(HttpHeaders).y47 = function (name) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(HttpHeaders).
|
|
1398
|
+
protoOf(HttpHeaders).x48 = function (value) {
|
|
1399
1399
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1400
1400
|
var index = 0;
|
|
1401
1401
|
var inductionVariable = 0;
|
|
@@ -1429,8 +1429,8 @@ function IllegalHeaderNameException(headerName, position) {
|
|
|
1429
1429
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1430
1430
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1431
1431
|
captureStack(this, IllegalHeaderNameException);
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1432
|
+
this.z48_1 = headerName;
|
|
1433
|
+
this.a49_1 = position;
|
|
1434
1434
|
}
|
|
1435
1435
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1436
1436
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1439,11 +1439,11 @@ function IllegalHeaderValueException(headerValue, position) {
|
|
|
1439
1439
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1440
1440
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1441
1441
|
captureStack(this, IllegalHeaderValueException);
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1442
|
+
this.b49_1 = headerValue;
|
|
1443
|
+
this.c49_1 = position;
|
|
1444
1444
|
}
|
|
1445
1445
|
function contentType(_this__u8e3s4) {
|
|
1446
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1446
|
+
var tmp0_safe_receiver = _this__u8e3s4.d49().sd('Content-Type');
|
|
1447
1447
|
var tmp;
|
|
1448
1448
|
if (tmp0_safe_receiver == null) {
|
|
1449
1449
|
tmp = null;
|
|
@@ -1454,7 +1454,7 @@ function contentType(_this__u8e3s4) {
|
|
|
1454
1454
|
return tmp;
|
|
1455
1455
|
}
|
|
1456
1456
|
function contentType_0(_this__u8e3s4) {
|
|
1457
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1457
|
+
var tmp0_safe_receiver = _this__u8e3s4.d49().sd('Content-Type');
|
|
1458
1458
|
var tmp;
|
|
1459
1459
|
if (tmp0_safe_receiver == null) {
|
|
1460
1460
|
tmp = null;
|
|
@@ -1465,7 +1465,7 @@ function contentType_0(_this__u8e3s4) {
|
|
|
1465
1465
|
return tmp;
|
|
1466
1466
|
}
|
|
1467
1467
|
function contentLength(_this__u8e3s4) {
|
|
1468
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1468
|
+
var tmp0_safe_receiver = _this__u8e3s4.d49().sd('Content-Length');
|
|
1469
1469
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1470
1470
|
}
|
|
1471
1471
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1473,7 +1473,7 @@ function charset_0(_this__u8e3s4) {
|
|
|
1473
1473
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1474
1474
|
}
|
|
1475
1475
|
function contentType_1(_this__u8e3s4, type) {
|
|
1476
|
-
return _this__u8e3s4.
|
|
1476
|
+
return _this__u8e3s4.d49().t3x('Content-Type', type.toString());
|
|
1477
1477
|
}
|
|
1478
1478
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1479
1479
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
@@ -1482,16 +1482,16 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1482
1482
|
var REQUESTS_WITHOUT_BODY;
|
|
1483
1483
|
function Companion_2() {
|
|
1484
1484
|
Companion_instance_2 = this;
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1485
|
+
this.e49_1 = new HttpMethod('GET');
|
|
1486
|
+
this.f49_1 = new HttpMethod('POST');
|
|
1487
|
+
this.g49_1 = new HttpMethod('PUT');
|
|
1488
|
+
this.h49_1 = new HttpMethod('PATCH');
|
|
1489
|
+
this.i49_1 = new HttpMethod('DELETE');
|
|
1490
|
+
this.j49_1 = new HttpMethod('HEAD');
|
|
1491
|
+
this.k49_1 = new HttpMethod('OPTIONS');
|
|
1492
|
+
this.l49_1 = new HttpMethod('TRACE');
|
|
1493
|
+
this.m49_1 = new HttpMethod('QUERY');
|
|
1494
|
+
this.n49_1 = listOf([this.e49_1, this.f49_1, this.g49_1, this.h49_1, this.i49_1, this.j49_1, this.k49_1]);
|
|
1495
1495
|
}
|
|
1496
1496
|
var Companion_instance_2;
|
|
1497
1497
|
function Companion_getInstance_2() {
|
|
@@ -1501,20 +1501,20 @@ function Companion_getInstance_2() {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function HttpMethod(value) {
|
|
1503
1503
|
Companion_getInstance_2();
|
|
1504
|
-
this.
|
|
1504
|
+
this.o49_1 = value;
|
|
1505
1505
|
}
|
|
1506
1506
|
protoOf(HttpMethod).toString = function () {
|
|
1507
|
-
return this.
|
|
1507
|
+
return this.o49_1;
|
|
1508
1508
|
};
|
|
1509
1509
|
protoOf(HttpMethod).hashCode = function () {
|
|
1510
|
-
return getStringHashCode(this.
|
|
1510
|
+
return getStringHashCode(this.o49_1);
|
|
1511
1511
|
};
|
|
1512
1512
|
protoOf(HttpMethod).equals = function (other) {
|
|
1513
1513
|
if (this === other)
|
|
1514
1514
|
return true;
|
|
1515
1515
|
if (!(other instanceof HttpMethod))
|
|
1516
1516
|
return false;
|
|
1517
|
-
if (!(this.
|
|
1517
|
+
if (!(this.o49_1 === other.o49_1))
|
|
1518
1518
|
return false;
|
|
1519
1519
|
return true;
|
|
1520
1520
|
};
|
|
@@ -1526,17 +1526,17 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1526
1526
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1527
1527
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1528
1528
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1529
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1529
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().e49_1, Companion_getInstance_2().j49_1, Companion_getInstance_2().k49_1, Companion_getInstance_2().l49_1]);
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
function Companion_3() {
|
|
1533
1533
|
Companion_instance_3 = this;
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1534
|
+
this.p49_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1535
|
+
this.q49_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1536
|
+
this.r49_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1537
|
+
this.s49_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1538
|
+
this.t49_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1539
|
+
this.u49_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1540
1540
|
}
|
|
1541
1541
|
var Companion_instance_3;
|
|
1542
1542
|
function Companion_getInstance_3() {
|
|
@@ -1546,17 +1546,17 @@ function Companion_getInstance_3() {
|
|
|
1546
1546
|
}
|
|
1547
1547
|
function HttpProtocolVersion(name, major, minor) {
|
|
1548
1548
|
Companion_getInstance_3();
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1549
|
+
this.v49_1 = name;
|
|
1550
|
+
this.w49_1 = major;
|
|
1551
|
+
this.x49_1 = minor;
|
|
1552
1552
|
}
|
|
1553
1553
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1554
|
-
return this.
|
|
1554
|
+
return this.v49_1 + '/' + this.w49_1 + '.' + this.x49_1;
|
|
1555
1555
|
};
|
|
1556
1556
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1557
|
-
var result = getStringHashCode(this.
|
|
1558
|
-
result = imul(result, 31) + this.
|
|
1559
|
-
result = imul(result, 31) + this.
|
|
1557
|
+
var result = getStringHashCode(this.v49_1);
|
|
1558
|
+
result = imul(result, 31) + this.w49_1 | 0;
|
|
1559
|
+
result = imul(result, 31) + this.x49_1 | 0;
|
|
1560
1560
|
return result;
|
|
1561
1561
|
};
|
|
1562
1562
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1564,83 +1564,83 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1564
1564
|
return true;
|
|
1565
1565
|
if (!(other instanceof HttpProtocolVersion))
|
|
1566
1566
|
return false;
|
|
1567
|
-
if (!(this.
|
|
1567
|
+
if (!(this.v49_1 === other.v49_1))
|
|
1568
1568
|
return false;
|
|
1569
|
-
if (!(this.
|
|
1569
|
+
if (!(this.w49_1 === other.w49_1))
|
|
1570
1570
|
return false;
|
|
1571
|
-
if (!(this.
|
|
1571
|
+
if (!(this.x49_1 === other.x49_1))
|
|
1572
1572
|
return false;
|
|
1573
1573
|
return true;
|
|
1574
1574
|
};
|
|
1575
1575
|
function Companion_4() {
|
|
1576
1576
|
Companion_instance_4 = this;
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1594
|
-
this.
|
|
1595
|
-
this.
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1577
|
+
this.y49_1 = new HttpStatusCode(100, 'Continue');
|
|
1578
|
+
this.z49_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1579
|
+
this.a4a_1 = new HttpStatusCode(102, 'Processing');
|
|
1580
|
+
this.b4a_1 = new HttpStatusCode(200, 'OK');
|
|
1581
|
+
this.c4a_1 = new HttpStatusCode(201, 'Created');
|
|
1582
|
+
this.d4a_1 = new HttpStatusCode(202, 'Accepted');
|
|
1583
|
+
this.e4a_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1584
|
+
this.f4a_1 = new HttpStatusCode(204, 'No Content');
|
|
1585
|
+
this.g4a_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1586
|
+
this.h4a_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1587
|
+
this.i4a_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1588
|
+
this.j4a_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1589
|
+
this.k4a_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1590
|
+
this.l4a_1 = new HttpStatusCode(302, 'Found');
|
|
1591
|
+
this.m4a_1 = new HttpStatusCode(303, 'See Other');
|
|
1592
|
+
this.n4a_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1593
|
+
this.o4a_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1594
|
+
this.p4a_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1595
|
+
this.q4a_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1596
|
+
this.r4a_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1597
|
+
this.s4a_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1598
|
+
this.t4a_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1599
|
+
this.u4a_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1600
|
+
this.v4a_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1601
|
+
this.w4a_1 = new HttpStatusCode(404, 'Not Found');
|
|
1602
|
+
this.x4a_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1603
|
+
this.y4a_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1604
|
+
this.z4a_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1605
|
+
this.a4b_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1606
|
+
this.b4b_1 = new HttpStatusCode(409, 'Conflict');
|
|
1607
|
+
this.c4b_1 = new HttpStatusCode(410, 'Gone');
|
|
1608
|
+
this.d4b_1 = new HttpStatusCode(411, 'Length Required');
|
|
1609
|
+
this.e4b_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1610
|
+
this.f4b_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1611
|
+
this.g4b_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1612
|
+
this.h4b_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1613
|
+
this.i4b_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1614
|
+
this.j4b_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1615
|
+
this.k4b_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1616
|
+
this.l4b_1 = new HttpStatusCode(423, 'Locked');
|
|
1617
|
+
this.m4b_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1618
|
+
this.n4b_1 = new HttpStatusCode(425, 'Too Early');
|
|
1619
|
+
this.o4b_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1620
|
+
this.p4b_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1621
|
+
this.q4b_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1622
|
+
this.r4b_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1623
|
+
this.s4b_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1624
|
+
this.t4b_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1625
|
+
this.u4b_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1626
|
+
this.v4b_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1627
|
+
this.w4b_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1628
|
+
this.x4b_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1629
|
+
this.y4b_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1630
|
+
this.z4b_1 = allStatusCodes();
|
|
1631
1631
|
var tmp = this;
|
|
1632
1632
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1633
|
-
var this_0 = this.
|
|
1633
|
+
var this_0 = this.z4b_1;
|
|
1634
1634
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1635
1635
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1636
1636
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1637
1637
|
var _iterator__ex2g4s = this_0.t();
|
|
1638
1638
|
while (_iterator__ex2g4s.u()) {
|
|
1639
1639
|
var element = _iterator__ex2g4s.v();
|
|
1640
|
-
var tmp$ret$2 = element.
|
|
1640
|
+
var tmp$ret$2 = element.b4c_1;
|
|
1641
1641
|
destination.b3(tmp$ret$2, element);
|
|
1642
1642
|
}
|
|
1643
|
-
tmp.
|
|
1643
|
+
tmp.a4c_1 = destination;
|
|
1644
1644
|
}
|
|
1645
1645
|
var Companion_instance_4;
|
|
1646
1646
|
function Companion_getInstance_4() {
|
|
@@ -1650,36 +1650,36 @@ function Companion_getInstance_4() {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
function HttpStatusCode(value, description) {
|
|
1652
1652
|
Companion_getInstance_4();
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1653
|
+
this.b4c_1 = value;
|
|
1654
|
+
this.c4c_1 = description;
|
|
1655
1655
|
}
|
|
1656
1656
|
protoOf(HttpStatusCode).toString = function () {
|
|
1657
|
-
return '' + this.
|
|
1657
|
+
return '' + this.b4c_1 + ' ' + this.c4c_1;
|
|
1658
1658
|
};
|
|
1659
1659
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1660
1660
|
var tmp;
|
|
1661
1661
|
if (other instanceof HttpStatusCode) {
|
|
1662
|
-
tmp = other.
|
|
1662
|
+
tmp = other.b4c_1 === this.b4c_1;
|
|
1663
1663
|
} else {
|
|
1664
1664
|
tmp = false;
|
|
1665
1665
|
}
|
|
1666
1666
|
return tmp;
|
|
1667
1667
|
};
|
|
1668
1668
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1669
|
-
return this.
|
|
1669
|
+
return this.b4c_1;
|
|
1670
1670
|
};
|
|
1671
|
-
protoOf(HttpStatusCode).
|
|
1672
|
-
return this.
|
|
1671
|
+
protoOf(HttpStatusCode).d4c = function (other) {
|
|
1672
|
+
return this.b4c_1 - other.b4c_1 | 0;
|
|
1673
1673
|
};
|
|
1674
1674
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1675
|
-
return this.
|
|
1675
|
+
return this.d4c(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1676
1676
|
};
|
|
1677
1677
|
function allStatusCodes() {
|
|
1678
|
-
return listOf([Companion_getInstance_4().
|
|
1678
|
+
return listOf([Companion_getInstance_4().y49_1, Companion_getInstance_4().z49_1, Companion_getInstance_4().a4a_1, Companion_getInstance_4().b4a_1, Companion_getInstance_4().c4a_1, Companion_getInstance_4().d4a_1, Companion_getInstance_4().e4a_1, Companion_getInstance_4().f4a_1, Companion_getInstance_4().g4a_1, Companion_getInstance_4().h4a_1, Companion_getInstance_4().i4a_1, Companion_getInstance_4().j4a_1, Companion_getInstance_4().k4a_1, Companion_getInstance_4().l4a_1, Companion_getInstance_4().m4a_1, Companion_getInstance_4().n4a_1, Companion_getInstance_4().o4a_1, Companion_getInstance_4().p4a_1, Companion_getInstance_4().q4a_1, Companion_getInstance_4().r4a_1, Companion_getInstance_4().s4a_1, Companion_getInstance_4().t4a_1, Companion_getInstance_4().u4a_1, Companion_getInstance_4().v4a_1, Companion_getInstance_4().w4a_1, Companion_getInstance_4().x4a_1, Companion_getInstance_4().y4a_1, Companion_getInstance_4().z4a_1, Companion_getInstance_4().a4b_1, Companion_getInstance_4().b4b_1, Companion_getInstance_4().c4b_1, Companion_getInstance_4().d4b_1, Companion_getInstance_4().e4b_1, Companion_getInstance_4().f4b_1, Companion_getInstance_4().g4b_1, Companion_getInstance_4().h4b_1, Companion_getInstance_4().i4b_1, Companion_getInstance_4().j4b_1, Companion_getInstance_4().k4b_1, Companion_getInstance_4().l4b_1, Companion_getInstance_4().m4b_1, Companion_getInstance_4().n4b_1, Companion_getInstance_4().o4b_1, Companion_getInstance_4().p4b_1, Companion_getInstance_4().q4b_1, Companion_getInstance_4().r4b_1, Companion_getInstance_4().s4b_1, Companion_getInstance_4().t4b_1, Companion_getInstance_4().u4b_1, Companion_getInstance_4().v4b_1, Companion_getInstance_4().w4b_1, Companion_getInstance_4().x4b_1, Companion_getInstance_4().y4b_1]);
|
|
1679
1679
|
}
|
|
1680
1680
|
function formUrlEncode(_this__u8e3s4) {
|
|
1681
1681
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1682
|
-
var tmp0 = _this__u8e3s4.
|
|
1682
|
+
var tmp0 = _this__u8e3s4.l3x();
|
|
1683
1683
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1684
1684
|
var destination = ArrayList_init_$Create$_0();
|
|
1685
1685
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -1723,7 +1723,7 @@ function formUrlEncodeTo$lambda(it) {
|
|
|
1723
1723
|
}
|
|
1724
1724
|
function Companion_5() {
|
|
1725
1725
|
Companion_instance_5 = this;
|
|
1726
|
-
this.
|
|
1726
|
+
this.e4c_1 = EmptyParameters_instance;
|
|
1727
1727
|
}
|
|
1728
1728
|
var Companion_instance_5;
|
|
1729
1729
|
function Companion_getInstance_5() {
|
|
@@ -1735,23 +1735,23 @@ function Parameters() {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
function EmptyParameters() {
|
|
1737
1737
|
}
|
|
1738
|
-
protoOf(EmptyParameters).
|
|
1738
|
+
protoOf(EmptyParameters).q3x = function () {
|
|
1739
1739
|
return true;
|
|
1740
1740
|
};
|
|
1741
|
-
protoOf(EmptyParameters).
|
|
1741
|
+
protoOf(EmptyParameters).r3x = function (name) {
|
|
1742
1742
|
return null;
|
|
1743
1743
|
};
|
|
1744
|
-
protoOf(EmptyParameters).
|
|
1744
|
+
protoOf(EmptyParameters).s3x = function () {
|
|
1745
1745
|
return emptySet();
|
|
1746
1746
|
};
|
|
1747
|
-
protoOf(EmptyParameters).
|
|
1747
|
+
protoOf(EmptyParameters).l3x = function () {
|
|
1748
1748
|
return emptySet();
|
|
1749
1749
|
};
|
|
1750
1750
|
protoOf(EmptyParameters).r = function () {
|
|
1751
1751
|
return true;
|
|
1752
1752
|
};
|
|
1753
1753
|
protoOf(EmptyParameters).toString = function () {
|
|
1754
|
-
return 'Parameters ' + toString(this.
|
|
1754
|
+
return 'Parameters ' + toString(this.l3x());
|
|
1755
1755
|
};
|
|
1756
1756
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1757
1757
|
var tmp;
|
|
@@ -1774,15 +1774,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1774
1774
|
size = size === VOID ? 8 : size;
|
|
1775
1775
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1776
1776
|
}
|
|
1777
|
-
protoOf(ParametersBuilderImpl).
|
|
1778
|
-
return new ParametersImpl(this.
|
|
1777
|
+
protoOf(ParametersBuilderImpl).w44 = function () {
|
|
1778
|
+
return new ParametersImpl(this.o3x_1);
|
|
1779
1779
|
};
|
|
1780
1780
|
function ParametersImpl(values) {
|
|
1781
1781
|
values = values === VOID ? emptyMap() : values;
|
|
1782
1782
|
StringValuesImpl.call(this, true, values);
|
|
1783
1783
|
}
|
|
1784
1784
|
protoOf(ParametersImpl).toString = function () {
|
|
1785
|
-
return 'Parameters ' + toString(this.
|
|
1785
|
+
return 'Parameters ' + toString(this.l3x());
|
|
1786
1786
|
};
|
|
1787
1787
|
function parameters(builder) {
|
|
1788
1788
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
@@ -1790,7 +1790,7 @@ function parameters(builder) {
|
|
|
1790
1790
|
// Inline function 'kotlin.apply' call
|
|
1791
1791
|
var this_0 = ParametersBuilder();
|
|
1792
1792
|
builder(this_0);
|
|
1793
|
-
return this_0.
|
|
1793
|
+
return this_0.w44();
|
|
1794
1794
|
}
|
|
1795
1795
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1796
1796
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1798,14 +1798,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1798
1798
|
decode = decode === VOID ? true : decode;
|
|
1799
1799
|
var tmp;
|
|
1800
1800
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1801
|
-
tmp = Companion_getInstance_5().
|
|
1801
|
+
tmp = Companion_getInstance_5().e4c_1;
|
|
1802
1802
|
} else {
|
|
1803
1803
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1804
1804
|
Companion_getInstance_5();
|
|
1805
1805
|
// Inline function 'kotlin.apply' call
|
|
1806
1806
|
var this_0 = ParametersBuilder();
|
|
1807
1807
|
parse(this_0, query, startIndex, limit, decode);
|
|
1808
|
-
tmp = this_0.
|
|
1808
|
+
tmp = this_0.w44();
|
|
1809
1809
|
}
|
|
1810
1810
|
return tmp;
|
|
1811
1811
|
}
|
|
@@ -1846,7 +1846,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1846
1846
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1847
1847
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1848
1848
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1849
|
-
_this__u8e3s4.
|
|
1849
|
+
_this__u8e3s4.m3x(name, emptyList());
|
|
1850
1850
|
}
|
|
1851
1851
|
return Unit_instance;
|
|
1852
1852
|
}
|
|
@@ -1857,7 +1857,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1857
1857
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1858
1858
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1859
1859
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1860
|
-
_this__u8e3s4.
|
|
1860
|
+
_this__u8e3s4.v3x(name_0, value);
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
function trimStart(start, end, query) {
|
|
@@ -1877,25 +1877,25 @@ function trimEnd(start, end, text) {
|
|
|
1877
1877
|
function applyOrigin($this) {
|
|
1878
1878
|
var tmp;
|
|
1879
1879
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1880
|
-
var this_0 = $this.
|
|
1880
|
+
var this_0 = $this.h4c_1;
|
|
1881
1881
|
if (charSequenceLength(this_0) > 0) {
|
|
1882
1882
|
tmp = true;
|
|
1883
1883
|
} else {
|
|
1884
|
-
tmp = $this.
|
|
1884
|
+
tmp = $this.t4c().r4c_1 === 'file';
|
|
1885
1885
|
}
|
|
1886
1886
|
if (tmp)
|
|
1887
1887
|
return Unit_instance;
|
|
1888
|
-
$this.
|
|
1889
|
-
if ($this.
|
|
1890
|
-
$this.
|
|
1891
|
-
if ($this.
|
|
1892
|
-
$this.
|
|
1888
|
+
$this.h4c_1 = Companion_getInstance_6().n4d_1.u4c_1;
|
|
1889
|
+
if ($this.k4c_1 == null)
|
|
1890
|
+
$this.k4c_1 = Companion_getInstance_6().n4d_1.f4d_1;
|
|
1891
|
+
if ($this.j4c_1 === 0) {
|
|
1892
|
+
$this.p4d(Companion_getInstance_6().n4d_1.v4c_1);
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
1895
|
function Companion_6() {
|
|
1896
1896
|
Companion_instance_6 = this;
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1897
|
+
this.n4d_1 = Url(get_origin(this));
|
|
1898
|
+
this.o4d_1 = 256;
|
|
1899
1899
|
}
|
|
1900
1900
|
var Companion_instance_6;
|
|
1901
1901
|
function Companion_getInstance_6() {
|
|
@@ -1911,18 +1911,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1911
1911
|
user = user === VOID ? null : user;
|
|
1912
1912
|
password = password === VOID ? null : password;
|
|
1913
1913
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1914
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1914
|
+
parameters = parameters === VOID ? Companion_getInstance_5().e4c_1 : parameters;
|
|
1915
1915
|
fragment = fragment === VOID ? '' : fragment;
|
|
1916
1916
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1917
|
+
this.h4c_1 = host;
|
|
1918
|
+
this.i4c_1 = trailingQuery;
|
|
1919
|
+
this.j4c_1 = port;
|
|
1920
|
+
this.k4c_1 = protocol;
|
|
1921
1921
|
var tmp = this;
|
|
1922
|
-
tmp.
|
|
1922
|
+
tmp.l4c_1 = user == null ? null : encodeURLParameter(user);
|
|
1923
1923
|
var tmp_0 = this;
|
|
1924
|
-
tmp_0.
|
|
1925
|
-
this.
|
|
1924
|
+
tmp_0.m4c_1 = password == null ? null : encodeURLParameter(password);
|
|
1925
|
+
this.n4c_1 = encodeURLQueryComponent(fragment);
|
|
1926
1926
|
var tmp_1 = this;
|
|
1927
1927
|
// Inline function 'kotlin.collections.map' call
|
|
1928
1928
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1933,43 +1933,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1933
1933
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1934
1934
|
destination.b1(tmp$ret$2);
|
|
1935
1935
|
}
|
|
1936
|
-
tmp_1.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1936
|
+
tmp_1.o4c_1 = destination;
|
|
1937
|
+
this.p4c_1 = encodeParameters(parameters);
|
|
1938
|
+
this.q4c_1 = new UrlDecodedParametersBuilder(this.p4c_1);
|
|
1939
1939
|
}
|
|
1940
|
-
protoOf(URLBuilder).
|
|
1940
|
+
protoOf(URLBuilder).p4d = function (value) {
|
|
1941
1941
|
// Inline function 'kotlin.require' call
|
|
1942
1942
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1943
1943
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1944
1944
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1945
1945
|
}
|
|
1946
|
-
this.
|
|
1946
|
+
this.j4c_1 = value;
|
|
1947
1947
|
};
|
|
1948
|
-
protoOf(URLBuilder).
|
|
1949
|
-
this.
|
|
1948
|
+
protoOf(URLBuilder).q4d = function (value) {
|
|
1949
|
+
this.k4c_1 = value;
|
|
1950
1950
|
};
|
|
1951
|
-
protoOf(URLBuilder).
|
|
1952
|
-
var tmp0_elvis_lhs = this.
|
|
1953
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1951
|
+
protoOf(URLBuilder).t4c = function () {
|
|
1952
|
+
var tmp0_elvis_lhs = this.k4c_1;
|
|
1953
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().r4d_1 : tmp0_elvis_lhs;
|
|
1954
1954
|
};
|
|
1955
|
-
protoOf(URLBuilder).
|
|
1955
|
+
protoOf(URLBuilder).x4d = function (value) {
|
|
1956
1956
|
var tmp = this;
|
|
1957
|
-
tmp.
|
|
1957
|
+
tmp.l4c_1 = value == null ? null : encodeURLParameter(value);
|
|
1958
1958
|
};
|
|
1959
|
-
protoOf(URLBuilder).
|
|
1960
|
-
var tmp0_safe_receiver = this.
|
|
1959
|
+
protoOf(URLBuilder).y4d = function () {
|
|
1960
|
+
var tmp0_safe_receiver = this.l4c_1;
|
|
1961
1961
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1962
1962
|
};
|
|
1963
|
-
protoOf(URLBuilder).
|
|
1964
|
-
var tmp0_safe_receiver = this.
|
|
1963
|
+
protoOf(URLBuilder).z4d = function () {
|
|
1964
|
+
var tmp0_safe_receiver = this.m4c_1;
|
|
1965
1965
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1966
1966
|
};
|
|
1967
|
-
protoOf(URLBuilder).
|
|
1968
|
-
return decodeURLQueryComponent(this.
|
|
1967
|
+
protoOf(URLBuilder).a4e = function () {
|
|
1968
|
+
return decodeURLQueryComponent(this.n4c_1);
|
|
1969
1969
|
};
|
|
1970
|
-
protoOf(URLBuilder).
|
|
1970
|
+
protoOf(URLBuilder).b4e = function () {
|
|
1971
1971
|
// Inline function 'kotlin.collections.map' call
|
|
1972
|
-
var this_0 = this.
|
|
1972
|
+
var this_0 = this.o4c_1;
|
|
1973
1973
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1974
1974
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1975
1975
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -1980,60 +1980,60 @@ protoOf(URLBuilder).d4d = function () {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
return destination;
|
|
1982
1982
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
1983
|
+
protoOf(URLBuilder).c4e = function (value) {
|
|
1984
|
+
this.p4c_1 = value;
|
|
1985
|
+
this.q4c_1 = new UrlDecodedParametersBuilder(value);
|
|
1986
1986
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1987
|
+
protoOf(URLBuilder).d4e = function () {
|
|
1988
1988
|
applyOrigin(this);
|
|
1989
1989
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(URLBuilder).toString = function () {
|
|
1992
1992
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
1993
1993
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
1994
|
+
protoOf(URLBuilder).w44 = function () {
|
|
1995
1995
|
applyOrigin(this);
|
|
1996
|
-
return new Url_0(this.
|
|
1996
|
+
return new Url_0(this.k4c_1, this.h4c_1, this.j4c_1, this.b4e(), this.q4c_1.w44(), this.a4e(), this.y4d(), this.z4d(), this.i4c_1, this.d4e());
|
|
1997
1997
|
};
|
|
1998
1998
|
function get_authority(_this__u8e3s4) {
|
|
1999
1999
|
// Inline function 'kotlin.text.buildString' call
|
|
2000
2000
|
// Inline function 'kotlin.apply' call
|
|
2001
2001
|
var this_0 = StringBuilder_init_$Create$();
|
|
2002
2002
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2003
|
-
this_0.q(_this__u8e3s4.
|
|
2004
|
-
if (!(_this__u8e3s4.
|
|
2003
|
+
this_0.q(_this__u8e3s4.h4c_1);
|
|
2004
|
+
if (!(_this__u8e3s4.j4c_1 === 0) && !(_this__u8e3s4.j4c_1 === _this__u8e3s4.t4c().s4c_1)) {
|
|
2005
2005
|
this_0.q(':');
|
|
2006
|
-
this_0.q(_this__u8e3s4.
|
|
2006
|
+
this_0.q(_this__u8e3s4.j4c_1.toString());
|
|
2007
2007
|
}
|
|
2008
2008
|
return this_0.toString();
|
|
2009
2009
|
}
|
|
2010
2010
|
function appendTo(_this__u8e3s4, out) {
|
|
2011
|
-
out.c1(_this__u8e3s4.
|
|
2012
|
-
switch (_this__u8e3s4.
|
|
2011
|
+
out.c1(_this__u8e3s4.t4c().r4c_1);
|
|
2012
|
+
switch (_this__u8e3s4.t4c().r4c_1) {
|
|
2013
2013
|
case 'file':
|
|
2014
|
-
appendFile(out, _this__u8e3s4.
|
|
2014
|
+
appendFile(out, _this__u8e3s4.h4c_1, get_encodedPath(_this__u8e3s4));
|
|
2015
2015
|
return out;
|
|
2016
2016
|
case 'mailto':
|
|
2017
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2017
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.h4c_1);
|
|
2018
2018
|
return out;
|
|
2019
2019
|
case 'about':
|
|
2020
|
-
appendPayload(out, _this__u8e3s4.
|
|
2020
|
+
appendPayload(out, _this__u8e3s4.h4c_1);
|
|
2021
2021
|
return out;
|
|
2022
2022
|
case 'tel':
|
|
2023
|
-
appendPayload(out, _this__u8e3s4.
|
|
2023
|
+
appendPayload(out, _this__u8e3s4.h4c_1);
|
|
2024
2024
|
return out;
|
|
2025
2025
|
case 'data':
|
|
2026
|
-
appendPayload(out, _this__u8e3s4.
|
|
2026
|
+
appendPayload(out, _this__u8e3s4.h4c_1);
|
|
2027
2027
|
return out;
|
|
2028
2028
|
}
|
|
2029
2029
|
out.c1('://');
|
|
2030
2030
|
out.c1(get_authority(_this__u8e3s4));
|
|
2031
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2031
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.p4c_1, _this__u8e3s4.i4c_1);
|
|
2032
2032
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2033
|
-
var this_0 = _this__u8e3s4.
|
|
2033
|
+
var this_0 = _this__u8e3s4.n4c_1;
|
|
2034
2034
|
if (charSequenceLength(this_0) > 0) {
|
|
2035
2035
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2036
|
-
out.c1(_this__u8e3s4.
|
|
2036
|
+
out.c1(_this__u8e3s4.n4c_1);
|
|
2037
2037
|
}
|
|
2038
2038
|
return out;
|
|
2039
2039
|
}
|
|
@@ -2041,7 +2041,7 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2041
2041
|
// Inline function 'kotlin.text.buildString' call
|
|
2042
2042
|
// Inline function 'kotlin.apply' call
|
|
2043
2043
|
var this_0 = StringBuilder_init_$Create$();
|
|
2044
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2044
|
+
appendUserAndPassword(this_0, _this__u8e3s4.l4c_1, _this__u8e3s4.m4c_1);
|
|
2045
2045
|
return this_0.toString();
|
|
2046
2046
|
}
|
|
2047
2047
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2053,10 +2053,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2053
2053
|
_this__u8e3s4.c1(encodedPath);
|
|
2054
2054
|
}
|
|
2055
2055
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2056
|
-
_this__u8e3s4.
|
|
2056
|
+
_this__u8e3s4.o4c_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2057
2057
|
}
|
|
2058
2058
|
function get_encodedPath(_this__u8e3s4) {
|
|
2059
|
-
return joinPath(_this__u8e3s4.
|
|
2059
|
+
return joinPath(_this__u8e3s4.o4c_1);
|
|
2060
2060
|
}
|
|
2061
2061
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2062
2062
|
_this__u8e3s4.c1(':');
|
|
@@ -2144,20 +2144,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2144
2144
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2145
2145
|
if (schemeLength > 0) {
|
|
2146
2146
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2147
|
-
_this__u8e3s4.
|
|
2147
|
+
_this__u8e3s4.q4d(Companion_getInstance_7().e4e(scheme));
|
|
2148
2148
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2149
2149
|
}
|
|
2150
|
-
if (_this__u8e3s4.
|
|
2151
|
-
_this__u8e3s4.
|
|
2150
|
+
if (_this__u8e3s4.t4c().r4c_1 === 'data') {
|
|
2151
|
+
_this__u8e3s4.h4c_1 = substring(urlString, startIndex, endIndex);
|
|
2152
2152
|
return _this__u8e3s4;
|
|
2153
2153
|
}
|
|
2154
2154
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2155
2155
|
startIndex = startIndex + slashCount | 0;
|
|
2156
|
-
if (_this__u8e3s4.
|
|
2156
|
+
if (_this__u8e3s4.t4c().r4c_1 === 'file') {
|
|
2157
2157
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2158
2158
|
return _this__u8e3s4;
|
|
2159
2159
|
}
|
|
2160
|
-
if (_this__u8e3s4.
|
|
2160
|
+
if (_this__u8e3s4.t4c().r4c_1 === 'mailto') {
|
|
2161
2161
|
// Inline function 'kotlin.require' call
|
|
2162
2162
|
// Inline function 'kotlin.require' call
|
|
2163
2163
|
if (!(slashCount === 0)) {
|
|
@@ -2167,24 +2167,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2167
2167
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2168
2168
|
return _this__u8e3s4;
|
|
2169
2169
|
}
|
|
2170
|
-
if (_this__u8e3s4.
|
|
2170
|
+
if (_this__u8e3s4.t4c().r4c_1 === 'about') {
|
|
2171
2171
|
// Inline function 'kotlin.require' call
|
|
2172
2172
|
// Inline function 'kotlin.require' call
|
|
2173
2173
|
if (!(slashCount === 0)) {
|
|
2174
2174
|
var message_0 = 'Failed requirement.';
|
|
2175
2175
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2176
2176
|
}
|
|
2177
|
-
_this__u8e3s4.
|
|
2177
|
+
_this__u8e3s4.h4c_1 = substring(urlString, startIndex, endIndex);
|
|
2178
2178
|
return _this__u8e3s4;
|
|
2179
2179
|
}
|
|
2180
|
-
if (_this__u8e3s4.
|
|
2180
|
+
if (_this__u8e3s4.t4c().r4c_1 === 'tel') {
|
|
2181
2181
|
// Inline function 'kotlin.require' call
|
|
2182
2182
|
// Inline function 'kotlin.require' call
|
|
2183
2183
|
if (!(slashCount === 0)) {
|
|
2184
2184
|
var message_1 = 'Failed requirement.';
|
|
2185
2185
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2186
2186
|
}
|
|
2187
|
-
_this__u8e3s4.
|
|
2187
|
+
_this__u8e3s4.h4c_1 = substring(urlString, startIndex, endIndex);
|
|
2188
2188
|
return _this__u8e3s4;
|
|
2189
2189
|
}
|
|
2190
2190
|
if (slashCount >= 2) {
|
|
@@ -2202,10 +2202,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2202
2202
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2203
2203
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2204
2204
|
if (!(passwordIndex === -1)) {
|
|
2205
|
-
_this__u8e3s4.
|
|
2206
|
-
_this__u8e3s4.
|
|
2205
|
+
_this__u8e3s4.l4c_1 = substring(urlString, startIndex, passwordIndex);
|
|
2206
|
+
_this__u8e3s4.m4c_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2207
2207
|
} else {
|
|
2208
|
-
_this__u8e3s4.
|
|
2208
|
+
_this__u8e3s4.l4c_1 = substring(urlString, startIndex, delimiter);
|
|
2209
2209
|
}
|
|
2210
2210
|
startIndex = delimiter + 1 | 0;
|
|
2211
2211
|
} else {
|
|
@@ -2216,17 +2216,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2216
2216
|
}
|
|
2217
2217
|
}
|
|
2218
2218
|
if (startIndex >= endIndex) {
|
|
2219
|
-
_this__u8e3s4.
|
|
2219
|
+
_this__u8e3s4.o4c_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2220
2220
|
return _this__u8e3s4;
|
|
2221
2221
|
}
|
|
2222
2222
|
var tmp_0 = _this__u8e3s4;
|
|
2223
2223
|
var tmp_1;
|
|
2224
2224
|
if (slashCount === 0) {
|
|
2225
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2225
|
+
tmp_1 = dropLast(_this__u8e3s4.o4c_1, 1);
|
|
2226
2226
|
} else {
|
|
2227
2227
|
tmp_1 = emptyList();
|
|
2228
2228
|
}
|
|
2229
|
-
tmp_0.
|
|
2229
|
+
tmp_0.o4c_1 = tmp_1;
|
|
2230
2230
|
// Inline function 'kotlin.takeIf' call
|
|
2231
2231
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2232
2232
|
var tmp_2;
|
|
@@ -2241,9 +2241,9 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2241
2241
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2242
2242
|
var tmp_3;
|
|
2243
2243
|
var tmp_4;
|
|
2244
|
-
if (_this__u8e3s4.
|
|
2244
|
+
if (_this__u8e3s4.o4c_1.e1() === 1) {
|
|
2245
2245
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2246
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2246
|
+
var this_2 = first_0(_this__u8e3s4.o4c_1);
|
|
2247
2247
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2248
2248
|
} else {
|
|
2249
2249
|
tmp_4 = false;
|
|
@@ -2251,12 +2251,12 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2251
2251
|
if (tmp_4) {
|
|
2252
2252
|
tmp_3 = emptyList();
|
|
2253
2253
|
} else {
|
|
2254
|
-
tmp_3 = _this__u8e3s4.
|
|
2254
|
+
tmp_3 = _this__u8e3s4.o4c_1;
|
|
2255
2255
|
}
|
|
2256
2256
|
var basePath = tmp_3;
|
|
2257
2257
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2258
2258
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2259
|
-
_this__u8e3s4.
|
|
2259
|
+
_this__u8e3s4.o4c_1 = plus_0(basePath, relativePath);
|
|
2260
2260
|
startIndex = pathEnd;
|
|
2261
2261
|
}
|
|
2262
2262
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2306,21 +2306,21 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2306
2306
|
_init_properties_URLParser_kt__sf11to();
|
|
2307
2307
|
switch (slashCount) {
|
|
2308
2308
|
case 1:
|
|
2309
|
-
_this__u8e3s4.
|
|
2309
|
+
_this__u8e3s4.h4c_1 = '';
|
|
2310
2310
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2311
2311
|
break;
|
|
2312
2312
|
case 2:
|
|
2313
2313
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2314
2314
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2315
|
-
_this__u8e3s4.
|
|
2315
|
+
_this__u8e3s4.h4c_1 = substring(urlString, startIndex, endIndex);
|
|
2316
2316
|
return Unit_instance;
|
|
2317
2317
|
}
|
|
2318
2318
|
|
|
2319
|
-
_this__u8e3s4.
|
|
2319
|
+
_this__u8e3s4.h4c_1 = substring(urlString, startIndex, nextSlash);
|
|
2320
2320
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2321
2321
|
break;
|
|
2322
2322
|
case 3:
|
|
2323
|
-
_this__u8e3s4.
|
|
2323
|
+
_this__u8e3s4.h4c_1 = '';
|
|
2324
2324
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2325
2325
|
break;
|
|
2326
2326
|
default:
|
|
@@ -2333,8 +2333,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2333
2333
|
if (delimiter === -1) {
|
|
2334
2334
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2335
2335
|
}
|
|
2336
|
-
_this__u8e3s4.
|
|
2337
|
-
_this__u8e3s4.
|
|
2336
|
+
_this__u8e3s4.x4d(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2337
|
+
_this__u8e3s4.h4c_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2338
2338
|
}
|
|
2339
2339
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2340
2340
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2368,19 +2368,39 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2368
2368
|
}
|
|
2369
2369
|
var tmp0_elvis_lhs = tmp;
|
|
2370
2370
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2371
|
-
|
|
2371
|
+
var hostValue = substring(urlString, startIndex, colonIndex);
|
|
2372
|
+
var tmp$ret$2;
|
|
2373
|
+
$l$block: {
|
|
2374
|
+
// Inline function 'kotlin.text.none' call
|
|
2375
|
+
var inductionVariable = 0;
|
|
2376
|
+
while (inductionVariable < charSequenceLength(hostValue)) {
|
|
2377
|
+
var element = charSequenceGet(hostValue, inductionVariable);
|
|
2378
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2379
|
+
if (isWhitespace(element)) {
|
|
2380
|
+
tmp$ret$2 = false;
|
|
2381
|
+
break $l$block;
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
tmp$ret$2 = true;
|
|
2385
|
+
}
|
|
2386
|
+
// Inline function 'kotlin.require' call
|
|
2387
|
+
if (!tmp$ret$2) {
|
|
2388
|
+
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2389
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2390
|
+
}
|
|
2391
|
+
_this__u8e3s4.h4c_1 = hostValue;
|
|
2372
2392
|
var tmp_0;
|
|
2373
2393
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2374
2394
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2375
2395
|
} else {
|
|
2376
2396
|
tmp_0 = 0;
|
|
2377
2397
|
}
|
|
2378
|
-
_this__u8e3s4.
|
|
2398
|
+
_this__u8e3s4.p4d(tmp_0);
|
|
2379
2399
|
}
|
|
2380
2400
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2381
2401
|
_init_properties_URLParser_kt__sf11to();
|
|
2382
2402
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2383
|
-
_this__u8e3s4.
|
|
2403
|
+
_this__u8e3s4.i4c_1 = true;
|
|
2384
2404
|
return endIndex;
|
|
2385
2405
|
}
|
|
2386
2406
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2394,18 +2414,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2394
2414
|
var tmp0_elvis_lhs = tmp;
|
|
2395
2415
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2396
2416
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2397
|
-
rawParameters.
|
|
2417
|
+
rawParameters.x3x(parseQuery$lambda(_this__u8e3s4));
|
|
2398
2418
|
return fragmentStart;
|
|
2399
2419
|
}
|
|
2400
2420
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2401
2421
|
_init_properties_URLParser_kt__sf11to();
|
|
2402
2422
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2403
|
-
_this__u8e3s4.
|
|
2423
|
+
_this__u8e3s4.n4c_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2404
2424
|
}
|
|
2405
2425
|
}
|
|
2406
2426
|
function parseQuery$lambda($this_parseQuery) {
|
|
2407
2427
|
return function (key, values) {
|
|
2408
|
-
$this_parseQuery.
|
|
2428
|
+
$this_parseQuery.p4c_1.m3x(key, values);
|
|
2409
2429
|
return Unit_instance;
|
|
2410
2430
|
};
|
|
2411
2431
|
}
|
|
@@ -2418,29 +2438,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2418
2438
|
}
|
|
2419
2439
|
function Companion_7() {
|
|
2420
2440
|
Companion_instance_7 = this;
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2424
|
-
this.
|
|
2425
|
-
this.
|
|
2441
|
+
this.r4d_1 = new URLProtocol('http', 80);
|
|
2442
|
+
this.s4d_1 = new URLProtocol('https', 443);
|
|
2443
|
+
this.t4d_1 = new URLProtocol('ws', 80);
|
|
2444
|
+
this.u4d_1 = new URLProtocol('wss', 443);
|
|
2445
|
+
this.v4d_1 = new URLProtocol('socks', 1080);
|
|
2426
2446
|
var tmp = this;
|
|
2427
2447
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2428
|
-
var this_0 = listOf([this.
|
|
2448
|
+
var this_0 = listOf([this.r4d_1, this.s4d_1, this.t4d_1, this.u4d_1, this.v4d_1]);
|
|
2429
2449
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2430
2450
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2431
2451
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2432
2452
|
var _iterator__ex2g4s = this_0.t();
|
|
2433
2453
|
while (_iterator__ex2g4s.u()) {
|
|
2434
2454
|
var element = _iterator__ex2g4s.v();
|
|
2435
|
-
var tmp$ret$2 = element.
|
|
2455
|
+
var tmp$ret$2 = element.r4c_1;
|
|
2436
2456
|
destination.b3(tmp$ret$2, element);
|
|
2437
2457
|
}
|
|
2438
|
-
tmp.
|
|
2458
|
+
tmp.w4d_1 = destination;
|
|
2439
2459
|
}
|
|
2440
|
-
protoOf(Companion_7).
|
|
2460
|
+
protoOf(Companion_7).e4e = function (name) {
|
|
2441
2461
|
// Inline function 'kotlin.let' call
|
|
2442
2462
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2443
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2463
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().w4d_1.s2(it);
|
|
2444
2464
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2445
2465
|
};
|
|
2446
2466
|
var Companion_instance_7;
|
|
@@ -2451,9 +2471,9 @@ function Companion_getInstance_7() {
|
|
|
2451
2471
|
}
|
|
2452
2472
|
function URLProtocol(name, defaultPort) {
|
|
2453
2473
|
Companion_getInstance_7();
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2456
|
-
var tmp0 = this.
|
|
2474
|
+
this.r4c_1 = name;
|
|
2475
|
+
this.s4c_1 = defaultPort;
|
|
2476
|
+
var tmp0 = this.r4c_1;
|
|
2457
2477
|
var tmp$ret$0;
|
|
2458
2478
|
$l$block: {
|
|
2459
2479
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2475,11 +2495,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2475
2495
|
}
|
|
2476
2496
|
}
|
|
2477
2497
|
protoOf(URLProtocol).toString = function () {
|
|
2478
|
-
return 'URLProtocol(name=' + this.
|
|
2498
|
+
return 'URLProtocol(name=' + this.r4c_1 + ', defaultPort=' + this.s4c_1 + ')';
|
|
2479
2499
|
};
|
|
2480
2500
|
protoOf(URLProtocol).hashCode = function () {
|
|
2481
|
-
var result = getStringHashCode(this.
|
|
2482
|
-
result = imul(result, 31) + this.
|
|
2501
|
+
var result = getStringHashCode(this.r4c_1);
|
|
2502
|
+
result = imul(result, 31) + this.s4c_1 | 0;
|
|
2483
2503
|
return result;
|
|
2484
2504
|
};
|
|
2485
2505
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2487,35 +2507,35 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2487
2507
|
return true;
|
|
2488
2508
|
if (!(other instanceof URLProtocol))
|
|
2489
2509
|
return false;
|
|
2490
|
-
if (!(this.
|
|
2510
|
+
if (!(this.r4c_1 === other.r4c_1))
|
|
2491
2511
|
return false;
|
|
2492
|
-
if (!(this.
|
|
2512
|
+
if (!(this.s4c_1 === other.s4c_1))
|
|
2493
2513
|
return false;
|
|
2494
2514
|
return true;
|
|
2495
2515
|
};
|
|
2496
2516
|
function isSecure(_this__u8e3s4) {
|
|
2497
|
-
return _this__u8e3s4.
|
|
2517
|
+
return _this__u8e3s4.r4c_1 === 'https' || _this__u8e3s4.r4c_1 === 'wss';
|
|
2498
2518
|
}
|
|
2499
2519
|
function isWebsocket(_this__u8e3s4) {
|
|
2500
|
-
return _this__u8e3s4.
|
|
2520
|
+
return _this__u8e3s4.r4c_1 === 'ws' || _this__u8e3s4.r4c_1 === 'wss';
|
|
2501
2521
|
}
|
|
2502
2522
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2503
|
-
_this__u8e3s4.
|
|
2504
|
-
_this__u8e3s4.
|
|
2505
|
-
_this__u8e3s4.
|
|
2506
|
-
_this__u8e3s4.
|
|
2507
|
-
_this__u8e3s4.
|
|
2508
|
-
_this__u8e3s4.
|
|
2523
|
+
_this__u8e3s4.k4c_1 = url.k4c_1;
|
|
2524
|
+
_this__u8e3s4.h4c_1 = url.h4c_1;
|
|
2525
|
+
_this__u8e3s4.p4d(url.j4c_1);
|
|
2526
|
+
_this__u8e3s4.o4c_1 = url.o4c_1;
|
|
2527
|
+
_this__u8e3s4.l4c_1 = url.l4c_1;
|
|
2528
|
+
_this__u8e3s4.m4c_1 = url.m4c_1;
|
|
2509
2529
|
// Inline function 'kotlin.apply' call
|
|
2510
2530
|
var this_0 = ParametersBuilder();
|
|
2511
|
-
appendAll(this_0, url.
|
|
2512
|
-
_this__u8e3s4.
|
|
2513
|
-
_this__u8e3s4.
|
|
2514
|
-
_this__u8e3s4.
|
|
2531
|
+
appendAll(this_0, url.p4c_1);
|
|
2532
|
+
_this__u8e3s4.c4e(this_0);
|
|
2533
|
+
_this__u8e3s4.n4c_1 = url.n4c_1;
|
|
2534
|
+
_this__u8e3s4.i4c_1 = url.i4c_1;
|
|
2515
2535
|
return _this__u8e3s4;
|
|
2516
2536
|
}
|
|
2517
2537
|
function Url(urlString) {
|
|
2518
|
-
return URLBuilder_0(urlString).
|
|
2538
|
+
return URLBuilder_0(urlString).w44();
|
|
2519
2539
|
}
|
|
2520
2540
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2521
2541
|
var tmp;
|
|
@@ -2533,7 +2553,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2533
2553
|
_this__u8e3s4.c1('?');
|
|
2534
2554
|
}
|
|
2535
2555
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2536
|
-
var tmp0 = encodedQueryParameters.
|
|
2556
|
+
var tmp0 = encodedQueryParameters.l3x();
|
|
2537
2557
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2538
2558
|
var destination = ArrayList_init_$Create$_0();
|
|
2539
2559
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2579,11 +2599,11 @@ function URLBuilder_0(urlString) {
|
|
|
2579
2599
|
return takeFrom(new URLBuilder(), urlString);
|
|
2580
2600
|
}
|
|
2581
2601
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2582
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2583
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2602
|
+
var tmp0_subject = _this__u8e3s4.v4c_1;
|
|
2603
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.g4d_1.s4c_1 ? _this__u8e3s4.u4c_1 : get_hostWithPort(_this__u8e3s4);
|
|
2584
2604
|
}
|
|
2585
2605
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2586
|
-
return _this__u8e3s4.
|
|
2606
|
+
return _this__u8e3s4.u4c_1 + ':' + _this__u8e3s4.f4e();
|
|
2587
2607
|
}
|
|
2588
2608
|
function appendUrlFullPath$lambda(it) {
|
|
2589
2609
|
var key = it.sg_1;
|
|
@@ -2641,146 +2661,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2641
2661
|
if ($pathSegments.r()) {
|
|
2642
2662
|
return '';
|
|
2643
2663
|
}
|
|
2644
|
-
var pathStartIndex = indexOf(this$0.
|
|
2664
|
+
var pathStartIndex = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(47), this$0.g4d_1.r4c_1.length + 3 | 0);
|
|
2645
2665
|
var tmp_0;
|
|
2646
2666
|
if (pathStartIndex === -1) {
|
|
2647
2667
|
return '';
|
|
2648
2668
|
}
|
|
2649
2669
|
// Inline function 'kotlin.charArrayOf' call
|
|
2650
2670
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2651
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2671
|
+
var pathEndIndex = indexOfAny(this$0.b4d_1, tmp$ret$0, pathStartIndex);
|
|
2652
2672
|
var tmp_1;
|
|
2653
2673
|
if (pathEndIndex === -1) {
|
|
2654
|
-
return substring_0(this$0.
|
|
2674
|
+
return substring_0(this$0.b4d_1, pathStartIndex);
|
|
2655
2675
|
}
|
|
2656
|
-
return substring(this$0.
|
|
2676
|
+
return substring(this$0.b4d_1, pathStartIndex, pathEndIndex);
|
|
2657
2677
|
};
|
|
2658
2678
|
}
|
|
2659
2679
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2660
2680
|
return function () {
|
|
2661
|
-
var queryStart = indexOf(this$0.
|
|
2681
|
+
var queryStart = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2662
2682
|
var tmp;
|
|
2663
2683
|
if (queryStart === 0) {
|
|
2664
2684
|
return '';
|
|
2665
2685
|
}
|
|
2666
|
-
var queryEnd = indexOf(this$0.
|
|
2686
|
+
var queryEnd = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2667
2687
|
var tmp_0;
|
|
2668
2688
|
if (queryEnd === -1) {
|
|
2669
|
-
return substring_0(this$0.
|
|
2689
|
+
return substring_0(this$0.b4d_1, queryStart);
|
|
2670
2690
|
}
|
|
2671
|
-
return substring(this$0.
|
|
2691
|
+
return substring(this$0.b4d_1, queryStart, queryEnd);
|
|
2672
2692
|
};
|
|
2673
2693
|
}
|
|
2674
2694
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2675
2695
|
return function () {
|
|
2676
|
-
var pathStart = indexOf(this$0.
|
|
2696
|
+
var pathStart = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(47), this$0.g4d_1.r4c_1.length + 3 | 0);
|
|
2677
2697
|
var tmp;
|
|
2678
2698
|
if (pathStart === -1) {
|
|
2679
2699
|
return '';
|
|
2680
2700
|
}
|
|
2681
|
-
var queryEnd = indexOf(this$0.
|
|
2701
|
+
var queryEnd = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2682
2702
|
var tmp_0;
|
|
2683
2703
|
if (queryEnd === -1) {
|
|
2684
|
-
return substring_0(this$0.
|
|
2704
|
+
return substring_0(this$0.b4d_1, pathStart);
|
|
2685
2705
|
}
|
|
2686
|
-
return substring(this$0.
|
|
2706
|
+
return substring(this$0.b4d_1, pathStart, queryEnd);
|
|
2687
2707
|
};
|
|
2688
2708
|
}
|
|
2689
2709
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2690
2710
|
return function () {
|
|
2691
2711
|
var tmp;
|
|
2692
|
-
if (this$0.
|
|
2712
|
+
if (this$0.y4c_1 == null) {
|
|
2693
2713
|
return null;
|
|
2694
2714
|
}
|
|
2695
2715
|
var tmp_0;
|
|
2696
2716
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2697
|
-
var this_0 = this$0.
|
|
2717
|
+
var this_0 = this$0.y4c_1;
|
|
2698
2718
|
if (charSequenceLength(this_0) === 0) {
|
|
2699
2719
|
return '';
|
|
2700
2720
|
}
|
|
2701
|
-
var usernameStart = this$0.
|
|
2721
|
+
var usernameStart = this$0.g4d_1.r4c_1.length + 3 | 0;
|
|
2702
2722
|
// Inline function 'kotlin.charArrayOf' call
|
|
2703
2723
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2704
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2705
|
-
return substring(this$0.
|
|
2724
|
+
var usernameEnd = indexOfAny(this$0.b4d_1, tmp$ret$1, usernameStart);
|
|
2725
|
+
return substring(this$0.b4d_1, usernameStart, usernameEnd);
|
|
2706
2726
|
};
|
|
2707
2727
|
}
|
|
2708
2728
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2709
2729
|
return constructCallableReference(function (p0) {
|
|
2710
|
-
return p0.
|
|
2730
|
+
return p0.g4e();
|
|
2711
2731
|
}, 1, 0, 21);
|
|
2712
2732
|
}
|
|
2713
2733
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2714
2734
|
return function () {
|
|
2715
2735
|
var tmp;
|
|
2716
|
-
if (this$0.
|
|
2736
|
+
if (this$0.z4c_1 == null) {
|
|
2717
2737
|
return null;
|
|
2718
2738
|
}
|
|
2719
2739
|
var tmp_0;
|
|
2720
2740
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2721
|
-
var this_0 = this$0.
|
|
2741
|
+
var this_0 = this$0.z4c_1;
|
|
2722
2742
|
if (charSequenceLength(this_0) === 0) {
|
|
2723
2743
|
return '';
|
|
2724
2744
|
}
|
|
2725
|
-
var passwordStart = indexOf(this$0.
|
|
2726
|
-
var passwordEnd = indexOf(this$0.
|
|
2727
|
-
return substring(this$0.
|
|
2745
|
+
var passwordStart = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(58), this$0.g4d_1.r4c_1.length + 3 | 0) + 1 | 0;
|
|
2746
|
+
var passwordEnd = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(64));
|
|
2747
|
+
return substring(this$0.b4d_1, passwordStart, passwordEnd);
|
|
2728
2748
|
};
|
|
2729
2749
|
}
|
|
2730
2750
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2731
2751
|
return constructCallableReference(function (p0) {
|
|
2732
|
-
return p0.
|
|
2752
|
+
return p0.h4e();
|
|
2733
2753
|
}, 1, 0, 22);
|
|
2734
2754
|
}
|
|
2735
2755
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2736
2756
|
return function () {
|
|
2737
|
-
var fragmentStart = indexOf(this$0.
|
|
2757
|
+
var fragmentStart = indexOf(this$0.b4d_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2738
2758
|
var tmp;
|
|
2739
2759
|
if (fragmentStart === 0) {
|
|
2740
2760
|
return '';
|
|
2741
2761
|
}
|
|
2742
|
-
return substring_0(this$0.
|
|
2762
|
+
return substring_0(this$0.b4d_1, fragmentStart);
|
|
2743
2763
|
};
|
|
2744
2764
|
}
|
|
2745
2765
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2752
|
-
this.
|
|
2753
|
-
this.
|
|
2754
|
-
var containsArg = this.
|
|
2766
|
+
this.u4c_1 = host;
|
|
2767
|
+
this.v4c_1 = specifiedPort;
|
|
2768
|
+
this.w4c_1 = parameters;
|
|
2769
|
+
this.x4c_1 = fragment;
|
|
2770
|
+
this.y4c_1 = user;
|
|
2771
|
+
this.z4c_1 = password;
|
|
2772
|
+
this.a4d_1 = trailingQuery;
|
|
2773
|
+
this.b4d_1 = urlString;
|
|
2774
|
+
var containsArg = this.v4c_1;
|
|
2755
2775
|
// Inline function 'kotlin.require' call
|
|
2756
2776
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2757
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2777
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.v4c_1;
|
|
2758
2778
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2759
2779
|
}
|
|
2760
|
-
this.
|
|
2761
|
-
this.
|
|
2780
|
+
this.c4d_1 = pathSegments;
|
|
2781
|
+
this.d4d_1 = pathSegments;
|
|
2762
2782
|
var tmp = this;
|
|
2763
|
-
tmp.
|
|
2764
|
-
this.
|
|
2783
|
+
tmp.e4d_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2784
|
+
this.f4d_1 = protocol;
|
|
2765
2785
|
var tmp_0 = this;
|
|
2766
|
-
var tmp0_elvis_lhs = this.
|
|
2767
|
-
tmp_0.
|
|
2786
|
+
var tmp0_elvis_lhs = this.f4d_1;
|
|
2787
|
+
tmp_0.g4d_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().r4d_1 : tmp0_elvis_lhs;
|
|
2768
2788
|
var tmp_1 = this;
|
|
2769
|
-
tmp_1.
|
|
2789
|
+
tmp_1.h4d_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2770
2790
|
var tmp_2 = this;
|
|
2771
|
-
tmp_2.
|
|
2791
|
+
tmp_2.i4d_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2772
2792
|
var tmp_3 = this;
|
|
2773
|
-
tmp_3.
|
|
2793
|
+
tmp_3.j4d_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2774
2794
|
var tmp_4 = this;
|
|
2775
|
-
tmp_4.
|
|
2795
|
+
tmp_4.k4d_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2776
2796
|
var tmp_5 = this;
|
|
2777
|
-
tmp_5.
|
|
2797
|
+
tmp_5.l4d_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2778
2798
|
var tmp_6 = this;
|
|
2779
|
-
tmp_6.
|
|
2799
|
+
tmp_6.m4d_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2780
2800
|
}
|
|
2781
|
-
protoOf(Url_0).
|
|
2801
|
+
protoOf(Url_0).f4e = function () {
|
|
2782
2802
|
// Inline function 'kotlin.takeUnless' call
|
|
2783
|
-
var this_0 = this.
|
|
2803
|
+
var this_0 = this.v4c_1;
|
|
2784
2804
|
var tmp;
|
|
2785
2805
|
if (!(this_0 === 0)) {
|
|
2786
2806
|
tmp = this_0;
|
|
@@ -2788,24 +2808,24 @@ protoOf(Url_0).h4d = function () {
|
|
|
2788
2808
|
tmp = null;
|
|
2789
2809
|
}
|
|
2790
2810
|
var tmp0_elvis_lhs = tmp;
|
|
2791
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2811
|
+
return tmp0_elvis_lhs == null ? this.g4d_1.s4c_1 : tmp0_elvis_lhs;
|
|
2792
2812
|
};
|
|
2793
|
-
protoOf(Url_0).
|
|
2794
|
-
var tmp0 = this.
|
|
2813
|
+
protoOf(Url_0).g4e = function () {
|
|
2814
|
+
var tmp0 = this.k4d_1;
|
|
2795
2815
|
var tmp = KProperty1;
|
|
2796
2816
|
// Inline function 'kotlin.getValue' call
|
|
2797
2817
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2798
2818
|
return tmp0.p1();
|
|
2799
2819
|
};
|
|
2800
|
-
protoOf(Url_0).
|
|
2801
|
-
var tmp0 = this.
|
|
2820
|
+
protoOf(Url_0).h4e = function () {
|
|
2821
|
+
var tmp0 = this.l4d_1;
|
|
2802
2822
|
var tmp = KProperty1;
|
|
2803
2823
|
// Inline function 'kotlin.getValue' call
|
|
2804
2824
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2805
2825
|
return tmp0.p1();
|
|
2806
2826
|
};
|
|
2807
2827
|
protoOf(Url_0).toString = function () {
|
|
2808
|
-
return this.
|
|
2828
|
+
return this.b4d_1;
|
|
2809
2829
|
};
|
|
2810
2830
|
protoOf(Url_0).equals = function (other) {
|
|
2811
2831
|
if (this === other)
|
|
@@ -2814,10 +2834,10 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2814
2834
|
return false;
|
|
2815
2835
|
if (!(other instanceof Url_0))
|
|
2816
2836
|
THROW_CCE();
|
|
2817
|
-
return this.
|
|
2837
|
+
return this.b4d_1 === other.b4d_1;
|
|
2818
2838
|
};
|
|
2819
2839
|
protoOf(Url_0).hashCode = function () {
|
|
2820
|
-
return getStringHashCode(this.
|
|
2840
|
+
return getStringHashCode(this.b4d_1);
|
|
2821
2841
|
};
|
|
2822
2842
|
function get_authority_0(_this__u8e3s4) {
|
|
2823
2843
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2829,19 +2849,19 @@ function get_authority_0(_this__u8e3s4) {
|
|
|
2829
2849
|
}
|
|
2830
2850
|
function UrlSerializer() {
|
|
2831
2851
|
UrlSerializer_instance = this;
|
|
2832
|
-
this.
|
|
2852
|
+
this.i4e_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2833
2853
|
}
|
|
2834
2854
|
protoOf(UrlSerializer).eq = function () {
|
|
2835
|
-
return this.
|
|
2855
|
+
return this.i4e_1;
|
|
2836
2856
|
};
|
|
2837
2857
|
protoOf(UrlSerializer).gq = function (decoder) {
|
|
2838
2858
|
return Url(decoder.bt());
|
|
2839
2859
|
};
|
|
2840
|
-
protoOf(UrlSerializer).
|
|
2860
|
+
protoOf(UrlSerializer).j4e = function (encoder, value) {
|
|
2841
2861
|
encoder.ku(value.toString());
|
|
2842
2862
|
};
|
|
2843
2863
|
protoOf(UrlSerializer).fq = function (encoder, value) {
|
|
2844
|
-
return this.
|
|
2864
|
+
return this.j4e(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2845
2865
|
};
|
|
2846
2866
|
var UrlSerializer_instance;
|
|
2847
2867
|
function UrlSerializer_getInstance() {
|
|
@@ -2853,21 +2873,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2853
2873
|
// Inline function 'kotlin.text.buildString' call
|
|
2854
2874
|
// Inline function 'kotlin.apply' call
|
|
2855
2875
|
var this_0 = StringBuilder_init_$Create$();
|
|
2856
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2876
|
+
appendUserAndPassword(this_0, _this__u8e3s4.g4e(), _this__u8e3s4.h4e());
|
|
2857
2877
|
return this_0.toString();
|
|
2858
2878
|
}
|
|
2859
2879
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2880
|
+
this.k4e_1 = encodedParametersBuilder;
|
|
2881
|
+
this.l4e_1 = this.k4e_1.q3x();
|
|
2862
2882
|
}
|
|
2863
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2864
|
-
return decodeParameters(this.
|
|
2883
|
+
protoOf(UrlDecodedParametersBuilder).w44 = function () {
|
|
2884
|
+
return decodeParameters(this.k4e_1);
|
|
2865
2885
|
};
|
|
2866
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2867
|
-
return this.
|
|
2886
|
+
protoOf(UrlDecodedParametersBuilder).q3x = function () {
|
|
2887
|
+
return this.l4e_1;
|
|
2868
2888
|
};
|
|
2869
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2870
|
-
var tmp0_safe_receiver = this.
|
|
2889
|
+
protoOf(UrlDecodedParametersBuilder).r3x = function (name) {
|
|
2890
|
+
var tmp0_safe_receiver = this.k4e_1.r3x(encodeURLParameter(name));
|
|
2871
2891
|
var tmp;
|
|
2872
2892
|
if (tmp0_safe_receiver == null) {
|
|
2873
2893
|
tmp = null;
|
|
@@ -2885,9 +2905,9 @@ protoOf(UrlDecodedParametersBuilder).t3w = function (name) {
|
|
|
2885
2905
|
}
|
|
2886
2906
|
return tmp;
|
|
2887
2907
|
};
|
|
2888
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2908
|
+
protoOf(UrlDecodedParametersBuilder).s3x = function () {
|
|
2889
2909
|
// Inline function 'kotlin.collections.map' call
|
|
2890
|
-
var this_0 = this.
|
|
2910
|
+
var this_0 = this.k4e_1.s3x();
|
|
2891
2911
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2892
2912
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2893
2913
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2899,18 +2919,18 @@ protoOf(UrlDecodedParametersBuilder).u3w = function () {
|
|
|
2899
2919
|
return toSet(destination);
|
|
2900
2920
|
};
|
|
2901
2921
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2902
|
-
return this.
|
|
2922
|
+
return this.k4e_1.r();
|
|
2903
2923
|
};
|
|
2904
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2905
|
-
return decodeParameters(this.
|
|
2924
|
+
protoOf(UrlDecodedParametersBuilder).l3x = function () {
|
|
2925
|
+
return decodeParameters(this.k4e_1).l3x();
|
|
2906
2926
|
};
|
|
2907
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2908
|
-
return this.
|
|
2927
|
+
protoOf(UrlDecodedParametersBuilder).v3x = function (name, value) {
|
|
2928
|
+
return this.k4e_1.v3x(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2909
2929
|
};
|
|
2910
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2911
|
-
return appendAllEncoded(this.
|
|
2930
|
+
protoOf(UrlDecodedParametersBuilder).w3x = function (stringValues) {
|
|
2931
|
+
return appendAllEncoded(this.k4e_1, stringValues);
|
|
2912
2932
|
};
|
|
2913
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2933
|
+
protoOf(UrlDecodedParametersBuilder).m3x = function (name, values) {
|
|
2914
2934
|
var tmp = encodeURLParameter(name);
|
|
2915
2935
|
// Inline function 'kotlin.collections.map' call
|
|
2916
2936
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2921,10 +2941,10 @@ protoOf(UrlDecodedParametersBuilder).o3w = function (name, values) {
|
|
|
2921
2941
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2922
2942
|
destination.b1(tmp$ret$2);
|
|
2923
2943
|
}
|
|
2924
|
-
return this.
|
|
2944
|
+
return this.k4e_1.m3x(tmp, destination);
|
|
2925
2945
|
};
|
|
2926
2946
|
protoOf(UrlDecodedParametersBuilder).w2 = function () {
|
|
2927
|
-
return this.
|
|
2947
|
+
return this.k4e_1.w2();
|
|
2928
2948
|
};
|
|
2929
2949
|
function encodeParameters(parameters) {
|
|
2930
2950
|
// Inline function 'kotlin.apply' call
|
|
@@ -2936,14 +2956,14 @@ function decodeParameters(parameters) {
|
|
|
2936
2956
|
// Inline function 'kotlin.apply' call
|
|
2937
2957
|
var this_0 = ParametersBuilder();
|
|
2938
2958
|
appendAllDecoded(this_0, parameters);
|
|
2939
|
-
return this_0.
|
|
2959
|
+
return this_0.w44();
|
|
2940
2960
|
}
|
|
2941
2961
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
2942
2962
|
// Inline function 'kotlin.collections.forEach' call
|
|
2943
|
-
var _iterator__ex2g4s = parameters.
|
|
2963
|
+
var _iterator__ex2g4s = parameters.s3x().t();
|
|
2944
2964
|
while (_iterator__ex2g4s.u()) {
|
|
2945
2965
|
var element = _iterator__ex2g4s.v();
|
|
2946
|
-
var tmp0_elvis_lhs = parameters.
|
|
2966
|
+
var tmp0_elvis_lhs = parameters.r3x(element);
|
|
2947
2967
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2948
2968
|
var tmp = encodeURLParameter(element);
|
|
2949
2969
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2955,15 +2975,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
2955
2975
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
2956
2976
|
destination.b1(tmp$ret$4);
|
|
2957
2977
|
}
|
|
2958
|
-
_this__u8e3s4.
|
|
2978
|
+
_this__u8e3s4.m3x(tmp, destination);
|
|
2959
2979
|
}
|
|
2960
2980
|
}
|
|
2961
2981
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
2962
2982
|
// Inline function 'kotlin.collections.forEach' call
|
|
2963
|
-
var _iterator__ex2g4s = parameters.
|
|
2983
|
+
var _iterator__ex2g4s = parameters.s3x().t();
|
|
2964
2984
|
while (_iterator__ex2g4s.u()) {
|
|
2965
2985
|
var element = _iterator__ex2g4s.v();
|
|
2966
|
-
var tmp0_elvis_lhs = parameters.
|
|
2986
|
+
var tmp0_elvis_lhs = parameters.r3x(element);
|
|
2967
2987
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2968
2988
|
var tmp = decodeURLQueryComponent(element);
|
|
2969
2989
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2975,7 +2995,7 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
2975
2995
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
2976
2996
|
destination.b1(tmp$ret$4);
|
|
2977
2997
|
}
|
|
2978
|
-
_this__u8e3s4.
|
|
2998
|
+
_this__u8e3s4.m3x(tmp, destination);
|
|
2979
2999
|
}
|
|
2980
3000
|
}
|
|
2981
3001
|
function MultiPartData() {
|
|
@@ -2995,20 +3015,20 @@ function ProtocolUpgrade() {
|
|
|
2995
3015
|
}
|
|
2996
3016
|
function ContentWrapper() {
|
|
2997
3017
|
}
|
|
2998
|
-
protoOf(ContentWrapper).
|
|
2999
|
-
return this.
|
|
3018
|
+
protoOf(ContentWrapper).x4e = function () {
|
|
3019
|
+
return this.w4e_1;
|
|
3000
3020
|
};
|
|
3001
3021
|
function OutgoingContent() {
|
|
3002
|
-
this.
|
|
3022
|
+
this.m4e_1 = null;
|
|
3003
3023
|
}
|
|
3004
|
-
protoOf(OutgoingContent).
|
|
3024
|
+
protoOf(OutgoingContent).n4e = function () {
|
|
3005
3025
|
return null;
|
|
3006
3026
|
};
|
|
3007
|
-
protoOf(OutgoingContent).
|
|
3027
|
+
protoOf(OutgoingContent).o4e = function () {
|
|
3008
3028
|
return null;
|
|
3009
3029
|
};
|
|
3010
|
-
protoOf(OutgoingContent).
|
|
3011
|
-
return Companion_getInstance_1().
|
|
3030
|
+
protoOf(OutgoingContent).d49 = function () {
|
|
3031
|
+
return Companion_getInstance_1().y48_1;
|
|
3012
3032
|
};
|
|
3013
3033
|
function NullBody() {
|
|
3014
3034
|
}
|
|
@@ -3022,7 +3042,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3022
3042
|
tmp = true;
|
|
3023
3043
|
} else {
|
|
3024
3044
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3025
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3045
|
+
tmp = isEmpty(_this__u8e3s4.x4e());
|
|
3026
3046
|
} else {
|
|
3027
3047
|
tmp = false;
|
|
3028
3048
|
}
|
|
@@ -3032,27 +3052,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3032
3052
|
function TextContent(text, contentType, status) {
|
|
3033
3053
|
status = status === VOID ? null : status;
|
|
3034
3054
|
ByteArrayContent.call(this);
|
|
3035
|
-
this.
|
|
3036
|
-
this.
|
|
3037
|
-
this.
|
|
3055
|
+
this.z4e_1 = text;
|
|
3056
|
+
this.a4f_1 = contentType;
|
|
3057
|
+
this.b4f_1 = status;
|
|
3038
3058
|
var tmp = this;
|
|
3039
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3040
|
-
tmp.
|
|
3059
|
+
var tmp0_elvis_lhs = charset(this.a4f_1);
|
|
3060
|
+
tmp.c4f_1 = toByteArray(this.z4e_1, tmp0_elvis_lhs == null ? Charsets_getInstance().g3u_1 : tmp0_elvis_lhs);
|
|
3041
3061
|
}
|
|
3042
|
-
protoOf(TextContent).
|
|
3043
|
-
return this.
|
|
3062
|
+
protoOf(TextContent).n4e = function () {
|
|
3063
|
+
return this.a4f_1;
|
|
3044
3064
|
};
|
|
3045
|
-
protoOf(TextContent).
|
|
3046
|
-
return fromInt(this.
|
|
3065
|
+
protoOf(TextContent).o4e = function () {
|
|
3066
|
+
return fromInt(this.c4f_1.length);
|
|
3047
3067
|
};
|
|
3048
|
-
protoOf(TextContent).
|
|
3049
|
-
return this.
|
|
3068
|
+
protoOf(TextContent).u4e = function () {
|
|
3069
|
+
return this.c4f_1;
|
|
3050
3070
|
};
|
|
3051
3071
|
protoOf(TextContent).toString = function () {
|
|
3052
|
-
return 'TextContent[' + this.
|
|
3072
|
+
return 'TextContent[' + this.a4f_1.toString() + '] "' + take(this.z4e_1, 30) + '"';
|
|
3053
3073
|
};
|
|
3054
3074
|
function get_origin(_this__u8e3s4) {
|
|
3055
|
-
return PlatformUtils_getInstance().
|
|
3075
|
+
return PlatformUtils_getInstance().d3x_1 ? locationOrigin() : 'http://localhost';
|
|
3056
3076
|
}
|
|
3057
3077
|
function locationOrigin() {
|
|
3058
3078
|
return function () {
|
|
@@ -3071,9 +3091,9 @@ function locationOrigin() {
|
|
|
3071
3091
|
}
|
|
3072
3092
|
//region block: post-declaration
|
|
3073
3093
|
protoOf(EmptyHeaders).sd = get;
|
|
3074
|
-
protoOf(EmptyHeaders).
|
|
3094
|
+
protoOf(EmptyHeaders).x3x = forEach;
|
|
3075
3095
|
protoOf(EmptyParameters).sd = get;
|
|
3076
|
-
protoOf(EmptyParameters).
|
|
3096
|
+
protoOf(EmptyParameters).x3x = forEach;
|
|
3077
3097
|
//endregion
|
|
3078
3098
|
//region block: init
|
|
3079
3099
|
Companion_instance_0 = new Companion_0();
|