导航菜单

页面标题

页面副标题

BetterTogether v3.0.0 - y0.java 源代码

正在查看: BetterTogether v3.0.0 应用的 y0.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package w1;

import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.ResolveInfo;
import android.os.Build;
import android.os.Process;
import androidx.activity.p;
import androidx.core.app.Hy.uPvqkFnZlEUle;
import cp.d0;
import cp.u1;
import fq.h;
import io.sentry.o2;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import jm.d;
import kotlin.collections.o0;
import kotlin.collections.y;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.o;
import mp.z;
import n0.c;
import n0.i2;
import n0.j;
import n0.j2;
import n0.k;
import n0.m;
import n0.n1;
import n0.n2;
import n0.q;
import n0.q2;
import n0.u;
import n0.w0;
import n0.y1;
import qp.f;
import r1.a;
import rk.r;
import s.f0;
import s.m0;
import s.n0;
import u.w;
import uj.e;
import v0.g;
import y3.b;

public abstract class y0 {
    public static final q a = new q(3);
    public static final d b = new d(3);
    public static final n1 c = new n1("provider");

    public static final n1 f967d = new n1("provider");

    public static final n1 f968e = new n1("compositionLocalMap");
    public static final n1 f = new n1("providers");
    public static final n1 g = new n1("reference");

    public static final q f969h = new q(0);
    public static final g i = new g(0, new long[0], new Object[0]);
    public static volatile f j;

    public static BigDecimal B(String str) {
        h(str);
        BigDecimal bigDecimal = new BigDecimal(str);
        if (Math.abs(bigDecimal.scale()) < 10000) {
            return bigDecimal;
        }
        throw new NumberFormatException("Number has unsupported scale: ".concat(str));
    }

    public static final void C(float[] fArr, float[] fArr2, int i2, float[] fArr3) {
        if (i2 == 0) {
            r.f0("At least one point must be provided");
            throw null;
        }
        int i3 = (2 >= i2 ? i2 - 1 : 2) + 1;
        float[][] fArr4 = new float[i3][];
        for (int i4 = 0; i4 < i3; i4++) {
            fArr4[i4] = new float[i2];
        }
        for (int i5 = 0; i5 < i2; i5++) {
            fArr4[0][i5] = 1.0f;
            for (int i6 = 1; i6 < i3; i6++) {
                fArr4[i6][i5] = fArr4[i6 - 1][i5] * fArr[i5];
            }
        }
        float[][] fArr5 = new float[i3][];
        for (int i7 = 0; i7 < i3; i7++) {
            fArr5[i7] = new float[i2];
        }
        float[][] fArr6 = new float[i3][];
        for (int i9 = 0; i9 < i3; i9++) {
            fArr6[i9] = new float[i3];
        }
        int i10 = 0;
        while (i10 < i3) {
            float[] fArr7 = fArr5[i10];
            float[] fArr8 = fArr4[i10];
            Intrinsics.checkNotNullParameter(fArr8, "<this>");
            Intrinsics.checkNotNullParameter(fArr7, "destination");
            System.arraycopy(fArr8, 0, fArr7, 0, i2 + 0);
            for (int i11 = 0; i11 < i10; i11++) {
                float[] fArr9 = fArr5[i11];
                float n = n(fArr7, fArr9);
                for (int i12 = 0; i12 < i2; i12++) {
                    fArr7[i12] = fArr7[i12] - (fArr9[i12] * n);
                }
            }
            float sqrt = (float) Math.sqrt(n(fArr7, fArr7));
            if (sqrt < 1.0E-6f) {
                sqrt = 1.0E-6f;
            }
            float f2 = 1.0f / sqrt;
            for (int i13 = 0; i13 < i2; i13++) {
                fArr7[i13] = fArr7[i13] * f2;
            }
            float[] fArr10 = fArr6[i10];
            int i14 = 0;
            while (i14 < i3) {
                fArr10[i14] = i14 < i10 ? 0.0f : n(fArr7, fArr4[i14]);
                i14++;
            }
            i10++;
        }
        int i15 = i3 - 1;
        for (int i16 = i15; -1 < i16; i16--) {
            float n2 = n(fArr5[i16], fArr2);
            float[] fArr11 = fArr6[i16];
            int i17 = i16 + 1;
            if (i17 <= i15) {
                int i18 = i15;
                while (true) {
                    n2 -= fArr11[i18] * fArr3[i18];
                    if (i18 != i17) {
                        i18--;
                    }
                }
            }
            fArr3[i16] = n2 / fArr11[i16];
        }
    }

