@kform/core
Version:
JavaScript bindings for KForm.
1,687 lines (1,686 loc) • 68.2 kB
JavaScript
import {
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
Unit_instance1fbcbse1fwigr as Unit_instance,
StringCompanionObject_instance3alxothmy382k as StringCompanionObject_instance,
THROW_CCE2g6jy02ryeudk as THROW_CCE,
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
emptyList1g2z5xcrvp2zy as emptyList,
LazyThreadSafetyMode_PUBLICATION_getInstance3hlj875zwihx0 as LazyThreadSafetyMode_PUBLICATION_getInstance,
lazy1261dae0bgscp as lazy,
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
zip2suipyqmdw72q as zip,
toMap1vec9topfei08 as toMap,
LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap,
toString1pkumu07cwy4m as toString,
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
mapCapacity1h45rc3eh9p2l as mapCapacity,
asList2ho2pewtsfvv as asList,
KProperty1ca4yb4wlo496 as KProperty1,
getPropertyCallableRef1ajb9in178r5r as getPropertyCallableRef,
isInterface3d6p8outrmvmk as isInterface,
Iterable1y3qizuf89iou as Iterable,
VOID3gxj6tk5isa35 as VOID,
isBlank1dvkhjjvox3p0 as isBlank,
equals2au1ep9vhcato as equals,
toList383f556t1dixk as toList,
ArrayList3it5z8td81qkl as ArrayList,
HashSet2dzve9y63nf0v as HashSet,
toHashSet1qrcsl3g8ugc8 as toHashSet,
copyToArray2j022khrow2yi as copyToArray,
toBooleanArray2u3qw7fjwsmuh as toBooleanArray,
withIndex3s8q7w1g0hyfn as withIndex,
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
to2cs3ny02qtbcb as to,
lazy2hsh8ze7j6ikd as lazy_0,
contentEqualsaf55p28mnw74 as contentEquals,
protoOf180f3jzyo7rfj as protoOf,
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
ensureNotNull1e947j3ixpazm as ensureNotNull,
getStringHashCode26igk1bx568vk as getStringHashCode,
createThis2j2avj17cvnv2 as createThis,
hashCodeq5arwsb9dgti as hashCode,
contentHashCode2i020q5tbeh2s as contentHashCode,
until1jbpn0z3f8lbg as until,
joinToString1cxrrlmo0chqs as joinToString,
HashMap1a0ld5kgwhmhv as HashMap,
booleanArray2jdug9b51huk7 as booleanArray,
emptyMapr06gerzljqtm as emptyMap,
Companion_getInstance2e3h8n26rh23 as Companion_getInstance,
DoubleCompanionObject_instance3q51gr7gsd0au as DoubleCompanionObject_instance,
FloatCompanionObject_instance367t6x2s4xzmv as FloatCompanionObject_instance,
Companion_getInstance3gn12jgnf4xoo as Companion_getInstance_0,
Companion_getInstance1puqqwzccfvrg as Companion_getInstance_1,
IntCompanionObject_instance3tw56cgyd5vup as IntCompanionObject_instance,
Companion_getInstanceuedpedmz4g65 as Companion_getInstance_2,
ShortCompanionObject_instance3vq120mx8545m as ShortCompanionObject_instance,
Companion_getInstance2du03jiluw9jj as Companion_getInstance_3,
ByteCompanionObject_instance9rvhjp0l184i as ByteCompanionObject_instance,
Companion_getInstance1trnkq9cty7vr as Companion_getInstance_4,
BooleanCompanionObject_instance29o5h9ajgjmec as BooleanCompanionObject_instance,
trimIndent1qytc1wvt8suh as trimIndent,
PrimitiveClasses_getInstance2v63zn04dtq03 as PrimitiveClasses_getInstance,
Char19o2r8palgjof as Char,
getKClass1s3j9wy1cofik as getKClass,
Long2qws0ah9gnpki as Long,
ULong3f9k7s38t3rfp as ULong,
ULongArray3nd0d80mdwjj8 as ULongArray,
UInt1hthisrv6cndi as UInt,
UIntArrayrp6cv44n5v4y as UIntArray,
UShort26xnqty60t7le as UShort,
UShortArray11avpmknxdgvv as UShortArray,
UBytep4j7r1t64gz1 as UByte,
UByteArray2qu4d6gwssdf9 as UByteArray,
Unitkvevlwgzwiuc as Unit,
Duration5ynfiptaqcrg as Duration,
Companion_getInstance3vz87v4c01z2t as Companion_getInstance_5,
Instant2s2zyzgfc4947 as Instant,
Companion_getInstance1jfygh5e58evr as Companion_getInstance_6,
Uuid1zxgztb7abqxx as Uuid,
Companion_getInstance1cdckxf15vkye as Companion_getInstance_7,
mapOf1xd03cq9cnmy8 as mapOf,
IndexOutOfBoundsException1qfr429iumro0 as IndexOutOfBoundsException,
get_indicesc04v40g017hw as get_indices,
} from './kotlin-kotlin-stdlib.mjs';
//region block: imports
var imul = Math.imul;
//endregion
//region block: pre-declaration
class KSerializer {}
class SealedClassSerializer$$inlined$groupingBy$1 {
constructor($this) {
this.h21_1 = $this;
}
i21() {
return this.h21_1.z();
}
j21(element) {
return element.y2().s20().k21();
}
l21(element) {
return this.j21((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
}
class AbstractPolymorphicSerializer {
static n21() {
return createThis(this);
}
}
class SealedClassSerializer extends AbstractPolymorphicSerializer {
static m21(serialName, baseClass, subclasses, subclassSerializers) {
var $this = this.n21();
$this.t20_1 = baseClass;
$this.u20_1 = emptyList();
var tmp = $this;
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp.v20_1 = lazy(tmp_0, SealedClassSerializer$descriptor$delegate$lambda(serialName, $this));
if (!(subclasses.length === subclassSerializers.length)) {
throw IllegalArgumentException.h('All subclasses of sealed class ' + $this.t20_1.ug() + ' should be marked @Serializable');
}
$this.w20_1 = toMap(zip(subclasses, subclassSerializers));
var tmp_1 = $this;
// Inline function 'kotlin.collections.groupingBy' call
var this_0 = $this.w20_1.e3();
// Inline function 'kotlin.collections.aggregate' call
var tmp0 = new SealedClassSerializer$$inlined$groupingBy$1(this_0);
// Inline function 'kotlin.collections.mutableMapOf' call
// Inline function 'kotlin.collections.aggregateTo' call
var destination = LinkedHashMap.u5();
// Inline function 'kotlin.collections.iterator' call
var _iterator__ex2g4s = tmp0.i21();
while (_iterator__ex2g4s.a1()) {
var e = _iterator__ex2g4s.b1();
var key = tmp0.l21(e);
var accumulator = destination.b3(key);
accumulator == null && !destination.z2(key);
if (!(accumulator == null)) {
// Inline function 'kotlin.error' call
var message = "Multiple sealed subclasses of '" + toString($this.t20_1) + "' have the same serial name '" + key + "':" + (" '" + toString(accumulator.x2()) + "', '" + toString(e.x2()) + "'");
throw IllegalStateException.a6(toString(message));
}
// Inline function 'kotlin.collections.set' call
destination.w5(key, e);
}
// Inline function 'kotlin.collections.mapValues' call
// Inline function 'kotlin.collections.mapValuesTo' call
var destination_0 = LinkedHashMap.fd(mapCapacity(destination.c1()));
// Inline function 'kotlin.collections.associateByTo' call
var _iterator__ex2g4s_0 = destination.e3().z();
while (_iterator__ex2g4s_0.a1()) {
var element = _iterator__ex2g4s_0.b1();
var tmp_2 = element.x2();
var tmp$ret$8 = element.y2().y2();
destination_0.w5(tmp_2, tmp$ret$8);
}
tmp_1.x20_1 = destination_0;
return $this;
}
static o21(serialName, baseClass, subclasses, subclassSerializers, classAnnotations) {
var $this = this.m21(serialName, baseClass, subclasses, subclassSerializers);
$this.u20_1 = asList(classAnnotations);
return $this;
}
s20() {
var tmp0 = this.v20_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('descriptor', 1, tmp, SealedClassSerializer$_get_descriptor_$ref_m511rz(), null);
return tmp0.y2();
}
}
class SerialDescriptor {}
function get_isNullable() {
return false;
}
class elementDescriptors$1 {
constructor($this_elementDescriptors) {
this.v21_1 = $this_elementDescriptors;
this.u21_1 = $this_elementDescriptors.r21();
}
a1() {
return this.u21_1 > 0;
}
b1() {
var tmp = this.v21_1.r21();
var _unary__edvuaz = this.u21_1;
this.u21_1 = _unary__edvuaz - 1 | 0;
return this.v21_1.t21(tmp - _unary__edvuaz | 0);
}
}
class elementDescriptors$$inlined$Iterable$1 {
constructor($this_elementDescriptors) {
this.w21_1 = $this_elementDescriptors;
}
z() {
return new elementDescriptors$1(this.w21_1);
}
}
class ClassSerialDescriptorBuilder {
constructor(serialName) {
this.y20_1 = serialName;
this.z20_1 = false;
this.a21_1 = emptyList();
this.b21_1 = ArrayList.x();
this.c21_1 = HashSet.kb();
this.d21_1 = ArrayList.x();
this.e21_1 = ArrayList.x();
this.f21_1 = ArrayList.x();
}
x21(elementName, descriptor, annotations, isOptional) {
// Inline function 'kotlin.require' call
if (!this.c21_1.s(elementName)) {
var message = "Element with name '" + elementName + "' is already registered in " + this.y20_1;
throw IllegalArgumentException.h(toString(message));
}
// Inline function 'kotlin.collections.plusAssign' call
this.b21_1.s(elementName);
// Inline function 'kotlin.collections.plusAssign' call
this.d21_1.s(descriptor);
// Inline function 'kotlin.collections.plusAssign' call
this.e21_1.s(annotations);
// Inline function 'kotlin.collections.plusAssign' call
this.f21_1.s(isOptional);
}
g21(elementName, descriptor, annotations, isOptional, $super) {
annotations = annotations === VOID ? emptyList() : annotations;
isOptional = isOptional === VOID ? false : isOptional;
var tmp;
if ($super === VOID) {
this.x21(elementName, descriptor, annotations, isOptional);
tmp = Unit_instance;
} else {
tmp = $super.x21.call(this, elementName, descriptor, annotations, isOptional);
}
return tmp;
}
}
class CachedNames {}
class SerialDescriptorImpl {
constructor(serialName, kind, elementsCount, typeParameters, builder) {
this.y21_1 = serialName;
this.z21_1 = kind;
this.a22_1 = elementsCount;
this.b22_1 = builder.a21_1;
this.c22_1 = toHashSet(builder.b21_1);
var tmp = this;
// Inline function 'kotlin.collections.toTypedArray' call
var this_0 = builder.b21_1;
tmp.d22_1 = copyToArray(this_0);
this.e22_1 = compactArray(builder.d21_1);
var tmp_0 = this;
// Inline function 'kotlin.collections.toTypedArray' call
var this_1 = builder.e21_1;
tmp_0.f22_1 = copyToArray(this_1);
this.g22_1 = toBooleanArray(builder.f21_1);
var tmp_1 = this;
// Inline function 'kotlin.collections.map' call
var this_2 = withIndex(this.d22_1);
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList.w(collectionSizeOrDefault(this_2, 10));
var _iterator__ex2g4s = this_2.z();
while (_iterator__ex2g4s.a1()) {
var item = _iterator__ex2g4s.b1();
var tmp$ret$2 = to(item.im_1, item.hm_1);
destination.s(tmp$ret$2);
}
tmp_1.h22_1 = toMap(destination);
this.i22_1 = compactArray(typeParameters);
var tmp_2 = this;
tmp_2.j22_1 = lazy_0(SerialDescriptorImpl$_hashCode$delegate$lambda(this));
}
k21() {
return this.y21_1;
}
q21() {
return this.z21_1;
}
r21() {
return this.a22_1;
}
k22() {
return this.c22_1;
}
s21(index) {
return getChecked(this.d22_1, index);
}
t21(index) {
return getChecked(this.e22_1, index);
}
equals(other) {
var tmp$ret$0;
$l$block_5: {
// Inline function 'kotlinx.serialization.internal.equalsImpl' call
if (this === other) {
tmp$ret$0 = true;
break $l$block_5;
}
if (!(other instanceof SerialDescriptorImpl)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.k21() === other.k21())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!contentEquals(this.i22_1, other.i22_1)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.r21() === other.r21())) {
tmp$ret$0 = false;
break $l$block_5;
}
var inductionVariable = 0;
var last = this.r21();
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (!(this.t21(index).k21() === other.t21(index).k21())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!equals(this.t21(index).q21(), other.t21(index).q21())) {
tmp$ret$0 = false;
break $l$block_5;
}
}
while (inductionVariable < last);
tmp$ret$0 = true;
}
return tmp$ret$0;
}
hashCode() {
return _get__hashCode__tgwhef(this);
}
toString() {
return toStringImpl(this);
}
}
class SerialKind {
toString() {
return ensureNotNull(getKClassFromExpression(this).ug());
}
hashCode() {
return getStringHashCode(this.toString());
}
}
class CONTEXTUAL extends SerialKind {
constructor() {
CONTEXTUAL_instance = null;
super();
CONTEXTUAL_instance = this;
}
}
class PolymorphicKind extends SerialKind {}
class SEALED extends PolymorphicKind {
constructor() {
SEALED_instance = null;
super();
SEALED_instance = this;
}
}
class PrimitiveKind extends SerialKind {}
class BOOLEAN extends PrimitiveKind {
constructor() {
BOOLEAN_instance = null;
super();
BOOLEAN_instance = this;
}
}
class BYTE extends PrimitiveKind {
constructor() {
BYTE_instance = null;
super();
BYTE_instance = this;
}
}
class CHAR extends PrimitiveKind {
constructor() {
CHAR_instance = null;
super();
CHAR_instance = this;
}
}
class SHORT extends PrimitiveKind {
constructor() {
SHORT_instance = null;
super();
SHORT_instance = this;
}
}
class INT extends PrimitiveKind {
constructor() {
INT_instance = null;
super();
INT_instance = this;
}
}
class LONG extends PrimitiveKind {
constructor() {
LONG_instance = null;
super();
LONG_instance = this;
}
}
class FLOAT extends PrimitiveKind {
constructor() {
FLOAT_instance = null;
super();
FLOAT_instance = this;
}
}
class DOUBLE extends PrimitiveKind {
constructor() {
DOUBLE_instance = null;
super();
DOUBLE_instance = this;
}
}
class STRING extends PrimitiveKind {
constructor() {
STRING_instance = null;
super();
STRING_instance = this;
}
}
class StructureKind extends SerialKind {}
class CLASS extends StructureKind {
constructor() {
CLASS_instance = null;
super();
CLASS_instance = this;
}
}
class LIST extends StructureKind {
constructor() {
LIST_instance = null;
super();
LIST_instance = this;
}
}
class MAP extends StructureKind {
constructor() {
MAP_instance = null;
super();
MAP_instance = this;
}
}
class OBJECT extends StructureKind {
constructor() {
OBJECT_instance = null;
super();
OBJECT_instance = this;
}
}
class NothingSerializer {
constructor() {
NothingSerializer_instance = this;
this.l22_1 = NothingSerialDescriptor_getInstance();
}
s20() {
return this.l22_1;
}
}
class DurationSerializer {
constructor() {
DurationSerializer_instance = this;
this.m22_1 = new PrimitiveSerialDescriptor('kotlin.time.Duration', STRING_getInstance());
}
s20() {
return this.m22_1;
}
}
class InstantSerializer {
constructor() {
InstantSerializer_instance = this;
this.n22_1 = new PrimitiveSerialDescriptor('kotlin.time.Instant', STRING_getInstance());
}
s20() {
return this.n22_1;
}
}
class UuidSerializer {
constructor() {
UuidSerializer_instance = this;
this.o22_1 = new PrimitiveSerialDescriptor('kotlin.uuid.Uuid', STRING_getInstance());
}
s20() {
return this.o22_1;
}
}
class ListLikeDescriptor {
constructor(elementDescriptor) {
this.r22_1 = elementDescriptor;
this.s22_1 = 1;
}
q21() {
return LIST_getInstance();
}
r21() {
return this.s22_1;
}
s21(index) {
return index.toString();
}
t21(index) {
// Inline function 'kotlin.require' call
if (!(index >= 0)) {
var message = 'Illegal index ' + index + ', ' + this.k21() + ' expects only non-negative indices';
throw IllegalArgumentException.h(toString(message));
}
return this.r22_1;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof ListLikeDescriptor))
return false;
if (equals(this.r22_1, other.r22_1) && this.k21() === other.k21())
return true;
return false;
}
hashCode() {
return imul(hashCode(this.r22_1), 31) + getStringHashCode(this.k21()) | 0;
}
toString() {
return this.k21() + '(' + toString(this.r22_1) + ')';
}
}
class LinkedHashSetClassDesc extends ListLikeDescriptor {
k21() {
return 'kotlin.collections.LinkedHashSet';
}
}
class MapLikeDescriptor {
constructor(serialName, keyDescriptor, valueDescriptor) {
this.t22_1 = serialName;
this.u22_1 = keyDescriptor;
this.v22_1 = valueDescriptor;
this.w22_1 = 2;
}
k21() {
return this.t22_1;
}
q21() {
return MAP_getInstance();
}
r21() {
return this.w22_1;
}
s21(index) {
return index.toString();
}
t21(index) {
// Inline function 'kotlin.require' call
if (!(index >= 0)) {
var message = 'Illegal index ' + index + ', ' + this.k21() + ' expects only non-negative indices';
throw IllegalArgumentException.h(toString(message));
}
var tmp;
switch (index % 2 | 0) {
case 0:
tmp = this.u22_1;
break;
case 1:
tmp = this.v22_1;
break;
default:
var message_0 = 'Unreached';
throw IllegalStateException.a6(toString(message_0));
}
return tmp;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof MapLikeDescriptor))
return false;
if (!(this.k21() === other.k21()))
return false;
if (!equals(this.u22_1, other.u22_1))
return false;
if (!equals(this.v22_1, other.v22_1))
return false;
return true;
}
hashCode() {
var result = getStringHashCode(this.k21());
result = imul(31, result) + hashCode(this.u22_1) | 0;
result = imul(31, result) + hashCode(this.v22_1) | 0;
return result;
}
toString() {
return this.k21() + '(' + toString(this.u22_1) + ', ' + toString(this.v22_1) + ')';
}
}
class LinkedHashMapClassDesc extends MapLikeDescriptor {
constructor(keyDesc, valueDesc) {
super('kotlin.collections.LinkedHashMap', keyDesc, valueDesc);
}
}
class PrimitiveArrayDescriptor extends ListLikeDescriptor {
constructor(primitive) {
super(primitive);
this.z22_1 = primitive.k21() + 'Array';
}
k21() {
return this.z22_1;
}
}
class AbstractCollectionSerializer {}
class CollectionLikeSerializer extends AbstractCollectionSerializer {
constructor(elementSerializer) {
super();
this.f23_1 = elementSerializer;
}
}
class CollectionSerializer extends CollectionLikeSerializer {}
class LinkedHashSetSerializer extends CollectionSerializer {
constructor(eSerializer) {
super(eSerializer);
this.b23_1 = new LinkedHashSetClassDesc(eSerializer.s20());
}
s20() {
return this.b23_1;
}
}
class MapLikeSerializer extends AbstractCollectionSerializer {
constructor(keySerializer, valueSerializer) {
super();
this.g23_1 = keySerializer;
this.h23_1 = valueSerializer;
}
}
class LinkedHashMapSerializer extends MapLikeSerializer {
constructor(kSerializer, vSerializer) {
super(kSerializer, vSerializer);
this.e23_1 = new LinkedHashMapClassDesc(kSerializer.s20(), vSerializer.s20());
}
s20() {
return this.e23_1;
}
}
class PrimitiveArraySerializer extends CollectionLikeSerializer {
constructor(primitiveSerializer) {
super(primitiveSerializer);
this.j23_1 = new PrimitiveArrayDescriptor(primitiveSerializer.s20());
}
s20() {
return this.j23_1;
}
}
class PluginGeneratedSerialDescriptor {
constructor(serialName, generatedSerializer, elementsCount) {
generatedSerializer = generatedSerializer === VOID ? null : generatedSerializer;
this.x23_1 = serialName;
this.y23_1 = generatedSerializer;
this.z23_1 = elementsCount;
this.a24_1 = -1;
var tmp = this;
var tmp_0 = 0;
var tmp_1 = this.z23_1;
// Inline function 'kotlin.arrayOfNulls' call
var tmp_2 = Array(tmp_1);
while (tmp_0 < tmp_1) {
tmp_2[tmp_0] = '[UNINITIALIZED]';
tmp_0 = tmp_0 + 1 | 0;
}
tmp.b24_1 = tmp_2;
var tmp_3 = this;
// Inline function 'kotlin.arrayOfNulls' call
var size = this.z23_1;
tmp_3.c24_1 = Array(size);
this.d24_1 = null;
this.e24_1 = booleanArray(this.z23_1);
this.f24_1 = emptyMap();
var tmp_4 = this;
var tmp_5 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp_4.g24_1 = lazy(tmp_5, PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this));
var tmp_6 = this;
var tmp_7 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp_6.h24_1 = lazy(tmp_7, PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this));
var tmp_8 = this;
var tmp_9 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp_8.i24_1 = lazy(tmp_9, PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this));
}
k21() {
return this.x23_1;
}
r21() {
return this.z23_1;
}
q21() {
return CLASS_getInstance();
}
k22() {
return this.f24_1.c3();
}
j24() {
var tmp0 = this.h24_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('typeParameterDescriptors', 1, tmp, PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka(), null);
return tmp0.y2();
}
k24(name, isOptional) {
this.a24_1 = this.a24_1 + 1 | 0;
this.b24_1[this.a24_1] = name;
this.e24_1[this.a24_1] = isOptional;
this.c24_1[this.a24_1] = null;
if (this.a24_1 === (this.z23_1 - 1 | 0)) {
this.f24_1 = buildIndices(this);
}
}
t21(index) {
return getChecked(_get_childSerializers__7vnyfa(this), index).s20();
}
s21(index) {
return getChecked(this.b24_1, index);
}
equals(other) {
var tmp$ret$0;
$l$block_5: {
// Inline function 'kotlinx.serialization.internal.equalsImpl' call
if (this === other) {
tmp$ret$0 = true;
break $l$block_5;
}
if (!(other instanceof PluginGeneratedSerialDescriptor)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.k21() === other.k21())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!contentEquals(this.j24(), other.j24())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.r21() === other.r21())) {
tmp$ret$0 = false;
break $l$block_5;
}
var inductionVariable = 0;
var last = this.r21();
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (!(this.t21(index).k21() === other.t21(index).k21())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!equals(this.t21(index).q21(), other.t21(index).q21())) {
tmp$ret$0 = false;
break $l$block_5;
}
}
while (inductionVariable < last);
tmp$ret$0 = true;
}
return tmp$ret$0;
}
hashCode() {
return _get__hashCode__tgwhef_0(this);
}
toString() {
return toStringImpl(this);
}
}
class InlineClassDescriptor extends PluginGeneratedSerialDescriptor {
constructor(name, generatedSerializer) {
super(name, generatedSerializer, 1);
this.w23_1 = true;
}
hashCode() {
return imul(super.hashCode(), 31);
}
equals(other) {
var tmp$ret$0;
$l$block_5: {
// Inline function 'kotlinx.serialization.internal.equalsImpl' call
if (this === other) {
tmp$ret$0 = true;
break $l$block_5;
}
if (!(other instanceof InlineClassDescriptor)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.k21() === other.k21())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(other.w23_1 && contentEquals(this.j24(), other.j24()))) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.r21() === other.r21())) {
tmp$ret$0 = false;
break $l$block_5;
}
var inductionVariable = 0;
var last = this.r21();
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (!(this.t21(index).k21() === other.t21(index).k21())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!equals(this.t21(index).q21(), other.t21(index).q21())) {
tmp$ret$0 = false;
break $l$block_5;
}
}
while (inductionVariable < last);
tmp$ret$0 = true;
}
return tmp$ret$0;
}
}
class GeneratedSerializer {}
function typeParametersSerializers() {
return get_EMPTY_SERIALIZER_ARRAY();
}
class InlinePrimitiveDescriptor$1 {
constructor($primitiveSerializer) {
this.l24_1 = $primitiveSerializer;
}
m24() {
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
return [this.l24_1];
}
s20() {
var message = 'unsupported';
throw IllegalStateException.a6(toString(message));
}
}
class NothingSerialDescriptor {
constructor() {
NothingSerialDescriptor_instance = this;
this.o24_1 = OBJECT_getInstance();
this.p24_1 = 'kotlin.Nothing';
}
q21() {
return this.o24_1;
}
k21() {
return this.p24_1;
}
r21() {
return 0;
}
s21(index) {
error(this);
}
t21(index) {
error(this);
}
toString() {
return 'NothingSerialDescriptor';
}
equals(other) {
return this === other;
}
hashCode() {
return getStringHashCode(this.p24_1) + imul(31, this.o24_1.hashCode()) | 0;
}
}
class NullableSerializer {
constructor(serializer) {
this.q24_1 = serializer;
this.r24_1 = new SerialDescriptorForNullable(this.q24_1.s20());
}
s20() {
return this.r24_1;
}
equals(other) {
if (this === other)
return true;
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
return false;
if (!(other instanceof NullableSerializer))
THROW_CCE();
if (!equals(this.q24_1, other.q24_1))
return false;
return true;
}
hashCode() {
return hashCode(this.q24_1);
}
}
class SerialDescriptorForNullable {
constructor(original) {
this.s24_1 = original;
this.t24_1 = this.s24_1.k21() + '?';
this.u24_1 = cachedSerialNames(this.s24_1);
}
k21() {
return this.t24_1;
}
k22() {
return this.u24_1;
}
p21() {
return true;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof SerialDescriptorForNullable))
return false;
if (!equals(this.s24_1, other.s24_1))
return false;
return true;
}
toString() {
return toString(this.s24_1) + '?';
}
hashCode() {
return imul(hashCode(this.s24_1), 31);
}
q21() {
return this.s24_1.q21();
}
r21() {
return this.s24_1.r21();
}
s21(index) {
return this.s24_1.s21(index);
}
t21(index) {
return this.s24_1.t21(index);
}
}
class ObjectSerializer {
constructor(serialName, objectInstance) {
this.v24_1 = objectInstance;
this.w24_1 = emptyList();
var tmp = this;
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp.x24_1 = lazy(tmp_0, ObjectSerializer$descriptor$delegate$lambda(serialName, this));
}
s20() {
var tmp0 = this.x24_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('descriptor', 1, tmp, ObjectSerializer$_get_descriptor_$ref_7z4xb6(), null);
return tmp0.y2();
}
}
class CharArraySerializer extends PrimitiveArraySerializer {
constructor() {
CharArraySerializer_instance = null;
super(serializer_0(Companion_getInstance()));
CharArraySerializer_instance = this;
}
}
class DoubleArraySerializer extends PrimitiveArraySerializer {
constructor() {
DoubleArraySerializer_instance = null;
super(serializer_1(DoubleCompanionObject_instance));
DoubleArraySerializer_instance = this;
}
}
class FloatArraySerializer extends PrimitiveArraySerializer {
constructor() {
FloatArraySerializer_instance = null;
super(serializer_2(FloatCompanionObject_instance));
FloatArraySerializer_instance = this;
}
}
class LongArraySerializer extends PrimitiveArraySerializer {
constructor() {
LongArraySerializer_instance = null;
super(serializer_3(Companion_getInstance_0()));
LongArraySerializer_instance = this;
}
}
class ULongArraySerializer extends PrimitiveArraySerializer {
constructor() {
ULongArraySerializer_instance = null;
super(serializer_4(Companion_getInstance_1()));
ULongArraySerializer_instance = this;
}
}
class IntArraySerializer extends PrimitiveArraySerializer {
constructor() {
IntArraySerializer_instance = null;
super(serializer_5(IntCompanionObject_instance));
IntArraySerializer_instance = this;
}
}
class UIntArraySerializer extends PrimitiveArraySerializer {
constructor() {
UIntArraySerializer_instance = null;
super(serializer_6(Companion_getInstance_2()));
UIntArraySerializer_instance = this;
}
}
class ShortArraySerializer extends PrimitiveArraySerializer {
constructor() {
ShortArraySerializer_instance = null;
super(serializer_7(ShortCompanionObject_instance));
ShortArraySerializer_instance = this;
}
}
class UShortArraySerializer extends PrimitiveArraySerializer {
constructor() {
UShortArraySerializer_instance = null;
super(serializer_8(Companion_getInstance_3()));
UShortArraySerializer_instance = this;
}
}
class ByteArraySerializer extends PrimitiveArraySerializer {
constructor() {
ByteArraySerializer_instance = null;
super(serializer_9(ByteCompanionObject_instance));
ByteArraySerializer_instance = this;
}
}
class UByteArraySerializer extends PrimitiveArraySerializer {
constructor() {
UByteArraySerializer_instance = null;
super(serializer_10(Companion_getInstance_4()));
UByteArraySerializer_instance = this;
}
}
class BooleanArraySerializer extends PrimitiveArraySerializer {
constructor() {
BooleanArraySerializer_instance = null;
super(serializer_11(BooleanCompanionObject_instance));
BooleanArraySerializer_instance = this;
}
}
class StringSerializer {
constructor() {
StringSerializer_instance = this;
this.y24_1 = new PrimitiveSerialDescriptor('kotlin.String', STRING_getInstance());
}
s20() {
return this.y24_1;
}
}
class CharSerializer {
constructor() {
CharSerializer_instance = this;
this.z24_1 = new PrimitiveSerialDescriptor('kotlin.Char', CHAR_getInstance());
}
s20() {
return this.z24_1;
}
}
class DoubleSerializer {
constructor() {
DoubleSerializer_instance = this;
this.a25_1 = new PrimitiveSerialDescriptor('kotlin.Double', DOUBLE_getInstance());
}
s20() {
return this.a25_1;
}
}
class FloatSerializer {
constructor() {
FloatSerializer_instance = this;
this.b25_1 = new PrimitiveSerialDescriptor('kotlin.Float', FLOAT_getInstance());
}
s20() {
return this.b25_1;
}
}
class LongSerializer {
constructor() {
LongSerializer_instance = this;
this.c25_1 = new PrimitiveSerialDescriptor('kotlin.Long', LONG_getInstance());
}
s20() {
return this.c25_1;
}
}
class IntSerializer {
constructor() {
IntSerializer_instance = this;
this.d25_1 = new PrimitiveSerialDescriptor('kotlin.Int', INT_getInstance());
}
s20() {
return this.d25_1;
}
}
class ShortSerializer {
constructor() {
ShortSerializer_instance = this;
this.e25_1 = new PrimitiveSerialDescriptor('kotlin.Short', SHORT_getInstance());
}
s20() {
return this.e25_1;
}
}
class ByteSerializer {
constructor() {
ByteSerializer_instance = this;
this.f25_1 = new PrimitiveSerialDescriptor('kotlin.Byte', BYTE_getInstance());
}
s20() {
return this.f25_1;
}
}
class BooleanSerializer {
constructor() {
BooleanSerializer_instance = this;
this.g25_1 = new PrimitiveSerialDescriptor('kotlin.Boolean', BOOLEAN_getInstance());
}
s20() {
return this.g25_1;
}
}
class UnitSerializer {
constructor() {
UnitSerializer_instance = this;
this.h25_1 = new ObjectSerializer('kotlin.Unit', Unit_instance);
}
s20() {
return this.h25_1.s20();
}
}
class PrimitiveSerialDescriptor {
constructor(serialName, kind) {
this.i25_1 = serialName;
this.j25_1 = kind;
}
k21() {
return this.i25_1;
}
q21() {
return this.j25_1;
}
r21() {
return 0;
}
s21(index) {
error_0(this);
}
t21(index) {
error_0(this);
}
toString() {
return 'PrimitiveDescriptor(' + this.i25_1 + ')';
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof PrimitiveSerialDescriptor))
return false;
if (this.i25_1 === other.i25_1 && equals(this.j25_1, other.j25_1))
return true;
return false;
}
hashCode() {
return getStringHashCode(this.i25_1) + imul(31, this.j25_1.hashCode()) | 0;
}
}
class ULongSerializer {
constructor() {
ULongSerializer_instance = this;
this.k25_1 = InlinePrimitiveDescriptor('kotlin.ULong', serializer_3(Companion_getInstance_0()));
}
s20() {
return this.k25_1;
}
}
class UIntSerializer {
constructor() {
UIntSerializer_instance = this;
this.l25_1 = InlinePrimitiveDescriptor('kotlin.UInt', serializer_5(IntCompanionObject_instance));
}
s20() {
return this.l25_1;
}
}
class UShortSerializer {
constructor() {
UShortSerializer_instance = this;
this.m25_1 = InlinePrimitiveDescriptor('kotlin.UShort', serializer_7(ShortCompanionObject_instance));
}
s20() {
return this.m25_1;
}
}
class UByteSerializer {
constructor() {
UByteSerializer_instance = this;
this.n25_1 = InlinePrimitiveDescriptor('kotlin.UByte', serializer_9(ByteCompanionObject_instance));
}
s20() {
return this.n25_1;
}
}
class SerializableWith {}
//endregion
function SealedClassSerializer$descriptor$delegate$lambda$lambda$lambda(this$0) {
return function ($this$buildSerialDescriptor) {
// Inline function 'kotlin.collections.forEach' call
// Inline function 'kotlin.collections.iterator' call
var _iterator__ex2g4s = this$0.x20_1.e3().z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
// Inline function 'kotlin.collections.component1' call
var name = element.x2();
// Inline function 'kotlin.collections.component2' call
var serializer = element.y2();
$this$buildSerialDescriptor.g21(name, serializer.s20());
}
return Unit_instance;
};
}
function SealedClassSerializer$descriptor$delegate$lambda$lambda(this$0) {
return function ($this$buildSerialDescriptor) {
$this$buildSerialDescriptor.g21('type', serializer(StringCompanionObject_instance).s20());
var tmp = 'kotlinx.serialization.Sealed<' + this$0.t20_1.ug() + '>';
var tmp_0 = CONTEXTUAL_getInstance();
var elementDescriptor = buildSerialDescriptor(tmp, tmp_0, [], SealedClassSerializer$descriptor$delegate$lambda$lambda$lambda(this$0));
$this$buildSerialDescriptor.g21('value', elementDescriptor);
$this$buildSerialDescriptor.a21_1 = this$0.u20_1;
return Unit_instance;
};
}
function SealedClassSerializer$descriptor$delegate$lambda($serialName, this$0) {
return function () {
var tmp = SEALED_getInstance();
return buildSerialDescriptor($serialName, tmp, [], SealedClassSerializer$descriptor$delegate$lambda$lambda(this$0));
};
}
function SealedClassSerializer$_get_descriptor_$ref_m511rz() {
return function (p0) {
return p0.s20();
};
}
function get_nullable(_this__u8e3s4) {
var tmp;
if (_this__u8e3s4.s20().p21()) {
tmp = isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE();
} else {
tmp = new NullableSerializer(_this__u8e3s4);
}
return tmp;
}
function serializer(_this__u8e3s4) {
return StringSerializer_getInstance();
}
function serializer_0(_this__u8e3s4) {
return CharSerializer_getInstance();
}
function CharArraySerializer_0() {
return CharArraySerializer_getInstance();
}
function serializer_1(_this__u8e3s4) {
return DoubleSerializer_getInstance();
}
function DoubleArraySerializer_0() {
return DoubleArraySerializer_getInstance();
}
function serializer_2(_this__u8e3s4) {
return FloatSerializer_getInstance();
}
function FloatArraySerializer_0() {
return FloatArraySerializer_getInstance();
}
function serializer_3(_this__u8e3s4) {
return LongSerializer_getInstance();
}
function LongArraySerializer_0() {
return LongArraySerializer_getInstance();
}
function serializer_4(_this__u8e3s4) {
return ULongSerializer_getInstance();
}
function ULongArraySerializer_0() {
return ULongArraySerializer_getInstance();
}
function serializer_5(_this__u8e3s4) {
return IntSerializer_getInstance();
}
function IntArraySerializer_0() {
return IntArraySerializer_getInstance();
}
function serializer_6(_this__u8e3s4) {
return UIntSerializer_getInstance();
}
function UIntArraySerializer_0() {
return UIntArraySerializer_getInstance();
}
function serializer_7(_this__u8e3s4) {
return ShortSerializer_getInstance();
}
function ShortArraySerializer_0() {
return ShortArraySerializer_getInstance();
}
function serializer_8(_this__u8e3s4) {
return UShortSerializer_getInstance();
}
function UShortArraySerializer_0() {
return UShortArraySerializer_getInstance();
}
function serializer_9(_this__u8e3s4) {
return ByteSerializer_getInstance();
}
function ByteArraySerializer_0() {
return ByteArraySerializer_getInstance();
}
function serializer_10(_this__u8e3s4) {
return UByteSerializer_getInstance();
}
function UByteArraySerializer_0() {
return UByteArraySerializer_getInstance();
}
function serializer_11(_this__u8e3s4) {
return BooleanSerializer_getInstance();
}
function BooleanArraySerializer_0() {
return BooleanArraySerializer_getInstance();
}
function serializer_12(_this__u8e3s4) {
return UnitSerializer_getInstance();
}
function NothingSerializer_0() {
return NothingSerializer_getInstance();
}
function serializer_13(_this__u8e3s4) {
return DurationSerializer_getInstance();
}
function serializer_14(_this__u8e3s4) {
return InstantSerializer_getInstance();
}
function serializer_15(_this__u8e3s4) {
return UuidSerializer_getInstance();
}
function get_elementDescriptors(_this__u8e3s4) {
// Inline function 'kotlin.collections.Iterable' call
return new elementDescriptors$$inlined$Iterable$1(_this__u8e3s4);
}
function buildSerialDescriptor(serialName, kind, typeParameters, builder) {
var tmp;
if (builder === VOID) {
tmp = buildSerialDescriptor$lambda;
} else {
tmp = builder;
}
builder = tmp;
// Inline function 'kotlin.text.isNotBlank' call
// Inline function 'kotlin.require' call
if (!!isBlank(serialName)) {
var message = 'Blank serial names are prohibited';
throw IllegalArgumentException.h(toString(message));
}
// Inline function 'kotlin.require' call
if (!!equals(kind, CLASS_getInstance())) {
var message_0 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead";
throw IllegalArgumentException.h(toString(message_0));
}
var sdBuilder = new ClassSerialDescriptorBuilder(serialName);
builder(sdBuilder);
return new SerialDescriptorImpl(serialName, kind, sdBuilder.b21_1.c1(), toList(typeParameters), sdBuilder);
}
function _get__hashCode__tgwhef($this) {
var tmp0 = $this.j22_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('_hashCode', 1, tmp, SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp(), null);
return tmp0.y2();
}
function SerialDescriptorImpl$_hashCode$delegate$lambda(this$0) {
return function () {
return hashCodeImpl(this$0, this$0.i22_1);
};
}
function SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp() {
return function (p0) {
return _get__hashCode__tgwhef(p0);
};
}
function PrimitiveSerialDescriptor_0(serialName, kind) {
// Inline function 'kotlin.text.isNotBlank' call
// Inline function 'kotlin.require' call
if (!!isBlank(serialName)) {
var message = 'Blank serial names are prohibited';
throw IllegalArgumentException.h(toString(message));
}
return PrimitiveDescriptorSafe(serialName, kind);
}
function buildSerialDescriptor$lambda(_this__u8e3s4) {
return Unit_instance;
}
var CONTEXTUAL_instance;
function CONTEXTUAL_getInstance() {
if (CONTEXTUAL_instance === VOID)
new CONTEXTUAL();
return CONTEXTUAL_instance;
}
var SEALED_instance;
function SEALED_getInstance() {
if (SEALED_instance === VOID)
new SEALED();
return SEALED_instance;
}
var BOOLEAN_instance;
function BOOLEAN_getInstance() {
if (BOOLEAN_instance === VOID)
new BOOLEAN();
return BOOLEAN_instance;
}
var BYTE_instance;
function BYTE_getInstance() {
if (BYTE_instance === VOID)
new BYTE();
return BYTE_instance;
}
var CHAR_instance;
function CHAR_getInstance() {
if (CHAR_instance === VOID)
new CHAR();
return CHAR_instance;
}
var SHORT_instance;
function SHORT_getInstance() {
if (SHORT_instance === VOID)
new SHORT();
return SHORT_instance;
}
var INT_instance;
function INT_getInstance() {
if (INT_instance === VOID)
new INT();
return INT_instance;
}
var LONG_instance;
function LONG_getInstance() {
if (LONG_instance === VOID)
new LONG();
return LONG_instance;
}
var FLOAT_instance;
function FLOAT_getInstance() {
if (FLOAT_instance === VOID)
new FLOAT();
return FLOAT_instance;
}
var DOUBLE_instance;
function DOUBLE_getInstance() {
if (DOUBLE_instance === VOID)
new DOUBLE();
return DOUBLE_instance;
}
var STRING_instance;
function STRING_getInstance() {
if (STRING_instance === VOID)
new STRING();
return STRING_instance;
}
var CLASS_instance;
function CLASS_getInstance() {
if (CLASS_instance === VOID)
new CLASS();
return CLASS_instance;
}
var LIST_instance;
function LIST_getInstance() {
if (LIST_instance === VOID)
new LIST();
return LIST_instance;
}
var MAP_instance;
function MAP_getInstance() {
if (MAP_instance === VOID)
new MAP();
return MAP_instance;
}
var OBJECT_instance;
function OBJECT_getInstance() {
if (OBJECT_instance === VOID)
new OBJECT();
return OBJECT_instance;
}
var NothingSerializer_instance;
function NothingSerializer_getInstance() {
if (NothingSerializer_instance === VOID)
new NothingSerializer();
return NothingSerializer_instance;
}
var DurationSerializer_instance;
function DurationSerializer_getInstance() {
if (DurationSerializer_instance === VOID)
new DurationSerializer();
return DurationSerializer_instance;
}
var InstantSerializer_instance;
function InstantSerializer_getInstance() {
if (InstantSerializer_instance === VOID)
new InstantSerializer();
return InstantSerializer_instance;
}
var UuidSerializer_instance;
function UuidSerializer_getInstance() {
if (UuidSerializer_instance === VOID)
new UuidSerializer();
return UuidSerializer_instance;
}
function InlinePrimitiveDescriptor(name, primitiveSerializer) {
return new InlineClassDescriptor(name, new InlinePrimitiveDescriptor$1(primitiveSerializer));
}
function error($this) {
throw IllegalStateException.a6('Descriptor for type `kotlin.Nothing` does not have elements');
}
var NothingSerialDescriptor_instance;
function NothingSerialDescriptor_getInstance() {
if (NothingSerialDescriptor_instance === VOID)
new NothingSerialDescriptor();
return NothingSerialDescriptor_instance;
}
function ObjectSerializer$descriptor$delegate$lambda$lambda(this$0) {
return function ($this$buildSerialDescriptor) {
$this$buildSerialDescriptor.a21_1 = this$0.w24_1;
return Unit_instance;
};
}
function ObjectSerializer$descriptor$delegate$lambda($serialName, this$0) {
return function () {
var tmp = OBJECT_getInstance();
return buildSerialDescriptor($serialName, tmp, [], ObjectSerializer$descriptor$delegate$lambda$lambda(this$0));
};
}
function ObjectSerializer$_get_descriptor_$ref_7z4xb6() {
return function (p0) {
return p0.s20();
};
}
function get_EMPTY_DESCRIPTOR_ARRAY() {
_init_properties_Platform_common_kt__3qzecs();
return EMPTY_DESCRIPTOR_ARRAY;
}
var EMPTY_DESCRIPTOR_ARRAY;
function cachedSerialNames(_this__u8e3s4) {
_init_properties_Platform_common_kt__3qzecs();
if (isInterface(_this__u8e3s4, CachedNames))
return _this__u8e3s4.k22();
var result = HashSet.f1(_this__u8e3s4.r21());
var inductionVariable = 0;
var last = _this__u8e3s4.r21();
if (inductionVariable < last)
do {
var i = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
// Inline function 'kotlin.collections.plusAssign' call
var element = _this__u8e3s4.s21(i);
result.s(element);
}
while (inductionVariable < last);
return result;
}
function compactArray(_this__u8e3s4) {
_init_properties_Platform_common_kt__3qzecs();
// Inline function 'kotlin.takeUnless' call
var tmp;
// Inline function 'kotlin.collections.isNullOrEmpty' call
if (!(_this__u8e3s4 == null || _this__u8e3s4.g1())) {
tmp = _this__u8e3s4;
} else {
tmp = null;
}
var tmp0_safe_receiver = tmp;
var tmp_0;
if (tmp0_safe_receiver == null) {
tmp_0 = null;
} else {
// Inline function 'kotlin.collections.toTypedArray' call
tmp_0 = copyToArray(tmp0_safe_receiver);
}
var tmp1_elvis_lhs = tmp_0;
return tmp1_elvis_lhs == null ? get_EMPTY_DESCRIPTOR_ARRAY() : tmp1_elvis_lhs;
}
var properties_initialized_Platform_common_kt_i7q4ty;
function _init_properties_Platform_common_kt__3qzecs() {
if (!properties_initialized_Platform_common_kt_i7q4ty) {
properties_initialized_Platform_common_kt_i7q4ty = true;
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
EMPTY_DESCRIPTOR_ARRAY = [];
}
}
function hashCodeImpl(_this__u8e3s4, typeParams) {
var result = getStringHashCode(_this__u8e3s4.k21());
result = imul(31, result) + contentHashCode(typeParams) | 0;
var elementDescriptors = get_elementDescriptors(_this__u8e3s4);
// Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
// Inline function 'kotlin.collections.fold' call
var accumulator = 1;
var _iterator__ex2g4s = elementDescriptors.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
var hash = accumulator;
var tmp = imul(31, hash);
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver = element.k21();
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
}
var namesHash = accumulator;
// Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
// Inline function 'kotlin.collections.fold' call
var accumulator_0 = 1;
var _iterator__ex2g4s_0 = elementDescriptors.z();
while (_iterator__ex2g4s_0.a1()) {
var element_0 = _iterator__ex2g4s_0.b1();
var hash_0 = accumulator_0;
var tmp_0 = imul(31, hash_0);
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver_0 = element_0.q21();
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
accumulator_0 = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
}
var kindHash = accumulator_0;
result = imul(31, result) + namesHash | 0;
result = imul(31, result) + kindHash | 0;
return result;
}
function toStringImpl(_this__u8e3s4) {
var tmp = until(0, _this__u8e3s4.r21());
var tmp_0 = _this__u8e3s4.k21() + '(';
return joinToString(tmp, ', ', tmp_0, ')', VOID, VOID, toStringImpl$lambda(_this__u8e3s4));
}
function _get_childSerializers__7vnyfa($this) {
var tmp0 = $this.g24_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('childSerializers', 1, tmp, PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca(), null);
return tmp0.y2();
}
function _get__hashCode__tgwhef_0($this) {
var tmp0 = $this.i24_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('_hashCode', 1, tmp, PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz(), null);
return tmp0.y2();
}
function buildIndices($this) {
var indices = HashMap.p9();
var inductionVariable = 0;
var last = $this.b24_1.length - 1 | 0;
if (inductionVariable <= last)
do {
var i = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
// Inline function 'kotlin.collections.set' call
var key = $this.b24_1[i];
indices.w5(key, i);
}
while (inductionVariable <= last);
return indices;
}
function PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this$0) {
return function () {
var tmp0_safe_receiver = this$0.y23_1;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m24();
return tmp1_elvis_lhs == null ? get_EMPTY_SERIALIZER_ARRAY() : tmp1_elvis_lhs;
};
}
function PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca() {
return function (p0) {
return _get_childSerializers__7vnyfa(p0);
};
}
function PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this$0) {
return function () {
var tmp0_safe_receiver = this$0.y23_1;
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n24();
var tmp;
if (tmp1_safe_receiver == null) {
tmp = null;
} else {
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call