ViMusic v0.5.4版本的 MD5 值为:e5d76df875234aa34db5af7d13eb379b
以下内容为反编译后的 a.java 源代码,内容仅作参考
package q6;
import a.g;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.PowerManager;
import android.text.format.DateUtils;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import androidx.compose.ui.platform.b1;
import androidx.compose.ui.platform.f2;
import androidx.compose.ui.platform.h2;
import androidx.compose.ui.platform.k0;
import c1.a0;
import c1.r;
import f8.i;
import g0.n;
import g0.o;
import g7.e;
import g7.e1;
import g7.f1;
import g7.y;
import h8.j;
import i8.g2;
import i8.s0;
import i8.y1;
import j0.k;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.CancellationException;
import k9.f;
import l.b3;
import l.c3;
import l.k2;
import l.w2;
import m6.q;
import m7.d;
import n6.i2;
import n6.l8;
import n6.q3;
import n6.r6;
import n6.s6;
import n6.s8;
import n6.t8;
import n6.u8;
import o0.f0;
import o0.h0;
import o0.i0;
import o0.m0;
import o0.p;
import o0.u;
import o0.v;
import o2.g0;
import o7.s;
import p.h1;
import p.i1;
import p.j0;
import q.q0;
import q.u0;
import q.w;
import t6.d0;
import t8.z0;
import u8.b0;
import v.y0;
import v1.l;
import v1.m;
import y.h;
import y.o1;
import y.x;
import z7.t;
public abstract class a {
public static Method f9834a;
public static boolean f9835b;
public static Method f9836c;
public static boolean f9837d;
public static final int[] f9838e = {16842755, 16843041, 16843093, 16843097, 16843551, 16843754, 16843771, 16843778, 16843779};
public static final int[] f9839f = {16842755, 16843189, 16843190, 16843556, 16843557, 16843558, 16843866, 16843867};
public static final int[] f9840g = {16842755, 16843780, 16843781, 16843782, 16843783, 16843784, 16843785, 16843786, 16843787, 16843788, 16843789, 16843979, 16843980, 16844062};
public static final int[] f9841h = {16842755, 16843781, 16844062};
public static final int[] f9842i = {16843161};
public static final int[] f9843j = {16842755, 16843213};
public static final int[] f9844k = {16843073, 16843160, 16843198, 16843199, 16843200, 16843486, 16843487, 16843488};
public static final int[] f9845l = {16843490};
public static final int[] f9846m = {16843486, 16843487, 16843488, 16843489};
public static final int[] f9847n = {16842788, 16843073, 16843488, 16843992};
public static final int[] f9848o = {16843489, 16843781, 16843892, 16843893};
public static final int[] f9849p;
public static final int[] f9850q;
public static final int[] f9851r;
public static final int[] f9852s;
public static final int[] f9853t;
public static final int[] f9854u;
public static final int[] f9855v;
public static final int[] f9856w;
public static v f9857x;
public static p f9858y;
public static q0.c f9859z;
static {
new f();
f9849p = new int[]{1, 5, 9, 13, 17, 25, 33, 41, 49, 65, 81, 97, 113, 145, 177, 209, 241, 305, 369, 497, 753, 1265, 2289, 4337, 8433, 16625};
f9850q = new int[]{2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 7, 8, 9, 10, 11, 12, 13, 24};
f9851r = new int[]{0, 1, 2, 3, 4, 5, 6, 8, 10, 14, 18, 26, 34, 50, 66, 98, 130, 194, 322, 578, 1090, 2114, 6210, 22594};
f9852s = new int[]{0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 12, 14, 24};
f9853t = new int[]{2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 18, 22, 30, 38, 54, 70, 102, 134, 198, 326, 582, 1094, 2118};
f9854u = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 24};
f9855v = new int[]{0, 0, 8, 8, 0, 16, 8, 16, 16};
f9856w = new int[]{0, 8, 0, 8, 16, 0, 16, 8, 16};
}
public static k A(k kVar, float f10, float f11, f0 f0Var, boolean z9, int i10) {
float f12;
float f13;
float f14;
float f15;
float f16;
long j10;
f0 f0Var2;
boolean z10;
long j11;
if ((i10 & 1) != 0) {
f12 = 1.0f;
} else {
f12 = 0.0f;
}
if ((i10 & 2) != 0) {
f13 = 1.0f;
} else {
f13 = 0.0f;
}
if ((i10 & 4) != 0) {
f14 = 1.0f;
} else {
f14 = f10;
}
if ((i10 & 256) != 0) {
f15 = 0.0f;
} else {
f15 = f11;
}
if ((i10 & 512) != 0) {
f16 = 8.0f;
} else {
f16 = 0.0f;
}
long j12 = 0;
if ((i10 & 1024) != 0) {
j10 = m0.f8263b;
} else {
j10 = 0;
}
if ((i10 & 2048) != 0) {
f0Var2 = d.f7490u;
} else {
f0Var2 = f0Var;
}
if ((i10 & 4096) != 0) {
z10 = false;
} else {
z10 = z9;
}
if ((i10 & 16384) != 0) {
j11 = u.f8280a;
} else {
j11 = 0;
}
if ((i10 & 32768) != 0) {
j12 = u.f8280a;
}
e.z(kVar, "$this$graphicsLayer");
e.z(f0Var2, "shape");
return kVar.b(new h0(f12, f13, f14, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, f15, f16, j10, f0Var2, z10, j11, j12));
}
public static final r7.d B(r7.d dVar) {
t7.c cVar;
e.z(dVar, "<this>");
if (dVar instanceof t7.c) {
cVar = (t7.c) dVar;
} else {
cVar = null;
}
if (cVar != null && (dVar = cVar.f11101s) == null) {
r7.e eVar = (r7.e) cVar.j().h(k2.A);
if (eVar != null) {
dVar = new n8.e((i8.v) eVar, cVar);
} else {
dVar = cVar;
}
cVar.f11101s = dVar;
}
return dVar;
}
public static final boolean C(Context context) {
PowerManager powerManager;
boolean isIgnoringBatteryOptimizations;
e.z(context, "<this>");
if (!(Build.VERSION.SDK_INT >= 23) || (powerManager = (PowerManager) y1.c.a(context, PowerManager.class)) == null) {
return true;
}
isIgnoringBatteryOptimizations = powerManager.isIgnoringBatteryOptimizations(context.getPackageName());
return isIgnoringBatteryOptimizations;
}
public static final boolean D(s4.f fVar) {
return e.n(fVar, s4.f.f10781c);
}
public static final boolean E(long j10) {
m[] mVarArr = l.f11799b;
return (j10 & 1095216660480L) == 0;
}
public static final k F(k kVar, y7.f fVar) {
e.z(kVar, "<this>");
return kVar.b(new r(fVar));
}
public static final n G(j.m mVar, y7.c cVar) {
g0.a aVar = new g0.a(0, mVar);
y.h(1, cVar);
n nVar = o.f2926a;
return new n(aVar, cVar);
}
public static final int H(int i10) {
if (i10 < 0) {
return i10;
}
if (i10 < 3) {
return i10 + 1;
}
if (i10 < 1073741824) {
return (int) ((i10 / 0.75f) + 1.0f);
}
return Integer.MAX_VALUE;
}
public static final long I(float f10, long j10) {
long floatToIntBits = j10 | (Float.floatToIntBits(f10) & 4294967295L);
m[] mVarArr = l.f11799b;
return floatToIntBits;
}
public static final t.a J(h hVar) {
x xVar = (x) hVar;
xVar.e0(-1031410916);
View view = (View) xVar.j(k0.f678f);
xVar.e0(1157296644);
boolean e10 = xVar.e(view);
Object F = xVar.F();
if (e10 || F == x8.n.f13491r) {
F = new t.a(view);
xVar.s0(F);
}
xVar.r(false);
t.a aVar = (t.a) F;
xVar.r(false);
return aVar;
}
public static final u0 K(q0 q0Var, w wVar, boolean z9, boolean z10, h hVar) {
e.z(q0Var, "state");
e.z(wVar, "itemProvider");
x xVar = (x) hVar;
xVar.e0(1624527721);
Object[] objArr = {q0Var, wVar, Boolean.valueOf(z9), Boolean.valueOf(z10)};
xVar.e0(-568225417);
boolean z11 = false;
for (int i10 = 0; i10 < 4; i10++) {
z11 |= xVar.e(objArr[i10]);
}
Object F = xVar.F();
if (z11 || F == x8.n.f13491r) {
F = new u0(z9, q0Var, wVar, z10);
xVar.s0(F);
}
xVar.r(false);
u0 u0Var = (u0) F;
xVar.r(false);
return u0Var;
}
public static final c3 L(h hVar) {
x xVar = (x) hVar;
xVar.e0(-1464256199);
Object[] objArr = new Object[0];
n f10 = c3.f6091f.f();
xVar.e0(1157296644);
boolean e10 = xVar.e(0);
Object F = xVar.F();
if (e10 || F == x8.n.f13491r) {
F = new w2(0, 0);
xVar.s0(F);
}
xVar.r(false);
c3 c3Var = (c3) m7.l.D0(objArr, f10, null, (y7.a) F, xVar, 4);
xVar.r(false);
return c3Var;
}
public static final int M(int i10, k9.k kVar) {
e.z(kVar, "<this>");
return i10 == -1234567890 ? kVar.d() : i10;
}
public static final q8.b N(f8.b bVar) {
e.z(bVar, "<this>");
q8.b k2 = y.k(bVar, new q8.b[0]);
if (k2 == null) {
return (q8.b) z0.f11218a.get(bVar);
}
return k2;
}
public static final q8.b O(w8.a aVar, i iVar) {
e.z(aVar, "<this>");
e.z(iVar, "type");
return b.s0(aVar, iVar, false);
}
public static boolean P(Drawable drawable, int i10) {
if (Build.VERSION.SDK_INT >= 23) {
return c2.c.b(drawable, i10);
}
if (!f9835b) {
try {
Method declaredMethod = Drawable.class.getDeclaredMethod("setLayoutDirection", Integer.TYPE);
f9834a = declaredMethod;
declaredMethod.setAccessible(true);
} catch (NoSuchMethodException e10) {
Log.i("DrawableCompat", "Failed to retrieve setLayoutDirection(int) method", e10);
}
f9835b = true;
}
Method method = f9834a;
if (method != null) {
try {
method.invoke(drawable, Integer.valueOf(i10));
return true;
} catch (Exception e11) {
Log.i("DrawableCompat", "Failed to invoke setLayoutDirection(int) via reflection", e11);
f9834a = null;
}
}
return false;
}
public static void Q(Drawable drawable, ColorStateList colorStateList) {
c2.b.h(drawable, colorStateList);
}
public static void R(Drawable drawable, PorterDuff.Mode mode) {
c2.b.i(drawable, mode);
}
public static final long S(float f10, long j10) {
return c(Math.max(0.0f, n0.a.b(j10) - f10), Math.max(0.0f, n0.a.c(j10) - f10));
}
public static final Uri T(Uri uri, int i10) {
String U = U(i10, String.valueOf(uri));
if (U != null) {
Uri parse = Uri.parse(U);
e.y(parse, "parse(this)");
return parse;
}
return null;
}
public static final String U(int i10, String str) {
boolean z9;
StringBuilder sb;
boolean z10 = true;
if (str != null && h8.i.L0(str, "https://lh3.googleusercontent.com", false)) {
z9 = true;
} else {
z9 = false;
}
if (z9) {
sb = new StringBuilder();
sb.append(str);
sb.append("-w");
sb.append(i10);
sb.append("-h");
} else {
if ((str == null || !h8.i.L0(str, "https://yt3.ggpht.com", false)) ? false : false) {
sb = new StringBuilder();
sb.append(str);
sb.append("-w");
sb.append(i10);
sb.append("-h");
sb.append(i10);
sb.append("-s");
} else {
return str;
}
}
sb.append(i10);
return sb.toString();
}
public static final j0 V(b2.c cVar) {
return new j0(cVar.f924a, cVar.f925b, cVar.f926c, cVar.f927d);
}
public static final Map W(Map map) {
e.z(map, "<this>");
Map.Entry entry = (Map.Entry) map.entrySet().iterator().next();
Map singletonMap = Collections.singletonMap(entry.getKey(), entry.getValue());
e.y(singletonMap, "with(entries.iterator().…ingletonMap(key, value) }");
return singletonMap;
}
public static String X(int i10) {
if (i10 == 0) {
return "Blocking";
}
if (i10 == 1) {
return "Optional";
}
if (i10 == 2) {
return "Async";
}
return "Invalid(value=" + i10 + ')';
}
public static final void Y(Context context, String str) {
e.z(context, "<this>");
Toast.makeText(context, str, 0).show();
}
public static final String Z(String str) {
int i10;
Comparable comparable;
int i11;
e.z(str, "<this>");
List G0 = g8.k.G0(h8.i.A0(str));
ArrayList arrayList = new ArrayList();
for (Object obj : G0) {
if (!h8.i.x0((String) obj)) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = new ArrayList(o7.o.G0(arrayList, 10));
Iterator it2 = arrayList.iterator();
while (true) {
i10 = 0;
if (!it2.hasNext()) {
break;
}
String str2 = (String) it2.next();
int length = str2.length();
while (true) {
if (i10 < length) {
if (!f8.m.j0(str2.charAt(i10))) {
break;
}
i10++;
} else {
i10 = -1;
break;
}
}
if (i10 == -1) {
i10 = str2.length();
}
arrayList2.add(Integer.valueOf(i10));
}
Iterator it3 = arrayList2.iterator();
if (!it3.hasNext()) {
comparable = null;
} else {
comparable = (Comparable) it3.next();
while (it3.hasNext()) {
Comparable comparable2 = (Comparable) it3.next();
if (comparable.compareTo(comparable2) > 0) {
comparable = comparable2;
}
}
}
Integer num = (Integer) comparable;
if (num != null) {
i11 = num.intValue();
} else {
i11 = 0;
}
int size = (G0.size() * 0) + str.length();
r6.b bVar = r6.b.R;
int b02 = f8.m.b0(G0);
ArrayList arrayList3 = new ArrayList();
for (Object obj2 : G0) {
int i12 = i10 + 1;
if (i10 >= 0) {
String str3 = (String) obj2;
if ((i10 == 0 || i10 == b02) && h8.i.x0(str3)) {
str3 = null;
} else {
String str4 = (String) bVar.c(j.U0(i11, str3));
if (str4 != null) {
str3 = str4;
}
}
if (str3 != null) {
arrayList3.add(str3);
}
i10 = i12;
} else {
f8.m.D0();
throw null;
}
}
StringBuilder sb = new StringBuilder(size);
s.V0(arrayList3, sb, "\n", null, 124);
String sb2 = sb.toString();
e.y(sb2, "mapIndexedNotNull { inde…\"\\n\")\n .toString()");
return sb2;
}
public static final void a(h hVar, int i10) {
x xVar = (x) hVar;
xVar.f0(-832771402);
if (i10 == 0 && xVar.C()) {
xVar.Y();
} else {
l7.b bVar = (l7.b) xVar.j(l7.c.f6588a);
l7.d dVar = bVar.f6585a;
l7.i iVar = bVar.f6586b;
f2 f2Var = (f2) xVar.j(b1.f589n);
k r02 = m7.l.r0(b0(p.b1.b(x0.c.g(j0.h.f5030q, dVar.f6589a, d.f7490u)), L(xVar)), y0.m(y0.X((h1) xVar.j(d0.f11037b), y0.f11755i | y0.f11751e), xVar));
xVar.e0(-483455358);
a0 a10 = p.w.a(p.j.f8958c, a3.o.R, xVar);
xVar.e0(-1323940314);
v1.b bVar2 = (v1.b) xVar.j(b1.f580e);
v1.k kVar = (v1.k) xVar.j(b1.f586k);
h2 h2Var = (h2) xVar.j(b1.f590o);
e1.i.f1994a.getClass();
a.l lVar = e1.h.f1986b;
f0.c S = y0.S(r02);
if (xVar.f13848a instanceof y.c) {
xVar.h0();
if (xVar.L) {
xVar.k(lVar);
} else {
xVar.u0();
}
xVar.f13871x = false;
i8.a0.u1(xVar, a10, e1.h.f1989e);
i8.a0.u1(xVar, bVar2, e1.h.f1988d);
i8.a0.u1(xVar, kVar, e1.h.f1990f);
S.t(g.w(xVar, h2Var, e1.h.f1991g, xVar), xVar, 0);
xVar.e0(2058660585);
xVar.e0(-1163856341);
d.q("About", null, x0.c.o(xVar, 627030460, new i7.m(iVar, 1)), xVar, 390, 2);
i8.a0.A("SOCIAL", null, xVar, 6, 2);
i8.a0.z("GitHub", "View the source code", null, new k7.a(f2Var, 0), false, null, xVar, 54, 52);
i8.a0.B(null, xVar, 0, 1);
i8.a0.A("TROUBLESHOOTING", null, xVar, 6, 2);
i8.a0.z("Report an issue", "You will be redirected to GitHub", null, new k7.a(f2Var, 1), false, null, xVar, 54, 52);
i8.a0.z("Request a feature or suggest an idea", "You will be redirected to GitHub", null, new k7.a(f2Var, 2), false, null, xVar, 54, 52);
g.E(xVar, false, false, true, false);
xVar.r(false);
} else {
i8.a0.V0();
throw null;
}
}
o1 v9 = xVar.v();
if (v9 != null) {
v9.f13735d = new d7.a(i10, 1);
}
}
public static String a0(String str) {
e.z(str, "<this>");
if (!h8.i.x0("|")) {
List G0 = g8.k.G0(h8.i.A0(str));
int size = (G0.size() * 0) + str.length();
r6.b bVar = r6.b.R;
int b02 = f8.m.b0(G0);
ArrayList arrayList = new ArrayList();
Iterator it2 = G0.iterator();
int i10 = 0;
while (true) {
String str2 = null;
if (it2.hasNext()) {
Object next = it2.next();
int i11 = i10 + 1;
if (i10 >= 0) {
String str3 = (String) next;
if ((i10 != 0 && i10 != b02) || !h8.i.x0(str3)) {
int length = str3.length();
int i12 = 0;
while (true) {
if (i12 < length) {
if (!f8.m.j0(str3.charAt(i12))) {
break;
}
i12++;
} else {
i12 = -1;
break;
}
}
if (i12 != -1 && h8.i.K0(str3, "|", i12, false)) {
str2 = str3.substring("|".length() + i12);
e.y(str2, "this as java.lang.String).substring(startIndex)");
}
if (str2 == null || (str2 = (String) bVar.c(str2)) == null) {
str2 = str3;
}
}
if (str2 != null) {
arrayList.add(str2);
}
i10 = i11;
} else {
f8.m.D0();
throw null;
}
} else {
StringBuilder sb = new StringBuilder(size);
s.V0(arrayList, sb, "\n", null, 124);
String sb2 = sb.toString();
e.y(sb2, "mapIndexedNotNull { inde…\"\\n\")\n .toString()");
return sb2;
}
}
} else {
throw new IllegalArgumentException("marginPrefix must be non-blank string.".toString());
}
}
public static final CancellationException b(String str, Throwable th) {
CancellationException cancellationException = new CancellationException(str);
cancellationException.initCause(th);
return cancellationException;
}
public static k b0(k kVar, c3 c3Var) {
e.z(kVar, "<this>");
e.z(c3Var, "state");
return y0.x(kVar, e1.j0.P, new b3(c3Var, null, false, true));
}
public static final long c(float f10, float f11) {
long floatToIntBits = (Float.floatToIntBits(f11) & 4294967295L) | (Float.floatToIntBits(f10) << 32);
int i10 = n0.a.f7704b;
return floatToIntBits;
}
public static final Object c0(t7.c cVar) {
n8.e eVar;
Object obj;
boolean z9;
s7.a aVar = s7.a.f10827q;
r7.h j10 = cVar.j();
e.T(j10);
r7.d B = B(cVar);
if (B instanceof n8.e) {
eVar = (n8.e) B;
} else {
eVar = null;
}
if (eVar != null) {
boolean z10 = true;
if (eVar.f8161t.h0(j10)) {
eVar.f8163v = n7.n.f8152a;
eVar.f4195s = 1;
eVar.f8161t.g0(j10, eVar);
} else {
g2 g2Var = new g2();
r7.h H = j10.H(g2Var);
n7.n nVar = n7.n.f8152a;
eVar.f8163v = nVar;
eVar.f4195s = 1;
eVar.f8161t.g0(H, eVar);
if (g2Var.f4194r) {
s0 a10 = y1.a();
j3.e eVar2 = a10.f4243u;
if (eVar2 != null && eVar2.f5217a != eVar2.f5218b) {
z9 = false;
} else {
z9 = true;
}
if (!z9) {
if (a10.n0()) {
eVar.f8163v = nVar;
eVar.f4195s = 1;
a10.k0(eVar);
} else {
a10.m0(true);
try {
eVar.run();
do {
} while (a10.p0());
} finally {
try {
} finally {
}
}
}
}
z10 = false;
}
}
obj = aVar;
if (obj != aVar) {
return obj;
}
return n7.n.f8152a;
}
obj = n7.n.f8152a;
if (obj != aVar) {
}
}
public static final void d(String str, boolean z9, y7.a aVar, k kVar, h hVar, int i10, int i11) {
int i12;
int i13;
int i14;
int i15;
k kVar2;
int i16;
int i17;
j0.h hVar2;
w6.m mVar;
k kVar3;
e.z(str, "mediaId");
e.z(aVar, "onDismiss");
x xVar = (x) hVar;
xVar.f0(1808837260);
if ((i11 & 1) != 0) {
i12 = i10 | 6;
} else if ((i10 & 14) == 0) {
if (xVar.e(str)) {
i13 = 4;
} else {
i13 = 2;
}
i12 = i13 | i10;
} else {
i12 = i10;
}
if ((i11 & 2) != 0) {
i12 |= 48;
} else if ((i10 & 112) == 0) {
if (xVar.f(z9)) {
i14 = 32;
} else {
i14 = 16;
}
i12 |= i14;
}
if ((i11 & 4) != 0) {
i12 |= 384;
} else if ((i10 & 896) == 0) {
if (xVar.e(aVar)) {
i15 = 256;
} else {
i15 = 128;
}
i12 |= i15;
}
int i18 = i11 & 8;
if (i18 != 0) {
i12 |= 3072;
} else if ((i10 & 7168) == 0) {
kVar2 = kVar;
if (xVar.e(kVar2)) {
i16 = 2048;
} else {
i16 = 1024;
}
i12 |= i16;
i17 = i12;
if ((i17 & 5851) != 1170 && xVar.C()) {
xVar.Y();
kVar3 = kVar2;
} else {
if (i18 == 0) {
hVar2 = j0.h.f5030q;
} else {
hVar2 = kVar2;
}
l7.b bVar = (l7.b) xVar.j(l7.c.f6588a);
l7.d dVar = bVar.f6585a;
l7.i iVar = bVar.f6586b;
Context context = (Context) xVar.j(k0.f674b);
mVar = (w6.m) xVar.j(d0.f11036a);
if (mVar != null) {
o1 v9 = xVar.v();
if (v9 != null) {
v9.f13735d = new f1(str, z9, aVar, hVar2, i10, i11, 1);
return;
}
return;
}
f8.m.c(z9, null, j.m0.c(null, 3), j.m0.d(null, 3), null, x0.c.o(xVar, 600581988, new e1(str, i17, hVar2, aVar, dVar, mVar, iVar, context)), xVar, ((i17 >> 3) & 14) | 200064, 18);
kVar3 = hVar2;
}
o1 v10 = xVar.v();
if (v10 != null) {
v10.f13735d = new f1(str, z9, aVar, kVar3, i10, i11, 0);
return;
}
return;
}
kVar2 = kVar;
i17 = i12;
if ((i17 & 5851) != 1170) {
}
if (i18 == 0) {
}
l7.b bVar2 = (l7.b) xVar.j(l7.c.f6588a);
l7.d dVar2 = bVar2.f6585a;
l7.i iVar2 = bVar2.f6586b;
Context context2 = (Context) xVar.j(k0.f674b);
mVar = (w6.m) xVar.j(d0.f11036a);
if (mVar != null) {
}
}
public static final void e(StringBuilder sb, Object obj, y7.c cVar) {
CharSequence valueOf;
if (cVar != null) {
obj = cVar.c(obj);
} else {
if (!(obj == null ? true : obj instanceof CharSequence)) {
if (obj instanceof Character) {
sb.append(((Character) obj).charValue());
return;
}
valueOf = String.valueOf(obj);
sb.append(valueOf);
}
}
valueOf = (CharSequence) obj;
sb.append(valueOf);
}
public static final boolean f(int i10, int i11, int i12, byte[] bArr, byte[] bArr2) {
e.z(bArr, "a");
e.z(bArr2, "b");
for (int i13 = 0; i13 < i12; i13++) {
if (bArr[i13 + i10] != bArr2[i13 + i11]) {
return false;
}
}
return true;
}
public static final k g(k kVar, float f10, long j10, f0 f0Var) {
e.z(kVar, "$this$border");
e.z(f0Var, "shape");
return y0.x(kVar, e1.j0.P, new l.o(f10, f0Var, new i0(j10)));
}
public static final void h(long j10, long j11, long j12) {
if ((j11 | j12) < 0 || j11 > j10 || j10 - j11 < j12) {
throw new ArrayIndexOutOfBoundsException("size=" + j10 + " offset=" + j11 + " byteCount=" + j12);
}
}
public static final Serializable j(Object obj, r7.d dVar) {
m7.p pVar;
int i10;
t tVar;
m6.h hVar;
String str;
String str2;
Object obj2;
boolean z9;
if (dVar instanceof m7.p) {
pVar = (m7.p) dVar;
int i11 = pVar.f7540v;
if ((i11 & Integer.MIN_VALUE) != 0) {
pVar.f7540v = i11 - Integer.MIN_VALUE;
Object obj3 = pVar.f7539u;
s7.a aVar = s7.a.f10827q;
i10 = pVar.f7540v;
if (i10 == 0) {
if (i10 == 1) {
tVar = pVar.f7538t;
v8.i.C(obj3);
n7.h hVar2 = (n7.h) obj3;
if (hVar2 != null && !((z9 = (obj2 = hVar2.f8141q) instanceof n7.g))) {
if (z9) {
obj2 = null;
}
m6.h hVar3 = (m6.h) obj2;
if (hVar3 != null) {
m6.l lVar = (m6.l) tVar.f14745q;
tVar.f14745q = m6.l.a(lVar, f8.m.r0(lVar.f7459f, hVar3));
}
hVar = ((m6.l) tVar.f14745q).f7459f;
if (hVar != null) {
str = hVar.f7444b;
} else {
str = null;
}
if (str != null) {
if (hVar != null) {
str2 = hVar.f7444b;
} else {
str2 = null;
}
e.w(str2);
m6.r rVar = m6.r.f7477a;
o6.f fVar = new o6.f(str2);
pVar.f7538t = tVar;
pVar.f7540v = 1;
obj3 = y0.b0(rVar, fVar, pVar);
if (obj3 == aVar) {
return aVar;
}
n7.h hVar22 = (n7.h) obj3;
if (hVar22 != null) {
if (z9) {
}
m6.h hVar32 = (m6.h) obj2;
if (hVar32 != null) {
}
hVar = ((m6.l) tVar.f14745q).f7459f;
if (hVar != null) {
}
if (str != null) {
}
}
}
}
return new n7.h(tVar.f14745q);
}
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
v8.i.C(obj3);
t tVar2 = new t();
if (obj instanceof n7.g) {
obj = null;
}
m6.l lVar2 = (m6.l) obj;
if (lVar2 == null) {
return null;
}
tVar2.f14745q = lVar2;
tVar = tVar2;
hVar = ((m6.l) tVar.f14745q).f7459f;
if (hVar != null) {
}
if (str != null) {
}
return new n7.h(tVar.f14745q);
}
}
pVar = new m7.p(dVar);
Object obj32 = pVar.f7539u;
s7.a aVar2 = s7.a.f10827q;
i10 = pVar.f7540v;
if (i10 == 0) {
}
}
public static final r7.d k(Object obj, r7.d dVar, y7.e eVar) {
e.z(eVar, "<this>");
e.z(dVar, "completion");
if (eVar instanceof t7.a) {
return ((t7.a) eVar).a(obj, dVar);
}
r7.h j10 = dVar.j();
return j10 == r7.i.f10301q ? new s7.b(obj, dVar, eVar) : new s7.c(dVar, j10, eVar, obj);
}
public static String l(List list) {
CharSequence valueOf;
e.z(list, "<this>");
StringBuilder sb = new StringBuilder();
sb.append((CharSequence) "");
int size = list.size();
int i10 = 0;
for (int i11 = 0; i11 < size; i11++) {
Object obj = list.get(i11);
boolean z9 = true;
i10++;
if (i10 > 1) {
sb.append((CharSequence) ",");
}
if (obj != null) {
z9 = obj instanceof CharSequence;
}
if (z9) {
valueOf = (CharSequence) obj;
} else if (obj instanceof Character) {
sb.append(((Character) obj).charValue());
} else {
valueOf = String.valueOf(obj);
}
sb.append(valueOf);
}
sb.append((CharSequence) "");
String sb2 = sb.toString();
e.y(sb2, "fastJoinTo(StringBuilder…form)\n .toString()");
return sb2;
}
public static final int m(s.p pVar, Object obj, int i10) {
Integer num;
e.z(pVar, "<this>");
return obj == null ? i10 : ((i10 >= pVar.a() || !e.n(obj, pVar.c(i10))) && (num = (Integer) pVar.e().get(obj)) != null) ? num.intValue() : i10;
}
public static final String n(long j10) {
String formatElapsedTime = DateUtils.formatElapsedTime(j10 / 1000);
e.y(formatElapsedTime, "formatElapsedTime(millis / 1000)");
return h8.i.E0("0", formatElapsedTime);
}
public static final m6.o o(m6.n nVar, i2 i2Var) {
m6.f fVar;
ArrayList arrayList;
List list;
String str;
n6.h2 h2Var;
m6.f fVar2;
u8 u8Var;
l8 l8Var;
String str2;
q3 q3Var;
t8 t8Var;
s8 s8Var;
List list2;
n6.g2 g2Var;
s6 s6Var;
List list3;
r6 r6Var;
n6.h2 h2Var2;
n6.g2 g2Var2;
s6 s6Var2;
List list4;
r6 r6Var2;
n6.g2 g2Var3;
s6 s6Var3;
List<r6> list5;
n6.g2 g2Var4;
s6 s6Var4;
List list6;
r6 r6Var3;
e.z(nVar, "<this>");
e.z(i2Var, "renderer");
boolean z9 = false;
n6.h2 h2Var3 = (n6.h2) s.T0(0, i2Var.f7902b);
if (h2Var3 != null && (g2Var4 = h2Var3.f7894a) != null && (s6Var4 = g2Var4.f7875a) != null && (list6 = s6Var4.f8047a) != null && (r6Var3 = (r6) s.T0(0, list6)) != null) {
fVar = new m6.f(r6Var3);
} else {
fVar = null;
}
n6.h2 h2Var4 = (n6.h2) s.T0(1, i2Var.f7902b);
if (h2Var4 != null && (g2Var3 = h2Var4.f7894a) != null && (s6Var3 = g2Var3.f7875a) != null && (list5 = s6Var3.f8047a) != null) {
ArrayList arrayList2 = new ArrayList(o7.o.G0(list5, 10));
for (r6 r6Var4 : list5) {
arrayList2.add(new m6.f(r6Var4));
}
if (!arrayList2.isEmpty()) {
arrayList = arrayList2;
list = i2Var.f7901a;
if (list == null && (h2Var2 = (n6.h2) s.T0(0, list)) != null && (g2Var2 = h2Var2.f7894a) != null && (s6Var2 = g2Var2.f7875a) != null && (list4 = s6Var2.f8047a) != null && (r6Var2 = (r6) s.T0(0, list4)) != null) {
str = r6Var2.f8033a;
} else {
str = null;
}
h2Var = (n6.h2) s.T0(2, i2Var.f7902b);
if (h2Var == null && (g2Var = h2Var.f7894a) != null && (s6Var = g2Var.f7875a) != null && (list3 = s6Var.f8047a) != null && (r6Var = (r6) s.S0(list3)) != null) {
fVar2 = new m6.f(r6Var);
} else {
fVar2 = null;
}
u8Var = i2Var.f7903c;
if (u8Var == null && (t8Var = u8Var.f8073a) != null && (s8Var = t8Var.f8062a) != null && (list2 = s8Var.f8050a) != null) {
l8Var = (l8) s.S0(list2);
} else {
l8Var = null;
}
m6.o oVar = new m6.o(fVar, arrayList, fVar2, str, l8Var);
if (fVar == null && (q3Var = (q3) fVar.f7442b) != null) {
str2 = q3Var.f8013d;
} else {
str2 = null;
}
if (str2 != null) {
z9 = true;
}
if (z9) {
return null;
}
return oVar;
}
}
arrayList = null;
list = i2Var.f7901a;
if (list == null) {
}
str = null;
h2Var = (n6.h2) s.T0(2, i2Var.f7902b);
if (h2Var == null) {
}
fVar2 = null;
u8Var = i2Var.f7903c;
if (u8Var == null) {
}
l8Var = null;
m6.o oVar2 = new m6.o(fVar, arrayList, fVar2, str, l8Var);
if (fVar == null) {
}
str2 = null;
if (str2 != null) {
}
if (z9) {
}
}
public static final g0 p(m6.o oVar) {
String str;
String str2;
String str3;
Uri uri;
String str4;
ArrayList arrayList;
String str5;
boolean z9;
n6.c3 c3Var;
String str6;
e.z(oVar, "<this>");
o2.v vVar = new o2.v();
vVar.f8648a = oVar.a();
vVar.f8649b = Uri.parse(oVar.a());
vVar.f8654g = oVar.a();
o2.i0 i0Var = new o2.i0();
m6.f fVar = oVar.f7466a;
ArrayList arrayList2 = null;
if (fVar != null) {
str = fVar.f7441a;
} else {
str = null;
}
i0Var.f8483a = str;
List list = oVar.f7467b;
if (list != null) {
str2 = s.W0(list, "", null, null, r6.b.O, 30);
} else {
str2 = null;
}
i0Var.f8484b = str2;
m6.f fVar2 = oVar.f7468c;
if (fVar2 != null) {
str3 = fVar2.f7441a;
} else {
str3 = null;
}
i0Var.f8485c = str3;
l8 l8Var = oVar.f7470e;
if (l8Var != null && (str6 = l8Var.f7948a) != null) {
uri = Uri.parse(str6);
e.y(uri, "parse(this)");
} else {
uri = null;
}
i0Var.f8494l = uri;
n7.f[] fVarArr = new n7.f[4];
m6.f fVar3 = oVar.f7468c;
if (fVar3 != null && (c3Var = (n6.c3) fVar3.f7442b) != null) {
str4 = c3Var.f7827c;
} else {
str4 = null;
}
fVarArr[0] = new n7.f("albumId", str4);
fVarArr[1] = new n7.f("durationText", oVar.f7469d);
List list2 = oVar.f7467b;
if (list2 != null) {
ArrayList arrayList3 = new ArrayList();
for (Object obj : list2) {
if (((m6.f) obj).f7442b != null) {
z9 = true;
} else {
z9 = false;
}
if (z9) {
arrayList3.add(obj);
}
}
arrayList = new ArrayList();
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
String str7 = ((m6.f) it2.next()).f7441a;
if (str7 != null) {
arrayList.add(str7);
}
}
} else {
arrayList = null;
}
fVarArr[2] = new n7.f("artistNames", arrayList);
List<m6.f> list3 = oVar.f7467b;
if (list3 != null) {
ArrayList arrayList4 = new ArrayList();
for (m6.f fVar4 : list3) {
n6.c3 c3Var2 = (n6.c3) fVar4.f7442b;
if (c3Var2 != null) {
str5 = c3Var2.f7827c;
} else {
str5 = null;
}
if (str5 != null) {
arrayList4.add(str5);
}
}
arrayList2 = arrayList4;
}
fVarArr[3] = new n7.f("artistIds", arrayList2);
i0Var.E = d.R(fVarArr);
vVar.f8657j = new o2.j0(i0Var);
return vVar.a();
}
public static final g0 q(q qVar) {
String str;
String str2;
Uri uri;
ArrayList arrayList;
List<m6.f> list;
String str3;
List list2;
boolean z9;
String str4;
e.z(qVar, "<this>");
o2.v vVar = new o2.v();
vVar.f8648a = qVar.a();
vVar.f8649b = Uri.parse(qVar.a());
vVar.f8654g = qVar.a();
o2.i0 i0Var = new o2.i0();
m6.f fVar = qVar.f7472a;
ArrayList arrayList2 = null;
if (fVar != null) {
str = fVar.f7441a;
} else {
str = null;
}
i0Var.f8483a = str;
List list3 = qVar.f7473b;
if (list3 != null) {
str2 = s.W0(list3, "", null, null, r6.b.P, 30);
} else {
str2 = null;
}
i0Var.f8484b = str2;
l8 l8Var = qVar.f7476e;
if (l8Var != null && (str4 = l8Var.f7948a) != null) {
uri = Uri.parse(str4);
e.y(uri, "parse(this)");
} else {
uri = null;
}
i0Var.f8494l = uri;
n7.f[] fVarArr = new n7.f[3];
fVarArr[0] = new n7.f("durationText", qVar.f7475d);
if (qVar.b() && (list2 = qVar.f7473b) != null) {
ArrayList arrayList3 = new ArrayList();
for (Object obj : list2) {
if (((m6.f) obj).f7442b != null) {
z9 = true;
} else {
z9 = false;
}
if (z9) {
arrayList3.add(obj);
}
}
arrayList = new ArrayList();
Iterator it2 = arrayList3.iterator();
while (it2.hasNext()) {
String str5 = ((m6.f) it2.next()).f7441a;
if (str5 != null) {
arrayList.add(str5);
}
}
} else {
arrayList = null;
}
fVarArr[1] = new n7.f("artistNames", arrayList);
if (qVar.b() && (list = qVar.f7473b) != null) {
ArrayList arrayList4 = new ArrayList();
for (m6.f fVar2 : list) {
n6.c3 c3Var = (n6.c3) fVar2.f7442b;
if (c3Var != null) {
str3 = c3Var.f7827c;
} else {
str3 = null;
}
if (str3 != null) {
arrayList4.add(str3);
}
}
arrayList2 = arrayList4;
}
fVarArr[2] = new n7.f("artistIds", arrayList2);
i0Var.E = d.R(fVarArr);
vVar.f8657j = new o2.j0(i0Var);
return vVar.a();
}
public static final g0 r(v6.l lVar) {
Uri uri;
e.z(lVar, "<this>");
o2.v vVar = new o2.v();
o2.i0 i0Var = new o2.i0();
i0Var.f8483a = lVar.f12331b;
i0Var.f8484b = lVar.f12332c;
String str = lVar.f12334e;
Uri uri2 = null;
if (str != null) {
uri = Uri.parse(str);
e.y(uri, "parse(this)");
} else {
uri = null;
}
i0Var.f8494l = uri;
i0Var.E = d.R(new n7.f("durationText", lVar.f12333d));
vVar.f8657j = new o2.j0(i0Var);
String str2 = lVar.f12330a;
str2.getClass();
vVar.f8648a = str2;
String str3 = lVar.f12330a;
if (str3 != null) {
uri2 = Uri.parse(str3);
}
vVar.f8649b = uri2;
vVar.f8654g = lVar.f12330a;
return vVar.a();
}
public static final Boolean s(b0 b0Var) {
e.z(b0Var, "<this>");
String a10 = b0Var.a();
String[] strArr = v8.u.f12419a;
e.z(a10, "<this>");
if (h8.i.q0(a10, "true")) {
return Boolean.TRUE;
}
if (h8.i.q0(a10, "false")) {
return Boolean.FALSE;
}
return null;
}
public static final Class t(f8.b bVar) {
e.z(bVar, "<this>");
Class a10 = ((z7.d) bVar).a();
e.x(a10, "null cannot be cast to non-null type java.lang.Class<T of kotlin.jvm.JvmClassMappingKt.<get-java>>");
return a10;
}
public static final Class u(f8.b bVar) {
e.z(bVar, "<this>");
Class a10 = ((z7.d) bVar).a();
if (a10.isPrimitive()) {
String name = a10.getName();
switch (name.hashCode()) {
case -1325958191:
return !name.equals("double") ? a10 : Double.class;
case 104431:
return !name.equals("int") ? a10 : Integer.class;
case 3039496:
return !name.equals("byte") ? a10 : Byte.class;
case 3052374:
return !name.equals("char") ? a10 : Character.class;
case 3327612:
return !name.equals("long") ? a10 : Long.class;
case 3625364:
return !name.equals("void") ? a10 : Void.class;
case 64711720:
return !name.equals("boolean") ? a10 : Boolean.class;
case 97526364:
return !name.equals("float") ? a10 : Float.class;
case 109413500:
return !name.equals("short") ? a10 : Short.class;
default:
return a10;
}
}
return a10;
}
public static int v(Drawable drawable) {
if (Build.VERSION.SDK_INT >= 23) {
return c2.c.a(drawable);
}
if (!f9837d) {
try {
Method declaredMethod = Drawable.class.getDeclaredMethod("getLayoutDirection", new Class[0]);
f9836c = declaredMethod;
declaredMethod.setAccessible(true);
} catch (NoSuchMethodException e10) {
Log.i("DrawableCompat", "Failed to retrieve getLayoutDirection() method", e10);
}
f9837d = true;
}
Method method = f9836c;
if (method != null) {
try {
return ((Integer) method.invoke(drawable, new Object[0])).intValue();
} catch (Exception e11) {
Log.i("DrawableCompat", "Failed to invoke getLayoutDirection() via reflection", e11);
f9836c = null;
}
}
return 0;
}
public static s4.f w(s4.e eVar) {
int i10;
int i11;
p9.e eVar2;
p9.e eVar3;
ViewGroup.LayoutParams layoutParams = eVar.f10779q.getLayoutParams();
int i12 = -1;
if (layoutParams != null) {
i10 = layoutParams.width;
} else {
i10 = -1;
}
int width = eVar.f10779q.getWidth();
int i13 = 0;
if (eVar.f10780r) {
i11 = eVar.f10779q.getPaddingRight() + eVar.f10779q.getPaddingLeft();
} else {
i11 = 0;
}
if (i10 == -2) {
eVar2 = s4.b.f10776s;
} else {
int i14 = i10 - i11;
if (i14 > 0) {
eVar2 = new s4.a(i14);
} else {
int i15 = width - i11;
if (i15 > 0) {
eVar2 = new s4.a(i15);
} else {
eVar2 = null;
}
}
}
if (eVar2 == null) {
return null;
}
ViewGroup.LayoutParams layoutParams2 = eVar.f10779q.getLayoutParams();
if (layoutParams2 != null) {
i12 = layoutParams2.height;
}
int height = eVar.f10779q.getHeight();
if (eVar.f10780r) {
i13 = eVar.f10779q.getPaddingTop() + eVar.f10779q.getPaddingBottom();
}
if (i12 == -2) {
eVar3 = s4.b.f10776s;
} else {
int i16 = i12 - i13;
if (i16 > 0) {
eVar3 = new s4.a(i16);
} else {
int i17 = height - i13;
if (i17 > 0) {
eVar3 = new s4.a(i17);
} else {
eVar3 = null;
}
}
}
if (eVar3 == null) {
return null;
}
return new s4.f(eVar2, eVar3);
}
public static final long x(int i10) {
return I(i10, 4294967296L);
}
public static final p.b y(h hVar) {
x xVar = (x) hVar;
xVar.e0(-282936756);
WeakHashMap weakHashMap = i1.f8937s;
p.b bVar = c.c.e(xVar).f8944g;
xVar.r(false);
return bVar;
}
public static final k z(k kVar, y7.c cVar) {
e.z(kVar, "<this>");
e.z(cVar, "block");
return kVar.b(new o0.m(cVar));
}
public abstract List i(String str, List list);
}