CONECTA PRO v4.2.8版本的 MD5 值为:ad88cf9e66d8cdaae8c40233e50eb389

以下内容为反编译后的 a.java 源代码,内容仅作参考


package z4;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.Keyframe;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.os.Build;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Base64;
import android.util.TypedValue;
import android.util.Xml;
import android.view.InflateException;
import android.view.View;
import android.view.animation.AnimationUtils;
import com.bumptech.glide.c;
import com.bumptech.glide.d;
import com.google.android.gms.internal.measurement.m4;
import com.v2ray.ang.dto.V2rayConfig;
import da.m;
import da.n;
import f6.h;
import j.i0;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import k.a4;
import k.y3;
import n0.e;
import v.f;
import z8.b1;
public abstract class a {
    public static Context f10832a;
    public static Boolean f10833b;
    public static final e f10834c = new e("session_id");
    public static final n5.e f10835d = new n5.e("CONDITION_FALSE", 3);
    public static final int[] f10836e = new int[0];
    public static final Object[] f10837f = new Object[0];

    public static int a(int i10, int i11, int[] iArr) {
        int i12 = i10 - 1;
        int i13 = 0;
        while (i13 <= i12) {
            int i14 = (i13 + i12) >>> 1;
            int i15 = iArr[i14];
            if (i15 < i11) {
                i13 = i14 + 1;
            } else if (i15 <= i11) {
                return i14;
            } else {
                i12 = i14 - 1;
            }
        }
        return ~i13;
    }

    public static int b(long[] jArr, int i10, long j10) {
        int i11 = i10 - 1;
        int i12 = 0;
        while (i12 <= i11) {
            int i13 = (i12 + i11) >>> 1;
            int i14 = (jArr[i13] > j10 ? 1 : (jArr[i13] == j10 ? 0 : -1));
            if (i14 < 0) {
                i12 = i13 + 1;
            } else if (i14 <= 0) {
                return i13;
            } else {
                i11 = i13 - 1;
            }
        }
        return ~i12;
    }

