@cruglobal/godtools-shared 0.8.3-SNAPSHOT.1105 → 0.8.3-SNAPSHOT.1120

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.
Files changed (29) hide show
  1. package/88b0986a7186d029-atomicfu-js-ir.js +12 -12
  2. package/KustomExport-lib-coroutines.js +19 -0
  3. package/KustomExport-lib-coroutines.js.map +1 -0
  4. package/KustomExport-lib.js +30 -0
  5. package/KustomExport-lib.js.map +1 -0
  6. package/Napier-napier-js-ir.js +171 -5
  7. package/Napier-napier-js-ir.js.map +1 -1
  8. package/android-gto-support-gto-support-fluidsonic-locale.js +19 -5
  9. package/android-gto-support-gto-support-fluidsonic-locale.js.map +1 -1
  10. package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +9058 -5
  11. package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js.map +1 -1
  12. package/colormath-root-colormath-js-ir.js +2177 -5
  13. package/colormath-root-colormath-js-ir.js.map +1 -1
  14. package/fluid-locale-js-ir.js +1293 -5
  15. package/fluid-locale-js-ir.js.map +1 -1
  16. package/kotlin-kotlin-stdlib-js-ir.js +6306 -1955
  17. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  18. package/kotlin-mpp-godtools-tool-parser-common.js +7 -0
  19. package/kotlin-mpp-godtools-tool-parser-common.js.map +1 -1
  20. package/kotlin-mpp-godtools-tool-parser-npm.d.ts +50 -0
  21. package/kotlin-mpp-godtools-tool-parser-parser-expressions.js +1260 -5
  22. package/kotlin-mpp-godtools-tool-parser-parser-expressions.js.map +1 -1
  23. package/kotlin-mpp-godtools-tool-parser-parser.js +9336 -121
  24. package/kotlin-mpp-godtools-tool-parser-parser.js.map +1 -1
  25. package/kotlin-mpp-godtools-tool-parser-state.js +239 -239
  26. package/kotlin-mpp-godtools-tool-parser-state.js.map +1 -1
  27. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2520 -1950
  28. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  29. package/package.json +1 -1
