package com.strmr.ps.data.local;

import androidx.room.k;
import com.strmr.ps.data.local.dao.AddonConfigDao;
import com.strmr.ps.data.local.dao.AddonConfigDao_Impl;
import com.strmr.ps.data.local.dao.AddonDisclaimerDao;
import com.strmr.ps.data.local.dao.AddonDisclaimerDao_Impl;
import com.strmr.ps.data.local.dao.AllDebridAccountDao;
import com.strmr.ps.data.local.dao.AllDebridAccountDao_Impl;
import com.strmr.ps.data.local.dao.CachedContentDao;
import com.strmr.ps.data.local.dao.CachedContentDao_Impl;
import com.strmr.ps.data.local.dao.ContentImageOverrideDao;
import com.strmr.ps.data.local.dao.ContentImageOverrideDao_Impl;
import com.strmr.ps.data.local.dao.ContinueWatchingDao;
import com.strmr.ps.data.local.dao.ContinueWatchingDao_Impl;
import com.strmr.ps.data.local.dao.EasyDebridAccountDao;
import com.strmr.ps.data.local.dao.EasyDebridAccountDao_Impl;
import com.strmr.ps.data.local.dao.EpisodeWatchStatusDao;
import com.strmr.ps.data.local.dao.EpisodeWatchStatusDao_Impl;
import com.strmr.ps.data.local.dao.InstalledAddonDao;
import com.strmr.ps.data.local.dao.InstalledAddonDao_Impl;
import com.strmr.ps.data.local.dao.MediaDao;
import com.strmr.ps.data.local.dao.MediaDao_Impl;
import com.strmr.ps.data.local.dao.PendingTraktActionDao;
import com.strmr.ps.data.local.dao.PendingTraktActionDao_Impl;
import com.strmr.ps.data.local.dao.PlaybackProgressDao;
import com.strmr.ps.data.local.dao.PlaybackProgressDao_Impl;
import com.strmr.ps.data.local.dao.PlayerSettingsDao;
import com.strmr.ps.data.local.dao.PlayerSettingsDao_Impl;
import com.strmr.ps.data.local.dao.PremiumizeAccountDao;
import com.strmr.ps.data.local.dao.PremiumizeAccountDao_Impl;
import com.strmr.ps.data.local.dao.RealDebridAccountDao;
import com.strmr.ps.data.local.dao.RealDebridAccountDao_Impl;
import com.strmr.ps.data.local.dao.RowConfigDao;
import com.strmr.ps.data.local.dao.RowConfigDao_Impl;
import com.strmr.ps.data.local.dao.SyncCheckpointDao;
import com.strmr.ps.data.local.dao.SyncCheckpointDao_Impl;
import com.strmr.ps.data.local.dao.SyncMetadataDao;
import com.strmr.ps.data.local.dao.SyncMetadataDao_Impl;
import com.strmr.ps.data.local.dao.TorBoxAccountDao;
import com.strmr.ps.data.local.dao.TorBoxAccountDao_Impl;
import com.strmr.ps.data.local.dao.TraktAccountDao;
import com.strmr.ps.data.local.dao.TraktAccountDao_Impl;
import com.strmr.ps.data.local.dao.TraktUserItemDao;
import com.strmr.ps.data.local.dao.TraktUserItemDao_Impl;
import com.strmr.ps.data.local.dao.UserAccountDao;
import com.strmr.ps.data.local.dao.UserAccountDao_Impl;
import com.strmr.ps.data.local.dao.UserCollectionDao;
import com.strmr.ps.data.local.dao.UserCollectionDao_Impl;
import com.strmr.ps.data.local.dao.WatchStatusDao;
import com.strmr.ps.data.local.dao.WatchStatusDao_Impl;
import defpackage.as4;
import defpackage.je9;
import defpackage.le9;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/* JADX INFO: loaded from: classes3.dex */
public final class AppDatabase_Impl extends AppDatabase {
    public volatile CachedContentDao_Impl a;
    public volatile TraktAccountDao_Impl b;
    public volatile TraktUserItemDao_Impl c;
    public volatile WatchStatusDao_Impl d;
    public volatile MediaDao_Impl e;
    public volatile RowConfigDao_Impl f;
    public volatile SyncMetadataDao_Impl g;
    public volatile PremiumizeAccountDao_Impl h;
    public volatile PlayerSettingsDao_Impl i;
    public volatile PlaybackProgressDao_Impl j;
    public volatile RealDebridAccountDao_Impl k;
    public volatile AllDebridAccountDao_Impl l;
    public volatile TorBoxAccountDao_Impl m;
    public volatile SyncCheckpointDao_Impl n;
    public volatile EpisodeWatchStatusDao_Impl o;
    public volatile PendingTraktActionDao_Impl p;
    public volatile InstalledAddonDao_Impl q;
    public volatile AddonConfigDao_Impl r;
    public volatile AddonDisclaimerDao_Impl s;
    public volatile EasyDebridAccountDao_Impl t;
    public volatile UserCollectionDao_Impl u;
    public volatile ContentImageOverrideDao_Impl v;