    public static Animator c(Context context, Resources resources, Resources.Theme theme, XmlResourceParser xmlResourceParser, AttributeSet attributeSet, AnimatorSet animatorSet, int i10) {
        PropertyValuesHolder[] propertyValuesHolderArr;
        AttributeSet attributeSet2;
        String str;
        PropertyValuesHolder propertyValuesHolder;
        int size;
        int i11;
        float f10;
        String str2;
        int i12;
        ObjectAnimator objectAnimator;
        Resources resources2 = resources;
        Resources.Theme theme2 = theme;
        int depth = xmlResourceParser.getDepth();
        ValueAnimator valueAnimator = null;
        ArrayList arrayList = null;
        while (true) {
            int next = xmlResourceParser.next();
            int i13 = 3;
            boolean z10 = false;
            if (next == 3 && xmlResourceParser.getDepth() <= depth) {
                break;
            }
            int i14 = 1;
            if (next == 1) {
                break;
            }
            int i15 = 2;
            if (next == 2) {
                String name = xmlResourceParser.getName();
                if (name.equals("objectAnimator")) {
                    ObjectAnimator objectAnimator2 = new ObjectAnimator();
                    l(context, resources, theme, attributeSet, objectAnimator2, xmlResourceParser);
                    objectAnimator = objectAnimator2;
                } else if (name.equals("animator")) {
                    objectAnimator = l(context, resources, theme, attributeSet, null, xmlResourceParser);
                } else {
                    if (name.equals("set")) {
                        AnimatorSet animatorSet2 = new AnimatorSet();
                        TypedArray O = c.O(resources2, theme2, attributeSet, h.f4032n);
                        c(context, resources, theme, xmlResourceParser, attributeSet, animatorSet2, c.H(O, xmlResourceParser, "ordering", 0, 0));
                        O.recycle();
                        valueAnimator = animatorSet2;
                    } else {
                        String str3 = "propertyValuesHolder";
                        if (!name.equals("propertyValuesHolder")) {
                            throw new RuntimeException("Unknown animator name: " + xmlResourceParser.getName());
                        }
                        AttributeSet asAttributeSet = Xml.asAttributeSet(xmlResourceParser);
                        ArrayList arrayList2 = null;
                        while (true) {
                            int eventType = xmlResourceParser.getEventType();
                            if (eventType == i13 || eventType == i14) {
                                break;
                            } else if (eventType != i15) {
                                xmlResourceParser.next();
                            } else {
                                if (xmlResourceParser.getName().equals(str3)) {
                                    TypedArray O2 = c.O(resources2, theme2, asAttributeSet, h.f4033o);
                                    String I = c.I(O2, xmlResourceParser, "propertyName", i13);
                                    int H = c.H(O2, xmlResourceParser, "valueType", i15, 4);
                                    int i16 = H;
                                    ArrayList arrayList3 = null;
                                    while (true) {
                                        int next2 = xmlResourceParser.next();
                                        attributeSet2 = asAttributeSet;
                                        if (next2 == i13 || next2 == 1) {
                                            break;
                                        }
                                        if (xmlResourceParser.getName().equals("keyframe")) {
                                            int[] iArr = h.f4034p;
                                            if (i16 == 4) {
                                                TypedArray O3 = c.O(resources2, theme2, Xml.asAttributeSet(xmlResourceParser), iArr);
                                                TypedValue peekValue = !c.L(xmlResourceParser, "value") ? null : O3.peekValue(0);
                                                i16 = ((peekValue != null) && h(peekValue.type)) ? 3 : 0;
                                                O3.recycle();
                                            }
                                            TypedArray O4 = c.O(resources2, theme2, Xml.asAttributeSet(xmlResourceParser), iArr);
                                            str2 = str3;
                                            float G = c.G(O4, xmlResourceParser, "fraction", 3, -1.0f);
                                            TypedValue peekValue2 = !c.L(xmlResourceParser, "value") ? null : O4.peekValue(0);
                                            boolean z11 = peekValue2 != null;
                                            if (i16 == 4) {
                                                i12 = (z11 && h(peekValue2.type)) ? 3 : 0;
                                            } else {
                                                i12 = i16;
                                            }
                                            Keyframe ofInt = z11 ? i12 != 0 ? (i12 == 1 || i12 == 3) ? Keyframe.ofInt(G, c.H(O4, xmlResourceParser, "value", 0, 0)) : null : Keyframe.ofFloat(G, c.G(O4, xmlResourceParser, "value", 0, 0.0f)) : i12 == 0 ? Keyframe.ofFloat(G) : Keyframe.ofInt(G);
                                            int resourceId = !c.L(xmlResourceParser, "interpolator") ? 0 : O4.getResourceId(1, 0);
                                            if (resourceId > 0) {
                                                ofInt.setInterpolator(AnimationUtils.loadInterpolator(context, resourceId));
                                            }
                                            O4.recycle();
                                            ArrayList arrayList4 = arrayList3;
                                            if (ofInt != null) {
                                                if (arrayList4 == null) {
                                                    arrayList4 = new ArrayList();
                                                }
                                                arrayList4.add(ofInt);
                                                arrayList3 = arrayList4;
                                            }
                                            xmlResourceParser.next();
                                        } else {
                                            str2 = str3;
                                        }
                                        resources2 = resources;
                                        theme2 = theme;
                                        asAttributeSet = attributeSet2;
                                        str3 = str2;
                                        i13 = 3;
                                    }
                                    str = str3;
                                    ArrayList arrayList5 = arrayList3;
                                    if (arrayList5 == null || (size = arrayList5.size()) <= 0) {
                                        i13 = 3;
                                        propertyValuesHolder = null;
                                    } else {
                                        Keyframe keyframe = (Keyframe) arrayList5.get(0);
                                        Keyframe keyframe2 = (Keyframe) arrayList5.get(size - 1);
                                        float fraction = keyframe2.getFraction();
                                        if (fraction < 1.0f) {
                                            if (fraction < 0.0f) {
                                                keyframe2.setFraction(1.0f);
                                            } else {
                                                arrayList5.add(arrayList5.size(), d(keyframe2, 1.0f));
                                                size++;
                                            }
                                        }
                                        float fraction2 = keyframe.getFraction();
                                        if (fraction2 != 0.0f) {
                                            if (fraction2 < 0.0f) {
                                                keyframe.setFraction(0.0f);
                                            } else {
                                                arrayList5.add(0, d(keyframe, 0.0f));
                                                size++;
                                            }
                                        }
                                        Keyframe[] keyframeArr = new Keyframe[size];
                                        arrayList5.toArray(keyframeArr);
                                        int i17 = 0;
                                        while (i17 < size) {
                                            Keyframe keyframe3 = keyframeArr[i17];
                                            if (keyframe3.getFraction() < 0.0f) {
                                                if (i17 == 0) {
                                                    f10 = 0.0f;
                                                } else {
                                                    int i18 = size - 1;
                                                    if (i17 == i18) {
                                                        f10 = 1.0f;
                                                    } else {
                                                        int i19 = i17 + 1;
                                                        int i20 = i17;
                                                        while (i19 < i18 && keyframeArr[i19].getFraction() < 0.0f) {
                                                            int i21 = i19;
                                                            i19++;
                                                            i20 = i21;
                                                        }
                                                        float fraction3 = (keyframeArr[i20 + 1].getFraction() - keyframeArr[i17 - 1].getFraction()) / ((i20 - i17) + 2);
                                                        int i22 = i17;
                                                        while (true) {
                                                            i11 = size;
                                                            if (i22 <= i20) {
                                                                keyframeArr[i22].setFraction(keyframeArr[i22 - 1].getFraction() + fraction3);
                                                                i22++;
                                                                size = i11;
                                                                i20 = i20;
                                                            }
                                                        }
                                                        i17++;
                                                        size = i11;
                                                    }
                                                }
                                                keyframe3.setFraction(f10);
                                            }
                                            i11 = size;
                                            i17++;
                                            size = i11;
                                        }
                                        propertyValuesHolder = PropertyValuesHolder.ofKeyframe(I, keyframeArr);
                                        i13 = 3;
                                        if (i16 == 3) {
                                            propertyValuesHolder.setEvaluator(j1.e.f6165a);
                                        }
                                    }
                                    if (propertyValuesHolder == null) {
                                        propertyValuesHolder = f(O2, H, 0, 1, I);
                                    }
                                    if (propertyValuesHolder != null) {
                                        if (arrayList2 == null) {
                                            arrayList2 = new ArrayList();
                                        }
                                        arrayList2.add(propertyValuesHolder);
                                    }
                                    O2.recycle();
                                } else {
                                    attributeSet2 = asAttributeSet;
                                    str = str3;
                                }
                                xmlResourceParser.next();
                                resources2 = resources;
                                theme2 = theme;
                                asAttributeSet = attributeSet2;
                                str3 = str;
                                i14 = 1;
                                i15 = 2;
                            }
                        }
                        if (arrayList2 != null) {
                            int size2 = arrayList2.size();
                            propertyValuesHolderArr = new PropertyValuesHolder[size2];
                            for (int i23 = 0; i23 < size2; i23++) {
                                propertyValuesHolderArr[i23] = (PropertyValuesHolder) arrayList2.get(i23);
                            }
                        } else {
                            propertyValuesHolderArr = null;
                        }
                        if (propertyValuesHolderArr != null && (valueAnimator instanceof ValueAnimator)) {
                            valueAnimator.setValues(propertyValuesHolderArr);
                        }
                        z10 = true;
                    }
                    if (animatorSet != null && !z10) {
                        if (arrayList == null) {
                            arrayList = new ArrayList();
                        }
                        arrayList.add(valueAnimator);
                    }
                    resources2 = resources;
                    theme2 = theme;
                }
                valueAnimator = objectAnimator;
                if (animatorSet != null) {
                    if (arrayList == null) {
                    }
                    arrayList.add(valueAnimator);
                }
                resources2 = resources;
                theme2 = theme;
            }
        }
    }

