@cruglobal/godtools-shared 1.1.0-SNAPSHOT.1591 → 1.1.0-SNAPSHOT.1607
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 +45 -45
- package/Kermit-kermit.js +8 -8
- package/antlr-kotlin-antlr-kotlin-runtime.js +2972 -2972
- package/colormath-root-colormath.js +882 -882
- package/fluid-locale.js +138 -138
- package/kotlin-js.js +19 -19
- package/kotlin-kotlin-stdlib.js +183 -154
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-common.js +2 -2
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +398 -398
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2958 -2249
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +108 -108
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +23 -3
- package/kotlinx-atomicfu.js +4 -4
- package/kotlinx-coroutines-core.js +1559 -1515
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/fluid-locale.js
CHANGED
|
@@ -14,36 +14,36 @@
|
|
|
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.$_$.
|
|
17
|
+
var to = kotlin_kotlin.$_$.ga;
|
|
18
18
|
var hashMapOf = kotlin_kotlin.$_$.y3;
|
|
19
19
|
var charSequenceLength = kotlin_kotlin.$_$.a6;
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.a7;
|
|
21
21
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.l2;
|
|
23
23
|
var sorted = kotlin_kotlin.$_$.u4;
|
|
24
24
|
var emptyList = kotlin_kotlin.$_$.p3;
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
25
|
+
var toString = kotlin_kotlin.$_$.d7;
|
|
26
26
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.d;
|
|
28
28
|
var charArrayOf = kotlin_kotlin.$_$.y5;
|
|
29
|
-
var splitToSequence = kotlin_kotlin.$_$.
|
|
29
|
+
var splitToSequence = kotlin_kotlin.$_$.k8;
|
|
30
30
|
var charSequenceGet = kotlin_kotlin.$_$.z5;
|
|
31
|
-
var equals = kotlin_kotlin.$_$.
|
|
32
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
33
|
-
var StringBuilder = kotlin_kotlin.$_$.
|
|
34
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
31
|
+
var equals = kotlin_kotlin.$_$.b8;
|
|
32
|
+
var ensureNotNull = kotlin_kotlin.$_$.y9;
|
|
33
|
+
var StringBuilder = kotlin_kotlin.$_$.u7;
|
|
34
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.m6;
|
|
35
35
|
var equals_0 = kotlin_kotlin.$_$.d6;
|
|
36
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
36
|
+
var hashCode = kotlin_kotlin.$_$.k6;
|
|
37
37
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.e3;
|
|
38
38
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
39
39
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
40
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
40
|
+
var initMetadataForClass = kotlin_kotlin.$_$.l6;
|
|
41
41
|
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.v1;
|
|
42
42
|
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.u1;
|
|
43
43
|
var checkIndexOverflow = kotlin_kotlin.$_$.d3;
|
|
44
|
-
var equals_1 = kotlin_kotlin.$_$.
|
|
45
|
-
var toCharArray = kotlin_kotlin.$_$.
|
|
46
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
44
|
+
var equals_1 = kotlin_kotlin.$_$.a8;
|
|
45
|
+
var toCharArray = kotlin_kotlin.$_$.r8;
|
|
46
|
+
var concatToString = kotlin_kotlin.$_$.v7;
|
|
47
47
|
//endregion
|
|
48
48
|
//region block: pre-declaration
|
|
49
49
|
initMetadataForCompanion(Companion);
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
//endregion
|
|
54
54
|
function Companion() {
|
|
55
55
|
Companion_instance = this;
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
56
|
+
this.z34_1 = _Char___init__impl__6a9atx(120);
|
|
57
|
+
this.a35_1 = _Char___init__impl__6a9atx(45);
|
|
58
|
+
this.b35_1 = 'und';
|
|
59
|
+
this.c35_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')]);
|
|
60
60
|
}
|
|
61
|
-
protoOf(Companion).
|
|
61
|
+
protoOf(Companion).d35 = function (extension) {
|
|
62
62
|
var tmp;
|
|
63
63
|
if (extension == null) {
|
|
64
64
|
tmp = null;
|
|
@@ -78,7 +78,7 @@
|
|
|
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).e35 = function (singleton) {
|
|
82
82
|
var tmp;
|
|
83
83
|
if (singleton == null) {
|
|
84
84
|
tmp = null;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
var tmp1_safe_receiver = tmp;
|
|
99
99
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
100
100
|
};
|
|
101
|
-
protoOf(Companion).
|
|
101
|
+
protoOf(Companion).f35 = function (subtag) {
|
|
102
102
|
var tmp;
|
|
103
103
|
if (subtag == null) {
|
|
104
104
|
tmp = null;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
var tmp1_safe_receiver = tmp;
|
|
119
119
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
120
120
|
};
|
|
121
|
-
protoOf(Companion).
|
|
121
|
+
protoOf(Companion).g35 = function (extensions) {
|
|
122
122
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
123
123
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
124
124
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
while (tmp0_iterator.k()) {
|
|
143
143
|
var element = tmp0_iterator.l();
|
|
144
144
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
145
|
-
var tmp0_safe_receiver_0 = this.
|
|
145
|
+
var tmp0_safe_receiver_0 = this.d35(element);
|
|
146
146
|
if (tmp0_safe_receiver_0 == null)
|
|
147
147
|
null;
|
|
148
148
|
else {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : sorted(tmp1_safe_receiver);
|
|
158
158
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
159
159
|
};
|
|
160
|
-
protoOf(Companion).
|
|
160
|
+
protoOf(Companion).h35 = function (extlang) {
|
|
161
161
|
var tmp;
|
|
162
162
|
if (extlang == null) {
|
|
163
163
|
tmp = null;
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
var tmp1_safe_receiver = tmp;
|
|
178
178
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
179
179
|
};
|
|
180
|
-
protoOf(Companion).
|
|
180
|
+
protoOf(Companion).i35 = function (extlangs) {
|
|
181
181
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
182
182
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
183
183
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
while (tmp0_iterator.k()) {
|
|
202
202
|
var element = tmp0_iterator.l();
|
|
203
203
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
204
|
-
var tmp0_safe_receiver_0 = this.
|
|
204
|
+
var tmp0_safe_receiver_0 = this.h35(element);
|
|
205
205
|
if (tmp0_safe_receiver_0 == null)
|
|
206
206
|
null;
|
|
207
207
|
else {
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
var tmp0_elvis_lhs = tmp_0;
|
|
216
216
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
217
217
|
};
|
|
218
|
-
protoOf(Companion).
|
|
218
|
+
protoOf(Companion).j35 = function (language) {
|
|
219
219
|
var tmp;
|
|
220
220
|
if (language == null) {
|
|
221
221
|
tmp = null;
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
var tmp1_safe_receiver = tmp;
|
|
236
236
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
237
237
|
};
|
|
238
|
-
protoOf(Companion).
|
|
238
|
+
protoOf(Companion).k35 = function (privateuse) {
|
|
239
239
|
var tmp;
|
|
240
240
|
if (privateuse == null) {
|
|
241
241
|
tmp = null;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
var tmp1_safe_receiver = tmp;
|
|
256
256
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
257
257
|
};
|
|
258
|
-
protoOf(Companion).
|
|
258
|
+
protoOf(Companion).l35 = function (prefix) {
|
|
259
259
|
var tmp;
|
|
260
260
|
if (prefix == null) {
|
|
261
261
|
tmp = null;
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
var tmp1_safe_receiver = tmp;
|
|
276
276
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
277
277
|
};
|
|
278
|
-
protoOf(Companion).
|
|
278
|
+
protoOf(Companion).m35 = function (subtag) {
|
|
279
279
|
var tmp;
|
|
280
280
|
if (subtag == null) {
|
|
281
281
|
tmp = null;
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
var tmp1_safe_receiver = tmp;
|
|
296
296
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
297
297
|
};
|
|
298
|
-
protoOf(Companion).
|
|
298
|
+
protoOf(Companion).n35 = function (region) {
|
|
299
299
|
var tmp;
|
|
300
300
|
if (region == null) {
|
|
301
301
|
tmp = null;
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
var tmp1_safe_receiver = tmp;
|
|
316
316
|
return tmp1_safe_receiver == null ? null : toUpperCase_0(tmp1_safe_receiver);
|
|
317
317
|
};
|
|
318
|
-
protoOf(Companion).
|
|
318
|
+
protoOf(Companion).o35 = function (script) {
|
|
319
319
|
var tmp;
|
|
320
320
|
if (script == null) {
|
|
321
321
|
tmp = null;
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
var tmp1_safe_receiver = tmp;
|
|
336
336
|
return tmp1_safe_receiver == null ? null : toUppercaseFirstLowercaseRest(tmp1_safe_receiver);
|
|
337
337
|
};
|
|
338
|
-
protoOf(Companion).
|
|
338
|
+
protoOf(Companion).p35 = function (variant) {
|
|
339
339
|
var tmp;
|
|
340
340
|
if (variant == null) {
|
|
341
341
|
tmp = null;
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
}
|
|
355
355
|
return tmp;
|
|
356
356
|
};
|
|
357
|
-
protoOf(Companion).
|
|
357
|
+
protoOf(Companion).q35 = function (variants) {
|
|
358
358
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
359
359
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
360
360
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
while (tmp0_iterator.k()) {
|
|
379
379
|
var element = tmp0_iterator.l();
|
|
380
380
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
381
|
-
var tmp0_safe_receiver_0 = this.
|
|
381
|
+
var tmp0_safe_receiver_0 = this.p35(element);
|
|
382
382
|
if (tmp0_safe_receiver_0 == null)
|
|
383
383
|
null;
|
|
384
384
|
else {
|
|
@@ -392,31 +392,31 @@
|
|
|
392
392
|
var tmp0_elvis_lhs = tmp_0;
|
|
393
393
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
394
394
|
};
|
|
395
|
-
protoOf(Companion).
|
|
396
|
-
var canonicalLanguage = this.
|
|
397
|
-
var canonicalScript = this.
|
|
398
|
-
var canonicalRegion = this.
|
|
399
|
-
var canonicalVariants = this.
|
|
400
|
-
var canonicalExtlangs = this.
|
|
401
|
-
var canonicalExtensions = this.
|
|
402
|
-
var canonicalPrivateuse = this.
|
|
395
|
+
protoOf(Companion).r35 = function (language, script, region, variants, extlangs, extensions, privateuse) {
|
|
396
|
+
var canonicalLanguage = this.j35(language);
|
|
397
|
+
var canonicalScript = this.o35(script);
|
|
398
|
+
var canonicalRegion = this.n35(region);
|
|
399
|
+
var canonicalVariants = this.q35(variants);
|
|
400
|
+
var canonicalExtlangs = this.i35(extlangs);
|
|
401
|
+
var canonicalExtensions = this.g35(extensions);
|
|
402
|
+
var canonicalPrivateuse = this.k35(privateuse);
|
|
403
403
|
// Inline function 'kotlin.require' call
|
|
404
404
|
// Inline function 'kotlin.contracts.contract' call
|
|
405
|
-
if (!(!(canonicalLanguage == null) && this.
|
|
405
|
+
if (!(!(canonicalLanguage == null) && this.s35(canonicalLanguage))) {
|
|
406
406
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
407
407
|
var message = 'Invalid language: ' + language;
|
|
408
408
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
409
409
|
}
|
|
410
410
|
// Inline function 'kotlin.require' call
|
|
411
411
|
// Inline function 'kotlin.contracts.contract' call
|
|
412
|
-
if (!(canonicalScript == null || this.
|
|
412
|
+
if (!(canonicalScript == null || this.t35(canonicalScript))) {
|
|
413
413
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
414
414
|
var message_0 = 'Invalid script: ' + script;
|
|
415
415
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
416
416
|
}
|
|
417
417
|
// Inline function 'kotlin.require' call
|
|
418
418
|
// Inline function 'kotlin.contracts.contract' call
|
|
419
|
-
if (!(canonicalRegion == null || this.
|
|
419
|
+
if (!(canonicalRegion == null || this.u35(canonicalRegion))) {
|
|
420
420
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
421
421
|
var message_1 = 'Invalid region: ' + region;
|
|
422
422
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
var variant = tmp0_iterator.l();
|
|
427
427
|
// Inline function 'kotlin.require' call
|
|
428
428
|
// Inline function 'kotlin.contracts.contract' call
|
|
429
|
-
if (!this.
|
|
429
|
+
if (!this.v35(variant)) {
|
|
430
430
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
431
431
|
var message_2 = 'Invalid variant: ' + variant;
|
|
432
432
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
var extlang = tmp1_iterator.l();
|
|
438
438
|
// Inline function 'kotlin.require' call
|
|
439
439
|
// Inline function 'kotlin.contracts.contract' call
|
|
440
|
-
if (!this.
|
|
440
|
+
if (!this.w35(extlang)) {
|
|
441
441
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
442
442
|
var message_3 = 'Invalid extlang: ' + extlang;
|
|
443
443
|
throw IllegalArgumentException_init_$Create$(toString(message_3));
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
var extension = tmp2_iterator.l();
|
|
449
449
|
// Inline function 'kotlin.require' call
|
|
450
450
|
// Inline function 'kotlin.contracts.contract' call
|
|
451
|
-
if (!this.
|
|
451
|
+
if (!this.x35(extension)) {
|
|
452
452
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
453
453
|
var message_4 = 'Invalid extension: ' + extension;
|
|
454
454
|
throw IllegalArgumentException_init_$Create$(toString(message_4));
|
|
@@ -456,25 +456,25 @@
|
|
|
456
456
|
}
|
|
457
457
|
// Inline function 'kotlin.require' call
|
|
458
458
|
// Inline function 'kotlin.contracts.contract' call
|
|
459
|
-
if (!(canonicalPrivateuse == null || this.
|
|
459
|
+
if (!(canonicalPrivateuse == null || this.y35(canonicalPrivateuse))) {
|
|
460
460
|
// Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
|
|
461
461
|
var message_5 = 'Invalid privateuse: ' + privateuse;
|
|
462
462
|
throw IllegalArgumentException_init_$Create$(toString(message_5));
|
|
463
463
|
}
|
|
464
464
|
return new LanguageTag(canonicalExtensions, canonicalExtlangs, canonicalLanguage, canonicalPrivateuse, canonicalRegion, canonicalScript, canonicalVariants);
|
|
465
465
|
};
|
|
466
|
-
protoOf(Companion).
|
|
466
|
+
protoOf(Companion).z35 = function (language, script, region, variants, extlangs, extensions, privateuse, $super) {
|
|
467
467
|
script = script === VOID ? null : script;
|
|
468
468
|
region = region === VOID ? null : region;
|
|
469
469
|
variants = variants === VOID ? emptyList() : variants;
|
|
470
470
|
extlangs = extlangs === VOID ? emptyList() : extlangs;
|
|
471
471
|
extensions = extensions === VOID ? emptyList() : extensions;
|
|
472
472
|
privateuse = privateuse === VOID ? null : privateuse;
|
|
473
|
-
return $super === VOID ? this.
|
|
473
|
+
return $super === VOID ? this.r35(language, script, region, variants, extlangs, extensions, privateuse) : $super.r35.call(this, language, script, region, variants, extlangs, extensions, privateuse);
|
|
474
474
|
};
|
|
475
|
-
protoOf(Companion).
|
|
475
|
+
protoOf(Companion).x35 = function (extension) {
|
|
476
476
|
var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).j();
|
|
477
|
-
if (!this.
|
|
477
|
+
if (!this.a36(tokens.l()))
|
|
478
478
|
return false;
|
|
479
479
|
if (!tokens.k())
|
|
480
480
|
return false;
|
|
@@ -482,18 +482,18 @@
|
|
|
482
482
|
var tmp0_iterator = tokens;
|
|
483
483
|
while (tmp0_iterator.k()) {
|
|
484
484
|
var token = tmp0_iterator.l();
|
|
485
|
-
if (!this.
|
|
485
|
+
if (!this.b36(token))
|
|
486
486
|
return false;
|
|
487
487
|
}
|
|
488
488
|
return true;
|
|
489
489
|
};
|
|
490
|
-
protoOf(Companion).
|
|
491
|
-
return isAlphaNumeric(singleton) && !this.
|
|
490
|
+
protoOf(Companion).c36 = function (singleton) {
|
|
491
|
+
return isAlphaNumeric(singleton) && !this.d36(singleton);
|
|
492
492
|
};
|
|
493
|
-
protoOf(Companion).
|
|
494
|
-
return singleton.length === 1 && this.
|
|
493
|
+
protoOf(Companion).a36 = function (singleton) {
|
|
494
|
+
return singleton.length === 1 && this.c36(charSequenceGet(singleton, 0));
|
|
495
495
|
};
|
|
496
|
-
protoOf(Companion).
|
|
496
|
+
protoOf(Companion).b36 = function (extension) {
|
|
497
497
|
var tmp;
|
|
498
498
|
var containsArg = extension.length;
|
|
499
499
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -503,10 +503,10 @@
|
|
|
503
503
|
}
|
|
504
504
|
return tmp;
|
|
505
505
|
};
|
|
506
|
-
protoOf(Companion).
|
|
506
|
+
protoOf(Companion).w35 = function (extlang) {
|
|
507
507
|
return extlang.length === 3 && isAlpha_0(extlang);
|
|
508
508
|
};
|
|
509
|
-
protoOf(Companion).
|
|
509
|
+
protoOf(Companion).s35 = function (language) {
|
|
510
510
|
var tmp;
|
|
511
511
|
var containsArg = language.length;
|
|
512
512
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -516,9 +516,9 @@
|
|
|
516
516
|
}
|
|
517
517
|
return tmp;
|
|
518
518
|
};
|
|
519
|
-
protoOf(Companion).
|
|
519
|
+
protoOf(Companion).y35 = function (privateuse) {
|
|
520
520
|
var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).j();
|
|
521
|
-
if (!this.
|
|
521
|
+
if (!this.e36(tokens.l()))
|
|
522
522
|
return false;
|
|
523
523
|
if (!tokens.k())
|
|
524
524
|
return false;
|
|
@@ -526,18 +526,18 @@
|
|
|
526
526
|
var tmp0_iterator = tokens;
|
|
527
527
|
while (tmp0_iterator.k()) {
|
|
528
528
|
var token = tmp0_iterator.l();
|
|
529
|
-
if (!this.
|
|
529
|
+
if (!this.f36(token))
|
|
530
530
|
return false;
|
|
531
531
|
}
|
|
532
532
|
return true;
|
|
533
533
|
};
|
|
534
|
-
protoOf(Companion).
|
|
534
|
+
protoOf(Companion).d36 = function (prefix) {
|
|
535
535
|
return equals(prefix, _Char___init__impl__6a9atx(120), true);
|
|
536
536
|
};
|
|
537
|
-
protoOf(Companion).
|
|
538
|
-
return prefix.length === 1 && this.
|
|
537
|
+
protoOf(Companion).e36 = function (prefix) {
|
|
538
|
+
return prefix.length === 1 && this.d36(charSequenceGet(prefix, 0));
|
|
539
539
|
};
|
|
540
|
-
protoOf(Companion).
|
|
540
|
+
protoOf(Companion).f36 = function (privateuse) {
|
|
541
541
|
var tmp;
|
|
542
542
|
var containsArg = privateuse.length;
|
|
543
543
|
if (1 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
}
|
|
548
548
|
return tmp;
|
|
549
549
|
};
|
|
550
|
-
protoOf(Companion).
|
|
550
|
+
protoOf(Companion).u35 = function (region) {
|
|
551
551
|
switch (region.length) {
|
|
552
552
|
case 2:
|
|
553
553
|
return isAlpha_0(region);
|
|
@@ -557,15 +557,15 @@
|
|
|
557
557
|
return false;
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
protoOf(Companion).
|
|
560
|
+
protoOf(Companion).t35 = function (script) {
|
|
561
561
|
return script.length === 4 && isAlpha_0(script);
|
|
562
562
|
};
|
|
563
|
-
protoOf(Companion).
|
|
563
|
+
protoOf(Companion).v35 = function (variant) {
|
|
564
564
|
var tmp0_subject = variant.length;
|
|
565
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;
|
|
566
566
|
};
|
|
567
|
-
protoOf(Companion).
|
|
568
|
-
var tmp0_elvis_lhs = this.
|
|
567
|
+
protoOf(Companion).g36 = function (string) {
|
|
568
|
+
var tmp0_elvis_lhs = this.c35_1.k2(toLowerCase_0(string));
|
|
569
569
|
var string_0 = tmp0_elvis_lhs == null ? string : tmp0_elvis_lhs;
|
|
570
570
|
var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).j();
|
|
571
571
|
var extlangs = null;
|
|
@@ -577,65 +577,65 @@
|
|
|
577
577
|
var variants = null;
|
|
578
578
|
var token;
|
|
579
579
|
token = tokens.l();
|
|
580
|
-
if (this.
|
|
581
|
-
language = this.
|
|
580
|
+
if (this.s35(token)) {
|
|
581
|
+
language = this.j35(token);
|
|
582
582
|
token = nextOrNull(tokens);
|
|
583
|
-
if (!(token == null) && this.
|
|
583
|
+
if (!(token == null) && this.w35(token)) {
|
|
584
584
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
585
585
|
extlangs = ArrayList_init_$Create$();
|
|
586
586
|
do {
|
|
587
|
-
extlangs.e(ensureNotNull(this.
|
|
587
|
+
extlangs.e(ensureNotNull(this.h35(token)));
|
|
588
588
|
token = nextOrNull(tokens);
|
|
589
589
|
}
|
|
590
|
-
while (!(token == null) && extlangs.m() < 3 && this.
|
|
590
|
+
while (!(token == null) && extlangs.m() < 3 && this.w35(token));
|
|
591
591
|
}
|
|
592
|
-
if (!(token == null) && this.
|
|
593
|
-
script = this.
|
|
592
|
+
if (!(token == null) && this.t35(token)) {
|
|
593
|
+
script = this.o35(token);
|
|
594
594
|
token = nextOrNull(tokens);
|
|
595
595
|
}
|
|
596
|
-
if (!(token == null) && this.
|
|
597
|
-
region = this.
|
|
596
|
+
if (!(token == null) && this.u35(token)) {
|
|
597
|
+
region = this.n35(token);
|
|
598
598
|
token = nextOrNull(tokens);
|
|
599
599
|
}
|
|
600
|
-
if (!(token == null) && this.
|
|
600
|
+
if (!(token == null) && this.v35(token)) {
|
|
601
601
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
602
602
|
variants = ArrayList_init_$Create$();
|
|
603
603
|
do {
|
|
604
|
-
variants.e(ensureNotNull(this.
|
|
604
|
+
variants.e(ensureNotNull(this.p35(token)));
|
|
605
605
|
token = nextOrNull(tokens);
|
|
606
606
|
}
|
|
607
|
-
while (!(token == null) && this.
|
|
607
|
+
while (!(token == null) && this.v35(token));
|
|
608
608
|
}
|
|
609
|
-
if (!(token == null) && this.
|
|
609
|
+
if (!(token == null) && this.a36(token)) {
|
|
610
610
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
611
611
|
extensions = ArrayList_init_$Create$();
|
|
612
612
|
do {
|
|
613
|
-
var extensionBuilder = new StringBuilder(ensureNotNull(this.
|
|
613
|
+
var extensionBuilder = new StringBuilder(ensureNotNull(this.e35(token)));
|
|
614
614
|
token = nextOrNull(tokens);
|
|
615
|
-
if (!(token == null) && this.
|
|
615
|
+
if (!(token == null) && this.b36(token)) {
|
|
616
616
|
do {
|
|
617
617
|
extensionBuilder.l8(_Char___init__impl__6a9atx(45));
|
|
618
|
-
extensionBuilder.k8(this.
|
|
618
|
+
extensionBuilder.k8(this.f35(token));
|
|
619
619
|
token = nextOrNull(tokens);
|
|
620
620
|
}
|
|
621
|
-
while (!(token == null) && this.
|
|
621
|
+
while (!(token == null) && this.b36(token));
|
|
622
622
|
} else
|
|
623
623
|
return null;
|
|
624
624
|
extensions.e(extensionBuilder.toString());
|
|
625
625
|
}
|
|
626
|
-
while (!(token == null) && this.
|
|
626
|
+
while (!(token == null) && this.a36(token));
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
if (!(token == null) && this.
|
|
630
|
-
var privateuseBuilder = new StringBuilder(ensureNotNull(this.
|
|
629
|
+
if (!(token == null) && this.e36(token)) {
|
|
630
|
+
var privateuseBuilder = new StringBuilder(ensureNotNull(this.l35(token)));
|
|
631
631
|
token = nextOrNull(tokens);
|
|
632
|
-
if (!(token == null) && this.
|
|
632
|
+
if (!(token == null) && this.f36(token)) {
|
|
633
633
|
do {
|
|
634
634
|
privateuseBuilder.l8(_Char___init__impl__6a9atx(45));
|
|
635
|
-
privateuseBuilder.k8(this.
|
|
635
|
+
privateuseBuilder.k8(this.m35(token));
|
|
636
636
|
token = nextOrNull(tokens);
|
|
637
637
|
}
|
|
638
|
-
while (!(token == null) && this.
|
|
638
|
+
while (!(token == null) && this.f36(token));
|
|
639
639
|
} else
|
|
640
640
|
return null;
|
|
641
641
|
privateuse = privateuseBuilder.toString();
|
|
@@ -665,13 +665,13 @@
|
|
|
665
665
|
}
|
|
666
666
|
function LanguageTag(extensions, extlangs, language, privateuse, region, script, variants) {
|
|
667
667
|
Companion_getInstance();
|
|
668
|
-
this.
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
668
|
+
this.h36_1 = extensions;
|
|
669
|
+
this.i36_1 = extlangs;
|
|
670
|
+
this.j36_1 = language;
|
|
671
|
+
this.k36_1 = privateuse;
|
|
672
|
+
this.l36_1 = region;
|
|
673
|
+
this.m36_1 = script;
|
|
674
|
+
this.n36_1 = variants;
|
|
675
675
|
}
|
|
676
676
|
protoOf(LanguageTag).equals = function (other) {
|
|
677
677
|
var tmp;
|
|
@@ -686,37 +686,37 @@
|
|
|
686
686
|
var tmp_5;
|
|
687
687
|
var tmp_6;
|
|
688
688
|
if (other instanceof LanguageTag) {
|
|
689
|
-
tmp_6 = equals_0(this.
|
|
689
|
+
tmp_6 = equals_0(this.h36_1, other.h36_1);
|
|
690
690
|
} else {
|
|
691
691
|
tmp_6 = false;
|
|
692
692
|
}
|
|
693
693
|
if (tmp_6) {
|
|
694
|
-
tmp_5 = equals_0(this.
|
|
694
|
+
tmp_5 = equals_0(this.i36_1, other.i36_1);
|
|
695
695
|
} else {
|
|
696
696
|
tmp_5 = false;
|
|
697
697
|
}
|
|
698
698
|
if (tmp_5) {
|
|
699
|
-
tmp_4 = this.
|
|
699
|
+
tmp_4 = this.j36_1 == other.j36_1;
|
|
700
700
|
} else {
|
|
701
701
|
tmp_4 = false;
|
|
702
702
|
}
|
|
703
703
|
if (tmp_4) {
|
|
704
|
-
tmp_3 = this.
|
|
704
|
+
tmp_3 = this.k36_1 == other.k36_1;
|
|
705
705
|
} else {
|
|
706
706
|
tmp_3 = false;
|
|
707
707
|
}
|
|
708
708
|
if (tmp_3) {
|
|
709
|
-
tmp_2 = this.
|
|
709
|
+
tmp_2 = this.l36_1 == other.l36_1;
|
|
710
710
|
} else {
|
|
711
711
|
tmp_2 = false;
|
|
712
712
|
}
|
|
713
713
|
if (tmp_2) {
|
|
714
|
-
tmp_1 = this.
|
|
714
|
+
tmp_1 = this.m36_1 == other.m36_1;
|
|
715
715
|
} else {
|
|
716
716
|
tmp_1 = false;
|
|
717
717
|
}
|
|
718
718
|
if (tmp_1) {
|
|
719
|
-
tmp_0 = equals_2(this.
|
|
719
|
+
tmp_0 = equals_2(this.n36_1, other.n36_1, true);
|
|
720
720
|
} else {
|
|
721
721
|
tmp_0 = false;
|
|
722
722
|
}
|
|
@@ -725,32 +725,32 @@
|
|
|
725
725
|
return tmp;
|
|
726
726
|
};
|
|
727
727
|
protoOf(LanguageTag).hashCode = function () {
|
|
728
|
-
var result = hashCode(this.
|
|
729
|
-
result = imul(31, result) + hashCode(this.
|
|
728
|
+
var result = hashCode(this.h36_1);
|
|
729
|
+
result = imul(31, result) + hashCode(this.i36_1) | 0;
|
|
730
730
|
var tmp = imul(31, result);
|
|
731
731
|
// Inline function 'kotlin.hashCode' call
|
|
732
|
-
var tmp0_safe_receiver = this.
|
|
732
|
+
var tmp0_safe_receiver = this.j36_1;
|
|
733
733
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
734
734
|
result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
735
735
|
var tmp_0 = imul(31, result);
|
|
736
736
|
// Inline function 'kotlin.hashCode' call
|
|
737
|
-
var tmp0_safe_receiver_0 = this.
|
|
737
|
+
var tmp0_safe_receiver_0 = this.k36_1;
|
|
738
738
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
739
739
|
result = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
|
|
740
740
|
var tmp_1 = imul(31, result);
|
|
741
741
|
// Inline function 'kotlin.hashCode' call
|
|
742
|
-
var tmp0_safe_receiver_1 = this.
|
|
742
|
+
var tmp0_safe_receiver_1 = this.l36_1;
|
|
743
743
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
744
744
|
result = tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
|
|
745
745
|
var tmp_2 = imul(31, result);
|
|
746
746
|
// Inline function 'kotlin.hashCode' call
|
|
747
|
-
var tmp0_safe_receiver_2 = this.
|
|
747
|
+
var tmp0_safe_receiver_2 = this.m36_1;
|
|
748
748
|
var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
|
|
749
749
|
result = tmp_2 + (tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2) | 0;
|
|
750
750
|
var tmp_3 = imul(31, result);
|
|
751
751
|
// Inline function 'kotlin.hashCode' call
|
|
752
752
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
753
|
-
var this_0 = this.
|
|
753
|
+
var this_0 = this.n36_1;
|
|
754
754
|
// Inline function 'kotlin.contracts.contract' call
|
|
755
755
|
var tmp_4;
|
|
756
756
|
if (this_0.p()) {
|
|
@@ -787,60 +787,60 @@
|
|
|
787
787
|
var this_0 = StringBuilder_init_$Create$();
|
|
788
788
|
// Inline function 'kotlin.contracts.contract' call
|
|
789
789
|
// Inline function 'io.fluidsonic.locale.LanguageTag.toString.<anonymous>' call
|
|
790
|
-
if (!(this.
|
|
791
|
-
this_0.k8(this.
|
|
792
|
-
var tmp0_iterator = this.
|
|
790
|
+
if (!(this.j36_1 == null)) {
|
|
791
|
+
this_0.k8(this.j36_1);
|
|
792
|
+
var tmp0_iterator = this.i36_1.j();
|
|
793
793
|
while (tmp0_iterator.k()) {
|
|
794
794
|
var extlang = tmp0_iterator.l();
|
|
795
795
|
this_0.l8(_Char___init__impl__6a9atx(45));
|
|
796
796
|
this_0.k8(extlang);
|
|
797
797
|
}
|
|
798
|
-
if (!(this.
|
|
798
|
+
if (!(this.m36_1 == null)) {
|
|
799
799
|
this_0.l8(_Char___init__impl__6a9atx(45));
|
|
800
|
-
this_0.k8(this.
|
|
800
|
+
this_0.k8(this.m36_1);
|
|
801
801
|
}
|
|
802
|
-
if (!(this.
|
|
802
|
+
if (!(this.l36_1 == null)) {
|
|
803
803
|
this_0.l8(_Char___init__impl__6a9atx(45));
|
|
804
|
-
this_0.k8(this.
|
|
804
|
+
this_0.k8(this.l36_1);
|
|
805
805
|
}
|
|
806
|
-
var tmp1_iterator = this.
|
|
806
|
+
var tmp1_iterator = this.n36_1.j();
|
|
807
807
|
while (tmp1_iterator.k()) {
|
|
808
808
|
var variant = tmp1_iterator.l();
|
|
809
809
|
this_0.l8(_Char___init__impl__6a9atx(45));
|
|
810
810
|
this_0.k8(variant);
|
|
811
811
|
}
|
|
812
|
-
var tmp2_iterator = this.
|
|
812
|
+
var tmp2_iterator = this.h36_1.j();
|
|
813
813
|
while (tmp2_iterator.k()) {
|
|
814
814
|
var extension = tmp2_iterator.l();
|
|
815
815
|
this_0.l8(_Char___init__impl__6a9atx(45));
|
|
816
816
|
this_0.k8(extension);
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
if (!(this.
|
|
819
|
+
if (!(this.k36_1 == null)) {
|
|
820
820
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
821
821
|
if (charSequenceLength(this_0) > 0) {
|
|
822
822
|
this_0.l8(_Char___init__impl__6a9atx(45));
|
|
823
823
|
}
|
|
824
|
-
this_0.k8(this.
|
|
824
|
+
this_0.k8(this.k36_1);
|
|
825
825
|
}
|
|
826
826
|
return this_0.toString();
|
|
827
827
|
};
|
|
828
828
|
function Companion_0() {
|
|
829
829
|
Companion_instance_0 = this;
|
|
830
|
-
this.
|
|
830
|
+
this.o36_1 = new Locale(Companion_getInstance().z35('und'));
|
|
831
831
|
}
|
|
832
|
-
protoOf(Companion_0).
|
|
833
|
-
return tag.equals(this.
|
|
832
|
+
protoOf(Companion_0).p36 = function (tag) {
|
|
833
|
+
return tag.equals(this.o36_1.q36_1) ? this.o36_1 : new Locale(tag);
|
|
834
834
|
};
|
|
835
|
-
protoOf(Companion_0).
|
|
836
|
-
var tmp0_safe_receiver = Companion_getInstance().
|
|
835
|
+
protoOf(Companion_0).r36 = function (tag) {
|
|
836
|
+
var tmp0_safe_receiver = Companion_getInstance().g36(tag);
|
|
837
837
|
var tmp;
|
|
838
838
|
if (tmp0_safe_receiver == null) {
|
|
839
839
|
tmp = null;
|
|
840
840
|
} else {
|
|
841
841
|
// Inline function 'kotlin.let' call
|
|
842
842
|
// Inline function 'kotlin.contracts.contract' call
|
|
843
|
-
tmp = this.
|
|
843
|
+
tmp = this.p36(tmp0_safe_receiver);
|
|
844
844
|
}
|
|
845
845
|
return tmp;
|
|
846
846
|
};
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
}
|
|
853
853
|
function Locale(languageTag) {
|
|
854
854
|
Companion_getInstance_0();
|
|
855
|
-
this.
|
|
855
|
+
this.q36_1 = languageTag;
|
|
856
856
|
}
|
|
857
857
|
protoOf(Locale).equals = function (other) {
|
|
858
858
|
var tmp;
|
|
@@ -861,7 +861,7 @@
|
|
|
861
861
|
} else {
|
|
862
862
|
var tmp_0;
|
|
863
863
|
if (other instanceof Locale) {
|
|
864
|
-
tmp_0 = this.
|
|
864
|
+
tmp_0 = this.q36_1.equals(other.q36_1);
|
|
865
865
|
} else {
|
|
866
866
|
tmp_0 = false;
|
|
867
867
|
}
|
|
@@ -870,10 +870,10 @@
|
|
|
870
870
|
return tmp;
|
|
871
871
|
};
|
|
872
872
|
protoOf(Locale).hashCode = function () {
|
|
873
|
-
return this.
|
|
873
|
+
return this.q36_1.hashCode();
|
|
874
874
|
};
|
|
875
875
|
protoOf(Locale).toString = function () {
|
|
876
|
-
return this.
|
|
876
|
+
return this.q36_1.toString();
|
|
877
877
|
};
|
|
878
878
|
function isAlphaNumeric(_this__u8e3s4) {
|
|
879
879
|
return isAlpha(_this__u8e3s4) || isNumeric(_this__u8e3s4);
|