@flock/wirespec 0.17.19 → 0.18.0-RC.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arrow-arrow-annotations.mjs.map +1 -1
- package/arrow-arrow-atomic.mjs +13 -13
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +594 -431
- package/arrow-arrow-core.mjs.map +1 -1
- package/arrow-arrow-exception-utils.mjs +30 -0
- package/arrow-arrow-exception-utils.mjs.map +1 -0
- package/clikt-clikt-mordant.mjs +318 -0
- package/clikt-clikt-mordant.mjs.map +1 -0
- package/clikt-clikt.mjs +3834 -3696
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +619 -682
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-js-core.mjs +4 -0
- package/kotlin-js-core.mjs.map +1 -0
- package/kotlin-js.mjs +4 -0
- package/kotlin-js.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +6339 -5816
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +8163 -8198
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-plugins-js-plain-objects-runtime.mjs +4 -0
- package/kotlin-plugins-js-plain-objects-runtime.mjs.map +1 -0
- package/kotlin-rgxgen.mjs +2007 -2062
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +4 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +4 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +803 -839
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2483 -2553
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1869 -1928
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant-omnibus.mjs +4 -0
- package/mordant-mordant-omnibus.mjs.map +1 -0
- package/mordant-mordant.mjs +2532 -4425
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +4 -7
- package/seskar-core.mjs +4 -0
- package/seskar-core.mjs.map +1 -0
- package/wirespec-bin.mjs +13 -1
- package/wirespec-fetch.d.ts +4 -1
- package/wirespec-fetch.mjs +34 -0
- package/wirespec-serialization.d.ts +13 -2
- package/wirespec-serialization.mjs +22 -1
- package/wirespec-src-compiler-core.mjs +2856 -3908
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +1358 -427
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +1010 -337
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +1462 -385
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +2247 -0
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-scala.mjs +1018 -0
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-typescript.mjs +1540 -426
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +119 -141
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +17339 -0
- package/wirespec-src-compiler-ir.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +662 -728
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +630 -656
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1705 -2024
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +418 -459
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +367 -331
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/{wirespec-src-plugin-npm.d.ts → wirespec-src-plugin-npm.d.mts} +247 -0
- package/wirespec-src-plugin-npm.mjs +166 -359
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +79 -106
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/arrow-arrow-continuations.mjs +0 -18
- package/arrow-arrow-continuations.mjs.map +0 -1
- package/markdown.mjs +0 -6756
- package/markdown.mjs.map +0 -1
package/arrow-arrow-core.mjs
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Unit_instanceat14thlj150z as Unit_instance,
|
|
3
2
|
protoOf180f3jzyo7rfj as protoOf,
|
|
4
3
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
4
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
5
5
|
toString30pk9tzaqopn as toString,
|
|
6
6
|
hashCodeq5arwsb9dgti as hashCode,
|
|
7
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
8
7
|
equals2au1ep9vhcato as equals,
|
|
9
8
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
10
|
-
|
|
9
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
11
10
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
12
|
-
Collection1k04j3hzsbod0 as Collection,
|
|
13
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
14
11
|
checkBuilderCapacity1h6g02949wvv as checkBuilderCapacity,
|
|
15
|
-
ArrayList_init_$Create$
|
|
16
|
-
|
|
12
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
13
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
14
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
15
|
+
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
16
|
+
Collection1k04j3hzsbod0 as Collection,
|
|
17
17
|
listOfvhqybd2zx248 as listOf,
|
|
18
|
-
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
19
|
-
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
20
|
-
drop3na99dw9feawf as drop,
|
|
21
|
-
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
22
|
-
AbstractList3ck35puwbp1e9 as AbstractList,
|
|
23
|
-
IndexOutOfBoundsException_init_$Create$lgvynu6unvfx as IndexOutOfBoundsException_init_$Create$,
|
|
24
18
|
plus310ted5e4i90h as plus,
|
|
19
|
+
first58ocm7j58k3q as first,
|
|
25
20
|
plus20p0vtfmu0596 as plus_0,
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
toString1pkumu07cwy4m as toString_0,
|
|
22
|
+
KtList3hktaavzmj137 as KtList,
|
|
23
|
+
plus1di085adi7f7m as plus_1,
|
|
28
24
|
toList3jhuyej2anx2q as toList,
|
|
29
25
|
setOf1u3mizs95ngxo as setOf,
|
|
30
|
-
plus1ogy4liedzq5j as
|
|
26
|
+
plus1ogy4liedzq5j as plus_2,
|
|
27
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
28
|
+
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
29
|
+
addAll1k27qatfgp3k5 as addAll,
|
|
31
30
|
KtSetjrjc7fhfd6b9 as KtSet,
|
|
32
|
-
|
|
33
|
-
toSet2orjxp16sotqu as
|
|
34
|
-
CancellationException3b36o9qz53rgr as CancellationException,
|
|
35
|
-
CancellationException_init_$Init$31woqfgrhq6f4 as CancellationException_init_$Init$,
|
|
31
|
+
asIterable314gqyxouondo as asIterable,
|
|
32
|
+
toSet2orjxp16sotqu as toSet,
|
|
36
33
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
37
|
-
|
|
34
|
+
defineProp3ur6h3slcvq4x as defineProp,
|
|
38
35
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
39
|
-
IllegalStateException_init_$Init$
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
IllegalArgumentException_init_$Create$
|
|
36
|
+
IllegalStateException_init_$Init$2ylivwv1fsmzx as IllegalStateException_init_$Init$,
|
|
37
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
38
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
39
|
+
IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
|
|
40
|
+
CancellationException3b36o9qz53rgr as CancellationException,
|
|
41
|
+
CancellationException_init_$Init$2h1hgwga3ygtl as CancellationException_init_$Init$,
|
|
43
42
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
43
|
+
import { nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow } from './arrow-arrow-exception-utils.mjs';
|
|
44
44
|
import { AtomicBoolean19soryb213qw as AtomicBoolean } from './arrow-arrow-atomic.mjs';
|
|
45
|
-
import { ControlThrowable1e3sm1olkg8m4 as ControlThrowable } from './arrow-arrow-continuations.mjs';
|
|
46
45
|
//region block: imports
|
|
47
46
|
//endregion
|
|
48
47
|
//region block: pre-declaration
|
|
@@ -52,67 +51,60 @@ initMetadataForClass(Either, 'Either');
|
|
|
52
51
|
initMetadataForClass(Left, 'Left', VOID, Either);
|
|
53
52
|
initMetadataForClass(Right, 'Right', VOID, Either);
|
|
54
53
|
initMetadataForCompanion(Companion_1);
|
|
55
|
-
function toNonEmptyList() {
|
|
56
|
-
return ensureNotNull(toNonEmptyListOrNull(this));
|
|
57
|
-
}
|
|
58
|
-
initMetadataForInterface(NonEmptyCollection, 'NonEmptyCollection', VOID, VOID, [Collection]);
|
|
59
54
|
initMetadataForCompanion(Companion_2);
|
|
60
|
-
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID,
|
|
61
|
-
|
|
62
|
-
initMetadataForClass(NonEmptySet, 'NonEmptySet', VOID, VOID, [KtSet,
|
|
63
|
-
initMetadataForClass(_no_name_provided__qut3iv_0);
|
|
55
|
+
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID, VOID, [KtList, Collection]);
|
|
56
|
+
initMetadataForCompanion(Companion_3);
|
|
57
|
+
initMetadataForClass(NonEmptySet, 'NonEmptySet', VOID, VOID, [KtSet, Collection]);
|
|
64
58
|
function bind(_this__u8e3s4) {
|
|
65
|
-
var tmp;
|
|
66
59
|
if (_this__u8e3s4 instanceof Left) {
|
|
67
|
-
this.
|
|
60
|
+
this.dm(_this__u8e3s4.pl_1);
|
|
68
61
|
} else {
|
|
69
|
-
if (_this__u8e3s4 instanceof Right)
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
if (_this__u8e3s4 instanceof Right)
|
|
63
|
+
return _this__u8e3s4.rl_1;
|
|
64
|
+
else {
|
|
72
65
|
noWhenBranchMatchedException();
|
|
73
66
|
}
|
|
74
67
|
}
|
|
75
|
-
return tmp;
|
|
76
68
|
}
|
|
77
69
|
function bindAll(_this__u8e3s4) {
|
|
78
70
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
79
|
-
// Inline function 'arrow.core.raise.Raise.bindAll.<anonymous>' call
|
|
80
|
-
var it = _this__u8e3s4.pk_1;
|
|
81
|
-
var tmp = this.cl(it);
|
|
82
71
|
// Inline function 'kotlin.collections.map' call
|
|
83
|
-
var this_0 = _this__u8e3s4
|
|
72
|
+
var this_0 = _NonEmptyList___get_all__impl__pmf509(_this__u8e3s4);
|
|
84
73
|
// Inline function 'kotlin.collections.mapTo' call
|
|
85
74
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
86
|
-
var
|
|
87
|
-
while (
|
|
88
|
-
var item =
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
destination.e(tmp$ret$1);
|
|
75
|
+
var _iterator__ex2g4s = this_0.t();
|
|
76
|
+
while (_iterator__ex2g4s.u()) {
|
|
77
|
+
var item = _iterator__ex2g4s.v();
|
|
78
|
+
var tmp$ret$0 = this.hm(item);
|
|
79
|
+
destination.x(tmp$ret$0);
|
|
92
80
|
}
|
|
93
|
-
return
|
|
81
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
94
82
|
}
|
|
95
|
-
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [
|
|
96
|
-
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [
|
|
83
|
+
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [1]);
|
|
84
|
+
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [1]);
|
|
97
85
|
initMetadataForClass(RaiseCancellationException, 'RaiseCancellationException', VOID, CancellationException);
|
|
98
86
|
initMetadataForClass(Traced, 'Traced', VOID, RaiseCancellationException);
|
|
99
87
|
initMetadataForClass(RaiseLeakedException, 'RaiseLeakedException', RaiseLeakedException, IllegalStateException);
|
|
100
|
-
initMetadataForClass(
|
|
101
|
-
initMetadataForClass(
|
|
88
|
+
initMetadataForClass(Value, 'Value');
|
|
89
|
+
initMetadataForClass(Error_0, 'Error', VOID, Value);
|
|
90
|
+
initMetadataForClass(Ok, 'Ok', VOID, Value);
|
|
91
|
+
function get_hasAccumulatedErrors() {
|
|
92
|
+
return !(this.cm() == null);
|
|
93
|
+
}
|
|
94
|
+
initMetadataForInterface(Accumulate, 'Accumulate');
|
|
95
|
+
initMetadataForClass(RaiseAccumulate, 'RaiseAccumulate', VOID, VOID, [Accumulate, Raise], [1]);
|
|
96
|
+
initMetadataForClass(ListAccumulate, 'ListAccumulate', VOID, VOID, [Accumulate, Raise], [1]);
|
|
97
|
+
initMetadataForClass(TolerantAccumulate, 'TolerantAccumulate', VOID, VOID, [Accumulate]);
|
|
102
98
|
//endregion
|
|
103
99
|
function Companion() {
|
|
104
|
-
Companion_instance = this;
|
|
105
|
-
this.wj_1 = new Left(Unit_instance);
|
|
106
100
|
}
|
|
107
101
|
var Companion_instance;
|
|
108
102
|
function Companion_getInstance() {
|
|
109
|
-
if (Companion_instance == null)
|
|
110
|
-
new Companion();
|
|
111
103
|
return Companion_instance;
|
|
112
104
|
}
|
|
113
105
|
function Companion_0() {
|
|
114
106
|
Companion_instance_0 = this;
|
|
115
|
-
this.
|
|
107
|
+
this.ol_1 = new Right(Unit_instance);
|
|
116
108
|
}
|
|
117
109
|
var Companion_instance_0;
|
|
118
110
|
function Companion_getInstance_0() {
|
|
@@ -121,60 +113,41 @@ function Companion_getInstance_0() {
|
|
|
121
113
|
return Companion_instance_0;
|
|
122
114
|
}
|
|
123
115
|
function Left(value) {
|
|
124
|
-
Companion_getInstance();
|
|
125
116
|
Either.call(this);
|
|
126
|
-
this.
|
|
127
|
-
this.zj_1 = true;
|
|
128
|
-
this.ak_1 = false;
|
|
117
|
+
this.pl_1 = value;
|
|
129
118
|
}
|
|
130
|
-
protoOf(Left).bk = function () {
|
|
131
|
-
return this.zj_1;
|
|
132
|
-
};
|
|
133
|
-
protoOf(Left).ck = function () {
|
|
134
|
-
return this.ak_1;
|
|
135
|
-
};
|
|
136
119
|
protoOf(Left).toString = function () {
|
|
137
|
-
return 'Either.Left(' + toString(this.
|
|
120
|
+
return 'Either.Left(' + toString(this.pl_1) + ')';
|
|
138
121
|
};
|
|
139
122
|
protoOf(Left).hashCode = function () {
|
|
140
|
-
return this.
|
|
123
|
+
return this.pl_1 == null ? 0 : hashCode(this.pl_1);
|
|
141
124
|
};
|
|
142
125
|
protoOf(Left).equals = function (other) {
|
|
143
126
|
if (this === other)
|
|
144
127
|
return true;
|
|
145
128
|
if (!(other instanceof Left))
|
|
146
129
|
return false;
|
|
147
|
-
|
|
148
|
-
if (!equals(this.yj_1, tmp0_other_with_cast.yj_1))
|
|
130
|
+
if (!equals(this.pl_1, other.pl_1))
|
|
149
131
|
return false;
|
|
150
132
|
return true;
|
|
151
133
|
};
|
|
152
134
|
function Right(value) {
|
|
153
135
|
Companion_getInstance_0();
|
|
154
136
|
Either.call(this);
|
|
155
|
-
this.
|
|
156
|
-
this.fk_1 = false;
|
|
157
|
-
this.gk_1 = true;
|
|
137
|
+
this.rl_1 = value;
|
|
158
138
|
}
|
|
159
|
-
protoOf(Right).bk = function () {
|
|
160
|
-
return this.fk_1;
|
|
161
|
-
};
|
|
162
|
-
protoOf(Right).ck = function () {
|
|
163
|
-
return this.gk_1;
|
|
164
|
-
};
|
|
165
139
|
protoOf(Right).toString = function () {
|
|
166
|
-
return 'Either.Right(' + toString(this.
|
|
140
|
+
return 'Either.Right(' + toString(this.rl_1) + ')';
|
|
167
141
|
};
|
|
168
142
|
protoOf(Right).hashCode = function () {
|
|
169
|
-
return this.
|
|
143
|
+
return this.rl_1 == null ? 0 : hashCode(this.rl_1);
|
|
170
144
|
};
|
|
171
145
|
protoOf(Right).equals = function (other) {
|
|
172
146
|
if (this === other)
|
|
173
147
|
return true;
|
|
174
148
|
if (!(other instanceof Right))
|
|
175
149
|
return false;
|
|
176
|
-
|
|
177
|
-
if (!equals(this.ek_1, tmp0_other_with_cast.ek_1))
|
|
150
|
+
if (!equals(this.rl_1, other.rl_1))
|
|
178
151
|
return false;
|
|
179
152
|
return true;
|
|
180
153
|
};
|
|
@@ -186,22 +159,15 @@ function Companion_getInstance_1() {
|
|
|
186
159
|
}
|
|
187
160
|
function Either() {
|
|
188
161
|
}
|
|
189
|
-
protoOf(Either).
|
|
190
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
162
|
+
protoOf(Either).ql = function () {
|
|
191
163
|
// Inline function 'arrow.core.getOrElse' call
|
|
192
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
193
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
194
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
195
164
|
var tmp;
|
|
196
|
-
if (this instanceof
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
tmp = this.ek_1;
|
|
165
|
+
if (this instanceof Left) {
|
|
166
|
+
this.pl_1;
|
|
167
|
+
tmp = null;
|
|
200
168
|
} else {
|
|
201
|
-
if (this instanceof
|
|
202
|
-
|
|
203
|
-
this.yj_1;
|
|
204
|
-
tmp = null;
|
|
169
|
+
if (this instanceof Right) {
|
|
170
|
+
tmp = this.rl_1;
|
|
205
171
|
} else {
|
|
206
172
|
noWhenBranchMatchedException();
|
|
207
173
|
}
|
|
@@ -210,16 +176,13 @@ protoOf(Either).dk = function () {
|
|
|
210
176
|
};
|
|
211
177
|
protoOf(Either).toString = function () {
|
|
212
178
|
// Inline function 'arrow.core.Either.fold' call
|
|
213
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
214
179
|
var tmp;
|
|
215
180
|
if (this instanceof Right) {
|
|
216
|
-
|
|
217
|
-
var it = this.ek_1;
|
|
181
|
+
var it = this.rl_1;
|
|
218
182
|
tmp = 'Either.Right(' + toString(it) + ')';
|
|
219
183
|
} else {
|
|
220
184
|
if (this instanceof Left) {
|
|
221
|
-
|
|
222
|
-
var it_0 = this.yj_1;
|
|
185
|
+
var it_0 = this.pl_1;
|
|
223
186
|
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
224
187
|
} else {
|
|
225
188
|
noWhenBranchMatchedException();
|
|
@@ -227,148 +190,198 @@ protoOf(Either).toString = function () {
|
|
|
227
190
|
}
|
|
228
191
|
return tmp;
|
|
229
192
|
};
|
|
230
|
-
function left(_this__u8e3s4) {
|
|
231
|
-
return new Left(_this__u8e3s4);
|
|
232
|
-
}
|
|
233
193
|
function right(_this__u8e3s4) {
|
|
234
194
|
return new Right(_this__u8e3s4);
|
|
235
195
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
_init_properties_Iterable_kt__l8xevm();
|
|
239
|
-
var tmp;
|
|
240
|
-
if (isInterface(_this__u8e3s4, Collection)) {
|
|
241
|
-
tmp = _this__u8e3s4.j();
|
|
242
|
-
} else {
|
|
243
|
-
tmp = default_0;
|
|
244
|
-
}
|
|
245
|
-
return tmp;
|
|
196
|
+
function left(_this__u8e3s4) {
|
|
197
|
+
return new Left(_this__u8e3s4);
|
|
246
198
|
}
|
|
247
199
|
function flattenOrAccumulate(_this__u8e3s4) {
|
|
248
|
-
_init_properties_Iterable_kt__l8xevm();
|
|
249
200
|
// Inline function 'arrow.core.mapOrAccumulate' call
|
|
250
201
|
// Inline function 'arrow.core.raise.either' call
|
|
251
202
|
// Inline function 'arrow.core.raise.fold' call
|
|
252
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
253
203
|
// Inline function 'arrow.core.raise.fold' call
|
|
254
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
255
204
|
var raise = new DefaultRaise(false);
|
|
256
205
|
var tmp;
|
|
257
206
|
try {
|
|
258
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
259
|
-
// Inline function 'arrow.core.mapOrAccumulate.<anonymous>' call
|
|
260
207
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
261
208
|
// Inline function 'kotlin.collections.buildList' call
|
|
262
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
263
209
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
264
210
|
var capacity = collectionSizeOrDefault_0(_this__u8e3s4, 10);
|
|
265
211
|
checkBuilderCapacity(capacity);
|
|
266
212
|
// Inline function 'kotlin.apply' call
|
|
267
213
|
var this_0 = ArrayList_init_$Create$(capacity);
|
|
268
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
269
|
-
// Inline function 'arrow.core.raise.mapOrAccumulate.<anonymous>' call
|
|
270
214
|
// Inline function 'arrow.core.raise.forEachAccumulatingImpl' call
|
|
271
|
-
var iterator = _this__u8e3s4.
|
|
272
|
-
// Inline function '
|
|
273
|
-
|
|
215
|
+
var iterator = _this__u8e3s4.t();
|
|
216
|
+
// Inline function 'arrow.core.raise.accumulate' call
|
|
217
|
+
// Inline function 'kotlin.with' call
|
|
218
|
+
var $this$with = RaiseAccumulate_init_$Create$(raise);
|
|
219
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
274
220
|
// Inline function 'kotlin.collections.iterator' call
|
|
275
|
-
var
|
|
276
|
-
while (
|
|
277
|
-
var
|
|
221
|
+
var _iterator__ex2g4s = iterator;
|
|
222
|
+
while (_iterator__ex2g4s.u()) {
|
|
223
|
+
var element = _iterator__ex2g4s.v();
|
|
224
|
+
// Inline function 'arrow.core.raise.RaiseAccumulate.accumulating' call
|
|
225
|
+
// Inline function 'arrow.core.raise.accumulating' call
|
|
226
|
+
var this_1 = isInterface($this$with, Accumulate) ? $this$with : THROW_CCE();
|
|
227
|
+
// Inline function 'arrow.core.raise.merge' call
|
|
278
228
|
// Inline function 'arrow.core.raise.recover' call
|
|
279
229
|
// Inline function 'arrow.core.raise.fold' call
|
|
280
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
281
230
|
var raise_0 = new DefaultRaise(false);
|
|
282
231
|
var tmp_0;
|
|
283
232
|
try {
|
|
284
|
-
|
|
285
|
-
// Inline function '
|
|
286
|
-
var
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
233
|
+
// Inline function 'arrow.core.raise.recover' call
|
|
234
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
235
|
+
var raise_1 = new DefaultRaise(false);
|
|
236
|
+
var tmp_1;
|
|
237
|
+
try {
|
|
238
|
+
var tmp_2 = tolerant(this_1, raise_0);
|
|
239
|
+
var $this$accumulating = new RaiseAccumulate(tmp_2, raise_1, flattenOrAccumulate$lambda(raise_1));
|
|
240
|
+
var hasErrors = $this$accumulating.vl();
|
|
241
|
+
// Inline function 'kotlin.also' call
|
|
242
|
+
var this_2 = $this$accumulating.wl(element);
|
|
243
|
+
if (!hasErrors) {
|
|
244
|
+
this_0.x(this_2);
|
|
245
|
+
}
|
|
246
|
+
var res = new Ok(Unit_instance);
|
|
247
|
+
raise_1.zl();
|
|
248
|
+
// Inline function 'arrow.core.identity' call
|
|
249
|
+
tmp_1 = res;
|
|
250
|
+
} catch ($p) {
|
|
251
|
+
var tmp_3;
|
|
252
|
+
if ($p instanceof RaiseCancellationException) {
|
|
253
|
+
var e = $p;
|
|
254
|
+
raise_1.zl();
|
|
255
|
+
var p0 = raisedOrRethrow(e, raise_1).am_1;
|
|
256
|
+
tmp_3 = this_1.bm(p0);
|
|
257
|
+
} else {
|
|
258
|
+
if ($p instanceof Error) {
|
|
259
|
+
var e_0 = $p;
|
|
260
|
+
raise_1.zl();
|
|
261
|
+
throw nonFatalOrThrow(e_0);
|
|
262
|
+
} else {
|
|
263
|
+
throw $p;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
tmp_1 = tmp_3;
|
|
294
267
|
}
|
|
295
|
-
var
|
|
296
|
-
raise_0.
|
|
297
|
-
// Inline function 'arrow.core.identity' call
|
|
268
|
+
var res_0 = tmp_1;
|
|
269
|
+
raise_0.zl();
|
|
298
270
|
// Inline function 'arrow.core.identity' call
|
|
299
|
-
tmp_0 =
|
|
271
|
+
tmp_0 = res_0;
|
|
300
272
|
} catch ($p) {
|
|
301
|
-
var
|
|
273
|
+
var tmp_4;
|
|
302
274
|
if ($p instanceof RaiseCancellationException) {
|
|
303
|
-
var
|
|
304
|
-
raise_0.
|
|
305
|
-
// Inline function 'arrow.core.
|
|
306
|
-
|
|
307
|
-
tmp_1 = error.p(it);
|
|
275
|
+
var e_1 = $p;
|
|
276
|
+
raise_0.zl();
|
|
277
|
+
// Inline function 'arrow.core.identity' call
|
|
278
|
+
tmp_4 = raisedOrRethrow(e_1, raise_0);
|
|
308
279
|
} else {
|
|
309
280
|
if ($p instanceof Error) {
|
|
310
|
-
var
|
|
311
|
-
raise_0.
|
|
312
|
-
throw nonFatalOrThrow(
|
|
281
|
+
var e_2 = $p;
|
|
282
|
+
raise_0.zl();
|
|
283
|
+
throw nonFatalOrThrow(e_2);
|
|
313
284
|
} else {
|
|
314
285
|
throw $p;
|
|
315
286
|
}
|
|
316
287
|
}
|
|
317
|
-
tmp_0 =
|
|
288
|
+
tmp_0 = tmp_4;
|
|
318
289
|
}
|
|
319
290
|
}
|
|
320
|
-
var
|
|
321
|
-
if (
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
291
|
+
var result = Unit_instance;
|
|
292
|
+
if ($this$with.vl()) {
|
|
293
|
+
var tmp0_safe_receiver = $this$with.cm();
|
|
294
|
+
if (tmp0_safe_receiver == null)
|
|
295
|
+
null;
|
|
296
|
+
else {
|
|
297
|
+
tmp0_safe_receiver.n1();
|
|
298
|
+
throwKotlinNothingValueException();
|
|
299
|
+
}
|
|
327
300
|
}
|
|
328
|
-
var
|
|
329
|
-
raise.
|
|
330
|
-
|
|
331
|
-
tmp = new Right(res_0);
|
|
301
|
+
var res_1 = this_0.o5();
|
|
302
|
+
raise.zl();
|
|
303
|
+
tmp = new Right(res_1);
|
|
332
304
|
} catch ($p) {
|
|
333
|
-
var
|
|
305
|
+
var tmp_5;
|
|
334
306
|
if ($p instanceof RaiseCancellationException) {
|
|
335
|
-
var
|
|
336
|
-
raise.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
tmp_2 = new Left(it_0);
|
|
307
|
+
var e_3 = $p;
|
|
308
|
+
raise.zl();
|
|
309
|
+
var it = raisedOrRethrow(e_3, raise);
|
|
310
|
+
tmp_5 = new Left(it);
|
|
340
311
|
} else {
|
|
341
312
|
if ($p instanceof Error) {
|
|
342
|
-
var
|
|
343
|
-
raise.
|
|
344
|
-
throw nonFatalOrThrow(
|
|
313
|
+
var e_4 = $p;
|
|
314
|
+
raise.zl();
|
|
315
|
+
throw nonFatalOrThrow(e_4);
|
|
345
316
|
} else {
|
|
346
317
|
throw $p;
|
|
347
318
|
}
|
|
348
319
|
}
|
|
349
|
-
tmp =
|
|
320
|
+
tmp = tmp_5;
|
|
350
321
|
}
|
|
351
322
|
return tmp;
|
|
352
323
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
if (
|
|
356
|
-
|
|
357
|
-
|
|
324
|
+
function collectionSizeOrDefault_0(_this__u8e3s4, default_0) {
|
|
325
|
+
var tmp;
|
|
326
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
327
|
+
tmp = _this__u8e3s4.a1();
|
|
328
|
+
} else {
|
|
329
|
+
tmp = default_0;
|
|
358
330
|
}
|
|
331
|
+
return tmp;
|
|
359
332
|
}
|
|
360
|
-
function
|
|
333
|
+
function flattenOrAccumulate$lambda($$this$recover) {
|
|
334
|
+
return function (it) {
|
|
335
|
+
// Inline function 'arrow.core.nel' call
|
|
336
|
+
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(listOf(it));
|
|
337
|
+
$$this$recover.dm(new NonEmptyList(tmp$ret$0));
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
function _NonEmptyList___init__impl__fxd0xp(all) {
|
|
341
|
+
return all;
|
|
361
342
|
}
|
|
362
|
-
function
|
|
363
|
-
NonEmptyList.call($this, list.k(0), drop(list, 1));
|
|
343
|
+
function _NonEmptyList___get_all__impl__pmf509($this) {
|
|
364
344
|
return $this;
|
|
365
345
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
346
|
+
function _NonEmptyList___init__impl__fxd0xp_0(head, tail) {
|
|
347
|
+
return _NonEmptyList___init__impl__fxd0xp(plus(listOf(head), tail));
|
|
348
|
+
}
|
|
349
|
+
function NonEmptyList__equals_impl_crn5lc($this, other) {
|
|
350
|
+
var tmp;
|
|
351
|
+
if (other instanceof NonEmptyList) {
|
|
352
|
+
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), _NonEmptyList___get_all__impl__pmf509(other.am_1));
|
|
353
|
+
} else {
|
|
354
|
+
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), other);
|
|
355
|
+
}
|
|
356
|
+
return tmp;
|
|
357
|
+
}
|
|
358
|
+
function NonEmptyList__hashCode_impl_38rpg4($this) {
|
|
359
|
+
return hashCode(_NonEmptyList___get_all__impl__pmf509($this));
|
|
360
|
+
}
|
|
361
|
+
function NonEmptyList__isEmpty_impl_cueu5k($this) {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
function NonEmptyList__toList_impl_t5xcy2($this) {
|
|
365
|
+
return _NonEmptyList___get_all__impl__pmf509($this);
|
|
366
|
+
}
|
|
367
|
+
function _NonEmptyList___get_head__impl__q9oenq($this) {
|
|
368
|
+
return first(_NonEmptyList___get_all__impl__pmf509($this));
|
|
369
|
+
}
|
|
370
|
+
function _NonEmptyList___get_tail__impl__t91bd2($this) {
|
|
371
|
+
return _NonEmptyList___get_all__impl__pmf509($this).m2(1, _NonEmptyList___get_all__impl__pmf509($this).a1());
|
|
372
|
+
}
|
|
373
|
+
function NonEmptyList__plus_impl_xqmb9($this, elements) {
|
|
374
|
+
return _NonEmptyList___init__impl__fxd0xp(plus(_NonEmptyList___get_all__impl__pmf509($this), elements));
|
|
375
|
+
}
|
|
376
|
+
function NonEmptyList__plus_impl_xqmb9_0($this, element) {
|
|
377
|
+
return _NonEmptyList___init__impl__fxd0xp(plus_0(_NonEmptyList___get_all__impl__pmf509($this), element));
|
|
378
|
+
}
|
|
379
|
+
function NonEmptyList__toString_impl_ozxm8z($this) {
|
|
380
|
+
return toString_0(_NonEmptyList___get_all__impl__pmf509($this));
|
|
368
381
|
}
|
|
369
382
|
function Companion_2() {
|
|
370
383
|
Companion_instance_2 = this;
|
|
371
|
-
this.
|
|
384
|
+
this.em_1 = nonEmptyListOf(Unit_instance, []);
|
|
372
385
|
}
|
|
373
386
|
var Companion_instance_2;
|
|
374
387
|
function Companion_getInstance_2() {
|
|
@@ -376,98 +389,87 @@ function Companion_getInstance_2() {
|
|
|
376
389
|
new Companion_2();
|
|
377
390
|
return Companion_instance_2;
|
|
378
391
|
}
|
|
379
|
-
function
|
|
392
|
+
function NonEmptyList__contains_impl_w1668g($this, element) {
|
|
393
|
+
return $this.h1(element);
|
|
394
|
+
}
|
|
395
|
+
function NonEmptyList__iterator_impl_kgqsin($this) {
|
|
396
|
+
return $this.t();
|
|
397
|
+
}
|
|
398
|
+
function NonEmptyList__get_impl_oqktx($this, index) {
|
|
399
|
+
return $this.f1(index);
|
|
400
|
+
}
|
|
401
|
+
function NonEmptyList__indexOf_impl_lnwyla($this, element) {
|
|
402
|
+
return $this.i1(element);
|
|
403
|
+
}
|
|
404
|
+
function NonEmptyList__listIterator_impl_8vm28t($this, index) {
|
|
405
|
+
return $this.g1(index);
|
|
406
|
+
}
|
|
407
|
+
function NonEmptyList__subList_impl_8uxff1($this, fromIndex, toIndex) {
|
|
408
|
+
return $this.m2(fromIndex, toIndex);
|
|
409
|
+
}
|
|
410
|
+
function _NonEmptyList___get_size__impl__xcrchh($this) {
|
|
411
|
+
return $this.a1();
|
|
412
|
+
}
|
|
413
|
+
function NonEmptyList(all) {
|
|
380
414
|
Companion_getInstance_2();
|
|
381
|
-
|
|
382
|
-
this.pk_1 = head;
|
|
383
|
-
this.qk_1 = tail;
|
|
384
|
-
this.rk_1 = 1 + this.qk_1.j() | 0;
|
|
415
|
+
this.am_1 = all;
|
|
385
416
|
}
|
|
386
|
-
protoOf(NonEmptyList).
|
|
387
|
-
return this.
|
|
417
|
+
protoOf(NonEmptyList).equals = function (other) {
|
|
418
|
+
return NonEmptyList__equals_impl_crn5lc(this.am_1, other);
|
|
388
419
|
};
|
|
389
|
-
protoOf(NonEmptyList).
|
|
390
|
-
return this.
|
|
420
|
+
protoOf(NonEmptyList).hashCode = function () {
|
|
421
|
+
return NonEmptyList__hashCode_impl_38rpg4(this.am_1);
|
|
391
422
|
};
|
|
392
|
-
protoOf(NonEmptyList).
|
|
393
|
-
|
|
394
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.rk_1 - 1 | 0));
|
|
395
|
-
return index === 0 ? this.pk_1 : this.qk_1.k(index - 1 | 0);
|
|
423
|
+
protoOf(NonEmptyList).r = function () {
|
|
424
|
+
return NonEmptyList__isEmpty_impl_cueu5k(this.am_1);
|
|
396
425
|
};
|
|
397
|
-
protoOf(NonEmptyList).
|
|
398
|
-
return
|
|
426
|
+
protoOf(NonEmptyList).toString = function () {
|
|
427
|
+
return NonEmptyList__toString_impl_ozxm8z(this.am_1);
|
|
399
428
|
};
|
|
400
|
-
protoOf(NonEmptyList).
|
|
401
|
-
return
|
|
429
|
+
protoOf(NonEmptyList).h1 = function (element) {
|
|
430
|
+
return NonEmptyList__contains_impl_w1668g(this.am_1, element);
|
|
402
431
|
};
|
|
403
|
-
protoOf(NonEmptyList).
|
|
404
|
-
return
|
|
432
|
+
protoOf(NonEmptyList).t = function () {
|
|
433
|
+
return NonEmptyList__iterator_impl_kgqsin(this.am_1);
|
|
405
434
|
};
|
|
406
|
-
protoOf(NonEmptyList).
|
|
407
|
-
return
|
|
435
|
+
protoOf(NonEmptyList).f1 = function (index) {
|
|
436
|
+
return NonEmptyList__get_impl_oqktx(this.am_1, index);
|
|
408
437
|
};
|
|
409
|
-
protoOf(NonEmptyList).
|
|
410
|
-
return
|
|
438
|
+
protoOf(NonEmptyList).i1 = function (element) {
|
|
439
|
+
return NonEmptyList__indexOf_impl_lnwyla(this.am_1, element);
|
|
411
440
|
};
|
|
412
|
-
protoOf(NonEmptyList).
|
|
413
|
-
return
|
|
441
|
+
protoOf(NonEmptyList).g1 = function (index) {
|
|
442
|
+
return NonEmptyList__listIterator_impl_8vm28t(this.am_1, index);
|
|
414
443
|
};
|
|
415
|
-
protoOf(NonEmptyList).
|
|
416
|
-
return
|
|
444
|
+
protoOf(NonEmptyList).m2 = function (fromIndex, toIndex) {
|
|
445
|
+
return NonEmptyList__subList_impl_8uxff1(this.am_1, fromIndex, toIndex);
|
|
446
|
+
};
|
|
447
|
+
protoOf(NonEmptyList).a1 = function () {
|
|
448
|
+
return _NonEmptyList___get_size__impl__xcrchh(this.am_1);
|
|
417
449
|
};
|
|
418
450
|
function nonEmptyListOf(head, t) {
|
|
419
|
-
return
|
|
451
|
+
return _NonEmptyList___init__impl__fxd0xp(plus_1(listOf(head), t));
|
|
420
452
|
}
|
|
421
453
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
422
|
-
|
|
423
|
-
if (!iter.h())
|
|
424
|
-
return null;
|
|
425
|
-
var tmp = iter.i();
|
|
426
|
-
// Inline function 'kotlin.collections.Iterable' call
|
|
427
|
-
var tmp$ret$0 = new _no_name_provided__qut3iv(iter);
|
|
428
|
-
return new NonEmptyList(tmp, toList(tmp$ret$0));
|
|
454
|
+
return wrapAsNonEmptyListOrNull(toList(_this__u8e3s4));
|
|
429
455
|
}
|
|
430
|
-
function
|
|
431
|
-
|
|
456
|
+
function wrapAsNonEmptyListOrNull(_this__u8e3s4) {
|
|
457
|
+
return _this__u8e3s4.r() ? null : _NonEmptyList___init__impl__fxd0xp(_this__u8e3s4);
|
|
432
458
|
}
|
|
433
|
-
protoOf(_no_name_provided__qut3iv).g = function () {
|
|
434
|
-
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
435
|
-
return this.wk_1;
|
|
436
|
-
};
|
|
437
459
|
function _NonEmptySet___init__impl__248bef(elements) {
|
|
438
460
|
return elements;
|
|
439
461
|
}
|
|
440
462
|
function _NonEmptySet___get_elements__impl__g09gj9($this) {
|
|
441
463
|
return $this;
|
|
442
464
|
}
|
|
443
|
-
function _NonEmptySet___get_size__impl__tvkxr($this) {
|
|
444
|
-
return $this.j();
|
|
445
|
-
}
|
|
446
|
-
function NonEmptySet__contains_impl_tkiyt0($this, element) {
|
|
447
|
-
return $this.o1(element);
|
|
448
|
-
}
|
|
449
|
-
function NonEmptySet__contains_impl_tkiyt0_0($this, element) {
|
|
450
|
-
if (!(element == null ? true : !(element == null)))
|
|
451
|
-
return false;
|
|
452
|
-
return NonEmptySet__contains_impl_tkiyt0($this.xk_1, (element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
453
|
-
}
|
|
454
|
-
function NonEmptySet__containsAll_impl_kivnxv($this, elements) {
|
|
455
|
-
return $this.e2(elements);
|
|
456
|
-
}
|
|
457
|
-
function NonEmptySet__containsAll_impl_kivnxv_0($this, elements) {
|
|
458
|
-
return NonEmptySet__containsAll_impl_kivnxv($this.xk_1, elements);
|
|
459
|
-
}
|
|
460
|
-
function NonEmptySet__iterator_impl_b1bvkz($this) {
|
|
461
|
-
return $this.g();
|
|
462
|
-
}
|
|
463
465
|
function _NonEmptySet___init__impl__248bef_0(first, rest) {
|
|
464
|
-
return _NonEmptySet___init__impl__248bef(
|
|
466
|
+
return _NonEmptySet___init__impl__248bef(plus_2(setOf(first), rest));
|
|
465
467
|
}
|
|
466
468
|
function NonEmptySet__isEmpty_impl_56jel0($this) {
|
|
467
469
|
return false;
|
|
468
470
|
}
|
|
469
471
|
function NonEmptySet__toString_impl_yfcj6n($this) {
|
|
470
|
-
return
|
|
472
|
+
return toString_0(_NonEmptySet___get_elements__impl__g09gj9($this));
|
|
471
473
|
}
|
|
472
474
|
function NonEmptySet__equals_impl_2ou2p8($this, other) {
|
|
473
475
|
return equals(_NonEmptySet___get_elements__impl__g09gj9($this), other);
|
|
@@ -475,114 +477,113 @@ function NonEmptySet__equals_impl_2ou2p8($this, other) {
|
|
|
475
477
|
function NonEmptySet__hashCode_impl_co6mds($this) {
|
|
476
478
|
return hashCode(_NonEmptySet___get_elements__impl__g09gj9($this));
|
|
477
479
|
}
|
|
480
|
+
function NonEmptySet__map_impl_ngjswd($this, transform) {
|
|
481
|
+
// Inline function 'kotlin.collections.map' call
|
|
482
|
+
var this_0 = _NonEmptySet___get_elements__impl__g09gj9($this);
|
|
483
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
484
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
485
|
+
var _iterator__ex2g4s = this_0.t();
|
|
486
|
+
while (_iterator__ex2g4s.u()) {
|
|
487
|
+
var item = _iterator__ex2g4s.v();
|
|
488
|
+
destination.x(transform(item));
|
|
489
|
+
}
|
|
490
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
491
|
+
}
|
|
492
|
+
function NonEmptySet__flatMap_impl_ovm5jg($this, transform) {
|
|
493
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
494
|
+
var tmp0 = _NonEmptySet___get_elements__impl__g09gj9($this);
|
|
495
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
496
|
+
var destination = ArrayList_init_$Create$_0();
|
|
497
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
498
|
+
while (_iterator__ex2g4s.u()) {
|
|
499
|
+
var element = _iterator__ex2g4s.v();
|
|
500
|
+
var list = transform(element);
|
|
501
|
+
addAll(destination, list);
|
|
502
|
+
}
|
|
503
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
504
|
+
}
|
|
505
|
+
function Companion_3() {
|
|
506
|
+
}
|
|
507
|
+
var Companion_instance_3;
|
|
508
|
+
function Companion_getInstance_3() {
|
|
509
|
+
return Companion_instance_3;
|
|
510
|
+
}
|
|
511
|
+
function NonEmptySet__contains_impl_tkiyt0($this, element) {
|
|
512
|
+
return $this.h1(element);
|
|
513
|
+
}
|
|
514
|
+
function NonEmptySet__iterator_impl_b1bvkz($this) {
|
|
515
|
+
return $this.t();
|
|
516
|
+
}
|
|
517
|
+
function NonEmptySet__containsAll_impl_kivnxv($this, elements) {
|
|
518
|
+
return $this.n2(elements);
|
|
519
|
+
}
|
|
520
|
+
function _NonEmptySet___get_size__impl__tvkxr($this) {
|
|
521
|
+
return $this.a1();
|
|
522
|
+
}
|
|
478
523
|
function NonEmptySet(elements) {
|
|
479
|
-
this.
|
|
524
|
+
this.fm_1 = elements;
|
|
480
525
|
}
|
|
481
|
-
protoOf(NonEmptySet).
|
|
482
|
-
return
|
|
526
|
+
protoOf(NonEmptySet).r = function () {
|
|
527
|
+
return NonEmptySet__isEmpty_impl_56jel0(this.fm_1);
|
|
483
528
|
};
|
|
484
|
-
protoOf(NonEmptySet).
|
|
485
|
-
return
|
|
529
|
+
protoOf(NonEmptySet).toString = function () {
|
|
530
|
+
return NonEmptySet__toString_impl_yfcj6n(this.fm_1);
|
|
486
531
|
};
|
|
487
|
-
protoOf(NonEmptySet).
|
|
488
|
-
return
|
|
532
|
+
protoOf(NonEmptySet).equals = function (other) {
|
|
533
|
+
return NonEmptySet__equals_impl_2ou2p8(this.fm_1, other);
|
|
489
534
|
};
|
|
490
|
-
protoOf(NonEmptySet).
|
|
491
|
-
return
|
|
535
|
+
protoOf(NonEmptySet).hashCode = function () {
|
|
536
|
+
return NonEmptySet__hashCode_impl_co6mds(this.fm_1);
|
|
492
537
|
};
|
|
493
|
-
protoOf(NonEmptySet).
|
|
494
|
-
return
|
|
538
|
+
protoOf(NonEmptySet).h1 = function (element) {
|
|
539
|
+
return NonEmptySet__contains_impl_tkiyt0(this.fm_1, element);
|
|
495
540
|
};
|
|
496
|
-
protoOf(NonEmptySet).
|
|
497
|
-
return NonEmptySet__iterator_impl_b1bvkz(this.
|
|
541
|
+
protoOf(NonEmptySet).t = function () {
|
|
542
|
+
return NonEmptySet__iterator_impl_b1bvkz(this.fm_1);
|
|
498
543
|
};
|
|
499
|
-
protoOf(NonEmptySet).
|
|
500
|
-
return
|
|
544
|
+
protoOf(NonEmptySet).n2 = function (elements) {
|
|
545
|
+
return NonEmptySet__containsAll_impl_kivnxv(this.fm_1, elements);
|
|
501
546
|
};
|
|
502
|
-
protoOf(NonEmptySet).
|
|
503
|
-
return
|
|
504
|
-
};
|
|
505
|
-
protoOf(NonEmptySet).equals = function (other) {
|
|
506
|
-
return NonEmptySet__equals_impl_2ou2p8(this.xk_1, other);
|
|
507
|
-
};
|
|
508
|
-
protoOf(NonEmptySet).hashCode = function () {
|
|
509
|
-
return NonEmptySet__hashCode_impl_co6mds(this.xk_1);
|
|
547
|
+
protoOf(NonEmptySet).a1 = function () {
|
|
548
|
+
return _NonEmptySet___get_size__impl__tvkxr(this.fm_1);
|
|
510
549
|
};
|
|
511
550
|
function nonEmptySetOf(first, rest) {
|
|
512
|
-
return _NonEmptySet___init__impl__248bef_0(first,
|
|
551
|
+
return _NonEmptySet___init__impl__248bef_0(first, asIterable(rest));
|
|
513
552
|
}
|
|
514
553
|
function toNonEmptySetOrNull(_this__u8e3s4) {
|
|
515
|
-
|
|
516
|
-
if (!iter.h())
|
|
517
|
-
return null;
|
|
518
|
-
var tmp = iter.i();
|
|
519
|
-
// Inline function 'kotlin.collections.Iterable' call
|
|
520
|
-
var tmp$ret$0 = new _no_name_provided__qut3iv_0(iter);
|
|
521
|
-
return _NonEmptySet___init__impl__248bef_0(tmp, toSet_0(tmp$ret$0));
|
|
522
|
-
}
|
|
523
|
-
function _no_name_provided__qut3iv_0($iter) {
|
|
524
|
-
this.al_1 = $iter;
|
|
525
|
-
}
|
|
526
|
-
protoOf(_no_name_provided__qut3iv_0).g = function () {
|
|
527
|
-
// Inline function 'arrow.core.toNonEmptySetOrNull.<anonymous>' call
|
|
528
|
-
return this.al_1;
|
|
529
|
-
};
|
|
530
|
-
function curried(_this__u8e3s4) {
|
|
531
|
-
return curried$lambda(_this__u8e3s4);
|
|
532
|
-
}
|
|
533
|
-
function curried$lambda$lambda($this_curried, $p1) {
|
|
534
|
-
return function (p2) {
|
|
535
|
-
return $this_curried($p1, p2);
|
|
536
|
-
};
|
|
554
|
+
return wrapAsNonEmptySetOrNull(toSet(_this__u8e3s4));
|
|
537
555
|
}
|
|
538
|
-
function
|
|
539
|
-
return
|
|
540
|
-
return curried$lambda$lambda($this_curried, p1);
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
function nonFatalOrThrow(_this__u8e3s4) {
|
|
544
|
-
var tmp;
|
|
545
|
-
if (NonFatal(_this__u8e3s4)) {
|
|
546
|
-
tmp = _this__u8e3s4;
|
|
547
|
-
} else {
|
|
548
|
-
throw _this__u8e3s4;
|
|
549
|
-
}
|
|
550
|
-
return tmp;
|
|
556
|
+
function wrapAsNonEmptySetOrNull(_this__u8e3s4) {
|
|
557
|
+
return _this__u8e3s4.r() ? null : _NonEmptySet___init__impl__248bef(_this__u8e3s4);
|
|
551
558
|
}
|
|
552
559
|
function DefaultRaise(isTraced) {
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
560
|
+
this.xl_1 = isTraced;
|
|
561
|
+
this.yl_1 = new AtomicBoolean(true);
|
|
555
562
|
}
|
|
556
|
-
protoOf(DefaultRaise).
|
|
557
|
-
return this.
|
|
563
|
+
protoOf(DefaultRaise).zl = function () {
|
|
564
|
+
return this.yl_1.kl(false);
|
|
558
565
|
};
|
|
559
|
-
protoOf(DefaultRaise).
|
|
566
|
+
protoOf(DefaultRaise).gm = function (r) {
|
|
560
567
|
var tmp;
|
|
561
|
-
if (this.
|
|
562
|
-
throw this.
|
|
568
|
+
if (this.yl_1.n1()) {
|
|
569
|
+
throw this.xl_1 ? new Traced(r, this) : NoTrace(r, this);
|
|
563
570
|
} else {
|
|
564
571
|
throw new RaiseLeakedException();
|
|
565
572
|
}
|
|
566
573
|
};
|
|
567
|
-
protoOf(DefaultRaise).
|
|
568
|
-
return this.
|
|
574
|
+
protoOf(DefaultRaise).dm = function (r) {
|
|
575
|
+
return this.gm((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
569
576
|
};
|
|
570
|
-
function RaiseCancellationException(raised, raise) {
|
|
571
|
-
CancellationException_init_$Init$("kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.", this);
|
|
572
|
-
captureStack(this, RaiseCancellationException);
|
|
573
|
-
this.el_1 = raised;
|
|
574
|
-
this.fl_1 = raise;
|
|
575
|
-
}
|
|
576
577
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
577
578
|
var tmp;
|
|
578
579
|
var tmp_0;
|
|
579
580
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
580
|
-
tmp_0 = _this__u8e3s4.
|
|
581
|
+
tmp_0 = _this__u8e3s4.lm() === raise;
|
|
581
582
|
} else {
|
|
582
583
|
tmp_0 = false;
|
|
583
584
|
}
|
|
584
585
|
if (tmp_0) {
|
|
585
|
-
var tmp_1 = _this__u8e3s4.
|
|
586
|
+
var tmp_1 = _this__u8e3s4.mm();
|
|
586
587
|
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
587
588
|
} else {
|
|
588
589
|
throw _this__u8e3s4;
|
|
@@ -593,10 +594,11 @@ function Traced(raised, raise, cause) {
|
|
|
593
594
|
cause = cause === VOID ? null : cause;
|
|
594
595
|
RaiseCancellationException.call(this, raised, raise);
|
|
595
596
|
captureStack(this, Traced);
|
|
596
|
-
this.
|
|
597
|
+
this.pm_1 = cause;
|
|
598
|
+
delete this.cause;
|
|
597
599
|
}
|
|
598
|
-
protoOf(Traced).
|
|
599
|
-
return this.
|
|
600
|
+
protoOf(Traced).f = function () {
|
|
601
|
+
return this.pm_1;
|
|
600
602
|
};
|
|
601
603
|
function RaiseLeakedException() {
|
|
602
604
|
IllegalStateException_init_$Init$("'raise' or 'bind' was leaked outside of its context scope.\nMake sure all calls to 'raise' and 'bind' occur within the lifecycle of nullable { }, either { } or similar builders.\n\nSee Arrow documentation on 'Typed errors' for further information.", this);
|
|
@@ -604,174 +606,335 @@ function RaiseLeakedException() {
|
|
|
604
606
|
}
|
|
605
607
|
function Raise() {
|
|
606
608
|
}
|
|
607
|
-
function
|
|
608
|
-
|
|
609
|
+
function RaiseAccumulate_init_$Init$(raise, $this) {
|
|
610
|
+
RaiseAccumulate_init_$Init$_0(new ListAccumulate(raise), $this);
|
|
611
|
+
return $this;
|
|
612
|
+
}
|
|
613
|
+
function RaiseAccumulate_init_$Create$(raise) {
|
|
614
|
+
return RaiseAccumulate_init_$Init$(raise, objectCreate(protoOf(RaiseAccumulate)));
|
|
615
|
+
}
|
|
616
|
+
function RaiseAccumulate_init_$Init$_0(listAccumulate, $this) {
|
|
617
|
+
RaiseAccumulate.call($this, listAccumulate, listAccumulate, ListAccumulate$raiseSingle$ref(listAccumulate));
|
|
618
|
+
return $this;
|
|
619
|
+
}
|
|
620
|
+
function Value() {
|
|
621
|
+
}
|
|
622
|
+
function Error_0(raise) {
|
|
623
|
+
Value.call(this);
|
|
624
|
+
this.qm_1 = raise;
|
|
625
|
+
}
|
|
626
|
+
protoOf(Error_0).n1 = function () {
|
|
627
|
+
this.qm_1();
|
|
628
|
+
return throwKotlinNothingValueException();
|
|
629
|
+
};
|
|
630
|
+
function Ok(value) {
|
|
631
|
+
Value.call(this);
|
|
632
|
+
this.rm_1 = value;
|
|
633
|
+
}
|
|
634
|
+
protoOf(Ok).n1 = function () {
|
|
635
|
+
return this.rm_1;
|
|
636
|
+
};
|
|
637
|
+
function ListAccumulate$raiseSingle$ref(p0) {
|
|
638
|
+
var l = function (_this__u8e3s4) {
|
|
639
|
+
p0.vm(_this__u8e3s4);
|
|
640
|
+
};
|
|
641
|
+
l.callableName = 'raiseSingle';
|
|
642
|
+
return l;
|
|
643
|
+
}
|
|
644
|
+
function RaiseAccumulate$bindAll$lambda($$this$recover) {
|
|
645
|
+
return function (it) {
|
|
646
|
+
// Inline function 'arrow.core.nel' call
|
|
647
|
+
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(listOf(it));
|
|
648
|
+
$$this$recover.dm(new NonEmptyList(tmp$ret$0));
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
function RaiseAccumulate(accumulate, raise, raiseErrorsWith) {
|
|
652
|
+
this.sl_1 = accumulate;
|
|
653
|
+
this.tl_1 = raise;
|
|
654
|
+
this.ul_1 = raiseErrorsWith;
|
|
609
655
|
}
|
|
610
|
-
protoOf(RaiseAccumulate).
|
|
611
|
-
this.
|
|
656
|
+
protoOf(RaiseAccumulate).dm = function (r) {
|
|
657
|
+
this.ul_1(r);
|
|
658
|
+
return throwKotlinNothingValueException();
|
|
612
659
|
};
|
|
613
|
-
protoOf(RaiseAccumulate).
|
|
660
|
+
protoOf(RaiseAccumulate).im = function (_this__u8e3s4) {
|
|
614
661
|
// Inline function 'arrow.core.raise.RaiseAccumulate.mapOrAccumulate' call
|
|
615
662
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
616
|
-
|
|
663
|
+
var tmp0 = this.tl_1;
|
|
617
664
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
618
|
-
var
|
|
619
|
-
var iterable = _this__u8e3s4.sk();
|
|
665
|
+
var iterable = _NonEmptyList___get_all__impl__pmf509(_this__u8e3s4);
|
|
620
666
|
// Inline function 'kotlin.collections.buildList' call
|
|
621
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
622
667
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
623
668
|
var capacity = collectionSizeOrDefault_0(iterable, 10);
|
|
624
669
|
checkBuilderCapacity(capacity);
|
|
625
670
|
// Inline function 'kotlin.apply' call
|
|
626
|
-
var
|
|
627
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
628
|
-
// Inline function 'arrow.core.raise.mapOrAccumulate.<anonymous>' call
|
|
671
|
+
var this_0 = ArrayList_init_$Create$(capacity);
|
|
629
672
|
// Inline function 'arrow.core.raise.forEachAccumulatingImpl' call
|
|
630
|
-
var iterator = iterable.
|
|
631
|
-
// Inline function '
|
|
632
|
-
|
|
673
|
+
var iterator = iterable.t();
|
|
674
|
+
// Inline function 'arrow.core.raise.accumulate' call
|
|
675
|
+
// Inline function 'kotlin.with' call
|
|
676
|
+
var $this$with = RaiseAccumulate_init_$Create$(tmp0);
|
|
677
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
633
678
|
// Inline function 'kotlin.collections.iterator' call
|
|
634
|
-
var
|
|
635
|
-
while (
|
|
636
|
-
var
|
|
679
|
+
var _iterator__ex2g4s = iterator;
|
|
680
|
+
while (_iterator__ex2g4s.u()) {
|
|
681
|
+
var element = _iterator__ex2g4s.v();
|
|
682
|
+
// Inline function 'arrow.core.raise.RaiseAccumulate.accumulating' call
|
|
683
|
+
// Inline function 'arrow.core.raise.accumulating' call
|
|
684
|
+
var this_1 = isInterface($this$with, Accumulate) ? $this$with : THROW_CCE();
|
|
685
|
+
// Inline function 'arrow.core.raise.merge' call
|
|
637
686
|
// Inline function 'arrow.core.raise.recover' call
|
|
638
687
|
// Inline function 'arrow.core.raise.fold' call
|
|
639
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
640
688
|
var raise = new DefaultRaise(false);
|
|
641
689
|
var tmp;
|
|
642
690
|
try {
|
|
643
|
-
|
|
644
|
-
// Inline function '
|
|
645
|
-
var
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
691
|
+
// Inline function 'arrow.core.raise.recover' call
|
|
692
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
693
|
+
var raise_0 = new DefaultRaise(false);
|
|
694
|
+
var tmp_0;
|
|
695
|
+
try {
|
|
696
|
+
var tmp_1 = tolerant(this_1, raise);
|
|
697
|
+
var $this$accumulating = new RaiseAccumulate(tmp_1, raise_0, RaiseAccumulate$bindAll$lambda(raise_0));
|
|
698
|
+
var hasErrors = $this$accumulating.vl();
|
|
699
|
+
// Inline function 'kotlin.also' call
|
|
700
|
+
var this_2 = $this$accumulating.hm(element);
|
|
701
|
+
if (!hasErrors) {
|
|
702
|
+
this_0.x(this_2);
|
|
703
|
+
}
|
|
704
|
+
var res = new Ok(Unit_instance);
|
|
705
|
+
raise_0.zl();
|
|
706
|
+
// Inline function 'arrow.core.identity' call
|
|
707
|
+
tmp_0 = res;
|
|
708
|
+
} catch ($p) {
|
|
709
|
+
var tmp_2;
|
|
710
|
+
if ($p instanceof RaiseCancellationException) {
|
|
711
|
+
var e = $p;
|
|
712
|
+
raise_0.zl();
|
|
713
|
+
var p0 = raisedOrRethrow(e, raise_0).am_1;
|
|
714
|
+
tmp_2 = this_1.bm(p0);
|
|
715
|
+
} else {
|
|
716
|
+
if ($p instanceof Error) {
|
|
717
|
+
var e_0 = $p;
|
|
718
|
+
raise_0.zl();
|
|
719
|
+
throw nonFatalOrThrow(e_0);
|
|
720
|
+
} else {
|
|
721
|
+
throw $p;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
tmp_0 = tmp_2;
|
|
653
725
|
}
|
|
654
|
-
var
|
|
655
|
-
raise.
|
|
726
|
+
var res_0 = tmp_0;
|
|
727
|
+
raise.zl();
|
|
656
728
|
// Inline function 'arrow.core.identity' call
|
|
657
|
-
|
|
658
|
-
tmp = res;
|
|
729
|
+
tmp = res_0;
|
|
659
730
|
} catch ($p) {
|
|
660
|
-
var
|
|
731
|
+
var tmp_3;
|
|
661
732
|
if ($p instanceof RaiseCancellationException) {
|
|
662
|
-
var
|
|
663
|
-
raise.
|
|
664
|
-
// Inline function 'arrow.core.
|
|
665
|
-
|
|
666
|
-
tmp_0 = error.p(it);
|
|
733
|
+
var e_1 = $p;
|
|
734
|
+
raise.zl();
|
|
735
|
+
// Inline function 'arrow.core.identity' call
|
|
736
|
+
tmp_3 = raisedOrRethrow(e_1, raise);
|
|
667
737
|
} else {
|
|
668
738
|
if ($p instanceof Error) {
|
|
669
|
-
var
|
|
670
|
-
raise.
|
|
671
|
-
throw nonFatalOrThrow(
|
|
739
|
+
var e_2 = $p;
|
|
740
|
+
raise.zl();
|
|
741
|
+
throw nonFatalOrThrow(e_2);
|
|
672
742
|
} else {
|
|
673
743
|
throw $p;
|
|
674
744
|
}
|
|
675
745
|
}
|
|
676
|
-
tmp =
|
|
746
|
+
tmp = tmp_3;
|
|
677
747
|
}
|
|
678
748
|
}
|
|
679
|
-
var
|
|
680
|
-
if (
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
var tmp$ret$15 = this_1.q5();
|
|
688
|
-
var value = toNonEmptyListOrNull(tmp$ret$15);
|
|
689
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
690
|
-
var tmp$ret$17;
|
|
691
|
-
$l$block: {
|
|
692
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
693
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
694
|
-
if (value == null) {
|
|
695
|
-
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
696
|
-
var message = 'Required value was null.';
|
|
697
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
698
|
-
} else {
|
|
699
|
-
tmp$ret$17 = value;
|
|
700
|
-
break $l$block;
|
|
749
|
+
var result = Unit_instance;
|
|
750
|
+
if ($this$with.vl()) {
|
|
751
|
+
var tmp0_safe_receiver = $this$with.cm();
|
|
752
|
+
if (tmp0_safe_receiver == null)
|
|
753
|
+
null;
|
|
754
|
+
else {
|
|
755
|
+
tmp0_safe_receiver.n1();
|
|
756
|
+
throwKotlinNothingValueException();
|
|
701
757
|
}
|
|
702
758
|
}
|
|
703
|
-
|
|
759
|
+
// Inline function 'kotlin.let' call
|
|
760
|
+
var p0_0 = this_0.o5();
|
|
761
|
+
return _NonEmptyList___init__impl__fxd0xp(p0_0);
|
|
762
|
+
};
|
|
763
|
+
protoOf(RaiseAccumulate).wl = function (_this__u8e3s4) {
|
|
764
|
+
// Inline function 'kotlin.with' call
|
|
765
|
+
return this.tl_1.hm(_this__u8e3s4);
|
|
766
|
+
};
|
|
767
|
+
protoOf(RaiseAccumulate).bm = function (errors) {
|
|
768
|
+
return this.sl_1.bm(errors);
|
|
769
|
+
};
|
|
770
|
+
protoOf(RaiseAccumulate).vl = function () {
|
|
771
|
+
return this.sl_1.vl();
|
|
772
|
+
};
|
|
773
|
+
protoOf(RaiseAccumulate).cm = function () {
|
|
774
|
+
return this.sl_1.cm();
|
|
775
|
+
};
|
|
776
|
+
function Accumulate() {
|
|
777
|
+
}
|
|
778
|
+
function ListAccumulate$error$lambda(this$0) {
|
|
779
|
+
return function () {
|
|
780
|
+
this$0.sm_1.dm(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(this$0.tm_1)));
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
function ListAccumulate(raise) {
|
|
784
|
+
this.sm_1 = raise;
|
|
785
|
+
var tmp = this;
|
|
786
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
787
|
+
tmp.tm_1 = ArrayList_init_$Create$_0();
|
|
788
|
+
var tmp_0 = this;
|
|
789
|
+
tmp_0.um_1 = new Error_0(ListAccumulate$error$lambda(this));
|
|
790
|
+
}
|
|
791
|
+
protoOf(ListAccumulate).vm = function (r) {
|
|
792
|
+
this.sm_1.dm(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(plus_0(this.tm_1, r))));
|
|
704
793
|
};
|
|
705
|
-
protoOf(
|
|
794
|
+
protoOf(ListAccumulate).wm = function (r) {
|
|
795
|
+
this.sm_1.dm(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(plus(this.tm_1, _NonEmptyList___get_all__impl__pmf509(r)))));
|
|
796
|
+
};
|
|
797
|
+
protoOf(ListAccumulate).dm = function (r) {
|
|
798
|
+
return this.wm(r instanceof NonEmptyList ? r.am_1 : THROW_CCE());
|
|
799
|
+
};
|
|
800
|
+
protoOf(ListAccumulate).bm = function (errors) {
|
|
801
|
+
this.tm_1.e1(new NonEmptyList(errors));
|
|
802
|
+
return this.um_1;
|
|
803
|
+
};
|
|
804
|
+
protoOf(ListAccumulate).cm = function () {
|
|
805
|
+
// Inline function 'kotlin.takeIf' call
|
|
806
|
+
var this_0 = this.um_1;
|
|
706
807
|
var tmp;
|
|
707
|
-
|
|
708
|
-
|
|
808
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
809
|
+
if (!this.tm_1.r()) {
|
|
810
|
+
tmp = this_0;
|
|
709
811
|
} else {
|
|
710
|
-
|
|
711
|
-
tmp = _this__u8e3s4.ek_1;
|
|
712
|
-
} else {
|
|
713
|
-
noWhenBranchMatchedException();
|
|
714
|
-
}
|
|
812
|
+
tmp = null;
|
|
715
813
|
}
|
|
716
814
|
return tmp;
|
|
717
815
|
};
|
|
718
|
-
function
|
|
816
|
+
function tolerant(_this__u8e3s4, raise) {
|
|
817
|
+
return new TolerantAccumulate(_this__u8e3s4, raise);
|
|
818
|
+
}
|
|
819
|
+
function TolerantAccumulate$accumulateAll$lambda(this$0, $error) {
|
|
820
|
+
return function () {
|
|
821
|
+
this$0.ym_1.dm($error);
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
function TolerantAccumulate$_get_latestError_$lambda_m5qmvg(this$0, $error) {
|
|
825
|
+
return function () {
|
|
826
|
+
this$0.ym_1.dm($error);
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
function TolerantAccumulate(underlying, raise) {
|
|
830
|
+
this.xm_1 = underlying;
|
|
831
|
+
this.ym_1 = raise;
|
|
832
|
+
}
|
|
833
|
+
protoOf(TolerantAccumulate).bm = function (errors) {
|
|
834
|
+
var error = this.xm_1.bm(errors);
|
|
835
|
+
return new Error_0(TolerantAccumulate$accumulateAll$lambda(this, error));
|
|
836
|
+
};
|
|
837
|
+
protoOf(TolerantAccumulate).cm = function () {
|
|
838
|
+
var tmp0_elvis_lhs = this.xm_1.cm();
|
|
719
839
|
var tmp;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
tmp_0 = true;
|
|
840
|
+
if (tmp0_elvis_lhs == null) {
|
|
841
|
+
return null;
|
|
723
842
|
} else {
|
|
724
|
-
|
|
843
|
+
tmp = tmp0_elvis_lhs;
|
|
725
844
|
}
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
845
|
+
var error = tmp;
|
|
846
|
+
return new Error_0(TolerantAccumulate$_get_latestError_$lambda_m5qmvg(this, error));
|
|
847
|
+
};
|
|
848
|
+
function NoTrace(raised, raise) {
|
|
849
|
+
// Inline function 'arrow.core.raise.RaiseCancellationExceptionLike.Companion.invoke' call
|
|
850
|
+
// Inline function 'arrow.core.raise.arrow_core_raise_RaiseCancellationExceptionLike_Companion_4uj3tt_invoke_jkqnwo' call
|
|
851
|
+
var surrogateError = {raised: raised, raise: raise};
|
|
852
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
853
|
+
var cancellationExceptionPrototype = RaiseCancellationException.prototype;
|
|
854
|
+
// Inline function 'kotlin.require' call
|
|
855
|
+
if (!Reflect.setPrototypeOf(surrogateError, cancellationExceptionPrototype)) {
|
|
856
|
+
var message = 'Unknown error occurred while setting the prototype of constructed JS RaiseCancellationException. Please report this to the Arrow maintainers!';
|
|
857
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
730
858
|
}
|
|
731
|
-
|
|
859
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
860
|
+
surrogateError.message = "kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.";
|
|
861
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
862
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
863
|
+
return surrogateError;
|
|
732
864
|
}
|
|
733
|
-
function
|
|
734
|
-
|
|
735
|
-
captureStack(this,
|
|
865
|
+
function RaiseCancellationException(raised, raise) {
|
|
866
|
+
CancellationException_init_$Init$("kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.", this);
|
|
867
|
+
captureStack(this, RaiseCancellationException);
|
|
868
|
+
this.jm_1 = raised;
|
|
869
|
+
this.km_1 = raise;
|
|
736
870
|
}
|
|
871
|
+
protoOf(RaiseCancellationException).mm = function () {
|
|
872
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
873
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
874
|
+
var tmp1_elvis_lhs = this == null ? null : this.raised;
|
|
875
|
+
return tmp1_elvis_lhs == null ? this.jm_1 : tmp1_elvis_lhs;
|
|
876
|
+
};
|
|
877
|
+
protoOf(RaiseCancellationException).lm = function () {
|
|
878
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
879
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
880
|
+
var tmp1_elvis_lhs = this == null ? null : this.raise;
|
|
881
|
+
return tmp1_elvis_lhs == null ? this.km_1 : tmp1_elvis_lhs;
|
|
882
|
+
};
|
|
737
883
|
//region block: post-declaration
|
|
738
|
-
protoOf(
|
|
739
|
-
protoOf(
|
|
740
|
-
protoOf(DefaultRaise).cl = bind;
|
|
741
|
-
protoOf(DefaultRaise).dl = bindAll;
|
|
884
|
+
protoOf(DefaultRaise).hm = bind;
|
|
885
|
+
protoOf(DefaultRaise).im = bindAll;
|
|
742
886
|
defineProp(protoOf(Traced), 'cause', function () {
|
|
743
|
-
return this.
|
|
887
|
+
return this.f();
|
|
744
888
|
});
|
|
745
|
-
protoOf(RaiseAccumulate).
|
|
889
|
+
protoOf(RaiseAccumulate).hm = bind;
|
|
890
|
+
protoOf(ListAccumulate).vl = get_hasAccumulatedErrors;
|
|
891
|
+
protoOf(ListAccumulate).hm = bind;
|
|
892
|
+
protoOf(ListAccumulate).im = bindAll;
|
|
893
|
+
protoOf(TolerantAccumulate).vl = get_hasAccumulatedErrors;
|
|
746
894
|
//endregion
|
|
747
895
|
//region block: init
|
|
896
|
+
Companion_instance = new Companion();
|
|
748
897
|
Companion_instance_1 = new Companion_1();
|
|
898
|
+
Companion_instance_3 = new Companion_3();
|
|
749
899
|
//endregion
|
|
750
900
|
//region block: exports
|
|
751
901
|
export {
|
|
902
|
+
Accumulate as Accumulatetn22lb890sw8,
|
|
752
903
|
DefaultRaise as DefaultRaisevd10gc79qxh8,
|
|
904
|
+
Ok as Ok34wu1ak8me96e,
|
|
753
905
|
RaiseAccumulate as RaiseAccumulate2o7u6yworjh4r,
|
|
754
906
|
RaiseCancellationException as RaiseCancellationException3n5raogfhbd1l,
|
|
755
907
|
raisedOrRethrow as raisedOrRethrow397oyvsdde7oq,
|
|
908
|
+
tolerant as tolerant3ssb6n4boclwz,
|
|
756
909
|
Left as Left2oemzq1tpcg4i,
|
|
757
910
|
Right as Right351sh2v8odavg,
|
|
758
911
|
NonEmptyList as NonEmptyList3ak25ihy2gcvs,
|
|
759
912
|
NonEmptySet as NonEmptySet1rtvr2guloo52,
|
|
760
913
|
collectionSizeOrDefault_0 as collectionSizeOrDefault1zz83yvv4yhu7,
|
|
761
|
-
curried as curriedvu30mssefbqd,
|
|
762
914
|
flattenOrAccumulate as flattenOrAccumulate2y8lovwjnlzgc,
|
|
763
915
|
left as left3pixsqou14wpr,
|
|
764
916
|
nonEmptyListOf as nonEmptyListOf17xawqyzwrlrt,
|
|
765
917
|
nonEmptySetOf as nonEmptySetOf3p7fhmt51pz4b,
|
|
766
|
-
nonFatalOrThrow as nonFatalOrThrow35agffkx4bbtz,
|
|
767
918
|
right as right2w60qw9uivnyr,
|
|
768
919
|
toNonEmptyListOrNull as toNonEmptyListOrNull2ovnnazjb3msz,
|
|
769
920
|
toNonEmptySetOrNull as toNonEmptySetOrNull1tjnd9jrkd4bs,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
921
|
+
RaiseAccumulate_init_$Create$ as RaiseAccumulate_init_$Create$3rhazzjk88u9p,
|
|
922
|
+
_NonEmptyList___init__impl__fxd0xp as _NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f,
|
|
923
|
+
_NonEmptyList___init__impl__fxd0xp_0 as _NonEmptyList___init__impl__fxd0xp24i0hfob3w7cz,
|
|
924
|
+
_NonEmptyList___get_all__impl__pmf509 as _NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa,
|
|
925
|
+
NonEmptyList__hashCode_impl_38rpg4 as NonEmptyList__hashCode_impl_38rpg43o7ncsaqtj80v,
|
|
926
|
+
_NonEmptyList___get_head__impl__q9oenq as _NonEmptyList___get_head__impl__q9oenqsmg81ccx44c4,
|
|
927
|
+
NonEmptyList__plus_impl_xqmb9 as NonEmptyList__plus_impl_xqmb91y38uyofmba13,
|
|
928
|
+
NonEmptyList__plus_impl_xqmb9_0 as NonEmptyList__plus_impl_xqmb92tle8a7jcf2wm,
|
|
929
|
+
_NonEmptyList___get_tail__impl__t91bd2 as _NonEmptyList___get_tail__impl__t91bd2au7n33fchlyi,
|
|
930
|
+
NonEmptyList__toList_impl_t5xcy2 as NonEmptyList__toList_impl_t5xcy2362qtlja6arn8,
|
|
931
|
+
NonEmptyList__toString_impl_ozxm8z as NonEmptyList__toString_impl_ozxm8z3fpdpo2u5moub,
|
|
932
|
+
NonEmptySet__flatMap_impl_ovm5jg as NonEmptySet__flatMap_impl_ovm5jg1j1barqpxmulx,
|
|
933
|
+
NonEmptySet__hashCode_impl_co6mds as NonEmptySet__hashCode_impl_co6mds289rsl9k37rro,
|
|
934
|
+
NonEmptySet__map_impl_ngjswd as NonEmptySet__map_impl_ngjswdysdff23qrf5g,
|
|
935
|
+
NonEmptySet__toString_impl_yfcj6n as NonEmptySet__toString_impl_yfcj6n10o2ez3sxh9oh,
|
|
936
|
+
Companion_instance_1 as Companion_instance139l85s51p6ol,
|
|
937
|
+
Companion_getInstance_0 as Companion_getInstance2kuapxztveanf,
|
|
775
938
|
};
|
|
776
939
|
//endregion
|
|
777
940
|
|