@dhis2/expression-parser 1.1.5 → 1.1.6

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 (40) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +2619 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  3. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +2620 -0
  4. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  5. package/{KotlinBigInteger-bignum-js-ir.js → KotlinBigInteger-bignum.js} +2019 -1854
  6. package/KotlinBigInteger-bignum.js.map +1 -0
  7. package/{KotlinBigInteger-bignum-js-ir.mjs → KotlinBigInteger-bignum.mjs} +1969 -1804
  8. package/KotlinBigInteger-bignum.mjs.map +1 -0
  9. package/expression-parser.d.ts +13 -13
  10. package/expression-parser.js +3120 -2807
  11. package/expression-parser.js.map +1 -1
  12. package/expression-parser.mjs +3031 -2718
  13. package/expression-parser.mjs.map +1 -1
  14. package/kotlin-js.js +73 -49
  15. package/kotlin-js.js.map +1 -1
  16. package/kotlin-js.mjs +67 -43
  17. package/kotlin-js.mjs.map +1 -1
  18. package/kotlin-kotlin-stdlib.js +6186 -6143
  19. package/kotlin-kotlin-stdlib.js.map +1 -1
  20. package/kotlin-kotlin-stdlib.mjs +6051 -6008
  21. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  22. package/kotlin-plugins-js-plain-objects-runtime.js +8 -0
  23. package/{kotlinx-serialization-kotlinx-serialization-core-js-ir.mjs.map → kotlin-plugins-js-plain-objects-runtime.js.map} +1 -1
  24. package/kotlin-plugins-js-plain-objects-runtime.mjs +4 -0
  25. package/{kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map → kotlin-plugins-js-plain-objects-runtime.mjs.map} +1 -1
  26. package/{kotlinx-serialization-kotlinx-serialization-core-js-ir.js → kotlinx-serialization-kotlinx-serialization-core.js} +3 -4
  27. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  28. package/{kotlinx-serialization-kotlinx-serialization-core-js-ir.mjs → kotlinx-serialization-kotlinx-serialization-core.mjs} +3 -4
  29. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  30. package/package.json +2 -1
  31. package/seskar-core.js +3 -0
  32. package/seskar-core.js.map +1 -1
  33. package/seskar-core.mjs +3 -0
  34. package/seskar-core.mjs.map +1 -1
  35. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +0 -583
  36. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +0 -1
  37. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs +0 -584
  38. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs.map +0 -1
  39. package/KotlinBigInteger-bignum-js-ir.js.map +0 -1
  40. package/KotlinBigInteger-bignum-js-ir.mjs.map +0 -1