    public static final void D(float[] fArr, float[] fArr2) {
        float o = o(fArr2, 0, fArr, 0);
        float o2 = o(fArr2, 0, fArr, 1);
        float o3 = o(fArr2, 0, fArr, 2);
        float o4 = o(fArr2, 0, fArr, 3);
        float o5 = o(fArr2, 1, fArr, 0);
        float o8 = o(fArr2, 1, fArr, 1);
        float o10 = o(fArr2, 1, fArr, 2);
        float o11 = o(fArr2, 1, fArr, 3);
        float o12 = o(fArr2, 2, fArr, 0);
        float o13 = o(fArr2, 2, fArr, 1);
        float o14 = o(fArr2, 2, fArr, 2);
        float o15 = o(fArr2, 2, fArr, 3);
        float o16 = o(fArr2, 3, fArr, 0);
        float o17 = o(fArr2, 3, fArr, 1);
        float o18 = o(fArr2, 3, fArr, 2);
        float o19 = o(fArr2, 3, fArr, 3);
        fArr[0] = o;
        fArr[1] = o2;
        fArr[2] = o3;
        fArr[3] = o4;
        fArr[4] = o5;
        fArr[5] = o8;
        fArr[6] = o10;
        fArr[7] = o11;
        fArr[8] = o12;
        fArr[9] = o13;
        fArr[10] = o14;
        fArr[11] = o15;
        fArr[12] = o16;
        fArr[13] = o17;
        fArr[14] = o18;
        fArr[15] = o19;
    }

    public static String E(File file) {
        if (file == null || !file.exists() || !file.isFile() || !file.canRead()) {
            return null;
        }
        StringBuilder sb2 = new StringBuilder();
        BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
        try {
            String readLine = bufferedReader.readLine();
            if (readLine != null) {
                sb2.append(readLine);
            }
            while (true) {
                String readLine2 = bufferedReader.readLine();
                if (readLine2 == null) {
                    bufferedReader.close();
                    return sb2.toString();
                }
                sb2.append("\n");
                sb2.append(readLine2);
            }
        } catch (Throwable th2) {
            try {
                bufferedReader.close();
            } catch (Throwable th3) {
                th2.addSuppressed(th3);
            }
            throw th2;
        }
    }

    public static final void F(q2 q2Var, u uVar) {
        int i2;
        int[] iArr = q2Var.b;
        int i3 = q2Var.t;
        int e3 = q2Var.e(iArr, q2Var.m(q2Var.n(i3) + i3));
        for (int e4 = q2Var.e(q2Var.b, q2Var.m(q2Var.t)); e4 < e3; e4++) {
            Object obj = q2Var.c[q2Var.f(e4)];
            int i4 = -1;
            if (obj instanceof j) {
                int l = q2Var.l() - e4;
                j jVar = (j) obj;
                f0 f0Var = uVar.e;
                if (f0Var == null) {
                    f0Var = n0.a();
                    uVar.e = f0Var;
                }
                ((m0) f0Var).b[f0Var.f(jVar)] = jVar;
                uVar.e(jVar, l, -1, -1);
            }
            if (obj instanceof j2) {
                int l2 = q2Var.l() - e4;
                j2 j2Var = (j2) obj;
                c cVar = j2Var.b;
                if (cVar == null || !cVar.a()) {
                    i2 = -1;
                } else {
                    i4 = cVar.a;
                    if (i4 < 0) {
                        i4 = q2Var.k() + i4;
                    }
                    i2 = q2Var.l() - q2Var.e(q2Var.b, q2Var.m(q2Var.n(i4) + i4));
                }
                uVar.e(j2Var.a, l2, i4, i2);
            }
            if (obj instanceof y1) {
                ((y1) obj).d();
            }
        }
        q2Var.B();
    }