@@ -1,13 +1,1301 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports);
6
- else
7
- root['fluid-locale-js-ir'] = factory(typeof this['fluid-locale-js-ir'] === 'undefined' ? {} : this['fluid-locale-js-ir']);
8
- }(this, function (_) {
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'));
6
+ else {
7
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
+ throw new Error("Error loading module 'fluid-locale-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'fluid-locale-js-ir'.");
9
+ }
10
+ root['fluid-locale-js-ir'] = factory(typeof this['fluid-locale-js-ir'] === 'undefined' ? {} : this['fluid-locale-js-ir'], this['kotlin-kotlin-stdlib-js-ir']);
11
+ }
12
+ }(this, function (_, kotlin_kotlin) {
9
13
  'use strict';
14
+ //region block: imports
15
+ var imul = Math.imul;
16
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.o1;
17
+ var to = kotlin_kotlin.$_$.y8;
18
+ var hashMapOf = kotlin_kotlin.$_$.j3;
19
+ var charSequenceLength = kotlin_kotlin.$_$.i5;
20
+ var Unit_getInstance = kotlin_kotlin.$_$.i2;
21
+ var protoOf = kotlin_kotlin.$_$.e6;
22
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
23
+ var sorted = kotlin_kotlin.$_$.z3;
24
+ var emptyList = kotlin_kotlin.$_$.b3;
25
+ var toString = kotlin_kotlin.$_$.i6;
26
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
27
+ var VOID = kotlin_kotlin.$_$.a9;
28
+ var charArrayOf = kotlin_kotlin.$_$.g5;
29
+ var splitToSequence = kotlin_kotlin.$_$.g7;
30
+ var charSequenceGet = kotlin_kotlin.$_$.h5;
31
+ var equals = kotlin_kotlin.$_$.a7;
32
+ var ensureNotNull = kotlin_kotlin.$_$.r8;
33
+ var StringBuilder = kotlin_kotlin.$_$.v6;
34
+ var objectMeta = kotlin_kotlin.$_$.d6;
35
+ var setMetadataFor = kotlin_kotlin.$_$.f6;
36
+ var equals_0 = kotlin_kotlin.$_$.m5;
37
+ var hashCode = kotlin_kotlin.$_$.r5;
38
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.t2;
39
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
40
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.q;
41
+ var classMeta = kotlin_kotlin.$_$.j5;
42
+ var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.q1;
43
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.p1;
44
+ var checkIndexOverflow = kotlin_kotlin.$_$.s2;
45
+ var equals_1 = kotlin_kotlin.$_$.z6;
46
+ var toCharArray = kotlin_kotlin.$_$.n7;
47
+ var concatToString = kotlin_kotlin.$_$.w6;
48
+ //endregion
10
49
  //region block: pre-declaration
50
+ setMetadataFor(Companion, 'Companion', objectMeta);
51
+ setMetadataFor(LanguageTag, 'LanguageTag', classMeta);
52
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
53
+ setMetadataFor(Locale, 'Locale', classMeta);
54
+ //endregion
55
+ function toPlatform(_this__u8e3s4) {
56
+ return new Intl.Locale(_this__u8e3s4.x2j().toString());
57
+ }
58
+ function Companion() {
59
+ Companion_instance = this;
60
+ this.y2j_1 = _Char___init__impl__6a9atx(120);
61
+ this.z2j_1 = _Char___init__impl__6a9atx(45);
62
+ this.a2k_1 = 'und';
63
+ this.b2k_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
+ }
65
+ protoOf(Companion).c2k = function (extension) {
66
+ var tmp0_safe_receiver = extension;
67
+ var tmp;
68
+ if (tmp0_safe_receiver == null) {
69
+ tmp = null;
70
+ } else {
71
+ var tmp$ret$2;
72
+ // Inline function 'kotlin.text.ifEmpty' call
73
+ var tmp_0;
74
+ var tmp$ret$0;
75
+ // Inline function 'kotlin.text.isEmpty' call
76
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
77
+ if (tmp$ret$0) {
78
+ var tmp$ret$1;
79
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtension.<anonymous>' call
80
+ tmp$ret$1 = null;
81
+ tmp_0 = tmp$ret$1;
82
+ } else {
83
+ tmp_0 = tmp0_safe_receiver;
84
+ }
85
+ tmp$ret$2 = tmp_0;
86
+ tmp = tmp$ret$2;
87
+ }
88
+ var tmp1_safe_receiver = tmp;
89
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
90
+ };
91
+ protoOf(Companion).d2k = function (singleton) {
92
+ var tmp0_safe_receiver = singleton;
93
+ var tmp;
94
+ if (tmp0_safe_receiver == null) {
95
+ tmp = null;
96
+ } else {
97
+ var tmp$ret$2;
98
+ // Inline function 'kotlin.text.ifEmpty' call
99
+ var tmp_0;
100
+ var tmp$ret$0;
101
+ // Inline function 'kotlin.text.isEmpty' call
102
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
103
+ if (tmp$ret$0) {
104
+ var tmp$ret$1;
105
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensionSingleton.<anonymous>' call
106
+ tmp$ret$1 = null;
107
+ tmp_0 = tmp$ret$1;
108
+ } else {
109
+ tmp_0 = tmp0_safe_receiver;
110
+ }
111
+ tmp$ret$2 = tmp_0;
112
+ tmp = tmp$ret$2;
113
+ }
114
+ var tmp1_safe_receiver = tmp;
115
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
116
+ };
117
+ protoOf(Companion).e2k = function (subtag) {
118
+ var tmp0_safe_receiver = subtag;
119
+ var tmp;
120
+ if (tmp0_safe_receiver == null) {
121
+ tmp = null;
122
+ } else {
123
+ var tmp$ret$2;
124
+ // Inline function 'kotlin.text.ifEmpty' call
125
+ var tmp_0;
126
+ var tmp$ret$0;
127
+ // Inline function 'kotlin.text.isEmpty' call
128
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
129
+ if (tmp$ret$0) {
130
+ var tmp$ret$1;
131
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensionSubtag.<anonymous>' call
132
+ tmp$ret$1 = null;
133
+ tmp_0 = tmp$ret$1;
134
+ } else {
135
+ tmp_0 = tmp0_safe_receiver;
136
+ }
137
+ tmp$ret$2 = tmp_0;
138
+ tmp = tmp$ret$2;
139
+ }
140
+ var tmp1_safe_receiver = tmp;
141
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
142
+ };
143
+ protoOf(Companion).f2k = function (extensions) {
144
+ var tmp$ret$5;
145
+ // Inline function 'kotlin.collections.orEmpty' call
146
+ var tmp$ret$1;
147
+ // Inline function 'kotlin.collections.ifEmpty' call
148
+ var tmp;
149
+ if (extensions.m()) {
150
+ var tmp$ret$0;
151
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtensions.<anonymous>' call
152
+ tmp$ret$0 = null;
153
+ tmp = tmp$ret$0;
154
+ } else {
155
+ tmp = extensions;
156
+ }
157
+ tmp$ret$1 = tmp;
158
+ var tmp0_safe_receiver = tmp$ret$1;
159
+ var tmp_0;
160
+ if (tmp0_safe_receiver == null) {
161
+ tmp_0 = null;
162
+ } else {
163
+ var tmp$ret$4;
164
+ // Inline function 'kotlin.collections.mapNotNull' call
165
+ var tmp$ret$3;
166
+ // Inline function 'kotlin.collections.mapNotNullTo' call
167
+ var tmp0_mapNotNullTo = ArrayList_init_$Create$();
168
+ // Inline function 'kotlin.collections.forEach' call
169
+ var tmp0_iterator = tmp0_safe_receiver.f();
170
+ while (tmp0_iterator.g()) {
171
+ var element = tmp0_iterator.h();
172
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
173
+ var tmp0_safe_receiver_0 = this.c2k(element);
174
+ if (tmp0_safe_receiver_0 == null)
175
+ null;
176
+ else {
177
+ var tmp$ret$2;
178
+ // Inline function 'kotlin.let' call
179
+ // Inline function 'kotlin.contracts.contract' call
180
+ tmp0_mapNotNullTo.b(tmp0_safe_receiver_0);
181
+ tmp$ret$2 = Unit_getInstance();
182
+ }
183
+ }
184
+ tmp$ret$3 = tmp0_mapNotNullTo;
185
+ tmp$ret$4 = tmp$ret$3;
186
+ tmp_0 = tmp$ret$4;
187
+ }
188
+ var tmp1_safe_receiver = tmp_0;
189
+ var tmp1_orEmpty = tmp1_safe_receiver == null ? null : sorted(tmp1_safe_receiver);
190
+ var tmp0_elvis_lhs = tmp1_orEmpty;
191
+ tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
192
+ return tmp$ret$5;
193
+ };
194
+ protoOf(Companion).g2k = function (extlang) {
195
+ var tmp0_safe_receiver = extlang;
196
+ var tmp;
197
+ if (tmp0_safe_receiver == null) {
198
+ tmp = null;
199
+ } else {
200
+ var tmp$ret$2;
201
+ // Inline function 'kotlin.text.ifEmpty' call
202
+ var tmp_0;
203
+ var tmp$ret$0;
204
+ // Inline function 'kotlin.text.isEmpty' call
205
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
206
+ if (tmp$ret$0) {
207
+ var tmp$ret$1;
208
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtlang.<anonymous>' call
209
+ tmp$ret$1 = null;
210
+ tmp_0 = tmp$ret$1;
211
+ } else {
212
+ tmp_0 = tmp0_safe_receiver;
213
+ }
214
+ tmp$ret$2 = tmp_0;
215
+ tmp = tmp$ret$2;
216
+ }
217
+ var tmp1_safe_receiver = tmp;
218
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
219
+ };
220
+ protoOf(Companion).h2k = function (extlangs) {
221
+ var tmp$ret$5;
222
+ // Inline function 'kotlin.collections.orEmpty' call
223
+ var tmp$ret$1;
224
+ // Inline function 'kotlin.collections.ifEmpty' call
225
+ var tmp;
226
+ if (extlangs.m()) {
227
+ var tmp$ret$0;
228
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeExtlangs.<anonymous>' call
229
+ tmp$ret$0 = null;
230
+ tmp = tmp$ret$0;
231
+ } else {
232
+ tmp = extlangs;
233
+ }
234
+ tmp$ret$1 = tmp;
235
+ var tmp0_safe_receiver = tmp$ret$1;
236
+ var tmp_0;
237
+ if (tmp0_safe_receiver == null) {
238
+ tmp_0 = null;
239
+ } else {
240
+ var tmp$ret$4;
241
+ // Inline function 'kotlin.collections.mapNotNull' call
242
+ var tmp$ret$3;
243
+ // Inline function 'kotlin.collections.mapNotNullTo' call
244
+ var tmp0_mapNotNullTo = ArrayList_init_$Create$();
245
+ // Inline function 'kotlin.collections.forEach' call
246
+ var tmp0_iterator = tmp0_safe_receiver.f();
247
+ while (tmp0_iterator.g()) {
248
+ var element = tmp0_iterator.h();
249
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
250
+ var tmp0_safe_receiver_0 = this.g2k(element);
251
+ if (tmp0_safe_receiver_0 == null)
252
+ null;
253
+ else {
254
+ var tmp$ret$2;
255
+ // Inline function 'kotlin.let' call
256
+ // Inline function 'kotlin.contracts.contract' call
257
+ tmp0_mapNotNullTo.b(tmp0_safe_receiver_0);
258
+ tmp$ret$2 = Unit_getInstance();
259
+ }
260
+ }
261
+ tmp$ret$3 = tmp0_mapNotNullTo;
262
+ tmp$ret$4 = tmp$ret$3;
263
+ tmp_0 = tmp$ret$4;
264
+ }
265
+ var tmp1_orEmpty = tmp_0;
266
+ var tmp0_elvis_lhs = tmp1_orEmpty;
267
+ tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
268
+ return tmp$ret$5;
269
+ };
270
+ protoOf(Companion).i2k = function (language) {
271
+ var tmp0_safe_receiver = language;
272
+ var tmp;
273
+ if (tmp0_safe_receiver == null) {
274
+ tmp = null;
275
+ } else {
276
+ var tmp$ret$2;
277
+ // Inline function 'kotlin.text.ifEmpty' call
278
+ var tmp_0;
279
+ var tmp$ret$0;
280
+ // Inline function 'kotlin.text.isEmpty' call
281
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
282
+ if (tmp$ret$0) {
283
+ var tmp$ret$1;
284
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeLanguage.<anonymous>' call
285
+ tmp$ret$1 = null;
286
+ tmp_0 = tmp$ret$1;
287
+ } else {
288
+ tmp_0 = tmp0_safe_receiver;
289
+ }
290
+ tmp$ret$2 = tmp_0;
291
+ tmp = tmp$ret$2;
292
+ }
293
+ var tmp1_safe_receiver = tmp;
294
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
295
+ };
296
+ protoOf(Companion).j2k = function (privateuse) {
297
+ var tmp0_safe_receiver = privateuse;
298
+ var tmp;
299
+ if (tmp0_safe_receiver == null) {
300
+ tmp = null;
301
+ } else {
302
+ var tmp$ret$2;
303
+ // Inline function 'kotlin.text.ifEmpty' call
304
+ var tmp_0;
305
+ var tmp$ret$0;
306
+ // Inline function 'kotlin.text.isEmpty' call
307
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
308
+ if (tmp$ret$0) {
309
+ var tmp$ret$1;
310
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizePrivateuse.<anonymous>' call
311
+ tmp$ret$1 = null;
312
+ tmp_0 = tmp$ret$1;
313
+ } else {
314
+ tmp_0 = tmp0_safe_receiver;
315
+ }
316
+ tmp$ret$2 = tmp_0;
317
+ tmp = tmp$ret$2;
318
+ }
319
+ var tmp1_safe_receiver = tmp;
320
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
321
+ };
322
+ protoOf(Companion).k2k = function (prefix) {
323
+ var tmp0_safe_receiver = prefix;
324
+ var tmp;
325
+ if (tmp0_safe_receiver == null) {
326
+ tmp = null;
327
+ } else {
328
+ var tmp$ret$2;
329
+ // Inline function 'kotlin.text.ifEmpty' call
330
+ var tmp_0;
331
+ var tmp$ret$0;
332
+ // Inline function 'kotlin.text.isEmpty' call
333
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
334
+ if (tmp$ret$0) {
335
+ var tmp$ret$1;
336
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizePrivateusePrefix.<anonymous>' call
337
+ tmp$ret$1 = null;
338
+ tmp_0 = tmp$ret$1;
339
+ } else {
340
+ tmp_0 = tmp0_safe_receiver;
341
+ }
342
+ tmp$ret$2 = tmp_0;
343
+ tmp = tmp$ret$2;
344
+ }
345
+ var tmp1_safe_receiver = tmp;
346
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
347
+ };
348
+ protoOf(Companion).l2k = function (subtag) {
349
+ var tmp0_safe_receiver = subtag;
350
+ var tmp;
351
+ if (tmp0_safe_receiver == null) {
352
+ tmp = null;
353
+ } else {
354
+ var tmp$ret$2;
355
+ // Inline function 'kotlin.text.ifEmpty' call
356
+ var tmp_0;
357
+ var tmp$ret$0;
358
+ // Inline function 'kotlin.text.isEmpty' call
359
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
360
+ if (tmp$ret$0) {
361
+ var tmp$ret$1;
362
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizePrivateuseSubtag.<anonymous>' call
363
+ tmp$ret$1 = null;
364
+ tmp_0 = tmp$ret$1;
365
+ } else {
366
+ tmp_0 = tmp0_safe_receiver;
367
+ }
368
+ tmp$ret$2 = tmp_0;
369
+ tmp = tmp$ret$2;
370
+ }
371
+ var tmp1_safe_receiver = tmp;
372
+ return tmp1_safe_receiver == null ? null : toLowerCase_0(tmp1_safe_receiver);
373
+ };
374
+ protoOf(Companion).m2k = function (region) {
375
+ var tmp0_safe_receiver = region;
376
+ var tmp;
377
+ if (tmp0_safe_receiver == null) {
378
+ tmp = null;
379
+ } else {
380
+ var tmp$ret$2;
381
+ // Inline function 'kotlin.text.ifEmpty' call
382
+ var tmp_0;
383
+ var tmp$ret$0;
384
+ // Inline function 'kotlin.text.isEmpty' call
385
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
386
+ if (tmp$ret$0) {
387
+ var tmp$ret$1;
388
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeRegion.<anonymous>' call
389
+ tmp$ret$1 = null;
390
+ tmp_0 = tmp$ret$1;
391
+ } else {
392
+ tmp_0 = tmp0_safe_receiver;
393
+ }
394
+ tmp$ret$2 = tmp_0;
395
+ tmp = tmp$ret$2;
396
+ }
397
+ var tmp1_safe_receiver = tmp;
398
+ return tmp1_safe_receiver == null ? null : toUpperCase_0(tmp1_safe_receiver);
399
+ };
400
+ protoOf(Companion).n2k = function (script) {
401
+ var tmp0_safe_receiver = script;
402
+ var tmp;
403
+ if (tmp0_safe_receiver == null) {
404
+ tmp = null;
405
+ } else {
406
+ var tmp$ret$2;
407
+ // Inline function 'kotlin.text.ifEmpty' call
408
+ var tmp_0;
409
+ var tmp$ret$0;
410
+ // Inline function 'kotlin.text.isEmpty' call
411
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
412
+ if (tmp$ret$0) {
413
+ var tmp$ret$1;
414
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeScript.<anonymous>' call
415
+ tmp$ret$1 = null;
416
+ tmp_0 = tmp$ret$1;
417
+ } else {
418
+ tmp_0 = tmp0_safe_receiver;
419
+ }
420
+ tmp$ret$2 = tmp_0;
421
+ tmp = tmp$ret$2;
422
+ }
423
+ var tmp1_safe_receiver = tmp;
424
+ return tmp1_safe_receiver == null ? null : toUppercaseFirstLowercaseRest(tmp1_safe_receiver);
425
+ };
426
+ protoOf(Companion).o2k = function (variant) {
427
+ var tmp0_safe_receiver = variant;
428
+ var tmp;
429
+ if (tmp0_safe_receiver == null) {
430
+ tmp = null;
431
+ } else {
432
+ var tmp$ret$2;
433
+ // Inline function 'kotlin.text.ifEmpty' call
434
+ var tmp_0;
435
+ var tmp$ret$0;
436
+ // Inline function 'kotlin.text.isEmpty' call
437
+ tmp$ret$0 = charSequenceLength(tmp0_safe_receiver) === 0;
438
+ if (tmp$ret$0) {
439
+ var tmp$ret$1;
440
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeVariant.<anonymous>' call
441
+ tmp$ret$1 = null;
442
+ tmp_0 = tmp$ret$1;
443
+ } else {
444
+ tmp_0 = tmp0_safe_receiver;
445
+ }
446
+ tmp$ret$2 = tmp_0;
447
+ tmp = tmp$ret$2;
448
+ }
449
+ return tmp;
450
+ };
451
+ protoOf(Companion).p2k = function (variants) {
452
+ var tmp$ret$5;
453
+ // Inline function 'kotlin.collections.orEmpty' call
454
+ var tmp$ret$1;
455
+ // Inline function 'kotlin.collections.ifEmpty' call
456
+ var tmp;
457
+ if (variants.m()) {
458
+ var tmp$ret$0;
459
+ // Inline function 'io.fluidsonic.locale.Companion.canonicalizeVariants.<anonymous>' call
460
+ tmp$ret$0 = null;
461
+ tmp = tmp$ret$0;
462
+ } else {
463
+ tmp = variants;
464
+ }
465
+ tmp$ret$1 = tmp;
466
+ var tmp0_safe_receiver = tmp$ret$1;
467
+ var tmp_0;
468
+ if (tmp0_safe_receiver == null) {
469
+ tmp_0 = null;
470
+ } else {
471
+ var tmp$ret$4;
472
+ // Inline function 'kotlin.collections.mapNotNull' call
473
+ var tmp$ret$3;
474
+ // Inline function 'kotlin.collections.mapNotNullTo' call
475
+ var tmp0_mapNotNullTo = ArrayList_init_$Create$();
476
+ // Inline function 'kotlin.collections.forEach' call
477
+ var tmp0_iterator = tmp0_safe_receiver.f();
478
+ while (tmp0_iterator.g()) {
479
+ var element = tmp0_iterator.h();
480
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
481
+ var tmp0_safe_receiver_0 = this.o2k(element);
482
+ if (tmp0_safe_receiver_0 == null)
483
+ null;
484
+ else {
485
+ var tmp$ret$2;
486
+ // Inline function 'kotlin.let' call
487
+ // Inline function 'kotlin.contracts.contract' call
488
+ tmp0_mapNotNullTo.b(tmp0_safe_receiver_0);
489
+ tmp$ret$2 = Unit_getInstance();
490
+ }
491
+ }
492
+ tmp$ret$3 = tmp0_mapNotNullTo;
493
+ tmp$ret$4 = tmp$ret$3;
494
+ tmp_0 = tmp$ret$4;
495
+ }
496
+ var tmp1_orEmpty = tmp_0;
497
+ var tmp0_elvis_lhs = tmp1_orEmpty;
498
+ tmp$ret$5 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
499
+ return tmp$ret$5;
500
+ };
501
+ protoOf(Companion).q2k = function (language, script, region, variants, extlangs, extensions, privateuse) {
502
+ var canonicalLanguage = this.i2k(language);
503
+ var canonicalScript = this.n2k(script);
504
+ var canonicalRegion = this.m2k(region);
505
+ var canonicalVariants = this.p2k(variants);
506
+ var canonicalExtlangs = this.h2k(extlangs);
507
+ var canonicalExtensions = this.f2k(extensions);
508
+ var canonicalPrivateuse = this.j2k(privateuse);
509
+ // Inline function 'kotlin.require' call
510
+ var tmp0_require = !(canonicalLanguage == null) ? this.r2k(canonicalLanguage) : false;
511
+ // Inline function 'kotlin.contracts.contract' call
512
+ if (!tmp0_require) {
513
+ var tmp$ret$0;
514
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
515
+ tmp$ret$0 = 'Invalid language: ' + language;
516
+ var message = tmp$ret$0;
517
+ throw IllegalArgumentException_init_$Create$(toString(message));
518
+ }
519
+ // Inline function 'kotlin.require' call
520
+ var tmp1_require = canonicalScript == null ? true : this.s2k(canonicalScript);
521
+ // Inline function 'kotlin.contracts.contract' call
522
+ if (!tmp1_require) {
523
+ var tmp$ret$1;
524
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
525
+ tmp$ret$1 = 'Invalid script: ' + script;
526
+ var message_0 = tmp$ret$1;
527
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
528
+ }
529
+ // Inline function 'kotlin.require' call
530
+ var tmp2_require = canonicalRegion == null ? true : this.t2k(canonicalRegion);
531
+ // Inline function 'kotlin.contracts.contract' call
532
+ if (!tmp2_require) {
533
+ var tmp$ret$2;
534
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
535
+ tmp$ret$2 = 'Invalid region: ' + region;
536
+ var message_1 = tmp$ret$2;
537
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
538
+ }
539
+ var tmp0_iterator = canonicalVariants.f();
540
+ while (tmp0_iterator.g()) {
541
+ var variant = tmp0_iterator.h();
542
+ // Inline function 'kotlin.require' call
543
+ var tmp3_require = this.u2k(variant);
544
+ // Inline function 'kotlin.contracts.contract' call
545
+ if (!tmp3_require) {
546
+ var tmp$ret$3;
547
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
548
+ tmp$ret$3 = 'Invalid variant: ' + variant;
549
+ var message_2 = tmp$ret$3;
550
+ throw IllegalArgumentException_init_$Create$(toString(message_2));
551
+ }
552
+ }
553
+ var tmp1_iterator = canonicalExtlangs.f();
554
+ while (tmp1_iterator.g()) {
555
+ var extlang = tmp1_iterator.h();
556
+ // Inline function 'kotlin.require' call
557
+ var tmp4_require = this.v2k(extlang);
558
+ // Inline function 'kotlin.contracts.contract' call
559
+ if (!tmp4_require) {
560
+ var tmp$ret$4;
561
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
562
+ tmp$ret$4 = 'Invalid extlang: ' + extlang;
563
+ var message_3 = tmp$ret$4;
564
+ throw IllegalArgumentException_init_$Create$(toString(message_3));
565
+ }
566
+ }
567
+ var tmp2_iterator = canonicalExtensions.f();
568
+ while (tmp2_iterator.g()) {
569
+ var extension = tmp2_iterator.h();
570
+ // Inline function 'kotlin.require' call
571
+ var tmp5_require = this.w2k(extension);
572
+ // Inline function 'kotlin.contracts.contract' call
573
+ if (!tmp5_require) {
574
+ var tmp$ret$5;
575
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
576
+ tmp$ret$5 = 'Invalid extension: ' + extension;
577
+ var message_4 = tmp$ret$5;
578
+ throw IllegalArgumentException_init_$Create$(toString(message_4));
579
+ }
580
+ }
581
+ // Inline function 'kotlin.require' call
582
+ var tmp6_require = canonicalPrivateuse == null ? true : this.x2k(canonicalPrivateuse);
583
+ // Inline function 'kotlin.contracts.contract' call
584
+ if (!tmp6_require) {
585
+ var tmp$ret$6;
586
+ // Inline function 'io.fluidsonic.locale.Companion.forLanguage.<anonymous>' call
587
+ tmp$ret$6 = 'Invalid privateuse: ' + privateuse;
588
+ var message_5 = tmp$ret$6;
589
+ throw IllegalArgumentException_init_$Create$(toString(message_5));
590
+ }
591
+ return new LanguageTag(canonicalExtensions, canonicalExtlangs, canonicalLanguage, canonicalPrivateuse, canonicalRegion, canonicalScript, canonicalVariants);
592
+ };
593
+ protoOf(Companion).y2k = function (language, script, region, variants, extlangs, extensions, privateuse, $super) {
594
+ script = script === VOID ? null : script;
595
+ region = region === VOID ? null : region;
596
+ variants = variants === VOID ? emptyList() : variants;
597
+ extlangs = extlangs === VOID ? emptyList() : extlangs;
598
+ extensions = extensions === VOID ? emptyList() : extensions;
599
+ privateuse = privateuse === VOID ? null : privateuse;
600
+ return $super === VOID ? this.q2k(language, script, region, variants, extlangs, extensions, privateuse) : $super.q2k.call(this, language, script, region, variants, extlangs, extensions, privateuse);
601
+ };
602
+ protoOf(Companion).w2k = function (extension) {
603
+ var tokens = splitToSequence(extension, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
604
+ if (!this.z2k(tokens.h()))
605
+ return false;
606
+ if (!tokens.g())
607
+ return false;
608
+ var tmp$ret$0;
609
+ // Inline function 'kotlin.collections.iterator' call
610
+ tmp$ret$0 = tokens;
611
+ var tmp0_iterator = tmp$ret$0;
612
+ while (tmp0_iterator.g()) {
613
+ var token = tmp0_iterator.h();
614
+ if (!this.a2l(token))
615
+ return false;
616
+ }
617
+ return true;
618
+ };
619
+ protoOf(Companion).b2l = function (singleton) {
620
+ return isAlphaNumeric(singleton) ? !this.c2l(singleton) : false;
621
+ };
622
+ protoOf(Companion).z2k = function (singleton) {
623
+ return singleton.length === 1 ? this.b2l(charSequenceGet(singleton, 0)) : false;
624
+ };
625
+ protoOf(Companion).a2l = function (extension) {
626
+ var tmp;
627
+ var containsArg = extension.length;
628
+ if (2 <= containsArg ? containsArg <= 8 : false) {
629
+ tmp = isAlphaNumeric_0(extension);
630
+ } else {
631
+ tmp = false;
632
+ }
633
+ return tmp;
634
+ };
635
+ protoOf(Companion).v2k = function (extlang) {
636
+ return extlang.length === 3 ? isAlpha_0(extlang) : false;
637
+ };
638
+ protoOf(Companion).r2k = function (language) {
639
+ var tmp;
640
+ var containsArg = language.length;
641
+ if (2 <= containsArg ? containsArg <= 8 : false) {
642
+ tmp = isAlpha_0(language);
643
+ } else {
644
+ tmp = false;
645
+ }
646
+ return tmp;
647
+ };
648
+ protoOf(Companion).x2k = function (privateuse) {
649
+ var tokens = splitToSequence(privateuse, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
650
+ if (!this.d2l(tokens.h()))
651
+ return false;
652
+ if (!tokens.g())
653
+ return false;
654
+ var tmp$ret$0;
655
+ // Inline function 'kotlin.collections.iterator' call
656
+ tmp$ret$0 = tokens;
657
+ var tmp0_iterator = tmp$ret$0;
658
+ while (tmp0_iterator.g()) {
659
+ var token = tmp0_iterator.h();
660
+ if (!this.e2l(token))
661
+ return false;
662
+ }
663
+ return true;
664
+ };
665
+ protoOf(Companion).c2l = function (prefix) {
666
+ return equals(prefix, _Char___init__impl__6a9atx(120), true);
667
+ };
668
+ protoOf(Companion).d2l = function (prefix) {
669
+ return prefix.length === 1 ? this.c2l(charSequenceGet(prefix, 0)) : false;
670
+ };
671
+ protoOf(Companion).e2l = function (privateuse) {
672
+ var tmp;
673
+ var containsArg = privateuse.length;
674
+ if (1 <= containsArg ? containsArg <= 8 : false) {
675
+ tmp = isAlphaNumeric_0(privateuse);
676
+ } else {
677
+ tmp = false;
678
+ }
679
+ return tmp;
680
+ };
681
+ protoOf(Companion).t2k = function (region) {
682
+ var tmp0_subject = region.length;
683
+ switch (tmp0_subject) {
684
+ case 2:
685
+ return isAlpha_0(region);
686
+ case 3:
687
+ return isNumeric_0(region);
688
+ default:
689
+ return false;
690
+ }
691
+ };
692
+ protoOf(Companion).s2k = function (script) {
693
+ return script.length === 4 ? isAlpha_0(script) : false;
694
+ };
695
+ protoOf(Companion).u2k = function (variant) {
696
+ var tmp0_subject = variant.length;
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
+ };
699
+ protoOf(Companion).f2l = function (string) {
700
+ var tmp0_elvis_lhs = this.b2k_1.c2(toLowerCase_0(string));
701
+ var string_0 = tmp0_elvis_lhs == null ? string : tmp0_elvis_lhs;
702
+ var tokens = splitToSequence(string_0, charArrayOf([_Char___init__impl__6a9atx(45)])).f();
703
+ var extlangs = null;
704
+ var extensions = null;
705
+ var language = null;
706
+ var privateuse = null;
707
+ var region = null;
708
+ var script = null;
709
+ var variants = null;
710
+ var token;
711
+ token = tokens.h();
712
+ if (this.r2k(token)) {
713
+ language = this.i2k(token);
714
+ token = nextOrNull(tokens);
715
+ if (!(token == null) ? this.v2k(token) : false) {
716
+ var tmp$ret$0;
717
+ // Inline function 'kotlin.collections.mutableListOf' call
718
+ tmp$ret$0 = ArrayList_init_$Create$();
719
+ extlangs = tmp$ret$0;
720
+ do {
721
+ extlangs.b(ensureNotNull(this.g2k(token)));
722
+ token = nextOrNull(tokens);
723
+ }
724
+ while ((!(token == null) ? extlangs.i() < 3 : false) ? this.v2k(token) : false);
725
+ }
726
+ if (!(token == null) ? this.s2k(token) : false) {
727
+ script = this.n2k(token);
728
+ token = nextOrNull(tokens);
729
+ }
730
+ if (!(token == null) ? this.t2k(token) : false) {
731
+ region = this.m2k(token);
732
+ token = nextOrNull(tokens);
733
+ }
734
+ if (!(token == null) ? this.u2k(token) : false) {
735
+ var tmp$ret$1;
736
+ // Inline function 'kotlin.collections.mutableListOf' call
737
+ tmp$ret$1 = ArrayList_init_$Create$();
738
+ variants = tmp$ret$1;
739
+ do {
740
+ variants.b(ensureNotNull(this.o2k(token)));
741
+ token = nextOrNull(tokens);
742
+ }
743
+ while (!(token == null) ? this.u2k(token) : false);
744
+ }
745
+ if (!(token == null) ? this.z2k(token) : false) {
746
+ var tmp$ret$2;
747
+ // Inline function 'kotlin.collections.mutableListOf' call
748
+ tmp$ret$2 = ArrayList_init_$Create$();
749
+ extensions = tmp$ret$2;
750
+ do {
751
+ var extensionBuilder = new StringBuilder(ensureNotNull(this.d2k(token)));
752
+ token = nextOrNull(tokens);
753
+ if (!(token == null) ? this.a2l(token) : false) {
754
+ do {
755
+ extensionBuilder.v4(_Char___init__impl__6a9atx(45));
756
+ extensionBuilder.ib(this.e2k(token));
757
+ token = nextOrNull(tokens);
758
+ }
759
+ while (!(token == null) ? this.a2l(token) : false);
760
+ } else
761
+ return null;
762
+ extensions.b(extensionBuilder.toString());
763
+ }
764
+ while (!(token == null) ? this.z2k(token) : false);
765
+ }
766
+ }
767
+ if (!(token == null) ? this.d2l(token) : false) {
768
+ var privateuseBuilder = new StringBuilder(ensureNotNull(this.k2k(token)));
769
+ token = nextOrNull(tokens);
770
+ if (!(token == null) ? this.e2l(token) : false) {
771
+ do {
772
+ privateuseBuilder.v4(_Char___init__impl__6a9atx(45));
773
+ privateuseBuilder.ib(this.l2k(token));
774
+ token = nextOrNull(tokens);
775
+ }
776
+ while (!(token == null) ? this.e2l(token) : false);
777
+ } else
778
+ return null;
779
+ privateuse = privateuseBuilder.toString();
780
+ }
781
+ if (!(token == null))
782
+ return null;
783
+ var tmp$ret$3;
784
+ // Inline function 'kotlin.collections.orEmpty' call
785
+ var tmp0_orEmpty = extensions;
786
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty;
787
+ tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
788
+ var tmp = tmp$ret$3;
789
+ var tmp$ret$4;
790
+ // Inline function 'kotlin.collections.orEmpty' call
791
+ var tmp1_orEmpty = extlangs;
792
+ var tmp0_elvis_lhs_1 = tmp1_orEmpty;
793
+ tmp$ret$4 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
794
+ var tmp_0 = tmp$ret$4;
795
+ var tmp_1 = language;
796
+ var tmp_2 = privateuse;
797
+ var tmp_3 = region;
798
+ var tmp_4 = script;
799
+ var tmp$ret$5;
800
+ // Inline function 'kotlin.collections.orEmpty' call
801
+ var tmp2_orEmpty = variants;
802
+ var tmp0_elvis_lhs_2 = tmp2_orEmpty;
803
+ tmp$ret$5 = tmp0_elvis_lhs_2 == null ? emptyList() : tmp0_elvis_lhs_2;
804
+ return new LanguageTag(tmp, tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp$ret$5);
805
+ };
806
+ var Companion_instance;
807
+ function Companion_getInstance() {
808
+ if (Companion_instance == null)
809
+ new Companion();
810
+ return Companion_instance;
811
+ }
812
+ function LanguageTag(extensions, extlangs, language, privateuse, region, script, variants) {
813
+ Companion_getInstance();
814
+ this.g2l_1 = extensions;
815
+ this.h2l_1 = extlangs;
816
+ this.i2l_1 = language;
817
+ this.j2l_1 = privateuse;
818
+ this.k2l_1 = region;
819
+ this.l2l_1 = script;
820
+ this.m2l_1 = variants;
821
+ var tmp$ret$0;
822
+ // Inline function 'io.fluidsonic.locale.freeze' call
823
+ tmp$ret$0 = Unit_getInstance();
824
+ }
825
+ protoOf(LanguageTag).equals = function (other) {
826
+ var tmp;
827
+ if (this === other) {
828
+ tmp = true;
829
+ } else {
830
+ var tmp_0;
831
+ var tmp_1;
832
+ var tmp_2;
833
+ var tmp_3;
834
+ var tmp_4;
835
+ var tmp_5;
836
+ var tmp_6;
837
+ if (other instanceof LanguageTag) {
838
+ tmp_6 = equals_0(this.g2l_1, other.g2l_1);
839
+ } else {
840
+ tmp_6 = false;
841
+ }
842
+ if (tmp_6) {
843
+ tmp_5 = equals_0(this.h2l_1, other.h2l_1);
844
+ } else {
845
+ tmp_5 = false;
846
+ }
847
+ if (tmp_5) {
848
+ tmp_4 = this.i2l_1 == other.i2l_1;
849
+ } else {
850
+ tmp_4 = false;
851
+ }
852
+ if (tmp_4) {
853
+ tmp_3 = this.j2l_1 == other.j2l_1;
854
+ } else {
855
+ tmp_3 = false;
856
+ }
857
+ if (tmp_3) {
858
+ tmp_2 = this.k2l_1 == other.k2l_1;
859
+ } else {
860
+ tmp_2 = false;
861
+ }
862
+ if (tmp_2) {
863
+ tmp_1 = this.l2l_1 == other.l2l_1;
864
+ } else {
865
+ tmp_1 = false;
866
+ }
867
+ if (tmp_1) {
868
+ tmp_0 = equals_2(this.m2l_1, other.m2l_1, true);
869
+ } else {
870
+ tmp_0 = false;
871
+ }
872
+ tmp = tmp_0;
873
+ }
874
+ return tmp;
875
+ };
876
+ protoOf(LanguageTag).hashCode = function () {
877
+ var result = hashCode(this.g2l_1);
878
+ result = imul(31, result) + hashCode(this.h2l_1) | 0;
879
+ var tmp = imul(31, result);
880
+ var tmp$ret$0;
881
+ // Inline function 'kotlin.hashCode' call
882
+ var tmp0_hashCode = this.i2l_1;
883
+ var tmp0_safe_receiver = tmp0_hashCode;
884
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
885
+ tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
886
+ result = tmp + tmp$ret$0 | 0;
887
+ var tmp_0 = imul(31, result);
888
+ var tmp$ret$1;
889
+ // Inline function 'kotlin.hashCode' call
890
+ var tmp1_hashCode = this.j2l_1;
891
+ var tmp0_safe_receiver_0 = tmp1_hashCode;
892
+ var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
893
+ tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
894
+ result = tmp_0 + tmp$ret$1 | 0;
895
+ var tmp_1 = imul(31, result);
896
+ var tmp$ret$2;
897
+ // Inline function 'kotlin.hashCode' call
898
+ var tmp2_hashCode = this.k2l_1;
899
+ var tmp0_safe_receiver_1 = tmp2_hashCode;
900
+ var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
901
+ tmp$ret$2 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
902
+ result = tmp_1 + tmp$ret$2 | 0;
903
+ var tmp_2 = imul(31, result);
904
+ var tmp$ret$3;
905
+ // Inline function 'kotlin.hashCode' call
906
+ var tmp3_hashCode = this.l2l_1;
907
+ var tmp0_safe_receiver_2 = tmp3_hashCode;
908
+ var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
909
+ tmp$ret$3 = tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2;
910
+ result = tmp_2 + tmp$ret$3 | 0;
911
+ var tmp_3 = imul(31, result);
912
+ var tmp$ret$8;
913
+ // Inline function 'kotlin.hashCode' call
914
+ var tmp$ret$5;
915
+ // Inline function 'kotlin.collections.ifEmpty' call
916
+ var tmp4_ifEmpty = this.m2l_1;
917
+ var tmp_4;
918
+ if (tmp4_ifEmpty.m()) {
919
+ var tmp$ret$4;
920
+ // Inline function 'io.fluidsonic.locale.LanguageTag.hashCode.<anonymous>' call
921
+ tmp$ret$4 = null;
922
+ tmp_4 = tmp$ret$4;
923
+ } else {
924
+ tmp_4 = tmp4_ifEmpty;
925
+ }
926
+ tmp$ret$5 = tmp_4;
927
+ var tmp0_safe_receiver_3 = tmp$ret$5;
928
+ var tmp_5;
929
+ if (tmp0_safe_receiver_3 == null) {
930
+ tmp_5 = null;
931
+ } else {
932
+ var tmp$ret$7;
933
+ // Inline function 'kotlin.collections.map' call
934
+ var tmp$ret$6;
935
+ // Inline function 'kotlin.collections.mapTo' call
936
+ var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver_3, 10));
937
+ var tmp0_iterator = tmp0_safe_receiver_3.f();
938
+ while (tmp0_iterator.g()) {
939
+ var item = tmp0_iterator.h();
940
+ tmp5_mapTo.b(toLowerCase_0(item));
941
+ }
942
+ tmp$ret$6 = tmp5_mapTo;
943
+ tmp$ret$7 = tmp$ret$6;
944
+ tmp_5 = tmp$ret$7;
945
+ }
946
+ var tmp6_hashCode = tmp_5;
947
+ var tmp0_safe_receiver_4 = tmp6_hashCode;
948
+ var tmp1_elvis_lhs_3 = tmp0_safe_receiver_4 == null ? null : hashCode(tmp0_safe_receiver_4);
949
+ tmp$ret$8 = tmp1_elvis_lhs_3 == null ? 0 : tmp1_elvis_lhs_3;
950
+ result = tmp_3 + tmp$ret$8 | 0;
951
+ return result;
952
+ };
953
+ protoOf(LanguageTag).toString = function () {
954
+ var tmp$ret$2;
955
+ // Inline function 'kotlin.text.buildString' call
956
+ // Inline function 'kotlin.contracts.contract' call
957
+ var tmp$ret$1;
958
+ // Inline function 'kotlin.apply' call
959
+ var tmp0_apply = StringBuilder_init_$Create$();
960
+ // Inline function 'kotlin.contracts.contract' call
961
+ // Inline function 'io.fluidsonic.locale.LanguageTag.toString.<anonymous>' call
962
+ if (!(this.i2l_1 == null)) {
963
+ tmp0_apply.ib(this.i2l_1);
964
+ var tmp0_iterator = this.h2l_1.f();
965
+ while (tmp0_iterator.g()) {
966
+ var extlang = tmp0_iterator.h();
967
+ Companion_getInstance();
968
+ tmp0_apply.v4(_Char___init__impl__6a9atx(45));
969
+ tmp0_apply.ib(extlang);
970
+ }
971
+ if (!(this.l2l_1 == null)) {
972
+ Companion_getInstance();
973
+ tmp0_apply.v4(_Char___init__impl__6a9atx(45));
974
+ tmp0_apply.ib(this.l2l_1);
975
+ }
976
+ if (!(this.k2l_1 == null)) {
977
+ Companion_getInstance();
978
+ tmp0_apply.v4(_Char___init__impl__6a9atx(45));
979
+ tmp0_apply.ib(this.k2l_1);
980
+ }
981
+ var tmp1_iterator = this.m2l_1.f();
982
+ while (tmp1_iterator.g()) {
983
+ var variant = tmp1_iterator.h();
984
+ Companion_getInstance();
985
+ tmp0_apply.v4(_Char___init__impl__6a9atx(45));
986
+ tmp0_apply.ib(variant);
987
+ }
988
+ var tmp2_iterator = this.g2l_1.f();
989
+ while (tmp2_iterator.g()) {
990
+ var extension = tmp2_iterator.h();
991
+ Companion_getInstance();
992
+ tmp0_apply.v4(_Char___init__impl__6a9atx(45));
993
+ tmp0_apply.ib(extension);
994
+ }
995
+ }
996
+ if (!(this.j2l_1 == null)) {
997
+ var tmp$ret$0;
998
+ // Inline function 'kotlin.text.isNotEmpty' call
999
+ tmp$ret$0 = charSequenceLength(tmp0_apply) > 0;
1000
+ if (tmp$ret$0) {
1001
+ Companion_getInstance();
1002
+ tmp0_apply.v4(_Char___init__impl__6a9atx(45));
1003
+ }
1004
+ tmp0_apply.ib(this.j2l_1);
1005
+ }
1006
+ tmp$ret$1 = tmp0_apply;
1007
+ tmp$ret$2 = tmp$ret$1.toString();
1008
+ return tmp$ret$2;
1009
+ };
1010
+ function Companion_0() {
1011
+ Companion_instance_0 = this;
1012
+ var tmp = this;
1013
+ var tmp_0 = Companion_getInstance();
1014
+ Companion_getInstance();
1015
+ tmp.n2l_1 = new Locale(tmp_0.y2k('und'));
1016
+ }
1017
+ protoOf(Companion_0).o2l = function (tag) {
1018
+ var tmp0_subject = tag;
1019
+ return tmp0_subject.equals(this.n2l_1.w2j_1) ? this.n2l_1 : new Locale(tag);
1020
+ };
1021
+ protoOf(Companion_0).p2l = function (tag) {
1022
+ var tmp0_safe_receiver = Companion_getInstance().f2l(tag);
1023
+ var tmp;
1024
+ if (tmp0_safe_receiver == null) {
1025
+ tmp = null;
1026
+ } else {
1027
+ var tmp$ret$0;
1028
+ // Inline function 'kotlin.let' call
1029
+ // Inline function 'kotlin.contracts.contract' call
1030
+ tmp$ret$0 = this.o2l(tmp0_safe_receiver);
1031
+ tmp = tmp$ret$0;
1032
+ }
1033
+ return tmp;
1034
+ };
1035
+ var Companion_instance_0;
1036
+ function Companion_getInstance_0() {
1037
+ if (Companion_instance_0 == null)
1038
+ new Companion_0();
1039
+ return Companion_instance_0;
1040
+ }
1041
+ function Locale(languageTag) {
1042
+ Companion_getInstance_0();
1043
+ this.w2j_1 = languageTag;
1044
+ var tmp$ret$0;
1045
+ // Inline function 'io.fluidsonic.locale.freeze' call
1046
+ tmp$ret$0 = Unit_getInstance();
1047
+ }
1048
+ protoOf(Locale).equals = function (other) {
1049
+ var tmp;
1050
+ if (this === other) {
1051
+ tmp = true;
1052
+ } else {
1053
+ var tmp_0;
1054
+ if (other instanceof Locale) {
1055
+ tmp_0 = this.w2j_1.equals(other.w2j_1);
1056
+ } else {
1057
+ tmp_0 = false;
1058
+ }
1059
+ tmp = tmp_0;
1060
+ }
1061
+ return tmp;
1062
+ };
1063
+ protoOf(Locale).hashCode = function () {
1064
+ return this.w2j_1.hashCode();
1065
+ };
1066
+ protoOf(Locale).x2j = function () {
1067
+ return this.w2j_1;
1068
+ };
1069
+ protoOf(Locale).toString = function () {
1070
+ return this.w2j_1.toString();
1071
+ };
1072
+ function isAlphaNumeric(_this__u8e3s4) {
1073
+ return isAlpha(_this__u8e3s4) ? true : isNumeric(_this__u8e3s4);
1074
+ }
1075
+ function isNumeric(_this__u8e3s4) {
1076
+ return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
1077
+ }
1078
+ function isLowerCase(_this__u8e3s4) {
1079
+ return _Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false;
1080
+ }
1081
+ function toLowerCase(_this__u8e3s4) {
1082
+ return isUpperCase(_this__u8e3s4) ? Char__plus_impl_qi7pgj(_this__u8e3s4, 32) : _this__u8e3s4;
1083
+ }
1084
+ function isUpperCase(_this__u8e3s4) {
1085
+ return _Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false;
1086
+ }
1087
+ function toUpperCase(_this__u8e3s4) {
1088
+ return isLowerCase(_this__u8e3s4) ? Char__minus_impl_a2frrh(_this__u8e3s4, 32) : _this__u8e3s4;
1089
+ }
1090
+ function isAlpha(_this__u8e3s4) {
1091
+ return (_Char___init__impl__6a9atx(97) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(122) : false) ? true : _Char___init__impl__6a9atx(65) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(90) : false;
1092
+ }
1093
+ function nextOrNull(_this__u8e3s4) {
1094
+ return _this__u8e3s4.g() ? _this__u8e3s4.h() : null;
1095
+ }
1096
+ function equals_2(_this__u8e3s4, other, ignoreCase) {
1097
+ if (!(_this__u8e3s4.i() === other.i()))
1098
+ return false;
1099
+ // Inline function 'kotlin.collections.forEachIndexed' call
1100
+ var index = 0;
1101
+ var tmp0_iterator = _this__u8e3s4.f();
1102
+ while (tmp0_iterator.g()) {
1103
+ var item = tmp0_iterator.h();
1104
+ // Inline function 'io.fluidsonic.locale.equals.<anonymous>' call
1105
+ var tmp1 = index;
1106
+ index = tmp1 + 1 | 0;
1107
+ var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1);
1108
+ if (!equals_1(item, other.j(tmp0__anonymous__q1qw7t), ignoreCase))
1109
+ return false;
1110
+ }
1111
+ return true;
1112
+ }
1113
+ function toLowerCase_0(_this__u8e3s4) {
1114
+ var tmp$ret$0;
1115
+ $l$block: {
1116
+ // Inline function 'kotlin.text.all' call
1117
+ var indexedObject = _this__u8e3s4;
1118
+ var inductionVariable = 0;
1119
+ var last = indexedObject.length;
1120
+ while (inductionVariable < last) {
1121
+ var element = charSequenceGet(indexedObject, inductionVariable);
1122
+ inductionVariable = inductionVariable + 1 | 0;
1123
+ if (!isLowerCase(element)) {
1124
+ tmp$ret$0 = false;
1125
+ break $l$block;
1126
+ }
1127
+ }
1128
+ tmp$ret$0 = true;
1129
+ }
1130
+ if (tmp$ret$0)
1131
+ return _this__u8e3s4;
1132
+ var tmp$ret$1;
1133
+ // Inline function 'io.fluidsonic.locale.mapCharacters' call
1134
+ var characters = toCharArray(_this__u8e3s4);
1135
+ // Inline function 'kotlin.collections.forEachIndexed' call
1136
+ var index = 0;
1137
+ var indexedObject_0 = characters;
1138
+ var inductionVariable_0 = 0;
1139
+ var last_0 = indexedObject_0.length;
1140
+ while (inductionVariable_0 < last_0) {
1141
+ var item = indexedObject_0[inductionVariable_0];
1142
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1143
+ // Inline function 'io.fluidsonic.locale.mapCharacters.<anonymous>' call
1144
+ var tmp1 = index;
1145
+ index = tmp1 + 1 | 0;
1146
+ var tmp0__anonymous__q1qw7t = tmp1;
1147
+ characters[tmp0__anonymous__q1qw7t] = toLowerCase(item);
1148
+ }
1149
+ tmp$ret$1 = concatToString(characters);
1150
+ return tmp$ret$1;
1151
+ }
1152
+ function toUpperCase_0(_this__u8e3s4) {
1153
+ var tmp$ret$0;
1154
+ $l$block: {
1155
+ // Inline function 'kotlin.text.all' call
1156
+ var indexedObject = _this__u8e3s4;
1157
+ var inductionVariable = 0;
1158
+ var last = indexedObject.length;
1159
+ while (inductionVariable < last) {
1160
+ var element = charSequenceGet(indexedObject, inductionVariable);
1161
+ inductionVariable = inductionVariable + 1 | 0;
1162
+ if (!isUpperCase(element)) {
1163
+ tmp$ret$0 = false;
1164
+ break $l$block;
1165
+ }
1166
+ }
1167
+ tmp$ret$0 = true;
1168
+ }
1169
+ if (tmp$ret$0)
1170
+ return _this__u8e3s4;
1171
+ var tmp$ret$1;
1172
+ // Inline function 'io.fluidsonic.locale.mapCharacters' call
1173
+ var characters = toCharArray(_this__u8e3s4);
1174
+ // Inline function 'kotlin.collections.forEachIndexed' call
1175
+ var index = 0;
1176
+ var indexedObject_0 = characters;
1177
+ var inductionVariable_0 = 0;
1178
+ var last_0 = indexedObject_0.length;
1179
+ while (inductionVariable_0 < last_0) {
1180
+ var item = indexedObject_0[inductionVariable_0];
1181
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1182
+ // Inline function 'io.fluidsonic.locale.mapCharacters.<anonymous>' call
1183
+ var tmp1 = index;
1184
+ index = tmp1 + 1 | 0;
1185
+ var tmp0__anonymous__q1qw7t = tmp1;
1186
+ characters[tmp0__anonymous__q1qw7t] = toUpperCase(item);
1187
+ }
1188
+ tmp$ret$1 = concatToString(characters);
1189
+ return tmp$ret$1;
1190
+ }
1191
+ function toUppercaseFirstLowercaseRest(_this__u8e3s4) {
1192
+ var needsConversion = false;
1193
+ // Inline function 'kotlin.text.forEachIndexed' call
1194
+ var index = 0;
1195
+ var indexedObject = _this__u8e3s4;
1196
+ var inductionVariable = 0;
1197
+ var last = indexedObject.length;
1198
+ while (inductionVariable < last) {
1199
+ var item = charSequenceGet(indexedObject, inductionVariable);
1200
+ inductionVariable = inductionVariable + 1 | 0;
1201
+ // Inline function 'io.fluidsonic.locale.toUppercaseFirstLowercaseRest.<anonymous>' call
1202
+ var tmp1 = index;
1203
+ index = tmp1 + 1 | 0;
1204
+ var tmp0__anonymous__q1qw7t = tmp1;
1205
+ var tmp0_subject = tmp0__anonymous__q1qw7t;
1206
+ if (tmp0_subject === 0) {
1207
+ if (_Char___init__impl__6a9atx(97) <= item ? item <= _Char___init__impl__6a9atx(122) : false)
1208
+ needsConversion = true;
1209
+ } else if (_Char___init__impl__6a9atx(65) <= item ? item <= _Char___init__impl__6a9atx(90) : false)
1210
+ needsConversion = true;
1211
+ }
1212
+ if (!needsConversion)
1213
+ return _this__u8e3s4;
1214
+ var tmp$ret$1;
1215
+ // Inline function 'io.fluidsonic.locale.mapCharactersIndexed' call
1216
+ var characters = toCharArray(_this__u8e3s4);
1217
+ // Inline function 'kotlin.collections.forEachIndexed' call
1218
+ var index_0 = 0;
1219
+ var indexedObject_0 = characters;
1220
+ var inductionVariable_0 = 0;
1221
+ var last_0 = indexedObject_0.length;
1222
+ while (inductionVariable_0 < last_0) {
1223
+ var item_0 = indexedObject_0[inductionVariable_0];
1224
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1225
+ // Inline function 'io.fluidsonic.locale.mapCharactersIndexed.<anonymous>' call
1226
+ var tmp1_0 = index_0;
1227
+ index_0 = tmp1_0 + 1 | 0;
1228
+ var tmp1__anonymous__uwfjfc = tmp1_0;
1229
+ var tmp$ret$0;
1230
+ // Inline function 'io.fluidsonic.locale.toUppercaseFirstLowercaseRest.<anonymous>' call
1231
+ var tmp0_subject_0 = tmp1__anonymous__uwfjfc;
1232
+ tmp$ret$0 = tmp0_subject_0 === 0 ? toUpperCase(item_0) : toLowerCase(item_0);
1233
+ characters[tmp1__anonymous__uwfjfc] = tmp$ret$0;
1234
+ }
1235
+ tmp$ret$1 = concatToString(characters);
1236
+ return tmp$ret$1;
1237
+ }
1238
+ function isAlphaNumeric_0(_this__u8e3s4) {
1239
+ var tmp$ret$0;
1240
+ $l$block: {
1241
+ // Inline function 'kotlin.text.all' call
1242
+ var indexedObject = _this__u8e3s4;
1243
+ var inductionVariable = 0;
1244
+ var last = indexedObject.length;
1245
+ while (inductionVariable < last) {
1246
+ var element = charSequenceGet(indexedObject, inductionVariable);
1247
+ inductionVariable = inductionVariable + 1 | 0;
1248
+ if (!isAlphaNumeric(element)) {
1249
+ tmp$ret$0 = false;
1250
+ break $l$block;
1251
+ }
1252
+ }
1253
+ tmp$ret$0 = true;
1254
+ }
1255
+ return tmp$ret$0;
1256
+ }
1257
+ function isAlpha_0(_this__u8e3s4) {
1258
+ var tmp$ret$0;
1259
+ $l$block: {
1260
+ // Inline function 'kotlin.text.all' call
1261
+ var indexedObject = _this__u8e3s4;
1262
+ var inductionVariable = 0;
1263
+ var last = indexedObject.length;
1264
+ while (inductionVariable < last) {
1265
+ var element = charSequenceGet(indexedObject, inductionVariable);
1266
+ inductionVariable = inductionVariable + 1 | 0;
1267
+ if (!isAlpha(element)) {
1268
+ tmp$ret$0 = false;
1269
+ break $l$block;
1270
+ }
1271
+ }
1272
+ tmp$ret$0 = true;
1273
+ }
1274
+ return tmp$ret$0;
1275
+ }
1276
+ function isNumeric_0(_this__u8e3s4) {
1277
+ var tmp$ret$0;
1278
+ $l$block: {
1279
+ // Inline function 'kotlin.text.all' call
1280
+ var indexedObject = _this__u8e3s4;
1281
+ var inductionVariable = 0;
1282
+ var last = indexedObject.length;
1283
+ while (inductionVariable < last) {
1284
+ var element = charSequenceGet(indexedObject, inductionVariable);
1285
+ inductionVariable = inductionVariable + 1 | 0;
1286
+ if (!isNumeric(element)) {
1287
+ tmp$ret$0 = false;
1288
+ break $l$block;
1289
+ }
1290
+ }
1291
+ tmp$ret$0 = true;
1292
+ }
1293
+ return tmp$ret$0;
1294
+ }
1295
+ //region block: exports
1296
+ _.$_$ = _.$_$ || {};
1297
+ _.$_$.a = Companion_getInstance_0;
1298
+ _.$_$.b = toPlatform;
11
1299
  //endregion
12
1300
  return _;
13
1301
  }));