@dmarket/p2p-tracker-core 1.0.1-beta → 1.0.2-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 +2574 -2485
- package/dmarket-p2p-tracker-core-domain.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-core.mjs +451 -451
- package/ktor-ktor-client-core.mjs +1858 -1858
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +313 -313
- package/ktor-ktor-http.mjs +598 -598
- package/ktor-ktor-io.mjs +605 -605
- package/ktor-ktor-utils.mjs +621 -621
- package/ktor-ktor-websockets.mjs +366 -366
- package/p2p-tracker-core.mjs +5887 -5478
- 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().n3u_1.q3u(), _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().n3u_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().n3u_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.q3u(), _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().n3u_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().n3u_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.q3u(), _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.z3f());
|
|
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.u42_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.u42_1.f1(0);
|
|
513
|
+
tmp = (equals(it.v42_1, name, true) && equals(it.w42_1, value, true));
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
var tmp0 = $this.
|
|
516
|
+
var tmp0 = $this.u42_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.v42_1, name, true) && equals(element.w42_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.y42_1 = ContentType_init_$Create$('*', '*');
|
|
549
549
|
}
|
|
550
550
|
protoOf(Companion).ho = function (value) {
|
|
551
551
|
if (isBlank(value))
|
|
552
|
-
return this.
|
|
552
|
+
return this.y42_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.z42_1;
|
|
556
|
+
var parameters = headerValue.a43_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().y42_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.c43_1 = 'application';
|
|
598
|
+
this.d43_1 = ContentType_init_$Create$('application', '*');
|
|
599
|
+
this.e43_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
600
|
+
this.f43_1 = ContentType_init_$Create$('application', 'cbor');
|
|
601
|
+
this.g43_1 = ContentType_init_$Create$('application', 'json');
|
|
602
|
+
this.h43_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
603
|
+
this.i43_1 = ContentType_init_$Create$('application', 'javascript');
|
|
604
|
+
this.j43_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
605
|
+
this.k43_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
606
|
+
this.l43_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
607
|
+
this.m43_1 = ContentType_init_$Create$('application', 'xml');
|
|
608
|
+
this.n43_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
609
|
+
this.o43_1 = ContentType_init_$Create$('application', 'yaml');
|
|
610
|
+
this.p43_1 = ContentType_init_$Create$('application', 'zip');
|
|
611
|
+
this.q43_1 = ContentType_init_$Create$('application', 'gzip');
|
|
612
|
+
this.r43_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
613
|
+
this.s43_1 = ContentType_init_$Create$('application', 'pdf');
|
|
614
|
+
this.t43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
615
|
+
this.u43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
616
|
+
this.v43_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
617
|
+
this.w43_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
618
|
+
this.x43_1 = ContentType_init_$Create$('application', 'wasm');
|
|
619
|
+
this.y43_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
620
|
+
this.z43_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.a44_1 = 'multipart';
|
|
631
|
+
this.b44_1 = ContentType_init_$Create$('multipart', '*');
|
|
632
|
+
this.c44_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
633
|
+
this.d44_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
634
|
+
this.e44_1 = ContentType_init_$Create$('multipart', 'related');
|
|
635
|
+
this.f44_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
636
|
+
this.g44_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
637
|
+
this.h44_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
638
|
+
this.i44_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
639
|
+
}
|
|
640
|
+
protoOf(MultiPart).j44 = 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.k44_1 = 'text';
|
|
652
|
+
this.l44_1 = ContentType_init_$Create$('text', '*');
|
|
653
|
+
this.m44_1 = ContentType_init_$Create$('text', 'plain');
|
|
654
|
+
this.n44_1 = ContentType_init_$Create$('text', 'css');
|
|
655
|
+
this.o44_1 = ContentType_init_$Create$('text', 'csv');
|
|
656
|
+
this.p44_1 = ContentType_init_$Create$('text', 'html');
|
|
657
|
+
this.q44_1 = ContentType_init_$Create$('text', 'javascript');
|
|
658
|
+
this.r44_1 = ContentType_init_$Create$('text', 'vcard');
|
|
659
|
+
this.s44_1 = ContentType_init_$Create$('text', 'xml');
|
|
660
|
+
this.t44_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.w44_1 = contentType;
|
|
673
|
+
this.x44_1 = contentSubtype;
|
|
674
674
|
}
|
|
675
|
-
protoOf(ContentType).
|
|
675
|
+
protoOf(ContentType).y44 = function (name, value) {
|
|
676
676
|
if (hasParameter(this, name, value))
|
|
677
677
|
return this;
|
|
678
|
-
return new ContentType(this.
|
|
678
|
+
return new ContentType(this.w44_1, this.x44_1, this.t42_1, plus_2(this.u42_1, HeaderValueParam_init_$Create$(name, value)));
|
|
679
679
|
};
|
|
680
|
-
protoOf(ContentType).
|
|
681
|
-
if (!(pattern.
|
|
680
|
+
protoOf(ContentType).z44 = function (pattern) {
|
|
681
|
+
if (!(pattern.w44_1 === '*') && !equals(pattern.w44_1, this.w44_1, true)) {
|
|
682
682
|
return false;
|
|
683
683
|
}
|
|
684
|
-
if (!(pattern.
|
|
684
|
+
if (!(pattern.x44_1 === '*') && !equals(pattern.x44_1, this.x44_1, true)) {
|
|
685
685
|
return false;
|
|
686
686
|
}
|
|
687
|
-
var _iterator__ex2g4s = pattern.
|
|
687
|
+
var _iterator__ex2g4s = pattern.u42_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).s44 = function (pattern) {
|
|
|
695
695
|
if (patternValue === '*') {
|
|
696
696
|
tmp_0 = true;
|
|
697
697
|
} else {
|
|
698
|
-
var tmp0 = this.
|
|
698
|
+
var tmp0 = this.u42_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).s44 = 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.w42_1, patternValue, true)) {
|
|
716
716
|
tmp$ret$0 = true;
|
|
717
717
|
break $l$block_0;
|
|
718
718
|
}
|
|
@@ -723,7 +723,7 @@ protoOf(ContentType).s44 = function (pattern) {
|
|
|
723
723
|
}
|
|
724
724
|
tmp = tmp_0;
|
|
725
725
|
} else {
|
|
726
|
-
var value = this.
|
|
726
|
+
var value = this.a45(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.w44_1, other.w44_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.x44_1, other.x44_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.u42_1, other.u42_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.w44_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.x44_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.u42_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.a45('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.y44('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.t42_1 = content;
|
|
825
|
+
this.u42_1 = parameters;
|
|
826
826
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
827
|
+
protoOf(HeaderValueWithParameters).a45 = function (name) {
|
|
828
828
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
829
|
+
var last = get_lastIndex(this.u42_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.u42_1.f1(index);
|
|
835
|
+
if (equals(parameter.v42_1, name, true)) {
|
|
836
|
+
return parameter.w42_1;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
while (!(index === last));
|
|
@@ -841,34 +841,34 @@ protoOf(HeaderValueWithParameters).t44 = function (name) {
|
|
|
841
841
|
};
|
|
842
842
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
843
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
844
|
+
if (this.u42_1.r()) {
|
|
845
|
+
tmp = this.t42_1;
|
|
846
846
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
847
|
+
var tmp_0 = this.t42_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.u42_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.v42_1.length + element.w42_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.t42_1);
|
|
860
860
|
var inductionVariable = 0;
|
|
861
|
-
var last = get_lastIndex(this.
|
|
861
|
+
var last = get_lastIndex(this.u42_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.u42_1.f1(index);
|
|
867
867
|
this_0.q('; ');
|
|
868
|
-
this_0.q(element_0.
|
|
868
|
+
this_0.q(element_0.v42_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.w42_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).d45 = function () {
|
|
971
|
+
return new HeadersImpl(this.v3x_1);
|
|
972
972
|
};
|
|
973
|
-
protoOf(HeadersBuilder).
|
|
974
|
-
protoOf(StringValuesBuilderImpl).
|
|
975
|
-
HttpHeaders_getInstance().
|
|
973
|
+
protoOf(HeadersBuilder).w3x = function (name) {
|
|
974
|
+
protoOf(StringValuesBuilderImpl).w3x.call(this, name);
|
|
975
|
+
HttpHeaders_getInstance().d49(name);
|
|
976
976
|
};
|
|
977
|
-
protoOf(HeadersBuilder).
|
|
978
|
-
protoOf(StringValuesBuilderImpl).
|
|
979
|
-
HttpHeaders_getInstance().
|
|
977
|
+
protoOf(HeadersBuilder).b3y = function (value) {
|
|
978
|
+
protoOf(StringValuesBuilderImpl).b3y.call(this, value);
|
|
979
|
+
HttpHeaders_getInstance().e49(value);
|
|
980
980
|
};
|
|
981
981
|
function Companion_1() {
|
|
982
982
|
Companion_instance_1 = this;
|
|
983
|
-
this.
|
|
983
|
+
this.f49_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.s3x());
|
|
1000
1000
|
};
|
|
1001
1001
|
function EmptyHeaders() {
|
|
1002
1002
|
}
|
|
1003
|
-
protoOf(EmptyHeaders).
|
|
1003
|
+
protoOf(EmptyHeaders).x3x = function () {
|
|
1004
1004
|
return true;
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(EmptyHeaders).
|
|
1006
|
+
protoOf(EmptyHeaders).y3x = function (name) {
|
|
1007
1007
|
return null;
|
|
1008
1008
|
};
|
|
1009
|
-
protoOf(EmptyHeaders).
|
|
1009
|
+
protoOf(EmptyHeaders).z3x = function () {
|
|
1010
1010
|
return emptySet();
|
|
1011
1011
|
};
|
|
1012
|
-
protoOf(EmptyHeaders).
|
|
1012
|
+
protoOf(EmptyHeaders).s3x = 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.s3x());
|
|
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.s3x());
|
|
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.v42_1 = name;
|
|
1040
|
+
this.w42_1 = value;
|
|
1041
|
+
this.x42_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.v42_1, this.v42_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.w42_1, this.w42_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.v42_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.w42_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.v42_1;
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(HeaderValueParam).yg = function () {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.w42_1;
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(HeaderValueParam).toString = function () {
|
|
1078
|
-
return 'HeaderValueParam(name=' + this.
|
|
1078
|
+
return 'HeaderValueParam(name=' + this.v42_1 + ', value=' + this.w42_1 + ', escapeValue=' + this.x42_1 + ')';
|
|
1079
1079
|
};
|
|
1080
1080
|
function HeaderValue(value, params) {
|
|
1081
1081
|
params = params === VOID ? emptyList() : params;
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1082
|
+
this.z42_1 = value;
|
|
1083
|
+
this.a43_1 = params;
|
|
1084
1084
|
var tmp = this;
|
|
1085
|
-
var tmp0 = this.
|
|
1085
|
+
var tmp0 = this.a43_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.v42_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.w42_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.b43_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.z42_1 + ', params=' + toString(this.a43_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.z42_1);
|
|
1123
|
+
result = imul(result, 31) + hashCode(this.a43_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.z42_1 === other.z42_1))
|
|
1132
1132
|
return false;
|
|
1133
|
-
if (!equals_0(this.
|
|
1133
|
+
if (!equals_0(this.a43_1, other.a43_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.e45_1 = 'Accept';
|
|
1277
|
+
this.f45_1 = 'Accept-Charset';
|
|
1278
|
+
this.g45_1 = 'Accept-Encoding';
|
|
1279
|
+
this.h45_1 = 'Accept-Language';
|
|
1280
|
+
this.i45_1 = 'Accept-Ranges';
|
|
1281
|
+
this.j45_1 = 'Age';
|
|
1282
|
+
this.k45_1 = 'Allow';
|
|
1283
|
+
this.l45_1 = 'ALPN';
|
|
1284
|
+
this.m45_1 = 'Authentication-Info';
|
|
1285
|
+
this.n45_1 = 'Authorization';
|
|
1286
|
+
this.o45_1 = 'Cache-Control';
|
|
1287
|
+
this.p45_1 = 'Connection';
|
|
1288
|
+
this.q45_1 = 'Content-Disposition';
|
|
1289
|
+
this.r45_1 = 'Content-Encoding';
|
|
1290
|
+
this.s45_1 = 'Content-Language';
|
|
1291
|
+
this.t45_1 = 'Content-Length';
|
|
1292
|
+
this.u45_1 = 'Content-Location';
|
|
1293
|
+
this.v45_1 = 'Content-Range';
|
|
1294
|
+
this.w45_1 = 'Content-Type';
|
|
1295
|
+
this.x45_1 = 'Cookie';
|
|
1296
|
+
this.y45_1 = 'DASL';
|
|
1297
|
+
this.z45_1 = 'Date';
|
|
1298
|
+
this.a46_1 = 'DAV';
|
|
1299
|
+
this.b46_1 = 'Depth';
|
|
1300
|
+
this.c46_1 = 'Destination';
|
|
1301
|
+
this.d46_1 = 'ETag';
|
|
1302
|
+
this.e46_1 = 'Expect';
|
|
1303
|
+
this.f46_1 = 'Expires';
|
|
1304
|
+
this.g46_1 = 'From';
|
|
1305
|
+
this.h46_1 = 'Forwarded';
|
|
1306
|
+
this.i46_1 = 'Host';
|
|
1307
|
+
this.j46_1 = 'HTTP2-Settings';
|
|
1308
|
+
this.k46_1 = 'If';
|
|
1309
|
+
this.l46_1 = 'If-Match';
|
|
1310
|
+
this.m46_1 = 'If-Modified-Since';
|
|
1311
|
+
this.n46_1 = 'If-None-Match';
|
|
1312
|
+
this.o46_1 = 'If-Range';
|
|
1313
|
+
this.p46_1 = 'If-Schedule-Tag-Match';
|
|
1314
|
+
this.q46_1 = 'If-Unmodified-Since';
|
|
1315
|
+
this.r46_1 = 'Last-Modified';
|
|
1316
|
+
this.s46_1 = 'Location';
|
|
1317
|
+
this.t46_1 = 'Lock-Token';
|
|
1318
|
+
this.u46_1 = 'Link';
|
|
1319
|
+
this.v46_1 = 'Max-Forwards';
|
|
1320
|
+
this.w46_1 = 'MIME-Version';
|
|
1321
|
+
this.x46_1 = 'Ordering-Type';
|
|
1322
|
+
this.y46_1 = 'Origin';
|
|
1323
|
+
this.z46_1 = 'Overwrite';
|
|
1324
|
+
this.a47_1 = 'Position';
|
|
1325
|
+
this.b47_1 = 'Pragma';
|
|
1326
|
+
this.c47_1 = 'Prefer';
|
|
1327
|
+
this.d47_1 = 'Preference-Applied';
|
|
1328
|
+
this.e47_1 = 'Proxy-Authenticate';
|
|
1329
|
+
this.f47_1 = 'Proxy-Authentication-Info';
|
|
1330
|
+
this.g47_1 = 'Proxy-Authorization';
|
|
1331
|
+
this.h47_1 = 'Public-Key-Pins';
|
|
1332
|
+
this.i47_1 = 'Public-Key-Pins-Report-Only';
|
|
1333
|
+
this.j47_1 = 'Range';
|
|
1334
|
+
this.k47_1 = 'Referer';
|
|
1335
|
+
this.l47_1 = 'Retry-After';
|
|
1336
|
+
this.m47_1 = 'Schedule-Reply';
|
|
1337
|
+
this.n47_1 = 'Schedule-Tag';
|
|
1338
|
+
this.o47_1 = 'Sec-WebSocket-Accept';
|
|
1339
|
+
this.p47_1 = 'Sec-WebSocket-Extensions';
|
|
1340
|
+
this.q47_1 = 'Sec-WebSocket-Key';
|
|
1341
|
+
this.r47_1 = 'Sec-WebSocket-Protocol';
|
|
1342
|
+
this.s47_1 = 'Sec-WebSocket-Version';
|
|
1343
|
+
this.t47_1 = 'Server';
|
|
1344
|
+
this.u47_1 = 'Set-Cookie';
|
|
1345
|
+
this.v47_1 = 'SLUG';
|
|
1346
|
+
this.w47_1 = 'Strict-Transport-Security';
|
|
1347
|
+
this.x47_1 = 'TE';
|
|
1348
|
+
this.y47_1 = 'Timeout';
|
|
1349
|
+
this.z47_1 = 'Trailer';
|
|
1350
|
+
this.a48_1 = 'Transfer-Encoding';
|
|
1351
|
+
this.b48_1 = 'Upgrade';
|
|
1352
|
+
this.c48_1 = 'User-Agent';
|
|
1353
|
+
this.d48_1 = 'Vary';
|
|
1354
|
+
this.e48_1 = 'Via';
|
|
1355
|
+
this.f48_1 = 'Warning';
|
|
1356
|
+
this.g48_1 = 'WWW-Authenticate';
|
|
1357
|
+
this.h48_1 = 'Access-Control-Allow-Origin';
|
|
1358
|
+
this.i48_1 = 'Access-Control-Allow-Methods';
|
|
1359
|
+
this.j48_1 = 'Access-Control-Allow-Credentials';
|
|
1360
|
+
this.k48_1 = 'Access-Control-Allow-Headers';
|
|
1361
|
+
this.l48_1 = 'Access-Control-Request-Method';
|
|
1362
|
+
this.m48_1 = 'Access-Control-Request-Headers';
|
|
1363
|
+
this.n48_1 = 'Access-Control-Expose-Headers';
|
|
1364
|
+
this.o48_1 = 'Access-Control-Max-Age';
|
|
1365
|
+
this.p48_1 = 'X-Http-Method-Override';
|
|
1366
|
+
this.q48_1 = 'X-Forwarded-Host';
|
|
1367
|
+
this.r48_1 = 'X-Forwarded-Server';
|
|
1368
|
+
this.s48_1 = 'X-Forwarded-Proto';
|
|
1369
|
+
this.t48_1 = 'X-Forwarded-For';
|
|
1370
|
+
this.u48_1 = 'X-Forwarded-Port';
|
|
1371
|
+
this.v48_1 = 'X-Request-ID';
|
|
1372
|
+
this.w48_1 = 'X-Correlation-ID';
|
|
1373
|
+
this.x48_1 = 'X-Total-Count';
|
|
1374
|
+
this.y48_1 = 'Last-Event-ID';
|
|
1375
|
+
this.z48_1 = 'TDM-Reservation';
|
|
1376
|
+
this.a49_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.b49_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1382
|
+
this.c49_1 = asList(this.b49_1);
|
|
1383
1383
|
}
|
|
1384
|
-
protoOf(HttpHeaders).
|
|
1384
|
+
protoOf(HttpHeaders).d49 = 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).w48 = function (name) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(HttpHeaders).
|
|
1398
|
+
protoOf(HttpHeaders).e49 = 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.g49_1 = headerName;
|
|
1433
|
+
this.h49_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.i49_1 = headerValue;
|
|
1443
|
+
this.j49_1 = position;
|
|
1444
1444
|
}
|
|
1445
1445
|
function contentType(_this__u8e3s4) {
|
|
1446
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1446
|
+
var tmp0_safe_receiver = _this__u8e3s4.k49().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.k49().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.k49().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.k49().a3y('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.l49_1 = new HttpMethod('GET');
|
|
1486
|
+
this.m49_1 = new HttpMethod('POST');
|
|
1487
|
+
this.n49_1 = new HttpMethod('PUT');
|
|
1488
|
+
this.o49_1 = new HttpMethod('PATCH');
|
|
1489
|
+
this.p49_1 = new HttpMethod('DELETE');
|
|
1490
|
+
this.q49_1 = new HttpMethod('HEAD');
|
|
1491
|
+
this.r49_1 = new HttpMethod('OPTIONS');
|
|
1492
|
+
this.s49_1 = new HttpMethod('TRACE');
|
|
1493
|
+
this.t49_1 = new HttpMethod('QUERY');
|
|
1494
|
+
this.u49_1 = listOf([this.l49_1, this.m49_1, this.n49_1, this.o49_1, this.p49_1, this.q49_1, this.r49_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.v49_1 = value;
|
|
1505
1505
|
}
|
|
1506
1506
|
protoOf(HttpMethod).toString = function () {
|
|
1507
|
-
return this.
|
|
1507
|
+
return this.v49_1;
|
|
1508
1508
|
};
|
|
1509
1509
|
protoOf(HttpMethod).hashCode = function () {
|
|
1510
|
-
return getStringHashCode(this.
|
|
1510
|
+
return getStringHashCode(this.v49_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.v49_1 === other.v49_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().l49_1, Companion_getInstance_2().q49_1, Companion_getInstance_2().r49_1, Companion_getInstance_2().s49_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.w49_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1535
|
+
this.x49_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1536
|
+
this.y49_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1537
|
+
this.z49_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1538
|
+
this.a4a_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1539
|
+
this.b4a_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.c4a_1 = name;
|
|
1550
|
+
this.d4a_1 = major;
|
|
1551
|
+
this.e4a_1 = minor;
|
|
1552
1552
|
}
|
|
1553
1553
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1554
|
-
return this.
|
|
1554
|
+
return this.c4a_1 + '/' + this.d4a_1 + '.' + this.e4a_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.c4a_1);
|
|
1558
|
+
result = imul(result, 31) + this.d4a_1 | 0;
|
|
1559
|
+
result = imul(result, 31) + this.e4a_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.c4a_1 === other.c4a_1))
|
|
1568
1568
|
return false;
|
|
1569
|
-
if (!(this.
|
|
1569
|
+
if (!(this.d4a_1 === other.d4a_1))
|
|
1570
1570
|
return false;
|
|
1571
|
-
if (!(this.
|
|
1571
|
+
if (!(this.e4a_1 === other.e4a_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.f4a_1 = new HttpStatusCode(100, 'Continue');
|
|
1578
|
+
this.g4a_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1579
|
+
this.h4a_1 = new HttpStatusCode(102, 'Processing');
|
|
1580
|
+
this.i4a_1 = new HttpStatusCode(200, 'OK');
|
|
1581
|
+
this.j4a_1 = new HttpStatusCode(201, 'Created');
|
|
1582
|
+
this.k4a_1 = new HttpStatusCode(202, 'Accepted');
|
|
1583
|
+
this.l4a_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1584
|
+
this.m4a_1 = new HttpStatusCode(204, 'No Content');
|
|
1585
|
+
this.n4a_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1586
|
+
this.o4a_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1587
|
+
this.p4a_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1588
|
+
this.q4a_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1589
|
+
this.r4a_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1590
|
+
this.s4a_1 = new HttpStatusCode(302, 'Found');
|
|
1591
|
+
this.t4a_1 = new HttpStatusCode(303, 'See Other');
|
|
1592
|
+
this.u4a_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1593
|
+
this.v4a_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1594
|
+
this.w4a_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1595
|
+
this.x4a_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1596
|
+
this.y4a_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1597
|
+
this.z4a_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1598
|
+
this.a4b_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1599
|
+
this.b4b_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1600
|
+
this.c4b_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1601
|
+
this.d4b_1 = new HttpStatusCode(404, 'Not Found');
|
|
1602
|
+
this.e4b_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1603
|
+
this.f4b_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1604
|
+
this.g4b_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1605
|
+
this.h4b_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1606
|
+
this.i4b_1 = new HttpStatusCode(409, 'Conflict');
|
|
1607
|
+
this.j4b_1 = new HttpStatusCode(410, 'Gone');
|
|
1608
|
+
this.k4b_1 = new HttpStatusCode(411, 'Length Required');
|
|
1609
|
+
this.l4b_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1610
|
+
this.m4b_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1611
|
+
this.n4b_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1612
|
+
this.o4b_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1613
|
+
this.p4b_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1614
|
+
this.q4b_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1615
|
+
this.r4b_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1616
|
+
this.s4b_1 = new HttpStatusCode(423, 'Locked');
|
|
1617
|
+
this.t4b_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1618
|
+
this.u4b_1 = new HttpStatusCode(425, 'Too Early');
|
|
1619
|
+
this.v4b_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1620
|
+
this.w4b_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1621
|
+
this.x4b_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1622
|
+
this.y4b_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1623
|
+
this.z4b_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1624
|
+
this.a4c_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1625
|
+
this.b4c_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1626
|
+
this.c4c_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1627
|
+
this.d4c_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1628
|
+
this.e4c_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1629
|
+
this.f4c_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1630
|
+
this.g4c_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.g4c_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.i4c_1;
|
|
1641
1641
|
destination.b3(tmp$ret$2, element);
|
|
1642
1642
|
}
|
|
1643
|
-
tmp.
|
|
1643
|
+
tmp.h4c_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.i4c_1 = value;
|
|
1654
|
+
this.j4c_1 = description;
|
|
1655
1655
|
}
|
|
1656
1656
|
protoOf(HttpStatusCode).toString = function () {
|
|
1657
|
-
return '' + this.
|
|
1657
|
+
return '' + this.i4c_1 + ' ' + this.j4c_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.i4c_1 === this.i4c_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.i4c_1;
|
|
1670
1670
|
};
|
|
1671
|
-
protoOf(HttpStatusCode).
|
|
1672
|
-
return this.
|
|
1671
|
+
protoOf(HttpStatusCode).k4c = function (other) {
|
|
1672
|
+
return this.i4c_1 - other.i4c_1 | 0;
|
|
1673
1673
|
};
|
|
1674
1674
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1675
|
-
return this.
|
|
1675
|
+
return this.k4c(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1676
1676
|
};
|
|
1677
1677
|
function allStatusCodes() {
|
|
1678
|
-
return listOf([Companion_getInstance_4().
|
|
1678
|
+
return listOf([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, Companion_getInstance_4().z4b_1, Companion_getInstance_4().a4c_1, Companion_getInstance_4().b4c_1, Companion_getInstance_4().c4c_1, Companion_getInstance_4().d4c_1, Companion_getInstance_4().e4c_1, Companion_getInstance_4().f4c_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.s3x();
|
|
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.l4c_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).x3x = function () {
|
|
1739
1739
|
return true;
|
|
1740
1740
|
};
|
|
1741
|
-
protoOf(EmptyParameters).
|
|
1741
|
+
protoOf(EmptyParameters).y3x = function (name) {
|
|
1742
1742
|
return null;
|
|
1743
1743
|
};
|
|
1744
|
-
protoOf(EmptyParameters).
|
|
1744
|
+
protoOf(EmptyParameters).z3x = function () {
|
|
1745
1745
|
return emptySet();
|
|
1746
1746
|
};
|
|
1747
|
-
protoOf(EmptyParameters).
|
|
1747
|
+
protoOf(EmptyParameters).s3x = 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.s3x());
|
|
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).d45 = function () {
|
|
1778
|
+
return new ParametersImpl(this.v3x_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.s3x());
|
|
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.d45();
|
|
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().l4c_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.d45();
|
|
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.t3x(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.c3y(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.o4c_1;
|
|
1881
1881
|
if (charSequenceLength(this_0) > 0) {
|
|
1882
1882
|
tmp = true;
|
|
1883
1883
|
} else {
|
|
1884
|
-
tmp = $this.
|
|
1884
|
+
tmp = $this.a4d().y4c_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.o4c_1 = Companion_getInstance_6().u4d_1.b4d_1;
|
|
1889
|
+
if ($this.r4c_1 == null)
|
|
1890
|
+
$this.r4c_1 = Companion_getInstance_6().u4d_1.m4d_1;
|
|
1891
|
+
if ($this.q4c_1 === 0) {
|
|
1892
|
+
$this.w4d(Companion_getInstance_6().u4d_1.c4d_1);
|
|
1893
1893
|
}
|
|
1894
1894
|
}
|
|
1895
1895
|
function Companion_6() {
|
|
1896
1896
|
Companion_instance_6 = this;
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1897
|
+
this.u4d_1 = Url(get_origin(this));
|
|
1898
|
+
this.v4d_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().l4c_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.o4c_1 = host;
|
|
1918
|
+
this.p4c_1 = trailingQuery;
|
|
1919
|
+
this.q4c_1 = port;
|
|
1920
|
+
this.r4c_1 = protocol;
|
|
1921
1921
|
var tmp = this;
|
|
1922
|
-
tmp.
|
|
1922
|
+
tmp.s4c_1 = user == null ? null : encodeURLParameter(user);
|
|
1923
1923
|
var tmp_0 = this;
|
|
1924
|
-
tmp_0.
|
|
1925
|
-
this.
|
|
1924
|
+
tmp_0.t4c_1 = password == null ? null : encodeURLParameter(password);
|
|
1925
|
+
this.u4c_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.v4c_1 = destination;
|
|
1937
|
+
this.w4c_1 = encodeParameters(parameters);
|
|
1938
|
+
this.x4c_1 = new UrlDecodedParametersBuilder(this.w4c_1);
|
|
1939
1939
|
}
|
|
1940
|
-
protoOf(URLBuilder).
|
|
1940
|
+
protoOf(URLBuilder).w4d = 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.q4c_1 = value;
|
|
1947
1947
|
};
|
|
1948
|
-
protoOf(URLBuilder).
|
|
1949
|
-
this.
|
|
1948
|
+
protoOf(URLBuilder).x4d = function (value) {
|
|
1949
|
+
this.r4c_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).a4d = function () {
|
|
1952
|
+
var tmp0_elvis_lhs = this.r4c_1;
|
|
1953
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().y4d_1 : tmp0_elvis_lhs;
|
|
1954
1954
|
};
|
|
1955
|
-
protoOf(URLBuilder).
|
|
1955
|
+
protoOf(URLBuilder).e4e = function (value) {
|
|
1956
1956
|
var tmp = this;
|
|
1957
|
-
tmp.
|
|
1957
|
+
tmp.s4c_1 = value == null ? null : encodeURLParameter(value);
|
|
1958
1958
|
};
|
|
1959
|
-
protoOf(URLBuilder).
|
|
1960
|
-
var tmp0_safe_receiver = this.
|
|
1959
|
+
protoOf(URLBuilder).f4e = function () {
|
|
1960
|
+
var tmp0_safe_receiver = this.s4c_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).g4e = function () {
|
|
1964
|
+
var tmp0_safe_receiver = this.t4c_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).h4e = function () {
|
|
1968
|
+
return decodeURLQueryComponent(this.u4c_1);
|
|
1969
1969
|
};
|
|
1970
|
-
protoOf(URLBuilder).
|
|
1970
|
+
protoOf(URLBuilder).i4e = function () {
|
|
1971
1971
|
// Inline function 'kotlin.collections.map' call
|
|
1972
|
-
var this_0 = this.
|
|
1972
|
+
var this_0 = this.v4c_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).b4e = function () {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
return destination;
|
|
1982
1982
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
1983
|
+
protoOf(URLBuilder).j4e = function (value) {
|
|
1984
|
+
this.w4c_1 = value;
|
|
1985
|
+
this.x4c_1 = new UrlDecodedParametersBuilder(value);
|
|
1986
1986
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1987
|
+
protoOf(URLBuilder).k4e = 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).d45 = function () {
|
|
1995
1995
|
applyOrigin(this);
|
|
1996
|
-
return new Url_0(this.
|
|
1996
|
+
return new Url_0(this.r4c_1, this.o4c_1, this.q4c_1, this.i4e(), this.x4c_1.d45(), this.h4e(), this.f4e(), this.g4e(), this.p4c_1, this.k4e());
|
|
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.o4c_1);
|
|
2004
|
+
if (!(_this__u8e3s4.q4c_1 === 0) && !(_this__u8e3s4.q4c_1 === _this__u8e3s4.a4d().z4c_1)) {
|
|
2005
2005
|
this_0.q(':');
|
|
2006
|
-
this_0.q(_this__u8e3s4.
|
|
2006
|
+
this_0.q(_this__u8e3s4.q4c_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.a4d().y4c_1);
|
|
2012
|
+
switch (_this__u8e3s4.a4d().y4c_1) {
|
|
2013
2013
|
case 'file':
|
|
2014
|
-
appendFile(out, _this__u8e3s4.
|
|
2014
|
+
appendFile(out, _this__u8e3s4.o4c_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.o4c_1);
|
|
2018
2018
|
return out;
|
|
2019
2019
|
case 'about':
|
|
2020
|
-
appendPayload(out, _this__u8e3s4.
|
|
2020
|
+
appendPayload(out, _this__u8e3s4.o4c_1);
|
|
2021
2021
|
return out;
|
|
2022
2022
|
case 'tel':
|
|
2023
|
-
appendPayload(out, _this__u8e3s4.
|
|
2023
|
+
appendPayload(out, _this__u8e3s4.o4c_1);
|
|
2024
2024
|
return out;
|
|
2025
2025
|
case 'data':
|
|
2026
|
-
appendPayload(out, _this__u8e3s4.
|
|
2026
|
+
appendPayload(out, _this__u8e3s4.o4c_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.w4c_1, _this__u8e3s4.p4c_1);
|
|
2032
2032
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2033
|
-
var this_0 = _this__u8e3s4.
|
|
2033
|
+
var this_0 = _this__u8e3s4.u4c_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.u4c_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.s4c_1, _this__u8e3s4.t4c_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.v4c_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.v4c_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.x4d(Companion_getInstance_7().l4e(scheme));
|
|
2148
2148
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2149
2149
|
}
|
|
2150
|
-
if (_this__u8e3s4.
|
|
2151
|
-
_this__u8e3s4.
|
|
2150
|
+
if (_this__u8e3s4.a4d().y4c_1 === 'data') {
|
|
2151
|
+
_this__u8e3s4.o4c_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.a4d().y4c_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.a4d().y4c_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.a4d().y4c_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.o4c_1 = substring(urlString, startIndex, endIndex);
|
|
2178
2178
|
return _this__u8e3s4;
|
|
2179
2179
|
}
|
|
2180
|
-
if (_this__u8e3s4.
|
|
2180
|
+
if (_this__u8e3s4.a4d().y4c_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.o4c_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.s4c_1 = substring(urlString, startIndex, passwordIndex);
|
|
2206
|
+
_this__u8e3s4.t4c_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2207
2207
|
} else {
|
|
2208
|
-
_this__u8e3s4.
|
|
2208
|
+
_this__u8e3s4.s4c_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.v4c_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.v4c_1, 1);
|
|
2226
2226
|
} else {
|
|
2227
2227
|
tmp_1 = emptyList();
|
|
2228
2228
|
}
|
|
2229
|
-
tmp_0.
|
|
2229
|
+
tmp_0.v4c_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.v4c_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.v4c_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.v4c_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.v4c_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.o4c_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.o4c_1 = substring(urlString, startIndex, endIndex);
|
|
2316
2316
|
return Unit_instance;
|
|
2317
2317
|
}
|
|
2318
2318
|
|
|
2319
|
-
_this__u8e3s4.
|
|
2319
|
+
_this__u8e3s4.o4c_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.o4c_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.e4e(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2337
|
+
_this__u8e3s4.o4c_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2338
2338
|
}
|
|
2339
2339
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2340
2340
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2388,19 +2388,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2388
2388
|
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2389
2389
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2390
2390
|
}
|
|
2391
|
-
_this__u8e3s4.
|
|
2391
|
+
_this__u8e3s4.o4c_1 = hostValue;
|
|
2392
2392
|
var tmp_0;
|
|
2393
2393
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2394
2394
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2395
2395
|
} else {
|
|
2396
2396
|
tmp_0 = 0;
|
|
2397
2397
|
}
|
|
2398
|
-
_this__u8e3s4.
|
|
2398
|
+
_this__u8e3s4.w4d(tmp_0);
|
|
2399
2399
|
}
|
|
2400
2400
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2401
2401
|
_init_properties_URLParser_kt__sf11to();
|
|
2402
2402
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2403
|
-
_this__u8e3s4.
|
|
2403
|
+
_this__u8e3s4.p4c_1 = true;
|
|
2404
2404
|
return endIndex;
|
|
2405
2405
|
}
|
|
2406
2406
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2414,18 +2414,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2414
2414
|
var tmp0_elvis_lhs = tmp;
|
|
2415
2415
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2416
2416
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2417
|
-
rawParameters.
|
|
2417
|
+
rawParameters.e3y(parseQuery$lambda(_this__u8e3s4));
|
|
2418
2418
|
return fragmentStart;
|
|
2419
2419
|
}
|
|
2420
2420
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2421
2421
|
_init_properties_URLParser_kt__sf11to();
|
|
2422
2422
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2423
|
-
_this__u8e3s4.
|
|
2423
|
+
_this__u8e3s4.u4c_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
function parseQuery$lambda($this_parseQuery) {
|
|
2427
2427
|
return function (key, values) {
|
|
2428
|
-
$this_parseQuery.
|
|
2428
|
+
$this_parseQuery.w4c_1.t3x(key, values);
|
|
2429
2429
|
return Unit_instance;
|
|
2430
2430
|
};
|
|
2431
2431
|
}
|
|
@@ -2438,29 +2438,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
function Companion_7() {
|
|
2440
2440
|
Companion_instance_7 = this;
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2443
|
-
this.
|
|
2444
|
-
this.
|
|
2445
|
-
this.
|
|
2441
|
+
this.y4d_1 = new URLProtocol('http', 80);
|
|
2442
|
+
this.z4d_1 = new URLProtocol('https', 443);
|
|
2443
|
+
this.a4e_1 = new URLProtocol('ws', 80);
|
|
2444
|
+
this.b4e_1 = new URLProtocol('wss', 443);
|
|
2445
|
+
this.c4e_1 = new URLProtocol('socks', 1080);
|
|
2446
2446
|
var tmp = this;
|
|
2447
2447
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2448
|
-
var this_0 = listOf([this.
|
|
2448
|
+
var this_0 = listOf([this.y4d_1, this.z4d_1, this.a4e_1, this.b4e_1, this.c4e_1]);
|
|
2449
2449
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2450
2450
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2451
2451
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2452
2452
|
var _iterator__ex2g4s = this_0.t();
|
|
2453
2453
|
while (_iterator__ex2g4s.u()) {
|
|
2454
2454
|
var element = _iterator__ex2g4s.v();
|
|
2455
|
-
var tmp$ret$2 = element.
|
|
2455
|
+
var tmp$ret$2 = element.y4c_1;
|
|
2456
2456
|
destination.b3(tmp$ret$2, element);
|
|
2457
2457
|
}
|
|
2458
|
-
tmp.
|
|
2458
|
+
tmp.d4e_1 = destination;
|
|
2459
2459
|
}
|
|
2460
|
-
protoOf(Companion_7).
|
|
2460
|
+
protoOf(Companion_7).l4e = function (name) {
|
|
2461
2461
|
// Inline function 'kotlin.let' call
|
|
2462
2462
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2463
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2463
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().d4e_1.s2(it);
|
|
2464
2464
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2465
2465
|
};
|
|
2466
2466
|
var Companion_instance_7;
|
|
@@ -2471,9 +2471,9 @@ function Companion_getInstance_7() {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
function URLProtocol(name, defaultPort) {
|
|
2473
2473
|
Companion_getInstance_7();
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
var tmp0 = this.
|
|
2474
|
+
this.y4c_1 = name;
|
|
2475
|
+
this.z4c_1 = defaultPort;
|
|
2476
|
+
var tmp0 = this.y4c_1;
|
|
2477
2477
|
var tmp$ret$0;
|
|
2478
2478
|
$l$block: {
|
|
2479
2479
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2495,11 +2495,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
2497
|
protoOf(URLProtocol).toString = function () {
|
|
2498
|
-
return 'URLProtocol(name=' + this.
|
|
2498
|
+
return 'URLProtocol(name=' + this.y4c_1 + ', defaultPort=' + this.z4c_1 + ')';
|
|
2499
2499
|
};
|
|
2500
2500
|
protoOf(URLProtocol).hashCode = function () {
|
|
2501
|
-
var result = getStringHashCode(this.
|
|
2502
|
-
result = imul(result, 31) + this.
|
|
2501
|
+
var result = getStringHashCode(this.y4c_1);
|
|
2502
|
+
result = imul(result, 31) + this.z4c_1 | 0;
|
|
2503
2503
|
return result;
|
|
2504
2504
|
};
|
|
2505
2505
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2507,35 +2507,35 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2507
2507
|
return true;
|
|
2508
2508
|
if (!(other instanceof URLProtocol))
|
|
2509
2509
|
return false;
|
|
2510
|
-
if (!(this.
|
|
2510
|
+
if (!(this.y4c_1 === other.y4c_1))
|
|
2511
2511
|
return false;
|
|
2512
|
-
if (!(this.
|
|
2512
|
+
if (!(this.z4c_1 === other.z4c_1))
|
|
2513
2513
|
return false;
|
|
2514
2514
|
return true;
|
|
2515
2515
|
};
|
|
2516
2516
|
function isSecure(_this__u8e3s4) {
|
|
2517
|
-
return _this__u8e3s4.
|
|
2517
|
+
return _this__u8e3s4.y4c_1 === 'https' || _this__u8e3s4.y4c_1 === 'wss';
|
|
2518
2518
|
}
|
|
2519
2519
|
function isWebsocket(_this__u8e3s4) {
|
|
2520
|
-
return _this__u8e3s4.
|
|
2520
|
+
return _this__u8e3s4.y4c_1 === 'ws' || _this__u8e3s4.y4c_1 === 'wss';
|
|
2521
2521
|
}
|
|
2522
2522
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2523
|
-
_this__u8e3s4.
|
|
2524
|
-
_this__u8e3s4.h4c_1 = url.h4c_1;
|
|
2525
|
-
_this__u8e3s4.p4d(url.j4c_1);
|
|
2523
|
+
_this__u8e3s4.r4c_1 = url.r4c_1;
|
|
2526
2524
|
_this__u8e3s4.o4c_1 = url.o4c_1;
|
|
2527
|
-
_this__u8e3s4.
|
|
2528
|
-
_this__u8e3s4.
|
|
2525
|
+
_this__u8e3s4.w4d(url.q4c_1);
|
|
2526
|
+
_this__u8e3s4.v4c_1 = url.v4c_1;
|
|
2527
|
+
_this__u8e3s4.s4c_1 = url.s4c_1;
|
|
2528
|
+
_this__u8e3s4.t4c_1 = url.t4c_1;
|
|
2529
2529
|
// Inline function 'kotlin.apply' call
|
|
2530
2530
|
var this_0 = ParametersBuilder();
|
|
2531
|
-
appendAll(this_0, url.
|
|
2532
|
-
_this__u8e3s4.
|
|
2533
|
-
_this__u8e3s4.
|
|
2534
|
-
_this__u8e3s4.
|
|
2531
|
+
appendAll(this_0, url.w4c_1);
|
|
2532
|
+
_this__u8e3s4.j4e(this_0);
|
|
2533
|
+
_this__u8e3s4.u4c_1 = url.u4c_1;
|
|
2534
|
+
_this__u8e3s4.p4c_1 = url.p4c_1;
|
|
2535
2535
|
return _this__u8e3s4;
|
|
2536
2536
|
}
|
|
2537
2537
|
function Url(urlString) {
|
|
2538
|
-
return URLBuilder_0(urlString).
|
|
2538
|
+
return URLBuilder_0(urlString).d45();
|
|
2539
2539
|
}
|
|
2540
2540
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2541
2541
|
var tmp;
|
|
@@ -2553,7 +2553,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2553
2553
|
_this__u8e3s4.c1('?');
|
|
2554
2554
|
}
|
|
2555
2555
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2556
|
-
var tmp0 = encodedQueryParameters.
|
|
2556
|
+
var tmp0 = encodedQueryParameters.s3x();
|
|
2557
2557
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2558
2558
|
var destination = ArrayList_init_$Create$_0();
|
|
2559
2559
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -2599,11 +2599,11 @@ function URLBuilder_0(urlString) {
|
|
|
2599
2599
|
return takeFrom(new URLBuilder(), urlString);
|
|
2600
2600
|
}
|
|
2601
2601
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2602
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2603
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2602
|
+
var tmp0_subject = _this__u8e3s4.c4d_1;
|
|
2603
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.n4d_1.z4c_1 ? _this__u8e3s4.b4d_1 : get_hostWithPort(_this__u8e3s4);
|
|
2604
2604
|
}
|
|
2605
2605
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2606
|
-
return _this__u8e3s4.
|
|
2606
|
+
return _this__u8e3s4.b4d_1 + ':' + _this__u8e3s4.m4e();
|
|
2607
2607
|
}
|
|
2608
2608
|
function appendUrlFullPath$lambda(it) {
|
|
2609
2609
|
var key = it.sg_1;
|
|
@@ -2661,146 +2661,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2661
2661
|
if ($pathSegments.r()) {
|
|
2662
2662
|
return '';
|
|
2663
2663
|
}
|
|
2664
|
-
var pathStartIndex = indexOf(this$0.
|
|
2664
|
+
var pathStartIndex = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(47), this$0.n4d_1.y4c_1.length + 3 | 0);
|
|
2665
2665
|
var tmp_0;
|
|
2666
2666
|
if (pathStartIndex === -1) {
|
|
2667
2667
|
return '';
|
|
2668
2668
|
}
|
|
2669
2669
|
// Inline function 'kotlin.charArrayOf' call
|
|
2670
2670
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2671
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2671
|
+
var pathEndIndex = indexOfAny(this$0.i4d_1, tmp$ret$0, pathStartIndex);
|
|
2672
2672
|
var tmp_1;
|
|
2673
2673
|
if (pathEndIndex === -1) {
|
|
2674
|
-
return substring_0(this$0.
|
|
2674
|
+
return substring_0(this$0.i4d_1, pathStartIndex);
|
|
2675
2675
|
}
|
|
2676
|
-
return substring(this$0.
|
|
2676
|
+
return substring(this$0.i4d_1, pathStartIndex, pathEndIndex);
|
|
2677
2677
|
};
|
|
2678
2678
|
}
|
|
2679
2679
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2680
2680
|
return function () {
|
|
2681
|
-
var queryStart = indexOf(this$0.
|
|
2681
|
+
var queryStart = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2682
2682
|
var tmp;
|
|
2683
2683
|
if (queryStart === 0) {
|
|
2684
2684
|
return '';
|
|
2685
2685
|
}
|
|
2686
|
-
var queryEnd = indexOf(this$0.
|
|
2686
|
+
var queryEnd = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2687
2687
|
var tmp_0;
|
|
2688
2688
|
if (queryEnd === -1) {
|
|
2689
|
-
return substring_0(this$0.
|
|
2689
|
+
return substring_0(this$0.i4d_1, queryStart);
|
|
2690
2690
|
}
|
|
2691
|
-
return substring(this$0.
|
|
2691
|
+
return substring(this$0.i4d_1, queryStart, queryEnd);
|
|
2692
2692
|
};
|
|
2693
2693
|
}
|
|
2694
2694
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2695
2695
|
return function () {
|
|
2696
|
-
var pathStart = indexOf(this$0.
|
|
2696
|
+
var pathStart = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(47), this$0.n4d_1.y4c_1.length + 3 | 0);
|
|
2697
2697
|
var tmp;
|
|
2698
2698
|
if (pathStart === -1) {
|
|
2699
2699
|
return '';
|
|
2700
2700
|
}
|
|
2701
|
-
var queryEnd = indexOf(this$0.
|
|
2701
|
+
var queryEnd = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2702
2702
|
var tmp_0;
|
|
2703
2703
|
if (queryEnd === -1) {
|
|
2704
|
-
return substring_0(this$0.
|
|
2704
|
+
return substring_0(this$0.i4d_1, pathStart);
|
|
2705
2705
|
}
|
|
2706
|
-
return substring(this$0.
|
|
2706
|
+
return substring(this$0.i4d_1, pathStart, queryEnd);
|
|
2707
2707
|
};
|
|
2708
2708
|
}
|
|
2709
2709
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2710
2710
|
return function () {
|
|
2711
2711
|
var tmp;
|
|
2712
|
-
if (this$0.
|
|
2712
|
+
if (this$0.f4d_1 == null) {
|
|
2713
2713
|
return null;
|
|
2714
2714
|
}
|
|
2715
2715
|
var tmp_0;
|
|
2716
2716
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2717
|
-
var this_0 = this$0.
|
|
2717
|
+
var this_0 = this$0.f4d_1;
|
|
2718
2718
|
if (charSequenceLength(this_0) === 0) {
|
|
2719
2719
|
return '';
|
|
2720
2720
|
}
|
|
2721
|
-
var usernameStart = this$0.
|
|
2721
|
+
var usernameStart = this$0.n4d_1.y4c_1.length + 3 | 0;
|
|
2722
2722
|
// Inline function 'kotlin.charArrayOf' call
|
|
2723
2723
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2724
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2725
|
-
return substring(this$0.
|
|
2724
|
+
var usernameEnd = indexOfAny(this$0.i4d_1, tmp$ret$1, usernameStart);
|
|
2725
|
+
return substring(this$0.i4d_1, usernameStart, usernameEnd);
|
|
2726
2726
|
};
|
|
2727
2727
|
}
|
|
2728
2728
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2729
2729
|
return constructCallableReference(function (p0) {
|
|
2730
|
-
return p0.
|
|
2730
|
+
return p0.n4e();
|
|
2731
2731
|
}, 1, 0, 21);
|
|
2732
2732
|
}
|
|
2733
2733
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2734
2734
|
return function () {
|
|
2735
2735
|
var tmp;
|
|
2736
|
-
if (this$0.
|
|
2736
|
+
if (this$0.g4d_1 == null) {
|
|
2737
2737
|
return null;
|
|
2738
2738
|
}
|
|
2739
2739
|
var tmp_0;
|
|
2740
2740
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2741
|
-
var this_0 = this$0.
|
|
2741
|
+
var this_0 = this$0.g4d_1;
|
|
2742
2742
|
if (charSequenceLength(this_0) === 0) {
|
|
2743
2743
|
return '';
|
|
2744
2744
|
}
|
|
2745
|
-
var passwordStart = indexOf(this$0.
|
|
2746
|
-
var passwordEnd = indexOf(this$0.
|
|
2747
|
-
return substring(this$0.
|
|
2745
|
+
var passwordStart = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(58), this$0.n4d_1.y4c_1.length + 3 | 0) + 1 | 0;
|
|
2746
|
+
var passwordEnd = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(64));
|
|
2747
|
+
return substring(this$0.i4d_1, passwordStart, passwordEnd);
|
|
2748
2748
|
};
|
|
2749
2749
|
}
|
|
2750
2750
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2751
2751
|
return constructCallableReference(function (p0) {
|
|
2752
|
-
return p0.
|
|
2752
|
+
return p0.o4e();
|
|
2753
2753
|
}, 1, 0, 22);
|
|
2754
2754
|
}
|
|
2755
2755
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2756
2756
|
return function () {
|
|
2757
|
-
var fragmentStart = indexOf(this$0.
|
|
2757
|
+
var fragmentStart = indexOf(this$0.i4d_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2758
2758
|
var tmp;
|
|
2759
2759
|
if (fragmentStart === 0) {
|
|
2760
2760
|
return '';
|
|
2761
2761
|
}
|
|
2762
|
-
return substring_0(this$0.
|
|
2762
|
+
return substring_0(this$0.i4d_1, fragmentStart);
|
|
2763
2763
|
};
|
|
2764
2764
|
}
|
|
2765
2765
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2766
|
-
this.
|
|
2767
|
-
this.
|
|
2768
|
-
this.
|
|
2769
|
-
this.
|
|
2770
|
-
this.
|
|
2771
|
-
this.
|
|
2772
|
-
this.
|
|
2773
|
-
this.
|
|
2774
|
-
var containsArg = this.
|
|
2766
|
+
this.b4d_1 = host;
|
|
2767
|
+
this.c4d_1 = specifiedPort;
|
|
2768
|
+
this.d4d_1 = parameters;
|
|
2769
|
+
this.e4d_1 = fragment;
|
|
2770
|
+
this.f4d_1 = user;
|
|
2771
|
+
this.g4d_1 = password;
|
|
2772
|
+
this.h4d_1 = trailingQuery;
|
|
2773
|
+
this.i4d_1 = urlString;
|
|
2774
|
+
var containsArg = this.c4d_1;
|
|
2775
2775
|
// Inline function 'kotlin.require' call
|
|
2776
2776
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2777
|
-
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.c4d_1;
|
|
2778
2778
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2779
2779
|
}
|
|
2780
|
-
this.
|
|
2781
|
-
this.
|
|
2780
|
+
this.j4d_1 = pathSegments;
|
|
2781
|
+
this.k4d_1 = pathSegments;
|
|
2782
2782
|
var tmp = this;
|
|
2783
|
-
tmp.
|
|
2784
|
-
this.
|
|
2783
|
+
tmp.l4d_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2784
|
+
this.m4d_1 = protocol;
|
|
2785
2785
|
var tmp_0 = this;
|
|
2786
|
-
var tmp0_elvis_lhs = this.
|
|
2787
|
-
tmp_0.
|
|
2786
|
+
var tmp0_elvis_lhs = this.m4d_1;
|
|
2787
|
+
tmp_0.n4d_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().y4d_1 : tmp0_elvis_lhs;
|
|
2788
2788
|
var tmp_1 = this;
|
|
2789
|
-
tmp_1.
|
|
2789
|
+
tmp_1.o4d_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2790
2790
|
var tmp_2 = this;
|
|
2791
|
-
tmp_2.
|
|
2791
|
+
tmp_2.p4d_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2792
2792
|
var tmp_3 = this;
|
|
2793
|
-
tmp_3.
|
|
2793
|
+
tmp_3.q4d_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2794
2794
|
var tmp_4 = this;
|
|
2795
|
-
tmp_4.
|
|
2795
|
+
tmp_4.r4d_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2796
2796
|
var tmp_5 = this;
|
|
2797
|
-
tmp_5.
|
|
2797
|
+
tmp_5.s4d_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2798
2798
|
var tmp_6 = this;
|
|
2799
|
-
tmp_6.
|
|
2799
|
+
tmp_6.t4d_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2800
2800
|
}
|
|
2801
|
-
protoOf(Url_0).
|
|
2801
|
+
protoOf(Url_0).m4e = function () {
|
|
2802
2802
|
// Inline function 'kotlin.takeUnless' call
|
|
2803
|
-
var this_0 = this.
|
|
2803
|
+
var this_0 = this.c4d_1;
|
|
2804
2804
|
var tmp;
|
|
2805
2805
|
if (!(this_0 === 0)) {
|
|
2806
2806
|
tmp = this_0;
|
|
@@ -2808,24 +2808,24 @@ protoOf(Url_0).f4e = function () {
|
|
|
2808
2808
|
tmp = null;
|
|
2809
2809
|
}
|
|
2810
2810
|
var tmp0_elvis_lhs = tmp;
|
|
2811
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2811
|
+
return tmp0_elvis_lhs == null ? this.n4d_1.z4c_1 : tmp0_elvis_lhs;
|
|
2812
2812
|
};
|
|
2813
|
-
protoOf(Url_0).
|
|
2814
|
-
var tmp0 = this.
|
|
2813
|
+
protoOf(Url_0).n4e = function () {
|
|
2814
|
+
var tmp0 = this.r4d_1;
|
|
2815
2815
|
var tmp = KProperty1;
|
|
2816
2816
|
// Inline function 'kotlin.getValue' call
|
|
2817
2817
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2818
2818
|
return tmp0.p1();
|
|
2819
2819
|
};
|
|
2820
|
-
protoOf(Url_0).
|
|
2821
|
-
var tmp0 = this.
|
|
2820
|
+
protoOf(Url_0).o4e = function () {
|
|
2821
|
+
var tmp0 = this.s4d_1;
|
|
2822
2822
|
var tmp = KProperty1;
|
|
2823
2823
|
// Inline function 'kotlin.getValue' call
|
|
2824
2824
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2825
2825
|
return tmp0.p1();
|
|
2826
2826
|
};
|
|
2827
2827
|
protoOf(Url_0).toString = function () {
|
|
2828
|
-
return this.
|
|
2828
|
+
return this.i4d_1;
|
|
2829
2829
|
};
|
|
2830
2830
|
protoOf(Url_0).equals = function (other) {
|
|
2831
2831
|
if (this === other)
|
|
@@ -2834,10 +2834,10 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2834
2834
|
return false;
|
|
2835
2835
|
if (!(other instanceof Url_0))
|
|
2836
2836
|
THROW_CCE();
|
|
2837
|
-
return this.
|
|
2837
|
+
return this.i4d_1 === other.i4d_1;
|
|
2838
2838
|
};
|
|
2839
2839
|
protoOf(Url_0).hashCode = function () {
|
|
2840
|
-
return getStringHashCode(this.
|
|
2840
|
+
return getStringHashCode(this.i4d_1);
|
|
2841
2841
|
};
|
|
2842
2842
|
function get_authority_0(_this__u8e3s4) {
|
|
2843
2843
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2849,19 +2849,19 @@ function get_authority_0(_this__u8e3s4) {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
function UrlSerializer() {
|
|
2851
2851
|
UrlSerializer_instance = this;
|
|
2852
|
-
this.
|
|
2852
|
+
this.p4e_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2853
2853
|
}
|
|
2854
2854
|
protoOf(UrlSerializer).eq = function () {
|
|
2855
|
-
return this.
|
|
2855
|
+
return this.p4e_1;
|
|
2856
2856
|
};
|
|
2857
2857
|
protoOf(UrlSerializer).gq = function (decoder) {
|
|
2858
2858
|
return Url(decoder.bt());
|
|
2859
2859
|
};
|
|
2860
|
-
protoOf(UrlSerializer).
|
|
2860
|
+
protoOf(UrlSerializer).q4e = function (encoder, value) {
|
|
2861
2861
|
encoder.ku(value.toString());
|
|
2862
2862
|
};
|
|
2863
2863
|
protoOf(UrlSerializer).fq = function (encoder, value) {
|
|
2864
|
-
return this.
|
|
2864
|
+
return this.q4e(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2865
2865
|
};
|
|
2866
2866
|
var UrlSerializer_instance;
|
|
2867
2867
|
function UrlSerializer_getInstance() {
|
|
@@ -2873,21 +2873,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
2873
2873
|
// Inline function 'kotlin.text.buildString' call
|
|
2874
2874
|
// Inline function 'kotlin.apply' call
|
|
2875
2875
|
var this_0 = StringBuilder_init_$Create$();
|
|
2876
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2876
|
+
appendUserAndPassword(this_0, _this__u8e3s4.n4e(), _this__u8e3s4.o4e());
|
|
2877
2877
|
return this_0.toString();
|
|
2878
2878
|
}
|
|
2879
2879
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2880
|
+
this.r4e_1 = encodedParametersBuilder;
|
|
2881
|
+
this.s4e_1 = this.r4e_1.x3x();
|
|
2882
2882
|
}
|
|
2883
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2884
|
-
return decodeParameters(this.
|
|
2883
|
+
protoOf(UrlDecodedParametersBuilder).d45 = function () {
|
|
2884
|
+
return decodeParameters(this.r4e_1);
|
|
2885
2885
|
};
|
|
2886
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2887
|
-
return this.
|
|
2886
|
+
protoOf(UrlDecodedParametersBuilder).x3x = function () {
|
|
2887
|
+
return this.s4e_1;
|
|
2888
2888
|
};
|
|
2889
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2890
|
-
var tmp0_safe_receiver = this.
|
|
2889
|
+
protoOf(UrlDecodedParametersBuilder).y3x = function (name) {
|
|
2890
|
+
var tmp0_safe_receiver = this.r4e_1.y3x(encodeURLParameter(name));
|
|
2891
2891
|
var tmp;
|
|
2892
2892
|
if (tmp0_safe_receiver == null) {
|
|
2893
2893
|
tmp = null;
|
|
@@ -2905,9 +2905,9 @@ protoOf(UrlDecodedParametersBuilder).r3x = function (name) {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
return tmp;
|
|
2907
2907
|
};
|
|
2908
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2908
|
+
protoOf(UrlDecodedParametersBuilder).z3x = function () {
|
|
2909
2909
|
// Inline function 'kotlin.collections.map' call
|
|
2910
|
-
var this_0 = this.
|
|
2910
|
+
var this_0 = this.r4e_1.z3x();
|
|
2911
2911
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2912
2912
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2913
2913
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2919,18 +2919,18 @@ protoOf(UrlDecodedParametersBuilder).s3x = function () {
|
|
|
2919
2919
|
return toSet(destination);
|
|
2920
2920
|
};
|
|
2921
2921
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2922
|
-
return this.
|
|
2922
|
+
return this.r4e_1.r();
|
|
2923
2923
|
};
|
|
2924
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2925
|
-
return decodeParameters(this.
|
|
2924
|
+
protoOf(UrlDecodedParametersBuilder).s3x = function () {
|
|
2925
|
+
return decodeParameters(this.r4e_1).s3x();
|
|
2926
2926
|
};
|
|
2927
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2928
|
-
return this.
|
|
2927
|
+
protoOf(UrlDecodedParametersBuilder).c3y = function (name, value) {
|
|
2928
|
+
return this.r4e_1.c3y(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2929
2929
|
};
|
|
2930
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2931
|
-
return appendAllEncoded(this.
|
|
2930
|
+
protoOf(UrlDecodedParametersBuilder).d3y = function (stringValues) {
|
|
2931
|
+
return appendAllEncoded(this.r4e_1, stringValues);
|
|
2932
2932
|
};
|
|
2933
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2933
|
+
protoOf(UrlDecodedParametersBuilder).t3x = function (name, values) {
|
|
2934
2934
|
var tmp = encodeURLParameter(name);
|
|
2935
2935
|
// Inline function 'kotlin.collections.map' call
|
|
2936
2936
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2941,10 +2941,10 @@ protoOf(UrlDecodedParametersBuilder).m3x = function (name, values) {
|
|
|
2941
2941
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2942
2942
|
destination.b1(tmp$ret$2);
|
|
2943
2943
|
}
|
|
2944
|
-
return this.
|
|
2944
|
+
return this.r4e_1.t3x(tmp, destination);
|
|
2945
2945
|
};
|
|
2946
2946
|
protoOf(UrlDecodedParametersBuilder).w2 = function () {
|
|
2947
|
-
return this.
|
|
2947
|
+
return this.r4e_1.w2();
|
|
2948
2948
|
};
|
|
2949
2949
|
function encodeParameters(parameters) {
|
|
2950
2950
|
// Inline function 'kotlin.apply' call
|
|
@@ -2956,14 +2956,14 @@ function decodeParameters(parameters) {
|
|
|
2956
2956
|
// Inline function 'kotlin.apply' call
|
|
2957
2957
|
var this_0 = ParametersBuilder();
|
|
2958
2958
|
appendAllDecoded(this_0, parameters);
|
|
2959
|
-
return this_0.
|
|
2959
|
+
return this_0.d45();
|
|
2960
2960
|
}
|
|
2961
2961
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
2962
2962
|
// Inline function 'kotlin.collections.forEach' call
|
|
2963
|
-
var _iterator__ex2g4s = parameters.
|
|
2963
|
+
var _iterator__ex2g4s = parameters.z3x().t();
|
|
2964
2964
|
while (_iterator__ex2g4s.u()) {
|
|
2965
2965
|
var element = _iterator__ex2g4s.v();
|
|
2966
|
-
var tmp0_elvis_lhs = parameters.
|
|
2966
|
+
var tmp0_elvis_lhs = parameters.y3x(element);
|
|
2967
2967
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2968
2968
|
var tmp = encodeURLParameter(element);
|
|
2969
2969
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2975,15 +2975,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
2975
2975
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
2976
2976
|
destination.b1(tmp$ret$4);
|
|
2977
2977
|
}
|
|
2978
|
-
_this__u8e3s4.
|
|
2978
|
+
_this__u8e3s4.t3x(tmp, destination);
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
2982
2982
|
// Inline function 'kotlin.collections.forEach' call
|
|
2983
|
-
var _iterator__ex2g4s = parameters.
|
|
2983
|
+
var _iterator__ex2g4s = parameters.z3x().t();
|
|
2984
2984
|
while (_iterator__ex2g4s.u()) {
|
|
2985
2985
|
var element = _iterator__ex2g4s.v();
|
|
2986
|
-
var tmp0_elvis_lhs = parameters.
|
|
2986
|
+
var tmp0_elvis_lhs = parameters.y3x(element);
|
|
2987
2987
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2988
2988
|
var tmp = decodeURLQueryComponent(element);
|
|
2989
2989
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2995,7 +2995,7 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
2995
2995
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
2996
2996
|
destination.b1(tmp$ret$4);
|
|
2997
2997
|
}
|
|
2998
|
-
_this__u8e3s4.
|
|
2998
|
+
_this__u8e3s4.t3x(tmp, destination);
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
3001
|
function MultiPartData() {
|
|
@@ -3015,20 +3015,20 @@ function ProtocolUpgrade() {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
function ContentWrapper() {
|
|
3017
3017
|
}
|
|
3018
|
-
protoOf(ContentWrapper).
|
|
3019
|
-
return this.
|
|
3018
|
+
protoOf(ContentWrapper).e4f = function () {
|
|
3019
|
+
return this.d4f_1;
|
|
3020
3020
|
};
|
|
3021
3021
|
function OutgoingContent() {
|
|
3022
|
-
this.
|
|
3022
|
+
this.t4e_1 = null;
|
|
3023
3023
|
}
|
|
3024
|
-
protoOf(OutgoingContent).
|
|
3024
|
+
protoOf(OutgoingContent).u4e = function () {
|
|
3025
3025
|
return null;
|
|
3026
3026
|
};
|
|
3027
|
-
protoOf(OutgoingContent).
|
|
3027
|
+
protoOf(OutgoingContent).v4e = function () {
|
|
3028
3028
|
return null;
|
|
3029
3029
|
};
|
|
3030
|
-
protoOf(OutgoingContent).
|
|
3031
|
-
return Companion_getInstance_1().
|
|
3030
|
+
protoOf(OutgoingContent).k49 = function () {
|
|
3031
|
+
return Companion_getInstance_1().f49_1;
|
|
3032
3032
|
};
|
|
3033
3033
|
function NullBody() {
|
|
3034
3034
|
}
|
|
@@ -3042,7 +3042,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3042
3042
|
tmp = true;
|
|
3043
3043
|
} else {
|
|
3044
3044
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3045
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3045
|
+
tmp = isEmpty(_this__u8e3s4.e4f());
|
|
3046
3046
|
} else {
|
|
3047
3047
|
tmp = false;
|
|
3048
3048
|
}
|
|
@@ -3052,27 +3052,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3052
3052
|
function TextContent(text, contentType, status) {
|
|
3053
3053
|
status = status === VOID ? null : status;
|
|
3054
3054
|
ByteArrayContent.call(this);
|
|
3055
|
-
this.
|
|
3056
|
-
this.
|
|
3057
|
-
this.
|
|
3055
|
+
this.g4f_1 = text;
|
|
3056
|
+
this.h4f_1 = contentType;
|
|
3057
|
+
this.i4f_1 = status;
|
|
3058
3058
|
var tmp = this;
|
|
3059
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3060
|
-
tmp.
|
|
3059
|
+
var tmp0_elvis_lhs = charset(this.h4f_1);
|
|
3060
|
+
tmp.j4f_1 = toByteArray(this.g4f_1, tmp0_elvis_lhs == null ? Charsets_getInstance().n3u_1 : tmp0_elvis_lhs);
|
|
3061
3061
|
}
|
|
3062
|
-
protoOf(TextContent).
|
|
3063
|
-
return this.
|
|
3062
|
+
protoOf(TextContent).u4e = function () {
|
|
3063
|
+
return this.h4f_1;
|
|
3064
3064
|
};
|
|
3065
|
-
protoOf(TextContent).
|
|
3066
|
-
return fromInt(this.
|
|
3065
|
+
protoOf(TextContent).v4e = function () {
|
|
3066
|
+
return fromInt(this.j4f_1.length);
|
|
3067
3067
|
};
|
|
3068
|
-
protoOf(TextContent).
|
|
3069
|
-
return this.
|
|
3068
|
+
protoOf(TextContent).b4f = function () {
|
|
3069
|
+
return this.j4f_1;
|
|
3070
3070
|
};
|
|
3071
3071
|
protoOf(TextContent).toString = function () {
|
|
3072
|
-
return 'TextContent[' + this.
|
|
3072
|
+
return 'TextContent[' + this.h4f_1.toString() + '] "' + take(this.g4f_1, 30) + '"';
|
|
3073
3073
|
};
|
|
3074
3074
|
function get_origin(_this__u8e3s4) {
|
|
3075
|
-
return PlatformUtils_getInstance().
|
|
3075
|
+
return PlatformUtils_getInstance().k3x_1 ? locationOrigin() : 'http://localhost';
|
|
3076
3076
|
}
|
|
3077
3077
|
function locationOrigin() {
|
|
3078
3078
|
return function () {
|
|
@@ -3091,9 +3091,9 @@ function locationOrigin() {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
//region block: post-declaration
|
|
3093
3093
|
protoOf(EmptyHeaders).sd = get;
|
|
3094
|
-
protoOf(EmptyHeaders).
|
|
3094
|
+
protoOf(EmptyHeaders).e3y = forEach;
|
|
3095
3095
|
protoOf(EmptyParameters).sd = get;
|
|
3096
|
-
protoOf(EmptyParameters).
|
|
3096
|
+
protoOf(EmptyParameters).e3y = forEach;
|
|
3097
3097
|
//endregion
|
|
3098
3098
|
//region block: init
|
|
3099
3099
|
Companion_instance_0 = new Companion_0();
|