@cruglobal/godtools-shared 1.1.0-SNAPSHOT.1567 → 1.1.0-SNAPSHOT.1568
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/Kermit-kermit-core.js +65 -66
- package/Kermit-kermit-core.js.map +1 -1
- package/Kermit-kermit.js +17 -18
- package/Kermit-kermit.js.map +1 -1
- package/KustomExport-lib-coroutines.js +3 -3
- package/KustomExport-lib.js +3 -3
- package/android-gto-support-gto-support-androidx-annotation.js +3 -3
- package/android-gto-support-gto-support-fluidsonic-locale.js +3 -3
- package/antlr-kotlin-antlr-kotlin-runtime.js +4229 -4369
- package/antlr-kotlin-antlr-kotlin-runtime.js.map +1 -1
- package/colormath-root-colormath.js +1365 -1097
- package/colormath-root-colormath.js.map +1 -1
- package/fluid-locale.js +239 -228
- package/fluid-locale.js.map +1 -1
- package/kotlin-js.js +44 -45
- package/kotlin-js.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +8967 -6826
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +3 -3
- package/kotlin-mpp-godtools-tool-parser-module-common.js +7 -7
- package/kotlin-mpp-godtools-tool-parser-module-common.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +532 -585
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +3510 -4012
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +297 -271
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +143 -94
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js +11 -7
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlinx-atomicfu.js +36 -37
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3245 -3276
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/seskar-core.js +3 -3
- package/seskar-react.js +3 -3
package/fluid-locale.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'fluid-locale'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'fluid-locale'.");
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
globalThis['fluid-locale'] = factory(typeof globalThis['fluid-locale'] === 'undefined' ? {} : globalThis['fluid-locale'], globalThis['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
17
|
-
var to = kotlin_kotlin.$_$.
|
|
18
|
-
var hashMapOf = kotlin_kotlin.$_$.
|
|
19
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
17
|
+
var to = kotlin_kotlin.$_$.ha;
|
|
18
|
+
var hashMapOf = kotlin_kotlin.$_$.c4;
|
|
19
|
+
var charSequenceLength = kotlin_kotlin.$_$.e6;
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.d7;
|
|
21
21
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
22
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
23
|
-
var sorted = kotlin_kotlin.$_$.
|
|
24
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
22
|
+
var Unit_instance = kotlin_kotlin.$_$.n2;
|
|
23
|
+
var sorted = kotlin_kotlin.$_$.y4;
|
|
24
|
+
var emptyList = kotlin_kotlin.$_$.t3;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.g7;
|
|
26
26
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.d;
|
|
28
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
29
|
-
var splitToSequence = kotlin_kotlin.$_$.
|
|
30
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
31
|
-
var equals = kotlin_kotlin.$_$.
|
|
32
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
33
|
-
var StringBuilder = kotlin_kotlin.$_$.
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.d3;
|
|
28
|
+
var charArrayOf = kotlin_kotlin.$_$.c6;
|
|
29
|
+
var splitToSequence = kotlin_kotlin.$_$.n8;
|
|
30
|
+
var charSequenceGet = kotlin_kotlin.$_$.d6;
|
|
31
|
+
var equals = kotlin_kotlin.$_$.e8;
|
|
32
|
+
var ensureNotNull = kotlin_kotlin.$_$.z9;
|
|
33
|
+
var StringBuilder = kotlin_kotlin.$_$.x7;
|
|
34
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.p6;
|
|
35
|
+
var equals_0 = kotlin_kotlin.$_$.h6;
|
|
36
|
+
var hashCode = kotlin_kotlin.$_$.n6;
|
|
37
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.i3;
|
|
39
38
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
40
39
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
41
|
-
var
|
|
40
|
+
var initMetadataForClass = kotlin_kotlin.$_$.o6;
|
|
42
41
|
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.v1;
|
|
43
42
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.u1;
|
|
44
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
45
|
-
var equals_1 = kotlin_kotlin.$_$.
|
|
46
|
-
var toCharArray = kotlin_kotlin.$_$.
|
|
47
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
43
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.h3;
|
|
44
|
+
var equals_1 = kotlin_kotlin.$_$.d8;
|
|
45
|
+
var toCharArray = kotlin_kotlin.$_$.t8;
|
|
46
|
+
var concatToString = kotlin_kotlin.$_$.y7;
|
|
48
47
|
//endregion
|
|
49
48
|
//region block: pre-declaration
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
initMetadataForCompanion(Companion);
|
|
50
|
+
initMetadataForClass(LanguageTag, 'LanguageTag');
|
|
51
|
+
initMetadataForCompanion(Companion_0);
|
|
52
|
+
initMetadataForClass(Locale, 'Locale');
|
|
54
53
|
//endregion
|
|
55
54
|
function Companion() {
|
|
56
55
|
Companion_instance = this;
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
56
|
+
this.b35_1 = _Char___init__impl__6a9atx(120);
|
|
57
|
+
this.c35_1 = _Char___init__impl__6a9atx(45);
|
|
58
|
+
this.d35_1 = 'und';
|
|
59
|
+
this.e35_1 = hashMapOf([to('art-lojban', 'jbo'), to('cel-gaulish', 'xtg-x-cel-gaulish'), to('en-gb-oed', 'en-GB-oxendict'), to('i-ami', 'ami'), to('i-bnn', 'bnn'), to('i-default', 'en-x-i-default'), to('i-enochian', 'und-x-i-enochian'), to('i-hak', 'hak'), to('i-klingon', 'tlh'), to('i-lux', 'lb'), to('i-mingo', 'see-x-i-mingo'), to('i-navajo', 'nv'), to('i-pwn', 'pwn'), to('i-tao', 'tao'), to('i-tay', 'tay'), to('i-tsu', 'tsu'), to('no-bok', 'nb'), to('no-nyn', 'nn'), to('sgn-be-fr', 'sfb'), to('sgn-be-nl', 'vgt'), to('sgn-ch-de', 'sgg'), to('zh-guoyu', 'cmn'), to('zh-hakka', 'hak'), to('zh-min', 'nan-x-zh-min'), to('zh-min-nan', 'nan'), to('zh-xiang', 'hsn')]);
|
|
61
60
|
}
|
|
62
|
-
protoOf(Companion).
|
|
61
|
+
protoOf(Companion).f35 = function (extension) {
|
|
63
62
|
var tmp;
|
|
64
63
|
if (extension == null) {
|
|
65
64
|
tmp = null;
|
|
66
65
|
} else {
|
|
67
66
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
67
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
68
68
|
var tmp_0;
|
|
69
69
|
// Inline function 'kotlin.text.isEmpty' call
|
|
70
70
|
if (charSequenceLength(extension) === 0) {
|
|
@@ -78,12 +78,13 @@
|
|
|
78
78
|
var tmp1_safe_receiver = tmp;
|
|
79
79
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
80
80
|
};
|
|
81
|
-
protoOf(Companion).
|
|
81
|
+
protoOf(Companion).g35 = function (singleton) {
|
|
82
82
|
var tmp;
|
|
83
83
|
if (singleton == null) {
|
|
84
84
|
tmp = null;
|
|
85
85
|
} else {
|
|
86
86
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
87
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
87
88
|
var tmp_0;
|
|
88
89
|
// Inline function 'kotlin.text.isEmpty' call
|
|
89
90
|
if (charSequenceLength(singleton) === 0) {
|
|
@@ -97,12 +98,13 @@
|
|
|
97
98
|
var tmp1_safe_receiver = tmp;
|
|
98
99
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
99
100
|
};
|
|
100
|
-
protoOf(Companion).
|
|
101
|
+
protoOf(Companion).h35 = function (subtag) {
|
|
101
102
|
var tmp;
|
|
102
103
|
if (subtag == null) {
|
|
103
104
|
tmp = null;
|
|
104
105
|
} else {
|
|
105
106
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
107
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
106
108
|
var tmp_0;
|
|
107
109
|
// Inline function 'kotlin.text.isEmpty' call
|
|
108
110
|
if (charSequenceLength(subtag) === 0) {
|
|
@@ -116,11 +118,12 @@
|
|
|
116
118
|
var tmp1_safe_receiver = tmp;
|
|
117
119
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
118
120
|
};
|
|
119
|
-
protoOf(Companion).
|
|
121
|
+
protoOf(Companion).i35 = function (extensions) {
|
|
120
122
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
121
123
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
124
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
122
125
|
var tmp;
|
|
123
|
-
if (extensions.
|
|
126
|
+
if (extensions.p()) {
|
|
124
127
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensions.<anonymous>' call
|
|
125
128
|
tmp = null;
|
|
126
129
|
} else {
|
|
@@ -135,17 +138,17 @@
|
|
|
135
138
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
136
139
|
var destination = ArrayList_init_$Create$();
|
|
137
140
|
// Inline function 'kotlin.collections.forEach' call
|
|
138
|
-
var tmp0_iterator = tmp0_safe_receiver.
|
|
139
|
-
while (tmp0_iterator.
|
|
140
|
-
var element = tmp0_iterator.
|
|
141
|
+
var tmp0_iterator = tmp0_safe_receiver.j();
|
|
142
|
+
while (tmp0_iterator.k()) {
|
|
143
|
+
var element = tmp0_iterator.l();
|
|
141
144
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
142
|
-
var tmp0_safe_receiver_0 = this.
|
|
145
|
+
var tmp0_safe_receiver_0 = this.f35(element);
|
|
143
146
|
if (tmp0_safe_receiver_0 == null)
|
|
144
147
|
null;
|
|
145
148
|
else {
|
|
146
149
|
// Inline function 'kotlin.let' call
|
|
147
150
|
// Inline function 'kotlin.contracts.contract' call
|
|
148
|
-
destination.
|
|
151
|
+
destination.e(tmp0_safe_receiver_0);
|
|
149
152
|
}
|
|
150
153
|
}
|
|
151
154
|
tmp_0 = destination;
|
|
@@ -154,12 +157,13 @@
|
|
|
154
157
|
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : sorted(tmp1_safe_receiver);
|
|
155
158
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
156
159
|
};
|
|
157
|
-
protoOf(Companion).
|
|
160
|
+
protoOf(Companion).j35 = function (extlang) {
|
|
158
161
|
var tmp;
|
|
159
162
|
if (extlang == null) {
|
|
160
163
|
tmp = null;
|
|
161
164
|
} else {
|
|
162
165
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
166
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
163
167
|
var tmp_0;
|
|
164
168
|
// Inline function 'kotlin.text.isEmpty' call
|
|
165
169
|
if (charSequenceLength(extlang) === 0) {
|
|
@@ -173,11 +177,12 @@
|
|
|
173
177
|
var tmp1_safe_receiver = tmp;
|
|
174
178
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
175
179
|
};
|
|
176
|
-
protoOf(Companion).
|
|
180
|
+
protoOf(Companion).k35 = function (extlangs) {
|
|
177
181
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
178
182
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
183
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
179
184
|
var tmp;
|
|
180
|
-
if (extlangs.
|
|
185
|
+
if (extlangs.p()) {
|
|
181
186
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtlangs.<anonymous>' call
|
|
182
187
|
tmp = null;
|
|
183
188
|
} else {
|
|
@@ -192,17 +197,17 @@
|
|
|
192
197
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
193
198
|
var destination = ArrayList_init_$Create$();
|
|
194
199
|
// Inline function 'kotlin.collections.forEach' call
|
|
195
|
-
var tmp0_iterator = tmp0_safe_receiver.
|
|
196
|
-
while (tmp0_iterator.
|
|
197
|
-
var element = tmp0_iterator.
|
|
200
|
+
var tmp0_iterator = tmp0_safe_receiver.j();
|
|
201
|
+
while (tmp0_iterator.k()) {
|
|
202
|
+
var element = tmp0_iterator.l();
|
|
198
203
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
199
|
-
var tmp0_safe_receiver_0 = this.
|
|
204
|
+
var tmp0_safe_receiver_0 = this.j35(element);
|
|
200
205
|
if (tmp0_safe_receiver_0 == null)
|
|
201
206
|
null;
|
|
202
207
|
else {
|
|
203
208
|
// Inline function 'kotlin.let' call
|
|
204
209
|
// Inline function 'kotlin.contracts.contract' call
|
|
205
|
-
destination.
|
|
210
|
+
destination.e(tmp0_safe_receiver_0);
|
|
206
211
|
}
|
|
207
212
|
}
|
|
208
213
|
tmp_0 = destination;
|
|
@@ -210,12 +215,13 @@
|
|
|
210
215
|
var tmp0_elvis_lhs = tmp_0;
|
|
211
216
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
212
217
|
};
|
|
213
|
-
protoOf(Companion).
|
|
218
|
+
protoOf(Companion).l35 = function (language) {
|
|
214
219
|
var tmp;
|
|
215
220
|
if (language == null) {
|
|
216
221
|
tmp = null;
|
|
217
222
|
} else {
|
|
218
223
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
224
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
219
225
|
var tmp_0;
|
|
220
226
|
// Inline function 'kotlin.text.isEmpty' call
|
|
221
227
|
if (charSequenceLength(language) === 0) {
|
|
@@ -229,12 +235,13 @@
|
|
|
229
235
|
var tmp1_safe_receiver = tmp;
|
|
230
236
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
231
237
|
};
|
|
232
|
-
protoOf(Companion).
|
|
238
|
+
protoOf(Companion).m35 = function (privateuse) {
|
|
233
239
|
var tmp;
|
|
234
240
|
if (privateuse == null) {
|
|
235
241
|
tmp = null;
|
|
236
242
|
} else {
|
|
237
243
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
244
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
238
245
|
var tmp_0;
|
|
239
246
|
// Inline function 'kotlin.text.isEmpty' call
|
|
240
247
|
if (charSequenceLength(privateuse) === 0) {
|
|
@@ -248,12 +255,13 @@
|
|
|
248
255
|
var tmp1_safe_receiver = tmp;
|
|
249
256
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
250
257
|
};
|
|
251
|
-
protoOf(Companion).
|
|
258
|
+
protoOf(Companion).n35 = function (prefix) {
|
|
252
259
|
var tmp;
|
|
253
260
|
if (prefix == null) {
|
|
254
261
|
tmp = null;
|
|
255
262
|
} else {
|
|
256
263
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
264
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
257
265
|
var tmp_0;
|
|
258
266
|
// Inline function 'kotlin.text.isEmpty' call
|
|
259
267
|
if (charSequenceLength(prefix) === 0) {
|
|
@@ -267,12 +275,13 @@
|
|
|
267
275
|
var tmp1_safe_receiver = tmp;
|
|
268
276
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
269
277
|
};
|
|
270
|
-
protoOf(Companion).
|
|
278
|
+
protoOf(Companion).o35 = function (subtag) {
|
|
271
279
|
var tmp;
|
|
272
280
|
if (subtag == null) {
|
|
273
281
|
tmp = null;
|
|
274
282
|
} else {
|
|
275
283
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
284
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
276
285
|
var tmp_0;
|
|
277
286
|
// Inline function 'kotlin.text.isEmpty' call
|
|
278
287
|
if (charSequenceLength(subtag) === 0) {
|
|
@@ -286,12 +295,13 @@
|
|
|
286
295
|
var tmp1_safe_receiver = tmp;
|
|
287
296
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
288
297
|
};
|
|
289
|
-
protoOf(Companion).
|
|
298
|
+
protoOf(Companion).p35 = function (region) {
|
|
290
299
|
var tmp;
|
|
291
300
|
if (region == null) {
|
|
292
301
|
tmp = null;
|
|
293
302
|
} else {
|
|
294
303
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
304
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
295
305
|
var tmp_0;
|
|
296
306
|
// Inline function 'kotlin.text.isEmpty' call
|
|
297
307
|
if (charSequenceLength(region) === 0) {
|
|
@@ -305,12 +315,13 @@
|
|
|
305
315
|
var tmp1_safe_receiver = tmp;
|
|
306
316
|
return tmp1_safe_receiver == null ? null : toUpperCase_0(tmp1_safe_receiver);
|
|
307
317
|
};
|
|
308
|
-
protoOf(Companion).
|
|
318
|
+
protoOf(Companion).q35 = function (script) {
|
|
309
319
|
var tmp;
|
|
310
320
|
if (script == null) {
|
|
311
321
|
tmp = null;
|
|
312
322
|
} else {
|
|
313
323
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
324
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
314
325
|
var tmp_0;
|
|
315
326
|
// Inline function 'kotlin.text.isEmpty' call
|
|
316
327
|
if (charSequenceLength(script) === 0) {
|
|
@@ -324,12 +335,13 @@
|
|
|
324
335
|
var tmp1_safe_receiver = tmp;
|
|
325
336
|
return tmp1_safe_receiver == null ? null : toUppercaseFirstLowercaseRest(tmp1_safe_receiver);
|
|
326
337
|
};
|
|
327
|
-
protoOf(Companion).
|
|
338
|
+
protoOf(Companion).r35 = function (variant) {
|
|
328
339
|
var tmp;
|
|
329
340
|
if (variant == null) {
|
|
330
341
|
tmp = null;
|
|
331
342
|
} else {
|
|
332
343
|
// Inline function 'kotlin.text.ifEmpty' call
|
|
344
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
333
345
|
var tmp_0;
|
|
334
346
|
// Inline function 'kotlin.text.isEmpty' call
|
|
335
347
|
if (charSequenceLength(variant) === 0) {
|
|
@@ -342,11 +354,12 @@
|
|
|
342
354
|
}
|
|
343
355
|
return tmp;
|
|
344
356
|
};
|
|
345
|
-
protoOf(Companion).
|
|
357
|
+
protoOf(Companion).s35 = function (variants) {
|
|
346
358
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
347
359
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
360
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
348
361
|
var tmp;
|
|
349
|
-
if (variants.
|
|
362
|
+
if (variants.p()) {
|
|
350
363
|
// Inline function 'io.fluidsonic.locale.Companion.canonicalizeVariants.<anonymous>' call
|
|
351
364
|
tmp = null;
|
|
352
365
|
} else {
|
|
@@ -361,17 +374,17 @@
|
|
|
361
374
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
362
375
|
var destination = ArrayList_init_$Create$();
|
|
363
376
|
// Inline function 'kotlin.collections.forEach' call
|
|
364
|
-
var tmp0_iterator = tmp0_safe_receiver.
|
|
365
|
-
while (tmp0_iterator.
|
|
366
|
-
var element = tmp0_iterator.
|
|
377
|
+
var tmp0_iterator = tmp0_safe_receiver.j();
|
|
378
|
+
while (tmp0_iterator.k()) {
|
|
379
|
+
var element = tmp0_iterator.l();
|
|
367
380
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
368
|
-
var tmp0_safe_receiver_0 = this.
|
|
381
|
+
var tmp0_safe_receiver_0 = this.r35(element);
|
|
369
382
|
if (tmp0_safe_receiver_0 == null)
|
|
370
383
|
null;
|
|
371
384
|
else {
|
|
372
385
|
// Inline function 'kotlin.let' call
|
|
373
386
|
// Inline function 'kotlin.contracts.contract' call
|
|
374
|
-
destination.
|
|
387
|
+
destination.e(tmp0_safe_receiver_0);
|
|
375
388
|
}
|
|
376
389
|
}
|
|
377
390
|
tmp_0 = destination;
|
|
@@ -379,63 +392,63 @@
|
|
|
379
392
|
var tmp0_elvis_lhs = tmp_0;
|
|
380
393
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
381
394
|
};
|
|
382
|
-
protoOf(Companion).
|
|
383
|
-
var canonicalLanguage = this.
|
|
384
|
-
var canonicalScript = this.
|
|
385
|
-
var canonicalRegion = this.
|
|
386
|
-
var canonicalVariants = this.
|
|
387
|
-
var canonicalExtlangs = this.
|
|
388
|
-
var canonicalExtensions = this.
|
|
389
|
-
var canonicalPrivateuse = this.
|
|
395
|
+
protoOf(Companion).t35 = function (language, script, region, variants, extlangs, extensions, privateuse) {
|
|
396
|
+
var canonicalLanguage = this.l35(language);
|
|
397
|
+
var canonicalScript = this.q35(script);
|
|
398
|
+
var canonicalRegion = this.p35(region);
|
|
399
|
+
var canonicalVariants = this.s35(variants);
|
|
400
|
+
var canonicalExtlangs = this.k35(extlangs);
|
|
401
|
+
var canonicalExtensions = this.i35(extensions);
|
|
402
|
+
var canonicalPrivateuse = this.m35(privateuse);
|
|
390
403
|
// Inline function 'kotlin.require' call
|
|
391
404
|
// Inline function 'kotlin.contracts.contract' call
|
|
392
|
-
if (!(!(canonicalLanguage == null)
|
|
405
|
+
if (!(!(canonicalLanguage == null) && this.u35(canonicalLanguage))) {
|
|
393
406
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
394
407
|
var message = 'Invalid language: ' + language;
|
|
395
408
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
396
409
|
}
|
|
397
410
|
// Inline function 'kotlin.require' call
|
|
398
411
|
// Inline function 'kotlin.contracts.contract' call
|
|
399
|
-
if (!(canonicalScript == null
|
|
412
|
+
if (!(canonicalScript == null || this.v35(canonicalScript))) {
|
|
400
413
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
401
414
|
var message_0 = 'Invalid script: ' + script;
|
|
402
415
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
403
416
|
}
|
|
404
417
|
// Inline function 'kotlin.require' call
|
|
405
418
|
// Inline function 'kotlin.contracts.contract' call
|
|
406
|
-
if (!(canonicalRegion == null
|
|
419
|
+
if (!(canonicalRegion == null || this.w35(canonicalRegion))) {
|
|
407
420
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
408
421
|
var message_1 = 'Invalid region: ' + region;
|
|
409
422
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
410
423
|
}
|
|
411
|
-
var tmp0_iterator = canonicalVariants.
|
|
412
|
-
while (tmp0_iterator.
|
|
413
|
-
var variant = tmp0_iterator.
|
|
424
|
+
var tmp0_iterator = canonicalVariants.j();
|
|
425
|
+
while (tmp0_iterator.k()) {
|
|
426
|
+
var variant = tmp0_iterator.l();
|
|
414
427
|
// Inline function 'kotlin.require' call
|
|
415
428
|
// Inline function 'kotlin.contracts.contract' call
|
|
416
|
-
if (!this.
|
|
429
|
+
if (!this.x35(variant)) {
|
|
417
430
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
418
431
|
var message_2 = 'Invalid variant: ' + variant;
|
|
419
432
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
420
433
|
}
|
|
421
434
|
}
|
|
422
|
-
var tmp1_iterator = canonicalExtlangs.
|
|
423
|
-
while (tmp1_iterator.
|
|
424
|
-
var extlang = tmp1_iterator.
|
|
435
|
+
var tmp1_iterator = canonicalExtlangs.j();
|
|
436
|
+
while (tmp1_iterator.k()) {
|
|
437
|
+
var extlang = tmp1_iterator.l();
|
|
425
438
|
// Inline function 'kotlin.require' call
|
|
426
439
|
// Inline function 'kotlin.contracts.contract' call
|
|
427
|
-
if (!this.
|
|
440
|
+
if (!this.y35(extlang)) {
|
|
428
441
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
429
442
|
var message_3 = 'Invalid extlang: ' + extlang;
|
|
430
443
|
throw IllegalArgumentException_init_$Create$(toString(message_3));
|
|
431
444
|
}
|
|
432
445
|
}
|
|
433
|
-
var tmp2_iterator = canonicalExtensions.
|
|
434
|
-
while (tmp2_iterator.
|
|
435
|
-
var extension = tmp2_iterator.
|
|
446
|
+
var tmp2_iterator = canonicalExtensions.j();
|
|
447
|
+
while (tmp2_iterator.k()) {
|
|
448
|
+
var extension = tmp2_iterator.l();
|
|
436
449
|
// Inline function 'kotlin.require' call
|
|
437
450
|
// Inline function 'kotlin.contracts.contract' call
|
|
438
|
-
if (!this.
|
|
451
|
+
if (!this.z35(extension)) {
|
|
439
452
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
440
453
|
var message_4 = 'Invalid extension: ' + extension;
|
|
441
454
|
throw IllegalArgumentException_init_$Create$(toString(message_4));
|
|
@@ -443,44 +456,44 @@
|
|
|
443
456
|
}
|
|
444
457
|
// Inline function 'kotlin.require' call
|
|
445
458
|
// Inline function 'kotlin.contracts.contract' call
|
|
446
|
-
if (!(canonicalPrivateuse == null
|
|
459
|
+
if (!(canonicalPrivateuse == null || this.a36(canonicalPrivateuse))) {
|
|
447
460
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
448
461
|
var message_5 = 'Invalid privateuse: ' + privateuse;
|
|
449
462
|
throw IllegalArgumentException_init_$Create$(toString(message_5));
|
|
450
463
|
}
|
|
451
464
|
return new LanguageTag(canonicalExtensions, canonicalExtlangs, canonicalLanguage, canonicalPrivateuse, canonicalRegion, canonicalScript, canonicalVariants);
|
|
452
465
|
};
|
|
453
|
-
protoOf(Companion).
|
|
466
|
+
protoOf(Companion).b36 = function (language, script, region, variants, extlangs, extensions, privateuse, $super) {
|
|
454
467
|
script = script === VOID ? null : script;
|
|
455
468
|
region = region === VOID ? null : region;
|
|
456
469
|
variants = variants === VOID ? emptyList() : variants;
|
|
457
470
|
extlangs = extlangs === VOID ? emptyList() : extlangs;
|
|
458
471
|
extensions = extensions === VOID ? emptyList() : extensions;
|
|
459
472
|
privateuse = privateuse === VOID ? null : privateuse;
|
|
460
|
-
return $super === VOID ? this.
|
|
473
|
+
return $super === VOID ? this.t35(language, script, region, variants, extlangs, extensions, privateuse) : $super.t35.call(this, language, script, region, variants, extlangs, extensions, privateuse);
|
|
461
474
|
};
|
|
462
|
-
protoOf(Companion).
|
|
463
|
-
var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).
|
|
464
|
-
if (!this.
|
|
475
|
+
protoOf(Companion).z35 = function (extension) {
|
|
476
|
+
var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).j();
|
|
477
|
+
if (!this.c36(tokens.l()))
|
|
465
478
|
return false;
|
|
466
|
-
if (!tokens.
|
|
479
|
+
if (!tokens.k())
|
|
467
480
|
return false;
|
|
468
481
|
// Inline function 'kotlin.collections.iterator' call
|
|
469
482
|
var tmp0_iterator = tokens;
|
|
470
|
-
while (tmp0_iterator.
|
|
471
|
-
var token = tmp0_iterator.
|
|
472
|
-
if (!this.
|
|
483
|
+
while (tmp0_iterator.k()) {
|
|
484
|
+
var token = tmp0_iterator.l();
|
|
485
|
+
if (!this.d36(token))
|
|
473
486
|
return false;
|
|
474
487
|
}
|
|
475
488
|
return true;
|
|
476
489
|
};
|
|
477
|
-
protoOf(Companion).
|
|
478
|
-
return isAlphaNumeric(singleton)
|
|
490
|
+
protoOf(Companion).e36 = function (singleton) {
|
|
491
|
+
return isAlphaNumeric(singleton) && !this.f36(singleton);
|
|
479
492
|
};
|
|
480
|
-
protoOf(Companion).
|
|
481
|
-
return singleton.length === 1
|
|
493
|
+
protoOf(Companion).c36 = function (singleton) {
|
|
494
|
+
return singleton.length === 1 && this.e36(charSequenceGet(singleton, 0));
|
|
482
495
|
};
|
|
483
|
-
protoOf(Companion).
|
|
496
|
+
protoOf(Companion).d36 = function (extension) {
|
|
484
497
|
var tmp;
|
|
485
498
|
var containsArg = extension.length;
|
|
486
499
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -490,10 +503,10 @@
|
|
|
490
503
|
}
|
|
491
504
|
return tmp;
|
|
492
505
|
};
|
|
493
|
-
protoOf(Companion).
|
|
494
|
-
return extlang.length === 3
|
|
506
|
+
protoOf(Companion).y35 = function (extlang) {
|
|
507
|
+
return extlang.length === 3 && isAlpha_0(extlang);
|
|
495
508
|
};
|
|
496
|
-
protoOf(Companion).
|
|
509
|
+
protoOf(Companion).u35 = function (language) {
|
|
497
510
|
var tmp;
|
|
498
511
|
var containsArg = language.length;
|
|
499
512
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -503,28 +516,28 @@
|
|
|
503
516
|
}
|
|
504
517
|
return tmp;
|
|
505
518
|
};
|
|
506
|
-
protoOf(Companion).
|
|
507
|
-
var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).
|
|
508
|
-
if (!this.
|
|
519
|
+
protoOf(Companion).a36 = function (privateuse) {
|
|
520
|
+
var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).j();
|
|
521
|
+
if (!this.g36(tokens.l()))
|
|
509
522
|
return false;
|
|
510
|
-
if (!tokens.
|
|
523
|
+
if (!tokens.k())
|
|
511
524
|
return false;
|
|
512
525
|
// Inline function 'kotlin.collections.iterator' call
|
|
513
526
|
var tmp0_iterator = tokens;
|
|
514
|
-
while (tmp0_iterator.
|
|
515
|
-
var token = tmp0_iterator.
|
|
516
|
-
if (!this.
|
|
527
|
+
while (tmp0_iterator.k()) {
|
|
528
|
+
var token = tmp0_iterator.l();
|
|
529
|
+
if (!this.h36(token))
|
|
517
530
|
return false;
|
|
518
531
|
}
|
|
519
532
|
return true;
|
|
520
533
|
};
|
|
521
|
-
protoOf(Companion).
|
|
534
|
+
protoOf(Companion).f36 = function (prefix) {
|
|
522
535
|
return equals(prefix, _Char___init__impl__6a9atx(120), true);
|
|
523
536
|
};
|
|
524
|
-
protoOf(Companion).
|
|
525
|
-
return prefix.length === 1
|
|
537
|
+
protoOf(Companion).g36 = function (prefix) {
|
|
538
|
+
return prefix.length === 1 && this.f36(charSequenceGet(prefix, 0));
|
|
526
539
|
};
|
|
527
|
-
protoOf(Companion).
|
|
540
|
+
protoOf(Companion).h36 = function (privateuse) {
|
|
528
541
|
var tmp;
|
|
529
542
|
var containsArg = privateuse.length;
|
|
530
543
|
if (1 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -534,7 +547,7 @@
|
|
|
534
547
|
}
|
|
535
548
|
return tmp;
|
|
536
549
|
};
|
|
537
|
-
protoOf(Companion).
|
|
550
|
+
protoOf(Companion).w35 = function (region) {
|
|
538
551
|
switch (region.length) {
|
|
539
552
|
case 2:
|
|
540
553
|
return isAlpha_0(region);
|
|
@@ -544,17 +557,17 @@
|
|
|
544
557
|
return false;
|
|
545
558
|
}
|
|
546
559
|
};
|
|
547
|
-
protoOf(Companion).
|
|
548
|
-
return script.length === 4
|
|
560
|
+
protoOf(Companion).v35 = function (script) {
|
|
561
|
+
return script.length === 4 && isAlpha_0(script);
|
|
549
562
|
};
|
|
550
|
-
protoOf(Companion).
|
|
563
|
+
protoOf(Companion).x35 = function (variant) {
|
|
551
564
|
var tmp0_subject = variant.length;
|
|
552
|
-
return tmp0_subject === 4 ?
|
|
565
|
+
return tmp0_subject === 4 ? isNumeric(charSequenceGet(variant, 0)) && isAlphaNumeric(charSequenceGet(variant, 1)) && isAlphaNumeric(charSequenceGet(variant, 2)) && isAlphaNumeric(charSequenceGet(variant, 3)) : (5 <= tmp0_subject ? tmp0_subject <= 8 : false) ? isAlphaNumeric_0(variant) : false;
|
|
553
566
|
};
|
|
554
|
-
protoOf(Companion).
|
|
555
|
-
var tmp0_elvis_lhs = this.
|
|
567
|
+
protoOf(Companion).i36 = function (string) {
|
|
568
|
+
var tmp0_elvis_lhs = this.e35_1.k2(toLowerCase_0(string));
|
|
556
569
|
var string_0 = tmp0_elvis_lhs == null ? string : tmp0_elvis_lhs;
|
|
557
|
-
var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).
|
|
570
|
+
var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).j();
|
|
558
571
|
var extlangs = null;
|
|
559
572
|
var extensions = null;
|
|
560
573
|
var language = null;
|
|
@@ -563,66 +576,66 @@
|
|
|
563
576
|
var script = null;
|
|
564
577
|
var variants = null;
|
|
565
578
|
var token;
|
|
566
|
-
token = tokens.
|
|
567
|
-
if (this.
|
|
568
|
-
language = this.
|
|
579
|
+
token = tokens.l();
|
|
580
|
+
if (this.u35(token)) {
|
|
581
|
+
language = this.l35(token);
|
|
569
582
|
token = nextOrNull(tokens);
|
|
570
|
-
if (!(token == null)
|
|
583
|
+
if (!(token == null) && this.y35(token)) {
|
|
571
584
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
572
585
|
extlangs = ArrayList_init_$Create$();
|
|
573
586
|
do {
|
|
574
|
-
extlangs.
|
|
587
|
+
extlangs.e(ensureNotNull(this.j35(token)));
|
|
575
588
|
token = nextOrNull(tokens);
|
|
576
589
|
}
|
|
577
|
-
while (
|
|
590
|
+
while (!(token == null) && extlangs.m() < 3 && this.y35(token));
|
|
578
591
|
}
|
|
579
|
-
if (!(token == null)
|
|
580
|
-
script = this.
|
|
592
|
+
if (!(token == null) && this.v35(token)) {
|
|
593
|
+
script = this.q35(token);
|
|
581
594
|
token = nextOrNull(tokens);
|
|
582
595
|
}
|
|
583
|
-
if (!(token == null)
|
|
584
|
-
region = this.
|
|
596
|
+
if (!(token == null) && this.w35(token)) {
|
|
597
|
+
region = this.p35(token);
|
|
585
598
|
token = nextOrNull(tokens);
|
|
586
599
|
}
|
|
587
|
-
if (!(token == null)
|
|
600
|
+
if (!(token == null) && this.x35(token)) {
|
|
588
601
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
589
602
|
variants = ArrayList_init_$Create$();
|
|
590
603
|
do {
|
|
591
|
-
variants.
|
|
604
|
+
variants.e(ensureNotNull(this.r35(token)));
|
|
592
605
|
token = nextOrNull(tokens);
|
|
593
606
|
}
|
|
594
|
-
while (!(token == null)
|
|
607
|
+
while (!(token == null) && this.x35(token));
|
|
595
608
|
}
|
|
596
|
-
if (!(token == null)
|
|
609
|
+
if (!(token == null) && this.c36(token)) {
|
|
597
610
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
598
611
|
extensions = ArrayList_init_$Create$();
|
|
599
612
|
do {
|
|
600
|
-
var extensionBuilder = new StringBuilder(ensureNotNull(this.
|
|
613
|
+
var extensionBuilder = new StringBuilder(ensureNotNull(this.g35(token)));
|
|
601
614
|
token = nextOrNull(tokens);
|
|
602
|
-
if (!(token == null)
|
|
615
|
+
if (!(token == null) && this.d36(token)) {
|
|
603
616
|
do {
|
|
604
|
-
extensionBuilder.
|
|
605
|
-
extensionBuilder.
|
|
617
|
+
extensionBuilder.s8(_Char___init__impl__6a9atx(45));
|
|
618
|
+
extensionBuilder.r8(this.h35(token));
|
|
606
619
|
token = nextOrNull(tokens);
|
|
607
620
|
}
|
|
608
|
-
while (!(token == null)
|
|
621
|
+
while (!(token == null) && this.d36(token));
|
|
609
622
|
} else
|
|
610
623
|
return null;
|
|
611
|
-
extensions.
|
|
624
|
+
extensions.e(extensionBuilder.toString());
|
|
612
625
|
}
|
|
613
|
-
while (!(token == null)
|
|
626
|
+
while (!(token == null) && this.c36(token));
|
|
614
627
|
}
|
|
615
628
|
}
|
|
616
|
-
if (!(token == null)
|
|
617
|
-
var privateuseBuilder = new StringBuilder(ensureNotNull(this.
|
|
629
|
+
if (!(token == null) && this.g36(token)) {
|
|
630
|
+
var privateuseBuilder = new StringBuilder(ensureNotNull(this.n35(token)));
|
|
618
631
|
token = nextOrNull(tokens);
|
|
619
|
-
if (!(token == null)
|
|
632
|
+
if (!(token == null) && this.h36(token)) {
|
|
620
633
|
do {
|
|
621
|
-
privateuseBuilder.
|
|
622
|
-
privateuseBuilder.
|
|
634
|
+
privateuseBuilder.s8(_Char___init__impl__6a9atx(45));
|
|
635
|
+
privateuseBuilder.r8(this.o35(token));
|
|
623
636
|
token = nextOrNull(tokens);
|
|
624
637
|
}
|
|
625
|
-
while (!(token == null)
|
|
638
|
+
while (!(token == null) && this.h36(token));
|
|
626
639
|
} else
|
|
627
640
|
return null;
|
|
628
641
|
privateuse = privateuseBuilder.toString();
|
|
@@ -652,13 +665,13 @@
|
|
|
652
665
|
}
|
|
653
666
|
function LanguageTag(extensions, extlangs, language, privateuse, region, script, variants) {
|
|
654
667
|
Companion_getInstance();
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
668
|
+
this.j36_1 = extensions;
|
|
669
|
+
this.k36_1 = extlangs;
|
|
670
|
+
this.l36_1 = language;
|
|
671
|
+
this.m36_1 = privateuse;
|
|
672
|
+
this.n36_1 = region;
|
|
673
|
+
this.o36_1 = script;
|
|
674
|
+
this.p36_1 = variants;
|
|
662
675
|
}
|
|
663
676
|
protoOf(LanguageTag).equals = function (other) {
|
|
664
677
|
var tmp;
|
|
@@ -673,37 +686,37 @@
|
|
|
673
686
|
var tmp_5;
|
|
674
687
|
var tmp_6;
|
|
675
688
|
if (other instanceof LanguageTag) {
|
|
676
|
-
tmp_6 = equals_0(this.
|
|
689
|
+
tmp_6 = equals_0(this.j36_1, other.j36_1);
|
|
677
690
|
} else {
|
|
678
691
|
tmp_6 = false;
|
|
679
692
|
}
|
|
680
693
|
if (tmp_6) {
|
|
681
|
-
tmp_5 = equals_0(this.
|
|
694
|
+
tmp_5 = equals_0(this.k36_1, other.k36_1);
|
|
682
695
|
} else {
|
|
683
696
|
tmp_5 = false;
|
|
684
697
|
}
|
|
685
698
|
if (tmp_5) {
|
|
686
|
-
tmp_4 = this.
|
|
699
|
+
tmp_4 = this.l36_1 == other.l36_1;
|
|
687
700
|
} else {
|
|
688
701
|
tmp_4 = false;
|
|
689
702
|
}
|
|
690
703
|
if (tmp_4) {
|
|
691
|
-
tmp_3 = this.
|
|
704
|
+
tmp_3 = this.m36_1 == other.m36_1;
|
|
692
705
|
} else {
|
|
693
706
|
tmp_3 = false;
|
|
694
707
|
}
|
|
695
708
|
if (tmp_3) {
|
|
696
|
-
tmp_2 = this.
|
|
709
|
+
tmp_2 = this.n36_1 == other.n36_1;
|
|
697
710
|
} else {
|
|
698
711
|
tmp_2 = false;
|
|
699
712
|
}
|
|
700
713
|
if (tmp_2) {
|
|
701
|
-
tmp_1 = this.
|
|
714
|
+
tmp_1 = this.o36_1 == other.o36_1;
|
|
702
715
|
} else {
|
|
703
716
|
tmp_1 = false;
|
|
704
717
|
}
|
|
705
718
|
if (tmp_1) {
|
|
706
|
-
tmp_0 = equals_2(this.
|
|
719
|
+
tmp_0 = equals_2(this.p36_1, other.p36_1, true);
|
|
707
720
|
} else {
|
|
708
721
|
tmp_0 = false;
|
|
709
722
|
}
|
|
@@ -712,34 +725,35 @@
|
|
|
712
725
|
return tmp;
|
|
713
726
|
};
|
|
714
727
|
protoOf(LanguageTag).hashCode = function () {
|
|
715
|
-
var result = hashCode(this.
|
|
716
|
-
result = imul(31, result) + hashCode(this.
|
|
728
|
+
var result = hashCode(this.j36_1);
|
|
729
|
+
result = imul(31, result) + hashCode(this.k36_1) | 0;
|
|
717
730
|
var tmp = imul(31, result);
|
|
718
731
|
// Inline function 'kotlin.hashCode' call
|
|
719
|
-
var tmp0_safe_receiver = this.
|
|
732
|
+
var tmp0_safe_receiver = this.l36_1;
|
|
720
733
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
721
734
|
result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
722
735
|
var tmp_0 = imul(31, result);
|
|
723
736
|
// Inline function 'kotlin.hashCode' call
|
|
724
|
-
var tmp0_safe_receiver_0 = this.
|
|
737
|
+
var tmp0_safe_receiver_0 = this.m36_1;
|
|
725
738
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
726
739
|
result = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
|
|
727
740
|
var tmp_1 = imul(31, result);
|
|
728
741
|
// Inline function 'kotlin.hashCode' call
|
|
729
|
-
var tmp0_safe_receiver_1 = this.
|
|
742
|
+
var tmp0_safe_receiver_1 = this.n36_1;
|
|
730
743
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
731
744
|
result = tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
|
|
732
745
|
var tmp_2 = imul(31, result);
|
|
733
746
|
// Inline function 'kotlin.hashCode' call
|
|
734
|
-
var tmp0_safe_receiver_2 = this.
|
|
747
|
+
var tmp0_safe_receiver_2 = this.o36_1;
|
|
735
748
|
var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
|
|
736
749
|
result = tmp_2 + (tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2) | 0;
|
|
737
750
|
var tmp_3 = imul(31, result);
|
|
738
751
|
// Inline function 'kotlin.hashCode' call
|
|
739
752
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
740
|
-
var this_0 = this.
|
|
753
|
+
var this_0 = this.p36_1;
|
|
754
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
741
755
|
var tmp_4;
|
|
742
|
-
if (this_0.
|
|
756
|
+
if (this_0.p()) {
|
|
743
757
|
// Inline function 'io.fluidsonic.locale.LanguageTag.hashCode.<anonymous>' call
|
|
744
758
|
tmp_4 = null;
|
|
745
759
|
} else {
|
|
@@ -753,11 +767,11 @@
|
|
|
753
767
|
// Inline function 'kotlin.collections.map' call
|
|
754
768
|
// Inline function 'kotlin.collections.mapTo' call
|
|
755
769
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver_3, 10));
|
|
756
|
-
var tmp0_iterator = tmp0_safe_receiver_3.
|
|
757
|
-
while (tmp0_iterator.
|
|
758
|
-
var item = tmp0_iterator.
|
|
770
|
+
var tmp0_iterator = tmp0_safe_receiver_3.j();
|
|
771
|
+
while (tmp0_iterator.k()) {
|
|
772
|
+
var item = tmp0_iterator.l();
|
|
759
773
|
var tmp$ret$6 = toLowerCase_0(item);
|
|
760
|
-
destination.
|
|
774
|
+
destination.e(tmp$ret$6);
|
|
761
775
|
}
|
|
762
776
|
tmp_5 = destination;
|
|
763
777
|
}
|
|
@@ -773,63 +787,60 @@
|
|
|
773
787
|
var this_0 = StringBuilder_init_$Create$();
|
|
774
788
|
// Inline function 'kotlin.contracts.contract' call
|
|
775
789
|
// Inline function 'io.fluidsonic.locale.LanguageTag.toString.<anonymous>' call
|
|
776
|
-
if (!(this.
|
|
777
|
-
this_0.
|
|
778
|
-
var tmp0_iterator = this.
|
|
779
|
-
while (tmp0_iterator.
|
|
780
|
-
var extlang = tmp0_iterator.
|
|
781
|
-
this_0.
|
|
782
|
-
this_0.
|
|
790
|
+
if (!(this.l36_1 == null)) {
|
|
791
|
+
this_0.r8(this.l36_1);
|
|
792
|
+
var tmp0_iterator = this.k36_1.j();
|
|
793
|
+
while (tmp0_iterator.k()) {
|
|
794
|
+
var extlang = tmp0_iterator.l();
|
|
795
|
+
this_0.s8(_Char___init__impl__6a9atx(45));
|
|
796
|
+
this_0.r8(extlang);
|
|
783
797
|
}
|
|
784
|
-
if (!(this.
|
|
785
|
-
this_0.
|
|
786
|
-
this_0.
|
|
798
|
+
if (!(this.o36_1 == null)) {
|
|
799
|
+
this_0.s8(_Char___init__impl__6a9atx(45));
|
|
800
|
+
this_0.r8(this.o36_1);
|
|
787
801
|
}
|
|
788
|
-
if (!(this.
|
|
789
|
-
this_0.
|
|
790
|
-
this_0.
|
|
802
|
+
if (!(this.n36_1 == null)) {
|
|
803
|
+
this_0.s8(_Char___init__impl__6a9atx(45));
|
|
804
|
+
this_0.r8(this.n36_1);
|
|
791
805
|
}
|
|
792
|
-
var tmp1_iterator = this.
|
|
793
|
-
while (tmp1_iterator.
|
|
794
|
-
var variant = tmp1_iterator.
|
|
795
|
-
this_0.
|
|
796
|
-
this_0.
|
|
806
|
+
var tmp1_iterator = this.p36_1.j();
|
|
807
|
+
while (tmp1_iterator.k()) {
|
|
808
|
+
var variant = tmp1_iterator.l();
|
|
809
|
+
this_0.s8(_Char___init__impl__6a9atx(45));
|
|
810
|
+
this_0.r8(variant);
|
|
797
811
|
}
|
|
798
|
-
var tmp2_iterator = this.
|
|
799
|
-
while (tmp2_iterator.
|
|
800
|
-
var extension = tmp2_iterator.
|
|
801
|
-
this_0.
|
|
802
|
-
this_0.
|
|
812
|
+
var tmp2_iterator = this.j36_1.j();
|
|
813
|
+
while (tmp2_iterator.k()) {
|
|
814
|
+
var extension = tmp2_iterator.l();
|
|
815
|
+
this_0.s8(_Char___init__impl__6a9atx(45));
|
|
816
|
+
this_0.r8(extension);
|
|
803
817
|
}
|
|
804
818
|
}
|
|
805
|
-
if (!(this.
|
|
819
|
+
if (!(this.m36_1 == null)) {
|
|
806
820
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
807
821
|
if (charSequenceLength(this_0) > 0) {
|
|
808
|
-
this_0.
|
|
822
|
+
this_0.s8(_Char___init__impl__6a9atx(45));
|
|
809
823
|
}
|
|
810
|
-
this_0.
|
|
824
|
+
this_0.r8(this.m36_1);
|
|
811
825
|
}
|
|
812
826
|
return this_0.toString();
|
|
813
827
|
};
|
|
814
828
|
function Companion_0() {
|
|
815
829
|
Companion_instance_0 = this;
|
|
816
|
-
|
|
817
|
-
var tmp_0 = Companion_getInstance();
|
|
818
|
-
Companion_getInstance();
|
|
819
|
-
tmp.o35_1 = new Locale(tmp_0.z34('und'));
|
|
830
|
+
this.q36_1 = new Locale(Companion_getInstance().b36('und'));
|
|
820
831
|
}
|
|
821
|
-
protoOf(Companion_0).
|
|
822
|
-
return tag.equals(this.
|
|
832
|
+
protoOf(Companion_0).r36 = function (tag) {
|
|
833
|
+
return tag.equals(this.q36_1.s36_1) ? this.q36_1 : new Locale(tag);
|
|
823
834
|
};
|
|
824
|
-
protoOf(Companion_0).
|
|
825
|
-
var tmp0_safe_receiver = Companion_getInstance().
|
|
835
|
+
protoOf(Companion_0).t36 = function (tag) {
|
|
836
|
+
var tmp0_safe_receiver = Companion_getInstance().i36(tag);
|
|
826
837
|
var tmp;
|
|
827
838
|
if (tmp0_safe_receiver == null) {
|
|
828
839
|
tmp = null;
|
|
829
840
|
} else {
|
|
830
841
|
// Inline function 'kotlin.let' call
|
|
831
842
|
// Inline function 'kotlin.contracts.contract' call
|
|
832
|
-
tmp = this.
|
|
843
|
+
tmp = this.r36(tmp0_safe_receiver);
|
|
833
844
|
}
|
|
834
845
|
return tmp;
|
|
835
846
|
};
|
|
@@ -841,7 +852,7 @@
|
|
|
841
852
|
}
|
|
842
853
|
function Locale(languageTag) {
|
|
843
854
|
Companion_getInstance_0();
|
|
844
|
-
this.
|
|
855
|
+
this.s36_1 = languageTag;
|
|
845
856
|
}
|
|
846
857
|
protoOf(Locale).equals = function (other) {
|
|
847
858
|
var tmp;
|
|
@@ -850,7 +861,7 @@
|
|
|
850
861
|
} else {
|
|
851
862
|
var tmp_0;
|
|
852
863
|
if (other instanceof Locale) {
|
|
853
|
-
tmp_0 = this.
|
|
864
|
+
tmp_0 = this.s36_1.equals(other.s36_1);
|
|
854
865
|
} else {
|
|
855
866
|
tmp_0 = false;
|
|
856
867
|
}
|
|
@@ -859,13 +870,13 @@
|
|
|
859
870
|
return tmp;
|
|
860
871
|
};
|
|
861
872
|
protoOf(Locale).hashCode = function () {
|
|
862
|
-
return this.
|
|
873
|
+
return this.s36_1.hashCode();
|
|
863
874
|
};
|
|
864
875
|
protoOf(Locale).toString = function () {
|
|
865
|
-
return this.
|
|
876
|
+
return this.s36_1.toString();
|
|
866
877
|
};
|
|
867
878
|
function isAlphaNumeric(_this__u8e3s4) {
|
|
868
|
-
return isAlpha(_this__u8e3s4)
|
|
879
|
+
return isAlpha(_this__u8e3s4) || isNumeric(_this__u8e3s4);
|
|
869
880
|
}
|
|
870
881
|
function isNumeric(_this__u8e3s4) {
|
|
871
882
|
return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
|
|
@@ -883,24 +894,24 @@
|
|
|
883
894
|
return isLowerCase(_this__u8e3s4) ? Char__minus_impl_a2frrh(_this__u8e3s4, 32) : _this__u8e3s4;
|
|
884
895
|
}
|
|
885
896
|
function isAlpha(_this__u8e3s4) {
|
|
886
|
-
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false)
|
|
897
|
+
return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false);
|
|
887
898
|
}
|
|
888
899
|
function nextOrNull(_this__u8e3s4) {
|
|
889
|
-
return _this__u8e3s4.
|
|
900
|
+
return _this__u8e3s4.k() ? _this__u8e3s4.l() : null;
|
|
890
901
|
}
|
|
891
902
|
function equals_2(_this__u8e3s4, other, ignoreCase) {
|
|
892
|
-
if (!(_this__u8e3s4.
|
|
903
|
+
if (!(_this__u8e3s4.m() === other.m()))
|
|
893
904
|
return false;
|
|
894
905
|
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
895
906
|
var index = 0;
|
|
896
|
-
var tmp0_iterator = _this__u8e3s4.
|
|
897
|
-
while (tmp0_iterator.
|
|
898
|
-
var item = tmp0_iterator.
|
|
907
|
+
var tmp0_iterator = _this__u8e3s4.j();
|
|
908
|
+
while (tmp0_iterator.k()) {
|
|
909
|
+
var item = tmp0_iterator.l();
|
|
899
910
|
// Inline function 'io.fluidsonic.locale.equals.<anonymous>' call
|
|
900
911
|
var tmp1 = index;
|
|
901
912
|
index = tmp1 + 1 | 0;
|
|
902
913
|
var index_0 = checkIndexOverflow(tmp1);
|
|
903
|
-
if (!equals_1(item, other.
|
|
914
|
+
if (!equals_1(item, other.o(index_0), ignoreCase))
|
|
904
915
|
return false;
|
|
905
916
|
}
|
|
906
917
|
return true;
|