package androidx.vectordrawable.graphics.drawable;

import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.Rect;
import android.graphics.Shader;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.VectorDrawable;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.util.Xml;
import androidx.core.content.res.k;
import androidx.core.graphics.d;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

/* JADX INFO: compiled from: VectorDrawableCompat.java */
/* JADX INFO: loaded from: classes.dex */
public class h extends androidx.vectordrawable.graphics.drawable.g {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    static final PorterDuff.Mode f3049n = PorterDuff.Mode.SRC_IN;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private C0044h f3050f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private PorterDuffColorFilter f3051g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private ColorFilter f3052h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private boolean f3053i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private boolean f3054j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private final float[] f3055k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    private final Matrix f3056l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private final Rect f3057m;

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static class b extends f {
        b() {
        }

        private void f(TypedArray typedArray, XmlPullParser xmlPullParser) {
            String string = typedArray.getString(0);
            if (string != null) {
                this.f3084b = string;
            }
            String string2 = typedArray.getString(1);
            if (string2 != null) {
                this.f3083a = androidx.core.graphics.d.d(string2);
            }
            this.f3085c = k.g(typedArray, xmlPullParser, "fillType", 2, 0);
        }

        @Override // androidx.vectordrawable.graphics.drawable.h.f
        public boolean c() {
            return true;
        }

        public void e(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            if (k.j(xmlPullParser, "pathData")) {
                TypedArray typedArrayK = k.k(resources, theme, attributeSet, androidx.vectordrawable.graphics.drawable.a.f3024d);
                f(typedArrayK, xmlPullParser);
                typedArrayK.recycle();
            }
        }

        b(b bVar) {
            super(bVar);
        }
    }

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static abstract class e {
        private e() {
        }

        public boolean a() {
            return false;
        }

        public boolean b(int[] iArr) {
            return false;
        }
    }

