UNPKG

@cpaassdk/cpaas-sdk

Version:
1,195 lines 236 kB
(function (root, factory) { if (typeof define === 'function' && define.amd) define(['exports', './kotlin-kotlin-stdlib-js-ir.js'], factory); else if (typeof exports === 'object') factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js')); else { if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') { throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-core-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-core-js-ir'."); } root['kotlinx-serialization-kotlinx-serialization-core-js-ir'] = factory(typeof this['kotlinx-serialization-kotlinx-serialization-core-js-ir'] === 'undefined' ? {} : this['kotlinx-serialization-kotlinx-serialization-core-js-ir'], this['kotlin-kotlin-stdlib-js-ir']); } }(this, function (_, kotlin_kotlin) { 'use strict'; //region block: imports var imul = Math.imul; var interfaceMeta = kotlin_kotlin.$_$.g9; var asList = kotlin_kotlin.$_$.h5; var StringCompanionObject_getInstance = kotlin_kotlin.$_$.x3; var Unit_getInstance = kotlin_kotlin.$_$.h4; var emptyList = kotlin_kotlin.$_$.y5; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.f; var lazy = kotlin_kotlin.$_$.id; var classMeta = kotlin_kotlin.$_$.x8; var getKClassFromExpression = kotlin_kotlin.$_$.c; var KProperty1 = kotlin_kotlin.$_$.va; var getPropertyCallableRef = kotlin_kotlin.$_$.d9; var THROW_CCE = kotlin_kotlin.$_$.qc; var Entry = kotlin_kotlin.$_$.t4; var isInterface = kotlin_kotlin.$_$.p9; var Grouping = kotlin_kotlin.$_$.k4; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a2; var zip = kotlin_kotlin.$_$.p7; var toMap = kotlin_kotlin.$_$.l7; var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.j1; var toString = kotlin_kotlin.$_$.ha; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e2; var mapCapacity = kotlin_kotlin.$_$.q6; var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.i1; var Map = kotlin_kotlin.$_$.u4; var captureStack = kotlin_kotlin.$_$.s8; var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.z1; var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.b2; var IllegalArgumentException = kotlin_kotlin.$_$.jc; var collectionSizeOrDefault = kotlin_kotlin.$_$.k5; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.z; var KClass = kotlin_kotlin.$_$.ta; var copyToArray = kotlin_kotlin.$_$.x5; var Triple = kotlin_kotlin.$_$.sc; var getKClass = kotlin_kotlin.$_$.d; var Pair = kotlin_kotlin.$_$.oc; var LinkedHashMap = kotlin_kotlin.$_$.p4; var MutableMap = kotlin_kotlin.$_$.b5; var HashMap = kotlin_kotlin.$_$.l4; var LinkedHashSet = kotlin_kotlin.$_$.q4; var MutableSet = kotlin_kotlin.$_$.c5; var Set = kotlin_kotlin.$_$.d5; var HashSet = kotlin_kotlin.$_$.m4; var ArrayList = kotlin_kotlin.$_$.i4; var MutableList = kotlin_kotlin.$_$.z4; var List = kotlin_kotlin.$_$.s4; var Collection = kotlin_kotlin.$_$.j4; var equals = kotlin_kotlin.$_$.z8; var getStringHashCode = kotlin_kotlin.$_$.e9; var Iterator = kotlin_kotlin.$_$.o4; var Iterable = kotlin_kotlin.$_$.n4; var isBlank = kotlin_kotlin.$_$.bb; var toList = kotlin_kotlin.$_$.j7; var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.a1; var HashSet_init_$Create$ = kotlin_kotlin.$_$.g1; var toHashSet = kotlin_kotlin.$_$.g7; var toBooleanArray = kotlin_kotlin.$_$.f7; var withIndex = kotlin_kotlin.$_$.o7; var to = kotlin_kotlin.$_$.pd; var lazy_0 = kotlin_kotlin.$_$.jd; var contentEquals = kotlin_kotlin.$_$.l5; var until = kotlin_kotlin.$_$.sa; var joinToString$default = kotlin_kotlin.$_$.h; var objectMeta = kotlin_kotlin.$_$.da; var ensureNotNull = kotlin_kotlin.$_$.dd; var Long = kotlin_kotlin.$_$.lc; var Char = kotlin_kotlin.$_$.bc; var isObject = kotlin_kotlin.$_$.s9; var toIntOrNull = kotlin_kotlin.$_$.pb; var hashCode = kotlin_kotlin.$_$.f9; var ArrayList_init_$Create$_1 = kotlin_kotlin.$_$.b1; var isArray = kotlin_kotlin.$_$.h9; var arrayIterator = kotlin_kotlin.$_$.q8; var LinkedHashMap_init_$Create$_1 = kotlin_kotlin.$_$.k1; var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.l1; var LinkedHashSet_init_$Create$_0 = kotlin_kotlin.$_$.m1; var HashSet_init_$Create$_0 = kotlin_kotlin.$_$.h1; var HashMap_init_$Create$ = kotlin_kotlin.$_$.d1; var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.e1; var step = kotlin_kotlin.$_$.ra; var getValue = kotlin_kotlin.$_$.f6; var longArray = kotlin_kotlin.$_$.w9; var Companion_getInstance = kotlin_kotlin.$_$.b4; var get_lastIndex = kotlin_kotlin.$_$.j6; var countTrailingZeroBits = kotlin_kotlin.$_$.bd; var fillArrayVal = kotlin_kotlin.$_$.b9; var indexOf = kotlin_kotlin.$_$.g6; var contentToString = kotlin_kotlin.$_$.n5; var IntCompanionObject_getInstance = kotlin_kotlin.$_$.v3; var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.h3; var UInt = kotlin_kotlin.$_$.uc; var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.g3; var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.k3; var ULong = kotlin_kotlin.$_$.vc; var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.j3; var ByteCompanionObject_getInstance = kotlin_kotlin.$_$.s3; var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.e3; var UByte = kotlin_kotlin.$_$.tc; var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.d3; var ShortCompanionObject_getInstance = kotlin_kotlin.$_$.w3; var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.n3; var UShort = kotlin_kotlin.$_$.wc; var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.m3; var HashSet_init_$Create$_1 = kotlin_kotlin.$_$.f1; var contentHashCode = kotlin_kotlin.$_$.m5; var booleanArray = kotlin_kotlin.$_$.r8; var emptyMap = kotlin_kotlin.$_$.z5; var Companion_getInstance_0 = kotlin_kotlin.$_$.a4; var isCharArray = kotlin_kotlin.$_$.k9; var charArray = kotlin_kotlin.$_$.t8; var DoubleCompanionObject_getInstance = kotlin_kotlin.$_$.t3; var isDoubleArray = kotlin_kotlin.$_$.m9; var FloatCompanionObject_getInstance = kotlin_kotlin.$_$.u3; var isFloatArray = kotlin_kotlin.$_$.n9; var isLongArray = kotlin_kotlin.$_$.q9; var isIntArray = kotlin_kotlin.$_$.o9; var isShortArray = kotlin_kotlin.$_$.t9; var isByteArray = kotlin_kotlin.$_$.j9; var BooleanCompanionObject_getInstance = kotlin_kotlin.$_$.r3; var isBooleanArray = kotlin_kotlin.$_$.i9; var coerceAtLeast = kotlin_kotlin.$_$.la; var copyOf = kotlin_kotlin.$_$.r5; var copyOf_0 = kotlin_kotlin.$_$.t5; var copyOf_1 = kotlin_kotlin.$_$.u5; var copyOf_2 = kotlin_kotlin.$_$.p5; var copyOf_3 = kotlin_kotlin.$_$.w5; var copyOf_4 = kotlin_kotlin.$_$.o5; var copyOf_5 = kotlin_kotlin.$_$.s5; var copyOf_6 = kotlin_kotlin.$_$.q5; var Unit = kotlin_kotlin.$_$.xc; var trimIndent = kotlin_kotlin.$_$.yb; var equals_0 = kotlin_kotlin.$_$.za; var charSequenceLength = kotlin_kotlin.$_$.v8; var charSequenceGet = kotlin_kotlin.$_$.u8; var toString_0 = kotlin_kotlin.$_$.y2; var titlecase = kotlin_kotlin.$_$.mb; var isLowerCase = kotlin_kotlin.$_$.eb; var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.z3; var mapOf = kotlin_kotlin.$_$.s6; var lastOrNull = kotlin_kotlin.$_$.m6; var get_lastIndex_0 = kotlin_kotlin.$_$.k6; var asSequence = kotlin_kotlin.$_$.i5; var Annotation = kotlin_kotlin.$_$.ac; var get_indices = kotlin_kotlin.$_$.i6; var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.i2; var get_indices_0 = kotlin_kotlin.$_$.h6; var get_js = kotlin_kotlin.$_$.u9; var findAssociatedObject = kotlin_kotlin.$_$.b; //endregion //region block: pre-declaration PolymorphicSerializer.prototype = Object.create(AbstractPolymorphicSerializer.prototype); PolymorphicSerializer.prototype.constructor = PolymorphicSerializer; SealedClassSerializer.prototype = Object.create(AbstractPolymorphicSerializer.prototype); SealedClassSerializer.prototype.constructor = SealedClassSerializer; SerializationException.prototype = Object.create(IllegalArgumentException.prototype); SerializationException.prototype.constructor = SerializationException; UnknownFieldException.prototype = Object.create(SerializationException.prototype); UnknownFieldException.prototype.constructor = UnknownFieldException; MissingFieldException.prototype = Object.create(SerializationException.prototype); MissingFieldException.prototype.constructor = MissingFieldException; function get_isNullable() { return false; } function get_isInline() { return false; } function get_annotations() { return emptyList(); } ENUM.prototype = Object.create(SerialKind.prototype); ENUM.prototype.constructor = ENUM; CONTEXTUAL.prototype = Object.create(SerialKind.prototype); CONTEXTUAL.prototype.constructor = CONTEXTUAL; PrimitiveKind.prototype = Object.create(SerialKind.prototype); PrimitiveKind.prototype.constructor = PrimitiveKind; BOOLEAN.prototype = Object.create(PrimitiveKind.prototype); BOOLEAN.prototype.constructor = BOOLEAN; BYTE.prototype = Object.create(PrimitiveKind.prototype); BYTE.prototype.constructor = BYTE; CHAR.prototype = Object.create(PrimitiveKind.prototype); CHAR.prototype.constructor = CHAR; SHORT.prototype = Object.create(PrimitiveKind.prototype); SHORT.prototype.constructor = SHORT; INT.prototype = Object.create(PrimitiveKind.prototype); INT.prototype.constructor = INT; LONG.prototype = Object.create(PrimitiveKind.prototype); LONG.prototype.constructor = LONG; FLOAT.prototype = Object.create(PrimitiveKind.prototype); FLOAT.prototype.constructor = FLOAT; DOUBLE.prototype = Object.create(PrimitiveKind.prototype); DOUBLE.prototype.constructor = DOUBLE; STRING.prototype = Object.create(PrimitiveKind.prototype); STRING.prototype.constructor = STRING; StructureKind.prototype = Object.create(SerialKind.prototype); StructureKind.prototype.constructor = StructureKind; CLASS.prototype = Object.create(StructureKind.prototype); CLASS.prototype.constructor = CLASS; LIST.prototype = Object.create(StructureKind.prototype); LIST.prototype.constructor = LIST; MAP.prototype = Object.create(StructureKind.prototype); MAP.prototype.constructor = MAP; OBJECT.prototype = Object.create(StructureKind.prototype); OBJECT.prototype.constructor = OBJECT; PolymorphicKind.prototype = Object.create(SerialKind.prototype); PolymorphicKind.prototype.constructor = PolymorphicKind; SEALED.prototype = Object.create(PolymorphicKind.prototype); SEALED.prototype.constructor = SEALED; OPEN.prototype = Object.create(PolymorphicKind.prototype); OPEN.prototype.constructor = OPEN; function decodeSerializableValue(deserializer) { return deserializer.k3g(this); } function decodeSequentially() { return false; } function decodeCollectionSize(descriptor) { return -1; } function decodeSerializableElement$default(descriptor, index, deserializer, previousValue, $mask0, $handler) { if (!(($mask0 & 8) === 0)) previousValue = null; return $handler == null ? this.a3k(descriptor, index, deserializer, previousValue) : $handler(descriptor, index, deserializer, previousValue); } function encodeNotNullMark() { } function beginCollection(descriptor, collectionSize) { return this.p3j(descriptor); } function encodeSerializableValue(serializer, value) { serializer.j3g(this, value); } function encodeNullableSerializableValue(serializer, value) { var isNullabilitySupported = serializer.i3g().p3h(); if (isNullabilitySupported) { return this.e3l(isInterface(serializer, SerializationStrategy) ? serializer : THROW_CCE(), value); } if (value == null) { this.i3k(); } else { this.h3l(); this.e3l(serializer, value); } } function shouldEncodeElementDefault(descriptor, index) { return true; } PrimitiveArrayDescriptor.prototype = Object.create(ListLikeDescriptor.prototype); PrimitiveArrayDescriptor.prototype.constructor = PrimitiveArrayDescriptor; ArrayListClassDesc.prototype = Object.create(ListLikeDescriptor.prototype); ArrayListClassDesc.prototype.constructor = ArrayListClassDesc; ArrayClassDesc.prototype = Object.create(ListLikeDescriptor.prototype); ArrayClassDesc.prototype.constructor = ArrayClassDesc; LinkedHashMapClassDesc.prototype = Object.create(MapLikeDescriptor.prototype); LinkedHashMapClassDesc.prototype.constructor = LinkedHashMapClassDesc; LinkedHashSetClassDesc.prototype = Object.create(ListLikeDescriptor.prototype); LinkedHashSetClassDesc.prototype.constructor = LinkedHashSetClassDesc; HashSetClassDesc.prototype = Object.create(ListLikeDescriptor.prototype); HashSetClassDesc.prototype.constructor = HashSetClassDesc; HashMapClassDesc.prototype = Object.create(MapLikeDescriptor.prototype); HashMapClassDesc.prototype.constructor = HashMapClassDesc; ListLikeSerializer.prototype = Object.create(AbstractCollectionSerializer.prototype); ListLikeSerializer.prototype.constructor = ListLikeSerializer; PrimitiveArraySerializer.prototype = Object.create(ListLikeSerializer.prototype); PrimitiveArraySerializer.prototype.constructor = PrimitiveArraySerializer; ArrayListSerializer.prototype = Object.create(ListLikeSerializer.prototype); ArrayListSerializer.prototype.constructor = ArrayListSerializer; ReferenceArraySerializer.prototype = Object.create(ListLikeSerializer.prototype); ReferenceArraySerializer.prototype.constructor = ReferenceArraySerializer; MapLikeSerializer.prototype = Object.create(AbstractCollectionSerializer.prototype); MapLikeSerializer.prototype.constructor = MapLikeSerializer; LinkedHashMapSerializer.prototype = Object.create(MapLikeSerializer.prototype); LinkedHashMapSerializer.prototype.constructor = LinkedHashMapSerializer; LinkedHashSetSerializer.prototype = Object.create(ListLikeSerializer.prototype); LinkedHashSetSerializer.prototype.constructor = LinkedHashSetSerializer; HashSetSerializer.prototype = Object.create(ListLikeSerializer.prototype); HashSetSerializer.prototype.constructor = HashSetSerializer; HashMapSerializer.prototype = Object.create(MapLikeSerializer.prototype); HashMapSerializer.prototype.constructor = HashMapSerializer; EnumDescriptor.prototype = Object.create(PluginGeneratedSerialDescriptor.prototype); EnumDescriptor.prototype.constructor = EnumDescriptor; InlineClassDescriptor.prototype = Object.create(PluginGeneratedSerialDescriptor.prototype); InlineClassDescriptor.prototype.constructor = InlineClassDescriptor; function typeParametersSerializers() { return get_EMPTY_SERIALIZER_ARRAY(); } CharArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); CharArraySerializer_0.prototype.constructor = CharArraySerializer_0; DoubleArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); DoubleArraySerializer_0.prototype.constructor = DoubleArraySerializer_0; FloatArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); FloatArraySerializer_0.prototype.constructor = FloatArraySerializer_0; LongArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); LongArraySerializer_0.prototype.constructor = LongArraySerializer_0; IntArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); IntArraySerializer_0.prototype.constructor = IntArraySerializer_0; ShortArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); ShortArraySerializer_0.prototype.constructor = ShortArraySerializer_0; ByteArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); ByteArraySerializer_0.prototype.constructor = ByteArraySerializer_0; BooleanArraySerializer_0.prototype = Object.create(PrimitiveArraySerializer.prototype); BooleanArraySerializer_0.prototype.constructor = BooleanArraySerializer_0; CharArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); CharArrayBuilder.prototype.constructor = CharArrayBuilder; DoubleArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); DoubleArrayBuilder.prototype.constructor = DoubleArrayBuilder; FloatArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); FloatArrayBuilder.prototype.constructor = FloatArrayBuilder; LongArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); LongArrayBuilder.prototype.constructor = LongArrayBuilder; IntArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); IntArrayBuilder.prototype.constructor = IntArrayBuilder; ShortArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); ShortArrayBuilder.prototype.constructor = ShortArrayBuilder; ByteArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); ByteArrayBuilder.prototype.constructor = ByteArrayBuilder; BooleanArrayBuilder.prototype = Object.create(PrimitiveArrayBuilder.prototype); BooleanArrayBuilder.prototype.constructor = BooleanArrayBuilder; NamedValueDecoder.prototype = Object.create(TaggedDecoder.prototype); NamedValueDecoder.prototype.constructor = NamedValueDecoder; MapEntrySerializer_0.prototype = Object.create(KeyValueSerializer.prototype); MapEntrySerializer_0.prototype.constructor = MapEntrySerializer_0; PairSerializer_0.prototype = Object.create(KeyValueSerializer.prototype); PairSerializer_0.prototype.constructor = PairSerializer_0; SerialModuleImpl.prototype = Object.create(SerializersModule.prototype); SerialModuleImpl.prototype.constructor = SerialModuleImpl; Argless.prototype = Object.create(ContextualProvider.prototype); Argless.prototype.constructor = Argless; WithTypeArguments.prototype = Object.create(ContextualProvider.prototype); WithTypeArguments.prototype.constructor = WithTypeArguments; function contextual(kClass, serializer) { return this.j3y(kClass, SerializersModuleCollector$contextual$lambda(serializer)); } SerializerAlreadyRegisteredException.prototype = Object.create(IllegalArgumentException.prototype); SerializerAlreadyRegisteredException.prototype.constructor = SerializerAlreadyRegisteredException; //endregion function KSerializer() { } KSerializer.$metadata$ = interfaceMeta('KSerializer', [SerializationStrategy, DeserializationStrategy]); function SerializationStrategy() { } SerializationStrategy.$metadata$ = interfaceMeta('SerializationStrategy'); function DeserializationStrategy() { } DeserializationStrategy.$metadata$ = interfaceMeta('DeserializationStrategy'); function PolymorphicSerializer_init_$Init$(baseClass, classAnnotations, $this) { PolymorphicSerializer.call($this, baseClass); $this.m3g_1 = asList(classAnnotations); return $this; } function PolymorphicSerializer_init_$Create$(baseClass, classAnnotations) { return PolymorphicSerializer_init_$Init$(baseClass, classAnnotations, Object.create(PolymorphicSerializer.prototype)); } function PolymorphicSerializer$descriptor$delegate$lambda$lambda(this$0) { return function ($this$buildSerialDescriptor) { var tmp = serializer_2(StringCompanionObject_getInstance()).i3g(); $this$buildSerialDescriptor.w3g('type', tmp, null, false, 12, null); var tmp_0 = 'kotlinx.serialization.Polymorphic<' + this$0.l3g_1.me() + '>'; var tmp_1 = CONTEXTUAL_getInstance(); var tmp_2 = buildSerialDescriptor$default(tmp_0, tmp_1, [], null, 12, null); $this$buildSerialDescriptor.w3g('value', tmp_2, null, false, 12, null); $this$buildSerialDescriptor.q3g_1 = this$0.m3g_1; return Unit_getInstance(); }; } function PolymorphicSerializer$descriptor$delegate$lambda(this$0) { return function () { var tmp = OPEN_getInstance(); return withContext(buildSerialDescriptor$default('kotlinx.serialization.Polymorphic', tmp, [], PolymorphicSerializer$descriptor$delegate$lambda$lambda(this$0), 4, null), this$0.l3g_1); }; } function PolymorphicSerializer(baseClass) { AbstractPolymorphicSerializer.call(this); this.l3g_1 = baseClass; this.m3g_1 = emptyList(); var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.n3g_1 = lazy(tmp_0, PolymorphicSerializer$descriptor$delegate$lambda(this)); } PolymorphicSerializer.prototype.x3g = function () { return this.l3g_1; }; PolymorphicSerializer.prototype.i3g = function () { var tmp$ret$0; { var tmp0_getValue = descriptor$factory(); tmp$ret$0 = this.n3g_1.y(); } return tmp$ret$0; }; PolymorphicSerializer.prototype.toString = function () { return 'kotlinx.serialization.PolymorphicSerializer(baseClass: ' + this.l3g_1 + ')'; }; PolymorphicSerializer.$metadata$ = classMeta('PolymorphicSerializer', undefined, undefined, undefined, undefined, AbstractPolymorphicSerializer.prototype); function findPolymorphicSerializer(_this__u8e3s4, encoder, value) { var tmp0_elvis_lhs = _this__u8e3s4.z3g(encoder, value); var tmp; if (tmp0_elvis_lhs == null) { throwSubtypeNotRegistered(getKClassFromExpression(value), _this__u8e3s4.x3g()); } else { tmp = tmp0_elvis_lhs; } return tmp; } function findPolymorphicSerializer_0(_this__u8e3s4, decoder, klassName) { var tmp0_elvis_lhs = _this__u8e3s4.y3g(decoder, klassName); var tmp; if (tmp0_elvis_lhs == null) { throwSubtypeNotRegistered_0(klassName, _this__u8e3s4.x3g()); } else { tmp = tmp0_elvis_lhs; } return tmp; } function descriptor$factory() { return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) { return receiver.i3g(); }, null); } function SealedClassSerializer_init_$Init$(serialName, baseClass, subclasses, subclassSerializers, classAnnotations, $this) { SealedClassSerializer.call($this, serialName, baseClass, subclasses, subclassSerializers); $this.b3h_1 = asList(classAnnotations); return $this; } function SealedClassSerializer_init_$Create$(serialName, baseClass, subclasses, subclassSerializers, classAnnotations) { return SealedClassSerializer_init_$Init$(serialName, baseClass, subclasses, subclassSerializers, classAnnotations, Object.create(SealedClassSerializer.prototype)); } function SealedClassSerializer$descriptor$delegate$lambda$lambda$lambda($subclassSerializers) { return function ($this$buildSerialDescriptor) { var indexedObject = $subclassSerializers; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; { var d = element.i3g(); var tmp = d.f3h(); $this$buildSerialDescriptor.w3g(tmp, d, null, false, 12, null); } } return Unit_getInstance(); }; } function SealedClassSerializer$descriptor$delegate$lambda$lambda(this$0, $subclassSerializers) { return function ($this$buildSerialDescriptor) { var tmp = serializer_2(StringCompanionObject_getInstance()).i3g(); $this$buildSerialDescriptor.w3g('type', tmp, null, false, 12, null); var tmp_0 = 'kotlinx.serialization.Sealed<' + this$0.a3h_1.me() + '>'; var tmp_1 = CONTEXTUAL_getInstance(); var elementDescriptor = buildSerialDescriptor$default(tmp_0, tmp_1, [], SealedClassSerializer$descriptor$delegate$lambda$lambda$lambda($subclassSerializers), 4, null); $this$buildSerialDescriptor.w3g('value', elementDescriptor, null, false, 12, null); $this$buildSerialDescriptor.q3g_1 = this$0.b3h_1; return Unit_getInstance(); }; } function SealedClassSerializer$descriptor$delegate$lambda($serialName, this$0, $subclassSerializers) { return function () { var tmp = SEALED_getInstance(); return buildSerialDescriptor$default($serialName, tmp, [], SealedClassSerializer$descriptor$delegate$lambda$lambda(this$0, $subclassSerializers), 4, null); }; } function _no_name_provided__qut3iv($tmp0_groupingBy) { this.g3h_1 = $tmp0_groupingBy; } _no_name_provided__qut3iv.prototype.u = function () { return this.g3h_1.g(); }; _no_name_provided__qut3iv.prototype.h3h = function (element) { var tmp$ret$0; { tmp$ret$0 = element.y().i3g().f3h(); } return tmp$ret$0; }; _no_name_provided__qut3iv.prototype.v = function (element) { return this.h3h((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE()); }; _no_name_provided__qut3iv.$metadata$ = classMeta(undefined, [Grouping]); function SealedClassSerializer(serialName, baseClass, subclasses, subclassSerializers) { AbstractPolymorphicSerializer.call(this); this.a3h_1 = baseClass; this.b3h_1 = emptyList(); var tmp = this; var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp.c3h_1 = lazy(tmp_0, SealedClassSerializer$descriptor$delegate$lambda(serialName, this, subclassSerializers)); if (!(subclasses.length === subclassSerializers.length)) { throw IllegalArgumentException_init_$Create$('All subclasses of sealed class ' + this.a3h_1.me() + ' should be marked @Serializable'); } this.d3h_1 = toMap(zip(subclasses, subclassSerializers)); var tmp_1 = this; var tmp$ret$10; { var tmp$ret$5; { var tmp$ret$0; { var tmp0_groupingBy = this.d3h_1.w(); tmp$ret$0 = new _no_name_provided__qut3iv(tmp0_groupingBy); } var tmp1_aggregate = tmp$ret$0; var tmp$ret$4; { var tmp$ret$1; { tmp$ret$1 = LinkedHashMap_init_$Create$(); } var tmp2_aggregateTo = tmp$ret$1; var tmp$ret$2; { var tmp0_iterator = tmp1_aggregate.u(); tmp$ret$2 = tmp0_iterator; } var tmp0_iterator_0 = tmp$ret$2; while (tmp0_iterator_0.h()) { var e = tmp0_iterator_0.i(); var key = tmp1_aggregate.v(e); var accumulator = tmp2_aggregateTo.n2(key); { var tmp$ret$3; { var tmp2__anonymous__z9zvc9 = accumulator == null ? !tmp2_aggregateTo.h2(key) : false; if (!(accumulator == null)) { { var tmp0_error = "Multiple sealed subclasses of '" + this.a3h_1 + "' have the same serial name '" + key + "':" + (" '" + accumulator.x() + "', '" + e.x() + "'"); throw IllegalStateException_init_$Create$(toString(tmp0_error)); } } tmp$ret$3 = e; } var tmp1_set = tmp$ret$3; tmp2_aggregateTo.c(key, tmp1_set); } } tmp$ret$4 = tmp2_aggregateTo; } tmp$ret$5 = tmp$ret$4; } var tmp3_mapValues = tmp$ret$5; var tmp$ret$9; { var tmp1_mapValuesTo = LinkedHashMap_init_$Create$_0(mapCapacity(tmp3_mapValues.j())); var tmp$ret$8; { var tmp0_associateByTo = tmp3_mapValues.w(); var tmp0_iterator_1 = tmp0_associateByTo.g(); while (tmp0_iterator_1.h()) { var element = tmp0_iterator_1.i(); var tmp$ret$6; { tmp$ret$6 = element.x(); } var tmp_2 = tmp$ret$6; var tmp$ret$7; { tmp$ret$7 = element.y().y(); } tmp1_mapValuesTo.c(tmp_2, tmp$ret$7); } tmp$ret$8 = tmp1_mapValuesTo; } tmp$ret$9 = tmp$ret$8; } tmp$ret$10 = tmp$ret$9; } tmp_1.e3h_1 = tmp$ret$10; } SealedClassSerializer.prototype.x3g = function () { return this.a3h_1; }; SealedClassSerializer.prototype.i3g = function () { var tmp$ret$0; { var tmp0_getValue = descriptor$factory_0(); tmp$ret$0 = this.c3h_1.y(); } return tmp$ret$0; }; SealedClassSerializer.prototype.y3g = function (decoder, klassName) { var tmp$ret$0; { var tmp0_get = this.e3h_1; tmp$ret$0 = (isInterface(tmp0_get, Map) ? tmp0_get : THROW_CCE()).n2(klassName); } var tmp0_elvis_lhs = tmp$ret$0; return tmp0_elvis_lhs == null ? AbstractPolymorphicSerializer.prototype.y3g.call(this, decoder, klassName) : tmp0_elvis_lhs; }; SealedClassSerializer.prototype.z3g = function (encoder, value) { var tmp0_elvis_lhs = this.d3h_1.n2(getKClassFromExpression(value)); var tmp1_safe_receiver = tmp0_elvis_lhs == null ? AbstractPolymorphicSerializer.prototype.z3g.call(this, encoder, value) : tmp0_elvis_lhs; var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { var tmp$ret$0; { tmp$ret$0 = (!(tmp1_safe_receiver == null) ? isInterface(tmp1_safe_receiver, SerializationStrategy) : false) ? tmp1_safe_receiver : THROW_CCE(); } tmp = tmp$ret$0; } return tmp; }; SealedClassSerializer.$metadata$ = classMeta('SealedClassSerializer', undefined, undefined, undefined, undefined, AbstractPolymorphicSerializer.prototype); function descriptor$factory_0() { return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) { return receiver.i3g(); }, null); } function StringFormat() { } StringFormat.$metadata$ = interfaceMeta('StringFormat', [SerialFormat]); function SerialFormat() { } SerialFormat.$metadata$ = interfaceMeta('SerialFormat'); function UnknownFieldException_init_$Init$(index, $this) { UnknownFieldException.call($this, 'An unknown field for index ' + index); return $this; } function UnknownFieldException_init_$Create$(index) { var tmp = UnknownFieldException_init_$Init$(index, Object.create(UnknownFieldException.prototype)); captureStack(tmp, UnknownFieldException_init_$Create$); return tmp; } function UnknownFieldException(message) { SerializationException_init_$Init$(message, this); captureStack(this, UnknownFieldException); } UnknownFieldException.$metadata$ = classMeta('UnknownFieldException', undefined, undefined, undefined, undefined, SerializationException.prototype); function SerializationException_init_$Init$(message, $this) { IllegalArgumentException_init_$Init$(message, $this); SerializationException.call($this); return $this; } function SerializationException_init_$Create$(message) { var tmp = SerializationException_init_$Init$(message, Object.create(SerializationException.prototype)); captureStack(tmp, SerializationException_init_$Create$); return tmp; } function SerializationException_init_$Init$_0(message, cause, $this) { IllegalArgumentException_init_$Init$_0(message, cause, $this); SerializationException.call($this); return $this; } function SerializationException() { captureStack(this, SerializationException); } SerializationException.$metadata$ = classMeta('SerializationException', undefined, undefined, undefined, undefined, IllegalArgumentException.prototype); function MissingFieldException_init_$Init$(fieldNames, serialName, $this) { MissingFieldException.call($this, fieldNames.j() === 1 ? "Field '" + fieldNames.l(0) + "' is required for type with serial name '" + serialName + "', but it was missing" : 'Fields ' + fieldNames + " are required for type with serial name '" + serialName + "', but they were missing", null); return $this; } function MissingFieldException_init_$Create$(fieldNames, serialName) { var tmp = MissingFieldException_init_$Init$(fieldNames, serialName, Object.create(MissingFieldException.prototype)); captureStack(tmp, MissingFieldException_init_$Create$); return tmp; } function MissingFieldException(message, cause) { SerializationException_init_$Init$_0(message, cause, this); captureStack(this, MissingFieldException); } MissingFieldException.$metadata$ = classMeta('MissingFieldException', undefined, undefined, undefined, undefined, SerializationException.prototype); function serializer(type) { return serializer_1(get_EmptySerializersModule(), type); } function serializer_0(_this__u8e3s4) { var tmp0_elvis_lhs = serializerOrNull(_this__u8e3s4); var tmp; if (tmp0_elvis_lhs == null) { serializerNotRegistered(_this__u8e3s4); } else { tmp = tmp0_elvis_lhs; } return tmp; } function serializer_1(_this__u8e3s4, type) { var tmp0_elvis_lhs = serializerByKTypeImpl(_this__u8e3s4, type, true); var tmp; if (tmp0_elvis_lhs == null) { platformSpecificSerializerNotRegistered(kclass(type)); } else { tmp = tmp0_elvis_lhs; } return tmp; } function serializerOrNull(_this__u8e3s4) { var tmp0_elvis_lhs = compiledSerializerImpl(_this__u8e3s4); return tmp0_elvis_lhs == null ? builtinSerializerOrNull(_this__u8e3s4) : tmp0_elvis_lhs; } function serializerByKTypeImpl(_this__u8e3s4, type, failOnMissingTypeArgSerializer) { var rootClass = kclass(type); var isNullable = type.xe(); var tmp$ret$4; { var tmp0_map = type.we(); var tmp$ret$3; { var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10)); var tmp0_iterator = tmp0_map.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); var tmp$ret$2; { var tmp$ret$1; $l$block: { var tmp0_requireNotNull = item.m3h_1; { } if (tmp0_requireNotNull == null) { var tmp$ret$0; { tmp$ret$0 = 'Star projections in type arguments are not allowed, but had ' + type; } var message = tmp$ret$0; throw IllegalArgumentException_init_$Create$(toString(message)); } else { tmp$ret$1 = tmp0_requireNotNull; break $l$block; } } tmp$ret$2 = tmp$ret$1; } tmp0_mapTo.a(tmp$ret$2); } tmp$ret$3 = tmp0_mapTo; } tmp$ret$4 = tmp$ret$3; } var typeArguments = tmp$ret$4; var tmp; if (typeArguments.m()) { var tmp0_elvis_lhs = serializerOrNull(rootClass); var tmp_0; if (tmp0_elvis_lhs == null) { tmp_0 = _this__u8e3s4.n3h(rootClass, null, 2, null); } else { tmp_0 = tmp0_elvis_lhs; } tmp = tmp_0; } else { tmp = builtinSerializer(_this__u8e3s4, typeArguments, rootClass, failOnMissingTypeArgSerializer); } var tmp1_safe_receiver = tmp; var tmp_1; if (tmp1_safe_receiver == null) { tmp_1 = null; } else { var tmp$ret$5; { tmp$ret$5 = (!(tmp1_safe_receiver == null) ? isInterface(tmp1_safe_receiver, KSerializer) : false) ? tmp1_safe_receiver : THROW_CCE(); } tmp_1 = tmp$ret$5; } var result = tmp_1; var tmp2_safe_receiver = result; return tmp2_safe_receiver == null ? null : nullable(tmp2_safe_receiver, isNullable); } function builtinSerializer(_this__u8e3s4, typeArguments, rootClass, failOnMissingTypeArgSerializer) { var tmp; if (failOnMissingTypeArgSerializer) { var tmp$ret$1; { var tmp$ret$0; { var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(typeArguments, 10)); var tmp0_iterator = typeArguments.g(); while (tmp0_iterator.h()) { var item = tmp0_iterator.i(); tmp0_mapTo.a(serializer_1(_this__u8e3s4, item)); } tmp$ret$0 = tmp0_mapTo; } tmp$ret$1 = tmp$ret$0; } tmp = tmp$ret$1; } else { var tmp$ret$4; { var tmp$ret$3; { var tmp0_mapTo_0 = ArrayList_init_$Create$(collectionSizeOrDefault(typeArguments, 10)); var tmp0_iterator_0 = typeArguments.g(); while (tmp0_iterator_0.h()) { var item_0 = tmp0_iterator_0.i(); var tmp$ret$2; { var tmp0_elvis_lhs = serializerOrNull_0(_this__u8e3s4, item_0); var tmp_0; if (tmp0_elvis_lhs == null) { return null; } else { tmp_0 = tmp0_elvis_lhs; } tmp$ret$2 = tmp_0; } tmp0_mapTo_0.a(tmp$ret$2); } tmp$ret$3 = tmp0_mapTo_0; } tmp$ret$4 = tmp$ret$3; } tmp = tmp$ret$4; } var serializers = tmp; var tmp0_subject = rootClass; var tmp_1; if (((tmp0_subject.equals(getKClass(Collection)) ? true : tmp0_subject.equals(getKClass(List))) ? true : tmp0_subject.equals(getKClass(MutableList))) ? true : tmp0_subject.equals(getKClass(ArrayList))) { tmp_1 = new ArrayListSerializer(serializers.l(0)); } else if (tmp0_subject.equals(getKClass(HashSet))) { tmp_1 = new HashSetSerializer(serializers.l(0)); } else if ((tmp0_subject.equals(getKClass(Set)) ? true : tmp0_subject.equals(getKClass(MutableSet))) ? true : tmp0_subject.equals(getKClass(LinkedHashSet))) { tmp_1 = new LinkedHashSetSerializer(serializers.l(0)); } else if (tmp0_subject.equals(getKClass(HashMap))) { tmp_1 = new HashMapSerializer(serializers.l(0), serializers.l(1)); } else if ((tmp0_subject.equals(getKClass(Map)) ? true : tmp0_subject.equals(getKClass(MutableMap))) ? true : tmp0_subject.equals(getKClass(LinkedHashMap))) { tmp_1 = new LinkedHashMapSerializer(serializers.l(0), serializers.l(1)); } else if (tmp0_subject.equals(getKClass(Entry))) { tmp_1 = MapEntrySerializer(serializers.l(0), serializers.l(1)); } else if (tmp0_subject.equals(getKClass(Pair))) { tmp_1 = PairSerializer(serializers.l(0), serializers.l(1)); } else if (tmp0_subject.equals(getKClass(Triple))) { tmp_1 = TripleSerializer(serializers.l(0), serializers.l(1), serializers.l(2)); } else { if (isReferenceArray(rootClass)) { var tmp$ret$5; { var tmp_2 = typeArguments.l(0).ve(); var tmp0_cast = ArraySerializer((!(tmp_2 == null) ? isInterface(tmp_2, KClass) : false) ? tmp_2 : THROW_CCE(), serializers.l(0)); tmp$ret$5 = isInterface(tmp0_cast, KSerializer) ? tmp0_cast : THROW_CCE(); } return tmp$ret$5; } var tmp$ret$6; { tmp$ret$6 = copyToArray(serializers); } var args = tmp$ret$6; var tmp1_elvis_lhs = constructSerializerForGivenTypeArgs(rootClass, args.slice()); tmp_1 = tmp1_elvis_lhs == null ? reflectiveOrContextual(_this__u8e3s4, rootClass, serializers) : tmp1_elvis_lhs; } return tmp_1; } function nullable(_this__u8e3s4, shouldBeNullable) { if (shouldBeNullable) return get_nullable(_this__u8e3s4); return isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE(); } function serializerOrNull_0(_this__u8e3s4, type) { return serializerByKTypeImpl(_this__u8e3s4, type, false); } function reflectiveOrContextual(_this__u8e3s4, kClass, typeArgumentsSerializers) { var tmp0_elvis_lhs = serializerOrNull(kClass); return tmp0_elvis_lhs == null ? _this__u8e3s4.o3h(kClass, typeArgumentsSerializers) : tmp0_elvis_lhs; } function serializer_2(_this__u8e3s4) { return StringSerializer_getInstance(); } function serializer_3(_this__u8e3s4) { return CharSerializer_getInstance(); } function CharArraySerializer() { return CharArraySerializer_getInstance(); } function serializer_4(_this__u8e3s4) { return DoubleSerializer_getInstance(); } function DoubleArraySerializer() { return DoubleArraySerializer_getInstance(); } function serializer_5(_this__u8e3s4) { return FloatSerializer_getInstance(); } function FloatArraySerializer() { return FloatArraySerializer_getInstance(); } function serializer_6(_this__u8e3s4) { return LongSerializer_getInstance(); } function LongArraySerializer() { return LongArraySerializer_getInstance(); } function serializer_7(_this__u8e3s4) { return IntSerializer_getInstance(); } function IntArraySerializer() { return IntArraySerializer_getInstance(); } function serializer_8(_this__u8e3s4) { return ShortSerializer_getInstance(); } function ShortArraySerializer() { return ShortArraySerializer_getInstance(); } function serializer_9(_this__u8e3s4) { return ByteSerializer_getInstance(); } function ByteArraySerializer() { return ByteArraySerializer_getInstance(); } function serializer_10(_this__u8e3s4) { return BooleanSerializer_getInstance(); } function BooleanArraySerializer() { return BooleanArraySerializer_getInstance(); } function serializer_11(_this__u8e3s4) { return UnitSerializer_getInstance(); } function serializer_12(_this__u8e3s4) { return UIntSerializer_getInstance(); } function serializer_13(_this__u8e3s4) { return ULongSerializer_getInstance(); } function serializer_14(_this__u8e3s4) { return UByteSerializer_getInstance(); } function serializer_15(_this__u8e3s4) { return UShortSerializer_getInstance(); } function ListSerializer(elementSerializer) { return new ArrayListSerializer(elementSerializer); } function SetSerializer(elementSerializer) { return new LinkedHashSetSerializer(elementSerializer); } function MapSerializer(keySerializer, valueSerializer) { return new LinkedHashMapSerializer(keySerializer, valueSerializer); } function get_nullable(_this__u8e3s4) { var tmp; if (_this__u8e3s4.i3g().p3h()) { tmp = isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE(); } else { tmp = new NullableSerializer(_this__u8e3s4); } return tmp; } function MapEntrySerializer(keySerializer, valueSerializer) { return new MapEntrySerializer_0(keySerializer, valueSerializer); } function PairSerializer(keySerializer, valueSerializer) { return new PairSerializer_0(keySerializer, valueSerializer); } function TripleSerializer(aSerializer, bSerializer, cSerializer) { return new TripleSerializer_0(aSerializer, bSerializer, cSerializer); } function ArraySerializer(kClass, elementSerializer) { return new ReferenceArraySerializer(kClass, elementSerializer); } function withContext(_this__u8e3s4, context) { return new ContextDescriptor(_this__u8e3s4, context); } function ContextDescriptor(original, kClass) { this.q3h_1 = original; this.r3h_1 = kClass; this.s3h_1 = this.q3h_1.f3h() + '<' + this.r3h_1.me() + '>'; } ContextDescriptor.prototype.t3h = function () { return this.q3h_1.t3h(); }; ContextDescriptor.prototype.u3h = function () { return this.q3h_1.u3h(); }; ContextDescriptor.prototype.v3h = function () { return this.q3h_1.v3h(); }; ContextDescriptor.prototype.p3h = function () { return this.q3h_1.p3h(); }; ContextDescriptor.prototype.w3h = function () { return this.q3h_1.w3h(); }; ContextDescriptor.prototype.x3h = function (index) { return this.q3h_1.x3h(index); }; ContextDescriptor.prototype.y3h = function (index) { return this.q3h_1.y3h(index); }; ContextDescriptor.prototype.z3h = function (name) { return this.q3h_1.z3h(name); }; ContextDescriptor.prototype.a3i = function (index) { return this.q3h_1.a3i(index); }; ContextDescriptor.prototype.b3i = function (index) { return this.q3h_1.b3i(index); }; ContextDescriptor.prototype.f3h = function () { return this.s3h_1; }; ContextDescriptor.prototype.equals = function (other) { var tmp0_elvis_lhs = other instanceof ContextDescriptor ? other : null; var tmp; if (tmp0_elvis_lhs == null) { return false; } else { tmp = tmp0_elvis_lhs; } var another = tmp; return equals(this.q3h_1, another.q3h_1) ? another.r3h_1.equals(this.r3h_1) : false; }; ContextDescriptor.prototype.hashCode = function () { var result = this.r3h_1.hashCode(); result = imul(31, result) + getStringHashCode(this.s3h_1) | 0; return result; }; ContextDescriptor.prototype.toString = function () { return 'ContextDescriptor(kClass: ' + this.r3h_1 + ', original: ' + this.q3h_1 + ')'; }; ContextDescriptor.$metadata$ = classMeta('ContextDescriptor', [SerialDescriptor]); function getContextualDescriptor(_this__u8e3s4, descriptor) { var tmp0_safe_receiver = get_capturedKClass(descriptor); var tmp; if (tmp0_safe_receiver == null) { tmp = null; } else { var tmp$ret$1; { { } var tmp$ret$0; { var tmp0_safe_receiver_0 = _this__u8e3s4.n3h(tmp0_safe_receiver, null, 2, null); tmp$ret$0 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.i3g(); } tmp$ret$1 = tmp$ret$0; } tmp = tmp$ret$1; } return tmp; } function get_capturedKClass(_this__u8e3s4) { var tmp0_subject = _this__u8e3s4; var tmp; if (tmp0_subject instanceof ContextDescriptor) { tmp = _this__u8e3s4.r3h_1; } else { if (tmp0_subject instanceof SerialDescriptorForNullable) { tmp = get_capturedKClass(_this__u8e3s4.c3i_1); } else { tmp = null; } } return tmp; } function SerialDescriptor() { } SerialDescriptor.$metadata$ = interfaceMeta('SerialDescriptor'); function get_elementDescriptors(_this__u8e3s4) { var tmp$ret$0; { tmp$ret$0 = new _no_name_provided__qut3iv_0(_this__u8e3s4); } return tmp$ret$0; } function get_elementNames(_this__u8e3s4) { var tmp$ret$0; { tmp$ret$0 = new _no_name_provided__qut3iv_1(_this__u8e3s4); } return tmp$ret$0; } function elementDescriptors$1$1($this_elementDescriptors) { this.g3i_1 = $this_elementDescriptors; this.f3i_1 = $this_elementDescriptors.u3h(); } elementDescriptors$1$1.prototype.h = function () { return this.f3i_1 > 0; }; elementDescriptors$1$1.prototype.i = function () { var tmp = this.g3i_1.u3h(); var tmp0_this = this; var tmp1 = tmp0_this.f3i_1; tmp0_this.f3i_1 = tmp1 - 1 | 0; return this.g3i_1.y3h(tmp - tmp1 | 0); }; elementDescriptors$1$1.$metadata$ = classMeta(undefined, [Iterator]); function _no_name_provided__qut3iv_0($this_elementDescriptors) { this.h3i_1 = $this_elementDescriptors; } _no_name_provided__qut3iv_0.prototype.g = function () { var tmp$ret$0; { tmp$ret$0 = new elementDescriptors$1$1(this.h3i_1); } return tmp$ret$0; }; _no_name_provided__qut3iv_0.$metadata$ = classMeta(undefined, [Iterable]); function elementNames$1$1($this_elementNames) { this.j3i_1 = $this_elementNames; this.i3i_1 = $this_elementNames.u3h(); } elementNames$1$1.prototype.h = function () { return this.i3i_1 > 0; }; elementNames$1$1.prototype.i = function () { var tmp = this.j3i_1.u3h(); var tmp0_this = this; var tmp1 = tmp0_this.i3i_1; tmp0_this.i3i_1 = tmp1 - 1 | 0; return this.j3i_1.a3i(tmp - tmp1 | 0); }; elementNames$1$1.$metadata$ = classMeta(undefined, [Iterator]); function _no_name_provided__qut3iv_1($this_elementNames) { this.k3i_1 = $this_elementNames; } _no_name_provided__qut3iv_1.prototype.g = function () { var tmp$ret$0; { tmp$ret$0 = new elementNames$1$1(this.k3i_1); } return tmp$ret$0; }; _no_name_provided__qut3iv_1.$metadata$ = classMeta(undefined, [Iterable]); function buildSerialDescriptor(serialName, kind, typeParameters, builder) { { var tmp$ret$0; { tmp$ret$0 = !isBlank(serialName); } var tmp0_require = tmp$ret$0; { } if (!tmp0_require) { var tmp$ret$1; { tmp$ret$1 = 'Blank serial names are prohibited'; } var message = tmp$ret$1; throw IllegalArgumentException_init_$Create$(toString(message)); } } { var tmp1_require = !equals(kind, CLASS_getInstance()); { } if (!tmp1_require) { var tmp$ret$2; { tmp$ret$2 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead"; } var message_0 = tmp$ret$2; throw IllegalArgumentException_init_$Create$(toString(message_0)); } } var sdBuilder = new ClassSerialDescriptorBuilder(serialName); builder(sdBuilder); return new SerialDescriptorImpl(serialName, kind, sdBuilder.r3g_1.j(), toList(typeParameters), sdBuilder); } function buildSerialDescriptor$default(serialName, kind, typeParameters, builder, $mask0, $handler) { if (!(($mask0 & 8) === 0)) { builder = buildSerialDescriptor$lambda(); } return buildSerialDescriptor(serialName, kind, typeParameters, builder); } function ClassSerialDescriptorBuilder(serialName) { this.o3g_1 = serialName; this.p3g_1 = false; this.q3g_1 = emptyList(); this.r3g_1 = ArrayList_init_$Create$_0(); this.s3g_1 = HashSet_init_$Create$(); this.t3g_1 = ArrayList_init_$Create$_0(); this.u3g_1 = ArrayList_init_$Create$_0(); this.v3g_1 = ArrayList_init_$Create$_0(); } ClassSerialDescriptorBuilder.prototype.l3i = function (elementName, descriptor, annotations, isOptional) { { var tmp0_require = this.s3g_1.a(elementName); { } if (!tmp0_require) { var tmp$ret$0; { tmp$ret$0 = "Element with name '" + elementName + "' is already registered"; } var message = tmp$ret$0; throw IllegalArgumentException_init_$Create$(toString(message)); } } var tmp0_this = this; { var tmp1_plusAssig