package com.ironsource; import com.ironsource.mediationsdk.impressionData.ImpressionData; import java.util.ArrayList; import java.util.List; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes2.dex */ public class f5 { public static final String n = "adMarkup"; public static final String o = "instance"; public static final String p = "adData"; public static final String q = "price"; public static final String r = "serverData"; public static final String s = "loadTimeout"; public static final String t = "order"; public static final String u = "show"; public static final String v = "price"; public static final String w = "notifications"; public static final String x = "burl"; public static final String y = "lurl"; public static final String z = "nurl"; private String a; private String b; private JSONObject c; private String d; private Integer e; private int f; private int g; private int h; private final List i; private final List j; private final List k; private ImpressionData l; private boolean m; public f5(String str) { this.a = null; this.b = ""; this.c = null; this.d = ""; this.e = null; this.f = -1; this.g = -1; this.h = -1; this.i = new ArrayList(); this.j = new ArrayList(); this.k = new ArrayList(); this.l = null; this.m = true; this.a = str; } public f5(JSONObject jSONObject) { this(jSONObject, -1, null); } /* JADX WARN: Removed duplicated region for block: B:12:0x007f A[Catch: Exception -> 0x0049, TryCatch #0 {Exception -> 0x0049, blocks: (B:3:0x003c, B:5:0x0042, B:6:0x004c, B:8:0x0052, B:9:0x0065, B:10:0x0067, B:12:0x007f, B:13:0x0092, B:15:0x00b0, B:16:0x00bf, B:20:0x0057, B:22:0x005d), top: B:2:0x003c }] */ /* JADX WARN: Removed duplicated region for block: B:15:0x00b0 A[Catch: Exception -> 0x0049, TryCatch #0 {Exception -> 0x0049, blocks: (B:3:0x003c, B:5:0x0042, B:6:0x004c, B:8:0x0052, B:9:0x0065, B:10:0x0067, B:12:0x007f, B:13:0x0092, B:15:0x00b0, B:16:0x00bf, B:20:0x0057, B:22:0x005d), top: B:2:0x003c }] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public f5(org.json.JSONObject r13, int r14, org.json.JSONObject r15) { /* r12 = this; java.lang.String r0 = "loadTimeout" java.lang.String r1 = "notifications" java.lang.String r2 = "serverData" java.lang.String r3 = "adMarkup" java.lang.String r4 = "instance" r12.() r5 = 0 r12.a = r5 java.lang.String r6 = "" r12.b = r6 r12.c = r5 r12.d = r6 r12.e = r5 r6 = -1 r12.f = r6 r12.g = r6 r12.h = r6 java.util.ArrayList r6 = new java.util.ArrayList r6.() r12.i = r6 java.util.ArrayList r7 = new java.util.ArrayList r7.() r12.j = r7 java.util.ArrayList r8 = new java.util.ArrayList r8.() r12.k = r8 r12.l = r5 r9 = 1 r12.m = r9 r10 = 0 boolean r11 = r13.has(r4) // Catch: java.lang.Exception -> L49 if (r11 == 0) goto L4c java.lang.String r4 = r13.getString(r4) // Catch: java.lang.Exception -> L49 r12.a = r4 // Catch: java.lang.Exception -> L49 goto L4c L49: r13 = move-exception goto Lcb L4c: boolean r4 = r13.has(r3) // Catch: java.lang.Exception -> L49 if (r4 == 0) goto L57 java.lang.String r2 = r13.getString(r3) // Catch: java.lang.Exception -> L49 goto L65 L57: boolean r3 = r13.has(r2) // Catch: java.lang.Exception -> L49 if (r3 == 0) goto L67 org.json.JSONObject r2 = r13.getJSONObject(r2) // Catch: java.lang.Exception -> L49 java.lang.String r2 = r2.toString() // Catch: java.lang.Exception -> L49 L65: r12.b = r2 // Catch: java.lang.Exception -> L49 L67: java.lang.String r2 = "adData" org.json.JSONObject r2 = r13.optJSONObject(r2) // Catch: java.lang.Exception -> L49 r12.c = r2 // Catch: java.lang.Exception -> L49 java.lang.String r2 = "price" java.lang.String r3 = "0" java.lang.String r2 = r13.optString(r2, r3) // Catch: java.lang.Exception -> L49 r12.d = r2 // Catch: java.lang.Exception -> L49 boolean r2 = r13.has(r1) // Catch: java.lang.Exception -> L49 if (r2 == 0) goto L92 org.json.JSONObject r1 = r13.getJSONObject(r1) // Catch: java.lang.Exception -> L49 java.lang.String r2 = "burl" r12.a(r1, r2, r6) // Catch: java.lang.Exception -> L49 java.lang.String r2 = "lurl" r12.a(r1, r2, r7) // Catch: java.lang.Exception -> L49 java.lang.String r2 = "nurl" r12.a(r1, r2, r8) // Catch: java.lang.Exception -> L49 L92: java.lang.String r1 = "armData" org.json.JSONObject r1 = r13.optJSONObject(r1) // Catch: java.lang.Exception -> L49 com.ironsource.mediationsdk.impressionData.ImpressionData r2 = new com.ironsource.mediationsdk.impressionData.ImpressionData // Catch: java.lang.Exception -> L49 r3 = 2 org.json.JSONObject[] r3 = new org.json.JSONObject[r3] // Catch: java.lang.Exception -> L49 r3[r10] = r15 // Catch: java.lang.Exception -> L49 r3[r9] = r1 // Catch: java.lang.Exception -> L49 org.json.JSONObject r15 = com.ironsource.hj.a(r3) // Catch: java.lang.Exception -> L49 r2.(r15) // Catch: java.lang.Exception -> L49 r12.l = r2 // Catch: java.lang.Exception -> L49 boolean r15 = r13.has(r0) // Catch: java.lang.Exception -> L49 if (r15 == 0) goto Lbf java.util.concurrent.TimeUnit r15 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch: java.lang.Exception -> L49 long r0 = r13.getLong(r0) // Catch: java.lang.Exception -> L49 long r0 = r15.toSeconds(r0) // Catch: java.lang.Exception -> L49 int r15 = (int) r0 // Catch: java.lang.Exception -> L49 java.lang.Integer r5 = java.lang.Integer.valueOf(r15) // Catch: java.lang.Exception -> L49 Lbf: r12.e = r5 // Catch: java.lang.Exception -> L49 java.lang.String r15 = "order" org.json.JSONObject r13 = r13.optJSONObject(r15) // Catch: java.lang.Exception -> L49 r12.a(r13, r14) // Catch: java.lang.Exception -> L49 goto Lee Lcb: com.ironsource.i9 r14 = com.ironsource.i9.d() r14.a(r13) r12.m = r10 com.ironsource.mediationsdk.logger.IronLog r14 = com.ironsource.mediationsdk.logger.IronLog.INTERNAL java.lang.StringBuilder r15 = new java.lang.StringBuilder r15.() java.lang.String r0 = "exception " r15.append(r0) java.lang.String r13 = r13.getMessage() r15.append(r13) java.lang.String r13 = r15.toString() r14.error(r13) Lee: return */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.f5.(org.json.JSONObject, int, org.json.JSONObject):void"); } private void a(JSONObject jSONObject, int i) { this.f = i; this.g = i; this.h = i; if (jSONObject != null) { int optInt = jSONObject.optInt("show", i); this.g = optInt; this.h = jSONObject.optInt("price", optInt); } } private void a(JSONObject jSONObject, String str, List list) throws JSONException { if (jSONObject.has(str)) { list.addAll(hj.b(jSONObject.getJSONArray(str))); } } public ImpressionData a(String str) { ImpressionData impressionData = this.l; if (impressionData == null) { return null; } ImpressionData impressionData2 = new ImpressionData(impressionData); impressionData2.replaceMacroForPlacementWithValue(com.ironsource.mediationsdk.d.q, str); return impressionData2; } public JSONObject a() { return this.c; } public List b() { return this.i; } public String c() { return this.a; } public int d() { return this.f; } public Integer e() { return this.e; } public List f() { return this.j; } public List g() { return this.k; } public String h() { return this.d; } public int i() { return this.h; } public String j() { return this.b; } public int k() { return this.g; } public boolean l() { return this.m; } }