@jakta/jakta-prolog-incarnation 0.0.0-bootstrap

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/2p-core.js +9164 -0
  2. package/2p-core.js.map +1 -0
  3. package/2p-dsl-core.js +15 -0
  4. package/2p-dsl-core.js.map +1 -0
  5. package/2p-dsl-theory.js +15 -0
  6. package/2p-dsl-theory.js.map +1 -0
  7. package/2p-dsl-unify.js +15 -0
  8. package/2p-dsl-unify.js.map +1 -0
  9. package/2p-parser-core.js +15 -0
  10. package/2p-parser-core.js.map +1 -0
  11. package/2p-parser-impl.js +15 -0
  12. package/2p-parser-impl.js.map +1 -0
  13. package/2p-serialize-core.js +15 -0
  14. package/2p-serialize-core.js.map +1 -0
  15. package/2p-solve-classic.js +2832 -0
  16. package/2p-solve-classic.js.map +1 -0
  17. package/2p-solve.js +13916 -0
  18. package/2p-solve.js.map +1 -0
  19. package/2p-theory.js +4837 -0
  20. package/2p-theory.js.map +1 -0
  21. package/2p-unify.js +886 -0
  22. package/2p-unify.js.map +1 -0
  23. package/2p-utils.js +1361 -0
  24. package/2p-utils.js.map +1 -0
  25. package/Kermit-kermit-core.js +15 -0
  26. package/Kermit-kermit-core.js.map +1 -0
  27. package/Kermit-kermit.js +19 -0
  28. package/Kermit-kermit.js.map +1 -0
  29. package/LICENSE +201 -0
  30. package/README.md +50 -0
  31. package/jakta-jakta-api.js +15 -0
  32. package/jakta-jakta-api.js.map +1 -0
  33. package/jakta-jakta-core.js +15 -0
  34. package/jakta-jakta-core.js.map +1 -0
  35. package/jakta-jakta-dsl.js +15 -0
  36. package/jakta-jakta-dsl.js.map +1 -0
  37. package/jakta-jakta-prolog-incarnation.js +30 -0
  38. package/jakta-jakta-prolog-incarnation.js.map +1 -0
  39. package/kotlin-kotlin-stdlib.js +8814 -0
  40. package/kotlin-kotlin-stdlib.js.map +1 -0
  41. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  42. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  43. package/kotlinx-atomicfu.js +15 -0
  44. package/kotlinx-atomicfu.js.map +1 -0
  45. package/kotlinx-coroutines-core.js +15 -0
  46. package/kotlinx-coroutines-core.js.map +1 -0
  47. package/kt-math.js +10071 -0
  48. package/kt-math.js.map +1 -0
  49. package/package.json +9 -0