    public static Keyframe d(Keyframe keyframe, float f10) {
        return keyframe.getType() == Float.TYPE ? Keyframe.ofFloat(f10) : keyframe.getType() == Integer.TYPE ? Keyframe.ofInt(f10) : Keyframe.ofObject(f10);
    }

    public static String e(String str) {
        boolean z10;
        CharSequence charSequence;
        boolean z11;
        String n8 = n(str);
        if (n8 != null) {
            return n8;
        }
        if (str.length() > 0 && m4.g(str.charAt(m.p0(str)), '=', false)) {
            z10 = true;
        } else {
            z10 = false;
        }
        if (z10) {
            char[] cArr = {'='};
            int length = str.length() - 1;
            if (length >= 0) {
                while (true) {
                    int i10 = length - 1;
                    char charAt = str.charAt(length);
                    int i11 = 0;
                    while (true) {
                        if (i11 < 1) {
                            if (charAt == cArr[i11]) {
                                break;
                            }
                            i11++;
                        } else {
                            i11 = -1;
                            break;
                        }
                    }
                    if (i11 >= 0) {
                        z11 = true;
                    } else {
                        z11 = false;
                    }
                    if (!z11) {
                        charSequence = str.subSequence(0, length + 1);
                        break;
                    } else if (i10 < 0) {
                        break;
                    } else {
                        length = i10;
                    }
                }
            }
            charSequence = "";
            String n10 = n(charSequence.toString());
            if (n10 != null) {
                return n10;
            }
        }
        return "";
    }

