package e.s.a.c.a.t; import com.google.android.gms.measurement.api.AppMeasurementSdk; import o.s.c.f; import o.s.c.j; import org.json.JSONException; import org.json.JSONObject; public final class a { public static final a b = null; public static final a c = new C0250a().b(); /* renamed from: a reason: collision with root package name */ public final JSONObject f11063a; /* renamed from: e.s.a.c.a.t.a$a reason: collision with other inner class name */ public static final class C0250a { /* renamed from: a reason: collision with root package name */ public final JSONObject f11064a; public C0250a() { JSONObject jSONObject = new JSONObject(); this.f11064a = jSONObject; a("autoplay", 0); a("controls", 0); a("enablejsapi", 1); a("fs", 0); try { jSONObject.put(AppMeasurementSdk.ConditionalUserProperty.ORIGIN, "https://www.youtube.com"); a("rel", 0); a("showinfo", 0); a("iv_load_policy", 3); a("modestbranding", 1); a("cc_load_policy", 0); } catch (JSONException unused) { throw new RuntimeException("Illegal JSON value origin: https://www.youtube.com"); } } public final void a(String str, int i2) { try { this.f11064a.put(str, i2); } catch (JSONException unused) { throw new RuntimeException("Illegal JSON value " + str + ": " + i2); } } public final a b() { return new a(this.f11064a, null); } } public a(JSONObject jSONObject, f fVar) { this.f11063a = jSONObject; } public String toString() { String jSONObject = this.f11063a.toString(); j.d(jSONObject, "playerOptions.toString()"); return jSONObject; } }