    public static final void G(boolean z) {
        if (z) {
            return;
        }
        j("Check failed");
        throw null;
    }

    public static final void a(int i2, int i3, ArrayList arrayList) {
        int q = q(i2, arrayList);
        if (q < 0) {
            q = -(q + 1);
        }
        while (q < arrayList.size() && ((w0) arrayList.get(q)).b < i3) {
            arrayList.remove(q);
        }
    }

    public static final void b(r1.d dVar, q1.r rVar) {
        if (o.s(rVar)) {
            r1.c cVar = dVar.a;
            y.l(cVar.d, (bk.g) null);
            cVar.e = 0;
            r1.c cVar2 = dVar.b;
            y.l(cVar2.d, (bk.g) null);
            cVar2.e = 0;
            dVar.c = 0L;
        }
        boolean u4 = o.u(rVar);
        long j3 = rVar.b;
        if (!u4) {
            List list = rVar.k;
            if (list == null) {
                list = o0.f580d;
            }
            int size = list.size();
            for (int i2 = 0; i2 < size; i2++) {
                q1.d dVar2 = (q1.d) list.get(i2);
                long j4 = dVar2.a;
                dVar.getClass();
                long j5 = dVar2.c;
                float d2 = f1.c.d(j5);
                r1.c cVar3 = dVar.a;
                int i3 = (cVar3.e + 1) % 20;
                cVar3.e = i3;
                a[] aVarArr = cVar3.d;
                a aVar = aVarArr[i3];
                if (aVar == null) {
                    aVarArr[i3] = new a(j4, d2);
                } else {
                    aVar.a = j4;
                    aVar.b = d2;
                }
                float e3 = f1.c.e(j5);
                r1.c cVar4 = dVar.b;
                int i4 = (cVar4.e + 1) % 20;
                cVar4.e = i4;
                a[] aVarArr2 = cVar4.d;
                a aVar2 = aVarArr2[i4];
                if (aVar2 == null) {
                    aVarArr2[i4] = new a(j4, e3);
                } else {
                    aVar2.a = j4;
                    aVar2.b = e3;
                }
            }
            dVar.getClass();
            long j7 = rVar.l;
            float d3 = f1.c.d(j7);
            r1.c cVar5 = dVar.a;
            int i5 = (cVar5.e + 1) % 20;
            cVar5.e = i5;
            a[] aVarArr3 = cVar5.d;
            a aVar3 = aVarArr3[i5];
            if (aVar3 == null) {
                aVarArr3[i5] = new a(j3, d3);
            } else {
                aVar3.a = j3;
                aVar3.b = d3;
            }
            float e4 = f1.c.e(j7);
            r1.c cVar6 = dVar.b;
            int i6 = (cVar6.e + 1) % 20;
            cVar6.e = i6;
            a[] aVarArr4 = cVar6.d;
            a aVar4 = aVarArr4[i6];
            if (aVar4 == null) {
                aVarArr4[i6] = new a(j3, e4);
            } else {
                aVar4.a = j3;
                aVar4.b = e4;
            }
        }
        if (o.u(rVar) && j3 - dVar.c > 40) {
            r1.c cVar7 = dVar.a;
            y.l(cVar7.d, (bk.g) null);
            cVar7.e = 0;
            r1.c cVar8 = dVar.b;
            y.l(cVar8.d, (bk.g) null);
            cVar8.e = 0;
            dVar.c = 0L;
        }
        dVar.c = j3;
    }