    public static PropertyValuesHolder f(TypedArray typedArray, int i10, int i11, int i12, String str) {
        PropertyValuesHolder ofFloat;
        PropertyValuesHolder ofObject;
        TypedValue peekValue = typedArray.peekValue(i11);
        boolean z10 = peekValue != null;
        int i13 = z10 ? peekValue.type : 0;
        TypedValue peekValue2 = typedArray.peekValue(i12);
        boolean z11 = peekValue2 != null;
        int i14 = z11 ? peekValue2.type : 0;
        if (i10 == 4) {
            i10 = ((z10 && h(i13)) || (z11 && h(i14))) ? 3 : 0;
        }
        boolean z12 = i10 == 0;
        PropertyValuesHolder propertyValuesHolder = null;
        if (i10 != 2) {
            j1.e eVar = i10 == 3 ? j1.e.f6165a : null;
            if (z12) {
                if (z10) {
                    float dimension = i13 == 5 ? typedArray.getDimension(i11, 0.0f) : typedArray.getFloat(i11, 0.0f);
                    if (z11) {
                        ofFloat = PropertyValuesHolder.ofFloat(str, dimension, i14 == 5 ? typedArray.getDimension(i12, 0.0f) : typedArray.getFloat(i12, 0.0f));
                    } else {
                        ofFloat = PropertyValuesHolder.ofFloat(str, dimension);
                    }
                } else {
                    ofFloat = PropertyValuesHolder.ofFloat(str, i14 == 5 ? typedArray.getDimension(i12, 0.0f) : typedArray.getFloat(i12, 0.0f));
                }
                propertyValuesHolder = ofFloat;
            } else if (z10) {
                int dimension2 = i13 == 5 ? (int) typedArray.getDimension(i11, 0.0f) : h(i13) ? typedArray.getColor(i11, 0) : typedArray.getInt(i11, 0);
                if (z11) {
                    propertyValuesHolder = PropertyValuesHolder.ofInt(str, dimension2, i14 == 5 ? (int) typedArray.getDimension(i12, 0.0f) : h(i14) ? typedArray.getColor(i12, 0) : typedArray.getInt(i12, 0));
                } else {
                    propertyValuesHolder = PropertyValuesHolder.ofInt(str, dimension2);
                }
            } else if (z11) {
                propertyValuesHolder = PropertyValuesHolder.ofInt(str, i14 == 5 ? (int) typedArray.getDimension(i12, 0.0f) : h(i14) ? typedArray.getColor(i12, 0) : typedArray.getInt(i12, 0));
            }
            if (propertyValuesHolder == null || eVar == null) {
                return propertyValuesHolder;
            }
            propertyValuesHolder.setEvaluator(eVar);
            return propertyValuesHolder;
        }
        String string = typedArray.getString(i11);
        String string2 = typedArray.getString(i12);
        f[] f10 = d.f(string);
        f[] f11 = d.f(string2);
        if (f10 == null && f11 == null) {
            return null;
        }
        if (f10 == null) {
            if (f11 != null) {
                return PropertyValuesHolder.ofObject(str, new j1.d(), f11);
            }
            return null;
        }
        j1.d dVar = new j1.d();
        if (f11 == null) {
            ofObject = PropertyValuesHolder.ofObject(str, dVar, f10);
        } else if (!d.c(f10, f11)) {
            throw new InflateException(" Can't morph from " + string + " to " + string2);
        } else {
            ofObject = PropertyValuesHolder.ofObject(str, dVar, f10, f11);
        }
        return ofObject;
    }

