git-digger
Version:
 
261 lines (259 loc) • 13.1 kB
JavaScript
(function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
'use strict';
//region block: imports
var imul = Math.imul;
var Default_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
var collectionSizeOrDefault = kotlin_kotlin.$_$.v3;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
var Unit_instance = kotlin_kotlin.$_$.z2;
var KtList = kotlin_kotlin.$_$.g3;
var getKClass = kotlin_kotlin.$_$.r8;
var arrayOf = kotlin_kotlin.$_$.vb;
var createKType = kotlin_kotlin.$_$.p8;
var createInvariantKTypeProjection = kotlin_kotlin.$_$.o8;
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
var THROW_CCE = kotlin_kotlin.$_$.jb;
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
var isInterface = kotlin_kotlin.$_$.s7;
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.f;
var lazy = kotlin_kotlin.$_$.bc;
var protoOf = kotlin_kotlin.$_$.c8;
var initMetadataForCompanion = kotlin_kotlin.$_$.f7;
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
var InstantSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k;
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
var initMetadataForObject = kotlin_kotlin.$_$.j7;
var VOID = kotlin_kotlin.$_$.c;
var toString = kotlin_kotlin.$_$.e8;
var toString_0 = kotlin_kotlin.$_$.gc;
var getStringHashCode = kotlin_kotlin.$_$.c7;
var hashCode = kotlin_kotlin.$_$.d7;
var equals = kotlin_kotlin.$_$.y6;
var initMetadataForClass = kotlin_kotlin.$_$.e7;
//endregion
//region block: pre-declaration
initMetadataForCompanion(Companion);
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
initMetadataForClass(ContributionJson, 'ContributionJson', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
//endregion
function toJsonString(_this__u8e3s4) {
var tmp0 = Default_getInstance();
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
var _iterator__ex2g4s = _this__u8e3s4.o();
while (_iterator__ex2g4s.p()) {
var item = _iterator__ex2g4s.q();
var tmp$ret$0 = toJsonModel(item);
destination.g(tmp$ret$0);
}
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
// Inline function 'kotlinx.serialization.serializer' call
var this_0 = tmp0.fp();
// Inline function 'kotlinx.serialization.internal.cast' call
var this_1 = serializer(this_0, createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ContributionJson), arrayOf([]), false))]), false));
var tmp$ret$4 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
return tmp0.lx(tmp$ret$4, destination);
}
function toJsonString_0(_this__u8e3s4) {
var tmp0 = Default_getInstance();
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
var value = toJsonModel(_this__u8e3s4);
// Inline function 'kotlinx.serialization.serializer' call
var this_0 = tmp0.fp();
// Inline function 'kotlinx.serialization.internal.cast' call
var this_1 = serializer(this_0, createKType(getKClass(ContributionJson), arrayOf([]), false));
var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
return tmp0.lx(tmp$ret$1, value);
}
function ContributionJson$Companion$$childSerializers$_anonymous__js8jrm() {
return new ArrayListSerializer(StringSerializer_getInstance());
}
function Companion() {
Companion_instance = this;
var tmp = this;
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
tmp.e10_1 = [null, null, lazy(tmp_0, ContributionJson$Companion$$childSerializers$_anonymous__js8jrm), null, null, null, null, null, null, null, null, null];
}
var Companion_instance;
function Companion_getInstance() {
if (Companion_instance == null)
new Companion();
return Companion_instance;
}
function $serializer() {
$serializer_instance = this;
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.zegreatrob.tools.digger.json.ContributionJson', this, 12);
tmp0_serialDesc.qs('lastCommit', false);
tmp0_serialDesc.qs('firstCommit', false);
tmp0_serialDesc.qs('authors', false);
tmp0_serialDesc.qs('dateTime', true);
tmp0_serialDesc.qs('firstCommitDateTime', true);
tmp0_serialDesc.qs('commitCount', false);
tmp0_serialDesc.qs('ease', true);
tmp0_serialDesc.qs('storyId', true);
tmp0_serialDesc.qs('semver', true);
tmp0_serialDesc.qs('label', true);
tmp0_serialDesc.qs('tagName', true);
tmp0_serialDesc.qs('tagDateTime', true);
this.f10_1 = tmp0_serialDesc;
}
protoOf($serializer).g10 = function (encoder, value) {
var tmp0_desc = this.f10_1;
var tmp1_output = encoder.co(tmp0_desc);
var tmp2_cached = Companion_getInstance().e10_1;
tmp1_output.zo(tmp0_desc, 0, value.h10_1);
tmp1_output.zo(tmp0_desc, 1, value.i10_1);
tmp1_output.bp(tmp0_desc, 2, tmp2_cached[2].b1(), value.j10_1);
if (tmp1_output.ip(tmp0_desc, 3) ? true : !(value.k10_1 == null)) {
tmp1_output.dp(tmp0_desc, 3, InstantSerializer_getInstance(), value.k10_1);
}
if (tmp1_output.ip(tmp0_desc, 4) ? true : !(value.l10_1 == null)) {
tmp1_output.dp(tmp0_desc, 4, InstantSerializer_getInstance(), value.l10_1);
}
tmp1_output.uo(tmp0_desc, 5, value.m10_1);
if (tmp1_output.ip(tmp0_desc, 6) ? true : !(value.n10_1 == null)) {
tmp1_output.dp(tmp0_desc, 6, IntSerializer_getInstance(), value.n10_1);
}
if (tmp1_output.ip(tmp0_desc, 7) ? true : !(value.o10_1 == null)) {
tmp1_output.dp(tmp0_desc, 7, StringSerializer_getInstance(), value.o10_1);
}
if (tmp1_output.ip(tmp0_desc, 8) ? true : !(value.p10_1 == null)) {
tmp1_output.dp(tmp0_desc, 8, StringSerializer_getInstance(), value.p10_1);
}
if (tmp1_output.ip(tmp0_desc, 9) ? true : !(value.q10_1 == null)) {
tmp1_output.dp(tmp0_desc, 9, StringSerializer_getInstance(), value.q10_1);
}
if (tmp1_output.ip(tmp0_desc, 10) ? true : !(value.r10_1 == null)) {
tmp1_output.dp(tmp0_desc, 10, StringSerializer_getInstance(), value.r10_1);
}
if (tmp1_output.ip(tmp0_desc, 11) ? true : !(value.s10_1 == null)) {
tmp1_output.dp(tmp0_desc, 11, InstantSerializer_getInstance(), value.s10_1);
}
tmp1_output.do(tmp0_desc);
};
protoOf($serializer).bm = function (encoder, value) {
return this.g10(encoder, value instanceof ContributionJson ? value : THROW_CCE());
};
protoOf($serializer).am = function () {
return this.f10_1;
};
protoOf($serializer).ss = function () {
var tmp0_cached = Companion_getInstance().e10_1;
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
return [StringSerializer_getInstance(), StringSerializer_getInstance(), tmp0_cached[2].b1(), get_nullable(InstantSerializer_getInstance()), get_nullable(InstantSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(InstantSerializer_getInstance())];
};
var $serializer_instance;
function $serializer_getInstance() {
if ($serializer_instance == null)
new $serializer();
return $serializer_instance;
}
function ContributionJson(lastCommit, firstCommit, authors, dateTime, firstCommitDateTime, commitCount, ease, storyId, semver, label, tagName, tagDateTime) {
Companion_getInstance();
dateTime = dateTime === VOID ? null : dateTime;
firstCommitDateTime = firstCommitDateTime === VOID ? null : firstCommitDateTime;
ease = ease === VOID ? null : ease;
storyId = storyId === VOID ? null : storyId;
semver = semver === VOID ? null : semver;
label = label === VOID ? null : label;
tagName = tagName === VOID ? null : tagName;
tagDateTime = tagDateTime === VOID ? null : tagDateTime;
this.h10_1 = lastCommit;
this.i10_1 = firstCommit;
this.j10_1 = authors;
this.k10_1 = dateTime;
this.l10_1 = firstCommitDateTime;
this.m10_1 = commitCount;
this.n10_1 = ease;
this.o10_1 = storyId;
this.p10_1 = semver;
this.q10_1 = label;
this.r10_1 = tagName;
this.s10_1 = tagDateTime;
}
protoOf(ContributionJson).toString = function () {
return 'ContributionJson(lastCommit=' + this.h10_1 + ', firstCommit=' + this.i10_1 + ', authors=' + toString(this.j10_1) + ', dateTime=' + toString_0(this.k10_1) + ', firstCommitDateTime=' + toString_0(this.l10_1) + ', commitCount=' + this.m10_1 + ', ease=' + this.n10_1 + ', storyId=' + this.o10_1 + ', semver=' + this.p10_1 + ', label=' + this.q10_1 + ', tagName=' + this.r10_1 + ', tagDateTime=' + toString_0(this.s10_1) + ')';
};
protoOf(ContributionJson).hashCode = function () {
var result = getStringHashCode(this.h10_1);
result = imul(result, 31) + getStringHashCode(this.i10_1) | 0;
result = imul(result, 31) + hashCode(this.j10_1) | 0;
result = imul(result, 31) + (this.k10_1 == null ? 0 : this.k10_1.hashCode()) | 0;
result = imul(result, 31) + (this.l10_1 == null ? 0 : this.l10_1.hashCode()) | 0;
result = imul(result, 31) + this.m10_1 | 0;
result = imul(result, 31) + (this.n10_1 == null ? 0 : this.n10_1) | 0;
result = imul(result, 31) + (this.o10_1 == null ? 0 : getStringHashCode(this.o10_1)) | 0;
result = imul(result, 31) + (this.p10_1 == null ? 0 : getStringHashCode(this.p10_1)) | 0;
result = imul(result, 31) + (this.q10_1 == null ? 0 : getStringHashCode(this.q10_1)) | 0;
result = imul(result, 31) + (this.r10_1 == null ? 0 : getStringHashCode(this.r10_1)) | 0;
result = imul(result, 31) + (this.s10_1 == null ? 0 : this.s10_1.hashCode()) | 0;
return result;
};
protoOf(ContributionJson).equals = function (other) {
if (this === other)
return true;
if (!(other instanceof ContributionJson))
return false;
if (!(this.h10_1 === other.h10_1))
return false;
if (!(this.i10_1 === other.i10_1))
return false;
if (!equals(this.j10_1, other.j10_1))
return false;
if (!equals(this.k10_1, other.k10_1))
return false;
if (!equals(this.l10_1, other.l10_1))
return false;
if (!(this.m10_1 === other.m10_1))
return false;
if (!(this.n10_1 == other.n10_1))
return false;
if (!(this.o10_1 == other.o10_1))
return false;
if (!(this.p10_1 == other.p10_1))
return false;
if (!(this.q10_1 == other.q10_1))
return false;
if (!(this.r10_1 == other.r10_1))
return false;
if (!equals(this.s10_1, other.s10_1))
return false;
return true;
};
function toJsonModel(_this__u8e3s4) {
var tmp0_lastCommit = _this__u8e3s4.kk_1;
var tmp1_firstCommit = _this__u8e3s4.lk_1;
var tmp2_authors = _this__u8e3s4.mk_1;
var tmp3_dateTime = _this__u8e3s4.ok_1;
var tmp4_firstCommitDateTime = _this__u8e3s4.pk_1;
var tmp5_ease = _this__u8e3s4.qk_1;
var tmp6_storyId = _this__u8e3s4.rk_1;
var tmp7_semver = _this__u8e3s4.sk_1;
var tmp8_label = _this__u8e3s4.tk_1;
var tmp9_tagName = _this__u8e3s4.uk_1;
var tmp10_tagDateTime = _this__u8e3s4.vk_1;
var tmp11_commitCount = _this__u8e3s4.nk_1;
return new ContributionJson(tmp0_lastCommit, tmp1_firstCommit, tmp2_authors, tmp3_dateTime, tmp4_firstCommitDateTime, tmp11_commitCount, tmp5_ease, tmp6_storyId, tmp7_semver, tmp8_label, tmp9_tagName, tmp10_tagDateTime);
}
//region block: post-declaration
protoOf($serializer).ts = typeParametersSerializers;
//endregion
//region block: exports
_.$_$ = _.$_$ || {};
_.$_$.a = toJsonString_0;
_.$_$.b = toJsonString;
//endregion
return _;
}(module.exports, require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js')));
//# sourceMappingURL=tools-digger-json.js.map