@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,3170 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var AbstractList = kotlin_kotlin.$_$.t5;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
7
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
8
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
9
|
+
var KtList = kotlin_kotlin.$_$.f6;
|
|
10
|
+
var Collection = kotlin_kotlin.$_$.a6;
|
|
11
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ud;
|
|
12
|
+
var KtMutableMap = kotlin_kotlin.$_$.l6;
|
|
13
|
+
var KtMap = kotlin_kotlin.$_$.h6;
|
|
14
|
+
var isInterface = kotlin_kotlin.$_$.fe;
|
|
15
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.g2;
|
|
16
|
+
var copyOf = kotlin_kotlin.$_$.q7;
|
|
17
|
+
var THROW_CCE = kotlin_kotlin.$_$.wk;
|
|
18
|
+
var isArray = kotlin_kotlin.$_$.xd;
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
20
|
+
var toString = kotlin_kotlin.$_$.we;
|
|
21
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
22
|
+
var coerceAtMost = kotlin_kotlin.$_$.ff;
|
|
23
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rd;
|
|
24
|
+
var indexOf = kotlin_kotlin.$_$.m8;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
26
|
+
var AbstractMap = kotlin_kotlin.$_$.u5;
|
|
27
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
28
|
+
var AbstractMutableMap = kotlin_kotlin.$_$.w5;
|
|
29
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
30
|
+
var ConcurrentModificationException_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
31
|
+
var MutableEntry = kotlin_kotlin.$_$.k6;
|
|
32
|
+
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.p2;
|
|
33
|
+
var AbstractMutableSet = kotlin_kotlin.$_$.x5;
|
|
34
|
+
var KtMutableSet = kotlin_kotlin.$_$.m6;
|
|
35
|
+
var AbstractMutableCollection = kotlin_kotlin.$_$.v5;
|
|
36
|
+
var MutableIterable = kotlin_kotlin.$_$.i6;
|
|
37
|
+
var Entry = kotlin_kotlin.$_$.g6;
|
|
38
|
+
var toString_0 = kotlin_kotlin.$_$.bm;
|
|
39
|
+
var AbstractSet = kotlin_kotlin.$_$.y5;
|
|
40
|
+
var KtSet = kotlin_kotlin.$_$.n6;
|
|
41
|
+
var AbstractCollection = kotlin_kotlin.$_$.s5;
|
|
42
|
+
var objectCreate = kotlin_kotlin.$_$.se;
|
|
43
|
+
var until = kotlin_kotlin.$_$.lf;
|
|
44
|
+
var step = kotlin_kotlin.$_$.kf;
|
|
45
|
+
var countOneBits = kotlin_kotlin.$_$.ll;
|
|
46
|
+
var takeLowestOneBit = kotlin_kotlin.$_$.yl;
|
|
47
|
+
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.b2;
|
|
48
|
+
var arrayCopy = kotlin_kotlin.$_$.p6;
|
|
49
|
+
var ensureNotNull = kotlin_kotlin.$_$.ol;
|
|
50
|
+
var ConcurrentModificationException_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
51
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wd;
|
|
52
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.f2;
|
|
53
|
+
var AssertionError_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
54
|
+
//endregion
|
|
55
|
+
//region block: pre-declaration
|
|
56
|
+
function subList(fromIndex, toIndex) {
|
|
57
|
+
return new SubList(this, fromIndex, toIndex);
|
|
58
|
+
}
|
|
59
|
+
initMetadataForInterface(ImmutableList, 'ImmutableList', VOID, VOID, [KtList, Collection]);
|
|
60
|
+
initMetadataForClass(SubList, 'SubList', VOID, AbstractList, [ImmutableList, AbstractList]);
|
|
61
|
+
initMetadataForInterface(Builder, 'Builder', VOID, VOID, [KtMutableMap]);
|
|
62
|
+
initMetadataForInterface(ImmutableMap, 'ImmutableMap', VOID, VOID, [KtMap]);
|
|
63
|
+
initMetadataForInterface(PersistentMap, 'PersistentMap', VOID, VOID, [ImmutableMap]);
|
|
64
|
+
initMetadataForClass(AbstractListIterator, 'AbstractListIterator');
|
|
65
|
+
initMetadataForClass(AbstractPersistentList, 'AbstractPersistentList', VOID, AbstractList, [Collection, ImmutableList, AbstractList]);
|
|
66
|
+
initMetadataForClass(BufferIterator, 'BufferIterator', VOID, AbstractListIterator);
|
|
67
|
+
initMetadataForClass(PersistentVector, 'PersistentVector', VOID, AbstractPersistentList, [Collection, ImmutableList, AbstractPersistentList]);
|
|
68
|
+
initMetadataForClass(PersistentVectorIterator, 'PersistentVectorIterator', VOID, AbstractListIterator);
|
|
69
|
+
initMetadataForCompanion(Companion);
|
|
70
|
+
initMetadataForClass(SmallPersistentVector, 'SmallPersistentVector', VOID, AbstractPersistentList, [ImmutableList, AbstractPersistentList]);
|
|
71
|
+
initMetadataForClass(TrieIterator, 'TrieIterator', VOID, AbstractListIterator);
|
|
72
|
+
initMetadataForCompanion(Companion_0);
|
|
73
|
+
initMetadataForClass(PersistentHashMap, 'PersistentHashMap', VOID, AbstractMap, [AbstractMap, PersistentMap]);
|
|
74
|
+
initMetadataForClass(PersistentHashMapBuilder, 'PersistentHashMapBuilder', VOID, AbstractMutableMap, [Builder, AbstractMutableMap]);
|
|
75
|
+
initMetadataForClass(PersistentHashMapBuilderEntriesIterator, 'PersistentHashMapBuilderEntriesIterator');
|
|
76
|
+
initMetadataForClass(PersistentHashMapBaseIterator, 'PersistentHashMapBaseIterator');
|
|
77
|
+
initMetadataForClass(PersistentHashMapBuilderBaseIterator, 'PersistentHashMapBuilderBaseIterator', VOID, PersistentHashMapBaseIterator);
|
|
78
|
+
initMetadataForClass(PersistentHashMapBuilderKeysIterator, 'PersistentHashMapBuilderKeysIterator', VOID, PersistentHashMapBuilderBaseIterator);
|
|
79
|
+
initMetadataForClass(PersistentHashMapBuilderValuesIterator, 'PersistentHashMapBuilderValuesIterator', VOID, PersistentHashMapBuilderBaseIterator);
|
|
80
|
+
initMetadataForClass(TrieNodeBaseIterator, 'TrieNodeBaseIterator');
|
|
81
|
+
initMetadataForClass(TrieNodeMutableEntriesIterator, 'TrieNodeMutableEntriesIterator', VOID, TrieNodeBaseIterator);
|
|
82
|
+
initMetadataForClass(MapEntry, 'MapEntry', VOID, VOID, [Entry]);
|
|
83
|
+
initMetadataForClass(MutableMapEntry, 'MutableMapEntry', VOID, MapEntry, [MapEntry, MutableEntry]);
|
|
84
|
+
initMetadataForClass(AbstractMapBuilderEntries, 'AbstractMapBuilderEntries', VOID, AbstractMutableSet);
|
|
85
|
+
initMetadataForClass(PersistentHashMapBuilderEntries, 'PersistentHashMapBuilderEntries', VOID, AbstractMapBuilderEntries);
|
|
86
|
+
initMetadataForClass(PersistentHashMapBuilderKeys, 'PersistentHashMapBuilderKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
87
|
+
initMetadataForClass(PersistentHashMapBuilderValues, 'PersistentHashMapBuilderValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
|
|
88
|
+
initMetadataForClass(PersistentHashMapKeysIterator, 'PersistentHashMapKeysIterator', VOID, PersistentHashMapBaseIterator);
|
|
89
|
+
initMetadataForClass(PersistentHashMapValuesIterator, 'PersistentHashMapValuesIterator', VOID, PersistentHashMapBaseIterator);
|
|
90
|
+
initMetadataForClass(PersistentHashMapEntriesIterator, 'PersistentHashMapEntriesIterator', VOID, PersistentHashMapBaseIterator);
|
|
91
|
+
initMetadataForClass(TrieNodeKeysIterator, 'TrieNodeKeysIterator', TrieNodeKeysIterator, TrieNodeBaseIterator);
|
|
92
|
+
initMetadataForClass(TrieNodeValuesIterator, 'TrieNodeValuesIterator', TrieNodeValuesIterator, TrieNodeBaseIterator);
|
|
93
|
+
initMetadataForClass(TrieNodeEntriesIterator, 'TrieNodeEntriesIterator', TrieNodeEntriesIterator, TrieNodeBaseIterator);
|
|
94
|
+
initMetadataForClass(PersistentHashMapKeys, 'PersistentHashMapKeys', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
|
|
95
|
+
initMetadataForClass(PersistentHashMapValues, 'PersistentHashMapValues', VOID, AbstractCollection, [Collection, AbstractCollection]);
|
|
96
|
+
initMetadataForClass(PersistentHashMapEntries, 'PersistentHashMapEntries', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
|
|
97
|
+
initMetadataForClass(ModificationResult, 'ModificationResult');
|
|
98
|
+
initMetadataForCompanion(Companion_1);
|
|
99
|
+
initMetadataForClass(TrieNode, 'TrieNode');
|
|
100
|
+
initMetadataForCompanion(Companion_2);
|
|
101
|
+
initMetadataForClass(PersistentOrderedMap, 'PersistentOrderedMap', VOID, AbstractMap, [AbstractMap, PersistentMap]);
|
|
102
|
+
initMetadataForClass(LinkedValue, 'LinkedValue');
|
|
103
|
+
initMetadataForClass(PersistentOrderedMapBuilder, 'PersistentOrderedMapBuilder', VOID, AbstractMutableMap, [AbstractMutableMap, Builder]);
|
|
104
|
+
initMetadataForClass(PersistentOrderedMapBuilderEntriesIterator, 'PersistentOrderedMapBuilderEntriesIterator');
|
|
105
|
+
initMetadataForClass(PersistentOrderedMapBuilderKeysIterator, 'PersistentOrderedMapBuilderKeysIterator');
|
|
106
|
+
initMetadataForClass(PersistentOrderedMapBuilderValuesIterator, 'PersistentOrderedMapBuilderValuesIterator');
|
|
107
|
+
initMetadataForClass(PersistentOrderedMapBuilderLinksIterator, 'PersistentOrderedMapBuilderLinksIterator');
|
|
108
|
+
initMetadataForClass(MutableMapEntry_0, 'MutableMapEntry', VOID, MapEntry, [MapEntry, MutableEntry]);
|
|
109
|
+
initMetadataForClass(PersistentOrderedMapBuilderEntries, 'PersistentOrderedMapBuilderEntries', VOID, AbstractMapBuilderEntries);
|
|
110
|
+
initMetadataForClass(PersistentOrderedMapBuilderKeys, 'PersistentOrderedMapBuilderKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
111
|
+
initMetadataForClass(PersistentOrderedMapBuilderValues, 'PersistentOrderedMapBuilderValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
|
|
112
|
+
initMetadataForClass(PersistentOrderedMapKeysIterator, 'PersistentOrderedMapKeysIterator');
|
|
113
|
+
initMetadataForClass(PersistentOrderedMapValuesIterator, 'PersistentOrderedMapValuesIterator');
|
|
114
|
+
initMetadataForClass(PersistentOrderedMapEntriesIterator, 'PersistentOrderedMapEntriesIterator');
|
|
115
|
+
initMetadataForClass(PersistentOrderedMapLinksIterator, 'PersistentOrderedMapLinksIterator');
|
|
116
|
+
initMetadataForClass(PersistentOrderedMapKeys, 'PersistentOrderedMapKeys', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
|
|
117
|
+
initMetadataForClass(PersistentOrderedMapValues, 'PersistentOrderedMapValues', VOID, AbstractCollection, [Collection, AbstractCollection]);
|
|
118
|
+
initMetadataForClass(PersistentOrderedMapEntries, 'PersistentOrderedMapEntries', VOID, AbstractSet, [Collection, KtSet, AbstractSet]);
|
|
119
|
+
initMetadataForCompanion(Companion_3);
|
|
120
|
+
initMetadataForClass(PersistentOrderedSet, 'PersistentOrderedSet', VOID, AbstractSet, [AbstractSet, KtSet, Collection]);
|
|
121
|
+
initMetadataForClass(Links, 'Links', Links_init_$Create$);
|
|
122
|
+
initMetadataForClass(PersistentOrderedSetBuilder, 'PersistentOrderedSetBuilder', VOID, AbstractMutableSet, [AbstractMutableSet, MutableIterable, Collection, KtMutableSet]);
|
|
123
|
+
initMetadataForClass(PersistentOrderedSetIterator, 'PersistentOrderedSetIterator');
|
|
124
|
+
initMetadataForObject(EndOfChain, 'EndOfChain');
|
|
125
|
+
initMetadataForObject(ListImplementation, 'ListImplementation');
|
|
126
|
+
initMetadataForObject(MapImplementation, 'MapImplementation');
|
|
127
|
+
initMetadataForClass(MutabilityOwnership, 'MutabilityOwnership', MutabilityOwnership);
|
|
128
|
+
initMetadataForClass(DeltaCounter, 'DeltaCounter', DeltaCounter);
|
|
129
|
+
//endregion
|
|
130
|
+
function SubList(source, fromIndex, toIndex) {
|
|
131
|
+
AbstractList.call(this);
|
|
132
|
+
this.p99_1 = source;
|
|
133
|
+
this.q99_1 = fromIndex;
|
|
134
|
+
this.r99_1 = toIndex;
|
|
135
|
+
this.s99_1 = 0;
|
|
136
|
+
ListImplementation_instance.t99(this.q99_1, this.r99_1, this.p99_1.o());
|
|
137
|
+
this.s99_1 = this.r99_1 - this.q99_1 | 0;
|
|
138
|
+
}
|
|
139
|
+
protoOf(SubList).p = function (index) {
|
|
140
|
+
ListImplementation_instance.u99(index, this.s99_1);
|
|
141
|
+
return this.p99_1.p(this.q99_1 + index | 0);
|
|
142
|
+
};
|
|
143
|
+
protoOf(SubList).o = function () {
|
|
144
|
+
return this.s99_1;
|
|
145
|
+
};
|
|
146
|
+
protoOf(SubList).z1 = function (fromIndex, toIndex) {
|
|
147
|
+
ListImplementation_instance.t99(fromIndex, toIndex, this.s99_1);
|
|
148
|
+
return new SubList(this.p99_1, this.q99_1 + fromIndex | 0, this.q99_1 + toIndex | 0);
|
|
149
|
+
};
|
|
150
|
+
function ImmutableList() {
|
|
151
|
+
}
|
|
152
|
+
function Builder() {
|
|
153
|
+
}
|
|
154
|
+
function PersistentMap() {
|
|
155
|
+
}
|
|
156
|
+
function ImmutableMap() {
|
|
157
|
+
}
|
|
158
|
+
function persistentSetOf() {
|
|
159
|
+
return Companion_getInstance_3().x99();
|
|
160
|
+
}
|
|
161
|
+
function persistentMapOf() {
|
|
162
|
+
return Companion_getInstance_2().z99();
|
|
163
|
+
}
|
|
164
|
+
function persistentListOf() {
|
|
165
|
+
return persistentVectorOf();
|
|
166
|
+
}
|
|
167
|
+
function toImmutableMap(_this__u8e3s4) {
|
|
168
|
+
var tmp0_elvis_lhs = isInterface(_this__u8e3s4, ImmutableMap) ? _this__u8e3s4 : null;
|
|
169
|
+
var tmp;
|
|
170
|
+
if (tmp0_elvis_lhs == null) {
|
|
171
|
+
var tmp1_safe_receiver = isInterface(_this__u8e3s4, Builder) ? _this__u8e3s4 : null;
|
|
172
|
+
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h2u();
|
|
173
|
+
} else {
|
|
174
|
+
tmp = tmp0_elvis_lhs;
|
|
175
|
+
}
|
|
176
|
+
var tmp2_elvis_lhs = tmp;
|
|
177
|
+
return tmp2_elvis_lhs == null ? persistentMapOf().v99(_this__u8e3s4) : tmp2_elvis_lhs;
|
|
178
|
+
}
|
|
179
|
+
function AbstractListIterator(index, size) {
|
|
180
|
+
this.a9a_1 = index;
|
|
181
|
+
this.b9a_1 = size;
|
|
182
|
+
}
|
|
183
|
+
protoOf(AbstractListIterator).m = function () {
|
|
184
|
+
return this.a9a_1 < this.b9a_1;
|
|
185
|
+
};
|
|
186
|
+
protoOf(AbstractListIterator).d4 = function () {
|
|
187
|
+
return this.a9a_1 > 0;
|
|
188
|
+
};
|
|
189
|
+
protoOf(AbstractListIterator).e4 = function () {
|
|
190
|
+
return this.a9a_1;
|
|
191
|
+
};
|
|
192
|
+
protoOf(AbstractListIterator).g4 = function () {
|
|
193
|
+
return this.a9a_1 - 1 | 0;
|
|
194
|
+
};
|
|
195
|
+
protoOf(AbstractListIterator).c9a = function () {
|
|
196
|
+
if (!this.m())
|
|
197
|
+
throw NoSuchElementException_init_$Create$();
|
|
198
|
+
};
|
|
199
|
+
protoOf(AbstractListIterator).d9a = function () {
|
|
200
|
+
if (!this.d4())
|
|
201
|
+
throw NoSuchElementException_init_$Create$();
|
|
202
|
+
};
|
|
203
|
+
function AbstractPersistentList() {
|
|
204
|
+
AbstractList.call(this);
|
|
205
|
+
}
|
|
206
|
+
protoOf(AbstractPersistentList).z1 = function (fromIndex, toIndex) {
|
|
207
|
+
return subList.call(this, fromIndex, toIndex);
|
|
208
|
+
};
|
|
209
|
+
protoOf(AbstractPersistentList).t = function (element) {
|
|
210
|
+
return !(this.u(element) === -1);
|
|
211
|
+
};
|
|
212
|
+
protoOf(AbstractPersistentList).x1 = function (elements) {
|
|
213
|
+
var tmp$ret$0;
|
|
214
|
+
$l$block_0: {
|
|
215
|
+
// Inline function 'kotlin.collections.all' call
|
|
216
|
+
var tmp;
|
|
217
|
+
if (isInterface(elements, Collection)) {
|
|
218
|
+
tmp = elements.r();
|
|
219
|
+
} else {
|
|
220
|
+
tmp = false;
|
|
221
|
+
}
|
|
222
|
+
if (tmp) {
|
|
223
|
+
tmp$ret$0 = true;
|
|
224
|
+
break $l$block_0;
|
|
225
|
+
}
|
|
226
|
+
var _iterator__ex2g4s = elements.l();
|
|
227
|
+
while (_iterator__ex2g4s.m()) {
|
|
228
|
+
var element = _iterator__ex2g4s.n();
|
|
229
|
+
if (!this.t(element)) {
|
|
230
|
+
tmp$ret$0 = false;
|
|
231
|
+
break $l$block_0;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
tmp$ret$0 = true;
|
|
235
|
+
}
|
|
236
|
+
return tmp$ret$0;
|
|
237
|
+
};
|
|
238
|
+
protoOf(AbstractPersistentList).l = function () {
|
|
239
|
+
return this.y1();
|
|
240
|
+
};
|
|
241
|
+
protoOf(AbstractPersistentList).y1 = function () {
|
|
242
|
+
return this.s(0);
|
|
243
|
+
};
|
|
244
|
+
function BufferIterator(buffer, index, size) {
|
|
245
|
+
AbstractListIterator.call(this, index, size);
|
|
246
|
+
this.g9a_1 = buffer;
|
|
247
|
+
}
|
|
248
|
+
protoOf(BufferIterator).n = function () {
|
|
249
|
+
if (!this.m()) {
|
|
250
|
+
throw NoSuchElementException_init_$Create$();
|
|
251
|
+
}
|
|
252
|
+
var _unary__edvuaz = this.a9a_1;
|
|
253
|
+
this.a9a_1 = _unary__edvuaz + 1 | 0;
|
|
254
|
+
return this.g9a_1[_unary__edvuaz];
|
|
255
|
+
};
|
|
256
|
+
protoOf(BufferIterator).f4 = function () {
|
|
257
|
+
if (!this.d4()) {
|
|
258
|
+
throw NoSuchElementException_init_$Create$();
|
|
259
|
+
}
|
|
260
|
+
this.a9a_1 = this.a9a_1 - 1 | 0;
|
|
261
|
+
return this.g9a_1[this.a9a_1];
|
|
262
|
+
};
|
|
263
|
+
function rootSize($this) {
|
|
264
|
+
return rootSize_0($this.j9a_1);
|
|
265
|
+
}
|
|
266
|
+
function pushFilledTail($this, root, filledTail, newTail) {
|
|
267
|
+
if ($this.j9a_1 >> 5 > 1 << $this.k9a_1) {
|
|
268
|
+
var newRoot = presizedBufferWith(root);
|
|
269
|
+
var newRootShift = $this.k9a_1 + 5 | 0;
|
|
270
|
+
newRoot = pushTail($this, newRoot, newRootShift, filledTail);
|
|
271
|
+
return new PersistentVector(newRoot, newTail, $this.j9a_1 + 1 | 0, newRootShift);
|
|
272
|
+
}
|
|
273
|
+
var newRoot_0 = pushTail($this, root, $this.k9a_1, filledTail);
|
|
274
|
+
return new PersistentVector(newRoot_0, newTail, $this.j9a_1 + 1 | 0, $this.k9a_1);
|
|
275
|
+
}
|
|
276
|
+
function pushTail($this, root, shift, tail) {
|
|
277
|
+
var bufferIndex = indexSegment($this.j9a_1 - 1 | 0, shift);
|
|
278
|
+
var tmp1_elvis_lhs = root == null ? null : copyOf(root, 32);
|
|
279
|
+
var tmp;
|
|
280
|
+
if (tmp1_elvis_lhs == null) {
|
|
281
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
282
|
+
tmp = Array(32);
|
|
283
|
+
} else {
|
|
284
|
+
tmp = tmp1_elvis_lhs;
|
|
285
|
+
}
|
|
286
|
+
var newRootNode = tmp;
|
|
287
|
+
if (shift === 5) {
|
|
288
|
+
newRootNode[bufferIndex] = tail;
|
|
289
|
+
} else {
|
|
290
|
+
var tmp_0 = newRootNode[bufferIndex];
|
|
291
|
+
newRootNode[bufferIndex] = pushTail($this, (tmp_0 == null ? true : isArray(tmp_0)) ? tmp_0 : THROW_CCE(), shift - 5 | 0, tail);
|
|
292
|
+
}
|
|
293
|
+
return newRootNode;
|
|
294
|
+
}
|
|
295
|
+
function bufferFor($this, index) {
|
|
296
|
+
if (rootSize($this) <= index) {
|
|
297
|
+
return $this.i9a_1;
|
|
298
|
+
}
|
|
299
|
+
var buffer = $this.h9a_1;
|
|
300
|
+
var shift = $this.k9a_1;
|
|
301
|
+
while (shift > 0) {
|
|
302
|
+
var tmp = buffer[indexSegment(index, shift)];
|
|
303
|
+
buffer = (!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE();
|
|
304
|
+
shift = shift - 5 | 0;
|
|
305
|
+
}
|
|
306
|
+
return buffer;
|
|
307
|
+
}
|
|
308
|
+
function PersistentVector(root, tail, size, rootShift) {
|
|
309
|
+
AbstractPersistentList.call(this);
|
|
310
|
+
this.h9a_1 = root;
|
|
311
|
+
this.i9a_1 = tail;
|
|
312
|
+
this.j9a_1 = size;
|
|
313
|
+
this.k9a_1 = rootShift;
|
|
314
|
+
// Inline function 'kotlin.require' call
|
|
315
|
+
if (!(this.j9a_1 > 32)) {
|
|
316
|
+
var message = 'Trie-based persistent vector should have at least 33 elements, got ' + this.j9a_1;
|
|
317
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
318
|
+
}
|
|
319
|
+
assert((this.j9a_1 - rootSize_0(this.j9a_1) | 0) <= coerceAtMost(this.i9a_1.length, 32));
|
|
320
|
+
}
|
|
321
|
+
protoOf(PersistentVector).o = function () {
|
|
322
|
+
return this.j9a_1;
|
|
323
|
+
};
|
|
324
|
+
protoOf(PersistentVector).j = function (element) {
|
|
325
|
+
var tailSize = this.j9a_1 - rootSize(this) | 0;
|
|
326
|
+
if (tailSize < 32) {
|
|
327
|
+
var newTail = copyOf(this.i9a_1, 32);
|
|
328
|
+
newTail[tailSize] = element;
|
|
329
|
+
return new PersistentVector(this.h9a_1, newTail, this.j9a_1 + 1 | 0, this.k9a_1);
|
|
330
|
+
}
|
|
331
|
+
var newTail_0 = presizedBufferWith(element);
|
|
332
|
+
return pushFilledTail(this, this.h9a_1, this.i9a_1, newTail_0);
|
|
333
|
+
};
|
|
334
|
+
protoOf(PersistentVector).s = function (index) {
|
|
335
|
+
ListImplementation_instance.l9a(index, this.j9a_1);
|
|
336
|
+
var tmp = this.i9a_1;
|
|
337
|
+
return new PersistentVectorIterator(this.h9a_1, isArray(tmp) ? tmp : THROW_CCE(), index, this.j9a_1, (this.k9a_1 / 5 | 0) + 1 | 0);
|
|
338
|
+
};
|
|
339
|
+
protoOf(PersistentVector).p = function (index) {
|
|
340
|
+
ListImplementation_instance.u99(index, this.j9a_1);
|
|
341
|
+
var buffer = bufferFor(this, index);
|
|
342
|
+
var tmp = buffer[index & 31];
|
|
343
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
344
|
+
};
|
|
345
|
+
function PersistentVectorIterator(root, tail, index, size, trieHeight) {
|
|
346
|
+
AbstractListIterator.call(this, index, size);
|
|
347
|
+
this.o9a_1 = tail;
|
|
348
|
+
var trieSize = rootSize_0(size);
|
|
349
|
+
var trieIndex = coerceAtMost(index, trieSize);
|
|
350
|
+
this.p9a_1 = new TrieIterator(root, trieIndex, trieSize, trieHeight);
|
|
351
|
+
}
|
|
352
|
+
protoOf(PersistentVectorIterator).n = function () {
|
|
353
|
+
this.c9a();
|
|
354
|
+
if (this.p9a_1.m()) {
|
|
355
|
+
this.a9a_1 = this.a9a_1 + 1 | 0;
|
|
356
|
+
return this.p9a_1.n();
|
|
357
|
+
}
|
|
358
|
+
var _unary__edvuaz = this.a9a_1;
|
|
359
|
+
this.a9a_1 = _unary__edvuaz + 1 | 0;
|
|
360
|
+
return this.o9a_1[_unary__edvuaz - this.p9a_1.b9a_1 | 0];
|
|
361
|
+
};
|
|
362
|
+
protoOf(PersistentVectorIterator).f4 = function () {
|
|
363
|
+
this.d9a();
|
|
364
|
+
if (this.a9a_1 > this.p9a_1.b9a_1) {
|
|
365
|
+
this.a9a_1 = this.a9a_1 - 1 | 0;
|
|
366
|
+
return this.o9a_1[this.a9a_1 - this.p9a_1.b9a_1 | 0];
|
|
367
|
+
}
|
|
368
|
+
this.a9a_1 = this.a9a_1 - 1 | 0;
|
|
369
|
+
return this.p9a_1.f4();
|
|
370
|
+
};
|
|
371
|
+
function Companion() {
|
|
372
|
+
Companion_instance = this;
|
|
373
|
+
var tmp = this;
|
|
374
|
+
// Inline function 'kotlin.emptyArray' call
|
|
375
|
+
var tmp$ret$0 = [];
|
|
376
|
+
tmp.v9a_1 = new SmallPersistentVector(tmp$ret$0);
|
|
377
|
+
}
|
|
378
|
+
var Companion_instance;
|
|
379
|
+
function Companion_getInstance() {
|
|
380
|
+
if (Companion_instance == null)
|
|
381
|
+
new Companion();
|
|
382
|
+
return Companion_instance;
|
|
383
|
+
}
|
|
384
|
+
function SmallPersistentVector(buffer) {
|
|
385
|
+
Companion_getInstance();
|
|
386
|
+
AbstractPersistentList.call(this);
|
|
387
|
+
this.w9a_1 = buffer;
|
|
388
|
+
assert(this.w9a_1.length <= 32);
|
|
389
|
+
}
|
|
390
|
+
protoOf(SmallPersistentVector).o = function () {
|
|
391
|
+
return this.w9a_1.length;
|
|
392
|
+
};
|
|
393
|
+
protoOf(SmallPersistentVector).j = function (element) {
|
|
394
|
+
if (this.o() < 32) {
|
|
395
|
+
var newBuffer = copyOf(this.w9a_1, this.o() + 1 | 0);
|
|
396
|
+
newBuffer[this.o()] = element;
|
|
397
|
+
return new SmallPersistentVector(newBuffer);
|
|
398
|
+
}
|
|
399
|
+
var tail = presizedBufferWith(element);
|
|
400
|
+
return new PersistentVector(this.w9a_1, tail, this.o() + 1 | 0, 0);
|
|
401
|
+
};
|
|
402
|
+
protoOf(SmallPersistentVector).u = function (element) {
|
|
403
|
+
return indexOf(this.w9a_1, element);
|
|
404
|
+
};
|
|
405
|
+
protoOf(SmallPersistentVector).s = function (index) {
|
|
406
|
+
ListImplementation_instance.l9a(index, this.o());
|
|
407
|
+
var tmp = this.w9a_1;
|
|
408
|
+
return new BufferIterator(isArray(tmp) ? tmp : THROW_CCE(), index, this.o());
|
|
409
|
+
};
|
|
410
|
+
protoOf(SmallPersistentVector).p = function (index) {
|
|
411
|
+
ListImplementation_instance.u99(index, this.o());
|
|
412
|
+
var tmp = this.w9a_1[index];
|
|
413
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
414
|
+
};
|
|
415
|
+
function fillPath($this, index, startLevel) {
|
|
416
|
+
var shift = imul($this.s9a_1 - startLevel | 0, 5);
|
|
417
|
+
var i = startLevel;
|
|
418
|
+
while (i < $this.s9a_1) {
|
|
419
|
+
var tmp = $this.t9a_1;
|
|
420
|
+
var tmp_0 = i;
|
|
421
|
+
var tmp_1 = $this.t9a_1[i - 1 | 0];
|
|
422
|
+
tmp[tmp_0] = ((!(tmp_1 == null) ? isArray(tmp_1) : false) ? tmp_1 : THROW_CCE())[indexSegment(index, shift)];
|
|
423
|
+
shift = shift - 5 | 0;
|
|
424
|
+
i = i + 1 | 0;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function fillPathIfNeeded($this, indexPredicate) {
|
|
428
|
+
var shift = 0;
|
|
429
|
+
while (indexSegment($this.a9a_1, shift) === indexPredicate) {
|
|
430
|
+
shift = shift + 5 | 0;
|
|
431
|
+
}
|
|
432
|
+
if (shift > 0) {
|
|
433
|
+
var level = ($this.s9a_1 - 1 | 0) - (shift / 5 | 0) | 0;
|
|
434
|
+
fillPath($this, $this.a9a_1, level + 1 | 0);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function elementAtCurrentIndex($this) {
|
|
438
|
+
var leafBufferIndex = $this.a9a_1 & 31;
|
|
439
|
+
var tmp = $this.t9a_1[$this.s9a_1 - 1 | 0];
|
|
440
|
+
return ((!(tmp == null) ? isArray(tmp) : false) ? tmp : THROW_CCE())[leafBufferIndex];
|
|
441
|
+
}
|
|
442
|
+
function TrieIterator(root, index, size, height) {
|
|
443
|
+
AbstractListIterator.call(this, index, size);
|
|
444
|
+
this.s9a_1 = height;
|
|
445
|
+
var tmp = this;
|
|
446
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
447
|
+
var size_0 = this.s9a_1;
|
|
448
|
+
tmp.t9a_1 = Array(size_0);
|
|
449
|
+
this.u9a_1 = index === size;
|
|
450
|
+
this.t9a_1[0] = root;
|
|
451
|
+
fillPath(this, index - (this.u9a_1 ? 1 : 0) | 0, 1);
|
|
452
|
+
}
|
|
453
|
+
protoOf(TrieIterator).n = function () {
|
|
454
|
+
if (!this.m()) {
|
|
455
|
+
throw NoSuchElementException_init_$Create$();
|
|
456
|
+
}
|
|
457
|
+
var result = elementAtCurrentIndex(this);
|
|
458
|
+
this.a9a_1 = this.a9a_1 + 1 | 0;
|
|
459
|
+
if (this.a9a_1 === this.b9a_1) {
|
|
460
|
+
this.u9a_1 = true;
|
|
461
|
+
return result;
|
|
462
|
+
}
|
|
463
|
+
fillPathIfNeeded(this, 0);
|
|
464
|
+
return result;
|
|
465
|
+
};
|
|
466
|
+
protoOf(TrieIterator).f4 = function () {
|
|
467
|
+
if (!this.d4()) {
|
|
468
|
+
throw NoSuchElementException_init_$Create$();
|
|
469
|
+
}
|
|
470
|
+
this.a9a_1 = this.a9a_1 - 1 | 0;
|
|
471
|
+
if (this.u9a_1) {
|
|
472
|
+
this.u9a_1 = false;
|
|
473
|
+
return elementAtCurrentIndex(this);
|
|
474
|
+
}
|
|
475
|
+
fillPathIfNeeded(this, 31);
|
|
476
|
+
return elementAtCurrentIndex(this);
|
|
477
|
+
};
|
|
478
|
+
function persistentVectorOf() {
|
|
479
|
+
return Companion_getInstance().v9a_1;
|
|
480
|
+
}
|
|
481
|
+
function presizedBufferWith(element) {
|
|
482
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
483
|
+
var buffer = Array(32);
|
|
484
|
+
buffer[0] = element;
|
|
485
|
+
return buffer;
|
|
486
|
+
}
|
|
487
|
+
function rootSize_0(vectorSize) {
|
|
488
|
+
return (vectorSize - 1 | 0) & -32;
|
|
489
|
+
}
|
|
490
|
+
function indexSegment(index, shift) {
|
|
491
|
+
return index >> shift & 31;
|
|
492
|
+
}
|
|
493
|
+
function createEntries($this) {
|
|
494
|
+
return new PersistentHashMapEntries($this);
|
|
495
|
+
}
|
|
496
|
+
function Companion_0() {
|
|
497
|
+
Companion_instance_0 = this;
|
|
498
|
+
this.x9a_1 = new PersistentHashMap(Companion_getInstance_1().y9a_1, 0);
|
|
499
|
+
}
|
|
500
|
+
protoOf(Companion_0).z99 = function () {
|
|
501
|
+
var tmp = this.x9a_1;
|
|
502
|
+
return tmp instanceof PersistentHashMap ? tmp : THROW_CCE();
|
|
503
|
+
};
|
|
504
|
+
var Companion_instance_0;
|
|
505
|
+
function Companion_getInstance_0() {
|
|
506
|
+
if (Companion_instance_0 == null)
|
|
507
|
+
new Companion_0();
|
|
508
|
+
return Companion_instance_0;
|
|
509
|
+
}
|
|
510
|
+
function PersistentHashMap$equals$lambda(a, b) {
|
|
511
|
+
return equals(a, b.z9a_1);
|
|
512
|
+
}
|
|
513
|
+
function PersistentHashMap$equals$lambda_0(a, b) {
|
|
514
|
+
return equals(a, b.z9a_1);
|
|
515
|
+
}
|
|
516
|
+
function PersistentHashMap$equals$lambda_1(a, b) {
|
|
517
|
+
return equals(a, b);
|
|
518
|
+
}
|
|
519
|
+
function PersistentHashMap$equals$lambda_2(a, b) {
|
|
520
|
+
return equals(a, b);
|
|
521
|
+
}
|
|
522
|
+
function PersistentHashMap(node, size) {
|
|
523
|
+
Companion_getInstance_0();
|
|
524
|
+
AbstractMap.call(this);
|
|
525
|
+
this.e9b_1 = node;
|
|
526
|
+
this.f9b_1 = size;
|
|
527
|
+
}
|
|
528
|
+
protoOf(PersistentHashMap).o = function () {
|
|
529
|
+
return this.f9b_1;
|
|
530
|
+
};
|
|
531
|
+
protoOf(PersistentHashMap).d2 = function () {
|
|
532
|
+
return new PersistentHashMapKeys(this);
|
|
533
|
+
};
|
|
534
|
+
protoOf(PersistentHashMap).e2 = function () {
|
|
535
|
+
return new PersistentHashMapValues(this);
|
|
536
|
+
};
|
|
537
|
+
protoOf(PersistentHashMap).w = function () {
|
|
538
|
+
return createEntries(this);
|
|
539
|
+
};
|
|
540
|
+
protoOf(PersistentHashMap).a2 = function (key) {
|
|
541
|
+
// Inline function 'kotlin.hashCode' call
|
|
542
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
543
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
544
|
+
return this.e9b_1.k9b(tmp$ret$0, key, 0);
|
|
545
|
+
};
|
|
546
|
+
protoOf(PersistentHashMap).c2 = function (key) {
|
|
547
|
+
// Inline function 'kotlin.hashCode' call
|
|
548
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
549
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
550
|
+
return this.e9b_1.l9b(tmp$ret$0, key, 0);
|
|
551
|
+
};
|
|
552
|
+
protoOf(PersistentHashMap).f2 = function (key, value) {
|
|
553
|
+
// Inline function 'kotlin.hashCode' call
|
|
554
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
555
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
556
|
+
var tmp0_elvis_lhs = this.e9b_1.m9b(tmp$ret$0, key, value, 0);
|
|
557
|
+
var tmp;
|
|
558
|
+
if (tmp0_elvis_lhs == null) {
|
|
559
|
+
return this;
|
|
560
|
+
} else {
|
|
561
|
+
tmp = tmp0_elvis_lhs;
|
|
562
|
+
}
|
|
563
|
+
var newNodeResult = tmp;
|
|
564
|
+
return new PersistentHashMap(newNodeResult.n9b_1, this.f9b_1 + newNodeResult.o9b_1 | 0);
|
|
565
|
+
};
|
|
566
|
+
protoOf(PersistentHashMap).g2 = function (key) {
|
|
567
|
+
// Inline function 'kotlin.hashCode' call
|
|
568
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
569
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
570
|
+
var newNode = this.e9b_1.p9b(tmp$ret$0, key, 0);
|
|
571
|
+
if (this.e9b_1 === newNode) {
|
|
572
|
+
return this;
|
|
573
|
+
}
|
|
574
|
+
if (newNode == null) {
|
|
575
|
+
return Companion_getInstance_0().z99();
|
|
576
|
+
}
|
|
577
|
+
return new PersistentHashMap(newNode, this.f9b_1 - 1 | 0);
|
|
578
|
+
};
|
|
579
|
+
protoOf(PersistentHashMap).v99 = function (m) {
|
|
580
|
+
if (m.r())
|
|
581
|
+
return this;
|
|
582
|
+
// Inline function 'kotlinx.collections.immutable.mutate' call
|
|
583
|
+
// Inline function 'kotlin.apply' call
|
|
584
|
+
var this_0 = (isInterface(this, PersistentMap) ? this : THROW_CCE()).z26();
|
|
585
|
+
this_0.h2(m);
|
|
586
|
+
return this_0.h2u();
|
|
587
|
+
};
|
|
588
|
+
protoOf(PersistentHashMap).z26 = function () {
|
|
589
|
+
return new PersistentHashMapBuilder(this);
|
|
590
|
+
};
|
|
591
|
+
protoOf(PersistentHashMap).equals = function (other) {
|
|
592
|
+
if (other === this)
|
|
593
|
+
return true;
|
|
594
|
+
if (!(!(other == null) ? isInterface(other, KtMap) : false))
|
|
595
|
+
return false;
|
|
596
|
+
if (!(this.f9b_1 === other.o()))
|
|
597
|
+
return false;
|
|
598
|
+
var tmp;
|
|
599
|
+
if (other instanceof PersistentOrderedMap) {
|
|
600
|
+
tmp = this.e9b_1.a9c(other.n9c_1.e9b_1, PersistentHashMap$equals$lambda);
|
|
601
|
+
} else {
|
|
602
|
+
if (other instanceof PersistentOrderedMapBuilder) {
|
|
603
|
+
var tmp_0 = other.i9c_1.w9b_1;
|
|
604
|
+
tmp = this.e9b_1.a9c(tmp_0, PersistentHashMap$equals$lambda_0);
|
|
605
|
+
} else {
|
|
606
|
+
if (other instanceof PersistentHashMap) {
|
|
607
|
+
tmp = this.e9b_1.a9c(other.e9b_1, PersistentHashMap$equals$lambda_1);
|
|
608
|
+
} else {
|
|
609
|
+
if (other instanceof PersistentHashMapBuilder) {
|
|
610
|
+
var tmp_1 = other.w9b_1;
|
|
611
|
+
tmp = this.e9b_1.a9c(tmp_1, PersistentHashMap$equals$lambda_2);
|
|
612
|
+
} else {
|
|
613
|
+
tmp = protoOf(AbstractMap).equals.call(this, other);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return tmp;
|
|
619
|
+
};
|
|
620
|
+
protoOf(PersistentHashMap).hashCode = function () {
|
|
621
|
+
return protoOf(AbstractMap).hashCode.call(this);
|
|
622
|
+
};
|
|
623
|
+
function PersistentHashMapBuilder$equals$lambda(a, b) {
|
|
624
|
+
return equals(a, b);
|
|
625
|
+
}
|
|
626
|
+
function PersistentHashMapBuilder$equals$lambda_0(a, b) {
|
|
627
|
+
return equals(a, b);
|
|
628
|
+
}
|
|
629
|
+
function PersistentHashMapBuilder$equals$lambda_1(a, b) {
|
|
630
|
+
return equals(a, b.z9a_1);
|
|
631
|
+
}
|
|
632
|
+
function PersistentHashMapBuilder$equals$lambda_2(a, b) {
|
|
633
|
+
return equals(a, b.z9a_1);
|
|
634
|
+
}
|
|
635
|
+
function PersistentHashMapBuilder(map) {
|
|
636
|
+
AbstractMutableMap.call(this);
|
|
637
|
+
this.u9b_1 = map;
|
|
638
|
+
this.v9b_1 = new MutabilityOwnership();
|
|
639
|
+
this.w9b_1 = map.e9b_1;
|
|
640
|
+
this.x9b_1 = null;
|
|
641
|
+
this.y9b_1 = 0;
|
|
642
|
+
this.z9b_1 = map.f9b_1;
|
|
643
|
+
}
|
|
644
|
+
protoOf(PersistentHashMapBuilder).o9c = function (value) {
|
|
645
|
+
if (!(value === this.w9b_1)) {
|
|
646
|
+
this.w9b_1 = value;
|
|
647
|
+
this.u9b_1 = null;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
protoOf(PersistentHashMapBuilder).p9c = function (value) {
|
|
651
|
+
this.z9b_1 = value;
|
|
652
|
+
this.y9b_1 = this.y9b_1 + 1 | 0;
|
|
653
|
+
};
|
|
654
|
+
protoOf(PersistentHashMapBuilder).o = function () {
|
|
655
|
+
return this.z9b_1;
|
|
656
|
+
};
|
|
657
|
+
protoOf(PersistentHashMapBuilder).h2u = function () {
|
|
658
|
+
var tmp0_elvis_lhs = this.u9b_1;
|
|
659
|
+
var tmp;
|
|
660
|
+
if (tmp0_elvis_lhs == null) {
|
|
661
|
+
// Inline function 'kotlin.run' call
|
|
662
|
+
var newlyBuiltMap = new PersistentHashMap(this.w9b_1, this.z9b_1);
|
|
663
|
+
this.u9b_1 = newlyBuiltMap;
|
|
664
|
+
this.v9b_1 = new MutabilityOwnership();
|
|
665
|
+
tmp = newlyBuiltMap;
|
|
666
|
+
} else {
|
|
667
|
+
tmp = tmp0_elvis_lhs;
|
|
668
|
+
}
|
|
669
|
+
return tmp;
|
|
670
|
+
};
|
|
671
|
+
protoOf(PersistentHashMapBuilder).w = function () {
|
|
672
|
+
return new PersistentHashMapBuilderEntries(this);
|
|
673
|
+
};
|
|
674
|
+
protoOf(PersistentHashMapBuilder).d2 = function () {
|
|
675
|
+
return new PersistentHashMapBuilderKeys(this);
|
|
676
|
+
};
|
|
677
|
+
protoOf(PersistentHashMapBuilder).e2 = function () {
|
|
678
|
+
return new PersistentHashMapBuilderValues(this);
|
|
679
|
+
};
|
|
680
|
+
protoOf(PersistentHashMapBuilder).a2 = function (key) {
|
|
681
|
+
var tmp = this.w9b_1;
|
|
682
|
+
// Inline function 'kotlin.hashCode' call
|
|
683
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
684
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
685
|
+
return tmp.k9b(tmp$ret$0, key, 0);
|
|
686
|
+
};
|
|
687
|
+
protoOf(PersistentHashMapBuilder).c2 = function (key) {
|
|
688
|
+
var tmp = this.w9b_1;
|
|
689
|
+
// Inline function 'kotlin.hashCode' call
|
|
690
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
691
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
692
|
+
return tmp.l9b(tmp$ret$0, key, 0);
|
|
693
|
+
};
|
|
694
|
+
protoOf(PersistentHashMapBuilder).f2 = function (key, value) {
|
|
695
|
+
this.x9b_1 = null;
|
|
696
|
+
var tmp = this.w9b_1;
|
|
697
|
+
// Inline function 'kotlin.hashCode' call
|
|
698
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
699
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
700
|
+
this.o9c(tmp.q9c(tmp$ret$0, key, value, 0, this));
|
|
701
|
+
return this.x9b_1;
|
|
702
|
+
};
|
|
703
|
+
protoOf(PersistentHashMapBuilder).h2 = function (from) {
|
|
704
|
+
if (from.r())
|
|
705
|
+
return Unit_instance;
|
|
706
|
+
var tmp0_elvis_lhs = from instanceof PersistentHashMap ? from : null;
|
|
707
|
+
var tmp;
|
|
708
|
+
if (tmp0_elvis_lhs == null) {
|
|
709
|
+
var tmp1_safe_receiver = from instanceof PersistentHashMapBuilder ? from : null;
|
|
710
|
+
tmp = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h2u();
|
|
711
|
+
} else {
|
|
712
|
+
tmp = tmp0_elvis_lhs;
|
|
713
|
+
}
|
|
714
|
+
var map = tmp;
|
|
715
|
+
if (!(map == null)) {
|
|
716
|
+
var intersectionCounter = new DeltaCounter();
|
|
717
|
+
var oldSize = this.z9b_1;
|
|
718
|
+
var tmp_0 = this.w9b_1;
|
|
719
|
+
var tmp_1 = map.e9b_1;
|
|
720
|
+
this.o9c(tmp_0.r9c(tmp_1 instanceof TrieNode ? tmp_1 : THROW_CCE(), 0, intersectionCounter, this));
|
|
721
|
+
var newSize = (oldSize + map.f9b_1 | 0) - intersectionCounter.s9c_1 | 0;
|
|
722
|
+
if (!(oldSize === newSize)) {
|
|
723
|
+
this.p9c(newSize);
|
|
724
|
+
}
|
|
725
|
+
} else {
|
|
726
|
+
protoOf(AbstractMutableMap).h2.call(this, from);
|
|
727
|
+
}
|
|
728
|
+
};
|
|
729
|
+
protoOf(PersistentHashMapBuilder).g2 = function (key) {
|
|
730
|
+
this.x9b_1 = null;
|
|
731
|
+
var tmp = this.w9b_1;
|
|
732
|
+
// Inline function 'kotlin.hashCode' call
|
|
733
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
734
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
735
|
+
var tmp0_elvis_lhs = tmp.t9c(tmp$ret$0, key, 0, this);
|
|
736
|
+
var tmp_0;
|
|
737
|
+
if (tmp0_elvis_lhs == null) {
|
|
738
|
+
var tmp_1 = Companion_getInstance_1().y9a_1;
|
|
739
|
+
tmp_0 = tmp_1 instanceof TrieNode ? tmp_1 : THROW_CCE();
|
|
740
|
+
} else {
|
|
741
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
742
|
+
}
|
|
743
|
+
this.o9c(tmp_0);
|
|
744
|
+
return this.x9b_1;
|
|
745
|
+
};
|
|
746
|
+
protoOf(PersistentHashMapBuilder).u9c = function (key, value) {
|
|
747
|
+
var oldSize = this.z9b_1;
|
|
748
|
+
var tmp = this.w9b_1;
|
|
749
|
+
// Inline function 'kotlin.hashCode' call
|
|
750
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
751
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
752
|
+
var tmp0_elvis_lhs = tmp.v9c(tmp$ret$0, key, value, 0, this);
|
|
753
|
+
var tmp_0;
|
|
754
|
+
if (tmp0_elvis_lhs == null) {
|
|
755
|
+
var tmp_1 = Companion_getInstance_1().y9a_1;
|
|
756
|
+
tmp_0 = tmp_1 instanceof TrieNode ? tmp_1 : THROW_CCE();
|
|
757
|
+
} else {
|
|
758
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
759
|
+
}
|
|
760
|
+
this.o9c(tmp_0);
|
|
761
|
+
return !(oldSize === this.z9b_1);
|
|
762
|
+
};
|
|
763
|
+
protoOf(PersistentHashMapBuilder).i2 = function () {
|
|
764
|
+
var tmp = Companion_getInstance_1().y9a_1;
|
|
765
|
+
this.o9c(tmp instanceof TrieNode ? tmp : THROW_CCE());
|
|
766
|
+
this.p9c(0);
|
|
767
|
+
};
|
|
768
|
+
protoOf(PersistentHashMapBuilder).equals = function (other) {
|
|
769
|
+
if (other === this)
|
|
770
|
+
return true;
|
|
771
|
+
if (!(!(other == null) ? isInterface(other, KtMap) : false))
|
|
772
|
+
return false;
|
|
773
|
+
if (!(this.z9b_1 === other.o()))
|
|
774
|
+
return false;
|
|
775
|
+
var tmp;
|
|
776
|
+
if (other instanceof PersistentHashMap) {
|
|
777
|
+
var tmp_0 = this.w9b_1;
|
|
778
|
+
tmp = tmp_0.a9c(other.e9b_1, PersistentHashMapBuilder$equals$lambda);
|
|
779
|
+
} else {
|
|
780
|
+
if (other instanceof PersistentHashMapBuilder) {
|
|
781
|
+
var tmp_1 = this.w9b_1;
|
|
782
|
+
var tmp_2 = other.w9b_1;
|
|
783
|
+
tmp = tmp_1.a9c(tmp_2, PersistentHashMapBuilder$equals$lambda_0);
|
|
784
|
+
} else {
|
|
785
|
+
if (other instanceof PersistentOrderedMap) {
|
|
786
|
+
var tmp_3 = this.w9b_1;
|
|
787
|
+
tmp = tmp_3.a9c(other.n9c_1.e9b_1, PersistentHashMapBuilder$equals$lambda_1);
|
|
788
|
+
} else {
|
|
789
|
+
if (other instanceof PersistentOrderedMapBuilder) {
|
|
790
|
+
var tmp_4 = this.w9b_1;
|
|
791
|
+
var tmp_5 = other.i9c_1.w9b_1;
|
|
792
|
+
tmp = tmp_4.a9c(tmp_5, PersistentHashMapBuilder$equals$lambda_2);
|
|
793
|
+
} else {
|
|
794
|
+
tmp = MapImplementation_instance.w9c(this, other);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return tmp;
|
|
800
|
+
};
|
|
801
|
+
protoOf(PersistentHashMapBuilder).hashCode = function () {
|
|
802
|
+
return MapImplementation_instance.x9c(this);
|
|
803
|
+
};
|
|
804
|
+
function PersistentHashMapBuilderEntriesIterator(builder) {
|
|
805
|
+
var tmp = this;
|
|
806
|
+
var tmp_0 = 0;
|
|
807
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
808
|
+
var tmp_1 = Array(8);
|
|
809
|
+
while (tmp_0 < 8) {
|
|
810
|
+
tmp_1[tmp_0] = new TrieNodeMutableEntriesIterator(this);
|
|
811
|
+
tmp_0 = tmp_0 + 1 | 0;
|
|
812
|
+
}
|
|
813
|
+
tmp.y9c_1 = new PersistentHashMapBuilderBaseIterator(builder, tmp_1);
|
|
814
|
+
}
|
|
815
|
+
protoOf(PersistentHashMapBuilderEntriesIterator).m = function () {
|
|
816
|
+
return this.y9c_1.m();
|
|
817
|
+
};
|
|
818
|
+
protoOf(PersistentHashMapBuilderEntriesIterator).n = function () {
|
|
819
|
+
return this.y9c_1.n();
|
|
820
|
+
};
|
|
821
|
+
protoOf(PersistentHashMapBuilderEntriesIterator).t3 = function () {
|
|
822
|
+
return this.y9c_1.t3();
|
|
823
|
+
};
|
|
824
|
+
function PersistentHashMapBuilderKeysIterator(builder) {
|
|
825
|
+
var tmp = 0;
|
|
826
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
827
|
+
var tmp_0 = Array(8);
|
|
828
|
+
while (tmp < 8) {
|
|
829
|
+
tmp_0[tmp] = new TrieNodeKeysIterator();
|
|
830
|
+
tmp = tmp + 1 | 0;
|
|
831
|
+
}
|
|
832
|
+
PersistentHashMapBuilderBaseIterator.call(this, builder, tmp_0);
|
|
833
|
+
}
|
|
834
|
+
function PersistentHashMapBuilderValuesIterator(builder) {
|
|
835
|
+
var tmp = 0;
|
|
836
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
837
|
+
var tmp_0 = Array(8);
|
|
838
|
+
while (tmp < 8) {
|
|
839
|
+
tmp_0[tmp] = new TrieNodeValuesIterator();
|
|
840
|
+
tmp = tmp + 1 | 0;
|
|
841
|
+
}
|
|
842
|
+
PersistentHashMapBuilderBaseIterator.call(this, builder, tmp_0);
|
|
843
|
+
}
|
|
844
|
+
function resetPath($this, keyHash, node, key, pathIndex, removedKeyHash, afterRemove) {
|
|
845
|
+
var shift = imul(pathIndex, 5);
|
|
846
|
+
if (shift > 30) {
|
|
847
|
+
$this.z9c_1[pathIndex].n9d(node.j9b_1, node.j9b_1.length, 0);
|
|
848
|
+
while (!equals($this.z9c_1[pathIndex].j9d(), key)) {
|
|
849
|
+
$this.z9c_1[pathIndex].o9d();
|
|
850
|
+
}
|
|
851
|
+
$this.a9d_1 = pathIndex;
|
|
852
|
+
return Unit_instance;
|
|
853
|
+
}
|
|
854
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
855
|
+
if (node.s9d(keyPositionMask)) {
|
|
856
|
+
var keyIndex = node.p9d(keyPositionMask);
|
|
857
|
+
var removedKeyPositionMask = afterRemove ? 1 << indexSegment_0(removedKeyHash, shift) : 0;
|
|
858
|
+
if (keyPositionMask === removedKeyPositionMask && pathIndex < $this.a9d_1) {
|
|
859
|
+
var tmp = $this.z9c_1[$this.a9d_1];
|
|
860
|
+
// Inline function 'kotlin.arrayOf' call
|
|
861
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
862
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
863
|
+
var tmp$ret$2 = [node.j9b_1[keyIndex], node.j9b_1[keyIndex + 1 | 0]];
|
|
864
|
+
tmp.q9d(tmp$ret$2, 2);
|
|
865
|
+
return Unit_instance;
|
|
866
|
+
}
|
|
867
|
+
$this.z9c_1[pathIndex].n9d(node.j9b_1, imul(2, node.r9d()), keyIndex);
|
|
868
|
+
$this.a9d_1 = pathIndex;
|
|
869
|
+
return Unit_instance;
|
|
870
|
+
}
|
|
871
|
+
var nodeIndex = node.t9d(keyPositionMask);
|
|
872
|
+
var targetNode = node.u9d(nodeIndex);
|
|
873
|
+
$this.z9c_1[pathIndex].n9d(node.j9b_1, imul(2, node.r9d()), nodeIndex);
|
|
874
|
+
resetPath($this, keyHash, targetNode, key, pathIndex + 1 | 0, removedKeyHash, afterRemove);
|
|
875
|
+
}
|
|
876
|
+
function checkNextWasInvoked($this) {
|
|
877
|
+
if (!$this.h9d_1)
|
|
878
|
+
throw IllegalStateException_init_$Create$();
|
|
879
|
+
}
|
|
880
|
+
function checkForComodification($this) {
|
|
881
|
+
if (!($this.f9d_1.y9b_1 === $this.i9d_1))
|
|
882
|
+
throw ConcurrentModificationException_init_$Create$();
|
|
883
|
+
}
|
|
884
|
+
function PersistentHashMapBuilderBaseIterator(builder, path) {
|
|
885
|
+
PersistentHashMapBaseIterator.call(this, builder.w9b_1, path);
|
|
886
|
+
this.f9d_1 = builder;
|
|
887
|
+
this.g9d_1 = null;
|
|
888
|
+
this.h9d_1 = false;
|
|
889
|
+
this.i9d_1 = this.f9d_1.y9b_1;
|
|
890
|
+
}
|
|
891
|
+
protoOf(PersistentHashMapBuilderBaseIterator).n = function () {
|
|
892
|
+
checkForComodification(this);
|
|
893
|
+
this.g9d_1 = this.j9d();
|
|
894
|
+
this.h9d_1 = true;
|
|
895
|
+
return protoOf(PersistentHashMapBaseIterator).n.call(this);
|
|
896
|
+
};
|
|
897
|
+
protoOf(PersistentHashMapBuilderBaseIterator).t3 = function () {
|
|
898
|
+
checkNextWasInvoked(this);
|
|
899
|
+
if (this.m()) {
|
|
900
|
+
var currentKey = this.j9d();
|
|
901
|
+
var tmp0 = this.f9d_1;
|
|
902
|
+
// Inline function 'kotlin.collections.remove' call
|
|
903
|
+
var key = this.g9d_1;
|
|
904
|
+
(isInterface(tmp0, KtMutableMap) ? tmp0 : THROW_CCE()).g2(key);
|
|
905
|
+
// Inline function 'kotlin.hashCode' call
|
|
906
|
+
var tmp1_elvis_lhs = currentKey == null ? null : hashCode(currentKey);
|
|
907
|
+
var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
908
|
+
var tmp_0 = this.f9d_1.w9b_1;
|
|
909
|
+
// Inline function 'kotlin.hashCode' call
|
|
910
|
+
var tmp0_safe_receiver = this.g9d_1;
|
|
911
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
912
|
+
var tmp$ret$2 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
|
|
913
|
+
resetPath(this, tmp, tmp_0, currentKey, 0, tmp$ret$2, true);
|
|
914
|
+
} else {
|
|
915
|
+
var tmp0_0 = this.f9d_1;
|
|
916
|
+
// Inline function 'kotlin.collections.remove' call
|
|
917
|
+
var key_0 = this.g9d_1;
|
|
918
|
+
(isInterface(tmp0_0, KtMutableMap) ? tmp0_0 : THROW_CCE()).g2(key_0);
|
|
919
|
+
}
|
|
920
|
+
this.g9d_1 = null;
|
|
921
|
+
this.h9d_1 = false;
|
|
922
|
+
this.i9d_1 = this.f9d_1.y9b_1;
|
|
923
|
+
};
|
|
924
|
+
function TrieNodeMutableEntriesIterator(parentIterator) {
|
|
925
|
+
TrieNodeBaseIterator.call(this);
|
|
926
|
+
this.y9d_1 = parentIterator;
|
|
927
|
+
}
|
|
928
|
+
protoOf(TrieNodeMutableEntriesIterator).n = function () {
|
|
929
|
+
assert(this.z9d());
|
|
930
|
+
this.m9d_1 = this.m9d_1 + 2 | 0;
|
|
931
|
+
var tmp = this.k9d_1[this.m9d_1 - 2 | 0];
|
|
932
|
+
var tmp_0 = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
933
|
+
var tmp_1 = this.k9d_1[this.m9d_1 - 1 | 0];
|
|
934
|
+
return new MutableMapEntry(this.y9d_1, tmp_0, (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE());
|
|
935
|
+
};
|
|
936
|
+
function MutableMapEntry(parentIterator, key, value) {
|
|
937
|
+
MapEntry.call(this, key, value);
|
|
938
|
+
this.f9e_1 = parentIterator;
|
|
939
|
+
this.g9e_1 = value;
|
|
940
|
+
}
|
|
941
|
+
protoOf(MutableMapEntry).y = function () {
|
|
942
|
+
return this.g9e_1;
|
|
943
|
+
};
|
|
944
|
+
function PersistentHashMapBuilderEntries(builder) {
|
|
945
|
+
AbstractMapBuilderEntries.call(this);
|
|
946
|
+
this.j9e_1 = builder;
|
|
947
|
+
}
|
|
948
|
+
protoOf(PersistentHashMapBuilderEntries).k9e = function (element) {
|
|
949
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
950
|
+
};
|
|
951
|
+
protoOf(PersistentHashMapBuilderEntries).j = function (element) {
|
|
952
|
+
return this.k9e((!(element == null) ? isInterface(element, MutableEntry) : false) ? element : THROW_CCE());
|
|
953
|
+
};
|
|
954
|
+
protoOf(PersistentHashMapBuilderEntries).i2 = function () {
|
|
955
|
+
this.j9e_1.i2();
|
|
956
|
+
};
|
|
957
|
+
protoOf(PersistentHashMapBuilderEntries).l = function () {
|
|
958
|
+
return new PersistentHashMapBuilderEntriesIterator(this.j9e_1);
|
|
959
|
+
};
|
|
960
|
+
protoOf(PersistentHashMapBuilderEntries).e6 = function (element) {
|
|
961
|
+
return this.j9e_1.u9c(element.x(), element.y());
|
|
962
|
+
};
|
|
963
|
+
protoOf(PersistentHashMapBuilderEntries).o = function () {
|
|
964
|
+
return this.j9e_1.z9b_1;
|
|
965
|
+
};
|
|
966
|
+
protoOf(PersistentHashMapBuilderEntries).d6 = function (element) {
|
|
967
|
+
return MapImplementation_instance.l9e(this.j9e_1, element);
|
|
968
|
+
};
|
|
969
|
+
function PersistentHashMapBuilderKeys(builder) {
|
|
970
|
+
AbstractMutableSet.call(this);
|
|
971
|
+
this.m9e_1 = builder;
|
|
972
|
+
}
|
|
973
|
+
protoOf(PersistentHashMapBuilderKeys).i6 = function (element) {
|
|
974
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
975
|
+
};
|
|
976
|
+
protoOf(PersistentHashMapBuilderKeys).j = function (element) {
|
|
977
|
+
return this.i6((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
978
|
+
};
|
|
979
|
+
protoOf(PersistentHashMapBuilderKeys).i2 = function () {
|
|
980
|
+
this.m9e_1.i2();
|
|
981
|
+
};
|
|
982
|
+
protoOf(PersistentHashMapBuilderKeys).l = function () {
|
|
983
|
+
return new PersistentHashMapBuilderKeysIterator(this.m9e_1);
|
|
984
|
+
};
|
|
985
|
+
protoOf(PersistentHashMapBuilderKeys).g2 = function (element) {
|
|
986
|
+
if (this.m9e_1.a2(element)) {
|
|
987
|
+
this.m9e_1.g2(element);
|
|
988
|
+
return true;
|
|
989
|
+
}
|
|
990
|
+
return false;
|
|
991
|
+
};
|
|
992
|
+
protoOf(PersistentHashMapBuilderKeys).j2 = function (element) {
|
|
993
|
+
if (!(element == null ? true : !(element == null)))
|
|
994
|
+
return false;
|
|
995
|
+
return this.g2((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
996
|
+
};
|
|
997
|
+
protoOf(PersistentHashMapBuilderKeys).o = function () {
|
|
998
|
+
return this.m9e_1.z9b_1;
|
|
999
|
+
};
|
|
1000
|
+
protoOf(PersistentHashMapBuilderKeys).l5 = function (element) {
|
|
1001
|
+
return this.m9e_1.a2(element);
|
|
1002
|
+
};
|
|
1003
|
+
protoOf(PersistentHashMapBuilderKeys).t = function (element) {
|
|
1004
|
+
if (!(element == null ? true : !(element == null)))
|
|
1005
|
+
return false;
|
|
1006
|
+
return this.l5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
1007
|
+
};
|
|
1008
|
+
function PersistentHashMapBuilderValues(builder) {
|
|
1009
|
+
AbstractMutableCollection.call(this);
|
|
1010
|
+
this.n9e_1 = builder;
|
|
1011
|
+
}
|
|
1012
|
+
protoOf(PersistentHashMapBuilderValues).o = function () {
|
|
1013
|
+
return this.n9e_1.z9b_1;
|
|
1014
|
+
};
|
|
1015
|
+
protoOf(PersistentHashMapBuilderValues).r5 = function (element) {
|
|
1016
|
+
return this.n9e_1.b2(element);
|
|
1017
|
+
};
|
|
1018
|
+
protoOf(PersistentHashMapBuilderValues).t = function (element) {
|
|
1019
|
+
if (!(element == null ? true : !(element == null)))
|
|
1020
|
+
return false;
|
|
1021
|
+
return this.r5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
1022
|
+
};
|
|
1023
|
+
protoOf(PersistentHashMapBuilderValues).s5 = function (element) {
|
|
1024
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
1025
|
+
};
|
|
1026
|
+
protoOf(PersistentHashMapBuilderValues).j = function (element) {
|
|
1027
|
+
return this.s5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
1028
|
+
};
|
|
1029
|
+
protoOf(PersistentHashMapBuilderValues).i2 = function () {
|
|
1030
|
+
this.n9e_1.i2();
|
|
1031
|
+
};
|
|
1032
|
+
protoOf(PersistentHashMapBuilderValues).l = function () {
|
|
1033
|
+
return new PersistentHashMapBuilderValuesIterator(this.n9e_1);
|
|
1034
|
+
};
|
|
1035
|
+
function AbstractMapBuilderEntries() {
|
|
1036
|
+
AbstractMutableSet.call(this);
|
|
1037
|
+
}
|
|
1038
|
+
protoOf(AbstractMapBuilderEntries).a6 = function (element) {
|
|
1039
|
+
var tmp = !(element == null) ? element : null;
|
|
1040
|
+
if (!(!(tmp == null) ? isInterface(tmp, Entry) : false))
|
|
1041
|
+
return false;
|
|
1042
|
+
return this.d6(element);
|
|
1043
|
+
};
|
|
1044
|
+
protoOf(AbstractMapBuilderEntries).t = function (element) {
|
|
1045
|
+
if (!(!(element == null) ? isInterface(element, Entry) : false))
|
|
1046
|
+
return false;
|
|
1047
|
+
return this.a6((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
1048
|
+
};
|
|
1049
|
+
protoOf(AbstractMapBuilderEntries).c6 = function (element) {
|
|
1050
|
+
var tmp = !(element == null) ? element : null;
|
|
1051
|
+
if (!(!(tmp == null) ? isInterface(tmp, Entry) : false))
|
|
1052
|
+
return false;
|
|
1053
|
+
return this.e6(element);
|
|
1054
|
+
};
|
|
1055
|
+
protoOf(AbstractMapBuilderEntries).j2 = function (element) {
|
|
1056
|
+
if (!(!(element == null) ? isInterface(element, Entry) : false))
|
|
1057
|
+
return false;
|
|
1058
|
+
return this.c6((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
1059
|
+
};
|
|
1060
|
+
function PersistentHashMapKeysIterator(node) {
|
|
1061
|
+
var tmp = 0;
|
|
1062
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1063
|
+
var tmp_0 = Array(8);
|
|
1064
|
+
while (tmp < 8) {
|
|
1065
|
+
tmp_0[tmp] = new TrieNodeKeysIterator();
|
|
1066
|
+
tmp = tmp + 1 | 0;
|
|
1067
|
+
}
|
|
1068
|
+
PersistentHashMapBaseIterator.call(this, node, tmp_0);
|
|
1069
|
+
}
|
|
1070
|
+
function PersistentHashMapValuesIterator(node) {
|
|
1071
|
+
var tmp = 0;
|
|
1072
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1073
|
+
var tmp_0 = Array(8);
|
|
1074
|
+
while (tmp < 8) {
|
|
1075
|
+
tmp_0[tmp] = new TrieNodeValuesIterator();
|
|
1076
|
+
tmp = tmp + 1 | 0;
|
|
1077
|
+
}
|
|
1078
|
+
PersistentHashMapBaseIterator.call(this, node, tmp_0);
|
|
1079
|
+
}
|
|
1080
|
+
function PersistentHashMapEntriesIterator(node) {
|
|
1081
|
+
var tmp = 0;
|
|
1082
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1083
|
+
var tmp_0 = Array(8);
|
|
1084
|
+
while (tmp < 8) {
|
|
1085
|
+
tmp_0[tmp] = new TrieNodeEntriesIterator();
|
|
1086
|
+
tmp = tmp + 1 | 0;
|
|
1087
|
+
}
|
|
1088
|
+
PersistentHashMapBaseIterator.call(this, node, tmp_0);
|
|
1089
|
+
}
|
|
1090
|
+
function MapEntry(key, value) {
|
|
1091
|
+
this.h9e_1 = key;
|
|
1092
|
+
this.i9e_1 = value;
|
|
1093
|
+
}
|
|
1094
|
+
protoOf(MapEntry).x = function () {
|
|
1095
|
+
return this.h9e_1;
|
|
1096
|
+
};
|
|
1097
|
+
protoOf(MapEntry).y = function () {
|
|
1098
|
+
return this.i9e_1;
|
|
1099
|
+
};
|
|
1100
|
+
protoOf(MapEntry).hashCode = function () {
|
|
1101
|
+
// Inline function 'kotlin.hashCode' call
|
|
1102
|
+
var tmp0_safe_receiver = this.x();
|
|
1103
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
1104
|
+
var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1105
|
+
// Inline function 'kotlin.hashCode' call
|
|
1106
|
+
var tmp0_safe_receiver_0 = this.y();
|
|
1107
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
1108
|
+
return tmp ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
1109
|
+
};
|
|
1110
|
+
protoOf(MapEntry).equals = function (other) {
|
|
1111
|
+
var tmp0_safe_receiver = (!(other == null) ? isInterface(other, Entry) : false) ? other : null;
|
|
1112
|
+
var tmp;
|
|
1113
|
+
if (tmp0_safe_receiver == null) {
|
|
1114
|
+
tmp = null;
|
|
1115
|
+
} else {
|
|
1116
|
+
// Inline function 'kotlin.let' call
|
|
1117
|
+
tmp = (equals(tmp0_safe_receiver.x(), this.x()) && equals(tmp0_safe_receiver.y(), this.y()));
|
|
1118
|
+
}
|
|
1119
|
+
var tmp1_elvis_lhs = tmp;
|
|
1120
|
+
return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
1121
|
+
};
|
|
1122
|
+
protoOf(MapEntry).toString = function () {
|
|
1123
|
+
return toString_0(this.x()) + '=' + toString_0(this.y());
|
|
1124
|
+
};
|
|
1125
|
+
function moveToNextNodeWithData($this, pathIndex) {
|
|
1126
|
+
if ($this.z9c_1[pathIndex].z9d()) {
|
|
1127
|
+
return pathIndex;
|
|
1128
|
+
}
|
|
1129
|
+
if ($this.z9c_1[pathIndex].a9e()) {
|
|
1130
|
+
var node = $this.z9c_1[pathIndex].b9e();
|
|
1131
|
+
if (pathIndex === 6) {
|
|
1132
|
+
$this.z9c_1[pathIndex + 1 | 0].q9d(node.j9b_1, node.j9b_1.length);
|
|
1133
|
+
} else {
|
|
1134
|
+
$this.z9c_1[pathIndex + 1 | 0].q9d(node.j9b_1, imul(2, node.r9d()));
|
|
1135
|
+
}
|
|
1136
|
+
return moveToNextNodeWithData($this, pathIndex + 1 | 0);
|
|
1137
|
+
}
|
|
1138
|
+
return -1;
|
|
1139
|
+
}
|
|
1140
|
+
function ensureNextEntryIsReady($this) {
|
|
1141
|
+
if ($this.z9c_1[$this.a9d_1].z9d()) {
|
|
1142
|
+
return Unit_instance;
|
|
1143
|
+
}
|
|
1144
|
+
var inductionVariable = $this.a9d_1;
|
|
1145
|
+
if (0 <= inductionVariable)
|
|
1146
|
+
do {
|
|
1147
|
+
var i = inductionVariable;
|
|
1148
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
1149
|
+
var result = moveToNextNodeWithData($this, i);
|
|
1150
|
+
if (result === -1 && $this.z9c_1[i].a9e()) {
|
|
1151
|
+
$this.z9c_1[i].c9e();
|
|
1152
|
+
result = moveToNextNodeWithData($this, i);
|
|
1153
|
+
}
|
|
1154
|
+
if (!(result === -1)) {
|
|
1155
|
+
$this.a9d_1 = result;
|
|
1156
|
+
return Unit_instance;
|
|
1157
|
+
}
|
|
1158
|
+
if (i > 0) {
|
|
1159
|
+
$this.z9c_1[i - 1 | 0].c9e();
|
|
1160
|
+
}
|
|
1161
|
+
$this.z9c_1[i].q9d(Companion_getInstance_1().y9a_1.j9b_1, 0);
|
|
1162
|
+
}
|
|
1163
|
+
while (0 <= inductionVariable);
|
|
1164
|
+
$this.b9d_1 = false;
|
|
1165
|
+
}
|
|
1166
|
+
function checkHasNext($this) {
|
|
1167
|
+
if (!$this.m())
|
|
1168
|
+
throw NoSuchElementException_init_$Create$();
|
|
1169
|
+
}
|
|
1170
|
+
function PersistentHashMapBaseIterator(node, path) {
|
|
1171
|
+
this.z9c_1 = path;
|
|
1172
|
+
this.a9d_1 = 0;
|
|
1173
|
+
this.b9d_1 = true;
|
|
1174
|
+
this.z9c_1[0].q9d(node.j9b_1, imul(2, node.r9d()));
|
|
1175
|
+
this.a9d_1 = 0;
|
|
1176
|
+
ensureNextEntryIsReady(this);
|
|
1177
|
+
}
|
|
1178
|
+
protoOf(PersistentHashMapBaseIterator).j9d = function () {
|
|
1179
|
+
checkHasNext(this);
|
|
1180
|
+
return this.z9c_1[this.a9d_1].j9d();
|
|
1181
|
+
};
|
|
1182
|
+
protoOf(PersistentHashMapBaseIterator).m = function () {
|
|
1183
|
+
return this.b9d_1;
|
|
1184
|
+
};
|
|
1185
|
+
protoOf(PersistentHashMapBaseIterator).n = function () {
|
|
1186
|
+
checkHasNext(this);
|
|
1187
|
+
var result = this.z9c_1[this.a9d_1].n();
|
|
1188
|
+
ensureNextEntryIsReady(this);
|
|
1189
|
+
return result;
|
|
1190
|
+
};
|
|
1191
|
+
function TrieNodeBaseIterator() {
|
|
1192
|
+
this.k9d_1 = Companion_getInstance_1().y9a_1.j9b_1;
|
|
1193
|
+
this.l9d_1 = 0;
|
|
1194
|
+
this.m9d_1 = 0;
|
|
1195
|
+
}
|
|
1196
|
+
protoOf(TrieNodeBaseIterator).n9d = function (buffer, dataSize, index) {
|
|
1197
|
+
this.k9d_1 = buffer;
|
|
1198
|
+
this.l9d_1 = dataSize;
|
|
1199
|
+
this.m9d_1 = index;
|
|
1200
|
+
};
|
|
1201
|
+
protoOf(TrieNodeBaseIterator).q9d = function (buffer, dataSize) {
|
|
1202
|
+
this.n9d(buffer, dataSize, 0);
|
|
1203
|
+
};
|
|
1204
|
+
protoOf(TrieNodeBaseIterator).z9d = function () {
|
|
1205
|
+
return this.m9d_1 < this.l9d_1;
|
|
1206
|
+
};
|
|
1207
|
+
protoOf(TrieNodeBaseIterator).j9d = function () {
|
|
1208
|
+
assert(this.z9d());
|
|
1209
|
+
var tmp = this.k9d_1[this.m9d_1];
|
|
1210
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1211
|
+
};
|
|
1212
|
+
protoOf(TrieNodeBaseIterator).o9d = function () {
|
|
1213
|
+
assert(this.z9d());
|
|
1214
|
+
this.m9d_1 = this.m9d_1 + 2 | 0;
|
|
1215
|
+
};
|
|
1216
|
+
protoOf(TrieNodeBaseIterator).a9e = function () {
|
|
1217
|
+
assert(this.m9d_1 >= this.l9d_1);
|
|
1218
|
+
return this.m9d_1 < this.k9d_1.length;
|
|
1219
|
+
};
|
|
1220
|
+
protoOf(TrieNodeBaseIterator).b9e = function () {
|
|
1221
|
+
assert(this.a9e());
|
|
1222
|
+
var tmp = this.k9d_1[this.m9d_1];
|
|
1223
|
+
return tmp instanceof TrieNode ? tmp : THROW_CCE();
|
|
1224
|
+
};
|
|
1225
|
+
protoOf(TrieNodeBaseIterator).c9e = function () {
|
|
1226
|
+
assert(this.a9e());
|
|
1227
|
+
this.m9d_1 = this.m9d_1 + 1 | 0;
|
|
1228
|
+
};
|
|
1229
|
+
protoOf(TrieNodeBaseIterator).m = function () {
|
|
1230
|
+
return this.z9d();
|
|
1231
|
+
};
|
|
1232
|
+
function TrieNodeKeysIterator() {
|
|
1233
|
+
TrieNodeBaseIterator.call(this);
|
|
1234
|
+
}
|
|
1235
|
+
protoOf(TrieNodeKeysIterator).n = function () {
|
|
1236
|
+
assert(this.z9d());
|
|
1237
|
+
this.m9d_1 = this.m9d_1 + 2 | 0;
|
|
1238
|
+
var tmp = this.k9d_1[this.m9d_1 - 2 | 0];
|
|
1239
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1240
|
+
};
|
|
1241
|
+
function TrieNodeValuesIterator() {
|
|
1242
|
+
TrieNodeBaseIterator.call(this);
|
|
1243
|
+
}
|
|
1244
|
+
protoOf(TrieNodeValuesIterator).n = function () {
|
|
1245
|
+
assert(this.z9d());
|
|
1246
|
+
this.m9d_1 = this.m9d_1 + 2 | 0;
|
|
1247
|
+
var tmp = this.k9d_1[this.m9d_1 - 1 | 0];
|
|
1248
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1249
|
+
};
|
|
1250
|
+
function TrieNodeEntriesIterator() {
|
|
1251
|
+
TrieNodeBaseIterator.call(this);
|
|
1252
|
+
}
|
|
1253
|
+
protoOf(TrieNodeEntriesIterator).n = function () {
|
|
1254
|
+
assert(this.z9d());
|
|
1255
|
+
this.m9d_1 = this.m9d_1 + 2 | 0;
|
|
1256
|
+
var tmp = this.k9d_1[this.m9d_1 - 2 | 0];
|
|
1257
|
+
var tmp_0 = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1258
|
+
var tmp_1 = this.k9d_1[this.m9d_1 - 1 | 0];
|
|
1259
|
+
return new MapEntry(tmp_0, (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE());
|
|
1260
|
+
};
|
|
1261
|
+
function PersistentHashMapKeys(map) {
|
|
1262
|
+
AbstractSet.call(this);
|
|
1263
|
+
this.x9e_1 = map;
|
|
1264
|
+
}
|
|
1265
|
+
protoOf(PersistentHashMapKeys).o = function () {
|
|
1266
|
+
return this.x9e_1.f9b_1;
|
|
1267
|
+
};
|
|
1268
|
+
protoOf(PersistentHashMapKeys).l5 = function (element) {
|
|
1269
|
+
return this.x9e_1.a2(element);
|
|
1270
|
+
};
|
|
1271
|
+
protoOf(PersistentHashMapKeys).t = function (element) {
|
|
1272
|
+
if (!(element == null ? true : !(element == null)))
|
|
1273
|
+
return false;
|
|
1274
|
+
return this.l5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
1275
|
+
};
|
|
1276
|
+
protoOf(PersistentHashMapKeys).l = function () {
|
|
1277
|
+
return new PersistentHashMapKeysIterator(this.x9e_1.e9b_1);
|
|
1278
|
+
};
|
|
1279
|
+
function PersistentHashMapValues(map) {
|
|
1280
|
+
AbstractCollection.call(this);
|
|
1281
|
+
this.y9e_1 = map;
|
|
1282
|
+
}
|
|
1283
|
+
protoOf(PersistentHashMapValues).o = function () {
|
|
1284
|
+
return this.y9e_1.f9b_1;
|
|
1285
|
+
};
|
|
1286
|
+
protoOf(PersistentHashMapValues).r5 = function (element) {
|
|
1287
|
+
return this.y9e_1.b2(element);
|
|
1288
|
+
};
|
|
1289
|
+
protoOf(PersistentHashMapValues).t = function (element) {
|
|
1290
|
+
if (!(element == null ? true : !(element == null)))
|
|
1291
|
+
return false;
|
|
1292
|
+
return this.r5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
1293
|
+
};
|
|
1294
|
+
protoOf(PersistentHashMapValues).l = function () {
|
|
1295
|
+
return new PersistentHashMapValuesIterator(this.y9e_1.e9b_1);
|
|
1296
|
+
};
|
|
1297
|
+
function PersistentHashMapEntries(map) {
|
|
1298
|
+
AbstractSet.call(this);
|
|
1299
|
+
this.z9e_1 = map;
|
|
1300
|
+
}
|
|
1301
|
+
protoOf(PersistentHashMapEntries).o = function () {
|
|
1302
|
+
return this.z9e_1.f9b_1;
|
|
1303
|
+
};
|
|
1304
|
+
protoOf(PersistentHashMapEntries).a9f = function (element) {
|
|
1305
|
+
return MapImplementation_instance.l9e(this.z9e_1, element);
|
|
1306
|
+
};
|
|
1307
|
+
protoOf(PersistentHashMapEntries).t = function (element) {
|
|
1308
|
+
if (!(!(element == null) ? isInterface(element, Entry) : false))
|
|
1309
|
+
return false;
|
|
1310
|
+
return this.a9f((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
1311
|
+
};
|
|
1312
|
+
protoOf(PersistentHashMapEntries).l = function () {
|
|
1313
|
+
return new PersistentHashMapEntriesIterator(this.z9e_1.e9b_1);
|
|
1314
|
+
};
|
|
1315
|
+
function TrieNode_init_$Init$(dataMap, nodeMap, buffer, $this) {
|
|
1316
|
+
TrieNode.call($this, dataMap, nodeMap, buffer, null);
|
|
1317
|
+
return $this;
|
|
1318
|
+
}
|
|
1319
|
+
function TrieNode_init_$Create$(dataMap, nodeMap, buffer) {
|
|
1320
|
+
return TrieNode_init_$Init$(dataMap, nodeMap, buffer, objectCreate(protoOf(TrieNode)));
|
|
1321
|
+
}
|
|
1322
|
+
function ModificationResult(node, sizeDelta) {
|
|
1323
|
+
this.n9b_1 = node;
|
|
1324
|
+
this.o9b_1 = sizeDelta;
|
|
1325
|
+
}
|
|
1326
|
+
function asInsertResult($this) {
|
|
1327
|
+
return new ModificationResult($this, 1);
|
|
1328
|
+
}
|
|
1329
|
+
function asUpdateResult($this) {
|
|
1330
|
+
return new ModificationResult($this, 0);
|
|
1331
|
+
}
|
|
1332
|
+
function hasNodeAt($this, positionMask) {
|
|
1333
|
+
return !(($this.h9b_1 & positionMask) === 0);
|
|
1334
|
+
}
|
|
1335
|
+
function keyAtIndex($this, keyIndex) {
|
|
1336
|
+
var tmp = $this.j9b_1[keyIndex];
|
|
1337
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1338
|
+
}
|
|
1339
|
+
function valueAtKeyIndex($this, keyIndex) {
|
|
1340
|
+
var tmp = $this.j9b_1[keyIndex + 1 | 0];
|
|
1341
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
1342
|
+
}
|
|
1343
|
+
function insertEntryAt($this, positionMask, key, value) {
|
|
1344
|
+
var keyIndex = $this.p9d(positionMask);
|
|
1345
|
+
var newBuffer = insertEntryAtIndex($this.j9b_1, keyIndex, key, value);
|
|
1346
|
+
return TrieNode_init_$Create$($this.g9b_1 | positionMask, $this.h9b_1, newBuffer);
|
|
1347
|
+
}
|
|
1348
|
+
function mutableInsertEntryAt($this, positionMask, key, value, owner) {
|
|
1349
|
+
var keyIndex = $this.p9d(positionMask);
|
|
1350
|
+
if ($this.i9b_1 === owner) {
|
|
1351
|
+
$this.j9b_1 = insertEntryAtIndex($this.j9b_1, keyIndex, key, value);
|
|
1352
|
+
$this.g9b_1 = $this.g9b_1 | positionMask;
|
|
1353
|
+
return $this;
|
|
1354
|
+
}
|
|
1355
|
+
var newBuffer = insertEntryAtIndex($this.j9b_1, keyIndex, key, value);
|
|
1356
|
+
return new TrieNode($this.g9b_1 | positionMask, $this.h9b_1, newBuffer, owner);
|
|
1357
|
+
}
|
|
1358
|
+
function updateValueAtIndex($this, keyIndex, value) {
|
|
1359
|
+
// Inline function 'kotlin.collections.copyOf' call
|
|
1360
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1361
|
+
var newBuffer = $this.j9b_1.slice();
|
|
1362
|
+
newBuffer[keyIndex + 1 | 0] = value;
|
|
1363
|
+
return TrieNode_init_$Create$($this.g9b_1, $this.h9b_1, newBuffer);
|
|
1364
|
+
}
|
|
1365
|
+
function mutableUpdateValueAtIndex($this, keyIndex, value, mutator) {
|
|
1366
|
+
if ($this.i9b_1 === mutator.v9b_1) {
|
|
1367
|
+
$this.j9b_1[keyIndex + 1 | 0] = value;
|
|
1368
|
+
return $this;
|
|
1369
|
+
}
|
|
1370
|
+
mutator.y9b_1 = mutator.y9b_1 + 1 | 0;
|
|
1371
|
+
// Inline function 'kotlin.collections.copyOf' call
|
|
1372
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1373
|
+
var newBuffer = $this.j9b_1.slice();
|
|
1374
|
+
newBuffer[keyIndex + 1 | 0] = value;
|
|
1375
|
+
return new TrieNode($this.g9b_1, $this.h9b_1, newBuffer, mutator.v9b_1);
|
|
1376
|
+
}
|
|
1377
|
+
function updateNodeAtIndex($this, nodeIndex, positionMask, newNode, owner) {
|
|
1378
|
+
var newNodeBuffer = newNode.j9b_1;
|
|
1379
|
+
if (newNodeBuffer.length === 2 && newNode.h9b_1 === 0) {
|
|
1380
|
+
if ($this.j9b_1.length === 1) {
|
|
1381
|
+
newNode.g9b_1 = $this.h9b_1;
|
|
1382
|
+
return newNode;
|
|
1383
|
+
}
|
|
1384
|
+
var keyIndex = $this.p9d(positionMask);
|
|
1385
|
+
var newBuffer = replaceNodeWithEntry($this.j9b_1, nodeIndex, keyIndex, newNodeBuffer[0], newNodeBuffer[1]);
|
|
1386
|
+
return new TrieNode($this.g9b_1 ^ positionMask, $this.h9b_1 ^ positionMask, newBuffer, owner);
|
|
1387
|
+
}
|
|
1388
|
+
if (!(owner == null) && $this.i9b_1 === owner) {
|
|
1389
|
+
$this.j9b_1[nodeIndex] = newNode;
|
|
1390
|
+
return $this;
|
|
1391
|
+
}
|
|
1392
|
+
// Inline function 'kotlin.collections.copyOf' call
|
|
1393
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1394
|
+
var newBuffer_0 = $this.j9b_1.slice();
|
|
1395
|
+
newBuffer_0[nodeIndex] = newNode;
|
|
1396
|
+
return new TrieNode($this.g9b_1, $this.h9b_1, newBuffer_0, owner);
|
|
1397
|
+
}
|
|
1398
|
+
function updateNodeAtIndex$default($this, nodeIndex, positionMask, newNode, owner, $super) {
|
|
1399
|
+
owner = owner === VOID ? null : owner;
|
|
1400
|
+
return updateNodeAtIndex($this, nodeIndex, positionMask, newNode, owner);
|
|
1401
|
+
}
|
|
1402
|
+
function removeNodeAtIndex($this, nodeIndex, positionMask) {
|
|
1403
|
+
if ($this.j9b_1.length === 1)
|
|
1404
|
+
return null;
|
|
1405
|
+
var newBuffer = removeNodeAtIndex_0($this.j9b_1, nodeIndex);
|
|
1406
|
+
return TrieNode_init_$Create$($this.g9b_1, $this.h9b_1 ^ positionMask, newBuffer);
|
|
1407
|
+
}
|
|
1408
|
+
function mutableRemoveNodeAtIndex($this, nodeIndex, positionMask, owner) {
|
|
1409
|
+
if ($this.j9b_1.length === 1)
|
|
1410
|
+
return null;
|
|
1411
|
+
if ($this.i9b_1 === owner) {
|
|
1412
|
+
$this.j9b_1 = removeNodeAtIndex_0($this.j9b_1, nodeIndex);
|
|
1413
|
+
$this.h9b_1 = $this.h9b_1 ^ positionMask;
|
|
1414
|
+
return $this;
|
|
1415
|
+
}
|
|
1416
|
+
var newBuffer = removeNodeAtIndex_0($this.j9b_1, nodeIndex);
|
|
1417
|
+
return new TrieNode($this.g9b_1, $this.h9b_1 ^ positionMask, newBuffer, owner);
|
|
1418
|
+
}
|
|
1419
|
+
function bufferMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, owner) {
|
|
1420
|
+
var storedKey = keyAtIndex($this, keyIndex);
|
|
1421
|
+
// Inline function 'kotlin.hashCode' call
|
|
1422
|
+
var tmp1_elvis_lhs = storedKey == null ? null : hashCode(storedKey);
|
|
1423
|
+
var storedKeyHash = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1424
|
+
var storedValue = valueAtKeyIndex($this, keyIndex);
|
|
1425
|
+
var newNode = makeNode($this, storedKeyHash, storedKey, storedValue, newKeyHash, newKey, newValue, shift + 5 | 0, owner);
|
|
1426
|
+
var nodeIndex = $this.t9d(positionMask) + 1 | 0;
|
|
1427
|
+
return replaceEntryWithNode($this.j9b_1, keyIndex, nodeIndex, newNode);
|
|
1428
|
+
}
|
|
1429
|
+
function moveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift) {
|
|
1430
|
+
var newBuffer = bufferMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, null);
|
|
1431
|
+
return TrieNode_init_$Create$($this.g9b_1 ^ positionMask, $this.h9b_1 | positionMask, newBuffer);
|
|
1432
|
+
}
|
|
1433
|
+
function mutableMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, owner) {
|
|
1434
|
+
if ($this.i9b_1 === owner) {
|
|
1435
|
+
$this.j9b_1 = bufferMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, owner);
|
|
1436
|
+
$this.g9b_1 = $this.g9b_1 ^ positionMask;
|
|
1437
|
+
$this.h9b_1 = $this.h9b_1 | positionMask;
|
|
1438
|
+
return $this;
|
|
1439
|
+
}
|
|
1440
|
+
var newBuffer = bufferMoveEntryToNode($this, keyIndex, positionMask, newKeyHash, newKey, newValue, shift, owner);
|
|
1441
|
+
return new TrieNode($this.g9b_1 ^ positionMask, $this.h9b_1 | positionMask, newBuffer, owner);
|
|
1442
|
+
}
|
|
1443
|
+
function makeNode($this, keyHash1, key1, value1, keyHash2, key2, value2, shift, owner) {
|
|
1444
|
+
if (shift > 30) {
|
|
1445
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1446
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1447
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1448
|
+
var tmp$ret$2 = [key1, value1, key2, value2];
|
|
1449
|
+
return new TrieNode(0, 0, tmp$ret$2, owner);
|
|
1450
|
+
}
|
|
1451
|
+
var setBit1 = indexSegment_0(keyHash1, shift);
|
|
1452
|
+
var setBit2 = indexSegment_0(keyHash2, shift);
|
|
1453
|
+
if (!(setBit1 === setBit2)) {
|
|
1454
|
+
var tmp;
|
|
1455
|
+
if (setBit1 < setBit2) {
|
|
1456
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1457
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1458
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1459
|
+
tmp = [key1, value1, key2, value2];
|
|
1460
|
+
} else {
|
|
1461
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1462
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1463
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1464
|
+
tmp = [key2, value2, key1, value1];
|
|
1465
|
+
}
|
|
1466
|
+
var nodeBuffer = tmp;
|
|
1467
|
+
return new TrieNode(1 << setBit1 | 1 << setBit2, 0, nodeBuffer, owner);
|
|
1468
|
+
}
|
|
1469
|
+
var node = makeNode($this, keyHash1, key1, value1, keyHash2, key2, value2, shift + 5 | 0, owner);
|
|
1470
|
+
var tmp_0 = 1 << setBit1;
|
|
1471
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1472
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1473
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1474
|
+
var tmp$ret$11 = [node];
|
|
1475
|
+
return new TrieNode(0, tmp_0, tmp$ret$11, owner);
|
|
1476
|
+
}
|
|
1477
|
+
function removeEntryAtIndex($this, keyIndex, positionMask) {
|
|
1478
|
+
if ($this.j9b_1.length === 2)
|
|
1479
|
+
return null;
|
|
1480
|
+
var newBuffer = removeEntryAtIndex_0($this.j9b_1, keyIndex);
|
|
1481
|
+
return TrieNode_init_$Create$($this.g9b_1 ^ positionMask, $this.h9b_1, newBuffer);
|
|
1482
|
+
}
|
|
1483
|
+
function mutableRemoveEntryAtIndex($this, keyIndex, positionMask, mutator) {
|
|
1484
|
+
var _unary__edvuaz = mutator.z9b_1;
|
|
1485
|
+
mutator.p9c(_unary__edvuaz - 1 | 0);
|
|
1486
|
+
mutator.x9b_1 = valueAtKeyIndex($this, keyIndex);
|
|
1487
|
+
if ($this.j9b_1.length === 2)
|
|
1488
|
+
return null;
|
|
1489
|
+
if ($this.i9b_1 === mutator.v9b_1) {
|
|
1490
|
+
$this.j9b_1 = removeEntryAtIndex_0($this.j9b_1, keyIndex);
|
|
1491
|
+
$this.g9b_1 = $this.g9b_1 ^ positionMask;
|
|
1492
|
+
return $this;
|
|
1493
|
+
}
|
|
1494
|
+
var newBuffer = removeEntryAtIndex_0($this.j9b_1, keyIndex);
|
|
1495
|
+
return new TrieNode($this.g9b_1 ^ positionMask, $this.h9b_1, newBuffer, mutator.v9b_1);
|
|
1496
|
+
}
|
|
1497
|
+
function collisionRemoveEntryAtIndex($this, i) {
|
|
1498
|
+
if ($this.j9b_1.length === 2)
|
|
1499
|
+
return null;
|
|
1500
|
+
var newBuffer = removeEntryAtIndex_0($this.j9b_1, i);
|
|
1501
|
+
return TrieNode_init_$Create$(0, 0, newBuffer);
|
|
1502
|
+
}
|
|
1503
|
+
function mutableCollisionRemoveEntryAtIndex($this, i, mutator) {
|
|
1504
|
+
var _unary__edvuaz = mutator.z9b_1;
|
|
1505
|
+
mutator.p9c(_unary__edvuaz - 1 | 0);
|
|
1506
|
+
mutator.x9b_1 = valueAtKeyIndex($this, i);
|
|
1507
|
+
if ($this.j9b_1.length === 2)
|
|
1508
|
+
return null;
|
|
1509
|
+
if ($this.i9b_1 === mutator.v9b_1) {
|
|
1510
|
+
$this.j9b_1 = removeEntryAtIndex_0($this.j9b_1, i);
|
|
1511
|
+
return $this;
|
|
1512
|
+
}
|
|
1513
|
+
var newBuffer = removeEntryAtIndex_0($this.j9b_1, i);
|
|
1514
|
+
return new TrieNode(0, 0, newBuffer, mutator.v9b_1);
|
|
1515
|
+
}
|
|
1516
|
+
function collisionKeyIndex($this, key) {
|
|
1517
|
+
var progression = step(until(0, $this.j9b_1.length), 2);
|
|
1518
|
+
var inductionVariable = progression.b1_1;
|
|
1519
|
+
var last = progression.c1_1;
|
|
1520
|
+
var step_0 = progression.d1_1;
|
|
1521
|
+
if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
|
|
1522
|
+
do {
|
|
1523
|
+
var i = inductionVariable;
|
|
1524
|
+
inductionVariable = inductionVariable + step_0 | 0;
|
|
1525
|
+
if (equals(key, keyAtIndex($this, i)))
|
|
1526
|
+
return i;
|
|
1527
|
+
}
|
|
1528
|
+
while (!(i === last));
|
|
1529
|
+
return -1;
|
|
1530
|
+
}
|
|
1531
|
+
function collisionContainsKey($this, key) {
|
|
1532
|
+
return !(collisionKeyIndex($this, key) === -1);
|
|
1533
|
+
}
|
|
1534
|
+
function collisionGet($this, key) {
|
|
1535
|
+
var keyIndex = collisionKeyIndex($this, key);
|
|
1536
|
+
return !(keyIndex === -1) ? valueAtKeyIndex($this, keyIndex) : null;
|
|
1537
|
+
}
|
|
1538
|
+
function collisionPut($this, key, value) {
|
|
1539
|
+
var keyIndex = collisionKeyIndex($this, key);
|
|
1540
|
+
if (!(keyIndex === -1)) {
|
|
1541
|
+
if (value === valueAtKeyIndex($this, keyIndex)) {
|
|
1542
|
+
return null;
|
|
1543
|
+
}
|
|
1544
|
+
// Inline function 'kotlin.collections.copyOf' call
|
|
1545
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1546
|
+
var newBuffer = $this.j9b_1.slice();
|
|
1547
|
+
newBuffer[keyIndex + 1 | 0] = value;
|
|
1548
|
+
return asUpdateResult(TrieNode_init_$Create$(0, 0, newBuffer));
|
|
1549
|
+
}
|
|
1550
|
+
var newBuffer_0 = insertEntryAtIndex($this.j9b_1, 0, key, value);
|
|
1551
|
+
return asInsertResult(TrieNode_init_$Create$(0, 0, newBuffer_0));
|
|
1552
|
+
}
|
|
1553
|
+
function mutableCollisionPut($this, key, value, mutator) {
|
|
1554
|
+
var keyIndex = collisionKeyIndex($this, key);
|
|
1555
|
+
if (!(keyIndex === -1)) {
|
|
1556
|
+
mutator.x9b_1 = valueAtKeyIndex($this, keyIndex);
|
|
1557
|
+
if ($this.i9b_1 === mutator.v9b_1) {
|
|
1558
|
+
$this.j9b_1[keyIndex + 1 | 0] = value;
|
|
1559
|
+
return $this;
|
|
1560
|
+
}
|
|
1561
|
+
mutator.y9b_1 = mutator.y9b_1 + 1 | 0;
|
|
1562
|
+
// Inline function 'kotlin.collections.copyOf' call
|
|
1563
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1564
|
+
var newBuffer = $this.j9b_1.slice();
|
|
1565
|
+
newBuffer[keyIndex + 1 | 0] = value;
|
|
1566
|
+
return new TrieNode(0, 0, newBuffer, mutator.v9b_1);
|
|
1567
|
+
}
|
|
1568
|
+
var _unary__edvuaz = mutator.z9b_1;
|
|
1569
|
+
mutator.p9c(_unary__edvuaz + 1 | 0);
|
|
1570
|
+
var newBuffer_0 = insertEntryAtIndex($this.j9b_1, 0, key, value);
|
|
1571
|
+
return new TrieNode(0, 0, newBuffer_0, mutator.v9b_1);
|
|
1572
|
+
}
|
|
1573
|
+
function collisionRemove($this, key) {
|
|
1574
|
+
var keyIndex = collisionKeyIndex($this, key);
|
|
1575
|
+
if (!(keyIndex === -1)) {
|
|
1576
|
+
return collisionRemoveEntryAtIndex($this, keyIndex);
|
|
1577
|
+
}
|
|
1578
|
+
return $this;
|
|
1579
|
+
}
|
|
1580
|
+
function mutableCollisionRemove($this, key, mutator) {
|
|
1581
|
+
var keyIndex = collisionKeyIndex($this, key);
|
|
1582
|
+
if (!(keyIndex === -1)) {
|
|
1583
|
+
return mutableCollisionRemoveEntryAtIndex($this, keyIndex, mutator);
|
|
1584
|
+
}
|
|
1585
|
+
return $this;
|
|
1586
|
+
}
|
|
1587
|
+
function mutableCollisionRemove_0($this, key, value, mutator) {
|
|
1588
|
+
var keyIndex = collisionKeyIndex($this, key);
|
|
1589
|
+
if (!(keyIndex === -1) && equals(value, valueAtKeyIndex($this, keyIndex))) {
|
|
1590
|
+
return mutableCollisionRemoveEntryAtIndex($this, keyIndex, mutator);
|
|
1591
|
+
}
|
|
1592
|
+
return $this;
|
|
1593
|
+
}
|
|
1594
|
+
function mutableCollisionPutAll($this, otherNode, intersectionCounter, owner) {
|
|
1595
|
+
assert($this.h9b_1 === 0);
|
|
1596
|
+
assert($this.g9b_1 === 0);
|
|
1597
|
+
assert(otherNode.h9b_1 === 0);
|
|
1598
|
+
assert(otherNode.g9b_1 === 0);
|
|
1599
|
+
var tempBuffer = copyOf($this.j9b_1, $this.j9b_1.length + otherNode.j9b_1.length | 0);
|
|
1600
|
+
var i = $this.j9b_1.length;
|
|
1601
|
+
var progression = step(until(0, otherNode.j9b_1.length), 2);
|
|
1602
|
+
var inductionVariable = progression.b1_1;
|
|
1603
|
+
var last = progression.c1_1;
|
|
1604
|
+
var step_0 = progression.d1_1;
|
|
1605
|
+
if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
|
|
1606
|
+
do {
|
|
1607
|
+
var j = inductionVariable;
|
|
1608
|
+
inductionVariable = inductionVariable + step_0 | 0;
|
|
1609
|
+
var tmp = otherNode.j9b_1[j];
|
|
1610
|
+
if (!collisionContainsKey($this, (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE())) {
|
|
1611
|
+
tempBuffer[i] = otherNode.j9b_1[j];
|
|
1612
|
+
tempBuffer[i + 1 | 0] = otherNode.j9b_1[j + 1 | 0];
|
|
1613
|
+
i = i + 2 | 0;
|
|
1614
|
+
} else {
|
|
1615
|
+
intersectionCounter.s9c_1 = intersectionCounter.s9c_1 + 1 | 0;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
while (!(j === last));
|
|
1619
|
+
var newSize = i;
|
|
1620
|
+
return newSize === $this.j9b_1.length ? $this : newSize === otherNode.j9b_1.length ? otherNode : newSize === tempBuffer.length ? new TrieNode(0, 0, tempBuffer, owner) : new TrieNode(0, 0, copyOf(tempBuffer, newSize), owner);
|
|
1621
|
+
}
|
|
1622
|
+
function mutablePutAllFromOtherNodeCell($this, otherNode, positionMask, shift, intersectionCounter, mutator) {
|
|
1623
|
+
var tmp;
|
|
1624
|
+
if (hasNodeAt($this, positionMask)) {
|
|
1625
|
+
var targetNode = $this.u9d($this.t9d(positionMask));
|
|
1626
|
+
var tmp_0;
|
|
1627
|
+
if (hasNodeAt(otherNode, positionMask)) {
|
|
1628
|
+
var otherTargetNode = otherNode.u9d(otherNode.t9d(positionMask));
|
|
1629
|
+
tmp_0 = targetNode.r9c(otherTargetNode, shift + 5 | 0, intersectionCounter, mutator);
|
|
1630
|
+
} else if (otherNode.s9d(positionMask)) {
|
|
1631
|
+
var keyIndex = otherNode.p9d(positionMask);
|
|
1632
|
+
var key = keyAtIndex(otherNode, keyIndex);
|
|
1633
|
+
var value = valueAtKeyIndex(otherNode, keyIndex);
|
|
1634
|
+
var oldSize = mutator.z9b_1;
|
|
1635
|
+
// Inline function 'kotlin.hashCode' call
|
|
1636
|
+
var tmp1_elvis_lhs = key == null ? null : hashCode(key);
|
|
1637
|
+
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1638
|
+
// Inline function 'kotlin.also' call
|
|
1639
|
+
var this_0 = targetNode.q9c(tmp$ret$0, key, value, shift + 5 | 0, mutator);
|
|
1640
|
+
if (mutator.z9b_1 === oldSize) {
|
|
1641
|
+
intersectionCounter.s9c_1 = intersectionCounter.s9c_1 + 1 | 0;
|
|
1642
|
+
}
|
|
1643
|
+
tmp_0 = this_0;
|
|
1644
|
+
} else {
|
|
1645
|
+
tmp_0 = targetNode;
|
|
1646
|
+
}
|
|
1647
|
+
tmp = tmp_0;
|
|
1648
|
+
} else if (hasNodeAt(otherNode, positionMask)) {
|
|
1649
|
+
var otherTargetNode_0 = otherNode.u9d(otherNode.t9d(positionMask));
|
|
1650
|
+
var tmp_1;
|
|
1651
|
+
if ($this.s9d(positionMask)) {
|
|
1652
|
+
var keyIndex_0 = $this.p9d(positionMask);
|
|
1653
|
+
var key_0 = keyAtIndex($this, keyIndex_0);
|
|
1654
|
+
var tmp_2;
|
|
1655
|
+
// Inline function 'kotlin.hashCode' call
|
|
1656
|
+
var tmp1_elvis_lhs_0 = key_0 == null ? null : hashCode(key_0);
|
|
1657
|
+
var tmp$ret$3 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
|
|
1658
|
+
if (otherTargetNode_0.k9b(tmp$ret$3, key_0, shift + 5 | 0)) {
|
|
1659
|
+
intersectionCounter.s9c_1 = intersectionCounter.s9c_1 + 1 | 0;
|
|
1660
|
+
tmp_2 = otherTargetNode_0;
|
|
1661
|
+
} else {
|
|
1662
|
+
var value_0 = valueAtKeyIndex($this, keyIndex_0);
|
|
1663
|
+
// Inline function 'kotlin.hashCode' call
|
|
1664
|
+
var tmp1_elvis_lhs_1 = key_0 == null ? null : hashCode(key_0);
|
|
1665
|
+
var tmp$ret$4 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
|
|
1666
|
+
tmp_2 = otherTargetNode_0.q9c(tmp$ret$4, key_0, value_0, shift + 5 | 0, mutator);
|
|
1667
|
+
}
|
|
1668
|
+
tmp_1 = tmp_2;
|
|
1669
|
+
} else {
|
|
1670
|
+
tmp_1 = otherTargetNode_0;
|
|
1671
|
+
}
|
|
1672
|
+
tmp = tmp_1;
|
|
1673
|
+
} else {
|
|
1674
|
+
var thisKeyIndex = $this.p9d(positionMask);
|
|
1675
|
+
var thisKey = keyAtIndex($this, thisKeyIndex);
|
|
1676
|
+
var thisValue = valueAtKeyIndex($this, thisKeyIndex);
|
|
1677
|
+
var otherKeyIndex = otherNode.p9d(positionMask);
|
|
1678
|
+
var otherKey = keyAtIndex(otherNode, otherKeyIndex);
|
|
1679
|
+
var otherValue = valueAtKeyIndex(otherNode, otherKeyIndex);
|
|
1680
|
+
// Inline function 'kotlin.hashCode' call
|
|
1681
|
+
var tmp1_elvis_lhs_2 = thisKey == null ? null : hashCode(thisKey);
|
|
1682
|
+
var tmp_3 = tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2;
|
|
1683
|
+
// Inline function 'kotlin.hashCode' call
|
|
1684
|
+
var tmp1_elvis_lhs_3 = otherKey == null ? null : hashCode(otherKey);
|
|
1685
|
+
var tmp$ret$6 = tmp1_elvis_lhs_3 == null ? 0 : tmp1_elvis_lhs_3;
|
|
1686
|
+
tmp = makeNode($this, tmp_3, thisKey, thisValue, tmp$ret$6, otherKey, otherValue, shift + 5 | 0, mutator.v9b_1);
|
|
1687
|
+
}
|
|
1688
|
+
return tmp;
|
|
1689
|
+
}
|
|
1690
|
+
function calculateSize($this) {
|
|
1691
|
+
if ($this.h9b_1 === 0)
|
|
1692
|
+
return $this.j9b_1.length / 2 | 0;
|
|
1693
|
+
var numValues = countOneBits($this.g9b_1);
|
|
1694
|
+
var result = numValues;
|
|
1695
|
+
var inductionVariable = imul(numValues, 2);
|
|
1696
|
+
var last = $this.j9b_1.length;
|
|
1697
|
+
if (inductionVariable < last)
|
|
1698
|
+
do {
|
|
1699
|
+
var i = inductionVariable;
|
|
1700
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1701
|
+
result = result + calculateSize($this.u9d(i)) | 0;
|
|
1702
|
+
}
|
|
1703
|
+
while (inductionVariable < last);
|
|
1704
|
+
return result;
|
|
1705
|
+
}
|
|
1706
|
+
function elementsIdentityEquals($this, otherNode) {
|
|
1707
|
+
if ($this === otherNode)
|
|
1708
|
+
return true;
|
|
1709
|
+
if (!($this.h9b_1 === otherNode.h9b_1))
|
|
1710
|
+
return false;
|
|
1711
|
+
if (!($this.g9b_1 === otherNode.g9b_1))
|
|
1712
|
+
return false;
|
|
1713
|
+
var inductionVariable = 0;
|
|
1714
|
+
var last = $this.j9b_1.length;
|
|
1715
|
+
if (inductionVariable < last)
|
|
1716
|
+
do {
|
|
1717
|
+
var i = inductionVariable;
|
|
1718
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1719
|
+
if (!($this.j9b_1[i] === otherNode.j9b_1[i]))
|
|
1720
|
+
return false;
|
|
1721
|
+
}
|
|
1722
|
+
while (inductionVariable < last);
|
|
1723
|
+
return true;
|
|
1724
|
+
}
|
|
1725
|
+
function replaceNode($this, targetNode, newNode, nodeIndex, positionMask) {
|
|
1726
|
+
return newNode == null ? removeNodeAtIndex($this, nodeIndex, positionMask) : !(targetNode === newNode) ? updateNodeAtIndex$default($this, nodeIndex, positionMask, newNode) : $this;
|
|
1727
|
+
}
|
|
1728
|
+
function mutableReplaceNode($this, newNode, nodeIndex, positionMask, owner) {
|
|
1729
|
+
return newNode == null ? mutableRemoveNodeAtIndex($this, nodeIndex, positionMask, owner) : updateNodeAtIndex($this, nodeIndex, positionMask, newNode, owner);
|
|
1730
|
+
}
|
|
1731
|
+
function Companion_1() {
|
|
1732
|
+
Companion_instance_1 = this;
|
|
1733
|
+
var tmp = this;
|
|
1734
|
+
// Inline function 'kotlin.emptyArray' call
|
|
1735
|
+
var tmp$ret$0 = [];
|
|
1736
|
+
tmp.y9a_1 = TrieNode_init_$Create$(0, 0, tmp$ret$0);
|
|
1737
|
+
}
|
|
1738
|
+
var Companion_instance_1;
|
|
1739
|
+
function Companion_getInstance_1() {
|
|
1740
|
+
if (Companion_instance_1 == null)
|
|
1741
|
+
new Companion_1();
|
|
1742
|
+
return Companion_instance_1;
|
|
1743
|
+
}
|
|
1744
|
+
function TrieNode(dataMap, nodeMap, buffer, ownedBy) {
|
|
1745
|
+
Companion_getInstance_1();
|
|
1746
|
+
this.g9b_1 = dataMap;
|
|
1747
|
+
this.h9b_1 = nodeMap;
|
|
1748
|
+
this.i9b_1 = ownedBy;
|
|
1749
|
+
this.j9b_1 = buffer;
|
|
1750
|
+
}
|
|
1751
|
+
protoOf(TrieNode).r9d = function () {
|
|
1752
|
+
return countOneBits(this.g9b_1);
|
|
1753
|
+
};
|
|
1754
|
+
protoOf(TrieNode).s9d = function (positionMask) {
|
|
1755
|
+
return !((this.g9b_1 & positionMask) === 0);
|
|
1756
|
+
};
|
|
1757
|
+
protoOf(TrieNode).p9d = function (positionMask) {
|
|
1758
|
+
return imul(2, countOneBits(this.g9b_1 & (positionMask - 1 | 0)));
|
|
1759
|
+
};
|
|
1760
|
+
protoOf(TrieNode).t9d = function (positionMask) {
|
|
1761
|
+
return (this.j9b_1.length - 1 | 0) - countOneBits(this.h9b_1 & (positionMask - 1 | 0)) | 0;
|
|
1762
|
+
};
|
|
1763
|
+
protoOf(TrieNode).u9d = function (nodeIndex) {
|
|
1764
|
+
var tmp = this.j9b_1[nodeIndex];
|
|
1765
|
+
return tmp instanceof TrieNode ? tmp : THROW_CCE();
|
|
1766
|
+
};
|
|
1767
|
+
protoOf(TrieNode).k9b = function (keyHash, key, shift) {
|
|
1768
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1769
|
+
if (this.s9d(keyPositionMask)) {
|
|
1770
|
+
return equals(key, keyAtIndex(this, this.p9d(keyPositionMask)));
|
|
1771
|
+
}
|
|
1772
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
1773
|
+
var targetNode = this.u9d(this.t9d(keyPositionMask));
|
|
1774
|
+
if (shift === 30) {
|
|
1775
|
+
return collisionContainsKey(targetNode, key);
|
|
1776
|
+
}
|
|
1777
|
+
return targetNode.k9b(keyHash, key, shift + 5 | 0);
|
|
1778
|
+
}
|
|
1779
|
+
return false;
|
|
1780
|
+
};
|
|
1781
|
+
protoOf(TrieNode).l9b = function (keyHash, key, shift) {
|
|
1782
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1783
|
+
if (this.s9d(keyPositionMask)) {
|
|
1784
|
+
var keyIndex = this.p9d(keyPositionMask);
|
|
1785
|
+
if (equals(key, keyAtIndex(this, keyIndex))) {
|
|
1786
|
+
return valueAtKeyIndex(this, keyIndex);
|
|
1787
|
+
}
|
|
1788
|
+
return null;
|
|
1789
|
+
}
|
|
1790
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
1791
|
+
var targetNode = this.u9d(this.t9d(keyPositionMask));
|
|
1792
|
+
if (shift === 30) {
|
|
1793
|
+
return collisionGet(targetNode, key);
|
|
1794
|
+
}
|
|
1795
|
+
return targetNode.l9b(keyHash, key, shift + 5 | 0);
|
|
1796
|
+
}
|
|
1797
|
+
return null;
|
|
1798
|
+
};
|
|
1799
|
+
protoOf(TrieNode).r9c = function (otherNode, shift, intersectionCounter, mutator) {
|
|
1800
|
+
if (this === otherNode) {
|
|
1801
|
+
intersectionCounter.b9f(calculateSize(this));
|
|
1802
|
+
return this;
|
|
1803
|
+
}
|
|
1804
|
+
if (shift > 30) {
|
|
1805
|
+
return mutableCollisionPutAll(this, otherNode, intersectionCounter, mutator.v9b_1);
|
|
1806
|
+
}
|
|
1807
|
+
var newNodeMap = this.h9b_1 | otherNode.h9b_1;
|
|
1808
|
+
var newDataMap = (this.g9b_1 ^ otherNode.g9b_1) & ~newNodeMap;
|
|
1809
|
+
// Inline function 'kotlinx.collections.immutable.internal.forEachOneBit' call
|
|
1810
|
+
var mask = this.g9b_1 & otherNode.g9b_1;
|
|
1811
|
+
var index = 0;
|
|
1812
|
+
while (!(mask === 0)) {
|
|
1813
|
+
var bit = takeLowestOneBit(mask);
|
|
1814
|
+
var leftKey = keyAtIndex(this, this.p9d(bit));
|
|
1815
|
+
var rightKey = keyAtIndex(otherNode, otherNode.p9d(bit));
|
|
1816
|
+
if (equals(leftKey, rightKey))
|
|
1817
|
+
newDataMap = newDataMap | bit;
|
|
1818
|
+
else
|
|
1819
|
+
newNodeMap = newNodeMap | bit;
|
|
1820
|
+
index = index + 1 | 0;
|
|
1821
|
+
mask = mask ^ bit;
|
|
1822
|
+
}
|
|
1823
|
+
// Inline function 'kotlin.check' call
|
|
1824
|
+
if (!((newNodeMap & newDataMap) === 0)) {
|
|
1825
|
+
throw IllegalStateException_init_$Create$_0('Check failed.');
|
|
1826
|
+
}
|
|
1827
|
+
var tmp;
|
|
1828
|
+
if (equals(this.i9b_1, mutator.v9b_1) && this.g9b_1 === newDataMap && this.h9b_1 === newNodeMap) {
|
|
1829
|
+
tmp = this;
|
|
1830
|
+
} else {
|
|
1831
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1832
|
+
var size = imul(countOneBits(newDataMap), 2) + countOneBits(newNodeMap) | 0;
|
|
1833
|
+
var newBuffer = Array(size);
|
|
1834
|
+
tmp = TrieNode_init_$Create$(newDataMap, newNodeMap, newBuffer);
|
|
1835
|
+
}
|
|
1836
|
+
var mutableNode = tmp;
|
|
1837
|
+
// Inline function 'kotlinx.collections.immutable.internal.forEachOneBit' call
|
|
1838
|
+
var mask_0 = newNodeMap;
|
|
1839
|
+
var index_0 = 0;
|
|
1840
|
+
while (!(mask_0 === 0)) {
|
|
1841
|
+
var bit_0 = takeLowestOneBit(mask_0);
|
|
1842
|
+
var index_1 = index_0;
|
|
1843
|
+
var newNodeIndex = (mutableNode.j9b_1.length - 1 | 0) - index_1 | 0;
|
|
1844
|
+
mutableNode.j9b_1[newNodeIndex] = mutablePutAllFromOtherNodeCell(this, otherNode, bit_0, shift, intersectionCounter, mutator);
|
|
1845
|
+
index_0 = index_0 + 1 | 0;
|
|
1846
|
+
mask_0 = mask_0 ^ bit_0;
|
|
1847
|
+
}
|
|
1848
|
+
// Inline function 'kotlinx.collections.immutable.internal.forEachOneBit' call
|
|
1849
|
+
var mask_1 = newDataMap;
|
|
1850
|
+
var index_2 = 0;
|
|
1851
|
+
while (!(mask_1 === 0)) {
|
|
1852
|
+
var bit_1 = takeLowestOneBit(mask_1);
|
|
1853
|
+
var index_3 = index_2;
|
|
1854
|
+
var newKeyIndex = imul(index_3, 2);
|
|
1855
|
+
if (!otherNode.s9d(bit_1)) {
|
|
1856
|
+
var oldKeyIndex = this.p9d(bit_1);
|
|
1857
|
+
mutableNode.j9b_1[newKeyIndex] = keyAtIndex(this, oldKeyIndex);
|
|
1858
|
+
mutableNode.j9b_1[newKeyIndex + 1 | 0] = valueAtKeyIndex(this, oldKeyIndex);
|
|
1859
|
+
} else {
|
|
1860
|
+
var oldKeyIndex_0 = otherNode.p9d(bit_1);
|
|
1861
|
+
mutableNode.j9b_1[newKeyIndex] = keyAtIndex(otherNode, oldKeyIndex_0);
|
|
1862
|
+
mutableNode.j9b_1[newKeyIndex + 1 | 0] = valueAtKeyIndex(otherNode, oldKeyIndex_0);
|
|
1863
|
+
if (this.s9d(bit_1)) {
|
|
1864
|
+
intersectionCounter.s9c_1 = intersectionCounter.s9c_1 + 1 | 0;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
index_2 = index_2 + 1 | 0;
|
|
1868
|
+
mask_1 = mask_1 ^ bit_1;
|
|
1869
|
+
}
|
|
1870
|
+
return elementsIdentityEquals(this, mutableNode) ? this : elementsIdentityEquals(otherNode, mutableNode) ? otherNode : mutableNode;
|
|
1871
|
+
};
|
|
1872
|
+
protoOf(TrieNode).m9b = function (keyHash, key, value, shift) {
|
|
1873
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1874
|
+
if (this.s9d(keyPositionMask)) {
|
|
1875
|
+
var keyIndex = this.p9d(keyPositionMask);
|
|
1876
|
+
if (equals(key, keyAtIndex(this, keyIndex))) {
|
|
1877
|
+
if (valueAtKeyIndex(this, keyIndex) === value)
|
|
1878
|
+
return null;
|
|
1879
|
+
return asUpdateResult(updateValueAtIndex(this, keyIndex, value));
|
|
1880
|
+
}
|
|
1881
|
+
return asInsertResult(moveEntryToNode(this, keyIndex, keyPositionMask, keyHash, key, value, shift));
|
|
1882
|
+
}
|
|
1883
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
1884
|
+
var nodeIndex = this.t9d(keyPositionMask);
|
|
1885
|
+
var targetNode = this.u9d(nodeIndex);
|
|
1886
|
+
var tmp;
|
|
1887
|
+
if (shift === 30) {
|
|
1888
|
+
var tmp0_elvis_lhs = collisionPut(targetNode, key, value);
|
|
1889
|
+
var tmp_0;
|
|
1890
|
+
if (tmp0_elvis_lhs == null) {
|
|
1891
|
+
return null;
|
|
1892
|
+
} else {
|
|
1893
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1894
|
+
}
|
|
1895
|
+
tmp = tmp_0;
|
|
1896
|
+
} else {
|
|
1897
|
+
var tmp1_elvis_lhs = targetNode.m9b(keyHash, key, value, shift + 5 | 0);
|
|
1898
|
+
var tmp_1;
|
|
1899
|
+
if (tmp1_elvis_lhs == null) {
|
|
1900
|
+
return null;
|
|
1901
|
+
} else {
|
|
1902
|
+
tmp_1 = tmp1_elvis_lhs;
|
|
1903
|
+
}
|
|
1904
|
+
tmp = tmp_1;
|
|
1905
|
+
}
|
|
1906
|
+
var putResult = tmp;
|
|
1907
|
+
// Inline function 'kotlinx.collections.immutable.implementations.immutableMap.ModificationResult.replaceNode' call
|
|
1908
|
+
// Inline function 'kotlin.apply' call
|
|
1909
|
+
var tmp_2 = putResult;
|
|
1910
|
+
var node = putResult.n9b_1;
|
|
1911
|
+
tmp_2.n9b_1 = updateNodeAtIndex$default(this, nodeIndex, keyPositionMask, node);
|
|
1912
|
+
return putResult;
|
|
1913
|
+
}
|
|
1914
|
+
return asInsertResult(insertEntryAt(this, keyPositionMask, key, value));
|
|
1915
|
+
};
|
|
1916
|
+
protoOf(TrieNode).q9c = function (keyHash, key, value, shift, mutator) {
|
|
1917
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1918
|
+
if (this.s9d(keyPositionMask)) {
|
|
1919
|
+
var keyIndex = this.p9d(keyPositionMask);
|
|
1920
|
+
if (equals(key, keyAtIndex(this, keyIndex))) {
|
|
1921
|
+
mutator.x9b_1 = valueAtKeyIndex(this, keyIndex);
|
|
1922
|
+
if (valueAtKeyIndex(this, keyIndex) === value) {
|
|
1923
|
+
return this;
|
|
1924
|
+
}
|
|
1925
|
+
return mutableUpdateValueAtIndex(this, keyIndex, value, mutator);
|
|
1926
|
+
}
|
|
1927
|
+
var _unary__edvuaz = mutator.z9b_1;
|
|
1928
|
+
mutator.p9c(_unary__edvuaz + 1 | 0);
|
|
1929
|
+
return mutableMoveEntryToNode(this, keyIndex, keyPositionMask, keyHash, key, value, shift, mutator.v9b_1);
|
|
1930
|
+
}
|
|
1931
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
1932
|
+
var nodeIndex = this.t9d(keyPositionMask);
|
|
1933
|
+
var targetNode = this.u9d(nodeIndex);
|
|
1934
|
+
var tmp;
|
|
1935
|
+
if (shift === 30) {
|
|
1936
|
+
tmp = mutableCollisionPut(targetNode, key, value, mutator);
|
|
1937
|
+
} else {
|
|
1938
|
+
tmp = targetNode.q9c(keyHash, key, value, shift + 5 | 0, mutator);
|
|
1939
|
+
}
|
|
1940
|
+
var newNode = tmp;
|
|
1941
|
+
if (targetNode === newNode) {
|
|
1942
|
+
return this;
|
|
1943
|
+
}
|
|
1944
|
+
return updateNodeAtIndex(this, nodeIndex, keyPositionMask, newNode, mutator.v9b_1);
|
|
1945
|
+
}
|
|
1946
|
+
var _unary__edvuaz_0 = mutator.z9b_1;
|
|
1947
|
+
mutator.p9c(_unary__edvuaz_0 + 1 | 0);
|
|
1948
|
+
return mutableInsertEntryAt(this, keyPositionMask, key, value, mutator.v9b_1);
|
|
1949
|
+
};
|
|
1950
|
+
protoOf(TrieNode).p9b = function (keyHash, key, shift) {
|
|
1951
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1952
|
+
if (this.s9d(keyPositionMask)) {
|
|
1953
|
+
var keyIndex = this.p9d(keyPositionMask);
|
|
1954
|
+
if (equals(key, keyAtIndex(this, keyIndex))) {
|
|
1955
|
+
return removeEntryAtIndex(this, keyIndex, keyPositionMask);
|
|
1956
|
+
}
|
|
1957
|
+
return this;
|
|
1958
|
+
}
|
|
1959
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
1960
|
+
var nodeIndex = this.t9d(keyPositionMask);
|
|
1961
|
+
var targetNode = this.u9d(nodeIndex);
|
|
1962
|
+
var tmp;
|
|
1963
|
+
if (shift === 30) {
|
|
1964
|
+
tmp = collisionRemove(targetNode, key);
|
|
1965
|
+
} else {
|
|
1966
|
+
tmp = targetNode.p9b(keyHash, key, shift + 5 | 0);
|
|
1967
|
+
}
|
|
1968
|
+
var newNode = tmp;
|
|
1969
|
+
return replaceNode(this, targetNode, newNode, nodeIndex, keyPositionMask);
|
|
1970
|
+
}
|
|
1971
|
+
return this;
|
|
1972
|
+
};
|
|
1973
|
+
protoOf(TrieNode).t9c = function (keyHash, key, shift, mutator) {
|
|
1974
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1975
|
+
if (this.s9d(keyPositionMask)) {
|
|
1976
|
+
var keyIndex = this.p9d(keyPositionMask);
|
|
1977
|
+
if (equals(key, keyAtIndex(this, keyIndex))) {
|
|
1978
|
+
return mutableRemoveEntryAtIndex(this, keyIndex, keyPositionMask, mutator);
|
|
1979
|
+
}
|
|
1980
|
+
return this;
|
|
1981
|
+
}
|
|
1982
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
1983
|
+
var nodeIndex = this.t9d(keyPositionMask);
|
|
1984
|
+
var targetNode = this.u9d(nodeIndex);
|
|
1985
|
+
var tmp;
|
|
1986
|
+
if (shift === 30) {
|
|
1987
|
+
tmp = mutableCollisionRemove(targetNode, key, mutator);
|
|
1988
|
+
} else {
|
|
1989
|
+
tmp = targetNode.t9c(keyHash, key, shift + 5 | 0, mutator);
|
|
1990
|
+
}
|
|
1991
|
+
var newNode = tmp;
|
|
1992
|
+
return mutableReplaceNode(this, newNode, nodeIndex, keyPositionMask, mutator.v9b_1);
|
|
1993
|
+
}
|
|
1994
|
+
return this;
|
|
1995
|
+
};
|
|
1996
|
+
protoOf(TrieNode).v9c = function (keyHash, key, value, shift, mutator) {
|
|
1997
|
+
var keyPositionMask = 1 << indexSegment_0(keyHash, shift);
|
|
1998
|
+
if (this.s9d(keyPositionMask)) {
|
|
1999
|
+
var keyIndex = this.p9d(keyPositionMask);
|
|
2000
|
+
if (equals(key, keyAtIndex(this, keyIndex)) && equals(value, valueAtKeyIndex(this, keyIndex))) {
|
|
2001
|
+
return mutableRemoveEntryAtIndex(this, keyIndex, keyPositionMask, mutator);
|
|
2002
|
+
}
|
|
2003
|
+
return this;
|
|
2004
|
+
}
|
|
2005
|
+
if (hasNodeAt(this, keyPositionMask)) {
|
|
2006
|
+
var nodeIndex = this.t9d(keyPositionMask);
|
|
2007
|
+
var targetNode = this.u9d(nodeIndex);
|
|
2008
|
+
var tmp;
|
|
2009
|
+
if (shift === 30) {
|
|
2010
|
+
tmp = mutableCollisionRemove_0(targetNode, key, value, mutator);
|
|
2011
|
+
} else {
|
|
2012
|
+
tmp = targetNode.v9c(keyHash, key, value, shift + 5 | 0, mutator);
|
|
2013
|
+
}
|
|
2014
|
+
var newNode = tmp;
|
|
2015
|
+
return mutableReplaceNode(this, newNode, nodeIndex, keyPositionMask, mutator.v9b_1);
|
|
2016
|
+
}
|
|
2017
|
+
return this;
|
|
2018
|
+
};
|
|
2019
|
+
protoOf(TrieNode).a9c = function (that, equalityComparator) {
|
|
2020
|
+
if (this === that)
|
|
2021
|
+
return true;
|
|
2022
|
+
if (!(this.g9b_1 === that.g9b_1) || !(this.h9b_1 === that.h9b_1))
|
|
2023
|
+
return false;
|
|
2024
|
+
if (this.g9b_1 === 0 && this.h9b_1 === 0) {
|
|
2025
|
+
if (!(this.j9b_1.length === that.j9b_1.length))
|
|
2026
|
+
return false;
|
|
2027
|
+
var tmp0 = step(until(0, this.j9b_1.length), 2);
|
|
2028
|
+
var tmp$ret$0;
|
|
2029
|
+
$l$block_0: {
|
|
2030
|
+
// Inline function 'kotlin.collections.all' call
|
|
2031
|
+
var tmp;
|
|
2032
|
+
if (isInterface(tmp0, Collection)) {
|
|
2033
|
+
tmp = tmp0.r();
|
|
2034
|
+
} else {
|
|
2035
|
+
tmp = false;
|
|
2036
|
+
}
|
|
2037
|
+
if (tmp) {
|
|
2038
|
+
tmp$ret$0 = true;
|
|
2039
|
+
break $l$block_0;
|
|
2040
|
+
}
|
|
2041
|
+
var inductionVariable = tmp0.b1_1;
|
|
2042
|
+
var last = tmp0.c1_1;
|
|
2043
|
+
var step_0 = tmp0.d1_1;
|
|
2044
|
+
if (step_0 > 0 && inductionVariable <= last || (step_0 < 0 && last <= inductionVariable))
|
|
2045
|
+
do {
|
|
2046
|
+
var element = inductionVariable;
|
|
2047
|
+
inductionVariable = inductionVariable + step_0 | 0;
|
|
2048
|
+
var i = element;
|
|
2049
|
+
var thatKey = keyAtIndex(that, i);
|
|
2050
|
+
var thatValue = valueAtKeyIndex(that, i);
|
|
2051
|
+
var keyIndex = collisionKeyIndex(this, thatKey);
|
|
2052
|
+
var tmp_0;
|
|
2053
|
+
if (!(keyIndex === -1)) {
|
|
2054
|
+
var value = valueAtKeyIndex(this, keyIndex);
|
|
2055
|
+
tmp_0 = equalityComparator(value, thatValue);
|
|
2056
|
+
} else {
|
|
2057
|
+
tmp_0 = false;
|
|
2058
|
+
}
|
|
2059
|
+
if (!tmp_0) {
|
|
2060
|
+
tmp$ret$0 = false;
|
|
2061
|
+
break $l$block_0;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
while (!(element === last));
|
|
2065
|
+
tmp$ret$0 = true;
|
|
2066
|
+
}
|
|
2067
|
+
return tmp$ret$0;
|
|
2068
|
+
}
|
|
2069
|
+
var valueSize = imul(countOneBits(this.g9b_1), 2);
|
|
2070
|
+
var progression = step(until(0, valueSize), 2);
|
|
2071
|
+
var inductionVariable_0 = progression.b1_1;
|
|
2072
|
+
var last_0 = progression.c1_1;
|
|
2073
|
+
var step_1 = progression.d1_1;
|
|
2074
|
+
if (step_1 > 0 && inductionVariable_0 <= last_0 || (step_1 < 0 && last_0 <= inductionVariable_0))
|
|
2075
|
+
do {
|
|
2076
|
+
var i_0 = inductionVariable_0;
|
|
2077
|
+
inductionVariable_0 = inductionVariable_0 + step_1 | 0;
|
|
2078
|
+
if (!equals(keyAtIndex(this, i_0), keyAtIndex(that, i_0)))
|
|
2079
|
+
return false;
|
|
2080
|
+
if (!equalityComparator(valueAtKeyIndex(this, i_0), valueAtKeyIndex(that, i_0)))
|
|
2081
|
+
return false;
|
|
2082
|
+
}
|
|
2083
|
+
while (!(i_0 === last_0));
|
|
2084
|
+
var inductionVariable_1 = valueSize;
|
|
2085
|
+
var last_1 = this.j9b_1.length;
|
|
2086
|
+
if (inductionVariable_1 < last_1)
|
|
2087
|
+
do {
|
|
2088
|
+
var i_1 = inductionVariable_1;
|
|
2089
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
2090
|
+
if (!this.u9d(i_1).a9c(that.u9d(i_1), equalityComparator))
|
|
2091
|
+
return false;
|
|
2092
|
+
}
|
|
2093
|
+
while (inductionVariable_1 < last_1);
|
|
2094
|
+
return true;
|
|
2095
|
+
};
|
|
2096
|
+
function insertEntryAtIndex(_this__u8e3s4, keyIndex, key, value) {
|
|
2097
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
2098
|
+
var size = _this__u8e3s4.length + 2 | 0;
|
|
2099
|
+
var newBuffer = Array(size);
|
|
2100
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2101
|
+
arrayCopy(_this__u8e3s4, newBuffer, 0, 0, keyIndex);
|
|
2102
|
+
var tmp4 = keyIndex + 2 | 0;
|
|
2103
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2104
|
+
var endIndex = _this__u8e3s4.length;
|
|
2105
|
+
arrayCopy(_this__u8e3s4, newBuffer, tmp4, keyIndex, endIndex);
|
|
2106
|
+
newBuffer[keyIndex] = key;
|
|
2107
|
+
newBuffer[keyIndex + 1 | 0] = value;
|
|
2108
|
+
return newBuffer;
|
|
2109
|
+
}
|
|
2110
|
+
function replaceNodeWithEntry(_this__u8e3s4, nodeIndex, keyIndex, key, value) {
|
|
2111
|
+
var newBuffer = copyOf(_this__u8e3s4, _this__u8e3s4.length + 1 | 0);
|
|
2112
|
+
var tmp4 = nodeIndex + 2 | 0;
|
|
2113
|
+
var tmp6 = nodeIndex + 1 | 0;
|
|
2114
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2115
|
+
var endIndex = _this__u8e3s4.length;
|
|
2116
|
+
arrayCopy(newBuffer, newBuffer, tmp4, tmp6, endIndex);
|
|
2117
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2118
|
+
var destinationOffset = keyIndex + 2 | 0;
|
|
2119
|
+
arrayCopy(newBuffer, newBuffer, destinationOffset, keyIndex, nodeIndex);
|
|
2120
|
+
newBuffer[keyIndex] = key;
|
|
2121
|
+
newBuffer[keyIndex + 1 | 0] = value;
|
|
2122
|
+
return newBuffer;
|
|
2123
|
+
}
|
|
2124
|
+
function removeNodeAtIndex_0(_this__u8e3s4, nodeIndex) {
|
|
2125
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
2126
|
+
var size = _this__u8e3s4.length - 1 | 0;
|
|
2127
|
+
var newBuffer = Array(size);
|
|
2128
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2129
|
+
arrayCopy(_this__u8e3s4, newBuffer, 0, 0, nodeIndex);
|
|
2130
|
+
var tmp6 = nodeIndex + 1 | 0;
|
|
2131
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2132
|
+
var endIndex = _this__u8e3s4.length;
|
|
2133
|
+
arrayCopy(_this__u8e3s4, newBuffer, nodeIndex, tmp6, endIndex);
|
|
2134
|
+
return newBuffer;
|
|
2135
|
+
}
|
|
2136
|
+
function replaceEntryWithNode(_this__u8e3s4, keyIndex, nodeIndex, newNode) {
|
|
2137
|
+
var newNodeIndex = nodeIndex - 2 | 0;
|
|
2138
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
2139
|
+
var size = (_this__u8e3s4.length - 2 | 0) + 1 | 0;
|
|
2140
|
+
var newBuffer = Array(size);
|
|
2141
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2142
|
+
arrayCopy(_this__u8e3s4, newBuffer, 0, 0, keyIndex);
|
|
2143
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2144
|
+
var startIndex = keyIndex + 2 | 0;
|
|
2145
|
+
arrayCopy(_this__u8e3s4, newBuffer, keyIndex, startIndex, nodeIndex);
|
|
2146
|
+
newBuffer[newNodeIndex] = newNode;
|
|
2147
|
+
var tmp4 = newNodeIndex + 1 | 0;
|
|
2148
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2149
|
+
var endIndex = _this__u8e3s4.length;
|
|
2150
|
+
arrayCopy(_this__u8e3s4, newBuffer, tmp4, nodeIndex, endIndex);
|
|
2151
|
+
return newBuffer;
|
|
2152
|
+
}
|
|
2153
|
+
function indexSegment_0(index, shift) {
|
|
2154
|
+
return index >> shift & 31;
|
|
2155
|
+
}
|
|
2156
|
+
function removeEntryAtIndex_0(_this__u8e3s4, keyIndex) {
|
|
2157
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
2158
|
+
var size = _this__u8e3s4.length - 2 | 0;
|
|
2159
|
+
var newBuffer = Array(size);
|
|
2160
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2161
|
+
arrayCopy(_this__u8e3s4, newBuffer, 0, 0, keyIndex);
|
|
2162
|
+
var tmp6 = keyIndex + 2 | 0;
|
|
2163
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2164
|
+
var endIndex = _this__u8e3s4.length;
|
|
2165
|
+
arrayCopy(_this__u8e3s4, newBuffer, keyIndex, tmp6, endIndex);
|
|
2166
|
+
return newBuffer;
|
|
2167
|
+
}
|
|
2168
|
+
function createEntries_0($this) {
|
|
2169
|
+
return new PersistentOrderedMapEntries($this);
|
|
2170
|
+
}
|
|
2171
|
+
function Companion_2() {
|
|
2172
|
+
Companion_instance_2 = this;
|
|
2173
|
+
this.y99_1 = new PersistentOrderedMap(EndOfChain_instance, EndOfChain_instance, Companion_getInstance_0().z99());
|
|
2174
|
+
}
|
|
2175
|
+
protoOf(Companion_2).z99 = function () {
|
|
2176
|
+
var tmp = this.y99_1;
|
|
2177
|
+
return tmp instanceof PersistentOrderedMap ? tmp : THROW_CCE();
|
|
2178
|
+
};
|
|
2179
|
+
var Companion_instance_2;
|
|
2180
|
+
function Companion_getInstance_2() {
|
|
2181
|
+
if (Companion_instance_2 == null)
|
|
2182
|
+
new Companion_2();
|
|
2183
|
+
return Companion_instance_2;
|
|
2184
|
+
}
|
|
2185
|
+
function PersistentOrderedMap$equals$lambda(a, b) {
|
|
2186
|
+
return equals(a.z9a_1, b.z9a_1);
|
|
2187
|
+
}
|
|
2188
|
+
function PersistentOrderedMap$equals$lambda_0(a, b) {
|
|
2189
|
+
return equals(a.z9a_1, b.z9a_1);
|
|
2190
|
+
}
|
|
2191
|
+
function PersistentOrderedMap$equals$lambda_1(a, b) {
|
|
2192
|
+
return equals(a.z9a_1, b);
|
|
2193
|
+
}
|
|
2194
|
+
function PersistentOrderedMap$equals$lambda_2(a, b) {
|
|
2195
|
+
return equals(a.z9a_1, b);
|
|
2196
|
+
}
|
|
2197
|
+
function PersistentOrderedMap(firstKey, lastKey, hashMap) {
|
|
2198
|
+
Companion_getInstance_2();
|
|
2199
|
+
AbstractMap.call(this);
|
|
2200
|
+
this.l9c_1 = firstKey;
|
|
2201
|
+
this.m9c_1 = lastKey;
|
|
2202
|
+
this.n9c_1 = hashMap;
|
|
2203
|
+
}
|
|
2204
|
+
protoOf(PersistentOrderedMap).o = function () {
|
|
2205
|
+
return this.n9c_1.f9b_1;
|
|
2206
|
+
};
|
|
2207
|
+
protoOf(PersistentOrderedMap).d2 = function () {
|
|
2208
|
+
return new PersistentOrderedMapKeys(this);
|
|
2209
|
+
};
|
|
2210
|
+
protoOf(PersistentOrderedMap).e2 = function () {
|
|
2211
|
+
return new PersistentOrderedMapValues(this);
|
|
2212
|
+
};
|
|
2213
|
+
protoOf(PersistentOrderedMap).w = function () {
|
|
2214
|
+
return createEntries_0(this);
|
|
2215
|
+
};
|
|
2216
|
+
protoOf(PersistentOrderedMap).a2 = function (key) {
|
|
2217
|
+
return this.n9c_1.a2(key);
|
|
2218
|
+
};
|
|
2219
|
+
protoOf(PersistentOrderedMap).c2 = function (key) {
|
|
2220
|
+
var tmp0_safe_receiver = this.n9c_1.c2(key);
|
|
2221
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z9a_1;
|
|
2222
|
+
};
|
|
2223
|
+
protoOf(PersistentOrderedMap).f2 = function (key, value) {
|
|
2224
|
+
if (this.r()) {
|
|
2225
|
+
var newMap = this.n9c_1.f2(key, LinkedValue_init_$Create$(value));
|
|
2226
|
+
return new PersistentOrderedMap(key, key, newMap);
|
|
2227
|
+
}
|
|
2228
|
+
var links = this.n9c_1.c2(key);
|
|
2229
|
+
if (!(links == null)) {
|
|
2230
|
+
if (links.z9a_1 === value) {
|
|
2231
|
+
return this;
|
|
2232
|
+
}
|
|
2233
|
+
var newMap_0 = this.n9c_1.f2(key, links.c9f(value));
|
|
2234
|
+
return new PersistentOrderedMap(this.l9c_1, this.m9c_1, newMap_0);
|
|
2235
|
+
}
|
|
2236
|
+
var tmp = this.m9c_1;
|
|
2237
|
+
var lastKey = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2238
|
+
var lastLinks = ensureNotNull(this.n9c_1.c2(lastKey));
|
|
2239
|
+
var newMap_1 = this.n9c_1.f2(lastKey, lastLinks.d9f(key)).f2(key, LinkedValue_init_$Create$_0(value, lastKey));
|
|
2240
|
+
return new PersistentOrderedMap(this.l9c_1, key, newMap_1);
|
|
2241
|
+
};
|
|
2242
|
+
protoOf(PersistentOrderedMap).g2 = function (key) {
|
|
2243
|
+
var tmp0_elvis_lhs = this.n9c_1.c2(key);
|
|
2244
|
+
var tmp;
|
|
2245
|
+
if (tmp0_elvis_lhs == null) {
|
|
2246
|
+
return this;
|
|
2247
|
+
} else {
|
|
2248
|
+
tmp = tmp0_elvis_lhs;
|
|
2249
|
+
}
|
|
2250
|
+
var links = tmp;
|
|
2251
|
+
var newMap = this.n9c_1.g2(key);
|
|
2252
|
+
if (links.e9f()) {
|
|
2253
|
+
var tmp0 = newMap;
|
|
2254
|
+
// Inline function 'kotlin.collections.get' call
|
|
2255
|
+
var key_0 = links.a9b_1;
|
|
2256
|
+
var tmp$ret$0 = (isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).c2(key_0);
|
|
2257
|
+
var previousLinks = ensureNotNull(tmp$ret$0);
|
|
2258
|
+
var tmp_0 = newMap;
|
|
2259
|
+
var tmp_1 = links.a9b_1;
|
|
2260
|
+
newMap = tmp_0.f2((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE(), previousLinks.d9f(links.b9b_1));
|
|
2261
|
+
}
|
|
2262
|
+
if (links.g9f()) {
|
|
2263
|
+
var tmp0_0 = newMap;
|
|
2264
|
+
// Inline function 'kotlin.collections.get' call
|
|
2265
|
+
var key_1 = links.b9b_1;
|
|
2266
|
+
var tmp$ret$1 = (isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).c2(key_1);
|
|
2267
|
+
var nextLinks = ensureNotNull(tmp$ret$1);
|
|
2268
|
+
var tmp_2 = newMap;
|
|
2269
|
+
var tmp_3 = links.b9b_1;
|
|
2270
|
+
newMap = tmp_2.f2((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE(), nextLinks.f9f(links.a9b_1));
|
|
2271
|
+
}
|
|
2272
|
+
var newFirstKey = !links.e9f() ? links.b9b_1 : this.l9c_1;
|
|
2273
|
+
var newLastKey = !links.g9f() ? links.a9b_1 : this.m9c_1;
|
|
2274
|
+
return new PersistentOrderedMap(newFirstKey, newLastKey, newMap);
|
|
2275
|
+
};
|
|
2276
|
+
protoOf(PersistentOrderedMap).v99 = function (m) {
|
|
2277
|
+
if (m.r())
|
|
2278
|
+
return this;
|
|
2279
|
+
// Inline function 'kotlinx.collections.immutable.mutate' call
|
|
2280
|
+
// Inline function 'kotlin.apply' call
|
|
2281
|
+
var this_0 = (isInterface(this, PersistentMap) ? this : THROW_CCE()).z26();
|
|
2282
|
+
this_0.h2(m);
|
|
2283
|
+
return this_0.h2u();
|
|
2284
|
+
};
|
|
2285
|
+
protoOf(PersistentOrderedMap).z26 = function () {
|
|
2286
|
+
return new PersistentOrderedMapBuilder(this);
|
|
2287
|
+
};
|
|
2288
|
+
protoOf(PersistentOrderedMap).equals = function (other) {
|
|
2289
|
+
if (other === this)
|
|
2290
|
+
return true;
|
|
2291
|
+
if (!(!(other == null) ? isInterface(other, KtMap) : false))
|
|
2292
|
+
return false;
|
|
2293
|
+
if (!(this.o() === other.o()))
|
|
2294
|
+
return false;
|
|
2295
|
+
var tmp;
|
|
2296
|
+
if (other instanceof PersistentOrderedMap) {
|
|
2297
|
+
tmp = this.n9c_1.e9b_1.a9c(other.n9c_1.e9b_1, PersistentOrderedMap$equals$lambda);
|
|
2298
|
+
} else {
|
|
2299
|
+
if (other instanceof PersistentOrderedMapBuilder) {
|
|
2300
|
+
var tmp_0 = other.i9c_1.w9b_1;
|
|
2301
|
+
tmp = this.n9c_1.e9b_1.a9c(tmp_0, PersistentOrderedMap$equals$lambda_0);
|
|
2302
|
+
} else {
|
|
2303
|
+
if (other instanceof PersistentHashMap) {
|
|
2304
|
+
tmp = this.n9c_1.e9b_1.a9c(other.e9b_1, PersistentOrderedMap$equals$lambda_1);
|
|
2305
|
+
} else {
|
|
2306
|
+
if (other instanceof PersistentHashMapBuilder) {
|
|
2307
|
+
var tmp_1 = other.w9b_1;
|
|
2308
|
+
tmp = this.n9c_1.e9b_1.a9c(tmp_1, PersistentOrderedMap$equals$lambda_2);
|
|
2309
|
+
} else {
|
|
2310
|
+
tmp = protoOf(AbstractMap).equals.call(this, other);
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
return tmp;
|
|
2316
|
+
};
|
|
2317
|
+
protoOf(PersistentOrderedMap).hashCode = function () {
|
|
2318
|
+
return protoOf(AbstractMap).hashCode.call(this);
|
|
2319
|
+
};
|
|
2320
|
+
function LinkedValue_init_$Init$(value, $this) {
|
|
2321
|
+
LinkedValue.call($this, value, EndOfChain_instance, EndOfChain_instance);
|
|
2322
|
+
return $this;
|
|
2323
|
+
}
|
|
2324
|
+
function LinkedValue_init_$Create$(value) {
|
|
2325
|
+
return LinkedValue_init_$Init$(value, objectCreate(protoOf(LinkedValue)));
|
|
2326
|
+
}
|
|
2327
|
+
function LinkedValue_init_$Init$_0(value, previous, $this) {
|
|
2328
|
+
LinkedValue.call($this, value, previous, EndOfChain_instance);
|
|
2329
|
+
return $this;
|
|
2330
|
+
}
|
|
2331
|
+
function LinkedValue_init_$Create$_0(value, previous) {
|
|
2332
|
+
return LinkedValue_init_$Init$_0(value, previous, objectCreate(protoOf(LinkedValue)));
|
|
2333
|
+
}
|
|
2334
|
+
function LinkedValue(value, previous, next) {
|
|
2335
|
+
this.z9a_1 = value;
|
|
2336
|
+
this.a9b_1 = previous;
|
|
2337
|
+
this.b9b_1 = next;
|
|
2338
|
+
}
|
|
2339
|
+
protoOf(LinkedValue).c9f = function (newValue) {
|
|
2340
|
+
return new LinkedValue(newValue, this.a9b_1, this.b9b_1);
|
|
2341
|
+
};
|
|
2342
|
+
protoOf(LinkedValue).f9f = function (newPrevious) {
|
|
2343
|
+
return new LinkedValue(this.z9a_1, newPrevious, this.b9b_1);
|
|
2344
|
+
};
|
|
2345
|
+
protoOf(LinkedValue).d9f = function (newNext) {
|
|
2346
|
+
return new LinkedValue(this.z9a_1, this.a9b_1, newNext);
|
|
2347
|
+
};
|
|
2348
|
+
protoOf(LinkedValue).g9f = function () {
|
|
2349
|
+
return !(this.b9b_1 === EndOfChain_instance);
|
|
2350
|
+
};
|
|
2351
|
+
protoOf(LinkedValue).e9f = function () {
|
|
2352
|
+
return !(this.a9b_1 === EndOfChain_instance);
|
|
2353
|
+
};
|
|
2354
|
+
function PersistentOrderedMapBuilder$equals$lambda(a, b) {
|
|
2355
|
+
return equals(a.z9a_1, b.z9a_1);
|
|
2356
|
+
}
|
|
2357
|
+
function PersistentOrderedMapBuilder$equals$lambda_0(a, b) {
|
|
2358
|
+
return equals(a.z9a_1, b.z9a_1);
|
|
2359
|
+
}
|
|
2360
|
+
function PersistentOrderedMapBuilder$equals$lambda_1(a, b) {
|
|
2361
|
+
return equals(a.z9a_1, b);
|
|
2362
|
+
}
|
|
2363
|
+
function PersistentOrderedMapBuilder$equals$lambda_2(a, b) {
|
|
2364
|
+
return equals(a.z9a_1, b);
|
|
2365
|
+
}
|
|
2366
|
+
function PersistentOrderedMapBuilder(map) {
|
|
2367
|
+
AbstractMutableMap.call(this);
|
|
2368
|
+
this.f9c_1 = map;
|
|
2369
|
+
this.g9c_1 = map.l9c_1;
|
|
2370
|
+
this.h9c_1 = map.m9c_1;
|
|
2371
|
+
this.i9c_1 = map.n9c_1.z26();
|
|
2372
|
+
}
|
|
2373
|
+
protoOf(PersistentOrderedMapBuilder).o = function () {
|
|
2374
|
+
return this.i9c_1.z9b_1;
|
|
2375
|
+
};
|
|
2376
|
+
protoOf(PersistentOrderedMapBuilder).h2u = function () {
|
|
2377
|
+
var tmp0_safe_receiver = this.f9c_1;
|
|
2378
|
+
var tmp;
|
|
2379
|
+
if (tmp0_safe_receiver == null) {
|
|
2380
|
+
tmp = null;
|
|
2381
|
+
} else {
|
|
2382
|
+
// Inline function 'kotlin.also' call
|
|
2383
|
+
assert(!(this.i9c_1.u9b_1 == null));
|
|
2384
|
+
assert(this.g9c_1 === tmp0_safe_receiver.l9c_1);
|
|
2385
|
+
assert(this.h9c_1 === tmp0_safe_receiver.m9c_1);
|
|
2386
|
+
tmp = tmp0_safe_receiver;
|
|
2387
|
+
}
|
|
2388
|
+
var tmp1_elvis_lhs = tmp;
|
|
2389
|
+
var tmp_0;
|
|
2390
|
+
if (tmp1_elvis_lhs == null) {
|
|
2391
|
+
// Inline function 'kotlin.run' call
|
|
2392
|
+
assert(this.i9c_1.u9b_1 == null);
|
|
2393
|
+
var newHashMap = this.i9c_1.h2u();
|
|
2394
|
+
var newOrdered = new PersistentOrderedMap(this.g9c_1, this.h9c_1, newHashMap);
|
|
2395
|
+
this.f9c_1 = newOrdered;
|
|
2396
|
+
tmp_0 = newOrdered;
|
|
2397
|
+
} else {
|
|
2398
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
2399
|
+
}
|
|
2400
|
+
return tmp_0;
|
|
2401
|
+
};
|
|
2402
|
+
protoOf(PersistentOrderedMapBuilder).w = function () {
|
|
2403
|
+
return new PersistentOrderedMapBuilderEntries(this);
|
|
2404
|
+
};
|
|
2405
|
+
protoOf(PersistentOrderedMapBuilder).d2 = function () {
|
|
2406
|
+
return new PersistentOrderedMapBuilderKeys(this);
|
|
2407
|
+
};
|
|
2408
|
+
protoOf(PersistentOrderedMapBuilder).e2 = function () {
|
|
2409
|
+
return new PersistentOrderedMapBuilderValues(this);
|
|
2410
|
+
};
|
|
2411
|
+
protoOf(PersistentOrderedMapBuilder).a2 = function (key) {
|
|
2412
|
+
return this.i9c_1.a2(key);
|
|
2413
|
+
};
|
|
2414
|
+
protoOf(PersistentOrderedMapBuilder).c2 = function (key) {
|
|
2415
|
+
var tmp0_safe_receiver = this.i9c_1.c2(key);
|
|
2416
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.z9a_1;
|
|
2417
|
+
};
|
|
2418
|
+
protoOf(PersistentOrderedMapBuilder).f2 = function (key, value) {
|
|
2419
|
+
var links = this.i9c_1.c2(key);
|
|
2420
|
+
var tmp;
|
|
2421
|
+
if (!(links == null)) {
|
|
2422
|
+
var tmp_0;
|
|
2423
|
+
if (links.z9a_1 === value) {
|
|
2424
|
+
tmp_0 = value;
|
|
2425
|
+
} else {
|
|
2426
|
+
this.f9c_1 = null;
|
|
2427
|
+
var tmp0 = this.i9c_1;
|
|
2428
|
+
// Inline function 'kotlin.collections.set' call
|
|
2429
|
+
var value_0 = links.c9f(value);
|
|
2430
|
+
tmp0.f2(key, value_0);
|
|
2431
|
+
tmp_0 = links.z9a_1;
|
|
2432
|
+
}
|
|
2433
|
+
tmp = tmp_0;
|
|
2434
|
+
} else {
|
|
2435
|
+
this.f9c_1 = null;
|
|
2436
|
+
if (this.r()) {
|
|
2437
|
+
this.g9c_1 = key;
|
|
2438
|
+
this.h9c_1 = key;
|
|
2439
|
+
var tmp0_0 = this.i9c_1;
|
|
2440
|
+
// Inline function 'kotlin.collections.set' call
|
|
2441
|
+
var value_1 = LinkedValue_init_$Create$(value);
|
|
2442
|
+
tmp0_0.f2(key, value_1);
|
|
2443
|
+
} else {
|
|
2444
|
+
var tmp_1 = this.h9c_1;
|
|
2445
|
+
var lastKey = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
2446
|
+
var lastLinks = ensureNotNull(this.i9c_1.c2(lastKey));
|
|
2447
|
+
assert(!lastLinks.g9f());
|
|
2448
|
+
var tmp0_1 = this.i9c_1;
|
|
2449
|
+
// Inline function 'kotlin.collections.set' call
|
|
2450
|
+
var value_2 = lastLinks.d9f(key);
|
|
2451
|
+
tmp0_1.f2(lastKey, value_2);
|
|
2452
|
+
var tmp0_2 = this.i9c_1;
|
|
2453
|
+
// Inline function 'kotlin.collections.set' call
|
|
2454
|
+
var value_3 = LinkedValue_init_$Create$_0(value, lastKey);
|
|
2455
|
+
tmp0_2.f2(key, value_3);
|
|
2456
|
+
this.h9c_1 = key;
|
|
2457
|
+
}
|
|
2458
|
+
tmp = null;
|
|
2459
|
+
}
|
|
2460
|
+
return tmp;
|
|
2461
|
+
};
|
|
2462
|
+
protoOf(PersistentOrderedMapBuilder).g2 = function (key) {
|
|
2463
|
+
var tmp0_elvis_lhs = this.i9c_1.g2(key);
|
|
2464
|
+
var tmp;
|
|
2465
|
+
if (tmp0_elvis_lhs == null) {
|
|
2466
|
+
return null;
|
|
2467
|
+
} else {
|
|
2468
|
+
tmp = tmp0_elvis_lhs;
|
|
2469
|
+
}
|
|
2470
|
+
var links = tmp;
|
|
2471
|
+
this.f9c_1 = null;
|
|
2472
|
+
if (links.e9f()) {
|
|
2473
|
+
var tmp0 = this.i9c_1;
|
|
2474
|
+
// Inline function 'kotlin.collections.get' call
|
|
2475
|
+
var key_0 = links.a9b_1;
|
|
2476
|
+
var tmp$ret$0 = (isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).c2(key_0);
|
|
2477
|
+
var previousLinks = ensureNotNull(tmp$ret$0);
|
|
2478
|
+
var tmp0_0 = this.i9c_1;
|
|
2479
|
+
var tmp_0 = links.a9b_1;
|
|
2480
|
+
var tmp2 = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
2481
|
+
// Inline function 'kotlin.collections.set' call
|
|
2482
|
+
var value = previousLinks.d9f(links.b9b_1);
|
|
2483
|
+
tmp0_0.f2(tmp2, value);
|
|
2484
|
+
} else {
|
|
2485
|
+
this.g9c_1 = links.b9b_1;
|
|
2486
|
+
}
|
|
2487
|
+
if (links.g9f()) {
|
|
2488
|
+
var tmp0_1 = this.i9c_1;
|
|
2489
|
+
// Inline function 'kotlin.collections.get' call
|
|
2490
|
+
var key_1 = links.b9b_1;
|
|
2491
|
+
var tmp$ret$2 = (isInterface(tmp0_1, KtMap) ? tmp0_1 : THROW_CCE()).c2(key_1);
|
|
2492
|
+
var nextLinks = ensureNotNull(tmp$ret$2);
|
|
2493
|
+
var tmp0_2 = this.i9c_1;
|
|
2494
|
+
var tmp_1 = links.b9b_1;
|
|
2495
|
+
var tmp2_0 = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
2496
|
+
// Inline function 'kotlin.collections.set' call
|
|
2497
|
+
var value_0 = nextLinks.f9f(links.a9b_1);
|
|
2498
|
+
tmp0_2.f2(tmp2_0, value_0);
|
|
2499
|
+
} else {
|
|
2500
|
+
this.h9c_1 = links.a9b_1;
|
|
2501
|
+
}
|
|
2502
|
+
return links.z9a_1;
|
|
2503
|
+
};
|
|
2504
|
+
protoOf(PersistentOrderedMapBuilder).u9c = function (key, value) {
|
|
2505
|
+
var tmp0_elvis_lhs = this.i9c_1.c2(key);
|
|
2506
|
+
var tmp;
|
|
2507
|
+
if (tmp0_elvis_lhs == null) {
|
|
2508
|
+
return false;
|
|
2509
|
+
} else {
|
|
2510
|
+
tmp = tmp0_elvis_lhs;
|
|
2511
|
+
}
|
|
2512
|
+
var links = tmp;
|
|
2513
|
+
var tmp_0;
|
|
2514
|
+
if (!equals(links.z9a_1, value)) {
|
|
2515
|
+
tmp_0 = false;
|
|
2516
|
+
} else {
|
|
2517
|
+
this.g2(key);
|
|
2518
|
+
tmp_0 = true;
|
|
2519
|
+
}
|
|
2520
|
+
return tmp_0;
|
|
2521
|
+
};
|
|
2522
|
+
protoOf(PersistentOrderedMapBuilder).i2 = function () {
|
|
2523
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2524
|
+
if (!this.i9c_1.r()) {
|
|
2525
|
+
this.f9c_1 = null;
|
|
2526
|
+
}
|
|
2527
|
+
this.i9c_1.i2();
|
|
2528
|
+
this.g9c_1 = EndOfChain_instance;
|
|
2529
|
+
this.h9c_1 = EndOfChain_instance;
|
|
2530
|
+
};
|
|
2531
|
+
protoOf(PersistentOrderedMapBuilder).equals = function (other) {
|
|
2532
|
+
if (other === this)
|
|
2533
|
+
return true;
|
|
2534
|
+
if (!(!(other == null) ? isInterface(other, KtMap) : false))
|
|
2535
|
+
return false;
|
|
2536
|
+
if (!(this.o() === other.o()))
|
|
2537
|
+
return false;
|
|
2538
|
+
var tmp;
|
|
2539
|
+
if (other instanceof PersistentOrderedMap) {
|
|
2540
|
+
var tmp_0 = this.i9c_1.w9b_1;
|
|
2541
|
+
tmp = tmp_0.a9c(other.n9c_1.e9b_1, PersistentOrderedMapBuilder$equals$lambda);
|
|
2542
|
+
} else {
|
|
2543
|
+
if (other instanceof PersistentOrderedMapBuilder) {
|
|
2544
|
+
var tmp_1 = this.i9c_1.w9b_1;
|
|
2545
|
+
var tmp_2 = other.i9c_1.w9b_1;
|
|
2546
|
+
tmp = tmp_1.a9c(tmp_2, PersistentOrderedMapBuilder$equals$lambda_0);
|
|
2547
|
+
} else {
|
|
2548
|
+
if (other instanceof PersistentHashMap) {
|
|
2549
|
+
var tmp_3 = this.i9c_1.w9b_1;
|
|
2550
|
+
tmp = tmp_3.a9c(other.e9b_1, PersistentOrderedMapBuilder$equals$lambda_1);
|
|
2551
|
+
} else {
|
|
2552
|
+
if (other instanceof PersistentHashMapBuilder) {
|
|
2553
|
+
var tmp_4 = this.i9c_1.w9b_1;
|
|
2554
|
+
var tmp_5 = other.w9b_1;
|
|
2555
|
+
tmp = tmp_4.a9c(tmp_5, PersistentOrderedMapBuilder$equals$lambda_2);
|
|
2556
|
+
} else {
|
|
2557
|
+
tmp = MapImplementation_instance.w9c(this, other);
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
return tmp;
|
|
2563
|
+
};
|
|
2564
|
+
protoOf(PersistentOrderedMapBuilder).hashCode = function () {
|
|
2565
|
+
return MapImplementation_instance.x9c(this);
|
|
2566
|
+
};
|
|
2567
|
+
function PersistentOrderedMapBuilderEntriesIterator(map) {
|
|
2568
|
+
this.h9f_1 = new PersistentOrderedMapBuilderLinksIterator(map.g9c_1, map);
|
|
2569
|
+
}
|
|
2570
|
+
protoOf(PersistentOrderedMapBuilderEntriesIterator).m = function () {
|
|
2571
|
+
return this.h9f_1.m();
|
|
2572
|
+
};
|
|
2573
|
+
protoOf(PersistentOrderedMapBuilderEntriesIterator).n = function () {
|
|
2574
|
+
var links = this.h9f_1.n();
|
|
2575
|
+
var tmp = this.h9f_1.k9f_1;
|
|
2576
|
+
return new MutableMapEntry_0(this.h9f_1.j9f_1.i9c_1, (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE(), links);
|
|
2577
|
+
};
|
|
2578
|
+
protoOf(PersistentOrderedMapBuilderEntriesIterator).t3 = function () {
|
|
2579
|
+
this.h9f_1.t3();
|
|
2580
|
+
};
|
|
2581
|
+
function PersistentOrderedMapBuilderKeysIterator(map) {
|
|
2582
|
+
this.o9f_1 = new PersistentOrderedMapBuilderLinksIterator(map.g9c_1, map);
|
|
2583
|
+
}
|
|
2584
|
+
protoOf(PersistentOrderedMapBuilderKeysIterator).m = function () {
|
|
2585
|
+
return this.o9f_1.m();
|
|
2586
|
+
};
|
|
2587
|
+
protoOf(PersistentOrderedMapBuilderKeysIterator).n = function () {
|
|
2588
|
+
this.o9f_1.n();
|
|
2589
|
+
var tmp = this.o9f_1.k9f_1;
|
|
2590
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2591
|
+
};
|
|
2592
|
+
protoOf(PersistentOrderedMapBuilderKeysIterator).t3 = function () {
|
|
2593
|
+
this.o9f_1.t3();
|
|
2594
|
+
};
|
|
2595
|
+
function PersistentOrderedMapBuilderValuesIterator(map) {
|
|
2596
|
+
this.p9f_1 = new PersistentOrderedMapBuilderLinksIterator(map.g9c_1, map);
|
|
2597
|
+
}
|
|
2598
|
+
protoOf(PersistentOrderedMapBuilderValuesIterator).m = function () {
|
|
2599
|
+
return this.p9f_1.m();
|
|
2600
|
+
};
|
|
2601
|
+
protoOf(PersistentOrderedMapBuilderValuesIterator).n = function () {
|
|
2602
|
+
return this.p9f_1.n().z9a_1;
|
|
2603
|
+
};
|
|
2604
|
+
protoOf(PersistentOrderedMapBuilderValuesIterator).t3 = function () {
|
|
2605
|
+
this.p9f_1.t3();
|
|
2606
|
+
};
|
|
2607
|
+
function checkHasNext_0($this) {
|
|
2608
|
+
if (!$this.m())
|
|
2609
|
+
throw NoSuchElementException_init_$Create$();
|
|
2610
|
+
}
|
|
2611
|
+
function checkNextWasInvoked_0($this) {
|
|
2612
|
+
if (!$this.l9f_1)
|
|
2613
|
+
throw IllegalStateException_init_$Create$();
|
|
2614
|
+
}
|
|
2615
|
+
function checkForComodification_0($this) {
|
|
2616
|
+
if (!($this.j9f_1.i9c_1.y9b_1 === $this.m9f_1))
|
|
2617
|
+
throw ConcurrentModificationException_init_$Create$();
|
|
2618
|
+
}
|
|
2619
|
+
function PersistentOrderedMapBuilderLinksIterator(nextKey, builder) {
|
|
2620
|
+
this.i9f_1 = nextKey;
|
|
2621
|
+
this.j9f_1 = builder;
|
|
2622
|
+
this.k9f_1 = EndOfChain_instance;
|
|
2623
|
+
this.l9f_1 = false;
|
|
2624
|
+
this.m9f_1 = this.j9f_1.i9c_1.y9b_1;
|
|
2625
|
+
this.n9f_1 = 0;
|
|
2626
|
+
}
|
|
2627
|
+
protoOf(PersistentOrderedMapBuilderLinksIterator).m = function () {
|
|
2628
|
+
return this.n9f_1 < this.j9f_1.o();
|
|
2629
|
+
};
|
|
2630
|
+
protoOf(PersistentOrderedMapBuilderLinksIterator).n = function () {
|
|
2631
|
+
checkForComodification_0(this);
|
|
2632
|
+
checkHasNext_0(this);
|
|
2633
|
+
this.k9f_1 = this.i9f_1;
|
|
2634
|
+
this.l9f_1 = true;
|
|
2635
|
+
this.n9f_1 = this.n9f_1 + 1 | 0;
|
|
2636
|
+
var tmp0 = this.j9f_1.i9c_1;
|
|
2637
|
+
var tmp = this.i9f_1;
|
|
2638
|
+
// Inline function 'kotlin.collections.getOrElse' call
|
|
2639
|
+
var key = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2640
|
+
var tmp0_elvis_lhs = tmp0.c2(key);
|
|
2641
|
+
var tmp_0;
|
|
2642
|
+
if (tmp0_elvis_lhs == null) {
|
|
2643
|
+
throw ConcurrentModificationException_init_$Create$_0('Hash code of a key (' + toString_0(this.i9f_1) + ') has changed after it was added to the persistent map.');
|
|
2644
|
+
} else {
|
|
2645
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
2646
|
+
}
|
|
2647
|
+
var result = tmp_0;
|
|
2648
|
+
this.i9f_1 = result.b9b_1;
|
|
2649
|
+
return result;
|
|
2650
|
+
};
|
|
2651
|
+
protoOf(PersistentOrderedMapBuilderLinksIterator).t3 = function () {
|
|
2652
|
+
checkNextWasInvoked_0(this);
|
|
2653
|
+
var tmp0 = this.j9f_1;
|
|
2654
|
+
// Inline function 'kotlin.collections.remove' call
|
|
2655
|
+
var key = this.k9f_1;
|
|
2656
|
+
(isInterface(tmp0, KtMutableMap) ? tmp0 : THROW_CCE()).g2(key);
|
|
2657
|
+
this.k9f_1 = null;
|
|
2658
|
+
this.l9f_1 = false;
|
|
2659
|
+
this.m9f_1 = this.j9f_1.i9c_1.y9b_1;
|
|
2660
|
+
this.n9f_1 = this.n9f_1 - 1 | 0;
|
|
2661
|
+
};
|
|
2662
|
+
function MutableMapEntry_0(mutableMap, key, links) {
|
|
2663
|
+
MapEntry.call(this, key, links.z9a_1);
|
|
2664
|
+
this.s9f_1 = mutableMap;
|
|
2665
|
+
this.t9f_1 = links;
|
|
2666
|
+
}
|
|
2667
|
+
protoOf(MutableMapEntry_0).y = function () {
|
|
2668
|
+
return this.t9f_1.z9a_1;
|
|
2669
|
+
};
|
|
2670
|
+
function PersistentOrderedMapBuilderEntries(builder) {
|
|
2671
|
+
AbstractMapBuilderEntries.call(this);
|
|
2672
|
+
this.u9f_1 = builder;
|
|
2673
|
+
}
|
|
2674
|
+
protoOf(PersistentOrderedMapBuilderEntries).k9e = function (element) {
|
|
2675
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
2676
|
+
};
|
|
2677
|
+
protoOf(PersistentOrderedMapBuilderEntries).j = function (element) {
|
|
2678
|
+
return this.k9e((!(element == null) ? isInterface(element, MutableEntry) : false) ? element : THROW_CCE());
|
|
2679
|
+
};
|
|
2680
|
+
protoOf(PersistentOrderedMapBuilderEntries).i2 = function () {
|
|
2681
|
+
this.u9f_1.i2();
|
|
2682
|
+
};
|
|
2683
|
+
protoOf(PersistentOrderedMapBuilderEntries).l = function () {
|
|
2684
|
+
return new PersistentOrderedMapBuilderEntriesIterator(this.u9f_1);
|
|
2685
|
+
};
|
|
2686
|
+
protoOf(PersistentOrderedMapBuilderEntries).e6 = function (element) {
|
|
2687
|
+
return this.u9f_1.u9c(element.x(), element.y());
|
|
2688
|
+
};
|
|
2689
|
+
protoOf(PersistentOrderedMapBuilderEntries).o = function () {
|
|
2690
|
+
return this.u9f_1.o();
|
|
2691
|
+
};
|
|
2692
|
+
protoOf(PersistentOrderedMapBuilderEntries).d6 = function (element) {
|
|
2693
|
+
return MapImplementation_instance.l9e(this.u9f_1, element);
|
|
2694
|
+
};
|
|
2695
|
+
function PersistentOrderedMapBuilderKeys(builder) {
|
|
2696
|
+
AbstractMutableSet.call(this);
|
|
2697
|
+
this.v9f_1 = builder;
|
|
2698
|
+
}
|
|
2699
|
+
protoOf(PersistentOrderedMapBuilderKeys).i6 = function (element) {
|
|
2700
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
2701
|
+
};
|
|
2702
|
+
protoOf(PersistentOrderedMapBuilderKeys).j = function (element) {
|
|
2703
|
+
return this.i6((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2704
|
+
};
|
|
2705
|
+
protoOf(PersistentOrderedMapBuilderKeys).i2 = function () {
|
|
2706
|
+
this.v9f_1.i2();
|
|
2707
|
+
};
|
|
2708
|
+
protoOf(PersistentOrderedMapBuilderKeys).l = function () {
|
|
2709
|
+
return new PersistentOrderedMapBuilderKeysIterator(this.v9f_1);
|
|
2710
|
+
};
|
|
2711
|
+
protoOf(PersistentOrderedMapBuilderKeys).g2 = function (element) {
|
|
2712
|
+
if (this.v9f_1.a2(element)) {
|
|
2713
|
+
this.v9f_1.g2(element);
|
|
2714
|
+
return true;
|
|
2715
|
+
}
|
|
2716
|
+
return false;
|
|
2717
|
+
};
|
|
2718
|
+
protoOf(PersistentOrderedMapBuilderKeys).j2 = function (element) {
|
|
2719
|
+
if (!(element == null ? true : !(element == null)))
|
|
2720
|
+
return false;
|
|
2721
|
+
return this.g2((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2722
|
+
};
|
|
2723
|
+
protoOf(PersistentOrderedMapBuilderKeys).o = function () {
|
|
2724
|
+
return this.v9f_1.o();
|
|
2725
|
+
};
|
|
2726
|
+
protoOf(PersistentOrderedMapBuilderKeys).l5 = function (element) {
|
|
2727
|
+
return this.v9f_1.a2(element);
|
|
2728
|
+
};
|
|
2729
|
+
protoOf(PersistentOrderedMapBuilderKeys).t = function (element) {
|
|
2730
|
+
if (!(element == null ? true : !(element == null)))
|
|
2731
|
+
return false;
|
|
2732
|
+
return this.l5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2733
|
+
};
|
|
2734
|
+
function PersistentOrderedMapBuilderValues(builder) {
|
|
2735
|
+
AbstractMutableCollection.call(this);
|
|
2736
|
+
this.w9f_1 = builder;
|
|
2737
|
+
}
|
|
2738
|
+
protoOf(PersistentOrderedMapBuilderValues).o = function () {
|
|
2739
|
+
return this.w9f_1.o();
|
|
2740
|
+
};
|
|
2741
|
+
protoOf(PersistentOrderedMapBuilderValues).r5 = function (element) {
|
|
2742
|
+
return this.w9f_1.b2(element);
|
|
2743
|
+
};
|
|
2744
|
+
protoOf(PersistentOrderedMapBuilderValues).t = function (element) {
|
|
2745
|
+
if (!(element == null ? true : !(element == null)))
|
|
2746
|
+
return false;
|
|
2747
|
+
return this.r5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2748
|
+
};
|
|
2749
|
+
protoOf(PersistentOrderedMapBuilderValues).s5 = function (element) {
|
|
2750
|
+
throw UnsupportedOperationException_init_$Create$();
|
|
2751
|
+
};
|
|
2752
|
+
protoOf(PersistentOrderedMapBuilderValues).j = function (element) {
|
|
2753
|
+
return this.s5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2754
|
+
};
|
|
2755
|
+
protoOf(PersistentOrderedMapBuilderValues).i2 = function () {
|
|
2756
|
+
this.w9f_1.i2();
|
|
2757
|
+
};
|
|
2758
|
+
protoOf(PersistentOrderedMapBuilderValues).l = function () {
|
|
2759
|
+
return new PersistentOrderedMapBuilderValuesIterator(this.w9f_1);
|
|
2760
|
+
};
|
|
2761
|
+
function PersistentOrderedMapKeysIterator(map) {
|
|
2762
|
+
this.x9f_1 = new PersistentOrderedMapLinksIterator(map.l9c_1, map.n9c_1);
|
|
2763
|
+
}
|
|
2764
|
+
protoOf(PersistentOrderedMapKeysIterator).m = function () {
|
|
2765
|
+
return this.x9f_1.m();
|
|
2766
|
+
};
|
|
2767
|
+
protoOf(PersistentOrderedMapKeysIterator).n = function () {
|
|
2768
|
+
var tmp = this.x9f_1.y9f_1;
|
|
2769
|
+
var nextKey = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2770
|
+
this.x9f_1.n();
|
|
2771
|
+
return nextKey;
|
|
2772
|
+
};
|
|
2773
|
+
function PersistentOrderedMapValuesIterator(map) {
|
|
2774
|
+
this.b9g_1 = new PersistentOrderedMapLinksIterator(map.l9c_1, map.n9c_1);
|
|
2775
|
+
}
|
|
2776
|
+
protoOf(PersistentOrderedMapValuesIterator).m = function () {
|
|
2777
|
+
return this.b9g_1.m();
|
|
2778
|
+
};
|
|
2779
|
+
protoOf(PersistentOrderedMapValuesIterator).n = function () {
|
|
2780
|
+
return this.b9g_1.n().z9a_1;
|
|
2781
|
+
};
|
|
2782
|
+
function PersistentOrderedMapEntriesIterator(map) {
|
|
2783
|
+
this.c9g_1 = new PersistentOrderedMapLinksIterator(map.l9c_1, map.n9c_1);
|
|
2784
|
+
}
|
|
2785
|
+
protoOf(PersistentOrderedMapEntriesIterator).m = function () {
|
|
2786
|
+
return this.c9g_1.m();
|
|
2787
|
+
};
|
|
2788
|
+
protoOf(PersistentOrderedMapEntriesIterator).n = function () {
|
|
2789
|
+
var tmp = this.c9g_1.y9f_1;
|
|
2790
|
+
var nextKey = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2791
|
+
var nextValue = this.c9g_1.n().z9a_1;
|
|
2792
|
+
return new MapEntry(nextKey, nextValue);
|
|
2793
|
+
};
|
|
2794
|
+
function PersistentOrderedMapLinksIterator(nextKey, hashMap) {
|
|
2795
|
+
this.y9f_1 = nextKey;
|
|
2796
|
+
this.z9f_1 = hashMap;
|
|
2797
|
+
this.a9g_1 = 0;
|
|
2798
|
+
}
|
|
2799
|
+
protoOf(PersistentOrderedMapLinksIterator).m = function () {
|
|
2800
|
+
return this.a9g_1 < this.z9f_1.o();
|
|
2801
|
+
};
|
|
2802
|
+
protoOf(PersistentOrderedMapLinksIterator).n = function () {
|
|
2803
|
+
if (!this.m()) {
|
|
2804
|
+
throw NoSuchElementException_init_$Create$();
|
|
2805
|
+
}
|
|
2806
|
+
var tmp0 = this.z9f_1;
|
|
2807
|
+
var tmp = this.y9f_1;
|
|
2808
|
+
// Inline function 'kotlin.collections.getOrElse' call
|
|
2809
|
+
var key = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2810
|
+
var tmp0_elvis_lhs = tmp0.c2(key);
|
|
2811
|
+
var tmp_0;
|
|
2812
|
+
if (tmp0_elvis_lhs == null) {
|
|
2813
|
+
throw ConcurrentModificationException_init_$Create$_0('Hash code of a key (' + toString_0(this.y9f_1) + ') has changed after it was added to the persistent map.');
|
|
2814
|
+
} else {
|
|
2815
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
2816
|
+
}
|
|
2817
|
+
var result = tmp_0;
|
|
2818
|
+
this.a9g_1 = this.a9g_1 + 1 | 0;
|
|
2819
|
+
this.y9f_1 = result.b9b_1;
|
|
2820
|
+
return result;
|
|
2821
|
+
};
|
|
2822
|
+
function PersistentOrderedMapKeys(map) {
|
|
2823
|
+
AbstractSet.call(this);
|
|
2824
|
+
this.d9g_1 = map;
|
|
2825
|
+
}
|
|
2826
|
+
protoOf(PersistentOrderedMapKeys).o = function () {
|
|
2827
|
+
return this.d9g_1.o();
|
|
2828
|
+
};
|
|
2829
|
+
protoOf(PersistentOrderedMapKeys).l5 = function (element) {
|
|
2830
|
+
return this.d9g_1.a2(element);
|
|
2831
|
+
};
|
|
2832
|
+
protoOf(PersistentOrderedMapKeys).t = function (element) {
|
|
2833
|
+
if (!(element == null ? true : !(element == null)))
|
|
2834
|
+
return false;
|
|
2835
|
+
return this.l5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2836
|
+
};
|
|
2837
|
+
protoOf(PersistentOrderedMapKeys).l = function () {
|
|
2838
|
+
return new PersistentOrderedMapKeysIterator(this.d9g_1);
|
|
2839
|
+
};
|
|
2840
|
+
function PersistentOrderedMapValues(map) {
|
|
2841
|
+
AbstractCollection.call(this);
|
|
2842
|
+
this.e9g_1 = map;
|
|
2843
|
+
}
|
|
2844
|
+
protoOf(PersistentOrderedMapValues).o = function () {
|
|
2845
|
+
return this.e9g_1.o();
|
|
2846
|
+
};
|
|
2847
|
+
protoOf(PersistentOrderedMapValues).r5 = function (element) {
|
|
2848
|
+
return this.e9g_1.b2(element);
|
|
2849
|
+
};
|
|
2850
|
+
protoOf(PersistentOrderedMapValues).t = function (element) {
|
|
2851
|
+
if (!(element == null ? true : !(element == null)))
|
|
2852
|
+
return false;
|
|
2853
|
+
return this.r5((element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
2854
|
+
};
|
|
2855
|
+
protoOf(PersistentOrderedMapValues).l = function () {
|
|
2856
|
+
return new PersistentOrderedMapValuesIterator(this.e9g_1);
|
|
2857
|
+
};
|
|
2858
|
+
function PersistentOrderedMapEntries(map) {
|
|
2859
|
+
AbstractSet.call(this);
|
|
2860
|
+
this.f9g_1 = map;
|
|
2861
|
+
}
|
|
2862
|
+
protoOf(PersistentOrderedMapEntries).o = function () {
|
|
2863
|
+
return this.f9g_1.o();
|
|
2864
|
+
};
|
|
2865
|
+
protoOf(PersistentOrderedMapEntries).a9f = function (element) {
|
|
2866
|
+
return MapImplementation_instance.l9e(this.f9g_1, element);
|
|
2867
|
+
};
|
|
2868
|
+
protoOf(PersistentOrderedMapEntries).t = function (element) {
|
|
2869
|
+
if (!(!(element == null) ? isInterface(element, Entry) : false))
|
|
2870
|
+
return false;
|
|
2871
|
+
return this.a9f((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
|
|
2872
|
+
};
|
|
2873
|
+
protoOf(PersistentOrderedMapEntries).l = function () {
|
|
2874
|
+
return new PersistentOrderedMapEntriesIterator(this.f9g_1);
|
|
2875
|
+
};
|
|
2876
|
+
function Companion_3() {
|
|
2877
|
+
Companion_instance_3 = this;
|
|
2878
|
+
this.w99_1 = new PersistentOrderedSet(EndOfChain_instance, EndOfChain_instance, Companion_getInstance_0().z99());
|
|
2879
|
+
}
|
|
2880
|
+
protoOf(Companion_3).x99 = function () {
|
|
2881
|
+
return this.w99_1;
|
|
2882
|
+
};
|
|
2883
|
+
var Companion_instance_3;
|
|
2884
|
+
function Companion_getInstance_3() {
|
|
2885
|
+
if (Companion_instance_3 == null)
|
|
2886
|
+
new Companion_3();
|
|
2887
|
+
return Companion_instance_3;
|
|
2888
|
+
}
|
|
2889
|
+
function PersistentOrderedSet$equals$lambda(_unused_var__etf5q3, _unused_var__etf5q3_0) {
|
|
2890
|
+
return true;
|
|
2891
|
+
}
|
|
2892
|
+
function PersistentOrderedSet$equals$lambda_0(_unused_var__etf5q3, _unused_var__etf5q3_0) {
|
|
2893
|
+
return true;
|
|
2894
|
+
}
|
|
2895
|
+
function PersistentOrderedSet(firstElement, lastElement, hashMap) {
|
|
2896
|
+
Companion_getInstance_3();
|
|
2897
|
+
AbstractSet.call(this);
|
|
2898
|
+
this.g9g_1 = firstElement;
|
|
2899
|
+
this.h9g_1 = lastElement;
|
|
2900
|
+
this.i9g_1 = hashMap;
|
|
2901
|
+
}
|
|
2902
|
+
protoOf(PersistentOrderedSet).o = function () {
|
|
2903
|
+
return this.i9g_1.f9b_1;
|
|
2904
|
+
};
|
|
2905
|
+
protoOf(PersistentOrderedSet).t = function (element) {
|
|
2906
|
+
return this.i9g_1.a2(element);
|
|
2907
|
+
};
|
|
2908
|
+
protoOf(PersistentOrderedSet).j = function (element) {
|
|
2909
|
+
if (this.i9g_1.a2(element)) {
|
|
2910
|
+
return this;
|
|
2911
|
+
}
|
|
2912
|
+
if (this.r()) {
|
|
2913
|
+
var newMap = this.i9g_1.f2(element, Links_init_$Create$());
|
|
2914
|
+
return new PersistentOrderedSet(element, element, newMap);
|
|
2915
|
+
}
|
|
2916
|
+
var tmp = this.h9g_1;
|
|
2917
|
+
var lastElement = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
2918
|
+
var lastLinks = ensureNotNull(this.i9g_1.c2(lastElement));
|
|
2919
|
+
var newMap_0 = this.i9g_1.f2(lastElement, lastLinks.d9f(element)).f2(element, Links_init_$Create$_0(lastElement));
|
|
2920
|
+
return new PersistentOrderedSet(this.g9g_1, element, newMap_0);
|
|
2921
|
+
};
|
|
2922
|
+
protoOf(PersistentOrderedSet).j2 = function (element) {
|
|
2923
|
+
var tmp0_elvis_lhs = this.i9g_1.c2(element);
|
|
2924
|
+
var tmp;
|
|
2925
|
+
if (tmp0_elvis_lhs == null) {
|
|
2926
|
+
return this;
|
|
2927
|
+
} else {
|
|
2928
|
+
tmp = tmp0_elvis_lhs;
|
|
2929
|
+
}
|
|
2930
|
+
var links = tmp;
|
|
2931
|
+
var newMap = this.i9g_1.g2(element);
|
|
2932
|
+
if (links.e9f()) {
|
|
2933
|
+
var tmp0 = newMap;
|
|
2934
|
+
// Inline function 'kotlin.collections.get' call
|
|
2935
|
+
var key = links.j9g_1;
|
|
2936
|
+
var tmp$ret$0 = (isInterface(tmp0, KtMap) ? tmp0 : THROW_CCE()).c2(key);
|
|
2937
|
+
var previousLinks = ensureNotNull(tmp$ret$0);
|
|
2938
|
+
var tmp_0 = newMap;
|
|
2939
|
+
var tmp_1 = links.j9g_1;
|
|
2940
|
+
newMap = tmp_0.f2((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE(), previousLinks.d9f(links.k9g_1));
|
|
2941
|
+
}
|
|
2942
|
+
if (links.g9f()) {
|
|
2943
|
+
var tmp0_0 = newMap;
|
|
2944
|
+
// Inline function 'kotlin.collections.get' call
|
|
2945
|
+
var key_0 = links.k9g_1;
|
|
2946
|
+
var tmp$ret$1 = (isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).c2(key_0);
|
|
2947
|
+
var nextLinks = ensureNotNull(tmp$ret$1);
|
|
2948
|
+
var tmp_2 = newMap;
|
|
2949
|
+
var tmp_3 = links.k9g_1;
|
|
2950
|
+
newMap = tmp_2.f2((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE(), nextLinks.f9f(links.j9g_1));
|
|
2951
|
+
}
|
|
2952
|
+
var newFirstElement = !links.e9f() ? links.k9g_1 : this.g9g_1;
|
|
2953
|
+
var newLastElement = !links.g9f() ? links.j9g_1 : this.h9g_1;
|
|
2954
|
+
return new PersistentOrderedSet(newFirstElement, newLastElement, newMap);
|
|
2955
|
+
};
|
|
2956
|
+
protoOf(PersistentOrderedSet).l = function () {
|
|
2957
|
+
return new PersistentOrderedSetIterator(this.g9g_1, this.i9g_1);
|
|
2958
|
+
};
|
|
2959
|
+
protoOf(PersistentOrderedSet).equals = function (other) {
|
|
2960
|
+
if (other === this)
|
|
2961
|
+
return true;
|
|
2962
|
+
if (!(!(other == null) ? isInterface(other, KtSet) : false))
|
|
2963
|
+
return false;
|
|
2964
|
+
if (!(this.o() === other.o()))
|
|
2965
|
+
return false;
|
|
2966
|
+
var tmp;
|
|
2967
|
+
if (other instanceof PersistentOrderedSet) {
|
|
2968
|
+
tmp = this.i9g_1.e9b_1.a9c(other.i9g_1.e9b_1, PersistentOrderedSet$equals$lambda);
|
|
2969
|
+
} else {
|
|
2970
|
+
if (other instanceof PersistentOrderedSetBuilder) {
|
|
2971
|
+
var tmp_0 = other.l9g_1.w9b_1;
|
|
2972
|
+
tmp = this.i9g_1.e9b_1.a9c(tmp_0, PersistentOrderedSet$equals$lambda_0);
|
|
2973
|
+
} else {
|
|
2974
|
+
tmp = protoOf(AbstractSet).equals.call(this, other);
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
return tmp;
|
|
2978
|
+
};
|
|
2979
|
+
protoOf(PersistentOrderedSet).hashCode = function () {
|
|
2980
|
+
return protoOf(AbstractSet).hashCode.call(this);
|
|
2981
|
+
};
|
|
2982
|
+
function Links_init_$Init$($this) {
|
|
2983
|
+
Links.call($this, EndOfChain_instance, EndOfChain_instance);
|
|
2984
|
+
return $this;
|
|
2985
|
+
}
|
|
2986
|
+
function Links_init_$Create$() {
|
|
2987
|
+
return Links_init_$Init$(objectCreate(protoOf(Links)));
|
|
2988
|
+
}
|
|
2989
|
+
function Links_init_$Init$_0(previous, $this) {
|
|
2990
|
+
Links.call($this, previous, EndOfChain_instance);
|
|
2991
|
+
return $this;
|
|
2992
|
+
}
|
|
2993
|
+
function Links_init_$Create$_0(previous) {
|
|
2994
|
+
return Links_init_$Init$_0(previous, objectCreate(protoOf(Links)));
|
|
2995
|
+
}
|
|
2996
|
+
function Links(previous, next) {
|
|
2997
|
+
this.j9g_1 = previous;
|
|
2998
|
+
this.k9g_1 = next;
|
|
2999
|
+
}
|
|
3000
|
+
protoOf(Links).d9f = function (newNext) {
|
|
3001
|
+
return new Links(this.j9g_1, newNext);
|
|
3002
|
+
};
|
|
3003
|
+
protoOf(Links).f9f = function (newPrevious) {
|
|
3004
|
+
return new Links(newPrevious, this.k9g_1);
|
|
3005
|
+
};
|
|
3006
|
+
protoOf(Links).g9f = function () {
|
|
3007
|
+
return !(this.k9g_1 === EndOfChain_instance);
|
|
3008
|
+
};
|
|
3009
|
+
protoOf(Links).e9f = function () {
|
|
3010
|
+
return !(this.j9g_1 === EndOfChain_instance);
|
|
3011
|
+
};
|
|
3012
|
+
function PersistentOrderedSetBuilder() {
|
|
3013
|
+
}
|
|
3014
|
+
function checkHasNext_1($this) {
|
|
3015
|
+
if (!$this.m())
|
|
3016
|
+
throw NoSuchElementException_init_$Create$();
|
|
3017
|
+
}
|
|
3018
|
+
function PersistentOrderedSetIterator(nextElement, map) {
|
|
3019
|
+
this.m9g_1 = nextElement;
|
|
3020
|
+
this.n9g_1 = map;
|
|
3021
|
+
this.o9g_1 = 0;
|
|
3022
|
+
}
|
|
3023
|
+
protoOf(PersistentOrderedSetIterator).m = function () {
|
|
3024
|
+
return this.o9g_1 < this.n9g_1.o();
|
|
3025
|
+
};
|
|
3026
|
+
protoOf(PersistentOrderedSetIterator).n = function () {
|
|
3027
|
+
checkHasNext_1(this);
|
|
3028
|
+
var tmp = this.m9g_1;
|
|
3029
|
+
var result = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
3030
|
+
this.o9g_1 = this.o9g_1 + 1 | 0;
|
|
3031
|
+
var tmp_0 = this;
|
|
3032
|
+
// Inline function 'kotlin.collections.getOrElse' call
|
|
3033
|
+
var tmp0_elvis_lhs = this.n9g_1.c2(result);
|
|
3034
|
+
var tmp_1;
|
|
3035
|
+
if (tmp0_elvis_lhs == null) {
|
|
3036
|
+
throw ConcurrentModificationException_init_$Create$_0('Hash code of an element (' + toString_0(result) + ') has changed after it was added to the persistent set.');
|
|
3037
|
+
} else {
|
|
3038
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
3039
|
+
}
|
|
3040
|
+
tmp_0.m9g_1 = tmp_1.k9g_1;
|
|
3041
|
+
return result;
|
|
3042
|
+
};
|
|
3043
|
+
function EndOfChain() {
|
|
3044
|
+
}
|
|
3045
|
+
var EndOfChain_instance;
|
|
3046
|
+
function EndOfChain_getInstance() {
|
|
3047
|
+
return EndOfChain_instance;
|
|
3048
|
+
}
|
|
3049
|
+
function ListImplementation() {
|
|
3050
|
+
}
|
|
3051
|
+
protoOf(ListImplementation).u99 = function (index, size) {
|
|
3052
|
+
if (index < 0 || index >= size) {
|
|
3053
|
+
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', size: ' + size);
|
|
3054
|
+
}
|
|
3055
|
+
};
|
|
3056
|
+
protoOf(ListImplementation).l9a = function (index, size) {
|
|
3057
|
+
if (index < 0 || index > size) {
|
|
3058
|
+
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', size: ' + size);
|
|
3059
|
+
}
|
|
3060
|
+
};
|
|
3061
|
+
protoOf(ListImplementation).t99 = function (fromIndex, toIndex, size) {
|
|
3062
|
+
if (fromIndex < 0 || toIndex > size) {
|
|
3063
|
+
throw IndexOutOfBoundsException_init_$Create$('fromIndex: ' + fromIndex + ', toIndex: ' + toIndex + ', size: ' + size);
|
|
3064
|
+
}
|
|
3065
|
+
if (fromIndex > toIndex) {
|
|
3066
|
+
throw IllegalArgumentException_init_$Create$('fromIndex: ' + fromIndex + ' > toIndex: ' + toIndex);
|
|
3067
|
+
}
|
|
3068
|
+
};
|
|
3069
|
+
var ListImplementation_instance;
|
|
3070
|
+
function ListImplementation_getInstance() {
|
|
3071
|
+
return ListImplementation_instance;
|
|
3072
|
+
}
|
|
3073
|
+
function MapImplementation() {
|
|
3074
|
+
}
|
|
3075
|
+
protoOf(MapImplementation).l9e = function (map, element) {
|
|
3076
|
+
var tmp = !(element == null) ? element : THROW_CCE();
|
|
3077
|
+
if (!(!(tmp == null) ? isInterface(tmp, Entry) : false))
|
|
3078
|
+
return false;
|
|
3079
|
+
var tmp0_safe_receiver = map.c2(element.x());
|
|
3080
|
+
var tmp_0;
|
|
3081
|
+
if (tmp0_safe_receiver == null) {
|
|
3082
|
+
tmp_0 = null;
|
|
3083
|
+
} else {
|
|
3084
|
+
// Inline function 'kotlin.let' call
|
|
3085
|
+
tmp_0 = equals(tmp0_safe_receiver, element.y());
|
|
3086
|
+
}
|
|
3087
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
3088
|
+
return tmp1_elvis_lhs == null ? element.y() == null && map.a2(element.x()) : tmp1_elvis_lhs;
|
|
3089
|
+
};
|
|
3090
|
+
protoOf(MapImplementation).w9c = function (thisMap, otherMap) {
|
|
3091
|
+
// Inline function 'kotlin.require' call
|
|
3092
|
+
// Inline function 'kotlin.require' call
|
|
3093
|
+
if (!(thisMap.o() === otherMap.o())) {
|
|
3094
|
+
var message = 'Failed requirement.';
|
|
3095
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3096
|
+
}
|
|
3097
|
+
var tmp0 = isInterface(otherMap, KtMap) ? otherMap : THROW_CCE();
|
|
3098
|
+
var tmp$ret$3;
|
|
3099
|
+
$l$block_0: {
|
|
3100
|
+
// Inline function 'kotlin.collections.all' call
|
|
3101
|
+
if (tmp0.r()) {
|
|
3102
|
+
tmp$ret$3 = true;
|
|
3103
|
+
break $l$block_0;
|
|
3104
|
+
}
|
|
3105
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
3106
|
+
var _iterator__ex2g4s = tmp0.w().l();
|
|
3107
|
+
while (_iterator__ex2g4s.m()) {
|
|
3108
|
+
var element = _iterator__ex2g4s.n();
|
|
3109
|
+
if (!MapImplementation_instance.l9e(thisMap, element)) {
|
|
3110
|
+
tmp$ret$3 = false;
|
|
3111
|
+
break $l$block_0;
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
tmp$ret$3 = true;
|
|
3115
|
+
}
|
|
3116
|
+
return tmp$ret$3;
|
|
3117
|
+
};
|
|
3118
|
+
protoOf(MapImplementation).x9c = function (map) {
|
|
3119
|
+
return hashCode(map.w());
|
|
3120
|
+
};
|
|
3121
|
+
var MapImplementation_instance;
|
|
3122
|
+
function MapImplementation_getInstance() {
|
|
3123
|
+
return MapImplementation_instance;
|
|
3124
|
+
}
|
|
3125
|
+
function MutabilityOwnership() {
|
|
3126
|
+
}
|
|
3127
|
+
function DeltaCounter(count) {
|
|
3128
|
+
count = count === VOID ? 0 : count;
|
|
3129
|
+
this.s9c_1 = count;
|
|
3130
|
+
}
|
|
3131
|
+
protoOf(DeltaCounter).b9f = function (that) {
|
|
3132
|
+
this.s9c_1 = this.s9c_1 + that | 0;
|
|
3133
|
+
};
|
|
3134
|
+
protoOf(DeltaCounter).toString = function () {
|
|
3135
|
+
return 'DeltaCounter(count=' + this.s9c_1 + ')';
|
|
3136
|
+
};
|
|
3137
|
+
protoOf(DeltaCounter).hashCode = function () {
|
|
3138
|
+
return this.s9c_1;
|
|
3139
|
+
};
|
|
3140
|
+
protoOf(DeltaCounter).equals = function (other) {
|
|
3141
|
+
if (this === other)
|
|
3142
|
+
return true;
|
|
3143
|
+
if (!(other instanceof DeltaCounter))
|
|
3144
|
+
return false;
|
|
3145
|
+
var tmp0_other_with_cast = other instanceof DeltaCounter ? other : THROW_CCE();
|
|
3146
|
+
if (!(this.s9c_1 === tmp0_other_with_cast.s9c_1))
|
|
3147
|
+
return false;
|
|
3148
|
+
return true;
|
|
3149
|
+
};
|
|
3150
|
+
function assert(condition) {
|
|
3151
|
+
if (!condition) {
|
|
3152
|
+
throw AssertionError_init_$Create$('Assertion failed');
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
//region block: init
|
|
3156
|
+
EndOfChain_instance = new EndOfChain();
|
|
3157
|
+
ListImplementation_instance = new ListImplementation();
|
|
3158
|
+
MapImplementation_instance = new MapImplementation();
|
|
3159
|
+
//endregion
|
|
3160
|
+
//region block: exports
|
|
3161
|
+
_.$_$ = _.$_$ || {};
|
|
3162
|
+
_.$_$.a = persistentListOf;
|
|
3163
|
+
_.$_$.b = persistentMapOf;
|
|
3164
|
+
_.$_$.c = persistentSetOf;
|
|
3165
|
+
_.$_$.d = toImmutableMap;
|
|
3166
|
+
//endregion
|
|
3167
|
+
return _;
|
|
3168
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js')));
|
|
3169
|
+
|
|
3170
|
+
//# sourceMappingURL=Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map
|