raspberry_games_engine_helpers 1.8.248
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/Kosi-Kaverit-kaverit.js +339 -0
- package/Kosi-Kaverit-kaverit.js.map +1 -0
- package/Kosi-Kodein-kodein-di.js +2294 -0
- package/Kosi-Kodein-kodein-di.js.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js +6215 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/Logic_Debertz-core.js +3907 -0
- package/Logic_Debertz-core.js.map +1 -0
- package/Logic_Debertz-engine.d.ts +1844 -0
- package/Logic_Debertz-engine.js +31732 -0
- package/Logic_Debertz-engine.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +12753 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-kotlinx-atomicfu-runtime.js +15 -0
- package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-atomicfu.js +15 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +15 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +275 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6287 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5078 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js +15 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +15 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-js.js +15 -0
- package/ktor-ktor-client-js.js.map +1 -0
- package/ktor-ktor-client-logging.js +15 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +15 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http.js +15 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +19 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +15 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +15 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +15 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-utils.js +19 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +15 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/package.json +13 -0
- package/raspberry-cardgame-lib-core.js +529 -0
- package/raspberry-cardgame-lib-core.js.map +1 -0
- package/raspberry-cardgame-lib-logger.js +197 -0
- package/raspberry-cardgame-lib-logger.js.map +1 -0
- package/raspberry-cardgame-lib-random.js +560 -0
- package/raspberry-cardgame-lib-random.js.map +1 -0
- package/secure-random-secure-random.js +15 -0
- package/secure-random-secure-random.js.map +1 -0
- package/uuid.js +15 -0
- package/uuid.js.map +1 -0
|
@@ -0,0 +1,2294 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './Kosi-Kaverit-kaverit.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Kosi-Kaverit-kaverit.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'Kosi-Kodein-kodein-di'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Kosi-Kodein-kodein-di'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['Kosi-Kaverit-kaverit'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'Kosi-Kodein-kodein-di'. Its dependency 'Kosi-Kaverit-kaverit' was not found. Please, check whether 'Kosi-Kaverit-kaverit' is loaded prior to 'Kosi-Kodein-kodein-di'.");
|
|
12
|
+
}
|
|
13
|
+
globalThis['Kosi-Kodein-kodein-di'] = factory(typeof globalThis['Kosi-Kodein-kodein-di'] === 'undefined' ? {} : globalThis['Kosi-Kodein-kodein-di'], globalThis['kotlin-kotlin-stdlib'], globalThis['Kosi-Kaverit-kaverit']);
|
|
14
|
+
}
|
|
15
|
+
}(function (_, kotlin_kotlin, kotlin_org_kodein_type_kaverit) {
|
|
16
|
+
'use strict';
|
|
17
|
+
//region block: imports
|
|
18
|
+
var imul = Math.imul;
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.o9;
|
|
20
|
+
var initMetadataForClass = kotlin_kotlin.$_$.r8;
|
|
21
|
+
var VOID = kotlin_kotlin.$_$.f;
|
|
22
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
23
|
+
var first = kotlin_kotlin.$_$.b6;
|
|
24
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
25
|
+
var Unit_instance = kotlin_kotlin.$_$.j4;
|
|
26
|
+
var filterNotNull = kotlin_kotlin.$_$.y5;
|
|
27
|
+
var sorted = kotlin_kotlin.$_$.k7;
|
|
28
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
29
|
+
var repeat = kotlin_kotlin.$_$.wa;
|
|
30
|
+
var ensureNotNull = kotlin_kotlin.$_$.wc;
|
|
31
|
+
var KProperty1 = kotlin_kotlin.$_$.ea;
|
|
32
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.o8;
|
|
33
|
+
var toString = kotlin_kotlin.$_$.gd;
|
|
34
|
+
var Companion_getInstance = kotlin_org_kodein_type_kaverit.$_$.a;
|
|
35
|
+
var equals = kotlin_kotlin.$_$.k8;
|
|
36
|
+
var objectCreate = kotlin_kotlin.$_$.n9;
|
|
37
|
+
var RuntimeException = kotlin_kotlin.$_$.gc;
|
|
38
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.o1;
|
|
39
|
+
var captureStack = kotlin_kotlin.$_$.d8;
|
|
40
|
+
var hashCode = kotlin_kotlin.$_$.q8;
|
|
41
|
+
var THROW_CCE = kotlin_kotlin.$_$.hc;
|
|
42
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.u8;
|
|
43
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
44
|
+
var toString_0 = kotlin_kotlin.$_$.s9;
|
|
45
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.m8;
|
|
46
|
+
var getStringHashCode = kotlin_kotlin.$_$.p8;
|
|
47
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.s8;
|
|
48
|
+
var initMetadataForObject = kotlin_kotlin.$_$.w8;
|
|
49
|
+
var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
|
|
50
|
+
var isInterface = kotlin_kotlin.$_$.e9;
|
|
51
|
+
var joinToString = kotlin_kotlin.$_$.l6;
|
|
52
|
+
var erasedOf = kotlin_org_kodein_type_kaverit.$_$.c;
|
|
53
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
54
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
55
|
+
var HashMap_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
56
|
+
var charSequenceLength = kotlin_kotlin.$_$.g8;
|
|
57
|
+
var Enum = kotlin_kotlin.$_$.ac;
|
|
58
|
+
var KtMap = kotlin_kotlin.$_$.s4;
|
|
59
|
+
var listOf = kotlin_kotlin.$_$.u6;
|
|
60
|
+
var plus = kotlin_kotlin.$_$.b7;
|
|
61
|
+
var emptyList = kotlin_kotlin.$_$.v5;
|
|
62
|
+
var plus_0 = kotlin_kotlin.$_$.c7;
|
|
63
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.d5;
|
|
64
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.a2;
|
|
65
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.e5;
|
|
66
|
+
var mapCapacity = kotlin_kotlin.$_$.w6;
|
|
67
|
+
var coerceAtLeast = kotlin_kotlin.$_$.v9;
|
|
68
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.t;
|
|
69
|
+
var to = kotlin_kotlin.$_$.hd;
|
|
70
|
+
var KProperty0 = kotlin_kotlin.$_$.da;
|
|
71
|
+
var lazy = kotlin_kotlin.$_$.bd;
|
|
72
|
+
var asSequence = kotlin_kotlin.$_$.z4;
|
|
73
|
+
var filter = kotlin_kotlin.$_$.ga;
|
|
74
|
+
var flatMap = kotlin_kotlin.$_$.ia;
|
|
75
|
+
var mapNotNull = kotlin_kotlin.$_$.ja;
|
|
76
|
+
var map = kotlin_kotlin.$_$.ka;
|
|
77
|
+
var toList = kotlin_kotlin.$_$.la;
|
|
78
|
+
var Triple = kotlin_kotlin.$_$.jc;
|
|
79
|
+
var ArrayList_init_$Create$_1 = kotlin_kotlin.$_$.m;
|
|
80
|
+
var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.p;
|
|
81
|
+
var Collection = kotlin_kotlin.$_$.l4;
|
|
82
|
+
var addAll = kotlin_kotlin.$_$.x4;
|
|
83
|
+
var getOrNull = kotlin_kotlin.$_$.f6;
|
|
84
|
+
//endregion
|
|
85
|
+
//region block: pre-declaration
|
|
86
|
+
initMetadataForClass(DIDefining, 'DIDefining');
|
|
87
|
+
initMetadataForClass(DIDefinition, 'DIDefinition', VOID, DIDefining);
|
|
88
|
+
initMetadataForClass(DependencyLoopException, 'DependencyLoopException', VOID, RuntimeException);
|
|
89
|
+
initMetadataForClass(NotFoundException, 'NotFoundException', VOID, RuntimeException);
|
|
90
|
+
initMetadataForClass(OverridingException, 'OverridingException', VOID, RuntimeException);
|
|
91
|
+
initMetadataForClass(Key, 'Key');
|
|
92
|
+
function import$default(module_0, allowOverride, $super) {
|
|
93
|
+
allowOverride = allowOverride === VOID ? false : allowOverride;
|
|
94
|
+
var tmp;
|
|
95
|
+
if ($super === VOID) {
|
|
96
|
+
this.a1z(module_0, allowOverride);
|
|
97
|
+
tmp = Unit_instance;
|
|
98
|
+
} else {
|
|
99
|
+
tmp = $super.a1z.call(this, module_0, allowOverride);
|
|
100
|
+
}
|
|
101
|
+
return tmp;
|
|
102
|
+
}
|
|
103
|
+
initMetadataForInterface(Builder, 'Builder');
|
|
104
|
+
initMetadataForClass(Module, 'Module');
|
|
105
|
+
initMetadataForCompanion(Companion);
|
|
106
|
+
function get_diContext() {
|
|
107
|
+
return get_AnyDIContext();
|
|
108
|
+
}
|
|
109
|
+
function get_diTrigger() {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
initMetadataForInterface(DIAware, 'DIAware');
|
|
113
|
+
function get_di() {
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
initMetadataForInterface(DI, 'DI', VOID, VOID, [DIAware]);
|
|
117
|
+
initMetadataForInterface(DIContext, 'DIContext');
|
|
118
|
+
initMetadataForClass(Value, 'Value', VOID, VOID, [DIContext]);
|
|
119
|
+
initMetadataForCompanion(Companion_0);
|
|
120
|
+
initMetadataForObject(Contexes, 'Contexes');
|
|
121
|
+
initMetadataForClass(DIWrapper, 'DIWrapper', VOID, VOID, [DI]);
|
|
122
|
+
function factory$default(key, context, overrideLevel, $super) {
|
|
123
|
+
overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
|
|
124
|
+
return $super === VOID ? this.w1z(key, context, overrideLevel) : $super.w1z.call(this, key, context, overrideLevel);
|
|
125
|
+
}
|
|
126
|
+
function provider(key, context, overrideLevel) {
|
|
127
|
+
// Inline function 'org.kodein.di.toProvider' call
|
|
128
|
+
var this_0 = this.x1z(key, context);
|
|
129
|
+
return DIContainer$provider$lambda(this_0);
|
|
130
|
+
}
|
|
131
|
+
function provider$default(key, context, overrideLevel, $super) {
|
|
132
|
+
overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
|
|
133
|
+
return $super === VOID ? this.y1z(key, context, overrideLevel) : provider(key, context, overrideLevel);
|
|
134
|
+
}
|
|
135
|
+
initMetadataForInterface(DIContainer, 'DIContainer');
|
|
136
|
+
function find$default(key, overrideLevel, all, $super) {
|
|
137
|
+
overrideLevel = overrideLevel === VOID ? 0 : overrideLevel;
|
|
138
|
+
all = all === VOID ? false : all;
|
|
139
|
+
return $super === VOID ? this.b20(key, overrideLevel, all) : $super.b20.call(this, key, overrideLevel, all);
|
|
140
|
+
}
|
|
141
|
+
initMetadataForInterface(DITree, 'DITree');
|
|
142
|
+
function get_di_0() {
|
|
143
|
+
return this.f20();
|
|
144
|
+
}
|
|
145
|
+
initMetadataForInterface(DirectDIBase, 'DirectDIBase');
|
|
146
|
+
initMetadataForObject(NoDefinedTag, 'NoDefinedTag');
|
|
147
|
+
initMetadataForClass(SearchSpecs, 'SearchSpecs', SearchSpecs);
|
|
148
|
+
initMetadataForClass(NoArgBindingDIWrap, 'NoArgBindingDIWrap', VOID, VOID, [DirectDIBase]);
|
|
149
|
+
initMetadataForObject(ErasedContext, 'ErasedContext', VOID, VOID, [DIContext]);
|
|
150
|
+
initMetadataForClass(DIBinding$Copier$Companion$invoke$1);
|
|
151
|
+
initMetadataForCompanion(Companion_1);
|
|
152
|
+
function factoryFullName() {
|
|
153
|
+
return this.q20();
|
|
154
|
+
}
|
|
155
|
+
function get_scope() {
|
|
156
|
+
return null;
|
|
157
|
+
}
|
|
158
|
+
function get_description() {
|
|
159
|
+
var arg = !equals(this.s20(), Companion_getInstance().k1x_1) ? this.s20().m1x() + ' -> ' : '';
|
|
160
|
+
var tmp;
|
|
161
|
+
var tmp_0 = this.e1z();
|
|
162
|
+
if (tmp_0 instanceof NoScope) {
|
|
163
|
+
tmp = null;
|
|
164
|
+
} else {
|
|
165
|
+
tmp = this.e1z();
|
|
166
|
+
}
|
|
167
|
+
var scope = tmp;
|
|
168
|
+
var tmp_1;
|
|
169
|
+
if (scope == null) {
|
|
170
|
+
tmp_1 = null;
|
|
171
|
+
} else {
|
|
172
|
+
// Inline function 'kotlin.let' call
|
|
173
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
174
|
+
// Inline function 'org.kodein.di.bindings.DIBinding.<get-description>.<anonymous>' call
|
|
175
|
+
tmp_1 = 'scoped(' + erasedOf(scope).m1x() + ').';
|
|
176
|
+
}
|
|
177
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
178
|
+
var context = tmp0_elvis_lhs == null ? !equals(this.c1z(), Companion_getInstance().l1x_1) ? 'contexted<' + this.c1z().m1x() + '>().' : '' : tmp0_elvis_lhs;
|
|
179
|
+
return context + this.q20() + ' { ' + arg + this.t20().m1x() + ' }';
|
|
180
|
+
}
|
|
181
|
+
function get_fullDescription() {
|
|
182
|
+
var arg = !equals(this.s20(), Companion_getInstance().k1x_1) ? this.s20().o1x() + ' -> ' : '';
|
|
183
|
+
var tmp;
|
|
184
|
+
var tmp_0 = this.e1z();
|
|
185
|
+
if (tmp_0 instanceof NoScope) {
|
|
186
|
+
tmp = null;
|
|
187
|
+
} else {
|
|
188
|
+
tmp = this.e1z();
|
|
189
|
+
}
|
|
190
|
+
var scope = tmp;
|
|
191
|
+
var tmp_1;
|
|
192
|
+
if (scope == null) {
|
|
193
|
+
tmp_1 = null;
|
|
194
|
+
} else {
|
|
195
|
+
// Inline function 'kotlin.let' call
|
|
196
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
197
|
+
// Inline function 'org.kodein.di.bindings.DIBinding.<get-fullDescription>.<anonymous>' call
|
|
198
|
+
tmp_1 = 'scoped(' + erasedOf(scope).o1x() + ').';
|
|
199
|
+
}
|
|
200
|
+
var tmp0_elvis_lhs = tmp_1;
|
|
201
|
+
var context = tmp0_elvis_lhs == null ? !equals(this.c1z(), Companion_getInstance().l1x_1) ? 'contexted<' + this.c1z().o1x() + '>().' : '' : tmp0_elvis_lhs;
|
|
202
|
+
return context + this.r20() + ' { ' + arg + this.t20().o1x() + ' }';
|
|
203
|
+
}
|
|
204
|
+
function get_supportSubTypes() {
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
initMetadataForInterface(DIBinding, 'DIBinding');
|
|
208
|
+
function get_argType() {
|
|
209
|
+
return Companion_getInstance().k1x_1;
|
|
210
|
+
}
|
|
211
|
+
initMetadataForInterface(NoArgDIBinding, 'NoArgDIBinding', VOID, VOID, [DIBinding]);
|
|
212
|
+
initMetadataForObject(SingletonReference, 'SingletonReference');
|
|
213
|
+
initMetadataForClass(Reference, 'Reference');
|
|
214
|
+
initMetadataForInterface(ContextTranslator, 'ContextTranslator');
|
|
215
|
+
initMetadataForClass(ScopeRegistry, 'ScopeRegistry');
|
|
216
|
+
initMetadataForClass(NoScope, 'NoScope', NoScope);
|
|
217
|
+
initMetadataForClass(StandardScopeRegistry, 'StandardScopeRegistry', StandardScopeRegistry, ScopeRegistry);
|
|
218
|
+
initMetadataForClass(CompositeContextTranslator, 'CompositeContextTranslator', VOID, VOID, [ContextTranslator]);
|
|
219
|
+
initMetadataForClass(Singleton, 'Singleton', VOID, VOID, [NoArgDIBinding]);
|
|
220
|
+
initMetadataForClass(Provider, 'Provider', VOID, VOID, [NoArgDIBinding]);
|
|
221
|
+
initMetadataForClass(ScopeKey, 'ScopeKey');
|
|
222
|
+
initMetadataForClass(DIBuilderImpl, 'DIBuilderImpl', VOID, VOID, [Builder]);
|
|
223
|
+
initMetadataForClass(DIMainBuilderImpl, 'DIMainBuilderImpl', VOID, DIBuilderImpl, [DIBuilderImpl, Builder]);
|
|
224
|
+
initMetadataForClass(TypeBinder, 'TypeBinder');
|
|
225
|
+
initMetadataForClass(OverrideMode, 'OverrideMode', VOID, Enum);
|
|
226
|
+
initMetadataForClass(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT, 'ALLOW_SILENT', VOID, OverrideMode);
|
|
227
|
+
initMetadataForClass(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT, 'ALLOW_EXPLICIT', VOID, OverrideMode);
|
|
228
|
+
initMetadataForClass(DIContainerBuilderImpl$OverrideMode$FORBID, 'FORBID', VOID, OverrideMode);
|
|
229
|
+
initMetadataForCompanion(Companion_2);
|
|
230
|
+
initMetadataForClass(DIContainerBuilderImpl, 'DIContainerBuilderImpl');
|
|
231
|
+
initMetadataForClass(Node, 'Node');
|
|
232
|
+
initMetadataForClass(DIContainerImpl, 'DIContainerImpl', VOID, VOID, [DIContainer]);
|
|
233
|
+
initMetadataForCompanion(Companion_3);
|
|
234
|
+
initMetadataForClass(DIImpl, 'DIImpl', VOID, VOID, [DI]);
|
|
235
|
+
initMetadataForClass(BindingDIImpl, 'BindingDIImpl', VOID, VOID, [DirectDIBase]);
|
|
236
|
+
initMetadataForClass(DITreeImpl, 'DITreeImpl', VOID, VOID, [DITree]);
|
|
237
|
+
initMetadataForClass(TypeChecker, 'TypeChecker');
|
|
238
|
+
initMetadataForClass(Down, 'Down', VOID, TypeChecker);
|
|
239
|
+
initMetadataForClass(Up, 'Up', VOID, TypeChecker);
|
|
240
|
+
initMetadataForClass(DirectDIBaseImpl, 'DirectDIBaseImpl', VOID, VOID, [DirectDIBase]);
|
|
241
|
+
initMetadataForClass(DIProperty, 'DIProperty');
|
|
242
|
+
initMetadataForClass(DirectDIImpl, 'DirectDIImpl', VOID, DirectDIBaseImpl, [DirectDIBaseImpl, DirectDIBase]);
|
|
243
|
+
//endregion
|
|
244
|
+
function DIDefinition(binding, fromModule, tree) {
|
|
245
|
+
DIDefining.call(this, binding, fromModule);
|
|
246
|
+
this.e1y_1 = tree;
|
|
247
|
+
}
|
|
248
|
+
function description(_this__u8e3s4, withOverrides, ident) {
|
|
249
|
+
withOverrides = withOverrides === VOID ? false : withOverrides;
|
|
250
|
+
ident = ident === VOID ? 8 : ident;
|
|
251
|
+
return descriptionImpl(_this__u8e3s4, withOverrides, ident, bindDescription$factory(), description$factory());
|
|
252
|
+
}
|
|
253
|
+
function DIDefining(binding, fromModule) {
|
|
254
|
+
this.f1y_1 = binding;
|
|
255
|
+
this.g1y_1 = fromModule;
|
|
256
|
+
}
|
|
257
|
+
function descriptionImpl(_this__u8e3s4, withOverrides, ident, keyBindDisp, bindingDisp) {
|
|
258
|
+
// Inline function 'kotlin.collections.groupBy' call
|
|
259
|
+
// Inline function 'kotlin.collections.groupByTo' call
|
|
260
|
+
var this_0 = _this__u8e3s4.s();
|
|
261
|
+
var destination = LinkedHashMap_init_$Create$();
|
|
262
|
+
var tmp0_iterator = this_0.j();
|
|
263
|
+
while (tmp0_iterator.k()) {
|
|
264
|
+
var element = tmp0_iterator.l();
|
|
265
|
+
// Inline function 'org.kodein.di.descriptionImpl.<anonymous>' call
|
|
266
|
+
var key = first(element.a2()).g1y_1;
|
|
267
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
268
|
+
var value = destination.d2(key);
|
|
269
|
+
var tmp;
|
|
270
|
+
if (value == null) {
|
|
271
|
+
// Inline function 'kotlin.collections.groupByTo.<anonymous>' call
|
|
272
|
+
var answer = ArrayList_init_$Create$();
|
|
273
|
+
destination.g2(key, answer);
|
|
274
|
+
tmp = answer;
|
|
275
|
+
} else {
|
|
276
|
+
tmp = value;
|
|
277
|
+
}
|
|
278
|
+
var list = tmp;
|
|
279
|
+
list.e(element);
|
|
280
|
+
}
|
|
281
|
+
var byModule = destination;
|
|
282
|
+
var modules = sorted(filterNotNull(byModule.e2()));
|
|
283
|
+
// Inline function 'kotlin.text.buildString' call
|
|
284
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
285
|
+
// Inline function 'kotlin.apply' call
|
|
286
|
+
var this_1 = StringBuilder_init_$Create$();
|
|
287
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
288
|
+
// Inline function 'org.kodein.di.descriptionImpl.<anonymous>' call
|
|
289
|
+
var tmp0_safe_receiver = byModule.d2(null);
|
|
290
|
+
if (tmp0_safe_receiver == null)
|
|
291
|
+
null;
|
|
292
|
+
else {
|
|
293
|
+
// Inline function 'kotlin.let' call
|
|
294
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
295
|
+
descriptionImpl$appendBindings(this_1, keyBindDisp, bindingDisp, withOverrides, ident, tmp0_safe_receiver);
|
|
296
|
+
}
|
|
297
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
298
|
+
var tmp0_iterator_0 = modules.j();
|
|
299
|
+
while (tmp0_iterator_0.k()) {
|
|
300
|
+
var element_0 = tmp0_iterator_0.l();
|
|
301
|
+
// Inline function 'org.kodein.di.descriptionImpl.<anonymous>.<anonymous>' call
|
|
302
|
+
this_1.f8(repeat(' ', ident) + 'module ' + element_0 + ' {\n');
|
|
303
|
+
descriptionImpl$appendBindings(this_1, keyBindDisp, bindingDisp, withOverrides, ident + 4 | 0, ensureNotNull(byModule.d2(element_0)));
|
|
304
|
+
this_1.f8(repeat(' ', ident) + '}\n');
|
|
305
|
+
}
|
|
306
|
+
return this_1.toString();
|
|
307
|
+
}
|
|
308
|
+
function fullDescription(_this__u8e3s4, withOverrides, ident) {
|
|
309
|
+
withOverrides = withOverrides === VOID ? false : withOverrides;
|
|
310
|
+
ident = ident === VOID ? 8 : ident;
|
|
311
|
+
return descriptionImpl(_this__u8e3s4, withOverrides, ident, bindFullDescription$factory(), fullDescription$factory());
|
|
312
|
+
}
|
|
313
|
+
function descriptionImpl$appendBindings(_this__u8e3s4, $keyBindDisp, $bindingDisp, $withOverrides, ident, entries) {
|
|
314
|
+
var tmp0_iterator = entries.j();
|
|
315
|
+
while (tmp0_iterator.k()) {
|
|
316
|
+
var element = tmp0_iterator.l();
|
|
317
|
+
// Inline function 'org.kodein.di.descriptionImpl.appendBindings.<anonymous>' call
|
|
318
|
+
var keyDescription = $keyBindDisp(element.z1());
|
|
319
|
+
_this__u8e3s4.f8(repeat(' ', ident) + keyDescription + ' { ' + $bindingDisp(first(element.a2()).f1y_1) + ' }');
|
|
320
|
+
if ($withOverrides) {
|
|
321
|
+
var subIdent = keyDescription.length - 4 | 0;
|
|
322
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
323
|
+
var tmp0_iterator_0 = element.a2().u1(1, element.a2().m()).j();
|
|
324
|
+
while (tmp0_iterator_0.k()) {
|
|
325
|
+
var element_0 = tmp0_iterator_0.l();
|
|
326
|
+
// Inline function 'org.kodein.di.descriptionImpl.appendBindings.<anonymous>.<anonymous>' call
|
|
327
|
+
_this__u8e3s4.f8(repeat(' ', subIdent) + 'overrides ' + $bindingDisp(element_0.f1y_1));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
_this__u8e3s4.f8('\n');
|
|
331
|
+
}
|
|
332
|
+
return Unit_instance;
|
|
333
|
+
}
|
|
334
|
+
function bindDescription$factory() {
|
|
335
|
+
return getPropertyCallableRef('bindDescription', 1, KProperty1, function (receiver) {
|
|
336
|
+
return receiver.m1y();
|
|
337
|
+
}, null);
|
|
338
|
+
}
|
|
339
|
+
function description$factory() {
|
|
340
|
+
return getPropertyCallableRef('description', 1, KProperty1, function (receiver) {
|
|
341
|
+
return receiver.n1y();
|
|
342
|
+
}, null);
|
|
343
|
+
}
|
|
344
|
+
function bindFullDescription$factory() {
|
|
345
|
+
return getPropertyCallableRef('bindFullDescription', 1, KProperty1, function (receiver) {
|
|
346
|
+
return receiver.o1y();
|
|
347
|
+
}, null);
|
|
348
|
+
}
|
|
349
|
+
function fullDescription$factory() {
|
|
350
|
+
return getPropertyCallableRef('fullDescription', 1, KProperty1, function (receiver) {
|
|
351
|
+
return receiver.p1y();
|
|
352
|
+
}, null);
|
|
353
|
+
}
|
|
354
|
+
function appendDescription(_this__u8e3s4, $this, displayString) {
|
|
355
|
+
if (!($this.k1y_1 == null)) {
|
|
356
|
+
_this__u8e3s4.f8(' tagged "' + toString($this.k1y_1) + '"');
|
|
357
|
+
}
|
|
358
|
+
if (!equals($this.h1y_1, Companion_getInstance().l1x_1)) {
|
|
359
|
+
_this__u8e3s4.f8(' on context ' + displayString($this.h1y_1));
|
|
360
|
+
}
|
|
361
|
+
if (!equals($this.i1y_1, Companion_getInstance().k1x_1)) {
|
|
362
|
+
_this__u8e3s4.f8(', with argument ' + displayString($this.i1y_1));
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function TypeToken$simpleDispString$ref() {
|
|
366
|
+
var l = function (p0) {
|
|
367
|
+
return p0.m1x();
|
|
368
|
+
};
|
|
369
|
+
l.callableName = 'simpleDispString';
|
|
370
|
+
return l;
|
|
371
|
+
}
|
|
372
|
+
function TypeToken$qualifiedDispString$ref() {
|
|
373
|
+
var l = function (p0) {
|
|
374
|
+
return p0.o1x();
|
|
375
|
+
};
|
|
376
|
+
l.callableName = 'qualifiedDispString';
|
|
377
|
+
return l;
|
|
378
|
+
}
|
|
379
|
+
function Module_init_$Init$(name, allowSilentOverride, prefix, init, $this) {
|
|
380
|
+
allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
|
|
381
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
382
|
+
Module.call($this, allowSilentOverride, prefix, init);
|
|
383
|
+
$this.t1y_1 = name;
|
|
384
|
+
return $this;
|
|
385
|
+
}
|
|
386
|
+
function Module_init_$Create$(name, allowSilentOverride, prefix, init) {
|
|
387
|
+
return Module_init_$Init$(name, allowSilentOverride, prefix, init, objectCreate(protoOf(Module)));
|
|
388
|
+
}
|
|
389
|
+
function DependencyLoopException(message) {
|
|
390
|
+
RuntimeException_init_$Init$(message, this);
|
|
391
|
+
captureStack(this, DependencyLoopException);
|
|
392
|
+
}
|
|
393
|
+
function NotFoundException(key, message) {
|
|
394
|
+
RuntimeException_init_$Init$(message, this);
|
|
395
|
+
captureStack(this, NotFoundException);
|
|
396
|
+
this.u1y_1 = key;
|
|
397
|
+
}
|
|
398
|
+
function OverridingException(message) {
|
|
399
|
+
RuntimeException_init_$Init$(message, this);
|
|
400
|
+
captureStack(this, OverridingException);
|
|
401
|
+
}
|
|
402
|
+
function Key(contextType, argType, type, tag) {
|
|
403
|
+
this.h1y_1 = contextType;
|
|
404
|
+
this.i1y_1 = argType;
|
|
405
|
+
this.j1y_1 = type;
|
|
406
|
+
this.k1y_1 = tag;
|
|
407
|
+
this.l1y_1 = 0;
|
|
408
|
+
}
|
|
409
|
+
protoOf(Key).hashCode = function () {
|
|
410
|
+
if (this.l1y_1 === 0) {
|
|
411
|
+
this.l1y_1 = hashCode(this.h1y_1);
|
|
412
|
+
this.l1y_1 = imul(31, this.l1y_1) + hashCode(this.i1y_1) | 0;
|
|
413
|
+
this.l1y_1 = imul(29, hashCode(this.j1y_1));
|
|
414
|
+
var tmp = this;
|
|
415
|
+
var tmp_0 = imul(23, this.l1y_1);
|
|
416
|
+
var tmp1_safe_receiver = this.k1y_1;
|
|
417
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : hashCode(tmp1_safe_receiver);
|
|
418
|
+
tmp.l1y_1 = tmp_0 + (tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs) | 0;
|
|
419
|
+
}
|
|
420
|
+
return this.l1y_1;
|
|
421
|
+
};
|
|
422
|
+
protoOf(Key).toString = function () {
|
|
423
|
+
return this.n1y();
|
|
424
|
+
};
|
|
425
|
+
protoOf(Key).m1y = function () {
|
|
426
|
+
// Inline function 'kotlin.text.buildString' call
|
|
427
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
428
|
+
// Inline function 'kotlin.apply' call
|
|
429
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
430
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
431
|
+
// Inline function 'org.kodein.di.Key.<get-bindDescription>.<anonymous>' call
|
|
432
|
+
this_0.f8('bind<' + this.j1y_1.m1x() + '>');
|
|
433
|
+
if (!(this.k1y_1 == null)) {
|
|
434
|
+
this_0.f8('(tag = "' + toString(this.k1y_1) + '")');
|
|
435
|
+
}
|
|
436
|
+
return this_0.toString();
|
|
437
|
+
};
|
|
438
|
+
protoOf(Key).o1y = function () {
|
|
439
|
+
// Inline function 'kotlin.text.buildString' call
|
|
440
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
441
|
+
// Inline function 'kotlin.apply' call
|
|
442
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
443
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
444
|
+
// Inline function 'org.kodein.di.Key.<get-bindFullDescription>.<anonymous>' call
|
|
445
|
+
this_0.f8('bind<' + this.j1y_1.o1x() + '>');
|
|
446
|
+
if (!(this.k1y_1 == null)) {
|
|
447
|
+
this_0.f8('(tag = "' + toString(this.k1y_1) + '")');
|
|
448
|
+
}
|
|
449
|
+
return this_0.toString();
|
|
450
|
+
};
|
|
451
|
+
protoOf(Key).n1y = function () {
|
|
452
|
+
// Inline function 'kotlin.text.buildString' call
|
|
453
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
454
|
+
// Inline function 'kotlin.apply' call
|
|
455
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
456
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
457
|
+
// Inline function 'org.kodein.di.Key.<get-description>.<anonymous>' call
|
|
458
|
+
this_0.f8(this.j1y_1.m1x());
|
|
459
|
+
appendDescription(this_0, this, TypeToken$simpleDispString$ref());
|
|
460
|
+
return this_0.toString();
|
|
461
|
+
};
|
|
462
|
+
protoOf(Key).v1y = function () {
|
|
463
|
+
return '(context: ' + this.h1y_1.m1x() + ', arg: ' + this.i1y_1.m1x() + ', type: ' + this.j1y_1.m1x() + ', tag: ' + toString(this.k1y_1) + ')';
|
|
464
|
+
};
|
|
465
|
+
protoOf(Key).p1y = function () {
|
|
466
|
+
// Inline function 'kotlin.text.buildString' call
|
|
467
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
468
|
+
// Inline function 'kotlin.apply' call
|
|
469
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
470
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
471
|
+
// Inline function 'org.kodein.di.Key.<get-fullDescription>.<anonymous>' call
|
|
472
|
+
this_0.f8(this.j1y_1.o1x());
|
|
473
|
+
appendDescription(this_0, this, TypeToken$qualifiedDispString$ref());
|
|
474
|
+
return this_0.toString();
|
|
475
|
+
};
|
|
476
|
+
protoOf(Key).w1y = function (contextType, argType, type, tag) {
|
|
477
|
+
return new Key(contextType, argType, type, tag);
|
|
478
|
+
};
|
|
479
|
+
protoOf(Key).x1y = function (contextType, argType, type, tag, $super) {
|
|
480
|
+
contextType = contextType === VOID ? this.h1y_1 : contextType;
|
|
481
|
+
argType = argType === VOID ? this.i1y_1 : argType;
|
|
482
|
+
type = type === VOID ? this.j1y_1 : type;
|
|
483
|
+
tag = tag === VOID ? this.k1y_1 : tag;
|
|
484
|
+
return $super === VOID ? this.w1y(contextType, argType, type, tag) : $super.w1y.call(this, contextType, argType, type, tag);
|
|
485
|
+
};
|
|
486
|
+
protoOf(Key).equals = function (other) {
|
|
487
|
+
if (this === other)
|
|
488
|
+
return true;
|
|
489
|
+
if (!(other instanceof Key))
|
|
490
|
+
return false;
|
|
491
|
+
var tmp0_other_with_cast = other instanceof Key ? other : THROW_CCE();
|
|
492
|
+
if (!equals(this.h1y_1, tmp0_other_with_cast.h1y_1))
|
|
493
|
+
return false;
|
|
494
|
+
if (!equals(this.i1y_1, tmp0_other_with_cast.i1y_1))
|
|
495
|
+
return false;
|
|
496
|
+
if (!equals(this.j1y_1, tmp0_other_with_cast.j1y_1))
|
|
497
|
+
return false;
|
|
498
|
+
if (!equals(this.k1y_1, tmp0_other_with_cast.k1y_1))
|
|
499
|
+
return false;
|
|
500
|
+
return true;
|
|
501
|
+
};
|
|
502
|
+
function Builder() {
|
|
503
|
+
}
|
|
504
|
+
function Module(allowSilentOverride, prefix, init) {
|
|
505
|
+
allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
|
|
506
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
507
|
+
this.q1y_1 = allowSilentOverride;
|
|
508
|
+
this.r1y_1 = prefix;
|
|
509
|
+
this.s1y_1 = init;
|
|
510
|
+
this.t1y_1 = null;
|
|
511
|
+
}
|
|
512
|
+
protoOf(Module).k2 = function () {
|
|
513
|
+
var tmp0_elvis_lhs = this.t1y_1;
|
|
514
|
+
var tmp;
|
|
515
|
+
if (tmp0_elvis_lhs == null) {
|
|
516
|
+
throw IllegalStateException_init_$Create$('module must have a name.');
|
|
517
|
+
} else {
|
|
518
|
+
tmp = tmp0_elvis_lhs;
|
|
519
|
+
}
|
|
520
|
+
return tmp;
|
|
521
|
+
};
|
|
522
|
+
protoOf(Module).toString = function () {
|
|
523
|
+
return 'Module(allowSilentOverride=' + this.q1y_1 + ', prefix=' + this.r1y_1 + ', init=' + toString_0(this.s1y_1) + ')';
|
|
524
|
+
};
|
|
525
|
+
protoOf(Module).hashCode = function () {
|
|
526
|
+
var result = getBooleanHashCode(this.q1y_1);
|
|
527
|
+
result = imul(result, 31) + getStringHashCode(this.r1y_1) | 0;
|
|
528
|
+
result = imul(result, 31) + hashCode(this.s1y_1) | 0;
|
|
529
|
+
return result;
|
|
530
|
+
};
|
|
531
|
+
protoOf(Module).equals = function (other) {
|
|
532
|
+
if (this === other)
|
|
533
|
+
return true;
|
|
534
|
+
if (!(other instanceof Module))
|
|
535
|
+
return false;
|
|
536
|
+
var tmp0_other_with_cast = other instanceof Module ? other : THROW_CCE();
|
|
537
|
+
if (!(this.q1y_1 === tmp0_other_with_cast.q1y_1))
|
|
538
|
+
return false;
|
|
539
|
+
if (!(this.r1y_1 === tmp0_other_with_cast.r1y_1))
|
|
540
|
+
return false;
|
|
541
|
+
if (!equals(this.s1y_1, tmp0_other_with_cast.s1y_1))
|
|
542
|
+
return false;
|
|
543
|
+
return true;
|
|
544
|
+
};
|
|
545
|
+
function Companion() {
|
|
546
|
+
this.f1z_1 = false;
|
|
547
|
+
this.g1z_1 = false;
|
|
548
|
+
}
|
|
549
|
+
protoOf(Companion).h1z = function (allowSilentOverride, init) {
|
|
550
|
+
return DIImpl_init_$Create$(allowSilentOverride, init);
|
|
551
|
+
};
|
|
552
|
+
protoOf(Companion).i1z = function (allowSilentOverride, init, $super) {
|
|
553
|
+
allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
|
|
554
|
+
return $super === VOID ? this.h1z(allowSilentOverride, init) : $super.h1z.call(this, allowSilentOverride, init);
|
|
555
|
+
};
|
|
556
|
+
var Companion_instance;
|
|
557
|
+
function Companion_getInstance_0() {
|
|
558
|
+
return Companion_instance;
|
|
559
|
+
}
|
|
560
|
+
function DI() {
|
|
561
|
+
}
|
|
562
|
+
function DIAware() {
|
|
563
|
+
}
|
|
564
|
+
function Instance(_this__u8e3s4, type, tag) {
|
|
565
|
+
tag = tag === VOID ? null : tag;
|
|
566
|
+
var tmp = _this__u8e3s4.m1z();
|
|
567
|
+
var tmp_0 = _this__u8e3s4.l1z();
|
|
568
|
+
return new DIProperty(tmp, tmp_0, Instance$lambda(_this__u8e3s4, type, tag));
|
|
569
|
+
}
|
|
570
|
+
function Value(type, value) {
|
|
571
|
+
this.n1z_1 = type;
|
|
572
|
+
this.o1z_1 = value;
|
|
573
|
+
}
|
|
574
|
+
protoOf(Value).p1z = function () {
|
|
575
|
+
return this.n1z_1;
|
|
576
|
+
};
|
|
577
|
+
protoOf(Value).a2 = function () {
|
|
578
|
+
return this.o1z_1;
|
|
579
|
+
};
|
|
580
|
+
protoOf(Value).toString = function () {
|
|
581
|
+
return 'Value(type=' + toString_0(this.n1z_1) + ', value=' + toString_0(this.o1z_1) + ')';
|
|
582
|
+
};
|
|
583
|
+
protoOf(Value).hashCode = function () {
|
|
584
|
+
var result = hashCode(this.n1z_1);
|
|
585
|
+
result = imul(result, 31) + hashCode(this.o1z_1) | 0;
|
|
586
|
+
return result;
|
|
587
|
+
};
|
|
588
|
+
protoOf(Value).equals = function (other) {
|
|
589
|
+
if (this === other)
|
|
590
|
+
return true;
|
|
591
|
+
if (!(other instanceof Value))
|
|
592
|
+
return false;
|
|
593
|
+
var tmp0_other_with_cast = other instanceof Value ? other : THROW_CCE();
|
|
594
|
+
if (!equals(this.n1z_1, tmp0_other_with_cast.n1z_1))
|
|
595
|
+
return false;
|
|
596
|
+
if (!equals(this.o1z_1, tmp0_other_with_cast.o1z_1))
|
|
597
|
+
return false;
|
|
598
|
+
return true;
|
|
599
|
+
};
|
|
600
|
+
function Companion_0() {
|
|
601
|
+
}
|
|
602
|
+
protoOf(Companion_0).q1z = function (type, value) {
|
|
603
|
+
return new Value(type, value);
|
|
604
|
+
};
|
|
605
|
+
var Companion_instance_0;
|
|
606
|
+
function Companion_getInstance_1() {
|
|
607
|
+
return Companion_instance_0;
|
|
608
|
+
}
|
|
609
|
+
function DIContext() {
|
|
610
|
+
}
|
|
611
|
+
function get_AnyDIContext() {
|
|
612
|
+
return Contexes_getInstance().r1z_1;
|
|
613
|
+
}
|
|
614
|
+
function Contexes() {
|
|
615
|
+
Contexes_instance = this;
|
|
616
|
+
this.r1z_1 = Companion_instance_0.q1z(Companion_getInstance().l1x_1, new Object());
|
|
617
|
+
}
|
|
618
|
+
var Contexes_instance;
|
|
619
|
+
function Contexes_getInstance() {
|
|
620
|
+
if (Contexes_instance == null)
|
|
621
|
+
new Contexes();
|
|
622
|
+
return Contexes_instance;
|
|
623
|
+
}
|
|
624
|
+
function On(_this__u8e3s4, context, trigger) {
|
|
625
|
+
context = context === VOID ? _this__u8e3s4.l1z() : context;
|
|
626
|
+
trigger = trigger === VOID ? _this__u8e3s4.m1z() : trigger;
|
|
627
|
+
return DIWrapper_init_$Create$(_this__u8e3s4, context, trigger);
|
|
628
|
+
}
|
|
629
|
+
function DIWrapper_init_$Init$(base, diContext, trigger, $this) {
|
|
630
|
+
diContext = diContext === VOID ? base.l1z() : diContext;
|
|
631
|
+
trigger = trigger === VOID ? base.m1z() : trigger;
|
|
632
|
+
DIWrapper.call($this, base.j1z(), diContext, trigger);
|
|
633
|
+
return $this;
|
|
634
|
+
}
|
|
635
|
+
function DIWrapper_init_$Create$(base, diContext, trigger) {
|
|
636
|
+
return DIWrapper_init_$Init$(base, diContext, trigger, objectCreate(protoOf(DIWrapper)));
|
|
637
|
+
}
|
|
638
|
+
function DIWrapper(_base, diContext, diTrigger) {
|
|
639
|
+
diTrigger = diTrigger === VOID ? null : diTrigger;
|
|
640
|
+
this.s1z_1 = _base;
|
|
641
|
+
this.t1z_1 = diContext;
|
|
642
|
+
this.u1z_1 = diTrigger;
|
|
643
|
+
}
|
|
644
|
+
protoOf(DIWrapper).l1z = function () {
|
|
645
|
+
return this.t1z_1;
|
|
646
|
+
};
|
|
647
|
+
protoOf(DIWrapper).m1z = function () {
|
|
648
|
+
return this.u1z_1;
|
|
649
|
+
};
|
|
650
|
+
protoOf(DIWrapper).j1z = function () {
|
|
651
|
+
return this;
|
|
652
|
+
};
|
|
653
|
+
protoOf(DIWrapper).k1z = function () {
|
|
654
|
+
return this.s1z_1.k1z();
|
|
655
|
+
};
|
|
656
|
+
function Instance$lambda($this_Instance, $type, $tag) {
|
|
657
|
+
return function (ctx, _unused_var__etf5q3) {
|
|
658
|
+
var tmp = $this_Instance.j1z().k1z();
|
|
659
|
+
// Inline function 'org.kodein.di.anyType' call
|
|
660
|
+
var tmp_0 = ctx.p1z();
|
|
661
|
+
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
662
|
+
return tmp.v1z(new Key(tmp$ret$0, Companion_getInstance().k1x_1, $type, $tag), ctx.a2())();
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function DIContainer$provider$lambda($this) {
|
|
666
|
+
return function () {
|
|
667
|
+
// Inline function 'org.kodein.di.DIContainer.provider.<anonymous>' call
|
|
668
|
+
return $this(Unit_instance);
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
function DIContainer() {
|
|
672
|
+
}
|
|
673
|
+
function DITree() {
|
|
674
|
+
}
|
|
675
|
+
function DirectDIBase() {
|
|
676
|
+
}
|
|
677
|
+
function NoDefinedTag() {
|
|
678
|
+
}
|
|
679
|
+
var NoDefinedTag_instance;
|
|
680
|
+
function NoDefinedTag_getInstance() {
|
|
681
|
+
return NoDefinedTag_instance;
|
|
682
|
+
}
|
|
683
|
+
function SearchSpecs(contextType, argType, type, tag) {
|
|
684
|
+
contextType = contextType === VOID ? null : contextType;
|
|
685
|
+
argType = argType === VOID ? null : argType;
|
|
686
|
+
type = type === VOID ? null : type;
|
|
687
|
+
tag = tag === VOID ? NoDefinedTag_instance : tag;
|
|
688
|
+
this.j20_1 = contextType;
|
|
689
|
+
this.k20_1 = argType;
|
|
690
|
+
this.l20_1 = type;
|
|
691
|
+
this.m20_1 = tag;
|
|
692
|
+
}
|
|
693
|
+
protoOf(SearchSpecs).toString = function () {
|
|
694
|
+
var args = ArrayList_init_$Create$();
|
|
695
|
+
if (!(this.j20_1 == null)) {
|
|
696
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
697
|
+
var tmp9_safe_receiver = this.j20_1;
|
|
698
|
+
var element = 'contextType=' + (tmp9_safe_receiver == null ? null : tmp9_safe_receiver.m1x());
|
|
699
|
+
args.e(element);
|
|
700
|
+
}
|
|
701
|
+
if (!(this.k20_1 == null)) {
|
|
702
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
703
|
+
var tmp10_safe_receiver = this.k20_1;
|
|
704
|
+
var element_0 = 'argType=' + (tmp10_safe_receiver == null ? null : tmp10_safe_receiver.m1x());
|
|
705
|
+
args.e(element_0);
|
|
706
|
+
}
|
|
707
|
+
if (!(this.l20_1 == null)) {
|
|
708
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
709
|
+
var tmp11_safe_receiver = this.l20_1;
|
|
710
|
+
var element_1 = 'type=' + (tmp11_safe_receiver == null ? null : tmp11_safe_receiver.m1x());
|
|
711
|
+
args.e(element_1);
|
|
712
|
+
}
|
|
713
|
+
if (!equals(this.m20_1, NoDefinedTag_instance)) {
|
|
714
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
715
|
+
var element_2 = 'tag=' + toString(this.m20_1);
|
|
716
|
+
args.e(element_2);
|
|
717
|
+
}
|
|
718
|
+
return '[' + joinToString(args, ', ') + ']';
|
|
719
|
+
};
|
|
720
|
+
function NoArgBindingDIWrap(_di) {
|
|
721
|
+
this.n20_1 = _di;
|
|
722
|
+
}
|
|
723
|
+
protoOf(NoArgBindingDIWrap).g20 = function (context) {
|
|
724
|
+
return this.n20_1.g20(context);
|
|
725
|
+
};
|
|
726
|
+
protoOf(NoArgBindingDIWrap).h20 = function (type, tag) {
|
|
727
|
+
return this.n20_1.h20(type, tag);
|
|
728
|
+
};
|
|
729
|
+
protoOf(NoArgBindingDIWrap).f20 = function () {
|
|
730
|
+
return this.n20_1.f20();
|
|
731
|
+
};
|
|
732
|
+
protoOf(NoArgBindingDIWrap).j1z = function () {
|
|
733
|
+
return this.n20_1.j1z();
|
|
734
|
+
};
|
|
735
|
+
protoOf(NoArgBindingDIWrap).i20 = function () {
|
|
736
|
+
return this.n20_1.i20();
|
|
737
|
+
};
|
|
738
|
+
function ErasedContext() {
|
|
739
|
+
}
|
|
740
|
+
protoOf(ErasedContext).p1z = function () {
|
|
741
|
+
return Companion_getInstance().l1x_1;
|
|
742
|
+
};
|
|
743
|
+
protoOf(ErasedContext).a2 = function () {
|
|
744
|
+
return ErasedContext_instance;
|
|
745
|
+
};
|
|
746
|
+
var ErasedContext_instance;
|
|
747
|
+
function ErasedContext_getInstance() {
|
|
748
|
+
return ErasedContext_instance;
|
|
749
|
+
}
|
|
750
|
+
function DIBinding$Copier$Companion$invoke$1($f) {
|
|
751
|
+
this.o20_1 = $f;
|
|
752
|
+
}
|
|
753
|
+
function Companion_1() {
|
|
754
|
+
}
|
|
755
|
+
protoOf(Companion_1).p20 = function (f) {
|
|
756
|
+
return new DIBinding$Copier$Companion$invoke$1(f);
|
|
757
|
+
};
|
|
758
|
+
var Companion_instance_1;
|
|
759
|
+
function Companion_getInstance_2() {
|
|
760
|
+
return Companion_instance_1;
|
|
761
|
+
}
|
|
762
|
+
function DIBinding() {
|
|
763
|
+
}
|
|
764
|
+
function NoArgDIBinding() {
|
|
765
|
+
}
|
|
766
|
+
function SingletonReference$make$lambda($value) {
|
|
767
|
+
return function () {
|
|
768
|
+
return $value;
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
function SingletonReference() {
|
|
772
|
+
}
|
|
773
|
+
protoOf(SingletonReference).w20 = function (creator) {
|
|
774
|
+
var value = creator();
|
|
775
|
+
return new Reference(value, SingletonReference$make$lambda(value));
|
|
776
|
+
};
|
|
777
|
+
var SingletonReference_instance;
|
|
778
|
+
function SingletonReference_getInstance() {
|
|
779
|
+
return SingletonReference_instance;
|
|
780
|
+
}
|
|
781
|
+
function Reference(current, next) {
|
|
782
|
+
this.x20_1 = current;
|
|
783
|
+
this.y20_1 = next;
|
|
784
|
+
}
|
|
785
|
+
protoOf(Reference).zc = function () {
|
|
786
|
+
return this.x20_1;
|
|
787
|
+
};
|
|
788
|
+
protoOf(Reference).ad = function () {
|
|
789
|
+
return this.y20_1;
|
|
790
|
+
};
|
|
791
|
+
protoOf(Reference).toString = function () {
|
|
792
|
+
return 'Reference(current=' + toString_0(this.x20_1) + ', next=' + toString_0(this.y20_1) + ')';
|
|
793
|
+
};
|
|
794
|
+
protoOf(Reference).hashCode = function () {
|
|
795
|
+
var result = hashCode(this.x20_1);
|
|
796
|
+
result = imul(result, 31) + hashCode(this.y20_1) | 0;
|
|
797
|
+
return result;
|
|
798
|
+
};
|
|
799
|
+
protoOf(Reference).equals = function (other) {
|
|
800
|
+
if (this === other)
|
|
801
|
+
return true;
|
|
802
|
+
if (!(other instanceof Reference))
|
|
803
|
+
return false;
|
|
804
|
+
var tmp0_other_with_cast = other instanceof Reference ? other : THROW_CCE();
|
|
805
|
+
if (!equals(this.x20_1, tmp0_other_with_cast.x20_1))
|
|
806
|
+
return false;
|
|
807
|
+
if (!equals(this.y20_1, tmp0_other_with_cast.y20_1))
|
|
808
|
+
return false;
|
|
809
|
+
return true;
|
|
810
|
+
};
|
|
811
|
+
function ContextTranslator() {
|
|
812
|
+
}
|
|
813
|
+
function ScopeRegistry() {
|
|
814
|
+
}
|
|
815
|
+
function NoScope() {
|
|
816
|
+
this.c21_1 = new StandardScopeRegistry();
|
|
817
|
+
}
|
|
818
|
+
protoOf(NoScope).d21 = function (context) {
|
|
819
|
+
return this.c21_1;
|
|
820
|
+
};
|
|
821
|
+
protoOf(NoScope).e21 = function (context) {
|
|
822
|
+
return this.d21((context == null ? true : !(context == null)) ? context : THROW_CCE());
|
|
823
|
+
};
|
|
824
|
+
function StandardScopeRegistry() {
|
|
825
|
+
ScopeRegistry.call(this);
|
|
826
|
+
this.f21_1 = newConcurrentMap();
|
|
827
|
+
this.g21_1 = new Object();
|
|
828
|
+
}
|
|
829
|
+
protoOf(StandardScopeRegistry).b21 = function (key, sync, creator) {
|
|
830
|
+
var tmp$ret$2;
|
|
831
|
+
$l$block_1: {
|
|
832
|
+
// Inline function 'org.kodein.di.internal.synchronizedIfNull' call
|
|
833
|
+
sync && this.g21_1;
|
|
834
|
+
// Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
|
|
835
|
+
var tmp16_safe_receiver = this.f21_1.d2(key);
|
|
836
|
+
var tmp60_safe_receiver = tmp16_safe_receiver == null ? null : tmp16_safe_receiver();
|
|
837
|
+
if (tmp60_safe_receiver == null)
|
|
838
|
+
null;
|
|
839
|
+
else {
|
|
840
|
+
// Inline function 'kotlin.let' call
|
|
841
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
842
|
+
// Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
|
|
843
|
+
tmp$ret$2 = tmp60_safe_receiver;
|
|
844
|
+
break $l$block_1;
|
|
845
|
+
}
|
|
846
|
+
// Inline function 'org.kodein.di.internal.maySynchronized' call
|
|
847
|
+
var tmp$ret$5;
|
|
848
|
+
$l$block_0: {
|
|
849
|
+
// Inline function 'org.kodein.di.internal.synchronizedIfNull.<anonymous>' call
|
|
850
|
+
// Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
|
|
851
|
+
var tmp16_safe_receiver_0 = this.f21_1.d2(key);
|
|
852
|
+
var tmp61_safe_receiver = tmp16_safe_receiver_0 == null ? null : tmp16_safe_receiver_0();
|
|
853
|
+
if (tmp61_safe_receiver == null)
|
|
854
|
+
null;
|
|
855
|
+
else {
|
|
856
|
+
// Inline function 'kotlin.let' call
|
|
857
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
858
|
+
tmp$ret$5 = tmp61_safe_receiver;
|
|
859
|
+
break $l$block_0;
|
|
860
|
+
}
|
|
861
|
+
// Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
|
|
862
|
+
var _destruct__k2r9zo = creator();
|
|
863
|
+
var current = _destruct__k2r9zo.zc();
|
|
864
|
+
var next = _destruct__k2r9zo.ad();
|
|
865
|
+
// Inline function 'kotlin.collections.set' call
|
|
866
|
+
this.f21_1.g2(key, next);
|
|
867
|
+
tmp$ret$2 = current;
|
|
868
|
+
break $l$block_1;
|
|
869
|
+
}
|
|
870
|
+
var value = tmp$ret$5;
|
|
871
|
+
// Inline function 'org.kodein.di.bindings.StandardScopeRegistry.getOrCreate.<anonymous>' call
|
|
872
|
+
tmp$ret$2 = value;
|
|
873
|
+
}
|
|
874
|
+
return tmp$ret$2;
|
|
875
|
+
};
|
|
876
|
+
function toKContext(_this__u8e3s4, di, ctx) {
|
|
877
|
+
var tmp30_safe_receiver = _this__u8e3s4.a21(di, ctx);
|
|
878
|
+
var tmp;
|
|
879
|
+
if (tmp30_safe_receiver == null) {
|
|
880
|
+
tmp = null;
|
|
881
|
+
} else {
|
|
882
|
+
// Inline function 'kotlin.let' call
|
|
883
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
884
|
+
// Inline function 'org.kodein.di.bindings.toKContext.<anonymous>' call
|
|
885
|
+
tmp = Companion_instance_0.q1z(_this__u8e3s4.z20(), tmp30_safe_receiver);
|
|
886
|
+
}
|
|
887
|
+
return tmp;
|
|
888
|
+
}
|
|
889
|
+
function CompositeContextTranslator(src, dst) {
|
|
890
|
+
this.h21_1 = src;
|
|
891
|
+
this.i21_1 = dst;
|
|
892
|
+
}
|
|
893
|
+
protoOf(CompositeContextTranslator).c1z = function () {
|
|
894
|
+
return this.h21_1.c1z();
|
|
895
|
+
};
|
|
896
|
+
protoOf(CompositeContextTranslator).z20 = function () {
|
|
897
|
+
return this.i21_1.z20();
|
|
898
|
+
};
|
|
899
|
+
protoOf(CompositeContextTranslator).a21 = function (di, ctx) {
|
|
900
|
+
var tmp31_safe_receiver = this.h21_1.a21(di, ctx);
|
|
901
|
+
var tmp;
|
|
902
|
+
if (tmp31_safe_receiver == null) {
|
|
903
|
+
tmp = null;
|
|
904
|
+
} else {
|
|
905
|
+
// Inline function 'kotlin.let' call
|
|
906
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
907
|
+
// Inline function 'org.kodein.di.bindings.CompositeContextTranslator.translate.<anonymous>' call
|
|
908
|
+
tmp = this.i21_1.a21(di, tmp31_safe_receiver);
|
|
909
|
+
}
|
|
910
|
+
return tmp;
|
|
911
|
+
};
|
|
912
|
+
protoOf(CompositeContextTranslator).toString = function () {
|
|
913
|
+
return '(' + toString_0(this.h21_1) + ' -> ' + toString_0(this.i21_1) + ')';
|
|
914
|
+
};
|
|
915
|
+
function factoryName($this, params) {
|
|
916
|
+
// Inline function 'kotlin.text.buildString' call
|
|
917
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
918
|
+
// Inline function 'kotlin.apply' call
|
|
919
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
920
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
921
|
+
// Inline function 'org.kodein.di.bindings.Singleton.factoryName.<anonymous>' call
|
|
922
|
+
this_0.f8('singleton');
|
|
923
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
924
|
+
if (!params.p()) {
|
|
925
|
+
this_0.f8(joinToString(params, ', ', '(', ')'));
|
|
926
|
+
}
|
|
927
|
+
return this_0.toString();
|
|
928
|
+
}
|
|
929
|
+
function Singleton$getFactory$lambda$lambda$lambda(this$0, $bindingDi) {
|
|
930
|
+
return function () {
|
|
931
|
+
return this$0.o21_1(new NoArgBindingDIWrap($bindingDi));
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
function Singleton$getFactory$lambda$lambda(this$0, $bindingDi) {
|
|
935
|
+
return function () {
|
|
936
|
+
return this$0.p21_1.w20(Singleton$getFactory$lambda$lambda$lambda(this$0, $bindingDi));
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
function Singleton$getFactory$lambda($lateInitRegistry, this$0, $bindingDi) {
|
|
940
|
+
return function (_unused_var__etf5q3) {
|
|
941
|
+
var tmp0_elvis_lhs = $lateInitRegistry._v;
|
|
942
|
+
var tmp;
|
|
943
|
+
if (tmp0_elvis_lhs == null) {
|
|
944
|
+
// Inline function 'kotlin.also' call
|
|
945
|
+
var this_0 = this$0.j21_1.e21($bindingDi.v8());
|
|
946
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
947
|
+
// Inline function 'org.kodein.di.bindings.Singleton.getFactory.<anonymous>.<anonymous>' call
|
|
948
|
+
$lateInitRegistry._v = this_0;
|
|
949
|
+
tmp = this_0;
|
|
950
|
+
} else {
|
|
951
|
+
tmp = tmp0_elvis_lhs;
|
|
952
|
+
}
|
|
953
|
+
var registry = tmp;
|
|
954
|
+
var tmp_0 = registry.b21(this$0.q21_1, this$0.n21_1, Singleton$getFactory$lambda$lambda(this$0, $bindingDi));
|
|
955
|
+
return !(tmp_0 == null) ? tmp_0 : THROW_CCE();
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
function Singleton$copier$lambda(this$0) {
|
|
959
|
+
return function (it) {
|
|
960
|
+
return new Singleton(this$0.j21_1, this$0.k21_1, this$0.l21_1, this$0.m21_1, this$0.p21_1, this$0.n21_1, this$0.o21_1);
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
function Singleton(scope, contextType, explicitContext, createdType, refMaker, sync, creator) {
|
|
964
|
+
refMaker = refMaker === VOID ? null : refMaker;
|
|
965
|
+
sync = sync === VOID ? true : sync;
|
|
966
|
+
this.j21_1 = scope;
|
|
967
|
+
this.k21_1 = contextType;
|
|
968
|
+
this.l21_1 = explicitContext;
|
|
969
|
+
this.m21_1 = createdType;
|
|
970
|
+
this.n21_1 = sync;
|
|
971
|
+
this.o21_1 = creator;
|
|
972
|
+
var tmp = this;
|
|
973
|
+
tmp.p21_1 = refMaker == null ? SingletonReference_instance : refMaker;
|
|
974
|
+
this.q21_1 = new ScopeKey(new Object(), Unit_instance);
|
|
975
|
+
var tmp_0 = this;
|
|
976
|
+
var tmp_1 = Companion_instance_1;
|
|
977
|
+
tmp_0.r21_1 = tmp_1.p20(Singleton$copier$lambda(this));
|
|
978
|
+
}
|
|
979
|
+
protoOf(Singleton).e1z = function () {
|
|
980
|
+
return this.j21_1;
|
|
981
|
+
};
|
|
982
|
+
protoOf(Singleton).c1z = function () {
|
|
983
|
+
return this.k21_1;
|
|
984
|
+
};
|
|
985
|
+
protoOf(Singleton).t20 = function () {
|
|
986
|
+
return this.m21_1;
|
|
987
|
+
};
|
|
988
|
+
protoOf(Singleton).q20 = function () {
|
|
989
|
+
var params = ArrayList_init_$Create$_0(2);
|
|
990
|
+
if (!equals(this.p21_1, SingletonReference_instance)) {
|
|
991
|
+
params.e('ref = ' + erasedOf(this.p21_1).m1x());
|
|
992
|
+
}
|
|
993
|
+
return factoryName(this, params);
|
|
994
|
+
};
|
|
995
|
+
protoOf(Singleton).r20 = function () {
|
|
996
|
+
var params = ArrayList_init_$Create$_0(2);
|
|
997
|
+
if (!equals(this.p21_1, SingletonReference_instance)) {
|
|
998
|
+
params.e('ref = ' + erasedOf(this.p21_1).o1x());
|
|
999
|
+
}
|
|
1000
|
+
return factoryName(this, params);
|
|
1001
|
+
};
|
|
1002
|
+
protoOf(Singleton).s21 = function (key, di) {
|
|
1003
|
+
var lateInitRegistry = {_v: null};
|
|
1004
|
+
var bindingDi = this.l21_1 ? di : di.t21();
|
|
1005
|
+
return Singleton$getFactory$lambda(lateInitRegistry, this, bindingDi);
|
|
1006
|
+
};
|
|
1007
|
+
protoOf(Singleton).v20 = function (key, di) {
|
|
1008
|
+
return this.s21(key, di);
|
|
1009
|
+
};
|
|
1010
|
+
function Provider$getFactory$lambda(this$0, $di) {
|
|
1011
|
+
return function (_unused_var__etf5q3) {
|
|
1012
|
+
return this$0.w21_1(new NoArgBindingDIWrap($di));
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
function Provider(contextType, createdType, creator) {
|
|
1016
|
+
this.u21_1 = contextType;
|
|
1017
|
+
this.v21_1 = createdType;
|
|
1018
|
+
this.w21_1 = creator;
|
|
1019
|
+
}
|
|
1020
|
+
protoOf(Provider).c1z = function () {
|
|
1021
|
+
return this.u21_1;
|
|
1022
|
+
};
|
|
1023
|
+
protoOf(Provider).t20 = function () {
|
|
1024
|
+
return this.v21_1;
|
|
1025
|
+
};
|
|
1026
|
+
protoOf(Provider).q20 = function () {
|
|
1027
|
+
return 'provider';
|
|
1028
|
+
};
|
|
1029
|
+
protoOf(Provider).s21 = function (key, di) {
|
|
1030
|
+
return Provider$getFactory$lambda(this, di);
|
|
1031
|
+
};
|
|
1032
|
+
protoOf(Provider).v20 = function (key, di) {
|
|
1033
|
+
return this.s21(key, di);
|
|
1034
|
+
};
|
|
1035
|
+
function ScopeKey(scopeId, arg) {
|
|
1036
|
+
this.x21_1 = scopeId;
|
|
1037
|
+
this.y21_1 = arg;
|
|
1038
|
+
}
|
|
1039
|
+
protoOf(ScopeKey).toString = function () {
|
|
1040
|
+
return 'ScopeKey(scopeId=' + toString_0(this.x21_1) + ', arg=' + toString(this.y21_1) + ')';
|
|
1041
|
+
};
|
|
1042
|
+
protoOf(ScopeKey).hashCode = function () {
|
|
1043
|
+
var result = hashCode(this.x21_1);
|
|
1044
|
+
result = imul(result, 31) + (this.y21_1 == null ? 0 : hashCode(this.y21_1)) | 0;
|
|
1045
|
+
return result;
|
|
1046
|
+
};
|
|
1047
|
+
protoOf(ScopeKey).equals = function (other) {
|
|
1048
|
+
if (this === other)
|
|
1049
|
+
return true;
|
|
1050
|
+
if (!(other instanceof ScopeKey))
|
|
1051
|
+
return false;
|
|
1052
|
+
var tmp0_other_with_cast = other instanceof ScopeKey ? other : THROW_CCE();
|
|
1053
|
+
if (!equals(this.x21_1, tmp0_other_with_cast.x21_1))
|
|
1054
|
+
return false;
|
|
1055
|
+
if (!equals(this.y21_1, tmp0_other_with_cast.y21_1))
|
|
1056
|
+
return false;
|
|
1057
|
+
return true;
|
|
1058
|
+
};
|
|
1059
|
+
function DIMainBuilderImpl(allowSilentOverride) {
|
|
1060
|
+
DIBuilderImpl.call(this, null, '', HashSet_init_$Create$(), new DIContainerBuilderImpl(true, allowSilentOverride, HashMap_init_$Create$(), ArrayList_init_$Create$(), ArrayList_init_$Create$()));
|
|
1061
|
+
this.e22_1 = ArrayList_init_$Create$();
|
|
1062
|
+
this.f22_1 = Companion_instance.f1z_1;
|
|
1063
|
+
this.g22_1 = Companion_instance.g1z_1;
|
|
1064
|
+
}
|
|
1065
|
+
protoOf(DIMainBuilderImpl).a20 = function () {
|
|
1066
|
+
return this.e22_1;
|
|
1067
|
+
};
|
|
1068
|
+
protoOf(DIMainBuilderImpl).h22 = function () {
|
|
1069
|
+
return this.f22_1;
|
|
1070
|
+
};
|
|
1071
|
+
protoOf(DIMainBuilderImpl).i22 = function () {
|
|
1072
|
+
return this.g22_1;
|
|
1073
|
+
};
|
|
1074
|
+
function TypeBinder($outer, type, tag, overrides) {
|
|
1075
|
+
this.r22_1 = $outer;
|
|
1076
|
+
this.o22_1 = type;
|
|
1077
|
+
this.p22_1 = tag;
|
|
1078
|
+
this.q22_1 = overrides;
|
|
1079
|
+
}
|
|
1080
|
+
protoOf(TypeBinder).s22 = function () {
|
|
1081
|
+
return this.r22_1.y1y();
|
|
1082
|
+
};
|
|
1083
|
+
protoOf(TypeBinder).t22 = function (binding) {
|
|
1084
|
+
return this.s22().y22(new Key(binding.c1z(), binding.s20(), this.o22_1, this.p22_1), binding, this.r22_1.j22_1, this.q22_1);
|
|
1085
|
+
};
|
|
1086
|
+
function DIBuilderImpl(moduleName, prefix, importedModules, containerBuilder) {
|
|
1087
|
+
this.j22_1 = moduleName;
|
|
1088
|
+
this.k22_1 = prefix;
|
|
1089
|
+
this.l22_1 = importedModules;
|
|
1090
|
+
this.m22_1 = containerBuilder;
|
|
1091
|
+
this.n22_1 = Companion_getInstance().l1x_1;
|
|
1092
|
+
}
|
|
1093
|
+
protoOf(DIBuilderImpl).y1y = function () {
|
|
1094
|
+
return this.m22_1;
|
|
1095
|
+
};
|
|
1096
|
+
protoOf(DIBuilderImpl).c1z = function () {
|
|
1097
|
+
return this.n22_1;
|
|
1098
|
+
};
|
|
1099
|
+
protoOf(DIBuilderImpl).e1z = function () {
|
|
1100
|
+
return new NoScope();
|
|
1101
|
+
};
|
|
1102
|
+
protoOf(DIBuilderImpl).d1z = function () {
|
|
1103
|
+
return false;
|
|
1104
|
+
};
|
|
1105
|
+
protoOf(DIBuilderImpl).z1y = function (type, tag, overrides) {
|
|
1106
|
+
return new TypeBinder(this, type, tag, overrides);
|
|
1107
|
+
};
|
|
1108
|
+
protoOf(DIBuilderImpl).a1z = function (module_0, allowOverride) {
|
|
1109
|
+
var moduleName = this.k22_1 + module_0.k2();
|
|
1110
|
+
var tmp;
|
|
1111
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1112
|
+
if (charSequenceLength(moduleName) > 0) {
|
|
1113
|
+
tmp = this.l22_1.p1(moduleName);
|
|
1114
|
+
} else {
|
|
1115
|
+
tmp = false;
|
|
1116
|
+
}
|
|
1117
|
+
if (tmp) {
|
|
1118
|
+
throw IllegalStateException_init_$Create$('Module "' + moduleName + '" has already been imported!');
|
|
1119
|
+
}
|
|
1120
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1121
|
+
this.l22_1.e(moduleName);
|
|
1122
|
+
// Inline function 'kotlin.apply' call
|
|
1123
|
+
var this_0 = new DIBuilderImpl(moduleName, this.k22_1 + module_0.r1y_1, this.l22_1, this.y1y().z22(allowOverride, module_0.q1y_1));
|
|
1124
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1125
|
+
module_0.s1y_1(this_0);
|
|
1126
|
+
};
|
|
1127
|
+
function DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT() {
|
|
1128
|
+
OverrideMode.call(this, 'ALLOW_SILENT', 0);
|
|
1129
|
+
OverrideMode_ALLOW_SILENT_instance = this;
|
|
1130
|
+
}
|
|
1131
|
+
protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT).c23 = function () {
|
|
1132
|
+
return true;
|
|
1133
|
+
};
|
|
1134
|
+
protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT).d23 = function (overrides) {
|
|
1135
|
+
return overrides;
|
|
1136
|
+
};
|
|
1137
|
+
var OverrideMode_ALLOW_SILENT_instance;
|
|
1138
|
+
function DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT() {
|
|
1139
|
+
OverrideMode.call(this, 'ALLOW_EXPLICIT', 1);
|
|
1140
|
+
OverrideMode_ALLOW_EXPLICIT_instance = this;
|
|
1141
|
+
}
|
|
1142
|
+
protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT).c23 = function () {
|
|
1143
|
+
return true;
|
|
1144
|
+
};
|
|
1145
|
+
protoOf(DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT).d23 = function (overrides) {
|
|
1146
|
+
return overrides == null ? false : overrides;
|
|
1147
|
+
};
|
|
1148
|
+
var OverrideMode_ALLOW_EXPLICIT_instance;
|
|
1149
|
+
function DIContainerBuilderImpl$OverrideMode$FORBID() {
|
|
1150
|
+
OverrideMode.call(this, 'FORBID', 2);
|
|
1151
|
+
OverrideMode_FORBID_instance = this;
|
|
1152
|
+
}
|
|
1153
|
+
protoOf(DIContainerBuilderImpl$OverrideMode$FORBID).c23 = function () {
|
|
1154
|
+
return false;
|
|
1155
|
+
};
|
|
1156
|
+
protoOf(DIContainerBuilderImpl$OverrideMode$FORBID).d23 = function (overrides) {
|
|
1157
|
+
var tmp;
|
|
1158
|
+
if (!(overrides == null) && overrides) {
|
|
1159
|
+
throw new OverridingException('Overriding has been forbidden');
|
|
1160
|
+
} else {
|
|
1161
|
+
tmp = false;
|
|
1162
|
+
}
|
|
1163
|
+
return tmp;
|
|
1164
|
+
};
|
|
1165
|
+
var OverrideMode_FORBID_instance;
|
|
1166
|
+
function Companion_2() {
|
|
1167
|
+
}
|
|
1168
|
+
protoOf(Companion_2).i23 = function (allow, silent) {
|
|
1169
|
+
if (!allow)
|
|
1170
|
+
return OverrideMode_FORBID_getInstance();
|
|
1171
|
+
if (silent)
|
|
1172
|
+
return OverrideMode_ALLOW_SILENT_getInstance();
|
|
1173
|
+
return OverrideMode_ALLOW_EXPLICIT_getInstance();
|
|
1174
|
+
};
|
|
1175
|
+
var Companion_instance_2;
|
|
1176
|
+
function Companion_getInstance_3() {
|
|
1177
|
+
return Companion_instance_2;
|
|
1178
|
+
}
|
|
1179
|
+
var OverrideMode_entriesInitialized;
|
|
1180
|
+
function OverrideMode_initEntries() {
|
|
1181
|
+
if (OverrideMode_entriesInitialized)
|
|
1182
|
+
return Unit_instance;
|
|
1183
|
+
OverrideMode_entriesInitialized = true;
|
|
1184
|
+
OverrideMode_ALLOW_SILENT_instance = new DIContainerBuilderImpl$OverrideMode$ALLOW_SILENT();
|
|
1185
|
+
OverrideMode_ALLOW_EXPLICIT_instance = new DIContainerBuilderImpl$OverrideMode$ALLOW_EXPLICIT();
|
|
1186
|
+
OverrideMode_FORBID_instance = new DIContainerBuilderImpl$OverrideMode$FORBID();
|
|
1187
|
+
}
|
|
1188
|
+
function OverrideMode(name, ordinal) {
|
|
1189
|
+
Enum.call(this, name, ordinal);
|
|
1190
|
+
}
|
|
1191
|
+
function checkOverrides($this, key, overrides) {
|
|
1192
|
+
var mustOverride = $this.x22_1.d23(overrides);
|
|
1193
|
+
if (!(mustOverride == null)) {
|
|
1194
|
+
var tmp;
|
|
1195
|
+
if (mustOverride) {
|
|
1196
|
+
// Inline function 'kotlin.collections.contains' call
|
|
1197
|
+
// Inline function 'kotlin.collections.containsKey' call
|
|
1198
|
+
var this_0 = $this.u22_1;
|
|
1199
|
+
tmp = !(isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).b2(key);
|
|
1200
|
+
} else {
|
|
1201
|
+
tmp = false;
|
|
1202
|
+
}
|
|
1203
|
+
if (tmp)
|
|
1204
|
+
throw new OverridingException('Binding ' + key.toString() + ' must override an existing binding.');
|
|
1205
|
+
var tmp_0;
|
|
1206
|
+
if (!mustOverride) {
|
|
1207
|
+
// Inline function 'kotlin.collections.contains' call
|
|
1208
|
+
// Inline function 'kotlin.collections.containsKey' call
|
|
1209
|
+
var this_1 = $this.u22_1;
|
|
1210
|
+
tmp_0 = (isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).b2(key);
|
|
1211
|
+
} else {
|
|
1212
|
+
tmp_0 = false;
|
|
1213
|
+
}
|
|
1214
|
+
if (tmp_0)
|
|
1215
|
+
throw new OverridingException('Binding ' + key.toString() + ' must not override an existing binding.');
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
function checkMatch($this, allowOverride) {
|
|
1219
|
+
if (!$this.x22_1.c23() && allowOverride)
|
|
1220
|
+
throw new OverridingException('Overriding has been forbidden');
|
|
1221
|
+
}
|
|
1222
|
+
function OverrideMode_ALLOW_SILENT_getInstance() {
|
|
1223
|
+
OverrideMode_initEntries();
|
|
1224
|
+
return OverrideMode_ALLOW_SILENT_instance;
|
|
1225
|
+
}
|
|
1226
|
+
function OverrideMode_ALLOW_EXPLICIT_getInstance() {
|
|
1227
|
+
OverrideMode_initEntries();
|
|
1228
|
+
return OverrideMode_ALLOW_EXPLICIT_instance;
|
|
1229
|
+
}
|
|
1230
|
+
function OverrideMode_FORBID_getInstance() {
|
|
1231
|
+
OverrideMode_initEntries();
|
|
1232
|
+
return OverrideMode_FORBID_instance;
|
|
1233
|
+
}
|
|
1234
|
+
function DIContainerBuilderImpl(allowOverride, silentOverride, bindingsMap, callbacks, translators) {
|
|
1235
|
+
this.u22_1 = bindingsMap;
|
|
1236
|
+
this.v22_1 = callbacks;
|
|
1237
|
+
this.w22_1 = translators;
|
|
1238
|
+
this.x22_1 = Companion_instance_2.i23(allowOverride, silentOverride);
|
|
1239
|
+
}
|
|
1240
|
+
protoOf(DIContainerBuilderImpl).y22 = function (key, binding, fromModule, overrides) {
|
|
1241
|
+
checkOverrides(this, key, overrides);
|
|
1242
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
1243
|
+
var this_0 = this.u22_1;
|
|
1244
|
+
var value = this_0.d2(key);
|
|
1245
|
+
var tmp;
|
|
1246
|
+
if (value == null) {
|
|
1247
|
+
// Inline function 'org.kodein.di.internal.DIContainerBuilderImpl.bind.<anonymous>' call
|
|
1248
|
+
var answer = newLinkedList();
|
|
1249
|
+
this_0.g2(key, answer);
|
|
1250
|
+
tmp = answer;
|
|
1251
|
+
} else {
|
|
1252
|
+
tmp = value;
|
|
1253
|
+
}
|
|
1254
|
+
var bindings = tmp;
|
|
1255
|
+
bindings.x1(0, new DIDefining(isInterface(binding, DIBinding) ? binding : THROW_CCE(), fromModule));
|
|
1256
|
+
};
|
|
1257
|
+
protoOf(DIContainerBuilderImpl).z22 = function (allowOverride, silentOverride) {
|
|
1258
|
+
checkMatch(this, allowOverride);
|
|
1259
|
+
return new DIContainerBuilderImpl(allowOverride, silentOverride, this.u22_1, this.v22_1, this.w22_1);
|
|
1260
|
+
};
|
|
1261
|
+
function displayString($this, key, overrideLevel) {
|
|
1262
|
+
var descProp = $this.o23_1 ? bindFullDescription$factory_0(key) : bindDescription$factory_0(key);
|
|
1263
|
+
return !(overrideLevel === 0) ? 'overridden ' + descProp.get() : descProp.get();
|
|
1264
|
+
}
|
|
1265
|
+
function recursiveLoop($this, node, firstKey, firstOverrideLevel, tail) {
|
|
1266
|
+
var $this_0 = $this;
|
|
1267
|
+
var node_0 = node;
|
|
1268
|
+
var firstKey_0 = firstKey;
|
|
1269
|
+
var firstOverrideLevel_0 = firstOverrideLevel;
|
|
1270
|
+
var tail_0 = tail;
|
|
1271
|
+
$l$1: do {
|
|
1272
|
+
$l$0: do {
|
|
1273
|
+
var tmp;
|
|
1274
|
+
if (node_0.n23_1 == null || (firstKey_0.equals(node_0.l23_1) && firstOverrideLevel_0 === node_0.m23_1)) {
|
|
1275
|
+
tmp = plus(listOf(displayString($this_0, node_0.l23_1, node_0.m23_1)), tail_0);
|
|
1276
|
+
} else {
|
|
1277
|
+
var tmp0 = $this_0;
|
|
1278
|
+
var tmp4 = plus(listOf(displayString($this_0, node_0.l23_1, node_0.m23_1)), tail_0);
|
|
1279
|
+
$this_0 = tmp0;
|
|
1280
|
+
node_0 = node_0.n23_1;
|
|
1281
|
+
firstKey_0 = firstKey_0;
|
|
1282
|
+
firstOverrideLevel_0 = firstOverrideLevel_0;
|
|
1283
|
+
tail_0 = tmp4;
|
|
1284
|
+
continue $l$0;
|
|
1285
|
+
}
|
|
1286
|
+
return tmp;
|
|
1287
|
+
}
|
|
1288
|
+
while (false);
|
|
1289
|
+
}
|
|
1290
|
+
while (true);
|
|
1291
|
+
}
|
|
1292
|
+
function recursiveCheck($this, node, searchedKey, searchedOverrideLevel) {
|
|
1293
|
+
var $this_0 = $this;
|
|
1294
|
+
var node_0 = node;
|
|
1295
|
+
var searchedKey_0 = searchedKey;
|
|
1296
|
+
var searchedOverrideLevel_0 = searchedOverrideLevel;
|
|
1297
|
+
$l$1: do {
|
|
1298
|
+
$l$0: do {
|
|
1299
|
+
var tmp;
|
|
1300
|
+
if (node_0.l23_1.equals(searchedKey_0) && node_0.m23_1 === searchedOverrideLevel_0) {
|
|
1301
|
+
tmp = false;
|
|
1302
|
+
} else if (node_0.n23_1 == null) {
|
|
1303
|
+
tmp = true;
|
|
1304
|
+
} else {
|
|
1305
|
+
$this_0 = $this_0;
|
|
1306
|
+
node_0 = node_0.n23_1;
|
|
1307
|
+
searchedKey_0 = searchedKey_0;
|
|
1308
|
+
searchedOverrideLevel_0 = searchedOverrideLevel_0;
|
|
1309
|
+
continue $l$0;
|
|
1310
|
+
}
|
|
1311
|
+
return tmp;
|
|
1312
|
+
}
|
|
1313
|
+
while (false);
|
|
1314
|
+
}
|
|
1315
|
+
while (true);
|
|
1316
|
+
}
|
|
1317
|
+
function DIContainerImpl_init_$Init$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks, $this) {
|
|
1318
|
+
DIContainerImpl.call($this, new DITreeImpl(builder.u22_1, externalSources, builder.w22_1), null, fullDescriptionOnError, fullContainerTreeOnError);
|
|
1319
|
+
var init = DIContainerImpl$_init_$lambda_r6ib3j($this, builder);
|
|
1320
|
+
if (runCallbacks)
|
|
1321
|
+
init();
|
|
1322
|
+
else {
|
|
1323
|
+
var lock = new Object();
|
|
1324
|
+
var tmp = $this;
|
|
1325
|
+
tmp.t23_1 = DIContainerImpl$_init_$lambda_r6ib3j_0(lock, $this, init);
|
|
1326
|
+
}
|
|
1327
|
+
return $this;
|
|
1328
|
+
}
|
|
1329
|
+
function DIContainerImpl_init_$Create$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks) {
|
|
1330
|
+
return DIContainerImpl_init_$Init$(builder, externalSources, fullDescriptionOnError, fullContainerTreeOnError, runCallbacks, objectCreate(protoOf(DIContainerImpl)));
|
|
1331
|
+
}
|
|
1332
|
+
function Node(key, overrideLevel, parent, fullDescriptionOnError) {
|
|
1333
|
+
this.l23_1 = key;
|
|
1334
|
+
this.m23_1 = overrideLevel;
|
|
1335
|
+
this.n23_1 = parent;
|
|
1336
|
+
this.o23_1 = fullDescriptionOnError;
|
|
1337
|
+
}
|
|
1338
|
+
protoOf(Node).u23 = function (searchedKey, searchedOverrideLevel) {
|
|
1339
|
+
if (!recursiveCheck(this, this, searchedKey, searchedOverrideLevel)) {
|
|
1340
|
+
var list = plus_0(recursiveLoop(this, this, searchedKey, searchedOverrideLevel, emptyList()), displayString(this, searchedKey, this.m23_1));
|
|
1341
|
+
var sb = StringBuilder_init_$Create$();
|
|
1342
|
+
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
1343
|
+
var index = 0;
|
|
1344
|
+
var tmp0_iterator = list.j();
|
|
1345
|
+
while (tmp0_iterator.k()) {
|
|
1346
|
+
var item = tmp0_iterator.l();
|
|
1347
|
+
// Inline function 'org.kodein.di.internal.Node.check.<anonymous>' call
|
|
1348
|
+
var tmp1 = index;
|
|
1349
|
+
index = tmp1 + 1 | 0;
|
|
1350
|
+
var index_0 = checkIndexOverflow(tmp1);
|
|
1351
|
+
sb.f8(' ');
|
|
1352
|
+
switch (index_0) {
|
|
1353
|
+
case 0:
|
|
1354
|
+
sb.f8(' ');
|
|
1355
|
+
break;
|
|
1356
|
+
case 1:
|
|
1357
|
+
sb.f8(' \u2554\u2569>');
|
|
1358
|
+
break;
|
|
1359
|
+
default:
|
|
1360
|
+
sb.f8(' \u2551');
|
|
1361
|
+
sb.f8(repeat(' ', index_0 - 1 | 0));
|
|
1362
|
+
sb.f8('\u255A>');
|
|
1363
|
+
break;
|
|
1364
|
+
}
|
|
1365
|
+
sb.f8(item);
|
|
1366
|
+
sb.f8('\n');
|
|
1367
|
+
}
|
|
1368
|
+
sb.f8(' \u255A');
|
|
1369
|
+
sb.f8(repeat('\u2550\u2550', list.m() - 1 | 0));
|
|
1370
|
+
sb.f8('\u255D');
|
|
1371
|
+
throw new DependencyLoopException('Dependency recursion:\n' + sb.toString());
|
|
1372
|
+
}
|
|
1373
|
+
};
|
|
1374
|
+
function bindingDI($this, key, context, tree, overrideLevel) {
|
|
1375
|
+
var container = new DIContainerImpl(tree, new Node(key, overrideLevel, $this.q23_1, $this.r23_1), $this.r23_1, $this.s23_1);
|
|
1376
|
+
return new BindingDIImpl(createDirectDI(container, context), key, overrideLevel);
|
|
1377
|
+
}
|
|
1378
|
+
function DIContainerImpl$_init_$lambda_r6ib3j(this$0, $builder) {
|
|
1379
|
+
return function () {
|
|
1380
|
+
var direct = createDirectDI(this$0, get_AnyDIContext());
|
|
1381
|
+
var tmp0_iterator = $builder.v22_1.j();
|
|
1382
|
+
while (tmp0_iterator.k()) {
|
|
1383
|
+
var element = tmp0_iterator.l();
|
|
1384
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
|
|
1385
|
+
element(direct);
|
|
1386
|
+
}
|
|
1387
|
+
return Unit_instance;
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
function DIContainerImpl$_init_$lambda_r6ib3j_0($lock, this$0, $init) {
|
|
1391
|
+
return function () {
|
|
1392
|
+
$l$block_1: {
|
|
1393
|
+
// Inline function 'org.kodein.di.internal.synchronizedIfNotNull' call
|
|
1394
|
+
if (this$0.t23_1 == null) {
|
|
1395
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
|
|
1396
|
+
break $l$block_1;
|
|
1397
|
+
}
|
|
1398
|
+
// Inline function 'org.kodein.di.internal.maySynchronized' call
|
|
1399
|
+
$l$block_0: {
|
|
1400
|
+
// Inline function 'org.kodein.di.internal.synchronizedIfNotNull.<anonymous>' call
|
|
1401
|
+
var tmp0_elvis_lhs = this$0.t23_1;
|
|
1402
|
+
var tmp;
|
|
1403
|
+
if (tmp0_elvis_lhs == null) {
|
|
1404
|
+
break $l$block_0;
|
|
1405
|
+
} else {
|
|
1406
|
+
tmp = tmp0_elvis_lhs;
|
|
1407
|
+
}
|
|
1408
|
+
var value = tmp;
|
|
1409
|
+
this$0.t23_1 = null;
|
|
1410
|
+
$init();
|
|
1411
|
+
break $l$block_1;
|
|
1412
|
+
}
|
|
1413
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.<init>.<anonymous>.<anonymous>' call
|
|
1414
|
+
}
|
|
1415
|
+
return Unit_instance;
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
function DIContainerImpl$factory$lambda(_this__u8e3s4, it) {
|
|
1419
|
+
return fullDescription(_this__u8e3s4, it);
|
|
1420
|
+
}
|
|
1421
|
+
function DIContainerImpl$factory$lambda_0(_this__u8e3s4, it) {
|
|
1422
|
+
return description(_this__u8e3s4, it);
|
|
1423
|
+
}
|
|
1424
|
+
function DIContainerImpl(tree, node, fullDescriptionOnError, fullContainerTreeOnError) {
|
|
1425
|
+
this.p23_1 = tree;
|
|
1426
|
+
this.q23_1 = node;
|
|
1427
|
+
this.r23_1 = fullDescriptionOnError;
|
|
1428
|
+
this.s23_1 = fullContainerTreeOnError;
|
|
1429
|
+
this.t23_1 = null;
|
|
1430
|
+
}
|
|
1431
|
+
protoOf(DIContainerImpl).w1z = function (key, context, overrideLevel) {
|
|
1432
|
+
var result = this.p23_1.c20(key, overrideLevel);
|
|
1433
|
+
if (result.m() === 1) {
|
|
1434
|
+
var _destruct__k2r9zo = result.o(0);
|
|
1435
|
+
var definition = _destruct__k2r9zo.ad();
|
|
1436
|
+
var translator = _destruct__k2r9zo.sg();
|
|
1437
|
+
var tmp44_safe_receiver = this.q23_1;
|
|
1438
|
+
if (tmp44_safe_receiver == null)
|
|
1439
|
+
null;
|
|
1440
|
+
else {
|
|
1441
|
+
tmp44_safe_receiver.u23(key, overrideLevel);
|
|
1442
|
+
}
|
|
1443
|
+
var tmp = Companion_instance_0.q1z(key.h1y_1, context);
|
|
1444
|
+
var originalContext = isInterface(tmp, DIContext) ? tmp : THROW_CCE();
|
|
1445
|
+
var tmp0_elvis_lhs = translator == null ? null : toKContext(translator, createDirectDI(this, originalContext), context);
|
|
1446
|
+
var kContext = tmp0_elvis_lhs == null ? originalContext : tmp0_elvis_lhs;
|
|
1447
|
+
if (!(key instanceof Key))
|
|
1448
|
+
THROW_CCE();
|
|
1449
|
+
var bindingDI_0 = bindingDI(this, key, kContext, definition.e1y_1, overrideLevel);
|
|
1450
|
+
return definition.f1y_1.v20(key, bindingDI_0);
|
|
1451
|
+
}
|
|
1452
|
+
var bindingDI_1 = bindingDI(this, key, Companion_instance_0.q1z(key.h1y_1, context), this.p23_1, overrideLevel);
|
|
1453
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1454
|
+
var tmp0_iterator = this.p23_1.a20().j();
|
|
1455
|
+
while (tmp0_iterator.k()) {
|
|
1456
|
+
var element = tmp0_iterator.l();
|
|
1457
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
|
|
1458
|
+
var tmp46_safe_receiver = element.v23(bindingDI_1, key);
|
|
1459
|
+
if (tmp46_safe_receiver == null)
|
|
1460
|
+
null;
|
|
1461
|
+
else {
|
|
1462
|
+
// Inline function 'kotlin.let' call
|
|
1463
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1464
|
+
var tmp47_safe_receiver = this.q23_1;
|
|
1465
|
+
if (tmp47_safe_receiver == null)
|
|
1466
|
+
null;
|
|
1467
|
+
else {
|
|
1468
|
+
tmp47_safe_receiver.u23(key, overrideLevel);
|
|
1469
|
+
}
|
|
1470
|
+
return (!(tmp46_safe_receiver == null) ? typeof tmp46_safe_receiver === 'function' : false) ? tmp46_safe_receiver : THROW_CCE();
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
var withOverrides = !(overrideLevel === 0);
|
|
1474
|
+
var descProp = this.r23_1 ? fullDescription$factory_0(key) : description$factory_0(key);
|
|
1475
|
+
var tmp_0;
|
|
1476
|
+
if (this.r23_1) {
|
|
1477
|
+
tmp_0 = DIContainerImpl$factory$lambda;
|
|
1478
|
+
} else {
|
|
1479
|
+
tmp_0 = DIContainerImpl$factory$lambda_0;
|
|
1480
|
+
}
|
|
1481
|
+
var descFun = tmp_0;
|
|
1482
|
+
if (result.p()) {
|
|
1483
|
+
// Inline function 'kotlin.text.buildString' call
|
|
1484
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1485
|
+
// Inline function 'kotlin.apply' call
|
|
1486
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
1487
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1488
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
|
|
1489
|
+
this_0.f8('No binding found for ' + descProp.get());
|
|
1490
|
+
if (this.s23_1) {
|
|
1491
|
+
// Inline function 'kotlin.text.appendLine' call
|
|
1492
|
+
this_0.g8(_Char___init__impl__6a9atx(10));
|
|
1493
|
+
var forType = this.p23_1.d20(new SearchSpecs(VOID, VOID, key.j1y_1));
|
|
1494
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1495
|
+
if (!forType.p()) {
|
|
1496
|
+
// Inline function 'kotlin.collections.associate' call
|
|
1497
|
+
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(forType, 10)), 16);
|
|
1498
|
+
// Inline function 'kotlin.collections.associateTo' call
|
|
1499
|
+
var destination = LinkedHashMap_init_$Create$_0(capacity);
|
|
1500
|
+
var tmp0_iterator_0 = forType.j();
|
|
1501
|
+
while (tmp0_iterator_0.k()) {
|
|
1502
|
+
var element_0 = tmp0_iterator_0.l();
|
|
1503
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1504
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>.<anonymous>' call
|
|
1505
|
+
var pair = to(element_0.pg_1, element_0.qg_1);
|
|
1506
|
+
destination.g2(pair.xc_1, pair.yc_1);
|
|
1507
|
+
}
|
|
1508
|
+
this_0.f8('Available bindings for this type:\n' + descFun(destination, withOverrides));
|
|
1509
|
+
}
|
|
1510
|
+
this_0.f8('Registered in this DI container:\n' + descFun(this.p23_1.z1z(), withOverrides));
|
|
1511
|
+
}
|
|
1512
|
+
var description = this_0.toString();
|
|
1513
|
+
throw new NotFoundException(key, description);
|
|
1514
|
+
}
|
|
1515
|
+
// Inline function 'kotlin.collections.associate' call
|
|
1516
|
+
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(result, 10)), 16);
|
|
1517
|
+
// Inline function 'kotlin.collections.associateTo' call
|
|
1518
|
+
var destination_0 = LinkedHashMap_init_$Create$_0(capacity_0);
|
|
1519
|
+
var tmp0_iterator_1 = result.j();
|
|
1520
|
+
while (tmp0_iterator_1.k()) {
|
|
1521
|
+
var element_1 = tmp0_iterator_1.l();
|
|
1522
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1523
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
|
|
1524
|
+
var pair_0 = to(element_1.pg_1, ensureNotNull(this.p23_1.e20(element_1.pg_1)).qg_1);
|
|
1525
|
+
destination_0.g2(pair_0.xc_1, pair_0.yc_1);
|
|
1526
|
+
}
|
|
1527
|
+
var potentials = destination_0;
|
|
1528
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1529
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1530
|
+
var this_1 = this.p23_1.z1z();
|
|
1531
|
+
var destination_1 = LinkedHashMap_init_$Create$();
|
|
1532
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1533
|
+
var tmp0_iterator_2 = this_1.s().j();
|
|
1534
|
+
while (tmp0_iterator_2.k()) {
|
|
1535
|
+
var element_2 = tmp0_iterator_2.l();
|
|
1536
|
+
// Inline function 'org.kodein.di.internal.DIContainerImpl.factory.<anonymous>' call
|
|
1537
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1538
|
+
var key_0 = element_2.z1();
|
|
1539
|
+
if (!potentials.e2().p1(key_0)) {
|
|
1540
|
+
destination_1.g2(element_2.z1(), element_2.a2());
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
var others = destination_1;
|
|
1544
|
+
throw new NotFoundException(key, '' + potentials.m() + ' bindings found that match ' + key.toString() + ':\n' + descFun(potentials, withOverrides) + 'Other bindings registered in DI:\n' + descFun(others, withOverrides));
|
|
1545
|
+
};
|
|
1546
|
+
function bindFullDescription$factory_0($b0) {
|
|
1547
|
+
return getPropertyCallableRef('bindFullDescription', 0, KProperty0, function () {
|
|
1548
|
+
return $b0.o1y();
|
|
1549
|
+
}, null);
|
|
1550
|
+
}
|
|
1551
|
+
function bindDescription$factory_0($b0) {
|
|
1552
|
+
return getPropertyCallableRef('bindDescription', 0, KProperty0, function () {
|
|
1553
|
+
return $b0.m1y();
|
|
1554
|
+
}, null);
|
|
1555
|
+
}
|
|
1556
|
+
function fullDescription$factory_0($b0) {
|
|
1557
|
+
return getPropertyCallableRef('fullDescription', 0, KProperty0, function () {
|
|
1558
|
+
return $b0.p1y();
|
|
1559
|
+
}, null);
|
|
1560
|
+
}
|
|
1561
|
+
function description$factory_0($b0) {
|
|
1562
|
+
return getPropertyCallableRef('description', 0, KProperty0, function () {
|
|
1563
|
+
return $b0.n1y();
|
|
1564
|
+
}, null);
|
|
1565
|
+
}
|
|
1566
|
+
function newBuilder($this, allowSilentOverride, init) {
|
|
1567
|
+
// Inline function 'kotlin.apply' call
|
|
1568
|
+
var this_0 = new DIMainBuilderImpl(allowSilentOverride);
|
|
1569
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1570
|
+
init(this_0);
|
|
1571
|
+
return this_0;
|
|
1572
|
+
}
|
|
1573
|
+
function DIImpl_init_$Init$(builder, runCallbacks, $this) {
|
|
1574
|
+
DIImpl.call($this, DIContainerImpl_init_$Create$(builder.y1y(), builder.a20(), builder.h22(), builder.i22(), runCallbacks));
|
|
1575
|
+
return $this;
|
|
1576
|
+
}
|
|
1577
|
+
function DIImpl_init_$Init$_0(allowSilentOverride, init, $this) {
|
|
1578
|
+
allowSilentOverride = allowSilentOverride === VOID ? false : allowSilentOverride;
|
|
1579
|
+
DIImpl_init_$Init$(newBuilder(Companion_instance_3, allowSilentOverride, init), true, $this);
|
|
1580
|
+
return $this;
|
|
1581
|
+
}
|
|
1582
|
+
function DIImpl_init_$Create$(allowSilentOverride, init) {
|
|
1583
|
+
return DIImpl_init_$Init$_0(allowSilentOverride, init, objectCreate(protoOf(DIImpl)));
|
|
1584
|
+
}
|
|
1585
|
+
function Companion_3() {
|
|
1586
|
+
}
|
|
1587
|
+
var Companion_instance_3;
|
|
1588
|
+
function Companion_getInstance_4() {
|
|
1589
|
+
return Companion_instance_3;
|
|
1590
|
+
}
|
|
1591
|
+
function DIImpl$container$delegate$lambda(this$0) {
|
|
1592
|
+
return function () {
|
|
1593
|
+
var tmp;
|
|
1594
|
+
if (!(this$0.w23_1.t23_1 == null)) {
|
|
1595
|
+
throw IllegalStateException_init_$Create$('DI has not been initialized');
|
|
1596
|
+
}
|
|
1597
|
+
return this$0.w23_1;
|
|
1598
|
+
};
|
|
1599
|
+
}
|
|
1600
|
+
function DIImpl(_container) {
|
|
1601
|
+
this.w23_1 = _container;
|
|
1602
|
+
var tmp = this;
|
|
1603
|
+
tmp.x23_1 = lazy(DIImpl$container$delegate$lambda(this));
|
|
1604
|
+
}
|
|
1605
|
+
protoOf(DIImpl).k1z = function () {
|
|
1606
|
+
// Inline function 'kotlin.getValue' call
|
|
1607
|
+
var this_0 = this.x23_1;
|
|
1608
|
+
container$factory();
|
|
1609
|
+
return this_0.a2();
|
|
1610
|
+
};
|
|
1611
|
+
function BindingDIImpl(directDI, key, overrideLevel) {
|
|
1612
|
+
this.y23_1 = directDI;
|
|
1613
|
+
this.z23_1 = key;
|
|
1614
|
+
this.a24_1 = overrideLevel;
|
|
1615
|
+
}
|
|
1616
|
+
protoOf(BindingDIImpl).i20 = function () {
|
|
1617
|
+
return this.y23_1;
|
|
1618
|
+
};
|
|
1619
|
+
protoOf(BindingDIImpl).g20 = function (context) {
|
|
1620
|
+
return this.y23_1.g20(context);
|
|
1621
|
+
};
|
|
1622
|
+
protoOf(BindingDIImpl).h20 = function (type, tag) {
|
|
1623
|
+
return this.y23_1.h20(type, tag);
|
|
1624
|
+
};
|
|
1625
|
+
protoOf(BindingDIImpl).f20 = function () {
|
|
1626
|
+
return this.y23_1.f20();
|
|
1627
|
+
};
|
|
1628
|
+
protoOf(BindingDIImpl).j1z = function () {
|
|
1629
|
+
return this.y23_1.j1z();
|
|
1630
|
+
};
|
|
1631
|
+
protoOf(BindingDIImpl).v8 = function () {
|
|
1632
|
+
var tmp = this.i20().j1z().l1z().a2();
|
|
1633
|
+
return !(tmp == null) ? tmp : THROW_CCE();
|
|
1634
|
+
};
|
|
1635
|
+
protoOf(BindingDIImpl).t21 = function () {
|
|
1636
|
+
return new BindingDIImpl(this.i20().g20(ErasedContext_instance), this.z23_1, this.a24_1);
|
|
1637
|
+
};
|
|
1638
|
+
function container$factory() {
|
|
1639
|
+
return getPropertyCallableRef('container', 1, KProperty1, function (receiver) {
|
|
1640
|
+
return receiver.k1z();
|
|
1641
|
+
}, null);
|
|
1642
|
+
}
|
|
1643
|
+
function findBySpecs($this, specs) {
|
|
1644
|
+
var bindSeq = asSequence($this.e24_1);
|
|
1645
|
+
var specsBindType = specs.l20_1;
|
|
1646
|
+
if (!(specsBindType == null) && !equals(specsBindType, Companion_getInstance().l1x_1)) {
|
|
1647
|
+
var tmp = bindSeq;
|
|
1648
|
+
bindSeq = filter(tmp, DITreeImpl$findBySpecs$lambda(specsBindType));
|
|
1649
|
+
}
|
|
1650
|
+
var tmp_0 = bindSeq;
|
|
1651
|
+
var contextSeq = flatMap(tmp_0, DITreeImpl$findBySpecs$lambda_0);
|
|
1652
|
+
var specsContextType = specs.j20_1;
|
|
1653
|
+
if (!(specsContextType == null)) {
|
|
1654
|
+
var tmp_1 = contextSeq;
|
|
1655
|
+
contextSeq = mapNotNull(tmp_1, DITreeImpl$findBySpecs$lambda_1(specsContextType, $this));
|
|
1656
|
+
}
|
|
1657
|
+
var tmp_2 = contextSeq;
|
|
1658
|
+
var argSeq = flatMap(tmp_2, DITreeImpl$findBySpecs$lambda_2);
|
|
1659
|
+
var specsArgType = specs.k20_1;
|
|
1660
|
+
if (!(specsArgType == null)) {
|
|
1661
|
+
var tmp_3 = argSeq;
|
|
1662
|
+
argSeq = filter(tmp_3, DITreeImpl$findBySpecs$lambda_3(specsArgType));
|
|
1663
|
+
}
|
|
1664
|
+
var tmp_4 = argSeq;
|
|
1665
|
+
var tagSeq = flatMap(tmp_4, DITreeImpl$findBySpecs$lambda_4);
|
|
1666
|
+
var specsTag = specs.m20_1;
|
|
1667
|
+
if (!equals(specsTag, NoDefinedTag_instance)) {
|
|
1668
|
+
var tmp_5 = tagSeq;
|
|
1669
|
+
tagSeq = filter(tmp_5, DITreeImpl$findBySpecs$lambda_5(specsTag));
|
|
1670
|
+
}
|
|
1671
|
+
var tmp_6 = tagSeq;
|
|
1672
|
+
var resultSeq = map(tmp_6, DITreeImpl$findBySpecs$lambda_6);
|
|
1673
|
+
return toList(resultSeq);
|
|
1674
|
+
}
|
|
1675
|
+
function notInMap($this, result, request) {
|
|
1676
|
+
var tmp = result.v1y();
|
|
1677
|
+
var tmp_0 = request.v1y();
|
|
1678
|
+
var tmp_1 = $this.d24_1.e2();
|
|
1679
|
+
return IllegalStateException_init_$Create$('Tree returned key ' + tmp + ' that is not in cache when searching for ' + tmp_0 + '.\nKeys in cache:\n' + joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, DITreeImpl$notInMap$lambda));
|
|
1680
|
+
}
|
|
1681
|
+
function DITreeImpl$findBySpecs$lambda($specsBindType) {
|
|
1682
|
+
return function (_destruct__k2r9zo) {
|
|
1683
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1684
|
+
var bindType = _destruct__k2r9zo.z1();
|
|
1685
|
+
return bindType.h24($specsBindType);
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
function DITreeImpl$findBySpecs$lambda_0(_destruct__k2r9zo) {
|
|
1689
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1690
|
+
var contextTree = _destruct__k2r9zo.a2();
|
|
1691
|
+
var tmp = asSequence(contextTree);
|
|
1692
|
+
return map(tmp, DITreeImpl$findBySpecs$lambda$lambda);
|
|
1693
|
+
}
|
|
1694
|
+
function DITreeImpl$findBySpecs$lambda$lambda(it) {
|
|
1695
|
+
return new Triple(it.z1(), it.a2(), null);
|
|
1696
|
+
}
|
|
1697
|
+
function DITreeImpl$findBySpecs$lambda_1($specsContextType, this$0) {
|
|
1698
|
+
return function (triple) {
|
|
1699
|
+
var contextType = triple.zc();
|
|
1700
|
+
var tmp;
|
|
1701
|
+
if (contextType.h24($specsContextType)) {
|
|
1702
|
+
tmp = triple;
|
|
1703
|
+
} else {
|
|
1704
|
+
var tmp$ret$1;
|
|
1705
|
+
$l$block: {
|
|
1706
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1707
|
+
var tmp0_iterator = this$0.g24_1.j();
|
|
1708
|
+
while (tmp0_iterator.k()) {
|
|
1709
|
+
var element = tmp0_iterator.l();
|
|
1710
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.findBySpecs.<anonymous>.<anonymous>' call
|
|
1711
|
+
if (element.c1z().u1x($specsContextType) && contextType.h24(element.z20())) {
|
|
1712
|
+
tmp$ret$1 = element;
|
|
1713
|
+
break $l$block;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
tmp$ret$1 = null;
|
|
1717
|
+
}
|
|
1718
|
+
var translator = tmp$ret$1;
|
|
1719
|
+
tmp = !(translator == null) ? triple.ug(VOID, VOID, translator) : null;
|
|
1720
|
+
}
|
|
1721
|
+
return tmp;
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
function DITreeImpl$findBySpecs$lambda_2(_destruct__k2r9zo) {
|
|
1725
|
+
var argumentTree = _destruct__k2r9zo.ad();
|
|
1726
|
+
var translator = _destruct__k2r9zo.sg();
|
|
1727
|
+
var tmp = asSequence(argumentTree);
|
|
1728
|
+
return map(tmp, DITreeImpl$findBySpecs$lambda$lambda_0(translator));
|
|
1729
|
+
}
|
|
1730
|
+
function DITreeImpl$findBySpecs$lambda$lambda_0($translator) {
|
|
1731
|
+
return function (it) {
|
|
1732
|
+
return new Triple(it.z1(), it.a2(), $translator);
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
function DITreeImpl$findBySpecs$lambda_3($specsArgType) {
|
|
1736
|
+
return function (_destruct__k2r9zo) {
|
|
1737
|
+
var argType = _destruct__k2r9zo.zc();
|
|
1738
|
+
return argType.h24($specsArgType);
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
function DITreeImpl$findBySpecs$lambda_4(_destruct__k2r9zo) {
|
|
1742
|
+
var tagTree = _destruct__k2r9zo.ad();
|
|
1743
|
+
var translator = _destruct__k2r9zo.sg();
|
|
1744
|
+
var tmp = asSequence(tagTree);
|
|
1745
|
+
return map(tmp, DITreeImpl$findBySpecs$lambda$lambda_1(translator));
|
|
1746
|
+
}
|
|
1747
|
+
function DITreeImpl$findBySpecs$lambda$lambda_1($translator) {
|
|
1748
|
+
return function (it) {
|
|
1749
|
+
return new Triple(it.z1(), it.a2(), $translator);
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
function DITreeImpl$findBySpecs$lambda_5($specsTag) {
|
|
1753
|
+
return function (_destruct__k2r9zo) {
|
|
1754
|
+
var tag = _destruct__k2r9zo.zc();
|
|
1755
|
+
return equals(tag, $specsTag);
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
function DITreeImpl$findBySpecs$lambda_6(_destruct__k2r9zo) {
|
|
1759
|
+
var key = _destruct__k2r9zo.ad();
|
|
1760
|
+
var translator = _destruct__k2r9zo.sg();
|
|
1761
|
+
return to(key, translator);
|
|
1762
|
+
}
|
|
1763
|
+
function DITreeImpl$notInMap$lambda(it) {
|
|
1764
|
+
return it.v1y();
|
|
1765
|
+
}
|
|
1766
|
+
function DITreeImpl(map, externalSources, registeredTranslators) {
|
|
1767
|
+
this.b24_1 = externalSources;
|
|
1768
|
+
this.c24_1 = registeredTranslators;
|
|
1769
|
+
this.d24_1 = newConcurrentMap();
|
|
1770
|
+
this.e24_1 = HashMap_init_$Create$();
|
|
1771
|
+
this.g24_1 = ArrayList_init_$Create$_1(this.c24_1);
|
|
1772
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
1773
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1774
|
+
var tmp0_iterator = map.s().j();
|
|
1775
|
+
while (tmp0_iterator.k()) {
|
|
1776
|
+
var element = tmp0_iterator.l();
|
|
1777
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
|
|
1778
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1779
|
+
var key = element.z1();
|
|
1780
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1781
|
+
var bindings = element.a2();
|
|
1782
|
+
// Inline function 'kotlin.collections.map' call
|
|
1783
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
1784
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(bindings, 10));
|
|
1785
|
+
var tmp0_iterator_0 = bindings.j();
|
|
1786
|
+
while (tmp0_iterator_0.k()) {
|
|
1787
|
+
var item = tmp0_iterator_0.l();
|
|
1788
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
|
|
1789
|
+
var tmp;
|
|
1790
|
+
if (item instanceof DIDefinition) {
|
|
1791
|
+
tmp = item;
|
|
1792
|
+
} else {
|
|
1793
|
+
tmp = new DIDefinition(item.f1y_1, item.g1y_1, this);
|
|
1794
|
+
}
|
|
1795
|
+
var tmp$ret$3 = tmp;
|
|
1796
|
+
destination.e(tmp$ret$3);
|
|
1797
|
+
}
|
|
1798
|
+
var definitions = destination;
|
|
1799
|
+
// Inline function 'kotlin.collections.set' call
|
|
1800
|
+
var this_0 = this.d24_1;
|
|
1801
|
+
var value = new Triple(key, definitions, null);
|
|
1802
|
+
this_0.g2(key, value);
|
|
1803
|
+
var typeChecker = first(bindings).f1y_1.u20() ? new Down(key.j1y_1) : new Up(key.j1y_1);
|
|
1804
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
1805
|
+
var this_1 = this.e24_1;
|
|
1806
|
+
var value_0 = this_1.d2(typeChecker);
|
|
1807
|
+
var tmp_0;
|
|
1808
|
+
if (value_0 == null) {
|
|
1809
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
|
|
1810
|
+
var answer = HashMap_init_$Create$();
|
|
1811
|
+
this_1.g2(typeChecker, answer);
|
|
1812
|
+
tmp_0 = answer;
|
|
1813
|
+
} else {
|
|
1814
|
+
tmp_0 = value_0;
|
|
1815
|
+
}
|
|
1816
|
+
var contextTree = tmp_0;
|
|
1817
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
1818
|
+
var key_0 = new Down(key.h1y_1);
|
|
1819
|
+
var value_1 = contextTree.d2(key_0);
|
|
1820
|
+
var tmp_1;
|
|
1821
|
+
if (value_1 == null) {
|
|
1822
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
|
|
1823
|
+
var answer_0 = HashMap_init_$Create$();
|
|
1824
|
+
contextTree.g2(key_0, answer_0);
|
|
1825
|
+
tmp_1 = answer_0;
|
|
1826
|
+
} else {
|
|
1827
|
+
tmp_1 = value_1;
|
|
1828
|
+
}
|
|
1829
|
+
var argumentTree = tmp_1;
|
|
1830
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
1831
|
+
var key_1 = new Down(key.i1y_1);
|
|
1832
|
+
var value_2 = argumentTree.d2(key_1);
|
|
1833
|
+
var tmp_2;
|
|
1834
|
+
if (value_2 == null) {
|
|
1835
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>.<anonymous>' call
|
|
1836
|
+
var answer_1 = HashMap_init_$Create$();
|
|
1837
|
+
argumentTree.g2(key_1, answer_1);
|
|
1838
|
+
tmp_2 = answer_1;
|
|
1839
|
+
} else {
|
|
1840
|
+
tmp_2 = value_2;
|
|
1841
|
+
}
|
|
1842
|
+
var tagTree = tmp_2;
|
|
1843
|
+
// Inline function 'kotlin.collections.set' call
|
|
1844
|
+
var key_2 = key.k1y_1;
|
|
1845
|
+
tagTree.g2(key_2, key);
|
|
1846
|
+
}
|
|
1847
|
+
var tmp_3 = this;
|
|
1848
|
+
// Inline function 'kotlin.collections.mapValues' call
|
|
1849
|
+
var this_2 = this.d24_1;
|
|
1850
|
+
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1851
|
+
var destination_0 = LinkedHashMap_init_$Create$_0(mapCapacity(this_2.m()));
|
|
1852
|
+
// Inline function 'kotlin.collections.associateByTo' call
|
|
1853
|
+
var tmp0_iterator_1 = this_2.s().j();
|
|
1854
|
+
while (tmp0_iterator_1.k()) {
|
|
1855
|
+
var element_0 = tmp0_iterator_1.l();
|
|
1856
|
+
// Inline function 'kotlin.collections.mapValuesTo.<anonymous>' call
|
|
1857
|
+
var tmp_4 = element_0.z1();
|
|
1858
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
|
|
1859
|
+
var tmp$ret$13 = element_0.a2().qg_1;
|
|
1860
|
+
destination_0.g2(tmp_4, tmp$ret$13);
|
|
1861
|
+
}
|
|
1862
|
+
tmp_3.f24_1 = HashMap_init_$Create$_0(destination_0);
|
|
1863
|
+
$l$loop: while (true) {
|
|
1864
|
+
var added = ArrayList_init_$Create$();
|
|
1865
|
+
var _iterator__ex2g4s = this.g24_1.j();
|
|
1866
|
+
while (_iterator__ex2g4s.k()) {
|
|
1867
|
+
var src = _iterator__ex2g4s.l();
|
|
1868
|
+
var _iterator__ex2g4s_0 = this.g24_1.j();
|
|
1869
|
+
while (_iterator__ex2g4s_0.k()) {
|
|
1870
|
+
var dst = _iterator__ex2g4s_0.l();
|
|
1871
|
+
if (dst.c1z().u1x(src.z20()) && !equals(src.c1z(), dst.z20())) {
|
|
1872
|
+
var tmp$ret$17;
|
|
1873
|
+
$l$block_0: {
|
|
1874
|
+
// Inline function 'kotlin.collections.none' call
|
|
1875
|
+
var this_3 = this.g24_1;
|
|
1876
|
+
var tmp_5;
|
|
1877
|
+
if (isInterface(this_3, Collection)) {
|
|
1878
|
+
tmp_5 = this_3.p();
|
|
1879
|
+
} else {
|
|
1880
|
+
tmp_5 = false;
|
|
1881
|
+
}
|
|
1882
|
+
if (tmp_5) {
|
|
1883
|
+
tmp$ret$17 = true;
|
|
1884
|
+
break $l$block_0;
|
|
1885
|
+
}
|
|
1886
|
+
var tmp0_iterator_2 = this_3.j();
|
|
1887
|
+
while (tmp0_iterator_2.k()) {
|
|
1888
|
+
var element_1 = tmp0_iterator_2.l();
|
|
1889
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.<anonymous>' call
|
|
1890
|
+
if (equals(element_1.c1z(), src.c1z()) && equals(element_1.z20(), dst.z20())) {
|
|
1891
|
+
tmp$ret$17 = false;
|
|
1892
|
+
break $l$block_0;
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
tmp$ret$17 = true;
|
|
1896
|
+
}
|
|
1897
|
+
if (tmp$ret$17) {
|
|
1898
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1899
|
+
var tmp_6 = isInterface(src, ContextTranslator) ? src : THROW_CCE();
|
|
1900
|
+
var element_2 = new CompositeContextTranslator(tmp_6, isInterface(dst, ContextTranslator) ? dst : THROW_CCE());
|
|
1901
|
+
added.e(element_2);
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1907
|
+
var this_4 = this.g24_1;
|
|
1908
|
+
addAll(this_4, added);
|
|
1909
|
+
if (added.p())
|
|
1910
|
+
break $l$loop;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
protoOf(DITreeImpl).a20 = function () {
|
|
1914
|
+
return this.b24_1;
|
|
1915
|
+
};
|
|
1916
|
+
protoOf(DITreeImpl).z1z = function () {
|
|
1917
|
+
return this.f24_1;
|
|
1918
|
+
};
|
|
1919
|
+
protoOf(DITreeImpl).b20 = function (key, overrideLevel, all) {
|
|
1920
|
+
if (!all) {
|
|
1921
|
+
var tmp52_safe_receiver = this.d24_1.d2(key);
|
|
1922
|
+
if (tmp52_safe_receiver == null)
|
|
1923
|
+
null;
|
|
1924
|
+
else {
|
|
1925
|
+
// Inline function 'kotlin.let' call
|
|
1926
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1927
|
+
var realKey = tmp52_safe_receiver.zc();
|
|
1928
|
+
var list = tmp52_safe_receiver.ad();
|
|
1929
|
+
var translator = tmp52_safe_receiver.sg();
|
|
1930
|
+
var tmp0_elvis_lhs = getOrNull(list, overrideLevel);
|
|
1931
|
+
var tmp;
|
|
1932
|
+
if (tmp0_elvis_lhs == null) {
|
|
1933
|
+
return emptyList();
|
|
1934
|
+
} else {
|
|
1935
|
+
tmp = tmp0_elvis_lhs;
|
|
1936
|
+
}
|
|
1937
|
+
var definition = tmp;
|
|
1938
|
+
var tmp_0 = realKey instanceof Key ? realKey : THROW_CCE();
|
|
1939
|
+
var tmp_1 = definition instanceof DIDefinition ? definition : THROW_CCE();
|
|
1940
|
+
return listOf(new Triple(tmp_0, tmp_1, (translator == null ? true : isInterface(translator, ContextTranslator)) ? translator : THROW_CCE()));
|
|
1941
|
+
}
|
|
1942
|
+
if (!equals(key.h1y_1, Companion_getInstance().l1x_1)) {
|
|
1943
|
+
var anyContextKey = key.x1y(Companion_getInstance().l1x_1);
|
|
1944
|
+
var tmp53_safe_receiver = this.d24_1.d2(anyContextKey);
|
|
1945
|
+
if (tmp53_safe_receiver == null)
|
|
1946
|
+
null;
|
|
1947
|
+
else {
|
|
1948
|
+
// Inline function 'kotlin.let' call
|
|
1949
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1950
|
+
$l$block: {
|
|
1951
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
1952
|
+
var realKey_0 = tmp53_safe_receiver.zc();
|
|
1953
|
+
var list_0 = tmp53_safe_receiver.ad();
|
|
1954
|
+
var translator_0 = tmp53_safe_receiver.sg();
|
|
1955
|
+
if (!(translator_0 == null) && !equals(translator_0.c1z(), key.h1y_1)) {
|
|
1956
|
+
break $l$block;
|
|
1957
|
+
}
|
|
1958
|
+
// Inline function 'kotlin.collections.set' call
|
|
1959
|
+
this.d24_1.g2(key, tmp53_safe_receiver);
|
|
1960
|
+
var tmp0_elvis_lhs_0 = getOrNull(list_0, overrideLevel);
|
|
1961
|
+
var tmp_2;
|
|
1962
|
+
if (tmp0_elvis_lhs_0 == null) {
|
|
1963
|
+
return emptyList();
|
|
1964
|
+
} else {
|
|
1965
|
+
tmp_2 = tmp0_elvis_lhs_0;
|
|
1966
|
+
}
|
|
1967
|
+
var definition_0 = tmp_2;
|
|
1968
|
+
var tmp_3 = realKey_0 instanceof Key ? realKey_0 : THROW_CCE();
|
|
1969
|
+
var tmp_4 = definition_0 instanceof DIDefinition ? definition_0 : THROW_CCE();
|
|
1970
|
+
return listOf(new Triple(tmp_3, tmp_4, (translator_0 == null ? true : isInterface(translator_0, ContextTranslator)) ? translator_0 : THROW_CCE()));
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1975
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1976
|
+
var this_0 = this.g24_1;
|
|
1977
|
+
var destination = ArrayList_init_$Create$();
|
|
1978
|
+
var tmp0_iterator = this_0.j();
|
|
1979
|
+
while (tmp0_iterator.k()) {
|
|
1980
|
+
var element = tmp0_iterator.l();
|
|
1981
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
1982
|
+
if (equals(element.c1z(), key.h1y_1)) {
|
|
1983
|
+
destination.e(element);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
var tmp_5 = destination;
|
|
1987
|
+
// Inline function 'kotlin.collections.filter' call
|
|
1988
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
1989
|
+
var this_1 = this.g24_1;
|
|
1990
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
1991
|
+
var tmp0_iterator_0 = this_1.j();
|
|
1992
|
+
while (tmp0_iterator_0.k()) {
|
|
1993
|
+
var element_0 = tmp0_iterator_0.l();
|
|
1994
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
1995
|
+
if (equals(element_0.c1z(), Companion_getInstance().l1x_1)) {
|
|
1996
|
+
destination_0.e(element_0);
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
var applicableTranslators = plus(tmp_5, destination_0);
|
|
2000
|
+
var _iterator__ex2g4s = applicableTranslators.j();
|
|
2001
|
+
while (_iterator__ex2g4s.k()) {
|
|
2002
|
+
var translator_1 = _iterator__ex2g4s.l();
|
|
2003
|
+
var translatedKey = new Key(translator_1.z20(), key.i1y_1, key.j1y_1, key.k1y_1);
|
|
2004
|
+
var tmp54_safe_receiver = this.d24_1.d2(translatedKey);
|
|
2005
|
+
var tmp_6;
|
|
2006
|
+
if (tmp54_safe_receiver == null) {
|
|
2007
|
+
tmp_6 = null;
|
|
2008
|
+
} else {
|
|
2009
|
+
// Inline function 'kotlin.takeIf' call
|
|
2010
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2011
|
+
var tmp_7;
|
|
2012
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
2013
|
+
if (tmp54_safe_receiver.rg_1 == null) {
|
|
2014
|
+
tmp_7 = tmp54_safe_receiver;
|
|
2015
|
+
} else {
|
|
2016
|
+
tmp_7 = null;
|
|
2017
|
+
}
|
|
2018
|
+
tmp_6 = tmp_7;
|
|
2019
|
+
}
|
|
2020
|
+
var tmp55_safe_receiver = tmp_6;
|
|
2021
|
+
if (tmp55_safe_receiver == null)
|
|
2022
|
+
null;
|
|
2023
|
+
else {
|
|
2024
|
+
// Inline function 'kotlin.let' call
|
|
2025
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2026
|
+
$l$block_0: {
|
|
2027
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
2028
|
+
if (!(tmp55_safe_receiver.rg_1 == null)) {
|
|
2029
|
+
break $l$block_0;
|
|
2030
|
+
}
|
|
2031
|
+
// Inline function 'kotlin.collections.set' call
|
|
2032
|
+
var this_2 = this.d24_1;
|
|
2033
|
+
var value = tmp55_safe_receiver.ug(VOID, VOID, translator_1);
|
|
2034
|
+
this_2.g2(key, value);
|
|
2035
|
+
var realKey_1 = tmp55_safe_receiver.zc();
|
|
2036
|
+
var list_1 = tmp55_safe_receiver.ad();
|
|
2037
|
+
var tmp0_elvis_lhs_1 = getOrNull(list_1, overrideLevel);
|
|
2038
|
+
var tmp_8;
|
|
2039
|
+
if (tmp0_elvis_lhs_1 == null) {
|
|
2040
|
+
return emptyList();
|
|
2041
|
+
} else {
|
|
2042
|
+
tmp_8 = tmp0_elvis_lhs_1;
|
|
2043
|
+
}
|
|
2044
|
+
var definition_1 = tmp_8;
|
|
2045
|
+
var tmp_9 = realKey_1 instanceof Key ? realKey_1 : THROW_CCE();
|
|
2046
|
+
var tmp_10 = definition_1 instanceof DIDefinition ? definition_1 : THROW_CCE();
|
|
2047
|
+
return listOf(new Triple(tmp_9, tmp_10, isInterface(translator_1, ContextTranslator) ? translator_1 : THROW_CCE()));
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
var result = findBySpecs(this, new SearchSpecs(key.h1y_1, key.i1y_1, key.j1y_1, key.k1y_1));
|
|
2053
|
+
if (result.m() === 1) {
|
|
2054
|
+
var _destruct__k2r9zo = first(result);
|
|
2055
|
+
var realKey_2 = _destruct__k2r9zo.zc();
|
|
2056
|
+
var translator_2 = _destruct__k2r9zo.ad();
|
|
2057
|
+
// Inline function 'kotlin.collections.set' call
|
|
2058
|
+
var this_3 = this.d24_1;
|
|
2059
|
+
var tmp56_safe_receiver = this.d24_1.d2(realKey_2);
|
|
2060
|
+
var tmp0_elvis_lhs_2 = tmp56_safe_receiver == null ? null : tmp56_safe_receiver.ug(VOID, VOID, translator_2);
|
|
2061
|
+
var tmp_11;
|
|
2062
|
+
if (tmp0_elvis_lhs_2 == null) {
|
|
2063
|
+
throw notInMap(this, realKey_2, key);
|
|
2064
|
+
} else {
|
|
2065
|
+
tmp_11 = tmp0_elvis_lhs_2;
|
|
2066
|
+
}
|
|
2067
|
+
var value_0 = tmp_11;
|
|
2068
|
+
this_3.g2(key, value_0);
|
|
2069
|
+
}
|
|
2070
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
2071
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
2072
|
+
var destination_1 = ArrayList_init_$Create$();
|
|
2073
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
2074
|
+
var tmp0_iterator_1 = result.j();
|
|
2075
|
+
while (tmp0_iterator_1.k()) {
|
|
2076
|
+
var element_1 = tmp0_iterator_1.l();
|
|
2077
|
+
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
2078
|
+
var tmp$ret$13;
|
|
2079
|
+
$l$block_1: {
|
|
2080
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
2081
|
+
var realKey_3 = element_1.zc();
|
|
2082
|
+
var translator_3 = element_1.ad();
|
|
2083
|
+
var tmp0_elvis_lhs_3 = this.d24_1.d2(realKey_3);
|
|
2084
|
+
var tmp_12;
|
|
2085
|
+
if (tmp0_elvis_lhs_3 == null) {
|
|
2086
|
+
throw notInMap(this, realKey_3, key);
|
|
2087
|
+
} else {
|
|
2088
|
+
tmp_12 = tmp0_elvis_lhs_3;
|
|
2089
|
+
}
|
|
2090
|
+
var definitions = tmp_12.ad();
|
|
2091
|
+
var tmp1_elvis_lhs = getOrNull(definitions, overrideLevel);
|
|
2092
|
+
var tmp_13;
|
|
2093
|
+
if (tmp1_elvis_lhs == null) {
|
|
2094
|
+
tmp$ret$13 = null;
|
|
2095
|
+
break $l$block_1;
|
|
2096
|
+
} else {
|
|
2097
|
+
tmp_13 = tmp1_elvis_lhs;
|
|
2098
|
+
}
|
|
2099
|
+
var definition_2 = tmp_13;
|
|
2100
|
+
var tmp_14 = realKey_3 instanceof Key ? realKey_3 : THROW_CCE();
|
|
2101
|
+
var tmp_15 = definition_2 instanceof DIDefinition ? definition_2 : THROW_CCE();
|
|
2102
|
+
tmp$ret$13 = new Triple(tmp_14, tmp_15, (translator_3 == null ? true : isInterface(translator_3, ContextTranslator)) ? translator_3 : THROW_CCE());
|
|
2103
|
+
}
|
|
2104
|
+
var tmp0_safe_receiver = tmp$ret$13;
|
|
2105
|
+
if (tmp0_safe_receiver == null)
|
|
2106
|
+
null;
|
|
2107
|
+
else {
|
|
2108
|
+
// Inline function 'kotlin.let' call
|
|
2109
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2110
|
+
destination_1.e(tmp0_safe_receiver);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
return destination_1;
|
|
2114
|
+
};
|
|
2115
|
+
protoOf(DITreeImpl).d20 = function (search) {
|
|
2116
|
+
var result = findBySpecs(this, search);
|
|
2117
|
+
// Inline function 'kotlin.collections.map' call
|
|
2118
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
2119
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(result, 10));
|
|
2120
|
+
var tmp0_iterator = result.j();
|
|
2121
|
+
while (tmp0_iterator.k()) {
|
|
2122
|
+
var item = tmp0_iterator.l();
|
|
2123
|
+
// Inline function 'org.kodein.di.internal.DITreeImpl.find.<anonymous>' call
|
|
2124
|
+
var key = item.zc();
|
|
2125
|
+
var translator = item.ad();
|
|
2126
|
+
var tmp$ret$0 = new Triple(key, ensureNotNull(this.d24_1.d2(key)).qg_1, translator);
|
|
2127
|
+
destination.e(tmp$ret$0);
|
|
2128
|
+
}
|
|
2129
|
+
return destination;
|
|
2130
|
+
};
|
|
2131
|
+
protoOf(DITreeImpl).e20 = function (key) {
|
|
2132
|
+
var tmp = this.d24_1.d2(key);
|
|
2133
|
+
return (tmp == null ? true : tmp instanceof Triple) ? tmp : THROW_CCE();
|
|
2134
|
+
};
|
|
2135
|
+
function Down(type) {
|
|
2136
|
+
TypeChecker.call(this);
|
|
2137
|
+
this.i24_1 = type;
|
|
2138
|
+
this.j24_1 = equals(this.i24_1, Companion_getInstance().l1x_1);
|
|
2139
|
+
}
|
|
2140
|
+
protoOf(Down).h24 = function (other) {
|
|
2141
|
+
return this.j24_1 || this.i24_1.u1x(other);
|
|
2142
|
+
};
|
|
2143
|
+
protoOf(Down).toString = function () {
|
|
2144
|
+
return 'Down(type=' + toString_0(this.i24_1) + ')';
|
|
2145
|
+
};
|
|
2146
|
+
protoOf(Down).hashCode = function () {
|
|
2147
|
+
return hashCode(this.i24_1);
|
|
2148
|
+
};
|
|
2149
|
+
protoOf(Down).equals = function (other) {
|
|
2150
|
+
if (this === other)
|
|
2151
|
+
return true;
|
|
2152
|
+
if (!(other instanceof Down))
|
|
2153
|
+
return false;
|
|
2154
|
+
var tmp0_other_with_cast = other instanceof Down ? other : THROW_CCE();
|
|
2155
|
+
if (!equals(this.i24_1, tmp0_other_with_cast.i24_1))
|
|
2156
|
+
return false;
|
|
2157
|
+
return true;
|
|
2158
|
+
};
|
|
2159
|
+
function Up(type) {
|
|
2160
|
+
TypeChecker.call(this);
|
|
2161
|
+
this.k24_1 = type;
|
|
2162
|
+
}
|
|
2163
|
+
protoOf(Up).h24 = function (other) {
|
|
2164
|
+
return equals(other, Companion_getInstance().l1x_1) || other.u1x(this.k24_1);
|
|
2165
|
+
};
|
|
2166
|
+
protoOf(Up).toString = function () {
|
|
2167
|
+
return 'Up(type=' + toString_0(this.k24_1) + ')';
|
|
2168
|
+
};
|
|
2169
|
+
protoOf(Up).hashCode = function () {
|
|
2170
|
+
return hashCode(this.k24_1);
|
|
2171
|
+
};
|
|
2172
|
+
protoOf(Up).equals = function (other) {
|
|
2173
|
+
if (this === other)
|
|
2174
|
+
return true;
|
|
2175
|
+
if (!(other instanceof Up))
|
|
2176
|
+
return false;
|
|
2177
|
+
var tmp0_other_with_cast = other instanceof Up ? other : THROW_CCE();
|
|
2178
|
+
if (!equals(this.k24_1, tmp0_other_with_cast.k24_1))
|
|
2179
|
+
return false;
|
|
2180
|
+
return true;
|
|
2181
|
+
};
|
|
2182
|
+
function TypeChecker() {
|
|
2183
|
+
}
|
|
2184
|
+
function DirectDIBaseImpl(container, context) {
|
|
2185
|
+
this.l24_1 = container;
|
|
2186
|
+
this.m24_1 = context;
|
|
2187
|
+
}
|
|
2188
|
+
protoOf(DirectDIBaseImpl).k1z = function () {
|
|
2189
|
+
return this.l24_1;
|
|
2190
|
+
};
|
|
2191
|
+
protoOf(DirectDIBaseImpl).i20 = function () {
|
|
2192
|
+
return this;
|
|
2193
|
+
};
|
|
2194
|
+
protoOf(DirectDIBaseImpl).f20 = function () {
|
|
2195
|
+
var tmp = this.k1z();
|
|
2196
|
+
return On(new DIImpl(tmp instanceof DIContainerImpl ? tmp : THROW_CCE()), this.m24_1);
|
|
2197
|
+
};
|
|
2198
|
+
protoOf(DirectDIBaseImpl).g20 = function (context) {
|
|
2199
|
+
return createDirectDI(this.k1z(), context);
|
|
2200
|
+
};
|
|
2201
|
+
protoOf(DirectDIBaseImpl).h20 = function (type, tag) {
|
|
2202
|
+
var tmp = this.k1z();
|
|
2203
|
+
// Inline function 'org.kodein.di.internal.anyType' call
|
|
2204
|
+
var tmp_0 = this.m24_1.p1z();
|
|
2205
|
+
var tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
2206
|
+
return tmp.v1z(new Key(tmp$ret$0, Companion_getInstance().k1x_1, type, tag), this.m24_1.a2())();
|
|
2207
|
+
};
|
|
2208
|
+
function DIProperty$provideDelegate$lambda($receiver, this$0, $prop) {
|
|
2209
|
+
return function () {
|
|
2210
|
+
var tmp;
|
|
2211
|
+
if (!($receiver == null) && this$0.o24_1 === get_AnyDIContext()) {
|
|
2212
|
+
var tmp_0 = Companion_instance_0;
|
|
2213
|
+
var tmp_1 = erasedOf($receiver);
|
|
2214
|
+
tmp = tmp_0.q1z(isInterface(tmp_1, TypeToken) ? tmp_1 : THROW_CCE(), $receiver);
|
|
2215
|
+
} else {
|
|
2216
|
+
tmp = this$0.o24_1;
|
|
2217
|
+
}
|
|
2218
|
+
var context = tmp;
|
|
2219
|
+
return this$0.p24_1(context, $prop.callableName);
|
|
2220
|
+
};
|
|
2221
|
+
}
|
|
2222
|
+
function DIProperty(trigger, originalContext, get) {
|
|
2223
|
+
this.n24_1 = trigger;
|
|
2224
|
+
this.o24_1 = originalContext;
|
|
2225
|
+
this.p24_1 = get;
|
|
2226
|
+
}
|
|
2227
|
+
protoOf(DIProperty).q24 = function (receiver, prop) {
|
|
2228
|
+
// Inline function 'kotlin.also' call
|
|
2229
|
+
var this_0 = lazy(DIProperty$provideDelegate$lambda(receiver, this, prop));
|
|
2230
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2231
|
+
// Inline function 'org.kodein.di.DIProperty.provideDelegate.<anonymous>' call
|
|
2232
|
+
var tmp62_safe_receiver = this.n24_1;
|
|
2233
|
+
var tmp63_safe_receiver = tmp62_safe_receiver == null ? null : tmp62_safe_receiver.r24_1;
|
|
2234
|
+
if (tmp63_safe_receiver == null)
|
|
2235
|
+
null;
|
|
2236
|
+
else
|
|
2237
|
+
tmp63_safe_receiver.e(this_0);
|
|
2238
|
+
return this_0;
|
|
2239
|
+
};
|
|
2240
|
+
function createDirectDI(container, context) {
|
|
2241
|
+
return new DirectDIImpl(container, context);
|
|
2242
|
+
}
|
|
2243
|
+
function DirectDIImpl(container, context) {
|
|
2244
|
+
DirectDIBaseImpl.call(this, container, context);
|
|
2245
|
+
}
|
|
2246
|
+
function newConcurrentMap() {
|
|
2247
|
+
return HashMap_init_$Create$();
|
|
2248
|
+
}
|
|
2249
|
+
function newLinkedList() {
|
|
2250
|
+
return ArrayList_init_$Create$();
|
|
2251
|
+
}
|
|
2252
|
+
//region block: post-declaration
|
|
2253
|
+
protoOf(Singleton).s20 = get_argType;
|
|
2254
|
+
protoOf(Singleton).n1y = get_description;
|
|
2255
|
+
protoOf(Singleton).p1y = get_fullDescription;
|
|
2256
|
+
protoOf(Singleton).u20 = get_supportSubTypes;
|
|
2257
|
+
protoOf(Provider).s20 = get_argType;
|
|
2258
|
+
protoOf(Provider).r20 = factoryFullName;
|
|
2259
|
+
protoOf(Provider).e1z = get_scope;
|
|
2260
|
+
protoOf(Provider).n1y = get_description;
|
|
2261
|
+
protoOf(Provider).p1y = get_fullDescription;
|
|
2262
|
+
protoOf(Provider).u20 = get_supportSubTypes;
|
|
2263
|
+
protoOf(DIBuilderImpl).b1z = import$default;
|
|
2264
|
+
protoOf(DIContainerImpl).x1z = factory$default;
|
|
2265
|
+
protoOf(DIContainerImpl).y1z = provider;
|
|
2266
|
+
protoOf(DIContainerImpl).v1z = provider$default;
|
|
2267
|
+
protoOf(DIImpl).j1z = get_di;
|
|
2268
|
+
protoOf(DIImpl).l1z = get_diContext;
|
|
2269
|
+
protoOf(DIImpl).m1z = get_diTrigger;
|
|
2270
|
+
protoOf(DITreeImpl).c20 = find$default;
|
|
2271
|
+
protoOf(DirectDIBaseImpl).j1z = get_di_0;
|
|
2272
|
+
//endregion
|
|
2273
|
+
//region block: init
|
|
2274
|
+
Companion_instance = new Companion();
|
|
2275
|
+
Companion_instance_0 = new Companion_0();
|
|
2276
|
+
NoDefinedTag_instance = new NoDefinedTag();
|
|
2277
|
+
ErasedContext_instance = new ErasedContext();
|
|
2278
|
+
Companion_instance_1 = new Companion_1();
|
|
2279
|
+
SingletonReference_instance = new SingletonReference();
|
|
2280
|
+
Companion_instance_2 = new Companion_2();
|
|
2281
|
+
Companion_instance_3 = new Companion_3();
|
|
2282
|
+
//endregion
|
|
2283
|
+
//region block: exports
|
|
2284
|
+
_.$_$ = _.$_$ || {};
|
|
2285
|
+
_.$_$.a = Module_init_$Create$;
|
|
2286
|
+
_.$_$.b = Companion_instance;
|
|
2287
|
+
_.$_$.c = Provider;
|
|
2288
|
+
_.$_$.d = Singleton;
|
|
2289
|
+
_.$_$.e = Instance;
|
|
2290
|
+
//endregion
|
|
2291
|
+
return _;
|
|
2292
|
+
}));
|
|
2293
|
+
|
|
2294
|
+
//# sourceMappingURL=Kosi-Kodein-kodein-di.js.map
|