@cruglobal/godtools-shared 0.9.0-PR407-SNAPSHOT.1161 → 0.9.0-PR423-SNAPSHOT.1189
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/Napier-napier-js-ir.js +26 -26
- package/android-gto-support-gto-support-fluidsonic-locale.js +8 -15
- package/android-gto-support-gto-support-fluidsonic-locale.js.map +1 -1
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +3013 -2951
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js.map +1 -1
- package/colormath-root-colormath-js-ir.js +473 -473
- package/fluid-locale-js-ir.js +125 -132
- package/fluid-locale-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +97 -97
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-npm.d.ts +304 -11
- package/kotlin-mpp-godtools-tool-parser-parser-expressions.js +647 -322
- package/kotlin-mpp-godtools-tool-parser-parser-expressions.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-parser.js +2855 -1749
- package/kotlin-mpp-godtools-tool-parser-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-state.js +90 -90
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +244 -72
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -2
package/fluid-locale-js-ir.js
CHANGED
|
@@ -52,17 +52,14 @@
|
|
|
52
52
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
53
53
|
setMetadataFor(Locale, 'Locale', classMeta);
|
|
54
54
|
//endregion
|
|
55
|
-
function toPlatform(_this__u8e3s4) {
|
|
56
|
-
return new Intl.Locale(_this__u8e3s4.f2k().toString());
|
|
57
|
-
}
|
|
58
55
|
function Companion() {
|
|
59
56
|
Companion_instance = this;
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
57
|
+
this.y2l_1 = _Char___init__impl__6a9atx(120);
|
|
58
|
+
this.z2l_1 = _Char___init__impl__6a9atx(45);
|
|
59
|
+
this.a2m_1 = 'und';
|
|
60
|
+
this.b2m_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
61
|
}
|
|
65
|
-
protoOf(Companion).
|
|
62
|
+
protoOf(Companion).c2m = function (extension) {
|
|
66
63
|
var tmp0_safe_receiver = extension;
|
|
67
64
|
var tmp;
|
|
68
65
|
if (tmp0_safe_receiver == null) {
|
|
@@ -88,7 +85,7 @@
|
|
|
88
85
|
var tmp1_safe_receiver = tmp;
|
|
89
86
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
90
87
|
};
|
|
91
|
-
protoOf(Companion).
|
|
88
|
+
protoOf(Companion).d2m = function (singleton) {
|
|
92
89
|
var tmp0_safe_receiver = singleton;
|
|
93
90
|
var tmp;
|
|
94
91
|
if (tmp0_safe_receiver == null) {
|
|
@@ -114,7 +111,7 @@
|
|
|
114
111
|
var tmp1_safe_receiver = tmp;
|
|
115
112
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
116
113
|
};
|
|
117
|
-
protoOf(Companion).
|
|
114
|
+
protoOf(Companion).e2m = function (subtag) {
|
|
118
115
|
var tmp0_safe_receiver = subtag;
|
|
119
116
|
var tmp;
|
|
120
117
|
if (tmp0_safe_receiver == null) {
|
|
@@ -140,7 +137,7 @@
|
|
|
140
137
|
var tmp1_safe_receiver = tmp;
|
|
141
138
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
142
139
|
};
|
|
143
|
-
protoOf(Companion).
|
|
140
|
+
protoOf(Companion).f2m = function (extensions) {
|
|
144
141
|
var tmp$ret$5;
|
|
145
142
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
146
143
|
var tmp$ret$1;
|
|
@@ -170,7 +167,7 @@
|
|
|
170
167
|
while (tmp0_iterator.g()) {
|
|
171
168
|
var element = tmp0_iterator.h();
|
|
172
169
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
173
|
-
var tmp0_safe_receiver_0 = this.
|
|
170
|
+
var tmp0_safe_receiver_0 = this.c2m(element);
|
|
174
171
|
if (tmp0_safe_receiver_0 == null)
|
|
175
172
|
null;
|
|
176
173
|
else {
|
|
@@ -191,7 +188,7 @@
|
|
|
191
188
|
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
192
189
|
return tmp$ret$5;
|
|
193
190
|
};
|
|
194
|
-
protoOf(Companion).
|
|
191
|
+
protoOf(Companion).g2m = function (extlang) {
|
|
195
192
|
var tmp0_safe_receiver = extlang;
|
|
196
193
|
var tmp;
|
|
197
194
|
if (tmp0_safe_receiver == null) {
|
|
@@ -217,7 +214,7 @@
|
|
|
217
214
|
var tmp1_safe_receiver = tmp;
|
|
218
215
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
219
216
|
};
|
|
220
|
-
protoOf(Companion).
|
|
217
|
+
protoOf(Companion).h2m = function (extlangs) {
|
|
221
218
|
var tmp$ret$5;
|
|
222
219
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
223
220
|
var tmp$ret$1;
|
|
@@ -247,7 +244,7 @@
|
|
|
247
244
|
while (tmp0_iterator.g()) {
|
|
248
245
|
var element = tmp0_iterator.h();
|
|
249
246
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
250
|
-
var tmp0_safe_receiver_0 = this.
|
|
247
|
+
var tmp0_safe_receiver_0 = this.g2m(element);
|
|
251
248
|
if (tmp0_safe_receiver_0 == null)
|
|
252
249
|
null;
|
|
253
250
|
else {
|
|
@@ -267,7 +264,7 @@
|
|
|
267
264
|
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
268
265
|
return tmp$ret$5;
|
|
269
266
|
};
|
|
270
|
-
protoOf(Companion).
|
|
267
|
+
protoOf(Companion).i2m = function (language) {
|
|
271
268
|
var tmp0_safe_receiver = language;
|
|
272
269
|
var tmp;
|
|
273
270
|
if (tmp0_safe_receiver == null) {
|
|
@@ -293,7 +290,7 @@
|
|
|
293
290
|
var tmp1_safe_receiver = tmp;
|
|
294
291
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
295
292
|
};
|
|
296
|
-
protoOf(Companion).
|
|
293
|
+
protoOf(Companion).j2m = function (privateuse) {
|
|
297
294
|
var tmp0_safe_receiver = privateuse;
|
|
298
295
|
var tmp;
|
|
299
296
|
if (tmp0_safe_receiver == null) {
|
|
@@ -319,7 +316,7 @@
|
|
|
319
316
|
var tmp1_safe_receiver = tmp;
|
|
320
317
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
321
318
|
};
|
|
322
|
-
protoOf(Companion).
|
|
319
|
+
protoOf(Companion).k2m = function (prefix) {
|
|
323
320
|
var tmp0_safe_receiver = prefix;
|
|
324
321
|
var tmp;
|
|
325
322
|
if (tmp0_safe_receiver == null) {
|
|
@@ -345,7 +342,7 @@
|
|
|
345
342
|
var tmp1_safe_receiver = tmp;
|
|
346
343
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
347
344
|
};
|
|
348
|
-
protoOf(Companion).
|
|
345
|
+
protoOf(Companion).l2m = function (subtag) {
|
|
349
346
|
var tmp0_safe_receiver = subtag;
|
|
350
347
|
var tmp;
|
|
351
348
|
if (tmp0_safe_receiver == null) {
|
|
@@ -371,7 +368,7 @@
|
|
|
371
368
|
var tmp1_safe_receiver = tmp;
|
|
372
369
|
return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
|
|
373
370
|
};
|
|
374
|
-
protoOf(Companion).
|
|
371
|
+
protoOf(Companion).m2m = function (region) {
|
|
375
372
|
var tmp0_safe_receiver = region;
|
|
376
373
|
var tmp;
|
|
377
374
|
if (tmp0_safe_receiver == null) {
|
|
@@ -397,7 +394,7 @@
|
|
|
397
394
|
var tmp1_safe_receiver = tmp;
|
|
398
395
|
return tmp1_safe_receiver == null ? null : toUpperCase_0(tmp1_safe_receiver);
|
|
399
396
|
};
|
|
400
|
-
protoOf(Companion).
|
|
397
|
+
protoOf(Companion).n2m = function (script) {
|
|
401
398
|
var tmp0_safe_receiver = script;
|
|
402
399
|
var tmp;
|
|
403
400
|
if (tmp0_safe_receiver == null) {
|
|
@@ -423,7 +420,7 @@
|
|
|
423
420
|
var tmp1_safe_receiver = tmp;
|
|
424
421
|
return tmp1_safe_receiver == null ? null : toUppercaseFirstLowercaseRest(tmp1_safe_receiver);
|
|
425
422
|
};
|
|
426
|
-
protoOf(Companion).
|
|
423
|
+
protoOf(Companion).o2m = function (variant) {
|
|
427
424
|
var tmp0_safe_receiver = variant;
|
|
428
425
|
var tmp;
|
|
429
426
|
if (tmp0_safe_receiver == null) {
|
|
@@ -448,7 +445,7 @@
|
|
|
448
445
|
}
|
|
449
446
|
return tmp;
|
|
450
447
|
};
|
|
451
|
-
protoOf(Companion).
|
|
448
|
+
protoOf(Companion).p2m = function (variants) {
|
|
452
449
|
var tmp$ret$5;
|
|
453
450
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
454
451
|
var tmp$ret$1;
|
|
@@ -478,7 +475,7 @@
|
|
|
478
475
|
while (tmp0_iterator.g()) {
|
|
479
476
|
var element = tmp0_iterator.h();
|
|
480
477
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
481
|
-
var tmp0_safe_receiver_0 = this.
|
|
478
|
+
var tmp0_safe_receiver_0 = this.o2m(element);
|
|
482
479
|
if (tmp0_safe_receiver_0 == null)
|
|
483
480
|
null;
|
|
484
481
|
else {
|
|
@@ -498,16 +495,16 @@
|
|
|
498
495
|
tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
499
496
|
return tmp$ret$5;
|
|
500
497
|
};
|
|
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.
|
|
498
|
+
protoOf(Companion).q2m = function (language, script, region, variants, extlangs, extensions, privateuse) {
|
|
499
|
+
var canonicalLanguage = this.i2m(language);
|
|
500
|
+
var canonicalScript = this.n2m(script);
|
|
501
|
+
var canonicalRegion = this.m2m(region);
|
|
502
|
+
var canonicalVariants = this.p2m(variants);
|
|
503
|
+
var canonicalExtlangs = this.h2m(extlangs);
|
|
504
|
+
var canonicalExtensions = this.f2m(extensions);
|
|
505
|
+
var canonicalPrivateuse = this.j2m(privateuse);
|
|
509
506
|
// Inline function 'kotlin.require' call
|
|
510
|
-
var tmp0_require = !(canonicalLanguage == null) ? this.
|
|
507
|
+
var tmp0_require = !(canonicalLanguage == null) ? this.r2m(canonicalLanguage) : false;
|
|
511
508
|
// Inline function 'kotlin.contracts.contract' call
|
|
512
509
|
if (!tmp0_require) {
|
|
513
510
|
var tmp$ret$0;
|
|
@@ -517,7 +514,7 @@
|
|
|
517
514
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
518
515
|
}
|
|
519
516
|
// Inline function 'kotlin.require' call
|
|
520
|
-
var tmp1_require = canonicalScript == null ? true : this.
|
|
517
|
+
var tmp1_require = canonicalScript == null ? true : this.s2m(canonicalScript);
|
|
521
518
|
// Inline function 'kotlin.contracts.contract' call
|
|
522
519
|
if (!tmp1_require) {
|
|
523
520
|
var tmp$ret$1;
|
|
@@ -527,7 +524,7 @@
|
|
|
527
524
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
528
525
|
}
|
|
529
526
|
// Inline function 'kotlin.require' call
|
|
530
|
-
var tmp2_require = canonicalRegion == null ? true : this.
|
|
527
|
+
var tmp2_require = canonicalRegion == null ? true : this.t2m(canonicalRegion);
|
|
531
528
|
// Inline function 'kotlin.contracts.contract' call
|
|
532
529
|
if (!tmp2_require) {
|
|
533
530
|
var tmp$ret$2;
|
|
@@ -540,7 +537,7 @@
|
|
|
540
537
|
while (tmp0_iterator.g()) {
|
|
541
538
|
var variant = tmp0_iterator.h();
|
|
542
539
|
// Inline function 'kotlin.require' call
|
|
543
|
-
var tmp3_require = this.
|
|
540
|
+
var tmp3_require = this.u2m(variant);
|
|
544
541
|
// Inline function 'kotlin.contracts.contract' call
|
|
545
542
|
if (!tmp3_require) {
|
|
546
543
|
var tmp$ret$3;
|
|
@@ -554,7 +551,7 @@
|
|
|
554
551
|
while (tmp1_iterator.g()) {
|
|
555
552
|
var extlang = tmp1_iterator.h();
|
|
556
553
|
// Inline function 'kotlin.require' call
|
|
557
|
-
var tmp4_require = this.
|
|
554
|
+
var tmp4_require = this.v2m(extlang);
|
|
558
555
|
// Inline function 'kotlin.contracts.contract' call
|
|
559
556
|
if (!tmp4_require) {
|
|
560
557
|
var tmp$ret$4;
|
|
@@ -568,7 +565,7 @@
|
|
|
568
565
|
while (tmp2_iterator.g()) {
|
|
569
566
|
var extension = tmp2_iterator.h();
|
|
570
567
|
// Inline function 'kotlin.require' call
|
|
571
|
-
var tmp5_require = this.
|
|
568
|
+
var tmp5_require = this.w2m(extension);
|
|
572
569
|
// Inline function 'kotlin.contracts.contract' call
|
|
573
570
|
if (!tmp5_require) {
|
|
574
571
|
var tmp$ret$5;
|
|
@@ -579,7 +576,7 @@
|
|
|
579
576
|
}
|
|
580
577
|
}
|
|
581
578
|
// Inline function 'kotlin.require' call
|
|
582
|
-
var tmp6_require = canonicalPrivateuse == null ? true : this.
|
|
579
|
+
var tmp6_require = canonicalPrivateuse == null ? true : this.x2m(canonicalPrivateuse);
|
|
583
580
|
// Inline function 'kotlin.contracts.contract' call
|
|
584
581
|
if (!tmp6_require) {
|
|
585
582
|
var tmp$ret$6;
|
|
@@ -590,18 +587,18 @@
|
|
|
590
587
|
}
|
|
591
588
|
return new LanguageTag(canonicalExtensions, canonicalExtlangs, canonicalLanguage, canonicalPrivateuse, canonicalRegion, canonicalScript, canonicalVariants);
|
|
592
589
|
};
|
|
593
|
-
protoOf(Companion).
|
|
590
|
+
protoOf(Companion).y2m = function (language, script, region, variants, extlangs, extensions, privateuse, $super) {
|
|
594
591
|
script = script === VOID ? null : script;
|
|
595
592
|
region = region === VOID ? null : region;
|
|
596
593
|
variants = variants === VOID ? emptyList() : variants;
|
|
597
594
|
extlangs = extlangs === VOID ? emptyList() : extlangs;
|
|
598
595
|
extensions = extensions === VOID ? emptyList() : extensions;
|
|
599
596
|
privateuse = privateuse === VOID ? null : privateuse;
|
|
600
|
-
return $super === VOID ? this.
|
|
597
|
+
return $super === VOID ? this.q2m(language, script, region, variants, extlangs, extensions, privateuse) : $super.q2m.call(this, language, script, region, variants, extlangs, extensions, privateuse);
|
|
601
598
|
};
|
|
602
|
-
protoOf(Companion).
|
|
599
|
+
protoOf(Companion).w2m = function (extension) {
|
|
603
600
|
var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
604
|
-
if (!this.
|
|
601
|
+
if (!this.z2m(tokens.h()))
|
|
605
602
|
return false;
|
|
606
603
|
if (!tokens.g())
|
|
607
604
|
return false;
|
|
@@ -611,18 +608,18 @@
|
|
|
611
608
|
var tmp0_iterator = tmp$ret$0;
|
|
612
609
|
while (tmp0_iterator.g()) {
|
|
613
610
|
var token = tmp0_iterator.h();
|
|
614
|
-
if (!this.
|
|
611
|
+
if (!this.a2n(token))
|
|
615
612
|
return false;
|
|
616
613
|
}
|
|
617
614
|
return true;
|
|
618
615
|
};
|
|
619
|
-
protoOf(Companion).
|
|
620
|
-
return isAlphaNumeric(singleton) ? !this.
|
|
616
|
+
protoOf(Companion).b2n = function (singleton) {
|
|
617
|
+
return isAlphaNumeric(singleton) ? !this.c2n(singleton) : false;
|
|
621
618
|
};
|
|
622
|
-
protoOf(Companion).
|
|
623
|
-
return singleton.length === 1 ? this.
|
|
619
|
+
protoOf(Companion).z2m = function (singleton) {
|
|
620
|
+
return singleton.length === 1 ? this.b2n(charSequenceGet(singleton, 0)) : false;
|
|
624
621
|
};
|
|
625
|
-
protoOf(Companion).
|
|
622
|
+
protoOf(Companion).a2n = function (extension) {
|
|
626
623
|
var tmp;
|
|
627
624
|
var containsArg = extension.length;
|
|
628
625
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -632,10 +629,10 @@
|
|
|
632
629
|
}
|
|
633
630
|
return tmp;
|
|
634
631
|
};
|
|
635
|
-
protoOf(Companion).
|
|
632
|
+
protoOf(Companion).v2m = function (extlang) {
|
|
636
633
|
return extlang.length === 3 ? isAlpha_0(extlang) : false;
|
|
637
634
|
};
|
|
638
|
-
protoOf(Companion).
|
|
635
|
+
protoOf(Companion).r2m = function (language) {
|
|
639
636
|
var tmp;
|
|
640
637
|
var containsArg = language.length;
|
|
641
638
|
if (2 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -645,9 +642,9 @@
|
|
|
645
642
|
}
|
|
646
643
|
return tmp;
|
|
647
644
|
};
|
|
648
|
-
protoOf(Companion).
|
|
645
|
+
protoOf(Companion).x2m = function (privateuse) {
|
|
649
646
|
var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
650
|
-
if (!this.
|
|
647
|
+
if (!this.d2n(tokens.h()))
|
|
651
648
|
return false;
|
|
652
649
|
if (!tokens.g())
|
|
653
650
|
return false;
|
|
@@ -657,18 +654,18 @@
|
|
|
657
654
|
var tmp0_iterator = tmp$ret$0;
|
|
658
655
|
while (tmp0_iterator.g()) {
|
|
659
656
|
var token = tmp0_iterator.h();
|
|
660
|
-
if (!this.
|
|
657
|
+
if (!this.e2n(token))
|
|
661
658
|
return false;
|
|
662
659
|
}
|
|
663
660
|
return true;
|
|
664
661
|
};
|
|
665
|
-
protoOf(Companion).
|
|
662
|
+
protoOf(Companion).c2n = function (prefix) {
|
|
666
663
|
return equals(prefix, _Char___init__impl__6a9atx(120), true);
|
|
667
664
|
};
|
|
668
|
-
protoOf(Companion).
|
|
669
|
-
return prefix.length === 1 ? this.
|
|
665
|
+
protoOf(Companion).d2n = function (prefix) {
|
|
666
|
+
return prefix.length === 1 ? this.c2n(charSequenceGet(prefix, 0)) : false;
|
|
670
667
|
};
|
|
671
|
-
protoOf(Companion).
|
|
668
|
+
protoOf(Companion).e2n = function (privateuse) {
|
|
672
669
|
var tmp;
|
|
673
670
|
var containsArg = privateuse.length;
|
|
674
671
|
if (1 <= containsArg ? containsArg <= 8 : false) {
|
|
@@ -678,7 +675,7 @@
|
|
|
678
675
|
}
|
|
679
676
|
return tmp;
|
|
680
677
|
};
|
|
681
|
-
protoOf(Companion).
|
|
678
|
+
protoOf(Companion).t2m = function (region) {
|
|
682
679
|
var tmp0_subject = region.length;
|
|
683
680
|
switch (tmp0_subject) {
|
|
684
681
|
case 2:
|
|
@@ -689,15 +686,15 @@
|
|
|
689
686
|
return false;
|
|
690
687
|
}
|
|
691
688
|
};
|
|
692
|
-
protoOf(Companion).
|
|
689
|
+
protoOf(Companion).s2m = function (script) {
|
|
693
690
|
return script.length === 4 ? isAlpha_0(script) : false;
|
|
694
691
|
};
|
|
695
|
-
protoOf(Companion).
|
|
692
|
+
protoOf(Companion).u2m = function (variant) {
|
|
696
693
|
var tmp0_subject = variant.length;
|
|
697
694
|
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
695
|
};
|
|
699
|
-
protoOf(Companion).
|
|
700
|
-
var tmp0_elvis_lhs = this.
|
|
696
|
+
protoOf(Companion).f2n = function (string) {
|
|
697
|
+
var tmp0_elvis_lhs = this.b2m_1.c2(toLowerCase_0(string));
|
|
701
698
|
var string_0 = tmp0_elvis_lhs == null ? string : tmp0_elvis_lhs;
|
|
702
699
|
var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
|
|
703
700
|
var extlangs = null;
|
|
@@ -709,71 +706,71 @@
|
|
|
709
706
|
var variants = null;
|
|
710
707
|
var token;
|
|
711
708
|
token = tokens.h();
|
|
712
|
-
if (this.
|
|
713
|
-
language = this.
|
|
709
|
+
if (this.r2m(token)) {
|
|
710
|
+
language = this.i2m(token);
|
|
714
711
|
token = nextOrNull(tokens);
|
|
715
|
-
if (!(token == null) ? this.
|
|
712
|
+
if (!(token == null) ? this.v2m(token) : false) {
|
|
716
713
|
var tmp$ret$0;
|
|
717
714
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
718
715
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
719
716
|
extlangs = tmp$ret$0;
|
|
720
717
|
do {
|
|
721
|
-
extlangs.b(ensureNotNull(this.
|
|
718
|
+
extlangs.b(ensureNotNull(this.g2m(token)));
|
|
722
719
|
token = nextOrNull(tokens);
|
|
723
720
|
}
|
|
724
|
-
while ((!(token == null) ? extlangs.i() < 3 : false) ? this.
|
|
721
|
+
while ((!(token == null) ? extlangs.i() < 3 : false) ? this.v2m(token) : false);
|
|
725
722
|
}
|
|
726
|
-
if (!(token == null) ? this.
|
|
727
|
-
script = this.
|
|
723
|
+
if (!(token == null) ? this.s2m(token) : false) {
|
|
724
|
+
script = this.n2m(token);
|
|
728
725
|
token = nextOrNull(tokens);
|
|
729
726
|
}
|
|
730
|
-
if (!(token == null) ? this.
|
|
731
|
-
region = this.
|
|
727
|
+
if (!(token == null) ? this.t2m(token) : false) {
|
|
728
|
+
region = this.m2m(token);
|
|
732
729
|
token = nextOrNull(tokens);
|
|
733
730
|
}
|
|
734
|
-
if (!(token == null) ? this.
|
|
731
|
+
if (!(token == null) ? this.u2m(token) : false) {
|
|
735
732
|
var tmp$ret$1;
|
|
736
733
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
737
734
|
tmp$ret$1 = ArrayList_init_$Create$();
|
|
738
735
|
variants = tmp$ret$1;
|
|
739
736
|
do {
|
|
740
|
-
variants.b(ensureNotNull(this.
|
|
737
|
+
variants.b(ensureNotNull(this.o2m(token)));
|
|
741
738
|
token = nextOrNull(tokens);
|
|
742
739
|
}
|
|
743
|
-
while (!(token == null) ? this.
|
|
740
|
+
while (!(token == null) ? this.u2m(token) : false);
|
|
744
741
|
}
|
|
745
|
-
if (!(token == null) ? this.
|
|
742
|
+
if (!(token == null) ? this.z2m(token) : false) {
|
|
746
743
|
var tmp$ret$2;
|
|
747
744
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
748
745
|
tmp$ret$2 = ArrayList_init_$Create$();
|
|
749
746
|
extensions = tmp$ret$2;
|
|
750
747
|
do {
|
|
751
|
-
var extensionBuilder = new StringBuilder(ensureNotNull(this.
|
|
748
|
+
var extensionBuilder = new StringBuilder(ensureNotNull(this.d2m(token)));
|
|
752
749
|
token = nextOrNull(tokens);
|
|
753
|
-
if (!(token == null) ? this.
|
|
750
|
+
if (!(token == null) ? this.a2n(token) : false) {
|
|
754
751
|
do {
|
|
755
752
|
extensionBuilder.v4(_Char___init__impl__6a9atx(45));
|
|
756
|
-
extensionBuilder.ib(this.
|
|
753
|
+
extensionBuilder.ib(this.e2m(token));
|
|
757
754
|
token = nextOrNull(tokens);
|
|
758
755
|
}
|
|
759
|
-
while (!(token == null) ? this.
|
|
756
|
+
while (!(token == null) ? this.a2n(token) : false);
|
|
760
757
|
} else
|
|
761
758
|
return null;
|
|
762
759
|
extensions.b(extensionBuilder.toString());
|
|
763
760
|
}
|
|
764
|
-
while (!(token == null) ? this.
|
|
761
|
+
while (!(token == null) ? this.z2m(token) : false);
|
|
765
762
|
}
|
|
766
763
|
}
|
|
767
|
-
if (!(token == null) ? this.
|
|
768
|
-
var privateuseBuilder = new StringBuilder(ensureNotNull(this.
|
|
764
|
+
if (!(token == null) ? this.d2n(token) : false) {
|
|
765
|
+
var privateuseBuilder = new StringBuilder(ensureNotNull(this.k2m(token)));
|
|
769
766
|
token = nextOrNull(tokens);
|
|
770
|
-
if (!(token == null) ? this.
|
|
767
|
+
if (!(token == null) ? this.e2n(token) : false) {
|
|
771
768
|
do {
|
|
772
769
|
privateuseBuilder.v4(_Char___init__impl__6a9atx(45));
|
|
773
|
-
privateuseBuilder.ib(this.
|
|
770
|
+
privateuseBuilder.ib(this.l2m(token));
|
|
774
771
|
token = nextOrNull(tokens);
|
|
775
772
|
}
|
|
776
|
-
while (!(token == null) ? this.
|
|
773
|
+
while (!(token == null) ? this.e2n(token) : false);
|
|
777
774
|
} else
|
|
778
775
|
return null;
|
|
779
776
|
privateuse = privateuseBuilder.toString();
|
|
@@ -811,13 +808,13 @@
|
|
|
811
808
|
}
|
|
812
809
|
function LanguageTag(extensions, extlangs, language, privateuse, region, script, variants) {
|
|
813
810
|
Companion_getInstance();
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
811
|
+
this.g2n_1 = extensions;
|
|
812
|
+
this.h2n_1 = extlangs;
|
|
813
|
+
this.i2n_1 = language;
|
|
814
|
+
this.j2n_1 = privateuse;
|
|
815
|
+
this.k2n_1 = region;
|
|
816
|
+
this.l2n_1 = script;
|
|
817
|
+
this.m2n_1 = variants;
|
|
821
818
|
var tmp$ret$0;
|
|
822
819
|
// Inline function 'io.fluidsonic.locale.freeze' call
|
|
823
820
|
tmp$ret$0 = Unit_getInstance();
|
|
@@ -835,37 +832,37 @@
|
|
|
835
832
|
var tmp_5;
|
|
836
833
|
var tmp_6;
|
|
837
834
|
if (other instanceof LanguageTag) {
|
|
838
|
-
tmp_6 = equals_0(this.
|
|
835
|
+
tmp_6 = equals_0(this.g2n_1, other.g2n_1);
|
|
839
836
|
} else {
|
|
840
837
|
tmp_6 = false;
|
|
841
838
|
}
|
|
842
839
|
if (tmp_6) {
|
|
843
|
-
tmp_5 = equals_0(this.
|
|
840
|
+
tmp_5 = equals_0(this.h2n_1, other.h2n_1);
|
|
844
841
|
} else {
|
|
845
842
|
tmp_5 = false;
|
|
846
843
|
}
|
|
847
844
|
if (tmp_5) {
|
|
848
|
-
tmp_4 = this.
|
|
845
|
+
tmp_4 = this.i2n_1 == other.i2n_1;
|
|
849
846
|
} else {
|
|
850
847
|
tmp_4 = false;
|
|
851
848
|
}
|
|
852
849
|
if (tmp_4) {
|
|
853
|
-
tmp_3 = this.
|
|
850
|
+
tmp_3 = this.j2n_1 == other.j2n_1;
|
|
854
851
|
} else {
|
|
855
852
|
tmp_3 = false;
|
|
856
853
|
}
|
|
857
854
|
if (tmp_3) {
|
|
858
|
-
tmp_2 = this.
|
|
855
|
+
tmp_2 = this.k2n_1 == other.k2n_1;
|
|
859
856
|
} else {
|
|
860
857
|
tmp_2 = false;
|
|
861
858
|
}
|
|
862
859
|
if (tmp_2) {
|
|
863
|
-
tmp_1 = this.
|
|
860
|
+
tmp_1 = this.l2n_1 == other.l2n_1;
|
|
864
861
|
} else {
|
|
865
862
|
tmp_1 = false;
|
|
866
863
|
}
|
|
867
864
|
if (tmp_1) {
|
|
868
|
-
tmp_0 = equals_2(this.
|
|
865
|
+
tmp_0 = equals_2(this.m2n_1, other.m2n_1, true);
|
|
869
866
|
} else {
|
|
870
867
|
tmp_0 = false;
|
|
871
868
|
}
|
|
@@ -874,12 +871,12 @@
|
|
|
874
871
|
return tmp;
|
|
875
872
|
};
|
|
876
873
|
protoOf(LanguageTag).hashCode = function () {
|
|
877
|
-
var result = hashCode(this.
|
|
878
|
-
result = imul(31, result) + hashCode(this.
|
|
874
|
+
var result = hashCode(this.g2n_1);
|
|
875
|
+
result = imul(31, result) + hashCode(this.h2n_1) | 0;
|
|
879
876
|
var tmp = imul(31, result);
|
|
880
877
|
var tmp$ret$0;
|
|
881
878
|
// Inline function 'kotlin.hashCode' call
|
|
882
|
-
var tmp0_hashCode = this.
|
|
879
|
+
var tmp0_hashCode = this.i2n_1;
|
|
883
880
|
var tmp0_safe_receiver = tmp0_hashCode;
|
|
884
881
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
885
882
|
tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
@@ -887,7 +884,7 @@
|
|
|
887
884
|
var tmp_0 = imul(31, result);
|
|
888
885
|
var tmp$ret$1;
|
|
889
886
|
// Inline function 'kotlin.hashCode' call
|
|
890
|
-
var tmp1_hashCode = this.
|
|
887
|
+
var tmp1_hashCode = this.j2n_1;
|
|
891
888
|
var tmp0_safe_receiver_0 = tmp1_hashCode;
|
|
892
889
|
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
|
|
893
890
|
tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
|
|
@@ -895,7 +892,7 @@
|
|
|
895
892
|
var tmp_1 = imul(31, result);
|
|
896
893
|
var tmp$ret$2;
|
|
897
894
|
// Inline function 'kotlin.hashCode' call
|
|
898
|
-
var tmp2_hashCode = this.
|
|
895
|
+
var tmp2_hashCode = this.k2n_1;
|
|
899
896
|
var tmp0_safe_receiver_1 = tmp2_hashCode;
|
|
900
897
|
var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
|
|
901
898
|
tmp$ret$2 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
|
|
@@ -903,7 +900,7 @@
|
|
|
903
900
|
var tmp_2 = imul(31, result);
|
|
904
901
|
var tmp$ret$3;
|
|
905
902
|
// Inline function 'kotlin.hashCode' call
|
|
906
|
-
var tmp3_hashCode = this.
|
|
903
|
+
var tmp3_hashCode = this.l2n_1;
|
|
907
904
|
var tmp0_safe_receiver_2 = tmp3_hashCode;
|
|
908
905
|
var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
|
|
909
906
|
tmp$ret$3 = tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2;
|
|
@@ -913,7 +910,7 @@
|
|
|
913
910
|
// Inline function 'kotlin.hashCode' call
|
|
914
911
|
var tmp$ret$5;
|
|
915
912
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
916
|
-
var tmp4_ifEmpty = this.
|
|
913
|
+
var tmp4_ifEmpty = this.m2n_1;
|
|
917
914
|
var tmp_4;
|
|
918
915
|
if (tmp4_ifEmpty.m()) {
|
|
919
916
|
var tmp$ret$4;
|
|
@@ -959,33 +956,33 @@
|
|
|
959
956
|
var tmp0_apply = StringBuilder_init_$Create$();
|
|
960
957
|
// Inline function 'kotlin.contracts.contract' call
|
|
961
958
|
// Inline function 'io.fluidsonic.locale.LanguageTag.toString.<anonymous>' call
|
|
962
|
-
if (!(this.
|
|
963
|
-
tmp0_apply.ib(this.
|
|
964
|
-
var tmp0_iterator = this.
|
|
959
|
+
if (!(this.i2n_1 == null)) {
|
|
960
|
+
tmp0_apply.ib(this.i2n_1);
|
|
961
|
+
var tmp0_iterator = this.h2n_1.f();
|
|
965
962
|
while (tmp0_iterator.g()) {
|
|
966
963
|
var extlang = tmp0_iterator.h();
|
|
967
964
|
Companion_getInstance();
|
|
968
965
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
969
966
|
tmp0_apply.ib(extlang);
|
|
970
967
|
}
|
|
971
|
-
if (!(this.
|
|
968
|
+
if (!(this.l2n_1 == null)) {
|
|
972
969
|
Companion_getInstance();
|
|
973
970
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
974
|
-
tmp0_apply.ib(this.
|
|
971
|
+
tmp0_apply.ib(this.l2n_1);
|
|
975
972
|
}
|
|
976
|
-
if (!(this.
|
|
973
|
+
if (!(this.k2n_1 == null)) {
|
|
977
974
|
Companion_getInstance();
|
|
978
975
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
979
|
-
tmp0_apply.ib(this.
|
|
976
|
+
tmp0_apply.ib(this.k2n_1);
|
|
980
977
|
}
|
|
981
|
-
var tmp1_iterator = this.
|
|
978
|
+
var tmp1_iterator = this.m2n_1.f();
|
|
982
979
|
while (tmp1_iterator.g()) {
|
|
983
980
|
var variant = tmp1_iterator.h();
|
|
984
981
|
Companion_getInstance();
|
|
985
982
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
986
983
|
tmp0_apply.ib(variant);
|
|
987
984
|
}
|
|
988
|
-
var tmp2_iterator = this.
|
|
985
|
+
var tmp2_iterator = this.g2n_1.f();
|
|
989
986
|
while (tmp2_iterator.g()) {
|
|
990
987
|
var extension = tmp2_iterator.h();
|
|
991
988
|
Companion_getInstance();
|
|
@@ -993,7 +990,7 @@
|
|
|
993
990
|
tmp0_apply.ib(extension);
|
|
994
991
|
}
|
|
995
992
|
}
|
|
996
|
-
if (!(this.
|
|
993
|
+
if (!(this.j2n_1 == null)) {
|
|
997
994
|
var tmp$ret$0;
|
|
998
995
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
999
996
|
tmp$ret$0 = charSequenceLength(tmp0_apply) > 0;
|
|
@@ -1001,7 +998,7 @@
|
|
|
1001
998
|
Companion_getInstance();
|
|
1002
999
|
tmp0_apply.v4(_Char___init__impl__6a9atx(45));
|
|
1003
1000
|
}
|
|
1004
|
-
tmp0_apply.ib(this.
|
|
1001
|
+
tmp0_apply.ib(this.j2n_1);
|
|
1005
1002
|
}
|
|
1006
1003
|
tmp$ret$1 = tmp0_apply;
|
|
1007
1004
|
tmp$ret$2 = tmp$ret$1.toString();
|
|
@@ -1012,14 +1009,14 @@
|
|
|
1012
1009
|
var tmp = this;
|
|
1013
1010
|
var tmp_0 = Companion_getInstance();
|
|
1014
1011
|
Companion_getInstance();
|
|
1015
|
-
tmp.
|
|
1012
|
+
tmp.n2n_1 = new Locale(tmp_0.y2m('und'));
|
|
1016
1013
|
}
|
|
1017
|
-
protoOf(Companion_0).
|
|
1014
|
+
protoOf(Companion_0).o2n = function (tag) {
|
|
1018
1015
|
var tmp0_subject = tag;
|
|
1019
|
-
return tmp0_subject.equals(this.
|
|
1016
|
+
return tmp0_subject.equals(this.n2n_1.p2n_1) ? this.n2n_1 : new Locale(tag);
|
|
1020
1017
|
};
|
|
1021
|
-
protoOf(Companion_0).
|
|
1022
|
-
var tmp0_safe_receiver = Companion_getInstance().
|
|
1018
|
+
protoOf(Companion_0).q2n = function (tag) {
|
|
1019
|
+
var tmp0_safe_receiver = Companion_getInstance().f2n(tag);
|
|
1023
1020
|
var tmp;
|
|
1024
1021
|
if (tmp0_safe_receiver == null) {
|
|
1025
1022
|
tmp = null;
|
|
@@ -1027,7 +1024,7 @@
|
|
|
1027
1024
|
var tmp$ret$0;
|
|
1028
1025
|
// Inline function 'kotlin.let' call
|
|
1029
1026
|
// Inline function 'kotlin.contracts.contract' call
|
|
1030
|
-
tmp$ret$0 = this.
|
|
1027
|
+
tmp$ret$0 = this.o2n(tmp0_safe_receiver);
|
|
1031
1028
|
tmp = tmp$ret$0;
|
|
1032
1029
|
}
|
|
1033
1030
|
return tmp;
|
|
@@ -1040,7 +1037,7 @@
|
|
|
1040
1037
|
}
|
|
1041
1038
|
function Locale(languageTag) {
|
|
1042
1039
|
Companion_getInstance_0();
|
|
1043
|
-
this.
|
|
1040
|
+
this.p2n_1 = languageTag;
|
|
1044
1041
|
var tmp$ret$0;
|
|
1045
1042
|
// Inline function 'io.fluidsonic.locale.freeze' call
|
|
1046
1043
|
tmp$ret$0 = Unit_getInstance();
|
|
@@ -1052,7 +1049,7 @@
|
|
|
1052
1049
|
} else {
|
|
1053
1050
|
var tmp_0;
|
|
1054
1051
|
if (other instanceof Locale) {
|
|
1055
|
-
tmp_0 = this.
|
|
1052
|
+
tmp_0 = this.p2n_1.equals(other.p2n_1);
|
|
1056
1053
|
} else {
|
|
1057
1054
|
tmp_0 = false;
|
|
1058
1055
|
}
|
|
@@ -1061,13 +1058,10 @@
|
|
|
1061
1058
|
return tmp;
|
|
1062
1059
|
};
|
|
1063
1060
|
protoOf(Locale).hashCode = function () {
|
|
1064
|
-
return this.
|
|
1065
|
-
};
|
|
1066
|
-
protoOf(Locale).f2k = function () {
|
|
1067
|
-
return this.e2k_1;
|
|
1061
|
+
return this.p2n_1.hashCode();
|
|
1068
1062
|
};
|
|
1069
1063
|
protoOf(Locale).toString = function () {
|
|
1070
|
-
return this.
|
|
1064
|
+
return this.p2n_1.toString();
|
|
1071
1065
|
};
|
|
1072
1066
|
function isAlphaNumeric(_this__u8e3s4) {
|
|
1073
1067
|
return isAlpha(_this__u8e3s4) ? true : isNumeric(_this__u8e3s4);
|
|
@@ -1295,7 +1289,6 @@
|
|
|
1295
1289
|
//region block: exports
|
|
1296
1290
|
_.$_$ = _.$_$ || {};
|
|
1297
1291
|
_.$_$.a = Companion_getInstance_0;
|
|
1298
|
-
_.$_$.b = toPlatform;
|
|
1299
1292
|
//endregion
|
|
1300
1293
|
return _;
|
|
1301
1294
|
}));
|