UNPKG

@kform/core

Version:

JavaScript bindings for KForm.

1,575 lines 210 kB
import { Instant as Instant, LocalDate as LocalDate, LocalDateTime as LocalDateTime, LocalTime as LocalTime, ZoneOffset as ZoneOffset, DateTimeFormatterBuilder as DateTimeFormatterBuilder, ResolverStyle as ResolverStyle, } from '@js-joda/core'; import { initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion, Long2qws0ah9gnpki as Long, IllegalArgumentException2asla15b5jaob as IllegalArgumentException, toString1pkumu07cwy4m as toString, toLongw1zpgk99d84b as toLong, initMetadataForClassbxx6q50dy2s7 as initMetadataForClass, VOID7hggqo3abtya as VOID, captureStack1fzi4aczwc4hg as captureStack, RuntimeException1r3t0zl97011n as RuntimeException, getStringHashCode26igk1bx568vk as getStringHashCode, _Char___init__impl__6a9atx367vrx0avsvbg as _Char___init__impl__6a9atx, Unit_instance14hm69wy3kr8u as Unit_instance, initMetadataForObject1cxne3s9w65el as initMetadataForObject, ensureNotNull1e947j3ixpazm as ensureNotNull, ArithmeticException18dajwq7kbp38 as ArithmeticException, protoOf180f3jzyo7rfj as protoOf, THROW_CCE2g6jy02ryeudk as THROW_CCE, KMutableProperty11e8g1gb0ecb9j as KMutableProperty1, getPropertyCallableRef1ajb9in178r5r as getPropertyCallableRef, KMutableProperty025txtn5b59pq1 as KMutableProperty0, Enum3alwj03lh1n41 as Enum, initMetadataForInterface1egvbzx539z91 as initMetadataForInterface, toString14fd7g605f91p as toString_0, IllegalStateExceptionkoljg5n0nrlr as IllegalStateException, isInterface3d6p8outrmvmk as isInterface, isArray1hxjqtqy632bc as isArray, ArrayList3it5z8td81qkl as ArrayList, hashCodeq5arwsb9dgti as hashCode, listOf1jh22dvmctj1r as listOf, get_indices3txodfl5wuu5j as get_indices, charSequenceLength3278n89t01tmv as charSequenceLength, joinToString1cxrrlmo0chqs as joinToString, equals2au1ep9vhcato as equals, getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode, KProperty02ce7r476m8633 as KProperty0, lazy2hsh8ze7j6ikd as lazy, padStart36w1507hs626a as padStart, getOrNull1go7ef9ldk0df as getOrNull, listOfvhqybd2zx248 as listOf_0, emptyList1g2z5xcrvp2zy as emptyList, toString30pk9tzaqopn as toString_1, charSequenceGet1vxk1y5n17t1z as charSequenceGet, get_lastIndexld83bqhfgcdd as get_lastIndex, toSet2orjxp16sotqu as toSet, collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault, distinct10qe1scfdvu5k as distinct, to2cs3ny02qtbcb as to, singleo93pzdgfc557 as single, Collection1k04j3hzsbod0 as Collection, charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence, numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber, mutableListOf6oorvk2mtdmp as mutableListOf, removeLastOrNull3odnlbetbttd4 as removeLastOrNull, sortWith4fnm6b3vw03s as sortWith, FunctionAdapter3lcrrz3moet5b as FunctionAdapter, Comparator2b3maoeh98xtg as Comparator, compareValues1n2ayl87ihzfk as compareValues, Exceptiondt2hlxn7j7vw as Exception, StringBuildermazzzhj6kkai as StringBuilder, joinTo3lkanfaxbzac2 as joinTo, plus310ted5e4i90h as plus, toMutableList20rdgwi7d3cwi as toMutableList, addAll1k27qatfgp3k5 as addAll, firstOrNull1982767dljvdy as firstOrNull, drop3na99dw9feawf as drop, repeat2w4c6j8zoq09o as repeat, sortedWith2csnbbb21k0lg as sortedWith, binarySearchyyczvdessj07 as binarySearch, startsWith641pyr7vf687 as startsWith, checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow, compareTo3ankvs086tmwq as compareTo, removePrefix279df90bhrqqg as removePrefix, UnsupportedOperationException2tkumpmhredt3 as UnsupportedOperationException, Comparable198qfk8pnblz0 as Comparable, Char__minus_impl_a2frrh15zl6plytfjgc as Char__minus_impl_a2frrh, contains2el4s70rdq4ld as contains, indexOf1xbs558u7wr52 as indexOf, isCharSequence1ju9jr1w86plq as isCharSequence, removeRange2614yh20qvds6 as removeRange, enumEntries20mr21zbe3az4 as enumEntries, numberToLong1a4cndvg6c52s as numberToLong, createThis2j2avj17cvnv2 as createThis, numberToInt1ygmcfwhs2fkq as numberToInt, noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException, numberToDouble210hrknaofnhf as numberToDouble, } 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(); } m1t(value, unit) { return value === 1 ? unit : '' + value + '-' + unit; } l1t(value, unit) { return value.equals(new Long(1, 0)) ? unit : value.toString() + '-' + unit; } } class TimeBased extends DateTimeUnit { constructor(nanoseconds) { super(); this.h1t_1 = nanoseconds; // Inline function 'kotlin.require' call if (!(this.h1t_1.w1(new Long(0, 0)) > 0)) { // Inline function 'kotlinx.datetime.TimeBased.<anonymous>' call var message = 'Unit duration must be positive, but was ' + this.h1t_1.toString() + ' ns.'; throw IllegalArgumentException.h(toString(message)); } if (this.h1t_1.t3(new Long(817405952, 838)).equals(new Long(0, 0))) { this.i1t_1 = 'HOUR'; this.j1t_1 = this.h1t_1.s3(new Long(817405952, 838)); } else { if (this.h1t_1.t3(new Long(-129542144, 13)).equals(new Long(0, 0))) { this.i1t_1 = 'MINUTE'; this.j1t_1 = this.h1t_1.s3(new Long(-129542144, 13)); } else { var tmp1 = this.h1t_1; // Inline function 'kotlin.Long.rem' call var other = 1000000000; if (tmp1.t3(toLong(other)).equals(new Long(0, 0))) { this.i1t_1 = 'SECOND'; var tmp = this; var tmp3 = this.h1t_1; // Inline function 'kotlin.Long.div' call var other_0 = 1000000000; tmp.j1t_1 = tmp3.s3(toLong(other_0)); } else { // Inline function 'kotlin.Long.rem' call if (this.h1t_1.t3(toLong(1000000)).equals(new Long(0, 0))) { this.i1t_1 = 'MILLISECOND'; var tmp_0 = this; // Inline function 'kotlin.Long.div' call tmp_0.j1t_1 = this.h1t_1.s3(toLong(1000000)); } else { // Inline function 'kotlin.Long.rem' call if (this.h1t_1.t3(toLong(1000)).equals(new Long(0, 0))) { this.i1t_1 = 'MICROSECOND'; var tmp_1 = this; // Inline function 'kotlin.Long.div' call tmp_1.j1t_1 = this.h1t_1.s3(toLong(1000)); } else { this.i1t_1 = 'NANOSECOND'; this.j1t_1 = this.h1t_1; } } } } } } k1t(scalar) { return new TimeBased(safeMultiply(this.h1t_1, toLong(scalar))); } equals(other) { var tmp; if (this === other) { tmp = true; } else { var tmp_0; if (other instanceof TimeBased) { tmp_0 = this.h1t_1.equals(other.h1t_1); } else { tmp_0 = false; } tmp = tmp_0; } return tmp; } hashCode() { return this.h1t_1.y1() ^ this.h1t_1.z3(32).y1(); } toString() { return this.l1t(this.j1t_1, this.i1t_1); } } class DateBased extends DateTimeUnit {} class DayBased extends DateBased { constructor(days) { super(); this.n1t_1 = days; // Inline function 'kotlin.require' call if (!(this.n1t_1 > 0)) { // Inline function 'kotlinx.datetime.DayBased.<anonymous>' call var message = 'Unit duration must be positive, but was ' + this.n1t_1 + ' days.'; throw IllegalArgumentException.h(toString(message)); } } k1t(scalar) { return new DayBased(safeMultiply_0(this.n1t_1, scalar)); } equals(other) { var tmp; if (this === other) { tmp = true; } else { var tmp_0; if (other instanceof DayBased) { tmp_0 = this.n1t_1 === other.n1t_1; } else { tmp_0 = false; } tmp = tmp_0; } return tmp; } hashCode() { return this.n1t_1 ^ 65536; } toString() { return (this.n1t_1 % 7 | 0) === 0 ? this.m1t(this.n1t_1 / 7 | 0, 'WEEK') : this.m1t(this.n1t_1, 'DAY'); } } class MonthBased extends DateBased { constructor(months) { super(); this.o1t_1 = months; // Inline function 'kotlin.require' call if (!(this.o1t_1 > 0)) { // Inline function 'kotlinx.datetime.MonthBased.<anonymous>' call var message = 'Unit duration must be positive, but was ' + this.o1t_1 + ' months.'; throw IllegalArgumentException.h(toString(message)); } } k1t(scalar) { return new MonthBased(safeMultiply_0(this.o1t_1, scalar)); } equals(other) { var tmp; if (this === other) { tmp = true; } else { var tmp_0; if (other instanceof MonthBased) { tmp_0 = this.o1t_1 === other.o1t_1; } else { tmp_0 = false; } tmp = tmp_0; } return tmp; } hashCode() { return this.o1t_1 ^ 131072; } toString() { return (this.o1t_1 % 1200 | 0) === 0 ? this.m1t(this.o1t_1 / 1200 | 0, 'CENTURY') : (this.o1t_1 % 12 | 0) === 0 ? this.m1t(this.o1t_1 / 12 | 0, 'YEAR') : (this.o1t_1 % 3 | 0) === 0 ? this.m1t(this.o1t_1 / 3 | 0, 'QUARTER') : this.m1t(this.o1t_1, 'MONTH'); } } class Companion_3 { constructor() { Companion_instance_3 = this; this.p1t_1 = new TimeBased(new Long(1, 0)); this.q1t_1 = this.p1t_1.k1t(1000); this.r1t_1 = this.q1t_1.k1t(1000); this.s1t_1 = this.r1t_1.k1t(1000); this.t1t_1 = this.s1t_1.k1t(60); this.u1t_1 = this.t1t_1.k1t(60); this.v1t_1 = new DayBased(1); this.w1t_1 = this.v1t_1.k1t(7); this.x1t_1 = new MonthBased(1); this.y1t_1 = this.x1t_1.k1t(3); this.z1t_1 = this.x1t_1.k1t(12); this.a1u_1 = this.z1t_1.k1t(100); } } class DateTimeFormatException extends IllegalArgumentException { static f1u() { var $this = this.xe(); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } static g1u(message) { var $this = this.h(message); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } static h1u(cause) { var $this = this.af(cause); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } static i1u(message, cause) { var $this = this.ye(message, cause); init_kotlinx_datetime_DateTimeFormatException($this); return $this; } } class DateTimeArithmeticException extends RuntimeException { static m1u() { var $this = this.g2(); init_kotlinx_datetime_DateTimeArithmeticException($this); return $this; } static n1u(message, cause) { var $this = this.ze(message, cause); init_kotlinx_datetime_DateTimeArithmeticException($this); return $this; } } class TimeFieldContainer {} function set_fractionOfSecond(value) { this.a1w(value == null ? null : value.p22(9)); } function get_fractionOfSecond() { var tmp0_safe_receiver = this.b1w(); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // Inline function 'kotlinx.datetime.format.TimeFieldContainer.<get-fractionOfSecond>.<anonymous>' call tmp = new DecimalFraction(tmp0_safe_receiver, 9); } return tmp; } class UtcOffsetFieldContainer {} class DateTimeComponentsContents { constructor(date, time, offset, timeZoneId) { date = date === VOID ? new IncompleteLocalDate() : date; time = time === VOID ? new IncompleteLocalTime() : time; offset = offset === VOID ? new IncompleteUtcOffset() : offset; timeZoneId = timeZoneId === VOID ? null : timeZoneId; this.r1u_1 = date; this.s1u_1 = time; this.t1u_1 = offset; this.u1u_1 = timeZoneId; } v1u(_set____db54di) { this.r1u_1.y1u_1 = _set____db54di; } b1v() { return this.r1u_1.y1u_1; } c1v(_set____db54di) { this.r1u_1.a1v_1 = _set____db54di; } d1v() { return this.r1u_1.a1v_1; } e1v(_set____db54di) { this.r1u_1.z1u_1 = _set____db54di; } f1v() { return this.r1u_1.z1u_1; } g1v(_set____db54di) { this.r1u_1.x1u_1 = _set____db54di; } h1v() { return this.r1u_1.x1u_1; } i1v(_set____db54di) { this.r1u_1.w1u_1 = _set____db54di; } j1v() { return this.r1u_1.w1u_1; } k1v(_set____db54di) { this.s1u_1.n1v_1 = _set____db54di; } r1v() { return this.s1u_1.n1v_1; } s1v(value) { this.s1u_1.s1v(value); } t1v() { return this.s1u_1.t1v(); } u1v(_set____db54di) { this.s1u_1.l1v_1 = _set____db54di; } v1v() { return this.s1u_1.l1v_1; } w1v(_set____db54di) { this.s1u_1.m1v_1 = _set____db54di; } x1v() { return this.s1u_1.m1v_1; } y1v(_set____db54di) { this.s1u_1.o1v_1 = _set____db54di; } z1v() { return this.s1u_1.o1v_1; } a1w(_set____db54di) { this.s1u_1.q1v_1 = _set____db54di; } b1w() { return this.s1u_1.q1v_1; } c1w(_set____db54di) { this.s1u_1.p1v_1 = _set____db54di; } d1w() { return this.s1u_1.p1v_1; } e1w(_set____db54di) { this.t1u_1.f1w_1 = _set____db54di; } j1w() { return this.t1u_1.f1w_1; } k1w(_set____db54di) { this.t1u_1.h1w_1 = _set____db54di; } l1w() { return this.t1u_1.h1w_1; } m1w(_set____db54di) { this.t1u_1.i1w_1 = _set____db54di; } n1w() { return this.t1u_1.i1w_1; } o1w(_set____db54di) { this.t1u_1.g1w_1 = _set____db54di; } p1w() { return this.t1u_1.g1w_1; } q1w() { return new DateTimeComponentsContents(this.r1u_1.q1w(), this.s1u_1.q1w(), this.t1u_1.q1w(), this.u1u_1); } equals(other) { var tmp; var tmp_0; var tmp_1; var tmp_2; if (other instanceof DateTimeComponentsContents) { tmp_2 = other.r1u_1.equals(this.r1u_1); } else { tmp_2 = false; } if (tmp_2) { tmp_1 = other.s1u_1.equals(this.s1u_1); } else { tmp_1 = false; } if (tmp_1) { tmp_0 = other.t1u_1.equals(this.t1u_1); } else { tmp_0 = false; } if (tmp_0) { tmp = other.u1u_1 == this.u1u_1; } else { tmp = false; } return tmp; } hashCode() { var tmp = this.r1u_1.hashCode() ^ this.s1u_1.hashCode() ^ this.t1u_1.hashCode(); var tmp0_safe_receiver = this.u1u_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); return tmp ^ (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs); } } class Companion_4 { i1x(block) { var builder = new Builder(new AppendableFormatStructure()); block(builder); return new DateTimeComponentsFormat(builder.j1x()); } } class Formats { constructor() { Formats_instance = this; var tmp = this; var tmp_0 = Companion_instance_4; tmp.k1x_1 = tmp_0.i1x(DateTimeComponents$Formats$ISO_DATE_TIME_OFFSET$lambda); var tmp_1 = this; var tmp_2 = Companion_instance_4; tmp_1.l1x_1 = tmp_2.i1x(DateTimeComponents$Formats$RFC_1123$lambda); } } class DateTimeComponents { constructor(contents) { contents = contents === VOID ? new DateTimeComponentsContents() : contents; this.m1x_1 = contents; this.n1x_1 = year$factory(this.m1x_1.r1u_1); this.o1x_1 = new TwoDigitNumber(monthNumber$factory(this.m1x_1.r1u_1)); this.p1x_1 = new TwoDigitNumber(dayOfMonth$factory(this.m1x_1.r1u_1)); this.q1x_1 = new ThreeDigitNumber(dayOfYear$factory(this.m1x_1.r1u_1)); this.r1x_1 = new TwoDigitNumber(hour$factory(this.m1x_1.s1u_1)); this.s1x_1 = new TwoDigitNumber(hourOfAmPm$factory(this.m1x_1.s1u_1)); this.t1x_1 = amPm$factory(this.m1x_1.s1u_1); this.u1x_1 = new TwoDigitNumber(minute$factory(this.m1x_1.s1u_1)); this.v1x_1 = new TwoDigitNumber(second$factory(this.m1x_1.s1u_1)); this.w1x_1 = isNegative$factory(this.m1x_1.t1u_1); this.x1x_1 = new TwoDigitNumber(totalHoursAbs$factory(this.m1x_1.t1u_1)); this.y1x_1 = new TwoDigitNumber(minutesOfHour$factory(this.m1x_1.t1u_1)); this.z1x_1 = new TwoDigitNumber(secondsOfMinute$factory(this.m1x_1.t1u_1)); this.a1y_1 = timeZoneId$factory_0(this.m1x_1); } i1v(_set____db54di) { var tmp0 = this.n1x_1; year$factory_0(); tmp0.set(_set____db54di); return Unit_instance; } j1v() { var tmp0 = this.n1x_1; // Inline function 'kotlin.getValue' call year$factory_1(); return tmp0.get(); } b1w() { return this.m1x_1.s1u_1.q1v_1; } b1y() { return this.m1x_1.t1u_1.b1y(); } c1y() { return this.m1x_1.s1u_1.c1y(); } d1y() { var offset = this.b1y(); var time = this.c1y(); var truncatedDate = this.m1x_1.r1u_1.q1w(); truncatedDate.w1u_1 = requireParsedField(truncatedDate.w1u_1, 'year') % 10000 | 0; var tmp; try { var secDelta = safeMultiply(toLong(ensureNotNull(this.j1v()) / 10000 | 0), new Long(2036907392, 73)); var epochDays = toLong(truncatedDate.e1y().g1y()); // Inline function 'kotlin.Long.times' call var tmp2 = epochDays.r3(toLong(86400)); // Inline function 'kotlin.Long.plus' call var other = time.i1y(); var tmp4 = tmp2.p3(toLong(other)); // Inline function 'kotlin.Long.minus' call var other_0 = offset.k1y(); var tmp$ret$2 = tmp4.q3(toLong(other_0)); tmp = safeAdd(secDelta, tmp$ret$2); } catch ($p) { var tmp_0; if ($p instanceof ArithmeticException) { var e = $p; throw DateTimeFormatException.i1u('The parsed date is outside the range representable by Instant', e); } else { throw $p; } } var totalSeconds = tmp; if (totalSeconds.w1(Companion_getInstance_14().n1y_1.q1y()) < 0 || totalSeconds.w1(Companion_getInstance_14().o1y_1.q1y()) > 0) throw DateTimeFormatException.g1u('The parsed date is outside the range representable by Instant'); var tmp_1 = Companion_getInstance_14(); var tmp0_elvis_lhs = this.b1w(); return tmp_1.r1y(totalSeconds, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs); } } 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 'kotlinx.datetime.format.AbstractDateTimeFormatBuilder.appendAlternativeParsingImpl.<anonymous>' call // Inline function 'kotlin.also' call var this_0 = this.y1y(); // Inline function 'kotlinx.datetime.format.AbstractDateTimeFormatBuilder.appendAlternativeParsingImpl.<anonymous>.<anonymous>' call item(this_0); var tmp$ret$1 = this_0.t1y().j1x(); destination.s(tmp$ret$1); } var others = destination; // Inline function 'kotlin.also' call var this_1 = this.y1y(); // Inline function 'kotlinx.datetime.format.AbstractDateTimeFormatBuilder.appendAlternativeParsingImpl.<anonymous>' call mainFormat(this_1); var main = this_1.t1y().j1x(); this.t1y().w1y(new AlternativesParsingFormatStructure(main, others)); } function appendOptionalImpl(onZero, format) { var tmp = this.t1y(); // Inline function 'kotlin.also' call var this_0 = this.y1y(); // Inline function 'kotlinx.datetime.format.AbstractDateTimeFormatBuilder.appendOptionalImpl.<anonymous>' call format(this_0); tmp.w1y(new OptionalFormatStructure(onZero, this_0.t1y().j1x())); } function chars(value) { return this.t1y().w1y(new ConstantFormatStructure(value)); } function build() { return new CachedFormatStructure(this.t1y().j1x().c20_1); } class WithDate {} function year$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.d1z(padding); tmp = Unit_instance; } else { tmp = $super.d1z.call(this, padding); } return tmp; } function monthNumber$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.e1z(padding); tmp = Unit_instance; } else { tmp = $super.e1z.call(this, padding); } return tmp; } function dayOfMonth$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.y1w(padding); tmp = Unit_instance; } else { tmp = $super.y1w.call(this, padding); } return tmp; } class AbstractWithDateBuilder {} function year(padding) { return this.b1z(new BasicFormatStructure(new YearDirective(padding))); } function monthNumber(padding) { return this.b1z(new BasicFormatStructure(new MonthDirective(padding))); } function monthName(names) { return this.b1z(new BasicFormatStructure(new MonthNameDirective(names))); } function dayOfMonth(padding) { return this.b1z(new BasicFormatStructure(new DayDirective(padding))); } function dayOfWeek(names) { return this.b1z(new BasicFormatStructure(new DayOfWeekDirective(names))); } function date(format) { var tmp; if (format instanceof LocalDateFormat) { this.b1z(format.k20_1); tmp = Unit_instance; } return tmp; } class WithTime {} function hour$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.h1z(padding); tmp = Unit_instance; } else { tmp = $super.h1z.call(this, padding); } return tmp; } function minute$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.i1z(padding); tmp = Unit_instance; } else { tmp = $super.i1z.call(this, padding); } return tmp; } function second$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.j1z(padding); tmp = Unit_instance; } else { tmp = $super.j1z.call(this, padding); } return tmp; } class AbstractWithTimeBuilder {} function hour(padding) { return this.c1z(new BasicFormatStructure(new HourDirective(padding))); } function minute(padding) { return this.c1z(new BasicFormatStructure(new MinuteDirective(padding))); } function second(padding) { return this.c1z(new BasicFormatStructure(new SecondDirective(padding))); } function secondFraction(minLength, maxLength) { return this.c1z(new BasicFormatStructure(new FractionalSecondDirective(minLength, maxLength))); } function time(format) { var tmp; if (format instanceof LocalTimeFormat) { this.c1z(format.t22_1); tmp = Unit_instance; } return tmp; } class AbstractWithDateTimeBuilder {} function addFormatStructureForDate(structure) { this.u1y(structure); } function addFormatStructureForTime(structure) { this.u1y(structure); } class WithUtcOffset {} function offsetHours$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.l1z(padding); tmp = Unit_instance; } else { tmp = $super.l1z.call(this, padding); } return tmp; } function offsetMinutesOfHour$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.m1z(padding); tmp = Unit_instance; } else { tmp = $super.m1z.call(this, padding); } return tmp; } function offsetSecondsOfMinute$default(padding, $super) { padding = padding === VOID ? Padding_ZERO_getInstance() : padding; var tmp; if ($super === VOID) { this.o1z(padding); tmp = Unit_instance; } else { tmp = $super.o1z.call(this, padding); } return tmp; } class AbstractWithOffsetBuilder {} function offsetHours(padding) { return this.x1y(new SignedFormatStructure(new BasicFormatStructure(new UtcOffsetWholeHoursDirective(padding)), true)); } function offsetMinutesOfHour(padding) { return this.x1y(new BasicFormatStructure(new UtcOffsetMinuteOfHourDirective(padding))); } function offsetSecondsOfMinute(padding) { return this.x1y(new BasicFormatStructure(new UtcOffsetSecondOfMinuteDirective(padding))); } function offset(format) { var tmp; if (format instanceof UtcOffsetFormat) { this.x1y(format.n24_1); tmp = Unit_instance; } return tmp; } class Builder { constructor(actualBuilder) { this.s1y_1 = actualBuilder; } t1y() { return this.s1y_1; } u1y(structure) { this.s1y_1.w1y(structure); } x1y(structure) { this.s1y_1.w1y(structure); } y1y() { return new Builder(new AppendableFormatStructure()); } } class AbstractDateTimeFormat { v1z(input) { var tmp; try { tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.r1z().b20()), input, this.u1z()); } catch ($p) { var tmp_0; if ($p instanceof ParseException) { var e = $p; throw DateTimeFormatException.i1u("Failed to parse value from '" + toString(input) + "'", e); } else { throw $p; } } var matched = tmp; try { return this.t1z(matched); } catch ($p) { if ($p instanceof IllegalArgumentException) { var e_0 = $p; var message = e_0.message; throw DateTimeFormatException.i1u(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0); } else { throw $p; } } } } class DateTimeComponentsFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.q1z_1 = actualFormat; } r1z() { return this.q1z_1; } s1z(intermediate) { return new DateTimeComponents(intermediate); } t1z(intermediate) { return this.s1z(intermediate instanceof DateTimeComponentsContents ? intermediate : THROW_CCE()); } u1z() { return get_emptyDateTimeComponentsContents(); } } class TwoDigitNumber { constructor(reference) { this.w1z_1 = reference; } } class ThreeDigitNumber { constructor(reference) { this.x1z_1 = reference; } } class Padding extends Enum {} class IncompleteLocalDate { constructor(year, monthNumber, dayOfMonth, isoDayOfWeek, dayOfYear) { year = year === VOID ? null : year; monthNumber = monthNumber === VOID ? null : monthNumber; dayOfMonth = dayOfMonth === VOID ? null : dayOfMonth; isoDayOfWeek = isoDayOfWeek === VOID ? null : isoDayOfWeek; dayOfYear = dayOfYear === VOID ? null : dayOfYear; this.w1u_1 = year; this.x1u_1 = monthNumber; this.y1u_1 = dayOfMonth; this.z1u_1 = isoDayOfWeek; this.a1v_1 = dayOfYear; } i1v(_set____db54di) { this.w1u_1 = _set____db54di; } j1v() { return this.w1u_1; } g1v(_set____db54di) { this.x1u_1 = _set____db54di; } h1v() { return this.x1u_1; } v1u(_set____db54di) { this.y1u_1 = _set____db54di; } b1v() { return this.y1u_1; } e1v(_set____db54di) { this.z1u_1 = _set____db54di; } f1v() { return this.z1u_1; } c1v(_set____db54di) { this.a1v_1 = _set____db54di; } d1v() { return this.a1v_1; } e1y() { var year = requireParsedField(this.w1u_1, 'year'); var dayOfYear = this.a1v_1; var tmp; if (dayOfYear == null) { tmp = LocalDate_0.d20(year, requireParsedField(this.x1u_1, 'monthNumber'), requireParsedField(this.y1u_1, 'dayOfMonth')); } else { // Inline function 'kotlin.also' call var this_0 = plus_0(LocalDate_0.d20(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().v1t_1); // Inline function 'kotlinx.datetime.format.IncompleteLocalDate.toLocalDate.<anonymous>' call if (!(this_0.j1v() === year)) { throw DateTimeFormatException.g1u('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.x1u_1 == null) && !(this_0.h1v() === this.x1u_1)) { throw DateTimeFormatException.g1u('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.e20().toString() + ', ') + ('but ' + this.x1u_1 + ' was specified as the month number')); } if (!(this.y1u_1 == null) && !(this_0.b1v() === this.y1u_1)) { throw DateTimeFormatException.g1u('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is the day ' + this_0.b1v() + ' of ' + this_0.e20().toString() + ', ') + ('but ' + this.y1u_1 + ' was specified as the day of month')); } tmp = this_0; } var date = tmp; var tmp0_safe_receiver = this.z1u_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.let' call // Inline function 'kotlinx.datetime.format.IncompleteLocalDate.toLocalDate.<anonymous>' call if (!(tmp0_safe_receiver === get_isoDayNumber(date.f20()))) { throw DateTimeFormatException.g1u('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.f20().toString())); } } return date; } q1w() { return new IncompleteLocalDate(this.w1u_1, this.x1u_1, this.y1u_1, this.z1u_1, this.a1v_1); } equals(other) { var tmp; var tmp_0; var tmp_1; var tmp_2; var tmp_3; if (other instanceof IncompleteLocalDate) { tmp_3 = this.w1u_1 == other.w1u_1; } else { tmp_3 = false; } if (tmp_3) { tmp_2 = this.x1u_1 == other.x1u_1; } else { tmp_2 = false; } if (tmp_2) { tmp_1 = this.y1u_1 == other.y1u_1; } else { tmp_1 = false; } if (tmp_1) { tmp_0 = this.z1u_1 == other.z1u_1; } else { tmp_0 = false; } if (tmp_0) { tmp = this.a1v_1 == other.a1v_1; } else { tmp = false; } return tmp; } hashCode() { // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver = this.w1u_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, 923521); // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_0 = this.x1u_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_0 = tmp + imul(tmp$ret$1, 29791) | 0; // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_1 = this.y1u_1; var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1); var tmp$ret$2 = tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1; var tmp_1 = tmp_0 + imul(tmp$ret$2, 961) | 0; // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_2 = this.z1u_1; var tmp1_elvis_lhs_2 = tmp0_safe_receiver_2 == null ? null : hashCode(tmp0_safe_receiver_2); var tmp$ret$3 = tmp1_elvis_lhs_2 == null ? 0 : tmp1_elvis_lhs_2; var tmp_2 = tmp_1 + imul(tmp$ret$3, 31) | 0; // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_3 = this.a1v_1; var tmp1_elvis_lhs_3 = tmp0_safe_receiver_3 == null ? null : hashCode(tmp0_safe_receiver_3); return tmp_2 + (tmp1_elvis_lhs_3 == null ? 0 : tmp1_elvis_lhs_3) | 0; } toString() { var tmp0_elvis_lhs = this.w1u_1; var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs); var tmp1_elvis_lhs = this.x1u_1; var tmp_0 = toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs); var tmp2_elvis_lhs = this.y1u_1; var tmp_1 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs); var tmp3_elvis_lhs = this.z1u_1; return tmp + '-' + tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')'; } } class Companion_5 { constructor() { Companion_instance_5 = this; this.z1w_1 = new MonthNames(listOf(['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'])); this.a1x_1 = new MonthNames(listOf(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])); } } class MonthNames { constructor(names) { Companion_getInstance_5(); this.g20_1 = names; // Inline function 'kotlin.require' call if (!(this.g20_1.b1() === 12)) { // Inline function 'kotlinx.datetime.format.MonthNames.<anonymous>' call var message = 'Month names must contain exactly 12 elements'; throw IllegalArgumentException.h(toString(message)); } // Inline function 'kotlin.collections.forEach' call var progression = get_indices(this.g20_1); var inductionVariable = progression.do_1; var last = progression.eo_1; if (inductionVariable <= last) do { var element = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlinx.datetime.format.MonthNames.<anonymous>' call var ix = element; // Inline function 'kotlin.text.isNotEmpty' call var this_0 = this.g20_1.g1(ix); // Inline function 'kotlin.require' call if (!(charSequenceLength(this_0) > 0)) { // Inline function 'kotlinx.datetime.format.MonthNames.<anonymous>.<anonymous>' call var message_0 = 'A month name can not be empty'; throw IllegalArgumentException.h(toString(message_0)); } var inductionVariable_0 = 0; if (inductionVariable_0 < ix) do { var ix2 = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + 1 | 0; // Inline function 'kotlin.require' call if (!!(this.g20_1.g1(ix) === this.g20_1.g1(ix2))) { // Inline function 'kotlinx.datetime.format.MonthNames.<anonymous>.<anonymous>' call var message_1 = "Month names must be unique, but '" + this.g20_1.g1(ix) + "' was repeated"; throw IllegalArgumentException.h(toString(message_1)); } } while (inductionVariable_0 < ix); } while (!(element === last)); } toString() { return joinToString(this.g20_1, ', ', 'MonthNames(', ')', VOID, VOID, String$toString$ref()); } equals(other) { var tmp; if (other instanceof MonthNames) { tmp = equals(this.g20_1, other.g20_1); } else { tmp = false; } return tmp; } hashCode() { return hashCode(this.g20_1); } } class Companion_6 { constructor() { Companion_instance_6 = this; this.e1x_1 = new DayOfWeekNames(listOf(['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'])); this.f1x_1 = new DayOfWeekNames(listOf(['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'])); } } class DayOfWeekNames { constructor(names) { Companion_getInstance_6(); this.h20_1 = names; // Inline function 'kotlin.require' call if (!(this.h20_1.b1() === 7)) { // Inline function 'kotlinx.datetime.format.DayOfWeekNames.<anonymous>' call var message = 'Day of week names must contain exactly 7 elements'; throw IllegalArgumentException.h(toString(message)); } // Inline function 'kotlin.collections.forEach' call var progression = get_indices(this.h20_1); var inductionVariable = progression.do_1; var last = progression.eo_1; if (inductionVariable <= last) do { var element = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlinx.datetime.format.DayOfWeekNames.<anonymous>' call var ix = element; // Inline function 'kotlin.text.isNotEmpty' call var this_0 = this.h20_1.g1(ix); // Inline function 'kotlin.require' call if (!(charSequenceLength(this_0) > 0)) { // Inline function 'kotlinx.datetime.format.DayOfWeekNames.<anonymous>.<anonymous>' call var message_0 = 'A day-of-week name can not be empty'; throw IllegalArgumentException.h(toString(message_0)); } var inductionVariable_0 = 0; if (inductionVariable_0 < ix) do { var ix2 = inductionVariable_0; inductionVariable_0 = inductionVariable_0 + 1 | 0; // Inline function 'kotlin.require' call if (!!(this.h20_1.g1(ix) === this.h20_1.g1(ix2))) { // Inline function 'kotlinx.datetime.format.DayOfWeekNames.<anonymous>.<anonymous>' call var message_1 = "Day-of-week names must be unique, but '" + this.h20_1.g1(ix) + "' was repeated"; throw IllegalArgumentException.h(toString(message_1)); } } while (inductionVariable_0 < ix); } while (!(element === last)); } toString() { return joinToString(this.h20_1, ', ', 'DayOfWeekNames(', ')', VOID, VOID, String$toString$ref_0()); } equals(other) { var tmp; if (other instanceof DayOfWeekNames) { tmp = equals(this.h20_1, other.h20_1); } else { tmp = false; } return tmp; } hashCode() { return hashCode(this.h20_1); } } class Companion_7 { i20(block) { var builder = new Builder_0(new AppendableFormatStructure()); block(builder); return new LocalDateFormat(builder.j1x()); } } class Builder_0 { constructor(actualBuilder) { this.j20_1 = actualBuilder; } t1y() { return this.j20_1; } b1z(structure) { return this.j20_1.w1y(structure); } y1y() { return new Builder_0(new AppendableFormatStructure()); } } class LocalDateFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.k20_1 = actualFormat; } r1z() { return this.k20_1; } l20(intermediate) { return intermediate.e1y(); } t1z(intermediate) { return this.l20(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE()); } u1z() { return get_emptyIncompleteLocalDate(); } } class SignedIntFieldFormatDirective { constructor(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) { this.y20_1 = field; this.z20_1 = minDigits; this.a21_1 = maxDigits; this.b21_1 = spacePadding; this.c21_1 = outputPlusOnExceededWidth; // Inline function 'kotlin.require' call if (!(this.z20_1 == null || this.z20_1 >= 0)) { // Inline function 'kotlinx.datetime.internal.format.SignedIntFieldFormatDirective.<anonymous>' call var message = 'The minimum number of digits (' + this.z20_1 + ') is negative'; throw IllegalArgumentException.h(toString(message)); } // Inline function 'kotlin.require' call if (!(this.a21_1 == null || this.z20_1 == null || this.a21_1 >= this.z20_1)) { // Inline function 'kotlinx.datetime.internal.format.SignedIntFieldFormatDirective.<anonymous>' call var message_0 = 'The maximum number of digits (' + this.a21_1 + ') is less than the minimum number of digits (' + this.z20_1 + ')'; throw IllegalArgumentException.h(toString(message_0)); } } d21() { return this.y20_1; } e21() { var tmp = Accessor$getterNotNull$ref(this.y20_1.d25()); var tmp0_elvis_lhs = this.z20_1; var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.c21_1); return !(this.b21_1 == null) ? new SpacePaddedFormatter(formatter, this.b21_1) : formatter; } b20() { return SignedIntParser(this.z20_1, this.a21_1, this.b21_1, this.y20_1.d25(), this.y20_1.i3(), this.c21_1); } } class YearDirective extends SignedIntFieldFormatDirective { constructor(padding, isYearOfEra) { isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra; var tmp = DateFields_getInstance().m20_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.w20_1 = padding; this.x20_1 = isYearOfEra; } equals(other) { var tmp; var tmp_0; if (other instanceof YearDirective) { tmp_0 = this.w20_1.equals(other.w20_1); } else { tmp_0 = false; } if (tmp_0) { tmp = this.x20_1 === other.x20_1; } else { tmp = false; } return tmp; } hashCode() { return imul(this.w20_1.hashCode(), 31) + getBooleanHashCode(this.x20_1) | 0; } } class UnsignedIntFieldFormatDirective { constructor(field, minDigits, spacePadding) { this.k21_1 = field; this.l21_1 = minDigits; this.m21_1 = spacePadding; this.n21_1 = this.k21_1.k25_1; // Inline function 'kotlin.require' call if (!(this.l21_1 >= 0)) { // Inline function 'kotlinx.datetime.internal.format.UnsignedIntFieldFormatDirective.<anonymous>' call var message = 'The minimum number of digits (' + this.l21_1 + ') is negative'; throw IllegalArgumentException.h(toString(message)); } // Inline function 'kotlin.require' call if (!(this.n21_1 >= this.l21_1)) { // Inline function 'kotlinx.datetime.internal.format.UnsignedIntFieldFormatDirective.<anonymous>' call var message_0 = 'The maximum number of digits (' + this.n21_1 + ') is less than the minimum number of digits (' + this.l21_1 + ')'; throw IllegalArgumentException.h(toString(message_0)); } if (!(this.m21_1 == null)) { // Inline function 'kotlin.require' call if (!(this.m21_1 > this.l21_1)) { // Inline function 'kotlinx.datetime.internal.format.UnsignedIntFieldFormatDirective.<anonymous>' call var message_1 = 'The space padding (' + this.m21_1 + ') should be more than the minimum number of digits (' + this.l21_1 + ')'; throw IllegalArgumentException.h(toString(message_1)); } } } d21() { return this.k21_1; } e21() { var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref_0(this.k21_1.e25_1), this.l21_1); return !(this.m21_1 == null) ? new SpacePaddedFormatter(formatter, this.m21_1) : formatter; } b20() { return spaceAndZeroPaddedUnsignedInt(this.l21_1, this.n21_1, this.m21_1, this.k21_1.e25_1, this.k21_1.h25_1); } } class MonthDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = DateFields_getInstance().n20_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.j21_1 = padding; } equals(other) { var tmp; if (other instanceof MonthDirective) { tmp = this.j21_1.equals(other.j21_1); } else { tmp = false; } return tmp; } hashCode() { return this.j21_1.hashCode(); } } class NamedUnsignedIntFieldFormatDirective { constructor(field, values, name) { this.s21_1 = field; this.t21_1 = values; this.u21_1 = name; // Inline function 'kotlin.require' call if (!(this.t21_1.b1() === ((this.s21_1.g25_1 - this.s21_1.f25_1 | 0) + 1 | 0))) { // Inline function 'kotlinx.datetime.internal.format.NamedUnsignedIntFieldFormatDirective.<anonymous>' call var message = 'The number of values (' + this.t21_1.b1() + ') in ' + toString(this.t21_1) + ' does not match the range of the field (' + ((this.s21_1.g25_1 - this.s21_1.f25_1 | 0) + 1 | 0) + ')'; throw IllegalArgumentException.h(toString(message)); } } d21() { return this.s21_1; } e21() { return new StringFormatterStructure(NamedUnsignedIntFieldFormatDirective$getStringValue$ref(this)); } b20() { return new ParserStructure(listOf_0(new StringSetParserOperation(this.t21_1, new AssignableString(this), 'one of ' + toString(this.t21_1) + ' for ' + this.u21_1)), emptyList()); } } class MonthNameDirective extends NamedUnsignedIntFieldFormatDirective { constructor(names) { super(DateFields_getInstance().n20_1, names.g20_1, 'monthName'); this.r21_1 = names; } equals(other) { var tmp; if (other instanceof MonthNameDirective) { tmp = equals(this.r21_1.g20_1, other.r21_1.g20_1); } else { tmp = false; } return tmp; } hashCode() { return hashCode(this.r21_1.g20_1); } } class DayDirective extends UnsignedIntFieldFormatDirective { constructor(padding) { var tmp = DateFields_getInstance().o20_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.z21_1 = padding; } equals(other) { var tmp; if (other instanceof DayDirective) { tmp = this.z21_1.equals(other.z21_1); } else { tmp = false; } return tmp; } hashCode() { return this.z21_1.hashCode(); } } class DayOfWeekDirective extends NamedUnsignedIntFieldFormatDirective { constructor(names) { super(DateFields_getInstance().p20_1, names.h20_1, 'dayOfWeekName'); this.d22_1 = names; } equals(other) { var tmp; if (other instanceof DayOfWeekDirective) { tmp = equals(this.d22_1.h20_1, other.d22_1.h20_1); } else { tmp = false; } return tmp; } hashCode() { return hashCode(this.d22_1.h20_1); } } class DateFields { constructor() { DateFields_instance = this; this.m20_1 = new GenericFieldSpec(new PropertyAccessor(year$factory_2())); this.n20_1 = new UnsignedFieldSpec(new PropertyAccessor(monthNumber$factory_0()), 1, 12); this.o20_1 = new UnsignedFieldSpec(new PropertyAccessor(dayOfMonth$factory_0()), 1, 31); this.p20_1 = new UnsignedFieldSpec(new PropertyAccessor(isoDayOfWeek$factory()), 1, 7); this.q20_1 = new UnsignedFieldSpec(new PropertyAccessor(dayOfYear$factory_0()), 1, 366); } } class Companion_8 { e22(block) { var builder = new Builder_1(new AppendableFormatStructure()); block(builder); return new LocalDateTimeFormat(builder.j1x()); } } class Builder_1 { constructor(actualBuilder) { this.f22_1 = actualBuilder; } t1y() { return this.f22_1; } u1y(structure) { this.f22_1.w1y(structure); } y1y() { return new Builder_1(new AppendableFormatStructure()); } } class LocalDateTimeFormat extends AbstractDateTimeFormat { constructor(actualFormat) { super(); this.g22_1 = actualFormat; } r1z() { return this.g22_1; } h22(intermediate) { return intermediate.k22(); } t1z(intermediate) { return this.h22(intermediate instanceof IncompleteLocalDateTime ? intermediate : THROW_CCE()); } u1z() { return get_emptyIncompleteLocalDateTime(); } } class IncompleteLocalDateTime { constructor(date, time) { date = date === VOID ? new IncompleteLocalDate() : date; time = time === VOID ? new IncompleteLocalTime() : time; this.i22_1 = date; this.j22_1 = time; } v1u(_set____db54di) { this.i22_1.y1u_1 = _set____db54di; } b1v() { return this.i22_1.y1u_1; } c1v(_set____db54di) { this.i22_1.a1v_1 = _set____db54di; } d1v() { return this.i22_1.a1v_1; } e1v(_set____db54di) { this.i22_1.z1u_1 = _set____db54di; } f1v() { return this.i22_1.z1u_1; } g1v(_set____db54di) { this.i22_1.x1u_1 = _set____db54di; } h1v() { return this.i22_1.x1u_1; } i1v(_set____db54di) { this.i22_1.w1u_1 = _set____db54di; } j1v() { return this.i22_1.w1u_1; } k1v(_set____db54di) { this.j22_1.n1v_1 = _set____db54di; } r1v() { return this.j22_1.n1v_1; } s1v(value) { this.j22_1.s1v(value); } t1v() { return this.j22_1.t1v(); } u1v(_set____db54di) { this.j22_1.l1v_1 = _set____db54di; } v1v() { return this.j22_1.l1v_1; } w1v(_set____db54di) { this.j22_1.m1v_1 = _set____db54di; } x1v() { return this.j22_1.m1v_1; } y1v(_set____db54di) { this.j22_1.o1v_1 = _set____db54di; } z1v() { return this.j22_1.o1v_1; } a1w(_set____db54di) { this.j22_1.q1v_1 = _set____db54di; } b1w() { return this.j22_1.q1v_1; } c1w(_set____db54di) { this.j22_1.p1v_1 = _set____db54di; } d1w() { return this.j22_1.p1v_1; } k22() { return LocalDateTime_0.m22(this.i22_1.e1y(), this.j22_1.c1y()); } q1w() { return new IncompleteLocalDateTime(this.i22_1.q1w(), this.j22_1.q1w()); } } 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.l1v_1 = hour; this.m1v_1 = hourOfAmPm; this.n1v_1 = amPm; this.o1v_1 = minute; this.p1v_1 = second; this.q1v_1 = nanosecond; } u1v(_set____db54di) { this.l1v_1 = _set____db54di; } v1v() { return this.l1v_1; } w1v(_set____db54di) { this.m1v_1 = _set____db54di; } x1v() { return this.m1v_1; } k1v(_set____db54di) { this.n1v_1 = _set____db54di; } r1v() { return this.n1v_1; } y1v(_set____db54di) { this.o1v_1 = _set____db54di; } z1v() { return this.o1v_1; } c1w(_set____db54di) { this.p1v_1 = _set____db54di; } d1w() { return this.p1v_1; } a1w(_set____db54di) { this.q1v_1 = _set____db54di; } b1w() { return this.q1v_1; } c1y() { var tmp0_safe_receiver = this.l1v_1; var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.let' call // I