@solibo/home-api 1.0.30-SNAPSHOT → 1.0.31-SNAPSHOT

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 (42) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +2151 -539
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  3. package/kotlin-kotlin-stdlib.js +9990 -1882
  4. package/kotlin-kotlin-stdlib.js.map +1 -1
  5. package/kotlinx-atomicfu.js +187 -8
  6. package/kotlinx-atomicfu.js.map +1 -1
  7. package/kotlinx-coroutines-core.js +8891 -5
  8. package/kotlinx-coroutines-core.js.map +1 -1
  9. package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
  10. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
  11. package/kotlinx-io-kotlinx-io-core.js +2025 -5
  12. package/kotlinx-io-kotlinx-io-core.js.map +1 -1
  13. package/kotlinx-serialization-kotlinx-serialization-core.js +4624 -589
  14. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  15. package/kotlinx-serialization-kotlinx-serialization-json.js +4935 -99
  16. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  17. package/ktor-ktor-client-content-negotiation.js +757 -5
  18. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  19. package/ktor-ktor-client-core.js +9714 -36
  20. package/ktor-ktor-client-core.js.map +1 -1
  21. package/ktor-ktor-events.js +84 -5
  22. package/ktor-ktor-events.js.map +1 -1
  23. package/ktor-ktor-http-cio.js +2261 -5
  24. package/ktor-ktor-http-cio.js.map +1 -1
  25. package/ktor-ktor-http.js +3243 -5
  26. package/ktor-ktor-http.js.map +1 -1
  27. package/ktor-ktor-io.js +3551 -5
  28. package/ktor-ktor-io.js.map +1 -1
  29. package/ktor-ktor-serialization-kotlinx-json.js +57 -5
  30. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  31. package/ktor-ktor-serialization-kotlinx.js +855 -5
  32. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  33. package/ktor-ktor-serialization.js +369 -5
  34. package/ktor-ktor-serialization.js.map +1 -1
  35. package/ktor-ktor-utils.js +2623 -5
  36. package/ktor-ktor-utils.js.map +1 -1
  37. package/ktor-ktor-websockets.js +2538 -5
  38. package/ktor-ktor-websockets.js.map +1 -1
  39. package/package.json +1 -1
  40. package/solibo-sdk-sdk-home-api.d.ts +909 -25
  41. package/solibo-sdk-sdk-home-api.js +135419 -15489
  42. package/solibo-sdk-sdk-home-api.js.map +1 -1
@@ -16,75 +16,127 @@
16
16
  'use strict';
17
17
  //region block: imports
18
18
  var imul = Math.imul;
19
- var enumEntries = kotlin_kotlin.$_$.h2;
20
- var Unit_instance = kotlin_kotlin.$_$.f1;
21
- var Enum = kotlin_kotlin.$_$.h4;
22
- var protoOf = kotlin_kotlin.$_$.n3;
23
- var initMetadataForClass = kotlin_kotlin.$_$.g3;
24
- var VOID = kotlin_kotlin.$_$.a;
25
- var toString = kotlin_kotlin.$_$.o3;
26
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j;
27
- var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i;
28
- var initMetadataForInterface = kotlin_kotlin.$_$.i3;
29
- var toString_0 = kotlin_kotlin.$_$.n;
30
- var KProperty0 = kotlin_kotlin.$_$.v3;
31
- var getPropertyCallableRef = kotlin_kotlin.$_$.d3;
32
- var hashCode = kotlin_kotlin.$_$.f3;
33
- var initMetadataForCompanion = kotlin_kotlin.$_$.h3;
34
- var THROW_CCE = kotlin_kotlin.$_$.i4;
35
- var KMutableProperty1 = kotlin_kotlin.$_$.u3;
36
- var initMetadataForObject = kotlin_kotlin.$_$.j3;
37
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.m;
38
- var lazy = kotlin_kotlin.$_$.v4;
39
- var getBooleanHashCode = kotlin_kotlin.$_$.b3;
40
- var fromInt = kotlin_kotlin.$_$.m2;
41
- var modulo = kotlin_kotlin.$_$.o2;
42
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
43
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.w4;
44
- var isInterface = kotlin_kotlin.$_$.k3;
45
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.k;
46
- var toString_1 = kotlin_kotlin.$_$.x4;
47
- var equals = kotlin_kotlin.$_$.z2;
48
- var getStringHashCode = kotlin_kotlin.$_$.e3;
49
- var charSequenceLength = kotlin_kotlin.$_$.w2;
50
- var charCodeAt = kotlin_kotlin.$_$.v2;
51
- var substring = kotlin_kotlin.$_$.b4;
52
- var listOf = kotlin_kotlin.$_$.u1;
53
- var substring_0 = kotlin_kotlin.$_$.a4;
54
- var get_lastIndex = kotlin_kotlin.$_$.y3;
55
- var emptyList = kotlin_kotlin.$_$.o1;
56
- var joinToString = kotlin_kotlin.$_$.t1;
57
- var collectionSizeOrDefault = kotlin_kotlin.$_$.j1;
58
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c;
59
- var single = kotlin_kotlin.$_$.a2;
60
- var abs = kotlin_kotlin.$_$.p3;
61
- var numberRangeToNumber = kotlin_kotlin.$_$.l3;
62
- var plus = kotlin_kotlin.$_$.z1;
63
- var toMutableList = kotlin_kotlin.$_$.f2;
64
- var addAll = kotlin_kotlin.$_$.h1;
65
- var Collection = kotlin_kotlin.$_$.g1;
66
- var firstOrNull = kotlin_kotlin.$_$.q1;
67
- var drop = kotlin_kotlin.$_$.n1;
68
- var listOf_0 = kotlin_kotlin.$_$.v1;
69
- var repeat = kotlin_kotlin.$_$.z3;
70
- var checkCountOverflow = kotlin_kotlin.$_$.i1;
71
- var mutableListOf = kotlin_kotlin.$_$.y1;
72
- var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
73
- var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m;
74
- var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
75
- var numberToLong = kotlin_kotlin.$_$.r2;
76
- var multiply = kotlin_kotlin.$_$.p2;
77
- var add = kotlin_kotlin.$_$.j2;
78
- var divide = kotlin_kotlin.$_$.l2;
79
- var subtract = kotlin_kotlin.$_$.t2;
80
- var get_ONE = kotlin_kotlin.$_$.i2;
81
- var negate = kotlin_kotlin.$_$.q2;
82
- var shiftRight = kotlin_kotlin.$_$.s2;
83
- var convertToInt = kotlin_kotlin.$_$.k2;
84
- var compareTo = kotlin_kotlin.$_$.x2;
19
+ var protoOf = kotlin_kotlin.$_$.tb;
20
+ var initMetadataForCompanion = kotlin_kotlin.$_$.xa;
21
+ var toString = kotlin_kotlin.$_$.wb;
22
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
23
+ var Unit_instance = kotlin_kotlin.$_$.y4;
24
+ var fromInt = kotlin_kotlin.$_$.p9;
25
+ var modulo = kotlin_kotlin.$_$.s9;
26
+ var divide = kotlin_kotlin.$_$.o9;
27
+ var convertToInt = kotlin_kotlin.$_$.m9;
28
+ var shiftRight = kotlin_kotlin.$_$.x9;
29
+ var initMetadataForClass = kotlin_kotlin.$_$.wa;
30
+ var VOID = kotlin_kotlin.$_$.b;
31
+ var enumEntries = kotlin_kotlin.$_$.h9;
32
+ var Enum = kotlin_kotlin.$_$.jf;
33
+ var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.k1;
34
+ var objectCreate = kotlin_kotlin.$_$.sb;
35
+ var captureStack = kotlin_kotlin.$_$.ea;
36
+ var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.m1;
37
+ var IllegalArgumentException_init_$Init$_1 = kotlin_kotlin.$_$.o1;
38
+ var IllegalArgumentException = kotlin_kotlin.$_$.mf;
39
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.z1;
40
+ var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.b2;
41
+ var RuntimeException = kotlin_kotlin.$_$.rf;
42
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
43
+ var initMetadataForInterface = kotlin_kotlin.$_$.ab;
44
+ var toString_0 = kotlin_kotlin.$_$.n2;
45
+ var KProperty0 = kotlin_kotlin.$_$.pc;
46
+ var getPropertyCallableRef = kotlin_kotlin.$_$.ta;
47
+ var hashCode = kotlin_kotlin.$_$.va;
48
+ var THROW_CCE = kotlin_kotlin.$_$.sf;
49
+ var KMutableProperty1 = kotlin_kotlin.$_$.oc;
50
+ var initMetadataForObject = kotlin_kotlin.$_$.cb;
51
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
52
+ var lazy = kotlin_kotlin.$_$.qg;
53
+ var getBooleanHashCode = kotlin_kotlin.$_$.qa;
54
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
55
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.rg;
56
+ var isInterface = kotlin_kotlin.$_$.lb;
57
+ var equals = kotlin_kotlin.$_$.na;
58
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
59
+ var toString_1 = kotlin_kotlin.$_$.ug;
60
+ var getStringHashCode = kotlin_kotlin.$_$.ua;
61
+ var charSequenceLength = kotlin_kotlin.$_$.ja;
62
+ var charCodeAt = kotlin_kotlin.$_$.ha;
63
+ var substring = kotlin_kotlin.$_$.ce;
64
+ var listOf = kotlin_kotlin.$_$.e7;
65
+ var substring_0 = kotlin_kotlin.$_$.be;
66
+ var get_lastIndex = kotlin_kotlin.$_$.ld;
67
+ var emptyList = kotlin_kotlin.$_$.k6;
68
+ var joinToString = kotlin_kotlin.$_$.y6;
69
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.r5;
70
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
71
+ var single = kotlin_kotlin.$_$.u7;
72
+ var abs = kotlin_kotlin.$_$.xb;
73
+ var charSequenceSubSequence = kotlin_kotlin.$_$.ka;
74
+ var numberRangeToNumber = kotlin_kotlin.$_$.qb;
75
+ var charSequenceGet = kotlin_kotlin.$_$.ia;
76
+ var mutableListOf = kotlin_kotlin.$_$.i7;
77
+ var removeLastOrNull = kotlin_kotlin.$_$.o7;
78
+ var sortWith = kotlin_kotlin.$_$.v7;
79
+ var FunctionAdapter = kotlin_kotlin.$_$.aa;
80
+ var Comparator = kotlin_kotlin.$_$.gf;
81
+ var compareValues = kotlin_kotlin.$_$.m8;
82
+ var Exception = kotlin_kotlin.$_$.lf;
83
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
84
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.b1;
85
+ var joinTo = kotlin_kotlin.$_$.z6;
86
+ var plus = kotlin_kotlin.$_$.l7;
87
+ var toMutableList = kotlin_kotlin.$_$.f8;
88
+ var addAll = kotlin_kotlin.$_$.n5;
89
+ var Collection = kotlin_kotlin.$_$.a5;
90
+ var firstOrNull = kotlin_kotlin.$_$.p6;
91
+ var drop = kotlin_kotlin.$_$.j6;
92
+ var listOf_0 = kotlin_kotlin.$_$.f7;
93
+ var repeat = kotlin_kotlin.$_$.pd;
94
+ var checkCountOverflow = kotlin_kotlin.$_$.q5;
95
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.i2;
96
+ var buildClassSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
97
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
98
+ var arrayOf = kotlin_kotlin.$_$.gg;
99
+ var createKType = kotlin_kotlin.$_$.jc;
100
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2;
101
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
102
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
103
+ var lazy_0 = kotlin_kotlin.$_$.pg;
104
+ var KProperty1 = kotlin_kotlin.$_$.qc;
105
+ var MissingFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
106
+ var getKClass = kotlin_kotlin.$_$.lc;
107
+ var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2;
108
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
109
+ var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
110
+ var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
111
+ var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
112
+ var add = kotlin_kotlin.$_$.k9;
113
+ var subtract = kotlin_kotlin.$_$.y9;
114
+ var multiply = kotlin_kotlin.$_$.t9;
115
+ var negate = kotlin_kotlin.$_$.u9;
116
+ var numberToLong = kotlin_kotlin.$_$.v9;
117
+ var get_ONE = kotlin_kotlin.$_$.j9;
118
+ var compareTo = kotlin_kotlin.$_$.la;
119
+ var ClosedRange = kotlin_kotlin.$_$.ac;
120
+ var contains = kotlin_kotlin.$_$.ec;
121
+ var Comparable = kotlin_kotlin.$_$.ff;
122
+ var ArithmeticException = kotlin_kotlin.$_$.bf;
123
+ var compareValuesBy = kotlin_kotlin.$_$.l8;
124
+ var ArithmeticException_init_$Create$ = kotlin_kotlin.$_$.d1;
85
125
  //endregion
86
126
  //region block: pre-declaration
127
+ initMetadataForCompanion(Companion);
128
+ initMetadataForCompanion(Companion_0);
129
+ initMetadataForCompanion(Companion_1);
130
+ initMetadataForCompanion(Companion_2);
131
+ initMetadataForClass(DateTimeUnit, 'DateTimeUnit', VOID, VOID, VOID, VOID, VOID, {0: DateTimeUnitSerializer_getInstance});
132
+ initMetadataForClass(TimeBased, 'TimeBased', VOID, DateTimeUnit, VOID, VOID, VOID, {0: TimeBasedDateTimeUnitSerializer_getInstance});
133
+ initMetadataForClass(DateBased, 'DateBased', VOID, DateTimeUnit, VOID, VOID, VOID, {0: DateBasedDateTimeUnitSerializer_getInstance});
134
+ initMetadataForClass(DayBased, 'DayBased', VOID, DateBased, VOID, VOID, VOID, {0: DayBasedDateTimeUnitSerializer_getInstance});
135
+ initMetadataForClass(MonthBased, 'MonthBased', VOID, DateBased, VOID, VOID, VOID, {0: MonthBasedDateTimeUnitSerializer_getInstance});
136
+ initMetadataForCompanion(Companion_3);
87
137
  initMetadataForClass(DayOfWeek, 'DayOfWeek', VOID, Enum);
138
+ initMetadataForClass(DateTimeFormatException, 'DateTimeFormatException', DateTimeFormatException_init_$Create$, IllegalArgumentException);
139
+ initMetadataForClass(DateTimeArithmeticException, 'DateTimeArithmeticException', DateTimeArithmeticException_init_$Create$, RuntimeException);
88
140
  initMetadataForClass(Month, 'Month', VOID, Enum);
89
141
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
90
142
  initMetadataForClass(Padding, 'Padding', VOID, Enum);
@@ -92,10 +144,10 @@
92
144
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
93
145
  var tmp;
94
146
  if ($super === VOID) {
95
- this.vj(padding);
147
+ this.g53(padding);
96
148
  tmp = Unit_instance;
97
149
  } else {
98
- tmp = $super.vj.call(this, padding);
150
+ tmp = $super.g53.call(this, padding);
99
151
  }
100
152
  return tmp;
101
153
  }
@@ -103,10 +155,10 @@
103
155
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
104
156
  var tmp;
105
157
  if ($super === VOID) {
106
- this.xj(padding);
158
+ this.i53(padding);
107
159
  tmp = Unit_instance;
108
160
  } else {
109
- tmp = $super.xj.call(this, padding);
161
+ tmp = $super.i53.call(this, padding);
110
162
  }
111
163
  return tmp;
112
164
  }
@@ -115,35 +167,35 @@
115
167
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
116
168
  var tmp;
117
169
  if ($super === VOID) {
118
- this.ak(padding);
170
+ this.l53(padding);
119
171
  tmp = Unit_instance;
120
172
  } else {
121
- tmp = $super.ak.call(this, padding);
173
+ tmp = $super.l53.call(this, padding);
122
174
  }
123
175
  return tmp;
124
176
  }
125
177
  initMetadataForInterface(WithDate, 'WithDate', VOID, VOID, [WithYearMonth]);
126
178
  function chars(value) {
127
- return this.ck().ek(new ConstantFormatStructure(value));
179
+ return this.n53().p53(new ConstantFormatStructure(value));
128
180
  }
129
181
  function build() {
130
- return new CachedFormatStructure(this.ck().fk().gk_1);
182
+ return new CachedFormatStructure(this.n53().a2k().q53_1);
131
183
  }
132
184
  initMetadataForInterface(AbstractDateTimeFormatBuilder, 'AbstractDateTimeFormatBuilder');
133
185
  initMetadataForClass(IncompleteLocalDate, 'IncompleteLocalDate', IncompleteLocalDate);
134
- initMetadataForCompanion(Companion);
186
+ initMetadataForCompanion(Companion_4);
135
187
  function year(padding) {
136
- return this.fl(new BasicFormatStructure(new YearDirective(padding)));
188
+ return this.r54(new BasicFormatStructure(new YearDirective(padding)));
137
189
  }
138
190
  function monthNumber(padding) {
139
- return this.fl(new BasicFormatStructure(new MonthDirective(padding)));
191
+ return this.r54(new BasicFormatStructure(new MonthDirective(padding)));
140
192
  }
141
193
  initMetadataForInterface(AbstractWithYearMonthBuilder, 'AbstractWithYearMonthBuilder', VOID, VOID, [WithYearMonth]);
142
194
  function addFormatStructureForYearMonth(structure) {
143
- this.el(structure);
195
+ this.q54(structure);
144
196
  }
145
197
  function day(padding) {
146
- return this.el(new BasicFormatStructure(new DayDirective(padding)));
198
+ return this.q54(new BasicFormatStructure(new DayDirective(padding)));
147
199
  }
148
200
  initMetadataForInterface(AbstractWithDateBuilder, 'AbstractWithDateBuilder', VOID, VOID, [AbstractWithYearMonthBuilder, WithDate]);
149
201
  initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateBuilder]);
@@ -152,6 +204,9 @@
152
204
  initMetadataForClass(DayDirective, 'DayDirective', VOID, UnsignedIntFieldFormatDirective);
153
205
  initMetadataForObject(DateFields, 'DateFields');
154
206
  initMetadataForClass(IncompleteYearMonth, 'IncompleteYearMonth', IncompleteYearMonth);
207
+ initMetadataForCompanion(Companion_5);
208
+ initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithYearMonthBuilder]);
209
+ initMetadataForClass(YearMonthFormat, 'YearMonthFormat', VOID, AbstractDateTimeFormat);
155
210
  initMetadataForClass(SignedIntFieldFormatDirective, 'SignedIntFieldFormatDirective');
156
211
  initMetadataForClass(YearDirective, 'YearDirective', VOID, SignedIntFieldFormatDirective);
157
212
  initMetadataForClass(MonthDirective, 'MonthDirective', VOID, UnsignedIntFieldFormatDirective);
@@ -160,10 +215,10 @@
160
215
  initMetadataForClass(AbstractFieldSpec, 'AbstractFieldSpec');
161
216
  initMetadataForClass(GenericFieldSpec, 'GenericFieldSpec', VOID, AbstractFieldSpec);
162
217
  function getterNotNull(container) {
163
- var tmp0_elvis_lhs = this.en(container);
218
+ var tmp0_elvis_lhs = this.b57(container);
164
219
  var tmp;
165
220
  if (tmp0_elvis_lhs == null) {
166
- throw IllegalStateException_init_$Create$('Field ' + this.y1() + ' is not set');
221
+ throw IllegalStateException_init_$Create$('Field ' + this.m() + ' is not set');
167
222
  } else {
168
223
  tmp = tmp0_elvis_lhs;
169
224
  }
@@ -181,10 +236,10 @@
181
236
  minusNotRequired = minusNotRequired === VOID ? false : minusNotRequired;
182
237
  var tmp;
183
238
  if ($super === VOID) {
184
- this.hn(obj, builder, minusNotRequired);
239
+ this.e57(obj, builder, minusNotRequired);
185
240
  tmp = Unit_instance;
186
241
  } else {
187
- tmp = $super.hn.call(this, obj, builder, minusNotRequired);
242
+ tmp = $super.e57.call(this, obj, builder, minusNotRequired);
188
243
  }
189
244
  return tmp;
190
245
  }
@@ -196,17 +251,238 @@
196
251
  initMetadataForClass(ConstantStringFormatterStructure, 'ConstantStringFormatterStructure', VOID, VOID, [FormatterStructure]);
197
252
  initMetadataForClass(NumberConsumer, 'NumberConsumer');
198
253
  initMetadataForClass(ConstantNumberConsumer, 'ConstantNumberConsumer', VOID, NumberConsumer);
254
+ initMetadataForObject(ExpectedInt, 'ExpectedInt');
255
+ initMetadataForClass(TooManyDigits, 'TooManyDigits');
256
+ initMetadataForClass(TooFewDigits, 'TooFewDigits');
257
+ initMetadataForClass(WrongConstant, 'WrongConstant');
258
+ initMetadataForClass(Conflicting, 'Conflicting');
199
259
  initMetadataForClass(UnsignedIntConsumer, 'UnsignedIntConsumer', VOID, NumberConsumer);
260
+ initMetadataForClass(ParseError, 'ParseError');
261
+ initMetadataForCompanion(Companion_6);
262
+ initMetadataForClass(ParserState, 'ParserState');
263
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
264
+ initMetadataForClass(Parser, 'Parser');
200
265
  initMetadataForClass(ParserStructure, 'ParserStructure');
266
+ initMetadataForClass(ParseException, 'ParseException', VOID, Exception);
201
267
  initMetadataForClass(NumberSpanParserOperation, 'NumberSpanParserOperation');
202
268
  initMetadataForClass(PlainStringParserOperation, 'PlainStringParserOperation');
203
269
  initMetadataForClass(UnconditionalModification, 'UnconditionalModification');