    public static List g() {
        boolean z10;
        ArrayList arrayList = new ArrayList();
        for (Object obj : m.K0("1.1.1.1,1.0.0.1", new String[]{","}, 0, 6)) {
            String str = (String) obj;
            boolean z11 = true;
            if (!k(str)) {
                if (!m.M0(str, "https", false) && !m.M0(str, V2rayConfig.DEFAULT_NETWORK, false) && !m.M0(str, "quic", false)) {
                    z10 = false;
                } else {
                    z10 = true;
                }
                if (!z10) {
                    z11 = false;
                }
            }
            if (z11) {
                arrayList.add(obj);
            }
        }
        if (arrayList.isEmpty()) {
            return t5.b.h("1.1.1.1,1.0.0.1");
        }
        return arrayList;
    }

    public static boolean h(int i10) {
        return i10 >= 28 && i10 <= 31;
    }

    public static synchronized boolean i(Context context) {
        Boolean bool;
        boolean isInstantApp;
        Boolean bool2;
        synchronized (a.class) {
            Context applicationContext = context.getApplicationContext();
            Context context2 = f10832a;
            if (context2 != null && (bool2 = f10833b) != null && context2 == applicationContext) {
                return bool2.booleanValue();
            }
            f10833b = null;
            if (!d.u()) {
                try {
                    context.getClassLoader().loadClass("com.google.android.instantapps.supervisor.InstantAppsRuntime");
                    f10833b = Boolean.TRUE;
                } catch (ClassNotFoundException unused) {
                    bool = Boolean.FALSE;
                }
                f10832a = applicationContext;
                return f10833b.booleanValue();
            }
            isInstantApp = applicationContext.getPackageManager().isInstantApp();
            bool = Boolean.valueOf(isInstantApp);
            f10833b = bool;
            f10832a = applicationContext;
            return f10833b.booleanValue();
        }
    }

    public static boolean j(String str) {
        b1.o("value", str);
        int i10 = 0;
        if (m.t0(str, "[", 0, false, 6) == 0 && m.x0(str, "]", 6) > 0) {
            boolean z10 = true;
            String S0 = n.S0(1, str);
            int length = S0.length() - m.x0(S0, "]", 6);
            if (length < 0) {
                z10 = false;
            }
            if (z10) {
                int length2 = S0.length() - length;
                if (length2 >= 0) {
                    i10 = length2;
                }
                str = n.T0(i10, S0);
            } else {
                throw new IllegalArgumentException(i0.o("Requested character count ", length, " is less than zero.").toString());
            }
        }
        Pattern compile = Pattern.compile("^((?:[0-9A-Fa-f]{1,4}))?((?::[0-9A-Fa-f]{1,4}))*::((?:[0-9A-Fa-f]{1,4}))?((?::[0-9A-Fa-f]{1,4}))*|((?:[0-9A-Fa-f]{1,4}))((?::[0-9A-Fa-f]{1,4})){7}$");
        b1.n("compile(pattern)", compile);
        return compile.matcher(str).matches();
    }

