package p037.p065.p066;

import android.annotation.SuppressLint;
import android.util.Log;
import android.util.Property;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import p037.p065.p066.AbstractC1819;
import p037.p065.p066.InterfaceC1822;
import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: މ.ރ.ށ.ގ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1826 implements Cloneable {

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public static final Class<?>[] f6105;

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public static final Class<?>[] f6106;

    /* JADX INFO: renamed from: ގ, reason: contains not printable characters */
    public static final Class<?>[] f6107;

    /* JADX INFO: renamed from: ޏ, reason: contains not printable characters */
    public static final HashMap<Class<?>, HashMap<String, Method>> f6108;

    /* JADX INFO: renamed from: ސ, reason: contains not printable characters */
    public static final HashMap<Class<?>, HashMap<String, Method>> f6109;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public String f6110;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public Property f6111;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public Method f6112;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public Method f6113;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public Class<?> f6114;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public InterfaceC1822 f6115;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public final Object[] f6116;

    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public InterfaceC1828 f6117;

    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public Object f6118;

    /* JADX INFO: renamed from: މ.ރ.ށ.ގ$֏, reason: contains not printable characters */
    public static class C1827 extends C1826 {

        /* JADX INFO: renamed from: ޑ, reason: contains not printable characters */
        public AbstractC1816 f6119;

        /* JADX INFO: renamed from: ޒ, reason: contains not printable characters */
        public InterfaceC1822.InterfaceC1823 f6120;

        /* JADX INFO: renamed from: ޓ, reason: contains not printable characters */
        public float f6121;

        public C1827(Property property, float... fArr) {
            super(property);
            super.mo3614(fArr);
            this.f6120 = (InterfaceC1822.InterfaceC1823) this.f6115;
            if (property instanceof AbstractC1816) {
                this.f6119 = (AbstractC1816) this.f6111;
            }
        }

        public C1827(String str, float... fArr) {
            super(str);
            super.mo3614(fArr);
            this.f6120 = (InterfaceC1822.InterfaceC1823) this.f6115;
        }

        @Override // p037.p065.p066.C1826
        public Object clone() {
            C1827 c1827 = (C1827) super.clone();
            c1827.f6120 = (InterfaceC1822.InterfaceC1823) c1827.f6115;
            return c1827;
        }

        @Override // p037.p065.p066.C1826
        public C1826 clone() {
            C1827 c1827 = (C1827) super.clone();
            c1827.f6120 = (InterfaceC1822.InterfaceC1823) c1827.f6115;
            return c1827;
        }

        @Override // p037.p065.p066.C1826
        /* JADX INFO: renamed from: ֏ */
        public void mo3612(Property property) {
            if (property instanceof AbstractC1816) {
                this.f6119 = (AbstractC1816) property;
            } else {
                this.f6111 = property;
            }
        }

        @Override // p037.p065.p066.C1826
        /* JADX INFO: renamed from: ֏ */
        public void mo3613(Object obj) {
            AbstractC1816 abstractC1816 = this.f6119;
            if (abstractC1816 != null) {
                abstractC1816.m3596(obj, this.f6121);
                return;
            }
            Property property = this.f6111;
            if (property != null) {
                property.set(obj, Float.valueOf(this.f6121));
                return;
            }
            if (this.f6112 != null) {
                try {
                    this.f6116[0] = Float.valueOf(this.f6121);
                    this.f6112.invoke(obj, this.f6116);
                } catch (IllegalAccessException e) {
                    Log.e("PropertyValuesHolder", e.toString());
                } catch (InvocationTargetException e2) {
                    Log.e("PropertyValuesHolder", e2.toString());
                }
            }
        }

        @Override // p037.p065.p066.C1826
        /* JADX INFO: renamed from: ֏ */
        public void mo3614(float... fArr) {
            super.mo3614(fArr);
            this.f6120 = (InterfaceC1822.InterfaceC1823) this.f6115;
        }

        @Override // p037.p065.p066.C1826
        /* JADX INFO: renamed from: ؠ */
        public Object mo3615() {
            return Float.valueOf(this.f6121);
        }

        @Override // p037.p065.p066.C1826
        /* JADX INFO: renamed from: ހ */
        public void mo3616(float f) {
            this.f6121 = this.f6120.mo3594(f);
        }
    }

    static {
        Class<?> cls = Integer.TYPE;
        f6105 = new Class[]{Float.TYPE, Float.class, Double.TYPE, cls, Double.class, Integer.class};
        Class<?> cls2 = Double.TYPE;
        f6106 = new Class[]{cls, Integer.class, Float.TYPE, cls2, Float.class, Double.class};
        f6107 = new Class[]{cls2, Double.class, Float.TYPE, Integer.TYPE, Float.class, Integer.class};
        f6108 = new HashMap<>();
        f6109 = new HashMap<>();
    }

    public C1826(Property property) {
        this.f6112 = null;
        this.f6113 = null;
        this.f6115 = null;
        this.f6116 = new Object[1];
        this.f6111 = property;
        if (property != null) {
            this.f6110 = property.getName();
        }
    }

    public C1826(String str) {
        this.f6112 = null;
        this.f6113 = null;
        this.f6115 = null;
        this.f6116 = new Object[1];
        this.f6110 = str;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static String m3607(String str, String str2) {
        if (str2 == null || str2.length() == 0) {
            return str;
        }
        return str + Character.toUpperCase(str2.charAt(0)) + str2.substring(1);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C1826 m3608(Property<?, Float> property, float... fArr) {
        return new C1827(property, fArr);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static C1826 m3609(String str, float... fArr) {
        return new C1827(str, fArr);
    }

    @Override // 
    @SuppressLint({"NoClone"})
    public C1826 clone() {
        try {
            C1826 c1826 = (C1826) super.clone();
            c1826.f6110 = this.f6110;
            c1826.f6111 = this.f6111;
            c1826.f6115 = this.f6115.clone();
            c1826.f6117 = this.f6117;
            return c1826;
        } catch (CloneNotSupportedException unused) {
            return null;
        }
    }

    public String toString() {
        return this.f6110 + ": " + this.f6115.toString();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Method m3610(Class<?> cls, String str, Class<?> cls2) {
        String strM3607 = m3607(str, this.f6110);
        Method method = null;
        if (cls2 == null) {
            try {
                method = cls.getMethod(strM3607, null);
            } catch (NoSuchMethodException unused) {
            }
        } else {
            Class<?>[] clsArr = new Class[1];
            for (Class<?> cls3 : cls2.equals(Float.class) ? f6105 : cls2.equals(Integer.class) ? f6106 : cls2.equals(Double.class) ? f6107 : new Class[]{cls2}) {
                clsArr[0] = cls3;
                try {
                    try {
                        Method method2 = cls.getMethod(strM3607, clsArr);
                        this.f6114 = cls3;
                        return method2;
                    } catch (NoSuchMethodException unused2) {
                        method = cls.getDeclaredMethod(strM3607, clsArr);
                        method.setAccessible(true);
                        this.f6114 = cls3;
                        return method;
                    }
                } catch (NoSuchMethodException unused3) {
                }
            }
        }
        if (method == null) {
            StringBuilder sbM4889 = C2803.m4889("Method ");
            sbM4889.append(m3607(str, this.f6110));
            sbM4889.append("() with type ");
            sbM4889.append(cls2);
            sbM4889.append(" not found on target class ");
            sbM4889.append(cls);
            Log.w("PropertyValuesHolder", sbM4889.toString());
        }
        return method;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Method m3611(Class<?> cls, HashMap<Class<?>, HashMap<String, Method>> map, String str, Class<?> cls2) {
        Method methodM3610;
        synchronized (map) {
            HashMap<String, Method> map2 = map.get(cls);
            boolean zContainsKey = false;
            methodM3610 = null;
            if (map2 != null && (zContainsKey = map2.containsKey(this.f6110))) {
                methodM3610 = map2.get(this.f6110);
            }
            if (!zContainsKey) {
                methodM3610 = m3610(cls, str, cls2);
                if (map2 == null) {
                    map2 = new HashMap<>();
                    map.put(cls, map2);
                }
                map2.put(this.f6110, methodM3610);
            }
        }
        return methodM3610;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo3612(Property property) {
        this.f6111 = property;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo3613(Object obj) {
        Property property = this.f6111;
        if (property != null) {
            property.set(obj, mo3615());
        }
        if (this.f6112 != null) {
            try {
                this.f6116[0] = mo3615();
                this.f6112.invoke(obj, this.f6116);
            } catch (IllegalAccessException e) {
                Log.e("PropertyValuesHolder", e.toString());
            } catch (InvocationTargetException e2) {
                Log.e("PropertyValuesHolder", e2.toString());
            }
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo3614(float... fArr) {
        this.f6114 = Float.TYPE;
        int length = fArr.length;
        AbstractC1819.C1820[] c1820Arr = new AbstractC1819.C1820[Math.max(length, 2)];
        boolean z = false;
        if (length == 1) {
            c1820Arr[0] = new AbstractC1819.C1820(0.0f);
            c1820Arr[1] = new AbstractC1819.C1820(1.0f, fArr[0]);
            if (Float.isNaN(fArr[0])) {
                z = true;
            }
        } else {
            c1820Arr[0] = new AbstractC1819.C1820(0.0f, fArr[0]);
            for (int i = 1; i < length; i++) {
                c1820Arr[i] = new AbstractC1819.C1820(i / (length - 1), fArr[i]);
                if (Float.isNaN(fArr[i])) {
                    z = true;
                }
            }
        }
        if (z) {
            Log.w("Animator", "Bad value (NaN) in float animator");
        }
        this.f6115 = new C1815(c1820Arr);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public Object mo3615() {
        return this.f6118;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public void mo3616(float f) {
        this.f6118 = this.f6115.mo3595(f);
    }
}
