@godaan/shared 1.0.0-SNAPSHOT-202512150300 → 1.0.0-SNAPSHOT-202512150737

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 (32) hide show
  1. package/kotlin/compose-multiplatform-core-compose-foundation-foundation.js +1 -1
  2. package/kotlin/compose-multiplatform-core-compose-runtime-runtime.js +1 -1
  3. package/kotlin/godaan-backend-shared.d.ts +1 -0
  4. package/kotlin/godaan-backend-shared.js +84 -4
  5. package/kotlin/godaan-backend-shared.js.map +1 -1
  6. package/kotlin/kotlin-kotlin-stdlib.js +9554 -76
  7. package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
  8. package/kotlin/kotlinx-atomicfu.js +190 -6
  9. package/kotlin/kotlinx-atomicfu.js.map +1 -1
  10. package/kotlin/kotlinx-coroutines-core.js +8162 -5
  11. package/kotlin/kotlinx-coroutines-core.js.map +1 -1
  12. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +204 -5
  13. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
  14. package/kotlin/kotlinx-io-kotlinx-io-core.js +2019 -5
  15. package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -1
  16. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +772 -5
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  18. package/kotlin/ktor-ktor-client-core.js +8305 -26
  19. package/kotlin/ktor-ktor-client-core.js.map +1 -1
  20. package/kotlin/ktor-ktor-events.js +84 -5
  21. package/kotlin/ktor-ktor-events.js.map +1 -1
  22. package/kotlin/ktor-ktor-http-cio.js +2268 -5
  23. package/kotlin/ktor-ktor-http-cio.js.map +1 -1
  24. package/kotlin/ktor-ktor-http.js +3026 -5
  25. package/kotlin/ktor-ktor-http.js.map +1 -1
  26. package/kotlin/ktor-ktor-io.js +3159 -5
  27. package/kotlin/ktor-ktor-io.js.map +1 -1
  28. package/kotlin/ktor-ktor-utils.js +2355 -5
  29. package/kotlin/ktor-ktor-utils.js.map +1 -1
  30. package/kotlin/ktor-ktor-websockets.js +437 -5
  31. package/kotlin/ktor-ktor-websockets.js.map +1 -1
  32. package/package.json +1 -1
