@solibo/solibo-sdk 1.5.18 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KmLogging-logging.mjs +110 -110
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1545 -1545
- package/KotlinBigInteger-bignum.mjs +1198 -1198
- package/MultiplatformSettings-multiplatform-settings-test.mjs +19 -19
- package/MultiplatformSettings-multiplatform-settings.mjs +17 -17
- package/Stately-stately-concurrency.mjs +5 -5
- package/cryptography-kotlin-cryptography-bigint.mjs +33 -33
- package/cryptography-kotlin-cryptography-core.mjs +49 -49
- package/cryptography-kotlin-cryptography-provider-base.mjs +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +175 -175
- package/cryptography-kotlin-cryptography-random.mjs +26 -26
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +204 -204
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +332 -332
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +16 -16
- package/index.mjs +6 -0
- package/kotlin-kotlin-stdlib.mjs +2141 -2051
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2488 -2461
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +451 -451
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1832 -1832
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1383 -1383
- package/ktor-ktor-client-auth.mjs +463 -463
- package/ktor-ktor-client-content-negotiation.mjs +184 -184
- package/ktor-ktor-client-core.mjs +4457 -4456
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs +785 -0
- package/ktor-ktor-client-encoding.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +1080 -1080
- package/ktor-ktor-client-mock.mjs +79 -79
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +480 -480
- package/ktor-ktor-http.mjs +1296 -997
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1120 -1097
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +228 -228
- package/ktor-ktor-serialization.mjs +105 -105
- package/ktor-ktor-utils.mjs +1152 -1041
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +741 -741
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +77103 -73805
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +318 -3
- package/solibo-sdk-sdk.mjs +6928 -6854
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -37,9 +37,9 @@ import {
|
|
|
37
37
|
IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
|
|
38
38
|
subtract2orl8z9upxd9l as subtract,
|
|
39
39
|
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
40
|
+
initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
|
|
40
41
|
EmptyCoroutineContext_instance101eax45qp7ot as EmptyCoroutineContext_instance,
|
|
41
42
|
Continuation1aa2oekvx7jm7 as Continuation,
|
|
42
|
-
initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
|
|
43
43
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
44
44
|
CancellationException_init_$Create$3ch6sfo7bilrl as CancellationException_init_$Create$,
|
|
45
45
|
CancellationException3b36o9qz53rgr as CancellationException,
|
|
@@ -65,8 +65,8 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
|
|
67
67
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
68
|
-
launch1c91vkjzdi9sd as launch,
|
|
69
68
|
startCoroutineCancellable18shtfwdieib as startCoroutineCancellable,
|
|
69
|
+
launch1c91vkjzdi9sd as launch,
|
|
70
70
|
get_job2zvlvce9o9a29 as get_job,
|
|
71
71
|
Job13y4jkazwjho0 as Job,
|
|
72
72
|
cancel1xim2hrvjmwpn as cancel,
|
|
@@ -98,10 +98,10 @@ initMetadataForCompanion(Companion);
|
|
|
98
98
|
initMetadataForObject(Empty, 'Empty');
|
|
99
99
|
initMetadataForClass(Closed, 'Closed');
|
|
100
100
|
function resume() {
|
|
101
|
-
return this.
|
|
101
|
+
return this.w2u().x9(Companion_getInstance().t2u_1);
|
|
102
102
|
}
|
|
103
103
|
function resume_0(throwable) {
|
|
104
|
-
var tmp = this.
|
|
104
|
+
var tmp = this.w2u();
|
|
105
105
|
var tmp_0;
|
|
106
106
|
if (throwable == null) {
|
|
107
107
|
tmp_0 = null;
|
|
@@ -112,7 +112,7 @@ function resume_0(throwable) {
|
|
|
112
112
|
tmp_0 = new Result(tmp$ret$0);
|
|
113
113
|
}
|
|
114
114
|
var tmp1_elvis_lhs = tmp_0;
|
|
115
|
-
return tmp.
|
|
115
|
+
return tmp.x9(tmp1_elvis_lhs == null ? Companion_getInstance().t2u_1 : tmp1_elvis_lhs.nq_1);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(Task, 'Task');
|
|
118
118
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -122,7 +122,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
122
122
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
123
123
|
function awaitContent$default(min, $completion, $super) {
|
|
124
124
|
min = min === VOID ? 1 : min;
|
|
125
|
-
return $super === VOID ? this.
|
|
125
|
+
return $super === VOID ? this.d2x(min, $completion) : $super.d2x.call(this, min, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
128
128
|
function get_autoFlush() {
|
|
@@ -150,11 +150,12 @@ initMetadataForCoroutine($readRemainingCOROUTINE$_0, CoroutineImpl);
|
|
|
150
150
|
initMetadataForCoroutine($peekCOROUTINE$, CoroutineImpl);
|
|
151
151
|
initMetadataForCoroutine($internalReadLineToCOROUTINE$, CoroutineImpl);
|
|
152
152
|
initMetadataForCoroutine($internalReadLineTo$discardCrlfOrCrCOROUTINE$, CoroutineImpl);
|
|
153
|
+
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
|
|
153
154
|
initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
|
|
154
155
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
155
156
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
156
157
|
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
157
|
-
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$
|
|
158
|
+
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref_1, VOID, VOID, [0]);
|
|
158
159
|
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
159
160
|
initMetadataForCoroutine($writePacketCOROUTINE$, CoroutineImpl);
|
|
160
161
|
initMetadataForClass(CloseToken, 'CloseToken');
|
|
@@ -170,7 +171,7 @@ initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID,
|
|
|
170
171
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
171
172
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
172
173
|
function close() {
|
|
173
|
-
this.
|
|
174
|
+
this.t1y();
|
|
174
175
|
}
|
|
175
176
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
176
177
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -189,10 +190,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
189
190
|
//endregion
|
|
190
191
|
function Companion() {
|
|
191
192
|
Companion_instance_0 = this;
|
|
192
|
-
this.
|
|
193
|
+
this.s2u_1 = new Closed(null);
|
|
193
194
|
var tmp = this;
|
|
194
195
|
// Inline function 'kotlin.Companion.success' call
|
|
195
|
-
tmp.
|
|
196
|
+
tmp.t2u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
196
197
|
}
|
|
197
198
|
var Companion_instance_0;
|
|
198
199
|
function Companion_getInstance() {
|
|
@@ -220,87 +221,87 @@ function Empty_getInstance() {
|
|
|
220
221
|
return Empty_instance;
|
|
221
222
|
}
|
|
222
223
|
function Closed(cause) {
|
|
223
|
-
this.
|
|
224
|
+
this.u2u_1 = cause;
|
|
224
225
|
}
|
|
225
226
|
protoOf(Closed).toString = function () {
|
|
226
|
-
return 'Closed(cause=' + toString(this.
|
|
227
|
+
return 'Closed(cause=' + toString(this.u2u_1) + ')';
|
|
227
228
|
};
|
|
228
229
|
protoOf(Closed).hashCode = function () {
|
|
229
|
-
return this.
|
|
230
|
+
return this.u2u_1 == null ? 0 : hashCode(this.u2u_1);
|
|
230
231
|
};
|
|
231
232
|
protoOf(Closed).equals = function (other) {
|
|
232
233
|
if (this === other)
|
|
233
234
|
return true;
|
|
234
235
|
if (!(other instanceof Closed))
|
|
235
236
|
return false;
|
|
236
|
-
if (!equals(this.
|
|
237
|
+
if (!equals(this.u2u_1, other.u2u_1))
|
|
237
238
|
return false;
|
|
238
239
|
return true;
|
|
239
240
|
};
|
|
240
241
|
function Task() {
|
|
241
242
|
}
|
|
242
243
|
function Read(continuation) {
|
|
243
|
-
this.
|
|
244
|
-
this.
|
|
244
|
+
this.a2v_1 = continuation;
|
|
245
|
+
this.b2v_1 = null;
|
|
245
246
|
if (get_DEVELOPMENT_MODE()) {
|
|
246
247
|
var tmp = this;
|
|
247
248
|
// Inline function 'kotlin.also' call
|
|
248
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
249
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.a2v_1), 16));
|
|
249
250
|
stackTraceToString(this_0);
|
|
250
|
-
tmp.
|
|
251
|
+
tmp.b2v_1 = this_0;
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
|
-
protoOf(Read).
|
|
254
|
-
return this.
|
|
254
|
+
protoOf(Read).w2u = function () {
|
|
255
|
+
return this.a2v_1;
|
|
255
256
|
};
|
|
256
|
-
protoOf(Read).
|
|
257
|
-
return this.
|
|
257
|
+
protoOf(Read).v2u = function () {
|
|
258
|
+
return this.b2v_1;
|
|
258
259
|
};
|
|
259
|
-
protoOf(Read).
|
|
260
|
+
protoOf(Read).x2u = function () {
|
|
260
261
|
return 'read';
|
|
261
262
|
};
|
|
262
263
|
function Write(continuation) {
|
|
263
|
-
this.
|
|
264
|
-
this.
|
|
264
|
+
this.c2v_1 = continuation;
|
|
265
|
+
this.d2v_1 = null;
|
|
265
266
|
if (get_DEVELOPMENT_MODE()) {
|
|
266
267
|
var tmp = this;
|
|
267
268
|
// Inline function 'kotlin.also' call
|
|
268
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
269
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.c2v_1), 16));
|
|
269
270
|
stackTraceToString(this_0);
|
|
270
|
-
tmp.
|
|
271
|
+
tmp.d2v_1 = this_0;
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
|
-
protoOf(Write).
|
|
274
|
-
return this.
|
|
274
|
+
protoOf(Write).w2u = function () {
|
|
275
|
+
return this.c2v_1;
|
|
275
276
|
};
|
|
276
|
-
protoOf(Write).
|
|
277
|
-
return this.
|
|
277
|
+
protoOf(Write).v2u = function () {
|
|
278
|
+
return this.d2v_1;
|
|
278
279
|
};
|
|
279
|
-
protoOf(Write).
|
|
280
|
+
protoOf(Write).x2u = function () {
|
|
280
281
|
return 'write';
|
|
281
282
|
};
|
|
282
283
|
function moveFlushToReadBuffer($this) {
|
|
283
284
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
284
|
-
$this.
|
|
285
|
-
$this.
|
|
286
|
-
$this.
|
|
285
|
+
$this.h2v_1;
|
|
286
|
+
$this.f2v_1.x2s($this.j2v_1);
|
|
287
|
+
$this.g2v_1 = 0;
|
|
287
288
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
288
|
-
var current = $this.
|
|
289
|
+
var current = $this.i2v_1.kotlinx$atomicfu$value;
|
|
289
290
|
var tmp;
|
|
290
291
|
if (current instanceof Write) {
|
|
291
|
-
tmp = $this.
|
|
292
|
+
tmp = $this.i2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
292
293
|
} else {
|
|
293
294
|
tmp = false;
|
|
294
295
|
}
|
|
295
296
|
if (tmp) {
|
|
296
|
-
current.
|
|
297
|
+
current.y2u();
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
function closeSlot($this, cause) {
|
|
300
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
301
|
-
var continuation = $this.
|
|
301
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().s2u_1;
|
|
302
|
+
var continuation = $this.i2v_1.atomicfu$getAndSet(closeContinuation);
|
|
302
303
|
if (isInterface(continuation, Task)) {
|
|
303
|
-
continuation.
|
|
304
|
+
continuation.z2u(cause);
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
307
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -319,50 +320,50 @@ function ClosedWriteChannelException$_init_$ref_ef15ty() {
|
|
|
319
320
|
}
|
|
320
321
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
321
322
|
CoroutineImpl.call(this, resultContinuation);
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
323
|
+
this.u2v_1 = _this__u8e3s4;
|
|
324
|
+
this.v2v_1 = min;
|
|
324
325
|
}
|
|
325
|
-
protoOf($awaitContentCOROUTINE$).
|
|
326
|
-
var suspendResult = this.
|
|
326
|
+
protoOf($awaitContentCOROUTINE$).u9 = function () {
|
|
327
|
+
var suspendResult = this.o9_1;
|
|
327
328
|
$sm: do
|
|
328
329
|
try {
|
|
329
|
-
var tmp = this.
|
|
330
|
+
var tmp = this.m9_1;
|
|
330
331
|
switch (tmp) {
|
|
331
332
|
case 0:
|
|
332
|
-
this.
|
|
333
|
-
rethrowCloseCauseIfNeeded(this.
|
|
334
|
-
if (this.
|
|
333
|
+
this.n9_1 = 4;
|
|
334
|
+
rethrowCloseCauseIfNeeded(this.u2v_1);
|
|
335
|
+
if (this.u2v_1.j2v_1.g1() >= fromInt(this.v2v_1))
|
|
335
336
|
return true;
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
337
|
+
this.w2v_1 = this.u2v_1;
|
|
338
|
+
this.m9_1 = 1;
|
|
338
339
|
continue $sm;
|
|
339
340
|
case 1:
|
|
340
|
-
if (!(add(numberToLong(this.
|
|
341
|
-
this.
|
|
341
|
+
if (!(add(numberToLong(this.u2v_1.g2v_1), this.u2v_1.j2v_1.g1()) < fromInt(this.v2v_1) && this.u2v_1.l2v_1.kotlinx$atomicfu$value == null)) {
|
|
342
|
+
this.m9_1 = 3;
|
|
342
343
|
continue $sm;
|
|
343
344
|
}
|
|
344
345
|
|
|
345
|
-
this.
|
|
346
|
+
this.m9_1 = 2;
|
|
346
347
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
347
|
-
cancellable.
|
|
348
|
-
var tmp0 = this.
|
|
348
|
+
cancellable.w1z();
|
|
349
|
+
var tmp0 = this.w2v_1;
|
|
349
350
|
var tmp2 = new Read(cancellable);
|
|
350
351
|
l$ret$1: do {
|
|
351
|
-
var previous = tmp0.
|
|
352
|
+
var previous = tmp0.i2v_1.kotlinx$atomicfu$value;
|
|
352
353
|
if (!(previous instanceof Closed)) {
|
|
353
|
-
if (!tmp0.
|
|
354
|
-
tmp2.
|
|
354
|
+
if (!tmp0.i2v_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
355
|
+
tmp2.y2u();
|
|
355
356
|
break l$ret$1;
|
|
356
357
|
}
|
|
357
358
|
}
|
|
358
359
|
if (previous instanceof Read) {
|
|
359
|
-
previous.
|
|
360
|
+
previous.z2u(new ConcurrentIOException(tmp2.x2u(), previous.v2u()));
|
|
360
361
|
} else {
|
|
361
362
|
if (isInterface(previous, Task)) {
|
|
362
|
-
previous.
|
|
363
|
+
previous.y2u();
|
|
363
364
|
} else {
|
|
364
365
|
if (previous instanceof Closed) {
|
|
365
|
-
tmp2.
|
|
366
|
+
tmp2.z2u(previous.u2u_1);
|
|
366
367
|
break l$ret$1;
|
|
367
368
|
} else {
|
|
368
369
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -371,95 +372,95 @@ protoOf($awaitContentCOROUTINE$).t9 = function () {
|
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
374
|
}
|
|
374
|
-
if (!(add(numberToLong(this.
|
|
375
|
-
var current = tmp0.
|
|
375
|
+
if (!(add(numberToLong(this.u2v_1.g2v_1), this.u2v_1.j2v_1.g1()) < fromInt(this.v2v_1) && this.u2v_1.l2v_1.kotlinx$atomicfu$value == null)) {
|
|
376
|
+
var current = tmp0.i2v_1.kotlinx$atomicfu$value;
|
|
376
377
|
var tmp_0;
|
|
377
378
|
if (current instanceof Read) {
|
|
378
|
-
tmp_0 = tmp0.
|
|
379
|
+
tmp_0 = tmp0.i2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
379
380
|
} else {
|
|
380
381
|
tmp_0 = false;
|
|
381
382
|
}
|
|
382
383
|
if (tmp_0) {
|
|
383
|
-
current.
|
|
384
|
+
current.y2u();
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
}
|
|
387
388
|
while (false);
|
|
388
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
389
|
+
suspendResult = returnIfSuspended(cancellable.x1z(), this);
|
|
389
390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
390
391
|
return suspendResult;
|
|
391
392
|
}
|
|
392
393
|
|
|
393
394
|
continue $sm;
|
|
394
395
|
case 2:
|
|
395
|
-
this.
|
|
396
|
+
this.m9_1 = 1;
|
|
396
397
|
continue $sm;
|
|
397
398
|
case 3:
|
|
398
|
-
if (this.
|
|
399
|
-
moveFlushToReadBuffer(this.
|
|
399
|
+
if (this.u2v_1.j2v_1.g1() < 1048576n) {
|
|
400
|
+
moveFlushToReadBuffer(this.u2v_1);
|
|
400
401
|
}
|
|
401
402
|
|
|
402
|
-
return this.
|
|
403
|
+
return this.u2v_1.j2v_1.g1() >= fromInt(this.v2v_1);
|
|
403
404
|
case 4:
|
|
404
|
-
throw this.
|
|
405
|
+
throw this.p9_1;
|
|
405
406
|
}
|
|
406
407
|
} catch ($p) {
|
|
407
408
|
var e = $p;
|
|
408
|
-
if (this.
|
|
409
|
+
if (this.n9_1 === 4) {
|
|
409
410
|
throw e;
|
|
410
411
|
} else {
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
412
|
+
this.m9_1 = this.n9_1;
|
|
413
|
+
this.p9_1 = e;
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
416
|
while (true);
|
|
416
417
|
};
|
|
417
418
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
418
419
|
CoroutineImpl.call(this, resultContinuation);
|
|
419
|
-
this.
|
|
420
|
+
this.f2w_1 = _this__u8e3s4;
|
|
420
421
|
}
|
|
421
|
-
protoOf($flushCOROUTINE$).
|
|
422
|
-
var suspendResult = this.
|
|
422
|
+
protoOf($flushCOROUTINE$).u9 = function () {
|
|
423
|
+
var suspendResult = this.o9_1;
|
|
423
424
|
$sm: do
|
|
424
425
|
try {
|
|
425
|
-
var tmp = this.
|
|
426
|
+
var tmp = this.m9_1;
|
|
426
427
|
switch (tmp) {
|
|
427
428
|
case 0:
|
|
428
|
-
this.
|
|
429
|
-
rethrowCloseCauseIfNeeded(this.
|
|
430
|
-
this.
|
|
431
|
-
if (this.
|
|
429
|
+
this.n9_1 = 4;
|
|
430
|
+
rethrowCloseCauseIfNeeded(this.f2w_1);
|
|
431
|
+
this.f2w_1.h2w();
|
|
432
|
+
if (this.f2w_1.g2v_1 < 1048576)
|
|
432
433
|
return Unit_instance;
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
434
|
+
this.g2w_1 = this.f2w_1;
|
|
435
|
+
this.m9_1 = 1;
|
|
435
436
|
continue $sm;
|
|
436
437
|
case 1:
|
|
437
|
-
if (!(this.
|
|
438
|
-
this.
|
|
438
|
+
if (!(this.f2w_1.g2v_1 >= 1048576 && this.f2w_1.l2v_1.kotlinx$atomicfu$value == null)) {
|
|
439
|
+
this.m9_1 = 3;
|
|
439
440
|
continue $sm;
|
|
440
441
|
}
|
|
441
442
|
|
|
442
|
-
this.
|
|
443
|
+
this.m9_1 = 2;
|
|
443
444
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
444
|
-
cancellable.
|
|
445
|
-
var tmp0 = this.
|
|
445
|
+
cancellable.w1z();
|
|
446
|
+
var tmp0 = this.g2w_1;
|
|
446
447
|
var tmp2 = new Write(cancellable);
|
|
447
448
|
l$ret$1: do {
|
|
448
|
-
var previous = tmp0.
|
|
449
|
+
var previous = tmp0.i2v_1.kotlinx$atomicfu$value;
|
|
449
450
|
if (!(previous instanceof Closed)) {
|
|
450
|
-
if (!tmp0.
|
|
451
|
-
tmp2.
|
|
451
|
+
if (!tmp0.i2v_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
452
|
+
tmp2.y2u();
|
|
452
453
|
break l$ret$1;
|
|
453
454
|
}
|
|
454
455
|
}
|
|
455
456
|
if (previous instanceof Write) {
|
|
456
|
-
previous.
|
|
457
|
+
previous.z2u(new ConcurrentIOException(tmp2.x2u(), previous.v2u()));
|
|
457
458
|
} else {
|
|
458
459
|
if (isInterface(previous, Task)) {
|
|
459
|
-
previous.
|
|
460
|
+
previous.y2u();
|
|
460
461
|
} else {
|
|
461
462
|
if (previous instanceof Closed) {
|
|
462
|
-
tmp2.
|
|
463
|
+
tmp2.z2u(previous.u2u_1);
|
|
463
464
|
break l$ret$1;
|
|
464
465
|
} else {
|
|
465
466
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -468,62 +469,62 @@ protoOf($flushCOROUTINE$).t9 = function () {
|
|
|
468
469
|
}
|
|
469
470
|
}
|
|
470
471
|
}
|
|
471
|
-
if (!(this.
|
|
472
|
-
var current = tmp0.
|
|
472
|
+
if (!(this.f2w_1.g2v_1 >= 1048576 && this.f2w_1.l2v_1.kotlinx$atomicfu$value == null)) {
|
|
473
|
+
var current = tmp0.i2v_1.kotlinx$atomicfu$value;
|
|
473
474
|
var tmp_0;
|
|
474
475
|
if (current instanceof Write) {
|
|
475
|
-
tmp_0 = tmp0.
|
|
476
|
+
tmp_0 = tmp0.i2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
476
477
|
} else {
|
|
477
478
|
tmp_0 = false;
|
|
478
479
|
}
|
|
479
480
|
if (tmp_0) {
|
|
480
|
-
current.
|
|
481
|
+
current.y2u();
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
485
|
while (false);
|
|
485
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
486
|
+
suspendResult = returnIfSuspended(cancellable.x1z(), this);
|
|
486
487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
487
488
|
return suspendResult;
|
|
488
489
|
}
|
|
489
490
|
|
|
490
491
|
continue $sm;
|
|
491
492
|
case 2:
|
|
492
|
-
this.
|
|
493
|
+
this.m9_1 = 1;
|
|
493
494
|
continue $sm;
|
|
494
495
|
case 3:
|
|
495
496
|
return Unit_instance;
|
|
496
497
|
case 4:
|
|
497
|
-
throw this.
|
|
498
|
+
throw this.p9_1;
|
|
498
499
|
}
|
|
499
500
|
} catch ($p) {
|
|
500
501
|
var e = $p;
|
|
501
|
-
if (this.
|
|
502
|
+
if (this.n9_1 === 4) {
|
|
502
503
|
throw e;
|
|
503
504
|
} else {
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
505
|
+
this.m9_1 = this.n9_1;
|
|
506
|
+
this.p9_1 = e;
|
|
506
507
|
}
|
|
507
508
|
}
|
|
508
509
|
while (true);
|
|
509
510
|
};
|
|
510
511
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
511
512
|
CoroutineImpl.call(this, resultContinuation);
|
|
512
|
-
this.
|
|
513
|
+
this.q2w_1 = _this__u8e3s4;
|
|
513
514
|
}
|
|
514
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
515
|
-
var suspendResult = this.
|
|
515
|
+
protoOf($flushAndCloseCOROUTINE$).u9 = function () {
|
|
516
|
+
var suspendResult = this.o9_1;
|
|
516
517
|
$sm: do
|
|
517
518
|
try {
|
|
518
|
-
var tmp = this.
|
|
519
|
+
var tmp = this.m9_1;
|
|
519
520
|
switch (tmp) {
|
|
520
521
|
case 0:
|
|
521
|
-
this.
|
|
522
|
-
var this_0 = this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
suspendResult = this_0.
|
|
522
|
+
this.n9_1 = 4;
|
|
523
|
+
var this_0 = this.q2w_1;
|
|
524
|
+
this.n9_1 = 2;
|
|
525
|
+
this.s2w_1 = Companion_instance;
|
|
526
|
+
this.m9_1 = 1;
|
|
527
|
+
suspendResult = this_0.t2w(this);
|
|
527
528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
528
529
|
return suspendResult;
|
|
529
530
|
}
|
|
@@ -531,144 +532,144 @@ protoOf($flushAndCloseCOROUTINE$).t9 = function () {
|
|
|
531
532
|
continue $sm;
|
|
532
533
|
case 1:
|
|
533
534
|
var tmp_0 = this;
|
|
534
|
-
this.
|
|
535
|
-
tmp_0.
|
|
536
|
-
this.
|
|
537
|
-
this.
|
|
535
|
+
this.s2w_1;
|
|
536
|
+
tmp_0.r2w_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
537
|
+
this.n9_1 = 4;
|
|
538
|
+
this.m9_1 = 3;
|
|
538
539
|
continue $sm;
|
|
539
540
|
case 2:
|
|
540
|
-
this.
|
|
541
|
-
var tmp_1 = this.
|
|
541
|
+
this.n9_1 = 4;
|
|
542
|
+
var tmp_1 = this.p9_1;
|
|
542
543
|
if (tmp_1 instanceof Error) {
|
|
543
|
-
var e = this.
|
|
544
|
+
var e = this.p9_1;
|
|
544
545
|
var tmp_2 = this;
|
|
545
|
-
tmp_2.
|
|
546
|
-
this.
|
|
546
|
+
tmp_2.r2w_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
547
|
+
this.m9_1 = 3;
|
|
547
548
|
continue $sm;
|
|
548
549
|
} else {
|
|
549
|
-
throw this.
|
|
550
|
+
throw this.p9_1;
|
|
550
551
|
}
|
|
551
552
|
|
|
552
553
|
case 3:
|
|
553
|
-
this.
|
|
554
|
-
if (!this.
|
|
554
|
+
this.n9_1 = 4;
|
|
555
|
+
if (!this.q2w_1.l2v_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
555
556
|
return Unit_instance;
|
|
556
|
-
closeSlot(this.
|
|
557
|
+
closeSlot(this.q2w_1, null);
|
|
557
558
|
return Unit_instance;
|
|
558
559
|
case 4:
|
|
559
|
-
throw this.
|
|
560
|
+
throw this.p9_1;
|
|
560
561
|
}
|
|
561
562
|
} catch ($p) {
|
|
562
563
|
var e_0 = $p;
|
|
563
|
-
if (this.
|
|
564
|
+
if (this.n9_1 === 4) {
|
|
564
565
|
throw e_0;
|
|
565
566
|
} else {
|
|
566
|
-
this.
|
|
567
|
-
this.
|
|
567
|
+
this.m9_1 = this.n9_1;
|
|
568
|
+
this.p9_1 = e_0;
|
|
568
569
|
}
|
|
569
570
|
}
|
|
570
571
|
while (true);
|
|
571
572
|
};
|
|
572
573
|
function ByteChannel(autoFlush) {
|
|
573
574
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
574
|
-
this.
|
|
575
|
-
this.b2v_1 = new Buffer();
|
|
576
|
-
this.c2v_1 = 0;
|
|
577
|
-
this.d2v_1 = new Object();
|
|
578
|
-
this.e2v_1 = atomic$ref$1(Empty_instance);
|
|
575
|
+
this.e2v_1 = autoFlush;
|
|
579
576
|
this.f2v_1 = new Buffer();
|
|
580
|
-
this.g2v_1 =
|
|
581
|
-
this.h2v_1 =
|
|
577
|
+
this.g2v_1 = 0;
|
|
578
|
+
this.h2v_1 = new Object();
|
|
579
|
+
this.i2v_1 = atomic$ref$1(Empty_instance);
|
|
580
|
+
this.j2v_1 = new Buffer();
|
|
581
|
+
this.k2v_1 = new Buffer();
|
|
582
|
+
this.l2v_1 = atomic$ref$1(null);
|
|
582
583
|
}
|
|
583
|
-
protoOf(ByteChannel).
|
|
584
|
-
return this.
|
|
584
|
+
protoOf(ByteChannel).u2w = function () {
|
|
585
|
+
return this.e2v_1;
|
|
585
586
|
};
|
|
586
|
-
protoOf(ByteChannel).
|
|
587
|
-
var tmp0_safe_receiver = this.
|
|
587
|
+
protoOf(ByteChannel).v2w = function () {
|
|
588
|
+
var tmp0_safe_receiver = this.l2v_1.kotlinx$atomicfu$value;
|
|
588
589
|
if (tmp0_safe_receiver == null)
|
|
589
590
|
null;
|
|
590
591
|
else {
|
|
591
|
-
tmp0_safe_receiver.
|
|
592
|
+
tmp0_safe_receiver.x2w(ClosedReadChannelException$_init_$ref_ix0089());
|
|
592
593
|
}
|
|
593
|
-
if (this.
|
|
594
|
+
if (this.j2v_1.u2r()) {
|
|
594
595
|
moveFlushToReadBuffer(this);
|
|
595
596
|
}
|
|
596
|
-
return this.
|
|
597
|
+
return this.j2v_1;
|
|
597
598
|
};
|
|
598
|
-
protoOf(ByteChannel).
|
|
599
|
-
if (this.
|
|
600
|
-
var tmp0_safe_receiver = this.
|
|
599
|
+
protoOf(ByteChannel).y2w = function () {
|
|
600
|
+
if (this.z2w()) {
|
|
601
|
+
var tmp0_safe_receiver = this.l2v_1.kotlinx$atomicfu$value;
|
|
601
602
|
var tmp;
|
|
602
603
|
if (tmp0_safe_receiver == null) {
|
|
603
604
|
tmp = null;
|
|
604
605
|
} else {
|
|
605
|
-
tmp = tmp0_safe_receiver.
|
|
606
|
+
tmp = tmp0_safe_receiver.x2w(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
606
607
|
}
|
|
607
608
|
if (tmp == null)
|
|
608
609
|
throw new ClosedWriteChannelException();
|
|
609
610
|
}
|
|
610
|
-
return this.
|
|
611
|
+
return this.k2v_1;
|
|
611
612
|
};
|
|
612
|
-
protoOf(ByteChannel).
|
|
613
|
-
var tmp0_safe_receiver = this.
|
|
614
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
613
|
+
protoOf(ByteChannel).a2x = function () {
|
|
614
|
+
var tmp0_safe_receiver = this.l2v_1.kotlinx$atomicfu$value;
|
|
615
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2x();
|
|
615
616
|
};
|
|
616
|
-
protoOf(ByteChannel).
|
|
617
|
-
return !(this.
|
|
617
|
+
protoOf(ByteChannel).z2w = function () {
|
|
618
|
+
return !(this.l2v_1.kotlinx$atomicfu$value == null);
|
|
618
619
|
};
|
|
619
|
-
protoOf(ByteChannel).
|
|
620
|
-
return !(this.
|
|
620
|
+
protoOf(ByteChannel).c2x = function () {
|
|
621
|
+
return !(this.a2x() == null) || (this.z2w() && this.g2v_1 === 0 && this.j2v_1.u2r());
|
|
621
622
|
};
|
|
622
|
-
protoOf(ByteChannel).
|
|
623
|
+
protoOf(ByteChannel).d2x = function (min, $completion) {
|
|
623
624
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
624
|
-
tmp.
|
|
625
|
-
tmp.
|
|
626
|
-
return tmp.
|
|
625
|
+
tmp.o9_1 = Unit_instance;
|
|
626
|
+
tmp.p9_1 = null;
|
|
627
|
+
return tmp.u9();
|
|
627
628
|
};
|
|
628
|
-
protoOf(ByteChannel).
|
|
629
|
+
protoOf(ByteChannel).t2w = function ($completion) {
|
|
629
630
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
630
|
-
tmp.
|
|
631
|
-
tmp.
|
|
632
|
-
return tmp.
|
|
631
|
+
tmp.o9_1 = Unit_instance;
|
|
632
|
+
tmp.p9_1 = null;
|
|
633
|
+
return tmp.u9();
|
|
633
634
|
};
|
|
634
|
-
protoOf(ByteChannel).
|
|
635
|
-
if (this.
|
|
635
|
+
protoOf(ByteChannel).h2w = function () {
|
|
636
|
+
if (this.k2v_1.u2r())
|
|
636
637
|
return Unit_instance;
|
|
637
638
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
638
|
-
this.
|
|
639
|
-
var count = convertToInt(this.
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
639
|
+
this.h2v_1;
|
|
640
|
+
var count = convertToInt(this.k2v_1.g1());
|
|
641
|
+
this.f2v_1.m2t(this.k2v_1);
|
|
642
|
+
this.g2v_1 = this.g2v_1 + count | 0;
|
|
642
643
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
643
|
-
var current = this.
|
|
644
|
+
var current = this.i2v_1.kotlinx$atomicfu$value;
|
|
644
645
|
var tmp;
|
|
645
646
|
if (current instanceof Read) {
|
|
646
|
-
tmp = this.
|
|
647
|
+
tmp = this.i2v_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
647
648
|
} else {
|
|
648
649
|
tmp = false;
|
|
649
650
|
}
|
|
650
651
|
if (tmp) {
|
|
651
|
-
current.
|
|
652
|
+
current.y2u();
|
|
652
653
|
}
|
|
653
654
|
};
|
|
654
655
|
protoOf(ByteChannel).c5 = function () {
|
|
655
|
-
this.
|
|
656
|
-
if (!this.
|
|
656
|
+
this.h2w();
|
|
657
|
+
if (!this.l2v_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
657
658
|
return Unit_instance;
|
|
658
659
|
closeSlot(this, null);
|
|
659
660
|
};
|
|
660
|
-
protoOf(ByteChannel).
|
|
661
|
+
protoOf(ByteChannel).f2x = function ($completion) {
|
|
661
662
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
662
|
-
tmp.
|
|
663
|
-
tmp.
|
|
664
|
-
return tmp.
|
|
663
|
+
tmp.o9_1 = Unit_instance;
|
|
664
|
+
tmp.p9_1 = null;
|
|
665
|
+
return tmp.u9();
|
|
665
666
|
};
|
|
666
|
-
protoOf(ByteChannel).
|
|
667
|
-
if (!(this.
|
|
667
|
+
protoOf(ByteChannel).g2x = function (cause) {
|
|
668
|
+
if (!(this.l2v_1.kotlinx$atomicfu$value == null))
|
|
668
669
|
return Unit_instance;
|
|
669
670
|
var closedToken = new CloseToken(cause);
|
|
670
|
-
this.
|
|
671
|
-
var wrappedCause = closedToken.
|
|
671
|
+
this.l2v_1.atomicfu$compareAndSet(null, closedToken);
|
|
672
|
+
var wrappedCause = closedToken.b2x();
|
|
672
673
|
closeSlot(this, wrappedCause);
|
|
673
674
|
};
|
|
674
675
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -684,7 +685,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
684
685
|
length = length === VOID ? content.length : length;
|
|
685
686
|
// Inline function 'kotlin.also' call
|
|
686
687
|
var this_0 = new Buffer();
|
|
687
|
-
this_0.
|
|
688
|
+
this_0.d2t(content, offset, offset + length | 0);
|
|
688
689
|
var source = this_0;
|
|
689
690
|
return ByteReadChannel_0(source);
|
|
690
691
|
}
|
|
@@ -692,18 +693,18 @@ function ByteReadChannel_0(source) {
|
|
|
692
693
|
return new SourceByteReadChannel(source);
|
|
693
694
|
}
|
|
694
695
|
function buildPartialMatchTable($this) {
|
|
695
|
-
var table = new Int32Array($this.
|
|
696
|
+
var table = new Int32Array($this.i2x_1.g1());
|
|
696
697
|
var j = 0;
|
|
697
698
|
var inductionVariable = 1;
|
|
698
|
-
var last = $this.
|
|
699
|
+
var last = $this.i2x_1.g1();
|
|
699
700
|
if (inductionVariable < last)
|
|
700
701
|
do {
|
|
701
702
|
var i = inductionVariable;
|
|
702
703
|
inductionVariable = inductionVariable + 1 | 0;
|
|
703
|
-
while (j > 0 && !($this.
|
|
704
|
+
while (j > 0 && !($this.i2x_1.h1(i) === $this.i2x_1.h1(j))) {
|
|
704
705
|
j = table[j - 1 | 0];
|
|
705
706
|
}
|
|
706
|
-
if ($this.
|
|
707
|
+
if ($this.i2x_1.h1(i) === $this.i2x_1.h1(j)) {
|
|
707
708
|
j = j + 1 | 0;
|
|
708
709
|
}
|
|
709
710
|
table[i] = j;
|
|
@@ -713,19 +714,19 @@ function buildPartialMatchTable($this) {
|
|
|
713
714
|
}
|
|
714
715
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
715
716
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
716
|
-
tmp.
|
|
717
|
-
tmp.
|
|
718
|
-
return tmp.
|
|
717
|
+
tmp.o9_1 = Unit_instance;
|
|
718
|
+
tmp.p9_1 = null;
|
|
719
|
+
return tmp.u9();
|
|
719
720
|
}
|
|
720
721
|
function checkFullMatch($this, $completion) {
|
|
721
722
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
722
|
-
tmp.
|
|
723
|
-
tmp.
|
|
724
|
-
return tmp.
|
|
723
|
+
tmp.o9_1 = Unit_instance;
|
|
724
|
+
tmp.p9_1 = null;
|
|
725
|
+
return tmp.u9();
|
|
725
726
|
}
|
|
726
727
|
function checkBounds($this, extra) {
|
|
727
|
-
if (add($this.
|
|
728
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
728
|
+
if (add($this.o2x_1, extra) > $this.k2x_1) {
|
|
729
|
+
throw IOException_init_$Create$('Limit of ' + $this.k2x_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.i2x_1) + '"'));
|
|
729
730
|
}
|
|
730
731
|
}
|
|
731
732
|
function toSingleLineString($this, $receiver) {
|
|
@@ -733,28 +734,28 @@ function toSingleLineString($this, $receiver) {
|
|
|
733
734
|
}
|
|
734
735
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
735
736
|
CoroutineImpl.call(this, resultContinuation);
|
|
736
|
-
this.
|
|
737
|
-
this.
|
|
737
|
+
this.t2y_1 = _this__u8e3s4;
|
|
738
|
+
this.u2y_1 = ignoreMissing;
|
|
738
739
|
}
|
|
739
|
-
protoOf($findNextCOROUTINE$).
|
|
740
|
-
var suspendResult = this.
|
|
740
|
+
protoOf($findNextCOROUTINE$).u9 = function () {
|
|
741
|
+
var suspendResult = this.o9_1;
|
|
741
742
|
$sm: do
|
|
742
743
|
try {
|
|
743
|
-
var tmp = this.
|
|
744
|
+
var tmp = this.m9_1;
|
|
744
745
|
switch (tmp) {
|
|
745
746
|
case 0:
|
|
746
|
-
this.
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
747
|
+
this.n9_1 = 9;
|
|
748
|
+
this.t2y_1.o2x_1 = 0n;
|
|
749
|
+
this.m9_1 = 1;
|
|
749
750
|
continue $sm;
|
|
750
751
|
case 1:
|
|
751
|
-
if (!this.
|
|
752
|
-
this.
|
|
753
|
-
this.
|
|
752
|
+
if (!this.t2y_1.l2x_1.u2r()) {
|
|
753
|
+
this.v2y_1 = true;
|
|
754
|
+
this.m9_1 = 3;
|
|
754
755
|
continue $sm;
|
|
755
756
|
} else {
|
|
756
|
-
this.
|
|
757
|
-
suspendResult = this.
|
|
757
|
+
this.m9_1 = 2;
|
|
758
|
+
suspendResult = this.t2y_1.h2x_1.e2x(VOID, this);
|
|
758
759
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
759
760
|
return suspendResult;
|
|
760
761
|
}
|
|
@@ -762,25 +763,25 @@ protoOf($findNextCOROUTINE$).t9 = function () {
|
|
|
762
763
|
}
|
|
763
764
|
|
|
764
765
|
case 2:
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
766
|
+
this.v2y_1 = suspendResult;
|
|
767
|
+
this.m9_1 = 3;
|
|
767
768
|
continue $sm;
|
|
768
769
|
case 3:
|
|
769
|
-
if (!this.
|
|
770
|
-
this.
|
|
770
|
+
if (!this.v2y_1) {
|
|
771
|
+
this.m9_1 = 7;
|
|
771
772
|
continue $sm;
|
|
772
773
|
}
|
|
773
774
|
|
|
774
|
-
this.
|
|
775
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
775
|
+
this.m9_1 = 4;
|
|
776
|
+
suspendResult = advanceToNextPotentialMatch(this.t2y_1, this);
|
|
776
777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
777
778
|
return suspendResult;
|
|
778
779
|
}
|
|
779
780
|
|
|
780
781
|
continue $sm;
|
|
781
782
|
case 4:
|
|
782
|
-
this.
|
|
783
|
-
suspendResult = checkFullMatch(this.
|
|
783
|
+
this.m9_1 = 5;
|
|
784
|
+
suspendResult = checkFullMatch(this.t2y_1, this);
|
|
784
785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
785
786
|
return suspendResult;
|
|
786
787
|
}
|
|
@@ -788,66 +789,66 @@ protoOf($findNextCOROUTINE$).t9 = function () {
|
|
|
788
789
|
continue $sm;
|
|
789
790
|
case 5:
|
|
790
791
|
if (suspendResult) {
|
|
791
|
-
return this.
|
|
792
|
+
return this.t2y_1.o2x_1;
|
|
792
793
|
} else {
|
|
793
|
-
this.
|
|
794
|
+
this.m9_1 = 6;
|
|
794
795
|
continue $sm;
|
|
795
796
|
}
|
|
796
797
|
|
|
797
798
|
case 6:
|
|
798
|
-
this.
|
|
799
|
+
this.m9_1 = 1;
|
|
799
800
|
continue $sm;
|
|
800
801
|
case 7:
|
|
801
|
-
if (!this.
|
|
802
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
802
|
+
if (!this.u2y_1) {
|
|
803
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.t2y_1, this.t2y_1.i2x_1) + '" but encountered end of input');
|
|
803
804
|
}
|
|
804
805
|
|
|
805
|
-
this.
|
|
806
|
-
this.
|
|
807
|
-
suspendResult = this.
|
|
806
|
+
this.t2y_1.o2x_1 = add(this.t2y_1.o2x_1, this.t2y_1.n2x_1.x2s(this.t2y_1.j2x_1.y2w()));
|
|
807
|
+
this.m9_1 = 8;
|
|
808
|
+
suspendResult = this.t2y_1.j2x_1.t2w(this);
|
|
808
809
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
809
810
|
return suspendResult;
|
|
810
811
|
}
|
|
811
812
|
|
|
812
813
|
continue $sm;
|
|
813
814
|
case 8:
|
|
814
|
-
return this.
|
|
815
|
+
return this.t2y_1.o2x_1;
|
|
815
816
|
case 9:
|
|
816
|
-
throw this.
|
|
817
|
+
throw this.p9_1;
|
|
817
818
|
}
|
|
818
819
|
} catch ($p) {
|
|
819
820
|
var e = $p;
|
|
820
|
-
if (this.
|
|
821
|
+
if (this.n9_1 === 9) {
|
|
821
822
|
throw e;
|
|
822
823
|
} else {
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
824
|
+
this.m9_1 = this.n9_1;
|
|
825
|
+
this.p9_1 = e;
|
|
825
826
|
}
|
|
826
827
|
}
|
|
827
828
|
while (true);
|
|
828
829
|
};
|
|
829
830
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
830
831
|
CoroutineImpl.call(this, resultContinuation);
|
|
831
|
-
this.
|
|
832
|
+
this.y2x_1 = _this__u8e3s4;
|
|
832
833
|
}
|
|
833
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
834
|
-
var suspendResult = this.
|
|
834
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).u9 = function () {
|
|
835
|
+
var suspendResult = this.o9_1;
|
|
835
836
|
$sm: do
|
|
836
837
|
try {
|
|
837
|
-
var tmp = this.
|
|
838
|
+
var tmp = this.m9_1;
|
|
838
839
|
switch (tmp) {
|
|
839
840
|
case 0:
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
841
|
+
this.n9_1 = 8;
|
|
842
|
+
this.m9_1 = 1;
|
|
842
843
|
continue $sm;
|
|
843
844
|
case 1:
|
|
844
|
-
if (!this.
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
845
|
+
if (!this.y2x_1.l2x_1.u2r()) {
|
|
846
|
+
this.z2x_1 = true;
|
|
847
|
+
this.m9_1 = 3;
|
|
847
848
|
continue $sm;
|
|
848
849
|
} else {
|
|
849
|
-
this.
|
|
850
|
-
suspendResult = this.
|
|
850
|
+
this.m9_1 = 2;
|
|
851
|
+
suspendResult = this.y2x_1.h2x_1.e2x(VOID, this);
|
|
851
852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
852
853
|
return suspendResult;
|
|
853
854
|
}
|
|
@@ -855,34 +856,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).t9 = function () {
|
|
|
855
856
|
}
|
|
856
857
|
|
|
857
858
|
case 2:
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
859
|
+
this.z2x_1 = suspendResult;
|
|
860
|
+
this.m9_1 = 3;
|
|
860
861
|
continue $sm;
|
|
861
862
|
case 3:
|
|
862
|
-
if (!this.
|
|
863
|
-
this.
|
|
863
|
+
if (!this.z2x_1) {
|
|
864
|
+
this.m9_1 = 7;
|
|
864
865
|
continue $sm;
|
|
865
866
|
}
|
|
866
867
|
|
|
867
|
-
var nextMatch = indexOf(this.
|
|
868
|
+
var nextMatch = indexOf(this.y2x_1.l2x_1, this.y2x_1.i2x_1.h1(0));
|
|
868
869
|
if (nextMatch === -1n) {
|
|
869
|
-
var tmp_0 = this.
|
|
870
|
-
checkBounds(this.
|
|
871
|
-
this.
|
|
872
|
-
this.
|
|
873
|
-
suspendResult = flushIfNeeded(this.
|
|
870
|
+
var tmp_0 = this.y2x_1.l2x_1;
|
|
871
|
+
checkBounds(this.y2x_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
872
|
+
this.y2x_1.o2x_1 = add(this.y2x_1.o2x_1, this.y2x_1.l2x_1.x2s(this.y2x_1.j2x_1.y2w()));
|
|
873
|
+
this.m9_1 = 5;
|
|
874
|
+
suspendResult = flushIfNeeded(this.y2x_1.j2x_1, this);
|
|
874
875
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
875
876
|
return suspendResult;
|
|
876
877
|
}
|
|
877
878
|
continue $sm;
|
|
878
879
|
} else {
|
|
879
|
-
checkBounds(this.
|
|
880
|
-
var tmp_1 = this.
|
|
881
|
-
var tmp_2 = this.
|
|
882
|
-
var tmp_3 = this.
|
|
883
|
-
tmp_1.
|
|
884
|
-
this.
|
|
885
|
-
suspendResult = flushIfNeeded(this.
|
|
880
|
+
checkBounds(this.y2x_1, nextMatch);
|
|
881
|
+
var tmp_1 = this.y2x_1;
|
|
882
|
+
var tmp_2 = this.y2x_1.o2x_1;
|
|
883
|
+
var tmp_3 = this.y2x_1.j2x_1.y2w();
|
|
884
|
+
tmp_1.o2x_1 = add(tmp_2, this.y2x_1.l2x_1.u2s(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
885
|
+
this.m9_1 = 4;
|
|
886
|
+
suspendResult = flushIfNeeded(this.y2x_1.j2x_1, this);
|
|
886
887
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
887
888
|
return suspendResult;
|
|
888
889
|
}
|
|
@@ -892,49 +893,49 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).t9 = function () {
|
|
|
892
893
|
case 4:
|
|
893
894
|
return Unit_instance;
|
|
894
895
|
case 5:
|
|
895
|
-
this.
|
|
896
|
+
this.m9_1 = 6;
|
|
896
897
|
continue $sm;
|
|
897
898
|
case 6:
|
|
898
|
-
this.
|
|
899
|
+
this.m9_1 = 1;
|
|
899
900
|
continue $sm;
|
|
900
901
|
case 7:
|
|
901
902
|
return Unit_instance;
|
|
902
903
|
case 8:
|
|
903
|
-
throw this.
|
|
904
|
+
throw this.p9_1;
|
|
904
905
|
}
|
|
905
906
|
} catch ($p) {
|
|
906
907
|
var e = $p;
|
|
907
|
-
if (this.
|
|
908
|
+
if (this.n9_1 === 8) {
|
|
908
909
|
throw e;
|
|
909
910
|
} else {
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
911
|
+
this.m9_1 = this.n9_1;
|
|
912
|
+
this.p9_1 = e;
|
|
912
913
|
}
|
|
913
914
|
}
|
|
914
915
|
while (true);
|
|
915
916
|
};
|
|
916
917
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
917
918
|
CoroutineImpl.call(this, resultContinuation);
|
|
918
|
-
this.
|
|
919
|
+
this.i2y_1 = _this__u8e3s4;
|
|
919
920
|
}
|
|
920
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
921
|
-
var suspendResult = this.
|
|
921
|
+
protoOf($checkFullMatchCOROUTINE$).u9 = function () {
|
|
922
|
+
var suspendResult = this.o9_1;
|
|
922
923
|
$sm: do
|
|
923
924
|
try {
|
|
924
|
-
var tmp = this.
|
|
925
|
+
var tmp = this.m9_1;
|
|
925
926
|
switch (tmp) {
|
|
926
927
|
case 0:
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
928
|
+
this.n9_1 = 8;
|
|
929
|
+
this.m9_1 = 1;
|
|
929
930
|
continue $sm;
|
|
930
931
|
case 1:
|
|
931
|
-
if (!this.
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
932
|
+
if (!this.i2y_1.l2x_1.u2r()) {
|
|
933
|
+
this.k2y_1 = true;
|
|
934
|
+
this.m9_1 = 3;
|
|
934
935
|
continue $sm;
|
|
935
936
|
} else {
|
|
936
|
-
this.
|
|
937
|
-
suspendResult = this.
|
|
937
|
+
this.m9_1 = 2;
|
|
938
|
+
suspendResult = this.i2y_1.h2x_1.e2x(VOID, this);
|
|
938
939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
939
940
|
return suspendResult;
|
|
940
941
|
}
|
|
@@ -942,120 +943,120 @@ protoOf($checkFullMatchCOROUTINE$).t9 = function () {
|
|
|
942
943
|
}
|
|
943
944
|
|
|
944
945
|
case 2:
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
946
|
+
this.k2y_1 = suspendResult;
|
|
947
|
+
this.m9_1 = 3;
|
|
947
948
|
continue $sm;
|
|
948
949
|
case 3:
|
|
949
|
-
if (!this.
|
|
950
|
-
this.
|
|
950
|
+
if (!this.k2y_1) {
|
|
951
|
+
this.m9_1 = 7;
|
|
951
952
|
continue $sm;
|
|
952
953
|
}
|
|
953
954
|
|
|
954
|
-
this.
|
|
955
|
-
if (this.
|
|
956
|
-
var oldMatchIndex = this.
|
|
957
|
-
while (this.
|
|
958
|
-
this.
|
|
955
|
+
this.j2y_1 = this.i2y_1.l2x_1.x2r();
|
|
956
|
+
if (this.i2y_1.p2x_1 > 0 && !(this.j2y_1 === this.i2y_1.i2x_1.h1(this.i2y_1.p2x_1))) {
|
|
957
|
+
var oldMatchIndex = this.i2y_1.p2x_1;
|
|
958
|
+
while (this.i2y_1.p2x_1 > 0 && !(this.j2y_1 === this.i2y_1.i2x_1.h1(this.i2y_1.p2x_1))) {
|
|
959
|
+
this.i2y_1.p2x_1 = this.i2y_1.m2x_1[this.i2y_1.p2x_1 - 1 | 0];
|
|
959
960
|
}
|
|
960
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
961
|
-
checkBounds(this.
|
|
962
|
-
var tmp_0 = this.
|
|
963
|
-
var tmp_1 = this.
|
|
964
|
-
var tmp_2 = this.
|
|
965
|
-
tmp_0.
|
|
966
|
-
if (this.
|
|
967
|
-
this.
|
|
968
|
-
suspendResult = writeByte(this.
|
|
961
|
+
var retained = fromInt(oldMatchIndex - this.i2y_1.p2x_1 | 0);
|
|
962
|
+
checkBounds(this.i2y_1, retained);
|
|
963
|
+
var tmp_0 = this.i2y_1;
|
|
964
|
+
var tmp_1 = this.i2y_1.o2x_1;
|
|
965
|
+
var tmp_2 = this.i2y_1.j2x_1.y2w();
|
|
966
|
+
tmp_0.o2x_1 = add(tmp_1, this.i2y_1.n2x_1.u2s(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
967
|
+
if (this.i2y_1.p2x_1 === 0 && !(this.j2y_1 === this.i2y_1.i2x_1.h1(this.i2y_1.p2x_1))) {
|
|
968
|
+
this.m9_1 = 6;
|
|
969
|
+
suspendResult = writeByte(this.i2y_1.j2x_1, this.j2y_1, this);
|
|
969
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
970
971
|
return suspendResult;
|
|
971
972
|
}
|
|
972
973
|
continue $sm;
|
|
973
974
|
} else {
|
|
974
|
-
this.
|
|
975
|
+
this.m9_1 = 4;
|
|
975
976
|
continue $sm;
|
|
976
977
|
}
|
|
977
978
|
} else {
|
|
978
|
-
this.
|
|
979
|
+
this.m9_1 = 5;
|
|
979
980
|
continue $sm;
|
|
980
981
|
}
|
|
981
982
|
|
|
982
983
|
case 4:
|
|
983
|
-
this.
|
|
984
|
+
this.m9_1 = 5;
|
|
984
985
|
continue $sm;
|
|
985
986
|
case 5:
|
|
986
|
-
this.
|
|
987
|
-
if (this.
|
|
987
|
+
this.i2y_1.p2x_1 = this.i2y_1.p2x_1 + 1 | 0;
|
|
988
|
+
if (this.i2y_1.p2x_1 === this.i2y_1.i2x_1.g1()) {
|
|
988
989
|
return true;
|
|
989
990
|
}
|
|
990
991
|
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
992
|
+
this.i2y_1.n2x_1.n2t(this.j2y_1);
|
|
993
|
+
this.m9_1 = 1;
|
|
993
994
|
continue $sm;
|
|
994
995
|
case 6:
|
|
995
|
-
var _unary__edvuaz = this.
|
|
996
|
-
this.
|
|
996
|
+
var _unary__edvuaz = this.i2y_1.o2x_1;
|
|
997
|
+
this.i2y_1.o2x_1 = add(_unary__edvuaz, get_ONE());
|
|
997
998
|
return false;
|
|
998
999
|
case 7:
|
|
999
1000
|
return false;
|
|
1000
1001
|
case 8:
|
|
1001
|
-
throw this.
|
|
1002
|
+
throw this.p9_1;
|
|
1002
1003
|
}
|
|
1003
1004
|
} catch ($p) {
|
|
1004
1005
|
var e = $p;
|
|
1005
|
-
if (this.
|
|
1006
|
+
if (this.n9_1 === 8) {
|
|
1006
1007
|
throw e;
|
|
1007
1008
|
} else {
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1009
|
+
this.m9_1 = this.n9_1;
|
|
1010
|
+
this.p9_1 = e;
|
|
1010
1011
|
}
|
|
1011
1012
|
}
|
|
1012
1013
|
while (true);
|
|
1013
1014
|
};
|
|
1014
1015
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1015
1016
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1017
|
+
this.h2x_1 = channel;
|
|
1018
|
+
this.i2x_1 = matchString;
|
|
1019
|
+
this.j2x_1 = writeChannel;
|
|
1020
|
+
this.k2x_1 = limit;
|
|
1020
1021
|
// Inline function 'kotlin.require' call
|
|
1021
|
-
if (!(this.
|
|
1022
|
+
if (!(this.i2x_1.g1() > 0)) {
|
|
1022
1023
|
var message = 'Empty match string not permitted for scanning';
|
|
1023
1024
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1024
1025
|
}
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1029
|
-
this.
|
|
1026
|
+
this.l2x_1 = this.h2x_1.v2w();
|
|
1027
|
+
this.m2x_1 = buildPartialMatchTable(this);
|
|
1028
|
+
this.n2x_1 = new Buffer();
|
|
1029
|
+
this.o2x_1 = 0n;
|
|
1030
|
+
this.p2x_1 = 0;
|
|
1030
1031
|
}
|
|
1031
|
-
protoOf(ByteChannelScanner).
|
|
1032
|
+
protoOf(ByteChannelScanner).w2y = function (ignoreMissing, $completion) {
|
|
1032
1033
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1033
|
-
tmp.
|
|
1034
|
-
tmp.
|
|
1035
|
-
return tmp.
|
|
1034
|
+
tmp.o9_1 = Unit_instance;
|
|
1035
|
+
tmp.p9_1 = null;
|
|
1036
|
+
return tmp.u9();
|
|
1036
1037
|
};
|
|
1037
1038
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1039
|
+
this.x2y_1 = null;
|
|
1040
|
+
this.y2y_1 = new Buffer();
|
|
1040
1041
|
}
|
|
1041
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1042
|
-
return this.
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a2x = function () {
|
|
1043
|
+
return this.x2y_1;
|
|
1043
1044
|
};
|
|
1044
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c2x = function () {
|
|
1045
1046
|
return true;
|
|
1046
1047
|
};
|
|
1047
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1048
|
-
return this.
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v2w = function () {
|
|
1049
|
+
return this.y2y_1;
|
|
1049
1050
|
};
|
|
1050
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1051
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d2x = function (min, $completion) {
|
|
1051
1052
|
return false;
|
|
1052
1053
|
};
|
|
1053
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1054
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g2x = function (cause) {
|
|
1054
1055
|
};
|
|
1055
1056
|
function Companion_0() {
|
|
1056
1057
|
Companion_instance_1 = this;
|
|
1057
1058
|
var tmp = this;
|
|
1058
|
-
tmp.
|
|
1059
|
+
tmp.z2y_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1059
1060
|
}
|
|
1060
1061
|
var Companion_instance_1;
|
|
1061
1062
|
function Companion_getInstance_0() {
|
|
@@ -1066,69 +1067,69 @@ function Companion_getInstance_0() {
|
|
|
1066
1067
|
function ByteReadChannel_1() {
|
|
1067
1068
|
}
|
|
1068
1069
|
function cancel_0(_this__u8e3s4) {
|
|
1069
|
-
_this__u8e3s4.
|
|
1070
|
+
_this__u8e3s4.g2x(IOException_init_$Create$('Channel was cancelled'));
|
|
1070
1071
|
}
|
|
1071
1072
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1072
1073
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1073
|
-
tmp.
|
|
1074
|
-
tmp.
|
|
1075
|
-
return tmp.
|
|
1074
|
+
tmp.o9_1 = Unit_instance;
|
|
1075
|
+
tmp.p9_1 = null;
|
|
1076
|
+
return tmp.u9();
|
|
1076
1077
|
}
|
|
1077
1078
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1078
1079
|
offset = offset === VOID ? 0 : offset;
|
|
1079
1080
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1080
1081
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1081
|
-
tmp.
|
|
1082
|
-
tmp.
|
|
1083
|
-
return tmp.
|
|
1082
|
+
tmp.o9_1 = Unit_instance;
|
|
1083
|
+
tmp.p9_1 = null;
|
|
1084
|
+
return tmp.u9();
|
|
1084
1085
|
}
|
|
1085
1086
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1086
1087
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1087
|
-
tmp.
|
|
1088
|
-
tmp.
|
|
1089
|
-
return tmp.
|
|
1088
|
+
tmp.o9_1 = Unit_instance;
|
|
1089
|
+
tmp.p9_1 = null;
|
|
1090
|
+
return tmp.u9();
|
|
1090
1091
|
}
|
|
1091
1092
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1092
1093
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1093
|
-
tmp.
|
|
1094
|
-
tmp.
|
|
1095
|
-
return tmp.
|
|
1094
|
+
tmp.o9_1 = Unit_instance;
|
|
1095
|
+
tmp.p9_1 = null;
|
|
1096
|
+
return tmp.u9();
|
|
1096
1097
|
}
|
|
1097
1098
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1098
1099
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1099
|
-
tmp.
|
|
1100
|
-
tmp.
|
|
1101
|
-
return tmp.
|
|
1100
|
+
tmp.o9_1 = Unit_instance;
|
|
1101
|
+
tmp.p9_1 = null;
|
|
1102
|
+
return tmp.u9();
|
|
1102
1103
|
}
|
|
1103
1104
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1104
1105
|
max = max === VOID ? 9223372036854775807n : max;
|
|
1105
1106
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1106
|
-
tmp.
|
|
1107
|
-
tmp.
|
|
1108
|
-
return tmp.
|
|
1107
|
+
tmp.o9_1 = Unit_instance;
|
|
1108
|
+
tmp.p9_1 = null;
|
|
1109
|
+
return tmp.u9();
|
|
1109
1110
|
}
|
|
1110
1111
|
function copyTo_0(_this__u8e3s4, channel, $completion) {
|
|
1111
1112
|
var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, $completion);
|
|
1112
|
-
tmp.
|
|
1113
|
-
tmp.
|
|
1114
|
-
return tmp.
|
|
1113
|
+
tmp.o9_1 = Unit_instance;
|
|
1114
|
+
tmp.p9_1 = null;
|
|
1115
|
+
return tmp.u9();
|
|
1115
1116
|
}
|
|
1116
1117
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1117
1118
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1118
|
-
tmp.
|
|
1119
|
-
tmp.
|
|
1120
|
-
return tmp.
|
|
1119
|
+
tmp.o9_1 = Unit_instance;
|
|
1120
|
+
tmp.p9_1 = null;
|
|
1121
|
+
return tmp.u9();
|
|
1121
1122
|
}
|
|
1122
1123
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1123
1124
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1124
|
-
tmp.
|
|
1125
|
-
tmp.
|
|
1126
|
-
return tmp.
|
|
1125
|
+
tmp.o9_1 = Unit_instance;
|
|
1126
|
+
tmp.p9_1 = null;
|
|
1127
|
+
return tmp.u9();
|
|
1127
1128
|
}
|
|
1128
1129
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1129
1130
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1130
1131
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1131
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1132
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).w2y(ignoreMissing, $completion);
|
|
1132
1133
|
}
|
|
1133
1134
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1134
1135
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1142,12 +1143,12 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1142
1143
|
}
|
|
1143
1144
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
1144
1145
|
var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
|
|
1145
|
-
tmp.
|
|
1146
|
-
tmp.
|
|
1147
|
-
return tmp.
|
|
1146
|
+
tmp.o9_1 = Unit_instance;
|
|
1147
|
+
tmp.p9_1 = null;
|
|
1148
|
+
return tmp.u9();
|
|
1148
1149
|
}
|
|
1149
1150
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1150
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1151
|
+
var tmp0_safe_receiver = _this__u8e3s4.a2x();
|
|
1151
1152
|
if (tmp0_safe_receiver == null)
|
|
1152
1153
|
null;
|
|
1153
1154
|
else {
|
|
@@ -1156,7 +1157,7 @@ function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
|
1156
1157
|
}
|
|
1157
1158
|
}
|
|
1158
1159
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1159
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1160
|
+
var tmp0_safe_receiver = _this__u8e3s4.a2x();
|
|
1160
1161
|
if (tmp0_safe_receiver == null)
|
|
1161
1162
|
null;
|
|
1162
1163
|
else {
|
|
@@ -1165,19 +1166,19 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1165
1166
|
}
|
|
1166
1167
|
}
|
|
1167
1168
|
function get_availableForRead(_this__u8e3s4) {
|
|
1168
|
-
return convertToInt(_this__u8e3s4.
|
|
1169
|
+
return convertToInt(_this__u8e3s4.v2w().t2r().g1());
|
|
1169
1170
|
}
|
|
1170
1171
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1171
1172
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1172
|
-
tmp.
|
|
1173
|
-
tmp.
|
|
1174
|
-
return tmp.
|
|
1173
|
+
tmp.o9_1 = Unit_instance;
|
|
1174
|
+
tmp.p9_1 = null;
|
|
1175
|
+
return tmp.u9();
|
|
1175
1176
|
}
|
|
1176
1177
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1177
1178
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1178
|
-
tmp.
|
|
1179
|
-
tmp.
|
|
1180
|
-
return tmp.
|
|
1179
|
+
tmp.o9_1 = Unit_instance;
|
|
1180
|
+
tmp.p9_1 = null;
|
|
1181
|
+
return tmp.u9();
|
|
1181
1182
|
}
|
|
1182
1183
|
function throwEndOfStreamException(consumed) {
|
|
1183
1184
|
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
|
|
@@ -1186,7 +1187,7 @@ function throwTooLongLineException(limit) {
|
|
|
1186
1187
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1187
1188
|
}
|
|
1188
1189
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1189
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1190
|
+
var tmp0_safe_receiver = _this__u8e3s4.a2x();
|
|
1190
1191
|
if (tmp0_safe_receiver == null)
|
|
1191
1192
|
null;
|
|
1192
1193
|
else {
|
|
@@ -1225,178 +1226,178 @@ function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfI
|
|
|
1225
1226
|
}
|
|
1226
1227
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1227
1228
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1228
|
-
tmp.
|
|
1229
|
-
tmp.
|
|
1230
|
-
return tmp.
|
|
1229
|
+
tmp.o9_1 = Unit_instance;
|
|
1230
|
+
tmp.p9_1 = null;
|
|
1231
|
+
return tmp.u9();
|
|
1231
1232
|
}
|
|
1232
1233
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1233
1234
|
CoroutineImpl.call(this, resultContinuation);
|
|
1234
|
-
this.
|
|
1235
|
+
this.i2z_1 = _this__u8e3s4;
|
|
1235
1236
|
}
|
|
1236
|
-
protoOf($readBufferCOROUTINE$).
|
|
1237
|
-
var suspendResult = this.
|
|
1237
|
+
protoOf($readBufferCOROUTINE$).u9 = function () {
|
|
1238
|
+
var suspendResult = this.o9_1;
|
|
1238
1239
|
$sm: do
|
|
1239
1240
|
try {
|
|
1240
|
-
var tmp = this.
|
|
1241
|
+
var tmp = this.m9_1;
|
|
1241
1242
|
switch (tmp) {
|
|
1242
1243
|
case 0:
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1244
|
+
this.n9_1 = 4;
|
|
1245
|
+
this.j2z_1 = new Buffer();
|
|
1246
|
+
this.m9_1 = 1;
|
|
1246
1247
|
continue $sm;
|
|
1247
1248
|
case 1:
|
|
1248
|
-
if (!!this.
|
|
1249
|
-
this.
|
|
1249
|
+
if (!!this.i2z_1.c2x()) {
|
|
1250
|
+
this.m9_1 = 3;
|
|
1250
1251
|
continue $sm;
|
|
1251
1252
|
}
|
|
1252
1253
|
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
suspendResult = this.
|
|
1254
|
+
this.j2z_1.m2t(this.i2z_1.v2w());
|
|
1255
|
+
this.m9_1 = 2;
|
|
1256
|
+
suspendResult = this.i2z_1.e2x(VOID, this);
|
|
1256
1257
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1257
1258
|
return suspendResult;
|
|
1258
1259
|
}
|
|
1259
1260
|
|
|
1260
1261
|
continue $sm;
|
|
1261
1262
|
case 2:
|
|
1262
|
-
this.
|
|
1263
|
+
this.m9_1 = 1;
|
|
1263
1264
|
continue $sm;
|
|
1264
1265
|
case 3:
|
|
1265
|
-
var tmp0_safe_receiver = this.
|
|
1266
|
+
var tmp0_safe_receiver = this.i2z_1.a2x();
|
|
1266
1267
|
if (tmp0_safe_receiver == null)
|
|
1267
1268
|
null;
|
|
1268
1269
|
else {
|
|
1269
1270
|
throw tmp0_safe_receiver;
|
|
1270
1271
|
}
|
|
1271
1272
|
|
|
1272
|
-
return this.
|
|
1273
|
+
return this.j2z_1;
|
|
1273
1274
|
case 4:
|
|
1274
|
-
throw this.
|
|
1275
|
+
throw this.p9_1;
|
|
1275
1276
|
}
|
|
1276
1277
|
} catch ($p) {
|
|
1277
1278
|
var e = $p;
|
|
1278
|
-
if (this.
|
|
1279
|
+
if (this.n9_1 === 4) {
|
|
1279
1280
|
throw e;
|
|
1280
1281
|
} else {
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1282
|
+
this.m9_1 = this.n9_1;
|
|
1283
|
+
this.p9_1 = e;
|
|
1283
1284
|
}
|
|
1284
1285
|
}
|
|
1285
1286
|
while (true);
|
|
1286
1287
|
};
|
|
1287
1288
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1288
1289
|
CoroutineImpl.call(this, resultContinuation);
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1290
|
+
this.s2z_1 = _this__u8e3s4;
|
|
1291
|
+
this.t2z_1 = buffer;
|
|
1292
|
+
this.u2z_1 = offset;
|
|
1293
|
+
this.v2z_1 = length;
|
|
1293
1294
|
}
|
|
1294
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1295
|
-
var suspendResult = this.
|
|
1295
|
+
protoOf($readAvailableCOROUTINE$).u9 = function () {
|
|
1296
|
+
var suspendResult = this.o9_1;
|
|
1296
1297
|
$sm: do
|
|
1297
1298
|
try {
|
|
1298
|
-
var tmp = this.
|
|
1299
|
+
var tmp = this.m9_1;
|
|
1299
1300
|
switch (tmp) {
|
|
1300
1301
|
case 0:
|
|
1301
|
-
this.
|
|
1302
|
-
if (this.
|
|
1302
|
+
this.n9_1 = 3;
|
|
1303
|
+
if (this.s2z_1.c2x())
|
|
1303
1304
|
return -1;
|
|
1304
|
-
if (this.
|
|
1305
|
-
this.
|
|
1306
|
-
suspendResult = this.
|
|
1305
|
+
if (this.s2z_1.v2w().u2r()) {
|
|
1306
|
+
this.m9_1 = 1;
|
|
1307
|
+
suspendResult = this.s2z_1.e2x(VOID, this);
|
|
1307
1308
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1308
1309
|
return suspendResult;
|
|
1309
1310
|
}
|
|
1310
1311
|
continue $sm;
|
|
1311
1312
|
} else {
|
|
1312
|
-
this.
|
|
1313
|
+
this.m9_1 = 2;
|
|
1313
1314
|
continue $sm;
|
|
1314
1315
|
}
|
|
1315
1316
|
|
|
1316
1317
|
case 1:
|
|
1317
|
-
this.
|
|
1318
|
+
this.m9_1 = 2;
|
|
1318
1319
|
continue $sm;
|
|
1319
1320
|
case 2:
|
|
1320
|
-
if (this.
|
|
1321
|
+
if (this.s2z_1.c2x())
|
|
1321
1322
|
return -1;
|
|
1322
|
-
return readAvailable_0(this.
|
|
1323
|
+
return readAvailable_0(this.s2z_1.v2w(), this.t2z_1, this.u2z_1, this.v2z_1);
|
|
1323
1324
|
case 3:
|
|
1324
|
-
throw this.
|
|
1325
|
+
throw this.p9_1;
|
|
1325
1326
|
}
|
|
1326
1327
|
} catch ($p) {
|
|
1327
1328
|
var e = $p;
|
|
1328
|
-
if (this.
|
|
1329
|
+
if (this.n9_1 === 3) {
|
|
1329
1330
|
throw e;
|
|
1330
1331
|
} else {
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1332
|
+
this.m9_1 = this.n9_1;
|
|
1333
|
+
this.p9_1 = e;
|
|
1333
1334
|
}
|
|
1334
1335
|
}
|
|
1335
1336
|
while (true);
|
|
1336
1337
|
};
|
|
1337
1338
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1338
1339
|
CoroutineImpl.call(this, resultContinuation);
|
|
1339
|
-
this.
|
|
1340
|
+
this.e30_1 = _this__u8e3s4;
|
|
1340
1341
|
}
|
|
1341
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1342
|
-
var suspendResult = this.
|
|
1342
|
+
protoOf($readRemainingCOROUTINE$).u9 = function () {
|
|
1343
|
+
var suspendResult = this.o9_1;
|
|
1343
1344
|
$sm: do
|
|
1344
1345
|
try {
|
|
1345
|
-
var tmp = this.
|
|
1346
|
+
var tmp = this.m9_1;
|
|
1346
1347
|
switch (tmp) {
|
|
1347
1348
|
case 0:
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1349
|
+
this.n9_1 = 4;
|
|
1350
|
+
this.f30_1 = BytePacketBuilder();
|
|
1351
|
+
this.m9_1 = 1;
|
|
1351
1352
|
continue $sm;
|
|
1352
1353
|
case 1:
|
|
1353
|
-
if (!!this.
|
|
1354
|
-
this.
|
|
1354
|
+
if (!!this.e30_1.c2x()) {
|
|
1355
|
+
this.m9_1 = 3;
|
|
1355
1356
|
continue $sm;
|
|
1356
1357
|
}
|
|
1357
1358
|
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
suspendResult = this.
|
|
1359
|
+
this.f30_1.m2t(this.e30_1.v2w());
|
|
1360
|
+
this.m9_1 = 2;
|
|
1361
|
+
suspendResult = this.e30_1.e2x(VOID, this);
|
|
1361
1362
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1362
1363
|
return suspendResult;
|
|
1363
1364
|
}
|
|
1364
1365
|
|
|
1365
1366
|
continue $sm;
|
|
1366
1367
|
case 2:
|
|
1367
|
-
this.
|
|
1368
|
+
this.m9_1 = 1;
|
|
1368
1369
|
continue $sm;
|
|
1369
1370
|
case 3:
|
|
1370
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1371
|
-
return this.
|
|
1371
|
+
rethrowCloseCauseIfNeeded_0(this.e30_1);
|
|
1372
|
+
return this.f30_1.t2r();
|
|
1372
1373
|
case 4:
|
|
1373
|
-
throw this.
|
|
1374
|
+
throw this.p9_1;
|
|
1374
1375
|
}
|
|
1375
1376
|
} catch ($p) {
|
|
1376
1377
|
var e = $p;
|
|
1377
|
-
if (this.
|
|
1378
|
+
if (this.n9_1 === 4) {
|
|
1378
1379
|
throw e;
|
|
1379
1380
|
} else {
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1381
|
+
this.m9_1 = this.n9_1;
|
|
1382
|
+
this.p9_1 = e;
|
|
1382
1383
|
}
|
|
1383
1384
|
}
|
|
1384
1385
|
while (true);
|
|
1385
1386
|
};
|
|
1386
1387
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1387
1388
|
CoroutineImpl.call(this, resultContinuation);
|
|
1388
|
-
this.
|
|
1389
|
+
this.o30_1 = _this__u8e3s4;
|
|
1389
1390
|
}
|
|
1390
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1391
|
-
var suspendResult = this.
|
|
1391
|
+
protoOf($toByteArrayCOROUTINE$).u9 = function () {
|
|
1392
|
+
var suspendResult = this.o9_1;
|
|
1392
1393
|
$sm: do
|
|
1393
1394
|
try {
|
|
1394
|
-
var tmp = this.
|
|
1395
|
+
var tmp = this.m9_1;
|
|
1395
1396
|
switch (tmp) {
|
|
1396
1397
|
case 0:
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
suspendResult = readBuffer(this.
|
|
1398
|
+
this.n9_1 = 2;
|
|
1399
|
+
this.m9_1 = 1;
|
|
1400
|
+
suspendResult = readBuffer(this.o30_1, this);
|
|
1400
1401
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1401
1402
|
return suspendResult;
|
|
1402
1403
|
}
|
|
@@ -1406,306 +1407,306 @@ protoOf($toByteArrayCOROUTINE$).t9 = function () {
|
|
|
1406
1407
|
var ARGUMENT = suspendResult;
|
|
1407
1408
|
return readBytes(ARGUMENT);
|
|
1408
1409
|
case 2:
|
|
1409
|
-
throw this.
|
|
1410
|
+
throw this.p9_1;
|
|
1410
1411
|
}
|
|
1411
1412
|
} catch ($p) {
|
|
1412
1413
|
var e = $p;
|
|
1413
|
-
if (this.
|
|
1414
|
+
if (this.n9_1 === 2) {
|
|
1414
1415
|
throw e;
|
|
1415
1416
|
} else {
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1417
|
+
this.m9_1 = this.n9_1;
|
|
1418
|
+
this.p9_1 = e;
|
|
1418
1419
|
}
|
|
1419
1420
|
}
|
|
1420
1421
|
while (true);
|
|
1421
1422
|
};
|
|
1422
1423
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1423
1424
|
CoroutineImpl.call(this, resultContinuation);
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1425
|
+
this.x30_1 = _this__u8e3s4;
|
|
1426
|
+
this.y30_1 = channel;
|
|
1427
|
+
this.z30_1 = limit;
|
|
1427
1428
|
}
|
|
1428
|
-
protoOf($copyToCOROUTINE$).
|
|
1429
|
-
var suspendResult = this.
|
|
1429
|
+
protoOf($copyToCOROUTINE$).u9 = function () {
|
|
1430
|
+
var suspendResult = this.o9_1;
|
|
1430
1431
|
$sm: do
|
|
1431
1432
|
try {
|
|
1432
|
-
var tmp = this.
|
|
1433
|
+
var tmp = this.m9_1;
|
|
1433
1434
|
switch (tmp) {
|
|
1434
1435
|
case 0:
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1436
|
+
this.n9_1 = 12;
|
|
1437
|
+
this.a31_1 = this.z30_1;
|
|
1438
|
+
this.m9_1 = 1;
|
|
1438
1439
|
continue $sm;
|
|
1439
1440
|
case 1:
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1441
|
+
this.n9_1 = 8;
|
|
1442
|
+
this.n9_1 = 7;
|
|
1443
|
+
this.m9_1 = 2;
|
|
1443
1444
|
continue $sm;
|
|
1444
1445
|
case 2:
|
|
1445
|
-
if (!(!this.
|
|
1446
|
-
this.
|
|
1446
|
+
if (!(!this.x30_1.c2x() && this.a31_1 > 0n)) {
|
|
1447
|
+
this.m9_1 = 6;
|
|
1447
1448
|
continue $sm;
|
|
1448
1449
|
}
|
|
1449
1450
|
|
|
1450
|
-
if (this.
|
|
1451
|
-
this.
|
|
1452
|
-
suspendResult = this.
|
|
1451
|
+
if (this.x30_1.v2w().u2r()) {
|
|
1452
|
+
this.m9_1 = 3;
|
|
1453
|
+
suspendResult = this.x30_1.e2x(VOID, this);
|
|
1453
1454
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1455
|
return suspendResult;
|
|
1455
1456
|
}
|
|
1456
1457
|
continue $sm;
|
|
1457
1458
|
} else {
|
|
1458
|
-
this.
|
|
1459
|
+
this.m9_1 = 4;
|
|
1459
1460
|
continue $sm;
|
|
1460
1461
|
}
|
|
1461
1462
|
|
|
1462
1463
|
case 3:
|
|
1463
|
-
this.
|
|
1464
|
+
this.m9_1 = 4;
|
|
1464
1465
|
continue $sm;
|
|
1465
1466
|
case 4:
|
|
1466
|
-
var tmp0 = this.
|
|
1467
|
-
var b = get_remaining(this.
|
|
1467
|
+
var tmp0 = this.a31_1;
|
|
1468
|
+
var b = get_remaining(this.x30_1.v2w());
|
|
1468
1469
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1469
|
-
this.
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1472
|
-
suspendResult = this.
|
|
1470
|
+
this.x30_1.v2w().w2s(this.y30_1.y2w(), count);
|
|
1471
|
+
this.a31_1 = subtract(this.a31_1, count);
|
|
1472
|
+
this.m9_1 = 5;
|
|
1473
|
+
suspendResult = this.y30_1.t2w(this);
|
|
1473
1474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1474
1475
|
return suspendResult;
|
|
1475
1476
|
}
|
|
1476
1477
|
|
|
1477
1478
|
continue $sm;
|
|
1478
1479
|
case 5:
|
|
1479
|
-
this.
|
|
1480
|
+
this.m9_1 = 2;
|
|
1480
1481
|
continue $sm;
|
|
1481
1482
|
case 6:
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1483
|
+
this.n9_1 = 12;
|
|
1484
|
+
this.m9_1 = 10;
|
|
1484
1485
|
continue $sm;
|
|
1485
1486
|
case 7:
|
|
1486
|
-
this.
|
|
1487
|
-
var tmp_0 = this.
|
|
1487
|
+
this.n9_1 = 8;
|
|
1488
|
+
var tmp_0 = this.p9_1;
|
|
1488
1489
|
if (tmp_0 instanceof Error) {
|
|
1489
|
-
var cause = this.
|
|
1490
|
-
this.
|
|
1491
|
-
|
|
1490
|
+
var cause = this.p9_1;
|
|
1491
|
+
this.x30_1.g2x(cause);
|
|
1492
|
+
close_1(this.y30_1, cause);
|
|
1492
1493
|
throw cause;
|
|
1493
1494
|
} else {
|
|
1494
|
-
throw this.
|
|
1495
|
+
throw this.p9_1;
|
|
1495
1496
|
}
|
|
1496
1497
|
|
|
1497
1498
|
case 8:
|
|
1498
|
-
this.
|
|
1499
|
-
this.
|
|
1500
|
-
this.
|
|
1501
|
-
suspendResult = this.
|
|
1499
|
+
this.n9_1 = 12;
|
|
1500
|
+
this.b31_1 = this.p9_1;
|
|
1501
|
+
this.m9_1 = 9;
|
|
1502
|
+
suspendResult = this.y30_1.t2w(this);
|
|
1502
1503
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1503
1504
|
return suspendResult;
|
|
1504
1505
|
}
|
|
1505
1506
|
|
|
1506
1507
|
continue $sm;
|
|
1507
1508
|
case 9:
|
|
1508
|
-
throw this.
|
|
1509
|
+
throw this.b31_1;
|
|
1509
1510
|
case 10:
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1512
|
-
suspendResult = this.
|
|
1511
|
+
this.n9_1 = 12;
|
|
1512
|
+
this.m9_1 = 11;
|
|
1513
|
+
suspendResult = this.y30_1.t2w(this);
|
|
1513
1514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1514
1515
|
return suspendResult;
|
|
1515
1516
|
}
|
|
1516
1517
|
|
|
1517
1518
|
continue $sm;
|
|
1518
1519
|
case 11:
|
|
1519
|
-
return subtract(this.
|
|
1520
|
+
return subtract(this.z30_1, this.a31_1);
|
|
1520
1521
|
case 12:
|
|
1521
|
-
throw this.
|
|
1522
|
+
throw this.p9_1;
|
|
1522
1523
|
}
|
|
1523
1524
|
} catch ($p) {
|
|
1524
1525
|
var e = $p;
|
|
1525
|
-
if (this.
|
|
1526
|
+
if (this.n9_1 === 12) {
|
|
1526
1527
|
throw e;
|
|
1527
1528
|
} else {
|
|
1528
|
-
this.
|
|
1529
|
-
this.
|
|
1529
|
+
this.m9_1 = this.n9_1;
|
|
1530
|
+
this.p9_1 = e;
|
|
1530
1531
|
}
|
|
1531
1532
|
}
|
|
1532
1533
|
while (true);
|
|
1533
1534
|
};
|
|
1534
1535
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1535
1536
|
CoroutineImpl.call(this, resultContinuation);
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1537
|
+
this.k31_1 = _this__u8e3s4;
|
|
1538
|
+
this.l31_1 = max;
|
|
1538
1539
|
}
|
|
1539
|
-
protoOf($discardCOROUTINE$).
|
|
1540
|
-
var suspendResult = this.
|
|
1540
|
+
protoOf($discardCOROUTINE$).u9 = function () {
|
|
1541
|
+
var suspendResult = this.o9_1;
|
|
1541
1542
|
$sm: do
|
|
1542
1543
|
try {
|
|
1543
|
-
var tmp = this.
|
|
1544
|
+
var tmp = this.m9_1;
|
|
1544
1545
|
switch (tmp) {
|
|
1545
1546
|
case 0:
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1548
|
-
this.
|
|
1547
|
+
this.n9_1 = 5;
|
|
1548
|
+
this.m31_1 = this.l31_1;
|
|
1549
|
+
this.m9_1 = 1;
|
|
1549
1550
|
continue $sm;
|
|
1550
1551
|
case 1:
|
|
1551
|
-
if (!(this.
|
|
1552
|
-
this.
|
|
1552
|
+
if (!(this.m31_1 > 0n && !this.k31_1.c2x())) {
|
|
1553
|
+
this.m9_1 = 4;
|
|
1553
1554
|
continue $sm;
|
|
1554
1555
|
}
|
|
1555
1556
|
|
|
1556
|
-
if (get_availableForRead(this.
|
|
1557
|
-
this.
|
|
1558
|
-
suspendResult = this.
|
|
1557
|
+
if (get_availableForRead(this.k31_1) === 0) {
|
|
1558
|
+
this.m9_1 = 2;
|
|
1559
|
+
suspendResult = this.k31_1.e2x(VOID, this);
|
|
1559
1560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1560
1561
|
return suspendResult;
|
|
1561
1562
|
}
|
|
1562
1563
|
continue $sm;
|
|
1563
1564
|
} else {
|
|
1564
|
-
this.
|
|
1565
|
+
this.m9_1 = 3;
|
|
1565
1566
|
continue $sm;
|
|
1566
1567
|
}
|
|
1567
1568
|
|
|
1568
1569
|
case 2:
|
|
1569
|
-
this.
|
|
1570
|
+
this.m9_1 = 3;
|
|
1570
1571
|
continue $sm;
|
|
1571
1572
|
case 3:
|
|
1572
|
-
var tmp0 = this.
|
|
1573
|
-
var b = get_remaining(this.
|
|
1573
|
+
var tmp0 = this.m31_1;
|
|
1574
|
+
var b = get_remaining(this.k31_1.v2w());
|
|
1574
1575
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1575
|
-
discard_0(this.
|
|
1576
|
-
this.
|
|
1577
|
-
this.
|
|
1576
|
+
discard_0(this.k31_1.v2w(), count);
|
|
1577
|
+
this.m31_1 = subtract(this.m31_1, count);
|
|
1578
|
+
this.m9_1 = 1;
|
|
1578
1579
|
continue $sm;
|
|
1579
1580
|
case 4:
|
|
1580
|
-
return subtract(this.
|
|
1581
|
+
return subtract(this.l31_1, this.m31_1);
|
|
1581
1582
|
case 5:
|
|
1582
|
-
throw this.
|
|
1583
|
+
throw this.p9_1;
|
|
1583
1584
|
}
|
|
1584
1585
|
} catch ($p) {
|
|
1585
1586
|
var e = $p;
|
|
1586
|
-
if (this.
|
|
1587
|
+
if (this.n9_1 === 5) {
|
|
1587
1588
|
throw e;
|
|
1588
1589
|
} else {
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1590
|
+
this.m9_1 = this.n9_1;
|
|
1591
|
+
this.p9_1 = e;
|
|
1591
1592
|
}
|
|
1592
1593
|
}
|
|
1593
1594
|
while (true);
|
|
1594
1595
|
};
|
|
1595
1596
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
|
|
1596
1597
|
CoroutineImpl.call(this, resultContinuation);
|
|
1597
|
-
this.
|
|
1598
|
-
this.
|
|
1598
|
+
this.v31_1 = _this__u8e3s4;
|
|
1599
|
+
this.w31_1 = channel;
|
|
1599
1600
|
}
|
|
1600
|
-
protoOf($copyToCOROUTINE$_0).
|
|
1601
|
-
var suspendResult = this.
|
|
1601
|
+
protoOf($copyToCOROUTINE$_0).u9 = function () {
|
|
1602
|
+
var suspendResult = this.o9_1;
|
|
1602
1603
|
$sm: do
|
|
1603
1604
|
try {
|
|
1604
|
-
var tmp = this.
|
|
1605
|
+
var tmp = this.m9_1;
|
|
1605
1606
|
switch (tmp) {
|
|
1606
1607
|
case 0:
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1608
|
+
this.n9_1 = 11;
|
|
1609
|
+
this.x31_1 = 0n;
|
|
1610
|
+
this.m9_1 = 1;
|
|
1610
1611
|
continue $sm;
|
|
1611
1612
|
case 1:
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1613
|
+
this.n9_1 = 7;
|
|
1614
|
+
this.n9_1 = 6;
|
|
1615
|
+
this.m9_1 = 2;
|
|
1615
1616
|
continue $sm;
|
|
1616
1617
|
case 2:
|
|
1617
|
-
if (!!this.
|
|
1618
|
-
this.
|
|
1618
|
+
if (!!this.v31_1.c2x()) {
|
|
1619
|
+
this.m9_1 = 5;
|
|
1619
1620
|
continue $sm;
|
|
1620
1621
|
}
|
|
1621
1622
|
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
suspendResult = this.
|
|
1623
|
+
this.x31_1 = add(this.x31_1, this.v31_1.v2w().x2s(this.w31_1.y2w()));
|
|
1624
|
+
this.m9_1 = 3;
|
|
1625
|
+
suspendResult = this.w31_1.t2w(this);
|
|
1625
1626
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1626
1627
|
return suspendResult;
|
|
1627
1628
|
}
|
|
1628
1629
|
|
|
1629
1630
|
continue $sm;
|
|
1630
1631
|
case 3:
|
|
1631
|
-
this.
|
|
1632
|
-
suspendResult = this.
|
|
1632
|
+
this.m9_1 = 4;
|
|
1633
|
+
suspendResult = this.v31_1.e2x(VOID, this);
|
|
1633
1634
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1634
1635
|
return suspendResult;
|
|
1635
1636
|
}
|
|
1636
1637
|
|
|
1637
1638
|
continue $sm;
|
|
1638
1639
|
case 4:
|
|
1639
|
-
this.
|
|
1640
|
+
this.m9_1 = 2;
|
|
1640
1641
|
continue $sm;
|
|
1641
1642
|
case 5:
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1643
|
+
this.n9_1 = 11;
|
|
1644
|
+
this.m9_1 = 9;
|
|
1644
1645
|
continue $sm;
|
|
1645
1646
|
case 6:
|
|
1646
|
-
this.
|
|
1647
|
-
var tmp_0 = this.
|
|
1647
|
+
this.n9_1 = 7;
|
|
1648
|
+
var tmp_0 = this.p9_1;
|
|
1648
1649
|
if (tmp_0 instanceof Error) {
|
|
1649
|
-
var cause = this.
|
|
1650
|
-
this.
|
|
1651
|
-
|
|
1650
|
+
var cause = this.p9_1;
|
|
1651
|
+
this.v31_1.g2x(cause);
|
|
1652
|
+
close_1(this.w31_1, cause);
|
|
1652
1653
|
throw cause;
|
|
1653
1654
|
} else {
|
|
1654
|
-
throw this.
|
|
1655
|
+
throw this.p9_1;
|
|
1655
1656
|
}
|
|
1656
1657
|
|
|
1657
1658
|
case 7:
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
suspendResult = this.
|
|
1659
|
+
this.n9_1 = 11;
|
|
1660
|
+
this.y31_1 = this.p9_1;
|
|
1661
|
+
this.m9_1 = 8;
|
|
1662
|
+
suspendResult = this.w31_1.t2w(this);
|
|
1662
1663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1663
1664
|
return suspendResult;
|
|
1664
1665
|
}
|
|
1665
1666
|
|
|
1666
1667
|
continue $sm;
|
|
1667
1668
|
case 8:
|
|
1668
|
-
throw this.
|
|
1669
|
+
throw this.y31_1;
|
|
1669
1670
|
case 9:
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
suspendResult = this.
|
|
1671
|
+
this.n9_1 = 11;
|
|
1672
|
+
this.m9_1 = 10;
|
|
1673
|
+
suspendResult = this.w31_1.t2w(this);
|
|
1673
1674
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1674
1675
|
return suspendResult;
|
|
1675
1676
|
}
|
|
1676
1677
|
|
|
1677
1678
|
continue $sm;
|
|
1678
1679
|
case 10:
|
|
1679
|
-
return this.
|
|
1680
|
+
return this.x31_1;
|
|
1680
1681
|
case 11:
|
|
1681
|
-
throw this.
|
|
1682
|
+
throw this.p9_1;
|
|
1682
1683
|
}
|
|
1683
1684
|
} catch ($p) {
|
|
1684
1685
|
var e = $p;
|
|
1685
|
-
if (this.
|
|
1686
|
+
if (this.n9_1 === 11) {
|
|
1686
1687
|
throw e;
|
|
1687
1688
|
} else {
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1689
|
+
this.m9_1 = this.n9_1;
|
|
1690
|
+
this.p9_1 = e;
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
1693
|
while (true);
|
|
1693
1694
|
};
|
|
1694
1695
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1695
1696
|
CoroutineImpl.call(this, resultContinuation);
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1697
|
+
this.h32_1 = _this__u8e3s4;
|
|
1698
|
+
this.i32_1 = byteString;
|
|
1698
1699
|
}
|
|
1699
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1700
|
-
var suspendResult = this.
|
|
1700
|
+
protoOf($skipIfFoundCOROUTINE$).u9 = function () {
|
|
1701
|
+
var suspendResult = this.o9_1;
|
|
1701
1702
|
$sm: do
|
|
1702
1703
|
try {
|
|
1703
|
-
var tmp = this.
|
|
1704
|
+
var tmp = this.m9_1;
|
|
1704
1705
|
switch (tmp) {
|
|
1705
1706
|
case 0:
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1708
|
-
suspendResult = peek(this.
|
|
1707
|
+
this.n9_1 = 4;
|
|
1708
|
+
this.m9_1 = 1;
|
|
1709
|
+
suspendResult = peek(this.h32_1, this.i32_1.g1(), this);
|
|
1709
1710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1710
1711
|
return suspendResult;
|
|
1711
1712
|
}
|
|
@@ -1713,15 +1714,15 @@ protoOf($skipIfFoundCOROUTINE$).t9 = function () {
|
|
|
1713
1714
|
continue $sm;
|
|
1714
1715
|
case 1:
|
|
1715
1716
|
var ARGUMENT = suspendResult;
|
|
1716
|
-
if (equals(ARGUMENT, this.
|
|
1717
|
-
this.
|
|
1718
|
-
suspendResult = discard(this.
|
|
1717
|
+
if (equals(ARGUMENT, this.i32_1)) {
|
|
1718
|
+
this.m9_1 = 3;
|
|
1719
|
+
suspendResult = discard(this.h32_1, fromInt(this.i32_1.g1()), this);
|
|
1719
1720
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
1721
|
return suspendResult;
|
|
1721
1722
|
}
|
|
1722
1723
|
continue $sm;
|
|
1723
1724
|
} else {
|
|
1724
|
-
this.
|
|
1725
|
+
this.m9_1 = 2;
|
|
1725
1726
|
continue $sm;
|
|
1726
1727
|
}
|
|
1727
1728
|
|
|
@@ -1730,168 +1731,168 @@ protoOf($skipIfFoundCOROUTINE$).t9 = function () {
|
|
|
1730
1731
|
case 3:
|
|
1731
1732
|
return true;
|
|
1732
1733
|
case 4:
|
|
1733
|
-
throw this.
|
|
1734
|
+
throw this.p9_1;
|
|
1734
1735
|
}
|
|
1735
1736
|
} catch ($p) {
|
|
1736
1737
|
var e = $p;
|
|
1737
|
-
if (this.
|
|
1738
|
+
if (this.n9_1 === 4) {
|
|
1738
1739
|
throw e;
|
|
1739
1740
|
} else {
|
|
1740
|
-
this.
|
|
1741
|
-
this.
|
|
1741
|
+
this.m9_1 = this.n9_1;
|
|
1742
|
+
this.p9_1 = e;
|
|
1742
1743
|
}
|
|
1743
1744
|
}
|
|
1744
1745
|
while (true);
|
|
1745
1746
|
};
|
|
1746
1747
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1747
1748
|
CoroutineImpl.call(this, resultContinuation);
|
|
1748
|
-
this.
|
|
1749
|
-
this.
|
|
1749
|
+
this.r32_1 = _this__u8e3s4;
|
|
1750
|
+
this.s32_1 = packet;
|
|
1750
1751
|
}
|
|
1751
|
-
protoOf($readPacketCOROUTINE$).
|
|
1752
|
-
var suspendResult = this.
|
|
1752
|
+
protoOf($readPacketCOROUTINE$).u9 = function () {
|
|
1753
|
+
var suspendResult = this.o9_1;
|
|
1753
1754
|
$sm: do
|
|
1754
1755
|
try {
|
|
1755
|
-
var tmp = this.
|
|
1756
|
+
var tmp = this.m9_1;
|
|
1756
1757
|
switch (tmp) {
|
|
1757
1758
|
case 0:
|
|
1758
|
-
this.
|
|
1759
|
-
this.
|
|
1760
|
-
this.
|
|
1759
|
+
this.n9_1 = 6;
|
|
1760
|
+
this.t32_1 = new Buffer();
|
|
1761
|
+
this.m9_1 = 1;
|
|
1761
1762
|
continue $sm;
|
|
1762
1763
|
case 1:
|
|
1763
|
-
if (!(this.
|
|
1764
|
-
this.
|
|
1764
|
+
if (!(this.t32_1.g1() < fromInt(this.s32_1))) {
|
|
1765
|
+
this.m9_1 = 5;
|
|
1765
1766
|
continue $sm;
|
|
1766
1767
|
}
|
|
1767
1768
|
|
|
1768
|
-
if (this.
|
|
1769
|
-
this.
|
|
1770
|
-
suspendResult = this.
|
|
1769
|
+
if (this.r32_1.v2w().u2r()) {
|
|
1770
|
+
this.m9_1 = 2;
|
|
1771
|
+
suspendResult = this.r32_1.e2x(VOID, this);
|
|
1771
1772
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1772
1773
|
return suspendResult;
|
|
1773
1774
|
}
|
|
1774
1775
|
continue $sm;
|
|
1775
1776
|
} else {
|
|
1776
|
-
this.
|
|
1777
|
+
this.m9_1 = 3;
|
|
1777
1778
|
continue $sm;
|
|
1778
1779
|
}
|
|
1779
1780
|
|
|
1780
1781
|
case 2:
|
|
1781
|
-
this.
|
|
1782
|
+
this.m9_1 = 3;
|
|
1782
1783
|
continue $sm;
|
|
1783
1784
|
case 3:
|
|
1784
|
-
if (this.
|
|
1785
|
-
this.
|
|
1785
|
+
if (this.r32_1.c2x()) {
|
|
1786
|
+
this.m9_1 = 5;
|
|
1786
1787
|
continue $sm;
|
|
1787
1788
|
} else {
|
|
1788
|
-
this.
|
|
1789
|
+
this.m9_1 = 4;
|
|
1789
1790
|
continue $sm;
|
|
1790
1791
|
}
|
|
1791
1792
|
|
|
1792
1793
|
case 4:
|
|
1793
|
-
if (get_remaining(this.
|
|
1794
|
-
this.
|
|
1794
|
+
if (get_remaining(this.r32_1.v2w()) > subtract(numberToLong(this.s32_1), this.t32_1.g1())) {
|
|
1795
|
+
this.r32_1.v2w().w2s(this.t32_1, subtract(numberToLong(this.s32_1), this.t32_1.g1()));
|
|
1795
1796
|
} else {
|
|
1796
|
-
this.
|
|
1797
|
+
this.r32_1.v2w().x2s(this.t32_1);
|
|
1797
1798
|
}
|
|
1798
1799
|
|
|
1799
|
-
this.
|
|
1800
|
+
this.m9_1 = 1;
|
|
1800
1801
|
continue $sm;
|
|
1801
1802
|
case 5:
|
|
1802
|
-
if (this.
|
|
1803
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1803
|
+
if (this.t32_1.g1() < fromInt(this.s32_1)) {
|
|
1804
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.s32_1 + ' bytes but only ' + this.t32_1.g1().toString() + ' available');
|
|
1804
1805
|
}
|
|
1805
1806
|
|
|
1806
|
-
return this.
|
|
1807
|
+
return this.t32_1;
|
|
1807
1808
|
case 6:
|
|
1808
|
-
throw this.
|
|
1809
|
+
throw this.p9_1;
|
|
1809
1810
|
}
|
|
1810
1811
|
} catch ($p) {
|
|
1811
1812
|
var e = $p;
|
|
1812
|
-
if (this.
|
|
1813
|
+
if (this.n9_1 === 6) {
|
|
1813
1814
|
throw e;
|
|
1814
1815
|
} else {
|
|
1815
|
-
this.
|
|
1816
|
-
this.
|
|
1816
|
+
this.m9_1 = this.n9_1;
|
|
1817
|
+
this.p9_1 = e;
|
|
1817
1818
|
}
|
|
1818
1819
|
}
|
|
1819
1820
|
while (true);
|
|
1820
1821
|
};
|
|
1821
1822
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1822
1823
|
CoroutineImpl.call(this, resultContinuation);
|
|
1823
|
-
this.
|
|
1824
|
-
this.
|
|
1824
|
+
this.c33_1 = _this__u8e3s4;
|
|
1825
|
+
this.d33_1 = max;
|
|
1825
1826
|
}
|
|
1826
|
-
protoOf($readRemainingCOROUTINE$_0).
|
|
1827
|
-
var suspendResult = this.
|
|
1827
|
+
protoOf($readRemainingCOROUTINE$_0).u9 = function () {
|
|
1828
|
+
var suspendResult = this.o9_1;
|
|
1828
1829
|
$sm: do
|
|
1829
1830
|
try {
|
|
1830
|
-
var tmp = this.
|
|
1831
|
+
var tmp = this.m9_1;
|
|
1831
1832
|
switch (tmp) {
|
|
1832
1833
|
case 0:
|
|
1833
|
-
this.
|
|
1834
|
-
this.
|
|
1835
|
-
this.
|
|
1836
|
-
this.
|
|
1834
|
+
this.n9_1 = 4;
|
|
1835
|
+
this.e33_1 = BytePacketBuilder();
|
|
1836
|
+
this.f33_1 = this.d33_1;
|
|
1837
|
+
this.m9_1 = 1;
|
|
1837
1838
|
continue $sm;
|
|
1838
1839
|
case 1:
|
|
1839
|
-
if (!(!this.
|
|
1840
|
-
this.
|
|
1840
|
+
if (!(!this.c33_1.c2x() && this.f33_1 > 0n)) {
|
|
1841
|
+
this.m9_1 = 3;
|
|
1841
1842
|
continue $sm;
|
|
1842
1843
|
}
|
|
1843
1844
|
|
|
1844
|
-
if (this.
|
|
1845
|
-
this.
|
|
1846
|
-
this.
|
|
1845
|
+
if (this.f33_1 >= get_remaining(this.c33_1.v2w())) {
|
|
1846
|
+
this.f33_1 = subtract(this.f33_1, get_remaining(this.c33_1.v2w()));
|
|
1847
|
+
this.c33_1.v2w().x2s(this.e33_1);
|
|
1847
1848
|
} else {
|
|
1848
|
-
this.
|
|
1849
|
-
this.
|
|
1849
|
+
this.c33_1.v2w().w2s(this.e33_1, this.f33_1);
|
|
1850
|
+
this.f33_1 = 0n;
|
|
1850
1851
|
}
|
|
1851
1852
|
|
|
1852
|
-
this.
|
|
1853
|
-
suspendResult = this.
|
|
1853
|
+
this.m9_1 = 2;
|
|
1854
|
+
suspendResult = this.c33_1.e2x(VOID, this);
|
|
1854
1855
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1855
1856
|
return suspendResult;
|
|
1856
1857
|
}
|
|
1857
1858
|
|
|
1858
1859
|
continue $sm;
|
|
1859
1860
|
case 2:
|
|
1860
|
-
this.
|
|
1861
|
+
this.m9_1 = 1;
|
|
1861
1862
|
continue $sm;
|
|
1862
1863
|
case 3:
|
|
1863
|
-
return this.
|
|
1864
|
+
return this.e33_1.t2r();
|
|
1864
1865
|
case 4:
|
|
1865
|
-
throw this.
|
|
1866
|
+
throw this.p9_1;
|
|
1866
1867
|
}
|
|
1867
1868
|
} catch ($p) {
|
|
1868
1869
|
var e = $p;
|
|
1869
|
-
if (this.
|
|
1870
|
+
if (this.n9_1 === 4) {
|
|
1870
1871
|
throw e;
|
|
1871
1872
|
} else {
|
|
1872
|
-
this.
|
|
1873
|
-
this.
|
|
1873
|
+
this.m9_1 = this.n9_1;
|
|
1874
|
+
this.p9_1 = e;
|
|
1874
1875
|
}
|
|
1875
1876
|
}
|
|
1876
1877
|
while (true);
|
|
1877
1878
|
};
|
|
1878
1879
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1879
1880
|
CoroutineImpl.call(this, resultContinuation);
|
|
1880
|
-
this.
|
|
1881
|
-
this.
|
|
1881
|
+
this.o33_1 = _this__u8e3s4;
|
|
1882
|
+
this.p33_1 = count;
|
|
1882
1883
|
}
|
|
1883
|
-
protoOf($peekCOROUTINE$).
|
|
1884
|
-
var suspendResult = this.
|
|
1884
|
+
protoOf($peekCOROUTINE$).u9 = function () {
|
|
1885
|
+
var suspendResult = this.o9_1;
|
|
1885
1886
|
$sm: do
|
|
1886
1887
|
try {
|
|
1887
|
-
var tmp = this.
|
|
1888
|
+
var tmp = this.m9_1;
|
|
1888
1889
|
switch (tmp) {
|
|
1889
1890
|
case 0:
|
|
1890
|
-
this.
|
|
1891
|
-
if (this.
|
|
1891
|
+
this.n9_1 = 3;
|
|
1892
|
+
if (this.o33_1.c2x())
|
|
1892
1893
|
return null;
|
|
1893
|
-
this.
|
|
1894
|
-
suspendResult = this.
|
|
1894
|
+
this.m9_1 = 1;
|
|
1895
|
+
suspendResult = this.o33_1.d2x(this.p33_1, this);
|
|
1895
1896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1896
1897
|
return suspendResult;
|
|
1897
1898
|
}
|
|
@@ -1901,272 +1902,272 @@ protoOf($peekCOROUTINE$).t9 = function () {
|
|
|
1901
1902
|
if (!suspendResult) {
|
|
1902
1903
|
return null;
|
|
1903
1904
|
} else {
|
|
1904
|
-
this.
|
|
1905
|
+
this.m9_1 = 2;
|
|
1905
1906
|
continue $sm;
|
|
1906
1907
|
}
|
|
1907
1908
|
|
|
1908
1909
|
case 2:
|
|
1909
|
-
return readByteString(this.
|
|
1910
|
+
return readByteString(this.o33_1.v2w().y2s(), this.p33_1);
|
|
1910
1911
|
case 3:
|
|
1911
|
-
throw this.
|
|
1912
|
+
throw this.p9_1;
|
|
1912
1913
|
}
|
|
1913
1914
|
} catch ($p) {
|
|
1914
1915
|
var e = $p;
|
|
1915
|
-
if (this.
|
|
1916
|
+
if (this.n9_1 === 3) {
|
|
1916
1917
|
throw e;
|
|
1917
1918
|
} else {
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1919
|
+
this.m9_1 = this.n9_1;
|
|
1920
|
+
this.p9_1 = e;
|
|
1920
1921
|
}
|
|
1921
1922
|
}
|
|
1922
1923
|
while (true);
|
|
1923
1924
|
};
|
|
1924
1925
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1925
1926
|
CoroutineImpl.call(this, resultContinuation);
|
|
1926
|
-
this.
|
|
1927
|
-
this.
|
|
1928
|
-
this.
|
|
1929
|
-
this.
|
|
1930
|
-
this.
|
|
1931
|
-
}
|
|
1932
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1933
|
-
var suspendResult = this.
|
|
1927
|
+
this.y33_1 = _this__u8e3s4;
|
|
1928
|
+
this.z33_1 = out;
|
|
1929
|
+
this.a34_1 = limit;
|
|
1930
|
+
this.b34_1 = lenientLineEnding;
|
|
1931
|
+
this.c34_1 = throwOnIncompleteLine;
|
|
1932
|
+
}
|
|
1933
|
+
protoOf($internalReadLineToCOROUTINE$).u9 = function () {
|
|
1934
|
+
var suspendResult = this.o9_1;
|
|
1934
1935
|
$sm: do
|
|
1935
1936
|
try {
|
|
1936
|
-
var tmp = this.
|
|
1937
|
+
var tmp = this.m9_1;
|
|
1937
1938
|
switch (tmp) {
|
|
1938
1939
|
case 0:
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1941
|
-
if (this.
|
|
1942
|
-
this.
|
|
1943
|
-
suspendResult = this.
|
|
1940
|
+
this.n9_1 = 18;
|
|
1941
|
+
this.e34_1 = this.y33_1.v2w();
|
|
1942
|
+
if (this.e34_1.u2r()) {
|
|
1943
|
+
this.m9_1 = 1;
|
|
1944
|
+
suspendResult = this.y33_1.e2x(VOID, this);
|
|
1944
1945
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1945
1946
|
return suspendResult;
|
|
1946
1947
|
}
|
|
1947
1948
|
continue $sm;
|
|
1948
1949
|
} else {
|
|
1949
|
-
this.
|
|
1950
|
+
this.m9_1 = 2;
|
|
1950
1951
|
continue $sm;
|
|
1951
1952
|
}
|
|
1952
1953
|
|
|
1953
1954
|
case 1:
|
|
1954
|
-
this.
|
|
1955
|
+
this.m9_1 = 2;
|
|
1955
1956
|
continue $sm;
|
|
1956
1957
|
case 2:
|
|
1957
|
-
if (this.
|
|
1958
|
+
if (this.y33_1.c2x())
|
|
1958
1959
|
return -1n;
|
|
1959
|
-
this.
|
|
1960
|
-
this.
|
|
1960
|
+
this.d34_1 = {_v: 0n};
|
|
1961
|
+
this.m9_1 = 3;
|
|
1961
1962
|
continue $sm;
|
|
1962
1963
|
case 3:
|
|
1963
|
-
if (!(this.
|
|
1964
|
-
this.
|
|
1964
|
+
if (!(this.d34_1._v < this.a34_1 && !this.y33_1.c2x())) {
|
|
1965
|
+
this.m9_1 = 10;
|
|
1965
1966
|
continue $sm;
|
|
1966
1967
|
}
|
|
1967
1968
|
|
|
1968
|
-
var limitLeft = subtract(this.
|
|
1969
|
-
var lfIndex = indexOf(this.
|
|
1970
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1969
|
+
var limitLeft = subtract(this.a34_1, this.d34_1._v);
|
|
1970
|
+
var lfIndex = indexOf(this.e34_1, 10, VOID, limitLeft);
|
|
1971
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.e34_1, this.b34_1, lfIndex, limitLeft);
|
|
1971
1972
|
if (crIndex >= 0n) {
|
|
1972
|
-
internalReadLineTo$transferString(this.
|
|
1973
|
-
discard_0(this.
|
|
1974
|
-
return this.
|
|
1973
|
+
internalReadLineTo$transferString(this.e34_1, this.z33_1, this.d34_1, crIndex);
|
|
1974
|
+
discard_0(this.e34_1, 1n);
|
|
1975
|
+
return this.d34_1._v;
|
|
1975
1976
|
}
|
|
1976
1977
|
|
|
1977
1978
|
if (lfIndex === 0n) {
|
|
1978
|
-
discard_0(this.
|
|
1979
|
-
return this.
|
|
1979
|
+
discard_0(this.e34_1, 1n);
|
|
1980
|
+
return this.d34_1._v;
|
|
1980
1981
|
}
|
|
1981
1982
|
|
|
1982
1983
|
if (lfIndex > 0n) {
|
|
1983
1984
|
var tmp_0;
|
|
1984
|
-
var tmp_1 = this.
|
|
1985
|
-
if (tmp_1.
|
|
1985
|
+
var tmp_1 = this.e34_1.t2r();
|
|
1986
|
+
if (tmp_1.p2s(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1986
1987
|
tmp_0 = 1n;
|
|
1987
1988
|
} else {
|
|
1988
1989
|
tmp_0 = 0n;
|
|
1989
1990
|
}
|
|
1990
1991
|
var isCrlf = tmp_0;
|
|
1991
|
-
internalReadLineTo$transferString(this.
|
|
1992
|
-
discard_0(this.
|
|
1993
|
-
return this.
|
|
1992
|
+
internalReadLineTo$transferString(this.e34_1, this.z33_1, this.d34_1, subtract(lfIndex, isCrlf));
|
|
1993
|
+
discard_0(this.e34_1, add(numberToLong(1), isCrlf));
|
|
1994
|
+
return this.d34_1._v;
|
|
1994
1995
|
}
|
|
1995
1996
|
|
|
1996
|
-
var b = get_remaining(this.
|
|
1997
|
+
var b = get_remaining(this.e34_1);
|
|
1997
1998
|
var count = limitLeft <= b ? limitLeft : b;
|
|
1998
|
-
var tmp_2 = this.
|
|
1999
|
-
if (tmp_2.
|
|
2000
|
-
internalReadLineTo$transferString(this.
|
|
2001
|
-
this.
|
|
2002
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
1999
|
+
var tmp_2 = this.e34_1.t2r();
|
|
2000
|
+
if (tmp_2.p2s(subtract(count, fromInt(1))) === 13) {
|
|
2001
|
+
internalReadLineTo$transferString(this.e34_1, this.z33_1, this.d34_1, subtract(count, fromInt(1)));
|
|
2002
|
+
this.m9_1 = 4;
|
|
2003
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.e34_1, this.y33_1, this.b34_1, this);
|
|
2003
2004
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2004
2005
|
return suspendResult;
|
|
2005
2006
|
}
|
|
2006
2007
|
continue $sm;
|
|
2007
2008
|
} else {
|
|
2008
|
-
internalReadLineTo$transferString(this.
|
|
2009
|
-
this.
|
|
2009
|
+
internalReadLineTo$transferString(this.e34_1, this.z33_1, this.d34_1, count);
|
|
2010
|
+
this.m9_1 = 6;
|
|
2010
2011
|
continue $sm;
|
|
2011
2012
|
}
|
|
2012
2013
|
|
|
2013
2014
|
case 4:
|
|
2014
2015
|
if (suspendResult) {
|
|
2015
|
-
return this.
|
|
2016
|
+
return this.d34_1._v;
|
|
2016
2017
|
} else {
|
|
2017
|
-
this.
|
|
2018
|
+
this.m9_1 = 5;
|
|
2018
2019
|
continue $sm;
|
|
2019
2020
|
}
|
|
2020
2021
|
|
|
2021
2022
|
case 5:
|
|
2022
|
-
internalReadLineTo$transferString(this.
|
|
2023
|
-
this.
|
|
2023
|
+
internalReadLineTo$transferString(this.e34_1, this.z33_1, this.d34_1, 1n);
|
|
2024
|
+
this.m9_1 = 6;
|
|
2024
2025
|
continue $sm;
|
|
2025
2026
|
case 6:
|
|
2026
|
-
if (this.
|
|
2027
|
-
this.
|
|
2028
|
-
suspendResult = this.
|
|
2027
|
+
if (this.d34_1._v < this.a34_1 && get_remaining(this.e34_1) === 0n) {
|
|
2028
|
+
this.m9_1 = 7;
|
|
2029
|
+
suspendResult = this.y33_1.e2x(VOID, this);
|
|
2029
2030
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2030
2031
|
return suspendResult;
|
|
2031
2032
|
}
|
|
2032
2033
|
continue $sm;
|
|
2033
2034
|
} else {
|
|
2034
|
-
this.
|
|
2035
|
-
this.
|
|
2035
|
+
this.g34_1 = false;
|
|
2036
|
+
this.m9_1 = 8;
|
|
2036
2037
|
continue $sm;
|
|
2037
2038
|
}
|
|
2038
2039
|
|
|
2039
2040
|
case 7:
|
|
2040
|
-
this.
|
|
2041
|
-
this.
|
|
2041
|
+
this.g34_1 = !suspendResult;
|
|
2042
|
+
this.m9_1 = 8;
|
|
2042
2043
|
continue $sm;
|
|
2043
2044
|
case 8:
|
|
2044
|
-
if (this.
|
|
2045
|
-
this.
|
|
2045
|
+
if (this.g34_1) {
|
|
2046
|
+
this.m9_1 = 10;
|
|
2046
2047
|
continue $sm;
|
|
2047
2048
|
} else {
|
|
2048
|
-
this.
|
|
2049
|
+
this.m9_1 = 9;
|
|
2049
2050
|
continue $sm;
|
|
2050
2051
|
}
|
|
2051
2052
|
|
|
2052
2053
|
case 9:
|
|
2053
|
-
this.
|
|
2054
|
+
this.m9_1 = 3;
|
|
2054
2055
|
continue $sm;
|
|
2055
2056
|
case 10:
|
|
2056
|
-
if (this.
|
|
2057
|
+
if (this.d34_1._v === 0n && this.y33_1.c2x())
|
|
2057
2058
|
return -1n;
|
|
2058
|
-
if (!(this.
|
|
2059
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2059
|
+
if (!(this.d34_1._v <= this.a34_1)) {
|
|
2060
|
+
var message = 'Consumed bytes exceed the limit: ' + this.d34_1._v.toString() + ' > ' + this.a34_1.toString() + ". It's an implementation bug, please report it.";
|
|
2060
2061
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2061
2062
|
}
|
|
2062
2063
|
|
|
2063
|
-
if (this.
|
|
2064
|
-
if (this.
|
|
2064
|
+
if (this.d34_1._v === this.a34_1) {
|
|
2065
|
+
if (this.a34_1 === 9223372036854775807n)
|
|
2065
2066
|
throw new TooLongLineException('Max line length exceeded');
|
|
2066
|
-
if (get_remaining(this.
|
|
2067
|
-
this.
|
|
2068
|
-
suspendResult = this.
|
|
2067
|
+
if (get_remaining(this.e34_1) === 0n) {
|
|
2068
|
+
this.m9_1 = 12;
|
|
2069
|
+
suspendResult = this.y33_1.e2x(VOID, this);
|
|
2069
2070
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2070
2071
|
return suspendResult;
|
|
2071
2072
|
}
|
|
2072
2073
|
continue $sm;
|
|
2073
2074
|
} else {
|
|
2074
|
-
this.
|
|
2075
|
-
this.
|
|
2075
|
+
this.f34_1 = false;
|
|
2076
|
+
this.m9_1 = 13;
|
|
2076
2077
|
continue $sm;
|
|
2077
2078
|
}
|
|
2078
2079
|
} else {
|
|
2079
|
-
this.
|
|
2080
|
+
this.m9_1 = 11;
|
|
2080
2081
|
continue $sm;
|
|
2081
2082
|
}
|
|
2082
2083
|
|
|
2083
2084
|
case 11:
|
|
2084
|
-
if (this.
|
|
2085
|
-
throwEndOfStreamException(this.
|
|
2085
|
+
if (this.c34_1) {
|
|
2086
|
+
throwEndOfStreamException(this.d34_1._v);
|
|
2086
2087
|
}
|
|
2087
2088
|
|
|
2088
|
-
return this.
|
|
2089
|
+
return this.d34_1._v;
|
|
2089
2090
|
case 12:
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2091
|
+
this.f34_1 = !suspendResult;
|
|
2092
|
+
this.m9_1 = 13;
|
|
2092
2093
|
continue $sm;
|
|
2093
2094
|
case 13:
|
|
2094
|
-
if (this.
|
|
2095
|
-
throwEndOfStreamException(this.
|
|
2095
|
+
if (this.f34_1) {
|
|
2096
|
+
throwEndOfStreamException(this.d34_1._v);
|
|
2096
2097
|
} else {
|
|
2097
|
-
this.
|
|
2098
|
+
this.m9_1 = 14;
|
|
2098
2099
|
continue $sm;
|
|
2099
2100
|
}
|
|
2100
2101
|
|
|
2101
2102
|
break;
|
|
2102
2103
|
case 14:
|
|
2103
|
-
var tmp0_subject = this.
|
|
2104
|
+
var tmp0_subject = this.e34_1.t2r().p2s(0n);
|
|
2104
2105
|
if (tmp0_subject === 10) {
|
|
2105
|
-
discard_0(this.
|
|
2106
|
-
return this.
|
|
2106
|
+
discard_0(this.e34_1, 1n);
|
|
2107
|
+
return this.d34_1._v;
|
|
2107
2108
|
} else {
|
|
2108
2109
|
if (tmp0_subject === 13) {
|
|
2109
|
-
this.
|
|
2110
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2110
|
+
this.m9_1 = 15;
|
|
2111
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.e34_1, this.y33_1, this.b34_1, this);
|
|
2111
2112
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2112
2113
|
return suspendResult;
|
|
2113
2114
|
}
|
|
2114
2115
|
continue $sm;
|
|
2115
2116
|
} else {
|
|
2116
|
-
this.
|
|
2117
|
+
this.m9_1 = 17;
|
|
2117
2118
|
continue $sm;
|
|
2118
2119
|
}
|
|
2119
2120
|
}
|
|
2120
2121
|
|
|
2121
2122
|
case 15:
|
|
2122
2123
|
if (suspendResult) {
|
|
2123
|
-
return this.
|
|
2124
|
+
return this.d34_1._v;
|
|
2124
2125
|
} else {
|
|
2125
|
-
this.
|
|
2126
|
+
this.m9_1 = 16;
|
|
2126
2127
|
continue $sm;
|
|
2127
2128
|
}
|
|
2128
2129
|
|
|
2129
2130
|
case 16:
|
|
2130
|
-
this.
|
|
2131
|
+
this.m9_1 = 17;
|
|
2131
2132
|
continue $sm;
|
|
2132
2133
|
case 17:
|
|
2133
|
-
throwTooLongLineException(this.
|
|
2134
|
+
throwTooLongLineException(this.a34_1);
|
|
2134
2135
|
break;
|
|
2135
2136
|
case 18:
|
|
2136
|
-
throw this.
|
|
2137
|
+
throw this.p9_1;
|
|
2137
2138
|
}
|
|
2138
2139
|
} catch ($p) {
|
|
2139
2140
|
var e = $p;
|
|
2140
|
-
if (this.
|
|
2141
|
+
if (this.n9_1 === 18) {
|
|
2141
2142
|
throw e;
|
|
2142
2143
|
} else {
|
|
2143
|
-
this.
|
|
2144
|
-
this.
|
|
2144
|
+
this.m9_1 = this.n9_1;
|
|
2145
|
+
this.p9_1 = e;
|
|
2145
2146
|
}
|
|
2146
2147
|
}
|
|
2147
2148
|
while (true);
|
|
2148
2149
|
};
|
|
2149
2150
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2150
2151
|
CoroutineImpl.call(this, resultContinuation);
|
|
2151
|
-
this.
|
|
2152
|
-
this.
|
|
2153
|
-
this.
|
|
2152
|
+
this.p34_1 = _this__u8e3s4;
|
|
2153
|
+
this.q34_1 = $this_internalReadLineTo;
|
|
2154
|
+
this.r34_1 = $lenientLineEnding;
|
|
2154
2155
|
}
|
|
2155
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2156
|
-
var suspendResult = this.
|
|
2156
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).u9 = function () {
|
|
2157
|
+
var suspendResult = this.o9_1;
|
|
2157
2158
|
$sm: do
|
|
2158
2159
|
try {
|
|
2159
|
-
var tmp = this.
|
|
2160
|
+
var tmp = this.m9_1;
|
|
2160
2161
|
switch (tmp) {
|
|
2161
2162
|
case 0:
|
|
2162
|
-
this.
|
|
2163
|
-
if (get_remaining(this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2163
|
+
this.n9_1 = 5;
|
|
2164
|
+
if (get_remaining(this.p34_1) >= 2n) {
|
|
2165
|
+
this.t34_1 = true;
|
|
2166
|
+
this.m9_1 = 2;
|
|
2166
2167
|
continue $sm;
|
|
2167
2168
|
} else {
|
|
2168
|
-
this.
|
|
2169
|
-
suspendResult = this.
|
|
2169
|
+
this.m9_1 = 1;
|
|
2170
|
+
suspendResult = this.q34_1.d2x(2, this);
|
|
2170
2171
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2171
2172
|
return suspendResult;
|
|
2172
2173
|
}
|
|
@@ -2174,98 +2175,119 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).t9 = function () {
|
|
|
2174
2175
|
}
|
|
2175
2176
|
|
|
2176
2177
|
case 1:
|
|
2177
|
-
this.
|
|
2178
|
-
this.
|
|
2178
|
+
this.t34_1 = suspendResult;
|
|
2179
|
+
this.m9_1 = 2;
|
|
2179
2180
|
continue $sm;
|
|
2180
2181
|
case 2:
|
|
2181
|
-
if (this.
|
|
2182
|
-
this.
|
|
2183
|
-
this.
|
|
2182
|
+
if (this.t34_1) {
|
|
2183
|
+
this.s34_1 = this.p34_1.t2r().p2s(1n) === 10;
|
|
2184
|
+
this.m9_1 = 3;
|
|
2184
2185
|
continue $sm;
|
|
2185
2186
|
} else {
|
|
2186
|
-
this.
|
|
2187
|
-
this.
|
|
2187
|
+
this.s34_1 = false;
|
|
2188
|
+
this.m9_1 = 3;
|
|
2188
2189
|
continue $sm;
|
|
2189
2190
|
}
|
|
2190
2191
|
|
|
2191
2192
|
case 3:
|
|
2192
|
-
if (this.
|
|
2193
|
-
discard_0(this.
|
|
2193
|
+
if (this.s34_1) {
|
|
2194
|
+
discard_0(this.p34_1, 2n);
|
|
2194
2195
|
return true;
|
|
2195
2196
|
} else {
|
|
2196
|
-
this.
|
|
2197
|
+
this.m9_1 = 4;
|
|
2197
2198
|
continue $sm;
|
|
2198
2199
|
}
|
|
2199
2200
|
|
|
2200
2201
|
case 4:
|
|
2201
|
-
if (this.
|
|
2202
|
-
discard_0(this.
|
|
2202
|
+
if (this.r34_1) {
|
|
2203
|
+
discard_0(this.p34_1, 1n);
|
|
2203
2204
|
return true;
|
|
2204
2205
|
}
|
|
2205
2206
|
|
|
2206
2207
|
return false;
|
|
2207
2208
|
case 5:
|
|
2208
|
-
throw this.
|
|
2209
|
+
throw this.p9_1;
|
|
2209
2210
|
}
|
|
2210
2211
|
} catch ($p) {
|
|
2211
2212
|
var e = $p;
|
|
2212
|
-
if (this.
|
|
2213
|
+
if (this.n9_1 === 5) {
|
|
2213
2214
|
throw e;
|
|
2214
2215
|
} else {
|
|
2215
|
-
this.
|
|
2216
|
-
this.
|
|
2216
|
+
this.m9_1 = this.n9_1;
|
|
2217
|
+
this.p9_1 = e;
|
|
2217
2218
|
}
|
|
2218
2219
|
}
|
|
2219
2220
|
while (true);
|
|
2220
2221
|
};
|
|
2221
2222
|
function ByteWriteChannel() {
|
|
2222
2223
|
}
|
|
2224
|
+
function close_0(_this__u8e3s4) {
|
|
2225
|
+
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2226
|
+
}
|
|
2223
2227
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2224
2228
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2225
|
-
tmp.
|
|
2226
|
-
tmp.
|
|
2227
|
-
return tmp.
|
|
2229
|
+
tmp.o9_1 = Unit_instance;
|
|
2230
|
+
tmp.p9_1 = null;
|
|
2231
|
+
return tmp.u9();
|
|
2232
|
+
}
|
|
2233
|
+
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2234
|
+
this.d35_1 = p0;
|
|
2235
|
+
}
|
|
2236
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).e35 = function ($completion) {
|
|
2237
|
+
return this.d35_1.f2x($completion);
|
|
2238
|
+
};
|
|
2239
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).db = function ($completion) {
|
|
2240
|
+
return this.e35($completion);
|
|
2241
|
+
};
|
|
2242
|
+
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2243
|
+
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2244
|
+
var l = function ($completion) {
|
|
2245
|
+
return i.e35($completion);
|
|
2246
|
+
};
|
|
2247
|
+
l.callableName = 'flushAndClose';
|
|
2248
|
+
l.$arity = 0;
|
|
2249
|
+
return l;
|
|
2228
2250
|
}
|
|
2229
2251
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2230
2252
|
CoroutineImpl.call(this, resultContinuation);
|
|
2231
|
-
this.
|
|
2253
|
+
this.c35_1 = _this__u8e3s4;
|
|
2232
2254
|
}
|
|
2233
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2234
|
-
var suspendResult = this.
|
|
2255
|
+
protoOf($flushIfNeededCOROUTINE$).u9 = function () {
|
|
2256
|
+
var suspendResult = this.o9_1;
|
|
2235
2257
|
$sm: do
|
|
2236
2258
|
try {
|
|
2237
|
-
var tmp = this.
|
|
2259
|
+
var tmp = this.m9_1;
|
|
2238
2260
|
switch (tmp) {
|
|
2239
2261
|
case 0:
|
|
2240
|
-
this.
|
|
2241
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2242
|
-
if (this.
|
|
2243
|
-
this.
|
|
2244
|
-
suspendResult = this.
|
|
2262
|
+
this.n9_1 = 3;
|
|
2263
|
+
rethrowCloseCauseIfNeeded_1(this.c35_1);
|
|
2264
|
+
if (this.c35_1.u2w() || get_size(this.c35_1.y2w()) >= 1048576) {
|
|
2265
|
+
this.m9_1 = 1;
|
|
2266
|
+
suspendResult = this.c35_1.t2w(this);
|
|
2245
2267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2246
2268
|
return suspendResult;
|
|
2247
2269
|
}
|
|
2248
2270
|
continue $sm;
|
|
2249
2271
|
} else {
|
|
2250
|
-
this.
|
|
2272
|
+
this.m9_1 = 2;
|
|
2251
2273
|
continue $sm;
|
|
2252
2274
|
}
|
|
2253
2275
|
|
|
2254
2276
|
case 1:
|
|
2255
|
-
this.
|
|
2277
|
+
this.m9_1 = 2;
|
|
2256
2278
|
continue $sm;
|
|
2257
2279
|
case 2:
|
|
2258
2280
|
return Unit_instance;
|
|
2259
2281
|
case 3:
|
|
2260
|
-
throw this.
|
|
2282
|
+
throw this.p9_1;
|
|
2261
2283
|
}
|
|
2262
2284
|
} catch ($p) {
|
|
2263
2285
|
var e = $p;
|
|
2264
|
-
if (this.
|
|
2286
|
+
if (this.n9_1 === 3) {
|
|
2265
2287
|
throw e;
|
|
2266
2288
|
} else {
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2289
|
+
this.m9_1 = this.n9_1;
|
|
2290
|
+
this.p9_1 = e;
|
|
2269
2291
|
}
|
|
2270
2292
|
}
|
|
2271
2293
|
while (true);
|
|
@@ -2278,15 +2300,15 @@ var NO_CALLBACK;
|
|
|
2278
2300
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2279
2301
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2280
2302
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2281
|
-
_this__u8e3s4.
|
|
2303
|
+
_this__u8e3s4.y2w().d2t(value, startIndex, endIndex);
|
|
2282
2304
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2283
2305
|
}
|
|
2284
2306
|
function WriterJob(channel, job) {
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2307
|
+
this.f35_1 = channel;
|
|
2308
|
+
this.g35_1 = job;
|
|
2287
2309
|
}
|
|
2288
|
-
protoOf(WriterJob).
|
|
2289
|
-
return this.
|
|
2310
|
+
protoOf(WriterJob).h1z = function () {
|
|
2311
|
+
return this.g35_1;
|
|
2290
2312
|
};
|
|
2291
2313
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2292
2314
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2295,153 +2317,153 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2295
2317
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2296
2318
|
}
|
|
2297
2319
|
function WriterScope(channel, coroutineContext) {
|
|
2298
|
-
this.
|
|
2299
|
-
this.
|
|
2320
|
+
this.h35_1 = channel;
|
|
2321
|
+
this.i35_1 = coroutineContext;
|
|
2300
2322
|
}
|
|
2301
|
-
protoOf(WriterScope).
|
|
2302
|
-
return this.
|
|
2323
|
+
protoOf(WriterScope).w1v = function () {
|
|
2324
|
+
return this.i35_1;
|
|
2303
2325
|
};
|
|
2304
2326
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2305
2327
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2306
|
-
return _this__u8e3s4.
|
|
2328
|
+
return _this__u8e3s4.h1z().y1w(block);
|
|
2307
2329
|
}
|
|
2308
|
-
function
|
|
2330
|
+
function close_1(_this__u8e3s4, cause) {
|
|
2309
2331
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2310
2332
|
if (cause == null) {
|
|
2311
|
-
fireAndForget(ByteWriteChannel$flushAndClose$
|
|
2333
|
+
fireAndForget(ByteWriteChannel$flushAndClose$ref_2(_this__u8e3s4));
|
|
2312
2334
|
} else {
|
|
2313
|
-
_this__u8e3s4.
|
|
2335
|
+
_this__u8e3s4.g2x(cause);
|
|
2314
2336
|
}
|
|
2315
2337
|
}
|
|
2316
2338
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2317
2339
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2318
|
-
tmp.
|
|
2319
|
-
tmp.
|
|
2320
|
-
return tmp.
|
|
2340
|
+
tmp.o9_1 = Unit_instance;
|
|
2341
|
+
tmp.p9_1 = null;
|
|
2342
|
+
return tmp.u9();
|
|
2343
|
+
}
|
|
2344
|
+
function fireAndForget(_this__u8e3s4) {
|
|
2345
|
+
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2346
|
+
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2321
2347
|
}
|
|
2322
2348
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2323
2349
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
2324
2350
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2325
2351
|
// Inline function 'kotlin.apply' call
|
|
2326
2352
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2327
|
-
this_0.
|
|
2353
|
+
this_0.y1w(writer$lambda(channel));
|
|
2328
2354
|
var job = this_0;
|
|
2329
2355
|
return new WriterJob(channel, job);
|
|
2330
2356
|
}
|
|
2331
|
-
function fireAndForget(_this__u8e3s4) {
|
|
2332
|
-
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2333
|
-
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2334
|
-
}
|
|
2335
2357
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2336
|
-
_this__u8e3s4.
|
|
2358
|
+
_this__u8e3s4.y2w().n2t(value);
|
|
2337
2359
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2338
2360
|
}
|
|
2339
2361
|
function NO_CALLBACK$1() {
|
|
2340
|
-
this.
|
|
2362
|
+
this.t35_1 = EmptyCoroutineContext_instance;
|
|
2341
2363
|
}
|
|
2342
|
-
protoOf(NO_CALLBACK$1).
|
|
2343
|
-
return this.
|
|
2364
|
+
protoOf(NO_CALLBACK$1).s9 = function () {
|
|
2365
|
+
return this.t35_1;
|
|
2344
2366
|
};
|
|
2345
|
-
protoOf(NO_CALLBACK$1).
|
|
2367
|
+
protoOf(NO_CALLBACK$1).t9 = function (result) {
|
|
2346
2368
|
return Unit_instance;
|
|
2347
2369
|
};
|
|
2348
|
-
protoOf(NO_CALLBACK$1).
|
|
2349
|
-
return this.
|
|
2370
|
+
protoOf(NO_CALLBACK$1).x9 = function (result) {
|
|
2371
|
+
return this.t9(result);
|
|
2350
2372
|
};
|
|
2351
|
-
function ByteWriteChannel$flushAndClose$
|
|
2352
|
-
this.
|
|
2373
|
+
function ByteWriteChannel$flushAndClose$ref_1(p0) {
|
|
2374
|
+
this.u35_1 = p0;
|
|
2353
2375
|
}
|
|
2354
|
-
protoOf(ByteWriteChannel$flushAndClose$
|
|
2355
|
-
return this.
|
|
2376
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_1).e35 = function ($completion) {
|
|
2377
|
+
return this.u35_1.f2x($completion);
|
|
2356
2378
|
};
|
|
2357
|
-
protoOf(ByteWriteChannel$flushAndClose$
|
|
2358
|
-
return this.
|
|
2379
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_1).db = function ($completion) {
|
|
2380
|
+
return this.e35($completion);
|
|
2359
2381
|
};
|
|
2360
|
-
function ByteWriteChannel$flushAndClose$
|
|
2361
|
-
var i = new ByteWriteChannel$flushAndClose$
|
|
2382
|
+
function ByteWriteChannel$flushAndClose$ref_2(p0) {
|
|
2383
|
+
var i = new ByteWriteChannel$flushAndClose$ref_1(p0);
|
|
2362
2384
|
var l = function ($completion) {
|
|
2363
|
-
return i.
|
|
2385
|
+
return i.e35($completion);
|
|
2364
2386
|
};
|
|
2365
2387
|
l.callableName = 'flushAndClose';
|
|
2366
2388
|
l.$arity = 0;
|
|
2367
2389
|
return l;
|
|
2368
2390
|
}
|
|
2369
2391
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2392
|
+
this.d36_1 = $block;
|
|
2393
|
+
this.e36_1 = $channel;
|
|
2372
2394
|
CoroutineImpl.call(this, resultContinuation);
|
|
2373
2395
|
}
|
|
2374
|
-
protoOf(writer$slambda).
|
|
2375
|
-
var tmp = this.
|
|
2376
|
-
tmp.
|
|
2377
|
-
tmp.
|
|
2378
|
-
return tmp.
|
|
2396
|
+
protoOf(writer$slambda).g2j = function ($this$launch, $completion) {
|
|
2397
|
+
var tmp = this.h2j($this$launch, $completion);
|
|
2398
|
+
tmp.o9_1 = Unit_instance;
|
|
2399
|
+
tmp.p9_1 = null;
|
|
2400
|
+
return tmp.u9();
|
|
2379
2401
|
};
|
|
2380
|
-
protoOf(writer$slambda).
|
|
2381
|
-
return this.
|
|
2402
|
+
protoOf(writer$slambda).ga = function (p1, $completion) {
|
|
2403
|
+
return this.g2j((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2382
2404
|
};
|
|
2383
|
-
protoOf(writer$slambda).
|
|
2384
|
-
var suspendResult = this.
|
|
2405
|
+
protoOf(writer$slambda).u9 = function () {
|
|
2406
|
+
var suspendResult = this.o9_1;
|
|
2385
2407
|
$sm: do
|
|
2386
2408
|
try {
|
|
2387
|
-
var tmp = this.
|
|
2409
|
+
var tmp = this.m9_1;
|
|
2388
2410
|
switch (tmp) {
|
|
2389
2411
|
case 0:
|
|
2390
|
-
this.
|
|
2391
|
-
this.
|
|
2392
|
-
this.
|
|
2412
|
+
this.n9_1 = 14;
|
|
2413
|
+
this.i36_1 = Job(get_job(this.f36_1.w1v()));
|
|
2414
|
+
this.m9_1 = 1;
|
|
2393
2415
|
continue $sm;
|
|
2394
2416
|
case 1:
|
|
2395
|
-
this.
|
|
2396
|
-
this.
|
|
2397
|
-
this.
|
|
2398
|
-
suspendResult = this.
|
|
2417
|
+
this.n9_1 = 4;
|
|
2418
|
+
this.n9_1 = 3;
|
|
2419
|
+
this.m9_1 = 2;
|
|
2420
|
+
suspendResult = this.d36_1(new WriterScope(this.e36_1, this.f36_1.w1v().yj(this.i36_1)), this);
|
|
2399
2421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2400
2422
|
return suspendResult;
|
|
2401
2423
|
}
|
|
2402
2424
|
|
|
2403
2425
|
continue $sm;
|
|
2404
2426
|
case 2:
|
|
2405
|
-
this.
|
|
2427
|
+
this.i36_1.e24();
|
|
2406
2428
|
var tmp_0;
|
|
2407
|
-
if (get_job(this.
|
|
2408
|
-
this.
|
|
2429
|
+
if (get_job(this.f36_1.w1v()).s1w()) {
|
|
2430
|
+
this.e36_1.g2x(get_job(this.f36_1.w1v()).v1w());
|
|
2409
2431
|
tmp_0 = Unit_instance;
|
|
2410
2432
|
}
|
|
2411
2433
|
|
|
2412
|
-
this.
|
|
2413
|
-
this.
|
|
2434
|
+
this.n9_1 = 14;
|
|
2435
|
+
this.m9_1 = 9;
|
|
2414
2436
|
continue $sm;
|
|
2415
2437
|
case 3:
|
|
2416
|
-
this.
|
|
2417
|
-
var tmp_1 = this.
|
|
2438
|
+
this.n9_1 = 4;
|
|
2439
|
+
var tmp_1 = this.p9_1;
|
|
2418
2440
|
if (tmp_1 instanceof Error) {
|
|
2419
|
-
var cause = this.
|
|
2420
|
-
cancel(this.
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2441
|
+
var cause = this.p9_1;
|
|
2442
|
+
cancel(this.i36_1, 'Exception thrown while writing to channel', cause);
|
|
2443
|
+
this.e36_1.g2x(cause);
|
|
2444
|
+
this.n9_1 = 14;
|
|
2445
|
+
this.m9_1 = 9;
|
|
2424
2446
|
continue $sm;
|
|
2425
2447
|
} else {
|
|
2426
|
-
throw this.
|
|
2448
|
+
throw this.p9_1;
|
|
2427
2449
|
}
|
|
2428
2450
|
|
|
2429
2451
|
case 4:
|
|
2430
|
-
this.
|
|
2431
|
-
this.
|
|
2432
|
-
this.
|
|
2433
|
-
suspendResult = this.
|
|
2452
|
+
this.n9_1 = 14;
|
|
2453
|
+
this.j36_1 = this.p9_1;
|
|
2454
|
+
this.m9_1 = 5;
|
|
2455
|
+
suspendResult = this.i36_1.c1x(this);
|
|
2434
2456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2435
2457
|
return suspendResult;
|
|
2436
2458
|
}
|
|
2437
2459
|
|
|
2438
2460
|
continue $sm;
|
|
2439
2461
|
case 5:
|
|
2440
|
-
this.
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2443
|
-
this.
|
|
2444
|
-
suspendResult = this.
|
|
2462
|
+
this.f36_1;
|
|
2463
|
+
this.n9_1 = 7;
|
|
2464
|
+
this.l36_1 = Companion_instance;
|
|
2465
|
+
this.m9_1 = 6;
|
|
2466
|
+
suspendResult = this.e36_1.f2x(this);
|
|
2445
2467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2446
2468
|
return suspendResult;
|
|
2447
2469
|
}
|
|
@@ -2449,42 +2471,42 @@ protoOf(writer$slambda).t9 = function () {
|
|
|
2449
2471
|
continue $sm;
|
|
2450
2472
|
case 6:
|
|
2451
2473
|
var tmp_2 = this;
|
|
2452
|
-
this.
|
|
2453
|
-
tmp_2.
|
|
2454
|
-
this.
|
|
2455
|
-
this.
|
|
2474
|
+
this.l36_1;
|
|
2475
|
+
tmp_2.k36_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2476
|
+
this.n9_1 = 14;
|
|
2477
|
+
this.m9_1 = 8;
|
|
2456
2478
|
continue $sm;
|
|
2457
2479
|
case 7:
|
|
2458
|
-
this.
|
|
2459
|
-
var tmp_3 = this.
|
|
2480
|
+
this.n9_1 = 14;
|
|
2481
|
+
var tmp_3 = this.p9_1;
|
|
2460
2482
|
if (tmp_3 instanceof Error) {
|
|
2461
|
-
var e = this.
|
|
2483
|
+
var e = this.p9_1;
|
|
2462
2484
|
var tmp_4 = this;
|
|
2463
|
-
tmp_4.
|
|
2464
|
-
this.
|
|
2485
|
+
tmp_4.k36_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2486
|
+
this.m9_1 = 8;
|
|
2465
2487
|
continue $sm;
|
|
2466
2488
|
} else {
|
|
2467
|
-
throw this.
|
|
2489
|
+
throw this.p9_1;
|
|
2468
2490
|
}
|
|
2469
2491
|
|
|
2470
2492
|
case 8:
|
|
2471
|
-
this.
|
|
2472
|
-
throw this.
|
|
2493
|
+
this.n9_1 = 14;
|
|
2494
|
+
throw this.j36_1;
|
|
2473
2495
|
case 9:
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
suspendResult = this.
|
|
2496
|
+
this.n9_1 = 14;
|
|
2497
|
+
this.m9_1 = 10;
|
|
2498
|
+
suspendResult = this.i36_1.c1x(this);
|
|
2477
2499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2478
2500
|
return suspendResult;
|
|
2479
2501
|
}
|
|
2480
2502
|
|
|
2481
2503
|
continue $sm;
|
|
2482
2504
|
case 10:
|
|
2483
|
-
this.
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
suspendResult = this.
|
|
2505
|
+
this.f36_1;
|
|
2506
|
+
this.n9_1 = 12;
|
|
2507
|
+
this.h36_1 = Companion_instance;
|
|
2508
|
+
this.m9_1 = 11;
|
|
2509
|
+
suspendResult = this.e36_1.f2x(this);
|
|
2488
2510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2489
2511
|
return suspendResult;
|
|
2490
2512
|
}
|
|
@@ -2492,50 +2514,50 @@ protoOf(writer$slambda).t9 = function () {
|
|
|
2492
2514
|
continue $sm;
|
|
2493
2515
|
case 11:
|
|
2494
2516
|
var tmp_5 = this;
|
|
2495
|
-
this.
|
|
2496
|
-
tmp_5.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2517
|
+
this.h36_1;
|
|
2518
|
+
tmp_5.g36_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2519
|
+
this.n9_1 = 14;
|
|
2520
|
+
this.m9_1 = 13;
|
|
2499
2521
|
continue $sm;
|
|
2500
2522
|
case 12:
|
|
2501
|
-
this.
|
|
2502
|
-
var tmp_6 = this.
|
|
2523
|
+
this.n9_1 = 14;
|
|
2524
|
+
var tmp_6 = this.p9_1;
|
|
2503
2525
|
if (tmp_6 instanceof Error) {
|
|
2504
|
-
var e_0 = this.
|
|
2526
|
+
var e_0 = this.p9_1;
|
|
2505
2527
|
var tmp_7 = this;
|
|
2506
|
-
tmp_7.
|
|
2507
|
-
this.
|
|
2528
|
+
tmp_7.g36_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2529
|
+
this.m9_1 = 13;
|
|
2508
2530
|
continue $sm;
|
|
2509
2531
|
} else {
|
|
2510
|
-
throw this.
|
|
2532
|
+
throw this.p9_1;
|
|
2511
2533
|
}
|
|
2512
2534
|
|
|
2513
2535
|
case 13:
|
|
2514
|
-
this.
|
|
2536
|
+
this.n9_1 = 14;
|
|
2515
2537
|
return Unit_instance;
|
|
2516
2538
|
case 14:
|
|
2517
|
-
throw this.
|
|
2539
|
+
throw this.p9_1;
|
|
2518
2540
|
}
|
|
2519
2541
|
} catch ($p) {
|
|
2520
2542
|
var e_1 = $p;
|
|
2521
|
-
if (this.
|
|
2543
|
+
if (this.n9_1 === 14) {
|
|
2522
2544
|
throw e_1;
|
|
2523
2545
|
} else {
|
|
2524
|
-
this.
|
|
2525
|
-
this.
|
|
2546
|
+
this.m9_1 = this.n9_1;
|
|
2547
|
+
this.p9_1 = e_1;
|
|
2526
2548
|
}
|
|
2527
2549
|
}
|
|
2528
2550
|
while (true);
|
|
2529
2551
|
};
|
|
2530
|
-
protoOf(writer$slambda).
|
|
2531
|
-
var i = new writer$slambda(this.
|
|
2532
|
-
i.
|
|
2552
|
+
protoOf(writer$slambda).h2j = function ($this$launch, completion) {
|
|
2553
|
+
var i = new writer$slambda(this.d36_1, this.e36_1, completion);
|
|
2554
|
+
i.f36_1 = $this$launch;
|
|
2533
2555
|
return i;
|
|
2534
2556
|
};
|
|
2535
2557
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2536
2558
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2537
2559
|
var l = function ($this$launch, $completion) {
|
|
2538
|
-
return i.
|
|
2560
|
+
return i.g2j($this$launch, $completion);
|
|
2539
2561
|
};
|
|
2540
2562
|
l.$arity = 1;
|
|
2541
2563
|
return l;
|
|
@@ -2543,8 +2565,8 @@ function writer$slambda_0($block, $channel, resultContinuation) {
|
|
|
2543
2565
|
function writer$lambda($channel) {
|
|
2544
2566
|
return function (it) {
|
|
2545
2567
|
var tmp;
|
|
2546
|
-
if (!(it == null) && !$channel.
|
|
2547
|
-
$channel.
|
|
2568
|
+
if (!(it == null) && !$channel.z2w()) {
|
|
2569
|
+
$channel.g2x(it);
|
|
2548
2570
|
tmp = Unit_instance;
|
|
2549
2571
|
}
|
|
2550
2572
|
return Unit_instance;
|
|
@@ -2552,48 +2574,48 @@ function writer$lambda($channel) {
|
|
|
2552
2574
|
}
|
|
2553
2575
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2554
2576
|
CoroutineImpl.call(this, resultContinuation);
|
|
2555
|
-
this.
|
|
2556
|
-
this.
|
|
2577
|
+
this.r35_1 = _this__u8e3s4;
|
|
2578
|
+
this.s35_1 = source;
|
|
2557
2579
|
}
|
|
2558
|
-
protoOf($writePacketCOROUTINE$).
|
|
2559
|
-
var suspendResult = this.
|
|
2580
|
+
protoOf($writePacketCOROUTINE$).u9 = function () {
|
|
2581
|
+
var suspendResult = this.o9_1;
|
|
2560
2582
|
$sm: do
|
|
2561
2583
|
try {
|
|
2562
|
-
var tmp = this.
|
|
2584
|
+
var tmp = this.m9_1;
|
|
2563
2585
|
switch (tmp) {
|
|
2564
2586
|
case 0:
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2587
|
+
this.n9_1 = 4;
|
|
2588
|
+
this.m9_1 = 1;
|
|
2567
2589
|
continue $sm;
|
|
2568
2590
|
case 1:
|
|
2569
|
-
if (!!this.
|
|
2570
|
-
this.
|
|
2591
|
+
if (!!this.s35_1.u2r()) {
|
|
2592
|
+
this.m9_1 = 3;
|
|
2571
2593
|
continue $sm;
|
|
2572
2594
|
}
|
|
2573
2595
|
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2576
|
-
suspendResult = flushIfNeeded(this.
|
|
2596
|
+
this.r35_1.y2w().h2t(this.s35_1, get_remaining(this.s35_1));
|
|
2597
|
+
this.m9_1 = 2;
|
|
2598
|
+
suspendResult = flushIfNeeded(this.r35_1, this);
|
|
2577
2599
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2578
2600
|
return suspendResult;
|
|
2579
2601
|
}
|
|
2580
2602
|
|
|
2581
2603
|
continue $sm;
|
|
2582
2604
|
case 2:
|
|
2583
|
-
this.
|
|
2605
|
+
this.m9_1 = 1;
|
|
2584
2606
|
continue $sm;
|
|
2585
2607
|
case 3:
|
|
2586
2608
|
return Unit_instance;
|
|
2587
2609
|
case 4:
|
|
2588
|
-
throw this.
|
|
2610
|
+
throw this.p9_1;
|
|
2589
2611
|
}
|
|
2590
2612
|
} catch ($p) {
|
|
2591
2613
|
var e = $p;
|
|
2592
|
-
if (this.
|
|
2614
|
+
if (this.n9_1 === 4) {
|
|
2593
2615
|
throw e;
|
|
2594
2616
|
} else {
|
|
2595
|
-
this.
|
|
2596
|
-
this.
|
|
2617
|
+
this.m9_1 = this.n9_1;
|
|
2618
|
+
this.p9_1 = e;
|
|
2597
2619
|
}
|
|
2598
2620
|
}
|
|
2599
2621
|
while (true);
|
|
@@ -2618,27 +2640,27 @@ function ClosedByteChannelException$_init_$ref_yjp351() {
|
|
|
2618
2640
|
return l;
|
|
2619
2641
|
}
|
|
2620
2642
|
function CloseToken(origin) {
|
|
2621
|
-
this.
|
|
2643
|
+
this.w2w_1 = origin;
|
|
2622
2644
|
}
|
|
2623
|
-
protoOf(CloseToken).
|
|
2624
|
-
var tmp0_subject = this.
|
|
2645
|
+
protoOf(CloseToken).m36 = function (wrap) {
|
|
2646
|
+
var tmp0_subject = this.w2w_1;
|
|
2625
2647
|
var tmp;
|
|
2626
2648
|
if (tmp0_subject == null) {
|
|
2627
2649
|
tmp = null;
|
|
2628
2650
|
} else {
|
|
2629
2651
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2630
|
-
tmp = this.
|
|
2652
|
+
tmp = this.w2w_1.n24();
|
|
2631
2653
|
} else {
|
|
2632
2654
|
if (tmp0_subject instanceof CancellationException) {
|
|
2633
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2655
|
+
tmp = CancellationException_init_$Create$(this.w2w_1.message, this.w2w_1);
|
|
2634
2656
|
} else {
|
|
2635
|
-
tmp = wrap(this.
|
|
2657
|
+
tmp = wrap(this.w2w_1);
|
|
2636
2658
|
}
|
|
2637
2659
|
}
|
|
2638
2660
|
}
|
|
2639
2661
|
return tmp;
|
|
2640
2662
|
};
|
|
2641
|
-
protoOf(CloseToken).
|
|
2663
|
+
protoOf(CloseToken).b2x = function (wrap, $super) {
|
|
2642
2664
|
var tmp;
|
|
2643
2665
|
if (wrap === VOID) {
|
|
2644
2666
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2646,10 +2668,10 @@ protoOf(CloseToken).x2w = function (wrap, $super) {
|
|
|
2646
2668
|
tmp = wrap;
|
|
2647
2669
|
}
|
|
2648
2670
|
wrap = tmp;
|
|
2649
|
-
return $super === VOID ? this.
|
|
2671
|
+
return $super === VOID ? this.m36(wrap) : $super.m36.call(this, wrap);
|
|
2650
2672
|
};
|
|
2651
|
-
protoOf(CloseToken).
|
|
2652
|
-
var tmp0_safe_receiver = this.
|
|
2673
|
+
protoOf(CloseToken).x2w = function (wrap) {
|
|
2674
|
+
var tmp0_safe_receiver = this.m36(wrap);
|
|
2653
2675
|
var tmp;
|
|
2654
2676
|
if (tmp0_safe_receiver == null) {
|
|
2655
2677
|
tmp = null;
|
|
@@ -2668,32 +2690,32 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2668
2690
|
}
|
|
2669
2691
|
function transferFromDelegate($this) {
|
|
2670
2692
|
updateConsumed($this);
|
|
2671
|
-
var appended = $this.
|
|
2672
|
-
$this.
|
|
2693
|
+
var appended = $this.o36_1.m2t($this.n36_1.v2w());
|
|
2694
|
+
$this.p36_1 = add($this.p36_1, appended);
|
|
2673
2695
|
}
|
|
2674
2696
|
function updateConsumed($this) {
|
|
2675
|
-
$this.
|
|
2676
|
-
$this.
|
|
2697
|
+
$this.q36_1 = add($this.q36_1, subtract($this.p36_1, $this.o36_1.g1()));
|
|
2698
|
+
$this.p36_1 = $this.o36_1.g1();
|
|
2677
2699
|
}
|
|
2678
2700
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2679
2701
|
CoroutineImpl.call(this, resultContinuation);
|
|
2680
|
-
this.
|
|
2681
|
-
this.
|
|
2702
|
+
this.z36_1 = _this__u8e3s4;
|
|
2703
|
+
this.a37_1 = min;
|
|
2682
2704
|
}
|
|
2683
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2684
|
-
var suspendResult = this.
|
|
2705
|
+
protoOf($awaitContentCOROUTINE$_0).u9 = function () {
|
|
2706
|
+
var suspendResult = this.o9_1;
|
|
2685
2707
|
$sm: do
|
|
2686
2708
|
try {
|
|
2687
|
-
var tmp = this.
|
|
2709
|
+
var tmp = this.m9_1;
|
|
2688
2710
|
switch (tmp) {
|
|
2689
2711
|
case 0:
|
|
2690
|
-
this.
|
|
2691
|
-
if (this.
|
|
2712
|
+
this.n9_1 = 3;
|
|
2713
|
+
if (this.z36_1.v2w().g1() >= fromInt(this.a37_1)) {
|
|
2692
2714
|
return true;
|
|
2693
2715
|
}
|
|
2694
2716
|
|
|
2695
|
-
this.
|
|
2696
|
-
suspendResult = this.
|
|
2717
|
+
this.m9_1 = 1;
|
|
2718
|
+
suspendResult = this.z36_1.n36_1.d2x(this.a37_1, this);
|
|
2697
2719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2698
2720
|
return suspendResult;
|
|
2699
2721
|
}
|
|
@@ -2701,58 +2723,58 @@ protoOf($awaitContentCOROUTINE$_0).t9 = function () {
|
|
|
2701
2723
|
continue $sm;
|
|
2702
2724
|
case 1:
|
|
2703
2725
|
if (suspendResult) {
|
|
2704
|
-
transferFromDelegate(this.
|
|
2726
|
+
transferFromDelegate(this.z36_1);
|
|
2705
2727
|
return true;
|
|
2706
2728
|
} else {
|
|
2707
|
-
this.
|
|
2729
|
+
this.m9_1 = 2;
|
|
2708
2730
|
continue $sm;
|
|
2709
2731
|
}
|
|
2710
2732
|
|
|
2711
2733
|
case 2:
|
|
2712
2734
|
return false;
|
|
2713
2735
|
case 3:
|
|
2714
|
-
throw this.
|
|
2736
|
+
throw this.p9_1;
|
|
2715
2737
|
}
|
|
2716
2738
|
} catch ($p) {
|
|
2717
2739
|
var e = $p;
|
|
2718
|
-
if (this.
|
|
2740
|
+
if (this.n9_1 === 3) {
|
|
2719
2741
|
throw e;
|
|
2720
2742
|
} else {
|
|
2721
|
-
this.
|
|
2722
|
-
this.
|
|
2743
|
+
this.m9_1 = this.n9_1;
|
|
2744
|
+
this.p9_1 = e;
|
|
2723
2745
|
}
|
|
2724
2746
|
}
|
|
2725
2747
|
while (true);
|
|
2726
2748
|
};
|
|
2727
2749
|
function CountedByteReadChannel(delegate) {
|
|
2728
|
-
this.
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2750
|
+
this.n36_1 = delegate;
|
|
2751
|
+
this.o36_1 = new Buffer();
|
|
2752
|
+
this.p36_1 = 0n;
|
|
2753
|
+
this.q36_1 = 0n;
|
|
2732
2754
|
}
|
|
2733
|
-
protoOf(CountedByteReadChannel).
|
|
2755
|
+
protoOf(CountedByteReadChannel).b37 = function () {
|
|
2734
2756
|
updateConsumed(this);
|
|
2735
|
-
return this.
|
|
2757
|
+
return this.q36_1;
|
|
2736
2758
|
};
|
|
2737
|
-
protoOf(CountedByteReadChannel).
|
|
2738
|
-
return this.
|
|
2759
|
+
protoOf(CountedByteReadChannel).a2x = function () {
|
|
2760
|
+
return this.n36_1.a2x();
|
|
2739
2761
|
};
|
|
2740
|
-
protoOf(CountedByteReadChannel).
|
|
2741
|
-
return this.
|
|
2762
|
+
protoOf(CountedByteReadChannel).c2x = function () {
|
|
2763
|
+
return this.o36_1.u2r() && this.n36_1.c2x();
|
|
2742
2764
|
};
|
|
2743
|
-
protoOf(CountedByteReadChannel).
|
|
2765
|
+
protoOf(CountedByteReadChannel).v2w = function () {
|
|
2744
2766
|
transferFromDelegate(this);
|
|
2745
|
-
return this.
|
|
2767
|
+
return this.o36_1;
|
|
2746
2768
|
};
|
|
2747
|
-
protoOf(CountedByteReadChannel).
|
|
2769
|
+
protoOf(CountedByteReadChannel).d2x = function (min, $completion) {
|
|
2748
2770
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2749
|
-
tmp.
|
|
2750
|
-
tmp.
|
|
2751
|
-
return tmp.
|
|
2771
|
+
tmp.o9_1 = Unit_instance;
|
|
2772
|
+
tmp.p9_1 = null;
|
|
2773
|
+
return tmp.u9();
|
|
2752
2774
|
};
|
|
2753
|
-
protoOf(CountedByteReadChannel).
|
|
2754
|
-
this.
|
|
2755
|
-
this.
|
|
2775
|
+
protoOf(CountedByteReadChannel).g2x = function (cause) {
|
|
2776
|
+
this.n36_1.g2x(cause);
|
|
2777
|
+
this.o36_1.c5();
|
|
2756
2778
|
};
|
|
2757
2779
|
function counted(_this__u8e3s4) {
|
|
2758
2780
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2810,21 +2832,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2810
2832
|
}
|
|
2811
2833
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2812
2834
|
var tmp;
|
|
2813
|
-
if ($this === Companion_getInstance_1().
|
|
2835
|
+
if ($this === Companion_getInstance_1().c37_1) {
|
|
2814
2836
|
tmp = 'CR';
|
|
2815
|
-
} else if ($this === Companion_getInstance_1().
|
|
2837
|
+
} else if ($this === Companion_getInstance_1().d37_1) {
|
|
2816
2838
|
tmp = 'LF';
|
|
2817
|
-
} else if ($this === Companion_getInstance_1().
|
|
2839
|
+
} else if ($this === Companion_getInstance_1().e37_1) {
|
|
2818
2840
|
tmp = 'CRLF';
|
|
2819
2841
|
} else {
|
|
2820
2842
|
// Inline function 'kotlin.collections.filter' call
|
|
2821
|
-
var tmp0 = Companion_getInstance_1().
|
|
2843
|
+
var tmp0 = Companion_getInstance_1().g37_1;
|
|
2822
2844
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2823
2845
|
var destination = ArrayList_init_$Create$();
|
|
2824
2846
|
var _iterator__ex2g4s = tmp0.t();
|
|
2825
2847
|
while (_iterator__ex2g4s.u()) {
|
|
2826
2848
|
var element = _iterator__ex2g4s.v();
|
|
2827
|
-
var it = element.
|
|
2849
|
+
var it = element.h37_1;
|
|
2828
2850
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2829
2851
|
destination.e1(element);
|
|
2830
2852
|
}
|
|
@@ -2835,11 +2857,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2835
2857
|
}
|
|
2836
2858
|
function Companion_1() {
|
|
2837
2859
|
Companion_instance_2 = this;
|
|
2838
|
-
this.
|
|
2839
|
-
this.
|
|
2840
|
-
this.
|
|
2841
|
-
this.
|
|
2842
|
-
this.
|
|
2860
|
+
this.c37_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2861
|
+
this.d37_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2862
|
+
this.e37_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2863
|
+
this.f37_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2864
|
+
this.g37_1 = listOf([new LineEndingMode(this.c37_1), new LineEndingMode(this.d37_1), new LineEndingMode(this.e37_1)]);
|
|
2843
2865
|
}
|
|
2844
2866
|
var Companion_instance_2;
|
|
2845
2867
|
function Companion_getInstance_1() {
|
|
@@ -2853,67 +2875,67 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2853
2875
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2854
2876
|
if (!(other instanceof LineEndingMode))
|
|
2855
2877
|
return false;
|
|
2856
|
-
if (!($this === other.
|
|
2878
|
+
if (!($this === other.h37_1))
|
|
2857
2879
|
return false;
|
|
2858
2880
|
return true;
|
|
2859
2881
|
}
|
|
2860
2882
|
function LineEndingMode(mode) {
|
|
2861
2883
|
Companion_getInstance_1();
|
|
2862
|
-
this.
|
|
2884
|
+
this.h37_1 = mode;
|
|
2863
2885
|
}
|
|
2864
2886
|
protoOf(LineEndingMode).toString = function () {
|
|
2865
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2887
|
+
return LineEndingMode__toString_impl_j4h76r(this.h37_1);
|
|
2866
2888
|
};
|
|
2867
2889
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2868
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2890
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.h37_1);
|
|
2869
2891
|
};
|
|
2870
2892
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2871
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2893
|
+
return LineEndingMode__equals_impl_qyr4nk(this.h37_1, other);
|
|
2872
2894
|
};
|
|
2873
2895
|
function SourceByteReadChannel(source) {
|
|
2874
|
-
this.
|
|
2875
|
-
this.
|
|
2896
|
+
this.i37_1 = source;
|
|
2897
|
+
this.j37_1 = null;
|
|
2876
2898
|
}
|
|
2877
|
-
protoOf(SourceByteReadChannel).
|
|
2878
|
-
var tmp0_safe_receiver = this.
|
|
2879
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2899
|
+
protoOf(SourceByteReadChannel).a2x = function () {
|
|
2900
|
+
var tmp0_safe_receiver = this.j37_1;
|
|
2901
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2x();
|
|
2880
2902
|
};
|
|
2881
|
-
protoOf(SourceByteReadChannel).
|
|
2882
|
-
return this.
|
|
2903
|
+
protoOf(SourceByteReadChannel).c2x = function () {
|
|
2904
|
+
return this.i37_1.u2r();
|
|
2883
2905
|
};
|
|
2884
|
-
protoOf(SourceByteReadChannel).
|
|
2885
|
-
var tmp0_safe_receiver = this.
|
|
2906
|
+
protoOf(SourceByteReadChannel).v2w = function () {
|
|
2907
|
+
var tmp0_safe_receiver = this.a2x();
|
|
2886
2908
|
if (tmp0_safe_receiver == null)
|
|
2887
2909
|
null;
|
|
2888
2910
|
else {
|
|
2889
2911
|
// Inline function 'kotlin.let' call
|
|
2890
2912
|
throw tmp0_safe_receiver;
|
|
2891
2913
|
}
|
|
2892
|
-
return this.
|
|
2914
|
+
return this.i37_1.t2r();
|
|
2893
2915
|
};
|
|
2894
|
-
protoOf(SourceByteReadChannel).
|
|
2895
|
-
var tmp0_safe_receiver = this.
|
|
2916
|
+
protoOf(SourceByteReadChannel).d2x = function (min, $completion) {
|
|
2917
|
+
var tmp0_safe_receiver = this.a2x();
|
|
2896
2918
|
if (tmp0_safe_receiver == null)
|
|
2897
2919
|
null;
|
|
2898
2920
|
else {
|
|
2899
2921
|
// Inline function 'kotlin.let' call
|
|
2900
2922
|
throw tmp0_safe_receiver;
|
|
2901
2923
|
}
|
|
2902
|
-
return this.
|
|
2924
|
+
return this.i37_1.w2r(fromInt(min));
|
|
2903
2925
|
};
|
|
2904
|
-
protoOf(SourceByteReadChannel).
|
|
2905
|
-
if (!(this.
|
|
2926
|
+
protoOf(SourceByteReadChannel).g2x = function (cause) {
|
|
2927
|
+
if (!(this.j37_1 == null))
|
|
2906
2928
|
return Unit_instance;
|
|
2907
|
-
this.
|
|
2929
|
+
this.i37_1.c5();
|
|
2908
2930
|
var tmp = this;
|
|
2909
2931
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2910
|
-
tmp.
|
|
2932
|
+
tmp.j37_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2911
2933
|
};
|
|
2912
2934
|
function decode(_this__u8e3s4, input, max) {
|
|
2913
2935
|
max = max === VOID ? 2147483647 : max;
|
|
2914
2936
|
var tmp0 = fromInt(max);
|
|
2915
2937
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2916
|
-
var b = input.
|
|
2938
|
+
var b = input.t2r().g1();
|
|
2917
2939
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2918
2940
|
// Inline function 'kotlin.text.buildString' call
|
|
2919
2941
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2950,7 +2972,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2950
2972
|
}
|
|
2951
2973
|
}
|
|
2952
2974
|
function canRead(_this__u8e3s4) {
|
|
2953
|
-
return !_this__u8e3s4.
|
|
2975
|
+
return !_this__u8e3s4.u2r();
|
|
2954
2976
|
}
|
|
2955
2977
|
function readBytes(_this__u8e3s4, count) {
|
|
2956
2978
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2959,35 +2981,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2959
2981
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2960
2982
|
offset = offset === VOID ? 0 : offset;
|
|
2961
2983
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2962
|
-
_this__u8e3s4.
|
|
2984
|
+
_this__u8e3s4.d2t(buffer, offset, offset + length | 0);
|
|
2963
2985
|
}
|
|
2964
2986
|
function BytePacketBuilder() {
|
|
2965
2987
|
return new Buffer();
|
|
2966
2988
|
}
|
|
2967
2989
|
function build(_this__u8e3s4) {
|
|
2968
|
-
return _this__u8e3s4.
|
|
2990
|
+
return _this__u8e3s4.t2r();
|
|
2969
2991
|
}
|
|
2970
2992
|
function get_size(_this__u8e3s4) {
|
|
2971
|
-
return convertToInt(_this__u8e3s4.
|
|
2993
|
+
return convertToInt(_this__u8e3s4.t2r().g1());
|
|
2972
2994
|
}
|
|
2973
2995
|
var ByteReadPacketEmpty;
|
|
2974
2996
|
function get_remaining(_this__u8e3s4) {
|
|
2975
2997
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2976
|
-
return _this__u8e3s4.
|
|
2998
|
+
return _this__u8e3s4.t2r().g1();
|
|
2977
2999
|
}
|
|
2978
3000
|
function discard_0(_this__u8e3s4, count) {
|
|
2979
3001
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2980
3002
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2981
|
-
_this__u8e3s4.
|
|
3003
|
+
_this__u8e3s4.w2r(count);
|
|
2982
3004
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2983
3005
|
var b = get_remaining(_this__u8e3s4);
|
|
2984
3006
|
var countToDiscard = count <= b ? count : b;
|
|
2985
|
-
_this__u8e3s4.
|
|
3007
|
+
_this__u8e3s4.t2r().r2s(countToDiscard);
|
|
2986
3008
|
return countToDiscard;
|
|
2987
3009
|
}
|
|
2988
3010
|
function takeWhile(_this__u8e3s4, block) {
|
|
2989
3011
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2990
|
-
while (!_this__u8e3s4.
|
|
3012
|
+
while (!_this__u8e3s4.u2r() && block(_this__u8e3s4.t2r())) {
|
|
2991
3013
|
}
|
|
2992
3014
|
}
|
|
2993
3015
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -3000,37 +3022,37 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
3000
3022
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
3001
3023
|
offset = offset === VOID ? 0 : offset;
|
|
3002
3024
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3003
|
-
var result = _this__u8e3s4.
|
|
3025
|
+
var result = _this__u8e3s4.s2s(buffer, offset, offset + length | 0);
|
|
3004
3026
|
return result === -1 ? 0 : result;
|
|
3005
3027
|
}
|
|
3006
3028
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3007
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3029
|
+
charset = charset === VOID ? Charsets_getInstance().k37_1 : charset;
|
|
3008
3030
|
max = max === VOID ? 2147483647 : max;
|
|
3009
|
-
if (charset.equals(Charsets_getInstance().
|
|
3031
|
+
if (charset.equals(Charsets_getInstance().k37_1)) {
|
|
3010
3032
|
if (max === 2147483647)
|
|
3011
3033
|
return readString_0(_this__u8e3s4);
|
|
3012
|
-
var tmp0 = _this__u8e3s4.
|
|
3034
|
+
var tmp0 = _this__u8e3s4.t2r().g1();
|
|
3013
3035
|
// Inline function 'kotlin.math.min' call
|
|
3014
3036
|
var b = fromInt(max);
|
|
3015
3037
|
var count = tmp0 <= b ? tmp0 : b;
|
|
3016
3038
|
return readString(_this__u8e3s4, count);
|
|
3017
3039
|
}
|
|
3018
|
-
return decode(charset.
|
|
3040
|
+
return decode(charset.n37(), _this__u8e3s4, max);
|
|
3019
3041
|
}
|
|
3020
3042
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3021
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3022
|
-
if (charset.equals(Charsets_getInstance().
|
|
3043
|
+
charset = charset === VOID ? Charsets_getInstance().k37_1 : charset;
|
|
3044
|
+
if (charset.equals(Charsets_getInstance().k37_1))
|
|
3023
3045
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
3024
|
-
return encodeToByteArray_0(charset.
|
|
3046
|
+
return encodeToByteArray_0(charset.o37(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3025
3047
|
}
|
|
3026
3048
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3027
3049
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3028
3050
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3029
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3030
|
-
if (charset === Charsets_getInstance().
|
|
3051
|
+
charset = charset === VOID ? Charsets_getInstance().k37_1 : charset;
|
|
3052
|
+
if (charset === Charsets_getInstance().k37_1) {
|
|
3031
3053
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3032
3054
|
}
|
|
3033
|
-
encodeToImpl(charset.
|
|
3055
|
+
encodeToImpl(charset.o37(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3034
3056
|
}
|
|
3035
3057
|
function readBytes_0(_this__u8e3s4) {
|
|
3036
3058
|
return readByteArray_0(_this__u8e3s4);
|
|
@@ -3043,7 +3065,7 @@ var ByteArrayPool;
|
|
|
3043
3065
|
function ByteArrayPool$1() {
|
|
3044
3066
|
DefaultPool.call(this, 128);
|
|
3045
3067
|
}
|
|
3046
|
-
protoOf(ByteArrayPool$1).
|
|
3068
|
+
protoOf(ByteArrayPool$1).s37 = function () {
|
|
3047
3069
|
return new Int8Array(4096);
|
|
3048
3070
|
};
|
|
3049
3071
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3057,21 +3079,21 @@ function ObjectPool() {
|
|
|
3057
3079
|
}
|
|
3058
3080
|
function NoPoolImpl() {
|
|
3059
3081
|
}
|
|
3060
|
-
protoOf(NoPoolImpl).
|
|
3082
|
+
protoOf(NoPoolImpl).a38 = function (instance) {
|
|
3061
3083
|
return Unit_instance;
|
|
3062
3084
|
};
|
|
3063
|
-
protoOf(NoPoolImpl).
|
|
3085
|
+
protoOf(NoPoolImpl).t1y = function () {
|
|
3064
3086
|
return Unit_instance;
|
|
3065
3087
|
};
|
|
3066
3088
|
function Companion_2() {
|
|
3067
3089
|
}
|
|
3068
|
-
protoOf(Companion_2).
|
|
3090
|
+
protoOf(Companion_2).b38 = function (name) {
|
|
3069
3091
|
switch (name) {
|
|
3070
3092
|
case 'UTF-8':
|
|
3071
3093
|
case 'utf-8':
|
|
3072
3094
|
case 'UTF8':
|
|
3073
3095
|
case 'utf8':
|
|
3074
|
-
return Charsets_getInstance().
|
|
3096
|
+
return Charsets_getInstance().k37_1;
|
|
3075
3097
|
}
|
|
3076
3098
|
var tmp;
|
|
3077
3099
|
var tmp_0;
|
|
@@ -3102,11 +3124,11 @@ protoOf(Companion_2).w37 = function (name) {
|
|
|
3102
3124
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3103
3125
|
}
|
|
3104
3126
|
if (tmp) {
|
|
3105
|
-
return Charsets_getInstance().
|
|
3127
|
+
return Charsets_getInstance().l37_1;
|
|
3106
3128
|
}
|
|
3107
3129
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3108
3130
|
};
|
|
3109
|
-
protoOf(Companion_2).
|
|
3131
|
+
protoOf(Companion_2).c38 = function (charset) {
|
|
3110
3132
|
var tmp;
|
|
3111
3133
|
switch (charset) {
|
|
3112
3134
|
case 'UTF-8':
|
|
@@ -3161,7 +3183,7 @@ function Companion_getInstance_2() {
|
|
|
3161
3183
|
return Companion_instance_3;
|
|
3162
3184
|
}
|
|
3163
3185
|
function Charset(_name) {
|
|
3164
|
-
this.
|
|
3186
|
+
this.m37_1 = _name;
|
|
3165
3187
|
}
|
|
3166
3188
|
protoOf(Charset).equals = function (other) {
|
|
3167
3189
|
if (this === other)
|
|
@@ -3170,18 +3192,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3170
3192
|
return false;
|
|
3171
3193
|
if (!(other instanceof Charset))
|
|
3172
3194
|
THROW_CCE();
|
|
3173
|
-
return this.
|
|
3195
|
+
return this.m37_1 === other.m37_1;
|
|
3174
3196
|
};
|
|
3175
3197
|
protoOf(Charset).hashCode = function () {
|
|
3176
|
-
return getStringHashCode(this.
|
|
3198
|
+
return getStringHashCode(this.m37_1);
|
|
3177
3199
|
};
|
|
3178
3200
|
protoOf(Charset).toString = function () {
|
|
3179
|
-
return this.
|
|
3201
|
+
return this.m37_1;
|
|
3180
3202
|
};
|
|
3181
3203
|
function Charsets() {
|
|
3182
3204
|
Charsets_instance = this;
|
|
3183
|
-
this.
|
|
3184
|
-
this.
|
|
3205
|
+
this.k37_1 = new CharsetImpl('UTF-8');
|
|
3206
|
+
this.l37_1 = new CharsetImpl('ISO-8859-1');
|
|
3185
3207
|
}
|
|
3186
3208
|
var Charsets_instance;
|
|
3187
3209
|
function Charsets_getInstance() {
|
|
@@ -3190,27 +3212,27 @@ function Charsets_getInstance() {
|
|
|
3190
3212
|
return Charsets_instance;
|
|
3191
3213
|
}
|
|
3192
3214
|
function CharsetDecoder(_charset) {
|
|
3193
|
-
this.
|
|
3215
|
+
this.d38_1 = _charset;
|
|
3194
3216
|
}
|
|
3195
3217
|
function MalformedInputException(message) {
|
|
3196
3218
|
IOException_init_$Init$_0(message, this);
|
|
3197
3219
|
captureStack(this, MalformedInputException);
|
|
3198
3220
|
}
|
|
3199
3221
|
function get_name(_this__u8e3s4) {
|
|
3200
|
-
return _this__u8e3s4.
|
|
3222
|
+
return _this__u8e3s4.m37_1;
|
|
3201
3223
|
}
|
|
3202
3224
|
function isSupported(_this__u8e3s4, name) {
|
|
3203
|
-
return Companion_instance_3.
|
|
3225
|
+
return Companion_instance_3.c38(name);
|
|
3204
3226
|
}
|
|
3205
3227
|
function forName(_this__u8e3s4, name) {
|
|
3206
|
-
return Companion_instance_3.
|
|
3228
|
+
return Companion_instance_3.b38(name);
|
|
3207
3229
|
}
|
|
3208
3230
|
function CharsetEncoder(_charset) {
|
|
3209
|
-
this.
|
|
3231
|
+
this.e38_1 = _charset;
|
|
3210
3232
|
}
|
|
3211
3233
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3212
3234
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3213
|
-
var tmp0 = input.
|
|
3235
|
+
var tmp0 = input.t2r().g1();
|
|
3214
3236
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3215
3237
|
var b = fromInt(max);
|
|
3216
3238
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3220,7 +3242,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3220
3242
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3221
3243
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3222
3244
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3223
|
-
tmp = decoder.
|
|
3245
|
+
tmp = decoder.f38(array);
|
|
3224
3246
|
} catch ($p) {
|
|
3225
3247
|
var tmp_0;
|
|
3226
3248
|
if ($p instanceof Error) {
|
|
@@ -3242,11 +3264,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3242
3264
|
var message = 'Failed requirement.';
|
|
3243
3265
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3244
3266
|
}
|
|
3245
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3267
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().l37_1)) {
|
|
3246
3268
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3247
3269
|
}
|
|
3248
3270
|
// Inline function 'kotlin.require' call
|
|
3249
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3271
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().k37_1)) {
|
|
3250
3272
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3251
3273
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3252
3274
|
}
|
|
@@ -3256,7 +3278,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3256
3278
|
var result = encoder.encode(tmp$ret$5);
|
|
3257
3279
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3258
3280
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3259
|
-
dst.
|
|
3281
|
+
dst.g2t(result);
|
|
3260
3282
|
return result.length;
|
|
3261
3283
|
}
|
|
3262
3284
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3267,17 +3289,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3267
3289
|
function CharsetImpl(name) {
|
|
3268
3290
|
Charset.call(this, name);
|
|
3269
3291
|
}
|
|
3270
|
-
protoOf(CharsetImpl).
|
|
3292
|
+
protoOf(CharsetImpl).o37 = function () {
|
|
3271
3293
|
return new CharsetEncoderImpl(this);
|
|
3272
3294
|
};
|
|
3273
|
-
protoOf(CharsetImpl).
|
|
3295
|
+
protoOf(CharsetImpl).n37 = function () {
|
|
3274
3296
|
return new CharsetDecoderImpl(this);
|
|
3275
3297
|
};
|
|
3276
3298
|
function get_charset(_this__u8e3s4) {
|
|
3277
|
-
return _this__u8e3s4.
|
|
3299
|
+
return _this__u8e3s4.d38_1;
|
|
3278
3300
|
}
|
|
3279
3301
|
function get_charset_0(_this__u8e3s4) {
|
|
3280
|
-
return _this__u8e3s4.
|
|
3302
|
+
return _this__u8e3s4.e38_1;
|
|
3281
3303
|
}
|
|
3282
3304
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3283
3305
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3296,39 +3318,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3296
3318
|
}
|
|
3297
3319
|
function CharsetEncoderImpl(charset) {
|
|
3298
3320
|
CharsetEncoder.call(this, charset);
|
|
3299
|
-
this.
|
|
3321
|
+
this.i38_1 = charset;
|
|
3300
3322
|
}
|
|
3301
3323
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3302
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3324
|
+
return 'CharsetEncoderImpl(charset=' + this.i38_1.toString() + ')';
|
|
3303
3325
|
};
|
|
3304
3326
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3305
|
-
return this.
|
|
3327
|
+
return this.i38_1.hashCode();
|
|
3306
3328
|
};
|
|
3307
3329
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3308
3330
|
if (this === other)
|
|
3309
3331
|
return true;
|
|
3310
3332
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3311
3333
|
return false;
|
|
3312
|
-
if (!this.
|
|
3334
|
+
if (!this.i38_1.equals(other.i38_1))
|
|
3313
3335
|
return false;
|
|
3314
3336
|
return true;
|
|
3315
3337
|
};
|
|
3316
3338
|
function CharsetDecoderImpl(charset) {
|
|
3317
3339
|
CharsetDecoder.call(this, charset);
|
|
3318
|
-
this.
|
|
3340
|
+
this.k38_1 = charset;
|
|
3319
3341
|
}
|
|
3320
3342
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3321
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3343
|
+
return 'CharsetDecoderImpl(charset=' + this.k38_1.toString() + ')';
|
|
3322
3344
|
};
|
|
3323
3345
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3324
|
-
return this.
|
|
3346
|
+
return this.k38_1.hashCode();
|
|
3325
3347
|
};
|
|
3326
3348
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3327
3349
|
if (this === other)
|
|
3328
3350
|
return true;
|
|
3329
3351
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3330
3352
|
return false;
|
|
3331
|
-
if (!this.
|
|
3353
|
+
if (!this.k38_1.equals(other.k38_1))
|
|
3332
3354
|
return false;
|
|
3333
3355
|
return true;
|
|
3334
3356
|
};
|
|
@@ -3362,10 +3384,10 @@ function textDecoderOptions(fatal) {
|
|
|
3362
3384
|
return this_0;
|
|
3363
3385
|
}
|
|
3364
3386
|
function toKtor$1($this_toKtor) {
|
|
3365
|
-
this.
|
|
3387
|
+
this.l38_1 = $this_toKtor;
|
|
3366
3388
|
}
|
|
3367
|
-
protoOf(toKtor$1).
|
|
3368
|
-
return this.
|
|
3389
|
+
protoOf(toKtor$1).f38 = function (buffer) {
|
|
3390
|
+
return this.l38_1.decode(buffer);
|
|
3369
3391
|
};
|
|
3370
3392
|
function get_ENCODING_ALIASES() {
|
|
3371
3393
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3378,7 +3400,7 @@ function get_REPLACEMENT() {
|
|
|
3378
3400
|
}
|
|
3379
3401
|
var REPLACEMENT;
|
|
3380
3402
|
function TextDecoderFallback(encoding, fatal) {
|
|
3381
|
-
this.
|
|
3403
|
+
this.m38_1 = fatal;
|
|
3382
3404
|
// Inline function 'kotlin.text.trim' call
|
|
3383
3405
|
// Inline function 'kotlin.text.lowercase' call
|
|
3384
3406
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3389,7 +3411,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3389
3411
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3390
3412
|
}
|
|
3391
3413
|
}
|
|
3392
|
-
protoOf(TextDecoderFallback).
|
|
3414
|
+
protoOf(TextDecoderFallback).f38 = function (buffer) {
|
|
3393
3415
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3394
3416
|
var builder = new Buffer();
|
|
3395
3417
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3405,7 +3427,7 @@ protoOf(TextDecoderFallback).a38 = function (buffer) {
|
|
|
3405
3427
|
var point = toCodePoint(byte);
|
|
3406
3428
|
if (point < 0) {
|
|
3407
3429
|
// Inline function 'kotlin.check' call
|
|
3408
|
-
if (!!this.
|
|
3430
|
+
if (!!this.m38_1) {
|
|
3409
3431
|
var message = 'Invalid character: ' + point;
|
|
3410
3432
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3411
3433
|
}
|
|
@@ -3413,9 +3435,9 @@ protoOf(TextDecoderFallback).a38 = function (buffer) {
|
|
|
3413
3435
|
continue $l$loop;
|
|
3414
3436
|
}
|
|
3415
3437
|
if (point > 255) {
|
|
3416
|
-
builder.
|
|
3438
|
+
builder.n2t(toByte(point >> 8));
|
|
3417
3439
|
}
|
|
3418
|
-
builder.
|
|
3440
|
+
builder.n2t(toByte(point & 255));
|
|
3419
3441
|
}
|
|
3420
3442
|
while (inductionVariable < last);
|
|
3421
3443
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3445,7 +3467,7 @@ function get_DEVELOPMENT_MODE() {
|
|
|
3445
3467
|
return false;
|
|
3446
3468
|
}
|
|
3447
3469
|
function ioDispatcher() {
|
|
3448
|
-
return Dispatchers_getInstance().
|
|
3470
|
+
return Dispatchers_getInstance().k28_1;
|
|
3449
3471
|
}
|
|
3450
3472
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3451
3473
|
if (fromIndex >= toIndex)
|
|
@@ -3461,7 +3483,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3461
3483
|
if (character > 255) {
|
|
3462
3484
|
failedToMapError(character);
|
|
3463
3485
|
}
|
|
3464
|
-
dst.
|
|
3486
|
+
dst.n2t(toByte(character));
|
|
3465
3487
|
}
|
|
3466
3488
|
while (inductionVariable < toIndex);
|
|
3467
3489
|
return toIndex - fromIndex | 0;
|
|
@@ -3483,64 +3505,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3483
3505
|
}
|
|
3484
3506
|
}
|
|
3485
3507
|
function DefaultPool(capacity) {
|
|
3486
|
-
this.
|
|
3508
|
+
this.t37_1 = capacity;
|
|
3487
3509
|
var tmp = this;
|
|
3488
3510
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3489
|
-
var size = this.
|
|
3490
|
-
tmp.
|
|
3491
|
-
this.
|
|
3511
|
+
var size = this.t37_1;
|
|
3512
|
+
tmp.u37_1 = Array(size);
|
|
3513
|
+
this.v37_1 = 0;
|
|
3492
3514
|
}
|
|
3493
|
-
protoOf(DefaultPool).
|
|
3515
|
+
protoOf(DefaultPool).w37 = function (instance) {
|
|
3494
3516
|
};
|
|
3495
|
-
protoOf(DefaultPool).
|
|
3517
|
+
protoOf(DefaultPool).x37 = function (instance) {
|
|
3496
3518
|
return instance;
|
|
3497
3519
|
};
|
|
3498
|
-
protoOf(DefaultPool).
|
|
3520
|
+
protoOf(DefaultPool).y37 = function (instance) {
|
|
3499
3521
|
};
|
|
3500
|
-
protoOf(DefaultPool).
|
|
3501
|
-
if (this.
|
|
3502
|
-
return this.
|
|
3503
|
-
this.
|
|
3504
|
-
var idx = this.
|
|
3505
|
-
var tmp = this.
|
|
3522
|
+
protoOf(DefaultPool).z37 = function () {
|
|
3523
|
+
if (this.v37_1 === 0)
|
|
3524
|
+
return this.s37();
|
|
3525
|
+
this.v37_1 = this.v37_1 - 1 | 0;
|
|
3526
|
+
var idx = this.v37_1;
|
|
3527
|
+
var tmp = this.u37_1[idx];
|
|
3506
3528
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3507
|
-
this.
|
|
3508
|
-
return this.
|
|
3529
|
+
this.u37_1[idx] = null;
|
|
3530
|
+
return this.x37(instance);
|
|
3509
3531
|
};
|
|
3510
|
-
protoOf(DefaultPool).
|
|
3511
|
-
this.
|
|
3512
|
-
if (this.
|
|
3513
|
-
this.
|
|
3532
|
+
protoOf(DefaultPool).a38 = function (instance) {
|
|
3533
|
+
this.y37(instance);
|
|
3534
|
+
if (this.v37_1 === this.t37_1) {
|
|
3535
|
+
this.w37(instance);
|
|
3514
3536
|
} else {
|
|
3515
|
-
var _unary__edvuaz = this.
|
|
3516
|
-
this.
|
|
3517
|
-
this.
|
|
3537
|
+
var _unary__edvuaz = this.v37_1;
|
|
3538
|
+
this.v37_1 = _unary__edvuaz + 1 | 0;
|
|
3539
|
+
this.u37_1[_unary__edvuaz] = instance;
|
|
3518
3540
|
}
|
|
3519
3541
|
};
|
|
3520
|
-
protoOf(DefaultPool).
|
|
3542
|
+
protoOf(DefaultPool).t1y = function () {
|
|
3521
3543
|
var inductionVariable = 0;
|
|
3522
|
-
var last = this.
|
|
3544
|
+
var last = this.v37_1;
|
|
3523
3545
|
if (inductionVariable < last)
|
|
3524
3546
|
do {
|
|
3525
3547
|
var i = inductionVariable;
|
|
3526
3548
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3527
|
-
var tmp = this.
|
|
3549
|
+
var tmp = this.u37_1[i];
|
|
3528
3550
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3529
|
-
this.
|
|
3530
|
-
this.
|
|
3551
|
+
this.u37_1[i] = null;
|
|
3552
|
+
this.w37(instance);
|
|
3531
3553
|
}
|
|
3532
3554
|
while (inductionVariable < last);
|
|
3533
|
-
this.
|
|
3555
|
+
this.v37_1 = 0;
|
|
3534
3556
|
};
|
|
3535
3557
|
//region block: post-declaration
|
|
3536
|
-
protoOf(Read).
|
|
3537
|
-
protoOf(Read).
|
|
3538
|
-
protoOf(Write).
|
|
3539
|
-
protoOf(Write).
|
|
3540
|
-
protoOf(ByteChannel).
|
|
3541
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3542
|
-
protoOf(CountedByteReadChannel).
|
|
3543
|
-
protoOf(SourceByteReadChannel).
|
|
3558
|
+
protoOf(Read).y2u = resume;
|
|
3559
|
+
protoOf(Read).z2u = resume_0;
|
|
3560
|
+
protoOf(Write).y2u = resume;
|
|
3561
|
+
protoOf(Write).z2u = resume_0;
|
|
3562
|
+
protoOf(ByteChannel).e2x = awaitContent$default;
|
|
3563
|
+
protoOf(ByteReadChannel$Companion$Empty$1).e2x = awaitContent$default;
|
|
3564
|
+
protoOf(CountedByteReadChannel).e2x = awaitContent$default;
|
|
3565
|
+
protoOf(SourceByteReadChannel).e2x = awaitContent$default;
|
|
3544
3566
|
protoOf(DefaultPool).c5 = close;
|
|
3545
3567
|
protoOf(NoPoolImpl).c5 = close;
|
|
3546
3568
|
//endregion
|
|
@@ -3595,7 +3617,8 @@ export {
|
|
|
3595
3617
|
ClosedByteChannelException as ClosedByteChannelException3il8gfpye60w,
|
|
3596
3618
|
WriterScope as WriterScope3b0bo1enaee6b,
|
|
3597
3619
|
cancel_0 as canceldn4b3cdqcfny,
|
|
3598
|
-
close_0 as
|
|
3620
|
+
close_0 as closeqm43o3junf8o,
|
|
3621
|
+
close_1 as close3semq7pafb42g,
|
|
3599
3622
|
counted as counted3iniv3aql3f9n,
|
|
3600
3623
|
invokeOnCompletion as invokeOnCompletion1ziuxzoag0iwj,
|
|
3601
3624
|
ioDispatcher as ioDispatcher3b9pa3x0duop,
|