@doordeck/doordeck-headless-sdk 0.69.0 → 0.71.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.
Files changed (26) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1344 -1344
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
  4. package/kotlin/doordeck-sdk.d.ts +4 -0
  5. package/kotlin/doordeck-sdk.js +11567 -11566
  6. package/kotlin/kotlin-kotlin-stdlib.js +2612 -2324
  7. package/kotlin/kotlinx-atomicfu.js +19 -19
  8. package/kotlin/kotlinx-coroutines-core.js +2800 -2214
  9. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +198 -2
  10. package/kotlin/kotlinx-io-kotlinx-io-core.js +536 -463
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1939 -1939
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1684
  13. package/kotlin/ktor-ktor-client-ktor-client-core.js +3274 -3074
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +529 -427
  15. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +372 -271
  16. package/kotlin/ktor-ktor-http-ktor-http-cio.js +2009 -0
  17. package/kotlin/ktor-ktor-http.js +1012 -907
  18. package/kotlin/ktor-ktor-io.js +1748 -871
  19. package/kotlin/ktor-ktor-shared-ktor-events.js +13 -13
  20. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
  21. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +282 -282
  22. package/kotlin/ktor-ktor-shared-ktor-serialization.js +137 -137
  23. package/kotlin/ktor-ktor-shared-ktor-websockets.js +57 -57
  24. package/kotlin/ktor-ktor-utils.js +736 -667
  25. package/package.json +2 -2
  26. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -6
