Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 AiAvatarSettingsMapper.java 源代码,内容仅作参考
package com.picsart.editor.aiavatar.settings;
import android.net.Uri;
import com.picsart.editor.aiavatar.PaymentType;
import com.picsart.editor.aiavatar.core.WhichGeneration;
import com.picsart.editor.aiavatar.settings.b;
import com.picsart.editor.aiavatar.settings.data.AvatarObjectType;
import com.picsart.editor.aiavatar.settings.data.AvatarScreens;
import com.picsart.editor.aiavatar.settings.data.AvatarStylesItem;
import com.picsart.editor.aiavatar.settings.data.MediaType;
import com.picsart.editor.aiavatar.settings.data.OptionsType;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.collections.EmptyList;
import kotlin.collections.builders.MapBuilder;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import myobfuscated.jk2.e0;
import myobfuscated.jk2.p;
import myobfuscated.qm0.c;
import myobfuscated.qm0.g;
import myobfuscated.qm0.h;
import myobfuscated.qm0.i;
import myobfuscated.qm0.j;
import myobfuscated.qm0.k;
import myobfuscated.qm0.l;
import myobfuscated.qm0.m;
import myobfuscated.qm0.r;
import myobfuscated.qm0.t;
import myobfuscated.qm0.v;
import myobfuscated.qm0.w;
import myobfuscated.rm0.c;
import myobfuscated.rm0.e;
import myobfuscated.rr0.f;
import myobfuscated.ud0.d;
import myobfuscated.xk2.u;
import myobfuscated.zq0.n;
import myobfuscated.zq0.o;
import org.jetbrains.annotations.NotNull;
public final class AiAvatarSettingsMapper {
@NotNull
public final n a;
public static final class a {
public class C0486a {
public static final int[] a;
static {
int[] iArr = new int[PaymentType.values().length];
try {
iArr[PaymentType.ONETIME.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[PaymentType.GOLD.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
a = iArr;
}
}
public static String a(@NotNull String objectType) {
Intrinsics.checkNotNullParameter(objectType, "objectType");
Locale locale = Locale.ROOT;
String lowerCase = objectType.toLowerCase(locale);
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
switch (lowerCase.hashCode()) {
case -1354573888:
if (lowerCase.equals("couple")) {
String upperCase = "couple".toUpperCase(locale);
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
return upperCase;
}
break;
case -1278174388:
if (lowerCase.equals("female")) {
return "WOMAN";
}
break;
case 98262:
if (lowerCase.equals("cat")) {
String upperCase2 = "cat".toUpperCase(locale);
Intrinsics.checkNotNullExpressionValue(upperCase2, "this as java.lang.String).toUpperCase(Locale.ROOT)");
return upperCase2;
}
break;
case 99644:
if (lowerCase.equals("dog")) {
String upperCase3 = "dog".toUpperCase(locale);
Intrinsics.checkNotNullExpressionValue(upperCase3, "this as java.lang.String).toUpperCase(Locale.ROOT)");
return upperCase3;
}
break;
case 3343885:
if (lowerCase.equals("male")) {
return "MAN";
}
break;
}
return null;
}
@NotNull
public static String b(@NotNull PaymentType paymentType) {
Intrinsics.checkNotNullParameter(paymentType, "<this>");
int i = C0486a.a[paymentType.ordinal()];
if (i != 1) {
if (i == 2) {
return "gold";
}
throw new NoWhenBranchMatchedException();
}
return "one-time";
}
}
public class b {
public static final int[] a;
static {
int[] iArr = new int[OptionsType.values().length];
try {
iArr[OptionsType.Pet.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[OptionsType.Individual.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[OptionsType.Couple.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
a = iArr;
}
}
public AiAvatarSettingsMapper(@NotNull o resService) {
Intrinsics.checkNotNullParameter(resService, "resService");
this.a = resService;
}
public static Map a(Iterable iterable, Function1 function1, Function1 function12) {
MapBuilder mapBuilder = new MapBuilder();
for (Object obj : iterable) {
Object invoke = function1.invoke(obj);
Object invoke2 = function12.invoke(obj);
if (invoke != null && invoke2 != null) {
mapBuilder.put(invoke, invoke2);
}
}
return e0.b(mapBuilder);
}
public static String b(String str) {
if (str == null) {
f.a(u.a);
return "";
}
return str;
}
@NotNull
public static AvatarScreens.h h(h hVar) {
return new AvatarScreens.h(b(hVar != null ? hVar.a() : null));
}
public static OptionsType o(String str) {
int hashCode = str.hashCode();
if (hashCode != -1354573888) {
if (hashCode != -46292327) {
if (hashCode == 110879 && str.equals("pet")) {
return OptionsType.Pet;
}
} else if (str.equals("individual")) {
return OptionsType.Individual;
}
} else if (str.equals("couple")) {
return OptionsType.Couple;
}
return OptionsType.Individual;
}
@NotNull
public final AvatarScreens.b c(i iVar) {
Integer c;
String n = n(iVar != null ? iVar.f() : null);
String n2 = n(iVar != null ? iVar.e() : null);
String n3 = n(iVar != null ? iVar.a() : null);
String n4 = n(iVar != null ? iVar.g() : null);
Object[] objArr = new Object[1];
objArr[0] = Integer.valueOf((iVar == null || (c = iVar.c()) == null) ? 10 : c.intValue());
return new AvatarScreens.b(n, n2, n3, d.b(objArr, 1, n4, "format(format, *args)"), n(iVar != null ? iVar.d() : null), n(iVar != null ? iVar.b() : null));
}
@NotNull
public final AvatarScreens.d d(@NotNull c pojo) {
?? r1;
Intrinsics.checkNotNullParameter(pojo, "pojo");
List<myobfuscated.qm0.b> a2 = pojo.a();
if (a2 != null) {
List<myobfuscated.qm0.b> list = a2;
r1 = new ArrayList(p.n(list, 10));
for (myobfuscated.qm0.b bVar : list) {
OptionsType o = o(b(bVar.i()));
int i = b.a[o.ordinal()];
int i2 = 1;
if (i == 1) {
i2 = 0;
} else if (i != 2) {
if (i != 3) {
throw new NoWhenBranchMatchedException();
}
i2 = 2;
}
Integer k = bVar.k();
int intValue = k != null ? k.intValue() : i2;
String h = bVar.h();
if (h == null) {
h = "";
}
String str = h;
Boolean l = bVar.l();
boolean booleanValue = l != null ? l.booleanValue() : false;
Boolean m = bVar.m();
myobfuscated.rm0.i iVar = new myobfuscated.rm0.i(booleanValue, m != null ? m.booleanValue() : false);
String n = n(bVar.f());
String b2 = b(bVar.c());
Integer e = bVar.e();
int intValue2 = e != null ? e.intValue() : 10;
Integer d = bVar.d();
myobfuscated.rm0.h hVar = new myobfuscated.rm0.h(intValue2, d != null ? d.intValue() : 30);
String a3 = bVar.a();
if (a3 == null) {
a3 = "dreambooth";
}
String b3 = bVar.b();
if (b3 == null) {
b3 = "SD";
}
r1.add(new myobfuscated.rm0.d(o, iVar, str, n, b2, hVar, intValue, new myobfuscated.rm0.f(a3, b3)));
}
} else {
r1 = EmptyList.INSTANCE;
}
return new AvatarScreens.d(n(pojo.b()), r1);
}
@NotNull
public final AvatarScreens.k e(@NotNull Map<String, r> pojo) {
Intrinsics.checkNotNullParameter(pojo, "pojo");
Set<Map.Entry<String, r>> entrySet = pojo.entrySet();
int c = e0.c(p.n(entrySet, 10));
if (c < 16) {
c = 16;
}
LinkedHashMap linkedHashMap = new LinkedHashMap(c);
Iterator<T> it = entrySet.iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
String str = (String) entry.getKey();
WhichGeneration regeneration = Intrinsics.c(str, "generation") ? WhichGeneration.New.a : Intrinsics.c(str, "regeneration") ? new WhichGeneration.Regeneration(false) : WhichGeneration.New.a;
String n = n(((r) entry.getValue()).b());
String j = ((r) entry.getValue()).j();
if (j == null) {
j = "https://support.picsart.com/hc/en-us/categories/9341772365341";
}
Pair pair = new Pair(regeneration.getKey(), new AvatarScreens.l(j, n, n(((r) entry.getValue()).d()), n(((r) entry.getValue()).c()), n(((r) entry.getValue()).a()), n(((r) entry.getValue()).i()), n(((r) entry.getValue()).g()), n(((r) entry.getValue()).h()), n(((r) entry.getValue()).f()), n(((r) entry.getValue()).e())));
linkedHashMap.put(pair.getFirst(), pair.getSecond());
}
return new AvatarScreens.k(linkedHashMap);
}
@NotNull
public final Map<OptionsType, AvatarScreens.f> f(List<myobfuscated.qm0.b> list, @NotNull final AvatarObjectType objectType) {
Map<OptionsType, AvatarScreens.f> a2;
Intrinsics.checkNotNullParameter(objectType, "objectType");
return (list == null || (a2 = a(list, new Function1<myobfuscated.qm0.b, OptionsType>() {
{
super(1);
}
@Override
public final OptionsType invoke(@NotNull myobfuscated.qm0.b it) {
Intrinsics.checkNotNullParameter(it, "it");
AiAvatarSettingsMapper aiAvatarSettingsMapper = AiAvatarSettingsMapper.this;
String i = it.i();
aiAvatarSettingsMapper.getClass();
return AiAvatarSettingsMapper.o(AiAvatarSettingsMapper.b(i));
}
}, new Function1<myobfuscated.qm0.b, AvatarScreens.f>() {
{
super(1);
}
@Override
public final AvatarScreens.f invoke(@NotNull myobfuscated.qm0.b it) {
List<myobfuscated.qm0.f> a3;
Intrinsics.checkNotNullParameter(it, "it");
g j = it.j();
if (j == null || (a3 = j.a()) == null) {
return null;
}
final AiAvatarSettingsMapper aiAvatarSettingsMapper = AiAvatarSettingsMapper.this;
AvatarObjectType avatarObjectType = objectType;
AiAvatarSettingsMapper$mapOfAvatarStyles$2$1$1 aiAvatarSettingsMapper$mapOfAvatarStyles$2$1$1 = new Function1<myobfuscated.qm0.f, AvatarObjectType>() {
@Override
public final AvatarObjectType invoke(@NotNull myobfuscated.qm0.f avatarTypesItem) {
Intrinsics.checkNotNullParameter(avatarTypesItem, "avatarTypesItem");
String c = avatarTypesItem.c();
if (c != null) {
switch (c.hashCode()) {
case -1354573888:
if (c.equals("couple")) {
return AvatarObjectType.Couple;
}
break;
case -1278174388:
if (c.equals("female")) {
return AvatarObjectType.Female;
}
break;
case 98262:
if (c.equals("cat")) {
return AvatarObjectType.Cat;
}
break;
case 99644:
if (c.equals("dog")) {
return AvatarObjectType.Dog;
}
break;
case 3343885:
if (c.equals("male")) {
return AvatarObjectType.Male;
}
break;
}
}
return AvatarObjectType.Other;
}
};
Function1<myobfuscated.qm0.f, AvatarScreens.f> function1 = new Function1<myobfuscated.qm0.f, AvatarScreens.f>() {
{
super(1);
}
@Override
public final AvatarScreens.f invoke(@NotNull myobfuscated.qm0.f it2) {
?? r5;
Integer f;
Integer d;
Integer d2;
Integer d3;
List<v> c;
Intrinsics.checkNotNullParameter(it2, "it");
AiAvatarSettingsMapper aiAvatarSettingsMapper2 = AiAvatarSettingsMapper.this;
w b2 = it2.b();
aiAvatarSettingsMapper2.getClass();
int i = 10;
if (b2 == null || (c = b2.c()) == null) {
r5 = EmptyList.INSTANCE;
} else {
List<v> list2 = c;
r5 = new ArrayList(p.n(list2, 10));
for (v vVar : list2) {
r5.add(new AvatarStylesItem(AiAvatarSettingsMapper.b(vVar.b()), AiAvatarSettingsMapper.b(vVar.a()), aiAvatarSettingsMapper2.n(vVar.c()), myobfuscated.an2.r.K(vVar.d())));
}
}
List list3 = r5;
String n = aiAvatarSettingsMapper2.n(b2 != null ? b2.j() : null);
Object[] objArr = new Object[1];
objArr[0] = Integer.valueOf((b2 == null || (d3 = b2.d()) == null) ? 1 : d3.intValue());
String b3 = d.b(objArr, 1, n, "format(format, *args)");
String n2 = aiAvatarSettingsMapper2.n(b2 != null ? b2.b() : null);
int intValue = (b2 == null || (d2 = b2.d()) == null) ? 10 : d2.intValue();
String n3 = aiAvatarSettingsMapper2.n(b2 != null ? b2.e() : null);
Object[] objArr2 = new Object[1];
if (b2 != null && (d = b2.d()) != null) {
i = d.intValue();
}
objArr2[0] = Integer.valueOf(i);
String b4 = d.b(objArr2, 1, n3, "format(format, *args)");
String n4 = aiAvatarSettingsMapper2.n(b2 != null ? b2.g() : null);
Object[] objArr3 = new Object[1];
objArr3[0] = Integer.valueOf((b2 == null || (f = b2.f()) == null) ? 1 : f.intValue());
String b5 = d.b(objArr3, 1, n4, "format(format, *args)");
String n5 = aiAvatarSettingsMapper2.n(b2 != null ? b2.a() : null);
Object[] objArr4 = new Object[1];
objArr4[0] = b2 != null ? b2.f() : null;
return new AvatarScreens.f(b3, n2, intValue, b4, b5, d.b(objArr4, 1, n5, "format(format, *args)"), aiAvatarSettingsMapper2.n(b2 != null ? b2.i() : null), aiAvatarSettingsMapper2.n(b2 != null ? b2.h() : null), list3);
}
};
aiAvatarSettingsMapper.getClass();
return (AvatarScreens.f) AiAvatarSettingsMapper.a(a3, aiAvatarSettingsMapper$mapOfAvatarStyles$2$1$1, function1).get(avatarObjectType);
}
})) == null) ? kotlin.collections.d.f() : a2;
}
@NotNull
public final Map<OptionsType, AvatarScreens.g> g(List<myobfuscated.qm0.b> list) {
Map<OptionsType, AvatarScreens.g> a2;
return (list == null || (a2 = a(list, new Function1<myobfuscated.qm0.b, OptionsType>() {
{
super(1);
}
@Override
public final OptionsType invoke(@NotNull myobfuscated.qm0.b it) {
Intrinsics.checkNotNullParameter(it, "it");
AiAvatarSettingsMapper aiAvatarSettingsMapper = AiAvatarSettingsMapper.this;
String i = it.i();
aiAvatarSettingsMapper.getClass();
return AiAvatarSettingsMapper.o(AiAvatarSettingsMapper.b(i));
}
}, new Function1<myobfuscated.qm0.b, AvatarScreens.g>() {
{
super(1);
}
@Override
public final AvatarScreens.g invoke(@NotNull myobfuscated.qm0.b it) {
?? r2;
List<myobfuscated.qm0.f> a3;
AvatarObjectType avatarObjectType;
Intrinsics.checkNotNullParameter(it, "it");
g j = it.j();
if (j == null || (a3 = j.a()) == null) {
r2 = EmptyList.INSTANCE;
} else {
List<myobfuscated.qm0.f> list2 = a3;
AiAvatarSettingsMapper aiAvatarSettingsMapper = AiAvatarSettingsMapper.this;
r2 = new ArrayList(p.n(list2, 10));
for (myobfuscated.qm0.f fVar : list2) {
String c = fVar.c();
aiAvatarSettingsMapper.getClass();
String b2 = AiAvatarSettingsMapper.b(c);
switch (b2.hashCode()) {
case -1354573888:
if (b2.equals("couple")) {
avatarObjectType = AvatarObjectType.Couple;
break;
}
avatarObjectType = AvatarObjectType.Other;
break;
case -1278174388:
if (b2.equals("female")) {
avatarObjectType = AvatarObjectType.Female;
break;
}
avatarObjectType = AvatarObjectType.Other;
break;
case 98262:
if (b2.equals("cat")) {
avatarObjectType = AvatarObjectType.Cat;
break;
}
avatarObjectType = AvatarObjectType.Other;
break;
case 99644:
if (b2.equals("dog")) {
avatarObjectType = AvatarObjectType.Dog;
break;
}
avatarObjectType = AvatarObjectType.Other;
break;
case 3343885:
if (b2.equals("male")) {
avatarObjectType = AvatarObjectType.Male;
break;
}
avatarObjectType = AvatarObjectType.Other;
break;
default:
avatarObjectType = AvatarObjectType.Other;
break;
}
String n = aiAvatarSettingsMapper.n(fVar.a());
Boolean d = fVar.d();
r2.add(new e(avatarObjectType, n, d != null ? d.booleanValue() : false));
}
}
AiAvatarSettingsMapper aiAvatarSettingsMapper2 = AiAvatarSettingsMapper.this;
g j2 = it.j();
return new AvatarScreens.g(aiAvatarSettingsMapper2.n(j2 != null ? j2.b() : null), r2);
}
})) == null) ? kotlin.collections.d.f() : a2;
}
@NotNull
public final AvatarScreens.i i(@NotNull com.picsart.editor.aiavatar.settings.b pojo) {
Intrinsics.checkNotNullParameter(pojo, "pojo");
b.a a2 = pojo.a();
Boolean b2 = pojo.b();
boolean booleanValue = b2 != null ? b2.booleanValue() : false;
String n = n(a2 != null ? a2.e() : null);
String n2 = n(a2 != null ? a2.d() : null);
String n3 = n(a2 != null ? a2.b() : null);
String n4 = n(a2 != null ? a2.a() : null);
String n5 = n(a2 != null ? a2.g() : null);
String n6 = n(a2 != null ? a2.f() : null);
String n7 = n(a2 != null ? a2.c() : null);
String str = n7.length() > 0 ? n7 : null;
return new AvatarScreens.i(new AvatarScreens.i.a(n, n2, n3, n4, n5, n6, str == null ? "%s/%s" : str), booleanValue);
}
@NotNull
public final AvatarScreens.HotStyles j(j jVar) {
?? r3;
List<k> d;
AvatarScreens.HotStyleTabItem hotStyleTabItem;
if (jVar == null || (d = jVar.d()) == null) {
r3 = EmptyList.INSTANCE;
} else {
r3 = new ArrayList();
int i = 0;
for (Object obj : d) {
int i2 = i + 1;
if (i < 0) {
myobfuscated.jk2.o.m();
throw null;
}
k kVar = (k) obj;
String b2 = kVar.b();
if (b2 == null || b2.length() == 0) {
hotStyleTabItem = null;
} else {
String lowerCase = kVar.b().toLowerCase(Locale.ROOT);
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
OptionsType o = o(lowerCase);
myobfuscated.qm0.u c = kVar.c();
String n = n(c != null ? c.c() : null);
myobfuscated.qm0.u c2 = kVar.c();
String n2 = n(c2 != null ? c2.b() : null);
myobfuscated.qm0.u c3 = kVar.c();
AvatarScreens.StartOver startOver = new AvatarScreens.StartOver(n, n2, n(c3 != null ? c3.a() : null));
boolean z = i == 0;
String n3 = n(kVar.d());
Integer a2 = kVar.a();
hotStyleTabItem = new AvatarScreens.HotStyleTabItem(z, n3, a2 != null ? a2.intValue() : 0, o, startOver);
}
if (hotStyleTabItem != null) {
r3.add(hotStyleTabItem);
}
i = i2;
}
}
List list = r3;
boolean K = myobfuscated.an2.r.K(jVar != null ? jVar.f() : null);
String n4 = n(jVar != null ? jVar.c() : null);
String n5 = n(jVar != null ? jVar.e() : null);
String n6 = n(jVar != null ? jVar.a() : null);
String b3 = jVar != null ? jVar.b() : null;
return new AvatarScreens.HotStyles(K, n4, n5, n6, b3 != null ? Integer.valueOf(this.a.c(b3, "drawable")) : null, list);
}
@NotNull
public final AvatarScreens.j k(myobfuscated.qm0.n nVar) {
myobfuscated.qm0.u c;
myobfuscated.qm0.u c2;
myobfuscated.qm0.u c3;
return new AvatarScreens.j(n(nVar != null ? nVar.e() : null), n(nVar != null ? nVar.d() : null), n(nVar != null ? nVar.a() : null), n(nVar != null ? nVar.b() : null), new AvatarScreens.StartOver(n((nVar == null || (c3 = nVar.c()) == null) ? null : c3.c()), n((nVar == null || (c2 = nVar.c()) == null) ? null : c2.b()), n((nVar == null || (c = nVar.c()) == null) ? null : c.a())));
}
@NotNull
public final AvatarScreens.c l(myobfuscated.qm0.p pVar) {
?? r12;
MediaType mediaType;
boolean L = myobfuscated.an2.r.L(pVar != null ? pVar.d() : null);
String n = n(pVar != null ? pVar.c() : null);
String n2 = n(pVar != null ? pVar.b() : null);
List<myobfuscated.qm0.o> a2 = pVar != null ? pVar.a() : null;
if (a2 != null) {
List<myobfuscated.qm0.o> list = a2;
r12 = new ArrayList(p.n(list, 10));
for (myobfuscated.qm0.o oVar : list) {
String b2 = b(oVar.a());
String media = b(oVar.c());
Intrinsics.checkNotNullParameter(media, "media");
int hashCode = media.hashCode();
if (hashCode == 102340) {
if (media.equals("gif")) {
mediaType = MediaType.Gif;
}
mediaType = MediaType.Photo;
} else if (hashCode != 106642994) {
if (hashCode == 112202875 && media.equals("video")) {
mediaType = MediaType.Video;
}
mediaType = MediaType.Photo;
} else {
if (media.equals("photo")) {
mediaType = MediaType.Photo;
}
mediaType = MediaType.Photo;
}
Boolean d = oVar.d();
r12.add(new myobfuscated.rm0.g(b2, mediaType, d != null ? d.booleanValue() : false, b(oVar.b())));
}
} else {
r12 = EmptyList.INSTANCE;
}
return new AvatarScreens.c(r12, L, n, n2);
}
@NotNull
public final Map<OptionsType, AvatarScreens.e> m(List<myobfuscated.qm0.b> list) {
Map<OptionsType, AvatarScreens.e> a2;
return (list == null || (a2 = a(list, new Function1<myobfuscated.qm0.b, OptionsType>() {
{
super(1);
}
@Override
public final OptionsType invoke(@NotNull myobfuscated.qm0.b it) {
Intrinsics.checkNotNullParameter(it, "it");
AiAvatarSettingsMapper aiAvatarSettingsMapper = AiAvatarSettingsMapper.this;
String i = it.i();
aiAvatarSettingsMapper.getClass();
return AiAvatarSettingsMapper.o(AiAvatarSettingsMapper.b(i));
}
}, new Function1<myobfuscated.qm0.b, AvatarScreens.e>() {
{
super(1);
}
@Override
public final AvatarScreens.e invoke(@NotNull myobfuscated.qm0.b it) {
c.a aVar;
Intrinsics.checkNotNullParameter(it, "it");
t g = it.g();
EmptyList emptyList = null;
if (g != null) {
AiAvatarSettingsMapper aiAvatarSettingsMapper = AiAvatarSettingsMapper.this;
aiAvatarSettingsMapper.getClass();
String n = aiAvatarSettingsMapper.n(g.f());
Object[] objArr = new Object[2];
Integer e = it.e();
objArr[0] = Integer.valueOf(e != null ? e.intValue() : 0);
Integer d = it.d();
objArr[1] = Integer.valueOf(d != null ? d.intValue() : 0);
String b2 = d.b(objArr, 2, n, "format(format, *args)");
l c = g.c();
String n2 = aiAvatarSettingsMapper.n(c.b());
List<m> a3 = c.a();
if (a3 != null) {
ArrayList arrayList = new ArrayList();
for (m mVar : a3) {
String n3 = aiAvatarSettingsMapper.n(mVar.a());
if (n3.length() <= 0) {
n3 = null;
}
if (n3 != null) {
try {
Uri parse = Uri.parse(mVar.b());
Intrinsics.e(parse);
aVar = new c.a(n3, parse);
} catch (Exception unused) {
}
if (aVar == null) {
arrayList.add(aVar);
}
}
aVar = null;
if (aVar == null) {
}
}
emptyList = arrayList;
}
if (emptyList == null) {
emptyList = EmptyList.INSTANCE;
}
myobfuscated.rm0.c cVar = new myobfuscated.rm0.c(n2, emptyList);
String n4 = aiAvatarSettingsMapper.n(g.g());
String n5 = aiAvatarSettingsMapper.n(g.d());
List<String> e2 = g.e();
if (e2 == null) {
e2 = EmptyList.INSTANCE;
}
List<String> list2 = e2;
String n6 = aiAvatarSettingsMapper.n(g.a());
List<String> b3 = g.b();
if (b3 == null) {
b3 = EmptyList.INSTANCE;
}
return new AvatarScreens.e(b2, cVar, n4, n5, list2, n6, b3);
}
return null;
}
})) == null) ? kotlin.collections.d.f() : a2;
}
public final String n(String str) {
n nVar = this.a;
if (str == null || str.length() == 0) {
return str == null ? "" : str;
}
try {
return nVar.a(nVar.c(str, "string"));
} catch (Exception unused) {
return str;
}
}
}