@doordeck/doordeck-headless-sdk 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1192 -1192
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +14 -0
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -6
- package/kotlin/Stately-stately-concurrency.js +6 -6
- package/kotlin/Stately-stately-concurrent-collections.js +53 -53
- package/kotlin/doordeck-sdk.js +7989 -7922
- package/kotlin/doordeck-sdk.js.map +1 -1
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +1555 -1555
- package/kotlin/kotlinx-coroutines-core.js.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js +412 -412
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1657 -1657
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1310 -1310
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1696 -1696
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +212 -212
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +120 -120
- package/kotlin/ktor-ktor-http.js +629 -629
- package/kotlin/ktor-ktor-io.js +378 -378
- package/kotlin/ktor-ktor-shared-ktor-events.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +132 -132
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +37 -37
- package/kotlin/ktor-ktor-utils.js +507 -507
- package/kotlin/projects-core-koin-core.js +246 -246
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
initMetadataForObject(Empty, 'Empty');
|
|
80
80
|
initMetadataForClass(Closed, 'Closed');
|
|
81
81
|
function resume() {
|
|
82
|
-
return this.
|
|
82
|
+
return this.v1d().o9(Companion_getInstance().t1d_1);
|
|
83
83
|
}
|
|
84
84
|
function resume_0(throwable) {
|
|
85
|
-
var tmp = this.
|
|
85
|
+
var tmp = this.v1d();
|
|
86
86
|
var tmp_0;
|
|
87
87
|
if (throwable == null) {
|
|
88
88
|
tmp_0 = null;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
tmp_0 = new Result(tmp$ret$2);
|
|
96
96
|
}
|
|
97
97
|
var tmp1_elvis_lhs = tmp_0;
|
|
98
|
-
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
98
|
+
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().t1d_1 : tmp1_elvis_lhs.gk_1);
|
|
99
99
|
}
|
|
100
100
|
initMetadataForInterface(Task, 'Task');
|
|
101
101
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
|
|
106
106
|
function awaitContent$default(min, $completion, $super) {
|
|
107
107
|
min = min === VOID ? 1 : min;
|
|
108
|
-
return $super === VOID ? this.
|
|
108
|
+
return $super === VOID ? this.z1f(min, $completion) : $super.z1f.call(this, min, $completion);
|
|
109
109
|
}
|
|
110
110
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
111
111
|
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
|
|
@@ -142,10 +142,10 @@
|
|
|
142
142
|
//endregion
|
|
143
143
|
function Companion() {
|
|
144
144
|
Companion_instance_0 = this;
|
|
145
|
-
this.
|
|
145
|
+
this.s1d_1 = new Closed(null);
|
|
146
146
|
var tmp = this;
|
|
147
147
|
// Inline function 'kotlin.Companion.success' call
|
|
148
|
-
tmp.
|
|
148
|
+
tmp.t1d_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
149
149
|
}
|
|
150
150
|
var Companion_instance_0;
|
|
151
151
|
function Companion_getInstance() {
|
|
@@ -174,13 +174,13 @@
|
|
|
174
174
|
return Empty_instance;
|
|
175
175
|
}
|
|
176
176
|
function Closed(cause) {
|
|
177
|
-
this.
|
|
177
|
+
this.u1d_1 = cause;
|
|
178
178
|
}
|
|
179
179
|
protoOf(Closed).toString = function () {
|
|
180
|
-
return 'Closed(cause=' + toString(this.
|
|
180
|
+
return 'Closed(cause=' + toString(this.u1d_1) + ')';
|
|
181
181
|
};
|
|
182
182
|
protoOf(Closed).hashCode = function () {
|
|
183
|
-
return this.
|
|
183
|
+
return this.u1d_1 == null ? 0 : hashCode(this.u1d_1);
|
|
184
184
|
};
|
|
185
185
|
protoOf(Closed).equals = function (other) {
|
|
186
186
|
if (this === other)
|
|
@@ -188,58 +188,58 @@
|
|
|
188
188
|
if (!(other instanceof Closed))
|
|
189
189
|
return false;
|
|
190
190
|
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
191
|
-
if (!equals(this.
|
|
191
|
+
if (!equals(this.u1d_1, tmp0_other_with_cast.u1d_1))
|
|
192
192
|
return false;
|
|
193
193
|
return true;
|
|
194
194
|
};
|
|
195
195
|
function Task() {
|
|
196
196
|
}
|
|
197
197
|
function Read(continuation) {
|
|
198
|
-
this.
|
|
198
|
+
this.z1d_1 = continuation;
|
|
199
199
|
}
|
|
200
|
-
protoOf(Read).u1d = function () {
|
|
201
|
-
return this.y1d_1;
|
|
202
|
-
};
|
|
203
200
|
protoOf(Read).v1d = function () {
|
|
201
|
+
return this.z1d_1;
|
|
202
|
+
};
|
|
203
|
+
protoOf(Read).w1d = function () {
|
|
204
204
|
return 'read';
|
|
205
205
|
};
|
|
206
206
|
function Write(continuation) {
|
|
207
|
-
this.
|
|
207
|
+
this.a1e_1 = continuation;
|
|
208
208
|
}
|
|
209
|
-
protoOf(Write).u1d = function () {
|
|
210
|
-
return this.z1d_1;
|
|
211
|
-
};
|
|
212
209
|
protoOf(Write).v1d = function () {
|
|
210
|
+
return this.a1e_1;
|
|
211
|
+
};
|
|
212
|
+
protoOf(Write).w1d = function () {
|
|
213
213
|
return 'write';
|
|
214
214
|
};
|
|
215
215
|
function moveFlushToReadBuffer($this) {
|
|
216
216
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
217
|
-
$this.
|
|
218
|
-
$this.
|
|
219
|
-
$this.
|
|
217
|
+
$this.e1e_1;
|
|
218
|
+
$this.c1e_1.w1b($this.g1e_1);
|
|
219
|
+
$this.d1e_1 = 0;
|
|
220
220
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
221
|
-
var current = $this.
|
|
221
|
+
var current = $this.f1e_1.kotlinx$atomicfu$value;
|
|
222
222
|
var tmp;
|
|
223
223
|
if (current instanceof Write) {
|
|
224
|
-
tmp = $this.
|
|
224
|
+
tmp = $this.f1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
225
225
|
} else {
|
|
226
226
|
tmp = false;
|
|
227
227
|
}
|
|
228
228
|
if (tmp) {
|
|
229
|
-
current.
|
|
229
|
+
current.x1d();
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
function closeSlot($this, cause) {
|
|
233
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
234
|
-
var continuation = $this.
|
|
233
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().s1d_1;
|
|
234
|
+
var continuation = $this.f1e_1.atomicfu$getAndSet(closeContinuation);
|
|
235
235
|
if (!isInterface(continuation, Task))
|
|
236
236
|
return Unit_instance;
|
|
237
|
-
continuation.
|
|
237
|
+
continuation.y1d(cause);
|
|
238
238
|
}
|
|
239
239
|
function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
|
|
240
240
|
CoroutineImpl.call(this, resultContinuation);
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
241
|
+
this.r1e_1 = _this__u8e3s4;
|
|
242
|
+
this.s1e_1 = min;
|
|
243
243
|
}
|
|
244
244
|
protoOf($awaitContentCOROUTINE$0).l9 = function () {
|
|
245
245
|
var suspendResult = this.f9_1;
|
|
@@ -249,40 +249,40 @@
|
|
|
249
249
|
switch (tmp) {
|
|
250
250
|
case 0:
|
|
251
251
|
this.e9_1 = 4;
|
|
252
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
253
|
-
if (numberToLong(this.
|
|
252
|
+
rethrowCloseCauseIfNeeded_1(this.r1e_1);
|
|
253
|
+
if (numberToLong(this.r1e_1.d1e_1).z2(this.r1e_1.g1e_1.s()).e1(toLong(this.s1e_1)) >= 0)
|
|
254
254
|
return true;
|
|
255
255
|
var tmp_0 = this;
|
|
256
|
-
tmp_0.
|
|
256
|
+
tmp_0.t1e_1 = this.r1e_1;
|
|
257
257
|
this.d9_1 = 1;
|
|
258
258
|
continue $sm;
|
|
259
259
|
case 1:
|
|
260
|
-
if (!(numberToLong(this.
|
|
260
|
+
if (!(numberToLong(this.r1e_1.d1e_1).z2(this.r1e_1.g1e_1.s()).e1(toLong(this.s1e_1)) < 0 && this.r1e_1.i1e_1.kotlinx$atomicfu$value == null)) {
|
|
261
261
|
this.d9_1 = 3;
|
|
262
262
|
continue $sm;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
this.d9_1 = 2;
|
|
266
266
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
267
|
-
cancellable.
|
|
267
|
+
cancellable.zr();
|
|
268
268
|
l$ret$1: do {
|
|
269
|
-
var this_0 = this.
|
|
269
|
+
var this_0 = this.t1e_1;
|
|
270
270
|
var slot = new Read(cancellable);
|
|
271
|
-
var previous = this_0.
|
|
271
|
+
var previous = this_0.f1e_1.kotlinx$atomicfu$value;
|
|
272
272
|
if (!(previous instanceof Closed)) {
|
|
273
|
-
if (!this_0.
|
|
274
|
-
slot.
|
|
273
|
+
if (!this_0.f1e_1.atomicfu$compareAndSet(previous, slot)) {
|
|
274
|
+
slot.x1d();
|
|
275
275
|
break l$ret$1;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
if (previous instanceof Read) {
|
|
279
|
-
previous.
|
|
279
|
+
previous.y1d(new ConcurrentIOException(slot.w1d()));
|
|
280
280
|
} else {
|
|
281
281
|
if (isInterface(previous, Task)) {
|
|
282
|
-
previous.
|
|
282
|
+
previous.x1d();
|
|
283
283
|
} else {
|
|
284
284
|
if (previous instanceof Closed) {
|
|
285
|
-
slot.
|
|
285
|
+
slot.y1d(previous.u1d_1);
|
|
286
286
|
break l$ret$1;
|
|
287
287
|
} else {
|
|
288
288
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -291,21 +291,21 @@
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
if (!(numberToLong(this.
|
|
295
|
-
var current = this_0.
|
|
294
|
+
if (!(numberToLong(this.r1e_1.d1e_1).z2(this.r1e_1.g1e_1.s()).e1(toLong(this.s1e_1)) < 0 && this.r1e_1.i1e_1.kotlinx$atomicfu$value == null)) {
|
|
295
|
+
var current = this_0.f1e_1.kotlinx$atomicfu$value;
|
|
296
296
|
var tmp_1;
|
|
297
297
|
if (current instanceof Read) {
|
|
298
|
-
tmp_1 = this_0.
|
|
298
|
+
tmp_1 = this_0.f1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
299
299
|
} else {
|
|
300
300
|
tmp_1 = false;
|
|
301
301
|
}
|
|
302
302
|
if (tmp_1) {
|
|
303
|
-
current.
|
|
303
|
+
current.x1d();
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
while (false);
|
|
308
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
308
|
+
suspendResult = returnIfSuspended(cancellable.hs(), this);
|
|
309
309
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
310
310
|
return suspendResult;
|
|
311
311
|
}
|
|
@@ -315,11 +315,11 @@
|
|
|
315
315
|
this.d9_1 = 1;
|
|
316
316
|
continue $sm;
|
|
317
317
|
case 3:
|
|
318
|
-
if (this.
|
|
319
|
-
moveFlushToReadBuffer(this.
|
|
318
|
+
if (this.r1e_1.g1e_1.s().e1(new Long(1048576, 0)) < 0) {
|
|
319
|
+
moveFlushToReadBuffer(this.r1e_1);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
return this.
|
|
322
|
+
return this.r1e_1.g1e_1.s().e1(toLong(this.s1e_1)) >= 0;
|
|
323
323
|
case 4:
|
|
324
324
|
throw this.g9_1;
|
|
325
325
|
}
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
};
|
|
337
337
|
function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
338
338
|
CoroutineImpl.call(this, resultContinuation);
|
|
339
|
-
this.
|
|
339
|
+
this.c1f_1 = _this__u8e3s4;
|
|
340
340
|
}
|
|
341
341
|
protoOf($flushCOROUTINE$1).l9 = function () {
|
|
342
342
|
var suspendResult = this.f9_1;
|
|
@@ -346,41 +346,41 @@
|
|
|
346
346
|
switch (tmp) {
|
|
347
347
|
case 0:
|
|
348
348
|
this.e9_1 = 4;
|
|
349
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
350
|
-
this.
|
|
351
|
-
if (this.
|
|
349
|
+
rethrowCloseCauseIfNeeded_1(this.c1f_1);
|
|
350
|
+
this.c1f_1.e1f();
|
|
351
|
+
if (this.c1f_1.d1e_1 < 1048576)
|
|
352
352
|
return Unit_instance;
|
|
353
353
|
var tmp_0 = this;
|
|
354
|
-
tmp_0.
|
|
354
|
+
tmp_0.d1f_1 = this.c1f_1;
|
|
355
355
|
this.d9_1 = 1;
|
|
356
356
|
continue $sm;
|
|
357
357
|
case 1:
|
|
358
|
-
if (!(this.
|
|
358
|
+
if (!(this.c1f_1.d1e_1 >= 1048576 && this.c1f_1.i1e_1.kotlinx$atomicfu$value == null)) {
|
|
359
359
|
this.d9_1 = 3;
|
|
360
360
|
continue $sm;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
this.d9_1 = 2;
|
|
364
364
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
365
|
-
cancellable.
|
|
365
|
+
cancellable.zr();
|
|
366
366
|
l$ret$1: do {
|
|
367
|
-
var this_0 = this.
|
|
367
|
+
var this_0 = this.d1f_1;
|
|
368
368
|
var slot = new Write(cancellable);
|
|
369
|
-
var previous = this_0.
|
|
369
|
+
var previous = this_0.f1e_1.kotlinx$atomicfu$value;
|
|
370
370
|
if (!(previous instanceof Closed)) {
|
|
371
|
-
if (!this_0.
|
|
372
|
-
slot.
|
|
371
|
+
if (!this_0.f1e_1.atomicfu$compareAndSet(previous, slot)) {
|
|
372
|
+
slot.x1d();
|
|
373
373
|
break l$ret$1;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
if (previous instanceof Write) {
|
|
377
|
-
previous.
|
|
377
|
+
previous.y1d(new ConcurrentIOException(slot.w1d()));
|
|
378
378
|
} else {
|
|
379
379
|
if (isInterface(previous, Task)) {
|
|
380
|
-
previous.
|
|
380
|
+
previous.x1d();
|
|
381
381
|
} else {
|
|
382
382
|
if (previous instanceof Closed) {
|
|
383
|
-
slot.
|
|
383
|
+
slot.y1d(previous.u1d_1);
|
|
384
384
|
break l$ret$1;
|
|
385
385
|
} else {
|
|
386
386
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -389,21 +389,21 @@
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
if (!(this.
|
|
393
|
-
var current = this_0.
|
|
392
|
+
if (!(this.c1f_1.d1e_1 >= 1048576 && this.c1f_1.i1e_1.kotlinx$atomicfu$value == null)) {
|
|
393
|
+
var current = this_0.f1e_1.kotlinx$atomicfu$value;
|
|
394
394
|
var tmp_1;
|
|
395
395
|
if (current instanceof Write) {
|
|
396
|
-
tmp_1 = this_0.
|
|
396
|
+
tmp_1 = this_0.f1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
397
397
|
} else {
|
|
398
398
|
tmp_1 = false;
|
|
399
399
|
}
|
|
400
400
|
if (tmp_1) {
|
|
401
|
-
current.
|
|
401
|
+
current.x1d();
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
while (false);
|
|
406
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
406
|
+
suspendResult = returnIfSuspended(cancellable.hs(), this);
|
|
407
407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
408
408
|
return suspendResult;
|
|
409
409
|
}
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
};
|
|
431
431
|
function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
432
432
|
CoroutineImpl.call(this, resultContinuation);
|
|
433
|
-
this.
|
|
433
|
+
this.n1f_1 = _this__u8e3s4;
|
|
434
434
|
}
|
|
435
435
|
protoOf($flushAndCloseCOROUTINE$2).l9 = function () {
|
|
436
436
|
var suspendResult = this.f9_1;
|
|
@@ -441,21 +441,21 @@
|
|
|
441
441
|
case 0:
|
|
442
442
|
this.e9_1 = 4;
|
|
443
443
|
var tmp_0 = this;
|
|
444
|
-
tmp_0.
|
|
444
|
+
tmp_0.o1f_1 = this.n1f_1;
|
|
445
445
|
this.e9_1 = 2;
|
|
446
446
|
var tmp_1 = this;
|
|
447
|
-
tmp_1.
|
|
447
|
+
tmp_1.q1f_1 = Companion_instance;
|
|
448
448
|
var tmp_2 = this;
|
|
449
|
-
tmp_2.
|
|
449
|
+
tmp_2.r1f_1 = this.o1f_1;
|
|
450
450
|
this.d9_1 = 1;
|
|
451
|
-
suspendResult = this.
|
|
451
|
+
suspendResult = this.r1f_1.s1f(this);
|
|
452
452
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
453
453
|
return suspendResult;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
continue $sm;
|
|
457
457
|
case 1:
|
|
458
|
-
this.
|
|
458
|
+
this.p1f_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
459
459
|
this.e9_1 = 4;
|
|
460
460
|
this.d9_1 = 3;
|
|
461
461
|
continue $sm;
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
if (tmp_3 instanceof Error) {
|
|
466
466
|
var e = this.g9_1;
|
|
467
467
|
var tmp_4 = this;
|
|
468
|
-
tmp_4.
|
|
468
|
+
tmp_4.p1f_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
469
469
|
this.d9_1 = 3;
|
|
470
470
|
continue $sm;
|
|
471
471
|
} else {
|
|
@@ -474,9 +474,9 @@
|
|
|
474
474
|
|
|
475
475
|
case 3:
|
|
476
476
|
this.e9_1 = 4;
|
|
477
|
-
if (!this.
|
|
477
|
+
if (!this.n1f_1.i1e_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
closeSlot(this.
|
|
479
|
+
closeSlot(this.n1f_1, null);
|
|
480
480
|
return Unit_instance;
|
|
481
481
|
case 4:
|
|
482
482
|
throw this.g9_1;
|
|
@@ -494,17 +494,17 @@
|
|
|
494
494
|
};
|
|
495
495
|
function ByteChannel(autoFlush) {
|
|
496
496
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
497
|
-
this.
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
501
|
-
this.
|
|
502
|
-
this.f1e_1 = new Buffer();
|
|
497
|
+
this.b1e_1 = autoFlush;
|
|
498
|
+
this.c1e_1 = new Buffer();
|
|
499
|
+
this.d1e_1 = 0;
|
|
500
|
+
this.e1e_1 = new Object();
|
|
501
|
+
this.f1e_1 = atomic$ref$1(Empty_instance);
|
|
503
502
|
this.g1e_1 = new Buffer();
|
|
504
|
-
this.h1e_1 =
|
|
503
|
+
this.h1e_1 = new Buffer();
|
|
504
|
+
this.i1e_1 = atomic$ref$1(null);
|
|
505
505
|
}
|
|
506
|
-
protoOf(ByteChannel).
|
|
507
|
-
var tmp0_safe_receiver = this.
|
|
506
|
+
protoOf(ByteChannel).t1f = function () {
|
|
507
|
+
var tmp0_safe_receiver = this.u1f();
|
|
508
508
|
if (tmp0_safe_receiver == null)
|
|
509
509
|
null;
|
|
510
510
|
else {
|
|
@@ -512,13 +512,13 @@
|
|
|
512
512
|
// Inline function 'kotlin.contracts.contract' call
|
|
513
513
|
throw tmp0_safe_receiver;
|
|
514
514
|
}
|
|
515
|
-
if (this.
|
|
515
|
+
if (this.g1e_1.u1a()) {
|
|
516
516
|
moveFlushToReadBuffer(this);
|
|
517
517
|
}
|
|
518
|
-
return this.
|
|
518
|
+
return this.g1e_1;
|
|
519
519
|
};
|
|
520
|
-
protoOf(ByteChannel).
|
|
521
|
-
var tmp0_safe_receiver = this.
|
|
520
|
+
protoOf(ByteChannel).v1f = function () {
|
|
521
|
+
var tmp0_safe_receiver = this.u1f();
|
|
522
522
|
if (tmp0_safe_receiver == null)
|
|
523
523
|
null;
|
|
524
524
|
else {
|
|
@@ -526,64 +526,64 @@
|
|
|
526
526
|
// Inline function 'kotlin.contracts.contract' call
|
|
527
527
|
throw tmp0_safe_receiver;
|
|
528
528
|
}
|
|
529
|
-
if (this.
|
|
529
|
+
if (this.w1f()) {
|
|
530
530
|
throw IOException_init_$Create$('Channel is closed for write');
|
|
531
531
|
}
|
|
532
|
-
return this.
|
|
532
|
+
return this.h1e_1;
|
|
533
533
|
};
|
|
534
|
-
protoOf(ByteChannel).
|
|
535
|
-
var tmp0_safe_receiver = this.
|
|
534
|
+
protoOf(ByteChannel).u1f = function () {
|
|
535
|
+
var tmp0_safe_receiver = this.i1e_1.kotlinx$atomicfu$value;
|
|
536
536
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u9();
|
|
537
537
|
};
|
|
538
|
-
protoOf(ByteChannel).
|
|
539
|
-
return !(this.
|
|
538
|
+
protoOf(ByteChannel).w1f = function () {
|
|
539
|
+
return !(this.i1e_1.kotlinx$atomicfu$value == null);
|
|
540
540
|
};
|
|
541
|
-
protoOf(ByteChannel).
|
|
542
|
-
return !(this.
|
|
541
|
+
protoOf(ByteChannel).y1f = function () {
|
|
542
|
+
return !(this.u1f() == null) || (this.w1f() && this.d1e_1 === 0 && this.g1e_1.u1a());
|
|
543
543
|
};
|
|
544
|
-
protoOf(ByteChannel).
|
|
544
|
+
protoOf(ByteChannel).z1f = function (min, $completion) {
|
|
545
545
|
var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
|
|
546
546
|
tmp.f9_1 = Unit_instance;
|
|
547
547
|
tmp.g9_1 = null;
|
|
548
548
|
return tmp.l9();
|
|
549
549
|
};
|
|
550
|
-
protoOf(ByteChannel).
|
|
550
|
+
protoOf(ByteChannel).s1f = function ($completion) {
|
|
551
551
|
var tmp = new $flushCOROUTINE$1(this, $completion);
|
|
552
552
|
tmp.f9_1 = Unit_instance;
|
|
553
553
|
tmp.g9_1 = null;
|
|
554
554
|
return tmp.l9();
|
|
555
555
|
};
|
|
556
|
-
protoOf(ByteChannel).
|
|
557
|
-
if (this.
|
|
556
|
+
protoOf(ByteChannel).e1f = function () {
|
|
557
|
+
if (this.h1e_1.u1a())
|
|
558
558
|
return Unit_instance;
|
|
559
559
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
560
|
-
this.
|
|
561
|
-
var count = this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
560
|
+
this.e1e_1;
|
|
561
|
+
var count = this.h1e_1.s().j1();
|
|
562
|
+
this.c1e_1.k1c(this.h1e_1);
|
|
563
|
+
this.d1e_1 = this.d1e_1 + count | 0;
|
|
564
564
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
565
|
-
var current = this.
|
|
565
|
+
var current = this.f1e_1.kotlinx$atomicfu$value;
|
|
566
566
|
var tmp;
|
|
567
567
|
if (current instanceof Read) {
|
|
568
|
-
tmp = this.
|
|
568
|
+
tmp = this.f1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
569
569
|
} else {
|
|
570
570
|
tmp = false;
|
|
571
571
|
}
|
|
572
572
|
if (tmp) {
|
|
573
|
-
current.
|
|
573
|
+
current.x1d();
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
|
-
protoOf(ByteChannel).
|
|
576
|
+
protoOf(ByteChannel).b1g = function ($completion) {
|
|
577
577
|
var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
|
|
578
578
|
tmp.f9_1 = Unit_instance;
|
|
579
579
|
tmp.g9_1 = null;
|
|
580
580
|
return tmp.l9();
|
|
581
581
|
};
|
|
582
|
-
protoOf(ByteChannel).
|
|
583
|
-
if (!(this.
|
|
582
|
+
protoOf(ByteChannel).c1g = function (cause) {
|
|
583
|
+
if (!(this.i1e_1.kotlinx$atomicfu$value == null))
|
|
584
584
|
return Unit_instance;
|
|
585
585
|
var closedToken = new CloseToken(cause);
|
|
586
|
-
this.
|
|
586
|
+
this.i1e_1.atomicfu$compareAndSet(null, closedToken);
|
|
587
587
|
var actualCause = closedToken.u9();
|
|
588
588
|
closeSlot(this, actualCause);
|
|
589
589
|
};
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
var this_0 = new Buffer();
|
|
602
602
|
// Inline function 'kotlin.contracts.contract' call
|
|
603
603
|
// Inline function 'io.ktor.utils.io.ByteReadChannel.<anonymous>' call
|
|
604
|
-
this_0.
|
|
604
|
+
this_0.c1c(content, offset, offset + length | 0);
|
|
605
605
|
var source = this_0;
|
|
606
606
|
return ByteReadChannel_0(source);
|
|
607
607
|
}
|
|
@@ -609,27 +609,27 @@
|
|
|
609
609
|
return new SourceByteReadChannel(source);
|
|
610
610
|
}
|
|
611
611
|
function ByteReadChannel$Companion$Empty$1() {
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
612
|
+
this.d1g_1 = null;
|
|
613
|
+
this.e1g_1 = new Buffer();
|
|
614
614
|
}
|
|
615
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
616
|
-
return this.
|
|
615
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1f = function () {
|
|
616
|
+
return this.d1g_1;
|
|
617
617
|
};
|
|
618
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
618
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1f = function () {
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
622
|
-
return this.
|
|
621
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1f = function () {
|
|
622
|
+
return this.e1g_1;
|
|
623
623
|
};
|
|
624
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
624
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z1f = function (min, $completion) {
|
|
625
625
|
return false;
|
|
626
626
|
};
|
|
627
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
627
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c1g = function (cause) {
|
|
628
628
|
};
|
|
629
629
|
function Companion_0() {
|
|
630
630
|
Companion_instance_1 = this;
|
|
631
631
|
var tmp = this;
|
|
632
|
-
tmp.
|
|
632
|
+
tmp.f1g_1 = new ByteReadChannel$Companion$Empty$1();
|
|
633
633
|
}
|
|
634
634
|
var Companion_instance_1;
|
|
635
635
|
function Companion_getInstance_0() {
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
function ByteReadChannel_1() {
|
|
641
641
|
}
|
|
642
642
|
function cancel_0(_this__u8e3s4) {
|
|
643
|
-
_this__u8e3s4.
|
|
643
|
+
_this__u8e3s4.c1g(IOException_init_$Create$('Channel was cancelled'));
|
|
644
644
|
}
|
|
645
645
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
646
646
|
var tmp = new $readRemainingCOROUTINE$3(_this__u8e3s4, $completion);
|
|
@@ -649,7 +649,7 @@
|
|
|
649
649
|
return tmp.l9();
|
|
650
650
|
}
|
|
651
651
|
function get_availableForRead(_this__u8e3s4) {
|
|
652
|
-
return _this__u8e3s4.
|
|
652
|
+
return _this__u8e3s4.t1f().t1a().s().j1();
|
|
653
653
|
}
|
|
654
654
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
655
655
|
var tmp = new $readPacketCOROUTINE$4(_this__u8e3s4, packet, $completion);
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
return tmp.l9();
|
|
679
679
|
}
|
|
680
680
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
681
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
681
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1f();
|
|
682
682
|
if (tmp0_safe_receiver == null)
|
|
683
683
|
null;
|
|
684
684
|
else {
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
return tmp.l9();
|
|
695
695
|
}
|
|
696
696
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
697
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
697
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1f();
|
|
698
698
|
if (tmp0_safe_receiver == null)
|
|
699
699
|
null;
|
|
700
700
|
else {
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
707
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
707
|
+
var tmp0_safe_receiver = _this__u8e3s4.u1f();
|
|
708
708
|
if (tmp0_safe_receiver == null)
|
|
709
709
|
null;
|
|
710
710
|
else {
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
}
|
|
716
716
|
function $readRemainingCOROUTINE$3(_this__u8e3s4, resultContinuation) {
|
|
717
717
|
CoroutineImpl.call(this, resultContinuation);
|
|
718
|
-
this.
|
|
718
|
+
this.o1g_1 = _this__u8e3s4;
|
|
719
719
|
}
|
|
720
720
|
protoOf($readRemainingCOROUTINE$3).l9 = function () {
|
|
721
721
|
var suspendResult = this.f9_1;
|
|
@@ -725,18 +725,18 @@
|
|
|
725
725
|
switch (tmp) {
|
|
726
726
|
case 0:
|
|
727
727
|
this.e9_1 = 4;
|
|
728
|
-
this.
|
|
728
|
+
this.p1g_1 = BytePacketBuilder();
|
|
729
729
|
this.d9_1 = 1;
|
|
730
730
|
continue $sm;
|
|
731
731
|
case 1:
|
|
732
|
-
if (!!this.
|
|
732
|
+
if (!!this.o1g_1.y1f()) {
|
|
733
733
|
this.d9_1 = 3;
|
|
734
734
|
continue $sm;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
-
this.
|
|
737
|
+
this.p1g_1.k1c(this.o1g_1.t1f());
|
|
738
738
|
this.d9_1 = 2;
|
|
739
|
-
suspendResult = this.
|
|
739
|
+
suspendResult = this.o1g_1.a1g(VOID, this);
|
|
740
740
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
741
741
|
return suspendResult;
|
|
742
742
|
}
|
|
@@ -746,8 +746,8 @@
|
|
|
746
746
|
this.d9_1 = 1;
|
|
747
747
|
continue $sm;
|
|
748
748
|
case 3:
|
|
749
|
-
rethrowCloseCauseIfNeeded(this.
|
|
750
|
-
return this.
|
|
749
|
+
rethrowCloseCauseIfNeeded(this.o1g_1);
|
|
750
|
+
return this.p1g_1.t1a();
|
|
751
751
|
case 4:
|
|
752
752
|
throw this.g9_1;
|
|
753
753
|
}
|
|
@@ -764,8 +764,8 @@
|
|
|
764
764
|
};
|
|
765
765
|
function $readPacketCOROUTINE$4(_this__u8e3s4, packet, resultContinuation) {
|
|
766
766
|
CoroutineImpl.call(this, resultContinuation);
|
|
767
|
-
this.
|
|
768
|
-
this.
|
|
767
|
+
this.y1g_1 = _this__u8e3s4;
|
|
768
|
+
this.z1g_1 = packet;
|
|
769
769
|
}
|
|
770
770
|
protoOf($readPacketCOROUTINE$4).l9 = function () {
|
|
771
771
|
var suspendResult = this.f9_1;
|
|
@@ -775,18 +775,18 @@
|
|
|
775
775
|
switch (tmp) {
|
|
776
776
|
case 0:
|
|
777
777
|
this.e9_1 = 6;
|
|
778
|
-
this.
|
|
778
|
+
this.a1h_1 = new Buffer();
|
|
779
779
|
this.d9_1 = 1;
|
|
780
780
|
continue $sm;
|
|
781
781
|
case 1:
|
|
782
|
-
if (!(this.
|
|
782
|
+
if (!(this.a1h_1.s().e1(toLong(this.z1g_1)) < 0)) {
|
|
783
783
|
this.d9_1 = 5;
|
|
784
784
|
continue $sm;
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
-
if (this.
|
|
787
|
+
if (this.y1g_1.t1f().u1a()) {
|
|
788
788
|
this.d9_1 = 2;
|
|
789
|
-
suspendResult = this.
|
|
789
|
+
suspendResult = this.y1g_1.a1g(VOID, this);
|
|
790
790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
791
791
|
return suspendResult;
|
|
792
792
|
}
|
|
@@ -800,7 +800,7 @@
|
|
|
800
800
|
this.d9_1 = 3;
|
|
801
801
|
continue $sm;
|
|
802
802
|
case 3:
|
|
803
|
-
if (this.
|
|
803
|
+
if (this.y1g_1.y1f()) {
|
|
804
804
|
this.d9_1 = 5;
|
|
805
805
|
continue $sm;
|
|
806
806
|
} else {
|
|
@@ -809,20 +809,20 @@
|
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
case 4:
|
|
812
|
-
if (get_remaining(this.
|
|
813
|
-
this.
|
|
812
|
+
if (get_remaining(this.y1g_1.t1f()).e1(numberToLong(this.z1g_1).a3(this.a1h_1.s())) > 0) {
|
|
813
|
+
this.y1g_1.t1f().v1b(this.a1h_1, numberToLong(this.z1g_1).a3(this.a1h_1.s()));
|
|
814
814
|
} else {
|
|
815
|
-
this.
|
|
815
|
+
this.y1g_1.t1f().w1b(this.a1h_1);
|
|
816
816
|
}
|
|
817
817
|
|
|
818
818
|
this.d9_1 = 1;
|
|
819
819
|
continue $sm;
|
|
820
820
|
case 5:
|
|
821
|
-
if (this.
|
|
822
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
821
|
+
if (this.a1h_1.s().e1(toLong(this.z1g_1)) < 0) {
|
|
822
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.z1g_1 + ' bytes but only ' + this.a1h_1.s().toString() + ' available');
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
return this.
|
|
825
|
+
return this.a1h_1;
|
|
826
826
|
case 6:
|
|
827
827
|
throw this.g9_1;
|
|
828
828
|
}
|
|
@@ -839,10 +839,10 @@
|
|
|
839
839
|
};
|
|
840
840
|
function $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
841
841
|
CoroutineImpl.call(this, resultContinuation);
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
842
|
+
this.j1h_1 = _this__u8e3s4;
|
|
843
|
+
this.k1h_1 = buffer;
|
|
844
|
+
this.l1h_1 = offset;
|
|
845
|
+
this.m1h_1 = length;
|
|
846
846
|
}
|
|
847
847
|
protoOf($readAvailableCOROUTINE$7).l9 = function () {
|
|
848
848
|
var suspendResult = this.f9_1;
|
|
@@ -852,11 +852,11 @@
|
|
|
852
852
|
switch (tmp) {
|
|
853
853
|
case 0:
|
|
854
854
|
this.e9_1 = 3;
|
|
855
|
-
if (this.
|
|
855
|
+
if (this.j1h_1.y1f())
|
|
856
856
|
return -1;
|
|
857
|
-
if (this.
|
|
857
|
+
if (this.j1h_1.t1f().u1a()) {
|
|
858
858
|
this.d9_1 = 1;
|
|
859
|
-
suspendResult = this.
|
|
859
|
+
suspendResult = this.j1h_1.a1g(VOID, this);
|
|
860
860
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
861
861
|
return suspendResult;
|
|
862
862
|
}
|
|
@@ -870,9 +870,9 @@
|
|
|
870
870
|
this.d9_1 = 2;
|
|
871
871
|
continue $sm;
|
|
872
872
|
case 2:
|
|
873
|
-
if (this.
|
|
873
|
+
if (this.j1h_1.y1f())
|
|
874
874
|
return -1;
|
|
875
|
-
return readAvailable_0(this.
|
|
875
|
+
return readAvailable_0(this.j1h_1.t1f(), this.k1h_1, this.l1h_1, this.m1h_1);
|
|
876
876
|
case 3:
|
|
877
877
|
throw this.g9_1;
|
|
878
878
|
}
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
};
|
|
890
890
|
function $toByteArrayCOROUTINE$9(_this__u8e3s4, resultContinuation) {
|
|
891
891
|
CoroutineImpl.call(this, resultContinuation);
|
|
892
|
-
this.
|
|
892
|
+
this.v1h_1 = _this__u8e3s4;
|
|
893
893
|
}
|
|
894
894
|
protoOf($toByteArrayCOROUTINE$9).l9 = function () {
|
|
895
895
|
var suspendResult = this.f9_1;
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
case 0:
|
|
901
901
|
this.e9_1 = 2;
|
|
902
902
|
this.d9_1 = 1;
|
|
903
|
-
suspendResult = readBuffer(this.
|
|
903
|
+
suspendResult = readBuffer(this.v1h_1, this);
|
|
904
904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
905
|
return suspendResult;
|
|
906
906
|
}
|
|
@@ -925,9 +925,9 @@
|
|
|
925
925
|
};
|
|
926
926
|
function $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
927
927
|
CoroutineImpl.call(this, resultContinuation);
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
928
|
+
this.e1i_1 = _this__u8e3s4;
|
|
929
|
+
this.f1i_1 = channel;
|
|
930
|
+
this.g1i_1 = limit;
|
|
931
931
|
}
|
|
932
932
|
protoOf($copyToCOROUTINE$10).l9 = function () {
|
|
933
933
|
var suspendResult = this.f9_1;
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
switch (tmp) {
|
|
938
938
|
case 0:
|
|
939
939
|
this.e9_1 = 12;
|
|
940
|
-
this.
|
|
940
|
+
this.h1i_1 = this.g1i_1;
|
|
941
941
|
this.d9_1 = 1;
|
|
942
942
|
continue $sm;
|
|
943
943
|
case 1:
|
|
@@ -946,14 +946,14 @@
|
|
|
946
946
|
this.d9_1 = 2;
|
|
947
947
|
continue $sm;
|
|
948
948
|
case 2:
|
|
949
|
-
if (!(!this.
|
|
949
|
+
if (!(!this.e1i_1.y1f() && this.h1i_1.e1(new Long(0, 0)) > 0)) {
|
|
950
950
|
this.d9_1 = 6;
|
|
951
951
|
continue $sm;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
|
-
if (this.
|
|
954
|
+
if (this.e1i_1.t1f().u1a()) {
|
|
955
955
|
this.d9_1 = 3;
|
|
956
|
-
suspendResult = this.
|
|
956
|
+
suspendResult = this.e1i_1.a1g(VOID, this);
|
|
957
957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
958
958
|
return suspendResult;
|
|
959
959
|
}
|
|
@@ -968,13 +968,13 @@
|
|
|
968
968
|
continue $sm;
|
|
969
969
|
case 4:
|
|
970
970
|
var tmp_0 = this;
|
|
971
|
-
var a = this.
|
|
972
|
-
var b = get_remaining(this.
|
|
973
|
-
tmp_0.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
971
|
+
var a = this.h1i_1;
|
|
972
|
+
var b = get_remaining(this.e1i_1.t1f());
|
|
973
|
+
tmp_0.j1i_1 = a.e1(b) <= 0 ? a : b;
|
|
974
|
+
this.e1i_1.t1f().v1b(this.f1i_1.v1f(), this.j1i_1);
|
|
975
|
+
this.h1i_1 = this.h1i_1.a3(this.j1i_1);
|
|
976
976
|
this.d9_1 = 5;
|
|
977
|
-
suspendResult = this.
|
|
977
|
+
suspendResult = this.f1i_1.s1f(this);
|
|
978
978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
979
|
return suspendResult;
|
|
980
980
|
}
|
|
@@ -984,7 +984,7 @@
|
|
|
984
984
|
this.d9_1 = 2;
|
|
985
985
|
continue $sm;
|
|
986
986
|
case 6:
|
|
987
|
-
this.
|
|
987
|
+
this.i1i_1 = Unit_instance;
|
|
988
988
|
this.e9_1 = 12;
|
|
989
989
|
this.d9_1 = 10;
|
|
990
990
|
continue $sm;
|
|
@@ -992,38 +992,38 @@
|
|
|
992
992
|
this.e9_1 = 8;
|
|
993
993
|
var tmp_1 = this.g9_1;
|
|
994
994
|
if (tmp_1 instanceof Error) {
|
|
995
|
-
this.
|
|
995
|
+
this.k1i_1 = this.g9_1;
|
|
996
996
|
var tmp_2 = this;
|
|
997
|
-
this.
|
|
998
|
-
close(this.
|
|
999
|
-
throw this.
|
|
997
|
+
this.e1i_1.c1g(this.k1i_1);
|
|
998
|
+
close(this.f1i_1, this.k1i_1);
|
|
999
|
+
throw this.k1i_1;
|
|
1000
1000
|
} else {
|
|
1001
1001
|
throw this.g9_1;
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
case 8:
|
|
1005
1005
|
this.e9_1 = 12;
|
|
1006
|
-
this.
|
|
1006
|
+
this.l1i_1 = this.g9_1;
|
|
1007
1007
|
this.d9_1 = 9;
|
|
1008
|
-
suspendResult = this.
|
|
1008
|
+
suspendResult = this.f1i_1.s1f(this);
|
|
1009
1009
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1010
1010
|
return suspendResult;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
continue $sm;
|
|
1014
1014
|
case 9:
|
|
1015
|
-
throw this.
|
|
1015
|
+
throw this.l1i_1;
|
|
1016
1016
|
case 10:
|
|
1017
1017
|
this.e9_1 = 12;
|
|
1018
1018
|
this.d9_1 = 11;
|
|
1019
|
-
suspendResult = this.
|
|
1019
|
+
suspendResult = this.f1i_1.s1f(this);
|
|
1020
1020
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1021
1021
|
return suspendResult;
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
continue $sm;
|
|
1025
1025
|
case 11:
|
|
1026
|
-
return this.
|
|
1026
|
+
return this.g1i_1.a3(this.h1i_1);
|
|
1027
1027
|
case 12:
|
|
1028
1028
|
throw this.g9_1;
|
|
1029
1029
|
}
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
};
|
|
1041
1041
|
function $readBufferCOROUTINE$12(_this__u8e3s4, resultContinuation) {
|
|
1042
1042
|
CoroutineImpl.call(this, resultContinuation);
|
|
1043
|
-
this.
|
|
1043
|
+
this.u1i_1 = _this__u8e3s4;
|
|
1044
1044
|
}
|
|
1045
1045
|
protoOf($readBufferCOROUTINE$12).l9 = function () {
|
|
1046
1046
|
var suspendResult = this.f9_1;
|
|
@@ -1050,18 +1050,18 @@
|
|
|
1050
1050
|
switch (tmp) {
|
|
1051
1051
|
case 0:
|
|
1052
1052
|
this.e9_1 = 4;
|
|
1053
|
-
this.
|
|
1053
|
+
this.v1i_1 = new Buffer();
|
|
1054
1054
|
this.d9_1 = 1;
|
|
1055
1055
|
continue $sm;
|
|
1056
1056
|
case 1:
|
|
1057
|
-
if (!!this.
|
|
1057
|
+
if (!!this.u1i_1.y1f()) {
|
|
1058
1058
|
this.d9_1 = 3;
|
|
1059
1059
|
continue $sm;
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
|
-
this.
|
|
1062
|
+
this.v1i_1.k1c(this.u1i_1.t1f());
|
|
1063
1063
|
this.d9_1 = 2;
|
|
1064
|
-
suspendResult = this.
|
|
1064
|
+
suspendResult = this.u1i_1.a1g(VOID, this);
|
|
1065
1065
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1066
1066
|
return suspendResult;
|
|
1067
1067
|
}
|
|
@@ -1071,14 +1071,14 @@
|
|
|
1071
1071
|
this.d9_1 = 1;
|
|
1072
1072
|
continue $sm;
|
|
1073
1073
|
case 3:
|
|
1074
|
-
var tmp0_safe_receiver = this.
|
|
1074
|
+
var tmp0_safe_receiver = this.u1i_1.u1f();
|
|
1075
1075
|
if (tmp0_safe_receiver == null)
|
|
1076
1076
|
null;
|
|
1077
1077
|
else {
|
|
1078
1078
|
throw tmp0_safe_receiver;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.v1i_1;
|
|
1082
1082
|
case 4:
|
|
1083
1083
|
throw this.g9_1;
|
|
1084
1084
|
}
|
|
@@ -1101,7 +1101,7 @@
|
|
|
1101
1101
|
}
|
|
1102
1102
|
function $flushIfNeededCOROUTINE$14(_this__u8e3s4, resultContinuation) {
|
|
1103
1103
|
CoroutineImpl.call(this, resultContinuation);
|
|
1104
|
-
this.
|
|
1104
|
+
this.e1j_1 = _this__u8e3s4;
|
|
1105
1105
|
}
|
|
1106
1106
|
protoOf($flushIfNeededCOROUTINE$14).l9 = function () {
|
|
1107
1107
|
var suspendResult = this.f9_1;
|
|
@@ -1111,19 +1111,19 @@
|
|
|
1111
1111
|
switch (tmp) {
|
|
1112
1112
|
case 0:
|
|
1113
1113
|
this.e9_1 = 3;
|
|
1114
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1114
|
+
rethrowCloseCauseIfNeeded_0(this.e1j_1);
|
|
1115
1115
|
var tmp_0;
|
|
1116
|
-
var tmp_1 = this.
|
|
1116
|
+
var tmp_1 = this.e1j_1;
|
|
1117
1117
|
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
1118
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1118
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1e_1) === true) {
|
|
1119
1119
|
tmp_0 = true;
|
|
1120
1120
|
} else {
|
|
1121
|
-
tmp_0 = get_size(this.
|
|
1121
|
+
tmp_0 = get_size(this.e1j_1.v1f()) >= 1048576;
|
|
1122
1122
|
}
|
|
1123
1123
|
|
|
1124
1124
|
if (tmp_0) {
|
|
1125
1125
|
this.d9_1 = 1;
|
|
1126
|
-
suspendResult = this.
|
|
1126
|
+
suspendResult = this.e1j_1.s1f(this);
|
|
1127
1127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1128
1128
|
return suspendResult;
|
|
1129
1129
|
}
|
|
@@ -1158,11 +1158,11 @@
|
|
|
1158
1158
|
}
|
|
1159
1159
|
var NO_CALLBACK;
|
|
1160
1160
|
function WriterJob(channel, job) {
|
|
1161
|
-
this.
|
|
1162
|
-
this.
|
|
1161
|
+
this.f1j_1 = channel;
|
|
1162
|
+
this.g1j_1 = job;
|
|
1163
1163
|
}
|
|
1164
|
-
protoOf(WriterJob).
|
|
1165
|
-
return this.
|
|
1164
|
+
protoOf(WriterJob).it = function () {
|
|
1165
|
+
return this.g1j_1;
|
|
1166
1166
|
};
|
|
1167
1167
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
1168
1168
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1171,38 +1171,38 @@
|
|
|
1171
1171
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1172
1172
|
}
|
|
1173
1173
|
function WriterScope(channel, coroutineContext) {
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1174
|
+
this.h1j_1 = channel;
|
|
1175
|
+
this.i1j_1 = coroutineContext;
|
|
1176
1176
|
}
|
|
1177
|
-
protoOf(WriterScope).
|
|
1178
|
-
return this.
|
|
1177
|
+
protoOf(WriterScope).jn = function () {
|
|
1178
|
+
return this.i1j_1;
|
|
1179
1179
|
};
|
|
1180
1180
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
1181
1181
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
1182
1182
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
1183
|
-
_this__u8e3s4.
|
|
1183
|
+
_this__u8e3s4.v1f().c1c(value, startIndex, endIndex);
|
|
1184
1184
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1185
1185
|
}
|
|
1186
1186
|
function writePacket(_this__u8e3s4, copy, $completion) {
|
|
1187
|
-
_this__u8e3s4.
|
|
1187
|
+
_this__u8e3s4.v1f().k1c(copy);
|
|
1188
1188
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1189
1189
|
}
|
|
1190
1190
|
function get_isCompleted(_this__u8e3s4) {
|
|
1191
1191
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1192
|
-
return _this__u8e3s4.
|
|
1192
|
+
return _this__u8e3s4.it().eo();
|
|
1193
1193
|
}
|
|
1194
1194
|
function close(_this__u8e3s4, cause) {
|
|
1195
1195
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1196
1196
|
if (cause == null) {
|
|
1197
1197
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
1198
1198
|
} else {
|
|
1199
|
-
_this__u8e3s4.
|
|
1199
|
+
_this__u8e3s4.c1g(cause);
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
1203
1203
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1204
|
-
var tmp = _this__u8e3s4.
|
|
1205
|
-
tmp.
|
|
1204
|
+
var tmp = _this__u8e3s4.it();
|
|
1205
|
+
tmp.lo(invokeOnCompletion$lambda(block));
|
|
1206
1206
|
}
|
|
1207
1207
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1208
1208
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1211,7 +1211,7 @@
|
|
|
1211
1211
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
1212
1212
|
// Inline function 'kotlin.contracts.contract' call
|
|
1213
1213
|
// Inline function 'io.ktor.utils.io.writer.<anonymous>' call
|
|
1214
|
-
this_0.
|
|
1214
|
+
this_0.lo(writer$lambda(channel));
|
|
1215
1215
|
var job = this_0;
|
|
1216
1216
|
return new WriterJob(channel, job);
|
|
1217
1217
|
}
|
|
@@ -1220,10 +1220,10 @@
|
|
|
1220
1220
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
1221
1221
|
}
|
|
1222
1222
|
function NO_CALLBACK$1() {
|
|
1223
|
-
this.
|
|
1223
|
+
this.j1j_1 = EmptyCoroutineContext_getInstance();
|
|
1224
1224
|
}
|
|
1225
1225
|
protoOf(NO_CALLBACK$1).j9 = function () {
|
|
1226
|
-
return this.
|
|
1226
|
+
return this.j1j_1;
|
|
1227
1227
|
};
|
|
1228
1228
|
protoOf(NO_CALLBACK$1).k9 = function (result) {
|
|
1229
1229
|
return Unit_instance;
|
|
@@ -1232,18 +1232,18 @@
|
|
|
1232
1232
|
return this.k9(result);
|
|
1233
1233
|
};
|
|
1234
1234
|
function ByteWriteChannel$flushAndClose$ref($boundThis) {
|
|
1235
|
-
this.
|
|
1235
|
+
this.k1j_1 = $boundThis;
|
|
1236
1236
|
}
|
|
1237
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
1238
|
-
return this.
|
|
1237
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).l1j = function ($completion) {
|
|
1238
|
+
return this.k1j_1.b1g($completion);
|
|
1239
1239
|
};
|
|
1240
1240
|
protoOf(ByteWriteChannel$flushAndClose$ref).sa = function ($completion) {
|
|
1241
|
-
return this.
|
|
1241
|
+
return this.l1j($completion);
|
|
1242
1242
|
};
|
|
1243
1243
|
function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
|
|
1244
1244
|
var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
|
|
1245
1245
|
var l = function ($completion) {
|
|
1246
|
-
return i.
|
|
1246
|
+
return i.l1j($completion);
|
|
1247
1247
|
};
|
|
1248
1248
|
l.callableName = 'flushAndClose';
|
|
1249
1249
|
l.$arity = 0;
|
|
@@ -1256,18 +1256,18 @@
|
|
|
1256
1256
|
};
|
|
1257
1257
|
}
|
|
1258
1258
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1259
|
+
this.u1j_1 = $block;
|
|
1260
|
+
this.v1j_1 = $channel;
|
|
1261
1261
|
CoroutineImpl.call(this, resultContinuation);
|
|
1262
1262
|
}
|
|
1263
|
-
protoOf(writer$slambda).
|
|
1264
|
-
var tmp = this.
|
|
1263
|
+
protoOf(writer$slambda).l1k = function ($this$launch, $completion) {
|
|
1264
|
+
var tmp = this.m1k($this$launch, $completion);
|
|
1265
1265
|
tmp.f9_1 = Unit_instance;
|
|
1266
1266
|
tmp.g9_1 = null;
|
|
1267
1267
|
return tmp.l9();
|
|
1268
1268
|
};
|
|
1269
1269
|
protoOf(writer$slambda).v9 = function (p1, $completion) {
|
|
1270
|
-
return this.
|
|
1270
|
+
return this.l1k((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1271
1271
|
};
|
|
1272
1272
|
protoOf(writer$slambda).l9 = function () {
|
|
1273
1273
|
var suspendResult = this.f9_1;
|
|
@@ -1277,29 +1277,29 @@
|
|
|
1277
1277
|
switch (tmp) {
|
|
1278
1278
|
case 0:
|
|
1279
1279
|
this.e9_1 = 14;
|
|
1280
|
-
this.
|
|
1280
|
+
this.x1j_1 = Job(get_job(this.w1j_1.jn()));
|
|
1281
1281
|
this.d9_1 = 1;
|
|
1282
1282
|
continue $sm;
|
|
1283
1283
|
case 1:
|
|
1284
1284
|
this.e9_1 = 4;
|
|
1285
1285
|
this.e9_1 = 3;
|
|
1286
1286
|
this.d9_1 = 2;
|
|
1287
|
-
suspendResult = this.
|
|
1287
|
+
suspendResult = this.u1j_1(new WriterScope(this.v1j_1, this.w1j_1.jn().bh(this.x1j_1)), this);
|
|
1288
1288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1289
1289
|
return suspendResult;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
continue $sm;
|
|
1293
1293
|
case 2:
|
|
1294
|
-
this.
|
|
1294
|
+
this.x1j_1.eu();
|
|
1295
1295
|
var tmp_0 = this;
|
|
1296
1296
|
var tmp_1;
|
|
1297
|
-
if (get_job(this.
|
|
1298
|
-
this.
|
|
1297
|
+
if (get_job(this.w1j_1.jn()).fo()) {
|
|
1298
|
+
this.v1j_1.c1g(get_job(this.w1j_1.jn()).io());
|
|
1299
1299
|
tmp_1 = Unit_instance;
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
-
tmp_0.
|
|
1302
|
+
tmp_0.y1j_1 = tmp_1;
|
|
1303
1303
|
this.e9_1 = 14;
|
|
1304
1304
|
this.d9_1 = 9;
|
|
1305
1305
|
continue $sm;
|
|
@@ -1307,11 +1307,11 @@
|
|
|
1307
1307
|
this.e9_1 = 4;
|
|
1308
1308
|
var tmp_2 = this.g9_1;
|
|
1309
1309
|
if (tmp_2 instanceof Error) {
|
|
1310
|
-
this.
|
|
1310
|
+
this.z1j_1 = this.g9_1;
|
|
1311
1311
|
var tmp_3 = this;
|
|
1312
|
-
cancel(this.
|
|
1313
|
-
this.
|
|
1314
|
-
tmp_3.
|
|
1312
|
+
cancel(this.x1j_1, 'Exception thrown while writing to channel', this.z1j_1);
|
|
1313
|
+
this.v1j_1.c1g(this.z1j_1);
|
|
1314
|
+
tmp_3.y1j_1 = Unit_instance;
|
|
1315
1315
|
this.e9_1 = 14;
|
|
1316
1316
|
this.d9_1 = 9;
|
|
1317
1317
|
continue $sm;
|
|
@@ -1321,9 +1321,9 @@
|
|
|
1321
1321
|
|
|
1322
1322
|
case 4:
|
|
1323
1323
|
this.e9_1 = 14;
|
|
1324
|
-
this.
|
|
1324
|
+
this.a1k_1 = this.g9_1;
|
|
1325
1325
|
this.d9_1 = 5;
|
|
1326
|
-
suspendResult = this.
|
|
1326
|
+
suspendResult = this.x1j_1.fu(this);
|
|
1327
1327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1328
1328
|
return suspendResult;
|
|
1329
1329
|
}
|
|
@@ -1331,14 +1331,14 @@
|
|
|
1331
1331
|
continue $sm;
|
|
1332
1332
|
case 5:
|
|
1333
1333
|
var tmp_4 = this;
|
|
1334
|
-
tmp_4.
|
|
1334
|
+
tmp_4.b1k_1 = this.w1j_1;
|
|
1335
1335
|
this.e9_1 = 7;
|
|
1336
1336
|
var tmp_5 = this;
|
|
1337
|
-
tmp_5.
|
|
1337
|
+
tmp_5.d1k_1 = Companion_instance;
|
|
1338
1338
|
var tmp_6 = this;
|
|
1339
|
-
tmp_6.
|
|
1339
|
+
tmp_6.e1k_1 = this.b1k_1;
|
|
1340
1340
|
this.d9_1 = 6;
|
|
1341
|
-
suspendResult = this.
|
|
1341
|
+
suspendResult = this.v1j_1.b1g(this);
|
|
1342
1342
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1343
1343
|
return suspendResult;
|
|
1344
1344
|
}
|
|
@@ -1346,8 +1346,8 @@
|
|
|
1346
1346
|
continue $sm;
|
|
1347
1347
|
case 6:
|
|
1348
1348
|
var tmp_7 = this;
|
|
1349
|
-
tmp_7.
|
|
1350
|
-
this.
|
|
1349
|
+
tmp_7.f1k_1 = Unit_instance;
|
|
1350
|
+
this.c1k_1 = _Result___init__impl__xyqfz8(this.f1k_1);
|
|
1351
1351
|
this.e9_1 = 14;
|
|
1352
1352
|
this.d9_1 = 8;
|
|
1353
1353
|
continue $sm;
|
|
@@ -1355,10 +1355,10 @@
|
|
|
1355
1355
|
this.e9_1 = 14;
|
|
1356
1356
|
var tmp_8 = this.g9_1;
|
|
1357
1357
|
if (tmp_8 instanceof Error) {
|
|
1358
|
-
this.
|
|
1358
|
+
this.g1k_1 = this.g9_1;
|
|
1359
1359
|
var tmp_9 = this;
|
|
1360
|
-
var exception = this.
|
|
1361
|
-
tmp_9.
|
|
1360
|
+
var exception = this.g1k_1;
|
|
1361
|
+
tmp_9.c1k_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1362
1362
|
this.d9_1 = 8;
|
|
1363
1363
|
continue $sm;
|
|
1364
1364
|
} else {
|
|
@@ -1367,11 +1367,11 @@
|
|
|
1367
1367
|
|
|
1368
1368
|
case 8:
|
|
1369
1369
|
this.e9_1 = 14;
|
|
1370
|
-
throw this.
|
|
1370
|
+
throw this.a1k_1;
|
|
1371
1371
|
case 9:
|
|
1372
1372
|
this.e9_1 = 14;
|
|
1373
1373
|
this.d9_1 = 10;
|
|
1374
|
-
suspendResult = this.
|
|
1374
|
+
suspendResult = this.x1j_1.fu(this);
|
|
1375
1375
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1376
1376
|
return suspendResult;
|
|
1377
1377
|
}
|
|
@@ -1379,21 +1379,21 @@
|
|
|
1379
1379
|
continue $sm;
|
|
1380
1380
|
case 10:
|
|
1381
1381
|
var tmp_10 = this;
|
|
1382
|
-
tmp_10.
|
|
1382
|
+
tmp_10.h1k_1 = this.w1j_1;
|
|
1383
1383
|
this.e9_1 = 12;
|
|
1384
1384
|
var tmp_11 = this;
|
|
1385
|
-
tmp_11.
|
|
1385
|
+
tmp_11.j1k_1 = Companion_instance;
|
|
1386
1386
|
var tmp_12 = this;
|
|
1387
|
-
tmp_12.
|
|
1387
|
+
tmp_12.k1k_1 = this.h1k_1;
|
|
1388
1388
|
this.d9_1 = 11;
|
|
1389
|
-
suspendResult = this.
|
|
1389
|
+
suspendResult = this.v1j_1.b1g(this);
|
|
1390
1390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1391
1391
|
return suspendResult;
|
|
1392
1392
|
}
|
|
1393
1393
|
|
|
1394
1394
|
continue $sm;
|
|
1395
1395
|
case 11:
|
|
1396
|
-
this.
|
|
1396
|
+
this.i1k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
1397
1397
|
this.e9_1 = 14;
|
|
1398
1398
|
this.d9_1 = 13;
|
|
1399
1399
|
continue $sm;
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
if (tmp_13 instanceof Error) {
|
|
1404
1404
|
var e = this.g9_1;
|
|
1405
1405
|
var tmp_14 = this;
|
|
1406
|
-
tmp_14.
|
|
1406
|
+
tmp_14.i1k_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
1407
1407
|
this.d9_1 = 13;
|
|
1408
1408
|
continue $sm;
|
|
1409
1409
|
} else {
|
|
@@ -1427,15 +1427,15 @@
|
|
|
1427
1427
|
}
|
|
1428
1428
|
while (true);
|
|
1429
1429
|
};
|
|
1430
|
-
protoOf(writer$slambda).
|
|
1431
|
-
var i = new writer$slambda(this.
|
|
1432
|
-
i.
|
|
1430
|
+
protoOf(writer$slambda).m1k = function ($this$launch, completion) {
|
|
1431
|
+
var i = new writer$slambda(this.u1j_1, this.v1j_1, completion);
|
|
1432
|
+
i.w1j_1 = $this$launch;
|
|
1433
1433
|
return i;
|
|
1434
1434
|
};
|
|
1435
1435
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
1436
1436
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
1437
1437
|
var l = function ($this$launch, $completion) {
|
|
1438
|
-
return i.
|
|
1438
|
+
return i.l1k($this$launch, $completion);
|
|
1439
1439
|
};
|
|
1440
1440
|
l.$arity = 1;
|
|
1441
1441
|
return l;
|
|
@@ -1443,8 +1443,8 @@
|
|
|
1443
1443
|
function writer$lambda($channel) {
|
|
1444
1444
|
return function (it) {
|
|
1445
1445
|
var tmp;
|
|
1446
|
-
if (!(it == null) && !$channel.
|
|
1447
|
-
$channel.
|
|
1446
|
+
if (!(it == null) && !$channel.w1f()) {
|
|
1447
|
+
$channel.c1g(it);
|
|
1448
1448
|
tmp = Unit_instance;
|
|
1449
1449
|
}
|
|
1450
1450
|
return Unit_instance;
|
|
@@ -1471,7 +1471,7 @@
|
|
|
1471
1471
|
if (origin instanceof CancellationException) {
|
|
1472
1472
|
var tmp_1;
|
|
1473
1473
|
if (isInterface(origin, CopyableThrowable)) {
|
|
1474
|
-
tmp_1 = origin.
|
|
1474
|
+
tmp_1 = origin.nu();
|
|
1475
1475
|
} else {
|
|
1476
1476
|
var tmp0_elvis_lhs = origin.message;
|
|
1477
1477
|
tmp_1 = CancellationException_init_$Create$(tmp0_elvis_lhs == null ? 'Channel was cancelled' : tmp0_elvis_lhs, origin);
|
|
@@ -1485,37 +1485,37 @@
|
|
|
1485
1485
|
tmp_2 = false;
|
|
1486
1486
|
}
|
|
1487
1487
|
if (tmp_2) {
|
|
1488
|
-
tmp_0 = origin.
|
|
1488
|
+
tmp_0 = origin.nu();
|
|
1489
1489
|
} else {
|
|
1490
1490
|
var tmp1_elvis_lhs = origin.message;
|
|
1491
1491
|
tmp_0 = IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was closed' : tmp1_elvis_lhs, origin);
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
|
-
tmp.
|
|
1495
|
+
tmp.x1f_1 = tmp_0;
|
|
1496
1496
|
}
|
|
1497
1497
|
protoOf(CloseToken).u9 = function () {
|
|
1498
1498
|
var tmp;
|
|
1499
|
-
if (this.
|
|
1499
|
+
if (this.x1f_1 == null) {
|
|
1500
1500
|
tmp = null;
|
|
1501
1501
|
} else {
|
|
1502
|
-
var tmp_0 = this.
|
|
1502
|
+
var tmp_0 = this.x1f_1;
|
|
1503
1503
|
if (tmp_0 instanceof IOException) {
|
|
1504
1504
|
var tmp_1;
|
|
1505
|
-
var tmp_2 = this.
|
|
1505
|
+
var tmp_2 = this.x1f_1;
|
|
1506
1506
|
if (isInterface(tmp_2, CopyableThrowable)) {
|
|
1507
|
-
tmp_1 = this.
|
|
1507
|
+
tmp_1 = this.x1f_1.nu();
|
|
1508
1508
|
} else {
|
|
1509
|
-
tmp_1 = IOException_init_$Create$_0(this.
|
|
1509
|
+
tmp_1 = IOException_init_$Create$_0(this.x1f_1.message, this.x1f_1);
|
|
1510
1510
|
}
|
|
1511
1511
|
tmp = tmp_1;
|
|
1512
1512
|
} else {
|
|
1513
|
-
var tmp_3 = this.
|
|
1513
|
+
var tmp_3 = this.x1f_1;
|
|
1514
1514
|
if (!(tmp_3 == null) ? isInterface(tmp_3, CopyableThrowable) : false) {
|
|
1515
|
-
var tmp0_elvis_lhs = this.
|
|
1516
|
-
tmp = tmp0_elvis_lhs == null ? CancellationException_init_$Create$(this.
|
|
1515
|
+
var tmp0_elvis_lhs = this.x1f_1.nu();
|
|
1516
|
+
tmp = tmp0_elvis_lhs == null ? CancellationException_init_$Create$(this.x1f_1.message, this.x1f_1) : tmp0_elvis_lhs;
|
|
1517
1517
|
} else {
|
|
1518
|
-
tmp = CancellationException_init_$Create$(this.
|
|
1518
|
+
tmp = CancellationException_init_$Create$(this.x1f_1.message, this.x1f_1);
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
@@ -1532,18 +1532,18 @@
|
|
|
1532
1532
|
return readString(_this__u8e3s4);
|
|
1533
1533
|
}
|
|
1534
1534
|
function SourceByteReadChannel(source) {
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1535
|
+
this.n1k_1 = source;
|
|
1536
|
+
this.o1k_1 = null;
|
|
1537
1537
|
}
|
|
1538
|
-
protoOf(SourceByteReadChannel).
|
|
1539
|
-
var tmp0_safe_receiver = this.
|
|
1538
|
+
protoOf(SourceByteReadChannel).u1f = function () {
|
|
1539
|
+
var tmp0_safe_receiver = this.o1k_1;
|
|
1540
1540
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u9();
|
|
1541
1541
|
};
|
|
1542
|
-
protoOf(SourceByteReadChannel).
|
|
1543
|
-
return this.
|
|
1542
|
+
protoOf(SourceByteReadChannel).y1f = function () {
|
|
1543
|
+
return this.n1k_1.u1a();
|
|
1544
1544
|
};
|
|
1545
|
-
protoOf(SourceByteReadChannel).
|
|
1546
|
-
var tmp0_safe_receiver = this.
|
|
1545
|
+
protoOf(SourceByteReadChannel).t1f = function () {
|
|
1546
|
+
var tmp0_safe_receiver = this.u1f();
|
|
1547
1547
|
if (tmp0_safe_receiver == null)
|
|
1548
1548
|
null;
|
|
1549
1549
|
else {
|
|
@@ -1551,10 +1551,10 @@
|
|
|
1551
1551
|
// Inline function 'kotlin.contracts.contract' call
|
|
1552
1552
|
throw tmp0_safe_receiver;
|
|
1553
1553
|
}
|
|
1554
|
-
return this.
|
|
1554
|
+
return this.n1k_1;
|
|
1555
1555
|
};
|
|
1556
|
-
protoOf(SourceByteReadChannel).
|
|
1557
|
-
var tmp0_safe_receiver = this.
|
|
1556
|
+
protoOf(SourceByteReadChannel).z1f = function (min, $completion) {
|
|
1557
|
+
var tmp0_safe_receiver = this.u1f();
|
|
1558
1558
|
if (tmp0_safe_receiver == null)
|
|
1559
1559
|
null;
|
|
1560
1560
|
else {
|
|
@@ -1562,22 +1562,22 @@
|
|
|
1562
1562
|
// Inline function 'kotlin.contracts.contract' call
|
|
1563
1563
|
throw tmp0_safe_receiver;
|
|
1564
1564
|
}
|
|
1565
|
-
return get_remaining(this.
|
|
1565
|
+
return get_remaining(this.n1k_1).e1(toLong(min)) >= 0;
|
|
1566
1566
|
};
|
|
1567
|
-
protoOf(SourceByteReadChannel).
|
|
1568
|
-
if (!(this.
|
|
1567
|
+
protoOf(SourceByteReadChannel).c1g = function (cause) {
|
|
1568
|
+
if (!(this.o1k_1 == null))
|
|
1569
1569
|
return Unit_instance;
|
|
1570
|
-
this.
|
|
1570
|
+
this.n1k_1.p1c();
|
|
1571
1571
|
var tmp = this;
|
|
1572
1572
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
1573
|
-
tmp.
|
|
1573
|
+
tmp.o1k_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
1574
1574
|
};
|
|
1575
1575
|
function decode(_this__u8e3s4, input, max) {
|
|
1576
1576
|
max = max === VOID ? 2147483647 : max;
|
|
1577
1577
|
// Inline function 'kotlin.text.buildString' call
|
|
1578
1578
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1579
1579
|
var a = toLong(max);
|
|
1580
|
-
var b = input.
|
|
1580
|
+
var b = input.t1a().s();
|
|
1581
1581
|
var capacity = (a.e1(b) <= 0 ? a : b).j1();
|
|
1582
1582
|
// Inline function 'kotlin.contracts.contract' call
|
|
1583
1583
|
// Inline function 'kotlin.apply' call
|
|
@@ -1617,7 +1617,7 @@
|
|
|
1617
1617
|
return builder;
|
|
1618
1618
|
}
|
|
1619
1619
|
function canRead(_this__u8e3s4) {
|
|
1620
|
-
return !_this__u8e3s4.
|
|
1620
|
+
return !_this__u8e3s4.u1a();
|
|
1621
1621
|
}
|
|
1622
1622
|
function readBytes(_this__u8e3s4, count) {
|
|
1623
1623
|
count = count === VOID ? _this__u8e3s4.s().j1() : count;
|
|
@@ -1627,37 +1627,37 @@
|
|
|
1627
1627
|
return new Buffer();
|
|
1628
1628
|
}
|
|
1629
1629
|
function writePacket_0(_this__u8e3s4, packet) {
|
|
1630
|
-
_this__u8e3s4.
|
|
1630
|
+
_this__u8e3s4.k1c(packet);
|
|
1631
1631
|
}
|
|
1632
1632
|
function build(_this__u8e3s4) {
|
|
1633
|
-
return _this__u8e3s4.
|
|
1633
|
+
return _this__u8e3s4.t1a();
|
|
1634
1634
|
}
|
|
1635
1635
|
function get_size(_this__u8e3s4) {
|
|
1636
|
-
return _this__u8e3s4.
|
|
1636
|
+
return _this__u8e3s4.t1a().s().j1();
|
|
1637
1637
|
}
|
|
1638
1638
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
1639
1639
|
offset = offset === VOID ? 0 : offset;
|
|
1640
1640
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1641
|
-
_this__u8e3s4.
|
|
1641
|
+
_this__u8e3s4.c1c(buffer, offset, offset + length | 0);
|
|
1642
1642
|
}
|
|
1643
1643
|
var ByteReadPacketEmpty;
|
|
1644
1644
|
function get_remaining(_this__u8e3s4) {
|
|
1645
1645
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1646
|
-
return _this__u8e3s4.
|
|
1646
|
+
return _this__u8e3s4.t1a().s();
|
|
1647
1647
|
}
|
|
1648
1648
|
function discard(_this__u8e3s4, count) {
|
|
1649
1649
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
1650
1650
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1651
|
-
_this__u8e3s4.
|
|
1651
|
+
_this__u8e3s4.w1a(count);
|
|
1652
1652
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1653
1653
|
var b = get_remaining(_this__u8e3s4);
|
|
1654
1654
|
var countToDiscard = count.e1(b) <= 0 ? count : b;
|
|
1655
|
-
_this__u8e3s4.
|
|
1655
|
+
_this__u8e3s4.t1a().q1b(countToDiscard);
|
|
1656
1656
|
return countToDiscard;
|
|
1657
1657
|
}
|
|
1658
1658
|
function takeWhile(_this__u8e3s4, block) {
|
|
1659
1659
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1660
|
-
while (!_this__u8e3s4.
|
|
1660
|
+
while (!_this__u8e3s4.u1a() && block(_this__u8e3s4.t1a())) {
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
1663
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -1670,37 +1670,37 @@
|
|
|
1670
1670
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
1671
1671
|
offset = offset === VOID ? 0 : offset;
|
|
1672
1672
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1673
|
-
var result = _this__u8e3s4.
|
|
1673
|
+
var result = _this__u8e3s4.r1b(buffer, offset, offset + length | 0);
|
|
1674
1674
|
return result === -1 ? 0 : result;
|
|
1675
1675
|
}
|
|
1676
1676
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
1677
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1677
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
1678
1678
|
max = max === VOID ? 2147483647 : max;
|
|
1679
|
-
if (charset.equals(Charsets_getInstance().
|
|
1679
|
+
if (charset.equals(Charsets_getInstance().p1k_1)) {
|
|
1680
1680
|
if (max === 2147483647)
|
|
1681
1681
|
return readString(_this__u8e3s4);
|
|
1682
1682
|
// Inline function 'kotlin.math.min' call
|
|
1683
|
-
var a = _this__u8e3s4.
|
|
1683
|
+
var a = _this__u8e3s4.t1a().s();
|
|
1684
1684
|
var b = toLong(max);
|
|
1685
1685
|
var count = a.e1(b) <= 0 ? a : b;
|
|
1686
1686
|
return readString_0(_this__u8e3s4, count);
|
|
1687
1687
|
}
|
|
1688
|
-
return decode(charset.
|
|
1688
|
+
return decode(charset.s1k(), _this__u8e3s4, max);
|
|
1689
1689
|
}
|
|
1690
1690
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
1691
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1692
|
-
if (charset.equals(Charsets_getInstance().
|
|
1691
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
1692
|
+
if (charset.equals(Charsets_getInstance().p1k_1))
|
|
1693
1693
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
1694
|
-
return encodeToByteArray_0(charset.
|
|
1694
|
+
return encodeToByteArray_0(charset.t1k(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
1695
1695
|
}
|
|
1696
1696
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
1697
1697
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1698
1698
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
1699
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1700
|
-
if (charset === Charsets_getInstance().
|
|
1699
|
+
charset = charset === VOID ? Charsets_getInstance().p1k_1 : charset;
|
|
1700
|
+
if (charset === Charsets_getInstance().p1k_1) {
|
|
1701
1701
|
return writeString(_this__u8e3s4, toString_0(text), fromIndex, toIndex);
|
|
1702
1702
|
}
|
|
1703
|
-
encodeToImpl(charset.
|
|
1703
|
+
encodeToImpl(charset.t1k(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
1704
1704
|
}
|
|
1705
1705
|
function get_ByteArrayPool() {
|
|
1706
1706
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
function ByteArrayPool$1() {
|
|
1711
1711
|
DefaultPool.call(this, 128);
|
|
1712
1712
|
}
|
|
1713
|
-
protoOf(ByteArrayPool$1).
|
|
1713
|
+
protoOf(ByteArrayPool$1).x1k = function () {
|
|
1714
1714
|
return new Int8Array(4096);
|
|
1715
1715
|
};
|
|
1716
1716
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -1722,13 +1722,13 @@
|
|
|
1722
1722
|
}
|
|
1723
1723
|
function Companion_1() {
|
|
1724
1724
|
}
|
|
1725
|
-
protoOf(Companion_1).
|
|
1725
|
+
protoOf(Companion_1).g1l = function (name) {
|
|
1726
1726
|
switch (name) {
|
|
1727
1727
|
case 'UTF-8':
|
|
1728
1728
|
case 'utf-8':
|
|
1729
1729
|
case 'UTF8':
|
|
1730
1730
|
case 'utf8':
|
|
1731
|
-
return Charsets_getInstance().
|
|
1731
|
+
return Charsets_getInstance().p1k_1;
|
|
1732
1732
|
}
|
|
1733
1733
|
var tmp;
|
|
1734
1734
|
var tmp_0;
|
|
@@ -1769,11 +1769,11 @@
|
|
|
1769
1769
|
tmp = name === 'Latin1';
|
|
1770
1770
|
}
|
|
1771
1771
|
if (tmp) {
|
|
1772
|
-
return Charsets_getInstance().
|
|
1772
|
+
return Charsets_getInstance().q1k_1;
|
|
1773
1773
|
}
|
|
1774
1774
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
1775
1775
|
};
|
|
1776
|
-
protoOf(Companion_1).
|
|
1776
|
+
protoOf(Companion_1).h1l = function (charset) {
|
|
1777
1777
|
var tmp;
|
|
1778
1778
|
switch (charset) {
|
|
1779
1779
|
case 'UTF-8':
|
|
@@ -1832,7 +1832,7 @@
|
|
|
1832
1832
|
return Companion_instance_2;
|
|
1833
1833
|
}
|
|
1834
1834
|
function Charset(_name) {
|
|
1835
|
-
this.
|
|
1835
|
+
this.r1k_1 = _name;
|
|
1836
1836
|
}
|
|
1837
1837
|
protoOf(Charset).equals = function (other) {
|
|
1838
1838
|
if (this === other)
|
|
@@ -1841,21 +1841,21 @@
|
|
|
1841
1841
|
return false;
|
|
1842
1842
|
if (!(other instanceof Charset))
|
|
1843
1843
|
THROW_CCE();
|
|
1844
|
-
return this.
|
|
1844
|
+
return this.r1k_1 === other.r1k_1;
|
|
1845
1845
|
};
|
|
1846
1846
|
protoOf(Charset).hashCode = function () {
|
|
1847
|
-
return getStringHashCode(this.
|
|
1847
|
+
return getStringHashCode(this.r1k_1);
|
|
1848
1848
|
};
|
|
1849
1849
|
protoOf(Charset).toString = function () {
|
|
1850
|
-
return this.
|
|
1850
|
+
return this.r1k_1;
|
|
1851
1851
|
};
|
|
1852
1852
|
function get_name(_this__u8e3s4) {
|
|
1853
|
-
return _this__u8e3s4.
|
|
1853
|
+
return _this__u8e3s4.r1k_1;
|
|
1854
1854
|
}
|
|
1855
1855
|
function Charsets() {
|
|
1856
1856
|
Charsets_instance = this;
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1857
|
+
this.p1k_1 = new CharsetImpl('UTF-8');
|
|
1858
|
+
this.q1k_1 = new CharsetImpl('ISO-8859-1');
|
|
1859
1859
|
}
|
|
1860
1860
|
var Charsets_instance;
|
|
1861
1861
|
function Charsets_getInstance() {
|
|
@@ -1868,29 +1868,29 @@
|
|
|
1868
1868
|
captureStack(this, MalformedInputException);
|
|
1869
1869
|
}
|
|
1870
1870
|
function CharsetDecoder(_charset) {
|
|
1871
|
-
this.
|
|
1871
|
+
this.i1l_1 = _charset;
|
|
1872
1872
|
}
|
|
1873
1873
|
function CharsetEncoder(_charset) {
|
|
1874
|
-
this.
|
|
1874
|
+
this.j1l_1 = _charset;
|
|
1875
1875
|
}
|
|
1876
1876
|
function CharsetImpl(name) {
|
|
1877
1877
|
Charset.call(this, name);
|
|
1878
1878
|
}
|
|
1879
|
-
protoOf(CharsetImpl).
|
|
1879
|
+
protoOf(CharsetImpl).t1k = function () {
|
|
1880
1880
|
return new CharsetEncoderImpl(this);
|
|
1881
1881
|
};
|
|
1882
|
-
protoOf(CharsetImpl).
|
|
1882
|
+
protoOf(CharsetImpl).s1k = function () {
|
|
1883
1883
|
return new CharsetDecoderImpl(this);
|
|
1884
1884
|
};
|
|
1885
1885
|
function CharsetEncoderImpl(charset) {
|
|
1886
1886
|
CharsetEncoder.call(this, charset);
|
|
1887
|
-
this.
|
|
1887
|
+
this.m1l_1 = charset;
|
|
1888
1888
|
}
|
|
1889
1889
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
1890
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
1890
|
+
return 'CharsetEncoderImpl(charset=' + this.m1l_1.toString() + ')';
|
|
1891
1891
|
};
|
|
1892
1892
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
1893
|
-
return this.
|
|
1893
|
+
return this.m1l_1.hashCode();
|
|
1894
1894
|
};
|
|
1895
1895
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
1896
1896
|
if (this === other)
|
|
@@ -1898,19 +1898,19 @@
|
|
|
1898
1898
|
if (!(other instanceof CharsetEncoderImpl))
|
|
1899
1899
|
return false;
|
|
1900
1900
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
1901
|
-
if (!this.
|
|
1901
|
+
if (!this.m1l_1.equals(tmp0_other_with_cast.m1l_1))
|
|
1902
1902
|
return false;
|
|
1903
1903
|
return true;
|
|
1904
1904
|
};
|
|
1905
1905
|
function CharsetDecoderImpl(charset) {
|
|
1906
1906
|
CharsetDecoder.call(this, charset);
|
|
1907
|
-
this.
|
|
1907
|
+
this.o1l_1 = charset;
|
|
1908
1908
|
}
|
|
1909
1909
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
1910
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
1910
|
+
return 'CharsetDecoderImpl(charset=' + this.o1l_1.toString() + ')';
|
|
1911
1911
|
};
|
|
1912
1912
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
1913
|
-
return this.
|
|
1913
|
+
return this.o1l_1.hashCode();
|
|
1914
1914
|
};
|
|
1915
1915
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
1916
1916
|
if (this === other)
|
|
@@ -1918,7 +1918,7 @@
|
|
|
1918
1918
|
if (!(other instanceof CharsetDecoderImpl))
|
|
1919
1919
|
return false;
|
|
1920
1920
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
1921
|
-
if (!this.
|
|
1921
|
+
if (!this.o1l_1.equals(tmp0_other_with_cast.o1l_1))
|
|
1922
1922
|
return false;
|
|
1923
1923
|
return true;
|
|
1924
1924
|
};
|
|
@@ -1930,14 +1930,14 @@
|
|
|
1930
1930
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
1931
1931
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
1932
1932
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1933
|
-
var a = input.
|
|
1933
|
+
var a = input.t1a().s();
|
|
1934
1934
|
var b = toLong(max);
|
|
1935
1935
|
var count = a.e1(b) <= 0 ? a : b;
|
|
1936
1936
|
var tmp = readByteArray(input, count.j1());
|
|
1937
1937
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
1938
1938
|
var tmp_0;
|
|
1939
1939
|
try {
|
|
1940
|
-
tmp_0 = decoder.
|
|
1940
|
+
tmp_0 = decoder.p1l(array);
|
|
1941
1941
|
} catch ($p) {
|
|
1942
1942
|
var tmp_1;
|
|
1943
1943
|
if ($p instanceof Error) {
|
|
@@ -1968,7 +1968,7 @@
|
|
|
1968
1968
|
return readByteArray_0(dst);
|
|
1969
1969
|
}
|
|
1970
1970
|
function get_charset(_this__u8e3s4) {
|
|
1971
|
-
return _this__u8e3s4.
|
|
1971
|
+
return _this__u8e3s4.i1l_1;
|
|
1972
1972
|
}
|
|
1973
1973
|
function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
1974
1974
|
// Inline function 'kotlin.require' call
|
|
@@ -1980,12 +1980,12 @@
|
|
|
1980
1980
|
var message = 'Failed requirement.';
|
|
1981
1981
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1982
1982
|
}
|
|
1983
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
1983
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().q1k_1)) {
|
|
1984
1984
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
1985
1985
|
}
|
|
1986
1986
|
// Inline function 'kotlin.require' call
|
|
1987
1987
|
// Inline function 'kotlin.contracts.contract' call
|
|
1988
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
1988
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().p1k_1)) {
|
|
1989
1989
|
// Inline function 'io.ktor.utils.io.charsets.encodeImpl.<anonymous>' call
|
|
1990
1990
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
1991
1991
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
@@ -1996,17 +1996,17 @@
|
|
|
1996
1996
|
var result = encoder.encode(tmp$ret$2);
|
|
1997
1997
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1998
1998
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1999
|
-
dst.
|
|
1999
|
+
dst.f1c(result);
|
|
2000
2000
|
return result.length;
|
|
2001
2001
|
}
|
|
2002
2002
|
function get_charset_0(_this__u8e3s4) {
|
|
2003
|
-
return _this__u8e3s4.
|
|
2003
|
+
return _this__u8e3s4.j1l_1;
|
|
2004
2004
|
}
|
|
2005
2005
|
function forName(_this__u8e3s4, name) {
|
|
2006
|
-
return Companion_instance_2.
|
|
2006
|
+
return Companion_instance_2.g1l(name);
|
|
2007
2007
|
}
|
|
2008
2008
|
function isSupported(_this__u8e3s4, name) {
|
|
2009
|
-
return Companion_instance_2.
|
|
2009
|
+
return Companion_instance_2.h1l(name);
|
|
2010
2010
|
}
|
|
2011
2011
|
function Decoder(encoding, fatal) {
|
|
2012
2012
|
fatal = fatal === VOID ? true : fatal;
|
|
@@ -2041,10 +2041,10 @@
|
|
|
2041
2041
|
return this_0;
|
|
2042
2042
|
}
|
|
2043
2043
|
function toKtor$1($this_toKtor) {
|
|
2044
|
-
this.
|
|
2044
|
+
this.q1l_1 = $this_toKtor;
|
|
2045
2045
|
}
|
|
2046
|
-
protoOf(toKtor$1).
|
|
2047
|
-
return this.
|
|
2046
|
+
protoOf(toKtor$1).p1l = function (buffer) {
|
|
2047
|
+
return this.q1l_1.decode(buffer);
|
|
2048
2048
|
};
|
|
2049
2049
|
function get_ENCODING_ALIASES() {
|
|
2050
2050
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -2057,7 +2057,7 @@
|
|
|
2057
2057
|
}
|
|
2058
2058
|
var REPLACEMENT;
|
|
2059
2059
|
function TextDecoderFallback(encoding, fatal) {
|
|
2060
|
-
this.
|
|
2060
|
+
this.r1l_1 = fatal;
|
|
2061
2061
|
// Inline function 'kotlin.text.lowercase' call
|
|
2062
2062
|
// Inline function 'kotlin.text.trim' call
|
|
2063
2063
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2070,7 +2070,7 @@
|
|
|
2070
2070
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
protoOf(TextDecoderFallback).
|
|
2073
|
+
protoOf(TextDecoderFallback).p1l = function (buffer) {
|
|
2074
2074
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2075
2075
|
var builder = new Buffer();
|
|
2076
2076
|
// Inline function 'io.ktor.utils.io.charsets.TextDecoderFallback.decode.<anonymous>' call
|
|
@@ -2088,7 +2088,7 @@
|
|
|
2088
2088
|
if (point < 0) {
|
|
2089
2089
|
// Inline function 'kotlin.check' call
|
|
2090
2090
|
// Inline function 'kotlin.contracts.contract' call
|
|
2091
|
-
if (!!this.
|
|
2091
|
+
if (!!this.r1l_1) {
|
|
2092
2092
|
// Inline function 'io.ktor.utils.io.charsets.TextDecoderFallback.decode.<anonymous>.<anonymous>' call
|
|
2093
2093
|
var message = 'Invalid character: ' + point;
|
|
2094
2094
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
@@ -2097,9 +2097,9 @@
|
|
|
2097
2097
|
continue $l$loop;
|
|
2098
2098
|
}
|
|
2099
2099
|
if (point > 255) {
|
|
2100
|
-
builder.
|
|
2100
|
+
builder.l1c(toByte(point >> 8));
|
|
2101
2101
|
}
|
|
2102
|
-
builder.
|
|
2102
|
+
builder.l1c(toByte(point & 255));
|
|
2103
2103
|
}
|
|
2104
2104
|
while (inductionVariable < last);
|
|
2105
2105
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -2139,7 +2139,7 @@
|
|
|
2139
2139
|
if (character > 255) {
|
|
2140
2140
|
failedToMapError(character);
|
|
2141
2141
|
}
|
|
2142
|
-
dst.
|
|
2142
|
+
dst.l1c(toByte(character));
|
|
2143
2143
|
}
|
|
2144
2144
|
while (inductionVariable < toIndex);
|
|
2145
2145
|
return toIndex - fromIndex | 0;
|
|
@@ -2161,48 +2161,48 @@
|
|
|
2161
2161
|
}
|
|
2162
2162
|
}
|
|
2163
2163
|
function DefaultPool(capacity) {
|
|
2164
|
-
this.
|
|
2164
|
+
this.y1k_1 = capacity;
|
|
2165
2165
|
var tmp = this;
|
|
2166
2166
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
2167
|
-
var size = this.
|
|
2168
|
-
tmp.
|
|
2169
|
-
this.
|
|
2167
|
+
var size = this.y1k_1;
|
|
2168
|
+
tmp.z1k_1 = fillArrayVal(Array(size), null);
|
|
2169
|
+
this.a1l_1 = 0;
|
|
2170
2170
|
}
|
|
2171
|
-
protoOf(DefaultPool).a1l = function (instance) {
|
|
2172
|
-
};
|
|
2173
2171
|
protoOf(DefaultPool).b1l = function (instance) {
|
|
2174
|
-
return instance;
|
|
2175
2172
|
};
|
|
2176
2173
|
protoOf(DefaultPool).c1l = function (instance) {
|
|
2174
|
+
return instance;
|
|
2175
|
+
};
|
|
2176
|
+
protoOf(DefaultPool).d1l = function (instance) {
|
|
2177
2177
|
};
|
|
2178
|
-
protoOf(DefaultPool).
|
|
2179
|
-
if (this.
|
|
2180
|
-
return this.
|
|
2181
|
-
this.
|
|
2182
|
-
var idx = this.
|
|
2183
|
-
var tmp = this.
|
|
2178
|
+
protoOf(DefaultPool).e1l = function () {
|
|
2179
|
+
if (this.a1l_1 === 0)
|
|
2180
|
+
return this.x1k();
|
|
2181
|
+
this.a1l_1 = this.a1l_1 - 1 | 0;
|
|
2182
|
+
var idx = this.a1l_1;
|
|
2183
|
+
var tmp = this.z1k_1[idx];
|
|
2184
2184
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
2185
|
-
this.
|
|
2186
|
-
return this.
|
|
2185
|
+
this.z1k_1[idx] = null;
|
|
2186
|
+
return this.c1l(instance);
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(DefaultPool).
|
|
2189
|
-
this.
|
|
2190
|
-
if (this.
|
|
2191
|
-
this.
|
|
2188
|
+
protoOf(DefaultPool).f1l = function (instance) {
|
|
2189
|
+
this.d1l(instance);
|
|
2190
|
+
if (this.a1l_1 === this.y1k_1) {
|
|
2191
|
+
this.b1l(instance);
|
|
2192
2192
|
} else {
|
|
2193
|
-
var _unary__edvuaz = this.
|
|
2194
|
-
this.
|
|
2195
|
-
this.
|
|
2193
|
+
var _unary__edvuaz = this.a1l_1;
|
|
2194
|
+
this.a1l_1 = _unary__edvuaz + 1 | 0;
|
|
2195
|
+
this.z1k_1[_unary__edvuaz] = instance;
|
|
2196
2196
|
}
|
|
2197
2197
|
};
|
|
2198
2198
|
//region block: post-declaration
|
|
2199
|
-
protoOf(Read).
|
|
2200
|
-
protoOf(Read).
|
|
2201
|
-
protoOf(Write).
|
|
2202
|
-
protoOf(Write).
|
|
2203
|
-
protoOf(ByteChannel).
|
|
2204
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
2205
|
-
protoOf(SourceByteReadChannel).
|
|
2199
|
+
protoOf(Read).x1d = resume;
|
|
2200
|
+
protoOf(Read).y1d = resume_0;
|
|
2201
|
+
protoOf(Write).x1d = resume;
|
|
2202
|
+
protoOf(Write).y1d = resume_0;
|
|
2203
|
+
protoOf(ByteChannel).a1g = awaitContent$default;
|
|
2204
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1g = awaitContent$default;
|
|
2205
|
+
protoOf(SourceByteReadChannel).a1g = awaitContent$default;
|
|
2206
2206
|
//endregion
|
|
2207
2207
|
//region block: init
|
|
2208
2208
|
Empty_instance = new Empty();
|