UNPKG

@kform/core

Version:

JavaScript bindings for KForm.

1,598 lines 164 kB
import { initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion, Long2qws0ah9gnpki as Long, IllegalArgumentException2asla15b5jaob as IllegalArgumentException, toString1pkumu07cwy4m as toString, Unit_instance1fbcbse1fwigr as Unit_instance, toLongw1zpgk99d84b as toLong, initMetadataForClassbxx6q50dy2s7 as initMetadataForClass, VOID3gxj6tk5isa35 as VOID, enumEntries20mr21zbe3az4 as enumEntries, Enum3alwj03lh1n41 as Enum, captureStack1fzi4aczwc4hg as captureStack, RuntimeException1r3t0zl97011n as RuntimeException, StringBuildermazzzhj6kkai as StringBuilder, initMetadataForInterface1egvbzx539z91 as initMetadataForInterface, toString3o7ifthqydp6e as toString_0, IllegalStateExceptionkoljg5n0nrlr as IllegalStateException, THROW_CCE2g6jy02ryeudk as THROW_CCE, isInterface3d6p8outrmvmk as isInterface, isArray1hxjqtqy632bc as isArray, ArrayList3it5z8td81qkl as ArrayList, KProperty02ce7r476m8633 as KProperty0, getPropertyCallableRef1ajb9in178r5r as getPropertyCallableRef, hashCodeq5arwsb9dgti as hashCode, protoOf180f3jzyo7rfj as protoOf, KMutableProperty11e8g1gb0ecb9j as KMutableProperty1, initMetadataForObject1cxne3s9w65el as initMetadataForObject, _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx, lazy2hsh8ze7j6ikd as lazy, equals2au1ep9vhcato as equals, padStart36w1507hs626a as padStart, listOf1jh22dvmctj1r as listOf, getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode, noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException, listOfvhqybd2zx248 as listOf_0, emptyList1g2z5xcrvp2zy as emptyList, toString30pk9tzaqopn as toString_1, getStringHashCode26igk1bx568vk as getStringHashCode, charSequenceLength3278n89t01tmv as charSequenceLength, charCodeAt1yspne1d8erbm as charCodeAt, substringiqarkczpya5m as substring, substring3saq8ornu0luv as substring_0, get_lastIndexld83bqhfgcdd as get_lastIndex, collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault, distinct10qe1scfdvu5k as distinct, to2cs3ny02qtbcb as to, joinToString1cxrrlmo0chqs as joinToString, singleo93pzdgfc557 as single, Collection1k04j3hzsbod0 as Collection, abs1kdzbjes1idip as abs, charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence, charSequenceGet1vxk1y5n17t1z as charSequenceGet, numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber, mutableListOf6oorvk2mtdmp as mutableListOf, removeLastOrNull3odnlbetbttd4 as removeLastOrNull, sortWith4fnm6b3vw03s as sortWith, FunctionAdapter3lcrrz3moet5b as FunctionAdapter, Comparator2b3maoeh98xtg as Comparator, compareValues1n2ayl87ihzfk as compareValues, Exceptiondt2hlxn7j7vw as Exception, joinTo3lkanfaxbzac2 as joinTo, plus310ted5e4i90h as plus, toMutableList20rdgwi7d3cwi as toMutableList, addAll1k27qatfgp3k5 as addAll, firstOrNull1982767dljvdy as firstOrNull, drop3na99dw9feawf as drop, repeat2w4c6j8zoq09o as repeat, checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow, compareTo3ankvs086tmwq as compareTo, removePrefix279df90bhrqqg as removePrefix, UnsupportedOperationException2tkumpmhredt3 as UnsupportedOperationException, Comparable198qfk8pnblz0 as Comparable, Char__minus_impl_a2frrh3548ixwefqxih as Char__minus_impl_a2frrh, numberToLong1a4cndvg6c52s as numberToLong, ClosedRangehokgr73im9z3 as ClosedRange, contains2c50nlxg7en7o as contains, ArithmeticException18dajwq7kbp38 as ArithmeticException, KProperty1ca4yb4wlo496 as KProperty1, compareValuesBy2ycqeh37x2wfm as compareValuesBy, } from './kotlin-kotlin-stdlib.mjs'; //region block: imports var imul = Math.imul; //endregion //region block: pre-declaration class Companion {} class Companion_0 {} class Companion_1 {} class Companion_2 {} class DateTimeUnit { constructor() { Companion_getInstance_3(); } t25(value, unit) { return value === 1 ? unit : '' + value + '-' + unit; } s25(value, unit) { return value.equals(new Long(1, 0)) ? unit : value.toString() + '-' + unit; } } class TimeBased extends DateTimeUnit { constructor(nanoseconds) { super(); this.o25_1 = nanoseconds; // Inline function 'kotlin.require' call if (!(this.o25_1.w1(new Long(0, 0)) > 0)) { var message = 'Unit duration must be positive, but was ' + this.o25_1.toString() + ' ns.'; throw IllegalArgumentException.h(toString(message)); } if (this.o25_1.s3(new Long(817405952, 838)).equals(new Long(0, 0))) { this.p25_1 = 'HOUR'; this.q25_1 = this.o25_1.r3(new Long(817405952, 838)); } else { if (this.o25_1.s3(new Long(-129542144, 13)).equals(new Long(0, 0))) { this.p25_1 = 'MINUTE'; this.q25_1 = this.o25_1.r3(new Long(-129542144, 13)); } else { var tmp0 = this.o25_1; // Inline function 'kotlin.Long.rem' call var other = 1000000000; if (tmp0.s3(toLong(other)).equals(new Long(0, 0))) { this.p25_1 = 'SECOND'; var tmp = this; var tmp0_0 = this.o25_1; // Inline function 'kotlin.Long.div' call var other_0 = 1000000000; tmp.q25_1 = tmp0_0.r3(toLong(other_0)); } else { // Inline function 'kotlin.Long.rem' call if (this.o25_1.s3(toLong(1000000)).equals(new Long(0, 0))) { this.p25_1 = 'MILLISECOND'; var tmp_0 = this; // Inline function 'kotlin.Long.div' call tmp_0.q25_1 = this.o25_1.r3(toLong(1000000)); } else { // Inline function 'kotlin.Long.rem' call if (this.o25_1.s3(toLong(1000)).equals(new Long(0, 0))) { this.p25_1 = 'MICROSECOND'; var tmp_1 = this; // Inline function 'kotlin.Long.div' call tmp_1.q25_1 = this.o25_1.r3(toLong(1000)); } else { this.p25_1 = 'NANOSECOND'; this.q25_1 = this.o25_1; } } } } } } r25(scalar) { return new TimeBased(safeMultiply(this.o25_1, toLong(scalar))); } equals(other) { var tmp; if (this === other) { tmp = true; } else { var tmp_0; if (other instanceof TimeBased) { tmp_0 = this.o25_1.equals(other.o25_1); } else { tmp_0 = false; } tmp = tmp_0; } return tmp; } hashCode() { return this.o25_1.y1() ^ this.o25_1.y3(32).y1(); } toString() { return this.s25(this.q25_1, this.p25_1); } } class DateBased extends DateTimeUnit {} class DayBased extends DateBased { constructor(days) { super(); this.u25_1 = days; // Inline function 'kotlin.require' call if (!(this.u25_1 > 0)) { var message = 'Unit duration must be positive, but was ' + this.u25_1 + ' days.'; throw IllegalArgumentException.h(toString(message)); } } r25(scalar) { return new DayBased(safeMultiply_0(this.u25_1, scalar)); } equals(other) { var tmp; if (this === other) { tmp = true; } else { var tmp_0; if (other instanceof DayBased) { tmp_0 = this.u25_1 === other.u25_1; } else { tmp_0 = false; } tmp = tmp_0; } return tmp; } hashCode() { return this.u25_1 ^ 65536; } toString() { return (this.u25_1 % 7 | 0) === 0 ? this.t25(this.u25_1 / 7 | 0, 'WEEK') : this.t25(this.u25_1, 'DAY'); } } class MonthBased extends DateBased { constructor(months) { super(); this.v25_1 = months; // Inline function 'kotlin.require' call if (!(this.v25_1 > 0)) { var message = 'Unit duration must be positive, but was ' + this.v25_1 + ' months.'; throw IllegalArgumentException.h(toString(message)); } } r25(scalar) { return new MonthBased(safeMultiply_0(this.v25_1, scalar)); } equals(other) { var tmp; if (this === other) { tmp = true; } else { var tmp_0; if (other instanceof MonthBased) { tmp_0 = this.v25_1 === other.v25_1; } else { tmp_0 = false; } tmp = tmp_0; } return tmp; } hashCode() { return this.v25_1 ^ 131072; } toString() { return (this.v25_1 % 1200 | 0) === 0 ? this.t25(this.v25_1 / 1200 | 0, 'CENTURY') : (this.v25_1 % 12 | 0) === 0 ? this.t25(this.v25_1 / 12 | 0, 'YEAR') : (this.v25_1 % 3 | 0) === 0 ? this.t25(this.v25_1 / 3 | 0, 'QUARTER') : this.t25(this.v25_1, 'MONTH'); } } class Companion_3 { constructor() { Companion_instance_3 = this; this.w25_1 = new TimeBased(new Long(1, 0)); this.x25_1 = this.w25_1.r25(1000); this.y25_1 = this.x25_1.r25(1000); this.z25_1 = this.y25_1.r25(1000); this.a26_1 = this.z25_1.r25(60); this.b26_1 = this.a26_1.r25(60); this.c26_1 = new DayBased(1); this.d26_1 = this.c26_1.r25(7); this.e26_1 = new MonthBased(1); this.f26_1 = this.e26_1.r25(3); this.g26_1 = this.e26_1.r25(12); this.h26_1 = this.g26_1.r25(100); } } class DayOfWeek extends Enum {} class DateTimeFormatException extends IllegalArgumentException { static m26() { var $this = this.rf(); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } static n26(message) { var $this = this.h(message); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } static o26(message, cause) { var $this = this.sf(message, cause); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } } class DateTimeArithmeticException extends RuntimeException { static s26() { var $this = this.g2(); init_kotlinx_datetime_DateTimeArithmeticException($this); return $this; } static t26(message, cause) { var $this = this.tf(message, cause); init_kotlinx_datetime_DateTimeArithmeticException($this); return $this; } } class Month extends Enum {} class AbstractDateTimeFormat { w26(value) { // Inline function 'kotlin.also' call var this_0 = StringBuilder.u(); this.y26().f27().g27(this.z26(value), this_0); return this_0.toString(); } zp(input) { var tmp; try { tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.y26().h27()), input, this.b27()); } catch ($p) { var tmp_0; if ($p instanceof ParseException) { var e = $p; throw DateTimeFormatException.o26("Failed to parse value from '" + toString(input) + "'", e); } else { throw $p; } } var matched = tmp; try { return this.a27(matched); } catch ($p) { if ($p instanceof IllegalArgumentException) { var e_0 = $p; var message = e_0.message; throw DateTimeFormatException.o26(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0); } else { throw $p; } } } } class Padding extends Enum {} class WithYearMonth {} function year$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.i27(padding); tmp = Unit_instance; } else { tmp = $super.i27.call(this, padding); } return tmp; } function monthNumber$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.k27(padding); tmp = Unit_instance; } else { tmp = $super.k27.call(this, padding); } return tmp; } class WithDate {} function day$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.n27(padding); tmp = Unit_instance; } else { tmp = $super.n27.call(this, padding); } return tmp; } class WithTime {} function hour$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.q27(padding); tmp = Unit_instance; } else { tmp = $super.q27.call(this, padding); } return tmp; } function minute$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.s27(padding); tmp = Unit_instance; } else { tmp = $super.s27.call(this, padding); } return tmp; } function second$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.u27(padding); tmp = Unit_instance; } else { tmp = $super.u27.call(this, padding); } return tmp; } class AbstractDateTimeFormatBuilder {} function appendAlternativeParsingImpl(otherFormats, mainFormat) { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList.w(otherFormats.length); var inductionVariable = 0; var last = otherFormats.length; while (inductionVariable < last) { var item = otherFormats[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.also' call var this_0 = this.b28(); item(this_0); var tmp$ret$2 = this_0.a28().d28(); destination.s(tmp$ret$2); } var others = destination; // Inline function 'kotlin.also' call var this_1 = this.b28(); mainFormat(this_1); var main = this_1.a28().d28(); this.a28().e28(new AlternativesParsingFormatStructure(main, others)); } function appendOptionalImpl(onZero, format) { var tmp = this.a28(); // Inline function 'kotlin.also' call var this_0 = this.b28(); format(this_0); tmp.e28(new OptionalFormatStructure(onZero, this_0.a28().d28())); } function chars(value) { return this.a28().e28(new ConstantFormatStructure(value)); } function build() { return new CachedFormatStructure(this.a28().d28().f28_1); } class IncompleteLocalDate { constructor(yearMonth, day, dayOfWeek, dayOfYear) { yearMonth = yearMonth === VOID ? new IncompleteYearMonth() : yearMonth; day = day === VOID ? null : day; dayOfWeek = dayOfWeek === VOID ? null : dayOfWeek; dayOfYear = dayOfYear === VOID ? null : dayOfYear; this.h28_1 = yearMonth; this.i28_1 = day; this.j28_1 = dayOfWeek; this.k28_1 = dayOfYear; } l28(_set____db54di) { this.i28_1 = _set____db54di; } m28() { return this.i28_1; } n28(_set____db54di) { this.j28_1 = _set____db54di; } o28() { return this.j28_1; } p28(_set____db54di) { this.k28_1 = _set____db54di; } q28() { return this.k28_1; } r28() { var year = requireParsedField(this.s28(), 'year'); var dayOfYear = this.k28_1; var tmp; if (dayOfYear == null) { tmp = new LocalDate(year, requireParsedField(this.x28(), 'monthNumber'), requireParsedField(this.i28_1, 'day')); } else { // Inline function 'kotlin.also' call var this_0 = plus_0(new LocalDate(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().c26_1); if (!(this_0.t28_1 === year)) { throw DateTimeFormatException.n26('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)); } if (!(this.x28() == null) && !(get_number(this_0.w28()) === this.x28())) { throw DateTimeFormatException.n26('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.w28().toString() + ', ') + ('but ' + this.x28() + ' was specified as the month number')); } if (!(this.i28_1 == null) && !(this_0.u28_1 === this.i28_1)) { throw DateTimeFormatException.n26('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is the day ' + this_0.u28_1 + ' of ' + this_0.w28().toString() + ', ') + ('but ' + this.i28_1 + ' was specified as the day of month')); } tmp = this_0; } var date = tmp; var tmp0_safe_receiver = this.j28_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call if (!(tmp0_safe_receiver === get_isoDayNumber(date.o28()))) { throw DateTimeFormatException.n26('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.o28().toString())); } } return date; } y28(date) { this.z28(date.t28_1); this.a29(get_number(date.w28())); this.i28_1 = date.u28_1; this.j28_1 = get_isoDayNumber(date.o28()); this.k28_1 = date.q28(); } b29() { return new IncompleteLocalDate(this.h28_1.b29(), this.i28_1, this.j28_1, this.k28_1); } equals(other) { var tmp; var tmp_0; var tmp_1; var tmp_2; if (other instanceof IncompleteLocalDate) { tmp_2 = this.h28_1.equals(other.h28_1); } else { tmp_2 = false; } if (tmp_2) { tmp_1 = this.i28_1 == other.i28_1; } else { tmp_1 = false; } if (tmp_1) { tmp_0 = this.j28_1 == other.j28_1; } else { tmp_0 = false; } if (tmp_0) { tmp = this.k28_1 == other.k28_1; } else { tmp = false; } return tmp; } hashCode() { var tmp = imul(this.h28_1.hashCode(), 29791); // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver = this.i28_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; var tmp_0 = tmp + imul(tmp$ret$0, 961) | 0; // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_0 = this.j28_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0); var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0; var tmp_1 = tmp_0 + imul(tmp$ret$1, 31) | 0; // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_1 = this.k28_1; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1); return tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0; } toString() { var tmp; if (this.k28_1 == null) { var tmp_0 = this.h28_1.toString(); var tmp0_elvis_lhs = this.i28_1; var tmp_1 = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs); var tmp1_elvis_lhs = this.j28_1; tmp = tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs) + ')'; } else if (this.i28_1 == null && this.x28() == null) { var tmp2_elvis_lhs = this.h28_1.c29_1; var tmp_2 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs); var tmp_3 = this.k28_1; var tmp3_elvis_lhs = this.j28_1; tmp = '(' + tmp_2 + ')-' + tmp_3 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')'; } else { var tmp_4 = this.h28_1.toString(); var tmp4_elvis_lhs = this.i28_1; var tmp_5 = toString(tmp4_elvis_lhs == null ? '??' : tmp4_elvis_lhs); var tmp5_elvis_lhs = this.j28_1; tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.k28_1 + ')'; } return tmp; } z28(_set____db54di) { this.h28_1.c29_1 = _set____db54di; } s28() { return this.h28_1.c29_1; } a29(_set____db54di) { this.h28_1.d29_1 = _set____db54di; } x28() { return this.h28_1.d29_1; } } class Companion_4 { e29(block) { var builder = new Builder(new AppendableFormatStructure()); block(builder); return new LocalDateFormat(builder.d28()); } } class AbstractWithYearMonthBuilder {} function year(padding) { return this.h29(new BasicFormatStructure(new YearDirective(padding))); } function monthNumber(padding) { return this.h29(new BasicFormatStructure(new MonthDirective(padding))); } class AbstractWithDateBuilder {} function addFormatStructureForYearMonth(structure) { this.g29(structure); } function day(padding) { return this.g29(new BasicFormatStructure(new DayDirective(padding))); } function date(format) { var tmp; if (format instanceof LocalDateFormat) { this.g29(format.i29_1); tmp = Unit_instance; } return tmp; } class Builder { constructor(actualBuilder) { this.f29_1 = actualBuilder; } a28() { return this.f29_1; } g29(structure) { return this.f29_1.e28(structure); } b28() { return new Builder(new AppendableFormatStructure()); } } class LocalDateFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.i29_1 = actualFormat; } y26() { return this.i29_1; } j29(value) { // Inline function 'kotlin.apply' call var this_0 = new IncompleteLocalDate(); this_0.y28(value); return this_0; } z26(value) { return this.j29(value instanceof LocalDate ? value : THROW_CCE()); } k29(intermediate) { return intermediate.r28(); } a27(intermediate) { return this.k29(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE()); } b27() { return get_emptyIncompleteLocalDate(); } } class UnsignedIntFieldFormatDirective { constructor(field, minDigits, spacePadding) { this.t29_1 = field; this.u29_1 = minDigits; this.v29_1 = spacePadding; this.w29_1 = this.t29_1.i2e_1; // Inline function 'kotlin.require' call if (!(this.u29_1 >= 0)) { var message = 'The minimum number of digits (' + this.u29_1 + ') is negative'; throw IllegalArgumentException.h(toString(message)); } // Inline function 'kotlin.require' call if (!(this.w29_1 >= this.u29_1)) { var message_0 = 'The maximum number of digits (' + this.w29_1 + ') is less than the minimum number of digits (' + this.u29_1 + ')'; throw IllegalArgumentException.h(toString(message_0)); } if (!(this.v29_1 == null)) { // Inline function 'kotlin.require' call if (!(this.v29_1 > this.u29_1)) { var message_1 = 'The space padding (' + this.v29_1 + ') should be more than the minimum number of digits (' + this.u29_1 + ')'; throw IllegalArgumentException.h(toString(message_1)); } } } x29() { return this.t29_1; } f27() { var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.t29_1.c2e_1), this.u29_1); return !(this.v29_1 == null) ? new SpacePaddedFormatter(formatter, this.v29_1) : formatter; } h27() { return spaceAndZeroPaddedUnsignedInt(this.u29_1, this.w29_1, this.v29_1, this.t29_1.c2e_1, this.t29_1.f2e_1); } } class DayDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = DateFields_getInstance().l29_1; // Inline function 'kotlinx.datetime.format.minDigits' call var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1; // Inline function 'kotlinx.datetime.format.spaces' call super(tmp, tmp_0, padding.equals(Padding_SPACE_getInstance()) ? 2 : null); this.s29_1 = padding; } equals(other) { var tmp; if (other instanceof DayDirective) { tmp = this.s29_1.equals(other.s29_1); } else { tmp = false; } return tmp; } hashCode() { return this.s29_1.hashCode(); } } class DateFields { constructor() { DateFields_instance = this; var tmp = this; var tmp_0 = KMutableProperty1; var tmp_1 = DateFieldContainer$_get_day_$ref_2ebhxx(); tmp.l29_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31); var tmp_2 = this; var tmp_3 = KMutableProperty1; var tmp_4 = DateFieldContainer$_get_dayOfWeek_$ref_thwqom(); tmp_2.m29_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7); var tmp_5 = this; var tmp_6 = KMutableProperty1; var tmp_7 = DateFieldContainer$_get_dayOfYear_$ref_2m6gfz(); tmp_5.n29_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366); } } class Companion_5 { y29(block) { var builder = new Builder_0(new AppendableFormatStructure()); block(builder); return new LocalDateTimeFormat(builder.d28()); } } class AbstractWithTimeBuilder {} function hour(padding) { return this.g28(new BasicFormatStructure(new HourDirective(padding))); } function minute(padding) { return this.g28(new BasicFormatStructure(new MinuteDirective(padding))); } function second(padding) { return this.g28(new BasicFormatStructure(new SecondDirective(padding))); } function secondFraction(minLength, maxLength) { return this.g28(new BasicFormatStructure(new FractionalSecondDirective(minLength, maxLength))); } function time(format) { var tmp; if (format instanceof LocalTimeFormat) { this.g28(format.p2b_1); tmp = Unit_instance; } return tmp; } class AbstractWithDateTimeBuilder {} function addFormatStructureForDate(structure) { this.a2a(structure); } function addFormatStructureForTime(structure) { this.a2a(structure); } class Builder_0 { constructor(actualBuilder) { this.z29_1 = actualBuilder; } a28() { return this.z29_1; } a2a(structure) { this.z29_1.e28(structure); } b28() { return new Builder_0(new AppendableFormatStructure()); } } class LocalDateTimeFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.b2a_1 = actualFormat; } y26() { return this.b2a_1; } c2a(value) { // Inline function 'kotlin.apply' call var this_0 = new IncompleteLocalDateTime(); this_0.f2a(value); return this_0; } z26(value) { return this.c2a(value instanceof LocalDateTime ? value : THROW_CCE()); } g2a(intermediate) { return intermediate.h2a(); } a27(intermediate) { return this.g2a(intermediate instanceof IncompleteLocalDateTime ? intermediate : THROW_CCE()); } b27() { return get_emptyIncompleteLocalDateTime(); } } class TimeFieldContainer {} function set_fractionOfSecond(value) { this.w2a(value == null ? null : value.i2b(9)); } function get_fractionOfSecond() { var tmp0_safe_receiver = this.x2a(); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call tmp = new DecimalFraction(tmp0_safe_receiver, 9); } return tmp; } class IncompleteLocalDateTime { constructor(date, time) { date = date === VOID ? new IncompleteLocalDate() : date; time = time === VOID ? new IncompleteLocalTime() : time; this.d2a_1 = date; this.e2a_1 = time; } h2a() { return new LocalDateTime(this.d2a_1.r28(), this.e2a_1.o2a()); } f2a(dateTime) { this.d2a_1.y28(dateTime.p2a_1); this.e2a_1.r2a(dateTime.q2a_1); } b29() { return new IncompleteLocalDateTime(this.d2a_1.b29(), this.e2a_1.b29()); } l28(_set____db54di) { this.d2a_1.i28_1 = _set____db54di; } m28() { return this.d2a_1.i28_1; } n28(_set____db54di) { this.d2a_1.j28_1 = _set____db54di; } o28() { return this.d2a_1.j28_1; } p28(_set____db54di) { this.d2a_1.k28_1 = _set____db54di; } q28() { return this.d2a_1.k28_1; } z28(_set____db54di) { this.d2a_1.z28(_set____db54di); } s28() { return this.d2a_1.s28(); } a29(_set____db54di) { this.d2a_1.a29(_set____db54di); } x28() { return this.d2a_1.x28(); } s2a(_set____db54di) { this.e2a_1.l2a_1 = _set____db54di; } t2a() { return this.e2a_1.l2a_1; } u2a(_set____db54di) { this.e2a_1.m2a_1 = _set____db54di; } v2a() { return this.e2a_1.m2a_1; } w2a(_set____db54di) { this.e2a_1.n2a_1 = _set____db54di; } x2a() { return this.e2a_1.n2a_1; } y2a(_set____db54di) { this.e2a_1.i2a_1 = _set____db54di; } z2a() { return this.e2a_1.i2a_1; } a2b(_set____db54di) { this.e2a_1.j2a_1 = _set____db54di; } b2b() { return this.e2a_1.j2a_1; } c2b(_set____db54di) { this.e2a_1.k2a_1 = _set____db54di; } d2b() { return this.e2a_1.k2a_1; } e2b(value) { this.e2a_1.e2b(value); } f2b() { return this.e2a_1.f2b(); } } class IncompleteLocalTime { constructor(hour, hourOfAmPm, amPm, minute, second, nanosecond) { hour = hour === VOID ? null : hour; hourOfAmPm = hourOfAmPm === VOID ? null : hourOfAmPm; amPm = amPm === VOID ? null : amPm; minute = minute === VOID ? null : minute; second = second === VOID ? null : second; nanosecond = nanosecond === VOID ? null : nanosecond; this.i2a_1 = hour; this.j2a_1 = hourOfAmPm; this.k2a_1 = amPm; this.l2a_1 = minute; this.m2a_1 = second; this.n2a_1 = nanosecond; } y2a(_set____db54di) { this.i2a_1 = _set____db54di; } z2a() { return this.i2a_1; } a2b(_set____db54di) { this.j2a_1 = _set____db54di; } b2b() { return this.j2a_1; } c2b(_set____db54di) { this.k2a_1 = _set____db54di; } d2b() { return this.k2a_1; } s2a(_set____db54di) { this.l2a_1 = _set____db54di; } t2a() { return this.l2a_1; } u2a(_set____db54di) { this.m2a_1 = _set____db54di; } v2a() { return this.m2a_1; } w2a(_set____db54di) { this.n2a_1 = _set____db54di; } x2a() { return this.n2a_1; } o2a() { var tmp0_safe_receiver = this.i2a_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call var tmp0_safe_receiver_0 = this.j2a_1; if (tmp0_safe_receiver_0 == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.require' call if (!((((tmp0_safe_receiver + 11 | 0) % 12 | 0) + 1 | 0) === tmp0_safe_receiver_0)) { var message = 'Inconsistent hour and hour-of-am-pm: hour is ' + tmp0_safe_receiver + ', but hour-of-am-pm is ' + tmp0_safe_receiver_0; throw IllegalArgumentException.h(toString(message)); } } var tmp1_safe_receiver = this.k2a_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlin.require' call if (!(tmp1_safe_receiver.equals(AmPmMarker_PM_getInstance()) === tmp0_safe_receiver >= 12)) { var message_0 = 'Inconsistent hour and the AM/PM marker: hour is ' + tmp0_safe_receiver + ', but the AM/PM marker is ' + tmp1_safe_receiver.toString(); throw IllegalArgumentException.h(toString(message_0)); } } tmp = tmp0_safe_receiver; } var tmp1_elvis_lhs = tmp; var tmp_0; if (tmp1_elvis_lhs == null) { var tmp2_safe_receiver = this.j2a_1; var tmp_1; if (tmp2_safe_receiver == null) { tmp_1 = null; } else { // Inline function 'kotlin.let' call var tmp0_safe_receiver_1 = this.k2a_1; var tmp_2; if (tmp0_safe_receiver_1 == null) { tmp_2 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.let' call tmp_2 = (tmp2_safe_receiver === 12 ? 0 : tmp2_safe_receiver) + (tmp0_safe_receiver_1.equals(AmPmMarker_PM_getInstance()) ? 12 : 0) | 0; } tmp_1 = tmp_2; } tmp_0 = tmp_1; } else { tmp_0 = tmp1_elvis_lhs; } var tmp3_elvis_lhs = tmp_0; var tmp_3; if (tmp3_elvis_lhs == null) { throw DateTimeFormatException.n26('Incomplete time: missing hour'); } else { tmp_3 = tmp3_elvis_lhs; } var hour = tmp_3; var tmp_4 = requireParsedField(this.l2a_1, 'minute'); var tmp4_elvis_lhs = this.m2a_1; var tmp_5 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs; var tmp5_elvis_lhs = this.n2a_1; return new LocalTime(hour, tmp_4, tmp_5, tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs); } r2a(localTime) { this.i2a_1 = localTime.j2b_1; this.j2a_1 = ((localTime.j2b_1 + 11 | 0) % 12 | 0) + 1 | 0; this.k2a_1 = localTime.j2b_1 >= 12 ? AmPmMarker_PM_getInstance() : AmPmMarker_AM_getInstance(); this.l2a_1 = localTime.k2b_1; this.m2a_1 = localTime.l2b_1; this.n2a_1 = localTime.m2b_1; } b29() { return new IncompleteLocalTime(this.i2a_1, this.j2a_1, this.k2a_1, this.l2a_1, this.m2a_1, this.n2a_1); } equals(other) { var tmp; var tmp_0; var tmp_1; var tmp_2; var tmp_3; var tmp_4; if (other instanceof IncompleteLocalTime) { tmp_4 = this.i2a_1 == other.i2a_1; } else { tmp_4 = false; } if (tmp_4) { tmp_3 = this.j2a_1 == other.j2a_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = equals(this.k2a_1, other.k2a_1); } else { tmp_2 = false; } if (tmp_2) { tmp_1 = this.l2a_1 == other.l2a_1; } else { tmp_1 = false; } if (tmp_1) { tmp_0 = this.m2a_1 == other.m2a_1; } else { tmp_0 = false; } if (tmp_0) { tmp = this.n2a_1 == other.n2a_1; } else { tmp = false; } return tmp; } hashCode() { var tmp0_elvis_lhs = this.i2a_1; var tmp = imul(tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, 31); var tmp1_elvis_lhs = this.j2a_1; var tmp_0 = tmp + imul(tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, 31) | 0; var tmp2_safe_receiver = this.k2a_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hashCode(); var tmp_1 = tmp_0 + imul(tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs, 31) | 0; var tmp4_elvis_lhs = this.l2a_1; var tmp_2 = tmp_1 + imul(tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs, 31) | 0; var tmp5_elvis_lhs = this.m2a_1; var tmp_3 = tmp_2 + imul(tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs, 31) | 0; var tmp6_elvis_lhs = this.n2a_1; return tmp_3 + (tmp6_elvis_lhs == null ? 0 : tmp6_elvis_lhs) | 0; } toString() { var tmp0_elvis_lhs = this.i2a_1; var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs); var tmp1_elvis_lhs = this.l2a_1; var tmp_0 = toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs); var tmp2_elvis_lhs = this.m2a_1; var tmp_1 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs); var tmp3_safe_receiver = this.n2a_1; var tmp_2; if (tmp3_safe_receiver == null) { tmp_2 = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlin.let' call var it = tmp3_safe_receiver.toString(); tmp_2 = padStart(it, 9 - it.length | 0, _Char___init__impl__6a9atx(48)); } var tmp4_elvis_lhs = tmp_2; return tmp + ':' + tmp_0 + ':' + tmp_1 + '.' + (tmp4_elvis_lhs == null ? '???' : tmp4_elvis_lhs); } } class AmPmMarker extends Enum {} class Companion_6 { n2b(block) { var builder = new Builder_1(new AppendableFormatStructure()); block(builder); return new LocalTimeFormat(builder.d28()); } } class Builder_1 { constructor(actualBuilder) { this.o2b_1 = actualBuilder; } a28() { return this.o2b_1; } g28(structure) { this.o2b_1.e28(structure); } b28() { return new Builder_1(new AppendableFormatStructure()); } } class LocalTimeFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.p2b_1 = actualFormat; } y26() { return this.p2b_1; } q2b(value) { // Inline function 'kotlin.apply' call var this_0 = new IncompleteLocalTime(); this_0.r2a(value); return this_0; } z26(value) { return this.q2b(value instanceof LocalTime ? value : THROW_CCE()); } r2b(intermediate) { return intermediate.o2a(); } a27(intermediate) { return this.r2b(intermediate instanceof IncompleteLocalTime ? intermediate : THROW_CCE()); } b27() { return get_emptyIncompleteLocalTime(); } } class HourDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = TimeFields_getInstance().s2b_1; // Inline function 'kotlinx.datetime.format.minDigits' call var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1; // Inline function 'kotlinx.datetime.format.spaces' call super(tmp, tmp_0, padding.equals(Padding_SPACE_getInstance()) ? 2 : null); this.c2c_1 = padding; } equals(other) { var tmp; if (other instanceof HourDirective) { tmp = this.c2c_1.equals(other.c2c_1); } else { tmp = false; } return tmp; } hashCode() { return this.c2c_1.hashCode(); } } class MinuteDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = TimeFields_getInstance().t2b_1; // Inline function 'kotlinx.datetime.format.minDigits' call var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1; // Inline function 'kotlinx.datetime.format.spaces' call super(tmp, tmp_0, padding.equals(Padding_SPACE_getInstance()) ? 2 : null); this.h2c_1 = padding; } equals(other) { var tmp; if (other instanceof MinuteDirective) { tmp = this.h2c_1.equals(other.h2c_1); } else { tmp = false; } return tmp; } hashCode() { return this.h2c_1.hashCode(); } } class SecondDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = TimeFields_getInstance().u2b_1; // Inline function 'kotlinx.datetime.format.minDigits' call var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1; // Inline function 'kotlinx.datetime.format.spaces' call super(tmp, tmp_0, padding.equals(Padding_SPACE_getInstance()) ? 2 : null); this.m2c_1 = padding; } equals(other) { var tmp; if (other instanceof SecondDirective) { tmp = this.m2c_1.equals(other.m2c_1); } else { tmp = false; } return tmp; } hashCode() { return this.m2c_1.hashCode(); } } class Companion_7 { constructor() { Companion_instance_7 = this; this.n2c_1 = listOf([0, 0, 0, 0, 0, 0, 0, 0, 0]); this.o2c_1 = listOf([2, 1, 0, 2, 1, 0, 2, 1, 0]); } } class DecimalFractionFieldFormatDirective { constructor(field, minDigits, maxDigits, zerosToAdd) { this.v2c_1 = field; this.w2c_1 = minDigits; this.x2c_1 = maxDigits; this.y2c_1 = zerosToAdd; } x29() { return this.v2c_1; } f27() { return new DecimalFractionFormatterStructure(Accessor$getterNotNull$ref_0(this.v2c_1.j2e()), this.w2c_1, this.x2c_1, this.y2c_1); } h27() { return new ParserStructure(listOf_0(new NumberSpanParserOperation(listOf_0(new FractionPartConsumer(this.w2c_1, this.x2c_1, this.v2c_1.j2e(), this.v2c_1.h3())))), emptyList()); } } class FractionalSecondDirective extends DecimalFractionFieldFormatDirective { constructor(minDigits, maxDigits, zerosToAdd) { Companion_getInstance_7(); zerosToAdd = zerosToAdd === VOID ? Companion_getInstance_7().n2c_1 : zerosToAdd; super(TimeFields_getInstance().v2b_1, minDigits, maxDigits, zerosToAdd); this.t2c_1 = minDigits; this.u2c_1 = maxDigits; } equals(other) { var tmp; var tmp_0; if (other instanceof FractionalSecondDirective) { tmp_0 = this.t2c_1 === other.t2c_1; } else { tmp_0 = false; } if (tmp_0) { tmp = this.u2c_1 === other.u2c_1; } else { tmp = false; } return tmp; } hashCode() { return imul(31, this.t2c_1) + this.u2c_1 | 0; } } class TimeFields { constructor() { TimeFields_instance = this; var tmp = this; var tmp_0 = KMutableProperty1; var tmp_1 = TimeFieldContainer$_get_hour_$ref_8ezbwm(); tmp.s2b_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('hour', 1, tmp_0, tmp_1, TimeFieldContainer$_set_hour_$ref_l7vnde())), 0, 23); var tmp_2 = this; var tmp_3 = KMutableProperty1; var tmp_4 = TimeFieldContainer$_get_minute_$ref_evb2i2(); tmp_2.t2b_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('minute', 1, tmp_3, tmp_4, TimeFieldContainer$_set_minute_$ref_6xin6())), 0, 59); var tmp_5 = this; var tmp_6 = KMutableProperty1; var tmp_7 = TimeFieldContainer$_get_second_$ref_t7tjxy(); tmp_5.u2b_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('second', 1, tmp_6, tmp_7, TimeFieldContainer$_set_second_$ref_qr1wvy())), 0, 59, VOID, 0); var tmp_8 = this; var tmp_9 = KMutableProperty1; var tmp_10 = TimeFieldContainer$_get_fractionOfSecond_$ref_u85by5(); tmp_8.v2b_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('fractionOfSecond', 1, tmp_9, tmp_10, TimeFieldContainer$_set_fractionOfSecond_$ref_quw20n()), 'nanosecond'), VOID, new DecimalFraction(0, 9)); var tmp_11 = this; var tmp_12 = KMutableProperty1; var tmp_13 = TimeFieldContainer$_get_amPm_$ref_u9tt1b(); tmp_11.w2b_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('amPm', 1, tmp_12, tmp_13, TimeFieldContainer$_set_amPm_$ref_hgxhkj()))); var tmp_14 = this; var tmp_15 = KMutableProperty1; var tmp_16 = TimeFieldContainer$_get_hourOfAmPm_$ref_okyxye(); tmp_14.x2b_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('hourOfAmPm', 1, tmp_15, tmp_16, TimeFieldContainer$_set_hourOfAmPm_$ref_y4i32())), 1, 12); } } class IncompleteYearMonth { constructor(year, monthNumber) { year = year === VOID ? null : year; monthNumber = monthNumber === VOID ? null : monthNumber; this.c29_1 = year; this.d29_1 = monthNumber; } z28(_set____db54di) { this.c29_1 = _set____db54di; } s28() { return this.c29_1; } a29(_set____db54di) { this.d29_1 = _set____db54di; } x28() { return this.d29_1; } z2c() { var year = requireParsedField(this.c29_1, 'year'); var month = requireParsedField(this.d29_1, 'monthNumber'); return new YearMonth(year, month); } a2d(yearMonth) { this.c29_1 = yearMonth.b2d_1; this.d29_1 = get_number(yearMonth.w28()); } b29() { return new IncompleteYearMonth(this.c29_1, this.d29_1); } equals(other) { var tmp; var tmp_0; if (other instanceof IncompleteYearMonth) { tmp_0 = this.c29_1 == other.c29_1; } else { tmp_0 = false; } if (tmp_0) { tmp = this.d29_1 == other.d29_1; } else { tmp = false; } return tmp; } hashCode() { // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver = this.c29_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs; var tmp = imul(tmp$ret$0, 31); // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_0 = this.d29_1; var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0); return tmp + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0; } toString() { var tmp0_elvis_lhs = this.c29_1; var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs); var tmp1_elvis_lhs = this.d29_1; return tmp + '-' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs); } } class Companion_8 { d2d(block) { var builder = new Builder_2(new AppendableFormatStructure()); block(builder); return new YearMonthFormat(builder.d28()); } } class Builder_2 { constructor(actualBuilder) { this.e2d_1 = actualBuilder; } a28() { return this.e2d_1; } h29(structure) { return this.e2d_1.e28(structure); } b28() { return new Builder_2(new AppendableFormatStructure()); } } class YearMonthFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.f2d_1 = actualFormat; } y26() { return this.f2d_1; } g2d(value) { // Inline function 'kotlin.apply' call var this_0 = new IncompleteYearMonth(); this_0.a2d(value); return this_0; } z26(value) { return this.g2d(value instanceof YearMonth ? value : THROW_CCE()); } h2d(intermediate) { return intermediate.z2c(); } a27(intermediate) { return this.h2d(intermediate instanceof IncompleteYearMonth ? intermediate : THROW_CCE()); } b27() { return get_emptyIncompleteYearMonth(); } } class SignedIntFieldFormatDirective { constructor(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) { this.r2d_1 = field; this.s2d_1 = minDigits; this.t2d_1 = maxDigits; this.u2d_1 = spacePadding; this.v2d_1 = outputPlusOnExceededWidth; // Inline function 'kotlin.require' call if (!(this.s2d_1 == null || this.s2d_1 >= 0)) { var message = 'The minimum number of digits (' + this.s2d_1 + ') is negative'; throw IllegalArgumentException.h(toString(message)); } // Inline function 'kotlin.require' call if (!(this.t2d_1 == null || this.s2d_1 == null || this.t2d_1 >= this.s2d_1)) { var message_0 = 'The maximum number of digits (' + this.t2d_1 + ') is less than the minimum number of digits (' + this.s2d_1 + ')'; throw IllegalArgumentException.h(toString(message_0)); } } x29() { return this.r2d_1; } f27() { var tmp = Accessor$getterNotNull$ref_1(this.r2d_1.j2e()); var tmp0_elvis_lhs = this.s2d_1; var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.v2d_1); return !(this.u2d_1 == null) ? new SpacePaddedFormatter(formatter, this.u2d_1) : formatter; } h27() { return SignedIntParser(this.s2d_1, this.t2d_1, this.u2d_1, this.r2d_1.j2e(), this.r2d_1.h3(), this.v2d_1); } } class YearDirective extends SignedIntFieldFormatDirective { constructor(padding, isYearOfEra) { isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra; var tmp = YearMonthFields_getInstance().i2d_1; // Inline function 'kotlinx.datetime.format.minDigits' call var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1; // Inline function 'kotlinx.datetime.format.spaces' call super(tmp, tmp_0, null, padding.equals(Padding_SPACE_getInstance()) ? 4 : null, 4); this.p2d_1 = padding; this.q2d_1 = isYearOfEra; } equals(other) { var tmp; var tmp_0; if (other instanceof YearDirective) { tmp_0 = this.p2d_1.equals(other.p2d_1); } else { tmp_0 = false; } if (tmp_0) { tmp = this.q2d_1 === other.q2d_1; } else { tmp = false; } return tmp; } hashCode() { return imul(this.p2d_1.hashCode(), 31) + getBooleanHashCode(this.q2d_1) | 0; } } class MonthDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = YearMonthFields_getInstance().j2d_1; // Inline function 'kotlinx.datetime.format.minDigits' call var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1; // Inline function 'kotlinx.datetime.format.spaces' call super(tmp, tmp_0, padding.equals(Padding_SPACE_getInstance()) ? 2 : null); this.a2e_1 = padding; } equals(other) { var tmp; if (other instanceof MonthDirective) { tmp = this.a2e_1.equals(other.a2e_1); } else { tmp = false; } return tmp; } hashCode() { return this.a2e_1.hashCode(); } } class YearMonthFields { constructor() { YearMonthFields_instance = this; var tmp = this; var tmp_0 = KMutableProperty1; var tmp_1 = YearMonthFieldContainer$_get_year_$ref_7j3zdj(); tmp.i2d_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub()))); var tmp_2 = this; var tmp_3 = KMutableProperty1; var tmp_4 = YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5(); tmp_2.j2d_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12); } } class AppendableFormatStructure { constructor() { var tmp = this; // Inline function 'kotlin.collections.mutableListOf' call tmp.c28_1 = ArrayList.x(); } d28() { return new ConcatenatedFormatStructure(this.c28_1); } e28(format) { if (isInterface(format, NonConcatenatedFormatStructure)) this.c28_1.s(format); else { if (format instanceof ConcatenatedFormatStructure) { // Inline function 'kotlin.collections.forEach' call var _iterator__ex2g4s = format.f28_1.z(); while (_iterator__ex2g4s.a1()) { var element = _iterator__ex2g4s.b1(); this.c28_1.s(element); } } else { noWhenBranchMatchedException(); } } } } class AbstractFieldSpec { toString() { return 'The field ' + this.h3() + ' (default value is ' + toString_1(this.o2e()) + ')'; } } class GenericFieldSpec extends AbstractFieldSpec { constructor(accessor, name, defaultValue, sign) { name = name === VOID ? accessor.h3() : name; defaultValue = defaultValue === VOID ? null : defaultValue; sign = sign === VOID ? null : sign; super(); this.k2e_1 = accessor; this.l2e_1 = name; this.m2e_1 = defaultValue; this.n2e_1 = sign; } j2e() { return this.k2e_1; } h3() { return this.l2e_1; } o2e() { return this.m2e_1; } } class Accessor {} function getterNotNull(container) { var tmp0_elvis_lhs = this.t2e(container); var tmp; if (tmp0_elvis_lhs == null) { throw IllegalStateException.a6('Field ' + this.h3() + ' is not set'); } else { tmp = tmp0_elvis_lhs; } return tmp; } class PropertyAccessor { constructor(property, name) { name = name === VOID ? property.callableName : name; this.p2e_1 = property; this.q2e_1 = name; } h3() { return this.q2e_1; } r2e(container, newValue) { var oldValue = this.p2e_1.get(container); var tmp; if (oldValue === null) { this.p2e_1.set(container, newValue); tmp = null; } else if (equals(oldValue, newValue)) { tmp = nul