@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,1285 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_co_touchlab_stately_concurrency, kotlin_co_touchlab_stately_concurrent_collections) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
7
|
+
var Monotonic_instance = kotlin_kotlin.$_$.i5;
|
|
8
|
+
var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.t2;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
10
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rd;
|
|
11
|
+
var toList = kotlin_kotlin.$_$.ma;
|
|
12
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
13
|
+
var emptyList = kotlin_kotlin.$_$.y7;
|
|
14
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
15
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
16
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
17
|
+
var joinTo = kotlin_kotlin.$_$.s8;
|
|
18
|
+
var THROW_CCE = kotlin_kotlin.$_$.wk;
|
|
19
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.kk;
|
|
21
|
+
var toString = kotlin_kotlin.$_$.bm;
|
|
22
|
+
var toString_0 = kotlin_kotlin.$_$.we;
|
|
23
|
+
var Exception = kotlin_kotlin.$_$.mk;
|
|
24
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.p1;
|
|
25
|
+
var captureStack = kotlin_kotlin.$_$.ad;
|
|
26
|
+
var Exception_init_$Init$_0 = kotlin_kotlin.$_$.r1;
|
|
27
|
+
var HashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
28
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.b2;
|
|
29
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
30
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
31
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
32
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
33
|
+
var asReversed = kotlin_kotlin.$_$.t6;
|
|
34
|
+
var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
35
|
+
var get_lastIndex = kotlin_kotlin.$_$.v8;
|
|
36
|
+
var toList_0 = kotlin_kotlin.$_$.la;
|
|
37
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ld;
|
|
38
|
+
var getKClass = kotlin_kotlin.$_$.qf;
|
|
39
|
+
var copyToArray = kotlin_kotlin.$_$.s7;
|
|
40
|
+
var arrayListOf = kotlin_kotlin.$_$.q6;
|
|
41
|
+
var distinct = kotlin_kotlin.$_$.t7;
|
|
42
|
+
var TimedValue = kotlin_kotlin.$_$.yj;
|
|
43
|
+
var ArrayDeque_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
44
|
+
var ThreadLocalRef = kotlin_co_touchlab_stately_concurrency.$_$.a;
|
|
45
|
+
var addAll = kotlin_kotlin.$_$.o6;
|
|
46
|
+
var plus = kotlin_kotlin.$_$.t9;
|
|
47
|
+
var _Duration___get_inWholeMicroseconds__impl__8oe8vv = kotlin_kotlin.$_$.r2;
|
|
48
|
+
var toNumber = kotlin_kotlin.$_$.vc;
|
|
49
|
+
var Companion_getInstance = kotlin_kotlin.$_$.j5;
|
|
50
|
+
var Exception_init_$Create$ = kotlin_kotlin.$_$.o1;
|
|
51
|
+
var split = kotlin_kotlin.$_$.fi;
|
|
52
|
+
var ConcurrentMutableMap_init_$Create$ = kotlin_co_touchlab_stately_concurrent_collections.$_$.a;
|
|
53
|
+
var ConcurrentMutableSet_init_$Create$ = kotlin_co_touchlab_stately_concurrent_collections.$_$.b;
|
|
54
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wd;
|
|
55
|
+
//endregion
|
|
56
|
+
//region block: pre-declaration
|
|
57
|
+
initMetadataForClass(Koin, 'Koin', Koin);
|
|
58
|
+
initMetadataForCompanion(Companion);
|
|
59
|
+
initMetadataForClass(KoinApplication, 'KoinApplication');
|
|
60
|
+
initMetadataForClass(BeanDefinition, 'BeanDefinition');
|
|
61
|
+
initMetadataForClass(Kind, 'Kind', VOID, Enum);
|
|
62
|
+
initMetadataForClass(Callbacks, 'Callbacks', Callbacks);
|
|
63
|
+
initMetadataForClass(KoinDefinition, 'KoinDefinition');
|
|
64
|
+
initMetadataForClass(ClosedScopeException, 'ClosedScopeException', VOID, Exception);
|
|
65
|
+
initMetadataForClass(DefinitionOverrideException, 'DefinitionOverrideException', VOID, Exception);
|
|
66
|
+
initMetadataForClass(InstanceCreationException, 'InstanceCreationException', VOID, Exception);
|
|
67
|
+
initMetadataForClass(NoDefinitionFoundException, 'NoDefinitionFoundException', VOID, Exception);
|
|
68
|
+
initMetadataForClass(ExtensionManager, 'ExtensionManager');
|
|
69
|
+
initMetadataForCompanion(Companion_0);
|
|
70
|
+
initMetadataForClass(InstanceFactory, 'InstanceFactory');
|
|
71
|
+
initMetadataForClass(ResolutionContext, 'ResolutionContext');
|
|
72
|
+
initMetadataForClass(NoClass, 'NoClass', NoClass);
|
|
73
|
+
initMetadataForClass(SingleInstanceFactory, 'SingleInstanceFactory', VOID, InstanceFactory);
|
|
74
|
+
initMetadataForClass(Logger, 'Logger');
|
|
75
|
+
initMetadataForClass(EmptyLogger, 'EmptyLogger', EmptyLogger, Logger);
|
|
76
|
+
initMetadataForClass(Level, 'Level', VOID, Enum);
|
|
77
|
+
initMetadataForClass(Module, 'Module', Module);
|
|
78
|
+
initMetadataForClass(ParametersHolder, 'ParametersHolder', ParametersHolder);
|
|
79
|
+
initMetadataForClass(StringQualifier, 'StringQualifier');
|
|
80
|
+
initMetadataForClass(TypeQualifier, 'TypeQualifier');
|
|
81
|
+
initMetadataForClass(InstanceRegistry, 'InstanceRegistry');
|
|
82
|
+
initMetadataForClass(OptionRegistry, 'OptionRegistry', OptionRegistry);
|
|
83
|
+
initMetadataForClass(PropertyRegistry, 'PropertyRegistry');
|
|
84
|
+
initMetadataForCompanion(Companion_1);
|
|
85
|
+
initMetadataForClass(ScopeRegistry, 'ScopeRegistry');
|
|
86
|
+
initMetadataForClass(CoreResolver, 'CoreResolver');
|
|
87
|
+
initMetadataForClass(Scope, 'Scope');
|
|
88
|
+
initMetadataForObject(KoinPlatformTools, 'KoinPlatformTools');
|
|
89
|
+
//endregion
|
|
90
|
+
function Koin() {
|
|
91
|
+
this.j55_1 = new EmptyLogger();
|
|
92
|
+
this.k55_1 = new CoreResolver(this);
|
|
93
|
+
this.l55_1 = new ScopeRegistry(this);
|
|
94
|
+
this.m55_1 = new InstanceRegistry(this);
|
|
95
|
+
this.n55_1 = new PropertyRegistry(this);
|
|
96
|
+
this.o55_1 = new ExtensionManager(this);
|
|
97
|
+
this.p55_1 = new OptionRegistry();
|
|
98
|
+
}
|
|
99
|
+
protoOf(Koin).q55 = function (modules, allowOverride, createEagerInstances) {
|
|
100
|
+
var flattedModules = flatten(modules);
|
|
101
|
+
this.m55_1.u55(flattedModules, allowOverride);
|
|
102
|
+
this.l55_1.z55(flattedModules);
|
|
103
|
+
if (createEagerInstances) {
|
|
104
|
+
this.a56();
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
protoOf(Koin).a56 = function () {
|
|
108
|
+
this.j55_1.c56('Create eager instances ...');
|
|
109
|
+
// Inline function 'kotlin.time.measureTime' call
|
|
110
|
+
// Inline function 'kotlin.time.measureTime' call
|
|
111
|
+
var mark = Monotonic_instance.af();
|
|
112
|
+
this.m55_1.d56();
|
|
113
|
+
var duration = ValueTimeMark__elapsedNow_impl_eonqvs(mark);
|
|
114
|
+
this.j55_1.c56('Created eager instances in ' + get_inMs(duration) + ' ms');
|
|
115
|
+
};
|
|
116
|
+
function loadModules($this, modules) {
|
|
117
|
+
$this.e56_1.q55(modules, $this.f56_1, false);
|
|
118
|
+
}
|
|
119
|
+
function Companion() {
|
|
120
|
+
}
|
|
121
|
+
protoOf(Companion).g56 = function () {
|
|
122
|
+
var app = new KoinApplication();
|
|
123
|
+
return app;
|
|
124
|
+
};
|
|
125
|
+
var Companion_instance;
|
|
126
|
+
function Companion_getInstance_0() {
|
|
127
|
+
return Companion_instance;
|
|
128
|
+
}
|
|
129
|
+
function KoinApplication() {
|
|
130
|
+
this.e56_1 = new Koin();
|
|
131
|
+
this.f56_1 = true;
|
|
132
|
+
}
|
|
133
|
+
protoOf(KoinApplication).h56 = function (modules) {
|
|
134
|
+
return this.i56(toList(modules));
|
|
135
|
+
};
|
|
136
|
+
protoOf(KoinApplication).i56 = function (modules) {
|
|
137
|
+
var tmp0 = this.e56_1.j55_1;
|
|
138
|
+
// Inline function 'org.koin.core.logger.Logger.isAt' call
|
|
139
|
+
var lvl = Level_INFO_getInstance();
|
|
140
|
+
if (tmp0.b56_1.p2(lvl) <= 0) {
|
|
141
|
+
// Inline function 'kotlin.time.measureTime' call
|
|
142
|
+
// Inline function 'kotlin.time.measureTime' call
|
|
143
|
+
var mark = Monotonic_instance.af();
|
|
144
|
+
loadModules(this, modules);
|
|
145
|
+
var duration = ValueTimeMark__elapsedNow_impl_eonqvs(mark);
|
|
146
|
+
var count = this.e56_1.m55_1.j56();
|
|
147
|
+
this.e56_1.j55_1.k56(Level_INFO_getInstance(), 'Started ' + count + ' definitions in ' + get_inMs(duration) + ' ms');
|
|
148
|
+
} else {
|
|
149
|
+
loadModules(this, modules);
|
|
150
|
+
}
|
|
151
|
+
return this;
|
|
152
|
+
};
|
|
153
|
+
protoOf(KoinApplication).a56 = function () {
|
|
154
|
+
this.e56_1.a56();
|
|
155
|
+
};
|
|
156
|
+
function BeanDefinition$toString$lambda(it) {
|
|
157
|
+
return getFullName(it);
|
|
158
|
+
}
|
|
159
|
+
function BeanDefinition(scopeQualifier, primaryType, qualifier, definition, kind, secondaryTypes) {
|
|
160
|
+
qualifier = qualifier === VOID ? null : qualifier;
|
|
161
|
+
secondaryTypes = secondaryTypes === VOID ? emptyList() : secondaryTypes;
|
|
162
|
+
this.l56_1 = scopeQualifier;
|
|
163
|
+
this.m56_1 = primaryType;
|
|
164
|
+
this.n56_1 = qualifier;
|
|
165
|
+
this.o56_1 = definition;
|
|
166
|
+
this.p56_1 = kind;
|
|
167
|
+
this.q56_1 = secondaryTypes;
|
|
168
|
+
this.r56_1 = new Callbacks();
|
|
169
|
+
this.s56_1 = false;
|
|
170
|
+
}
|
|
171
|
+
protoOf(BeanDefinition).toString = function () {
|
|
172
|
+
// Inline function 'kotlin.text.buildString' call
|
|
173
|
+
// Inline function 'kotlin.apply' call
|
|
174
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
175
|
+
this_0.a8(_Char___init__impl__6a9atx(91));
|
|
176
|
+
this_0.y7(this.p56_1);
|
|
177
|
+
this_0.z7(": '");
|
|
178
|
+
this_0.z7(getFullName(this.m56_1));
|
|
179
|
+
this_0.a8(_Char___init__impl__6a9atx(39));
|
|
180
|
+
if (!(this.n56_1 == null)) {
|
|
181
|
+
this_0.z7(',qualifier:');
|
|
182
|
+
this_0.y7(this.n56_1);
|
|
183
|
+
}
|
|
184
|
+
if (!equals(this.l56_1, Companion_getInstance_2().u56_1)) {
|
|
185
|
+
this_0.z7(',scope:');
|
|
186
|
+
this_0.y7(this.l56_1);
|
|
187
|
+
}
|
|
188
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
189
|
+
if (!this.q56_1.r()) {
|
|
190
|
+
this_0.z7(',binds:');
|
|
191
|
+
var tmp = this.q56_1;
|
|
192
|
+
joinTo(tmp, this_0, ',', VOID, VOID, VOID, VOID, BeanDefinition$toString$lambda);
|
|
193
|
+
}
|
|
194
|
+
this_0.a8(_Char___init__impl__6a9atx(93));
|
|
195
|
+
return this_0.toString();
|
|
196
|
+
};
|
|
197
|
+
protoOf(BeanDefinition).equals = function (other) {
|
|
198
|
+
if (this === other)
|
|
199
|
+
return true;
|
|
200
|
+
if (!(other instanceof BeanDefinition))
|
|
201
|
+
THROW_CCE();
|
|
202
|
+
if (!this.m56_1.equals(other.m56_1))
|
|
203
|
+
return false;
|
|
204
|
+
if (!equals(this.n56_1, other.n56_1))
|
|
205
|
+
return false;
|
|
206
|
+
if (!equals(this.l56_1, other.l56_1))
|
|
207
|
+
return false;
|
|
208
|
+
return true;
|
|
209
|
+
};
|
|
210
|
+
protoOf(BeanDefinition).hashCode = function () {
|
|
211
|
+
var tmp0_safe_receiver = this.n56_1;
|
|
212
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
213
|
+
var result = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
214
|
+
result = imul(31, result) + this.m56_1.hashCode() | 0;
|
|
215
|
+
result = imul(31, result) + hashCode(this.l56_1) | 0;
|
|
216
|
+
return result;
|
|
217
|
+
};
|
|
218
|
+
var Kind_Singleton_instance;
|
|
219
|
+
var Kind_Factory_instance;
|
|
220
|
+
var Kind_Scoped_instance;
|
|
221
|
+
var Kind_entriesInitialized;
|
|
222
|
+
function Kind_initEntries() {
|
|
223
|
+
if (Kind_entriesInitialized)
|
|
224
|
+
return Unit_instance;
|
|
225
|
+
Kind_entriesInitialized = true;
|
|
226
|
+
Kind_Singleton_instance = new Kind('Singleton', 0);
|
|
227
|
+
Kind_Factory_instance = new Kind('Factory', 1);
|
|
228
|
+
Kind_Scoped_instance = new Kind('Scoped', 2);
|
|
229
|
+
}
|
|
230
|
+
function Kind(name, ordinal) {
|
|
231
|
+
Enum.call(this, name, ordinal);
|
|
232
|
+
}
|
|
233
|
+
function Kind_Singleton_getInstance() {
|
|
234
|
+
Kind_initEntries();
|
|
235
|
+
return Kind_Singleton_instance;
|
|
236
|
+
}
|
|
237
|
+
function Callbacks(onClose) {
|
|
238
|
+
onClose = onClose === VOID ? null : onClose;
|
|
239
|
+
this.v56_1 = onClose;
|
|
240
|
+
}
|
|
241
|
+
protoOf(Callbacks).toString = function () {
|
|
242
|
+
return 'Callbacks(onClose=' + toString(this.v56_1) + ')';
|
|
243
|
+
};
|
|
244
|
+
protoOf(Callbacks).hashCode = function () {
|
|
245
|
+
return this.v56_1 == null ? 0 : hashCode(this.v56_1);
|
|
246
|
+
};
|
|
247
|
+
protoOf(Callbacks).equals = function (other) {
|
|
248
|
+
if (this === other)
|
|
249
|
+
return true;
|
|
250
|
+
if (!(other instanceof Callbacks))
|
|
251
|
+
return false;
|
|
252
|
+
var tmp0_other_with_cast = other instanceof Callbacks ? other : THROW_CCE();
|
|
253
|
+
if (!equals(this.v56_1, tmp0_other_with_cast.v56_1))
|
|
254
|
+
return false;
|
|
255
|
+
return true;
|
|
256
|
+
};
|
|
257
|
+
function KoinDefinition(module_0, factory) {
|
|
258
|
+
this.w56_1 = module_0;
|
|
259
|
+
this.x56_1 = factory;
|
|
260
|
+
}
|
|
261
|
+
protoOf(KoinDefinition).toString = function () {
|
|
262
|
+
return 'KoinDefinition(module=' + toString_0(this.w56_1) + ', factory=' + toString_0(this.x56_1) + ')';
|
|
263
|
+
};
|
|
264
|
+
protoOf(KoinDefinition).hashCode = function () {
|
|
265
|
+
var result = this.w56_1.hashCode();
|
|
266
|
+
result = imul(result, 31) + hashCode(this.x56_1) | 0;
|
|
267
|
+
return result;
|
|
268
|
+
};
|
|
269
|
+
protoOf(KoinDefinition).equals = function (other) {
|
|
270
|
+
if (this === other)
|
|
271
|
+
return true;
|
|
272
|
+
if (!(other instanceof KoinDefinition))
|
|
273
|
+
return false;
|
|
274
|
+
var tmp0_other_with_cast = other instanceof KoinDefinition ? other : THROW_CCE();
|
|
275
|
+
if (!this.w56_1.equals(tmp0_other_with_cast.w56_1))
|
|
276
|
+
return false;
|
|
277
|
+
if (!equals(this.x56_1, tmp0_other_with_cast.x56_1))
|
|
278
|
+
return false;
|
|
279
|
+
return true;
|
|
280
|
+
};
|
|
281
|
+
function ClosedScopeException(msg) {
|
|
282
|
+
Exception_init_$Init$(msg, this);
|
|
283
|
+
captureStack(this, ClosedScopeException);
|
|
284
|
+
}
|
|
285
|
+
function DefinitionOverrideException(msg) {
|
|
286
|
+
Exception_init_$Init$(msg, this);
|
|
287
|
+
captureStack(this, DefinitionOverrideException);
|
|
288
|
+
}
|
|
289
|
+
function InstanceCreationException(msg, parent) {
|
|
290
|
+
Exception_init_$Init$_0(msg, parent, this);
|
|
291
|
+
captureStack(this, InstanceCreationException);
|
|
292
|
+
}
|
|
293
|
+
function NoDefinitionFoundException(msg) {
|
|
294
|
+
Exception_init_$Init$(msg, this);
|
|
295
|
+
captureStack(this, NoDefinitionFoundException);
|
|
296
|
+
}
|
|
297
|
+
function ExtensionManager(_koin) {
|
|
298
|
+
this.y56_1 = _koin;
|
|
299
|
+
var tmp = this;
|
|
300
|
+
// Inline function 'kotlin.collections.hashMapOf' call
|
|
301
|
+
tmp.z56_1 = HashMap_init_$Create$();
|
|
302
|
+
}
|
|
303
|
+
function Companion_0() {
|
|
304
|
+
this.a57_1 = '\n\t';
|
|
305
|
+
}
|
|
306
|
+
var Companion_instance_0;
|
|
307
|
+
function Companion_getInstance_1() {
|
|
308
|
+
return Companion_instance_0;
|
|
309
|
+
}
|
|
310
|
+
function InstanceFactory(beanDefinition) {
|
|
311
|
+
this.b57_1 = beanDefinition;
|
|
312
|
+
}
|
|
313
|
+
protoOf(InstanceFactory).d57 = function (context) {
|
|
314
|
+
context.e57_1.c56("| (+) '" + this.b57_1.toString() + "'");
|
|
315
|
+
try {
|
|
316
|
+
var tmp0_elvis_lhs = context.i57_1;
|
|
317
|
+
var parameters = tmp0_elvis_lhs == null ? emptyParametersHolder() : tmp0_elvis_lhs;
|
|
318
|
+
return this.b57_1.o56_1(context.f57_1, parameters);
|
|
319
|
+
} catch ($p) {
|
|
320
|
+
if ($p instanceof Exception) {
|
|
321
|
+
var e = $p;
|
|
322
|
+
var stack = KoinPlatformTools_instance.l57(e);
|
|
323
|
+
context.e57_1.m57("* Instance creation error : could not create instance for '" + this.b57_1.toString() + "': " + stack);
|
|
324
|
+
throw new InstanceCreationException("Could not create instance for '" + this.b57_1.toString() + "'", e);
|
|
325
|
+
} else {
|
|
326
|
+
throw $p;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
function ResolutionContext(logger, scope, clazz, qualifier, parameters) {
|
|
331
|
+
qualifier = qualifier === VOID ? null : qualifier;
|
|
332
|
+
parameters = parameters === VOID ? null : parameters;
|
|
333
|
+
this.e57_1 = logger;
|
|
334
|
+
this.f57_1 = scope;
|
|
335
|
+
this.g57_1 = clazz;
|
|
336
|
+
this.h57_1 = qualifier;
|
|
337
|
+
this.i57_1 = parameters;
|
|
338
|
+
this.j57_1 = "t:'" + getFullName(this.g57_1) + "' - q:'" + toString(this.h57_1) + "'";
|
|
339
|
+
this.k57_1 = null;
|
|
340
|
+
}
|
|
341
|
+
protoOf(ResolutionContext).n57 = function (s) {
|
|
342
|
+
var rc = new ResolutionContext(this.e57_1, s, this.g57_1, this.h57_1, this.i57_1);
|
|
343
|
+
rc.k57_1 = s.r57_1;
|
|
344
|
+
return rc;
|
|
345
|
+
};
|
|
346
|
+
function NoClass() {
|
|
347
|
+
}
|
|
348
|
+
function getValue($this) {
|
|
349
|
+
var tmp0_elvis_lhs = $this.z57_1;
|
|
350
|
+
var tmp;
|
|
351
|
+
if (tmp0_elvis_lhs == null) {
|
|
352
|
+
var message = "Single instance created couldn't return value";
|
|
353
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
354
|
+
} else {
|
|
355
|
+
tmp = tmp0_elvis_lhs;
|
|
356
|
+
}
|
|
357
|
+
return tmp;
|
|
358
|
+
}
|
|
359
|
+
function SingleInstanceFactory$get$lambda(this$0, $context) {
|
|
360
|
+
return function () {
|
|
361
|
+
var tmp;
|
|
362
|
+
if (!this$0.a58($context)) {
|
|
363
|
+
this$0.z57_1 = this$0.d57($context);
|
|
364
|
+
tmp = Unit_instance;
|
|
365
|
+
}
|
|
366
|
+
return Unit_instance;
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
function SingleInstanceFactory(beanDefinition) {
|
|
370
|
+
InstanceFactory.call(this, beanDefinition);
|
|
371
|
+
this.z57_1 = null;
|
|
372
|
+
}
|
|
373
|
+
protoOf(SingleInstanceFactory).a58 = function (context) {
|
|
374
|
+
return !(this.z57_1 == null);
|
|
375
|
+
};
|
|
376
|
+
protoOf(SingleInstanceFactory).d57 = function (context) {
|
|
377
|
+
var tmp;
|
|
378
|
+
if (this.z57_1 == null) {
|
|
379
|
+
tmp = protoOf(InstanceFactory).d57.call(this, context);
|
|
380
|
+
} else {
|
|
381
|
+
tmp = getValue(this);
|
|
382
|
+
}
|
|
383
|
+
return tmp;
|
|
384
|
+
};
|
|
385
|
+
protoOf(SingleInstanceFactory).c57 = function (context) {
|
|
386
|
+
var tmp = KoinPlatformTools_instance;
|
|
387
|
+
tmp.b58(this, SingleInstanceFactory$get$lambda(this, context));
|
|
388
|
+
return getValue(this);
|
|
389
|
+
};
|
|
390
|
+
function EmptyLogger() {
|
|
391
|
+
Logger.call(this, Level_NONE_getInstance());
|
|
392
|
+
}
|
|
393
|
+
protoOf(EmptyLogger).k56 = function (level, msg) {
|
|
394
|
+
};
|
|
395
|
+
function Logger(level) {
|
|
396
|
+
level = level === VOID ? Level_INFO_getInstance() : level;
|
|
397
|
+
this.b56_1 = level;
|
|
398
|
+
}
|
|
399
|
+
protoOf(Logger).c56 = function (msg) {
|
|
400
|
+
this.d58(Level_DEBUG_getInstance(), msg);
|
|
401
|
+
};
|
|
402
|
+
protoOf(Logger).k2r = function (msg) {
|
|
403
|
+
this.d58(Level_WARNING_getInstance(), msg);
|
|
404
|
+
};
|
|
405
|
+
protoOf(Logger).m57 = function (msg) {
|
|
406
|
+
this.d58(Level_ERROR_getInstance(), msg);
|
|
407
|
+
};
|
|
408
|
+
protoOf(Logger).d58 = function (lvl, msg) {
|
|
409
|
+
// Inline function 'org.koin.core.logger.Logger.isAt' call
|
|
410
|
+
if (this.b56_1.p2(lvl) <= 0) {
|
|
411
|
+
this.k56(lvl, msg);
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
var Level_DEBUG_instance;
|
|
415
|
+
var Level_INFO_instance;
|
|
416
|
+
var Level_WARNING_instance;
|
|
417
|
+
var Level_ERROR_instance;
|
|
418
|
+
var Level_NONE_instance;
|
|
419
|
+
var Level_entriesInitialized;
|
|
420
|
+
function Level_initEntries() {
|
|
421
|
+
if (Level_entriesInitialized)
|
|
422
|
+
return Unit_instance;
|
|
423
|
+
Level_entriesInitialized = true;
|
|
424
|
+
Level_DEBUG_instance = new Level('DEBUG', 0);
|
|
425
|
+
Level_INFO_instance = new Level('INFO', 1);
|
|
426
|
+
Level_WARNING_instance = new Level('WARNING', 2);
|
|
427
|
+
Level_ERROR_instance = new Level('ERROR', 3);
|
|
428
|
+
Level_NONE_instance = new Level('NONE', 4);
|
|
429
|
+
}
|
|
430
|
+
function Level(name, ordinal) {
|
|
431
|
+
Enum.call(this, name, ordinal);
|
|
432
|
+
}
|
|
433
|
+
function Level_DEBUG_getInstance() {
|
|
434
|
+
Level_initEntries();
|
|
435
|
+
return Level_DEBUG_instance;
|
|
436
|
+
}
|
|
437
|
+
function Level_INFO_getInstance() {
|
|
438
|
+
Level_initEntries();
|
|
439
|
+
return Level_INFO_instance;
|
|
440
|
+
}
|
|
441
|
+
function Level_WARNING_getInstance() {
|
|
442
|
+
Level_initEntries();
|
|
443
|
+
return Level_WARNING_instance;
|
|
444
|
+
}
|
|
445
|
+
function Level_ERROR_getInstance() {
|
|
446
|
+
Level_initEntries();
|
|
447
|
+
return Level_ERROR_instance;
|
|
448
|
+
}
|
|
449
|
+
function Level_NONE_getInstance() {
|
|
450
|
+
Level_initEntries();
|
|
451
|
+
return Level_NONE_instance;
|
|
452
|
+
}
|
|
453
|
+
function Module(_createdAtStart) {
|
|
454
|
+
_createdAtStart = _createdAtStart === VOID ? false : _createdAtStart;
|
|
455
|
+
this.e58_1 = _createdAtStart;
|
|
456
|
+
this.f58_1 = generateId(KoinPlatformTools_instance);
|
|
457
|
+
this.g58_1 = LinkedHashSet_init_$Create$();
|
|
458
|
+
this.h58_1 = LinkedHashMap_init_$Create$();
|
|
459
|
+
this.i58_1 = LinkedHashSet_init_$Create$();
|
|
460
|
+
var tmp = this;
|
|
461
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
462
|
+
tmp.j58_1 = ArrayList_init_$Create$();
|
|
463
|
+
}
|
|
464
|
+
protoOf(Module).k58 = function (instanceFactory) {
|
|
465
|
+
var def = instanceFactory.b57_1;
|
|
466
|
+
var tmp0 = def.m56_1;
|
|
467
|
+
var tmp2 = def.n56_1;
|
|
468
|
+
// Inline function 'org.koin.core.definition.indexKey' call
|
|
469
|
+
var scopeQualifier = def.l56_1;
|
|
470
|
+
// Inline function 'kotlin.text.buildString' call
|
|
471
|
+
// Inline function 'kotlin.apply' call
|
|
472
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
473
|
+
this_0.z7(getFullName(tmp0));
|
|
474
|
+
this_0.a8(_Char___init__impl__6a9atx(58));
|
|
475
|
+
var tmp1_elvis_lhs = tmp2 == null ? null : tmp2.y();
|
|
476
|
+
this_0.z7(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
477
|
+
this_0.a8(_Char___init__impl__6a9atx(58));
|
|
478
|
+
this_0.y7(scopeQualifier);
|
|
479
|
+
var mapping = this_0.toString();
|
|
480
|
+
this.l58(mapping, instanceFactory);
|
|
481
|
+
};
|
|
482
|
+
protoOf(Module).m58 = function (instanceFactory) {
|
|
483
|
+
this.g58_1.j(instanceFactory);
|
|
484
|
+
};
|
|
485
|
+
protoOf(Module).l58 = function (mapping, factory) {
|
|
486
|
+
// Inline function 'kotlin.collections.set' call
|
|
487
|
+
this.h58_1.f2(mapping, factory);
|
|
488
|
+
};
|
|
489
|
+
protoOf(Module).equals = function (other) {
|
|
490
|
+
if (this === other)
|
|
491
|
+
return true;
|
|
492
|
+
if (!(other instanceof Module))
|
|
493
|
+
return false;
|
|
494
|
+
return this.f58_1 === other.f58_1;
|
|
495
|
+
};
|
|
496
|
+
protoOf(Module).hashCode = function () {
|
|
497
|
+
return getStringHashCode(this.f58_1);
|
|
498
|
+
};
|
|
499
|
+
function flatten(modules) {
|
|
500
|
+
// Inline function 'kotlin.collections.linkedSetOf' call
|
|
501
|
+
var flatten = LinkedHashSet_init_$Create$();
|
|
502
|
+
var stack = ArrayDeque_init_$Create$(asReversed(modules));
|
|
503
|
+
$l$loop_0: while (true) {
|
|
504
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
505
|
+
if (!!stack.r()) {
|
|
506
|
+
break $l$loop_0;
|
|
507
|
+
}
|
|
508
|
+
var current = stack.og();
|
|
509
|
+
if (!flatten.j(current)) {
|
|
510
|
+
continue $l$loop_0;
|
|
511
|
+
}
|
|
512
|
+
var _iterator__ex2g4s = current.j58_1.l();
|
|
513
|
+
while (_iterator__ex2g4s.m()) {
|
|
514
|
+
var module_0 = _iterator__ex2g4s.n();
|
|
515
|
+
if (!flatten.t(module_0)) {
|
|
516
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
517
|
+
stack.j(module_0);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return flatten;
|
|
522
|
+
}
|
|
523
|
+
function overrideError(factory, mapping) {
|
|
524
|
+
throw new DefinitionOverrideException('Already existing definition for ' + factory.b57_1.toString() + ' at ' + mapping);
|
|
525
|
+
}
|
|
526
|
+
function getFirstValue($this, clazz) {
|
|
527
|
+
var tmp0 = $this.n58_1;
|
|
528
|
+
var tmp$ret$1;
|
|
529
|
+
$l$block: {
|
|
530
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
531
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
532
|
+
while (_iterator__ex2g4s.m()) {
|
|
533
|
+
var element = _iterator__ex2g4s.n();
|
|
534
|
+
if (clazz.ya(element)) {
|
|
535
|
+
tmp$ret$1 = element;
|
|
536
|
+
break $l$block;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
tmp$ret$1 = null;
|
|
540
|
+
}
|
|
541
|
+
var tmp = tmp$ret$1;
|
|
542
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : null;
|
|
543
|
+
}
|
|
544
|
+
function getIndexedValue($this, clazz) {
|
|
545
|
+
// Inline function 'kotlin.takeIf' call
|
|
546
|
+
var this_0 = $this.n58_1.p($this.p58_1);
|
|
547
|
+
var tmp;
|
|
548
|
+
if (clazz.ya(this_0)) {
|
|
549
|
+
tmp = this_0;
|
|
550
|
+
} else {
|
|
551
|
+
tmp = null;
|
|
552
|
+
}
|
|
553
|
+
var tmp_0 = tmp;
|
|
554
|
+
var currentValue = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null;
|
|
555
|
+
if (!(currentValue == null)) {
|
|
556
|
+
$this.q58();
|
|
557
|
+
}
|
|
558
|
+
return currentValue;
|
|
559
|
+
}
|
|
560
|
+
function ParametersHolder(_values, useIndexedValues) {
|
|
561
|
+
var tmp;
|
|
562
|
+
if (_values === VOID) {
|
|
563
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
564
|
+
tmp = ArrayList_init_$Create$();
|
|
565
|
+
} else {
|
|
566
|
+
tmp = _values;
|
|
567
|
+
}
|
|
568
|
+
_values = tmp;
|
|
569
|
+
useIndexedValues = useIndexedValues === VOID ? null : useIndexedValues;
|
|
570
|
+
this.n58_1 = _values;
|
|
571
|
+
this.o58_1 = useIndexedValues;
|
|
572
|
+
this.p58_1 = 0;
|
|
573
|
+
}
|
|
574
|
+
protoOf(ParametersHolder).e2 = function () {
|
|
575
|
+
return this.n58_1;
|
|
576
|
+
};
|
|
577
|
+
protoOf(ParametersHolder).r = function () {
|
|
578
|
+
return this.n58_1.r();
|
|
579
|
+
};
|
|
580
|
+
protoOf(ParametersHolder).r58 = function (clazz) {
|
|
581
|
+
var tmp;
|
|
582
|
+
if (this.n58_1.r()) {
|
|
583
|
+
tmp = null;
|
|
584
|
+
} else {
|
|
585
|
+
var tmp_0;
|
|
586
|
+
switch (this.o58_1) {
|
|
587
|
+
case null:
|
|
588
|
+
var tmp1_elvis_lhs = getIndexedValue(this, clazz);
|
|
589
|
+
tmp_0 = tmp1_elvis_lhs == null ? getFirstValue(this, clazz) : tmp1_elvis_lhs;
|
|
590
|
+
break;
|
|
591
|
+
case true:
|
|
592
|
+
tmp_0 = getIndexedValue(this, clazz);
|
|
593
|
+
break;
|
|
594
|
+
default:
|
|
595
|
+
tmp_0 = getFirstValue(this, clazz);
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
tmp = tmp_0;
|
|
599
|
+
}
|
|
600
|
+
return tmp;
|
|
601
|
+
};
|
|
602
|
+
protoOf(ParametersHolder).q58 = function () {
|
|
603
|
+
if (this.p58_1 < get_lastIndex(this.n58_1)) {
|
|
604
|
+
this.p58_1 = this.p58_1 + 1 | 0;
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
protoOf(ParametersHolder).toString = function () {
|
|
608
|
+
return 'DefinitionParameters' + toString_0(toList_0(this.n58_1));
|
|
609
|
+
};
|
|
610
|
+
protoOf(ParametersHolder).equals = function (other) {
|
|
611
|
+
if (this === other)
|
|
612
|
+
return true;
|
|
613
|
+
if (!(other instanceof ParametersHolder))
|
|
614
|
+
return false;
|
|
615
|
+
return equals(this.e2(), other.e2()) && this.o58_1 == other.o58_1;
|
|
616
|
+
};
|
|
617
|
+
protoOf(ParametersHolder).hashCode = function () {
|
|
618
|
+
var tmp = imul(31, hashCode(this.e2()));
|
|
619
|
+
var tmp0_safe_receiver = this.o58_1;
|
|
620
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getBooleanHashCode(tmp0_safe_receiver);
|
|
621
|
+
return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
622
|
+
};
|
|
623
|
+
function emptyParametersHolder() {
|
|
624
|
+
return new ParametersHolder();
|
|
625
|
+
}
|
|
626
|
+
function _q(name) {
|
|
627
|
+
return new StringQualifier(name);
|
|
628
|
+
}
|
|
629
|
+
function StringQualifier(value) {
|
|
630
|
+
this.s58_1 = value;
|
|
631
|
+
}
|
|
632
|
+
protoOf(StringQualifier).y = function () {
|
|
633
|
+
return this.s58_1;
|
|
634
|
+
};
|
|
635
|
+
protoOf(StringQualifier).toString = function () {
|
|
636
|
+
return this.s58_1;
|
|
637
|
+
};
|
|
638
|
+
protoOf(StringQualifier).hashCode = function () {
|
|
639
|
+
return getStringHashCode(this.s58_1);
|
|
640
|
+
};
|
|
641
|
+
protoOf(StringQualifier).equals = function (other) {
|
|
642
|
+
if (this === other)
|
|
643
|
+
return true;
|
|
644
|
+
if (!(other instanceof StringQualifier))
|
|
645
|
+
return false;
|
|
646
|
+
var tmp0_other_with_cast = other instanceof StringQualifier ? other : THROW_CCE();
|
|
647
|
+
if (!(this.s58_1 === tmp0_other_with_cast.s58_1))
|
|
648
|
+
return false;
|
|
649
|
+
return true;
|
|
650
|
+
};
|
|
651
|
+
function TypeQualifier() {
|
|
652
|
+
}
|
|
653
|
+
function addAllEagerInstances($this, module_0) {
|
|
654
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
655
|
+
var _iterator__ex2g4s = module_0.g58_1.l();
|
|
656
|
+
while (_iterator__ex2g4s.m()) {
|
|
657
|
+
var element = _iterator__ex2g4s.n();
|
|
658
|
+
var tmp0 = $this.t55_1;
|
|
659
|
+
// Inline function 'kotlin.collections.set' call
|
|
660
|
+
var key = element.b57_1.hashCode();
|
|
661
|
+
tmp0.f2(key, element);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function loadModule($this, module_0, allowOverride) {
|
|
665
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
666
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
667
|
+
var _iterator__ex2g4s = module_0.h58_1.w().l();
|
|
668
|
+
while (_iterator__ex2g4s.m()) {
|
|
669
|
+
var element = _iterator__ex2g4s.n();
|
|
670
|
+
// Inline function 'kotlin.collections.component1' call
|
|
671
|
+
var mapping = element.x();
|
|
672
|
+
// Inline function 'kotlin.collections.component2' call
|
|
673
|
+
var factory = element.y();
|
|
674
|
+
$this.t58(allowOverride, mapping, factory);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
function createEagerInstances($this, instances) {
|
|
678
|
+
var defaultContext = new ResolutionContext($this.r55_1.j55_1, $this.r55_1.l55_1.y55_1, getKClass(NoClass));
|
|
679
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
680
|
+
var _iterator__ex2g4s = instances.l();
|
|
681
|
+
while (_iterator__ex2g4s.m()) {
|
|
682
|
+
var element = _iterator__ex2g4s.n();
|
|
683
|
+
element.c57(defaultContext);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
function InstanceRegistry(_koin) {
|
|
687
|
+
this.r55_1 = _koin;
|
|
688
|
+
this.s55_1 = KoinPlatformTools_instance.u58();
|
|
689
|
+
this.t55_1 = KoinPlatformTools_instance.u58();
|
|
690
|
+
}
|
|
691
|
+
protoOf(InstanceRegistry).u55 = function (modules, allowOverride) {
|
|
692
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
693
|
+
var _iterator__ex2g4s = modules.l();
|
|
694
|
+
while (_iterator__ex2g4s.m()) {
|
|
695
|
+
var element = _iterator__ex2g4s.n();
|
|
696
|
+
loadModule(this, element, allowOverride);
|
|
697
|
+
addAllEagerInstances(this, element);
|
|
698
|
+
}
|
|
699
|
+
};
|
|
700
|
+
protoOf(InstanceRegistry).d56 = function () {
|
|
701
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
702
|
+
var this_0 = this.t55_1.e2();
|
|
703
|
+
var tmp$ret$0 = copyToArray(this_0);
|
|
704
|
+
var instances = arrayListOf(tmp$ret$0.slice());
|
|
705
|
+
this.t55_1.i2();
|
|
706
|
+
createEagerInstances(this, instances);
|
|
707
|
+
};
|
|
708
|
+
protoOf(InstanceRegistry).v58 = function (allowOverride, mapping, factory, logWarning) {
|
|
709
|
+
if (this.s55_1.c2(mapping) == null)
|
|
710
|
+
null;
|
|
711
|
+
else {
|
|
712
|
+
// Inline function 'kotlin.let' call
|
|
713
|
+
if (!allowOverride) {
|
|
714
|
+
overrideError(factory, mapping);
|
|
715
|
+
} else if (logWarning) {
|
|
716
|
+
this.r55_1.j55_1.k2r("(+) override index '" + mapping + "' -> '" + factory.b57_1.toString() + "'");
|
|
717
|
+
var tmp0 = this.t55_1.e2();
|
|
718
|
+
var tmp$ret$1;
|
|
719
|
+
$l$block: {
|
|
720
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
721
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
722
|
+
while (_iterator__ex2g4s.m()) {
|
|
723
|
+
var element = _iterator__ex2g4s.n();
|
|
724
|
+
if (element.b57_1.equals(factory.b57_1)) {
|
|
725
|
+
tmp$ret$1 = element;
|
|
726
|
+
break $l$block;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
tmp$ret$1 = null;
|
|
730
|
+
}
|
|
731
|
+
var existingFactory = tmp$ret$1;
|
|
732
|
+
if (!(existingFactory == null)) {
|
|
733
|
+
this.t55_1.g2(factory.b57_1.hashCode());
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
this.r55_1.j55_1.c56("(+) index '" + mapping + "' -> '" + factory.b57_1.toString() + "'");
|
|
738
|
+
// Inline function 'kotlin.collections.set' call
|
|
739
|
+
this.s55_1.f2(mapping, factory);
|
|
740
|
+
};
|
|
741
|
+
protoOf(InstanceRegistry).t58 = function (allowOverride, mapping, factory, logWarning, $super) {
|
|
742
|
+
logWarning = logWarning === VOID ? true : logWarning;
|
|
743
|
+
var tmp;
|
|
744
|
+
if ($super === VOID) {
|
|
745
|
+
this.v58(allowOverride, mapping, factory, logWarning);
|
|
746
|
+
tmp = Unit_instance;
|
|
747
|
+
} else {
|
|
748
|
+
tmp = $super.v58.call(this, allowOverride, mapping, factory, logWarning);
|
|
749
|
+
}
|
|
750
|
+
return tmp;
|
|
751
|
+
};
|
|
752
|
+
protoOf(InstanceRegistry).w58 = function (clazz, qualifier, scopeQualifier) {
|
|
753
|
+
// Inline function 'org.koin.core.definition.indexKey' call
|
|
754
|
+
// Inline function 'kotlin.text.buildString' call
|
|
755
|
+
// Inline function 'kotlin.apply' call
|
|
756
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
757
|
+
this_0.z7(getFullName(clazz));
|
|
758
|
+
this_0.a8(_Char___init__impl__6a9atx(58));
|
|
759
|
+
var tmp1_elvis_lhs = qualifier == null ? null : qualifier.y();
|
|
760
|
+
this_0.z7(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
|
|
761
|
+
this_0.a8(_Char___init__impl__6a9atx(58));
|
|
762
|
+
this_0.y7(scopeQualifier);
|
|
763
|
+
var indexKey = this_0.toString();
|
|
764
|
+
return this.s55_1.c2(indexKey);
|
|
765
|
+
};
|
|
766
|
+
protoOf(InstanceRegistry).x58 = function (qualifier, klass, context) {
|
|
767
|
+
var tmp0_safe_receiver = context.f57_1.r57_1;
|
|
768
|
+
var tmp;
|
|
769
|
+
if (tmp0_safe_receiver == null) {
|
|
770
|
+
tmp = null;
|
|
771
|
+
} else {
|
|
772
|
+
// Inline function 'kotlin.let' call
|
|
773
|
+
context.k57_1 = tmp0_safe_receiver;
|
|
774
|
+
tmp = this.y58(qualifier, klass, tmp0_safe_receiver, context);
|
|
775
|
+
}
|
|
776
|
+
return tmp;
|
|
777
|
+
};
|
|
778
|
+
protoOf(InstanceRegistry).y58 = function (qualifier, clazz, scopeQualifier, instanceContext) {
|
|
779
|
+
var tmp0_safe_receiver = this.w58(clazz, qualifier, scopeQualifier);
|
|
780
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c57(instanceContext);
|
|
781
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : null;
|
|
782
|
+
};
|
|
783
|
+
protoOf(InstanceRegistry).z58 = function (clazz, instanceContext) {
|
|
784
|
+
// Inline function 'kotlin.collections.filter' call
|
|
785
|
+
var tmp0 = this.s55_1.e2();
|
|
786
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
787
|
+
var destination = ArrayList_init_$Create$();
|
|
788
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
789
|
+
while (_iterator__ex2g4s.m()) {
|
|
790
|
+
var element = _iterator__ex2g4s.n();
|
|
791
|
+
if (equals(element.b57_1.l56_1, instanceContext.f57_1.o57_1) && (element.b57_1.m56_1.equals(clazz) || element.b57_1.q56_1.t(clazz))) {
|
|
792
|
+
destination.j(element);
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
796
|
+
var tmp0_0 = distinct(destination);
|
|
797
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
798
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
799
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
800
|
+
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
801
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
802
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
803
|
+
var tmp = element_0.c57(instanceContext);
|
|
804
|
+
var tmp0_safe_receiver = (tmp == null ? true : !(tmp == null)) ? tmp : null;
|
|
805
|
+
if (tmp0_safe_receiver == null)
|
|
806
|
+
null;
|
|
807
|
+
else {
|
|
808
|
+
// Inline function 'kotlin.let' call
|
|
809
|
+
destination_0.j(tmp0_safe_receiver);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return destination_0;
|
|
813
|
+
};
|
|
814
|
+
protoOf(InstanceRegistry).j56 = function () {
|
|
815
|
+
return this.s55_1.o();
|
|
816
|
+
};
|
|
817
|
+
function OptionRegistry() {
|
|
818
|
+
var tmp = this;
|
|
819
|
+
// Inline function 'kotlin.collections.hashMapOf' call
|
|
820
|
+
tmp.a59_1 = HashMap_init_$Create$();
|
|
821
|
+
}
|
|
822
|
+
function PropertyRegistry(_koin) {
|
|
823
|
+
this.b59_1 = _koin;
|
|
824
|
+
this.c59_1 = KoinPlatformTools_instance.u58();
|
|
825
|
+
}
|
|
826
|
+
function loadModule_0($this, module_0) {
|
|
827
|
+
$this.w55_1.q(module_0.i58_1);
|
|
828
|
+
}
|
|
829
|
+
function Companion_1() {
|
|
830
|
+
Companion_instance_1 = this;
|
|
831
|
+
this.t56_1 = '_root_';
|
|
832
|
+
this.u56_1 = _q('_root_');
|
|
833
|
+
}
|
|
834
|
+
var Companion_instance_1;
|
|
835
|
+
function Companion_getInstance_2() {
|
|
836
|
+
if (Companion_instance_1 == null)
|
|
837
|
+
new Companion_1();
|
|
838
|
+
return Companion_instance_1;
|
|
839
|
+
}
|
|
840
|
+
function ScopeRegistry(_koin) {
|
|
841
|
+
Companion_getInstance_2();
|
|
842
|
+
this.v55_1 = _koin;
|
|
843
|
+
this.w55_1 = KoinPlatformTools_instance.d59();
|
|
844
|
+
this.x55_1 = KoinPlatformTools_instance.u58();
|
|
845
|
+
this.y55_1 = new Scope(Companion_getInstance_2().u56_1, '_root_', true, VOID, this.v55_1);
|
|
846
|
+
this.w55_1.j(this.y55_1.o57_1);
|
|
847
|
+
var tmp0 = this.x55_1;
|
|
848
|
+
var tmp2 = this.y55_1.p57_1;
|
|
849
|
+
// Inline function 'kotlin.collections.set' call
|
|
850
|
+
var value = this.y55_1;
|
|
851
|
+
tmp0.f2(tmp2, value);
|
|
852
|
+
}
|
|
853
|
+
protoOf(ScopeRegistry).z55 = function (modules) {
|
|
854
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
855
|
+
var _iterator__ex2g4s = modules.l();
|
|
856
|
+
while (_iterator__ex2g4s.m()) {
|
|
857
|
+
var element = _iterator__ex2g4s.n();
|
|
858
|
+
loadModule_0(this, element);
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
function resolveFromContextOrNull($this, scope, instanceContext, lookupParent) {
|
|
862
|
+
// Inline function 'org.koin.core.resolution.CoreResolver.resolveFromInjectedParameters' call
|
|
863
|
+
var tmp;
|
|
864
|
+
if (instanceContext.i57_1 == null || instanceContext.i57_1.r()) {
|
|
865
|
+
tmp = null;
|
|
866
|
+
} else {
|
|
867
|
+
instanceContext.e57_1.c56('|- ? ' + instanceContext.j57_1 + ' look in injected parameters');
|
|
868
|
+
tmp = instanceContext.i57_1.r58(instanceContext.g57_1);
|
|
869
|
+
}
|
|
870
|
+
var tmp0_elvis_lhs = tmp;
|
|
871
|
+
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? resolveFromRegistry($this, scope, instanceContext) : tmp0_elvis_lhs;
|
|
872
|
+
var tmp_0;
|
|
873
|
+
if (tmp1_elvis_lhs == null) {
|
|
874
|
+
// Inline function 'org.koin.core.resolution.CoreResolver.resolveFromStackedParameters' call
|
|
875
|
+
var tmp0_safe_receiver = scope.w57_1;
|
|
876
|
+
var current = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p14();
|
|
877
|
+
var tmp_1;
|
|
878
|
+
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
879
|
+
if (current == null || current.r()) {
|
|
880
|
+
tmp_1 = null;
|
|
881
|
+
} else {
|
|
882
|
+
instanceContext.e57_1.c56('|- ? ' + instanceContext.j57_1 + ' look in stack parameters');
|
|
883
|
+
var parameters = current.jg();
|
|
884
|
+
tmp_1 = parameters == null ? null : parameters.r58(instanceContext.g57_1);
|
|
885
|
+
}
|
|
886
|
+
tmp_0 = tmp_1;
|
|
887
|
+
} else {
|
|
888
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
889
|
+
}
|
|
890
|
+
var tmp2_elvis_lhs = tmp_0;
|
|
891
|
+
var tmp_2;
|
|
892
|
+
if (tmp2_elvis_lhs == null) {
|
|
893
|
+
var tmp$ret$3;
|
|
894
|
+
$l$block: {
|
|
895
|
+
// Inline function 'org.koin.core.resolution.CoreResolver.resolveFromScopeSource' call
|
|
896
|
+
if (scope.q57_1 || scope.u57_1 == null || !(instanceContext.g57_1.ya(scope.u57_1) && instanceContext.h57_1 == null)) {
|
|
897
|
+
tmp$ret$3 = null;
|
|
898
|
+
break $l$block;
|
|
899
|
+
}
|
|
900
|
+
instanceContext.e57_1.c56('|- ? ' + instanceContext.j57_1 + ' look at scope source');
|
|
901
|
+
var tmp_3;
|
|
902
|
+
if (instanceContext.g57_1.ya(scope.u57_1)) {
|
|
903
|
+
var tmp_4 = scope.u57_1;
|
|
904
|
+
tmp_3 = (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null;
|
|
905
|
+
} else {
|
|
906
|
+
tmp_3 = null;
|
|
907
|
+
}
|
|
908
|
+
tmp$ret$3 = tmp_3;
|
|
909
|
+
}
|
|
910
|
+
tmp_2 = tmp$ret$3;
|
|
911
|
+
} else {
|
|
912
|
+
tmp_2 = tmp2_elvis_lhs;
|
|
913
|
+
}
|
|
914
|
+
var tmp3_elvis_lhs = tmp_2;
|
|
915
|
+
var tmp_5;
|
|
916
|
+
if (tmp3_elvis_lhs == null) {
|
|
917
|
+
var tmp$ret$4;
|
|
918
|
+
$l$block_0: {
|
|
919
|
+
// Inline function 'org.koin.core.resolution.CoreResolver.resolveFromScopeArchetype' call
|
|
920
|
+
var tmp_6;
|
|
921
|
+
if (scope.q57_1) {
|
|
922
|
+
tmp_6 = true;
|
|
923
|
+
} else {
|
|
924
|
+
var tmp_7 = scope.o57_1;
|
|
925
|
+
tmp_6 = !(tmp_7 instanceof TypeQualifier);
|
|
926
|
+
}
|
|
927
|
+
if (tmp_6) {
|
|
928
|
+
tmp$ret$4 = null;
|
|
929
|
+
break $l$block_0;
|
|
930
|
+
}
|
|
931
|
+
instanceContext.e57_1.c56('|- ? ' + instanceContext.j57_1 + ' look at scope archetype');
|
|
932
|
+
tmp$ret$4 = $this.e59_1.m55_1.x58(instanceContext.h57_1, instanceContext.g57_1, instanceContext);
|
|
933
|
+
}
|
|
934
|
+
tmp_5 = tmp$ret$4;
|
|
935
|
+
} else {
|
|
936
|
+
tmp_5 = tmp3_elvis_lhs;
|
|
937
|
+
}
|
|
938
|
+
var tmp4_elvis_lhs = tmp_5;
|
|
939
|
+
var tmp_8;
|
|
940
|
+
if (tmp4_elvis_lhs == null) {
|
|
941
|
+
var tmp_9;
|
|
942
|
+
if (lookupParent) {
|
|
943
|
+
tmp_9 = resolveFromParentScopes($this, scope, instanceContext);
|
|
944
|
+
} else {
|
|
945
|
+
tmp_9 = null == null ? resolveInExtensions($this, scope, instanceContext) : null;
|
|
946
|
+
}
|
|
947
|
+
tmp_8 = tmp_9;
|
|
948
|
+
} else {
|
|
949
|
+
tmp_8 = tmp4_elvis_lhs;
|
|
950
|
+
}
|
|
951
|
+
return tmp_8;
|
|
952
|
+
}
|
|
953
|
+
function resolveFromContextOrNull$default($this, scope, instanceContext, lookupParent, $super) {
|
|
954
|
+
lookupParent = lookupParent === VOID ? true : lookupParent;
|
|
955
|
+
return resolveFromContextOrNull($this, scope, instanceContext, lookupParent);
|
|
956
|
+
}
|
|
957
|
+
function resolveFromRegistry($this, scope, ctx) {
|
|
958
|
+
return $this.e59_1.m55_1.y58(ctx.h57_1, ctx.g57_1, scope.o57_1, ctx);
|
|
959
|
+
}
|
|
960
|
+
function resolveFromParentScopes($this, scope, ctx) {
|
|
961
|
+
if (scope.q57_1)
|
|
962
|
+
return null;
|
|
963
|
+
ctx.e57_1.c56('|- ? ' + ctx.j57_1 + ' look in other scopes');
|
|
964
|
+
return findInOtherScope($this, scope, ctx);
|
|
965
|
+
}
|
|
966
|
+
function findInOtherScope($this, scope, ctx) {
|
|
967
|
+
var parentScopes = scope.t57_1.o() > 1 ? flatten_0(scope.t57_1) : scope.t57_1;
|
|
968
|
+
var tmp$ret$1;
|
|
969
|
+
$l$block: {
|
|
970
|
+
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
971
|
+
var _iterator__ex2g4s = parentScopes.l();
|
|
972
|
+
while (_iterator__ex2g4s.m()) {
|
|
973
|
+
var element = _iterator__ex2g4s.n();
|
|
974
|
+
ctx.e57_1.c56('|- ? ' + ctx.j57_1 + " look in scope '" + element.p57_1 + "'");
|
|
975
|
+
var instanceContext = !element.q57_1 ? ctx.n57(element) : ctx;
|
|
976
|
+
var result = resolveFromContextOrNull($this, element, instanceContext, false);
|
|
977
|
+
if (!(result == null)) {
|
|
978
|
+
tmp$ret$1 = result;
|
|
979
|
+
break $l$block;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
tmp$ret$1 = null;
|
|
983
|
+
}
|
|
984
|
+
return tmp$ret$1;
|
|
985
|
+
}
|
|
986
|
+
function resolveInExtensions($this, scope, ctx) {
|
|
987
|
+
var tmp0 = $this.f59_1;
|
|
988
|
+
var tmp$ret$1;
|
|
989
|
+
$l$block: {
|
|
990
|
+
// Inline function 'kotlin.collections.firstNotNullOfOrNull' call
|
|
991
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
992
|
+
while (_iterator__ex2g4s.m()) {
|
|
993
|
+
var element = _iterator__ex2g4s.n();
|
|
994
|
+
ctx.e57_1.c56("|- ['" + element.g59() + "'] ?");
|
|
995
|
+
var tmp = element.h59(scope, ctx);
|
|
996
|
+
var result = (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
997
|
+
if (!(result == null)) {
|
|
998
|
+
tmp$ret$1 = result;
|
|
999
|
+
break $l$block;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
tmp$ret$1 = null;
|
|
1003
|
+
}
|
|
1004
|
+
return tmp$ret$1;
|
|
1005
|
+
}
|
|
1006
|
+
function CoreResolver(_koin) {
|
|
1007
|
+
this.e59_1 = _koin;
|
|
1008
|
+
var tmp = this;
|
|
1009
|
+
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1010
|
+
tmp.f59_1 = ArrayList_init_$Create$();
|
|
1011
|
+
}
|
|
1012
|
+
protoOf(CoreResolver).i59 = function (scope, instanceContext) {
|
|
1013
|
+
var tmp0_elvis_lhs = resolveFromContextOrNull$default(this, scope, instanceContext);
|
|
1014
|
+
var tmp;
|
|
1015
|
+
if (tmp0_elvis_lhs == null) {
|
|
1016
|
+
var tmp0_safe_receiver = instanceContext.h57_1;
|
|
1017
|
+
var tmp_0;
|
|
1018
|
+
if (tmp0_safe_receiver == null) {
|
|
1019
|
+
tmp_0 = null;
|
|
1020
|
+
} else {
|
|
1021
|
+
// Inline function 'kotlin.let' call
|
|
1022
|
+
tmp_0 = " and qualifier '" + toString_0(tmp0_safe_receiver) + "'";
|
|
1023
|
+
}
|
|
1024
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
1025
|
+
var qualifierString = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
1026
|
+
throw new NoDefinitionFoundException("No definition found for type '" + getFullName(instanceContext.g57_1) + "'" + qualifierString + '. Check your Modules configuration and add missing type and/or qualifier!');
|
|
1027
|
+
} else {
|
|
1028
|
+
tmp = tmp0_elvis_lhs;
|
|
1029
|
+
}
|
|
1030
|
+
return tmp;
|
|
1031
|
+
};
|
|
1032
|
+
function flatten_0(scopes) {
|
|
1033
|
+
// Inline function 'kotlin.collections.linkedSetOf' call
|
|
1034
|
+
var flatten = LinkedHashSet_init_$Create$();
|
|
1035
|
+
var stack = ArrayDeque_init_$Create$(asReversed(scopes));
|
|
1036
|
+
$l$loop_0: while (true) {
|
|
1037
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1038
|
+
if (!!stack.r()) {
|
|
1039
|
+
break $l$loop_0;
|
|
1040
|
+
}
|
|
1041
|
+
var current = stack.og();
|
|
1042
|
+
if (!flatten.j(current)) {
|
|
1043
|
+
continue $l$loop_0;
|
|
1044
|
+
}
|
|
1045
|
+
var _iterator__ex2g4s = current.t57_1.l();
|
|
1046
|
+
while (_iterator__ex2g4s.m()) {
|
|
1047
|
+
var scope = _iterator__ex2g4s.n();
|
|
1048
|
+
if (!flatten.t(scope)) {
|
|
1049
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
1050
|
+
stack.j(scope);
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
return flatten;
|
|
1055
|
+
}
|
|
1056
|
+
function resolve($this, clazz, qualifier, parameters) {
|
|
1057
|
+
var tmp0 = $this.s57_1.j55_1;
|
|
1058
|
+
// Inline function 'org.koin.core.logger.Logger.isAt' call
|
|
1059
|
+
var lvl = Level_DEBUG_getInstance();
|
|
1060
|
+
if (!(tmp0.b56_1.p2(lvl) <= 0)) {
|
|
1061
|
+
return resolveInstance($this, qualifier, clazz, parameters);
|
|
1062
|
+
}
|
|
1063
|
+
// Inline function 'org.koin.core.scope.Scope.logInstanceRequest' call
|
|
1064
|
+
var tmp;
|
|
1065
|
+
if (qualifier == null) {
|
|
1066
|
+
tmp = null;
|
|
1067
|
+
} else {
|
|
1068
|
+
// Inline function 'kotlin.let' call
|
|
1069
|
+
tmp = " with qualifier '" + toString(qualifier) + "'";
|
|
1070
|
+
}
|
|
1071
|
+
var tmp1_elvis_lhs = tmp;
|
|
1072
|
+
var qualifierString = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
|
|
1073
|
+
var scopeId = $this.q57_1 ? '' : " - scope:'" + $this.p57_1 + "'";
|
|
1074
|
+
$this.s57_1.j55_1.k56(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "'" + qualifierString + scopeId + '...');
|
|
1075
|
+
// Inline function 'kotlin.time.measureTimedValue' call
|
|
1076
|
+
// Inline function 'kotlin.time.measureTimedValue' call
|
|
1077
|
+
var mark = Monotonic_instance.af();
|
|
1078
|
+
var result = resolveInstance($this, qualifier, clazz, parameters);
|
|
1079
|
+
var result_0 = new TimedValue(result, ValueTimeMark__elapsedNow_impl_eonqvs(mark));
|
|
1080
|
+
// Inline function 'org.koin.core.scope.Scope.logInstanceDuration' call
|
|
1081
|
+
var duration = result_0.bp_1;
|
|
1082
|
+
$this.s57_1.j55_1.k56(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "' in " + get_inMs(duration) + ' ms');
|
|
1083
|
+
return result_0.ap_1;
|
|
1084
|
+
}
|
|
1085
|
+
function resolveInstance($this, qualifier, clazz, parameters) {
|
|
1086
|
+
// Inline function 'org.koin.core.scope.Scope.checkScopeIsOpen' call
|
|
1087
|
+
if ($this.x57_1) {
|
|
1088
|
+
throw new ClosedScopeException("Scope '" + $this.p57_1 + "' is closed");
|
|
1089
|
+
}
|
|
1090
|
+
var instanceContext = new ResolutionContext($this.s57_1.j55_1, $this, clazz, qualifier, parameters);
|
|
1091
|
+
return stackParametersCall($this, parameters, instanceContext);
|
|
1092
|
+
}
|
|
1093
|
+
function stackParametersCall($this, parameters, instanceContext) {
|
|
1094
|
+
if (parameters == null) {
|
|
1095
|
+
return resolveFromContext($this, instanceContext);
|
|
1096
|
+
}
|
|
1097
|
+
var tmp0 = $this.s57_1.j55_1;
|
|
1098
|
+
// Inline function 'org.koin.core.logger.Logger.log' call
|
|
1099
|
+
var lvl = Level_DEBUG_getInstance();
|
|
1100
|
+
// Inline function 'org.koin.core.logger.Logger.isAt' call
|
|
1101
|
+
if (tmp0.b56_1.p2(lvl) <= 0) {
|
|
1102
|
+
var tmp$ret$1 = '| >> parameters ' + toString(parameters);
|
|
1103
|
+
tmp0.k56(lvl, tmp$ret$1);
|
|
1104
|
+
}
|
|
1105
|
+
var stack = onParameterOnStack($this, parameters);
|
|
1106
|
+
try {
|
|
1107
|
+
return resolveFromContext($this, instanceContext);
|
|
1108
|
+
}finally {
|
|
1109
|
+
$this.s57_1.j55_1.c56('| << parameters');
|
|
1110
|
+
clearParameterStack($this, stack);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
function onParameterOnStack($this, parameters) {
|
|
1114
|
+
var stack = getOrCreateParameterStack($this);
|
|
1115
|
+
stack.kg(parameters);
|
|
1116
|
+
return stack;
|
|
1117
|
+
}
|
|
1118
|
+
function clearParameterStack($this, stack) {
|
|
1119
|
+
stack.ng();
|
|
1120
|
+
if (stack.r()) {
|
|
1121
|
+
var tmp0_safe_receiver = $this.w57_1;
|
|
1122
|
+
if (tmp0_safe_receiver == null)
|
|
1123
|
+
null;
|
|
1124
|
+
else {
|
|
1125
|
+
tmp0_safe_receiver.t3();
|
|
1126
|
+
}
|
|
1127
|
+
$this.w57_1 = null;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
function getOrCreateParameterStack($this) {
|
|
1131
|
+
var tmp0_safe_receiver = $this.w57_1;
|
|
1132
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p14();
|
|
1133
|
+
var tmp;
|
|
1134
|
+
if (tmp1_elvis_lhs == null) {
|
|
1135
|
+
// Inline function 'kotlin.let' call
|
|
1136
|
+
var it = ArrayDeque_init_$Create$_0();
|
|
1137
|
+
$this.w57_1 = new ThreadLocalRef();
|
|
1138
|
+
var tmp0_safe_receiver_0 = $this.w57_1;
|
|
1139
|
+
if (tmp0_safe_receiver_0 == null)
|
|
1140
|
+
null;
|
|
1141
|
+
else {
|
|
1142
|
+
tmp0_safe_receiver_0.z54(it);
|
|
1143
|
+
}
|
|
1144
|
+
tmp = it;
|
|
1145
|
+
} else {
|
|
1146
|
+
tmp = tmp1_elvis_lhs;
|
|
1147
|
+
}
|
|
1148
|
+
return tmp;
|
|
1149
|
+
}
|
|
1150
|
+
function resolveFromContext($this, instanceContext) {
|
|
1151
|
+
return $this.s57_1.k55_1.i59($this, instanceContext);
|
|
1152
|
+
}
|
|
1153
|
+
function Scope(scopeQualifier, id, isRoot, scopeArchetype, _koin) {
|
|
1154
|
+
isRoot = isRoot === VOID ? false : isRoot;
|
|
1155
|
+
scopeArchetype = scopeArchetype === VOID ? null : scopeArchetype;
|
|
1156
|
+
this.o57_1 = scopeQualifier;
|
|
1157
|
+
this.p57_1 = id;
|
|
1158
|
+
this.q57_1 = isRoot;
|
|
1159
|
+
this.r57_1 = scopeArchetype;
|
|
1160
|
+
this.s57_1 = _koin;
|
|
1161
|
+
this.t57_1 = ArrayList_init_$Create$();
|
|
1162
|
+
this.u57_1 = null;
|
|
1163
|
+
this.v57_1 = LinkedHashSet_init_$Create$();
|
|
1164
|
+
this.w57_1 = null;
|
|
1165
|
+
this.x57_1 = false;
|
|
1166
|
+
}
|
|
1167
|
+
protoOf(Scope).j59 = function (clazz, qualifier, parameters) {
|
|
1168
|
+
return resolve(this, clazz, qualifier, parameters == null ? null : parameters());
|
|
1169
|
+
};
|
|
1170
|
+
protoOf(Scope).k59 = function (clazz) {
|
|
1171
|
+
var context = new ResolutionContext(this.s57_1.j55_1, this, clazz);
|
|
1172
|
+
var tmp = this.s57_1.m55_1.z58(clazz, context);
|
|
1173
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
1174
|
+
var tmp0 = this.t57_1;
|
|
1175
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1176
|
+
var destination = ArrayList_init_$Create$();
|
|
1177
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
1178
|
+
while (_iterator__ex2g4s.m()) {
|
|
1179
|
+
var element = _iterator__ex2g4s.n();
|
|
1180
|
+
var list = element.k59(clazz);
|
|
1181
|
+
addAll(destination, list);
|
|
1182
|
+
}
|
|
1183
|
+
return plus(tmp, destination);
|
|
1184
|
+
};
|
|
1185
|
+
protoOf(Scope).toString = function () {
|
|
1186
|
+
return "['" + this.p57_1 + "']";
|
|
1187
|
+
};
|
|
1188
|
+
function get_inMs(_this__u8e3s4) {
|
|
1189
|
+
// Inline function 'kotlin.Long.div' call
|
|
1190
|
+
var this_0 = _Duration___get_inWholeMicroseconds__impl__8oe8vv(_this__u8e3s4);
|
|
1191
|
+
return toNumber(this_0) / 1000.0;
|
|
1192
|
+
}
|
|
1193
|
+
function koinApplication(appDeclaration) {
|
|
1194
|
+
return koinApplication_0(true, appDeclaration);
|
|
1195
|
+
}
|
|
1196
|
+
function koinApplication_0(createEagerInstances, appDeclaration) {
|
|
1197
|
+
createEagerInstances = createEagerInstances === VOID ? true : createEagerInstances;
|
|
1198
|
+
appDeclaration = appDeclaration === VOID ? null : appDeclaration;
|
|
1199
|
+
var koinApplication = Companion_instance.g56();
|
|
1200
|
+
if (appDeclaration == null)
|
|
1201
|
+
null;
|
|
1202
|
+
else
|
|
1203
|
+
appDeclaration(koinApplication);
|
|
1204
|
+
if (createEagerInstances) {
|
|
1205
|
+
koinApplication.a56();
|
|
1206
|
+
}
|
|
1207
|
+
return koinApplication;
|
|
1208
|
+
}
|
|
1209
|
+
function module_0(createdAtStart, moduleDeclaration) {
|
|
1210
|
+
createdAtStart = createdAtStart === VOID ? false : createdAtStart;
|
|
1211
|
+
var module_0 = new Module(createdAtStart);
|
|
1212
|
+
moduleDeclaration(module_0);
|
|
1213
|
+
return module_0;
|
|
1214
|
+
}
|
|
1215
|
+
function get_classNames() {
|
|
1216
|
+
_init_properties_KClassExt_kt__5ro5b2();
|
|
1217
|
+
return classNames;
|
|
1218
|
+
}
|
|
1219
|
+
var classNames;
|
|
1220
|
+
function getFullName(_this__u8e3s4) {
|
|
1221
|
+
_init_properties_KClassExt_kt__5ro5b2();
|
|
1222
|
+
var tmp0_elvis_lhs = get_classNames().c2(_this__u8e3s4);
|
|
1223
|
+
return tmp0_elvis_lhs == null ? saveCache(_this__u8e3s4) : tmp0_elvis_lhs;
|
|
1224
|
+
}
|
|
1225
|
+
function saveCache(_this__u8e3s4) {
|
|
1226
|
+
_init_properties_KClassExt_kt__5ro5b2();
|
|
1227
|
+
var name = KoinPlatformTools_instance.l59(_this__u8e3s4);
|
|
1228
|
+
// Inline function 'kotlin.collections.set' call
|
|
1229
|
+
get_classNames().f2(_this__u8e3s4, name);
|
|
1230
|
+
return name;
|
|
1231
|
+
}
|
|
1232
|
+
var properties_initialized_KClassExt_kt_dizwhw;
|
|
1233
|
+
function _init_properties_KClassExt_kt__5ro5b2() {
|
|
1234
|
+
if (!properties_initialized_KClassExt_kt_dizwhw) {
|
|
1235
|
+
properties_initialized_KClassExt_kt_dizwhw = true;
|
|
1236
|
+
classNames = KoinPlatformTools_instance.u58();
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
function getKClassDefaultName(_this__u8e3s4, kClass) {
|
|
1240
|
+
return 'KClass@' + kClass.hashCode();
|
|
1241
|
+
}
|
|
1242
|
+
function generateId(_this__u8e3s4) {
|
|
1243
|
+
return Companion_getInstance().up().toString();
|
|
1244
|
+
}
|
|
1245
|
+
function KoinPlatformTools() {
|
|
1246
|
+
}
|
|
1247
|
+
protoOf(KoinPlatformTools).l57 = function (e) {
|
|
1248
|
+
return e.toString() + toString_0(split(Exception_init_$Create$().toString(), ['\n']));
|
|
1249
|
+
};
|
|
1250
|
+
protoOf(KoinPlatformTools).l59 = function (kClass) {
|
|
1251
|
+
var tmp0_elvis_lhs = kClass.xa();
|
|
1252
|
+
return tmp0_elvis_lhs == null ? getKClassDefaultName(this, kClass) : tmp0_elvis_lhs;
|
|
1253
|
+
};
|
|
1254
|
+
protoOf(KoinPlatformTools).b58 = function (lock, block) {
|
|
1255
|
+
return block();
|
|
1256
|
+
};
|
|
1257
|
+
protoOf(KoinPlatformTools).u58 = function () {
|
|
1258
|
+
return ConcurrentMutableMap_init_$Create$();
|
|
1259
|
+
};
|
|
1260
|
+
protoOf(KoinPlatformTools).d59 = function () {
|
|
1261
|
+
return ConcurrentMutableSet_init_$Create$();
|
|
1262
|
+
};
|
|
1263
|
+
var KoinPlatformTools_instance;
|
|
1264
|
+
function KoinPlatformTools_getInstance() {
|
|
1265
|
+
return KoinPlatformTools_instance;
|
|
1266
|
+
}
|
|
1267
|
+
//region block: init
|
|
1268
|
+
Companion_instance = new Companion();
|
|
1269
|
+
Companion_instance_0 = new Companion_0();
|
|
1270
|
+
KoinPlatformTools_instance = new KoinPlatformTools();
|
|
1271
|
+
//endregion
|
|
1272
|
+
//region block: exports
|
|
1273
|
+
_.$_$ = _.$_$ || {};
|
|
1274
|
+
_.$_$.a = Kind_Singleton_getInstance;
|
|
1275
|
+
_.$_$.b = Companion_getInstance_2;
|
|
1276
|
+
_.$_$.c = BeanDefinition;
|
|
1277
|
+
_.$_$.d = KoinDefinition;
|
|
1278
|
+
_.$_$.e = SingleInstanceFactory;
|
|
1279
|
+
_.$_$.f = koinApplication;
|
|
1280
|
+
_.$_$.g = module_0;
|
|
1281
|
+
//endregion
|
|
1282
|
+
return _;
|
|
1283
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Stately-stately-concurrency.js'), require('./Stately-stately-concurrent-collections.js')));
|
|
1284
|
+
|
|
1285
|
+
//# sourceMappingURL=projects-core-koin-core.js.map
|