    /* JADX INFO: renamed from: androidx.vectordrawable.graphics.drawable.h$h, reason: collision with other inner class name */
    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static class C0044h extends Drawable.ConstantState {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        int f3104a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        g f3105b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        ColorStateList f3106c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        PorterDuff.Mode f3107d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        boolean f3108e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        Bitmap f3109f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        ColorStateList f3110g;

        /* JADX INFO: renamed from: h, reason: collision with root package name */
        PorterDuff.Mode f3111h;

        /* JADX INFO: renamed from: i, reason: collision with root package name */
        int f3112i;

        /* JADX INFO: renamed from: j, reason: collision with root package name */
        boolean f3113j;

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        boolean f3114k;

        /* JADX INFO: renamed from: l, reason: collision with root package name */
        Paint f3115l;

        public C0044h(C0044h c0044h) {
            this.f3106c = null;
            this.f3107d = h.f3049n;
            if (c0044h != null) {
                this.f3104a = c0044h.f3104a;
                g gVar = new g(c0044h.f3105b);
                this.f3105b = gVar;
                if (c0044h.f3105b.f3092e != null) {
                    gVar.f3092e = new Paint(c0044h.f3105b.f3092e);
                }
                if (c0044h.f3105b.f3091d != null) {
                    this.f3105b.f3091d = new Paint(c0044h.f3105b.f3091d);
                }
                this.f3106c = c0044h.f3106c;
                this.f3107d = c0044h.f3107d;
                this.f3108e = c0044h.f3108e;
            }
        }

        public boolean a(int i3, int i4) {
            return i3 == this.f3109f.getWidth() && i4 == this.f3109f.getHeight();
        }

        public boolean b() {
            return !this.f3114k && this.f3110g == this.f3106c && this.f3111h == this.f3107d && this.f3113j == this.f3108e && this.f3112i == this.f3105b.getRootAlpha();
        }

        public void c(int i3, int i4) {
            if (this.f3109f == null || !a(i3, i4)) {
                this.f3109f = Bitmap.createBitmap(i3, i4, Bitmap.Config.ARGB_8888);
                this.f3114k = true;
            }
        }

        public void d(Canvas canvas, ColorFilter colorFilter, Rect rect) {
            canvas.drawBitmap(this.f3109f, (Rect) null, rect, e(colorFilter));
        }

        public Paint e(ColorFilter colorFilter) {
            if (!f() && colorFilter == null) {
                return null;
            }
            if (this.f3115l == null) {
                Paint paint = new Paint();
                this.f3115l = paint;
                paint.setFilterBitmap(true);
            }
            this.f3115l.setAlpha(this.f3105b.getRootAlpha());
            this.f3115l.setColorFilter(colorFilter);
            return this.f3115l;
        }

        public boolean f() {
            return this.f3105b.getRootAlpha() < 255;
        }

        public boolean g() {
            return this.f3105b.f();
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public int getChangingConfigurations() {
            return this.f3104a;
        }

        public boolean h(int[] iArr) {
            boolean zG = this.f3105b.g(iArr);
            this.f3114k |= zG;
            return zG;
        }

        public void i() {
            this.f3110g = this.f3106c;
            this.f3111h = this.f3107d;
            this.f3112i = this.f3105b.getRootAlpha();
            this.f3113j = this.f3108e;
            this.f3114k = false;
        }

        public void j(int i3, int i4) {
            this.f3109f.eraseColor(0);
            this.f3105b.b(new Canvas(this.f3109f), i3, i4, null);
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            return new h(this);
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources) {
            return new h(this);
        }

        public C0044h() {
            this.f3106c = null;
            this.f3107d = h.f3049n;
            this.f3105b = new g();
        }
    }

    h() {
        this.f3054j = true;
        this.f3055k = new float[9];
        this.f3056l = new Matrix();
        this.f3057m = new Rect();
        this.f3050f = new C0044h();
    }

    static int a(int i3, float f3) {
        return (i3 & 16777215) | (((int) (Color.alpha(i3) * f3)) << 24);
    }

    public static h b(Resources resources, int i3, Resources.Theme theme) {
        int next;
        if (Build.VERSION.SDK_INT >= 24) {
            h hVar = new h();
            hVar.f3048e = androidx.core.content.res.h.e(resources, i3, theme);
            new i(hVar.f3048e.getConstantState());
            return hVar;
        }
        try {
            XmlResourceParser xml = resources.getXml(i3);
            AttributeSet attributeSetAsAttributeSet = Xml.asAttributeSet(xml);
            do {
                next = xml.next();
                if (next == 2) {
                    break;
                }
            } while (next != 1);
            if (next == 2) {
                return c(resources, xml, attributeSetAsAttributeSet, theme);
            }
            throw new XmlPullParserException("No start tag found");
        } catch (IOException e3) {
            Log.e("VectorDrawableCompat", "parser error", e3);
            return null;
        } catch (XmlPullParserException e4) {
            Log.e("VectorDrawableCompat", "parser error", e4);
            return null;
        }
    }

    public static h c(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        h hVar = new h();
        hVar.inflate(resources, xmlPullParser, attributeSet, theme);
        return hVar;
    }

    private void e(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        C0044h c0044h = this.f3050f;
        g gVar = c0044h.f3105b;
        ArrayDeque arrayDeque = new ArrayDeque();
        arrayDeque.push(gVar.f3095h);
        int eventType = xmlPullParser.getEventType();
        int depth = xmlPullParser.getDepth() + 1;
        boolean z2 = true;
        while (eventType != 1 && (xmlPullParser.getDepth() >= depth || eventType != 3)) {
            if (eventType == 2) {
                String name = xmlPullParser.getName();
                d dVar = (d) arrayDeque.peek();
                if ("path".equals(name)) {
                    c cVar = new c();
                    cVar.g(resources, attributeSet, theme, xmlPullParser);
                    dVar.f3071b.add(cVar);
                    if (cVar.getPathName() != null) {
                        gVar.f3103p.put(cVar.getPathName(), cVar);
                    }
                    z2 = false;
                    c0044h.f3104a = cVar.f3086d | c0044h.f3104a;
                } else if ("clip-path".equals(name)) {
                    b bVar = new b();
                    bVar.e(resources, attributeSet, theme, xmlPullParser);
                    dVar.f3071b.add(bVar);
                    if (bVar.getPathName() != null) {
                        gVar.f3103p.put(bVar.getPathName(), bVar);
                    }
                    c0044h.f3104a = bVar.f3086d | c0044h.f3104a;
                } else if ("group".equals(name)) {
                    d dVar2 = new d();
                    dVar2.c(resources, attributeSet, theme, xmlPullParser);
                    dVar.f3071b.add(dVar2);
                    arrayDeque.push(dVar2);
                    if (dVar2.getGroupName() != null) {
                        gVar.f3103p.put(dVar2.getGroupName(), dVar2);
                    }
                    c0044h.f3104a = dVar2.f3080k | c0044h.f3104a;
                }
            } else if (eventType == 3 && "group".equals(xmlPullParser.getName())) {
                arrayDeque.pop();
            }
            eventType = xmlPullParser.next();
        }
        if (z2) {
            throw new XmlPullParserException("no path defined");
        }
    }

    private boolean f() {
        return Build.VERSION.SDK_INT >= 17 && isAutoMirrored() && androidx.core.graphics.drawable.a.f(this) == 1;
    }

    private static PorterDuff.Mode g(int i3, PorterDuff.Mode mode) {
        if (i3 == 3) {
            return PorterDuff.Mode.SRC_OVER;
        }
        if (i3 == 5) {
            return PorterDuff.Mode.SRC_IN;
        }
        if (i3 == 9) {
            return PorterDuff.Mode.SRC_ATOP;
        }
        switch (i3) {
            case 14:
                return PorterDuff.Mode.MULTIPLY;
            case 15:
                return PorterDuff.Mode.SCREEN;
            case 16:
                return PorterDuff.Mode.ADD;
            default:
                return mode;
        }
    }

    private void i(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme) throws XmlPullParserException {
        C0044h c0044h = this.f3050f;
        g gVar = c0044h.f3105b;
        c0044h.f3107d = g(k.g(typedArray, xmlPullParser, "tintMode", 6, -1), PorterDuff.Mode.SRC_IN);
        ColorStateList colorStateListC = k.c(typedArray, xmlPullParser, theme, "tint", 1);
        if (colorStateListC != null) {
            c0044h.f3106c = colorStateListC;
        }
        c0044h.f3108e = k.a(typedArray, xmlPullParser, "autoMirrored", 5, c0044h.f3108e);
        gVar.f3098k = k.f(typedArray, xmlPullParser, "viewportWidth", 7, gVar.f3098k);
        float f3 = k.f(typedArray, xmlPullParser, "viewportHeight", 8, gVar.f3099l);
        gVar.f3099l = f3;
        if (gVar.f3098k <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportWidth > 0");
        }
        if (f3 <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires viewportHeight > 0");
        }
        gVar.f3096i = typedArray.getDimension(3, gVar.f3096i);
        float dimension = typedArray.getDimension(2, gVar.f3097j);
        gVar.f3097j = dimension;
        if (gVar.f3096i <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires width > 0");
        }
        if (dimension <= 0.0f) {
            throw new XmlPullParserException(typedArray.getPositionDescription() + "<vector> tag requires height > 0");
        }
        gVar.setAlpha(k.f(typedArray, xmlPullParser, "alpha", 4, gVar.getAlpha()));
        String string = typedArray.getString(0);
        if (string != null) {
            gVar.f3101n = string;
            gVar.f3103p.put(string, gVar);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public boolean canApplyTheme() {
        Drawable drawable = this.f3048e;
        if (drawable == null) {
            return false;
        }
        androidx.core.graphics.drawable.a.b(drawable);
        return false;
    }

    Object d(String str) {
        return this.f3050f.f3105b.f3103p.get(str);
    }

    @Override // android.graphics.drawable.Drawable
    public void draw(Canvas canvas) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.draw(canvas);
            return;
        }
        copyBounds(this.f3057m);
        if (this.f3057m.width() <= 0 || this.f3057m.height() <= 0) {
            return;
        }
        ColorFilter colorFilter = this.f3052h;
        if (colorFilter == null) {
            colorFilter = this.f3051g;
        }
        canvas.getMatrix(this.f3056l);
        this.f3056l.getValues(this.f3055k);
        float fAbs = Math.abs(this.f3055k[0]);
        float fAbs2 = Math.abs(this.f3055k[4]);
        float fAbs3 = Math.abs(this.f3055k[1]);
        float fAbs4 = Math.abs(this.f3055k[3]);
        if (fAbs3 != 0.0f || fAbs4 != 0.0f) {
            fAbs = 1.0f;
            fAbs2 = 1.0f;
        }
        int iMin = Math.min(2048, (int) (this.f3057m.width() * fAbs));
        int iMin2 = Math.min(2048, (int) (this.f3057m.height() * fAbs2));
        if (iMin <= 0 || iMin2 <= 0) {
            return;
        }
        int iSave = canvas.save();
        Rect rect = this.f3057m;
        canvas.translate(rect.left, rect.top);
        if (f()) {
            canvas.translate(this.f3057m.width(), 0.0f);
            canvas.scale(-1.0f, 1.0f);
        }
        this.f3057m.offsetTo(0, 0);
        this.f3050f.c(iMin, iMin2);
        if (!this.f3054j) {
            this.f3050f.j(iMin, iMin2);
        } else if (!this.f3050f.b()) {
            this.f3050f.j(iMin, iMin2);
            this.f3050f.i();
        }
        this.f3050f.d(canvas, colorFilter, this.f3057m);
        canvas.restoreToCount(iSave);
    }

    @Override // android.graphics.drawable.Drawable
    public int getAlpha() {
        Drawable drawable = this.f3048e;
        return drawable != null ? androidx.core.graphics.drawable.a.d(drawable) : this.f3050f.f3105b.getRootAlpha();
    }

    @Override // android.graphics.drawable.Drawable
    public int getChangingConfigurations() {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            return drawable.getChangingConfigurations();
        }
        return this.f3050f.getChangingConfigurations() | super.getChangingConfigurations();
    }