@@ -0,0 +1,2619 @@
1
+ (function (_, $module$_js_joda_core_gcv2k, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var LocalDate = $module$_js_joda_core_gcv2k.LocalDate;
6
+ var ChronoUnit = $module$_js_joda_core_gcv2k.ChronoUnit;
7
+ var LocalDateTime = $module$_js_joda_core_gcv2k.LocalDateTime;
8
+ var ZoneOffset = $module$_js_joda_core_gcv2k.ZoneOffset;
9
+ var ZoneId = $module$_js_joda_core_gcv2k.ZoneId;
10
+ var VOID = kotlin_kotlin.$_$.c;
11
+ var protoOf = kotlin_kotlin.$_$.y5;
12
+ var objectCreate = kotlin_kotlin.$_$.x5;
13
+ var initMetadataForCompanion = kotlin_kotlin.$_$.h5;
14
+ var Long = kotlin_kotlin.$_$.y7;
15
+ var initMetadataForClass = kotlin_kotlin.$_$.g5;
16
+ var toLong = kotlin_kotlin.$_$.z5;
17
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.n;
18
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f1;
19
+ var Unit_instance = kotlin_kotlin.$_$.n2;
20
+ var abs = kotlin_kotlin.$_$.b6;
21
+ var padStart = kotlin_kotlin.$_$.c7;
22
+ var numberRangeToNumber = kotlin_kotlin.$_$.s5;
23
+ var THROW_CCE = kotlin_kotlin.$_$.b8;
24
+ var ClosedRange = kotlin_kotlin.$_$.d6;
25
+ var isInterface = kotlin_kotlin.$_$.o5;
26
+ var contains = kotlin_kotlin.$_$.h6;
27
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u;
28
+ var toString = kotlin_kotlin.$_$.a6;
29
+ var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.s;
30
+ var captureStack = kotlin_kotlin.$_$.t4;
31
+ var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.t;
32
+ var IllegalArgumentException_init_$Init$_1 = kotlin_kotlin.$_$.q;
33
+ var IllegalArgumentException_init_$Init$_2 = kotlin_kotlin.$_$.v;
34
+ var IllegalArgumentException = kotlin_kotlin.$_$.x7;
35
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.b1;
36
+ var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.z;
37
+ var RuntimeException = kotlin_kotlin.$_$.a8;
38
+ var Enum = kotlin_kotlin.$_$.v7;
39
+ var initMetadataForInterface = kotlin_kotlin.$_$.i5;
40
+ var toString_0 = kotlin_kotlin.$_$.j1;
41
+ var hashCode = kotlin_kotlin.$_$.f5;
42
+ var getBooleanHashCode = kotlin_kotlin.$_$.b5;
43
+ var initMetadataForObject = kotlin_kotlin.$_$.k5;
44
+ var KProperty0 = kotlin_kotlin.$_$.k6;
45
+ var getPropertyCallableRef = kotlin_kotlin.$_$.d5;
46
+ var KMutableProperty1 = kotlin_kotlin.$_$.j6;
47
+ var lazy = kotlin_kotlin.$_$.o8;
48
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.f;
49
+ var equals = kotlin_kotlin.$_$.a5;
50
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w;
51
+ var toString_1 = kotlin_kotlin.$_$.r8;
52
+ var getStringHashCode = kotlin_kotlin.$_$.e5;
53
+ var charSequenceLength = kotlin_kotlin.$_$.w4;
54
+ var charSequenceGet = kotlin_kotlin.$_$.v4;
55
+ var listOf = kotlin_kotlin.$_$.k3;
56
+ var get_lastIndex = kotlin_kotlin.$_$.b7;
57
+ var emptyList = kotlin_kotlin.$_$.c3;
58
+ var joinToString = kotlin_kotlin.$_$.i3;
59
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.u2;
60
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.e;
61
+ var single = kotlin_kotlin.$_$.x3;
62
+ var charSequenceSubSequence = kotlin_kotlin.$_$.x4;
63
+ var mutableListOf = kotlin_kotlin.$_$.s3;
64
+ var removeLastOrNull = kotlin_kotlin.$_$.u3;
65
+ var sortWith = kotlin_kotlin.$_$.z3;
66
+ var FunctionAdapter = kotlin_kotlin.$_$.s4;
67
+ var Comparator = kotlin_kotlin.$_$.u7;
68
+ var compareValues = kotlin_kotlin.$_$.m4;
69
+ var Exception = kotlin_kotlin.$_$.w7;
70
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.p;
71
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.m;
72
+ var joinTo = kotlin_kotlin.$_$.j3;
73
+ var plus = kotlin_kotlin.$_$.t3;
74
+ var toMutableList = kotlin_kotlin.$_$.j4;
75
+ var addAll = kotlin_kotlin.$_$.q2;
76
+ var Collection = kotlin_kotlin.$_$.o2;
77
+ var firstOrNull = kotlin_kotlin.$_$.g3;
78
+ var drop = kotlin_kotlin.$_$.a3;
79
+ var listOf_0 = kotlin_kotlin.$_$.l3;
80
+ var repeat = kotlin_kotlin.$_$.d7;
81
+ var checkCountOverflow = kotlin_kotlin.$_$.t2;
82
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.g1;
83
+ var enumEntries = kotlin_kotlin.$_$.p4;
84
+ var Comparable = kotlin_kotlin.$_$.t7;
85
+ var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.r;
86
+ var numberToInt = kotlin_kotlin.$_$.v5;
87
+ //endregion
88
+ //region block: pre-declaration
89
+ initMetadataForCompanion(Companion);
90
+ initMetadataForClass(DateTimePeriod, 'DateTimePeriod');
91
+ initMetadataForClass(DatePeriod, 'DatePeriod', DatePeriod_init_$Create$, DateTimePeriod);
92
+ initMetadataForCompanion(Companion_0);
93
+ initMetadataForClass(DateTimeFormatException, 'DateTimeFormatException', DateTimeFormatException_init_$Create$, IllegalArgumentException);
94
+ initMetadataForClass(DateTimeArithmeticException, 'DateTimeArithmeticException', DateTimeArithmeticException_init_$Create$, RuntimeException);
95
+ initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
96
+ initMetadataForClass(Padding, 'Padding', VOID, Enum);
97
+ function year$default(padding, $super) {
98
+ padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
99
+ var tmp;
100
+ if ($super === VOID) {
101
+ this.ug(padding);
102
+ tmp = Unit_instance;
103
+ } else {
104
+ tmp = $super.ug.call(this, padding);
105
+ }
106
+ return tmp;
107
+ }
108
+ function monthNumber$default(padding, $super) {
109
+ padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
110
+ var tmp;
111
+ if ($super === VOID) {
112
+ this.wg(padding);
113
+ tmp = Unit_instance;
114
+ } else {
115
+ tmp = $super.wg.call(this, padding);
116
+ }
117
+ return tmp;
118
+ }
119
+ function dayOfMonth$default(padding, $super) {
120
+ padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
121
+ var tmp;
122
+ if ($super === VOID) {
123
+ this.yg(padding);
124
+ tmp = Unit_instance;
125
+ } else {
126
+ tmp = $super.yg.call(this, padding);
127
+ }
128
+ return tmp;
129
+ }
130
+ initMetadataForInterface(WithDate, 'WithDate');
131
+ function chars(value) {
132
+ return this.bh().dh(new ConstantFormatStructure(value));
133
+ }
134
+ function build() {
135
+ return new CachedFormatStructure(this.bh().eh().fh_1);
136
+ }
137
+ initMetadataForInterface(AbstractDateTimeFormatBuilder, 'AbstractDateTimeFormatBuilder');
138
+ initMetadataForClass(IncompleteLocalDate, 'IncompleteLocalDate', IncompleteLocalDate);
139
+ initMetadataForCompanion(Companion_1);
140
+ function year(padding) {
141
+ return this.yh(new BasicFormatStructure(new YearDirective(padding)));
142
+ }
143
+ function monthNumber(padding) {
144
+ return this.yh(new BasicFormatStructure(new MonthDirective(padding)));
145
+ }
146
+ function dayOfMonth(padding) {
147
+ return this.yh(new BasicFormatStructure(new DayDirective(padding)));
148
+ }
149
+ initMetadataForInterface(AbstractWithDateBuilder, 'AbstractWithDateBuilder', VOID, VOID, [WithDate]);
150
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateBuilder]);
151
+ initMetadataForClass(LocalDateFormat, 'LocalDateFormat', VOID, AbstractDateTimeFormat);
152
+ initMetadataForClass(SignedIntFieldFormatDirective, 'SignedIntFieldFormatDirective');
153
+ initMetadataForClass(YearDirective, 'YearDirective', VOID, SignedIntFieldFormatDirective);
154
+ initMetadataForClass(UnsignedIntFieldFormatDirective, 'UnsignedIntFieldFormatDirective');
155
+ initMetadataForClass(MonthDirective, 'MonthDirective', VOID, UnsignedIntFieldFormatDirective);
156
+ initMetadataForClass(DayDirective, 'DayDirective', VOID, UnsignedIntFieldFormatDirective);
157
+ initMetadataForObject(DateFields, 'DateFields');
158
+ initMetadataForClass(AppendableFormatStructure, 'AppendableFormatStructure', AppendableFormatStructure);
159
+ initMetadataForClass(AbstractFieldSpec, 'AbstractFieldSpec');
160
+ initMetadataForClass(GenericFieldSpec, 'GenericFieldSpec', VOID, AbstractFieldSpec);
161
+ function getterNotNull(container) {
162
+ var tmp0_elvis_lhs = this.xj(container);
163
+ var tmp;
164
+ if (tmp0_elvis_lhs == null) {
165
+ throw IllegalStateException_init_$Create$('Field ' + this.i2() + ' is not set');
166
+ } else {
167
+ tmp = tmp0_elvis_lhs;
168
+ }
169
+ return tmp;
170
+ }
171
+ initMetadataForInterface(Accessor, 'Accessor');
172
+ initMetadataForClass(PropertyAccessor, 'PropertyAccessor', VOID, VOID, [Accessor]);
173
+ initMetadataForClass(UnsignedFieldSpec, 'UnsignedFieldSpec', VOID, AbstractFieldSpec);
174
+ initMetadataForClass(ConcatenatedFormatStructure, 'ConcatenatedFormatStructure');
175
+ initMetadataForClass(CachedFormatStructure, 'CachedFormatStructure', VOID, ConcatenatedFormatStructure);
176
+ initMetadataForInterface(NonConcatenatedFormatStructure, 'NonConcatenatedFormatStructure');
177
+ initMetadataForClass(BasicFormatStructure, 'BasicFormatStructure', VOID, VOID, [NonConcatenatedFormatStructure]);
178
+ initMetadataForClass(ConstantFormatStructure, 'ConstantFormatStructure', VOID, VOID, [NonConcatenatedFormatStructure]);
179
+ initMetadataForClass(SpacePaddedFormatter, 'SpacePaddedFormatter');
180
+ initMetadataForClass(ConcatenatedFormatter, 'ConcatenatedFormatter');
181
+ initMetadataForClass(SignedIntFormatterStructure, 'SignedIntFormatterStructure');
182
+ initMetadataForClass(UnsignedIntFormatterStructure, 'UnsignedIntFormatterStructure');
183
+ initMetadataForClass(ConstantStringFormatterStructure, 'ConstantStringFormatterStructure');
184
+ initMetadataForClass(NumberConsumer, 'NumberConsumer');
185
+ initMetadataForClass(ConstantNumberConsumer, 'ConstantNumberConsumer', VOID, NumberConsumer);
186
+ initMetadataForObject(ExpectedInt, 'ExpectedInt');
187
+ initMetadataForClass(TooManyDigits, 'TooManyDigits');
188
+ initMetadataForClass(TooFewDigits, 'TooFewDigits');
189
+ initMetadataForClass(WrongConstant, 'WrongConstant');
190
+ initMetadataForClass(Conflicting, 'Conflicting');
191
+ initMetadataForClass(UnsignedIntConsumer, 'UnsignedIntConsumer', VOID, NumberConsumer);
192
+ initMetadataForClass(ParseError, 'ParseError');
193
+ initMetadataForCompanion(Companion_2);
194
+ initMetadataForClass(ParserState, 'ParserState');
195
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
196
+ initMetadataForClass(Parser, 'Parser');
197
+ initMetadataForClass(ParserStructure, 'ParserStructure');
198
+ initMetadataForClass(ParseException, 'ParseException', VOID, Exception);
199
+ initMetadataForClass(NumberSpanParserOperation, 'NumberSpanParserOperation');
200
+ initMetadataForClass(PlainStringParserOperation, 'PlainStringParserOperation');
201
+ initMetadataForClass(UnconditionalModification, 'UnconditionalModification');
202
+ initMetadataForClass(DayOfWeek_0, 'DayOfWeek', VOID, Enum);
203
+ initMetadataForClass(Instant, 'Instant', VOID, VOID, [Comparable]);
204
+ initMetadataForCompanion(Companion_3);
205
+ initMetadataForObject(Formats, 'Formats');
206
+ initMetadataForClass(LocalDate_0, 'LocalDate', VOID, VOID, [Comparable]);
207
+ initMetadataForCompanion(Companion_4);
208
+ initMetadataForClass(LocalDateTime_0, 'LocalDateTime', VOID, VOID, [Comparable]);
209
+ initMetadataForCompanion(Companion_5);
210
+ initMetadataForClass(TimeZone, 'TimeZone');
211
+ initMetadataForCompanion(Companion_6);
212
+ initMetadataForClass(FixedOffsetTimeZone, 'FixedOffsetTimeZone', VOID, TimeZone);
213
+ initMetadataForCompanion(Companion_7);
214
+ initMetadataForClass(UtcOffset, 'UtcOffset');
215
+ //endregion
216
+ function DatePeriod_init_$Init$(years, months, days, $this) {
217
+ years = years === VOID ? 0 : years;
218
+ months = months === VOID ? 0 : months;
219
+ days = days === VOID ? 0 : days;
220
+ DatePeriod.call($this, totalMonths(years, months), days);
221
+ return $this;
222
+ }
223
+ function DatePeriod_init_$Create$(years, months, days) {
224
+ return DatePeriod_init_$Init$(years, months, days, objectCreate(protoOf(DatePeriod)));
225
+ }
226
+ function Companion() {
227
+ }
228
+ var Companion_instance;
229
+ function Companion_getInstance() {
230
+ return Companion_instance;
231
+ }
232
+ function DatePeriod(totalMonths, days) {
233
+ DateTimePeriod.call(this);
234
+ this.zf_1 = totalMonths;
235
+ this.ag_1 = days;
236
+ }
237
+ protoOf(DatePeriod).bg = function () {
238
+ return this.zf_1;
239
+ };
240
+ protoOf(DatePeriod).cg = function () {
241
+ return this.ag_1;
242
+ };
243
+ protoOf(DatePeriod).dg = function () {
244
+ return 0;
245
+ };
246
+ protoOf(DatePeriod).eg = function () {
247
+ return 0;
248
+ };
249
+ protoOf(DatePeriod).fg = function () {
250
+ return 0;
251
+ };
252
+ protoOf(DatePeriod).gg = function () {
253
+ return 0;
254
+ };
255
+ protoOf(DatePeriod).hg = function () {
256
+ return new Long(0, 0);
257
+ };
258
+ function allNonpositive($this) {
259
+ return $this.bg() <= 0 && $this.cg() <= 0 && $this.hg().a1(new Long(0, 0)) <= 0 && (!(($this.bg() | $this.cg()) === 0) || !$this.hg().equals(new Long(0, 0)));
260
+ }
261
+ function Companion_0() {
262
+ }
263
+ var Companion_instance_0;
264
+ function Companion_getInstance_0() {
265
+ return Companion_instance_0;
266
+ }
267
+ function DateTimePeriod() {
268
+ }
269
+ protoOf(DateTimePeriod).ig = function () {
270
+ return this.bg() / 12 | 0;
271
+ };
272
+ protoOf(DateTimePeriod).jg = function () {
273
+ return this.bg() % 12 | 0;
274
+ };
275
+ protoOf(DateTimePeriod).dg = function () {
276
+ return this.hg().s2(new Long(817405952, 838)).z();
277
+ };
278
+ protoOf(DateTimePeriod).eg = function () {
279
+ return this.hg().t2(new Long(817405952, 838)).s2(new Long(-129542144, 13)).z();
280
+ };
281
+ protoOf(DateTimePeriod).fg = function () {
282
+ // Inline function 'kotlin.Long.div' call
283
+ var this_0 = this.hg().t2(new Long(-129542144, 13));
284
+ var other = 1000000000;
285
+ return this_0.s2(toLong(other)).z();
286
+ };
287
+ protoOf(DateTimePeriod).gg = function () {
288
+ // Inline function 'kotlin.Long.rem' call
289
+ var this_0 = this.hg();
290
+ var other = 1000000000;
291
+ return this_0.t2(toLong(other)).z();
292
+ };
293
+ protoOf(DateTimePeriod).toString = function () {
294
+ // Inline function 'kotlin.text.buildString' call
295
+ // Inline function 'kotlin.contracts.contract' call
296
+ // Inline function 'kotlin.apply' call
297
+ var this_0 = StringBuilder_init_$Create$();
298
+ // Inline function 'kotlin.contracts.contract' call
299
+ // Inline function 'kotlinx.datetime.DateTimePeriod.toString.<anonymous>' call
300
+ var tmp;
301
+ if (allNonpositive(this)) {
302
+ this_0.i7(_Char___init__impl__6a9atx(45));
303
+ tmp = -1;
304
+ } else {
305
+ tmp = 1;
306
+ }
307
+ var sign = tmp;
308
+ this_0.i7(_Char___init__impl__6a9atx(80));
309
+ if (!(this.ig() === 0)) {
310
+ this_0.ga(imul(this.ig(), sign)).i7(_Char___init__impl__6a9atx(89));
311
+ }
312
+ if (!(this.jg() === 0)) {
313
+ this_0.ga(imul(this.jg(), sign)).i7(_Char___init__impl__6a9atx(77));
314
+ }
315
+ if (!(this.cg() === 0)) {
316
+ this_0.ga(imul(this.cg(), sign)).i7(_Char___init__impl__6a9atx(68));
317
+ }
318
+ var t = 'T';
319
+ if (!(this.dg() === 0)) {
320
+ // Inline function 'kotlin.also' call
321
+ this_0.h7(t).ga(imul(this.dg(), sign)).i7(_Char___init__impl__6a9atx(72));
322
+ // Inline function 'kotlin.contracts.contract' call
323
+ // Inline function 'kotlinx.datetime.DateTimePeriod.toString.<anonymous>.<anonymous>' call
324
+ t = '';
325
+ }
326
+ if (!(this.eg() === 0)) {
327
+ // Inline function 'kotlin.also' call
328
+ this_0.h7(t).ga(imul(this.eg(), sign)).i7(_Char___init__impl__6a9atx(77));
329
+ // Inline function 'kotlin.contracts.contract' call
330
+ // Inline function 'kotlinx.datetime.DateTimePeriod.toString.<anonymous>.<anonymous>' call
331
+ t = '';
332
+ }
333
+ if (!((this.fg() | this.gg()) === 0)) {
334
+ this_0.h7(t);
335
+ this_0.g7(!(this.fg() === 0) ? imul(this.fg(), sign) : imul(this.gg(), sign) < 0 ? '-0' : '0');
336
+ if (!(this.gg() === 0)) {
337
+ var tmp_0 = this_0.i7(_Char___init__impl__6a9atx(46));
338
+ // Inline function 'kotlin.math.absoluteValue' call
339
+ var this_1 = this.gg();
340
+ var tmp$ret$2 = abs(this_1);
341
+ tmp_0.h7(padStart(tmp$ret$2.toString(), 9, _Char___init__impl__6a9atx(48)));
342
+ }
343
+ this_0.i7(_Char___init__impl__6a9atx(83));
344
+ }
345
+ if (this_0.a() === 1) {
346
+ this_0.h7('0D');
347
+ }
348
+ return this_0.toString();
349
+ };
350
+ protoOf(DateTimePeriod).equals = function (other) {
351
+ if (this === other)
352
+ return true;
353
+ if (!(other instanceof DateTimePeriod))
354
+ return false;
355
+ if (!(this.bg() === other.bg()))
356
+ return false;
357
+ if (!(this.cg() === other.cg()))
358
+ return false;
359
+ if (!this.hg().equals(other.hg()))
360
+ return false;
361
+ return true;
362
+ };
363
+ protoOf(DateTimePeriod).hashCode = function () {
364
+ var result = this.bg();
365
+ result = imul(31, result) + this.cg() | 0;
366
+ result = imul(31, result) + this.hg().hashCode() | 0;
367
+ return result;
368
+ };
369
+ function totalMonths(years, months) {
370
+ // Inline function 'kotlin.Long.times' call
371
+ var totalMonths = toLong(years).r2(toLong(12)).p2(toLong(months));
372
+ var tmp;
373
+ // Inline function 'kotlin.ranges.contains' call
374
+ var this_0 = numberRangeToNumber(-2147483648, 2147483647);
375
+ if (contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), totalMonths)) {
376
+ tmp = totalMonths.z();
377
+ } else {
378
+ throw IllegalArgumentException_init_$Create$('The total number of months in ' + years + ' years and ' + months + ' months overflows an Int');
379
+ }
380
+ return tmp;
381
+ }
382
+ function get_isoDayNumber(_this__u8e3s4) {
383
+ return _this__u8e3s4.h2_1 + 1 | 0;
384
+ }
385
+ function DayOfWeek(isoDayNumber) {
386
+ // Inline function 'kotlin.require' call
387
+ // Inline function 'kotlin.contracts.contract' call
388
+ if (!(1 <= isoDayNumber ? isoDayNumber <= 7 : false)) {
389
+ // Inline function 'kotlinx.datetime.DayOfWeek.<anonymous>' call
390
+ var message = 'Expected ISO day-of-week number in 1..7, got ' + isoDayNumber;
391
+ throw IllegalArgumentException_init_$Create$(toString(message));
392
+ }
393
+ return get_entries().n(isoDayNumber - 1 | 0);
394
+ }
395
+ function DateTimeFormatException_init_$Init$($this) {
396
+ IllegalArgumentException_init_$Init$($this);
397
+ DateTimeFormatException.call($this);
398
+ return $this;
399
+ }
400
+ function DateTimeFormatException_init_$Create$() {
401
+ var tmp = DateTimeFormatException_init_$Init$(objectCreate(protoOf(DateTimeFormatException)));
402
+ captureStack(tmp, DateTimeFormatException_init_$Create$);
403
+ return tmp;
404
+ }
405
+ function DateTimeFormatException_init_$Init$_0(message, $this) {
406
+ IllegalArgumentException_init_$Init$_0(message, $this);
407
+ DateTimeFormatException.call($this);
408
+ return $this;
409
+ }
410
+ function DateTimeFormatException_init_$Create$_0(message) {
411
+ var tmp = DateTimeFormatException_init_$Init$_0(message, objectCreate(protoOf(DateTimeFormatException)));
412
+ captureStack(tmp, DateTimeFormatException_init_$Create$_0);
413
+ return tmp;
414
+ }
415
+ function DateTimeFormatException_init_$Init$_1(cause, $this) {
416
+ IllegalArgumentException_init_$Init$_1(cause, $this);
417
+ DateTimeFormatException.call($this);
418
+ return $this;
419
+ }
420
+ function DateTimeFormatException_init_$Create$_1(cause) {
421
+ var tmp = DateTimeFormatException_init_$Init$_1(cause, objectCreate(protoOf(DateTimeFormatException)));
422
+ captureStack(tmp, DateTimeFormatException_init_$Create$_1);
423
+ return tmp;
424
+ }
425
+ function DateTimeFormatException_init_$Init$_2(message, cause, $this) {
426
+ IllegalArgumentException_init_$Init$_2(message, cause, $this);
427
+ DateTimeFormatException.call($this);
428
+ return $this;
429
+ }
430
+ function DateTimeFormatException_init_$Create$_2(message, cause) {
431
+ var tmp = DateTimeFormatException_init_$Init$_2(message, cause, objectCreate(protoOf(DateTimeFormatException)));
432
+ captureStack(tmp, DateTimeFormatException_init_$Create$_2);
433
+ return tmp;
434
+ }
435
+ function DateTimeFormatException() {
436
+ captureStack(this, DateTimeFormatException);
437
+ }
438
+ function DateTimeArithmeticException_init_$Init$($this) {
439
+ RuntimeException_init_$Init$($this);
440
+ DateTimeArithmeticException.call($this);
441
+ return $this;
442
+ }
443
+ function DateTimeArithmeticException_init_$Create$() {
444
+ var tmp = DateTimeArithmeticException_init_$Init$(objectCreate(protoOf(DateTimeArithmeticException)));
445
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$);
446
+ return tmp;
447
+ }
448
+ function DateTimeArithmeticException_init_$Init$_0(cause, $this) {
449
+ RuntimeException_init_$Init$_0(cause, $this);
450
+ DateTimeArithmeticException.call($this);
451
+ return $this;
452
+ }
453
+ function DateTimeArithmeticException_init_$Create$_0(cause) {
454
+ var tmp = DateTimeArithmeticException_init_$Init$_0(cause, objectCreate(protoOf(DateTimeArithmeticException)));
455
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$_0);
456
+ return tmp;
457
+ }
458
+ function DateTimeArithmeticException() {
459
+ captureStack(this, DateTimeArithmeticException);
460
+ }
461
+ function getIsoDateFormat() {
462
+ return Formats_getInstance().lg();
463
+ }
464
+ function asTimeZone(_this__u8e3s4) {
465
+ return FixedOffsetTimeZone_init_$Create$(_this__u8e3s4);
466
+ }
467
+ function AbstractDateTimeFormat() {
468
+ }
469
+ protoOf(AbstractDateTimeFormat).pg = function (input) {
470
+ var tmp;
471
+ try {
472
+ tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.mg().tg()), input, this.og());
473
+ } catch ($p) {
474
+ var tmp_0;
475
+ if ($p instanceof ParseException) {
476
+ var e = $p;
477
+ throw DateTimeFormatException_init_$Create$_2("Failed to parse value from '" + toString(input) + "'", e);
478
+ } else {
479
+ throw $p;
480
+ }
481
+ }
482
+ var matched = tmp;
483
+ try {
484
+ return this.ng(matched);
485
+ } catch ($p) {
486
+ if ($p instanceof IllegalArgumentException) {
487
+ var e_0 = $p;
488
+ var message = e_0.message;
489
+ throw DateTimeFormatException_init_$Create$_2(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0);
490
+ } else {
491
+ throw $p;
492
+ }
493
+ }
494
+ };
495
+ var Padding_NONE_instance;
496
+ var Padding_ZERO_instance;
497
+ var Padding_SPACE_instance;
498
+ var Padding_entriesInitialized;
499
+ function Padding_initEntries() {
500
+ if (Padding_entriesInitialized)
501
+ return Unit_instance;
502
+ Padding_entriesInitialized = true;
503
+ Padding_NONE_instance = new Padding('NONE', 0);
504
+ Padding_ZERO_instance = new Padding('ZERO', 1);
505
+ Padding_SPACE_instance = new Padding('SPACE', 2);
506
+ }
507
+ function Padding(name, ordinal) {
508
+ Enum.call(this, name, ordinal);
509
+ }
510
+ function Padding_ZERO_getInstance() {
511
+ Padding_initEntries();
512
+ return Padding_ZERO_instance;
513
+ }
514
+ function Padding_SPACE_getInstance() {
515
+ Padding_initEntries();
516
+ return Padding_SPACE_instance;
517
+ }
518
+ function WithDate() {
519
+ }
520
+ function char(_this__u8e3s4, value) {
521
+ return _this__u8e3s4.ah(toString_0(value));
522
+ }
523
+ function AbstractDateTimeFormatBuilder() {
524
+ }
525
+ function get_ISO_DATE() {
526
+ _init_properties_LocalDateFormat_kt__k1uk9u();
527
+ // Inline function 'kotlin.getValue' call
528
+ var this_0 = ISO_DATE$delegate;
529
+ ISO_DATE$factory();
530
+ return this_0.b2();
531
+ }
532
+ var ISO_DATE$delegate;
533
+ function get_ISO_DATE_BASIC() {
534
+ _init_properties_LocalDateFormat_kt__k1uk9u();
535
+ // Inline function 'kotlin.getValue' call
536
+ var this_0 = ISO_DATE_BASIC$delegate;
537
+ ISO_DATE_BASIC$factory();
538
+ return this_0.b2();
539
+ }
540
+ var ISO_DATE_BASIC$delegate;
541
+ function get_emptyIncompleteLocalDate() {
542
+ _init_properties_LocalDateFormat_kt__k1uk9u();
543
+ return emptyIncompleteLocalDate;
544
+ }
545
+ var emptyIncompleteLocalDate;
546
+ function IncompleteLocalDate(year, monthNumber, dayOfMonth, isoDayOfWeek) {
547
+ year = year === VOID ? null : year;
548
+ monthNumber = monthNumber === VOID ? null : monthNumber;
549
+ dayOfMonth = dayOfMonth === VOID ? null : dayOfMonth;
550
+ isoDayOfWeek = isoDayOfWeek === VOID ? null : isoDayOfWeek;
551
+ this.gh_1 = year;
552
+ this.hh_1 = monthNumber;
553
+ this.ih_1 = dayOfMonth;
554
+ this.jh_1 = isoDayOfWeek;
555
+ }
556
+ protoOf(IncompleteLocalDate).kh = function (_set____db54di) {
557
+ this.gh_1 = _set____db54di;
558
+ };
559
+ protoOf(IncompleteLocalDate).lh = function () {
560
+ return this.gh_1;
561
+ };
562
+ protoOf(IncompleteLocalDate).mh = function (_set____db54di) {
563
+ this.hh_1 = _set____db54di;
564
+ };
565
+ protoOf(IncompleteLocalDate).nh = function () {
566
+ return this.hh_1;
567
+ };
568
+ protoOf(IncompleteLocalDate).oh = function (_set____db54di) {
569
+ this.ih_1 = _set____db54di;
570
+ };
571
+ protoOf(IncompleteLocalDate).ph = function () {
572
+ return this.ih_1;
573
+ };
574
+ protoOf(IncompleteLocalDate).qh = function (_set____db54di) {
575
+ this.jh_1 = _set____db54di;
576
+ };
577
+ protoOf(IncompleteLocalDate).rh = function () {
578
+ return this.jh_1;
579
+ };
580
+ protoOf(IncompleteLocalDate).sh = function () {
581
+ var date = LocalDate_init_$Create$(requireParsedField(this.gh_1, 'year'), requireParsedField(this.hh_1, 'monthNumber'), requireParsedField(this.ih_1, 'dayOfMonth'));
582
+ var tmp0_safe_receiver = this.jh_1;
583
+ if (tmp0_safe_receiver == null)
584
+ null;
585
+ else {
586
+ // Inline function 'kotlin.let' call
587
+ // Inline function 'kotlin.contracts.contract' call
588
+ if (!(tmp0_safe_receiver === get_isoDayNumber(date.uh()))) {
589
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of week is ' + DayOfWeek(tmp0_safe_receiver).toString() + ' but the date is ' + date.toString() + ', which is a ' + date.uh().toString()));
590
+ }
591
+ }
592
+ return date;
593
+ };
594
+ protoOf(IncompleteLocalDate).vh = function () {
595
+ return new IncompleteLocalDate(this.gh_1, this.hh_1, this.ih_1, this.jh_1);
596
+ };
597
+ protoOf(IncompleteLocalDate).equals = function (other) {
598
+ var tmp;
599
+ var tmp_0;
600
+ var tmp_1;
601
+ var tmp_2;
602
+ if (other instanceof IncompleteLocalDate) {
603
+ tmp_2 = this.gh_1 == other.gh_1;
604
+ } else {
605
+ tmp_2 = false;
606
+ }
607
+ if (tmp_2) {
608
+ tmp_1 = this.hh_1 == other.hh_1;
609
+ } else {
610
+ tmp_1 = false;
611
+ }
612
+ if (tmp_1) {
613
+ tmp_0 = this.ih_1 == other.ih_1;
614
+ } else {
615
+ tmp_0 = false;
616
+ }
617
+ if (tmp_0) {
618
+ tmp = this.jh_1 == other.jh_1;
619
+ } else {
620
+ tmp = false;
621
+ }
622
+ return tmp;
623
+ };
624
+ protoOf(IncompleteLocalDate).hashCode = function () {
625
+ // Inline function 'kotlin.hashCode' call
626
+ var tmp0_safe_receiver = this.gh_1;
627
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
628
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
629
+ var tmp = imul(tmp$ret$0, 31);
630
+ // Inline function 'kotlin.hashCode' call
631
+ var tmp0_safe_receiver_0 = this.hh_1;
632
+ var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
633
+ var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
634
+ var tmp_0 = tmp + imul(tmp$ret$1, 31) | 0;
635
+ // Inline function 'kotlin.hashCode' call
636
+ var tmp0_safe_receiver_1 = this.ih_1;
637
+ var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
638
+ var tmp$ret$2 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1;
639
+ var tmp_1 = tmp_0 + imul(tmp$ret$2, 31) | 0;
640
+ // Inline function 'kotlin.hashCode' call
641
+ var tmp0_safe_receiver_2 = this.jh_1;
642
+ var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2);
643
+ var tmp$ret$3 = tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2;
644
+ return tmp_1 + imul(tmp$ret$3, 31) | 0;
645
+ };
646
+ protoOf(IncompleteLocalDate).toString = function () {
647
+ var tmp0_elvis_lhs = this.gh_1;
648
+ var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
649
+ var tmp1_elvis_lhs = this.hh_1;
650
+ var tmp_0 = toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs);
651
+ var tmp2_elvis_lhs = this.ih_1;
652
+ var tmp_1 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs);
653
+ var tmp3_elvis_lhs = this.jh_1;
654
+ return tmp + '-' + tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')';
655
+ };
656
+ function Companion_1() {
657
+ }
658
+ protoOf(Companion_1).wh = function (block) {
659
+ var builder = new Builder(new AppendableFormatStructure());
660
+ block(builder);
661
+ return new LocalDateFormat(builder.eh());
662
+ };
663
+ var Companion_instance_1;
664
+ function Companion_getInstance_1() {
665
+ return Companion_instance_1;
666
+ }
667
+ function Builder(actualBuilder) {
668
+ this.xh_1 = actualBuilder;
669
+ }
670
+ protoOf(Builder).bh = function () {
671
+ return this.xh_1;
672
+ };
673
+ protoOf(Builder).yh = function (structure) {
674
+ return this.xh_1.dh(structure);
675
+ };
676
+ function LocalDateFormat(actualFormat) {
677
+ AbstractDateTimeFormat.call(this);
678
+ this.zh_1 = actualFormat;
679
+ }
680
+ protoOf(LocalDateFormat).mg = function () {
681
+ return this.zh_1;
682
+ };
683
+ protoOf(LocalDateFormat).ai = function (intermediate) {
684
+ return intermediate.sh();
685
+ };
686
+ protoOf(LocalDateFormat).ng = function (intermediate) {
687
+ return this.ai(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE());
688
+ };
689
+ protoOf(LocalDateFormat).og = function () {
690
+ return get_emptyIncompleteLocalDate();
691
+ };
692
+ function requireParsedField(field, name) {
693
+ _init_properties_LocalDateFormat_kt__k1uk9u();
694
+ if (field == null) {
695
+ throw DateTimeFormatException_init_$Create$_0('Can not create a ' + name + ' from the given input: the field ' + name + ' is missing');
696
+ }
697
+ return field;
698
+ }
699
+ function AbstractWithDateBuilder() {
700
+ }
701
+ function YearDirective(padding, isYearOfEra) {
702
+ isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra;
703
+ var tmp = DateFields_getInstance().bi_1;
704
+ // Inline function 'kotlinx.datetime.format.minDigits' call
705
+ var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1;
706
+ // Inline function 'kotlinx.datetime.format.spaces' call
707
+ var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 4 : null;
708
+ SignedIntFieldFormatDirective.call(this, tmp, tmp_0, null, tmp$ret$1, 4);
709
+ this.ki_1 = padding;
710
+ this.li_1 = isYearOfEra;
711
+ }
712
+ protoOf(YearDirective).equals = function (other) {
713
+ var tmp;
714
+ var tmp_0;
715
+ if (other instanceof YearDirective) {
716
+ tmp_0 = this.ki_1.equals(other.ki_1);
717
+ } else {
718
+ tmp_0 = false;
719
+ }
720
+ if (tmp_0) {
721
+ tmp = this.li_1 === other.li_1;
722
+ } else {
723
+ tmp = false;
724
+ }
725
+ return tmp;
726
+ };
727
+ protoOf(YearDirective).hashCode = function () {
728
+ return imul(this.ki_1.hashCode(), 31) + getBooleanHashCode(this.li_1) | 0;
729
+ };
730
+ function MonthDirective(padding) {
731
+ var tmp = DateFields_getInstance().ci_1;
732
+ // Inline function 'kotlinx.datetime.format.minDigits' call
733
+ var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
734
+ // Inline function 'kotlinx.datetime.format.spaces' call
735
+ var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
736
+ UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
737
+ this.wi_1 = padding;
738
+ }
739
+ protoOf(MonthDirective).equals = function (other) {
740
+ var tmp;
741
+ if (other instanceof MonthDirective) {
742
+ tmp = this.wi_1.equals(other.wi_1);
743
+ } else {
744
+ tmp = false;
745
+ }
746
+ return tmp;
747
+ };
748
+ protoOf(MonthDirective).hashCode = function () {
749
+ return this.wi_1.hashCode();
750
+ };
751
+ function DayDirective(padding) {
752
+ var tmp = DateFields_getInstance().di_1;
753
+ // Inline function 'kotlinx.datetime.format.minDigits' call
754
+ var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
755
+ // Inline function 'kotlinx.datetime.format.spaces' call
756
+ var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
757
+ UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
758
+ this.fj_1 = padding;
759
+ }
760
+ protoOf(DayDirective).equals = function (other) {
761
+ var tmp;
762
+ if (other instanceof DayDirective) {
763
+ tmp = this.fj_1.equals(other.fj_1);
764
+ } else {
765
+ tmp = false;
766
+ }
767
+ return tmp;
768
+ };
769
+ protoOf(DayDirective).hashCode = function () {
770
+ return this.fj_1.hashCode();
771
+ };
772
+ function DateFields() {
773
+ DateFields_instance = this;
774
+ this.bi_1 = new GenericFieldSpec(new PropertyAccessor(year$factory()));
775
+ this.ci_1 = new UnsignedFieldSpec(new PropertyAccessor(monthNumber$factory()), 1, 12);
776
+ this.di_1 = new UnsignedFieldSpec(new PropertyAccessor(dayOfMonth$factory()), 1, 31);
777
+ this.ei_1 = new UnsignedFieldSpec(new PropertyAccessor(isoDayOfWeek$factory()), 1, 7);
778
+ }
779
+ var DateFields_instance;
780
+ function DateFields_getInstance() {
781
+ if (DateFields_instance == null)
782
+ new DateFields();
783
+ return DateFields_instance;
784
+ }
785
+ function ISO_DATE$delegate$lambda() {
786
+ _init_properties_LocalDateFormat_kt__k1uk9u();
787
+ var tmp = Companion_instance_1;
788
+ return tmp.wh(ISO_DATE$delegate$lambda$lambda);
789
+ }
790
+ function ISO_DATE$delegate$lambda$lambda($this$build) {
791
+ _init_properties_LocalDateFormat_kt__k1uk9u();
792
+ $this$build.vg();
793
+ char($this$build, _Char___init__impl__6a9atx(45));
794
+ $this$build.xg();
795
+ char($this$build, _Char___init__impl__6a9atx(45));
796
+ $this$build.zg();
797
+ return Unit_instance;
798
+ }
799
+ function ISO_DATE_BASIC$delegate$lambda() {
800
+ _init_properties_LocalDateFormat_kt__k1uk9u();
801
+ var tmp = Companion_instance_1;
802
+ return tmp.wh(ISO_DATE_BASIC$delegate$lambda$lambda);
803
+ }
804
+ function ISO_DATE_BASIC$delegate$lambda$lambda($this$build) {
805
+ _init_properties_LocalDateFormat_kt__k1uk9u();
806
+ $this$build.vg();
807
+ $this$build.xg();
808
+ $this$build.zg();
809
+ return Unit_instance;
810
+ }
811
+ function ISO_DATE$factory() {
812
+ return getPropertyCallableRef('ISO_DATE', 0, KProperty0, function () {
813
+ return get_ISO_DATE();
814
+ }, null);
815
+ }
816
+ function ISO_DATE_BASIC$factory() {
817
+ return getPropertyCallableRef('ISO_DATE_BASIC', 0, KProperty0, function () {
818
+ return get_ISO_DATE_BASIC();
819
+ }, null);
820
+ }
821
+ function year$factory() {
822
+ return getPropertyCallableRef('year', 1, KMutableProperty1, function (receiver) {
823
+ return receiver.lh();
824
+ }, function (receiver, value) {
825
+ return receiver.kh(value);
826
+ });
827
+ }
828
+ function monthNumber$factory() {
829
+ return getPropertyCallableRef('monthNumber', 1, KMutableProperty1, function (receiver) {
830
+ return receiver.nh();
831
+ }, function (receiver, value) {
832
+ return receiver.mh(value);
833
+ });
834
+ }
835
+ function dayOfMonth$factory() {
836
+ return getPropertyCallableRef('dayOfMonth', 1, KMutableProperty1, function (receiver) {
837
+ return receiver.ph();
838
+ }, function (receiver, value) {
839
+ return receiver.oh(value);
840
+ });
841
+ }
842
+ function isoDayOfWeek$factory() {
843
+ return getPropertyCallableRef('isoDayOfWeek', 1, KMutableProperty1, function (receiver) {
844
+ return receiver.rh();
845
+ }, function (receiver, value) {
846
+ return receiver.qh(value);
847
+ });
848
+ }
849
+ var properties_initialized_LocalDateFormat_kt_fmnlhc;
850
+ function _init_properties_LocalDateFormat_kt__k1uk9u() {
851
+ if (!properties_initialized_LocalDateFormat_kt_fmnlhc) {
852
+ properties_initialized_LocalDateFormat_kt_fmnlhc = true;
853
+ ISO_DATE$delegate = lazy(ISO_DATE$delegate$lambda);
854
+ ISO_DATE_BASIC$delegate = lazy(ISO_DATE_BASIC$delegate$lambda);
855
+ emptyIncompleteLocalDate = new IncompleteLocalDate();
856
+ }
857
+ }
858
+ function AppendableFormatStructure() {
859
+ var tmp = this;
860
+ // Inline function 'kotlin.collections.mutableListOf' call
861
+ tmp.ch_1 = ArrayList_init_$Create$();
862
+ }
863
+ protoOf(AppendableFormatStructure).eh = function () {
864
+ return new ConcatenatedFormatStructure(this.ch_1);
865
+ };
866
+ protoOf(AppendableFormatStructure).dh = function (format) {
867
+ if (isInterface(format, NonConcatenatedFormatStructure)) {
868
+ this.ch_1.e(format);
869
+ } else {
870
+ if (format instanceof ConcatenatedFormatStructure) {
871
+ // Inline function 'kotlin.collections.forEach' call
872
+ var tmp0_iterator = format.fh_1.j();
873
+ while (tmp0_iterator.k()) {
874
+ var element = tmp0_iterator.l();
875
+ // Inline function 'kotlinx.datetime.internal.format.AppendableFormatStructure.add.<anonymous>' call
876
+ this.ch_1.e(element);
877
+ }
878
+ }
879
+ }
880
+ };
881
+ function Accessor$getterNotNull$ref($boundThis) {
882
+ var l = function (p0) {
883
+ return $boundThis.gj(p0);
884
+ };
885
+ l.callableName = 'getterNotNull';
886
+ return l;
887
+ }
888
+ function SignedIntFieldFormatDirective(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) {
889
+ this.mi_1 = field;
890
+ this.ni_1 = minDigits;
891
+ this.oi_1 = maxDigits;
892
+ this.pi_1 = spacePadding;
893
+ this.qi_1 = outputPlusOnExceededWidth;
894
+ // Inline function 'kotlin.require' call
895
+ // Inline function 'kotlin.contracts.contract' call
896
+ if (!(this.ni_1 == null || this.ni_1 >= 0)) {
897
+ // Inline function 'kotlinx.datetime.internal.format.SignedIntFieldFormatDirective.<anonymous>' call
898
+ var message = 'The minimum number of digits (' + this.ni_1 + ') is negative';
899
+ throw IllegalArgumentException_init_$Create$(toString(message));
900
+ }
901
+ // Inline function 'kotlin.require' call
902
+ // Inline function 'kotlin.contracts.contract' call
903
+ if (!(this.oi_1 == null || this.ni_1 == null || this.oi_1 >= this.ni_1)) {
904
+ // Inline function 'kotlinx.datetime.internal.format.SignedIntFieldFormatDirective.<anonymous>' call
905
+ var message_0 = 'The maximum number of digits (' + this.oi_1 + ') is less than the minimum number of digits (' + this.ni_1 + ')';
906
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
907
+ }
908
+ }
909
+ protoOf(SignedIntFieldFormatDirective).ri = function () {
910
+ var tmp = Accessor$getterNotNull$ref(this.mi_1.hj());
911
+ var tmp0_elvis_lhs = this.ni_1;
912
+ var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.qi_1);
913
+ return !(this.pi_1 == null) ? new SpacePaddedFormatter(formatter, this.pi_1) : formatter;
914
+ };
915
+ protoOf(SignedIntFieldFormatDirective).tg = function () {
916
+ return SignedIntParser(this.ni_1, this.oi_1, this.pi_1, this.mi_1.hj(), this.mi_1.i2(), this.qi_1);
917
+ };
918
+ function Accessor$getterNotNull$ref_0($boundThis) {
919
+ var l = function (p0) {
920
+ return $boundThis.gj(p0);
921
+ };
922
+ l.callableName = 'getterNotNull';
923
+ return l;
924
+ }
925
+ function UnsignedIntFieldFormatDirective(field, minDigits, spacePadding) {
926
+ this.xi_1 = field;
927
+ this.yi_1 = minDigits;
928
+ this.zi_1 = spacePadding;
929
+ this.aj_1 = this.xi_1.oj_1;
930
+ // Inline function 'kotlin.require' call
931
+ // Inline function 'kotlin.contracts.contract' call
932
+ if (!(this.yi_1 >= 0)) {
933
+ // Inline function 'kotlinx.datetime.internal.format.UnsignedIntFieldFormatDirective.<anonymous>' call
934
+ var message = 'The minimum number of digits (' + this.yi_1 + ') is negative';
935
+ throw IllegalArgumentException_init_$Create$(toString(message));
936
+ }
937
+ // Inline function 'kotlin.require' call
938
+ // Inline function 'kotlin.contracts.contract' call
939
+ if (!(this.aj_1 >= this.yi_1)) {
940
+ // Inline function 'kotlinx.datetime.internal.format.UnsignedIntFieldFormatDirective.<anonymous>' call
941
+ var message_0 = 'The maximum number of digits (' + this.aj_1 + ') is less than the minimum number of digits (' + this.yi_1 + ')';
942
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
943
+ }
944
+ if (!(this.zi_1 == null)) {
945
+ // Inline function 'kotlin.require' call
946
+ // Inline function 'kotlin.contracts.contract' call
947
+ if (!(this.zi_1 > this.yi_1)) {
948
+ // Inline function 'kotlinx.datetime.internal.format.UnsignedIntFieldFormatDirective.<anonymous>' call
949
+ var message_1 = 'The space padding (' + this.zi_1 + ') should be more than the minimum number of digits (' + this.yi_1 + ')';
950
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
951
+ }
952
+ }
953
+ }
954
+ protoOf(UnsignedIntFieldFormatDirective).ri = function () {
955
+ var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref_0(this.xi_1.ij_1), this.yi_1);
956
+ return !(this.zi_1 == null) ? new SpacePaddedFormatter(formatter, this.zi_1) : formatter;
957
+ };
958
+ protoOf(UnsignedIntFieldFormatDirective).tg = function () {
959
+ return spaceAndZeroPaddedUnsignedInt(this.yi_1, this.aj_1, this.zi_1, this.xi_1.ij_1, this.xi_1.lj_1);
960
+ };
961
+ function GenericFieldSpec(accessor, name, defaultValue, sign) {
962
+ name = name === VOID ? accessor.i2() : name;
963
+ defaultValue = defaultValue === VOID ? null : defaultValue;
964
+ sign = sign === VOID ? null : sign;
965
+ AbstractFieldSpec.call(this);
966
+ this.pj_1 = accessor;
967
+ this.qj_1 = name;
968
+ this.rj_1 = defaultValue;
969
+ this.sj_1 = sign;
970
+ }
971
+ protoOf(GenericFieldSpec).hj = function () {
972
+ return this.pj_1;
973
+ };
974
+ protoOf(GenericFieldSpec).i2 = function () {
975
+ return this.qj_1;
976
+ };
977
+ protoOf(GenericFieldSpec).tj = function () {
978
+ return this.rj_1;
979
+ };
980
+ function PropertyAccessor(property) {
981
+ this.uj_1 = property;
982
+ }
983
+ protoOf(PropertyAccessor).i2 = function () {
984
+ return this.uj_1.callableName;
985
+ };
986
+ protoOf(PropertyAccessor).vj = function (container, newValue) {
987
+ var oldValue = this.uj_1.get(container);
988
+ var tmp;
989
+ if (oldValue === null) {
990
+ this.uj_1.set(container, newValue);
991
+ tmp = null;
992
+ } else if (equals(oldValue, newValue)) {
993
+ tmp = null;
994
+ } else {
995
+ tmp = oldValue;
996
+ }
997
+ return tmp;
998
+ };
999
+ protoOf(PropertyAccessor).wj = function (container, newValue) {
1000
+ var tmp = (container == null ? true : !(container == null)) ? container : THROW_CCE();
1001
+ return this.vj(tmp, (newValue == null ? true : !(newValue == null)) ? newValue : THROW_CCE());
1002
+ };
1003
+ protoOf(PropertyAccessor).xj = function (container) {
1004
+ return this.uj_1.get(container);
1005
+ };
1006
+ function UnsignedFieldSpec(accessor, minValue, maxValue, name, defaultValue, sign) {
1007
+ name = name === VOID ? accessor.i2() : name;
1008
+ defaultValue = defaultValue === VOID ? null : defaultValue;
1009
+ sign = sign === VOID ? null : sign;
1010
+ AbstractFieldSpec.call(this);
1011
+ this.ij_1 = accessor;
1012
+ this.jj_1 = minValue;
1013
+ this.kj_1 = maxValue;
1014
+ this.lj_1 = name;
1015
+ this.mj_1 = defaultValue;
1016
+ this.nj_1 = sign;
1017
+ var tmp = this;
1018
+ var tmp_0;
1019
+ if (this.kj_1 < 10) {
1020
+ tmp_0 = 1;
1021
+ } else if (this.kj_1 < 100) {
1022
+ tmp_0 = 2;
1023
+ } else if (this.kj_1 < 1000) {
1024
+ tmp_0 = 3;
1025
+ } else {
1026
+ throw IllegalArgumentException_init_$Create$('Max value ' + this.kj_1 + ' is too large');
1027
+ }
1028
+ tmp.oj_1 = tmp_0;
1029
+ }
1030
+ protoOf(UnsignedFieldSpec).hj = function () {
1031
+ return this.ij_1;
1032
+ };
1033
+ protoOf(UnsignedFieldSpec).i2 = function () {
1034
+ return this.lj_1;
1035
+ };
1036
+ protoOf(UnsignedFieldSpec).tj = function () {
1037
+ return this.mj_1;
1038
+ };
1039
+ function Accessor() {
1040
+ }
1041
+ function AbstractFieldSpec() {
1042
+ }
1043
+ protoOf(AbstractFieldSpec).toString = function () {
1044
+ return 'The field ' + this.i2() + ' (default value is ' + toString_1(this.tj()) + ')';
1045
+ };
1046
+ function CachedFormatStructure(formats) {
1047
+ ConcatenatedFormatStructure.call(this, formats);
1048
+ this.rg_1 = protoOf(ConcatenatedFormatStructure).ri.call(this);
1049
+ this.sg_1 = protoOf(ConcatenatedFormatStructure).tg.call(this);
1050
+ }
1051
+ protoOf(CachedFormatStructure).ri = function () {
1052
+ return this.rg_1;
1053
+ };
1054
+ protoOf(CachedFormatStructure).tg = function () {
1055
+ return this.sg_1;
1056
+ };
1057
+ function BasicFormatStructure(directive) {
1058
+ this.yj_1 = directive;
1059
+ }
1060
+ protoOf(BasicFormatStructure).toString = function () {
1061
+ return 'BasicFormatStructure(' + toString(this.yj_1) + ')';
1062
+ };
1063
+ protoOf(BasicFormatStructure).equals = function (other) {
1064
+ var tmp;
1065
+ if (other instanceof BasicFormatStructure) {
1066
+ tmp = equals(this.yj_1, other.yj_1);
1067
+ } else {
1068
+ tmp = false;
1069
+ }
1070
+ return tmp;
1071
+ };
1072
+ protoOf(BasicFormatStructure).hashCode = function () {
1073
+ return hashCode(this.yj_1);
1074
+ };
1075
+ protoOf(BasicFormatStructure).tg = function () {
1076
+ return this.yj_1.tg();
1077
+ };
1078
+ protoOf(BasicFormatStructure).ri = function () {
1079
+ return this.yj_1.ri();
1080
+ };
1081
+ function ConstantFormatStructure(string) {
1082
+ this.zj_1 = string;
1083
+ }
1084
+ protoOf(ConstantFormatStructure).toString = function () {
1085
+ return 'ConstantFormatStructure(' + this.zj_1 + ')';
1086
+ };
1087
+ protoOf(ConstantFormatStructure).equals = function (other) {
1088
+ var tmp;
1089
+ if (other instanceof ConstantFormatStructure) {
1090
+ tmp = this.zj_1 === other.zj_1;
1091
+ } else {
1092
+ tmp = false;
1093
+ }
1094
+ return tmp;
1095
+ };
1096
+ protoOf(ConstantFormatStructure).hashCode = function () {
1097
+ return getStringHashCode(this.zj_1);
1098
+ };
1099
+ protoOf(ConstantFormatStructure).tg = function () {
1100
+ var tmp;
1101
+ // Inline function 'kotlin.text.isEmpty' call
1102
+ var this_0 = this.zj_1;
1103
+ if (charSequenceLength(this_0) === 0) {
1104
+ tmp = emptyList();
1105
+ } else {
1106
+ // Inline function 'kotlin.collections.buildList' call
1107
+ // Inline function 'kotlin.contracts.contract' call
1108
+ // Inline function 'kotlin.collections.buildListInternal' call
1109
+ // Inline function 'kotlin.apply' call
1110
+ var this_1 = ArrayList_init_$Create$();
1111
+ // Inline function 'kotlin.contracts.contract' call
1112
+ // Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>' call
1113
+ var tmp_0;
1114
+ if (isAsciiDigit(charSequenceGet(this.zj_1, 0))) {
1115
+ var tmp$ret$4;
1116
+ $l$block: {
1117
+ // Inline function 'kotlin.text.takeWhile' call
1118
+ var this_2 = this.zj_1;
1119
+ var inductionVariable = 0;
1120
+ var last = this_2.length;
1121
+ if (inductionVariable < last)
1122
+ do {
1123
+ var index = inductionVariable;
1124
+ inductionVariable = inductionVariable + 1 | 0;
1125
+ // Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
1126
+ var it = charSequenceGet(this_2, index);
1127
+ if (!isAsciiDigit(it)) {
1128
+ // Inline function 'kotlin.text.substring' call
1129
+ // Inline function 'kotlin.js.asDynamic' call
1130
+ tmp$ret$4 = this_2.substring(0, index);
1131
+ break $l$block;
1132
+ }
1133
+ }
1134
+ while (inductionVariable < last);
1135
+ tmp$ret$4 = this_2;
1136
+ }
1137
+ this_1.e(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$4))));
1138
+ var tmp$ret$8;
1139
+ $l$block_0: {
1140
+ // Inline function 'kotlin.text.dropWhile' call
1141
+ var this_3 = this.zj_1;
1142
+ var inductionVariable_0 = 0;
1143
+ var last_0 = charSequenceLength(this_3) - 1 | 0;
1144
+ if (inductionVariable_0 <= last_0)
1145
+ do {
1146
+ var index_0 = inductionVariable_0;
1147
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1148
+ // Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
1149
+ var it_0 = charSequenceGet(this_3, index_0);
1150
+ if (!isAsciiDigit(it_0)) {
1151
+ // Inline function 'kotlin.text.substring' call
1152
+ // Inline function 'kotlin.js.asDynamic' call
1153
+ tmp$ret$8 = this_3.substring(index_0);
1154
+ break $l$block_0;
1155
+ }
1156
+ }
1157
+ while (inductionVariable_0 <= last_0);
1158
+ tmp$ret$8 = '';
1159
+ }
1160
+ tmp_0 = tmp$ret$8;
1161
+ } else {
1162
+ tmp_0 = this.zj_1;
1163
+ }
1164
+ var suffix = tmp_0;
1165
+ // Inline function 'kotlin.text.isNotEmpty' call
1166
+ if (charSequenceLength(suffix) > 0) {
1167
+ if (isAsciiDigit(charSequenceGet(suffix, suffix.length - 1 | 0))) {
1168
+ var tmp$ret$13;
1169
+ $l$block_1: {
1170
+ // Inline function 'kotlin.text.dropLastWhile' call
1171
+ var inductionVariable_1 = get_lastIndex(suffix);
1172
+ if (0 <= inductionVariable_1)
1173
+ do {
1174
+ var index_1 = inductionVariable_1;
1175
+ inductionVariable_1 = inductionVariable_1 + -1 | 0;
1176
+ // Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
1177
+ var it_1 = charSequenceGet(suffix, index_1);
1178
+ if (!isAsciiDigit(it_1)) {
1179
+ // Inline function 'kotlin.text.substring' call
1180
+ var endIndex = index_1 + 1 | 0;
1181
+ // Inline function 'kotlin.js.asDynamic' call
1182
+ tmp$ret$13 = suffix.substring(0, endIndex);
1183
+ break $l$block_1;
1184
+ }
1185
+ }
1186
+ while (0 <= inductionVariable_1);
1187
+ tmp$ret$13 = '';
1188
+ }
1189
+ this_1.e(new PlainStringParserOperation(tmp$ret$13));
1190
+ var tmp$ret$17;
1191
+ $l$block_2: {
1192
+ // Inline function 'kotlin.text.takeLastWhile' call
1193
+ var inductionVariable_2 = get_lastIndex(suffix);
1194
+ if (0 <= inductionVariable_2)
1195
+ do {
1196
+ var index_2 = inductionVariable_2;
1197
+ inductionVariable_2 = inductionVariable_2 + -1 | 0;
1198
+ // Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
1199
+ var it_2 = charSequenceGet(suffix, index_2);
1200
+ if (!isAsciiDigit(it_2)) {
1201
+ // Inline function 'kotlin.text.substring' call
1202
+ var startIndex = index_2 + 1 | 0;
1203
+ // Inline function 'kotlin.js.asDynamic' call
1204
+ tmp$ret$17 = suffix.substring(startIndex);
1205
+ break $l$block_2;
1206
+ }
1207
+ }
1208
+ while (0 <= inductionVariable_2);
1209
+ tmp$ret$17 = suffix;
1210
+ }
1211
+ this_1.e(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$17))));
1212
+ } else {
1213
+ this_1.e(new PlainStringParserOperation(suffix));
1214
+ }
1215
+ }
1216
+ tmp = this_1.d5();
1217
+ }
1218
+ return new ParserStructure(tmp, emptyList());
1219
+ };
1220
+ protoOf(ConstantFormatStructure).ri = function () {
1221
+ return new ConstantStringFormatterStructure(this.zj_1);
1222
+ };
1223
+ function ConcatenatedFormatStructure(formats) {
1224
+ this.fh_1 = formats;
1225
+ }
1226
+ protoOf(ConcatenatedFormatStructure).toString = function () {
1227
+ return 'ConcatenatedFormatStructure(' + joinToString(this.fh_1, ', ') + ')';
1228
+ };
1229
+ protoOf(ConcatenatedFormatStructure).equals = function (other) {
1230
+ var tmp;
1231
+ if (other instanceof ConcatenatedFormatStructure) {
1232
+ tmp = equals(this.fh_1, other.fh_1);
1233
+ } else {
1234
+ tmp = false;
1235
+ }
1236
+ return tmp;
1237
+ };
1238
+ protoOf(ConcatenatedFormatStructure).hashCode = function () {
1239
+ return hashCode(this.fh_1);
1240
+ };
1241
+ protoOf(ConcatenatedFormatStructure).tg = function () {
1242
+ // Inline function 'kotlin.collections.map' call
1243
+ var this_0 = this.fh_1;
1244
+ // Inline function 'kotlin.collections.mapTo' call
1245
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1246
+ var tmp0_iterator = this_0.j();
1247
+ while (tmp0_iterator.k()) {
1248
+ var item = tmp0_iterator.l();
1249
+ // Inline function 'kotlinx.datetime.internal.format.ConcatenatedFormatStructure.parser.<anonymous>' call
1250
+ var tmp$ret$0 = item.tg();
1251
+ destination.e(tmp$ret$0);
1252
+ }
1253
+ return concat(destination);
1254
+ };
1255
+ protoOf(ConcatenatedFormatStructure).ri = function () {
1256
+ // Inline function 'kotlin.collections.map' call
1257
+ var this_0 = this.fh_1;
1258
+ // Inline function 'kotlin.collections.mapTo' call
1259
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1260
+ var tmp0_iterator = this_0.j();
1261
+ while (tmp0_iterator.k()) {
1262
+ var item = tmp0_iterator.l();
1263
+ // Inline function 'kotlinx.datetime.internal.format.ConcatenatedFormatStructure.formatter.<anonymous>' call
1264
+ var tmp$ret$0 = item.ri();
1265
+ destination.e(tmp$ret$0);
1266
+ }
1267
+ var formatters = destination;
1268
+ var tmp;
1269
+ if (formatters.o() === 1) {
1270
+ tmp = single(formatters);
1271
+ } else {
1272
+ tmp = new ConcatenatedFormatter(formatters);
1273
+ }
1274
+ return tmp;
1275
+ };
1276
+ function NonConcatenatedFormatStructure() {
1277
+ }
1278
+ function SpacePaddedFormatter(formatter, padding) {
1279
+ this.ak_1 = formatter;
1280
+ this.bk_1 = padding;
1281
+ }
1282
+ function ConcatenatedFormatter(formatters) {
1283
+ this.ck_1 = formatters;
1284
+ }
1285
+ function SignedIntFormatterStructure(number, zeroPadding, outputPlusOnExceededWidth) {
1286
+ this.dk_1 = number;
1287
+ this.ek_1 = zeroPadding;
1288
+ this.fk_1 = outputPlusOnExceededWidth;
1289
+ // Inline function 'kotlin.require' call
1290
+ // Inline function 'kotlin.contracts.contract' call
1291
+ if (!(this.ek_1 >= 0)) {
1292
+ // Inline function 'kotlinx.datetime.internal.format.formatter.SignedIntFormatterStructure.<anonymous>' call
1293
+ var message = 'The minimum number of digits (' + this.ek_1 + ') is negative';
1294
+ throw IllegalArgumentException_init_$Create$(toString(message));
1295
+ }
1296
+ // Inline function 'kotlin.require' call
1297
+ // Inline function 'kotlin.contracts.contract' call
1298
+ if (!(this.ek_1 <= 9)) {
1299
+ // Inline function 'kotlinx.datetime.internal.format.formatter.SignedIntFormatterStructure.<anonymous>' call
1300
+ var message_0 = 'The minimum number of digits (' + this.ek_1 + ') exceeds the length of an Int';
1301
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1302
+ }
1303
+ }
1304
+ function UnsignedIntFormatterStructure(number, zeroPadding) {
1305
+ this.gk_1 = number;
1306
+ this.hk_1 = zeroPadding;
1307
+ // Inline function 'kotlin.require' call
1308
+ // Inline function 'kotlin.contracts.contract' call
1309
+ if (!(this.hk_1 >= 0)) {
1310
+ // Inline function 'kotlinx.datetime.internal.format.formatter.UnsignedIntFormatterStructure.<anonymous>' call
1311
+ var message = 'The minimum number of digits (' + this.hk_1 + ') is negative';
1312
+ throw IllegalArgumentException_init_$Create$(toString(message));
1313
+ }
1314
+ // Inline function 'kotlin.require' call
1315
+ // Inline function 'kotlin.contracts.contract' call
1316
+ if (!(this.hk_1 <= 9)) {
1317
+ // Inline function 'kotlinx.datetime.internal.format.formatter.UnsignedIntFormatterStructure.<anonymous>' call
1318
+ var message_0 = 'The minimum number of digits (' + this.hk_1 + ') exceeds the length of an Int';
1319
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1320
+ }
1321
+ }
1322
+ function ConstantStringFormatterStructure(string) {
1323
+ this.ik_1 = string;
1324
+ }
1325
+ function ConstantNumberConsumer(expected) {
1326
+ NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
1327
+ this.lk_1 = expected;
1328
+ }
1329
+ protoOf(ConstantNumberConsumer).mk = function (storage, input, start, end) {
1330
+ var tmp;
1331
+ // Inline function 'kotlin.text.substring' call
1332
+ if (toString(charSequenceSubSequence(input, start, end)) === this.lk_1) {
1333
+ tmp = null;
1334
+ } else {
1335
+ tmp = new WrongConstant(this.lk_1);
1336
+ }
1337
+ return tmp;
1338
+ };
1339
+ function NumberConsumer(length, whatThisExpects) {
1340
+ this.nk_1 = length;
1341
+ this.ok_1 = whatThisExpects;
1342
+ }
1343
+ protoOf(NumberConsumer).a = function () {
1344
+ return this.nk_1;
1345
+ };
1346
+ function ExpectedInt() {
1347
+ }
1348
+ protoOf(ExpectedInt).pk = function () {
1349
+ return 'expected an Int value';
1350
+ };
1351
+ var ExpectedInt_instance;
1352
+ function ExpectedInt_getInstance() {
1353
+ return ExpectedInt_instance;
1354
+ }
1355
+ function TooManyDigits(maxDigits) {
1356
+ this.qk_1 = maxDigits;
1357
+ }
1358
+ protoOf(TooManyDigits).pk = function () {
1359
+ return 'expected at most ' + this.qk_1 + ' digits';
1360
+ };
1361
+ function TooFewDigits(minDigits) {
1362
+ this.rk_1 = minDigits;
1363
+ }
1364
+ protoOf(TooFewDigits).pk = function () {
1365
+ return 'expected at least ' + this.rk_1 + ' digits';
1366
+ };
1367
+ function WrongConstant(expected) {
1368
+ this.sk_1 = expected;
1369
+ }
1370
+ protoOf(WrongConstant).pk = function () {
1371
+ return "expected '" + this.sk_1 + "'";
1372
+ };
1373
+ function Conflicting(conflicting) {
1374
+ this.tk_1 = conflicting;
1375
+ }
1376
+ protoOf(Conflicting).pk = function () {
1377
+ return "attempted to overwrite the existing value '" + toString(this.tk_1) + "'";
1378
+ };
1379
+ function setWithoutReassigning(_this__u8e3s4, receiver, value) {
1380
+ var tmp0_elvis_lhs = _this__u8e3s4.wj(receiver, value);
1381
+ var tmp;
1382
+ if (tmp0_elvis_lhs == null) {
1383
+ return null;
1384
+ } else {
1385
+ tmp = tmp0_elvis_lhs;
1386
+ }
1387
+ var conflictingValue = tmp;
1388
+ return new Conflicting(conflictingValue);
1389
+ }
1390
+ function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
1391
+ multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
1392
+ NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
1393
+ this.wk_1 = minLength;
1394
+ this.xk_1 = maxLength;
1395
+ this.yk_1 = setter;
1396
+ this.zk_1 = multiplyByMinus1;
1397
+ // Inline function 'kotlin.require' call
1398
+ // Inline function 'kotlin.contracts.contract' call
1399
+ if (!(this.a() == null || numberRangeToNumber(1, 9).ge(this.a()))) {
1400
+ // Inline function 'kotlinx.datetime.internal.format.parser.UnsignedIntConsumer.<anonymous>' call
1401
+ var message = 'Invalid length for field ' + this.ok_1 + ': ' + this.a();
1402
+ throw IllegalArgumentException_init_$Create$(toString(message));
1403
+ }
1404
+ }
1405
+ protoOf(UnsignedIntConsumer).mk = function (storage, input, start, end) {
1406
+ var tmp;
1407
+ if (!(this.xk_1 == null) && (end - start | 0) > this.xk_1) {
1408
+ tmp = new TooManyDigits(this.xk_1);
1409
+ } else if (!(this.wk_1 == null) && (end - start | 0) < this.wk_1) {
1410
+ tmp = new TooFewDigits(this.wk_1);
1411
+ } else {
1412
+ var result = parseAsciiIntOrNull(input, start, end);
1413
+ tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.yk_1, storage, this.zk_1 ? -result | 0 : result);
1414
+ }
1415
+ return tmp;
1416
+ };
1417
+ function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
1418
+ var result = 0;
1419
+ var inductionVariable = start;
1420
+ if (inductionVariable < end)
1421
+ do {
1422
+ var i = inductionVariable;
1423
+ inductionVariable = inductionVariable + 1 | 0;
1424
+ var digit = charSequenceGet(_this__u8e3s4, i);
1425
+ result = imul(result, 10) + asciiDigitToInt(digit) | 0;
1426
+ if (result < 0)
1427
+ return null;
1428
+ }
1429
+ while (inductionVariable < end);
1430
+ return result;
1431
+ }
1432
+ function ParseError(position, message) {
1433
+ this.al_1 = position;
1434
+ this.bl_1 = message;
1435
+ }
1436
+ function _ParseResult___init__impl__gvz3cn(value) {
1437
+ return value;
1438
+ }
1439
+ function _ParseResult___get_value__impl__86mnxf($this) {
1440
+ return $this;
1441
+ }
1442
+ function Companion_2() {
1443
+ }
1444
+ protoOf(Companion_2).cl = function (indexOfNextUnparsed) {
1445
+ return _ParseResult___init__impl__gvz3cn(indexOfNextUnparsed);
1446
+ };
1447
+ protoOf(Companion_2).dl = function (position, message) {
1448
+ return _ParseResult___init__impl__gvz3cn(new ParseError(position, message));
1449
+ };
1450
+ var Companion_instance_2;
1451
+ function Companion_getInstance_2() {
1452
+ return Companion_instance_2;
1453
+ }
1454
+ function _Parser___init__impl__gdyfby(commands) {
1455
+ return commands;
1456
+ }
1457
+ function _get_commands__a20n1($this) {
1458
+ return $this;
1459
+ }
1460
+ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
1461
+ // Inline function 'kotlin.collections.mutableListOf' call
1462
+ var errors = ArrayList_init_$Create$();
1463
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.parse' call
1464
+ var parseOptions = mutableListOf([new ParserState(initialContainer, _get_commands__a20n1($this), startIndex)]);
1465
+ iterate_over_alternatives: while (true) {
1466
+ var tmp0_elvis_lhs = removeLastOrNull(parseOptions);
1467
+ var tmp;
1468
+ if (tmp0_elvis_lhs == null) {
1469
+ break iterate_over_alternatives;
1470
+ } else {
1471
+ tmp = tmp0_elvis_lhs;
1472
+ }
1473
+ var state = tmp;
1474
+ var output = state.el_1.vh();
1475
+ var inputPosition = state.gl_1;
1476
+ var parserStructure = state.fl_1;
1477
+ // Inline function 'kotlin.run' call
1478
+ var this_0 = new Parser($this);
1479
+ // Inline function 'kotlin.contracts.contract' call
1480
+ $l$block: {
1481
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.parse.<anonymous>' call
1482
+ this_0.hl_1;
1483
+ var inductionVariable = 0;
1484
+ var last = parserStructure.il_1.o() - 1 | 0;
1485
+ if (inductionVariable <= last)
1486
+ do {
1487
+ var ix = inductionVariable;
1488
+ inductionVariable = inductionVariable + 1 | 0;
1489
+ // Inline function 'kotlinx.datetime.internal.format.parser.ParseResult.match' call
1490
+ var this_1 = parserStructure.il_1.n(ix).kl(output, input, inputPosition);
1491
+ var tmp0_subject = _ParseResult___get_value__impl__86mnxf(this_1);
1492
+ var tmp_0;
1493
+ if (typeof tmp0_subject === 'number') {
1494
+ inputPosition = _ParseResult___get_value__impl__86mnxf(this_1);
1495
+ tmp_0 = Unit_instance;
1496
+ } else {
1497
+ if (tmp0_subject instanceof ParseError) {
1498
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.match.<anonymous>' call
1499
+ var it = _ParseResult___get_value__impl__86mnxf(this_1);
1500
+ errors.e(it);
1501
+ break $l$block;
1502
+ } else {
1503
+ var message = 'Unexpected parse result: ' + toString(_ParseResult___get_value__impl__86mnxf(this_1));
1504
+ throw IllegalStateException_init_$Create$(toString(message));
1505
+ }
1506
+ }
1507
+ }
1508
+ while (inductionVariable <= last);
1509
+ if (parserStructure.jl_1.m()) {
1510
+ if (false || inputPosition === charSequenceLength(input)) {
1511
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.match.<anonymous>' call
1512
+ return output;
1513
+ } else {
1514
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.match.<anonymous>' call
1515
+ var tmp_1 = inputPosition;
1516
+ var it_0 = new ParseError(tmp_1, Parser$match$lambda);
1517
+ errors.e(it_0);
1518
+ }
1519
+ } else {
1520
+ var inductionVariable_0 = parserStructure.jl_1.o() - 1 | 0;
1521
+ if (0 <= inductionVariable_0)
1522
+ do {
1523
+ var ix_0 = inductionVariable_0;
1524
+ inductionVariable_0 = inductionVariable_0 + -1 | 0;
1525
+ parseOptions.e(new ParserState(output, parserStructure.jl_1.n(ix_0), inputPosition));
1526
+ }
1527
+ while (0 <= inductionVariable_0);
1528
+ }
1529
+ }
1530
+ }
1531
+ // Inline function 'kotlin.collections.sortByDescending' call
1532
+ if (errors.o() > 1) {
1533
+ // Inline function 'kotlin.comparisons.compareByDescending' call
1534
+ var tmp_2 = Parser$match$lambda_0;
1535
+ var tmp$ret$4 = new sam$kotlin_Comparator$0(tmp_2);
1536
+ sortWith(errors, tmp$ret$4);
1537
+ }
1538
+ throw new ParseException(errors);
1539
+ }
1540
+ function Parser__match$default_impl_x2xlti($this, input, initialContainer, startIndex, $super) {
1541
+ startIndex = startIndex === VOID ? 0 : startIndex;
1542
+ var tmp;
1543
+ if ($super === VOID) {
1544
+ tmp = Parser__match_impl_nzt83d($this, input, initialContainer, startIndex);
1545
+ } else {
1546
+ var tmp_0 = $super;
1547
+ tmp = (tmp_0 == null ? null : new Parser(tmp_0)).ll.call(new Parser($this), input, initialContainer, startIndex);
1548
+ }
1549
+ return tmp;
1550
+ }
1551
+ function ParserState(output, parserStructure, inputPosition) {
1552
+ this.el_1 = output;
1553
+ this.fl_1 = parserStructure;
1554
+ this.gl_1 = inputPosition;
1555
+ }
1556
+ function Parser__toString_impl_x33iea($this) {
1557
+ return 'Parser(commands=' + $this.toString() + ')';
1558
+ }
1559
+ function Parser__hashCode_impl_bbxllf($this) {
1560
+ return hashCode($this);
1561
+ }
1562
+ function Parser__equals_impl_djxokv($this, other) {
1563
+ if (!(other instanceof Parser))
1564
+ return false;
1565
+ var tmp0_other_with_cast = other instanceof Parser ? other.hl_1 : THROW_CCE();
1566
+ if (!equals($this, tmp0_other_with_cast))
1567
+ return false;
1568
+ return true;
1569
+ }
1570
+ function sam$kotlin_Comparator$0(function_0) {
1571
+ this.ml_1 = function_0;
1572
+ }
1573
+ protoOf(sam$kotlin_Comparator$0).mb = function (a, b) {
1574
+ return this.ml_1(a, b);
1575
+ };
1576
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1577
+ return this.mb(a, b);
1578
+ };
1579
+ protoOf(sam$kotlin_Comparator$0).e3 = function () {
1580
+ return this.ml_1;
1581
+ };
1582
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
1583
+ var tmp;
1584
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
1585
+ var tmp_0;
1586
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1587
+ tmp_0 = equals(this.e3(), other.e3());
1588
+ } else {
1589
+ tmp_0 = false;
1590
+ }
1591
+ tmp = tmp_0;
1592
+ } else {
1593
+ tmp = false;
1594
+ }
1595
+ return tmp;
1596
+ };
1597
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
1598
+ return hashCode(this.e3());
1599
+ };
1600
+ function Parser$match$lambda() {
1601
+ return 'There is more input to consume';
1602
+ }
1603
+ function Parser$match$lambda_0(a, b) {
1604
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
1605
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.match.<anonymous>' call
1606
+ var tmp = b.al_1;
1607
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.match.<anonymous>' call
1608
+ var tmp$ret$1 = a.al_1;
1609
+ return compareValues(tmp, tmp$ret$1);
1610
+ }
1611
+ function Parser(commands) {
1612
+ this.hl_1 = commands;
1613
+ }
1614
+ protoOf(Parser).toString = function () {
1615
+ return Parser__toString_impl_x33iea(this.hl_1);
1616
+ };
1617
+ protoOf(Parser).hashCode = function () {
1618
+ return Parser__hashCode_impl_bbxllf(this.hl_1);
1619
+ };
1620
+ protoOf(Parser).equals = function (other) {
1621
+ return Parser__equals_impl_djxokv(this.hl_1, other);
1622
+ };
1623
+ function ParserStructure(operations, followedBy) {
1624
+ this.il_1 = operations;
1625
+ this.jl_1 = followedBy;
1626
+ }
1627
+ protoOf(ParserStructure).toString = function () {
1628
+ return joinToString(this.il_1, ', ') + '(' + joinToString(this.jl_1, ';') + ')';
1629
+ };
1630
+ function ParseException(errors) {
1631
+ Exception_init_$Init$(formatError(errors), this);
1632
+ captureStack(this, ParseException);
1633
+ }
1634
+ function concat(_this__u8e3s4) {
1635
+ // Inline function 'kotlin.collections.foldRight' call
1636
+ var accumulator = new ParserStructure(emptyList(), emptyList());
1637
+ if (!_this__u8e3s4.m()) {
1638
+ var iterator = _this__u8e3s4.q(_this__u8e3s4.o());
1639
+ while (iterator.j4()) {
1640
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.<anonymous>' call
1641
+ var parser = iterator.l4();
1642
+ var acc = accumulator;
1643
+ accumulator = concat$append(parser, acc);
1644
+ }
1645
+ }
1646
+ var naiveParser = accumulator;
1647
+ return concat$simplify(naiveParser, emptyList());
1648
+ }
1649
+ function formatError(errors) {
1650
+ if (errors.o() === 1) {
1651
+ return 'Position ' + errors.n(0).al_1 + ': ' + errors.n(0).bl_1();
1652
+ }
1653
+ var averageMessageLength = 33;
1654
+ var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.o()));
1655
+ return joinTo(errors, tmp0_buffer, ', ', 'Errors: ', VOID, VOID, VOID, formatError$lambda).toString();
1656
+ }
1657
+ function concat$append(_this__u8e3s4, other) {
1658
+ var tmp;
1659
+ if (_this__u8e3s4.jl_1.m()) {
1660
+ tmp = new ParserStructure(plus(_this__u8e3s4.il_1, other.il_1), other.jl_1);
1661
+ } else {
1662
+ // Inline function 'kotlin.collections.map' call
1663
+ var this_0 = _this__u8e3s4.jl_1;
1664
+ // Inline function 'kotlin.collections.mapTo' call
1665
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1666
+ var tmp0_iterator = this_0.j();
1667
+ while (tmp0_iterator.k()) {
1668
+ var item = tmp0_iterator.l();
1669
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.append.<anonymous>' call
1670
+ var tmp$ret$0 = concat$append(item, other);
1671
+ destination.e(tmp$ret$0);
1672
+ }
1673
+ tmp = new ParserStructure(_this__u8e3s4.il_1, destination);
1674
+ }
1675
+ return tmp;
1676
+ }
1677
+ function concat$simplify(_this__u8e3s4, unconditionalModifications) {
1678
+ // Inline function 'kotlin.collections.mutableListOf' call
1679
+ var newOperations = ArrayList_init_$Create$();
1680
+ var currentNumberSpan = null;
1681
+ var unconditionalModificationsForTails = toMutableList(unconditionalModifications);
1682
+ var tmp0_iterator = _this__u8e3s4.il_1.j();
1683
+ while (tmp0_iterator.k()) {
1684
+ var op = tmp0_iterator.l();
1685
+ if (op instanceof NumberSpanParserOperation) {
1686
+ if (!(currentNumberSpan == null)) {
1687
+ currentNumberSpan.p(op.nl_1);
1688
+ } else {
1689
+ currentNumberSpan = toMutableList(op.nl_1);
1690
+ }
1691
+ } else {
1692
+ if (op instanceof UnconditionalModification) {
1693
+ unconditionalModificationsForTails.e(op);
1694
+ } else {
1695
+ if (!(currentNumberSpan == null)) {
1696
+ newOperations.e(new NumberSpanParserOperation(currentNumberSpan));
1697
+ currentNumberSpan = null;
1698
+ }
1699
+ newOperations.e(op);
1700
+ }
1701
+ }
1702
+ }
1703
+ // Inline function 'kotlin.collections.ifEmpty' call
1704
+ // Inline function 'kotlin.collections.flatMap' call
1705
+ // Inline function 'kotlin.collections.flatMapTo' call
1706
+ var this_0 = _this__u8e3s4.jl_1;
1707
+ var destination = ArrayList_init_$Create$();
1708
+ var tmp0_iterator_0 = this_0.j();
1709
+ while (tmp0_iterator_0.k()) {
1710
+ var element = tmp0_iterator_0.l();
1711
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.simplify.<anonymous>' call
1712
+ var simplified = concat$simplify(element, unconditionalModificationsForTails);
1713
+ var tmp;
1714
+ if (simplified.il_1.m()) {
1715
+ // Inline function 'kotlin.collections.ifEmpty' call
1716
+ var this_1 = simplified.jl_1;
1717
+ // Inline function 'kotlin.contracts.contract' call
1718
+ var tmp_0;
1719
+ if (this_1.m()) {
1720
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.simplify.<anonymous>.<anonymous>' call
1721
+ tmp_0 = listOf(simplified);
1722
+ } else {
1723
+ tmp_0 = this_1;
1724
+ }
1725
+ tmp = tmp_0;
1726
+ } else {
1727
+ tmp = listOf(simplified);
1728
+ }
1729
+ var list = tmp;
1730
+ addAll(destination, list);
1731
+ }
1732
+ // Inline function 'kotlin.contracts.contract' call
1733
+ var tmp_1;
1734
+ if (destination.m()) {
1735
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.simplify.<anonymous>' call
1736
+ tmp_1 = listOf(new ParserStructure(unconditionalModificationsForTails, emptyList()));
1737
+ } else {
1738
+ tmp_1 = destination;
1739
+ }
1740
+ var mergedTails = tmp_1;
1741
+ var tmp_2;
1742
+ if (currentNumberSpan == null) {
1743
+ tmp_2 = new ParserStructure(newOperations, mergedTails);
1744
+ } else {
1745
+ var tmp$ret$8;
1746
+ $l$block_0: {
1747
+ // Inline function 'kotlin.collections.none' call
1748
+ var tmp_3;
1749
+ if (isInterface(mergedTails, Collection)) {
1750
+ tmp_3 = mergedTails.m();
1751
+ } else {
1752
+ tmp_3 = false;
1753
+ }
1754
+ if (tmp_3) {
1755
+ tmp$ret$8 = true;
1756
+ break $l$block_0;
1757
+ }
1758
+ var tmp0_iterator_1 = mergedTails.j();
1759
+ while (tmp0_iterator_1.k()) {
1760
+ var element_0 = tmp0_iterator_1.l();
1761
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.simplify.<anonymous>' call
1762
+ var tmp0_safe_receiver = firstOrNull(element_0.il_1);
1763
+ var tmp_4;
1764
+ if (tmp0_safe_receiver == null) {
1765
+ tmp_4 = null;
1766
+ } else {
1767
+ // Inline function 'kotlin.let' call
1768
+ // Inline function 'kotlin.contracts.contract' call
1769
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.simplify.<anonymous>.<anonymous>' call
1770
+ tmp_4 = tmp0_safe_receiver instanceof NumberSpanParserOperation;
1771
+ }
1772
+ if (tmp_4 === true) {
1773
+ tmp$ret$8 = false;
1774
+ break $l$block_0;
1775
+ }
1776
+ }
1777
+ tmp$ret$8 = true;
1778
+ }
1779
+ if (tmp$ret$8) {
1780
+ newOperations.e(new NumberSpanParserOperation(currentNumberSpan));
1781
+ tmp_2 = new ParserStructure(newOperations, mergedTails);
1782
+ } else {
1783
+ // Inline function 'kotlin.collections.map' call
1784
+ // Inline function 'kotlin.collections.mapTo' call
1785
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
1786
+ var tmp0_iterator_2 = mergedTails.j();
1787
+ while (tmp0_iterator_2.k()) {
1788
+ var item = tmp0_iterator_2.l();
1789
+ // Inline function 'kotlinx.datetime.internal.format.parser.concat.simplify.<anonymous>' call
1790
+ var firstOperation = firstOrNull(item.il_1);
1791
+ var tmp_5;
1792
+ if (firstOperation instanceof NumberSpanParserOperation) {
1793
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.nl_1))), drop(item.il_1, 1)), item.jl_1);
1794
+ } else {
1795
+ if (firstOperation == null) {
1796
+ tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.jl_1);
1797
+ } else {
1798
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.il_1), item.jl_1);
1799
+ }
1800
+ }
1801
+ var tmp$ret$12 = tmp_5;
1802
+ destination_0.e(tmp$ret$12);
1803
+ }
1804
+ var newTails = destination_0;
1805
+ tmp_2 = new ParserStructure(newOperations, newTails);
1806
+ }
1807
+ }
1808
+ return tmp_2;
1809
+ }
1810
+ function formatError$lambda(it) {
1811
+ return 'position ' + it.al_1 + ": '" + it.bl_1() + "'";
1812
+ }
1813
+ function SignedIntParser(minDigits, maxDigits, spacePadding, setter, name, plusOnExceedsWidth) {
1814
+ var parsers = mutableListOf([spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, true)]);
1815
+ if (!(plusOnExceedsWidth == null)) {
1816
+ parsers.e(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
1817
+ parsers.e(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
1818
+ } else {
1819
+ parsers.e(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
1820
+ }
1821
+ return new ParserStructure(emptyList(), parsers);
1822
+ }
1823
+ function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, withMinus) {
1824
+ withMinus = withMinus === VOID ? false : withMinus;
1825
+ var minNumberLength = (minDigits == null ? 1 : minDigits) + (withMinus ? 1 : 0) | 0;
1826
+ var tmp;
1827
+ if (maxDigits == null) {
1828
+ tmp = null;
1829
+ } else {
1830
+ // Inline function 'kotlin.let' call
1831
+ // Inline function 'kotlin.contracts.contract' call
1832
+ // Inline function 'kotlinx.datetime.internal.format.parser.spaceAndZeroPaddedUnsignedInt.<anonymous>' call
1833
+ tmp = withMinus ? maxDigits + 1 | 0 : maxDigits;
1834
+ }
1835
+ var tmp2_elvis_lhs = tmp;
1836
+ var maxNumberLength = tmp2_elvis_lhs == null ? 2147483647 : tmp2_elvis_lhs;
1837
+ var spacePadding_0 = spacePadding == null ? 0 : spacePadding;
1838
+ // Inline function 'kotlin.comparisons.minOf' call
1839
+ var maxPaddedNumberLength = Math.min(maxNumberLength, spacePadding_0);
1840
+ if (minNumberLength >= maxPaddedNumberLength)
1841
+ return spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, minNumberLength, maxNumberLength);
1842
+ var accumulated = spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, minNumberLength, minNumberLength);
1843
+ var inductionVariable = minNumberLength;
1844
+ if (inductionVariable < maxPaddedNumberLength)
1845
+ do {
1846
+ var accumulatedWidth = inductionVariable;
1847
+ inductionVariable = inductionVariable + 1 | 0;
1848
+ accumulated = new ParserStructure(emptyList(), listOf_0([spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, accumulatedWidth + 1 | 0, accumulatedWidth + 1 | 0), concat(listOf_0([new ParserStructure(listOf(new PlainStringParserOperation(' ')), emptyList()), accumulated]))]));
1849
+ }
1850
+ while (inductionVariable < maxPaddedNumberLength);
1851
+ var tmp_0;
1852
+ if (spacePadding_0 > maxNumberLength) {
1853
+ var prepadding = new PlainStringParserOperation(repeat(' ', spacePadding_0 - maxNumberLength | 0));
1854
+ tmp_0 = concat(listOf_0([new ParserStructure(listOf(prepadding), emptyList()), accumulated]));
1855
+ } else if (spacePadding_0 === maxNumberLength) {
1856
+ tmp_0 = accumulated;
1857
+ } else {
1858
+ var r = new ParserStructure(emptyList(), listOf_0([spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, spacePadding_0 + 1 | 0, maxNumberLength), accumulated]));
1859
+ tmp_0 = r;
1860
+ }
1861
+ return tmp_0;
1862
+ }
1863
+ function _get_whatThisExpects__4pg11j($this) {
1864
+ // Inline function 'kotlin.collections.map' call
1865
+ var this_0 = $this.nl_1;
1866
+ // Inline function 'kotlin.collections.mapTo' call
1867
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1868
+ var tmp0_iterator = this_0.j();
1869
+ while (tmp0_iterator.k()) {
1870
+ var item = tmp0_iterator.l();
1871
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.<get-whatThisExpects>.<anonymous>' call
1872
+ var length = item.a();
1873
+ var tmp$ret$0 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.ok_1);
1874
+ destination.e(tmp$ret$0);
1875
+ }
1876
+ var consumerLengths = destination;
1877
+ var tmp;
1878
+ if ($this.pl_1) {
1879
+ tmp = 'a number with at least ' + $this.ol_1 + ' digits: ' + toString(consumerLengths);
1880
+ } else {
1881
+ tmp = 'a number with exactly ' + $this.ol_1 + ' digits: ' + toString(consumerLengths);
1882
+ }
1883
+ return tmp;
1884
+ }
1885
+ function NumberSpanParserOperation$consume$lambda(this$0) {
1886
+ return function () {
1887
+ return 'Unexpected end of input: yet to parse ' + _get_whatThisExpects__4pg11j(this$0);
1888
+ };
1889
+ }
1890
+ function NumberSpanParserOperation$consume$lambda_0($digitsInRow, this$0) {
1891
+ return function () {
1892
+ return 'Only found ' + $digitsInRow._v + ' digits in a row, but need to parse ' + _get_whatThisExpects__4pg11j(this$0);
1893
+ };
1894
+ }
1895
+ function NumberSpanParserOperation$consume$lambda_1($numberString, this$0, $i, $error) {
1896
+ return function () {
1897
+ return "Can not interpret the string '" + $numberString + "' as " + this$0.nl_1.n($i).ok_1 + ': ' + $error.pk();
1898
+ };
1899
+ }
1900
+ function NumberSpanParserOperation(consumers) {
1901
+ this.nl_1 = consumers;
1902
+ var tmp = this;
1903
+ // Inline function 'kotlin.collections.sumOf' call
1904
+ var sum = 0;
1905
+ var tmp0_iterator = this.nl_1.j();
1906
+ while (tmp0_iterator.k()) {
1907
+ var element = tmp0_iterator.l();
1908
+ var tmp_0 = sum;
1909
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.minLength.<anonymous>' call
1910
+ var tmp0_elvis_lhs = element.a();
1911
+ sum = tmp_0 + (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
1912
+ }
1913
+ tmp.ol_1 = sum;
1914
+ var tmp_1 = this;
1915
+ var tmp$ret$2;
1916
+ $l$block_0: {
1917
+ // Inline function 'kotlin.collections.any' call
1918
+ var this_0 = this.nl_1;
1919
+ var tmp_2;
1920
+ if (isInterface(this_0, Collection)) {
1921
+ tmp_2 = this_0.m();
1922
+ } else {
1923
+ tmp_2 = false;
1924
+ }
1925
+ if (tmp_2) {
1926
+ tmp$ret$2 = false;
1927
+ break $l$block_0;
1928
+ }
1929
+ var tmp0_iterator_0 = this_0.j();
1930
+ while (tmp0_iterator_0.k()) {
1931
+ var element_0 = tmp0_iterator_0.l();
1932
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.isFlexible.<anonymous>' call
1933
+ if (element_0.a() == null) {
1934
+ tmp$ret$2 = true;
1935
+ break $l$block_0;
1936
+ }
1937
+ }
1938
+ tmp$ret$2 = false;
1939
+ }
1940
+ tmp_1.pl_1 = tmp$ret$2;
1941
+ // Inline function 'kotlin.require' call
1942
+ var tmp$ret$4;
1943
+ $l$block_2: {
1944
+ // Inline function 'kotlin.collections.all' call
1945
+ var this_1 = this.nl_1;
1946
+ var tmp_3;
1947
+ if (isInterface(this_1, Collection)) {
1948
+ tmp_3 = this_1.m();
1949
+ } else {
1950
+ tmp_3 = false;
1951
+ }
1952
+ if (tmp_3) {
1953
+ tmp$ret$4 = true;
1954
+ break $l$block_2;
1955
+ }
1956
+ var tmp0_iterator_1 = this_1.j();
1957
+ while (tmp0_iterator_1.k()) {
1958
+ var element_1 = tmp0_iterator_1.l();
1959
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.<anonymous>' call
1960
+ var tmp0_elvis_lhs_0 = element_1.a();
1961
+ if (!((tmp0_elvis_lhs_0 == null ? 2147483647 : tmp0_elvis_lhs_0) > 0)) {
1962
+ tmp$ret$4 = false;
1963
+ break $l$block_2;
1964
+ }
1965
+ }
1966
+ tmp$ret$4 = true;
1967
+ }
1968
+ // Inline function 'kotlin.contracts.contract' call
1969
+ // Inline function 'kotlin.require' call
1970
+ // Inline function 'kotlin.contracts.contract' call
1971
+ if (!tmp$ret$4) {
1972
+ // Inline function 'kotlin.require.<anonymous>' call
1973
+ var message = 'Failed requirement.';
1974
+ throw IllegalArgumentException_init_$Create$(toString(message));
1975
+ }
1976
+ // Inline function 'kotlin.require' call
1977
+ var tmp$ret$7;
1978
+ $l$block_3: {
1979
+ // Inline function 'kotlin.collections.count' call
1980
+ var this_2 = this.nl_1;
1981
+ var tmp_4;
1982
+ if (isInterface(this_2, Collection)) {
1983
+ tmp_4 = this_2.m();
1984
+ } else {
1985
+ tmp_4 = false;
1986
+ }
1987
+ if (tmp_4) {
1988
+ tmp$ret$7 = 0;
1989
+ break $l$block_3;
1990
+ }
1991
+ var count = 0;
1992
+ var tmp0_iterator_2 = this_2.j();
1993
+ while (tmp0_iterator_2.k()) {
1994
+ var element_2 = tmp0_iterator_2.l();
1995
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.<anonymous>' call
1996
+ if (element_2.a() == null) {
1997
+ count = count + 1 | 0;
1998
+ checkCountOverflow(count);
1999
+ }
2000
+ }
2001
+ tmp$ret$7 = count;
2002
+ }
2003
+ // Inline function 'kotlin.contracts.contract' call
2004
+ if (!(tmp$ret$7 <= 1)) {
2005
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.<anonymous>' call
2006
+ // Inline function 'kotlin.collections.map' call
2007
+ // Inline function 'kotlin.collections.filter' call
2008
+ // Inline function 'kotlin.collections.filterTo' call
2009
+ var this_3 = this.nl_1;
2010
+ var destination = ArrayList_init_$Create$();
2011
+ var tmp0_iterator_3 = this_3.j();
2012
+ while (tmp0_iterator_3.k()) {
2013
+ var element_3 = tmp0_iterator_3.l();
2014
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.<anonymous>.<anonymous>' call
2015
+ if (element_3.a() == null) {
2016
+ destination.e(element_3);
2017
+ }
2018
+ }
2019
+ // Inline function 'kotlin.collections.mapTo' call
2020
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
2021
+ var tmp0_iterator_4 = destination.j();
2022
+ while (tmp0_iterator_4.k()) {
2023
+ var item = tmp0_iterator_4.l();
2024
+ // Inline function 'kotlinx.datetime.internal.format.parser.NumberSpanParserOperation.<anonymous>.<anonymous>' call
2025
+ var tmp$ret$12 = item.ok_1;
2026
+ destination_0.e(tmp$ret$12);
2027
+ }
2028
+ var fieldNames = destination_0;
2029
+ var message_0 = 'At most one variable-length numeric field in a row is allowed, but got several: ' + toString(fieldNames) + '. ' + 'Parsing is undefined: for example, with variable-length month number ' + "and variable-length day of month, '111' can be parsed as Jan 11th or Nov 1st.";
2030
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
2031
+ }
2032
+ }
2033
+ protoOf(NumberSpanParserOperation).kl = function (storage, input, startIndex) {
2034
+ if ((startIndex + this.ol_1 | 0) > charSequenceLength(input)) {
2035
+ var tmp = Companion_instance_2;
2036
+ return tmp.dl(startIndex, NumberSpanParserOperation$consume$lambda(this));
2037
+ }
2038
+ var digitsInRow = {_v: 0};
2039
+ while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) && isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0))) {
2040
+ digitsInRow._v = digitsInRow._v + 1 | 0;
2041
+ digitsInRow._v;
2042
+ }
2043
+ if (digitsInRow._v < this.ol_1) {
2044
+ var tmp_0 = Companion_instance_2;
2045
+ return tmp_0.dl(startIndex, NumberSpanParserOperation$consume$lambda_0(digitsInRow, this));
2046
+ }
2047
+ var index = startIndex;
2048
+ var inductionVariable = 0;
2049
+ var last = this.nl_1.o() - 1 | 0;
2050
+ if (inductionVariable <= last)
2051
+ do {
2052
+ var i = inductionVariable;
2053
+ inductionVariable = inductionVariable + 1 | 0;
2054
+ var tmp1_elvis_lhs = this.nl_1.n(i).a();
2055
+ var length = tmp1_elvis_lhs == null ? (digitsInRow._v - this.ol_1 | 0) + 1 | 0 : tmp1_elvis_lhs;
2056
+ var error = this.nl_1.n(i).mk(storage, input, index, index + length | 0);
2057
+ if (!(error == null)) {
2058
+ // Inline function 'kotlin.text.substring' call
2059
+ var startIndex_0 = index;
2060
+ var endIndex = index + length | 0;
2061
+ var numberString = toString(charSequenceSubSequence(input, startIndex_0, endIndex));
2062
+ var tmp_1 = Companion_instance_2;
2063
+ var tmp_2 = index;
2064
+ return tmp_1.dl(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
2065
+ }
2066
+ index = index + length | 0;
2067
+ }
2068
+ while (inductionVariable <= last);
2069
+ return Companion_instance_2.cl(index);
2070
+ };
2071
+ protoOf(NumberSpanParserOperation).toString = function () {
2072
+ return _get_whatThisExpects__4pg11j(this);
2073
+ };
2074
+ function PlainStringParserOperation$consume$lambda(this$0) {
2075
+ return function () {
2076
+ return "Unexpected end of input: yet to parse '" + this$0.ql_1 + "'";
2077
+ };
2078
+ }
2079
+ function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex, $i) {
2080
+ return function () {
2081
+ // Inline function 'kotlin.text.substring' call
2082
+ var this_0 = $input;
2083
+ var startIndex = $startIndex;
2084
+ var endIndex = ($startIndex + $i | 0) + 1 | 0;
2085
+ var tmp$ret$0 = toString(charSequenceSubSequence(this_0, startIndex, endIndex));
2086
+ return 'Expected ' + this$0.ql_1 + ' but got ' + tmp$ret$0;
2087
+ };
2088
+ }
2089
+ function PlainStringParserOperation(string) {
2090
+ this.ql_1 = string;
2091
+ // Inline function 'kotlin.require' call
2092
+ // Inline function 'kotlin.text.isNotEmpty' call
2093
+ var this_0 = this.ql_1;
2094
+ // Inline function 'kotlin.contracts.contract' call
2095
+ if (!(charSequenceLength(this_0) > 0)) {
2096
+ // Inline function 'kotlinx.datetime.internal.format.parser.PlainStringParserOperation.<anonymous>' call
2097
+ var message = 'Empty string is not allowed';
2098
+ throw IllegalArgumentException_init_$Create$(toString(message));
2099
+ }
2100
+ // Inline function 'kotlin.require' call
2101
+ // Inline function 'kotlin.contracts.contract' call
2102
+ if (!!isAsciiDigit(charSequenceGet(this.ql_1, 0))) {
2103
+ // Inline function 'kotlinx.datetime.internal.format.parser.PlainStringParserOperation.<anonymous>' call
2104
+ var message_0 = "String '" + this.ql_1 + "' starts with a digit";
2105
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
2106
+ }
2107
+ // Inline function 'kotlin.require' call
2108
+ // Inline function 'kotlin.contracts.contract' call
2109
+ if (!!isAsciiDigit(charSequenceGet(this.ql_1, this.ql_1.length - 1 | 0))) {
2110
+ // Inline function 'kotlinx.datetime.internal.format.parser.PlainStringParserOperation.<anonymous>' call
2111
+ var message_1 = "String '" + this.ql_1 + "' ends with a digit";
2112
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
2113
+ }
2114
+ }
2115
+ protoOf(PlainStringParserOperation).kl = function (storage, input, startIndex) {
2116
+ if ((startIndex + this.ql_1.length | 0) > charSequenceLength(input)) {
2117
+ var tmp = Companion_instance_2;
2118
+ return tmp.dl(startIndex, PlainStringParserOperation$consume$lambda(this));
2119
+ }
2120
+ var inductionVariable = 0;
2121
+ var last = charSequenceLength(this.ql_1) - 1 | 0;
2122
+ if (inductionVariable <= last)
2123
+ do {
2124
+ var i = inductionVariable;
2125
+ inductionVariable = inductionVariable + 1 | 0;
2126
+ if (!(charSequenceGet(input, startIndex + i | 0) === charSequenceGet(this.ql_1, i))) {
2127
+ var tmp_0 = Companion_instance_2;
2128
+ return tmp_0.dl(startIndex, PlainStringParserOperation$consume$lambda_0(this, input, startIndex, i));
2129
+ }
2130
+ }
2131
+ while (inductionVariable <= last);
2132
+ return Companion_instance_2.cl(startIndex + this.ql_1.length | 0);
2133
+ };
2134
+ protoOf(PlainStringParserOperation).toString = function () {
2135
+ return "'" + this.ql_1 + "'";
2136
+ };
2137
+ function UnconditionalModification() {
2138
+ }
2139
+ function spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths($withMinus, $setter, $name, minNumberLength, maxNumberLength) {
2140
+ // Inline function 'kotlin.check' call
2141
+ // Inline function 'kotlin.contracts.contract' call
2142
+ // Inline function 'kotlin.check' call
2143
+ // Inline function 'kotlin.contracts.contract' call
2144
+ if (!(maxNumberLength >= (1 + ($withMinus ? 1 : 0) | 0))) {
2145
+ // Inline function 'kotlin.check.<anonymous>' call
2146
+ var message = 'Check failed.';
2147
+ throw IllegalStateException_init_$Create$(toString(message));
2148
+ }
2149
+ // Inline function 'kotlin.collections.buildList' call
2150
+ // Inline function 'kotlin.contracts.contract' call
2151
+ // Inline function 'kotlin.collections.buildListInternal' call
2152
+ // Inline function 'kotlin.apply' call
2153
+ var this_0 = ArrayList_init_$Create$();
2154
+ // Inline function 'kotlin.contracts.contract' call
2155
+ // Inline function 'kotlinx.datetime.internal.format.parser.spaceAndZeroPaddedUnsignedInt.numberOfRequiredLengths.<anonymous>' call
2156
+ if ($withMinus) {
2157
+ this_0.e(new PlainStringParserOperation('-'));
2158
+ }
2159
+ this_0.e(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
2160
+ var tmp$ret$3 = this_0.d5();
2161
+ return new ParserStructure(tmp$ret$3, emptyList());
2162
+ }
2163
+ function isAsciiDigit(_this__u8e3s4) {
2164
+ return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
2165
+ }
2166
+ function asciiDigitToInt(_this__u8e3s4) {
2167
+ return Char__minus_impl_a2frrh(_this__u8e3s4, _Char___init__impl__6a9atx(48));
2168
+ }
2169
+ var DayOfWeek_MONDAY_instance;
2170
+ var DayOfWeek_TUESDAY_instance;
2171
+ var DayOfWeek_WEDNESDAY_instance;
2172
+ var DayOfWeek_THURSDAY_instance;
2173
+ var DayOfWeek_FRIDAY_instance;
2174
+ var DayOfWeek_SATURDAY_instance;
2175
+ var DayOfWeek_SUNDAY_instance;
2176
+ function values() {
2177
+ return [DayOfWeek_MONDAY_getInstance(), DayOfWeek_TUESDAY_getInstance(), DayOfWeek_WEDNESDAY_getInstance(), DayOfWeek_THURSDAY_getInstance(), DayOfWeek_FRIDAY_getInstance(), DayOfWeek_SATURDAY_getInstance(), DayOfWeek_SUNDAY_getInstance()];
2178
+ }
2179
+ function get_entries() {
2180
+ if ($ENTRIES == null)
2181
+ $ENTRIES = enumEntries(values());
2182
+ return $ENTRIES;
2183
+ }
2184
+ var DayOfWeek_entriesInitialized;
2185
+ function DayOfWeek_initEntries() {
2186
+ if (DayOfWeek_entriesInitialized)
2187
+ return Unit_instance;
2188
+ DayOfWeek_entriesInitialized = true;
2189
+ DayOfWeek_MONDAY_instance = new DayOfWeek_0('MONDAY', 0);
2190
+ DayOfWeek_TUESDAY_instance = new DayOfWeek_0('TUESDAY', 1);
2191
+ DayOfWeek_WEDNESDAY_instance = new DayOfWeek_0('WEDNESDAY', 2);
2192
+ DayOfWeek_THURSDAY_instance = new DayOfWeek_0('THURSDAY', 3);
2193
+ DayOfWeek_FRIDAY_instance = new DayOfWeek_0('FRIDAY', 4);
2194
+ DayOfWeek_SATURDAY_instance = new DayOfWeek_0('SATURDAY', 5);
2195
+ DayOfWeek_SUNDAY_instance = new DayOfWeek_0('SUNDAY', 6);
2196
+ }
2197
+ var $ENTRIES;
2198
+ function DayOfWeek_0(name, ordinal) {
2199
+ Enum.call(this, name, ordinal);
2200
+ }
2201
+ function toDayOfWeek(_this__u8e3s4) {
2202
+ return DayOfWeek(_this__u8e3s4.value());
2203
+ }
2204
+ function DayOfWeek_MONDAY_getInstance() {
2205
+ DayOfWeek_initEntries();
2206
+ return DayOfWeek_MONDAY_instance;
2207
+ }
2208
+ function DayOfWeek_TUESDAY_getInstance() {
2209
+ DayOfWeek_initEntries();
2210
+ return DayOfWeek_TUESDAY_instance;
2211
+ }
2212
+ function DayOfWeek_WEDNESDAY_getInstance() {
2213
+ DayOfWeek_initEntries();
2214
+ return DayOfWeek_WEDNESDAY_instance;
2215
+ }
2216
+ function DayOfWeek_THURSDAY_getInstance() {
2217
+ DayOfWeek_initEntries();
2218
+ return DayOfWeek_THURSDAY_instance;
2219
+ }
2220
+ function DayOfWeek_FRIDAY_getInstance() {
2221
+ DayOfWeek_initEntries();
2222
+ return DayOfWeek_FRIDAY_instance;
2223
+ }
2224
+ function DayOfWeek_SATURDAY_getInstance() {
2225
+ DayOfWeek_initEntries();
2226
+ return DayOfWeek_SATURDAY_instance;
2227
+ }
2228
+ function DayOfWeek_SUNDAY_getInstance() {
2229
+ DayOfWeek_initEntries();
2230
+ return DayOfWeek_SUNDAY_instance;
2231
+ }
2232
+ function Instant() {
2233
+ }
2234
+ function isJodaDateTimeParseException(_this__u8e3s4) {
2235
+ return hasJsExceptionName(_this__u8e3s4, 'DateTimeParseException');
2236
+ }
2237
+ function isJodaDateTimeException(_this__u8e3s4) {
2238
+ return hasJsExceptionName(_this__u8e3s4, 'DateTimeException');
2239
+ }
2240
+ function isJodaArithmeticException(_this__u8e3s4) {
2241
+ return hasJsExceptionName(_this__u8e3s4, 'ArithmeticException');
2242
+ }
2243
+ function Companion_3() {
2244
+ Companion_instance_3 = this;
2245
+ this.rl_1 = new LocalDate_0(LocalDate.MIN);
2246
+ this.sl_1 = new LocalDate_0(LocalDate.MAX);
2247
+ }
2248
+ protoOf(Companion_3).tl = function (input, format) {
2249
+ var tmp;
2250
+ if (format === Formats_getInstance().lg()) {
2251
+ var tmp_0;
2252
+ try {
2253
+ // Inline function 'kotlin.let' call
2254
+ // Inline function 'kotlinx.datetime.jsTry' call
2255
+ // Inline function 'kotlinx.datetime.Companion.parse.<anonymous>' call
2256
+ // Inline function 'kotlin.contracts.contract' call
2257
+ var p0 = LocalDate.parse(toString(input));
2258
+ tmp_0 = new LocalDate_0(p0);
2259
+ } catch ($p) {
2260
+ var tmp_1;
2261
+ if ($p instanceof Error) {
2262
+ var e = $p;
2263
+ if (isJodaDateTimeParseException(e))
2264
+ throw DateTimeFormatException_init_$Create$_1(e);
2265
+ throw e;
2266
+ } else {
2267
+ throw $p;
2268
+ }
2269
+ }
2270
+ tmp = tmp_0;
2271
+ } else {
2272
+ tmp = format.pg(input);
2273
+ }
2274
+ return tmp;
2275
+ };
2276
+ protoOf(Companion_3).ul = function (input, format, $super) {
2277
+ format = format === VOID ? getIsoDateFormat() : format;
2278
+ return $super === VOID ? this.tl(input, format) : $super.tl.call(this, input, format);
2279
+ };
2280
+ var Companion_instance_3;
2281
+ function Companion_getInstance_3() {
2282
+ if (Companion_instance_3 == null)
2283
+ new Companion_3();
2284
+ return Companion_instance_3;
2285
+ }
2286
+ function Formats() {
2287
+ Formats_instance = this;
2288
+ this.kg_1 = get_ISO_DATE_BASIC();
2289
+ }
2290
+ protoOf(Formats).lg = function () {
2291
+ return get_ISO_DATE();
2292
+ };
2293
+ var Formats_instance;
2294
+ function Formats_getInstance() {
2295
+ if (Formats_instance == null)
2296
+ new Formats();
2297
+ return Formats_instance;
2298
+ }
2299
+ function LocalDate_init_$Init$(year, monthNumber, dayOfMonth, $this) {
2300
+ var tmp;
2301
+ try {
2302
+ // Inline function 'kotlinx.datetime.jsTry' call
2303
+ // Inline function 'kotlinx.datetime.LocalDate.<init>.<anonymous>' call
2304
+ tmp = LocalDate.of(year, monthNumber, dayOfMonth);
2305
+ } catch ($p) {
2306
+ var tmp_0;
2307
+ if ($p instanceof Error) {
2308
+ var e = $p;
2309
+ if (isJodaDateTimeException(e))
2310
+ throw IllegalArgumentException_init_$Create$_0(e);
2311
+ throw e;
2312
+ } else {
2313
+ throw $p;
2314
+ }
2315
+ }
2316
+ LocalDate_0.call($this, tmp);
2317
+ return $this;
2318
+ }
2319
+ function LocalDate_init_$Create$(year, monthNumber, dayOfMonth) {
2320
+ return LocalDate_init_$Init$(year, monthNumber, dayOfMonth, objectCreate(protoOf(LocalDate_0)));
2321
+ }
2322
+ function LocalDate_0(value) {
2323
+ Companion_getInstance_3();
2324
+ this.th_1 = value;
2325
+ }
2326
+ protoOf(LocalDate_0).uh = function () {
2327
+ return toDayOfWeek(this.th_1.dayOfWeek());
2328
+ };
2329
+ protoOf(LocalDate_0).equals = function (other) {
2330
+ var tmp;
2331
+ if (this === other) {
2332
+ tmp = true;
2333
+ } else {
2334
+ var tmp_0;
2335
+ if (other instanceof LocalDate_0) {
2336
+ tmp_0 = this.th_1 === other.th_1 || this.th_1.equals(other.th_1);
2337
+ } else {
2338
+ tmp_0 = false;
2339
+ }
2340
+ tmp = tmp_0;
2341
+ }
2342
+ return tmp;
2343
+ };
2344
+ protoOf(LocalDate_0).hashCode = function () {
2345
+ return this.th_1.hashCode();
2346
+ };
2347
+ protoOf(LocalDate_0).toString = function () {
2348
+ return this.th_1.toString();
2349
+ };
2350
+ protoOf(LocalDate_0).vl = function (other) {
2351
+ return this.th_1.compareTo(other.th_1);
2352
+ };
2353
+ protoOf(LocalDate_0).d = function (other) {
2354
+ return this.vl(other instanceof LocalDate_0 ? other : THROW_CCE());
2355
+ };
2356
+ protoOf(LocalDate_0).wl = function () {
2357
+ return numberToInt(this.th_1.toEpochDay());
2358
+ };
2359
+ function plus_0(_this__u8e3s4, period) {
2360
+ var tmp;
2361
+ try {
2362
+ // Inline function 'kotlin.let' call
2363
+ // Inline function 'kotlin.with' call
2364
+ // Inline function 'kotlin.contracts.contract' call
2365
+ // Inline function 'kotlinx.datetime.plus.<anonymous>' call
2366
+ // Inline function 'kotlin.run' call
2367
+ // Inline function 'kotlin.run' call
2368
+ // Inline function 'kotlin.contracts.contract' call
2369
+ // Inline function 'kotlinx.datetime.plus.<anonymous>.<anonymous>' call
2370
+ var $this$run = _this__u8e3s4.th_1;
2371
+ var tmp_0;
2372
+ if (!(period.zf_1 === 0)) {
2373
+ // Inline function 'kotlinx.datetime.jsTry' call
2374
+ // Inline function 'kotlinx.datetime.plus.<anonymous>.<anonymous>.<anonymous>' call
2375
+ tmp_0 = $this$run.plusMonths(period.zf_1);
2376
+ } else {
2377
+ tmp_0 = $this$run;
2378
+ }
2379
+ // Inline function 'kotlin.contracts.contract' call
2380
+ // Inline function 'kotlinx.datetime.plus.<anonymous>.<anonymous>' call
2381
+ var $this$run_0 = tmp_0;
2382
+ var tmp_1;
2383
+ if (!(period.ag_1 === 0)) {
2384
+ // Inline function 'kotlinx.datetime.jsTry' call
2385
+ // Inline function 'kotlinx.datetime.plus.<anonymous>.<anonymous>.<anonymous>' call
2386
+ tmp_1 = $this$run_0.plusDays(period.ag_1);
2387
+ } else {
2388
+ tmp_1 = $this$run_0;
2389
+ }
2390
+ // Inline function 'kotlin.contracts.contract' call
2391
+ var p0 = tmp_1;
2392
+ tmp = new LocalDate_0(p0);
2393
+ } catch ($p) {
2394
+ var tmp_2;
2395
+ if ($p instanceof Error) {
2396
+ var e = $p;
2397
+ if (isJodaDateTimeException(e) || isJodaArithmeticException(e))
2398
+ throw DateTimeArithmeticException_init_$Create$_0(e);
2399
+ throw e;
2400
+ } else {
2401
+ throw $p;
2402
+ }
2403
+ }
2404
+ return tmp;
2405
+ }
2406
+ function daysUntil(_this__u8e3s4, other) {
2407
+ return numberToInt(_this__u8e3s4.th_1.until(other.th_1, ChronoUnit.DAYS));
2408
+ }
2409
+ function monthsUntil(_this__u8e3s4, other) {
2410
+ return numberToInt(_this__u8e3s4.th_1.until(other.th_1, ChronoUnit.MONTHS));
2411
+ }
2412
+ function yearsUntil(_this__u8e3s4, other) {
2413
+ return numberToInt(_this__u8e3s4.th_1.until(other.th_1, ChronoUnit.YEARS));
2414
+ }
2415
+ function Companion_4() {
2416
+ Companion_instance_4 = this;
2417
+ this.xl_1 = new LocalDateTime_0(LocalDateTime.MIN);
2418
+ this.yl_1 = new LocalDateTime_0(LocalDateTime.MAX);
2419
+ }
2420
+ var Companion_instance_4;
2421
+ function Companion_getInstance_4() {
2422
+ if (Companion_instance_4 == null)
2423
+ new Companion_4();
2424
+ return Companion_instance_4;
2425
+ }
2426
+ function LocalDateTime_0(value) {
2427
+ Companion_getInstance_4();
2428
+ this.zl_1 = value;
2429
+ }
2430
+ protoOf(LocalDateTime_0).am = function () {
2431
+ return new LocalDate_0(this.zl_1.toLocalDate());
2432
+ };
2433
+ protoOf(LocalDateTime_0).equals = function (other) {
2434
+ var tmp;
2435
+ if (this === other) {
2436
+ tmp = true;
2437
+ } else {
2438
+ var tmp_0;
2439
+ if (other instanceof LocalDateTime_0) {
2440
+ tmp_0 = this.zl_1 === other.zl_1 || this.zl_1.equals(other.zl_1);
2441
+ } else {
2442
+ tmp_0 = false;
2443
+ }
2444
+ tmp = tmp_0;
2445
+ }
2446
+ return tmp;
2447
+ };
2448
+ protoOf(LocalDateTime_0).hashCode = function () {
2449
+ return this.zl_1.hashCode();
2450
+ };
2451
+ protoOf(LocalDateTime_0).toString = function () {
2452
+ return this.zl_1.toString();
2453
+ };
2454
+ protoOf(LocalDateTime_0).bm = function (other) {
2455
+ return this.zl_1.compareTo(other.zl_1);
2456
+ };
2457
+ protoOf(LocalDateTime_0).d = function (other) {
2458
+ return this.bm(other instanceof LocalDateTime_0 ? other : THROW_CCE());
2459
+ };
2460
+ function ofZone($this, zoneId) {
2461
+ var tmp;
2462
+ if (zoneId instanceof ZoneOffset) {
2463
+ tmp = FixedOffsetTimeZone_init_$Create$(new UtcOffset(zoneId));
2464
+ } else {
2465
+ if (zoneId.rules().isFixedOffset()) {
2466
+ var tmp_0 = zoneId.normalized();
2467
+ tmp = new FixedOffsetTimeZone(new UtcOffset(tmp_0 instanceof ZoneOffset ? tmp_0 : THROW_CCE()), zoneId);
2468
+ } else {
2469
+ tmp = new TimeZone(zoneId);
2470
+ }
2471
+ }
2472
+ return tmp;
2473
+ }
2474
+ function Companion_5() {
2475
+ Companion_instance_5 = this;
2476
+ this.cm_1 = asTimeZone(new UtcOffset(ZoneOffset.UTC));
2477
+ }
2478
+ protoOf(Companion_5).dm = function () {
2479
+ return ofZone(this, ZoneId.systemDefault());
2480
+ };
2481
+ var Companion_instance_5;
2482
+ function Companion_getInstance_5() {
2483
+ if (Companion_instance_5 == null)
2484
+ new Companion_5();
2485
+ return Companion_instance_5;
2486
+ }
2487
+ function TimeZone(zoneId) {
2488
+ Companion_getInstance_5();
2489
+ this.em_1 = zoneId;
2490
+ }
2491
+ protoOf(TimeZone).equals = function (other) {
2492
+ var tmp;
2493
+ if (this === other) {
2494
+ tmp = true;
2495
+ } else {
2496
+ var tmp_0;
2497
+ if (other instanceof TimeZone) {
2498
+ tmp_0 = this.em_1 === other.em_1 || this.em_1.equals(other.em_1);
2499
+ } else {
2500
+ tmp_0 = false;
2501
+ }
2502
+ tmp = tmp_0;
2503
+ }
2504
+ return tmp;
2505
+ };
2506
+ protoOf(TimeZone).hashCode = function () {
2507
+ return this.em_1.hashCode();
2508
+ };
2509
+ protoOf(TimeZone).toString = function () {
2510
+ return this.em_1.toString();
2511
+ };
2512
+ function toLocalDateTime(_this__u8e3s4, timeZone) {
2513
+ var tmp;
2514
+ try {
2515
+ // Inline function 'kotlin.let' call
2516
+ // Inline function 'kotlinx.datetime.jsTry' call
2517
+ // Inline function 'kotlinx.datetime.toLocalDateTime.<anonymous>' call
2518
+ // Inline function 'kotlin.contracts.contract' call
2519
+ var p0 = LocalDateTime.ofInstant(_this__u8e3s4.fm_1, timeZone.em_1);
2520
+ tmp = new LocalDateTime_0(p0);
2521
+ } catch ($p) {
2522
+ var tmp_0;
2523
+ if ($p instanceof Error) {
2524
+ var e = $p;
2525
+ if (isJodaDateTimeException(e))
2526
+ throw DateTimeArithmeticException_init_$Create$_0(e);
2527
+ throw e;
2528
+ } else {
2529
+ throw $p;
2530
+ }
2531
+ }
2532
+ return tmp;
2533
+ }
2534
+ function FixedOffsetTimeZone_init_$Init$(offset, $this) {
2535
+ FixedOffsetTimeZone.call($this, offset, offset.gm_1);
2536
+ return $this;
2537
+ }
2538
+ function FixedOffsetTimeZone_init_$Create$(offset) {
2539
+ return FixedOffsetTimeZone_init_$Init$(offset, objectCreate(protoOf(FixedOffsetTimeZone)));
2540
+ }
2541
+ function Companion_6() {
2542
+ }
2543
+ var Companion_instance_6;
2544
+ function Companion_getInstance_6() {
2545
+ return Companion_instance_6;
2546
+ }
2547
+ function FixedOffsetTimeZone(offset, zoneId) {
2548
+ TimeZone.call(this, zoneId);
2549
+ this.im_1 = offset;
2550
+ }
2551
+ function Companion_7() {
2552
+ Companion_instance_7 = this;
2553
+ this.jm_1 = new UtcOffset(ZoneOffset.UTC);
2554
+ }
2555
+ var Companion_instance_7;
2556
+ function Companion_getInstance_7() {
2557
+ if (Companion_instance_7 == null)
2558
+ new Companion_7();
2559
+ return Companion_instance_7;
2560
+ }
2561
+ function UtcOffset(zoneOffset) {
2562
+ Companion_getInstance_7();
2563
+ this.gm_1 = zoneOffset;
2564
+ }
2565
+ protoOf(UtcOffset).hashCode = function () {
2566
+ return this.gm_1.hashCode();
2567
+ };
2568
+ protoOf(UtcOffset).equals = function (other) {
2569
+ var tmp;
2570
+ if (other instanceof UtcOffset) {
2571
+ tmp = this.gm_1 === other.gm_1 || this.gm_1.equals(other.gm_1);
2572
+ } else {
2573
+ tmp = false;
2574
+ }
2575
+ return tmp;
2576
+ };
2577
+ protoOf(UtcOffset).toString = function () {
2578
+ return this.gm_1.toString();
2579
+ };
2580
+ function hasJsExceptionName(_this__u8e3s4, name) {
2581
+ // Inline function 'kotlin.js.asDynamic' call
2582
+ return _this__u8e3s4.name == name;
2583
+ }
2584
+ //region block: post-declaration
2585
+ protoOf(Builder).ah = chars;
2586
+ protoOf(Builder).eh = build;
2587
+ protoOf(Builder).ug = year;
2588
+ protoOf(Builder).vg = year$default;
2589
+ protoOf(Builder).wg = monthNumber;
2590
+ protoOf(Builder).xg = monthNumber$default;
2591
+ protoOf(Builder).yg = dayOfMonth;
2592
+ protoOf(Builder).zg = dayOfMonth$default;
2593
+ protoOf(PropertyAccessor).gj = getterNotNull;
2594
+ //endregion
2595
+ //region block: init
2596
+ Companion_instance = new Companion();
2597
+ Companion_instance_0 = new Companion_0();
2598
+ Companion_instance_1 = new Companion_1();
2599
+ ExpectedInt_instance = new ExpectedInt();
2600
+ Companion_instance_2 = new Companion_2();
2601
+ Companion_instance_6 = new Companion_6();
2602
+ //endregion
2603
+ //region block: exports
2604
+ _.$_$ = _.$_$ || {};
2605
+ _.$_$.a = DatePeriod_init_$Create$;
2606
+ _.$_$.b = Companion_getInstance_3;
2607
+ _.$_$.c = Companion_getInstance_5;
2608
+ _.$_$.d = Instant;
2609
+ _.$_$.e = LocalDate_0;
2610
+ _.$_$.f = daysUntil;
2611
+ _.$_$.g = monthsUntil;
2612
+ _.$_$.h = plus_0;
2613
+ _.$_$.i = toLocalDateTime;
2614
+ _.$_$.j = yearsUntil;
2615
+ //endregion
2616
+ return _;
2617
+ }(module.exports, require('@js-joda/core'), require('./kotlin-kotlin-stdlib.js')));
2618
+
2619
+ //# sourceMappingURL=Kotlin-DateTime-library-kotlinx-datetime.js.map