    public static boolean k(String str) {
        b1.o("value", str);
        Pattern compile = Pattern.compile("^([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$");
        b1.n("compile(pattern)", compile);
        if (!compile.matcher(str).matches() && !j(str)) {
            return false;
        }
        return true;
    }

    public static ValueAnimator l(Context context, Resources resources, Resources.Theme theme, AttributeSet attributeSet, ObjectAnimator objectAnimator, XmlResourceParser xmlResourceParser) {
        ValueAnimator valueAnimator;
        ValueAnimator valueAnimator2;
        TypedArray typedArray;
        TypedArray typedArray2;
        ValueAnimator valueAnimator3;
        PropertyValuesHolder propertyValuesHolder;
        PropertyValuesHolder propertyValuesHolder2;
        boolean z10;
        int i10;
        boolean z11;
        int i11;
        TypedArray O = c.O(resources, theme, attributeSet, h.f4031m);
        TypedArray O2 = c.O(resources, theme, attributeSet, h.f4035q);
        if (objectAnimator == null) {
            valueAnimator = new ValueAnimator();
        } else {
            valueAnimator = objectAnimator;
        }
        long H = c.H(O, xmlResourceParser, "duration", 1, 300);
        int i12 = 0;
        long H2 = c.H(O, xmlResourceParser, "startOffset", 2, 0);
        int H3 = c.H(O, xmlResourceParser, "valueType", 7, 4);
        if (c.L(xmlResourceParser, "valueFrom") && c.L(xmlResourceParser, "valueTo")) {
            if (H3 == 4) {
                TypedValue peekValue = O.peekValue(5);
                if (peekValue != null) {
                    z10 = true;
                } else {
                    z10 = false;
                }
                if (z10) {
                    i10 = peekValue.type;
                } else {
                    i10 = 0;
                }
                TypedValue peekValue2 = O.peekValue(6);
                if (peekValue2 != null) {
                    z11 = true;
                } else {
                    z11 = false;
                }
                if (z11) {
                    i11 = peekValue2.type;
                } else {
                    i11 = 0;
                }
                if ((z10 && h(i10)) || (z11 && h(i11))) {
                    H3 = 3;
                } else {
                    H3 = 0;
                }
            }
            PropertyValuesHolder f10 = f(O, H3, 5, 6, "");
            if (f10 != null) {
                valueAnimator.setValues(f10);
            }
        }
        valueAnimator.setDuration(H);
        valueAnimator.setStartDelay(H2);
        valueAnimator.setRepeatCount(c.H(O, xmlResourceParser, "repeatCount", 3, 0));
        valueAnimator.setRepeatMode(c.H(O, xmlResourceParser, "repeatMode", 4, 1));
        if (O2 != null) {
            ObjectAnimator objectAnimator2 = (ObjectAnimator) valueAnimator;
            String I = c.I(O2, xmlResourceParser, "pathData", 1);
            if (I != null) {
                String I2 = c.I(O2, xmlResourceParser, "propertyXName", 2);
                String I3 = c.I(O2, xmlResourceParser, "propertyYName", 3);
                if (I2 == null && I3 == null) {
                    throw new InflateException(O2.getPositionDescription() + " propertyXName or propertyYName is needed for PathData");
                }
                Path g10 = d.g(I);
                PathMeasure pathMeasure = new PathMeasure(g10, false);
                ArrayList arrayList = new ArrayList();
                arrayList.add(Float.valueOf(0.0f));
                float f11 = 0.0f;
                do {
                    f11 += pathMeasure.getLength();
                    arrayList.add(Float.valueOf(f11));
                } while (pathMeasure.nextContour());
                PathMeasure pathMeasure2 = new PathMeasure(g10, false);
                int min = Math.min(100, ((int) (f11 / 0.5f)) + 1);
                float[] fArr = new float[min];
                float[] fArr2 = new float[min];
                float[] fArr3 = new float[2];
                float f12 = f11 / (min - 1);
                valueAnimator2 = valueAnimator;
                typedArray = O;
                int i13 = 0;
                float f13 = 0.0f;
                while (true) {
                    propertyValuesHolder = null;
                    if (i12 >= min) {
                        break;
                    }
                    int i14 = min;
                    pathMeasure2.getPosTan(f13 - ((Float) arrayList.get(i13)).floatValue(), fArr3, null);
                    fArr[i12] = fArr3[0];
                    fArr2[i12] = fArr3[1];
                    f13 += f12;
                    int i15 = i13 + 1;
                    if (i15 < arrayList.size() && f13 > ((Float) arrayList.get(i15)).floatValue()) {
                        pathMeasure2.nextContour();
                        i13 = i15;
                    }
                    i12++;
                    min = i14;
                }
                if (I2 != null) {
                    propertyValuesHolder2 = PropertyValuesHolder.ofFloat(I2, fArr);
                } else {
                    propertyValuesHolder2 = null;
                }
                if (I3 != null) {
                    propertyValuesHolder = PropertyValuesHolder.ofFloat(I3, fArr2);
                }
                if (propertyValuesHolder2 == null) {
                    i12 = 0;
                    objectAnimator2.setValues(propertyValuesHolder);
                } else {
                    i12 = 0;
                    if (propertyValuesHolder == null) {
                        objectAnimator2.setValues(propertyValuesHolder2);
                    } else {
                        objectAnimator2.setValues(propertyValuesHolder2, propertyValuesHolder);
                    }
                }
            } else {
                valueAnimator2 = valueAnimator;
                typedArray = O;
                objectAnimator2.setPropertyName(c.I(O2, xmlResourceParser, "propertyName", 0));
            }
        } else {
            valueAnimator2 = valueAnimator;
            typedArray = O;
        }
        if (!c.L(xmlResourceParser, "interpolator")) {
            typedArray2 = typedArray;
        } else {
            typedArray2 = typedArray;
            i12 = typedArray2.getResourceId(i12, i12);
        }
        if (i12 > 0) {
            valueAnimator3 = valueAnimator2;
            valueAnimator3.setInterpolator(AnimationUtils.loadInterpolator(context, i12));
        } else {
            valueAnimator3 = valueAnimator2;
        }
        typedArray2.recycle();
        if (O2 != null) {
            O2.recycle();
        }
        return valueAnimator3;
    }

