AdGuard v4.4.135版本的 MD5 值为:95950267eaafbda3588f0934f48b2e36
以下内容为反编译后的 z.java 源代码,内容仅作参考
package com.adguard.android.storage;
import a0.n;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.provider.Settings;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import b0.f;
import ch.qos.logback.core.CoreConstants;
import ch.qos.logback.core.joran.action.Action;
import ch.qos.logback.core.rolling.helper.DateTokenConverter;
import ch.qos.logback.core.rolling.helper.IntegerTokenConverter;
import com.adguard.android.management.https.HttpsFilteringMode;
import com.adguard.android.storage.d;
import com.adguard.android.storage.db.Database;
import com.adguard.android.storage.y;
import com.adguard.android.storage.z;
import com.adguard.android.ui.viewmodel.statistics.support.GroupedStatisticsSortedBy;
import com.adguard.android.ui.viewmodel.statistics.support.NetworkTypeForUI;
import com.adguard.corelibs.proxy.userscripts.GmStorage;
import com.adguard.dnslibs.proxy.DnsProxySettings;
import com.fasterxml.jackson.core.type.TypeReference;
import d0.p0;
import d0.t0;
import d1.n;
import e0.p;
import h1.i;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Deque;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.function.BiConsumer;
import kotlin.Metadata;
import kotlin.Unit;
import o6.a;
import p.d;
import p1.b;
import q1.a;
import r1.b;
import w1.b;
import y.b;
import y1.f;
import z1.b;
import zb.q0;
@Metadata(d1 = {"\u0000\u0090\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u0000 è\u00012\u00020\u0001:\u0001\u0007B#\u0012\b\u0010å\u0001\u001a\u00030ä\u0001\u0012\u0006\u0010\u000b\u001a\u00020\u0006\u0012\u0006\u0010\u0011\u001a\u00020\f¢\u0006\u0006\bæ\u0001\u0010ç\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002R\u001a\u0010\u000b\u001a\u00020\u00068\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0007\u0010\b\u001a\u0004\b\t\u0010\nR\u001a\u0010\u0011\u001a\u00020\f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0015\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u0014\u0010\u0016\u001a\u00020\u00128\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0014R\u0014\u0010\u001a\u001a\u00020\u00178\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0018\u0010\u0019R\u001a\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u001c0\u001b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u001d\u0010\u001eR\u001a\u0010\"\u001a\b\u0012\u0004\u0012\u00020 0\u001b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b!\u0010\u001eR \u0010(\u001a\u000e\u0012\u0004\u0012\u00020$\u0012\u0004\u0012\u00020%0#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b&\u0010'R\u001b\u0010.\u001a\u00020)8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b*\u0010+\u001a\u0004\b,\u0010-R\u001b\u00103\u001a\u00020/8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b0\u0010+\u001a\u0004\b1\u00102R\u001b\u00108\u001a\u0002048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b5\u0010+\u001a\u0004\b6\u00107R\u001b\u0010=\u001a\u0002098BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b:\u0010+\u001a\u0004\b;\u0010<R\u001b\u0010B\u001a\u00020>8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b?\u0010+\u001a\u0004\b@\u0010AR\u001b\u0010G\u001a\u00020C8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bD\u0010+\u001a\u0004\bE\u0010FR\u001b\u0010L\u001a\u00020H8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bI\u0010+\u001a\u0004\bJ\u0010KR\u0014\u0010P\u001a\u00020M8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bN\u0010OR\u001a\u0010U\u001a\u00020Q8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u000f\u0010R\u001a\u0004\bS\u0010TR\u001a\u0010[\u001a\u00020V8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bW\u0010X\u001a\u0004\bY\u0010ZR\u001a\u0010`\u001a\u00020\\8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b]\u0010^\u001a\u0004\b\u0013\u0010_R\u001a\u0010e\u001a\u00020a8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bb\u0010c\u001a\u0004\b\u001d\u0010dR\u001a\u0010j\u001a\u00020f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bg\u0010h\u001a\u0004\b?\u0010iR\u001a\u0010o\u001a\u00020k8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bl\u0010m\u001a\u0004\b*\u0010nR\u001a\u0010t\u001a\u00020p8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bq\u0010r\u001a\u0004\b!\u0010sR\u001a\u0010x\u001a\u00020u8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bS\u0010v\u001a\u0004\b&\u0010wR\u001a\u0010}\u001a\u00020y8\u0016X\u0096\u0004¢\u0006\f\n\u0004\bz\u0010{\u001a\u0004\bW\u0010|R\u001d\u0010\u0082\u0001\u001a\u00020~8\u0016X\u0096\u0004¢\u0006\u000e\n\u0005\b\u007f\u0010\u0080\u0001\u001a\u0005\b:\u0010\u0081\u0001R\u001f\u0010\u0087\u0001\u001a\u00030\u0083\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b\u0084\u0001\u0010\u0085\u0001\u001a\u0005\bI\u0010\u0086\u0001R\u001f\u0010\u008c\u0001\u001a\u00030\u0088\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b\u0089\u0001\u0010\u008a\u0001\u001a\u0005\b]\u0010\u008b\u0001R\u001f\u0010\u0091\u0001\u001a\u00030\u008d\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0005\bY\u0010\u008e\u0001\u001a\u0006\b\u008f\u0001\u0010\u0090\u0001R\u001f\u0010\u0095\u0001\u001a\u00030\u0092\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b\u008f\u0001\u0010\u0093\u0001\u001a\u0005\bl\u0010\u0094\u0001R \u0010\u009a\u0001\u001a\u00030\u0096\u00018\u0016X\u0096\u0004¢\u0006\u0010\n\u0006\b\u0097\u0001\u0010\u0098\u0001\u001a\u0006\b\u0097\u0001\u0010\u0099\u0001R\u001f\u0010\u009f\u0001\u001a\u00030\u009b\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b\u009c\u0001\u0010\u009d\u0001\u001a\u0005\b\r\u0010\u009e\u0001R\u001f\u0010¤\u0001\u001a\u00030 \u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b¡\u0001\u0010¢\u0001\u001a\u0005\bb\u0010£\u0001R\u001f\u0010©\u0001\u001a\u00030¥\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b¦\u0001\u0010§\u0001\u001a\u0005\bz\u0010¨\u0001R\u001f\u0010®\u0001\u001a\u00030ª\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b«\u0001\u0010¬\u0001\u001a\u0005\b5\u0010\u00ad\u0001R\u001f\u0010³\u0001\u001a\u00030¯\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\b°\u0001\u0010±\u0001\u001a\u0005\b0\u0010²\u0001R\u001f\u0010¸\u0001\u001a\u00030´\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\bµ\u0001\u0010¶\u0001\u001a\u0005\bD\u0010·\u0001R\u001f\u0010½\u0001\u001a\u00030¹\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\bº\u0001\u0010»\u0001\u001a\u0005\bq\u0010¼\u0001R \u0010Â\u0001\u001a\u00030¾\u00018\u0016X\u0096\u0004¢\u0006\u0010\n\u0006\b¿\u0001\u0010À\u0001\u001a\u0006\b\u0084\u0001\u0010Á\u0001R\u001f\u0010Ç\u0001\u001a\u00030Ã\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\bÄ\u0001\u0010Å\u0001\u001a\u0005\b\u0018\u0010Æ\u0001R \u0010Ì\u0001\u001a\u00030È\u00018\u0016X\u0096\u0004¢\u0006\u0010\n\u0006\bÉ\u0001\u0010Ê\u0001\u001a\u0006\b\u009c\u0001\u0010Ë\u0001R\u001f\u0010Ñ\u0001\u001a\u00030Í\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\bÎ\u0001\u0010Ï\u0001\u001a\u0005\b\u0007\u0010Ð\u0001R\u001f\u0010Ö\u0001\u001a\u00030Ò\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\bÓ\u0001\u0010Ô\u0001\u001a\u0005\bg\u0010Õ\u0001R\u001f\u0010Û\u0001\u001a\u00030×\u00018\u0016X\u0096\u0004¢\u0006\u000f\n\u0006\bØ\u0001\u0010Ù\u0001\u001a\u0005\bN\u0010Ú\u0001R \u0010à\u0001\u001a\u00030Ü\u00018\u0016X\u0096\u0004¢\u0006\u0010\n\u0006\bÝ\u0001\u0010Þ\u0001\u001a\u0006\b\u0089\u0001\u0010ß\u0001R\u0017\u0010ã\u0001\u001a\u00030á\u00018VX\u0096\u0004¢\u0006\u0007\u001a\u0005\b\u007f\u0010â\u0001¨\u0006é\u0001"}, d2 = {"Lcom/adguard/android/storage/z;", "Lcom/adguard/android/storage/y;", "Ll2/p;", Action.KEY_ATTRIBUTE, "", "d0", "Lp2/a;", "a", "Lp2/a;", DateTokenConverter.CONVERTER_KEY, "()Lp2/a;", "configurations", "Lp2/d;", "b", "Lp2/d;", "q", "()Lp2/d;", "links", "Lx6/a;", "c", "Lx6/a;", "filesAdapter", "cacheAdapter", "La9/c;", "e", "La9/c;", "assetsProvider", "Ly6/b;", "Ll2/l;", "f", "Ly6/b;", "prefsAdapter", "", "g", "localizationsPrefsAdapter", "Lo2/a;", "Lcom/adguard/android/storage/d;", "Lcom/adguard/android/storage/db/Database;", "h", "Lo2/a;", "dbAdapter", "Ly/b$a;", IntegerTokenConverter.CONVERTER_KEY, "Lyb/h;", "W", "()Ly/b$a;", "dnsFilteringAssistant", "La0/n$c;", "j", "X", "()La0/n$c;", "filteringAssistant", "Ld1/n$b;", "k", "a0", "()Ld1/n$b;", "outboundProxyAssistant", "Le0/p$b;", "l", "Z", "()Le0/p$b;", "httpsFilteringAssistant", "Lw1/b$a;", "m", "c0", "()Lw1/b$a;", "uiSettingsAssistant", "Lb0/f$a;", "n", "b0", "()Lb0/f$a;", "permissionsProviderAssistant", "Ll2/f;", "o", "Y", "()Ll2/f;", "filtersConfigurator", "Ll2/b;", "p", "Ll2/b;", "companiesConfigurator", "Lcom/adguard/android/storage/y$v;", "Lcom/adguard/android/storage/y$v;", "x", "()Lcom/adguard/android/storage/y$v;", "settings", "Lcom/adguard/android/storage/y$z;", "r", "Lcom/adguard/android/storage/y$z;", "C", "()Lcom/adguard/android/storage/y$z;", "uiSettings", "Lcom/adguard/android/storage/y$c;", "s", "Lcom/adguard/android/storage/y$c;", "()Lcom/adguard/android/storage/y$c;", "browsers", "Lcom/adguard/android/storage/y$e;", "t", "Lcom/adguard/android/storage/y$e;", "()Lcom/adguard/android/storage/y$e;", "devSettings", "Lcom/adguard/android/storage/y$l;", "u", "Lcom/adguard/android/storage/y$l;", "()Lcom/adguard/android/storage/y$l;", "filters", "Lcom/adguard/android/storage/y$h;", "v", "Lcom/adguard/android/storage/y$h;", "()Lcom/adguard/android/storage/y$h;", "dnsSettings", "Lcom/adguard/android/storage/y$f;", "w", "Lcom/adguard/android/storage/y$f;", "()Lcom/adguard/android/storage/y$f;", "dnsFilters", "Lcom/adguard/android/storage/y$g;", "Lcom/adguard/android/storage/y$g;", "()Lcom/adguard/android/storage/y$g;", "dnsProviders", "Lcom/adguard/android/storage/y$p;", "y", "Lcom/adguard/android/storage/y$p;", "()Lcom/adguard/android/storage/y$p;", "localization", "Lcom/adguard/android/storage/y$k;", "z", "Lcom/adguard/android/storage/y$k;", "()Lcom/adguard/android/storage/y$k;", "filteringSettings", "Lcom/adguard/android/storage/y$n;", "A", "Lcom/adguard/android/storage/y$n;", "()Lcom/adguard/android/storage/y$n;", "httpsFilteringInfo", "Lcom/adguard/android/storage/y$q;", "B", "Lcom/adguard/android/storage/y$q;", "()Lcom/adguard/android/storage/y$q;", "outboundProxySettings", "Lcom/adguard/android/storage/y$a0;", "Lcom/adguard/android/storage/y$a0;", "D", "()Lcom/adguard/android/storage/y$a0;", "userscriptsSettings", "Lcom/adguard/android/storage/y$t;", "Lcom/adguard/android/storage/y$t;", "()Lcom/adguard/android/storage/y$t;", "protectionSettings", "Lcom/adguard/android/storage/y$b0;", "E", "Lcom/adguard/android/storage/y$b0;", "()Lcom/adguard/android/storage/y$b0;", "vpnServiceSettings", "Lcom/adguard/android/storage/y$b;", "F", "Lcom/adguard/android/storage/y$b;", "()Lcom/adguard/android/storage/y$b;", "batteryStatistics", "Lcom/adguard/android/storage/y$r;", "G", "Lcom/adguard/android/storage/y$r;", "()Lcom/adguard/android/storage/y$r;", "permissions", "Lcom/adguard/android/storage/y$w;", "H", "Lcom/adguard/android/storage/y$w;", "()Lcom/adguard/android/storage/y$w;", "statistics", "Lcom/adguard/android/storage/y$j;", "I", "Lcom/adguard/android/storage/y$j;", "()Lcom/adguard/android/storage/y$j;", "filteringLog", "Lcom/adguard/android/storage/y$i;", "J", "Lcom/adguard/android/storage/y$i;", "()Lcom/adguard/android/storage/y$i;", "featureDiscovery", "Lcom/adguard/android/storage/y$m;", "K", "Lcom/adguard/android/storage/y$m;", "()Lcom/adguard/android/storage/y$m;", "firewall", "Lcom/adguard/android/storage/y$u;", "L", "Lcom/adguard/android/storage/y$u;", "()Lcom/adguard/android/storage/y$u;", "samsungPayDetection", "Lcom/adguard/android/storage/y$x;", "M", "Lcom/adguard/android/storage/y$x;", "()Lcom/adguard/android/storage/y$x;", "supportFeedback", "Lcom/adguard/android/storage/y$d;", "N", "Lcom/adguard/android/storage/y$d;", "()Lcom/adguard/android/storage/y$d;", "conflicts", "Lcom/adguard/android/storage/y$c0;", "O", "Lcom/adguard/android/storage/y$c0;", "()Lcom/adguard/android/storage/y$c0;", "widgetSettings", "Lcom/adguard/android/storage/y$a;", "P", "Lcom/adguard/android/storage/y$a;", "()Lcom/adguard/android/storage/y$a;", "automationSettings", "Lcom/adguard/android/storage/y$s;", "Q", "Lcom/adguard/android/storage/y$s;", "()Lcom/adguard/android/storage/y$s;", "plusSettings", "Lcom/adguard/android/storage/y$o;", "R", "Lcom/adguard/android/storage/y$o;", "()Lcom/adguard/android/storage/y$o;", "integrationSettings", "Lcom/adguard/android/storage/y$y;", "S", "Lcom/adguard/android/storage/y$y;", "()Lcom/adguard/android/storage/y$y;", "systemRoutesEquipment", "Ll2/m;", "()Ll2/m;", "storageAttributes", "Landroid/content/Context;", CoreConstants.CONTEXT_SCOPE_VALUE, "<init>", "(Landroid/content/Context;Lp2/a;Lp2/d;)V", "T", "base_release"}, k = 1, mv = {1, 8, 0})
public final class z extends com.adguard.android.storage.y {
public static final a T = new a(null);
public static final uh.c U = uh.d.i(z.class);
public final y.n A;
public final y.q B;
public final y.a0 C;
public final y.t D;
public final y.b0 E;
public final y.b F;
public final y.r G;
public final y.w H;
public final y.j I;
public final y.i J;
public final y.m K;
public final y.u L;
public final y.x M;
public final y.d N;
public final y.c0 O;
public final y.a P;
public final y.s Q;
public final y.o R;
public final y.AbstractC0087y S;
public final p2.a f2990a;
public final p2.d f2991b;
public final x6.a f2992c;
public final x6.a f2993d;
public final a9.c f2994e;
public final y6.b<l2.l> f2995f;
public final y6.b<Object> f2996g;
public final o2.a<com.adguard.android.storage.d, Database> f2997h;
public final yb.h f2998i;
public final yb.h f2999j;
public final yb.h f3000k;
public final yb.h f3001l;
public final yb.h f3002m;
public final yb.h f3003n;
public final yb.h f3004o;
public final l2.b f3005p;
public final y.v f3006q;
public final y.z f3007r;
public final y.c f3008s;
public final y.e f3009t;
public final y.l f3010u;
public final y.h f3011v;
public final y.f f3012w;
public final y.g f3013x;
public final y.p f3014y;
public final y.k f3015z;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\t\u0010\nR\u0014\u0010\u0003\u001a\u00020\u00028\u0002X\u0082T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u001c\u0010\u0007\u001a\n \u0006*\u0004\u0018\u00010\u00050\u00058\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\b¨\u0006\u000b"}, d2 = {"Lcom/adguard/android/storage/z$a;", "", "", "EMPTY_FILE_CONTENT", "Ljava/lang/String;", "Luh/c;", "kotlin.jvm.PlatformType", "LOG", "Luh/c;", "<init>", "()V", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class a {
public a() {
}
public a(kotlin.jvm.internal.h hVar) {
this();
}
}
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Ll2/l;", "it", "", "a", "(Ll2/l;)V"}, k = 3, mv = {1, 8, 0})
public static final class a0 extends kotlin.jvm.internal.p implements mc.l<l2.l, Unit> {
public a0() {
super(1);
}
public final void a(l2.l it) {
kotlin.jvm.internal.n.g(it, "it");
z.this.d0(it.toStorageSpaceKey());
}
@Override
public Unit invoke(l2.l lVar) {
a(lVar);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000!\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\u0006*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R*\u0010\r\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00068V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\b\u0010\t\u001a\u0004\b\u0003\u0010\n\"\u0004\b\u000b\u0010\fR.\u0010\u0013\u001a\u0004\u0018\u00010\u000e2\b\u0010\u0007\u001a\u0004\u0018\u00010\u000e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000b\u0010\u000f\u001a\u0004\b\b\u0010\u0010\"\u0004\b\u0011\u0010\u0012¨\u0006\u0014"}, d2 = {"com/adguard/android/storage/z$b", "Lcom/adguard/android/storage/y$a;", "Lp/d$a;", "a", "Lp/d$a;", "assistant", "", "value", "b", "Z", "()Z", "c", "(Z)V", "automationEnabled", "", "Ljava/lang/String;", "()Ljava/lang/String;", DateTokenConverter.CONVERTER_KEY, "(Ljava/lang/String;)V", "automationPinCode", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class b extends y.a {
public final d.a f3017a;
public boolean f3018b;
public String f3019c;
public b() {
d.a aVar = new d.a();
this.f3017a = aVar;
this.f3018b = aVar.a();
this.f3019c = (String) aVar.b();
}
@Override
public boolean a() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AutomationEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3018b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3018b = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String b() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.AutomationPinCode;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3019c;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
this.f3019c = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public void c(boolean z10) {
l2.l lVar = l2.l.AutomationEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3018b = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void d(String str) {
l2.l lVar = l2.l.AutomationPinCode;
z zVar = z.this;
synchronized (lVar) {
int i10 = (1 << 4) | 0;
this.f3019c = (String) y6.b.i(zVar.f2995f, str, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
}
}
}
@Metadata(d1 = {"\u0000K\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0015\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\t\n\u0002\b\u0017*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0016J\b\u0010\u0007\u001a\u00020\u0004H\u0016J\b\u0010\b\u001a\u00020\u0004H\u0016J\b\u0010\t\u001a\u00020\u0004H\u0016R\u0014\u0010\r\u001a\u00020\n8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\fR6\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\b\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R*\u0010\u001d\u001a\u00020\u00172\u0006\u0010\u0010\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\t\u0010\u0018\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR*\u0010 \u001a\u00020\u00172\u0006\u0010\u0010\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\u0018\u001a\u0004\b\u001e\u0010\u001a\"\u0004\b\u001f\u0010\u001cR*\u0010&\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0007\u0010!\u001a\u0004\b\"\u0010#\"\u0004\b$\u0010%R*\u0010*\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b'\u0010!\u001a\u0004\b(\u0010#\"\u0004\b)\u0010%R\u001a\u0010,\u001a\u00020\u00048\u0016X\u0096\u0004¢\u0006\f\n\u0004\b+\u0010!\u001a\u0004\b\u000b\u0010#R*\u00103\u001a\u00020-2\u0006\u0010\u0010\u001a\u00020-8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\"\u0010.\u001a\u0004\b/\u00100\"\u0004\b1\u00102R*\u0010;\u001a\u0002042\u0006\u0010\u0010\u001a\u0002048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b5\u00106\u001a\u0004\b7\u00108\"\u0004\b9\u0010:R*\u0010?\u001a\u00020\u00172\u0006\u0010\u0010\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b<\u0010\u0018\u001a\u0004\b=\u0010\u001a\"\u0004\b>\u0010\u001cR*\u0010A\u001a\u00020\u00172\u0006\u0010\u0010\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\u0018\u001a\u0004\b<\u0010\u001a\"\u0004\b@\u0010\u001cR*\u0010H\u001a\u00020B2\u0006\u0010\u0010\u001a\u00020B8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b/\u0010C\u001a\u0004\bD\u0010E\"\u0004\bF\u0010GR*\u0010K\u001a\u00020B2\u0006\u0010\u0010\u001a\u00020B8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b(\u0010C\u001a\u0004\bI\u0010E\"\u0004\bJ\u0010GR*\u0010M\u001a\u00020\u00172\u0006\u0010\u0010\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b=\u0010\u0018\u001a\u0004\b5\u0010\u001a\"\u0004\bL\u0010\u001cR*\u0010O\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0019\u0010!\u001a\u0004\b'\u0010#\"\u0004\bN\u0010%R*\u0010Q\u001a\u00020\u00042\u0006\u0010\u0010\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b7\u0010!\u001a\u0004\b+\u0010#\"\u0004\bP\u0010%R*\u0010S\u001a\u00020\u00172\u0006\u0010\u0010\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001e\u0010\u0018\u001a\u0004\bR\u0010\u001a\"\u0004\bC\u0010\u001cR*\u0010U\u001a\u00020-2\u0006\u0010\u0010\u001a\u00020-8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bT\u0010.\u001a\u0004\bT\u00100\"\u0004\b.\u00102R*\u0010X\u001a\u00020-2\u0006\u0010\u0010\u001a\u00020-8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bR\u0010.\u001a\u0004\bV\u00100\"\u0004\bW\u00102¨\u0006Y"}, d2 = {"com/adguard/android/storage/z$b0", "Lcom/adguard/android/storage/y$t;", "Lp1/b$c;", "list", "", "N", DateTokenConverter.CONVERTER_KEY, "e", "b", "c", "Lp1/b$a;", "a", "Lp1/b$a;", "assistant", "", "Ll2/k;", "value", "Ljava/util/List;", "k", "()Ljava/util/List;", "B", "(Ljava/util/List;)V", "portRanges", "", "Z", "o", "()Z", "F", "(Z)V", "removedHtmlLogEnabled", "q", "H", "scriptletsDebuggingEnabled", "Ljava/lang/String;", "h", "()Ljava/lang/String;", "y", "(Ljava/lang/String;)V", "excludedPackagesAndUids", "f", "m", "D", "quicBypassPackages", "g", "certificatesCacheDir", "", "I", "l", "()I", "C", "(I)V", "proxyPort", "Lcom/adguard/android/storage/RoutingMode;", IntegerTokenConverter.CONVERTER_KEY, "Lcom/adguard/android/storage/RoutingMode;", "p", "()Lcom/adguard/android/storage/RoutingMode;", "G", "(Lcom/adguard/android/storage/RoutingMode;)V", "routingMode", "j", "n", "E", "reconfigureAutoProxyOnNetworkChange", "A", "lastTimeProtectionEnabled", "", "J", "u", "()J", "L", "(J)V", "vpnRevocationRecoveryDelay", "v", "M", "vpnRevocationRecoveryRescheduleDelay", "z", "ipv6FilteringEnabled", "w", "excludedIPv4Routes", "x", "excludedIPv6Routes", "s", "tcpKeepAliveProbes", "r", "tcpKeepAliveIdleTimeSeconds", "t", "K", "tcpKeepAliveTimeoutSeconds", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class b0 extends y.t {
public final b.a f3021a;
public List<l2.k> f3022b;
public boolean f3023c;
public boolean f3024d;
public String f3025e;
public String f3026f;
public final String f3027g;
public int f3028h;
public RoutingMode f3029i;
public boolean f3030j;
public boolean f3031k;
public long f3032l;
public long f3033m;
public boolean f3034n;
public String f3035o;
public String f3036p;
public boolean f3037q;
public int f3038r;
public int f3039s;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public class a {
public static final int[] f3041a;
static {
int[] iArr = new int[b.c.values().length];
try {
iArr[b.c.ExtremelyProblematic.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[b.c.Problematic.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[b.c.Default.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
f3041a = iArr;
}
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<List<? extends l2.k>> {
}
public b0() {
b.a aVar = new b.a();
this.f3021a = aVar;
this.f3022b = aVar.c();
this.f3023c = aVar.f();
this.f3024d = aVar.h();
this.f3025e = d();
this.f3026f = e();
this.f3027g = z.this.f2992c.c("/certs");
this.f3028h = aVar.d();
this.f3029i = aVar.g();
this.f3030j = aVar.e();
this.f3032l = aVar.l();
this.f3033m = aVar.m();
this.f3034n = aVar.b();
this.f3035o = b();
this.f3036p = c();
this.f3037q = aVar.j();
this.f3038r = aVar.i();
this.f3039s = aVar.k();
}
@Override
public void A(boolean z10) {
l2.l lVar = l2.l.LastTimeProtectionEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3031k = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void B(List<l2.k> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.PortRanges;
z zVar = z.this;
synchronized (lVar) {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3022b = (List) k10;
Unit unit = Unit.INSTANCE;
}
}
@Override
public void C(int i10) {
l2.l lVar = l2.l.ProxyPort;
z zVar = z.this;
synchronized (lVar) {
try {
int i11 = 7 << 0;
Object i12 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i12);
this.f3028h = ((Number) i12).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void D(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.QuicBypassPackages;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3026f = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void E(boolean z10) {
l2.l lVar = l2.l.ReconfigureAutoProxyOnNetworkChange;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3030j = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void F(boolean z10) {
l2.l lVar = l2.l.RemovedHtmlLogEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3023c = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void G(RoutingMode value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.RoutingMode;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(RoutingMode.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3029i = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void H(boolean z10) {
l2.l lVar = l2.l.ScriptletsDebuggingEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3024d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void I(int i10) {
l2.l lVar = l2.l.TcpKeepAliveIdleTimeSeconds;
z zVar = z.this;
synchronized (lVar) {
try {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3038r = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void J(boolean z10) {
l2.l lVar = l2.l.TcpKeepAliveProbes;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3037q = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void K(int i10) {
l2.l lVar = l2.l.TcpKeepAliveTimeoutSeconds;
z zVar = z.this;
synchronized (lVar) {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3039s = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
}
}
@Override
public void L(long j10) {
l2.l lVar = l2.l.VpnRevocationRecoveryDelay;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3032l = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void M(long j10) {
l2.l lVar = l2.l.VpnRevocationRecoveryRescheduleDelay;
z zVar = z.this;
synchronized (lVar) {
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3033m = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
}
}
public final String N(b.c cVar) {
int i10 = a.f3041a[cVar.ordinal()];
if (i10 != 1) {
if (i10 != 2) {
boolean z10 = true & true;
if (i10 == 3) {
return "/preset/routes_equipment/ipv4_routes_exclusions.txt";
}
throw new yb.l();
}
return "/preset/routes_equipment/ipv4_routes_exclusions_fujitsu.txt";
}
return "/preset/routes_equipment/ipv4_routes_exclusions_fujitsu_only_reserved.txt";
}
@Override
public String a() {
return this.f3027g;
}
@Override
public String b() {
a9.c unused = z.this.f2994e;
String N = N(this.f3021a.n());
String str = "/assets" + N;
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
String str2 = null;
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
String a10 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
str2 = a10;
}
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str + "' path", th2);
}
return str2 == null ? "" : str2;
}
@Override
public String c() {
a9.c unused = z.this.f2994e;
String str = "/assets/preset/routes_equipment/ipv6_routes_exclusions.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
String str2 = null;
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
String a10 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
str2 = a10;
}
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str + "' path", th2);
}
if (str2 == null) {
str2 = "";
}
return str2;
}
@Override
public String d() {
a9.c unused = z.this.f2994e;
String str = "/assets/preset/pkg_exclusions.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
String str2 = null;
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
String a10 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
str2 = a10;
}
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str + "' path", th2);
}
if (str2 == null) {
str2 = "";
}
return str2;
}
@Override
public String e() {
a9.c unused = z.this.f2994e;
String str = "/assets/preset/quic_pkg_exclusions.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
String str2 = null;
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
String a10 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
str2 = a10;
}
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str + "' path", th2);
}
if (str2 == null) {
str2 = "";
}
return str2;
}
@Override
public String f() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.ExcludedIPv4Routes;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3035o;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3035o = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public String g() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.ExcludedIPv6Routes;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3036p;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3036p = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public String h() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.ExcludedPackagesAndUids;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3025e;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3025e = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public boolean i() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.IPv6FilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3034n);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3034n = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean j() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.LastTimeProtectionEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3031k);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3031k = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public List<l2.k> k() {
List<l2.k> list;
l2.l lVar = l2.l.PortRanges;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<l2.k> list2 = this.f3022b;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3022b = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public int l() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.ProxyPort;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3028h);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3028h = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public String m() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.QuicBypassPackages;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3026f;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3026f = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public boolean n() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ReconfigureAutoProxyOnNetworkChange;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3030j);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3030j = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean o() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.RemovedHtmlLogEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3023c);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3023c = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public RoutingMode p() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
RoutingMode routingMode;
l2.l lVar = l2.l.RoutingMode;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
RoutingMode routingMode2 = this.f3029i;
int code = routingMode2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
RoutingMode routingMode3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(RoutingMode.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
routingMode3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
routingMode2 = routingMode3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + RoutingMode.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(routingMode2);
routingMode = routingMode2;
this.f3029i = routingMode;
} catch (Throwable th2) {
throw th2;
}
}
return routingMode;
}
@Override
public boolean q() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ScriptletsDebuggingEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3024d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3024d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public int r() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.TcpKeepAliveIdleTimeSeconds;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3038r);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3038r = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean s() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.TcpKeepAliveProbes;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3037q);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3037q = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public int t() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.TcpKeepAliveTimeoutSeconds;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3039s);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 5 >> 1;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3039s = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public long u() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.VpnRevocationRecoveryDelay;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3032l);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3032l = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public long v() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.VpnRevocationRecoveryRescheduleDelay;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3033m);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3033m = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public void w(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ExcludedIPv4Routes;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3035o = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void x(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ExcludedIPv6Routes;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 2 << 0;
Object i11 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3036p = (String) i11;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void y(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ExcludedPackagesAndUids;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3025e = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void z(boolean z10) {
l2.l lVar = l2.l.IPv6FilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3034n = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u00009\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\b\u0010\b\u001a\u00020\u0006H\u0016J$\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u00040\u000b2\u0014\u0010\n\u001a\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00040\tH\u0002R\u0014\u0010\u000f\u001a\u00020\r8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u0007\u0010\u000eR\u0014\u0010\u0012\u001a\u00020\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\b\u0010\u0011R\u001a\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00040\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u0015"}, d2 = {"com/adguard/android/storage/z$c", "Lcom/adguard/android/storage/y$b;", "", "rotateAfterHours", "Ls/f;", "statistics", "", "a", "b", "Lkotlin/Function1;", "transform", "", DateTokenConverter.CONVERTER_KEY, "", "Ljava/lang/String;", "usageHistoryFileName", "Ljava/util/concurrent/locks/ReentrantReadWriteLock;", "Ljava/util/concurrent/locks/ReentrantReadWriteLock;", "rwLock", "c", "()Ljava/util/List;", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class c extends y.b {
public final String f3042a = "battery.dat";
public final ReentrantReadWriteLock f3043b = new ReentrantReadWriteLock();
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Ls/f;", "it", "", "a", "(Ls/f;)Ljava/lang/CharSequence;"}, k = 3, mv = {1, 8, 0})
public static final class a extends kotlin.jvm.internal.p implements mc.l<s.f, CharSequence> {
public static final a f3045e = new a();
public a() {
super(1);
}
@Override
public final CharSequence invoke(s.f it) {
kotlin.jvm.internal.n.g(it, "it");
return it.toString();
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u0004\u0018\u00010\u0000*\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Ls/f;", "a", "(Ls/f;)Ls/f;"}, k = 3, mv = {1, 8, 0})
public static final class b extends kotlin.jvm.internal.p implements mc.l<s.f, s.f> {
public final long f3046e;
public b(long j10) {
super(1);
this.f3046e = j10;
}
@Override
public final s.f invoke(s.f getHistory) {
kotlin.jvm.internal.n.g(getHistory, "$this$getHistory");
if (getHistory.f() < this.f3046e) {
return null;
}
return getHistory;
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u0004\u0018\u00010\u0000*\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Ls/f;", "a", "(Ls/f;)Ls/f;"}, k = 3, mv = {1, 8, 0})
public static final class C0088c extends kotlin.jvm.internal.p implements mc.l<s.f, s.f> {
public static final C0088c f3047e = new C0088c();
public C0088c() {
super(1);
}
@Override
public final s.f invoke(s.f getHistory) {
kotlin.jvm.internal.n.g(getHistory, "$this$getHistory");
return getHistory;
}
}
public c() {
}
@Override
public void a(int i10, s.f statistics) {
kotlin.jvm.internal.n.g(statistics, "statistics");
ReentrantReadWriteLock reentrantReadWriteLock = this.f3043b;
z zVar = z.this;
ReentrantReadWriteLock.ReadLock readLock = reentrantReadWriteLock.readLock();
int i11 = 0;
int readHoldCount = reentrantReadWriteLock.getWriteHoldCount() == 0 ? reentrantReadWriteLock.getReadHoldCount() : 0;
for (int i12 = 0; i12 < readHoldCount; i12++) {
readLock.unlock();
}
ReentrantReadWriteLock.WriteLock writeLock = reentrantReadWriteLock.writeLock();
writeLock.lock();
try {
List P0 = zb.y.P0(d(new b(System.currentTimeMillis() - (((i10 * 60) * 60) * 1000))));
P0.add(statistics);
zVar.f2993d.l(this.f3042a, zb.y.j0(P0, "\n", null, null, 0, null, a.f3045e, 30, null));
zVar.d0(l2.p.BatteryStatistics);
Unit unit = Unit.INSTANCE;
} finally {
while (i11 < readHoldCount) {
readLock.lock();
i11++;
}
writeLock.unlock();
}
}
@Override
public void b() {
z.this.f2993d.l(this.f3042a, "");
z.this.d0(l2.p.BatteryStatistics);
}
@Override
public List<s.f> c() {
ReentrantReadWriteLock.ReadLock readLock = this.f3043b.readLock();
readLock.lock();
try {
return d(C0088c.f3047e);
} finally {
readLock.unlock();
}
}
public final List<s.f> d(mc.l<? super s.f, s.f> lVar) {
ArrayList arrayList;
List<String> j10 = z.this.f2993d.j(this.f3042a);
if (j10 != null) {
arrayList = new ArrayList();
for (String str : j10) {
s.f a10 = s.f.f23498h.a(str);
s.f invoke = a10 != null ? lVar.invoke(a10) : null;
if (invoke != null) {
arrayList.add(invoke);
}
}
} else {
arrayList = new ArrayList();
}
return arrayList;
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R*\u0010\f\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00068V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\b\u0010\t\u001a\u0004\b\u0003\u0010\n\"\u0004\b\b\u0010\u000b¨\u0006\r"}, d2 = {"com/adguard/android/storage/z$c0", "Lcom/adguard/android/storage/y$u;", "Lq1/a$a;", "a", "Lq1/a$a;", "assistant", "", "value", "b", "Z", "()Z", "(Z)V", "enableSamsungPayDetection", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class c0 extends y.u {
public final a.C0985a f3048a;
public boolean f3049b;
public c0() {
a.C0985a c0985a = new a.C0985a();
this.f3048a = c0985a;
this.f3049b = c0985a.a();
}
@Override
public boolean a() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.EnableSamsungPayDetection;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3049b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3049b = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void b(boolean z10) {
l2.l lVar = l2.l.EnableSamsungPayDetection;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 5 >> 4;
Object i11 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3049b = ((Boolean) i11).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\u001d\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0012\u0010\u0005\u001a\u00020\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0002H\u0016R\u001c\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010\u0007¨\u0006\t"}, d2 = {"com/adguard/android/storage/z$d", "Lcom/adguard/android/storage/y$c;", "", "packageName", "", "a", "", "Ljava/util/List;", "packageNames", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class d extends y.c {
public final List<String> f3051a;
public d(z zVar) {
String str;
InputStream resourceAsStream;
a9.c unused = zVar.f2994e;
String str2 = "/assets/preset/browsers.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
resourceAsStream = a9.n.class.getResourceAsStream(str2);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str2 + "' path", th2);
}
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
List<String> d10 = str != null ? null : z5.w.d(str);
this.f3051a = d10 != null ? zb.y.E0(d10) : null;
}
str = null;
if (str != null) {
}
this.f3051a = d10 != null ? zb.y.E0(d10) : null;
}
@Override
public boolean a(String str) {
int i10;
boolean z10 = false;
if (str != null) {
List<String> list = this.f3051a;
if (list != null) {
int i11 = 3 << 0;
i10 = zb.q.i(list, str, 0, 0, 6, null);
} else {
i10 = -1;
}
if (i10 >= 0) {
z10 = true;
}
}
return z10;
}
}
@Metadata(d1 = {"\u0000U\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\f*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002R\u0014\u0010\t\u001a\u00020\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\bR*\u0010\u0012\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\n8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\f\u0010\r\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R\u001c\u0010\u0017\u001a\u0004\u0018\u00010\u00048VX\u0096\u0004¢\u0006\f\n\u0004\b\u0013\u0010\u0014\u001a\u0004\b\u0015\u0010\u0016R\u001c\u0010\u001d\u001a\u0004\u0018\u00010\u00188VX\u0096\u0004¢\u0006\f\n\u0004\b\u0019\u0010\u001a\u001a\u0004\b\u001b\u0010\u001cR*\u0010%\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"\"\u0004\b#\u0010$R*\u0010'\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001b\u0010 \u001a\u0004\b\u001f\u0010\"\"\u0004\b&\u0010$R*\u0010+\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b(\u0010 \u001a\u0004\b)\u0010\"\"\u0004\b*\u0010$R*\u0010/\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b,\u0010 \u001a\u0004\b-\u0010\"\"\u0004\b.\u0010$R*\u00102\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000e\u0010 \u001a\u0004\b0\u0010\"\"\u0004\b1\u0010$R*\u00105\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b-\u0010 \u001a\u0004\b3\u0010\"\"\u0004\b4\u0010$R\u001a\u00106\u001a\u00020\u00048\u0016X\u0096\u0004¢\u0006\f\n\u0004\b0\u0010\u0014\u001a\u0004\b\u0007\u0010\u0016R.\u0010:\u001a\u0004\u0018\u00010\u00042\b\u0010\u000b\u001a\u0004\u0018\u00010\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b!\u0010\u0014\u001a\u0004\b7\u0010\u0016\"\u0004\b8\u00109R*\u0010<\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b3\u0010 \u001a\u0004\b\f\u0010\"\"\u0004\b;\u0010$R*\u0010>\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b)\u0010 \u001a\u0004\b(\u0010\"\"\u0004\b=\u0010$R*\u0010E\u001a\u00020?2\u0006\u0010\u000b\u001a\u00020?8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b@\u0010A\u001a\u0004\b@\u0010B\"\u0004\bC\u0010DR*\u0010L\u001a\u00020F2\u0006\u0010\u000b\u001a\u00020F8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bG\u0010H\u001a\u0004\bG\u0010I\"\u0004\bJ\u0010KR*\u0010R\u001a\u00020\u00182\u0006\u0010\u000b\u001a\u00020\u00188V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bM\u0010*\u001a\u0004\bN\u0010O\"\u0004\bP\u0010QR*\u0010V\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bS\u0010 \u001a\u0004\bT\u0010\"\"\u0004\bU\u0010$R*\u0010Y\u001a\u00020\u00042\u0006\u0010\u000b\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bW\u0010\u0014\u001a\u0004\b,\u0010\u0016\"\u0004\bX\u00109R*\u0010_\u001a\u00020Z2\u0006\u0010\u000b\u001a\u00020Z8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b7\u0010[\u001a\u0004\b\u0019\u0010\\\"\u0004\b]\u0010^R*\u0010e\u001a\u00020`2\u0006\u0010\u000b\u001a\u00020`8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bT\u0010a\u001a\u0004\bM\u0010b\"\u0004\bc\u0010dR*\u0010g\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bN\u0010 \u001a\u0004\b\u0013\u0010\"\"\u0004\bf\u0010$R*\u0010i\u001a\u00020\u00182\u0006\u0010\u000b\u001a\u00020\u00188V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010*\u001a\u0004\bS\u0010O\"\u0004\bh\u0010QR*\u0010k\u001a\u00020\u001e2\u0006\u0010\u000b\u001a\u00020\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b;\u0010 \u001a\u0004\bW\u0010\"\"\u0004\bj\u0010$¨\u0006l"}, d2 = {"com/adguard/android/storage/z$d0", "Lcom/adguard/android/storage/y$v;", "Landroid/content/Context;", CoreConstants.CONTEXT_SCOPE_VALUE, "", "Q", "Lr1/b$a;", "a", "Lr1/b$a;", "assistant", "Lcom/adguard/android/storage/LogLevel;", "value", "b", "Lcom/adguard/android/storage/LogLevel;", IntegerTokenConverter.CONVERTER_KEY, "()Lcom/adguard/android/storage/LogLevel;", "D", "(Lcom/adguard/android/storage/LogLevel;)V", "logLevel", "c", "Ljava/lang/String;", "w", "()Ljava/lang/String;", "webmasterId", "", DateTokenConverter.CONVERTER_KEY, "Ljava/lang/Integer;", "f", "()Ljava/lang/Integer;", "couponId", "", "e", "Z", "l", "()Z", "G", "(Z)V", "privacyPolicy", "A", "automaticCrashReporting", "g", "n", "I", "technicalAndInteractionData", "h", "j", "E", "onboardingFirstShown", "k", "F", "onboardingSecondShown", "m", "H", "protectionHasBeenStartedOnce", "applicationId", "t", "N", "(Ljava/lang/String;)V", "userEmail", "x", "autoStart", "B", "highContrastTheme", "Lcom/adguard/android/storage/Theme;", "o", "Lcom/adguard/android/storage/Theme;", "()Lcom/adguard/android/storage/Theme;", "J", "(Lcom/adguard/android/storage/Theme;)V", "theme", "Lcom/adguard/android/storage/TVTheme;", "p", "Lcom/adguard/android/storage/TVTheme;", "()Lcom/adguard/android/storage/TVTheme;", "setTvTheme", "(Lcom/adguard/android/storage/TVTheme;)V", "tvTheme", "q", "v", "()I", "P", "(I)V", "watchdogPeriod", "r", "u", "O", "watchdogEnabled", "s", "C", "languageCode", "Lcom/adguard/android/storage/AutoUpdatePeriod;", "Lcom/adguard/android/storage/AutoUpdatePeriod;", "()Lcom/adguard/android/storage/AutoUpdatePeriod;", "z", "(Lcom/adguard/android/storage/AutoUpdatePeriod;)V", "autoUpdatePeriod", "Lcom/adguard/android/storage/UpdateChannel;", "Lcom/adguard/android/storage/UpdateChannel;", "()Lcom/adguard/android/storage/UpdateChannel;", "K", "(Lcom/adguard/android/storage/UpdateChannel;)V", "updateChannel", "y", "autoUpdateEnabled", "L", "updateNotificationShowsCount", "M", "updateOnlyViaWiFi", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class d0 extends y.v {
public final b.a f3052a;
public LogLevel f3053b;
public final String f3054c;
public final Integer f3055d;
public boolean f3056e;
public boolean f3057f;
public boolean f3058g;
public boolean f3059h;
public boolean f3060i;
public boolean f3061j;
public final String f3062k;
public String f3063l;
public boolean f3064m;
public boolean f3065n;
public Theme f3066o;
public TVTheme f3067p;
public int f3068q;
public boolean f3069r;
public String f3070s;
public AutoUpdatePeriod f3071t;
public UpdateChannel f3072u;
public boolean f3073v;
public int f3074w;
public boolean f3075x;
public d0(Context context) {
b.a aVar = new b.a(z.this.d());
this.f3052a = aVar;
this.f3053b = aVar.g();
this.f3057f = aVar.d();
this.f3058g = aVar.h();
this.f3062k = Q(context);
this.f3063l = aVar.l();
this.f3064m = aVar.a();
this.f3065n = aVar.e();
this.f3066o = aVar.i();
this.f3067p = TVTheme.Companion.getDefaultTVThemeForCurrentDevice();
this.f3068q = aVar.n();
this.f3069r = aVar.m();
this.f3070s = z.this.d().f();
this.f3071t = aVar.c();
this.f3072u = z.this.d().g();
this.f3073v = aVar.b();
this.f3075x = aVar.k();
}
@Override
public void A(boolean z10) {
l2.l lVar = l2.l.AutomaticCrashReporting;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3057f = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void B(boolean z10) {
l2.l lVar = l2.l.HighContrastTheme;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3065n = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void C(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.LanguageCode;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3070s = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void D(LogLevel value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.LogLevel;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true | false;
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(LogLevel.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3053b = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void E(boolean z10) {
l2.l lVar = l2.l.OnboardingFirstShown;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3059h = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void F(boolean z10) {
l2.l lVar = l2.l.OnboardingSecondShown;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3060i = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void G(boolean z10) {
l2.l lVar = l2.l.PrivacyPolicy;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3056e = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void H(boolean z10) {
l2.l lVar = l2.l.ProtectionHasBeenStartedOnce;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3061j = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void I(boolean z10) {
l2.l lVar = l2.l.TechnicalAndInteractionData;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3058g = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void J(Theme value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.Theme;
z zVar = z.this;
synchronized (lVar) {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(Theme.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3066o = r12;
Unit unit = Unit.INSTANCE;
}
}
@Override
public void K(UpdateChannel value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.UpdateChannel;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(UpdateChannel.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3072u = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void L(int i10) {
l2.l lVar = l2.l.UpdateNotificationShowsCount;
z zVar = z.this;
synchronized (lVar) {
try {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3074w = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void M(boolean z10) {
l2.l lVar = l2.l.UpdateViaWiFiOnly;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3075x = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void N(String str) {
l2.l lVar = l2.l.UserEmail;
z zVar = z.this;
synchronized (lVar) {
try {
this.f3063l = (String) y6.b.i(zVar.f2995f, str, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void O(boolean z10) {
l2.l lVar = l2.l.WatchdogEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3069r = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void P(int i10) {
l2.l lVar = l2.l.WatchdogPeriod;
z zVar = z.this;
synchronized (lVar) {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3068q = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
}
}
public final String Q(Context context) {
String string = Settings.Secure.getString(context.getContentResolver(), "android_id");
return string == null ? "Android" : string;
}
@Override
public String a() {
return this.f3062k;
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AutoStart;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3064m);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3064m = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AutoUpdateEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3073v);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3073v = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public AutoUpdatePeriod d() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
AutoUpdatePeriod autoUpdatePeriod;
l2.l lVar = l2.l.AutoUpdatePeriod;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
AutoUpdatePeriod autoUpdatePeriod2 = this.f3071t;
int code = autoUpdatePeriod2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
boolean z11 = !true;
AutoUpdatePeriod autoUpdatePeriod3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(AutoUpdatePeriod.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
autoUpdatePeriod3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
autoUpdatePeriod2 = autoUpdatePeriod3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + AutoUpdatePeriod.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(autoUpdatePeriod2);
autoUpdatePeriod = autoUpdatePeriod2;
this.f3071t = autoUpdatePeriod;
} catch (Throwable th2) {
throw th2;
}
}
return autoUpdatePeriod;
}
@Override
public boolean e() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AutomaticCrashReporting;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3057f);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3057f = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public Integer f() {
Integer num;
Set<String> set;
Integer num2;
String str;
Long l10;
Float f10;
Boolean bool;
String str2;
Integer b10;
l2.l lVar = l2.l.CouponId;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer num3 = this.f3055d;
num = null;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
boolean z11 = !true;
if (((c10 == null || c10.contains(prefName)) ? null : 1) != null) {
num2 = num3;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = num3 instanceof Boolean ? (Boolean) num3 : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
num2 = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = num3 instanceof Float ? (Float) num3 : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
num2 = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num4 = num3 instanceof Integer ? num3 : null;
num2 = Integer.valueOf(c13.getInt(prefName, num4 != null ? num4.intValue() : 0));
} else {
num2 = null;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = num3 instanceof Long ? (Long) num3 : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
num2 = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, num3 instanceof String ? (String) num3 : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
num2 = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, num3 instanceof Set ? (Set) num3 : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
num2 = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
num2 = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
num3 = num2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
if (num3 == null) {
a9.c unused = zVar.f2994e;
String str3 = "/assets/install.id";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str3);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str2 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
} else {
str2 = null;
}
Object d10 = str2 != null ? a9.h.d(str2, l2.t.class) : null;
if (d10 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /install.id");
}
l2.t tVar = (l2.t) d10;
if (tVar != null && (b10 = tVar.b()) != null) {
y6.b.i(zVar.f2995f, Integer.valueOf(b10.intValue()), l2.l.CouponId, null, 4, null);
num = b10;
}
} else {
num = num3;
}
} catch (Throwable th2) {
throw th2;
}
}
return num;
}
@Override
public boolean g() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HighContrastTheme;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3065n);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3065n = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String h() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.LanguageCode;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3070s;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3070s = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public LogLevel i() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
LogLevel logLevel;
l2.l lVar = l2.l.LogLevel;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
LogLevel logLevel2 = this.f3053b;
int code = logLevel2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
LogLevel logLevel3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(LogLevel.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
logLevel3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
logLevel2 = logLevel3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + LogLevel.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(logLevel2);
logLevel = logLevel2;
this.f3053b = logLevel;
} catch (Throwable th2) {
throw th2;
}
}
return logLevel;
}
@Override
public boolean j() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.OnboardingFirstShown;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3059h);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3059h = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean k() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.OnboardingSecondShown;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3060i);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3060i = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean l() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.PrivacyPolicy;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3056e);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
?? r92 = true & true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3056e = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean m() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ProtectionHasBeenStartedOnce;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3061j);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3061j = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean n() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.TechnicalAndInteractionData;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3058g);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 0 << 1;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3058g = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public Theme o() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
Theme theme;
l2.l lVar = l2.l.Theme;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Theme theme2 = this.f3066o;
int code = theme2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
Theme theme3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(Theme.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
theme3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
theme2 = theme3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + Theme.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(theme2);
theme = theme2;
this.f3066o = theme;
}
return theme;
}
@Override
public TVTheme p() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
TVTheme tVTheme;
l2.l lVar = l2.l.TVTheme;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
TVTheme tVTheme2 = this.f3067p;
int code = tVTheme2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
TVTheme tVTheme3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(TVTheme.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
tVTheme3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
tVTheme2 = tVTheme3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + TVTheme.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(tVTheme2);
tVTheme = tVTheme2;
this.f3067p = tVTheme;
} catch (Throwable th2) {
throw th2;
}
}
return tVTheme;
}
@Override
public UpdateChannel q() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
UpdateChannel updateChannel;
l2.l lVar = l2.l.UpdateChannel;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
UpdateChannel updateChannel2 = this.f3072u;
int code = updateChannel2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
boolean z11 = !false;
UpdateChannel updateChannel3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(UpdateChannel.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
boolean z12 = false ^ true;
updateChannel3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
updateChannel2 = updateChannel3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + UpdateChannel.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(updateChannel2);
updateChannel = updateChannel2;
this.f3072u = updateChannel;
} catch (Throwable th2) {
throw th2;
}
}
return updateChannel;
}
@Override
public int r() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.UpdateNotificationShowsCount;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3074w);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3074w = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean s() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.UpdateViaWiFiOnly;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3075x);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3075x = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String t() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.UserEmail;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3063l;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
this.f3063l = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public boolean u() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.WatchdogEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3069r);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3069r = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public int v() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.WatchdogPeriod;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3068q);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3068q = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public String w() {
String str;
Set<String> set;
String str2;
Long l10;
Integer num;
Float f10;
Boolean bool;
String str3;
String a10;
l2.l lVar = l2.l.WebmasterId;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
String str4 = this.f3054c;
str = null;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? null : 1) != null) {
str2 = str4;
} else {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = str4 instanceof Boolean ? (Boolean) str4 : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof String)) {
bool = null;
}
str2 = (String) bool;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = str4 instanceof Float ? (Float) str4 : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof String)) {
f10 = null;
}
str2 = (String) f10;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = str4 instanceof Integer ? (Integer) str4 : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (!(num instanceof String)) {
num = null;
}
str2 = (String) num;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = str4 instanceof Long ? (Long) str4 : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof String)) {
l10 = null;
}
str2 = (String) l10;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str2 = c15.getString(prefName, str4 instanceof String ? str4 : null);
} else {
str2 = null;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str4 instanceof Set ? (Set) str4 : null);
} else {
set = null;
}
if (!(set instanceof String)) {
set = null;
}
str2 = (String) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
str2 = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str4 = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
if (str4 == null) {
a9.c unused = zVar.f2994e;
String str5 = "/assets/install.id";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str5);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str3 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
} else {
str3 = null;
}
Object d10 = str3 != null ? a9.h.d(str3, l2.t.class) : null;
if (d10 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /install.id");
}
l2.t tVar = (l2.t) d10;
if (tVar != null && (a10 = tVar.a()) != null) {
y6.b.i(zVar.f2995f, a10, l2.l.WebmasterId, null, 4, null);
str = a10;
}
} else {
str = str4;
}
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public void x(boolean z10) {
l2.l lVar = l2.l.AutoStart;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z11 = true & true;
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3064m = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void y(boolean z10) {
l2.l lVar = l2.l.AutoUpdateEnabled;
z zVar = z.this;
synchronized (lVar) {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3073v = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
}
}
@Override
public void z(AutoUpdatePeriod value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.AutoUpdatePeriod;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(AutoUpdatePeriod.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3071t = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\u0015\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\"\n\u0002\u0010\u000e\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R6\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0005\u0010\u0007\"\u0004\b\b\u0010\t¨\u0006\u000b"}, d2 = {"com/adguard/android/storage/z$e", "Lcom/adguard/android/storage/y$d;", "", "", "value", "a", "Ljava/util/Set;", "()Ljava/util/Set;", "b", "(Ljava/util/Set;)V", "shownNotificationUniqueIds", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class e extends y.d {
public Set<String> f3077a = q0.d();
public e() {
}
@Override
public Set<String> a() {
Set<String> set;
Set<String> set2;
Set<String> set3;
String str;
Set<String> set4;
Set<String> set5;
Set<String> set6;
Set<String> set7;
l2.l lVar = l2.l.ShownAppConflictNotifications;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
set = this.f3077a;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
set2 = set;
} else {
set2 = null;
if (kotlin.jvm.internal.n.b(Set.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Set.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = set instanceof Boolean ? (Boolean) set : null;
set7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
set7 = null;
}
if (set7 instanceof Set) {
set2 = set7;
}
set2 = set2;
} else {
if (kotlin.jvm.internal.n.b(Set.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Set.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = set instanceof Float ? (Float) set : null;
set6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
set6 = null;
}
if (set6 instanceof Set) {
set2 = set6;
}
set2 = set2;
} else {
if (kotlin.jvm.internal.n.b(Set.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Set.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = set instanceof Integer ? (Integer) set : null;
set5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
set5 = null;
}
if (set5 instanceof Set) {
set2 = set5;
}
set2 = set2;
} else {
if (!kotlin.jvm.internal.n.b(Set.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Set.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = set instanceof Long ? (Long) set : null;
set4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
set4 = null;
}
if (set4 instanceof Set) {
set2 = set4;
}
set2 = set2;
} else if (kotlin.jvm.internal.n.b(Set.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, set instanceof String ? (String) set : null);
} else {
str = null;
}
if (str instanceof Set) {
set2 = str;
}
set2 = set2;
} else if (kotlin.jvm.internal.n.b(Set.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set3 = c16.getStringSet(prefName, set instanceof Set ? set : null);
} else {
set3 = null;
}
if (set3 instanceof Set) {
set2 = set3;
}
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Set.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
set = set2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Set.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(set);
this.f3077a = set;
} catch (Throwable th2) {
throw th2;
}
}
return set;
}
@Override
public void b(Set<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ShownAppConflictNotifications;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3077a = (Set) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000K\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u001e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010$\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u000e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0016J\u0016\u0010\u0007\u001a\u00020\u00062\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00030\u0002H\u0016J\u0016\u0010\t\u001a\u00020\u00062\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00030\bH\u0016J\u0016\u0010\n\u001a\u00020\u00062\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00030\bH\u0016R\u0014\u0010\r\u001a\u00020\u000b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\fR \u0010\u0012\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u000f0\u00020\u000e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0010\u0010\u0011R&\u0010\u0015\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0014\u0012\u0004\u0012\u00020\u000f0\u00130\u000e8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u0011R\u001a\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u000f0\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017R \u0010\u001b\u001a\u000e\u0012\u0004\u0012\u00020\u0014\u0012\u0004\u0012\u00020\u000f0\u00198VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u001a¨\u0006\u001c"}, d2 = {"com/adguard/android/storage/z$e0", "Lcom/adguard/android/storage/y$w;", "", "Lm2/c;", "a", "list", "", "e", "", "c", DateTokenConverter.CONVERTER_KEY, "", "Ljava/lang/Object;", "syncDbQueries", "Lh9/b;", "Lg2/b;", "b", "Lh9/b;", "companiesCache", "Ljava/util/HashMap;", "", "domainsWithCompaniesCache", "f", "()Ljava/util/List;", "companies", "", "()Ljava/util/Map;", "domainsWithCompanies", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class e0 extends y.w {
public final h9.b<List<g2.b>> f3080b;
public final Object f3079a = new Object();
public final h9.b<HashMap<String, g2.b>> f3081c = new h9.b<>(-1, false, false, new b(), 6, null);
@Metadata(d1 = {"\u0000\f\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"", "Lg2/b;", "a", "()Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class a extends kotlin.jvm.internal.p implements mc.a<List<? extends g2.b>> {
public final z f3083e;
public a(z zVar) {
super(0);
this.f3083e = zVar;
}
@Override
public final List<g2.b> invoke() {
String str;
Object d10;
InputStream resourceAsStream;
l2.b bVar = this.f3083e.f3005p;
a9.c unused = this.f3083e.f2994e;
String str2 = "/assets/preset/trackers.json";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
resourceAsStream = a9.n.class.getResourceAsStream(str2);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str2 + "' path", th2);
}
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
d10 = str != null ? a9.h.d(str, g2.a.class) : null;
if (d10 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /preset/trackers.json");
}
return bVar.b((g2.a) d10);
}
str = null;
if (str != null) {
}
if (d10 == null) {
}
return bVar.b((g2.a) d10);
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u0010\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Ljava/util/HashMap;", "", "Lg2/b;", "a", "()Ljava/util/HashMap;"}, k = 3, mv = {1, 8, 0})
public static final class b extends kotlin.jvm.internal.p implements mc.a<HashMap<String, g2.b>> {
public b() {
super(0);
}
@Override
public final HashMap<String, g2.b> invoke() {
List<g2.b> f10 = e0.this.f();
HashMap<String, g2.b> hashMap = new HashMap<>();
for (g2.b bVar : f10) {
for (String str : bVar.c()) {
hashMap.putIfAbsent(str, bVar);
}
}
return hashMap;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/adguard/android/storage/db/Database;", "", "Lm2/c;", "a", "(Lcom/adguard/android/storage/db/Database;)Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class c extends kotlin.jvm.internal.p implements mc.l<Database, List<? extends m2.c>> {
public static final c f3085e = new c();
public c() {
super(1);
}
@Override
public final List<m2.c> invoke(Database process) {
kotlin.jvm.internal.n.g(process, "$this$process");
return process.d().a();
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lcom/adguard/android/storage/db/Database;", "", "a", "(Lcom/adguard/android/storage/db/Database;)V"}, k = 3, mv = {1, 8, 0})
public static final class d extends kotlin.jvm.internal.p implements mc.l<Database, Unit> {
public final Collection<m2.c> f3086e;
public d(Collection<m2.c> collection) {
super(1);
this.f3086e = collection;
}
public final void a(Database process) {
kotlin.jvm.internal.n.g(process, "$this$process");
process.d().c(this.f3086e);
}
@Override
public Unit invoke(Database database) {
a(database);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lcom/adguard/android/storage/db/Database;", "", "a", "(Lcom/adguard/android/storage/db/Database;)V"}, k = 3, mv = {1, 8, 0})
public static final class e extends kotlin.jvm.internal.p implements mc.l<Database, Unit> {
public final Collection<m2.c> f3087e;
public e(Collection<m2.c> collection) {
super(1);
this.f3087e = collection;
}
public final void a(Database process) {
kotlin.jvm.internal.n.g(process, "$this$process");
process.d().b(this.f3087e);
}
@Override
public Unit invoke(Database database) {
a(database);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lcom/adguard/android/storage/db/Database;", "", "a", "(Lcom/adguard/android/storage/db/Database;)V"}, k = 3, mv = {1, 8, 0})
public static final class f extends kotlin.jvm.internal.p implements mc.l<Database, Unit> {
public final List<m2.c> f3088e;
public f(List<m2.c> list) {
super(1);
this.f3088e = list;
}
public final void a(Database process) {
kotlin.jvm.internal.n.g(process, "$this$process");
process.d().d(this.f3088e);
}
@Override
public Unit invoke(Database database) {
a(database);
return Unit.INSTANCE;
}
}
public e0() {
this.f3080b = new h9.b<>(-1L, false, false, new a(z.this), 6, null);
}
@Override
public List<m2.c> a() {
return (List) z.this.f2997h.c(d.b.f2981b, zb.q.j(), this.f3079a, c.f3085e);
}
@Override
public Map<String, g2.b> b() {
HashMap<String, g2.b> hashMap = this.f3081c.get();
if (hashMap == null) {
hashMap = zb.l0.h();
}
return hashMap;
}
@Override
public void c(Collection<m2.c> list) {
kotlin.jvm.internal.n.g(list, "list");
z.this.f2997h.c(new d.c(list.size()), Unit.INSTANCE, this.f3079a, new d(list));
}
@Override
public void d(Collection<m2.c> list) {
kotlin.jvm.internal.n.g(list, "list");
z.this.f2997h.c(new d.C0086d(list.size()), Unit.INSTANCE, this.f3079a, new e(list));
}
@Override
public void e(List<m2.c> list) {
kotlin.jvm.internal.n.g(list, "list");
z.this.f2997h.c(d.f.f2983b, Unit.INSTANCE, this.f3079a, new f(list));
}
public List<g2.b> f() {
List<g2.b> list = this.f3080b.get();
if (list == null) {
list = zb.q.j();
}
return list;
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0007*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R*\u0010\t\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0004\u0010\u0006\"\u0004\b\u0007\u0010\bR*\u0010\u0010\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\n8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\u000b\u0010\r\"\u0004\b\u000e\u0010\u000f¨\u0006\u0011"}, d2 = {"com/adguard/android/storage/z$f", "Lcom/adguard/android/storage/y$e;", "", "value", "a", "Ljava/lang/String;", "()Ljava/lang/String;", "c", "(Ljava/lang/String;)V", "developerName", "", "b", "Z", "()Z", DateTokenConverter.CONVERTER_KEY, "(Z)V", "showToastAfterProtectionRestart", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class f extends y.e {
public String f3089a;
public boolean f3090b;
public f() {
this.f3089a = z.this.d().h();
}
@Override
public String a() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.DeveloperName;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3089a;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3089a = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ShowToastAfterProtectionRestart;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3090b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3090b = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void c(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DeveloperName;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3089a = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void d(boolean z10) {
l2.l lVar = l2.l.ShowToastAfterProtectionRestart;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3090b = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\n*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R$\u0010\b\u001a\u0004\u0018\u00010\u00028\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0003\u0010\u0005\"\u0004\b\u0006\u0010\u0007R$\u0010\u000b\u001a\u0004\u0018\u00010\u00028\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\t\u0010\u0004\u001a\u0004\b\t\u0010\u0005\"\u0004\b\n\u0010\u0007¨\u0006\f"}, d2 = {"com/adguard/android/storage/z$f0", "Lcom/adguard/android/storage/y$x;", "", "a", "Ljava/lang/String;", "()Ljava/lang/String;", "c", "(Ljava/lang/String;)V", "bugReport", "b", DateTokenConverter.CONVERTER_KEY, "featureRequest", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class f0 extends y.x {
public String f3092a;
public String f3093b;
@Override
public String a() {
return this.f3092a;
}
@Override
public String b() {
return this.f3093b;
}
@Override
public void c(String str) {
this.f3092a = str;
}
@Override
public void d(String str) {
this.f3093b = str;
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Ly/b$a;", "a", "()Ly/b$a;"}, k = 3, mv = {1, 8, 0})
public static final class g extends kotlin.jvm.internal.p implements mc.a<b.a> {
public static final g f3094e = new g();
public g() {
super(0);
}
@Override
public final b.a invoke() {
return new b.a();
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0012\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0006*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R\u0014\u0010\u0005\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0007\u001a\u00020\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0004R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0014\u0010\r\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\n¨\u0006\u000e"}, d2 = {"com/adguard/android/storage/z$g0", "Lcom/adguard/android/storage/y$y;", "", DateTokenConverter.CONVERTER_KEY, "()[B", "iptablesExecutableFileCode", "c", "ip6tablesExecutableFileCode", "", "b", "()Ljava/lang/String;", "initTransparentSocketBinaryFilePath", "a", "directoryPathToPutTransparentSocket", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class g0 extends y.AbstractC0087y {
public g0() {
}
@Override
public String a() {
return z.this.f2993d.c("");
}
@Override
public String b() {
String str = Build.CPU_ABI;
String str2 = "/init_transparent_socket/" + str + "/init_socket";
String d10 = z.this.f2993d.d(str2);
if (d10 != null) {
return d10;
}
a9.c unused = z.this.f2994e;
byte[] a10 = a9.n.f506a.a("/preset/routes_equipment/init_transparent_socket/" + str + "/adguard_ipv6_proxy_init");
if (a10 != null) {
z.this.f2993d.m(str2, a10);
return z.this.f2993d.d(str2);
}
z.U.error("The 'adguard_ipv6_proxy_init' file has not been found, the '" + str + "' arch is not supported yet");
return null;
}
@Override
public byte[] c() {
a9.c unused = z.this.f2994e;
byte[] a10 = a9.n.f506a.a("/preset/routes_equipment/ip6tables");
return a10 == null ? new byte[0] : a10;
}
@Override
public byte[] d() {
a9.c unused = z.this.f2994e;
byte[] a10 = a9.n.f506a.a("/preset/routes_equipment/iptables");
if (a10 == null) {
a10 = new byte[0];
}
return a10;
}
}
@Metadata(d1 = {"\u0000K\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\t\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0012\u0010\u0006\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0018\u0010\t\u001a\u00020\b2\u0006\u0010\u0007\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\n\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\b\u0010\u000b\u001a\u00020\bH\u0016J\u0018\u0010\r\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\u000e\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0002R\u0014\u0010\u0011\u001a\u00020\u00028\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u000f\u0010\u0010R6\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u00130\u00122\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00130\u00128V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR6\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00122\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00128V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0017\u0010\u0016\u001a\u0004\b\u001d\u0010\u0018\"\u0004\b\u001e\u0010\u001aR*\u0010&\u001a\u00020 2\u0006\u0010\u0014\u001a\u00020 8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001d\u0010!\u001a\u0004\b\"\u0010#\"\u0004\b$\u0010%R6\u0010(\u001a\b\u0012\u0004\u0012\u00020\u00040\u00122\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00040\u00128V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\"\u0010\u0016\u001a\u0004\b\u000f\u0010\u0018\"\u0004\b'\u0010\u001aR6\u0010*\u001a\b\u0012\u0004\u0012\u00020\u00040\u00122\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00040\u00128V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\u0016\u001a\u0004\b\u0015\u0010\u0018\"\u0004\b)\u0010\u001aR \u0010-\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00040+8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010,R \u00100\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00130\u00120.8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010/R \u00101\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u001c0\u00120.8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0005\u0010/R\u001a\u00103\u001a\b\u0012\u0004\u0012\u00020\u00130\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b2\u0010\u0018R\u001a\u00105\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b4\u0010\u0018¨\u00066"}, d2 = {"com/adguard/android/storage/z$h", "Lcom/adguard/android/storage/y$f;", "", "id", "", IntegerTokenConverter.CONVERTER_KEY, "f", "content", "", "j", "g", "h", "filePath", "k", "u", "a", "I", "ADGUARD_DNS_FILTER_ID", "", "Ld2/a;", "value", "b", "Ljava/util/List;", "c", "()Ljava/util/List;", "n", "(Ljava/util/List;)V", "list", "Lc2/a;", DateTokenConverter.CONVERTER_KEY, "o", "metaList", "", "Z", "e", "()Z", "p", "(Z)V", "userFiltersEnabled", "l", "allUserRules", "m", "disabledUserRules", "Ljava/util/concurrent/ConcurrentHashMap;", "Ljava/util/concurrent/ConcurrentHashMap;", "filterRulesCache", "Lh9/b;", "Lh9/b;", "filtersCacheBox", "filtersMetaCacheBox", "t", "defaultList", "s", "defaultFiltersMeta", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class h extends y.f {
public final h9.b<List<d2.a>> f3103h;
public final int f3096a = 15;
public List<? extends d2.a> f3097b = zb.q.j();
public List<c2.a> f3098c = zb.q.j();
public boolean f3099d = true;
public List<String> f3100e = zb.q.j();
public List<String> f3101f = zb.q.j();
public final ConcurrentHashMap<Integer, String> f3102g = new ConcurrentHashMap<>();
public final h9.b<List<c2.a>> f3104i = new h9.b<>(-1, true, true, new f());
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class c extends TypeReference<List<? extends d2.a>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class d extends TypeReference<List<? extends c2.a>> {
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"", "Ld2/a;", "a", "()Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class e extends kotlin.jvm.internal.p implements mc.a<List<? extends d2.a>> {
public final z f3106e;
public final h f3107g;
public final Context f3108h;
public e(z zVar, h hVar, Context context) {
super(0);
this.f3106e = zVar;
this.f3107g = hVar;
this.f3108h = context;
}
@Override
public final List<d2.a> invoke() {
List<d2.a> b10 = this.f3106e.Y().b(zb.p.d(Integer.valueOf(this.f3107g.f3096a)));
Context context = this.f3108h;
h hVar = this.f3107g;
for (d2.a aVar : b10) {
String absolutePath = context.getCacheDir().getAbsolutePath();
String u10 = hVar.u(aVar.f());
if (!new File(absolutePath + u10).exists()) {
uh.c cVar = z.U;
int f10 = aVar.f();
cVar.debug("Initializing preset DNS filtering rules file for filter with ID " + f10);
String i10 = hVar.i(aVar.f());
if (i10 != null) {
hVar.j(i10, aVar.f());
}
}
}
return b10;
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"", "Lc2/a;", "a", "()Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class f extends kotlin.jvm.internal.p implements mc.a<List<? extends c2.a>> {
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public class a extends kotlin.jvm.internal.l implements mc.l<Integer, String> {
public a(Object obj) {
super(1, obj, h.class, "rulesById", "rulesById(I)Ljava/lang/String;", 0);
}
@Override
public String invoke(Integer num) {
return w(num.intValue());
}
public final String w(int i10) {
return ((h) this.receiver).i(i10);
}
}
public f() {
super(0);
}
@Override
public final List<c2.a> invoke() {
return new b.a().y(h.this.t(), new a(h.this));
}
}
public h(Context context) {
this.f3103h = new h9.b<>(-1L, true, true, new e(z.this, this, context));
}
@Override
public List<String> a() {
String str;
List<String> list;
l2.l lVar = l2.l.DnsUserRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3100e;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str2 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str2 = valueOf;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
int i10 = 1 >> 0;
str = Float.valueOf(c12.getFloat(prefName, 0.0f));
} else {
str = null;
}
if (str instanceof String) {
str2 = str;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf2 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf2 instanceof String) {
str2 = valueOf2;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf3 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf3 instanceof String) {
str2 = valueOf3;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str2 = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str2 = stringSet;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str2, aVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3100e = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<String> b() {
List<String> list;
l2.l lVar = l2.l.DisabledDnsUserRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3101f;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3101f = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<d2.a> c() {
String str;
List<d2.a> list;
l2.l lVar = l2.l.DnsFiltersList;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3097b;
c cVar = new c();
boolean z10 = false;
Collection collection = null;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Boolean valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (!(valueOf instanceof String)) {
valueOf = null;
}
str = (String) valueOf;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Float valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (!(valueOf2 instanceof String)) {
valueOf2 = null;
}
str = (String) valueOf2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Integer valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (!(valueOf3 instanceof String)) {
valueOf3 = null;
}
str = (String) valueOf3;
} else {
if (kotlin.jvm.internal.n.b(String.class, Long.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Long.class)) {
SharedPreferences c14 = bVar.c();
Long valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (!(valueOf4 instanceof String)) {
valueOf4 = null;
}
str = (String) valueOf4;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
str = c15 != null ? c15.getString(prefName, null) : null;
if (!(str instanceof String)) {
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (!(stringSet instanceof String)) {
stringSet = null;
}
str = (String) stringSet;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
Object b10 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
str = null;
Object b102 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
obj = b102;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
Collection collection2 = (Collection) obj;
if (collection2 == null || collection2.isEmpty()) {
z10 = true;
}
if (!z10) {
collection = collection2;
}
list = (List) collection;
if (list == null) {
list = t();
y6.b.k(zVar.f2995f, list, l2.l.DnsFiltersList, null, 4, null);
}
this.f3097b = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<c2.a> d() {
String str;
List<c2.a> list;
l2.l lVar = l2.l.DnsFiltersMeta;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3098c;
d dVar = new d();
boolean z10 = false;
List<c2.a> list2 = null;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Boolean valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (!(valueOf instanceof String)) {
valueOf = null;
}
str = (String) valueOf;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Float valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (!(valueOf2 instanceof String)) {
valueOf2 = null;
}
str = (String) valueOf2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Integer valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (!(valueOf3 instanceof String)) {
valueOf3 = null;
}
str = (String) valueOf3;
} else {
if (kotlin.jvm.internal.n.b(String.class, Long.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Long.class)) {
SharedPreferences c14 = bVar.c();
Long valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (!(valueOf4 instanceof String)) {
valueOf4 = null;
}
str = (String) valueOf4;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
str = c15 != null ? c15.getString(prefName, null) : null;
if (!(str instanceof String)) {
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (!(stringSet instanceof String)) {
stringSet = null;
}
str = (String) stringSet;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
Object b10 = a9.h.b(str, dVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
str = null;
Object b102 = a9.h.b(str, dVar);
bVar.d().add(lVar.getPrefName());
obj = b102;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
List<c2.a> list3 = (Collection) obj;
if (list3 == null || list3.isEmpty()) {
z10 = true;
}
if (!z10) {
list2 = list3;
}
list = list2;
if (list == null) {
list = s();
y6.b.k(zVar.f2995f, list, l2.l.DnsFiltersMeta, null, 4, null);
}
this.f3098c = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean e() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DnsUserFilterEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3099d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3099d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String f(int i10) {
return z.this.f2992c.d(u(i10));
}
@Override
public void g(int i10) {
this.f3102g.remove(Integer.valueOf(i10));
z.this.f2992c.k(u(i10));
z.this.d0(l2.p.DnsFiltersList);
}
@Override
public void h() {
this.f3103h.f();
this.f3104i.f();
}
@Override
public String i(int i10) {
String str;
String str2 = this.f3102g.get(Integer.valueOf(i10));
if (str2 == null) {
str2 = z.this.f2992c.h(u(i10));
if (str2 != null) {
this.f3102g.put(Integer.valueOf(i10), str2);
} else {
str2 = null;
}
if (str2 == null) {
a9.c unused = z.this.f2994e;
String str3 = "/assets" + ("/preset/dns_filter_" + i10 + ".txt");
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str3);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
} else {
str = null;
}
str2 = str;
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str3 + "' path", th2);
str2 = null;
}
if (str2 != null) {
this.f3102g.put(Integer.valueOf(i10), str2);
} else {
str2 = null;
}
}
}
return str2;
}
@Override
public void j(String content, int i10) {
kotlin.jvm.internal.n.g(content, "content");
this.f3102g.put(Integer.valueOf(i10), content);
z.this.f2992c.l(u(i10), content);
z.this.d0(l2.p.DnsFiltersList);
}
@Override
public void k(String filePath, int i10) {
String str;
kotlin.jvm.internal.n.g(filePath, "filePath");
String i11 = z.this.f2992c.i(filePath);
if (i11 != null && (str = (String) z5.w.h(i11)) != null) {
j(str, i10);
return;
}
uh.c cVar = z.U;
cVar.debug("Failed to save content for filter with id " + i10 + ": the content is null or blank");
}
@Override
public void l(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsUserRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3100e = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void m(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DisabledDnsUserRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3101f = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void n(List<? extends d2.a> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsFiltersList;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3097b = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void o(List<c2.a> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsFiltersMeta;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3098c = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void p(boolean z10) {
l2.l lVar = l2.l.DnsUserFilterEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3099d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
public List<c2.a> s() {
List<c2.a> list = this.f3104i.get();
return list == null ? zb.q.j() : list;
}
public List<d2.a> t() {
List<d2.a> list = this.f3103h.get();
return list == null ? zb.q.j() : list;
}
public final String u(int i10) {
return "/dns_filters/filter_" + i10 + ".txt";
}
}
@Metadata(d1 = {"\u0000Y\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0017\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0010\u000e\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\"\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R*\u0010\n\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR*\u0010\u0012\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u000b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\f\u0010\r\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R*\u0010\u0016\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u000b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0013\u0010\r\u001a\u0004\b\u0014\u0010\u000f\"\u0004\b\u0015\u0010\u0011R*\u0010\u001e\u001a\u00020\u00172\u0006\u0010\u0003\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u001a\u0010\u001b\"\u0004\b\u001c\u0010\u001dR*\u0010\"\u001a\u00020\u00172\u0006\u0010\u0003\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001f\u0010\u0019\u001a\u0004\b \u0010\u001b\"\u0004\b!\u0010\u001dR*\u0010&\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u000b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b#\u0010\r\u001a\u0004\b$\u0010\u000f\"\u0004\b%\u0010\u0011R*\u0010*\u001a\u00020\u00172\u0006\u0010\u0003\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b'\u0010\u0019\u001a\u0004\b(\u0010\u001b\"\u0004\b)\u0010\u001dR*\u0010.\u001a\u00020\u00172\u0006\u0010\u0003\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b+\u0010\u0019\u001a\u0004\b,\u0010\u001b\"\u0004\b-\u0010\u001dR*\u00105\u001a\u00020/2\u0006\u0010\u0003\u001a\u00020/8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b0\u00101\u001a\u0004\b\u0018\u00102\"\u0004\b3\u00104R*\u00108\u001a\u00020/2\u0006\u0010\u0003\u001a\u00020/8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b6\u00101\u001a\u0004\b#\u00102\"\u0004\b7\u00104R\"\u0010;\u001a\u00020/8\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b9\u00101\u001a\u0004\b\u001f\u00102\"\u0004\b:\u00104R*\u0010=\u001a\u00020/2\u0006\u0010\u0003\u001a\u00020/8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0014\u00101\u001a\u0004\b\u0013\u00102\"\u0004\b<\u00104R*\u0010D\u001a\u00020>2\u0006\u0010\u0003\u001a\u00020>8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b$\u0010?\u001a\u0004\b@\u0010A\"\u0004\bB\u0010CR*\u0010F\u001a\u00020/2\u0006\u0010\u0003\u001a\u00020/8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000e\u00101\u001a\u0004\b\u0004\u00102\"\u0004\bE\u00104R.\u0010L\u001a\u0004\u0018\u00010G2\b\u0010\u0003\u001a\u0004\u0018\u00010G8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b(\u0010H\u001a\u0004\b6\u0010I\"\u0004\bJ\u0010KR.\u0010R\u001a\u0004\u0018\u00010M2\b\u0010\u0003\u001a\u0004\u0018\u00010M8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b,\u0010N\u001a\u0004\b'\u0010O\"\u0004\bP\u0010QR.\u0010Y\u001a\u0004\u0018\u00010S2\b\u0010\u0003\u001a\u0004\u0018\u00010S8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010T\u001a\u0004\bU\u0010V\"\u0004\bW\u0010XR\"\u0010[\u001a\u00020/8\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b\u001a\u00101\u001a\u0004\b9\u00102\"\u0004\bZ\u00104R\"\u0010]\u001a\u00020/8\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b \u00101\u001a\u0004\b+\u00102\"\u0004\b\\\u00104R.\u0010d\u001a\u0004\u0018\u00010^2\b\u0010\u0003\u001a\u0004\u0018\u00010^8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b_\u0010`\u001a\u0004\b\f\u0010a\"\u0004\bb\u0010cR6\u0010j\u001a\b\u0012\u0004\u0012\u00020>0e2\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020>0e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bU\u0010f\u001a\u0004\b0\u0010g\"\u0004\bh\u0010iR*\u0010l\u001a\u00020/2\u0006\u0010\u0003\u001a\u00020/8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b@\u00101\u001a\u0004\b_\u00102\"\u0004\bk\u00104¨\u0006m"}, d2 = {"com/adguard/android/storage/z$h0", "Lcom/adguard/android/storage/y$z;", "Lcom/adguard/android/storage/DatePeriod;", "value", "a", "Lcom/adguard/android/storage/DatePeriod;", "q", "()Lcom/adguard/android/storage/DatePeriod;", "M", "(Lcom/adguard/android/storage/DatePeriod;)V", "selectedStatisticsDatePeriod", "Lcom/adguard/android/ui/viewmodel/statistics/support/NetworkTypeForUI;", "b", "Lcom/adguard/android/ui/viewmodel/statistics/support/NetworkTypeForUI;", "n", "()Lcom/adguard/android/ui/viewmodel/statistics/support/NetworkTypeForUI;", "J", "(Lcom/adguard/android/ui/viewmodel/statistics/support/NetworkTypeForUI;)V", "selectedNetworkTypeForRequestsOnStatisticsScreen", "c", "l", "H", "selectedNetworkTypeForDataUsageOnStatisticsScreen", "Lcom/adguard/android/ui/viewmodel/statistics/support/GroupedStatisticsSortedBy;", DateTokenConverter.CONVERTER_KEY, "Lcom/adguard/android/ui/viewmodel/statistics/support/GroupedStatisticsSortedBy;", "r", "()Lcom/adguard/android/ui/viewmodel/statistics/support/GroupedStatisticsSortedBy;", "N", "(Lcom/adguard/android/ui/viewmodel/statistics/support/GroupedStatisticsSortedBy;)V", "selectedStatisticsSortedByForApplications", "e", "s", "O", "selectedStatisticsSortedByForCompanies", "f", "m", "I", "selectedNetworkTypeForDnsOnStatisticsScreen", "g", "o", "K", "selectedSortedByOnAllDomainsStatisticsScreen", "h", "p", "L", "selectedSortedByOnAllSubdomainsStatisticsScreen", "", IntegerTokenConverter.CONVERTER_KEY, "Z", "()Z", "z", "(Z)V", "foreverDismissedHttpsFilteringSnackbar", "j", "B", "integrationDialogWasShown", "k", "A", "incompatibleVersionsDialogWasShown", "y", "exitDialogShouldBeShown", "", "Ljava/lang/String;", "v", "()Ljava/lang/String;", "R", "(Ljava/lang/String;)V", "whatsNewDialogShownLastVersion", "w", "backgroundActivityCardShouldBeShown", "Lcom/adguard/android/storage/PromoNotification;", "Lcom/adguard/android/storage/PromoNotification;", "()Lcom/adguard/android/storage/PromoNotification;", "F", "(Lcom/adguard/android/storage/PromoNotification;)V", "promoNotification", "Ll2/g;", "Ll2/g;", "()Ll2/g;", "C", "(Ll2/g;)V", "licenseExpirationNotification", "Ll2/r;", "Ll2/r;", "u", "()Ll2/r;", "Q", "(Ll2/r;)V", "trialExpirationNotification", "G", "promoScreenShown", "D", "licenseOrTrialScreenExpiredShown", "Ll2/a;", "t", "Ll2/a;", "()Ll2/a;", "x", "(Ll2/a;)V", "callToBuyLicenseNotification", "", "Ljava/util/Set;", "()Ljava/util/Set;", "E", "(Ljava/util/Set;)V", "processedFiltersUpdatesProblemsSnacks", "P", "showDeveloperToolsOnHomeScreen", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class h0 extends y.z {
public DatePeriod f3110a = DatePeriod.Companion.getDefault();
public NetworkTypeForUI f3111b;
public NetworkTypeForUI f3112c;
public GroupedStatisticsSortedBy f3113d;
public GroupedStatisticsSortedBy f3114e;
public NetworkTypeForUI f3115f;
public GroupedStatisticsSortedBy f3116g;
public GroupedStatisticsSortedBy f3117h;
public boolean f3118i;
public boolean f3119j;
public boolean f3120k;
public boolean f3121l;
public String f3122m;
public boolean f3123n;
public PromoNotification f3124o;
public l2.g f3125p;
public l2.r f3126q;
public boolean f3127r;
public boolean f3128s;
public l2.a f3129t;
public Set<String> f3130u;
public boolean f3131v;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<l2.a> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<l2.g> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class c extends TypeReference<l2.r> {
}
public h0() {
NetworkTypeForUI.Companion companion = NetworkTypeForUI.Companion;
this.f3111b = companion.getDefault();
this.f3112c = companion.getDefault();
GroupedStatisticsSortedBy.Companion companion2 = GroupedStatisticsSortedBy.Companion;
this.f3113d = companion2.getDefault();
this.f3114e = companion2.getDefault();
this.f3115f = companion.getDefault();
this.f3116g = companion2.getDefault();
this.f3117h = companion2.getDefault();
this.f3121l = true;
this.f3122m = z.this.c0().a();
this.f3123n = true;
this.f3130u = q0.d();
}
@Override
public void A(boolean z10) {
this.f3120k = z10;
}
@Override
public void B(boolean z10) {
l2.l lVar = l2.l.IntegrationDialogWasShown;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3119j = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void C(l2.g gVar) {
l2.l lVar = l2.l.LicenseExpirationNotification;
z zVar = z.this;
synchronized (lVar) {
try {
this.f3125p = (l2.g) y6.b.k(zVar.f2995f, gVar, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void D(boolean z10) {
this.f3128s = z10;
}
@Override
public void E(Set<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ProcessedFiltersUpdatesProblemsSnacks;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3130u = (Set) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void F(PromoNotification promoNotification) {
l2.l lVar = l2.l.PromoNotification;
z zVar = z.this;
synchronized (lVar) {
try {
Object obj = null;
Integer num = (Integer) y6.b.i(zVar.f2995f, promoNotification != null ? Integer.valueOf(promoNotification.getCode()) : null, lVar, null, 4, null);
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(PromoNotification.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
obj = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
this.f3124o = (PromoNotification) obj;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void G(boolean z10) {
this.f3127r = z10;
}
@Override
public void H(NetworkTypeForUI value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedNetworkTypeForDataUsageOnStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(NetworkTypeForUI.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3112c = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void I(NetworkTypeForUI value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedNetworkTypeForDnsOnStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
boolean z10 = false | false;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(NetworkTypeForUI.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3115f = r12;
Unit unit = Unit.INSTANCE;
}
}
@Override
public void J(NetworkTypeForUI value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedNetworkTypeForRequestsOnStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(NetworkTypeForUI.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3111b = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void K(GroupedStatisticsSortedBy value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedSortedByOnAllDomainsStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3116g = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void L(GroupedStatisticsSortedBy value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedSortedByOnAllSubdomainsStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true | false;
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3117h = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void M(DatePeriod value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedStatisticsDatePeriod;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(DatePeriod.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3110a = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void N(GroupedStatisticsSortedBy value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedStatisticsSortedByForApplications;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3113d = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void O(GroupedStatisticsSortedBy value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedStatisticsSortedByForCompanies;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3114e = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void P(boolean z10) {
l2.l lVar = l2.l.ShowDeveloperToolsOnHomeScreen;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3131v = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void Q(l2.r rVar) {
l2.l lVar = l2.l.TrialExpirationNotification;
z zVar = z.this;
synchronized (lVar) {
try {
this.f3126q = (l2.r) y6.b.k(zVar.f2995f, rVar, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void R(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.WhatsNewDialogShownLastVersion;
z zVar = z.this;
synchronized (lVar) {
boolean z10 = true | true;
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3122m = (String) i10;
Unit unit = Unit.INSTANCE;
}
}
@Override
public boolean a() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.BackgroundActivityCardShouldBeShown;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3123n);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3123n = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public l2.a b() {
l2.a aVar;
l2.l lVar = l2.l.CallToBuyLicenseNotification;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
l2.a aVar2 = this.f3129t;
a aVar3 = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar3);
bVar.d().add(lVar.getPrefName());
aVar2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
aVar = aVar2;
this.f3129t = aVar;
} catch (Throwable th2) {
throw th2;
}
}
return aVar;
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ExitDialogShouldBeShown;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3121l);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3121l = booleanValue;
}
return booleanValue;
}
@Override
public boolean d() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ForeverDismissedHttpsFilteringSnackbar;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3118i);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3118i = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean e() {
return this.f3120k;
}
@Override
public boolean f() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.IntegrationDialogWasShown;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3119j);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3119j = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public l2.g g() {
l2.g gVar;
l2.l lVar = l2.l.LicenseExpirationNotification;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
l2.g gVar2 = this.f3125p;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
gVar2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
gVar = gVar2;
this.f3125p = gVar;
} catch (Throwable th2) {
throw th2;
}
}
return gVar;
}
@Override
public boolean h() {
return this.f3128s;
}
@Override
public Set<String> i() {
Set<String> set;
Set<String> set2;
Set<String> set3;
String str;
Set<String> set4;
Set<String> set5;
Set<String> set6;
Set<String> set7;
l2.l lVar = l2.l.ProcessedFiltersUpdatesProblemsSnacks;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
set = this.f3130u;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true | false;
boolean z11 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
set2 = set;
} else {
set2 = null;
if (kotlin.jvm.internal.n.b(Set.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Set.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = set instanceof Boolean ? (Boolean) set : null;
set7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
set7 = null;
}
if (set7 instanceof Set) {
set2 = set7;
}
set2 = set2;
} else {
if (kotlin.jvm.internal.n.b(Set.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Set.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = set instanceof Float ? (Float) set : null;
set6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
set6 = null;
}
if (set6 instanceof Set) {
set2 = set6;
}
set2 = set2;
} else {
if (kotlin.jvm.internal.n.b(Set.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Set.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = set instanceof Integer ? (Integer) set : null;
set5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
set5 = null;
}
if (set5 instanceof Set) {
set2 = set5;
}
set2 = set2;
} else {
if (!kotlin.jvm.internal.n.b(Set.class, Long.TYPE)) {
z11 = kotlin.jvm.internal.n.b(Set.class, Long.class);
}
if (z11) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = set instanceof Long ? (Long) set : null;
set4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
set4 = null;
}
if (set4 instanceof Set) {
set2 = set4;
}
set2 = set2;
} else if (kotlin.jvm.internal.n.b(Set.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, set instanceof String ? (String) set : null);
} else {
str = null;
}
if (str instanceof Set) {
set2 = str;
}
set2 = set2;
} else if (kotlin.jvm.internal.n.b(Set.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set3 = c16.getStringSet(prefName, set instanceof Set ? set : null);
} else {
set3 = null;
}
if (set3 instanceof Set) {
set2 = set3;
}
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Set.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
set = set2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Set.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(set);
this.f3130u = set;
} catch (Throwable th2) {
throw th2;
}
}
return set;
}
@Override
public PromoNotification j() {
Set<String> set;
Integer num;
String str;
Long l10;
Float f10;
Boolean bool;
PromoNotification promoNotification;
l2.l lVar = l2.l.PromoNotification;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3124o;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer num2 = -1;
SharedPreferences c10 = bVar.c();
boolean z10 = true;
Object obj2 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = num2 instanceof Boolean ? (Boolean) num2 : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
num = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = num2 instanceof Float ? (Float) num2 : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
num = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
num = c13 != null ? Integer.valueOf(c13.getInt(prefName, num2.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = num2 instanceof Long ? (Long) num2 : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
num = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, num2 instanceof String ? (String) num2 : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
num = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, num2 instanceof Set ? (Set) num2 : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
num = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
num2 = null;
}
}
}
}
num2 = num;
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(PromoNotification.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (num2 == null) {
throw new Exception("A code from preferences is null");
}
obj2 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, num2.intValue(), null, 2, null);
}
obj = obj2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + PromoNotification.class + " value from preferences", e10);
}
}
promoNotification = (PromoNotification) obj;
this.f3124o = promoNotification;
} catch (Throwable th2) {
throw th2;
}
}
return promoNotification;
}
@Override
public boolean k() {
return this.f3127r;
}
@Override
public NetworkTypeForUI l() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
NetworkTypeForUI networkTypeForUI;
l2.l lVar = l2.l.SelectedNetworkTypeForDataUsageOnStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
NetworkTypeForUI networkTypeForUI2 = this.f3112c;
int code = networkTypeForUI2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
Object obj = 0;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(NetworkTypeForUI.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
obj = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
networkTypeForUI2 = obj;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + NetworkTypeForUI.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(networkTypeForUI2);
networkTypeForUI = networkTypeForUI2;
this.f3112c = networkTypeForUI;
} catch (Throwable th2) {
throw th2;
}
}
return networkTypeForUI;
}
@Override
public NetworkTypeForUI m() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
NetworkTypeForUI networkTypeForUI;
l2.l lVar = l2.l.SelectedNetworkTypeForDnsOnStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
NetworkTypeForUI networkTypeForUI2 = this.f3115f;
int code = networkTypeForUI2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
NetworkTypeForUI networkTypeForUI3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(NetworkTypeForUI.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
networkTypeForUI3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
networkTypeForUI2 = networkTypeForUI3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + NetworkTypeForUI.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(networkTypeForUI2);
networkTypeForUI = networkTypeForUI2;
this.f3115f = networkTypeForUI;
} catch (Throwable th2) {
throw th2;
}
}
return networkTypeForUI;
}
@Override
public NetworkTypeForUI n() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
NetworkTypeForUI networkTypeForUI;
l2.l lVar = l2.l.SelectedNetworkTypeForRequestsOnStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
NetworkTypeForUI networkTypeForUI2 = this.f3111b;
int code = networkTypeForUI2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
?? r82 = 0;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(NetworkTypeForUI.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
r82 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
networkTypeForUI2 = r82;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + NetworkTypeForUI.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(networkTypeForUI2);
networkTypeForUI = networkTypeForUI2;
this.f3111b = networkTypeForUI;
} catch (Throwable th2) {
throw th2;
}
}
return networkTypeForUI;
}
@Override
public GroupedStatisticsSortedBy o() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
GroupedStatisticsSortedBy groupedStatisticsSortedBy;
l2.l lVar = l2.l.SelectedSortedByOnAllDomainsStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
GroupedStatisticsSortedBy groupedStatisticsSortedBy2 = this.f3116g;
int code = groupedStatisticsSortedBy2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
int i10 = 6 << 0;
boolean z10 = true;
Object obj = 0;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
obj = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
groupedStatisticsSortedBy2 = obj;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + GroupedStatisticsSortedBy.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(groupedStatisticsSortedBy2);
groupedStatisticsSortedBy = groupedStatisticsSortedBy2;
this.f3116g = groupedStatisticsSortedBy;
} catch (Throwable th2) {
throw th2;
}
}
return groupedStatisticsSortedBy;
}
@Override
public GroupedStatisticsSortedBy p() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
GroupedStatisticsSortedBy groupedStatisticsSortedBy;
l2.l lVar = l2.l.SelectedSortedByOnAllSubdomainsStatisticsScreen;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
GroupedStatisticsSortedBy groupedStatisticsSortedBy2 = this.f3117h;
int code = groupedStatisticsSortedBy2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
GroupedStatisticsSortedBy groupedStatisticsSortedBy3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
groupedStatisticsSortedBy3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
groupedStatisticsSortedBy2 = groupedStatisticsSortedBy3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + GroupedStatisticsSortedBy.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(groupedStatisticsSortedBy2);
groupedStatisticsSortedBy = groupedStatisticsSortedBy2;
this.f3117h = groupedStatisticsSortedBy;
} catch (Throwable th2) {
throw th2;
}
}
return groupedStatisticsSortedBy;
}
@Override
public DatePeriod q() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
DatePeriod datePeriod;
l2.l lVar = l2.l.SelectedStatisticsDatePeriod;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
DatePeriod datePeriod2 = this.f3110a;
int code = datePeriod2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
DatePeriod datePeriod3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(DatePeriod.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
datePeriod3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
datePeriod2 = datePeriod3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + DatePeriod.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(datePeriod2);
datePeriod = datePeriod2;
this.f3110a = datePeriod;
} catch (Throwable th2) {
throw th2;
}
}
return datePeriod;
}
@Override
public GroupedStatisticsSortedBy r() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
GroupedStatisticsSortedBy groupedStatisticsSortedBy;
l2.l lVar = l2.l.SelectedStatisticsSortedByForApplications;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
GroupedStatisticsSortedBy groupedStatisticsSortedBy2 = this.f3113d;
int code = groupedStatisticsSortedBy2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
?? r82 = 0;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
r82 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
groupedStatisticsSortedBy2 = r82;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + GroupedStatisticsSortedBy.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(groupedStatisticsSortedBy2);
groupedStatisticsSortedBy = groupedStatisticsSortedBy2;
this.f3113d = groupedStatisticsSortedBy;
} catch (Throwable th2) {
throw th2;
}
}
return groupedStatisticsSortedBy;
}
@Override
public GroupedStatisticsSortedBy s() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
GroupedStatisticsSortedBy groupedStatisticsSortedBy;
l2.l lVar = l2.l.SelectedStatisticsSortedByForCompanies;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
GroupedStatisticsSortedBy groupedStatisticsSortedBy2 = this.f3114e;
int code = groupedStatisticsSortedBy2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
Object obj = 0;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(GroupedStatisticsSortedBy.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
obj = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
groupedStatisticsSortedBy2 = obj;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + GroupedStatisticsSortedBy.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(groupedStatisticsSortedBy2);
groupedStatisticsSortedBy = groupedStatisticsSortedBy2;
this.f3114e = groupedStatisticsSortedBy;
} catch (Throwable th2) {
throw th2;
}
}
return groupedStatisticsSortedBy;
}
@Override
public boolean t() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ShowDeveloperToolsOnHomeScreen;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3131v);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3131v = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public l2.r u() {
l2.r rVar;
l2.l lVar = l2.l.TrialExpirationNotification;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
l2.r rVar2 = this.f3126q;
c cVar = new c();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
rVar2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
rVar = rVar2;
this.f3126q = rVar;
} catch (Throwable th2) {
throw th2;
}
}
return rVar;
}
@Override
public String v() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.WhatsNewDialogShownLastVersion;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3122m;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3122m = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public void w(boolean z10) {
l2.l lVar = l2.l.BackgroundActivityCardShouldBeShown;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3123n = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void x(l2.a aVar) {
l2.l lVar = l2.l.CallToBuyLicenseNotification;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true ^ true;
this.f3129t = (l2.a) y6.b.k(zVar.f2995f, aVar, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void y(boolean z10) {
l2.l lVar = l2.l.ExitDialogShouldBeShown;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3121l = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void z(boolean z10) {
l2.l lVar = l2.l.ForeverDismissedHttpsFilteringSnackbar;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3118i = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u00005\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0016\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016RB\u0010\u000f\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\b0\u00072\u0012\u0010\t\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\b0\u00078V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\n\u001a\u0004\b\u000b\u0010\f\"\u0004\b\r\u0010\u000eR>\u0010\u0015\u001a,\u0012(\u0012&\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00120\u0004\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u00040\u00070\u00110\u00108\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0013\u0010\u0014R\u001a\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00120\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0016¨\u0006\u0018"}, d2 = {"com/adguard/android/storage/z$i", "Lcom/adguard/android/storage/y$g;", "", "serverId", "", "Lc2/h;", "a", "", "Lc2/c;", "value", "Ljava/util/Map;", "c", "()Ljava/util/Map;", DateTokenConverter.CONVERTER_KEY, "(Ljava/util/Map;)V", "preferredServersByUser", "Lh9/b;", "Lyb/n;", "Ll2/c;", "b", "Lh9/b;", "localizedProvidersWithFeatures", "()Ljava/util/List;", "list", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class i extends y.g {
public Map<Integer, ? extends c2.c> f3133a;
public final h9.b<yb.n<List<l2.c>, Map<Integer, List<c2.h>>>> f3134b;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<Map<Integer, ? extends c2.c>> {
}
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0006\u001a(\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00020\u0001\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020\u0004\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u00010\u0003\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"Lyb/n;", "", "Ll2/c;", "", "", "Lc2/h;", "a", "()Lyb/n;"}, k = 3, mv = {1, 8, 0})
public static final class b extends kotlin.jvm.internal.p implements mc.a<yb.n<? extends List<? extends l2.c>, ? extends Map<Integer, ? extends List<? extends c2.h>>>> {
public final z f3136e;
public b(z zVar) {
super(0);
this.f3136e = zVar;
}
@Override
public final yb.n<List<l2.c>, Map<Integer, List<c2.h>>> invoke() {
String str;
Object d10;
List n02;
String str2;
Object d11;
String str3;
Object d12;
List n03;
InputStream resourceAsStream;
InputStream resourceAsStream2;
InputStream resourceAsStream3;
a9.c unused = this.f3136e.f2994e;
String str4 = "/assets/preset/dns_providers.json";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
LinkedHashMap linkedHashMap = null;
try {
resourceAsStream3 = a9.n.class.getResourceAsStream(str4);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str4 + "' path", th2);
}
if (resourceAsStream3 != null) {
kotlin.jvm.internal.n.f(resourceAsStream3, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream3, ff.c.f15045b);
jc.c.a(resourceAsStream3, null);
d10 = str == null ? a9.h.d(str, c2.f[].class) : null;
if (d10 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /preset/dns_providers.json");
}
Object[] objArr = (Object[]) d10;
n02 = objArr == null ? zb.l.n0(objArr) : null;
if (n02 != null) {
yb.n<List<l2.c>, Map<Integer, List<c2.h>>> nVar = new yb.n<>(zb.q.j(), zb.l0.h());
z.U.warn("The json with DNS providers wasn't parsed, returning empty list of providers");
return nVar;
}
a9.c unused2 = this.f3136e.f2994e;
String str5 = "/assets/preset/dns_providers_i18n.json";
uh.c _LOG2 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG2, "_LOG");
try {
resourceAsStream2 = a9.n.class.getResourceAsStream(str5);
} catch (Throwable th3) {
_LOG2.error("The error occurred while getting the APK resource as a string by the '" + str5 + "' path", th3);
}
if (resourceAsStream2 != null) {
kotlin.jvm.internal.n.f(resourceAsStream2, "getResourceAsStream(path)");
str2 = z5.l.a(resourceAsStream2, ff.c.f15045b);
jc.c.a(resourceAsStream2, null);
d11 = str2 == null ? a9.h.d(str2, c2.e.class) : null;
if (d11 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /preset/dns_providers_i18n.json");
}
c2.e eVar = (c2.e) d11;
a9.c unused3 = this.f3136e.f2994e;
String str6 = "/assets/preset/dns_server_features.json";
uh.c _LOG3 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG3, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str6);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str3 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
d12 = str3 != null ? a9.h.d(str3, c2.i[].class) : null;
if (d12 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /preset/dns_server_features.json");
}
Object[] objArr2 = (Object[]) d12;
n03 = objArr2 != null ? zb.l.n0(objArr2) : null;
if (n03 != null) {
linkedHashMap = new LinkedHashMap(sc.l.a(zb.k0.d(zb.r.u(n03, 10)), 16));
for (Object obj : n03) {
linkedHashMap.put(((c2.i) obj).d(), obj);
}
}
return yb.t.a(c2.g.f(n02, eVar), c2.g.e(n02, eVar, linkedHashMap));
}
str3 = null;
if (str3 != null) {
}
if (d12 == null) {
}
Object[] objArr22 = (Object[]) d12;
if (objArr22 != null) {
}
if (n03 != null) {
}
return yb.t.a(c2.g.f(n02, eVar), c2.g.e(n02, eVar, linkedHashMap));
}
str2 = null;
if (str2 == null) {
}
if (d11 == null) {
}
c2.e eVar2 = (c2.e) d11;
a9.c unused32 = this.f3136e.f2994e;
String str62 = "/assets/preset/dns_server_features.json";
uh.c _LOG32 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG32, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str62);
if (resourceAsStream != null) {
}
str3 = null;
if (str3 != null) {
}
if (d12 == null) {
}
Object[] objArr222 = (Object[]) d12;
if (objArr222 != null) {
}
if (n03 != null) {
}
return yb.t.a(c2.g.f(n02, eVar2), c2.g.e(n02, eVar2, linkedHashMap));
}
str = null;
if (str == null) {
}
if (d10 == null) {
}
Object[] objArr3 = (Object[]) d10;
if (objArr3 == null) {
}
if (n02 != null) {
}
}
}
public i() {
this.f3133a = z.this.W().u();
this.f3134b = new h9.b<>(-1L, false, false, new b(z.this), 6, null);
}
@Override
public List<c2.h> a(int i10) {
List<c2.h> j10;
Map<Integer, List<c2.h>> d10;
yb.n<List<l2.c>, Map<Integer, List<c2.h>>> nVar = this.f3134b.get();
if (nVar == null || (d10 = nVar.d()) == null || (j10 = d10.get(Integer.valueOf(i10))) == null) {
j10 = zb.q.j();
}
return j10;
}
@Override
public List<l2.c> b() {
List<l2.c> j10;
yb.n<List<l2.c>, Map<Integer, List<c2.h>>> nVar = this.f3134b.get();
if (nVar == null || (j10 = nVar.c()) == null) {
j10 = zb.q.j();
}
return j10;
}
@Override
public Map<Integer, c2.c> c() {
Map<Integer, c2.c> map;
l2.l lVar = l2.l.PreferredServersByUser;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3133a;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
Object b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(obj);
map = (Map) obj;
this.f3133a = map;
} catch (Throwable th2) {
throw th2;
}
}
return map;
}
@Override
public void d(Map<Integer, ? extends c2.c> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.PreferredServersByUser;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3133a = (Map) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Lw1/b$a;", "a", "()Lw1/b$a;"}, k = 3, mv = {1, 8, 0})
public static final class i0 extends kotlin.jvm.internal.p implements mc.a<b.a> {
public static final i0 f3137e = new i0();
public i0() {
super(0);
}
@Override
public final b.a invoke() {
return new b.a();
}
}
@Metadata(d1 = {"\u0000S\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0017\n\u0002\u0010\t\n\u0002\b%*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J \u0010\u0007\u001a\n \u0006*\u0004\u0018\u00010\u00040\u00042\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0002R*\u0010\u0010\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u000b\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR*\u0010\u0014\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0011\u0010\u000b\u001a\u0004\b\u0012\u0010\r\"\u0004\b\u0013\u0010\u000fR6\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00160\u00152\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00160\u00158V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR6\u0010%\u001a\b\u0012\u0004\u0012\u00020\u00160\u001e2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00160\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"\"\u0004\b#\u0010$R*\u0010-\u001a\u00020&2\u0006\u0010\t\u001a\u00020&8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b'\u0010(\u001a\u0004\b)\u0010*\"\u0004\b+\u0010,R6\u00102\u001a\b\u0012\u0004\u0012\u00020.0\u001e2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020.0\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b/\u0010 \u001a\u0004\b0\u0010\"\"\u0004\b1\u0010$R*\u00109\u001a\u0002032\u0006\u0010\t\u001a\u0002038V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b4\u00105\u001a\u0004\b'\u00106\"\u0004\b7\u00108R6\u0010;\u001a\b\u0012\u0004\u0012\u00020.0\u001e2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020.0\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b!\u0010 \u001a\u0004\b\u001f\u0010\"\"\u0004\b:\u0010$R6\u0010?\u001a\b\u0012\u0004\u0012\u00020.0\u001e2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020.0\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b<\u0010 \u001a\u0004\b=\u0010\"\"\u0004\b>\u0010$R*\u0010B\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b@\u0010\u000b\u001a\u0004\b<\u0010\r\"\u0004\bA\u0010\u000fR*\u0010G\u001a\u00020\u00042\u0006\u0010\t\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010C\u001a\u0004\b\n\u0010D\"\u0004\bE\u0010FR*\u0010J\u001a\u00020\u00042\u0006\u0010\t\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\f\u0010C\u001a\u0004\bH\u0010D\"\u0004\bI\u0010FR*\u0010Q\u001a\u00020K2\u0006\u0010\t\u001a\u00020K8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bL\u0010\u000e\u001a\u0004\bM\u0010N\"\u0004\bO\u0010PR*\u0010T\u001a\u00020K2\u0006\u0010\t\u001a\u00020K8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bR\u0010\u000e\u001a\u0004\b\u0017\u0010N\"\u0004\bS\u0010PR*\u0010Z\u001a\u00020.2\u0006\u0010\t\u001a\u00020.8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bU\u0010V\u001a\u0004\b/\u0010W\"\u0004\bX\u0010YR*\u0010\\\u001a\u00020.2\u0006\u0010\t\u001a\u00020.8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b=\u0010V\u001a\u0004\b4\u0010W\"\u0004\b[\u0010YR*\u0010^\u001a\u00020K2\u0006\u0010\t\u001a\u00020K8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b0\u0010\u000e\u001a\u0004\b@\u0010N\"\u0004\b]\u0010PR*\u0010a\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b)\u0010\u000b\u001a\u0004\b_\u0010\r\"\u0004\b`\u0010\u000fR*\u0010c\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bH\u0010\u000b\u001a\u0004\b\u0011\u0010\r\"\u0004\bb\u0010\u000fR6\u0010f\u001a\b\u0012\u0004\u0012\u00020.0\u001e2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020.0\u001e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b_\u0010 \u001a\u0004\bd\u0010\"\"\u0004\be\u0010$R*\u0010i\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bd\u0010\u000b\u001a\u0004\bg\u0010\r\"\u0004\bh\u0010\u000fR*\u0010k\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bM\u0010\u000b\u001a\u0004\bR\u0010\r\"\u0004\bj\u0010\u000fR*\u0010m\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0019\u0010\u000b\u001a\u0004\bL\u0010\r\"\u0004\bl\u0010\u000fR*\u0010o\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bg\u0010\u000b\u001a\u0004\bU\u0010\r\"\u0004\bn\u0010\u000f¨\u0006p"}, d2 = {"com/adguard/android/storage/z$j", "Lcom/adguard/android/storage/y$h;", "", "blockingType", "Lcom/adguard/dnslibs/proxy/DnsProxySettings$BlockingMode;", "defaultValue", "kotlin.jvm.PlatformType", "W", "", "value", "a", "Z", "l", "()Z", "J", "(Z)V", "dnsModuleEnabled", "b", "k", "I", "dnsFilteringEnabled", "La9/j;", "Ll2/d;", "c", "La9/j;", "w", "()La9/j;", "U", "(La9/j;)V", "selectedServer", "", DateTokenConverter.CONVERTER_KEY, "Ljava/util/List;", "h", "()Ljava/util/List;", "F", "(Ljava/util/List;)V", "customServers", "Lcom/adguard/android/storage/DnsFallbackUpstreamsType;", "e", "Lcom/adguard/android/storage/DnsFallbackUpstreamsType;", "r", "()Lcom/adguard/android/storage/DnsFallbackUpstreamsType;", "P", "(Lcom/adguard/android/storage/DnsFallbackUpstreamsType;)V", "fallbackUpstreamsType", "", "f", "q", "O", "fallbackUpstreams", "Lcom/adguard/android/storage/DnsBootstrapUpstreamsType;", "g", "Lcom/adguard/android/storage/DnsBootstrapUpstreamsType;", "()Lcom/adguard/android/storage/DnsBootstrapUpstreamsType;", "C", "(Lcom/adguard/android/storage/DnsBootstrapUpstreamsType;)V", "bootstrapUpstreamsType", "B", "bootstrapUpstreams", IntegerTokenConverter.CONVERTER_KEY, "p", "N", "fallbackDomains", "j", "G", "detectSearchDomains", "Lcom/adguard/dnslibs/proxy/DnsProxySettings$BlockingMode;", "()Lcom/adguard/dnslibs/proxy/DnsProxySettings$BlockingMode;", "y", "(Lcom/adguard/dnslibs/proxy/DnsProxySettings$BlockingMode;)V", "adBlockRulesBlockingMode", "s", "Q", "hostsRulesBlockingMode", "", "m", "v", "()J", "T", "(J)V", "requestTimeout", "n", "A", "blockedResponseTtlSecs", "o", "Ljava/lang/String;", "()Ljava/lang/String;", "D", "(Ljava/lang/String;)V", "customBlockingIpv4", "E", "customBlockingIpv6", "H", "dnsCacheSize", "t", "R", "ignoreUnavailableOutboundProxy", "z", "blockEch", "u", "S", "outboundProxyUpstreams", "x", "V", "tryHttp3ForDoH", "L", "enableServfailOnUpstreamsFailure", "K", "enableFallbackForNonFallbackDomains", "M", "enableUpstreamsValidation", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class j extends y.h {
public boolean f3138a = true;
public boolean f3139b = true;
public a9.j<l2.d> f3140c = new a9.j<>(null, 1, null);
public List<l2.d> f3141d = zb.q.j();
public DnsFallbackUpstreamsType f3142e;
public List<String> f3143f;
public DnsBootstrapUpstreamsType f3144g;
public List<String> f3145h;
public List<String> f3146i;
public boolean f3147j;
public DnsProxySettings.BlockingMode f3148k;
public DnsProxySettings.BlockingMode f3149l;
public long f3150m;
public long f3151n;
public String f3152o;
public String f3153p;
public long f3154q;
public boolean f3155r;
public boolean f3156s;
public List<String> f3157t;
public boolean f3158u;
public boolean f3159v;
public boolean f3160w;
public boolean f3161x;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<List<? extends l2.d>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class c extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class d extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class e extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class f extends TypeReference<a9.j<l2.d>> {
}
public j() {
this.f3142e = z.this.W().q();
this.f3143f = z.this.W().p();
this.f3144g = z.this.W().e();
this.f3145h = z.this.W().d();
List<String> o10 = z.this.W().o();
kotlin.jvm.internal.n.f(o10, "dnsFilteringAssistant.defaultFallbackDomains");
this.f3146i = o10;
this.f3147j = z.this.W().z();
DnsProxySettings.BlockingMode a10 = z.this.W().a();
kotlin.jvm.internal.n.f(a10, "dnsFilteringAssistant.de…tAdBlockRulesBlockingMode");
this.f3148k = a10;
DnsProxySettings.BlockingMode r10 = z.this.W().r();
kotlin.jvm.internal.n.f(r10, "dnsFilteringAssistant.de…ultHostsRulesBlockingMode");
this.f3149l = r10;
this.f3150m = z.this.W().v();
this.f3151n = z.this.W().c();
String f10 = z.this.W().f();
kotlin.jvm.internal.n.f(f10, "dnsFilteringAssistant.defaultCustomBlockingIpv4");
this.f3152o = f10;
String g10 = z.this.W().g();
kotlin.jvm.internal.n.f(g10, "dnsFilteringAssistant.defaultCustomBlockingIpv6");
this.f3153p = g10;
this.f3154q = z.this.W().j();
this.f3155r = z.this.W().s();
this.f3156s = z.this.W().b();
this.f3157t = zb.q.j();
this.f3158u = z.this.W().x();
this.f3159v = z.this.W().m();
this.f3160w = z.this.W().k();
this.f3161x = z.this.W().n();
}
@Override
public void A(long j10) {
l2.l lVar = l2.l.DnsBlockedResponseTtlSecs;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3151n = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void B(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsBootstrapUpstreams;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3145h = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void C(DnsBootstrapUpstreamsType value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsBootstrapUpstreamsType;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
int i10 = 4 >> 0;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(DnsBootstrapUpstreamsType.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3144g = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void D(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsCustomBlockingIpv4;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3152o = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void E(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsCustomBlockingIpv6;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3153p = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void F(List<l2.d> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.CustomDnsServers;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 0 << 0;
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3141d = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void G(boolean z10) {
l2.l lVar = l2.l.DnsDetectSearchDomains;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3147j = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void H(long j10) {
l2.l lVar = l2.l.DnsCacheSize;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true & false;
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3154q = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void I(boolean z10) {
l2.l lVar = l2.l.DnsFilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3139b = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void J(boolean z10) {
l2.l lVar = l2.l.DnsEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 6 << 4;
Object i11 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3138a = ((Boolean) i11).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void K(boolean z10) {
l2.l lVar = l2.l.EnableFallbackForNonFallbackDomains;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3160w = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void L(boolean z10) {
l2.l lVar = l2.l.EnableServfailOnUpstreamsFailure;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 5 >> 0;
Object i11 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3159v = ((Boolean) i11).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void M(boolean z10) {
l2.l lVar = l2.l.EnableUpstreamsValidation;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3161x = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void N(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsFallbackDomains;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3146i = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void O(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsFallbackUpstreams;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3143f = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void P(DnsFallbackUpstreamsType value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsFallbackUpstreamsType;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(DnsFallbackUpstreamsType.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3142e = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void Q(DnsProxySettings.BlockingMode value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsHostsRulesBlockingType;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
this.f3149l = value;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void R(boolean z10) {
l2.l lVar = l2.l.DnsIgnoreUnavailableOutboundProxy;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z11 = true & true;
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3155r = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void S(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsOutboundProxyAutomaticUpstreams;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3157t = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void T(long j10) {
l2.l lVar = l2.l.DnsRequestTimeout;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3150m = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void U(a9.j<l2.d> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.SelectedDnsServer;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3140c = (a9.j) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void V(boolean z10) {
l2.l lVar = l2.l.TryHttp3ForDoH;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3158u = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
public final DnsProxySettings.BlockingMode W(int i10, DnsProxySettings.BlockingMode blockingMode) {
uh.c LOG = z.U;
kotlin.jvm.internal.n.f(LOG, "LOG");
try {
blockingMode = DnsProxySettings.BlockingMode.fromCode(i10);
} catch (Throwable unused) {
}
return blockingMode;
}
@Override
public DnsProxySettings.BlockingMode a() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
DnsProxySettings.BlockingMode W;
l2.l lVar = l2.l.DnsAdBlockingRulesBlockingType;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3148k.getCode());
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
int intValue = valueOf.intValue();
DnsProxySettings.BlockingMode a10 = zVar.W().a();
kotlin.jvm.internal.n.f(a10, "dnsFilteringAssistant.de…tAdBlockRulesBlockingMode");
W = W(intValue, a10);
kotlin.jvm.internal.n.f(W, "prefsAdapter.lazy(field.…BlockRulesBlockingMode) }");
this.f3148k = W;
} catch (Throwable th2) {
throw th2;
}
}
return W;
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DnsBlockEch;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3156s);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3156s = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public long c() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.DnsBlockedResponseTtlSecs;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3151n);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3151n = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public List<String> d() {
List<String> list;
l2.l lVar = l2.l.DnsBootstrapUpstreams;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3145h;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3145h = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public DnsBootstrapUpstreamsType e() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
DnsBootstrapUpstreamsType dnsBootstrapUpstreamsType;
l2.l lVar = l2.l.DnsBootstrapUpstreamsType;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
DnsBootstrapUpstreamsType dnsBootstrapUpstreamsType2 = this.f3144g;
int code = dnsBootstrapUpstreamsType2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
DnsBootstrapUpstreamsType dnsBootstrapUpstreamsType3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(DnsBootstrapUpstreamsType.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
dnsBootstrapUpstreamsType3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
dnsBootstrapUpstreamsType2 = dnsBootstrapUpstreamsType3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + DnsBootstrapUpstreamsType.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(dnsBootstrapUpstreamsType2);
dnsBootstrapUpstreamsType = dnsBootstrapUpstreamsType2;
this.f3144g = dnsBootstrapUpstreamsType;
} catch (Throwable th2) {
throw th2;
}
}
return dnsBootstrapUpstreamsType;
}
@Override
public String f() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.DnsCustomBlockingIpv4;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3152o;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3152o = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public String g() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.DnsCustomBlockingIpv6;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3153p;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3153p = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public List<l2.d> h() {
List<l2.d> list;
l2.l lVar = l2.l.CustomDnsServers;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<l2.d> list2 = this.f3141d;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3141d = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean i() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DnsDetectSearchDomains;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3147j);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3147j = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public long j() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.DnsCacheSize;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3154q);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3154q = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public boolean k() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DnsFilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3139b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3139b = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean l() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DnsEnabled;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3138a);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3138a = booleanValue;
}
return booleanValue;
}
@Override
public boolean m() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.EnableFallbackForNonFallbackDomains;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3160w);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3160w = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean n() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.EnableServfailOnUpstreamsFailure;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3159v);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3159v = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean o() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.EnableUpstreamsValidation;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3161x);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3161x = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public List<String> p() {
List<String> list;
l2.l lVar = l2.l.DnsFallbackDomains;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3146i;
c cVar = new c();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3146i = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<String> q() {
List<String> list;
l2.l lVar = l2.l.DnsFallbackUpstreams;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3143f;
d dVar = new d();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, dVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3143f = list;
}
return list;
}
@Override
public DnsFallbackUpstreamsType r() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
DnsFallbackUpstreamsType dnsFallbackUpstreamsType;
l2.l lVar = l2.l.DnsFallbackUpstreamsType;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
DnsFallbackUpstreamsType dnsFallbackUpstreamsType2 = this.f3142e;
int code = dnsFallbackUpstreamsType2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
DnsFallbackUpstreamsType dnsFallbackUpstreamsType3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(DnsFallbackUpstreamsType.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
dnsFallbackUpstreamsType3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
dnsFallbackUpstreamsType2 = dnsFallbackUpstreamsType3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + DnsFallbackUpstreamsType.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(dnsFallbackUpstreamsType2);
dnsFallbackUpstreamsType = dnsFallbackUpstreamsType2;
this.f3142e = dnsFallbackUpstreamsType;
} catch (Throwable th2) {
throw th2;
}
}
return dnsFallbackUpstreamsType;
}
@Override
public DnsProxySettings.BlockingMode s() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
DnsProxySettings.BlockingMode W;
l2.l lVar = l2.l.DnsHostsRulesBlockingType;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3149l.getCode());
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
int intValue = valueOf.intValue();
DnsProxySettings.BlockingMode r10 = zVar.W().r();
kotlin.jvm.internal.n.f(r10, "dnsFilteringAssistant.de…ultHostsRulesBlockingMode");
W = W(intValue, r10);
kotlin.jvm.internal.n.f(W, "prefsAdapter.lazy(field.…HostsRulesBlockingMode) }");
this.f3149l = W;
} catch (Throwable th2) {
throw th2;
}
}
return W;
}
@Override
public boolean t() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DnsIgnoreUnavailableOutboundProxy;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3155r);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3155r = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public List<String> u() {
String str;
List<String> list;
l2.l lVar = l2.l.DnsOutboundProxyAutomaticUpstreams;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3157t;
e eVar = new e();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str2 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str2 = valueOf;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
boolean z11 = true;
str = Float.valueOf(c12.getFloat(prefName, 0.0f));
} else {
str = null;
}
if (str instanceof String) {
str2 = str;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf2 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf2 instanceof String) {
str2 = valueOf2;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf3 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf3 instanceof String) {
str2 = valueOf3;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str2 = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str2 = stringSet;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str2, eVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3157t = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public long v() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.DnsRequestTimeout;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3150m);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3150m = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public a9.j<l2.d> w() {
a9.j<l2.d> jVar;
l2.l lVar = l2.l.SelectedDnsServer;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
a9.j<l2.d> jVar2 = this.f3140c;
f fVar = new f();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 5 << 1;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, fVar);
bVar.d().add(lVar.getPrefName());
jVar2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(jVar2);
jVar = jVar2;
this.f3140c = jVar;
} catch (Throwable th2) {
throw th2;
}
}
return jVar;
}
@Override
public boolean x() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.TryHttp3ForDoH;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3158u);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3158u = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void y(DnsProxySettings.BlockingMode value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DnsAdBlockingRulesBlockingType;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
this.f3148k = value;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void z(boolean z10) {
l2.l lVar = l2.l.DnsBlockEch;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3156s = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000K\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0016*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0010\u0010\b\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0010\u0010\t\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\u0018\u0010\f\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\nH\u0016J\b\u0010\r\u001a\u00020\u0006H\u0016J\u000e\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00020\u000eH\u0016J\"\u0010\u0014\u001a\u00020\u00062\u0018\u0010\u0013\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00120\u0011\u0012\u0004\u0012\u00020\u00060\u0010H\u0002J\u000e\u0010\u0015\u001a\u0004\u0018\u00010\u0012*\u00020\u0002H\u0002J\u000e\u0010\u0016\u001a\u0004\u0018\u00010\u0002*\u00020\u0012H\u0002J\"\u0010\u001a\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0019\u001a\u00020\u00172\u0006\u0010\u000b\u001a\u00020\nH\u0002J\"\u0010\u001b\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0018\u001a\u00020\u00172\u0006\u0010\u0019\u001a\u00020\u00172\u0006\u0010\u000b\u001a\u00020\nH\u0002J\u000e\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00020\u000eH\u0002R\u0014\u0010\u001f\u001a\u00020\u001d8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0007\u0010\u001eR\u0014\u0010\"\u001a\u00020\u00178\u0002X\u0082D¢\u0006\u0006\n\u0004\b \u0010!R\u0014\u0010#\u001a\u00020\u00178\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u000f\u0010!R*\u0010+\u001a\u00020\n2\u0006\u0010$\u001a\u00020\n8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b%\u0010&\u001a\u0004\b'\u0010(\"\u0004\b)\u0010*R:\u00101\u001a\n\u0012\u0004\u0012\u00020\u0012\u0018\u00010\u000e2\u000e\u0010$\u001a\n\u0012\u0004\u0012\u00020\u0012\u0018\u00010\u000e8B@BX\u0082\u000e¢\u0006\u0012\n\u0004\b'\u0010,\u001a\u0004\b-\u0010.\"\u0004\b/\u00100R\u001a\u00102\u001a\b\u0012\u0004\u0012\u00020\u00020\u000e8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b%\u0010.¨\u00063"}, d2 = {"com/adguard/android/storage/z$j0", "Lcom/adguard/android/storage/y$a0;", "Ly1/c;", "userscript", "", "idx", "", "a", "f", "j", "", "enabled", "h", "g", "", "c", "Lkotlin/Function1;", "", "Ll2/s;", "userscriptInfosApplier", "r", "q", "p", "", "url", "fileName", "m", "k", "l", "Ly1/f$a;", "Ly1/f$a;", "assistant", "b", "Ljava/lang/String;", "sourceExt", "metaExt", "value", DateTokenConverter.CONVERTER_KEY, "Z", "e", "()Z", IntegerTokenConverter.CONVERTER_KEY, "(Z)V", "userscriptsEnabled", "Ljava/util/List;", "n", "()Ljava/util/List;", "o", "(Ljava/util/List;)V", "userscriptInfos", "list", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class j0 extends y.a0 {
public final f.a f3163a;
public final String f3164b;
public final String f3165c;
public boolean f3166d;
public List<l2.s> f3167e;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends l2.s>> {
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002*\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "Ll2/s;", "", "a", "(Ljava/util/List;)V"}, k = 3, mv = {1, 8, 0})
public static final class b extends kotlin.jvm.internal.p implements mc.l<List<l2.s>, Unit> {
public final int f3169e;
public final l2.s f3170g;
public b(int i10, l2.s sVar) {
super(1);
this.f3169e = i10;
this.f3170g = sVar;
}
public final void a(List<l2.s> updateUserscriptInfos) {
kotlin.jvm.internal.n.g(updateUserscriptInfos, "$this$updateUserscriptInfos");
int i10 = this.f3169e;
if (i10 == -1) {
updateUserscriptInfos.add(this.f3170g);
} else {
updateUserscriptInfos.add(i10, this.f3170g);
}
}
@Override
public Unit invoke(List<l2.s> list) {
a(list);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002*\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "Ll2/s;", "", "a", "(Ljava/util/List;)V"}, k = 3, mv = {1, 8, 0})
public static final class c extends kotlin.jvm.internal.p implements mc.l<List<l2.s>, Unit> {
public final y1.c f3171e;
public c(y1.c cVar) {
super(1);
this.f3171e = cVar;
}
public final void a(List<l2.s> updateUserscriptInfos) {
Object obj;
kotlin.jvm.internal.n.g(updateUserscriptInfos, "$this$updateUserscriptInfos");
y1.c cVar = this.f3171e;
Iterator<T> it = updateUserscriptInfos.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.n.b(((l2.s) obj).d(), cVar.d().i())) {
break;
}
}
l2.s sVar = (l2.s) obj;
if (sVar == null) {
return;
}
updateUserscriptInfos.remove(sVar);
}
@Override
public Unit invoke(List<l2.s> list) {
a(list);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002*\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "Ll2/s;", "", "a", "(Ljava/util/List;)V"}, k = 3, mv = {1, 8, 0})
public static final class d extends kotlin.jvm.internal.p implements mc.l<List<l2.s>, Unit> {
public final boolean f3172e;
public final y1.c f3173g;
public d(boolean z10, y1.c cVar) {
super(1);
this.f3172e = z10;
this.f3173g = cVar;
}
public final void a(List<l2.s> updateUserscriptInfos) {
Object obj;
kotlin.jvm.internal.n.g(updateUserscriptInfos, "$this$updateUserscriptInfos");
y1.c cVar = this.f3173g;
Iterator<T> it = updateUserscriptInfos.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.n.b(((l2.s) obj).d(), cVar.d().i())) {
break;
}
}
l2.s sVar = (l2.s) obj;
if (sVar != null) {
sVar.g(this.f3172e);
}
}
@Override
public Unit invoke(List<l2.s> list) {
a(list);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002*\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "Ll2/s;", "", "a", "(Ljava/util/List;)V"}, k = 3, mv = {1, 8, 0})
public static final class e extends kotlin.jvm.internal.p implements mc.l<List<l2.s>, Unit> {
public final y1.c f3174e;
public final l2.s f3175g;
public e(y1.c cVar, l2.s sVar) {
super(1);
this.f3174e = cVar;
this.f3175g = sVar;
}
public final void a(List<l2.s> updateUserscriptInfos) {
Object obj;
kotlin.jvm.internal.n.g(updateUserscriptInfos, "$this$updateUserscriptInfos");
y1.c cVar = this.f3174e;
Iterator<T> it = updateUserscriptInfos.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (kotlin.jvm.internal.n.b(((l2.s) obj).d(), cVar.d().i())) {
break;
}
}
l2.s sVar = (l2.s) obj;
if (sVar != null) {
l2.s sVar2 = this.f3175g;
sVar.k(sVar2.f());
sVar.j(sVar2.e());
sVar.i(sVar2.c());
sVar.h(sVar2.b());
}
}
@Override
public Unit invoke(List<l2.s> list) {
a(list);
return Unit.INSTANCE;
}
}
public j0() {
f.a aVar = new f.a();
this.f3163a = aVar;
this.f3164b = ".source";
this.f3165c = ".meta";
this.f3166d = aVar.a();
}
@Override
public void a(y1.c userscript, int i10) {
kotlin.jvm.internal.n.g(userscript, "userscript");
x6.a aVar = z.this.f2992c;
String i11 = userscript.d().i();
String str = this.f3164b;
aVar.l("/userscripts/" + i11 + str, userscript.f());
x6.a aVar2 = z.this.f2992c;
String i12 = userscript.d().i();
String str2 = this.f3165c;
aVar2.l("/userscripts/" + i12 + str2, userscript.e());
l2.s q10 = q(userscript);
if (q10 != null) {
r(new b(i10, q10));
}
}
@Override
public List<y1.c> c() {
return zb.q.o(m("https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.user.js", "adguard-extra", true), m("https://userscripts.adtidy.org/release/disable-amp/1.0/disable-amp.user.js", "disable-amp", false));
}
@Override
public List<y1.c> d() {
List<l2.s> n10 = n();
if (n10 != null) {
ArrayList arrayList = new ArrayList();
for (l2.s sVar : n10) {
y1.c p10 = p(sVar);
if (p10 != null) {
arrayList.add(p10);
}
}
return arrayList;
}
return zb.q.j();
}
@Override
public boolean e() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.UserscriptsEnabled;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3166d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3166d = booleanValue;
}
return booleanValue;
}
@Override
public void f(y1.c userscript) {
kotlin.jvm.internal.n.g(userscript, "userscript");
x6.a aVar = z.this.f2992c;
String i10 = userscript.d().i();
String str = this.f3164b;
aVar.k("/userscripts/" + i10 + str);
x6.a aVar2 = z.this.f2992c;
String i11 = userscript.d().i();
String str2 = this.f3165c;
aVar2.k("/userscripts/" + i11 + str2);
GmStorage.deleteValues(userscript.d().i());
r(new c(userscript));
}
@Override
public void g() {
z.this.f2992c.k("/userscripts");
List<y1.c> l10 = l();
ArrayList arrayList = new ArrayList();
for (y1.c cVar : l10) {
l2.s q10 = q(cVar);
if (q10 != null) {
arrayList.add(q10);
}
}
o(arrayList);
}
@Override
public void h(y1.c userscript, boolean z10) {
kotlin.jvm.internal.n.g(userscript, "userscript");
r(new d(z10, userscript));
}
@Override
public void i(boolean z10) {
l2.l lVar = l2.l.UserscriptsEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3166d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void j(y1.c userscript) {
kotlin.jvm.internal.n.g(userscript, "userscript");
x6.a aVar = z.this.f2992c;
String i10 = userscript.d().i();
String str = this.f3164b;
aVar.l("/userscripts/" + i10 + str, userscript.f());
x6.a aVar2 = z.this.f2992c;
String i11 = userscript.d().i();
String str2 = this.f3165c;
aVar2.l("/userscripts/" + i11 + str2, userscript.e());
l2.s q10 = q(userscript);
if (q10 != null) {
r(new e(userscript, q10));
}
}
public final y1.c k(String str, String str2, boolean z10) {
y1.c m10 = m(str, str2, z10);
if (m10 != null) {
z zVar = z.this;
x6.a aVar = zVar.f2992c;
String i10 = m10.d().i();
String str3 = this.f3164b;
aVar.l("/userscripts/" + i10 + str3, m10.f());
x6.a aVar2 = zVar.f2992c;
String i11 = m10.d().i();
String str4 = this.f3165c;
aVar2.l("/userscripts/" + i11 + str4, m10.e());
} else {
m10 = null;
}
return m10;
}
public final List<y1.c> l() {
return zb.q.o(k("https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.user.js", "adguard-extra", true), k("https://userscripts.adtidy.org/release/disable-amp/1.0/disable-amp.user.js", "disable-amp", false));
}
public final y1.c m(String str, String str2, boolean z10) {
String str3;
String str4;
String str5;
String str6;
a9.c unused = z.this.f2994e;
String str7 = "/assets" + ("/preset/userscripts/" + str2 + this.f3165c);
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str7);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str6 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
} else {
str6 = null;
}
str3 = str6;
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str7 + "' path", th2);
str3 = null;
}
if (str3 == null) {
z.U.warn("Failed to read meta for preset userscript " + str2);
return null;
}
a9.c unused2 = z.this.f2994e;
String str8 = "/assets" + ("/preset/userscripts/" + str2 + this.f3164b);
uh.c _LOG2 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG2, "_LOG");
try {
InputStream resourceAsStream2 = a9.n.class.getResourceAsStream(str8);
if (resourceAsStream2 != null) {
kotlin.jvm.internal.n.f(resourceAsStream2, "getResourceAsStream(path)");
str5 = z5.l.a(resourceAsStream2, ff.c.f15045b);
jc.c.a(resourceAsStream2, null);
} else {
str5 = null;
}
str4 = str5;
} catch (Throwable th3) {
_LOG2.error("The error occurred while getting the APK resource as a string by the '" + str8 + "' path", th3);
str4 = null;
}
if (str4 == null) {
z.U.warn("Failed to read source for preset userscript " + str2);
return null;
}
y1.c a10 = y1.c.f29068g.a(str, z10, str4, str3, System.currentTimeMillis());
if (a10 == null) {
z.U.warn("Failed to initialize preset userscript '" + str2 + "'");
}
return a10;
}
public final List<l2.s> n() {
List<l2.s> list;
l2.l lVar = l2.l.UserscriptInfos;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<l2.s> list2 = this.f3167e;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
list = list2;
if (list == null) {
List<y1.c> l10 = l();
list = new ArrayList<>();
for (y1.c cVar : l10) {
l2.s q10 = q(cVar);
if (q10 != null) {
list.add(q10);
}
}
}
this.f3167e = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
public final void o(List<l2.s> list) {
l2.l lVar = l2.l.UserscriptInfos;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, list, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3167e = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
public final y1.c p(l2.s sVar) {
String h10 = z.this.f2992c.h(sVar.e());
boolean z10 = true & false;
if (h10 == null) {
z.U.warn("Can't convert to userscript, source hasn't been provided");
return null;
}
String h11 = z.this.f2992c.h(sVar.c());
if (h11 == null) {
z.U.warn("Can't convert to userscript, meta hasn't been provided");
return null;
}
y1.c a10 = y1.c.f29068g.a(sVar.f(), sVar.a(), h10, h11, sVar.b());
if (a10 == null) {
z.U.warn("Failed to convert UserscriptInfo to Userscript");
}
return a10;
}
public final l2.s q(y1.c cVar) {
l2.s sVar;
try {
String i10 = cVar.d().i();
kotlin.jvm.internal.n.d(i10);
sVar = new l2.s(i10, cVar.g(), "/userscripts/" + cVar.d().i() + this.f3164b, "/userscripts/" + cVar.d().i() + this.f3165c, cVar.b(), cVar.c());
} catch (Throwable th2) {
z.U.warn("Failed to convert Userscript to UserscriptInfo", th2);
sVar = null;
}
return sVar;
}
public final void r(mc.l<? super List<l2.s>, Unit> lVar) {
List<l2.s> arrayList;
List<l2.s> n10 = n();
if (n10 == null || (arrayList = zb.y.P0(n10)) == null) {
arrayList = new ArrayList<>();
}
lVar.invoke(arrayList);
o(arrayList);
}
}
@Metadata(d1 = {"\u0000\u0015\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R6\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00030\u00022\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00030\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0005\u0010\u0007\"\u0004\b\b\u0010\t¨\u0006\u000b"}, d2 = {"com/adguard/android/storage/z$k", "Lcom/adguard/android/storage/y$i;", "", "", "value", "a", "Ljava/util/List;", "()Ljava/util/List;", "b", "(Ljava/util/List;)V", "tooltips", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class k extends y.i {
public List<Integer> f3176a = zb.q.j();
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends Integer>> {
}
public k() {
}
@Override
public List<Integer> a() {
List<Integer> list;
l2.l lVar = l2.l.ShownTooltips;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<Integer> list2 = this.f3176a;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3176a = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public void b(List<Integer> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ShownTooltips;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3176a = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000)\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\b\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0013*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R*\u0010\u000e\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00068V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\b\u0010\t\u001a\u0004\b\n\u0010\u000b\"\u0004\b\f\u0010\rR*\u0010\u0016\u001a\u00020\u000f2\u0006\u0010\u0007\u001a\u00020\u000f8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R*\u0010\u001d\u001a\u00020\u00172\u0006\u0010\u0007\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0019\u001a\u0004\b\u0018\u0010\u001a\"\u0004\b\u001b\u0010\u001cR*\u0010\u001f\u001a\u00020\u00172\u0006\u0010\u0007\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\u0019\u001a\u0004\b\u0010\u0010\u001a\"\u0004\b\u001e\u0010\u001cR*\u0010\"\u001a\u00020\u00172\u0006\u0010\u0007\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b \u0010\u0019\u001a\u0004\b\b\u0010\u001a\"\u0004\b!\u0010\u001cR*\u0010$\u001a\u00020\u000f2\u0006\u0010\u0007\u001a\u00020\u000f8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u0011\u001a\u0004\b \u0010\u0013\"\u0004\b#\u0010\u0015R*\u0010'\u001a\u00020\u00172\u0006\u0010\u0007\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b%\u0010\u0019\u001a\u0004\b\u0003\u0010\u001a\"\u0004\b&\u0010\u001cR*\u0010)\u001a\u00020\u00172\u0006\u0010\u0007\u001a\u00020\u00178V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b&\u0010\u0019\u001a\u0004\b%\u0010\u001a\"\u0004\b(\u0010\u001c¨\u0006*"}, d2 = {"com/adguard/android/storage/z$k0", "Lcom/adguard/android/storage/y$b0;", "Lz1/b$a;", "a", "Lz1/b$a;", "assistant", "", "value", "b", "I", "g", "()I", "o", "(I)V", "mtu", "", "c", "Ljava/lang/String;", "e", "()Ljava/lang/String;", "m", "(Ljava/lang/String;)V", "ipv4Address", "", DateTokenConverter.CONVERTER_KEY, "Z", "()Z", "l", "(Z)V", "includeGateway", "k", "forceIPv4DefaultRoute", "f", "j", "forceIPv4ComplexRoute", "n", "ipv6Address", "h", IntegerTokenConverter.CONVERTER_KEY, "autoPauseVpn", "p", "writePcap", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class k0 extends y.b0 {
public final b.a f3178a;
public int f3179b;
public String f3180c;
public boolean f3181d;
public boolean f3182e;
public boolean f3183f;
public String f3184g;
public boolean f3185h;
public boolean f3186i;
public k0() {
b.a aVar = new b.a();
this.f3178a = aVar;
this.f3179b = aVar.g();
this.f3180c = aVar.d();
this.f3181d = aVar.f();
this.f3182e = aVar.c();
this.f3183f = aVar.b();
this.f3184g = aVar.e();
this.f3185h = aVar.a();
this.f3186i = aVar.h();
}
@Override
public boolean a() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.VpnAutoPause;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3185h);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3185h = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ForceIPv4ComplexRoute;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3183f);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3183f = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ForceIPv4DefaultRoute;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3182e);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3182e = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean d() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.IncludeGateway;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3181d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 2 >> 1;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3181d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String e() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.IPv4Address;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3180c;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3180c = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public String f() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.IPv6Address;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3184g;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3184g = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public int g() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.Mtu;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3179b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3179b = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean h() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.WritePcap;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3186i);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3186i = booleanValue;
}
return booleanValue;
}
@Override
public void i(boolean z10) {
l2.l lVar = l2.l.VpnAutoPause;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3185h = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void j(boolean z10) {
l2.l lVar = l2.l.ForceIPv4ComplexRoute;
z zVar = z.this;
synchronized (lVar) {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3183f = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
}
}
@Override
public void k(boolean z10) {
l2.l lVar = l2.l.ForceIPv4DefaultRoute;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3182e = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void l(boolean z10) {
l2.l lVar = l2.l.IncludeGateway;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3181d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void m(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.IPv4Address;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3180c = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void n(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.IPv6Address;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3184g = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void o(int i10) {
l2.l lVar = l2.l.Mtu;
z zVar = z.this;
synchronized (lVar) {
try {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3179b = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void p(boolean z10) {
l2.l lVar = l2.l.WritePcap;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3186i = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"La0/n$c;", "a", "()La0/n$c;"}, k = 3, mv = {1, 8, 0})
public static final class l extends kotlin.jvm.internal.p implements mc.a<n.c> {
public final Context f3188e;
public l(Context context) {
super(0);
this.f3188e = context;
}
@Override
public final n.c invoke() {
return new n.c(this.f3188e);
}
}
@Metadata(d1 = {"\u0000\u0015\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010$\n\u0002\u0010\b\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001RB\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00030\u00022\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00030\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0005\u0010\u0007\"\u0004\b\b\u0010\t¨\u0006\u000b"}, d2 = {"com/adguard/android/storage/z$l0", "Lcom/adguard/android/storage/y$c0;", "", "", "value", "a", "Ljava/util/Map;", "()Ljava/util/Map;", "b", "(Ljava/util/Map;)V", "widgetAlpha", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class l0 extends y.c0 {
public Map<Integer, Integer> f3189a = zb.l0.h();
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<Map<Integer, ? extends Integer>> {
}
public l0() {
}
@Override
public Map<Integer, Integer> a() {
Map<Integer, Integer> map;
l2.l lVar = l2.l.WidgetAlpha;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Map<Integer, Integer> map2 = this.f3189a;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
map2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(map2);
map = map2;
this.f3189a = map;
} catch (Throwable th2) {
throw th2;
}
}
return map;
}
@Override
public void b(Map<Integer, Integer> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.WidgetAlpha;
z zVar = z.this;
synchronized (lVar) {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3189a = (Map) k10;
Unit unit = Unit.INSTANCE;
}
}
}
@Metadata(d1 = {"\u0000K\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u001a\u0010\u0006\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u00030\u0002H\u0016J\"\u0010\n\u001a\u00020\t2\u0018\u0010\b\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u00030\u0007H\u0016J\u000e\u0010\f\u001a\u0004\u0018\u00010\u0005*\u00020\u000bH\u0002J\u0018\u0010\r\u001a\u00020\u000b*\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003H\u0002R6\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R6\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u00170\u000e2\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00170\u000e8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0011\u001a\u0004\b\u0018\u0010\u0013\"\u0004\b\u0019\u0010\u0015R\u0014\u0010\u001d\u001a\u00020\u001b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0012\u0010\u001c¨\u0006\u001e"}, d2 = {"com/adguard/android/storage/z$m", "Lcom/adguard/android/storage/y$j;", "", "Lyb/n;", "", "Lc0/c;", "a", "Ljava/util/Deque;", "list", "", "f", "Lm2/b;", IntegerTokenConverter.CONVERTER_KEY, "j", "", "Lc0/b;", "value", "Ljava/util/Set;", "c", "()Ljava/util/Set;", "e", "(Ljava/util/Set;)V", "filterRequestsTypes", "Lc0/a;", "b", DateTokenConverter.CONVERTER_KEY, "filterRequestsOrigins", "", "Ljava/lang/Object;", "sync", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class m extends y.j {
public Set<? extends c0.b> f3191a = zb.l.z0(c0.b.values());
public Set<? extends c0.a> f3192b = zb.l.z0(c0.a.values());
public final Object f3193c = new Object();
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<Set<? extends c0.a>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<Set<? extends c0.b>> {
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00040\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lcom/adguard/android/storage/db/Database;", "", "Lyb/n;", "", "Lc0/c;", "a", "(Lcom/adguard/android/storage/db/Database;)Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class c extends kotlin.jvm.internal.p implements mc.l<Database, List<? extends yb.n<? extends Long, ? extends c0.c>>> {
public c() {
super(1);
}
@Override
public final List<yb.n<Long, c0.c>> invoke(Database process) {
kotlin.jvm.internal.n.g(process, "$this$process");
List<m2.b> a10 = process.c().a();
m mVar = m.this;
ArrayList arrayList = new ArrayList();
for (m2.b bVar : a10) {
c0.c i10 = mVar.i(bVar);
yb.n nVar = i10 != null ? new yb.n(Long.valueOf(bVar.b()), i10) : null;
if (nVar != null) {
arrayList.add(nVar);
}
}
return arrayList;
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lcom/adguard/android/storage/db/Database;", "", "a", "(Lcom/adguard/android/storage/db/Database;)V"}, k = 3, mv = {1, 8, 0})
public static final class d extends kotlin.jvm.internal.p implements mc.l<Database, Unit> {
public final Deque<yb.n<Long, c0.c>> f3197g;
public d(Deque<yb.n<Long, c0.c>> deque) {
super(1);
this.f3197g = deque;
}
public final void a(Database process) {
kotlin.jvm.internal.n.g(process, "$this$process");
List<yb.n<Long, c0.c>> a10 = m.this.a();
Deque<yb.n<Long, c0.c>> deque = this.f3197g;
ArrayList arrayList = new ArrayList(zb.r.u(deque, 10));
Iterator<T> it = deque.iterator();
while (it.hasNext()) {
arrayList.add(Long.valueOf(((Number) ((yb.n) it.next()).c()).longValue()));
}
ArrayList<yb.n> arrayList2 = new ArrayList();
for (Object obj : a10) {
if (!arrayList.contains(((yb.n) obj).c())) {
arrayList2.add(obj);
}
}
n2.a c10 = process.c();
m mVar = m.this;
ArrayList arrayList3 = new ArrayList(zb.r.u(arrayList2, 10));
for (yb.n nVar : arrayList2) {
arrayList3.add(mVar.j(nVar));
}
c10.b(arrayList3);
n2.a c11 = process.c();
Deque<yb.n<Long, c0.c>> deque2 = this.f3197g;
m mVar2 = m.this;
ArrayList arrayList4 = new ArrayList(zb.r.u(deque2, 10));
Iterator<T> it2 = deque2.iterator();
while (it2.hasNext()) {
yb.n it3 = (yb.n) it2.next();
kotlin.jvm.internal.n.f(it3, "it");
arrayList4.add(mVar2.j(it3));
}
c11.c(arrayList4);
}
@Override
public Unit invoke(Database database) {
a(database);
return Unit.INSTANCE;
}
}
public m() {
}
@Override
public List<yb.n<Long, c0.c>> a() {
return (List) z.this.f2997h.c(d.a.f2980b, zb.q.j(), this.f3193c, new c());
}
@Override
public Set<c0.a> b() {
Set<c0.a> set;
l2.l lVar = l2.l.FilterRequestsOrigins;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3192b;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 0 << 1;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
Object b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(obj);
set = (Set) obj;
this.f3192b = set;
} catch (Throwable th2) {
throw th2;
}
}
return set;
}
@Override
public Set<c0.b> c() {
Set<c0.b> set;
l2.l lVar = l2.l.FilterRequestsTypes;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3191a;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
Object b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(obj);
set = (Set) obj;
this.f3191a = set;
} catch (Throwable th2) {
throw th2;
}
}
return set;
}
@Override
public void d(Set<? extends c0.a> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FilterRequestsOrigins;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 4 << 4;
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3192b = (Set) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void e(Set<? extends c0.b> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FilterRequestsTypes;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true;
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3191a = (Set) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void f(Deque<yb.n<Long, c0.c>> list) {
kotlin.jvm.internal.n.g(list, "list");
z.this.f2997h.c(d.e.f2982b, Unit.INSTANCE, this.f3193c, new d(list));
}
public final c0.c i(m2.b bVar) {
c0.c cVar = (c0.c) a9.h.d(bVar.a(), c0.c.class);
if (cVar == null) {
uh.c cVar2 = z.U;
cVar2.warn("Failed to deserialize event " + bVar);
return null;
}
return cVar;
}
public final m2.b j(yb.n<Long, ? extends c0.c> nVar) {
String h10 = a9.h.h(nVar.d());
kotlin.jvm.internal.n.f(h10, "stringify(this.second)");
m2.b bVar = new m2.b(h10);
bVar.c(nVar.c().longValue());
return bVar;
}
}
@Metadata(d1 = {"\u00001\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0011\n\u0002\u0010\t\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0010\u000e\n\u0002\b3*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R*\u0010\t\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0004\u0010\u0006\"\u0004\b\u0007\u0010\bR*\u0010\f\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\n\u0010\u0005\u001a\u0004\b\n\u0010\u0006\"\u0004\b\u000b\u0010\bR*\u0010\u0010\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\r\u0010\u0005\u001a\u0004\b\u000e\u0010\u0006\"\u0004\b\u000f\u0010\bR*\u0010\u0013\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0011\u0010\u0005\u001a\u0004\b\u0012\u0010\u0006\"\u0004\b\u0005\u0010\bR*\u0010\u001b\u001a\u00020\u00142\u0006\u0010\u0003\u001a\u00020\u00148V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR\u001a\u0010 \u001a\u00020\u001c8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u000e\u0010\u001d\u001a\u0004\b\u001e\u0010\u001fR*\u0010#\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0017\u0010\u0005\u001a\u0004\b!\u0010\u0006\"\u0004\b\"\u0010\bR*\u0010'\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b$\u0010\u0005\u001a\u0004\b%\u0010\u0006\"\u0004\b&\u0010\bR*\u0010/\u001a\u00020(2\u0006\u0010\u0003\u001a\u00020(8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b)\u0010*\u001a\u0004\b+\u0010,\"\u0004\b-\u0010.R*\u00103\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b0\u0010\u0005\u001a\u0004\b1\u0010\u0006\"\u0004\b2\u0010\bR*\u00107\u001a\u00020(2\u0006\u0010\u0003\u001a\u00020(8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b4\u0010*\u001a\u0004\b5\u0010,\"\u0004\b6\u0010.R*\u0010;\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b8\u0010\u0005\u001a\u0004\b9\u0010\u0006\"\u0004\b:\u0010\bR*\u0010B\u001a\u00020<2\u0006\u0010\u0003\u001a\u00020<8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b=\u0010>\u001a\u0004\b4\u0010?\"\u0004\b@\u0010AR*\u0010E\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001e\u0010\u0005\u001a\u0004\bC\u0010\u0006\"\u0004\bD\u0010\bR*\u0010G\u001a\u00020<2\u0006\u0010\u0003\u001a\u00020<8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b+\u0010>\u001a\u0004\b)\u0010?\"\u0004\bF\u0010AR*\u0010J\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bC\u0010\u0005\u001a\u0004\bH\u0010\u0006\"\u0004\bI\u0010\bR*\u0010L\u001a\u00020<2\u0006\u0010\u0003\u001a\u00020<8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bH\u0010>\u001a\u0004\b0\u0010?\"\u0004\bK\u0010AR*\u0010O\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bM\u0010\u0005\u001a\u0004\b\r\u0010\u0006\"\u0004\bN\u0010\bR*\u0010P\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b9\u0010\u0005\u001a\u0004\b\u0011\u0010\u0006\"\u0004\b*\u0010\bR*\u0010R\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bQ\u0010\u0005\u001a\u0004\b\u0015\u0010\u0006\"\u0004\b\u0016\u0010\bR*\u0010U\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bS\u0010\u0005\u001a\u0004\b=\u0010\u0006\"\u0004\bT\u0010\bR*\u0010W\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\u0005\u001a\u0004\b8\u0010\u0006\"\u0004\bV\u0010\bR*\u0010[\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bX\u0010\u0005\u001a\u0004\bY\u0010\u0006\"\u0004\bZ\u0010\bR*\u0010]\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bY\u0010\u0005\u001a\u0004\bX\u0010\u0006\"\u0004\b\\\u0010\bR*\u0010_\u001a\u00020(2\u0006\u0010\u0003\u001a\u00020(8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b%\u0010*\u001a\u0004\bS\u0010,\"\u0004\b^\u0010.R*\u0010a\u001a\u00020(2\u0006\u0010\u0003\u001a\u00020(8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b1\u0010*\u001a\u0004\b$\u0010,\"\u0004\b`\u0010.R*\u0010e\u001a\u00020(2\u0006\u0010\u0003\u001a\u00020(8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bb\u0010*\u001a\u0004\bc\u0010,\"\u0004\bd\u0010.R*\u0010g\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bc\u0010\u0005\u001a\u0004\bQ\u0010\u0006\"\u0004\bf\u0010\bR*\u0010i\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b!\u0010\u0005\u001a\u0004\bb\u0010\u0006\"\u0004\bh\u0010\bR*\u0010k\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b5\u0010\u0005\u001a\u0004\bM\u0010\u0006\"\u0004\bj\u0010\bR*\u0010n\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bl\u0010\u0005\u001a\u0004\bl\u0010\u0006\"\u0004\bm\u0010\b¨\u0006o"}, d2 = {"com/adguard/android/storage/z$n", "Lcom/adguard/android/storage/y$k;", "", "value", "a", "Z", "()Z", "F", "(Z)V", "adBlockingEnabled", "b", "G", "annoyancesBlockingEnabled", "c", "f", "K", "browsingSecurityEnabled", DateTokenConverter.CONVERTER_KEY, "v", "languageSpecificAdBlockingEnabled", "", "e", "J", "g", "()J", "L", "(J)V", "browsingSecurityRecommendedUpdateTime", "Lcom/adguard/android/storage/FilteringQuality;", "Lcom/adguard/android/storage/FilteringQuality;", "n", "()Lcom/adguard/android/storage/FilteringQuality;", "filteringQuality", "C", "g0", "stealthModeEnabled", "h", "y", "c0", "selfDestructingFirstPartyCookie", "", IntegerTokenConverter.CONVERTER_KEY, "I", "o", "()I", "S", "(I)V", "firstPartyCookieValue", "j", "z", "d0", "selfDestructingThirdPartyCookie", "k", "D", "h0", "thirdPartyCookieValue", "l", "s", "W", "hideUserAgent", "", "m", "Ljava/lang/String;", "()Ljava/lang/String;", "P", "(Ljava/lang/String;)V", "customUserAgent", "p", "T", "hideIpAddress", "N", "customIpAddress", "q", "U", "hideRefererFromThirdParties", "O", "customReferer", "r", "H", "blockLocation", "blockPushApi", "t", "blockWebRtc", "u", "R", "disableThirdPartyRequestsAuthorization", "Q", "disableCacheForThirdPartyRequests", "w", "x", "b0", "removeXClientDataHeader", "a0", "protectFromDpi", "Y", "httpSplitFragmentSize", "M", "clientHelloSplitFragmentSize", "A", "B", "f0", "splitDelayMs", "X", "httpSpaceJuggling", "e0", "sendDoNotTrackSignals", "V", "hideSearchQuery", "E", "i0", "writeHar", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class n extends y.k {
public int A;
public boolean B;
public boolean C;
public boolean D;
public boolean E;
public boolean f3199b;
public long f3202e;
public boolean f3204g;
public boolean f3205h;
public int f3206i;
public boolean f3207j;
public int f3208k;
public boolean f3209l;
public String f3210m;
public boolean f3211n;
public String f3212o;
public boolean f3213p;
public String f3214q;
public boolean f3215r;
public boolean f3216s;
public boolean f3217t;
public boolean f3218u;
public boolean f3219v;
public boolean f3220w;
public boolean f3221x;
public int f3222y;
public int f3223z;
public boolean f3198a = true;
public boolean f3200c = true;
public boolean f3201d = true;
public final FilteringQuality f3203f = FilteringQuality.Full;
public n() {
this.f3205h = z.this.X().C();
this.f3206i = z.this.X().s();
this.f3207j = z.this.X().D();
this.f3208k = z.this.X().G();
this.f3209l = z.this.X().x();
this.f3210m = z.this.X().p();
this.f3211n = z.this.X().u();
this.f3212o = z.this.X().t();
this.f3213p = z.this.X().v();
this.f3214q = z.this.X().o();
this.f3215r = z.this.X().k();
this.f3216s = z.this.X().l();
this.f3217t = z.this.X().m();
this.f3218u = z.this.X().r();
this.f3219v = z.this.X().q();
this.f3220w = z.this.X().B();
this.f3221x = z.this.X().A();
this.f3222y = z.this.X().z();
this.f3223z = z.this.X().n();
this.A = z.this.X().F();
this.B = z.this.X().y();
this.C = z.this.X().E();
this.D = z.this.X().w();
this.E = z.this.X().H();
}
@Override
public boolean A() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.SendDoNotTrackSignals;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.C);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.C = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public int B() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.SplitDelayMs;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.A);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.A = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean C() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.StealthModeEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3204g);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3204g = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public int D() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.ThirdPartyCookieValue;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3208k);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3208k = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean E() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.WriteHAR;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.E);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.E = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void F(boolean z10) {
l2.l lVar = l2.l.AdBlockingEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3198a = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void G(boolean z10) {
l2.l lVar = l2.l.AnnoyancesEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3199b = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void H(boolean z10) {
l2.l lVar = l2.l.BlockLocation;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3215r = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void I(boolean z10) {
l2.l lVar = l2.l.BlockPushApi;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3216s = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void J(boolean z10) {
l2.l lVar = l2.l.BlockWebRtc;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3217t = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void K(boolean z10) {
l2.l lVar = l2.l.BrowsingSecurityEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3200c = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void L(long j10) {
l2.l lVar = l2.l.BrowsingSecurityRecommendedUpdateTime;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3202e = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void M(int i10) {
l2.l lVar = l2.l.ClientHelloSplitFragmentSize;
z zVar = z.this;
synchronized (lVar) {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3223z = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
}
}
@Override
public void N(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.CustomIpAddress;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3212o = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void O(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.CustomReferer;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3214q = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void P(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.CustomUserAgent;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true | false;
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3210m = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void Q(boolean z10) {
l2.l lVar = l2.l.DisableCacheForThirdPartyRequests;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3219v = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void R(boolean z10) {
l2.l lVar = l2.l.DisableThirdPartyRequestsAuthorization;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3218u = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void S(int i10) {
l2.l lVar = l2.l.FirstPartyCookieValue;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true ^ true;
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3206i = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void T(boolean z10) {
l2.l lVar = l2.l.HideIpAddress;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3211n = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void U(boolean z10) {
l2.l lVar = l2.l.HideRefererFromThirdParties;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z11 = true & false;
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3213p = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void V(boolean z10) {
l2.l lVar = l2.l.HideSearchQuery;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.D = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void W(boolean z10) {
l2.l lVar = l2.l.HideUserAgent;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3209l = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void X(boolean z10) {
l2.l lVar = l2.l.HttpSpaceJuggling;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.B = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void Y(int i10) {
l2.l lVar = l2.l.HttpSplitFragmentSize;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true & true;
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3222y = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void Z(boolean z10) {
l2.l lVar = l2.l.LanguageSpecificAdBlockingEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3201d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public boolean a() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AdBlockingEnabled;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3198a);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3198a = booleanValue;
}
return booleanValue;
}
@Override
public void a0(boolean z10) {
l2.l lVar = l2.l.ProtectFromDpi;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3221x = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AnnoyancesEnabled;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3199b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
?? r92 = false | true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3199b = booleanValue;
}
return booleanValue;
}
@Override
public void b0(boolean z10) {
l2.l lVar = l2.l.RemoveXClientDataHeader;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3220w = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.BlockLocation;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3215r);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3215r = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void c0(boolean z10) {
l2.l lVar = l2.l.SelfDestructingFirstPartyCookie;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3205h = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public boolean d() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.BlockPushApi;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3216s);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3216s = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void d0(boolean z10) {
l2.l lVar = l2.l.SelfDestructingThirdPartyCookie;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3207j = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public boolean e() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.BlockWebRtc;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3217t);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3217t = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void e0(boolean z10) {
l2.l lVar = l2.l.SendDoNotTrackSignals;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.C = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public boolean f() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.BrowsingSecurityEnabled;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3200c);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3200c = booleanValue;
}
return booleanValue;
}
@Override
public void f0(int i10) {
l2.l lVar = l2.l.SplitDelayMs;
z zVar = z.this;
synchronized (lVar) {
try {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.A = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public long g() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.BrowsingSecurityRecommendedUpdateTime;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3202e);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3202e = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public void g0(boolean z10) {
l2.l lVar = l2.l.StealthModeEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3204g = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public int h() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.ClientHelloSplitFragmentSize;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3223z);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3223z = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public void h0(int i10) {
l2.l lVar = l2.l.ThirdPartyCookieValue;
z zVar = z.this;
synchronized (lVar) {
try {
Object i11 = y6.b.i(zVar.f2995f, Integer.valueOf(i10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3208k = ((Number) i11).intValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public String i() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.CustomIpAddress;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3212o;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3212o = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public void i0(boolean z10) {
l2.l lVar = l2.l.WriteHAR;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = 4 << 0;
Object i11 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.E = ((Boolean) i11).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public String j() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.CustomReferer;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3214q;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3214q = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public String k() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.CustomUserAgent;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3210m;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3210m = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public boolean l() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DisableCacheForThirdPartyRequests;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3219v);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3219v = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean m() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.DisableThirdPartyRequestsAuthorization;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3218u);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3218u = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public FilteringQuality n() {
return this.f3203f;
}
@Override
public int o() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.FirstPartyCookieValue;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3206i);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = (3 << 0) ^ 1;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3206i = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean p() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HideIpAddress;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3211n);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3211n = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean q() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HideRefererFromThirdParties;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3213p);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3213p = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean r() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HideSearchQuery;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.D);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.D = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean s() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HideUserAgent;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3209l);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3209l = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean t() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HttpSpaceJuggling;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.B);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.B = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public int u() {
Integer num;
Set<String> set;
String str;
Long l10;
Integer num2;
Float f10;
Boolean bool;
int intValue;
l2.l lVar = l2.l.HttpSplitFragmentSize;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Integer valueOf = Integer.valueOf(this.f3222y);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num = valueOf;
} else {
num = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num = bool;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num = f10;
}
num = (Integer) num;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
num2 = Integer.valueOf(c13.getInt(prefName, valueOf != null ? valueOf.intValue() : 0));
} else {
num2 = null;
}
if (num2 instanceof Integer) {
num = num2;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num = l10;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Integer) {
num = str;
}
num = (Integer) num;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Integer) {
num = set;
}
num = (Integer) num;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = num;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
intValue = valueOf.intValue();
this.f3222y = intValue;
} catch (Throwable th2) {
throw th2;
}
}
return intValue;
}
@Override
public boolean v() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.LanguageSpecificAdBlockingEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3201d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3201d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean w() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.ProtectFromDpi;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3221x);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 2 >> 1;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3221x = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean x() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.RemoveXClientDataHeader;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3220w);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3220w = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean y() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.SelfDestructingFirstPartyCookie;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3205h);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3205h = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean z() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.SelfDestructingThirdPartyCookie;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3207j);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3207j = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
}
@Metadata(d1 = {"\u0000Q\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0017\n\u0002\u0010\"\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\b*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0018\u0010\t\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0010\u0010\n\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0012\u0010\u000b\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016J\u0012\u0010\f\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0016R6\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u000e0\r2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u000e0\r8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R6\u0010\u001b\u001a\b\u0012\u0004\u0012\u00020\u00170\r2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00170\r8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u0011\u001a\u0004\b\u0019\u0010\u0013\"\u0004\b\u001a\u0010\u0015R*\u0010#\u001a\u00020\u001c2\u0006\u0010\u000f\u001a\u00020\u001c8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001f\u0010 \"\u0004\b!\u0010\"R6\u0010&\u001a\b\u0012\u0004\u0012\u00020\u00020\r2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00020\r8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b$\u0010\u0011\u001a\u0004\b\u0018\u0010\u0013\"\u0004\b%\u0010\u0015R6\u0010*\u001a\b\u0012\u0004\u0012\u00020\u00020\r2\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00020\r8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b'\u0010\u0011\u001a\u0004\b(\u0010\u0013\"\u0004\b)\u0010\u0015R*\u0010,\u001a\u00020\u001c2\u0006\u0010\u000f\u001a\u00020\u001c8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b(\u0010\u001e\u001a\u0004\b\u001d\u0010 \"\u0004\b+\u0010\"R*\u00101\u001a\u00020\u00022\u0006\u0010\u000f\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010-\u001a\u0004\b\u0010\u0010.\"\u0004\b/\u00100R*\u00103\u001a\u00020\u00022\u0006\u0010\u000f\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0019\u0010-\u001a\u0004\b'\u0010.\"\u0004\b2\u00100R6\u00109\u001a\b\u0012\u0004\u0012\u00020\u0004042\f\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u0004048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001f\u00105\u001a\u0004\b$\u00106\"\u0004\b7\u00108R \u0010<\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00020:8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\f\u0010;R \u0010?\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u000e0\r0=8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010>R \u0010@\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00170\r0=8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010>R\u001a\u0010B\u001a\b\u0012\u0004\u0012\u00020\u000e0\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bA\u0010\u0013R\u001a\u0010D\u001a\b\u0012\u0004\u0012\u00020\u00170\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bC\u0010\u0013¨\u0006E"}, d2 = {"com/adguard/android/storage/z$o", "Lcom/adguard/android/storage/y$l;", "", "content", "", "id", "", "m", "filePath", "n", "k", "l", "j", "", "Ld2/a;", "value", "a", "Ljava/util/List;", "g", "()Ljava/util/List;", "u", "(Ljava/util/List;)V", "list", "Ld2/b;", "b", "h", "v", "metaList", "", "c", "Z", IntegerTokenConverter.CONVERTER_KEY, "()Z", "w", "(Z)V", "userFiltersEnabled", DateTokenConverter.CONVERTER_KEY, "p", "allUserRules", "e", "f", "t", "disabledUserRules", "q", "allowListEnabled", "Ljava/lang/String;", "()Ljava/lang/String;", "o", "(Ljava/lang/String;)V", "allAllowListRules", "s", "disabledAllowListRules", "", "Ljava/util/Set;", "()Ljava/util/Set;", "r", "(Ljava/util/Set;)V", "annoyanceFilterIdsWithConsentApproved", "Ljava/util/concurrent/ConcurrentHashMap;", "Ljava/util/concurrent/ConcurrentHashMap;", "filterRulesCache", "Lh9/b;", "Lh9/b;", "filtersCacheBox", "filtersMetaCacheBox", "y", "defaultList", "x", "defaultFiltersMeta", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class o extends y.l {
public List<? extends d2.a> f3224a = zb.q.j();
public List<d2.b> f3225b = zb.q.j();
public boolean f3226c = true;
public List<String> f3227d = zb.q.j();
public List<String> f3228e = zb.q.j();
public boolean f3229f = true;
public String f3230g = "";
public String f3231h = "";
public Set<Integer> f3232i = q0.d();
public final ConcurrentHashMap<Integer, String> f3233j = new ConcurrentHashMap<>();
public final h9.b<List<d2.a>> f3234k;
public final h9.b<List<d2.b>> f3235l;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<Set<? extends Integer>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class c extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class d extends TypeReference<List<? extends d2.a>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class e extends TypeReference<List<? extends d2.b>> {
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"", "Ld2/a;", "a", "()Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class f extends kotlin.jvm.internal.p implements mc.a<List<? extends d2.a>> {
public final z f3237e;
public f(z zVar) {
super(0);
this.f3237e = zVar;
}
@Override
public final List<d2.a> invoke() {
return this.f3237e.Y().a();
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\n\u0012\u0004\u0012\u00020\u0001\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"", "Ld2/b;", "a", "()Ljava/util/List;"}, k = 3, mv = {1, 8, 0})
public static final class g extends kotlin.jvm.internal.p implements mc.a<List<? extends d2.b>> {
public final Context f3238e;
public final o f3239g;
public g(Context context, o oVar) {
super(0);
this.f3238e = context;
this.f3239g = oVar;
}
@Override
public final List<d2.b> invoke() {
return new n.c(this.f3238e).I(this.f3239g.y());
}
}
public o(Context context) {
this.f3234k = new h9.b<>(-1L, true, true, new f(z.this));
this.f3235l = new h9.b<>(-1L, true, true, new g(context, this));
}
@Override
public String a() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.AllAllowListRules;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
str = this.f3230g;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3230g = str;
}
return str;
}
@Override
public List<String> b() {
List<String> list;
l2.l lVar = l2.l.AllUserFilterRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3227d;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3227d = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.AllowListEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3229f);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3229f = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public Set<Integer> d() {
Set<Integer> set;
l2.l lVar = l2.l.AnnoyanceFilterIdsWithConsentApproved;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Set<Integer> set2 = this.f3232i;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
set2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(set2);
set = set2;
this.f3232i = set;
} catch (Throwable th2) {
throw th2;
}
}
return set;
}
@Override
public String e() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.DisabledAllowListRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3231h;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(str);
this.f3231h = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public List<String> f() {
List<String> list;
l2.l lVar = l2.l.DisabledUserFilterRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3228e;
c cVar = new c();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3228e = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<d2.a> g() {
String str;
List<d2.a> list;
l2.l lVar = l2.l.FiltersList;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3224a;
d dVar = new d();
boolean z10 = false;
Collection collection = null;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Boolean valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (!(valueOf instanceof String)) {
valueOf = null;
}
str = (String) valueOf;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Float valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (!(valueOf2 instanceof String)) {
valueOf2 = null;
}
str = (String) valueOf2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Integer valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (!(valueOf3 instanceof String)) {
valueOf3 = null;
}
str = (String) valueOf3;
} else {
if (kotlin.jvm.internal.n.b(String.class, Long.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Long.class)) {
SharedPreferences c14 = bVar.c();
Long valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (!(valueOf4 instanceof String)) {
valueOf4 = null;
}
str = (String) valueOf4;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
str = c15 != null ? c15.getString(prefName, null) : null;
if (!(str instanceof String)) {
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (!(stringSet instanceof String)) {
stringSet = null;
}
str = (String) stringSet;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
Object b10 = a9.h.b(str, dVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
str = null;
Object b102 = a9.h.b(str, dVar);
bVar.d().add(lVar.getPrefName());
obj = b102;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
Collection collection2 = (Collection) obj;
if (collection2 == null || collection2.isEmpty()) {
z10 = true;
}
if (!z10) {
collection = collection2;
}
list = (List) collection;
if (list == null) {
list = y();
boolean z11 = true;
y6.b.k(zVar.f2995f, list, l2.l.FiltersList, null, 4, null);
}
this.f3224a = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<d2.b> h() {
String str;
List<d2.b> list;
l2.l lVar = l2.l.FiltersMeta;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3225b;
e eVar = new e();
boolean z10 = false;
List<d2.b> list2 = null;
int i10 = 5 >> 0;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Boolean valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (!(valueOf instanceof String)) {
valueOf = null;
}
str = (String) valueOf;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Float valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (!(valueOf2 instanceof String)) {
valueOf2 = null;
}
str = (String) valueOf2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Integer valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (!(valueOf3 instanceof String)) {
valueOf3 = null;
}
str = (String) valueOf3;
} else {
if (kotlin.jvm.internal.n.b(String.class, Long.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Long.class)) {
SharedPreferences c14 = bVar.c();
Long valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (!(valueOf4 instanceof String)) {
valueOf4 = null;
}
str = (String) valueOf4;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
str = c15 != null ? c15.getString(prefName, null) : null;
if (!(str instanceof String)) {
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (!(stringSet instanceof String)) {
stringSet = null;
}
str = (String) stringSet;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
Object b10 = a9.h.b(str, eVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
str = null;
Object b102 = a9.h.b(str, eVar);
bVar.d().add(lVar.getPrefName());
obj = b102;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
List<d2.b> list3 = (Collection) obj;
if (list3 == null || list3.isEmpty()) {
z10 = true;
}
if (!z10) {
list2 = list3;
}
list = list2;
if (list == null) {
list = x();
boolean z11 = true;
y6.b.k(zVar.f2995f, list, l2.l.FiltersMeta, null, 4, null);
}
this.f3225b = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean i() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.UserFilterEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3226c);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3226c = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String j(int i10) {
x6.a aVar = z.this.f2992c;
return aVar.c("/filters/filter_" + i10 + ".txt");
}
@Override
public void k(int i10) {
this.f3233j.remove(Integer.valueOf(i10));
x6.a aVar = z.this.f2992c;
aVar.k("/filters/filter_" + i10 + ".txt");
z.this.d0(l2.p.FiltersList);
}
@Override
public String l(int i10) {
String str;
String str2 = this.f3233j.get(Integer.valueOf(i10));
if (str2 == null) {
str2 = z.this.f2992c.h("/filters/filter_" + i10 + ".txt");
if (str2 != null) {
this.f3233j.put(Integer.valueOf(i10), str2);
} else {
str2 = null;
}
if (str2 == null) {
a9.c unused = z.this.f2994e;
String str3 = "/assets" + ("/preset/filter_" + i10 + ".txt");
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
InputStream resourceAsStream = a9.n.class.getResourceAsStream(str3);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
} else {
str = null;
}
str2 = str;
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str3 + "' path", th2);
str2 = null;
}
if (str2 != null) {
this.f3233j.put(Integer.valueOf(i10), str2);
} else {
str2 = null;
}
}
}
return str2;
}
@Override
public void m(String content, int i10) {
kotlin.jvm.internal.n.g(content, "content");
this.f3233j.put(Integer.valueOf(i10), content);
x6.a aVar = z.this.f2992c;
aVar.l("/filters/filter_" + i10 + ".txt", content);
z.this.d0(l2.p.FiltersList);
}
@Override
public void n(String filePath, int i10) {
String str;
kotlin.jvm.internal.n.g(filePath, "filePath");
String i11 = z.this.f2992c.i(filePath);
if (i11 != null && (str = (String) z5.w.h(i11)) != null) {
m(str, i10);
return;
}
uh.c cVar = z.U;
cVar.debug("Failed to save content for filter with id " + i10 + ": the content is null or blank");
}
@Override
public void o(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.AllAllowListRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3230g = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void p(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.AllUserFilterRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3227d = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void q(boolean z10) {
l2.l lVar = l2.l.AllowListEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z11 = true ^ true;
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3229f = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void r(Set<Integer> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.AnnoyanceFilterIdsWithConsentApproved;
z zVar = z.this;
synchronized (lVar) {
boolean z10 = true & false;
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3232i = (Set) k10;
Unit unit = Unit.INSTANCE;
}
}
@Override
public void s(String value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DisabledAllowListRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3231h = (String) i10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void t(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DisabledUserFilterRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3228e = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void u(List<? extends d2.a> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FiltersList;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3224a = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void v(List<d2.b> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FiltersMeta;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3225b = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void w(boolean z10) {
l2.l lVar = l2.l.UserFilterEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3226c = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
public List<d2.b> x() {
List<d2.b> list = this.f3235l.get();
if (list == null) {
list = zb.q.j();
}
return list;
}
public List<d2.a> y() {
List<d2.a> list = this.f3234k.get();
if (list == null) {
list = zb.q.j();
}
return list;
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Ll2/f;", "a", "()Ll2/f;"}, k = 3, mv = {1, 8, 0})
public static final class p extends kotlin.jvm.internal.p implements mc.a<l2.f> {
public p() {
super(0);
}
@Override
public final l2.f invoke() {
String str;
Object d10;
InputStream resourceAsStream;
a9.c unused = z.this.f2994e;
String str2 = "/assets/preset/filters.json";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
resourceAsStream = a9.n.class.getResourceAsStream(str2);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str2 + "' path", th2);
}
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
d10 = str != null ? a9.h.d(str, f2.b.class) : null;
if (d10 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /preset/filters.json");
}
return new l2.f((f2.b) d10);
}
str = null;
if (str != null) {
}
if (d10 == null) {
}
return new l2.f((f2.b) d10);
}
}
@Metadata(d1 = {"\u00005\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R\u0014\u0010\u0005\u001a\u00020\u00028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R*\u0010\u000e\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00068V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\b\u0010\t\u001a\u0004\b\n\u0010\u000b\"\u0004\b\f\u0010\rR*\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00068V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\n\u0010\t\u001a\u0004\b\u000f\u0010\u000b\"\u0004\b\u0010\u0010\rR*\u0010\u0014\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00068V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0012\u0010\t\u001a\u0004\b\b\u0010\u000b\"\u0004\b\u0013\u0010\rR*\u0010\u001b\u001a\u00020\u00152\u0006\u0010\u0007\u001a\u00020\u00158V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0016\u0010\u0018\"\u0004\b\u0019\u0010\u001aR6\u0010\"\u001a\b\u0012\u0004\u0012\u00020\u001d0\u001c2\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u001d0\u001c8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000f\u0010\u001e\u001a\u0004\b\u0003\u0010\u001f\"\u0004\b \u0010!R*\u0010(\u001a\u00020#2\u0006\u0010\u0007\u001a\u00020#8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b \u0010$\u001a\u0004\b\u0012\u0010%\"\u0004\b&\u0010'¨\u0006)"}, d2 = {"com/adguard/android/storage/z$q", "Lcom/adguard/android/storage/y$m;", "Ld0/p0$b;", "a", "Ld0/p0$b;", "assistant", "", "value", "b", "Z", "c", "()Z", IntegerTokenConverter.CONVERTER_KEY, "(Z)V", "enabled", "f", "l", "globalRuleEnabled", DateTokenConverter.CONVERTER_KEY, "h", "customRulesEnabled", "Ld0/t0;", "e", "Ld0/t0;", "()Ld0/t0;", "k", "(Ld0/t0;)V", "globalRule", "", "Ll2/h;", "Ljava/util/List;", "()Ljava/util/List;", "g", "(Ljava/util/List;)V", "customFirewallRules", "Ld0/q0;", "Ld0/q0;", "()Ld0/q0;", "j", "(Ld0/q0;)V", "firewallNotificationsConfiguration", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class q extends y.m {
public final p0.b f3241a;
public boolean f3242b;
public boolean f3243c;
public boolean f3244d;
public t0 f3245e;
public List<? extends l2.h> f3246f;
public d0.q0 f3247g;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends l2.h>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<d0.q0> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class c extends TypeReference<t0> {
}
public q() {
p0.b bVar = new p0.b();
this.f3241a = bVar;
this.f3242b = bVar.c();
this.f3243c = bVar.f();
this.f3244d = bVar.b();
this.f3245e = bVar.e();
this.f3246f = bVar.a();
this.f3247g = bVar.d();
}
@Override
public List<l2.h> a() {
List<l2.h> list;
l2.l lVar = l2.l.FirewallCustomRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3246f;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
Object b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(obj);
list = (List) obj;
this.f3246f = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.FirewallCustomRulesEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3244d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3244d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.FirewallEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3242b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3242b = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public d0.q0 d() {
d0.q0 q0Var;
l2.l lVar = l2.l.FirewallNotificationsSettings;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
d0.q0 q0Var2 = this.f3247g;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
q0Var2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(q0Var2);
q0Var = q0Var2;
this.f3247g = q0Var;
} catch (Throwable th2) {
throw th2;
}
}
return q0Var;
}
@Override
public t0 e() {
t0 t0Var;
l2.l lVar = l2.l.FirewallGlobalRule;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
t0 t0Var2 = this.f3245e;
c cVar = new c();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
t0Var2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(t0Var2);
t0Var = t0Var2;
this.f3245e = t0Var;
} catch (Throwable th2) {
throw th2;
}
}
return t0Var;
}
@Override
public boolean f() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.FirewallGlobalRuleEnabled;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3243c);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3243c = booleanValue;
}
return booleanValue;
}
@Override
public void g(List<? extends l2.h> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FirewallCustomRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3246f = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void h(boolean z10) {
l2.l lVar = l2.l.FirewallCustomRulesEnabled;
z zVar = z.this;
synchronized (lVar) {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3244d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
}
}
@Override
public void i(boolean z10) {
l2.l lVar = l2.l.FirewallEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3242b = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void j(d0.q0 value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FirewallNotificationsSettings;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3247g = (d0.q0) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void k(t0 value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.FirewallGlobalRule;
z zVar = z.this;
synchronized (lVar) {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3245e = (t0) k10;
Unit unit = Unit.INSTANCE;
}
}
@Override
public void l(boolean z10) {
l2.l lVar = l2.l.FirewallGlobalRuleEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3243c = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Le0/p$b;", "a", "()Le0/p$b;"}, k = 3, mv = {1, 8, 0})
public static final class r extends kotlin.jvm.internal.p implements mc.a<p.b> {
public static final r f3249e = new r();
public r() {
super(0);
}
@Override
public final p.b invoke() {
return new p.b();
}
}
@Metadata(d1 = {"\u0000/\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0010\u000e\n\u0002\b\u000f\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0010 \n\u0002\b'*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\b\u0010\u0003\u001a\u00020\u0002H\u0016R*\u0010\f\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\t\"\u0004\b\n\u0010\u000bR.\u0010\u0014\u001a\u0004\u0018\u00010\r2\b\u0010\u0005\u001a\u0004\u0018\u00010\r8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000e\u0010\u000f\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R.\u0010\u0018\u001a\u0004\u0018\u00010\r2\b\u0010\u0005\u001a\u0004\u0018\u00010\r8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u000f\u001a\u0004\b\u0016\u0010\u0011\"\u0004\b\u0017\u0010\u0013R*\u0010\u001c\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0019\u0010\u0007\u001a\u0004\b\u001a\u0010\t\"\u0004\b\u001b\u0010\u000bR*\u0010$\u001a\u00020\u001d2\u0006\u0010\u0005\u001a\u00020\u001d8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!\"\u0004\b\"\u0010#R*\u0010&\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010\u0007\u001a\u0004\b\u0015\u0010\t\"\u0004\b%\u0010\u000bR*\u0010)\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b'\u0010\u0007\u001a\u0004\b\u001e\u0010\t\"\u0004\b(\u0010\u000bR6\u00100\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b+\u0010,\u001a\u0004\b\u0006\u0010-\"\u0004\b.\u0010/R6\u00103\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b1\u0010,\u001a\u0004\b\u0019\u0010-\"\u0004\b2\u0010/R6\u00106\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b4\u0010,\u001a\u0004\b'\u0010-\"\u0004\b5\u0010/R6\u00109\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b7\u0010,\u001a\u0004\b1\u0010-\"\u0004\b8\u0010/R6\u0010<\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b:\u0010,\u001a\u0004\b\u000e\u0010-\"\u0004\b;\u0010/R6\u0010?\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b=\u0010,\u001a\u0004\b+\u0010-\"\u0004\b>\u0010/R6\u0010A\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u001a\u0010,\u001a\u0004\b4\u0010-\"\u0004\b@\u0010/R6\u0010D\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bB\u0010,\u001a\u0004\b:\u0010-\"\u0004\bC\u0010/R6\u0010F\u001a\b\u0012\u0004\u0012\u00020\r0*2\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\r0*8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\b\u0010,\u001a\u0004\b=\u0010-\"\u0004\bE\u0010/R*\u0010I\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010\u0007\u001a\u0004\bG\u0010\t\"\u0004\bH\u0010\u000bR*\u0010L\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b \u0010\u0007\u001a\u0004\bJ\u0010\t\"\u0004\bK\u0010\u000bR*\u0010N\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bJ\u0010\u0007\u001a\u0004\b7\u0010\t\"\u0004\bM\u0010\u000bR*\u0010P\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00048V@VX\u0096\u000e¢\u0006\u0012\n\u0004\bG\u0010\u0007\u001a\u0004\bB\u0010\t\"\u0004\bO\u0010\u000b¨\u0006Q"}, d2 = {"com/adguard/android/storage/z$s", "Lcom/adguard/android/storage/y$n;", "", "u", "", "value", "a", "Z", "p", "()Z", "K", "(Z)V", "httpsFilteringEnabled", "", "b", "Ljava/lang/String;", "f", "()Ljava/lang/String;", "A", "(Ljava/lang/String;)V", "certKeyPairInPem", "c", "q", "L", "intermediateCertKeyPairInPem", DateTokenConverter.CONVERTER_KEY, "n", "I", "filterWithEvCertificate", "Lcom/adguard/android/management/https/HttpsFilteringMode;", "e", "Lcom/adguard/android/management/https/HttpsFilteringMode;", "r", "()Lcom/adguard/android/management/https/HttpsFilteringMode;", "M", "(Lcom/adguard/android/management/https/HttpsFilteringMode;)V", "mode", "x", "allowlistEnabled", "g", "z", "blocklistEnabled", "", "h", "Ljava/util/List;", "()Ljava/util/List;", "v", "(Ljava/util/List;)V", "allowList", IntegerTokenConverter.CONVERTER_KEY, "y", "blockList", "j", "B", "deletedAllowlistDefaultRules", "k", "D", "disabledAllowlistDefaultRules", "l", "w", "allowlistCustomRules", "m", "C", "disabledAllowlistCustomRules", "E", "disabledBlocklistRules", "o", "G", "excludedSubdomainsAllowlistRules", "H", "excludedSubdomainsBlocklistRules", "t", "O", "redirectDnsOverHttps", "s", "N", "ocspCheckEnabled", "F", "enableEch", "J", "http3FilteringEnabled", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class s extends y.n {
public boolean f3250a;
public String f3251b;
public String f3252c;
public boolean f3253d;
public HttpsFilteringMode f3254e;
public boolean f3255f = true;
public boolean f3256g = true;
public List<String> f3257h;
public List<String> f3258i;
public List<String> f3259j;
public List<String> f3260k;
public List<String> f3261l;
public List<String> f3262m;
public List<String> f3263n;
public List<String> f3264o;
public List<String> f3265p;
public boolean f3266q;
public boolean f3267r;
public boolean f3268s;
public boolean f3269t;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class c extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class d extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class e extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class f extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class g extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class h extends TypeReference<List<? extends String>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class i extends TypeReference<List<? extends String>> {
}
public s() {
String str;
String str2;
InputStream resourceAsStream;
InputStream resourceAsStream2;
this.f3253d = z.this.Z().d();
this.f3254e = z.this.Z().f();
a9.c unused = z.this.f2994e;
String str3 = "/assets/preset/https/ssl_allow_list.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
resourceAsStream2 = a9.n.class.getResourceAsStream(str3);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str3 + "' path", th2);
}
if (resourceAsStream2 != null) {
kotlin.jvm.internal.n.f(resourceAsStream2, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream2, ff.c.f15045b);
jc.c.a(resourceAsStream2, null);
List<String> d10 = str != null ? null : z5.w.d(str);
this.f3257h = d10 == null ? zb.q.j() : d10;
a9.c unused2 = z.this.f2994e;
String str4 = "/assets/preset/https/ssl_block_list.txt";
uh.c _LOG2 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG2, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str4);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str2 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
List<String> d11 = str2 != null ? z5.w.d(str2) : null;
this.f3258i = d11 == null ? zb.q.j() : d11;
this.f3259j = zb.q.j();
this.f3260k = zb.q.j();
this.f3261l = zb.q.j();
this.f3262m = zb.q.j();
this.f3263n = zb.q.j();
this.f3264o = zb.q.j();
this.f3265p = zb.q.j();
this.f3266q = z.this.Z().h();
this.f3267r = z.this.Z().g();
this.f3268s = z.this.Z().a();
this.f3269t = z.this.Z().e();
}
str2 = null;
if (str2 != null) {
}
this.f3258i = d11 == null ? zb.q.j() : d11;
this.f3259j = zb.q.j();
this.f3260k = zb.q.j();
this.f3261l = zb.q.j();
this.f3262m = zb.q.j();
this.f3263n = zb.q.j();
this.f3264o = zb.q.j();
this.f3265p = zb.q.j();
this.f3266q = z.this.Z().h();
this.f3267r = z.this.Z().g();
this.f3268s = z.this.Z().a();
this.f3269t = z.this.Z().e();
}
str = null;
if (str != null) {
}
this.f3257h = d10 == null ? zb.q.j() : d10;
a9.c unused22 = z.this.f2994e;
String str42 = "/assets/preset/https/ssl_block_list.txt";
uh.c _LOG22 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG22, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str42);
if (resourceAsStream != null) {
}
str2 = null;
if (str2 != null) {
}
this.f3258i = d11 == null ? zb.q.j() : d11;
this.f3259j = zb.q.j();
this.f3260k = zb.q.j();
this.f3261l = zb.q.j();
this.f3262m = zb.q.j();
this.f3263n = zb.q.j();
this.f3264o = zb.q.j();
this.f3265p = zb.q.j();
this.f3266q = z.this.Z().h();
this.f3267r = z.this.Z().g();
this.f3268s = z.this.Z().a();
this.f3269t = z.this.Z().e();
}
@Override
public void A(String str) {
l2.l lVar = l2.l.CertKeyPairInPem;
z zVar = z.this;
synchronized (lVar) {
try {
this.f3251b = (String) y6.b.i(zVar.f2995f, str, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void B(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DeletedHttpsAllowlistDefaultRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3259j = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void C(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DisabledHttpsAllowlistCustomRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3262m = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void D(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DisabledHttpsAllowlistDefaultRules;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true | true | false;
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3260k = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void E(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.DisabledHttpsBlocklistRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3263n = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void F(boolean z10) {
l2.l lVar = l2.l.EnableECH;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3268s = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void G(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ExcludedSubdomainsHttpsAllowlistRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3264o = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void H(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.ExcludedSubdomainsHttpsBlocklistRules;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3265p = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void I(boolean z10) {
l2.l lVar = l2.l.FilterWithEvCertificate;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3253d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void J(boolean z10) {
l2.l lVar = l2.l.Http3FilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3269t = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void K(boolean z10) {
l2.l lVar = l2.l.HttpsFilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3250a = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void L(String str) {
l2.l lVar = l2.l.SecondaryCertKeyPairInPem;
z zVar = z.this;
synchronized (lVar) {
try {
this.f3252c = (String) y6.b.i(zVar.f2995f, str, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void M(HttpsFilteringMode value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.HttpsFilteringMode;
z zVar = z.this;
synchronized (lVar) {
try {
Integer num = (Integer) y6.b.i(zVar.f2995f, Integer.valueOf(value.getCode()), lVar, null, 4, null);
Enum r12 = null;
if (num != null) {
int intValue = num.intValue();
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(HttpsFilteringMode.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
r12 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, intValue, null, 2, null);
}
}
kotlin.jvm.internal.n.d(r12);
this.f3254e = r12;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void N(boolean z10) {
l2.l lVar = l2.l.EnableOSCP;
z zVar = z.this;
synchronized (lVar) {
try {
int i10 = (0 << 4) >> 0;
Object i11 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i11);
this.f3267r = ((Boolean) i11).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void O(boolean z10) {
l2.l lVar = l2.l.RedirectDnsOverHttps;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3266q = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public List<String> a() {
List<String> list;
l2.l lVar = l2.l.HttpsAllowList;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3257h;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
boolean z11 = true & true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3257h = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<String> b() {
List<String> list;
l2.l lVar = l2.l.HttpsAllowlistCustomRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3261l;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3261l = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean c() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HttpsAllowlistEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3255f);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3255f = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public List<String> d() {
List<String> list;
l2.l lVar = l2.l.HttpsBlockList;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3258i;
c cVar = new c();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, cVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3258i = list;
}
return list;
}
@Override
public boolean e() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HttpsBlocklistEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3256g);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3256g = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String f() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.CertKeyPairInPem;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3251b;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
this.f3251b = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public List<String> g() {
Object obj;
List<String> list;
l2.l lVar = l2.l.DeletedHttpsAllowlistDefaultRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3259j;
d dVar = new d();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
boolean z11 = false;
obj = Float.valueOf(c12.getFloat(prefName, 0.0f));
} else {
obj = null;
}
if (obj instanceof String) {
str = obj;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf2 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf3 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, dVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3259j = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<String> h() {
List<String> list;
l2.l lVar = l2.l.DisabledHttpsAllowlistCustomRules;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3262m;
e eVar = new e();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, eVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3262m = list;
}
return list;
}
@Override
public List<String> i() {
List<String> list;
l2.l lVar = l2.l.DisabledHttpsAllowlistDefaultRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3260k;
f fVar = new f();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, fVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3260k = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<String> j() {
List<String> list;
l2.l lVar = l2.l.DisabledHttpsBlocklistRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3263n;
g gVar = new g();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 1 >> 1;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, gVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3263n = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean k() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.EnableECH;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3268s);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3268s = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public List<String> l() {
List<String> list;
l2.l lVar = l2.l.ExcludedSubdomainsHttpsAllowlistRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3264o;
h hVar = new h();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, hVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3264o = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<String> m() {
List<String> list;
l2.l lVar = l2.l.ExcludedSubdomainsHttpsBlocklistRules;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<String> list2 = this.f3265p;
i iVar = new i();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, iVar);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3265p = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public boolean n() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.FilterWithEvCertificate;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3253d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3253d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean o() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.Http3FilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3269t);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
int i10 = 6 << 1;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3269t = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean p() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.HttpsFilteringEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3250a);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3250a = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public String q() {
String str;
String str2;
Set<String> set;
String str3;
String str4;
String str5;
String str6;
String str7;
l2.l lVar = l2.l.SecondaryCertKeyPairInPem;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
str = this.f3252c;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if ((c10 == null || c10.contains(prefName)) ? false : true) {
str2 = str;
} else {
str2 = null;
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool = str instanceof Boolean ? (Boolean) str : null;
str7 = Boolean.valueOf(c11.getBoolean(prefName, bool != null ? bool.booleanValue() : false));
} else {
str7 = null;
}
if (str7 instanceof String) {
str2 = str7;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f10 = str instanceof Float ? (Float) str : null;
str6 = Float.valueOf(c12.getFloat(prefName, f10 != null ? f10.floatValue() : 0.0f));
} else {
str6 = null;
}
if (str6 instanceof String) {
str2 = str6;
}
str2 = str2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num = str instanceof Integer ? (Integer) str : null;
str5 = Integer.valueOf(c13.getInt(prefName, num != null ? num.intValue() : 0));
} else {
str5 = null;
}
if (str5 instanceof String) {
str2 = str5;
}
str2 = str2;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l10 = str instanceof Long ? (Long) str : null;
str4 = Long.valueOf(c14.getLong(prefName, l10 != null ? l10.longValue() : 0L));
} else {
str4 = null;
}
if (str4 instanceof String) {
str2 = str4;
}
str2 = str2;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str3 = c15.getString(prefName, str instanceof String ? str : null);
} else {
str3 = null;
}
if (str3 instanceof String) {
str2 = str3;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, str instanceof Set ? (Set) str : null);
} else {
set = null;
}
if (set instanceof String) {
str2 = set;
}
str2 = str2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
str = str2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + String.class + " value from preferences, returning a cached value", e10);
}
}
this.f3252c = str;
} catch (Throwable th2) {
throw th2;
}
}
return str;
}
@Override
public HttpsFilteringMode r() {
Set<String> set;
String str;
Long l10;
Float f10;
Boolean bool;
HttpsFilteringMode httpsFilteringMode;
l2.l lVar = l2.l.HttpsFilteringMode;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
HttpsFilteringMode httpsFilteringMode2 = this.f3254e;
int code = httpsFilteringMode2.getCode();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
Integer valueOf = Integer.valueOf(code);
SharedPreferences c10 = bVar.c();
boolean z10 = true;
HttpsFilteringMode httpsFilteringMode3 = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (!(bool instanceof Integer)) {
bool = null;
}
valueOf = (Integer) bool;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (!(f10 instanceof Integer)) {
f10 = null;
}
valueOf = (Integer) f10;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
valueOf = c13 != null ? Integer.valueOf(c13.getInt(prefName, valueOf.intValue())) : null;
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (!(l10 instanceof Integer)) {
l10 = null;
}
valueOf = (Integer) l10;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (!(str instanceof Integer)) {
str = null;
}
valueOf = (Integer) str;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (!(set instanceof Integer)) {
set = null;
}
valueOf = (Integer) set;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
valueOf = null;
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
Object b10 = uc.d.b(kotlin.jvm.internal.c0.b(HttpsFilteringMode.class));
a.AbstractC0960a abstractC0960a = b10 instanceof a.AbstractC0960a ? (a.AbstractC0960a) b10 : null;
if (abstractC0960a != null) {
if (valueOf == null) {
throw new Exception("A code from preferences is null");
}
httpsFilteringMode3 = (Enum) a.AbstractC0960a.ofOrNull$default(abstractC0960a, valueOf.intValue(), null, 2, null);
}
httpsFilteringMode2 = httpsFilteringMode3;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting enum " + HttpsFilteringMode.class + " value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(httpsFilteringMode2);
httpsFilteringMode = httpsFilteringMode2;
this.f3254e = httpsFilteringMode;
} catch (Throwable th2) {
throw th2;
}
}
return httpsFilteringMode;
}
@Override
public boolean s() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.EnableOSCP;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3267r);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3267r = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean t() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.RedirectDnsOverHttps;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3266q);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3266q = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public void u() {
String str;
InputStream resourceAsStream;
a9.c unused = z.this.f2994e;
String str2 = "/assets/preset/https/ssl_block_list.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
List<String> list = null;
try {
resourceAsStream = a9.n.class.getResourceAsStream(str2);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str2 + "' path", th2);
}
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
if (str == null) {
list = z5.w.d(str);
}
if (list == null) {
list = zb.q.j();
}
y(list);
}
str = null;
if (str == null) {
}
if (list == null) {
}
y(list);
}
@Override
public void v(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.HttpsAllowList;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3257h = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void w(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.HttpsAllowlistCustomRules;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z10 = true ^ true;
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3261l = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void x(boolean z10) {
l2.l lVar = l2.l.HttpsAllowlistEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3255f = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void y(List<String> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.HttpsBlockList;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3258i = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void z(boolean z10) {
l2.l lVar = l2.l.HttpsBlocklistEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3256g = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\u0019\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0010\t\n\u0002\b\u0007*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R.\u0010\t\u001a\u0004\u0018\u00010\u00022\b\u0010\u0003\u001a\u0004\u0018\u00010\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0004\u0010\u0006\"\u0004\b\u0007\u0010\bR*\u0010\u0010\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\n8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\u000b\u0010\r\"\u0004\b\u000e\u0010\u000f¨\u0006\u0011"}, d2 = {"com/adguard/android/storage/z$t", "Lcom/adguard/android/storage/y$o;", "", "value", "a", "Ljava/lang/Boolean;", "()Ljava/lang/Boolean;", "c", "(Ljava/lang/Boolean;)V", "integrationEnabled", "", "b", "J", "()J", DateTokenConverter.CONVERTER_KEY, "(J)V", "synchronizationLastTime", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class t extends y.o {
public Boolean f3271a;
public long f3272b;
public t() {
}
@Override
public Boolean a() {
Boolean bool;
Boolean bool2;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool3;
l2.l lVar = l2.l.IntegrationEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
bool = this.f3271a;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool2 = bool;
} else {
bool2 = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool4 = bool instanceof Boolean ? bool : null;
bool3 = Boolean.valueOf(c11.getBoolean(prefName, bool4 != null ? bool4.booleanValue() : false));
} else {
bool3 = null;
}
if (bool3 instanceof Boolean) {
bool2 = bool3;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = bool instanceof Float ? (Float) bool : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool2 = f10;
}
bool2 = (Boolean) bool2;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = bool instanceof Integer ? (Integer) bool : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool2 = num;
}
bool2 = (Boolean) bool2;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = bool instanceof Long ? (Long) bool : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool2 = l10;
}
bool2 = (Boolean) bool2;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, bool instanceof String ? (String) bool : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool2 = str;
}
bool2 = (Boolean) bool2;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, bool instanceof Set ? (Set) bool : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool2 = set;
}
bool2 = (Boolean) bool2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
bool = bool2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
this.f3271a = bool;
} catch (Throwable th2) {
throw th2;
}
}
return bool;
}
@Override
public long b() {
Long l10;
Set<String> set;
String str;
Long l11;
Integer num;
Float f10;
Boolean bool;
long longValue;
l2.l lVar = l2.l.SynchronizationLastTime;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Long valueOf = Long.valueOf(this.f3272b);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
l10 = valueOf;
} else {
l10 = 0;
if (kotlin.jvm.internal.n.b(Long.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = valueOf instanceof Boolean ? (Boolean) valueOf : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Long) {
l10 = bool;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Long) {
l10 = f10;
}
l10 = (Long) l10;
} else {
if (kotlin.jvm.internal.n.b(Long.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Long.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Long) {
l10 = num;
}
l10 = (Long) l10;
} else {
if (!kotlin.jvm.internal.n.b(Long.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Long.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
l11 = Long.valueOf(c14.getLong(prefName, valueOf != null ? valueOf.longValue() : 0L));
} else {
l11 = null;
}
if (l11 instanceof Long) {
l10 = l11;
}
} else if (kotlin.jvm.internal.n.b(Long.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Long) {
l10 = str;
}
l10 = (Long) l10;
} else if (kotlin.jvm.internal.n.b(Long.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Long) {
l10 = set;
}
l10 = (Long) l10;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Long.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = l10;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Long.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
longValue = valueOf.longValue();
this.f3272b = longValue;
} catch (Throwable th2) {
throw th2;
}
}
return longValue;
}
@Override
public void c(Boolean bool) {
l2.l lVar = l2.l.IntegrationEnabled;
z zVar = z.this;
synchronized (lVar) {
this.f3271a = (Boolean) y6.b.i(zVar.f2995f, bool, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
}
}
@Override
public void d(long j10) {
l2.l lVar = l2.l.SynchronizationLastTime;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Long.valueOf(j10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3272b = ((Number) i10).longValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000K\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J$\u0010\b\u001a\u0016\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004j\u0004\u0018\u0001`\u00072\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J$\u0010\t\u001a\u0016\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004j\u0004\u0018\u0001`\u00072\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J&\u0010\n\u001a \u0012\u0004\u0012\u00020\u0002\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u0007\u0018\u00010\u0004H\u0016J&\u0010\u000b\u001a \u0012\u0004\u0012\u00020\u0002\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u0007\u0018\u00010\u0004H\u0016J,\u0010\u000e\u001a\u00020\r2\"\u0010\f\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u00070\u0004H\u0016J,\u0010\u000f\u001a\u00020\r2\"\u0010\f\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u00070\u0004H\u0016J,\u0010\u0010\u001a\u00020\r2\"\u0010\f\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u00070\u0004H\u0016J,\u0010\u0011\u001a\u00020\r2\"\u0010\f\u001a\u001e\u0012\u0004\u0012\u00020\u0002\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u00070\u0004H\u0016J\u0010\u0010\u0013\u001a\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u0012H\u0002J\u0010\u0010\u0014\u001a\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u0012H\u0002R0\u0010\u0017\u001a\u001e\u0012\u0004\u0012\u00020\u0005\u0012\u0014\u0012\u0012\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u0004j\u0002`\u00070\u00158\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\u0016R\u0014\u0010\u001a\u001a\u00020\u00188\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000b\u0010\u0019R\u0014\u0010\u001d\u001a\u00020\u001b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\b\u0010\u001cR\u0014\u0010\u001e\u001a\u00020\u001b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\t\u0010\u001c¨\u0006\u001f"}, d2 = {"com/adguard/android/storage/z$u", "Lcom/adguard/android/storage/y$p;", "", "id", "", "", "Le2/a;", "Lcom/adguard/android/model/filter_base/support/LanguageLocalizationInfo;", "c", DateTokenConverter.CONVERTER_KEY, "a", "b", "newLocalizations", "", "g", "h", "e", "f", "", "m", "l", "Ljava/util/HashMap;", "Ljava/util/HashMap;", "prefsLocalizationsCache", "Lf2/a;", "Lf2/a;", "defaultFiltersAndTagsLocalizations", "", "Ljava/lang/Object;", "filtersSynchronizer", "tagsSynchronizer", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class u extends y.p {
public final HashMap<String, Map<String, e2.a>> f3274a = new HashMap<>();
public final f2.a f3275b;
public final Object f3276c;
public final Object f3277d;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<Map<String, ? extends e2.a>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<Map<String, ? extends e2.a>> {
}
@Metadata(d1 = {"\u0000 \n\u0002\u0010\b\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\b\u001a\u00020\u00072\u0006\u0010\u0001\u001a\u00020\u00002\u0016\u0010\u0006\u001a\u0012\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00040\u0002j\u0002`\u0005H\n¢\u0006\u0004\b\b\u0010\t"}, d2 = {"", Action.KEY_ATTRIBUTE, "", "", "Le2/a;", "Lcom/adguard/android/model/filter_base/support/LanguageLocalizationInfo;", "info", "", "a", "(Ljava/lang/Integer;Ljava/util/Map;)V"}, k = 3, mv = {1, 8, 0})
public static final class c extends kotlin.jvm.internal.p implements mc.p<Integer, Map<String, ? extends e2.a>, Unit> {
public final z f3279e;
public final u f3280g;
public c(z zVar, u uVar) {
super(2);
this.f3279e = zVar;
this.f3280g = uVar;
}
public final void a(Integer key, Map<String, e2.a> info) {
kotlin.jvm.internal.n.g(key, "key");
kotlin.jvm.internal.n.g(info, "info");
LinkedHashMap linkedHashMap = new LinkedHashMap(zb.k0.d(info.size()));
Iterator<T> it = info.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
int i10 = 4 >> 0;
linkedHashMap.put(ff.v.v((String) entry.getKey(), "_", "-", false, 4, null), entry.getValue());
}
l2.e eVar = new l2.e(key.intValue());
Map map = (Map) y6.b.k(this.f3279e.f2996g, linkedHashMap, eVar, null, 4, null);
if (map != null) {
this.f3280g.f3274a.put(eVar.getPrefName(), map);
}
}
@Override
public Unit mo2invoke(Integer num, Map<String, ? extends e2.a> map) {
a(num, map);
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0010\b\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\b\u001a\u00020\u00072\u0006\u0010\u0001\u001a\u00020\u00002\u0016\u0010\u0006\u001a\u0012\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u00040\u0002j\u0002`\u0005H\n¢\u0006\u0004\b\b\u0010\t"}, d2 = {"", Action.KEY_ATTRIBUTE, "", "", "Le2/a;", "Lcom/adguard/android/model/filter_base/support/LanguageLocalizationInfo;", "info", "", "a", "(Ljava/lang/Integer;Ljava/util/Map;)V"}, k = 3, mv = {1, 8, 0})
public static final class d extends kotlin.jvm.internal.p implements mc.p<Integer, Map<String, ? extends e2.a>, Unit> {
public final z f3281e;
public final u f3282g;
public d(z zVar, u uVar) {
super(2);
this.f3281e = zVar;
this.f3282g = uVar;
}
public final void a(Integer key, Map<String, e2.a> info) {
kotlin.jvm.internal.n.g(key, "key");
kotlin.jvm.internal.n.g(info, "info");
LinkedHashMap linkedHashMap = new LinkedHashMap(zb.k0.d(info.size()));
Iterator<T> it = info.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
linkedHashMap.put(ff.v.v((String) entry.getKey(), "_", "-", false, 4, null), entry.getValue());
}
l2.q qVar = new l2.q(key.intValue());
Map map = (Map) y6.b.k(this.f3281e.f2996g, linkedHashMap, qVar, null, 4, null);
if (map != null) {
this.f3282g.f3274a.put(qVar.getPrefName(), map);
}
}
@Override
public Unit mo2invoke(Integer num, Map<String, ? extends e2.a> map) {
a(num, map);
return Unit.INSTANCE;
}
}
public u() {
String str;
Object d10;
InputStream resourceAsStream;
a9.c unused = z.this.f2994e;
String str2 = "/assets/preset/filters_i18n.json";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
resourceAsStream = a9.n.class.getResourceAsStream(str2);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str2 + "' path", th2);
}
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
d10 = str != null ? a9.h.d(str, f2.a.class) : null;
if (d10 == null) {
a9.c.f480a.a().warn("Can't get a file content, the path: /preset/filters_i18n.json");
}
f2.a aVar = (f2.a) d10;
this.f3275b = aVar == null ? new f2.a() : aVar;
this.f3276c = new Object();
this.f3277d = new Object();
}
str = null;
if (str != null) {
}
if (d10 == null) {
}
f2.a aVar2 = (f2.a) d10;
this.f3275b = aVar2 == null ? new f2.a() : aVar2;
this.f3276c = new Object();
this.f3277d = new Object();
}
public static final void n(mc.p tmp0, Object obj, Object obj2) {
kotlin.jvm.internal.n.g(tmp0, "$tmp0");
tmp0.mo2invoke(obj, obj2);
}
public static final void o(mc.p tmp0, Object obj, Object obj2) {
kotlin.jvm.internal.n.g(tmp0, "$tmp0");
tmp0.mo2invoke(obj, obj2);
}
@Override
public Map<Integer, Map<String, e2.a>> a() {
Map<Integer, Map<String, e2.a>> hashMap;
synchronized (this.f3276c) {
try {
hashMap = new HashMap<>();
List<Integer> l10 = l();
if (l10 != null) {
for (Number number : l10) {
int intValue = number.intValue();
Map<String, e2.a> c10 = c(intValue);
if (c10 != null) {
hashMap.put(Integer.valueOf(intValue), c10);
}
}
}
if (hashMap.isEmpty()) {
hashMap = null;
}
if (hashMap == null) {
hashMap = this.f3275b.a();
}
} catch (Throwable th2) {
throw th2;
}
}
return hashMap;
}
@Override
public Map<Integer, Map<String, e2.a>> b() {
Map<Integer, Map<String, e2.a>> hashMap;
synchronized (this.f3277d) {
try {
hashMap = new HashMap<>();
List<Integer> m10 = m();
if (m10 != null) {
for (Number number : m10) {
int intValue = number.intValue();
Map<String, e2.a> c10 = c(intValue);
if (c10 != null) {
hashMap.put(Integer.valueOf(intValue), c10);
}
}
}
if (hashMap.isEmpty()) {
hashMap = null;
}
if (hashMap == null) {
hashMap = this.f3275b.b();
}
} catch (Throwable th2) {
throw th2;
}
}
return hashMap;
}
@Override
public Map<String, e2.a> c(int i10) {
Map<String, e2.a> map;
String str;
Object obj = this.f3276c;
z zVar = z.this;
synchronized (obj) {
try {
l2.e eVar = new l2.e(i10);
y6.b bVar = zVar.f2996g;
Object obj2 = this.f3274a.get(eVar.getPrefName());
a aVar = new a();
map = null;
if (!bVar.d().contains(eVar.getPrefName())) {
try {
if (bVar.b(eVar.getPrefName())) {
String prefName = eVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Boolean valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (!(valueOf instanceof String)) {
valueOf = null;
}
str = (String) valueOf;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Float valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (!(valueOf2 instanceof String)) {
valueOf2 = null;
}
str = (String) valueOf2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Integer valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (!(valueOf3 instanceof String)) {
valueOf3 = null;
}
str = (String) valueOf3;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Long valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (!(valueOf4 instanceof String)) {
valueOf4 = null;
}
str = (String) valueOf4;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
str = c15 != null ? c15.getString(prefName, null) : null;
if (!(str instanceof String)) {
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (!(stringSet instanceof String)) {
stringSet = null;
}
str = (String) stringSet;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
Object b10 = a9.h.b(str, aVar);
bVar.d().add(eVar.getPrefName());
obj2 = b10;
}
str = null;
Object b102 = a9.h.b(str, aVar);
bVar.d().add(eVar.getPrefName());
obj2 = b102;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + eVar + "\" getting value from preferences", e10);
}
}
Map<String, e2.a> map2 = (Map) obj2;
if (map2 != null) {
this.f3274a.put(eVar.getPrefName(), map2);
map = map2;
}
if (map == null) {
map = this.f3275b.a().get(Integer.valueOf(i10));
}
} catch (Throwable th2) {
throw th2;
}
}
return map;
}
@Override
public Map<String, e2.a> d(int i10) {
Map<String, e2.a> map;
String str;
Object obj = this.f3277d;
z zVar = z.this;
synchronized (obj) {
try {
l2.q qVar = new l2.q(i10);
y6.b bVar = zVar.f2996g;
Object obj2 = this.f3274a.get(qVar.getPrefName());
b bVar2 = new b();
map = null;
if (!bVar.d().contains(qVar.getPrefName())) {
try {
if (bVar.b(qVar.getPrefName())) {
String prefName = qVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Boolean valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (!(valueOf instanceof String)) {
valueOf = null;
}
str = (String) valueOf;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Float valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (!(valueOf2 instanceof String)) {
valueOf2 = null;
}
str = (String) valueOf2;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Integer valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (!(valueOf3 instanceof String)) {
valueOf3 = null;
}
str = (String) valueOf3;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Long valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (!(valueOf4 instanceof String)) {
valueOf4 = null;
}
str = (String) valueOf4;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
str = c15 != null ? c15.getString(prefName, null) : null;
if (!(str instanceof String)) {
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (!(stringSet instanceof String)) {
stringSet = null;
}
str = (String) stringSet;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
Object b10 = a9.h.b(str, bVar2);
bVar.d().add(qVar.getPrefName());
obj2 = b10;
}
str = null;
Object b102 = a9.h.b(str, bVar2);
bVar.d().add(qVar.getPrefName());
obj2 = b102;
}
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + qVar + "\" getting value from preferences", e10);
}
}
Map<String, e2.a> map2 = (Map) obj2;
if (map2 != null) {
this.f3274a.put(qVar.getPrefName(), map2);
map = map2;
}
if (map == null) {
map = this.f3275b.b().get(Integer.valueOf(i10));
}
} catch (Throwable th2) {
throw th2;
}
}
return map;
}
@Override
public void e(Map<Integer, ? extends Map<String, e2.a>> newLocalizations) {
kotlin.jvm.internal.n.g(newLocalizations, "newLocalizations");
synchronized (this.f3276c) {
try {
List<Integer> l10 = l();
if (l10 != null) {
for (Number number : l10) {
this.f3274a.remove(new l2.e(number.intValue()).getPrefName());
}
}
g(newLocalizations);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void f(Map<Integer, ? extends Map<String, e2.a>> newLocalizations) {
kotlin.jvm.internal.n.g(newLocalizations, "newLocalizations");
synchronized (this.f3277d) {
try {
List<Integer> m10 = m();
if (m10 != null) {
for (Number number : m10) {
this.f3274a.remove(new l2.q(number.intValue()).getPrefName());
}
}
h(newLocalizations);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void g(Map<Integer, ? extends Map<String, e2.a>> newLocalizations) {
kotlin.jvm.internal.n.g(newLocalizations, "newLocalizations");
Object obj = this.f3276c;
z zVar = z.this;
synchronized (obj) {
try {
final c cVar = new c(zVar, this);
newLocalizations.forEach(new BiConsumer() {
@Override
public final void accept(Object obj2, Object obj3) {
z.u.n(mc.p.this, obj2, obj3);
}
});
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void h(Map<Integer, ? extends Map<String, e2.a>> newLocalizations) {
kotlin.jvm.internal.n.g(newLocalizations, "newLocalizations");
Object obj = this.f3277d;
z zVar = z.this;
synchronized (obj) {
try {
final d dVar = new d(zVar, this);
newLocalizations.forEach(new BiConsumer() {
@Override
public final void accept(Object obj2, Object obj3) {
z.u.o(mc.p.this, obj2, obj3);
}
});
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
public final List<Integer> l() {
Map<String, ?> all;
Set<String> keySet;
SharedPreferences c10 = z.this.f2996g.c();
ArrayList arrayList = null;
if (c10 != null && (all = c10.getAll()) != null && (keySet = all.keySet()) != null) {
ArrayList<String> arrayList2 = new ArrayList();
for (Object obj : keySet) {
String it = (String) obj;
kotlin.jvm.internal.n.f(it, "it");
if (ff.v.x(it, "filter_", false, 2, null)) {
arrayList2.add(obj);
}
}
ArrayList arrayList3 = new ArrayList();
for (String it2 : arrayList2) {
kotlin.jvm.internal.n.f(it2, "it");
Integer i10 = ff.u.i(ff.w.A0(it2, "filter_", null, 2, null));
if (i10 != null) {
arrayList3.add(i10);
}
}
arrayList = arrayList3;
}
return arrayList;
}
public final List<Integer> m() {
Map<String, ?> all;
Set<String> keySet;
SharedPreferences c10 = z.this.f2996g.c();
ArrayList arrayList = null;
if (c10 != null && (all = c10.getAll()) != null && (keySet = all.keySet()) != null) {
ArrayList<String> arrayList2 = new ArrayList();
for (Object obj : keySet) {
String it = (String) obj;
kotlin.jvm.internal.n.f(it, "it");
if (ff.v.x(it, "tag_", false, 2, null)) {
arrayList2.add(obj);
}
}
ArrayList arrayList3 = new ArrayList();
for (String it2 : arrayList2) {
kotlin.jvm.internal.n.f(it2, "it");
Integer i10 = ff.u.i(ff.w.A0(it2, "tag_", null, 2, null));
if (i10 != null) {
arrayList3.add(i10);
}
}
arrayList = arrayList3;
}
return arrayList;
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Ld1/n$b;", "a", "()Ld1/n$b;"}, k = 3, mv = {1, 8, 0})
public static final class v extends kotlin.jvm.internal.p implements mc.a<n.b> {
public static final v f3283e = new v();
public v() {
super(0);
}
@Override
public final n.b invoke() {
return new n.b();
}
}
@Metadata(d1 = {"\u0000-\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003*\u0001\u0000\b\n\u0018\u00002\u00020\u0001R*\u0010\n\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR6\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\f0\u000b2\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\f0\u000b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0006\u0010\r\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0011R.\u0010\u001a\u001a\u0004\u0018\u00010\u00132\b\u0010\u0003\u001a\u0004\u0018\u00010\u00138V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019R*\u0010\u001c\u001a\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u000e\u0010\u0005\u001a\u0004\b\u0004\u0010\u0007\"\u0004\b\u001b\u0010\tR6\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u001d0\u000b2\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u001d0\u000b8V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0016\u0010\r\u001a\u0004\b\u0014\u0010\u000f\"\u0004\b\u001e\u0010\u0011¨\u0006 "}, d2 = {"com/adguard/android/storage/z$w", "Lcom/adguard/android/storage/y$q;", "", "value", "a", "Z", "b", "()Z", "g", "(Z)V", "outboundProxyEnabled", "", "Ld1/c;", "Ljava/util/List;", DateTokenConverter.CONVERTER_KEY, "()Ljava/util/List;", IntegerTokenConverter.CONVERTER_KEY, "(Ljava/util/List;)V", "proxies", "", "c", "Ljava/lang/Integer;", "e", "()Ljava/lang/Integer;", "j", "(Ljava/lang/Integer;)V", "selectedProxyId", "f", "allowToFilterDnsRequests", "Ll2/j;", "h", "outboundProxyPermissionsList", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class w extends y.q {
public boolean f3284a;
public List<d1.c> f3285b;
public Integer f3286c;
public boolean f3287d;
public List<? extends l2.j> f3288e = zb.q.j();
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<List<? extends l2.j>> {
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<List<? extends d1.c>> {
}
public w() {
this.f3284a = z.this.a0().b();
this.f3285b = z.this.a0().c();
this.f3287d = z.this.a0().a();
}
@Override
public boolean a() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.OutboundProxyAllowToFilterDnsRequests;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3287d);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3287d = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public boolean b() {
Boolean bool;
Set<String> set;
String str;
Long l10;
Integer num;
Float f10;
Boolean bool2;
boolean booleanValue;
l2.l lVar = l2.l.OutboundProxyEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Boolean valueOf = Boolean.valueOf(this.f3284a);
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
bool = valueOf;
} else {
bool = 0;
if (kotlin.jvm.internal.n.b(Boolean.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
bool2 = Boolean.valueOf(c11.getBoolean(prefName, valueOf != null ? valueOf.booleanValue() : false));
} else {
bool2 = null;
}
if (bool2 instanceof Boolean) {
bool = bool2;
}
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = valueOf instanceof Float ? (Float) valueOf : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Boolean) {
bool = f10;
}
bool = (Boolean) bool;
} else {
if (kotlin.jvm.internal.n.b(Boolean.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Boolean.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num2 = valueOf instanceof Integer ? (Integer) valueOf : null;
num = Integer.valueOf(c13.getInt(prefName, num2 != null ? num2.intValue() : 0));
} else {
num = null;
}
if (num instanceof Boolean) {
bool = num;
}
bool = (Boolean) bool;
} else {
if (!kotlin.jvm.internal.n.b(Boolean.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Boolean.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = valueOf instanceof Long ? (Long) valueOf : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Boolean) {
bool = l10;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, valueOf instanceof String ? (String) valueOf : null);
} else {
str = null;
}
if (str instanceof Boolean) {
bool = str;
}
bool = (Boolean) bool;
} else if (kotlin.jvm.internal.n.b(Boolean.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, valueOf instanceof Set ? (Set) valueOf : null);
} else {
set = null;
}
if (set instanceof Boolean) {
bool = set;
}
bool = (Boolean) bool;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Boolean.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
valueOf = bool;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Boolean.class + " value from preferences, returning a cached value", e10);
}
}
kotlin.jvm.internal.n.d(valueOf);
booleanValue = valueOf.booleanValue();
this.f3284a = booleanValue;
} catch (Throwable th2) {
throw th2;
}
}
return booleanValue;
}
@Override
public List<l2.j> c() {
List<l2.j> list;
l2.l lVar = l2.l.OutboundProxyPermissionsList;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
Object obj = this.f3288e;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
String valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
Object b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(obj);
list = (List) obj;
this.f3288e = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public List<d1.c> d() {
List<d1.c> list;
l2.l lVar = l2.l.Proxies;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
List<d1.c> list2 = this.f3285b;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
Object valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
String valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
list2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(list2);
list = list2;
this.f3285b = list;
} catch (Throwable th2) {
throw th2;
}
}
return list;
}
@Override
public Integer e() {
Integer num;
Integer num2;
Set<String> set;
String str;
Long l10;
Integer num3;
Float f10;
Boolean bool;
l2.l lVar = l2.l.SelectedProxyId;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
num = this.f3286c;
if (!bVar.d().contains(lVar.getPrefName())) {
try {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
if (((c10 == null || c10.contains(prefName)) ? false : true) == true) {
num2 = num;
} else {
num2 = 0;
if (kotlin.jvm.internal.n.b(Integer.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
if (c11 != null) {
Boolean bool2 = num instanceof Boolean ? (Boolean) num : null;
bool = Boolean.valueOf(c11.getBoolean(prefName, bool2 != null ? bool2.booleanValue() : false));
} else {
bool = null;
}
if (bool instanceof Integer) {
num2 = bool;
}
num2 = (Integer) num2;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Float.class)) {
SharedPreferences c12 = bVar.c();
if (c12 != null) {
Float f11 = num instanceof Float ? (Float) num : null;
f10 = Float.valueOf(c12.getFloat(prefName, f11 != null ? f11.floatValue() : 0.0f));
} else {
f10 = null;
}
if (f10 instanceof Integer) {
num2 = f10;
}
num2 = (Integer) num2;
} else {
if (kotlin.jvm.internal.n.b(Integer.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(Integer.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
if (c13 != null) {
Integer num4 = num instanceof Integer ? num : null;
num3 = Integer.valueOf(c13.getInt(prefName, num4 != null ? num4.intValue() : 0));
} else {
num3 = null;
}
if (num3 instanceof Integer) {
num2 = num3;
}
} else {
if (!kotlin.jvm.internal.n.b(Integer.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(Integer.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
if (c14 != null) {
Long l11 = num instanceof Long ? (Long) num : null;
l10 = Long.valueOf(c14.getLong(prefName, l11 != null ? l11.longValue() : 0L));
} else {
l10 = null;
}
if (l10 instanceof Integer) {
num2 = l10;
}
num2 = (Integer) num2;
} else if (kotlin.jvm.internal.n.b(Integer.class, String.class)) {
SharedPreferences c15 = bVar.c();
if (c15 != null) {
str = c15.getString(prefName, num instanceof String ? (String) num : null);
} else {
str = null;
}
if (str instanceof Integer) {
num2 = str;
}
num2 = (Integer) num2;
} else if (kotlin.jvm.internal.n.b(Integer.class, Set.class)) {
SharedPreferences c16 = bVar.c();
if (c16 != null) {
set = c16.getStringSet(prefName, num instanceof Set ? (Set) num : null);
} else {
set = null;
}
if (set instanceof Integer) {
num2 = set;
}
num2 = (Integer) num2;
} else {
y6.b.f29503e.a().warn("The field \"" + prefName + "\" type is " + Integer.class + " and is not supported, returning null");
}
}
}
}
}
bVar.d().add(lVar.getPrefName());
num = num2;
} catch (Exception e10) {
y6.b.f29503e.a().error("Error occurred while field \"" + lVar + "\" getting class " + Integer.class + " value from preferences, returning a cached value", e10);
}
}
this.f3286c = num;
} catch (Throwable th2) {
throw th2;
}
}
return num;
}
@Override
public void f(boolean z10) {
l2.l lVar = l2.l.OutboundProxyAllowToFilterDnsRequests;
z zVar = z.this;
synchronized (lVar) {
try {
boolean z11 = true | false;
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3287d = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void g(boolean z10) {
l2.l lVar = l2.l.OutboundProxyEnabled;
z zVar = z.this;
synchronized (lVar) {
try {
Object i10 = y6.b.i(zVar.f2995f, Boolean.valueOf(z10), lVar, null, 4, null);
kotlin.jvm.internal.n.d(i10);
this.f3284a = ((Boolean) i10).booleanValue();
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void h(List<? extends l2.j> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.OutboundProxyPermissionsList;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3288e = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void i(List<d1.c> value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.Proxies;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, value, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3285b = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public void j(Integer num) {
l2.l lVar = l2.l.SelectedProxyId;
z zVar = z.this;
synchronized (lVar) {
try {
this.f3286c = (Integer) y6.b.i(zVar.f2995f, num, lVar, null, 4, null);
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u00001\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\b\u0012*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\"\u0010\u0007\u001a\u00020\u00052\u0018\u0010\u0006\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00040\u0003\u0012\u0004\u0012\u00020\u00050\u0002H\u0016J\u0010\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0002R \u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\n0\f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\r\u0010\u000e\u001a\u0004\b\u000f\u0010\u0010R \u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\n0\f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0012\u0010\u000e\u001a\u0004\b\r\u0010\u0010R \u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\n0\f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u0014\u0010\u000e\u001a\u0004\b\u0012\u0010\u0010R \u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\n0\f8\u0016X\u0096\u0004¢\u0006\f\n\u0004\b\u000f\u0010\u000e\u001a\u0004\b\u0014\u0010\u0010R6\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00040\f2\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00040\f8B@BX\u0082\u000e¢\u0006\u0012\n\u0004\b\u0018\u0010\u000e\u001a\u0004\b\u0019\u0010\u0010\"\u0004\b\u001a\u0010\u001bR\u001a\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00040\f8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0010¨\u0006\u001e"}, d2 = {"com/adguard/android/storage/z$x", "Lcom/adguard/android/storage/y$r;", "Lkotlin/Function1;", "", "Ll2/i;", "", "block", "f", "Lb0/f$d;", "list", "", "g", "", "a", "Ljava/util/List;", DateTokenConverter.CONVERTER_KEY, "()Ljava/util/List;", "filterTrafficDefaultExclusions", "b", "blockAdsDefaultExclusions", "c", "filterHttpsTrafficDefaultExclusions", "filterHttpsTrafficDefaultInclusions", "value", "e", "h", IntegerTokenConverter.CONVERTER_KEY, "(Ljava/util/List;)V", "permissionsList", "filteringPermissionsList", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class x extends y.r {
public final List<String> f3290a;
public final List<String> f3291b;
public final List<String> f3292c;
public final List<String> f3293d;
public List<? extends l2.i> f3294e;
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
public class a {
public static final int[] f3296a;
static {
int[] iArr = new int[f.d.values().length];
try {
iArr[f.d.Problematic.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[f.d.Default.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
f3296a = iArr;
}
}
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class b extends TypeReference<List<? extends l2.i>> {
}
public x() {
String str;
String str2;
String str3;
String str4;
InputStream resourceAsStream;
InputStream resourceAsStream2;
InputStream resourceAsStream3;
InputStream resourceAsStream4;
a9.c unused = z.this.f2994e;
String str5 = "/assets/preset/permissions/filter_traffic_exclusions.txt";
uh.c _LOG = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG, "_LOG");
try {
resourceAsStream4 = a9.n.class.getResourceAsStream(str5);
} catch (Throwable th2) {
_LOG.error("The error occurred while getting the APK resource as a string by the '" + str5 + "' path", th2);
}
if (resourceAsStream4 != null) {
kotlin.jvm.internal.n.f(resourceAsStream4, "getResourceAsStream(path)");
str = z5.l.a(resourceAsStream4, ff.c.f15045b);
jc.c.a(resourceAsStream4, null);
List<String> d10 = str != null ? null : z5.w.d(str);
this.f3290a = d10 == null ? zb.q.j() : d10;
a9.c unused2 = z.this.f2994e;
String str6 = "/assets/preset/permissions/block_ads_exclusions.txt";
uh.c _LOG2 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG2, "_LOG");
resourceAsStream3 = a9.n.class.getResourceAsStream(str6);
if (resourceAsStream3 != null) {
kotlin.jvm.internal.n.f(resourceAsStream3, "getResourceAsStream(path)");
str2 = z5.l.a(resourceAsStream3, ff.c.f15045b);
jc.c.a(resourceAsStream3, null);
List<String> d11 = str2 == null ? null : z5.w.d(str2);
this.f3291b = d11 == null ? zb.q.j() : d11;
a9.c unused3 = z.this.f2994e;
String str7 = "/assets/preset/permissions/filter_https_traffic_exclusions.txt";
uh.c _LOG3 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG3, "_LOG");
resourceAsStream2 = a9.n.class.getResourceAsStream(str7);
if (resourceAsStream2 != null) {
kotlin.jvm.internal.n.f(resourceAsStream2, "getResourceAsStream(path)");
str3 = z5.l.a(resourceAsStream2, ff.c.f15045b);
jc.c.a(resourceAsStream2, null);
List<String> d12 = str3 != null ? null : z5.w.d(str3);
this.f3292c = d12 == null ? zb.q.j() : d12;
a9.c unused4 = z.this.f2994e;
String g10 = g(z.this.b0().b());
String str8 = "/assets" + g10;
uh.c _LOG4 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG4, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str8);
if (resourceAsStream != null) {
kotlin.jvm.internal.n.f(resourceAsStream, "getResourceAsStream(path)");
str4 = z5.l.a(resourceAsStream, ff.c.f15045b);
jc.c.a(resourceAsStream, null);
List<String> d13 = str4 != null ? z5.w.d(str4) : null;
this.f3293d = d13 == null ? zb.q.j() : d13;
this.f3294e = zb.q.j();
}
str4 = null;
if (str4 != null) {
}
this.f3293d = d13 == null ? zb.q.j() : d13;
this.f3294e = zb.q.j();
}
str3 = null;
if (str3 != null) {
}
this.f3292c = d12 == null ? zb.q.j() : d12;
a9.c unused42 = z.this.f2994e;
String g102 = g(z.this.b0().b());
String str82 = "/assets" + g102;
uh.c _LOG42 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG42, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str82);
if (resourceAsStream != null) {
}
str4 = null;
if (str4 != null) {
}
this.f3293d = d13 == null ? zb.q.j() : d13;
this.f3294e = zb.q.j();
}
str2 = null;
if (str2 == null) {
}
this.f3291b = d11 == null ? zb.q.j() : d11;
a9.c unused32 = z.this.f2994e;
String str72 = "/assets/preset/permissions/filter_https_traffic_exclusions.txt";
uh.c _LOG32 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG32, "_LOG");
resourceAsStream2 = a9.n.class.getResourceAsStream(str72);
if (resourceAsStream2 != null) {
}
str3 = null;
if (str3 != null) {
}
this.f3292c = d12 == null ? zb.q.j() : d12;
a9.c unused422 = z.this.f2994e;
String g1022 = g(z.this.b0().b());
String str822 = "/assets" + g1022;
uh.c _LOG422 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG422, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str822);
if (resourceAsStream != null) {
}
str4 = null;
if (str4 != null) {
}
this.f3293d = d13 == null ? zb.q.j() : d13;
this.f3294e = zb.q.j();
}
str = null;
if (str != null) {
}
this.f3290a = d10 == null ? zb.q.j() : d10;
a9.c unused22 = z.this.f2994e;
String str62 = "/assets/preset/permissions/block_ads_exclusions.txt";
uh.c _LOG22 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG22, "_LOG");
resourceAsStream3 = a9.n.class.getResourceAsStream(str62);
if (resourceAsStream3 != null) {
}
str2 = null;
if (str2 == null) {
}
this.f3291b = d11 == null ? zb.q.j() : d11;
a9.c unused322 = z.this.f2994e;
String str722 = "/assets/preset/permissions/filter_https_traffic_exclusions.txt";
uh.c _LOG322 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG322, "_LOG");
resourceAsStream2 = a9.n.class.getResourceAsStream(str722);
if (resourceAsStream2 != null) {
}
str3 = null;
if (str3 != null) {
}
this.f3292c = d12 == null ? zb.q.j() : d12;
a9.c unused4222 = z.this.f2994e;
String g10222 = g(z.this.b0().b());
String str8222 = "/assets" + g10222;
uh.c _LOG4222 = a9.n.f506a.b();
kotlin.jvm.internal.n.f(_LOG4222, "_LOG");
resourceAsStream = a9.n.class.getResourceAsStream(str8222);
if (resourceAsStream != null) {
}
str4 = null;
if (str4 != null) {
}
this.f3293d = d13 == null ? zb.q.j() : d13;
this.f3294e = zb.q.j();
}
@Override
public List<String> a() {
return this.f3291b;
}
@Override
public List<String> b() {
return this.f3292c;
}
@Override
public List<String> c() {
return this.f3293d;
}
@Override
public List<String> d() {
return this.f3290a;
}
@Override
public List<l2.i> e() {
return h();
}
@Override
public synchronized void f(mc.l<? super List<l2.i>, Unit> block) {
try {
kotlin.jvm.internal.n.g(block, "block");
List<? extends l2.i> P0 = zb.y.P0(h());
block.invoke(P0);
i(P0);
} catch (Throwable th2) {
throw th2;
}
}
public final String g(f.d dVar) {
int i10 = a.f3296a[dVar.ordinal()];
if (i10 != 1) {
if (i10 == 2) {
return "/preset/permissions/filter_https_traffic_inclusions.txt";
}
throw new yb.l();
}
return "/preset/permissions/filter_https_traffic_inclusions_problematic_devices.txt";
}
public final List<l2.i> h() {
List<l2.i> list;
l2.l lVar = l2.l.FilteringPermissionsList;
z zVar = z.this;
synchronized (lVar) {
y6.b bVar = zVar.f2995f;
Object obj = this.f3294e;
b bVar2 = new b();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
String valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
Object b10 = a9.h.b(str, bVar2);
bVar.d().add(lVar.getPrefName());
obj = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(obj);
list = (List) obj;
this.f3294e = list;
}
return list;
}
public final void i(List<? extends l2.i> list) {
l2.l lVar = l2.l.FilteringPermissionsList;
z zVar = z.this;
synchronized (lVar) {
try {
Object k10 = y6.b.k(zVar.f2995f, list, lVar, null, 4, null);
kotlin.jvm.internal.n.d(k10);
this.f3294e = (List) k10;
Unit unit = Unit.INSTANCE;
} catch (Throwable th2) {
throw th2;
}
}
}
}
@Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Lb0/f$a;", "a", "()Lb0/f$a;"}, k = 3, mv = {1, 8, 0})
public static final class y extends kotlin.jvm.internal.p implements mc.a<f.a> {
public static final y f3297e = new y();
public y() {
super(0);
}
@Override
public final f.a invoke() {
return new f.a();
}
}
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\t*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\f\u0010\u0003\u001a\u00020\u0002*\u00020\u0002H\u0002R*\u0010\n\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u00028V@VX\u0096\u000e¢\u0006\u0012\n\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0005\u0010\u0007\"\u0004\b\b\u0010\t¨\u0006\u000b"}, d2 = {"com/adguard/android/storage/z$z", "Lcom/adguard/android/storage/y$s;", "Lh1/i;", "c", "value", "a", "Lh1/i;", "()Lh1/i;", "b", "(Lh1/i;)V", "cachedState", "base_release"}, k = 1, mv = {1, 8, 0})
public static final class C0089z extends y.s {
public h1.i f3298a = i.q.f15653a;
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002"}, d2 = {"com/fasterxml/jackson/module/kotlin/ExtensionsKt$jacksonTypeRef$1", "Lcom/fasterxml/jackson/core/type/TypeReference;", "jackson-module-kotlin"}, k = 1, mv = {1, 8, 0})
public static final class a extends TypeReference<h1.i> {
}
public C0089z() {
}
@Override
public h1.i a() {
h1.i iVar;
l2.l lVar = l2.l.PlusCachedState;
z zVar = z.this;
synchronized (lVar) {
try {
y6.b bVar = zVar.f2995f;
h1.i iVar2 = this.f3298a;
a aVar = new a();
if (!bVar.d().contains(lVar.getPrefName())) {
try {
if (bVar.b(lVar.getPrefName())) {
String prefName = lVar.getPrefName();
SharedPreferences c10 = bVar.c();
boolean z10 = true;
String str = null;
if (!((c10 == null || c10.contains(prefName)) ? false : true)) {
if (kotlin.jvm.internal.n.b(String.class, Boolean.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Boolean.class)) {
SharedPreferences c11 = bVar.c();
Object valueOf = c11 != null ? Boolean.valueOf(c11.getBoolean(prefName, false)) : null;
if (valueOf instanceof String) {
str = valueOf;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Float.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Float.class)) {
SharedPreferences c12 = bVar.c();
String valueOf2 = c12 != null ? Float.valueOf(c12.getFloat(prefName, 0.0f)) : null;
if (valueOf2 instanceof String) {
str = valueOf2;
}
str = str;
} else {
if (kotlin.jvm.internal.n.b(String.class, Integer.TYPE) ? true : kotlin.jvm.internal.n.b(String.class, Integer.class)) {
SharedPreferences c13 = bVar.c();
Object valueOf3 = c13 != null ? Integer.valueOf(c13.getInt(prefName, 0)) : null;
if (valueOf3 instanceof String) {
str = valueOf3;
}
str = str;
} else {
if (!kotlin.jvm.internal.n.b(String.class, Long.TYPE)) {
z10 = kotlin.jvm.internal.n.b(String.class, Long.class);
}
if (z10) {
SharedPreferences c14 = bVar.c();
Object valueOf4 = c14 != null ? Long.valueOf(c14.getLong(prefName, 0L)) : null;
if (valueOf4 instanceof String) {
str = valueOf4;
}
str = str;
} else if (kotlin.jvm.internal.n.b(String.class, String.class)) {
SharedPreferences c15 = bVar.c();
String string = c15 != null ? c15.getString(prefName, null) : null;
if (string instanceof String) {
str = string;
}
} else if (kotlin.jvm.internal.n.b(String.class, Set.class)) {
SharedPreferences c16 = bVar.c();
Set<String> stringSet = c16 != null ? c16.getStringSet(prefName, null) : null;
if (stringSet instanceof String) {
str = stringSet;
}
str = str;
} else {
uh.c a10 = y6.b.f29503e.a();
a10.warn("The field \"" + prefName + "\" type is " + String.class + " and is not supported, returning null");
}
}
}
}
}
?? b10 = a9.h.b(str, aVar);
bVar.d().add(lVar.getPrefName());
iVar2 = b10;
}
} catch (Exception e10) {
uh.c a11 = y6.b.f29503e.a();
a11.error("Error occurred while field \"" + lVar + "\" getting value from preferences", e10);
}
}
kotlin.jvm.internal.n.d(iVar2);
iVar = iVar2;
this.f3298a = iVar;
} catch (Throwable th2) {
throw th2;
}
}
return iVar;
}
@Override
public void b(h1.i value) {
kotlin.jvm.internal.n.g(value, "value");
l2.l lVar = l2.l.PlusCachedState;
z zVar = z.this;
synchronized (lVar) {
kotlin.jvm.internal.n.d(y6.b.k(zVar.f2995f, c(value), lVar, null, 4, null));
this.f3298a = value;
Unit unit = Unit.INSTANCE;
}
}
public final h1.i c(h1.i iVar) {
h1.i iVar2;
h1.i dVar;
boolean z10 = true;
if (!(iVar instanceof i.c ? true : iVar instanceof i.h ? true : iVar instanceof i.g)) {
z10 = iVar instanceof i.f;
}
if (z10) {
iVar2 = i.c.f15622a;
} else {
if (iVar instanceof i.p) {
dVar = new i.e(((i.p) iVar).a());
} else if (iVar instanceof i.e) {
dVar = new i.e(((i.e) iVar).a());
} else if (iVar instanceof i.m) {
dVar = new i.d(((i.m) iVar).b());
} else if (iVar instanceof i.l) {
dVar = new i.d(((i.l) iVar).c());
} else if (iVar instanceof i.k) {
dVar = new i.d(((i.k) iVar).c());
} else if (iVar instanceof i.d) {
dVar = new i.d(((i.d) iVar).a());
} else {
iVar2 = i.q.f15653a;
}
iVar2 = dVar;
}
return iVar2;
}
}
public z(Context context, p2.a configurations, p2.d links) {
kotlin.jvm.internal.n.g(context, "context");
kotlin.jvm.internal.n.g(configurations, "configurations");
kotlin.jvm.internal.n.g(links, "links");
this.f2990a = configurations;
this.f2991b = links;
this.f2992c = new x6.a(context, x6.b.Files);
this.f2993d = new x6.a(context, x6.b.Cache);
this.f2994e = new a9.c();
this.f2995f = new y6.b<>("base", context, new a0());
this.f2996g = new y6.b<>("localizations", context, null, 4, null);
RoomDatabase build = Room.databaseBuilder(context, Database.class, "base.db").build();
kotlin.jvm.internal.n.f(build, "databaseBuilder(context,….java, \"base.db\").build()");
this.f2997h = new o2.a<>(build);
this.f2998i = yb.i.a(g.f3094e);
this.f2999j = yb.i.a(new l(context));
this.f3000k = yb.i.a(v.f3283e);
this.f3001l = yb.i.a(r.f3249e);
this.f3002m = yb.i.a(i0.f3137e);
this.f3003n = yb.i.a(y.f3297e);
this.f3004o = yb.i.a(new p());
this.f3005p = new l2.b();
this.f3006q = new d0(context);
this.f3007r = new h0();
this.f3008s = new d(this);
this.f3009t = new f();
this.f3010u = new o(context);
this.f3011v = new j();
this.f3012w = new h(context);
this.f3013x = new i();
this.f3014y = new u();
this.f3015z = new n();
this.A = new s();
this.B = new w();
this.C = new j0();
this.D = new b0();
this.E = new k0();
this.F = new c();
this.G = new x();
this.H = new e0();
this.I = new m();
this.J = new k();
this.K = new q();
this.L = new c0();
this.M = new f0();
this.N = new e();
this.O = new l0();
this.P = new b();
this.Q = new C0089z();
this.R = new t();
this.S = new g0();
}
@Override
public y.x A() {
return this.M;
}
@Override
public y.AbstractC0087y B() {
return this.S;
}
@Override
public y.z C() {
return this.f3007r;
}
@Override
public y.a0 D() {
return this.C;
}
@Override
public y.b0 E() {
return this.E;
}
@Override
public y.c0 F() {
return this.O;
}
public final b.a W() {
return (b.a) this.f2998i.getValue();
}
public final n.c X() {
return (n.c) this.f2999j.getValue();
}
public final l2.f Y() {
return (l2.f) this.f3004o.getValue();
}
public final p.b Z() {
return (p.b) this.f3001l.getValue();
}
@Override
public y.a a() {
return this.P;
}
public final n.b a0() {
return (n.b) this.f3000k.getValue();
}
@Override
public y.b b() {
return this.F;
}
public final f.a b0() {
return (f.a) this.f3003n.getValue();
}
@Override
public y.c c() {
return this.f3008s;
}
public final b.a c0() {
return (b.a) this.f3002m.getValue();
}
@Override
public p2.a d() {
return this.f2990a;
}
public final void d0(l2.p pVar) {
uh.c cVar = U;
cVar.info("The Storage Space state is changed, let's notify about it with the '" + pVar + "' key");
u5.a.f25215a.c(pVar);
}
@Override
public y.d e() {
return this.N;
}
@Override
public y.e f() {
return this.f3009t;
}
@Override
public y.f g() {
return this.f3012w;
}
@Override
public y.g h() {
return this.f3013x;
}
@Override
public y.h i() {
return this.f3011v;
}
@Override
public y.i j() {
return this.J;
}
@Override
public y.j k() {
return this.I;
}
@Override
public y.k l() {
return this.f3015z;
}
@Override
public y.l m() {
return this.f3010u;
}
@Override
public y.m n() {
return this.K;
}
@Override
public y.n o() {
return this.A;
}
@Override
public y.o p() {
return this.R;
}
@Override
public p2.d q() {
return this.f2991b;
}
@Override
public y.p r() {
return this.f3014y;
}
@Override
public y.q s() {
return this.B;
}
@Override
public y.r t() {
return this.G;
}
@Override
public y.s u() {
return this.Q;
}
@Override
public y.t v() {
return this.D;
}
@Override
public y.u w() {
return this.L;
}
@Override
public y.v x() {
return this.f3006q;
}
@Override
public y.w y() {
return this.H;
}
@Override
public l2.m z() {
return new l2.m("base", "localizations");
}
}