@doordeck/doordeck-headless-sdk 0.31.0 → 0.32.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.
Files changed (51) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1484 -1484
  2. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  3. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +33 -23
  4. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -1
  5. package/kotlin/MultiplatformSettings-multiplatform-settings.js +11 -11
  6. package/kotlin/Stately-stately-concurrency.js +9 -9
  7. package/kotlin/Stately-stately-concurrent-collections.js +87 -87
  8. package/kotlin/doordeck-sdk.d.ts +33 -27
  9. package/kotlin/doordeck-sdk.js +14002 -14031
  10. package/kotlin/doordeck-sdk.js.map +1 -1
  11. package/kotlin/kotlin-kotlin-stdlib.js +3422 -3210
  12. package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
  13. package/kotlin/kotlinx-atomicfu.js +71 -71
  14. package/kotlin/kotlinx-atomicfu.js.map +1 -1
  15. package/kotlin/kotlinx-coroutines-core.js +2854 -2898
  16. package/kotlin/kotlinx-coroutines-core.js.map +1 -1
  17. package/kotlin/kotlinx-io-kotlinx-io-core.js +938 -453
  18. package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -1
  19. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2344 -2283
  20. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  21. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js +8 -0
  22. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
  23. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +2146 -1806
  24. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  25. package/kotlin/ktor-ktor-client-ktor-client-core.js +3510 -3374
  26. package/kotlin/ktor-ktor-client-ktor-client-core.js.map +1 -1
  27. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +490 -431
  28. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +1 -1
  29. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +232 -232
  30. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +1 -1
  31. package/kotlin/ktor-ktor-http.js +1101 -1046
  32. package/kotlin/ktor-ktor-http.js.map +1 -1
  33. package/kotlin/ktor-ktor-io.js +947 -941
  34. package/kotlin/ktor-ktor-io.js.map +1 -1
  35. package/kotlin/ktor-ktor-shared-ktor-events.js +24 -24
  36. package/kotlin/ktor-ktor-shared-ktor-events.js.map +1 -1
  37. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +9 -9
  38. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +1 -1
  39. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +325 -325
  40. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +1 -1
  41. package/kotlin/ktor-ktor-shared-ktor-serialization.js +130 -130
  42. package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +1 -1
  43. package/kotlin/ktor-ktor-shared-ktor-websockets.js +115 -101
  44. package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +1 -1
  45. package/kotlin/ktor-ktor-utils.js +1133 -806
  46. package/kotlin/ktor-ktor-utils.js.map +1 -1
  47. package/kotlin/projects-core-koin-core.js +561 -527
  48. package/kotlin/projects-core-koin-core.js.map +1 -1
  49. package/package.json +3 -5
  50. package/kotlin/uuid.js +0 -152
  51. package/kotlin/uuid.js.map +0 -1
