game_client_logic_deb 1.3.47
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/88b0986a7186d029-atomicfu-js-ir.js +202 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -0
- package/Kaverit-kaverit-js-ir.js +383 -0
- package/Kaverit-kaverit-js-ir.js.map +1 -0
- package/Kodein-kodein-di-js-ir.js +2793 -0
- package/Kodein-kodein-di-js-ir.js.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +167 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -0
- package/Logic_Debertz-core.js +3214 -0
- package/Logic_Debertz-core.js.map +1 -0
- package/Logic_Debertz-engine.js +21765 -0
- package/Logic_Debertz-engine.js.map +1 -0
- package/Logic_Debertz-game_client_logic_deb.d.ts +592 -0
- package/Logic_Debertz-game_client_logic_deb.js +13899 -0
- package/Logic_Debertz-game_client_logic_deb.js.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js +13032 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +15 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +3622 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +293 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +10834 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -0
- package/package.json +6 -0
- package/uuid-js-ir.js +202 -0
- package/uuid-js-ir.js.map +1 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module '88b0986a7186d029-atomicfu-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '88b0986a7186d029-atomicfu-js-ir'.");
|
|
9
|
+
}
|
|
10
|
+
root['88b0986a7186d029-atomicfu-js-ir'] = factory(typeof this['88b0986a7186d029-atomicfu-js-ir'] === 'undefined' ? {} : this['88b0986a7186d029-atomicfu-js-ir'], this['kotlin-kotlin-stdlib-js-ir']);
|
|
11
|
+
}
|
|
12
|
+
}(this, function (_, kotlin_kotlin) {
|
|
13
|
+
'use strict';
|
|
14
|
+
//region block: imports
|
|
15
|
+
var objectMeta = kotlin_kotlin.$_$.w6;
|
|
16
|
+
var classMeta = kotlin_kotlin.$_$.j6;
|
|
17
|
+
var toString = kotlin_kotlin.$_$.h9;
|
|
18
|
+
//endregion
|
|
19
|
+
//region block: pre-declaration
|
|
20
|
+
None.prototype = Object.create(atomicfu$TraceBase.prototype);
|
|
21
|
+
None.prototype.constructor = None;
|
|
22
|
+
//endregion
|
|
23
|
+
function loop(_this__u8e3s4, action) {
|
|
24
|
+
while (true) {
|
|
25
|
+
action(_this__u8e3s4.ak_1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function loop_0(_this__u8e3s4, action) {
|
|
29
|
+
while (true) {
|
|
30
|
+
action(_this__u8e3s4.bk_1);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function None() {
|
|
34
|
+
None_instance = this;
|
|
35
|
+
atomicfu$TraceBase.call(this);
|
|
36
|
+
}
|
|
37
|
+
None.$metadata$ = objectMeta('None', undefined, undefined, undefined, undefined, atomicfu$TraceBase.prototype);
|
|
38
|
+
var None_instance;
|
|
39
|
+
function None_getInstance() {
|
|
40
|
+
if (None_instance == null)
|
|
41
|
+
new None();
|
|
42
|
+
return None_instance;
|
|
43
|
+
}
|
|
44
|
+
function atomicfu$TraceBase() {
|
|
45
|
+
}
|
|
46
|
+
atomicfu$TraceBase.prototype.atomicfu$Trace$append$1 = function (event) {
|
|
47
|
+
};
|
|
48
|
+
atomicfu$TraceBase.prototype.atomicfu$Trace$append$2 = function (event1, event2) {
|
|
49
|
+
};
|
|
50
|
+
atomicfu$TraceBase.prototype.atomicfu$Trace$append$3 = function (event1, event2, event3) {
|
|
51
|
+
};
|
|
52
|
+
atomicfu$TraceBase.prototype.atomicfu$Trace$append$4 = function (event1, event2, event3, event4) {
|
|
53
|
+
};
|
|
54
|
+
atomicfu$TraceBase.$metadata$ = classMeta('TraceBase');
|
|
55
|
+
function AtomicRef(value) {
|
|
56
|
+
this.ak_1 = value;
|
|
57
|
+
}
|
|
58
|
+
AtomicRef.prototype.ck = function (_set____db54di) {
|
|
59
|
+
this.ak_1 = _set____db54di;
|
|
60
|
+
};
|
|
61
|
+
AtomicRef.prototype.dk = function () {
|
|
62
|
+
return this.ak_1;
|
|
63
|
+
};
|
|
64
|
+
AtomicRef.prototype.atomicfu$compareAndSet = function (expect, update) {
|
|
65
|
+
if (!(this.ak_1 === expect))
|
|
66
|
+
return false;
|
|
67
|
+
this.ak_1 = update;
|
|
68
|
+
return true;
|
|
69
|
+
};
|
|
70
|
+
AtomicRef.prototype.atomicfu$getAndSet = function (value) {
|
|
71
|
+
var oldValue = this.ak_1;
|
|
72
|
+
this.ak_1 = value;
|
|
73
|
+
return oldValue;
|
|
74
|
+
};
|
|
75
|
+
AtomicRef.prototype.toString = function () {
|
|
76
|
+
return toString(this.ak_1);
|
|
77
|
+
};
|
|
78
|
+
AtomicRef.$metadata$ = classMeta('AtomicRef');
|
|
79
|
+
Object.defineProperty(AtomicRef.prototype, 'kotlinx$atomicfu$value', {
|
|
80
|
+
configurable: true,
|
|
81
|
+
get: AtomicRef.prototype.dk,
|
|
82
|
+
set: AtomicRef.prototype.ck
|
|
83
|
+
});
|
|
84
|
+
function atomic$ref$1(initial) {
|
|
85
|
+
return atomic(initial, None_getInstance());
|
|
86
|
+
}
|
|
87
|
+
function AtomicBoolean(value) {
|
|
88
|
+
this.ek_1 = value;
|
|
89
|
+
}
|
|
90
|
+
AtomicBoolean.prototype.fk = function (_set____db54di) {
|
|
91
|
+
this.ek_1 = _set____db54di;
|
|
92
|
+
};
|
|
93
|
+
AtomicBoolean.prototype.dk = function () {
|
|
94
|
+
return this.ek_1;
|
|
95
|
+
};
|
|
96
|
+
AtomicBoolean.prototype.atomicfu$compareAndSet = function (expect, update) {
|
|
97
|
+
if (!(this.ek_1 === expect))
|
|
98
|
+
return false;
|
|
99
|
+
this.ek_1 = update;
|
|
100
|
+
return true;
|
|
101
|
+
};
|
|
102
|
+
AtomicBoolean.prototype.atomicfu$getAndSet = function (value) {
|
|
103
|
+
var oldValue = this.ek_1;
|
|
104
|
+
this.ek_1 = value;
|
|
105
|
+
return oldValue;
|
|
106
|
+
};
|
|
107
|
+
AtomicBoolean.prototype.toString = function () {
|
|
108
|
+
return this.ek_1.toString();
|
|
109
|
+
};
|
|
110
|
+
AtomicBoolean.$metadata$ = classMeta('AtomicBoolean');
|
|
111
|
+
Object.defineProperty(AtomicBoolean.prototype, 'kotlinx$atomicfu$value', {
|
|
112
|
+
configurable: true,
|
|
113
|
+
get: AtomicBoolean.prototype.dk,
|
|
114
|
+
set: AtomicBoolean.prototype.fk
|
|
115
|
+
});
|
|
116
|
+
function atomic$boolean$1(initial) {
|
|
117
|
+
return atomic_0(initial, None_getInstance());
|
|
118
|
+
}
|
|
119
|
+
function AtomicInt(value) {
|
|
120
|
+
this.bk_1 = value;
|
|
121
|
+
}
|
|
122
|
+
AtomicInt.prototype.gk = function (_set____db54di) {
|
|
123
|
+
this.bk_1 = _set____db54di;
|
|
124
|
+
};
|
|
125
|
+
AtomicInt.prototype.dk = function () {
|
|
126
|
+
return this.bk_1;
|
|
127
|
+
};
|
|
128
|
+
AtomicInt.prototype.atomicfu$compareAndSet = function (expect, update) {
|
|
129
|
+
if (!(this.bk_1 === expect))
|
|
130
|
+
return false;
|
|
131
|
+
this.bk_1 = update;
|
|
132
|
+
return true;
|
|
133
|
+
};
|
|
134
|
+
AtomicInt.prototype.atomicfu$getAndSet = function (value) {
|
|
135
|
+
var oldValue = this.bk_1;
|
|
136
|
+
this.bk_1 = value;
|
|
137
|
+
return oldValue;
|
|
138
|
+
};
|
|
139
|
+
AtomicInt.prototype.atomicfu$getAndIncrement = function () {
|
|
140
|
+
var tmp0_this = this;
|
|
141
|
+
var tmp1 = tmp0_this.bk_1;
|
|
142
|
+
tmp0_this.bk_1 = tmp1 + 1 | 0;
|
|
143
|
+
return tmp1;
|
|
144
|
+
};
|
|
145
|
+
AtomicInt.prototype.atomicfu$getAndDecrement = function () {
|
|
146
|
+
var tmp0_this = this;
|
|
147
|
+
var tmp1 = tmp0_this.bk_1;
|
|
148
|
+
tmp0_this.bk_1 = tmp1 - 1 | 0;
|
|
149
|
+
return tmp1;
|
|
150
|
+
};
|
|
151
|
+
AtomicInt.prototype.atomicfu$getAndAdd = function (delta) {
|
|
152
|
+
var oldValue = this.bk_1;
|
|
153
|
+
var tmp0_this = this;
|
|
154
|
+
tmp0_this.bk_1 = tmp0_this.bk_1 + delta | 0;
|
|
155
|
+
return oldValue;
|
|
156
|
+
};
|
|
157
|
+
AtomicInt.prototype.atomicfu$addAndGet = function (delta) {
|
|
158
|
+
var tmp0_this = this;
|
|
159
|
+
tmp0_this.bk_1 = tmp0_this.bk_1 + delta | 0;
|
|
160
|
+
return this.bk_1;
|
|
161
|
+
};
|
|
162
|
+
AtomicInt.prototype.atomicfu$incrementAndGet = function () {
|
|
163
|
+
var tmp0_this = this;
|
|
164
|
+
tmp0_this.bk_1 = tmp0_this.bk_1 + 1 | 0;
|
|
165
|
+
return tmp0_this.bk_1;
|
|
166
|
+
};
|
|
167
|
+
AtomicInt.prototype.atomicfu$decrementAndGet = function () {
|
|
168
|
+
var tmp0_this = this;
|
|
169
|
+
tmp0_this.bk_1 = tmp0_this.bk_1 - 1 | 0;
|
|
170
|
+
return tmp0_this.bk_1;
|
|
171
|
+
};
|
|
172
|
+
AtomicInt.prototype.toString = function () {
|
|
173
|
+
return this.bk_1.toString();
|
|
174
|
+
};
|
|
175
|
+
AtomicInt.$metadata$ = classMeta('AtomicInt');
|
|
176
|
+
Object.defineProperty(AtomicInt.prototype, 'kotlinx$atomicfu$value', {
|
|
177
|
+
configurable: true,
|
|
178
|
+
get: AtomicInt.prototype.dk,
|
|
179
|
+
set: AtomicInt.prototype.gk
|
|
180
|
+
});
|
|
181
|
+
function atomic$int$1(initial) {
|
|
182
|
+
return atomic_1(initial, None_getInstance());
|
|
183
|
+
}
|
|
184
|
+
function atomic(initial, trace) {
|
|
185
|
+
return new AtomicRef(initial);
|
|
186
|
+
}
|
|
187
|
+
function atomic_0(initial, trace) {
|
|
188
|
+
return new AtomicBoolean(initial);
|
|
189
|
+
}
|
|
190
|
+
function atomic_1(initial, trace) {
|
|
191
|
+
return new AtomicInt(initial);
|
|
192
|
+
}
|
|
193
|
+
//region block: exports
|
|
194
|
+
_.$_$ = _.$_$ || {};
|
|
195
|
+
_.$_$.a = atomic$boolean$1;
|
|
196
|
+
_.$_$.b = atomic$ref$1;
|
|
197
|
+
_.$_$.c = atomic$int$1;
|
|
198
|
+
//endregion
|
|
199
|
+
return _;
|
|
200
|
+
}));
|
|
201
|
+
|
|
202
|
+
//# sourceMappingURL=88b0986a7186d029-atomicfu-js-ir.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../AtomicFU.common.kt","../../../../../Trace.common.kt","../../../../../AtomicFU.kt"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;WA0JW,I;MACH,OAAO,kB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2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'Kaverit-kaverit-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'Kaverit-kaverit-js-ir'.");
|
|
9
|
+
}
|
|
10
|
+
root['Kaverit-kaverit-js-ir'] = factory(typeof this['Kaverit-kaverit-js-ir'] === 'undefined' ? {} : this['Kaverit-kaverit-js-ir'], this['kotlin-kotlin-stdlib-js-ir']);
|
|
11
|
+
}
|
|
12
|
+
}(this, function (_, kotlin_kotlin) {
|
|
13
|
+
'use strict';
|
|
14
|
+
//region block: imports
|
|
15
|
+
var emptyList = kotlin_kotlin.$_$.v3;
|
|
16
|
+
var Unit_getInstance = kotlin_kotlin.$_$.p2;
|
|
17
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.f2;
|
|
18
|
+
var toString = kotlin_kotlin.$_$.z6;
|
|
19
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
20
|
+
var classMeta = kotlin_kotlin.$_$.j6;
|
|
21
|
+
var Unit = kotlin_kotlin.$_$.v8;
|
|
22
|
+
var getKClass = kotlin_kotlin.$_$.e;
|
|
23
|
+
var objectMeta = kotlin_kotlin.$_$.w6;
|
|
24
|
+
var interfaceMeta = kotlin_kotlin.$_$.q6;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.l6;
|
|
26
|
+
var Collection = kotlin_kotlin.$_$.r2;
|
|
27
|
+
var isInterface = kotlin_kotlin.$_$.r6;
|
|
28
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.k8;
|
|
30
|
+
var KClass = kotlin_kotlin.$_$.d7;
|
|
31
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.l3;
|
|
32
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
33
|
+
var copyToArray = kotlin_kotlin.$_$.s3;
|
|
34
|
+
var Companion_getInstance = kotlin_kotlin.$_$.g2;
|
|
35
|
+
var hashCode = kotlin_kotlin.$_$.p6;
|
|
36
|
+
//endregion
|
|
37
|
+
//region block: pre-declaration
|
|
38
|
+
AbstractKClassTypeToken.prototype = Object.create(AbstractTypeToken.prototype);
|
|
39
|
+
AbstractKClassTypeToken.prototype.constructor = AbstractKClassTypeToken;
|
|
40
|
+
JSKClassTypeToken.prototype = Object.create(AbstractKClassTypeToken.prototype);
|
|
41
|
+
JSKClassTypeToken.prototype.constructor = JSKClassTypeToken;
|
|
42
|
+
JSKTypeTypeToken.prototype = Object.create(AbstractTypeToken.prototype);
|
|
43
|
+
JSKTypeTypeToken.prototype.constructor = JSKTypeTypeToken;
|
|
44
|
+
//endregion
|
|
45
|
+
function AbstractKClassTypeToken(type) {
|
|
46
|
+
AbstractTypeToken.call(this);
|
|
47
|
+
this.m1r_1 = type;
|
|
48
|
+
}
|
|
49
|
+
AbstractKClassTypeToken.prototype.n1r = function () {
|
|
50
|
+
return this.o1r();
|
|
51
|
+
};
|
|
52
|
+
AbstractKClassTypeToken.prototype.p1r = function () {
|
|
53
|
+
return this.q1r();
|
|
54
|
+
};
|
|
55
|
+
AbstractKClassTypeToken.prototype.r1r = function () {
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
AbstractKClassTypeToken.prototype.s1r = function () {
|
|
59
|
+
return true;
|
|
60
|
+
};
|
|
61
|
+
AbstractKClassTypeToken.prototype.t1r = function () {
|
|
62
|
+
return emptyList();
|
|
63
|
+
};
|
|
64
|
+
AbstractKClassTypeToken.prototype.u1r = function () {
|
|
65
|
+
var tmp$ret$0;
|
|
66
|
+
// Inline function 'kotlin.emptyArray' call
|
|
67
|
+
tmp$ret$0 = [];
|
|
68
|
+
return tmp$ret$0;
|
|
69
|
+
};
|
|
70
|
+
AbstractKClassTypeToken.prototype.v1r = function (typeToken) {
|
|
71
|
+
if (this.equals(typeToken))
|
|
72
|
+
return true;
|
|
73
|
+
if (this.m1r_1.equals(PrimitiveClasses_getInstance().ig()))
|
|
74
|
+
return true;
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
AbstractKClassTypeToken.prototype.w1r = function (other) {
|
|
78
|
+
// Inline function 'kotlin.require' call
|
|
79
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
80
|
+
// Inline function 'kotlin.require' call
|
|
81
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
82
|
+
if (!(other instanceof AbstractKClassTypeToken)) {
|
|
83
|
+
var tmp$ret$0;
|
|
84
|
+
// Inline function 'kotlin.require.<anonymous>' call
|
|
85
|
+
tmp$ret$0 = 'Failed requirement.';
|
|
86
|
+
var message = tmp$ret$0;
|
|
87
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
88
|
+
}
|
|
89
|
+
if (!this.m1r_1.equals(other.m1r_1))
|
|
90
|
+
return false;
|
|
91
|
+
return true;
|
|
92
|
+
};
|
|
93
|
+
AbstractKClassTypeToken.prototype.x1r = function () {
|
|
94
|
+
return this.m1r_1.hashCode();
|
|
95
|
+
};
|
|
96
|
+
AbstractKClassTypeToken.$metadata$ = classMeta('AbstractKClassTypeToken', undefined, undefined, undefined, undefined, AbstractTypeToken.prototype);
|
|
97
|
+
function Companion() {
|
|
98
|
+
Companion_instance = this;
|
|
99
|
+
var tmp = this;
|
|
100
|
+
var tmp$ret$0;
|
|
101
|
+
// Inline function 'org.kodein.type.erased' call
|
|
102
|
+
tmp$ret$0 = erased(getKClass(Unit));
|
|
103
|
+
tmp.y1r_1 = tmp$ret$0;
|
|
104
|
+
var tmp_0 = this;
|
|
105
|
+
var tmp$ret$1;
|
|
106
|
+
// Inline function 'org.kodein.type.erased' call
|
|
107
|
+
tmp$ret$1 = erased(PrimitiveClasses_getInstance().ig());
|
|
108
|
+
tmp_0.z1r_1 = tmp$ret$1;
|
|
109
|
+
}
|
|
110
|
+
Companion.prototype.a1s = function () {
|
|
111
|
+
return this.z1r_1;
|
|
112
|
+
};
|
|
113
|
+
Companion.$metadata$ = objectMeta('Companion');
|
|
114
|
+
var Companion_instance;
|
|
115
|
+
function Companion_getInstance_0() {
|
|
116
|
+
if (Companion_instance == null)
|
|
117
|
+
new Companion();
|
|
118
|
+
return Companion_instance;
|
|
119
|
+
}
|
|
120
|
+
function TypeToken() {
|
|
121
|
+
}
|
|
122
|
+
TypeToken.$metadata$ = interfaceMeta('TypeToken');
|
|
123
|
+
function Companion_0() {
|
|
124
|
+
Companion_instance_0 = this;
|
|
125
|
+
var tmp = this;
|
|
126
|
+
var tmp$ret$0;
|
|
127
|
+
// Inline function 'org.kodein.type.erased' call
|
|
128
|
+
tmp$ret$0 = erased(getKClass(Unit));
|
|
129
|
+
tmp.b1s_1 = tmp$ret$0;
|
|
130
|
+
var tmp_0 = this;
|
|
131
|
+
var tmp$ret$1;
|
|
132
|
+
// Inline function 'org.kodein.type.erased' call
|
|
133
|
+
tmp$ret$1 = erased(PrimitiveClasses_getInstance().ig());
|
|
134
|
+
tmp_0.c1s_1 = tmp$ret$1;
|
|
135
|
+
}
|
|
136
|
+
Companion_0.prototype.a1s = function () {
|
|
137
|
+
return this.c1s_1;
|
|
138
|
+
};
|
|
139
|
+
Companion_0.$metadata$ = objectMeta('Companion');
|
|
140
|
+
var Companion_instance_0;
|
|
141
|
+
function Companion_getInstance_1() {
|
|
142
|
+
if (Companion_instance_0 == null)
|
|
143
|
+
new Companion_0();
|
|
144
|
+
return Companion_instance_0;
|
|
145
|
+
}
|
|
146
|
+
function AbstractTypeToken() {
|
|
147
|
+
Companion_getInstance_1();
|
|
148
|
+
}
|
|
149
|
+
AbstractTypeToken.prototype.v1r = function (typeToken) {
|
|
150
|
+
if (this.equals(typeToken) ? true : this.equals(Companion_getInstance_1().c1s_1))
|
|
151
|
+
return true;
|
|
152
|
+
var raw = this.r1r();
|
|
153
|
+
if (equals(raw, typeToken.r1r())) {
|
|
154
|
+
var thisParams = this.u1r();
|
|
155
|
+
var tmp$ret$0;
|
|
156
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
157
|
+
tmp$ret$0 = thisParams.length === 0;
|
|
158
|
+
if (tmp$ret$0)
|
|
159
|
+
return true;
|
|
160
|
+
var tokenParams = typeToken.u1r();
|
|
161
|
+
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
162
|
+
var index = 0;
|
|
163
|
+
var indexedObject = thisParams;
|
|
164
|
+
var inductionVariable = 0;
|
|
165
|
+
var last = indexedObject.length;
|
|
166
|
+
while (inductionVariable < last) {
|
|
167
|
+
var item = indexedObject[inductionVariable];
|
|
168
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
169
|
+
// Inline function 'org.kodein.type.AbstractTypeToken.isAssignableFrom.<anonymous>' call
|
|
170
|
+
var tmp1 = index;
|
|
171
|
+
index = tmp1 + 1 | 0;
|
|
172
|
+
var tmp0__anonymous__q1qw7t = tmp1;
|
|
173
|
+
var tokenParam = tokenParams[tmp0__anonymous__q1qw7t];
|
|
174
|
+
if (!item.v1r(tokenParam))
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
var tmp$ret$1;
|
|
180
|
+
$l$block_0: {
|
|
181
|
+
// Inline function 'kotlin.collections.any' call
|
|
182
|
+
var tmp1_any = typeToken.t1r();
|
|
183
|
+
var tmp;
|
|
184
|
+
if (isInterface(tmp1_any, Collection)) {
|
|
185
|
+
tmp = tmp1_any.k();
|
|
186
|
+
} else {
|
|
187
|
+
tmp = false;
|
|
188
|
+
}
|
|
189
|
+
if (tmp) {
|
|
190
|
+
tmp$ret$1 = false;
|
|
191
|
+
break $l$block_0;
|
|
192
|
+
}
|
|
193
|
+
var tmp0_iterator = tmp1_any.f();
|
|
194
|
+
while (tmp0_iterator.g()) {
|
|
195
|
+
var element = tmp0_iterator.h();
|
|
196
|
+
var tmp$ret$2;
|
|
197
|
+
// Inline function 'org.kodein.type.AbstractTypeToken.isAssignableFrom.<anonymous>' call
|
|
198
|
+
tmp$ret$2 = this.v1r(element);
|
|
199
|
+
if (tmp$ret$2) {
|
|
200
|
+
tmp$ret$1 = true;
|
|
201
|
+
break $l$block_0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
tmp$ret$1 = false;
|
|
205
|
+
}
|
|
206
|
+
return tmp$ret$1;
|
|
207
|
+
};
|
|
208
|
+
AbstractTypeToken.prototype.toString = function () {
|
|
209
|
+
return this.p1r();
|
|
210
|
+
};
|
|
211
|
+
AbstractTypeToken.prototype.equals = function (other) {
|
|
212
|
+
if (this === other)
|
|
213
|
+
return true;
|
|
214
|
+
if (!(!(other == null) ? isInterface(other, TypeToken) : false))
|
|
215
|
+
return false;
|
|
216
|
+
if (getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
217
|
+
return this.w1r(other);
|
|
218
|
+
if (!equals(this.r1r(), other.r1r()))
|
|
219
|
+
return false;
|
|
220
|
+
if (!this.s1r() ? true : !other.s1r()) {
|
|
221
|
+
var tParams = this.u1r();
|
|
222
|
+
var oParams = other.u1r();
|
|
223
|
+
if (!(tParams.length === oParams.length))
|
|
224
|
+
return false;
|
|
225
|
+
var inductionVariable = 0;
|
|
226
|
+
var last = tParams.length - 1 | 0;
|
|
227
|
+
if (inductionVariable <= last)
|
|
228
|
+
do {
|
|
229
|
+
var i = inductionVariable;
|
|
230
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
231
|
+
if (!equals(tParams[i], oParams[i]))
|
|
232
|
+
return false;
|
|
233
|
+
}
|
|
234
|
+
while (inductionVariable <= last);
|
|
235
|
+
}
|
|
236
|
+
return true;
|
|
237
|
+
};
|
|
238
|
+
AbstractTypeToken.prototype.hashCode = function () {
|
|
239
|
+
return this.x1r();
|
|
240
|
+
};
|
|
241
|
+
AbstractTypeToken.$metadata$ = classMeta('AbstractTypeToken', [TypeToken]);
|
|
242
|
+
function JSKClassTypeToken(type) {
|
|
243
|
+
AbstractKClassTypeToken.call(this, type);
|
|
244
|
+
}
|
|
245
|
+
JSKClassTypeToken.prototype.o1r = function () {
|
|
246
|
+
var tmp0_elvis_lhs = this.m1r_1.ye();
|
|
247
|
+
return tmp0_elvis_lhs == null ? '(non-denotable type)' : tmp0_elvis_lhs;
|
|
248
|
+
};
|
|
249
|
+
JSKClassTypeToken.prototype.q1r = function () {
|
|
250
|
+
var tmp0_elvis_lhs = this.m1r_1.ye();
|
|
251
|
+
return tmp0_elvis_lhs == null ? '(non-denotable type)' : tmp0_elvis_lhs;
|
|
252
|
+
};
|
|
253
|
+
JSKClassTypeToken.$metadata$ = classMeta('JSKClassTypeToken', undefined, undefined, undefined, undefined, AbstractKClassTypeToken.prototype);
|
|
254
|
+
function JSKTypeTypeToken(type) {
|
|
255
|
+
AbstractTypeToken.call(this);
|
|
256
|
+
this.e1s_1 = type;
|
|
257
|
+
}
|
|
258
|
+
JSKTypeTypeToken.prototype.n1r = function () {
|
|
259
|
+
return toString(this.e1s_1);
|
|
260
|
+
};
|
|
261
|
+
JSKTypeTypeToken.prototype.p1r = function () {
|
|
262
|
+
return toString(this.e1s_1);
|
|
263
|
+
};
|
|
264
|
+
JSKTypeTypeToken.prototype.r1r = function () {
|
|
265
|
+
var tmp = this.e1s_1.if();
|
|
266
|
+
return new JSKClassTypeToken((!(tmp == null) ? isInterface(tmp, KClass) : false) ? tmp : THROW_CCE());
|
|
267
|
+
};
|
|
268
|
+
JSKTypeTypeToken.prototype.u1r = function () {
|
|
269
|
+
var tmp$ret$5;
|
|
270
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
271
|
+
var tmp$ret$4;
|
|
272
|
+
// Inline function 'kotlin.collections.map' call
|
|
273
|
+
var tmp0_map = this.e1s_1.jf();
|
|
274
|
+
var tmp$ret$3;
|
|
275
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
276
|
+
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
|
|
277
|
+
var tmp0_iterator = tmp0_map.f();
|
|
278
|
+
while (tmp0_iterator.g()) {
|
|
279
|
+
var item = tmp0_iterator.h();
|
|
280
|
+
var tmp$ret$2;
|
|
281
|
+
// Inline function 'org.kodein.type.JSKTypeTypeToken.getGenericParameters.<anonymous>' call
|
|
282
|
+
var tmp0_safe_receiver = item.b7_1;
|
|
283
|
+
var tmp;
|
|
284
|
+
if (tmp0_safe_receiver == null) {
|
|
285
|
+
tmp = null;
|
|
286
|
+
} else {
|
|
287
|
+
var tmp$ret$1;
|
|
288
|
+
// Inline function 'kotlin.let' call
|
|
289
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
290
|
+
var tmp$ret$0;
|
|
291
|
+
// Inline function 'org.kodein.type.JSKTypeTypeToken.getGenericParameters.<anonymous>.<anonymous>' call
|
|
292
|
+
tmp$ret$0 = typeToken(tmp0_safe_receiver);
|
|
293
|
+
tmp$ret$1 = tmp$ret$0;
|
|
294
|
+
tmp = tmp$ret$1;
|
|
295
|
+
}
|
|
296
|
+
var tmp1_elvis_lhs = tmp;
|
|
297
|
+
tmp$ret$2 = tmp1_elvis_lhs == null ? Companion_getInstance_1().c1s_1 : tmp1_elvis_lhs;
|
|
298
|
+
tmp0_mapTo.a(tmp$ret$2);
|
|
299
|
+
}
|
|
300
|
+
tmp$ret$3 = tmp0_mapTo;
|
|
301
|
+
tmp$ret$4 = tmp$ret$3;
|
|
302
|
+
var tmp1_toTypedArray = tmp$ret$4;
|
|
303
|
+
tmp$ret$5 = copyToArray(tmp1_toTypedArray);
|
|
304
|
+
return tmp$ret$5;
|
|
305
|
+
};
|
|
306
|
+
JSKTypeTypeToken.prototype.s1r = function () {
|
|
307
|
+
var tmp$ret$0;
|
|
308
|
+
$l$block_0: {
|
|
309
|
+
// Inline function 'kotlin.collections.all' call
|
|
310
|
+
var tmp0_all = this.e1s_1.jf();
|
|
311
|
+
var tmp;
|
|
312
|
+
if (isInterface(tmp0_all, Collection)) {
|
|
313
|
+
tmp = tmp0_all.k();
|
|
314
|
+
} else {
|
|
315
|
+
tmp = false;
|
|
316
|
+
}
|
|
317
|
+
if (tmp) {
|
|
318
|
+
tmp$ret$0 = true;
|
|
319
|
+
break $l$block_0;
|
|
320
|
+
}
|
|
321
|
+
var tmp0_iterator = tmp0_all.f();
|
|
322
|
+
while (tmp0_iterator.g()) {
|
|
323
|
+
var element = tmp0_iterator.h();
|
|
324
|
+
var tmp$ret$1;
|
|
325
|
+
// Inline function 'org.kodein.type.JSKTypeTypeToken.isWildcard.<anonymous>' call
|
|
326
|
+
tmp$ret$1 = element.equals(Companion_getInstance().y6());
|
|
327
|
+
if (!tmp$ret$1) {
|
|
328
|
+
tmp$ret$0 = false;
|
|
329
|
+
break $l$block_0;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
tmp$ret$0 = true;
|
|
333
|
+
}
|
|
334
|
+
return tmp$ret$0;
|
|
335
|
+
};
|
|
336
|
+
JSKTypeTypeToken.prototype.t1r = function () {
|
|
337
|
+
return emptyList();
|
|
338
|
+
};
|
|
339
|
+
JSKTypeTypeToken.prototype.w1r = function (other) {
|
|
340
|
+
// Inline function 'kotlin.require' call
|
|
341
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
342
|
+
// Inline function 'kotlin.require' call
|
|
343
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
344
|
+
if (!(other instanceof JSKTypeTypeToken)) {
|
|
345
|
+
var tmp$ret$0;
|
|
346
|
+
// Inline function 'kotlin.require.<anonymous>' call
|
|
347
|
+
tmp$ret$0 = 'Failed requirement.';
|
|
348
|
+
var message = tmp$ret$0;
|
|
349
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
350
|
+
}
|
|
351
|
+
return equals(this.e1s_1, other.e1s_1);
|
|
352
|
+
};
|
|
353
|
+
JSKTypeTypeToken.prototype.x1r = function () {
|
|
354
|
+
return hashCode(this.e1s_1);
|
|
355
|
+
};
|
|
356
|
+
JSKTypeTypeToken.$metadata$ = classMeta('JSKTypeTypeToken', undefined, undefined, undefined, undefined, AbstractTypeToken.prototype);
|
|
357
|
+
function erasedOf(obj) {
|
|
358
|
+
return new JSKClassTypeToken(getKClassFromExpression(obj));
|
|
359
|
+
}
|
|
360
|
+
function typeToken(type) {
|
|
361
|
+
var tmp;
|
|
362
|
+
if (type.jf().k()) {
|
|
363
|
+
var tmp_0 = type.if();
|
|
364
|
+
tmp = new JSKClassTypeToken((!(tmp_0 == null) ? isInterface(tmp_0, KClass) : false) ? tmp_0 : THROW_CCE());
|
|
365
|
+
} else {
|
|
366
|
+
tmp = new JSKTypeTypeToken(type);
|
|
367
|
+
}
|
|
368
|
+
return tmp;
|
|
369
|
+
}
|
|
370
|
+
function erased(cls) {
|
|
371
|
+
return new JSKClassTypeToken(cls);
|
|
372
|
+
}
|
|
373
|
+
//region block: exports
|
|
374
|
+
_.$_$ = _.$_$ || {};
|
|
375
|
+
_.$_$.a = Companion_getInstance_0;
|
|
376
|
+
_.$_$.b = TypeToken;
|
|
377
|
+
_.$_$.c = erasedOf;
|
|
378
|
+
_.$_$.d = typeToken;
|
|
379
|
+
//endregion
|
|
380
|
+
return _;
|
|
381
|
+
}));
|
|
382
|
+
|
|
383
|
+
//# sourceMappingURL=Kaverit-kaverit-js-ir.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../AbstractKClassTypeToken.kt","../../../../../runtime/kotlinHacks.kt","../../../../../commonMainSources/libraries/stdlib/src/kotlin/util/Preconditions.kt","../../../../../TypeToken.kt","../../../../../typeTokensJS.kt","../../../../../commonMainSources/libraries/stdlib/common/src/generated/_Arrays.kt","../../../../../commonMainSources/libraries/stdlib/common/src/generated/_Collections.kt","../../../../../JSKClassTypeToken.kt","../../../../../JSKTypeTypeToken.kt","../../../../../commonMainSources/libraries/stdlib/src/kotlin/util/Standard.kt","../../../../../jsMainSources/libraries/stdlib/js/src/kotlin/collections.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAImF,4B;IAAhC,iB;;;IAEmB,OAAxB,U;;;IAEsB,OAA3B,U;;;IAEK,OAAJ,I;;;IAEG,OAAJ,I;;;IAEoB,OAAX,W;;;;;ICGK,YAAR,E;IDF4B,OAAZ,S;;;QAGnD,YAAQ,SAAR,C;MACA,OAAO,I;QACP,sD;MACA,OAAO,I;IACX,OAAO,K;;;;;;;QEaP,EAJD,KAIC,oC;;;MAbc,iC;MAcd,cAAc,S;MACd,MAAM,uCAAiC,SAAR,OAAQ,CAAjC,C;;QFVF,mBAAQ,KAAM,MAAd,C;MAAoB,OAAO,K;IAC/B,OAAO,I;;;IAGuC,OAAf,UAAK,W;;;;;cGoCD,I;;;ICzDyC,YAAhB,uB;IDyDzB,qB;gBACF,I;;;IC1D2C,YAAhB,2C;ID0D3B,uB;;;IAA1B,iB;;;;;;;;;;;;;;cA8D4B,I;;;ICxHyC,YAAhB,uB;IDwHzB,qB;gBACF,I;;;ICzH2C,YAAhB,2C;IDyH3B,uB;;;IAA1B,iB;;;;;;;;;;IAtDf,yB;;;QAMY,YAAQ,SAAR,C,GAAA,I,GAAqB,YAAQ,+BAAR,C;MACrB,OAAO,I;IAEX,UAAU,U;QACN,YAAO,SAAU,MAAjB,C;MACA,iBAAiB,U;;;ME8oPzB,YA1nPsB,UA0nPf,YAAQ,C;UF7oPQ,S;QACX,OAAO,I;MACX,kBAAkB,SAAU,M;;ME4sapC,YAAY,C;MAxrab,8B;MAAA,yB;MAAA,+B;aAyraC,oBAAa,I;QAAR,WAAQ,gC;QAAA,wCAzrad,CAyrac,I;;QFjqa+1kc,gB;QAAA,oB;QAAA,kC;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