    public static int c(b bVar, boolean z) {
        int i2 = bVar.c;
        int i3 = bVar.b;
        int i4 = z ? i2 : i3;
        if (z) {
            i2 = i3;
        }
        byte[][] bArr = (byte[][]) bVar.d;
        int i5 = 0;
        for (int i6 = 0; i6 < i4; i6++) {
            byte b4 = -1;
            int i7 = 0;
            for (int i9 = 0; i9 < i2; i9++) {
                byte b5 = z ? bArr[i6][i9] : bArr[i9][i6];
                if (b5 == b4) {
                    i7++;
                } else {
                    if (i7 >= 5) {
                        i5 = a0.g0.b(i7, -5, 3, i5);
                    }
                    i7 = 1;
                    b4 = b5;
                }
            }
            if (i7 >= 5) {
                i5 = a0.g0.b(i7, -5, 3, i5);
            }
        }
        return i5;
    }

    public static final w d(Function1 function1, Object obj, CoroutineContext coroutineContext) {
        return new w(20, function1, obj, coroutineContext);
    }

    public static z e(np.a aVar) {
        try {
            Object call = aVar.call();
            d0.R(call, "Scheduler Callable result can't be null");
            return (z) call;
        } catch (Throwable th2) {
            throw h.d(th2);
        }
    }

    public static final androidx.fragment.app.y f(Function1 function1, Object obj, androidx.fragment.app.y yVar) {
        try {
            function1.invoke(obj);
        } catch (Throwable th2) {
            if (yVar == null || yVar.getCause() == th2) {
                return new androidx.fragment.app.y("Exception in undelivered element handler for " + obj, th2, 18);
            }
            lq.f.a(yVar, th2);
        }
        return yVar;
    }

    public static boolean g(Context context, Intent intent) {
        List<ResolveInfo> queryBroadcastReceivers = context.getPackageManager().queryBroadcastReceivers(intent, 0);
        return queryBroadcastReceivers != null && queryBroadcastReceivers.size() > 0;
    }

    public static void h(String str) {
        if (str.length() <= 10000) {
            return;
        }
        throw new NumberFormatException("Number string too large: " + str.substring(0, 30) + "...");
    }

    public static final void i(n2 n2Var, ArrayList arrayList, int i2) {
        if (n2Var.i(i2)) {
            arrayList.add(n2Var.k(i2));
            return;
        }
        int i3 = i2 + 1;
        int h2 = n2Var.h(i2) + i2;
        while (i3 < h2) {
            i(n2Var, arrayList, i3);
            i3 += n2Var.h(i3);
        }
    }

    public static final void j(String str) {
        throw new k(g0.b.k("Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (", str, "). Please report to Google or use https://goo.gle/compose-feedback"));
    }

    public static final void k(String str) {
        throw new k(g0.b.k("Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (", str, "). Please report to Google or use https://goo.gle/compose-feedback"));
    }

    public static final void l(q2 q2Var, u uVar) {
        int i2;
        int i3;
        int i4;
        int i5 = q2Var.t;
        int i6 = q2Var.f677u;
        while (i5 < i6) {
            Object w = q2Var.w(i5);
            if (w instanceof j) {
                uVar.e((j) w, q2Var.l() - q2Var.G(q2Var.b, q2Var.m(i5)), -1, -1);
            }
            int G = q2Var.G(q2Var.b, q2Var.m(i5));
            int i7 = i5 + 1;
            int e3 = q2Var.e(q2Var.b, q2Var.m(i7));
            int i9 = G;
            while (i9 < e3) {
                int i10 = i9 - G;
                Object obj = q2Var.c[q2Var.f(i9)];
                boolean z = obj instanceof j2;
                e eVar = qh.b.M;
                if (z) {
                    j2 j2Var = (j2) obj;
                    i2 i2Var = j2Var.a;
                    if (i2Var instanceof m) {
                        i2 = i6;
                    } else {
                        int f2 = q2Var.f(q2Var.H(i5, i10));
                        Object[] objArr = q2Var.c;
                        i2 = i6;
                        Object obj2 = objArr[f2];
                        objArr[f2] = eVar;
                        if (!(obj == obj2)) {
                            j("Slot table is out of sync");
                            throw null;
                        }
                        int l = q2Var.l() - i10;
                        c cVar = j2Var.b;
                        if (cVar == null || !cVar.a()) {
                            i3 = -1;
                            i4 = -1;
                        } else {
                            i3 = cVar.a;
                            if (i3 < 0) {
                                i3 += q2Var.k();
                            }
                            i4 = q2Var.l() - q2Var.e(q2Var.b, q2Var.m(q2Var.n(i3) + i3));
                        }
                        uVar.e(i2Var, l, i3, i4);
                    }
                } else {
                    i2 = i6;
                    if (obj instanceof y1) {
                        int f5 = q2Var.f(q2Var.H(i5, i10));
                        Object[] objArr2 = q2Var.c;
                        Object obj3 = objArr2[f5];
                        objArr2[f5] = eVar;
                        if (!(obj == obj3)) {
                            j("Slot table is out of sync");
                            throw null;
                        }
                        ((y1) obj).d();
                    } else {
                        continue;
                    }
                }
                i9++;
                i6 = i2;
            }
            i5 = i7;
        }
    }

