@cruglobal/godtools-shared 1.0.2-SNAPSHOT.1508 → 1.0.2-SNAPSHOT.1514
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/Kermit-kermit-core.js +36 -36
- package/Kermit-kermit.js +5 -5
- package/antlr-kotlin-antlr-kotlin-runtime.js +2842 -2842
- package/colormath-root-colormath.js +753 -753
- package/fluid-locale.js +125 -125
- package/kotlin-kotlin-stdlib.js +8 -8
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +384 -384
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +1914 -1914
- package/kotlin-mpp-godtools-tool-parser-module-state.js +104 -104
- package/kotlinx-coroutines-core.js +822 -875
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
43
43
|
var createCoroutineUnintercepted = kotlin_kotlin.$_$.w4;
|
|
44
44
|
var interfaceMeta = kotlin_kotlin.$_$.d6;
|
|
45
|
+
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
45
46
|
var isInterface = kotlin_kotlin.$_$.g6;
|
|
46
47
|
var toString_0 = kotlin_kotlin.$_$.q9;
|
|
47
48
|
var objectMeta = kotlin_kotlin.$_$.n6;
|
|
@@ -79,7 +80,6 @@
|
|
|
79
80
|
var minusKey_0 = kotlin_kotlin.$_$.g5;
|
|
80
81
|
var anyToString = kotlin_kotlin.$_$.n5;
|
|
81
82
|
var UnsupportedOperationException = kotlin_kotlin.$_$.g9;
|
|
82
|
-
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
83
83
|
var atomicfu$AtomicRefArray$ofNulls = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
|
|
84
84
|
var ensureNotNull = kotlin_kotlin.$_$.j9;
|
|
85
85
|
var toLong = kotlin_kotlin.$_$.r6;
|
|
@@ -135,24 +135,17 @@
|
|
|
135
135
|
}
|
|
136
136
|
return tmp;
|
|
137
137
|
}
|
|
138
|
-
function invokeOnCompletion$default(onCancelling, invokeImmediately, handler, $super) {
|
|
139
|
-
onCancelling = onCancelling === VOID ? false : onCancelling;
|
|
140
|
-
invokeImmediately = invokeImmediately === VOID ? true : invokeImmediately;
|
|
141
|
-
return $super === VOID ? this.bk(onCancelling, invokeImmediately, handler) : $super.bk.call(this, onCancelling, invokeImmediately, handler);
|
|
142
|
-
}
|
|
143
138
|
setMetadataFor(Job, 'Job', interfaceMeta, VOID, [Element], VOID, VOID, VOID, [0]);
|
|
144
139
|
setMetadataFor(ParentJob, 'ParentJob', interfaceMeta, VOID, [Job], VOID, VOID, VOID, [0]);
|
|
145
140
|
setMetadataFor(JobSupport, 'JobSupport', classMeta, VOID, [Job, ParentJob], VOID, VOID, VOID, [0]);
|
|
146
141
|
setMetadataFor(CoroutineScope, 'CoroutineScope', interfaceMeta);
|
|
147
142
|
setMetadataFor(AbstractCoroutine, 'AbstractCoroutine', classMeta, JobSupport, [JobSupport, Job, Continuation, CoroutineScope], VOID, VOID, VOID, [0]);
|
|
148
|
-
setMetadataFor(CancelHandlerBase, 'CancelHandlerBase', classMeta);
|
|
149
143
|
setMetadataFor(NotCompleted, 'NotCompleted', interfaceMeta);
|
|
150
|
-
setMetadataFor(CancelHandler, 'CancelHandler',
|
|
151
|
-
setMetadataFor(DisposeHandlersOnCancel, 'DisposeHandlersOnCancel', classMeta, CancelHandler);
|
|
144
|
+
setMetadataFor(CancelHandler, 'CancelHandler', interfaceMeta, VOID, [NotCompleted]);
|
|
145
|
+
setMetadataFor(DisposeHandlersOnCancel, 'DisposeHandlersOnCancel', classMeta, VOID, [CancelHandler]);
|
|
152
146
|
setMetadataFor(LinkedListNode, 'LinkedListNode', classMeta, VOID, VOID, LinkedListNode);
|
|
153
|
-
setMetadataFor(CompletionHandlerBase, 'CompletionHandlerBase', classMeta, LinkedListNode);
|
|
154
147
|
setMetadataFor(Incomplete, 'Incomplete', interfaceMeta);
|
|
155
|
-
setMetadataFor(JobNode, 'JobNode', classMeta,
|
|
148
|
+
setMetadataFor(JobNode, 'JobNode', classMeta, LinkedListNode, [LinkedListNode, Incomplete]);
|
|
156
149
|
setMetadataFor(AwaitAllNode, 'AwaitAllNode', classMeta, JobNode);
|
|
157
150
|
setMetadataFor(AwaitAll, 'AwaitAll', classMeta, VOID, VOID, VOID, VOID, VOID, [0]);
|
|
158
151
|
setMetadataFor($awaitAllCOROUTINE$0, '$awaitAllCOROUTINE$0', classMeta, CoroutineImpl);
|
|
@@ -163,7 +156,7 @@
|
|
|
163
156
|
setMetadataFor(DeferredCoroutine, 'DeferredCoroutine', classMeta, AbstractCoroutine, [AbstractCoroutine, Job], VOID, VOID, VOID, [0]);
|
|
164
157
|
setMetadataFor(LazyDeferredCoroutine, 'LazyDeferredCoroutine', classMeta, DeferredCoroutine, VOID, VOID, VOID, VOID, [0]);
|
|
165
158
|
setMetadataFor(CancellableContinuation, 'CancellableContinuation', interfaceMeta, VOID, [Continuation]);
|
|
166
|
-
setMetadataFor(DisposeOnCancel, 'DisposeOnCancel', classMeta, CancelHandler);
|
|
159
|
+
setMetadataFor(DisposeOnCancel, 'DisposeOnCancel', classMeta, VOID, [CancelHandler]);
|
|
167
160
|
setMetadataFor(Runnable, 'Runnable', interfaceMeta);
|
|
168
161
|
setMetadataFor(SchedulerTask, 'SchedulerTask', classMeta, VOID, [Runnable]);
|
|
169
162
|
setMetadataFor(DispatchedTask, 'DispatchedTask', classMeta, SchedulerTask);
|
|
@@ -171,7 +164,7 @@
|
|
|
171
164
|
setMetadataFor(CancellableContinuationImpl, 'CancellableContinuationImpl', classMeta, DispatchedTask, [DispatchedTask, CancellableContinuation, Waiter]);
|
|
172
165
|
setMetadataFor(Active, 'Active', objectMeta, VOID, [NotCompleted]);
|
|
173
166
|
setMetadataFor(CompletedContinuation, 'CompletedContinuation', classMeta);
|
|
174
|
-
setMetadataFor(
|
|
167
|
+
setMetadataFor(UserSupplied, 'UserSupplied', classMeta);
|
|
175
168
|
setMetadataFor(CompletedExceptionally, 'CompletedExceptionally', classMeta);
|
|
176
169
|
setMetadataFor(CancelledContinuation, 'CancelledContinuation', classMeta, CompletedExceptionally);
|
|
177
170
|
setMetadataFor(CompletedWithCancellation, 'CompletedWithCancellation', classMeta);
|
|
@@ -215,6 +208,11 @@
|
|
|
215
208
|
setMetadataFor(BufferedChannelIterator, 'BufferedChannelIterator', classMeta, VOID, [Waiter], VOID, VOID, VOID, [0, 3]);
|
|
216
209
|
setMetadataFor($sendCOROUTINE$2, '$sendCOROUTINE$2', classMeta, CoroutineImpl);
|
|
217
210
|
setMetadataFor($receiveCatchingCOROUTINE$4, '$receiveCatchingCOROUTINE$4', classMeta, CoroutineImpl);
|
|
211
|
+
function close$default(cause, $super) {
|
|
212
|
+
cause = cause === VOID ? null : cause;
|
|
213
|
+
return $super === VOID ? this.bz(cause) : $super.bz.call(this, cause);
|
|
214
|
+
}
|
|
215
|
+
setMetadataFor(SendChannel, 'SendChannel', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
218
216
|
function cancel$default_0(cause, $super) {
|
|
219
217
|
cause = cause === VOID ? null : cause;
|
|
220
218
|
var tmp;
|
|
@@ -227,12 +225,7 @@
|
|
|
227
225
|
return tmp;
|
|
228
226
|
}
|
|
229
227
|
setMetadataFor(ReceiveChannel, 'ReceiveChannel', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]);
|
|
230
|
-
|
|
231
|
-
cause = cause === VOID ? null : cause;
|
|
232
|
-
return $super === VOID ? this.az(cause) : $super.az.call(this, cause);
|
|
233
|
-
}
|
|
234
|
-
setMetadataFor(SendChannel, 'SendChannel', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
235
|
-
setMetadataFor(BufferedChannel, 'BufferedChannel', classMeta, VOID, [ReceiveChannel, SendChannel], VOID, VOID, VOID, [1, 4, 0, 3]);
|
|
228
|
+
setMetadataFor(BufferedChannel, 'BufferedChannel', classMeta, VOID, [SendChannel, ReceiveChannel], VOID, VOID, VOID, [1, 4, 0, 3]);
|
|
236
229
|
setMetadataFor(WaiterEB, 'WaiterEB', classMeta);
|
|
237
230
|
setMetadataFor(ReceiveCatching, 'ReceiveCatching', classMeta, VOID, [Waiter]);
|
|
238
231
|
setMetadataFor(Factory, 'Factory', objectMeta);
|
|
@@ -242,7 +235,7 @@
|
|
|
242
235
|
setMetadataFor(ChannelResult, 'ChannelResult', classMeta);
|
|
243
236
|
setMetadataFor(ClosedSendChannelException, 'ClosedSendChannelException', classMeta, IllegalStateException);
|
|
244
237
|
setMetadataFor(ClosedReceiveChannelException, 'ClosedReceiveChannelException', classMeta, NoSuchElementException);
|
|
245
|
-
setMetadataFor(ChannelCoroutine, 'ChannelCoroutine', classMeta, AbstractCoroutine, [AbstractCoroutine,
|
|
238
|
+
setMetadataFor(ChannelCoroutine, 'ChannelCoroutine', classMeta, AbstractCoroutine, [AbstractCoroutine, SendChannel, ReceiveChannel], VOID, VOID, VOID, [0, 1]);
|
|
246
239
|
setMetadataFor(ConflatedBufferedChannel, 'ConflatedBufferedChannel', classMeta, BufferedChannel, VOID, VOID, VOID, VOID, [1, 0]);
|
|
247
240
|
setMetadataFor(ProducerScope, 'ProducerScope', interfaceMeta, VOID, [CoroutineScope, SendChannel], VOID, VOID, VOID, [1]);
|
|
248
241
|
setMetadataFor(ProducerCoroutine, 'ProducerCoroutine', classMeta, ChannelCoroutine, [ChannelCoroutine, ProducerScope], VOID, VOID, VOID, [0, 1]);
|
|
@@ -264,7 +257,7 @@
|
|
|
264
257
|
}
|
|
265
258
|
capacity = tmp;
|
|
266
259
|
onBufferOverflow = onBufferOverflow === VOID ? BufferOverflow_SUSPEND_getInstance() : onBufferOverflow;
|
|
267
|
-
return $super === VOID ? this.
|
|
260
|
+
return $super === VOID ? this.k13(context, capacity, onBufferOverflow) : $super.k13.call(this, context, capacity, onBufferOverflow);
|
|
268
261
|
}
|
|
269
262
|
setMetadataFor(FusibleFlow, 'FusibleFlow', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
270
263
|
setMetadataFor(SharedFlowImpl, 'SharedFlowImpl', classMeta, AbstractSharedFlow, [AbstractSharedFlow, FlowCollector, FusibleFlow], VOID, VOID, VOID, [1]);
|
|
@@ -313,12 +306,12 @@
|
|
|
313
306
|
setMetadataFor(Symbol, 'Symbol', classMeta);
|
|
314
307
|
setMetadataFor(SelectInstance, 'SelectInstance', interfaceMeta);
|
|
315
308
|
setMetadataFor(ClauseData, 'ClauseData', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
316
|
-
setMetadataFor(SelectImplementation, 'SelectImplementation', classMeta,
|
|
309
|
+
setMetadataFor(SelectImplementation, 'SelectImplementation', classMeta, VOID, [CancelHandler, SelectInstance, Waiter], VOID, VOID, VOID, [0, 2]);
|
|
317
310
|
setMetadataFor(TrySelectDetailedResult, 'TrySelectDetailedResult', classMeta, Enum);
|
|
318
311
|
setMetadataFor(UndispatchedCoroutine, 'UndispatchedCoroutine', classMeta, ScopeCoroutine, VOID, VOID, VOID, VOID, [0]);
|
|
319
312
|
setMetadataFor(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', classMeta, CoroutineDispatcher, VOID, VOID, VOID, VOID, [1]);
|
|
320
313
|
setMetadataFor(NodeDispatcher, 'NodeDispatcher', objectMeta, SetTimeoutBasedDispatcher, VOID, VOID, VOID, VOID, [1]);
|
|
321
|
-
setMetadataFor(MessageQueue, 'MessageQueue', classMeta, VOID, [
|
|
314
|
+
setMetadataFor(MessageQueue, 'MessageQueue', classMeta, VOID, [List, Collection]);
|
|
322
315
|
setMetadataFor(ScheduledMessageQueue, 'ScheduledMessageQueue', classMeta, MessageQueue);
|
|
323
316
|
setMetadataFor(WindowMessageQueue, 'WindowMessageQueue', classMeta, MessageQueue);
|
|
324
317
|
setMetadataFor(Dispatchers, 'Dispatchers', objectMeta);
|
|
@@ -398,7 +391,6 @@
|
|
|
398
391
|
}
|
|
399
392
|
function DisposeHandlersOnCancel($outer, nodes) {
|
|
400
393
|
this.gl_1 = $outer;
|
|
401
|
-
CancelHandler.call(this);
|
|
402
394
|
this.fl_1 = nodes;
|
|
403
395
|
}
|
|
404
396
|
protoOf(DisposeHandlersOnCancel).hl = function () {
|
|
@@ -416,9 +408,6 @@
|
|
|
416
408
|
protoOf(DisposeHandlersOnCancel).sl = function (cause) {
|
|
417
409
|
this.hl();
|
|
418
410
|
};
|
|
419
|
-
protoOf(DisposeHandlersOnCancel).invoke = function (cause) {
|
|
420
|
-
return this.sl(cause);
|
|
421
|
-
};
|
|
422
411
|
protoOf(DisposeHandlersOnCancel).toString = function () {
|
|
423
412
|
return 'DisposeHandlersOnCancel[' + this.fl_1 + ']';
|
|
424
413
|
};
|
|
@@ -475,9 +464,6 @@
|
|
|
475
464
|
this_0.rc(tmp$ret$3);
|
|
476
465
|
}
|
|
477
466
|
};
|
|
478
|
-
protoOf(AwaitAllNode).invoke = function (cause) {
|
|
479
|
-
return this.sl(cause);
|
|
480
|
-
};
|
|
481
467
|
function AwaitAll(deferreds) {
|
|
482
468
|
this.vl_1 = deferreds;
|
|
483
469
|
this.wl_1 = atomic$int$1(this.vl_1.length);
|
|
@@ -499,10 +485,7 @@
|
|
|
499
485
|
var this_0 = new AwaitAllNode(this, cancellable);
|
|
500
486
|
// Inline function 'kotlin.contracts.contract' call
|
|
501
487
|
// Inline function 'kotlinx.coroutines.AwaitAll.await.<anonymous>.<anonymous>' call
|
|
502
|
-
|
|
503
|
-
// Inline function 'kotlinx.coroutines.asHandler' call
|
|
504
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
505
|
-
tmp_3.nl_1 = deferred.ak(this_0);
|
|
488
|
+
this_0.nl_1 = invokeOnCompletion(deferred, VOID, VOID, this_0);
|
|
506
489
|
tmp_1[tmp_2] = this_0;
|
|
507
490
|
tmp = tmp + 1 | 0;
|
|
508
491
|
}
|
|
@@ -520,11 +503,9 @@
|
|
|
520
503
|
if (cancellable.tj()) {
|
|
521
504
|
disposer.hl();
|
|
522
505
|
} else {
|
|
523
|
-
|
|
524
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
525
|
-
cancellable.vm(disposer);
|
|
506
|
+
invokeOnCancellation(cancellable, disposer);
|
|
526
507
|
}
|
|
527
|
-
return cancellable.
|
|
508
|
+
return cancellable.vm();
|
|
528
509
|
};
|
|
529
510
|
function $awaitAllCOROUTINE$0(_this__u8e3s4, resultContinuation) {
|
|
530
511
|
CoroutineImpl.call(this, resultContinuation);
|
|
@@ -594,7 +575,7 @@
|
|
|
594
575
|
}
|
|
595
576
|
var coroutine_1 = new DispatchedCoroutine(newContext, $completion);
|
|
596
577
|
startCoroutineCancellable(block, coroutine_1, coroutine_1);
|
|
597
|
-
tmp$ret$0 = coroutine_1.
|
|
578
|
+
tmp$ret$0 = coroutine_1.vm();
|
|
598
579
|
}
|
|
599
580
|
return tmp$ret$0;
|
|
600
581
|
}
|
|
@@ -602,7 +583,7 @@
|
|
|
602
583
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
603
584
|
start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
|
|
604
585
|
var newContext = newCoroutineContext_0(_this__u8e3s4, context);
|
|
605
|
-
var coroutine = start.
|
|
586
|
+
var coroutine = start.bn() ? new LazyStandaloneCoroutine(newContext, block) : new StandaloneCoroutine(newContext, true);
|
|
606
587
|
coroutine.mj(start, coroutine, block);
|
|
607
588
|
return coroutine;
|
|
608
589
|
}
|
|
@@ -610,18 +591,18 @@
|
|
|
610
591
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
611
592
|
start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
|
|
612
593
|
var newContext = newCoroutineContext_0(_this__u8e3s4, context);
|
|
613
|
-
var coroutine = start.
|
|
594
|
+
var coroutine = start.bn() ? new LazyDeferredCoroutine(newContext, block) : new DeferredCoroutine(newContext, true);
|
|
614
595
|
coroutine.mj(start, coroutine, block);
|
|
615
596
|
return coroutine;
|
|
616
597
|
}
|
|
617
598
|
function trySuspend($this) {
|
|
618
599
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
619
|
-
var this_0 = $this.
|
|
600
|
+
var this_0 = $this.an_1;
|
|
620
601
|
while (true) {
|
|
621
602
|
// Inline function 'kotlinx.coroutines.DispatchedCoroutine.trySuspend.<anonymous>' call
|
|
622
603
|
switch (this_0.kotlinx$atomicfu$value) {
|
|
623
604
|
case 0:
|
|
624
|
-
if ($this.
|
|
605
|
+
if ($this.an_1.atomicfu$compareAndSet(0, 1))
|
|
625
606
|
return true;
|
|
626
607
|
break;
|
|
627
608
|
case 2:
|
|
@@ -636,12 +617,12 @@
|
|
|
636
617
|
}
|
|
637
618
|
function tryResume($this) {
|
|
638
619
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
639
|
-
var this_0 = $this.
|
|
620
|
+
var this_0 = $this.an_1;
|
|
640
621
|
while (true) {
|
|
641
622
|
// Inline function 'kotlinx.coroutines.DispatchedCoroutine.tryResume.<anonymous>' call
|
|
642
623
|
switch (this_0.kotlinx$atomicfu$value) {
|
|
643
624
|
case 0:
|
|
644
|
-
if ($this.
|
|
625
|
+
if ($this.an_1.atomicfu$compareAndSet(0, 2))
|
|
645
626
|
return true;
|
|
646
627
|
break;
|
|
647
628
|
case 1:
|
|
@@ -656,7 +637,7 @@
|
|
|
656
637
|
}
|
|
657
638
|
function DispatchedCoroutine(context, uCont) {
|
|
658
639
|
ScopeCoroutine.call(this, context, uCont);
|
|
659
|
-
this.
|
|
640
|
+
this.an_1 = atomic$int$1(0);
|
|
660
641
|
}
|
|
661
642
|
protoOf(DispatchedCoroutine).jj = function (state) {
|
|
662
643
|
this.ij(state);
|
|
@@ -664,9 +645,9 @@
|
|
|
664
645
|
protoOf(DispatchedCoroutine).ij = function (state) {
|
|
665
646
|
if (tryResume(this))
|
|
666
647
|
return Unit_instance;
|
|
667
|
-
resumeCancellableWith(intercepted(this.
|
|
648
|
+
resumeCancellableWith(intercepted(this.fn_1), recoverResult(state, this.fn_1));
|
|
668
649
|
};
|
|
669
|
-
protoOf(DispatchedCoroutine).
|
|
650
|
+
protoOf(DispatchedCoroutine).vm = function () {
|
|
670
651
|
if (trySuspend(this))
|
|
671
652
|
return get_COROUTINE_SUSPENDED();
|
|
672
653
|
var state = unboxState(this.ec());
|
|
@@ -683,10 +664,10 @@
|
|
|
683
664
|
};
|
|
684
665
|
function LazyStandaloneCoroutine(parentContext, block) {
|
|
685
666
|
StandaloneCoroutine.call(this, parentContext, false);
|
|
686
|
-
this.
|
|
667
|
+
this.mn_1 = createCoroutineUnintercepted(block, this, this);
|
|
687
668
|
}
|
|
688
669
|
protoOf(LazyStandaloneCoroutine).wj = function () {
|
|
689
|
-
startCoroutineCancellable_0(this.
|
|
670
|
+
startCoroutineCancellable_0(this.mn_1, this);
|
|
690
671
|
};
|
|
691
672
|
function DeferredCoroutine(parentContext, active) {
|
|
692
673
|
AbstractCoroutine.call(this, parentContext, true, active);
|
|
@@ -697,29 +678,32 @@
|
|
|
697
678
|
};
|
|
698
679
|
function LazyDeferredCoroutine(parentContext, block) {
|
|
699
680
|
DeferredCoroutine.call(this, parentContext, false);
|
|
700
|
-
this.
|
|
681
|
+
this.tn_1 = createCoroutineUnintercepted(block, this, this);
|
|
701
682
|
}
|
|
702
683
|
protoOf(LazyDeferredCoroutine).wj = function () {
|
|
703
|
-
startCoroutineCancellable_0(this.
|
|
684
|
+
startCoroutineCancellable_0(this.tn_1, this);
|
|
704
685
|
};
|
|
705
686
|
function CancellableContinuation() {
|
|
706
687
|
}
|
|
707
688
|
function disposeOnCancellation(_this__u8e3s4, handle) {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
689
|
+
return invokeOnCancellation(_this__u8e3s4, new DisposeOnCancel(handle));
|
|
690
|
+
}
|
|
691
|
+
function invokeOnCancellation(_this__u8e3s4, handler) {
|
|
692
|
+
var tmp;
|
|
693
|
+
if (_this__u8e3s4 instanceof CancellableContinuationImpl) {
|
|
694
|
+
_this__u8e3s4.vn(handler);
|
|
695
|
+
tmp = Unit_instance;
|
|
696
|
+
} else {
|
|
697
|
+
throw UnsupportedOperationException_init_$Create$('third-party implementation of CancellableContinuation is not supported');
|
|
698
|
+
}
|
|
699
|
+
return tmp;
|
|
712
700
|
}
|
|
713
701
|
function DisposeOnCancel(handle) {
|
|
714
|
-
CancelHandler.call(this);
|
|
715
702
|
this.wn_1 = handle;
|
|
716
703
|
}
|
|
717
704
|
protoOf(DisposeOnCancel).sl = function (cause) {
|
|
718
705
|
return this.wn_1.rl();
|
|
719
706
|
};
|
|
720
|
-
protoOf(DisposeOnCancel).invoke = function (cause) {
|
|
721
|
-
return this.sl(cause);
|
|
722
|
-
};
|
|
723
707
|
protoOf(DisposeOnCancel).toString = function () {
|
|
724
708
|
return 'DisposeOnCancel[' + this.wn_1 + ']';
|
|
725
709
|
};
|
|
@@ -879,10 +863,7 @@
|
|
|
879
863
|
tmp = tmp0_elvis_lhs;
|
|
880
864
|
}
|
|
881
865
|
var parent = tmp;
|
|
882
|
-
|
|
883
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
884
|
-
var tmp$ret$1 = new ChildContinuation($this);
|
|
885
|
-
var handle = parent.ck(true, VOID, tmp$ret$1);
|
|
866
|
+
var handle = invokeOnCompletion(parent, true, VOID, new ChildContinuation($this));
|
|
886
867
|
$this.tm_1.atomicfu$compareAndSet(null, handle);
|
|
887
868
|
return handle;
|
|
888
869
|
}
|
|
@@ -898,7 +879,7 @@
|
|
|
898
879
|
return Unit_instance;
|
|
899
880
|
} else {
|
|
900
881
|
var tmp;
|
|
901
|
-
if (state
|
|
882
|
+
if (!(state == null) ? isInterface(state, CancelHandler) : false) {
|
|
902
883
|
tmp = true;
|
|
903
884
|
} else {
|
|
904
885
|
tmp = state instanceof Segment;
|
|
@@ -913,7 +894,7 @@
|
|
|
913
894
|
if (state instanceof CancelledContinuation) {
|
|
914
895
|
var tmp1_safe_receiver = state instanceof CompletedExceptionally ? state : null;
|
|
915
896
|
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ej_1;
|
|
916
|
-
if (handler
|
|
897
|
+
if (isInterface(handler, CancelHandler)) {
|
|
917
898
|
$this.so(handler, cause);
|
|
918
899
|
} else {
|
|
919
900
|
var segment = handler instanceof Segment ? handler : THROW_CCE();
|
|
@@ -928,7 +909,7 @@
|
|
|
928
909
|
}
|
|
929
910
|
if (handler instanceof Segment)
|
|
930
911
|
return Unit_instance;
|
|
931
|
-
if (!(handler
|
|
912
|
+
if (!isInterface(handler, CancelHandler))
|
|
932
913
|
THROW_CCE();
|
|
933
914
|
if (state.to()) {
|
|
934
915
|
$this.so(handler, state.ro_1);
|
|
@@ -940,7 +921,7 @@
|
|
|
940
921
|
} else {
|
|
941
922
|
if (handler instanceof Segment)
|
|
942
923
|
return Unit_instance;
|
|
943
|
-
if (!(handler
|
|
924
|
+
if (!isInterface(handler, CancelHandler))
|
|
944
925
|
THROW_CCE();
|
|
945
926
|
var update_0 = new CompletedContinuation(state, handler);
|
|
946
927
|
if ($this.sm_1.atomicfu$compareAndSet(state, update_0))
|
|
@@ -956,15 +937,6 @@
|
|
|
956
937
|
var message = "It's prohibited to register multiple handlers, tried to register " + toString(handler) + ', already has ' + toString_0(state);
|
|
957
938
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
958
939
|
}
|
|
959
|
-
function makeCancelHandler($this, handler) {
|
|
960
|
-
var tmp;
|
|
961
|
-
if (handler instanceof CancelHandler) {
|
|
962
|
-
tmp = handler;
|
|
963
|
-
} else {
|
|
964
|
-
tmp = new InvokeOnCancel(handler);
|
|
965
|
-
}
|
|
966
|
-
return tmp;
|
|
967
|
-
}
|
|
968
940
|
function dispatchResume($this, mode) {
|
|
969
941
|
if (tryResume_0($this))
|
|
970
942
|
return Unit_instance;
|
|
@@ -985,7 +957,7 @@
|
|
|
985
957
|
if (!(onCancellation == null)) {
|
|
986
958
|
tmp_1 = true;
|
|
987
959
|
} else {
|
|
988
|
-
tmp_1 = state
|
|
960
|
+
tmp_1 = isInterface(state, CancelHandler);
|
|
989
961
|
}
|
|
990
962
|
if (tmp_1) {
|
|
991
963
|
tmp_0 = true;
|
|
@@ -993,7 +965,7 @@
|
|
|
993
965
|
tmp_0 = !(idempotent == null);
|
|
994
966
|
}
|
|
995
967
|
if (tmp_0) {
|
|
996
|
-
tmp = new CompletedContinuation(proposedUpdate, state
|
|
968
|
+
tmp = new CompletedContinuation(proposedUpdate, isInterface(state, CancelHandler) ? state : null, onCancellation, idempotent);
|
|
997
969
|
} else {
|
|
998
970
|
tmp = proposedUpdate;
|
|
999
971
|
}
|
|
@@ -1188,7 +1160,7 @@
|
|
|
1188
1160
|
if (!(!(state == null) ? isInterface(state, NotCompleted) : false))
|
|
1189
1161
|
return false;
|
|
1190
1162
|
var tmp;
|
|
1191
|
-
if (state
|
|
1163
|
+
if (!(state == null) ? isInterface(state, CancelHandler) : false) {
|
|
1192
1164
|
tmp = true;
|
|
1193
1165
|
} else {
|
|
1194
1166
|
tmp = state instanceof Segment;
|
|
@@ -1197,7 +1169,7 @@
|
|
|
1197
1169
|
if (!this.sm_1.atomicfu$compareAndSet(state, update)) {
|
|
1198
1170
|
break $l$block;
|
|
1199
1171
|
}
|
|
1200
|
-
if (state
|
|
1172
|
+
if (isInterface(state, CancelHandler)) {
|
|
1201
1173
|
this.so(state, cause);
|
|
1202
1174
|
} else {
|
|
1203
1175
|
if (state instanceof Segment) {
|
|
@@ -1219,7 +1191,7 @@
|
|
|
1219
1191
|
protoOf(CancellableContinuationImpl).so = function (handler, cause) {
|
|
1220
1192
|
var tmp;
|
|
1221
1193
|
try {
|
|
1222
|
-
handler.
|
|
1194
|
+
handler.sl(cause);
|
|
1223
1195
|
tmp = Unit_instance;
|
|
1224
1196
|
} catch ($p) {
|
|
1225
1197
|
var tmp_0;
|
|
@@ -1249,7 +1221,7 @@
|
|
|
1249
1221
|
protoOf(CancellableContinuationImpl).ip = function (parent) {
|
|
1250
1222
|
return parent.xj();
|
|
1251
1223
|
};
|
|
1252
|
-
protoOf(CancellableContinuationImpl).
|
|
1224
|
+
protoOf(CancellableContinuationImpl).vm = function () {
|
|
1253
1225
|
var isReusable_0 = isReusable(this);
|
|
1254
1226
|
if (trySuspend_0(this)) {
|
|
1255
1227
|
if (_get_parentHandle__f8dcex(this) == null) {
|
|
@@ -1321,9 +1293,8 @@
|
|
|
1321
1293
|
}
|
|
1322
1294
|
invokeOnCancellationImpl(this, segment);
|
|
1323
1295
|
};
|
|
1324
|
-
protoOf(CancellableContinuationImpl).
|
|
1325
|
-
|
|
1326
|
-
invokeOnCancellationImpl(this, cancelHandler);
|
|
1296
|
+
protoOf(CancellableContinuationImpl).vn = function (handler) {
|
|
1297
|
+
return invokeOnCancellationImpl(this, handler);
|
|
1327
1298
|
};
|
|
1328
1299
|
protoOf(CancellableContinuationImpl).bp = function () {
|
|
1329
1300
|
var tmp0_elvis_lhs = _get_parentHandle__f8dcex(this);
|
|
@@ -1337,7 +1308,7 @@
|
|
|
1337
1308
|
handle.rl();
|
|
1338
1309
|
this.tm_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
|
|
1339
1310
|
};
|
|
1340
|
-
protoOf(CancellableContinuationImpl).
|
|
1311
|
+
protoOf(CancellableContinuationImpl).un = function (value, idempotent, onCancellation) {
|
|
1341
1312
|
return tryResumeImpl(this, value, idempotent, onCancellation);
|
|
1342
1313
|
};
|
|
1343
1314
|
protoOf(CancellableContinuationImpl).yl = function (exception) {
|
|
@@ -1379,7 +1350,6 @@
|
|
|
1379
1350
|
function NotCompleted() {
|
|
1380
1351
|
}
|
|
1381
1352
|
function CancelHandler() {
|
|
1382
|
-
CancelHandlerBase.call(this);
|
|
1383
1353
|
}
|
|
1384
1354
|
function Active() {
|
|
1385
1355
|
}
|
|
@@ -1462,19 +1432,6 @@
|
|
|
1462
1432
|
return false;
|
|
1463
1433
|
return true;
|
|
1464
1434
|
};
|
|
1465
|
-
function InvokeOnCancel(handler) {
|
|
1466
|
-
CancelHandler.call(this);
|
|
1467
|
-
this.sp_1 = handler;
|
|
1468
|
-
}
|
|
1469
|
-
protoOf(InvokeOnCancel).sl = function (cause) {
|
|
1470
|
-
this.sp_1(cause);
|
|
1471
|
-
};
|
|
1472
|
-
protoOf(InvokeOnCancel).invoke = function (cause) {
|
|
1473
|
-
return this.sl(cause);
|
|
1474
|
-
};
|
|
1475
|
-
protoOf(InvokeOnCancel).toString = function () {
|
|
1476
|
-
return 'InvokeOnCancel[' + get_classSimpleName(this.sp_1) + '@' + get_hexAddress(this) + ']';
|
|
1477
|
-
};
|
|
1478
1435
|
function _get_DECISION_SHIFT_$accessor$2jt7ek_1tkg2i() {
|
|
1479
1436
|
_init_properties_CancellableContinuationImpl_kt__6rrtdd();
|
|
1480
1437
|
return 29;
|
|
@@ -1486,6 +1443,15 @@
|
|
|
1486
1443
|
RESUME_TOKEN = new Symbol('RESUME_TOKEN');
|
|
1487
1444
|
}
|
|
1488
1445
|
}
|
|
1446
|
+
function UserSupplied(handler) {
|
|
1447
|
+
this.sp_1 = handler;
|
|
1448
|
+
}
|
|
1449
|
+
protoOf(UserSupplied).sl = function (cause) {
|
|
1450
|
+
this.sp_1(cause);
|
|
1451
|
+
};
|
|
1452
|
+
protoOf(UserSupplied).toString = function () {
|
|
1453
|
+
return 'InternalCompletionHandler.UserSupplied[' + get_classSimpleName(this.sp_1) + '@' + get_hexAddress(this) + ']';
|
|
1454
|
+
};
|
|
1489
1455
|
function CompletedExceptionally(cause, handled) {
|
|
1490
1456
|
handled = handled === VOID ? false : handled;
|
|
1491
1457
|
this.ej_1 = cause;
|
|
@@ -1709,7 +1675,7 @@
|
|
|
1709
1675
|
}
|
|
1710
1676
|
return tmp;
|
|
1711
1677
|
};
|
|
1712
|
-
protoOf(CoroutineStart).
|
|
1678
|
+
protoOf(CoroutineStart).bn = function () {
|
|
1713
1679
|
return this === CoroutineStart_LAZY_getInstance();
|
|
1714
1680
|
};
|
|
1715
1681
|
function CoroutineStart_DEFAULT_getInstance() {
|
|
@@ -1863,6 +1829,17 @@
|
|
|
1863
1829
|
ensureActive_0(tmp0_safe_receiver);
|
|
1864
1830
|
}
|
|
1865
1831
|
}
|
|
1832
|
+
function invokeOnCompletion(_this__u8e3s4, onCancelling, invokeImmediately, handler) {
|
|
1833
|
+
onCancelling = onCancelling === VOID ? false : onCancelling;
|
|
1834
|
+
invokeImmediately = invokeImmediately === VOID ? true : invokeImmediately;
|
|
1835
|
+
var tmp;
|
|
1836
|
+
if (_this__u8e3s4 instanceof JobSupport) {
|
|
1837
|
+
tmp = _this__u8e3s4.ck(onCancelling, invokeImmediately, handler);
|
|
1838
|
+
} else {
|
|
1839
|
+
tmp = _this__u8e3s4.bk(onCancelling, invokeImmediately, InternalCompletionHandler$invoke$ref(handler));
|
|
1840
|
+
}
|
|
1841
|
+
return tmp;
|
|
1842
|
+
}
|
|
1866
1843
|
function ensureActive_0(_this__u8e3s4) {
|
|
1867
1844
|
if (!_this__u8e3s4.zi())
|
|
1868
1845
|
throw _this__u8e3s4.xj();
|
|
@@ -1882,6 +1859,14 @@
|
|
|
1882
1859
|
parent = parent === VOID ? null : parent;
|
|
1883
1860
|
return new JobImpl(parent);
|
|
1884
1861
|
}
|
|
1862
|
+
function InternalCompletionHandler$invoke$ref($boundThis) {
|
|
1863
|
+
var l = function (p0) {
|
|
1864
|
+
$boundThis.sl(p0);
|
|
1865
|
+
return Unit_instance;
|
|
1866
|
+
};
|
|
1867
|
+
l.callableName = 'invoke';
|
|
1868
|
+
return l;
|
|
1869
|
+
}
|
|
1885
1870
|
function get_COMPLETING_ALREADY() {
|
|
1886
1871
|
_init_properties_JobSupport_kt__68f172();
|
|
1887
1872
|
return COMPLETING_ALREADY;
|
|
@@ -1973,7 +1958,7 @@
|
|
|
1973
1958
|
return get_DEBUG() ? this.uq('Active') : protoOf(LinkedListHead).toString.call(this);
|
|
1974
1959
|
};
|
|
1975
1960
|
function JobNode() {
|
|
1976
|
-
|
|
1961
|
+
LinkedListNode.call(this);
|
|
1977
1962
|
}
|
|
1978
1963
|
protoOf(JobNode).em = function () {
|
|
1979
1964
|
var tmp = this.dm_1;
|
|
@@ -2141,7 +2126,7 @@
|
|
|
2141
2126
|
var cause = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ej_1;
|
|
2142
2127
|
if (state instanceof JobNode) {
|
|
2143
2128
|
try {
|
|
2144
|
-
state.
|
|
2129
|
+
state.sl(cause);
|
|
2145
2130
|
} catch ($p) {
|
|
2146
2131
|
if ($p instanceof Error) {
|
|
2147
2132
|
var ex = $p;
|
|
@@ -2170,7 +2155,7 @@
|
|
|
2170
2155
|
// Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers.<anonymous>' call
|
|
2171
2156
|
var node = cur;
|
|
2172
2157
|
try {
|
|
2173
|
-
node.
|
|
2158
|
+
node.sl(cause);
|
|
2174
2159
|
} catch ($p) {
|
|
2175
2160
|
if ($p instanceof Error) {
|
|
2176
2161
|
var ex = $p;
|
|
@@ -2226,7 +2211,7 @@
|
|
|
2226
2211
|
// Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers.<anonymous>' call
|
|
2227
2212
|
var node = cur;
|
|
2228
2213
|
try {
|
|
2229
|
-
node.
|
|
2214
|
+
node.sl(cause);
|
|
2230
2215
|
} catch ($p) {
|
|
2231
2216
|
if ($p instanceof Error) {
|
|
2232
2217
|
var ex = $p;
|
|
@@ -2605,21 +2590,17 @@
|
|
|
2605
2590
|
var proposedUpdate_0 = proposedUpdate;
|
|
2606
2591
|
$l$1: do {
|
|
2607
2592
|
$l$0: do {
|
|
2608
|
-
var
|
|
2609
|
-
// Inline function 'kotlinx.coroutines.asHandler' call
|
|
2610
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2611
|
-
var tmp$ret$1 = new ChildCompletion($this_0, state_0, child_0, proposedUpdate_0);
|
|
2612
|
-
var handle = tmp.ck(VOID, false, tmp$ret$1);
|
|
2593
|
+
var handle = invokeOnCompletion(child_0.or_1, VOID, false, new ChildCompletion($this_0, state_0, child_0, proposedUpdate_0));
|
|
2613
2594
|
if (!(handle === NonDisposableHandle_instance))
|
|
2614
2595
|
return true;
|
|
2615
2596
|
var tmp0_elvis_lhs = nextChild(child_0, $this_0);
|
|
2616
|
-
var
|
|
2597
|
+
var tmp;
|
|
2617
2598
|
if (tmp0_elvis_lhs == null) {
|
|
2618
2599
|
return false;
|
|
2619
2600
|
} else {
|
|
2620
|
-
|
|
2601
|
+
tmp = tmp0_elvis_lhs;
|
|
2621
2602
|
}
|
|
2622
|
-
var nextChild_0 =
|
|
2603
|
+
var nextChild_0 = tmp;
|
|
2623
2604
|
$this_0 = $this_0;
|
|
2624
2605
|
state_0 = state_0;
|
|
2625
2606
|
child_0 = nextChild_0;
|
|
@@ -2790,9 +2771,6 @@
|
|
|
2790
2771
|
protoOf(ChildCompletion).sl = function (cause) {
|
|
2791
2772
|
continueCompleting(this.ur_1, this.vr_1, this.wr_1, this.xr_1);
|
|
2792
2773
|
};
|
|
2793
|
-
protoOf(ChildCompletion).invoke = function (cause) {
|
|
2794
|
-
return this.sl(cause);
|
|
2795
|
-
};
|
|
2796
2774
|
function JobSupport(active) {
|
|
2797
2775
|
this.si_1 = atomic$ref$1(active ? get_EMPTY_ACTIVE() : get_EMPTY_NEW());
|
|
2798
2776
|
this.ti_1 = atomic$ref$1(null);
|
|
@@ -2923,14 +2901,17 @@
|
|
|
2923
2901
|
return $super === VOID ? this.yj(_this__u8e3s4, message) : $super.yj.call(this, _this__u8e3s4, message);
|
|
2924
2902
|
};
|
|
2925
2903
|
protoOf(JobSupport).ak = function (handler) {
|
|
2926
|
-
return this.
|
|
2904
|
+
return this.ck(false, true, new UserSupplied(handler));
|
|
2927
2905
|
};
|
|
2928
2906
|
protoOf(JobSupport).bk = function (onCancelling, invokeImmediately, handler) {
|
|
2907
|
+
return this.ck(onCancelling, invokeImmediately, new UserSupplied(handler));
|
|
2908
|
+
};
|
|
2909
|
+
protoOf(JobSupport).ck = function (onCancelling, invokeImmediately, handler) {
|
|
2929
2910
|
var node = makeNode(this, handler, onCancelling);
|
|
2930
2911
|
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
|
|
2931
2912
|
while (true) {
|
|
2932
2913
|
$l$block: {
|
|
2933
|
-
// Inline function 'kotlinx.coroutines.JobSupport.
|
|
2914
|
+
// Inline function 'kotlinx.coroutines.JobSupport.invokeOnCompletionInternal.<anonymous>' call
|
|
2934
2915
|
var state = this.ec();
|
|
2935
2916
|
if (state instanceof Empty) {
|
|
2936
2917
|
if (state.qq_1) {
|
|
@@ -2964,7 +2945,6 @@
|
|
|
2964
2945
|
tmp_1 = true;
|
|
2965
2946
|
} else {
|
|
2966
2947
|
var tmp_2;
|
|
2967
|
-
// Inline function 'kotlinx.coroutines.isHandlerOf' call
|
|
2968
2948
|
if (handler instanceof ChildHandleNode) {
|
|
2969
2949
|
tmp_2 = !state.fr();
|
|
2970
2950
|
} else {
|
|
@@ -2984,7 +2964,7 @@
|
|
|
2984
2964
|
}
|
|
2985
2965
|
if (!(rootCause == null)) {
|
|
2986
2966
|
if (invokeImmediately) {
|
|
2987
|
-
|
|
2967
|
+
handler.sl(rootCause);
|
|
2988
2968
|
}
|
|
2989
2969
|
return handle;
|
|
2990
2970
|
} else {
|
|
@@ -2995,7 +2975,7 @@
|
|
|
2995
2975
|
} else {
|
|
2996
2976
|
if (invokeImmediately) {
|
|
2997
2977
|
var tmp1_safe_receiver = state instanceof CompletedExceptionally ? state : null;
|
|
2998
|
-
|
|
2978
|
+
handler.sl(tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ej_1);
|
|
2999
2979
|
}
|
|
3000
2980
|
return NonDisposableHandle_instance;
|
|
3001
2981
|
}
|
|
@@ -3116,10 +3096,7 @@
|
|
|
3116
3096
|
}
|
|
3117
3097
|
};
|
|
3118
3098
|
protoOf(JobSupport).nk = function (child) {
|
|
3119
|
-
|
|
3120
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
3121
|
-
var tmp$ret$1 = new ChildHandleNode(child);
|
|
3122
|
-
var tmp = this.ck(true, VOID, tmp$ret$1);
|
|
3099
|
+
var tmp = invokeOnCompletion(this, true, VOID, new ChildHandleNode(child));
|
|
3123
3100
|
return isInterface(tmp, ChildHandle) ? tmp : THROW_CCE();
|
|
3124
3101
|
};
|
|
3125
3102
|
protoOf(JobSupport).kj = function (exception) {
|
|
@@ -3208,9 +3185,6 @@
|
|
|
3208
3185
|
protoOf(ChildHandleNode).sl = function (cause) {
|
|
3209
3186
|
return this.or_1.ik(this.em());
|
|
3210
3187
|
};
|
|
3211
|
-
protoOf(ChildHandleNode).invoke = function (cause) {
|
|
3212
|
-
return this.sl(cause);
|
|
3213
|
-
};
|
|
3214
3188
|
protoOf(ChildHandleNode).jk = function (cause) {
|
|
3215
3189
|
return this.em().jk(cause);
|
|
3216
3190
|
};
|
|
@@ -3220,21 +3194,16 @@
|
|
|
3220
3194
|
this.es_1 = atomic$int$1(0);
|
|
3221
3195
|
}
|
|
3222
3196
|
protoOf(InvokeOnCancelling).sl = function (cause) {
|
|
3223
|
-
if (this.es_1.atomicfu$compareAndSet(0, 1))
|
|
3224
|
-
this.ds_1(cause);
|
|
3225
|
-
|
|
3226
|
-
protoOf(InvokeOnCancelling).invoke = function (cause) {
|
|
3227
|
-
return this.sl(cause);
|
|
3197
|
+
if (this.es_1.atomicfu$compareAndSet(0, 1)) {
|
|
3198
|
+
this.ds_1.sl(cause);
|
|
3199
|
+
}
|
|
3228
3200
|
};
|
|
3229
3201
|
function InvokeOnCompletion(handler) {
|
|
3230
3202
|
JobNode.call(this);
|
|
3231
3203
|
this.js_1 = handler;
|
|
3232
3204
|
}
|
|
3233
3205
|
protoOf(InvokeOnCompletion).sl = function (cause) {
|
|
3234
|
-
return this.js_1(cause);
|
|
3235
|
-
};
|
|
3236
|
-
protoOf(InvokeOnCompletion).invoke = function (cause) {
|
|
3237
|
-
return this.sl(cause);
|
|
3206
|
+
return this.js_1.sl(cause);
|
|
3238
3207
|
};
|
|
3239
3208
|
function unboxState(_this__u8e3s4) {
|
|
3240
3209
|
_init_properties_JobSupport_kt__68f172();
|
|
@@ -3252,9 +3221,6 @@
|
|
|
3252
3221
|
protoOf(ChildContinuation).sl = function (cause) {
|
|
3253
3222
|
this.ps_1.hp(this.ps_1.ip(this.em()));
|
|
3254
3223
|
};
|
|
3255
|
-
protoOf(ChildContinuation).invoke = function (cause) {
|
|
3256
|
-
return this.sl(cause);
|
|
3257
|
-
};
|
|
3258
3224
|
function handlesException($this) {
|
|
3259
3225
|
var tmp = $this.rj();
|
|
3260
3226
|
var tmp0_safe_receiver = tmp instanceof ChildHandleNode ? tmp : null;
|
|
@@ -3741,7 +3707,7 @@
|
|
|
3741
3707
|
throw $p;
|
|
3742
3708
|
}
|
|
3743
3709
|
}
|
|
3744
|
-
return cancellable.
|
|
3710
|
+
return cancellable.vm();
|
|
3745
3711
|
}
|
|
3746
3712
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
3747
3713
|
var cont = ensureNotNull($this.wu_1);
|
|
@@ -3949,7 +3915,7 @@
|
|
|
3949
3915
|
var tmp$ret$3 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
3950
3916
|
cancellable.rc(tmp$ret$3);
|
|
3951
3917
|
}
|
|
3952
|
-
return cancellable.
|
|
3918
|
+
return cancellable.vm();
|
|
3953
3919
|
}
|
|
3954
3920
|
function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
3955
3921
|
// Inline function 'kotlinx.coroutines.suspendCancellableCoroutineReusable.<anonymous>' call
|
|
@@ -4069,7 +4035,7 @@
|
|
|
4069
4035
|
throw $p;
|
|
4070
4036
|
}
|
|
4071
4037
|
}
|
|
4072
|
-
return cancellable.
|
|
4038
|
+
return cancellable.vm();
|
|
4073
4039
|
}
|
|
4074
4040
|
function prepareSenderForSuspension(_this__u8e3s4, $this, segment, index) {
|
|
4075
4041
|
_this__u8e3s4.np(segment, index + get_SEGMENT_SIZE() | 0);
|
|
@@ -4326,7 +4292,7 @@
|
|
|
4326
4292
|
throw $p;
|
|
4327
4293
|
}
|
|
4328
4294
|
}
|
|
4329
|
-
var tmp_3 = cancellable.
|
|
4295
|
+
var tmp_3 = cancellable.vm();
|
|
4330
4296
|
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
4331
4297
|
return tmp_3;
|
|
4332
4298
|
return tmp_3;
|
|
@@ -6023,11 +5989,84 @@
|
|
|
6023
5989
|
}
|
|
6024
5990
|
return tmp$ret$4;
|
|
6025
5991
|
};
|
|
5992
|
+
protoOf(BufferedChannel).xy = function (element) {
|
|
5993
|
+
var tmp$ret$3;
|
|
5994
|
+
$l$block: {
|
|
5995
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
5996
|
+
var waiter = get_BUFFERED();
|
|
5997
|
+
var segment = this.bu_1.kotlinx$atomicfu$value;
|
|
5998
|
+
$l$loop_0: while (true) {
|
|
5999
|
+
var sendersAndCloseStatusCur = this.xt_1.atomicfu$getAndIncrement$long();
|
|
6000
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
6001
|
+
var s = sendersAndCloseStatusCur.mb(new Long(-1, 268435455));
|
|
6002
|
+
var closed = _get_isClosedForSend0__kxgf9m(sendersAndCloseStatusCur, this);
|
|
6003
|
+
// Inline function 'kotlin.Long.div' call
|
|
6004
|
+
var other = get_SEGMENT_SIZE();
|
|
6005
|
+
var id = s.eb(toLong(other));
|
|
6006
|
+
// Inline function 'kotlin.Long.rem' call
|
|
6007
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
6008
|
+
var i = s.fb(toLong(other_0)).nb();
|
|
6009
|
+
if (!segment.ko_1.equals(id)) {
|
|
6010
|
+
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
6011
|
+
var tmp;
|
|
6012
|
+
if (tmp0_elvis_lhs == null) {
|
|
6013
|
+
var tmp_0;
|
|
6014
|
+
if (closed) {
|
|
6015
|
+
return Companion_getInstance_0().jw(this.yv());
|
|
6016
|
+
} else {
|
|
6017
|
+
continue $l$loop_0;
|
|
6018
|
+
}
|
|
6019
|
+
} else {
|
|
6020
|
+
tmp = tmp0_elvis_lhs;
|
|
6021
|
+
}
|
|
6022
|
+
segment = tmp;
|
|
6023
|
+
}
|
|
6024
|
+
var tmp1_subject = updateCellSend(this, segment, i, element, s, waiter, closed);
|
|
6025
|
+
if (tmp1_subject === _get_RESULT_RENDEZVOUS_$accessor$yt74tm_3irwt8()) {
|
|
6026
|
+
segment.tu();
|
|
6027
|
+
return Companion_getInstance_0().ew(Unit_instance);
|
|
6028
|
+
} else if (tmp1_subject === _get_RESULT_BUFFERED_$accessor$yt74tm_quor5m()) {
|
|
6029
|
+
return Companion_getInstance_0().ew(Unit_instance);
|
|
6030
|
+
} else if (tmp1_subject === _get_RESULT_SUSPEND_$accessor$yt74tm_cjypnf()) {
|
|
6031
|
+
if (closed) {
|
|
6032
|
+
segment.ju();
|
|
6033
|
+
return Companion_getInstance_0().jw(this.yv());
|
|
6034
|
+
}
|
|
6035
|
+
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter) : false) ? waiter : null;
|
|
6036
|
+
if (tmp2_safe_receiver == null)
|
|
6037
|
+
null;
|
|
6038
|
+
else {
|
|
6039
|
+
prepareSenderForSuspension(tmp2_safe_receiver, this, segment, i);
|
|
6040
|
+
}
|
|
6041
|
+
// Inline function 'kotlin.Long.plus' call
|
|
6042
|
+
// Inline function 'kotlin.Long.times' call
|
|
6043
|
+
var this_0 = segment.ko_1;
|
|
6044
|
+
var other_1 = get_SEGMENT_SIZE();
|
|
6045
|
+
var tmp$ret$5 = this_0.db(toLong(other_1)).bb(toLong(i));
|
|
6046
|
+
this.sw(tmp$ret$5);
|
|
6047
|
+
return Companion_getInstance_0().ew(Unit_instance);
|
|
6048
|
+
} else if (tmp1_subject === _get_RESULT_CLOSED_$accessor$yt74tm_10v48j()) {
|
|
6049
|
+
if (s.ab(this.zv()) < 0) {
|
|
6050
|
+
segment.tu();
|
|
6051
|
+
}
|
|
6052
|
+
return Companion_getInstance_0().jw(this.yv());
|
|
6053
|
+
} else if (tmp1_subject === _get_RESULT_FAILED_$accessor$yt74tm_vo1zj0()) {
|
|
6054
|
+
segment.tu();
|
|
6055
|
+
continue $l$loop_0;
|
|
6056
|
+
} else if (tmp1_subject === _get_RESULT_SUSPEND_NO_WAITER_$accessor$yt74tm_cvzv8m()) {
|
|
6057
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl.<anonymous>' call
|
|
6058
|
+
var message = 'unexpected';
|
|
6059
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
6060
|
+
}
|
|
6061
|
+
}
|
|
6062
|
+
}
|
|
6063
|
+
return tmp$ret$3;
|
|
6064
|
+
};
|
|
6026
6065
|
protoOf(BufferedChannel).hw = function () {
|
|
6027
6066
|
};
|
|
6028
6067
|
protoOf(BufferedChannel).aw = function () {
|
|
6029
6068
|
};
|
|
6030
|
-
protoOf(BufferedChannel).
|
|
6069
|
+
protoOf(BufferedChannel).yy = function ($completion) {
|
|
6031
6070
|
var tmp = new $receiveCatchingCOROUTINE$4(this, $completion);
|
|
6032
6071
|
tmp.vb_1 = Unit_instance;
|
|
6033
6072
|
tmp.wb_1 = null;
|
|
@@ -6036,7 +6075,7 @@
|
|
|
6036
6075
|
return tmp_0;
|
|
6037
6076
|
return tmp_0;
|
|
6038
6077
|
};
|
|
6039
|
-
protoOf(BufferedChannel).
|
|
6078
|
+
protoOf(BufferedChannel).zy = function () {
|
|
6040
6079
|
var r = this.yt_1.kotlinx$atomicfu$value;
|
|
6041
6080
|
var sendersAndCloseStatusCur = this.xt_1.kotlinx$atomicfu$value;
|
|
6042
6081
|
if (_get_isClosedForReceive0__f7qknl(sendersAndCloseStatusCur, this)) {
|
|
@@ -6242,18 +6281,18 @@
|
|
|
6242
6281
|
var tmp0_elvis_lhs = this.yu();
|
|
6243
6282
|
return tmp0_elvis_lhs == null ? new ClosedSendChannelException(get_DEFAULT_CLOSE_MESSAGE()) : tmp0_elvis_lhs;
|
|
6244
6283
|
};
|
|
6245
|
-
protoOf(BufferedChannel).
|
|
6284
|
+
protoOf(BufferedChannel).az = function () {
|
|
6246
6285
|
};
|
|
6247
|
-
protoOf(BufferedChannel).
|
|
6248
|
-
return this.
|
|
6286
|
+
protoOf(BufferedChannel).bz = function (cause) {
|
|
6287
|
+
return this.cz(cause, false);
|
|
6249
6288
|
};
|
|
6250
6289
|
protoOf(BufferedChannel).fk = function (cause) {
|
|
6251
|
-
this.
|
|
6290
|
+
this.ez(cause);
|
|
6252
6291
|
};
|
|
6253
|
-
protoOf(BufferedChannel).
|
|
6254
|
-
return this.
|
|
6292
|
+
protoOf(BufferedChannel).ez = function (cause) {
|
|
6293
|
+
return this.cz(cause == null ? CancellationException_init_$Create$('Channel was cancelled') : cause, true);
|
|
6255
6294
|
};
|
|
6256
|
-
protoOf(BufferedChannel).
|
|
6295
|
+
protoOf(BufferedChannel).cz = function (cause, cancel) {
|
|
6257
6296
|
if (cancel) {
|
|
6258
6297
|
markCancellationStarted(this);
|
|
6259
6298
|
}
|
|
@@ -6267,7 +6306,7 @@
|
|
|
6267
6306
|
// Inline function 'kotlin.also' call
|
|
6268
6307
|
// Inline function 'kotlin.contracts.contract' call
|
|
6269
6308
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.closeOrCancelImpl.<anonymous>' call
|
|
6270
|
-
this.
|
|
6309
|
+
this.az();
|
|
6271
6310
|
if (closedByThisOperation) {
|
|
6272
6311
|
invokeCloseHandler(this);
|
|
6273
6312
|
}
|
|
@@ -6473,7 +6512,7 @@
|
|
|
6473
6512
|
// Inline function 'kotlin.let' call
|
|
6474
6513
|
// Inline function 'kotlin.contracts.contract' call
|
|
6475
6514
|
// Inline function 'kotlinx.coroutines.channels.tryResume0.<anonymous>' call
|
|
6476
|
-
var token = _this__u8e3s4.
|
|
6515
|
+
var token = _this__u8e3s4.un(value, null, onCancellation);
|
|
6477
6516
|
var tmp;
|
|
6478
6517
|
if (!(token == null)) {
|
|
6479
6518
|
_this__u8e3s4.zl(token);
|
|
@@ -6495,10 +6534,6 @@
|
|
|
6495
6534
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
6496
6535
|
return createSegment$ref();
|
|
6497
6536
|
}
|
|
6498
|
-
function get_SENDERS_COUNTER_MASK() {
|
|
6499
|
-
return SENDERS_COUNTER_MASK;
|
|
6500
|
-
}
|
|
6501
|
-
var SENDERS_COUNTER_MASK;
|
|
6502
6537
|
function createSegment(id, prev) {
|
|
6503
6538
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
6504
6539
|
return new ChannelSegment(id, prev, prev.lt(), 0);
|
|
@@ -6573,13 +6608,13 @@
|
|
|
6573
6608
|
}
|
|
6574
6609
|
function Factory() {
|
|
6575
6610
|
Factory_instance = this;
|
|
6576
|
-
this.
|
|
6577
|
-
this.
|
|
6578
|
-
this.
|
|
6579
|
-
this.
|
|
6580
|
-
this.
|
|
6581
|
-
this.
|
|
6582
|
-
this.
|
|
6611
|
+
this.fz_1 = 2147483647;
|
|
6612
|
+
this.gz_1 = 0;
|
|
6613
|
+
this.hz_1 = -1;
|
|
6614
|
+
this.iz_1 = -2;
|
|
6615
|
+
this.jz_1 = -3;
|
|
6616
|
+
this.kz_1 = 'kotlinx.coroutines.channels.defaultBuffer';
|
|
6617
|
+
this.lz_1 = systemProp('kotlinx.coroutines.channels.defaultBuffer', 64, 1, 2147483646);
|
|
6583
6618
|
}
|
|
6584
6619
|
var Factory_instance;
|
|
6585
6620
|
function Factory_getInstance() {
|
|
@@ -6615,7 +6650,7 @@
|
|
|
6615
6650
|
function ChannelResult__exceptionOrNull_impl_16ei30($this) {
|
|
6616
6651
|
var tmp = _ChannelResult___get_holder__impl__pm9gzw($this);
|
|
6617
6652
|
var tmp0_safe_receiver = tmp instanceof Closed ? tmp : null;
|
|
6618
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
6653
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.mz_1;
|
|
6619
6654
|
}
|
|
6620
6655
|
function Failed() {
|
|
6621
6656
|
}
|
|
@@ -6624,12 +6659,12 @@
|
|
|
6624
6659
|
};
|
|
6625
6660
|
function Closed(cause) {
|
|
6626
6661
|
Failed.call(this);
|
|
6627
|
-
this.
|
|
6662
|
+
this.mz_1 = cause;
|
|
6628
6663
|
}
|
|
6629
6664
|
protoOf(Closed).equals = function (other) {
|
|
6630
6665
|
var tmp;
|
|
6631
6666
|
if (other instanceof Closed) {
|
|
6632
|
-
tmp = equals(this.
|
|
6667
|
+
tmp = equals(this.mz_1, other.mz_1);
|
|
6633
6668
|
} else {
|
|
6634
6669
|
tmp = false;
|
|
6635
6670
|
}
|
|
@@ -6637,12 +6672,12 @@
|
|
|
6637
6672
|
};
|
|
6638
6673
|
protoOf(Closed).hashCode = function () {
|
|
6639
6674
|
// Inline function 'kotlin.hashCode' call
|
|
6640
|
-
var tmp0_safe_receiver = this.
|
|
6675
|
+
var tmp0_safe_receiver = this.mz_1;
|
|
6641
6676
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
6642
6677
|
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
6643
6678
|
};
|
|
6644
6679
|
protoOf(Closed).toString = function () {
|
|
6645
|
-
return 'Closed(' + this.
|
|
6680
|
+
return 'Closed(' + this.mz_1 + ')';
|
|
6646
6681
|
};
|
|
6647
6682
|
function Companion() {
|
|
6648
6683
|
Companion_instance_0 = this;
|
|
@@ -6734,7 +6769,7 @@
|
|
|
6734
6769
|
tmp = new BufferedChannel(2147483647, onUndeliveredElement);
|
|
6735
6770
|
break;
|
|
6736
6771
|
case -2:
|
|
6737
|
-
tmp = onBufferOverflow.equals(BufferOverflow_SUSPEND_getInstance()) ? new BufferedChannel(Factory_getInstance().
|
|
6772
|
+
tmp = onBufferOverflow.equals(BufferOverflow_SUSPEND_getInstance()) ? new BufferedChannel(Factory_getInstance().lz_1, onUndeliveredElement) : new ConflatedBufferedChannel(1, onBufferOverflow, onUndeliveredElement);
|
|
6738
6773
|
break;
|
|
6739
6774
|
default:
|
|
6740
6775
|
tmp = onBufferOverflow === BufferOverflow_SUSPEND_getInstance() ? new BufferedChannel(capacity, onUndeliveredElement) : new ConflatedBufferedChannel(capacity, onBufferOverflow, onUndeliveredElement);
|
|
@@ -6744,25 +6779,25 @@
|
|
|
6744
6779
|
}
|
|
6745
6780
|
function ChannelCoroutine(parentContext, _channel, initParentJob, active) {
|
|
6746
6781
|
AbstractCoroutine.call(this, parentContext, initParentJob, active);
|
|
6747
|
-
this.
|
|
6782
|
+
this.rz_1 = _channel;
|
|
6748
6783
|
}
|
|
6749
|
-
protoOf(ChannelCoroutine).
|
|
6750
|
-
return this.
|
|
6784
|
+
protoOf(ChannelCoroutine).bz = function (cause) {
|
|
6785
|
+
return this.rz_1.bz(cause);
|
|
6751
6786
|
};
|
|
6752
6787
|
protoOf(ChannelCoroutine).s = function () {
|
|
6753
|
-
return this.
|
|
6788
|
+
return this.rz_1.s();
|
|
6754
6789
|
};
|
|
6755
|
-
protoOf(ChannelCoroutine).
|
|
6756
|
-
var tmp = this.
|
|
6790
|
+
protoOf(ChannelCoroutine).yy = function ($completion) {
|
|
6791
|
+
var tmp = this.rz_1.yy($completion);
|
|
6757
6792
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
6758
6793
|
return tmp;
|
|
6759
6794
|
return tmp;
|
|
6760
6795
|
};
|
|
6761
6796
|
protoOf(ChannelCoroutine).uy = function (element, $completion) {
|
|
6762
|
-
return this.
|
|
6797
|
+
return this.rz_1.uy(element, $completion);
|
|
6763
6798
|
};
|
|
6764
|
-
protoOf(ChannelCoroutine).
|
|
6765
|
-
return this.
|
|
6799
|
+
protoOf(ChannelCoroutine).zy = function () {
|
|
6800
|
+
return this.rz_1.zy();
|
|
6766
6801
|
};
|
|
6767
6802
|
protoOf(ChannelCoroutine).fk = function (cause) {
|
|
6768
6803
|
if (this.uj())
|
|
@@ -6776,12 +6811,12 @@
|
|
|
6776
6811
|
}
|
|
6777
6812
|
this.hk(tmp);
|
|
6778
6813
|
};
|
|
6779
|
-
protoOf(ChannelCoroutine).
|
|
6814
|
+
protoOf(ChannelCoroutine).nz = function (cause, $super) {
|
|
6780
6815
|
return this.gk(cause, ($super == null ? true : $super instanceof ChannelCoroutine) ? $super : THROW_CCE());
|
|
6781
6816
|
};
|
|
6782
6817
|
protoOf(ChannelCoroutine).hk = function (cause) {
|
|
6783
6818
|
var exception = this.zj(cause);
|
|
6784
|
-
this.
|
|
6819
|
+
this.rz_1.fk(exception);
|
|
6785
6820
|
this.kk(exception);
|
|
6786
6821
|
};
|
|
6787
6822
|
function get_DEFAULT_CLOSE_MESSAGE() {
|
|
@@ -6802,7 +6837,7 @@
|
|
|
6802
6837
|
_this__u8e3s4.fk(tmp);
|
|
6803
6838
|
}
|
|
6804
6839
|
function trySendImpl($this, element, isSendOp) {
|
|
6805
|
-
return $this.
|
|
6840
|
+
return $this.f10_1 === BufferOverflow_DROP_LATEST_getInstance() ? trySendDropLatest($this, element, isSendOp) : $this.xy(element);
|
|
6806
6841
|
}
|
|
6807
6842
|
function trySendDropLatest($this, element, isSendOp) {
|
|
6808
6843
|
var result = protoOf(BufferedChannel).vy.call($this, element);
|
|
@@ -6821,101 +6856,28 @@
|
|
|
6821
6856
|
}
|
|
6822
6857
|
return Companion_getInstance_0().ew(Unit_instance);
|
|
6823
6858
|
}
|
|
6824
|
-
function trySendDropOldest($this, element) {
|
|
6825
|
-
var tmp$ret$3;
|
|
6826
|
-
$l$block: {
|
|
6827
|
-
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
6828
|
-
var waiter = get_BUFFERED();
|
|
6829
|
-
var segment = $this.bu_1.kotlinx$atomicfu$value;
|
|
6830
|
-
$l$loop_0: while (true) {
|
|
6831
|
-
var sendersAndCloseStatusCur = $this.xt_1.atomicfu$getAndIncrement$long();
|
|
6832
|
-
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
6833
|
-
var s = sendersAndCloseStatusCur.mb(get_SENDERS_COUNTER_MASK());
|
|
6834
|
-
var closed = _get_isClosedForSend0__kxgf9m(sendersAndCloseStatusCur, $this);
|
|
6835
|
-
// Inline function 'kotlin.Long.div' call
|
|
6836
|
-
var other = get_SEGMENT_SIZE();
|
|
6837
|
-
var id = s.eb(toLong(other));
|
|
6838
|
-
// Inline function 'kotlin.Long.rem' call
|
|
6839
|
-
var other_0 = get_SEGMENT_SIZE();
|
|
6840
|
-
var i = s.fb(toLong(other_0)).nb();
|
|
6841
|
-
if (!segment.ko_1.equals(id)) {
|
|
6842
|
-
var tmp0_elvis_lhs = findSegmentSend($this, id, segment);
|
|
6843
|
-
var tmp;
|
|
6844
|
-
if (tmp0_elvis_lhs == null) {
|
|
6845
|
-
var tmp_0;
|
|
6846
|
-
if (closed) {
|
|
6847
|
-
return Companion_getInstance_0().jw($this.yv());
|
|
6848
|
-
} else {
|
|
6849
|
-
continue $l$loop_0;
|
|
6850
|
-
}
|
|
6851
|
-
} else {
|
|
6852
|
-
tmp = tmp0_elvis_lhs;
|
|
6853
|
-
}
|
|
6854
|
-
segment = tmp;
|
|
6855
|
-
}
|
|
6856
|
-
var tmp1_subject = updateCellSend($this, segment, i, element, s, waiter, closed);
|
|
6857
|
-
if (tmp1_subject === _get_RESULT_RENDEZVOUS_$accessor$yt74tm_3irwt8()) {
|
|
6858
|
-
segment.tu();
|
|
6859
|
-
return Companion_getInstance_0().ew(Unit_instance);
|
|
6860
|
-
} else if (tmp1_subject === _get_RESULT_BUFFERED_$accessor$yt74tm_quor5m()) {
|
|
6861
|
-
return Companion_getInstance_0().ew(Unit_instance);
|
|
6862
|
-
} else if (tmp1_subject === _get_RESULT_SUSPEND_$accessor$yt74tm_cjypnf()) {
|
|
6863
|
-
if (closed) {
|
|
6864
|
-
segment.ju();
|
|
6865
|
-
return Companion_getInstance_0().jw($this.yv());
|
|
6866
|
-
}
|
|
6867
|
-
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter) : false) ? waiter : null;
|
|
6868
|
-
if (tmp2_safe_receiver == null)
|
|
6869
|
-
null;
|
|
6870
|
-
else {
|
|
6871
|
-
prepareSenderForSuspension(tmp2_safe_receiver, $this, segment, i);
|
|
6872
|
-
}
|
|
6873
|
-
// Inline function 'kotlin.Long.plus' call
|
|
6874
|
-
// Inline function 'kotlin.Long.times' call
|
|
6875
|
-
var this_0 = segment.ko_1;
|
|
6876
|
-
var other_1 = get_SEGMENT_SIZE();
|
|
6877
|
-
var tmp$ret$5 = this_0.db(toLong(other_1)).bb(toLong(i));
|
|
6878
|
-
$this.sw(tmp$ret$5);
|
|
6879
|
-
return Companion_getInstance_0().ew(Unit_instance);
|
|
6880
|
-
} else if (tmp1_subject === _get_RESULT_CLOSED_$accessor$yt74tm_10v48j()) {
|
|
6881
|
-
if (s.ab($this.zv()) < 0) {
|
|
6882
|
-
segment.tu();
|
|
6883
|
-
}
|
|
6884
|
-
return Companion_getInstance_0().jw($this.yv());
|
|
6885
|
-
} else if (tmp1_subject === _get_RESULT_FAILED_$accessor$yt74tm_vo1zj0()) {
|
|
6886
|
-
segment.tu();
|
|
6887
|
-
continue $l$loop_0;
|
|
6888
|
-
} else if (tmp1_subject === _get_RESULT_SUSPEND_NO_WAITER_$accessor$yt74tm_cvzv8m()) {
|
|
6889
|
-
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl.<anonymous>' call
|
|
6890
|
-
var message = 'unexpected';
|
|
6891
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
6892
|
-
}
|
|
6893
|
-
}
|
|
6894
|
-
}
|
|
6895
|
-
return tmp$ret$3;
|
|
6896
|
-
}
|
|
6897
6859
|
function ConflatedBufferedChannel(capacity, onBufferOverflow, onUndeliveredElement) {
|
|
6898
6860
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
6899
6861
|
BufferedChannel.call(this, capacity, onUndeliveredElement);
|
|
6900
|
-
this.
|
|
6901
|
-
this.
|
|
6862
|
+
this.e10_1 = capacity;
|
|
6863
|
+
this.f10_1 = onBufferOverflow;
|
|
6902
6864
|
// Inline function 'kotlin.require' call
|
|
6903
6865
|
// Inline function 'kotlin.contracts.contract' call
|
|
6904
|
-
if (!!(this.
|
|
6866
|
+
if (!!(this.f10_1 === BufferOverflow_SUSPEND_getInstance())) {
|
|
6905
6867
|
// Inline function 'kotlinx.coroutines.channels.ConflatedBufferedChannel.<anonymous>' call
|
|
6906
6868
|
var message = 'This implementation does not support suspension for senders, use ' + getKClass(BufferedChannel).k6() + ' instead';
|
|
6907
6869
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6908
6870
|
}
|
|
6909
6871
|
// Inline function 'kotlin.require' call
|
|
6910
6872
|
// Inline function 'kotlin.contracts.contract' call
|
|
6911
|
-
if (!(this.
|
|
6873
|
+
if (!(this.e10_1 >= 1)) {
|
|
6912
6874
|
// Inline function 'kotlinx.coroutines.channels.ConflatedBufferedChannel.<anonymous>' call
|
|
6913
|
-
var message_0 = 'Buffered channel capacity must be at least 1, but ' + this.
|
|
6875
|
+
var message_0 = 'Buffered channel capacity must be at least 1, but ' + this.e10_1 + ' was specified';
|
|
6914
6876
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
6915
6877
|
}
|
|
6916
6878
|
}
|
|
6917
6879
|
protoOf(ConflatedBufferedChannel).tw = function () {
|
|
6918
|
-
return this.
|
|
6880
|
+
return this.f10_1.equals(BufferOverflow_DROP_OLDEST_getInstance());
|
|
6919
6881
|
};
|
|
6920
6882
|
protoOf(ConflatedBufferedChannel).uy = function (element, $completion) {
|
|
6921
6883
|
// Inline function 'kotlinx.coroutines.channels.onClosed' call
|
|
@@ -6965,19 +6927,19 @@
|
|
|
6965
6927
|
protoOf(ProducerCoroutine).zi = function () {
|
|
6966
6928
|
return protoOf(ChannelCoroutine).zi.call(this);
|
|
6967
6929
|
};
|
|
6968
|
-
protoOf(ProducerCoroutine).
|
|
6969
|
-
this.
|
|
6930
|
+
protoOf(ProducerCoroutine).k10 = function (value) {
|
|
6931
|
+
this.rz_1.dz();
|
|
6970
6932
|
};
|
|
6971
6933
|
protoOf(ProducerCoroutine).aj = function (value) {
|
|
6972
|
-
return this.
|
|
6934
|
+
return this.k10(value instanceof Unit ? value : THROW_CCE());
|
|
6973
6935
|
};
|
|
6974
6936
|
protoOf(ProducerCoroutine).bj = function (cause, handled) {
|
|
6975
|
-
var processed = this.
|
|
6937
|
+
var processed = this.rz_1.bz(cause);
|
|
6976
6938
|
if (!processed ? !handled : false) {
|
|
6977
6939
|
handleCoroutineException(this.xi_1, cause);
|
|
6978
6940
|
}
|
|
6979
6941
|
};
|
|
6980
|
-
protoOf(ProducerCoroutine).
|
|
6942
|
+
protoOf(ProducerCoroutine).nz = function (cause, $super) {
|
|
6981
6943
|
return this.gk(cause, ($super == null ? true : $super instanceof ProducerCoroutine) ? $super : THROW_CCE());
|
|
6982
6944
|
};
|
|
6983
6945
|
function flowOf(value) {
|
|
@@ -6986,8 +6948,8 @@
|
|
|
6986
6948
|
}
|
|
6987
6949
|
function $collectCOROUTINE$8(_this__u8e3s4, collector, resultContinuation) {
|
|
6988
6950
|
CoroutineImpl.call(this, resultContinuation);
|
|
6989
|
-
this.
|
|
6990
|
-
this.
|
|
6951
|
+
this.t10_1 = _this__u8e3s4;
|
|
6952
|
+
this.u10_1 = collector;
|
|
6991
6953
|
}
|
|
6992
6954
|
protoOf($collectCOROUTINE$8).qc = function () {
|
|
6993
6955
|
var suspendResult = this.vb_1;
|
|
@@ -6998,9 +6960,9 @@
|
|
|
6998
6960
|
case 0:
|
|
6999
6961
|
this.ub_1 = 2;
|
|
7000
6962
|
var tmp_0 = this;
|
|
7001
|
-
tmp_0.
|
|
6963
|
+
tmp_0.v10_1 = this.u10_1;
|
|
7002
6964
|
this.tb_1 = 1;
|
|
7003
|
-
suspendResult = this.
|
|
6965
|
+
suspendResult = this.v10_1.x10(this.t10_1.w10_1, this);
|
|
7004
6966
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7005
6967
|
return suspendResult;
|
|
7006
6968
|
}
|
|
@@ -7023,9 +6985,9 @@
|
|
|
7023
6985
|
while (true);
|
|
7024
6986
|
};
|
|
7025
6987
|
function _no_name_provided__qut3iv($value) {
|
|
7026
|
-
this.
|
|
6988
|
+
this.w10_1 = $value;
|
|
7027
6989
|
}
|
|
7028
|
-
protoOf(_no_name_provided__qut3iv).
|
|
6990
|
+
protoOf(_no_name_provided__qut3iv).y10 = function (collector, $completion) {
|
|
7029
6991
|
var tmp = new $collectCOROUTINE$8(this, collector, $completion);
|
|
7030
6992
|
tmp.vb_1 = Unit_instance;
|
|
7031
6993
|
tmp.wb_1 = null;
|
|
@@ -7042,9 +7004,9 @@
|
|
|
7042
7004
|
}
|
|
7043
7005
|
function $emitAllImplCOROUTINE$9(_this__u8e3s4, channel, consume, resultContinuation) {
|
|
7044
7006
|
CoroutineImpl.call(this, resultContinuation);
|
|
7045
|
-
this.
|
|
7046
|
-
this.
|
|
7047
|
-
this.
|
|
7007
|
+
this.h11_1 = _this__u8e3s4;
|
|
7008
|
+
this.i11_1 = channel;
|
|
7009
|
+
this.j11_1 = consume;
|
|
7048
7010
|
}
|
|
7049
7011
|
protoOf($emitAllImplCOROUTINE$9).qc = function () {
|
|
7050
7012
|
var suspendResult = this.vb_1;
|
|
@@ -7054,19 +7016,19 @@
|
|
|
7054
7016
|
switch (tmp) {
|
|
7055
7017
|
case 0:
|
|
7056
7018
|
this.ub_1 = 9;
|
|
7057
|
-
ensureActive_1(this.
|
|
7058
|
-
this.
|
|
7019
|
+
ensureActive_1(this.h11_1);
|
|
7020
|
+
this.k11_1 = null;
|
|
7059
7021
|
this.tb_1 = 1;
|
|
7060
7022
|
continue $sm;
|
|
7061
7023
|
case 1:
|
|
7062
7024
|
this.ub_1 = 7;
|
|
7063
7025
|
this.ub_1 = 6;
|
|
7064
|
-
this.
|
|
7026
|
+
this.m11_1 = this.i11_1.s();
|
|
7065
7027
|
this.tb_1 = 2;
|
|
7066
7028
|
continue $sm;
|
|
7067
7029
|
case 2:
|
|
7068
7030
|
this.tb_1 = 3;
|
|
7069
|
-
suspendResult = this.
|
|
7031
|
+
suspendResult = this.m11_1.pw(this);
|
|
7070
7032
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7071
7033
|
return suspendResult;
|
|
7072
7034
|
}
|
|
@@ -7078,9 +7040,9 @@
|
|
|
7078
7040
|
continue $sm;
|
|
7079
7041
|
}
|
|
7080
7042
|
|
|
7081
|
-
this.
|
|
7043
|
+
this.n11_1 = this.m11_1.u();
|
|
7082
7044
|
this.tb_1 = 4;
|
|
7083
|
-
suspendResult = this.
|
|
7045
|
+
suspendResult = this.h11_1.x10(this.n11_1, this);
|
|
7084
7046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7085
7047
|
return suspendResult;
|
|
7086
7048
|
}
|
|
@@ -7090,7 +7052,7 @@
|
|
|
7090
7052
|
this.tb_1 = 2;
|
|
7091
7053
|
continue $sm;
|
|
7092
7054
|
case 5:
|
|
7093
|
-
this.
|
|
7055
|
+
this.l11_1 = Unit_instance;
|
|
7094
7056
|
this.ub_1 = 9;
|
|
7095
7057
|
this.tb_1 = 8;
|
|
7096
7058
|
continue $sm;
|
|
@@ -7100,7 +7062,7 @@
|
|
|
7100
7062
|
if (tmp_0 instanceof Error) {
|
|
7101
7063
|
var e = this.wb_1;
|
|
7102
7064
|
var tmp_1 = this;
|
|
7103
|
-
this.
|
|
7065
|
+
this.k11_1 = e;
|
|
7104
7066
|
throw e;
|
|
7105
7067
|
} else {
|
|
7106
7068
|
throw this.wb_1;
|
|
@@ -7109,15 +7071,15 @@
|
|
|
7109
7071
|
case 7:
|
|
7110
7072
|
this.ub_1 = 9;
|
|
7111
7073
|
var t = this.wb_1;
|
|
7112
|
-
if (this.
|
|
7113
|
-
cancelConsumed(this.
|
|
7074
|
+
if (this.j11_1) {
|
|
7075
|
+
cancelConsumed(this.i11_1, this.k11_1);
|
|
7114
7076
|
}
|
|
7115
7077
|
|
|
7116
7078
|
throw t;
|
|
7117
7079
|
case 8:
|
|
7118
7080
|
this.ub_1 = 9;
|
|
7119
|
-
if (this.
|
|
7120
|
-
cancelConsumed(this.
|
|
7081
|
+
if (this.j11_1) {
|
|
7082
|
+
cancelConsumed(this.i11_1, this.k11_1);
|
|
7121
7083
|
}
|
|
7122
7084
|
|
|
7123
7085
|
return Unit_instance;
|
|
@@ -7174,39 +7136,39 @@
|
|
|
7174
7136
|
}
|
|
7175
7137
|
function _get_head__d7jo8b($this) {
|
|
7176
7138
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
7177
|
-
var a = $this.
|
|
7178
|
-
var b = $this.
|
|
7139
|
+
var a = $this.x11_1;
|
|
7140
|
+
var b = $this.w11_1;
|
|
7179
7141
|
return a.ab(b) <= 0 ? a : b;
|
|
7180
7142
|
}
|
|
7181
7143
|
function _get_replaySize__dxgnb1($this) {
|
|
7182
7144
|
// Inline function 'kotlin.Long.plus' call
|
|
7183
7145
|
var this_0 = _get_head__d7jo8b($this);
|
|
7184
|
-
var other = $this.
|
|
7185
|
-
return this_0.bb(toLong(other)).cb($this.
|
|
7146
|
+
var other = $this.y11_1;
|
|
7147
|
+
return this_0.bb(toLong(other)).cb($this.w11_1).nb();
|
|
7186
7148
|
}
|
|
7187
7149
|
function _get_totalSize__xhdb3o($this) {
|
|
7188
|
-
return $this.
|
|
7150
|
+
return $this.y11_1 + $this.z11_1 | 0;
|
|
7189
7151
|
}
|
|
7190
7152
|
function _get_bufferEndIndex__d2rk18($this) {
|
|
7191
7153
|
// Inline function 'kotlin.Long.plus' call
|
|
7192
7154
|
var this_0 = _get_head__d7jo8b($this);
|
|
7193
|
-
var other = $this.
|
|
7155
|
+
var other = $this.y11_1;
|
|
7194
7156
|
return this_0.bb(toLong(other));
|
|
7195
7157
|
}
|
|
7196
7158
|
function _get_queueEndIndex__4m025l($this) {
|
|
7197
7159
|
// Inline function 'kotlin.Long.plus' call
|
|
7198
7160
|
// Inline function 'kotlin.Long.plus' call
|
|
7199
7161
|
var this_0 = _get_head__d7jo8b($this);
|
|
7200
|
-
var other = $this.
|
|
7162
|
+
var other = $this.y11_1;
|
|
7201
7163
|
var this_1 = this_0.bb(toLong(other));
|
|
7202
|
-
var other_0 = $this.
|
|
7164
|
+
var other_0 = $this.z11_1;
|
|
7203
7165
|
return this_1.bb(toLong(other_0));
|
|
7204
7166
|
}
|
|
7205
7167
|
function tryEmitLocked($this, value) {
|
|
7206
|
-
if ($this.
|
|
7168
|
+
if ($this.b12_1 === 0)
|
|
7207
7169
|
return tryEmitNoCollectorsLocked($this, value);
|
|
7208
|
-
if ($this.
|
|
7209
|
-
switch ($this.
|
|
7170
|
+
if ($this.y11_1 >= $this.t11_1 ? $this.x11_1.ab($this.w11_1) <= 0 : false) {
|
|
7171
|
+
switch ($this.u11_1.a9_1) {
|
|
7210
7172
|
case 0:
|
|
7211
7173
|
return false;
|
|
7212
7174
|
case 2:
|
|
@@ -7216,41 +7178,41 @@
|
|
|
7216
7178
|
}
|
|
7217
7179
|
}
|
|
7218
7180
|
enqueueLocked($this, value);
|
|
7219
|
-
$this.
|
|
7220
|
-
if ($this.
|
|
7181
|
+
$this.y11_1 = $this.y11_1 + 1 | 0;
|
|
7182
|
+
if ($this.y11_1 > $this.t11_1) {
|
|
7221
7183
|
dropOldestLocked($this);
|
|
7222
7184
|
}
|
|
7223
|
-
if (_get_replaySize__dxgnb1($this) > $this.
|
|
7185
|
+
if (_get_replaySize__dxgnb1($this) > $this.s11_1) {
|
|
7224
7186
|
// Inline function 'kotlin.Long.plus' call
|
|
7225
|
-
var tmp$ret$0 = $this.
|
|
7226
|
-
updateBufferLocked($this, tmp$ret$0, $this.
|
|
7187
|
+
var tmp$ret$0 = $this.w11_1.bb(toLong(1));
|
|
7188
|
+
updateBufferLocked($this, tmp$ret$0, $this.x11_1, _get_bufferEndIndex__d2rk18($this), _get_queueEndIndex__4m025l($this));
|
|
7227
7189
|
}
|
|
7228
7190
|
return true;
|
|
7229
7191
|
}
|
|
7230
7192
|
function tryEmitNoCollectorsLocked($this, value) {
|
|
7231
7193
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7232
|
-
if ($this.
|
|
7194
|
+
if ($this.s11_1 === 0)
|
|
7233
7195
|
return true;
|
|
7234
7196
|
enqueueLocked($this, value);
|
|
7235
|
-
$this.
|
|
7236
|
-
if ($this.
|
|
7197
|
+
$this.y11_1 = $this.y11_1 + 1 | 0;
|
|
7198
|
+
if ($this.y11_1 > $this.s11_1) {
|
|
7237
7199
|
dropOldestLocked($this);
|
|
7238
7200
|
}
|
|
7239
7201
|
var tmp = $this;
|
|
7240
7202
|
// Inline function 'kotlin.Long.plus' call
|
|
7241
7203
|
var this_0 = _get_head__d7jo8b($this);
|
|
7242
|
-
var other = $this.
|
|
7243
|
-
tmp.
|
|
7204
|
+
var other = $this.y11_1;
|
|
7205
|
+
tmp.x11_1 = this_0.bb(toLong(other));
|
|
7244
7206
|
return true;
|
|
7245
7207
|
}
|
|
7246
7208
|
function dropOldestLocked($this) {
|
|
7247
|
-
setBufferAt(ensureNotNull($this.
|
|
7248
|
-
$this.
|
|
7209
|
+
setBufferAt(ensureNotNull($this.v11_1), _get_head__d7jo8b($this), null);
|
|
7210
|
+
$this.y11_1 = $this.y11_1 - 1 | 0;
|
|
7249
7211
|
// Inline function 'kotlin.Long.plus' call
|
|
7250
7212
|
var newHead = _get_head__d7jo8b($this).bb(toLong(1));
|
|
7251
|
-
if ($this.
|
|
7252
|
-
$this.
|
|
7253
|
-
if ($this.
|
|
7213
|
+
if ($this.w11_1.ab(newHead) < 0)
|
|
7214
|
+
$this.w11_1 = newHead;
|
|
7215
|
+
if ($this.x11_1.ab(newHead) < 0) {
|
|
7254
7216
|
correctCollectorIndexesOnDropOldest($this, newHead);
|
|
7255
7217
|
}
|
|
7256
7218
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
@@ -7258,10 +7220,10 @@
|
|
|
7258
7220
|
function correctCollectorIndexesOnDropOldest($this, newHead) {
|
|
7259
7221
|
$l$block: {
|
|
7260
7222
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked' call
|
|
7261
|
-
if ($this.
|
|
7223
|
+
if ($this.b12_1 === 0) {
|
|
7262
7224
|
break $l$block;
|
|
7263
7225
|
}
|
|
7264
|
-
var tmp0_safe_receiver = $this.
|
|
7226
|
+
var tmp0_safe_receiver = $this.a12_1;
|
|
7265
7227
|
if (tmp0_safe_receiver == null)
|
|
7266
7228
|
null;
|
|
7267
7229
|
else {
|
|
@@ -7274,18 +7236,18 @@
|
|
|
7274
7236
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked.<anonymous>' call
|
|
7275
7237
|
if (!(element == null)) {
|
|
7276
7238
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.correctCollectorIndexesOnDropOldest.<anonymous>' call
|
|
7277
|
-
if (element.
|
|
7278
|
-
element.
|
|
7239
|
+
if (element.e12_1.ab(new Long(0, 0)) >= 0 ? element.e12_1.ab(newHead) < 0 : false) {
|
|
7240
|
+
element.e12_1 = newHead;
|
|
7279
7241
|
}
|
|
7280
7242
|
}
|
|
7281
7243
|
}
|
|
7282
7244
|
}
|
|
7283
7245
|
}
|
|
7284
|
-
$this.
|
|
7246
|
+
$this.x11_1 = newHead;
|
|
7285
7247
|
}
|
|
7286
7248
|
function enqueueLocked($this, item) {
|
|
7287
7249
|
var curSize = _get_totalSize__xhdb3o($this);
|
|
7288
|
-
var curBuffer = $this.
|
|
7250
|
+
var curBuffer = $this.v11_1;
|
|
7289
7251
|
var buffer = curBuffer == null ? growBuffer($this, null, 0, 2) : curSize >= curBuffer.length ? growBuffer($this, curBuffer, curSize, imul(curBuffer.length, 2)) : curBuffer;
|
|
7290
7252
|
// Inline function 'kotlin.Long.plus' call
|
|
7291
7253
|
var tmp$ret$0 = _get_head__d7jo8b($this).bb(toLong(curSize));
|
|
@@ -7304,7 +7266,7 @@
|
|
|
7304
7266
|
var this_0 = fillArrayVal(Array(newSize), null);
|
|
7305
7267
|
// Inline function 'kotlin.contracts.contract' call
|
|
7306
7268
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.growBuffer.<anonymous>' call
|
|
7307
|
-
$this.
|
|
7269
|
+
$this.v11_1 = this_0;
|
|
7308
7270
|
var newBuffer = this_0;
|
|
7309
7271
|
if (curBuffer == null)
|
|
7310
7272
|
return newBuffer;
|
|
@@ -7353,8 +7315,8 @@
|
|
|
7353
7315
|
// Inline function 'kotlin.contracts.contract' call
|
|
7354
7316
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.emitSuspend.<anonymous>.<anonymous>.<anonymous>' call
|
|
7355
7317
|
enqueueLocked($this, this_1);
|
|
7356
|
-
$this.
|
|
7357
|
-
if ($this.
|
|
7318
|
+
$this.z11_1 = $this.z11_1 + 1 | 0;
|
|
7319
|
+
if ($this.t11_1 === 0)
|
|
7358
7320
|
resumes = findSlotsToResumeLocked($this, resumes);
|
|
7359
7321
|
tmp$ret$2 = this_1;
|
|
7360
7322
|
}
|
|
@@ -7381,18 +7343,18 @@
|
|
|
7381
7343
|
r.rc(tmp$ret$8);
|
|
7382
7344
|
}
|
|
7383
7345
|
}
|
|
7384
|
-
return cancellable.
|
|
7346
|
+
return cancellable.vm();
|
|
7385
7347
|
}
|
|
7386
7348
|
function cancelEmitter($this, emitter) {
|
|
7387
7349
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7388
7350
|
// Inline function 'kotlin.contracts.contract' call
|
|
7389
7351
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
7390
|
-
if (emitter.
|
|
7352
|
+
if (emitter.h12_1.ab(_get_head__d7jo8b($this)) < 0)
|
|
7391
7353
|
return Unit_instance;
|
|
7392
|
-
var buffer = ensureNotNull($this.
|
|
7393
|
-
if (!(getBufferAt(buffer, emitter.
|
|
7354
|
+
var buffer = ensureNotNull($this.v11_1);
|
|
7355
|
+
if (!(getBufferAt(buffer, emitter.h12_1) === emitter))
|
|
7394
7356
|
return Unit_instance;
|
|
7395
|
-
setBufferAt(buffer, emitter.
|
|
7357
|
+
setBufferAt(buffer, emitter.h12_1, get_NO_VALUE());
|
|
7396
7358
|
cleanupTailLocked($this);
|
|
7397
7359
|
return Unit_instance;
|
|
7398
7360
|
}
|
|
@@ -7405,24 +7367,24 @@
|
|
|
7405
7367
|
do {
|
|
7406
7368
|
var index = inductionVariable;
|
|
7407
7369
|
inductionVariable = inductionVariable.bb(new Long(1, 0));
|
|
7408
|
-
setBufferAt(ensureNotNull($this.
|
|
7370
|
+
setBufferAt(ensureNotNull($this.v11_1), index, null);
|
|
7409
7371
|
}
|
|
7410
7372
|
while (inductionVariable.ab(newHead) < 0);
|
|
7411
|
-
$this.
|
|
7412
|
-
$this.
|
|
7413
|
-
$this.
|
|
7414
|
-
$this.
|
|
7373
|
+
$this.w11_1 = newReplayIndex;
|
|
7374
|
+
$this.x11_1 = newMinCollectorIndex;
|
|
7375
|
+
$this.y11_1 = newBufferEndIndex.cb(newHead).nb();
|
|
7376
|
+
$this.z11_1 = newQueueEndIndex.cb(newBufferEndIndex).nb();
|
|
7415
7377
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7416
7378
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7417
7379
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7418
7380
|
}
|
|
7419
7381
|
function cleanupTailLocked($this) {
|
|
7420
|
-
if ($this.
|
|
7382
|
+
if ($this.t11_1 === 0 ? $this.z11_1 <= 1 : false)
|
|
7421
7383
|
return Unit_instance;
|
|
7422
|
-
var buffer = ensureNotNull($this.
|
|
7384
|
+
var buffer = ensureNotNull($this.v11_1);
|
|
7423
7385
|
$l$loop: while (true) {
|
|
7424
7386
|
var tmp;
|
|
7425
|
-
if ($this.
|
|
7387
|
+
if ($this.z11_1 > 0) {
|
|
7426
7388
|
// Inline function 'kotlin.Long.minus' call
|
|
7427
7389
|
// Inline function 'kotlin.Long.plus' call
|
|
7428
7390
|
var this_0 = _get_head__d7jo8b($this);
|
|
@@ -7435,7 +7397,7 @@
|
|
|
7435
7397
|
if (!tmp) {
|
|
7436
7398
|
break $l$loop;
|
|
7437
7399
|
}
|
|
7438
|
-
$this.
|
|
7400
|
+
$this.z11_1 = $this.z11_1 - 1 | 0;
|
|
7439
7401
|
// Inline function 'kotlin.Long.plus' call
|
|
7440
7402
|
var this_1 = _get_head__d7jo8b($this);
|
|
7441
7403
|
var other_0 = _get_totalSize__xhdb3o($this);
|
|
@@ -7454,12 +7416,12 @@
|
|
|
7454
7416
|
if (index.ab(new Long(0, 0)) < 0) {
|
|
7455
7417
|
tmp = get_NO_VALUE();
|
|
7456
7418
|
} else {
|
|
7457
|
-
var oldIndex = slot.
|
|
7419
|
+
var oldIndex = slot.e12_1;
|
|
7458
7420
|
var newValue = getPeekedValueLockedAt($this, index);
|
|
7459
7421
|
var tmp_0 = slot;
|
|
7460
7422
|
// Inline function 'kotlin.Long.plus' call
|
|
7461
|
-
tmp_0.
|
|
7462
|
-
resumes = $this.
|
|
7423
|
+
tmp_0.e12_1 = index.bb(toLong(1));
|
|
7424
|
+
resumes = $this.k12(oldIndex);
|
|
7463
7425
|
tmp = newValue;
|
|
7464
7426
|
}
|
|
7465
7427
|
var value = tmp;
|
|
@@ -7481,22 +7443,22 @@
|
|
|
7481
7443
|
return value;
|
|
7482
7444
|
}
|
|
7483
7445
|
function tryPeekLocked($this, slot) {
|
|
7484
|
-
var index = slot.
|
|
7446
|
+
var index = slot.e12_1;
|
|
7485
7447
|
if (index.ab(_get_bufferEndIndex__d2rk18($this)) < 0)
|
|
7486
7448
|
return index;
|
|
7487
|
-
if ($this.
|
|
7449
|
+
if ($this.t11_1 > 0)
|
|
7488
7450
|
return new Long(-1, -1);
|
|
7489
7451
|
if (index.ab(_get_head__d7jo8b($this)) > 0)
|
|
7490
7452
|
return new Long(-1, -1);
|
|
7491
|
-
if ($this.
|
|
7453
|
+
if ($this.z11_1 === 0)
|
|
7492
7454
|
return new Long(-1, -1);
|
|
7493
7455
|
return index;
|
|
7494
7456
|
}
|
|
7495
7457
|
function getPeekedValueLockedAt($this, index) {
|
|
7496
|
-
var item = getBufferAt(ensureNotNull($this.
|
|
7458
|
+
var item = getBufferAt(ensureNotNull($this.v11_1), index);
|
|
7497
7459
|
var tmp;
|
|
7498
7460
|
if (item instanceof Emitter) {
|
|
7499
|
-
tmp = item.
|
|
7461
|
+
tmp = item.i12_1;
|
|
7500
7462
|
} else {
|
|
7501
7463
|
tmp = item;
|
|
7502
7464
|
}
|
|
@@ -7514,7 +7476,7 @@
|
|
|
7514
7476
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.awaitValue.<anonymous>.<anonymous>' call
|
|
7515
7477
|
var index = tryPeekLocked($this, slot);
|
|
7516
7478
|
if (index.ab(new Long(0, 0)) < 0) {
|
|
7517
|
-
slot.
|
|
7479
|
+
slot.f12_1 = cancellable;
|
|
7518
7480
|
} else {
|
|
7519
7481
|
// Inline function 'kotlin.coroutines.resume' call
|
|
7520
7482
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -7522,19 +7484,19 @@
|
|
|
7522
7484
|
cancellable.rc(tmp$ret$0);
|
|
7523
7485
|
break $l$block;
|
|
7524
7486
|
}
|
|
7525
|
-
slot.
|
|
7487
|
+
slot.f12_1 = cancellable;
|
|
7526
7488
|
}
|
|
7527
|
-
return cancellable.
|
|
7489
|
+
return cancellable.vm();
|
|
7528
7490
|
}
|
|
7529
7491
|
function findSlotsToResumeLocked($this, resumesIn) {
|
|
7530
7492
|
var resumes = resumesIn;
|
|
7531
7493
|
var resumeCount = resumesIn.length;
|
|
7532
7494
|
$l$block: {
|
|
7533
7495
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked' call
|
|
7534
|
-
if ($this.
|
|
7496
|
+
if ($this.b12_1 === 0) {
|
|
7535
7497
|
break $l$block;
|
|
7536
7498
|
}
|
|
7537
|
-
var tmp0_safe_receiver = $this.
|
|
7499
|
+
var tmp0_safe_receiver = $this.a12_1;
|
|
7538
7500
|
if (tmp0_safe_receiver == null)
|
|
7539
7501
|
null;
|
|
7540
7502
|
else {
|
|
@@ -7548,7 +7510,7 @@
|
|
|
7548
7510
|
if (!(element == null)) {
|
|
7549
7511
|
$l$block_1: {
|
|
7550
7512
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.findSlotsToResumeLocked.<anonymous>' call
|
|
7551
|
-
var tmp0_elvis_lhs = element.
|
|
7513
|
+
var tmp0_elvis_lhs = element.f12_1;
|
|
7552
7514
|
var tmp;
|
|
7553
7515
|
if (tmp0_elvis_lhs == null) {
|
|
7554
7516
|
break $l$block_1;
|
|
@@ -7570,7 +7532,7 @@
|
|
|
7570
7532
|
var tmp1 = resumeCount;
|
|
7571
7533
|
resumeCount = tmp1 + 1 | 0;
|
|
7572
7534
|
tmp_1[tmp1] = cont;
|
|
7573
|
-
element.
|
|
7535
|
+
element.f12_1 = null;
|
|
7574
7536
|
}
|
|
7575
7537
|
}
|
|
7576
7538
|
}
|
|
@@ -7579,18 +7541,18 @@
|
|
|
7579
7541
|
return resumes;
|
|
7580
7542
|
}
|
|
7581
7543
|
function Emitter(flow, index, value, cont) {
|
|
7582
|
-
this.
|
|
7583
|
-
this.
|
|
7584
|
-
this.
|
|
7585
|
-
this.
|
|
7544
|
+
this.g12_1 = flow;
|
|
7545
|
+
this.h12_1 = index;
|
|
7546
|
+
this.i12_1 = value;
|
|
7547
|
+
this.j12_1 = cont;
|
|
7586
7548
|
}
|
|
7587
7549
|
protoOf(Emitter).rl = function () {
|
|
7588
|
-
return cancelEmitter(this.
|
|
7550
|
+
return cancelEmitter(this.g12_1, this);
|
|
7589
7551
|
};
|
|
7590
7552
|
function $collectCOROUTINE$10(_this__u8e3s4, collector, resultContinuation) {
|
|
7591
7553
|
CoroutineImpl.call(this, resultContinuation);
|
|
7592
|
-
this.
|
|
7593
|
-
this.
|
|
7554
|
+
this.t12_1 = _this__u8e3s4;
|
|
7555
|
+
this.u12_1 = collector;
|
|
7594
7556
|
}
|
|
7595
7557
|
protoOf($collectCOROUTINE$10).qc = function () {
|
|
7596
7558
|
var suspendResult = this.vb_1;
|
|
@@ -7600,15 +7562,15 @@
|
|
|
7600
7562
|
switch (tmp) {
|
|
7601
7563
|
case 0:
|
|
7602
7564
|
this.ub_1 = 13;
|
|
7603
|
-
this.
|
|
7565
|
+
this.v12_1 = this.t12_1.z12();
|
|
7604
7566
|
this.tb_1 = 1;
|
|
7605
7567
|
continue $sm;
|
|
7606
7568
|
case 1:
|
|
7607
7569
|
this.ub_1 = 12;
|
|
7608
|
-
var tmp_0 = this.
|
|
7570
|
+
var tmp_0 = this.u12_1;
|
|
7609
7571
|
if (tmp_0 instanceof SubscribedFlowCollector) {
|
|
7610
7572
|
this.tb_1 = 2;
|
|
7611
|
-
suspendResult = this.
|
|
7573
|
+
suspendResult = this.u12_1.c13(this);
|
|
7612
7574
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7613
7575
|
return suspendResult;
|
|
7614
7576
|
}
|
|
@@ -7623,7 +7585,7 @@
|
|
|
7623
7585
|
continue $sm;
|
|
7624
7586
|
case 3:
|
|
7625
7587
|
var tmp_1 = this;
|
|
7626
|
-
tmp_1.
|
|
7588
|
+
tmp_1.x12_1 = this.ac().bc(Key_instance_2);
|
|
7627
7589
|
this.tb_1 = 4;
|
|
7628
7590
|
continue $sm;
|
|
7629
7591
|
case 4:
|
|
@@ -7640,8 +7602,8 @@
|
|
|
7640
7602
|
continue $sm;
|
|
7641
7603
|
}
|
|
7642
7604
|
|
|
7643
|
-
this.
|
|
7644
|
-
if (!(this.
|
|
7605
|
+
this.y12_1 = tryTakeValue(this.t12_1, this.v12_1);
|
|
7606
|
+
if (!(this.y12_1 === get_NO_VALUE())) {
|
|
7645
7607
|
this.tb_1 = 8;
|
|
7646
7608
|
continue $sm;
|
|
7647
7609
|
} else {
|
|
@@ -7651,7 +7613,7 @@
|
|
|
7651
7613
|
|
|
7652
7614
|
case 6:
|
|
7653
7615
|
this.tb_1 = 7;
|
|
7654
|
-
suspendResult = awaitValue(this.
|
|
7616
|
+
suspendResult = awaitValue(this.t12_1, this.v12_1, this);
|
|
7655
7617
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7656
7618
|
return suspendResult;
|
|
7657
7619
|
}
|
|
@@ -7661,7 +7623,7 @@
|
|
|
7661
7623
|
this.tb_1 = 5;
|
|
7662
7624
|
continue $sm;
|
|
7663
7625
|
case 8:
|
|
7664
|
-
var tmp0_safe_receiver = this.
|
|
7626
|
+
var tmp0_safe_receiver = this.x12_1;
|
|
7665
7627
|
if (tmp0_safe_receiver == null)
|
|
7666
7628
|
null;
|
|
7667
7629
|
else {
|
|
@@ -7669,8 +7631,8 @@
|
|
|
7669
7631
|
}
|
|
7670
7632
|
|
|
7671
7633
|
this.tb_1 = 9;
|
|
7672
|
-
var tmp_2 = this.
|
|
7673
|
-
suspendResult = this.
|
|
7634
|
+
var tmp_2 = this.y12_1;
|
|
7635
|
+
suspendResult = this.u12_1.x10((tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE(), this);
|
|
7674
7636
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7675
7637
|
return suspendResult;
|
|
7676
7638
|
}
|
|
@@ -7680,18 +7642,18 @@
|
|
|
7680
7642
|
this.tb_1 = 4;
|
|
7681
7643
|
continue $sm;
|
|
7682
7644
|
case 10:
|
|
7683
|
-
this.
|
|
7645
|
+
this.w12_1 = Unit_instance;
|
|
7684
7646
|
this.ub_1 = 13;
|
|
7685
7647
|
this.tb_1 = 11;
|
|
7686
7648
|
continue $sm;
|
|
7687
7649
|
case 11:
|
|
7688
7650
|
this.ub_1 = 13;
|
|
7689
|
-
this.
|
|
7651
|
+
this.t12_1.d13(this.v12_1);
|
|
7690
7652
|
return Unit_instance;
|
|
7691
7653
|
case 12:
|
|
7692
7654
|
this.ub_1 = 13;
|
|
7693
7655
|
var t = this.wb_1;
|
|
7694
|
-
this.
|
|
7656
|
+
this.t12_1.d13(this.v12_1);
|
|
7695
7657
|
throw t;
|
|
7696
7658
|
case 13:
|
|
7697
7659
|
throw this.wb_1;
|
|
@@ -7709,35 +7671,35 @@
|
|
|
7709
7671
|
};
|
|
7710
7672
|
function SharedFlowImpl(replay, bufferCapacity, onBufferOverflow) {
|
|
7711
7673
|
AbstractSharedFlow.call(this);
|
|
7712
|
-
this.
|
|
7713
|
-
this.
|
|
7714
|
-
this.
|
|
7715
|
-
this.
|
|
7716
|
-
this.v11_1 = new Long(0, 0);
|
|
7674
|
+
this.s11_1 = replay;
|
|
7675
|
+
this.t11_1 = bufferCapacity;
|
|
7676
|
+
this.u11_1 = onBufferOverflow;
|
|
7677
|
+
this.v11_1 = null;
|
|
7717
7678
|
this.w11_1 = new Long(0, 0);
|
|
7718
|
-
this.x11_1 = 0;
|
|
7679
|
+
this.x11_1 = new Long(0, 0);
|
|
7719
7680
|
this.y11_1 = 0;
|
|
7681
|
+
this.z11_1 = 0;
|
|
7720
7682
|
}
|
|
7721
|
-
protoOf(SharedFlowImpl).
|
|
7722
|
-
var tmp = ensureNotNull(this.
|
|
7683
|
+
protoOf(SharedFlowImpl).e13 = function () {
|
|
7684
|
+
var tmp = ensureNotNull(this.v11_1);
|
|
7723
7685
|
// Inline function 'kotlin.Long.minus' call
|
|
7724
7686
|
// Inline function 'kotlin.Long.plus' call
|
|
7725
|
-
var this_0 = this.
|
|
7687
|
+
var this_0 = this.w11_1;
|
|
7726
7688
|
var other = _get_replaySize__dxgnb1(this);
|
|
7727
7689
|
var tmp$ret$1 = this_0.bb(toLong(other)).cb(toLong(1));
|
|
7728
7690
|
var tmp_0 = getBufferAt(tmp, tmp$ret$1);
|
|
7729
7691
|
return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
7730
7692
|
};
|
|
7731
|
-
protoOf(SharedFlowImpl).
|
|
7693
|
+
protoOf(SharedFlowImpl).f13 = function (collector, $completion) {
|
|
7732
7694
|
var tmp = new $collectCOROUTINE$10(this, collector, $completion);
|
|
7733
7695
|
tmp.vb_1 = Unit_instance;
|
|
7734
7696
|
tmp.wb_1 = null;
|
|
7735
7697
|
return tmp.qc();
|
|
7736
7698
|
};
|
|
7737
|
-
protoOf(SharedFlowImpl).
|
|
7738
|
-
return this.
|
|
7699
|
+
protoOf(SharedFlowImpl).y10 = function (collector, $completion) {
|
|
7700
|
+
return this.f13(collector, $completion);
|
|
7739
7701
|
};
|
|
7740
|
-
protoOf(SharedFlowImpl).
|
|
7702
|
+
protoOf(SharedFlowImpl).g13 = function (value) {
|
|
7741
7703
|
var resumes = get_EMPTY_RESUMES();
|
|
7742
7704
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7743
7705
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7768,34 +7730,34 @@
|
|
|
7768
7730
|
}
|
|
7769
7731
|
return emitted;
|
|
7770
7732
|
};
|
|
7771
|
-
protoOf(SharedFlowImpl).
|
|
7772
|
-
if (this.
|
|
7733
|
+
protoOf(SharedFlowImpl).x10 = function (value, $completion) {
|
|
7734
|
+
if (this.g13(value))
|
|
7773
7735
|
return Unit_instance;
|
|
7774
7736
|
return emitSuspend(this, value, $completion);
|
|
7775
7737
|
};
|
|
7776
|
-
protoOf(SharedFlowImpl).
|
|
7777
|
-
var index = this.
|
|
7778
|
-
if (index.ab(this.
|
|
7779
|
-
this.
|
|
7738
|
+
protoOf(SharedFlowImpl).h13 = function () {
|
|
7739
|
+
var index = this.w11_1;
|
|
7740
|
+
if (index.ab(this.x11_1) < 0)
|
|
7741
|
+
this.x11_1 = index;
|
|
7780
7742
|
return index;
|
|
7781
7743
|
};
|
|
7782
|
-
protoOf(SharedFlowImpl).
|
|
7744
|
+
protoOf(SharedFlowImpl).k12 = function (oldIndex) {
|
|
7783
7745
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7784
|
-
if (oldIndex.ab(this.
|
|
7746
|
+
if (oldIndex.ab(this.x11_1) > 0)
|
|
7785
7747
|
return get_EMPTY_RESUMES();
|
|
7786
7748
|
var head = _get_head__d7jo8b(this);
|
|
7787
7749
|
// Inline function 'kotlin.Long.plus' call
|
|
7788
|
-
var other = this.
|
|
7750
|
+
var other = this.y11_1;
|
|
7789
7751
|
var newMinCollectorIndex = head.bb(toLong(other));
|
|
7790
|
-
if (this.
|
|
7752
|
+
if (this.t11_1 === 0 ? this.z11_1 > 0 : false) {
|
|
7791
7753
|
newMinCollectorIndex = newMinCollectorIndex.gb();
|
|
7792
7754
|
}
|
|
7793
7755
|
$l$block: {
|
|
7794
7756
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked' call
|
|
7795
|
-
if (this.
|
|
7757
|
+
if (this.b12_1 === 0) {
|
|
7796
7758
|
break $l$block;
|
|
7797
7759
|
}
|
|
7798
|
-
var tmp0_safe_receiver = this.
|
|
7760
|
+
var tmp0_safe_receiver = this.a12_1;
|
|
7799
7761
|
if (tmp0_safe_receiver == null)
|
|
7800
7762
|
null;
|
|
7801
7763
|
else {
|
|
@@ -7808,37 +7770,37 @@
|
|
|
7808
7770
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked.<anonymous>' call
|
|
7809
7771
|
if (!(element == null)) {
|
|
7810
7772
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.updateCollectorIndexLocked.<anonymous>' call
|
|
7811
|
-
if (element.
|
|
7812
|
-
newMinCollectorIndex = element.
|
|
7773
|
+
if (element.e12_1.ab(new Long(0, 0)) >= 0 ? element.e12_1.ab(newMinCollectorIndex) < 0 : false)
|
|
7774
|
+
newMinCollectorIndex = element.e12_1;
|
|
7813
7775
|
}
|
|
7814
7776
|
}
|
|
7815
7777
|
}
|
|
7816
7778
|
}
|
|
7817
7779
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7818
|
-
if (newMinCollectorIndex.ab(this.
|
|
7780
|
+
if (newMinCollectorIndex.ab(this.x11_1) <= 0)
|
|
7819
7781
|
return get_EMPTY_RESUMES();
|
|
7820
7782
|
var newBufferEndIndex = _get_bufferEndIndex__d2rk18(this);
|
|
7821
7783
|
var tmp;
|
|
7822
|
-
if (this.
|
|
7784
|
+
if (this.b12_1 > 0) {
|
|
7823
7785
|
var newBufferSize0 = newBufferEndIndex.cb(newMinCollectorIndex).nb();
|
|
7824
7786
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
7825
|
-
var a = this.
|
|
7826
|
-
var b = this.
|
|
7787
|
+
var a = this.z11_1;
|
|
7788
|
+
var b = this.t11_1 - newBufferSize0 | 0;
|
|
7827
7789
|
tmp = Math.min(a, b);
|
|
7828
7790
|
} else {
|
|
7829
|
-
tmp = this.
|
|
7791
|
+
tmp = this.z11_1;
|
|
7830
7792
|
}
|
|
7831
7793
|
var maxResumeCount = tmp;
|
|
7832
7794
|
var resumes = get_EMPTY_RESUMES();
|
|
7833
7795
|
// Inline function 'kotlin.Long.plus' call
|
|
7834
7796
|
var this_0 = newBufferEndIndex;
|
|
7835
|
-
var other_0 = this.
|
|
7797
|
+
var other_0 = this.z11_1;
|
|
7836
7798
|
var newQueueEndIndex = this_0.bb(toLong(other_0));
|
|
7837
7799
|
if (maxResumeCount > 0) {
|
|
7838
7800
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
7839
7801
|
resumes = fillArrayVal(Array(maxResumeCount), null);
|
|
7840
7802
|
var resumeCount = 0;
|
|
7841
|
-
var buffer = ensureNotNull(this.
|
|
7803
|
+
var buffer = ensureNotNull(this.v11_1);
|
|
7842
7804
|
var inductionVariable_0 = newBufferEndIndex;
|
|
7843
7805
|
if (inductionVariable_0.ab(newQueueEndIndex) < 0)
|
|
7844
7806
|
$l$loop: do {
|
|
@@ -7851,9 +7813,9 @@
|
|
|
7851
7813
|
var tmp_0 = resumes;
|
|
7852
7814
|
var tmp2 = resumeCount;
|
|
7853
7815
|
resumeCount = tmp2 + 1 | 0;
|
|
7854
|
-
tmp_0[tmp2] = emitter.
|
|
7816
|
+
tmp_0[tmp2] = emitter.j12_1;
|
|
7855
7817
|
setBufferAt(buffer, curEmitterIndex, get_NO_VALUE());
|
|
7856
|
-
setBufferAt(buffer, newBufferEndIndex, emitter.
|
|
7818
|
+
setBufferAt(buffer, newBufferEndIndex, emitter.i12_1);
|
|
7857
7819
|
newBufferEndIndex = newBufferEndIndex.gb();
|
|
7858
7820
|
if (resumeCount >= maxResumeCount)
|
|
7859
7821
|
break $l$loop;
|
|
@@ -7862,18 +7824,18 @@
|
|
|
7862
7824
|
while (inductionVariable_0.ab(newQueueEndIndex) < 0);
|
|
7863
7825
|
}
|
|
7864
7826
|
var newBufferSize1 = newBufferEndIndex.cb(head).nb();
|
|
7865
|
-
if (this.
|
|
7827
|
+
if (this.b12_1 === 0)
|
|
7866
7828
|
newMinCollectorIndex = newBufferEndIndex;
|
|
7867
7829
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
7868
|
-
var a_0 = this.
|
|
7830
|
+
var a_0 = this.w11_1;
|
|
7869
7831
|
// Inline function 'kotlin.Long.minus' call
|
|
7870
7832
|
var this_1 = newBufferEndIndex;
|
|
7871
7833
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
7872
|
-
var a_1 = this.
|
|
7834
|
+
var a_1 = this.s11_1;
|
|
7873
7835
|
var other_1 = Math.min(a_1, newBufferSize1);
|
|
7874
7836
|
var b_0 = this_1.cb(toLong(other_1));
|
|
7875
7837
|
var newReplayIndex = a_0.ab(b_0) >= 0 ? a_0 : b_0;
|
|
7876
|
-
if ((this.
|
|
7838
|
+
if ((this.t11_1 === 0 ? newReplayIndex.ab(newQueueEndIndex) < 0 : false) ? equals(getBufferAt(ensureNotNull(this.v11_1), newReplayIndex), get_NO_VALUE()) : false) {
|
|
7877
7839
|
newBufferEndIndex = newBufferEndIndex.gb();
|
|
7878
7840
|
newReplayIndex = newReplayIndex.gb();
|
|
7879
7841
|
}
|
|
@@ -7885,39 +7847,39 @@
|
|
|
7885
7847
|
resumes = findSlotsToResumeLocked(this, resumes);
|
|
7886
7848
|
return resumes;
|
|
7887
7849
|
};
|
|
7888
|
-
protoOf(SharedFlowImpl).
|
|
7850
|
+
protoOf(SharedFlowImpl).i13 = function () {
|
|
7889
7851
|
return new SharedFlowSlot();
|
|
7890
7852
|
};
|
|
7891
|
-
protoOf(SharedFlowImpl).
|
|
7853
|
+
protoOf(SharedFlowImpl).j13 = function (size) {
|
|
7892
7854
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
7893
7855
|
return fillArrayVal(Array(size), null);
|
|
7894
7856
|
};
|
|
7895
|
-
protoOf(SharedFlowImpl).
|
|
7857
|
+
protoOf(SharedFlowImpl).k13 = function (context, capacity, onBufferOverflow) {
|
|
7896
7858
|
return fuseSharedFlow(this, context, capacity, onBufferOverflow);
|
|
7897
7859
|
};
|
|
7898
7860
|
function SharedFlowSlot() {
|
|
7899
7861
|
AbstractSharedFlowSlot.call(this);
|
|
7900
|
-
this.
|
|
7901
|
-
this.
|
|
7862
|
+
this.e12_1 = new Long(-1, -1);
|
|
7863
|
+
this.f12_1 = null;
|
|
7902
7864
|
}
|
|
7903
|
-
protoOf(SharedFlowSlot).
|
|
7904
|
-
if (this.
|
|
7865
|
+
protoOf(SharedFlowSlot).m13 = function (flow) {
|
|
7866
|
+
if (this.e12_1.ab(new Long(0, 0)) >= 0)
|
|
7905
7867
|
return false;
|
|
7906
|
-
this.
|
|
7868
|
+
this.e12_1 = flow.h13();
|
|
7907
7869
|
return true;
|
|
7908
7870
|
};
|
|
7909
|
-
protoOf(SharedFlowSlot).m13 = function (flow) {
|
|
7910
|
-
return this.l13(flow instanceof SharedFlowImpl ? flow : THROW_CCE());
|
|
7911
|
-
};
|
|
7912
7871
|
protoOf(SharedFlowSlot).n13 = function (flow) {
|
|
7913
|
-
|
|
7914
|
-
var oldIndex = this.d12_1;
|
|
7915
|
-
this.d12_1 = new Long(-1, -1);
|
|
7916
|
-
this.e12_1 = null;
|
|
7917
|
-
return flow.j12(oldIndex);
|
|
7872
|
+
return this.m13(flow instanceof SharedFlowImpl ? flow : THROW_CCE());
|
|
7918
7873
|
};
|
|
7919
7874
|
protoOf(SharedFlowSlot).o13 = function (flow) {
|
|
7920
|
-
|
|
7875
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
7876
|
+
var oldIndex = this.e12_1;
|
|
7877
|
+
this.e12_1 = new Long(-1, -1);
|
|
7878
|
+
this.f12_1 = null;
|
|
7879
|
+
return flow.k12(oldIndex);
|
|
7880
|
+
};
|
|
7881
|
+
protoOf(SharedFlowSlot).p13 = function (flow) {
|
|
7882
|
+
return this.o13(flow instanceof SharedFlowImpl ? flow : THROW_CCE());
|
|
7921
7883
|
};
|
|
7922
7884
|
function getBufferAt(_this__u8e3s4, index) {
|
|
7923
7885
|
_init_properties_SharedFlow_kt__umasnn();
|
|
@@ -7964,34 +7926,34 @@
|
|
|
7964
7926
|
var EMPTY_RESUMES;
|
|
7965
7927
|
function AbstractSharedFlow() {
|
|
7966
7928
|
SynchronizedObject.call(this);
|
|
7967
|
-
this.
|
|
7968
|
-
this.a12_1 = 0;
|
|
7929
|
+
this.a12_1 = null;
|
|
7969
7930
|
this.b12_1 = 0;
|
|
7970
|
-
this.c12_1 =
|
|
7931
|
+
this.c12_1 = 0;
|
|
7932
|
+
this.d12_1 = null;
|
|
7971
7933
|
}
|
|
7972
|
-
protoOf(AbstractSharedFlow).
|
|
7934
|
+
protoOf(AbstractSharedFlow).z12 = function () {
|
|
7973
7935
|
var subscriptionCount;
|
|
7974
7936
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7975
7937
|
// Inline function 'kotlin.contracts.contract' call
|
|
7976
7938
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
7977
7939
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>' call
|
|
7978
|
-
var curSlots = this.
|
|
7940
|
+
var curSlots = this.a12_1;
|
|
7979
7941
|
var tmp;
|
|
7980
7942
|
if (curSlots == null) {
|
|
7981
7943
|
// Inline function 'kotlin.also' call
|
|
7982
|
-
var this_0 = this.
|
|
7944
|
+
var this_0 = this.j13(2);
|
|
7983
7945
|
// Inline function 'kotlin.contracts.contract' call
|
|
7984
7946
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>.<anonymous>' call
|
|
7985
|
-
this.
|
|
7947
|
+
this.a12_1 = this_0;
|
|
7986
7948
|
tmp = this_0;
|
|
7987
7949
|
} else {
|
|
7988
7950
|
var tmp_0;
|
|
7989
|
-
if (this.
|
|
7951
|
+
if (this.b12_1 >= curSlots.length) {
|
|
7990
7952
|
// Inline function 'kotlin.also' call
|
|
7991
7953
|
var this_1 = copyOf(curSlots, imul(2, curSlots.length));
|
|
7992
7954
|
// Inline function 'kotlin.contracts.contract' call
|
|
7993
7955
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>.<anonymous>' call
|
|
7994
|
-
this.
|
|
7956
|
+
this.a12_1 = this_1;
|
|
7995
7957
|
tmp_0 = this_1;
|
|
7996
7958
|
} else {
|
|
7997
7959
|
tmp_0 = curSlots;
|
|
@@ -7999,14 +7961,14 @@
|
|
|
7999
7961
|
tmp = tmp_0;
|
|
8000
7962
|
}
|
|
8001
7963
|
var slots = tmp;
|
|
8002
|
-
var index = this.
|
|
7964
|
+
var index = this.c12_1;
|
|
8003
7965
|
var slot;
|
|
8004
7966
|
$l$loop: while (true) {
|
|
8005
7967
|
var tmp0_elvis_lhs = slots[index];
|
|
8006
7968
|
var tmp_1;
|
|
8007
7969
|
if (tmp0_elvis_lhs == null) {
|
|
8008
7970
|
// Inline function 'kotlin.also' call
|
|
8009
|
-
var this_2 = this.
|
|
7971
|
+
var this_2 = this.i13();
|
|
8010
7972
|
// Inline function 'kotlin.contracts.contract' call
|
|
8011
7973
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>.<anonymous>' call
|
|
8012
7974
|
slots[index] = this_2;
|
|
@@ -8018,30 +7980,30 @@
|
|
|
8018
7980
|
index = index + 1 | 0;
|
|
8019
7981
|
if (index >= slots.length)
|
|
8020
7982
|
index = 0;
|
|
8021
|
-
if ((slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).
|
|
7983
|
+
if ((slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).n13(this))
|
|
8022
7984
|
break $l$loop;
|
|
8023
7985
|
}
|
|
8024
|
-
this.
|
|
8025
|
-
this.
|
|
8026
|
-
subscriptionCount = this.
|
|
7986
|
+
this.c12_1 = index;
|
|
7987
|
+
this.b12_1 = this.b12_1 + 1 | 0;
|
|
7988
|
+
subscriptionCount = this.d12_1;
|
|
8027
7989
|
var slot_0 = slot;
|
|
8028
7990
|
if (subscriptionCount == null)
|
|
8029
7991
|
null;
|
|
8030
7992
|
else
|
|
8031
|
-
subscriptionCount.
|
|
7993
|
+
subscriptionCount.c14(1);
|
|
8032
7994
|
return slot_0;
|
|
8033
7995
|
};
|
|
8034
|
-
protoOf(AbstractSharedFlow).
|
|
7996
|
+
protoOf(AbstractSharedFlow).d13 = function (slot) {
|
|
8035
7997
|
var subscriptionCount;
|
|
8036
7998
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
8037
7999
|
// Inline function 'kotlin.contracts.contract' call
|
|
8038
8000
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
8039
8001
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.freeSlot.<anonymous>' call
|
|
8040
|
-
this.
|
|
8041
|
-
subscriptionCount = this.
|
|
8042
|
-
if (this.
|
|
8043
|
-
this.
|
|
8044
|
-
var resumes = (slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).
|
|
8002
|
+
this.b12_1 = this.b12_1 - 1 | 0;
|
|
8003
|
+
subscriptionCount = this.d12_1;
|
|
8004
|
+
if (this.b12_1 === 0)
|
|
8005
|
+
this.c12_1 = 0;
|
|
8006
|
+
var resumes = (slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).p13(this);
|
|
8045
8007
|
var inductionVariable = 0;
|
|
8046
8008
|
var last = resumes.length;
|
|
8047
8009
|
while (inductionVariable < last) {
|
|
@@ -8059,7 +8021,7 @@
|
|
|
8059
8021
|
if (subscriptionCount == null)
|
|
8060
8022
|
null;
|
|
8061
8023
|
else
|
|
8062
|
-
subscriptionCount.
|
|
8024
|
+
subscriptionCount.c14(-1);
|
|
8063
8025
|
};
|
|
8064
8026
|
function AbstractSharedFlowSlot() {
|
|
8065
8027
|
}
|
|
@@ -8086,11 +8048,11 @@
|
|
|
8086
8048
|
onBufferOverflow = onBufferOverflow === VOID ? BufferOverflow_SUSPEND_getInstance() : onBufferOverflow;
|
|
8087
8049
|
ChannelFlowOperator.call(this, flow, context, capacity, onBufferOverflow);
|
|
8088
8050
|
}
|
|
8089
|
-
protoOf(ChannelFlowOperatorImpl).
|
|
8090
|
-
return new ChannelFlowOperatorImpl(this.
|
|
8051
|
+
protoOf(ChannelFlowOperatorImpl).h14 = function (context, capacity, onBufferOverflow) {
|
|
8052
|
+
return new ChannelFlowOperatorImpl(this.l14_1, context, capacity, onBufferOverflow);
|
|
8091
8053
|
};
|
|
8092
|
-
protoOf(ChannelFlowOperatorImpl).
|
|
8093
|
-
return this.
|
|
8054
|
+
protoOf(ChannelFlowOperatorImpl).m14 = function (collector, $completion) {
|
|
8055
|
+
return this.l14_1.y10(collector, $completion);
|
|
8094
8056
|
};
|
|
8095
8057
|
function collectWithContextUndispatched($this, collector, newContext, $completion) {
|
|
8096
8058
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
@@ -8099,17 +8061,17 @@
|
|
|
8099
8061
|
return withContextUndispatched(newContext, originalContextCollector, VOID, ChannelFlowOperator$collectWithContextUndispatched$slambda_0($this, null), $completion);
|
|
8100
8062
|
}
|
|
8101
8063
|
function ChannelFlowOperator$collectWithContextUndispatched$slambda(this$0, resultContinuation) {
|
|
8102
|
-
this.
|
|
8064
|
+
this.d15_1 = this$0;
|
|
8103
8065
|
CoroutineImpl.call(this, resultContinuation);
|
|
8104
8066
|
}
|
|
8105
|
-
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).
|
|
8106
|
-
var tmp = this.
|
|
8067
|
+
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).f15 = function (it, $completion) {
|
|
8068
|
+
var tmp = this.g15(it, $completion);
|
|
8107
8069
|
tmp.vb_1 = Unit_instance;
|
|
8108
8070
|
tmp.wb_1 = null;
|
|
8109
8071
|
return tmp.qc();
|
|
8110
8072
|
};
|
|
8111
8073
|
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).fd = function (p1, $completion) {
|
|
8112
|
-
return this.
|
|
8074
|
+
return this.f15((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
8113
8075
|
};
|
|
8114
8076
|
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).qc = function () {
|
|
8115
8077
|
var suspendResult = this.vb_1;
|
|
@@ -8120,7 +8082,7 @@
|
|
|
8120
8082
|
case 0:
|
|
8121
8083
|
this.ub_1 = 2;
|
|
8122
8084
|
this.tb_1 = 1;
|
|
8123
|
-
suspendResult = this.
|
|
8085
|
+
suspendResult = this.d15_1.m14(this.e15_1, this);
|
|
8124
8086
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8125
8087
|
return suspendResult;
|
|
8126
8088
|
}
|
|
@@ -8142,23 +8104,23 @@
|
|
|
8142
8104
|
}
|
|
8143
8105
|
while (true);
|
|
8144
8106
|
};
|
|
8145
|
-
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).
|
|
8146
|
-
var i = new ChannelFlowOperator$collectWithContextUndispatched$slambda(this.
|
|
8147
|
-
i.
|
|
8107
|
+
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).g15 = function (it, completion) {
|
|
8108
|
+
var i = new ChannelFlowOperator$collectWithContextUndispatched$slambda(this.d15_1, completion);
|
|
8109
|
+
i.e15_1 = it;
|
|
8148
8110
|
return i;
|
|
8149
8111
|
};
|
|
8150
8112
|
function ChannelFlowOperator$collectWithContextUndispatched$slambda_0(this$0, resultContinuation) {
|
|
8151
8113
|
var i = new ChannelFlowOperator$collectWithContextUndispatched$slambda(this$0, resultContinuation);
|
|
8152
8114
|
var l = function (it, $completion) {
|
|
8153
|
-
return i.
|
|
8115
|
+
return i.f15(it, $completion);
|
|
8154
8116
|
};
|
|
8155
8117
|
l.$arity = 1;
|
|
8156
8118
|
return l;
|
|
8157
8119
|
}
|
|
8158
8120
|
function $collectCOROUTINE$11(_this__u8e3s4, collector, resultContinuation) {
|
|
8159
8121
|
CoroutineImpl.call(this, resultContinuation);
|
|
8160
|
-
this.
|
|
8161
|
-
this.
|
|
8122
|
+
this.p15_1 = _this__u8e3s4;
|
|
8123
|
+
this.q15_1 = collector;
|
|
8162
8124
|
}
|
|
8163
8125
|
protoOf($collectCOROUTINE$11).qc = function () {
|
|
8164
8126
|
var suspendResult = this.vb_1;
|
|
@@ -8169,13 +8131,13 @@
|
|
|
8169
8131
|
case 0:
|
|
8170
8132
|
this.ub_1 = 7;
|
|
8171
8133
|
Factory_getInstance();
|
|
8172
|
-
if (this.
|
|
8134
|
+
if (this.p15_1.p14_1 === -3) {
|
|
8173
8135
|
var tmp_0 = this;
|
|
8174
|
-
tmp_0.
|
|
8175
|
-
this.
|
|
8176
|
-
if (equals(this.
|
|
8136
|
+
tmp_0.r15_1 = this.ac();
|
|
8137
|
+
this.s15_1 = newCoroutineContext(this.r15_1, this.p15_1.o14_1);
|
|
8138
|
+
if (equals(this.s15_1, this.r15_1)) {
|
|
8177
8139
|
this.tb_1 = 6;
|
|
8178
|
-
suspendResult = this.
|
|
8140
|
+
suspendResult = this.p15_1.m14(this.q15_1, this);
|
|
8179
8141
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8180
8142
|
return suspendResult;
|
|
8181
8143
|
}
|
|
@@ -8190,9 +8152,9 @@
|
|
|
8190
8152
|
}
|
|
8191
8153
|
|
|
8192
8154
|
case 1:
|
|
8193
|
-
if (equals(this.
|
|
8155
|
+
if (equals(this.s15_1.bc(Key_instance), this.r15_1.bc(Key_instance))) {
|
|
8194
8156
|
this.tb_1 = 5;
|
|
8195
|
-
suspendResult = collectWithContextUndispatched(this.
|
|
8157
|
+
suspendResult = collectWithContextUndispatched(this.p15_1, this.q15_1, this.s15_1, this);
|
|
8196
8158
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8197
8159
|
return suspendResult;
|
|
8198
8160
|
}
|
|
@@ -8207,7 +8169,7 @@
|
|
|
8207
8169
|
continue $sm;
|
|
8208
8170
|
case 3:
|
|
8209
8171
|
this.tb_1 = 4;
|
|
8210
|
-
suspendResult = protoOf(ChannelFlow).
|
|
8172
|
+
suspendResult = protoOf(ChannelFlow).y10.call(this.p15_1, this.q15_1, this);
|
|
8211
8173
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8212
8174
|
return suspendResult;
|
|
8213
8175
|
}
|
|
@@ -8235,32 +8197,32 @@
|
|
|
8235
8197
|
};
|
|
8236
8198
|
function ChannelFlowOperator(flow, context, capacity, onBufferOverflow) {
|
|
8237
8199
|
ChannelFlow.call(this, context, capacity, onBufferOverflow);
|
|
8238
|
-
this.
|
|
8200
|
+
this.l14_1 = flow;
|
|
8239
8201
|
}
|
|
8240
|
-
protoOf(ChannelFlowOperator).
|
|
8241
|
-
return this.
|
|
8202
|
+
protoOf(ChannelFlowOperator).n14 = function (scope, $completion) {
|
|
8203
|
+
return this.m14(new SendingCollector(scope), $completion);
|
|
8242
8204
|
};
|
|
8243
|
-
protoOf(ChannelFlowOperator).
|
|
8205
|
+
protoOf(ChannelFlowOperator).y10 = function (collector, $completion) {
|
|
8244
8206
|
var tmp = new $collectCOROUTINE$11(this, collector, $completion);
|
|
8245
8207
|
tmp.vb_1 = Unit_instance;
|
|
8246
8208
|
tmp.wb_1 = null;
|
|
8247
8209
|
return tmp.qc();
|
|
8248
8210
|
};
|
|
8249
8211
|
protoOf(ChannelFlowOperator).toString = function () {
|
|
8250
|
-
return '' + this.
|
|
8212
|
+
return '' + this.l14_1 + ' -> ' + protoOf(ChannelFlow).toString.call(this);
|
|
8251
8213
|
};
|
|
8252
8214
|
function ChannelFlow$_get_collectToFun_$slambda_j53z2e(this$0, resultContinuation) {
|
|
8253
|
-
this.
|
|
8215
|
+
this.b16_1 = this$0;
|
|
8254
8216
|
CoroutineImpl.call(this, resultContinuation);
|
|
8255
8217
|
}
|
|
8256
|
-
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).
|
|
8257
|
-
var tmp = this.
|
|
8218
|
+
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).d16 = function (it, $completion) {
|
|
8219
|
+
var tmp = this.e16(it, $completion);
|
|
8258
8220
|
tmp.vb_1 = Unit_instance;
|
|
8259
8221
|
tmp.wb_1 = null;
|
|
8260
8222
|
return tmp.qc();
|
|
8261
8223
|
};
|
|
8262
8224
|
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).fd = function (p1, $completion) {
|
|
8263
|
-
return this.
|
|
8225
|
+
return this.d16((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
8264
8226
|
};
|
|
8265
8227
|
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).qc = function () {
|
|
8266
8228
|
var suspendResult = this.vb_1;
|
|
@@ -8271,7 +8233,7 @@
|
|
|
8271
8233
|
case 0:
|
|
8272
8234
|
this.ub_1 = 2;
|
|
8273
8235
|
this.tb_1 = 1;
|
|
8274
|
-
suspendResult = this.
|
|
8236
|
+
suspendResult = this.b16_1.n14(this.c16_1, this);
|
|
8275
8237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8276
8238
|
return suspendResult;
|
|
8277
8239
|
}
|
|
@@ -8293,32 +8255,32 @@
|
|
|
8293
8255
|
}
|
|
8294
8256
|
while (true);
|
|
8295
8257
|
};
|
|
8296
|
-
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).
|
|
8297
|
-
var i = new ChannelFlow$_get_collectToFun_$slambda_j53z2e(this.
|
|
8298
|
-
i.
|
|
8258
|
+
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).e16 = function (it, completion) {
|
|
8259
|
+
var i = new ChannelFlow$_get_collectToFun_$slambda_j53z2e(this.b16_1, completion);
|
|
8260
|
+
i.c16_1 = it;
|
|
8299
8261
|
return i;
|
|
8300
8262
|
};
|
|
8301
8263
|
function ChannelFlow$_get_collectToFun_$slambda_j53z2e_0(this$0, resultContinuation) {
|
|
8302
8264
|
var i = new ChannelFlow$_get_collectToFun_$slambda_j53z2e(this$0, resultContinuation);
|
|
8303
8265
|
var l = function (it, $completion) {
|
|
8304
|
-
return i.
|
|
8266
|
+
return i.d16(it, $completion);
|
|
8305
8267
|
};
|
|
8306
8268
|
l.$arity = 1;
|
|
8307
8269
|
return l;
|
|
8308
8270
|
}
|
|
8309
8271
|
function ChannelFlow$collect$slambda($collector, this$0, resultContinuation) {
|
|
8310
|
-
this.
|
|
8311
|
-
this.
|
|
8272
|
+
this.n16_1 = $collector;
|
|
8273
|
+
this.o16_1 = this$0;
|
|
8312
8274
|
CoroutineImpl.call(this, resultContinuation);
|
|
8313
8275
|
}
|
|
8314
|
-
protoOf(ChannelFlow$collect$slambda).
|
|
8315
|
-
var tmp = this.
|
|
8276
|
+
protoOf(ChannelFlow$collect$slambda).q16 = function ($this$coroutineScope, $completion) {
|
|
8277
|
+
var tmp = this.r16($this$coroutineScope, $completion);
|
|
8316
8278
|
tmp.vb_1 = Unit_instance;
|
|
8317
8279
|
tmp.wb_1 = null;
|
|
8318
8280
|
return tmp.qc();
|
|
8319
8281
|
};
|
|
8320
8282
|
protoOf(ChannelFlow$collect$slambda).fd = function (p1, $completion) {
|
|
8321
|
-
return this.
|
|
8283
|
+
return this.q16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
8322
8284
|
};
|
|
8323
8285
|
protoOf(ChannelFlow$collect$slambda).qc = function () {
|
|
8324
8286
|
var suspendResult = this.vb_1;
|
|
@@ -8329,7 +8291,7 @@
|
|
|
8329
8291
|
case 0:
|
|
8330
8292
|
this.ub_1 = 2;
|
|
8331
8293
|
this.tb_1 = 1;
|
|
8332
|
-
suspendResult = emitAll(this.
|
|
8294
|
+
suspendResult = emitAll(this.n16_1, this.o16_1.t14(this.p16_1), this);
|
|
8333
8295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8334
8296
|
return suspendResult;
|
|
8335
8297
|
}
|
|
@@ -8351,42 +8313,42 @@
|
|
|
8351
8313
|
}
|
|
8352
8314
|
while (true);
|
|
8353
8315
|
};
|
|
8354
|
-
protoOf(ChannelFlow$collect$slambda).
|
|
8355
|
-
var i = new ChannelFlow$collect$slambda(this.
|
|
8356
|
-
i.
|
|
8316
|
+
protoOf(ChannelFlow$collect$slambda).r16 = function ($this$coroutineScope, completion) {
|
|
8317
|
+
var i = new ChannelFlow$collect$slambda(this.n16_1, this.o16_1, completion);
|
|
8318
|
+
i.p16_1 = $this$coroutineScope;
|
|
8357
8319
|
return i;
|
|
8358
8320
|
};
|
|
8359
8321
|
function ChannelFlow$collect$slambda_0($collector, this$0, resultContinuation) {
|
|
8360
8322
|
var i = new ChannelFlow$collect$slambda($collector, this$0, resultContinuation);
|
|
8361
8323
|
var l = function ($this$coroutineScope, $completion) {
|
|
8362
|
-
return i.
|
|
8324
|
+
return i.q16($this$coroutineScope, $completion);
|
|
8363
8325
|
};
|
|
8364
8326
|
l.$arity = 1;
|
|
8365
8327
|
return l;
|
|
8366
8328
|
}
|
|
8367
8329
|
function ChannelFlow(context, capacity, onBufferOverflow) {
|
|
8368
|
-
this.
|
|
8369
|
-
this.
|
|
8370
|
-
this.
|
|
8330
|
+
this.o14_1 = context;
|
|
8331
|
+
this.p14_1 = capacity;
|
|
8332
|
+
this.q14_1 = onBufferOverflow;
|
|
8371
8333
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8372
8334
|
}
|
|
8373
|
-
protoOf(ChannelFlow).
|
|
8335
|
+
protoOf(ChannelFlow).r14 = function () {
|
|
8374
8336
|
return ChannelFlow$_get_collectToFun_$slambda_j53z2e_0(this, null);
|
|
8375
8337
|
};
|
|
8376
|
-
protoOf(ChannelFlow).
|
|
8338
|
+
protoOf(ChannelFlow).s14 = function () {
|
|
8377
8339
|
var tmp;
|
|
8378
8340
|
Factory_getInstance();
|
|
8379
|
-
if (this.
|
|
8341
|
+
if (this.p14_1 === -3) {
|
|
8380
8342
|
Factory_getInstance();
|
|
8381
8343
|
tmp = -2;
|
|
8382
8344
|
} else {
|
|
8383
|
-
tmp = this.
|
|
8345
|
+
tmp = this.p14_1;
|
|
8384
8346
|
}
|
|
8385
8347
|
return tmp;
|
|
8386
8348
|
};
|
|
8387
|
-
protoOf(ChannelFlow).
|
|
8349
|
+
protoOf(ChannelFlow).k13 = function (context, capacity, onBufferOverflow) {
|
|
8388
8350
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8389
|
-
var newContext = context.tf(this.
|
|
8351
|
+
var newContext = context.tf(this.o14_1);
|
|
8390
8352
|
var newCapacity;
|
|
8391
8353
|
var newOverflow;
|
|
8392
8354
|
if (!onBufferOverflow.equals(BufferOverflow_SUSPEND_getInstance())) {
|
|
@@ -8395,24 +8357,24 @@
|
|
|
8395
8357
|
} else {
|
|
8396
8358
|
var tmp;
|
|
8397
8359
|
Factory_getInstance();
|
|
8398
|
-
if (this.
|
|
8360
|
+
if (this.p14_1 === -3) {
|
|
8399
8361
|
tmp = capacity;
|
|
8400
8362
|
} else {
|
|
8401
8363
|
Factory_getInstance();
|
|
8402
8364
|
if (capacity === -3) {
|
|
8403
|
-
tmp = this.
|
|
8365
|
+
tmp = this.p14_1;
|
|
8404
8366
|
} else {
|
|
8405
8367
|
Factory_getInstance();
|
|
8406
|
-
if (this.
|
|
8368
|
+
if (this.p14_1 === -2) {
|
|
8407
8369
|
tmp = capacity;
|
|
8408
8370
|
} else {
|
|
8409
8371
|
Factory_getInstance();
|
|
8410
8372
|
if (capacity === -2) {
|
|
8411
|
-
tmp = this.
|
|
8373
|
+
tmp = this.p14_1;
|
|
8412
8374
|
} else {
|
|
8413
8375
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8414
8376
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
8415
|
-
var sum = this.
|
|
8377
|
+
var sum = this.p14_1 + capacity | 0;
|
|
8416
8378
|
var tmp_0;
|
|
8417
8379
|
if (sum >= 0) {
|
|
8418
8380
|
tmp_0 = sum;
|
|
@@ -8426,24 +8388,24 @@
|
|
|
8426
8388
|
}
|
|
8427
8389
|
}
|
|
8428
8390
|
newCapacity = tmp;
|
|
8429
|
-
newOverflow = this.
|
|
8391
|
+
newOverflow = this.q14_1;
|
|
8430
8392
|
}
|
|
8431
|
-
if ((equals(newContext, this.
|
|
8393
|
+
if ((equals(newContext, this.o14_1) ? newCapacity === this.p14_1 : false) ? newOverflow.equals(this.q14_1) : false)
|
|
8432
8394
|
return this;
|
|
8433
|
-
return this.
|
|
8395
|
+
return this.h14(newContext, newCapacity, newOverflow);
|
|
8434
8396
|
};
|
|
8435
|
-
protoOf(ChannelFlow).
|
|
8436
|
-
return produce(scope, this.
|
|
8397
|
+
protoOf(ChannelFlow).t14 = function (scope) {
|
|
8398
|
+
return produce(scope, this.o14_1, this.s14(), this.q14_1, CoroutineStart_ATOMIC_getInstance(), VOID, this.r14());
|
|
8437
8399
|
};
|
|
8438
|
-
protoOf(ChannelFlow).
|
|
8400
|
+
protoOf(ChannelFlow).y10 = function (collector, $completion) {
|
|
8439
8401
|
return coroutineScope(ChannelFlow$collect$slambda_0(collector, this, null), $completion);
|
|
8440
8402
|
};
|
|
8441
|
-
protoOf(ChannelFlow).
|
|
8403
|
+
protoOf(ChannelFlow).u14 = function () {
|
|
8442
8404
|
return null;
|
|
8443
8405
|
};
|
|
8444
8406
|
protoOf(ChannelFlow).toString = function () {
|
|
8445
8407
|
var props = ArrayList_init_$Create$(4);
|
|
8446
|
-
var tmp0_safe_receiver = this.
|
|
8408
|
+
var tmp0_safe_receiver = this.u14();
|
|
8447
8409
|
if (tmp0_safe_receiver == null)
|
|
8448
8410
|
null;
|
|
8449
8411
|
else {
|
|
@@ -8452,15 +8414,15 @@
|
|
|
8452
8414
|
// Inline function 'kotlinx.coroutines.flow.internal.ChannelFlow.toString.<anonymous>' call
|
|
8453
8415
|
props.p(tmp0_safe_receiver);
|
|
8454
8416
|
}
|
|
8455
|
-
if (!(this.
|
|
8456
|
-
props.p('context=' + this.
|
|
8417
|
+
if (!(this.o14_1 === EmptyCoroutineContext_getInstance())) {
|
|
8418
|
+
props.p('context=' + this.o14_1);
|
|
8457
8419
|
}
|
|
8458
8420
|
Factory_getInstance();
|
|
8459
|
-
if (!(this.
|
|
8460
|
-
props.p('capacity=' + this.
|
|
8421
|
+
if (!(this.p14_1 === -3)) {
|
|
8422
|
+
props.p('capacity=' + this.p14_1);
|
|
8461
8423
|
}
|
|
8462
|
-
if (!this.
|
|
8463
|
-
props.p('onBufferOverflow=' + this.
|
|
8424
|
+
if (!this.q14_1.equals(BufferOverflow_SUSPEND_getInstance())) {
|
|
8425
|
+
props.p('onBufferOverflow=' + this.q14_1);
|
|
8464
8426
|
}
|
|
8465
8427
|
return get_classSimpleName(this) + '[' + joinToString(props, ', ') + ']';
|
|
8466
8428
|
};
|
|
@@ -8491,17 +8453,17 @@
|
|
|
8491
8453
|
return typeof a === 'function' ? a(value, completion) : block.fd(value, completion);
|
|
8492
8454
|
}
|
|
8493
8455
|
function UndispatchedContextCollector$emitRef$slambda($downstream, resultContinuation) {
|
|
8494
|
-
this.
|
|
8456
|
+
this.a17_1 = $downstream;
|
|
8495
8457
|
CoroutineImpl.call(this, resultContinuation);
|
|
8496
8458
|
}
|
|
8497
|
-
protoOf(UndispatchedContextCollector$emitRef$slambda).
|
|
8498
|
-
var tmp = this.
|
|
8459
|
+
protoOf(UndispatchedContextCollector$emitRef$slambda).c17 = function (it, $completion) {
|
|
8460
|
+
var tmp = this.d17(it, $completion);
|
|
8499
8461
|
tmp.vb_1 = Unit_instance;
|
|
8500
8462
|
tmp.wb_1 = null;
|
|
8501
8463
|
return tmp.qc();
|
|
8502
8464
|
};
|
|
8503
8465
|
protoOf(UndispatchedContextCollector$emitRef$slambda).fd = function (p1, $completion) {
|
|
8504
|
-
return this.
|
|
8466
|
+
return this.c17((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
8505
8467
|
};
|
|
8506
8468
|
protoOf(UndispatchedContextCollector$emitRef$slambda).qc = function () {
|
|
8507
8469
|
var suspendResult = this.vb_1;
|
|
@@ -8512,7 +8474,7 @@
|
|
|
8512
8474
|
case 0:
|
|
8513
8475
|
this.ub_1 = 2;
|
|
8514
8476
|
this.tb_1 = 1;
|
|
8515
|
-
suspendResult = this.
|
|
8477
|
+
suspendResult = this.a17_1.x10(this.b17_1, this);
|
|
8516
8478
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8517
8479
|
return suspendResult;
|
|
8518
8480
|
}
|
|
@@ -8534,54 +8496,54 @@
|
|
|
8534
8496
|
}
|
|
8535
8497
|
while (true);
|
|
8536
8498
|
};
|
|
8537
|
-
protoOf(UndispatchedContextCollector$emitRef$slambda).
|
|
8538
|
-
var i = new UndispatchedContextCollector$emitRef$slambda(this.
|
|
8539
|
-
i.
|
|
8499
|
+
protoOf(UndispatchedContextCollector$emitRef$slambda).d17 = function (it, completion) {
|
|
8500
|
+
var i = new UndispatchedContextCollector$emitRef$slambda(this.a17_1, completion);
|
|
8501
|
+
i.b17_1 = it;
|
|
8540
8502
|
return i;
|
|
8541
8503
|
};
|
|
8542
8504
|
function UndispatchedContextCollector$emitRef$slambda_0($downstream, resultContinuation) {
|
|
8543
8505
|
var i = new UndispatchedContextCollector$emitRef$slambda($downstream, resultContinuation);
|
|
8544
8506
|
var l = function (it, $completion) {
|
|
8545
|
-
return i.
|
|
8507
|
+
return i.c17(it, $completion);
|
|
8546
8508
|
};
|
|
8547
8509
|
l.$arity = 1;
|
|
8548
8510
|
return l;
|
|
8549
8511
|
}
|
|
8550
8512
|
function UndispatchedContextCollector(downstream, emitContext) {
|
|
8551
|
-
this.
|
|
8552
|
-
this.
|
|
8513
|
+
this.e17_1 = emitContext;
|
|
8514
|
+
this.f17_1 = threadContextElements(this.e17_1);
|
|
8553
8515
|
var tmp = this;
|
|
8554
|
-
tmp.
|
|
8516
|
+
tmp.g17_1 = UndispatchedContextCollector$emitRef$slambda_0(downstream, null);
|
|
8555
8517
|
}
|
|
8556
|
-
protoOf(UndispatchedContextCollector).
|
|
8557
|
-
return withContextUndispatched(this.
|
|
8518
|
+
protoOf(UndispatchedContextCollector).x10 = function (value, $completion) {
|
|
8519
|
+
return withContextUndispatched(this.e17_1, value, this.f17_1, this.g17_1, $completion);
|
|
8558
8520
|
};
|
|
8559
8521
|
function StackFrameContinuation(uCont, context) {
|
|
8560
|
-
this.
|
|
8561
|
-
this.
|
|
8522
|
+
this.h17_1 = uCont;
|
|
8523
|
+
this.i17_1 = context;
|
|
8562
8524
|
}
|
|
8563
8525
|
protoOf(StackFrameContinuation).ac = function () {
|
|
8564
|
-
return this.
|
|
8526
|
+
return this.i17_1;
|
|
8565
8527
|
};
|
|
8566
8528
|
protoOf(StackFrameContinuation).rc = function (result) {
|
|
8567
|
-
this.
|
|
8529
|
+
this.h17_1.rc(result);
|
|
8568
8530
|
};
|
|
8569
8531
|
function combineInternal(_this__u8e3s4, flows, arrayFactory, transform, $completion) {
|
|
8570
8532
|
return flowScope(combineInternal$slambda_0(flows, arrayFactory, transform, _this__u8e3s4, null), $completion);
|
|
8571
8533
|
}
|
|
8572
8534
|
function combineInternal$slambda$slambda$slambda($resultChannel, $i, resultContinuation) {
|
|
8573
|
-
this.
|
|
8574
|
-
this.
|
|
8535
|
+
this.r17_1 = $resultChannel;
|
|
8536
|
+
this.s17_1 = $i;
|
|
8575
8537
|
CoroutineImpl.call(this, resultContinuation);
|
|
8576
8538
|
}
|
|
8577
|
-
protoOf(combineInternal$slambda$slambda$slambda).
|
|
8578
|
-
var tmp = this.
|
|
8539
|
+
protoOf(combineInternal$slambda$slambda$slambda).c17 = function (value, $completion) {
|
|
8540
|
+
var tmp = this.d17(value, $completion);
|
|
8579
8541
|
tmp.vb_1 = Unit_instance;
|
|
8580
8542
|
tmp.wb_1 = null;
|
|
8581
8543
|
return tmp.qc();
|
|
8582
8544
|
};
|
|
8583
8545
|
protoOf(combineInternal$slambda$slambda$slambda).fd = function (p1, $completion) {
|
|
8584
|
-
return this.
|
|
8546
|
+
return this.c17((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
8585
8547
|
};
|
|
8586
8548
|
protoOf(combineInternal$slambda$slambda$slambda).qc = function () {
|
|
8587
8549
|
var suspendResult = this.vb_1;
|
|
@@ -8592,7 +8554,7 @@
|
|
|
8592
8554
|
case 0:
|
|
8593
8555
|
this.ub_1 = 3;
|
|
8594
8556
|
this.tb_1 = 1;
|
|
8595
|
-
suspendResult = this.
|
|
8557
|
+
suspendResult = this.r17_1.uy(new IndexedValue(this.s17_1, this.t17_1), this);
|
|
8596
8558
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8597
8559
|
return suspendResult;
|
|
8598
8560
|
}
|
|
@@ -8622,40 +8584,40 @@
|
|
|
8622
8584
|
}
|
|
8623
8585
|
while (true);
|
|
8624
8586
|
};
|
|
8625
|
-
protoOf(combineInternal$slambda$slambda$slambda).
|
|
8626
|
-
var i = new combineInternal$slambda$slambda$slambda(this.
|
|
8627
|
-
i.
|
|
8587
|
+
protoOf(combineInternal$slambda$slambda$slambda).d17 = function (value, completion) {
|
|
8588
|
+
var i = new combineInternal$slambda$slambda$slambda(this.r17_1, this.s17_1, completion);
|
|
8589
|
+
i.t17_1 = value;
|
|
8628
8590
|
return i;
|
|
8629
8591
|
};
|
|
8630
8592
|
function combineInternal$slambda$slambda$slambda_0($resultChannel, $i, resultContinuation) {
|
|
8631
8593
|
var i = new combineInternal$slambda$slambda$slambda($resultChannel, $i, resultContinuation);
|
|
8632
8594
|
var l = function (value, $completion) {
|
|
8633
|
-
return i.
|
|
8595
|
+
return i.c17(value, $completion);
|
|
8634
8596
|
};
|
|
8635
8597
|
l.$arity = 1;
|
|
8636
8598
|
return l;
|
|
8637
8599
|
}
|
|
8638
8600
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
8639
|
-
this.
|
|
8601
|
+
this.u17_1 = function_0;
|
|
8640
8602
|
}
|
|
8641
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
8642
|
-
return this.
|
|
8603
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).x10 = function (value, $completion) {
|
|
8604
|
+
return this.u17_1(value, $completion);
|
|
8643
8605
|
};
|
|
8644
8606
|
function combineInternal$slambda$slambda($flows, $i, $nonClosed, $resultChannel, resultContinuation) {
|
|
8645
|
-
this.
|
|
8646
|
-
this.
|
|
8647
|
-
this.
|
|
8648
|
-
this.
|
|
8607
|
+
this.d18_1 = $flows;
|
|
8608
|
+
this.e18_1 = $i;
|
|
8609
|
+
this.f18_1 = $nonClosed;
|
|
8610
|
+
this.g18_1 = $resultChannel;
|
|
8649
8611
|
CoroutineImpl.call(this, resultContinuation);
|
|
8650
8612
|
}
|
|
8651
|
-
protoOf(combineInternal$slambda$slambda).
|
|
8652
|
-
var tmp = this.
|
|
8613
|
+
protoOf(combineInternal$slambda$slambda).q16 = function ($this$launch, $completion) {
|
|
8614
|
+
var tmp = this.r16($this$launch, $completion);
|
|
8653
8615
|
tmp.vb_1 = Unit_instance;
|
|
8654
8616
|
tmp.wb_1 = null;
|
|
8655
8617
|
return tmp.qc();
|
|
8656
8618
|
};
|
|
8657
8619
|
protoOf(combineInternal$slambda$slambda).fd = function (p1, $completion) {
|
|
8658
|
-
return this.
|
|
8620
|
+
return this.q16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
8659
8621
|
};
|
|
8660
8622
|
protoOf(combineInternal$slambda$slambda).qc = function () {
|
|
8661
8623
|
var suspendResult = this.vb_1;
|
|
@@ -8670,31 +8632,31 @@
|
|
|
8670
8632
|
case 1:
|
|
8671
8633
|
this.ub_1 = 4;
|
|
8672
8634
|
this.tb_1 = 2;
|
|
8673
|
-
var tmp_0 = this.
|
|
8674
|
-
var tmp_1 = combineInternal$slambda$slambda$slambda_0(this.
|
|
8675
|
-
suspendResult = tmp_0.
|
|
8635
|
+
var tmp_0 = this.d18_1[this.e18_1];
|
|
8636
|
+
var tmp_1 = combineInternal$slambda$slambda$slambda_0(this.g18_1, this.e18_1, null);
|
|
8637
|
+
suspendResult = tmp_0.y10(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
8676
8638
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8677
8639
|
return suspendResult;
|
|
8678
8640
|
}
|
|
8679
8641
|
|
|
8680
8642
|
continue $sm;
|
|
8681
8643
|
case 2:
|
|
8682
|
-
this.
|
|
8644
|
+
this.i18_1 = suspendResult;
|
|
8683
8645
|
this.ub_1 = 5;
|
|
8684
8646
|
this.tb_1 = 3;
|
|
8685
8647
|
continue $sm;
|
|
8686
8648
|
case 3:
|
|
8687
8649
|
this.ub_1 = 5;
|
|
8688
|
-
if (this.
|
|
8689
|
-
this.
|
|
8650
|
+
if (this.f18_1.k18() === 0) {
|
|
8651
|
+
this.g18_1.dz();
|
|
8690
8652
|
}
|
|
8691
8653
|
|
|
8692
8654
|
return Unit_instance;
|
|
8693
8655
|
case 4:
|
|
8694
8656
|
this.ub_1 = 5;
|
|
8695
8657
|
var t = this.wb_1;
|
|
8696
|
-
if (this.
|
|
8697
|
-
this.
|
|
8658
|
+
if (this.f18_1.k18() === 0) {
|
|
8659
|
+
this.g18_1.dz();
|
|
8698
8660
|
}
|
|
8699
8661
|
|
|
8700
8662
|
throw t;
|
|
@@ -8712,34 +8674,34 @@
|
|
|
8712
8674
|
}
|
|
8713
8675
|
while (true);
|
|
8714
8676
|
};
|
|
8715
|
-
protoOf(combineInternal$slambda$slambda).
|
|
8716
|
-
var i = new combineInternal$slambda$slambda(this.
|
|
8717
|
-
i.
|
|
8677
|
+
protoOf(combineInternal$slambda$slambda).r16 = function ($this$launch, completion) {
|
|
8678
|
+
var i = new combineInternal$slambda$slambda(this.d18_1, this.e18_1, this.f18_1, this.g18_1, completion);
|
|
8679
|
+
i.h18_1 = $this$launch;
|
|
8718
8680
|
return i;
|
|
8719
8681
|
};
|
|
8720
8682
|
function combineInternal$slambda$slambda_0($flows, $i, $nonClosed, $resultChannel, resultContinuation) {
|
|
8721
8683
|
var i = new combineInternal$slambda$slambda($flows, $i, $nonClosed, $resultChannel, resultContinuation);
|
|
8722
8684
|
var l = function ($this$launch, $completion) {
|
|
8723
|
-
return i.
|
|
8685
|
+
return i.q16($this$launch, $completion);
|
|
8724
8686
|
};
|
|
8725
8687
|
l.$arity = 1;
|
|
8726
8688
|
return l;
|
|
8727
8689
|
}
|
|
8728
8690
|
function combineInternal$slambda($flows, $arrayFactory, $transform, $this_combineInternal, resultContinuation) {
|
|
8729
|
-
this.
|
|
8730
|
-
this.
|
|
8731
|
-
this.
|
|
8732
|
-
this.
|
|
8691
|
+
this.t18_1 = $flows;
|
|
8692
|
+
this.u18_1 = $arrayFactory;
|
|
8693
|
+
this.v18_1 = $transform;
|
|
8694
|
+
this.w18_1 = $this_combineInternal;
|
|
8733
8695
|
CoroutineImpl.call(this, resultContinuation);
|
|
8734
8696
|
}
|
|
8735
|
-
protoOf(combineInternal$slambda).
|
|
8736
|
-
var tmp = this.
|
|
8697
|
+
protoOf(combineInternal$slambda).q16 = function ($this$flowScope, $completion) {
|
|
8698
|
+
var tmp = this.r16($this$flowScope, $completion);
|
|
8737
8699
|
tmp.vb_1 = Unit_instance;
|
|
8738
8700
|
tmp.wb_1 = null;
|
|
8739
8701
|
return tmp.qc();
|
|
8740
8702
|
};
|
|
8741
8703
|
protoOf(combineInternal$slambda).fd = function (p1, $completion) {
|
|
8742
|
-
return this.
|
|
8704
|
+
return this.q16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
8743
8705
|
};
|
|
8744
8706
|
protoOf(combineInternal$slambda).qc = function () {
|
|
8745
8707
|
var suspendResult = this.vb_1;
|
|
@@ -8749,27 +8711,27 @@
|
|
|
8749
8711
|
switch (tmp) {
|
|
8750
8712
|
case 0:
|
|
8751
8713
|
this.ub_1 = 10;
|
|
8752
|
-
this.
|
|
8753
|
-
if (this.
|
|
8714
|
+
this.y18_1 = this.t18_1.length;
|
|
8715
|
+
if (this.y18_1 === 0)
|
|
8754
8716
|
return Unit_instance;
|
|
8755
8717
|
var tmp_0 = this;
|
|
8756
|
-
var size = this.
|
|
8757
|
-
tmp_0.
|
|
8758
|
-
fill(this.
|
|
8759
|
-
this.
|
|
8760
|
-
this.
|
|
8761
|
-
this.
|
|
8718
|
+
var size = this.y18_1;
|
|
8719
|
+
tmp_0.z18_1 = fillArrayVal(Array(size), null);
|
|
8720
|
+
fill(this.z18_1, get_UNINITIALIZED());
|
|
8721
|
+
this.a19_1 = Channel(this.y18_1);
|
|
8722
|
+
this.b19_1 = new LocalAtomicInt(this.y18_1);
|
|
8723
|
+
this.c19_1 = this.y18_1;
|
|
8762
8724
|
var inductionVariable = 0;
|
|
8763
|
-
var last = this.
|
|
8725
|
+
var last = this.y18_1;
|
|
8764
8726
|
if (inductionVariable < last)
|
|
8765
8727
|
do {
|
|
8766
8728
|
var i = inductionVariable;
|
|
8767
8729
|
inductionVariable = inductionVariable + 1 | 0;
|
|
8768
|
-
launch(this.
|
|
8730
|
+
launch(this.x18_1, VOID, VOID, combineInternal$slambda$slambda_0(this.t18_1, i, this.b19_1, this.a19_1, null));
|
|
8769
8731
|
}
|
|
8770
8732
|
while (inductionVariable < last);
|
|
8771
|
-
this.
|
|
8772
|
-
this.
|
|
8733
|
+
this.d19_1 = new Int8Array(this.y18_1);
|
|
8734
|
+
this.e19_1 = 0;
|
|
8773
8735
|
this.tb_1 = 1;
|
|
8774
8736
|
continue $sm;
|
|
8775
8737
|
case 1:
|
|
@@ -8778,9 +8740,9 @@
|
|
|
8778
8740
|
continue $sm;
|
|
8779
8741
|
}
|
|
8780
8742
|
|
|
8781
|
-
this.
|
|
8743
|
+
this.e19_1 = numberToByte(this.e19_1 + 1);
|
|
8782
8744
|
this.tb_1 = 2;
|
|
8783
|
-
suspendResult = this.
|
|
8745
|
+
suspendResult = this.a19_1.yy(this);
|
|
8784
8746
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8785
8747
|
return suspendResult;
|
|
8786
8748
|
}
|
|
@@ -8788,65 +8750,65 @@
|
|
|
8788
8750
|
this.tb_1 = 3;
|
|
8789
8751
|
continue $sm;
|
|
8790
8752
|
case 2:
|
|
8791
|
-
this.
|
|
8792
|
-
suspendResult = new ChannelResult(this.
|
|
8753
|
+
this.f19_1 = suspendResult.iw_1;
|
|
8754
|
+
suspendResult = new ChannelResult(this.f19_1);
|
|
8793
8755
|
this.tb_1 = 3;
|
|
8794
8756
|
continue $sm;
|
|
8795
8757
|
case 3:
|
|
8796
|
-
this.
|
|
8797
|
-
this.
|
|
8798
|
-
if (this.
|
|
8758
|
+
this.g19_1 = suspendResult.iw_1;
|
|
8759
|
+
this.h19_1 = ChannelResult__getOrNull_impl_f5e07h(this.g19_1);
|
|
8760
|
+
if (this.h19_1 == null) {
|
|
8799
8761
|
this.tb_1 = 9;
|
|
8800
8762
|
var tmp_1 = this;
|
|
8801
8763
|
continue $sm;
|
|
8802
8764
|
} else {
|
|
8803
|
-
this.
|
|
8765
|
+
this.i19_1 = this.h19_1;
|
|
8804
8766
|
this.tb_1 = 4;
|
|
8805
8767
|
continue $sm;
|
|
8806
8768
|
}
|
|
8807
8769
|
|
|
8808
8770
|
case 4:
|
|
8809
|
-
this.
|
|
8771
|
+
this.j19_1 = this.i19_1;
|
|
8810
8772
|
$l$loop_0: while (true) {
|
|
8811
|
-
var index = this.
|
|
8812
|
-
var previous = this.
|
|
8813
|
-
this.
|
|
8773
|
+
var index = this.j19_1.ie_1;
|
|
8774
|
+
var previous = this.z18_1[index];
|
|
8775
|
+
this.z18_1[index] = this.j19_1.je_1;
|
|
8814
8776
|
if (previous === get_UNINITIALIZED()) {
|
|
8815
|
-
this.
|
|
8777
|
+
this.c19_1 = this.c19_1 - 1 | 0;
|
|
8816
8778
|
}
|
|
8817
|
-
if (this.
|
|
8779
|
+
if (this.d19_1[index] === this.e19_1)
|
|
8818
8780
|
break $l$loop_0;
|
|
8819
|
-
this.
|
|
8781
|
+
this.d19_1[index] = this.e19_1;
|
|
8820
8782
|
var tmp_2 = this;
|
|
8821
|
-
var tmp2_elvis_lhs = ChannelResult__getOrNull_impl_f5e07h(this.
|
|
8783
|
+
var tmp2_elvis_lhs = ChannelResult__getOrNull_impl_f5e07h(this.a19_1.zy());
|
|
8822
8784
|
var tmp_3;
|
|
8823
8785
|
if (tmp2_elvis_lhs == null) {
|
|
8824
8786
|
break $l$loop_0;
|
|
8825
8787
|
} else {
|
|
8826
8788
|
tmp_3 = tmp2_elvis_lhs;
|
|
8827
8789
|
}
|
|
8828
|
-
tmp_2.
|
|
8790
|
+
tmp_2.j19_1 = tmp_3;
|
|
8829
8791
|
}
|
|
8830
8792
|
|
|
8831
|
-
if (this.
|
|
8832
|
-
this.
|
|
8833
|
-
if (this.
|
|
8793
|
+
if (this.c19_1 === 0) {
|
|
8794
|
+
this.k19_1 = this.u18_1();
|
|
8795
|
+
if (this.k19_1 == null) {
|
|
8834
8796
|
this.tb_1 = 6;
|
|
8835
|
-
var tmp_4 = this.
|
|
8836
|
-
suspendResult = this.
|
|
8797
|
+
var tmp_4 = this.z18_1;
|
|
8798
|
+
suspendResult = this.v18_1(this.w18_1, isArray(tmp_4) ? tmp_4 : THROW_CCE(), this);
|
|
8837
8799
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8838
8800
|
return suspendResult;
|
|
8839
8801
|
}
|
|
8840
8802
|
continue $sm;
|
|
8841
8803
|
} else {
|
|
8842
|
-
var tmp_5 = this.
|
|
8804
|
+
var tmp_5 = this.z18_1;
|
|
8843
8805
|
var this_0 = isArray(tmp_5) ? tmp_5 : THROW_CCE();
|
|
8844
|
-
var destination = this.
|
|
8806
|
+
var destination = this.k19_1;
|
|
8845
8807
|
var endIndex = this_0.length;
|
|
8846
8808
|
arrayCopy(this_0, destination, 0, 0, endIndex);
|
|
8847
8809
|
this.tb_1 = 5;
|
|
8848
|
-
var tmp_6 = this.
|
|
8849
|
-
suspendResult = this.
|
|
8810
|
+
var tmp_6 = this.k19_1;
|
|
8811
|
+
suspendResult = this.v18_1(this.w18_1, (!(tmp_6 == null) ? isArray(tmp_6) : false) ? tmp_6 : THROW_CCE(), this);
|
|
8850
8812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8851
8813
|
return suspendResult;
|
|
8852
8814
|
}
|
|
@@ -8885,15 +8847,15 @@
|
|
|
8885
8847
|
}
|
|
8886
8848
|
while (true);
|
|
8887
8849
|
};
|
|
8888
|
-
protoOf(combineInternal$slambda).
|
|
8889
|
-
var i = new combineInternal$slambda(this.
|
|
8890
|
-
i.
|
|
8850
|
+
protoOf(combineInternal$slambda).r16 = function ($this$flowScope, completion) {
|
|
8851
|
+
var i = new combineInternal$slambda(this.t18_1, this.u18_1, this.v18_1, this.w18_1, completion);
|
|
8852
|
+
i.x18_1 = $this$flowScope;
|
|
8891
8853
|
return i;
|
|
8892
8854
|
};
|
|
8893
8855
|
function combineInternal$slambda_0($flows, $arrayFactory, $transform, $this_combineInternal, resultContinuation) {
|
|
8894
8856
|
var i = new combineInternal$slambda($flows, $arrayFactory, $transform, $this_combineInternal, resultContinuation);
|
|
8895
8857
|
var l = function ($this$flowScope, $completion) {
|
|
8896
|
-
return i.
|
|
8858
|
+
return i.q16($this$flowScope, $completion);
|
|
8897
8859
|
};
|
|
8898
8860
|
l.$arity = 1;
|
|
8899
8861
|
return l;
|
|
@@ -8913,11 +8875,11 @@
|
|
|
8913
8875
|
};
|
|
8914
8876
|
function NopCollector() {
|
|
8915
8877
|
}
|
|
8916
|
-
protoOf(NopCollector).
|
|
8878
|
+
protoOf(NopCollector).p19 = function (value, $completion) {
|
|
8917
8879
|
return Unit_instance;
|
|
8918
8880
|
};
|
|
8919
|
-
protoOf(NopCollector).
|
|
8920
|
-
return this.
|
|
8881
|
+
protoOf(NopCollector).x10 = function (value, $completion) {
|
|
8882
|
+
return this.p19((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
|
|
8921
8883
|
};
|
|
8922
8884
|
var NopCollector_instance;
|
|
8923
8885
|
function NopCollector_getInstance() {
|
|
@@ -8945,9 +8907,9 @@
|
|
|
8945
8907
|
}
|
|
8946
8908
|
function checkContext(_this__u8e3s4, currentContext) {
|
|
8947
8909
|
var result = currentContext.sf(0, checkContext$lambda(_this__u8e3s4));
|
|
8948
|
-
if (!(result === _this__u8e3s4.
|
|
8910
|
+
if (!(result === _this__u8e3s4.s19_1)) {
|
|
8949
8911
|
// Inline function 'kotlin.error' call
|
|
8950
|
-
var message = 'Flow invariant is violated:\n' + ('\t\tFlow was collected in ' + _this__u8e3s4.
|
|
8912
|
+
var message = 'Flow invariant is violated:\n' + ('\t\tFlow was collected in ' + _this__u8e3s4.r19_1 + ',\n') + ('\t\tbut emission happened in ' + currentContext + '.\n') + "\t\tPlease refer to 'flow' documentation or use 'flowOn' instead";
|
|
8951
8913
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
8952
8914
|
}
|
|
8953
8915
|
}
|
|
@@ -8973,7 +8935,7 @@
|
|
|
8973
8935
|
function checkContext$lambda($this_checkContext) {
|
|
8974
8936
|
return function (count, element) {
|
|
8975
8937
|
var key = element.j2();
|
|
8976
|
-
var collectElement = $this_checkContext.
|
|
8938
|
+
var collectElement = $this_checkContext.r19_1.bc(key);
|
|
8977
8939
|
var tmp;
|
|
8978
8940
|
if (!(key === Key_instance_2)) {
|
|
8979
8941
|
return !(element === collectElement) ? IntCompanionObject_instance.MIN_VALUE : count + 1 | 0;
|
|
@@ -8989,10 +8951,10 @@
|
|
|
8989
8951
|
};
|
|
8990
8952
|
}
|
|
8991
8953
|
function SendingCollector(channel) {
|
|
8992
|
-
this.
|
|
8954
|
+
this.u19_1 = channel;
|
|
8993
8955
|
}
|
|
8994
|
-
protoOf(SendingCollector).
|
|
8995
|
-
return this.
|
|
8956
|
+
protoOf(SendingCollector).x10 = function (value, $completion) {
|
|
8957
|
+
return this.u19_1.uy(value, $completion);
|
|
8996
8958
|
};
|
|
8997
8959
|
function conflate(_this__u8e3s4) {
|
|
8998
8960
|
Factory_getInstance();
|
|
@@ -9053,7 +9015,7 @@
|
|
|
9053
9015
|
}
|
|
9054
9016
|
var tmp_4;
|
|
9055
9017
|
if (isInterface(_this__u8e3s4, FusibleFlow)) {
|
|
9056
|
-
tmp_4 = _this__u8e3s4.
|
|
9018
|
+
tmp_4 = _this__u8e3s4.l13(VOID, capacity_0, onBufferOverflow_0);
|
|
9057
9019
|
} else {
|
|
9058
9020
|
tmp_4 = new ChannelFlowOperatorImpl(_this__u8e3s4, VOID, capacity_0, onBufferOverflow_0);
|
|
9059
9021
|
}
|
|
@@ -9085,12 +9047,12 @@
|
|
|
9085
9047
|
var tmp_0;
|
|
9086
9048
|
var tmp_1;
|
|
9087
9049
|
if (_this__u8e3s4 instanceof DistinctFlowImpl) {
|
|
9088
|
-
tmp_1 = _this__u8e3s4.
|
|
9050
|
+
tmp_1 = _this__u8e3s4.w19_1 === keySelector;
|
|
9089
9051
|
} else {
|
|
9090
9052
|
tmp_1 = false;
|
|
9091
9053
|
}
|
|
9092
9054
|
if (tmp_1) {
|
|
9093
|
-
tmp_0 = _this__u8e3s4.
|
|
9055
|
+
tmp_0 = _this__u8e3s4.x19_1 === areEquivalent;
|
|
9094
9056
|
} else {
|
|
9095
9057
|
tmp_0 = false;
|
|
9096
9058
|
}
|
|
@@ -9102,25 +9064,25 @@
|
|
|
9102
9064
|
return tmp;
|
|
9103
9065
|
}
|
|
9104
9066
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
9105
|
-
this.
|
|
9067
|
+
this.y19_1 = function_0;
|
|
9106
9068
|
}
|
|
9107
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
9108
|
-
return this.
|
|
9069
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).x10 = function (value, $completion) {
|
|
9070
|
+
return this.y19_1(value, $completion);
|
|
9109
9071
|
};
|
|
9110
9072
|
function DistinctFlowImpl$collect$slambda(this$0, $previousKey, $collector, resultContinuation) {
|
|
9111
|
-
this.
|
|
9112
|
-
this.
|
|
9113
|
-
this.
|
|
9073
|
+
this.h1a_1 = this$0;
|
|
9074
|
+
this.i1a_1 = $previousKey;
|
|
9075
|
+
this.j1a_1 = $collector;
|
|
9114
9076
|
CoroutineImpl.call(this, resultContinuation);
|
|
9115
9077
|
}
|
|
9116
|
-
protoOf(DistinctFlowImpl$collect$slambda).
|
|
9117
|
-
var tmp = this.
|
|
9078
|
+
protoOf(DistinctFlowImpl$collect$slambda).c17 = function (value, $completion) {
|
|
9079
|
+
var tmp = this.d17(value, $completion);
|
|
9118
9080
|
tmp.vb_1 = Unit_instance;
|
|
9119
9081
|
tmp.wb_1 = null;
|
|
9120
9082
|
return tmp.qc();
|
|
9121
9083
|
};
|
|
9122
9084
|
protoOf(DistinctFlowImpl$collect$slambda).fd = function (p1, $completion) {
|
|
9123
|
-
return this.
|
|
9085
|
+
return this.c17((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
9124
9086
|
};
|
|
9125
9087
|
protoOf(DistinctFlowImpl$collect$slambda).qc = function () {
|
|
9126
9088
|
var suspendResult = this.vb_1;
|
|
@@ -9130,11 +9092,11 @@
|
|
|
9130
9092
|
switch (tmp) {
|
|
9131
9093
|
case 0:
|
|
9132
9094
|
this.ub_1 = 3;
|
|
9133
|
-
this.
|
|
9134
|
-
if (this.
|
|
9135
|
-
this.
|
|
9095
|
+
this.l1a_1 = this.h1a_1.w19_1(this.k1a_1);
|
|
9096
|
+
if (this.i1a_1._v === get_NULL() ? true : !this.h1a_1.x19_1(this.i1a_1._v, this.l1a_1)) {
|
|
9097
|
+
this.i1a_1._v = this.l1a_1;
|
|
9136
9098
|
this.tb_1 = 1;
|
|
9137
|
-
suspendResult = this.
|
|
9099
|
+
suspendResult = this.j1a_1.x10(this.k1a_1, this);
|
|
9138
9100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9139
9101
|
return suspendResult;
|
|
9140
9102
|
}
|
|
@@ -9163,28 +9125,28 @@
|
|
|
9163
9125
|
}
|
|
9164
9126
|
while (true);
|
|
9165
9127
|
};
|
|
9166
|
-
protoOf(DistinctFlowImpl$collect$slambda).
|
|
9167
|
-
var i = new DistinctFlowImpl$collect$slambda(this.
|
|
9168
|
-
i.
|
|
9128
|
+
protoOf(DistinctFlowImpl$collect$slambda).d17 = function (value, completion) {
|
|
9129
|
+
var i = new DistinctFlowImpl$collect$slambda(this.h1a_1, this.i1a_1, this.j1a_1, completion);
|
|
9130
|
+
i.k1a_1 = value;
|
|
9169
9131
|
return i;
|
|
9170
9132
|
};
|
|
9171
9133
|
function DistinctFlowImpl$collect$slambda_0(this$0, $previousKey, $collector, resultContinuation) {
|
|
9172
9134
|
var i = new DistinctFlowImpl$collect$slambda(this$0, $previousKey, $collector, resultContinuation);
|
|
9173
9135
|
var l = function (value, $completion) {
|
|
9174
|
-
return i.
|
|
9136
|
+
return i.c17(value, $completion);
|
|
9175
9137
|
};
|
|
9176
9138
|
l.$arity = 1;
|
|
9177
9139
|
return l;
|
|
9178
9140
|
}
|
|
9179
9141
|
function DistinctFlowImpl(upstream, keySelector, areEquivalent) {
|
|
9180
|
-
this.
|
|
9181
|
-
this.
|
|
9182
|
-
this.
|
|
9142
|
+
this.v19_1 = upstream;
|
|
9143
|
+
this.w19_1 = keySelector;
|
|
9144
|
+
this.x19_1 = areEquivalent;
|
|
9183
9145
|
}
|
|
9184
|
-
protoOf(DistinctFlowImpl).
|
|
9146
|
+
protoOf(DistinctFlowImpl).y10 = function (collector, $completion) {
|
|
9185
9147
|
var previousKey = {_v: get_NULL()};
|
|
9186
9148
|
var tmp = DistinctFlowImpl$collect$slambda_0(this, previousKey, collector, null);
|
|
9187
|
-
return this.
|
|
9149
|
+
return this.v19_1.y10(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp), $completion);
|
|
9188
9150
|
};
|
|
9189
9151
|
function defaultKeySelector$lambda(it) {
|
|
9190
9152
|
_init_properties_Distinct_kt__4eindw();
|
|
@@ -9204,7 +9166,7 @@
|
|
|
9204
9166
|
}
|
|
9205
9167
|
function ensureActive_1(_this__u8e3s4) {
|
|
9206
9168
|
if (_this__u8e3s4 instanceof ThrowingCollector)
|
|
9207
|
-
throw _this__u8e3s4.
|
|
9169
|
+
throw _this__u8e3s4.m1a_1;
|
|
9208
9170
|
}
|
|
9209
9171
|
function ThrowingCollector() {
|
|
9210
9172
|
}
|
|
@@ -9213,7 +9175,7 @@
|
|
|
9213
9175
|
}
|
|
9214
9176
|
function $onSubscriptionCOROUTINE$13(_this__u8e3s4, resultContinuation) {
|
|
9215
9177
|
CoroutineImpl.call(this, resultContinuation);
|
|
9216
|
-
this.
|
|
9178
|
+
this.v1a_1 = _this__u8e3s4;
|
|
9217
9179
|
}
|
|
9218
9180
|
protoOf($onSubscriptionCOROUTINE$13).qc = function () {
|
|
9219
9181
|
var suspendResult = this.vb_1;
|
|
@@ -9224,30 +9186,30 @@
|
|
|
9224
9186
|
case 0:
|
|
9225
9187
|
this.ub_1 = 7;
|
|
9226
9188
|
var tmp_0 = this;
|
|
9227
|
-
tmp_0.
|
|
9189
|
+
tmp_0.w1a_1 = new SafeCollector(this.v1a_1.a13_1, this.ac());
|
|
9228
9190
|
this.tb_1 = 1;
|
|
9229
9191
|
continue $sm;
|
|
9230
9192
|
case 1:
|
|
9231
9193
|
this.ub_1 = 6;
|
|
9232
9194
|
this.tb_1 = 2;
|
|
9233
|
-
suspendResult = this.
|
|
9195
|
+
suspendResult = this.v1a_1.b13_1(this.w1a_1, this);
|
|
9234
9196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9235
9197
|
return suspendResult;
|
|
9236
9198
|
}
|
|
9237
9199
|
|
|
9238
9200
|
continue $sm;
|
|
9239
9201
|
case 2:
|
|
9240
|
-
this.
|
|
9202
|
+
this.x1a_1 = suspendResult;
|
|
9241
9203
|
this.ub_1 = 7;
|
|
9242
9204
|
this.tb_1 = 3;
|
|
9243
9205
|
continue $sm;
|
|
9244
9206
|
case 3:
|
|
9245
9207
|
this.ub_1 = 7;
|
|
9246
|
-
this.
|
|
9247
|
-
var tmp_1 = this.
|
|
9208
|
+
this.w1a_1.y1a();
|
|
9209
|
+
var tmp_1 = this.v1a_1.a13_1;
|
|
9248
9210
|
if (tmp_1 instanceof SubscribedFlowCollector) {
|
|
9249
9211
|
this.tb_1 = 4;
|
|
9250
|
-
suspendResult = this.
|
|
9212
|
+
suspendResult = this.v1a_1.a13_1.c13(this);
|
|
9251
9213
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9252
9214
|
return suspendResult;
|
|
9253
9215
|
}
|
|
@@ -9265,7 +9227,7 @@
|
|
|
9265
9227
|
case 6:
|
|
9266
9228
|
this.ub_1 = 7;
|
|
9267
9229
|
var t = this.wb_1;
|
|
9268
|
-
this.
|
|
9230
|
+
this.w1a_1.y1a();
|
|
9269
9231
|
throw t;
|
|
9270
9232
|
case 7:
|
|
9271
9233
|
throw this.wb_1;
|
|
@@ -9282,13 +9244,13 @@
|
|
|
9282
9244
|
while (true);
|
|
9283
9245
|
};
|
|
9284
9246
|
function SubscribedFlowCollector(collector, action) {
|
|
9285
|
-
this.
|
|
9286
|
-
this.
|
|
9247
|
+
this.a13_1 = collector;
|
|
9248
|
+
this.b13_1 = action;
|
|
9287
9249
|
}
|
|
9288
|
-
protoOf(SubscribedFlowCollector).
|
|
9289
|
-
return this.
|
|
9250
|
+
protoOf(SubscribedFlowCollector).x10 = function (value, $completion) {
|
|
9251
|
+
return this.a13_1.x10(value, $completion);
|
|
9290
9252
|
};
|
|
9291
|
-
protoOf(SubscribedFlowCollector).
|
|
9253
|
+
protoOf(SubscribedFlowCollector).c13 = function ($completion) {
|
|
9292
9254
|
var tmp = new $onSubscriptionCOROUTINE$13(this, $completion);
|
|
9293
9255
|
tmp.vb_1 = Unit_instance;
|
|
9294
9256
|
tmp.wb_1 = null;
|
|
@@ -9296,8 +9258,8 @@
|
|
|
9296
9258
|
};
|
|
9297
9259
|
function $collectCOROUTINE$14(_this__u8e3s4, collector, resultContinuation) {
|
|
9298
9260
|
CoroutineImpl.call(this, resultContinuation);
|
|
9299
|
-
this.
|
|
9300
|
-
this.
|
|
9261
|
+
this.h1b_1 = _this__u8e3s4;
|
|
9262
|
+
this.i1b_1 = collector;
|
|
9301
9263
|
}
|
|
9302
9264
|
protoOf($collectCOROUTINE$14).qc = function () {
|
|
9303
9265
|
var suspendResult = this.vb_1;
|
|
@@ -9308,7 +9270,7 @@
|
|
|
9308
9270
|
case 0:
|
|
9309
9271
|
this.ub_1 = 2;
|
|
9310
9272
|
this.tb_1 = 1;
|
|
9311
|
-
suspendResult = this.
|
|
9273
|
+
suspendResult = this.h1b_1.j1b_1.f13(new SubscribedFlowCollector(this.i1b_1, this.h1b_1.k1b_1), this);
|
|
9312
9274
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9313
9275
|
return suspendResult;
|
|
9314
9276
|
}
|
|
@@ -9331,17 +9293,17 @@
|
|
|
9331
9293
|
while (true);
|
|
9332
9294
|
};
|
|
9333
9295
|
function SubscribedSharedFlow(sharedFlow, action) {
|
|
9334
|
-
this.
|
|
9335
|
-
this.
|
|
9296
|
+
this.j1b_1 = sharedFlow;
|
|
9297
|
+
this.k1b_1 = action;
|
|
9336
9298
|
}
|
|
9337
|
-
protoOf(SubscribedSharedFlow).
|
|
9299
|
+
protoOf(SubscribedSharedFlow).f13 = function (collector, $completion) {
|
|
9338
9300
|
var tmp = new $collectCOROUTINE$14(this, collector, $completion);
|
|
9339
9301
|
tmp.vb_1 = Unit_instance;
|
|
9340
9302
|
tmp.wb_1 = null;
|
|
9341
9303
|
return tmp.qc();
|
|
9342
9304
|
};
|
|
9343
|
-
protoOf(SubscribedSharedFlow).
|
|
9344
|
-
return this.
|
|
9305
|
+
protoOf(SubscribedSharedFlow).y10 = function (collector, $completion) {
|
|
9306
|
+
return this.f13(collector, $completion);
|
|
9345
9307
|
};
|
|
9346
9308
|
function onEach(_this__u8e3s4, action) {
|
|
9347
9309
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
@@ -9349,24 +9311,24 @@
|
|
|
9349
9311
|
return new _no_name_provided__qut3iv_0(_this__u8e3s4, action);
|
|
9350
9312
|
}
|
|
9351
9313
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
9352
|
-
this.
|
|
9314
|
+
this.l1b_1 = function_0;
|
|
9353
9315
|
}
|
|
9354
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).
|
|
9355
|
-
return this.
|
|
9316
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).x10 = function (value, $completion) {
|
|
9317
|
+
return this.l1b_1(value, $completion);
|
|
9356
9318
|
};
|
|
9357
9319
|
function onEach$o$collect$slambda($$this$unsafeFlow, $action, resultContinuation) {
|
|
9358
|
-
this.
|
|
9359
|
-
this.
|
|
9320
|
+
this.u1b_1 = $$this$unsafeFlow;
|
|
9321
|
+
this.v1b_1 = $action;
|
|
9360
9322
|
CoroutineImpl.call(this, resultContinuation);
|
|
9361
9323
|
}
|
|
9362
|
-
protoOf(onEach$o$collect$slambda).
|
|
9363
|
-
var tmp = this.
|
|
9324
|
+
protoOf(onEach$o$collect$slambda).c17 = function (value, $completion) {
|
|
9325
|
+
var tmp = this.d17(value, $completion);
|
|
9364
9326
|
tmp.vb_1 = Unit_instance;
|
|
9365
9327
|
tmp.wb_1 = null;
|
|
9366
9328
|
return tmp.qc();
|
|
9367
9329
|
};
|
|
9368
9330
|
protoOf(onEach$o$collect$slambda).fd = function (p1, $completion) {
|
|
9369
|
-
return this.
|
|
9331
|
+
return this.c17((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
9370
9332
|
};
|
|
9371
9333
|
protoOf(onEach$o$collect$slambda).qc = function () {
|
|
9372
9334
|
var suspendResult = this.vb_1;
|
|
@@ -9377,11 +9339,11 @@
|
|
|
9377
9339
|
case 0:
|
|
9378
9340
|
this.ub_1 = 3;
|
|
9379
9341
|
var tmp_0 = this;
|
|
9380
|
-
tmp_0.
|
|
9342
|
+
tmp_0.x1b_1 = this.u1b_1;
|
|
9381
9343
|
var tmp_1 = this;
|
|
9382
|
-
tmp_1.
|
|
9344
|
+
tmp_1.y1b_1 = this.w1b_1;
|
|
9383
9345
|
this.tb_1 = 1;
|
|
9384
|
-
suspendResult = this.
|
|
9346
|
+
suspendResult = this.v1b_1(this.y1b_1, this);
|
|
9385
9347
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9386
9348
|
return suspendResult;
|
|
9387
9349
|
}
|
|
@@ -9389,7 +9351,7 @@
|
|
|
9389
9351
|
continue $sm;
|
|
9390
9352
|
case 1:
|
|
9391
9353
|
this.tb_1 = 2;
|
|
9392
|
-
suspendResult = this.
|
|
9354
|
+
suspendResult = this.x1b_1.x10(this.y1b_1, this);
|
|
9393
9355
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9394
9356
|
return suspendResult;
|
|
9395
9357
|
}
|
|
@@ -9411,23 +9373,23 @@
|
|
|
9411
9373
|
}
|
|
9412
9374
|
while (true);
|
|
9413
9375
|
};
|
|
9414
|
-
protoOf(onEach$o$collect$slambda).
|
|
9415
|
-
var i = new onEach$o$collect$slambda(this.
|
|
9416
|
-
i.
|
|
9376
|
+
protoOf(onEach$o$collect$slambda).d17 = function (value, completion) {
|
|
9377
|
+
var i = new onEach$o$collect$slambda(this.u1b_1, this.v1b_1, completion);
|
|
9378
|
+
i.w1b_1 = value;
|
|
9417
9379
|
return i;
|
|
9418
9380
|
};
|
|
9419
9381
|
function onEach$o$collect$slambda_0($$this$unsafeFlow, $action, resultContinuation) {
|
|
9420
9382
|
var i = new onEach$o$collect$slambda($$this$unsafeFlow, $action, resultContinuation);
|
|
9421
9383
|
var l = function (value, $completion) {
|
|
9422
|
-
return i.
|
|
9384
|
+
return i.c17(value, $completion);
|
|
9423
9385
|
};
|
|
9424
9386
|
l.$arity = 1;
|
|
9425
9387
|
return l;
|
|
9426
9388
|
}
|
|
9427
9389
|
function $collectCOROUTINE$17(_this__u8e3s4, collector, resultContinuation) {
|
|
9428
9390
|
CoroutineImpl.call(this, resultContinuation);
|
|
9429
|
-
this.
|
|
9430
|
-
this.
|
|
9391
|
+
this.h1c_1 = _this__u8e3s4;
|
|
9392
|
+
this.i1c_1 = collector;
|
|
9431
9393
|
}
|
|
9432
9394
|
protoOf($collectCOROUTINE$17).qc = function () {
|
|
9433
9395
|
var suspendResult = this.vb_1;
|
|
@@ -9438,10 +9400,10 @@
|
|
|
9438
9400
|
case 0:
|
|
9439
9401
|
this.ub_1 = 2;
|
|
9440
9402
|
var tmp_0 = this;
|
|
9441
|
-
tmp_0.
|
|
9403
|
+
tmp_0.j1c_1 = this.i1c_1;
|
|
9442
9404
|
this.tb_1 = 1;
|
|
9443
|
-
var tmp_1 = onEach$o$collect$slambda_0(this.
|
|
9444
|
-
suspendResult = this.
|
|
9405
|
+
var tmp_1 = onEach$o$collect$slambda_0(this.j1c_1, this.h1c_1.l1c_1, null);
|
|
9406
|
+
suspendResult = this.h1c_1.k1c_1.y10(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
9445
9407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9446
9408
|
return suspendResult;
|
|
9447
9409
|
}
|
|
@@ -9464,10 +9426,10 @@
|
|
|
9464
9426
|
while (true);
|
|
9465
9427
|
};
|
|
9466
9428
|
function _no_name_provided__qut3iv_0($this, $action) {
|
|
9467
|
-
this.
|
|
9468
|
-
this.
|
|
9429
|
+
this.k1c_1 = $this;
|
|
9430
|
+
this.l1c_1 = $action;
|
|
9469
9431
|
}
|
|
9470
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
9432
|
+
protoOf(_no_name_provided__qut3iv_0).y10 = function (collector, $completion) {
|
|
9471
9433
|
var tmp = new $collectCOROUTINE$17(this, collector, $completion);
|
|
9472
9434
|
tmp.vb_1 = Unit_instance;
|
|
9473
9435
|
tmp.wb_1 = null;
|
|
@@ -9481,18 +9443,18 @@
|
|
|
9481
9443
|
return nullArrayFactory$lambda;
|
|
9482
9444
|
}
|
|
9483
9445
|
function combine$o$collect$slambda($transform, resultContinuation) {
|
|
9484
|
-
this.
|
|
9446
|
+
this.u1c_1 = $transform;
|
|
9485
9447
|
CoroutineImpl.call(this, resultContinuation);
|
|
9486
9448
|
}
|
|
9487
|
-
protoOf(combine$o$collect$slambda).
|
|
9488
|
-
var tmp = this.
|
|
9449
|
+
protoOf(combine$o$collect$slambda).y1c = function ($this$combineInternal, it, $completion) {
|
|
9450
|
+
var tmp = this.z1c($this$combineInternal, it, $completion);
|
|
9489
9451
|
tmp.vb_1 = Unit_instance;
|
|
9490
9452
|
tmp.wb_1 = null;
|
|
9491
9453
|
return tmp.qc();
|
|
9492
9454
|
};
|
|
9493
|
-
protoOf(combine$o$collect$slambda).
|
|
9455
|
+
protoOf(combine$o$collect$slambda).a1d = function (p1, p2, $completion) {
|
|
9494
9456
|
var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE();
|
|
9495
|
-
return this.
|
|
9457
|
+
return this.y1c(tmp, (!(p2 == null) ? isArray(p2) : false) ? p2 : THROW_CCE(), $completion);
|
|
9496
9458
|
};
|
|
9497
9459
|
protoOf(combine$o$collect$slambda).qc = function () {
|
|
9498
9460
|
var suspendResult = this.vb_1;
|
|
@@ -9503,19 +9465,19 @@
|
|
|
9503
9465
|
case 0:
|
|
9504
9466
|
this.ub_1 = 3;
|
|
9505
9467
|
this.tb_1 = 1;
|
|
9506
|
-
var tmp_0 = this.
|
|
9468
|
+
var tmp_0 = this.w1c_1[0];
|
|
9507
9469
|
var tmp_1 = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
9508
|
-
var tmp_2 = this.
|
|
9509
|
-
suspendResult = this.
|
|
9470
|
+
var tmp_2 = this.w1c_1[1];
|
|
9471
|
+
suspendResult = this.u1c_1(tmp_1, (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE(), this);
|
|
9510
9472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9511
9473
|
return suspendResult;
|
|
9512
9474
|
}
|
|
9513
9475
|
|
|
9514
9476
|
continue $sm;
|
|
9515
9477
|
case 1:
|
|
9516
|
-
this.
|
|
9478
|
+
this.x1c_1 = suspendResult;
|
|
9517
9479
|
this.tb_1 = 2;
|
|
9518
|
-
suspendResult = this.
|
|
9480
|
+
suspendResult = this.v1c_1.x10(this.x1c_1, this);
|
|
9519
9481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9520
9482
|
return suspendResult;
|
|
9521
9483
|
}
|
|
@@ -9537,24 +9499,24 @@
|
|
|
9537
9499
|
}
|
|
9538
9500
|
while (true);
|
|
9539
9501
|
};
|
|
9540
|
-
protoOf(combine$o$collect$slambda).
|
|
9541
|
-
var i = new combine$o$collect$slambda(this.
|
|
9542
|
-
i.
|
|
9543
|
-
i.
|
|
9502
|
+
protoOf(combine$o$collect$slambda).z1c = function ($this$combineInternal, it, completion) {
|
|
9503
|
+
var i = new combine$o$collect$slambda(this.u1c_1, completion);
|
|
9504
|
+
i.v1c_1 = $this$combineInternal;
|
|
9505
|
+
i.w1c_1 = it;
|
|
9544
9506
|
return i;
|
|
9545
9507
|
};
|
|
9546
9508
|
function combine$o$collect$slambda_0($transform, resultContinuation) {
|
|
9547
9509
|
var i = new combine$o$collect$slambda($transform, resultContinuation);
|
|
9548
9510
|
var l = function ($this$combineInternal, it, $completion) {
|
|
9549
|
-
return i.
|
|
9511
|
+
return i.y1c($this$combineInternal, it, $completion);
|
|
9550
9512
|
};
|
|
9551
9513
|
l.$arity = 2;
|
|
9552
9514
|
return l;
|
|
9553
9515
|
}
|
|
9554
9516
|
function $collectCOROUTINE$18(_this__u8e3s4, collector, resultContinuation) {
|
|
9555
9517
|
CoroutineImpl.call(this, resultContinuation);
|
|
9556
|
-
this.
|
|
9557
|
-
this.
|
|
9518
|
+
this.j1d_1 = _this__u8e3s4;
|
|
9519
|
+
this.k1d_1 = collector;
|
|
9558
9520
|
}
|
|
9559
9521
|
protoOf($collectCOROUTINE$18).qc = function () {
|
|
9560
9522
|
var suspendResult = this.vb_1;
|
|
@@ -9565,11 +9527,11 @@
|
|
|
9565
9527
|
case 0:
|
|
9566
9528
|
this.ub_1 = 2;
|
|
9567
9529
|
var tmp_0 = this;
|
|
9568
|
-
tmp_0.
|
|
9530
|
+
tmp_0.l1d_1 = this.k1d_1;
|
|
9569
9531
|
this.tb_1 = 1;
|
|
9570
|
-
var this_0 = [this.
|
|
9532
|
+
var this_0 = [this.j1d_1.m1d_1, this.j1d_1.n1d_1];
|
|
9571
9533
|
var tmp_1 = nullArrayFactory();
|
|
9572
|
-
suspendResult = combineInternal(this.
|
|
9534
|
+
suspendResult = combineInternal(this.l1d_1, this_0, tmp_1, combine$o$collect$slambda_0(this.j1d_1.o1d_1, null), this);
|
|
9573
9535
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9574
9536
|
return suspendResult;
|
|
9575
9537
|
}
|
|
@@ -9592,18 +9554,18 @@
|
|
|
9592
9554
|
while (true);
|
|
9593
9555
|
};
|
|
9594
9556
|
function _no_name_provided__qut3iv_1($this_combine, $flow, $transform) {
|
|
9595
|
-
this.
|
|
9596
|
-
this.
|
|
9597
|
-
this.
|
|
9557
|
+
this.m1d_1 = $this_combine;
|
|
9558
|
+
this.n1d_1 = $flow;
|
|
9559
|
+
this.o1d_1 = $transform;
|
|
9598
9560
|
}
|
|
9599
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
9561
|
+
protoOf(_no_name_provided__qut3iv_1).p1d = function (collector, $completion) {
|
|
9600
9562
|
var tmp = new $collectCOROUTINE$18(this, collector, $completion);
|
|
9601
9563
|
tmp.vb_1 = Unit_instance;
|
|
9602
9564
|
tmp.wb_1 = null;
|
|
9603
9565
|
return tmp.qc();
|
|
9604
9566
|
};
|
|
9605
|
-
protoOf(_no_name_provided__qut3iv_1).
|
|
9606
|
-
return this.
|
|
9567
|
+
protoOf(_no_name_provided__qut3iv_1).y10 = function (collector, $completion) {
|
|
9568
|
+
return this.p1d(collector, $completion);
|
|
9607
9569
|
};
|
|
9608
9570
|
function nullArrayFactory$lambda() {
|
|
9609
9571
|
return null;
|
|
@@ -9612,20 +9574,20 @@
|
|
|
9612
9574
|
return launch(scope, VOID, VOID, launchIn$slambda_0(_this__u8e3s4, null));
|
|
9613
9575
|
}
|
|
9614
9576
|
function collect(_this__u8e3s4, $completion) {
|
|
9615
|
-
return _this__u8e3s4.
|
|
9577
|
+
return _this__u8e3s4.y10(NopCollector_instance, $completion);
|
|
9616
9578
|
}
|
|
9617
9579
|
function launchIn$slambda($this_launchIn, resultContinuation) {
|
|
9618
|
-
this.
|
|
9580
|
+
this.y1d_1 = $this_launchIn;
|
|
9619
9581
|
CoroutineImpl.call(this, resultContinuation);
|
|
9620
9582
|
}
|
|
9621
|
-
protoOf(launchIn$slambda).
|
|
9622
|
-
var tmp = this.
|
|
9583
|
+
protoOf(launchIn$slambda).q16 = function ($this$launch, $completion) {
|
|
9584
|
+
var tmp = this.r16($this$launch, $completion);
|
|
9623
9585
|
tmp.vb_1 = Unit_instance;
|
|
9624
9586
|
tmp.wb_1 = null;
|
|
9625
9587
|
return tmp.qc();
|
|
9626
9588
|
};
|
|
9627
9589
|
protoOf(launchIn$slambda).fd = function (p1, $completion) {
|
|
9628
|
-
return this.
|
|
9590
|
+
return this.q16((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
9629
9591
|
};
|
|
9630
9592
|
protoOf(launchIn$slambda).qc = function () {
|
|
9631
9593
|
var suspendResult = this.vb_1;
|
|
@@ -9636,7 +9598,7 @@
|
|
|
9636
9598
|
case 0:
|
|
9637
9599
|
this.ub_1 = 2;
|
|
9638
9600
|
this.tb_1 = 1;
|
|
9639
|
-
suspendResult = collect(this.
|
|
9601
|
+
suspendResult = collect(this.y1d_1, this);
|
|
9640
9602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
9641
9603
|
return suspendResult;
|
|
9642
9604
|
}
|
|
@@ -9658,15 +9620,15 @@
|
|
|
9658
9620
|
}
|
|
9659
9621
|
while (true);
|
|
9660
9622
|
};
|
|
9661
|
-
protoOf(launchIn$slambda).
|
|
9662
|
-
var i = new launchIn$slambda(this.
|
|
9663
|
-
i.
|
|
9623
|
+
protoOf(launchIn$slambda).r16 = function ($this$launch, completion) {
|
|
9624
|
+
var i = new launchIn$slambda(this.y1d_1, completion);
|
|
9625
|
+
i.z1d_1 = $this$launch;
|
|
9664
9626
|
return i;
|
|
9665
9627
|
};
|
|
9666
9628
|
function launchIn$slambda_0($this_launchIn, resultContinuation) {
|
|
9667
9629
|
var i = new launchIn$slambda($this_launchIn, resultContinuation);
|
|
9668
9630
|
var l = function ($this$launch, $completion) {
|
|
9669
|
-
return i.
|
|
9631
|
+
return i.q16($this$launch, $completion);
|
|
9670
9632
|
};
|
|
9671
9633
|
l.$arity = 1;
|
|
9672
9634
|
return l;
|
|
@@ -9971,7 +9933,7 @@
|
|
|
9971
9933
|
protoOf(DispatchedContinuation).fo = function () {
|
|
9972
9934
|
return !(this.co_1.kotlinx$atomicfu$value == null);
|
|
9973
9935
|
};
|
|
9974
|
-
protoOf(DispatchedContinuation).
|
|
9936
|
+
protoOf(DispatchedContinuation).a1e = function () {
|
|
9975
9937
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
9976
9938
|
var this_0 = this.co_1;
|
|
9977
9939
|
while (true) {
|
|
@@ -9981,7 +9943,7 @@
|
|
|
9981
9943
|
}
|
|
9982
9944
|
};
|
|
9983
9945
|
protoOf(DispatchedContinuation).zp = function () {
|
|
9984
|
-
this.
|
|
9946
|
+
this.a1e();
|
|
9985
9947
|
var tmp0_safe_receiver = _get_reusableCancellableContinuation__9qex09(this);
|
|
9986
9948
|
if (tmp0_safe_receiver == null)
|
|
9987
9949
|
null;
|
|
@@ -10528,31 +10490,31 @@
|
|
|
10528
10490
|
}
|
|
10529
10491
|
function ScopeCoroutine(context, uCont) {
|
|
10530
10492
|
AbstractCoroutine.call(this, context, true, true);
|
|
10531
|
-
this.
|
|
10493
|
+
this.fn_1 = uCont;
|
|
10532
10494
|
}
|
|
10533
10495
|
protoOf(ScopeCoroutine).pk = function () {
|
|
10534
10496
|
return true;
|
|
10535
10497
|
};
|
|
10536
10498
|
protoOf(ScopeCoroutine).jj = function (state) {
|
|
10537
|
-
resumeCancellableWith(intercepted(this.
|
|
10499
|
+
resumeCancellableWith(intercepted(this.fn_1), recoverResult(state, this.fn_1));
|
|
10538
10500
|
};
|
|
10539
10501
|
protoOf(ScopeCoroutine).ij = function (state) {
|
|
10540
|
-
this.
|
|
10502
|
+
this.fn_1.rc(recoverResult(state, this.fn_1));
|
|
10541
10503
|
};
|
|
10542
10504
|
function ContextScope(context) {
|
|
10543
|
-
this.
|
|
10505
|
+
this.b1e_1 = context;
|
|
10544
10506
|
}
|
|
10545
10507
|
protoOf(ContextScope).yi = function () {
|
|
10546
|
-
return this.
|
|
10508
|
+
return this.b1e_1;
|
|
10547
10509
|
};
|
|
10548
10510
|
protoOf(ContextScope).toString = function () {
|
|
10549
|
-
return 'CoroutineScope(coroutineContext=' + this.
|
|
10511
|
+
return 'CoroutineScope(coroutineContext=' + this.b1e_1 + ')';
|
|
10550
10512
|
};
|
|
10551
10513
|
function Symbol(symbol) {
|
|
10552
|
-
this.
|
|
10514
|
+
this.c1e_1 = symbol;
|
|
10553
10515
|
}
|
|
10554
10516
|
protoOf(Symbol).toString = function () {
|
|
10555
|
-
return '<' + this.
|
|
10517
|
+
return '<' + this.c1e_1 + '>';
|
|
10556
10518
|
};
|
|
10557
10519
|
function systemProp(propertyName, defaultValue, minValue, maxValue) {
|
|
10558
10520
|
minValue = minValue === VOID ? 1 : minValue;
|
|
@@ -10682,10 +10644,10 @@
|
|
|
10682
10644
|
// Inline function 'kotlinx.coroutines.intrinsics.startUndispatchedOrReturn.<anonymous>' call
|
|
10683
10645
|
state.ej_1;
|
|
10684
10646
|
if (true) {
|
|
10685
|
-
throw recoverStackTrace(state.ej_1, _this__u8e3s4.
|
|
10647
|
+
throw recoverStackTrace(state.ej_1, _this__u8e3s4.fn_1);
|
|
10686
10648
|
} else {
|
|
10687
10649
|
if (result instanceof CompletedExceptionally) {
|
|
10688
|
-
throw recoverStackTrace(result.ej_1, _this__u8e3s4.
|
|
10650
|
+
throw recoverStackTrace(result.ej_1, _this__u8e3s4.fn_1);
|
|
10689
10651
|
} else {
|
|
10690
10652
|
tmp_2 = result;
|
|
10691
10653
|
}
|
|
@@ -10772,7 +10734,7 @@
|
|
|
10772
10734
|
tmp = tmp0_elvis_lhs;
|
|
10773
10735
|
}
|
|
10774
10736
|
var clause = tmp;
|
|
10775
|
-
var onCancellation = clause.
|
|
10737
|
+
var onCancellation = clause.g1e($this, internalResult);
|
|
10776
10738
|
if ($this.lw_1.atomicfu$compareAndSet(curState, clause)) {
|
|
10777
10739
|
var cont = isInterface(curState, CancellableContinuation) ? curState : THROW_CCE();
|
|
10778
10740
|
$this.nw_1 = internalResult;
|
|
@@ -10828,7 +10790,7 @@
|
|
|
10828
10790
|
while (tmp0_iterator.t()) {
|
|
10829
10791
|
var element = tmp0_iterator.u();
|
|
10830
10792
|
// Inline function 'kotlinx.coroutines.selects.SelectImplementation.findClause.<anonymous>' call
|
|
10831
|
-
if (element.
|
|
10793
|
+
if (element.d1e_1 === clauseObject) {
|
|
10832
10794
|
tmp$ret$1 = element;
|
|
10833
10795
|
break $l$block;
|
|
10834
10796
|
}
|
|
@@ -10847,9 +10809,9 @@
|
|
|
10847
10809
|
}
|
|
10848
10810
|
function ClauseData() {
|
|
10849
10811
|
}
|
|
10850
|
-
protoOf(ClauseData).
|
|
10851
|
-
var tmp0_safe_receiver = this.
|
|
10852
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.
|
|
10812
|
+
protoOf(ClauseData).g1e = function (select, internalResult) {
|
|
10813
|
+
var tmp0_safe_receiver = this.f1e_1;
|
|
10814
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.e1e_1, internalResult);
|
|
10853
10815
|
};
|
|
10854
10816
|
function SelectImplementation() {
|
|
10855
10817
|
}
|
|
@@ -10897,7 +10859,7 @@
|
|
|
10897
10859
|
}
|
|
10898
10860
|
function tryResume_1(_this__u8e3s4, onCancellation) {
|
|
10899
10861
|
_init_properties_Select_kt__zhm2jg();
|
|
10900
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
10862
|
+
var tmp0_elvis_lhs = _this__u8e3s4.un(Unit_instance, null, onCancellation);
|
|
10901
10863
|
var tmp;
|
|
10902
10864
|
if (tmp0_elvis_lhs == null) {
|
|
10903
10865
|
return false;
|
|
@@ -10940,19 +10902,6 @@
|
|
|
10940
10902
|
PARAM_CLAUSE_0 = new Symbol('PARAM_CLAUSE_0');
|
|
10941
10903
|
}
|
|
10942
10904
|
}
|
|
10943
|
-
function CompletionHandlerBase() {
|
|
10944
|
-
LinkedListNode.call(this);
|
|
10945
|
-
}
|
|
10946
|
-
function invokeIt(_this__u8e3s4, cause) {
|
|
10947
|
-
if (typeof _this__u8e3s4 === 'function')
|
|
10948
|
-
_this__u8e3s4(cause);
|
|
10949
|
-
else {
|
|
10950
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
10951
|
-
_this__u8e3s4.invoke(cause);
|
|
10952
|
-
}
|
|
10953
|
-
}
|
|
10954
|
-
function CancelHandlerBase() {
|
|
10955
|
-
}
|
|
10956
10905
|
function toDebugString(_this__u8e3s4) {
|
|
10957
10906
|
return toString(_this__u8e3s4);
|
|
10958
10907
|
}
|
|
@@ -10997,7 +10946,7 @@
|
|
|
10997
10946
|
ScopeCoroutine.call(this, context, uCont);
|
|
10998
10947
|
}
|
|
10999
10948
|
protoOf(UndispatchedCoroutine).ij = function (state) {
|
|
11000
|
-
return this.
|
|
10949
|
+
return this.fn_1.rc(recoverResult(state, this.fn_1));
|
|
11001
10950
|
};
|
|
11002
10951
|
function newCoroutineContext_0(_this__u8e3s4, context) {
|
|
11003
10952
|
var combined = _this__u8e3s4.yi().tf(context);
|
|
@@ -11030,8 +10979,8 @@
|
|
|
11030
10979
|
NodeDispatcher_instance = this;
|
|
11031
10980
|
SetTimeoutBasedDispatcher.call(this);
|
|
11032
10981
|
}
|
|
11033
|
-
protoOf(NodeDispatcher).
|
|
11034
|
-
process.nextTick(this.
|
|
10982
|
+
protoOf(NodeDispatcher).n1e = function () {
|
|
10983
|
+
process.nextTick(this.u1e_1.s1e_1);
|
|
11035
10984
|
};
|
|
11036
10985
|
var NodeDispatcher_instance;
|
|
11037
10986
|
function NodeDispatcher_getInstance() {
|
|
@@ -11041,31 +10990,31 @@
|
|
|
11041
10990
|
}
|
|
11042
10991
|
function ScheduledMessageQueue$processQueue$lambda(this$0) {
|
|
11043
10992
|
return function () {
|
|
11044
|
-
this$0.
|
|
10993
|
+
this$0.y1e();
|
|
11045
10994
|
return Unit_instance;
|
|
11046
10995
|
};
|
|
11047
10996
|
}
|
|
11048
10997
|
function ScheduledMessageQueue(dispatcher) {
|
|
11049
10998
|
MessageQueue.call(this);
|
|
11050
|
-
this.
|
|
10999
|
+
this.r1e_1 = dispatcher;
|
|
11051
11000
|
var tmp = this;
|
|
11052
|
-
tmp.
|
|
11001
|
+
tmp.s1e_1 = ScheduledMessageQueue$processQueue$lambda(this);
|
|
11053
11002
|
}
|
|
11054
|
-
protoOf(ScheduledMessageQueue).y1e = function () {
|
|
11055
|
-
this.q1e_1.m1e();
|
|
11056
|
-
};
|
|
11057
11003
|
protoOf(ScheduledMessageQueue).z1e = function () {
|
|
11058
|
-
|
|
11004
|
+
this.r1e_1.n1e();
|
|
11059
11005
|
};
|
|
11060
|
-
protoOf(ScheduledMessageQueue).a1f = function (
|
|
11061
|
-
setTimeout(this.
|
|
11006
|
+
protoOf(ScheduledMessageQueue).a1f = function () {
|
|
11007
|
+
setTimeout(this.s1e_1, 0);
|
|
11008
|
+
};
|
|
11009
|
+
protoOf(ScheduledMessageQueue).b1f = function (timeout) {
|
|
11010
|
+
setTimeout(this.s1e_1, timeout);
|
|
11062
11011
|
};
|
|
11063
11012
|
function WindowMessageQueue$lambda(this$0) {
|
|
11064
11013
|
return function (event) {
|
|
11065
11014
|
var tmp;
|
|
11066
|
-
if (event.source == this$0.
|
|
11015
|
+
if (event.source == this$0.n1f_1 ? event.data == this$0.o1f_1 : false) {
|
|
11067
11016
|
event.stopPropagation();
|
|
11068
|
-
this$0.
|
|
11017
|
+
this$0.y1e();
|
|
11069
11018
|
tmp = Unit_instance;
|
|
11070
11019
|
}
|
|
11071
11020
|
return Unit_instance;
|
|
@@ -11073,22 +11022,22 @@
|
|
|
11073
11022
|
}
|
|
11074
11023
|
function WindowMessageQueue$schedule$lambda(this$0) {
|
|
11075
11024
|
return function (it) {
|
|
11076
|
-
this$0.
|
|
11025
|
+
this$0.y1e();
|
|
11077
11026
|
return Unit_instance;
|
|
11078
11027
|
};
|
|
11079
11028
|
}
|
|
11080
11029
|
function WindowMessageQueue(window_0) {
|
|
11081
11030
|
MessageQueue.call(this);
|
|
11082
|
-
this.
|
|
11083
|
-
this.
|
|
11084
|
-
this.
|
|
11031
|
+
this.n1f_1 = window_0;
|
|
11032
|
+
this.o1f_1 = 'dispatchCoroutine';
|
|
11033
|
+
this.n1f_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
|
|
11085
11034
|
}
|
|
11086
|
-
protoOf(WindowMessageQueue).
|
|
11035
|
+
protoOf(WindowMessageQueue).z1e = function () {
|
|
11087
11036
|
var tmp = Promise.resolve(Unit_instance);
|
|
11088
11037
|
tmp.then(WindowMessageQueue$schedule$lambda(this));
|
|
11089
11038
|
};
|
|
11090
|
-
protoOf(WindowMessageQueue).
|
|
11091
|
-
this.
|
|
11039
|
+
protoOf(WindowMessageQueue).a1f = function () {
|
|
11040
|
+
this.n1f_1.postMessage(this.o1f_1, '*');
|
|
11092
11041
|
};
|
|
11093
11042
|
function promise(_this__u8e3s4, context, start, block) {
|
|
11094
11043
|
context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
|
|
@@ -11102,7 +11051,7 @@
|
|
|
11102
11051
|
// Inline function 'kotlinx.coroutines.await.<anonymous>' call
|
|
11103
11052
|
var tmp = await$lambda(cancellable);
|
|
11104
11053
|
_this__u8e3s4.then(tmp, await$lambda_0(cancellable));
|
|
11105
|
-
return cancellable.
|
|
11054
|
+
return cancellable.vm();
|
|
11106
11055
|
}
|
|
11107
11056
|
function asPromise(_this__u8e3s4) {
|
|
11108
11057
|
var promise = new Promise(asPromise$lambda(_this__u8e3s4));
|
|
@@ -11187,25 +11136,25 @@
|
|
|
11187
11136
|
}
|
|
11188
11137
|
function JsMainDispatcher(delegate, invokeImmediately) {
|
|
11189
11138
|
MainCoroutineDispatcher.call(this);
|
|
11190
|
-
this.
|
|
11191
|
-
this.
|
|
11192
|
-
this.
|
|
11139
|
+
this.q1f_1 = delegate;
|
|
11140
|
+
this.r1f_1 = invokeImmediately;
|
|
11141
|
+
this.s1f_1 = this.r1f_1 ? this : new JsMainDispatcher(this.q1f_1, true);
|
|
11193
11142
|
}
|
|
11194
11143
|
protoOf(JsMainDispatcher).us = function () {
|
|
11195
|
-
return this.
|
|
11144
|
+
return this.s1f_1;
|
|
11196
11145
|
};
|
|
11197
11146
|
protoOf(JsMainDispatcher).wp = function (context) {
|
|
11198
|
-
return !this.
|
|
11147
|
+
return !this.r1f_1;
|
|
11199
11148
|
};
|
|
11200
11149
|
protoOf(JsMainDispatcher).xp = function (context, block) {
|
|
11201
|
-
return this.
|
|
11150
|
+
return this.q1f_1.xp(context, block);
|
|
11202
11151
|
};
|
|
11203
11152
|
protoOf(JsMainDispatcher).yp = function (context, block) {
|
|
11204
|
-
return this.
|
|
11153
|
+
return this.q1f_1.yp(context, block);
|
|
11205
11154
|
};
|
|
11206
11155
|
protoOf(JsMainDispatcher).toString = function () {
|
|
11207
11156
|
var tmp0_elvis_lhs = this.vs();
|
|
11208
|
-
return tmp0_elvis_lhs == null ? this.
|
|
11157
|
+
return tmp0_elvis_lhs == null ? this.q1f_1.toString() : tmp0_elvis_lhs;
|
|
11209
11158
|
};
|
|
11210
11159
|
function createEventLoop() {
|
|
11211
11160
|
return new UnconfinedEventLoop();
|
|
@@ -11222,10 +11171,10 @@
|
|
|
11222
11171
|
function JobCancellationException(message, cause, job) {
|
|
11223
11172
|
CancellationException_init_$Init$(message, cause, this);
|
|
11224
11173
|
captureStack(this, JobCancellationException);
|
|
11225
|
-
this.
|
|
11174
|
+
this.x1f_1 = job;
|
|
11226
11175
|
}
|
|
11227
11176
|
protoOf(JobCancellationException).toString = function () {
|
|
11228
|
-
return protoOf(CancellationException).toString.call(this) + '; job=' + this.
|
|
11177
|
+
return protoOf(CancellationException).toString.call(this) + '; job=' + this.x1f_1;
|
|
11229
11178
|
};
|
|
11230
11179
|
protoOf(JobCancellationException).equals = function (other) {
|
|
11231
11180
|
var tmp;
|
|
@@ -11241,7 +11190,7 @@
|
|
|
11241
11190
|
tmp_2 = false;
|
|
11242
11191
|
}
|
|
11243
11192
|
if (tmp_2) {
|
|
11244
|
-
tmp_1 = equals(other.
|
|
11193
|
+
tmp_1 = equals(other.x1f_1, this.x1f_1);
|
|
11245
11194
|
} else {
|
|
11246
11195
|
tmp_1 = false;
|
|
11247
11196
|
}
|
|
@@ -11255,7 +11204,7 @@
|
|
|
11255
11204
|
return tmp;
|
|
11256
11205
|
};
|
|
11257
11206
|
protoOf(JobCancellationException).hashCode = function () {
|
|
11258
|
-
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.
|
|
11207
|
+
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.x1f_1) | 0, 31);
|
|
11259
11208
|
var tmp0_safe_receiver = this.cause;
|
|
11260
11209
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
11261
11210
|
return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
@@ -11279,24 +11228,24 @@
|
|
|
11279
11228
|
return count + 1 | 0;
|
|
11280
11229
|
}
|
|
11281
11230
|
function SafeCollector(collector, collectContext) {
|
|
11282
|
-
this.
|
|
11283
|
-
this.
|
|
11231
|
+
this.q19_1 = collector;
|
|
11232
|
+
this.r19_1 = collectContext;
|
|
11284
11233
|
var tmp = this;
|
|
11285
|
-
tmp.
|
|
11286
|
-
this.
|
|
11234
|
+
tmp.s19_1 = this.r19_1.sf(0, SafeCollector$collectContextSize$lambda);
|
|
11235
|
+
this.t19_1 = null;
|
|
11287
11236
|
}
|
|
11288
|
-
protoOf(SafeCollector).
|
|
11237
|
+
protoOf(SafeCollector).x10 = function (value, $completion) {
|
|
11289
11238
|
// Inline function 'kotlinx.coroutines.currentCoroutineContext' call
|
|
11290
11239
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
11291
11240
|
var currentContext = $completion.ac();
|
|
11292
11241
|
ensureActive(currentContext);
|
|
11293
|
-
if (!(this.
|
|
11242
|
+
if (!(this.t19_1 === currentContext)) {
|
|
11294
11243
|
checkContext(this, currentContext);
|
|
11295
|
-
this.
|
|
11244
|
+
this.t19_1 = currentContext;
|
|
11296
11245
|
}
|
|
11297
|
-
return this.
|
|
11246
|
+
return this.q19_1.x10(value, $completion);
|
|
11298
11247
|
};
|
|
11299
|
-
protoOf(SafeCollector).
|
|
11248
|
+
protoOf(SafeCollector).y1a = function () {
|
|
11300
11249
|
};
|
|
11301
11250
|
function identitySet(expectedSize) {
|
|
11302
11251
|
return HashSet_init_$Create$(expectedSize);
|
|
@@ -11326,8 +11275,8 @@
|
|
|
11326
11275
|
SetTimeoutDispatcher_instance = this;
|
|
11327
11276
|
SetTimeoutBasedDispatcher.call(this);
|
|
11328
11277
|
}
|
|
11329
|
-
protoOf(SetTimeoutDispatcher).
|
|
11330
|
-
this.
|
|
11278
|
+
protoOf(SetTimeoutDispatcher).n1e = function () {
|
|
11279
|
+
this.u1e_1.b1f(0);
|
|
11331
11280
|
};
|
|
11332
11281
|
var SetTimeoutDispatcher_instance;
|
|
11333
11282
|
function SetTimeoutDispatcher_getInstance() {
|
|
@@ -11337,94 +11286,94 @@
|
|
|
11337
11286
|
}
|
|
11338
11287
|
function SetTimeoutBasedDispatcher() {
|
|
11339
11288
|
CoroutineDispatcher.call(this);
|
|
11340
|
-
this.
|
|
11289
|
+
this.u1e_1 = new ScheduledMessageQueue(this);
|
|
11341
11290
|
}
|
|
11342
11291
|
protoOf(SetTimeoutBasedDispatcher).xp = function (context, block) {
|
|
11343
|
-
this.
|
|
11292
|
+
this.u1e_1.j1f(block);
|
|
11344
11293
|
};
|
|
11345
11294
|
function MessageQueue() {
|
|
11346
|
-
this.
|
|
11347
|
-
this.
|
|
11348
|
-
this.
|
|
11295
|
+
this.v1e_1 = ArrayDeque_init_$Create$();
|
|
11296
|
+
this.w1e_1 = 16;
|
|
11297
|
+
this.x1e_1 = false;
|
|
11349
11298
|
}
|
|
11350
11299
|
protoOf(MessageQueue).l = function () {
|
|
11351
|
-
return this.
|
|
11300
|
+
return this.v1e_1.rd_1;
|
|
11352
11301
|
};
|
|
11353
|
-
protoOf(MessageQueue).
|
|
11354
|
-
this.
|
|
11302
|
+
protoOf(MessageQueue).c1f = function (index, element) {
|
|
11303
|
+
this.v1e_1.p1(index, element);
|
|
11355
11304
|
};
|
|
11356
11305
|
protoOf(MessageQueue).p1 = function (index, element) {
|
|
11357
|
-
return this.
|
|
11306
|
+
return this.c1f(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
11358
11307
|
};
|
|
11359
|
-
protoOf(MessageQueue).
|
|
11360
|
-
return this.
|
|
11308
|
+
protoOf(MessageQueue).d1f = function (element) {
|
|
11309
|
+
return this.v1e_1.p(element);
|
|
11361
11310
|
};
|
|
11362
11311
|
protoOf(MessageQueue).p = function (element) {
|
|
11363
|
-
return this.
|
|
11312
|
+
return this.d1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
11364
11313
|
};
|
|
11365
|
-
protoOf(MessageQueue).
|
|
11366
|
-
return this.
|
|
11314
|
+
protoOf(MessageQueue).e1f = function (elements) {
|
|
11315
|
+
return this.v1e_1.q(elements);
|
|
11367
11316
|
};
|
|
11368
11317
|
protoOf(MessageQueue).q = function (elements) {
|
|
11369
|
-
return this.
|
|
11318
|
+
return this.e1f(elements);
|
|
11370
11319
|
};
|
|
11371
|
-
protoOf(MessageQueue).
|
|
11372
|
-
return this.
|
|
11320
|
+
protoOf(MessageQueue).f1f = function (element) {
|
|
11321
|
+
return this.v1e_1.v(element);
|
|
11373
11322
|
};
|
|
11374
11323
|
protoOf(MessageQueue).v = function (element) {
|
|
11375
11324
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
11376
11325
|
return false;
|
|
11377
|
-
return this.
|
|
11326
|
+
return this.f1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
11378
11327
|
};
|
|
11379
|
-
protoOf(MessageQueue).
|
|
11380
|
-
return this.
|
|
11328
|
+
protoOf(MessageQueue).g1f = function (elements) {
|
|
11329
|
+
return this.v1e_1.w(elements);
|
|
11381
11330
|
};
|
|
11382
11331
|
protoOf(MessageQueue).w = function (elements) {
|
|
11383
|
-
return this.
|
|
11332
|
+
return this.g1f(elements);
|
|
11384
11333
|
};
|
|
11385
11334
|
protoOf(MessageQueue).b1 = function (index) {
|
|
11386
|
-
return this.
|
|
11335
|
+
return this.v1e_1.b1(index);
|
|
11387
11336
|
};
|
|
11388
|
-
protoOf(MessageQueue).
|
|
11389
|
-
return this.
|
|
11337
|
+
protoOf(MessageQueue).h1f = function (element) {
|
|
11338
|
+
return this.v1e_1.t1(element);
|
|
11390
11339
|
};
|
|
11391
11340
|
protoOf(MessageQueue).t1 = function (element) {
|
|
11392
11341
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
11393
11342
|
return -1;
|
|
11394
|
-
return this.
|
|
11343
|
+
return this.h1f((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
11395
11344
|
};
|
|
11396
11345
|
protoOf(MessageQueue).x = function () {
|
|
11397
|
-
return this.
|
|
11346
|
+
return this.v1e_1.x();
|
|
11398
11347
|
};
|
|
11399
11348
|
protoOf(MessageQueue).s = function () {
|
|
11400
|
-
return this.
|
|
11349
|
+
return this.v1e_1.s();
|
|
11401
11350
|
};
|
|
11402
11351
|
protoOf(MessageQueue).u1 = function () {
|
|
11403
|
-
return this.
|
|
11352
|
+
return this.v1e_1.u1();
|
|
11404
11353
|
};
|
|
11405
11354
|
protoOf(MessageQueue).v1 = function (index) {
|
|
11406
|
-
return this.
|
|
11355
|
+
return this.v1e_1.v1(index);
|
|
11407
11356
|
};
|
|
11408
11357
|
protoOf(MessageQueue).e1 = function (index) {
|
|
11409
|
-
return this.
|
|
11358
|
+
return this.v1e_1.e1(index);
|
|
11410
11359
|
};
|
|
11411
|
-
protoOf(MessageQueue).
|
|
11412
|
-
return this.
|
|
11360
|
+
protoOf(MessageQueue).i1f = function (index, element) {
|
|
11361
|
+
return this.v1e_1.m(index, element);
|
|
11413
11362
|
};
|
|
11414
11363
|
protoOf(MessageQueue).m = function (index, element) {
|
|
11415
|
-
return this.
|
|
11364
|
+
return this.i1f(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
11416
11365
|
};
|
|
11417
|
-
protoOf(MessageQueue).
|
|
11418
|
-
this.
|
|
11419
|
-
if (!this.
|
|
11420
|
-
this.
|
|
11421
|
-
this.
|
|
11366
|
+
protoOf(MessageQueue).j1f = function (element) {
|
|
11367
|
+
this.d1f(element);
|
|
11368
|
+
if (!this.x1e_1) {
|
|
11369
|
+
this.x1e_1 = true;
|
|
11370
|
+
this.z1e();
|
|
11422
11371
|
}
|
|
11423
11372
|
};
|
|
11424
|
-
protoOf(MessageQueue).
|
|
11373
|
+
protoOf(MessageQueue).y1e = function () {
|
|
11425
11374
|
try {
|
|
11426
11375
|
// Inline function 'kotlin.repeat' call
|
|
11427
|
-
var times = this.
|
|
11376
|
+
var times = this.w1e_1;
|
|
11428
11377
|
// Inline function 'kotlin.contracts.contract' call
|
|
11429
11378
|
var inductionVariable = 0;
|
|
11430
11379
|
if (inductionVariable < times)
|
|
@@ -11445,19 +11394,19 @@
|
|
|
11445
11394
|
while (inductionVariable < times);
|
|
11446
11395
|
}finally {
|
|
11447
11396
|
if (this.x()) {
|
|
11448
|
-
this.
|
|
11397
|
+
this.x1e_1 = false;
|
|
11449
11398
|
} else {
|
|
11450
|
-
this.
|
|
11399
|
+
this.a1f();
|
|
11451
11400
|
}
|
|
11452
11401
|
}
|
|
11453
11402
|
};
|
|
11454
11403
|
function WindowDispatcher(window_0) {
|
|
11455
11404
|
CoroutineDispatcher.call(this);
|
|
11456
|
-
this.
|
|
11457
|
-
this.
|
|
11405
|
+
this.b1g_1 = window_0;
|
|
11406
|
+
this.c1g_1 = new WindowMessageQueue(this.b1g_1);
|
|
11458
11407
|
}
|
|
11459
11408
|
protoOf(WindowDispatcher).xp = function (context, block) {
|
|
11460
|
-
return this.
|
|
11409
|
+
return this.c1g_1.j1f(block);
|
|
11461
11410
|
};
|
|
11462
11411
|
function LinkedListHead() {
|
|
11463
11412
|
LinkedListNode.call(this);
|
|
@@ -11500,11 +11449,11 @@
|
|
|
11500
11449
|
return true;
|
|
11501
11450
|
};
|
|
11502
11451
|
function LocalAtomicInt(value) {
|
|
11503
|
-
this.
|
|
11452
|
+
this.j18_1 = value;
|
|
11504
11453
|
}
|
|
11505
|
-
protoOf(LocalAtomicInt).
|
|
11506
|
-
this.
|
|
11507
|
-
return this.
|
|
11454
|
+
protoOf(LocalAtomicInt).k18 = function () {
|
|
11455
|
+
this.j18_1 = this.j18_1 - 1 | 0;
|
|
11456
|
+
return this.j18_1;
|
|
11508
11457
|
};
|
|
11509
11458
|
function unwrap(exception) {
|
|
11510
11459
|
return exception;
|
|
@@ -11537,7 +11486,6 @@
|
|
|
11537
11486
|
return new CommonThreadLocal();
|
|
11538
11487
|
}
|
|
11539
11488
|
//region block: post-declaration
|
|
11540
|
-
protoOf(JobSupport).ck = invokeOnCompletion$default;
|
|
11541
11489
|
protoOf(JobSupport).gk = cancel$default;
|
|
11542
11490
|
protoOf(JobSupport).tf = plus;
|
|
11543
11491
|
protoOf(JobSupport).bc = get_0;
|
|
@@ -11545,10 +11493,10 @@
|
|
|
11545
11493
|
protoOf(JobSupport).rf = minusKey_0;
|
|
11546
11494
|
protoOf(CoroutineDispatcher).bc = get;
|
|
11547
11495
|
protoOf(CoroutineDispatcher).rf = minusKey;
|
|
11548
|
-
protoOf(BufferedChannel).
|
|
11549
|
-
protoOf(ChannelCoroutine).
|
|
11550
|
-
protoOf(SharedFlowImpl).
|
|
11551
|
-
protoOf(ChannelFlow).
|
|
11496
|
+
protoOf(BufferedChannel).dz = close$default;
|
|
11497
|
+
protoOf(ChannelCoroutine).dz = close$default;
|
|
11498
|
+
protoOf(SharedFlowImpl).l13 = fuse$default;
|
|
11499
|
+
protoOf(ChannelFlow).l13 = fuse$default;
|
|
11552
11500
|
//endregion
|
|
11553
11501
|
//region block: init
|
|
11554
11502
|
Active_instance = new Active();
|
|
@@ -11557,7 +11505,6 @@
|
|
|
11557
11505
|
Key_instance_2 = new Key_1();
|
|
11558
11506
|
NonDisposableHandle_instance = new NonDisposableHandle();
|
|
11559
11507
|
Key_instance_3 = new Key_2();
|
|
11560
|
-
SENDERS_COUNTER_MASK = new Long(-1, 268435455);
|
|
11561
11508
|
DEFAULT_CLOSE_MESSAGE = 'Channel was closed';
|
|
11562
11509
|
NopCollector_instance = new NopCollector();
|
|
11563
11510
|
MODE_CANCELLABLE = 1;
|