UNPKG

@earth-app/shovel

Version:

Kotlin Multiplatform Web Scraping Framework

783 lines (781 loc) 29.5 kB
(function (factory) { if (typeof define === 'function' && define.amd) define(['exports', './kotlin-kotlin-stdlib.js'], factory); else if (typeof exports === 'object') factory(module.exports, require('./kotlin-kotlin-stdlib.js')); else { if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') { throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-core'."); } globalThis['kotlinx-serialization-kotlinx-serialization-core'] = factory(typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined' ? {} : globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlin-kotlin-stdlib']); } }(function (_, kotlin_kotlin) { 'use strict'; //region block: imports var imul = Math.imul; var protoOf = kotlin_kotlin.$_$.j8; var initMetadataForInterface = kotlin_kotlin.$_$.x7; var initMetadataForClass = kotlin_kotlin.$_$.t7; var VOID = kotlin_kotlin.$_$.b; var isBlank = kotlin_kotlin.$_$.y9; var toString = kotlin_kotlin.$_$.m8; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.i1; var Unit_instance = kotlin_kotlin.$_$.v2; var equals = kotlin_kotlin.$_$.m7; var toList = kotlin_kotlin.$_$.h5; var emptyList = kotlin_kotlin.$_$.z3; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j; var HashSet_init_$Create$ = kotlin_kotlin.$_$.m; var KProperty1 = kotlin_kotlin.$_$.a9; var getPropertyCallableRef = kotlin_kotlin.$_$.q7; var toHashSet = kotlin_kotlin.$_$.e5; var copyToArray = kotlin_kotlin.$_$.x3; var toBooleanArray = kotlin_kotlin.$_$.c5; var withIndex = kotlin_kotlin.$_$.o5; var collectionSizeOrDefault = kotlin_kotlin.$_$.p3; var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i; var to = kotlin_kotlin.$_$.qc; var toMap = kotlin_kotlin.$_$.j5; var lazy = kotlin_kotlin.$_$.lc; var contentEquals = kotlin_kotlin.$_$.r3; var initMetadataForObject = kotlin_kotlin.$_$.z7; var getKClassFromExpression = kotlin_kotlin.$_$.v8; var ensureNotNull = kotlin_kotlin.$_$.ic; var getStringHashCode = kotlin_kotlin.$_$.r7; var isInterface = kotlin_kotlin.$_$.d8; var joinToString = kotlin_kotlin.$_$.i4; var hashCode = kotlin_kotlin.$_$.s7; var HashSet_init_$Create$_0 = kotlin_kotlin.$_$.l; var HashMap_init_$Create$ = kotlin_kotlin.$_$.k; var booleanArray = kotlin_kotlin.$_$.c7; var emptyMap = kotlin_kotlin.$_$.a4; var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.f; var lazy_0 = kotlin_kotlin.$_$.kc; var contentHashCode = kotlin_kotlin.$_$.u3; var until = kotlin_kotlin.$_$.r8; var get_indices = kotlin_kotlin.$_$.h4; var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.p1; //endregion //region block: pre-declaration initMetadataForInterface(SerialDescriptor, 'SerialDescriptor'); initMetadataForClass(elementNames$1); initMetadataForClass(elementNames$$inlined$Iterable$1); initMetadataForClass(elementDescriptors$1); initMetadataForClass(elementDescriptors$$inlined$Iterable$1); initMetadataForClass(ClassSerialDescriptorBuilder, 'ClassSerialDescriptorBuilder'); initMetadataForInterface(CachedNames, 'CachedNames'); initMetadataForClass(SerialDescriptorImpl, 'SerialDescriptorImpl', VOID, VOID, [SerialDescriptor, CachedNames]); initMetadataForClass(SerialKind, 'SerialKind'); initMetadataForObject(ENUM, 'ENUM', VOID, SerialKind); initMetadataForClass(StructureKind, 'StructureKind', VOID, SerialKind); initMetadataForObject(CLASS, 'CLASS', VOID, StructureKind); initMetadataForObject(OBJECT, 'OBJECT', VOID, StructureKind); initMetadataForClass(EnumSerializer, 'EnumSerializer'); initMetadataForClass(PluginGeneratedSerialDescriptor, 'PluginGeneratedSerialDescriptor', VOID, VOID, [SerialDescriptor, CachedNames]); initMetadataForClass(EnumDescriptor, 'EnumDescriptor', VOID, PluginGeneratedSerialDescriptor); function typeParametersSerializers() { return get_EMPTY_SERIALIZER_ARRAY(); } initMetadataForInterface(GeneratedSerializer, 'GeneratedSerializer'); initMetadataForClass(SerializableWith, 'SerializableWith', VOID, VOID, VOID, VOID, 0); //endregion function SerialDescriptor() { } function get_elementNames(_this__u8e3s4) { // Inline function 'kotlin.collections.Iterable' call return new elementNames$$inlined$Iterable$1(_this__u8e3s4); } function get_elementDescriptors(_this__u8e3s4) { // Inline function 'kotlin.collections.Iterable' call return new elementDescriptors$$inlined$Iterable$1(_this__u8e3s4); } function elementNames$1($this_elementNames) { this.q1k_1 = $this_elementNames; this.p1k_1 = $this_elementNames.m1k(); } protoOf(elementNames$1).r = function () { return this.p1k_1 > 0; }; protoOf(elementNames$1).s = function () { var tmp = this.q1k_1.m1k(); var _unary__edvuaz = this.p1k_1; this.p1k_1 = _unary__edvuaz - 1 | 0; return this.q1k_1.n1k(tmp - _unary__edvuaz | 0); }; function elementNames$$inlined$Iterable$1($this_elementNames) { this.r1k_1 = $this_elementNames; } protoOf(elementNames$$inlined$Iterable$1).q = function () { return new elementNames$1(this.r1k_1); }; function elementDescriptors$1($this_elementDescriptors) { this.t1k_1 = $this_elementDescriptors; this.s1k_1 = $this_elementDescriptors.m1k(); } protoOf(elementDescriptors$1).r = function () { return this.s1k_1 > 0; }; protoOf(elementDescriptors$1).s = function () { var tmp = this.t1k_1.m1k(); var _unary__edvuaz = this.s1k_1; this.s1k_1 = _unary__edvuaz - 1 | 0; return this.t1k_1.o1k(tmp - _unary__edvuaz | 0); }; function elementDescriptors$$inlined$Iterable$1($this_elementDescriptors) { this.u1k_1 = $this_elementDescriptors; } protoOf(elementDescriptors$$inlined$Iterable$1).q = function () { return new elementDescriptors$1(this.u1k_1); }; 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_init_$Create$(toString(message)); } // Inline function 'kotlin.require' call if (!!equals(kind, CLASS_getInstance())) { var message_0 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead"; throw IllegalArgumentException_init_$Create$(toString(message_0)); } var sdBuilder = new ClassSerialDescriptorBuilder(serialName); builder(sdBuilder); return new SerialDescriptorImpl(serialName, kind, sdBuilder.y1k_1.a1(), toList(typeParameters), sdBuilder); } function ClassSerialDescriptorBuilder(serialName) { this.v1k_1 = serialName; this.w1k_1 = false; this.x1k_1 = emptyList(); this.y1k_1 = ArrayList_init_$Create$(); this.z1k_1 = HashSet_init_$Create$(); this.a1l_1 = ArrayList_init_$Create$(); this.b1l_1 = ArrayList_init_$Create$(); this.c1l_1 = ArrayList_init_$Create$(); } function _get__hashCode__tgwhef($this) { var tmp0 = $this.o1l_1; var tmp = KProperty1; // Inline function 'kotlin.getValue' call getPropertyCallableRef('_hashCode', 1, tmp, SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp(), null); return tmp0.j1(); } function SerialDescriptorImpl$_hashCode$delegate$lambda(this$0) { return function () { return hashCodeImpl(this$0, this$0.n1l_1); }; } function SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp() { return function (p0) { return _get__hashCode__tgwhef(p0); }; } function SerialDescriptorImpl(serialName, kind, elementsCount, typeParameters, builder) { this.d1l_1 = serialName; this.e1l_1 = kind; this.f1l_1 = elementsCount; this.g1l_1 = builder.x1k_1; this.h1l_1 = toHashSet(builder.y1k_1); var tmp = this; // Inline function 'kotlin.collections.toTypedArray' call var this_0 = builder.y1k_1; tmp.i1l_1 = copyToArray(this_0); this.j1l_1 = compactArray(builder.a1l_1); var tmp_0 = this; // Inline function 'kotlin.collections.toTypedArray' call var this_1 = builder.b1l_1; tmp_0.k1l_1 = copyToArray(this_1); this.l1l_1 = toBooleanArray(builder.c1l_1); var tmp_1 = this; // Inline function 'kotlin.collections.map' call var this_2 = withIndex(this.i1l_1); // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10)); var _iterator__ex2g4s = this_2.q(); while (_iterator__ex2g4s.r()) { var item = _iterator__ex2g4s.s(); var tmp$ret$2 = to(item.cf_1, item.bf_1); destination.y(tmp$ret$2); } tmp_1.m1l_1 = toMap(destination); this.n1l_1 = compactArray(typeParameters); var tmp_2 = this; tmp_2.o1l_1 = lazy(SerialDescriptorImpl$_hashCode$delegate$lambda(this)); } protoOf(SerialDescriptorImpl).k1k = function () { return this.d1l_1; }; protoOf(SerialDescriptorImpl).l1k = function () { return this.e1l_1; }; protoOf(SerialDescriptorImpl).m1k = function () { return this.f1l_1; }; protoOf(SerialDescriptorImpl).p1l = function () { return this.h1l_1; }; protoOf(SerialDescriptorImpl).n1k = function (index) { return getChecked(this.i1l_1, index); }; protoOf(SerialDescriptorImpl).o1k = function (index) { return getChecked(this.j1l_1, index); }; protoOf(SerialDescriptorImpl).equals = function (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.k1k() === other.k1k())) { tmp$ret$0 = false; break $l$block_5; } if (!contentEquals(this.n1l_1, other.n1l_1)) { tmp$ret$0 = false; break $l$block_5; } if (!(this.m1k() === other.m1k())) { tmp$ret$0 = false; break $l$block_5; } var inductionVariable = 0; var last = this.m1k(); if (inductionVariable < last) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (!(this.o1k(index).k1k() === other.o1k(index).k1k())) { tmp$ret$0 = false; break $l$block_5; } if (!equals(this.o1k(index).l1k(), other.o1k(index).l1k())) { tmp$ret$0 = false; break $l$block_5; } } while (inductionVariable < last); tmp$ret$0 = true; } return tmp$ret$0; }; protoOf(SerialDescriptorImpl).hashCode = function () { return _get__hashCode__tgwhef(this); }; protoOf(SerialDescriptorImpl).toString = function () { return toStringImpl(this); }; function buildSerialDescriptor$lambda(_this__u8e3s4) { return Unit_instance; } function ENUM() { ENUM_instance = this; SerialKind.call(this); } var ENUM_instance; function ENUM_getInstance() { if (ENUM_instance == null) new ENUM(); return ENUM_instance; } function SerialKind() { } protoOf(SerialKind).toString = function () { return ensureNotNull(getKClassFromExpression(this).l()); }; protoOf(SerialKind).hashCode = function () { return getStringHashCode(this.toString()); }; function CLASS() { CLASS_instance = this; StructureKind.call(this); } var CLASS_instance; function CLASS_getInstance() { if (CLASS_instance == null) new CLASS(); return CLASS_instance; } function OBJECT() { OBJECT_instance = this; StructureKind.call(this); } var OBJECT_instance; function OBJECT_getInstance() { if (OBJECT_instance == null) new OBJECT(); return OBJECT_instance; } function StructureKind() { SerialKind.call(this); } function CachedNames() { } function createSimpleEnumSerializer(serialName, values) { return new EnumSerializer(serialName, values); } function createUnmarkedDescriptor($this, serialName) { var d = new EnumDescriptor(serialName, $this.q1l_1.length); // Inline function 'kotlin.collections.forEach' call var indexedObject = $this.q1l_1; var inductionVariable = 0; var last = indexedObject.length; while (inductionVariable < last) { var element = indexedObject[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; d.f1m(element.w_1); } return d; } function EnumSerializer$descriptor$delegate$lambda(this$0, $serialName) { return function () { var tmp0_elvis_lhs = this$0.r1l_1; return tmp0_elvis_lhs == null ? createUnmarkedDescriptor(this$0, $serialName) : tmp0_elvis_lhs; }; } function EnumSerializer$_get_descriptor_$ref_j67dlw() { return function (p0) { return p0.g1m(); }; } function EnumSerializer(serialName, values) { this.q1l_1 = values; this.r1l_1 = null; var tmp = this; tmp.s1l_1 = lazy(EnumSerializer$descriptor$delegate$lambda(this, serialName)); } protoOf(EnumSerializer).g1m = function () { var tmp0 = this.s1l_1; var tmp = KProperty1; // Inline function 'kotlin.getValue' call getPropertyCallableRef('descriptor', 1, tmp, EnumSerializer$_get_descriptor_$ref_j67dlw(), null); return tmp0.j1(); }; protoOf(EnumSerializer).toString = function () { return 'kotlinx.serialization.internal.EnumSerializer<' + this.g1m().k1k() + '>'; }; function _get_elementDescriptors__y23q9p($this) { var tmp0 = $this.u1m_1; var tmp = KProperty1; // Inline function 'kotlin.getValue' call getPropertyCallableRef('elementDescriptors', 1, tmp, EnumDescriptor$_get_elementDescriptors_$ref_5lvk4a(), null); return tmp0.j1(); } function EnumDescriptor$elementDescriptors$delegate$lambda($elementsCount, $name, this$0) { return function () { var tmp = 0; var tmp_0 = $elementsCount; // Inline function 'kotlin.arrayOfNulls' call var tmp_1 = Array(tmp_0); while (tmp < tmp_0) { var tmp_2 = tmp; tmp_1[tmp_2] = buildSerialDescriptor($name + '.' + this$0.n1k(tmp_2), OBJECT_getInstance(), []); tmp = tmp + 1 | 0; } return tmp_1; }; } function EnumDescriptor$_get_elementDescriptors_$ref_5lvk4a() { return function (p0) { return _get_elementDescriptors__y23q9p(p0); }; } function EnumDescriptor(name, elementsCount) { PluginGeneratedSerialDescriptor.call(this, name, VOID, elementsCount); this.t1m_1 = ENUM_getInstance(); var tmp = this; tmp.u1m_1 = lazy(EnumDescriptor$elementDescriptors$delegate$lambda(elementsCount, name, this)); } protoOf(EnumDescriptor).l1k = function () { return this.t1m_1; }; protoOf(EnumDescriptor).o1k = function (index) { return getChecked(_get_elementDescriptors__y23q9p(this), index); }; protoOf(EnumDescriptor).equals = function (other) { if (this === other) return true; if (other == null) return false; if (!(!(other == null) ? isInterface(other, SerialDescriptor) : false)) return false; if (!(other.l1k() === ENUM_getInstance())) return false; if (!(this.k1k() === other.k1k())) return false; if (!equals(cachedSerialNames(this), cachedSerialNames(other))) return false; return true; }; protoOf(EnumDescriptor).toString = function () { return joinToString(get_elementNames(this), ', ', this.k1k() + '(', ')'); }; protoOf(EnumDescriptor).hashCode = function () { var result = getStringHashCode(this.k1k()); // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call // Inline function 'kotlin.collections.fold' call var accumulator = 1; var _iterator__ex2g4s = get_elementNames(this).q(); while (_iterator__ex2g4s.r()) { var element = _iterator__ex2g4s.s(); var hash = accumulator; var tmp = imul(31, hash); // Inline function 'kotlin.hashCode' call var tmp1_elvis_lhs = element == null ? null : hashCode(element); accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; } var elementsHashCode = accumulator; result = imul(31, result) + elementsHashCode | 0; return result; }; 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.p1l(); var result = HashSet_init_$Create$_0(_this__u8e3s4.m1k()); var inductionVariable = 0; var last = _this__u8e3s4.m1k(); if (inductionVariable < last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.collections.plusAssign' call var element = _this__u8e3s4.n1k(i); result.y(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.o())) { 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 _get_childSerializers__7vnyfa($this) { var tmp0 = $this.c1m_1; var tmp = KProperty1; // Inline function 'kotlin.getValue' call getPropertyCallableRef('childSerializers', 1, tmp, PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca(), null); return tmp0.j1(); } function _get__hashCode__tgwhef_0($this) { var tmp0 = $this.e1m_1; var tmp = KProperty1; // Inline function 'kotlin.getValue' call getPropertyCallableRef('_hashCode', 1, tmp, PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz(), null); return tmp0.j1(); } function buildIndices($this) { var indices = HashMap_init_$Create$(); var inductionVariable = 0; var last = $this.x1l_1.length - 1 | 0; if (inductionVariable <= last) do { var i = inductionVariable; inductionVariable = inductionVariable + 1 | 0; // Inline function 'kotlin.collections.set' call var key = $this.x1l_1[i]; indices.j2(key, i); } while (inductionVariable <= last); return indices; } function PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this$0) { return function () { var tmp0_safe_receiver = this$0.u1l_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x1m(); 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.u1l_1; var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1m(); var tmp; if (tmp1_safe_receiver == null) { tmp = null; } else { // Inline function 'kotlin.collections.map' call // Inline function 'kotlin.collections.mapTo' call var destination = ArrayList_init_$Create$_0(tmp1_safe_receiver.length); var inductionVariable = 0; var last = tmp1_safe_receiver.length; while (inductionVariable < last) { var item = tmp1_safe_receiver[inductionVariable]; inductionVariable = inductionVariable + 1 | 0; var tmp$ret$0 = item.g1m(); destination.y(tmp$ret$0); } tmp = destination; } return compactArray(tmp); }; } function PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka() { return function (p0) { return p0.v1m(); }; } function PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this$0) { return function () { return hashCodeImpl(this$0, this$0.v1m()); }; } function PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz() { return function (p0) { return _get__hashCode__tgwhef_0(p0); }; } function PluginGeneratedSerialDescriptor(serialName, generatedSerializer, elementsCount) { generatedSerializer = generatedSerializer === VOID ? null : generatedSerializer; this.t1l_1 = serialName; this.u1l_1 = generatedSerializer; this.v1l_1 = elementsCount; this.w1l_1 = -1; var tmp = this; var tmp_0 = 0; var tmp_1 = this.v1l_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.x1l_1 = tmp_2; var tmp_3 = this; // Inline function 'kotlin.arrayOfNulls' call var size = this.v1l_1; tmp_3.y1l_1 = Array(size); this.z1l_1 = null; this.a1m_1 = booleanArray(this.v1l_1); this.b1m_1 = emptyMap(); var tmp_4 = this; var tmp_5 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp_4.c1m_1 = lazy_0(tmp_5, PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this)); var tmp_6 = this; var tmp_7 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp_6.d1m_1 = lazy_0(tmp_7, PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this)); var tmp_8 = this; var tmp_9 = LazyThreadSafetyMode_PUBLICATION_getInstance(); tmp_8.e1m_1 = lazy_0(tmp_9, PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this)); } protoOf(PluginGeneratedSerialDescriptor).k1k = function () { return this.t1l_1; }; protoOf(PluginGeneratedSerialDescriptor).m1k = function () { return this.v1l_1; }; protoOf(PluginGeneratedSerialDescriptor).l1k = function () { return CLASS_getInstance(); }; protoOf(PluginGeneratedSerialDescriptor).p1l = function () { return this.b1m_1.n2(); }; protoOf(PluginGeneratedSerialDescriptor).v1m = function () { var tmp0 = this.d1m_1; var tmp = KProperty1; // Inline function 'kotlin.getValue' call getPropertyCallableRef('typeParameterDescriptors', 1, tmp, PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka(), null); return tmp0.j1(); }; protoOf(PluginGeneratedSerialDescriptor).w1m = function (name, isOptional) { this.w1l_1 = this.w1l_1 + 1 | 0; this.x1l_1[this.w1l_1] = name; this.a1m_1[this.w1l_1] = isOptional; this.y1l_1[this.w1l_1] = null; if (this.w1l_1 === (this.v1l_1 - 1 | 0)) { this.b1m_1 = buildIndices(this); } }; protoOf(PluginGeneratedSerialDescriptor).f1m = function (name, isOptional, $super) { isOptional = isOptional === VOID ? false : isOptional; var tmp; if ($super === VOID) { this.w1m(name, isOptional); tmp = Unit_instance; } else { tmp = $super.w1m.call(this, name, isOptional); } return tmp; }; protoOf(PluginGeneratedSerialDescriptor).o1k = function (index) { return getChecked(_get_childSerializers__7vnyfa(this), index).g1m(); }; protoOf(PluginGeneratedSerialDescriptor).n1k = function (index) { return getChecked(this.x1l_1, index); }; protoOf(PluginGeneratedSerialDescriptor).equals = function (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.k1k() === other.k1k())) { tmp$ret$0 = false; break $l$block_5; } if (!contentEquals(this.v1m(), other.v1m())) { tmp$ret$0 = false; break $l$block_5; } if (!(this.m1k() === other.m1k())) { tmp$ret$0 = false; break $l$block_5; } var inductionVariable = 0; var last = this.m1k(); if (inductionVariable < last) do { var index = inductionVariable; inductionVariable = inductionVariable + 1 | 0; if (!(this.o1k(index).k1k() === other.o1k(index).k1k())) { tmp$ret$0 = false; break $l$block_5; } if (!equals(this.o1k(index).l1k(), other.o1k(index).l1k())) { tmp$ret$0 = false; break $l$block_5; } } while (inductionVariable < last); tmp$ret$0 = true; } return tmp$ret$0; }; protoOf(PluginGeneratedSerialDescriptor).hashCode = function () { return _get__hashCode__tgwhef_0(this); }; protoOf(PluginGeneratedSerialDescriptor).toString = function () { return toStringImpl(this); }; function hashCodeImpl(_this__u8e3s4, typeParams) { var result = getStringHashCode(_this__u8e3s4.k1k()); 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.q(); while (_iterator__ex2g4s.r()) { var element = _iterator__ex2g4s.s(); var hash = accumulator; var tmp = imul(31, hash); // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver = element.k1k(); 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.q(); while (_iterator__ex2g4s_0.r()) { var element_0 = _iterator__ex2g4s_0.s(); var hash_0 = accumulator_0; var tmp_0 = imul(31, hash_0); // Inline function 'kotlin.hashCode' call var tmp0_safe_receiver_0 = element_0.l1k(); 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.m1k()); var tmp_0 = _this__u8e3s4.k1k() + '('; return joinToString(tmp, ', ', tmp_0, ')', VOID, VOID, toStringImpl$lambda(_this__u8e3s4)); } function toStringImpl$lambda($this_toStringImpl) { return function (i) { return $this_toStringImpl.n1k(i) + ': ' + $this_toStringImpl.o1k(i).k1k(); }; } function get_EMPTY_SERIALIZER_ARRAY() { _init_properties_PluginHelperInterfaces_kt__xgvzfp(); return EMPTY_SERIALIZER_ARRAY; } var EMPTY_SERIALIZER_ARRAY; function GeneratedSerializer() { } var properties_initialized_PluginHelperInterfaces_kt_ap8in1; function _init_properties_PluginHelperInterfaces_kt__xgvzfp() { if (!properties_initialized_PluginHelperInterfaces_kt_ap8in1) { properties_initialized_PluginHelperInterfaces_kt_ap8in1 = true; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call EMPTY_SERIALIZER_ARRAY = []; } } function SerializableWith() { } function getChecked(_this__u8e3s4, index) { if (!(0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false)) throw IndexOutOfBoundsException_init_$Create$('Index ' + index + ' out of bounds ' + get_indices(_this__u8e3s4).toString()); return _this__u8e3s4[index]; } //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = createSimpleEnumSerializer; //endregion return _; })); //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-core.js.map