    public static boolean m(File file) {
        if (file == null || !file.exists()) {
            return true;
        }
        if (file.isFile()) {
            return file.delete();
        }
        File[] listFiles = file.listFiles();
        if (listFiles == null) {
            return true;
        }
        for (File file2 : listFiles) {
            if (!m(file2)) {
                return false;
            }
        }
        return file.delete();
    }

    public static final float n(float[] fArr, float[] fArr2) {
        int length = fArr.length;
        float f2 = 0.0f;
        for (int i2 = 0; i2 < length; i2++) {
            f2 += fArr[i2] * fArr2[i2];
        }
        return f2;
    }

    public static final float o(float[] fArr, int i2, float[] fArr2, int i3) {
        int i4 = i2 * 4;
        return (fArr[i4 + 3] * fArr2[12 + i3]) + (fArr[i4 + 2] * fArr2[8 + i3]) + (fArr[i4 + 1] * fArr2[4 + i3]) + (fArr[i4 + 0] * fArr2[0 + i3]);
    }

    public static final rq.a p(Enum[] enumArr) {
        Intrinsics.checkNotNullParameter(enumArr, uPvqkFnZlEUle.muyztMDy);
        return new rq.a(enumArr);
    }

    public static final int q(int i2, List list) {
        int size = list.size() - 1;
        int i3 = 0;
        while (i3 <= size) {
            int i4 = (i3 + size) >>> 1;
            int h2 = Intrinsics.h(((w0) list.get(i4)).b, i2);
            if (h2 < 0) {
                i3 = i4 + 1;
            } else {
                if (h2 <= 0) {
                    return i4;
                }
                size = i4 - 1;
            }
        }
        return -(i3 + 1);
    }

    public static final pr.b r(sr.b bVar, rr.b bVar2, String str) {
        Intrinsics.checkNotNullParameter(bVar, "<this>");
        Intrinsics.checkNotNullParameter(bVar2, "decoder");
        bVar.getClass();
        Intrinsics.checkNotNullParameter(bVar2, "decoder");
        vr.a a3 = bVar2.a();
        a3.getClass();
        er.c cVar = ((pr.f) bVar).a;
        Intrinsics.checkNotNullParameter(cVar, "baseClass");
        Map map = (Map) a3.d.get(cVar);
        pr.c cVar2 = map != null ? (pr.c) map.get(str) : null;
        if (!(cVar2 instanceof pr.c)) {
            cVar2 = null;
        }
        if (cVar2 == null) {
            Object obj = a3.e.get(cVar);
            Function1 function1 = com.google.firebase.messaging.e.z(1, obj) ? (Function1) obj : null;
            cVar2 = function1 != null ? (pr.b) function1.invoke(str) : null;
        }
        if (cVar2 != null) {
            return cVar2;
        }
        lh.d.k0(str, cVar);
        throw null;
    }

    public static final pr.c s(sr.b r5, rr.e r6, java.lang.Object r7) {
        throw new UnsupportedOperationException("Method not decompiled: w1.y0.s(sr.b, rr.e, java.lang.Object):pr.c");
    }