@@ -1,13 +1,3167 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-coroutines-core.js', './kotlinx-io-kotlinx-io-core.js', './kotlinx-atomicfu.js', './kotlinx-io-kotlinx-io-bytestring.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports);
6
- else
7
- globalThis['ktor-ktor-io'] = factory(typeof globalThis['ktor-ktor-io'] === 'undefined' ? {} : globalThis['ktor-ktor-io']);
8
- }(function (_) {
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-bytestring.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'ktor-ktor-io'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-io'.");
9
+ }
10
+ if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'ktor-ktor-io'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-io'.");
12
+ }
13
+ if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
14
+ throw new Error("Error loading module 'ktor-ktor-io'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'ktor-ktor-io'.");
15
+ }
16
+ if (typeof globalThis['kotlinx-atomicfu'] === 'undefined') {
17
+ throw new Error("Error loading module 'ktor-ktor-io'. Its dependency 'kotlinx-atomicfu' was not found. Please, check whether 'kotlinx-atomicfu' is loaded prior to 'ktor-ktor-io'.");
18
+ }
19
+ if (typeof globalThis['kotlinx-io-kotlinx-io-bytestring'] === 'undefined') {
20
+ throw new Error("Error loading module 'ktor-ktor-io'. Its dependency 'kotlinx-io-kotlinx-io-bytestring' was not found. Please, check whether 'kotlinx-io-kotlinx-io-bytestring' is loaded prior to 'ktor-ktor-io'.");
21
+ }
22
+ globalThis['ktor-ktor-io'] = factory(typeof globalThis['ktor-ktor-io'] === 'undefined' ? {} : globalThis['ktor-ktor-io'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-coroutines-core'], globalThis['kotlinx-io-kotlinx-io-core'], globalThis['kotlinx-atomicfu'], globalThis['kotlinx-io-kotlinx-io-bytestring']);
23
+ }
24
+ }(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring) {
9
25
  'use strict';
26
+ //region block: imports
27
+ var Companion_instance = kotlin_kotlin.$_$.j2;
28
+ var Unit_instance = kotlin_kotlin.$_$.k2;
29
+ var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.z1;
30
+ var protoOf = kotlin_kotlin.$_$.g7;
31
+ var initMetadataForCompanion = kotlin_kotlin.$_$.r6;
32
+ var initMetadataForObject = kotlin_kotlin.$_$.w6;
33
+ var toString = kotlin_kotlin.$_$.ma;
34
+ var hashCode = kotlin_kotlin.$_$.p6;
35
+ var equals = kotlin_kotlin.$_$.k6;
36
+ var initMetadataForClass = kotlin_kotlin.$_$.q6;
37
+ var createFailure = kotlin_kotlin.$_$.ea;
38
+ var Result = kotlin_kotlin.$_$.w9;
39
+ var initMetadataForInterface = kotlin_kotlin.$_$.u6;
40
+ var toString_0 = kotlin_kotlin.$_$.g9;
41
+ var newThrowable = kotlin_kotlin.$_$.c7;
42
+ var stackTraceToString = kotlin_kotlin.$_$.ka;
43
+ var VOID = kotlin_kotlin.$_$.a;
44
+ var isInterface = kotlin_kotlin.$_$.a7;
45
+ var CoroutineImpl = kotlin_kotlin.$_$.g5;
46
+ var fromInt = kotlin_kotlin.$_$.q5;
47
+ var compare = kotlin_kotlin.$_$.m5;
48
+ var numberToLong = kotlin_kotlin.$_$.t5;
49
+ var add = kotlin_kotlin.$_$.k5;
50
+ var intercepted = kotlin_kotlin.$_$.t4;
51
+ var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
52
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ja;
53
+ var returnIfSuspended = kotlin_kotlin.$_$.d;
54
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q4;
55
+ var Long = kotlin_kotlin.$_$.u9;
56
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.s6;
57
+ var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
58
+ var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
59
+ var convertToInt = kotlin_kotlin.$_$.n5;
60
+ var IllegalStateException = kotlin_kotlin.$_$.t9;
61
+ var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.f1;
62
+ var captureStack = kotlin_kotlin.$_$.b6;
63
+ var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
64
+ var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
65
+ var replace = kotlin_kotlin.$_$.r8;
66
+ var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
67
+ var THROW_CCE = kotlin_kotlin.$_$.y9;
68
+ var equalsLong = kotlin_kotlin.$_$.p5;
69
+ var get_ONE = kotlin_kotlin.$_$.j5;
70
+ var toString_1 = kotlin_kotlin.$_$.j7;
71
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
72
+ var subtract = kotlin_kotlin.$_$.w5;
73
+ var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
74
+ var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
75
+ var closeFinally = kotlin_kotlin.$_$.da;
76
+ var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
77
+ var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.g2;
78
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
79
+ var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
80
+ var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
81
+ var Continuation = kotlin_kotlin.$_$.a5;
82
+ var initMetadataForFunctionReference = kotlin_kotlin.$_$.t6;
83
+ var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
84
+ var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
85
+ var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
86
+ var initMetadataForLambda = kotlin_kotlin.$_$.v6;
87
+ var CancellationException_init_$Create$ = kotlin_kotlin.$_$.p;
88
+ var CancellationException = kotlin_kotlin.$_$.p4;
89
+ var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
90
+ var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
91
+ var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
92
+ var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
93
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
94
+ var listOf = kotlin_kotlin.$_$.q3;
95
+ var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
96
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.r;
97
+ var charSequenceLength = kotlin_kotlin.$_$.g6;
98
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
99
+ var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
100
+ var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
101
+ var encodeToByteArray = kotlin_kotlin.$_$.f8;
102
+ var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
103
+ var AutoCloseable = kotlin_kotlin.$_$.k9;
104
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r1;
105
+ var replace_0 = kotlin_kotlin.$_$.s8;
106
+ var getStringHashCode = kotlin_kotlin.$_$.o6;
107
+ var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
108
+ var charSequenceSubSequence = kotlin_kotlin.$_$.h6;
109
+ var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
110
+ var isCharSequence = kotlin_kotlin.$_$.y6;
111
+ var trim = kotlin_kotlin.$_$.j9;
112
+ var toByte = kotlin_kotlin.$_$.h7;
113
+ var decodeToString_0 = kotlin_kotlin.$_$.d8;
114
+ var setOf = kotlin_kotlin.$_$.a4;
115
+ var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
116
+ var charSequenceGet = kotlin_kotlin.$_$.f6;
117
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.x1;
118
+ //endregion
10
119
  //region block: pre-declaration
120
+ initMetadataForCompanion(Companion);
121
+ initMetadataForObject(Empty, 'Empty');
122
+ initMetadataForClass(Closed, 'Closed');
123
+ function resume() {
124
+ return this.w12().n7(Companion_getInstance().t12_1);
125
+ }
126
+ function resume_0(throwable) {
127
+ var tmp = this.w12();
128
+ var tmp_0;
129
+ if (throwable == null) {
130
+ tmp_0 = null;
131
+ } else {
132
+ // Inline function 'kotlin.let' call
133
+ // Inline function 'kotlin.Companion.failure' call
134
+ var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(throwable));
135
+ tmp_0 = new Result(tmp$ret$2);
136
+ }
137
+ var tmp1_elvis_lhs = tmp_0;
138
+ return tmp.n7(tmp1_elvis_lhs == null ? Companion_getInstance().t12_1 : tmp1_elvis_lhs.xf_1);
139
+ }
140
+ initMetadataForInterface(Task, 'Task');
141
+ initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
142
+ initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
143
+ initMetadataForCoroutine($awaitContentCOROUTINE$, CoroutineImpl);
144
+ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
145
+ initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
146
+ function awaitContent$default(min, $completion, $super) {
147
+ min = min === VOID ? 1 : min;
148
+ return $super === VOID ? this.d15(min, $completion) : $super.d15.call(this, min, $completion);
149
+ }
150
+ initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
151
+ function get_autoFlush() {
152
+ return false;
153
+ }
154
+ initMetadataForInterface(ByteWriteChannel, 'ByteWriteChannel', VOID, VOID, VOID, [0]);
155
+ initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1, ByteWriteChannel], [1, 0]);
156
+ initMetadataForClass(ConcurrentIOException, 'ConcurrentIOException', VOID, IllegalStateException);
157
+ initMetadataForCoroutine($findNextCOROUTINE$, CoroutineImpl);
158
+ initMetadataForCoroutine($advanceToNextPotentialMatchCOROUTINE$, CoroutineImpl);
159
+ initMetadataForCoroutine($checkFullMatchCOROUTINE$, CoroutineImpl);
160
+ initMetadataForClass(ByteChannelScanner, 'ByteChannelScanner', VOID, VOID, VOID, [1, 0]);
161
+ initMetadataForClass(ByteReadChannel$Companion$Empty$1, VOID, VOID, VOID, [ByteReadChannel_1], [1]);
162
+ initMetadataForCompanion(Companion_0);
163
+ initMetadataForCoroutine($readRemainingCOROUTINE$, CoroutineImpl);
164
+ initMetadataForCoroutine($discardCOROUTINE$, CoroutineImpl);
165
+ initMetadataForCoroutine($readAvailableCOROUTINE$, CoroutineImpl);
166
+ initMetadataForCoroutine($toByteArrayCOROUTINE$, CoroutineImpl);
167
+ initMetadataForCoroutine($copyToCOROUTINE$, CoroutineImpl);
168
+ initMetadataForCoroutine($skipIfFoundCOROUTINE$, CoroutineImpl);
169
+ initMetadataForCoroutine($readPacketCOROUTINE$, CoroutineImpl);
170
+ initMetadataForCoroutine($readUTF8LineToCOROUTINE$, CoroutineImpl);
171
+ initMetadataForCoroutine($readBufferCOROUTINE$, CoroutineImpl);
172
+ initMetadataForCoroutine($peekCOROUTINE$, CoroutineImpl);
173
+ initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
174
+ initMetadataForClass(WriterJob, 'WriterJob');
175
+ initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
176
+ initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
177
+ initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
178
+ initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
179
+ initMetadataForClass(CloseToken, 'CloseToken');
180
+ initMetadataForCoroutine($awaitContentCOROUTINE$_0, CoroutineImpl);
181
+ initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
182
+ initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', ClosedByteChannelException, IOException);
183
+ initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
184
+ initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
185
+ initMetadataForCompanion(Companion_1);
186
+ initMetadataForClass(LineEndingMode, 'LineEndingMode');
187
+ initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
188
+ initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
189
+ initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
190
+ function close() {
191
+ this.gn();
192
+ }
193
+ initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
194
+ initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
195
+ initMetadataForClass(ByteArrayPool$1, VOID, VOID, DefaultPool);
196
+ initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
197
+ initMetadataForCompanion(Companion_2);
198
+ initMetadataForClass(Charset, 'Charset');
199
+ initMetadataForObject(Charsets, 'Charsets');
200
+ initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
201
+ initMetadataForClass(CharsetEncoder, 'CharsetEncoder');
202
+ initMetadataForClass(CharsetImpl, 'CharsetImpl', VOID, Charset);
203
+ initMetadataForClass(CharsetEncoderImpl, 'CharsetEncoderImpl', VOID, CharsetEncoder);
204
+ initMetadataForClass(CharsetDecoderImpl, 'CharsetDecoderImpl', VOID, CharsetDecoder);
205
+ initMetadataForClass(toKtor$1);
206
+ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
207
+ //endregion
208
+ function Companion() {
209
+ Companion_instance_0 = this;
210
+ this.s12_1 = new Closed(null);
211
+ var tmp = this;
212
+ // Inline function 'kotlin.Companion.success' call
213
+ tmp.t12_1 = _Result___init__impl__xyqfz8(Unit_instance);
214
+ }
215
+ var Companion_instance_0;
216
+ function Companion_getInstance() {
217
+ if (Companion_instance_0 == null)
218
+ new Companion();
219
+ return Companion_instance_0;
220
+ }
221
+ function Empty() {
222
+ }
223
+ protoOf(Empty).toString = function () {
224
+ return 'Empty';
225
+ };
226
+ protoOf(Empty).hashCode = function () {
227
+ return -231472095;
228
+ };
229
+ protoOf(Empty).equals = function (other) {
230
+ if (this === other)
231
+ return true;
232
+ if (!(other instanceof Empty))
233
+ return false;
234
+ return true;
235
+ };
236
+ var Empty_instance;
237
+ function Empty_getInstance() {
238
+ return Empty_instance;
239
+ }
240
+ function Closed(cause) {
241
+ this.u12_1 = cause;
242
+ }
243
+ protoOf(Closed).toString = function () {
244
+ return 'Closed(cause=' + toString(this.u12_1) + ')';
245
+ };
246
+ protoOf(Closed).hashCode = function () {
247
+ return this.u12_1 == null ? 0 : hashCode(this.u12_1);
248
+ };
249
+ protoOf(Closed).equals = function (other) {
250
+ if (this === other)
251
+ return true;
252
+ if (!(other instanceof Closed))
253
+ return false;
254
+ if (!equals(this.u12_1, other.u12_1))
255
+ return false;
256
+ return true;
257
+ };
258
+ function Task() {
259
+ }
260
+ function Read(continuation) {
261
+ this.a13_1 = continuation;
262
+ this.b13_1 = null;
263
+ if (get_DEVELOPMENT_MODE()) {
264
+ var tmp = this;
265
+ // Inline function 'kotlin.also' call
266
+ var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.a13_1), 16));
267
+ stackTraceToString(this_0);
268
+ tmp.b13_1 = this_0;
269
+ }
270
+ }
271
+ protoOf(Read).w12 = function () {
272
+ return this.a13_1;
273
+ };
274
+ protoOf(Read).v12 = function () {
275
+ return this.b13_1;
276
+ };
277
+ protoOf(Read).x12 = function () {
278
+ return 'read';
279
+ };
280
+ function Write(continuation) {
281
+ this.c13_1 = continuation;
282
+ this.d13_1 = null;
283
+ if (get_DEVELOPMENT_MODE()) {
284
+ var tmp = this;
285
+ // Inline function 'kotlin.also' call
286
+ var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.c13_1), 16));
287
+ stackTraceToString(this_0);
288
+ tmp.d13_1 = this_0;
289
+ }
290
+ }
291
+ protoOf(Write).w12 = function () {
292
+ return this.c13_1;
293
+ };
294
+ protoOf(Write).v12 = function () {
295
+ return this.d13_1;
296
+ };
297
+ protoOf(Write).x12 = function () {
298
+ return 'write';
299
+ };
300
+ function moveFlushToReadBuffer($this) {
301
+ // Inline function 'io.ktor.utils.io.locks.synchronized' call
302
+ $this.h13_1;
303
+ $this.f13_1.ph($this.j13_1);
304
+ $this.g13_1 = 0;
305
+ // Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
306
+ var current = $this.i13_1.kotlinx$atomicfu$value;
307
+ var tmp;
308
+ if (current instanceof Write) {
309
+ tmp = $this.i13_1.atomicfu$compareAndSet(current, Empty_instance);
310
+ } else {
311
+ tmp = false;
312
+ }
313
+ if (tmp) {
314
+ current.y12();
315
+ }
316
+ }
317
+ function closeSlot($this, cause) {
318
+ var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().s12_1;
319
+ var continuation = $this.i13_1.atomicfu$getAndSet(closeContinuation);
320
+ if (isInterface(continuation, Task)) {
321
+ continuation.z12(cause);
322
+ }
323
+ }
324
+ function ClosedReadChannelException$_init_$ref_ix0089() {
325
+ var l = function (p0) {
326
+ return new ClosedReadChannelException(p0);
327
+ };
328
+ l.callableName = '<init>';
329
+ return l;
330
+ }
331
+ function ClosedWriteChannelException$_init_$ref_ef15ty() {
332
+ var l = function (p0) {
333
+ return new ClosedWriteChannelException(p0);
334
+ };
335
+ l.callableName = '<init>';
336
+ return l;
337
+ }
338
+ function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
339
+ CoroutineImpl.call(this, resultContinuation);
340
+ this.u13_1 = _this__u8e3s4;
341
+ this.v13_1 = min;
342
+ }
343
+ protoOf($awaitContentCOROUTINE$).k7 = function () {
344
+ var suspendResult = this.e7_1;
345
+ $sm: do
346
+ try {
347
+ var tmp = this.c7_1;
348
+ switch (tmp) {
349
+ case 0:
350
+ this.d7_1 = 4;
351
+ rethrowCloseCauseIfNeeded(this.u13_1);
352
+ if (compare(this.u13_1.j13_1.n(), fromInt(this.v13_1)) >= 0)
353
+ return true;
354
+ this.w13_1 = this.u13_1;
355
+ this.c7_1 = 1;
356
+ continue $sm;
357
+ case 1:
358
+ if (!(compare(add(numberToLong(this.u13_1.g13_1), this.u13_1.j13_1.n()), fromInt(this.v13_1)) < 0 && this.u13_1.l13_1.kotlinx$atomicfu$value == null)) {
359
+ this.c7_1 = 3;
360
+ continue $sm;
361
+ }
362
+
363
+ this.c7_1 = 2;
364
+ var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
365
+ cancellable.jo();
366
+ var tmp0 = this.w13_1;
367
+ var tmp2 = new Read(cancellable);
368
+ l$ret$1: do {
369
+ var previous = tmp0.i13_1.kotlinx$atomicfu$value;
370
+ if (!(previous instanceof Closed)) {
371
+ if (!tmp0.i13_1.atomicfu$compareAndSet(previous, tmp2)) {
372
+ tmp2.y12();
373
+ break l$ret$1;
374
+ }
375
+ }
376
+ if (previous instanceof Read) {
377
+ previous.z12(new ConcurrentIOException(tmp2.x12(), previous.v12()));
378
+ } else {
379
+ if (isInterface(previous, Task)) {
380
+ previous.y12();
381
+ } else {
382
+ if (previous instanceof Closed) {
383
+ tmp2.z12(previous.u12_1);
384
+ break l$ret$1;
385
+ } else {
386
+ if (!equals(previous, Empty_instance)) {
387
+ noWhenBranchMatchedException();
388
+ }
389
+ }
390
+ }
391
+ }
392
+ if (!(compare(add(numberToLong(this.u13_1.g13_1), this.u13_1.j13_1.n()), fromInt(this.v13_1)) < 0 && this.u13_1.l13_1.kotlinx$atomicfu$value == null)) {
393
+ var current = tmp0.i13_1.kotlinx$atomicfu$value;
394
+ var tmp_0;
395
+ if (current instanceof Read) {
396
+ tmp_0 = tmp0.i13_1.atomicfu$compareAndSet(current, Empty_instance);
397
+ } else {
398
+ tmp_0 = false;
399
+ }
400
+ if (tmp_0) {
401
+ current.y12();
402
+ }
403
+ }
404
+ }
405
+ while (false);
406
+ suspendResult = returnIfSuspended(cancellable.ro(), this);
407
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
408
+ return suspendResult;
409
+ }
410
+
411
+ continue $sm;
412
+ case 2:
413
+ this.c7_1 = 1;
414
+ continue $sm;
415
+ case 3:
416
+ if (compare(this.u13_1.j13_1.n(), new Long(1048576, 0)) < 0) {
417
+ moveFlushToReadBuffer(this.u13_1);
418
+ }
419
+
420
+ return compare(this.u13_1.j13_1.n(), fromInt(this.v13_1)) >= 0;
421
+ case 4:
422
+ throw this.f7_1;
423
+ }
424
+ } catch ($p) {
425
+ var e = $p;
426
+ if (this.d7_1 === 4) {
427
+ throw e;
428
+ } else {
429
+ this.c7_1 = this.d7_1;
430
+ this.f7_1 = e;
431
+ }
432
+ }
433
+ while (true);
434
+ };
435
+ function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
436
+ CoroutineImpl.call(this, resultContinuation);
437
+ this.f14_1 = _this__u8e3s4;
438
+ }
439
+ protoOf($flushCOROUTINE$).k7 = function () {
440
+ var suspendResult = this.e7_1;
441
+ $sm: do
442
+ try {
443
+ var tmp = this.c7_1;
444
+ switch (tmp) {
445
+ case 0:
446
+ this.d7_1 = 4;
447
+ rethrowCloseCauseIfNeeded(this.f14_1);
448
+ this.f14_1.h14();
449
+ if (this.f14_1.g13_1 < 1048576)
450
+ return Unit_instance;
451
+ this.g14_1 = this.f14_1;
452
+ this.c7_1 = 1;
453
+ continue $sm;
454
+ case 1:
455
+ if (!(this.f14_1.g13_1 >= 1048576 && this.f14_1.l13_1.kotlinx$atomicfu$value == null)) {
456
+ this.c7_1 = 3;
457
+ continue $sm;
458
+ }
459
+
460
+ this.c7_1 = 2;
461
+ var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
462
+ cancellable.jo();
463
+ var tmp0 = this.g14_1;
464
+ var tmp2 = new Write(cancellable);
465
+ l$ret$1: do {
466
+ var previous = tmp0.i13_1.kotlinx$atomicfu$value;
467
+ if (!(previous instanceof Closed)) {
468
+ if (!tmp0.i13_1.atomicfu$compareAndSet(previous, tmp2)) {
469
+ tmp2.y12();
470
+ break l$ret$1;
471
+ }
472
+ }
473
+ if (previous instanceof Write) {
474
+ previous.z12(new ConcurrentIOException(tmp2.x12(), previous.v12()));
475
+ } else {
476
+ if (isInterface(previous, Task)) {
477
+ previous.y12();
478
+ } else {
479
+ if (previous instanceof Closed) {
480
+ tmp2.z12(previous.u12_1);
481
+ break l$ret$1;
482
+ } else {
483
+ if (!equals(previous, Empty_instance)) {
484
+ noWhenBranchMatchedException();
485
+ }
486
+ }
487
+ }
488
+ }
489
+ if (!(this.f14_1.g13_1 >= 1048576 && this.f14_1.l13_1.kotlinx$atomicfu$value == null)) {
490
+ var current = tmp0.i13_1.kotlinx$atomicfu$value;
491
+ var tmp_0;
492
+ if (current instanceof Write) {
493
+ tmp_0 = tmp0.i13_1.atomicfu$compareAndSet(current, Empty_instance);
494
+ } else {
495
+ tmp_0 = false;
496
+ }
497
+ if (tmp_0) {
498
+ current.y12();
499
+ }
500
+ }
501
+ }
502
+ while (false);
503
+ suspendResult = returnIfSuspended(cancellable.ro(), this);
504
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
505
+ return suspendResult;
506
+ }
507
+
508
+ continue $sm;
509
+ case 2:
510
+ this.c7_1 = 1;
511
+ continue $sm;
512
+ case 3:
513
+ return Unit_instance;
514
+ case 4:
515
+ throw this.f7_1;
516
+ }
517
+ } catch ($p) {
518
+ var e = $p;
519
+ if (this.d7_1 === 4) {
520
+ throw e;
521
+ } else {
522
+ this.c7_1 = this.d7_1;
523
+ this.f7_1 = e;
524
+ }
525
+ }
526
+ while (true);
527
+ };
528
+ function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
529
+ CoroutineImpl.call(this, resultContinuation);
530
+ this.q14_1 = _this__u8e3s4;
531
+ }
532
+ protoOf($flushAndCloseCOROUTINE$).k7 = function () {
533
+ var suspendResult = this.e7_1;
534
+ $sm: do
535
+ try {
536
+ var tmp = this.c7_1;
537
+ switch (tmp) {
538
+ case 0:
539
+ this.d7_1 = 4;
540
+ var this_0 = this.q14_1;
541
+ this.d7_1 = 2;
542
+ var tmp_0 = this;
543
+ tmp_0.s14_1 = Companion_instance;
544
+ this.c7_1 = 1;
545
+ suspendResult = this_0.t14(this);
546
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
547
+ return suspendResult;
548
+ }
549
+
550
+ continue $sm;
551
+ case 1:
552
+ var tmp_1 = this;
553
+ this.s14_1;
554
+ tmp_1.r14_1 = _Result___init__impl__xyqfz8(Unit_instance);
555
+ this.d7_1 = 4;
556
+ this.c7_1 = 3;
557
+ continue $sm;
558
+ case 2:
559
+ this.d7_1 = 4;
560
+ var tmp_2 = this.f7_1;
561
+ if (tmp_2 instanceof Error) {
562
+ var e = this.f7_1;
563
+ var tmp_3 = this;
564
+ tmp_3.r14_1 = _Result___init__impl__xyqfz8(createFailure(e));
565
+ this.c7_1 = 3;
566
+ continue $sm;
567
+ } else {
568
+ throw this.f7_1;
569
+ }
570
+
571
+ case 3:
572
+ this.d7_1 = 4;
573
+ if (!this.q14_1.l13_1.atomicfu$compareAndSet(null, get_CLOSED()))
574
+ return Unit_instance;
575
+ closeSlot(this.q14_1, null);
576
+ return Unit_instance;
577
+ case 4:
578
+ throw this.f7_1;
579
+ }
580
+ } catch ($p) {
581
+ var e_0 = $p;
582
+ if (this.d7_1 === 4) {
583
+ throw e_0;
584
+ } else {
585
+ this.c7_1 = this.d7_1;
586
+ this.f7_1 = e_0;
587
+ }
588
+ }
589
+ while (true);
590
+ };
591
+ function ByteChannel(autoFlush) {
592
+ autoFlush = autoFlush === VOID ? false : autoFlush;
593
+ this.e13_1 = autoFlush;
594
+ this.f13_1 = new Buffer();
595
+ this.g13_1 = 0;
596
+ this.h13_1 = new Object();
597
+ this.i13_1 = atomic$ref$1(Empty_instance);
598
+ this.j13_1 = new Buffer();
599
+ this.k13_1 = new Buffer();
600
+ this.l13_1 = atomic$ref$1(null);
601
+ }
602
+ protoOf(ByteChannel).u14 = function () {
603
+ return this.e13_1;
604
+ };
605
+ protoOf(ByteChannel).v14 = function () {
606
+ var tmp0_safe_receiver = this.l13_1.kotlinx$atomicfu$value;
607
+ if (tmp0_safe_receiver == null)
608
+ null;
609
+ else {
610
+ tmp0_safe_receiver.x14(ClosedReadChannelException$_init_$ref_ix0089());
611
+ }
612
+ if (this.j13_1.mg()) {
613
+ moveFlushToReadBuffer(this);
614
+ }
615
+ return this.j13_1;
616
+ };
617
+ protoOf(ByteChannel).y14 = function () {
618
+ if (this.z14()) {
619
+ var tmp0_safe_receiver = this.l13_1.kotlinx$atomicfu$value;
620
+ var tmp;
621
+ if (tmp0_safe_receiver == null) {
622
+ tmp = null;
623
+ } else {
624
+ tmp = tmp0_safe_receiver.x14(ClosedWriteChannelException$_init_$ref_ef15ty());
625
+ }
626
+ if (tmp == null)
627
+ throw new ClosedWriteChannelException();
628
+ }
629
+ return this.k13_1;
630
+ };
631
+ protoOf(ByteChannel).a15 = function () {
632
+ var tmp0_safe_receiver = this.l13_1.kotlinx$atomicfu$value;
633
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b15();
634
+ };
635
+ protoOf(ByteChannel).z14 = function () {
636
+ return !(this.l13_1.kotlinx$atomicfu$value == null);
637
+ };
638
+ protoOf(ByteChannel).c15 = function () {
639
+ return !(this.a15() == null) || (this.z14() && this.g13_1 === 0 && this.j13_1.mg());
640
+ };
641
+ protoOf(ByteChannel).d15 = function (min, $completion) {
642
+ var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
643
+ tmp.e7_1 = Unit_instance;
644
+ tmp.f7_1 = null;
645
+ return tmp.k7();
646
+ };
647
+ protoOf(ByteChannel).t14 = function ($completion) {
648
+ var tmp = new $flushCOROUTINE$(this, $completion);
649
+ tmp.e7_1 = Unit_instance;
650
+ tmp.f7_1 = null;
651
+ return tmp.k7();
652
+ };
653
+ protoOf(ByteChannel).h14 = function () {
654
+ if (this.k13_1.mg())
655
+ return Unit_instance;
656
+ // Inline function 'io.ktor.utils.io.locks.synchronized' call
657
+ this.h13_1;
658
+ var count = convertToInt(this.k13_1.n());
659
+ this.f13_1.di(this.k13_1);
660
+ this.g13_1 = this.g13_1 + count | 0;
661
+ // Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
662
+ var current = this.i13_1.kotlinx$atomicfu$value;
663
+ var tmp;
664
+ if (current instanceof Read) {
665
+ tmp = this.i13_1.atomicfu$compareAndSet(current, Empty_instance);
666
+ } else {
667
+ tmp = false;
668
+ }
669
+ if (tmp) {
670
+ current.y12();
671
+ }
672
+ };
673
+ protoOf(ByteChannel).q2 = function () {
674
+ this.h14();
675
+ if (!this.l13_1.atomicfu$compareAndSet(null, get_CLOSED()))
676
+ return Unit_instance;
677
+ closeSlot(this, null);
678
+ };
679
+ protoOf(ByteChannel).f15 = function ($completion) {
680
+ var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
681
+ tmp.e7_1 = Unit_instance;
682
+ tmp.f7_1 = null;
683
+ return tmp.k7();
684
+ };
685
+ protoOf(ByteChannel).g15 = function (cause) {
686
+ if (!(this.l13_1.kotlinx$atomicfu$value == null))
687
+ return Unit_instance;
688
+ var closedToken = new CloseToken(cause);
689
+ this.l13_1.atomicfu$compareAndSet(null, closedToken);
690
+ var wrappedCause = closedToken.b15();
691
+ closeSlot(this, wrappedCause);
692
+ };
693
+ protoOf(ByteChannel).toString = function () {
694
+ return 'ByteChannel[' + hashCode(this) + ']';
695
+ };
696
+ function ConcurrentIOException(taskName, cause) {
697
+ cause = cause === VOID ? null : cause;
698
+ IllegalStateException_init_$Init$('Concurrent ' + taskName + ' attempts', cause, this);
699
+ captureStack(this, ConcurrentIOException);
700
+ }
701
+ function ByteReadChannel(content, offset, length) {
702
+ offset = offset === VOID ? 0 : offset;
703
+ length = length === VOID ? content.length : length;
704
+ // Inline function 'kotlin.also' call
705
+ var this_0 = new Buffer();
706
+ this_0.vh(content, offset, offset + length | 0);
707
+ var source = this_0;
708
+ return ByteReadChannel_0(source);
709
+ }
710
+ function ByteReadChannel_0(source) {
711
+ return new SourceByteReadChannel(source);
712
+ }
713
+ function buildPartialMatchTable($this) {
714
+ var table = new Int32Array($this.i15_1.n());
715
+ var j = 0;
716
+ var inductionVariable = 1;
717
+ var last = $this.i15_1.n();
718
+ if (inductionVariable < last)
719
+ do {
720
+ var i = inductionVariable;
721
+ inductionVariable = inductionVariable + 1 | 0;
722
+ while (j > 0 && !($this.i15_1.m(i) === $this.i15_1.m(j))) {
723
+ j = table[j - 1 | 0];
724
+ }
725
+ if ($this.i15_1.m(i) === $this.i15_1.m(j)) {
726
+ j = j + 1 | 0;
727
+ }
728
+ table[i] = j;
729
+ }
730
+ while (inductionVariable < last);
731
+ return table;
732
+ }
733
+ function advanceToNextPotentialMatch($this, $completion) {
734
+ var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
735
+ tmp.e7_1 = Unit_instance;
736
+ tmp.f7_1 = null;
737
+ return tmp.k7();
738
+ }
739
+ function checkFullMatch($this, $completion) {
740
+ var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
741
+ tmp.e7_1 = Unit_instance;
742
+ tmp.f7_1 = null;
743
+ return tmp.k7();
744
+ }
745
+ function checkBounds($this, extra) {
746
+ if (compare(add($this.o15_1, extra), $this.k15_1) > 0) {
747
+ throw IOException_init_$Create$('Limit of ' + $this.k15_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.i15_1) + '"'));
748
+ }
749
+ }
750
+ function toSingleLineString($this, _this__u8e3s4) {
751
+ return replace(decodeToString(_this__u8e3s4), '\n', '\\n');
752
+ }
753
+ function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
754
+ CoroutineImpl.call(this, resultContinuation);
755
+ this.t16_1 = _this__u8e3s4;
756
+ this.u16_1 = ignoreMissing;
757
+ }
758
+ protoOf($findNextCOROUTINE$).k7 = function () {
759
+ var suspendResult = this.e7_1;
760
+ $sm: do
761
+ try {
762
+ var tmp = this.c7_1;
763
+ switch (tmp) {
764
+ case 0:
765
+ this.d7_1 = 9;
766
+ this.t16_1.o15_1 = new Long(0, 0);
767
+ this.c7_1 = 1;
768
+ continue $sm;
769
+ case 1:
770
+ if (!this.t16_1.l15_1.mg()) {
771
+ this.v16_1 = true;
772
+ this.c7_1 = 3;
773
+ continue $sm;
774
+ } else {
775
+ this.c7_1 = 2;
776
+ suspendResult = this.t16_1.h15_1.e15(VOID, this);
777
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
778
+ return suspendResult;
779
+ }
780
+ continue $sm;
781
+ }
782
+
783
+ case 2:
784
+ this.v16_1 = suspendResult;
785
+ this.c7_1 = 3;
786
+ continue $sm;
787
+ case 3:
788
+ if (!this.v16_1) {
789
+ this.c7_1 = 7;
790
+ continue $sm;
791
+ }
792
+
793
+ this.c7_1 = 4;
794
+ suspendResult = advanceToNextPotentialMatch(this.t16_1, this);
795
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
796
+ return suspendResult;
797
+ }
798
+
799
+ continue $sm;
800
+ case 4:
801
+ this.c7_1 = 5;
802
+ suspendResult = checkFullMatch(this.t16_1, this);
803
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
804
+ return suspendResult;
805
+ }
806
+
807
+ continue $sm;
808
+ case 5:
809
+ if (suspendResult) {
810
+ return this.t16_1.o15_1;
811
+ } else {
812
+ this.c7_1 = 6;
813
+ continue $sm;
814
+ }
815
+
816
+ case 6:
817
+ this.c7_1 = 1;
818
+ continue $sm;
819
+ case 7:
820
+ if (!this.u16_1) {
821
+ throw IOException_init_$Create$('Expected "' + toSingleLineString(this.t16_1, this.t16_1.i15_1) + '" but encountered end of input');
822
+ }
823
+
824
+ this.t16_1.o15_1 = add(this.t16_1.o15_1, this.t16_1.n15_1.ph(this.t16_1.j15_1.y14()));
825
+ this.c7_1 = 8;
826
+ suspendResult = this.t16_1.j15_1.t14(this);
827
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
828
+ return suspendResult;
829
+ }
830
+
831
+ continue $sm;
832
+ case 8:
833
+ return this.t16_1.o15_1;
834
+ case 9:
835
+ throw this.f7_1;
836
+ }
837
+ } catch ($p) {
838
+ var e = $p;
839
+ if (this.d7_1 === 9) {
840
+ throw e;
841
+ } else {
842
+ this.c7_1 = this.d7_1;
843
+ this.f7_1 = e;
844
+ }
845
+ }
846
+ while (true);
847
+ };
848
+ function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
849
+ CoroutineImpl.call(this, resultContinuation);
850
+ this.y15_1 = _this__u8e3s4;
851
+ }
852
+ protoOf($advanceToNextPotentialMatchCOROUTINE$).k7 = function () {
853
+ var suspendResult = this.e7_1;
854
+ $sm: do
855
+ try {
856
+ var tmp = this.c7_1;
857
+ switch (tmp) {
858
+ case 0:
859
+ this.d7_1 = 8;
860
+ this.c7_1 = 1;
861
+ continue $sm;
862
+ case 1:
863
+ if (!this.y15_1.l15_1.mg()) {
864
+ this.z15_1 = true;
865
+ this.c7_1 = 3;
866
+ continue $sm;
867
+ } else {
868
+ this.c7_1 = 2;
869
+ suspendResult = this.y15_1.h15_1.e15(VOID, this);
870
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
871
+ return suspendResult;
872
+ }
873
+ continue $sm;
874
+ }
875
+
876
+ case 2:
877
+ this.z15_1 = suspendResult;
878
+ this.c7_1 = 3;
879
+ continue $sm;
880
+ case 3:
881
+ if (!this.z15_1) {
882
+ this.c7_1 = 7;
883
+ continue $sm;
884
+ }
885
+
886
+ var nextMatch = indexOf(this.y15_1.l15_1, this.y15_1.i15_1.m(0));
887
+ if (equalsLong(nextMatch, new Long(-1, -1))) {
888
+ var tmp_0 = this.y15_1.l15_1;
889
+ checkBounds(this.y15_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).n());
890
+ this.y15_1.o15_1 = add(this.y15_1.o15_1, this.y15_1.l15_1.ph(this.y15_1.j15_1.y14()));
891
+ this.c7_1 = 5;
892
+ suspendResult = flushIfNeeded(this.y15_1.j15_1, this);
893
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
894
+ return suspendResult;
895
+ }
896
+ continue $sm;
897
+ } else {
898
+ checkBounds(this.y15_1, nextMatch);
899
+ var tmp_1 = this.y15_1;
900
+ var tmp_2 = this.y15_1.o15_1;
901
+ var tmp_3 = this.y15_1.j15_1.y14();
902
+ tmp_1.o15_1 = add(tmp_2, this.y15_1.l15_1.mh(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
903
+ this.c7_1 = 4;
904
+ suspendResult = flushIfNeeded(this.y15_1.j15_1, this);
905
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
906
+ return suspendResult;
907
+ }
908
+ continue $sm;
909
+ }
910
+
911
+ case 4:
912
+ return Unit_instance;
913
+ case 5:
914
+ this.c7_1 = 6;
915
+ continue $sm;
916
+ case 6:
917
+ this.c7_1 = 1;
918
+ continue $sm;
919
+ case 7:
920
+ return Unit_instance;
921
+ case 8:
922
+ throw this.f7_1;
923
+ }
924
+ } catch ($p) {
925
+ var e = $p;
926
+ if (this.d7_1 === 8) {
927
+ throw e;
928
+ } else {
929
+ this.c7_1 = this.d7_1;
930
+ this.f7_1 = e;
931
+ }
932
+ }
933
+ while (true);
934
+ };
935
+ function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
936
+ CoroutineImpl.call(this, resultContinuation);
937
+ this.i16_1 = _this__u8e3s4;
938
+ }
939
+ protoOf($checkFullMatchCOROUTINE$).k7 = function () {
940
+ var suspendResult = this.e7_1;
941
+ $sm: do
942
+ try {
943
+ var tmp = this.c7_1;
944
+ switch (tmp) {
945
+ case 0:
946
+ this.d7_1 = 8;
947
+ this.c7_1 = 1;
948
+ continue $sm;
949
+ case 1:
950
+ if (!this.i16_1.l15_1.mg()) {
951
+ this.k16_1 = true;
952
+ this.c7_1 = 3;
953
+ continue $sm;
954
+ } else {
955
+ this.c7_1 = 2;
956
+ suspendResult = this.i16_1.h15_1.e15(VOID, this);
957
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
958
+ return suspendResult;
959
+ }
960
+ continue $sm;
961
+ }
962
+
963
+ case 2:
964
+ this.k16_1 = suspendResult;
965
+ this.c7_1 = 3;
966
+ continue $sm;
967
+ case 3:
968
+ if (!this.k16_1) {
969
+ this.c7_1 = 7;
970
+ continue $sm;
971
+ }
972
+
973
+ this.j16_1 = this.i16_1.l15_1.pg();
974
+ if (this.i16_1.p15_1 > 0 && !(this.j16_1 === this.i16_1.i15_1.m(this.i16_1.p15_1))) {
975
+ var oldMatchIndex = this.i16_1.p15_1;
976
+ while (this.i16_1.p15_1 > 0 && !(this.j16_1 === this.i16_1.i15_1.m(this.i16_1.p15_1))) {
977
+ this.i16_1.p15_1 = this.i16_1.m15_1[this.i16_1.p15_1 - 1 | 0];
978
+ }
979
+ var retained = fromInt(oldMatchIndex - this.i16_1.p15_1 | 0);
980
+ checkBounds(this.i16_1, retained);
981
+ var tmp_0 = this.i16_1;
982
+ var tmp_1 = this.i16_1.o15_1;
983
+ var tmp_2 = this.i16_1.j15_1.y14();
984
+ tmp_0.o15_1 = add(tmp_1, this.i16_1.n15_1.mh(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
985
+ if (this.i16_1.p15_1 === 0 && !(this.j16_1 === this.i16_1.i15_1.m(this.i16_1.p15_1))) {
986
+ this.c7_1 = 6;
987
+ suspendResult = writeByte(this.i16_1.j15_1, this.j16_1, this);
988
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
989
+ return suspendResult;
990
+ }
991
+ continue $sm;
992
+ } else {
993
+ this.c7_1 = 4;
994
+ continue $sm;
995
+ }
996
+ } else {
997
+ this.c7_1 = 5;
998
+ continue $sm;
999
+ }
1000
+
1001
+ case 4:
1002
+ this.c7_1 = 5;
1003
+ continue $sm;
1004
+ case 5:
1005
+ this.i16_1.p15_1 = this.i16_1.p15_1 + 1 | 0;
1006
+ if (this.i16_1.p15_1 === this.i16_1.i15_1.n()) {
1007
+ return true;
1008
+ }
1009
+
1010
+ this.i16_1.n15_1.ei(this.j16_1);
1011
+ this.c7_1 = 1;
1012
+ continue $sm;
1013
+ case 6:
1014
+ var _unary__edvuaz = this.i16_1.o15_1;
1015
+ this.i16_1.o15_1 = add(_unary__edvuaz, get_ONE());
1016
+ return false;
1017
+ case 7:
1018
+ return false;
1019
+ case 8:
1020
+ throw this.f7_1;
1021
+ }
1022
+ } catch ($p) {
1023
+ var e = $p;
1024
+ if (this.d7_1 === 8) {
1025
+ throw e;
1026
+ } else {
1027
+ this.c7_1 = this.d7_1;
1028
+ this.f7_1 = e;
1029
+ }
1030
+ }
1031
+ while (true);
1032
+ };
1033
+ function ByteChannelScanner(channel, matchString, writeChannel, limit) {
1034
+ limit = limit === VOID ? new Long(-1, 2147483647) : limit;
1035
+ this.h15_1 = channel;
1036
+ this.i15_1 = matchString;
1037
+ this.j15_1 = writeChannel;
1038
+ this.k15_1 = limit;
1039
+ // Inline function 'kotlin.require' call
1040
+ if (!(this.i15_1.n() > 0)) {
1041
+ var message = 'Empty match string not permitted for scanning';
1042
+ throw IllegalArgumentException_init_$Create$(toString_1(message));
1043
+ }
1044
+ this.l15_1 = this.h15_1.v14();
1045
+ this.m15_1 = buildPartialMatchTable(this);
1046
+ this.n15_1 = new Buffer();
1047
+ this.o15_1 = new Long(0, 0);
1048
+ this.p15_1 = 0;
1049
+ }
1050
+ protoOf(ByteChannelScanner).w16 = function (ignoreMissing, $completion) {
1051
+ var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
1052
+ tmp.e7_1 = Unit_instance;
1053
+ tmp.f7_1 = null;
1054
+ return tmp.k7();
1055
+ };
1056
+ function ByteReadChannel$Companion$Empty$1() {
1057
+ this.x16_1 = null;
1058
+ this.y16_1 = new Buffer();
1059
+ }
1060
+ protoOf(ByteReadChannel$Companion$Empty$1).a15 = function () {
1061
+ return this.x16_1;
1062
+ };
1063
+ protoOf(ByteReadChannel$Companion$Empty$1).c15 = function () {
1064
+ return true;
1065
+ };
1066
+ protoOf(ByteReadChannel$Companion$Empty$1).v14 = function () {
1067
+ return this.y16_1;
1068
+ };
1069
+ protoOf(ByteReadChannel$Companion$Empty$1).d15 = function (min, $completion) {
1070
+ return false;
1071
+ };
1072
+ protoOf(ByteReadChannel$Companion$Empty$1).g15 = function (cause) {
1073
+ };
1074
+ function Companion_0() {
1075
+ Companion_instance_1 = this;
1076
+ var tmp = this;
1077
+ tmp.z16_1 = new ByteReadChannel$Companion$Empty$1();
1078
+ }
1079
+ var Companion_instance_1;
1080
+ function Companion_getInstance_0() {
1081
+ if (Companion_instance_1 == null)
1082
+ new Companion_0();
1083
+ return Companion_instance_1;
1084
+ }
1085
+ function ByteReadChannel_1() {
1086
+ }
1087
+ function cancel_0(_this__u8e3s4) {
1088
+ _this__u8e3s4.g15(IOException_init_$Create$('Channel was cancelled'));
1089
+ }
1090
+ function readRemaining(_this__u8e3s4, $completion) {
1091
+ var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
1092
+ tmp.e7_1 = Unit_instance;
1093
+ tmp.f7_1 = null;
1094
+ return tmp.k7();
1095
+ }
1096
+ function discard(_this__u8e3s4, max, $completion) {
1097
+ max = max === VOID ? new Long(-1, 2147483647) : max;
1098
+ var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
1099
+ tmp.e7_1 = Unit_instance;
1100
+ tmp.f7_1 = null;
1101
+ return tmp.k7();
1102
+ }
1103
+ function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
1104
+ offset = offset === VOID ? 0 : offset;
1105
+ length = length === VOID ? buffer.length - offset | 0 : length;
1106
+ var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
1107
+ tmp.e7_1 = Unit_instance;
1108
+ tmp.f7_1 = null;
1109
+ return tmp.k7();
1110
+ }
1111
+ function toByteArray(_this__u8e3s4, $completion) {
1112
+ var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
1113
+ tmp.e7_1 = Unit_instance;
1114
+ tmp.f7_1 = null;
1115
+ return tmp.k7();
1116
+ }
1117
+ function copyTo(_this__u8e3s4, channel, limit, $completion) {
1118
+ var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
1119
+ tmp.e7_1 = Unit_instance;
1120
+ tmp.f7_1 = null;
1121
+ return tmp.k7();
1122
+ }
1123
+ function skipIfFound(_this__u8e3s4, byteString, $completion) {
1124
+ var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
1125
+ tmp.e7_1 = Unit_instance;
1126
+ tmp.f7_1 = null;
1127
+ return tmp.k7();
1128
+ }
1129
+ function readPacket(_this__u8e3s4, packet, $completion) {
1130
+ var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
1131
+ tmp.e7_1 = Unit_instance;
1132
+ tmp.f7_1 = null;
1133
+ return tmp.k7();
1134
+ }
1135
+ function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
1136
+ limit = limit === VOID ? new Long(-1, 2147483647) : limit;
1137
+ ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
1138
+ return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).w16(ignoreMissing, $completion);
1139
+ }
1140
+ function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
1141
+ max = max === VOID ? 2147483647 : max;
1142
+ lineEnding = lineEnding === VOID ? Companion_getInstance_1().b1a_1 : lineEnding;
1143
+ var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
1144
+ tmp.e7_1 = Unit_instance;
1145
+ tmp.f7_1 = null;
1146
+ return tmp.k7();
1147
+ }
1148
+ function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
1149
+ var tmp0_safe_receiver = _this__u8e3s4.a15();
1150
+ if (tmp0_safe_receiver == null)
1151
+ null;
1152
+ else {
1153
+ // Inline function 'kotlin.let' call
1154
+ throw tmp0_safe_receiver;
1155
+ }
1156
+ }
1157
+ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
1158
+ var tmp0_safe_receiver = _this__u8e3s4.a15();
1159
+ if (tmp0_safe_receiver == null)
1160
+ null;
1161
+ else {
1162
+ // Inline function 'kotlin.let' call
1163
+ throw tmp0_safe_receiver;
1164
+ }
1165
+ }
1166
+ function get_availableForRead(_this__u8e3s4) {
1167
+ return convertToInt(_this__u8e3s4.v14().lg().n());
1168
+ }
1169
+ function readBuffer(_this__u8e3s4, $completion) {
1170
+ var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
1171
+ tmp.e7_1 = Unit_instance;
1172
+ tmp.f7_1 = null;
1173
+ return tmp.k7();
1174
+ }
1175
+ function peek(_this__u8e3s4, count, $completion) {
1176
+ var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
1177
+ tmp.e7_1 = Unit_instance;
1178
+ tmp.f7_1 = null;
1179
+ return tmp.k7();
1180
+ }
1181
+ function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
1182
+ var tmp0_safe_receiver = _this__u8e3s4.a15();
1183
+ if (tmp0_safe_receiver == null)
1184
+ null;
1185
+ else {
1186
+ // Inline function 'kotlin.let' call
1187
+ throw tmp0_safe_receiver;
1188
+ }
1189
+ }
1190
+ function readUTF8LineTo$checkLineEndingAllowed($lineEnding, lineEndingToCheck) {
1191
+ if (!LineEndingMode__contains_impl_q5pr68($lineEnding, lineEndingToCheck)) {
1192
+ throw IOException_init_$Create$('Unexpected line ending ' + LineEndingMode__toString_impl_j4h76r(lineEndingToCheck) + ', while expected ' + LineEndingMode__toString_impl_j4h76r($lineEnding));
1193
+ }
1194
+ }
1195
+ function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
1196
+ CoroutineImpl.call(this, resultContinuation);
1197
+ this.i17_1 = _this__u8e3s4;
1198
+ }
1199
+ protoOf($readRemainingCOROUTINE$).k7 = function () {
1200
+ var suspendResult = this.e7_1;
1201
+ $sm: do
1202
+ try {
1203
+ var tmp = this.c7_1;
1204
+ switch (tmp) {
1205
+ case 0:
1206
+ this.d7_1 = 4;
1207
+ this.j17_1 = BytePacketBuilder();
1208
+ this.c7_1 = 1;
1209
+ continue $sm;
1210
+ case 1:
1211
+ if (!!this.i17_1.c15()) {
1212
+ this.c7_1 = 3;
1213
+ continue $sm;
1214
+ }
1215
+
1216
+ this.j17_1.di(this.i17_1.v14());
1217
+ this.c7_1 = 2;
1218
+ suspendResult = this.i17_1.e15(VOID, this);
1219
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1220
+ return suspendResult;
1221
+ }
1222
+
1223
+ continue $sm;
1224
+ case 2:
1225
+ this.c7_1 = 1;
1226
+ continue $sm;
1227
+ case 3:
1228
+ rethrowCloseCauseIfNeeded_0(this.i17_1);
1229
+ return this.j17_1.lg();
1230
+ case 4:
1231
+ throw this.f7_1;
1232
+ }
1233
+ } catch ($p) {
1234
+ var e = $p;
1235
+ if (this.d7_1 === 4) {
1236
+ throw e;
1237
+ } else {
1238
+ this.c7_1 = this.d7_1;
1239
+ this.f7_1 = e;
1240
+ }
1241
+ }
1242
+ while (true);
1243
+ };
1244
+ function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
1245
+ CoroutineImpl.call(this, resultContinuation);
1246
+ this.s17_1 = _this__u8e3s4;
1247
+ this.t17_1 = max;
1248
+ }
1249
+ protoOf($discardCOROUTINE$).k7 = function () {
1250
+ var suspendResult = this.e7_1;
1251
+ $sm: do
1252
+ try {
1253
+ var tmp = this.c7_1;
1254
+ switch (tmp) {
1255
+ case 0:
1256
+ this.d7_1 = 5;
1257
+ this.u17_1 = this.t17_1;
1258
+ this.c7_1 = 1;
1259
+ continue $sm;
1260
+ case 1:
1261
+ if (!(compare(this.u17_1, new Long(0, 0)) > 0 && !this.s17_1.c15())) {
1262
+ this.c7_1 = 4;
1263
+ continue $sm;
1264
+ }
1265
+
1266
+ if (get_availableForRead(this.s17_1) === 0) {
1267
+ this.c7_1 = 2;
1268
+ suspendResult = this.s17_1.e15(VOID, this);
1269
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1270
+ return suspendResult;
1271
+ }
1272
+ continue $sm;
1273
+ } else {
1274
+ this.c7_1 = 3;
1275
+ continue $sm;
1276
+ }
1277
+
1278
+ case 2:
1279
+ this.c7_1 = 3;
1280
+ continue $sm;
1281
+ case 3:
1282
+ var tmp0 = this.u17_1;
1283
+ var b = get_remaining(this.s17_1.v14());
1284
+ var count = compare(tmp0, b) <= 0 ? tmp0 : b;
1285
+ discard_0(this.s17_1.v14(), count);
1286
+ this.u17_1 = subtract(this.u17_1, count);
1287
+ this.c7_1 = 1;
1288
+ continue $sm;
1289
+ case 4:
1290
+ return subtract(this.t17_1, this.u17_1);
1291
+ case 5:
1292
+ throw this.f7_1;
1293
+ }
1294
+ } catch ($p) {
1295
+ var e = $p;
1296
+ if (this.d7_1 === 5) {
1297
+ throw e;
1298
+ } else {
1299
+ this.c7_1 = this.d7_1;
1300
+ this.f7_1 = e;
1301
+ }
1302
+ }
1303
+ while (true);
1304
+ };
1305
+ function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
1306
+ CoroutineImpl.call(this, resultContinuation);
1307
+ this.d18_1 = _this__u8e3s4;
1308
+ this.e18_1 = buffer;
1309
+ this.f18_1 = offset;
1310
+ this.g18_1 = length;
1311
+ }
1312
+ protoOf($readAvailableCOROUTINE$).k7 = function () {
1313
+ var suspendResult = this.e7_1;
1314
+ $sm: do
1315
+ try {
1316
+ var tmp = this.c7_1;
1317
+ switch (tmp) {
1318
+ case 0:
1319
+ this.d7_1 = 3;
1320
+ if (this.d18_1.c15())
1321
+ return -1;
1322
+ if (this.d18_1.v14().mg()) {
1323
+ this.c7_1 = 1;
1324
+ suspendResult = this.d18_1.e15(VOID, this);
1325
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1326
+ return suspendResult;
1327
+ }
1328
+ continue $sm;
1329
+ } else {
1330
+ this.c7_1 = 2;
1331
+ continue $sm;
1332
+ }
1333
+
1334
+ case 1:
1335
+ this.c7_1 = 2;
1336
+ continue $sm;
1337
+ case 2:
1338
+ if (this.d18_1.c15())
1339
+ return -1;
1340
+ return readAvailable_0(this.d18_1.v14(), this.e18_1, this.f18_1, this.g18_1);
1341
+ case 3:
1342
+ throw this.f7_1;
1343
+ }
1344
+ } catch ($p) {
1345
+ var e = $p;
1346
+ if (this.d7_1 === 3) {
1347
+ throw e;
1348
+ } else {
1349
+ this.c7_1 = this.d7_1;
1350
+ this.f7_1 = e;
1351
+ }
1352
+ }
1353
+ while (true);
1354
+ };
1355
+ function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
1356
+ CoroutineImpl.call(this, resultContinuation);
1357
+ this.p18_1 = _this__u8e3s4;
1358
+ }
1359
+ protoOf($toByteArrayCOROUTINE$).k7 = function () {
1360
+ var suspendResult = this.e7_1;
1361
+ $sm: do
1362
+ try {
1363
+ var tmp = this.c7_1;
1364
+ switch (tmp) {
1365
+ case 0:
1366
+ this.d7_1 = 2;
1367
+ this.c7_1 = 1;
1368
+ suspendResult = readBuffer(this.p18_1, this);
1369
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1370
+ return suspendResult;
1371
+ }
1372
+
1373
+ continue $sm;
1374
+ case 1:
1375
+ var ARGUMENT = suspendResult;
1376
+ return readBytes(ARGUMENT);
1377
+ case 2:
1378
+ throw this.f7_1;
1379
+ }
1380
+ } catch ($p) {
1381
+ var e = $p;
1382
+ if (this.d7_1 === 2) {
1383
+ throw e;
1384
+ } else {
1385
+ this.c7_1 = this.d7_1;
1386
+ this.f7_1 = e;
1387
+ }
1388
+ }
1389
+ while (true);
1390
+ };
1391
+ function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
1392
+ CoroutineImpl.call(this, resultContinuation);
1393
+ this.y18_1 = _this__u8e3s4;
1394
+ this.z18_1 = channel;
1395
+ this.a19_1 = limit;
1396
+ }
1397
+ protoOf($copyToCOROUTINE$).k7 = function () {
1398
+ var suspendResult = this.e7_1;
1399
+ $sm: do
1400
+ try {
1401
+ var tmp = this.c7_1;
1402
+ switch (tmp) {
1403
+ case 0:
1404
+ this.d7_1 = 12;
1405
+ this.b19_1 = this.a19_1;
1406
+ this.c7_1 = 1;
1407
+ continue $sm;
1408
+ case 1:
1409
+ this.d7_1 = 8;
1410
+ this.d7_1 = 7;
1411
+ this.c7_1 = 2;
1412
+ continue $sm;
1413
+ case 2:
1414
+ if (!(!this.y18_1.c15() && compare(this.b19_1, new Long(0, 0)) > 0)) {
1415
+ this.c7_1 = 6;
1416
+ continue $sm;
1417
+ }
1418
+
1419
+ if (this.y18_1.v14().mg()) {
1420
+ this.c7_1 = 3;
1421
+ suspendResult = this.y18_1.e15(VOID, this);
1422
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1423
+ return suspendResult;
1424
+ }
1425
+ continue $sm;
1426
+ } else {
1427
+ this.c7_1 = 4;
1428
+ continue $sm;
1429
+ }
1430
+
1431
+ case 3:
1432
+ this.c7_1 = 4;
1433
+ continue $sm;
1434
+ case 4:
1435
+ var tmp0 = this.b19_1;
1436
+ var b = get_remaining(this.y18_1.v14());
1437
+ var count = compare(tmp0, b) <= 0 ? tmp0 : b;
1438
+ this.y18_1.v14().oh(this.z18_1.y14(), count);
1439
+ this.b19_1 = subtract(this.b19_1, count);
1440
+ this.c7_1 = 5;
1441
+ suspendResult = this.z18_1.t14(this);
1442
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1443
+ return suspendResult;
1444
+ }
1445
+
1446
+ continue $sm;
1447
+ case 5:
1448
+ this.c7_1 = 2;
1449
+ continue $sm;
1450
+ case 6:
1451
+ this.d7_1 = 12;
1452
+ this.c7_1 = 10;
1453
+ continue $sm;
1454
+ case 7:
1455
+ this.d7_1 = 8;
1456
+ var tmp_0 = this.f7_1;
1457
+ if (tmp_0 instanceof Error) {
1458
+ var cause = this.f7_1;
1459
+ this.y18_1.g15(cause);
1460
+ close_0(this.z18_1, cause);
1461
+ throw cause;
1462
+ } else {
1463
+ throw this.f7_1;
1464
+ }
1465
+
1466
+ case 8:
1467
+ this.d7_1 = 12;
1468
+ this.c19_1 = this.f7_1;
1469
+ this.c7_1 = 9;
1470
+ suspendResult = this.z18_1.t14(this);
1471
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1472
+ return suspendResult;
1473
+ }
1474
+
1475
+ continue $sm;
1476
+ case 9:
1477
+ throw this.c19_1;
1478
+ case 10:
1479
+ this.d7_1 = 12;
1480
+ this.c7_1 = 11;
1481
+ suspendResult = this.z18_1.t14(this);
1482
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1483
+ return suspendResult;
1484
+ }
1485
+
1486
+ continue $sm;
1487
+ case 11:
1488
+ return subtract(this.a19_1, this.b19_1);
1489
+ case 12:
1490
+ throw this.f7_1;
1491
+ }
1492
+ } catch ($p) {
1493
+ var e = $p;
1494
+ if (this.d7_1 === 12) {
1495
+ throw e;
1496
+ } else {
1497
+ this.c7_1 = this.d7_1;
1498
+ this.f7_1 = e;
1499
+ }
1500
+ }
1501
+ while (true);
1502
+ };
1503
+ function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
1504
+ CoroutineImpl.call(this, resultContinuation);
1505
+ this.l19_1 = _this__u8e3s4;
1506
+ this.m19_1 = byteString;
1507
+ }
1508
+ protoOf($skipIfFoundCOROUTINE$).k7 = function () {
1509
+ var suspendResult = this.e7_1;
1510
+ $sm: do
1511
+ try {
1512
+ var tmp = this.c7_1;
1513
+ switch (tmp) {
1514
+ case 0:
1515
+ this.d7_1 = 4;
1516
+ this.c7_1 = 1;
1517
+ suspendResult = peek(this.l19_1, this.m19_1.n(), this);
1518
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1519
+ return suspendResult;
1520
+ }
1521
+
1522
+ continue $sm;
1523
+ case 1:
1524
+ var ARGUMENT = suspendResult;
1525
+ if (equals(ARGUMENT, this.m19_1)) {
1526
+ this.c7_1 = 3;
1527
+ suspendResult = discard(this.l19_1, fromInt(this.m19_1.n()), this);
1528
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1529
+ return suspendResult;
1530
+ }
1531
+ continue $sm;
1532
+ } else {
1533
+ this.c7_1 = 2;
1534
+ continue $sm;
1535
+ }
1536
+
1537
+ case 2:
1538
+ return false;
1539
+ case 3:
1540
+ return true;
1541
+ case 4:
1542
+ throw this.f7_1;
1543
+ }
1544
+ } catch ($p) {
1545
+ var e = $p;
1546
+ if (this.d7_1 === 4) {
1547
+ throw e;
1548
+ } else {
1549
+ this.c7_1 = this.d7_1;
1550
+ this.f7_1 = e;
1551
+ }
1552
+ }
1553
+ while (true);
1554
+ };
1555
+ function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
1556
+ CoroutineImpl.call(this, resultContinuation);
1557
+ this.v19_1 = _this__u8e3s4;
1558
+ this.w19_1 = packet;
1559
+ }
1560
+ protoOf($readPacketCOROUTINE$).k7 = function () {
1561
+ var suspendResult = this.e7_1;
1562
+ $sm: do
1563
+ try {
1564
+ var tmp = this.c7_1;
1565
+ switch (tmp) {
1566
+ case 0:
1567
+ this.d7_1 = 6;
1568
+ this.x19_1 = new Buffer();
1569
+ this.c7_1 = 1;
1570
+ continue $sm;
1571
+ case 1:
1572
+ if (!(compare(this.x19_1.n(), fromInt(this.w19_1)) < 0)) {
1573
+ this.c7_1 = 5;
1574
+ continue $sm;
1575
+ }
1576
+
1577
+ if (this.v19_1.v14().mg()) {
1578
+ this.c7_1 = 2;
1579
+ suspendResult = this.v19_1.e15(VOID, this);
1580
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1581
+ return suspendResult;
1582
+ }
1583
+ continue $sm;
1584
+ } else {
1585
+ this.c7_1 = 3;
1586
+ continue $sm;
1587
+ }
1588
+
1589
+ case 2:
1590
+ this.c7_1 = 3;
1591
+ continue $sm;
1592
+ case 3:
1593
+ if (this.v19_1.c15()) {
1594
+ this.c7_1 = 5;
1595
+ continue $sm;
1596
+ } else {
1597
+ this.c7_1 = 4;
1598
+ continue $sm;
1599
+ }
1600
+
1601
+ case 4:
1602
+ if (compare(get_remaining(this.v19_1.v14()), subtract(numberToLong(this.w19_1), this.x19_1.n())) > 0) {
1603
+ this.v19_1.v14().oh(this.x19_1, subtract(numberToLong(this.w19_1), this.x19_1.n()));
1604
+ } else {
1605
+ this.v19_1.v14().ph(this.x19_1);
1606
+ }
1607
+
1608
+ this.c7_1 = 1;
1609
+ continue $sm;
1610
+ case 5:
1611
+ if (compare(this.x19_1.n(), fromInt(this.w19_1)) < 0) {
1612
+ throw EOFException_init_$Create$('Not enough data available, required ' + this.w19_1 + ' bytes but only ' + this.x19_1.n().toString() + ' available');
1613
+ }
1614
+
1615
+ return this.x19_1;
1616
+ case 6:
1617
+ throw this.f7_1;
1618
+ }
1619
+ } catch ($p) {
1620
+ var e = $p;
1621
+ if (this.d7_1 === 6) {
1622
+ throw e;
1623
+ } else {
1624
+ this.c7_1 = this.d7_1;
1625
+ this.f7_1 = e;
1626
+ }
1627
+ }
1628
+ while (true);
1629
+ };
1630
+ function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
1631
+ CoroutineImpl.call(this, resultContinuation);
1632
+ this.l1a_1 = _this__u8e3s4;
1633
+ this.m1a_1 = out;
1634
+ this.n1a_1 = max;
1635
+ this.o1a_1 = lineEnding;
1636
+ }
1637
+ protoOf($readUTF8LineToCOROUTINE$).k7 = function () {
1638
+ var suspendResult = this.e7_1;
1639
+ $sm: do
1640
+ try {
1641
+ var tmp = this.c7_1;
1642
+ switch (tmp) {
1643
+ case 0:
1644
+ this.d7_1 = 21;
1645
+ if (this.l1a_1.v14().mg()) {
1646
+ this.c7_1 = 1;
1647
+ suspendResult = this.l1a_1.e15(VOID, this);
1648
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1649
+ return suspendResult;
1650
+ }
1651
+ continue $sm;
1652
+ } else {
1653
+ this.c7_1 = 2;
1654
+ continue $sm;
1655
+ }
1656
+
1657
+ case 1:
1658
+ this.c7_1 = 2;
1659
+ continue $sm;
1660
+ case 2:
1661
+ if (this.l1a_1.c15())
1662
+ return false;
1663
+ var tmp_0 = this;
1664
+ tmp_0.u1a_1 = new Buffer();
1665
+ this.c7_1 = 3;
1666
+ continue $sm;
1667
+ case 3:
1668
+ this.r1a_1 = this.u1a_1;
1669
+ this.q1a_1 = null;
1670
+ this.c7_1 = 4;
1671
+ continue $sm;
1672
+ case 4:
1673
+ this.c7_1 = 5;
1674
+ continue $sm;
1675
+ case 5:
1676
+ this.c7_1 = 6;
1677
+ continue $sm;
1678
+ case 6:
1679
+ this.d7_1 = 18;
1680
+ this.d7_1 = 17;
1681
+ this.t1a_1 = this.r1a_1;
1682
+ this.c7_1 = 7;
1683
+ continue $sm;
1684
+ case 7:
1685
+ if (!!this.l1a_1.c15()) {
1686
+ this.c7_1 = 14;
1687
+ continue $sm;
1688
+ }
1689
+
1690
+ this.c7_1 = 8;
1691
+ continue $sm;
1692
+ case 8:
1693
+ if (!!this.l1a_1.v14().mg()) {
1694
+ this.c7_1 = 12;
1695
+ continue $sm;
1696
+ }
1697
+
1698
+ var b = this.l1a_1.v14().pg();
1699
+ if (b === 13) {
1700
+ if (this.l1a_1.v14().mg()) {
1701
+ this.c7_1 = 10;
1702
+ suspendResult = this.l1a_1.e15(VOID, this);
1703
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1704
+ return suspendResult;
1705
+ }
1706
+ continue $sm;
1707
+ } else {
1708
+ this.c7_1 = 11;
1709
+ continue $sm;
1710
+ }
1711
+ } else {
1712
+ if (b === 10) {
1713
+ readUTF8LineTo$checkLineEndingAllowed(this.o1a_1, Companion_getInstance_1().z19_1);
1714
+ this.m1a_1.h(readString(this.t1a_1));
1715
+ this.s1a_1 = true;
1716
+ this.d7_1 = 21;
1717
+ this.c7_1 = 15;
1718
+ continue $sm;
1719
+ } else {
1720
+ this.t1a_1.ei(b);
1721
+ this.c7_1 = 9;
1722
+ continue $sm;
1723
+ }
1724
+ }
1725
+
1726
+ case 9:
1727
+ this.c7_1 = 8;
1728
+ continue $sm;
1729
+ case 10:
1730
+ this.c7_1 = 11;
1731
+ continue $sm;
1732
+ case 11:
1733
+ if (this.l1a_1.v14().lg().hh(new Long(0, 0)) === 10) {
1734
+ readUTF8LineTo$checkLineEndingAllowed(this.o1a_1, Companion_getInstance_1().a1a_1);
1735
+ discard_0(this.l1a_1.v14(), new Long(1, 0));
1736
+ } else {
1737
+ readUTF8LineTo$checkLineEndingAllowed(this.o1a_1, Companion_getInstance_1().y19_1);
1738
+ }
1739
+
1740
+ this.m1a_1.h(readString(this.t1a_1));
1741
+ this.s1a_1 = true;
1742
+ this.d7_1 = 21;
1743
+ this.c7_1 = 15;
1744
+ continue $sm;
1745
+ case 12:
1746
+ if (compare(this.t1a_1.n(), fromInt(this.n1a_1)) >= 0) {
1747
+ throw new TooLongLineException('Line exceeds limit of ' + this.n1a_1 + ' characters');
1748
+ }
1749
+
1750
+ this.c7_1 = 13;
1751
+ suspendResult = this.l1a_1.e15(VOID, this);
1752
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1753
+ return suspendResult;
1754
+ }
1755
+
1756
+ continue $sm;
1757
+ case 13:
1758
+ this.c7_1 = 7;
1759
+ continue $sm;
1760
+ case 14:
1761
+ var tmp_1 = this;
1762
+ var this_0 = compare(this.t1a_1.n(), new Long(0, 0)) > 0;
1763
+ if (this_0) {
1764
+ this.m1a_1.h(readString(this.t1a_1));
1765
+ }
1766
+
1767
+ tmp_1.s1a_1 = this_0;
1768
+ this.d7_1 = 21;
1769
+ this.c7_1 = 15;
1770
+ var tmp_2 = this;
1771
+ continue $sm;
1772
+ case 15:
1773
+ var tmp_3 = this.s1a_1;
1774
+ this.d7_1 = 21;
1775
+ closeFinally(this.r1a_1, this.q1a_1);
1776
+ return tmp_3;
1777
+ case 16:
1778
+ this.d7_1 = 21;
1779
+ var tmp_4 = this;
1780
+ closeFinally(this.r1a_1, this.q1a_1);
1781
+ tmp_4.p1a_1 = Unit_instance;
1782
+ this.c7_1 = 20;
1783
+ continue $sm;
1784
+ case 17:
1785
+ this.d7_1 = 18;
1786
+ var tmp_5 = this.f7_1;
1787
+ if (tmp_5 instanceof Error) {
1788
+ var e = this.f7_1;
1789
+ var tmp_6 = this;
1790
+ this.q1a_1 = e;
1791
+ throw e;
1792
+ } else {
1793
+ throw this.f7_1;
1794
+ }
1795
+
1796
+ case 18:
1797
+ this.d7_1 = 21;
1798
+ var t = this.f7_1;
1799
+ closeFinally(this.r1a_1, this.q1a_1);
1800
+ throw t;
1801
+ case 19:
1802
+ this.d7_1 = 21;
1803
+ closeFinally(this.r1a_1, this.q1a_1);
1804
+ if (false) {
1805
+ this.c7_1 = 3;
1806
+ continue $sm;
1807
+ }
1808
+
1809
+ this.c7_1 = 20;
1810
+ continue $sm;
1811
+ case 20:
1812
+ return Unit_instance;
1813
+ case 21:
1814
+ throw this.f7_1;
1815
+ }
1816
+ } catch ($p) {
1817
+ var e_0 = $p;
1818
+ if (this.d7_1 === 21) {
1819
+ throw e_0;
1820
+ } else {
1821
+ this.c7_1 = this.d7_1;
1822
+ this.f7_1 = e_0;
1823
+ }
1824
+ }
1825
+ while (true);
1826
+ };
1827
+ function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
1828
+ CoroutineImpl.call(this, resultContinuation);
1829
+ this.d1b_1 = _this__u8e3s4;
1830
+ }
1831
+ protoOf($readBufferCOROUTINE$).k7 = function () {
1832
+ var suspendResult = this.e7_1;
1833
+ $sm: do
1834
+ try {
1835
+ var tmp = this.c7_1;
1836
+ switch (tmp) {
1837
+ case 0:
1838
+ this.d7_1 = 4;
1839
+ this.e1b_1 = new Buffer();
1840
+ this.c7_1 = 1;
1841
+ continue $sm;
1842
+ case 1:
1843
+ if (!!this.d1b_1.c15()) {
1844
+ this.c7_1 = 3;
1845
+ continue $sm;
1846
+ }
1847
+
1848
+ this.e1b_1.di(this.d1b_1.v14());
1849
+ this.c7_1 = 2;
1850
+ suspendResult = this.d1b_1.e15(VOID, this);
1851
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1852
+ return suspendResult;
1853
+ }
1854
+
1855
+ continue $sm;
1856
+ case 2:
1857
+ this.c7_1 = 1;
1858
+ continue $sm;
1859
+ case 3:
1860
+ var tmp0_safe_receiver = this.d1b_1.a15();
1861
+ if (tmp0_safe_receiver == null)
1862
+ null;
1863
+ else {
1864
+ throw tmp0_safe_receiver;
1865
+ }
1866
+
1867
+ return this.e1b_1;
1868
+ case 4:
1869
+ throw this.f7_1;
1870
+ }
1871
+ } catch ($p) {
1872
+ var e = $p;
1873
+ if (this.d7_1 === 4) {
1874
+ throw e;
1875
+ } else {
1876
+ this.c7_1 = this.d7_1;
1877
+ this.f7_1 = e;
1878
+ }
1879
+ }
1880
+ while (true);
1881
+ };
1882
+ function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
1883
+ CoroutineImpl.call(this, resultContinuation);
1884
+ this.n1b_1 = _this__u8e3s4;
1885
+ this.o1b_1 = count;
1886
+ }
1887
+ protoOf($peekCOROUTINE$).k7 = function () {
1888
+ var suspendResult = this.e7_1;
1889
+ $sm: do
1890
+ try {
1891
+ var tmp = this.c7_1;
1892
+ switch (tmp) {
1893
+ case 0:
1894
+ this.d7_1 = 3;
1895
+ if (this.n1b_1.c15())
1896
+ return null;
1897
+ this.c7_1 = 1;
1898
+ suspendResult = this.n1b_1.d15(this.o1b_1, this);
1899
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1900
+ return suspendResult;
1901
+ }
1902
+
1903
+ continue $sm;
1904
+ case 1:
1905
+ if (!suspendResult) {
1906
+ return null;
1907
+ } else {
1908
+ this.c7_1 = 2;
1909
+ continue $sm;
1910
+ }
1911
+
1912
+ case 2:
1913
+ return readByteString(this.n1b_1.v14().qh(), this.o1b_1);
1914
+ case 3:
1915
+ throw this.f7_1;
1916
+ }
1917
+ } catch ($p) {
1918
+ var e = $p;
1919
+ if (this.d7_1 === 3) {
1920
+ throw e;
1921
+ } else {
1922
+ this.c7_1 = this.d7_1;
1923
+ this.f7_1 = e;
1924
+ }
1925
+ }
1926
+ while (true);
1927
+ };
1928
+ function ByteWriteChannel() {
1929
+ }
1930
+ function flushIfNeeded(_this__u8e3s4, $completion) {
1931
+ var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
1932
+ tmp.e7_1 = Unit_instance;
1933
+ tmp.f7_1 = null;
1934
+ return tmp.k7();
1935
+ }
1936
+ function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
1937
+ CoroutineImpl.call(this, resultContinuation);
1938
+ this.x1b_1 = _this__u8e3s4;
1939
+ }
1940
+ protoOf($flushIfNeededCOROUTINE$).k7 = function () {
1941
+ var suspendResult = this.e7_1;
1942
+ $sm: do
1943
+ try {
1944
+ var tmp = this.c7_1;
1945
+ switch (tmp) {
1946
+ case 0:
1947
+ this.d7_1 = 3;
1948
+ rethrowCloseCauseIfNeeded_1(this.x1b_1);
1949
+ if (this.x1b_1.u14() || get_size(this.x1b_1.y14()) >= 1048576) {
1950
+ this.c7_1 = 1;
1951
+ suspendResult = this.x1b_1.t14(this);
1952
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1953
+ return suspendResult;
1954
+ }
1955
+ continue $sm;
1956
+ } else {
1957
+ this.c7_1 = 2;
1958
+ continue $sm;
1959
+ }
1960
+
1961
+ case 1:
1962
+ this.c7_1 = 2;
1963
+ continue $sm;
1964
+ case 2:
1965
+ return Unit_instance;
1966
+ case 3:
1967
+ throw this.f7_1;
1968
+ }
1969
+ } catch ($p) {
1970
+ var e = $p;
1971
+ if (this.d7_1 === 3) {
1972
+ throw e;
1973
+ } else {
1974
+ this.c7_1 = this.d7_1;
1975
+ this.f7_1 = e;
1976
+ }
1977
+ }
1978
+ while (true);
1979
+ };
1980
+ function get_NO_CALLBACK() {
1981
+ _init_properties_ByteWriteChannelOperations_kt__i7slrs();
1982
+ return NO_CALLBACK;
1983
+ }
1984
+ var NO_CALLBACK;
1985
+ function WriterJob(channel, job) {
1986
+ this.y1b_1 = channel;
1987
+ this.z1b_1 = job;
1988
+ }
1989
+ protoOf(WriterJob).sp = function () {
1990
+ return this.z1b_1;
1991
+ };
1992
+ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
1993
+ coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
1994
+ autoFlush = autoFlush === VOID ? false : autoFlush;
1995
+ _init_properties_ByteWriteChannelOperations_kt__i7slrs();
1996
+ return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
1997
+ }
1998
+ function WriterScope(channel, coroutineContext) {
1999
+ this.a1c_1 = channel;
2000
+ this.b1c_1 = coroutineContext;
2001
+ }
2002
+ protoOf(WriterScope).wj = function () {
2003
+ return this.b1c_1;
2004
+ };
2005
+ function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
2006
+ startIndex = startIndex === VOID ? 0 : startIndex;
2007
+ endIndex = endIndex === VOID ? value.length : endIndex;
2008
+ _this__u8e3s4.y14().vh(value, startIndex, endIndex);
2009
+ return flushIfNeeded(_this__u8e3s4, $completion);
2010
+ }
2011
+ function close_0(_this__u8e3s4, cause) {
2012
+ _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2013
+ if (cause == null) {
2014
+ fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
2015
+ } else {
2016
+ _this__u8e3s4.g15(cause);
2017
+ }
2018
+ }
2019
+ function invokeOnCompletion(_this__u8e3s4, block) {
2020
+ _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2021
+ return _this__u8e3s4.sp().yk(block);
2022
+ }
2023
+ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
2024
+ coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
2025
+ _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2026
+ // Inline function 'kotlin.apply' call
2027
+ var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
2028
+ this_0.yk(writer$lambda(channel));
2029
+ var job = this_0;
2030
+ return new WriterJob(channel, job);
2031
+ }
2032
+ function fireAndForget(_this__u8e3s4) {
2033
+ _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2034
+ startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
2035
+ }
2036
+ function writeByte(_this__u8e3s4, value, $completion) {
2037
+ _this__u8e3s4.y14().ei(value);
2038
+ return flushIfNeeded(_this__u8e3s4, $completion);
2039
+ }
2040
+ function NO_CALLBACK$1() {
2041
+ this.c1c_1 = EmptyCoroutineContext_getInstance();
2042
+ }
2043
+ protoOf(NO_CALLBACK$1).i7 = function () {
2044
+ return this.c1c_1;
2045
+ };
2046
+ protoOf(NO_CALLBACK$1).j7 = function (result) {
2047
+ return Unit_instance;
2048
+ };
2049
+ protoOf(NO_CALLBACK$1).n7 = function (result) {
2050
+ return this.j7(result);
2051
+ };
2052
+ function ByteWriteChannel$flushAndClose$ref(p0) {
2053
+ this.d1c_1 = p0;
2054
+ }
2055
+ protoOf(ByteWriteChannel$flushAndClose$ref).e1c = function ($completion) {
2056
+ return this.d1c_1.f15($completion);
2057
+ };
2058
+ protoOf(ByteWriteChannel$flushAndClose$ref).s8 = function ($completion) {
2059
+ return this.e1c($completion);
2060
+ };
2061
+ function ByteWriteChannel$flushAndClose$ref_0(p0) {
2062
+ var i = new ByteWriteChannel$flushAndClose$ref(p0);
2063
+ var l = function ($completion) {
2064
+ return i.e1c($completion);
2065
+ };
2066
+ l.callableName = 'flushAndClose';
2067
+ l.$arity = 0;
2068
+ return l;
2069
+ }
2070
+ function writer$slambda($block, $channel, resultContinuation) {
2071
+ this.n1c_1 = $block;
2072
+ this.o1c_1 = $channel;
2073
+ CoroutineImpl.call(this, resultContinuation);
2074
+ }
2075
+ protoOf(writer$slambda).w1c = function ($this$launch, $completion) {
2076
+ var tmp = this.x1c($this$launch, $completion);
2077
+ tmp.e7_1 = Unit_instance;
2078
+ tmp.f7_1 = null;
2079
+ return tmp.k7();
2080
+ };
2081
+ protoOf(writer$slambda).w7 = function (p1, $completion) {
2082
+ return this.w1c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
2083
+ };
2084
+ protoOf(writer$slambda).k7 = function () {
2085
+ var suspendResult = this.e7_1;
2086
+ $sm: do
2087
+ try {
2088
+ var tmp = this.c7_1;
2089
+ switch (tmp) {
2090
+ case 0:
2091
+ this.d7_1 = 14;
2092
+ this.s1c_1 = Job(get_job(this.p1c_1.wj()));
2093
+ this.c7_1 = 1;
2094
+ continue $sm;
2095
+ case 1:
2096
+ this.d7_1 = 4;
2097
+ this.d7_1 = 3;
2098
+ this.c7_1 = 2;
2099
+ suspendResult = this.n1c_1(new WriterScope(this.o1c_1, this.p1c_1.wj().jd(this.s1c_1)), this);
2100
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2101
+ return suspendResult;
2102
+ }
2103
+
2104
+ continue $sm;
2105
+ case 2:
2106
+ this.s1c_1.oq();
2107
+ var tmp_0;
2108
+ if (get_job(this.p1c_1.wj()).sk()) {
2109
+ this.o1c_1.g15(get_job(this.p1c_1.wj()).vk());
2110
+ tmp_0 = Unit_instance;
2111
+ }
2112
+
2113
+ this.d7_1 = 14;
2114
+ this.c7_1 = 9;
2115
+ continue $sm;
2116
+ case 3:
2117
+ this.d7_1 = 4;
2118
+ var tmp_1 = this.f7_1;
2119
+ if (tmp_1 instanceof Error) {
2120
+ var cause = this.f7_1;
2121
+ cancel(this.s1c_1, 'Exception thrown while writing to channel', cause);
2122
+ this.o1c_1.g15(cause);
2123
+ this.d7_1 = 14;
2124
+ this.c7_1 = 9;
2125
+ continue $sm;
2126
+ } else {
2127
+ throw this.f7_1;
2128
+ }
2129
+
2130
+ case 4:
2131
+ this.d7_1 = 14;
2132
+ this.t1c_1 = this.f7_1;
2133
+ this.c7_1 = 5;
2134
+ suspendResult = this.s1c_1.cl(this);
2135
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2136
+ return suspendResult;
2137
+ }
2138
+
2139
+ continue $sm;
2140
+ case 5:
2141
+ this.p1c_1;
2142
+ this.d7_1 = 7;
2143
+ var tmp_2 = this;
2144
+ tmp_2.v1c_1 = Companion_instance;
2145
+ this.c7_1 = 6;
2146
+ suspendResult = this.o1c_1.f15(this);
2147
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2148
+ return suspendResult;
2149
+ }
2150
+
2151
+ continue $sm;
2152
+ case 6:
2153
+ var tmp_3 = this;
2154
+ this.v1c_1;
2155
+ tmp_3.u1c_1 = _Result___init__impl__xyqfz8(Unit_instance);
2156
+ this.d7_1 = 14;
2157
+ this.c7_1 = 8;
2158
+ continue $sm;
2159
+ case 7:
2160
+ this.d7_1 = 14;
2161
+ var tmp_4 = this.f7_1;
2162
+ if (tmp_4 instanceof Error) {
2163
+ var e = this.f7_1;
2164
+ var tmp_5 = this;
2165
+ tmp_5.u1c_1 = _Result___init__impl__xyqfz8(createFailure(e));
2166
+ this.c7_1 = 8;
2167
+ continue $sm;
2168
+ } else {
2169
+ throw this.f7_1;
2170
+ }
2171
+
2172
+ case 8:
2173
+ this.d7_1 = 14;
2174
+ throw this.t1c_1;
2175
+ case 9:
2176
+ this.d7_1 = 14;
2177
+ this.c7_1 = 10;
2178
+ suspendResult = this.s1c_1.cl(this);
2179
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2180
+ return suspendResult;
2181
+ }
2182
+
2183
+ continue $sm;
2184
+ case 10:
2185
+ this.p1c_1;
2186
+ this.d7_1 = 12;
2187
+ var tmp_6 = this;
2188
+ tmp_6.r1c_1 = Companion_instance;
2189
+ this.c7_1 = 11;
2190
+ suspendResult = this.o1c_1.f15(this);
2191
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2192
+ return suspendResult;
2193
+ }
2194
+
2195
+ continue $sm;
2196
+ case 11:
2197
+ var tmp_7 = this;
2198
+ this.r1c_1;
2199
+ tmp_7.q1c_1 = _Result___init__impl__xyqfz8(Unit_instance);
2200
+ this.d7_1 = 14;
2201
+ this.c7_1 = 13;
2202
+ continue $sm;
2203
+ case 12:
2204
+ this.d7_1 = 14;
2205
+ var tmp_8 = this.f7_1;
2206
+ if (tmp_8 instanceof Error) {
2207
+ var e_0 = this.f7_1;
2208
+ var tmp_9 = this;
2209
+ tmp_9.q1c_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
2210
+ this.c7_1 = 13;
2211
+ continue $sm;
2212
+ } else {
2213
+ throw this.f7_1;
2214
+ }
2215
+
2216
+ case 13:
2217
+ this.d7_1 = 14;
2218
+ return Unit_instance;
2219
+ case 14:
2220
+ throw this.f7_1;
2221
+ }
2222
+ } catch ($p) {
2223
+ var e_1 = $p;
2224
+ if (this.d7_1 === 14) {
2225
+ throw e_1;
2226
+ } else {
2227
+ this.c7_1 = this.d7_1;
2228
+ this.f7_1 = e_1;
2229
+ }
2230
+ }
2231
+ while (true);
2232
+ };
2233
+ protoOf(writer$slambda).x1c = function ($this$launch, completion) {
2234
+ var i = new writer$slambda(this.n1c_1, this.o1c_1, completion);
2235
+ i.p1c_1 = $this$launch;
2236
+ return i;
2237
+ };
2238
+ function writer$slambda_0($block, $channel, resultContinuation) {
2239
+ var i = new writer$slambda($block, $channel, resultContinuation);
2240
+ var l = function ($this$launch, $completion) {
2241
+ return i.w1c($this$launch, $completion);
2242
+ };
2243
+ l.$arity = 1;
2244
+ return l;
2245
+ }
2246
+ function writer$lambda($channel) {
2247
+ return function (it) {
2248
+ var tmp;
2249
+ if (!(it == null) && !$channel.z14()) {
2250
+ $channel.g15(it);
2251
+ tmp = Unit_instance;
2252
+ }
2253
+ return Unit_instance;
2254
+ };
2255
+ }
2256
+ var properties_initialized_ByteWriteChannelOperations_kt_acrf6u;
2257
+ function _init_properties_ByteWriteChannelOperations_kt__i7slrs() {
2258
+ if (!properties_initialized_ByteWriteChannelOperations_kt_acrf6u) {
2259
+ properties_initialized_ByteWriteChannelOperations_kt_acrf6u = true;
2260
+ NO_CALLBACK = new NO_CALLBACK$1();
2261
+ }
2262
+ }
2263
+ function get_CLOSED() {
2264
+ _init_properties_CloseToken_kt__9ucr41();
2265
+ return CLOSED;
2266
+ }
2267
+ var CLOSED;
2268
+ function ClosedByteChannelException$_init_$ref_yjp351() {
2269
+ var l = function (p0) {
2270
+ return new ClosedByteChannelException(p0);
2271
+ };
2272
+ l.callableName = '<init>';
2273
+ return l;
2274
+ }
2275
+ function CloseToken(origin) {
2276
+ this.w14_1 = origin;
2277
+ }
2278
+ protoOf(CloseToken).y1c = function (wrap) {
2279
+ var tmp0_subject = this.w14_1;
2280
+ var tmp;
2281
+ if (tmp0_subject == null) {
2282
+ tmp = null;
2283
+ } else {
2284
+ if (isInterface(tmp0_subject, CopyableThrowable)) {
2285
+ tmp = this.w14_1.xq();
2286
+ } else {
2287
+ if (tmp0_subject instanceof CancellationException) {
2288
+ tmp = CancellationException_init_$Create$(this.w14_1.message, this.w14_1);
2289
+ } else {
2290
+ tmp = wrap(this.w14_1);
2291
+ }
2292
+ }
2293
+ }
2294
+ return tmp;
2295
+ };
2296
+ protoOf(CloseToken).b15 = function (wrap, $super) {
2297
+ var tmp;
2298
+ if (wrap === VOID) {
2299
+ tmp = ClosedByteChannelException$_init_$ref_yjp351();
2300
+ } else {
2301
+ tmp = wrap;
2302
+ }
2303
+ wrap = tmp;
2304
+ return $super === VOID ? this.y1c(wrap) : $super.y1c.call(this, wrap);
2305
+ };
2306
+ protoOf(CloseToken).x14 = function (wrap) {
2307
+ var tmp0_safe_receiver = this.y1c(wrap);
2308
+ var tmp;
2309
+ if (tmp0_safe_receiver == null) {
2310
+ tmp = null;
2311
+ } else {
2312
+ // Inline function 'kotlin.let' call
2313
+ throw tmp0_safe_receiver;
2314
+ }
2315
+ return tmp;
2316
+ };
2317
+ var properties_initialized_CloseToken_kt_lgg8zn;
2318
+ function _init_properties_CloseToken_kt__9ucr41() {
2319
+ if (!properties_initialized_CloseToken_kt_lgg8zn) {
2320
+ properties_initialized_CloseToken_kt_lgg8zn = true;
2321
+ CLOSED = new CloseToken(null);
2322
+ }
2323
+ }
2324
+ function transferFromDelegate($this) {
2325
+ updateConsumed($this);
2326
+ var appended = $this.a1d_1.di($this.z1c_1.v14());
2327
+ $this.b1d_1 = add($this.b1d_1, appended);
2328
+ }
2329
+ function updateConsumed($this) {
2330
+ $this.c1d_1 = add($this.c1d_1, subtract($this.b1d_1, $this.a1d_1.n()));
2331
+ $this.b1d_1 = $this.a1d_1.n();
2332
+ }
2333
+ function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
2334
+ CoroutineImpl.call(this, resultContinuation);
2335
+ this.l1d_1 = _this__u8e3s4;
2336
+ this.m1d_1 = min;
2337
+ }
2338
+ protoOf($awaitContentCOROUTINE$_0).k7 = function () {
2339
+ var suspendResult = this.e7_1;
2340
+ $sm: do
2341
+ try {
2342
+ var tmp = this.c7_1;
2343
+ switch (tmp) {
2344
+ case 0:
2345
+ this.d7_1 = 3;
2346
+ if (compare(this.l1d_1.v14().n(), fromInt(this.m1d_1)) >= 0) {
2347
+ return true;
2348
+ }
2349
+
2350
+ this.c7_1 = 1;
2351
+ suspendResult = this.l1d_1.z1c_1.d15(this.m1d_1, this);
2352
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
2353
+ return suspendResult;
2354
+ }
2355
+
2356
+ continue $sm;
2357
+ case 1:
2358
+ if (suspendResult) {
2359
+ transferFromDelegate(this.l1d_1);
2360
+ return true;
2361
+ } else {
2362
+ this.c7_1 = 2;
2363
+ continue $sm;
2364
+ }
2365
+
2366
+ case 2:
2367
+ return false;
2368
+ case 3:
2369
+ throw this.f7_1;
2370
+ }
2371
+ } catch ($p) {
2372
+ var e = $p;
2373
+ if (this.d7_1 === 3) {
2374
+ throw e;
2375
+ } else {
2376
+ this.c7_1 = this.d7_1;
2377
+ this.f7_1 = e;
2378
+ }
2379
+ }
2380
+ while (true);
2381
+ };
2382
+ function CountedByteReadChannel(delegate) {
2383
+ this.z1c_1 = delegate;
2384
+ this.a1d_1 = new Buffer();
2385
+ this.b1d_1 = new Long(0, 0);
2386
+ this.c1d_1 = new Long(0, 0);
2387
+ }
2388
+ protoOf(CountedByteReadChannel).n1d = function () {
2389
+ updateConsumed(this);
2390
+ return this.c1d_1;
2391
+ };
2392
+ protoOf(CountedByteReadChannel).a15 = function () {
2393
+ return this.z1c_1.a15();
2394
+ };
2395
+ protoOf(CountedByteReadChannel).c15 = function () {
2396
+ return this.a1d_1.mg() && this.z1c_1.c15();
2397
+ };
2398
+ protoOf(CountedByteReadChannel).v14 = function () {
2399
+ transferFromDelegate(this);
2400
+ return this.a1d_1;
2401
+ };
2402
+ protoOf(CountedByteReadChannel).d15 = function (min, $completion) {
2403
+ var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
2404
+ tmp.e7_1 = Unit_instance;
2405
+ tmp.f7_1 = null;
2406
+ return tmp.k7();
2407
+ };
2408
+ protoOf(CountedByteReadChannel).g15 = function (cause) {
2409
+ this.z1c_1.g15(cause);
2410
+ this.a1d_1.q2();
2411
+ };
2412
+ function counted(_this__u8e3s4) {
2413
+ return new CountedByteReadChannel(_this__u8e3s4);
2414
+ }
2415
+ function readText(_this__u8e3s4) {
2416
+ return readString_0(_this__u8e3s4);
2417
+ }
2418
+ function ClosedByteChannelException(cause) {
2419
+ cause = cause === VOID ? null : cause;
2420
+ IOException_init_$Init$(cause == null ? null : cause.message, cause, this);
2421
+ captureStack(this, ClosedByteChannelException);
2422
+ }
2423
+ function ClosedReadChannelException(cause) {
2424
+ cause = cause === VOID ? null : cause;
2425
+ ClosedByteChannelException.call(this, cause);
2426
+ captureStack(this, ClosedReadChannelException);
2427
+ }
2428
+ function ClosedWriteChannelException(cause) {
2429
+ cause = cause === VOID ? null : cause;
2430
+ ClosedByteChannelException.call(this, cause);
2431
+ captureStack(this, ClosedWriteChannelException);
2432
+ }
2433
+ function _LineEndingMode___init__impl__jo5bul(mode) {
2434
+ return mode;
2435
+ }
2436
+ function _get_mode__dah3bc($this) {
2437
+ return $this;
2438
+ }
2439
+ function LineEndingMode__contains_impl_q5pr68($this, other) {
2440
+ return (_get_mode__dah3bc($this) | _get_mode__dah3bc(other)) === _get_mode__dah3bc($this);
2441
+ }
2442
+ function LineEndingMode__plus_impl_ttpz2j($this, other) {
2443
+ return _LineEndingMode___init__impl__jo5bul(_get_mode__dah3bc($this) | _get_mode__dah3bc(other));
2444
+ }
2445
+ function LineEndingMode__toString_impl_j4h76r($this) {
2446
+ var tmp;
2447
+ if ($this === Companion_getInstance_1().y19_1) {
2448
+ tmp = 'CR';
2449
+ } else if ($this === Companion_getInstance_1().z19_1) {
2450
+ tmp = 'LF';
2451
+ } else if ($this === Companion_getInstance_1().a1a_1) {
2452
+ tmp = 'CRLF';
2453
+ } else {
2454
+ // Inline function 'kotlin.collections.filter' call
2455
+ var tmp0 = Companion_getInstance_1().c1a_1;
2456
+ // Inline function 'kotlin.collections.filterTo' call
2457
+ var destination = ArrayList_init_$Create$();
2458
+ var _iterator__ex2g4s = tmp0.i();
2459
+ while (_iterator__ex2g4s.j()) {
2460
+ var element = _iterator__ex2g4s.k();
2461
+ var it = element.o1d_1;
2462
+ if (LineEndingMode__contains_impl_q5pr68($this, it)) {
2463
+ destination.g(element);
2464
+ }
2465
+ }
2466
+ tmp = toString_1(destination);
2467
+ }
2468
+ return tmp;
2469
+ }
2470
+ function Companion_1() {
2471
+ Companion_instance_2 = this;
2472
+ this.y19_1 = _LineEndingMode___init__impl__jo5bul(1);
2473
+ this.z19_1 = _LineEndingMode___init__impl__jo5bul(2);
2474
+ this.a1a_1 = _LineEndingMode___init__impl__jo5bul(4);
2475
+ this.b1a_1 = _LineEndingMode___init__impl__jo5bul(7);
2476
+ this.c1a_1 = listOf([new LineEndingMode(this.y19_1), new LineEndingMode(this.z19_1), new LineEndingMode(this.a1a_1)]);
2477
+ }
2478
+ var Companion_instance_2;
2479
+ function Companion_getInstance_1() {
2480
+ if (Companion_instance_2 == null)
2481
+ new Companion_1();
2482
+ return Companion_instance_2;
2483
+ }
2484
+ function LineEndingMode__hashCode_impl_2mopm4($this) {
2485
+ return $this;
2486
+ }
2487
+ function LineEndingMode__equals_impl_qyr4nk($this, other) {
2488
+ if (!(other instanceof LineEndingMode))
2489
+ return false;
2490
+ if (!($this === other.o1d_1))
2491
+ return false;
2492
+ return true;
2493
+ }
2494
+ function LineEndingMode(mode) {
2495
+ Companion_getInstance_1();
2496
+ this.o1d_1 = mode;
2497
+ }
2498
+ protoOf(LineEndingMode).toString = function () {
2499
+ return LineEndingMode__toString_impl_j4h76r(this.o1d_1);
2500
+ };
2501
+ protoOf(LineEndingMode).hashCode = function () {
2502
+ return LineEndingMode__hashCode_impl_2mopm4(this.o1d_1);
2503
+ };
2504
+ protoOf(LineEndingMode).equals = function (other) {
2505
+ return LineEndingMode__equals_impl_qyr4nk(this.o1d_1, other);
2506
+ };
2507
+ function SourceByteReadChannel(source) {
2508
+ this.p1d_1 = source;
2509
+ this.q1d_1 = null;
2510
+ }
2511
+ protoOf(SourceByteReadChannel).a15 = function () {
2512
+ var tmp0_safe_receiver = this.q1d_1;
2513
+ return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b15();
2514
+ };
2515
+ protoOf(SourceByteReadChannel).c15 = function () {
2516
+ return this.p1d_1.mg();
2517
+ };
2518
+ protoOf(SourceByteReadChannel).v14 = function () {
2519
+ var tmp0_safe_receiver = this.a15();
2520
+ if (tmp0_safe_receiver == null)
2521
+ null;
2522
+ else {
2523
+ // Inline function 'kotlin.let' call
2524
+ throw tmp0_safe_receiver;
2525
+ }
2526
+ return this.p1d_1.lg();
2527
+ };
2528
+ protoOf(SourceByteReadChannel).d15 = function (min, $completion) {
2529
+ var tmp0_safe_receiver = this.a15();
2530
+ if (tmp0_safe_receiver == null)
2531
+ null;
2532
+ else {
2533
+ // Inline function 'kotlin.let' call
2534
+ throw tmp0_safe_receiver;
2535
+ }
2536
+ return this.p1d_1.og(fromInt(min));
2537
+ };
2538
+ protoOf(SourceByteReadChannel).g15 = function (cause) {
2539
+ if (!(this.q1d_1 == null))
2540
+ return Unit_instance;
2541
+ this.p1d_1.q2();
2542
+ var tmp = this;
2543
+ var tmp1_elvis_lhs = cause == null ? null : cause.message;
2544
+ tmp.q1d_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
2545
+ };
2546
+ function decode(_this__u8e3s4, input, max) {
2547
+ max = max === VOID ? 2147483647 : max;
2548
+ var tmp0 = fromInt(max);
2549
+ // Inline function 'kotlin.comparisons.minOf' call
2550
+ var b = input.lg().n();
2551
+ var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
2552
+ // Inline function 'kotlin.text.buildString' call
2553
+ var capacity = convertToInt(tmp$ret$0);
2554
+ // Inline function 'kotlin.apply' call
2555
+ var this_0 = StringBuilder_init_$Create$(capacity);
2556
+ decode_0(_this__u8e3s4, input, this_0, max);
2557
+ return this_0.toString();
2558
+ }
2559
+ function encode(_this__u8e3s4, input, fromIndex, toIndex) {
2560
+ fromIndex = fromIndex === VOID ? 0 : fromIndex;
2561
+ toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
2562
+ // Inline function 'io.ktor.utils.io.core.buildPacket' call
2563
+ var builder = new Buffer();
2564
+ encodeToImpl(_this__u8e3s4, builder, input, fromIndex, toIndex);
2565
+ return builder;
2566
+ }
2567
+ function TooLongLineException(message) {
2568
+ MalformedInputException.call(this, message);
2569
+ captureStack(this, TooLongLineException);
2570
+ }
2571
+ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
2572
+ var start = fromIndex;
2573
+ if (start >= toIndex)
2574
+ return Unit_instance;
2575
+ $l$loop: while (true) {
2576
+ var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, destination);
2577
+ // Inline function 'kotlin.check' call
2578
+ if (!(rc >= 0)) {
2579
+ throw IllegalStateException_init_$Create$('Check failed.');
2580
+ }
2581
+ start = start + rc | 0;
2582
+ if (start >= toIndex)
2583
+ break $l$loop;
2584
+ }
2585
+ }
2586
+ function canRead(_this__u8e3s4) {
2587
+ return !_this__u8e3s4.mg();
2588
+ }
2589
+ function readBytes(_this__u8e3s4, count) {
2590
+ count = count === VOID ? convertToInt(_this__u8e3s4.n()) : count;
2591
+ return readByteArray(_this__u8e3s4, count);
2592
+ }
2593
+ function writeFully_0(_this__u8e3s4, buffer, offset, length) {
2594
+ offset = offset === VOID ? 0 : offset;
2595
+ length = length === VOID ? buffer.length - offset | 0 : length;
2596
+ _this__u8e3s4.vh(buffer, offset, offset + length | 0);
2597
+ }
2598
+ function BytePacketBuilder() {
2599
+ return new Buffer();
2600
+ }
2601
+ function get_size(_this__u8e3s4) {
2602
+ return convertToInt(_this__u8e3s4.lg().n());
2603
+ }
2604
+ var ByteReadPacketEmpty;
2605
+ function get_remaining(_this__u8e3s4) {
2606
+ _init_properties_ByteReadPacket_kt__28475y();
2607
+ return _this__u8e3s4.lg().n();
2608
+ }
2609
+ function takeWhile(_this__u8e3s4, block) {
2610
+ _init_properties_ByteReadPacket_kt__28475y();
2611
+ while (!_this__u8e3s4.mg() && block(_this__u8e3s4.lg())) {
2612
+ }
2613
+ }
2614
+ function discard_0(_this__u8e3s4, count) {
2615
+ count = count === VOID ? new Long(-1, 2147483647) : count;
2616
+ _init_properties_ByteReadPacket_kt__28475y();
2617
+ _this__u8e3s4.og(count);
2618
+ // Inline function 'kotlin.comparisons.minOf' call
2619
+ var b = get_remaining(_this__u8e3s4);
2620
+ var countToDiscard = compare(count, b) <= 0 ? count : b;
2621
+ _this__u8e3s4.lg().jh(countToDiscard);
2622
+ return countToDiscard;
2623
+ }
2624
+ var properties_initialized_ByteReadPacket_kt_hw4st4;
2625
+ function _init_properties_ByteReadPacket_kt__28475y() {
2626
+ if (!properties_initialized_ByteReadPacket_kt_hw4st4) {
2627
+ properties_initialized_ByteReadPacket_kt_hw4st4 = true;
2628
+ ByteReadPacketEmpty = new Buffer();
2629
+ }
2630
+ }
2631
+ function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
2632
+ offset = offset === VOID ? 0 : offset;
2633
+ length = length === VOID ? buffer.length - offset | 0 : length;
2634
+ var result = _this__u8e3s4.kh(buffer, offset, offset + length | 0);
2635
+ return result === -1 ? 0 : result;
2636
+ }
2637
+ function readText_0(_this__u8e3s4, charset, max) {
2638
+ charset = charset === VOID ? Charsets_getInstance().r1d_1 : charset;
2639
+ max = max === VOID ? 2147483647 : max;
2640
+ if (charset.equals(Charsets_getInstance().r1d_1)) {
2641
+ if (max === 2147483647)
2642
+ return readString_0(_this__u8e3s4);
2643
+ var tmp0 = _this__u8e3s4.lg().n();
2644
+ // Inline function 'kotlin.math.min' call
2645
+ var b = fromInt(max);
2646
+ var count = compare(tmp0, b) <= 0 ? tmp0 : b;
2647
+ return readString_1(_this__u8e3s4, count);
2648
+ }
2649
+ return decode(charset.u1d(), _this__u8e3s4, max);
2650
+ }
2651
+ function toByteArray_0(_this__u8e3s4, charset) {
2652
+ charset = charset === VOID ? Charsets_getInstance().r1d_1 : charset;
2653
+ if (charset.equals(Charsets_getInstance().r1d_1))
2654
+ return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
2655
+ return encodeToByteArray_0(charset.v1d(), _this__u8e3s4, 0, _this__u8e3s4.length);
2656
+ }
2657
+ function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
2658
+ fromIndex = fromIndex === VOID ? 0 : fromIndex;
2659
+ toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
2660
+ charset = charset === VOID ? Charsets_getInstance().r1d_1 : charset;
2661
+ if (charset === Charsets_getInstance().r1d_1) {
2662
+ return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
2663
+ }
2664
+ encodeToImpl(charset.v1d(), _this__u8e3s4, text, fromIndex, toIndex);
2665
+ }
2666
+ function get_ByteArrayPool() {
2667
+ _init_properties_ByteArrayPool_kt__kfi3uj();
2668
+ return ByteArrayPool;
2669
+ }
2670
+ var ByteArrayPool;
2671
+ function ByteArrayPool$1() {
2672
+ DefaultPool.call(this, 128);
2673
+ }
2674
+ protoOf(ByteArrayPool$1).z1d = function () {
2675
+ return new Int8Array(4096);
2676
+ };
2677
+ var properties_initialized_ByteArrayPool_kt_td6pfh;
2678
+ function _init_properties_ByteArrayPool_kt__kfi3uj() {
2679
+ if (!properties_initialized_ByteArrayPool_kt_td6pfh) {
2680
+ properties_initialized_ByteArrayPool_kt_td6pfh = true;
2681
+ ByteArrayPool = new ByteArrayPool$1();
2682
+ }
2683
+ }
2684
+ function ObjectPool() {
2685
+ }
2686
+ function NoPoolImpl() {
2687
+ }
2688
+ protoOf(NoPoolImpl).h1e = function (instance) {
2689
+ return Unit_instance;
2690
+ };
2691
+ protoOf(NoPoolImpl).gn = function () {
2692
+ return Unit_instance;
2693
+ };
2694
+ function Companion_2() {
2695
+ }
2696
+ protoOf(Companion_2).i1e = function (name) {
2697
+ switch (name) {
2698
+ case 'UTF-8':
2699
+ case 'utf-8':
2700
+ case 'UTF8':
2701
+ case 'utf8':
2702
+ return Charsets_getInstance().r1d_1;
2703
+ }
2704
+ var tmp;
2705
+ var tmp_0;
2706
+ switch (name) {
2707
+ case 'ISO-8859-1':
2708
+ case 'iso-8859-1':
2709
+ tmp_0 = true;
2710
+ break;
2711
+ default:
2712
+ // Inline function 'kotlin.let' call
2713
+
2714
+ var it = replace_0(name, _Char___init__impl__6a9atx(95), _Char___init__impl__6a9atx(45));
2715
+ var tmp_1;
2716
+ if (it === 'iso-8859-1') {
2717
+ tmp_1 = true;
2718
+ } else {
2719
+ // Inline function 'kotlin.text.lowercase' call
2720
+ // Inline function 'kotlin.js.asDynamic' call
2721
+ tmp_1 = it.toLowerCase() === 'iso-8859-1';
2722
+ }
2723
+
2724
+ tmp_0 = tmp_1;
2725
+ break;
2726
+ }
2727
+ if (tmp_0) {
2728
+ tmp = true;
2729
+ } else {
2730
+ tmp = name === 'latin1' || name === 'Latin1';
2731
+ }
2732
+ if (tmp) {
2733
+ return Charsets_getInstance().s1d_1;
2734
+ }
2735
+ throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
2736
+ };
2737
+ var Companion_instance_3;
2738
+ function Companion_getInstance_2() {
2739
+ return Companion_instance_3;
2740
+ }
2741
+ function Charset(_name) {
2742
+ this.t1d_1 = _name;
2743
+ }
2744
+ protoOf(Charset).equals = function (other) {
2745
+ if (this === other)
2746
+ return true;
2747
+ if (other == null || !(this.constructor == other.constructor))
2748
+ return false;
2749
+ if (!(other instanceof Charset))
2750
+ THROW_CCE();
2751
+ return this.t1d_1 === other.t1d_1;
2752
+ };
2753
+ protoOf(Charset).hashCode = function () {
2754
+ return getStringHashCode(this.t1d_1);
2755
+ };
2756
+ protoOf(Charset).toString = function () {
2757
+ return this.t1d_1;
2758
+ };
2759
+ function get_name(_this__u8e3s4) {
2760
+ return _this__u8e3s4.t1d_1;
2761
+ }
2762
+ function Charsets() {
2763
+ Charsets_instance = this;
2764
+ this.r1d_1 = new CharsetImpl('UTF-8');
2765
+ this.s1d_1 = new CharsetImpl('ISO-8859-1');
2766
+ }
2767
+ var Charsets_instance;
2768
+ function Charsets_getInstance() {
2769
+ if (Charsets_instance == null)
2770
+ new Charsets();
2771
+ return Charsets_instance;
2772
+ }
2773
+ function MalformedInputException(message) {
2774
+ IOException_init_$Init$_0(message, this);
2775
+ captureStack(this, MalformedInputException);
2776
+ }
2777
+ function CharsetDecoder(_charset) {
2778
+ this.j1e_1 = _charset;
2779
+ }
2780
+ function forName(_this__u8e3s4, name) {
2781
+ return Companion_instance_3.i1e(name);
2782
+ }
2783
+ function CharsetEncoder(_charset) {
2784
+ this.k1e_1 = _charset;
2785
+ }
2786
+ function decode_0(_this__u8e3s4, input, dst, max) {
2787
+ var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
2788
+ var tmp0 = input.lg().n();
2789
+ // Inline function 'kotlin.comparisons.minOf' call
2790
+ var b = fromInt(max);
2791
+ var count = compare(tmp0, b) <= 0 ? tmp0 : b;
2792
+ var tmp = readByteArray(input, convertToInt(count));
2793
+ var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
2794
+ var tmp_0;
2795
+ try {
2796
+ tmp_0 = decoder.l1e(array);
2797
+ } catch ($p) {
2798
+ var tmp_1;
2799
+ if ($p instanceof Error) {
2800
+ var cause = $p;
2801
+ var tmp0_elvis_lhs = cause.message;
2802
+ throw new MalformedInputException('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
2803
+ } else {
2804
+ throw $p;
2805
+ }
2806
+ }
2807
+ var result = tmp_0;
2808
+ dst.h(result);
2809
+ return result.length;
2810
+ }
2811
+ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
2812
+ // Inline function 'kotlin.require' call
2813
+ // Inline function 'kotlin.require' call
2814
+ if (!(fromIndex <= toIndex)) {
2815
+ var message = 'Failed requirement.';
2816
+ throw IllegalArgumentException_init_$Create$(toString_1(message));
2817
+ }
2818
+ if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().s1d_1)) {
2819
+ return encodeISO88591(input, fromIndex, toIndex, dst);
2820
+ }
2821
+ // Inline function 'kotlin.require' call
2822
+ if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().r1d_1)) {
2823
+ var message_0 = 'Only UTF-8 encoding is supported in JS';
2824
+ throw IllegalArgumentException_init_$Create$(toString_1(message_0));
2825
+ }
2826
+ var encoder = new TextEncoder();
2827
+ // Inline function 'kotlin.text.substring' call
2828
+ var tmp$ret$5 = toString_1(charSequenceSubSequence(input, fromIndex, toIndex));
2829
+ var result = encoder.encode(tmp$ret$5);
2830
+ // Inline function 'kotlin.js.unsafeCast' call
2831
+ // Inline function 'kotlin.js.asDynamic' call
2832
+ dst.yh(result);
2833
+ return result.length;
2834
+ }
2835
+ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
2836
+ fromIndex = fromIndex === VOID ? 0 : fromIndex;
2837
+ toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
2838
+ return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
2839
+ }
2840
+ function CharsetImpl(name) {
2841
+ Charset.call(this, name);
2842
+ }
2843
+ protoOf(CharsetImpl).v1d = function () {
2844
+ return new CharsetEncoderImpl(this);
2845
+ };
2846
+ protoOf(CharsetImpl).u1d = function () {
2847
+ return new CharsetDecoderImpl(this);
2848
+ };
2849
+ function get_charset(_this__u8e3s4) {
2850
+ return _this__u8e3s4.j1e_1;
2851
+ }
2852
+ function get_charset_0(_this__u8e3s4) {
2853
+ return _this__u8e3s4.k1e_1;
2854
+ }
2855
+ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
2856
+ fromIndex = fromIndex === VOID ? 0 : fromIndex;
2857
+ toIndex = toIndex === VOID ? charSequenceLength(input) : toIndex;
2858
+ var start = fromIndex;
2859
+ if (start >= toIndex)
2860
+ return new Int8Array(0);
2861
+ var dst = new Buffer();
2862
+ var rc = encodeImpl(_this__u8e3s4, input, start, toIndex, dst);
2863
+ start = start + rc | 0;
2864
+ if (start === toIndex) {
2865
+ return readByteArray_0(dst);
2866
+ }
2867
+ encodeToImpl(_this__u8e3s4, dst, input, start, toIndex);
2868
+ return readByteArray_0(dst);
2869
+ }
2870
+ function CharsetEncoderImpl(charset) {
2871
+ CharsetEncoder.call(this, charset);
2872
+ this.o1e_1 = charset;
2873
+ }
2874
+ protoOf(CharsetEncoderImpl).toString = function () {
2875
+ return 'CharsetEncoderImpl(charset=' + this.o1e_1.toString() + ')';
2876
+ };
2877
+ protoOf(CharsetEncoderImpl).hashCode = function () {
2878
+ return this.o1e_1.hashCode();
2879
+ };
2880
+ protoOf(CharsetEncoderImpl).equals = function (other) {
2881
+ if (this === other)
2882
+ return true;
2883
+ if (!(other instanceof CharsetEncoderImpl))
2884
+ return false;
2885
+ if (!this.o1e_1.equals(other.o1e_1))
2886
+ return false;
2887
+ return true;
2888
+ };
2889
+ function CharsetDecoderImpl(charset) {
2890
+ CharsetDecoder.call(this, charset);
2891
+ this.q1e_1 = charset;
2892
+ }
2893
+ protoOf(CharsetDecoderImpl).toString = function () {
2894
+ return 'CharsetDecoderImpl(charset=' + this.q1e_1.toString() + ')';
2895
+ };
2896
+ protoOf(CharsetDecoderImpl).hashCode = function () {
2897
+ return this.q1e_1.hashCode();
2898
+ };
2899
+ protoOf(CharsetDecoderImpl).equals = function (other) {
2900
+ if (this === other)
2901
+ return true;
2902
+ if (!(other instanceof CharsetDecoderImpl))
2903
+ return false;
2904
+ if (!this.q1e_1.equals(other.q1e_1))
2905
+ return false;
2906
+ return true;
2907
+ };
2908
+ function Decoder(encoding, fatal) {
2909
+ fatal = fatal === VOID ? true : fatal;
2910
+ var tmp;
2911
+ try {
2912
+ tmp = toKtor(new TextDecoder(encoding, textDecoderOptions(fatal)));
2913
+ } catch ($p) {
2914
+ var tmp_0;
2915
+ if ($p instanceof Error) {
2916
+ var cause = $p;
2917
+ tmp_0 = new TextDecoderFallback(encoding, fatal);
2918
+ } else {
2919
+ throw $p;
2920
+ }
2921
+ tmp = tmp_0;
2922
+ }
2923
+ return tmp;
2924
+ }
2925
+ function toKtor(_this__u8e3s4) {
2926
+ return new toKtor$1(_this__u8e3s4);
2927
+ }
2928
+ function textDecoderOptions(fatal) {
2929
+ fatal = fatal === VOID ? false : fatal;
2930
+ // Inline function 'kotlin.apply' call
2931
+ var this_0 = new Object();
2932
+ // Inline function 'kotlin.js.asDynamic' call
2933
+ // Inline function 'kotlin.with' call
2934
+ this_0.fatal = fatal;
2935
+ return this_0;
2936
+ }
2937
+ function toKtor$1($this_toKtor) {
2938
+ this.r1e_1 = $this_toKtor;
2939
+ }
2940
+ protoOf(toKtor$1).l1e = function (buffer) {
2941
+ return this.r1e_1.decode(buffer);
2942
+ };
2943
+ function get_ENCODING_ALIASES() {
2944
+ _init_properties_TextDecoderFallback_js_kt__an7r6m();
2945
+ return ENCODING_ALIASES;
2946
+ }
2947
+ var ENCODING_ALIASES;
2948
+ function get_REPLACEMENT() {
2949
+ _init_properties_TextDecoderFallback_js_kt__an7r6m();
2950
+ return REPLACEMENT;
2951
+ }
2952
+ var REPLACEMENT;
2953
+ function TextDecoderFallback(encoding, fatal) {
2954
+ this.s1e_1 = fatal;
2955
+ // Inline function 'kotlin.text.trim' call
2956
+ // Inline function 'kotlin.text.lowercase' call
2957
+ // Inline function 'kotlin.js.asDynamic' call
2958
+ var requestedEncoding = toString_1(trim(isCharSequence(encoding) ? encoding : THROW_CCE())).toLowerCase();
2959
+ // Inline function 'kotlin.check' call
2960
+ if (!get_ENCODING_ALIASES().k1(requestedEncoding)) {
2961
+ var message = encoding + ' is not supported.';
2962
+ throw IllegalStateException_init_$Create$(toString_1(message));
2963
+ }
2964
+ }
2965
+ protoOf(TextDecoderFallback).l1e = function (buffer) {
2966
+ // Inline function 'io.ktor.utils.io.core.buildPacket' call
2967
+ var builder = new Buffer();
2968
+ var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
2969
+ var inductionVariable = 0;
2970
+ var last = bytes.length;
2971
+ if (inductionVariable < last)
2972
+ $l$loop: do {
2973
+ var index = inductionVariable;
2974
+ inductionVariable = inductionVariable + 1 | 0;
2975
+ // Inline function 'org.khronos.webgl.get' call
2976
+ // Inline function 'kotlin.js.asDynamic' call
2977
+ var byte = bytes[index];
2978
+ var point = toCodePoint(byte);
2979
+ if (point < 0) {
2980
+ // Inline function 'kotlin.check' call
2981
+ if (!!this.s1e_1) {
2982
+ var message = 'Invalid character: ' + point;
2983
+ throw IllegalStateException_init_$Create$(toString_1(message));
2984
+ }
2985
+ writeFully_0(builder, get_REPLACEMENT());
2986
+ continue $l$loop;
2987
+ }
2988
+ if (point > 255) {
2989
+ builder.ei(toByte(point >> 8));
2990
+ }
2991
+ builder.ei(toByte(point & 255));
2992
+ }
2993
+ while (inductionVariable < last);
2994
+ return decodeToString_0(readByteArray_0(builder));
2995
+ };
2996
+ function toCodePoint(_this__u8e3s4) {
2997
+ _init_properties_TextDecoderFallback_js_kt__an7r6m();
2998
+ var value = _this__u8e3s4 & 255;
2999
+ if (isASCII(value)) {
3000
+ return value;
3001
+ }
3002
+ return get_WIN1252_TABLE()[value - 128 | 0];
3003
+ }
3004
+ function isASCII(_this__u8e3s4) {
3005
+ _init_properties_TextDecoderFallback_js_kt__an7r6m();
3006
+ return 0 <= _this__u8e3s4 ? _this__u8e3s4 <= 127 : false;
3007
+ }
3008
+ var properties_initialized_TextDecoderFallback_js_kt_6rekzk;
3009
+ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
3010
+ if (!properties_initialized_TextDecoderFallback_js_kt_6rekzk) {
3011
+ properties_initialized_TextDecoderFallback_js_kt_6rekzk = true;
3012
+ ENCODING_ALIASES = setOf(['ansi_x3.4-1968', 'ascii', 'cp1252', 'cp819', 'csisolatin1', 'ibm819', 'iso-8859-1', 'iso-ir-100', 'iso8859-1', 'iso88591', 'iso_8859-1', 'iso_8859-1:1987', 'l1', 'latin1', 'us-ascii', 'windows-1252', 'x-cp1252']);
3013
+ // Inline function 'kotlin.byteArrayOf' call
3014
+ REPLACEMENT = new Int8Array([-17, -65, -67]);
3015
+ }
3016
+ }
3017
+ function get_DEVELOPMENT_MODE() {
3018
+ return false;
3019
+ }
3020
+ function ioDispatcher() {
3021
+ return Dispatchers_getInstance().eu_1;
3022
+ }
3023
+ function encodeISO88591(input, fromIndex, toIndex, dst) {
3024
+ if (fromIndex >= toIndex)
3025
+ return 0;
3026
+ var inductionVariable = fromIndex;
3027
+ if (inductionVariable < toIndex)
3028
+ do {
3029
+ var index = inductionVariable;
3030
+ inductionVariable = inductionVariable + 1 | 0;
3031
+ // Inline function 'kotlin.code' call
3032
+ var this_0 = charSequenceGet(input, index);
3033
+ var character = Char__toInt_impl_vasixd(this_0);
3034
+ if (character > 255) {
3035
+ failedToMapError(character);
3036
+ }
3037
+ dst.ei(toByte(character));
3038
+ }
3039
+ while (inductionVariable < toIndex);
3040
+ return toIndex - fromIndex | 0;
3041
+ }
3042
+ function failedToMapError(ch) {
3043
+ throw new MalformedInputException('The character with unicode point ' + ch + " couldn't be mapped to ISO-8859-1 character");
3044
+ }
3045
+ function get_WIN1252_TABLE() {
3046
+ _init_properties_Win1252Table_kt__tl0v64();
3047
+ return WIN1252_TABLE;
3048
+ }
3049
+ var WIN1252_TABLE;
3050
+ var properties_initialized_Win1252Table_kt_pkmjoq;
3051
+ function _init_properties_Win1252Table_kt__tl0v64() {
3052
+ if (!properties_initialized_Win1252Table_kt_pkmjoq) {
3053
+ properties_initialized_Win1252Table_kt_pkmjoq = true;
3054
+ // Inline function 'kotlin.intArrayOf' call
3055
+ WIN1252_TABLE = new Int32Array([8364, -1, 8218, 402, 8222, 8230, 8224, 8225, 710, 8240, 352, 8249, 338, -1, 381, -1, -1, 8216, 8217, 8220, 8221, 8226, 8211, 8212, 732, 8482, 353, 8250, 339, -1, 382, 376, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255]);
3056
+ }
3057
+ }
3058
+ function DefaultPool(capacity) {
3059
+ this.a1e_1 = capacity;
3060
+ var tmp = this;
3061
+ // Inline function 'kotlin.arrayOfNulls' call
3062
+ var size = this.a1e_1;
3063
+ tmp.b1e_1 = Array(size);
3064
+ this.c1e_1 = 0;
3065
+ }
3066
+ protoOf(DefaultPool).d1e = function (instance) {
3067
+ };
3068
+ protoOf(DefaultPool).e1e = function (instance) {
3069
+ return instance;
3070
+ };
3071
+ protoOf(DefaultPool).f1e = function (instance) {
3072
+ };
3073
+ protoOf(DefaultPool).g1e = function () {
3074
+ if (this.c1e_1 === 0)
3075
+ return this.z1d();
3076
+ this.c1e_1 = this.c1e_1 - 1 | 0;
3077
+ var idx = this.c1e_1;
3078
+ var tmp = this.b1e_1[idx];
3079
+ var instance = !(tmp == null) ? tmp : THROW_CCE();
3080
+ this.b1e_1[idx] = null;
3081
+ return this.e1e(instance);
3082
+ };
3083
+ protoOf(DefaultPool).h1e = function (instance) {
3084
+ this.f1e(instance);
3085
+ if (this.c1e_1 === this.a1e_1) {
3086
+ this.d1e(instance);
3087
+ } else {
3088
+ var _unary__edvuaz = this.c1e_1;
3089
+ this.c1e_1 = _unary__edvuaz + 1 | 0;
3090
+ this.b1e_1[_unary__edvuaz] = instance;
3091
+ }
3092
+ };
3093
+ protoOf(DefaultPool).gn = function () {
3094
+ var inductionVariable = 0;
3095
+ var last = this.c1e_1;
3096
+ if (inductionVariable < last)
3097
+ do {
3098
+ var i = inductionVariable;
3099
+ inductionVariable = inductionVariable + 1 | 0;
3100
+ var tmp = this.b1e_1[i];
3101
+ var instance = !(tmp == null) ? tmp : THROW_CCE();
3102
+ this.b1e_1[i] = null;
3103
+ this.d1e(instance);
3104
+ }
3105
+ while (inductionVariable < last);
3106
+ this.c1e_1 = 0;
3107
+ };
3108
+ //region block: post-declaration
3109
+ protoOf(Read).y12 = resume;
3110
+ protoOf(Read).z12 = resume_0;
3111
+ protoOf(Write).y12 = resume;
3112
+ protoOf(Write).z12 = resume_0;
3113
+ protoOf(ByteChannel).e15 = awaitContent$default;
3114
+ protoOf(ByteReadChannel$Companion$Empty$1).e15 = awaitContent$default;
3115
+ protoOf(CountedByteReadChannel).e15 = awaitContent$default;
3116
+ protoOf(SourceByteReadChannel).e15 = awaitContent$default;
3117
+ protoOf(DefaultPool).q2 = close;
3118
+ protoOf(NoPoolImpl).q2 = close;
3119
+ //endregion
3120
+ //region block: init
3121
+ Empty_instance = new Empty();
3122
+ Companion_instance_3 = new Companion_2();
3123
+ //endregion
3124
+ //region block: exports
3125
+ _.$_$ = _.$_$ || {};
3126
+ _.$_$.a = copyTo;
3127
+ _.$_$.b = readAvailable;
3128
+ _.$_$.c = readPacket;
3129
+ _.$_$.d = readRemaining;
3130
+ _.$_$.e = readUTF8LineTo;
3131
+ _.$_$.f = readUntil;
3132
+ _.$_$.g = skipIfFound;
3133
+ _.$_$.h = toByteArray;
3134
+ _.$_$.i = writeFully;
3135
+ _.$_$.j = LineEndingMode__plus_impl_ttpz2j;
3136
+ _.$_$.k = Charsets_getInstance;
3137
+ _.$_$.l = Companion_getInstance_0;
3138
+ _.$_$.m = Companion_getInstance_1;
3139
+ _.$_$.n = MalformedInputException;
3140
+ _.$_$.o = decode;
3141
+ _.$_$.p = encode;
3142
+ _.$_$.q = forName;
3143
+ _.$_$.r = get_name;
3144
+ _.$_$.s = canRead;
3145
+ _.$_$.t = readText_0;
3146
+ _.$_$.u = get_remaining;
3147
+ _.$_$.v = takeWhile;
3148
+ _.$_$.w = toByteArray_0;
3149
+ _.$_$.x = writeFully_0;
3150
+ _.$_$.y = writeText;
3151
+ _.$_$.z = get_ByteArrayPool;
3152
+ _.$_$.a1 = DefaultPool;
3153
+ _.$_$.b1 = NoPoolImpl;
3154
+ _.$_$.c1 = ByteChannel;
3155
+ _.$_$.d1 = ByteReadChannel;
3156
+ _.$_$.e1 = ByteReadChannel_1;
3157
+ _.$_$.f1 = WriterScope;
3158
+ _.$_$.g1 = cancel_0;
3159
+ _.$_$.h1 = close_0;
3160
+ _.$_$.i1 = counted;
3161
+ _.$_$.j1 = invokeOnCompletion;
3162
+ _.$_$.k1 = ioDispatcher;
3163
+ _.$_$.l1 = readText;
3164
+ _.$_$.m1 = writer;
11
3165
  //endregion
12
3166
  return _;
13
3167
  }));