@solibo/solibo-sdk 1.0.34 → 1.0.35-SNAPSHOT
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.js +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1426 -1426
- package/KotlinBigInteger-bignum.js +1115 -1115
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +1826 -1826
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +451 -451
- package/kotlinx-serialization-kotlinx-serialization-json.js +1095 -1111
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +258 -258
- package/ktor-ktor-client-content-negotiation.js +45 -45
- package/ktor-ktor-client-core.js +2687 -2687
- package/ktor-ktor-client-logging.js +621 -621
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +320 -320
- package/ktor-ktor-http.js +901 -901
- package/ktor-ktor-io.js +632 -632
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +36 -36
- package/ktor-ktor-serialization.js +57 -57
- package/ktor-ktor-utils.js +671 -671
- package/ktor-ktor-websockets.js +385 -385
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +11791 -11474
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +18 -0
- package/solibo-sdk-sdk.js +1471 -1471
package/ktor-ktor-io.js
CHANGED
|
@@ -117,10 +117,10 @@
|
|
|
117
117
|
initMetadataForObject(Empty, 'Empty');
|
|
118
118
|
initMetadataForClass(Closed, 'Closed');
|
|
119
119
|
function resume() {
|
|
120
|
-
return this.
|
|
120
|
+
return this.o2o().t9(Companion_getInstance().l2o_1);
|
|
121
121
|
}
|
|
122
122
|
function resume_0(throwable) {
|
|
123
|
-
var tmp = this.
|
|
123
|
+
var tmp = this.o2o();
|
|
124
124
|
var tmp_0;
|
|
125
125
|
if (throwable == null) {
|
|
126
126
|
tmp_0 = null;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
tmp_0 = new Result(tmp$ret$2);
|
|
132
132
|
}
|
|
133
133
|
var tmp1_elvis_lhs = tmp_0;
|
|
134
|
-
return tmp.t9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
134
|
+
return tmp.t9(tmp1_elvis_lhs == null ? Companion_getInstance().l2o_1 : tmp1_elvis_lhs.eq_1);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(Task, 'Task');
|
|
137
137
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
142
142
|
function awaitContent$default(min, $completion, $super) {
|
|
143
143
|
min = min === VOID ? 1 : min;
|
|
144
|
-
return $super === VOID ? this.
|
|
144
|
+
return $super === VOID ? this.v2q(min, $completion) : $super.v2q.call(this, min, $completion);
|
|
145
145
|
}
|
|
146
146
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
147
147
|
function get_autoFlush() {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
190
190
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
191
191
|
function close() {
|
|
192
|
-
this.
|
|
192
|
+
this.g1y();
|
|
193
193
|
}
|
|
194
194
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
195
195
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -208,10 +208,10 @@
|
|
|
208
208
|
//endregion
|
|
209
209
|
function Companion() {
|
|
210
210
|
Companion_instance_0 = this;
|
|
211
|
-
this.
|
|
211
|
+
this.k2o_1 = new Closed(null);
|
|
212
212
|
var tmp = this;
|
|
213
213
|
// Inline function 'kotlin.Companion.success' call
|
|
214
|
-
tmp.
|
|
214
|
+
tmp.l2o_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
215
215
|
}
|
|
216
216
|
var Companion_instance_0;
|
|
217
217
|
function Companion_getInstance() {
|
|
@@ -239,87 +239,87 @@
|
|
|
239
239
|
return Empty_instance;
|
|
240
240
|
}
|
|
241
241
|
function Closed(cause) {
|
|
242
|
-
this.
|
|
242
|
+
this.m2o_1 = cause;
|
|
243
243
|
}
|
|
244
244
|
protoOf(Closed).toString = function () {
|
|
245
|
-
return 'Closed(cause=' + toString(this.
|
|
245
|
+
return 'Closed(cause=' + toString(this.m2o_1) + ')';
|
|
246
246
|
};
|
|
247
247
|
protoOf(Closed).hashCode = function () {
|
|
248
|
-
return this.
|
|
248
|
+
return this.m2o_1 == null ? 0 : hashCode(this.m2o_1);
|
|
249
249
|
};
|
|
250
250
|
protoOf(Closed).equals = function (other) {
|
|
251
251
|
if (this === other)
|
|
252
252
|
return true;
|
|
253
253
|
if (!(other instanceof Closed))
|
|
254
254
|
return false;
|
|
255
|
-
if (!equals(this.
|
|
255
|
+
if (!equals(this.m2o_1, other.m2o_1))
|
|
256
256
|
return false;
|
|
257
257
|
return true;
|
|
258
258
|
};
|
|
259
259
|
function Task() {
|
|
260
260
|
}
|
|
261
261
|
function Read(continuation) {
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
262
|
+
this.s2o_1 = continuation;
|
|
263
|
+
this.t2o_1 = null;
|
|
264
264
|
if (get_DEVELOPMENT_MODE()) {
|
|
265
265
|
var tmp = this;
|
|
266
266
|
// Inline function 'kotlin.also' call
|
|
267
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
267
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.s2o_1), 16));
|
|
268
268
|
stackTraceToString(this_0);
|
|
269
|
-
tmp.
|
|
269
|
+
tmp.t2o_1 = this_0;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
protoOf(Read).
|
|
273
|
-
return this.
|
|
272
|
+
protoOf(Read).o2o = function () {
|
|
273
|
+
return this.s2o_1;
|
|
274
274
|
};
|
|
275
|
-
protoOf(Read).
|
|
276
|
-
return this.
|
|
275
|
+
protoOf(Read).n2o = function () {
|
|
276
|
+
return this.t2o_1;
|
|
277
277
|
};
|
|
278
|
-
protoOf(Read).
|
|
278
|
+
protoOf(Read).p2o = function () {
|
|
279
279
|
return 'read';
|
|
280
280
|
};
|
|
281
281
|
function Write(continuation) {
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
282
|
+
this.u2o_1 = continuation;
|
|
283
|
+
this.v2o_1 = null;
|
|
284
284
|
if (get_DEVELOPMENT_MODE()) {
|
|
285
285
|
var tmp = this;
|
|
286
286
|
// Inline function 'kotlin.also' call
|
|
287
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
287
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.u2o_1), 16));
|
|
288
288
|
stackTraceToString(this_0);
|
|
289
|
-
tmp.
|
|
289
|
+
tmp.v2o_1 = this_0;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
protoOf(Write).
|
|
293
|
-
return this.
|
|
292
|
+
protoOf(Write).o2o = function () {
|
|
293
|
+
return this.u2o_1;
|
|
294
294
|
};
|
|
295
|
-
protoOf(Write).
|
|
296
|
-
return this.
|
|
295
|
+
protoOf(Write).n2o = function () {
|
|
296
|
+
return this.v2o_1;
|
|
297
297
|
};
|
|
298
|
-
protoOf(Write).
|
|
298
|
+
protoOf(Write).p2o = function () {
|
|
299
299
|
return 'write';
|
|
300
300
|
};
|
|
301
301
|
function moveFlushToReadBuffer($this) {
|
|
302
302
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
303
|
-
$this.
|
|
304
|
-
$this.
|
|
305
|
-
$this.
|
|
303
|
+
$this.z2o_1;
|
|
304
|
+
$this.x2o_1.p2m($this.b2p_1);
|
|
305
|
+
$this.y2o_1 = 0;
|
|
306
306
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
307
|
-
var current = $this.
|
|
307
|
+
var current = $this.a2p_1.kotlinx$atomicfu$value;
|
|
308
308
|
var tmp;
|
|
309
309
|
if (current instanceof Write) {
|
|
310
|
-
tmp = $this.
|
|
310
|
+
tmp = $this.a2p_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
311
311
|
} else {
|
|
312
312
|
tmp = false;
|
|
313
313
|
}
|
|
314
314
|
if (tmp) {
|
|
315
|
-
current.
|
|
315
|
+
current.q2o();
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
function closeSlot($this, cause) {
|
|
319
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
320
|
-
var continuation = $this.
|
|
319
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().k2o_1;
|
|
320
|
+
var continuation = $this.a2p_1.atomicfu$getAndSet(closeContinuation);
|
|
321
321
|
if (isInterface(continuation, Task)) {
|
|
322
|
-
continuation.
|
|
322
|
+
continuation.r2o(cause);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
}
|
|
339
339
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
340
340
|
CoroutineImpl.call(this, resultContinuation);
|
|
341
|
-
this.
|
|
342
|
-
this.
|
|
341
|
+
this.m2p_1 = _this__u8e3s4;
|
|
342
|
+
this.n2p_1 = min;
|
|
343
343
|
}
|
|
344
344
|
protoOf($awaitContentCOROUTINE$).q9 = function () {
|
|
345
345
|
var suspendResult = this.k9_1;
|
|
@@ -349,39 +349,39 @@
|
|
|
349
349
|
switch (tmp) {
|
|
350
350
|
case 0:
|
|
351
351
|
this.j9_1 = 4;
|
|
352
|
-
rethrowCloseCauseIfNeeded(this.
|
|
353
|
-
if (this.
|
|
352
|
+
rethrowCloseCauseIfNeeded(this.m2p_1);
|
|
353
|
+
if (this.m2p_1.b2p_1.g1() >= fromInt(this.n2p_1))
|
|
354
354
|
return true;
|
|
355
|
-
this.
|
|
355
|
+
this.o2p_1 = this.m2p_1;
|
|
356
356
|
this.i9_1 = 1;
|
|
357
357
|
continue $sm;
|
|
358
358
|
case 1:
|
|
359
|
-
if (!(add(numberToLong(this.
|
|
359
|
+
if (!(add(numberToLong(this.m2p_1.y2o_1), this.m2p_1.b2p_1.g1()) < fromInt(this.n2p_1) && this.m2p_1.d2p_1.kotlinx$atomicfu$value == null)) {
|
|
360
360
|
this.i9_1 = 3;
|
|
361
361
|
continue $sm;
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
this.i9_1 = 2;
|
|
365
365
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
366
|
-
cancellable.
|
|
367
|
-
var tmp0 = this.
|
|
366
|
+
cancellable.j1z();
|
|
367
|
+
var tmp0 = this.o2p_1;
|
|
368
368
|
var tmp2 = new Read(cancellable);
|
|
369
369
|
l$ret$1: do {
|
|
370
|
-
var previous = tmp0.
|
|
370
|
+
var previous = tmp0.a2p_1.kotlinx$atomicfu$value;
|
|
371
371
|
if (!(previous instanceof Closed)) {
|
|
372
|
-
if (!tmp0.
|
|
373
|
-
tmp2.
|
|
372
|
+
if (!tmp0.a2p_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
373
|
+
tmp2.q2o();
|
|
374
374
|
break l$ret$1;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
if (previous instanceof Read) {
|
|
378
|
-
previous.
|
|
378
|
+
previous.r2o(new ConcurrentIOException(tmp2.p2o(), previous.n2o()));
|
|
379
379
|
} else {
|
|
380
380
|
if (isInterface(previous, Task)) {
|
|
381
|
-
previous.
|
|
381
|
+
previous.q2o();
|
|
382
382
|
} else {
|
|
383
383
|
if (previous instanceof Closed) {
|
|
384
|
-
tmp2.
|
|
384
|
+
tmp2.r2o(previous.m2o_1);
|
|
385
385
|
break l$ret$1;
|
|
386
386
|
} else {
|
|
387
387
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -390,21 +390,21 @@
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
if (!(add(numberToLong(this.
|
|
394
|
-
var current = tmp0.
|
|
393
|
+
if (!(add(numberToLong(this.m2p_1.y2o_1), this.m2p_1.b2p_1.g1()) < fromInt(this.n2p_1) && this.m2p_1.d2p_1.kotlinx$atomicfu$value == null)) {
|
|
394
|
+
var current = tmp0.a2p_1.kotlinx$atomicfu$value;
|
|
395
395
|
var tmp_0;
|
|
396
396
|
if (current instanceof Read) {
|
|
397
|
-
tmp_0 = tmp0.
|
|
397
|
+
tmp_0 = tmp0.a2p_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
398
398
|
} else {
|
|
399
399
|
tmp_0 = false;
|
|
400
400
|
}
|
|
401
401
|
if (tmp_0) {
|
|
402
|
-
current.
|
|
402
|
+
current.q2o();
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
while (false);
|
|
407
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
407
|
+
suspendResult = returnIfSuspended(cancellable.k1z(), this);
|
|
408
408
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
409
409
|
return suspendResult;
|
|
410
410
|
}
|
|
@@ -414,11 +414,11 @@
|
|
|
414
414
|
this.i9_1 = 1;
|
|
415
415
|
continue $sm;
|
|
416
416
|
case 3:
|
|
417
|
-
if (this.
|
|
418
|
-
moveFlushToReadBuffer(this.
|
|
417
|
+
if (this.m2p_1.b2p_1.g1() < 1048576n) {
|
|
418
|
+
moveFlushToReadBuffer(this.m2p_1);
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
return this.
|
|
421
|
+
return this.m2p_1.b2p_1.g1() >= fromInt(this.n2p_1);
|
|
422
422
|
case 4:
|
|
423
423
|
throw this.l9_1;
|
|
424
424
|
}
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
};
|
|
436
436
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
437
437
|
CoroutineImpl.call(this, resultContinuation);
|
|
438
|
-
this.
|
|
438
|
+
this.x2p_1 = _this__u8e3s4;
|
|
439
439
|
}
|
|
440
440
|
protoOf($flushCOROUTINE$).q9 = function () {
|
|
441
441
|
var suspendResult = this.k9_1;
|
|
@@ -445,40 +445,40 @@
|
|
|
445
445
|
switch (tmp) {
|
|
446
446
|
case 0:
|
|
447
447
|
this.j9_1 = 4;
|
|
448
|
-
rethrowCloseCauseIfNeeded(this.
|
|
449
|
-
this.
|
|
450
|
-
if (this.
|
|
448
|
+
rethrowCloseCauseIfNeeded(this.x2p_1);
|
|
449
|
+
this.x2p_1.z2p();
|
|
450
|
+
if (this.x2p_1.y2o_1 < 1048576)
|
|
451
451
|
return Unit_instance;
|
|
452
|
-
this.
|
|
452
|
+
this.y2p_1 = this.x2p_1;
|
|
453
453
|
this.i9_1 = 1;
|
|
454
454
|
continue $sm;
|
|
455
455
|
case 1:
|
|
456
|
-
if (!(this.
|
|
456
|
+
if (!(this.x2p_1.y2o_1 >= 1048576 && this.x2p_1.d2p_1.kotlinx$atomicfu$value == null)) {
|
|
457
457
|
this.i9_1 = 3;
|
|
458
458
|
continue $sm;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
this.i9_1 = 2;
|
|
462
462
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
463
|
-
cancellable.
|
|
464
|
-
var tmp0 = this.
|
|
463
|
+
cancellable.j1z();
|
|
464
|
+
var tmp0 = this.y2p_1;
|
|
465
465
|
var tmp2 = new Write(cancellable);
|
|
466
466
|
l$ret$1: do {
|
|
467
|
-
var previous = tmp0.
|
|
467
|
+
var previous = tmp0.a2p_1.kotlinx$atomicfu$value;
|
|
468
468
|
if (!(previous instanceof Closed)) {
|
|
469
|
-
if (!tmp0.
|
|
470
|
-
tmp2.
|
|
469
|
+
if (!tmp0.a2p_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
470
|
+
tmp2.q2o();
|
|
471
471
|
break l$ret$1;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
if (previous instanceof Write) {
|
|
475
|
-
previous.
|
|
475
|
+
previous.r2o(new ConcurrentIOException(tmp2.p2o(), previous.n2o()));
|
|
476
476
|
} else {
|
|
477
477
|
if (isInterface(previous, Task)) {
|
|
478
|
-
previous.
|
|
478
|
+
previous.q2o();
|
|
479
479
|
} else {
|
|
480
480
|
if (previous instanceof Closed) {
|
|
481
|
-
tmp2.
|
|
481
|
+
tmp2.r2o(previous.m2o_1);
|
|
482
482
|
break l$ret$1;
|
|
483
483
|
} else {
|
|
484
484
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -487,21 +487,21 @@
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
if (!(this.
|
|
491
|
-
var current = tmp0.
|
|
490
|
+
if (!(this.x2p_1.y2o_1 >= 1048576 && this.x2p_1.d2p_1.kotlinx$atomicfu$value == null)) {
|
|
491
|
+
var current = tmp0.a2p_1.kotlinx$atomicfu$value;
|
|
492
492
|
var tmp_0;
|
|
493
493
|
if (current instanceof Write) {
|
|
494
|
-
tmp_0 = tmp0.
|
|
494
|
+
tmp_0 = tmp0.a2p_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
495
495
|
} else {
|
|
496
496
|
tmp_0 = false;
|
|
497
497
|
}
|
|
498
498
|
if (tmp_0) {
|
|
499
|
-
current.
|
|
499
|
+
current.q2o();
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
while (false);
|
|
504
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
504
|
+
suspendResult = returnIfSuspended(cancellable.k1z(), this);
|
|
505
505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
506
506
|
return suspendResult;
|
|
507
507
|
}
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
};
|
|
529
529
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
530
530
|
CoroutineImpl.call(this, resultContinuation);
|
|
531
|
-
this.
|
|
531
|
+
this.i2q_1 = _this__u8e3s4;
|
|
532
532
|
}
|
|
533
533
|
protoOf($flushAndCloseCOROUTINE$).q9 = function () {
|
|
534
534
|
var suspendResult = this.k9_1;
|
|
@@ -538,11 +538,11 @@
|
|
|
538
538
|
switch (tmp) {
|
|
539
539
|
case 0:
|
|
540
540
|
this.j9_1 = 4;
|
|
541
|
-
var this_0 = this.
|
|
541
|
+
var this_0 = this.i2q_1;
|
|
542
542
|
this.j9_1 = 2;
|
|
543
|
-
this.
|
|
543
|
+
this.k2q_1 = Companion_instance;
|
|
544
544
|
this.i9_1 = 1;
|
|
545
|
-
suspendResult = this_0.
|
|
545
|
+
suspendResult = this_0.l2q(this);
|
|
546
546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
547
547
|
return suspendResult;
|
|
548
548
|
}
|
|
@@ -550,8 +550,8 @@
|
|
|
550
550
|
continue $sm;
|
|
551
551
|
case 1:
|
|
552
552
|
var tmp_0 = this;
|
|
553
|
-
this.
|
|
554
|
-
tmp_0.
|
|
553
|
+
this.k2q_1;
|
|
554
|
+
tmp_0.j2q_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
555
555
|
this.j9_1 = 4;
|
|
556
556
|
this.i9_1 = 3;
|
|
557
557
|
continue $sm;
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
if (tmp_1 instanceof Error) {
|
|
562
562
|
var e = this.l9_1;
|
|
563
563
|
var tmp_2 = this;
|
|
564
|
-
tmp_2.
|
|
564
|
+
tmp_2.j2q_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
565
565
|
this.i9_1 = 3;
|
|
566
566
|
continue $sm;
|
|
567
567
|
} else {
|
|
@@ -570,9 +570,9 @@
|
|
|
570
570
|
|
|
571
571
|
case 3:
|
|
572
572
|
this.j9_1 = 4;
|
|
573
|
-
if (!this.
|
|
573
|
+
if (!this.i2q_1.d2p_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
574
574
|
return Unit_instance;
|
|
575
|
-
closeSlot(this.
|
|
575
|
+
closeSlot(this.i2q_1, null);
|
|
576
576
|
return Unit_instance;
|
|
577
577
|
case 4:
|
|
578
578
|
throw this.l9_1;
|
|
@@ -590,104 +590,104 @@
|
|
|
590
590
|
};
|
|
591
591
|
function ByteChannel(autoFlush) {
|
|
592
592
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
}
|
|
602
|
-
protoOf(ByteChannel).
|
|
603
|
-
return this.
|
|
604
|
-
};
|
|
605
|
-
protoOf(ByteChannel).
|
|
606
|
-
var tmp0_safe_receiver = this.
|
|
593
|
+
this.w2o_1 = autoFlush;
|
|
594
|
+
this.x2o_1 = new Buffer();
|
|
595
|
+
this.y2o_1 = 0;
|
|
596
|
+
this.z2o_1 = new Object();
|
|
597
|
+
this.a2p_1 = atomic$ref$1(Empty_instance);
|
|
598
|
+
this.b2p_1 = new Buffer();
|
|
599
|
+
this.c2p_1 = new Buffer();
|
|
600
|
+
this.d2p_1 = atomic$ref$1(null);
|
|
601
|
+
}
|
|
602
|
+
protoOf(ByteChannel).m2q = function () {
|
|
603
|
+
return this.w2o_1;
|
|
604
|
+
};
|
|
605
|
+
protoOf(ByteChannel).n2q = function () {
|
|
606
|
+
var tmp0_safe_receiver = this.d2p_1.kotlinx$atomicfu$value;
|
|
607
607
|
if (tmp0_safe_receiver == null)
|
|
608
608
|
null;
|
|
609
609
|
else {
|
|
610
|
-
tmp0_safe_receiver.
|
|
610
|
+
tmp0_safe_receiver.p2q(ClosedReadChannelException$_init_$ref_ix0089());
|
|
611
611
|
}
|
|
612
|
-
if (this.
|
|
612
|
+
if (this.b2p_1.m2l()) {
|
|
613
613
|
moveFlushToReadBuffer(this);
|
|
614
614
|
}
|
|
615
|
-
return this.
|
|
615
|
+
return this.b2p_1;
|
|
616
616
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
618
|
-
if (this.
|
|
619
|
-
var tmp0_safe_receiver = this.
|
|
617
|
+
protoOf(ByteChannel).q2q = function () {
|
|
618
|
+
if (this.r2q()) {
|
|
619
|
+
var tmp0_safe_receiver = this.d2p_1.kotlinx$atomicfu$value;
|
|
620
620
|
var tmp;
|
|
621
621
|
if (tmp0_safe_receiver == null) {
|
|
622
622
|
tmp = null;
|
|
623
623
|
} else {
|
|
624
|
-
tmp = tmp0_safe_receiver.
|
|
624
|
+
tmp = tmp0_safe_receiver.p2q(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
625
625
|
}
|
|
626
626
|
if (tmp == null)
|
|
627
627
|
throw new ClosedWriteChannelException();
|
|
628
628
|
}
|
|
629
|
-
return this.
|
|
629
|
+
return this.c2p_1;
|
|
630
630
|
};
|
|
631
|
-
protoOf(ByteChannel).
|
|
632
|
-
var tmp0_safe_receiver = this.
|
|
633
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
631
|
+
protoOf(ByteChannel).s2q = function () {
|
|
632
|
+
var tmp0_safe_receiver = this.d2p_1.kotlinx$atomicfu$value;
|
|
633
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t2q();
|
|
634
634
|
};
|
|
635
|
-
protoOf(ByteChannel).
|
|
636
|
-
return !(this.
|
|
635
|
+
protoOf(ByteChannel).r2q = function () {
|
|
636
|
+
return !(this.d2p_1.kotlinx$atomicfu$value == null);
|
|
637
637
|
};
|
|
638
|
-
protoOf(ByteChannel).
|
|
639
|
-
return !(this.
|
|
638
|
+
protoOf(ByteChannel).u2q = function () {
|
|
639
|
+
return !(this.s2q() == null) || (this.r2q() && this.y2o_1 === 0 && this.b2p_1.m2l());
|
|
640
640
|
};
|
|
641
|
-
protoOf(ByteChannel).
|
|
641
|
+
protoOf(ByteChannel).v2q = function (min, $completion) {
|
|
642
642
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
643
643
|
tmp.k9_1 = Unit_instance;
|
|
644
644
|
tmp.l9_1 = null;
|
|
645
645
|
return tmp.q9();
|
|
646
646
|
};
|
|
647
|
-
protoOf(ByteChannel).
|
|
647
|
+
protoOf(ByteChannel).l2q = function ($completion) {
|
|
648
648
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
649
649
|
tmp.k9_1 = Unit_instance;
|
|
650
650
|
tmp.l9_1 = null;
|
|
651
651
|
return tmp.q9();
|
|
652
652
|
};
|
|
653
|
-
protoOf(ByteChannel).
|
|
654
|
-
if (this.
|
|
653
|
+
protoOf(ByteChannel).z2p = function () {
|
|
654
|
+
if (this.c2p_1.m2l())
|
|
655
655
|
return Unit_instance;
|
|
656
656
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
657
|
-
this.
|
|
658
|
-
var count = convertToInt(this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
657
|
+
this.z2o_1;
|
|
658
|
+
var count = convertToInt(this.c2p_1.g1());
|
|
659
|
+
this.x2o_1.e2n(this.c2p_1);
|
|
660
|
+
this.y2o_1 = this.y2o_1 + count | 0;
|
|
661
661
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
662
|
-
var current = this.
|
|
662
|
+
var current = this.a2p_1.kotlinx$atomicfu$value;
|
|
663
663
|
var tmp;
|
|
664
664
|
if (current instanceof Read) {
|
|
665
|
-
tmp = this.
|
|
665
|
+
tmp = this.a2p_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
666
666
|
} else {
|
|
667
667
|
tmp = false;
|
|
668
668
|
}
|
|
669
669
|
if (tmp) {
|
|
670
|
-
current.
|
|
670
|
+
current.q2o();
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
673
|
protoOf(ByteChannel).t4 = function () {
|
|
674
|
-
this.
|
|
675
|
-
if (!this.
|
|
674
|
+
this.z2p();
|
|
675
|
+
if (!this.d2p_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
676
676
|
return Unit_instance;
|
|
677
677
|
closeSlot(this, null);
|
|
678
678
|
};
|
|
679
|
-
protoOf(ByteChannel).
|
|
679
|
+
protoOf(ByteChannel).x2q = function ($completion) {
|
|
680
680
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
681
681
|
tmp.k9_1 = Unit_instance;
|
|
682
682
|
tmp.l9_1 = null;
|
|
683
683
|
return tmp.q9();
|
|
684
684
|
};
|
|
685
|
-
protoOf(ByteChannel).
|
|
686
|
-
if (!(this.
|
|
685
|
+
protoOf(ByteChannel).y2q = function (cause) {
|
|
686
|
+
if (!(this.d2p_1.kotlinx$atomicfu$value == null))
|
|
687
687
|
return Unit_instance;
|
|
688
688
|
var closedToken = new CloseToken(cause);
|
|
689
|
-
this.
|
|
690
|
-
var wrappedCause = closedToken.
|
|
689
|
+
this.d2p_1.atomicfu$compareAndSet(null, closedToken);
|
|
690
|
+
var wrappedCause = closedToken.t2q();
|
|
691
691
|
closeSlot(this, wrappedCause);
|
|
692
692
|
};
|
|
693
693
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
length = length === VOID ? content.length : length;
|
|
704
704
|
// Inline function 'kotlin.also' call
|
|
705
705
|
var this_0 = new Buffer();
|
|
706
|
-
this_0.
|
|
706
|
+
this_0.v2m(content, offset, offset + length | 0);
|
|
707
707
|
var source = this_0;
|
|
708
708
|
return ByteReadChannel_0(source);
|
|
709
709
|
}
|
|
@@ -711,18 +711,18 @@
|
|
|
711
711
|
return new SourceByteReadChannel(source);
|
|
712
712
|
}
|
|
713
713
|
function buildPartialMatchTable($this) {
|
|
714
|
-
var table = new Int32Array($this.
|
|
714
|
+
var table = new Int32Array($this.a2r_1.g1());
|
|
715
715
|
var j = 0;
|
|
716
716
|
var inductionVariable = 1;
|
|
717
|
-
var last = $this.
|
|
717
|
+
var last = $this.a2r_1.g1();
|
|
718
718
|
if (inductionVariable < last)
|
|
719
719
|
do {
|
|
720
720
|
var i = inductionVariable;
|
|
721
721
|
inductionVariable = inductionVariable + 1 | 0;
|
|
722
|
-
while (j > 0 && !($this.
|
|
722
|
+
while (j > 0 && !($this.a2r_1.h1(i) === $this.a2r_1.h1(j))) {
|
|
723
723
|
j = table[j - 1 | 0];
|
|
724
724
|
}
|
|
725
|
-
if ($this.
|
|
725
|
+
if ($this.a2r_1.h1(i) === $this.a2r_1.h1(j)) {
|
|
726
726
|
j = j + 1 | 0;
|
|
727
727
|
}
|
|
728
728
|
table[i] = j;
|
|
@@ -743,8 +743,8 @@
|
|
|
743
743
|
return tmp.q9();
|
|
744
744
|
}
|
|
745
745
|
function checkBounds($this, extra) {
|
|
746
|
-
if (add($this.
|
|
747
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
746
|
+
if (add($this.g2r_1, extra) > $this.c2r_1) {
|
|
747
|
+
throw IOException_init_$Create$('Limit of ' + $this.c2r_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.a2r_1) + '"'));
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -752,8 +752,8 @@
|
|
|
752
752
|
}
|
|
753
753
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
754
754
|
CoroutineImpl.call(this, resultContinuation);
|
|
755
|
-
this.
|
|
756
|
-
this.
|
|
755
|
+
this.l2s_1 = _this__u8e3s4;
|
|
756
|
+
this.m2s_1 = ignoreMissing;
|
|
757
757
|
}
|
|
758
758
|
protoOf($findNextCOROUTINE$).q9 = function () {
|
|
759
759
|
var suspendResult = this.k9_1;
|
|
@@ -763,17 +763,17 @@
|
|
|
763
763
|
switch (tmp) {
|
|
764
764
|
case 0:
|
|
765
765
|
this.j9_1 = 9;
|
|
766
|
-
this.
|
|
766
|
+
this.l2s_1.g2r_1 = 0n;
|
|
767
767
|
this.i9_1 = 1;
|
|
768
768
|
continue $sm;
|
|
769
769
|
case 1:
|
|
770
|
-
if (!this.
|
|
771
|
-
this.
|
|
770
|
+
if (!this.l2s_1.d2r_1.m2l()) {
|
|
771
|
+
this.n2s_1 = true;
|
|
772
772
|
this.i9_1 = 3;
|
|
773
773
|
continue $sm;
|
|
774
774
|
} else {
|
|
775
775
|
this.i9_1 = 2;
|
|
776
|
-
suspendResult = this.
|
|
776
|
+
suspendResult = this.l2s_1.z2q_1.w2q(VOID, this);
|
|
777
777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
778
778
|
return suspendResult;
|
|
779
779
|
}
|
|
@@ -781,17 +781,17 @@
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
case 2:
|
|
784
|
-
this.
|
|
784
|
+
this.n2s_1 = suspendResult;
|
|
785
785
|
this.i9_1 = 3;
|
|
786
786
|
continue $sm;
|
|
787
787
|
case 3:
|
|
788
|
-
if (!this.
|
|
788
|
+
if (!this.n2s_1) {
|
|
789
789
|
this.i9_1 = 7;
|
|
790
790
|
continue $sm;
|
|
791
791
|
}
|
|
792
792
|
|
|
793
793
|
this.i9_1 = 4;
|
|
794
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
794
|
+
suspendResult = advanceToNextPotentialMatch(this.l2s_1, this);
|
|
795
795
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
796
796
|
return suspendResult;
|
|
797
797
|
}
|
|
@@ -799,7 +799,7 @@
|
|
|
799
799
|
continue $sm;
|
|
800
800
|
case 4:
|
|
801
801
|
this.i9_1 = 5;
|
|
802
|
-
suspendResult = checkFullMatch(this.
|
|
802
|
+
suspendResult = checkFullMatch(this.l2s_1, this);
|
|
803
803
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
804
804
|
return suspendResult;
|
|
805
805
|
}
|
|
@@ -807,7 +807,7 @@
|
|
|
807
807
|
continue $sm;
|
|
808
808
|
case 5:
|
|
809
809
|
if (suspendResult) {
|
|
810
|
-
return this.
|
|
810
|
+
return this.l2s_1.g2r_1;
|
|
811
811
|
} else {
|
|
812
812
|
this.i9_1 = 6;
|
|
813
813
|
continue $sm;
|
|
@@ -817,20 +817,20 @@
|
|
|
817
817
|
this.i9_1 = 1;
|
|
818
818
|
continue $sm;
|
|
819
819
|
case 7:
|
|
820
|
-
if (!this.
|
|
821
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
820
|
+
if (!this.m2s_1) {
|
|
821
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.l2s_1, this.l2s_1.a2r_1) + '" but encountered end of input');
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
this.
|
|
824
|
+
this.l2s_1.g2r_1 = add(this.l2s_1.g2r_1, this.l2s_1.f2r_1.p2m(this.l2s_1.b2r_1.q2q()));
|
|
825
825
|
this.i9_1 = 8;
|
|
826
|
-
suspendResult = this.
|
|
826
|
+
suspendResult = this.l2s_1.b2r_1.l2q(this);
|
|
827
827
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
828
828
|
return suspendResult;
|
|
829
829
|
}
|
|
830
830
|
|
|
831
831
|
continue $sm;
|
|
832
832
|
case 8:
|
|
833
|
-
return this.
|
|
833
|
+
return this.l2s_1.g2r_1;
|
|
834
834
|
case 9:
|
|
835
835
|
throw this.l9_1;
|
|
836
836
|
}
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
};
|
|
848
848
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
849
849
|
CoroutineImpl.call(this, resultContinuation);
|
|
850
|
-
this.
|
|
850
|
+
this.q2r_1 = _this__u8e3s4;
|
|
851
851
|
}
|
|
852
852
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).q9 = function () {
|
|
853
853
|
var suspendResult = this.k9_1;
|
|
@@ -860,13 +860,13 @@
|
|
|
860
860
|
this.i9_1 = 1;
|
|
861
861
|
continue $sm;
|
|
862
862
|
case 1:
|
|
863
|
-
if (!this.
|
|
864
|
-
this.
|
|
863
|
+
if (!this.q2r_1.d2r_1.m2l()) {
|
|
864
|
+
this.r2r_1 = true;
|
|
865
865
|
this.i9_1 = 3;
|
|
866
866
|
continue $sm;
|
|
867
867
|
} else {
|
|
868
868
|
this.i9_1 = 2;
|
|
869
|
-
suspendResult = this.
|
|
869
|
+
suspendResult = this.q2r_1.z2q_1.w2q(VOID, this);
|
|
870
870
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
871
871
|
return suspendResult;
|
|
872
872
|
}
|
|
@@ -874,34 +874,34 @@
|
|
|
874
874
|
}
|
|
875
875
|
|
|
876
876
|
case 2:
|
|
877
|
-
this.
|
|
877
|
+
this.r2r_1 = suspendResult;
|
|
878
878
|
this.i9_1 = 3;
|
|
879
879
|
continue $sm;
|
|
880
880
|
case 3:
|
|
881
|
-
if (!this.
|
|
881
|
+
if (!this.r2r_1) {
|
|
882
882
|
this.i9_1 = 7;
|
|
883
883
|
continue $sm;
|
|
884
884
|
}
|
|
885
885
|
|
|
886
|
-
var nextMatch = indexOf(this.
|
|
886
|
+
var nextMatch = indexOf(this.q2r_1.d2r_1, this.q2r_1.a2r_1.h1(0));
|
|
887
887
|
if (nextMatch === -1n) {
|
|
888
|
-
var tmp_0 = this.
|
|
889
|
-
checkBounds(this.
|
|
890
|
-
this.
|
|
888
|
+
var tmp_0 = this.q2r_1.d2r_1;
|
|
889
|
+
checkBounds(this.q2r_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
890
|
+
this.q2r_1.g2r_1 = add(this.q2r_1.g2r_1, this.q2r_1.d2r_1.p2m(this.q2r_1.b2r_1.q2q()));
|
|
891
891
|
this.i9_1 = 5;
|
|
892
|
-
suspendResult = flushIfNeeded(this.
|
|
892
|
+
suspendResult = flushIfNeeded(this.q2r_1.b2r_1, this);
|
|
893
893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
894
894
|
return suspendResult;
|
|
895
895
|
}
|
|
896
896
|
continue $sm;
|
|
897
897
|
} else {
|
|
898
|
-
checkBounds(this.
|
|
899
|
-
var tmp_1 = this.
|
|
900
|
-
var tmp_2 = this.
|
|
901
|
-
var tmp_3 = this.
|
|
902
|
-
tmp_1.
|
|
898
|
+
checkBounds(this.q2r_1, nextMatch);
|
|
899
|
+
var tmp_1 = this.q2r_1;
|
|
900
|
+
var tmp_2 = this.q2r_1.g2r_1;
|
|
901
|
+
var tmp_3 = this.q2r_1.b2r_1.q2q();
|
|
902
|
+
tmp_1.g2r_1 = add(tmp_2, this.q2r_1.d2r_1.m2m(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
903
903
|
this.i9_1 = 4;
|
|
904
|
-
suspendResult = flushIfNeeded(this.
|
|
904
|
+
suspendResult = flushIfNeeded(this.q2r_1.b2r_1, this);
|
|
905
905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
906
906
|
return suspendResult;
|
|
907
907
|
}
|
|
@@ -934,7 +934,7 @@
|
|
|
934
934
|
};
|
|
935
935
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
936
936
|
CoroutineImpl.call(this, resultContinuation);
|
|
937
|
-
this.
|
|
937
|
+
this.a2s_1 = _this__u8e3s4;
|
|
938
938
|
}
|
|
939
939
|
protoOf($checkFullMatchCOROUTINE$).q9 = function () {
|
|
940
940
|
var suspendResult = this.k9_1;
|
|
@@ -947,13 +947,13 @@
|
|
|
947
947
|
this.i9_1 = 1;
|
|
948
948
|
continue $sm;
|
|
949
949
|
case 1:
|
|
950
|
-
if (!this.
|
|
951
|
-
this.
|
|
950
|
+
if (!this.a2s_1.d2r_1.m2l()) {
|
|
951
|
+
this.c2s_1 = true;
|
|
952
952
|
this.i9_1 = 3;
|
|
953
953
|
continue $sm;
|
|
954
954
|
} else {
|
|
955
955
|
this.i9_1 = 2;
|
|
956
|
-
suspendResult = this.
|
|
956
|
+
suspendResult = this.a2s_1.z2q_1.w2q(VOID, this);
|
|
957
957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
958
958
|
return suspendResult;
|
|
959
959
|
}
|
|
@@ -961,30 +961,30 @@
|
|
|
961
961
|
}
|
|
962
962
|
|
|
963
963
|
case 2:
|
|
964
|
-
this.
|
|
964
|
+
this.c2s_1 = suspendResult;
|
|
965
965
|
this.i9_1 = 3;
|
|
966
966
|
continue $sm;
|
|
967
967
|
case 3:
|
|
968
|
-
if (!this.
|
|
968
|
+
if (!this.c2s_1) {
|
|
969
969
|
this.i9_1 = 7;
|
|
970
970
|
continue $sm;
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
this.
|
|
974
|
-
if (this.
|
|
975
|
-
var oldMatchIndex = this.
|
|
976
|
-
while (this.
|
|
977
|
-
this.
|
|
973
|
+
this.b2s_1 = this.a2s_1.d2r_1.p2l();
|
|
974
|
+
if (this.a2s_1.h2r_1 > 0 && !(this.b2s_1 === this.a2s_1.a2r_1.h1(this.a2s_1.h2r_1))) {
|
|
975
|
+
var oldMatchIndex = this.a2s_1.h2r_1;
|
|
976
|
+
while (this.a2s_1.h2r_1 > 0 && !(this.b2s_1 === this.a2s_1.a2r_1.h1(this.a2s_1.h2r_1))) {
|
|
977
|
+
this.a2s_1.h2r_1 = this.a2s_1.e2r_1[this.a2s_1.h2r_1 - 1 | 0];
|
|
978
978
|
}
|
|
979
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
980
|
-
checkBounds(this.
|
|
981
|
-
var tmp_0 = this.
|
|
982
|
-
var tmp_1 = this.
|
|
983
|
-
var tmp_2 = this.
|
|
984
|
-
tmp_0.
|
|
985
|
-
if (this.
|
|
979
|
+
var retained = fromInt(oldMatchIndex - this.a2s_1.h2r_1 | 0);
|
|
980
|
+
checkBounds(this.a2s_1, retained);
|
|
981
|
+
var tmp_0 = this.a2s_1;
|
|
982
|
+
var tmp_1 = this.a2s_1.g2r_1;
|
|
983
|
+
var tmp_2 = this.a2s_1.b2r_1.q2q();
|
|
984
|
+
tmp_0.g2r_1 = add(tmp_1, this.a2s_1.f2r_1.m2m(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
985
|
+
if (this.a2s_1.h2r_1 === 0 && !(this.b2s_1 === this.a2s_1.a2r_1.h1(this.a2s_1.h2r_1))) {
|
|
986
986
|
this.i9_1 = 6;
|
|
987
|
-
suspendResult = writeByte(this.
|
|
987
|
+
suspendResult = writeByte(this.a2s_1.b2r_1, this.b2s_1, this);
|
|
988
988
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
989
989
|
return suspendResult;
|
|
990
990
|
}
|
|
@@ -1002,17 +1002,17 @@
|
|
|
1002
1002
|
this.i9_1 = 5;
|
|
1003
1003
|
continue $sm;
|
|
1004
1004
|
case 5:
|
|
1005
|
-
this.
|
|
1006
|
-
if (this.
|
|
1005
|
+
this.a2s_1.h2r_1 = this.a2s_1.h2r_1 + 1 | 0;
|
|
1006
|
+
if (this.a2s_1.h2r_1 === this.a2s_1.a2r_1.g1()) {
|
|
1007
1007
|
return true;
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
|
-
this.
|
|
1010
|
+
this.a2s_1.f2r_1.f2n(this.b2s_1);
|
|
1011
1011
|
this.i9_1 = 1;
|
|
1012
1012
|
continue $sm;
|
|
1013
1013
|
case 6:
|
|
1014
|
-
var _unary__edvuaz = this.
|
|
1015
|
-
this.
|
|
1014
|
+
var _unary__edvuaz = this.a2s_1.g2r_1;
|
|
1015
|
+
this.a2s_1.g2r_1 = add(_unary__edvuaz, get_ONE());
|
|
1016
1016
|
return false;
|
|
1017
1017
|
case 7:
|
|
1018
1018
|
return false;
|
|
@@ -1032,49 +1032,49 @@
|
|
|
1032
1032
|
};
|
|
1033
1033
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1034
1034
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1035
|
-
this.
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1035
|
+
this.z2q_1 = channel;
|
|
1036
|
+
this.a2r_1 = matchString;
|
|
1037
|
+
this.b2r_1 = writeChannel;
|
|
1038
|
+
this.c2r_1 = limit;
|
|
1039
1039
|
// Inline function 'kotlin.require' call
|
|
1040
|
-
if (!(this.
|
|
1040
|
+
if (!(this.a2r_1.g1() > 0)) {
|
|
1041
1041
|
var message = 'Empty match string not permitted for scanning';
|
|
1042
1042
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1043
1043
|
}
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1044
|
+
this.d2r_1 = this.z2q_1.n2q();
|
|
1045
|
+
this.e2r_1 = buildPartialMatchTable(this);
|
|
1046
|
+
this.f2r_1 = new Buffer();
|
|
1047
|
+
this.g2r_1 = 0n;
|
|
1048
|
+
this.h2r_1 = 0;
|
|
1049
1049
|
}
|
|
1050
|
-
protoOf(ByteChannelScanner).
|
|
1050
|
+
protoOf(ByteChannelScanner).o2s = function (ignoreMissing, $completion) {
|
|
1051
1051
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1052
1052
|
tmp.k9_1 = Unit_instance;
|
|
1053
1053
|
tmp.l9_1 = null;
|
|
1054
1054
|
return tmp.q9();
|
|
1055
1055
|
};
|
|
1056
1056
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1057
|
+
this.p2s_1 = null;
|
|
1058
|
+
this.q2s_1 = new Buffer();
|
|
1059
1059
|
}
|
|
1060
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1061
|
-
return this.
|
|
1060
|
+
protoOf(ByteReadChannel$Companion$Empty$1).s2q = function () {
|
|
1061
|
+
return this.p2s_1;
|
|
1062
1062
|
};
|
|
1063
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1063
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u2q = function () {
|
|
1064
1064
|
return true;
|
|
1065
1065
|
};
|
|
1066
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1067
|
-
return this.
|
|
1066
|
+
protoOf(ByteReadChannel$Companion$Empty$1).n2q = function () {
|
|
1067
|
+
return this.q2s_1;
|
|
1068
1068
|
};
|
|
1069
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1069
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v2q = function (min, $completion) {
|
|
1070
1070
|
return false;
|
|
1071
1071
|
};
|
|
1072
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1072
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y2q = function (cause) {
|
|
1073
1073
|
};
|
|
1074
1074
|
function Companion_0() {
|
|
1075
1075
|
Companion_instance_1 = this;
|
|
1076
1076
|
var tmp = this;
|
|
1077
|
-
tmp.
|
|
1077
|
+
tmp.r2s_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1078
1078
|
}
|
|
1079
1079
|
var Companion_instance_1;
|
|
1080
1080
|
function Companion_getInstance_0() {
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
function ByteReadChannel_1() {
|
|
1086
1086
|
}
|
|
1087
1087
|
function cancel_0(_this__u8e3s4) {
|
|
1088
|
-
_this__u8e3s4.
|
|
1088
|
+
_this__u8e3s4.y2q(IOException_init_$Create$('Channel was cancelled'));
|
|
1089
1089
|
}
|
|
1090
1090
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1091
1091
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1147,7 +1147,7 @@
|
|
|
1147
1147
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1148
1148
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1149
1149
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1150
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1150
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).o2s(ignoreMissing, $completion);
|
|
1151
1151
|
}
|
|
1152
1152
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1153
1153
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
return tmp.q9();
|
|
1167
1167
|
}
|
|
1168
1168
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1169
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1169
|
+
var tmp0_safe_receiver = _this__u8e3s4.s2q();
|
|
1170
1170
|
if (tmp0_safe_receiver == null)
|
|
1171
1171
|
null;
|
|
1172
1172
|
else {
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1178
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1178
|
+
var tmp0_safe_receiver = _this__u8e3s4.s2q();
|
|
1179
1179
|
if (tmp0_safe_receiver == null)
|
|
1180
1180
|
null;
|
|
1181
1181
|
else {
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
function get_availableForRead(_this__u8e3s4) {
|
|
1187
|
-
return convertToInt(_this__u8e3s4.
|
|
1187
|
+
return convertToInt(_this__u8e3s4.n2q().l2l().g1());
|
|
1188
1188
|
}
|
|
1189
1189
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1190
1190
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1205,7 +1205,7 @@
|
|
|
1205
1205
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1206
1206
|
}
|
|
1207
1207
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1208
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1208
|
+
var tmp0_safe_receiver = _this__u8e3s4.s2q();
|
|
1209
1209
|
if (tmp0_safe_receiver == null)
|
|
1210
1210
|
null;
|
|
1211
1211
|
else {
|
|
@@ -1250,7 +1250,7 @@
|
|
|
1250
1250
|
}
|
|
1251
1251
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1252
1252
|
CoroutineImpl.call(this, resultContinuation);
|
|
1253
|
-
this.
|
|
1253
|
+
this.a2t_1 = _this__u8e3s4;
|
|
1254
1254
|
}
|
|
1255
1255
|
protoOf($readBufferCOROUTINE$).q9 = function () {
|
|
1256
1256
|
var suspendResult = this.k9_1;
|
|
@@ -1260,18 +1260,18 @@
|
|
|
1260
1260
|
switch (tmp) {
|
|
1261
1261
|
case 0:
|
|
1262
1262
|
this.j9_1 = 4;
|
|
1263
|
-
this.
|
|
1263
|
+
this.b2t_1 = new Buffer();
|
|
1264
1264
|
this.i9_1 = 1;
|
|
1265
1265
|
continue $sm;
|
|
1266
1266
|
case 1:
|
|
1267
|
-
if (!!this.
|
|
1267
|
+
if (!!this.a2t_1.u2q()) {
|
|
1268
1268
|
this.i9_1 = 3;
|
|
1269
1269
|
continue $sm;
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
|
-
this.
|
|
1272
|
+
this.b2t_1.e2n(this.a2t_1.n2q());
|
|
1273
1273
|
this.i9_1 = 2;
|
|
1274
|
-
suspendResult = this.
|
|
1274
|
+
suspendResult = this.a2t_1.w2q(VOID, this);
|
|
1275
1275
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1276
1276
|
return suspendResult;
|
|
1277
1277
|
}
|
|
@@ -1281,14 +1281,14 @@
|
|
|
1281
1281
|
this.i9_1 = 1;
|
|
1282
1282
|
continue $sm;
|
|
1283
1283
|
case 3:
|
|
1284
|
-
var tmp0_safe_receiver = this.
|
|
1284
|
+
var tmp0_safe_receiver = this.a2t_1.s2q();
|
|
1285
1285
|
if (tmp0_safe_receiver == null)
|
|
1286
1286
|
null;
|
|
1287
1287
|
else {
|
|
1288
1288
|
throw tmp0_safe_receiver;
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
|
-
return this.
|
|
1291
|
+
return this.b2t_1;
|
|
1292
1292
|
case 4:
|
|
1293
1293
|
throw this.l9_1;
|
|
1294
1294
|
}
|
|
@@ -1305,10 +1305,10 @@
|
|
|
1305
1305
|
};
|
|
1306
1306
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1307
1307
|
CoroutineImpl.call(this, resultContinuation);
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1308
|
+
this.k2t_1 = _this__u8e3s4;
|
|
1309
|
+
this.l2t_1 = buffer;
|
|
1310
|
+
this.m2t_1 = offset;
|
|
1311
|
+
this.n2t_1 = length;
|
|
1312
1312
|
}
|
|
1313
1313
|
protoOf($readAvailableCOROUTINE$).q9 = function () {
|
|
1314
1314
|
var suspendResult = this.k9_1;
|
|
@@ -1318,11 +1318,11 @@
|
|
|
1318
1318
|
switch (tmp) {
|
|
1319
1319
|
case 0:
|
|
1320
1320
|
this.j9_1 = 3;
|
|
1321
|
-
if (this.
|
|
1321
|
+
if (this.k2t_1.u2q())
|
|
1322
1322
|
return -1;
|
|
1323
|
-
if (this.
|
|
1323
|
+
if (this.k2t_1.n2q().m2l()) {
|
|
1324
1324
|
this.i9_1 = 1;
|
|
1325
|
-
suspendResult = this.
|
|
1325
|
+
suspendResult = this.k2t_1.w2q(VOID, this);
|
|
1326
1326
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1327
1327
|
return suspendResult;
|
|
1328
1328
|
}
|
|
@@ -1336,9 +1336,9 @@
|
|
|
1336
1336
|
this.i9_1 = 2;
|
|
1337
1337
|
continue $sm;
|
|
1338
1338
|
case 2:
|
|
1339
|
-
if (this.
|
|
1339
|
+
if (this.k2t_1.u2q())
|
|
1340
1340
|
return -1;
|
|
1341
|
-
return readAvailable_0(this.
|
|
1341
|
+
return readAvailable_0(this.k2t_1.n2q(), this.l2t_1, this.m2t_1, this.n2t_1);
|
|
1342
1342
|
case 3:
|
|
1343
1343
|
throw this.l9_1;
|
|
1344
1344
|
}
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
};
|
|
1356
1356
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1357
1357
|
CoroutineImpl.call(this, resultContinuation);
|
|
1358
|
-
this.
|
|
1358
|
+
this.w2t_1 = _this__u8e3s4;
|
|
1359
1359
|
}
|
|
1360
1360
|
protoOf($readRemainingCOROUTINE$).q9 = function () {
|
|
1361
1361
|
var suspendResult = this.k9_1;
|
|
@@ -1365,18 +1365,18 @@
|
|
|
1365
1365
|
switch (tmp) {
|
|
1366
1366
|
case 0:
|
|
1367
1367
|
this.j9_1 = 4;
|
|
1368
|
-
this.
|
|
1368
|
+
this.x2t_1 = BytePacketBuilder();
|
|
1369
1369
|
this.i9_1 = 1;
|
|
1370
1370
|
continue $sm;
|
|
1371
1371
|
case 1:
|
|
1372
|
-
if (!!this.
|
|
1372
|
+
if (!!this.w2t_1.u2q()) {
|
|
1373
1373
|
this.i9_1 = 3;
|
|
1374
1374
|
continue $sm;
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
|
-
this.
|
|
1377
|
+
this.x2t_1.e2n(this.w2t_1.n2q());
|
|
1378
1378
|
this.i9_1 = 2;
|
|
1379
|
-
suspendResult = this.
|
|
1379
|
+
suspendResult = this.w2t_1.w2q(VOID, this);
|
|
1380
1380
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1381
1381
|
return suspendResult;
|
|
1382
1382
|
}
|
|
@@ -1386,8 +1386,8 @@
|
|
|
1386
1386
|
this.i9_1 = 1;
|
|
1387
1387
|
continue $sm;
|
|
1388
1388
|
case 3:
|
|
1389
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1390
|
-
return this.
|
|
1389
|
+
rethrowCloseCauseIfNeeded_0(this.w2t_1);
|
|
1390
|
+
return this.x2t_1.l2l();
|
|
1391
1391
|
case 4:
|
|
1392
1392
|
throw this.l9_1;
|
|
1393
1393
|
}
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
};
|
|
1405
1405
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1406
1406
|
CoroutineImpl.call(this, resultContinuation);
|
|
1407
|
-
this.
|
|
1407
|
+
this.g2u_1 = _this__u8e3s4;
|
|
1408
1408
|
}
|
|
1409
1409
|
protoOf($toByteArrayCOROUTINE$).q9 = function () {
|
|
1410
1410
|
var suspendResult = this.k9_1;
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
case 0:
|
|
1416
1416
|
this.j9_1 = 2;
|
|
1417
1417
|
this.i9_1 = 1;
|
|
1418
|
-
suspendResult = readBuffer(this.
|
|
1418
|
+
suspendResult = readBuffer(this.g2u_1, this);
|
|
1419
1419
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1420
1420
|
return suspendResult;
|
|
1421
1421
|
}
|
|
@@ -1440,9 +1440,9 @@
|
|
|
1440
1440
|
};
|
|
1441
1441
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1442
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1443
|
+
this.p2u_1 = _this__u8e3s4;
|
|
1444
|
+
this.q2u_1 = channel;
|
|
1445
|
+
this.r2u_1 = limit;
|
|
1446
1446
|
}
|
|
1447
1447
|
protoOf($copyToCOROUTINE$).q9 = function () {
|
|
1448
1448
|
var suspendResult = this.k9_1;
|
|
@@ -1452,7 +1452,7 @@
|
|
|
1452
1452
|
switch (tmp) {
|
|
1453
1453
|
case 0:
|
|
1454
1454
|
this.j9_1 = 12;
|
|
1455
|
-
this.
|
|
1455
|
+
this.s2u_1 = this.r2u_1;
|
|
1456
1456
|
this.i9_1 = 1;
|
|
1457
1457
|
continue $sm;
|
|
1458
1458
|
case 1:
|
|
@@ -1461,14 +1461,14 @@
|
|
|
1461
1461
|
this.i9_1 = 2;
|
|
1462
1462
|
continue $sm;
|
|
1463
1463
|
case 2:
|
|
1464
|
-
if (!(!this.
|
|
1464
|
+
if (!(!this.p2u_1.u2q() && this.s2u_1 > 0n)) {
|
|
1465
1465
|
this.i9_1 = 6;
|
|
1466
1466
|
continue $sm;
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
|
-
if (this.
|
|
1469
|
+
if (this.p2u_1.n2q().m2l()) {
|
|
1470
1470
|
this.i9_1 = 3;
|
|
1471
|
-
suspendResult = this.
|
|
1471
|
+
suspendResult = this.p2u_1.w2q(VOID, this);
|
|
1472
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1473
1473
|
return suspendResult;
|
|
1474
1474
|
}
|
|
@@ -1482,13 +1482,13 @@
|
|
|
1482
1482
|
this.i9_1 = 4;
|
|
1483
1483
|
continue $sm;
|
|
1484
1484
|
case 4:
|
|
1485
|
-
var tmp0 = this.
|
|
1486
|
-
var b = get_remaining(this.
|
|
1485
|
+
var tmp0 = this.s2u_1;
|
|
1486
|
+
var b = get_remaining(this.p2u_1.n2q());
|
|
1487
1487
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1488
|
+
this.p2u_1.n2q().o2m(this.q2u_1.q2q(), count);
|
|
1489
|
+
this.s2u_1 = subtract(this.s2u_1, count);
|
|
1490
1490
|
this.i9_1 = 5;
|
|
1491
|
-
suspendResult = this.
|
|
1491
|
+
suspendResult = this.q2u_1.l2q(this);
|
|
1492
1492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1493
1493
|
return suspendResult;
|
|
1494
1494
|
}
|
|
@@ -1506,8 +1506,8 @@
|
|
|
1506
1506
|
var tmp_0 = this.l9_1;
|
|
1507
1507
|
if (tmp_0 instanceof Error) {
|
|
1508
1508
|
var cause = this.l9_1;
|
|
1509
|
-
this.
|
|
1510
|
-
close_0(this.
|
|
1509
|
+
this.p2u_1.y2q(cause);
|
|
1510
|
+
close_0(this.q2u_1, cause);
|
|
1511
1511
|
throw cause;
|
|
1512
1512
|
} else {
|
|
1513
1513
|
throw this.l9_1;
|
|
@@ -1515,27 +1515,27 @@
|
|
|
1515
1515
|
|
|
1516
1516
|
case 8:
|
|
1517
1517
|
this.j9_1 = 12;
|
|
1518
|
-
this.
|
|
1518
|
+
this.t2u_1 = this.l9_1;
|
|
1519
1519
|
this.i9_1 = 9;
|
|
1520
|
-
suspendResult = this.
|
|
1520
|
+
suspendResult = this.q2u_1.l2q(this);
|
|
1521
1521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1522
1522
|
return suspendResult;
|
|
1523
1523
|
}
|
|
1524
1524
|
|
|
1525
1525
|
continue $sm;
|
|
1526
1526
|
case 9:
|
|
1527
|
-
throw this.
|
|
1527
|
+
throw this.t2u_1;
|
|
1528
1528
|
case 10:
|
|
1529
1529
|
this.j9_1 = 12;
|
|
1530
1530
|
this.i9_1 = 11;
|
|
1531
|
-
suspendResult = this.
|
|
1531
|
+
suspendResult = this.q2u_1.l2q(this);
|
|
1532
1532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1533
1533
|
return suspendResult;
|
|
1534
1534
|
}
|
|
1535
1535
|
|
|
1536
1536
|
continue $sm;
|
|
1537
1537
|
case 11:
|
|
1538
|
-
return subtract(this.
|
|
1538
|
+
return subtract(this.r2u_1, this.s2u_1);
|
|
1539
1539
|
case 12:
|
|
1540
1540
|
throw this.l9_1;
|
|
1541
1541
|
}
|
|
@@ -1552,8 +1552,8 @@
|
|
|
1552
1552
|
};
|
|
1553
1553
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1554
1554
|
CoroutineImpl.call(this, resultContinuation);
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1555
|
+
this.c2v_1 = _this__u8e3s4;
|
|
1556
|
+
this.d2v_1 = max;
|
|
1557
1557
|
}
|
|
1558
1558
|
protoOf($discardCOROUTINE$).q9 = function () {
|
|
1559
1559
|
var suspendResult = this.k9_1;
|
|
@@ -1563,18 +1563,18 @@
|
|
|
1563
1563
|
switch (tmp) {
|
|
1564
1564
|
case 0:
|
|
1565
1565
|
this.j9_1 = 5;
|
|
1566
|
-
this.
|
|
1566
|
+
this.e2v_1 = this.d2v_1;
|
|
1567
1567
|
this.i9_1 = 1;
|
|
1568
1568
|
continue $sm;
|
|
1569
1569
|
case 1:
|
|
1570
|
-
if (!(this.
|
|
1570
|
+
if (!(this.e2v_1 > 0n && !this.c2v_1.u2q())) {
|
|
1571
1571
|
this.i9_1 = 4;
|
|
1572
1572
|
continue $sm;
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
|
-
if (get_availableForRead(this.
|
|
1575
|
+
if (get_availableForRead(this.c2v_1) === 0) {
|
|
1576
1576
|
this.i9_1 = 2;
|
|
1577
|
-
suspendResult = this.
|
|
1577
|
+
suspendResult = this.c2v_1.w2q(VOID, this);
|
|
1578
1578
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1579
1579
|
return suspendResult;
|
|
1580
1580
|
}
|
|
@@ -1588,15 +1588,15 @@
|
|
|
1588
1588
|
this.i9_1 = 3;
|
|
1589
1589
|
continue $sm;
|
|
1590
1590
|
case 3:
|
|
1591
|
-
var tmp0 = this.
|
|
1592
|
-
var b = get_remaining(this.
|
|
1591
|
+
var tmp0 = this.e2v_1;
|
|
1592
|
+
var b = get_remaining(this.c2v_1.n2q());
|
|
1593
1593
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1594
|
-
discard_0(this.
|
|
1595
|
-
this.
|
|
1594
|
+
discard_0(this.c2v_1.n2q(), count);
|
|
1595
|
+
this.e2v_1 = subtract(this.e2v_1, count);
|
|
1596
1596
|
this.i9_1 = 1;
|
|
1597
1597
|
continue $sm;
|
|
1598
1598
|
case 4:
|
|
1599
|
-
return subtract(this.
|
|
1599
|
+
return subtract(this.d2v_1, this.e2v_1);
|
|
1600
1600
|
case 5:
|
|
1601
1601
|
throw this.l9_1;
|
|
1602
1602
|
}
|
|
@@ -1613,8 +1613,8 @@
|
|
|
1613
1613
|
};
|
|
1614
1614
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
|
|
1615
1615
|
CoroutineImpl.call(this, resultContinuation);
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1616
|
+
this.n2v_1 = _this__u8e3s4;
|
|
1617
|
+
this.o2v_1 = channel;
|
|
1618
1618
|
}
|
|
1619
1619
|
protoOf($copyToCOROUTINE$_0).q9 = function () {
|
|
1620
1620
|
var suspendResult = this.k9_1;
|
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
switch (tmp) {
|
|
1625
1625
|
case 0:
|
|
1626
1626
|
this.j9_1 = 11;
|
|
1627
|
-
this.
|
|
1627
|
+
this.p2v_1 = 0n;
|
|
1628
1628
|
this.i9_1 = 1;
|
|
1629
1629
|
continue $sm;
|
|
1630
1630
|
case 1:
|
|
@@ -1633,14 +1633,14 @@
|
|
|
1633
1633
|
this.i9_1 = 2;
|
|
1634
1634
|
continue $sm;
|
|
1635
1635
|
case 2:
|
|
1636
|
-
if (!!this.
|
|
1636
|
+
if (!!this.n2v_1.u2q()) {
|
|
1637
1637
|
this.i9_1 = 5;
|
|
1638
1638
|
continue $sm;
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
|
-
this.
|
|
1641
|
+
this.p2v_1 = add(this.p2v_1, this.n2v_1.n2q().p2m(this.o2v_1.q2q()));
|
|
1642
1642
|
this.i9_1 = 3;
|
|
1643
|
-
suspendResult = this.
|
|
1643
|
+
suspendResult = this.o2v_1.l2q(this);
|
|
1644
1644
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1645
1645
|
return suspendResult;
|
|
1646
1646
|
}
|
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
continue $sm;
|
|
1649
1649
|
case 3:
|
|
1650
1650
|
this.i9_1 = 4;
|
|
1651
|
-
suspendResult = this.
|
|
1651
|
+
suspendResult = this.n2v_1.w2q(VOID, this);
|
|
1652
1652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1653
1653
|
return suspendResult;
|
|
1654
1654
|
}
|
|
@@ -1666,8 +1666,8 @@
|
|
|
1666
1666
|
var tmp_0 = this.l9_1;
|
|
1667
1667
|
if (tmp_0 instanceof Error) {
|
|
1668
1668
|
var cause = this.l9_1;
|
|
1669
|
-
this.
|
|
1670
|
-
close_0(this.
|
|
1669
|
+
this.n2v_1.y2q(cause);
|
|
1670
|
+
close_0(this.o2v_1, cause);
|
|
1671
1671
|
throw cause;
|
|
1672
1672
|
} else {
|
|
1673
1673
|
throw this.l9_1;
|
|
@@ -1675,27 +1675,27 @@
|
|
|
1675
1675
|
|
|
1676
1676
|
case 7:
|
|
1677
1677
|
this.j9_1 = 11;
|
|
1678
|
-
this.
|
|
1678
|
+
this.q2v_1 = this.l9_1;
|
|
1679
1679
|
this.i9_1 = 8;
|
|
1680
|
-
suspendResult = this.
|
|
1680
|
+
suspendResult = this.o2v_1.l2q(this);
|
|
1681
1681
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1682
1682
|
return suspendResult;
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
1685
|
continue $sm;
|
|
1686
1686
|
case 8:
|
|
1687
|
-
throw this.
|
|
1687
|
+
throw this.q2v_1;
|
|
1688
1688
|
case 9:
|
|
1689
1689
|
this.j9_1 = 11;
|
|
1690
1690
|
this.i9_1 = 10;
|
|
1691
|
-
suspendResult = this.
|
|
1691
|
+
suspendResult = this.o2v_1.l2q(this);
|
|
1692
1692
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1693
1693
|
return suspendResult;
|
|
1694
1694
|
}
|
|
1695
1695
|
|
|
1696
1696
|
continue $sm;
|
|
1697
1697
|
case 10:
|
|
1698
|
-
return this.
|
|
1698
|
+
return this.p2v_1;
|
|
1699
1699
|
case 11:
|
|
1700
1700
|
throw this.l9_1;
|
|
1701
1701
|
}
|
|
@@ -1712,8 +1712,8 @@
|
|
|
1712
1712
|
};
|
|
1713
1713
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1714
1714
|
CoroutineImpl.call(this, resultContinuation);
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1715
|
+
this.z2v_1 = _this__u8e3s4;
|
|
1716
|
+
this.a2w_1 = byteString;
|
|
1717
1717
|
}
|
|
1718
1718
|
protoOf($skipIfFoundCOROUTINE$).q9 = function () {
|
|
1719
1719
|
var suspendResult = this.k9_1;
|
|
@@ -1724,7 +1724,7 @@
|
|
|
1724
1724
|
case 0:
|
|
1725
1725
|
this.j9_1 = 4;
|
|
1726
1726
|
this.i9_1 = 1;
|
|
1727
|
-
suspendResult = peek(this.
|
|
1727
|
+
suspendResult = peek(this.z2v_1, this.a2w_1.g1(), this);
|
|
1728
1728
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1729
1729
|
return suspendResult;
|
|
1730
1730
|
}
|
|
@@ -1732,9 +1732,9 @@
|
|
|
1732
1732
|
continue $sm;
|
|
1733
1733
|
case 1:
|
|
1734
1734
|
var ARGUMENT = suspendResult;
|
|
1735
|
-
if (equals(ARGUMENT, this.
|
|
1735
|
+
if (equals(ARGUMENT, this.a2w_1)) {
|
|
1736
1736
|
this.i9_1 = 3;
|
|
1737
|
-
suspendResult = discard(this.
|
|
1737
|
+
suspendResult = discard(this.z2v_1, fromInt(this.a2w_1.g1()), this);
|
|
1738
1738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1739
1739
|
return suspendResult;
|
|
1740
1740
|
}
|
|
@@ -1764,8 +1764,8 @@
|
|
|
1764
1764
|
};
|
|
1765
1765
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1766
1766
|
CoroutineImpl.call(this, resultContinuation);
|
|
1767
|
-
this.
|
|
1768
|
-
this.
|
|
1767
|
+
this.j2w_1 = _this__u8e3s4;
|
|
1768
|
+
this.k2w_1 = packet;
|
|
1769
1769
|
}
|
|
1770
1770
|
protoOf($readPacketCOROUTINE$).q9 = function () {
|
|
1771
1771
|
var suspendResult = this.k9_1;
|
|
@@ -1775,18 +1775,18 @@
|
|
|
1775
1775
|
switch (tmp) {
|
|
1776
1776
|
case 0:
|
|
1777
1777
|
this.j9_1 = 6;
|
|
1778
|
-
this.
|
|
1778
|
+
this.l2w_1 = new Buffer();
|
|
1779
1779
|
this.i9_1 = 1;
|
|
1780
1780
|
continue $sm;
|
|
1781
1781
|
case 1:
|
|
1782
|
-
if (!(this.
|
|
1782
|
+
if (!(this.l2w_1.g1() < fromInt(this.k2w_1))) {
|
|
1783
1783
|
this.i9_1 = 5;
|
|
1784
1784
|
continue $sm;
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
|
-
if (this.
|
|
1787
|
+
if (this.j2w_1.n2q().m2l()) {
|
|
1788
1788
|
this.i9_1 = 2;
|
|
1789
|
-
suspendResult = this.
|
|
1789
|
+
suspendResult = this.j2w_1.w2q(VOID, this);
|
|
1790
1790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1791
1791
|
return suspendResult;
|
|
1792
1792
|
}
|
|
@@ -1800,7 +1800,7 @@
|
|
|
1800
1800
|
this.i9_1 = 3;
|
|
1801
1801
|
continue $sm;
|
|
1802
1802
|
case 3:
|
|
1803
|
-
if (this.
|
|
1803
|
+
if (this.j2w_1.u2q()) {
|
|
1804
1804
|
this.i9_1 = 5;
|
|
1805
1805
|
continue $sm;
|
|
1806
1806
|
} else {
|
|
@@ -1809,20 +1809,20 @@
|
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
1811
|
case 4:
|
|
1812
|
-
if (get_remaining(this.
|
|
1813
|
-
this.
|
|
1812
|
+
if (get_remaining(this.j2w_1.n2q()) > subtract(numberToLong(this.k2w_1), this.l2w_1.g1())) {
|
|
1813
|
+
this.j2w_1.n2q().o2m(this.l2w_1, subtract(numberToLong(this.k2w_1), this.l2w_1.g1()));
|
|
1814
1814
|
} else {
|
|
1815
|
-
this.
|
|
1815
|
+
this.j2w_1.n2q().p2m(this.l2w_1);
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
1818
|
this.i9_1 = 1;
|
|
1819
1819
|
continue $sm;
|
|
1820
1820
|
case 5:
|
|
1821
|
-
if (this.
|
|
1822
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1821
|
+
if (this.l2w_1.g1() < fromInt(this.k2w_1)) {
|
|
1822
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.k2w_1 + ' bytes but only ' + this.l2w_1.g1().toString() + ' available');
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
1825
|
-
return this.
|
|
1825
|
+
return this.l2w_1;
|
|
1826
1826
|
case 6:
|
|
1827
1827
|
throw this.l9_1;
|
|
1828
1828
|
}
|
|
@@ -1839,8 +1839,8 @@
|
|
|
1839
1839
|
};
|
|
1840
1840
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1841
1841
|
CoroutineImpl.call(this, resultContinuation);
|
|
1842
|
-
this.
|
|
1843
|
-
this.
|
|
1842
|
+
this.u2w_1 = _this__u8e3s4;
|
|
1843
|
+
this.v2w_1 = max;
|
|
1844
1844
|
}
|
|
1845
1845
|
protoOf($readRemainingCOROUTINE$_0).q9 = function () {
|
|
1846
1846
|
var suspendResult = this.k9_1;
|
|
@@ -1850,26 +1850,26 @@
|
|
|
1850
1850
|
switch (tmp) {
|
|
1851
1851
|
case 0:
|
|
1852
1852
|
this.j9_1 = 4;
|
|
1853
|
-
this.
|
|
1854
|
-
this.
|
|
1853
|
+
this.w2w_1 = BytePacketBuilder();
|
|
1854
|
+
this.x2w_1 = this.v2w_1;
|
|
1855
1855
|
this.i9_1 = 1;
|
|
1856
1856
|
continue $sm;
|
|
1857
1857
|
case 1:
|
|
1858
|
-
if (!(!this.
|
|
1858
|
+
if (!(!this.u2w_1.u2q() && this.x2w_1 > 0n)) {
|
|
1859
1859
|
this.i9_1 = 3;
|
|
1860
1860
|
continue $sm;
|
|
1861
1861
|
}
|
|
1862
1862
|
|
|
1863
|
-
if (this.
|
|
1864
|
-
this.
|
|
1865
|
-
this.
|
|
1863
|
+
if (this.x2w_1 >= get_remaining(this.u2w_1.n2q())) {
|
|
1864
|
+
this.x2w_1 = subtract(this.x2w_1, get_remaining(this.u2w_1.n2q()));
|
|
1865
|
+
this.u2w_1.n2q().p2m(this.w2w_1);
|
|
1866
1866
|
} else {
|
|
1867
|
-
this.
|
|
1868
|
-
this.
|
|
1867
|
+
this.u2w_1.n2q().o2m(this.w2w_1, this.x2w_1);
|
|
1868
|
+
this.x2w_1 = 0n;
|
|
1869
1869
|
}
|
|
1870
1870
|
|
|
1871
1871
|
this.i9_1 = 2;
|
|
1872
|
-
suspendResult = this.
|
|
1872
|
+
suspendResult = this.u2w_1.w2q(VOID, this);
|
|
1873
1873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1874
1874
|
return suspendResult;
|
|
1875
1875
|
}
|
|
@@ -1879,7 +1879,7 @@
|
|
|
1879
1879
|
this.i9_1 = 1;
|
|
1880
1880
|
continue $sm;
|
|
1881
1881
|
case 3:
|
|
1882
|
-
return this.
|
|
1882
|
+
return this.w2w_1.l2l();
|
|
1883
1883
|
case 4:
|
|
1884
1884
|
throw this.l9_1;
|
|
1885
1885
|
}
|
|
@@ -1896,8 +1896,8 @@
|
|
|
1896
1896
|
};
|
|
1897
1897
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1898
1898
|
CoroutineImpl.call(this, resultContinuation);
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1899
|
+
this.g2x_1 = _this__u8e3s4;
|
|
1900
|
+
this.h2x_1 = count;
|
|
1901
1901
|
}
|
|
1902
1902
|
protoOf($peekCOROUTINE$).q9 = function () {
|
|
1903
1903
|
var suspendResult = this.k9_1;
|
|
@@ -1907,10 +1907,10 @@
|
|
|
1907
1907
|
switch (tmp) {
|
|
1908
1908
|
case 0:
|
|
1909
1909
|
this.j9_1 = 3;
|
|
1910
|
-
if (this.
|
|
1910
|
+
if (this.g2x_1.u2q())
|
|
1911
1911
|
return null;
|
|
1912
1912
|
this.i9_1 = 1;
|
|
1913
|
-
suspendResult = this.
|
|
1913
|
+
suspendResult = this.g2x_1.v2q(this.h2x_1, this);
|
|
1914
1914
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1915
1915
|
return suspendResult;
|
|
1916
1916
|
}
|
|
@@ -1925,7 +1925,7 @@
|
|
|
1925
1925
|
}
|
|
1926
1926
|
|
|
1927
1927
|
case 2:
|
|
1928
|
-
return readByteString(this.
|
|
1928
|
+
return readByteString(this.g2x_1.n2q().q2m(), this.h2x_1);
|
|
1929
1929
|
case 3:
|
|
1930
1930
|
throw this.l9_1;
|
|
1931
1931
|
}
|
|
@@ -1942,11 +1942,11 @@
|
|
|
1942
1942
|
};
|
|
1943
1943
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1944
1944
|
CoroutineImpl.call(this, resultContinuation);
|
|
1945
|
-
this.
|
|
1946
|
-
this.
|
|
1947
|
-
this.
|
|
1948
|
-
this.
|
|
1949
|
-
this.
|
|
1945
|
+
this.q2x_1 = _this__u8e3s4;
|
|
1946
|
+
this.r2x_1 = out;
|
|
1947
|
+
this.s2x_1 = limit;
|
|
1948
|
+
this.t2x_1 = lenientLineEnding;
|
|
1949
|
+
this.u2x_1 = throwOnIncompleteLine;
|
|
1950
1950
|
}
|
|
1951
1951
|
protoOf($internalReadLineToCOROUTINE$).q9 = function () {
|
|
1952
1952
|
var suspendResult = this.k9_1;
|
|
@@ -1956,10 +1956,10 @@
|
|
|
1956
1956
|
switch (tmp) {
|
|
1957
1957
|
case 0:
|
|
1958
1958
|
this.j9_1 = 18;
|
|
1959
|
-
this.
|
|
1960
|
-
if (this.
|
|
1959
|
+
this.w2x_1 = this.q2x_1.n2q();
|
|
1960
|
+
if (this.w2x_1.m2l()) {
|
|
1961
1961
|
this.i9_1 = 1;
|
|
1962
|
-
suspendResult = this.
|
|
1962
|
+
suspendResult = this.q2x_1.w2q(VOID, this);
|
|
1963
1963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1964
1964
|
return suspendResult;
|
|
1965
1965
|
}
|
|
@@ -1973,94 +1973,94 @@
|
|
|
1973
1973
|
this.i9_1 = 2;
|
|
1974
1974
|
continue $sm;
|
|
1975
1975
|
case 2:
|
|
1976
|
-
if (this.
|
|
1976
|
+
if (this.q2x_1.u2q())
|
|
1977
1977
|
return -1n;
|
|
1978
|
-
this.
|
|
1978
|
+
this.v2x_1 = {_v: 0n};
|
|
1979
1979
|
this.i9_1 = 3;
|
|
1980
1980
|
continue $sm;
|
|
1981
1981
|
case 3:
|
|
1982
|
-
if (!(this.
|
|
1982
|
+
if (!(this.v2x_1._v < this.s2x_1 && !this.q2x_1.u2q())) {
|
|
1983
1983
|
this.i9_1 = 10;
|
|
1984
1984
|
continue $sm;
|
|
1985
1985
|
}
|
|
1986
1986
|
|
|
1987
|
-
var limitLeft = subtract(this.
|
|
1988
|
-
var lfIndex = indexOf(this.
|
|
1989
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1987
|
+
var limitLeft = subtract(this.s2x_1, this.v2x_1._v);
|
|
1988
|
+
var lfIndex = indexOf(this.w2x_1, 10, VOID, limitLeft);
|
|
1989
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.w2x_1, this.t2x_1, lfIndex, limitLeft);
|
|
1990
1990
|
if (crIndex >= 0n) {
|
|
1991
|
-
internalReadLineTo$transferString(this.
|
|
1992
|
-
discard_0(this.
|
|
1993
|
-
return this.
|
|
1991
|
+
internalReadLineTo$transferString(this.w2x_1, this.r2x_1, this.v2x_1, crIndex);
|
|
1992
|
+
discard_0(this.w2x_1, 1n);
|
|
1993
|
+
return this.v2x_1._v;
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
1996
|
if (lfIndex === 0n) {
|
|
1997
|
-
discard_0(this.
|
|
1998
|
-
return this.
|
|
1997
|
+
discard_0(this.w2x_1, 1n);
|
|
1998
|
+
return this.v2x_1._v;
|
|
1999
1999
|
}
|
|
2000
2000
|
|
|
2001
2001
|
if (lfIndex > 0n) {
|
|
2002
2002
|
var tmp_0;
|
|
2003
|
-
var tmp_1 = this.
|
|
2004
|
-
if (tmp_1.
|
|
2003
|
+
var tmp_1 = this.w2x_1.l2l();
|
|
2004
|
+
if (tmp_1.h2m(subtract(lfIndex, fromInt(1))) === 13) {
|
|
2005
2005
|
tmp_0 = 1n;
|
|
2006
2006
|
} else {
|
|
2007
2007
|
tmp_0 = 0n;
|
|
2008
2008
|
}
|
|
2009
2009
|
var isCrlf = tmp_0;
|
|
2010
|
-
internalReadLineTo$transferString(this.
|
|
2011
|
-
discard_0(this.
|
|
2012
|
-
return this.
|
|
2010
|
+
internalReadLineTo$transferString(this.w2x_1, this.r2x_1, this.v2x_1, subtract(lfIndex, isCrlf));
|
|
2011
|
+
discard_0(this.w2x_1, add(numberToLong(1), isCrlf));
|
|
2012
|
+
return this.v2x_1._v;
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
|
-
var b = get_remaining(this.
|
|
2015
|
+
var b = get_remaining(this.w2x_1);
|
|
2016
2016
|
var count = limitLeft <= b ? limitLeft : b;
|
|
2017
|
-
var tmp_2 = this.
|
|
2018
|
-
if (tmp_2.
|
|
2019
|
-
internalReadLineTo$transferString(this.
|
|
2017
|
+
var tmp_2 = this.w2x_1.l2l();
|
|
2018
|
+
if (tmp_2.h2m(subtract(count, fromInt(1))) === 13) {
|
|
2019
|
+
internalReadLineTo$transferString(this.w2x_1, this.r2x_1, this.v2x_1, subtract(count, fromInt(1)));
|
|
2020
2020
|
this.i9_1 = 4;
|
|
2021
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2021
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.w2x_1, this.q2x_1, this.t2x_1, this);
|
|
2022
2022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2023
2023
|
return suspendResult;
|
|
2024
2024
|
}
|
|
2025
2025
|
continue $sm;
|
|
2026
2026
|
} else {
|
|
2027
|
-
internalReadLineTo$transferString(this.
|
|
2027
|
+
internalReadLineTo$transferString(this.w2x_1, this.r2x_1, this.v2x_1, count);
|
|
2028
2028
|
this.i9_1 = 6;
|
|
2029
2029
|
continue $sm;
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
2032
2032
|
case 4:
|
|
2033
2033
|
if (suspendResult) {
|
|
2034
|
-
return this.
|
|
2034
|
+
return this.v2x_1._v;
|
|
2035
2035
|
} else {
|
|
2036
2036
|
this.i9_1 = 5;
|
|
2037
2037
|
continue $sm;
|
|
2038
2038
|
}
|
|
2039
2039
|
|
|
2040
2040
|
case 5:
|
|
2041
|
-
internalReadLineTo$transferString(this.
|
|
2041
|
+
internalReadLineTo$transferString(this.w2x_1, this.r2x_1, this.v2x_1, 1n);
|
|
2042
2042
|
this.i9_1 = 6;
|
|
2043
2043
|
continue $sm;
|
|
2044
2044
|
case 6:
|
|
2045
|
-
if (this.
|
|
2045
|
+
if (this.v2x_1._v < this.s2x_1 && get_remaining(this.w2x_1) === 0n) {
|
|
2046
2046
|
this.i9_1 = 7;
|
|
2047
|
-
suspendResult = this.
|
|
2047
|
+
suspendResult = this.q2x_1.w2q(VOID, this);
|
|
2048
2048
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2049
2049
|
return suspendResult;
|
|
2050
2050
|
}
|
|
2051
2051
|
continue $sm;
|
|
2052
2052
|
} else {
|
|
2053
|
-
this.
|
|
2053
|
+
this.y2x_1 = false;
|
|
2054
2054
|
this.i9_1 = 8;
|
|
2055
2055
|
continue $sm;
|
|
2056
2056
|
}
|
|
2057
2057
|
|
|
2058
2058
|
case 7:
|
|
2059
|
-
this.
|
|
2059
|
+
this.y2x_1 = !suspendResult;
|
|
2060
2060
|
this.i9_1 = 8;
|
|
2061
2061
|
continue $sm;
|
|
2062
2062
|
case 8:
|
|
2063
|
-
if (this.
|
|
2063
|
+
if (this.y2x_1) {
|
|
2064
2064
|
this.i9_1 = 10;
|
|
2065
2065
|
continue $sm;
|
|
2066
2066
|
} else {
|
|
@@ -2072,25 +2072,25 @@
|
|
|
2072
2072
|
this.i9_1 = 3;
|
|
2073
2073
|
continue $sm;
|
|
2074
2074
|
case 10:
|
|
2075
|
-
if (this.
|
|
2075
|
+
if (this.v2x_1._v === 0n && this.q2x_1.u2q())
|
|
2076
2076
|
return -1n;
|
|
2077
|
-
if (!(this.
|
|
2078
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2077
|
+
if (!(this.v2x_1._v <= this.s2x_1)) {
|
|
2078
|
+
var message = 'Consumed bytes exceed the limit: ' + this.v2x_1._v.toString() + ' > ' + this.s2x_1.toString() + ". It's an implementation bug, please report it.";
|
|
2079
2079
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2080
2080
|
}
|
|
2081
2081
|
|
|
2082
|
-
if (this.
|
|
2083
|
-
if (this.
|
|
2082
|
+
if (this.v2x_1._v === this.s2x_1) {
|
|
2083
|
+
if (this.s2x_1 === 9223372036854775807n)
|
|
2084
2084
|
throw new TooLongLineException('Max line length exceeded');
|
|
2085
|
-
if (get_remaining(this.
|
|
2085
|
+
if (get_remaining(this.w2x_1) === 0n) {
|
|
2086
2086
|
this.i9_1 = 12;
|
|
2087
|
-
suspendResult = this.
|
|
2087
|
+
suspendResult = this.q2x_1.w2q(VOID, this);
|
|
2088
2088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2089
2089
|
return suspendResult;
|
|
2090
2090
|
}
|
|
2091
2091
|
continue $sm;
|
|
2092
2092
|
} else {
|
|
2093
|
-
this.
|
|
2093
|
+
this.x2x_1 = false;
|
|
2094
2094
|
this.i9_1 = 13;
|
|
2095
2095
|
continue $sm;
|
|
2096
2096
|
}
|
|
@@ -2100,18 +2100,18 @@
|
|
|
2100
2100
|
}
|
|
2101
2101
|
|
|
2102
2102
|
case 11:
|
|
2103
|
-
if (this.
|
|
2104
|
-
throwEndOfStreamException(this.
|
|
2103
|
+
if (this.u2x_1) {
|
|
2104
|
+
throwEndOfStreamException(this.v2x_1._v);
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
|
-
return this.
|
|
2107
|
+
return this.v2x_1._v;
|
|
2108
2108
|
case 12:
|
|
2109
|
-
this.
|
|
2109
|
+
this.x2x_1 = !suspendResult;
|
|
2110
2110
|
this.i9_1 = 13;
|
|
2111
2111
|
continue $sm;
|
|
2112
2112
|
case 13:
|
|
2113
|
-
if (this.
|
|
2114
|
-
throwEndOfStreamException(this.
|
|
2113
|
+
if (this.x2x_1) {
|
|
2114
|
+
throwEndOfStreamException(this.v2x_1._v);
|
|
2115
2115
|
} else {
|
|
2116
2116
|
this.i9_1 = 14;
|
|
2117
2117
|
continue $sm;
|
|
@@ -2119,14 +2119,14 @@
|
|
|
2119
2119
|
|
|
2120
2120
|
break;
|
|
2121
2121
|
case 14:
|
|
2122
|
-
var tmp0_subject = this.
|
|
2122
|
+
var tmp0_subject = this.w2x_1.l2l().h2m(0n);
|
|
2123
2123
|
if (tmp0_subject === 10) {
|
|
2124
|
-
discard_0(this.
|
|
2125
|
-
return this.
|
|
2124
|
+
discard_0(this.w2x_1, 1n);
|
|
2125
|
+
return this.v2x_1._v;
|
|
2126
2126
|
} else {
|
|
2127
2127
|
if (tmp0_subject === 13) {
|
|
2128
2128
|
this.i9_1 = 15;
|
|
2129
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2129
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.w2x_1, this.q2x_1, this.t2x_1, this);
|
|
2130
2130
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2131
2131
|
return suspendResult;
|
|
2132
2132
|
}
|
|
@@ -2139,7 +2139,7 @@
|
|
|
2139
2139
|
|
|
2140
2140
|
case 15:
|
|
2141
2141
|
if (suspendResult) {
|
|
2142
|
-
return this.
|
|
2142
|
+
return this.v2x_1._v;
|
|
2143
2143
|
} else {
|
|
2144
2144
|
this.i9_1 = 16;
|
|
2145
2145
|
continue $sm;
|
|
@@ -2149,7 +2149,7 @@
|
|
|
2149
2149
|
this.i9_1 = 17;
|
|
2150
2150
|
continue $sm;
|
|
2151
2151
|
case 17:
|
|
2152
|
-
throwTooLongLineException(this.
|
|
2152
|
+
throwTooLongLineException(this.s2x_1);
|
|
2153
2153
|
break;
|
|
2154
2154
|
case 18:
|
|
2155
2155
|
throw this.l9_1;
|
|
@@ -2167,9 +2167,9 @@
|
|
|
2167
2167
|
};
|
|
2168
2168
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2169
2169
|
CoroutineImpl.call(this, resultContinuation);
|
|
2170
|
-
this.
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2170
|
+
this.h2y_1 = _this__u8e3s4;
|
|
2171
|
+
this.i2y_1 = $this_internalReadLineTo;
|
|
2172
|
+
this.j2y_1 = $lenientLineEnding;
|
|
2173
2173
|
}
|
|
2174
2174
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).q9 = function () {
|
|
2175
2175
|
var suspendResult = this.k9_1;
|
|
@@ -2179,13 +2179,13 @@
|
|
|
2179
2179
|
switch (tmp) {
|
|
2180
2180
|
case 0:
|
|
2181
2181
|
this.j9_1 = 5;
|
|
2182
|
-
if (get_remaining(this.
|
|
2183
|
-
this.
|
|
2182
|
+
if (get_remaining(this.h2y_1) >= 2n) {
|
|
2183
|
+
this.l2y_1 = true;
|
|
2184
2184
|
this.i9_1 = 2;
|
|
2185
2185
|
continue $sm;
|
|
2186
2186
|
} else {
|
|
2187
2187
|
this.i9_1 = 1;
|
|
2188
|
-
suspendResult = this.
|
|
2188
|
+
suspendResult = this.i2y_1.v2q(2, this);
|
|
2189
2189
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2190
2190
|
return suspendResult;
|
|
2191
2191
|
}
|
|
@@ -2193,23 +2193,23 @@
|
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
2195
|
case 1:
|
|
2196
|
-
this.
|
|
2196
|
+
this.l2y_1 = suspendResult;
|
|
2197
2197
|
this.i9_1 = 2;
|
|
2198
2198
|
continue $sm;
|
|
2199
2199
|
case 2:
|
|
2200
|
-
if (this.
|
|
2201
|
-
this.
|
|
2200
|
+
if (this.l2y_1) {
|
|
2201
|
+
this.k2y_1 = this.h2y_1.l2l().h2m(1n) === 10;
|
|
2202
2202
|
this.i9_1 = 3;
|
|
2203
2203
|
continue $sm;
|
|
2204
2204
|
} else {
|
|
2205
|
-
this.
|
|
2205
|
+
this.k2y_1 = false;
|
|
2206
2206
|
this.i9_1 = 3;
|
|
2207
2207
|
continue $sm;
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
2210
|
case 3:
|
|
2211
|
-
if (this.
|
|
2212
|
-
discard_0(this.
|
|
2211
|
+
if (this.k2y_1) {
|
|
2212
|
+
discard_0(this.h2y_1, 2n);
|
|
2213
2213
|
return true;
|
|
2214
2214
|
} else {
|
|
2215
2215
|
this.i9_1 = 4;
|
|
@@ -2217,8 +2217,8 @@
|
|
|
2217
2217
|
}
|
|
2218
2218
|
|
|
2219
2219
|
case 4:
|
|
2220
|
-
if (this.
|
|
2221
|
-
discard_0(this.
|
|
2220
|
+
if (this.j2y_1) {
|
|
2221
|
+
discard_0(this.h2y_1, 1n);
|
|
2222
2222
|
return true;
|
|
2223
2223
|
}
|
|
2224
2224
|
|
|
@@ -2247,7 +2247,7 @@
|
|
|
2247
2247
|
}
|
|
2248
2248
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2249
2249
|
CoroutineImpl.call(this, resultContinuation);
|
|
2250
|
-
this.
|
|
2250
|
+
this.u2y_1 = _this__u8e3s4;
|
|
2251
2251
|
}
|
|
2252
2252
|
protoOf($flushIfNeededCOROUTINE$).q9 = function () {
|
|
2253
2253
|
var suspendResult = this.k9_1;
|
|
@@ -2257,10 +2257,10 @@
|
|
|
2257
2257
|
switch (tmp) {
|
|
2258
2258
|
case 0:
|
|
2259
2259
|
this.j9_1 = 3;
|
|
2260
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2261
|
-
if (this.
|
|
2260
|
+
rethrowCloseCauseIfNeeded_1(this.u2y_1);
|
|
2261
|
+
if (this.u2y_1.m2q() || get_size(this.u2y_1.q2q()) >= 1048576) {
|
|
2262
2262
|
this.i9_1 = 1;
|
|
2263
|
-
suspendResult = this.
|
|
2263
|
+
suspendResult = this.u2y_1.l2q(this);
|
|
2264
2264
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2265
2265
|
return suspendResult;
|
|
2266
2266
|
}
|
|
@@ -2297,15 +2297,15 @@
|
|
|
2297
2297
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2298
2298
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2299
2299
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2300
|
-
_this__u8e3s4.
|
|
2300
|
+
_this__u8e3s4.q2q().v2m(value, startIndex, endIndex);
|
|
2301
2301
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2302
2302
|
}
|
|
2303
2303
|
function WriterJob(channel, job) {
|
|
2304
|
-
this.
|
|
2305
|
-
this.
|
|
2304
|
+
this.v2y_1 = channel;
|
|
2305
|
+
this.w2y_1 = job;
|
|
2306
2306
|
}
|
|
2307
|
-
protoOf(WriterJob).
|
|
2308
|
-
return this.
|
|
2307
|
+
protoOf(WriterJob).u1y = function () {
|
|
2308
|
+
return this.w2y_1;
|
|
2309
2309
|
};
|
|
2310
2310
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2311
2311
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2314,22 +2314,22 @@
|
|
|
2314
2314
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2315
2315
|
}
|
|
2316
2316
|
function WriterScope(channel, coroutineContext) {
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2317
|
+
this.x2y_1 = channel;
|
|
2318
|
+
this.y2y_1 = coroutineContext;
|
|
2319
2319
|
}
|
|
2320
|
-
protoOf(WriterScope).
|
|
2321
|
-
return this.
|
|
2320
|
+
protoOf(WriterScope).k1v = function () {
|
|
2321
|
+
return this.y2y_1;
|
|
2322
2322
|
};
|
|
2323
2323
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2324
2324
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2325
|
-
return _this__u8e3s4.
|
|
2325
|
+
return _this__u8e3s4.u1y().m1w(block);
|
|
2326
2326
|
}
|
|
2327
2327
|
function close_0(_this__u8e3s4, cause) {
|
|
2328
2328
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2329
2329
|
if (cause == null) {
|
|
2330
2330
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2331
2331
|
} else {
|
|
2332
|
-
_this__u8e3s4.
|
|
2332
|
+
_this__u8e3s4.y2q(cause);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
2335
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2343,7 +2343,7 @@
|
|
|
2343
2343
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2344
2344
|
// Inline function 'kotlin.apply' call
|
|
2345
2345
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2346
|
-
this_0.
|
|
2346
|
+
this_0.m1w(writer$lambda(channel));
|
|
2347
2347
|
var job = this_0;
|
|
2348
2348
|
return new WriterJob(channel, job);
|
|
2349
2349
|
}
|
|
@@ -2352,14 +2352,14 @@
|
|
|
2352
2352
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2353
2353
|
}
|
|
2354
2354
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2355
|
-
_this__u8e3s4.
|
|
2355
|
+
_this__u8e3s4.q2q().f2n(value);
|
|
2356
2356
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2357
2357
|
}
|
|
2358
2358
|
function NO_CALLBACK$1() {
|
|
2359
|
-
this.
|
|
2359
|
+
this.j2z_1 = EmptyCoroutineContext_instance;
|
|
2360
2360
|
}
|
|
2361
2361
|
protoOf(NO_CALLBACK$1).o9 = function () {
|
|
2362
|
-
return this.
|
|
2362
|
+
return this.j2z_1;
|
|
2363
2363
|
};
|
|
2364
2364
|
protoOf(NO_CALLBACK$1).p9 = function (result) {
|
|
2365
2365
|
return Unit_instance;
|
|
@@ -2368,36 +2368,36 @@
|
|
|
2368
2368
|
return this.p9(result);
|
|
2369
2369
|
};
|
|
2370
2370
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2371
|
-
this.
|
|
2371
|
+
this.k2z_1 = p0;
|
|
2372
2372
|
}
|
|
2373
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2374
|
-
return this.
|
|
2373
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).l2z = function ($completion) {
|
|
2374
|
+
return this.k2z_1.x2q($completion);
|
|
2375
2375
|
};
|
|
2376
2376
|
protoOf(ByteWriteChannel$flushAndClose$ref).za = function ($completion) {
|
|
2377
|
-
return this.
|
|
2377
|
+
return this.l2z($completion);
|
|
2378
2378
|
};
|
|
2379
2379
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2380
2380
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2381
2381
|
var l = function ($completion) {
|
|
2382
|
-
return i.
|
|
2382
|
+
return i.l2z($completion);
|
|
2383
2383
|
};
|
|
2384
2384
|
l.callableName = 'flushAndClose';
|
|
2385
2385
|
l.$arity = 0;
|
|
2386
2386
|
return l;
|
|
2387
2387
|
}
|
|
2388
2388
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2389
|
-
this.
|
|
2390
|
-
this.
|
|
2389
|
+
this.u2z_1 = $block;
|
|
2390
|
+
this.v2z_1 = $channel;
|
|
2391
2391
|
CoroutineImpl.call(this, resultContinuation);
|
|
2392
2392
|
}
|
|
2393
|
-
protoOf(writer$slambda).
|
|
2394
|
-
var tmp = this.
|
|
2393
|
+
protoOf(writer$slambda).d30 = function ($this$launch, $completion) {
|
|
2394
|
+
var tmp = this.e30($this$launch, $completion);
|
|
2395
2395
|
tmp.k9_1 = Unit_instance;
|
|
2396
2396
|
tmp.l9_1 = null;
|
|
2397
2397
|
return tmp.q9();
|
|
2398
2398
|
};
|
|
2399
2399
|
protoOf(writer$slambda).ca = function (p1, $completion) {
|
|
2400
|
-
return this.
|
|
2400
|
+
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2401
2401
|
};
|
|
2402
2402
|
protoOf(writer$slambda).q9 = function () {
|
|
2403
2403
|
var suspendResult = this.k9_1;
|
|
@@ -2407,24 +2407,24 @@
|
|
|
2407
2407
|
switch (tmp) {
|
|
2408
2408
|
case 0:
|
|
2409
2409
|
this.j9_1 = 14;
|
|
2410
|
-
this.
|
|
2410
|
+
this.z2z_1 = Job(get_job(this.w2z_1.k1v()));
|
|
2411
2411
|
this.i9_1 = 1;
|
|
2412
2412
|
continue $sm;
|
|
2413
2413
|
case 1:
|
|
2414
2414
|
this.j9_1 = 4;
|
|
2415
2415
|
this.j9_1 = 3;
|
|
2416
2416
|
this.i9_1 = 2;
|
|
2417
|
-
suspendResult = this.
|
|
2417
|
+
suspendResult = this.u2z_1(new WriterScope(this.v2z_1, this.w2z_1.k1v().qj(this.z2z_1)), this);
|
|
2418
2418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2419
2419
|
return suspendResult;
|
|
2420
2420
|
}
|
|
2421
2421
|
|
|
2422
2422
|
continue $sm;
|
|
2423
2423
|
case 2:
|
|
2424
|
-
this.
|
|
2424
|
+
this.z2z_1.r23();
|
|
2425
2425
|
var tmp_0;
|
|
2426
|
-
if (get_job(this.
|
|
2427
|
-
this.
|
|
2426
|
+
if (get_job(this.w2z_1.k1v()).g1w()) {
|
|
2427
|
+
this.v2z_1.y2q(get_job(this.w2z_1.k1v()).j1w());
|
|
2428
2428
|
tmp_0 = Unit_instance;
|
|
2429
2429
|
}
|
|
2430
2430
|
|
|
@@ -2436,8 +2436,8 @@
|
|
|
2436
2436
|
var tmp_1 = this.l9_1;
|
|
2437
2437
|
if (tmp_1 instanceof Error) {
|
|
2438
2438
|
var cause = this.l9_1;
|
|
2439
|
-
cancel(this.
|
|
2440
|
-
this.
|
|
2439
|
+
cancel(this.z2z_1, 'Exception thrown while writing to channel', cause);
|
|
2440
|
+
this.v2z_1.y2q(cause);
|
|
2441
2441
|
this.j9_1 = 14;
|
|
2442
2442
|
this.i9_1 = 9;
|
|
2443
2443
|
continue $sm;
|
|
@@ -2447,20 +2447,20 @@
|
|
|
2447
2447
|
|
|
2448
2448
|
case 4:
|
|
2449
2449
|
this.j9_1 = 14;
|
|
2450
|
-
this.
|
|
2450
|
+
this.a30_1 = this.l9_1;
|
|
2451
2451
|
this.i9_1 = 5;
|
|
2452
|
-
suspendResult = this.
|
|
2452
|
+
suspendResult = this.z2z_1.q1w(this);
|
|
2453
2453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2454
2454
|
return suspendResult;
|
|
2455
2455
|
}
|
|
2456
2456
|
|
|
2457
2457
|
continue $sm;
|
|
2458
2458
|
case 5:
|
|
2459
|
-
this.
|
|
2459
|
+
this.w2z_1;
|
|
2460
2460
|
this.j9_1 = 7;
|
|
2461
|
-
this.
|
|
2461
|
+
this.c30_1 = Companion_instance;
|
|
2462
2462
|
this.i9_1 = 6;
|
|
2463
|
-
suspendResult = this.
|
|
2463
|
+
suspendResult = this.v2z_1.x2q(this);
|
|
2464
2464
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2465
2465
|
return suspendResult;
|
|
2466
2466
|
}
|
|
@@ -2468,8 +2468,8 @@
|
|
|
2468
2468
|
continue $sm;
|
|
2469
2469
|
case 6:
|
|
2470
2470
|
var tmp_2 = this;
|
|
2471
|
-
this.
|
|
2472
|
-
tmp_2.
|
|
2471
|
+
this.c30_1;
|
|
2472
|
+
tmp_2.b30_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2473
2473
|
this.j9_1 = 14;
|
|
2474
2474
|
this.i9_1 = 8;
|
|
2475
2475
|
continue $sm;
|
|
@@ -2479,7 +2479,7 @@
|
|
|
2479
2479
|
if (tmp_3 instanceof Error) {
|
|
2480
2480
|
var e = this.l9_1;
|
|
2481
2481
|
var tmp_4 = this;
|
|
2482
|
-
tmp_4.
|
|
2482
|
+
tmp_4.b30_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2483
2483
|
this.i9_1 = 8;
|
|
2484
2484
|
continue $sm;
|
|
2485
2485
|
} else {
|
|
@@ -2488,22 +2488,22 @@
|
|
|
2488
2488
|
|
|
2489
2489
|
case 8:
|
|
2490
2490
|
this.j9_1 = 14;
|
|
2491
|
-
throw this.
|
|
2491
|
+
throw this.a30_1;
|
|
2492
2492
|
case 9:
|
|
2493
2493
|
this.j9_1 = 14;
|
|
2494
2494
|
this.i9_1 = 10;
|
|
2495
|
-
suspendResult = this.
|
|
2495
|
+
suspendResult = this.z2z_1.q1w(this);
|
|
2496
2496
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2497
2497
|
return suspendResult;
|
|
2498
2498
|
}
|
|
2499
2499
|
|
|
2500
2500
|
continue $sm;
|
|
2501
2501
|
case 10:
|
|
2502
|
-
this.
|
|
2502
|
+
this.w2z_1;
|
|
2503
2503
|
this.j9_1 = 12;
|
|
2504
|
-
this.
|
|
2504
|
+
this.y2z_1 = Companion_instance;
|
|
2505
2505
|
this.i9_1 = 11;
|
|
2506
|
-
suspendResult = this.
|
|
2506
|
+
suspendResult = this.v2z_1.x2q(this);
|
|
2507
2507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2508
2508
|
return suspendResult;
|
|
2509
2509
|
}
|
|
@@ -2511,8 +2511,8 @@
|
|
|
2511
2511
|
continue $sm;
|
|
2512
2512
|
case 11:
|
|
2513
2513
|
var tmp_5 = this;
|
|
2514
|
-
this.
|
|
2515
|
-
tmp_5.
|
|
2514
|
+
this.y2z_1;
|
|
2515
|
+
tmp_5.x2z_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2516
2516
|
this.j9_1 = 14;
|
|
2517
2517
|
this.i9_1 = 13;
|
|
2518
2518
|
continue $sm;
|
|
@@ -2522,7 +2522,7 @@
|
|
|
2522
2522
|
if (tmp_6 instanceof Error) {
|
|
2523
2523
|
var e_0 = this.l9_1;
|
|
2524
2524
|
var tmp_7 = this;
|
|
2525
|
-
tmp_7.
|
|
2525
|
+
tmp_7.x2z_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2526
2526
|
this.i9_1 = 13;
|
|
2527
2527
|
continue $sm;
|
|
2528
2528
|
} else {
|
|
@@ -2546,15 +2546,15 @@
|
|
|
2546
2546
|
}
|
|
2547
2547
|
while (true);
|
|
2548
2548
|
};
|
|
2549
|
-
protoOf(writer$slambda).
|
|
2550
|
-
var i = new writer$slambda(this.
|
|
2551
|
-
i.
|
|
2549
|
+
protoOf(writer$slambda).e30 = function ($this$launch, completion) {
|
|
2550
|
+
var i = new writer$slambda(this.u2z_1, this.v2z_1, completion);
|
|
2551
|
+
i.w2z_1 = $this$launch;
|
|
2552
2552
|
return i;
|
|
2553
2553
|
};
|
|
2554
2554
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2555
2555
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2556
2556
|
var l = function ($this$launch, $completion) {
|
|
2557
|
-
return i.
|
|
2557
|
+
return i.d30($this$launch, $completion);
|
|
2558
2558
|
};
|
|
2559
2559
|
l.$arity = 1;
|
|
2560
2560
|
return l;
|
|
@@ -2562,8 +2562,8 @@
|
|
|
2562
2562
|
function writer$lambda($channel) {
|
|
2563
2563
|
return function (it) {
|
|
2564
2564
|
var tmp;
|
|
2565
|
-
if (!(it == null) && !$channel.
|
|
2566
|
-
$channel.
|
|
2565
|
+
if (!(it == null) && !$channel.r2q()) {
|
|
2566
|
+
$channel.y2q(it);
|
|
2567
2567
|
tmp = Unit_instance;
|
|
2568
2568
|
}
|
|
2569
2569
|
return Unit_instance;
|
|
@@ -2571,8 +2571,8 @@
|
|
|
2571
2571
|
}
|
|
2572
2572
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2573
2573
|
CoroutineImpl.call(this, resultContinuation);
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2574
|
+
this.h2z_1 = _this__u8e3s4;
|
|
2575
|
+
this.i2z_1 = source;
|
|
2576
2576
|
}
|
|
2577
2577
|
protoOf($writePacketCOROUTINE$).q9 = function () {
|
|
2578
2578
|
var suspendResult = this.k9_1;
|
|
@@ -2585,14 +2585,14 @@
|
|
|
2585
2585
|
this.i9_1 = 1;
|
|
2586
2586
|
continue $sm;
|
|
2587
2587
|
case 1:
|
|
2588
|
-
if (!!this.
|
|
2588
|
+
if (!!this.i2z_1.m2l()) {
|
|
2589
2589
|
this.i9_1 = 3;
|
|
2590
2590
|
continue $sm;
|
|
2591
2591
|
}
|
|
2592
2592
|
|
|
2593
|
-
this.
|
|
2593
|
+
this.h2z_1.q2q().z2m(this.i2z_1, get_remaining(this.i2z_1));
|
|
2594
2594
|
this.i9_1 = 2;
|
|
2595
|
-
suspendResult = flushIfNeeded(this.
|
|
2595
|
+
suspendResult = flushIfNeeded(this.h2z_1, this);
|
|
2596
2596
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2597
2597
|
return suspendResult;
|
|
2598
2598
|
}
|
|
@@ -2637,27 +2637,27 @@
|
|
|
2637
2637
|
return l;
|
|
2638
2638
|
}
|
|
2639
2639
|
function CloseToken(origin) {
|
|
2640
|
-
this.
|
|
2640
|
+
this.o2q_1 = origin;
|
|
2641
2641
|
}
|
|
2642
|
-
protoOf(CloseToken).
|
|
2643
|
-
var tmp0_subject = this.
|
|
2642
|
+
protoOf(CloseToken).f30 = function (wrap) {
|
|
2643
|
+
var tmp0_subject = this.o2q_1;
|
|
2644
2644
|
var tmp;
|
|
2645
2645
|
if (tmp0_subject == null) {
|
|
2646
2646
|
tmp = null;
|
|
2647
2647
|
} else {
|
|
2648
2648
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2649
|
-
tmp = this.
|
|
2649
|
+
tmp = this.o2q_1.a24();
|
|
2650
2650
|
} else {
|
|
2651
2651
|
if (tmp0_subject instanceof CancellationException) {
|
|
2652
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2652
|
+
tmp = CancellationException_init_$Create$(this.o2q_1.message, this.o2q_1);
|
|
2653
2653
|
} else {
|
|
2654
|
-
tmp = wrap(this.
|
|
2654
|
+
tmp = wrap(this.o2q_1);
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
2658
|
return tmp;
|
|
2659
2659
|
};
|
|
2660
|
-
protoOf(CloseToken).
|
|
2660
|
+
protoOf(CloseToken).t2q = function (wrap, $super) {
|
|
2661
2661
|
var tmp;
|
|
2662
2662
|
if (wrap === VOID) {
|
|
2663
2663
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2665,10 +2665,10 @@
|
|
|
2665
2665
|
tmp = wrap;
|
|
2666
2666
|
}
|
|
2667
2667
|
wrap = tmp;
|
|
2668
|
-
return $super === VOID ? this.
|
|
2668
|
+
return $super === VOID ? this.f30(wrap) : $super.f30.call(this, wrap);
|
|
2669
2669
|
};
|
|
2670
|
-
protoOf(CloseToken).
|
|
2671
|
-
var tmp0_safe_receiver = this.
|
|
2670
|
+
protoOf(CloseToken).p2q = function (wrap) {
|
|
2671
|
+
var tmp0_safe_receiver = this.f30(wrap);
|
|
2672
2672
|
var tmp;
|
|
2673
2673
|
if (tmp0_safe_receiver == null) {
|
|
2674
2674
|
tmp = null;
|
|
@@ -2687,17 +2687,17 @@
|
|
|
2687
2687
|
}
|
|
2688
2688
|
function transferFromDelegate($this) {
|
|
2689
2689
|
updateConsumed($this);
|
|
2690
|
-
var appended = $this.
|
|
2691
|
-
$this.
|
|
2690
|
+
var appended = $this.h30_1.e2n($this.g30_1.n2q());
|
|
2691
|
+
$this.i30_1 = add($this.i30_1, appended);
|
|
2692
2692
|
}
|
|
2693
2693
|
function updateConsumed($this) {
|
|
2694
|
-
$this.
|
|
2695
|
-
$this.
|
|
2694
|
+
$this.j30_1 = add($this.j30_1, subtract($this.i30_1, $this.h30_1.g1()));
|
|
2695
|
+
$this.i30_1 = $this.h30_1.g1();
|
|
2696
2696
|
}
|
|
2697
2697
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2698
2698
|
CoroutineImpl.call(this, resultContinuation);
|
|
2699
|
-
this.
|
|
2700
|
-
this.
|
|
2699
|
+
this.s30_1 = _this__u8e3s4;
|
|
2700
|
+
this.t30_1 = min;
|
|
2701
2701
|
}
|
|
2702
2702
|
protoOf($awaitContentCOROUTINE$_0).q9 = function () {
|
|
2703
2703
|
var suspendResult = this.k9_1;
|
|
@@ -2707,12 +2707,12 @@
|
|
|
2707
2707
|
switch (tmp) {
|
|
2708
2708
|
case 0:
|
|
2709
2709
|
this.j9_1 = 3;
|
|
2710
|
-
if (this.
|
|
2710
|
+
if (this.s30_1.n2q().g1() >= fromInt(this.t30_1)) {
|
|
2711
2711
|
return true;
|
|
2712
2712
|
}
|
|
2713
2713
|
|
|
2714
2714
|
this.i9_1 = 1;
|
|
2715
|
-
suspendResult = this.
|
|
2715
|
+
suspendResult = this.s30_1.g30_1.v2q(this.t30_1, this);
|
|
2716
2716
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2717
2717
|
return suspendResult;
|
|
2718
2718
|
}
|
|
@@ -2720,7 +2720,7 @@
|
|
|
2720
2720
|
continue $sm;
|
|
2721
2721
|
case 1:
|
|
2722
2722
|
if (suspendResult) {
|
|
2723
|
-
transferFromDelegate(this.
|
|
2723
|
+
transferFromDelegate(this.s30_1);
|
|
2724
2724
|
return true;
|
|
2725
2725
|
} else {
|
|
2726
2726
|
this.i9_1 = 2;
|
|
@@ -2744,34 +2744,34 @@
|
|
|
2744
2744
|
while (true);
|
|
2745
2745
|
};
|
|
2746
2746
|
function CountedByteReadChannel(delegate) {
|
|
2747
|
-
this.
|
|
2748
|
-
this.
|
|
2749
|
-
this.
|
|
2750
|
-
this.
|
|
2747
|
+
this.g30_1 = delegate;
|
|
2748
|
+
this.h30_1 = new Buffer();
|
|
2749
|
+
this.i30_1 = 0n;
|
|
2750
|
+
this.j30_1 = 0n;
|
|
2751
2751
|
}
|
|
2752
|
-
protoOf(CountedByteReadChannel).
|
|
2752
|
+
protoOf(CountedByteReadChannel).u30 = function () {
|
|
2753
2753
|
updateConsumed(this);
|
|
2754
|
-
return this.
|
|
2754
|
+
return this.j30_1;
|
|
2755
2755
|
};
|
|
2756
|
-
protoOf(CountedByteReadChannel).
|
|
2757
|
-
return this.
|
|
2756
|
+
protoOf(CountedByteReadChannel).s2q = function () {
|
|
2757
|
+
return this.g30_1.s2q();
|
|
2758
2758
|
};
|
|
2759
|
-
protoOf(CountedByteReadChannel).
|
|
2760
|
-
return this.
|
|
2759
|
+
protoOf(CountedByteReadChannel).u2q = function () {
|
|
2760
|
+
return this.h30_1.m2l() && this.g30_1.u2q();
|
|
2761
2761
|
};
|
|
2762
|
-
protoOf(CountedByteReadChannel).
|
|
2762
|
+
protoOf(CountedByteReadChannel).n2q = function () {
|
|
2763
2763
|
transferFromDelegate(this);
|
|
2764
|
-
return this.
|
|
2764
|
+
return this.h30_1;
|
|
2765
2765
|
};
|
|
2766
|
-
protoOf(CountedByteReadChannel).
|
|
2766
|
+
protoOf(CountedByteReadChannel).v2q = function (min, $completion) {
|
|
2767
2767
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2768
2768
|
tmp.k9_1 = Unit_instance;
|
|
2769
2769
|
tmp.l9_1 = null;
|
|
2770
2770
|
return tmp.q9();
|
|
2771
2771
|
};
|
|
2772
|
-
protoOf(CountedByteReadChannel).
|
|
2773
|
-
this.
|
|
2774
|
-
this.
|
|
2772
|
+
protoOf(CountedByteReadChannel).y2q = function (cause) {
|
|
2773
|
+
this.g30_1.y2q(cause);
|
|
2774
|
+
this.h30_1.t4();
|
|
2775
2775
|
};
|
|
2776
2776
|
function counted(_this__u8e3s4) {
|
|
2777
2777
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2829,21 +2829,21 @@
|
|
|
2829
2829
|
}
|
|
2830
2830
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2831
2831
|
var tmp;
|
|
2832
|
-
if ($this === Companion_getInstance_1().
|
|
2832
|
+
if ($this === Companion_getInstance_1().v30_1) {
|
|
2833
2833
|
tmp = 'CR';
|
|
2834
|
-
} else if ($this === Companion_getInstance_1().
|
|
2834
|
+
} else if ($this === Companion_getInstance_1().w30_1) {
|
|
2835
2835
|
tmp = 'LF';
|
|
2836
|
-
} else if ($this === Companion_getInstance_1().
|
|
2836
|
+
} else if ($this === Companion_getInstance_1().x30_1) {
|
|
2837
2837
|
tmp = 'CRLF';
|
|
2838
2838
|
} else {
|
|
2839
2839
|
// Inline function 'kotlin.collections.filter' call
|
|
2840
|
-
var tmp0 = Companion_getInstance_1().
|
|
2840
|
+
var tmp0 = Companion_getInstance_1().z30_1;
|
|
2841
2841
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2842
2842
|
var destination = ArrayList_init_$Create$();
|
|
2843
2843
|
var _iterator__ex2g4s = tmp0.t();
|
|
2844
2844
|
while (_iterator__ex2g4s.u()) {
|
|
2845
2845
|
var element = _iterator__ex2g4s.v();
|
|
2846
|
-
var it = element.
|
|
2846
|
+
var it = element.a31_1;
|
|
2847
2847
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2848
2848
|
destination.e1(element);
|
|
2849
2849
|
}
|
|
@@ -2854,11 +2854,11 @@
|
|
|
2854
2854
|
}
|
|
2855
2855
|
function Companion_1() {
|
|
2856
2856
|
Companion_instance_2 = this;
|
|
2857
|
-
this.
|
|
2858
|
-
this.
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2861
|
-
this.
|
|
2857
|
+
this.v30_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2858
|
+
this.w30_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2859
|
+
this.x30_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2860
|
+
this.y30_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2861
|
+
this.z30_1 = listOf([new LineEndingMode(this.v30_1), new LineEndingMode(this.w30_1), new LineEndingMode(this.x30_1)]);
|
|
2862
2862
|
}
|
|
2863
2863
|
var Companion_instance_2;
|
|
2864
2864
|
function Companion_getInstance_1() {
|
|
@@ -2872,67 +2872,67 @@
|
|
|
2872
2872
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2873
2873
|
if (!(other instanceof LineEndingMode))
|
|
2874
2874
|
return false;
|
|
2875
|
-
if (!($this === other.
|
|
2875
|
+
if (!($this === other.a31_1))
|
|
2876
2876
|
return false;
|
|
2877
2877
|
return true;
|
|
2878
2878
|
}
|
|
2879
2879
|
function LineEndingMode(mode) {
|
|
2880
2880
|
Companion_getInstance_1();
|
|
2881
|
-
this.
|
|
2881
|
+
this.a31_1 = mode;
|
|
2882
2882
|
}
|
|
2883
2883
|
protoOf(LineEndingMode).toString = function () {
|
|
2884
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2884
|
+
return LineEndingMode__toString_impl_j4h76r(this.a31_1);
|
|
2885
2885
|
};
|
|
2886
2886
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2887
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2887
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.a31_1);
|
|
2888
2888
|
};
|
|
2889
2889
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2890
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2890
|
+
return LineEndingMode__equals_impl_qyr4nk(this.a31_1, other);
|
|
2891
2891
|
};
|
|
2892
2892
|
function SourceByteReadChannel(source) {
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2893
|
+
this.b31_1 = source;
|
|
2894
|
+
this.c31_1 = null;
|
|
2895
2895
|
}
|
|
2896
|
-
protoOf(SourceByteReadChannel).
|
|
2897
|
-
var tmp0_safe_receiver = this.
|
|
2898
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2896
|
+
protoOf(SourceByteReadChannel).s2q = function () {
|
|
2897
|
+
var tmp0_safe_receiver = this.c31_1;
|
|
2898
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t2q();
|
|
2899
2899
|
};
|
|
2900
|
-
protoOf(SourceByteReadChannel).
|
|
2901
|
-
return this.
|
|
2900
|
+
protoOf(SourceByteReadChannel).u2q = function () {
|
|
2901
|
+
return this.b31_1.m2l();
|
|
2902
2902
|
};
|
|
2903
|
-
protoOf(SourceByteReadChannel).
|
|
2904
|
-
var tmp0_safe_receiver = this.
|
|
2903
|
+
protoOf(SourceByteReadChannel).n2q = function () {
|
|
2904
|
+
var tmp0_safe_receiver = this.s2q();
|
|
2905
2905
|
if (tmp0_safe_receiver == null)
|
|
2906
2906
|
null;
|
|
2907
2907
|
else {
|
|
2908
2908
|
// Inline function 'kotlin.let' call
|
|
2909
2909
|
throw tmp0_safe_receiver;
|
|
2910
2910
|
}
|
|
2911
|
-
return this.
|
|
2911
|
+
return this.b31_1.l2l();
|
|
2912
2912
|
};
|
|
2913
|
-
protoOf(SourceByteReadChannel).
|
|
2914
|
-
var tmp0_safe_receiver = this.
|
|
2913
|
+
protoOf(SourceByteReadChannel).v2q = function (min, $completion) {
|
|
2914
|
+
var tmp0_safe_receiver = this.s2q();
|
|
2915
2915
|
if (tmp0_safe_receiver == null)
|
|
2916
2916
|
null;
|
|
2917
2917
|
else {
|
|
2918
2918
|
// Inline function 'kotlin.let' call
|
|
2919
2919
|
throw tmp0_safe_receiver;
|
|
2920
2920
|
}
|
|
2921
|
-
return this.
|
|
2921
|
+
return this.b31_1.o2l(fromInt(min));
|
|
2922
2922
|
};
|
|
2923
|
-
protoOf(SourceByteReadChannel).
|
|
2924
|
-
if (!(this.
|
|
2923
|
+
protoOf(SourceByteReadChannel).y2q = function (cause) {
|
|
2924
|
+
if (!(this.c31_1 == null))
|
|
2925
2925
|
return Unit_instance;
|
|
2926
|
-
this.
|
|
2926
|
+
this.b31_1.t4();
|
|
2927
2927
|
var tmp = this;
|
|
2928
2928
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2929
|
-
tmp.
|
|
2929
|
+
tmp.c31_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2930
2930
|
};
|
|
2931
2931
|
function decode(_this__u8e3s4, input, max) {
|
|
2932
2932
|
max = max === VOID ? 2147483647 : max;
|
|
2933
2933
|
var tmp0 = fromInt(max);
|
|
2934
2934
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2935
|
-
var b = input.
|
|
2935
|
+
var b = input.l2l().g1();
|
|
2936
2936
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2937
2937
|
// Inline function 'kotlin.text.buildString' call
|
|
2938
2938
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2969,7 +2969,7 @@
|
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
2971
|
function canRead(_this__u8e3s4) {
|
|
2972
|
-
return !_this__u8e3s4.
|
|
2972
|
+
return !_this__u8e3s4.m2l();
|
|
2973
2973
|
}
|
|
2974
2974
|
function readBytes(_this__u8e3s4, count) {
|
|
2975
2975
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2978,35 +2978,35 @@
|
|
|
2978
2978
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2979
2979
|
offset = offset === VOID ? 0 : offset;
|
|
2980
2980
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2981
|
-
_this__u8e3s4.
|
|
2981
|
+
_this__u8e3s4.v2m(buffer, offset, offset + length | 0);
|
|
2982
2982
|
}
|
|
2983
2983
|
function BytePacketBuilder() {
|
|
2984
2984
|
return new Buffer();
|
|
2985
2985
|
}
|
|
2986
2986
|
function build(_this__u8e3s4) {
|
|
2987
|
-
return _this__u8e3s4.
|
|
2987
|
+
return _this__u8e3s4.l2l();
|
|
2988
2988
|
}
|
|
2989
2989
|
function get_size(_this__u8e3s4) {
|
|
2990
|
-
return convertToInt(_this__u8e3s4.
|
|
2990
|
+
return convertToInt(_this__u8e3s4.l2l().g1());
|
|
2991
2991
|
}
|
|
2992
2992
|
var ByteReadPacketEmpty;
|
|
2993
2993
|
function get_remaining(_this__u8e3s4) {
|
|
2994
2994
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2995
|
-
return _this__u8e3s4.
|
|
2995
|
+
return _this__u8e3s4.l2l().g1();
|
|
2996
2996
|
}
|
|
2997
2997
|
function discard_0(_this__u8e3s4, count) {
|
|
2998
2998
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2999
2999
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3000
|
-
_this__u8e3s4.
|
|
3000
|
+
_this__u8e3s4.o2l(count);
|
|
3001
3001
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3002
3002
|
var b = get_remaining(_this__u8e3s4);
|
|
3003
3003
|
var countToDiscard = count <= b ? count : b;
|
|
3004
|
-
_this__u8e3s4.
|
|
3004
|
+
_this__u8e3s4.l2l().j2m(countToDiscard);
|
|
3005
3005
|
return countToDiscard;
|
|
3006
3006
|
}
|
|
3007
3007
|
function takeWhile(_this__u8e3s4, block) {
|
|
3008
3008
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3009
|
-
while (!_this__u8e3s4.
|
|
3009
|
+
while (!_this__u8e3s4.m2l() && block(_this__u8e3s4.l2l())) {
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
3012
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -3019,7 +3019,7 @@
|
|
|
3019
3019
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
3020
3020
|
offset = offset === VOID ? 0 : offset;
|
|
3021
3021
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3022
|
-
var result = _this__u8e3s4.
|
|
3022
|
+
var result = _this__u8e3s4.k2m(buffer, offset, offset + length | 0);
|
|
3023
3023
|
return result === -1 ? 0 : result;
|
|
3024
3024
|
}
|
|
3025
3025
|
function readBytes_0(_this__u8e3s4) {
|
|
@@ -3028,31 +3028,31 @@
|
|
|
3028
3028
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3029
3029
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3030
3030
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3031
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3032
|
-
if (charset === Charsets_getInstance().
|
|
3031
|
+
charset = charset === VOID ? Charsets_getInstance().d31_1 : charset;
|
|
3032
|
+
if (charset === Charsets_getInstance().d31_1) {
|
|
3033
3033
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3034
3034
|
}
|
|
3035
|
-
encodeToImpl(charset.
|
|
3035
|
+
encodeToImpl(charset.g31(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3036
3036
|
}
|
|
3037
3037
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3038
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3038
|
+
charset = charset === VOID ? Charsets_getInstance().d31_1 : charset;
|
|
3039
3039
|
max = max === VOID ? 2147483647 : max;
|
|
3040
|
-
if (charset.equals(Charsets_getInstance().
|
|
3040
|
+
if (charset.equals(Charsets_getInstance().d31_1)) {
|
|
3041
3041
|
if (max === 2147483647)
|
|
3042
3042
|
return readString_0(_this__u8e3s4);
|
|
3043
|
-
var tmp0 = _this__u8e3s4.
|
|
3043
|
+
var tmp0 = _this__u8e3s4.l2l().g1();
|
|
3044
3044
|
// Inline function 'kotlin.math.min' call
|
|
3045
3045
|
var b = fromInt(max);
|
|
3046
3046
|
var count = tmp0 <= b ? tmp0 : b;
|
|
3047
3047
|
return readString(_this__u8e3s4, count);
|
|
3048
3048
|
}
|
|
3049
|
-
return decode(charset.
|
|
3049
|
+
return decode(charset.h31(), _this__u8e3s4, max);
|
|
3050
3050
|
}
|
|
3051
3051
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3052
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3053
|
-
if (charset.equals(Charsets_getInstance().
|
|
3052
|
+
charset = charset === VOID ? Charsets_getInstance().d31_1 : charset;
|
|
3053
|
+
if (charset.equals(Charsets_getInstance().d31_1))
|
|
3054
3054
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
3055
|
-
return encodeToByteArray_0(charset.
|
|
3055
|
+
return encodeToByteArray_0(charset.g31(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3056
3056
|
}
|
|
3057
3057
|
function get_ByteArrayPool() {
|
|
3058
3058
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3062,7 +3062,7 @@
|
|
|
3062
3062
|
function ByteArrayPool$1() {
|
|
3063
3063
|
DefaultPool.call(this, 128);
|
|
3064
3064
|
}
|
|
3065
|
-
protoOf(ByteArrayPool$1).
|
|
3065
|
+
protoOf(ByteArrayPool$1).l31 = function () {
|
|
3066
3066
|
return new Int8Array(4096);
|
|
3067
3067
|
};
|
|
3068
3068
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3076,21 +3076,21 @@
|
|
|
3076
3076
|
}
|
|
3077
3077
|
function NoPoolImpl() {
|
|
3078
3078
|
}
|
|
3079
|
-
protoOf(NoPoolImpl).
|
|
3079
|
+
protoOf(NoPoolImpl).t31 = function (instance) {
|
|
3080
3080
|
return Unit_instance;
|
|
3081
3081
|
};
|
|
3082
|
-
protoOf(NoPoolImpl).
|
|
3082
|
+
protoOf(NoPoolImpl).g1y = function () {
|
|
3083
3083
|
return Unit_instance;
|
|
3084
3084
|
};
|
|
3085
3085
|
function Companion_2() {
|
|
3086
3086
|
}
|
|
3087
|
-
protoOf(Companion_2).
|
|
3087
|
+
protoOf(Companion_2).u31 = function (name) {
|
|
3088
3088
|
switch (name) {
|
|
3089
3089
|
case 'UTF-8':
|
|
3090
3090
|
case 'utf-8':
|
|
3091
3091
|
case 'UTF8':
|
|
3092
3092
|
case 'utf8':
|
|
3093
|
-
return Charsets_getInstance().
|
|
3093
|
+
return Charsets_getInstance().d31_1;
|
|
3094
3094
|
}
|
|
3095
3095
|
var tmp;
|
|
3096
3096
|
var tmp_0;
|
|
@@ -3121,11 +3121,11 @@
|
|
|
3121
3121
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3122
3122
|
}
|
|
3123
3123
|
if (tmp) {
|
|
3124
|
-
return Charsets_getInstance().
|
|
3124
|
+
return Charsets_getInstance().e31_1;
|
|
3125
3125
|
}
|
|
3126
3126
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3127
3127
|
};
|
|
3128
|
-
protoOf(Companion_2).
|
|
3128
|
+
protoOf(Companion_2).v31 = function (charset) {
|
|
3129
3129
|
var tmp;
|
|
3130
3130
|
switch (charset) {
|
|
3131
3131
|
case 'UTF-8':
|
|
@@ -3180,7 +3180,7 @@
|
|
|
3180
3180
|
return Companion_instance_3;
|
|
3181
3181
|
}
|
|
3182
3182
|
function Charset(_name) {
|
|
3183
|
-
this.
|
|
3183
|
+
this.f31_1 = _name;
|
|
3184
3184
|
}
|
|
3185
3185
|
protoOf(Charset).equals = function (other) {
|
|
3186
3186
|
if (this === other)
|
|
@@ -3189,18 +3189,18 @@
|
|
|
3189
3189
|
return false;
|
|
3190
3190
|
if (!(other instanceof Charset))
|
|
3191
3191
|
THROW_CCE();
|
|
3192
|
-
return this.
|
|
3192
|
+
return this.f31_1 === other.f31_1;
|
|
3193
3193
|
};
|
|
3194
3194
|
protoOf(Charset).hashCode = function () {
|
|
3195
|
-
return getStringHashCode(this.
|
|
3195
|
+
return getStringHashCode(this.f31_1);
|
|
3196
3196
|
};
|
|
3197
3197
|
protoOf(Charset).toString = function () {
|
|
3198
|
-
return this.
|
|
3198
|
+
return this.f31_1;
|
|
3199
3199
|
};
|
|
3200
3200
|
function Charsets() {
|
|
3201
3201
|
Charsets_instance = this;
|
|
3202
|
-
this.
|
|
3203
|
-
this.
|
|
3202
|
+
this.d31_1 = new CharsetImpl('UTF-8');
|
|
3203
|
+
this.e31_1 = new CharsetImpl('ISO-8859-1');
|
|
3204
3204
|
}
|
|
3205
3205
|
var Charsets_instance;
|
|
3206
3206
|
function Charsets_getInstance() {
|
|
@@ -3209,27 +3209,27 @@
|
|
|
3209
3209
|
return Charsets_instance;
|
|
3210
3210
|
}
|
|
3211
3211
|
function CharsetDecoder(_charset) {
|
|
3212
|
-
this.
|
|
3212
|
+
this.w31_1 = _charset;
|
|
3213
3213
|
}
|
|
3214
3214
|
function MalformedInputException(message) {
|
|
3215
3215
|
IOException_init_$Init$_0(message, this);
|
|
3216
3216
|
captureStack(this, MalformedInputException);
|
|
3217
3217
|
}
|
|
3218
3218
|
function get_name(_this__u8e3s4) {
|
|
3219
|
-
return _this__u8e3s4.
|
|
3219
|
+
return _this__u8e3s4.f31_1;
|
|
3220
3220
|
}
|
|
3221
3221
|
function isSupported(_this__u8e3s4, name) {
|
|
3222
|
-
return Companion_instance_3.
|
|
3222
|
+
return Companion_instance_3.v31(name);
|
|
3223
3223
|
}
|
|
3224
3224
|
function forName(_this__u8e3s4, name) {
|
|
3225
|
-
return Companion_instance_3.
|
|
3225
|
+
return Companion_instance_3.u31(name);
|
|
3226
3226
|
}
|
|
3227
3227
|
function CharsetEncoder(_charset) {
|
|
3228
|
-
this.
|
|
3228
|
+
this.x31_1 = _charset;
|
|
3229
3229
|
}
|
|
3230
3230
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3231
3231
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3232
|
-
var tmp0 = input.
|
|
3232
|
+
var tmp0 = input.l2l().g1();
|
|
3233
3233
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3234
3234
|
var b = fromInt(max);
|
|
3235
3235
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3239,7 +3239,7 @@
|
|
|
3239
3239
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3240
3240
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3241
3241
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3242
|
-
tmp = decoder.
|
|
3242
|
+
tmp = decoder.y31(array);
|
|
3243
3243
|
} catch ($p) {
|
|
3244
3244
|
var tmp_0;
|
|
3245
3245
|
if ($p instanceof Error) {
|
|
@@ -3261,11 +3261,11 @@
|
|
|
3261
3261
|
var message = 'Failed requirement.';
|
|
3262
3262
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3263
3263
|
}
|
|
3264
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3264
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().e31_1)) {
|
|
3265
3265
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3266
3266
|
}
|
|
3267
3267
|
// Inline function 'kotlin.require' call
|
|
3268
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3268
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().d31_1)) {
|
|
3269
3269
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3270
3270
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3271
3271
|
}
|
|
@@ -3275,7 +3275,7 @@
|
|
|
3275
3275
|
var result = encoder.encode(tmp$ret$5);
|
|
3276
3276
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3277
3277
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3278
|
-
dst.
|
|
3278
|
+
dst.y2m(result);
|
|
3279
3279
|
return result.length;
|
|
3280
3280
|
}
|
|
3281
3281
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3286,17 +3286,17 @@
|
|
|
3286
3286
|
function CharsetImpl(name) {
|
|
3287
3287
|
Charset.call(this, name);
|
|
3288
3288
|
}
|
|
3289
|
-
protoOf(CharsetImpl).
|
|
3289
|
+
protoOf(CharsetImpl).g31 = function () {
|
|
3290
3290
|
return new CharsetEncoderImpl(this);
|
|
3291
3291
|
};
|
|
3292
|
-
protoOf(CharsetImpl).
|
|
3292
|
+
protoOf(CharsetImpl).h31 = function () {
|
|
3293
3293
|
return new CharsetDecoderImpl(this);
|
|
3294
3294
|
};
|
|
3295
3295
|
function get_charset(_this__u8e3s4) {
|
|
3296
|
-
return _this__u8e3s4.
|
|
3296
|
+
return _this__u8e3s4.w31_1;
|
|
3297
3297
|
}
|
|
3298
3298
|
function get_charset_0(_this__u8e3s4) {
|
|
3299
|
-
return _this__u8e3s4.
|
|
3299
|
+
return _this__u8e3s4.x31_1;
|
|
3300
3300
|
}
|
|
3301
3301
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3302
3302
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3315,39 +3315,39 @@
|
|
|
3315
3315
|
}
|
|
3316
3316
|
function CharsetEncoderImpl(charset) {
|
|
3317
3317
|
CharsetEncoder.call(this, charset);
|
|
3318
|
-
this.
|
|
3318
|
+
this.b32_1 = charset;
|
|
3319
3319
|
}
|
|
3320
3320
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3321
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3321
|
+
return 'CharsetEncoderImpl(charset=' + this.b32_1.toString() + ')';
|
|
3322
3322
|
};
|
|
3323
3323
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3324
|
-
return this.
|
|
3324
|
+
return this.b32_1.hashCode();
|
|
3325
3325
|
};
|
|
3326
3326
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3327
3327
|
if (this === other)
|
|
3328
3328
|
return true;
|
|
3329
3329
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3330
3330
|
return false;
|
|
3331
|
-
if (!this.
|
|
3331
|
+
if (!this.b32_1.equals(other.b32_1))
|
|
3332
3332
|
return false;
|
|
3333
3333
|
return true;
|
|
3334
3334
|
};
|
|
3335
3335
|
function CharsetDecoderImpl(charset) {
|
|
3336
3336
|
CharsetDecoder.call(this, charset);
|
|
3337
|
-
this.
|
|
3337
|
+
this.d32_1 = charset;
|
|
3338
3338
|
}
|
|
3339
3339
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3340
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3340
|
+
return 'CharsetDecoderImpl(charset=' + this.d32_1.toString() + ')';
|
|
3341
3341
|
};
|
|
3342
3342
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3343
|
-
return this.
|
|
3343
|
+
return this.d32_1.hashCode();
|
|
3344
3344
|
};
|
|
3345
3345
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3346
3346
|
if (this === other)
|
|
3347
3347
|
return true;
|
|
3348
3348
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3349
3349
|
return false;
|
|
3350
|
-
if (!this.
|
|
3350
|
+
if (!this.d32_1.equals(other.d32_1))
|
|
3351
3351
|
return false;
|
|
3352
3352
|
return true;
|
|
3353
3353
|
};
|
|
@@ -3381,10 +3381,10 @@
|
|
|
3381
3381
|
return this_0;
|
|
3382
3382
|
}
|
|
3383
3383
|
function toKtor$1($this_toKtor) {
|
|
3384
|
-
this.
|
|
3384
|
+
this.e32_1 = $this_toKtor;
|
|
3385
3385
|
}
|
|
3386
|
-
protoOf(toKtor$1).
|
|
3387
|
-
return this.
|
|
3386
|
+
protoOf(toKtor$1).y31 = function (buffer) {
|
|
3387
|
+
return this.e32_1.decode(buffer);
|
|
3388
3388
|
};
|
|
3389
3389
|
function get_ENCODING_ALIASES() {
|
|
3390
3390
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3397,7 +3397,7 @@
|
|
|
3397
3397
|
}
|
|
3398
3398
|
var REPLACEMENT;
|
|
3399
3399
|
function TextDecoderFallback(encoding, fatal) {
|
|
3400
|
-
this.
|
|
3400
|
+
this.f32_1 = fatal;
|
|
3401
3401
|
// Inline function 'kotlin.text.trim' call
|
|
3402
3402
|
// Inline function 'kotlin.text.lowercase' call
|
|
3403
3403
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3408,7 +3408,7 @@
|
|
|
3408
3408
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3409
3409
|
}
|
|
3410
3410
|
}
|
|
3411
|
-
protoOf(TextDecoderFallback).
|
|
3411
|
+
protoOf(TextDecoderFallback).y31 = function (buffer) {
|
|
3412
3412
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3413
3413
|
var builder = new Buffer();
|
|
3414
3414
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3424,7 +3424,7 @@
|
|
|
3424
3424
|
var point = toCodePoint(byte);
|
|
3425
3425
|
if (point < 0) {
|
|
3426
3426
|
// Inline function 'kotlin.check' call
|
|
3427
|
-
if (!!this.
|
|
3427
|
+
if (!!this.f32_1) {
|
|
3428
3428
|
var message = 'Invalid character: ' + point;
|
|
3429
3429
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3430
3430
|
}
|
|
@@ -3432,9 +3432,9 @@
|
|
|
3432
3432
|
continue $l$loop;
|
|
3433
3433
|
}
|
|
3434
3434
|
if (point > 255) {
|
|
3435
|
-
builder.
|
|
3435
|
+
builder.f2n(toByte(point >> 8));
|
|
3436
3436
|
}
|
|
3437
|
-
builder.
|
|
3437
|
+
builder.f2n(toByte(point & 255));
|
|
3438
3438
|
}
|
|
3439
3439
|
while (inductionVariable < last);
|
|
3440
3440
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3464,7 +3464,7 @@
|
|
|
3464
3464
|
return false;
|
|
3465
3465
|
}
|
|
3466
3466
|
function ioDispatcher() {
|
|
3467
|
-
return Dispatchers_getInstance().
|
|
3467
|
+
return Dispatchers_getInstance().o27_1;
|
|
3468
3468
|
}
|
|
3469
3469
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3470
3470
|
if (fromIndex >= toIndex)
|
|
@@ -3480,7 +3480,7 @@
|
|
|
3480
3480
|
if (character > 255) {
|
|
3481
3481
|
failedToMapError(character);
|
|
3482
3482
|
}
|
|
3483
|
-
dst.
|
|
3483
|
+
dst.f2n(toByte(character));
|
|
3484
3484
|
}
|
|
3485
3485
|
while (inductionVariable < toIndex);
|
|
3486
3486
|
return toIndex - fromIndex | 0;
|
|
@@ -3502,64 +3502,64 @@
|
|
|
3502
3502
|
}
|
|
3503
3503
|
}
|
|
3504
3504
|
function DefaultPool(capacity) {
|
|
3505
|
-
this.
|
|
3505
|
+
this.m31_1 = capacity;
|
|
3506
3506
|
var tmp = this;
|
|
3507
3507
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3508
|
-
var size = this.
|
|
3509
|
-
tmp.
|
|
3510
|
-
this.
|
|
3508
|
+
var size = this.m31_1;
|
|
3509
|
+
tmp.n31_1 = Array(size);
|
|
3510
|
+
this.o31_1 = 0;
|
|
3511
3511
|
}
|
|
3512
|
-
protoOf(DefaultPool).
|
|
3512
|
+
protoOf(DefaultPool).p31 = function (instance) {
|
|
3513
3513
|
};
|
|
3514
|
-
protoOf(DefaultPool).
|
|
3514
|
+
protoOf(DefaultPool).q31 = function (instance) {
|
|
3515
3515
|
return instance;
|
|
3516
3516
|
};
|
|
3517
|
-
protoOf(DefaultPool).
|
|
3517
|
+
protoOf(DefaultPool).r31 = function (instance) {
|
|
3518
3518
|
};
|
|
3519
|
-
protoOf(DefaultPool).
|
|
3520
|
-
if (this.
|
|
3521
|
-
return this.
|
|
3522
|
-
this.
|
|
3523
|
-
var idx = this.
|
|
3524
|
-
var tmp = this.
|
|
3519
|
+
protoOf(DefaultPool).s31 = function () {
|
|
3520
|
+
if (this.o31_1 === 0)
|
|
3521
|
+
return this.l31();
|
|
3522
|
+
this.o31_1 = this.o31_1 - 1 | 0;
|
|
3523
|
+
var idx = this.o31_1;
|
|
3524
|
+
var tmp = this.n31_1[idx];
|
|
3525
3525
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3526
|
-
this.
|
|
3527
|
-
return this.
|
|
3526
|
+
this.n31_1[idx] = null;
|
|
3527
|
+
return this.q31(instance);
|
|
3528
3528
|
};
|
|
3529
|
-
protoOf(DefaultPool).
|
|
3530
|
-
this.
|
|
3531
|
-
if (this.
|
|
3532
|
-
this.
|
|
3529
|
+
protoOf(DefaultPool).t31 = function (instance) {
|
|
3530
|
+
this.r31(instance);
|
|
3531
|
+
if (this.o31_1 === this.m31_1) {
|
|
3532
|
+
this.p31(instance);
|
|
3533
3533
|
} else {
|
|
3534
|
-
var _unary__edvuaz = this.
|
|
3535
|
-
this.
|
|
3536
|
-
this.
|
|
3534
|
+
var _unary__edvuaz = this.o31_1;
|
|
3535
|
+
this.o31_1 = _unary__edvuaz + 1 | 0;
|
|
3536
|
+
this.n31_1[_unary__edvuaz] = instance;
|
|
3537
3537
|
}
|
|
3538
3538
|
};
|
|
3539
|
-
protoOf(DefaultPool).
|
|
3539
|
+
protoOf(DefaultPool).g1y = function () {
|
|
3540
3540
|
var inductionVariable = 0;
|
|
3541
|
-
var last = this.
|
|
3541
|
+
var last = this.o31_1;
|
|
3542
3542
|
if (inductionVariable < last)
|
|
3543
3543
|
do {
|
|
3544
3544
|
var i = inductionVariable;
|
|
3545
3545
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3546
|
-
var tmp = this.
|
|
3546
|
+
var tmp = this.n31_1[i];
|
|
3547
3547
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3548
|
-
this.
|
|
3549
|
-
this.
|
|
3548
|
+
this.n31_1[i] = null;
|
|
3549
|
+
this.p31(instance);
|
|
3550
3550
|
}
|
|
3551
3551
|
while (inductionVariable < last);
|
|
3552
|
-
this.
|
|
3552
|
+
this.o31_1 = 0;
|
|
3553
3553
|
};
|
|
3554
3554
|
//region block: post-declaration
|
|
3555
|
-
protoOf(Read).
|
|
3556
|
-
protoOf(Read).
|
|
3557
|
-
protoOf(Write).
|
|
3558
|
-
protoOf(Write).
|
|
3559
|
-
protoOf(ByteChannel).
|
|
3560
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3561
|
-
protoOf(CountedByteReadChannel).
|
|
3562
|
-
protoOf(SourceByteReadChannel).
|
|
3555
|
+
protoOf(Read).q2o = resume;
|
|
3556
|
+
protoOf(Read).r2o = resume_0;
|
|
3557
|
+
protoOf(Write).q2o = resume;
|
|
3558
|
+
protoOf(Write).r2o = resume_0;
|
|
3559
|
+
protoOf(ByteChannel).w2q = awaitContent$default;
|
|
3560
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w2q = awaitContent$default;
|
|
3561
|
+
protoOf(CountedByteReadChannel).w2q = awaitContent$default;
|
|
3562
|
+
protoOf(SourceByteReadChannel).w2q = awaitContent$default;
|
|
3563
3563
|
protoOf(DefaultPool).t4 = close;
|
|
3564
3564
|
protoOf(NoPoolImpl).t4 = close;
|
|
3565
3565
|
//endregion
|