package com.google.android.gms.internal.ads;

import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class mt implements ys {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final ps0 f14354a;

    public mt(ps0 ps0Var) {
        if (ps0Var == null) {
            throw new NullPointerException("The Inspector Manager must not be null");
        }
        this.f14354a = ps0Var;
    }

    @Override // com.google.android.gms.internal.ads.ys
    public final void a(Object obj, Map map) {
        if (map == null || !map.containsKey("extras")) {
            return;
        }
        long j10 = Long.MAX_VALUE;
        if (map.containsKey("expires")) {
            try {
                j10 = Long.parseLong((String) map.get("expires"));
            } catch (NumberFormatException unused) {
            }
        }
        ps0 ps0Var = this.f14354a;
        String str = (String) map.get("extras");
        synchronized (ps0Var) {
            ps0Var.f15516o = str;
            ps0Var.f15518q = j10;
            ps0Var.m();
        }
    }
}