package/2p-utils.js ADDED
@@ -0,0 +1,1361 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-utils'.");
9
+ }
10
+ globalThis['2p-utils'] = factory(typeof globalThis['2p-utils'] === 'undefined' ? {} : globalThis['2p-utils'], globalThis['kotlin-kotlin-stdlib']);
11
+ }
12
+ }(function (_, kotlin_kotlin) {
13
+ 'use strict';
14
+ //region block: imports
15
+ var imul = Math.imul;
16
+ var protoOf = kotlin_kotlin.$_$.n6;
17
+ var initMetadataForCompanion = kotlin_kotlin.$_$.z5;
18
+ var Unit_instance = kotlin_kotlin.$_$.m;
19
+ var initMetadataForInterface = kotlin_kotlin.$_$.a6;
20
+ var THROW_CCE = kotlin_kotlin.$_$.ha;
21
+ var isInterface = kotlin_kotlin.$_$.f6;
22
+ var initMetadataForClass = kotlin_kotlin.$_$.y5;
23
+ var Sequence = kotlin_kotlin.$_$.h7;
24
+ var VOID = kotlin_kotlin.$_$.b;
25
+ var arrayIterator = kotlin_kotlin.$_$.j5;
26
+ var toList = kotlin_kotlin.$_$.q8;
27
+ var asSequence = kotlin_kotlin.$_$.z1;
28
+ var asIterable = kotlin_kotlin.$_$.v1;
29
+ var hashCode = kotlin_kotlin.$_$.x5;
30
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.b2;
31
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
32
+ var asIterable_0 = kotlin_kotlin.$_$.j7;
33
+ var sequence = kotlin_kotlin.$_$.k8;
34
+ var IntRange = kotlin_kotlin.$_$.z6;
35
+ var zip = kotlin_kotlin.$_$.u8;
36
+ var equals = kotlin_kotlin.$_$.t5;
37
+ var FunctionAdapter = kotlin_kotlin.$_$.i5;
38
+ var Comparator = kotlin_kotlin.$_$.w9;
39
+ var CoroutineImpl = kotlin_kotlin.$_$.j4;
40
+ var SequenceScope = kotlin_kotlin.$_$.g7;
41
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i4;
42
+ var initMetadataForLambda = kotlin_kotlin.$_$.b6;
43
+ var constructCallableReference = kotlin_kotlin.$_$.r5;
44
+ var withIndex = kotlin_kotlin.$_$.t8;
45
+ var ensureNotNull = kotlin_kotlin.$_$.la;
46
+ var map = kotlin_kotlin.$_$.d8;
47
+ var filterNot = kotlin_kotlin.$_$.r7;
48
+ var toMutableList = kotlin_kotlin.$_$.r8;
49
+ var minWithOrNull = kotlin_kotlin.$_$.e8;
50
+ var subtract = kotlin_kotlin.$_$.g5;
51
+ var convertToInt = kotlin_kotlin.$_$.t4;
52
+ var toString = kotlin_kotlin.$_$.ra;
53
+ var initMetadataForObject = kotlin_kotlin.$_$.c6;
54
+ var KtMap = kotlin_kotlin.$_$.q1;
55
+ var toString_0 = kotlin_kotlin.$_$.q6;
56
+ var lazy = kotlin_kotlin.$_$.na;
57
+ var KProperty1 = kotlin_kotlin.$_$.f7;
58
+ var getPropertyCallableRef = kotlin_kotlin.$_$.v5;
59
+ var getKClassFromExpression = kotlin_kotlin.$_$.d7;
60
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.h1;
61
+ var equalsLong = kotlin_kotlin.$_$.w4;
62
+ var first = kotlin_kotlin.$_$.n2;
63
+ var to = kotlin_kotlin.$_$.sa;
64
+ var Pair = kotlin_kotlin.$_$.fa;
65
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.b1;
66
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
67
+ var joinToString = kotlin_kotlin.$_$.z7;
68
+ var mutableListOf = kotlin_kotlin.$_$.i3;
69
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
70
+ var addAll = kotlin_kotlin.$_$.s1;
71
+ //endregion
72
+ //region block: pre-declaration
73
+ initMetadataForCompanion(Companion);
74
+ function getOrSet(key, valueGenerator) {
75
+ var got = this.f2(key);
76
+ var tmp;
77
+ if (got instanceof Some) {
78
+ tmp = got.ho_1;
79
+ } else {
80
+ // Inline function 'kotlin.also' call
81
+ var this_0 = valueGenerator();
82
+ this.fo(key, this_0);
83
+ tmp = this_0;
84
+ }
85
+ return tmp;
86
+ }
87
+ initMetadataForInterface(Cache, 'Cache');
88
+ initMetadataForCompanion(Companion_0);
89
+ function ifValid(consumer) {
90
+ var tmp;
91
+ if (this.jo()) {
92
+ var tmp_0 = Companion_instance_4;
93
+ // Inline function 'kotlin.let' call
94
+ var tmp$ret$0 = consumer(this.c2());
95
+ tmp = tmp_0.no(tmp$ret$0);
96
+ } else {
97
+ tmp = Companion_instance_4.mo();
98
+ }
99
+ return tmp;
100
+ }
101
+ initMetadataForInterface(Cached, 'Cached');
102
+ function castTo() {
103
+ return isInterface(this, Castable) ? this : THROW_CCE();
104
+ }
105
+ initMetadataForInterface(Castable, 'Castable');
106
+ initMetadataForCompanion(Companion_1);
107
+ initMetadataForClass(Cursor$asIterable$$inlined$Iterable$1);
108
+ initMetadataForClass(Cursor$asSequence$$inlined$Sequence$1, VOID, VOID, VOID, [Sequence]);
109
+ function asIterable_1() {
110
+ // Inline function 'kotlin.collections.Iterable' call
111
+ return new Cursor$asIterable$$inlined$Iterable$1(this);
112
+ }
113
+ function asSequence_0() {
114
+ // Inline function 'kotlin.sequences.Sequence' call
115
+ return new Cursor$asSequence$$inlined$Sequence$1(this);
116
+ }
117
+ initMetadataForInterface(Cursor, 'Cursor');
118
+ function component1() {
119
+ return this.wo();
120
+ }
121
+ function component2() {
122
+ return this.c2();
123
+ }
124
+ initMetadataForInterface(Indexed, 'Indexed');
125
+ initMetadataForCompanion(Companion_2);
126
+ function compareTo(other) {
127
+ return this.wo() - other.wo() | 0;
128
+ }
129
+ initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed]);
130
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
131
+ initMetadataForLambda(dropLast$slambda, CoroutineImpl, VOID, [1]);
132
+ initMetadataForLambda(insertAt$slambda, CoroutineImpl, VOID, [1]);
133
+ initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
134
+ initMetadataForLambda(merge$slambda, CoroutineImpl, VOID, [1]);
135
+ initMetadataForCompanion(Companion_3);
136
+ function compareTo_0(other) {
137
+ return convertToInt(subtract(this.wo(), other.wo()));
138
+ }
139
+ initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed]);
140
+ initMetadataForCompanion(Companion_4);
141
+ initMetadataForClass(Optional, 'Optional');
142
+ initMetadataForClass(Some, 'Some', VOID, Optional);
143
+ initMetadataForObject(None, 'None', VOID, Optional);
144
+ function getTag(name) {
145
+ return this.vq().f2(name);
146
+ }
147
+ function containsTag(name) {
148
+ // Inline function 'kotlin.collections.contains' call
149
+ // Inline function 'kotlin.collections.containsKey' call
150
+ var this_0 = this.vq();
151
+ return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).d2(name);
152
+ }
153
+ initMetadataForInterface(Taggable, 'Taggable');
154
+ initMetadataForCompanion(Companion_5);
155
+ initMetadataForClass(AbstractCursor$iterator$1);
156
+ initMetadataForClass(AbstractCursor, 'AbstractCursor', VOID, VOID, [Cursor]);
157
+ initMetadataForClass(CachedImpl, 'CachedImpl', VOID, VOID, [Cached]);
158
+ initMetadataForClass(ConjunctionCursor, 'ConjunctionCursor', VOID, AbstractCursor);
159
+ initMetadataForObject(EmptyCursor, 'EmptyCursor', VOID, AbstractCursor);
160
+ initMetadataForClass(IntIndexedImpl, 'IntIndexedImpl', VOID, VOID, [IntIndexed]);
161
+ initMetadataForClass(LazyCursor, 'LazyCursor', VOID, AbstractCursor);
162
+ initMetadataForClass(LongIndexedImpl, 'LongIndexedImpl', VOID, VOID, [LongIndexed]);
163
+ initMetadataForClass(MapperCursor, 'MapperCursor', VOID, AbstractCursor);
164
+ initMetadataForClass(NonLastCursor, 'NonLastCursor', VOID, AbstractCursor);
165
+ initMetadataForClass(SimpleLRUCache, 'SimpleLRUCache', VOID, VOID, [Cache]);
166
+ initMetadataForClass(ValueCursor, 'ValueCursor', VOID, AbstractCursor);
167
+ //endregion
168
+ function Companion() {
169
+ }
170
+ protoOf(Companion).eo = function (capacity) {
171
+ return new SimpleLRUCache(capacity);
172
+ };
173
+ var Companion_instance;
174
+ function Companion_getInstance() {
175
+ return Companion_instance;
176
+ }
177
+ function Cache() {
178
+ }
179
+ function Companion_0() {
180
+ }
181
+ protoOf(Companion_0).io = function (generator) {
182
+ return new CachedImpl(generator);
183
+ };
184
+ var Companion_instance_0;
185
+ function Companion_getInstance_0() {
186
+ return Companion_instance_0;
187
+ }
188
+ function Cached() {
189
+ }
190
+ function Castable() {
191
+ }
192
+ function Companion_1() {
193
+ }
194
+ protoOf(Companion_1).of = function (iterator) {
195
+ return toCursor(iterator);
196
+ };
197
+ protoOf(Companion_1).ofSequence = function (sequence) {
198
+ return cursor(sequence);
199
+ };
200
+ protoOf(Companion_1).empty = function () {
201
+ return EmptyCursor_getInstance();
202
+ };
203
+ var Companion_instance_1;
204
+ function Companion_getInstance_1() {
205
+ return Companion_instance_1;
206
+ }
207
+ function Cursor$asIterable$$inlined$Iterable$1(this$0) {
208
+ this.po_1 = this$0;
209
+ }
210
+ protoOf(Cursor$asIterable$$inlined$Iterable$1).m = function () {
211
+ return this.po_1.iterator();
212
+ };
213
+ function Cursor$asSequence$$inlined$Sequence$1(this$0) {
214
+ this.qo_1 = this$0;
215
+ }
216
+ protoOf(Cursor$asSequence$$inlined$Sequence$1).m = function () {
217
+ return this.qo_1.iterator();
218
+ };
219
+ function Cursor() {
220
+ }
221
+ function cursor(_this__u8e3s4) {
222
+ return toCursor(_this__u8e3s4.m());
223
+ }
224
+ function plus(_this__u8e3s4, other) {
225
+ return other.to() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.to() ? _this__u8e3s4 : EmptyCursor_getInstance();
226
+ }
227
+ function cursor_0(_this__u8e3s4) {
228
+ return toCursor(_this__u8e3s4.m());
229
+ }
230
+ function cursor_1(_this__u8e3s4) {
231
+ return toCursor(arrayIterator(_this__u8e3s4));
232
+ }
233
+ function toCursor(_this__u8e3s4) {
234
+ return Companion_instance_5.vo(_this__u8e3s4);
235
+ }
236
+ function Indexed() {
237
+ }
238
+ function Companion_2() {
239
+ }
240
+ protoOf(Companion_2).xo = function (index, value) {
241
+ return new IntIndexedImpl(index, value);
242
+ };
243
+ var Companion_instance_2;
244
+ function Companion_getInstance_2() {
245
+ return Companion_instance_2;
246
+ }
247
+ function IntIndexed() {
248
+ }
249
+ function cached(_this__u8e3s4) {
250
+ return cursor(_this__u8e3s4).asSequence();
251
+ }
252
+ function buffered(_this__u8e3s4) {
253
+ return asSequence(toList(_this__u8e3s4));
254
+ }
255
+ function itemWiseHashCode(items) {
256
+ return itemWiseHashCode_0(asIterable(items));
257
+ }
258
+ function itemWiseHashCode_0(iterable) {
259
+ var hash = 13;
260
+ var i = iterable.m();
261
+ while (i.p()) {
262
+ var tmp = imul(31, hash);
263
+ var tmp0_safe_receiver = i.q();
264
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
265
+ hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
266
+ }
267
+ return hash;
268
+ }
269
+ function itemWiseEquals(iterable1, iterable2) {
270
+ return itemWiseEquals_1(iterable1, iterable2, itemWiseEquals$lambda);
271
+ }
272
+ function mergeSequences(iterables, comparator) {
273
+ var tmp = new sam$kotlin_Comparator$0(comparator);
274
+ // Inline function 'kotlin.collections.map' call
275
+ // Inline function 'kotlin.collections.mapTo' call
276
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
277
+ var _iterator__ex2g4s = iterables.m();
278
+ while (_iterator__ex2g4s.p()) {
279
+ var item = _iterator__ex2g4s.q();
280
+ var tmp$ret$2 = asIterable_0(item);
281
+ destination.j(tmp$ret$2);
282
+ }
283
+ return merge(tmp, destination);
284
+ }
285
+ function dropLast(_this__u8e3s4) {
286
+ return sequence(dropLast$slambda_0(_this__u8e3s4, null));
287
+ }
288
+ function itemWiseHashCode_1(sequence) {
289
+ return itemWiseHashCode_0(asIterable_0(sequence));
290
+ }
291
+ function itemWiseEquals_0(sequence1, sequence2, comparator) {
292
+ return itemWiseEquals_1(asIterable_0(sequence1), asIterable_0(sequence2), comparator);
293
+ }
294
+ function insertAt(_this__u8e3s4, index, item, items) {
295
+ return sequence(insertAt$slambda_0(_this__u8e3s4, index, item, items, null));
296
+ }
297
+ function itemWiseEquals_1(iterable1, iterable2, comparator) {
298
+ var i = iterable1.m();
299
+ var j = iterable2.m();
300
+ while (i.p() && j.p()) {
301
+ var a = i.q();
302
+ var b = j.q();
303
+ if (!comparator(a, b)) {
304
+ return false;
305
+ }
306
+ }
307
+ return i.p() === j.p();
308
+ }
309
+ function merge(comparator, iterables) {
310
+ return sequence(merge$slambda_0(iterables, comparator, null));
311
+ }
312
+ function indexed(_this__u8e3s4) {
313
+ var tmp = asSequence(new IntRange(0, 2147483647));
314
+ return zip(_this__u8e3s4, tmp, indexed$lambda);
315
+ }
316
+ function sam$kotlin_Comparator$0(function_0) {
317
+ this.zo_1 = function_0;
318
+ }
319
+ protoOf(sam$kotlin_Comparator$0).db = function (a, b) {
320
+ return this.zo_1(a, b);
321
+ };
322
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
323
+ return this.db(a, b);
324
+ };
325
+ protoOf(sam$kotlin_Comparator$0).u2 = function () {
326
+ return this.zo_1;
327
+ };
328
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
329
+ var tmp;
330
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
331
+ var tmp_0;
332
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
333
+ tmp_0 = equals(this.u2(), other.u2());
334
+ } else {
335
+ tmp_0 = false;
336
+ }
337
+ tmp = tmp_0;
338
+ } else {
339
+ tmp = false;
340
+ }
341
+ return tmp;
342
+ };
343
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
344
+ return hashCode(this.u2());
345
+ };
346
+ function itemWiseEquals$lambda(a, b) {
347
+ return equals(a, b);
348
+ }
349
+ function dropLast$slambda($this_dropLast, resultContinuation) {
350
+ this.ip_1 = $this_dropLast;
351
+ CoroutineImpl.call(this, resultContinuation);
352
+ }
353
+ protoOf(dropLast$slambda).lp = function ($this$sequence, $completion) {
354
+ var tmp = this.mp($this$sequence, $completion);
355
+ tmp.i8_1 = Unit_instance;
356
+ tmp.j8_1 = null;
357
+ return tmp.o8();
358
+ };
359
+ protoOf(dropLast$slambda).f9 = function (p1, $completion) {
360
+ return this.lp(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
361
+ };
362
+ protoOf(dropLast$slambda).o8 = function () {
363
+ var suspendResult = this.i8_1;
364
+ $sm: do
365
+ try {
366
+ var tmp = this.g8_1;
367
+ switch (tmp) {
368
+ case 0:
369
+ this.h8_1 = 5;
370
+ this.kp_1 = this.ip_1.m();
371
+ this.g8_1 = 1;
372
+ continue $sm;
373
+ case 1:
374
+ if (!this.kp_1.p()) {
375
+ this.g8_1 = 4;
376
+ continue $sm;
377
+ }
378
+
379
+ var current = this.kp_1.q();
380
+ if (this.kp_1.p()) {
381
+ this.g8_1 = 2;
382
+ suspendResult = this.jp_1.nc(current, this);
383
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
384
+ return suspendResult;
385
+ }
386
+ continue $sm;
387
+ } else {
388
+ this.g8_1 = 3;
389
+ continue $sm;
390
+ }
391
+
392
+ case 2:
393
+ this.g8_1 = 3;
394
+ continue $sm;
395
+ case 3:
396
+ this.g8_1 = 1;
397
+ continue $sm;
398
+ case 4:
399
+ return Unit_instance;
400
+ case 5:
401
+ throw this.j8_1;
402
+ }
403
+ } catch ($p) {
404
+ var e = $p;
405
+ if (this.h8_1 === 5) {
406
+ throw e;
407
+ } else {
408
+ this.g8_1 = this.h8_1;
409
+ this.j8_1 = e;
410
+ }
411
+ }
412
+ while (true);
413
+ };
414
+ protoOf(dropLast$slambda).mp = function ($this$sequence, completion) {
415
+ var i = new dropLast$slambda(this.ip_1, completion);
416
+ i.jp_1 = $this$sequence;
417
+ return i;
418
+ };
419
+ function dropLast$slambda_0($this_dropLast, resultContinuation) {
420
+ var i = new dropLast$slambda($this_dropLast, resultContinuation);
421
+ return constructCallableReference(function ($this$sequence, $completion) {
422
+ return i.lp($this$sequence, $completion);
423
+ }, 1);
424
+ }
425
+ function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
426
+ this.vp_1 = $this_insertAt;
427
+ this.wp_1 = $index;
428
+ this.xp_1 = $item;
429
+ this.yp_1 = $items;
430
+ CoroutineImpl.call(this, resultContinuation);
431
+ }
432
+ protoOf(insertAt$slambda).lp = function ($this$sequence, $completion) {
433
+ var tmp = this.mp($this$sequence, $completion);
434
+ tmp.i8_1 = Unit_instance;
435
+ tmp.j8_1 = null;
436
+ return tmp.o8();
437
+ };
438
+ protoOf(insertAt$slambda).f9 = function (p1, $completion) {
439
+ return this.lp(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
440
+ };
441
+ protoOf(insertAt$slambda).o8 = function () {
442
+ var suspendResult = this.i8_1;
443
+ $sm: do
444
+ try {
445
+ var tmp = this.g8_1;
446
+ switch (tmp) {
447
+ case 0:
448
+ this.h8_1 = 7;
449
+ this.bq_1 = asIterable_0(withIndex(this.vp_1)).m();
450
+ this.g8_1 = 1;
451
+ continue $sm;
452
+ case 1:
453
+ if (!this.bq_1.p()) {
454
+ this.g8_1 = 6;
455
+ continue $sm;
456
+ }
457
+
458
+ var _destruct__k2r9zo = this.bq_1.q();
459
+ var i = _destruct__k2r9zo.ac();
460
+ this.aq_1 = _destruct__k2r9zo.bc();
461
+ if (i === this.wp_1) {
462
+ this.g8_1 = 2;
463
+ suspendResult = this.zp_1.nc(this.xp_1, this);
464
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
465
+ return suspendResult;
466
+ }
467
+ continue $sm;
468
+ } else {
469
+ this.g8_1 = 4;
470
+ continue $sm;
471
+ }
472
+
473
+ case 2:
474
+ this.g8_1 = 3;
475
+ suspendResult = this.zp_1.pc(asIterable(this.yp_1), this);
476
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
477
+ return suspendResult;
478
+ }
479
+
480
+ continue $sm;
481
+ case 3:
482
+ this.g8_1 = 4;
483
+ continue $sm;
484
+ case 4:
485
+ this.g8_1 = 5;
486
+ suspendResult = this.zp_1.nc(this.aq_1, this);
487
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
488
+ return suspendResult;
489
+ }
490
+
491
+ continue $sm;
492
+ case 5:
493
+ this.g8_1 = 1;
494
+ continue $sm;
495
+ case 6:
496
+ return Unit_instance;
497
+ case 7:
498
+ throw this.j8_1;
499
+ }
500
+ } catch ($p) {
501
+ var e = $p;
502
+ if (this.h8_1 === 7) {
503
+ throw e;
504
+ } else {
505
+ this.g8_1 = this.h8_1;
506
+ this.j8_1 = e;
507
+ }
508
+ }
509
+ while (true);
510
+ };
511
+ protoOf(insertAt$slambda).mp = function ($this$sequence, completion) {
512
+ var i = new insertAt$slambda(this.vp_1, this.wp_1, this.xp_1, this.yp_1, completion);
513
+ i.zp_1 = $this$sequence;
514
+ return i;
515
+ };
516
+ function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
517
+ var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
518
+ return constructCallableReference(function ($this$sequence, $completion) {
519
+ return i.lp($this$sequence, $completion);
520
+ }, 1);
521
+ }
522
+ function sam$kotlin_Comparator$0_0(function_0) {
523
+ this.cq_1 = function_0;
524
+ }
525
+ protoOf(sam$kotlin_Comparator$0_0).db = function (a, b) {
526
+ return this.cq_1(a, b);
527
+ };
528
+ protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
529
+ return this.db(a, b);
530
+ };
531
+ protoOf(sam$kotlin_Comparator$0_0).u2 = function () {
532
+ return this.cq_1;
533
+ };
534
+ protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
535
+ var tmp;
536
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
537
+ var tmp_0;
538
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
539
+ tmp_0 = equals(this.u2(), other.u2());
540
+ } else {
541
+ tmp_0 = false;
542
+ }
543
+ tmp = tmp_0;
544
+ } else {
545
+ tmp = false;
546
+ }
547
+ return tmp;
548
+ };
549
+ protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
550
+ return hashCode(this.u2());
551
+ };
552
+ function merge$slambda$lambda(it) {
553
+ return cursor_0(it);
554
+ }
555
+ function merge$slambda$lambda_0(it) {
556
+ return it.uo();
557
+ }
558
+ function merge$slambda$lambda_1(it) {
559
+ return ensureNotNull(it.so());
560
+ }
561
+ function merge$slambda$lambda_2($comparator) {
562
+ return function (a, b) {
563
+ return $comparator.compare(a.c2(), b.c2());
564
+ };
565
+ }
566
+ function merge$slambda($iterables, $comparator, resultContinuation) {
567
+ this.lq_1 = $iterables;
568
+ this.mq_1 = $comparator;
569
+ CoroutineImpl.call(this, resultContinuation);
570
+ }
571
+ protoOf(merge$slambda).lp = function ($this$sequence, $completion) {
572
+ var tmp = this.mp($this$sequence, $completion);
573
+ tmp.i8_1 = Unit_instance;
574
+ tmp.j8_1 = null;
575
+ return tmp.o8();
576
+ };
577
+ protoOf(merge$slambda).f9 = function (p1, $completion) {
578
+ return this.lp(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
579
+ };
580
+ protoOf(merge$slambda).o8 = function () {
581
+ var suspendResult = this.i8_1;
582
+ $sm: do
583
+ try {
584
+ var tmp = this.g8_1;
585
+ switch (tmp) {
586
+ case 0:
587
+ this.h8_1 = 3;
588
+ var tmp_0 = this;
589
+ var tmp_1 = asSequence(this.lq_1);
590
+ var tmp_2 = map(tmp_1, merge$slambda$lambda);
591
+ tmp_0.pq_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
592
+ this.g8_1 = 1;
593
+ continue $sm;
594
+ case 1:
595
+ if (!!this.pq_1.g()) {
596
+ this.g8_1 = 4;
597
+ continue $sm;
598
+ }
599
+
600
+ var tmp_3 = asSequence(this.pq_1);
601
+ var tmp_4 = indexed(map(tmp_3, merge$slambda$lambda_1));
602
+ var tmp_5 = merge$slambda$lambda_2(this.mq_1);
603
+ var _destruct__k2r9zo = ensureNotNull(minWithOrNull(tmp_4, new sam$kotlin_Comparator$0_0(tmp_5)));
604
+ this.oq_1 = _destruct__k2r9zo.ac();
605
+ var minValue = _destruct__k2r9zo.bc();
606
+ this.g8_1 = 2;
607
+ suspendResult = this.nq_1.nc(minValue, this);
608
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
609
+ return suspendResult;
610
+ }
611
+
612
+ continue $sm;
613
+ case 2:
614
+ var it = this.pq_1.t(this.oq_1).ro();
615
+ var tmp_6;
616
+ if (it.uo()) {
617
+ tmp_6 = this.pq_1.l3(this.oq_1);
618
+ } else {
619
+ this.pq_1.d4(this.oq_1, it);
620
+ tmp_6 = Unit_instance;
621
+ }
622
+
623
+ this.g8_1 = 1;
624
+ continue $sm;
625
+ case 3:
626
+ throw this.j8_1;
627
+ case 4:
628
+ return Unit_instance;
629
+ }
630
+ } catch ($p) {
631
+ var e = $p;
632
+ if (this.h8_1 === 3) {
633
+ throw e;
634
+ } else {
635
+ this.g8_1 = this.h8_1;
636
+ this.j8_1 = e;
637
+ }
638
+ }
639
+ while (true);
640
+ };
641
+ protoOf(merge$slambda).mp = function ($this$sequence, completion) {
642
+ var i = new merge$slambda(this.lq_1, this.mq_1, completion);
643
+ i.nq_1 = $this$sequence;
644
+ return i;
645
+ };
646
+ function merge$slambda_0($iterables, $comparator, resultContinuation) {
647
+ var i = new merge$slambda($iterables, $comparator, resultContinuation);
648
+ return constructCallableReference(function ($this$sequence, $completion) {
649
+ return i.lp($this$sequence, $completion);
650
+ }, 1);
651
+ }
652
+ function indexed$lambda(it, i) {
653
+ return Companion_instance_2.xo(i, it);
654
+ }
655
+ function Companion_3() {
656
+ }
657
+ protoOf(Companion_3).qq = function (index, value) {
658
+ return new LongIndexedImpl(index, value);
659
+ };
660
+ var Companion_instance_3;
661
+ function Companion_getInstance_3() {
662
+ return Companion_instance_3;
663
+ }
664
+ function LongIndexed() {
665
+ }
666
+ function Companion_4() {
667
+ }
668
+ protoOf(Companion_4).sq = function (value) {
669
+ return new Some(value);
670
+ };
671
+ protoOf(Companion_4).no = function (value) {
672
+ var tmp;
673
+ if (value == null) {
674
+ tmp = this.mo();
675
+ } else {
676
+ tmp = this.sq(value);
677
+ }
678
+ return tmp;
679
+ };
680
+ protoOf(Companion_4).mo = function () {
681
+ return None_getInstance();
682
+ };
683
+ var Companion_instance_4;
684
+ function Companion_getInstance_4() {
685
+ return Companion_instance_4;
686
+ }
687
+ function Some(value) {
688
+ Optional.call(this);
689
+ this.ho_1 = value;
690
+ }
691
+ protoOf(Some).c2 = function () {
692
+ return this.ho_1;
693
+ };
694
+ protoOf(Some).tq = function () {
695
+ return true;
696
+ };
697
+ protoOf(Some).toString = function () {
698
+ return 'Some(' + toString(this.ho_1) + ')';
699
+ };
700
+ protoOf(Some).hashCode = function () {
701
+ return this.ho_1 == null ? 0 : hashCode(this.ho_1);
702
+ };
703
+ protoOf(Some).equals = function (other) {
704
+ if (this === other)
705
+ return true;
706
+ if (!(other instanceof Some))
707
+ return false;
708
+ if (!equals(this.ho_1, other.ho_1))
709
+ return false;
710
+ return true;
711
+ };
712
+ function None() {
713
+ None_instance = this;
714
+ Optional.call(this);
715
+ }
716
+ protoOf(None).c2 = function () {
717
+ return null;
718
+ };
719
+ protoOf(None).tq = function () {
720
+ return false;
721
+ };
722
+ protoOf(None).toString = function () {
723
+ return 'None';
724
+ };
725
+ var None_instance;
726
+ function None_getInstance() {
727
+ if (None_instance == null)
728
+ new None();
729
+ return None_instance;
730
+ }
731
+ function Optional() {
732
+ }
733
+ protoOf(Optional).uq = function () {
734
+ return !this.tq();
735
+ };
736
+ function Taggable() {
737
+ }
738
+ function setTags(_this__u8e3s4, tags) {
739
+ var tmp = _this__u8e3s4.resetTags(tags);
740
+ return isInterface(tmp, Taggable) ? tmp : THROW_CCE();
741
+ }
742
+ function synchronizedOnSelf(_this__u8e3s4, action) {
743
+ return synchronizedOn(_this__u8e3s4, action);
744
+ }
745
+ function Companion_5() {
746
+ }
747
+ protoOf(Companion_5).vo = function (source) {
748
+ var tmp;
749
+ if (source.p()) {
750
+ tmp = new LazyCursor(source);
751
+ } else {
752
+ tmp = EmptyCursor_getInstance();
753
+ }
754
+ return tmp;
755
+ };
756
+ var Companion_instance_5;
757
+ function Companion_getInstance_5() {
758
+ return Companion_instance_5;
759
+ }
760
+ function AbstractCursor$iterator$1(this$0) {
761
+ this.wq_1 = this$0;
762
+ }
763
+ protoOf(AbstractCursor$iterator$1).p = function () {
764
+ return !this.wq_1.uo();
765
+ };
766
+ protoOf(AbstractCursor$iterator$1).q = function () {
767
+ var result = this.wq_1.so();
768
+ this.wq_1 = this.wq_1.ro();
769
+ return ensureNotNull(result);
770
+ };
771
+ function AbstractCursor() {
772
+ }
773
+ protoOf(AbstractCursor).toString = function () {
774
+ return this.uo() ? '[]' : !this.to() ? '[' + toString(this.so()) + ']' : '[' + toString(this.so()) + ', ...]';
775
+ };
776
+ protoOf(AbstractCursor).m = function () {
777
+ return new AbstractCursor$iterator$1(this);
778
+ };
779
+ protoOf(AbstractCursor).iterator = function () {
780
+ return this.m();
781
+ };
782
+ protoOf(AbstractCursor).xq = function () {
783
+ return false;
784
+ };
785
+ protoOf(AbstractCursor).yq = function (mapper) {
786
+ return new MapperCursor(this, mapper);
787
+ };
788
+ protoOf(AbstractCursor).map = function (mapper) {
789
+ return this.yq(mapper);
790
+ };
791
+ function CachedImpl(generator) {
792
+ this.zq_1 = generator;
793
+ this.ar_1 = Companion_instance_4.mo();
794
+ }
795
+ protoOf(CachedImpl).jo = function () {
796
+ return this.ar_1.tq();
797
+ };
798
+ protoOf(CachedImpl).br = function () {
799
+ return this.ar_1.uq();
800
+ };
801
+ protoOf(CachedImpl).c2 = function () {
802
+ this.cr();
803
+ return ensureNotNull(this.ar_1.c2());
804
+ };
805
+ protoOf(CachedImpl).cr = function () {
806
+ if (this.br()) {
807
+ this.ar_1 = Companion_instance_4.sq(this.zq_1());
808
+ }
809
+ };
810
+ protoOf(CachedImpl).ko = function () {
811
+ this.ar_1 = Companion_instance_4.mo();
812
+ };
813
+ protoOf(CachedImpl).toString = function () {
814
+ return 'CachedImpl(generator=' + toString_0(this.zq_1) + ')';
815
+ };
816
+ protoOf(CachedImpl).hashCode = function () {
817
+ return hashCode(this.zq_1);
818
+ };
819
+ protoOf(CachedImpl).equals = function (other) {
820
+ if (this === other)
821
+ return true;
822
+ if (!(other instanceof CachedImpl))
823
+ return false;
824
+ if (!equals(this.zq_1, other.zq_1))
825
+ return false;
826
+ return true;
827
+ };
828
+ function ConjunctionCursor$next$delegate$lambda(this$0) {
829
+ return function () {
830
+ return this$0.dr_1.to() ? new ConjunctionCursor(this$0.dr_1.ro(), this$0.er_1) : this$0.er_1.xq() ? this$0.er_1.ro() : this$0.er_1;
831
+ };
832
+ }
833
+ function ConjunctionCursor$_get_next_$ref_xfvrtr() {
834
+ return constructCallableReference(function (p0) {
835
+ return p0.ro();
836
+ }, 1, 0, 1);
837
+ }
838
+ function ConjunctionCursor(first, second) {
839
+ AbstractCursor.call(this);
840
+ this.dr_1 = first;
841
+ this.er_1 = second;
842
+ var tmp = this;
843
+ tmp.fr_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
844
+ }
845
+ protoOf(ConjunctionCursor).uo = function () {
846
+ return this.dr_1.uo() && this.er_1.uo();
847
+ };
848
+ protoOf(ConjunctionCursor).ro = function () {
849
+ var tmp0 = this.fr_1;
850
+ var tmp = KProperty1;
851
+ // Inline function 'kotlin.getValue' call
852
+ getPropertyCallableRef('next', 1, tmp, ConjunctionCursor$_get_next_$ref_xfvrtr(), null);
853
+ return tmp0.c2();
854
+ };
855
+ protoOf(ConjunctionCursor).so = function () {
856
+ return this.dr_1.to() ? this.dr_1.so() : this.er_1.so();
857
+ };
858
+ protoOf(ConjunctionCursor).to = function () {
859
+ return this.dr_1.to() || this.er_1.to();
860
+ };
861
+ protoOf(ConjunctionCursor).equals = function (other) {
862
+ if (this === other)
863
+ return true;
864
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
865
+ return false;
866
+ if (!(other instanceof ConjunctionCursor))
867
+ THROW_CCE();
868
+ if (!equals(this.dr_1, other.dr_1))
869
+ return false;
870
+ if (!equals(this.er_1, other.er_1))
871
+ return false;
872
+ return true;
873
+ };
874
+ protoOf(ConjunctionCursor).hashCode = function () {
875
+ var result = hashCode(this.dr_1);
876
+ result = imul(31, result) + hashCode(this.er_1) | 0;
877
+ return result;
878
+ };
879
+ function EmptyCursor() {
880
+ EmptyCursor_instance = this;
881
+ AbstractCursor.call(this);
882
+ }
883
+ protoOf(EmptyCursor).ro = function () {
884
+ throw NoSuchElementException_init_$Create$();
885
+ };
886
+ protoOf(EmptyCursor).so = function () {
887
+ return null;
888
+ };
889
+ protoOf(EmptyCursor).to = function () {
890
+ return false;
891
+ };
892
+ protoOf(EmptyCursor).uo = function () {
893
+ return true;
894
+ };
895
+ protoOf(EmptyCursor).toString = function () {
896
+ return protoOf(AbstractCursor).toString.call(this);
897
+ };
898
+ protoOf(EmptyCursor).gr = function (mapper) {
899
+ return this;
900
+ };
901
+ protoOf(EmptyCursor).map = function (mapper) {
902
+ return this.gr(mapper);
903
+ };
904
+ protoOf(EmptyCursor).yq = function (mapper) {
905
+ return this.gr(mapper);
906
+ };
907
+ var EmptyCursor_instance;
908
+ function EmptyCursor_getInstance() {
909
+ if (EmptyCursor_instance == null)
910
+ new EmptyCursor();
911
+ return EmptyCursor_instance;
912
+ }
913
+ function IntIndexedImpl(index, value) {
914
+ this.hr_1 = index;
915
+ this.ir_1 = value;
916
+ }
917
+ protoOf(IntIndexedImpl).wo = function () {
918
+ return this.hr_1;
919
+ };
920
+ protoOf(IntIndexedImpl).c2 = function () {
921
+ return this.ir_1;
922
+ };
923
+ protoOf(IntIndexedImpl).ac = function () {
924
+ return this.hr_1;
925
+ };
926
+ protoOf(IntIndexedImpl).bc = function () {
927
+ return this.ir_1;
928
+ };
929
+ protoOf(IntIndexedImpl).toString = function () {
930
+ return 'IntIndexedImpl(index=' + this.hr_1 + ', value=' + toString(this.ir_1) + ')';
931
+ };
932
+ protoOf(IntIndexedImpl).hashCode = function () {
933
+ var result = this.hr_1;
934
+ result = imul(result, 31) + (this.ir_1 == null ? 0 : hashCode(this.ir_1)) | 0;
935
+ return result;
936
+ };
937
+ protoOf(IntIndexedImpl).equals = function (other) {
938
+ if (this === other)
939
+ return true;
940
+ if (!(other instanceof IntIndexedImpl))
941
+ return false;
942
+ if (!(this.hr_1 === other.hr_1))
943
+ return false;
944
+ if (!equals(this.ir_1, other.ir_1))
945
+ return false;
946
+ return true;
947
+ };
948
+ protoOf(IntIndexedImpl).y1 = function (other) {
949
+ return this.yo((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
950
+ };
951
+ function _get_wrapped__s2ip8($this) {
952
+ var tmp0 = $this.kr_1;
953
+ var tmp = KProperty1;
954
+ // Inline function 'kotlin.getValue' call
955
+ getPropertyCallableRef('wrapped', 1, tmp, LazyCursor$_get_wrapped_$ref_p28zr5(), null);
956
+ return tmp0.c2();
957
+ }
958
+ function LazyCursor$wrapped$delegate$lambda(this$0) {
959
+ return function () {
960
+ return new NonLastCursor(this$0.jr_1);
961
+ };
962
+ }
963
+ function LazyCursor$_get_wrapped_$ref_p28zr5() {
964
+ return constructCallableReference(function (p0) {
965
+ return _get_wrapped__s2ip8(p0);
966
+ }, 1, 0, 2);
967
+ }
968
+ function LazyCursor(delegate) {
969
+ AbstractCursor.call(this);
970
+ this.jr_1 = delegate;
971
+ var tmp = this;
972
+ tmp.kr_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
973
+ }
974
+ protoOf(LazyCursor).xq = function () {
975
+ return true;
976
+ };
977
+ protoOf(LazyCursor).ro = function () {
978
+ return _get_wrapped__s2ip8(this).ro();
979
+ };
980
+ protoOf(LazyCursor).so = function () {
981
+ return _get_wrapped__s2ip8(this).so();
982
+ };
983
+ protoOf(LazyCursor).to = function () {
984
+ return true;
985
+ };
986
+ protoOf(LazyCursor).uo = function () {
987
+ return false;
988
+ };
989
+ protoOf(LazyCursor).toString = function () {
990
+ return protoOf(AbstractCursor).toString.call(this);
991
+ };
992
+ protoOf(LazyCursor).m = function () {
993
+ return _get_wrapped__s2ip8(this).m();
994
+ };
995
+ protoOf(LazyCursor).iterator = function () {
996
+ return this.m();
997
+ };
998
+ protoOf(LazyCursor).hashCode = function () {
999
+ return hashCode(this.jr_1);
1000
+ };
1001
+ protoOf(LazyCursor).equals = function (other) {
1002
+ if (this === other)
1003
+ return true;
1004
+ if (!(other instanceof LazyCursor))
1005
+ return false;
1006
+ if (!equals(this.jr_1, other.jr_1))
1007
+ return false;
1008
+ return true;
1009
+ };
1010
+ function LongIndexedImpl(index, value) {
1011
+ this.lr_1 = index;
1012
+ this.mr_1 = value;
1013
+ }
1014
+ protoOf(LongIndexedImpl).wo = function () {
1015
+ return this.lr_1;
1016
+ };
1017
+ protoOf(LongIndexedImpl).c2 = function () {
1018
+ return this.mr_1;
1019
+ };
1020
+ protoOf(LongIndexedImpl).rq = function (other) {
1021
+ return convertToInt(subtract(this.lr_1, other.wo()));
1022
+ };
1023
+ protoOf(LongIndexedImpl).y1 = function (other) {
1024
+ return this.rq((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
1025
+ };
1026
+ protoOf(LongIndexedImpl).ac = function () {
1027
+ return this.lr_1;
1028
+ };
1029
+ protoOf(LongIndexedImpl).bc = function () {
1030
+ return this.mr_1;
1031
+ };
1032
+ protoOf(LongIndexedImpl).toString = function () {
1033
+ return 'LongIndexedImpl(index=' + this.lr_1.toString() + ', value=' + toString(this.mr_1) + ')';
1034
+ };
1035
+ protoOf(LongIndexedImpl).hashCode = function () {
1036
+ var result = this.lr_1.hashCode();
1037
+ result = imul(result, 31) + (this.mr_1 == null ? 0 : hashCode(this.mr_1)) | 0;
1038
+ return result;
1039
+ };
1040
+ protoOf(LongIndexedImpl).equals = function (other) {
1041
+ if (this === other)
1042
+ return true;
1043
+ if (!(other instanceof LongIndexedImpl))
1044
+ return false;
1045
+ if (!equalsLong(this.lr_1, other.lr_1))
1046
+ return false;
1047
+ if (!equals(this.mr_1, other.mr_1))
1048
+ return false;
1049
+ return true;
1050
+ };
1051
+ function MapperCursor$current$delegate$lambda(this$0) {
1052
+ return function () {
1053
+ return this$0.pr_1(ensureNotNull(this$0.nr_1.so()));
1054
+ };
1055
+ }
1056
+ function MapperCursor$_get_current_$ref_lsggiu() {
1057
+ return constructCallableReference(function (p0) {
1058
+ return p0.so();
1059
+ }, 1, 0, 3);
1060
+ }
1061
+ function MapperCursor(wrapped, mapper) {
1062
+ AbstractCursor.call(this);
1063
+ this.nr_1 = wrapped;
1064
+ this.pr_1 = mapper;
1065
+ var tmp = this;
1066
+ tmp.qr_1 = lazy(MapperCursor$current$delegate$lambda(this));
1067
+ }
1068
+ protoOf(MapperCursor).ro = function () {
1069
+ return this.nr_1.ro().yq(this.pr_1);
1070
+ };
1071
+ protoOf(MapperCursor).so = function () {
1072
+ var tmp0 = this.qr_1;
1073
+ var tmp = KProperty1;
1074
+ // Inline function 'kotlin.getValue' call
1075
+ getPropertyCallableRef('current', 1, tmp, MapperCursor$_get_current_$ref_lsggiu(), null);
1076
+ return tmp0.c2();
1077
+ };
1078
+ protoOf(MapperCursor).to = function () {
1079
+ return true;
1080
+ };
1081
+ protoOf(MapperCursor).uo = function () {
1082
+ return false;
1083
+ };
1084
+ protoOf(MapperCursor).equals = function (other) {
1085
+ if (this === other)
1086
+ return true;
1087
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
1088
+ return false;
1089
+ if (!(other instanceof MapperCursor))
1090
+ THROW_CCE();
1091
+ if (!equals(this.nr_1, other.nr_1))
1092
+ return false;
1093
+ if (!equals(this.pr_1, other.pr_1))
1094
+ return false;
1095
+ return true;
1096
+ };
1097
+ protoOf(MapperCursor).hashCode = function () {
1098
+ var result = hashCode(this.nr_1);
1099
+ result = imul(31, result) + hashCode(this.pr_1) | 0;
1100
+ return result;
1101
+ };
1102
+ protoOf(MapperCursor).rr = function (mapper) {
1103
+ return new ValueCursor(mapper(this.so()), this.ro().yq(mapper));
1104
+ };
1105
+ protoOf(MapperCursor).map = function (mapper) {
1106
+ return this.rr(mapper);
1107
+ };
1108
+ protoOf(MapperCursor).yq = function (mapper) {
1109
+ return this.rr(mapper);
1110
+ };
1111
+ function NonLastCursor$next$delegate$lambda($source, this$0) {
1112
+ return function () {
1113
+ // Inline function 'kotlin.also' call
1114
+ var this_0 = Companion_instance_5.vo($source);
1115
+ this$0.sr_1 = null;
1116
+ return this_0;
1117
+ };
1118
+ }
1119
+ function NonLastCursor$_get_next_$ref_gp6ycu() {
1120
+ return constructCallableReference(function (p0) {
1121
+ return p0.ro();
1122
+ }, 1, 0, 4);
1123
+ }
1124
+ function NonLastCursor(source) {
1125
+ AbstractCursor.call(this);
1126
+ this.sr_1 = source;
1127
+ var tmp = this;
1128
+ tmp.tr_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
1129
+ this.ur_1 = source.q();
1130
+ }
1131
+ protoOf(NonLastCursor).ro = function () {
1132
+ var tmp0 = this.tr_1;
1133
+ var tmp = KProperty1;
1134
+ // Inline function 'kotlin.getValue' call
1135
+ getPropertyCallableRef('next', 1, tmp, NonLastCursor$_get_next_$ref_gp6ycu(), null);
1136
+ return tmp0.c2();
1137
+ };
1138
+ protoOf(NonLastCursor).so = function () {
1139
+ return this.ur_1;
1140
+ };
1141
+ protoOf(NonLastCursor).to = function () {
1142
+ return true;
1143
+ };
1144
+ protoOf(NonLastCursor).uo = function () {
1145
+ return false;
1146
+ };
1147
+ protoOf(NonLastCursor).toString = function () {
1148
+ return protoOf(AbstractCursor).toString.call(this);
1149
+ };
1150
+ function removeLeastRecent($this) {
1151
+ // Inline function 'kotlin.collections.asIterable' call
1152
+ var tmp$ret$0 = $this.wr_1.b1();
1153
+ var _destruct__k2r9zo = first(tmp$ret$0);
1154
+ // Inline function 'kotlin.collections.component1' call
1155
+ var key = _destruct__k2r9zo.b2();
1156
+ // Inline function 'kotlin.collections.component2' call
1157
+ var value = _destruct__k2r9zo.c2();
1158
+ $this.wr_1.q4(key);
1159
+ return Companion_instance_4.sq(to(key, value));
1160
+ }
1161
+ function removeLeastRecentIfNecessary($this) {
1162
+ var tmp;
1163
+ if ($this.wr_1.s() >= $this.vr_1) {
1164
+ tmp = removeLeastRecent($this);
1165
+ } else {
1166
+ tmp = Companion_instance_4.mo();
1167
+ }
1168
+ return tmp;
1169
+ }
1170
+ function SimpleLRUCache$set$lambda(this$0, $key, $value) {
1171
+ return function () {
1172
+ var evicted = removeLeastRecentIfNecessary(this$0);
1173
+ var tmp0 = this$0.wr_1;
1174
+ var tmp2 = $key;
1175
+ // Inline function 'kotlin.collections.set' call
1176
+ var value = $value;
1177
+ tmp0.p4(tmp2, value);
1178
+ return evicted;
1179
+ };
1180
+ }
1181
+ function SimpleLRUCache$get$lambda(this$0, $key) {
1182
+ return function () {
1183
+ var tmp;
1184
+ if (this$0.wr_1.d2($key)) {
1185
+ tmp = Companion_instance_4.no(this$0.wr_1.f2($key));
1186
+ } else {
1187
+ tmp = Companion_instance_4.mo();
1188
+ }
1189
+ return tmp;
1190
+ };
1191
+ }
1192
+ function SimpleLRUCache$toSequence$lambda$lambda(it) {
1193
+ // Inline function 'kotlin.collections.toPair' call
1194
+ return new Pair(it.b2(), it.c2());
1195
+ }
1196
+ function SimpleLRUCache$toSequence$lambda(this$0) {
1197
+ return function () {
1198
+ var tmp = asSequence(this$0.wr_1.b1());
1199
+ return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
1200
+ };
1201
+ }
1202
+ function SimpleLRUCache$toString$lambda(it) {
1203
+ return toString(it.first) + ' = ' + toString(it.second);
1204
+ }
1205
+ function SimpleLRUCache(capacity) {
1206
+ this.vr_1 = capacity;
1207
+ // Inline function 'kotlin.require' call
1208
+ // Inline function 'kotlin.require' call
1209
+ if (!(this.vr_1 > 0)) {
1210
+ var message = 'Failed requirement.';
1211
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
1212
+ }
1213
+ this.wr_1 = LinkedHashMap_init_$Create$();
1214
+ }
1215
+ protoOf(SimpleLRUCache).fo = function (key, value) {
1216
+ return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
1217
+ };
1218
+ protoOf(SimpleLRUCache).f2 = function (key) {
1219
+ return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
1220
+ };
1221
+ protoOf(SimpleLRUCache).equals = function (other) {
1222
+ if (this === other)
1223
+ return true;
1224
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
1225
+ return false;
1226
+ if (!(other instanceof SimpleLRUCache))
1227
+ THROW_CCE();
1228
+ if (!(this.vr_1 === other.vr_1))
1229
+ return false;
1230
+ if (!this.wr_1.equals(other.wr_1))
1231
+ return false;
1232
+ return true;
1233
+ };
1234
+ protoOf(SimpleLRUCache).hashCode = function () {
1235
+ var result = this.vr_1;
1236
+ result = imul(31, result) + this.wr_1.hashCode() | 0;
1237
+ return result;
1238
+ };
1239
+ protoOf(SimpleLRUCache).xr = function () {
1240
+ return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
1241
+ };
1242
+ protoOf(SimpleLRUCache).toString = function () {
1243
+ var tmp = this.xr();
1244
+ return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
1245
+ };
1246
+ function ValueCursor(current, next) {
1247
+ AbstractCursor.call(this);
1248
+ this.yr_1 = current;
1249
+ this.zr_1 = next;
1250
+ }
1251
+ protoOf(ValueCursor).so = function () {
1252
+ return this.yr_1;
1253
+ };
1254
+ protoOf(ValueCursor).ro = function () {
1255
+ return this.zr_1;
1256
+ };
1257
+ protoOf(ValueCursor).to = function () {
1258
+ return true;
1259
+ };
1260
+ protoOf(ValueCursor).uo = function () {
1261
+ return false;
1262
+ };
1263
+ function dequeOf(items) {
1264
+ return mutableListOf(items.slice());
1265
+ }
1266
+ function dequeOf_0(items) {
1267
+ // Inline function 'kotlin.collections.mutableListOf' call
1268
+ // Inline function 'kotlin.also' call
1269
+ var this_0 = ArrayList_init_$Create$_0();
1270
+ addAll(this_0, items);
1271
+ return this_0;
1272
+ }
1273
+ function dequeOf_1(items) {
1274
+ return toMutableList(items);
1275
+ }
1276
+ function takeFirst(_this__u8e3s4) {
1277
+ if (_this__u8e3s4.g())
1278
+ return null;
1279
+ var first = _this__u8e3s4.t(0);
1280
+ _this__u8e3s4.l3(0);
1281
+ return first;
1282
+ }
1283
+ function addFirst(_this__u8e3s4, item) {
1284
+ _this__u8e3s4.w3(0, item);
1285
+ }
1286
+ function addFirst_0(_this__u8e3s4, items) {
1287
+ var i = _this__u8e3s4.g4();
1288
+ var _iterator__ex2g4s = items.m();
1289
+ while (_iterator__ex2g4s.p()) {
1290
+ var item = _iterator__ex2g4s.q();
1291
+ i.x3(item);
1292
+ }
1293
+ }
1294
+ function synchronizedOn(obj, action) {
1295
+ return action();
1296
+ }
1297
+ function forceCast(_this__u8e3s4) {
1298
+ var it = _this__u8e3s4;
1299
+ return it;
1300
+ }
1301
+ //region block: post-declaration
1302
+ protoOf(AbstractCursor).asIterable = asIterable_1;
1303
+ protoOf(AbstractCursor).asSequence = asSequence_0;
1304
+ protoOf(CachedImpl).lo = ifValid;
1305
+ protoOf(IntIndexedImpl).yo = compareTo;
1306
+ protoOf(SimpleLRUCache).go = getOrSet;
1307
+ //endregion
1308
+ //region block: init
1309
+ Companion_instance = new Companion();
1310
+ Companion_instance_0 = new Companion_0();
1311
+ Companion_instance_1 = new Companion_1();
1312
+ Companion_instance_2 = new Companion_2();
1313
+ Companion_instance_3 = new Companion_3();
1314
+ Companion_instance_4 = new Companion_4();
1315
+ Companion_instance_5 = new Companion_5();
1316
+ //endregion
1317
+ //region block: exports
1318
+ _.$_$ = _.$_$ || {};
1319
+ _.$_$.a = Companion_instance;
1320
+ _.$_$.b = Companion_instance_0;
1321
+ _.$_$.c = Companion_instance_1;
1322
+ _.$_$.d = Companion_instance_3;
1323
+ _.$_$.e = castTo;
1324
+ _.$_$.f = Castable;
1325
+ _.$_$.g = component1;
1326
+ _.$_$.h = component2;
1327
+ _.$_$.i = compareTo_0;
1328
+ _.$_$.j = LongIndexed;
1329
+ _.$_$.k = Some;
1330
+ _.$_$.l = containsTag;
1331
+ _.$_$.m = getTag;
1332
+ _.$_$.n = Taggable;
1333
+ _.$_$.o = addFirst_0;
1334
+ _.$_$.p = addFirst;
1335
+ _.$_$.q = buffered;
1336
+ _.$_$.r = cached;
1337
+ _.$_$.s = cursor_0;
1338
+ _.$_$.t = cursor;
1339
+ _.$_$.u = cursor_1;
1340
+ _.$_$.v = dequeOf_1;
1341
+ _.$_$.w = dequeOf_0;
1342
+ _.$_$.x = dequeOf;
1343
+ _.$_$.y = dropLast;
1344
+ _.$_$.z = forceCast;
1345
+ _.$_$.a1 = insertAt;
1346
+ _.$_$.b1 = itemWiseEquals_0;
1347
+ _.$_$.c1 = itemWiseEquals;
1348
+ _.$_$.d1 = itemWiseHashCode_0;
1349
+ _.$_$.e1 = itemWiseHashCode;
1350
+ _.$_$.f1 = itemWiseHashCode_1;
1351
+ _.$_$.g1 = mergeSequences;
1352
+ _.$_$.h1 = plus;
1353
+ _.$_$.i1 = setTags;
1354
+ _.$_$.j1 = synchronizedOnSelf;
1355
+ _.$_$.k1 = synchronizedOn;
1356
+ _.$_$.l1 = takeFirst;
1357
+ //endregion
1358
+ return _;
1359
+ }));
1360
+
1361
+ //# sourceMappingURL=2p-utils.js.map