@cruglobal/godtools-shared 0.9.0-SNAPSHOT.1150 → 0.9.0-SNAPSHOT.1153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/88b0986a7186d029-atomicfu-js-ir.js +8 -8
- package/Napier-napier-js-ir.js +27 -27
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +2917 -2917
- package/colormath-root-colormath-js-ir.js +460 -460
- package/colormath-root-colormath-js-ir.js.map +1 -1
- package/fluid-locale-js-ir.js +131 -131
- package/kotlin-kotlin-stdlib-js-ir.js +109 -99
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-npm.d.ts +52 -2
- package/kotlin-mpp-godtools-tool-parser-parser-expressions.js +297 -297
- package/kotlin-mpp-godtools-tool-parser-parser.js +2064 -1639
- package/kotlin-mpp-godtools-tool-parser-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-state.js +217 -217
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1768 -1768
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
package/fluid-locale-js-ir.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.o1;
|
|
17
|
-
var to = kotlin_kotlin.$_$.
|
|
17
|
+
var to = kotlin_kotlin.$_$.z8;
|
|
18
18
|
var hashMapOf = kotlin_kotlin.$_$.j3;
|
|
19
19
|
var charSequenceLength = kotlin_kotlin.$_$.i5;
|
|
20
20
|
var Unit_getInstance = kotlin_kotlin.$_$.i2;
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
var emptyList = kotlin_kotlin.$_$.b3;
|
|
25
25
|
var toString = kotlin_kotlin.$_$.i6;
|
|
26
26
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
27
|
-
var VOID = kotlin_kotlin.$_$.
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.b9;
|
|
28
28
|
var charArrayOf = kotlin_kotlin.$_$.g5;
|
|
29
29
|
var splitToSequence = kotlin_kotlin.$_$.g7;
|
|
30
30
|
var charSequenceGet = kotlin_kotlin.$_$.h5;
|
|
31
31
|
var equals = kotlin_kotlin.$_$.a7;
|
|
32
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
32
|
+
var ensureNotNull = kotlin_kotlin.$_$.s8;
|
|
33
33
|
var StringBuilder = kotlin_kotlin.$_$.v6;
|
|
34
34
|
var objectMeta = kotlin_kotlin.$_$.d6;
|
|
35
35
|
var setMetadataFor = kotlin_kotlin.$_$.f6;
|
|
@@ -53,16 +53,16 @@
|
|
|
53
53
|
setMetadataFor(Locale, 'Locale', classMeta);
|
|
54
54
|
//endregion
|
|
55
55
|
function toPlatform(_this__u8e3s4) {
|
|
56
|
-
return new Intl.Locale(_this__u8e3s4.
|
|
56
|
+
return new Intl.Locale(_this__u8e3s4.f2k().toString());
|
|
57
57
|
}
|
|
58
58
|
function Companion() {
|
|
59
59
|
Companion_instance = this;
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
60
|
+
this.g2k_1 = _Char___init__impl__6a9atx(120);
|
|
61
|
+
this.h2k_1 = _Char___init__impl__6a9atx(45);
|
|
62
|
+
this.i2k_1 = 'und';
|
|
63
|
+
this.j2k_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')]);
|
|
64
64
|
}
|
|
65
|
-
protoOf(Companion).
|
|
65
|
+
protoOf(Companion).k2k = function (extension) {
|
|
66
66
|
var tmp0_safe_receiver = extension;
|
|
67
67
|
var tmp;
|
|
68
68
|
if (tmp0_safe_receiver == null) {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
var tmp1_safe_receiver = tmp;
|
|
89
89
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
90
90
|
};
|
|
91
|
-
protoOf(Companion).
|
|
91
|
+
protoOf(Companion).l2k = function (singleton) {
|
|
92
92
|
var tmp0_safe_receiver = singleton;
|
|
93
93
|
var tmp;
|
|
94
94
|
if (tmp0_safe_receiver == null) {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
var tmp1_safe_receiver = tmp;
|
|
115
115
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
116
116
|
};
|
|
117
|
-
protoOf(Companion).
|
|
117
|
+
protoOf(Companion).m2k = function (subtag) {
|
|
118
118
|
var tmp0_safe_receiver = subtag;
|
|
119
119
|
var tmp;
|
|
120
120
|
if (tmp0_safe_receiver == null) {
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
var tmp1_safe_receiver = tmp;
|
|
141
141
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
142
142
|
};
|
|
143
|
-
protoOf(Companion).
|
|
143
|
+
protoOf(Companion).n2k = function (extensions) {
|
|
144
144
|
var tmp$ret$5;
|
|
145
145
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
146
146
|
var tmp$ret$1;
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
while (tmp0_iterator.g()) {
|
|
171
171
|
var element = tmp0_iterator.h();
|
|
172
172
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
173
|
-
var tmp0_safe_receiver_0 = this.
|
|
173
|
+
var tmp0_safe_receiver_0 = this.k2k(element);
|
|
174
174
|
if (tmp0_safe_receiver_0 == null)
|
|
175
175
|
null;
|
|
176
176
|
else {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
192
192
|
return tmp$ret$5;
|
|
193
193
|
};
|
|
194
|
-
protoOf(Companion).
|
|
194
|
+
protoOf(Companion).o2k = function (extlang) {
|
|
195
195
|
var tmp0_safe_receiver = extlang;
|
|
196
196
|
var tmp;
|
|
197
197
|
if (tmp0_safe_receiver == null) {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
var tmp1_safe_receiver = tmp;
|
|
218
218
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
219
219
|
};
|
|
220
|
-
protoOf(Companion).
|
|
220
|
+
protoOf(Companion).p2k = function (extlangs) {
|
|
221
221
|
var tmp$ret$5;
|
|
222
222
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
223
223
|
var tmp$ret$1;
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
while (tmp0_iterator.g()) {
|
|
248
248
|
var element = tmp0_iterator.h();
|
|
249
249
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
250
|
-
var tmp0_safe_receiver_0 = this.
|
|
250
|
+
var tmp0_safe_receiver_0 = this.o2k(element);
|
|
251
251
|
if (tmp0_safe_receiver_0 == null)
|
|
252
252
|
null;
|
|
253
253
|
else {
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
268
268
|
return tmp$ret$5;
|
|
269
269
|
};
|
|
270
|
-
protoOf(Companion).
|
|
270
|
+
protoOf(Companion).q2k = function (language) {
|
|
271
271
|
var tmp0_safe_receiver = language;
|
|
272
272
|
var tmp;
|
|
273
273
|
if (tmp0_safe_receiver == null) {
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
var tmp1_safe_receiver = tmp;
|
|
294
294
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
295
295
|
};
|
|
296
|
-
protoOf(Companion).
|
|
296
|
+
protoOf(Companion).r2k = function (privateuse) {
|
|
297
297
|
var tmp0_safe_receiver = privateuse;
|
|
298
298
|
var tmp;
|
|
299
299
|
if (tmp0_safe_receiver == null) {
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
var tmp1_safe_receiver = tmp;
|
|
320
320
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
321
321
|
};
|
|
322
|
-
protoOf(Companion).
|
|
322
|
+
protoOf(Companion).s2k = function (prefix) {
|
|
323
323
|
var tmp0_safe_receiver = prefix;
|
|
324
324
|
var tmp;
|
|
325
325
|
if (tmp0_safe_receiver == null) {
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
var tmp1_safe_receiver = tmp;
|
|
346
346
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
347
347
|
};
|
|
348
|
-
protoOf(Companion).
|
|
348
|
+
protoOf(Companion).t2k = function (subtag) {
|
|
349
349
|
var tmp0_safe_receiver = subtag;
|
|
350
350
|
var tmp;
|
|
351
351
|
if (tmp0_safe_receiver == null) {
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
var tmp1_safe_receiver = tmp;
|
|
372
372
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
373
373
|
};
|
|
374
|
-
protoOf(Companion).
|
|
374
|
+
protoOf(Companion).u2k = function (region) {
|
|
375
375
|
var tmp0_safe_receiver = region;
|
|
376
376
|
var tmp;
|
|
377
377
|
if (tmp0_safe_receiver == null) {
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
var tmp1_safe_receiver = tmp;
|
|
398
398
|
return tmp1_safe_receiver == null ? null : toUpperCase_0(tmp1_safe_receiver);
|
|
399
399
|
};
|
|
400
|
-
protoOf(Companion).
|
|
400
|
+
protoOf(Companion).v2k = function (script) {
|
|
401
401
|
var tmp0_safe_receiver = script;
|
|
402
402
|
var tmp;
|
|
403
403
|
if (tmp0_safe_receiver == null) {
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
var tmp1_safe_receiver = tmp;
|
|
424
424
|
return tmp1_safe_receiver == null ? null : toUppercaseFirstLowercaseRest(tmp1_safe_receiver);
|
|
425
425
|
};
|
|
426
|
-
protoOf(Companion).
|
|
426
|
+
protoOf(Companion).w2k = function (variant) {
|
|
427
427
|
var tmp0_safe_receiver = variant;
|
|
428
428
|
var tmp;
|
|
429
429
|
if (tmp0_safe_receiver == null) {
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
}
|
|
449
449
|
return tmp;
|
|
450
450
|
};
|
|
451
|
-
protoOf(Companion).
|
|
451
|
+
protoOf(Companion).x2k = function (variants) {
|
|
452
452
|
var tmp$ret$5;
|
|
453
453
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
454
454
|
var tmp$ret$1;
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
while (tmp0_iterator.g()) {
|
|
479
479
|
var element = tmp0_iterator.h();
|
|
480
480
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
481
|
-
var tmp0_safe_receiver_0 = this.
|
|
481
|
+
var tmp0_safe_receiver_0 = this.w2k(element);
|
|
482
482
|
if (tmp0_safe_receiver_0 == null)
|
|
483
483
|
null;
|
|
484
484
|
else {
|
|
@@ -498,16 +498,16 @@
|
|
|
498
498
|
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
499
499
|
return tmp$ret$5;
|
|
500
500
|
};
|
|
501
|
-
protoOf(Companion).
|
|
502
|
-
var canonicalLanguage = this.
|
|
503
|
-
var canonicalScript = this.
|
|
504
|
-
var canonicalRegion = this.
|
|
505
|
-
var canonicalVariants = this.
|
|
506
|
-
var canonicalExtlangs = this.
|
|
507
|
-
var canonicalExtensions = this.
|
|
508
|
-
var canonicalPrivateuse = this.
|
|
501
|
+
protoOf(Companion).y2k = function (language, script, region, variants, extlangs, extensions, privateuse) {
|
|
502
|
+
var canonicalLanguage = this.q2k(language);
|
|
503
|
+
var canonicalScript = this.v2k(script);
|
|
504
|
+
var canonicalRegion = this.u2k(region);
|
|
505
|
+
var canonicalVariants = this.x2k(variants);
|
|
506
|
+
var canonicalExtlangs = this.p2k(extlangs);
|
|
507
|
+
var canonicalExtensions = this.n2k(extensions);
|
|
508
|
+
var canonicalPrivateuse = this.r2k(privateuse);
|
|
509
509
|
// Inline function 'kotlin.require' call
|
|
510
|
-
var tmp0_require = !(canonicalLanguage == null) ? this.
|
|
510
|
+
var tmp0_require = !(canonicalLanguage == null) ? this.z2k(canonicalLanguage) : false;
|
|
511
511
|
// Inline function 'kotlin.contracts.contract' call
|
|
512
512
|
if (!tmp0_require) {
|
|
513
513
|
var tmp$ret$0;
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
518
518
|
}
|
|
519
519
|
// Inline function 'kotlin.require' call
|
|
520
|
-
var tmp1_require = canonicalScript == null ? true : this.
|
|
520
|
+
var tmp1_require = canonicalScript == null ? true : this.a2l(canonicalScript);
|
|
521
521
|
// Inline function 'kotlin.contracts.contract' call
|
|
522
522
|
if (!tmp1_require) {
|
|
523
523
|
var tmp$ret$1;
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
528
528
|
}
|
|
529
529
|
// Inline function 'kotlin.require' call
|
|
530
|
-
var tmp2_require = canonicalRegion == null ? true : this.
|
|
530
|
+
var tmp2_require = canonicalRegion == null ? true : this.b2l(canonicalRegion);
|
|
531
531
|
// Inline function 'kotlin.contracts.contract' call
|
|
532
532
|
if (!tmp2_require) {
|
|
533
533
|
var tmp$ret$2;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
while (tmp0_iterator.g()) {
|
|
541
541
|
var variant = tmp0_iterator.h();
|
|
542
542
|
// Inline function 'kotlin.require' call
|
|
543
|
-
var tmp3_require = this.
|
|
543
|
+
var tmp3_require = this.c2l(variant);
|
|
544
544
|
// Inline function 'kotlin.contracts.contract' call
|
|
545
545
|
if (!tmp3_require) {
|
|
546
546
|
var tmp$ret$3;
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
while (tmp1_iterator.g()) {
|
|
555
555
|
var extlang = tmp1_iterator.h();
|
|
556
556
|
// Inline function 'kotlin.require' call
|
|
557
|
-
var tmp4_require = this.
|
|
557
|
+
var tmp4_require = this.d2l(extlang);
|
|
558
558
|
// Inline function 'kotlin.contracts.contract' call
|
|
559
559
|
if (!tmp4_require) {
|
|
560
560
|
var tmp$ret$4;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
while (tmp2_iterator.g()) {
|
|
569
569
|
var extension = tmp2_iterator.h();
|
|
570
570
|
// Inline function 'kotlin.require' call
|
|
571
|
-
var tmp5_require = this.
|
|
571
|
+
var tmp5_require = this.e2l(extension);
|
|
572
572
|
// Inline function 'kotlin.contracts.contract' call
|
|
573
573
|
if (!tmp5_require) {
|
|
574
574
|
var tmp$ret$5;
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
// Inline function 'kotlin.require' call
|
|
582
|
-
var tmp6_require = canonicalPrivateuse == null ? true : this.
|
|
582
|
+
var tmp6_require = canonicalPrivateuse == null ? true : this.f2l(canonicalPrivateuse);
|
|
583
583
|
// Inline function 'kotlin.contracts.contract' call
|
|
584
584
|
if (!tmp6_require) {
|
|
585
585
|
var tmp$ret$6;
|
|
@@ -590,18 +590,18 @@
|
|
|
590
590
|
}
|
|
591
591
|
return new LanguageTag(canonicalExtensions, canonicalExtlangs, canonicalLanguage, canonicalPrivateuse, canonicalRegion, canonicalScript, canonicalVariants);
|
|
592
592
|
};
|
|
593
|
-
protoOf(Companion).
|
|
593
|
+
protoOf(Companion).g2l = function (language, script, region, variants, extlangs, extensions, privateuse, $super) {
|
|
594
594
|
script = script === VOID ? null : script;
|
|
595
595
|
region = region === VOID ? null : region;
|
|
596
596
|
variants = variants === VOID ? emptyList() : variants;
|
|
597
597
|
extlangs = extlangs === VOID ? emptyList() : extlangs;
|
|
598
598
|
extensions = extensions === VOID ? emptyList() : extensions;
|
|
599
599
|
privateuse = privateuse === VOID ? null : privateuse;
|
|
600
|
-
return $super === VOID ? this.
|
|
600
|
+
return $super === VOID ? this.y2k(language, script, region, variants, extlangs, extensions, privateuse) : $super.y2k.call(this, language, script, region, variants, extlangs, extensions, privateuse);
|
|
601
601
|
};
|
|
602
|
-
protoOf(Companion).
|
|
602
|
+
protoOf(Companion).e2l = function (extension) {
|
|
603
603
|
var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
604
|
-
if (!this.
|
|
604
|
+
if (!this.h2l(tokens.h()))
|
|
605
605
|
return false;
|
|
606
606
|
if (!tokens.g())
|
|
607
607
|
return false;
|
|
@@ -611,18 +611,18 @@
|
|
|
611
611
|
var tmp0_iterator = tmp$ret$0;
|
|
612
612
|
while (tmp0_iterator.g()) {
|
|
613
613
|
var token = tmp0_iterator.h();
|
|
614
|
-
if (!this.
|
|
614
|
+
if (!this.i2l(token))
|
|
615
615
|
return false;
|
|
616
616
|
}
|
|
617
617
|
return true;
|
|
618
618
|
};
|
|
619
|
-
protoOf(Companion).
|
|
620
|
-
return isAlphaNumeric(singleton) ? !this.
|
|
619
|
+
protoOf(Companion).j2l = function (singleton) {
|
|
620
|
+
return isAlphaNumeric(singleton) ? !this.k2l(singleton) : false;
|
|
621
621
|
};
|
|
622
|
-
protoOf(Companion).
|
|
623
|
-
return singleton.length === 1 ? this.
|
|
622
|
+
protoOf(Companion).h2l = function (singleton) {
|
|
623
|
+
return singleton.length === 1 ? this.j2l(charSequenceGet(singleton, 0)) : false;
|
|
624
624
|
};
|
|
625
|
-
protoOf(Companion).
|
|
625
|
+
protoOf(Companion).i2l = function (extension) {
|
|
626
626
|
var tmp;
|
|
627
627
|
var containsArg = extension.length;
|
|
628
628
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -632,10 +632,10 @@
|
|
|
632
632
|
}
|
|
633
633
|
return tmp;
|
|
634
634
|
};
|
|
635
|
-
protoOf(Companion).
|
|
635
|
+
protoOf(Companion).d2l = function (extlang) {
|
|
636
636
|
return extlang.length === 3 ? isAlpha_0(extlang) : false;
|
|
637
637
|
};
|
|
638
|
-
protoOf(Companion).
|
|
638
|
+
protoOf(Companion).z2k = function (language) {
|
|
639
639
|
var tmp;
|
|
640
640
|
var containsArg = language.length;
|
|
641
641
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -645,9 +645,9 @@
|
|
|
645
645
|
}
|
|
646
646
|
return tmp;
|
|
647
647
|
};
|
|
648
|
-
protoOf(Companion).
|
|
648
|
+
protoOf(Companion).f2l = function (privateuse) {
|
|
649
649
|
var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
650
|
-
if (!this.
|
|
650
|
+
if (!this.l2l(tokens.h()))
|
|
651
651
|
return false;
|
|
652
652
|
if (!tokens.g())
|
|
653
653
|
return false;
|
|
@@ -657,18 +657,18 @@
|
|
|
657
657
|
var tmp0_iterator = tmp$ret$0;
|
|
658
658
|
while (tmp0_iterator.g()) {
|
|
659
659
|
var token = tmp0_iterator.h();
|
|
660
|
-
if (!this.
|
|
660
|
+
if (!this.m2l(token))
|
|
661
661
|
return false;
|
|
662
662
|
}
|
|
663
663
|
return true;
|
|
664
664
|
};
|
|
665
|
-
protoOf(Companion).
|
|
665
|
+
protoOf(Companion).k2l = function (prefix) {
|
|
666
666
|
return equals(prefix, _Char___init__impl__6a9atx(120), true);
|
|
667
667
|
};
|
|
668
|
-
protoOf(Companion).
|
|
669
|
-
return prefix.length === 1 ? this.
|
|
668
|
+
protoOf(Companion).l2l = function (prefix) {
|
|
669
|
+
return prefix.length === 1 ? this.k2l(charSequenceGet(prefix, 0)) : false;
|
|
670
670
|
};
|
|
671
|
-
protoOf(Companion).
|
|
671
|
+
protoOf(Companion).m2l = function (privateuse) {
|
|
672
672
|
var tmp;
|
|
673
673
|
var containsArg = privateuse.length;
|
|
674
674
|
if (1 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
}
|
|
679
679
|
return tmp;
|
|
680
680
|
};
|
|
681
|
-
protoOf(Companion).
|
|
681
|
+
protoOf(Companion).b2l = function (region) {
|
|
682
682
|
var tmp0_subject = region.length;
|
|
683
683
|
switch (tmp0_subject) {
|
|
684
684
|
case 2:
|
|
@@ -689,15 +689,15 @@
|
|
|
689
689
|
return false;
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
|
-
protoOf(Companion).
|
|
692
|
+
protoOf(Companion).a2l = function (script) {
|
|
693
693
|
return script.length === 4 ? isAlpha_0(script) : false;
|
|
694
694
|
};
|
|
695
|
-
protoOf(Companion).
|
|
695
|
+
protoOf(Companion).c2l = function (variant) {
|
|
696
696
|
var tmp0_subject = variant.length;
|
|
697
697
|
return tmp0_subject === 4 ? ((isNumeric(charSequenceGet(variant, 0)) ? isAlphaNumeric(charSequenceGet(variant, 1)) : false) ? isAlphaNumeric(charSequenceGet(variant, 2)) : false) ? isAlphaNumeric(charSequenceGet(variant, 3)) : false : (5 <= tmp0_subject ? tmp0_subject <= 8 : false) ? isAlphaNumeric_0(variant) : false;
|
|
698
698
|
};
|
|
699
|
-
protoOf(Companion).
|
|
700
|
-
var tmp0_elvis_lhs = this.
|
|
699
|
+
protoOf(Companion).n2l = function (string) {
|
|
700
|
+
var tmp0_elvis_lhs = this.j2k_1.c2(toLowerCase_0(string));
|
|
701
701
|
var string_0 = tmp0_elvis_lhs == null ? string : tmp0_elvis_lhs;
|
|
702
702
|
var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
703
703
|
var extlangs = null;
|
|
@@ -709,71 +709,71 @@
|
|
|
709
709
|
var variants = null;
|
|
710
710
|
var token;
|
|
711
711
|
token = tokens.h();
|
|
712
|
-
if (this.
|
|
713
|
-
language = this.
|
|
712
|
+
if (this.z2k(token)) {
|
|
713
|
+
language = this.q2k(token);
|
|
714
714
|
token = nextOrNull(tokens);
|
|
715
|
-
if (!(token == null) ? this.
|
|
715
|
+
if (!(token == null) ? this.d2l(token) : false) {
|
|
716
716
|
var tmp$ret$0;
|
|
717
717
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
718
718
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
719
719
|
extlangs = tmp$ret$0;
|
|
720
720
|
do {
|
|
721
|
-
extlangs.b(ensureNotNull(this.
|
|
721
|
+
extlangs.b(ensureNotNull(this.o2k(token)));
|
|
722
722
|
token = nextOrNull(tokens);
|
|
723
723
|
}
|
|
724
|
-
while ((!(token == null) ? extlangs.i() < 3 : false) ? this.
|
|
725
|
-
}
|
|
726
|
-
if (!(token == null) ? this.z2k(token) : false) {
|
|
727
|
-
script = this.u2k(token);
|
|
728
|
-
token = nextOrNull(tokens);
|
|
724
|
+
while ((!(token == null) ? extlangs.i() < 3 : false) ? this.d2l(token) : false);
|
|
729
725
|
}
|
|
730
726
|
if (!(token == null) ? this.a2l(token) : false) {
|
|
731
|
-
|
|
727
|
+
script = this.v2k(token);
|
|
732
728
|
token = nextOrNull(tokens);
|
|
733
729
|
}
|
|
734
730
|
if (!(token == null) ? this.b2l(token) : false) {
|
|
731
|
+
region = this.u2k(token);
|
|
732
|
+
token = nextOrNull(tokens);
|
|
733
|
+
}
|
|
734
|
+
if (!(token == null) ? this.c2l(token) : false) {
|
|
735
735
|
var tmp$ret$1;
|
|
736
736
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
737
737
|
tmp$ret$1 = ArrayList_init_$Create$();
|
|
738
738
|
variants = tmp$ret$1;
|
|
739
739
|
do {
|
|
740
|
-
variants.b(ensureNotNull(this.
|
|
740
|
+
variants.b(ensureNotNull(this.w2k(token)));
|
|
741
741
|
token = nextOrNull(tokens);
|
|
742
742
|
}
|
|
743
|
-
while (!(token == null) ? this.
|
|
743
|
+
while (!(token == null) ? this.c2l(token) : false);
|
|
744
744
|
}
|
|
745
|
-
if (!(token == null) ? this.
|
|
745
|
+
if (!(token == null) ? this.h2l(token) : false) {
|
|
746
746
|
var tmp$ret$2;
|
|
747
747
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
748
748
|
tmp$ret$2 = ArrayList_init_$Create$();
|
|
749
749
|
extensions = tmp$ret$2;
|
|
750
750
|
do {
|
|
751
|
-
var extensionBuilder = new StringBuilder(ensureNotNull(this.
|
|
751
|
+
var extensionBuilder = new StringBuilder(ensureNotNull(this.l2k(token)));
|
|
752
752
|
token = nextOrNull(tokens);
|
|
753
|
-
if (!(token == null) ? this.
|
|
753
|
+
if (!(token == null) ? this.i2l(token) : false) {
|
|
754
754
|
do {
|
|
755
755
|
extensionBuilder.v4(_Char___init__impl__6a9atx(45));
|
|
756
|
-
extensionBuilder.ib(this.
|
|
756
|
+
extensionBuilder.ib(this.m2k(token));
|
|
757
757
|
token = nextOrNull(tokens);
|
|
758
758
|
}
|
|
759
|
-
while (!(token == null) ? this.
|
|
759
|
+
while (!(token == null) ? this.i2l(token) : false);
|
|
760
760
|
} else
|
|
761
761
|
return null;
|
|
762
762
|
extensions.b(extensionBuilder.toString());
|
|
763
763
|
}
|
|
764
|
-
while (!(token == null) ? this.
|
|
764
|
+
while (!(token == null) ? this.h2l(token) : false);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
if (!(token == null) ? this.
|
|
768
|
-
var privateuseBuilder = new StringBuilder(ensureNotNull(this.
|
|
767
|
+
if (!(token == null) ? this.l2l(token) : false) {
|
|
768
|
+
var privateuseBuilder = new StringBuilder(ensureNotNull(this.s2k(token)));
|
|
769
769
|
token = nextOrNull(tokens);
|
|
770
|
-
if (!(token == null) ? this.
|
|
770
|
+
if (!(token == null) ? this.m2l(token) : false) {
|
|
771
771
|
do {
|
|
772
772
|
privateuseBuilder.v4(_Char___init__impl__6a9atx(45));
|
|
773
|
-
privateuseBuilder.ib(this.
|
|
773
|
+
privateuseBuilder.ib(this.t2k(token));
|
|
774
774
|
token = nextOrNull(tokens);
|
|
775
775
|
}
|
|
776
|
-
while (!(token == null) ? this.
|
|
776
|
+
while (!(token == null) ? this.m2l(token) : false);
|
|
777
777
|
} else
|
|
778
778
|
return null;
|
|
779
779
|
privateuse = privateuseBuilder.toString();
|
|
@@ -811,13 +811,13 @@
|
|
|
811
811
|
}
|
|
812
812
|
function LanguageTag(extensions, extlangs, language, privateuse, region, script, variants) {
|
|
813
813
|
Companion_getInstance();
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
814
|
+
this.o2l_1 = extensions;
|
|
815
|
+
this.p2l_1 = extlangs;
|
|
816
|
+
this.q2l_1 = language;
|
|
817
|
+
this.r2l_1 = privateuse;
|
|
818
|
+
this.s2l_1 = region;
|
|
819
|
+
this.t2l_1 = script;
|
|
820
|
+
this.u2l_1 = variants;
|
|
821
821
|
var tmp$ret$0;
|
|
822
822
|
// Inline function 'io.fluidsonic.locale.freeze' call
|
|
823
823
|
tmp$ret$0 = Unit_getInstance();
|
|
@@ -835,37 +835,37 @@
|
|
|
835
835
|
var tmp_5;
|
|
836
836
|
var tmp_6;
|
|
837
837
|
if (other instanceof LanguageTag) {
|
|
838
|
-
tmp_6 = equals_0(this.
|
|
838
|
+
tmp_6 = equals_0(this.o2l_1, other.o2l_1);
|
|
839
839
|
} else {
|
|
840
840
|
tmp_6 = false;
|
|
841
841
|
}
|
|
842
842
|
if (tmp_6) {
|
|
843
|
-
tmp_5 = equals_0(this.
|
|
843
|
+
tmp_5 = equals_0(this.p2l_1, other.p2l_1);
|
|
844
844
|
} else {
|
|
845
845
|
tmp_5 = false;
|
|
846
846
|
}
|
|
847
847
|
if (tmp_5) {
|
|
848
|
-
tmp_4 = this.
|
|
848
|
+
tmp_4 = this.q2l_1 == other.q2l_1;
|
|
849
849
|
} else {
|
|
850
850
|
tmp_4 = false;
|
|
851
851
|
}
|
|
852
852
|
if (tmp_4) {
|
|
853
|
-
tmp_3 = this.
|
|
853
|
+
tmp_3 = this.r2l_1 == other.r2l_1;
|
|
854
854
|
} else {
|
|
855
855
|
tmp_3 = false;
|
|
856
856
|
}
|
|
857
857
|
if (tmp_3) {
|
|
858
|
-
tmp_2 = this.
|
|
858
|
+
tmp_2 = this.s2l_1 == other.s2l_1;
|
|
859
859
|
} else {
|
|
860
860
|
tmp_2 = false;
|
|
861
861
|
}
|
|
862
862
|
if (tmp_2) {
|
|
863
|
-
tmp_1 = this.
|
|
863
|
+
tmp_1 = this.t2l_1 == other.t2l_1;
|
|
864
864
|
} else {
|
|
865
865
|
tmp_1 = false;
|
|
866
866
|
}
|
|
867
867
|
if (tmp_1) {
|
|
868
|
-
tmp_0 = equals_2(this.
|
|
868
|
+
tmp_0 = equals_2(this.u2l_1, other.u2l_1, true);
|
|
869
869
|
} else {
|
|
870
870
|
tmp_0 = false;
|
|
871
871
|
}
|
|
@@ -874,12 +874,12 @@
|
|
|
874
874
|
return tmp;
|
|
875
875
|
};
|
|
876
876
|
protoOf(LanguageTag).hashCode = function () {
|
|
877
|
-
var result = hashCode(this.
|
|
878
|
-
result = imul(31, result) + hashCode(this.
|
|
877
|
+
var result = hashCode(this.o2l_1);
|
|
878
|
+
result = imul(31, result) + hashCode(this.p2l_1) | 0;
|
|
879
879
|
var tmp = imul(31, result);
|
|
880
880
|
var tmp$ret$0;
|
|
881
881
|
// Inline function 'kotlin.hashCode' call
|
|
882
|
-
var tmp0_hashCode = this.
|
|
882
|
+
var tmp0_hashCode = this.q2l_1;
|
|
883
883
|
var tmp0_safe_receiver = tmp0_hashCode;
|
|
884
884
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
885
885
|
tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
@@ -887,7 +887,7 @@
|
|
|
887
887
|
var tmp_0 = imul(31, result);
|
|
888
888
|
var tmp$ret$1;
|
|
889
889
|
// Inline function 'kotlin.hashCode' call
|
|
890
|
-
var tmp1_hashCode = this.
|
|
890
|
+
var tmp1_hashCode = this.r2l_1;
|
|
891
891
|
var tmp0_safe_receiver_0 = tmp1_hashCode;
|
|
892
892
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
893
893
|
tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
var tmp_1 = imul(31, result);
|
|
896
896
|
var tmp$ret$2;
|
|
897
897
|
// Inline function 'kotlin.hashCode' call
|
|
898
|
-
var tmp2_hashCode = this.
|
|
898
|
+
var tmp2_hashCode = this.s2l_1;
|
|
899
899
|
var tmp0_safe_receiver_1 = tmp2_hashCode;
|
|
900
900
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
901
901
|
tmp$ret$2 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
var tmp_2 = imul(31, result);
|
|
904
904
|
var tmp$ret$3;
|
|
905
905
|
// Inline function 'kotlin.hashCode' call
|
|
906
|
-
var tmp3_hashCode = this.
|
|
906
|
+
var tmp3_hashCode = this.t2l_1;
|
|
907
907
|
var tmp0_safe_receiver_2 = tmp3_hashCode;
|
|
908
908
|
var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
|
|
909
909
|
tmp$ret$3 = tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2;
|
|
@@ -913,7 +913,7 @@
|
|
|
913
913
|
// Inline function 'kotlin.hashCode' call
|
|
914
914
|
var tmp$ret$5;
|
|
915
915
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
916
|
-
var tmp4_ifEmpty = this.
|
|
916
|
+
var tmp4_ifEmpty = this.u2l_1;
|
|
917
917
|
var tmp_4;
|
|
918
918
|
if (tmp4_ifEmpty.m()) {
|
|
919
919
|
var tmp$ret$4;
|
|
@@ -959,33 +959,33 @@
|
|
|
959
959
|
var tmp0_apply = StringBuilder_init_$Create$();
|
|
960
960
|
// Inline function 'kotlin.contracts.contract' call
|
|
961
961
|
// Inline function 'io.fluidsonic.locale.LanguageTag.toString.<anonymous>' call
|
|
962
|
-
if (!(this.
|
|
963
|
-
tmp0_apply.ib(this.
|
|
964
|
-
var tmp0_iterator = this.
|
|
962
|
+
if (!(this.q2l_1 == null)) {
|
|
963
|
+
tmp0_apply.ib(this.q2l_1);
|
|
964
|
+
var tmp0_iterator = this.p2l_1.f();
|
|
965
965
|
while (tmp0_iterator.g()) {
|
|
966
966
|
var extlang = tmp0_iterator.h();
|
|
967
967
|
Companion_getInstance();
|
|
968
968
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
969
969
|
tmp0_apply.ib(extlang);
|
|
970
970
|
}
|
|
971
|
-
if (!(this.
|
|
971
|
+
if (!(this.t2l_1 == null)) {
|
|
972
972
|
Companion_getInstance();
|
|
973
973
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
974
|
-
tmp0_apply.ib(this.
|
|
974
|
+
tmp0_apply.ib(this.t2l_1);
|
|
975
975
|
}
|
|
976
|
-
if (!(this.
|
|
976
|
+
if (!(this.s2l_1 == null)) {
|
|
977
977
|
Companion_getInstance();
|
|
978
978
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
979
|
-
tmp0_apply.ib(this.
|
|
979
|
+
tmp0_apply.ib(this.s2l_1);
|
|
980
980
|
}
|
|
981
|
-
var tmp1_iterator = this.
|
|
981
|
+
var tmp1_iterator = this.u2l_1.f();
|
|
982
982
|
while (tmp1_iterator.g()) {
|
|
983
983
|
var variant = tmp1_iterator.h();
|
|
984
984
|
Companion_getInstance();
|
|
985
985
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
986
986
|
tmp0_apply.ib(variant);
|
|
987
987
|
}
|
|
988
|
-
var tmp2_iterator = this.
|
|
988
|
+
var tmp2_iterator = this.o2l_1.f();
|
|
989
989
|
while (tmp2_iterator.g()) {
|
|
990
990
|
var extension = tmp2_iterator.h();
|
|
991
991
|
Companion_getInstance();
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
tmp0_apply.ib(extension);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
if (!(this.
|
|
996
|
+
if (!(this.r2l_1 == null)) {
|
|
997
997
|
var tmp$ret$0;
|
|
998
998
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
999
999
|
tmp$ret$0 = charSequenceLength(tmp0_apply) > 0;
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
Companion_getInstance();
|
|
1002
1002
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
1003
1003
|
}
|
|
1004
|
-
tmp0_apply.ib(this.
|
|
1004
|
+
tmp0_apply.ib(this.r2l_1);
|
|
1005
1005
|
}
|
|
1006
1006
|
tmp$ret$1 = tmp0_apply;
|
|
1007
1007
|
tmp$ret$2 = tmp$ret$1.toString();
|
|
@@ -1012,14 +1012,14 @@
|
|
|
1012
1012
|
var tmp = this;
|
|
1013
1013
|
var tmp_0 = Companion_getInstance();
|
|
1014
1014
|
Companion_getInstance();
|
|
1015
|
-
tmp.
|
|
1015
|
+
tmp.v2l_1 = new Locale(tmp_0.g2l('und'));
|
|
1016
1016
|
}
|
|
1017
|
-
protoOf(Companion_0).
|
|
1017
|
+
protoOf(Companion_0).w2l = function (tag) {
|
|
1018
1018
|
var tmp0_subject = tag;
|
|
1019
|
-
return tmp0_subject.equals(this.
|
|
1019
|
+
return tmp0_subject.equals(this.v2l_1.e2k_1) ? this.v2l_1 : new Locale(tag);
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(Companion_0).
|
|
1022
|
-
var tmp0_safe_receiver = Companion_getInstance().
|
|
1021
|
+
protoOf(Companion_0).x2l = function (tag) {
|
|
1022
|
+
var tmp0_safe_receiver = Companion_getInstance().n2l(tag);
|
|
1023
1023
|
var tmp;
|
|
1024
1024
|
if (tmp0_safe_receiver == null) {
|
|
1025
1025
|
tmp = null;
|
|
@@ -1027,7 +1027,7 @@
|
|
|
1027
1027
|
var tmp$ret$0;
|
|
1028
1028
|
// Inline function 'kotlin.let' call
|
|
1029
1029
|
// Inline function 'kotlin.contracts.contract' call
|
|
1030
|
-
tmp$ret$0 = this.
|
|
1030
|
+
tmp$ret$0 = this.w2l(tmp0_safe_receiver);
|
|
1031
1031
|
tmp = tmp$ret$0;
|
|
1032
1032
|
}
|
|
1033
1033
|
return tmp;
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
}
|
|
1041
1041
|
function Locale(languageTag) {
|
|
1042
1042
|
Companion_getInstance_0();
|
|
1043
|
-
this.
|
|
1043
|
+
this.e2k_1 = languageTag;
|
|
1044
1044
|
var tmp$ret$0;
|
|
1045
1045
|
// Inline function 'io.fluidsonic.locale.freeze' call
|
|
1046
1046
|
tmp$ret$0 = Unit_getInstance();
|
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
} else {
|
|
1053
1053
|
var tmp_0;
|
|
1054
1054
|
if (other instanceof Locale) {
|
|
1055
|
-
tmp_0 = this.
|
|
1055
|
+
tmp_0 = this.e2k_1.equals(other.e2k_1);
|
|
1056
1056
|
} else {
|
|
1057
1057
|
tmp_0 = false;
|
|
1058
1058
|
}
|
|
@@ -1061,13 +1061,13 @@
|
|
|
1061
1061
|
return tmp;
|
|
1062
1062
|
};
|
|
1063
1063
|
protoOf(Locale).hashCode = function () {
|
|
1064
|
-
return this.
|
|
1064
|
+
return this.e2k_1.hashCode();
|
|
1065
1065
|
};
|
|
1066
|
-
protoOf(Locale).
|
|
1067
|
-
return this.
|
|
1066
|
+
protoOf(Locale).f2k = function () {
|
|
1067
|
+
return this.e2k_1;
|
|
1068
1068
|
};
|
|
1069
1069
|
protoOf(Locale).toString = function () {
|
|
1070
|
-
return this.
|
|
1070
|
+
return this.e2k_1.toString();
|
|
1071
1071
|
};
|
|
1072
1072
|
function isAlphaNumeric(_this__u8e3s4) {
|
|
1073
1073
|
return isAlpha(_this__u8e3s4) ? true : isNumeric(_this__u8e3s4);
|