    @Override // com.strmr.ps.data.local.AppDatabase
    public final AddonConfigDao a() {
        AddonConfigDao_Impl addonConfigDao_Impl;
        if (this.r != null) {
            return this.r;
        }
        synchronized (this) {
            try {
                if (this.r == null) {
                    this.r = new AddonConfigDao_Impl(this);
                }
                addonConfigDao_Impl = this.r;
            } catch (Throwable th) {
                throw th;
            }
        }
        return addonConfigDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final AddonDisclaimerDao b() {
        AddonDisclaimerDao_Impl addonDisclaimerDao_Impl;
        if (this.s != null) {
            return this.s;
        }
        synchronized (this) {
            try {
                if (this.s == null) {
                    this.s = new AddonDisclaimerDao_Impl(this);
                }
                addonDisclaimerDao_Impl = this.s;
            } catch (Throwable th) {
                throw th;
            }
        }
        return addonDisclaimerDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final AllDebridAccountDao c() {
        AllDebridAccountDao_Impl allDebridAccountDao_Impl;
        if (this.l != null) {
            return this.l;
        }
        synchronized (this) {
            try {
                if (this.l == null) {
                    this.l = new AllDebridAccountDao_Impl(this);
                }
                allDebridAccountDao_Impl = this.l;
            } catch (Throwable th) {
                throw th;
            }
        }
        return allDebridAccountDao_Impl;
    }

    @Override // androidx.room.RoomDatabase
    public final void clearAllTables() {
        super.assertNotMainThread();
        je9 writableDatabase = super.getOpenHelper().getWritableDatabase();
        try {
            super.beginTransaction();
            writableDatabase.execSQL("PRAGMA defer_foreign_keys = TRUE");
            writableDatabase.execSQL("DELETE FROM `cached_content`");
            writableDatabase.execSQL("DELETE FROM `trakt_accounts`");
            writableDatabase.execSQL("DELETE FROM `trakt_user_items`");
            writableDatabase.execSQL("DELETE FROM `continue_watching`");
            writableDatabase.execSQL("DELETE FROM `watch_status`");
            writableDatabase.execSQL("DELETE FROM `media_content`");
            writableDatabase.execSQL("DELETE FROM `media_images`");
            writableDatabase.execSQL("DELETE FROM `media_ratings`");
            writableDatabase.execSQL("DELETE FROM `watch_progress`");
            writableDatabase.execSQL("DELETE FROM `row_config`");
            writableDatabase.execSQL("DELETE FROM `sync_metadata`");
            writableDatabase.execSQL("DELETE FROM `media_enrichment`");
            writableDatabase.execSQL("DELETE FROM `premiumize_accounts`");
            writableDatabase.execSQL("DELETE FROM `player_settings`");
            writableDatabase.execSQL("DELETE FROM `playback_progress`");
            writableDatabase.execSQL("DELETE FROM `realdebrid_accounts`");
            writableDatabase.execSQL("DELETE FROM `alldebrid_accounts`");
            writableDatabase.execSQL("DELETE FROM `torbox_accounts`");
            writableDatabase.execSQL("DELETE FROM `sync_checkpoints`");
            writableDatabase.execSQL("DELETE FROM `episode_watch_status`");
            writableDatabase.execSQL("DELETE FROM `pending_trakt_actions`");
            writableDatabase.execSQL("DELETE FROM `installed_addons`");
            writableDatabase.execSQL("DELETE FROM `addon_configs`");
            writableDatabase.execSQL("DELETE FROM `addon_disclaimer_acceptance`");
            writableDatabase.execSQL("DELETE FROM `user_account`");
            writableDatabase.execSQL("DELETE FROM `easydebrid_accounts`");
            writableDatabase.execSQL("DELETE FROM `user_collections`");
            writableDatabase.execSQL("DELETE FROM `content_image_overrides`");
            super.setTransactionSuccessful();
        } finally {
            super.endTransaction();
            writableDatabase.query("PRAGMA wal_checkpoint(FULL)").close();
            if (!writableDatabase.inTransaction()) {
                writableDatabase.execSQL("VACUUM");
            }
        }
    }

    @Override // androidx.room.RoomDatabase
    public final as4 createInvalidationTracker() {
        return new as4(this, new HashMap(0), new HashMap(0), "cached_content", "trakt_accounts", "trakt_user_items", "continue_watching", "watch_status", "media_content", "media_images", "media_ratings", "watch_progress", "row_config", "sync_metadata", "media_enrichment", "premiumize_accounts", "player_settings", "playback_progress", "realdebrid_accounts", "alldebrid_accounts", "torbox_accounts", "sync_checkpoints", "episode_watch_status", "pending_trakt_actions", "installed_addons", "addon_configs", "addon_disclaimer_acceptance", "user_account", "easydebrid_accounts", "user_collections", "content_image_overrides");
    }

    @Override // androidx.room.RoomDatabase
    public final le9 createOpenHelper(androidx.room.a aVar) {
        k kVar = new k(aVar, new a(this), "5d9769c7989ba891bc92c7f052f10177", "f223bf186b0f97d9b87c527b0509c75b");
        le9.b.a aVarA = le9.b.C0170b.a(aVar.a);
        aVarA.b = aVar.b;
        aVarA.c = kVar;
        return aVar.c.create(aVarA.a());
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final CachedContentDao d() {
        CachedContentDao_Impl cachedContentDao_Impl;
        if (this.a != null) {
            return this.a;
        }
        synchronized (this) {
            try {
                if (this.a == null) {
                    this.a = new CachedContentDao_Impl(this);
                }
                cachedContentDao_Impl = this.a;
            } catch (Throwable th) {
                throw th;
            }
        }
        return cachedContentDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final ContentImageOverrideDao e() {
        ContentImageOverrideDao_Impl contentImageOverrideDao_Impl;
        if (this.v != null) {
            return this.v;
        }
        synchronized (this) {
            try {
                if (this.v == null) {
                    this.v = new ContentImageOverrideDao_Impl(this);
                }
                contentImageOverrideDao_Impl = this.v;
            } catch (Throwable th) {
                throw th;
            }
        }
        return contentImageOverrideDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final EasyDebridAccountDao f() {
        EasyDebridAccountDao_Impl easyDebridAccountDao_Impl;
        if (this.t != null) {
            return this.t;
        }
        synchronized (this) {
            try {
                if (this.t == null) {
                    this.t = new EasyDebridAccountDao_Impl(this);
                }
                easyDebridAccountDao_Impl = this.t;
            } catch (Throwable th) {
                throw th;
            }
        }
        return easyDebridAccountDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final EpisodeWatchStatusDao g() {
        EpisodeWatchStatusDao_Impl episodeWatchStatusDao_Impl;
        if (this.o != null) {
            return this.o;
        }
        synchronized (this) {
            try {
                if (this.o == null) {
                    this.o = new EpisodeWatchStatusDao_Impl(this);
                }
                episodeWatchStatusDao_Impl = this.o;
            } catch (Throwable th) {
                throw th;
            }
        }
        return episodeWatchStatusDao_Impl;
    }

    @Override // androidx.room.RoomDatabase
    public final List getAutoMigrations(Map map) {
        return new ArrayList();
    }

    @Override // androidx.room.RoomDatabase
    public final Set getRequiredAutoMigrationSpecs() {
        return new HashSet();
    }

    @Override // androidx.room.RoomDatabase
    public final Map getRequiredTypeConverters() {
        HashMap map = new HashMap();
        map.put(CachedContentDao.class, CachedContentDao_Impl.getRequiredConverters());
        map.put(TraktAccountDao.class, TraktAccountDao_Impl.getRequiredConverters());
        map.put(TraktUserItemDao.class, TraktUserItemDao_Impl.getRequiredConverters());
        map.put(ContinueWatchingDao.class, ContinueWatchingDao_Impl.getRequiredConverters());
        map.put(WatchStatusDao.class, WatchStatusDao_Impl.getRequiredConverters());
        map.put(MediaDao.class, MediaDao_Impl.getRequiredConverters());
        map.put(RowConfigDao.class, RowConfigDao_Impl.getRequiredConverters());
        map.put(SyncMetadataDao.class, SyncMetadataDao_Impl.getRequiredConverters());
        map.put(PremiumizeAccountDao.class, PremiumizeAccountDao_Impl.getRequiredConverters());
        map.put(PlayerSettingsDao.class, PlayerSettingsDao_Impl.getRequiredConverters());
        map.put(PlaybackProgressDao.class, PlaybackProgressDao_Impl.getRequiredConverters());
        map.put(RealDebridAccountDao.class, RealDebridAccountDao_Impl.getRequiredConverters());
        map.put(AllDebridAccountDao.class, AllDebridAccountDao_Impl.getRequiredConverters());
        map.put(TorBoxAccountDao.class, TorBoxAccountDao_Impl.getRequiredConverters());
        map.put(SyncCheckpointDao.class, SyncCheckpointDao_Impl.getRequiredConverters());
        map.put(EpisodeWatchStatusDao.class, EpisodeWatchStatusDao_Impl.getRequiredConverters());
        map.put(PendingTraktActionDao.class, PendingTraktActionDao_Impl.getRequiredConverters());
        map.put(InstalledAddonDao.class, InstalledAddonDao_Impl.getRequiredConverters());
        map.put(AddonConfigDao.class, AddonConfigDao_Impl.getRequiredConverters());
        map.put(AddonDisclaimerDao.class, AddonDisclaimerDao_Impl.getRequiredConverters());
        map.put(UserAccountDao.class, UserAccountDao_Impl.getRequiredConverters());
        map.put(EasyDebridAccountDao.class, EasyDebridAccountDao_Impl.getRequiredConverters());
        map.put(UserCollectionDao.class, UserCollectionDao_Impl.getRequiredConverters());
        map.put(ContentImageOverrideDao.class, ContentImageOverrideDao_Impl.getRequiredConverters());
        return map;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final InstalledAddonDao h() {
        InstalledAddonDao_Impl installedAddonDao_Impl;
        if (this.q != null) {
            return this.q;
        }
        synchronized (this) {
            try {
                if (this.q == null) {
                    this.q = new InstalledAddonDao_Impl(this);
                }
                installedAddonDao_Impl = this.q;
            } catch (Throwable th) {
                throw th;
            }
        }
        return installedAddonDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final MediaDao i() {
        MediaDao_Impl mediaDao_Impl;
        if (this.e != null) {
            return this.e;
        }
        synchronized (this) {
            try {
                if (this.e == null) {
                    this.e = new MediaDao_Impl(this);
                }
                mediaDao_Impl = this.e;
            } catch (Throwable th) {
                throw th;
            }
        }
        return mediaDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final PendingTraktActionDao j() {
        PendingTraktActionDao_Impl pendingTraktActionDao_Impl;
        if (this.p != null) {
            return this.p;
        }
        synchronized (this) {
            try {
                if (this.p == null) {
                    this.p = new PendingTraktActionDao_Impl(this);
                }
                pendingTraktActionDao_Impl = this.p;
            } catch (Throwable th) {
                throw th;
            }
        }
        return pendingTraktActionDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final PlaybackProgressDao k() {
        PlaybackProgressDao_Impl playbackProgressDao_Impl;
        if (this.j != null) {
            return this.j;
        }
        synchronized (this) {
            try {
                if (this.j == null) {
                    this.j = new PlaybackProgressDao_Impl(this);
                }
                playbackProgressDao_Impl = this.j;
            } catch (Throwable th) {
                throw th;
            }
        }
        return playbackProgressDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final PlayerSettingsDao l() {
        PlayerSettingsDao_Impl playerSettingsDao_Impl;
        if (this.i != null) {
            return this.i;
        }
        synchronized (this) {
            try {
                if (this.i == null) {
                    this.i = new PlayerSettingsDao_Impl(this);
                }
                playerSettingsDao_Impl = this.i;
            } catch (Throwable th) {
                throw th;
            }
        }
        return playerSettingsDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final PremiumizeAccountDao m() {
        PremiumizeAccountDao_Impl premiumizeAccountDao_Impl;
        if (this.h != null) {
            return this.h;
        }
        synchronized (this) {
            try {
                if (this.h == null) {
                    this.h = new PremiumizeAccountDao_Impl(this);
                }
                premiumizeAccountDao_Impl = this.h;
            } catch (Throwable th) {
                throw th;
            }
        }
        return premiumizeAccountDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final RealDebridAccountDao n() {
        RealDebridAccountDao_Impl realDebridAccountDao_Impl;
        if (this.k != null) {
            return this.k;
        }
        synchronized (this) {
            try {
                if (this.k == null) {
                    this.k = new RealDebridAccountDao_Impl(this);
                }
                realDebridAccountDao_Impl = this.k;
            } catch (Throwable th) {
                throw th;
            }
        }
        return realDebridAccountDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final RowConfigDao o() {
        RowConfigDao_Impl rowConfigDao_Impl;
        if (this.f != null) {
            return this.f;
        }
        synchronized (this) {
            try {
                if (this.f == null) {
                    this.f = new RowConfigDao_Impl(this);
                }
                rowConfigDao_Impl = this.f;
            } catch (Throwable th) {
                throw th;
            }
        }
        return rowConfigDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final SyncCheckpointDao p() {
        SyncCheckpointDao_Impl syncCheckpointDao_Impl;
        if (this.n != null) {
            return this.n;
        }
        synchronized (this) {
            try {
                if (this.n == null) {
                    this.n = new SyncCheckpointDao_Impl(this);
                }
                syncCheckpointDao_Impl = this.n;
            } catch (Throwable th) {
                throw th;
            }
        }
        return syncCheckpointDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final SyncMetadataDao q() {
        SyncMetadataDao_Impl syncMetadataDao_Impl;
        if (this.g != null) {
            return this.g;
        }
        synchronized (this) {
            try {
                if (this.g == null) {
                    this.g = new SyncMetadataDao_Impl(this);
                }
                syncMetadataDao_Impl = this.g;
            } catch (Throwable th) {
                throw th;
            }
        }
        return syncMetadataDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final TorBoxAccountDao r() {
        TorBoxAccountDao_Impl torBoxAccountDao_Impl;
        if (this.m != null) {
            return this.m;
        }
        synchronized (this) {
            try {
                if (this.m == null) {
                    this.m = new TorBoxAccountDao_Impl(this);
                }
                torBoxAccountDao_Impl = this.m;
            } catch (Throwable th) {
                throw th;
            }
        }
        return torBoxAccountDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final TraktAccountDao s() {
        TraktAccountDao_Impl traktAccountDao_Impl;
        if (this.b != null) {
            return this.b;
        }
        synchronized (this) {
            try {
                if (this.b == null) {
                    this.b = new TraktAccountDao_Impl(this);
                }
                traktAccountDao_Impl = this.b;
            } catch (Throwable th) {
                throw th;
            }
        }
        return traktAccountDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final TraktUserItemDao t() {
        TraktUserItemDao_Impl traktUserItemDao_Impl;
        if (this.c != null) {
            return this.c;
        }
        synchronized (this) {
            try {
                if (this.c == null) {
                    this.c = new TraktUserItemDao_Impl(this);
                }
                traktUserItemDao_Impl = this.c;
            } catch (Throwable th) {
                throw th;
            }
        }
        return traktUserItemDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final UserCollectionDao u() {
        UserCollectionDao_Impl userCollectionDao_Impl;
        if (this.u != null) {
            return this.u;
        }
        synchronized (this) {
            try {
                if (this.u == null) {
                    this.u = new UserCollectionDao_Impl(this);
                }
                userCollectionDao_Impl = this.u;
            } catch (Throwable th) {
                throw th;
            }
        }
        return userCollectionDao_Impl;
    }

    @Override // com.strmr.ps.data.local.AppDatabase
    public final WatchStatusDao v() {
        WatchStatusDao_Impl watchStatusDao_Impl;
        if (this.d != null) {
            return this.d;
        }
        synchronized (this) {
            try {
                if (this.d == null) {
                    this.d = new WatchStatusDao_Impl(this);
                }
                watchStatusDao_Impl = this.d;
            } catch (Throwable th) {
                throw th;
            }
        }
        return watchStatusDao_Impl;
    }
}
