@solibo/solibo-sdk 1.7.8 → 1.7.9
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/KmLogging-logging.mjs +98 -98
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +33 -33
- package/bitops-library-endian.mjs +3 -3
- package/core-library-digest.mjs +29 -29
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +237 -237
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/hash-library-md.mjs +30 -30
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-encoding.mjs +75 -75
- package/ktor-ktor-client-logging.mjs +520 -520
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +33135 -32431
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +42 -0
- package/solibo-sdk-sdk.mjs +3119 -3111
|
@@ -13,7 +13,7 @@ initMetadataForClass(MapSettings, 'MapSettings', MapSettings);
|
|
|
13
13
|
//endregion
|
|
14
14
|
function invokeListeners($this) {
|
|
15
15
|
// Inline function 'kotlin.collections.forEach' call
|
|
16
|
-
var _iterator__ex2g4s = $this.
|
|
16
|
+
var _iterator__ex2g4s = $this.xst_1.t();
|
|
17
17
|
while (_iterator__ex2g4s.u()) {
|
|
18
18
|
var element = _iterator__ex2g4s.v();
|
|
19
19
|
element();
|
|
@@ -29,48 +29,48 @@ function MapSettings(delegate) {
|
|
|
29
29
|
tmp = delegate;
|
|
30
30
|
}
|
|
31
31
|
delegate = tmp;
|
|
32
|
-
this.
|
|
32
|
+
this.wst_1 = delegate;
|
|
33
33
|
var tmp_0 = this;
|
|
34
34
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
35
|
-
tmp_0.
|
|
35
|
+
tmp_0.xst_1 = ArrayList_init_$Create$();
|
|
36
36
|
}
|
|
37
37
|
protoOf(MapSettings).e3h = function (key) {
|
|
38
38
|
// Inline function 'kotlin.collections.minusAssign' call
|
|
39
|
-
this.
|
|
39
|
+
this.wst_1.e3(key);
|
|
40
40
|
invokeListeners(this);
|
|
41
41
|
};
|
|
42
|
-
protoOf(MapSettings).
|
|
42
|
+
protoOf(MapSettings).pst = function (key, value) {
|
|
43
43
|
// Inline function 'kotlin.collections.set' call
|
|
44
|
-
this.
|
|
44
|
+
this.wst_1.d3(key, value);
|
|
45
45
|
invokeListeners(this);
|
|
46
46
|
};
|
|
47
|
-
protoOf(MapSettings).
|
|
47
|
+
protoOf(MapSettings).qst = function (key, value) {
|
|
48
48
|
// Inline function 'kotlin.collections.set' call
|
|
49
|
-
this.
|
|
49
|
+
this.wst_1.d3(key, value);
|
|
50
50
|
invokeListeners(this);
|
|
51
51
|
};
|
|
52
|
-
protoOf(MapSettings).
|
|
52
|
+
protoOf(MapSettings).rst = function (key, value) {
|
|
53
53
|
// Inline function 'kotlin.collections.set' call
|
|
54
|
-
this.
|
|
54
|
+
this.wst_1.d3(key, value);
|
|
55
55
|
invokeListeners(this);
|
|
56
56
|
};
|
|
57
|
-
protoOf(MapSettings).
|
|
58
|
-
var tmp = this.
|
|
57
|
+
protoOf(MapSettings).sst = function (key) {
|
|
58
|
+
var tmp = this.wst_1.a3(key);
|
|
59
59
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
60
60
|
};
|
|
61
|
-
protoOf(MapSettings).
|
|
61
|
+
protoOf(MapSettings).tst = function (key, value) {
|
|
62
62
|
// Inline function 'kotlin.collections.set' call
|
|
63
|
-
this.
|
|
63
|
+
this.wst_1.d3(key, value);
|
|
64
64
|
invokeListeners(this);
|
|
65
65
|
};
|
|
66
|
-
protoOf(MapSettings).
|
|
66
|
+
protoOf(MapSettings).ust = function (key, value) {
|
|
67
67
|
// Inline function 'kotlin.collections.set' call
|
|
68
|
-
this.
|
|
68
|
+
this.wst_1.d3(key, value);
|
|
69
69
|
invokeListeners(this);
|
|
70
70
|
};
|
|
71
|
-
protoOf(MapSettings).
|
|
71
|
+
protoOf(MapSettings).vst = function (key, value) {
|
|
72
72
|
// Inline function 'kotlin.collections.set' call
|
|
73
|
-
this.
|
|
73
|
+
this.wst_1.d3(key, value);
|
|
74
74
|
invokeListeners(this);
|
|
75
75
|
};
|
|
76
76
|
//region block: exports
|
|
@@ -18,45 +18,45 @@ function StorageSettings(delegate) {
|
|
|
18
18
|
tmp = delegate;
|
|
19
19
|
}
|
|
20
20
|
delegate = tmp;
|
|
21
|
-
this.
|
|
21
|
+
this.ost_1 = delegate;
|
|
22
22
|
}
|
|
23
23
|
protoOf(StorageSettings).e3h = function (key) {
|
|
24
|
-
return this.
|
|
24
|
+
return this.ost_1.removeItem(key);
|
|
25
25
|
};
|
|
26
|
-
protoOf(StorageSettings).
|
|
27
|
-
var tmp0 = this.
|
|
26
|
+
protoOf(StorageSettings).pst = function (key, value) {
|
|
27
|
+
var tmp0 = this.ost_1;
|
|
28
28
|
// Inline function 'com.russhwolf.settings.set' call
|
|
29
29
|
var value_0 = value.toString();
|
|
30
30
|
tmp0.setItem(key, value_0);
|
|
31
31
|
};
|
|
32
|
-
protoOf(StorageSettings).
|
|
33
|
-
var tmp0 = this.
|
|
32
|
+
protoOf(StorageSettings).qst = function (key, value) {
|
|
33
|
+
var tmp0 = this.ost_1;
|
|
34
34
|
// Inline function 'com.russhwolf.settings.set' call
|
|
35
35
|
var value_0 = value.toString();
|
|
36
36
|
tmp0.setItem(key, value_0);
|
|
37
37
|
};
|
|
38
|
-
protoOf(StorageSettings).
|
|
38
|
+
protoOf(StorageSettings).rst = function (key, value) {
|
|
39
39
|
// Inline function 'com.russhwolf.settings.set' call
|
|
40
|
-
this.
|
|
40
|
+
this.ost_1.setItem(key, value);
|
|
41
41
|
};
|
|
42
|
-
protoOf(StorageSettings).
|
|
42
|
+
protoOf(StorageSettings).sst = function (key) {
|
|
43
43
|
// Inline function 'com.russhwolf.settings.get' call
|
|
44
|
-
return this.
|
|
44
|
+
return this.ost_1.getItem(key);
|
|
45
45
|
};
|
|
46
|
-
protoOf(StorageSettings).
|
|
47
|
-
var tmp0 = this.
|
|
46
|
+
protoOf(StorageSettings).tst = function (key, value) {
|
|
47
|
+
var tmp0 = this.ost_1;
|
|
48
48
|
// Inline function 'com.russhwolf.settings.set' call
|
|
49
49
|
var value_0 = value.toString();
|
|
50
50
|
tmp0.setItem(key, value_0);
|
|
51
51
|
};
|
|
52
|
-
protoOf(StorageSettings).
|
|
53
|
-
var tmp0 = this.
|
|
52
|
+
protoOf(StorageSettings).ust = function (key, value) {
|
|
53
|
+
var tmp0 = this.ost_1;
|
|
54
54
|
// Inline function 'com.russhwolf.settings.set' call
|
|
55
55
|
var value_0 = value.toString();
|
|
56
56
|
tmp0.setItem(key, value_0);
|
|
57
57
|
};
|
|
58
|
-
protoOf(StorageSettings).
|
|
59
|
-
var tmp0 = this.
|
|
58
|
+
protoOf(StorageSettings).vst = function (key, value) {
|
|
59
|
+
var tmp0 = this.ost_1;
|
|
60
60
|
// Inline function 'com.russhwolf.settings.set' call
|
|
61
61
|
var value_0 = value.toString();
|
|
62
62
|
tmp0.setItem(key, value_0);
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
initMetadataForClass(AtomicReference, 'AtomicReference');
|
|
9
9
|
//endregion
|
|
10
10
|
function AtomicReference(initialValue) {
|
|
11
|
-
this.
|
|
11
|
+
this.ws0_1 = initialValue;
|
|
12
12
|
}
|
|
13
13
|
protoOf(AtomicReference).g25 = function () {
|
|
14
|
-
return this.
|
|
14
|
+
return this.ws0_1;
|
|
15
15
|
};
|
|
16
16
|
protoOf(AtomicReference).v2n = function (value_) {
|
|
17
|
-
this.
|
|
17
|
+
this.ws0_1 = value_;
|
|
18
18
|
};
|
|
19
19
|
//region block: exports
|
|
20
20
|
export {
|
package/bitops-library-bits.mjs
CHANGED
|
@@ -32,7 +32,7 @@ function Final_init_$Create$(lo, hi) {
|
|
|
32
32
|
return Final_init_$Init$(lo, hi, objectCreate(protoOf(Final)));
|
|
33
33
|
}
|
|
34
34
|
function Companion() {
|
|
35
|
-
this.
|
|
35
|
+
this.qte_1 = 1048576;
|
|
36
36
|
}
|
|
37
37
|
var Companion_instance;
|
|
38
38
|
function Companion_getInstance() {
|
|
@@ -66,9 +66,9 @@ function Bit32_init_$Init$(lo, hi, incrementBy, $this) {
|
|
|
66
66
|
var message_3 = 'lo must be a factor of incrementBy[' + incrementBy + ']';
|
|
67
67
|
throw IllegalArgumentException_init_$Create$(toString(message_3));
|
|
68
68
|
}
|
|
69
|
-
$this.
|
|
70
|
-
$this.
|
|
71
|
-
$this.
|
|
69
|
+
$this.ste_1 = incrementBy;
|
|
70
|
+
$this.tte_1 = lo;
|
|
71
|
+
$this.ute_1 = hi;
|
|
72
72
|
return $this;
|
|
73
73
|
}
|
|
74
74
|
function Bit32_init_$Init$_0(incrementBy, $this) {
|
|
@@ -80,31 +80,31 @@ function Bit32_init_$Create$(incrementBy) {
|
|
|
80
80
|
}
|
|
81
81
|
function Final(lo, hi, isBits) {
|
|
82
82
|
Final_1.call(this, isBits);
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
83
|
+
this.wte_1 = lo;
|
|
84
|
+
this.xte_1 = hi;
|
|
85
85
|
}
|
|
86
86
|
protoOf(Final).ch = function () {
|
|
87
|
-
return this.
|
|
87
|
+
return this.wte_1;
|
|
88
88
|
};
|
|
89
89
|
protoOf(Final).dh = function () {
|
|
90
|
-
return this.
|
|
90
|
+
return this.xte_1;
|
|
91
91
|
};
|
|
92
|
-
protoOf(Final).
|
|
93
|
-
if (this.
|
|
92
|
+
protoOf(Final).yte = function () {
|
|
93
|
+
if (this.zte_1)
|
|
94
94
|
return this;
|
|
95
|
-
return new Final(this.
|
|
95
|
+
return new Final(this.wte_1 << 3, this.xte_1 << 3 | (this.wte_1 >>> 29 | 0), true);
|
|
96
96
|
};
|
|
97
97
|
function Final_0() {
|
|
98
98
|
}
|
|
99
|
-
protoOf(Bit32).
|
|
100
|
-
this.
|
|
101
|
-
if (this.
|
|
102
|
-
this.
|
|
99
|
+
protoOf(Bit32).atf = function () {
|
|
100
|
+
this.tte_1 = this.tte_1 + this.ste_1 | 0;
|
|
101
|
+
if (this.tte_1 === 0) {
|
|
102
|
+
this.ute_1 = this.ute_1 + 1 | 0;
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
protoOf(Bit32).
|
|
106
|
-
var lo = this.
|
|
107
|
-
var hi = this.
|
|
105
|
+
protoOf(Bit32).btf = function (additional) {
|
|
106
|
+
var lo = this.tte_1;
|
|
107
|
+
var hi = this.ute_1;
|
|
108
108
|
var lt0 = lo < 0;
|
|
109
109
|
lo = lo + additional | 0;
|
|
110
110
|
if (lt0 && lo >= 0) {
|
|
@@ -112,16 +112,16 @@ protoOf(Bit32).xtc = function (additional) {
|
|
|
112
112
|
}
|
|
113
113
|
return Final_init_$Create$(lo, hi);
|
|
114
114
|
};
|
|
115
|
-
protoOf(Bit32).
|
|
116
|
-
this.
|
|
117
|
-
this.
|
|
115
|
+
protoOf(Bit32).ctf = function () {
|
|
116
|
+
this.tte_1 = 0;
|
|
117
|
+
this.ute_1 = 0;
|
|
118
118
|
};
|
|
119
119
|
function Bit32() {
|
|
120
120
|
}
|
|
121
121
|
function Bit64() {
|
|
122
122
|
}
|
|
123
123
|
function Final_1(isBits) {
|
|
124
|
-
this.
|
|
124
|
+
this.zte_1 = isBits;
|
|
125
125
|
}
|
|
126
126
|
protoOf(Final_1).equals = function (other) {
|
|
127
127
|
var tmp;
|
|
@@ -135,24 +135,24 @@ protoOf(Final_1).equals = function (other) {
|
|
|
135
135
|
protoOf(Final_1).hashCode = function () {
|
|
136
136
|
var result = 17;
|
|
137
137
|
if (this instanceof Final) {
|
|
138
|
-
result = imul(result, 31) + this.
|
|
139
|
-
result = imul(result, 31) + this.
|
|
138
|
+
result = imul(result, 31) + this.wte_1 | 0;
|
|
139
|
+
result = imul(result, 31) + this.xte_1 | 0;
|
|
140
140
|
} else {
|
|
141
141
|
if (this instanceof Final_0) {
|
|
142
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
143
|
-
result = imul(result, 31) + getBigIntHashCode(this.
|
|
142
|
+
result = imul(result, 31) + getBigIntHashCode(this.etf_1) | 0;
|
|
143
|
+
result = imul(result, 31) + getBigIntHashCode(this.ftf_1) | 0;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
146
|
+
result = imul(result, 31) + getBooleanHashCode(this.zte_1) | 0;
|
|
147
147
|
return result;
|
|
148
148
|
};
|
|
149
149
|
protoOf(Final_1).toString = function () {
|
|
150
150
|
var tmp;
|
|
151
151
|
if (this instanceof Final) {
|
|
152
|
-
tmp = 'Counter.Bit32.Final[lo=' + this.
|
|
152
|
+
tmp = 'Counter.Bit32.Final[lo=' + this.wte_1 + ', hi=' + this.xte_1 + ']';
|
|
153
153
|
} else {
|
|
154
154
|
if (this instanceof Final_0) {
|
|
155
|
-
tmp = 'Counter.Bit64.Final[lo=' + this.
|
|
155
|
+
tmp = 'Counter.Bit64.Final[lo=' + this.etf_1.toString() + ', hi=' + this.ftf_1.toString() + ']';
|
|
156
156
|
} else {
|
|
157
157
|
noWhenBranchMatchedException();
|
|
158
158
|
}
|
|
@@ -160,7 +160,7 @@ protoOf(Final_1).toString = function () {
|
|
|
160
160
|
return tmp;
|
|
161
161
|
};
|
|
162
162
|
function Counter() {
|
|
163
|
-
this.
|
|
163
|
+
this.gtf_1 = new Object();
|
|
164
164
|
}
|
|
165
165
|
protoOf(Counter).equals = function (other) {
|
|
166
166
|
var tmp;
|
|
@@ -172,15 +172,15 @@ protoOf(Counter).equals = function (other) {
|
|
|
172
172
|
return tmp;
|
|
173
173
|
};
|
|
174
174
|
protoOf(Counter).hashCode = function () {
|
|
175
|
-
return 527 + hashCode(this.
|
|
175
|
+
return 527 + hashCode(this.gtf_1) | 0;
|
|
176
176
|
};
|
|
177
177
|
protoOf(Counter).toString = function () {
|
|
178
178
|
var tmp;
|
|
179
179
|
if (this instanceof Bit32) {
|
|
180
|
-
tmp = 'Bit32[lo=' + this.
|
|
180
|
+
tmp = 'Bit32[lo=' + this.tte_1 + ', hi=' + this.ute_1 + ', incrementBy=' + this.ste_1 + ']';
|
|
181
181
|
} else {
|
|
182
182
|
if (this instanceof Bit64) {
|
|
183
|
-
tmp = 'Bit64[lo=' + this.
|
|
183
|
+
tmp = 'Bit64[lo=' + this.jtf_1.toString() + ', hi=' + this.ktf_1.toString() + ', incrementBy=' + this.itf_1.toString() + ']';
|
|
184
184
|
} else {
|
|
185
185
|
noWhenBranchMatchedException();
|
|
186
186
|
}
|
|
@@ -23,7 +23,7 @@ function Little() {
|
|
|
23
23
|
Little_instance = this;
|
|
24
24
|
Endian.call(this);
|
|
25
25
|
}
|
|
26
|
-
protoOf(Little).
|
|
26
|
+
protoOf(Little).ltf = function (source, offset) {
|
|
27
27
|
// Inline function 'org.kotlincrypto.bitops.endian.internal.unpackLEInt' call
|
|
28
28
|
var tmp0 = _B0___init__impl__6otxhp(source[offset]);
|
|
29
29
|
var tmp2 = source[offset + 1 | 0];
|
|
@@ -32,7 +32,7 @@ protoOf(Little).htd = function (source, offset) {
|
|
|
32
32
|
var b3 = source[offset + 3 | 0];
|
|
33
33
|
return _B0___get_b0__impl__g161pk(tmp0) & 255 | (tmp2 & 255) << 8 | (tmp4 & 255) << 16 | b3 << 24;
|
|
34
34
|
};
|
|
35
|
-
protoOf(Little).
|
|
35
|
+
protoOf(Little).mtf = function (source, dest, destOffset) {
|
|
36
36
|
// Inline function 'org.kotlincrypto.bitops.endian.internal.packLEInt' call
|
|
37
37
|
dest[destOffset] = toByte(source);
|
|
38
38
|
dest[destOffset + 1 | 0] = toByte(source >>> 8 | 0);
|
|
@@ -40,7 +40,7 @@ protoOf(Little).itd = function (source, dest, destOffset) {
|
|
|
40
40
|
dest[destOffset + 3 | 0] = toByte(source >>> 24 | 0);
|
|
41
41
|
return dest;
|
|
42
42
|
};
|
|
43
|
-
protoOf(Little).
|
|
43
|
+
protoOf(Little).ntf = function (source, dest, destOffset, sourceIndexStart, sourceIndexEnd) {
|
|
44
44
|
// Inline function 'org.kotlincrypto.bitops.endian.internal.packArray' call
|
|
45
45
|
var destPos = destOffset;
|
|
46
46
|
var sourcePos = sourceIndexStart;
|
package/core-library-digest.mjs
CHANGED
|
@@ -73,26 +73,26 @@ function Digest_init_$Init$(algorithm, blockSize, digestLength, $this) {
|
|
|
73
73
|
var message_2 = 'digestLength cannot be negative';
|
|
74
74
|
throw InvalidParameterException_init_$Create$(toString(message_2));
|
|
75
75
|
}
|
|
76
|
-
tmp.
|
|
77
|
-
$this.
|
|
78
|
-
$this.
|
|
79
|
-
$this.
|
|
76
|
+
tmp.fte_1 = _Buffer___init__impl__mrnqm7(new Int8Array(blockSize));
|
|
77
|
+
$this.dte_1 = algorithm;
|
|
78
|
+
$this.ete_1 = digestLength;
|
|
79
|
+
$this.gte_1 = 0;
|
|
80
80
|
return $this;
|
|
81
81
|
}
|
|
82
|
-
protoOf(Digest).
|
|
83
|
-
return this.
|
|
82
|
+
protoOf(Digest).hte = function () {
|
|
83
|
+
return this.ete_1;
|
|
84
84
|
};
|
|
85
|
-
protoOf(Digest).
|
|
86
|
-
return this.
|
|
85
|
+
protoOf(Digest).ite = function () {
|
|
86
|
+
return this.dte_1;
|
|
87
87
|
};
|
|
88
|
-
protoOf(Digest).
|
|
89
|
-
this.
|
|
88
|
+
protoOf(Digest).jte = function (input) {
|
|
89
|
+
this.kte(input, 0, input.length);
|
|
90
90
|
};
|
|
91
|
-
protoOf(Digest).
|
|
92
|
-
var tmp0 = this.
|
|
93
|
-
var tmp2 = this.
|
|
91
|
+
protoOf(Digest).lte = function (dest, destOffset) {
|
|
92
|
+
var tmp0 = this.fte_1;
|
|
93
|
+
var tmp2 = this.gte_1;
|
|
94
94
|
// Inline function 'org.kotlincrypto.core.digest.internal.commonDigestInto' call
|
|
95
|
-
var digestLength = this.
|
|
95
|
+
var digestLength = this.ete_1;
|
|
96
96
|
// Inline function 'kotlin.contracts.contract' call
|
|
97
97
|
// Inline function 'org.kotlincrypto.core.digest.internal.commonCheckArgs' call
|
|
98
98
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -114,16 +114,16 @@ protoOf(Digest).htc = function (dest, destOffset) {
|
|
|
114
114
|
}
|
|
115
115
|
fill(_Buffer___get_value__impl__xxr8tn(tmp0), 0, tmp2);
|
|
116
116
|
var p2 = _Buffer___get_value__impl__xxr8tn(tmp0);
|
|
117
|
-
this.
|
|
117
|
+
this.mte(dest, destOffset, p2, tmp2);
|
|
118
118
|
// Inline function 'org.kotlincrypto.core.digest.internal.commonReset' call
|
|
119
119
|
// Inline function 'kotlin.contracts.contract' call
|
|
120
120
|
fill(_Buffer___get_value__impl__xxr8tn(tmp0), 0);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.gte_1 = 0;
|
|
122
|
+
this.nte();
|
|
123
123
|
return digestLength;
|
|
124
124
|
};
|
|
125
|
-
protoOf(Digest).
|
|
126
|
-
var result = this.
|
|
125
|
+
protoOf(Digest).mte = function (dest, destOffset, buf, bufPos) {
|
|
126
|
+
var result = this.pte(buf, bufPos);
|
|
127
127
|
// Inline function 'kotlin.collections.copyInto' call
|
|
128
128
|
var endIndex = result.length;
|
|
129
129
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -134,9 +134,9 @@ protoOf(Digest).itc = function (dest, destOffset, buf, bufPos) {
|
|
|
134
134
|
arrayCopy(tmp, dest, destOffset, 0, endIndex);
|
|
135
135
|
fill(result, 0);
|
|
136
136
|
};
|
|
137
|
-
protoOf(Digest).
|
|
138
|
-
var tmp0 = this.
|
|
139
|
-
var tmp8 = this.
|
|
137
|
+
protoOf(Digest).kte = function (input, offset, len) {
|
|
138
|
+
var tmp0 = this.fte_1;
|
|
139
|
+
var tmp8 = this.gte_1;
|
|
140
140
|
$l$block: {
|
|
141
141
|
// Inline function 'org.kotlincrypto.core.digest.internal.commonUpdate' call
|
|
142
142
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -156,7 +156,7 @@ protoOf(Digest).gtc = function (input, offset, len) {
|
|
|
156
156
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
157
157
|
// Inline function 'kotlin.js.asDynamic' call
|
|
158
158
|
arrayCopy(tmp, buf, tmp4, startIndex, limitInput);
|
|
159
|
-
this.
|
|
159
|
+
this.gte_1 = posBuf + len | 0;
|
|
160
160
|
break $l$block;
|
|
161
161
|
}
|
|
162
162
|
var needed = blockSize - posBuf | 0;
|
|
@@ -170,7 +170,7 @@ protoOf(Digest).gtc = function (input, offset, len) {
|
|
|
170
170
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
171
171
|
// Inline function 'kotlin.js.asDynamic' call
|
|
172
172
|
arrayCopy(tmp_0, buf, tmp4_0, tmp6, endIndex);
|
|
173
|
-
this.
|
|
173
|
+
this.ote(buf, 0);
|
|
174
174
|
posBuf = 0;
|
|
175
175
|
posInput = posInput + needed | 0;
|
|
176
176
|
}
|
|
@@ -189,27 +189,27 @@ protoOf(Digest).gtc = function (input, offset, len) {
|
|
|
189
189
|
break $l$loop;
|
|
190
190
|
}
|
|
191
191
|
var p1 = posInput;
|
|
192
|
-
this.
|
|
192
|
+
this.ote(input, p1);
|
|
193
193
|
posInput = posNext;
|
|
194
194
|
}
|
|
195
|
-
this.
|
|
195
|
+
this.gte_1 = posBuf;
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
protoOf(Digest).equals = function (other) {
|
|
199
199
|
var tmp;
|
|
200
200
|
if (other instanceof Digest) {
|
|
201
|
-
tmp = equals(other.
|
|
201
|
+
tmp = equals(other.fte_1, this.fte_1);
|
|
202
202
|
} else {
|
|
203
203
|
tmp = false;
|
|
204
204
|
}
|
|
205
205
|
return tmp;
|
|
206
206
|
};
|
|
207
207
|
protoOf(Digest).hashCode = function () {
|
|
208
|
-
return Buffer__hashCode_impl_3ylui6(this.
|
|
208
|
+
return Buffer__hashCode_impl_3ylui6(this.fte_1);
|
|
209
209
|
};
|
|
210
210
|
protoOf(Digest).toString = function () {
|
|
211
211
|
// Inline function 'org.kotlincrypto.core.digest.internal.commonToString' call
|
|
212
|
-
return 'Digest[' + this.
|
|
212
|
+
return 'Digest[' + this.ite() + ']@' + this.hashCode();
|
|
213
213
|
};
|
|
214
214
|
function Digest() {
|
|
215
215
|
}
|
|
@@ -36,16 +36,16 @@ initMetadataForClass(BigInt_0, 'BigInt', VOID, Number_0, [Comparable], VOID, VOI
|
|
|
36
36
|
//endregion
|
|
37
37
|
function BigIntAsStringSerializer() {
|
|
38
38
|
BigIntAsStringSerializer_instance = this;
|
|
39
|
-
this.
|
|
39
|
+
this.qt4_1 = PrimitiveSerialDescriptor('BigInt', STRING_getInstance());
|
|
40
40
|
}
|
|
41
41
|
protoOf(BigIntAsStringSerializer).bt = function () {
|
|
42
|
-
return this.
|
|
42
|
+
return this.qt4_1;
|
|
43
43
|
};
|
|
44
|
-
protoOf(BigIntAsStringSerializer).
|
|
44
|
+
protoOf(BigIntAsStringSerializer).rt4 = function (encoder, value) {
|
|
45
45
|
encoder.ux(value.toString());
|
|
46
46
|
};
|
|
47
47
|
protoOf(BigIntAsStringSerializer).ot = function (encoder, value) {
|
|
48
|
-
return this.
|
|
48
|
+
return this.rt4(encoder, value instanceof BigInt_0 ? value : THROW_CCE());
|
|
49
49
|
};
|
|
50
50
|
protoOf(BigIntAsStringSerializer).pt = function (decoder) {
|
|
51
51
|
return toBigInt_3(decoder.mw());
|
|
@@ -57,8 +57,8 @@ function BigIntAsStringSerializer_getInstance() {
|
|
|
57
57
|
return BigIntAsStringSerializer_instance;
|
|
58
58
|
}
|
|
59
59
|
function encodeToByteArray(_this__u8e3s4) {
|
|
60
|
-
var positive = _this__u8e3s4.
|
|
61
|
-
var bytes = positive ? encodeToByteArray$decodeFromHex(_this__u8e3s4.
|
|
60
|
+
var positive = _this__u8e3s4.tt4(0) >= 0;
|
|
61
|
+
var bytes = positive ? encodeToByteArray$decodeFromHex(_this__u8e3s4.st4_1.toString(16)) : invertTwoComplement(encodeToByteArray$decodeFromHex(jsBigIntNegate(_this__u8e3s4.st4_1).toString(16)));
|
|
62
62
|
var firstBytePositive = bytes[0] >= 0;
|
|
63
63
|
if (positive === firstBytePositive)
|
|
64
64
|
return bytes;
|
|
@@ -77,7 +77,7 @@ function encodeToByteArray(_this__u8e3s4) {
|
|
|
77
77
|
}
|
|
78
78
|
function Companion() {
|
|
79
79
|
Companion_instance = this;
|
|
80
|
-
this.
|
|
80
|
+
this.ut4_1 = new BigInt_0(BigInt(0));
|
|
81
81
|
}
|
|
82
82
|
protoOf(Companion).q6h = function () {
|
|
83
83
|
return BigIntAsStringSerializer_getInstance();
|
|
@@ -91,39 +91,39 @@ function Companion_getInstance() {
|
|
|
91
91
|
function BigInt_0(jsBigInt) {
|
|
92
92
|
Companion_getInstance();
|
|
93
93
|
Number_0.call(this);
|
|
94
|
-
this.
|
|
94
|
+
this.st4_1 = jsBigInt;
|
|
95
95
|
}
|
|
96
|
-
protoOf(BigInt_0).
|
|
97
|
-
return this.
|
|
96
|
+
protoOf(BigInt_0).tt4 = function (other) {
|
|
97
|
+
return this.vt4(toBigInt(other));
|
|
98
98
|
};
|
|
99
|
-
protoOf(BigInt_0).
|
|
100
|
-
return jsBigIntCompareTo(this.
|
|
99
|
+
protoOf(BigInt_0).vt4 = function (other) {
|
|
100
|
+
return jsBigIntCompareTo(this.st4_1, other.st4_1);
|
|
101
101
|
};
|
|
102
102
|
protoOf(BigInt_0).d = function (other) {
|
|
103
|
-
return this.
|
|
103
|
+
return this.vt4(other instanceof BigInt_0 ? other : THROW_CCE());
|
|
104
104
|
};
|
|
105
|
-
protoOf(BigInt_0).
|
|
106
|
-
return toByte(jsBigIntAsInt(this.
|
|
105
|
+
protoOf(BigInt_0).wt4 = function () {
|
|
106
|
+
return toByte(jsBigIntAsInt(this.st4_1, 8).toString());
|
|
107
107
|
};
|
|
108
|
-
protoOf(BigInt_0).
|
|
109
|
-
return toShort(jsBigIntAsInt(this.
|
|
108
|
+
protoOf(BigInt_0).xt4 = function () {
|
|
109
|
+
return toShort(jsBigIntAsInt(this.st4_1, 16).toString());
|
|
110
110
|
};
|
|
111
|
-
protoOf(BigInt_0).
|
|
112
|
-
return toInt(jsBigIntAsInt(this.
|
|
111
|
+
protoOf(BigInt_0).yt4 = function () {
|
|
112
|
+
return toInt(jsBigIntAsInt(this.st4_1, 32).toString());
|
|
113
113
|
};
|
|
114
|
-
protoOf(BigInt_0).
|
|
115
|
-
return toLong(jsBigIntAsInt(this.
|
|
114
|
+
protoOf(BigInt_0).zt4 = function () {
|
|
115
|
+
return toLong(jsBigIntAsInt(this.st4_1, 64).toString());
|
|
116
116
|
};
|
|
117
117
|
protoOf(BigInt_0).toString = function () {
|
|
118
|
-
return this.
|
|
118
|
+
return this.st4_1.toString();
|
|
119
119
|
};
|
|
120
120
|
protoOf(BigInt_0).hashCode = function () {
|
|
121
|
-
return getStringHashCode(this.
|
|
121
|
+
return getStringHashCode(this.st4_1.toString(36));
|
|
122
122
|
};
|
|
123
123
|
protoOf(BigInt_0).equals = function (other) {
|
|
124
124
|
if (!(other instanceof BigInt_0))
|
|
125
125
|
return false;
|
|
126
|
-
return jsBigIntEquals(this.
|
|
126
|
+
return jsBigIntEquals(this.st4_1, other.st4_1);
|
|
127
127
|
};
|
|
128
128
|
function decodeToBigInt(_this__u8e3s4) {
|
|
129
129
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -134,7 +134,7 @@ function decodeToBigInt(_this__u8e3s4) {
|
|
|
134
134
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
135
135
|
}
|
|
136
136
|
if (_this__u8e3s4.length === 1 && _this__u8e3s4[0] === 0)
|
|
137
|
-
return Companion_getInstance().
|
|
137
|
+
return Companion_getInstance().ut4_1;
|
|
138
138
|
var positive = _this__u8e3s4[0] >= 0;
|
|
139
139
|
var tmp;
|
|
140
140
|
if (positive) {
|
|
@@ -149,7 +149,7 @@ function decodeToBigInt(_this__u8e3s4) {
|
|
|
149
149
|
return new BigInt_0(jsBigInt);
|
|
150
150
|
}
|
|
151
151
|
function toBigInt(_this__u8e3s4) {
|
|
152
|
-
return _this__u8e3s4 === 0 ? Companion_getInstance().
|
|
152
|
+
return _this__u8e3s4 === 0 ? Companion_getInstance().ut4_1 : new BigInt_0(BigInt(_this__u8e3s4));
|
|
153
153
|
}
|
|
154
154
|
function toBigInt_0(_this__u8e3s4) {
|
|
155
155
|
return toBigInt(_this__u8e3s4);
|
|
@@ -158,7 +158,7 @@ function toBigInt_1(_this__u8e3s4) {
|
|
|
158
158
|
return toBigInt(_this__u8e3s4);
|
|
159
159
|
}
|
|
160
160
|
function toBigInt_2(_this__u8e3s4) {
|
|
161
|
-
return _this__u8e3s4 === 0n ? Companion_getInstance().
|
|
161
|
+
return _this__u8e3s4 === 0n ? Companion_getInstance().ut4_1 : new BigInt_0(BigInt(_this__u8e3s4.toString()));
|
|
162
162
|
}
|
|
163
163
|
function toBigInt_3(_this__u8e3s4) {
|
|
164
164
|
// Inline function 'kotlin.text.isNotBlank' call
|