@@ -0,0 +1,2009 @@
1
+ (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring, kotlin_org_jetbrains_kotlinx_kotlinx_io_core) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var Long = kotlin_kotlin.$_$.ff;
6
+ var VOID = kotlin_kotlin.$_$.h;
7
+ var protoOf = kotlin_kotlin.$_$.sb;
8
+ var MultiPartData = kotlin_io_ktor_ktor_http.$_$.o;
9
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
10
+ var initMetadataForClass = kotlin_kotlin.$_$.ra;
11
+ var NotImplementedError = kotlin_kotlin.$_$.hf;
12
+ var Unit_instance = kotlin_kotlin.$_$.j5;
13
+ var toString = kotlin_kotlin.$_$.wb;
14
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
15
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
16
+ var DefaultPool = kotlin_io_ktor_ktor_io.$_$.f1;
17
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s2;
18
+ var endsWith = kotlin_kotlin.$_$.tc;
19
+ var charSequenceLength = kotlin_kotlin.$_$.fa;
20
+ var charSequenceGet = kotlin_kotlin.$_$.ea;
21
+ var Char = kotlin_kotlin.$_$.ve;
22
+ var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.t2;
23
+ var contains = kotlin_kotlin.$_$.oc;
24
+ var charSequenceSubSequence = kotlin_kotlin.$_$.ga;
25
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.y2;
26
+ var IllegalStateException = kotlin_kotlin.$_$.ef;
27
+ var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.z1;
28
+ var captureStack = kotlin_kotlin.$_$.ba;
29
+ var CoroutineImpl = kotlin_kotlin.$_$.t9;
30
+ var readUTF8LineTo = kotlin_io_ktor_ktor_io.$_$.e;
31
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.d9;
32
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
33
+ var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
34
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.ta;
35
+ var setOf = kotlin_kotlin.$_$.h8;
36
+ var listOf = kotlin_kotlin.$_$.u7;
37
+ var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
38
+ var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.a;
39
+ var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
40
+ var toString_0 = kotlin_kotlin.$_$.ge;
41
+ var toByte = kotlin_kotlin.$_$.tb;
42
+ var copyOfRange = kotlin_kotlin.$_$.k6;
43
+ var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
44
+ var startsWith = kotlin_kotlin.$_$.sd;
45
+ var readUntil = kotlin_io_ktor_ktor_io.$_$.f;
46
+ var THROW_CCE = kotlin_kotlin.$_$.lf;
47
+ var WriterScope = kotlin_io_ktor_ktor_io.$_$.k1;
48
+ var initMetadataForLambda = kotlin_kotlin.$_$.wa;
49
+ var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
50
+ var isInterface = kotlin_kotlin.$_$.gb;
51
+ var counted = kotlin_io_ktor_ktor_io.$_$.o1;
52
+ var writer = kotlin_io_ktor_ktor_io.$_$.s1;
53
+ var readRemaining = kotlin_io_ktor_ktor_io.$_$.d;
54
+ var get_remaining = kotlin_io_ktor_ktor_io.$_$.y;
55
+ var skipIfFound = kotlin_io_ktor_ktor_io.$_$.g;
56
+ var ByteChannel = kotlin_io_ktor_ktor_io.$_$.h1;
57
+ var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
58
+ var CancellationException_init_$Create$ = kotlin_kotlin.$_$.d1;
59
+ var close = kotlin_io_ktor_ktor_io.$_$.n1;
60
+ var readPacket = kotlin_io_ktor_ktor_io.$_$.c;
61
+ var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
62
+ var copyTo = kotlin_io_ktor_ktor_io.$_$.a;
63
+ var toLong = kotlin_kotlin.$_$.ub;
64
+ var toByteArray = kotlin_io_ktor_ktor_io.$_$.a1;
65
+ var ByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.c;
66
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
67
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
68
+ var fillArrayVal = kotlin_kotlin.$_$.la;
69
+ var compareTo = kotlin_kotlin.$_$.ha;
70
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.g2;
71
+ var Collection = kotlin_kotlin.$_$.l5;
72
+ var emptyList = kotlin_kotlin.$_$.y6;
73
+ var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
74
+ var ensureNotNull = kotlin_kotlin.$_$.dg;
75
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.i1;
76
+ var isCharSequence = kotlin_kotlin.$_$.cb;
77
+ var getStringHashCode = kotlin_kotlin.$_$.pa;
78
+ var CharSequence = kotlin_kotlin.$_$.ue;
79
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.d2;
80
+ var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.g1;
81
+ var charArray = kotlin_kotlin.$_$.da;
82
+ var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.h2;
83
+ var toString_1 = kotlin_kotlin.$_$.z2;
84
+ var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
85
+ var numberRangeToNumber = kotlin_kotlin.$_$.nb;
86
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.e6;
87
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
88
+ var numberToLong = kotlin_kotlin.$_$.qb;
89
+ var toLongArray = kotlin_kotlin.$_$.t8;
90
+ var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.w2;
91
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.v2;
92
+ var toByteArray_0 = kotlin_kotlin.$_$.o8;
93
+ var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
94
+ var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
95
+ var isWhitespace = kotlin_kotlin.$_$.cd;
96
+ //endregion
97
+ //region block: pre-declaration
98
+ initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
99
+ initMetadataForClass(HttpHeadersMap, 'HttpHeadersMap');
100
+ initMetadataForClass(IntArrayPool$1, VOID, VOID, DefaultPool);
101
+ initMetadataForClass(ParserException, 'ParserException', VOID, IllegalStateException);
102
+ initMetadataForCoroutine($parseHeadersCOROUTINE$4, CoroutineImpl);
103
+ initMetadataForClass(MultipartEvent, 'MultipartEvent');
104
+ initMetadataForClass(Preamble, 'Preamble', VOID, MultipartEvent);
105
+ initMetadataForClass(MultipartPart, 'MultipartPart', VOID, MultipartEvent);
106
+ initMetadataForClass(Epilogue, 'Epilogue', VOID, MultipartEvent);
107
+ initMetadataForLambda(parseMultipart$slambda$slambda, CoroutineImpl, VOID, [1]);
108
+ initMetadataForLambda(parseMultipart$slambda, CoroutineImpl, VOID, [1]);
109
+ initMetadataForCoroutine($parsePartHeadersImplCOROUTINE$5, CoroutineImpl);
110
+ initMetadataForCoroutine($parsePartBodyImplCOROUTINE$6, CoroutineImpl);
111
+ initMetadataForCoroutine($skipIfFoundReadCountCOROUTINE$7, CoroutineImpl);
112
+ initMetadataForClass(Node, 'Node');
113
+ initMetadataForCompanion(Companion);
114
+ initMetadataForClass(AsciiCharTree, 'AsciiCharTree');
115
+ initMetadataForClass(SubSequenceImpl, 'SubSequenceImpl', VOID, VOID, [CharSequence]);
116
+ initMetadataForClass(CharArrayBuilder, 'CharArrayBuilder', CharArrayBuilder, VOID, [CharSequence]);
117
+ initMetadataForClass(CharArrayPool$1, VOID, VOID, NoPoolImpl);
118
+ initMetadataForClass(CharArrayPool$2, VOID, VOID, DefaultPool);
119
+ initMetadataForClass(UnsupportedMediaTypeExceptionCIO, 'UnsupportedMediaTypeExceptionCIO', VOID, IOException);
120
+ initMetadataForClass(MutableRange, 'MutableRange');
121
+ //endregion
122
+ function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
123
+ formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
124
+ this.h2y_1 = coroutineContext;
125
+ this.i2y_1 = null;
126
+ this.j2y_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
127
+ }
128
+ protoOf(CIOMultipartDataBase).ho = function () {
129
+ return this.h2y_1;
130
+ };
131
+ function get_EMPTY_INT_LIST() {
132
+ _init_properties_HttpHeadersMap_kt__hwatby();
133
+ return EMPTY_INT_LIST;
134
+ }
135
+ var EMPTY_INT_LIST;
136
+ function get_IntArrayPool() {
137
+ _init_properties_HttpHeadersMap_kt__hwatby();
138
+ return IntArrayPool;
139
+ }
140
+ var IntArrayPool;
141
+ function HttpHeadersMap(builder) {
142
+ this.k2y_1 = builder;
143
+ this.l2y_1 = 0;
144
+ this.m2y_1 = get_IntArrayPool().r1t();
145
+ }
146
+ protoOf(HttpHeadersMap).n2y = function (nameHash, valueHash, nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
147
+ var base = imul(this.l2y_1, 8);
148
+ var array = this.m2y_1;
149
+ if (base >= this.m2y_1.length) {
150
+ // Inline function 'kotlin.TODO' call
151
+ var reason = 'Implement headers overflow';
152
+ throw new NotImplementedError('An operation is not implemented: ' + reason);
153
+ }
154
+ array[base + 0 | 0] = nameHash;
155
+ array[base + 1 | 0] = valueHash;
156
+ array[base + 2 | 0] = nameStartIndex;
157
+ array[base + 3 | 0] = nameEndIndex;
158
+ array[base + 4 | 0] = valueStartIndex;
159
+ array[base + 5 | 0] = valueEndIndex;
160
+ array[base + 6 | 0] = -1;
161
+ array[base + 7 | 0] = -1;
162
+ this.l2y_1 = this.l2y_1 + 1 | 0;
163
+ };
164
+ protoOf(HttpHeadersMap).g2f = function (name) {
165
+ var nameHash = hashCodeLowerCase(name);
166
+ var inductionVariable = 0;
167
+ var last = this.l2y_1;
168
+ if (inductionVariable < last)
169
+ do {
170
+ var i = inductionVariable;
171
+ inductionVariable = inductionVariable + 1 | 0;
172
+ var offset = imul(i, 8);
173
+ if (this.m2y_1[offset] === nameHash) {
174
+ return this.k2y_1.c(this.m2y_1[offset + 4 | 0], this.m2y_1[offset + 5 | 0]);
175
+ }
176
+ }
177
+ while (inductionVariable < last);
178
+ return null;
179
+ };
180
+ protoOf(HttpHeadersMap).v2y = function (idx) {
181
+ // Inline function 'kotlin.require' call
182
+ // Inline function 'kotlin.require' call
183
+ if (!(idx >= 0)) {
184
+ // Inline function 'kotlin.require.<anonymous>' call
185
+ var message = 'Failed requirement.';
186
+ throw IllegalArgumentException_init_$Create$(toString(message));
187
+ }
188
+ // Inline function 'kotlin.require' call
189
+ // Inline function 'kotlin.require' call
190
+ if (!(idx < this.l2y_1)) {
191
+ // Inline function 'kotlin.require.<anonymous>' call
192
+ var message_0 = 'Failed requirement.';
193
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
194
+ }
195
+ var offset = imul(idx, 8);
196
+ var array = this.m2y_1;
197
+ var nameStart = array[offset + 2 | 0];
198
+ var nameEnd = array[offset + 3 | 0];
199
+ return this.k2y_1.c(nameStart, nameEnd);
200
+ };
201
+ protoOf(HttpHeadersMap).w2y = function (idx) {
202
+ // Inline function 'kotlin.require' call
203
+ // Inline function 'kotlin.require' call
204
+ if (!(idx >= 0)) {
205
+ // Inline function 'kotlin.require.<anonymous>' call
206
+ var message = 'Failed requirement.';
207
+ throw IllegalArgumentException_init_$Create$(toString(message));
208
+ }
209
+ // Inline function 'kotlin.require' call
210
+ // Inline function 'kotlin.require' call
211
+ if (!(idx < this.l2y_1)) {
212
+ // Inline function 'kotlin.require.<anonymous>' call
213
+ var message_0 = 'Failed requirement.';
214
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
215
+ }
216
+ var offset = imul(idx, 8);
217
+ var array = this.m2y_1;
218
+ var nameStart = array[offset + 4 | 0];
219
+ var nameEnd = array[offset + 5 | 0];
220
+ return this.k2y_1.c(nameStart, nameEnd);
221
+ };
222
+ protoOf(HttpHeadersMap).x2y = function () {
223
+ this.l2y_1 = 0;
224
+ var indexes = this.m2y_1;
225
+ this.m2y_1 = get_EMPTY_INT_LIST();
226
+ if (!(indexes === get_EMPTY_INT_LIST())) {
227
+ get_IntArrayPool().s1t(indexes);
228
+ }
229
+ };
230
+ protoOf(HttpHeadersMap).toString = function () {
231
+ // Inline function 'kotlin.text.buildString' call
232
+ // Inline function 'kotlin.apply' call
233
+ var this_0 = StringBuilder_init_$Create$();
234
+ // Inline function 'io.ktor.http.cio.HttpHeadersMap.toString.<anonymous>' call
235
+ dumpTo(this, '', this_0);
236
+ return this_0.toString();
237
+ };
238
+ function dumpTo(_this__u8e3s4, indent, out) {
239
+ _init_properties_HttpHeadersMap_kt__hwatby();
240
+ var inductionVariable = 0;
241
+ var last = _this__u8e3s4.l2y_1;
242
+ if (inductionVariable < last)
243
+ do {
244
+ var i = inductionVariable;
245
+ inductionVariable = inductionVariable + 1 | 0;
246
+ out.l(indent);
247
+ out.l(_this__u8e3s4.v2y(i));
248
+ out.l(' => ');
249
+ out.l(_this__u8e3s4.w2y(i));
250
+ out.l('\n');
251
+ }
252
+ while (inductionVariable < last);
253
+ }
254
+ function IntArrayPool$1() {
255
+ DefaultPool.call(this, 1000);
256
+ }
257
+ protoOf(IntArrayPool$1).k1t = function () {
258
+ return new Int32Array(4096);
259
+ };
260
+ var properties_initialized_HttpHeadersMap_kt_kotj4w;
261
+ function _init_properties_HttpHeadersMap_kt__hwatby() {
262
+ if (!properties_initialized_HttpHeadersMap_kt_kotj4w) {
263
+ properties_initialized_HttpHeadersMap_kt_kotj4w = true;
264
+ EMPTY_INT_LIST = new Int32Array(0);
265
+ IntArrayPool = new IntArrayPool$1();
266
+ }
267
+ }
268
+ function get_hostForbiddenSymbols() {
269
+ _init_properties_HttpParser_kt__gbdom1();
270
+ return hostForbiddenSymbols;
271
+ }
272
+ var hostForbiddenSymbols;
273
+ var versions;
274
+ function parseHeaders(input, builder, range, $completion) {
275
+ range = range === VOID ? new MutableRange(0, 0) : range;
276
+ var tmp = new $parseHeadersCOROUTINE$4(input, builder, range, $completion);
277
+ tmp.i9_1 = Unit_instance;
278
+ tmp.j9_1 = null;
279
+ return tmp.o9();
280
+ }
281
+ function parseHeaderName(text, range) {
282
+ _init_properties_HttpParser_kt__gbdom1();
283
+ var index = range.n2z_1;
284
+ var end = range.o2z_1;
285
+ while (index < end) {
286
+ var ch = text.b(index);
287
+ if (ch === _Char___init__impl__6a9atx(58) && !(index === range.n2z_1)) {
288
+ range.n2z_1 = index + 1 | 0;
289
+ return index;
290
+ }
291
+ if (isDelimiter(ch)) {
292
+ parseHeaderNameFailed(text, index, range.n2z_1, ch);
293
+ }
294
+ index = index + 1 | 0;
295
+ }
296
+ noColonFound(text, range);
297
+ }
298
+ function parseHeaderValue(text, range) {
299
+ _init_properties_HttpParser_kt__gbdom1();
300
+ var start = range.n2z_1;
301
+ var end = range.o2z_1;
302
+ var index = start;
303
+ index = skipSpacesAndHorizontalTabs(text, index, end);
304
+ if (index >= end) {
305
+ range.n2z_1 = end;
306
+ return Unit_instance;
307
+ }
308
+ var valueStart = index;
309
+ var valueLastIndex = index;
310
+ while (index < end) {
311
+ var ch = text.b(index);
312
+ if (ch !== _Char___init__impl__6a9atx(9) && ch !== _Char___init__impl__6a9atx(32))
313
+ if (ch === _Char___init__impl__6a9atx(13) || ch === _Char___init__impl__6a9atx(10)) {
314
+ characterIsNotAllowed(text, ch);
315
+ } else
316
+ valueLastIndex = index;
317
+ index = index + 1 | 0;
318
+ }
319
+ range.n2z_1 = valueStart;
320
+ range.o2z_1 = valueLastIndex + 1 | 0;
321
+ }
322
+ function validateHostHeader(host) {
323
+ _init_properties_HttpParser_kt__gbdom1();
324
+ if (endsWith(host, ':')) {
325
+ throw new ParserException("Host header with ':' should contains port: " + toString(host));
326
+ }
327
+ var tmp$ret$1;
328
+ $l$block: {
329
+ // Inline function 'kotlin.text.any' call
330
+ var inductionVariable = 0;
331
+ while (inductionVariable < charSequenceLength(host)) {
332
+ var element = charSequenceGet(host, inductionVariable);
333
+ inductionVariable = inductionVariable + 1 | 0;
334
+ // Inline function 'io.ktor.http.cio.validateHostHeader.<anonymous>' call
335
+ if (get_hostForbiddenSymbols().x1(new Char(element))) {
336
+ tmp$ret$1 = true;
337
+ break $l$block;
338
+ }
339
+ }
340
+ tmp$ret$1 = false;
341
+ }
342
+ if (tmp$ret$1) {
343
+ throw new ParserException('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
344
+ }
345
+ }
346
+ function isDelimiter(ch) {
347
+ _init_properties_HttpParser_kt__gbdom1();
348
+ return Char__compareTo_impl_ypi4mb(ch, _Char___init__impl__6a9atx(32)) <= 0 || contains('"(),/:;<=>?@[\\]{}', ch);
349
+ }
350
+ function parseHeaderNameFailed(text, index, start, ch) {
351
+ _init_properties_HttpParser_kt__gbdom1();
352
+ if (ch === _Char___init__impl__6a9atx(58)) {
353
+ throw new ParserException('Empty header names are not allowed as per RFC7230.');
354
+ }
355
+ if (index === start) {
356
+ throw new ParserException('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
357
+ }
358
+ characterIsNotAllowed(text, ch);
359
+ }
360
+ function noColonFound(text, range) {
361
+ _init_properties_HttpParser_kt__gbdom1();
362
+ var tmp1 = range.n2z_1;
363
+ // Inline function 'kotlin.text.substring' call
364
+ var endIndex = range.o2z_1;
365
+ var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp1, endIndex));
366
+ throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
367
+ }
368
+ function characterIsNotAllowed(text, ch) {
369
+ _init_properties_HttpParser_kt__gbdom1();
370
+ // Inline function 'kotlin.code' call
371
+ var tmp$ret$0 = Char__toInt_impl_vasixd(ch);
372
+ throw new ParserException('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
373
+ }
374
+ function ParserException(message) {
375
+ IllegalStateException_init_$Init$(message, this);
376
+ captureStack(this, ParserException);
377
+ }
378
+ function $parseHeadersCOROUTINE$4(input, builder, range, resultContinuation) {
379
+ CoroutineImpl.call(this, resultContinuation);
380
+ this.j2z_1 = input;
381
+ this.k2z_1 = builder;
382
+ this.l2z_1 = range;
383
+ }
384
+ protoOf($parseHeadersCOROUTINE$4).o9 = function () {
385
+ var suspendResult = this.i9_1;
386
+ $sm: do
387
+ try {
388
+ var tmp = this.g9_1;
389
+ switch (tmp) {
390
+ case 0:
391
+ this.h9_1 = 7;
392
+ this.m2z_1 = new HttpHeadersMap(this.k2z_1);
393
+ this.h9_1 = 6;
394
+ this.g9_1 = 1;
395
+ continue $sm;
396
+ case 1:
397
+ if (!true) {
398
+ this.g9_1 = 5;
399
+ continue $sm;
400
+ }
401
+
402
+ this.g9_1 = 2;
403
+ suspendResult = readUTF8LineTo(this.j2z_1, this.k2z_1, 8192, this);
404
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
405
+ return suspendResult;
406
+ }
407
+
408
+ continue $sm;
409
+ case 2:
410
+ var ARGUMENT = suspendResult;
411
+ if (!ARGUMENT) {
412
+ this.m2z_1.x2y();
413
+ return null;
414
+ } else {
415
+ this.g9_1 = 3;
416
+ continue $sm;
417
+ }
418
+
419
+ case 3:
420
+ this.l2z_1.o2z_1 = this.k2z_1.u2y_1;
421
+ var rangeLength = this.l2z_1.o2z_1 - this.l2z_1.n2z_1 | 0;
422
+ if (rangeLength === 0) {
423
+ this.g9_1 = 5;
424
+ continue $sm;
425
+ } else {
426
+ this.g9_1 = 4;
427
+ continue $sm;
428
+ }
429
+
430
+ case 4:
431
+ if (rangeLength >= 8192) {
432
+ var message = 'Header line length limit exceeded';
433
+ throw IllegalStateException_init_$Create$(toString(message));
434
+ }
435
+
436
+ var nameStart = this.l2z_1.n2z_1;
437
+ var nameEnd = parseHeaderName(this.k2z_1, this.l2z_1);
438
+ var nameHash = hashCodeLowerCase(this.k2z_1, nameStart, nameEnd);
439
+ var headerEnd = this.l2z_1.o2z_1;
440
+ parseHeaderValue(this.k2z_1, this.l2z_1);
441
+ var valueStart = this.l2z_1.n2z_1;
442
+ var valueEnd = this.l2z_1.o2z_1;
443
+ var valueHash = hashCodeLowerCase(this.k2z_1, valueStart, valueEnd);
444
+ this.l2z_1.n2z_1 = headerEnd;
445
+ this.m2z_1.n2y(nameHash, valueHash, nameStart, nameEnd, valueStart, valueEnd);
446
+ this.g9_1 = 1;
447
+ continue $sm;
448
+ case 5:
449
+ var host = this.m2z_1.g2f(HttpHeaders_getInstance().u2o_1);
450
+ if (!(host == null)) {
451
+ validateHostHeader(host);
452
+ }
453
+
454
+ return this.m2z_1;
455
+ case 6:
456
+ this.h9_1 = 7;
457
+ var tmp_0 = this.j9_1;
458
+ if (tmp_0 instanceof Error) {
459
+ var t = this.j9_1;
460
+ this.m2z_1.x2y();
461
+ throw t;
462
+ } else {
463
+ throw this.j9_1;
464
+ }
465
+
466
+ case 7:
467
+ throw this.j9_1;
468
+ }
469
+ } catch ($p) {
470
+ var e = $p;
471
+ if (this.h9_1 === 7) {
472
+ throw e;
473
+ } else {
474
+ this.g9_1 = this.h9_1;
475
+ this.j9_1 = e;
476
+ }
477
+ }
478
+ while (true);
479
+ };
480
+ var properties_initialized_HttpParser_kt_uedryv;
481
+ function _init_properties_HttpParser_kt__gbdom1() {
482
+ if (!properties_initialized_HttpParser_kt_uedryv) {
483
+ properties_initialized_HttpParser_kt_uedryv = true;
484
+ hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
485
+ versions = Companion_instance.p2z(listOf(['HTTP/1.0', 'HTTP/1.1']));
486
+ }
487
+ }
488
+ function get_CrLf() {
489
+ _init_properties_Multipart_kt__ato98a();
490
+ return CrLf;
491
+ }
492
+ var CrLf;
493
+ function get_PrefixString() {
494
+ _init_properties_Multipart_kt__ato98a();
495
+ return PrefixString;
496
+ }
497
+ var PrefixString;
498
+ function Preamble(body) {
499
+ MultipartEvent.call(this);
500
+ this.q2z_1 = body;
501
+ }
502
+ function MultipartPart(headers, body) {
503
+ MultipartEvent.call(this);
504
+ this.r2z_1 = headers;
505
+ this.s2z_1 = body;
506
+ }
507
+ function Epilogue(body) {
508
+ MultipartEvent.call(this);
509
+ this.t2z_1 = body;
510
+ }
511
+ function MultipartEvent() {
512
+ }
513
+ function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
514
+ maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
515
+ _init_properties_Multipart_kt__ato98a();
516
+ if (!MultiPart_getInstance().k2m(contentType)) {
517
+ throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
518
+ }
519
+ var boundaryByteBuffer = parseBoundaryInternal(contentType);
520
+ var boundaryBytes = ByteString_init_$Create$(boundaryByteBuffer);
521
+ return parseMultipart_0(_this__u8e3s4, boundaryBytes, input, contentLength, maxPartSize);
522
+ }
523
+ function parseBoundaryInternal(contentType) {
524
+ _init_properties_Multipart_kt__ato98a();
525
+ var boundaryParameter = findBoundary(contentType);
526
+ if (boundaryParameter === -1) {
527
+ throw IOException_init_$Create$("Failed to parse multipart: Content-Type's boundary parameter is missing");
528
+ }
529
+ var boundaryStart = boundaryParameter + 9 | 0;
530
+ var boundaryBytes = new Int8Array(74);
531
+ var position = {_v: 0};
532
+ parseBoundaryInternal$put(position, boundaryBytes, 13);
533
+ parseBoundaryInternal$put(position, boundaryBytes, 10);
534
+ parseBoundaryInternal$put(position, boundaryBytes, 45);
535
+ parseBoundaryInternal$put(position, boundaryBytes, 45);
536
+ var state = 0;
537
+ var inductionVariable = boundaryStart;
538
+ var last = charSequenceLength(contentType);
539
+ if (inductionVariable < last)
540
+ loop: do {
541
+ var i = inductionVariable;
542
+ inductionVariable = inductionVariable + 1 | 0;
543
+ var ch = charSequenceGet(contentType, i);
544
+ // Inline function 'kotlin.code' call
545
+ var v = Char__toInt_impl_vasixd(ch) & 65535;
546
+ if ((v & 65535) > 127) {
547
+ throw IOException_init_$Create$('Failed to parse multipart: wrong boundary byte 0x' + toString_0(v, 16) + ' - should be 7bit character');
548
+ }
549
+ switch (state) {
550
+ case 0:
551
+ if (ch !== _Char___init__impl__6a9atx(32))
552
+ if (ch === _Char___init__impl__6a9atx(34)) {
553
+ state = 2;
554
+ } else if (ch === _Char___init__impl__6a9atx(59) || ch === _Char___init__impl__6a9atx(44)) {
555
+ break loop;
556
+ } else {
557
+ state = 1;
558
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
559
+ }
560
+
561
+ break;
562
+ case 1:
563
+ if (ch === _Char___init__impl__6a9atx(32) || ch === _Char___init__impl__6a9atx(44) || ch === _Char___init__impl__6a9atx(59)) {
564
+ break loop;
565
+ } else {
566
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
567
+ }
568
+
569
+ break;
570
+ case 2:
571
+ if (ch === _Char___init__impl__6a9atx(92)) {
572
+ state = 3;
573
+ } else if (ch === _Char___init__impl__6a9atx(34)) {
574
+ break loop;
575
+ } else {
576
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
577
+ }
578
+
579
+ break;
580
+ case 3:
581
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
582
+ state = 2;
583
+ break;
584
+ }
585
+ }
586
+ while (inductionVariable < last);
587
+ if (position._v === 4) {
588
+ throw IOException_init_$Create$('Empty multipart boundary is not allowed');
589
+ }
590
+ return copyOfRange(boundaryBytes, 0, position._v);
591
+ }
592
+ function parseMultipart_0(_this__u8e3s4, boundaryPrefixed, input, totalLength, maxPartSize) {
593
+ _init_properties_Multipart_kt__ato98a();
594
+ return produce(_this__u8e3s4, VOID, VOID, parseMultipart$slambda_0(input, boundaryPrefixed, maxPartSize, totalLength, null));
595
+ }
596
+ function findBoundary(contentType) {
597
+ _init_properties_Multipart_kt__ato98a();
598
+ var state = 0;
599
+ var paramNameCount = 0;
600
+ var inductionVariable = 0;
601
+ var last = charSequenceLength(contentType) - 1 | 0;
602
+ if (inductionVariable <= last)
603
+ do {
604
+ var i = inductionVariable;
605
+ inductionVariable = inductionVariable + 1 | 0;
606
+ var ch = charSequenceGet(contentType, i);
607
+ switch (state) {
608
+ case 0:
609
+ if (ch === _Char___init__impl__6a9atx(59)) {
610
+ state = 1;
611
+ paramNameCount = 0;
612
+ }
613
+
614
+ break;
615
+ case 1:
616
+ if (ch === _Char___init__impl__6a9atx(61)) {
617
+ state = 2;
618
+ } else if (ch === _Char___init__impl__6a9atx(59)) {
619
+ paramNameCount = 0;
620
+ } else if (ch === _Char___init__impl__6a9atx(44)) {
621
+ state = 0;
622
+ } else if (ch !== _Char___init__impl__6a9atx(32))
623
+ if (paramNameCount === 0 && startsWith(contentType, 'boundary=', i, true)) {
624
+ return i;
625
+ } else {
626
+ paramNameCount = paramNameCount + 1 | 0;
627
+ }
628
+
629
+ break;
630
+ case 2:
631
+ if (ch === _Char___init__impl__6a9atx(34))
632
+ state = 3;
633
+ else if (ch === _Char___init__impl__6a9atx(44))
634
+ state = 0;
635
+ else if (ch === _Char___init__impl__6a9atx(59)) {
636
+ state = 1;
637
+ paramNameCount = 0;
638
+ }
639
+
640
+ break;
641
+ case 3:
642
+ if (ch === _Char___init__impl__6a9atx(34)) {
643
+ state = 1;
644
+ paramNameCount = 0;
645
+ } else if (ch === _Char___init__impl__6a9atx(92)) {
646
+ state = 4;
647
+ }
648
+
649
+ break;
650
+ case 4:
651
+ state = 3;
652
+ break;
653
+ }
654
+ }
655
+ while (inductionVariable <= last);
656
+ return -1;
657
+ }
658
+ function parsePreambleImpl(boundary, input, output, limit, $completion) {
659
+ limit = limit === VOID ? new Long(-1, 2147483647) : limit;
660
+ return readUntil(input, boundary, output, limit, true, $completion);
661
+ }
662
+ function parsePartHeadersImpl(input, $completion) {
663
+ var tmp = new $parsePartHeadersImplCOROUTINE$5(input, $completion);
664
+ tmp.i9_1 = Unit_instance;
665
+ tmp.j9_1 = null;
666
+ return tmp.o9();
667
+ }
668
+ function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
669
+ var tmp = new $parsePartBodyImplCOROUTINE$6(boundaryPrefixed, input, output, headers, limit, $completion);
670
+ tmp.i9_1 = Unit_instance;
671
+ tmp.j9_1 = null;
672
+ return tmp.o9();
673
+ }
674
+ function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
675
+ var tmp = new $skipIfFoundReadCountCOROUTINE$7(_this__u8e3s4, prefix, $completion);
676
+ tmp.i9_1 = Unit_instance;
677
+ tmp.j9_1 = null;
678
+ return tmp.o9();
679
+ }
680
+ function throwLimitExceeded(actual, limit) {
681
+ _init_properties_Multipart_kt__ato98a();
682
+ throw IOException_init_$Create$('Multipart content length exceeds limit ' + actual.toString() + ' > ' + limit.toString() + '; ' + "limit is defined using 'formFieldLimit' argument");
683
+ }
684
+ function parseBoundaryInternal$put(position, boundaryBytes, value) {
685
+ if (position._v >= boundaryBytes.length) {
686
+ throw IOException_init_$Create$("Failed to parse multipart: boundary shouldn't be longer than 70 characters");
687
+ }
688
+ var _unary__edvuaz = position._v;
689
+ position._v = _unary__edvuaz + 1 | 0;
690
+ boundaryBytes[_unary__edvuaz] = value;
691
+ }
692
+ function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
693
+ this.p31_1 = $firstBoundary;
694
+ this.q31_1 = $countedInput;
695
+ CoroutineImpl.call(this, resultContinuation);
696
+ }
697
+ protoOf(parseMultipart$slambda$slambda).s31 = function ($this$writer, $completion) {
698
+ var tmp = this.t31($this$writer, $completion);
699
+ tmp.i9_1 = Unit_instance;
700
+ tmp.j9_1 = null;
701
+ return tmp.o9();
702
+ };
703
+ protoOf(parseMultipart$slambda$slambda).ca = function (p1, $completion) {
704
+ return this.s31(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
705
+ };
706
+ protoOf(parseMultipart$slambda$slambda).o9 = function () {
707
+ var suspendResult = this.i9_1;
708
+ $sm: do
709
+ try {
710
+ var tmp = this.g9_1;
711
+ switch (tmp) {
712
+ case 0:
713
+ this.h9_1 = 3;
714
+ this.g9_1 = 1;
715
+ suspendResult = parsePreambleImpl(this.p31_1, this.q31_1, this.r31_1.p1q_1, new Long(8193, 0), this);
716
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
717
+ return suspendResult;
718
+ }
719
+
720
+ continue $sm;
721
+ case 1:
722
+ this.g9_1 = 2;
723
+ suspendResult = this.r31_1.p1q_1.w1j(this);
724
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
725
+ return suspendResult;
726
+ }
727
+
728
+ continue $sm;
729
+ case 2:
730
+ return Unit_instance;
731
+ case 3:
732
+ throw this.j9_1;
733
+ }
734
+ } catch ($p) {
735
+ var e = $p;
736
+ if (this.h9_1 === 3) {
737
+ throw e;
738
+ } else {
739
+ this.g9_1 = this.h9_1;
740
+ this.j9_1 = e;
741
+ }
742
+ }
743
+ while (true);
744
+ };
745
+ protoOf(parseMultipart$slambda$slambda).t31 = function ($this$writer, completion) {
746
+ var i = new parseMultipart$slambda$slambda(this.p31_1, this.q31_1, completion);
747
+ i.r31_1 = $this$writer;
748
+ return i;
749
+ };
750
+ function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
751
+ var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
752
+ var l = function ($this$writer, $completion) {
753
+ return i.s31($this$writer, $completion);
754
+ };
755
+ l.$arity = 1;
756
+ return l;
757
+ }
758
+ function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
759
+ this.c32_1 = $input;
760
+ this.d32_1 = $boundaryPrefixed;
761
+ this.e32_1 = $maxPartSize;
762
+ this.f32_1 = $totalLength;
763
+ CoroutineImpl.call(this, resultContinuation);
764
+ }
765
+ protoOf(parseMultipart$slambda).x32 = function ($this$produce, $completion) {
766
+ var tmp = this.y32($this$produce, $completion);
767
+ tmp.i9_1 = Unit_instance;
768
+ tmp.j9_1 = null;
769
+ return tmp.o9();
770
+ };
771
+ protoOf(parseMultipart$slambda).ca = function (p1, $completion) {
772
+ return this.x32((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
773
+ };
774
+ protoOf(parseMultipart$slambda).o9 = function () {
775
+ var suspendResult = this.i9_1;
776
+ $sm: do
777
+ try {
778
+ var tmp = this.g9_1;
779
+ switch (tmp) {
780
+ case 0:
781
+ this.h9_1 = 23;
782
+ this.h32_1 = counted(this.c32_1);
783
+ this.i32_1 = this.h32_1.z1s();
784
+ this.j32_1 = this.d32_1.y1d(get_PrefixString().s());
785
+ this.g9_1 = 1;
786
+ suspendResult = readRemaining(writer(this.g32_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.j32_1, this.h32_1, null)).n1q_1, this);
787
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
788
+ return suspendResult;
789
+ }
790
+
791
+ continue $sm;
792
+ case 1:
793
+ this.k32_1 = suspendResult;
794
+ if (get_remaining(this.k32_1).e1(new Long(0, 0)) > 0) {
795
+ this.g9_1 = 2;
796
+ suspendResult = this.g32_1.v14(new Preamble(this.k32_1), this);
797
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
798
+ return suspendResult;
799
+ }
800
+ continue $sm;
801
+ } else {
802
+ this.g9_1 = 3;
803
+ continue $sm;
804
+ }
805
+
806
+ case 2:
807
+ this.g9_1 = 3;
808
+ continue $sm;
809
+ case 3:
810
+ this.g9_1 = 4;
811
+ continue $sm;
812
+ case 4:
813
+ if (!this.h32_1.t1j()) {
814
+ this.g9_1 = 5;
815
+ suspendResult = skipIfFound(this.h32_1, get_PrefixString(), this);
816
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
817
+ return suspendResult;
818
+ }
819
+ continue $sm;
820
+ } else {
821
+ this.l32_1 = false;
822
+ this.g9_1 = 6;
823
+ continue $sm;
824
+ }
825
+
826
+ case 5:
827
+ this.m32_1 = suspendResult;
828
+ this.l32_1 = !this.m32_1;
829
+ this.g9_1 = 6;
830
+ continue $sm;
831
+ case 6:
832
+ if (!this.l32_1) {
833
+ this.g9_1 = 13;
834
+ continue $sm;
835
+ }
836
+
837
+ this.g9_1 = 7;
838
+ suspendResult = skipIfFound(this.h32_1, get_CrLf(), this);
839
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
840
+ return suspendResult;
841
+ }
842
+
843
+ continue $sm;
844
+ case 7:
845
+ this.n32_1 = new ByteChannel();
846
+ this.o32_1 = CompletableDeferred();
847
+ this.p32_1 = new MultipartPart(this.o32_1, this.n32_1);
848
+ this.g9_1 = 8;
849
+ suspendResult = this.g32_1.v14(this.p32_1, this);
850
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
851
+ return suspendResult;
852
+ }
853
+
854
+ continue $sm;
855
+ case 8:
856
+ this.q32_1 = null;
857
+ this.h9_1 = 12;
858
+ this.g9_1 = 9;
859
+ suspendResult = parsePartHeadersImpl(this.h32_1, this);
860
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
861
+ return suspendResult;
862
+ }
863
+
864
+ continue $sm;
865
+ case 9:
866
+ this.q32_1 = suspendResult;
867
+ if (!this.o32_1.av(this.q32_1)) {
868
+ this.q32_1.x2y();
869
+ throw CancellationException_init_$Create$('Multipart processing has been cancelled');
870
+ }
871
+
872
+ this.g9_1 = 10;
873
+ suspendResult = parsePartBodyImpl(this.d32_1, this.h32_1, this.n32_1, this.q32_1, this.e32_1, this);
874
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
875
+ return suspendResult;
876
+ }
877
+
878
+ continue $sm;
879
+ case 10:
880
+ this.n32_1.p4();
881
+ this.h9_1 = 23;
882
+ this.g9_1 = 11;
883
+ continue $sm;
884
+ case 11:
885
+ this.h9_1 = 23;
886
+ this.g9_1 = 4;
887
+ continue $sm;
888
+ case 12:
889
+ this.h9_1 = 23;
890
+ var tmp_0 = this.j9_1;
891
+ if (tmp_0 instanceof Error) {
892
+ this.r32_1 = this.j9_1;
893
+ if (this.o32_1.cv(this.r32_1)) {
894
+ var tmp0_safe_receiver = this.q32_1;
895
+ if (tmp0_safe_receiver == null)
896
+ null;
897
+ else {
898
+ tmp0_safe_receiver.x2y();
899
+ }
900
+ }
901
+ close(this.n32_1, this.r32_1);
902
+ throw this.r32_1;
903
+ } else {
904
+ throw this.j9_1;
905
+ }
906
+
907
+ case 13:
908
+ this.g9_1 = 14;
909
+ suspendResult = skipIfFound(this.h32_1, get_CrLf(), this);
910
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
911
+ return suspendResult;
912
+ }
913
+
914
+ continue $sm;
915
+ case 14:
916
+ this.g9_1 = 15;
917
+ suspendResult = skipIfFound(this.h32_1, get_CrLf(), this);
918
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
919
+ return suspendResult;
920
+ }
921
+
922
+ continue $sm;
923
+ case 15:
924
+ if (!(this.f32_1 == null)) {
925
+ this.s32_1 = this.h32_1.z1s().a3(this.i32_1);
926
+ this.t32_1 = this.f32_1.a3(this.s32_1);
927
+ if (this.t32_1.e1(new Long(2147483647, 0)) > 0)
928
+ throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
929
+ if (this.t32_1.e1(new Long(0, 0)) > 0) {
930
+ this.g9_1 = 19;
931
+ suspendResult = readPacket(this.h32_1, this.t32_1.j1(), this);
932
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
933
+ return suspendResult;
934
+ }
935
+ continue $sm;
936
+ } else {
937
+ this.g9_1 = 21;
938
+ continue $sm;
939
+ }
940
+ } else {
941
+ this.g9_1 = 16;
942
+ suspendResult = readRemaining(this.h32_1, this);
943
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
944
+ return suspendResult;
945
+ }
946
+ continue $sm;
947
+ }
948
+
949
+ case 16:
950
+ this.u32_1 = suspendResult;
951
+ if (!this.u32_1.g1e()) {
952
+ this.g9_1 = 17;
953
+ suspendResult = this.g32_1.v14(new Epilogue(this.u32_1), this);
954
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
955
+ return suspendResult;
956
+ }
957
+ continue $sm;
958
+ } else {
959
+ this.g9_1 = 18;
960
+ continue $sm;
961
+ }
962
+
963
+ case 17:
964
+ this.g9_1 = 18;
965
+ continue $sm;
966
+ case 18:
967
+ this.g9_1 = 22;
968
+ continue $sm;
969
+ case 19:
970
+ this.v32_1 = suspendResult;
971
+ this.w32_1 = new Epilogue(this.v32_1);
972
+ this.g9_1 = 20;
973
+ suspendResult = this.g32_1.v14(this.w32_1, this);
974
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
975
+ return suspendResult;
976
+ }
977
+
978
+ continue $sm;
979
+ case 20:
980
+ this.g9_1 = 21;
981
+ continue $sm;
982
+ case 21:
983
+ this.g9_1 = 22;
984
+ continue $sm;
985
+ case 22:
986
+ return Unit_instance;
987
+ case 23:
988
+ throw this.j9_1;
989
+ }
990
+ } catch ($p) {
991
+ var e = $p;
992
+ if (this.h9_1 === 23) {
993
+ throw e;
994
+ } else {
995
+ this.g9_1 = this.h9_1;
996
+ this.j9_1 = e;
997
+ }
998
+ }
999
+ while (true);
1000
+ };
1001
+ protoOf(parseMultipart$slambda).y32 = function ($this$produce, completion) {
1002
+ var i = new parseMultipart$slambda(this.c32_1, this.d32_1, this.e32_1, this.f32_1, completion);
1003
+ i.g32_1 = $this$produce;
1004
+ return i;
1005
+ };
1006
+ function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
1007
+ var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
1008
+ var l = function ($this$produce, $completion) {
1009
+ return i.x32($this$produce, $completion);
1010
+ };
1011
+ l.$arity = 1;
1012
+ return l;
1013
+ }
1014
+ function $parsePartHeadersImplCOROUTINE$5(input, resultContinuation) {
1015
+ CoroutineImpl.call(this, resultContinuation);
1016
+ this.c30_1 = input;
1017
+ }
1018
+ protoOf($parsePartHeadersImplCOROUTINE$5).o9 = function () {
1019
+ var suspendResult = this.i9_1;
1020
+ $sm: do
1021
+ try {
1022
+ var tmp = this.g9_1;
1023
+ switch (tmp) {
1024
+ case 0:
1025
+ this.h9_1 = 3;
1026
+ this.d30_1 = new CharArrayBuilder();
1027
+ this.h9_1 = 2;
1028
+ this.g9_1 = 1;
1029
+ suspendResult = parseHeaders(this.c30_1, this.d30_1, VOID, this);
1030
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1031
+ return suspendResult;
1032
+ }
1033
+
1034
+ continue $sm;
1035
+ case 1:
1036
+ var tmp0_elvis_lhs = suspendResult;
1037
+ var tmp_0;
1038
+ if (tmp0_elvis_lhs == null) {
1039
+ throw EOFException_init_$Create$('Failed to parse multipart headers: unexpected end of stream');
1040
+ } else {
1041
+ tmp_0 = tmp0_elvis_lhs;
1042
+ }
1043
+
1044
+ return tmp_0;
1045
+ case 2:
1046
+ this.h9_1 = 3;
1047
+ var tmp_1 = this.j9_1;
1048
+ if (tmp_1 instanceof Error) {
1049
+ var t = this.j9_1;
1050
+ this.d30_1.x2y();
1051
+ throw t;
1052
+ } else {
1053
+ throw this.j9_1;
1054
+ }
1055
+
1056
+ case 3:
1057
+ throw this.j9_1;
1058
+ }
1059
+ } catch ($p) {
1060
+ var e = $p;
1061
+ if (this.h9_1 === 3) {
1062
+ throw e;
1063
+ } else {
1064
+ this.g9_1 = this.h9_1;
1065
+ this.j9_1 = e;
1066
+ }
1067
+ }
1068
+ while (true);
1069
+ };
1070
+ function $parsePartBodyImplCOROUTINE$6(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
1071
+ CoroutineImpl.call(this, resultContinuation);
1072
+ this.m30_1 = boundaryPrefixed;
1073
+ this.n30_1 = input;
1074
+ this.o30_1 = output;
1075
+ this.p30_1 = headers;
1076
+ this.q30_1 = limit;
1077
+ }
1078
+ protoOf($parsePartBodyImplCOROUTINE$6).o9 = function () {
1079
+ var suspendResult = this.i9_1;
1080
+ $sm: do
1081
+ try {
1082
+ var tmp = this.g9_1;
1083
+ switch (tmp) {
1084
+ case 0:
1085
+ this.h9_1 = 6;
1086
+ var tmp_0 = this;
1087
+ var tmp0_safe_receiver = this.p30_1.g2f('Content-Length');
1088
+ tmp_0.r30_1 = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
1089
+ if (this.r30_1 == null) {
1090
+ this.g9_1 = 3;
1091
+ suspendResult = readUntil(this.n30_1, this.m30_1, this.o30_1, this.q30_1, true, this);
1092
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1093
+ return suspendResult;
1094
+ }
1095
+ continue $sm;
1096
+ } else {
1097
+ if ((new Long(0, 0)).i3(this.q30_1).xh(this.r30_1)) {
1098
+ this.g9_1 = 1;
1099
+ suspendResult = copyTo(this.n30_1, this.o30_1, this.r30_1, this);
1100
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1101
+ return suspendResult;
1102
+ }
1103
+ continue $sm;
1104
+ } else {
1105
+ var tmp_1 = this;
1106
+ throwLimitExceeded(this.r30_1, this.q30_1);
1107
+ }
1108
+ }
1109
+
1110
+ break;
1111
+ case 1:
1112
+ this.t30_1 = suspendResult;
1113
+ this.g9_1 = 2;
1114
+ suspendResult = skipIfFoundReadCount(this.n30_1, this.m30_1, this);
1115
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1116
+ return suspendResult;
1117
+ }
1118
+
1119
+ continue $sm;
1120
+ case 2:
1121
+ this.u30_1 = suspendResult;
1122
+ this.s30_1 = this.t30_1.z2(this.u30_1);
1123
+ this.g9_1 = 4;
1124
+ continue $sm;
1125
+ case 3:
1126
+ this.s30_1 = suspendResult;
1127
+ this.g9_1 = 4;
1128
+ continue $sm;
1129
+ case 4:
1130
+ this.v30_1 = this.s30_1;
1131
+ this.g9_1 = 5;
1132
+ suspendResult = this.o30_1.l1j(this);
1133
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1134
+ return suspendResult;
1135
+ }
1136
+
1137
+ continue $sm;
1138
+ case 5:
1139
+ return this.v30_1;
1140
+ case 6:
1141
+ throw this.j9_1;
1142
+ }
1143
+ } catch ($p) {
1144
+ var e = $p;
1145
+ if (this.h9_1 === 6) {
1146
+ throw e;
1147
+ } else {
1148
+ this.g9_1 = this.h9_1;
1149
+ this.j9_1 = e;
1150
+ }
1151
+ }
1152
+ while (true);
1153
+ };
1154
+ function $skipIfFoundReadCountCOROUTINE$7(_this__u8e3s4, prefix, resultContinuation) {
1155
+ CoroutineImpl.call(this, resultContinuation);
1156
+ this.e31_1 = _this__u8e3s4;
1157
+ this.f31_1 = prefix;
1158
+ }
1159
+ protoOf($skipIfFoundReadCountCOROUTINE$7).o9 = function () {
1160
+ var suspendResult = this.i9_1;
1161
+ $sm: do
1162
+ try {
1163
+ var tmp = this.g9_1;
1164
+ switch (tmp) {
1165
+ case 0:
1166
+ this.h9_1 = 3;
1167
+ this.g9_1 = 1;
1168
+ suspendResult = skipIfFound(this.e31_1, this.f31_1, this);
1169
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1170
+ return suspendResult;
1171
+ }
1172
+
1173
+ continue $sm;
1174
+ case 1:
1175
+ if (suspendResult) {
1176
+ var tmp_0 = this;
1177
+ tmp_0.g31_1 = toLong(this.f31_1.s());
1178
+ this.g9_1 = 2;
1179
+ continue $sm;
1180
+ } else {
1181
+ var tmp_1 = this;
1182
+ tmp_1.g31_1 = new Long(0, 0);
1183
+ this.g9_1 = 2;
1184
+ continue $sm;
1185
+ }
1186
+
1187
+ case 2:
1188
+ return this.g31_1;
1189
+ case 3:
1190
+ throw this.j9_1;
1191
+ }
1192
+ } catch ($p) {
1193
+ var e = $p;
1194
+ if (this.h9_1 === 3) {
1195
+ throw e;
1196
+ } else {
1197
+ this.g9_1 = this.h9_1;
1198
+ this.j9_1 = e;
1199
+ }
1200
+ }
1201
+ while (true);
1202
+ };
1203
+ var properties_initialized_Multipart_kt_wu0sh0;
1204
+ function _init_properties_Multipart_kt__ato98a() {
1205
+ if (!properties_initialized_Multipart_kt_wu0sh0) {
1206
+ properties_initialized_Multipart_kt_wu0sh0 = true;
1207
+ CrLf = ByteString_init_$Create$(toByteArray('\r\n'));
1208
+ PrefixString = ByteString(new Int8Array([45, 45]));
1209
+ }
1210
+ }
1211
+ function build($this, resultList, from, maxLength, idx, length, charAt) {
1212
+ // Inline function 'kotlin.collections.groupBy' call
1213
+ // Inline function 'kotlin.collections.groupByTo' call
1214
+ var destination = LinkedHashMap_init_$Create$();
1215
+ var _iterator__ex2g4s = from.p();
1216
+ while (_iterator__ex2g4s.q()) {
1217
+ var element = _iterator__ex2g4s.r();
1218
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>' call
1219
+ var key = charAt(element, idx);
1220
+ // Inline function 'kotlin.collections.getOrPut' call
1221
+ var value = destination.k2(key);
1222
+ var tmp;
1223
+ if (value == null) {
1224
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
1225
+ var answer = ArrayList_init_$Create$();
1226
+ destination.n2(key, answer);
1227
+ tmp = answer;
1228
+ } else {
1229
+ tmp = value;
1230
+ }
1231
+ var list = tmp;
1232
+ list.k(element);
1233
+ }
1234
+ // Inline function 'kotlin.collections.forEach' call
1235
+ // Inline function 'kotlin.collections.iterator' call
1236
+ var _iterator__ex2g4s_0 = destination.x().p();
1237
+ while (_iterator__ex2g4s_0.q()) {
1238
+ var element_0 = _iterator__ex2g4s_0.r();
1239
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>' call
1240
+ // Inline function 'kotlin.collections.component1' call
1241
+ var ch = element_0.y().l1_1;
1242
+ // Inline function 'kotlin.collections.component2' call
1243
+ var list_0 = element_0.z();
1244
+ var nextIdx = idx + 1 | 0;
1245
+ var children = ArrayList_init_$Create$();
1246
+ var tmp_0 = Companion_instance;
1247
+ // Inline function 'kotlin.collections.filter' call
1248
+ // Inline function 'kotlin.collections.filterTo' call
1249
+ var destination_0 = ArrayList_init_$Create$();
1250
+ var _iterator__ex2g4s_1 = list_0.p();
1251
+ while (_iterator__ex2g4s_1.q()) {
1252
+ var element_1 = _iterator__ex2g4s_1.r();
1253
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>.<anonymous>' call
1254
+ if (length(element_1) > nextIdx) {
1255
+ destination_0.k(element_1);
1256
+ }
1257
+ }
1258
+ build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
1259
+ children.y5();
1260
+ // Inline function 'kotlin.collections.filter' call
1261
+ // Inline function 'kotlin.collections.filterTo' call
1262
+ var destination_1 = ArrayList_init_$Create$();
1263
+ var _iterator__ex2g4s_2 = list_0.p();
1264
+ while (_iterator__ex2g4s_2.q()) {
1265
+ var element_2 = _iterator__ex2g4s_2.r();
1266
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>.<anonymous>' call
1267
+ if (length(element_2) === nextIdx) {
1268
+ destination_1.k(element_2);
1269
+ }
1270
+ }
1271
+ resultList.k(new Node(ch, destination_1, children));
1272
+ }
1273
+ }
1274
+ function AsciiCharTree$Companion$build$lambda(it) {
1275
+ return charSequenceLength(it);
1276
+ }
1277
+ function AsciiCharTree$Companion$build$lambda_0(s, idx) {
1278
+ return new Char(charSequenceGet(s, idx));
1279
+ }
1280
+ function Node(ch, exact, children) {
1281
+ this.z32_1 = ch;
1282
+ this.a33_1 = exact;
1283
+ this.b33_1 = children;
1284
+ var tmp = this;
1285
+ var tmp_0 = 0;
1286
+ // Inline function 'kotlin.arrayOfNulls' call
1287
+ var tmp_1 = fillArrayVal(Array(256), null);
1288
+ while (tmp_0 < 256) {
1289
+ var tmp_2 = tmp_0;
1290
+ var tmp1 = this.b33_1;
1291
+ var tmp$ret$3;
1292
+ $l$block_0: {
1293
+ // Inline function 'kotlin.collections.singleOrNull' call
1294
+ var single = null;
1295
+ var found = false;
1296
+ var _iterator__ex2g4s = tmp1.p();
1297
+ while (_iterator__ex2g4s.q()) {
1298
+ var element = _iterator__ex2g4s.r();
1299
+ // Inline function 'io.ktor.http.cio.internals.Node.array.<anonymous>' call
1300
+ // Inline function 'kotlin.code' call
1301
+ var this_0 = element.z32_1;
1302
+ if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
1303
+ if (found) {
1304
+ tmp$ret$3 = null;
1305
+ break $l$block_0;
1306
+ }
1307
+ single = element;
1308
+ found = true;
1309
+ }
1310
+ }
1311
+ if (!found) {
1312
+ tmp$ret$3 = null;
1313
+ break $l$block_0;
1314
+ }
1315
+ tmp$ret$3 = single;
1316
+ }
1317
+ tmp_1[tmp_2] = tmp$ret$3;
1318
+ tmp_0 = tmp_0 + 1 | 0;
1319
+ }
1320
+ tmp.c33_1 = tmp_1;
1321
+ }
1322
+ function Companion() {
1323
+ }
1324
+ protoOf(Companion).p2z = function (from) {
1325
+ var tmp = AsciiCharTree$Companion$build$lambda;
1326
+ return this.d33(from, tmp, AsciiCharTree$Companion$build$lambda_0);
1327
+ };
1328
+ protoOf(Companion).d33 = function (from, length, charAt) {
1329
+ var tmp$ret$0;
1330
+ $l$block_0: {
1331
+ // Inline function 'kotlin.collections.maxByOrNull' call
1332
+ var iterator = from.p();
1333
+ if (!iterator.q()) {
1334
+ tmp$ret$0 = null;
1335
+ break $l$block_0;
1336
+ }
1337
+ var maxElem = iterator.r();
1338
+ if (!iterator.q()) {
1339
+ tmp$ret$0 = maxElem;
1340
+ break $l$block_0;
1341
+ }
1342
+ var maxValue = length(maxElem);
1343
+ do {
1344
+ var e = iterator.r();
1345
+ var v = length(e);
1346
+ if (compareTo(maxValue, v) < 0) {
1347
+ maxElem = e;
1348
+ maxValue = v;
1349
+ }
1350
+ }
1351
+ while (iterator.q());
1352
+ tmp$ret$0 = maxElem;
1353
+ }
1354
+ var tmp0_safe_receiver = tmp$ret$0;
1355
+ var tmp;
1356
+ if (tmp0_safe_receiver == null) {
1357
+ tmp = null;
1358
+ } else {
1359
+ // Inline function 'kotlin.let' call
1360
+ tmp = length(tmp0_safe_receiver);
1361
+ }
1362
+ var tmp1_elvis_lhs = tmp;
1363
+ var tmp_0;
1364
+ if (tmp1_elvis_lhs == null) {
1365
+ throw NoSuchElementException_init_$Create$('Unable to build char tree from an empty list');
1366
+ } else {
1367
+ tmp_0 = tmp1_elvis_lhs;
1368
+ }
1369
+ var maxLen = tmp_0;
1370
+ var tmp$ret$2;
1371
+ $l$block_2: {
1372
+ // Inline function 'kotlin.collections.any' call
1373
+ var tmp_1;
1374
+ if (isInterface(from, Collection)) {
1375
+ tmp_1 = from.h();
1376
+ } else {
1377
+ tmp_1 = false;
1378
+ }
1379
+ if (tmp_1) {
1380
+ tmp$ret$2 = false;
1381
+ break $l$block_2;
1382
+ }
1383
+ var _iterator__ex2g4s = from.p();
1384
+ while (_iterator__ex2g4s.q()) {
1385
+ var element = _iterator__ex2g4s.r();
1386
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>' call
1387
+ if (length(element) === 0) {
1388
+ tmp$ret$2 = true;
1389
+ break $l$block_2;
1390
+ }
1391
+ }
1392
+ tmp$ret$2 = false;
1393
+ }
1394
+ if (tmp$ret$2)
1395
+ throw IllegalArgumentException_init_$Create$('There should be no empty entries');
1396
+ var root = ArrayList_init_$Create$();
1397
+ build(this, root, from, maxLen, 0, length, charAt);
1398
+ root.y5();
1399
+ return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
1400
+ };
1401
+ var Companion_instance;
1402
+ function Companion_getInstance_0() {
1403
+ return Companion_instance;
1404
+ }
1405
+ function AsciiCharTree(root) {
1406
+ this.e33_1 = root;
1407
+ }
1408
+ function getImpl($this, index) {
1409
+ return bufferForIndex($this, index)[index % ensureNotNull($this.q2y_1).length | 0];
1410
+ }
1411
+ function copy($this, startIndex, endIndex) {
1412
+ if (startIndex === endIndex)
1413
+ return '';
1414
+ var builder = StringBuilder_init_$Create$_0(endIndex - startIndex | 0);
1415
+ var buffer;
1416
+ var base = startIndex - (startIndex % 2048 | 0) | 0;
1417
+ while (base < endIndex) {
1418
+ buffer = bufferForIndex($this, base);
1419
+ // Inline function 'kotlin.comparisons.maxOf' call
1420
+ var b = startIndex - base | 0;
1421
+ var innerStartIndex = Math.max(0, b);
1422
+ // Inline function 'kotlin.comparisons.minOf' call
1423
+ var a = endIndex - base | 0;
1424
+ var innerEndIndex = Math.min(a, 2048);
1425
+ var inductionVariable = innerStartIndex;
1426
+ if (inductionVariable < innerEndIndex)
1427
+ do {
1428
+ var innerIndex = inductionVariable;
1429
+ inductionVariable = inductionVariable + 1 | 0;
1430
+ builder.s8(buffer[innerIndex]);
1431
+ }
1432
+ while (inductionVariable < innerEndIndex);
1433
+ base = base + 2048 | 0;
1434
+ }
1435
+ return builder;
1436
+ }
1437
+ function SubSequenceImpl($outer, start, end) {
1438
+ this.i33_1 = $outer;
1439
+ this.f33_1 = start;
1440
+ this.g33_1 = end;
1441
+ this.h33_1 = null;
1442
+ }
1443
+ protoOf(SubSequenceImpl).a = function () {
1444
+ return this.g33_1 - this.f33_1 | 0;
1445
+ };
1446
+ protoOf(SubSequenceImpl).b = function (index) {
1447
+ var withOffset = index + this.f33_1 | 0;
1448
+ // Inline function 'kotlin.require' call
1449
+ if (!(index >= 0)) {
1450
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.get.<anonymous>' call
1451
+ var message = 'index is negative: ' + index;
1452
+ throw IllegalArgumentException_init_$Create$(toString(message));
1453
+ }
1454
+ // Inline function 'kotlin.require' call
1455
+ if (!(withOffset < this.g33_1)) {
1456
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.get.<anonymous>' call
1457
+ var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
1458
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1459
+ }
1460
+ return getImpl(this.i33_1, withOffset);
1461
+ };
1462
+ protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
1463
+ // Inline function 'kotlin.require' call
1464
+ if (!(startIndex >= 0)) {
1465
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.subSequence.<anonymous>' call
1466
+ var message = 'start is negative: ' + startIndex;
1467
+ throw IllegalArgumentException_init_$Create$(toString(message));
1468
+ }
1469
+ // Inline function 'kotlin.require' call
1470
+ if (!(startIndex <= endIndex)) {
1471
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.subSequence.<anonymous>' call
1472
+ var message_0 = 'start (' + startIndex + ') should be less or equal to end (' + endIndex + ')';
1473
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1474
+ }
1475
+ // Inline function 'kotlin.require' call
1476
+ if (!(endIndex <= (this.g33_1 - this.f33_1 | 0))) {
1477
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.subSequence.<anonymous>' call
1478
+ var message_1 = 'end should be less than length (' + this.a() + ')';
1479
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1480
+ }
1481
+ if (startIndex === endIndex)
1482
+ return '';
1483
+ return new SubSequenceImpl(this.i33_1, this.f33_1 + startIndex | 0, this.f33_1 + endIndex | 0);
1484
+ };
1485
+ protoOf(SubSequenceImpl).toString = function () {
1486
+ var tmp0_elvis_lhs = this.h33_1;
1487
+ var tmp;
1488
+ if (tmp0_elvis_lhs == null) {
1489
+ // Inline function 'kotlin.also' call
1490
+ var this_0 = toString(copy(this.i33_1, this.f33_1, this.g33_1));
1491
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.toString.<anonymous>' call
1492
+ this.h33_1 = this_0;
1493
+ tmp = this_0;
1494
+ } else {
1495
+ tmp = tmp0_elvis_lhs;
1496
+ }
1497
+ return tmp;
1498
+ };
1499
+ protoOf(SubSequenceImpl).equals = function (other) {
1500
+ if (!(!(other == null) ? isCharSequence(other) : false))
1501
+ return false;
1502
+ if (!(charSequenceLength(other) === this.a()))
1503
+ return false;
1504
+ return rangeEqualsImpl(this.i33_1, this.f33_1, other, 0, this.a());
1505
+ };
1506
+ protoOf(SubSequenceImpl).hashCode = function () {
1507
+ var tmp0_safe_receiver = this.h33_1;
1508
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
1509
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this.i33_1, this.f33_1, this.g33_1) : tmp1_elvis_lhs;
1510
+ };
1511
+ function bufferForIndex($this, index) {
1512
+ var list = $this.p2y_1;
1513
+ if (list == null) {
1514
+ if (index >= 2048) {
1515
+ throwSingleBuffer($this, index);
1516
+ }
1517
+ var tmp0_elvis_lhs = $this.q2y_1;
1518
+ var tmp;
1519
+ if (tmp0_elvis_lhs == null) {
1520
+ throwSingleBuffer($this, index);
1521
+ } else {
1522
+ tmp = tmp0_elvis_lhs;
1523
+ }
1524
+ return tmp;
1525
+ }
1526
+ return list.u(index / ensureNotNull($this.q2y_1).length | 0);
1527
+ }
1528
+ function throwSingleBuffer($this, index) {
1529
+ if ($this.s2y_1)
1530
+ throw IllegalStateException_init_$Create$('Buffer is already released');
1531
+ throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
1532
+ }
1533
+ function nonFullBuffer($this) {
1534
+ return $this.t2y_1 === 0 ? appendNewArray($this) : ensureNotNull($this.q2y_1);
1535
+ }
1536
+ function appendNewArray($this) {
1537
+ var newBuffer = $this.o2y_1.r1t();
1538
+ var existing = $this.q2y_1;
1539
+ $this.q2y_1 = newBuffer;
1540
+ $this.t2y_1 = newBuffer.length;
1541
+ $this.s2y_1 = false;
1542
+ if (!(existing == null)) {
1543
+ var tmp0_elvis_lhs = $this.p2y_1;
1544
+ var tmp;
1545
+ if (tmp0_elvis_lhs == null) {
1546
+ // Inline function 'kotlin.also' call
1547
+ var this_0 = ArrayList_init_$Create$();
1548
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.appendNewArray.<anonymous>' call
1549
+ $this.p2y_1 = this_0;
1550
+ this_0.k(existing);
1551
+ tmp = this_0;
1552
+ } else {
1553
+ tmp = tmp0_elvis_lhs;
1554
+ }
1555
+ var list = tmp;
1556
+ list.k(newBuffer);
1557
+ }
1558
+ return newBuffer;
1559
+ }
1560
+ function rangeEqualsImpl($this, start, other, otherStart, length) {
1561
+ var inductionVariable = 0;
1562
+ if (inductionVariable < length)
1563
+ do {
1564
+ var i = inductionVariable;
1565
+ inductionVariable = inductionVariable + 1 | 0;
1566
+ if (!(getImpl($this, start + i | 0) === charSequenceGet(other, otherStart + i | 0)))
1567
+ return false;
1568
+ }
1569
+ while (inductionVariable < length);
1570
+ return true;
1571
+ }
1572
+ function hashCodeImpl($this, start, end) {
1573
+ var hc = 0;
1574
+ var inductionVariable = start;
1575
+ if (inductionVariable < end)
1576
+ do {
1577
+ var i = inductionVariable;
1578
+ inductionVariable = inductionVariable + 1 | 0;
1579
+ var tmp = imul(31, hc);
1580
+ // Inline function 'kotlin.code' call
1581
+ var this_0 = getImpl($this, i);
1582
+ hc = tmp + Char__toInt_impl_vasixd(this_0) | 0;
1583
+ }
1584
+ while (inductionVariable < end);
1585
+ return hc;
1586
+ }
1587
+ function currentPosition($this) {
1588
+ return ensureNotNull($this.q2y_1).length - $this.t2y_1 | 0;
1589
+ }
1590
+ function CharArrayBuilder(pool) {
1591
+ pool = pool === VOID ? get_CharArrayPool() : pool;
1592
+ this.o2y_1 = pool;
1593
+ this.p2y_1 = null;
1594
+ this.q2y_1 = null;
1595
+ this.r2y_1 = null;
1596
+ this.s2y_1 = false;
1597
+ this.t2y_1 = 0;
1598
+ this.u2y_1 = 0;
1599
+ }
1600
+ protoOf(CharArrayBuilder).a = function () {
1601
+ return this.u2y_1;
1602
+ };
1603
+ protoOf(CharArrayBuilder).b = function (index) {
1604
+ // Inline function 'kotlin.require' call
1605
+ if (!(index >= 0)) {
1606
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.get.<anonymous>' call
1607
+ var message = 'index is negative: ' + index;
1608
+ throw IllegalArgumentException_init_$Create$(toString(message));
1609
+ }
1610
+ // Inline function 'kotlin.require' call
1611
+ if (!(index < this.u2y_1)) {
1612
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.get.<anonymous>' call
1613
+ var message_0 = 'index ' + index + ' is not in range [0, ' + this.u2y_1 + ')';
1614
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1615
+ }
1616
+ return getImpl(this, index);
1617
+ };
1618
+ protoOf(CharArrayBuilder).c = function (startIndex, endIndex) {
1619
+ // Inline function 'kotlin.require' call
1620
+ if (!(startIndex <= endIndex)) {
1621
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.subSequence.<anonymous>' call
1622
+ var message = 'startIndex (' + startIndex + ') should be less or equal to endIndex (' + endIndex + ')';
1623
+ throw IllegalArgumentException_init_$Create$(toString(message));
1624
+ }
1625
+ // Inline function 'kotlin.require' call
1626
+ if (!(startIndex >= 0)) {
1627
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.subSequence.<anonymous>' call
1628
+ var message_0 = 'startIndex is negative: ' + startIndex;
1629
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1630
+ }
1631
+ // Inline function 'kotlin.require' call
1632
+ if (!(endIndex <= this.u2y_1)) {
1633
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.subSequence.<anonymous>' call
1634
+ var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.u2y_1 + ')';
1635
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1636
+ }
1637
+ return new SubSequenceImpl(this, startIndex, endIndex);
1638
+ };
1639
+ protoOf(CharArrayBuilder).toString = function () {
1640
+ var tmp0_elvis_lhs = this.r2y_1;
1641
+ var tmp;
1642
+ if (tmp0_elvis_lhs == null) {
1643
+ // Inline function 'kotlin.also' call
1644
+ var this_0 = toString(copy(this, 0, this.u2y_1));
1645
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.toString.<anonymous>' call
1646
+ this.r2y_1 = this_0;
1647
+ tmp = this_0;
1648
+ } else {
1649
+ tmp = tmp0_elvis_lhs;
1650
+ }
1651
+ return tmp;
1652
+ };
1653
+ protoOf(CharArrayBuilder).equals = function (other) {
1654
+ if (!(!(other == null) ? isCharSequence(other) : false))
1655
+ return false;
1656
+ if (!(this.u2y_1 === charSequenceLength(other)))
1657
+ return false;
1658
+ return rangeEqualsImpl(this, 0, other, 0, this.u2y_1);
1659
+ };
1660
+ protoOf(CharArrayBuilder).hashCode = function () {
1661
+ var tmp0_safe_receiver = this.r2y_1;
1662
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
1663
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.u2y_1) : tmp1_elvis_lhs;
1664
+ };
1665
+ protoOf(CharArrayBuilder).s8 = function (value) {
1666
+ nonFullBuffer(this)[ensureNotNull(this.q2y_1).length - this.t2y_1 | 0] = value;
1667
+ this.r2y_1 = null;
1668
+ this.t2y_1 = this.t2y_1 - 1 | 0;
1669
+ this.u2y_1 = this.u2y_1 + 1 | 0;
1670
+ return this;
1671
+ };
1672
+ protoOf(CharArrayBuilder).ad = function (value, startIndex, endIndex) {
1673
+ if (value == null)
1674
+ return this;
1675
+ var current = startIndex;
1676
+ while (current < endIndex) {
1677
+ var buffer = nonFullBuffer(this);
1678
+ var offset = buffer.length - this.t2y_1 | 0;
1679
+ var tmp0 = endIndex - current | 0;
1680
+ // Inline function 'kotlin.math.min' call
1681
+ var b = this.t2y_1;
1682
+ var bytesToCopy = Math.min(tmp0, b);
1683
+ var inductionVariable = 0;
1684
+ if (inductionVariable < bytesToCopy)
1685
+ do {
1686
+ var i = inductionVariable;
1687
+ inductionVariable = inductionVariable + 1 | 0;
1688
+ buffer[offset + i | 0] = charSequenceGet(value, current + i | 0);
1689
+ }
1690
+ while (inductionVariable < bytesToCopy);
1691
+ current = current + bytesToCopy | 0;
1692
+ this.t2y_1 = this.t2y_1 - bytesToCopy | 0;
1693
+ }
1694
+ this.r2y_1 = null;
1695
+ this.u2y_1 = this.u2y_1 + (endIndex - startIndex | 0) | 0;
1696
+ return this;
1697
+ };
1698
+ protoOf(CharArrayBuilder).l = function (value) {
1699
+ if (value == null)
1700
+ return this;
1701
+ return this.ad(value, 0, charSequenceLength(value));
1702
+ };
1703
+ protoOf(CharArrayBuilder).x2y = function () {
1704
+ var list = this.p2y_1;
1705
+ if (!(list == null)) {
1706
+ this.q2y_1 = null;
1707
+ var inductionVariable = 0;
1708
+ var last = list.s();
1709
+ if (inductionVariable < last)
1710
+ do {
1711
+ var i = inductionVariable;
1712
+ inductionVariable = inductionVariable + 1 | 0;
1713
+ this.o2y_1.s1t(list.u(i));
1714
+ }
1715
+ while (inductionVariable < last);
1716
+ } else {
1717
+ var tmp0_safe_receiver = this.q2y_1;
1718
+ if (tmp0_safe_receiver == null)
1719
+ null;
1720
+ else {
1721
+ // Inline function 'kotlin.let' call
1722
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.release.<anonymous>' call
1723
+ this.o2y_1.s1t(tmp0_safe_receiver);
1724
+ }
1725
+ this.q2y_1 = null;
1726
+ }
1727
+ this.s2y_1 = true;
1728
+ this.p2y_1 = null;
1729
+ this.r2y_1 = null;
1730
+ this.u2y_1 = 0;
1731
+ this.t2y_1 = 0;
1732
+ };
1733
+ function get_CharArrayPool() {
1734
+ _init_properties_CharArrayPool_kt__u4nq0d();
1735
+ return CharArrayPool;
1736
+ }
1737
+ var CharArrayPool;
1738
+ function CharArrayPool$1() {
1739
+ NoPoolImpl.call(this);
1740
+ }
1741
+ protoOf(CharArrayPool$1).r1t = function () {
1742
+ return charArray(2048);
1743
+ };
1744
+ function CharArrayPool$2() {
1745
+ DefaultPool.call(this, 4096);
1746
+ }
1747
+ protoOf(CharArrayPool$2).k1t = function () {
1748
+ return charArray(2048);
1749
+ };
1750
+ var properties_initialized_CharArrayPool_kt_aq0u0f;
1751
+ function _init_properties_CharArrayPool_kt__u4nq0d() {
1752
+ if (!properties_initialized_CharArrayPool_kt_aq0u0f) {
1753
+ properties_initialized_CharArrayPool_kt_aq0u0f = true;
1754
+ var tmp;
1755
+ if (isPoolingDisabled()) {
1756
+ tmp = new CharArrayPool$1();
1757
+ } else {
1758
+ tmp = new CharArrayPool$2();
1759
+ }
1760
+ CharArrayPool = tmp;
1761
+ }
1762
+ }
1763
+ var DefaultHttpMethods;
1764
+ var HexTable;
1765
+ var HexLetterTable;
1766
+ function parseDecLong(_this__u8e3s4) {
1767
+ _init_properties_Chars_kt__d3i39x();
1768
+ var length = charSequenceLength(_this__u8e3s4);
1769
+ if (length > 19) {
1770
+ numberFormatException(_this__u8e3s4);
1771
+ }
1772
+ if (length === 19)
1773
+ return parseDecLongWithCheck(_this__u8e3s4);
1774
+ var result = new Long(0, 0);
1775
+ var inductionVariable = 0;
1776
+ if (inductionVariable < length)
1777
+ do {
1778
+ var i = inductionVariable;
1779
+ inductionVariable = inductionVariable + 1 | 0;
1780
+ // Inline function 'kotlin.code' call
1781
+ var this_0 = charSequenceGet(_this__u8e3s4, i);
1782
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1783
+ var digit = toLong(tmp$ret$0).a3(new Long(48, 0));
1784
+ if (digit.e1(new Long(0, 0)) < 0 || digit.e1(new Long(9, 0)) > 0) {
1785
+ numberFormatException_0(_this__u8e3s4, i);
1786
+ }
1787
+ result = result.j3(3).z2(result.j3(1)).z2(digit);
1788
+ }
1789
+ while (inductionVariable < length);
1790
+ return result;
1791
+ }
1792
+ function hashCodeLowerCase(_this__u8e3s4, start, end) {
1793
+ start = start === VOID ? 0 : start;
1794
+ end = end === VOID ? charSequenceLength(_this__u8e3s4) : end;
1795
+ _init_properties_Chars_kt__d3i39x();
1796
+ var hashCode = 0;
1797
+ var inductionVariable = start;
1798
+ if (inductionVariable < end)
1799
+ do {
1800
+ var pos = inductionVariable;
1801
+ inductionVariable = inductionVariable + 1 | 0;
1802
+ // Inline function 'kotlin.code' call
1803
+ var this_0 = charSequenceGet(_this__u8e3s4, pos);
1804
+ // Inline function 'io.ktor.http.cio.internals.toLowerCase' call
1805
+ var this_1 = Char__toInt_impl_vasixd(this_0);
1806
+ var tmp;
1807
+ // Inline function 'kotlin.code' call
1808
+ var this_2 = _Char___init__impl__6a9atx(65);
1809
+ var containsLower = Char__toInt_impl_vasixd(this_2);
1810
+ var tmp_0;
1811
+ // Inline function 'kotlin.code' call
1812
+ var this_3 = _Char___init__impl__6a9atx(90);
1813
+ if (this_1 <= Char__toInt_impl_vasixd(this_3)) {
1814
+ tmp_0 = containsLower <= this_1;
1815
+ } else {
1816
+ tmp_0 = false;
1817
+ }
1818
+ if (tmp_0) {
1819
+ // Inline function 'kotlin.code' call
1820
+ var this_4 = _Char___init__impl__6a9atx(97);
1821
+ var tmp_1 = Char__toInt_impl_vasixd(this_4);
1822
+ // Inline function 'kotlin.code' call
1823
+ var this_5 = _Char___init__impl__6a9atx(65);
1824
+ tmp = tmp_1 + (this_1 - Char__toInt_impl_vasixd(this_5) | 0) | 0;
1825
+ } else {
1826
+ tmp = this_1;
1827
+ }
1828
+ var v = tmp;
1829
+ hashCode = imul(31, hashCode) + v | 0;
1830
+ }
1831
+ while (inductionVariable < end);
1832
+ return hashCode;
1833
+ }
1834
+ function numberFormatException(cs) {
1835
+ _init_properties_Chars_kt__d3i39x();
1836
+ throw NumberFormatException_init_$Create$('Invalid number ' + toString(cs) + ': too large for Long type');
1837
+ }
1838
+ function parseDecLongWithCheck(_this__u8e3s4) {
1839
+ _init_properties_Chars_kt__d3i39x();
1840
+ var result = new Long(0, 0);
1841
+ var inductionVariable = 0;
1842
+ var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
1843
+ if (inductionVariable <= last)
1844
+ do {
1845
+ var i = inductionVariable;
1846
+ inductionVariable = inductionVariable + 1 | 0;
1847
+ // Inline function 'kotlin.code' call
1848
+ var this_0 = charSequenceGet(_this__u8e3s4, i);
1849
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1850
+ var digit = toLong(tmp$ret$0).a3(new Long(48, 0));
1851
+ if (digit.e1(new Long(0, 0)) < 0 || digit.e1(new Long(9, 0)) > 0) {
1852
+ numberFormatException_0(_this__u8e3s4, i);
1853
+ }
1854
+ result = result.j3(3).z2(result.j3(1)).z2(digit);
1855
+ if (result.e1(new Long(0, 0)) < 0) {
1856
+ numberFormatException(_this__u8e3s4);
1857
+ }
1858
+ }
1859
+ while (inductionVariable <= last);
1860
+ return result;
1861
+ }
1862
+ function numberFormatException_0(cs, idx) {
1863
+ _init_properties_Chars_kt__d3i39x();
1864
+ throw NumberFormatException_init_$Create$('Invalid number: ' + toString(cs) + ', wrong digit: ' + toString_1(charSequenceGet(cs, idx)) + ' at position ' + idx);
1865
+ }
1866
+ function DefaultHttpMethods$lambda(it) {
1867
+ _init_properties_Chars_kt__d3i39x();
1868
+ return it.c2s_1.length;
1869
+ }
1870
+ function DefaultHttpMethods$lambda_0(m, idx) {
1871
+ _init_properties_Chars_kt__d3i39x();
1872
+ return new Char(charSequenceGet(m.c2s_1, idx));
1873
+ }
1874
+ var properties_initialized_Chars_kt_phjfhp;
1875
+ function _init_properties_Chars_kt__d3i39x() {
1876
+ if (!properties_initialized_Chars_kt_phjfhp) {
1877
+ properties_initialized_Chars_kt_phjfhp = true;
1878
+ var tmp = Companion_instance;
1879
+ var tmp_0 = Companion_getInstance().b2s_1;
1880
+ var tmp_1 = DefaultHttpMethods$lambda;
1881
+ DefaultHttpMethods = tmp.d33(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
1882
+ // Inline function 'kotlin.collections.map' call
1883
+ var this_0 = numberRangeToNumber(0, 255);
1884
+ // Inline function 'kotlin.collections.mapTo' call
1885
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1886
+ var inductionVariable = this_0.f1_1;
1887
+ var last = this_0.g1_1;
1888
+ if (inductionVariable <= last)
1889
+ do {
1890
+ var item = inductionVariable;
1891
+ inductionVariable = inductionVariable + 1 | 0;
1892
+ // Inline function 'io.ktor.http.cio.internals.HexTable.<anonymous>' call
1893
+ var v = item;
1894
+ var tmp_2;
1895
+ if (48 <= v ? v <= 57 : false) {
1896
+ tmp_2 = numberToLong(v).a3(new Long(48, 0));
1897
+ } else {
1898
+ var tmp_3;
1899
+ var tmp_4 = toLong(v);
1900
+ // Inline function 'kotlin.code' call
1901
+ var this_1 = _Char___init__impl__6a9atx(97);
1902
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_1);
1903
+ if (tmp_4.e1(toLong(tmp$ret$0)) >= 0) {
1904
+ var tmp_5 = toLong(v);
1905
+ // Inline function 'kotlin.code' call
1906
+ var this_2 = _Char___init__impl__6a9atx(102);
1907
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_2);
1908
+ tmp_3 = tmp_5.e1(toLong(tmp$ret$1)) <= 0;
1909
+ } else {
1910
+ tmp_3 = false;
1911
+ }
1912
+ if (tmp_3) {
1913
+ // Inline function 'kotlin.code' call
1914
+ var this_3 = _Char___init__impl__6a9atx(97);
1915
+ var tmp$ret$2 = Char__toInt_impl_vasixd(this_3);
1916
+ // Inline function 'kotlin.Long.plus' call
1917
+ tmp_2 = numberToLong(v).a3(toLong(tmp$ret$2)).z2(toLong(10));
1918
+ } else {
1919
+ var tmp_6;
1920
+ var tmp_7 = toLong(v);
1921
+ // Inline function 'kotlin.code' call
1922
+ var this_4 = _Char___init__impl__6a9atx(65);
1923
+ var tmp$ret$4 = Char__toInt_impl_vasixd(this_4);
1924
+ if (tmp_7.e1(toLong(tmp$ret$4)) >= 0) {
1925
+ var tmp_8 = toLong(v);
1926
+ // Inline function 'kotlin.code' call
1927
+ var this_5 = _Char___init__impl__6a9atx(70);
1928
+ var tmp$ret$5 = Char__toInt_impl_vasixd(this_5);
1929
+ tmp_6 = tmp_8.e1(toLong(tmp$ret$5)) <= 0;
1930
+ } else {
1931
+ tmp_6 = false;
1932
+ }
1933
+ if (tmp_6) {
1934
+ // Inline function 'kotlin.code' call
1935
+ var this_6 = _Char___init__impl__6a9atx(65);
1936
+ var tmp$ret$6 = Char__toInt_impl_vasixd(this_6);
1937
+ // Inline function 'kotlin.Long.plus' call
1938
+ tmp_2 = numberToLong(v).a3(toLong(tmp$ret$6)).z2(toLong(10));
1939
+ } else {
1940
+ tmp_2 = new Long(-1, -1);
1941
+ }
1942
+ }
1943
+ }
1944
+ var tmp$ret$8 = tmp_2;
1945
+ destination.k(tmp$ret$8);
1946
+ }
1947
+ while (!(item === last));
1948
+ HexTable = toLongArray(destination);
1949
+ // Inline function 'kotlin.collections.map' call
1950
+ var this_7 = numberRangeToNumber(0, 15);
1951
+ // Inline function 'kotlin.collections.mapTo' call
1952
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
1953
+ var inductionVariable_0 = this_7.f1_1;
1954
+ var last_0 = this_7.g1_1;
1955
+ if (inductionVariable_0 <= last_0)
1956
+ do {
1957
+ var item_0 = inductionVariable_0;
1958
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1959
+ // Inline function 'io.ktor.http.cio.internals.HexLetterTable.<anonymous>' call
1960
+ var it = item_0;
1961
+ var tmp_9;
1962
+ if (it < 10) {
1963
+ tmp_9 = toByte(48 + it | 0);
1964
+ } else {
1965
+ // Inline function 'kotlin.code' call
1966
+ var this_8 = Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(97), it), 10);
1967
+ var tmp$ret$0_0 = Char__toInt_impl_vasixd(this_8);
1968
+ tmp_9 = toByte(tmp$ret$0_0);
1969
+ }
1970
+ var tmp$ret$1_0 = tmp_9;
1971
+ destination_0.k(tmp$ret$1_0);
1972
+ }
1973
+ while (!(item_0 === last_0));
1974
+ HexLetterTable = toByteArray_0(destination_0);
1975
+ }
1976
+ }
1977
+ function UnsupportedMediaTypeExceptionCIO(message) {
1978
+ IOException_init_$Init$(message, this);
1979
+ captureStack(this, UnsupportedMediaTypeExceptionCIO);
1980
+ }
1981
+ function MutableRange(start, end) {
1982
+ this.n2z_1 = start;
1983
+ this.o2z_1 = end;
1984
+ }
1985
+ protoOf(MutableRange).toString = function () {
1986
+ return 'MutableRange(start=' + this.n2z_1 + ', end=' + this.o2z_1 + ')';
1987
+ };
1988
+ function skipSpacesAndHorizontalTabs(text, start, end) {
1989
+ var index = start;
1990
+ $l$loop: while (index < end) {
1991
+ var ch = text.b(index);
1992
+ if (!isWhitespace(ch) && !(ch === _Char___init__impl__6a9atx(9)))
1993
+ break $l$loop;
1994
+ index = index + 1 | 0;
1995
+ }
1996
+ return index;
1997
+ }
1998
+ function isPoolingDisabled() {
1999
+ return false;
2000
+ }
2001
+ //region block: init
2002
+ Companion_instance = new Companion();
2003
+ //endregion
2004
+ //region block: exports
2005
+ _.$_$ = _.$_$ || {};
2006
+ _.$_$.a = CIOMultipartDataBase;
2007
+ //endregion
2008
+ return _;
2009
+ }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-io.js'), require('./kotlinx-io-kotlinx-io-bytestring.js'), require('./kotlinx-io-kotlinx-io-core.js')));