@@ -1,47 +1,49 @@
1
- (function (_, kotlin_kotlin, kotlin_co_touchlab_stately_concurrency, kotlin_com_benasher44_uuid, kotlin_co_touchlab_stately_concurrent_collections) {
1
+ (function (_, kotlin_kotlin, kotlin_co_touchlab_stately_concurrency, kotlin_co_touchlab_stately_concurrent_collections) {
2
2
  'use strict';
3
3
  //region block: imports
4
4
  var imul = Math.imul;
5
- var Unit_instance = kotlin_kotlin.$_$.k5;
6
- var protoOf = kotlin_kotlin.$_$.rb;
7
- var Pair = kotlin_kotlin.$_$.bf;
8
- var initMetadataForClass = kotlin_kotlin.$_$.ra;
9
- var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
10
- var VOID = kotlin_kotlin.$_$.f;
11
- var emptyList = kotlin_kotlin.$_$.b7;
12
- var toString = kotlin_kotlin.$_$.fg;
13
- var toString_0 = kotlin_kotlin.$_$.vb;
14
- var equals = kotlin_kotlin.$_$.ka;
15
- var joinToString = kotlin_kotlin.$_$.q7;
16
- var THROW_CCE = kotlin_kotlin.$_$.ef;
17
- var hashCode = kotlin_kotlin.$_$.qa;
18
- var Enum = kotlin_kotlin.$_$.ue;
19
- var Exception = kotlin_kotlin.$_$.we;
20
- var Exception_init_$Init$ = kotlin_kotlin.$_$.n1;
21
- var captureStack = kotlin_kotlin.$_$.ca;
22
- var Exception_init_$Init$_0 = kotlin_kotlin.$_$.o1;
23
- var HashMap_init_$Create$ = kotlin_kotlin.$_$.q;
24
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y1;
25
- var HashSet_init_$Create$ = kotlin_kotlin.$_$.t;
26
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
27
- var getKClassFromExpression = kotlin_kotlin.$_$.d;
28
- var getStringHashCode = kotlin_kotlin.$_$.pa;
29
- var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.y;
30
- var asReversed = kotlin_kotlin.$_$.e6;
31
- var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.l;
32
- var get_lastIndex = kotlin_kotlin.$_$.t7;
33
- var toList = kotlin_kotlin.$_$.t8;
34
- var copyToArray = kotlin_kotlin.$_$.x6;
35
- var arrayListOf = kotlin_kotlin.$_$.c6;
36
- var ArrayDeque_init_$Create$_0 = kotlin_kotlin.$_$.k;
37
- var ThreadLocalRef = kotlin_co_touchlab_stately_concurrency.$_$.a;
38
- var initMetadataForObject = kotlin_kotlin.$_$.xa;
39
- var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
40
- var Monotonic_instance = kotlin_kotlin.$_$.b5;
5
+ var Unit_instance = kotlin_kotlin.$_$.j5;
6
+ var protoOf = kotlin_kotlin.$_$.nb;
7
+ var Monotonic_instance = kotlin_kotlin.$_$.a5;
41
8
  var ValueTimeMark__elapsedNow_impl_eonqvs = kotlin_kotlin.$_$.q2;
42
- var _Duration___get_inWholeNanoseconds__impl__r5x4mr = kotlin_kotlin.$_$.l2;
43
- var Exception_init_$Create$ = kotlin_kotlin.$_$.m1;
44
- var split = kotlin_kotlin.$_$.md;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.na;
10
+ var initMetadataForCompanion = kotlin_kotlin.$_$.oa;
11
+ var VOID = kotlin_kotlin.$_$.h;
12
+ var emptyList = kotlin_kotlin.$_$.x6;
13
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
14
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r2;
15
+ var equals = kotlin_kotlin.$_$.ga;
16
+ var joinTo = kotlin_kotlin.$_$.n7;
17
+ var THROW_CCE = kotlin_kotlin.$_$.af;
18
+ var hashCode = kotlin_kotlin.$_$.ma;
19
+ var Enum = kotlin_kotlin.$_$.pe;
20
+ var toString = kotlin_kotlin.$_$.bg;
21
+ var toString_0 = kotlin_kotlin.$_$.rb;
22
+ var Exception = kotlin_kotlin.$_$.re;
23
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.o1;
24
+ var captureStack = kotlin_kotlin.$_$.y9;
25
+ var Exception_init_$Init$_0 = kotlin_kotlin.$_$.p1;
26
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.s;
27
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.z1;
28
+ var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.a1;
29
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
30
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
31
+ var getStringHashCode = kotlin_kotlin.$_$.la;
32
+ var asReversed = kotlin_kotlin.$_$.c6;
33
+ var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.n;
34
+ var get_lastIndex = kotlin_kotlin.$_$.p7;
35
+ var toList = kotlin_kotlin.$_$.p8;
36
+ var getKClass = kotlin_kotlin.$_$.f;
37
+ var copyToArray = kotlin_kotlin.$_$.t6;
38
+ var arrayListOf = kotlin_kotlin.$_$.a6;
39
+ var TimedValue = kotlin_kotlin.$_$.ge;
40
+ var ArrayDeque_init_$Create$_0 = kotlin_kotlin.$_$.m;
41
+ var ThreadLocalRef = kotlin_co_touchlab_stately_concurrency.$_$.a;
42
+ var _Duration___get_inWholeMicroseconds__impl__8oe8vv = kotlin_kotlin.$_$.l2;
43
+ var initMetadataForObject = kotlin_kotlin.$_$.ta;
44
+ var Companion_getInstance = kotlin_kotlin.$_$.b5;
45
+ var Exception_init_$Create$ = kotlin_kotlin.$_$.n1;
46
+ var split = kotlin_kotlin.$_$.hd;
45
47
  var ConcurrentMutableMap_init_$Create$ = kotlin_co_touchlab_stately_concurrent_collections.$_$.a;
46
48
  //endregion
47
49
  //region block: pre-declaration
@@ -58,9 +60,10 @@
58
60
  initMetadataForClass(KoinApplicationAlreadyStartedException, 'KoinApplicationAlreadyStartedException', VOID, Exception);
59
61
  initMetadataForClass(NoDefinitionFoundException, 'NoDefinitionFoundException', VOID, Exception);
60
62
  initMetadataForClass(ExtensionManager, 'ExtensionManager');
61
- initMetadataForClass(InstanceContext, 'InstanceContext');
62
63
  initMetadataForCompanion(Companion_0);
63
64
  initMetadataForClass(InstanceFactory, 'InstanceFactory');
65
+ initMetadataForClass(ResolutionContext, 'ResolutionContext');
66
+ initMetadataForClass(NoClass, 'NoClass', NoClass);
64
67
  initMetadataForClass(SingleInstanceFactory, 'SingleInstanceFactory', VOID, InstanceFactory);
65
68
  initMetadataForClass(Logger, 'Logger');
66
69
  initMetadataForClass(EmptyLogger, 'EmptyLogger', EmptyLogger, Logger);
@@ -75,74 +78,74 @@
75
78
  initMetadataForClass(Scope, 'Scope');
76
79
  initMetadataForObject(KoinPlatform, 'KoinPlatform');
77
80
  initMetadataForObject(GlobalContext, 'GlobalContext');
78
- initMetadataForObject(KoinPlatformTimeTools, 'KoinPlatformTimeTools');
79
81
  initMetadataForObject(KoinPlatformTools, 'KoinPlatformTools');
80
82
  //endregion
81
83
  function Koin() {
82
- this.c52_1 = new ScopeRegistry(this);
83
- this.d52_1 = new InstanceRegistry(this);
84
- this.e52_1 = new PropertyRegistry(this);
85
- this.f52_1 = new ExtensionManager(this);
86
- this.g52_1 = new EmptyLogger();
84
+ this.n54_1 = new ScopeRegistry(this);
85
+ this.o54_1 = new InstanceRegistry(this);
86
+ this.p54_1 = new PropertyRegistry(this);
87
+ this.q54_1 = new ExtensionManager(this);
88
+ this.r54_1 = new EmptyLogger();
87
89
  }
88
- protoOf(Koin).h52 = function (modules, allowOverride, createEagerInstances) {
90
+ protoOf(Koin).s54 = function (modules, allowOverride, createEagerInstances) {
89
91
  var flattedModules = flatten(modules);
90
- this.d52_1.l52(flattedModules, allowOverride);
91
- this.c52_1.q52(flattedModules);
92
+ this.o54_1.w54(flattedModules, allowOverride);
93
+ this.n54_1.b55(flattedModules);
92
94
  if (createEagerInstances) {
93
- this.r52();
95
+ this.c55();
94
96
  }
95
97
  };
96
- protoOf(Koin).r52 = function () {
97
- this.g52_1.t52('Create eager instances ...');
98
- // Inline function 'org.koin.core.time.measureDuration' call
99
- // Inline function 'org.koin.core.time.measureTimedValue' call
100
- var start = KoinPlatformTimeTools_instance.u52();
101
- this.d52_1.v52();
102
- var value = Unit_instance;
103
- var stop = KoinPlatformTimeTools_instance.u52();
104
- // Inline function 'kotlin.Long.div' call
105
- var tmp$ret$0 = stop.v2(start).l3() / 1000000.0;
106
- var duration = (new Pair(value, tmp$ret$0)).dg_1;
107
- this.g52_1.t52('Created eager instances in ' + duration + ' ms');
98
+ protoOf(Koin).c55 = function () {
99
+ this.r54_1.e55('Create eager instances ...');
100
+ // Inline function 'kotlin.time.measureTime' call
101
+ // Inline function 'kotlin.contracts.contract' call
102
+ // Inline function 'kotlin.time.measureTime' call
103
+ // Inline function 'kotlin.contracts.contract' call
104
+ var mark = Monotonic_instance.ce();
105
+ // Inline function 'org.koin.core.Koin.createEagerInstances.<anonymous>' call
106
+ this.o54_1.f55();
107
+ var duration = ValueTimeMark__elapsedNow_impl_eonqvs(mark);
108
+ this.r54_1.e55('Created eager instances in ' + get_inMs(duration) + ' ms');
108
109
  };
109
110
  function loadModules($this, modules) {
110
- $this.w52_1.h52(modules, $this.x52_1, false);
111
+ $this.g55_1.s54(modules, $this.h55_1, false);
111
112
  }
112
113
  function Companion() {
113
114
  }
114
- protoOf(Companion).y52 = function () {
115
+ protoOf(Companion).i55 = function () {
115
116
  var app = new KoinApplication();
116
117
  return app;
117
118
  };
118
119
  var Companion_instance;
119
- function Companion_getInstance() {
120
+ function Companion_getInstance_0() {
120
121
  return Companion_instance;
121
122
  }
122
123
  function KoinApplication() {
123
- this.w52_1 = new Koin();
124
- this.x52_1 = true;
125
- }
126
- protoOf(KoinApplication).z52 = function (modules) {
127
- if (this.w52_1.g52_1.c53(Level_INFO_getInstance())) {
128
- // Inline function 'org.koin.core.time.measureDuration' call
129
- // Inline function 'org.koin.core.time.measureTimedValue' call
130
- var start = KoinPlatformTimeTools_instance.u52();
124
+ this.g55_1 = new Koin();
125
+ this.h55_1 = true;
126
+ }
127
+ protoOf(KoinApplication).j55 = function (modules) {
128
+ // Inline function 'org.koin.core.logger.Logger.isAt' call
129
+ var this_0 = this.g55_1.r54_1;
130
+ var lvl = Level_INFO_getInstance();
131
+ if (this_0.d55_1.u2(lvl) <= 0) {
132
+ // Inline function 'kotlin.time.measureTime' call
133
+ // Inline function 'kotlin.contracts.contract' call
134
+ // Inline function 'kotlin.time.measureTime' call
135
+ // Inline function 'kotlin.contracts.contract' call
136
+ var mark = Monotonic_instance.ce();
137
+ // Inline function 'org.koin.core.KoinApplication.modules.<anonymous>' call
131
138
  loadModules(this, modules);
132
- var value = Unit_instance;
133
- var stop = KoinPlatformTimeTools_instance.u52();
134
- // Inline function 'kotlin.Long.div' call
135
- var tmp$ret$0 = stop.v2(start).l3() / 1000000.0;
136
- var duration = (new Pair(value, tmp$ret$0)).dg_1;
137
- var count = this.w52_1.d52_1.a53();
138
- this.w52_1.g52_1.b53(Level_INFO_getInstance(), 'Started ' + count + ' definitions in ' + duration + ' ms');
139
+ var duration = ValueTimeMark__elapsedNow_impl_eonqvs(mark);
140
+ var count = this.g55_1.o54_1.k55();
141
+ this.g55_1.r54_1.l55(Level_INFO_getInstance(), 'Started ' + count + ' definitions in ' + get_inMs(duration) + ' ms');
139
142
  } else {
140
143
  loadModules(this, modules);
141
144
  }
142
145
  return this;
143
146
  };
144
147
  function startKoin(appDeclaration) {
145
- return KoinPlatformTools_instance.d53().e53(appDeclaration);
148
+ return KoinPlatformTools_instance.m55().n55(appDeclaration);
146
149
  }
147
150
  function BeanDefinition$toString$lambda(it) {
148
151
  return getFullName(it);
@@ -157,72 +160,65 @@
157
160
  tmp = secondaryTypes;
158
161
  }
159
162
  secondaryTypes = tmp;
160
- this.f53_1 = scopeQualifier;
161
- this.g53_1 = primaryType;
162
- this.h53_1 = qualifier;
163
- this.i53_1 = definition;
164
- this.j53_1 = kind;
165
- this.k53_1 = secondaryTypes;
166
- this.l53_1 = new Callbacks();
167
- this.m53_1 = false;
163
+ this.o55_1 = scopeQualifier;
164
+ this.p55_1 = primaryType;
165
+ this.q55_1 = qualifier;
166
+ this.r55_1 = definition;
167
+ this.s55_1 = kind;
168
+ this.t55_1 = secondaryTypes;
169
+ this.u55_1 = new Callbacks();
170
+ this.v55_1 = false;
168
171
  }
169
172
  protoOf(BeanDefinition).toString = function () {
170
- var defKind = this.j53_1.toString();
171
- var defType = "'" + getFullName(this.g53_1) + "'";
172
- var tmp;
173
- if (this.h53_1 == null) {
174
- tmp = null;
175
- } else {
176
- // Inline function 'kotlin.let' call
177
- // Inline function 'kotlin.contracts.contract' call
178
- // Inline function 'org.koin.core.definition.BeanDefinition.toString.<anonymous>' call
179
- tmp = ',qualifier:' + toString(this.h53_1);
180
- }
181
- var tmp0_elvis_lhs = tmp;
182
- var defName = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
183
- // Inline function 'kotlin.let' call
173
+ // Inline function 'kotlin.text.buildString' call
174
+ // Inline function 'kotlin.contracts.contract' call
175
+ // Inline function 'kotlin.apply' call
176
+ var this_0 = StringBuilder_init_$Create$();
184
177
  // Inline function 'kotlin.contracts.contract' call
185
178
  // Inline function 'org.koin.core.definition.BeanDefinition.toString.<anonymous>' call
186
- var it = this.f53_1;
187
- var defScope = equals(it, Companion_getInstance_1().o53_1) ? '' : ',scope:' + toString_0(this.f53_1);
188
- var tmp_0;
179
+ this_0.n8(_Char___init__impl__6a9atx(91));
180
+ this_0.l8(this.s55_1);
181
+ this_0.m8(": '");
182
+ this_0.m8(getFullName(this.p55_1));
183
+ this_0.n8(_Char___init__impl__6a9atx(39));
184
+ if (!(this.q55_1 == null)) {
185
+ this_0.m8(',qualifier:');
186
+ this_0.l8(this.q55_1);
187
+ }
188
+ if (!equals(this.o55_1, Companion_getInstance_2().x55_1)) {
189
+ this_0.m8(',scope:');
190
+ this_0.l8(this.o55_1);
191
+ }
189
192
  // Inline function 'kotlin.collections.isNotEmpty' call
190
- if (!this.k53_1.p()) {
191
- var tmp_1 = this.k53_1;
192
- var typesAsString = joinToString(tmp_1, ',', VOID, VOID, VOID, VOID, BeanDefinition$toString$lambda);
193
- tmp_0 = ',binds:' + typesAsString;
194
- } else {
195
- tmp_0 = '';
193
+ if (!this.t55_1.h()) {
194
+ this_0.m8(',binds:');
195
+ var tmp = this.t55_1;
196
+ joinTo(tmp, this_0, ',', VOID, VOID, VOID, VOID, BeanDefinition$toString$lambda);
196
197
  }
197
- var defOtherTypes = tmp_0;
198
- return '[' + defKind + ':' + defType + defName + defScope + defOtherTypes + ']';
198
+ this_0.n8(_Char___init__impl__6a9atx(93));
199
+ return this_0.toString();
199
200
  };
200
201
  protoOf(BeanDefinition).equals = function (other) {
201
202
  if (this === other)
202
203
  return true;
203
204
  if (!(other instanceof BeanDefinition))
204
205
  THROW_CCE();
205
- if (!this.g53_1.equals(other.g53_1))
206
+ if (!this.p55_1.equals(other.p55_1))
206
207
  return false;
207
- if (!equals(this.h53_1, other.h53_1))
208
+ if (!equals(this.q55_1, other.q55_1))
208
209
  return false;
209
- if (!equals(this.f53_1, other.f53_1))
210
+ if (!equals(this.o55_1, other.o55_1))
210
211
  return false;
211
212
  return true;
212
213
  };
213
214
  protoOf(BeanDefinition).hashCode = function () {
214
- var tmp1_safe_receiver = this.h53_1;
215
- var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : hashCode(tmp1_safe_receiver);
216
- var result = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
217
- result = imul(31, result) + this.g53_1.hashCode() | 0;
218
- result = imul(31, result) + hashCode(this.f53_1) | 0;
215
+ var tmp0_safe_receiver = this.q55_1;
216
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
217
+ var result = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
218
+ result = imul(31, result) + this.p55_1.hashCode() | 0;
219
+ result = imul(31, result) + hashCode(this.o55_1) | 0;
219
220
  return result;
220
221
  };
221
- function indexKey(clazz, typeQualifier, scopeQualifier) {
222
- var tmp0_elvis_lhs = typeQualifier == null ? null : typeQualifier.u();
223
- var tq = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
224
- return getFullName(clazz) + ':' + tq + ':' + toString_0(scopeQualifier);
225
- }
226
222
  var Kind_Singleton_instance;
227
223
  var Kind_Factory_instance;
228
224
  var Kind_Scoped_instance;
@@ -244,13 +240,13 @@
244
240
  }
245
241
  function Callbacks(onClose) {
246
242
  onClose = onClose === VOID ? null : onClose;
247
- this.p53_1 = onClose;
243
+ this.y55_1 = onClose;
248
244
  }
249
245
  protoOf(Callbacks).toString = function () {
250
- return 'Callbacks(onClose=' + toString(this.p53_1) + ')';
246
+ return 'Callbacks(onClose=' + toString(this.y55_1) + ')';
251
247
  };
252
248
  protoOf(Callbacks).hashCode = function () {
253
- return this.p53_1 == null ? 0 : hashCode(this.p53_1);
249
+ return this.y55_1 == null ? 0 : hashCode(this.y55_1);
254
250
  };
255
251
  protoOf(Callbacks).equals = function (other) {
256
252
  if (this === other)
@@ -258,20 +254,20 @@
258
254
  if (!(other instanceof Callbacks))
259
255
  return false;
260
256
  var tmp0_other_with_cast = other instanceof Callbacks ? other : THROW_CCE();
261
- if (!equals(this.p53_1, tmp0_other_with_cast.p53_1))
257
+ if (!equals(this.y55_1, tmp0_other_with_cast.y55_1))
262
258
  return false;
263
259
  return true;
264
260
  };
265
261
  function KoinDefinition(module_0, factory) {
266
- this.q53_1 = module_0;
267
- this.r53_1 = factory;
262
+ this.z55_1 = module_0;
263
+ this.a56_1 = factory;
268
264
  }
269
265
  protoOf(KoinDefinition).toString = function () {
270
- return 'KoinDefinition(module=' + toString_0(this.q53_1) + ', factory=' + toString_0(this.r53_1) + ')';
266
+ return 'KoinDefinition(module=' + toString_0(this.z55_1) + ', factory=' + toString_0(this.a56_1) + ')';
271
267
  };
272
268
  protoOf(KoinDefinition).hashCode = function () {
273
- var result = this.q53_1.hashCode();
274
- result = imul(result, 31) + hashCode(this.r53_1) | 0;
269
+ var result = this.z55_1.hashCode();
270
+ result = imul(result, 31) + hashCode(this.a56_1) | 0;
275
271
  return result;
276
272
  };
277
273
  protoOf(KoinDefinition).equals = function (other) {
@@ -280,9 +276,9 @@
280
276
  if (!(other instanceof KoinDefinition))
281
277
  return false;
282
278
  var tmp0_other_with_cast = other instanceof KoinDefinition ? other : THROW_CCE();
283
- if (!this.q53_1.equals(tmp0_other_with_cast.q53_1))
279
+ if (!this.z55_1.equals(tmp0_other_with_cast.z55_1))
284
280
  return false;
285
- if (!equals(this.r53_1, tmp0_other_with_cast.r53_1))
281
+ if (!equals(this.a56_1, tmp0_other_with_cast.a56_1))
286
282
  return false;
287
283
  return true;
288
284
  };
@@ -307,46 +303,52 @@
307
303
  captureStack(this, NoDefinitionFoundException);
308
304
  }
309
305
  function ExtensionManager(_koin) {
310
- this.s53_1 = _koin;
306
+ this.b56_1 = _koin;
311
307
  var tmp = this;
312
308
  // Inline function 'kotlin.collections.hashMapOf' call
313
- tmp.t53_1 = HashMap_init_$Create$();
314
- }
315
- function InstanceContext(logger, scope, parameters) {
316
- parameters = parameters === VOID ? null : parameters;
317
- this.u53_1 = logger;
318
- this.v53_1 = scope;
319
- this.w53_1 = parameters;
309
+ tmp.c56_1 = HashMap_init_$Create$();
320
310
  }
321
311
  function Companion_0() {
322
- this.x53_1 = '\n\t';
312
+ this.d56_1 = '\n\t';
323
313
  }
324
314
  var Companion_instance_0;
325
- function Companion_getInstance_0() {
315
+ function Companion_getInstance_1() {
326
316
  return Companion_instance_0;
327
317
  }
328
318
  function InstanceFactory(beanDefinition) {
329
- this.y53_1 = beanDefinition;
319
+ this.e56_1 = beanDefinition;
330
320
  }
331
- protoOf(InstanceFactory).a54 = function (context) {
332
- context.u53_1.t52("| (+) '" + this.y53_1.toString() + "'");
321
+ protoOf(InstanceFactory).g56 = function (context) {
322
+ context.h56_1.e55("| (+) '" + this.e56_1.toString() + "'");
333
323
  try {
334
- var tmp0_elvis_lhs = context.w53_1;
324
+ var tmp0_elvis_lhs = context.l56_1;
335
325
  var parameters = tmp0_elvis_lhs == null ? emptyParametersHolder() : tmp0_elvis_lhs;
336
- return this.y53_1.i53_1(context.v53_1, parameters);
326
+ return this.e56_1.r55_1(context.i56_1, parameters);
337
327
  } catch ($p) {
338
328
  if ($p instanceof Exception) {
339
329
  var e = $p;
340
- var stack = KoinPlatformTools_instance.b54(e);
341
- context.u53_1.c54("* Instance creation error : could not create instance for '" + this.y53_1.toString() + "': " + stack);
342
- throw new InstanceCreationException("Could not create instance for '" + this.y53_1.toString() + "'", e);
330
+ var stack = KoinPlatformTools_instance.n56(e);
331
+ context.h56_1.o56("* Instance creation error : could not create instance for '" + this.e56_1.toString() + "': " + stack);
332
+ throw new InstanceCreationException("Could not create instance for '" + this.e56_1.toString() + "'", e);
343
333
  } else {
344
334
  throw $p;
345
335
  }
346
336
  }
347
337
  };
338
+ function ResolutionContext(logger, scope, clazz, qualifier, parameters) {
339
+ qualifier = qualifier === VOID ? null : qualifier;
340
+ parameters = parameters === VOID ? null : parameters;
341
+ this.h56_1 = logger;
342
+ this.i56_1 = scope;
343
+ this.j56_1 = clazz;
344
+ this.k56_1 = qualifier;
345
+ this.l56_1 = parameters;
346
+ this.m56_1 = "t:'" + getFullName(this.j56_1) + "' - q:'" + toString(this.k56_1) + "'";
347
+ }
348
+ function NoClass() {
349
+ }
348
350
  function getValue($this) {
349
- var tmp0_elvis_lhs = $this.e54_1;
351
+ var tmp0_elvis_lhs = $this.q56_1;
350
352
  var tmp;
351
353
  if (tmp0_elvis_lhs == null) {
352
354
  var message = "Single instance created couldn't return value";
@@ -359,8 +361,8 @@
359
361
  function SingleInstanceFactory$get$lambda(this$0, $context) {
360
362
  return function () {
361
363
  var tmp;
362
- if (!this$0.f54($context)) {
363
- this$0.e54_1 = this$0.a54($context);
364
+ if (!this$0.r56($context)) {
365
+ this$0.q56_1 = this$0.g56($context);
364
366
  tmp = Unit_instance;
365
367
  }
366
368
  return Unit_instance;
@@ -368,54 +370,47 @@
368
370
  }
369
371
  function SingleInstanceFactory(beanDefinition) {
370
372
  InstanceFactory.call(this, beanDefinition);
371
- this.e54_1 = null;
373
+ this.q56_1 = null;
372
374
  }
373
- protoOf(SingleInstanceFactory).f54 = function (context) {
374
- return !(this.e54_1 == null);
375
+ protoOf(SingleInstanceFactory).r56 = function (context) {
376
+ return !(this.q56_1 == null);
375
377
  };
376
- protoOf(SingleInstanceFactory).a54 = function (context) {
378
+ protoOf(SingleInstanceFactory).g56 = function (context) {
377
379
  var tmp;
378
- if (this.e54_1 == null) {
379
- tmp = protoOf(InstanceFactory).a54.call(this, context);
380
+ if (this.q56_1 == null) {
381
+ tmp = protoOf(InstanceFactory).g56.call(this, context);
380
382
  } else {
381
383
  tmp = getValue(this);
382
384
  }
383
385
  return tmp;
384
386
  };
385
- protoOf(SingleInstanceFactory).z53 = function (context) {
387
+ protoOf(SingleInstanceFactory).f56 = function (context) {
386
388
  var tmp = KoinPlatformTools_instance;
387
- tmp.g54(this, SingleInstanceFactory$get$lambda(this, context));
389
+ tmp.s56(this, SingleInstanceFactory$get$lambda(this, context));
388
390
  return getValue(this);
389
391
  };
390
392
  function EmptyLogger() {
391
393
  Logger.call(this, Level_NONE_getInstance());
392
394
  }
393
- protoOf(EmptyLogger).b53 = function (level, msg) {
395
+ protoOf(EmptyLogger).l55 = function (level, msg) {
394
396
  };
395
397
  function Logger(level) {
396
398
  level = level === VOID ? Level_INFO_getInstance() : level;
397
- this.s52_1 = level;
399
+ this.d55_1 = level;
398
400
  }
399
- protoOf(Logger).t52 = function (msg) {
400
- this.j54(Level_DEBUG_getInstance(), msg);
401
+ protoOf(Logger).e55 = function (msg) {
402
+ this.v56(Level_DEBUG_getInstance(), msg);
401
403
  };
402
- protoOf(Logger).i54 = function (msg) {
403
- this.j54(Level_WARNING_getInstance(), msg);
404
+ protoOf(Logger).u56 = function (msg) {
405
+ this.v56(Level_WARNING_getInstance(), msg);
404
406
  };
405
- protoOf(Logger).c54 = function (msg) {
406
- this.j54(Level_ERROR_getInstance(), msg);
407
+ protoOf(Logger).o56 = function (msg) {
408
+ this.v56(Level_ERROR_getInstance(), msg);
407
409
  };
408
- protoOf(Logger).c53 = function (lvl) {
409
- return this.s52_1.p2(lvl) <= 0;
410
- };
411
- protoOf(Logger).j54 = function (lvl, msg) {
412
- if (this.c53(lvl)) {
413
- this.b53(lvl, msg);
414
- }
415
- };
416
- protoOf(Logger).k54 = function (lvl, msg) {
417
- if (this.c53(lvl)) {
418
- this.b53(lvl, msg());
410
+ protoOf(Logger).v56 = function (lvl, msg) {
411
+ // Inline function 'org.koin.core.logger.Logger.isAt' call
412
+ if (this.d55_1.u2(lvl) <= 0) {
413
+ this.l55(lvl, msg);
419
414
  }
420
415
  };
421
416
  var Level_DEBUG_instance;
@@ -459,46 +454,52 @@
459
454
  }
460
455
  function Module(_createdAtStart) {
461
456
  _createdAtStart = _createdAtStart === VOID ? false : _createdAtStart;
462
- this.l54_1 = _createdAtStart;
463
- this.m54_1 = generateId(KoinPlatformTools_instance);
457
+ this.w56_1 = _createdAtStart;
458
+ this.x56_1 = generateId(KoinPlatformTools_instance);
459
+ this.y56_1 = LinkedHashSet_init_$Create$();
460
+ this.z56_1 = LinkedHashMap_init_$Create$();
461
+ this.a57_1 = LinkedHashSet_init_$Create$();
464
462
  var tmp = this;
465
- // Inline function 'kotlin.collections.hashSetOf' call
466
- tmp.n54_1 = HashSet_init_$Create$();
467
- var tmp_0 = this;
468
- // Inline function 'kotlin.collections.hashMapOf' call
469
- tmp_0.o54_1 = HashMap_init_$Create$();
470
- var tmp_1 = this;
471
- // Inline function 'kotlin.collections.hashSetOf' call
472
- tmp_1.p54_1 = HashSet_init_$Create$();
473
- var tmp_2 = this;
474
463
  // Inline function 'kotlin.collections.mutableListOf' call
475
- tmp_2.q54_1 = ArrayList_init_$Create$();
476
- }
477
- protoOf(Module).r54 = function (instanceFactory) {
478
- var def = instanceFactory.y53_1;
479
- var mapping = indexKey(def.g53_1, def.h53_1, def.f53_1);
480
- this.s54(mapping, instanceFactory);
464
+ tmp.b57_1 = ArrayList_init_$Create$();
465
+ }
466
+ protoOf(Module).c57 = function (instanceFactory) {
467
+ var def = instanceFactory.e56_1;
468
+ // Inline function 'org.koin.core.definition.indexKey' call
469
+ var clazz = def.p55_1;
470
+ var typeQualifier = def.q55_1;
471
+ var scopeQualifier = def.o55_1;
472
+ // Inline function 'kotlin.text.buildString' call
473
+ // Inline function 'kotlin.contracts.contract' call
474
+ // Inline function 'kotlin.apply' call
475
+ var this_0 = StringBuilder_init_$Create$();
476
+ // Inline function 'kotlin.contracts.contract' call
477
+ // Inline function 'org.koin.core.definition.indexKey.<anonymous>' call
478
+ this_0.m8(getFullName(clazz));
479
+ this_0.n8(_Char___init__impl__6a9atx(58));
480
+ var tmp1_elvis_lhs = typeQualifier == null ? null : typeQualifier.z();
481
+ this_0.m8(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
482
+ this_0.n8(_Char___init__impl__6a9atx(58));
483
+ this_0.l8(scopeQualifier);
484
+ var mapping = this_0.toString();
485
+ this.d57(mapping, instanceFactory);
481
486
  };
482
- protoOf(Module).t54 = function (instanceFactory) {
483
- this.n54_1.e(instanceFactory);
487
+ protoOf(Module).e57 = function (instanceFactory) {
488
+ this.y56_1.k(instanceFactory);
484
489
  };
485
- protoOf(Module).s54 = function (mapping, factory) {
490
+ protoOf(Module).d57 = function (mapping, factory) {
486
491
  // Inline function 'kotlin.collections.set' call
487
- this.o54_1.i2(mapping, factory);
492
+ this.z56_1.n2(mapping, factory);
488
493
  };
489
494
  protoOf(Module).equals = function (other) {
490
495
  if (this === other)
491
496
  return true;
492
- if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
493
- return false;
494
497
  if (!(other instanceof Module))
495
- THROW_CCE();
496
- if (!(this.m54_1 === other.m54_1))
497
498
  return false;
498
- return true;
499
+ return this.x56_1 === other.x56_1;
499
500
  };
500
501
  protoOf(Module).hashCode = function () {
501
- return getStringHashCode(this.m54_1);
502
+ return getStringHashCode(this.x56_1);
502
503
  };
503
504
  function flatten(modules) {
504
505
  // Inline function 'kotlin.collections.linkedSetOf' call
@@ -506,78 +507,60 @@
506
507
  var stack = ArrayDeque_init_$Create$(asReversed(modules));
507
508
  $l$loop_0: while (true) {
508
509
  // Inline function 'kotlin.collections.isNotEmpty' call
509
- if (!!stack.p()) {
510
+ if (!!stack.h()) {
510
511
  break $l$loop_0;
511
512
  }
512
- var current = stack.hf();
513
- if (!flatten.e(current)) {
513
+ var current = stack.lf();
514
+ if (!flatten.k(current)) {
514
515
  continue $l$loop_0;
515
516
  }
516
- var _iterator__ex2g4s = current.q54_1.j();
517
- while (_iterator__ex2g4s.k()) {
518
- var module_0 = _iterator__ex2g4s.l();
519
- if (!flatten.s1(module_0)) {
517
+ var _iterator__ex2g4s = current.b57_1.p();
518
+ while (_iterator__ex2g4s.q()) {
519
+ var module_0 = _iterator__ex2g4s.r();
520
+ if (!flatten.x1(module_0)) {
520
521
  // Inline function 'kotlin.collections.plusAssign' call
521
- stack.e(module_0);
522
+ stack.k(module_0);
522
523
  }
523
524
  }
524
525
  }
525
526
  return flatten;
526
527
  }
527
528
  function overrideError(factory, mapping) {
528
- throw new DefinitionOverrideException('Already existing definition for ' + factory.y53_1.toString() + ' at ' + mapping);
529
+ throw new DefinitionOverrideException('Already existing definition for ' + factory.e56_1.toString() + ' at ' + mapping);
529
530
  }
530
531
  function getFirstValue($this, clazz) {
531
532
  var tmp$ret$1;
532
533
  $l$block: {
533
534
  // Inline function 'kotlin.collections.firstOrNull' call
534
- var tmp0_iterator = $this.u54_1.j();
535
- while (tmp0_iterator.k()) {
536
- var element = tmp0_iterator.l();
535
+ var tmp0_iterator = $this.f57_1.p();
536
+ while (tmp0_iterator.q()) {
537
+ var element = tmp0_iterator.r();
537
538
  // Inline function 'org.koin.core.parameter.ParametersHolder.getFirstValue.<anonymous>' call
538
- if (clazz.ta(element)) {
539
+ if (clazz.wa(element)) {
539
540
  tmp$ret$1 = element;
540
541
  break $l$block;
541
542
  }
542
543
  }
543
544
  tmp$ret$1 = null;
544
545
  }
545
- var tmp10_safe_receiver = tmp$ret$1;
546
- var tmp;
547
- if (tmp10_safe_receiver == null) {
548
- tmp = null;
549
- } else {
550
- // Inline function 'kotlin.let' call
551
- // Inline function 'kotlin.contracts.contract' call
552
- // Inline function 'org.koin.core.parameter.ParametersHolder.getFirstValue.<anonymous>' call
553
- tmp = !(tmp10_safe_receiver == null) ? tmp10_safe_receiver : THROW_CCE();
554
- }
555
- return tmp;
546
+ var tmp = tmp$ret$1;
547
+ return (tmp == null ? true : !(tmp == null)) ? tmp : null;
556
548
  }
557
549
  function getIndexedValue($this, clazz) {
558
550
  // Inline function 'kotlin.takeIf' call
559
- var this_0 = $this.u54_1.o($this.w54_1);
551
+ var this_0 = $this.f57_1.u($this.h57_1);
560
552
  // Inline function 'kotlin.contracts.contract' call
561
553
  var tmp;
562
554
  // Inline function 'org.koin.core.parameter.ParametersHolder.getIndexedValue.<anonymous>' call
563
- if (clazz.ta(this_0)) {
555
+ if (clazz.wa(this_0)) {
564
556
  tmp = this_0;
565
557
  } else {
566
558
  tmp = null;
567
559
  }
568
- var tmp11_safe_receiver = tmp;
569
- var tmp_0;
570
- if (tmp11_safe_receiver == null) {
571
- tmp_0 = null;
572
- } else {
573
- // Inline function 'kotlin.let' call
574
- // Inline function 'kotlin.contracts.contract' call
575
- // Inline function 'org.koin.core.parameter.ParametersHolder.getIndexedValue.<anonymous>' call
576
- tmp_0 = !(tmp11_safe_receiver == null) ? tmp11_safe_receiver : THROW_CCE();
577
- }
578
- var currentValue = tmp_0;
560
+ var tmp_0 = tmp;
561
+ var currentValue = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : null;
579
562
  if (!(currentValue == null)) {
580
- $this.x54();
563
+ $this.i57();
581
564
  }
582
565
  return currentValue;
583
566
  }
@@ -591,20 +574,20 @@
591
574
  }
592
575
  _values = tmp;
593
576
  useIndexedValues = useIndexedValues === VOID ? null : useIndexedValues;
594
- this.u54_1 = _values;
595
- this.v54_1 = useIndexedValues;
596
- this.w54_1 = 0;
577
+ this.f57_1 = _values;
578
+ this.g57_1 = useIndexedValues;
579
+ this.h57_1 = 0;
597
580
  }
598
- protoOf(ParametersHolder).y54 = function (clazz) {
581
+ protoOf(ParametersHolder).j57 = function (clazz) {
599
582
  var tmp;
600
- if (this.u54_1.p()) {
583
+ if (this.f57_1.h()) {
601
584
  tmp = null;
602
585
  } else {
603
586
  var tmp_0;
604
- switch (this.v54_1) {
587
+ switch (this.g57_1) {
605
588
  case null:
606
- var tmp0_elvis_lhs = getIndexedValue(this, clazz);
607
- tmp_0 = tmp0_elvis_lhs == null ? getFirstValue(this, clazz) : tmp0_elvis_lhs;
589
+ var tmp1_elvis_lhs = getIndexedValue(this, clazz);
590
+ tmp_0 = tmp1_elvis_lhs == null ? getFirstValue(this, clazz) : tmp1_elvis_lhs;
608
591
  break;
609
592
  case true:
610
593
  tmp_0 = getIndexedValue(this, clazz);
@@ -617,13 +600,13 @@
617
600
  }
618
601
  return tmp;
619
602
  };
620
- protoOf(ParametersHolder).x54 = function () {
621
- if (this.w54_1 < get_lastIndex(this.u54_1)) {
622
- this.w54_1 = this.w54_1 + 1 | 0;
603
+ protoOf(ParametersHolder).i57 = function () {
604
+ if (this.h57_1 < get_lastIndex(this.f57_1)) {
605
+ this.h57_1 = this.h57_1 + 1 | 0;
623
606
  }
624
607
  };
625
608
  protoOf(ParametersHolder).toString = function () {
626
- return 'DefinitionParameters' + toString_0(toList(this.u54_1));
609
+ return 'DefinitionParameters' + toString_0(toList(this.f57_1));
627
610
  };
628
611
  function emptyParametersHolder() {
629
612
  return new ParametersHolder();
@@ -635,16 +618,16 @@
635
618
  return new StringQualifier(name);
636
619
  }
637
620
  function StringQualifier(value) {
638
- this.z54_1 = value;
621
+ this.k57_1 = value;
639
622
  }
640
- protoOf(StringQualifier).u = function () {
641
- return this.z54_1;
623
+ protoOf(StringQualifier).z = function () {
624
+ return this.k57_1;
642
625
  };
643
626
  protoOf(StringQualifier).toString = function () {
644
- return this.z54_1;
627
+ return this.k57_1;
645
628
  };
646
629
  protoOf(StringQualifier).hashCode = function () {
647
- return getStringHashCode(this.z54_1);
630
+ return getStringHashCode(this.k57_1);
648
631
  };
649
632
  protoOf(StringQualifier).equals = function (other) {
650
633
  if (this === other)
@@ -652,316 +635,394 @@
652
635
  if (!(other instanceof StringQualifier))
653
636
  return false;
654
637
  var tmp0_other_with_cast = other instanceof StringQualifier ? other : THROW_CCE();
655
- if (!(this.z54_1 === tmp0_other_with_cast.z54_1))
638
+ if (!(this.k57_1 === tmp0_other_with_cast.k57_1))
656
639
  return false;
657
640
  return true;
658
641
  };
659
642
  function addAllEagerInstances($this, module_0) {
660
643
  // Inline function 'kotlin.collections.forEach' call
661
- var tmp0_iterator = module_0.n54_1.j();
662
- while (tmp0_iterator.k()) {
663
- var element = tmp0_iterator.l();
644
+ var tmp0_iterator = module_0.y56_1.p();
645
+ while (tmp0_iterator.q()) {
646
+ var element = tmp0_iterator.r();
664
647
  // Inline function 'org.koin.core.registry.InstanceRegistry.addAllEagerInstances.<anonymous>' call
665
648
  // Inline function 'kotlin.collections.set' call
666
- var this_0 = $this.k52_1;
667
- var key = element.y53_1.hashCode();
668
- this_0.i2(key, element);
649
+ var this_0 = $this.v54_1;
650
+ var key = element.e56_1.hashCode();
651
+ this_0.n2(key, element);
669
652
  }
670
653
  }
671
654
  function loadModule($this, module_0, allowOverride) {
672
655
  // Inline function 'kotlin.collections.forEach' call
673
656
  // Inline function 'kotlin.collections.iterator' call
674
- var tmp0_iterator = module_0.o54_1.s().j();
675
- while (tmp0_iterator.k()) {
676
- var element = tmp0_iterator.l();
657
+ var tmp0_iterator = module_0.z56_1.x().p();
658
+ while (tmp0_iterator.q()) {
659
+ var element = tmp0_iterator.r();
677
660
  // Inline function 'org.koin.core.registry.InstanceRegistry.loadModule.<anonymous>' call
678
661
  // Inline function 'kotlin.collections.component1' call
679
- var mapping = element.t();
662
+ var mapping = element.y();
680
663
  // Inline function 'kotlin.collections.component2' call
681
- var factory = element.u();
682
- $this.a55(allowOverride, mapping, factory);
664
+ var factory = element.z();
665
+ $this.l57(allowOverride, mapping, factory);
683
666
  }
684
667
  }
685
668
  function createEagerInstances($this, instances) {
686
- var defaultContext = new InstanceContext($this.i52_1.g52_1, $this.i52_1.c52_1.p52_1);
669
+ var defaultContext = new ResolutionContext($this.t54_1.r54_1, $this.t54_1.n54_1.a55_1, getKClass(NoClass));
687
670
  // Inline function 'kotlin.collections.forEach' call
688
- var tmp0_iterator = instances.j();
689
- while (tmp0_iterator.k()) {
690
- var element = tmp0_iterator.l();
671
+ var tmp0_iterator = instances.p();
672
+ while (tmp0_iterator.q()) {
673
+ var element = tmp0_iterator.r();
691
674
  // Inline function 'org.koin.core.registry.InstanceRegistry.createEagerInstances.<anonymous>' call
692
- element.z53(defaultContext);
675
+ element.f56(defaultContext);
693
676
  }
694
677
  }
695
678
  function InstanceRegistry(_koin) {
696
- this.i52_1 = _koin;
697
- this.j52_1 = KoinPlatformTools_instance.b55();
698
- var tmp = this;
699
- // Inline function 'kotlin.collections.hashMapOf' call
700
- tmp.k52_1 = HashMap_init_$Create$();
679
+ this.t54_1 = _koin;
680
+ this.u54_1 = KoinPlatformTools_instance.m57();
681
+ this.v54_1 = KoinPlatformTools_instance.m57();
701
682
  }
702
- protoOf(InstanceRegistry).l52 = function (modules, allowOverride) {
683
+ protoOf(InstanceRegistry).w54 = function (modules, allowOverride) {
703
684
  // Inline function 'kotlin.collections.forEach' call
704
- var tmp0_iterator = modules.j();
705
- while (tmp0_iterator.k()) {
706
- var element = tmp0_iterator.l();
685
+ var tmp0_iterator = modules.p();
686
+ while (tmp0_iterator.q()) {
687
+ var element = tmp0_iterator.r();
707
688
  // Inline function 'org.koin.core.registry.InstanceRegistry.loadModules.<anonymous>' call
708
689
  loadModule(this, element, allowOverride);
709
690
  addAllEagerInstances(this, element);
710
691
  }
711
692
  };
712
- protoOf(InstanceRegistry).v52 = function () {
693
+ protoOf(InstanceRegistry).f55 = function () {
713
694
  // Inline function 'kotlin.collections.toTypedArray' call
714
- var this_0 = this.k52_1.h2();
695
+ var this_0 = this.v54_1.m2();
715
696
  var tmp$ret$0 = copyToArray(this_0);
716
697
  var instances = arrayListOf(tmp$ret$0.slice());
717
- this.k52_1.z1();
698
+ this.v54_1.e2();
718
699
  createEagerInstances(this, instances);
719
700
  };
720
- protoOf(InstanceRegistry).c55 = function (allowOverride, mapping, factory, logWarning) {
721
- if (this.j52_1.d2(mapping)) {
701
+ protoOf(InstanceRegistry).n57 = function (allowOverride, mapping, factory, logWarning) {
702
+ if (this.u54_1.k2(mapping) == null)
703
+ null;
704
+ else {
705
+ // Inline function 'kotlin.let' call
706
+ // Inline function 'kotlin.contracts.contract' call
722
707
  if (!allowOverride) {
723
708
  overrideError(factory, mapping);
724
- } else {
725
- if (logWarning) {
726
- this.i52_1.g52_1.i54("(+) override index '" + mapping + "' -> '" + factory.y53_1.toString() + "'");
727
- }
709
+ } else if (logWarning) {
710
+ this.t54_1.r54_1.u56("(+) override index '" + mapping + "' -> '" + factory.e56_1.toString() + "'");
728
711
  }
729
712
  }
730
- this.i52_1.g52_1.t52("(+) index '" + mapping + "' -> '" + factory.y53_1.toString() + "'");
713
+ this.t54_1.r54_1.e55("(+) index '" + mapping + "' -> '" + factory.e56_1.toString() + "'");
731
714
  // Inline function 'kotlin.collections.set' call
732
- this.j52_1.i2(mapping, factory);
715
+ this.u54_1.n2(mapping, factory);
733
716
  };
734
- protoOf(InstanceRegistry).a55 = function (allowOverride, mapping, factory, logWarning, $super) {
717
+ protoOf(InstanceRegistry).l57 = function (allowOverride, mapping, factory, logWarning, $super) {
735
718
  logWarning = logWarning === VOID ? true : logWarning;
736
719
  var tmp;
737
720
  if ($super === VOID) {
738
- this.c55(allowOverride, mapping, factory, logWarning);
721
+ this.n57(allowOverride, mapping, factory, logWarning);
739
722
  tmp = Unit_instance;
740
723
  } else {
741
- tmp = $super.c55.call(this, allowOverride, mapping, factory, logWarning);
724
+ tmp = $super.n57.call(this, allowOverride, mapping, factory, logWarning);
742
725
  }
743
726
  return tmp;
744
727
  };
745
- protoOf(InstanceRegistry).d55 = function (clazz, qualifier, scopeQualifier) {
746
- var indexKey_0 = indexKey(clazz, qualifier, scopeQualifier);
747
- return this.j52_1.f2(indexKey_0);
728
+ protoOf(InstanceRegistry).o57 = function (clazz, qualifier, scopeQualifier) {
729
+ // Inline function 'org.koin.core.definition.indexKey' call
730
+ // Inline function 'kotlin.text.buildString' call
731
+ // Inline function 'kotlin.contracts.contract' call
732
+ // Inline function 'kotlin.apply' call
733
+ var this_0 = StringBuilder_init_$Create$();
734
+ // Inline function 'kotlin.contracts.contract' call
735
+ // Inline function 'org.koin.core.definition.indexKey.<anonymous>' call
736
+ this_0.m8(getFullName(clazz));
737
+ this_0.n8(_Char___init__impl__6a9atx(58));
738
+ var tmp1_elvis_lhs = qualifier == null ? null : qualifier.z();
739
+ this_0.m8(tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs);
740
+ this_0.n8(_Char___init__impl__6a9atx(58));
741
+ this_0.l8(scopeQualifier);
742
+ var indexKey = this_0.toString();
743
+ return this.u54_1.k2(indexKey);
748
744
  };
749
- protoOf(InstanceRegistry).e55 = function (qualifier, clazz, scopeQualifier, instanceContext) {
750
- var tmp12_safe_receiver = this.d55(clazz, qualifier, scopeQualifier);
751
- var tmp = tmp12_safe_receiver == null ? null : tmp12_safe_receiver.z53(instanceContext);
745
+ protoOf(InstanceRegistry).p57 = function (qualifier, clazz, scopeQualifier, instanceContext) {
746
+ var tmp0_safe_receiver = this.o57(clazz, qualifier, scopeQualifier);
747
+ var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f56(instanceContext);
752
748
  return (tmp == null ? true : !(tmp == null)) ? tmp : null;
753
749
  };
754
- protoOf(InstanceRegistry).a53 = function () {
755
- return this.j52_1.m();
750
+ protoOf(InstanceRegistry).k55 = function () {
751
+ return this.u54_1.s();
756
752
  };
757
753
  function PropertyRegistry(_koin) {
758
- this.f55_1 = _koin;
759
- this.g55_1 = KoinPlatformTools_instance.b55();
754
+ this.q57_1 = _koin;
755
+ this.r57_1 = KoinPlatformTools_instance.m57();
760
756
  }
761
757
  function loadModule_0($this, module_0) {
762
- $this.n52_1.n(module_0.p54_1);
758
+ $this.y54_1.t(module_0.a57_1);
763
759
  }
764
760
  function Companion_1() {
765
761
  Companion_instance_1 = this;
766
- this.n53_1 = '_root_';
767
- this.o53_1 = _q('_root_');
762
+ this.w55_1 = '_root_';
763
+ this.x55_1 = _q('_root_');
768
764
  }
769
765
  var Companion_instance_1;
770
- function Companion_getInstance_1() {
766
+ function Companion_getInstance_2() {
771
767
  if (Companion_instance_1 == null)
772
768
  new Companion_1();
773
769
  return Companion_instance_1;
774
770
  }
775
771
  function ScopeRegistry(_koin) {
776
- Companion_getInstance_1();
777
- this.m52_1 = _koin;
778
- this.n52_1 = HashSet_init_$Create$();
779
- this.o52_1 = KoinPlatformTools_instance.b55();
780
- this.p52_1 = new Scope(Companion_getInstance_1().o53_1, '_root_', true, this.m52_1);
781
- this.n52_1.e(this.p52_1.h55_1);
772
+ Companion_getInstance_2();
773
+ this.x54_1 = _koin;
774
+ this.y54_1 = KoinPlatformTools_instance.s57();
775
+ this.z54_1 = KoinPlatformTools_instance.m57();
776
+ this.a55_1 = new Scope(Companion_getInstance_2().x55_1, '_root_', true, this.x54_1);
777
+ this.y54_1.k(this.a55_1.t57_1);
782
778
  // Inline function 'kotlin.collections.set' call
783
- var this_0 = this.o52_1;
784
- var key = this.p52_1.i55_1;
785
- var value = this.p52_1;
786
- this_0.i2(key, value);
779
+ var this_0 = this.z54_1;
780
+ var key = this.a55_1.u57_1;
781
+ var value = this.a55_1;
782
+ this_0.n2(key, value);
787
783
  }
788
- protoOf(ScopeRegistry).q52 = function (modules) {
784
+ protoOf(ScopeRegistry).b55 = function (modules) {
789
785
  // Inline function 'kotlin.collections.forEach' call
790
- var tmp0_iterator = modules.j();
791
- while (tmp0_iterator.k()) {
792
- var element = tmp0_iterator.l();
786
+ var tmp0_iterator = modules.p();
787
+ while (tmp0_iterator.q()) {
788
+ var element = tmp0_iterator.r();
793
789
  // Inline function 'org.koin.core.registry.ScopeRegistry.loadScopes.<anonymous>' call
794
790
  loadModule_0(this, element);
795
791
  }
796
792
  };
797
- function resolveInstance($this, qualifier, clazz, parameterDef) {
798
- if ($this.p55_1) {
799
- throw new ClosedScopeException("Scope '" + $this.i55_1 + "' is closed");
793
+ function get($this, clazz, qualifier, parameters) {
794
+ return resolveWithOptionalLogging($this, clazz, qualifier, parameters);
795
+ }
796
+ function resolveWithOptionalLogging($this, clazz, qualifier, parameters) {
797
+ // Inline function 'org.koin.core.logger.Logger.isAt' call
798
+ var this_0 = $this.w57_1.r54_1;
799
+ var lvl = Level_DEBUG_getInstance();
800
+ if (!(this_0.d55_1.u2(lvl) <= 0)) {
801
+ return resolveInstance($this, qualifier, clazz, parameters);
800
802
  }
801
- var parameters = parameterDef == null ? null : parameterDef();
802
- var localDeque = null;
803
- if (!(parameters == null)) {
804
- var tmp = $this.k55_1.g52_1;
805
- var tmp_0 = Level_DEBUG_getInstance();
806
- tmp.k54(tmp_0, Scope$resolveInstance$lambda(parameters));
807
- var tmp0_elvis_lhs = $this.o55_1.ht();
808
- var tmp_1;
809
- if (tmp0_elvis_lhs == null) {
810
- // Inline function 'kotlin.also' call
811
- var this_0 = ArrayDeque_init_$Create$_0();
812
- // Inline function 'kotlin.contracts.contract' call
813
- $this.o55_1.p51(this_0);
814
- tmp_1 = this_0;
815
- } else {
816
- tmp_1 = tmp0_elvis_lhs;
817
- }
818
- localDeque = tmp_1;
819
- localDeque.df(parameters);
803
+ // Inline function 'org.koin.core.scope.Scope.logInstanceRequest' call
804
+ var tmp;
805
+ if (qualifier == null) {
806
+ tmp = null;
807
+ } else {
808
+ // Inline function 'kotlin.let' call
809
+ // Inline function 'kotlin.contracts.contract' call
810
+ // Inline function 'org.koin.core.scope.Scope.logInstanceRequest.<anonymous>' call
811
+ tmp = " with qualifier '" + toString(qualifier) + "'";
820
812
  }
821
- var instanceContext = new InstanceContext($this.k55_1.g52_1, $this, parameters);
822
- var value = resolveValue($this, qualifier, clazz, instanceContext, parameterDef);
823
- if (!(localDeque == null)) {
824
- $this.k55_1.g52_1.t52('| << parameters');
825
- localDeque.gf();
813
+ var tmp1_elvis_lhs = tmp;
814
+ var qualifierString = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
815
+ var scopeId = $this.v57_1 ? '' : " - scope:'" + $this.u57_1 + "'";
816
+ $this.w57_1.r54_1.l55(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "'" + qualifierString + scopeId + '...');
817
+ // Inline function 'kotlin.time.measureTimedValue' call
818
+ // Inline function 'kotlin.contracts.contract' call
819
+ // Inline function 'kotlin.time.measureTimedValue' call
820
+ // Inline function 'kotlin.contracts.contract' call
821
+ var mark = Monotonic_instance.ce();
822
+ // Inline function 'org.koin.core.scope.Scope.resolveWithOptionalLogging.<anonymous>' call
823
+ var result = resolveInstance($this, qualifier, clazz, parameters);
824
+ var result_0 = new TimedValue(result, ValueTimeMark__elapsedNow_impl_eonqvs(mark));
825
+ // Inline function 'org.koin.core.scope.Scope.logInstanceDuration' call
826
+ var duration = result_0.tj_1;
827
+ $this.w57_1.r54_1.l55(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "' in " + get_inMs(duration) + ' ms');
828
+ return result_0.sj_1;
829
+ }
830
+ function resolveInstance($this, qualifier, clazz, parameters) {
831
+ // Inline function 'org.koin.core.scope.Scope.checkScopeIsOpen' call
832
+ if ($this.b58_1) {
833
+ throw new ClosedScopeException("Scope '" + $this.u57_1 + "' is closed");
826
834
  }
827
- return value;
835
+ var instanceContext = new ResolutionContext($this.w57_1.r54_1, $this, clazz, qualifier, parameters);
836
+ return stackParametersCall($this, parameters, instanceContext);
828
837
  }
829
- function resolveValue($this, qualifier, clazz, instanceContext, parameterDef) {
830
- var tmp0_elvis_lhs = $this.k55_1.d52_1.e55(qualifier, clazz, $this.h55_1, instanceContext);
838
+ function stackParametersCall($this, parameters, instanceContext) {
839
+ if (parameters == null) {
840
+ return resolveFromContext($this, instanceContext);
841
+ }
842
+ // Inline function 'org.koin.core.logger.Logger.log' call
843
+ var this_0 = $this.w57_1.r54_1;
844
+ var lvl = Level_DEBUG_getInstance();
845
+ // Inline function 'org.koin.core.logger.Logger.isAt' call
846
+ if (this_0.d55_1.u2(lvl) <= 0) {
847
+ // Inline function 'org.koin.core.scope.Scope.stackParametersCall.<anonymous>' call
848
+ var tmp$ret$1 = '| >> parameters ' + toString(parameters);
849
+ this_0.l55(lvl, tmp$ret$1);
850
+ }
851
+ var stack = onParameterOnStack($this, parameters);
852
+ try {
853
+ return resolveFromContext($this, instanceContext);
854
+ }finally {
855
+ $this.w57_1.r54_1.e55('| << parameters');
856
+ clearParameterStack($this, stack);
857
+ }
858
+ }
859
+ function onParameterOnStack($this, parameters) {
860
+ var stack = getOrCreateParameterStack($this);
861
+ stack.hf(parameters);
862
+ return stack;
863
+ }
864
+ function clearParameterStack($this, stack) {
865
+ stack.kf();
866
+ if (stack.h()) {
867
+ var tmp0_safe_receiver = $this.a58_1;
868
+ if (tmp0_safe_receiver == null)
869
+ null;
870
+ else {
871
+ tmp0_safe_receiver.p4();
872
+ }
873
+ $this.a58_1 = null;
874
+ }
875
+ }
876
+ function getOrCreateParameterStack($this) {
877
+ var tmp0_safe_receiver = $this.a58_1;
878
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cv();
831
879
  var tmp;
832
- if (tmp0_elvis_lhs == null) {
833
- // Inline function 'kotlin.run' call
880
+ if (tmp1_elvis_lhs == null) {
881
+ // Inline function 'kotlin.let' call
834
882
  // Inline function 'kotlin.contracts.contract' call
835
- // Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>' call
836
- $this.k55_1.g52_1.t52("|- ? t:'" + getFullName(clazz) + "' - q:'" + toString(qualifier) + "' look in injected parameters");
837
- var tmp18_safe_receiver = $this.o55_1.ht();
838
- var tmp19_safe_receiver = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.cf();
839
- tmp = tmp19_safe_receiver == null ? null : tmp19_safe_receiver.y54(clazz);
883
+ // Inline function 'org.koin.core.scope.Scope.getOrCreateParameterStack.<anonymous>' call
884
+ var it = ArrayDeque_init_$Create$_0();
885
+ $this.a58_1 = new ThreadLocalRef();
886
+ var tmp0_safe_receiver_0 = $this.a58_1;
887
+ if (tmp0_safe_receiver_0 == null)
888
+ null;
889
+ else {
890
+ tmp0_safe_receiver_0.d54(it);
891
+ }
892
+ tmp = it;
840
893
  } else {
841
- tmp = tmp0_elvis_lhs;
894
+ tmp = tmp1_elvis_lhs;
842
895
  }
843
- var tmp1_elvis_lhs = tmp;
896
+ return tmp;
897
+ }
898
+ function resolveFromContext($this, instanceContext) {
899
+ // Inline function 'org.koin.core.scope.Scope.resolveFromInjectedParameters' call
900
+ var tmp;
901
+ if (instanceContext.l56_1 == null) {
902
+ tmp = null;
903
+ } else {
904
+ $this.w57_1.r54_1.e55('|- ? ' + instanceContext.m56_1 + ' look in injected parameters');
905
+ tmp = instanceContext.l56_1.j57(instanceContext.j56_1);
906
+ }
907
+ var tmp0_elvis_lhs = tmp;
908
+ var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? resolveFromRegistry($this, instanceContext) : tmp0_elvis_lhs;
844
909
  var tmp_0;
845
910
  if (tmp1_elvis_lhs == null) {
846
- // Inline function 'kotlin.run' call
847
- // Inline function 'kotlin.contracts.contract' call
848
- // Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>' call
911
+ // Inline function 'org.koin.core.scope.Scope.resolveFromStackedParameters' call
912
+ var tmp0_safe_receiver = $this.a58_1;
913
+ var current = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.cv();
849
914
  var tmp_1;
850
- if (!$this.j55_1) {
851
- $this.k55_1.g52_1.t52("|- ? t:'" + getFullName(clazz) + "' - q:'" + toString(qualifier) + "' look at scope source");
852
- var tmp20_safe_receiver = $this.m55_1;
853
- var tmp_2;
854
- if (tmp20_safe_receiver == null) {
855
- tmp_2 = null;
856
- } else {
857
- // Inline function 'kotlin.let' call
858
- // Inline function 'kotlin.contracts.contract' call
859
- // Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>.<anonymous>' call
860
- var tmp_3;
861
- if (clazz.ta(tmp20_safe_receiver) && qualifier == null) {
862
- var tmp_4 = $this.m55_1;
863
- tmp_3 = (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null;
864
- } else {
865
- tmp_3 = null;
866
- }
867
- tmp_2 = tmp_3;
868
- }
869
- tmp_1 = tmp_2;
870
- } else {
915
+ // Inline function 'kotlin.collections.isNullOrEmpty' call
916
+ // Inline function 'kotlin.contracts.contract' call
917
+ if (current == null || current.h()) {
871
918
  tmp_1 = null;
919
+ } else {
920
+ $this.w57_1.r54_1.e55('|- ? ' + instanceContext.m56_1 + ' look in stack parameters');
921
+ var parameters = current.gf();
922
+ tmp_1 = parameters == null ? null : parameters.j57(instanceContext.j56_1);
872
923
  }
873
924
  tmp_0 = tmp_1;
874
925
  } else {
875
926
  tmp_0 = tmp1_elvis_lhs;
876
927
  }
877
928
  var tmp2_elvis_lhs = tmp_0;
878
- var tmp_5;
929
+ var tmp_2;
879
930
  if (tmp2_elvis_lhs == null) {
880
- // Inline function 'kotlin.run' call
881
- // Inline function 'kotlin.contracts.contract' call
882
- // Inline function 'org.koin.core.scope.Scope.resolveValue.<anonymous>' call
883
- $this.k55_1.g52_1.t52("|- ? t:'" + getFullName(clazz) + "' - q:'" + toString(qualifier) + "' look in other scopes");
884
- tmp_5 = findInOtherScope($this, clazz, qualifier, parameterDef);
931
+ var tmp$ret$3;
932
+ $l$block: {
933
+ // Inline function 'org.koin.core.scope.Scope.resolveFromScopeSource' call
934
+ if ($this.v57_1) {
935
+ tmp$ret$3 = null;
936
+ break $l$block;
937
+ }
938
+ $this.w57_1.r54_1.e55('|- ? ' + instanceContext.m56_1 + ' look at scope source');
939
+ var tmp_3;
940
+ if (instanceContext.j56_1.wa($this.y57_1) && instanceContext.k56_1 == null) {
941
+ var tmp_4 = $this.y57_1;
942
+ tmp_3 = (tmp_4 == null ? true : !(tmp_4 == null)) ? tmp_4 : null;
943
+ } else {
944
+ tmp_3 = null;
945
+ }
946
+ tmp$ret$3 = tmp_3;
947
+ }
948
+ tmp_2 = tmp$ret$3;
885
949
  } else {
886
- tmp_5 = tmp2_elvis_lhs;
950
+ tmp_2 = tmp2_elvis_lhs;
887
951
  }
888
- var tmp3_elvis_lhs = tmp_5;
889
- var tmp_6;
890
- if (tmp3_elvis_lhs == null) {
891
- var tmp$ret$8;
892
- // Inline function 'kotlin.run' call
893
- // Inline function 'kotlin.contracts.contract' call
894
- if (!(parameterDef == null)) {
895
- $this.o55_1.m4();
896
- $this.k55_1.g52_1.t52('|- << parameters');
952
+ var tmp3_elvis_lhs = tmp_2;
953
+ var tmp4_elvis_lhs = tmp3_elvis_lhs == null ? resolveFromParentScopes($this, instanceContext) : tmp3_elvis_lhs;
954
+ var tmp_5;
955
+ if (tmp4_elvis_lhs == null) {
956
+ $this.w57_1.r54_1.e55('|- << parameters');
957
+ var tmp0_safe_receiver_0 = instanceContext.k56_1;
958
+ var tmp_6;
959
+ if (tmp0_safe_receiver_0 == null) {
960
+ tmp_6 = null;
961
+ } else {
962
+ // Inline function 'kotlin.let' call
963
+ // Inline function 'kotlin.contracts.contract' call
964
+ // Inline function 'org.koin.core.scope.Scope.throwDefinitionNotFound.<anonymous>' call
965
+ tmp_6 = " and qualifier '" + toString_0(tmp0_safe_receiver_0) + "'";
897
966
  }
898
- throwDefinitionNotFound($this, qualifier, clazz);
899
- tmp_6 = tmp$ret$8;
967
+ var tmp1_elvis_lhs_0 = tmp_6;
968
+ var qualifierString = tmp1_elvis_lhs_0 == null ? '' : tmp1_elvis_lhs_0;
969
+ throw new NoDefinitionFoundException("No definition found for type '" + getFullName(instanceContext.j56_1) + "'" + qualifierString + '. Check your Modules configuration and add missing type and/or qualifier!');
900
970
  } else {
901
- tmp_6 = tmp3_elvis_lhs;
902
- }
903
- return tmp_6;
904
- }
905
- function findInOtherScope($this, clazz, qualifier, parameters) {
906
- var instance = null;
907
- var _iterator__ex2g4s = $this.l55_1.j();
908
- $l$loop: while (_iterator__ex2g4s.k()) {
909
- var scope = _iterator__ex2g4s.l();
910
- instance = scope.q55(clazz, qualifier, parameters);
911
- if (!(instance == null))
912
- break $l$loop;
971
+ tmp_5 = tmp4_elvis_lhs;
913
972
  }
914
- return instance;
973
+ return tmp_5;
915
974
  }
916
- function throwDefinitionNotFound($this, qualifier, clazz) {
917
- var tmp;
918
- if (qualifier == null) {
919
- tmp = null;
920
- } else {
921
- // Inline function 'kotlin.let' call
922
- // Inline function 'kotlin.contracts.contract' call
923
- // Inline function 'org.koin.core.scope.Scope.throwDefinitionNotFound.<anonymous>' call
924
- tmp = " and qualifier '" + toString(qualifier) + "'";
925
- }
926
- var tmp0_elvis_lhs = tmp;
927
- var qualifierString = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
928
- throw new NoDefinitionFoundException("No definition found for type '" + getFullName(clazz) + "'" + qualifierString + '. Check your Modules configuration and add missing type and/or qualifier!');
975
+ function resolveFromRegistry($this, ctx) {
976
+ return $this.w57_1.o54_1.p57(ctx.k56_1, ctx.j56_1, $this.t57_1, ctx);
929
977
  }
930
- function Scope$resolveInstance$lambda($parameters) {
931
- return function () {
932
- return '| >> parameters ' + toString($parameters) + ' ';
933
- };
978
+ function resolveFromParentScopes($this, ctx) {
979
+ $this.w57_1.r54_1.e55('|- ? ' + ctx.m56_1 + ' look in other scopes');
980
+ return findInOtherScope($this, ctx);
981
+ }
982
+ function findInOtherScope($this, ctx) {
983
+ var tmp$ret$1;
984
+ $l$block: {
985
+ // Inline function 'kotlin.collections.firstNotNullOfOrNull' call
986
+ var tmp0_iterator = $this.x57_1.p();
987
+ while (tmp0_iterator.q()) {
988
+ var element = tmp0_iterator.r();
989
+ // Inline function 'org.koin.core.scope.Scope.findInOtherScope.<anonymous>' call
990
+ var result = element.c58(ctx);
991
+ if (!(result == null)) {
992
+ tmp$ret$1 = result;
993
+ break $l$block;
994
+ }
995
+ }
996
+ tmp$ret$1 = null;
997
+ }
998
+ return tmp$ret$1;
934
999
  }
935
1000
  function Scope(scopeQualifier, id, isRoot, _koin) {
936
1001
  isRoot = isRoot === VOID ? false : isRoot;
937
- this.h55_1 = scopeQualifier;
938
- this.i55_1 = id;
939
- this.j55_1 = isRoot;
940
- this.k55_1 = _koin;
941
- var tmp = this;
942
- // Inline function 'kotlin.collections.arrayListOf' call
943
- tmp.l55_1 = ArrayList_init_$Create$();
944
- this.m55_1 = null;
945
- var tmp_0 = this;
946
- // Inline function 'kotlin.collections.arrayListOf' call
947
- tmp_0.n55_1 = ArrayList_init_$Create$();
948
- this.o55_1 = new ThreadLocalRef();
949
- this.p55_1 = false;
950
- }
951
- protoOf(Scope).q55 = function (clazz, qualifier, parameters) {
1002
+ this.t57_1 = scopeQualifier;
1003
+ this.u57_1 = id;
1004
+ this.v57_1 = isRoot;
1005
+ this.w57_1 = _koin;
1006
+ this.x57_1 = LinkedHashSet_init_$Create$();
1007
+ this.y57_1 = null;
1008
+ this.z57_1 = LinkedHashSet_init_$Create$();
1009
+ this.a58_1 = null;
1010
+ this.b58_1 = false;
1011
+ }
1012
+ protoOf(Scope).c58 = function (ctx) {
952
1013
  var tmp;
953
1014
  try {
954
- tmp = this.r55(clazz, qualifier, parameters);
1015
+ tmp = get(this, ctx.j56_1, ctx.k56_1, ctx.l56_1);
955
1016
  } catch ($p) {
956
1017
  var tmp_0;
957
1018
  if ($p instanceof ClosedScopeException) {
958
1019
  var e = $p;
959
- this.k55_1.g52_1.t52('* Scope closed - no instance found for ' + getFullName(clazz) + ' on scope ' + this.toString());
1020
+ this.w57_1.r54_1.e55('* Scope closed - no instance found for ' + getFullName(ctx.j56_1) + ' on scope ' + this.toString());
960
1021
  tmp_0 = null;
961
1022
  } else {
962
1023
  if ($p instanceof NoDefinitionFoundException) {
963
1024
  var e_0 = $p;
964
- this.k55_1.g52_1.t52("* No instance found for type '" + getFullName(clazz) + "' on scope '" + this.toString() + "'");
1025
+ this.w57_1.r54_1.e55("* No instance found for type '" + getFullName(ctx.j56_1) + "' on scope '" + this.toString() + "'");
965
1026
  tmp_0 = null;
966
1027
  } else {
967
1028
  throw $p;
@@ -971,37 +1032,16 @@
971
1032
  }
972
1033
  return tmp;
973
1034
  };
974
- protoOf(Scope).r55 = function (clazz, qualifier, parameters) {
975
- var tmp;
976
- if (this.k55_1.g52_1.c53(Level_DEBUG_getInstance())) {
977
- var tmp_0;
978
- if (qualifier == null) {
979
- tmp_0 = null;
980
- } else {
981
- // Inline function 'kotlin.let' call
982
- // Inline function 'kotlin.contracts.contract' call
983
- // Inline function 'org.koin.core.scope.Scope.get.<anonymous>' call
984
- tmp_0 = " with qualifier '" + toString(qualifier) + "'";
985
- }
986
- var tmp0_elvis_lhs = tmp_0;
987
- var qualifierString = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
988
- var scopeId = this.j55_1 ? '' : "- scope:'" + this.i55_1;
989
- this.k55_1.g52_1.b53(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "'" + qualifierString + ' ' + scopeId + '...');
990
- var start = KoinPlatformTimeTools_instance.u52();
991
- var instance = resolveInstance(this, qualifier, clazz, parameters);
992
- var stop = KoinPlatformTimeTools_instance.u52();
993
- // Inline function 'kotlin.Long.div' call
994
- var duration = stop.v2(start).l3() / 1000000.0;
995
- this.k55_1.g52_1.b53(Level_DEBUG_getInstance(), "|- '" + getFullName(clazz) + "' in " + duration + ' ms');
996
- tmp = instance;
997
- } else {
998
- tmp = resolveInstance(this, qualifier, clazz, parameters);
999
- }
1000
- return tmp;
1035
+ protoOf(Scope).d58 = function (clazz, qualifier, parameters) {
1036
+ return resolveWithOptionalLogging(this, clazz, qualifier, parameters == null ? null : parameters());
1001
1037
  };
1002
1038
  protoOf(Scope).toString = function () {
1003
- return "['" + this.i55_1 + "']";
1039
+ return "['" + this.u57_1 + "']";
1004
1040
  };
1041
+ function get_inMs(_this__u8e3s4) {
1042
+ // Inline function 'kotlin.Long.div' call
1043
+ return _Duration___get_inWholeMicroseconds__impl__8oe8vv(_this__u8e3s4).q3() / 1000.0;
1044
+ }
1005
1045
  function module_0(createdAtStart, moduleDeclaration) {
1006
1046
  createdAtStart = createdAtStart === VOID ? false : createdAtStart;
1007
1047
  var module_0 = new Module(createdAtStart);
@@ -1015,27 +1055,27 @@
1015
1055
  var classNames;
1016
1056
  function getFullName(_this__u8e3s4) {
1017
1057
  _init_properties_KClassExt_kt__5ro5b2();
1018
- var tmp0_elvis_lhs = get_classNames().f2(_this__u8e3s4);
1058
+ var tmp0_elvis_lhs = get_classNames().k2(_this__u8e3s4);
1019
1059
  return tmp0_elvis_lhs == null ? saveCache(_this__u8e3s4) : tmp0_elvis_lhs;
1020
1060
  }
1021
1061
  function saveCache(_this__u8e3s4) {
1022
1062
  _init_properties_KClassExt_kt__5ro5b2();
1023
- var name = KoinPlatformTools_instance.s55(_this__u8e3s4);
1063
+ var name = KoinPlatformTools_instance.e58(_this__u8e3s4);
1024
1064
  // Inline function 'kotlin.collections.set' call
1025
- get_classNames().i2(_this__u8e3s4, name);
1065
+ get_classNames().n2(_this__u8e3s4, name);
1026
1066
  return name;
1027
1067
  }
1028
1068
  var properties_initialized_KClassExt_kt_dizwhw;
1029
1069
  function _init_properties_KClassExt_kt__5ro5b2() {
1030
1070
  if (!properties_initialized_KClassExt_kt_dizwhw) {
1031
1071
  properties_initialized_KClassExt_kt_dizwhw = true;
1032
- classNames = KoinPlatformTools_instance.b55();
1072
+ classNames = KoinPlatformTools_instance.m57();
1033
1073
  }
1034
1074
  }
1035
1075
  function KoinPlatform() {
1036
1076
  }
1037
- protoOf(KoinPlatform).t55 = function () {
1038
- return KoinPlatformTools_instance.d53().ht();
1077
+ protoOf(KoinPlatform).f58 = function () {
1078
+ return KoinPlatformTools_instance.m55().cv();
1039
1079
  };
1040
1080
  var KoinPlatform_instance;
1041
1081
  function KoinPlatform_getInstance() {
@@ -1045,19 +1085,19 @@
1045
1085
  return 'KClass@' + kClass.hashCode();
1046
1086
  }
1047
1087
  function generateId(_this__u8e3s4) {
1048
- return uuid4().toString();
1088
+ return Companion_getInstance().uk().toString();
1049
1089
  }
1050
1090
  function register($this, koinApplication) {
1051
- if (!($this.u55_1 == null)) {
1091
+ if (!($this.g58_1 == null)) {
1052
1092
  throw new KoinApplicationAlreadyStartedException('A Koin Application has already been started');
1053
1093
  }
1054
- $this.u55_1 = koinApplication.w52_1;
1094
+ $this.g58_1 = koinApplication.g55_1;
1055
1095
  }
1056
1096
  function GlobalContext() {
1057
- this.u55_1 = null;
1097
+ this.g58_1 = null;
1058
1098
  }
1059
- protoOf(GlobalContext).ht = function () {
1060
- var tmp0_elvis_lhs = this.u55_1;
1099
+ protoOf(GlobalContext).cv = function () {
1100
+ var tmp0_elvis_lhs = this.g58_1;
1061
1101
  var tmp;
1062
1102
  if (tmp0_elvis_lhs == null) {
1063
1103
  var message = 'KoinApplication has not been started';
@@ -1067,8 +1107,8 @@
1067
1107
  }
1068
1108
  return tmp;
1069
1109
  };
1070
- protoOf(GlobalContext).e53 = function (appDeclaration) {
1071
- var koinApplication = Companion_instance.y52();
1110
+ protoOf(GlobalContext).n55 = function (appDeclaration) {
1111
+ var koinApplication = Companion_instance.i55();
1072
1112
  register(this, koinApplication);
1073
1113
  appDeclaration(koinApplication);
1074
1114
  return koinApplication;
@@ -1077,33 +1117,28 @@
1077
1117
  function GlobalContext_getInstance() {
1078
1118
  return GlobalContext_instance;
1079
1119
  }
1080
- function KoinPlatformTimeTools() {
1081
- }
1082
- protoOf(KoinPlatformTimeTools).u52 = function () {
1083
- return _Duration___get_inWholeNanoseconds__impl__r5x4mr(ValueTimeMark__elapsedNow_impl_eonqvs(Monotonic_instance.yd()));
1084
- };
1085
- var KoinPlatformTimeTools_instance;
1086
- function KoinPlatformTimeTools_getInstance() {
1087
- return KoinPlatformTimeTools_instance;
1088
- }
1089
1120
  function KoinPlatformTools() {
1090
1121
  }
1091
- protoOf(KoinPlatformTools).b54 = function (e) {
1122
+ protoOf(KoinPlatformTools).n56 = function (e) {
1092
1123
  return e.toString() + toString_0(split(Exception_init_$Create$().toString(), ['\n']));
1093
1124
  };
1094
- protoOf(KoinPlatformTools).s55 = function (kClass) {
1095
- var tmp0_elvis_lhs = kClass.sa();
1125
+ protoOf(KoinPlatformTools).e58 = function (kClass) {
1126
+ var tmp0_elvis_lhs = kClass.va();
1096
1127
  return tmp0_elvis_lhs == null ? getKClassDefaultName(this, kClass) : tmp0_elvis_lhs;
1097
1128
  };
1098
- protoOf(KoinPlatformTools).d53 = function () {
1129
+ protoOf(KoinPlatformTools).m55 = function () {
1099
1130
  return GlobalContext_instance;
1100
1131
  };
1101
- protoOf(KoinPlatformTools).g54 = function (lock, block) {
1132
+ protoOf(KoinPlatformTools).s56 = function (lock, block) {
1102
1133
  return block();
1103
1134
  };
1104
- protoOf(KoinPlatformTools).b55 = function () {
1135
+ protoOf(KoinPlatformTools).m57 = function () {
1105
1136
  return ConcurrentMutableMap_init_$Create$();
1106
1137
  };
1138
+ protoOf(KoinPlatformTools).s57 = function () {
1139
+ // Inline function 'kotlin.collections.mutableSetOf' call
1140
+ return LinkedHashSet_init_$Create$();
1141
+ };
1107
1142
  var KoinPlatformTools_instance;
1108
1143
  function KoinPlatformTools_getInstance() {
1109
1144
  return KoinPlatformTools_instance;
@@ -1113,13 +1148,12 @@
1113
1148
  Companion_instance_0 = new Companion_0();
1114
1149
  KoinPlatform_instance = new KoinPlatform();
1115
1150
  GlobalContext_instance = new GlobalContext();
1116
- KoinPlatformTimeTools_instance = new KoinPlatformTimeTools();
1117
1151
  KoinPlatformTools_instance = new KoinPlatformTools();
1118
1152
  //endregion
1119
1153
  //region block: exports
1120
1154
  _.$_$ = _.$_$ || {};
1121
1155
  _.$_$.a = Kind_Singleton_getInstance;
1122
- _.$_$.b = Companion_getInstance_1;
1156
+ _.$_$.b = Companion_getInstance_2;
1123
1157
  _.$_$.c = KoinPlatform_instance;
1124
1158
  _.$_$.d = startKoin;
1125
1159
  _.$_$.e = BeanDefinition;
@@ -1129,6 +1163,6 @@
1129
1163
  _.$_$.i = module_0;
1130
1164
  //endregion
1131
1165
  return _;
1132
- }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Stately-stately-concurrency.js'), require('./uuid.js'), require('./Stately-stately-concurrent-collections.js')));
1166
+ }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./Stately-stately-concurrency.js'), require('./Stately-stately-concurrent-collections.js')));
1133
1167
 
1134
1168
  //# sourceMappingURL=projects-core-koin-core.js.map