package ඓ.ⁱ.K.ῲ;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* renamed from: ඓ.ⁱ.K.ῲ.ඓ  reason: contains not printable characters */
/* compiled from: ZoneInfo */
public class C1254 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final int f4938;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final Map<String, Long> f4939;

    /* renamed from: K  reason: contains not printable characters */
    public final List<String> f4940;

    public C1254(int i, List<String> list, Map<String, Long> map) {
        this.f4938 = i;
        this.f4940 = list;
        this.f4939 = map;
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1254 m3357(JSONObject jSONObject) throws JSONException {
        int i = jSONObject.getInt("ttl");
        ArrayList arrayList = new ArrayList();
        ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();
        JSONObject jSONObject2 = jSONObject.getJSONObject("up");
        for (String str : new String[]{"acc", "src", "old_acc", "old_src"}) {
            JSONObject jSONObject3 = jSONObject2.getJSONObject(str);
            JSONArray jSONArray = jSONObject3.getJSONArray("main");
            for (int i2 = 0; i2 < jSONArray.length(); i2++) {
                String string = jSONArray.getString(i2);
                arrayList.add(string);
                concurrentHashMap.put(string, 0L);
            }
            try {
                JSONArray jSONArray2 = jSONObject3.getJSONArray("backup");
                if (jSONArray2 != null) {
                    for (int i3 = 0; i3 < jSONArray2.length(); i3++) {
                        String string2 = jSONArray2.getString(i3);
                        arrayList.add(string2);
                        concurrentHashMap.put(string2, 0L);
                    }
                }
            } catch (JSONException unused) {
            }
        }
        return new C1254(i, arrayList, concurrentHashMap);
    }

    public String toString() {
        HashMap hashMap = new HashMap();
        hashMap.put("ttl", Integer.valueOf(this.f4938));
        hashMap.put("upDomainList", this.f4940);
        hashMap.put("upDomainMap", this.f4939);
        return new JSONObject(hashMap).toString();
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m3358(String str) {
        this.f4939.put(str, Long.valueOf((System.currentTimeMillis() / 1000) + ((long) 600)));
    }
}