270
+ initMetadataForObject(TimeBasedDateTimeUnitSerializer, 'TimeBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
271
+ initMetadataForObject(DateBasedDateTimeUnitSerializer, 'DateBasedDateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
272
+ initMetadataForObject(DayBasedDateTimeUnitSerializer, 'DayBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
273
+ initMetadataForObject(MonthBasedDateTimeUnitSerializer, 'MonthBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
274
+ initMetadataForObject(DateTimeUnitSerializer, 'DateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
204
275
  initMetadataForObject(LocalDateSerializer, 'LocalDateSerializer', VOID, VOID, [KSerializer]);
276
+ initMetadataForObject(YearMonthSerializer, 'YearMonthSerializer', VOID, VOID, [KSerializer]);
277
+ initMetadataForCompanion(Companion_7);
205
278
  initMetadataForObject(Formats, 'Formats');
206
- initMetadataForClass(LocalDate, 'LocalDate', VOID, VOID, VOID, VOID, VOID, {0: LocalDateSerializer_getInstance});
279
+ initMetadataForClass(LocalDate, 'LocalDate', VOID, VOID, [Comparable], VOID, VOID, {0: LocalDateSerializer_getInstance});
280
+ initMetadataForCompanion(Companion_8);
281
+ initMetadataForObject(Formats_0, 'Formats');
282
+ initMetadataForClass(YearMonth, 'YearMonth', VOID, VOID, [Comparable], VOID, VOID, {0: YearMonthSerializer_getInstance});
207
283
  //endregion
284
+ function Companion() {
285
+ }
286
+ var Companion_instance;
287
+ function Companion_getInstance() {
288
+ return Companion_instance;
289
+ }
290
+ function Companion_0() {
291
+ }
292
+ var Companion_instance_0;
293
+ function Companion_getInstance_0() {
294
+ return Companion_instance_0;
295
+ }
296
+ function Companion_1() {
297
+ }
298
+ var Companion_instance_1;
299
+ function Companion_getInstance_1() {
300
+ return Companion_instance_1;
301
+ }
302
+ function Companion_2() {
303
+ }
304
+ var Companion_instance_2;
305
+ function Companion_getInstance_2() {
306
+ return Companion_instance_2;
307
+ }
308
+ function TimeBased(nanoseconds) {
309
+ DateTimeUnit.call(this);
310
+ this.z51_1 = nanoseconds;
311
+ // Inline function 'kotlin.require' call
312
+ if (!(this.z51_1 > 0n)) {
313
+ var message = 'Unit duration must be positive, but was ' + this.z51_1.toString() + ' ns.';
314
+ throw IllegalArgumentException_init_$Create$(toString(message));
315
+ }
316
+ if (modulo(this.z51_1, 3600000000000n) === 0n) {
317
+ this.a52_1 = 'HOUR';
318
+ this.b52_1 = divide(this.z51_1, 3600000000000n);
319
+ } else {
320
+ if (modulo(this.z51_1, 60000000000n) === 0n) {
321
+ this.a52_1 = 'MINUTE';
322
+ this.b52_1 = divide(this.z51_1, 60000000000n);
323
+ } else {
324
+ var tmp0 = this.z51_1;
325
+ // Inline function 'kotlin.Long.rem' call
326
+ var other = 1000000000;
327
+ if (modulo(tmp0, fromInt(other)) === 0n) {
328
+ this.a52_1 = 'SECOND';
329
+ var tmp = this;
330
+ var tmp0_0 = this.z51_1;
331
+ // Inline function 'kotlin.Long.div' call
332
+ var other_0 = 1000000000;
333
+ tmp.b52_1 = divide(tmp0_0, fromInt(other_0));
334
+ } else {
335
+ // Inline function 'kotlin.Long.rem' call
336
+ var this_0 = this.z51_1;
337
+ if (modulo(this_0, fromInt(1000000)) === 0n) {
338
+ this.a52_1 = 'MILLISECOND';
339
+ var tmp_0 = this;
340
+ // Inline function 'kotlin.Long.div' call
341
+ var this_1 = this.z51_1;
342
+ tmp_0.b52_1 = divide(this_1, fromInt(1000000));
343
+ } else {
344
+ // Inline function 'kotlin.Long.rem' call
345
+ var this_2 = this.z51_1;
346
+ if (modulo(this_2, fromInt(1000)) === 0n) {
347
+ this.a52_1 = 'MICROSECOND';
348
+ var tmp_1 = this;
349
+ // Inline function 'kotlin.Long.div' call
350
+ var this_3 = this.z51_1;
351
+ tmp_1.b52_1 = divide(this_3, fromInt(1000));
352
+ } else {
353
+ this.a52_1 = 'NANOSECOND';
354
+ this.b52_1 = this.z51_1;
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ protoOf(TimeBased).c52 = function (scalar) {
362
+ return new TimeBased(safeMultiply(this.z51_1, fromInt(scalar)));
363
+ };
364
+ protoOf(TimeBased).equals = function (other) {
365
+ var tmp;
366
+ if (this === other) {
367
+ tmp = true;
368
+ } else {
369
+ var tmp_0;
370
+ if (other instanceof TimeBased) {
371
+ tmp_0 = this.z51_1 === other.z51_1;
372
+ } else {
373
+ tmp_0 = false;
374
+ }
375
+ tmp = tmp_0;
376
+ }
377
+ return tmp;
378
+ };
379
+ protoOf(TimeBased).hashCode = function () {
380
+ return convertToInt(this.z51_1) ^ convertToInt(shiftRight(this.z51_1, 32));
381
+ };
382
+ protoOf(TimeBased).toString = function () {
383
+ return this.d52(this.b52_1, this.a52_1);
384
+ };
385
+ function DateBased() {
386
+ DateTimeUnit.call(this);
387
+ }
388
+ function DayBased(days) {
389
+ DateBased.call(this);
390
+ this.f52_1 = days;
391
+ // Inline function 'kotlin.require' call
392
+ if (!(this.f52_1 > 0)) {
393
+ var message = 'Unit duration must be positive, but was ' + this.f52_1 + ' days.';
394
+ throw IllegalArgumentException_init_$Create$(toString(message));
395
+ }
396
+ }
397
+ protoOf(DayBased).c52 = function (scalar) {
398
+ return new DayBased(safeMultiply_0(this.f52_1, scalar));
399
+ };
400
+ protoOf(DayBased).equals = function (other) {
401
+ var tmp;
402
+ if (this === other) {
403
+ tmp = true;
404
+ } else {
405
+ var tmp_0;
406
+ if (other instanceof DayBased) {
407
+ tmp_0 = this.f52_1 === other.f52_1;
408
+ } else {
409
+ tmp_0 = false;
410
+ }
411
+ tmp = tmp_0;
412
+ }
413
+ return tmp;
414
+ };
415
+ protoOf(DayBased).hashCode = function () {
416
+ return this.f52_1 ^ 65536;
417
+ };
418
+ protoOf(DayBased).toString = function () {
419
+ return (this.f52_1 % 7 | 0) === 0 ? this.e52(this.f52_1 / 7 | 0, 'WEEK') : this.e52(this.f52_1, 'DAY');
420
+ };
421
+ function MonthBased(months) {
422
+ DateBased.call(this);
423
+ this.g52_1 = months;
424
+ // Inline function 'kotlin.require' call
425
+ if (!(this.g52_1 > 0)) {
426
+ var message = 'Unit duration must be positive, but was ' + this.g52_1 + ' months.';
427
+ throw IllegalArgumentException_init_$Create$(toString(message));
428
+ }
429
+ }
430
+ protoOf(MonthBased).c52 = function (scalar) {
431
+ return new MonthBased(safeMultiply_0(this.g52_1, scalar));
432
+ };
433
+ protoOf(MonthBased).equals = function (other) {
434
+ var tmp;
435
+ if (this === other) {
436
+ tmp = true;
437
+ } else {
438
+ var tmp_0;
439
+ if (other instanceof MonthBased) {
440
+ tmp_0 = this.g52_1 === other.g52_1;
441
+ } else {
442
+ tmp_0 = false;
443
+ }
444
+ tmp = tmp_0;
445
+ }
446
+ return tmp;
447
+ };
448
+ protoOf(MonthBased).hashCode = function () {
449
+ return this.g52_1 ^ 131072;
450
+ };
451
+ protoOf(MonthBased).toString = function () {
452
+ return (this.g52_1 % 1200 | 0) === 0 ? this.e52(this.g52_1 / 1200 | 0, 'CENTURY') : (this.g52_1 % 12 | 0) === 0 ? this.e52(this.g52_1 / 12 | 0, 'YEAR') : (this.g52_1 % 3 | 0) === 0 ? this.e52(this.g52_1 / 3 | 0, 'QUARTER') : this.e52(this.g52_1, 'MONTH');
453
+ };
454
+ function Companion_3() {
455
+ Companion_instance_3 = this;
456
+ this.h52_1 = new TimeBased(1n);
457
+ this.i52_1 = this.h52_1.c52(1000);
458
+ this.j52_1 = this.i52_1.c52(1000);
459
+ this.k52_1 = this.j52_1.c52(1000);
460
+ this.l52_1 = this.k52_1.c52(60);
461
+ this.m52_1 = this.l52_1.c52(60);
462
+ this.n52_1 = new DayBased(1);
463
+ this.o52_1 = this.n52_1.c52(7);
464
+ this.p52_1 = new MonthBased(1);
465
+ this.q52_1 = this.p52_1.c52(3);
466
+ this.r52_1 = this.p52_1.c52(12);
467
+ this.s52_1 = this.r52_1.c52(100);
468
+ }
469
+ var Companion_instance_3;
470
+ function Companion_getInstance_3() {
471
+ if (Companion_instance_3 == null)
472
+ new Companion_3();
473
+ return Companion_instance_3;
474
+ }
475
+ function DateTimeUnit() {
476
+ Companion_getInstance_3();
477
+ }
478
+ protoOf(DateTimeUnit).e52 = function (value, unit) {
479
+ return value === 1 ? unit : '' + value + '-' + unit;
480
+ };
481
+ protoOf(DateTimeUnit).d52 = function (value, unit) {
482
+ return value === 1n ? unit : value.toString() + '-' + unit;
483
+ };
208
484
  function get_isoDayNumber(_this__u8e3s4) {
209
- return _this__u8e3s4.x1_1 + 1 | 0;
485
+ return _this__u8e3s4.a1_1 + 1 | 0;
210
486
  }
211
487
  var DayOfWeek_MONDAY_instance;
212
488
  var DayOfWeek_TUESDAY_instance;
@@ -246,7 +522,7 @@
246
522
  var message = 'Expected ISO day-of-week number in 1..7, got ' + isoDayNumber;
247
523
  throw IllegalArgumentException_init_$Create$(toString(message));
248
524
  }
249
- return get_entries().k(isoDayNumber - 1 | 0);
525
+ return get_entries().h1(isoDayNumber - 1 | 0);
250
526
  }
251
527
  function DayOfWeek_MONDAY_getInstance() {
252
528
  DayOfWeek_initEntries();
@@ -276,11 +552,73 @@
276
552
  DayOfWeek_initEntries();
277
553
  return DayOfWeek_SUNDAY_instance;
278
554
  }
555
+ function DateTimeFormatException_init_$Init$($this) {
556
+ IllegalArgumentException_init_$Init$($this);
557
+ DateTimeFormatException.call($this);
558
+ return $this;
559
+ }
560
+ function DateTimeFormatException_init_$Create$() {
561
+ var tmp = DateTimeFormatException_init_$Init$(objectCreate(protoOf(DateTimeFormatException)));
562
+ captureStack(tmp, DateTimeFormatException_init_$Create$);
563
+ return tmp;
564
+ }
565
+ function DateTimeFormatException_init_$Init$_0(message, $this) {
566
+ IllegalArgumentException_init_$Init$_0(message, $this);
567
+ DateTimeFormatException.call($this);
568
+ return $this;
569
+ }
570
+ function DateTimeFormatException_init_$Create$_0(message) {
571
+ var tmp = DateTimeFormatException_init_$Init$_0(message, objectCreate(protoOf(DateTimeFormatException)));
572
+ captureStack(tmp, DateTimeFormatException_init_$Create$_0);
573
+ return tmp;
574
+ }
575
+ function DateTimeFormatException_init_$Init$_1(message, cause, $this) {
576
+ IllegalArgumentException_init_$Init$_1(message, cause, $this);
577
+ DateTimeFormatException.call($this);
578
+ return $this;
579
+ }
580
+ function DateTimeFormatException_init_$Create$_1(message, cause) {
581
+ var tmp = DateTimeFormatException_init_$Init$_1(message, cause, objectCreate(protoOf(DateTimeFormatException)));
582
+ captureStack(tmp, DateTimeFormatException_init_$Create$_1);
583
+ return tmp;
584
+ }
585
+ function DateTimeFormatException() {
586
+ captureStack(this, DateTimeFormatException);
587
+ }
588
+ function DateTimeArithmeticException_init_$Init$($this) {
589
+ RuntimeException_init_$Init$($this);
590
+ DateTimeArithmeticException.call($this);
591
+ return $this;
592
+ }
593
+ function DateTimeArithmeticException_init_$Create$() {
594
+ var tmp = DateTimeArithmeticException_init_$Init$(objectCreate(protoOf(DateTimeArithmeticException)));
595
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$);
596
+ return tmp;
597
+ }
598
+ function DateTimeArithmeticException_init_$Init$_0(message, cause, $this) {
599
+ RuntimeException_init_$Init$_0(message, cause, $this);
600
+ DateTimeArithmeticException.call($this);
601
+ return $this;
602
+ }
603
+ function DateTimeArithmeticException_init_$Create$_0(message, cause) {
604
+ var tmp = DateTimeArithmeticException_init_$Init$_0(message, cause, objectCreate(protoOf(DateTimeArithmeticException)));
605
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$_0);
606
+ return tmp;
607
+ }
608
+ function DateTimeArithmeticException() {
609
+ captureStack(this, DateTimeArithmeticException);
610
+ }
611
+ function plus_0(_this__u8e3s4, value, unit) {
612
+ return plus_1(_this__u8e3s4, fromInt(value), unit);
613
+ }
614
+ function getIsoDateFormat() {
615
+ return Formats_getInstance().u52();
616
+ }
279
617
  function format(_this__u8e3s4, format) {
280
- return format.nj(_this__u8e3s4);
618
+ return format.v52(_this__u8e3s4);
281
619
  }
282
620
  function get_number(_this__u8e3s4) {
283
- return _this__u8e3s4.x1_1 + 1 | 0;
621
+ return _this__u8e3s4.a1_1 + 1 | 0;
284
622
  }
285
623
  var Month_JANUARY_instance;
286
624
  var Month_FEBRUARY_instance;
@@ -331,7 +669,7 @@
331
669
  var message = 'Failed requirement.';
332
670
  throw IllegalArgumentException_init_$Create$(toString(message));
333
671
  }
334
- return get_entries_0().k(number - 1 | 0);
672
+ return get_entries_0().h1(number - 1 | 0);
335
673
  }
336
674
  function Month_JANUARY_getInstance() {
337
675
  Month_initEntries();
@@ -383,12 +721,38 @@
383
721
  }
384
722
  function AbstractDateTimeFormat() {
385
723
  }
386
- protoOf(AbstractDateTimeFormat).nj = function (value) {
724
+ protoOf(AbstractDateTimeFormat).v52 = function (value) {
387
725
  // Inline function 'kotlin.also' call
388
726
  var this_0 = StringBuilder_init_$Create$();
389
- this.oj().tj().uj(this.pj(value), this_0);
727
+ this.w52().d53().e53(this.x52(value), this_0);
390
728
  return this_0.toString();
391
729
  };
730
+ protoOf(AbstractDateTimeFormat).sj = function (input) {
731
+ var tmp;
732
+ try {
733
+ tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.w52().f53()), input, this.z52());
734
+ } catch ($p) {
735
+ var tmp_0;
736
+ if ($p instanceof ParseException) {
737
+ var e = $p;
738
+ throw DateTimeFormatException_init_$Create$_1("Failed to parse value from '" + toString(input) + "'", e);
739
+ } else {
740
+ throw $p;
741
+ }
742
+ }
743
+ var matched = tmp;
744
+ try {
745
+ return this.y52(matched);
746
+ } catch ($p) {
747
+ if ($p instanceof IllegalArgumentException) {
748
+ var e_0 = $p;
749
+ var message = e_0.message;
750
+ throw DateTimeFormatException_init_$Create$_1(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0);
751
+ } else {
752
+ throw $p;
753
+ }
754
+ }
755
+ };
392
756
  var Padding_NONE_instance;
393
757
  var Padding_ZERO_instance;
394
758
  var Padding_SPACE_instance;
@@ -417,7 +781,7 @@
417
781
  function WithDate() {
418
782
  }
419
783
  function char(_this__u8e3s4, value) {
420
- return _this__u8e3s4.zj(toString_0(value));
784
+ return _this__u8e3s4.k53(toString_0(value));
421
785
  }
422
786
  function AbstractDateTimeFormatBuilder() {
423
787
  }
@@ -427,7 +791,7 @@
427
791
  var tmp = KProperty0;
428
792
  // Inline function 'kotlin.getValue' call
429
793
  getPropertyCallableRef('ISO_DATE', 0, tmp, _get_ISO_DATE_$ref_powsum(), null);
430
- return tmp0.o1();
794
+ return tmp0.m1();
431
795
  }
432
796
  var ISO_DATE$delegate;
433
797
  function get_ISO_DATE_BASIC() {
@@ -436,44 +800,83 @@
436
800
  var tmp = KProperty0;
437
801
  // Inline function 'kotlin.getValue' call
438
802
  getPropertyCallableRef('ISO_DATE_BASIC', 0, tmp, _get_ISO_DATE_BASIC_$ref_3fs8eb(), null);
439
- return tmp0.o1();
803
+ return tmp0.m1();
440
804
  }
441
805
  var ISO_DATE_BASIC$delegate;
806
+ function get_emptyIncompleteLocalDate() {
807
+ _init_properties_LocalDateFormat_kt__k1uk9u();
808
+ return emptyIncompleteLocalDate;
809
+ }
442
810
  var emptyIncompleteLocalDate;
443
811
  function IncompleteLocalDate(yearMonth, day, dayOfWeek, dayOfYear) {
444
812
  yearMonth = yearMonth === VOID ? new IncompleteYearMonth() : yearMonth;
445
813
  day = day === VOID ? null : day;
446
814
  dayOfWeek = dayOfWeek === VOID ? null : dayOfWeek;
447
815
  dayOfYear = dayOfYear === VOID ? null : dayOfYear;
448
- this.hk_1 = yearMonth;
449
- this.ik_1 = day;
450
- this.jk_1 = dayOfWeek;
451
- this.kk_1 = dayOfYear;
816
+ this.r53_1 = yearMonth;
817
+ this.s53_1 = day;
818
+ this.t53_1 = dayOfWeek;
819
+ this.u53_1 = dayOfYear;
452
820
  }
453
- protoOf(IncompleteLocalDate).lk = function (_set____db54di) {
454
- this.ik_1 = _set____db54di;
821
+ protoOf(IncompleteLocalDate).v53 = function (_set____db54di) {
822
+ this.s53_1 = _set____db54di;
455
823
  };
456
- protoOf(IncompleteLocalDate).mk = function () {
457
- return this.ik_1;
824
+ protoOf(IncompleteLocalDate).w53 = function () {
825
+ return this.s53_1;
458
826
  };
459
- protoOf(IncompleteLocalDate).nk = function (_set____db54di) {
460
- this.jk_1 = _set____db54di;
827
+ protoOf(IncompleteLocalDate).x53 = function (_set____db54di) {
828
+ this.t53_1 = _set____db54di;
461
829
  };
462
- protoOf(IncompleteLocalDate).ok = function () {
463
- return this.jk_1;
830
+ protoOf(IncompleteLocalDate).y53 = function () {
831
+ return this.t53_1;
464
832
  };
465
- protoOf(IncompleteLocalDate).pk = function (_set____db54di) {
466
- this.kk_1 = _set____db54di;
833
+ protoOf(IncompleteLocalDate).z53 = function (_set____db54di) {
834
+ this.u53_1 = _set____db54di;
467
835
  };
468
- protoOf(IncompleteLocalDate).qk = function () {
469
- return this.kk_1;
836
+ protoOf(IncompleteLocalDate).a54 = function () {
837
+ return this.u53_1;
470
838
  };
471
- protoOf(IncompleteLocalDate).rk = function (date) {
472
- this.vk(date.sk_1);
473
- this.xk(get_number(date.wk()));
474
- this.ik_1 = date.tk_1;
475
- this.jk_1 = get_isoDayNumber(date.ok());
476
- this.kk_1 = date.qk();
839
+ protoOf(IncompleteLocalDate).b54 = function () {
840
+ var year = requireParsedField(this.c54(), 'year');
841
+ var dayOfYear = this.u53_1;
842
+ var tmp;
843
+ if (dayOfYear == null) {
844
+ tmp = new LocalDate(year, requireParsedField(this.h54(), 'monthNumber'), requireParsedField(this.s53_1, 'day'));
845
+ } else {
846
+ // Inline function 'kotlin.also' call
847
+ var this_0 = plus_0(new LocalDate(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().n52_1);
848
+ if (!(this_0.d54_1 === year)) {
849
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is not a valid day of year for the year ' + year));
850
+ }
851
+ if (!(this.h54() == null) && !(get_number(this_0.g54()) === this.h54())) {
852
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.g54().toString() + ', ') + ('but ' + this.h54() + ' was specified as the month number'));
853
+ }
854
+ if (!(this.s53_1 == null) && !(this_0.e54_1 === this.s53_1)) {
855
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is the day ' + this_0.e54_1 + ' of ' + this_0.g54().toString() + ', ') + ('but ' + this.s53_1 + ' was specified as the day of month'));
856
+ }
857
+ tmp = this_0;
858
+ }
859
+ var date = tmp;
860
+ var tmp0_safe_receiver = this.t53_1;
861
+ if (tmp0_safe_receiver == null)
862
+ null;
863
+ else {
864
+ // Inline function 'kotlin.let' call
865
+ if (!(tmp0_safe_receiver === get_isoDayNumber(date.y53()))) {
866
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of week is ' + DayOfWeek_0(tmp0_safe_receiver).toString() + ' but the date is ' + date.toString() + ', which is a ' + date.y53().toString()));
867
+ }
868
+ }
869
+ return date;
870
+ };
871
+ protoOf(IncompleteLocalDate).i54 = function (date) {
872
+ this.j54(date.d54_1);
873
+ this.k54(get_number(date.g54()));
874
+ this.s53_1 = date.e54_1;
875
+ this.t53_1 = get_isoDayNumber(date.y53());
876
+ this.u53_1 = date.a54();
877
+ };
878
+ protoOf(IncompleteLocalDate).l54 = function () {
879
+ return new IncompleteLocalDate(this.r53_1.l54(), this.s53_1, this.t53_1, this.u53_1);
477
880
  };
478
881
  protoOf(IncompleteLocalDate).equals = function (other) {
479
882
  var tmp;
@@ -481,168 +884,177 @@
481
884
  var tmp_1;
482
885
  var tmp_2;
483
886
  if (other instanceof IncompleteLocalDate) {
484
- tmp_2 = this.hk_1.equals(other.hk_1);
887
+ tmp_2 = this.r53_1.equals(other.r53_1);
485
888
  } else {
486
889
  tmp_2 = false;
487
890
  }
488
891
  if (tmp_2) {
489
- tmp_1 = this.ik_1 == other.ik_1;
892
+ tmp_1 = this.s53_1 == other.s53_1;
490
893
  } else {
491
894
  tmp_1 = false;
492
895
  }
493
896
  if (tmp_1) {
494
- tmp_0 = this.jk_1 == other.jk_1;
897
+ tmp_0 = this.t53_1 == other.t53_1;
495
898
  } else {
496
899
  tmp_0 = false;
497
900
  }
498
901
  if (tmp_0) {
499
- tmp = this.kk_1 == other.kk_1;
902
+ tmp = this.u53_1 == other.u53_1;
500
903
  } else {
501
904
  tmp = false;
502
905
  }
503
906
  return tmp;
504
907
  };
505
908
  protoOf(IncompleteLocalDate).hashCode = function () {
506
- var tmp = imul(this.hk_1.hashCode(), 29791);
909
+ var tmp = imul(this.r53_1.hashCode(), 29791);
507
910
  // Inline function 'kotlin.hashCode' call
508
- var tmp0_safe_receiver = this.ik_1;
911
+ var tmp0_safe_receiver = this.s53_1;
509
912
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
510
913
  var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
511
914
  var tmp_0 = tmp + imul(tmp$ret$0, 961) | 0;
512
915
  // Inline function 'kotlin.hashCode' call
513
- var tmp0_safe_receiver_0 = this.jk_1;
916
+ var tmp0_safe_receiver_0 = this.t53_1;
514
917
  var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
515
918
  var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
516
919
  var tmp_1 = tmp_0 + imul(tmp$ret$1, 31) | 0;
517
920
  // Inline function 'kotlin.hashCode' call
518
- var tmp0_safe_receiver_1 = this.kk_1;
921
+ var tmp0_safe_receiver_1 = this.u53_1;
519
922
  var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
520
923
  return tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
521
924
  };
522
925
  protoOf(IncompleteLocalDate).toString = function () {
523
926
  var tmp;
524
- if (this.kk_1 == null) {
525
- var tmp_0 = this.hk_1.toString();
526
- var tmp0_elvis_lhs = this.ik_1;
927
+ if (this.u53_1 == null) {
928
+ var tmp_0 = this.r53_1.toString();
929
+ var tmp0_elvis_lhs = this.s53_1;
527
930
  var tmp_1 = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
528
- var tmp1_elvis_lhs = this.jk_1;
931
+ var tmp1_elvis_lhs = this.t53_1;
529
932
  tmp = tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs) + ')';
530
- } else if (this.ik_1 == null && this.al() == null) {
531
- var tmp2_elvis_lhs = this.hk_1.yk_1;
933
+ } else if (this.s53_1 == null && this.h54() == null) {
934
+ var tmp2_elvis_lhs = this.r53_1.m54_1;
532
935
  var tmp_2 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs);
533
- var tmp_3 = this.kk_1;
534
- var tmp3_elvis_lhs = this.jk_1;
936
+ var tmp_3 = this.u53_1;
937
+ var tmp3_elvis_lhs = this.t53_1;
535
938
  tmp = '(' + tmp_2 + ')-' + tmp_3 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')';
536
939
  } else {
537
- var tmp_4 = this.hk_1.toString();
538
- var tmp4_elvis_lhs = this.ik_1;
940
+ var tmp_4 = this.r53_1.toString();
941
+ var tmp4_elvis_lhs = this.s53_1;
539
942
  var tmp_5 = toString(tmp4_elvis_lhs == null ? '??' : tmp4_elvis_lhs);
540
- var tmp5_elvis_lhs = this.jk_1;
541
- tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.kk_1 + ')';
943
+ var tmp5_elvis_lhs = this.t53_1;
944
+ tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.u53_1 + ')';
542
945
  }
543
946
  return tmp;
544
947
  };
545
- protoOf(IncompleteLocalDate).vk = function (_set____db54di) {
546
- this.hk_1.yk_1 = _set____db54di;
948
+ protoOf(IncompleteLocalDate).j54 = function (_set____db54di) {
949
+ this.r53_1.m54_1 = _set____db54di;
547
950
  };
548
- protoOf(IncompleteLocalDate).bl = function () {
549
- return this.hk_1.yk_1;
951
+ protoOf(IncompleteLocalDate).c54 = function () {
952
+ return this.r53_1.m54_1;
550
953
  };
551
- protoOf(IncompleteLocalDate).xk = function (_set____db54di) {
552
- this.hk_1.zk_1 = _set____db54di;
954
+ protoOf(IncompleteLocalDate).k54 = function (_set____db54di) {
955
+ this.r53_1.n54_1 = _set____db54di;
553
956
  };
554
- protoOf(IncompleteLocalDate).al = function () {
555
- return this.hk_1.zk_1;
957
+ protoOf(IncompleteLocalDate).h54 = function () {
958
+ return this.r53_1.n54_1;
556
959
  };
557
- function Companion() {
960
+ function Companion_4() {
558
961
  }
559
- protoOf(Companion).cl = function (block) {
962
+ protoOf(Companion_4).o54 = function (block) {
560
963
  var builder = new Builder(new AppendableFormatStructure());
561
964
  block(builder);
562
- return new LocalDateFormat(builder.fk());
965
+ return new LocalDateFormat(builder.a2k());
563
966
  };
564
- var Companion_instance;
565
- function Companion_getInstance() {
566
- return Companion_instance;
967
+ var Companion_instance_4;
968
+ function Companion_getInstance_4() {
969
+ return Companion_instance_4;
567
970
  }
568
971
  function Builder(actualBuilder) {
569
- this.dl_1 = actualBuilder;
972
+ this.p54_1 = actualBuilder;
570
973
  }
571
- protoOf(Builder).ck = function () {
572
- return this.dl_1;
974
+ protoOf(Builder).n53 = function () {
975
+ return this.p54_1;
573
976
  };
574
- protoOf(Builder).el = function (structure) {
575
- return this.dl_1.ek(structure);
977
+ protoOf(Builder).q54 = function (structure) {
978
+ return this.p54_1.p53(structure);
576
979
  };
577
980
  function LocalDateFormat(actualFormat) {
578
981
  AbstractDateTimeFormat.call(this);
579
- this.gl_1 = actualFormat;
982
+ this.s54_1 = actualFormat;
580
983
  }
581
- protoOf(LocalDateFormat).oj = function () {
582
- return this.gl_1;
984
+ protoOf(LocalDateFormat).w52 = function () {
985
+ return this.s54_1;
583
986
  };
584
- protoOf(LocalDateFormat).hl = function (value) {
987
+ protoOf(LocalDateFormat).t54 = function (value) {
585
988
  // Inline function 'kotlin.apply' call
586
989
  var this_0 = new IncompleteLocalDate();
587
- this_0.rk(value);
990
+ this_0.i54(value);
588
991
  return this_0;
589
992
  };
590
- protoOf(LocalDateFormat).pj = function (value) {
591
- return this.hl(value instanceof LocalDate ? value : THROW_CCE());
993
+ protoOf(LocalDateFormat).x52 = function (value) {
994
+ return this.t54(value instanceof LocalDate ? value : THROW_CCE());
995
+ };
996
+ protoOf(LocalDateFormat).u54 = function (intermediate) {
997
+ return intermediate.b54();
998
+ };
999
+ protoOf(LocalDateFormat).y52 = function (intermediate) {
1000
+ return this.u54(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE());
1001
+ };
1002
+ protoOf(LocalDateFormat).z52 = function () {
1003
+ return get_emptyIncompleteLocalDate();
592
1004
  };
593
1005
  function AbstractWithDateBuilder() {
594
1006
  }
595
1007
  function DayDirective(padding) {
596
- var tmp = DateFields_getInstance().il_1;
1008
+ var tmp = DateFields_getInstance().v54_1;
597
1009
  // Inline function 'kotlinx.datetime.format.minDigits' call
598
1010
  var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
599
1011
  // Inline function 'kotlinx.datetime.format.spaces' call
600
1012
  var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
601
1013
  UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
602
- this.pl_1 = padding;
1014
+ this.c55_1 = padding;
603
1015
  }
604
1016
  protoOf(DayDirective).equals = function (other) {
605
1017
  var tmp;
606
1018
  if (other instanceof DayDirective) {
607
- tmp = this.pl_1.equals(other.pl_1);
1019
+ tmp = this.c55_1.equals(other.c55_1);
608
1020
  } else {
609
1021
  tmp = false;
610
1022
  }
611
1023
  return tmp;
612
1024
  };
613
1025
  protoOf(DayDirective).hashCode = function () {
614
- return this.pl_1.hashCode();
1026
+ return this.c55_1.hashCode();
615
1027
  };
616
1028
  function DateFieldContainer$_get_day_$ref_2ebhxx() {
617
1029
  return function (p0) {
618
- return p0.mk();
1030
+ return p0.w53();
619
1031
  };
620
1032
  }
621
1033
  function DateFieldContainer$_set_day_$ref_s0jsax() {
622
1034
  return function (p0, p1) {
623
- p0.lk(p1);
1035
+ p0.v53(p1);
624
1036
  return Unit_instance;
625
1037
  };
626
1038
  }
627
1039
  function DateFieldContainer$_get_dayOfWeek_$ref_thwqom() {
628
1040
  return function (p0) {
629
- return p0.ok();
1041
+ return p0.y53();
630
1042
  };
631
1043
  }
632
1044
  function DateFieldContainer$_set_dayOfWeek_$ref_ea586a() {
633
1045
  return function (p0, p1) {
634
- p0.nk(p1);
1046
+ p0.x53(p1);
635
1047
  return Unit_instance;
636
1048
  };
637
1049
  }
638
1050
  function DateFieldContainer$_get_dayOfYear_$ref_2m6gfz() {
639
1051
  return function (p0) {
640
- return p0.qk();
1052
+ return p0.a54();
641
1053
  };
642
1054
  }
643
1055
  function DateFieldContainer$_set_dayOfYear_$ref_cll22d() {
644
1056
  return function (p0, p1) {
645
- p0.pk(p1);
1057
+ p0.z53(p1);
646
1058
  return Unit_instance;
647
1059
  };
648
1060
  }
@@ -651,15 +1063,15 @@
651
1063
  var tmp = this;
652
1064
  var tmp_0 = KMutableProperty1;
653
1065
  var tmp_1 = DateFieldContainer$_get_day_$ref_2ebhxx();
654
- tmp.il_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
1066
+ tmp.v54_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
655
1067
  var tmp_2 = this;
656
1068
  var tmp_3 = KMutableProperty1;
657
1069
  var tmp_4 = DateFieldContainer$_get_dayOfWeek_$ref_thwqom();
658
- tmp_2.jl_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
1070
+ tmp_2.w54_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
659
1071
  var tmp_5 = this;
660
1072
  var tmp_6 = KMutableProperty1;
661
1073
  var tmp_7 = DateFieldContainer$_get_dayOfYear_$ref_2m6gfz();
662
- tmp_5.kl_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
1074
+ tmp_5.x54_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
663
1075
  }
664
1076
  var DateFields_instance;
665
1077
  function DateFields_getInstance() {
@@ -669,16 +1081,16 @@
669
1081
  }
670
1082
  function ISO_DATE$delegate$lambda() {
671
1083
  _init_properties_LocalDateFormat_kt__k1uk9u();
672
- var tmp = Companion_instance;
673
- return tmp.cl(ISO_DATE$delegate$lambda$lambda);
1084
+ var tmp = Companion_instance_4;
1085
+ return tmp.o54(ISO_DATE$delegate$lambda$lambda);
674
1086
  }
675
1087
  function ISO_DATE$delegate$lambda$lambda($this$build) {
676
1088
  _init_properties_LocalDateFormat_kt__k1uk9u();
677
- $this$build.wj();
1089
+ $this$build.h53();
678
1090
  char($this$build, _Char___init__impl__6a9atx(45));
679
- $this$build.yj();
1091
+ $this$build.j53();
680
1092
  char($this$build, _Char___init__impl__6a9atx(45));
681
- $this$build.bk();
1093
+ $this$build.m53();
682
1094
  return Unit_instance;
683
1095
  }
684
1096
  function _get_ISO_DATE_$ref_powsum() {
@@ -688,14 +1100,14 @@
688
1100
  }
689
1101
  function ISO_DATE_BASIC$delegate$lambda() {
690
1102
  _init_properties_LocalDateFormat_kt__k1uk9u();
691
- var tmp = Companion_instance;
692
- return tmp.cl(ISO_DATE_BASIC$delegate$lambda$lambda);
1103
+ var tmp = Companion_instance_4;
1104
+ return tmp.o54(ISO_DATE_BASIC$delegate$lambda$lambda);
693
1105
  }
694
1106
  function ISO_DATE_BASIC$delegate$lambda$lambda($this$build) {
695
1107
  _init_properties_LocalDateFormat_kt__k1uk9u();
696
- $this$build.wj();
697
- $this$build.yj();
698
- $this$build.bk();
1108
+ $this$build.h53();
1109
+ $this$build.j53();
1110
+ $this$build.m53();
699
1111
  return Unit_instance;
700
1112
  }
701
1113
  function _get_ISO_DATE_BASIC_$ref_3fs8eb() {
@@ -712,34 +1124,60 @@
712
1124
  emptyIncompleteLocalDate = new IncompleteLocalDate();
713
1125
  }
714
1126
  }
1127
+ function get_emptyIncompleteYearMonth() {
1128
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1129
+ return emptyIncompleteYearMonth;
1130
+ }
1131
+ var emptyIncompleteYearMonth;
1132
+ function get_ISO_YEAR_MONTH() {
1133
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1134
+ var tmp0 = ISO_YEAR_MONTH$delegate;
1135
+ var tmp = KProperty0;
1136
+ // Inline function 'kotlin.getValue' call
1137
+ getPropertyCallableRef('ISO_YEAR_MONTH', 0, tmp, _get_ISO_YEAR_MONTH_$ref_y3tv9a(), null);
1138
+ return tmp0.m1();
1139
+ }
1140
+ var ISO_YEAR_MONTH$delegate;
715
1141
  function IncompleteYearMonth(year, monthNumber) {
716
1142
  year = year === VOID ? null : year;
717
1143
  monthNumber = monthNumber === VOID ? null : monthNumber;
718
- this.yk_1 = year;
719
- this.zk_1 = monthNumber;
1144
+ this.m54_1 = year;
1145
+ this.n54_1 = monthNumber;
720
1146
  }
721
- protoOf(IncompleteYearMonth).vk = function (_set____db54di) {
722
- this.yk_1 = _set____db54di;
1147
+ protoOf(IncompleteYearMonth).j54 = function (_set____db54di) {
1148
+ this.m54_1 = _set____db54di;
1149
+ };
1150
+ protoOf(IncompleteYearMonth).c54 = function () {
1151
+ return this.m54_1;
723
1152
  };
724
- protoOf(IncompleteYearMonth).bl = function () {
725
- return this.yk_1;
1153
+ protoOf(IncompleteYearMonth).k54 = function (_set____db54di) {
1154
+ this.n54_1 = _set____db54di;
726
1155
  };
727
- protoOf(IncompleteYearMonth).xk = function (_set____db54di) {
728
- this.zk_1 = _set____db54di;
1156
+ protoOf(IncompleteYearMonth).h54 = function () {
1157
+ return this.n54_1;
729
1158
  };
730
- protoOf(IncompleteYearMonth).al = function () {
731
- return this.zk_1;
1159
+ protoOf(IncompleteYearMonth).h55 = function () {
1160
+ var year = requireParsedField(this.m54_1, 'year');
1161
+ var month = requireParsedField(this.n54_1, 'monthNumber');
1162
+ return new YearMonth(year, month);
1163
+ };
1164
+ protoOf(IncompleteYearMonth).i55 = function (yearMonth) {
1165
+ this.m54_1 = yearMonth.j55_1;
1166
+ this.n54_1 = get_number(yearMonth.g54());
1167
+ };
1168
+ protoOf(IncompleteYearMonth).l54 = function () {
1169
+ return new IncompleteYearMonth(this.m54_1, this.n54_1);
732
1170
  };
733
1171
  protoOf(IncompleteYearMonth).equals = function (other) {
734
1172
  var tmp;
735
1173
  var tmp_0;
736
1174
  if (other instanceof IncompleteYearMonth) {
737
- tmp_0 = this.yk_1 == other.yk_1;
1175
+ tmp_0 = this.m54_1 == other.m54_1;
738
1176
  } else {
739
1177
  tmp_0 = false;
740
1178
  }
741
1179
  if (tmp_0) {
742
- tmp = this.zk_1 == other.zk_1;
1180
+ tmp = this.n54_1 == other.n54_1;
743
1181
  } else {
744
1182
  tmp = false;
745
1183
  }
@@ -747,92 +1185,144 @@
747
1185
  };
748
1186
  protoOf(IncompleteYearMonth).hashCode = function () {
749
1187
  // Inline function 'kotlin.hashCode' call
750
- var tmp0_safe_receiver = this.yk_1;
1188
+ var tmp0_safe_receiver = this.m54_1;
751
1189
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
752
1190
  var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
753
1191
  var tmp = imul(tmp$ret$0, 31);
754
1192
  // Inline function 'kotlin.hashCode' call
755
- var tmp0_safe_receiver_0 = this.zk_1;
1193
+ var tmp0_safe_receiver_0 = this.n54_1;
756
1194
  var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
757
1195
  return tmp + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
758
1196
  };
759
1197
  protoOf(IncompleteYearMonth).toString = function () {
760
- var tmp0_elvis_lhs = this.yk_1;
1198
+ var tmp0_elvis_lhs = this.m54_1;
761
1199
  var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
762
- var tmp1_elvis_lhs = this.zk_1;
1200
+ var tmp1_elvis_lhs = this.n54_1;
763
1201
  return tmp + '-' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs);
764
1202
  };
1203
+ function requireParsedField(field, name) {
1204
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1205
+ if (field == null) {
1206
+ throw DateTimeFormatException_init_$Create$_0('Can not create a ' + name + ' from the given input: the field ' + name + ' is missing');
1207
+ }
1208
+ return field;
1209
+ }
765
1210
  function AbstractWithYearMonthBuilder() {
766
1211
  }
1212
+ function Companion_5() {
1213
+ }
1214
+ protoOf(Companion_5).l55 = function (block) {
1215
+ var builder = new Builder_0(new AppendableFormatStructure());
1216
+ block(builder);
1217
+ return new YearMonthFormat(builder.a2k());
1218
+ };
1219
+ var Companion_instance_5;
1220
+ function Companion_getInstance_5() {
1221
+ return Companion_instance_5;
1222
+ }
1223
+ function Builder_0(actualBuilder) {
1224
+ this.m55_1 = actualBuilder;
1225
+ }
1226
+ protoOf(Builder_0).n53 = function () {
1227
+ return this.m55_1;
1228
+ };
1229
+ protoOf(Builder_0).r54 = function (structure) {
1230
+ return this.m55_1.p53(structure);
1231
+ };
1232
+ function YearMonthFormat(actualFormat) {
1233
+ AbstractDateTimeFormat.call(this);
1234
+ this.n55_1 = actualFormat;
1235
+ }
1236
+ protoOf(YearMonthFormat).w52 = function () {
1237
+ return this.n55_1;
1238
+ };
1239
+ protoOf(YearMonthFormat).o55 = function (value) {
1240
+ // Inline function 'kotlin.apply' call
1241
+ var this_0 = new IncompleteYearMonth();
1242
+ this_0.i55(value);
1243
+ return this_0;
1244
+ };
1245
+ protoOf(YearMonthFormat).x52 = function (value) {
1246
+ return this.o55(value instanceof YearMonth ? value : THROW_CCE());
1247
+ };
1248
+ protoOf(YearMonthFormat).p55 = function (intermediate) {
1249
+ return intermediate.h55();
1250
+ };
1251
+ protoOf(YearMonthFormat).y52 = function (intermediate) {
1252
+ return this.p55(intermediate instanceof IncompleteYearMonth ? intermediate : THROW_CCE());
1253
+ };
1254
+ protoOf(YearMonthFormat).z52 = function () {
1255
+ return get_emptyIncompleteYearMonth();
1256
+ };
767
1257
  function YearDirective(padding, isYearOfEra) {
768
1258
  isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra;
769
- var tmp = YearMonthFields_getInstance().vl_1;
1259
+ var tmp = YearMonthFields_getInstance().q55_1;
770
1260
  // Inline function 'kotlinx.datetime.format.minDigits' call
771
1261
  var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1;
772
1262
  // Inline function 'kotlinx.datetime.format.spaces' call
773
1263
  var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 4 : null;
774
1264
  SignedIntFieldFormatDirective.call(this, tmp, tmp_0, null, tmp$ret$1, 4);
775
- this.cm_1 = padding;
776
- this.dm_1 = isYearOfEra;
1265
+ this.x55_1 = padding;
1266
+ this.y55_1 = isYearOfEra;
777
1267
  }
778
1268
  protoOf(YearDirective).equals = function (other) {
779
1269
  var tmp;
780
1270
  var tmp_0;
781
1271
  if (other instanceof YearDirective) {
782
- tmp_0 = this.cm_1.equals(other.cm_1);
1272
+ tmp_0 = this.x55_1.equals(other.x55_1);
783
1273
  } else {
784
1274
  tmp_0 = false;
785
1275
  }
786
1276
  if (tmp_0) {
787
- tmp = this.dm_1 === other.dm_1;
1277
+ tmp = this.y55_1 === other.y55_1;
788
1278
  } else {
789
1279
  tmp = false;
790
1280
  }
791
1281
  return tmp;
792
1282
  };
793
1283
  protoOf(YearDirective).hashCode = function () {
794
- return imul(this.cm_1.hashCode(), 31) + getBooleanHashCode(this.dm_1) | 0;
1284
+ return imul(this.x55_1.hashCode(), 31) + getBooleanHashCode(this.y55_1) | 0;
795
1285
  };
796
1286
  function MonthDirective(padding) {
797
- var tmp = YearMonthFields_getInstance().wl_1;
1287
+ var tmp = YearMonthFields_getInstance().r55_1;
798
1288
  // Inline function 'kotlinx.datetime.format.minDigits' call
799
1289
  var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
800
1290
  // Inline function 'kotlinx.datetime.format.spaces' call
801
1291
  var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
802
1292
  UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
803
- this.nm_1 = padding;
1293
+ this.i56_1 = padding;
804
1294
  }
805
1295
  protoOf(MonthDirective).equals = function (other) {
806
1296
  var tmp;
807
1297
  if (other instanceof MonthDirective) {
808
- tmp = this.nm_1.equals(other.nm_1);
1298
+ tmp = this.i56_1.equals(other.i56_1);
809
1299
  } else {
810
1300
  tmp = false;
811
1301
  }
812
1302
  return tmp;
813
1303
  };
814
1304
  protoOf(MonthDirective).hashCode = function () {
815
- return this.nm_1.hashCode();
1305
+ return this.i56_1.hashCode();
816
1306
  };
817
1307
  function YearMonthFieldContainer$_get_year_$ref_7j3zdj() {
818
1308
  return function (p0) {
819
- return p0.bl();
1309
+ return p0.c54();
820
1310
  };
821
1311
  }
822
1312
  function YearMonthFieldContainer$_set_year_$ref_kc0aub() {
823
1313
  return function (p0, p1) {
824
- p0.vk(p1);
1314
+ p0.j54(p1);
825
1315
  return Unit_instance;
826
1316
  };
827
1317
  }
828
1318
  function YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5() {
829
1319
  return function (p0) {
830
- return p0.al();
1320
+ return p0.h54();
831
1321
  };
832
1322
  }
833
1323
  function YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl() {
834
1324
  return function (p0, p1) {
835
- p0.xk(p1);
1325
+ p0.k54(p1);
836
1326
  return Unit_instance;
837
1327
  };
838
1328
  }
@@ -841,11 +1331,11 @@
841
1331
  var tmp = this;
842
1332
  var tmp_0 = KMutableProperty1;
843
1333
  var tmp_1 = YearMonthFieldContainer$_get_year_$ref_7j3zdj();
844
- tmp.vl_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
1334
+ tmp.q55_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
845
1335
  var tmp_2 = this;
846
1336
  var tmp_3 = KMutableProperty1;
847
1337
  var tmp_4 = YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5();
848
- tmp_2.wl_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
1338
+ tmp_2.r55_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
849
1339
  }
850
1340
  var YearMonthFields_instance;
851
1341
  function YearMonthFields_getInstance() {
@@ -853,6 +1343,44 @@
853
1343
  new YearMonthFields();
854
1344
  return YearMonthFields_instance;
855
1345
  }
1346
+ function ISO_YEAR_MONTH$delegate$lambda() {
1347
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1348
+ var tmp = Companion_instance_5;
1349
+ return tmp.l55(ISO_YEAR_MONTH$delegate$lambda$lambda);
1350
+ }
1351
+ function ISO_YEAR_MONTH$delegate$lambda$lambda($this$build) {
1352
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1353
+ $this$build.h53();
1354
+ char($this$build, _Char___init__impl__6a9atx(45));
1355
+ $this$build.j53();
1356
+ return Unit_instance;
1357
+ }
1358
+ function _get_ISO_YEAR_MONTH_$ref_y3tv9a() {
1359
+ return function () {
1360
+ return get_ISO_YEAR_MONTH();
1361
+ };
1362
+ }
1363
+ var properties_initialized_YearMonthFormat_kt_fp0mk6;
1364
+ function _init_properties_YearMonthFormat_kt__i0mmu0() {
1365
+ if (!properties_initialized_YearMonthFormat_kt_fp0mk6) {
1366
+ properties_initialized_YearMonthFormat_kt_fp0mk6 = true;
1367
+ emptyIncompleteYearMonth = new IncompleteYearMonth();
1368
+ ISO_YEAR_MONTH$delegate = lazy(ISO_YEAR_MONTH$delegate$lambda);
1369
+ }
1370
+ }
1371
+ function monthLength(_this__u8e3s4, isLeapYear) {
1372
+ switch (_this__u8e3s4) {
1373
+ case 2:
1374
+ return isLeapYear ? 29 : 28;
1375
+ case 4:
1376
+ case 6:
1377
+ case 9:
1378
+ case 11:
1379
+ return 30;
1380
+ default:
1381
+ return 31;
1382
+ }
1383
+ }
856
1384
  function isLeapYear(year) {
857
1385
  var prolepticYear = fromInt(year);
858
1386
  var tmp;
@@ -874,21 +1402,21 @@
874
1402
  function AppendableFormatStructure() {
875
1403
  var tmp = this;
876
1404
  // Inline function 'kotlin.collections.mutableListOf' call
877
- tmp.dk_1 = ArrayList_init_$Create$();
1405
+ tmp.o53_1 = ArrayList_init_$Create$();
878
1406
  }
879
- protoOf(AppendableFormatStructure).fk = function () {
880
- return new ConcatenatedFormatStructure(this.dk_1);
1407
+ protoOf(AppendableFormatStructure).a2k = function () {
1408
+ return new ConcatenatedFormatStructure(this.o53_1);
881
1409
  };
882
- protoOf(AppendableFormatStructure).ek = function (format) {
1410
+ protoOf(AppendableFormatStructure).p53 = function (format) {
883
1411
  if (isInterface(format, NonConcatenatedFormatStructure))
884
- this.dk_1.q(format);
1412
+ this.o53_1.e1(format);
885
1413
  else {
886
1414
  if (format instanceof ConcatenatedFormatStructure) {
887
1415
  // Inline function 'kotlin.collections.forEach' call
888
- var _iterator__ex2g4s = format.gk_1.g();
889
- while (_iterator__ex2g4s.h()) {
890
- var element = _iterator__ex2g4s.i();
891
- this.dk_1.q(element);
1416
+ var _iterator__ex2g4s = format.q53_1.t();
1417
+ while (_iterator__ex2g4s.u()) {
1418
+ var element = _iterator__ex2g4s.v();
1419
+ this.o53_1.e1(element);
892
1420
  }
893
1421
  } else {
894
1422
  noWhenBranchMatchedException();
@@ -897,201 +1425,218 @@
897
1425
  };
898
1426
  function Accessor$getterNotNull$ref(p0) {
899
1427
  var l = function (_this__u8e3s4) {
900
- return p0.om(_this__u8e3s4);
1428
+ return p0.j56(_this__u8e3s4);
901
1429
  };
902
1430
  l.callableName = 'getterNotNull';
903
1431
  return l;
904
1432
  }
905
1433
  function UnsignedIntFieldFormatDirective(field, minDigits, spacePadding) {
906
- this.ql_1 = field;
907
- this.rl_1 = minDigits;
908
- this.sl_1 = spacePadding;
909
- this.tl_1 = this.ql_1.vm_1;
1434
+ this.d55_1 = field;
1435
+ this.e55_1 = minDigits;
1436
+ this.f55_1 = spacePadding;
1437
+ this.g55_1 = this.d55_1.q56_1;
910
1438
  // Inline function 'kotlin.require' call
911
- if (!(this.rl_1 >= 0)) {
912
- var message = 'The minimum number of digits (' + this.rl_1 + ') is negative';
1439
+ if (!(this.e55_1 >= 0)) {
1440
+ var message = 'The minimum number of digits (' + this.e55_1 + ') is negative';
913
1441
  throw IllegalArgumentException_init_$Create$(toString(message));
914
1442
  }
915
1443
  // Inline function 'kotlin.require' call
916
- if (!(this.tl_1 >= this.rl_1)) {
917
- var message_0 = 'The maximum number of digits (' + this.tl_1 + ') is less than the minimum number of digits (' + this.rl_1 + ')';
1444
+ if (!(this.g55_1 >= this.e55_1)) {
1445
+ var message_0 = 'The maximum number of digits (' + this.g55_1 + ') is less than the minimum number of digits (' + this.e55_1 + ')';
918
1446
  throw IllegalArgumentException_init_$Create$(toString(message_0));
919
1447
  }
920
- if (!(this.sl_1 == null)) {
1448
+ if (!(this.f55_1 == null)) {
921
1449
  // Inline function 'kotlin.require' call
922
- if (!(this.sl_1 > this.rl_1)) {
923
- var message_1 = 'The space padding (' + this.sl_1 + ') should be more than the minimum number of digits (' + this.rl_1 + ')';
1450
+ if (!(this.f55_1 > this.e55_1)) {
1451
+ var message_1 = 'The space padding (' + this.f55_1 + ') should be more than the minimum number of digits (' + this.e55_1 + ')';
924
1452
  throw IllegalArgumentException_init_$Create$(toString(message_1));
925
1453
  }
926
1454
  }
927
1455
  }
928
- protoOf(UnsignedIntFieldFormatDirective).tj = function () {
929
- var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.ql_1.pm_1), this.rl_1);
930
- return !(this.sl_1 == null) ? new SpacePaddedFormatter(formatter, this.sl_1) : formatter;
1456
+ protoOf(UnsignedIntFieldFormatDirective).d53 = function () {
1457
+ var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.d55_1.k56_1), this.e55_1);
1458
+ return !(this.f55_1 == null) ? new SpacePaddedFormatter(formatter, this.f55_1) : formatter;
931
1459
  };
932
- protoOf(UnsignedIntFieldFormatDirective).ul = function () {
933
- return spaceAndZeroPaddedUnsignedInt(this.rl_1, this.tl_1, this.sl_1, this.ql_1.pm_1, this.ql_1.sm_1);
1460
+ protoOf(UnsignedIntFieldFormatDirective).f53 = function () {
1461
+ return spaceAndZeroPaddedUnsignedInt(this.e55_1, this.g55_1, this.f55_1, this.d55_1.k56_1, this.d55_1.n56_1);
934
1462
  };
935
1463
  function Accessor$getterNotNull$ref_0(p0) {
936
1464
  var l = function (_this__u8e3s4) {
937
- return p0.om(_this__u8e3s4);
1465
+ return p0.j56(_this__u8e3s4);
938
1466
  };
939
1467
  l.callableName = 'getterNotNull';
940
1468
  return l;
941
1469
  }
942
1470
  function SignedIntFieldFormatDirective(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) {
943
- this.em_1 = field;
944
- this.fm_1 = minDigits;
945
- this.gm_1 = maxDigits;
946
- this.hm_1 = spacePadding;
947
- this.im_1 = outputPlusOnExceededWidth;
1471
+ this.z55_1 = field;
1472
+ this.a56_1 = minDigits;
1473
+ this.b56_1 = maxDigits;
1474
+ this.c56_1 = spacePadding;
1475
+ this.d56_1 = outputPlusOnExceededWidth;
948
1476
  // Inline function 'kotlin.require' call
949
- if (!(this.fm_1 == null || this.fm_1 >= 0)) {
950
- var message = 'The minimum number of digits (' + this.fm_1 + ') is negative';
1477
+ if (!(this.a56_1 == null || this.a56_1 >= 0)) {
1478
+ var message = 'The minimum number of digits (' + this.a56_1 + ') is negative';
951
1479
  throw IllegalArgumentException_init_$Create$(toString(message));
952
1480
  }
953
1481
  // Inline function 'kotlin.require' call
954
- if (!(this.gm_1 == null || this.fm_1 == null || this.gm_1 >= this.fm_1)) {
955
- var message_0 = 'The maximum number of digits (' + this.gm_1 + ') is less than the minimum number of digits (' + this.fm_1 + ')';
1482
+ if (!(this.b56_1 == null || this.a56_1 == null || this.b56_1 >= this.a56_1)) {
1483
+ var message_0 = 'The maximum number of digits (' + this.b56_1 + ') is less than the minimum number of digits (' + this.a56_1 + ')';
956
1484
  throw IllegalArgumentException_init_$Create$(toString(message_0));
957
1485
  }
958
1486
  }
959
- protoOf(SignedIntFieldFormatDirective).tj = function () {
960
- var tmp = Accessor$getterNotNull$ref_0(this.em_1.wm());
961
- var tmp0_elvis_lhs = this.fm_1;
962
- var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.im_1);
963
- return !(this.hm_1 == null) ? new SpacePaddedFormatter(formatter, this.hm_1) : formatter;
1487
+ protoOf(SignedIntFieldFormatDirective).d53 = function () {
1488
+ var tmp = Accessor$getterNotNull$ref_0(this.z55_1.r56());
1489
+ var tmp0_elvis_lhs = this.a56_1;
1490
+ var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.d56_1);
1491
+ return !(this.c56_1 == null) ? new SpacePaddedFormatter(formatter, this.c56_1) : formatter;
964
1492
  };
965
- protoOf(SignedIntFieldFormatDirective).ul = function () {
966
- return SignedIntParser(this.fm_1, this.gm_1, this.hm_1, this.em_1.wm(), this.em_1.y1(), this.im_1);
1493
+ protoOf(SignedIntFieldFormatDirective).f53 = function () {
1494
+ return SignedIntParser(this.a56_1, this.b56_1, this.c56_1, this.z55_1.r56(), this.z55_1.m(), this.d56_1);
967
1495
  };
968
1496
  function GenericFieldSpec(accessor, name, defaultValue, sign) {
969
- name = name === VOID ? accessor.y1() : name;
1497
+ name = name === VOID ? accessor.m() : name;
970
1498
  defaultValue = defaultValue === VOID ? null : defaultValue;
971
1499
  sign = sign === VOID ? null : sign;
972
1500
  AbstractFieldSpec.call(this);
973
- this.xm_1 = accessor;
974
- this.ym_1 = name;
975
- this.zm_1 = defaultValue;
976
- this.an_1 = sign;
1501
+ this.s56_1 = accessor;
1502
+ this.t56_1 = name;
1503
+ this.u56_1 = defaultValue;
1504
+ this.v56_1 = sign;
977
1505
  }
978
- protoOf(GenericFieldSpec).wm = function () {
979
- return this.xm_1;
1506
+ protoOf(GenericFieldSpec).r56 = function () {
1507
+ return this.s56_1;
980
1508
  };
981
- protoOf(GenericFieldSpec).y1 = function () {
982
- return this.ym_1;
1509
+ protoOf(GenericFieldSpec).m = function () {
1510
+ return this.t56_1;
983
1511
  };
984
- protoOf(GenericFieldSpec).bn = function () {
985
- return this.zm_1;
1512
+ protoOf(GenericFieldSpec).w56 = function () {
1513
+ return this.u56_1;
986
1514
  };
987
1515
  function PropertyAccessor(property, name) {
988
1516
  name = name === VOID ? property.callableName : name;
989
- this.cn_1 = property;
990
- this.dn_1 = name;
1517
+ this.x56_1 = property;
1518
+ this.y56_1 = name;
991
1519
  }
992
- protoOf(PropertyAccessor).y1 = function () {
993
- return this.dn_1;
1520
+ protoOf(PropertyAccessor).m = function () {
1521
+ return this.y56_1;
1522
+ };
1523
+ protoOf(PropertyAccessor).z56 = function (container, newValue) {
1524
+ var oldValue = this.x56_1.get(container);
1525
+ var tmp;
1526
+ if (oldValue === null) {
1527
+ this.x56_1.set(container, newValue);
1528
+ tmp = null;
1529
+ } else if (equals(oldValue, newValue)) {
1530
+ tmp = null;
1531
+ } else {
1532
+ tmp = oldValue;
1533
+ }
1534
+ return tmp;
994
1535
  };
995
- protoOf(PropertyAccessor).en = function (container) {
996
- return this.cn_1.get(container);
1536
+ protoOf(PropertyAccessor).a57 = function (container, newValue) {
1537
+ var tmp = (container == null ? true : !(container == null)) ? container : THROW_CCE();
1538
+ return this.z56(tmp, (newValue == null ? true : !(newValue == null)) ? newValue : THROW_CCE());
1539
+ };
1540
+ protoOf(PropertyAccessor).b57 = function (container) {
1541
+ return this.x56_1.get(container);
997
1542
  };
998
1543
  function UnsignedFieldSpec(accessor, minValue, maxValue, name, defaultValue, sign) {
999
- name = name === VOID ? accessor.y1() : name;
1544
+ name = name === VOID ? accessor.m() : name;
1000
1545
  defaultValue = defaultValue === VOID ? null : defaultValue;
1001
1546
  sign = sign === VOID ? null : sign;
1002
1547
  AbstractFieldSpec.call(this);
1003
- this.pm_1 = accessor;
1004
- this.qm_1 = minValue;
1005
- this.rm_1 = maxValue;
1006
- this.sm_1 = name;
1007
- this.tm_1 = defaultValue;
1008
- this.um_1 = sign;
1548
+ this.k56_1 = accessor;
1549
+ this.l56_1 = minValue;
1550
+ this.m56_1 = maxValue;
1551
+ this.n56_1 = name;
1552
+ this.o56_1 = defaultValue;
1553
+ this.p56_1 = sign;
1009
1554
  var tmp = this;
1010
1555
  var tmp_0;
1011
- if (this.rm_1 < 10) {
1556
+ if (this.m56_1 < 10) {
1012
1557
  tmp_0 = 1;
1013
- } else if (this.rm_1 < 100) {
1558
+ } else if (this.m56_1 < 100) {
1014
1559
  tmp_0 = 2;
1015
- } else if (this.rm_1 < 1000) {
1560
+ } else if (this.m56_1 < 1000) {
1016
1561
  tmp_0 = 3;
1017
1562
  } else {
1018
- throw IllegalArgumentException_init_$Create$('Max value ' + this.rm_1 + ' is too large');
1563
+ throw IllegalArgumentException_init_$Create$('Max value ' + this.m56_1 + ' is too large');
1019
1564
  }
1020
- tmp.vm_1 = tmp_0;
1565
+ tmp.q56_1 = tmp_0;
1021
1566
  }
1022
- protoOf(UnsignedFieldSpec).wm = function () {
1023
- return this.pm_1;
1567
+ protoOf(UnsignedFieldSpec).r56 = function () {
1568
+ return this.k56_1;
1024
1569
  };
1025
- protoOf(UnsignedFieldSpec).y1 = function () {
1026
- return this.sm_1;
1570
+ protoOf(UnsignedFieldSpec).m = function () {
1571
+ return this.n56_1;
1027
1572
  };
1028
- protoOf(UnsignedFieldSpec).bn = function () {
1029
- return this.tm_1;
1573
+ protoOf(UnsignedFieldSpec).w56 = function () {
1574
+ return this.o56_1;
1030
1575
  };
1031
1576
  function Accessor() {
1032
1577
  }
1033
1578
  function AbstractFieldSpec() {
1034
1579
  }
1035
1580
  protoOf(AbstractFieldSpec).toString = function () {
1036
- return 'The field ' + this.y1() + ' (default value is ' + toString_1(this.bn()) + ')';
1581
+ return 'The field ' + this.m() + ' (default value is ' + toString_1(this.w56()) + ')';
1037
1582
  };
1038
1583
  function CachedFormatStructure(formats) {
1039
1584
  ConcatenatedFormatStructure.call(this, formats);
1040
- this.rj_1 = protoOf(ConcatenatedFormatStructure).tj.call(this);
1041
- this.sj_1 = protoOf(ConcatenatedFormatStructure).ul.call(this);
1585
+ this.b53_1 = protoOf(ConcatenatedFormatStructure).d53.call(this);
1586
+ this.c53_1 = protoOf(ConcatenatedFormatStructure).f53.call(this);
1042
1587
  }
1043
- protoOf(CachedFormatStructure).tj = function () {
1044
- return this.rj_1;
1588
+ protoOf(CachedFormatStructure).d53 = function () {
1589
+ return this.b53_1;
1045
1590
  };
1046
- protoOf(CachedFormatStructure).ul = function () {
1047
- return this.sj_1;
1591
+ protoOf(CachedFormatStructure).f53 = function () {
1592
+ return this.c53_1;
1048
1593
  };
1049
1594
  function BasicFormatStructure(directive) {
1050
- this.fn_1 = directive;
1595
+ this.c57_1 = directive;
1051
1596
  }
1052
1597
  protoOf(BasicFormatStructure).toString = function () {
1053
- return 'BasicFormatStructure(' + toString(this.fn_1) + ')';
1598
+ return 'BasicFormatStructure(' + toString(this.c57_1) + ')';
1054
1599
  };
1055
1600
  protoOf(BasicFormatStructure).equals = function (other) {
1056
1601
  var tmp;
1057
1602
  if (other instanceof BasicFormatStructure) {
1058
- tmp = equals(this.fn_1, other.fn_1);
1603
+ tmp = equals(this.c57_1, other.c57_1);
1059
1604
  } else {
1060
1605
  tmp = false;
1061
1606
  }
1062
1607
  return tmp;
1063
1608
  };
1064
1609
  protoOf(BasicFormatStructure).hashCode = function () {
1065
- return hashCode(this.fn_1);
1610
+ return hashCode(this.c57_1);
1066
1611
  };
1067
- protoOf(BasicFormatStructure).ul = function () {
1068
- return this.fn_1.ul();
1612
+ protoOf(BasicFormatStructure).f53 = function () {
1613
+ return this.c57_1.f53();
1069
1614
  };
1070
- protoOf(BasicFormatStructure).tj = function () {
1071
- return this.fn_1.tj();
1615
+ protoOf(BasicFormatStructure).d53 = function () {
1616
+ return this.c57_1.d53();
1072
1617
  };
1073
1618
  function ConstantFormatStructure(string) {
1074
- this.gn_1 = string;
1619
+ this.d57_1 = string;
1075
1620
  }
1076
1621
  protoOf(ConstantFormatStructure).toString = function () {
1077
- return 'ConstantFormatStructure(' + this.gn_1 + ')';
1622
+ return 'ConstantFormatStructure(' + this.d57_1 + ')';
1078
1623
  };
1079
1624
  protoOf(ConstantFormatStructure).equals = function (other) {
1080
1625
  var tmp;
1081
1626
  if (other instanceof ConstantFormatStructure) {
1082
- tmp = this.gn_1 === other.gn_1;
1627
+ tmp = this.d57_1 === other.d57_1;
1083
1628
  } else {
1084
1629
  tmp = false;
1085
1630
  }
1086
1631
  return tmp;
1087
1632
  };
1088
1633
  protoOf(ConstantFormatStructure).hashCode = function () {
1089
- return getStringHashCode(this.gn_1);
1634
+ return getStringHashCode(this.d57_1);
1090
1635
  };
1091
- protoOf(ConstantFormatStructure).ul = function () {
1636
+ protoOf(ConstantFormatStructure).f53 = function () {
1092
1637
  var tmp;
1093
1638
  // Inline function 'kotlin.text.isEmpty' call
1094
- var this_0 = this.gn_1;
1639
+ var this_0 = this.d57_1;
1095
1640
  if (charSequenceLength(this_0) === 0) {
1096
1641
  tmp = emptyList();
1097
1642
  } else {
@@ -1100,8 +1645,8 @@
1100
1645
  // Inline function 'kotlin.apply' call
1101
1646
  var this_1 = ArrayList_init_$Create$();
1102
1647
  var tmp_0;
1103
- if (isAsciiDigit(charCodeAt(this.gn_1, 0))) {
1104
- var tmp0 = this.gn_1;
1648
+ if (isAsciiDigit(charCodeAt(this.d57_1, 0))) {
1649
+ var tmp0 = this.d57_1;
1105
1650
  var tmp$ret$2;
1106
1651
  $l$block: {
1107
1652
  // Inline function 'kotlin.text.takeWhile' call
@@ -1120,8 +1665,8 @@
1120
1665
  while (inductionVariable < last);
1121
1666
  tmp$ret$2 = tmp0;
1122
1667
  }
1123
- this_1.q(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$2))));
1124
- var tmp0_0 = this.gn_1;
1668
+ this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$2))));
1669
+ var tmp0_0 = this.d57_1;
1125
1670
  var tmp$ret$4;
1126
1671
  $l$block_0: {
1127
1672
  // Inline function 'kotlin.text.dropWhile' call
@@ -1142,7 +1687,7 @@
1142
1687
  }
1143
1688
  tmp_0 = tmp$ret$4;
1144
1689
  } else {
1145
- tmp_0 = this.gn_1;
1690
+ tmp_0 = this.d57_1;
1146
1691
  }
1147
1692
  var suffix = tmp_0;
1148
1693
  // Inline function 'kotlin.text.isNotEmpty' call
@@ -1165,7 +1710,7 @@
1165
1710
  while (0 <= inductionVariable_1);
1166
1711
  tmp$ret$7 = '';
1167
1712
  }
1168
- this_1.q(new PlainStringParserOperation(tmp$ret$7));
1713
+ this_1.e1(new PlainStringParserOperation(tmp$ret$7));
1169
1714
  var tmp$ret$9;
1170
1715
  $l$block_2: {
1171
1716
  // Inline function 'kotlin.text.takeLastWhile' call
@@ -1183,63 +1728,63 @@
1183
1728
  while (0 <= inductionVariable_2);
1184
1729
  tmp$ret$9 = suffix;
1185
1730
  }
1186
- this_1.q(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$9))));
1731
+ this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$9))));
1187
1732
  } else {
1188
- this_1.q(new PlainStringParserOperation(suffix));
1733
+ this_1.e1(new PlainStringParserOperation(suffix));
1189
1734
  }
1190
1735
  }
1191
- tmp = this_1.i2();
1736
+ tmp = this_1.j3();
1192
1737
  }
1193
1738
  return new ParserStructure(tmp, emptyList());
1194
1739
  };
1195
- protoOf(ConstantFormatStructure).tj = function () {
1196
- return new ConstantStringFormatterStructure(this.gn_1);
1740
+ protoOf(ConstantFormatStructure).d53 = function () {
1741
+ return new ConstantStringFormatterStructure(this.d57_1);
1197
1742
  };
1198
1743
  function ConcatenatedFormatStructure(formats) {
1199
- this.gk_1 = formats;
1744
+ this.q53_1 = formats;
1200
1745
  }
1201
1746
  protoOf(ConcatenatedFormatStructure).toString = function () {
1202
- return 'ConcatenatedFormatStructure(' + joinToString(this.gk_1, ', ') + ')';
1747
+ return 'ConcatenatedFormatStructure(' + joinToString(this.q53_1, ', ') + ')';
1203
1748
  };
1204
1749
  protoOf(ConcatenatedFormatStructure).equals = function (other) {
1205
1750
  var tmp;
1206
1751
  if (other instanceof ConcatenatedFormatStructure) {
1207
- tmp = equals(this.gk_1, other.gk_1);
1752
+ tmp = equals(this.q53_1, other.q53_1);
1208
1753
  } else {
1209
1754
  tmp = false;
1210
1755
  }
1211
1756
  return tmp;
1212
1757
  };
1213
1758
  protoOf(ConcatenatedFormatStructure).hashCode = function () {
1214
- return hashCode(this.gk_1);
1759
+ return hashCode(this.q53_1);
1215
1760
  };
1216
- protoOf(ConcatenatedFormatStructure).ul = function () {
1761
+ protoOf(ConcatenatedFormatStructure).f53 = function () {
1217
1762
  // Inline function 'kotlin.collections.map' call
1218
- var this_0 = this.gk_1;
1763
+ var this_0 = this.q53_1;
1219
1764
  // Inline function 'kotlin.collections.mapTo' call
1220
1765
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1221
- var _iterator__ex2g4s = this_0.g();
1222
- while (_iterator__ex2g4s.h()) {
1223
- var item = _iterator__ex2g4s.i();
1224
- var tmp$ret$0 = item.ul();
1225
- destination.q(tmp$ret$0);
1766
+ var _iterator__ex2g4s = this_0.t();
1767
+ while (_iterator__ex2g4s.u()) {
1768
+ var item = _iterator__ex2g4s.v();
1769
+ var tmp$ret$0 = item.f53();
1770
+ destination.e1(tmp$ret$0);
1226
1771
  }
1227
1772
  return concat(destination);
1228
1773
  };
1229
- protoOf(ConcatenatedFormatStructure).tj = function () {
1774
+ protoOf(ConcatenatedFormatStructure).d53 = function () {
1230
1775
  // Inline function 'kotlin.collections.map' call
1231
- var this_0 = this.gk_1;
1776
+ var this_0 = this.q53_1;
1232
1777
  // Inline function 'kotlin.collections.mapTo' call
1233
1778
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1234
- var _iterator__ex2g4s = this_0.g();
1235
- while (_iterator__ex2g4s.h()) {
1236
- var item = _iterator__ex2g4s.i();
1237
- var tmp$ret$0 = item.tj();
1238
- destination.q(tmp$ret$0);
1779
+ var _iterator__ex2g4s = this_0.t();
1780
+ while (_iterator__ex2g4s.u()) {
1781
+ var item = _iterator__ex2g4s.v();
1782
+ var tmp$ret$0 = item.d53();
1783
+ destination.e1(tmp$ret$0);
1239
1784
  }
1240
1785
  var formatters = destination;
1241
1786
  var tmp;
1242
- if (formatters.j() === 1) {
1787
+ if (formatters.g1() === 1) {
1243
1788
  tmp = single(formatters);
1244
1789
  } else {
1245
1790
  tmp = new ConcatenatedFormatter(formatters);
@@ -1251,144 +1796,410 @@
1251
1796
  function FormatterStructure() {
1252
1797
  }
1253
1798
  function SpacePaddedFormatter(formatter, padding) {
1254
- this.in_1 = formatter;
1255
- this.jn_1 = padding;
1799
+ this.f57_1 = formatter;
1800
+ this.g57_1 = padding;
1256
1801
  }
1257
- protoOf(SpacePaddedFormatter).hn = function (obj, builder, minusNotRequired) {
1802
+ protoOf(SpacePaddedFormatter).e57 = function (obj, builder, minusNotRequired) {
1258
1803
  // Inline function 'kotlin.let' call
1259
1804
  var it = StringBuilder_init_$Create$();
1260
- this.in_1.hn(obj, it, minusNotRequired);
1805
+ this.f57_1.e57(obj, it, minusNotRequired);
1261
1806
  var string = it.toString();
1262
1807
  // Inline function 'kotlin.repeat' call
1263
- var times = this.jn_1 - string.length | 0;
1808
+ var times = this.g57_1 - string.length | 0;
1264
1809
  var inductionVariable = 0;
1265
1810
  if (inductionVariable < times)
1266
1811
  do {
1267
1812
  var index = inductionVariable;
1268
1813
  inductionVariable = inductionVariable + 1 | 0;
1269
- builder.y6(_Char___init__impl__6a9atx(32));
1814
+ builder.s(_Char___init__impl__6a9atx(32));
1270
1815
  }
1271
1816
  while (inductionVariable < times);
1272
- builder.f(string);
1817
+ builder.f1(string);
1273
1818
  };
1274
1819
  function ConcatenatedFormatter(formatters) {
1275
- this.kn_1 = formatters;
1820
+ this.h57_1 = formatters;
1276
1821
  }
1277
- protoOf(ConcatenatedFormatter).hn = function (obj, builder, minusNotRequired) {
1278
- var _iterator__ex2g4s = this.kn_1.g();
1279
- while (_iterator__ex2g4s.h()) {
1280
- var formatter = _iterator__ex2g4s.i();
1281
- formatter.hn(obj, builder, minusNotRequired);
1822
+ protoOf(ConcatenatedFormatter).e57 = function (obj, builder, minusNotRequired) {
1823
+ var _iterator__ex2g4s = this.h57_1.t();
1824
+ while (_iterator__ex2g4s.u()) {
1825
+ var formatter = _iterator__ex2g4s.v();
1826
+ formatter.e57(obj, builder, minusNotRequired);
1282
1827
  }
1283
1828
  };
1284
1829
  function UnsignedIntFormatterStructure(number, zeroPadding) {
1285
- this.ln_1 = number;
1286
- this.mn_1 = zeroPadding;
1830
+ this.i57_1 = number;
1831
+ this.j57_1 = zeroPadding;
1287
1832
  // Inline function 'kotlin.require' call
1288
- if (!(this.mn_1 >= 0)) {
1289
- var message = 'The minimum number of digits (' + this.mn_1 + ') is negative';
1833
+ if (!(this.j57_1 >= 0)) {
1834
+ var message = 'The minimum number of digits (' + this.j57_1 + ') is negative';
1290
1835
  throw IllegalArgumentException_init_$Create$(toString(message));
1291
1836
  }
1292
1837
  // Inline function 'kotlin.require' call
1293
- if (!(this.mn_1 <= 9)) {
1294
- var message_0 = 'The minimum number of digits (' + this.mn_1 + ') exceeds the length of an Int';
1838
+ if (!(this.j57_1 <= 9)) {
1839
+ var message_0 = 'The minimum number of digits (' + this.j57_1 + ') exceeds the length of an Int';
1295
1840
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1296
1841
  }
1297
1842
  }
1298
- protoOf(UnsignedIntFormatterStructure).hn = function (obj, builder, minusNotRequired) {
1299
- var num = this.ln_1(obj);
1843
+ protoOf(UnsignedIntFormatterStructure).e57 = function (obj, builder, minusNotRequired) {
1844
+ var num = this.i57_1(obj);
1300
1845
  var numberStr = num.toString();
1301
1846
  // Inline function 'kotlin.repeat' call
1302
- var times = this.mn_1 - numberStr.length | 0;
1847
+ var times = this.j57_1 - numberStr.length | 0;
1303
1848
  var inductionVariable = 0;
1304
1849
  if (inductionVariable < times)
1305
1850
  do {
1306
1851
  var index = inductionVariable;
1307
1852
  inductionVariable = inductionVariable + 1 | 0;
1308
- builder.y6(_Char___init__impl__6a9atx(48));
1853
+ builder.s(_Char___init__impl__6a9atx(48));
1309
1854
  }
1310
1855
  while (inductionVariable < times);
1311
- builder.f(numberStr);
1856
+ builder.f1(numberStr);
1312
1857
  };
1313
1858
  function SignedIntFormatterStructure(number, zeroPadding, outputPlusOnExceededWidth) {
1314
- this.nn_1 = number;
1315
- this.on_1 = zeroPadding;
1316
- this.pn_1 = outputPlusOnExceededWidth;
1859
+ this.k57_1 = number;
1860
+ this.l57_1 = zeroPadding;
1861
+ this.m57_1 = outputPlusOnExceededWidth;
1317
1862
  // Inline function 'kotlin.require' call
1318
- if (!(this.on_1 >= 0)) {
1319
- var message = 'The minimum number of digits (' + this.on_1 + ') is negative';
1863
+ if (!(this.l57_1 >= 0)) {
1864
+ var message = 'The minimum number of digits (' + this.l57_1 + ') is negative';
1320
1865
  throw IllegalArgumentException_init_$Create$(toString(message));
1321
1866
  }
1322
1867
  // Inline function 'kotlin.require' call
1323
- if (!(this.on_1 <= 9)) {
1324
- var message_0 = 'The minimum number of digits (' + this.on_1 + ') exceeds the length of an Int';
1868
+ if (!(this.l57_1 <= 9)) {
1869
+ var message_0 = 'The minimum number of digits (' + this.l57_1 + ') exceeds the length of an Int';
1325
1870
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1326
1871
  }
1327
1872
  }
1328
- protoOf(SignedIntFormatterStructure).hn = function (obj, builder, minusNotRequired) {
1873
+ protoOf(SignedIntFormatterStructure).e57 = function (obj, builder, minusNotRequired) {
1329
1874
  var innerBuilder = StringBuilder_init_$Create$();
1330
1875
  // Inline function 'kotlin.let' call
1331
- var it = this.nn_1(obj);
1876
+ var it = this.k57_1(obj);
1332
1877
  var number = minusNotRequired && it < 0 ? -it | 0 : it;
1333
- if (!(this.pn_1 == null) && number >= get_POWERS_OF_TEN()[this.pn_1]) {
1334
- innerBuilder.y6(_Char___init__impl__6a9atx(43));
1878
+ if (!(this.m57_1 == null) && number >= get_POWERS_OF_TEN()[this.m57_1]) {
1879
+ innerBuilder.s(_Char___init__impl__6a9atx(43));
1335
1880
  }
1336
1881
  // Inline function 'kotlin.math.absoluteValue' call
1337
- if (abs(number) < get_POWERS_OF_TEN()[this.on_1 - 1 | 0]) {
1882
+ if (abs(number) < get_POWERS_OF_TEN()[this.l57_1 - 1 | 0]) {
1338
1883
  if (number >= 0) {
1339
- innerBuilder.e8(number + get_POWERS_OF_TEN()[this.on_1] | 0).h8(0);
1884
+ innerBuilder.vb(number + get_POWERS_OF_TEN()[this.l57_1] | 0).ac(0);
1340
1885
  } else {
1341
- innerBuilder.e8(number - get_POWERS_OF_TEN()[this.on_1] | 0).h8(1);
1886
+ innerBuilder.vb(number - get_POWERS_OF_TEN()[this.l57_1] | 0).ac(1);
1342
1887
  }
1343
1888
  } else {
1344
- innerBuilder.e8(number);
1889
+ innerBuilder.vb(number);
1345
1890
  }
1346
- builder.f(innerBuilder);
1891
+ builder.f1(innerBuilder);
1347
1892
  };
1348
1893
  function ConstantStringFormatterStructure(string) {
1349
- this.qn_1 = string;
1894
+ this.n57_1 = string;
1350
1895
  }
1351
- protoOf(ConstantStringFormatterStructure).hn = function (obj, builder, minusNotRequired) {
1352
- builder.f(this.qn_1);
1896
+ protoOf(ConstantStringFormatterStructure).e57 = function (obj, builder, minusNotRequired) {
1897
+ builder.f1(this.n57_1);
1353
1898
  };
1354
1899
  function ConstantNumberConsumer(expected) {
1355
1900
  NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
1356
- this.tn_1 = expected;
1901
+ this.q57_1 = expected;
1357
1902
  }
1903
+ protoOf(ConstantNumberConsumer).r57 = function (storage, input, start, end) {
1904
+ var tmp;
1905
+ // Inline function 'kotlin.text.substring' call
1906
+ if (toString(charSequenceSubSequence(input, start, end)) === this.q57_1) {
1907
+ tmp = null;
1908
+ } else {
1909
+ tmp = new WrongConstant(this.q57_1);
1910
+ }
1911
+ return tmp;
1912
+ };
1358
1913
  function NumberConsumer(length, whatThisExpects) {
1359
- this.un_1 = length;
1360
- this.vn_1 = whatThisExpects;
1914
+ this.s57_1 = length;
1915
+ this.t57_1 = whatThisExpects;
1361
1916
  }
1362
1917
  protoOf(NumberConsumer).a = function () {
1363
- return this.un_1;
1918
+ return this.s57_1;
1919
+ };
1920
+ function ExpectedInt() {
1921
+ }
1922
+ protoOf(ExpectedInt).u57 = function () {
1923
+ return 'expected an Int value';
1924
+ };
1925
+ var ExpectedInt_instance;
1926
+ function ExpectedInt_getInstance() {
1927
+ return ExpectedInt_instance;
1928
+ }
1929
+ function TooManyDigits(maxDigits) {
1930
+ this.v57_1 = maxDigits;
1931
+ }
1932
+ protoOf(TooManyDigits).u57 = function () {
1933
+ return 'expected at most ' + this.v57_1 + ' digits';
1934
+ };
1935
+ function TooFewDigits(minDigits) {
1936
+ this.w57_1 = minDigits;
1937
+ }
1938
+ protoOf(TooFewDigits).u57 = function () {
1939
+ return 'expected at least ' + this.w57_1 + ' digits';
1940
+ };
1941
+ function WrongConstant(expected) {
1942
+ this.x57_1 = expected;
1943
+ }
1944
+ protoOf(WrongConstant).u57 = function () {
1945
+ return "expected '" + this.x57_1 + "'";
1946
+ };
1947
+ function Conflicting(conflicting) {
1948
+ this.y57_1 = conflicting;
1949
+ }
1950
+ protoOf(Conflicting).u57 = function () {
1951
+ return "attempted to overwrite the existing value '" + toString(this.y57_1) + "'";
1364
1952
  };
1953
+ function setWithoutReassigning(_this__u8e3s4, receiver, value) {
1954
+ var tmp0_elvis_lhs = _this__u8e3s4.a57(receiver, value);
1955
+ var tmp;
1956
+ if (tmp0_elvis_lhs == null) {
1957
+ return null;
1958
+ } else {
1959
+ tmp = tmp0_elvis_lhs;
1960
+ }
1961
+ var conflictingValue = tmp;
1962
+ return new Conflicting(conflictingValue);
1963
+ }
1365
1964
  function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
1366
1965
  multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
1367
1966
  NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
1368
- this.yn_1 = minLength;
1369
- this.zn_1 = maxLength;
1370
- this.ao_1 = setter;
1371
- this.bo_1 = multiplyByMinus1;
1967
+ this.b58_1 = minLength;
1968
+ this.c58_1 = maxLength;
1969
+ this.d58_1 = setter;
1970
+ this.e58_1 = multiplyByMinus1;
1372
1971
  // Inline function 'kotlin.require' call
1373
- if (!(this.a() == null || numberRangeToNumber(1, 9).ea(this.a()))) {
1374
- var message = 'Invalid length for field ' + this.vn_1 + ': ' + this.a();
1972
+ if (!(this.a() == null || numberRangeToNumber(1, 9).lh(this.a()))) {
1973
+ var message = 'Invalid length for field ' + this.t57_1 + ': ' + this.a();
1375
1974
  throw IllegalArgumentException_init_$Create$(toString(message));
1376
1975
  }
1377
1976
  }
1977
+ protoOf(UnsignedIntConsumer).r57 = function (storage, input, start, end) {
1978
+ var tmp;
1979
+ if (!(this.c58_1 == null) && (end - start | 0) > this.c58_1) {
1980
+ tmp = new TooManyDigits(this.c58_1);
1981
+ } else if (!(this.b58_1 == null) && (end - start | 0) < this.b58_1) {
1982
+ tmp = new TooFewDigits(this.b58_1);
1983
+ } else {
1984
+ var result = parseAsciiIntOrNull(input, start, end);
1985
+ tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.d58_1, storage, this.e58_1 ? -result | 0 : result);
1986
+ }
1987
+ return tmp;
1988
+ };
1989
+ function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
1990
+ var result = 0;
1991
+ var inductionVariable = start;
1992
+ if (inductionVariable < end)
1993
+ do {
1994
+ var i = inductionVariable;
1995
+ inductionVariable = inductionVariable + 1 | 0;
1996
+ var digit = charSequenceGet(_this__u8e3s4, i);
1997
+ result = imul(result, 10) + asciiDigitToInt(digit) | 0;
1998
+ if (result < 0)
1999
+ return null;
2000
+ }
2001
+ while (inductionVariable < end);
2002
+ return result;
2003
+ }
2004
+ function ParseError(position, message) {
2005
+ this.f58_1 = position;
2006
+ this.g58_1 = message;
2007
+ }
2008
+ function _ParseResult___init__impl__gvz3cn(value) {
2009
+ return value;
2010
+ }
2011
+ function _ParseResult___get_value__impl__86mnxf($this) {
2012
+ return $this;
2013
+ }
2014
+ function Companion_6() {
2015
+ }
2016
+ protoOf(Companion_6).h58 = function (indexOfNextUnparsed) {
2017
+ return _ParseResult___init__impl__gvz3cn(indexOfNextUnparsed);
2018
+ };
2019
+ protoOf(Companion_6).i58 = function (position, message) {
2020
+ return _ParseResult___init__impl__gvz3cn(new ParseError(position, message));
2021
+ };
2022
+ var Companion_instance_6;
2023
+ function Companion_getInstance_6() {
2024
+ return Companion_instance_6;
2025
+ }
2026
+ function _Parser___init__impl__gdyfby(commands) {
2027
+ return commands;
2028
+ }
2029
+ function _get_commands__a20n1($this) {
2030
+ return $this;
2031
+ }
2032
+ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
2033
+ // Inline function 'kotlin.collections.mutableListOf' call
2034
+ var errors = ArrayList_init_$Create$();
2035
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.parse' call
2036
+ var parseOptions = mutableListOf([new ParserState(initialContainer, _get_commands__a20n1($this), startIndex)]);
2037
+ iterate_over_alternatives: while (true) {
2038
+ var tmp0_elvis_lhs = removeLastOrNull(parseOptions);
2039
+ var tmp;
2040
+ if (tmp0_elvis_lhs == null) {
2041
+ break iterate_over_alternatives;
2042
+ } else {
2043
+ tmp = tmp0_elvis_lhs;
2044
+ }
2045
+ var state = tmp;
2046
+ var output = state.j58_1.l54();
2047
+ var inputPosition = state.l58_1;
2048
+ var parserStructure = state.k58_1;
2049
+ // Inline function 'kotlin.run' call
2050
+ $l$block: {
2051
+ var inductionVariable = 0;
2052
+ var last = parserStructure.n58_1.g1() - 1 | 0;
2053
+ if (inductionVariable <= last)
2054
+ do {
2055
+ var ix = inductionVariable;
2056
+ inductionVariable = inductionVariable + 1 | 0;
2057
+ // Inline function 'kotlinx.datetime.internal.format.parser.ParseResult.match' call
2058
+ var this_0 = parserStructure.n58_1.h1(ix).p58(output, input, inputPosition);
2059
+ var tmp0_subject = _ParseResult___get_value__impl__86mnxf(this_0);
2060
+ if (typeof tmp0_subject === 'number') {
2061
+ inputPosition = _ParseResult___get_value__impl__86mnxf(this_0);
2062
+ } else {
2063
+ if (tmp0_subject instanceof ParseError) {
2064
+ var it = _ParseResult___get_value__impl__86mnxf(this_0);
2065
+ errors.e1(it);
2066
+ break $l$block;
2067
+ } else {
2068
+ // Inline function 'kotlin.error' call
2069
+ var message = 'Unexpected parse result: ' + toString(_ParseResult___get_value__impl__86mnxf(this_0));
2070
+ throw IllegalStateException_init_$Create$(toString(message));
2071
+ }
2072
+ }
2073
+ }
2074
+ while (inductionVariable <= last);
2075
+ if (parserStructure.o58_1.r()) {
2076
+ if (false || inputPosition === charSequenceLength(input)) {
2077
+ return output;
2078
+ } else {
2079
+ var tmp_0 = inputPosition;
2080
+ var it_0 = new ParseError(tmp_0, Parser$match$lambda);
2081
+ errors.e1(it_0);
2082
+ }
2083
+ } else {
2084
+ var inductionVariable_0 = parserStructure.o58_1.g1() - 1 | 0;
2085
+ if (0 <= inductionVariable_0)
2086
+ do {
2087
+ var ix_0 = inductionVariable_0;
2088
+ inductionVariable_0 = inductionVariable_0 + -1 | 0;
2089
+ parseOptions.e1(new ParserState(output, parserStructure.o58_1.h1(ix_0), inputPosition));
2090
+ }
2091
+ while (0 <= inductionVariable_0);
2092
+ }
2093
+ }
2094
+ }
2095
+ // Inline function 'kotlin.collections.sortByDescending' call
2096
+ if (errors.g1() > 1) {
2097
+ // Inline function 'kotlin.comparisons.compareByDescending' call
2098
+ var tmp_1 = Parser$match$lambda_0;
2099
+ var tmp$ret$8 = new sam$kotlin_Comparator$0(tmp_1);
2100
+ sortWith(errors, tmp$ret$8);
2101
+ }
2102
+ throw new ParseException(errors);
2103
+ }
2104
+ function Parser__match$default_impl_x2xlti($this, input, initialContainer, startIndex, $super) {
2105
+ startIndex = startIndex === VOID ? 0 : startIndex;
2106
+ var tmp;
2107
+ if ($super === VOID) {
2108
+ tmp = Parser__match_impl_nzt83d($this, input, initialContainer, startIndex);
2109
+ } else {
2110
+ var tmp_0 = $super;
2111
+ tmp = (tmp_0 == null ? null : new Parser(tmp_0)).q58.call(new Parser($this), input, initialContainer, startIndex);
2112
+ }
2113
+ return tmp;
2114
+ }
2115
+ function ParserState(output, parserStructure, inputPosition) {
2116
+ this.j58_1 = output;
2117
+ this.k58_1 = parserStructure;
2118
+ this.l58_1 = inputPosition;
2119
+ }
2120
+ function Parser__toString_impl_x33iea($this) {
2121
+ return 'Parser(commands=' + $this.toString() + ')';
2122
+ }
2123
+ function Parser__hashCode_impl_bbxllf($this) {
2124
+ return hashCode($this);
2125
+ }
2126
+ function Parser__equals_impl_djxokv($this, other) {
2127
+ if (!(other instanceof Parser))
2128
+ return false;
2129
+ var tmp0_other_with_cast = other instanceof Parser ? other.m58_1 : THROW_CCE();
2130
+ if (!equals($this, tmp0_other_with_cast))
2131
+ return false;
2132
+ return true;
2133
+ }
2134
+ function sam$kotlin_Comparator$0(function_0) {
2135
+ this.r58_1 = function_0;
2136
+ }
2137
+ protoOf(sam$kotlin_Comparator$0).ic = function (a, b) {
2138
+ return this.r58_1(a, b);
2139
+ };
2140
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
2141
+ return this.ic(a, b);
2142
+ };
2143
+ protoOf(sam$kotlin_Comparator$0).g3 = function () {
2144
+ return this.r58_1;
2145
+ };
2146
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
2147
+ var tmp;
2148
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
2149
+ var tmp_0;
2150
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
2151
+ tmp_0 = equals(this.g3(), other.g3());
2152
+ } else {
2153
+ tmp_0 = false;
2154
+ }
2155
+ tmp = tmp_0;
2156
+ } else {
2157
+ tmp = false;
2158
+ }
2159
+ return tmp;
2160
+ };
2161
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
2162
+ return hashCode(this.g3());
2163
+ };
2164
+ function Parser$match$lambda() {
2165
+ return 'There is more input to consume';
2166
+ }
2167
+ function Parser$match$lambda_0(a, b) {
2168
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
2169
+ var tmp = b.f58_1;
2170
+ var tmp$ret$1 = a.f58_1;
2171
+ return compareValues(tmp, tmp$ret$1);
2172
+ }
2173
+ function Parser(commands) {
2174
+ this.m58_1 = commands;
2175
+ }
2176
+ protoOf(Parser).toString = function () {
2177
+ return Parser__toString_impl_x33iea(this.m58_1);
2178
+ };
2179
+ protoOf(Parser).hashCode = function () {
2180
+ return Parser__hashCode_impl_bbxllf(this.m58_1);
2181
+ };
2182
+ protoOf(Parser).equals = function (other) {
2183
+ return Parser__equals_impl_djxokv(this.m58_1, other);
2184
+ };
1378
2185
  function ParserStructure(operations, followedBy) {
1379
- this.co_1 = operations;
1380
- this.do_1 = followedBy;
2186
+ this.n58_1 = operations;
2187
+ this.o58_1 = followedBy;
1381
2188
  }
1382
2189
  protoOf(ParserStructure).toString = function () {
1383
- return joinToString(this.co_1, ', ') + '(' + joinToString(this.do_1, ';') + ')';
2190
+ return joinToString(this.n58_1, ', ') + '(' + joinToString(this.o58_1, ';') + ')';
1384
2191
  };
2192
+ function ParseException(errors) {
2193
+ Exception_init_$Init$(formatError(errors), this);
2194
+ captureStack(this, ParseException);
2195
+ }
1385
2196
  function concat(_this__u8e3s4) {
1386
2197
  // Inline function 'kotlin.collections.foldRight' call
1387
2198
  var accumulator = new ParserStructure(emptyList(), emptyList());
1388
- if (!_this__u8e3s4.l()) {
1389
- var iterator = _this__u8e3s4.m(_this__u8e3s4.j());
1390
- while (iterator.h3()) {
1391
- var tmp0 = iterator.j3();
2199
+ if (!_this__u8e3s4.r()) {
2200
+ var iterator = _this__u8e3s4.i1(_this__u8e3s4.g1());
2201
+ while (iterator.m4()) {
2202
+ var tmp0 = iterator.o4();
1392
2203
  var acc = accumulator;
1393
2204
  accumulator = concat$append(tmp0, acc);
1394
2205
  }
@@ -1396,22 +2207,30 @@
1396
2207
  var naiveParser = accumulator;
1397
2208
  return concat$simplify(naiveParser, emptyList());
1398
2209
  }
2210
+ function formatError(errors) {
2211
+ if (errors.g1() === 1) {
2212
+ return 'Position ' + errors.h1(0).f58_1 + ': ' + errors.h1(0).g58_1();
2213
+ }
2214
+ var averageMessageLength = 33;
2215
+ var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.g1()));
2216
+ return joinTo(errors, tmp0_buffer, ', ', 'Errors: ', VOID, VOID, VOID, formatError$lambda).toString();
2217
+ }
1399
2218
  function concat$append(_this__u8e3s4, other) {
1400
2219
  var tmp;
1401
- if (_this__u8e3s4.do_1.l()) {
1402
- tmp = new ParserStructure(plus(_this__u8e3s4.co_1, other.co_1), other.do_1);
2220
+ if (_this__u8e3s4.o58_1.r()) {
2221
+ tmp = new ParserStructure(plus(_this__u8e3s4.n58_1, other.n58_1), other.o58_1);
1403
2222
  } else {
1404
2223
  // Inline function 'kotlin.collections.map' call
1405
- var this_0 = _this__u8e3s4.do_1;
2224
+ var this_0 = _this__u8e3s4.o58_1;
1406
2225
  // Inline function 'kotlin.collections.mapTo' call
1407
2226
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1408
- var _iterator__ex2g4s = this_0.g();
1409
- while (_iterator__ex2g4s.h()) {
1410
- var item = _iterator__ex2g4s.i();
2227
+ var _iterator__ex2g4s = this_0.t();
2228
+ while (_iterator__ex2g4s.u()) {
2229
+ var item = _iterator__ex2g4s.v();
1411
2230
  var tmp$ret$0 = concat$append(item, other);
1412
- destination.q(tmp$ret$0);
2231
+ destination.e1(tmp$ret$0);
1413
2232
  }
1414
- tmp = new ParserStructure(_this__u8e3s4.co_1, destination);
2233
+ tmp = new ParserStructure(_this__u8e3s4.n58_1, destination);
1415
2234
  }
1416
2235
  return tmp;
1417
2236
  }
@@ -1420,41 +2239,41 @@
1420
2239
  var newOperations = ArrayList_init_$Create$();
1421
2240
  var currentNumberSpan = null;
1422
2241
  var unconditionalModificationsForTails = toMutableList(unconditionalModifications);
1423
- var _iterator__ex2g4s = _this__u8e3s4.co_1.g();
1424
- while (_iterator__ex2g4s.h()) {
1425
- var op = _iterator__ex2g4s.i();
2242
+ var _iterator__ex2g4s = _this__u8e3s4.n58_1.t();
2243
+ while (_iterator__ex2g4s.u()) {
2244
+ var op = _iterator__ex2g4s.v();
1426
2245
  if (op instanceof NumberSpanParserOperation) {
1427
2246
  if (!(currentNumberSpan == null)) {
1428
- currentNumberSpan.r(op.eo_1);
2247
+ currentNumberSpan.j1(op.s58_1);
1429
2248
  } else {
1430
- currentNumberSpan = toMutableList(op.eo_1);
2249
+ currentNumberSpan = toMutableList(op.s58_1);
1431
2250
  }
1432
2251
  } else {
1433
2252
  if (op instanceof UnconditionalModification) {
1434
- unconditionalModificationsForTails.q(op);
2253
+ unconditionalModificationsForTails.e1(op);
1435
2254
  } else {
1436
2255
  if (!(currentNumberSpan == null)) {
1437
- newOperations.q(new NumberSpanParserOperation(currentNumberSpan));
2256
+ newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
1438
2257
  currentNumberSpan = null;
1439
2258
  }
1440
- newOperations.q(op);
2259
+ newOperations.e1(op);
1441
2260
  }
1442
2261
  }
1443
2262
  }
1444
2263
  // Inline function 'kotlin.collections.flatMap' call
1445
- var tmp0 = _this__u8e3s4.do_1;
2264
+ var tmp0 = _this__u8e3s4.o58_1;
1446
2265
  // Inline function 'kotlin.collections.flatMapTo' call
1447
2266
  var destination = ArrayList_init_$Create$();
1448
- var _iterator__ex2g4s_0 = tmp0.g();
1449
- while (_iterator__ex2g4s_0.h()) {
1450
- var element = _iterator__ex2g4s_0.i();
2267
+ var _iterator__ex2g4s_0 = tmp0.t();
2268
+ while (_iterator__ex2g4s_0.u()) {
2269
+ var element = _iterator__ex2g4s_0.v();
1451
2270
  var simplified = concat$simplify(element, unconditionalModificationsForTails);
1452
2271
  var tmp;
1453
- if (simplified.co_1.l()) {
2272
+ if (simplified.n58_1.r()) {
1454
2273
  // Inline function 'kotlin.collections.ifEmpty' call
1455
- var this_0 = simplified.do_1;
2274
+ var this_0 = simplified.o58_1;
1456
2275
  var tmp_0;
1457
- if (this_0.l()) {
2276
+ if (this_0.r()) {
1458
2277
  tmp_0 = listOf(simplified);
1459
2278
  } else {
1460
2279
  tmp_0 = this_0;
@@ -1468,7 +2287,7 @@
1468
2287
  }
1469
2288
  // Inline function 'kotlin.collections.ifEmpty' call
1470
2289
  var tmp_1;
1471
- if (destination.l()) {
2290
+ if (destination.r()) {
1472
2291
  tmp_1 = listOf(new ParserStructure(unconditionalModificationsForTails, emptyList()));
1473
2292
  } else {
1474
2293
  tmp_1 = destination;
@@ -1483,7 +2302,7 @@
1483
2302
  // Inline function 'kotlin.collections.none' call
1484
2303
  var tmp_3;
1485
2304
  if (isInterface(mergedTails, Collection)) {
1486
- tmp_3 = mergedTails.l();
2305
+ tmp_3 = mergedTails.r();
1487
2306
  } else {
1488
2307
  tmp_3 = false;
1489
2308
  }
@@ -1491,10 +2310,10 @@
1491
2310
  tmp$ret$8 = true;
1492
2311
  break $l$block_0;
1493
2312
  }
1494
- var _iterator__ex2g4s_1 = mergedTails.g();
1495
- while (_iterator__ex2g4s_1.h()) {
1496
- var element_0 = _iterator__ex2g4s_1.i();
1497
- var tmp0_safe_receiver = firstOrNull(element_0.co_1);
2313
+ var _iterator__ex2g4s_1 = mergedTails.t();
2314
+ while (_iterator__ex2g4s_1.u()) {
2315
+ var element_0 = _iterator__ex2g4s_1.v();
2316
+ var tmp0_safe_receiver = firstOrNull(element_0.n58_1);
1498
2317
  var tmp_4;
1499
2318
  if (tmp0_safe_receiver == null) {
1500
2319
  tmp_4 = null;
@@ -1510,28 +2329,28 @@
1510
2329
  tmp$ret$8 = true;
1511
2330
  }
1512
2331
  if (tmp$ret$8) {
1513
- newOperations.q(new NumberSpanParserOperation(currentNumberSpan));
2332
+ newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
1514
2333
  tmp_2 = new ParserStructure(newOperations, mergedTails);
1515
2334
  } else {
1516
2335
  // Inline function 'kotlin.collections.map' call
1517
2336
  // Inline function 'kotlin.collections.mapTo' call
1518
2337
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
1519
- var _iterator__ex2g4s_2 = mergedTails.g();
1520
- while (_iterator__ex2g4s_2.h()) {
1521
- var item = _iterator__ex2g4s_2.i();
1522
- var firstOperation = firstOrNull(item.co_1);
2338
+ var _iterator__ex2g4s_2 = mergedTails.t();
2339
+ while (_iterator__ex2g4s_2.u()) {
2340
+ var item = _iterator__ex2g4s_2.v();
2341
+ var firstOperation = firstOrNull(item.n58_1);
1523
2342
  var tmp_5;
1524
2343
  if (firstOperation instanceof NumberSpanParserOperation) {
1525
- tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.eo_1))), drop(item.co_1, 1)), item.do_1);
2344
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.s58_1))), drop(item.n58_1, 1)), item.o58_1);
1526
2345
  } else {
1527
2346
  if (firstOperation == null) {
1528
- tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.do_1);
2347
+ tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.o58_1);
1529
2348
  } else {
1530
- tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.co_1), item.do_1);
2349
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.n58_1), item.o58_1);
1531
2350
  }
1532
2351
  }
1533
2352
  var tmp$ret$12 = tmp_5;
1534
- destination_0.q(tmp$ret$12);
2353
+ destination_0.e1(tmp$ret$12);
1535
2354
  }
1536
2355
  var newTails = destination_0;
1537
2356
  tmp_2 = new ParserStructure(newOperations, newTails);
@@ -1539,6 +2358,9 @@
1539
2358
  }
1540
2359
  return tmp_2;
1541
2360
  }
2361
+ function formatError$lambda(it) {
2362
+ return 'position ' + it.f58_1 + ": '" + it.g58_1() + "'";
2363
+ }
1542
2364
  function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, withMinus) {
1543
2365
  withMinus = withMinus === VOID ? false : withMinus;
1544
2366
  var minNumberLength = (minDigits == null ? 1 : minDigits) + (withMinus ? 1 : 0) | 0;
@@ -1579,46 +2401,61 @@
1579
2401
  }
1580
2402
  function _get_whatThisExpects__4pg11j($this) {
1581
2403
  // Inline function 'kotlin.collections.map' call
1582
- var this_0 = $this.eo_1;
2404
+ var this_0 = $this.s58_1;
1583
2405
  // Inline function 'kotlin.collections.mapTo' call
1584
2406
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1585
- var _iterator__ex2g4s = this_0.g();
1586
- while (_iterator__ex2g4s.h()) {
1587
- var item = _iterator__ex2g4s.i();
2407
+ var _iterator__ex2g4s = this_0.t();
2408
+ while (_iterator__ex2g4s.u()) {
2409
+ var item = _iterator__ex2g4s.v();
1588
2410
  var length = item.a();
1589
- var tmp$ret$0 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.vn_1);
1590
- destination.q(tmp$ret$0);
2411
+ var tmp$ret$0 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.t57_1);
2412
+ destination.e1(tmp$ret$0);
1591
2413
  }
1592
2414
  var consumerLengths = destination;
1593
2415
  var tmp;
1594
- if ($this.go_1) {
1595
- tmp = 'a number with at least ' + $this.fo_1 + ' digits: ' + toString(consumerLengths);
2416
+ if ($this.u58_1) {
2417
+ tmp = 'a number with at least ' + $this.t58_1 + ' digits: ' + toString(consumerLengths);
1596
2418
  } else {
1597
- tmp = 'a number with exactly ' + $this.fo_1 + ' digits: ' + toString(consumerLengths);
2419
+ tmp = 'a number with exactly ' + $this.t58_1 + ' digits: ' + toString(consumerLengths);
1598
2420
  }
1599
2421
  return tmp;
1600
2422
  }
2423
+ function NumberSpanParserOperation$consume$lambda(this$0) {
2424
+ return function () {
2425
+ return 'Unexpected end of input: yet to parse ' + _get_whatThisExpects__4pg11j(this$0);
2426
+ };
2427
+ }
2428
+ function NumberSpanParserOperation$consume$lambda_0($digitsInRow, this$0) {
2429
+ return function () {
2430
+ return 'Only found ' + $digitsInRow._v + ' digits in a row, but need to parse ' + _get_whatThisExpects__4pg11j(this$0);
2431
+ };
2432
+ }
2433
+ function NumberSpanParserOperation$consume$lambda_1($numberString, this$0, $i, $error) {
2434
+ return function () {
2435
+ return "Can not interpret the string '" + $numberString + "' as " + this$0.s58_1.h1($i).t57_1 + ': ' + $error.u57();
2436
+ };
2437
+ }
1601
2438
  function NumberSpanParserOperation(consumers) {
1602
- this.eo_1 = consumers;
2439
+ this.s58_1 = consumers;
1603
2440
  var tmp = this;
1604
2441
  // Inline function 'kotlin.collections.sumOf' call
1605
2442
  var sum = 0;
1606
- var _iterator__ex2g4s = this.eo_1.g();
1607
- while (_iterator__ex2g4s.h()) {
1608
- var element = _iterator__ex2g4s.i();
2443
+ var _iterator__ex2g4s = this.s58_1.t();
2444
+ while (_iterator__ex2g4s.u()) {
2445
+ var element = _iterator__ex2g4s.v();
1609
2446
  var tmp_0 = sum;
1610
2447
  var tmp0_elvis_lhs = element.a();
1611
2448
  sum = tmp_0 + (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
1612
2449
  }
1613
- tmp.fo_1 = sum;
2450
+ tmp.t58_1 = sum;
1614
2451
  var tmp_1 = this;
1615
- var tmp0 = this.eo_1;
2452
+ var tmp0 = this.s58_1;
1616
2453
  var tmp$ret$2;
1617
2454
  $l$block_0: {
1618
2455
  // Inline function 'kotlin.collections.any' call
1619
2456
  var tmp_2;
1620
2457
  if (isInterface(tmp0, Collection)) {
1621
- tmp_2 = tmp0.l();
2458
+ tmp_2 = tmp0.r();
1622
2459
  } else {
1623
2460
  tmp_2 = false;
1624
2461
  }
@@ -1626,9 +2463,9 @@
1626
2463
  tmp$ret$2 = false;
1627
2464
  break $l$block_0;
1628
2465
  }
1629
- var _iterator__ex2g4s_0 = tmp0.g();
1630
- while (_iterator__ex2g4s_0.h()) {
1631
- var element_0 = _iterator__ex2g4s_0.i();
2466
+ var _iterator__ex2g4s_0 = tmp0.t();
2467
+ while (_iterator__ex2g4s_0.u()) {
2468
+ var element_0 = _iterator__ex2g4s_0.v();
1632
2469
  if (element_0.a() == null) {
1633
2470
  tmp$ret$2 = true;
1634
2471
  break $l$block_0;
@@ -1636,14 +2473,14 @@
1636
2473
  }
1637
2474
  tmp$ret$2 = false;
1638
2475
  }
1639
- tmp_1.go_1 = tmp$ret$2;
1640
- var tmp0_0 = this.eo_1;
2476
+ tmp_1.u58_1 = tmp$ret$2;
2477
+ var tmp0_0 = this.s58_1;
1641
2478
  var tmp$ret$4;
1642
2479
  $l$block_2: {
1643
2480
  // Inline function 'kotlin.collections.all' call
1644
2481
  var tmp_3;
1645
2482
  if (isInterface(tmp0_0, Collection)) {
1646
- tmp_3 = tmp0_0.l();
2483
+ tmp_3 = tmp0_0.r();
1647
2484
  } else {
1648
2485
  tmp_3 = false;
1649
2486
  }
@@ -1651,9 +2488,9 @@
1651
2488
  tmp$ret$4 = true;
1652
2489
  break $l$block_2;
1653
2490
  }
1654
- var _iterator__ex2g4s_1 = tmp0_0.g();
1655
- while (_iterator__ex2g4s_1.h()) {
1656
- var element_1 = _iterator__ex2g4s_1.i();
2491
+ var _iterator__ex2g4s_1 = tmp0_0.t();
2492
+ while (_iterator__ex2g4s_1.u()) {
2493
+ var element_1 = _iterator__ex2g4s_1.v();
1657
2494
  var tmp0_elvis_lhs_0 = element_1.a();
1658
2495
  if (!((tmp0_elvis_lhs_0 == null ? 2147483647 : tmp0_elvis_lhs_0) > 0)) {
1659
2496
  tmp$ret$4 = false;
@@ -1668,13 +2505,13 @@
1668
2505
  var message = 'Failed requirement.';
1669
2506
  throw IllegalArgumentException_init_$Create$(toString(message));
1670
2507
  }
1671
- var tmp0_1 = this.eo_1;
2508
+ var tmp0_1 = this.s58_1;
1672
2509
  var tmp$ret$9;
1673
2510
  $l$block_3: {
1674
2511
  // Inline function 'kotlin.collections.count' call
1675
2512
  var tmp_4;
1676
2513
  if (isInterface(tmp0_1, Collection)) {
1677
- tmp_4 = tmp0_1.l();
2514
+ tmp_4 = tmp0_1.r();
1678
2515
  } else {
1679
2516
  tmp_4 = false;
1680
2517
  }
@@ -1683,9 +2520,9 @@
1683
2520
  break $l$block_3;
1684
2521
  }
1685
2522
  var count = 0;
1686
- var _iterator__ex2g4s_2 = tmp0_1.g();
1687
- while (_iterator__ex2g4s_2.h()) {
1688
- var element_2 = _iterator__ex2g4s_2.i();
2523
+ var _iterator__ex2g4s_2 = tmp0_1.t();
2524
+ while (_iterator__ex2g4s_2.u()) {
2525
+ var element_2 = _iterator__ex2g4s_2.v();
1689
2526
  if (element_2.a() == null) {
1690
2527
  count = count + 1 | 0;
1691
2528
  checkCountOverflow(count);
@@ -1696,65 +2533,137 @@
1696
2533
  // Inline function 'kotlin.require' call
1697
2534
  if (!(tmp$ret$9 <= 1)) {
1698
2535
  // Inline function 'kotlin.collections.filter' call
1699
- var tmp0_2 = this.eo_1;
2536
+ var tmp0_2 = this.s58_1;
1700
2537
  // Inline function 'kotlin.collections.filterTo' call
1701
2538
  var destination = ArrayList_init_$Create$();
1702
- var _iterator__ex2g4s_3 = tmp0_2.g();
1703
- while (_iterator__ex2g4s_3.h()) {
1704
- var element_3 = _iterator__ex2g4s_3.i();
2539
+ var _iterator__ex2g4s_3 = tmp0_2.t();
2540
+ while (_iterator__ex2g4s_3.u()) {
2541
+ var element_3 = _iterator__ex2g4s_3.v();
1705
2542
  if (element_3.a() == null) {
1706
- destination.q(element_3);
2543
+ destination.e1(element_3);
1707
2544
  }
1708
2545
  }
1709
2546
  // Inline function 'kotlin.collections.map' call
1710
2547
  // Inline function 'kotlin.collections.mapTo' call
1711
2548
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
1712
- var _iterator__ex2g4s_4 = destination.g();
1713
- while (_iterator__ex2g4s_4.h()) {
1714
- var item = _iterator__ex2g4s_4.i();
1715
- var tmp$ret$14 = item.vn_1;
1716
- destination_0.q(tmp$ret$14);
2549
+ var _iterator__ex2g4s_4 = destination.t();
2550
+ while (_iterator__ex2g4s_4.u()) {
2551
+ var item = _iterator__ex2g4s_4.v();
2552
+ var tmp$ret$14 = item.t57_1;
2553
+ destination_0.e1(tmp$ret$14);
1717
2554
  }
1718
2555
  var fieldNames = destination_0;
1719
2556
  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.";
1720
2557
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1721
2558
  }
1722
2559
  }
2560
+ protoOf(NumberSpanParserOperation).p58 = function (storage, input, startIndex) {
2561
+ if ((startIndex + this.t58_1 | 0) > charSequenceLength(input)) {
2562
+ var tmp = Companion_instance_6;
2563
+ return tmp.i58(startIndex, NumberSpanParserOperation$consume$lambda(this));
2564
+ }
2565
+ var digitsInRow = {_v: 0};
2566
+ while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) && isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0))) {
2567
+ digitsInRow._v = digitsInRow._v + 1 | 0;
2568
+ digitsInRow._v;
2569
+ }
2570
+ if (digitsInRow._v < this.t58_1) {
2571
+ var tmp_0 = Companion_instance_6;
2572
+ return tmp_0.i58(startIndex, NumberSpanParserOperation$consume$lambda_0(digitsInRow, this));
2573
+ }
2574
+ var index = startIndex;
2575
+ var inductionVariable = 0;
2576
+ var last = this.s58_1.g1() - 1 | 0;
2577
+ if (inductionVariable <= last)
2578
+ do {
2579
+ var i = inductionVariable;
2580
+ inductionVariable = inductionVariable + 1 | 0;
2581
+ var tmp0_elvis_lhs = this.s58_1.h1(i).a();
2582
+ var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.t58_1 | 0) + 1 | 0 : tmp0_elvis_lhs;
2583
+ var error = this.s58_1.h1(i).r57(storage, input, index, index + length | 0);
2584
+ if (!(error == null)) {
2585
+ var tmp2 = index;
2586
+ // Inline function 'kotlin.text.substring' call
2587
+ var endIndex = index + length | 0;
2588
+ var numberString = toString(charSequenceSubSequence(input, tmp2, endIndex));
2589
+ var tmp_1 = Companion_instance_6;
2590
+ var tmp_2 = index;
2591
+ return tmp_1.i58(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
2592
+ }
2593
+ index = index + length | 0;
2594
+ }
2595
+ while (inductionVariable <= last);
2596
+ return Companion_instance_6.h58(index);
2597
+ };
1723
2598
  protoOf(NumberSpanParserOperation).toString = function () {
1724
2599
  return _get_whatThisExpects__4pg11j(this);
1725
2600
  };
1726
2601
  function SignedIntParser(minDigits, maxDigits, spacePadding, setter, name, plusOnExceedsWidth) {
1727
2602
  var parsers = mutableListOf([spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, true)]);
1728
2603
  if (!(plusOnExceedsWidth == null)) {
1729
- parsers.q(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
1730
- parsers.q(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
2604
+ parsers.e1(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
2605
+ parsers.e1(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
1731
2606
  } else {
1732
- parsers.q(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
2607
+ parsers.e1(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
1733
2608
  }
1734
2609
  return new ParserStructure(emptyList(), parsers);
1735
2610
  }
2611
+ function PlainStringParserOperation$consume$lambda(this$0) {
2612
+ return function () {
2613
+ return "Unexpected end of input: yet to parse '" + this$0.v58_1 + "'";
2614
+ };
2615
+ }
2616
+ function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex, $i) {
2617
+ return function () {
2618
+ var tmp0 = $input;
2619
+ var tmp2 = $startIndex;
2620
+ // Inline function 'kotlin.text.substring' call
2621
+ var endIndex = ($startIndex + $i | 0) + 1 | 0;
2622
+ var tmp$ret$0 = toString(charSequenceSubSequence(tmp0, tmp2, endIndex));
2623
+ return 'Expected ' + this$0.v58_1 + ' but got ' + tmp$ret$0;
2624
+ };
2625
+ }
1736
2626
  function PlainStringParserOperation(string) {
1737
- this.ho_1 = string;
2627
+ this.v58_1 = string;
1738
2628
  // Inline function 'kotlin.text.isNotEmpty' call
1739
- var this_0 = this.ho_1;
2629
+ var this_0 = this.v58_1;
1740
2630
  // Inline function 'kotlin.require' call
1741
2631
  if (!(charSequenceLength(this_0) > 0)) {
1742
2632
  var message = 'Empty string is not allowed';
1743
2633
  throw IllegalArgumentException_init_$Create$(toString(message));
1744
2634
  }
1745
2635
  // Inline function 'kotlin.require' call
1746
- if (!!isAsciiDigit(charCodeAt(this.ho_1, 0))) {
1747
- var message_0 = "String '" + this.ho_1 + "' starts with a digit";
2636
+ if (!!isAsciiDigit(charCodeAt(this.v58_1, 0))) {
2637
+ var message_0 = "String '" + this.v58_1 + "' starts with a digit";
1748
2638
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1749
2639
  }
1750
2640
  // Inline function 'kotlin.require' call
1751
- if (!!isAsciiDigit(charCodeAt(this.ho_1, this.ho_1.length - 1 | 0))) {
1752
- var message_1 = "String '" + this.ho_1 + "' ends with a digit";
2641
+ if (!!isAsciiDigit(charCodeAt(this.v58_1, this.v58_1.length - 1 | 0))) {
2642
+ var message_1 = "String '" + this.v58_1 + "' ends with a digit";
1753
2643
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1754
2644
  }
1755
2645
  }
2646
+ protoOf(PlainStringParserOperation).p58 = function (storage, input, startIndex) {
2647
+ if ((startIndex + this.v58_1.length | 0) > charSequenceLength(input)) {
2648
+ var tmp = Companion_instance_6;
2649
+ return tmp.i58(startIndex, PlainStringParserOperation$consume$lambda(this));
2650
+ }
2651
+ var inductionVariable = 0;
2652
+ var last = charSequenceLength(this.v58_1) - 1 | 0;
2653
+ if (inductionVariable <= last)
2654
+ do {
2655
+ var i = inductionVariable;
2656
+ inductionVariable = inductionVariable + 1 | 0;
2657
+ if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.v58_1, i))) {
2658
+ var tmp_0 = Companion_instance_6;
2659
+ return tmp_0.i58(startIndex, PlainStringParserOperation$consume$lambda_0(this, input, startIndex, i));
2660
+ }
2661
+ }
2662
+ while (inductionVariable <= last);
2663
+ return Companion_instance_6.h58(startIndex + this.v58_1.length | 0);
2664
+ };
1756
2665
  protoOf(PlainStringParserOperation).toString = function () {
1757
- return "'" + this.ho_1 + "'";
2666
+ return "'" + this.v58_1 + "'";
1758
2667
  };
1759
2668
  function UnconditionalModification() {
1760
2669
  }
@@ -1768,10 +2677,10 @@
1768
2677
  // Inline function 'kotlin.apply' call
1769
2678
  var this_0 = ArrayList_init_$Create$();
1770
2679
  if ($withMinus) {
1771
- this_0.q(new PlainStringParserOperation('-'));
2680
+ this_0.e1(new PlainStringParserOperation('-'));
1772
2681
  }
1773
- this_0.q(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
1774
- var tmp$ret$4 = this_0.i2();
2682
+ this_0.e1(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
2683
+ var tmp$ret$4 = this_0.j3();
1775
2684
  return new ParserStructure(tmp$ret$4, emptyList());
1776
2685
  }
1777
2686
  function get_POWERS_OF_TEN() {
@@ -1790,12 +2699,366 @@
1790
2699
  function isAsciiDigit(_this__u8e3s4) {
1791
2700
  return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
1792
2701
  }
2702
+ function asciiDigitToInt(_this__u8e3s4) {
2703
+ return Char__minus_impl_a2frrh(_this__u8e3s4, _Char___init__impl__6a9atx(48));
2704
+ }
2705
+ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2706
+ return buildClassSerialDescriptor('kotlinx.datetime.TimeBased', [], TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2707
+ }
2708
+ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2709
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2710
+ var elementName = 'nanoseconds';
2711
+ var annotations = emptyList();
2712
+ // Inline function 'kotlinx.serialization.serializer' call
2713
+ // Inline function 'kotlinx.serialization.internal.cast' call
2714
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().gb(), arrayOf([]), false));
2715
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r1q();
2716
+ $this$buildClassSerialDescriptor.b1t(elementName, descriptor, annotations, false);
2717
+ return Unit_instance;
2718
+ }
2719
+ function TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw() {
2720
+ return function (p0) {
2721
+ return p0.r1q();
2722
+ };
2723
+ }
2724
+ function TimeBasedDateTimeUnitSerializer() {
2725
+ TimeBasedDateTimeUnitSerializer_instance = this;
2726
+ var tmp = this;
2727
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2728
+ tmp.w58_1 = lazy_0(tmp_0, TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2729
+ }
2730
+ protoOf(TimeBasedDateTimeUnitSerializer).r1q = function () {
2731
+ var tmp0 = this.w58_1;
2732
+ var tmp = KProperty1;
2733
+ // Inline function 'kotlin.getValue' call
2734
+ getPropertyCallableRef('descriptor', 1, tmp, TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw(), null);
2735
+ return tmp0.m1();
2736
+ };
2737
+ protoOf(TimeBasedDateTimeUnitSerializer).x58 = function (encoder, value) {
2738
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2739
+ var descriptor = this.r1q();
2740
+ var composite = encoder.f1u(descriptor);
2741
+ composite.q1v(TimeBasedDateTimeUnitSerializer_getInstance().r1q(), 0, value.z51_1);
2742
+ composite.g1u(descriptor);
2743
+ };
2744
+ protoOf(TimeBasedDateTimeUnitSerializer).s1q = function (encoder, value) {
2745
+ return this.x58(encoder, value instanceof TimeBased ? value : THROW_CCE());
2746
+ };
2747
+ protoOf(TimeBasedDateTimeUnitSerializer).t1q = function (decoder) {
2748
+ var seen = {_v: false};
2749
+ var nanoseconds = {_v: 0n};
2750
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2751
+ var descriptor = this.r1q();
2752
+ var composite = decoder.f1u(descriptor);
2753
+ if (composite.v1u()) {
2754
+ nanoseconds._v = composite.l1u(TimeBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2755
+ seen._v = true;
2756
+ } else {
2757
+ loop: while (true) {
2758
+ var elementIndex = composite.w1u(TimeBasedDateTimeUnitSerializer_getInstance().r1q());
2759
+ switch (elementIndex) {
2760
+ case 0:
2761
+ nanoseconds._v = composite.l1u(TimeBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2762
+ seen._v = true;
2763
+ break;
2764
+ case -1:
2765
+ break loop;
2766
+ default:
2767
+ throwUnknownIndexException(elementIndex);
2768
+ break;
2769
+ }
2770
+ }
2771
+ }
2772
+ var result = Unit_instance;
2773
+ composite.g1u(descriptor);
2774
+ if (!seen._v)
2775
+ throw MissingFieldException_init_$Create$('nanoseconds', this.r1q().s1r());
2776
+ return new TimeBased(nanoseconds._v);
2777
+ };
2778
+ var TimeBasedDateTimeUnitSerializer_instance;
2779
+ function TimeBasedDateTimeUnitSerializer_getInstance() {
2780
+ if (TimeBasedDateTimeUnitSerializer_instance == null)
2781
+ new TimeBasedDateTimeUnitSerializer();
2782
+ return TimeBasedDateTimeUnitSerializer_instance;
2783
+ }
2784
+ function _get_impl__d88w17($this) {
2785
+ var tmp0 = $this.y58_1;
2786
+ var tmp = KProperty1;
2787
+ // Inline function 'kotlin.getValue' call
2788
+ getPropertyCallableRef('impl', 1, tmp, DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs(), null);
2789
+ return tmp0.m1();
2790
+ }
2791
+ function DateBasedDateTimeUnitSerializer$impl$delegate$lambda() {
2792
+ var tmp = getKClass(DateBased);
2793
+ // Inline function 'kotlin.arrayOf' call
2794
+ // Inline function 'kotlin.js.unsafeCast' call
2795
+ // Inline function 'kotlin.js.asDynamic' call
2796
+ var tmp_0 = [getKClass(DayBased), getKClass(MonthBased)];
2797
+ // Inline function 'kotlin.arrayOf' call
2798
+ // Inline function 'kotlin.js.unsafeCast' call
2799
+ // Inline function 'kotlin.js.asDynamic' call
2800
+ var tmp$ret$5 = [DayBasedDateTimeUnitSerializer_getInstance(), MonthBasedDateTimeUnitSerializer_getInstance()];
2801
+ return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit.DateBased', tmp, tmp_0, tmp$ret$5);
2802
+ }
2803
+ function DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs() {
2804
+ return function (p0) {
2805
+ return _get_impl__d88w17(p0);
2806
+ };
2807
+ }
2808
+ function DateBasedDateTimeUnitSerializer() {
2809
+ DateBasedDateTimeUnitSerializer_instance = this;
2810
+ AbstractPolymorphicSerializer.call(this);
2811
+ var tmp = this;
2812
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2813
+ tmp.y58_1 = lazy_0(tmp_0, DateBasedDateTimeUnitSerializer$impl$delegate$lambda);
2814
+ }
2815
+ protoOf(DateBasedDateTimeUnitSerializer).u1q = function (decoder, klassName) {
2816
+ return _get_impl__d88w17(this).u1q(decoder, klassName);
2817
+ };
2818
+ protoOf(DateBasedDateTimeUnitSerializer).z58 = function (encoder, value) {
2819
+ return _get_impl__d88w17(this).w1q(encoder, value);
2820
+ };
2821
+ protoOf(DateBasedDateTimeUnitSerializer).w1q = function (encoder, value) {
2822
+ return this.z58(encoder, value instanceof DateBased ? value : THROW_CCE());
2823
+ };
2824
+ protoOf(DateBasedDateTimeUnitSerializer).v1q = function () {
2825
+ return getKClass(DateBased);
2826
+ };
2827
+ protoOf(DateBasedDateTimeUnitSerializer).r1q = function () {
2828
+ return _get_impl__d88w17(this).r1q();
2829
+ };
2830
+ var DateBasedDateTimeUnitSerializer_instance;
2831
+ function DateBasedDateTimeUnitSerializer_getInstance() {
2832
+ if (DateBasedDateTimeUnitSerializer_instance == null)
2833
+ new DateBasedDateTimeUnitSerializer();
2834
+ return DateBasedDateTimeUnitSerializer_instance;
2835
+ }
2836
+ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2837
+ return buildClassSerialDescriptor('kotlinx.datetime.DayBased', [], DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2838
+ }
2839
+ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2840
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2841
+ var annotations = emptyList();
2842
+ // Inline function 'kotlinx.serialization.serializer' call
2843
+ // Inline function 'kotlinx.serialization.internal.cast' call
2844
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().fb(), arrayOf([]), false));
2845
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r1q();
2846
+ $this$buildClassSerialDescriptor.b1t('days', descriptor, annotations, false);
2847
+ return Unit_instance;
2848
+ }
2849
+ function DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3() {
2850
+ return function (p0) {
2851
+ return p0.r1q();
2852
+ };
2853
+ }
2854
+ function DayBasedDateTimeUnitSerializer() {
2855
+ DayBasedDateTimeUnitSerializer_instance = this;
2856
+ var tmp = this;
2857
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2858
+ tmp.a59_1 = lazy_0(tmp_0, DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2859
+ }
2860
+ protoOf(DayBasedDateTimeUnitSerializer).r1q = function () {
2861
+ var tmp0 = this.a59_1;
2862
+ var tmp = KProperty1;
2863
+ // Inline function 'kotlin.getValue' call
2864
+ getPropertyCallableRef('descriptor', 1, tmp, DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3(), null);
2865
+ return tmp0.m1();
2866
+ };
2867
+ protoOf(DayBasedDateTimeUnitSerializer).b59 = function (encoder, value) {
2868
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2869
+ var descriptor = this.r1q();
2870
+ var composite = encoder.f1u(descriptor);
2871
+ composite.p1v(DayBasedDateTimeUnitSerializer_getInstance().r1q(), 0, value.f52_1);
2872
+ composite.g1u(descriptor);
2873
+ };
2874
+ protoOf(DayBasedDateTimeUnitSerializer).s1q = function (encoder, value) {
2875
+ return this.b59(encoder, value instanceof DayBased ? value : THROW_CCE());
2876
+ };
2877
+ protoOf(DayBasedDateTimeUnitSerializer).t1q = function (decoder) {
2878
+ var seen = {_v: false};
2879
+ var days = {_v: 0};
2880
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2881
+ var descriptor = this.r1q();
2882
+ var composite = decoder.f1u(descriptor);
2883
+ if (composite.v1u()) {
2884
+ days._v = composite.k1u(DayBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2885
+ seen._v = true;
2886
+ } else {
2887
+ loop: while (true) {
2888
+ var elementIndex = composite.w1u(DayBasedDateTimeUnitSerializer_getInstance().r1q());
2889
+ switch (elementIndex) {
2890
+ case 0:
2891
+ days._v = composite.k1u(DayBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2892
+ seen._v = true;
2893
+ break;
2894
+ case -1:
2895
+ break loop;
2896
+ default:
2897
+ throwUnknownIndexException(elementIndex);
2898
+ break;
2899
+ }
2900
+ }
2901
+ }
2902
+ var result = Unit_instance;
2903
+ composite.g1u(descriptor);
2904
+ if (!seen._v)
2905
+ throw MissingFieldException_init_$Create$('days', this.r1q().s1r());
2906
+ return new DayBased(days._v);
2907
+ };
2908
+ var DayBasedDateTimeUnitSerializer_instance;
2909
+ function DayBasedDateTimeUnitSerializer_getInstance() {
2910
+ if (DayBasedDateTimeUnitSerializer_instance == null)
2911
+ new DayBasedDateTimeUnitSerializer();
2912
+ return DayBasedDateTimeUnitSerializer_instance;
2913
+ }
2914
+ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2915
+ return buildClassSerialDescriptor('kotlinx.datetime.MonthBased', [], MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2916
+ }
2917
+ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2918
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2919
+ var annotations = emptyList();
2920
+ // Inline function 'kotlinx.serialization.serializer' call
2921
+ // Inline function 'kotlinx.serialization.internal.cast' call
2922
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().fb(), arrayOf([]), false));
2923
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r1q();
2924
+ $this$buildClassSerialDescriptor.b1t('months', descriptor, annotations, false);
2925
+ return Unit_instance;
2926
+ }
2927
+ function MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn() {
2928
+ return function (p0) {
2929
+ return p0.r1q();
2930
+ };
2931
+ }
2932
+ function MonthBasedDateTimeUnitSerializer() {
2933
+ MonthBasedDateTimeUnitSerializer_instance = this;
2934
+ var tmp = this;
2935
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2936
+ tmp.c59_1 = lazy_0(tmp_0, MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2937
+ }
2938
+ protoOf(MonthBasedDateTimeUnitSerializer).r1q = function () {
2939
+ var tmp0 = this.c59_1;
2940
+ var tmp = KProperty1;
2941
+ // Inline function 'kotlin.getValue' call
2942
+ getPropertyCallableRef('descriptor', 1, tmp, MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn(), null);
2943
+ return tmp0.m1();
2944
+ };
2945
+ protoOf(MonthBasedDateTimeUnitSerializer).d59 = function (encoder, value) {
2946
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2947
+ var descriptor = this.r1q();
2948
+ var composite = encoder.f1u(descriptor);
2949
+ composite.p1v(MonthBasedDateTimeUnitSerializer_getInstance().r1q(), 0, value.g52_1);
2950
+ composite.g1u(descriptor);
2951
+ };
2952
+ protoOf(MonthBasedDateTimeUnitSerializer).s1q = function (encoder, value) {
2953
+ return this.d59(encoder, value instanceof MonthBased ? value : THROW_CCE());
2954
+ };
2955
+ protoOf(MonthBasedDateTimeUnitSerializer).t1q = function (decoder) {
2956
+ var seen = {_v: false};
2957
+ var months = {_v: 0};
2958
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2959
+ var descriptor = this.r1q();
2960
+ var composite = decoder.f1u(descriptor);
2961
+ if (composite.v1u()) {
2962
+ months._v = composite.k1u(MonthBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2963
+ seen._v = true;
2964
+ } else {
2965
+ loop: while (true) {
2966
+ var elementIndex = composite.w1u(MonthBasedDateTimeUnitSerializer_getInstance().r1q());
2967
+ switch (elementIndex) {
2968
+ case 0:
2969
+ months._v = composite.k1u(MonthBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2970
+ seen._v = true;
2971
+ break;
2972
+ case -1:
2973
+ break loop;
2974
+ default:
2975
+ throwUnknownIndexException(elementIndex);
2976
+ break;
2977
+ }
2978
+ }
2979
+ }
2980
+ var result = Unit_instance;
2981
+ composite.g1u(descriptor);
2982
+ if (!seen._v)
2983
+ throw MissingFieldException_init_$Create$('months', this.r1q().s1r());
2984
+ return new MonthBased(months._v);
2985
+ };
2986
+ var MonthBasedDateTimeUnitSerializer_instance;
2987
+ function MonthBasedDateTimeUnitSerializer_getInstance() {
2988
+ if (MonthBasedDateTimeUnitSerializer_instance == null)
2989
+ new MonthBasedDateTimeUnitSerializer();
2990
+ return MonthBasedDateTimeUnitSerializer_instance;
2991
+ }
2992
+ function _get_impl__d88w17_0($this) {
2993
+ var tmp0 = $this.e59_1;
2994
+ var tmp = KProperty1;
2995
+ // Inline function 'kotlin.getValue' call
2996
+ getPropertyCallableRef('impl', 1, tmp, DateTimeUnitSerializer$_get_impl_$ref_2y1hvx(), null);
2997
+ return tmp0.m1();
2998
+ }
2999
+ function DateTimeUnitSerializer$impl$delegate$lambda() {
3000
+ var tmp = getKClass(DateTimeUnit);
3001
+ // Inline function 'kotlin.arrayOf' call
3002
+ // Inline function 'kotlin.js.unsafeCast' call
3003
+ // Inline function 'kotlin.js.asDynamic' call
3004
+ var tmp_0 = [getKClass(DayBased), getKClass(MonthBased), getKClass(TimeBased)];
3005
+ // Inline function 'kotlin.arrayOf' call
3006
+ // Inline function 'kotlin.js.unsafeCast' call
3007
+ // Inline function 'kotlin.js.asDynamic' call
3008
+ var tmp$ret$5 = [DayBasedDateTimeUnitSerializer_getInstance(), MonthBasedDateTimeUnitSerializer_getInstance(), TimeBasedDateTimeUnitSerializer_getInstance()];
3009
+ return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit', tmp, tmp_0, tmp$ret$5);
3010
+ }
3011
+ function DateTimeUnitSerializer$_get_impl_$ref_2y1hvx() {
3012
+ return function (p0) {
3013
+ return _get_impl__d88w17_0(p0);
3014
+ };
3015
+ }
3016
+ function DateTimeUnitSerializer() {
3017
+ DateTimeUnitSerializer_instance = this;
3018
+ AbstractPolymorphicSerializer.call(this);
3019
+ var tmp = this;
3020
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
3021
+ tmp.e59_1 = lazy_0(tmp_0, DateTimeUnitSerializer$impl$delegate$lambda);
3022
+ }
3023
+ protoOf(DateTimeUnitSerializer).u1q = function (decoder, klassName) {
3024
+ return _get_impl__d88w17_0(this).u1q(decoder, klassName);
3025
+ };
3026
+ protoOf(DateTimeUnitSerializer).f59 = function (encoder, value) {
3027
+ return _get_impl__d88w17_0(this).w1q(encoder, value);
3028
+ };
3029
+ protoOf(DateTimeUnitSerializer).w1q = function (encoder, value) {
3030
+ return this.f59(encoder, value instanceof DateTimeUnit ? value : THROW_CCE());
3031
+ };
3032
+ protoOf(DateTimeUnitSerializer).v1q = function () {
3033
+ return getKClass(DateTimeUnit);
3034
+ };
3035
+ protoOf(DateTimeUnitSerializer).r1q = function () {
3036
+ return _get_impl__d88w17_0(this).r1q();
3037
+ };
3038
+ var DateTimeUnitSerializer_instance;
3039
+ function DateTimeUnitSerializer_getInstance() {
3040
+ if (DateTimeUnitSerializer_instance == null)
3041
+ new DateTimeUnitSerializer();
3042
+ return DateTimeUnitSerializer_instance;
3043
+ }
3044
+ function throwUnknownIndexException(index) {
3045
+ throw SerializationException_init_$Create$('An unknown field for index ' + index);
3046
+ }
1793
3047
  function LocalDateSerializer() {
1794
3048
  LocalDateSerializer_instance = this;
1795
- this.io_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
3049
+ this.g59_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
1796
3050
  }
1797
- protoOf(LocalDateSerializer).qd = function () {
1798
- return this.io_1;
3051
+ protoOf(LocalDateSerializer).r1q = function () {
3052
+ return this.g59_1;
3053
+ };
3054
+ protoOf(LocalDateSerializer).t1q = function (decoder) {
3055
+ return Companion_getInstance_7().l59(decoder.a1u());
3056
+ };
3057
+ protoOf(LocalDateSerializer).m59 = function (encoder, value) {
3058
+ encoder.j1v(value.toString());
3059
+ };
3060
+ protoOf(LocalDateSerializer).s1q = function (encoder, value) {
3061
+ return this.m59(encoder, value instanceof LocalDate ? value : THROW_CCE());
1799
3062
  };
1800
3063
  var LocalDateSerializer_instance;
1801
3064
  function LocalDateSerializer_getInstance() {
@@ -1803,11 +3066,129 @@
1803
3066
  new LocalDateSerializer();
1804
3067
  return LocalDateSerializer_instance;
1805
3068
  }
3069
+ function YearMonthSerializer() {
3070
+ YearMonthSerializer_instance = this;
3071
+ this.n59_1 = PrimitiveSerialDescriptor('kotlinx.datetime.YearMonth', STRING_getInstance());
3072
+ }
3073
+ protoOf(YearMonthSerializer).r1q = function () {
3074
+ return this.n59_1;
3075
+ };
3076
+ protoOf(YearMonthSerializer).t1q = function (decoder) {
3077
+ return Companion_instance_8.o59(decoder.a1u());
3078
+ };
3079
+ protoOf(YearMonthSerializer).p59 = function (encoder, value) {
3080
+ encoder.j1v(value.toString());
3081
+ };
3082
+ protoOf(YearMonthSerializer).s1q = function (encoder, value) {
3083
+ return this.p59(encoder, value instanceof YearMonth ? value : THROW_CCE());
3084
+ };
3085
+ var YearMonthSerializer_instance;
3086
+ function YearMonthSerializer_getInstance() {
3087
+ if (YearMonthSerializer_instance == null)
3088
+ new YearMonthSerializer();
3089
+ return YearMonthSerializer_instance;
3090
+ }
3091
+ function Companion_7() {
3092
+ Companion_instance_7 = this;
3093
+ this.h59_1 = new LocalDate(-999999999, 1, 1);
3094
+ this.i59_1 = new LocalDate(999999999, 12, 31);
3095
+ this.j59_1 = -365243219162n;
3096
+ this.k59_1 = 365241780471n;
3097
+ }
3098
+ protoOf(Companion_7).q59 = function (input, format) {
3099
+ return format.sj(input);
3100
+ };
3101
+ protoOf(Companion_7).l59 = function (input, format, $super) {
3102
+ format = format === VOID ? getIsoDateFormat() : format;
3103
+ return $super === VOID ? this.q59(input, format) : $super.q59.call(this, input, format);
3104
+ };
3105
+ protoOf(Companion_7).r59 = function (epochDays) {
3106
+ // Inline function 'kotlin.require' call
3107
+ if (!(-365243219162n <= epochDays ? epochDays <= 365241780471n : false)) {
3108
+ var message = 'Invalid date: epoch day ' + epochDays.toString() + ' is outside the boundaries of LocalDate';
3109
+ throw IllegalArgumentException_init_$Create$(toString(message));
3110
+ }
3111
+ // Inline function 'kotlin.Long.plus' call
3112
+ var zeroDay = add(epochDays, fromInt(719528));
3113
+ // Inline function 'kotlin.Long.minus' call
3114
+ var this_0 = zeroDay;
3115
+ zeroDay = subtract(this_0, fromInt(60));
3116
+ var adjust = 0n;
3117
+ if (zeroDay < 0n) {
3118
+ // Inline function 'kotlin.Long.plus' call
3119
+ var this_1 = zeroDay;
3120
+ // Inline function 'kotlin.Long.div' call
3121
+ var this_2 = add(this_1, fromInt(1));
3122
+ // Inline function 'kotlin.Long.minus' call
3123
+ var this_3 = divide(this_2, fromInt(146097));
3124
+ var adjustCycles = subtract(this_3, fromInt(1));
3125
+ // Inline function 'kotlin.Long.times' call
3126
+ adjust = multiply(adjustCycles, fromInt(400));
3127
+ var tmp = zeroDay;
3128
+ // Inline function 'kotlin.Long.times' call
3129
+ var this_4 = negate(adjustCycles);
3130
+ var tmp$ret$8 = multiply(this_4, fromInt(146097));
3131
+ zeroDay = add(tmp, tmp$ret$8);
3132
+ }
3133
+ // Inline function 'kotlin.Long.plus' call
3134
+ var this_5 = multiply(numberToLong(400), zeroDay);
3135
+ // Inline function 'kotlin.Long.div' call
3136
+ var this_6 = add(this_5, fromInt(591));
3137
+ var yearEst = divide(this_6, fromInt(146097));
3138
+ var tmp_0 = zeroDay;
3139
+ var tmp_1 = multiply(numberToLong(365), yearEst);
3140
+ // Inline function 'kotlin.Long.div' call
3141
+ var this_7 = yearEst;
3142
+ var tmp$ret$11 = divide(this_7, fromInt(4));
3143
+ var tmp_2 = add(tmp_1, tmp$ret$11);
3144
+ // Inline function 'kotlin.Long.div' call
3145
+ var this_8 = yearEst;
3146
+ var tmp$ret$12 = divide(this_8, fromInt(100));
3147
+ var tmp_3 = subtract(tmp_2, tmp$ret$12);
3148
+ // Inline function 'kotlin.Long.div' call
3149
+ var this_9 = yearEst;
3150
+ var tmp$ret$13 = divide(this_9, fromInt(400));
3151
+ var doyEst = subtract(tmp_0, add(tmp_3, tmp$ret$13));
3152
+ if (doyEst < 0n) {
3153
+ var _unary__edvuaz = yearEst;
3154
+ yearEst = subtract(_unary__edvuaz, get_ONE());
3155
+ var tmp_4 = zeroDay;
3156
+ var tmp_5 = multiply(numberToLong(365), yearEst);
3157
+ // Inline function 'kotlin.Long.div' call
3158
+ var this_10 = yearEst;
3159
+ var tmp$ret$14 = divide(this_10, fromInt(4));
3160
+ var tmp_6 = add(tmp_5, tmp$ret$14);
3161
+ // Inline function 'kotlin.Long.div' call
3162
+ var this_11 = yearEst;
3163
+ var tmp$ret$15 = divide(this_11, fromInt(100));
3164
+ var tmp_7 = subtract(tmp_6, tmp$ret$15);
3165
+ // Inline function 'kotlin.Long.div' call
3166
+ var this_12 = yearEst;
3167
+ var tmp$ret$16 = divide(this_12, fromInt(400));
3168
+ doyEst = subtract(tmp_4, add(tmp_7, tmp$ret$16));
3169
+ }
3170
+ yearEst = add(yearEst, adjust);
3171
+ var marchDoy0 = convertToInt(doyEst);
3172
+ var marchMonth0 = (imul(marchDoy0, 5) + 2 | 0) / 153 | 0;
3173
+ var month = ((marchMonth0 + 2 | 0) % 12 | 0) + 1 | 0;
3174
+ var dom = (marchDoy0 - ((imul(marchMonth0, 306) + 5 | 0) / 10 | 0) | 0) + 1 | 0;
3175
+ var tmp0 = yearEst;
3176
+ // Inline function 'kotlin.Long.plus' call
3177
+ var other = marchMonth0 / 10 | 0;
3178
+ yearEst = add(tmp0, fromInt(other));
3179
+ return new LocalDate(convertToInt(yearEst), month, dom);
3180
+ };
3181
+ var Companion_instance_7;
3182
+ function Companion_getInstance_7() {
3183
+ if (Companion_instance_7 == null)
3184
+ new Companion_7();
3185
+ return Companion_instance_7;
3186
+ }
1806
3187
  function Formats() {
1807
3188
  Formats_instance = this;
1808
- this.jo_1 = get_ISO_DATE_BASIC();
3189
+ this.t52_1 = get_ISO_DATE_BASIC();
1809
3190
  }
1810
- protoOf(Formats).ko = function () {
3191
+ protoOf(Formats).u52 = function () {
1811
3192
  return get_ISO_DATE();
1812
3193
  };
1813
3194
  var Formats_instance;
@@ -1816,11 +3197,45 @@
1816
3197
  new Formats();
1817
3198
  return Formats_instance;
1818
3199
  }
1819
- function LocalDate() {
3200
+ function resolvePreviousValid($this, year, month, day) {
3201
+ // Inline function 'kotlin.math.min' call
3202
+ var b = monthLength(month, isLeapYear(year));
3203
+ var newDay = Math.min(day, b);
3204
+ return new LocalDate(year, month, newDay);
3205
+ }
3206
+ function LocalDate(year, month, day) {
3207
+ Companion_getInstance_7();
3208
+ this.d54_1 = year;
3209
+ this.e54_1 = day;
3210
+ this.f54_1 = month;
3211
+ // Inline function 'kotlin.require' call
3212
+ if (!isValidYear(this.d54_1)) {
3213
+ var message = 'Invalid date: the year is out of range';
3214
+ throw IllegalArgumentException_init_$Create$(toString(message));
3215
+ }
3216
+ var containsArg = this.f54_1;
3217
+ // Inline function 'kotlin.require' call
3218
+ if (!(1 <= containsArg ? containsArg <= 12 : false)) {
3219
+ var message_0 = 'Invalid date: month must be a number between 1 and 12, got ' + this.f54_1;
3220
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
3221
+ }
3222
+ var containsArg_0 = this.e54_1;
3223
+ // Inline function 'kotlin.require' call
3224
+ if (!(1 <= containsArg_0 ? containsArg_0 <= 31 : false)) {
3225
+ var message_1 = 'Invalid date: day of month must be a number between 1 and 31, got ' + this.e54_1;
3226
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
3227
+ }
3228
+ if (this.e54_1 > 28 && this.e54_1 > monthLength(this.f54_1, isLeapYear(this.d54_1))) {
3229
+ if (this.e54_1 === 29) {
3230
+ throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + this.d54_1 + "' is not a leap year");
3231
+ } else {
3232
+ throw IllegalArgumentException_init_$Create$("Invalid date '" + Month_0(month).toString() + ' ' + this.e54_1 + "'");
3233
+ }
3234
+ }
1820
3235
  }
1821
- protoOf(LocalDate).lo = function () {
1822
- var y = fromInt(this.sk_1);
1823
- var m = fromInt(this.uk_1);
3236
+ protoOf(LocalDate).s59 = function () {
3237
+ var y = fromInt(this.d54_1);
3238
+ var m = fromInt(this.f54_1);
1824
3239
  var total = 0n;
1825
3240
  total = add(total, multiply(numberToLong(365), y));
1826
3241
  if (y >= 0n) {
@@ -1859,12 +3274,12 @@
1859
3274
  total = add(tmp_5, tmp$ret$10);
1860
3275
  var tmp0 = total;
1861
3276
  // Inline function 'kotlin.Long.plus' call
1862
- var other = this.tk_1 - 1 | 0;
3277
+ var other = this.e54_1 - 1 | 0;
1863
3278
  total = add(tmp0, fromInt(other));
1864
3279
  if (m > 2n) {
1865
3280
  var _unary__edvuaz = total;
1866
3281
  total = subtract(_unary__edvuaz, get_ONE());
1867
- if (!isLeapYear(this.sk_1)) {
3282
+ if (!isLeapYear(this.d54_1)) {
1868
3283
  var _unary__edvuaz_0 = total;
1869
3284
  total = subtract(_unary__edvuaz_0, get_ONE());
1870
3285
  }
@@ -1873,12 +3288,12 @@
1873
3288
  var this_5 = total;
1874
3289
  return subtract(this_5, fromInt(719528));
1875
3290
  };
1876
- protoOf(LocalDate).wk = function () {
1877
- return Month_0(this.uk_1);
3291
+ protoOf(LocalDate).g54 = function () {
3292
+ return Month_0(this.f54_1);
1878
3293
  };
1879
- protoOf(LocalDate).ok = function () {
3294
+ protoOf(LocalDate).y53 = function () {
1880
3295
  // Inline function 'kotlin.Long.plus' call
1881
- var this_0 = this.lo();
3296
+ var this_0 = this.s59();
1882
3297
  // Inline function 'kotlin.mod' call
1883
3298
  var tmp0 = add(this_0, fromInt(3));
1884
3299
  // Inline function 'kotlin.mod' call
@@ -1888,19 +3303,56 @@
1888
3303
  var dow0 = convertToInt(tmp$ret$1);
1889
3304
  return DayOfWeek_0(dow0 + 1 | 0);
1890
3305
  };
1891
- protoOf(LocalDate).qk = function () {
1892
- return (firstDayOfYear(this.wk(), isLeapYear(this.sk_1)) + this.tk_1 | 0) - 1 | 0;
3306
+ protoOf(LocalDate).a54 = function () {
3307
+ return (firstDayOfYear(this.g54(), isLeapYear(this.d54_1)) + this.e54_1 | 0) - 1 | 0;
1893
3308
  };
1894
- protoOf(LocalDate).mo = function (other) {
1895
- var y = compareTo(this.sk_1, other.sk_1);
3309
+ protoOf(LocalDate).t59 = function (other) {
3310
+ var y = compareTo(this.d54_1, other.d54_1);
1896
3311
  if (!(y === 0)) {
1897
3312
  return y;
1898
3313
  }
1899
- var m = compareTo(this.uk_1, other.uk_1);
3314
+ var m = compareTo(this.f54_1, other.f54_1);
1900
3315
  if (!(m === 0)) {
1901
3316
  return m;
1902
3317
  }
1903
- return compareTo(this.tk_1, other.tk_1);
3318
+ return compareTo(this.e54_1, other.e54_1);
3319
+ };
3320
+ protoOf(LocalDate).d = function (other) {
3321
+ return this.t59(other instanceof LocalDate ? other : THROW_CCE());
3322
+ };
3323
+ protoOf(LocalDate).u59 = function (monthsToAdd) {
3324
+ if (monthsToAdd === 0n) {
3325
+ return this;
3326
+ }
3327
+ var tmp0 = multiply(numberToLong(this.d54_1), 12n);
3328
+ // Inline function 'kotlin.Long.plus' call
3329
+ var other = this.f54_1 - 1 | 0;
3330
+ var monthCount = add(tmp0, fromInt(other));
3331
+ var calcMonths = safeAdd(monthCount, monthsToAdd);
3332
+ // Inline function 'kotlin.floorDiv' call
3333
+ // Inline function 'kotlin.floorDiv' call
3334
+ var other_0 = fromInt(12);
3335
+ var q = divide(calcMonths, other_0);
3336
+ if ((calcMonths ^ other_0) < 0n && !(multiply(q, other_0) === calcMonths)) {
3337
+ var _unary__edvuaz = q;
3338
+ q = subtract(_unary__edvuaz, get_ONE());
3339
+ }
3340
+ var newYear = q;
3341
+ // Inline function 'kotlin.ranges.contains' call
3342
+ var this_0 = numberRangeToNumber(-999999999, 999999999);
3343
+ if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), newYear)) {
3344
+ throw IllegalArgumentException_init_$Create$('The result of adding ' + monthsToAdd.toString() + ' months to ' + this.toString() + ' is out of LocalDate range.');
3345
+ }
3346
+ // Inline function 'kotlin.mod' call
3347
+ // Inline function 'kotlin.mod' call
3348
+ var other_1 = fromInt(12);
3349
+ var r = modulo(calcMonths, other_1);
3350
+ var tmp$ret$4 = add(r, other_1 & shiftRight((r ^ other_1) & (r | negate(r)), 63));
3351
+ var newMonth = convertToInt(tmp$ret$4) + 1 | 0;
3352
+ return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.e54_1);
3353
+ };
3354
+ protoOf(LocalDate).v59 = function (daysToAdd) {
3355
+ return daysToAdd === 0n ? this : Companion_getInstance_7().r59(safeAdd(this.s59(), daysToAdd));
1904
3356
  };
1905
3357
  protoOf(LocalDate).equals = function (other) {
1906
3358
  var tmp;
@@ -1909,7 +3361,7 @@
1909
3361
  } else {
1910
3362
  var tmp_0;
1911
3363
  if (other instanceof LocalDate) {
1912
- tmp_0 = this.mo(other) === 0;
3364
+ tmp_0 = this.t59(other) === 0;
1913
3365
  } else {
1914
3366
  tmp_0 = false;
1915
3367
  }
@@ -1918,18 +3370,51 @@
1918
3370
  return tmp;
1919
3371
  };
1920
3372
  protoOf(LocalDate).hashCode = function () {
1921
- var yearValue = this.sk_1;
1922
- var monthValue = this.uk_1;
1923
- var dayValue = this.tk_1;
3373
+ var yearValue = this.d54_1;
3374
+ var monthValue = this.f54_1;
3375
+ var dayValue = this.e54_1;
1924
3376
  return yearValue & -2048 ^ (((yearValue << 11) + (monthValue << 6) | 0) + dayValue | 0);
1925
3377
  };
1926
3378
  protoOf(LocalDate).toString = function () {
1927
- return format(this, Formats_getInstance().ko());
3379
+ return format(this, Formats_getInstance().u52());
1928
3380
  };
3381
+ function isValidYear(year) {
3382
+ return year >= -999999999 && year <= 999999999;
3383
+ }
3384
+ function plus_1(_this__u8e3s4, value, unit) {
3385
+ var tmp;
3386
+ try {
3387
+ var tmp_0;
3388
+ if (unit instanceof DayBased) {
3389
+ tmp_0 = _this__u8e3s4.v59(safeMultiply(value, fromInt(unit.f52_1)));
3390
+ } else {
3391
+ if (unit instanceof MonthBased) {
3392
+ tmp_0 = _this__u8e3s4.u59(safeMultiply(value, fromInt(unit.g52_1)));
3393
+ } else {
3394
+ noWhenBranchMatchedException();
3395
+ }
3396
+ }
3397
+ tmp = tmp_0;
3398
+ } catch ($p) {
3399
+ var tmp_1;
3400
+ if ($p instanceof ArithmeticException) {
3401
+ var e = $p;
3402
+ throw DateTimeArithmeticException_init_$Create$_0('Arithmetic overflow when adding a value to a date', e);
3403
+ } else {
3404
+ if ($p instanceof IllegalArgumentException) {
3405
+ var e_0 = $p;
3406
+ throw DateTimeArithmeticException_init_$Create$_0('Boundaries of LocalDate exceeded when adding a value', e_0);
3407
+ } else {
3408
+ throw $p;
3409
+ }
3410
+ }
3411
+ }
3412
+ return tmp;
3413
+ }
1929
3414
  function firstDayOfYear(_this__u8e3s4, leapYear) {
1930
3415
  var leap = leapYear ? 1 : 0;
1931
3416
  var tmp;
1932
- switch (_this__u8e3s4.x1_1) {
3417
+ switch (_this__u8e3s4.a1_1) {
1933
3418
  case 0:
1934
3419
  tmp = 1;
1935
3420
  break;
@@ -1972,25 +3457,152 @@
1972
3457
  }
1973
3458
  return tmp;
1974
3459
  }
3460
+ function Companion_8() {
3461
+ }
3462
+ protoOf(Companion_8).w59 = function (input, format) {
3463
+ return format.sj(input);
3464
+ };
3465
+ protoOf(Companion_8).o59 = function (input, format, $super) {
3466
+ format = format === VOID ? Formats_instance_0.u52() : format;
3467
+ return $super === VOID ? this.w59(input, format) : $super.w59.call(this, input, format);
3468
+ };
3469
+ var Companion_instance_8;
3470
+ function Companion_getInstance_8() {
3471
+ return Companion_instance_8;
3472
+ }
3473
+ function Formats_0() {
3474
+ }
3475
+ protoOf(Formats_0).u52 = function () {
3476
+ return get_ISO_YEAR_MONTH();
3477
+ };
3478
+ var Formats_instance_0;
3479
+ function Formats_getInstance_0() {
3480
+ return Formats_instance_0;
3481
+ }
3482
+ function YearMonth$_get_year_$ref_chp4n6() {
3483
+ return function (p0) {
3484
+ return p0.j55_1;
3485
+ };
3486
+ }
3487
+ function YearMonth$_get_month_$ref_9rphhd() {
3488
+ return function (p0) {
3489
+ return p0.g54();
3490
+ };
3491
+ }
3492
+ function YearMonth(year, month) {
3493
+ this.j55_1 = year;
3494
+ this.k55_1 = month;
3495
+ // Inline function 'kotlin.require' call
3496
+ if (!(1 <= month ? month <= 12 : false)) {
3497
+ var message = 'Month must be in 1..12, but was ' + month;
3498
+ throw IllegalArgumentException_init_$Create$(toString(message));
3499
+ }
3500
+ var containsLower = Companion_getInstance_7().h59_1.d54_1;
3501
+ var containsUpper = Companion_getInstance_7().i59_1.d54_1;
3502
+ var containsArg = this.j55_1;
3503
+ // Inline function 'kotlin.require' call
3504
+ if (!(containsLower <= containsArg ? containsArg <= containsUpper : false)) {
3505
+ var message_0 = 'Year ' + this.j55_1 + ' is out of range: ' + Companion_getInstance_7().h59_1.d54_1 + '..' + Companion_getInstance_7().i59_1.d54_1;
3506
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
3507
+ }
3508
+ }
3509
+ protoOf(YearMonth).g54 = function () {
3510
+ return Month_0(this.k55_1);
3511
+ };
3512
+ protoOf(YearMonth).x59 = function (other) {
3513
+ var tmp = KProperty1;
3514
+ var tmp_0 = getPropertyCallableRef('year', 1, tmp, YearMonth$_get_year_$ref_chp4n6(), null);
3515
+ var tmp_1 = KProperty1;
3516
+ return compareValuesBy(this, other, [tmp_0, getPropertyCallableRef('month', 1, tmp_1, YearMonth$_get_month_$ref_9rphhd(), null)]);
3517
+ };
3518
+ protoOf(YearMonth).d = function (other) {
3519
+ return this.x59(other instanceof YearMonth ? other : THROW_CCE());
3520
+ };
3521
+ protoOf(YearMonth).toString = function () {
3522
+ return Formats_instance_0.u52().v52(this);
3523
+ };
3524
+ protoOf(YearMonth).equals = function (other) {
3525
+ var tmp;
3526
+ var tmp_0;
3527
+ if (other instanceof YearMonth) {
3528
+ tmp_0 = this.j55_1 === other.j55_1;
3529
+ } else {
3530
+ tmp_0 = false;
3531
+ }
3532
+ if (tmp_0) {
3533
+ tmp = this.g54().equals(other.g54());
3534
+ } else {
3535
+ tmp = false;
3536
+ }
3537
+ return tmp;
3538
+ };
3539
+ protoOf(YearMonth).hashCode = function () {
3540
+ return imul(this.j55_1, 31) + this.g54().hashCode() | 0;
3541
+ };
3542
+ function safeAdd(a, b) {
3543
+ var sum = add(a, b);
3544
+ if ((a ^ sum) < 0n && (a ^ b) >= 0n) {
3545
+ throw ArithmeticException_init_$Create$('Addition overflows a long: ' + a.toString() + ' + ' + b.toString());
3546
+ }
3547
+ return sum;
3548
+ }
3549
+ function safeMultiply(a, b) {
3550
+ if (b === 1n) {
3551
+ return a;
3552
+ }
3553
+ if (a === 1n) {
3554
+ return b;
3555
+ }
3556
+ if (a === 0n || b === 0n) {
3557
+ return 0n;
3558
+ }
3559
+ var total = multiply(a, b);
3560
+ if (!(divide(total, b) === a) || (a === -9223372036854775808n && b === -1n) || (b === -9223372036854775808n && a === -1n)) {
3561
+ throw ArithmeticException_init_$Create$('Multiplication overflows a long: ' + a.toString() + ' * ' + b.toString());
3562
+ }
3563
+ return total;
3564
+ }
3565
+ function safeMultiply_0(a, b) {
3566
+ var total = multiply(fromInt(a), fromInt(b));
3567
+ if (total < -2147483648n || total > 2147483647n) {
3568
+ throw ArithmeticException_init_$Create$('Multiplication overflows an int: ' + a + ' * ' + b);
3569
+ }
3570
+ return convertToInt(total);
3571
+ }
1975
3572
  //region block: post-declaration
1976
- protoOf(Builder).zj = chars;
1977
- protoOf(Builder).fk = build;
1978
- protoOf(Builder).fl = addFormatStructureForYearMonth;
1979
- protoOf(Builder).ak = day;
1980
- protoOf(Builder).bk = day$default;
1981
- protoOf(Builder).vj = year;
1982
- protoOf(Builder).wj = year$default;
1983
- protoOf(Builder).xj = monthNumber;
1984
- protoOf(Builder).yj = monthNumber$default;
1985
- protoOf(PropertyAccessor).om = getterNotNull;
1986
- protoOf(SpacePaddedFormatter).uj = format$default;
1987
- protoOf(ConcatenatedFormatter).uj = format$default;
1988
- protoOf(UnsignedIntFormatterStructure).uj = format$default;
1989
- protoOf(SignedIntFormatterStructure).uj = format$default;
1990
- protoOf(ConstantStringFormatterStructure).uj = format$default;
3573
+ protoOf(Builder).k53 = chars;
3574
+ protoOf(Builder).a2k = build;
3575
+ protoOf(Builder).r54 = addFormatStructureForYearMonth;
3576
+ protoOf(Builder).l53 = day;
3577
+ protoOf(Builder).m53 = day$default;
3578
+ protoOf(Builder).g53 = year;
3579
+ protoOf(Builder).h53 = year$default;
3580
+ protoOf(Builder).i53 = monthNumber;
3581
+ protoOf(Builder).j53 = monthNumber$default;
3582
+ protoOf(Builder_0).k53 = chars;
3583
+ protoOf(Builder_0).a2k = build;
3584
+ protoOf(Builder_0).g53 = year;
3585
+ protoOf(Builder_0).h53 = year$default;
3586
+ protoOf(Builder_0).i53 = monthNumber;
3587
+ protoOf(Builder_0).j53 = monthNumber$default;
3588
+ protoOf(PropertyAccessor).j56 = getterNotNull;
3589
+ protoOf(SpacePaddedFormatter).e53 = format$default;
3590
+ protoOf(ConcatenatedFormatter).e53 = format$default;
3591
+ protoOf(UnsignedIntFormatterStructure).e53 = format$default;
3592
+ protoOf(SignedIntFormatterStructure).e53 = format$default;
3593
+ protoOf(ConstantStringFormatterStructure).e53 = format$default;
1991
3594
  //endregion
1992
3595
  //region block: init
1993
3596
  Companion_instance = new Companion();
3597
+ Companion_instance_0 = new Companion_0();
3598
+ Companion_instance_1 = new Companion_1();
3599
+ Companion_instance_2 = new Companion_2();
3600
+ Companion_instance_4 = new Companion_4();
3601
+ Companion_instance_5 = new Companion_5();
3602
+ ExpectedInt_instance = new ExpectedInt();
3603
+ Companion_instance_6 = new Companion_6();
3604
+ Companion_instance_8 = new Companion_8();
3605
+ Formats_instance_0 = new Formats_0();
1994
3606
  //endregion
1995
3607
  //region block: exports
1996
3608
  _.$_$ = _.$_$ || {};