@doordeck/doordeck-headless-sdk 0.193.0 → 0.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.js +10268 -10269
- package/kotlin/kotlin-kotlin-stdlib.js +1776 -1145
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-browser.js +10 -0
- package/kotlin/kotlinx-coroutines-core.js +2530 -2068
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +52 -52
- package/kotlin/kotlinx-io-kotlinx-io-core.js +489 -493
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1980 -1980
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1492 -1492
- package/kotlin/ktor-ktor-client-auth.js +408 -400
- package/kotlin/ktor-ktor-client-content-negotiation.js +185 -186
- package/kotlin/ktor-ktor-client-core.js +2941 -2275
- package/kotlin/ktor-ktor-client-logging.js +1028 -992
- package/kotlin/ktor-ktor-events.js +15 -15
- package/kotlin/ktor-ktor-http-cio.js +413 -418
- package/kotlin/ktor-ktor-http.js +923 -880
- package/kotlin/ktor-ktor-io.js +1057 -988
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -166
- package/kotlin/ktor-ktor-serialization.js +77 -78
- package/kotlin/ktor-ktor-utils.js +945 -990
- package/kotlin/ktor-ktor-websockets.js +2178 -82
- package/package.json +2 -2
package/kotlin/ktor-ktor-http.js
CHANGED
|
@@ -3,144 +3,144 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.b;
|
|
6
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
6
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
7
7
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
8
8
|
var encode = kotlin_io_ktor_ktor_io.$_$.t;
|
|
9
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
10
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
11
|
-
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.
|
|
12
|
-
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.
|
|
13
|
-
var takeWhile = kotlin_io_ktor_ktor_io.$_$.
|
|
14
|
-
var charArray = kotlin_kotlin.$_$.
|
|
15
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
16
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
17
|
-
var substring = kotlin_kotlin.$_$.
|
|
18
|
-
var toString = kotlin_kotlin.$_$.
|
|
19
|
-
var Char = kotlin_kotlin.$_$.
|
|
20
|
-
var isSurrogate = kotlin_kotlin.$_$.
|
|
21
|
-
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
22
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
23
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
24
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
25
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
26
|
-
var toByte = kotlin_kotlin.$_$.
|
|
27
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
28
|
-
var Exception = kotlin_kotlin.$_$.
|
|
29
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
30
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
33
|
-
var Char__minus_impl_a2frrh_0 = kotlin_kotlin.$_$.
|
|
34
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
35
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
36
|
-
var canRead = kotlin_io_ktor_ktor_io.$_$.
|
|
37
|
-
var Char__rangeTo_impl_tkncvp = kotlin_kotlin.$_$.
|
|
38
|
-
var plus = kotlin_kotlin.$_$.
|
|
39
|
-
var plus_0 = kotlin_kotlin.$_$.
|
|
40
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
41
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
-
var toSet = kotlin_kotlin.$_$.
|
|
43
|
-
var setOf = kotlin_kotlin.$_$.
|
|
44
|
-
var plus_1 = kotlin_kotlin.$_$.
|
|
45
|
-
var listOf = kotlin_kotlin.$_$.
|
|
46
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
47
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
48
|
-
var equals = kotlin_kotlin.$_$.
|
|
49
|
-
var Collection = kotlin_kotlin.$_$.
|
|
50
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
51
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
52
|
-
var last = kotlin_kotlin.$_$.
|
|
53
|
-
var indexOf = kotlin_kotlin.$_$.
|
|
54
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
55
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
56
|
-
var trim = kotlin_kotlin.$_$.
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.c5;
|
|
10
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h2;
|
|
11
|
+
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.l2;
|
|
12
|
+
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.k2;
|
|
13
|
+
var takeWhile = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
14
|
+
var charArray = kotlin_kotlin.$_$.na;
|
|
15
|
+
var concatToString = kotlin_kotlin.$_$.ad;
|
|
16
|
+
var charCodeAt = kotlin_kotlin.$_$.oa;
|
|
17
|
+
var substring = kotlin_kotlin.$_$.je;
|
|
18
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
19
|
+
var Char = kotlin_kotlin.$_$.lf;
|
|
20
|
+
var isSurrogate = kotlin_kotlin.$_$.qd;
|
|
21
|
+
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.e1;
|
|
22
|
+
var charSequenceGet = kotlin_kotlin.$_$.pa;
|
|
23
|
+
var charSequenceLength = kotlin_kotlin.$_$.qa;
|
|
24
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ra;
|
|
25
|
+
var toString_0 = kotlin_kotlin.$_$.o2;
|
|
26
|
+
var toByte = kotlin_kotlin.$_$.ac;
|
|
27
|
+
var decodeToString = kotlin_kotlin.$_$.fd;
|
|
28
|
+
var Exception = kotlin_kotlin.$_$.sf;
|
|
29
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
|
|
30
|
+
var captureStack = kotlin_kotlin.$_$.la;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
32
|
+
var initMetadataForClass = kotlin_kotlin.$_$.cb;
|
|
33
|
+
var Char__minus_impl_a2frrh_0 = kotlin_kotlin.$_$.j2;
|
|
34
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.n2;
|
|
35
|
+
var numberToChar = kotlin_kotlin.$_$.xb;
|
|
36
|
+
var canRead = kotlin_io_ktor_ktor_io.$_$.z;
|
|
37
|
+
var Char__rangeTo_impl_tkncvp = kotlin_kotlin.$_$.m2;
|
|
38
|
+
var plus = kotlin_kotlin.$_$.t7;
|
|
39
|
+
var plus_0 = kotlin_kotlin.$_$.u7;
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.x5;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
42
|
+
var toSet = kotlin_kotlin.$_$.p8;
|
|
43
|
+
var setOf = kotlin_kotlin.$_$.a8;
|
|
44
|
+
var plus_1 = kotlin_kotlin.$_$.s7;
|
|
45
|
+
var listOf = kotlin_kotlin.$_$.o7;
|
|
46
|
+
var emptyList = kotlin_kotlin.$_$.s6;
|
|
47
|
+
var objectCreate = kotlin_kotlin.$_$.yb;
|
|
48
|
+
var equals = kotlin_kotlin.$_$.kd;
|
|
49
|
+
var Collection = kotlin_kotlin.$_$.e5;
|
|
50
|
+
var isInterface = kotlin_kotlin.$_$.rb;
|
|
51
|
+
var isBlank = kotlin_kotlin.$_$.pd;
|
|
52
|
+
var last = kotlin_kotlin.$_$.m7;
|
|
53
|
+
var indexOf = kotlin_kotlin.$_$.od;
|
|
54
|
+
var THROW_CCE = kotlin_kotlin.$_$.zf;
|
|
55
|
+
var isCharSequence = kotlin_kotlin.$_$.nb;
|
|
56
|
+
var trim = kotlin_kotlin.$_$.df;
|
|
57
|
+
var take = kotlin_kotlin.$_$.le;
|
|
58
|
+
var substring_0 = kotlin_kotlin.$_$.ie;
|
|
59
|
+
var contains = kotlin_kotlin.$_$.dd;
|
|
60
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.db;
|
|
61
|
+
var startsWith = kotlin_kotlin.$_$.de;
|
|
62
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ib;
|
|
63
|
+
var plus_2 = kotlin_kotlin.$_$.v7;
|
|
64
|
+
var equals_0 = kotlin_kotlin.$_$.ua;
|
|
65
|
+
var getStringHashCode = kotlin_kotlin.$_$.ab;
|
|
66
|
+
var hashCode = kotlin_kotlin.$_$.bb;
|
|
66
67
|
var forName = kotlin_io_ktor_ktor_io.$_$.u;
|
|
67
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
68
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.tf;
|
|
68
69
|
var get_name = kotlin_io_ktor_ktor_io.$_$.w;
|
|
69
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
70
|
-
var first = kotlin_kotlin.$_$.
|
|
71
|
-
var last_0 = kotlin_kotlin.$_$.
|
|
72
|
-
var get_lastIndex_0 = kotlin_kotlin.$_$.
|
|
73
|
-
var StringValuesBuilderImpl = kotlin_io_ktor_ktor_utils.$_$.
|
|
74
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
75
|
-
var emptySet = kotlin_kotlin.$_$.
|
|
76
|
-
var get = kotlin_io_ktor_ktor_utils.$_$.
|
|
77
|
-
var contains_0 = kotlin_io_ktor_ktor_utils.$_$.
|
|
78
|
-
var forEach = kotlin_io_ktor_ktor_utils.$_$.
|
|
79
|
-
var StringValues = kotlin_io_ktor_ktor_utils.$_$.
|
|
80
|
-
var StringValuesImpl = kotlin_io_ktor_ktor_utils.$_$.
|
|
81
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
82
|
-
var StringValuesSingleImpl = kotlin_io_ktor_ktor_utils.$_$.
|
|
83
|
-
var toDoubleOrNull = kotlin_kotlin.$_$.
|
|
84
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
85
|
-
var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.
|
|
86
|
-
var lazy = kotlin_kotlin.$_$.
|
|
87
|
-
var to = kotlin_kotlin.$_$.
|
|
88
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
89
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
90
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
91
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
92
|
-
var asList = kotlin_kotlin.$_$.
|
|
93
|
-
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.
|
|
94
|
-
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.
|
|
95
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
96
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
97
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
98
|
-
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.
|
|
99
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
100
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
101
|
-
var isWhitespace = kotlin_kotlin.$_$.
|
|
102
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
103
|
-
var startsWith_0 = kotlin_kotlin.$_$.
|
|
104
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
105
|
-
var split = kotlin_kotlin.$_$.
|
|
106
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
107
|
-
var first_0 = kotlin_kotlin.$_$.
|
|
108
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
109
|
-
var toCharArray = kotlin_io_ktor_ktor_utils.$_$.
|
|
110
|
-
var indexOfAny = kotlin_kotlin.$_$.
|
|
111
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
112
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
113
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
114
|
-
var indexOf_0 = kotlin_kotlin.$_$.
|
|
115
|
-
var toInt = kotlin_kotlin.$_$.
|
|
116
|
-
var toLowerCasePreservingASCIIRules = kotlin_io_ktor_ktor_utils.$_$.
|
|
117
|
-
var isLowerCase = kotlin_io_ktor_ktor_utils.$_$.
|
|
118
|
-
var appendAll = kotlin_io_ktor_ktor_utils.$_$.
|
|
119
|
-
var startsWith_1 = kotlin_kotlin.$_$.
|
|
120
|
-
var addAll = kotlin_kotlin.$_$.
|
|
121
|
-
var joinTo = kotlin_kotlin.$_$.
|
|
122
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
123
|
-
var lazy_0 = kotlin_kotlin.$_$.
|
|
124
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
125
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
126
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
70
|
+
var get_lastIndex = kotlin_kotlin.$_$.k7;
|
|
71
|
+
var first = kotlin_kotlin.$_$.ld;
|
|
72
|
+
var last_0 = kotlin_kotlin.$_$.ud;
|
|
73
|
+
var get_lastIndex_0 = kotlin_kotlin.$_$.sd;
|
|
74
|
+
var StringValuesBuilderImpl = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
75
|
+
var listOf_0 = kotlin_kotlin.$_$.n7;
|
|
76
|
+
var emptySet = kotlin_kotlin.$_$.u6;
|
|
77
|
+
var get = kotlin_io_ktor_ktor_utils.$_$.x;
|
|
78
|
+
var contains_0 = kotlin_io_ktor_ktor_utils.$_$.v;
|
|
79
|
+
var forEach = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
80
|
+
var StringValues = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
81
|
+
var StringValuesImpl = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
82
|
+
var emptyMap = kotlin_kotlin.$_$.t6;
|
|
83
|
+
var StringValuesSingleImpl = kotlin_io_ktor_ktor_utils.$_$.a1;
|
|
84
|
+
var toDoubleOrNull = kotlin_kotlin.$_$.pe;
|
|
85
|
+
var sortedWith = kotlin_kotlin.$_$.d8;
|
|
86
|
+
var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.g;
|
|
87
|
+
var lazy = kotlin_kotlin.$_$.wg;
|
|
88
|
+
var to = kotlin_kotlin.$_$.dh;
|
|
89
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ha;
|
|
90
|
+
var Comparator = kotlin_kotlin.$_$.nf;
|
|
91
|
+
var compareValues = kotlin_kotlin.$_$.t8;
|
|
92
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
93
|
+
var asList = kotlin_kotlin.$_$.v5;
|
|
94
|
+
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.i2;
|
|
95
|
+
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.o1;
|
|
96
|
+
var toLongOrNull = kotlin_kotlin.$_$.te;
|
|
97
|
+
var mapCapacity = kotlin_kotlin.$_$.p7;
|
|
98
|
+
var coerceAtLeast = kotlin_kotlin.$_$.hc;
|
|
99
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
100
|
+
var Comparable = kotlin_kotlin.$_$.mf;
|
|
101
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.gb;
|
|
102
|
+
var isWhitespace = kotlin_kotlin.$_$.rd;
|
|
103
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
104
|
+
var startsWith_0 = kotlin_kotlin.$_$.ce;
|
|
105
|
+
var charArrayOf = kotlin_kotlin.$_$.ma;
|
|
106
|
+
var split = kotlin_kotlin.$_$.zd;
|
|
107
|
+
var toMutableList = kotlin_kotlin.$_$.m8;
|
|
108
|
+
var first_0 = kotlin_kotlin.$_$.z6;
|
|
109
|
+
var joinToString = kotlin_kotlin.$_$.h7;
|
|
110
|
+
var toCharArray = kotlin_io_ktor_ktor_utils.$_$.n1;
|
|
111
|
+
var indexOfAny = kotlin_kotlin.$_$.md;
|
|
112
|
+
var dropLast = kotlin_kotlin.$_$.q6;
|
|
113
|
+
var IllegalStateException = kotlin_kotlin.$_$.uf;
|
|
114
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.u1;
|
|
115
|
+
var indexOf_0 = kotlin_kotlin.$_$.nd;
|
|
116
|
+
var toInt = kotlin_kotlin.$_$.se;
|
|
117
|
+
var toLowerCasePreservingASCIIRules = kotlin_io_ktor_ktor_utils.$_$.p1;
|
|
118
|
+
var isLowerCase = kotlin_io_ktor_ktor_utils.$_$.k1;
|
|
119
|
+
var appendAll = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
120
|
+
var startsWith_1 = kotlin_kotlin.$_$.be;
|
|
121
|
+
var addAll = kotlin_kotlin.$_$.t5;
|
|
122
|
+
var joinTo = kotlin_kotlin.$_$.i7;
|
|
123
|
+
var toString_1 = kotlin_kotlin.$_$.ch;
|
|
124
|
+
var lazy_0 = kotlin_kotlin.$_$.xg;
|
|
125
|
+
var KProperty1 = kotlin_kotlin.$_$.wc;
|
|
126
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.za;
|
|
127
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.qc;
|
|
127
128
|
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
128
129
|
var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
|
|
129
130
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
130
|
-
var Enum = kotlin_kotlin.$_$.
|
|
131
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
131
|
+
var Enum = kotlin_kotlin.$_$.qf;
|
|
132
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
132
133
|
var Hash_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
133
|
-
var until = kotlin_kotlin.$_$.
|
|
134
|
-
var substring_1 = kotlin_kotlin.$_$.
|
|
135
|
-
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
136
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
137
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
138
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
139
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
140
|
-
var toByteArray = kotlin_io_ktor_ktor_io.$_$.
|
|
141
|
-
var
|
|
142
|
-
var
|
|
143
|
-
var defineProp = kotlin_kotlin.$_$.pa;
|
|
134
|
+
var until = kotlin_kotlin.$_$.mc;
|
|
135
|
+
var substring_1 = kotlin_kotlin.$_$.he;
|
|
136
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
137
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
138
|
+
var takeLast = kotlin_kotlin.$_$.ke;
|
|
139
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
140
|
+
var fromInt = kotlin_kotlin.$_$.w9;
|
|
141
|
+
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
142
|
+
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.q1;
|
|
143
|
+
var defineProp = kotlin_kotlin.$_$.ta;
|
|
144
144
|
var PlatformUtils_getInstance = kotlin_io_ktor_ktor_utils.$_$.c;
|
|
145
145
|
//endregion
|
|
146
146
|
//region block: pre-declaration
|
|
@@ -193,6 +193,8 @@
|
|
|
193
193
|
initMetadataForClass(OutgoingContent, 'OutgoingContent');
|
|
194
194
|
initMetadataForClass(ByteArrayContent_0, 'ByteArrayContent', VOID, OutgoingContent);
|
|
195
195
|
initMetadataForClass(ByteArrayContent, 'ByteArrayContent', VOID, ByteArrayContent_0);
|
|
196
|
+
initMetadataForClass(PartData, 'PartData');
|
|
197
|
+
initMetadataForClass(FormItem, 'FormItem', VOID, PartData);
|
|
196
198
|
initMetadataForInterface(MultiPartData, 'MultiPartData', VOID, VOID, VOID, [0]);
|
|
197
199
|
initMetadataForClass(NoContent, 'NoContent', VOID, OutgoingContent);
|
|
198
200
|
initMetadataForClass(ReadChannelContent, 'ReadChannelContent', VOID, OutgoingContent);
|
|
@@ -240,26 +242,26 @@
|
|
|
240
242
|
// Inline function 'kotlin.text.buildString' call
|
|
241
243
|
// Inline function 'kotlin.apply' call
|
|
242
244
|
var this_0 = StringBuilder_init_$Create$();
|
|
243
|
-
var content = encode(Charsets_getInstance().
|
|
245
|
+
var content = encode(Charsets_getInstance().b1y_1.f1y(), _this__u8e3s4);
|
|
244
246
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
245
247
|
return this_0.toString();
|
|
246
248
|
}
|
|
247
249
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
248
250
|
start = start === VOID ? 0 : start;
|
|
249
251
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
250
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
252
|
+
charset = charset === VOID ? Charsets_getInstance().b1y_1 : charset;
|
|
251
253
|
_init_properties_Codecs_kt__fudxxf();
|
|
252
254
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
253
255
|
}
|
|
254
256
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
255
257
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
256
258
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
257
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
259
|
+
charset = charset === VOID ? Charsets_getInstance().b1y_1 : charset;
|
|
258
260
|
_init_properties_Codecs_kt__fudxxf();
|
|
259
261
|
// Inline function 'kotlin.text.buildString' call
|
|
260
262
|
// Inline function 'kotlin.apply' call
|
|
261
263
|
var this_0 = StringBuilder_init_$Create$();
|
|
262
|
-
var content = encode(charset.
|
|
264
|
+
var content = encode(charset.f1y(), _this__u8e3s4);
|
|
263
265
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
264
266
|
return this_0.toString();
|
|
265
267
|
}
|
|
@@ -267,7 +269,7 @@
|
|
|
267
269
|
start = start === VOID ? 0 : start;
|
|
268
270
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
269
271
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
270
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
272
|
+
charset = charset === VOID ? Charsets_getInstance().b1y_1 : charset;
|
|
271
273
|
_init_properties_Codecs_kt__fudxxf();
|
|
272
274
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
273
275
|
}
|
|
@@ -318,16 +320,16 @@
|
|
|
318
320
|
// Inline function 'kotlin.text.buildString' call
|
|
319
321
|
// Inline function 'kotlin.apply' call
|
|
320
322
|
var this_0 = StringBuilder_init_$Create$();
|
|
321
|
-
var charset = Charsets_getInstance().
|
|
323
|
+
var charset = Charsets_getInstance().b1y_1;
|
|
322
324
|
var index = 0;
|
|
323
325
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
324
326
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
325
|
-
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().
|
|
327
|
+
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().n2(new Char(current)) || get_VALID_PATH_PART().n2(new Char(current))) {
|
|
326
328
|
this_0.s(current);
|
|
327
329
|
index = index + 1 | 0;
|
|
328
330
|
continue $l$loop_0;
|
|
329
331
|
}
|
|
330
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().
|
|
332
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().n2(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().n2(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
331
333
|
this_0.s(current);
|
|
332
334
|
this_0.s(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
333
335
|
this_0.s(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
@@ -335,7 +337,7 @@
|
|
|
335
337
|
continue $l$loop_0;
|
|
336
338
|
}
|
|
337
339
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
338
|
-
var tmp = encode(charset.
|
|
340
|
+
var tmp = encode(charset.f1y(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
339
341
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
340
342
|
index = index + symbolSize | 0;
|
|
341
343
|
}
|
|
@@ -398,7 +400,7 @@
|
|
|
398
400
|
}
|
|
399
401
|
function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
400
402
|
return function (it) {
|
|
401
|
-
if (get_URL_ALPHABET().
|
|
403
|
+
if (get_URL_ALPHABET().n2(it) || get_SPECIAL_SYMBOLS().n2(it))
|
|
402
404
|
$$this$buildString.s(numberToChar(it));
|
|
403
405
|
else {
|
|
404
406
|
var tmp;
|
|
@@ -432,7 +434,7 @@
|
|
|
432
434
|
else
|
|
433
435
|
$$this$buildString.q('%20');
|
|
434
436
|
else {
|
|
435
|
-
if (get_URL_ALPHABET().
|
|
437
|
+
if (get_URL_ALPHABET().n2(it) || (!$encodeFull && get_URL_PROTOCOL_PART().n2(it)))
|
|
436
438
|
$$this$buildString.s(numberToChar(it));
|
|
437
439
|
else {
|
|
438
440
|
$$this$buildString.q(percentEncode(it));
|
|
@@ -444,7 +446,7 @@
|
|
|
444
446
|
function forEach$lambda($block) {
|
|
445
447
|
return function (buffer) {
|
|
446
448
|
while (canRead(buffer)) {
|
|
447
|
-
$block(buffer.
|
|
449
|
+
$block(buffer.op());
|
|
448
450
|
}
|
|
449
451
|
return true;
|
|
450
452
|
};
|
|
@@ -467,7 +469,7 @@
|
|
|
467
469
|
while (_iterator__ex2g4s.u()) {
|
|
468
470
|
var item = _iterator__ex2g4s.v();
|
|
469
471
|
// Inline function 'kotlin.code' call
|
|
470
|
-
var this_1 = item.
|
|
472
|
+
var this_1 = item.a2_1;
|
|
471
473
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_1);
|
|
472
474
|
var tmp$ret$1 = toByte(tmp$ret$0);
|
|
473
475
|
destination.j1(tmp$ret$1);
|
|
@@ -483,7 +485,7 @@
|
|
|
483
485
|
while (_iterator__ex2g4s_0.u()) {
|
|
484
486
|
var item_0 = _iterator__ex2g4s_0.v();
|
|
485
487
|
// Inline function 'kotlin.code' call
|
|
486
|
-
var this_3 = item_0.
|
|
488
|
+
var this_3 = item_0.a2_1;
|
|
487
489
|
var tmp$ret$0_0 = Char__toInt_impl_vasixd(this_3);
|
|
488
490
|
var tmp$ret$1_0 = toByte(tmp$ret$0_0);
|
|
489
491
|
destination_0.j1(tmp$ret$1_0);
|
|
@@ -499,7 +501,7 @@
|
|
|
499
501
|
while (_iterator__ex2g4s_1.u()) {
|
|
500
502
|
var item_1 = _iterator__ex2g4s_1.v();
|
|
501
503
|
// Inline function 'kotlin.code' call
|
|
502
|
-
var this_5 = item_1.
|
|
504
|
+
var this_5 = item_1.a2_1;
|
|
503
505
|
var tmp$ret$0_1 = Char__toInt_impl_vasixd(this_5);
|
|
504
506
|
var tmp$ret$1_1 = toByte(tmp$ret$0_1);
|
|
505
507
|
destination_1.j1(tmp$ret$1_1);
|
|
@@ -507,6 +509,11 @@
|
|
|
507
509
|
SPECIAL_SYMBOLS = destination_1;
|
|
508
510
|
}
|
|
509
511
|
}
|
|
512
|
+
function get_textSubTypes() {
|
|
513
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
514
|
+
return textSubTypes;
|
|
515
|
+
}
|
|
516
|
+
var textSubTypes;
|
|
510
517
|
function ContentType_init_$Init$(contentType, contentSubtype, parameters, $this) {
|
|
511
518
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
512
519
|
ContentType.call($this, contentType, contentSubtype, contentType + '/' + contentSubtype, parameters);
|
|
@@ -517,18 +524,18 @@
|
|
|
517
524
|
}
|
|
518
525
|
function hasParameter($this, name, value) {
|
|
519
526
|
var tmp;
|
|
520
|
-
switch ($this.
|
|
527
|
+
switch ($this.x2s_1.l1()) {
|
|
521
528
|
case 0:
|
|
522
529
|
tmp = false;
|
|
523
530
|
break;
|
|
524
531
|
case 1:
|
|
525
532
|
// Inline function 'kotlin.let' call
|
|
526
533
|
|
|
527
|
-
var it = $this.
|
|
528
|
-
tmp = (equals(it.
|
|
534
|
+
var it = $this.x2s_1.m1(0);
|
|
535
|
+
tmp = (equals(it.y2s_1, name, true) && equals(it.z2s_1, value, true));
|
|
529
536
|
break;
|
|
530
537
|
default:
|
|
531
|
-
var tmp0 = $this.
|
|
538
|
+
var tmp0 = $this.x2s_1;
|
|
532
539
|
var tmp$ret$2;
|
|
533
540
|
$l$block_0: {
|
|
534
541
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -545,7 +552,7 @@
|
|
|
545
552
|
var _iterator__ex2g4s = tmp0.t();
|
|
546
553
|
while (_iterator__ex2g4s.u()) {
|
|
547
554
|
var element = _iterator__ex2g4s.v();
|
|
548
|
-
if (equals(element.
|
|
555
|
+
if (equals(element.y2s_1, name, true) && equals(element.z2s_1, value, true)) {
|
|
549
556
|
tmp$ret$2 = true;
|
|
550
557
|
break $l$block_0;
|
|
551
558
|
}
|
|
@@ -560,24 +567,24 @@
|
|
|
560
567
|
}
|
|
561
568
|
function Companion() {
|
|
562
569
|
Companion_instance = this;
|
|
563
|
-
this.
|
|
570
|
+
this.b2t_1 = ContentType_init_$Create$('*', '*');
|
|
564
571
|
}
|
|
565
|
-
protoOf(Companion).
|
|
572
|
+
protoOf(Companion).ym = function (value) {
|
|
566
573
|
if (isBlank(value))
|
|
567
|
-
return this.
|
|
574
|
+
return this.b2t_1;
|
|
568
575
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
569
576
|
var headerValue = last(parseHeaderValue(value));
|
|
570
|
-
var tmp0 = headerValue.
|
|
571
|
-
var parameters = headerValue.
|
|
577
|
+
var tmp0 = headerValue.c2t_1;
|
|
578
|
+
var parameters = headerValue.d2t_1;
|
|
572
579
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
573
580
|
if (slash === -1) {
|
|
574
581
|
// Inline function 'kotlin.text.trim' call
|
|
575
582
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
576
|
-
return Companion_getInstance().
|
|
583
|
+
return Companion_getInstance().b2t_1;
|
|
577
584
|
throw new BadContentTypeFormatException(value);
|
|
578
585
|
}
|
|
579
586
|
// Inline function 'kotlin.text.trim' call
|
|
580
|
-
var this_0 =
|
|
587
|
+
var this_0 = take(tmp0, slash);
|
|
581
588
|
var type = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
582
589
|
// Inline function 'kotlin.text.isEmpty' call
|
|
583
590
|
if (charSequenceLength(type) === 0) {
|
|
@@ -609,32 +616,32 @@
|
|
|
609
616
|
}
|
|
610
617
|
function Application() {
|
|
611
618
|
Application_instance = this;
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
}
|
|
637
|
-
protoOf(Application).
|
|
619
|
+
this.f2t_1 = 'application';
|
|
620
|
+
this.g2t_1 = ContentType_init_$Create$('application', '*');
|
|
621
|
+
this.h2t_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
622
|
+
this.i2t_1 = ContentType_init_$Create$('application', 'cbor');
|
|
623
|
+
this.j2t_1 = ContentType_init_$Create$('application', 'json');
|
|
624
|
+
this.k2t_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
625
|
+
this.l2t_1 = ContentType_init_$Create$('application', 'javascript');
|
|
626
|
+
this.m2t_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
627
|
+
this.n2t_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
628
|
+
this.o2t_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
629
|
+
this.p2t_1 = ContentType_init_$Create$('application', 'xml');
|
|
630
|
+
this.q2t_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
631
|
+
this.r2t_1 = ContentType_init_$Create$('application', 'yaml');
|
|
632
|
+
this.s2t_1 = ContentType_init_$Create$('application', 'zip');
|
|
633
|
+
this.t2t_1 = ContentType_init_$Create$('application', 'gzip');
|
|
634
|
+
this.u2t_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
635
|
+
this.v2t_1 = ContentType_init_$Create$('application', 'pdf');
|
|
636
|
+
this.w2t_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
637
|
+
this.x2t_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
638
|
+
this.y2t_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
639
|
+
this.z2t_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
640
|
+
this.a2u_1 = ContentType_init_$Create$('application', 'wasm');
|
|
641
|
+
this.b2u_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
642
|
+
this.c2u_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
643
|
+
}
|
|
644
|
+
protoOf(Application).d2u = function (contentType) {
|
|
638
645
|
return startsWith(contentType, 'application/', true);
|
|
639
646
|
};
|
|
640
647
|
var Application_instance;
|
|
@@ -645,17 +652,17 @@
|
|
|
645
652
|
}
|
|
646
653
|
function MultiPart() {
|
|
647
654
|
MultiPart_instance = this;
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
}
|
|
658
|
-
protoOf(MultiPart).
|
|
655
|
+
this.e2u_1 = 'multipart';
|
|
656
|
+
this.f2u_1 = ContentType_init_$Create$('multipart', '*');
|
|
657
|
+
this.g2u_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
658
|
+
this.h2u_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
659
|
+
this.i2u_1 = ContentType_init_$Create$('multipart', 'related');
|
|
660
|
+
this.j2u_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
661
|
+
this.k2u_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
662
|
+
this.l2u_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
663
|
+
this.m2u_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
664
|
+
}
|
|
665
|
+
protoOf(MultiPart).d2u = function (contentType) {
|
|
659
666
|
return startsWith(contentType, 'multipart/', true);
|
|
660
667
|
};
|
|
661
668
|
var MultiPart_instance;
|
|
@@ -666,16 +673,16 @@
|
|
|
666
673
|
}
|
|
667
674
|
function Text() {
|
|
668
675
|
Text_instance = this;
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
676
|
+
this.n2u_1 = 'text';
|
|
677
|
+
this.o2u_1 = ContentType_init_$Create$('text', '*');
|
|
678
|
+
this.p2u_1 = ContentType_init_$Create$('text', 'plain');
|
|
679
|
+
this.q2u_1 = ContentType_init_$Create$('text', 'css');
|
|
680
|
+
this.r2u_1 = ContentType_init_$Create$('text', 'csv');
|
|
681
|
+
this.s2u_1 = ContentType_init_$Create$('text', 'html');
|
|
682
|
+
this.t2u_1 = ContentType_init_$Create$('text', 'javascript');
|
|
683
|
+
this.u2u_1 = ContentType_init_$Create$('text', 'vcard');
|
|
684
|
+
this.v2u_1 = ContentType_init_$Create$('text', 'xml');
|
|
685
|
+
this.w2u_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
679
686
|
}
|
|
680
687
|
var Text_instance;
|
|
681
688
|
function Text_getInstance() {
|
|
@@ -687,25 +694,25 @@
|
|
|
687
694
|
Companion_getInstance();
|
|
688
695
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
689
696
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
697
|
+
this.z2u_1 = contentType;
|
|
698
|
+
this.a2v_1 = contentSubtype;
|
|
692
699
|
}
|
|
693
|
-
protoOf(ContentType).
|
|
700
|
+
protoOf(ContentType).b2v = function (name, value) {
|
|
694
701
|
if (hasParameter(this, name, value))
|
|
695
702
|
return this;
|
|
696
|
-
return new ContentType(this.
|
|
703
|
+
return new ContentType(this.z2u_1, this.a2v_1, this.w2s_1, plus_2(this.x2s_1, HeaderValueParam_init_$Create$(name, value)));
|
|
697
704
|
};
|
|
698
|
-
protoOf(ContentType).
|
|
699
|
-
return this.
|
|
705
|
+
protoOf(ContentType).c2v = function () {
|
|
706
|
+
return this.x2s_1.r() ? this : ContentType_init_$Create$(this.z2u_1, this.a2v_1);
|
|
700
707
|
};
|
|
701
|
-
protoOf(ContentType).
|
|
702
|
-
if (!(pattern.
|
|
708
|
+
protoOf(ContentType).d2v = function (pattern) {
|
|
709
|
+
if (!(pattern.z2u_1 === '*') && !equals(pattern.z2u_1, this.z2u_1, true)) {
|
|
703
710
|
return false;
|
|
704
711
|
}
|
|
705
|
-
if (!(pattern.
|
|
712
|
+
if (!(pattern.a2v_1 === '*') && !equals(pattern.a2v_1, this.a2v_1, true)) {
|
|
706
713
|
return false;
|
|
707
714
|
}
|
|
708
|
-
var _iterator__ex2g4s = pattern.
|
|
715
|
+
var _iterator__ex2g4s = pattern.x2s_1.t();
|
|
709
716
|
while (_iterator__ex2g4s.u()) {
|
|
710
717
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
711
718
|
var patternName = _destruct__k2r9zo.fg();
|
|
@@ -716,7 +723,7 @@
|
|
|
716
723
|
if (patternValue === '*') {
|
|
717
724
|
tmp_0 = true;
|
|
718
725
|
} else {
|
|
719
|
-
var tmp0 = this.
|
|
726
|
+
var tmp0 = this.x2s_1;
|
|
720
727
|
var tmp$ret$0;
|
|
721
728
|
$l$block_0: {
|
|
722
729
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -733,7 +740,7 @@
|
|
|
733
740
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
734
741
|
while (_iterator__ex2g4s_0.u()) {
|
|
735
742
|
var element = _iterator__ex2g4s_0.v();
|
|
736
|
-
if (equals(element.
|
|
743
|
+
if (equals(element.z2s_1, patternValue, true)) {
|
|
737
744
|
tmp$ret$0 = true;
|
|
738
745
|
break $l$block_0;
|
|
739
746
|
}
|
|
@@ -744,7 +751,7 @@
|
|
|
744
751
|
}
|
|
745
752
|
tmp = tmp_0;
|
|
746
753
|
} else {
|
|
747
|
-
var value = this.
|
|
754
|
+
var value = this.e2v(patternName);
|
|
748
755
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
749
756
|
}
|
|
750
757
|
var matches = tmp;
|
|
@@ -759,17 +766,17 @@
|
|
|
759
766
|
var tmp_0;
|
|
760
767
|
var tmp_1;
|
|
761
768
|
if (other instanceof ContentType) {
|
|
762
|
-
tmp_1 = equals(this.
|
|
769
|
+
tmp_1 = equals(this.z2u_1, other.z2u_1, true);
|
|
763
770
|
} else {
|
|
764
771
|
tmp_1 = false;
|
|
765
772
|
}
|
|
766
773
|
if (tmp_1) {
|
|
767
|
-
tmp_0 = equals(this.
|
|
774
|
+
tmp_0 = equals(this.a2v_1, other.a2v_1, true);
|
|
768
775
|
} else {
|
|
769
776
|
tmp_0 = false;
|
|
770
777
|
}
|
|
771
778
|
if (tmp_0) {
|
|
772
|
-
tmp = equals_0(this.
|
|
779
|
+
tmp = equals_0(this.x2s_1, other.x2s_1);
|
|
773
780
|
} else {
|
|
774
781
|
tmp = false;
|
|
775
782
|
}
|
|
@@ -778,19 +785,38 @@
|
|
|
778
785
|
protoOf(ContentType).hashCode = function () {
|
|
779
786
|
// Inline function 'kotlin.text.lowercase' call
|
|
780
787
|
// Inline function 'kotlin.js.asDynamic' call
|
|
781
|
-
var tmp$ret$1 = this.
|
|
788
|
+
var tmp$ret$1 = this.z2u_1.toLowerCase();
|
|
782
789
|
var result = getStringHashCode(tmp$ret$1);
|
|
783
790
|
var tmp = result;
|
|
784
791
|
var tmp_0 = imul(31, result);
|
|
785
792
|
// Inline function 'kotlin.text.lowercase' call
|
|
786
793
|
// Inline function 'kotlin.js.asDynamic' call
|
|
787
|
-
var tmp$ret$3 = this.
|
|
794
|
+
var tmp$ret$3 = this.a2v_1.toLowerCase();
|
|
788
795
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
789
|
-
result = result + imul(31, hashCode(this.
|
|
796
|
+
result = result + imul(31, hashCode(this.x2s_1)) | 0;
|
|
790
797
|
return result;
|
|
791
798
|
};
|
|
799
|
+
function isTextType(_this__u8e3s4) {
|
|
800
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
801
|
+
if (_this__u8e3s4.z2u_1 === 'text')
|
|
802
|
+
return true;
|
|
803
|
+
var tmp;
|
|
804
|
+
if (_this__u8e3s4.z2u_1 === 'application') {
|
|
805
|
+
var tmp_0 = get_textSubTypes();
|
|
806
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
807
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
808
|
+
var tmp$ret$1 = _this__u8e3s4.a2v_1.toLowerCase();
|
|
809
|
+
tmp = tmp_0.n2(tmp$ret$1);
|
|
810
|
+
} else {
|
|
811
|
+
tmp = false;
|
|
812
|
+
}
|
|
813
|
+
if (tmp)
|
|
814
|
+
return true;
|
|
815
|
+
return false;
|
|
816
|
+
}
|
|
792
817
|
function charset(_this__u8e3s4) {
|
|
793
|
-
|
|
818
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
819
|
+
var tmp0_safe_receiver = _this__u8e3s4.e2v('charset');
|
|
794
820
|
var tmp;
|
|
795
821
|
if (tmp0_safe_receiver == null) {
|
|
796
822
|
tmp = null;
|
|
@@ -802,7 +828,7 @@
|
|
|
802
828
|
} catch ($p) {
|
|
803
829
|
var tmp_1;
|
|
804
830
|
if ($p instanceof IllegalArgumentException) {
|
|
805
|
-
var
|
|
831
|
+
var _unused_var__etf5q3 = $p;
|
|
806
832
|
tmp_1 = null;
|
|
807
833
|
} else {
|
|
808
834
|
throw $p;
|
|
@@ -814,23 +840,32 @@
|
|
|
814
840
|
return tmp;
|
|
815
841
|
}
|
|
816
842
|
function withCharset(_this__u8e3s4, charset) {
|
|
817
|
-
|
|
843
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
844
|
+
return _this__u8e3s4.b2v('charset', get_name(charset));
|
|
818
845
|
}
|
|
819
846
|
function BadContentTypeFormatException(value) {
|
|
820
847
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
821
848
|
captureStack(this, BadContentTypeFormatException);
|
|
822
849
|
}
|
|
823
850
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
851
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
824
852
|
var tmp;
|
|
825
853
|
// Inline function 'kotlin.text.lowercase' call
|
|
826
854
|
// Inline function 'kotlin.js.asDynamic' call
|
|
827
|
-
if (!(_this__u8e3s4.
|
|
855
|
+
if (!(_this__u8e3s4.z2u_1.toLowerCase() === 'text')) {
|
|
828
856
|
tmp = _this__u8e3s4;
|
|
829
857
|
} else {
|
|
830
|
-
tmp = _this__u8e3s4.
|
|
858
|
+
tmp = _this__u8e3s4.b2v('charset', get_name(charset));
|
|
831
859
|
}
|
|
832
860
|
return tmp;
|
|
833
861
|
}
|
|
862
|
+
var properties_initialized_ContentTypes_kt_1k2nnm;
|
|
863
|
+
function _init_properties_ContentTypes_kt__i9dj34() {
|
|
864
|
+
if (!properties_initialized_ContentTypes_kt_1k2nnm) {
|
|
865
|
+
properties_initialized_ContentTypes_kt_1k2nnm = true;
|
|
866
|
+
textSubTypes = setOf(['json', 'ld+json', 'xml', 'xhtml+xml', 'rss+xml', 'atom+xml', 'x-www-form-urlencoded', 'svg+xml']);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
834
869
|
function isDigit(_this__u8e3s4) {
|
|
835
870
|
return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
|
|
836
871
|
}
|
|
@@ -841,7 +876,7 @@
|
|
|
841
876
|
var HeaderFieldValueSeparators;
|
|
842
877
|
function append(_this__u8e3s4, name, value) {
|
|
843
878
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
844
|
-
_this__u8e3s4.
|
|
879
|
+
_this__u8e3s4.x2n(name, value.toString());
|
|
845
880
|
}
|
|
846
881
|
function Companion_0() {
|
|
847
882
|
}
|
|
@@ -851,19 +886,19 @@
|
|
|
851
886
|
}
|
|
852
887
|
function HeaderValueWithParameters(content, parameters) {
|
|
853
888
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
889
|
+
this.w2s_1 = content;
|
|
890
|
+
this.x2s_1 = parameters;
|
|
856
891
|
}
|
|
857
|
-
protoOf(HeaderValueWithParameters).
|
|
892
|
+
protoOf(HeaderValueWithParameters).e2v = function (name) {
|
|
858
893
|
var inductionVariable = 0;
|
|
859
|
-
var last = get_lastIndex(this.
|
|
894
|
+
var last = get_lastIndex(this.x2s_1);
|
|
860
895
|
if (inductionVariable <= last)
|
|
861
896
|
do {
|
|
862
897
|
var index = inductionVariable;
|
|
863
898
|
inductionVariable = inductionVariable + 1 | 0;
|
|
864
|
-
var parameter = this.
|
|
865
|
-
if (equals(parameter.
|
|
866
|
-
return parameter.
|
|
899
|
+
var parameter = this.x2s_1.m1(index);
|
|
900
|
+
if (equals(parameter.y2s_1, name, true)) {
|
|
901
|
+
return parameter.z2s_1;
|
|
867
902
|
}
|
|
868
903
|
}
|
|
869
904
|
while (!(index === last));
|
|
@@ -871,34 +906,34 @@
|
|
|
871
906
|
};
|
|
872
907
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
873
908
|
var tmp;
|
|
874
|
-
if (this.
|
|
875
|
-
tmp = this.
|
|
909
|
+
if (this.x2s_1.r()) {
|
|
910
|
+
tmp = this.w2s_1;
|
|
876
911
|
} else {
|
|
877
|
-
var tmp_0 = this.
|
|
912
|
+
var tmp_0 = this.w2s_1.length;
|
|
878
913
|
// Inline function 'kotlin.collections.sumOf' call
|
|
879
914
|
var sum = 0;
|
|
880
|
-
var _iterator__ex2g4s = this.
|
|
915
|
+
var _iterator__ex2g4s = this.x2s_1.t();
|
|
881
916
|
while (_iterator__ex2g4s.u()) {
|
|
882
917
|
var element = _iterator__ex2g4s.v();
|
|
883
918
|
var tmp_1 = sum;
|
|
884
|
-
sum = tmp_1 + ((element.
|
|
919
|
+
sum = tmp_1 + ((element.y2s_1.length + element.z2s_1.length | 0) + 3 | 0) | 0;
|
|
885
920
|
}
|
|
886
921
|
var size = tmp_0 + sum | 0;
|
|
887
922
|
// Inline function 'kotlin.apply' call
|
|
888
923
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
889
|
-
this_0.q(this.
|
|
924
|
+
this_0.q(this.w2s_1);
|
|
890
925
|
var inductionVariable = 0;
|
|
891
|
-
var last = get_lastIndex(this.
|
|
926
|
+
var last = get_lastIndex(this.x2s_1);
|
|
892
927
|
if (inductionVariable <= last)
|
|
893
928
|
do {
|
|
894
929
|
var index = inductionVariable;
|
|
895
930
|
inductionVariable = inductionVariable + 1 | 0;
|
|
896
|
-
var element_0 = this.
|
|
931
|
+
var element_0 = this.x2s_1.m1(index);
|
|
897
932
|
this_0.q('; ');
|
|
898
|
-
this_0.q(element_0.
|
|
933
|
+
this_0.q(element_0.y2s_1);
|
|
899
934
|
this_0.q('=');
|
|
900
935
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
901
|
-
var this_1 = element_0.
|
|
936
|
+
var this_1 = element_0.z2s_1;
|
|
902
937
|
if (needQuotes(this_1))
|
|
903
938
|
this_0.q(quote(this_1));
|
|
904
939
|
else
|
|
@@ -921,7 +956,7 @@
|
|
|
921
956
|
while (inductionVariable < last) {
|
|
922
957
|
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
923
958
|
inductionVariable = inductionVariable + 1 | 0;
|
|
924
|
-
if (get_HeaderFieldValueSeparators().
|
|
959
|
+
if (get_HeaderFieldValueSeparators().n2(new Char(element)))
|
|
925
960
|
return true;
|
|
926
961
|
}
|
|
927
962
|
return false;
|
|
@@ -999,7 +1034,7 @@
|
|
|
999
1034
|
}
|
|
1000
1035
|
function Companion_1() {
|
|
1001
1036
|
Companion_instance_1 = this;
|
|
1002
|
-
this.
|
|
1037
|
+
this.f2v_1 = EmptyHeaders_instance;
|
|
1003
1038
|
}
|
|
1004
1039
|
var Companion_instance_1;
|
|
1005
1040
|
function Companion_getInstance_1() {
|
|
@@ -1011,39 +1046,39 @@
|
|
|
1011
1046
|
size = size === VOID ? 8 : size;
|
|
1012
1047
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1013
1048
|
}
|
|
1014
|
-
protoOf(HeadersBuilder).
|
|
1015
|
-
return new HeadersImpl(this.
|
|
1049
|
+
protoOf(HeadersBuilder).i2v = function () {
|
|
1050
|
+
return new HeadersImpl(this.f2o_1);
|
|
1016
1051
|
};
|
|
1017
|
-
protoOf(HeadersBuilder).
|
|
1018
|
-
protoOf(StringValuesBuilderImpl).
|
|
1019
|
-
HttpHeaders_getInstance().
|
|
1052
|
+
protoOf(HeadersBuilder).g2o = function (name) {
|
|
1053
|
+
protoOf(StringValuesBuilderImpl).g2o.call(this, name);
|
|
1054
|
+
HttpHeaders_getInstance().g2z(name);
|
|
1020
1055
|
};
|
|
1021
|
-
protoOf(HeadersBuilder).
|
|
1022
|
-
protoOf(StringValuesBuilderImpl).
|
|
1023
|
-
HttpHeaders_getInstance().
|
|
1056
|
+
protoOf(HeadersBuilder).i2o = function (value) {
|
|
1057
|
+
protoOf(StringValuesBuilderImpl).i2o.call(this, value);
|
|
1058
|
+
HttpHeaders_getInstance().h2z(value);
|
|
1024
1059
|
};
|
|
1025
1060
|
function headersOf(name, value) {
|
|
1026
1061
|
return new HeadersSingleImpl(name, listOf_0(value));
|
|
1027
1062
|
}
|
|
1028
1063
|
function EmptyHeaders() {
|
|
1029
1064
|
}
|
|
1030
|
-
protoOf(EmptyHeaders).
|
|
1065
|
+
protoOf(EmptyHeaders).a2o = function () {
|
|
1031
1066
|
return true;
|
|
1032
1067
|
};
|
|
1033
|
-
protoOf(EmptyHeaders).
|
|
1068
|
+
protoOf(EmptyHeaders).b2o = function (name) {
|
|
1034
1069
|
return null;
|
|
1035
1070
|
};
|
|
1036
|
-
protoOf(EmptyHeaders).
|
|
1071
|
+
protoOf(EmptyHeaders).c2o = function () {
|
|
1037
1072
|
return emptySet();
|
|
1038
1073
|
};
|
|
1039
|
-
protoOf(EmptyHeaders).
|
|
1074
|
+
protoOf(EmptyHeaders).y2n = function () {
|
|
1040
1075
|
return emptySet();
|
|
1041
1076
|
};
|
|
1042
1077
|
protoOf(EmptyHeaders).r = function () {
|
|
1043
1078
|
return true;
|
|
1044
1079
|
};
|
|
1045
1080
|
protoOf(EmptyHeaders).toString = function () {
|
|
1046
|
-
return 'Headers ' + toString(this.
|
|
1081
|
+
return 'Headers ' + toString(this.y2n());
|
|
1047
1082
|
};
|
|
1048
1083
|
var EmptyHeaders_instance;
|
|
1049
1084
|
function EmptyHeaders_getInstance() {
|
|
@@ -1054,27 +1089,27 @@
|
|
|
1054
1089
|
StringValuesImpl.call(this, true, values);
|
|
1055
1090
|
}
|
|
1056
1091
|
protoOf(HeadersImpl).toString = function () {
|
|
1057
|
-
return 'Headers ' + toString(this.
|
|
1092
|
+
return 'Headers ' + toString(this.y2n());
|
|
1058
1093
|
};
|
|
1059
1094
|
function HeadersSingleImpl(name, values) {
|
|
1060
1095
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1061
1096
|
}
|
|
1062
1097
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1063
|
-
return 'Headers ' + toString(this.
|
|
1098
|
+
return 'Headers ' + toString(this.y2n());
|
|
1064
1099
|
};
|
|
1065
1100
|
function HeaderValue(value, params) {
|
|
1066
1101
|
params = params === VOID ? emptyList() : params;
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1102
|
+
this.c2t_1 = value;
|
|
1103
|
+
this.d2t_1 = params;
|
|
1069
1104
|
var tmp = this;
|
|
1070
|
-
var tmp0 = this.
|
|
1105
|
+
var tmp0 = this.d2t_1;
|
|
1071
1106
|
var tmp$ret$1;
|
|
1072
1107
|
$l$block: {
|
|
1073
1108
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1074
1109
|
var _iterator__ex2g4s = tmp0.t();
|
|
1075
1110
|
while (_iterator__ex2g4s.u()) {
|
|
1076
1111
|
var element = _iterator__ex2g4s.v();
|
|
1077
|
-
if (element.
|
|
1112
|
+
if (element.y2s_1 === 'q') {
|
|
1078
1113
|
tmp$ret$1 = element;
|
|
1079
1114
|
break $l$block;
|
|
1080
1115
|
}
|
|
@@ -1082,7 +1117,7 @@
|
|
|
1082
1117
|
tmp$ret$1 = null;
|
|
1083
1118
|
}
|
|
1084
1119
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1085
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1120
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z2s_1;
|
|
1086
1121
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1087
1122
|
var tmp_0;
|
|
1088
1123
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1098,17 +1133,17 @@
|
|
|
1098
1133
|
tmp_0 = tmp_1;
|
|
1099
1134
|
}
|
|
1100
1135
|
var tmp3_elvis_lhs = tmp_0;
|
|
1101
|
-
tmp.
|
|
1136
|
+
tmp.e2t_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1102
1137
|
}
|
|
1103
1138
|
protoOf(HeaderValue).fg = function () {
|
|
1104
|
-
return this.
|
|
1139
|
+
return this.c2t_1;
|
|
1105
1140
|
};
|
|
1106
1141
|
protoOf(HeaderValue).toString = function () {
|
|
1107
|
-
return 'HeaderValue(value=' + this.
|
|
1142
|
+
return 'HeaderValue(value=' + this.c2t_1 + ', params=' + toString(this.d2t_1) + ')';
|
|
1108
1143
|
};
|
|
1109
1144
|
protoOf(HeaderValue).hashCode = function () {
|
|
1110
|
-
var result = getStringHashCode(this.
|
|
1111
|
-
result = imul(result, 31) + hashCode(this.
|
|
1145
|
+
var result = getStringHashCode(this.c2t_1);
|
|
1146
|
+
result = imul(result, 31) + hashCode(this.d2t_1) | 0;
|
|
1112
1147
|
return result;
|
|
1113
1148
|
};
|
|
1114
1149
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1116,9 +1151,9 @@
|
|
|
1116
1151
|
return true;
|
|
1117
1152
|
if (!(other instanceof HeaderValue))
|
|
1118
1153
|
return false;
|
|
1119
|
-
if (!(this.
|
|
1154
|
+
if (!(this.c2t_1 === other.c2t_1))
|
|
1120
1155
|
return false;
|
|
1121
|
-
if (!equals_0(this.
|
|
1156
|
+
if (!equals_0(this.d2t_1, other.d2t_1))
|
|
1122
1157
|
return false;
|
|
1123
1158
|
return true;
|
|
1124
1159
|
};
|
|
@@ -1138,20 +1173,20 @@
|
|
|
1138
1173
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1139
1174
|
}
|
|
1140
1175
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1176
|
+
this.y2s_1 = name;
|
|
1177
|
+
this.z2s_1 = value;
|
|
1178
|
+
this.a2t_1 = escapeValue;
|
|
1144
1179
|
}
|
|
1145
1180
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1146
1181
|
var tmp;
|
|
1147
1182
|
var tmp_0;
|
|
1148
1183
|
if (other instanceof HeaderValueParam) {
|
|
1149
|
-
tmp_0 = equals(other.
|
|
1184
|
+
tmp_0 = equals(other.y2s_1, this.y2s_1, true);
|
|
1150
1185
|
} else {
|
|
1151
1186
|
tmp_0 = false;
|
|
1152
1187
|
}
|
|
1153
1188
|
if (tmp_0) {
|
|
1154
|
-
tmp = equals(other.
|
|
1189
|
+
tmp = equals(other.z2s_1, this.z2s_1, true);
|
|
1155
1190
|
} else {
|
|
1156
1191
|
tmp = false;
|
|
1157
1192
|
}
|
|
@@ -1160,24 +1195,24 @@
|
|
|
1160
1195
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1161
1196
|
// Inline function 'kotlin.text.lowercase' call
|
|
1162
1197
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1163
|
-
var tmp$ret$1 = this.
|
|
1198
|
+
var tmp$ret$1 = this.y2s_1.toLowerCase();
|
|
1164
1199
|
var result = getStringHashCode(tmp$ret$1);
|
|
1165
1200
|
var tmp = result;
|
|
1166
1201
|
var tmp_0 = imul(31, result);
|
|
1167
1202
|
// Inline function 'kotlin.text.lowercase' call
|
|
1168
1203
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1169
|
-
var tmp$ret$3 = this.
|
|
1204
|
+
var tmp$ret$3 = this.z2s_1.toLowerCase();
|
|
1170
1205
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1171
1206
|
return result;
|
|
1172
1207
|
};
|
|
1173
1208
|
protoOf(HeaderValueParam).fg = function () {
|
|
1174
|
-
return this.
|
|
1209
|
+
return this.y2s_1;
|
|
1175
1210
|
};
|
|
1176
1211
|
protoOf(HeaderValueParam).gg = function () {
|
|
1177
|
-
return this.
|
|
1212
|
+
return this.z2s_1;
|
|
1178
1213
|
};
|
|
1179
1214
|
protoOf(HeaderValueParam).toString = function () {
|
|
1180
|
-
return 'HeaderValueParam(name=' + this.
|
|
1215
|
+
return 'HeaderValueParam(name=' + this.y2s_1 + ', value=' + this.z2s_1 + ', escapeValue=' + this.a2t_1 + ')';
|
|
1181
1216
|
};
|
|
1182
1217
|
function parseHeaderValue(text) {
|
|
1183
1218
|
return parseHeaderValue_0(text, false);
|
|
@@ -1202,7 +1237,7 @@
|
|
|
1202
1237
|
while (position <= get_lastIndex_0(text)) {
|
|
1203
1238
|
var tmp0_subject = charCodeAt(text, position);
|
|
1204
1239
|
if (tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
1205
|
-
var tmp_0 = items.
|
|
1240
|
+
var tmp_0 = items.s1();
|
|
1206
1241
|
var tmp1_elvis_lhs = valueEnd;
|
|
1207
1242
|
tmp_0.j1(new HeaderValue(subtrim(text, start, tmp1_elvis_lhs == null ? position : tmp1_elvis_lhs), valueOrEmpty(parameters)));
|
|
1208
1243
|
return position + 1 | 0;
|
|
@@ -1220,13 +1255,13 @@
|
|
|
1220
1255
|
position = tmp_1;
|
|
1221
1256
|
}
|
|
1222
1257
|
}
|
|
1223
|
-
var tmp_2 = items.
|
|
1258
|
+
var tmp_2 = items.s1();
|
|
1224
1259
|
var tmp2_elvis_lhs = valueEnd;
|
|
1225
1260
|
tmp_2.j1(new HeaderValue(subtrim(text, start, tmp2_elvis_lhs == null ? position : tmp2_elvis_lhs), valueOrEmpty(parameters)));
|
|
1226
1261
|
return position;
|
|
1227
1262
|
}
|
|
1228
1263
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1229
|
-
return _this__u8e3s4.
|
|
1264
|
+
return _this__u8e3s4.sm() ? _this__u8e3s4.s1() : emptyList();
|
|
1230
1265
|
}
|
|
1231
1266
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1232
1267
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -1301,16 +1336,16 @@
|
|
|
1301
1336
|
return position === _this__u8e3s4.length || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(59) || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(44);
|
|
1302
1337
|
}
|
|
1303
1338
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1304
|
-
this.
|
|
1339
|
+
this.i2z_1 = function_0;
|
|
1305
1340
|
}
|
|
1306
1341
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
1307
|
-
return this.
|
|
1342
|
+
return this.i2z_1(a, b);
|
|
1308
1343
|
};
|
|
1309
1344
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1310
1345
|
return this.wd(a, b);
|
|
1311
1346
|
};
|
|
1312
1347
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
1313
|
-
return this.
|
|
1348
|
+
return this.i2z_1;
|
|
1314
1349
|
};
|
|
1315
1350
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1316
1351
|
var tmp;
|
|
@@ -1332,8 +1367,8 @@
|
|
|
1332
1367
|
};
|
|
1333
1368
|
function parseAndSortHeader$lambda(a, b) {
|
|
1334
1369
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1335
|
-
var tmp = b.
|
|
1336
|
-
var tmp$ret$1 = a.
|
|
1370
|
+
var tmp = b.e2t_1;
|
|
1371
|
+
var tmp$ret$1 = a.e2t_1;
|
|
1337
1372
|
return compareValues(tmp, tmp$ret$1);
|
|
1338
1373
|
}
|
|
1339
1374
|
function parseHeaderValue$lambda() {
|
|
@@ -1350,117 +1385,117 @@
|
|
|
1350
1385
|
if (charSequenceLength(name) === 0) {
|
|
1351
1386
|
return Unit_instance;
|
|
1352
1387
|
}
|
|
1353
|
-
$parameters.
|
|
1388
|
+
$parameters.s1().j1(HeaderValueParam_init_$Create$(name, value));
|
|
1354
1389
|
}
|
|
1355
1390
|
function HttpHeaders() {
|
|
1356
1391
|
HttpHeaders_instance = this;
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1392
|
+
this.j2v_1 = 'Accept';
|
|
1393
|
+
this.k2v_1 = 'Accept-Charset';
|
|
1394
|
+
this.l2v_1 = 'Accept-Encoding';
|
|
1395
|
+
this.m2v_1 = 'Accept-Language';
|
|
1396
|
+
this.n2v_1 = 'Accept-Ranges';
|
|
1397
|
+
this.o2v_1 = 'Age';
|
|
1398
|
+
this.p2v_1 = 'Allow';
|
|
1399
|
+
this.q2v_1 = 'ALPN';
|
|
1400
|
+
this.r2v_1 = 'Authentication-Info';
|
|
1401
|
+
this.s2v_1 = 'Authorization';
|
|
1402
|
+
this.t2v_1 = 'Cache-Control';
|
|
1403
|
+
this.u2v_1 = 'Connection';
|
|
1404
|
+
this.v2v_1 = 'Content-Disposition';
|
|
1405
|
+
this.w2v_1 = 'Content-Encoding';
|
|
1406
|
+
this.x2v_1 = 'Content-Language';
|
|
1407
|
+
this.y2v_1 = 'Content-Length';
|
|
1408
|
+
this.z2v_1 = 'Content-Location';
|
|
1409
|
+
this.a2w_1 = 'Content-Range';
|
|
1410
|
+
this.b2w_1 = 'Content-Type';
|
|
1411
|
+
this.c2w_1 = 'Cookie';
|
|
1412
|
+
this.d2w_1 = 'DASL';
|
|
1413
|
+
this.e2w_1 = 'Date';
|
|
1414
|
+
this.f2w_1 = 'DAV';
|
|
1415
|
+
this.g2w_1 = 'Depth';
|
|
1416
|
+
this.h2w_1 = 'Destination';
|
|
1417
|
+
this.i2w_1 = 'ETag';
|
|
1418
|
+
this.j2w_1 = 'Expect';
|
|
1419
|
+
this.k2w_1 = 'Expires';
|
|
1420
|
+
this.l2w_1 = 'From';
|
|
1421
|
+
this.m2w_1 = 'Forwarded';
|
|
1422
|
+
this.n2w_1 = 'Host';
|
|
1423
|
+
this.o2w_1 = 'HTTP2-Settings';
|
|
1424
|
+
this.p2w_1 = 'If';
|
|
1425
|
+
this.q2w_1 = 'If-Match';
|
|
1426
|
+
this.r2w_1 = 'If-Modified-Since';
|
|
1427
|
+
this.s2w_1 = 'If-None-Match';
|
|
1428
|
+
this.t2w_1 = 'If-Range';
|
|
1429
|
+
this.u2w_1 = 'If-Schedule-Tag-Match';
|
|
1430
|
+
this.v2w_1 = 'If-Unmodified-Since';
|
|
1431
|
+
this.w2w_1 = 'Last-Modified';
|
|
1432
|
+
this.x2w_1 = 'Location';
|
|
1433
|
+
this.y2w_1 = 'Lock-Token';
|
|
1434
|
+
this.z2w_1 = 'Link';
|
|
1435
|
+
this.a2x_1 = 'Max-Forwards';
|
|
1436
|
+
this.b2x_1 = 'MIME-Version';
|
|
1437
|
+
this.c2x_1 = 'Ordering-Type';
|
|
1438
|
+
this.d2x_1 = 'Origin';
|
|
1439
|
+
this.e2x_1 = 'Overwrite';
|
|
1440
|
+
this.f2x_1 = 'Position';
|
|
1441
|
+
this.g2x_1 = 'Pragma';
|
|
1442
|
+
this.h2x_1 = 'Prefer';
|
|
1443
|
+
this.i2x_1 = 'Preference-Applied';
|
|
1444
|
+
this.j2x_1 = 'Proxy-Authenticate';
|
|
1445
|
+
this.k2x_1 = 'Proxy-Authentication-Info';
|
|
1446
|
+
this.l2x_1 = 'Proxy-Authorization';
|
|
1447
|
+
this.m2x_1 = 'Public-Key-Pins';
|
|
1448
|
+
this.n2x_1 = 'Public-Key-Pins-Report-Only';
|
|
1449
|
+
this.o2x_1 = 'Range';
|
|
1450
|
+
this.p2x_1 = 'Referer';
|
|
1451
|
+
this.q2x_1 = 'Retry-After';
|
|
1452
|
+
this.r2x_1 = 'Schedule-Reply';
|
|
1453
|
+
this.s2x_1 = 'Schedule-Tag';
|
|
1454
|
+
this.t2x_1 = 'Sec-WebSocket-Accept';
|
|
1455
|
+
this.u2x_1 = 'Sec-WebSocket-Extensions';
|
|
1456
|
+
this.v2x_1 = 'Sec-WebSocket-Key';
|
|
1457
|
+
this.w2x_1 = 'Sec-WebSocket-Protocol';
|
|
1458
|
+
this.x2x_1 = 'Sec-WebSocket-Version';
|
|
1459
|
+
this.y2x_1 = 'Server';
|
|
1460
|
+
this.z2x_1 = 'Set-Cookie';
|
|
1461
|
+
this.a2y_1 = 'SLUG';
|
|
1462
|
+
this.b2y_1 = 'Strict-Transport-Security';
|
|
1463
|
+
this.c2y_1 = 'TE';
|
|
1464
|
+
this.d2y_1 = 'Timeout';
|
|
1465
|
+
this.e2y_1 = 'Trailer';
|
|
1466
|
+
this.f2y_1 = 'Transfer-Encoding';
|
|
1467
|
+
this.g2y_1 = 'Upgrade';
|
|
1468
|
+
this.h2y_1 = 'User-Agent';
|
|
1469
|
+
this.i2y_1 = 'Vary';
|
|
1470
|
+
this.j2y_1 = 'Via';
|
|
1471
|
+
this.k2y_1 = 'Warning';
|
|
1472
|
+
this.l2y_1 = 'WWW-Authenticate';
|
|
1473
|
+
this.m2y_1 = 'Access-Control-Allow-Origin';
|
|
1474
|
+
this.n2y_1 = 'Access-Control-Allow-Methods';
|
|
1475
|
+
this.o2y_1 = 'Access-Control-Allow-Credentials';
|
|
1476
|
+
this.p2y_1 = 'Access-Control-Allow-Headers';
|
|
1477
|
+
this.q2y_1 = 'Access-Control-Request-Method';
|
|
1478
|
+
this.r2y_1 = 'Access-Control-Request-Headers';
|
|
1479
|
+
this.s2y_1 = 'Access-Control-Expose-Headers';
|
|
1480
|
+
this.t2y_1 = 'Access-Control-Max-Age';
|
|
1481
|
+
this.u2y_1 = 'X-Http-Method-Override';
|
|
1482
|
+
this.v2y_1 = 'X-Forwarded-Host';
|
|
1483
|
+
this.w2y_1 = 'X-Forwarded-Server';
|
|
1484
|
+
this.x2y_1 = 'X-Forwarded-Proto';
|
|
1485
|
+
this.y2y_1 = 'X-Forwarded-For';
|
|
1486
|
+
this.z2y_1 = 'X-Forwarded-Port';
|
|
1487
|
+
this.a2z_1 = 'X-Request-ID';
|
|
1488
|
+
this.b2z_1 = 'X-Correlation-ID';
|
|
1489
|
+
this.c2z_1 = 'X-Total-Count';
|
|
1490
|
+
this.d2z_1 = 'Last-Event-ID';
|
|
1456
1491
|
var tmp = this;
|
|
1457
1492
|
// Inline function 'kotlin.arrayOf' call
|
|
1458
1493
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1459
1494
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1460
|
-
tmp.
|
|
1461
|
-
this.
|
|
1495
|
+
tmp.e2z_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1496
|
+
this.f2z_1 = asList(this.e2z_1);
|
|
1462
1497
|
}
|
|
1463
|
-
protoOf(HttpHeaders).
|
|
1498
|
+
protoOf(HttpHeaders).g2z = function (name) {
|
|
1464
1499
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1465
1500
|
var index = 0;
|
|
1466
1501
|
var inductionVariable = 0;
|
|
@@ -1474,7 +1509,7 @@
|
|
|
1474
1509
|
}
|
|
1475
1510
|
}
|
|
1476
1511
|
};
|
|
1477
|
-
protoOf(HttpHeaders).
|
|
1512
|
+
protoOf(HttpHeaders).h2z = function (value) {
|
|
1478
1513
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1479
1514
|
var index = 0;
|
|
1480
1515
|
var inductionVariable = 0;
|
|
@@ -1508,8 +1543,8 @@
|
|
|
1508
1543
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1509
1544
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1510
1545
|
captureStack(this, IllegalHeaderNameException);
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1546
|
+
this.j2z_1 = headerName;
|
|
1547
|
+
this.k2z_1 = position;
|
|
1513
1548
|
}
|
|
1514
1549
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1515
1550
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
@@ -1518,32 +1553,32 @@
|
|
|
1518
1553
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1519
1554
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1520
1555
|
captureStack(this, IllegalHeaderValueException);
|
|
1521
|
-
this.
|
|
1522
|
-
this.
|
|
1556
|
+
this.l2z_1 = headerValue;
|
|
1557
|
+
this.m2z_1 = position;
|
|
1523
1558
|
}
|
|
1524
1559
|
function contentLength(_this__u8e3s4) {
|
|
1525
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1560
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2z().p2m('Content-Length');
|
|
1526
1561
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1527
1562
|
}
|
|
1528
1563
|
function contentType(_this__u8e3s4) {
|
|
1529
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1564
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2z().p2m('Content-Type');
|
|
1530
1565
|
var tmp;
|
|
1531
1566
|
if (tmp0_safe_receiver == null) {
|
|
1532
1567
|
tmp = null;
|
|
1533
1568
|
} else {
|
|
1534
1569
|
// Inline function 'kotlin.let' call
|
|
1535
|
-
tmp = Companion_getInstance().
|
|
1570
|
+
tmp = Companion_getInstance().ym(tmp0_safe_receiver);
|
|
1536
1571
|
}
|
|
1537
1572
|
return tmp;
|
|
1538
1573
|
}
|
|
1539
1574
|
function contentType_0(_this__u8e3s4) {
|
|
1540
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1575
|
+
var tmp0_safe_receiver = _this__u8e3s4.n2z().p2m('Content-Type');
|
|
1541
1576
|
var tmp;
|
|
1542
1577
|
if (tmp0_safe_receiver == null) {
|
|
1543
1578
|
tmp = null;
|
|
1544
1579
|
} else {
|
|
1545
1580
|
// Inline function 'kotlin.let' call
|
|
1546
|
-
tmp = Companion_getInstance().
|
|
1581
|
+
tmp = Companion_getInstance().ym(tmp0_safe_receiver);
|
|
1547
1582
|
}
|
|
1548
1583
|
return tmp;
|
|
1549
1584
|
}
|
|
@@ -1558,14 +1593,16 @@
|
|
|
1558
1593
|
var REQUESTS_WITHOUT_BODY;
|
|
1559
1594
|
function Companion_2() {
|
|
1560
1595
|
Companion_instance_2 = this;
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1596
|
+
this.o2z_1 = new HttpMethod('GET');
|
|
1597
|
+
this.p2z_1 = new HttpMethod('POST');
|
|
1598
|
+
this.q2z_1 = new HttpMethod('PUT');
|
|
1599
|
+
this.r2z_1 = new HttpMethod('PATCH');
|
|
1600
|
+
this.s2z_1 = new HttpMethod('DELETE');
|
|
1601
|
+
this.t2z_1 = new HttpMethod('HEAD');
|
|
1602
|
+
this.u2z_1 = new HttpMethod('OPTIONS');
|
|
1603
|
+
this.v2z_1 = new HttpMethod('TRACE');
|
|
1604
|
+
this.w2z_1 = new HttpMethod('QUERY');
|
|
1605
|
+
this.x2z_1 = listOf([this.o2z_1, this.p2z_1, this.q2z_1, this.r2z_1, this.s2z_1, this.t2z_1, this.u2z_1]);
|
|
1569
1606
|
}
|
|
1570
1607
|
var Companion_instance_2;
|
|
1571
1608
|
function Companion_getInstance_2() {
|
|
@@ -1575,42 +1612,42 @@
|
|
|
1575
1612
|
}
|
|
1576
1613
|
function HttpMethod(value) {
|
|
1577
1614
|
Companion_getInstance_2();
|
|
1578
|
-
this.
|
|
1615
|
+
this.y2z_1 = value;
|
|
1579
1616
|
}
|
|
1580
1617
|
protoOf(HttpMethod).toString = function () {
|
|
1581
|
-
return this.
|
|
1618
|
+
return this.y2z_1;
|
|
1582
1619
|
};
|
|
1583
1620
|
protoOf(HttpMethod).hashCode = function () {
|
|
1584
|
-
return getStringHashCode(this.
|
|
1621
|
+
return getStringHashCode(this.y2z_1);
|
|
1585
1622
|
};
|
|
1586
1623
|
protoOf(HttpMethod).equals = function (other) {
|
|
1587
1624
|
if (this === other)
|
|
1588
1625
|
return true;
|
|
1589
1626
|
if (!(other instanceof HttpMethod))
|
|
1590
1627
|
return false;
|
|
1591
|
-
if (!(this.
|
|
1628
|
+
if (!(this.y2z_1 === other.y2z_1))
|
|
1592
1629
|
return false;
|
|
1593
1630
|
return true;
|
|
1594
1631
|
};
|
|
1595
1632
|
function get_supportsRequestBody(_this__u8e3s4) {
|
|
1596
1633
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1597
|
-
return !get_REQUESTS_WITHOUT_BODY().
|
|
1634
|
+
return !get_REQUESTS_WITHOUT_BODY().n2(_this__u8e3s4);
|
|
1598
1635
|
}
|
|
1599
1636
|
var properties_initialized_HttpMethod_kt_ogor3f;
|
|
1600
1637
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1601
1638
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1602
1639
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1603
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1640
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().o2z_1, Companion_getInstance_2().t2z_1, Companion_getInstance_2().u2z_1, Companion_getInstance_2().v2z_1]);
|
|
1604
1641
|
}
|
|
1605
1642
|
}
|
|
1606
1643
|
function Companion_3() {
|
|
1607
1644
|
Companion_instance_3 = this;
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1645
|
+
this.z2z_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1646
|
+
this.a30_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1647
|
+
this.b30_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1648
|
+
this.c30_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1649
|
+
this.d30_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1650
|
+
this.e30_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1614
1651
|
}
|
|
1615
1652
|
var Companion_instance_3;
|
|
1616
1653
|
function Companion_getInstance_3() {
|
|
@@ -1620,17 +1657,17 @@
|
|
|
1620
1657
|
}
|
|
1621
1658
|
function HttpProtocolVersion(name, major, minor) {
|
|
1622
1659
|
Companion_getInstance_3();
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1660
|
+
this.f30_1 = name;
|
|
1661
|
+
this.g30_1 = major;
|
|
1662
|
+
this.h30_1 = minor;
|
|
1626
1663
|
}
|
|
1627
1664
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1628
|
-
return this.
|
|
1665
|
+
return this.f30_1 + '/' + this.g30_1 + '.' + this.h30_1;
|
|
1629
1666
|
};
|
|
1630
1667
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1631
|
-
var result = getStringHashCode(this.
|
|
1632
|
-
result = imul(result, 31) + this.
|
|
1633
|
-
result = imul(result, 31) + this.
|
|
1668
|
+
var result = getStringHashCode(this.f30_1);
|
|
1669
|
+
result = imul(result, 31) + this.g30_1 | 0;
|
|
1670
|
+
result = imul(result, 31) + this.h30_1 | 0;
|
|
1634
1671
|
return result;
|
|
1635
1672
|
};
|
|
1636
1673
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1638,83 +1675,83 @@
|
|
|
1638
1675
|
return true;
|
|
1639
1676
|
if (!(other instanceof HttpProtocolVersion))
|
|
1640
1677
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1678
|
+
if (!(this.f30_1 === other.f30_1))
|
|
1642
1679
|
return false;
|
|
1643
|
-
if (!(this.
|
|
1680
|
+
if (!(this.g30_1 === other.g30_1))
|
|
1644
1681
|
return false;
|
|
1645
|
-
if (!(this.
|
|
1682
|
+
if (!(this.h30_1 === other.h30_1))
|
|
1646
1683
|
return false;
|
|
1647
1684
|
return true;
|
|
1648
1685
|
};
|
|
1649
1686
|
function Companion_4() {
|
|
1650
1687
|
Companion_instance_4 = this;
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1688
|
+
this.i30_1 = new HttpStatusCode(100, 'Continue');
|
|
1689
|
+
this.j30_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1690
|
+
this.k30_1 = new HttpStatusCode(102, 'Processing');
|
|
1691
|
+
this.l30_1 = new HttpStatusCode(200, 'OK');
|
|
1692
|
+
this.m30_1 = new HttpStatusCode(201, 'Created');
|
|
1693
|
+
this.n30_1 = new HttpStatusCode(202, 'Accepted');
|
|
1694
|
+
this.o30_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1695
|
+
this.p30_1 = new HttpStatusCode(204, 'No Content');
|
|
1696
|
+
this.q30_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1697
|
+
this.r30_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1698
|
+
this.s30_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1699
|
+
this.t30_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1700
|
+
this.u30_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1701
|
+
this.v30_1 = new HttpStatusCode(302, 'Found');
|
|
1702
|
+
this.w30_1 = new HttpStatusCode(303, 'See Other');
|
|
1703
|
+
this.x30_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1704
|
+
this.y30_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1705
|
+
this.z30_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1706
|
+
this.a31_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1707
|
+
this.b31_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1708
|
+
this.c31_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1709
|
+
this.d31_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1710
|
+
this.e31_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1711
|
+
this.f31_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1712
|
+
this.g31_1 = new HttpStatusCode(404, 'Not Found');
|
|
1713
|
+
this.h31_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1714
|
+
this.i31_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1715
|
+
this.j31_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1716
|
+
this.k31_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1717
|
+
this.l31_1 = new HttpStatusCode(409, 'Conflict');
|
|
1718
|
+
this.m31_1 = new HttpStatusCode(410, 'Gone');
|
|
1719
|
+
this.n31_1 = new HttpStatusCode(411, 'Length Required');
|
|
1720
|
+
this.o31_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1721
|
+
this.p31_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1722
|
+
this.q31_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1723
|
+
this.r31_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1724
|
+
this.s31_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1725
|
+
this.t31_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1726
|
+
this.u31_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1727
|
+
this.v31_1 = new HttpStatusCode(423, 'Locked');
|
|
1728
|
+
this.w31_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1729
|
+
this.x31_1 = new HttpStatusCode(425, 'Too Early');
|
|
1730
|
+
this.y31_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1731
|
+
this.z31_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1732
|
+
this.a32_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1733
|
+
this.b32_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1734
|
+
this.c32_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1735
|
+
this.d32_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1736
|
+
this.e32_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1737
|
+
this.f32_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1738
|
+
this.g32_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1739
|
+
this.h32_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1740
|
+
this.i32_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1741
|
+
this.j32_1 = allStatusCodes();
|
|
1705
1742
|
var tmp = this;
|
|
1706
1743
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1707
|
-
var this_0 = this.
|
|
1744
|
+
var this_0 = this.j32_1;
|
|
1708
1745
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1709
1746
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1710
1747
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1711
1748
|
var _iterator__ex2g4s = this_0.t();
|
|
1712
1749
|
while (_iterator__ex2g4s.u()) {
|
|
1713
1750
|
var element = _iterator__ex2g4s.v();
|
|
1714
|
-
var tmp$ret$0 = element.
|
|
1751
|
+
var tmp$ret$0 = element.l32_1;
|
|
1715
1752
|
destination.y2(tmp$ret$0, element);
|
|
1716
1753
|
}
|
|
1717
|
-
tmp.
|
|
1754
|
+
tmp.k32_1 = destination;
|
|
1718
1755
|
}
|
|
1719
1756
|
var Companion_instance_4;
|
|
1720
1757
|
function Companion_getInstance_4() {
|
|
@@ -1724,36 +1761,36 @@
|
|
|
1724
1761
|
}
|
|
1725
1762
|
function HttpStatusCode(value, description) {
|
|
1726
1763
|
Companion_getInstance_4();
|
|
1727
|
-
this.
|
|
1728
|
-
this.
|
|
1764
|
+
this.l32_1 = value;
|
|
1765
|
+
this.m32_1 = description;
|
|
1729
1766
|
}
|
|
1730
1767
|
protoOf(HttpStatusCode).toString = function () {
|
|
1731
|
-
return '' + this.
|
|
1768
|
+
return '' + this.l32_1 + ' ' + this.m32_1;
|
|
1732
1769
|
};
|
|
1733
1770
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1734
1771
|
var tmp;
|
|
1735
1772
|
if (other instanceof HttpStatusCode) {
|
|
1736
|
-
tmp = other.
|
|
1773
|
+
tmp = other.l32_1 === this.l32_1;
|
|
1737
1774
|
} else {
|
|
1738
1775
|
tmp = false;
|
|
1739
1776
|
}
|
|
1740
1777
|
return tmp;
|
|
1741
1778
|
};
|
|
1742
1779
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1743
|
-
return this.
|
|
1780
|
+
return this.l32_1;
|
|
1744
1781
|
};
|
|
1745
|
-
protoOf(HttpStatusCode).
|
|
1746
|
-
return this.
|
|
1782
|
+
protoOf(HttpStatusCode).n32 = function (other) {
|
|
1783
|
+
return this.l32_1 - other.l32_1 | 0;
|
|
1747
1784
|
};
|
|
1748
1785
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1749
|
-
return this.
|
|
1786
|
+
return this.n32(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1750
1787
|
};
|
|
1751
1788
|
function allStatusCodes() {
|
|
1752
|
-
return listOf([Companion_getInstance_4().
|
|
1789
|
+
return listOf([Companion_getInstance_4().i30_1, Companion_getInstance_4().j30_1, Companion_getInstance_4().k30_1, Companion_getInstance_4().l30_1, Companion_getInstance_4().m30_1, Companion_getInstance_4().n30_1, Companion_getInstance_4().o30_1, Companion_getInstance_4().p30_1, Companion_getInstance_4().q30_1, Companion_getInstance_4().r30_1, Companion_getInstance_4().s30_1, Companion_getInstance_4().t30_1, Companion_getInstance_4().u30_1, Companion_getInstance_4().v30_1, Companion_getInstance_4().w30_1, Companion_getInstance_4().x30_1, Companion_getInstance_4().y30_1, Companion_getInstance_4().z30_1, Companion_getInstance_4().a31_1, Companion_getInstance_4().b31_1, Companion_getInstance_4().c31_1, Companion_getInstance_4().d31_1, Companion_getInstance_4().e31_1, Companion_getInstance_4().f31_1, Companion_getInstance_4().g31_1, Companion_getInstance_4().h31_1, Companion_getInstance_4().i31_1, Companion_getInstance_4().j31_1, Companion_getInstance_4().k31_1, Companion_getInstance_4().l31_1, Companion_getInstance_4().m31_1, Companion_getInstance_4().n31_1, Companion_getInstance_4().o31_1, Companion_getInstance_4().p31_1, Companion_getInstance_4().q31_1, Companion_getInstance_4().r31_1, Companion_getInstance_4().s31_1, Companion_getInstance_4().t31_1, Companion_getInstance_4().u31_1, Companion_getInstance_4().v31_1, Companion_getInstance_4().w31_1, Companion_getInstance_4().x31_1, Companion_getInstance_4().y31_1, Companion_getInstance_4().z31_1, Companion_getInstance_4().a32_1, Companion_getInstance_4().b32_1, Companion_getInstance_4().c32_1, Companion_getInstance_4().d32_1, Companion_getInstance_4().e32_1, Companion_getInstance_4().f32_1, Companion_getInstance_4().g32_1, Companion_getInstance_4().h32_1, Companion_getInstance_4().i32_1]);
|
|
1753
1790
|
}
|
|
1754
1791
|
function Companion_5() {
|
|
1755
1792
|
Companion_instance_5 = this;
|
|
1756
|
-
this.
|
|
1793
|
+
this.o32_1 = EmptyParameters_instance;
|
|
1757
1794
|
}
|
|
1758
1795
|
var Companion_instance_5;
|
|
1759
1796
|
function Companion_getInstance_5() {
|
|
@@ -1765,23 +1802,23 @@
|
|
|
1765
1802
|
}
|
|
1766
1803
|
function EmptyParameters() {
|
|
1767
1804
|
}
|
|
1768
|
-
protoOf(EmptyParameters).
|
|
1805
|
+
protoOf(EmptyParameters).a2o = function () {
|
|
1769
1806
|
return true;
|
|
1770
1807
|
};
|
|
1771
|
-
protoOf(EmptyParameters).
|
|
1808
|
+
protoOf(EmptyParameters).b2o = function (name) {
|
|
1772
1809
|
return null;
|
|
1773
1810
|
};
|
|
1774
|
-
protoOf(EmptyParameters).
|
|
1811
|
+
protoOf(EmptyParameters).c2o = function () {
|
|
1775
1812
|
return emptySet();
|
|
1776
1813
|
};
|
|
1777
|
-
protoOf(EmptyParameters).
|
|
1814
|
+
protoOf(EmptyParameters).y2n = function () {
|
|
1778
1815
|
return emptySet();
|
|
1779
1816
|
};
|
|
1780
1817
|
protoOf(EmptyParameters).r = function () {
|
|
1781
1818
|
return true;
|
|
1782
1819
|
};
|
|
1783
1820
|
protoOf(EmptyParameters).toString = function () {
|
|
1784
|
-
return 'Parameters ' + toString(this.
|
|
1821
|
+
return 'Parameters ' + toString(this.y2n());
|
|
1785
1822
|
};
|
|
1786
1823
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1787
1824
|
var tmp;
|
|
@@ -1804,15 +1841,15 @@
|
|
|
1804
1841
|
size = size === VOID ? 8 : size;
|
|
1805
1842
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1806
1843
|
}
|
|
1807
|
-
protoOf(ParametersBuilderImpl).
|
|
1808
|
-
return new ParametersImpl(this.
|
|
1844
|
+
protoOf(ParametersBuilderImpl).i2v = function () {
|
|
1845
|
+
return new ParametersImpl(this.f2o_1);
|
|
1809
1846
|
};
|
|
1810
1847
|
function ParametersImpl(values) {
|
|
1811
1848
|
values = values === VOID ? emptyMap() : values;
|
|
1812
1849
|
StringValuesImpl.call(this, true, values);
|
|
1813
1850
|
}
|
|
1814
1851
|
protoOf(ParametersImpl).toString = function () {
|
|
1815
|
-
return 'Parameters ' + toString(this.
|
|
1852
|
+
return 'Parameters ' + toString(this.y2n());
|
|
1816
1853
|
};
|
|
1817
1854
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1818
1855
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1820,14 +1857,14 @@
|
|
|
1820
1857
|
decode = decode === VOID ? true : decode;
|
|
1821
1858
|
var tmp;
|
|
1822
1859
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1823
|
-
tmp = Companion_getInstance_5().
|
|
1860
|
+
tmp = Companion_getInstance_5().o32_1;
|
|
1824
1861
|
} else {
|
|
1825
1862
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1826
1863
|
Companion_getInstance_5();
|
|
1827
1864
|
// Inline function 'kotlin.apply' call
|
|
1828
1865
|
var this_0 = ParametersBuilder();
|
|
1829
1866
|
parse(this_0, query, startIndex, limit, decode);
|
|
1830
|
-
tmp = this_0.
|
|
1867
|
+
tmp = this_0.i2v();
|
|
1831
1868
|
}
|
|
1832
1869
|
return tmp;
|
|
1833
1870
|
}
|
|
@@ -1868,7 +1905,7 @@
|
|
|
1868
1905
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1869
1906
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1870
1907
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1871
|
-
_this__u8e3s4.
|
|
1908
|
+
_this__u8e3s4.z2n(name, emptyList());
|
|
1872
1909
|
}
|
|
1873
1910
|
return Unit_instance;
|
|
1874
1911
|
}
|
|
@@ -1879,7 +1916,7 @@
|
|
|
1879
1916
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1880
1917
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1881
1918
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1882
|
-
_this__u8e3s4.
|
|
1919
|
+
_this__u8e3s4.x2n(name_0, value);
|
|
1883
1920
|
}
|
|
1884
1921
|
}
|
|
1885
1922
|
function trimStart(start, end, query) {
|
|
@@ -1899,25 +1936,25 @@
|
|
|
1899
1936
|
function applyOrigin($this) {
|
|
1900
1937
|
var tmp;
|
|
1901
1938
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1902
|
-
var this_0 = $this.
|
|
1939
|
+
var this_0 = $this.r32_1;
|
|
1903
1940
|
if (charSequenceLength(this_0) > 0) {
|
|
1904
1941
|
tmp = true;
|
|
1905
1942
|
} else {
|
|
1906
|
-
tmp = $this.
|
|
1943
|
+
tmp = $this.d33().b33_1 === 'file';
|
|
1907
1944
|
}
|
|
1908
1945
|
if (tmp)
|
|
1909
1946
|
return Unit_instance;
|
|
1910
|
-
$this.
|
|
1911
|
-
if ($this.
|
|
1912
|
-
$this.
|
|
1913
|
-
if ($this.
|
|
1914
|
-
$this.
|
|
1947
|
+
$this.r32_1 = Companion_getInstance_6().x33_1.e33_1;
|
|
1948
|
+
if ($this.u32_1 == null)
|
|
1949
|
+
$this.u32_1 = Companion_getInstance_6().x33_1.p33_1;
|
|
1950
|
+
if ($this.t32_1 === 0) {
|
|
1951
|
+
$this.z33(Companion_getInstance_6().x33_1.f33_1);
|
|
1915
1952
|
}
|
|
1916
1953
|
}
|
|
1917
1954
|
function Companion_6() {
|
|
1918
1955
|
Companion_instance_6 = this;
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1956
|
+
this.x33_1 = Url_0(get_origin(this));
|
|
1957
|
+
this.y33_1 = 256;
|
|
1921
1958
|
}
|
|
1922
1959
|
var Companion_instance_6;
|
|
1923
1960
|
function Companion_getInstance_6() {
|
|
@@ -1933,18 +1970,18 @@
|
|
|
1933
1970
|
user = user === VOID ? null : user;
|
|
1934
1971
|
password = password === VOID ? null : password;
|
|
1935
1972
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1936
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1973
|
+
parameters = parameters === VOID ? Companion_getInstance_5().o32_1 : parameters;
|
|
1937
1974
|
fragment = fragment === VOID ? '' : fragment;
|
|
1938
1975
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1976
|
+
this.r32_1 = host;
|
|
1977
|
+
this.s32_1 = trailingQuery;
|
|
1978
|
+
this.t32_1 = port;
|
|
1979
|
+
this.u32_1 = protocol;
|
|
1943
1980
|
var tmp = this;
|
|
1944
|
-
tmp.
|
|
1981
|
+
tmp.v32_1 = user == null ? null : encodeURLParameter(user);
|
|
1945
1982
|
var tmp_0 = this;
|
|
1946
|
-
tmp_0.
|
|
1947
|
-
this.
|
|
1983
|
+
tmp_0.w32_1 = password == null ? null : encodeURLParameter(password);
|
|
1984
|
+
this.x32_1 = encodeURLQueryComponent(fragment);
|
|
1948
1985
|
var tmp_1 = this;
|
|
1949
1986
|
// Inline function 'kotlin.collections.map' call
|
|
1950
1987
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1955,43 +1992,43 @@
|
|
|
1955
1992
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1956
1993
|
destination.j1(tmp$ret$0);
|
|
1957
1994
|
}
|
|
1958
|
-
tmp_1.
|
|
1959
|
-
this.
|
|
1960
|
-
this.
|
|
1995
|
+
tmp_1.y32_1 = destination;
|
|
1996
|
+
this.z32_1 = encodeParameters(parameters);
|
|
1997
|
+
this.a33_1 = new UrlDecodedParametersBuilder(this.z32_1);
|
|
1961
1998
|
}
|
|
1962
|
-
protoOf(URLBuilder).
|
|
1999
|
+
protoOf(URLBuilder).z33 = function (value) {
|
|
1963
2000
|
// Inline function 'kotlin.require' call
|
|
1964
2001
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1965
2002
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1966
2003
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1967
2004
|
}
|
|
1968
|
-
this.
|
|
2005
|
+
this.t32_1 = value;
|
|
1969
2006
|
};
|
|
1970
|
-
protoOf(URLBuilder).
|
|
1971
|
-
this.
|
|
2007
|
+
protoOf(URLBuilder).a34 = function (value) {
|
|
2008
|
+
this.u32_1 = value;
|
|
1972
2009
|
};
|
|
1973
|
-
protoOf(URLBuilder).
|
|
1974
|
-
var tmp0_elvis_lhs = this.
|
|
1975
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
2010
|
+
protoOf(URLBuilder).d33 = function () {
|
|
2011
|
+
var tmp0_elvis_lhs = this.u32_1;
|
|
2012
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().b34_1 : tmp0_elvis_lhs;
|
|
1976
2013
|
};
|
|
1977
|
-
protoOf(URLBuilder).
|
|
2014
|
+
protoOf(URLBuilder).h34 = function (value) {
|
|
1978
2015
|
var tmp = this;
|
|
1979
|
-
tmp.
|
|
2016
|
+
tmp.v32_1 = value == null ? null : encodeURLParameter(value);
|
|
1980
2017
|
};
|
|
1981
|
-
protoOf(URLBuilder).
|
|
1982
|
-
var tmp0_safe_receiver = this.
|
|
2018
|
+
protoOf(URLBuilder).i34 = function () {
|
|
2019
|
+
var tmp0_safe_receiver = this.v32_1;
|
|
1983
2020
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1984
2021
|
};
|
|
1985
|
-
protoOf(URLBuilder).
|
|
1986
|
-
var tmp0_safe_receiver = this.
|
|
2022
|
+
protoOf(URLBuilder).j34 = function () {
|
|
2023
|
+
var tmp0_safe_receiver = this.w32_1;
|
|
1987
2024
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1988
2025
|
};
|
|
1989
|
-
protoOf(URLBuilder).
|
|
1990
|
-
return decodeURLQueryComponent(this.
|
|
2026
|
+
protoOf(URLBuilder).k34 = function () {
|
|
2027
|
+
return decodeURLQueryComponent(this.x32_1);
|
|
1991
2028
|
};
|
|
1992
|
-
protoOf(URLBuilder).
|
|
2029
|
+
protoOf(URLBuilder).l34 = function () {
|
|
1993
2030
|
// Inline function 'kotlin.collections.map' call
|
|
1994
|
-
var this_0 = this.
|
|
2031
|
+
var this_0 = this.y32_1;
|
|
1995
2032
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1996
2033
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1997
2034
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -2002,60 +2039,60 @@
|
|
|
2002
2039
|
}
|
|
2003
2040
|
return destination;
|
|
2004
2041
|
};
|
|
2005
|
-
protoOf(URLBuilder).
|
|
2006
|
-
this.
|
|
2007
|
-
this.
|
|
2042
|
+
protoOf(URLBuilder).m34 = function (value) {
|
|
2043
|
+
this.z32_1 = value;
|
|
2044
|
+
this.a33_1 = new UrlDecodedParametersBuilder(value);
|
|
2008
2045
|
};
|
|
2009
|
-
protoOf(URLBuilder).
|
|
2046
|
+
protoOf(URLBuilder).n34 = function () {
|
|
2010
2047
|
applyOrigin(this);
|
|
2011
2048
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2012
2049
|
};
|
|
2013
2050
|
protoOf(URLBuilder).toString = function () {
|
|
2014
2051
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2015
2052
|
};
|
|
2016
|
-
protoOf(URLBuilder).
|
|
2053
|
+
protoOf(URLBuilder).i2v = function () {
|
|
2017
2054
|
applyOrigin(this);
|
|
2018
|
-
return new Url_1(this.
|
|
2055
|
+
return new Url_1(this.u32_1, this.r32_1, this.t32_1, this.l34(), this.a33_1.i2v(), this.k34(), this.i34(), this.j34(), this.s32_1, this.n34());
|
|
2019
2056
|
};
|
|
2020
2057
|
function get_authority(_this__u8e3s4) {
|
|
2021
2058
|
// Inline function 'kotlin.text.buildString' call
|
|
2022
2059
|
// Inline function 'kotlin.apply' call
|
|
2023
2060
|
var this_0 = StringBuilder_init_$Create$();
|
|
2024
2061
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2025
|
-
this_0.q(_this__u8e3s4.
|
|
2026
|
-
if (!(_this__u8e3s4.
|
|
2062
|
+
this_0.q(_this__u8e3s4.r32_1);
|
|
2063
|
+
if (!(_this__u8e3s4.t32_1 === 0) && !(_this__u8e3s4.t32_1 === _this__u8e3s4.d33().c33_1)) {
|
|
2027
2064
|
this_0.q(':');
|
|
2028
|
-
this_0.q(_this__u8e3s4.
|
|
2065
|
+
this_0.q(_this__u8e3s4.t32_1.toString());
|
|
2029
2066
|
}
|
|
2030
2067
|
return this_0.toString();
|
|
2031
2068
|
}
|
|
2032
2069
|
function appendTo(_this__u8e3s4, out) {
|
|
2033
|
-
out.k1(_this__u8e3s4.
|
|
2034
|
-
switch (_this__u8e3s4.
|
|
2070
|
+
out.k1(_this__u8e3s4.d33().b33_1);
|
|
2071
|
+
switch (_this__u8e3s4.d33().b33_1) {
|
|
2035
2072
|
case 'file':
|
|
2036
|
-
appendFile(out, _this__u8e3s4.
|
|
2073
|
+
appendFile(out, _this__u8e3s4.r32_1, get_encodedPath(_this__u8e3s4));
|
|
2037
2074
|
return out;
|
|
2038
2075
|
case 'mailto':
|
|
2039
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2076
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.r32_1);
|
|
2040
2077
|
return out;
|
|
2041
2078
|
case 'about':
|
|
2042
|
-
appendPayload(out, _this__u8e3s4.
|
|
2079
|
+
appendPayload(out, _this__u8e3s4.r32_1);
|
|
2043
2080
|
return out;
|
|
2044
2081
|
case 'tel':
|
|
2045
|
-
appendPayload(out, _this__u8e3s4.
|
|
2082
|
+
appendPayload(out, _this__u8e3s4.r32_1);
|
|
2046
2083
|
return out;
|
|
2047
2084
|
case 'data':
|
|
2048
|
-
appendPayload(out, _this__u8e3s4.
|
|
2085
|
+
appendPayload(out, _this__u8e3s4.r32_1);
|
|
2049
2086
|
return out;
|
|
2050
2087
|
}
|
|
2051
2088
|
out.k1('://');
|
|
2052
2089
|
out.k1(get_authority(_this__u8e3s4));
|
|
2053
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2090
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.z32_1, _this__u8e3s4.s32_1);
|
|
2054
2091
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2055
|
-
var this_0 = _this__u8e3s4.
|
|
2092
|
+
var this_0 = _this__u8e3s4.x32_1;
|
|
2056
2093
|
if (charSequenceLength(this_0) > 0) {
|
|
2057
2094
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2058
|
-
out.k1(_this__u8e3s4.
|
|
2095
|
+
out.k1(_this__u8e3s4.x32_1);
|
|
2059
2096
|
}
|
|
2060
2097
|
return out;
|
|
2061
2098
|
}
|
|
@@ -2063,7 +2100,7 @@
|
|
|
2063
2100
|
// Inline function 'kotlin.text.buildString' call
|
|
2064
2101
|
// Inline function 'kotlin.apply' call
|
|
2065
2102
|
var this_0 = StringBuilder_init_$Create$();
|
|
2066
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2103
|
+
appendUserAndPassword(this_0, _this__u8e3s4.v32_1, _this__u8e3s4.w32_1);
|
|
2067
2104
|
return this_0.toString();
|
|
2068
2105
|
}
|
|
2069
2106
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2075,10 +2112,10 @@
|
|
|
2075
2112
|
_this__u8e3s4.k1(encodedPath);
|
|
2076
2113
|
}
|
|
2077
2114
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2078
|
-
_this__u8e3s4.
|
|
2115
|
+
_this__u8e3s4.y32_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2079
2116
|
}
|
|
2080
2117
|
function get_encodedPath(_this__u8e3s4) {
|
|
2081
|
-
return joinPath(_this__u8e3s4.
|
|
2118
|
+
return joinPath(_this__u8e3s4.y32_1);
|
|
2082
2119
|
}
|
|
2083
2120
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2084
2121
|
_this__u8e3s4.k1(':');
|
|
@@ -2114,7 +2151,7 @@
|
|
|
2114
2151
|
var tmp$ret$0 = encodeURLPath(item);
|
|
2115
2152
|
destination.j1(tmp$ret$0);
|
|
2116
2153
|
}
|
|
2117
|
-
tmp.
|
|
2154
|
+
tmp.y32_1 = destination;
|
|
2118
2155
|
}
|
|
2119
2156
|
function get_ROOT_PATH() {
|
|
2120
2157
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2181,20 +2218,20 @@
|
|
|
2181
2218
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2182
2219
|
if (schemeLength > 0) {
|
|
2183
2220
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2184
|
-
_this__u8e3s4.
|
|
2221
|
+
_this__u8e3s4.a34(Companion_getInstance_7().o34(scheme));
|
|
2185
2222
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2186
2223
|
}
|
|
2187
|
-
if (_this__u8e3s4.
|
|
2188
|
-
_this__u8e3s4.
|
|
2224
|
+
if (_this__u8e3s4.d33().b33_1 === 'data') {
|
|
2225
|
+
_this__u8e3s4.r32_1 = substring(urlString, startIndex, endIndex);
|
|
2189
2226
|
return _this__u8e3s4;
|
|
2190
2227
|
}
|
|
2191
2228
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2192
2229
|
startIndex = startIndex + slashCount | 0;
|
|
2193
|
-
if (_this__u8e3s4.
|
|
2230
|
+
if (_this__u8e3s4.d33().b33_1 === 'file') {
|
|
2194
2231
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2195
2232
|
return _this__u8e3s4;
|
|
2196
2233
|
}
|
|
2197
|
-
if (_this__u8e3s4.
|
|
2234
|
+
if (_this__u8e3s4.d33().b33_1 === 'mailto') {
|
|
2198
2235
|
// Inline function 'kotlin.require' call
|
|
2199
2236
|
// Inline function 'kotlin.require' call
|
|
2200
2237
|
if (!(slashCount === 0)) {
|
|
@@ -2204,24 +2241,24 @@
|
|
|
2204
2241
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2205
2242
|
return _this__u8e3s4;
|
|
2206
2243
|
}
|
|
2207
|
-
if (_this__u8e3s4.
|
|
2244
|
+
if (_this__u8e3s4.d33().b33_1 === 'about') {
|
|
2208
2245
|
// Inline function 'kotlin.require' call
|
|
2209
2246
|
// Inline function 'kotlin.require' call
|
|
2210
2247
|
if (!(slashCount === 0)) {
|
|
2211
2248
|
var message_0 = 'Failed requirement.';
|
|
2212
2249
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2213
2250
|
}
|
|
2214
|
-
_this__u8e3s4.
|
|
2251
|
+
_this__u8e3s4.r32_1 = substring(urlString, startIndex, endIndex);
|
|
2215
2252
|
return _this__u8e3s4;
|
|
2216
2253
|
}
|
|
2217
|
-
if (_this__u8e3s4.
|
|
2254
|
+
if (_this__u8e3s4.d33().b33_1 === 'tel') {
|
|
2218
2255
|
// Inline function 'kotlin.require' call
|
|
2219
2256
|
// Inline function 'kotlin.require' call
|
|
2220
2257
|
if (!(slashCount === 0)) {
|
|
2221
2258
|
var message_1 = 'Failed requirement.';
|
|
2222
2259
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2223
2260
|
}
|
|
2224
|
-
_this__u8e3s4.
|
|
2261
|
+
_this__u8e3s4.r32_1 = substring(urlString, startIndex, endIndex);
|
|
2225
2262
|
return _this__u8e3s4;
|
|
2226
2263
|
}
|
|
2227
2264
|
if (slashCount >= 2) {
|
|
@@ -2239,10 +2276,10 @@
|
|
|
2239
2276
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2240
2277
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2241
2278
|
if (!(passwordIndex === -1)) {
|
|
2242
|
-
_this__u8e3s4.
|
|
2243
|
-
_this__u8e3s4.
|
|
2279
|
+
_this__u8e3s4.v32_1 = substring(urlString, startIndex, passwordIndex);
|
|
2280
|
+
_this__u8e3s4.w32_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2244
2281
|
} else {
|
|
2245
|
-
_this__u8e3s4.
|
|
2282
|
+
_this__u8e3s4.v32_1 = substring(urlString, startIndex, delimiter);
|
|
2246
2283
|
}
|
|
2247
2284
|
startIndex = delimiter + 1 | 0;
|
|
2248
2285
|
} else {
|
|
@@ -2253,17 +2290,17 @@
|
|
|
2253
2290
|
}
|
|
2254
2291
|
}
|
|
2255
2292
|
if (startIndex >= endIndex) {
|
|
2256
|
-
_this__u8e3s4.
|
|
2293
|
+
_this__u8e3s4.y32_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2257
2294
|
return _this__u8e3s4;
|
|
2258
2295
|
}
|
|
2259
2296
|
var tmp_0 = _this__u8e3s4;
|
|
2260
2297
|
var tmp_1;
|
|
2261
2298
|
if (slashCount === 0) {
|
|
2262
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
2299
|
+
tmp_1 = dropLast(_this__u8e3s4.y32_1, 1);
|
|
2263
2300
|
} else {
|
|
2264
2301
|
tmp_1 = emptyList();
|
|
2265
2302
|
}
|
|
2266
|
-
tmp_0.
|
|
2303
|
+
tmp_0.y32_1 = tmp_1;
|
|
2267
2304
|
// Inline function 'kotlin.takeIf' call
|
|
2268
2305
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2269
2306
|
var tmp_2;
|
|
@@ -2278,9 +2315,9 @@
|
|
|
2278
2315
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2279
2316
|
var tmp_3;
|
|
2280
2317
|
var tmp_4;
|
|
2281
|
-
if (_this__u8e3s4.
|
|
2318
|
+
if (_this__u8e3s4.y32_1.l1() === 1) {
|
|
2282
2319
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2283
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2320
|
+
var this_2 = first_0(_this__u8e3s4.y32_1);
|
|
2284
2321
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2285
2322
|
} else {
|
|
2286
2323
|
tmp_4 = false;
|
|
@@ -2288,12 +2325,12 @@
|
|
|
2288
2325
|
if (tmp_4) {
|
|
2289
2326
|
tmp_3 = emptyList();
|
|
2290
2327
|
} else {
|
|
2291
|
-
tmp_3 = _this__u8e3s4.
|
|
2328
|
+
tmp_3 = _this__u8e3s4.y32_1;
|
|
2292
2329
|
}
|
|
2293
2330
|
var basePath = tmp_3;
|
|
2294
2331
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2295
2332
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2296
|
-
_this__u8e3s4.
|
|
2333
|
+
_this__u8e3s4.y32_1 = plus_0(basePath, relativePath);
|
|
2297
2334
|
startIndex = pathEnd;
|
|
2298
2335
|
}
|
|
2299
2336
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2343,21 +2380,21 @@
|
|
|
2343
2380
|
_init_properties_URLParser_kt__sf11to();
|
|
2344
2381
|
switch (slashCount) {
|
|
2345
2382
|
case 1:
|
|
2346
|
-
_this__u8e3s4.
|
|
2383
|
+
_this__u8e3s4.r32_1 = '';
|
|
2347
2384
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2348
2385
|
break;
|
|
2349
2386
|
case 2:
|
|
2350
2387
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2351
2388
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2352
|
-
_this__u8e3s4.
|
|
2389
|
+
_this__u8e3s4.r32_1 = substring(urlString, startIndex, endIndex);
|
|
2353
2390
|
return Unit_instance;
|
|
2354
2391
|
}
|
|
2355
2392
|
|
|
2356
|
-
_this__u8e3s4.
|
|
2393
|
+
_this__u8e3s4.r32_1 = substring(urlString, startIndex, nextSlash);
|
|
2357
2394
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2358
2395
|
break;
|
|
2359
2396
|
case 3:
|
|
2360
|
-
_this__u8e3s4.
|
|
2397
|
+
_this__u8e3s4.r32_1 = '';
|
|
2361
2398
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2362
2399
|
break;
|
|
2363
2400
|
default:
|
|
@@ -2370,8 +2407,8 @@
|
|
|
2370
2407
|
if (delimiter === -1) {
|
|
2371
2408
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2372
2409
|
}
|
|
2373
|
-
_this__u8e3s4.
|
|
2374
|
-
_this__u8e3s4.
|
|
2410
|
+
_this__u8e3s4.h34(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2411
|
+
_this__u8e3s4.r32_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2375
2412
|
}
|
|
2376
2413
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2377
2414
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2405,19 +2442,19 @@
|
|
|
2405
2442
|
}
|
|
2406
2443
|
var tmp0_elvis_lhs = tmp;
|
|
2407
2444
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2408
|
-
_this__u8e3s4.
|
|
2445
|
+
_this__u8e3s4.r32_1 = substring(urlString, startIndex, colonIndex);
|
|
2409
2446
|
var tmp_0;
|
|
2410
2447
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2411
2448
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2412
2449
|
} else {
|
|
2413
2450
|
tmp_0 = 0;
|
|
2414
2451
|
}
|
|
2415
|
-
_this__u8e3s4.
|
|
2452
|
+
_this__u8e3s4.z33(tmp_0);
|
|
2416
2453
|
}
|
|
2417
2454
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2418
2455
|
_init_properties_URLParser_kt__sf11to();
|
|
2419
2456
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2420
|
-
_this__u8e3s4.
|
|
2457
|
+
_this__u8e3s4.s32_1 = true;
|
|
2421
2458
|
return endIndex;
|
|
2422
2459
|
}
|
|
2423
2460
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2431,18 +2468,18 @@
|
|
|
2431
2468
|
var tmp0_elvis_lhs = tmp;
|
|
2432
2469
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2433
2470
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2434
|
-
rawParameters.
|
|
2471
|
+
rawParameters.d2o(parseQuery$lambda(_this__u8e3s4));
|
|
2435
2472
|
return fragmentStart;
|
|
2436
2473
|
}
|
|
2437
2474
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2438
2475
|
_init_properties_URLParser_kt__sf11to();
|
|
2439
2476
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2440
|
-
_this__u8e3s4.
|
|
2477
|
+
_this__u8e3s4.x32_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2441
2478
|
}
|
|
2442
2479
|
}
|
|
2443
2480
|
function parseQuery$lambda($this_parseQuery) {
|
|
2444
2481
|
return function (key, values) {
|
|
2445
|
-
$this_parseQuery.
|
|
2482
|
+
$this_parseQuery.z32_1.z2n(key, values);
|
|
2446
2483
|
return Unit_instance;
|
|
2447
2484
|
};
|
|
2448
2485
|
}
|
|
@@ -2455,29 +2492,29 @@
|
|
|
2455
2492
|
}
|
|
2456
2493
|
function Companion_7() {
|
|
2457
2494
|
Companion_instance_7 = this;
|
|
2458
|
-
this.
|
|
2459
|
-
this.
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2495
|
+
this.b34_1 = new URLProtocol('http', 80);
|
|
2496
|
+
this.c34_1 = new URLProtocol('https', 443);
|
|
2497
|
+
this.d34_1 = new URLProtocol('ws', 80);
|
|
2498
|
+
this.e34_1 = new URLProtocol('wss', 443);
|
|
2499
|
+
this.f34_1 = new URLProtocol('socks', 1080);
|
|
2463
2500
|
var tmp = this;
|
|
2464
2501
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2465
|
-
var this_0 = listOf([this.
|
|
2502
|
+
var this_0 = listOf([this.b34_1, this.c34_1, this.d34_1, this.e34_1, this.f34_1]);
|
|
2466
2503
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2467
2504
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2468
2505
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2469
2506
|
var _iterator__ex2g4s = this_0.t();
|
|
2470
2507
|
while (_iterator__ex2g4s.u()) {
|
|
2471
2508
|
var element = _iterator__ex2g4s.v();
|
|
2472
|
-
var tmp$ret$0 = element.
|
|
2509
|
+
var tmp$ret$0 = element.b33_1;
|
|
2473
2510
|
destination.y2(tmp$ret$0, element);
|
|
2474
2511
|
}
|
|
2475
|
-
tmp.
|
|
2512
|
+
tmp.g34_1 = destination;
|
|
2476
2513
|
}
|
|
2477
|
-
protoOf(Companion_7).
|
|
2514
|
+
protoOf(Companion_7).o34 = function (name) {
|
|
2478
2515
|
// Inline function 'kotlin.let' call
|
|
2479
2516
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2480
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2517
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().g34_1.g3(it);
|
|
2481
2518
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2482
2519
|
};
|
|
2483
2520
|
var Companion_instance_7;
|
|
@@ -2488,9 +2525,9 @@
|
|
|
2488
2525
|
}
|
|
2489
2526
|
function URLProtocol(name, defaultPort) {
|
|
2490
2527
|
Companion_getInstance_7();
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2493
|
-
var tmp0 = this.
|
|
2528
|
+
this.b33_1 = name;
|
|
2529
|
+
this.c33_1 = defaultPort;
|
|
2530
|
+
var tmp0 = this.b33_1;
|
|
2494
2531
|
var tmp$ret$1;
|
|
2495
2532
|
$l$block: {
|
|
2496
2533
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2512,11 +2549,11 @@
|
|
|
2512
2549
|
}
|
|
2513
2550
|
}
|
|
2514
2551
|
protoOf(URLProtocol).toString = function () {
|
|
2515
|
-
return 'URLProtocol(name=' + this.
|
|
2552
|
+
return 'URLProtocol(name=' + this.b33_1 + ', defaultPort=' + this.c33_1 + ')';
|
|
2516
2553
|
};
|
|
2517
2554
|
protoOf(URLProtocol).hashCode = function () {
|
|
2518
|
-
var result = getStringHashCode(this.
|
|
2519
|
-
result = imul(result, 31) + this.
|
|
2555
|
+
var result = getStringHashCode(this.b33_1);
|
|
2556
|
+
result = imul(result, 31) + this.c33_1 | 0;
|
|
2520
2557
|
return result;
|
|
2521
2558
|
};
|
|
2522
2559
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2524,38 +2561,38 @@
|
|
|
2524
2561
|
return true;
|
|
2525
2562
|
if (!(other instanceof URLProtocol))
|
|
2526
2563
|
return false;
|
|
2527
|
-
if (!(this.
|
|
2564
|
+
if (!(this.b33_1 === other.b33_1))
|
|
2528
2565
|
return false;
|
|
2529
|
-
if (!(this.
|
|
2566
|
+
if (!(this.c33_1 === other.c33_1))
|
|
2530
2567
|
return false;
|
|
2531
2568
|
return true;
|
|
2532
2569
|
};
|
|
2533
2570
|
function isSecure(_this__u8e3s4) {
|
|
2534
|
-
return _this__u8e3s4.
|
|
2571
|
+
return _this__u8e3s4.b33_1 === 'https' || _this__u8e3s4.b33_1 === 'wss';
|
|
2535
2572
|
}
|
|
2536
2573
|
function isWebsocket(_this__u8e3s4) {
|
|
2537
|
-
return _this__u8e3s4.
|
|
2574
|
+
return _this__u8e3s4.b33_1 === 'ws' || _this__u8e3s4.b33_1 === 'wss';
|
|
2538
2575
|
}
|
|
2539
2576
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2540
|
-
_this__u8e3s4.
|
|
2541
|
-
_this__u8e3s4.
|
|
2542
|
-
_this__u8e3s4.
|
|
2543
|
-
_this__u8e3s4.
|
|
2544
|
-
_this__u8e3s4.
|
|
2545
|
-
_this__u8e3s4.
|
|
2577
|
+
_this__u8e3s4.u32_1 = url.u32_1;
|
|
2578
|
+
_this__u8e3s4.r32_1 = url.r32_1;
|
|
2579
|
+
_this__u8e3s4.z33(url.t32_1);
|
|
2580
|
+
_this__u8e3s4.y32_1 = url.y32_1;
|
|
2581
|
+
_this__u8e3s4.v32_1 = url.v32_1;
|
|
2582
|
+
_this__u8e3s4.w32_1 = url.w32_1;
|
|
2546
2583
|
// Inline function 'kotlin.apply' call
|
|
2547
2584
|
var this_0 = ParametersBuilder();
|
|
2548
|
-
appendAll(this_0, url.
|
|
2549
|
-
_this__u8e3s4.
|
|
2550
|
-
_this__u8e3s4.
|
|
2551
|
-
_this__u8e3s4.
|
|
2585
|
+
appendAll(this_0, url.z32_1);
|
|
2586
|
+
_this__u8e3s4.m34(this_0);
|
|
2587
|
+
_this__u8e3s4.x32_1 = url.x32_1;
|
|
2588
|
+
_this__u8e3s4.s32_1 = url.s32_1;
|
|
2552
2589
|
return _this__u8e3s4;
|
|
2553
2590
|
}
|
|
2554
2591
|
function Url(builder) {
|
|
2555
|
-
return takeFrom_0(new URLBuilder(), builder).
|
|
2592
|
+
return takeFrom_0(new URLBuilder(), builder).i2v();
|
|
2556
2593
|
}
|
|
2557
2594
|
function Url_0(urlString) {
|
|
2558
|
-
return URLBuilder_0(urlString).
|
|
2595
|
+
return URLBuilder_0(urlString).i2v();
|
|
2559
2596
|
}
|
|
2560
2597
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2561
2598
|
var tmp;
|
|
@@ -2573,16 +2610,16 @@
|
|
|
2573
2610
|
_this__u8e3s4.k1('?');
|
|
2574
2611
|
}
|
|
2575
2612
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2576
|
-
var tmp0 = encodedQueryParameters.
|
|
2613
|
+
var tmp0 = encodedQueryParameters.y2n();
|
|
2577
2614
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2578
2615
|
var destination = ArrayList_init_$Create$_0();
|
|
2579
2616
|
var _iterator__ex2g4s = tmp0.t();
|
|
2580
2617
|
while (_iterator__ex2g4s.u()) {
|
|
2581
2618
|
var element = _iterator__ex2g4s.v();
|
|
2582
2619
|
// Inline function 'kotlin.collections.component1' call
|
|
2583
|
-
var key = element.
|
|
2620
|
+
var key = element.r1();
|
|
2584
2621
|
// Inline function 'kotlin.collections.component2' call
|
|
2585
|
-
var value = element.
|
|
2622
|
+
var value = element.s1();
|
|
2586
2623
|
var tmp_0;
|
|
2587
2624
|
if (value.r()) {
|
|
2588
2625
|
tmp_0 = listOf_0(to(key, null));
|
|
@@ -2619,11 +2656,11 @@
|
|
|
2619
2656
|
return takeFrom(new URLBuilder(), urlString);
|
|
2620
2657
|
}
|
|
2621
2658
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2622
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2623
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2659
|
+
var tmp0_subject = _this__u8e3s4.f33_1;
|
|
2660
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.q33_1.c33_1 ? _this__u8e3s4.e33_1 : get_hostWithPort(_this__u8e3s4);
|
|
2624
2661
|
}
|
|
2625
2662
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2626
|
-
return _this__u8e3s4.
|
|
2663
|
+
return _this__u8e3s4.e33_1 + ':' + _this__u8e3s4.p34();
|
|
2627
2664
|
}
|
|
2628
2665
|
function parseUrl(urlString) {
|
|
2629
2666
|
var tmp;
|
|
@@ -2632,18 +2669,18 @@
|
|
|
2632
2669
|
var this_0 = URLBuilder_0(urlString);
|
|
2633
2670
|
var tmp_0;
|
|
2634
2671
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2635
|
-
var this_1 = this_0.
|
|
2672
|
+
var this_1 = this_0.r32_1;
|
|
2636
2673
|
if (charSequenceLength(this_1) > 0) {
|
|
2637
2674
|
tmp_0 = this_0;
|
|
2638
2675
|
} else {
|
|
2639
2676
|
tmp_0 = null;
|
|
2640
2677
|
}
|
|
2641
2678
|
var tmp0_safe_receiver = tmp_0;
|
|
2642
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2679
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i2v();
|
|
2643
2680
|
} catch ($p) {
|
|
2644
2681
|
var tmp_1;
|
|
2645
|
-
if ($p instanceof
|
|
2646
|
-
var
|
|
2682
|
+
if ($p instanceof Exception) {
|
|
2683
|
+
var _unused_var__etf5q3 = $p;
|
|
2647
2684
|
tmp_1 = null;
|
|
2648
2685
|
} else {
|
|
2649
2686
|
throw $p;
|
|
@@ -2656,18 +2693,18 @@
|
|
|
2656
2693
|
return takeFrom_1(new URLBuilder(), url);
|
|
2657
2694
|
}
|
|
2658
2695
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
2659
|
-
_this__u8e3s4.
|
|
2660
|
-
_this__u8e3s4.
|
|
2661
|
-
_this__u8e3s4.
|
|
2662
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
2663
|
-
_this__u8e3s4.
|
|
2664
|
-
_this__u8e3s4.
|
|
2696
|
+
_this__u8e3s4.u32_1 = url.p33_1;
|
|
2697
|
+
_this__u8e3s4.r32_1 = url.e33_1;
|
|
2698
|
+
_this__u8e3s4.z33(url.p34());
|
|
2699
|
+
set_encodedPath(_this__u8e3s4, url.q34());
|
|
2700
|
+
_this__u8e3s4.v32_1 = url.r34();
|
|
2701
|
+
_this__u8e3s4.w32_1 = url.s34();
|
|
2665
2702
|
// Inline function 'kotlin.apply' call
|
|
2666
2703
|
var this_0 = ParametersBuilder();
|
|
2667
|
-
this_0.
|
|
2668
|
-
_this__u8e3s4.
|
|
2669
|
-
_this__u8e3s4.
|
|
2670
|
-
_this__u8e3s4.
|
|
2704
|
+
this_0.j2o(parseQueryString(url.t34(), VOID, VOID, false));
|
|
2705
|
+
_this__u8e3s4.m34(this_0);
|
|
2706
|
+
_this__u8e3s4.x32_1 = url.u34();
|
|
2707
|
+
_this__u8e3s4.s32_1 = url.k33_1;
|
|
2671
2708
|
return _this__u8e3s4;
|
|
2672
2709
|
}
|
|
2673
2710
|
function appendUrlFullPath$lambda(it) {
|
|
@@ -2726,161 +2763,161 @@
|
|
|
2726
2763
|
if ($pathSegments.r()) {
|
|
2727
2764
|
return '';
|
|
2728
2765
|
}
|
|
2729
|
-
var pathStartIndex = indexOf(this$0.
|
|
2766
|
+
var pathStartIndex = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(47), this$0.q33_1.b33_1.length + 3 | 0);
|
|
2730
2767
|
var tmp_0;
|
|
2731
2768
|
if (pathStartIndex === -1) {
|
|
2732
2769
|
return '';
|
|
2733
2770
|
}
|
|
2734
2771
|
// Inline function 'kotlin.charArrayOf' call
|
|
2735
2772
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2736
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2773
|
+
var pathEndIndex = indexOfAny(this$0.l33_1, tmp$ret$0, pathStartIndex);
|
|
2737
2774
|
var tmp_1;
|
|
2738
2775
|
if (pathEndIndex === -1) {
|
|
2739
|
-
return substring_0(this$0.
|
|
2776
|
+
return substring_0(this$0.l33_1, pathStartIndex);
|
|
2740
2777
|
}
|
|
2741
|
-
return substring(this$0.
|
|
2778
|
+
return substring(this$0.l33_1, pathStartIndex, pathEndIndex);
|
|
2742
2779
|
};
|
|
2743
2780
|
}
|
|
2744
2781
|
function Url$_get_encodedPath_$ref_fg9j48() {
|
|
2745
2782
|
return function (p0) {
|
|
2746
|
-
return p0.
|
|
2783
|
+
return p0.q34();
|
|
2747
2784
|
};
|
|
2748
2785
|
}
|
|
2749
2786
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2750
2787
|
return function () {
|
|
2751
|
-
var queryStart = indexOf(this$0.
|
|
2788
|
+
var queryStart = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2752
2789
|
var tmp;
|
|
2753
2790
|
if (queryStart === 0) {
|
|
2754
2791
|
return '';
|
|
2755
2792
|
}
|
|
2756
|
-
var queryEnd = indexOf(this$0.
|
|
2793
|
+
var queryEnd = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2757
2794
|
var tmp_0;
|
|
2758
2795
|
if (queryEnd === -1) {
|
|
2759
|
-
return substring_0(this$0.
|
|
2796
|
+
return substring_0(this$0.l33_1, queryStart);
|
|
2760
2797
|
}
|
|
2761
|
-
return substring(this$0.
|
|
2798
|
+
return substring(this$0.l33_1, queryStart, queryEnd);
|
|
2762
2799
|
};
|
|
2763
2800
|
}
|
|
2764
2801
|
function Url$_get_encodedQuery_$ref_c7vq1h() {
|
|
2765
2802
|
return function (p0) {
|
|
2766
|
-
return p0.
|
|
2803
|
+
return p0.t34();
|
|
2767
2804
|
};
|
|
2768
2805
|
}
|
|
2769
2806
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2770
2807
|
return function () {
|
|
2771
|
-
var pathStart = indexOf(this$0.
|
|
2808
|
+
var pathStart = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(47), this$0.q33_1.b33_1.length + 3 | 0);
|
|
2772
2809
|
var tmp;
|
|
2773
2810
|
if (pathStart === -1) {
|
|
2774
2811
|
return '';
|
|
2775
2812
|
}
|
|
2776
|
-
var queryEnd = indexOf(this$0.
|
|
2813
|
+
var queryEnd = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2777
2814
|
var tmp_0;
|
|
2778
2815
|
if (queryEnd === -1) {
|
|
2779
|
-
return substring_0(this$0.
|
|
2816
|
+
return substring_0(this$0.l33_1, pathStart);
|
|
2780
2817
|
}
|
|
2781
|
-
return substring(this$0.
|
|
2818
|
+
return substring(this$0.l33_1, pathStart, queryEnd);
|
|
2782
2819
|
};
|
|
2783
2820
|
}
|
|
2784
2821
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2785
2822
|
return function () {
|
|
2786
2823
|
var tmp;
|
|
2787
|
-
if (this$0.
|
|
2824
|
+
if (this$0.i33_1 == null) {
|
|
2788
2825
|
return null;
|
|
2789
2826
|
}
|
|
2790
2827
|
var tmp_0;
|
|
2791
2828
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2792
|
-
var this_0 = this$0.
|
|
2829
|
+
var this_0 = this$0.i33_1;
|
|
2793
2830
|
if (charSequenceLength(this_0) === 0) {
|
|
2794
2831
|
return '';
|
|
2795
2832
|
}
|
|
2796
|
-
var usernameStart = this$0.
|
|
2833
|
+
var usernameStart = this$0.q33_1.b33_1.length + 3 | 0;
|
|
2797
2834
|
// Inline function 'kotlin.charArrayOf' call
|
|
2798
2835
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2799
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2800
|
-
return substring(this$0.
|
|
2836
|
+
var usernameEnd = indexOfAny(this$0.l33_1, tmp$ret$1, usernameStart);
|
|
2837
|
+
return substring(this$0.l33_1, usernameStart, usernameEnd);
|
|
2801
2838
|
};
|
|
2802
2839
|
}
|
|
2803
2840
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2804
2841
|
return function (p0) {
|
|
2805
|
-
return p0.
|
|
2842
|
+
return p0.r34();
|
|
2806
2843
|
};
|
|
2807
2844
|
}
|
|
2808
2845
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2809
2846
|
return function () {
|
|
2810
2847
|
var tmp;
|
|
2811
|
-
if (this$0.
|
|
2848
|
+
if (this$0.j33_1 == null) {
|
|
2812
2849
|
return null;
|
|
2813
2850
|
}
|
|
2814
2851
|
var tmp_0;
|
|
2815
2852
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2816
|
-
var this_0 = this$0.
|
|
2853
|
+
var this_0 = this$0.j33_1;
|
|
2817
2854
|
if (charSequenceLength(this_0) === 0) {
|
|
2818
2855
|
return '';
|
|
2819
2856
|
}
|
|
2820
|
-
var passwordStart = indexOf(this$0.
|
|
2821
|
-
var passwordEnd = indexOf(this$0.
|
|
2822
|
-
return substring(this$0.
|
|
2857
|
+
var passwordStart = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(58), this$0.q33_1.b33_1.length + 3 | 0) + 1 | 0;
|
|
2858
|
+
var passwordEnd = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(64));
|
|
2859
|
+
return substring(this$0.l33_1, passwordStart, passwordEnd);
|
|
2823
2860
|
};
|
|
2824
2861
|
}
|
|
2825
2862
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2826
2863
|
return function (p0) {
|
|
2827
|
-
return p0.
|
|
2864
|
+
return p0.s34();
|
|
2828
2865
|
};
|
|
2829
2866
|
}
|
|
2830
2867
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2831
2868
|
return function () {
|
|
2832
|
-
var fragmentStart = indexOf(this$0.
|
|
2869
|
+
var fragmentStart = indexOf(this$0.l33_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2833
2870
|
var tmp;
|
|
2834
2871
|
if (fragmentStart === 0) {
|
|
2835
2872
|
return '';
|
|
2836
2873
|
}
|
|
2837
|
-
return substring_0(this$0.
|
|
2874
|
+
return substring_0(this$0.l33_1, fragmentStart);
|
|
2838
2875
|
};
|
|
2839
2876
|
}
|
|
2840
2877
|
function Url$_get_encodedFragment_$ref_itp7pv() {
|
|
2841
2878
|
return function (p0) {
|
|
2842
|
-
return p0.
|
|
2879
|
+
return p0.u34();
|
|
2843
2880
|
};
|
|
2844
2881
|
}
|
|
2845
2882
|
function Url_1(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2848
|
-
this.
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2853
|
-
this.
|
|
2854
|
-
var containsArg = this.
|
|
2883
|
+
this.e33_1 = host;
|
|
2884
|
+
this.f33_1 = specifiedPort;
|
|
2885
|
+
this.g33_1 = parameters;
|
|
2886
|
+
this.h33_1 = fragment;
|
|
2887
|
+
this.i33_1 = user;
|
|
2888
|
+
this.j33_1 = password;
|
|
2889
|
+
this.k33_1 = trailingQuery;
|
|
2890
|
+
this.l33_1 = urlString;
|
|
2891
|
+
var containsArg = this.f33_1;
|
|
2855
2892
|
// Inline function 'kotlin.require' call
|
|
2856
2893
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2857
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2894
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.f33_1;
|
|
2858
2895
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2859
2896
|
}
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2897
|
+
this.m33_1 = pathSegments;
|
|
2898
|
+
this.n33_1 = pathSegments;
|
|
2862
2899
|
var tmp = this;
|
|
2863
|
-
tmp.
|
|
2864
|
-
this.
|
|
2900
|
+
tmp.o33_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2901
|
+
this.p33_1 = protocol;
|
|
2865
2902
|
var tmp_0 = this;
|
|
2866
|
-
var tmp0_elvis_lhs = this.
|
|
2867
|
-
tmp_0.
|
|
2903
|
+
var tmp0_elvis_lhs = this.p33_1;
|
|
2904
|
+
tmp_0.q33_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().b34_1 : tmp0_elvis_lhs;
|
|
2868
2905
|
var tmp_1 = this;
|
|
2869
|
-
tmp_1.
|
|
2906
|
+
tmp_1.r33_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2870
2907
|
var tmp_2 = this;
|
|
2871
|
-
tmp_2.
|
|
2908
|
+
tmp_2.s33_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2872
2909
|
var tmp_3 = this;
|
|
2873
|
-
tmp_3.
|
|
2910
|
+
tmp_3.t33_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2874
2911
|
var tmp_4 = this;
|
|
2875
|
-
tmp_4.
|
|
2912
|
+
tmp_4.u33_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2876
2913
|
var tmp_5 = this;
|
|
2877
|
-
tmp_5.
|
|
2914
|
+
tmp_5.v33_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2878
2915
|
var tmp_6 = this;
|
|
2879
|
-
tmp_6.
|
|
2916
|
+
tmp_6.w33_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2880
2917
|
}
|
|
2881
|
-
protoOf(Url_1).
|
|
2918
|
+
protoOf(Url_1).p34 = function () {
|
|
2882
2919
|
// Inline function 'kotlin.takeUnless' call
|
|
2883
|
-
var this_0 = this.
|
|
2920
|
+
var this_0 = this.f33_1;
|
|
2884
2921
|
var tmp;
|
|
2885
2922
|
if (!(this_0 === 0)) {
|
|
2886
2923
|
tmp = this_0;
|
|
@@ -2888,45 +2925,45 @@
|
|
|
2888
2925
|
tmp = null;
|
|
2889
2926
|
}
|
|
2890
2927
|
var tmp0_elvis_lhs = tmp;
|
|
2891
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2928
|
+
return tmp0_elvis_lhs == null ? this.q33_1.c33_1 : tmp0_elvis_lhs;
|
|
2892
2929
|
};
|
|
2893
|
-
protoOf(Url_1).
|
|
2894
|
-
var tmp0 = this.
|
|
2930
|
+
protoOf(Url_1).q34 = function () {
|
|
2931
|
+
var tmp0 = this.r33_1;
|
|
2895
2932
|
var tmp = KProperty1;
|
|
2896
2933
|
// Inline function 'kotlin.getValue' call
|
|
2897
2934
|
getPropertyCallableRef('encodedPath', 1, tmp, Url$_get_encodedPath_$ref_fg9j48(), null);
|
|
2898
|
-
return tmp0.
|
|
2935
|
+
return tmp0.s1();
|
|
2899
2936
|
};
|
|
2900
|
-
protoOf(Url_1).
|
|
2901
|
-
var tmp0 = this.
|
|
2937
|
+
protoOf(Url_1).t34 = function () {
|
|
2938
|
+
var tmp0 = this.s33_1;
|
|
2902
2939
|
var tmp = KProperty1;
|
|
2903
2940
|
// Inline function 'kotlin.getValue' call
|
|
2904
2941
|
getPropertyCallableRef('encodedQuery', 1, tmp, Url$_get_encodedQuery_$ref_c7vq1h(), null);
|
|
2905
|
-
return tmp0.
|
|
2942
|
+
return tmp0.s1();
|
|
2906
2943
|
};
|
|
2907
|
-
protoOf(Url_1).
|
|
2908
|
-
var tmp0 = this.
|
|
2944
|
+
protoOf(Url_1).r34 = function () {
|
|
2945
|
+
var tmp0 = this.u33_1;
|
|
2909
2946
|
var tmp = KProperty1;
|
|
2910
2947
|
// Inline function 'kotlin.getValue' call
|
|
2911
2948
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2912
|
-
return tmp0.
|
|
2949
|
+
return tmp0.s1();
|
|
2913
2950
|
};
|
|
2914
|
-
protoOf(Url_1).
|
|
2915
|
-
var tmp0 = this.
|
|
2951
|
+
protoOf(Url_1).s34 = function () {
|
|
2952
|
+
var tmp0 = this.v33_1;
|
|
2916
2953
|
var tmp = KProperty1;
|
|
2917
2954
|
// Inline function 'kotlin.getValue' call
|
|
2918
2955
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2919
|
-
return tmp0.
|
|
2956
|
+
return tmp0.s1();
|
|
2920
2957
|
};
|
|
2921
|
-
protoOf(Url_1).
|
|
2922
|
-
var tmp0 = this.
|
|
2958
|
+
protoOf(Url_1).u34 = function () {
|
|
2959
|
+
var tmp0 = this.w33_1;
|
|
2923
2960
|
var tmp = KProperty1;
|
|
2924
2961
|
// Inline function 'kotlin.getValue' call
|
|
2925
2962
|
getPropertyCallableRef('encodedFragment', 1, tmp, Url$_get_encodedFragment_$ref_itp7pv(), null);
|
|
2926
|
-
return tmp0.
|
|
2963
|
+
return tmp0.s1();
|
|
2927
2964
|
};
|
|
2928
2965
|
protoOf(Url_1).toString = function () {
|
|
2929
|
-
return this.
|
|
2966
|
+
return this.l33_1;
|
|
2930
2967
|
};
|
|
2931
2968
|
protoOf(Url_1).equals = function (other) {
|
|
2932
2969
|
if (this === other)
|
|
@@ -2935,10 +2972,10 @@
|
|
|
2935
2972
|
return false;
|
|
2936
2973
|
if (!(other instanceof Url_1))
|
|
2937
2974
|
THROW_CCE();
|
|
2938
|
-
return this.
|
|
2975
|
+
return this.l33_1 === other.l33_1;
|
|
2939
2976
|
};
|
|
2940
2977
|
protoOf(Url_1).hashCode = function () {
|
|
2941
|
-
return getStringHashCode(this.
|
|
2978
|
+
return getStringHashCode(this.l33_1);
|
|
2942
2979
|
};
|
|
2943
2980
|
function get_authority_0(_this__u8e3s4) {
|
|
2944
2981
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2950,19 +2987,19 @@
|
|
|
2950
2987
|
}
|
|
2951
2988
|
function UrlSerializer() {
|
|
2952
2989
|
UrlSerializer_instance = this;
|
|
2953
|
-
this.
|
|
2990
|
+
this.v34_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2954
2991
|
}
|
|
2955
|
-
protoOf(UrlSerializer).
|
|
2956
|
-
return this.
|
|
2992
|
+
protoOf(UrlSerializer).e1z = function () {
|
|
2993
|
+
return this.v34_1;
|
|
2957
2994
|
};
|
|
2958
|
-
protoOf(UrlSerializer).
|
|
2959
|
-
return Url_0(decoder.
|
|
2995
|
+
protoOf(UrlSerializer).g1z = function (decoder) {
|
|
2996
|
+
return Url_0(decoder.m22());
|
|
2960
2997
|
};
|
|
2961
|
-
protoOf(UrlSerializer).
|
|
2962
|
-
encoder.
|
|
2998
|
+
protoOf(UrlSerializer).w34 = function (encoder, value) {
|
|
2999
|
+
encoder.v23(value.toString());
|
|
2963
3000
|
};
|
|
2964
|
-
protoOf(UrlSerializer).
|
|
2965
|
-
return this.
|
|
3001
|
+
protoOf(UrlSerializer).f1z = function (encoder, value) {
|
|
3002
|
+
return this.w34(encoder, value instanceof Url_1 ? value : THROW_CCE());
|
|
2966
3003
|
};
|
|
2967
3004
|
var UrlSerializer_instance;
|
|
2968
3005
|
function UrlSerializer_getInstance() {
|
|
@@ -2974,21 +3011,21 @@
|
|
|
2974
3011
|
// Inline function 'kotlin.text.buildString' call
|
|
2975
3012
|
// Inline function 'kotlin.apply' call
|
|
2976
3013
|
var this_0 = StringBuilder_init_$Create$();
|
|
2977
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
3014
|
+
appendUserAndPassword(this_0, _this__u8e3s4.r34(), _this__u8e3s4.s34());
|
|
2978
3015
|
return this_0.toString();
|
|
2979
3016
|
}
|
|
2980
3017
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2981
|
-
this.
|
|
2982
|
-
this.
|
|
3018
|
+
this.x34_1 = encodedParametersBuilder;
|
|
3019
|
+
this.y34_1 = this.x34_1.a2o();
|
|
2983
3020
|
}
|
|
2984
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2985
|
-
return decodeParameters(this.
|
|
3021
|
+
protoOf(UrlDecodedParametersBuilder).i2v = function () {
|
|
3022
|
+
return decodeParameters(this.x34_1);
|
|
2986
3023
|
};
|
|
2987
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2988
|
-
return this.
|
|
3024
|
+
protoOf(UrlDecodedParametersBuilder).a2o = function () {
|
|
3025
|
+
return this.y34_1;
|
|
2989
3026
|
};
|
|
2990
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2991
|
-
var tmp0_safe_receiver = this.
|
|
3027
|
+
protoOf(UrlDecodedParametersBuilder).b2o = function (name) {
|
|
3028
|
+
var tmp0_safe_receiver = this.x34_1.b2o(encodeURLParameter(name));
|
|
2992
3029
|
var tmp;
|
|
2993
3030
|
if (tmp0_safe_receiver == null) {
|
|
2994
3031
|
tmp = null;
|
|
@@ -3006,12 +3043,12 @@
|
|
|
3006
3043
|
}
|
|
3007
3044
|
return tmp;
|
|
3008
3045
|
};
|
|
3009
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3010
|
-
return this.
|
|
3046
|
+
protoOf(UrlDecodedParametersBuilder).w2n = function (name) {
|
|
3047
|
+
return this.x34_1.w2n(encodeURLParameter(name));
|
|
3011
3048
|
};
|
|
3012
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3049
|
+
protoOf(UrlDecodedParametersBuilder).c2o = function () {
|
|
3013
3050
|
// Inline function 'kotlin.collections.map' call
|
|
3014
|
-
var this_0 = this.
|
|
3051
|
+
var this_0 = this.x34_1.c2o();
|
|
3015
3052
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3016
3053
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3017
3054
|
var _iterator__ex2g4s = this_0.t();
|
|
@@ -3023,18 +3060,18 @@
|
|
|
3023
3060
|
return toSet(destination);
|
|
3024
3061
|
};
|
|
3025
3062
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
3026
|
-
return this.
|
|
3063
|
+
return this.x34_1.r();
|
|
3027
3064
|
};
|
|
3028
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3029
|
-
return decodeParameters(this.
|
|
3065
|
+
protoOf(UrlDecodedParametersBuilder).y2n = function () {
|
|
3066
|
+
return decodeParameters(this.x34_1).y2n();
|
|
3030
3067
|
};
|
|
3031
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3032
|
-
return this.
|
|
3068
|
+
protoOf(UrlDecodedParametersBuilder).x2n = function (name, value) {
|
|
3069
|
+
return this.x34_1.x2n(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3033
3070
|
};
|
|
3034
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3035
|
-
return appendAllEncoded(this.
|
|
3071
|
+
protoOf(UrlDecodedParametersBuilder).j2o = function (stringValues) {
|
|
3072
|
+
return appendAllEncoded(this.x34_1, stringValues);
|
|
3036
3073
|
};
|
|
3037
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3074
|
+
protoOf(UrlDecodedParametersBuilder).z2n = function (name, values) {
|
|
3038
3075
|
var tmp = encodeURLParameter(name);
|
|
3039
3076
|
// Inline function 'kotlin.collections.map' call
|
|
3040
3077
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3045,10 +3082,10 @@
|
|
|
3045
3082
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3046
3083
|
destination.j1(tmp$ret$0);
|
|
3047
3084
|
}
|
|
3048
|
-
return this.
|
|
3085
|
+
return this.x34_1.z2n(tmp, destination);
|
|
3049
3086
|
};
|
|
3050
3087
|
protoOf(UrlDecodedParametersBuilder).t2 = function () {
|
|
3051
|
-
return this.
|
|
3088
|
+
return this.x34_1.t2();
|
|
3052
3089
|
};
|
|
3053
3090
|
function encodeParameters(parameters) {
|
|
3054
3091
|
// Inline function 'kotlin.apply' call
|
|
@@ -3060,14 +3097,14 @@
|
|
|
3060
3097
|
// Inline function 'kotlin.apply' call
|
|
3061
3098
|
var this_0 = ParametersBuilder();
|
|
3062
3099
|
appendAllDecoded(this_0, parameters);
|
|
3063
|
-
return this_0.
|
|
3100
|
+
return this_0.i2v();
|
|
3064
3101
|
}
|
|
3065
3102
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3066
3103
|
// Inline function 'kotlin.collections.forEach' call
|
|
3067
|
-
var _iterator__ex2g4s = parameters.
|
|
3104
|
+
var _iterator__ex2g4s = parameters.c2o().t();
|
|
3068
3105
|
while (_iterator__ex2g4s.u()) {
|
|
3069
3106
|
var element = _iterator__ex2g4s.v();
|
|
3070
|
-
var tmp0_elvis_lhs = parameters.
|
|
3107
|
+
var tmp0_elvis_lhs = parameters.b2o(element);
|
|
3071
3108
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3072
3109
|
var tmp = encodeURLParameter(element);
|
|
3073
3110
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3079,15 +3116,15 @@
|
|
|
3079
3116
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3080
3117
|
destination.j1(tmp$ret$0);
|
|
3081
3118
|
}
|
|
3082
|
-
_this__u8e3s4.
|
|
3119
|
+
_this__u8e3s4.z2n(tmp, destination);
|
|
3083
3120
|
}
|
|
3084
3121
|
}
|
|
3085
3122
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3086
3123
|
// Inline function 'kotlin.collections.forEach' call
|
|
3087
|
-
var _iterator__ex2g4s = parameters.
|
|
3124
|
+
var _iterator__ex2g4s = parameters.c2o().t();
|
|
3088
3125
|
while (_iterator__ex2g4s.u()) {
|
|
3089
3126
|
var element = _iterator__ex2g4s.v();
|
|
3090
|
-
var tmp0_elvis_lhs = parameters.
|
|
3127
|
+
var tmp0_elvis_lhs = parameters.b2o(element);
|
|
3091
3128
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3092
3129
|
var tmp = decodeURLQueryComponent(element);
|
|
3093
3130
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3099,7 +3136,7 @@
|
|
|
3099
3136
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3100
3137
|
destination.j1(tmp$ret$0);
|
|
3101
3138
|
}
|
|
3102
|
-
_this__u8e3s4.
|
|
3139
|
+
_this__u8e3s4.z2n(tmp, destination);
|
|
3103
3140
|
}
|
|
3104
3141
|
}
|
|
3105
3142
|
var HeaderValueEncoding_QUOTED_WHEN_REQUIRED_instance;
|
|
@@ -3144,13 +3181,13 @@
|
|
|
3144
3181
|
function Parameterized_init_$Init$(authScheme, parameters, encoding, $this) {
|
|
3145
3182
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3146
3183
|
// Inline function 'kotlin.collections.map' call
|
|
3147
|
-
var this_0 = parameters.
|
|
3184
|
+
var this_0 = parameters.q1();
|
|
3148
3185
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3149
3186
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3150
3187
|
var _iterator__ex2g4s = this_0.t();
|
|
3151
3188
|
while (_iterator__ex2g4s.u()) {
|
|
3152
3189
|
var item = _iterator__ex2g4s.v();
|
|
3153
|
-
var tmp$ret$0 = HeaderValueParam_init_$Create$(item.
|
|
3190
|
+
var tmp$ret$0 = HeaderValueParam_init_$Create$(item.r1(), item.s1());
|
|
3154
3191
|
destination.j1(tmp$ret$0);
|
|
3155
3192
|
}
|
|
3156
3193
|
Parameterized.call($this, authScheme, destination, encoding);
|
|
@@ -3179,71 +3216,71 @@
|
|
|
3179
3216
|
}
|
|
3180
3217
|
function HttpAuthHeader$Parameterized$render$lambda(this$0, $encoding) {
|
|
3181
3218
|
return function (it) {
|
|
3182
|
-
return it.
|
|
3219
|
+
return it.y2s_1 + '=' + encode_0(this$0, it.z2s_1, $encoding);
|
|
3183
3220
|
};
|
|
3184
3221
|
}
|
|
3185
3222
|
function Single(authScheme, blob) {
|
|
3186
3223
|
HttpAuthHeader.call(this, authScheme);
|
|
3187
|
-
this.
|
|
3188
|
-
var tmp0 = this.
|
|
3224
|
+
this.a35_1 = blob;
|
|
3225
|
+
var tmp0 = this.a35_1;
|
|
3189
3226
|
// Inline function 'kotlin.text.matches' call
|
|
3190
3227
|
if (!get_token68Pattern().dd(tmp0)) {
|
|
3191
3228
|
throw new ParseException('Invalid blob value: it should be token68');
|
|
3192
3229
|
}
|
|
3193
3230
|
}
|
|
3194
|
-
protoOf(Single).
|
|
3195
|
-
return this.
|
|
3231
|
+
protoOf(Single).b35 = function () {
|
|
3232
|
+
return this.c35_1 + ' ' + this.a35_1;
|
|
3196
3233
|
};
|
|
3197
3234
|
protoOf(Single).equals = function (other) {
|
|
3198
3235
|
if (!(other instanceof Single))
|
|
3199
3236
|
return false;
|
|
3200
|
-
return equals(other.
|
|
3237
|
+
return equals(other.c35_1, this.c35_1, true) && equals(other.a35_1, this.a35_1, true);
|
|
3201
3238
|
};
|
|
3202
3239
|
protoOf(Single).hashCode = function () {
|
|
3203
3240
|
var tmp = Hash_instance;
|
|
3204
3241
|
// Inline function 'kotlin.text.lowercase' call
|
|
3205
3242
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3206
|
-
var tmp_0 = this.
|
|
3243
|
+
var tmp_0 = this.c35_1.toLowerCase();
|
|
3207
3244
|
// Inline function 'kotlin.text.lowercase' call
|
|
3208
3245
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3209
|
-
var tmp$ret$3 = this.
|
|
3210
|
-
return tmp.
|
|
3246
|
+
var tmp$ret$3 = this.a35_1.toLowerCase();
|
|
3247
|
+
return tmp.l2n([tmp_0, tmp$ret$3]);
|
|
3211
3248
|
};
|
|
3212
3249
|
function Parameterized(authScheme, parameters, encoding) {
|
|
3213
3250
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3214
3251
|
HttpAuthHeader.call(this, authScheme);
|
|
3215
|
-
this.
|
|
3216
|
-
this.
|
|
3252
|
+
this.e35_1 = parameters;
|
|
3253
|
+
this.f35_1 = encoding;
|
|
3217
3254
|
// Inline function 'kotlin.collections.forEach' call
|
|
3218
|
-
var _iterator__ex2g4s = this.
|
|
3255
|
+
var _iterator__ex2g4s = this.e35_1.t();
|
|
3219
3256
|
while (_iterator__ex2g4s.u()) {
|
|
3220
3257
|
var element = _iterator__ex2g4s.v();
|
|
3221
|
-
var tmp0 = element.
|
|
3258
|
+
var tmp0 = element.y2s_1;
|
|
3222
3259
|
// Inline function 'kotlin.text.matches' call
|
|
3223
3260
|
if (!get_token68Pattern().dd(tmp0)) {
|
|
3224
3261
|
throw new ParseException('Parameter name should be a token');
|
|
3225
3262
|
}
|
|
3226
3263
|
}
|
|
3227
3264
|
}
|
|
3228
|
-
protoOf(Parameterized).
|
|
3265
|
+
protoOf(Parameterized).g35 = function (encoding) {
|
|
3229
3266
|
var tmp;
|
|
3230
|
-
if (this.
|
|
3231
|
-
tmp = this.
|
|
3267
|
+
if (this.e35_1.r()) {
|
|
3268
|
+
tmp = this.c35_1;
|
|
3232
3269
|
} else {
|
|
3233
|
-
var tmp_0 = this.
|
|
3234
|
-
tmp = joinToString(this.
|
|
3270
|
+
var tmp_0 = this.c35_1 + ' ';
|
|
3271
|
+
tmp = joinToString(this.e35_1, ', ', tmp_0, VOID, VOID, VOID, HttpAuthHeader$Parameterized$render$lambda(this, encoding));
|
|
3235
3272
|
}
|
|
3236
3273
|
return tmp;
|
|
3237
3274
|
};
|
|
3238
|
-
protoOf(Parameterized).
|
|
3239
|
-
var tmp0 = this.
|
|
3275
|
+
protoOf(Parameterized).e2v = function (name) {
|
|
3276
|
+
var tmp0 = this.e35_1;
|
|
3240
3277
|
var tmp$ret$1;
|
|
3241
3278
|
$l$block: {
|
|
3242
3279
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3243
3280
|
var _iterator__ex2g4s = tmp0.t();
|
|
3244
3281
|
while (_iterator__ex2g4s.u()) {
|
|
3245
3282
|
var element = _iterator__ex2g4s.v();
|
|
3246
|
-
if (element.
|
|
3283
|
+
if (element.y2s_1 === name) {
|
|
3247
3284
|
tmp$ret$1 = element;
|
|
3248
3285
|
break $l$block;
|
|
3249
3286
|
}
|
|
@@ -3251,22 +3288,22 @@
|
|
|
3251
3288
|
tmp$ret$1 = null;
|
|
3252
3289
|
}
|
|
3253
3290
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
3254
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3291
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z2s_1;
|
|
3255
3292
|
};
|
|
3256
|
-
protoOf(Parameterized).
|
|
3257
|
-
return this.
|
|
3293
|
+
protoOf(Parameterized).b35 = function () {
|
|
3294
|
+
return this.g35(this.f35_1);
|
|
3258
3295
|
};
|
|
3259
3296
|
protoOf(Parameterized).equals = function (other) {
|
|
3260
3297
|
if (!(other instanceof Parameterized))
|
|
3261
3298
|
return false;
|
|
3262
|
-
return equals(other.
|
|
3299
|
+
return equals(other.c35_1, this.c35_1, true) && equals_0(other.e35_1, this.e35_1);
|
|
3263
3300
|
};
|
|
3264
3301
|
protoOf(Parameterized).hashCode = function () {
|
|
3265
3302
|
var tmp = Hash_instance;
|
|
3266
3303
|
// Inline function 'kotlin.text.lowercase' call
|
|
3267
3304
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3268
|
-
var tmp$ret$1 = this.
|
|
3269
|
-
return tmp.
|
|
3305
|
+
var tmp$ret$1 = this.c35_1.toLowerCase();
|
|
3306
|
+
return tmp.l2n([tmp$ret$1, this.e35_1]);
|
|
3270
3307
|
};
|
|
3271
3308
|
function Companion_9() {
|
|
3272
3309
|
}
|
|
@@ -3275,15 +3312,15 @@
|
|
|
3275
3312
|
return Companion_instance_9;
|
|
3276
3313
|
}
|
|
3277
3314
|
function HttpAuthHeader(authScheme) {
|
|
3278
|
-
this.
|
|
3279
|
-
var tmp0 = this.
|
|
3315
|
+
this.c35_1 = authScheme;
|
|
3316
|
+
var tmp0 = this.c35_1;
|
|
3280
3317
|
// Inline function 'kotlin.text.matches' call
|
|
3281
3318
|
if (!get_token68Pattern().dd(tmp0)) {
|
|
3282
|
-
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.
|
|
3319
|
+
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.c35_1);
|
|
3283
3320
|
}
|
|
3284
3321
|
}
|
|
3285
3322
|
protoOf(HttpAuthHeader).toString = function () {
|
|
3286
|
-
return this.
|
|
3323
|
+
return this.b35();
|
|
3287
3324
|
};
|
|
3288
3325
|
function parseAuthorizationHeaders(headerValue) {
|
|
3289
3326
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3344,7 +3381,7 @@
|
|
|
3344
3381
|
}
|
|
3345
3382
|
function isToken(_this__u8e3s4) {
|
|
3346
3383
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3347
|
-
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN_EXTRA().
|
|
3384
|
+
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN_EXTRA().n2(new Char(_this__u8e3s4));
|
|
3348
3385
|
}
|
|
3349
3386
|
function nextChallengeIndex(headers, header, index, headerValue) {
|
|
3350
3387
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3388,7 +3425,7 @@
|
|
|
3388
3425
|
}
|
|
3389
3426
|
function isToken68(_this__u8e3s4) {
|
|
3390
3427
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3391
|
-
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN68_EXTRA().
|
|
3428
|
+
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false) || isDigit(_this__u8e3s4) || get_TOKEN68_EXTRA().n2(new Char(_this__u8e3s4));
|
|
3392
3429
|
}
|
|
3393
3430
|
function matchParameter(headerValue, startIndex, parameters) {
|
|
3394
3431
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3452,7 +3489,7 @@
|
|
|
3452
3489
|
}
|
|
3453
3490
|
function unescaped$lambda(it) {
|
|
3454
3491
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
3455
|
-
return takeLast(it.
|
|
3492
|
+
return takeLast(it.s1(), 1);
|
|
3456
3493
|
}
|
|
3457
3494
|
var properties_initialized_HttpAuthHeader_kt_y7nech;
|
|
3458
3495
|
function _init_properties_HttpAuthHeader_kt__axcd0d() {
|
|
@@ -3471,22 +3508,26 @@
|
|
|
3471
3508
|
contentType = contentType === VOID ? null : contentType;
|
|
3472
3509
|
status = status === VOID ? null : status;
|
|
3473
3510
|
ByteArrayContent_0.call(this);
|
|
3474
|
-
this.
|
|
3475
|
-
this.
|
|
3476
|
-
this.
|
|
3511
|
+
this.i35_1 = bytes;
|
|
3512
|
+
this.j35_1 = contentType;
|
|
3513
|
+
this.k35_1 = status;
|
|
3477
3514
|
}
|
|
3478
|
-
protoOf(ByteArrayContent).
|
|
3479
|
-
return this.
|
|
3515
|
+
protoOf(ByteArrayContent).l35 = function () {
|
|
3516
|
+
return this.j35_1;
|
|
3480
3517
|
};
|
|
3481
|
-
protoOf(ByteArrayContent).
|
|
3482
|
-
return this.
|
|
3518
|
+
protoOf(ByteArrayContent).m35 = function () {
|
|
3519
|
+
return this.k35_1;
|
|
3483
3520
|
};
|
|
3484
|
-
protoOf(ByteArrayContent).
|
|
3485
|
-
return fromInt(this.
|
|
3521
|
+
protoOf(ByteArrayContent).n35 = function () {
|
|
3522
|
+
return fromInt(this.i35_1.length);
|
|
3486
3523
|
};
|
|
3487
|
-
protoOf(ByteArrayContent).
|
|
3488
|
-
return this.
|
|
3524
|
+
protoOf(ByteArrayContent).o35 = function () {
|
|
3525
|
+
return this.i35_1;
|
|
3489
3526
|
};
|
|
3527
|
+
function FormItem() {
|
|
3528
|
+
}
|
|
3529
|
+
function PartData() {
|
|
3530
|
+
}
|
|
3490
3531
|
function MultiPartData() {
|
|
3491
3532
|
}
|
|
3492
3533
|
function NoContent() {
|
|
@@ -3504,23 +3545,23 @@
|
|
|
3504
3545
|
}
|
|
3505
3546
|
function ContentWrapper() {
|
|
3506
3547
|
}
|
|
3507
|
-
protoOf(ContentWrapper).
|
|
3508
|
-
return this.
|
|
3548
|
+
protoOf(ContentWrapper).x35 = function () {
|
|
3549
|
+
return this.w35_1;
|
|
3509
3550
|
};
|
|
3510
3551
|
function OutgoingContent() {
|
|
3511
|
-
this.
|
|
3552
|
+
this.p35_1 = null;
|
|
3512
3553
|
}
|
|
3513
|
-
protoOf(OutgoingContent).
|
|
3554
|
+
protoOf(OutgoingContent).l35 = function () {
|
|
3514
3555
|
return null;
|
|
3515
3556
|
};
|
|
3516
|
-
protoOf(OutgoingContent).
|
|
3557
|
+
protoOf(OutgoingContent).n35 = function () {
|
|
3517
3558
|
return null;
|
|
3518
3559
|
};
|
|
3519
|
-
protoOf(OutgoingContent).
|
|
3560
|
+
protoOf(OutgoingContent).m35 = function () {
|
|
3520
3561
|
return null;
|
|
3521
3562
|
};
|
|
3522
|
-
protoOf(OutgoingContent).
|
|
3523
|
-
return Companion_getInstance_1().
|
|
3563
|
+
protoOf(OutgoingContent).n2z = function () {
|
|
3564
|
+
return Companion_getInstance_1().f2v_1;
|
|
3524
3565
|
};
|
|
3525
3566
|
function NullBody() {
|
|
3526
3567
|
}
|
|
@@ -3534,7 +3575,7 @@
|
|
|
3534
3575
|
tmp = true;
|
|
3535
3576
|
} else {
|
|
3536
3577
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3537
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3578
|
+
tmp = isEmpty(_this__u8e3s4.x35());
|
|
3538
3579
|
} else {
|
|
3539
3580
|
tmp = false;
|
|
3540
3581
|
}
|
|
@@ -3544,45 +3585,45 @@
|
|
|
3544
3585
|
function TextContent(text, contentType, status) {
|
|
3545
3586
|
status = status === VOID ? null : status;
|
|
3546
3587
|
ByteArrayContent_0.call(this);
|
|
3547
|
-
this.
|
|
3548
|
-
this.
|
|
3549
|
-
this.
|
|
3588
|
+
this.a36_1 = text;
|
|
3589
|
+
this.b36_1 = contentType;
|
|
3590
|
+
this.c36_1 = status;
|
|
3550
3591
|
var tmp = this;
|
|
3551
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3552
|
-
tmp.
|
|
3592
|
+
var tmp0_elvis_lhs = charset(this.b36_1);
|
|
3593
|
+
tmp.d36_1 = toByteArray(this.a36_1, tmp0_elvis_lhs == null ? Charsets_getInstance().b1y_1 : tmp0_elvis_lhs);
|
|
3553
3594
|
}
|
|
3554
|
-
protoOf(TextContent).
|
|
3555
|
-
return this.
|
|
3595
|
+
protoOf(TextContent).l35 = function () {
|
|
3596
|
+
return this.b36_1;
|
|
3556
3597
|
};
|
|
3557
|
-
protoOf(TextContent).
|
|
3558
|
-
return this.
|
|
3598
|
+
protoOf(TextContent).m35 = function () {
|
|
3599
|
+
return this.c36_1;
|
|
3559
3600
|
};
|
|
3560
|
-
protoOf(TextContent).
|
|
3561
|
-
return fromInt(this.
|
|
3601
|
+
protoOf(TextContent).n35 = function () {
|
|
3602
|
+
return fromInt(this.d36_1.length);
|
|
3562
3603
|
};
|
|
3563
|
-
protoOf(TextContent).
|
|
3564
|
-
return this.
|
|
3604
|
+
protoOf(TextContent).o35 = function () {
|
|
3605
|
+
return this.d36_1;
|
|
3565
3606
|
};
|
|
3566
3607
|
protoOf(TextContent).toString = function () {
|
|
3567
|
-
return 'TextContent[' + this.
|
|
3608
|
+
return 'TextContent[' + this.b36_1.toString() + '] "' + take(this.a36_1, 30) + '"';
|
|
3568
3609
|
};
|
|
3569
3610
|
function ParseException(message, cause) {
|
|
3570
3611
|
cause = cause === VOID ? null : cause;
|
|
3571
3612
|
IllegalArgumentException_init_$Init$_0(message, cause, this);
|
|
3572
3613
|
captureStack(this, ParseException);
|
|
3573
|
-
this.
|
|
3574
|
-
this.
|
|
3614
|
+
this.e36_1 = message;
|
|
3615
|
+
this.f36_1 = cause;
|
|
3575
3616
|
delete this.message;
|
|
3576
3617
|
delete this.cause;
|
|
3577
3618
|
}
|
|
3578
3619
|
protoOf(ParseException).e = function () {
|
|
3579
|
-
return this.
|
|
3620
|
+
return this.e36_1;
|
|
3580
3621
|
};
|
|
3581
3622
|
protoOf(ParseException).f = function () {
|
|
3582
|
-
return this.
|
|
3623
|
+
return this.f36_1;
|
|
3583
3624
|
};
|
|
3584
3625
|
function get_origin(_this__u8e3s4) {
|
|
3585
|
-
return PlatformUtils_getInstance().
|
|
3626
|
+
return PlatformUtils_getInstance().o2n_1 ? locationOrigin() : 'http://localhost';
|
|
3586
3627
|
}
|
|
3587
3628
|
function locationOrigin() {
|
|
3588
3629
|
return function () {
|
|
@@ -3600,12 +3641,12 @@
|
|
|
3600
3641
|
}();
|
|
3601
3642
|
}
|
|
3602
3643
|
//region block: post-declaration
|
|
3603
|
-
protoOf(EmptyHeaders).
|
|
3604
|
-
protoOf(EmptyHeaders).
|
|
3605
|
-
protoOf(EmptyHeaders).
|
|
3606
|
-
protoOf(EmptyParameters).
|
|
3607
|
-
protoOf(EmptyParameters).
|
|
3608
|
-
protoOf(EmptyParameters).
|
|
3644
|
+
protoOf(EmptyHeaders).p2m = get;
|
|
3645
|
+
protoOf(EmptyHeaders).w2n = contains_0;
|
|
3646
|
+
protoOf(EmptyHeaders).d2o = forEach;
|
|
3647
|
+
protoOf(EmptyParameters).p2m = get;
|
|
3648
|
+
protoOf(EmptyParameters).w2n = contains_0;
|
|
3649
|
+
protoOf(EmptyParameters).d2o = forEach;
|
|
3609
3650
|
defineProp(protoOf(ParseException), 'message', function () {
|
|
3610
3651
|
return this.e();
|
|
3611
3652
|
});
|
|
@@ -3645,36 +3686,38 @@
|
|
|
3645
3686
|
_.$_$.t = ReadChannelContent;
|
|
3646
3687
|
_.$_$.u = WriteChannelContent;
|
|
3647
3688
|
_.$_$.v = OutgoingContent;
|
|
3648
|
-
_.$_$.w =
|
|
3649
|
-
_.$_$.x =
|
|
3650
|
-
_.$_$.y =
|
|
3651
|
-
_.$_$.z =
|
|
3652
|
-
_.$_$.a1 =
|
|
3653
|
-
_.$_$.b1 =
|
|
3654
|
-
_.$_$.c1 =
|
|
3655
|
-
_.$_$.d1 =
|
|
3656
|
-
_.$_$.e1 =
|
|
3657
|
-
_.$_$.f1 =
|
|
3658
|
-
_.$_$.g1 =
|
|
3659
|
-
_.$_$.h1 =
|
|
3660
|
-
_.$_$.i1 =
|
|
3661
|
-
_.$_$.j1 =
|
|
3662
|
-
_.$_$.k1 =
|
|
3663
|
-
_.$_$.l1 =
|
|
3664
|
-
_.$_$.m1 =
|
|
3665
|
-
_.$_$.n1 =
|
|
3666
|
-
_.$_$.o1 =
|
|
3667
|
-
_.$_$.p1 =
|
|
3668
|
-
_.$_$.q1 =
|
|
3669
|
-
_.$_$.r1 =
|
|
3670
|
-
_.$_$.s1 =
|
|
3671
|
-
_.$_$.t1 =
|
|
3672
|
-
_.$_$.u1 =
|
|
3673
|
-
_.$_$.v1 =
|
|
3674
|
-
_.$_$.w1 =
|
|
3675
|
-
_.$_$.x1 =
|
|
3676
|
-
_.$_$.y1 =
|
|
3677
|
-
_.$_$.z1 =
|
|
3689
|
+
_.$_$.w = FormItem;
|
|
3690
|
+
_.$_$.x = TextContent;
|
|
3691
|
+
_.$_$.y = isEmpty;
|
|
3692
|
+
_.$_$.z = ContentType;
|
|
3693
|
+
_.$_$.a1 = HeadersBuilder;
|
|
3694
|
+
_.$_$.b1 = HttpStatusCode;
|
|
3695
|
+
_.$_$.c1 = ParametersBuilder;
|
|
3696
|
+
_.$_$.d1 = URLBuilder_1;
|
|
3697
|
+
_.$_$.e1 = URLBuilder;
|
|
3698
|
+
_.$_$.f1 = UnsafeHeaderException;
|
|
3699
|
+
_.$_$.g1 = Url;
|
|
3700
|
+
_.$_$.h1 = append;
|
|
3701
|
+
_.$_$.i1 = get_authority;
|
|
3702
|
+
_.$_$.j1 = get_authority_0;
|
|
3703
|
+
_.$_$.k1 = charset_0;
|
|
3704
|
+
_.$_$.l1 = charset;
|
|
3705
|
+
_.$_$.m1 = contentLength;
|
|
3706
|
+
_.$_$.n1 = contentType_0;
|
|
3707
|
+
_.$_$.o1 = contentType;
|
|
3708
|
+
_.$_$.p1 = get_encodedPath;
|
|
3709
|
+
_.$_$.q1 = headersOf;
|
|
3710
|
+
_.$_$.r1 = isSecure;
|
|
3711
|
+
_.$_$.s1 = isTextType;
|
|
3712
|
+
_.$_$.t1 = isWebsocket;
|
|
3713
|
+
_.$_$.u1 = parseAndSortHeader;
|
|
3714
|
+
_.$_$.v1 = parseUrl;
|
|
3715
|
+
_.$_$.w1 = path;
|
|
3716
|
+
_.$_$.x1 = get_supportsRequestBody;
|
|
3717
|
+
_.$_$.y1 = takeFrom_0;
|
|
3718
|
+
_.$_$.z1 = takeFrom;
|
|
3719
|
+
_.$_$.a2 = withCharsetIfNeeded;
|
|
3720
|
+
_.$_$.b2 = withCharset;
|
|
3678
3721
|
//endregion
|
|
3679
3722
|
return _;
|
|
3680
3723
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-utils.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js')));
|