    public static void m(View view, CharSequence charSequence) {
        if (Build.VERSION.SDK_INT >= 26) {
            y3.a(view, charSequence);
            return;
        }
        a4 a4Var = a4.B;
        if (a4Var != null && a4Var.f6429r == view) {
            a4.b(null);
        }
        if (TextUtils.isEmpty(charSequence)) {
            a4 a4Var2 = a4.C;
            if (a4Var2 != null && a4Var2.f6429r == view) {
                a4Var2.a();
            }
            view.setOnLongClickListener(null);
            view.setLongClickable(false);
            view.setOnHoverListener(null);
            return;
        }
        new a4(view, charSequence);
    }

    public static String n(String str) {
        try {
            byte[] decode = Base64.decode(str, 2);
            b1.n("decode(...)", decode);
            Charset forName = Charset.forName("UTF-8");
            b1.n("forName(charsetName)", forName);
            return new String(decode, forName);
        } catch (Exception e10) {
            e10.printStackTrace();
            try {
                byte[] decode2 = Base64.decode(str, 10);
                b1.n("decode(...)", decode2);
                Charset forName2 = Charset.forName("UTF-8");
                b1.n("forName(charsetName)", forName2);
                return new String(decode2, forName2);
            } catch (Exception e11) {
                e11.printStackTrace();
                return null;
            }
        }
    }

    public static String o(String str, String[] strArr, String[] strArr2) {
        int min = Math.min(strArr.length, strArr2.length);
        for (int i10 = 0; i10 < min; i10++) {
            String str2 = strArr[i10];
            if ((str == null && str2 == null) ? true : str == null ? false : str.equals(str2)) {
                return strArr2[i10];
            }
        }
        return null;
    }

    public static boolean p(byte b10) {
        return b10 > -65;
    }
}