    @Override // android.graphics.drawable.Drawable
    public ColorFilter getColorFilter() {
        Drawable drawable = this.f3048e;
        return drawable != null ? androidx.core.graphics.drawable.a.e(drawable) : this.f3052h;
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable.ConstantState getConstantState() {
        if (this.f3048e != null && Build.VERSION.SDK_INT >= 24) {
            return new i(this.f3048e.getConstantState());
        }
        this.f3050f.f3104a = getChangingConfigurations();
        return this.f3050f;
    }

    @Override // android.graphics.drawable.Drawable
    public int getIntrinsicHeight() {
        Drawable drawable = this.f3048e;
        return drawable != null ? drawable.getIntrinsicHeight() : (int) this.f3050f.f3105b.f3097j;
    }

    @Override // android.graphics.drawable.Drawable
    public int getIntrinsicWidth() {
        Drawable drawable = this.f3048e;
        return drawable != null ? drawable.getIntrinsicWidth() : (int) this.f3050f.f3105b.f3096i;
    }

    @Override // android.graphics.drawable.Drawable
    public int getOpacity() {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            return drawable.getOpacity();
        }
        return -3;
    }

    void h(boolean z2) {
        this.f3054j = z2;
    }

    @Override // android.graphics.drawable.Drawable
    public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet) throws XmlPullParserException, IOException {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.inflate(resources, xmlPullParser, attributeSet);
        } else {
            inflate(resources, xmlPullParser, attributeSet, null);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void invalidateSelf() {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.invalidateSelf();
        } else {
            super.invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public boolean isAutoMirrored() {
        Drawable drawable = this.f3048e;
        return drawable != null ? androidx.core.graphics.drawable.a.h(drawable) : this.f3050f.f3108e;
    }

    @Override // android.graphics.drawable.Drawable
    public boolean isStateful() {
        C0044h c0044h;
        ColorStateList colorStateList;
        Drawable drawable = this.f3048e;
        return drawable != null ? drawable.isStateful() : super.isStateful() || ((c0044h = this.f3050f) != null && (c0044h.g() || ((colorStateList = this.f3050f.f3106c) != null && colorStateList.isStateful())));
    }

    @Override // android.graphics.drawable.Drawable
    public Drawable mutate() {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.mutate();
            return this;
        }
        if (!this.f3053i && super.mutate() == this) {
            this.f3050f = new C0044h(this.f3050f);
            this.f3053i = true;
        }
        return this;
    }

    @Override // android.graphics.drawable.Drawable
    protected void onBoundsChange(Rect rect) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.setBounds(rect);
        }
    }

    @Override // android.graphics.drawable.Drawable
    protected boolean onStateChange(int[] iArr) {
        PorterDuff.Mode mode;
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            return drawable.setState(iArr);
        }
        boolean z2 = false;
        C0044h c0044h = this.f3050f;
        ColorStateList colorStateList = c0044h.f3106c;
        if (colorStateList != null && (mode = c0044h.f3107d) != null) {
            this.f3051g = updateTintFilter(this.f3051g, colorStateList, mode);
            invalidateSelf();
            z2 = true;
        }
        if (!c0044h.g() || !c0044h.h(iArr)) {
            return z2;
        }
        invalidateSelf();
        return true;
    }

    @Override // android.graphics.drawable.Drawable
    public void scheduleSelf(Runnable runnable, long j3) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.scheduleSelf(runnable, j3);
        } else {
            super.scheduleSelf(runnable, j3);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setAlpha(int i3) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.setAlpha(i3);
        } else if (this.f3050f.f3105b.getRootAlpha() != i3) {
            this.f3050f.f3105b.setRootAlpha(i3);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setAutoMirrored(boolean z2) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            androidx.core.graphics.drawable.a.j(drawable, z2);
        } else {
            this.f3050f.f3108e = z2;
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void setColorFilter(ColorFilter colorFilter) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.setColorFilter(colorFilter);
        } else {
            this.f3052h = colorFilter;
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable, androidx.core.graphics.drawable.b
    public void setTint(int i3) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            androidx.core.graphics.drawable.a.n(drawable, i3);
        } else {
            setTintList(ColorStateList.valueOf(i3));
        }
    }

    @Override // android.graphics.drawable.Drawable, androidx.core.graphics.drawable.b
    public void setTintList(ColorStateList colorStateList) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            androidx.core.graphics.drawable.a.o(drawable, colorStateList);
            return;
        }
        C0044h c0044h = this.f3050f;
        if (c0044h.f3106c != colorStateList) {
            c0044h.f3106c = colorStateList;
            this.f3051g = updateTintFilter(this.f3051g, colorStateList, c0044h.f3107d);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable, androidx.core.graphics.drawable.b
    public void setTintMode(PorterDuff.Mode mode) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            androidx.core.graphics.drawable.a.p(drawable, mode);
            return;
        }
        C0044h c0044h = this.f3050f;
        if (c0044h.f3107d != mode) {
            c0044h.f3107d = mode;
            this.f3051g = updateTintFilter(this.f3051g, c0044h.f3106c, mode);
            invalidateSelf();
        }
    }

    @Override // android.graphics.drawable.Drawable
    public boolean setVisible(boolean z2, boolean z3) {
        Drawable drawable = this.f3048e;
        return drawable != null ? drawable.setVisible(z2, z3) : super.setVisible(z2, z3);
    }

    @Override // android.graphics.drawable.Drawable
    public void unscheduleSelf(Runnable runnable) {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            drawable.unscheduleSelf(runnable);
        } else {
            super.unscheduleSelf(runnable);
        }
    }

    PorterDuffColorFilter updateTintFilter(PorterDuffColorFilter porterDuffColorFilter, ColorStateList colorStateList, PorterDuff.Mode mode) {
        if (colorStateList == null || mode == null) {
            return null;
        }
        return new PorterDuffColorFilter(colorStateList.getColorForState(getState(), 0), mode);
    }

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static class i extends Drawable.ConstantState {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        private final Drawable.ConstantState f3116a;

        public i(Drawable.ConstantState constantState) {
            this.f3116a = constantState;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public boolean canApplyTheme() {
            return this.f3116a.canApplyTheme();
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public int getChangingConfigurations() {
            return this.f3116a.getChangingConfigurations();
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable() {
            h hVar = new h();
            hVar.f3048e = (VectorDrawable) this.f3116a.newDrawable();
            return hVar;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources) {
            h hVar = new h();
            hVar.f3048e = (VectorDrawable) this.f3116a.newDrawable(resources);
            return hVar;
        }

        @Override // android.graphics.drawable.Drawable.ConstantState
        public Drawable newDrawable(Resources resources, Resources.Theme theme) {
            h hVar = new h();
            hVar.f3048e = (VectorDrawable) this.f3116a.newDrawable(resources, theme);
            return hVar;
        }
    }

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static abstract class f extends e {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        protected d.b[] f3083a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        String f3084b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        int f3085c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        int f3086d;

        public f() {
            super();
            this.f3083a = null;
            this.f3085c = 0;
        }

        public boolean c() {
            return false;
        }

        public void d(Path path) {
            path.reset();
            d.b[] bVarArr = this.f3083a;
            if (bVarArr != null) {
                d.b.e(bVarArr, path);
            }
        }

        public d.b[] getPathData() {
            return this.f3083a;
        }

        public String getPathName() {
            return this.f3084b;
        }

        public void setPathData(d.b[] bVarArr) {
            if (androidx.core.graphics.d.b(this.f3083a, bVarArr)) {
                androidx.core.graphics.d.j(this.f3083a, bVarArr);
            } else {
                this.f3083a = androidx.core.graphics.d.f(bVarArr);
            }
        }

        public f(f fVar) {
            super();
            this.f3083a = null;
            this.f3085c = 0;
            this.f3084b = fVar.f3084b;
            this.f3086d = fVar.f3086d;
            this.f3083a = androidx.core.graphics.d.f(fVar.f3083a);
        }
    }

    @Override // android.graphics.drawable.Drawable
    public void inflate(Resources resources, XmlPullParser xmlPullParser, AttributeSet attributeSet, Resources.Theme theme) throws XmlPullParserException, IOException {
        Drawable drawable = this.f3048e;
        if (drawable != null) {
            androidx.core.graphics.drawable.a.g(drawable, resources, xmlPullParser, attributeSet, theme);
            return;
        }
        C0044h c0044h = this.f3050f;
        c0044h.f3105b = new g();
        TypedArray typedArrayK = k.k(resources, theme, attributeSet, androidx.vectordrawable.graphics.drawable.a.f3021a);
        i(typedArrayK, xmlPullParser, theme);
        typedArrayK.recycle();
        c0044h.f3104a = getChangingConfigurations();
        c0044h.f3114k = true;
        e(resources, xmlPullParser, attributeSet, theme);
        this.f3051g = updateTintFilter(this.f3051g, c0044h.f3106c, c0044h.f3107d);
    }

    h(C0044h c0044h) {
        this.f3054j = true;
        this.f3055k = new float[9];
        this.f3056l = new Matrix();
        this.f3057m = new Rect();
        this.f3050f = c0044h;
        this.f3051g = updateTintFilter(this.f3051g, c0044h.f3106c, c0044h.f3107d);
    }

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static class c extends f {

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        private int[] f3058e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        androidx.core.content.res.d f3059f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        float f3060g;

        /* JADX INFO: renamed from: h, reason: collision with root package name */
        androidx.core.content.res.d f3061h;

        /* JADX INFO: renamed from: i, reason: collision with root package name */
        float f3062i;

        /* JADX INFO: renamed from: j, reason: collision with root package name */
        float f3063j;

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        float f3064k;

        /* JADX INFO: renamed from: l, reason: collision with root package name */
        float f3065l;

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        float f3066m;

        /* JADX INFO: renamed from: n, reason: collision with root package name */
        Paint.Cap f3067n;

        /* JADX INFO: renamed from: o, reason: collision with root package name */
        Paint.Join f3068o;

        /* JADX INFO: renamed from: p, reason: collision with root package name */
        float f3069p;

        c() {
            this.f3060g = 0.0f;
            this.f3062i = 1.0f;
            this.f3063j = 1.0f;
            this.f3064k = 0.0f;
            this.f3065l = 1.0f;
            this.f3066m = 0.0f;
            this.f3067n = Paint.Cap.BUTT;
            this.f3068o = Paint.Join.MITER;
            this.f3069p = 4.0f;
        }

        private Paint.Cap e(int i3, Paint.Cap cap) {
            return i3 != 0 ? i3 != 1 ? i3 != 2 ? cap : Paint.Cap.SQUARE : Paint.Cap.ROUND : Paint.Cap.BUTT;
        }

        private Paint.Join f(int i3, Paint.Join join) {
            return i3 != 0 ? i3 != 1 ? i3 != 2 ? join : Paint.Join.BEVEL : Paint.Join.ROUND : Paint.Join.MITER;
        }

        private void h(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme) {
            this.f3058e = null;
            if (k.j(xmlPullParser, "pathData")) {
                String string = typedArray.getString(0);
                if (string != null) {
                    this.f3084b = string;
                }
                String string2 = typedArray.getString(2);
                if (string2 != null) {
                    this.f3083a = androidx.core.graphics.d.d(string2);
                }
                this.f3061h = k.e(typedArray, xmlPullParser, theme, "fillColor", 1, 0);
                this.f3063j = k.f(typedArray, xmlPullParser, "fillAlpha", 12, this.f3063j);
                this.f3067n = e(k.g(typedArray, xmlPullParser, "strokeLineCap", 8, -1), this.f3067n);
                this.f3068o = f(k.g(typedArray, xmlPullParser, "strokeLineJoin", 9, -1), this.f3068o);
                this.f3069p = k.f(typedArray, xmlPullParser, "strokeMiterLimit", 10, this.f3069p);
                this.f3059f = k.e(typedArray, xmlPullParser, theme, "strokeColor", 3, 0);
                this.f3062i = k.f(typedArray, xmlPullParser, "strokeAlpha", 11, this.f3062i);
                this.f3060g = k.f(typedArray, xmlPullParser, "strokeWidth", 4, this.f3060g);
                this.f3065l = k.f(typedArray, xmlPullParser, "trimPathEnd", 6, this.f3065l);
                this.f3066m = k.f(typedArray, xmlPullParser, "trimPathOffset", 7, this.f3066m);
                this.f3064k = k.f(typedArray, xmlPullParser, "trimPathStart", 5, this.f3064k);
                this.f3085c = k.g(typedArray, xmlPullParser, "fillType", 13, this.f3085c);
            }
        }

        @Override // androidx.vectordrawable.graphics.drawable.h.e
        public boolean a() {
            return this.f3061h.i() || this.f3059f.i();
        }

        @Override // androidx.vectordrawable.graphics.drawable.h.e
        public boolean b(int[] iArr) {
            return this.f3059f.j(iArr) | this.f3061h.j(iArr);
        }

        public void g(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            TypedArray typedArrayK = k.k(resources, theme, attributeSet, androidx.vectordrawable.graphics.drawable.a.f3023c);
            h(typedArrayK, xmlPullParser, theme);
            typedArrayK.recycle();
        }

        float getFillAlpha() {
            return this.f3063j;
        }

        int getFillColor() {
            return this.f3061h.e();
        }

        float getStrokeAlpha() {
            return this.f3062i;
        }

        int getStrokeColor() {
            return this.f3059f.e();
        }

        float getStrokeWidth() {
            return this.f3060g;
        }

        float getTrimPathEnd() {
            return this.f3065l;
        }

        float getTrimPathOffset() {
            return this.f3066m;
        }

        float getTrimPathStart() {
            return this.f3064k;
        }

        void setFillAlpha(float f3) {
            this.f3063j = f3;
        }

        void setFillColor(int i3) {
            this.f3061h.k(i3);
        }

        void setStrokeAlpha(float f3) {
            this.f3062i = f3;
        }

        void setStrokeColor(int i3) {
            this.f3059f.k(i3);
        }

        void setStrokeWidth(float f3) {
            this.f3060g = f3;
        }

        void setTrimPathEnd(float f3) {
            this.f3065l = f3;
        }

        void setTrimPathOffset(float f3) {
            this.f3066m = f3;
        }

        void setTrimPathStart(float f3) {
            this.f3064k = f3;
        }

        c(c cVar) {
            super(cVar);
            this.f3060g = 0.0f;
            this.f3062i = 1.0f;
            this.f3063j = 1.0f;
            this.f3064k = 0.0f;
            this.f3065l = 1.0f;
            this.f3066m = 0.0f;
            this.f3067n = Paint.Cap.BUTT;
            this.f3068o = Paint.Join.MITER;
            this.f3069p = 4.0f;
            this.f3058e = cVar.f3058e;
            this.f3059f = cVar.f3059f;
            this.f3060g = cVar.f3060g;
            this.f3062i = cVar.f3062i;
            this.f3061h = cVar.f3061h;
            this.f3085c = cVar.f3085c;
            this.f3063j = cVar.f3063j;
            this.f3064k = cVar.f3064k;
            this.f3065l = cVar.f3065l;
            this.f3066m = cVar.f3066m;
            this.f3067n = cVar.f3067n;
            this.f3068o = cVar.f3068o;
            this.f3069p = cVar.f3069p;
        }
    }

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static class g {

        /* JADX INFO: renamed from: q, reason: collision with root package name */
        private static final Matrix f3087q = new Matrix();

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        private final Path f3088a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        private final Path f3089b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        private final Matrix f3090c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        Paint f3091d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        Paint f3092e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        private PathMeasure f3093f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        private int f3094g;

        /* JADX INFO: renamed from: h, reason: collision with root package name */
        final d f3095h;

        /* JADX INFO: renamed from: i, reason: collision with root package name */
        float f3096i;

        /* JADX INFO: renamed from: j, reason: collision with root package name */
        float f3097j;

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        float f3098k;

        /* JADX INFO: renamed from: l, reason: collision with root package name */
        float f3099l;

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        int f3100m;

        /* JADX INFO: renamed from: n, reason: collision with root package name */
        String f3101n;

        /* JADX INFO: renamed from: o, reason: collision with root package name */
        Boolean f3102o;

        /* JADX INFO: renamed from: p, reason: collision with root package name */
        final j.a<String, Object> f3103p;

        public g() {
            this.f3090c = new Matrix();
            this.f3096i = 0.0f;
            this.f3097j = 0.0f;
            this.f3098k = 0.0f;
            this.f3099l = 0.0f;
            this.f3100m = 255;
            this.f3101n = null;
            this.f3102o = null;
            this.f3103p = new j.a<>();
            this.f3095h = new d();
            this.f3088a = new Path();
            this.f3089b = new Path();
        }

        private static float a(float f3, float f4, float f5, float f6) {
            return (f3 * f6) - (f4 * f5);
        }

        private void c(d dVar, Matrix matrix, Canvas canvas, int i3, int i4, ColorFilter colorFilter) {
            dVar.f3070a.set(matrix);
            dVar.f3070a.preConcat(dVar.f3079j);
            canvas.save();
            for (int i5 = 0; i5 < dVar.f3071b.size(); i5++) {
                e eVar = dVar.f3071b.get(i5);
                if (eVar instanceof d) {
                    c((d) eVar, dVar.f3070a, canvas, i3, i4, colorFilter);
                } else if (eVar instanceof f) {
                    d(dVar, (f) eVar, canvas, i3, i4, colorFilter);
                }
            }
            canvas.restore();
        }

        private void d(d dVar, f fVar, Canvas canvas, int i3, int i4, ColorFilter colorFilter) {
            float f3 = i3 / this.f3098k;
            float f4 = i4 / this.f3099l;
            float fMin = Math.min(f3, f4);
            Matrix matrix = dVar.f3070a;
            this.f3090c.set(matrix);
            this.f3090c.postScale(f3, f4);
            float fE = e(matrix);
            if (fE == 0.0f) {
                return;
            }
            fVar.d(this.f3088a);
            Path path = this.f3088a;
            this.f3089b.reset();
            if (fVar.c()) {
                this.f3089b.setFillType(fVar.f3085c == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                this.f3089b.addPath(path, this.f3090c);
                canvas.clipPath(this.f3089b);
                return;
            }
            c cVar = (c) fVar;
            float f5 = cVar.f3064k;
            if (f5 != 0.0f || cVar.f3065l != 1.0f) {
                float f6 = cVar.f3066m;
                float f7 = (f5 + f6) % 1.0f;
                float f8 = (cVar.f3065l + f6) % 1.0f;
                if (this.f3093f == null) {
                    this.f3093f = new PathMeasure();
                }
                this.f3093f.setPath(this.f3088a, false);
                float length = this.f3093f.getLength();
                float f9 = f7 * length;
                float f10 = f8 * length;
                path.reset();
                if (f9 > f10) {
                    this.f3093f.getSegment(f9, length, path, true);
                    this.f3093f.getSegment(0.0f, f10, path, true);
                } else {
                    this.f3093f.getSegment(f9, f10, path, true);
                }
                path.rLineTo(0.0f, 0.0f);
            }
            this.f3089b.addPath(path, this.f3090c);
            if (cVar.f3061h.l()) {
                androidx.core.content.res.d dVar2 = cVar.f3061h;
                if (this.f3092e == null) {
                    Paint paint = new Paint(1);
                    this.f3092e = paint;
                    paint.setStyle(Paint.Style.FILL);
                }
                Paint paint2 = this.f3092e;
                if (dVar2.h()) {
                    Shader shaderF = dVar2.f();
                    shaderF.setLocalMatrix(this.f3090c);
                    paint2.setShader(shaderF);
                    paint2.setAlpha(Math.round(cVar.f3063j * 255.0f));
                } else {
                    paint2.setShader(null);
                    paint2.setAlpha(255);
                    paint2.setColor(h.a(dVar2.e(), cVar.f3063j));
                }
                paint2.setColorFilter(colorFilter);
                this.f3089b.setFillType(cVar.f3085c == 0 ? Path.FillType.WINDING : Path.FillType.EVEN_ODD);
                canvas.drawPath(this.f3089b, paint2);
            }
            if (cVar.f3059f.l()) {
                androidx.core.content.res.d dVar3 = cVar.f3059f;
                if (this.f3091d == null) {
                    Paint paint3 = new Paint(1);
                    this.f3091d = paint3;
                    paint3.setStyle(Paint.Style.STROKE);
                }
                Paint paint4 = this.f3091d;
                Paint.Join join = cVar.f3068o;
                if (join != null) {
                    paint4.setStrokeJoin(join);
                }
                Paint.Cap cap = cVar.f3067n;
                if (cap != null) {
                    paint4.setStrokeCap(cap);
                }
                paint4.setStrokeMiter(cVar.f3069p);
                if (dVar3.h()) {
                    Shader shaderF2 = dVar3.f();
                    shaderF2.setLocalMatrix(this.f3090c);
                    paint4.setShader(shaderF2);
                    paint4.setAlpha(Math.round(cVar.f3062i * 255.0f));
                } else {
                    paint4.setShader(null);
                    paint4.setAlpha(255);
                    paint4.setColor(h.a(dVar3.e(), cVar.f3062i));
                }
                paint4.setColorFilter(colorFilter);
                paint4.setStrokeWidth(cVar.f3060g * fMin * fE);
                canvas.drawPath(this.f3089b, paint4);
            }
        }

        private float e(Matrix matrix) {
            float[] fArr = {0.0f, 1.0f, 1.0f, 0.0f};
            matrix.mapVectors(fArr);
            float fHypot = (float) Math.hypot(fArr[0], fArr[1]);
            float fHypot2 = (float) Math.hypot(fArr[2], fArr[3]);
            float fA = a(fArr[0], fArr[1], fArr[2], fArr[3]);
            float fMax = Math.max(fHypot, fHypot2);
            if (fMax > 0.0f) {
                return Math.abs(fA) / fMax;
            }
            return 0.0f;
        }

        public void b(Canvas canvas, int i3, int i4, ColorFilter colorFilter) {
            c(this.f3095h, f3087q, canvas, i3, i4, colorFilter);
        }

        public boolean f() {
            if (this.f3102o == null) {
                this.f3102o = Boolean.valueOf(this.f3095h.a());
            }
            return this.f3102o.booleanValue();
        }

        public boolean g(int[] iArr) {
            return this.f3095h.b(iArr);
        }

        public float getAlpha() {
            return getRootAlpha() / 255.0f;
        }

        public int getRootAlpha() {
            return this.f3100m;
        }

        public void setAlpha(float f3) {
            setRootAlpha((int) (f3 * 255.0f));
        }

        public void setRootAlpha(int i3) {
            this.f3100m = i3;
        }

        public g(g gVar) {
            this.f3090c = new Matrix();
            this.f3096i = 0.0f;
            this.f3097j = 0.0f;
            this.f3098k = 0.0f;
            this.f3099l = 0.0f;
            this.f3100m = 255;
            this.f3101n = null;
            this.f3102o = null;
            j.a<String, Object> aVar = new j.a<>();
            this.f3103p = aVar;
            this.f3095h = new d(gVar.f3095h, aVar);
            this.f3088a = new Path(gVar.f3088a);
            this.f3089b = new Path(gVar.f3089b);
            this.f3096i = gVar.f3096i;
            this.f3097j = gVar.f3097j;
            this.f3098k = gVar.f3098k;
            this.f3099l = gVar.f3099l;
            this.f3094g = gVar.f3094g;
            this.f3100m = gVar.f3100m;
            this.f3101n = gVar.f3101n;
            String str = gVar.f3101n;
            if (str != null) {
                aVar.put(str, this);
            }
            this.f3102o = gVar.f3102o;
        }
    }

    /* JADX INFO: compiled from: VectorDrawableCompat.java */
    private static class d extends e {

        /* JADX INFO: renamed from: a, reason: collision with root package name */
        final Matrix f3070a;

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        final ArrayList<e> f3071b;

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        float f3072c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        private float f3073d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        private float f3074e;

        /* JADX INFO: renamed from: f, reason: collision with root package name */
        private float f3075f;

        /* JADX INFO: renamed from: g, reason: collision with root package name */
        private float f3076g;

        /* JADX INFO: renamed from: h, reason: collision with root package name */
        private float f3077h;

        /* JADX INFO: renamed from: i, reason: collision with root package name */
        private float f3078i;

        /* JADX INFO: renamed from: j, reason: collision with root package name */
        final Matrix f3079j;

        /* JADX INFO: renamed from: k, reason: collision with root package name */
        int f3080k;

        /* JADX INFO: renamed from: l, reason: collision with root package name */
        private int[] f3081l;

        /* JADX INFO: renamed from: m, reason: collision with root package name */
        private String f3082m;

        public d(d dVar, j.a<String, Object> aVar) {
            f bVar;
            super();
            this.f3070a = new Matrix();
            this.f3071b = new ArrayList<>();
            this.f3072c = 0.0f;
            this.f3073d = 0.0f;
            this.f3074e = 0.0f;
            this.f3075f = 1.0f;
            this.f3076g = 1.0f;
            this.f3077h = 0.0f;
            this.f3078i = 0.0f;
            Matrix matrix = new Matrix();
            this.f3079j = matrix;
            this.f3082m = null;
            this.f3072c = dVar.f3072c;
            this.f3073d = dVar.f3073d;
            this.f3074e = dVar.f3074e;
            this.f3075f = dVar.f3075f;
            this.f3076g = dVar.f3076g;
            this.f3077h = dVar.f3077h;
            this.f3078i = dVar.f3078i;
            this.f3081l = dVar.f3081l;
            String str = dVar.f3082m;
            this.f3082m = str;
            this.f3080k = dVar.f3080k;
            if (str != null) {
                aVar.put(str, this);
            }
            matrix.set(dVar.f3079j);
            ArrayList<e> arrayList = dVar.f3071b;
            for (int i3 = 0; i3 < arrayList.size(); i3++) {
                e eVar = arrayList.get(i3);
                if (eVar instanceof d) {
                    this.f3071b.add(new d((d) eVar, aVar));
                } else {
                    if (eVar instanceof c) {
                        bVar = new c((c) eVar);
                    } else {
                        if (!(eVar instanceof b)) {
                            throw new IllegalStateException("Unknown object in the tree!");
                        }
                        bVar = new b((b) eVar);
                    }
                    this.f3071b.add(bVar);
                    String str2 = bVar.f3084b;
                    if (str2 != null) {
                        aVar.put(str2, bVar);
                    }
                }
            }
        }

        private void d() {
            this.f3079j.reset();
            this.f3079j.postTranslate(-this.f3073d, -this.f3074e);
            this.f3079j.postScale(this.f3075f, this.f3076g);
            this.f3079j.postRotate(this.f3072c, 0.0f, 0.0f);
            this.f3079j.postTranslate(this.f3077h + this.f3073d, this.f3078i + this.f3074e);
        }

        private void e(TypedArray typedArray, XmlPullParser xmlPullParser) {
            this.f3081l = null;
            this.f3072c = k.f(typedArray, xmlPullParser, "rotation", 5, this.f3072c);
            this.f3073d = typedArray.getFloat(1, this.f3073d);
            this.f3074e = typedArray.getFloat(2, this.f3074e);
            this.f3075f = k.f(typedArray, xmlPullParser, "scaleX", 3, this.f3075f);
            this.f3076g = k.f(typedArray, xmlPullParser, "scaleY", 4, this.f3076g);
            this.f3077h = k.f(typedArray, xmlPullParser, "translateX", 6, this.f3077h);
            this.f3078i = k.f(typedArray, xmlPullParser, "translateY", 7, this.f3078i);
            String string = typedArray.getString(0);
            if (string != null) {
                this.f3082m = string;
            }
            d();
        }

        @Override // androidx.vectordrawable.graphics.drawable.h.e
        public boolean a() {
            for (int i3 = 0; i3 < this.f3071b.size(); i3++) {
                if (this.f3071b.get(i3).a()) {
                    return true;
                }
            }
            return false;
        }

        @Override // androidx.vectordrawable.graphics.drawable.h.e
        public boolean b(int[] iArr) {
            boolean zB = false;
            for (int i3 = 0; i3 < this.f3071b.size(); i3++) {
                zB |= this.f3071b.get(i3).b(iArr);
            }
            return zB;
        }

        public void c(Resources resources, AttributeSet attributeSet, Resources.Theme theme, XmlPullParser xmlPullParser) {
            TypedArray typedArrayK = k.k(resources, theme, attributeSet, androidx.vectordrawable.graphics.drawable.a.f3022b);
            e(typedArrayK, xmlPullParser);
            typedArrayK.recycle();
        }

        public String getGroupName() {
            return this.f3082m;
        }

        public Matrix getLocalMatrix() {
            return this.f3079j;
        }

        public float getPivotX() {
            return this.f3073d;
        }

        public float getPivotY() {
            return this.f3074e;
        }

        public float getRotation() {
            return this.f3072c;
        }

        public float getScaleX() {
            return this.f3075f;
        }

        public float getScaleY() {
            return this.f3076g;
        }

        public float getTranslateX() {
            return this.f3077h;
        }

        public float getTranslateY() {
            return this.f3078i;
        }

        public void setPivotX(float f3) {
            if (f3 != this.f3073d) {
                this.f3073d = f3;
                d();
            }
        }

        public void setPivotY(float f3) {
            if (f3 != this.f3074e) {
                this.f3074e = f3;
                d();
            }
        }

        public void setRotation(float f3) {
            if (f3 != this.f3072c) {
                this.f3072c = f3;
                d();
            }
        }

        public void setScaleX(float f3) {
            if (f3 != this.f3075f) {
                this.f3075f = f3;
                d();
            }
        }

        public void setScaleY(float f3) {
            if (f3 != this.f3076g) {
                this.f3076g = f3;
                d();
            }
        }

        public void setTranslateX(float f3) {
            if (f3 != this.f3077h) {
                this.f3077h = f3;
                d();
            }
        }

        public void setTranslateY(float f3) {
            if (f3 != this.f3078i) {
                this.f3078i = f3;
                d();
            }
        }

        public d() {
            super();
            this.f3070a = new Matrix();
            this.f3071b = new ArrayList<>();
            this.f3072c = 0.0f;
            this.f3073d = 0.0f;
            this.f3074e = 0.0f;
            this.f3075f = 1.0f;
            this.f3076g = 1.0f;
            this.f3077h = 0.0f;
            this.f3078i = 0.0f;
            this.f3079j = new Matrix();
            this.f3082m = null;
        }
    }
}
