package com.ironsource; import java.util.Map; import org.json.JSONObject; /* loaded from: classes2.dex */ public class xc { public static final String b = "userId"; public static final String c = "appKey"; private static xc d; private JSONObject a = new JSONObject(); private xc() { } public static synchronized xc a() { xc xcVar; synchronized (xc.class) { try { if (d == null) { d = new xc(); } xcVar = d; } catch (Throwable th) { throw th; } } return xcVar; } public synchronized String a(String str) { return this.a.optString(str); } public synchronized void a(String str, Object obj) { try { this.a.put(str, obj); } catch (Exception e) { i9.d().a(e); } } public synchronized void a(Map map) { if (map != null) { for (String str : map.keySet()) { a(str, map.get(str)); } } } public synchronized JSONObject b() { return this.a; } }