dl-common-util 0.0.9 → 0.1.1
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/dl-common-util.d.ts +27 -0
- package/dl-common-util.js +476 -362
- package/dl-common-util.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +838 -856
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/package.json +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js +0 -15
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/buffer-kt.js +0 -266
- package/buffer-kt.js.map +0 -1
- package/kotlin-js.js +0 -15
- package/kotlin-js.js.map +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +0 -15
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +0 -1
- package/kotlin-web.js +0 -15
- package/kotlin-web.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +0 -15
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
package/dl-common-util.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', 'pinyin-pro', './kotlin-kotlin-stdlib.js'
|
|
3
|
+
define(['exports', 'pinyin-pro', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('pinyin-pro'), require('./kotlin-kotlin-stdlib.js')
|
|
5
|
+
factory(module.exports, require('pinyin-pro'), require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof PinyinPro === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'com.github.D10NGYANG:DLCommonUtil'. Its dependency 'pinyin-pro' was not found. Please, check whether 'pinyin-pro' is loaded prior to 'com.github.D10NGYANG:DLCommonUtil'.");
|
|
@@ -10,102 +10,100 @@
|
|
|
10
10
|
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
11
|
throw new Error("Error loading module 'com.github.D10NGYANG:DLCommonUtil'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'com.github.D10NGYANG:DLCommonUtil'.");
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
throw new Error("Error loading module 'com.github.D10NGYANG:DLCommonUtil'. Its dependency 'buffer-kt' was not found. Please, check whether 'buffer-kt' is loaded prior to 'com.github.D10NGYANG:DLCommonUtil'.");
|
|
15
|
-
}
|
|
16
|
-
root['com.github.D10NGYANG:DLCommonUtil'] = factory(typeof this['com.github.D10NGYANG:DLCommonUtil'] === 'undefined' ? {} : this['com.github.D10NGYANG:DLCommonUtil'], PinyinPro, this['kotlin-kotlin-stdlib'], this['buffer-kt']);
|
|
13
|
+
root['com.github.D10NGYANG:DLCommonUtil'] = factory(typeof this['com.github.D10NGYANG:DLCommonUtil'] === 'undefined' ? {} : this['com.github.D10NGYANG:DLCommonUtil'], PinyinPro, this['kotlin-kotlin-stdlib']);
|
|
17
14
|
}
|
|
18
|
-
}(this, function (_, PinyinPro, kotlin_kotlin
|
|
15
|
+
}(this, function (_, PinyinPro, kotlin_kotlin) {
|
|
19
16
|
'use strict';
|
|
20
17
|
//region block: imports
|
|
21
18
|
var imul = Math.imul;
|
|
22
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
23
20
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
24
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
25
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
26
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
27
|
-
var trim = kotlin_kotlin.$_$.
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
29
|
-
var Long = kotlin_kotlin.$_$.
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
21
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
22
|
+
var THROW_CCE = kotlin_kotlin.$_$.c3;
|
|
23
|
+
var isCharSequence = kotlin_kotlin.$_$.k1;
|
|
24
|
+
var trim = kotlin_kotlin.$_$.z2;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.u1;
|
|
26
|
+
var Long = kotlin_kotlin.$_$.b3;
|
|
27
|
+
var toLong = kotlin_kotlin.$_$.s1;
|
|
28
|
+
var indexOf = kotlin_kotlin.$_$.x;
|
|
29
|
+
var copyOfRange = kotlin_kotlin.$_$.v;
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.p1;
|
|
31
|
+
var objectMeta = kotlin_kotlin.$_$.o1;
|
|
32
|
+
var setMetadataFor = kotlin_kotlin.$_$.q1;
|
|
33
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
34
|
+
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
35
|
+
var arrayCopy = kotlin_kotlin.$_$.s;
|
|
36
|
+
var classMeta = kotlin_kotlin.$_$.f1;
|
|
37
|
+
var defineProp = kotlin_kotlin.$_$.h1;
|
|
38
|
+
var numberToInt = kotlin_kotlin.$_$.m1;
|
|
39
|
+
var toByte = kotlin_kotlin.$_$.r1;
|
|
36
40
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.n;
|
|
37
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
41
|
+
var toString_0 = kotlin_kotlin.$_$.x2;
|
|
38
42
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k;
|
|
39
|
-
var padStart = kotlin_kotlin.$_$.
|
|
43
|
+
var padStart = kotlin_kotlin.$_$.k2;
|
|
40
44
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.o;
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var hexToByteArray = kotlin_kotlin.$_$.j2;
|
|
50
|
-
var iterator = kotlin_kotlin.$_$.m2;
|
|
45
|
+
var indexOf_0 = kotlin_kotlin.$_$.h2;
|
|
46
|
+
var toString_1 = kotlin_kotlin.$_$.v2;
|
|
47
|
+
var toString_2 = kotlin_kotlin.$_$.w2;
|
|
48
|
+
var toInt = kotlin_kotlin.$_$.u2;
|
|
49
|
+
var charSequenceLength = kotlin_kotlin.$_$.e1;
|
|
50
|
+
var hexToByte = kotlin_kotlin.$_$.g2;
|
|
51
|
+
var hexToByteArray = kotlin_kotlin.$_$.f2;
|
|
52
|
+
var iterator = kotlin_kotlin.$_$.i2;
|
|
51
53
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l;
|
|
52
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
53
|
-
var
|
|
54
|
-
var numberToChar = kotlin_kotlin.$_$.
|
|
55
|
-
var THROW_IAE = kotlin_kotlin.$_$.
|
|
56
|
-
var Enum = kotlin_kotlin.$_$.
|
|
57
|
-
var
|
|
58
|
-
var defineProp = kotlin_kotlin.$_$.i1;
|
|
59
|
-
var classMeta = kotlin_kotlin.$_$.g1;
|
|
60
|
-
var setMetadataFor = kotlin_kotlin.$_$.u1;
|
|
61
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.h3;
|
|
54
|
+
var charSequenceGet = kotlin_kotlin.$_$.d1;
|
|
55
|
+
var toString_3 = kotlin_kotlin.$_$.m;
|
|
56
|
+
var numberToChar = kotlin_kotlin.$_$.l1;
|
|
57
|
+
var THROW_IAE = kotlin_kotlin.$_$.d3;
|
|
58
|
+
var Enum = kotlin_kotlin.$_$.a3;
|
|
59
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.e3;
|
|
62
60
|
var primitiveArrayConcat = kotlin_kotlin.$_$.a;
|
|
63
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
61
|
+
var roundToInt = kotlin_kotlin.$_$.w1;
|
|
64
62
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
65
|
-
var until = kotlin_kotlin.$_$.
|
|
66
|
-
var step = kotlin_kotlin.$_$.
|
|
67
|
-
var slice = kotlin_kotlin.$_$.
|
|
68
|
-
var toUInt = kotlin_kotlin.$_$.
|
|
63
|
+
var until = kotlin_kotlin.$_$.y1;
|
|
64
|
+
var step = kotlin_kotlin.$_$.x1;
|
|
65
|
+
var slice = kotlin_kotlin.$_$.o2;
|
|
66
|
+
var toUInt = kotlin_kotlin.$_$.y2;
|
|
69
67
|
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.p;
|
|
70
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
71
|
-
var toString_2 = kotlin_kotlin.$_$.z2;
|
|
68
|
+
var copyToArray = kotlin_kotlin.$_$.w;
|
|
72
69
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
73
|
-
var map = kotlin_kotlin.$_$.
|
|
74
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
75
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
76
|
-
var equals = kotlin_kotlin.$_$.
|
|
77
|
-
var get_PI = kotlin_kotlin.$_$.
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var toInt_0 = kotlin_kotlin.$_$.x2;
|
|
70
|
+
var map = kotlin_kotlin.$_$.a2;
|
|
71
|
+
var joinToString = kotlin_kotlin.$_$.z1;
|
|
72
|
+
var getNumberHashCode = kotlin_kotlin.$_$.j1;
|
|
73
|
+
var equals = kotlin_kotlin.$_$.i1;
|
|
74
|
+
var get_PI = kotlin_kotlin.$_$.v1;
|
|
75
|
+
var toList = kotlin_kotlin.$_$.b2;
|
|
76
|
+
var replaceRange = kotlin_kotlin.$_$.l2;
|
|
77
|
+
var contains = kotlin_kotlin.$_$.c2;
|
|
78
|
+
var println = kotlin_kotlin.$_$.c1;
|
|
79
|
+
var toCharArray = kotlin_kotlin.$_$.q2;
|
|
80
|
+
var replaceRange_0 = kotlin_kotlin.$_$.m2;
|
|
81
|
+
var substring = kotlin_kotlin.$_$.p2;
|
|
82
|
+
var toDouble = kotlin_kotlin.$_$.r2;
|
|
83
|
+
var toInt_0 = kotlin_kotlin.$_$.t2;
|
|
88
84
|
var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
89
|
-
var removeLast = kotlin_kotlin.$_$.
|
|
90
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
91
|
-
var to = kotlin_kotlin.$_$.
|
|
85
|
+
var removeLast = kotlin_kotlin.$_$.z;
|
|
86
|
+
var Default_getInstance = kotlin_kotlin.$_$.q;
|
|
87
|
+
var to = kotlin_kotlin.$_$.f3;
|
|
92
88
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.t;
|
|
93
89
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
|
|
94
|
-
var copyOfRange_0 = kotlin_kotlin.$_$.
|
|
90
|
+
var copyOfRange_0 = kotlin_kotlin.$_$.u;
|
|
95
91
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
96
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
97
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
98
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
99
|
-
var replace = kotlin_kotlin.$_$.
|
|
100
|
-
var padEnd = kotlin_kotlin.$_$.
|
|
101
|
-
var getProgressionLastElement = kotlin_kotlin.$_$.
|
|
102
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
103
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
104
|
-
var toShort = kotlin_kotlin.$_$.
|
|
105
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
106
|
-
var joinToString_0 = kotlin_kotlin.$_$.
|
|
92
|
+
var compareTo = kotlin_kotlin.$_$.g1;
|
|
93
|
+
var encodeToByteArray = kotlin_kotlin.$_$.e2;
|
|
94
|
+
var decodeToString = kotlin_kotlin.$_$.d2;
|
|
95
|
+
var replace = kotlin_kotlin.$_$.n2;
|
|
96
|
+
var padEnd = kotlin_kotlin.$_$.j2;
|
|
97
|
+
var getProgressionLastElement = kotlin_kotlin.$_$.b1;
|
|
98
|
+
var toIntOrNull = kotlin_kotlin.$_$.s2;
|
|
99
|
+
var numberToLong = kotlin_kotlin.$_$.n1;
|
|
100
|
+
var toShort = kotlin_kotlin.$_$.t1;
|
|
101
|
+
var toTypedArray = kotlin_kotlin.$_$.a1;
|
|
102
|
+
var joinToString_0 = kotlin_kotlin.$_$.y;
|
|
107
103
|
//endregion
|
|
108
104
|
//region block: pre-declaration
|
|
105
|
+
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
106
|
+
setMetadataFor(ByteBuffer, 'ByteBuffer', classMeta);
|
|
109
107
|
setMetadataFor(ChecksumType, 'ChecksumType', classMeta, Enum);
|
|
110
108
|
setMetadataFor(Coordinate, 'Coordinate', classMeta, VOID, VOID, Coordinate);
|
|
111
109
|
setMetadataFor(CoordinateConvert, 'CoordinateConvert', objectMeta);
|
|
@@ -122,9 +120,9 @@
|
|
|
122
120
|
while (inductionVariable < last) {
|
|
123
121
|
var byte = _this__u8e3s4[inductionVariable];
|
|
124
122
|
inductionVariable = inductionVariable + 1 | 0;
|
|
125
|
-
builder.
|
|
123
|
+
builder.g3(byteToBinString(byte));
|
|
126
124
|
if (space) {
|
|
127
|
-
builder.
|
|
125
|
+
builder.g3(' ');
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
128
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -140,9 +138,9 @@
|
|
|
140
138
|
while (inductionVariable < last) {
|
|
141
139
|
var byte = _this__u8e3s4[inductionVariable];
|
|
142
140
|
inductionVariable = inductionVariable + 1 | 0;
|
|
143
|
-
builder.
|
|
141
|
+
builder.g3(byteToHexString(byte));
|
|
144
142
|
if (space) {
|
|
145
|
-
builder.
|
|
143
|
+
builder.g3(' ');
|
|
146
144
|
}
|
|
147
145
|
}
|
|
148
146
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -161,21 +159,21 @@
|
|
|
161
159
|
return tmp;
|
|
162
160
|
}
|
|
163
161
|
function byteArrayToUnsignedInt(_this__u8e3s4) {
|
|
164
|
-
return byteArrayToUnsignedLong(_this__u8e3s4).
|
|
162
|
+
return byteArrayToUnsignedLong(_this__u8e3s4).k7();
|
|
165
163
|
}
|
|
166
164
|
function byteArrayToUnsignedLong(_this__u8e3s4) {
|
|
167
165
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
168
166
|
if (_this__u8e3s4.length === 0)
|
|
169
167
|
return new Long(0, 0);
|
|
170
|
-
var buffer = wrap(
|
|
171
|
-
var temp = toLong(byteToUnsignedInt(buffer.
|
|
168
|
+
var buffer = Companion_instance.wrap(_this__u8e3s4);
|
|
169
|
+
var temp = toLong(byteToUnsignedInt(buffer.get(0)));
|
|
172
170
|
var inductionVariable = 1;
|
|
173
|
-
var last = buffer.
|
|
171
|
+
var last = buffer.capacity();
|
|
174
172
|
if (inductionVariable < last)
|
|
175
173
|
do {
|
|
176
174
|
var i = inductionVariable;
|
|
177
175
|
inductionVariable = inductionVariable + 1 | 0;
|
|
178
|
-
temp = temp.
|
|
176
|
+
temp = temp.g7(8).i7(toLong(byteToUnsignedInt(buffer.get(i))));
|
|
179
177
|
}
|
|
180
178
|
while (inductionVariable < last);
|
|
181
179
|
return temp;
|
|
@@ -188,17 +186,17 @@
|
|
|
188
186
|
return -1;
|
|
189
187
|
if (bs.length === 1)
|
|
190
188
|
return indexOf(_this__u8e3s4, bs[0]);
|
|
191
|
-
var buffer = wrap(
|
|
192
|
-
while (buffer.
|
|
193
|
-
if (buffer.
|
|
189
|
+
var buffer = Companion_instance.wrap(_this__u8e3s4);
|
|
190
|
+
while (buffer.hasRemaining()) {
|
|
191
|
+
if (buffer.remaining() < bs.length)
|
|
194
192
|
return -1;
|
|
195
193
|
var idx = 0;
|
|
196
|
-
$l$loop: while (idx < bs.length && buffer.
|
|
194
|
+
$l$loop: while (idx < bs.length && buffer.getByte() === bs[idx]) {
|
|
197
195
|
idx = idx + 1 | 0;
|
|
198
196
|
}
|
|
199
197
|
if (idx === bs.length)
|
|
200
|
-
return buffer.
|
|
201
|
-
buffer.
|
|
198
|
+
return buffer.position() - idx | 0;
|
|
199
|
+
buffer.setPosition((buffer.position() - idx | 0) + 1 | 0);
|
|
202
200
|
}
|
|
203
201
|
return -1;
|
|
204
202
|
}
|
|
@@ -206,43 +204,180 @@
|
|
|
206
204
|
padByte = padByte === VOID ? 0 : padByte;
|
|
207
205
|
if (_this__u8e3s4.length >= length)
|
|
208
206
|
return copyOfRange(_this__u8e3s4, _this__u8e3s4.length - length | 0, _this__u8e3s4.length);
|
|
209
|
-
var buf = allocate(
|
|
207
|
+
var buf = Companion_instance.allocate(length);
|
|
210
208
|
var inductionVariable = 0;
|
|
211
209
|
var last = length - _this__u8e3s4.length | 0;
|
|
212
210
|
if (inductionVariable < last)
|
|
213
211
|
do {
|
|
214
212
|
var i = inductionVariable;
|
|
215
213
|
inductionVariable = inductionVariable + 1 | 0;
|
|
216
|
-
buf.
|
|
214
|
+
buf.set(i, padByte);
|
|
217
215
|
}
|
|
218
216
|
while (inductionVariable < last);
|
|
219
|
-
buf.
|
|
220
|
-
buf.
|
|
221
|
-
buf.
|
|
222
|
-
return buf.
|
|
217
|
+
buf.setPosition(length - _this__u8e3s4.length | 0);
|
|
218
|
+
buf.setBytes(_this__u8e3s4);
|
|
219
|
+
buf.reset();
|
|
220
|
+
return buf.getRemainingBytes();
|
|
223
221
|
}
|
|
224
222
|
function byteArrayPadEnd(_this__u8e3s4, length, padByte) {
|
|
225
223
|
padByte = padByte === VOID ? 0 : padByte;
|
|
226
224
|
if (_this__u8e3s4.length >= length)
|
|
227
225
|
return copyOfRange(_this__u8e3s4, 0, length);
|
|
228
|
-
var buf = allocate(
|
|
229
|
-
buf.
|
|
226
|
+
var buf = Companion_instance.allocate(length);
|
|
227
|
+
buf.setBytes(_this__u8e3s4);
|
|
230
228
|
var inductionVariable = 0;
|
|
231
229
|
var last = length - _this__u8e3s4.length | 0;
|
|
232
230
|
if (inductionVariable < last)
|
|
233
231
|
do {
|
|
234
232
|
var i = inductionVariable;
|
|
235
233
|
inductionVariable = inductionVariable + 1 | 0;
|
|
236
|
-
buf.
|
|
234
|
+
buf.set(i + _this__u8e3s4.length | 0, padByte);
|
|
237
235
|
}
|
|
238
236
|
while (inductionVariable < last);
|
|
239
|
-
buf.
|
|
240
|
-
return buf.
|
|
237
|
+
buf.reset();
|
|
238
|
+
return buf.getRemainingBytes();
|
|
241
239
|
}
|
|
242
240
|
function byteArrayGetBitRange(_this__u8e3s4, start, length) {
|
|
243
|
-
var buf = wrap(
|
|
241
|
+
var buf = Companion_instance.wrap(_this__u8e3s4);
|
|
244
242
|
return getBitRange(buf, start, length);
|
|
245
243
|
}
|
|
244
|
+
function Companion() {
|
|
245
|
+
}
|
|
246
|
+
protoOf(Companion).wrap = function (data) {
|
|
247
|
+
return new ByteBuffer(data);
|
|
248
|
+
};
|
|
249
|
+
protoOf(Companion).allocate = function (capacity) {
|
|
250
|
+
return new ByteBuffer(new Int8Array(capacity));
|
|
251
|
+
};
|
|
252
|
+
var Companion_instance;
|
|
253
|
+
function Companion_getInstance() {
|
|
254
|
+
return Companion_instance;
|
|
255
|
+
}
|
|
256
|
+
function ByteBuffer(data) {
|
|
257
|
+
this.v9_1 = data;
|
|
258
|
+
this.w9_1 = 0;
|
|
259
|
+
this.x9_1 = this.v9_1.length;
|
|
260
|
+
this.y9_1 = this.v9_1.length;
|
|
261
|
+
}
|
|
262
|
+
protoOf(ByteBuffer).position = function () {
|
|
263
|
+
return this.w9_1;
|
|
264
|
+
};
|
|
265
|
+
protoOf(ByteBuffer).setPosition = function (newPosition) {
|
|
266
|
+
if (newPosition < 0 ? true : newPosition > this.x9_1) {
|
|
267
|
+
throw IllegalArgumentException_init_$Create$('newPosition: ' + newPosition);
|
|
268
|
+
}
|
|
269
|
+
this.w9_1 = newPosition;
|
|
270
|
+
};
|
|
271
|
+
protoOf(ByteBuffer).limit = function () {
|
|
272
|
+
return this.x9_1;
|
|
273
|
+
};
|
|
274
|
+
protoOf(ByteBuffer).setLimit = function (newLimit) {
|
|
275
|
+
if (newLimit < 0 ? true : newLimit > this.y9_1) {
|
|
276
|
+
throw IllegalArgumentException_init_$Create$('newLimit: ' + newLimit);
|
|
277
|
+
}
|
|
278
|
+
this.x9_1 = newLimit;
|
|
279
|
+
};
|
|
280
|
+
protoOf(ByteBuffer).capacity = function () {
|
|
281
|
+
return this.y9_1;
|
|
282
|
+
};
|
|
283
|
+
protoOf(ByteBuffer).remaining = function () {
|
|
284
|
+
return this.x9_1 - this.w9_1 | 0;
|
|
285
|
+
};
|
|
286
|
+
protoOf(ByteBuffer).hasRemaining = function () {
|
|
287
|
+
return this.w9_1 < this.x9_1;
|
|
288
|
+
};
|
|
289
|
+
protoOf(ByteBuffer).get = function (index) {
|
|
290
|
+
if (index < 0 ? true : index >= this.x9_1) {
|
|
291
|
+
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', limit: ' + this.x9_1);
|
|
292
|
+
}
|
|
293
|
+
return this.v9_1[index];
|
|
294
|
+
};
|
|
295
|
+
protoOf(ByteBuffer).getByte = function () {
|
|
296
|
+
if (this.w9_1 >= this.x9_1) {
|
|
297
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.w9_1 + ', limit: ' + this.x9_1);
|
|
298
|
+
}
|
|
299
|
+
var tmp1 = this.w9_1;
|
|
300
|
+
this.w9_1 = tmp1 + 1 | 0;
|
|
301
|
+
return this.v9_1[tmp1];
|
|
302
|
+
};
|
|
303
|
+
protoOf(ByteBuffer).getBytes = function (size) {
|
|
304
|
+
if ((this.w9_1 + size | 0) > this.x9_1) {
|
|
305
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.w9_1 + ', size: ' + size + ', limit: ' + this.x9_1);
|
|
306
|
+
}
|
|
307
|
+
var result = copyOfRange(this.v9_1, this.w9_1, this.w9_1 + size | 0);
|
|
308
|
+
this.w9_1 = this.w9_1 + size | 0;
|
|
309
|
+
return result;
|
|
310
|
+
};
|
|
311
|
+
protoOf(ByteBuffer).getRemainingBytes = function () {
|
|
312
|
+
return this.getBytes(this.remaining());
|
|
313
|
+
};
|
|
314
|
+
protoOf(ByteBuffer).set = function (index, value) {
|
|
315
|
+
if (index < 0 ? true : index >= this.x9_1) {
|
|
316
|
+
throw IndexOutOfBoundsException_init_$Create$('index: ' + index + ', limit: ' + this.x9_1);
|
|
317
|
+
}
|
|
318
|
+
this.v9_1[index] = value;
|
|
319
|
+
};
|
|
320
|
+
protoOf(ByteBuffer).setByte = function (value) {
|
|
321
|
+
if (this.w9_1 >= this.x9_1) {
|
|
322
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.w9_1 + ', limit: ' + this.x9_1);
|
|
323
|
+
}
|
|
324
|
+
var tmp1 = this.w9_1;
|
|
325
|
+
this.w9_1 = tmp1 + 1 | 0;
|
|
326
|
+
this.v9_1[tmp1] = value;
|
|
327
|
+
};
|
|
328
|
+
protoOf(ByteBuffer).setBytes = function (value) {
|
|
329
|
+
if ((this.w9_1 + value.length | 0) > this.x9_1) {
|
|
330
|
+
throw IndexOutOfBoundsException_init_$Create$('position: ' + this.w9_1 + ', size: ' + value.length + ', limit: ' + this.x9_1);
|
|
331
|
+
}
|
|
332
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
333
|
+
var destination = this.v9_1;
|
|
334
|
+
var destinationOffset = this.w9_1;
|
|
335
|
+
var endIndex = value.length;
|
|
336
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
337
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
338
|
+
var tmp = value;
|
|
339
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
340
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
341
|
+
arrayCopy(tmp, destination, destinationOffset, 0, endIndex);
|
|
342
|
+
this.w9_1 = this.w9_1 + value.length | 0;
|
|
343
|
+
};
|
|
344
|
+
protoOf(ByteBuffer).reset = function () {
|
|
345
|
+
this.w9_1 = 0;
|
|
346
|
+
};
|
|
347
|
+
function getBitRange(_this__u8e3s4, start, length) {
|
|
348
|
+
if (length <= 0) {
|
|
349
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
350
|
+
return new Int8Array([]);
|
|
351
|
+
}
|
|
352
|
+
if (start < 0)
|
|
353
|
+
throw IllegalArgumentException_init_$Create$('start must be greater than 0');
|
|
354
|
+
if ((start + length | 0) > imul(_this__u8e3s4.capacity(), 8))
|
|
355
|
+
throw IllegalArgumentException_init_$Create$('start + offset must be less than capacity * 8');
|
|
356
|
+
var right = (8 - ((start + length | 0) % 8 | 0) | 0) % 8 | 0;
|
|
357
|
+
var left = (8 - (length % 8 | 0) | 0) % 8 | 0;
|
|
358
|
+
// Inline function 'kotlin.math.ceil' call
|
|
359
|
+
var x = length / 8.0;
|
|
360
|
+
var tmp$ret$1 = Math.ceil(x);
|
|
361
|
+
var resSize = numberToInt(tmp$ret$1);
|
|
362
|
+
var result = new Int8Array(resSize);
|
|
363
|
+
var startByteIdx = start / 8 | 0;
|
|
364
|
+
// Inline function 'kotlin.math.ceil' call
|
|
365
|
+
var x_0 = (start + length | 0) / 8.0;
|
|
366
|
+
var tmp$ret$2 = Math.ceil(x_0);
|
|
367
|
+
var endByteIdx = numberToInt(tmp$ret$2);
|
|
368
|
+
var buf = _this__u8e3s4;
|
|
369
|
+
var originSize = endByteIdx - startByteIdx | 0;
|
|
370
|
+
var idx = originSize - 1 | 0;
|
|
371
|
+
while ((resSize - (originSize - idx | 0) | 0) >= 0) {
|
|
372
|
+
var temp = byteToUnsignedInt(buf.get(idx + startByteIdx | 0)) >> right;
|
|
373
|
+
if (idx > 0)
|
|
374
|
+
temp = temp | byteToUnsignedInt(buf.get((idx + startByteIdx | 0) - 1 | 0)) << (8 - right | 0);
|
|
375
|
+
result[resSize - (originSize - idx | 0) | 0] = toByte(temp);
|
|
376
|
+
idx = idx - 1 | 0;
|
|
377
|
+
}
|
|
378
|
+
result[0] = toByte((byteToUnsignedInt(result[0]) << left & 255) >> left);
|
|
379
|
+
return result;
|
|
380
|
+
}
|
|
246
381
|
function byteToBinString(_this__u8e3s4) {
|
|
247
382
|
// Inline function 'kotlin.toUByte' call
|
|
248
383
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(_this__u8e3s4);
|
|
@@ -306,7 +441,7 @@
|
|
|
306
441
|
size = size === VOID ? 0 : size;
|
|
307
442
|
if (_this__u8e3s4 < 0)
|
|
308
443
|
throw IllegalArgumentException_init_$Create$('Int must be unsigned');
|
|
309
|
-
var hex =
|
|
444
|
+
var hex = toString_1(_this__u8e3s4, 16);
|
|
310
445
|
var tmp;
|
|
311
446
|
if (size <= 0) {
|
|
312
447
|
// Inline function 'kotlin.math.ceil' call
|
|
@@ -321,9 +456,9 @@
|
|
|
321
456
|
}
|
|
322
457
|
function toByteArray_0(_this__u8e3s4, size) {
|
|
323
458
|
size = size === VOID ? 0 : size;
|
|
324
|
-
if (_this__u8e3s4.
|
|
459
|
+
if (_this__u8e3s4.z6(new Long(0, 0)) < 0)
|
|
325
460
|
throw IllegalArgumentException_init_$Create$('Long must be unsigned');
|
|
326
|
-
var hex =
|
|
461
|
+
var hex = toString_2(_this__u8e3s4, 16);
|
|
327
462
|
var tmp;
|
|
328
463
|
if (size <= 0) {
|
|
329
464
|
// Inline function 'kotlin.math.ceil' call
|
|
@@ -336,40 +471,6 @@
|
|
|
336
471
|
var length = tmp;
|
|
337
472
|
return hexStringToByteArray(padStart(hex, imul(length, 2), _Char___init__impl__6a9atx(48)));
|
|
338
473
|
}
|
|
339
|
-
function getBitRange(_this__u8e3s4, start, length) {
|
|
340
|
-
if (length <= 0) {
|
|
341
|
-
// Inline function 'kotlin.byteArrayOf' call
|
|
342
|
-
return new Int8Array([]);
|
|
343
|
-
}
|
|
344
|
-
if (start < 0)
|
|
345
|
-
throw IllegalArgumentException_init_$Create$('start must be greater than 0');
|
|
346
|
-
if ((start + length | 0) > imul(_this__u8e3s4.la(), 8))
|
|
347
|
-
throw IllegalArgumentException_init_$Create$('start + offset must be less than capacity * 8');
|
|
348
|
-
var right = (8 - ((start + length | 0) % 8 | 0) | 0) % 8 | 0;
|
|
349
|
-
var left = (8 - (length % 8 | 0) | 0) % 8 | 0;
|
|
350
|
-
// Inline function 'kotlin.math.ceil' call
|
|
351
|
-
var x = length / 8.0;
|
|
352
|
-
var tmp$ret$1 = Math.ceil(x);
|
|
353
|
-
var resSize = numberToInt(tmp$ret$1);
|
|
354
|
-
var result = new Int8Array(resSize);
|
|
355
|
-
var startByteIdx = start / 8 | 0;
|
|
356
|
-
// Inline function 'kotlin.math.ceil' call
|
|
357
|
-
var x_0 = (start + length | 0) / 8.0;
|
|
358
|
-
var tmp$ret$2 = Math.ceil(x_0);
|
|
359
|
-
var endByteIdx = numberToInt(tmp$ret$2);
|
|
360
|
-
var buf = _this__u8e3s4;
|
|
361
|
-
var originSize = endByteIdx - startByteIdx | 0;
|
|
362
|
-
var idx = originSize - 1 | 0;
|
|
363
|
-
while ((resSize - (originSize - idx | 0) | 0) >= 0) {
|
|
364
|
-
var temp = byteToUnsignedInt(buf.t(idx + startByteIdx | 0)) >> right;
|
|
365
|
-
if (idx > 0)
|
|
366
|
-
temp = temp | byteToUnsignedInt(buf.t((idx + startByteIdx | 0) - 1 | 0)) << (8 - right | 0);
|
|
367
|
-
result[resSize - (originSize - idx | 0) | 0] = toByte(temp);
|
|
368
|
-
idx = idx - 1 | 0;
|
|
369
|
-
}
|
|
370
|
-
result[0] = toByte((byteToUnsignedInt(result[0]) << left & 255) >> left);
|
|
371
|
-
return result;
|
|
372
|
-
}
|
|
373
474
|
function binStringToByte(_this__u8e3s4) {
|
|
374
475
|
var value = keepByRegexStr(_this__u8e3s4, '[01]+');
|
|
375
476
|
var str = padStart(value, 8, _Char___init__impl__6a9atx(48));
|
|
@@ -429,8 +530,8 @@
|
|
|
429
530
|
var length = 0;
|
|
430
531
|
// Inline function 'kotlin.collections.iterator' call
|
|
431
532
|
var tmp0_iterator = iterator(_this__u8e3s4);
|
|
432
|
-
while (tmp0_iterator.
|
|
433
|
-
var i = tmp0_iterator.
|
|
533
|
+
while (tmp0_iterator.t()) {
|
|
534
|
+
var i = tmp0_iterator.u().y5_1;
|
|
434
535
|
// Inline function 'kotlin.code' call
|
|
435
536
|
var ascii = Char__toInt_impl_vasixd(i);
|
|
436
537
|
if (0 <= ascii ? ascii <= 255 : false) {
|
|
@@ -450,7 +551,7 @@
|
|
|
450
551
|
var this_0 = charSequenceGet(_this__u8e3s4, 0);
|
|
451
552
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
452
553
|
// Inline function 'kotlin.js.asDynamic' call
|
|
453
|
-
tmp =
|
|
554
|
+
tmp = toString_3(this_0).toUpperCase();
|
|
454
555
|
}
|
|
455
556
|
return tmp;
|
|
456
557
|
}
|
|
@@ -466,11 +567,11 @@
|
|
|
466
567
|
if (33 <= tmp1_subject ? tmp1_subject <= 126 : false) {
|
|
467
568
|
// Inline function 'kotlin.code' call
|
|
468
569
|
var tmp$ret$1 = Char__toInt_impl_vasixd(c);
|
|
469
|
-
sb.
|
|
570
|
+
sb.h3(numberToChar(tmp$ret$1 + 65248 | 0));
|
|
470
571
|
} else if (tmp1_subject === 32) {
|
|
471
|
-
sb.
|
|
572
|
+
sb.g3('\u3000');
|
|
472
573
|
} else {
|
|
473
|
-
sb.
|
|
574
|
+
sb.h3(c);
|
|
474
575
|
}
|
|
475
576
|
}
|
|
476
577
|
return sb.toString();
|
|
@@ -530,7 +631,7 @@
|
|
|
530
631
|
var i = inductionVariable;
|
|
531
632
|
inductionVariable = inductionVariable + 1 | 0;
|
|
532
633
|
var tmp;
|
|
533
|
-
switch (type.
|
|
634
|
+
switch (type.m6_1) {
|
|
534
635
|
case 0:
|
|
535
636
|
tmp = toByte(num + _this__u8e3s4[i]);
|
|
536
637
|
break;
|
|
@@ -610,7 +711,7 @@
|
|
|
610
711
|
return getHexColorStringFromRgbValueArray(tmp$ret$5);
|
|
611
712
|
}
|
|
612
713
|
function getRgbValueArrayFromHexColorString(str) {
|
|
613
|
-
if (!get_colorRegex().
|
|
714
|
+
if (!get_colorRegex().p4(str)) {
|
|
614
715
|
// Inline function 'kotlin.arrayOf' call
|
|
615
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
616
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -627,7 +728,7 @@
|
|
|
627
728
|
do {
|
|
628
729
|
var i = inductionVariable;
|
|
629
730
|
inductionVariable = inductionVariable + 1 | 0;
|
|
630
|
-
t = t + (
|
|
731
|
+
t = t + (toString_3(charSequenceGet(hexColor, i)) + toString_3(charSequenceGet(hexColor, i)));
|
|
631
732
|
}
|
|
632
733
|
while (inductionVariable < last);
|
|
633
734
|
hexColor = t;
|
|
@@ -646,7 +747,7 @@
|
|
|
646
747
|
// Inline function 'kotlin.UInt.toInt' call
|
|
647
748
|
var this_0 = toUInt(s, 16);
|
|
648
749
|
var tmp$ret$6 = _UInt___get_data__impl__f0vqqw(this_0);
|
|
649
|
-
arr.
|
|
750
|
+
arr.j(tmp$ret$6);
|
|
650
751
|
}
|
|
651
752
|
while (!(i_0 === last_0));
|
|
652
753
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -659,7 +760,7 @@
|
|
|
659
760
|
return '#' + getHex(rgb[0]) + getHex(rgb[1]) + getHex(rgb[2]);
|
|
660
761
|
}
|
|
661
762
|
function getHexColorStringFromRgbValueArray$lambda(num) {
|
|
662
|
-
return padStart(
|
|
763
|
+
return padStart(toString_1(num, 16), 2, _Char___init__impl__6a9atx(48));
|
|
663
764
|
}
|
|
664
765
|
function get_numberRegex() {
|
|
665
766
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
@@ -730,60 +831,60 @@
|
|
|
730
831
|
}
|
|
731
832
|
function isIdCard(_this__u8e3s4) {
|
|
732
833
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
733
|
-
return get_idCardRegex().
|
|
834
|
+
return get_idCardRegex().p4(_this__u8e3s4);
|
|
734
835
|
}
|
|
735
836
|
function isMobileNumber(_this__u8e3s4) {
|
|
736
837
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
737
|
-
return get_mobileNumberRegex().
|
|
838
|
+
return get_mobileNumberRegex().p4(_this__u8e3s4);
|
|
738
839
|
}
|
|
739
840
|
function isEmail(_this__u8e3s4) {
|
|
740
841
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
741
|
-
return get_emailRegex().
|
|
842
|
+
return get_emailRegex().p4(_this__u8e3s4);
|
|
742
843
|
}
|
|
743
844
|
function isOnlyChEnNum(_this__u8e3s4) {
|
|
744
845
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
745
|
-
return get_chEnNumRegex().
|
|
846
|
+
return get_chEnNumRegex().p4(_this__u8e3s4);
|
|
746
847
|
}
|
|
747
848
|
function isOnlyEnNum(_this__u8e3s4) {
|
|
748
849
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
749
|
-
return get_numEnRegex().
|
|
850
|
+
return get_numEnRegex().p4(_this__u8e3s4);
|
|
750
851
|
}
|
|
751
852
|
function isOnlyChinese(_this__u8e3s4) {
|
|
752
853
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
753
|
-
return get_chineseRegex().
|
|
854
|
+
return get_chineseRegex().p4(_this__u8e3s4);
|
|
754
855
|
}
|
|
755
856
|
function isOnlyLetter(_this__u8e3s4) {
|
|
756
857
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
757
|
-
return get_letterRegex().
|
|
858
|
+
return get_letterRegex().p4(_this__u8e3s4);
|
|
758
859
|
}
|
|
759
860
|
function isOnlyNumber(_this__u8e3s4) {
|
|
760
861
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
761
|
-
return get_numberRegex().
|
|
862
|
+
return get_numberRegex().p4(_this__u8e3s4);
|
|
762
863
|
}
|
|
763
864
|
function isOnlyCode(_this__u8e3s4) {
|
|
764
865
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
765
|
-
return get_codeRegex().
|
|
866
|
+
return get_codeRegex().p4(_this__u8e3s4);
|
|
766
867
|
}
|
|
767
868
|
function isOnlyChSymbol(_this__u8e3s4) {
|
|
768
869
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
769
|
-
return get_chSymbolRegex().
|
|
870
|
+
return get_chSymbolRegex().p4(_this__u8e3s4);
|
|
770
871
|
}
|
|
771
872
|
function isColor(_this__u8e3s4) {
|
|
772
873
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
773
|
-
return get_colorRegex().
|
|
874
|
+
return get_colorRegex().p4(_this__u8e3s4);
|
|
774
875
|
}
|
|
775
876
|
function keep_0(_this__u8e3s4, reg) {
|
|
776
877
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
777
|
-
var tmp = reg.
|
|
878
|
+
var tmp = reg.s4(_this__u8e3s4);
|
|
778
879
|
return joinToString(map(tmp, keep$lambda), '');
|
|
779
880
|
}
|
|
780
881
|
function filter(_this__u8e3s4, reg) {
|
|
781
882
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
782
|
-
return reg.
|
|
883
|
+
return reg.t4(_this__u8e3s4, '');
|
|
783
884
|
}
|
|
784
885
|
function keep$lambda(it) {
|
|
785
886
|
_init_properties_RegexUtils_kt__b9v9ti();
|
|
786
|
-
return it.
|
|
887
|
+
return it.l3();
|
|
787
888
|
}
|
|
788
889
|
var properties_initialized_RegexUtils_kt_8e1sdo;
|
|
789
890
|
function _init_properties_RegexUtils_kt__b9v9ti() {
|
|
@@ -829,31 +930,31 @@
|
|
|
829
930
|
this.lat = lat;
|
|
830
931
|
this.lng = lng;
|
|
831
932
|
}
|
|
832
|
-
protoOf(Coordinate).
|
|
933
|
+
protoOf(Coordinate).ba = function (_set____db54di) {
|
|
833
934
|
this.lat = _set____db54di;
|
|
834
935
|
};
|
|
835
|
-
protoOf(Coordinate).
|
|
936
|
+
protoOf(Coordinate).ca = function () {
|
|
836
937
|
return this.lat;
|
|
837
938
|
};
|
|
838
|
-
protoOf(Coordinate).
|
|
939
|
+
protoOf(Coordinate).da = function (_set____db54di) {
|
|
839
940
|
this.lng = _set____db54di;
|
|
840
941
|
};
|
|
841
|
-
protoOf(Coordinate).
|
|
942
|
+
protoOf(Coordinate).ea = function () {
|
|
842
943
|
return this.lng;
|
|
843
944
|
};
|
|
844
|
-
protoOf(Coordinate).
|
|
945
|
+
protoOf(Coordinate).fa = function () {
|
|
845
946
|
return this.lat;
|
|
846
947
|
};
|
|
847
|
-
protoOf(Coordinate).
|
|
948
|
+
protoOf(Coordinate).ga = function () {
|
|
848
949
|
return this.lng;
|
|
849
950
|
};
|
|
850
|
-
protoOf(Coordinate).
|
|
951
|
+
protoOf(Coordinate).ha = function (lat, lng) {
|
|
851
952
|
return new Coordinate(lat, lng);
|
|
852
953
|
};
|
|
853
954
|
protoOf(Coordinate).copy = function (lat, lng, $super) {
|
|
854
955
|
lat = lat === VOID ? this.lat : lat;
|
|
855
956
|
lng = lng === VOID ? this.lng : lng;
|
|
856
|
-
return this.
|
|
957
|
+
return this.ha(lat, lng);
|
|
857
958
|
};
|
|
858
959
|
protoOf(Coordinate).toString = function () {
|
|
859
960
|
return 'Coordinate(lat=' + this.lat + ', lng=' + this.lng + ')';
|
|
@@ -937,11 +1038,11 @@
|
|
|
937
1038
|
return ((lng < 72.004 ? true : lng > 137.8347) ? true : lat < 0.8293) ? true : lat > 55.8271;
|
|
938
1039
|
}
|
|
939
1040
|
function CoordinateConvert() {
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
1041
|
+
this.ia_1 = 52.35987755982988;
|
|
1042
|
+
this.ja_1 = 6378245;
|
|
1043
|
+
this.ka_1 = 0.006693421622965943;
|
|
943
1044
|
}
|
|
944
|
-
protoOf(CoordinateConvert).
|
|
1045
|
+
protoOf(CoordinateConvert).la = function (lng, lat) {
|
|
945
1046
|
var x = lng - 0.0065;
|
|
946
1047
|
var y = lat - 0.006;
|
|
947
1048
|
// Inline function 'kotlin.math.sqrt' call
|
|
@@ -962,7 +1063,7 @@
|
|
|
962
1063
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
963
1064
|
return new Float64Array([gcjLng, gcjLat]);
|
|
964
1065
|
};
|
|
965
|
-
protoOf(CoordinateConvert).
|
|
1066
|
+
protoOf(CoordinateConvert).ma = function (lng, lat) {
|
|
966
1067
|
// Inline function 'kotlin.math.sqrt' call
|
|
967
1068
|
var x = lng * lng + lat * lat;
|
|
968
1069
|
var tmp = Math.sqrt(x);
|
|
@@ -981,7 +1082,7 @@
|
|
|
981
1082
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
982
1083
|
return new Float64Array([bdLng, bdLat]);
|
|
983
1084
|
};
|
|
984
|
-
protoOf(CoordinateConvert).
|
|
1085
|
+
protoOf(CoordinateConvert).na = function (lng, lat) {
|
|
985
1086
|
var tmp;
|
|
986
1087
|
if (outOfChina(this, lng, lat)) {
|
|
987
1088
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
@@ -1008,7 +1109,7 @@
|
|
|
1008
1109
|
}
|
|
1009
1110
|
return tmp;
|
|
1010
1111
|
};
|
|
1011
|
-
protoOf(CoordinateConvert).
|
|
1112
|
+
protoOf(CoordinateConvert).oa = function (lng, lat) {
|
|
1012
1113
|
var tmp;
|
|
1013
1114
|
if (outOfChina(this, lng, lat)) {
|
|
1014
1115
|
// Inline function 'kotlin.doubleArrayOf' call
|
|
@@ -1035,13 +1136,13 @@
|
|
|
1035
1136
|
}
|
|
1036
1137
|
return tmp;
|
|
1037
1138
|
};
|
|
1038
|
-
protoOf(CoordinateConvert).
|
|
1039
|
-
var lngLat = this.
|
|
1040
|
-
return this.
|
|
1139
|
+
protoOf(CoordinateConvert).pa = function (lng, lat) {
|
|
1140
|
+
var lngLat = this.la(lng, lat);
|
|
1141
|
+
return this.na(lngLat[0], lngLat[1]);
|
|
1041
1142
|
};
|
|
1042
|
-
protoOf(CoordinateConvert).
|
|
1043
|
-
var lngLat = this.
|
|
1044
|
-
return this.
|
|
1143
|
+
protoOf(CoordinateConvert).qa = function (lng, lat) {
|
|
1144
|
+
var lngLat = this.oa(lng, lat);
|
|
1145
|
+
return this.ma(lngLat[0], lngLat[1]);
|
|
1045
1146
|
};
|
|
1046
1147
|
var CoordinateConvert_instance;
|
|
1047
1148
|
function CoordinateConvert_getInstance() {
|
|
@@ -1093,10 +1194,10 @@
|
|
|
1093
1194
|
}
|
|
1094
1195
|
function convert(_this__u8e3s4, from, to) {
|
|
1095
1196
|
var tmp;
|
|
1096
|
-
switch (from.
|
|
1197
|
+
switch (from.m6_1) {
|
|
1097
1198
|
case 0:
|
|
1098
1199
|
var tmp_0;
|
|
1099
|
-
switch (to.
|
|
1200
|
+
switch (to.m6_1) {
|
|
1100
1201
|
case 1:
|
|
1101
1202
|
// Inline function 'kotlin.let' call
|
|
1102
1203
|
|
|
@@ -1104,7 +1205,7 @@
|
|
|
1104
1205
|
|
|
1105
1206
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1106
1207
|
|
|
1107
|
-
var it = CoordinateConvert_instance.
|
|
1208
|
+
var it = CoordinateConvert_instance.oa(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1108
1209
|
tmp_0 = new Coordinate(it[1], it[0]);
|
|
1109
1210
|
break;
|
|
1110
1211
|
case 2:
|
|
@@ -1114,7 +1215,7 @@
|
|
|
1114
1215
|
|
|
1115
1216
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1116
1217
|
|
|
1117
|
-
var it_0 = CoordinateConvert_instance.
|
|
1218
|
+
var it_0 = CoordinateConvert_instance.qa(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1118
1219
|
tmp_0 = new Coordinate(it_0[1], it_0[0]);
|
|
1119
1220
|
break;
|
|
1120
1221
|
default:
|
|
@@ -1126,7 +1227,7 @@
|
|
|
1126
1227
|
break;
|
|
1127
1228
|
case 1:
|
|
1128
1229
|
var tmp_1;
|
|
1129
|
-
switch (to.
|
|
1230
|
+
switch (to.m6_1) {
|
|
1130
1231
|
case 0:
|
|
1131
1232
|
// Inline function 'kotlin.let' call
|
|
1132
1233
|
|
|
@@ -1134,7 +1235,7 @@
|
|
|
1134
1235
|
|
|
1135
1236
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1136
1237
|
|
|
1137
|
-
var it_1 = CoordinateConvert_instance.
|
|
1238
|
+
var it_1 = CoordinateConvert_instance.na(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1138
1239
|
tmp_1 = new Coordinate(it_1[1], it_1[0]);
|
|
1139
1240
|
break;
|
|
1140
1241
|
case 2:
|
|
@@ -1144,7 +1245,7 @@
|
|
|
1144
1245
|
|
|
1145
1246
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1146
1247
|
|
|
1147
|
-
var it_2 = CoordinateConvert_instance.
|
|
1248
|
+
var it_2 = CoordinateConvert_instance.ma(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1148
1249
|
tmp_1 = new Coordinate(it_2[1], it_2[0]);
|
|
1149
1250
|
break;
|
|
1150
1251
|
default:
|
|
@@ -1156,7 +1257,7 @@
|
|
|
1156
1257
|
break;
|
|
1157
1258
|
case 2:
|
|
1158
1259
|
var tmp_2;
|
|
1159
|
-
switch (to.
|
|
1260
|
+
switch (to.m6_1) {
|
|
1160
1261
|
case 0:
|
|
1161
1262
|
// Inline function 'kotlin.let' call
|
|
1162
1263
|
|
|
@@ -1164,7 +1265,7 @@
|
|
|
1164
1265
|
|
|
1165
1266
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1166
1267
|
|
|
1167
|
-
var it_3 = CoordinateConvert_instance.
|
|
1268
|
+
var it_3 = CoordinateConvert_instance.pa(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1168
1269
|
tmp_2 = new Coordinate(it_3[1], it_3[0]);
|
|
1169
1270
|
break;
|
|
1170
1271
|
case 1:
|
|
@@ -1174,7 +1275,7 @@
|
|
|
1174
1275
|
|
|
1175
1276
|
// Inline function 'com.d10ng.common.coordinate.convert.<anonymous>' call
|
|
1176
1277
|
|
|
1177
|
-
var it_4 = CoordinateConvert_instance.
|
|
1278
|
+
var it_4 = CoordinateConvert_instance.la(_this__u8e3s4.lng, _this__u8e3s4.lat);
|
|
1178
1279
|
tmp_2 = new Coordinate(it_4[1], it_4[0]);
|
|
1179
1280
|
break;
|
|
1180
1281
|
default:
|
|
@@ -1289,7 +1390,7 @@
|
|
|
1289
1390
|
var dValue = numberToInt(value);
|
|
1290
1391
|
var m = (value - dValue) * 60.0;
|
|
1291
1392
|
var mValue = numberToInt(m);
|
|
1292
|
-
var s = (m - mValue) *
|
|
1393
|
+
var s = roundToInt((m - mValue) * 6000.0) / 100.0;
|
|
1293
1394
|
return new DMS(dValue, mValue, s);
|
|
1294
1395
|
}
|
|
1295
1396
|
function toLatLng(_this__u8e3s4) {
|
|
@@ -1301,7 +1402,7 @@
|
|
|
1301
1402
|
var string = pattern;
|
|
1302
1403
|
// Inline function 'kotlin.text.toRegex' call
|
|
1303
1404
|
var tmp$ret$0 = Regex_init_$Create$('CH');
|
|
1304
|
-
var reg = toList(tmp$ret$0.
|
|
1405
|
+
var reg = toList(tmp$ret$0.s4(string));
|
|
1305
1406
|
var tmp;
|
|
1306
1407
|
if (isLongitude) {
|
|
1307
1408
|
tmp = isEastLongitude(_this__u8e3s4) ? '\u4E1C\u7ECF' : '\u897F\u7ECF';
|
|
@@ -1309,18 +1410,18 @@
|
|
|
1309
1410
|
tmp = isNorthLatitude(_this__u8e3s4) ? '\u5317\u7EAC' : '\u5357\u7EAC';
|
|
1310
1411
|
}
|
|
1311
1412
|
var faxiang = tmp;
|
|
1312
|
-
var tmp0_iterator = reg.
|
|
1313
|
-
while (tmp0_iterator.
|
|
1314
|
-
var item = tmp0_iterator.
|
|
1413
|
+
var tmp0_iterator = reg.m();
|
|
1414
|
+
while (tmp0_iterator.t()) {
|
|
1415
|
+
var item = tmp0_iterator.u();
|
|
1315
1416
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1316
1417
|
var this_0 = string;
|
|
1317
|
-
var range = item.
|
|
1418
|
+
var range = item.v4();
|
|
1318
1419
|
var replacement = faxiang;
|
|
1319
1420
|
string = toString(replaceRange(isCharSequence(this_0) ? this_0 : THROW_CCE(), range, replacement));
|
|
1320
1421
|
}
|
|
1321
1422
|
// Inline function 'kotlin.text.toRegex' call
|
|
1322
1423
|
var tmp$ret$2 = Regex_init_$Create$('F');
|
|
1323
|
-
reg = toList(tmp$ret$2.
|
|
1424
|
+
reg = toList(tmp$ret$2.s4(string));
|
|
1324
1425
|
var tmp_0;
|
|
1325
1426
|
if (isLongitude) {
|
|
1326
1427
|
tmp_0 = isEastLongitude(_this__u8e3s4) ? 'E' : 'W';
|
|
@@ -1328,101 +1429,101 @@
|
|
|
1328
1429
|
tmp_0 = isNorthLatitude(_this__u8e3s4) ? 'N' : 'S';
|
|
1329
1430
|
}
|
|
1330
1431
|
faxiang = tmp_0;
|
|
1331
|
-
var tmp1_iterator = reg.
|
|
1332
|
-
while (tmp1_iterator.
|
|
1333
|
-
var item_0 = tmp1_iterator.
|
|
1432
|
+
var tmp1_iterator = reg.m();
|
|
1433
|
+
while (tmp1_iterator.t()) {
|
|
1434
|
+
var item_0 = tmp1_iterator.u();
|
|
1334
1435
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1335
1436
|
var this_1 = string;
|
|
1336
|
-
var range_0 = item_0.
|
|
1437
|
+
var range_0 = item_0.v4();
|
|
1337
1438
|
var replacement_0 = faxiang;
|
|
1338
1439
|
string = toString(replaceRange(isCharSequence(this_1) ? this_1 : THROW_CCE(), range_0, replacement_0));
|
|
1339
1440
|
}
|
|
1340
1441
|
// Inline function 'kotlin.text.toRegex' call
|
|
1341
1442
|
var tmp$ret$4 = Regex_init_$Create$('d+');
|
|
1342
|
-
reg = toList(tmp$ret$4.
|
|
1443
|
+
reg = toList(tmp$ret$4.s4(string));
|
|
1343
1444
|
var dValue = numberToInt(value);
|
|
1344
|
-
var tmp2_iterator = reg.
|
|
1345
|
-
while (tmp2_iterator.
|
|
1346
|
-
var item_1 = tmp2_iterator.
|
|
1445
|
+
var tmp2_iterator = reg.m();
|
|
1446
|
+
while (tmp2_iterator.t()) {
|
|
1447
|
+
var item_1 = tmp2_iterator.u();
|
|
1347
1448
|
var tmp_1;
|
|
1348
|
-
if (item_1.
|
|
1449
|
+
if (item_1.l3().length === 1) {
|
|
1349
1450
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1350
1451
|
var this_2 = string;
|
|
1351
|
-
var range_1 = item_1.
|
|
1452
|
+
var range_1 = item_1.v4();
|
|
1352
1453
|
var replacement_1 = dValue.toString();
|
|
1353
1454
|
tmp_1 = toString(replaceRange(isCharSequence(this_2) ? this_2 : THROW_CCE(), range_1, replacement_1));
|
|
1354
1455
|
} else {
|
|
1355
1456
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1356
1457
|
var this_3 = string;
|
|
1357
|
-
var range_2 = item_1.
|
|
1358
|
-
var replacement_2 = padStart(dValue.toString(), item_1.
|
|
1458
|
+
var range_2 = item_1.v4();
|
|
1459
|
+
var replacement_2 = padStart(dValue.toString(), item_1.l3().length, _Char___init__impl__6a9atx(48));
|
|
1359
1460
|
tmp_1 = toString(replaceRange(isCharSequence(this_3) ? this_3 : THROW_CCE(), range_2, replacement_2));
|
|
1360
1461
|
}
|
|
1361
1462
|
string = tmp_1;
|
|
1362
1463
|
}
|
|
1363
1464
|
// Inline function 'kotlin.text.toRegex' call
|
|
1364
1465
|
var tmp$ret$7 = Regex_init_$Create$('m+');
|
|
1365
|
-
reg = toList(tmp$ret$7.
|
|
1466
|
+
reg = toList(tmp$ret$7.s4(string));
|
|
1366
1467
|
var m = (value - dValue) * 60.0;
|
|
1367
1468
|
var mValue = numberToInt(m);
|
|
1368
|
-
var tmp3_iterator = reg.
|
|
1369
|
-
while (tmp3_iterator.
|
|
1370
|
-
var item_2 = tmp3_iterator.
|
|
1469
|
+
var tmp3_iterator = reg.m();
|
|
1470
|
+
while (tmp3_iterator.t()) {
|
|
1471
|
+
var item_2 = tmp3_iterator.u();
|
|
1371
1472
|
var tmp_2;
|
|
1372
|
-
if (item_2.
|
|
1473
|
+
if (item_2.l3().length === 1) {
|
|
1373
1474
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1374
1475
|
var this_4 = string;
|
|
1375
|
-
var range_3 = item_2.
|
|
1476
|
+
var range_3 = item_2.v4();
|
|
1376
1477
|
var replacement_3 = mValue.toString();
|
|
1377
1478
|
tmp_2 = toString(replaceRange(isCharSequence(this_4) ? this_4 : THROW_CCE(), range_3, replacement_3));
|
|
1378
1479
|
} else {
|
|
1379
1480
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1380
1481
|
var this_5 = string;
|
|
1381
|
-
var range_4 = item_2.
|
|
1382
|
-
var replacement_4 = padStart(mValue.toString(), item_2.
|
|
1482
|
+
var range_4 = item_2.v4();
|
|
1483
|
+
var replacement_4 = padStart(mValue.toString(), item_2.l3().length, _Char___init__impl__6a9atx(48));
|
|
1383
1484
|
tmp_2 = toString(replaceRange(isCharSequence(this_5) ? this_5 : THROW_CCE(), range_4, replacement_4));
|
|
1384
1485
|
}
|
|
1385
1486
|
string = tmp_2;
|
|
1386
1487
|
}
|
|
1387
1488
|
// Inline function 'kotlin.text.toRegex' call
|
|
1388
1489
|
var tmp$ret$10 = Regex_init_$Create$('S+');
|
|
1389
|
-
reg = toList(tmp$ret$10.
|
|
1490
|
+
reg = toList(tmp$ret$10.s4(string));
|
|
1390
1491
|
var S = (m - mValue) * 60.0;
|
|
1391
1492
|
var SValue = numberToInt(S);
|
|
1392
|
-
var tmp4_iterator = reg.
|
|
1393
|
-
while (tmp4_iterator.
|
|
1394
|
-
var item_3 = tmp4_iterator.
|
|
1493
|
+
var tmp4_iterator = reg.m();
|
|
1494
|
+
while (tmp4_iterator.t()) {
|
|
1495
|
+
var item_3 = tmp4_iterator.u();
|
|
1395
1496
|
var tmp_3;
|
|
1396
|
-
if (item_3.
|
|
1497
|
+
if (item_3.l3().length === 1) {
|
|
1397
1498
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1398
1499
|
var this_6 = string;
|
|
1399
|
-
var range_5 = item_3.
|
|
1500
|
+
var range_5 = item_3.v4();
|
|
1400
1501
|
var replacement_5 = SValue.toString();
|
|
1401
1502
|
tmp_3 = toString(replaceRange(isCharSequence(this_6) ? this_6 : THROW_CCE(), range_5, replacement_5));
|
|
1402
1503
|
} else {
|
|
1403
1504
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1404
1505
|
var this_7 = string;
|
|
1405
|
-
var range_6 = item_3.
|
|
1406
|
-
var replacement_6 = padStart(SValue.toString(), item_3.
|
|
1506
|
+
var range_6 = item_3.v4();
|
|
1507
|
+
var replacement_6 = padStart(SValue.toString(), item_3.l3().length, _Char___init__impl__6a9atx(48));
|
|
1407
1508
|
tmp_3 = toString(replaceRange(isCharSequence(this_7) ? this_7 : THROW_CCE(), range_6, replacement_6));
|
|
1408
1509
|
}
|
|
1409
1510
|
string = tmp_3;
|
|
1410
1511
|
}
|
|
1411
1512
|
// Inline function 'kotlin.text.toRegex' call
|
|
1412
1513
|
var tmp$ret$13 = Regex_init_$Create$('s+');
|
|
1413
|
-
reg = toList(tmp$ret$13.
|
|
1414
|
-
var tmp5_iterator = reg.
|
|
1415
|
-
while (tmp5_iterator.
|
|
1416
|
-
var item_4 = tmp5_iterator.
|
|
1514
|
+
reg = toList(tmp$ret$13.s4(string));
|
|
1515
|
+
var tmp5_iterator = reg.m();
|
|
1516
|
+
while (tmp5_iterator.t()) {
|
|
1517
|
+
var item_4 = tmp5_iterator.u();
|
|
1417
1518
|
var tmp_4 = S - SValue;
|
|
1418
1519
|
// Inline function 'kotlin.math.pow' call
|
|
1419
|
-
var n = item_4.
|
|
1520
|
+
var n = item_4.l3().length;
|
|
1420
1521
|
var tmp$ret$14 = Math.pow(10.0, n);
|
|
1421
1522
|
var sValue = roundToInt(tmp_4 * tmp$ret$14);
|
|
1422
1523
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1423
1524
|
var this_8 = string;
|
|
1424
|
-
var range_7 = item_4.
|
|
1425
|
-
var replacement_7 = padStart(sValue.toString(), item_4.
|
|
1525
|
+
var range_7 = item_4.v4();
|
|
1526
|
+
var replacement_7 = padStart(sValue.toString(), item_4.l3().length, _Char___init__impl__6a9atx(48));
|
|
1426
1527
|
string = toString(replaceRange(isCharSequence(this_8) ? this_8 : THROW_CCE(), range_7, replacement_7));
|
|
1427
1528
|
}
|
|
1428
1529
|
return string;
|
|
@@ -1443,60 +1544,60 @@
|
|
|
1443
1544
|
// Inline function 'kotlin.text.toRegex' call
|
|
1444
1545
|
var this_0 = '[^dmSs]+';
|
|
1445
1546
|
var tmp$ret$0 = Regex_init_$Create$(this_0);
|
|
1446
|
-
var list = toList(tmp$ret$0.
|
|
1447
|
-
var tmp0_iterator = list.
|
|
1448
|
-
$l$loop_2: while (tmp0_iterator.
|
|
1449
|
-
var item = tmp0_iterator.
|
|
1450
|
-
if (item.
|
|
1547
|
+
var list = toList(tmp$ret$0.s4(tempPattern));
|
|
1548
|
+
var tmp0_iterator = list.m();
|
|
1549
|
+
$l$loop_2: while (tmp0_iterator.t()) {
|
|
1550
|
+
var item = tmp0_iterator.u();
|
|
1551
|
+
if (item.v4().u5_1 < index)
|
|
1451
1552
|
continue $l$loop_2;
|
|
1452
|
-
if (contains(item.
|
|
1453
|
-
index = item.
|
|
1553
|
+
if (contains(item.l3(), 'CH') ? true : contains(item.l3(), 'F')) {
|
|
1554
|
+
index = item.v4().v5_1;
|
|
1454
1555
|
continue $l$loop_2;
|
|
1455
1556
|
}
|
|
1456
|
-
var pos = indexOf_0(string, item.
|
|
1457
|
-
if (pos < item.
|
|
1458
|
-
println('ERROR, pos=' + pos + ', range.first=' + item.
|
|
1557
|
+
var pos = indexOf_0(string, item.l3());
|
|
1558
|
+
if (pos < item.v4().u5_1) {
|
|
1559
|
+
println('ERROR, pos=' + pos + ', range.first=' + item.v4().u5_1);
|
|
1459
1560
|
return 0.0;
|
|
1460
1561
|
}
|
|
1461
|
-
if (pos === item.
|
|
1462
|
-
index = item.
|
|
1562
|
+
if (pos === item.v4().u5_1) {
|
|
1563
|
+
index = item.v4().v5_1;
|
|
1463
1564
|
continue $l$loop_2;
|
|
1464
1565
|
} else {
|
|
1465
1566
|
// Inline function 'kotlin.text.substring' call
|
|
1466
1567
|
var this_1 = tempPattern;
|
|
1467
|
-
var startIndex = item.
|
|
1468
|
-
var endIndex = item.
|
|
1568
|
+
var startIndex = item.v4().u5_1 - 1 | 0;
|
|
1569
|
+
var endIndex = item.v4().u5_1;
|
|
1469
1570
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1470
1571
|
var lastStr = this_1.substring(startIndex, endIndex);
|
|
1471
1572
|
// Inline function 'kotlin.text.replaceRange' call
|
|
1472
1573
|
var this_2 = tempPattern;
|
|
1473
|
-
var startIndex_0 = item.
|
|
1474
|
-
var endIndex_0 = item.
|
|
1475
|
-
var replacement = padStart(lastStr, (pos - item.
|
|
1574
|
+
var startIndex_0 = item.v4().u5_1 - 1 | 0;
|
|
1575
|
+
var endIndex_0 = item.v4().u5_1;
|
|
1576
|
+
var replacement = padStart(lastStr, (pos - item.v4().u5_1 | 0) + 1 | 0, toCharArray(lastStr)[0]);
|
|
1476
1577
|
tempPattern = toString(replaceRange_0(isCharSequence(this_2) ? this_2 : THROW_CCE(), startIndex_0, endIndex_0, replacement));
|
|
1477
|
-
index = pos + item.
|
|
1578
|
+
index = pos + item.l3().length | 0;
|
|
1478
1579
|
break $l$loop_2;
|
|
1479
1580
|
}
|
|
1480
1581
|
}
|
|
1481
1582
|
}
|
|
1482
1583
|
// Inline function 'kotlin.text.toRegex' call
|
|
1483
1584
|
var tmp$ret$4 = Regex_init_$Create$('CH');
|
|
1484
|
-
var reg = toList(tmp$ret$4.
|
|
1585
|
+
var reg = toList(tmp$ret$4.s4(tempPattern));
|
|
1485
1586
|
var tmp;
|
|
1486
1587
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1487
|
-
if (!reg.
|
|
1488
|
-
tmp = substring(string, reg.
|
|
1588
|
+
if (!reg.p()) {
|
|
1589
|
+
tmp = substring(string, reg.v(0).v4());
|
|
1489
1590
|
} else {
|
|
1490
1591
|
tmp = null;
|
|
1491
1592
|
}
|
|
1492
1593
|
var faxiang = tmp;
|
|
1493
1594
|
// Inline function 'kotlin.text.toRegex' call
|
|
1494
1595
|
var tmp$ret$6 = Regex_init_$Create$('F');
|
|
1495
|
-
reg = toList(tmp$ret$6.
|
|
1596
|
+
reg = toList(tmp$ret$6.s4(tempPattern));
|
|
1496
1597
|
var tmp_0;
|
|
1497
1598
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1498
|
-
if (!reg.
|
|
1499
|
-
tmp_0 = substring(string, reg.
|
|
1599
|
+
if (!reg.p()) {
|
|
1600
|
+
tmp_0 = substring(string, reg.v(0).v4());
|
|
1500
1601
|
} else {
|
|
1501
1602
|
tmp_0 = faxiang;
|
|
1502
1603
|
}
|
|
@@ -1515,30 +1616,30 @@
|
|
|
1515
1616
|
}
|
|
1516
1617
|
// Inline function 'kotlin.text.toRegex' call
|
|
1517
1618
|
var tmp$ret$8 = Regex_init_$Create$('[d]+');
|
|
1518
|
-
reg = toList(tmp$ret$8.
|
|
1619
|
+
reg = toList(tmp$ret$8.s4(tempPattern));
|
|
1519
1620
|
var dStr = '';
|
|
1520
|
-
var tmp2_iterator = reg.
|
|
1521
|
-
while (tmp2_iterator.
|
|
1522
|
-
var item_0 = tmp2_iterator.
|
|
1523
|
-
dStr = dStr + substring(string, item_0.
|
|
1621
|
+
var tmp2_iterator = reg.m();
|
|
1622
|
+
while (tmp2_iterator.t()) {
|
|
1623
|
+
var item_0 = tmp2_iterator.u();
|
|
1624
|
+
dStr = dStr + substring(string, item_0.v4());
|
|
1524
1625
|
}
|
|
1525
1626
|
// Inline function 'kotlin.text.toRegex' call
|
|
1526
1627
|
var tmp$ret$9 = Regex_init_$Create$('[m]+');
|
|
1527
|
-
reg = toList(tmp$ret$9.
|
|
1628
|
+
reg = toList(tmp$ret$9.s4(tempPattern));
|
|
1528
1629
|
var mStr = '';
|
|
1529
|
-
var tmp3_iterator = reg.
|
|
1530
|
-
while (tmp3_iterator.
|
|
1531
|
-
var item_1 = tmp3_iterator.
|
|
1532
|
-
mStr = mStr + substring(string, item_1.
|
|
1630
|
+
var tmp3_iterator = reg.m();
|
|
1631
|
+
while (tmp3_iterator.t()) {
|
|
1632
|
+
var item_1 = tmp3_iterator.u();
|
|
1633
|
+
mStr = mStr + substring(string, item_1.v4());
|
|
1533
1634
|
}
|
|
1534
1635
|
// Inline function 'kotlin.text.toRegex' call
|
|
1535
1636
|
var tmp$ret$10 = Regex_init_$Create$('[S]+');
|
|
1536
|
-
reg = toList(tmp$ret$10.
|
|
1637
|
+
reg = toList(tmp$ret$10.s4(tempPattern));
|
|
1537
1638
|
var SStr = '';
|
|
1538
|
-
var tmp4_iterator = reg.
|
|
1539
|
-
while (tmp4_iterator.
|
|
1540
|
-
var item_2 = tmp4_iterator.
|
|
1541
|
-
SStr = SStr + substring(string, item_2.
|
|
1639
|
+
var tmp4_iterator = reg.m();
|
|
1640
|
+
while (tmp4_iterator.t()) {
|
|
1641
|
+
var item_2 = tmp4_iterator.u();
|
|
1642
|
+
SStr = SStr + substring(string, item_2.v4());
|
|
1542
1643
|
}
|
|
1543
1644
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1544
1645
|
var this_3 = SStr;
|
|
@@ -1546,12 +1647,12 @@
|
|
|
1546
1647
|
SStr = '0';
|
|
1547
1648
|
// Inline function 'kotlin.text.toRegex' call
|
|
1548
1649
|
var tmp$ret$12 = Regex_init_$Create$('[s]+');
|
|
1549
|
-
reg = toList(tmp$ret$12.
|
|
1650
|
+
reg = toList(tmp$ret$12.s4(tempPattern));
|
|
1550
1651
|
var sStr = '';
|
|
1551
|
-
var tmp5_iterator = reg.
|
|
1552
|
-
while (tmp5_iterator.
|
|
1553
|
-
var item_3 = tmp5_iterator.
|
|
1554
|
-
sStr = sStr + substring(string, item_3.
|
|
1652
|
+
var tmp5_iterator = reg.m();
|
|
1653
|
+
while (tmp5_iterator.t()) {
|
|
1654
|
+
var item_3 = tmp5_iterator.u();
|
|
1655
|
+
sStr = sStr + substring(string, item_3.v4());
|
|
1555
1656
|
}
|
|
1556
1657
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1557
1658
|
var this_4 = sStr;
|
|
@@ -1613,44 +1714,45 @@
|
|
|
1613
1714
|
this.minutes = minutes;
|
|
1614
1715
|
this.seconds = seconds;
|
|
1615
1716
|
}
|
|
1616
|
-
protoOf(DMS).
|
|
1717
|
+
protoOf(DMS).ta = function (_set____db54di) {
|
|
1617
1718
|
this.degrees = _set____db54di;
|
|
1618
1719
|
};
|
|
1619
|
-
protoOf(DMS).
|
|
1720
|
+
protoOf(DMS).ua = function () {
|
|
1620
1721
|
return this.degrees;
|
|
1621
1722
|
};
|
|
1622
|
-
protoOf(DMS).
|
|
1723
|
+
protoOf(DMS).va = function (_set____db54di) {
|
|
1623
1724
|
this.minutes = _set____db54di;
|
|
1624
1725
|
};
|
|
1625
|
-
protoOf(DMS).
|
|
1726
|
+
protoOf(DMS).wa = function () {
|
|
1626
1727
|
return this.minutes;
|
|
1627
1728
|
};
|
|
1628
|
-
protoOf(DMS).
|
|
1729
|
+
protoOf(DMS).xa = function (_set____db54di) {
|
|
1629
1730
|
this.seconds = _set____db54di;
|
|
1630
1731
|
};
|
|
1631
|
-
protoOf(DMS).
|
|
1732
|
+
protoOf(DMS).ya = function () {
|
|
1632
1733
|
return this.seconds;
|
|
1633
1734
|
};
|
|
1634
1735
|
protoOf(DMS).toString = function () {
|
|
1635
|
-
|
|
1736
|
+
var secondsStr = !contains(this.seconds.toString(), '.') ? '' + this.seconds + '.0' : this.seconds.toString();
|
|
1737
|
+
return '' + this.degrees + '\xB0' + this.minutes + '\u2032' + secondsStr + '\u2033';
|
|
1636
1738
|
};
|
|
1637
|
-
protoOf(DMS).
|
|
1739
|
+
protoOf(DMS).fa = function () {
|
|
1638
1740
|
return this.degrees;
|
|
1639
1741
|
};
|
|
1640
|
-
protoOf(DMS).
|
|
1742
|
+
protoOf(DMS).ga = function () {
|
|
1641
1743
|
return this.minutes;
|
|
1642
1744
|
};
|
|
1643
|
-
protoOf(DMS).
|
|
1745
|
+
protoOf(DMS).za = function () {
|
|
1644
1746
|
return this.seconds;
|
|
1645
1747
|
};
|
|
1646
|
-
protoOf(DMS).
|
|
1748
|
+
protoOf(DMS).ab = function (degrees, minutes, seconds) {
|
|
1647
1749
|
return new DMS(degrees, minutes, seconds);
|
|
1648
1750
|
};
|
|
1649
1751
|
protoOf(DMS).copy = function (degrees, minutes, seconds, $super) {
|
|
1650
1752
|
degrees = degrees === VOID ? this.degrees : degrees;
|
|
1651
1753
|
minutes = minutes === VOID ? this.minutes : minutes;
|
|
1652
1754
|
seconds = seconds === VOID ? this.seconds : seconds;
|
|
1653
|
-
return this.
|
|
1755
|
+
return this.ab(degrees, minutes, seconds);
|
|
1654
1756
|
};
|
|
1655
1757
|
protoOf(DMS).hashCode = function () {
|
|
1656
1758
|
var result = this.degrees;
|
|
@@ -1680,41 +1782,41 @@
|
|
|
1680
1782
|
this.initialBearing = initialBearing;
|
|
1681
1783
|
this.finalBearing = finalBearing;
|
|
1682
1784
|
}
|
|
1683
|
-
protoOf(DistanceAndBearing).
|
|
1785
|
+
protoOf(DistanceAndBearing).bb = function (_set____db54di) {
|
|
1684
1786
|
this.distance = _set____db54di;
|
|
1685
1787
|
};
|
|
1686
|
-
protoOf(DistanceAndBearing).
|
|
1788
|
+
protoOf(DistanceAndBearing).cb = function () {
|
|
1687
1789
|
return this.distance;
|
|
1688
1790
|
};
|
|
1689
|
-
protoOf(DistanceAndBearing).
|
|
1791
|
+
protoOf(DistanceAndBearing).db = function (_set____db54di) {
|
|
1690
1792
|
this.initialBearing = _set____db54di;
|
|
1691
1793
|
};
|
|
1692
|
-
protoOf(DistanceAndBearing).
|
|
1794
|
+
protoOf(DistanceAndBearing).eb = function () {
|
|
1693
1795
|
return this.initialBearing;
|
|
1694
1796
|
};
|
|
1695
|
-
protoOf(DistanceAndBearing).
|
|
1797
|
+
protoOf(DistanceAndBearing).fb = function (_set____db54di) {
|
|
1696
1798
|
this.finalBearing = _set____db54di;
|
|
1697
1799
|
};
|
|
1698
|
-
protoOf(DistanceAndBearing).
|
|
1800
|
+
protoOf(DistanceAndBearing).gb = function () {
|
|
1699
1801
|
return this.finalBearing;
|
|
1700
1802
|
};
|
|
1701
|
-
protoOf(DistanceAndBearing).
|
|
1803
|
+
protoOf(DistanceAndBearing).fa = function () {
|
|
1702
1804
|
return this.distance;
|
|
1703
1805
|
};
|
|
1704
|
-
protoOf(DistanceAndBearing).
|
|
1806
|
+
protoOf(DistanceAndBearing).ga = function () {
|
|
1705
1807
|
return this.initialBearing;
|
|
1706
1808
|
};
|
|
1707
|
-
protoOf(DistanceAndBearing).
|
|
1809
|
+
protoOf(DistanceAndBearing).za = function () {
|
|
1708
1810
|
return this.finalBearing;
|
|
1709
1811
|
};
|
|
1710
|
-
protoOf(DistanceAndBearing).
|
|
1812
|
+
protoOf(DistanceAndBearing).hb = function (distance, initialBearing, finalBearing) {
|
|
1711
1813
|
return new DistanceAndBearing(distance, initialBearing, finalBearing);
|
|
1712
1814
|
};
|
|
1713
1815
|
protoOf(DistanceAndBearing).copy = function (distance, initialBearing, finalBearing, $super) {
|
|
1714
1816
|
distance = distance === VOID ? this.distance : distance;
|
|
1715
1817
|
initialBearing = initialBearing === VOID ? this.initialBearing : initialBearing;
|
|
1716
1818
|
finalBearing = finalBearing === VOID ? this.finalBearing : finalBearing;
|
|
1717
|
-
return this.
|
|
1819
|
+
return this.hb(distance, initialBearing, finalBearing);
|
|
1718
1820
|
};
|
|
1719
1821
|
protoOf(DistanceAndBearing).toString = function () {
|
|
1720
1822
|
return 'DistanceAndBearing(distance=' + this.distance + ', initialBearing=' + this.initialBearing + ', finalBearing=' + this.finalBearing + ')';
|
|
@@ -1973,8 +2075,8 @@
|
|
|
1973
2075
|
var x = newDistance / distance;
|
|
1974
2076
|
var tmp$ret$1 = Math.floor(x);
|
|
1975
2077
|
var totalCount = numberToInt(tmp$ret$1);
|
|
1976
|
-
if (totalCount > result.
|
|
1977
|
-
var count = totalCount - result.
|
|
2078
|
+
if (totalCount > result.l()) {
|
|
2079
|
+
var count = totalCount - result.l() | 0;
|
|
1978
2080
|
var hasHandleDistance = lastDistance;
|
|
1979
2081
|
var noHandleDistance = curDistance;
|
|
1980
2082
|
var p0 = lastPoint;
|
|
@@ -1986,7 +2088,7 @@
|
|
|
1986
2088
|
var lessDistance = distance - hasHandleDistance % distance;
|
|
1987
2089
|
var present = lessDistance / noHandleDistance;
|
|
1988
2090
|
p0 = getPointOn2Points(p0, item, present);
|
|
1989
|
-
result.
|
|
2091
|
+
result.j(p0);
|
|
1990
2092
|
hasHandleDistance = hasHandleDistance + lessDistance;
|
|
1991
2093
|
noHandleDistance = noHandleDistance - lessDistance;
|
|
1992
2094
|
}
|
|
@@ -1995,8 +2097,8 @@
|
|
|
1995
2097
|
totalDistance = newDistance;
|
|
1996
2098
|
}
|
|
1997
2099
|
}
|
|
1998
|
-
result.
|
|
1999
|
-
result.
|
|
2100
|
+
result.e1(0, points[0]);
|
|
2101
|
+
result.j(points[points.length - 1 | 0]);
|
|
2000
2102
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2001
2103
|
return copyToArray(result);
|
|
2002
2104
|
}
|
|
@@ -2017,7 +2119,7 @@
|
|
|
2017
2119
|
var i = inductionVariable;
|
|
2018
2120
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2019
2121
|
if (i < 2) {
|
|
2020
|
-
result.
|
|
2122
|
+
result.j(points[i]);
|
|
2021
2123
|
continue $l$loop;
|
|
2022
2124
|
}
|
|
2023
2125
|
var c = points[i];
|
|
@@ -2042,7 +2144,7 @@
|
|
|
2042
2144
|
} else {
|
|
2043
2145
|
a = b;
|
|
2044
2146
|
}
|
|
2045
|
-
result.
|
|
2147
|
+
result.j(c);
|
|
2046
2148
|
b = c;
|
|
2047
2149
|
}
|
|
2048
2150
|
while (inductionVariable <= last);
|
|
@@ -2141,28 +2243,28 @@
|
|
|
2141
2243
|
var i = inductionVariable;
|
|
2142
2244
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2143
2245
|
var distance = getDistanceOn2Points(point, line[i]) + getDistanceOn2Points(point, line[i + 1 | 0]);
|
|
2144
|
-
if (ls.
|
|
2145
|
-
ls.
|
|
2146
|
-
} else if (distance > ls.
|
|
2246
|
+
if (ls.p()) {
|
|
2247
|
+
ls.j(to(i, distance));
|
|
2248
|
+
} else if (distance > ls.v(0).o9_1 + offset)
|
|
2147
2249
|
continue $l$loop;
|
|
2148
|
-
else if (distance < ls.
|
|
2149
|
-
ls.
|
|
2150
|
-
ls.
|
|
2250
|
+
else if (distance < ls.v(0).o9_1 - offset) {
|
|
2251
|
+
ls.f1();
|
|
2252
|
+
ls.j(to(i, distance));
|
|
2151
2253
|
} else {
|
|
2152
2254
|
var inductionVariable_0 = 0;
|
|
2153
|
-
var last_0 = ls.
|
|
2255
|
+
var last_0 = ls.l();
|
|
2154
2256
|
if (inductionVariable_0 < last_0)
|
|
2155
2257
|
$l$loop_0: do {
|
|
2156
2258
|
var j = inductionVariable_0;
|
|
2157
2259
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2158
|
-
if (distance < ls.
|
|
2159
|
-
ls.
|
|
2260
|
+
if (distance < ls.v(j).o9_1) {
|
|
2261
|
+
ls.e1(j, to(i, distance));
|
|
2160
2262
|
break $l$loop_0;
|
|
2161
2263
|
}
|
|
2162
2264
|
}
|
|
2163
2265
|
while (inductionVariable_0 < last_0);
|
|
2164
|
-
if (ls.
|
|
2165
|
-
ls.
|
|
2266
|
+
if (ls.l() > 3) {
|
|
2267
|
+
ls.y(3);
|
|
2166
2268
|
}
|
|
2167
2269
|
}
|
|
2168
2270
|
}
|
|
@@ -2171,12 +2273,12 @@
|
|
|
2171
2273
|
// Inline function 'kotlin.collections.map' call
|
|
2172
2274
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2173
2275
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(ls, 10));
|
|
2174
|
-
var tmp0_iterator = ls.
|
|
2175
|
-
while (tmp0_iterator.
|
|
2176
|
-
var item = tmp0_iterator.
|
|
2276
|
+
var tmp0_iterator = ls.m();
|
|
2277
|
+
while (tmp0_iterator.t()) {
|
|
2278
|
+
var item = tmp0_iterator.u();
|
|
2177
2279
|
// Inline function 'com.d10ng.common.coordinate.getNearPartsOnLine.<anonymous>' call
|
|
2178
2280
|
var tmp$ret$1 = item.n9_1;
|
|
2179
|
-
destination.
|
|
2281
|
+
destination.j(tmp$ret$1);
|
|
2180
2282
|
}
|
|
2181
2283
|
return copyToArray(destination);
|
|
2182
2284
|
}
|
|
@@ -2245,17 +2347,17 @@
|
|
|
2245
2347
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2246
2348
|
// Inline function 'com.d10ng.common.coordinate.getProjectionLineOnLineWithLine.<anonymous>' call
|
|
2247
2349
|
var tmp$ret$4 = getAngleOn2Points(targetLine[item], targetLine[item + 1 | 0]);
|
|
2248
|
-
destination.
|
|
2350
|
+
destination.j(tmp$ret$4);
|
|
2249
2351
|
}
|
|
2250
2352
|
var nearAngles = destination;
|
|
2251
2353
|
var tmp$ret$7;
|
|
2252
2354
|
$l$block: {
|
|
2253
2355
|
// Inline function 'kotlin.collections.minBy' call
|
|
2254
|
-
var iterator = nearAngles.
|
|
2255
|
-
if (!iterator.
|
|
2356
|
+
var iterator = nearAngles.m();
|
|
2357
|
+
if (!iterator.t())
|
|
2256
2358
|
throw NoSuchElementException_init_$Create$();
|
|
2257
|
-
var minElem = iterator.
|
|
2258
|
-
if (!iterator.
|
|
2359
|
+
var minElem = iterator.u();
|
|
2360
|
+
if (!iterator.t()) {
|
|
2259
2361
|
tmp$ret$7 = minElem;
|
|
2260
2362
|
break $l$block;
|
|
2261
2363
|
}
|
|
@@ -2264,7 +2366,7 @@
|
|
|
2264
2366
|
var x = minElem - newAngle;
|
|
2265
2367
|
var minValue = Math.abs(x);
|
|
2266
2368
|
do {
|
|
2267
|
-
var e = iterator.
|
|
2369
|
+
var e = iterator.u();
|
|
2268
2370
|
// Inline function 'com.d10ng.common.coordinate.getProjectionLineOnLineWithLine.<anonymous>' call
|
|
2269
2371
|
// Inline function 'kotlin.math.abs' call
|
|
2270
2372
|
var x_0 = e - newAngle;
|
|
@@ -2274,11 +2376,11 @@
|
|
|
2274
2376
|
minValue = v;
|
|
2275
2377
|
}
|
|
2276
2378
|
}
|
|
2277
|
-
while (iterator.
|
|
2379
|
+
while (iterator.t());
|
|
2278
2380
|
tmp$ret$7 = minElem;
|
|
2279
2381
|
}
|
|
2280
2382
|
var nearAngle = tmp$ret$7;
|
|
2281
|
-
tmp = nearAngles.
|
|
2383
|
+
tmp = nearAngles.h1(nearAngle);
|
|
2282
2384
|
}
|
|
2283
2385
|
var nearIndex = tmp;
|
|
2284
2386
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -2316,15 +2418,15 @@
|
|
|
2316
2418
|
var builder = StringBuilder_init_$Create$();
|
|
2317
2419
|
// Inline function 'kotlin.collections.iterator' call
|
|
2318
2420
|
var tmp0_iterator = iterator(_this__u8e3s4);
|
|
2319
|
-
while (tmp0_iterator.
|
|
2320
|
-
var c = tmp0_iterator.
|
|
2421
|
+
while (tmp0_iterator.t()) {
|
|
2422
|
+
var c = tmp0_iterator.u().y5_1;
|
|
2321
2423
|
// Inline function 'kotlin.code' call
|
|
2322
2424
|
var tmp$ret$1 = Char__toInt_impl_vasixd(c);
|
|
2323
|
-
var item =
|
|
2425
|
+
var item = toString_1(tmp$ret$1, 16);
|
|
2324
2426
|
if (isNeedU) {
|
|
2325
|
-
builder.
|
|
2427
|
+
builder.g3('\\u');
|
|
2326
2428
|
}
|
|
2327
|
-
builder.
|
|
2429
|
+
builder.g3(padStart(item, 4, _Char___init__impl__6a9atx(48)));
|
|
2328
2430
|
}
|
|
2329
2431
|
return builder.toString();
|
|
2330
2432
|
}
|
|
@@ -2336,7 +2438,7 @@
|
|
|
2336
2438
|
// Inline function 'kotlin.text.toRegex' call
|
|
2337
2439
|
var this_0 = '[A-Fa-f0-9]+';
|
|
2338
2440
|
var regex = Regex_init_$Create$(this_0);
|
|
2339
|
-
var isMatch = regex.
|
|
2441
|
+
var isMatch = regex.p4(value);
|
|
2340
2442
|
if (!isMatch)
|
|
2341
2443
|
return '';
|
|
2342
2444
|
var builder = StringBuilder_init_$Create$();
|
|
@@ -2361,7 +2463,7 @@
|
|
|
2361
2463
|
var tmp1_elvis_lhs = toIntOrNull(item, 16);
|
|
2362
2464
|
var data = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
2363
2465
|
if (!(data === 0)) {
|
|
2364
|
-
builder.
|
|
2466
|
+
builder.h3(numberToChar(data));
|
|
2365
2467
|
}
|
|
2366
2468
|
}
|
|
2367
2469
|
}
|
|
@@ -2375,18 +2477,18 @@
|
|
|
2375
2477
|
// Inline function 'kotlin.text.toRegex' call
|
|
2376
2478
|
var this_0 = '[\\u0020-\\u007e]+';
|
|
2377
2479
|
var regex = Regex_init_$Create$(this_0);
|
|
2378
|
-
var isMatch = regex.
|
|
2480
|
+
var isMatch = regex.p4(_this__u8e3s4);
|
|
2379
2481
|
if (!isMatch)
|
|
2380
2482
|
return '';
|
|
2381
2483
|
var builder = StringBuilder_init_$Create$();
|
|
2382
2484
|
// Inline function 'kotlin.collections.iterator' call
|
|
2383
2485
|
var tmp0_iterator = iterator(_this__u8e3s4);
|
|
2384
|
-
while (tmp0_iterator.
|
|
2385
|
-
var c = tmp0_iterator.
|
|
2486
|
+
while (tmp0_iterator.t()) {
|
|
2487
|
+
var c = tmp0_iterator.u().y5_1;
|
|
2386
2488
|
// Inline function 'kotlin.code' call
|
|
2387
2489
|
var tmp$ret$2 = Char__toInt_impl_vasixd(c);
|
|
2388
|
-
var item =
|
|
2389
|
-
builder.
|
|
2490
|
+
var item = toString_1(tmp$ret$2, 16);
|
|
2491
|
+
builder.g3(padStart(item, 2, _Char___init__impl__6a9atx(48)));
|
|
2390
2492
|
}
|
|
2391
2493
|
return builder.toString();
|
|
2392
2494
|
}
|
|
@@ -2398,7 +2500,7 @@
|
|
|
2398
2500
|
// Inline function 'kotlin.text.toRegex' call
|
|
2399
2501
|
var this_0 = '[A-Fa-f0-9]+';
|
|
2400
2502
|
var regex = Regex_init_$Create$(this_0);
|
|
2401
|
-
var isMatch = regex.
|
|
2503
|
+
var isMatch = regex.p4(value);
|
|
2402
2504
|
if (!isMatch)
|
|
2403
2505
|
return '';
|
|
2404
2506
|
var builder = StringBuilder_init_$Create$();
|
|
@@ -2419,7 +2521,7 @@
|
|
|
2419
2521
|
var endIndex = i + 2 | 0;
|
|
2420
2522
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2421
2523
|
var temp = this_1.substring(startIndex, endIndex);
|
|
2422
|
-
builder.
|
|
2524
|
+
builder.h3(numberToChar(toInt(temp, 16)));
|
|
2423
2525
|
}
|
|
2424
2526
|
while (!(i === last));
|
|
2425
2527
|
return builder.toString();
|
|
@@ -2449,10 +2551,10 @@
|
|
|
2449
2551
|
return numberToLong(_this__u8e3s4);
|
|
2450
2552
|
}
|
|
2451
2553
|
function encodeGBKDo(_this__u8e3s4) {
|
|
2452
|
-
return GBKHelper_getInstance().
|
|
2554
|
+
return GBKHelper_getInstance().jb(_this__u8e3s4);
|
|
2453
2555
|
}
|
|
2454
2556
|
function decodeGBKDo(_this__u8e3s4) {
|
|
2455
|
-
return GBKHelper_getInstance().
|
|
2557
|
+
return GBKHelper_getInstance().kb(_this__u8e3s4);
|
|
2456
2558
|
}
|
|
2457
2559
|
function getCharGBKByteArray($this, char) {
|
|
2458
2560
|
// Inline function 'kotlin.code' call
|
|
@@ -2464,7 +2566,7 @@
|
|
|
2464
2566
|
} else {
|
|
2465
2567
|
// Inline function 'org.khronos.webgl.get' call
|
|
2466
2568
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2467
|
-
var gbk = $this.
|
|
2569
|
+
var gbk = $this.ib_1[code];
|
|
2468
2570
|
// Inline function 'kotlin.byteArrayOf' call
|
|
2469
2571
|
tmp = new Int8Array([toByte(gbk & 255), toByte(gbk >> 8)]);
|
|
2470
2572
|
}
|
|
@@ -2472,7 +2574,7 @@
|
|
|
2472
2574
|
}
|
|
2473
2575
|
function GBKHelper() {
|
|
2474
2576
|
GBKHelper_instance = this;
|
|
2475
|
-
this.
|
|
2577
|
+
this.ib_1 = new Uint16Array(65536);
|
|
2476
2578
|
// Inline function 'kotlin.arrayOf' call
|
|
2477
2579
|
// Inline function 'kotlin.arrayOf' call
|
|
2478
2580
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2549,7 +2651,7 @@
|
|
|
2549
2651
|
var j = inductionVariable_2;
|
|
2550
2652
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
2551
2653
|
// Inline function 'org.khronos.webgl.set' call
|
|
2552
|
-
var this_0 = this.
|
|
2654
|
+
var this_0 = this.ib_1;
|
|
2553
2655
|
// Inline function 'kotlin.code' call
|
|
2554
2656
|
var this_1 = charSequenceGet(str, j);
|
|
2555
2657
|
// Inline function 'org.khronos.webgl.get' call
|
|
@@ -2559,7 +2661,7 @@
|
|
|
2559
2661
|
}
|
|
2560
2662
|
while (inductionVariable_2 <= last_2);
|
|
2561
2663
|
}
|
|
2562
|
-
protoOf(GBKHelper).
|
|
2664
|
+
protoOf(GBKHelper).jb = function (str) {
|
|
2563
2665
|
// Inline function 'kotlin.byteArrayOf' call
|
|
2564
2666
|
var bytes = new Int8Array([]);
|
|
2565
2667
|
var indexedObject = toCharArray(str);
|
|
@@ -2575,7 +2677,7 @@
|
|
|
2575
2677
|
}
|
|
2576
2678
|
return bytes;
|
|
2577
2679
|
};
|
|
2578
|
-
protoOf(GBKHelper).
|
|
2680
|
+
protoOf(GBKHelper).kb = function (byteArray) {
|
|
2579
2681
|
var decoder = new TextDecoder('gbk');
|
|
2580
2682
|
var tmp = decoder.decode(new Uint8Array(toTypedArray(byteArray)));
|
|
2581
2683
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : THROW_CCE();
|
|
@@ -2592,12 +2694,13 @@
|
|
|
2592
2694
|
return joinToString_0(PinyinPro.pinyin(_this__u8e3s4, {type: 'array', toneType: 'none'}), separator).toUpperCase();
|
|
2593
2695
|
}
|
|
2594
2696
|
//region block: post-declaration
|
|
2595
|
-
defineProp(protoOf(ChecksumType), 'name', protoOf(ChecksumType).
|
|
2596
|
-
defineProp(protoOf(ChecksumType), 'ordinal', protoOf(ChecksumType).
|
|
2597
|
-
defineProp(protoOf(CoordinateSystemType), 'name', protoOf(CoordinateSystemType).
|
|
2598
|
-
defineProp(protoOf(CoordinateSystemType), 'ordinal', protoOf(CoordinateSystemType).
|
|
2697
|
+
defineProp(protoOf(ChecksumType), 'name', protoOf(ChecksumType).n6);
|
|
2698
|
+
defineProp(protoOf(ChecksumType), 'ordinal', protoOf(ChecksumType).o6);
|
|
2699
|
+
defineProp(protoOf(CoordinateSystemType), 'name', protoOf(CoordinateSystemType).n6);
|
|
2700
|
+
defineProp(protoOf(CoordinateSystemType), 'ordinal', protoOf(CoordinateSystemType).o6);
|
|
2599
2701
|
//endregion
|
|
2600
2702
|
//region block: init
|
|
2703
|
+
Companion_instance = new Companion();
|
|
2601
2704
|
CoordinateConvert_instance = new CoordinateConvert();
|
|
2602
2705
|
//endregion
|
|
2603
2706
|
//region block: exports
|
|
@@ -2618,6 +2721,17 @@
|
|
|
2618
2721
|
var $com$d10ng = $com.d10ng || ($com.d10ng = {});
|
|
2619
2722
|
var $com$d10ng$common = $com$d10ng.common || ($com$d10ng.common = {});
|
|
2620
2723
|
var $com$d10ng$common$base = $com$d10ng$common.base || ($com$d10ng$common.base = {});
|
|
2724
|
+
$com$d10ng$common$base.ByteBuffer = ByteBuffer;
|
|
2725
|
+
defineProp($com$d10ng$common$base.ByteBuffer, 'Companion', Companion_getInstance);
|
|
2726
|
+
var $com = _.com || (_.com = {});
|
|
2727
|
+
var $com$d10ng = $com.d10ng || ($com.d10ng = {});
|
|
2728
|
+
var $com$d10ng$common = $com$d10ng.common || ($com$d10ng.common = {});
|
|
2729
|
+
var $com$d10ng$common$base = $com$d10ng$common.base || ($com$d10ng$common.base = {});
|
|
2730
|
+
$com$d10ng$common$base.getBitRange = getBitRange;
|
|
2731
|
+
var $com = _.com || (_.com = {});
|
|
2732
|
+
var $com$d10ng = $com.d10ng || ($com.d10ng = {});
|
|
2733
|
+
var $com$d10ng$common = $com$d10ng.common || ($com$d10ng.common = {});
|
|
2734
|
+
var $com$d10ng$common$base = $com$d10ng$common.base || ($com$d10ng$common.base = {});
|
|
2621
2735
|
$com$d10ng$common$base.byteToBinString = byteToBinString;
|
|
2622
2736
|
$com$d10ng$common$base.byteToHexString = byteToHexString;
|
|
2623
2737
|
$com$d10ng$common$base.byteToUnsignedInt = byteToUnsignedInt;
|