    public static h.k t(android.content.Context r25, androidx.appcompat.widget.s r26) {
        throw new UnsupportedOperationException("Method not decompiled: w1.y0.t(android.content.Context, androidx.appcompat.widget.s):h.k");
    }

    public static PackageInfo u(Context context, int i2, io.sentry.f0 f0Var, io.sentry.android.core.z zVar) {
        try {
            zVar.getClass();
            return Build.VERSION.SDK_INT >= 33 ? p.b(context.getPackageManager(), context.getPackageName(), p.f(i2)) : context.getPackageManager().getPackageInfo(context.getPackageName(), i2);
        } catch (Throwable th2) {
            f0Var.b(o2.ERROR, "Error getting package info.", th2);
            return null;
        }
    }

    public static String v(PackageInfo packageInfo, io.sentry.android.core.z zVar) {
        zVar.getClass();
        return Build.VERSION.SDK_INT >= 28 ? Long.toString(com.adapty.internal.utils.c.e(packageInfo)) : Integer.toString(packageInfo.versionCode);
    }

    public static final pr.c w(Object obj, pr.c... cVarArr) {
        Class[] clsArr;
        try {
            if (cVarArr.length == 0) {
                clsArr = new Class[0];
            } else {
                int length = cVarArr.length;
                Class[] clsArr2 = new Class[length];
                for (int i2 = 0; i2 < length; i2++) {
                    clsArr2[i2] = pr.c.class;
                }
                clsArr = clsArr2;
            }
            Object invoke = obj.getClass().getDeclaredMethod("serializer", (Class[]) Arrays.copyOf(clsArr, clsArr.length)).invoke(obj, Arrays.copyOf(cVarArr, cVarArr.length));
            if (invoke instanceof pr.c) {
                return (pr.c) invoke;
            }
        } catch (NoSuchMethodException unused) {
        } catch (InvocationTargetException e3) {
            Throwable cause = e3.getCause();
            if (cause == null) {
                throw e3;
            }
            String message = cause.getMessage();
            if (message == null) {
                message = e3.getMessage();
            }
            throw new InvocationTargetException(cause, message);
        }
        return null;
    }

    public static boolean x(Context context) {
        List<ActivityManager.RunningAppProcessInfo> runningAppProcesses;
        try {
            Object systemService = context.getSystemService("activity");
            if (!(systemService instanceof ActivityManager) || (runningAppProcesses = ((ActivityManager) systemService).getRunningAppProcesses()) == null) {
                return false;
            }
            int myPid = Process.myPid();
            for (ActivityManager.RunningAppProcessInfo runningAppProcessInfo : runningAppProcesses) {
                if (runningAppProcessInfo.pid == myPid) {
                    return runningAppProcessInfo.importance == 100;
                }
            }
            return false;
        } catch (Throwable unused) {
            return false;
        }
    }

    public static void y(Throwable th2) {
        f fVar = j;
        if (th2 == null) {
            th2 = new NullPointerException("onError called with null. Null values are generally not allowed in 2.x operators and sources.");
        } else {
            if (!((th2 instanceof pp.d) || (th2 instanceof pp.c) || (th2 instanceof IllegalStateException) || (th2 instanceof NullPointerException) || (th2 instanceof IllegalArgumentException) || (th2 instanceof pp.b))) {
                th2 = new pp.e(th2);
            }
        }
        if (fVar != null) {
            try {
                fVar.a(th2);
                return;
            } catch (Throwable th3) {
                th3.printStackTrace();
                Thread currentThread = Thread.currentThread();
                currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th3);
            }
        }
        th2.printStackTrace();
        Thread currentThread2 = Thread.currentThread();
        currentThread2.getUncaughtExceptionHandler().uncaughtException(currentThread2, th2);
    }

    public static void z(Runnable runnable) {
        if (runnable == null) {
            throw new NullPointerException("run is null");
        }
    }

    public void A(long j3) {
    }

    public void H(u1 u1Var) {
    }
}