package V2;

/* JADX INFO: loaded from: classes.dex */
public final class Q2 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f7496a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f7497b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final String f7498c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final boolean f7499d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final P2 f7500e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final String f7501f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final g3.n f7502g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final String f7503h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public final String f7504i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final boolean f7505j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final Long f7506k;

    public Q2(String url, String str, String str2, boolean z6, P2 p22, String str3, g3.n nVar, String str4, String str5, boolean z7, Long l) {
        kotlin.jvm.internal.o.h(url, "url");
        this.f7496a = url;
        this.f7497b = str;
        this.f7498c = str2;
        this.f7499d = z6;
        this.f7500e = p22;
        this.f7501f = str3;
        this.f7502g = nVar;
        this.f7503h = str4;
        this.f7504i = str5;
        this.f7505j = z7;
        this.f7506k = l;
    }

    public static Q2 a(Q2 q22, String str, String str2, int i6) {
        String url = q22.f7496a;
        String str3 = q22.f7497b;
        String str4 = q22.f7498c;
        boolean z6 = q22.f7499d;
        q22.getClass();
        q22.getClass();
        P2 p22 = q22.f7500e;
        String str5 = q22.f7501f;
        g3.n nVar = q22.f7502g;
        if ((i6 & 512) != 0) {
            str = q22.f7503h;
        }
        String str6 = str;
        if ((i6 & 1024) != 0) {
            str2 = q22.f7504i;
        }
        String str7 = str2;
        boolean z7 = (i6 & 2048) != 0 ? q22.f7505j : false;
        Long l = (i6 & 4096) != 0 ? q22.f7506k : null;
        q22.getClass();
        kotlin.jvm.internal.o.h(url, "url");
        return new Q2(url, str3, str4, z6, p22, str5, nVar, str6, str7, z7, l);
    }

    public final String b() {
        return this.f7504i;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Q2)) {
            return false;
        }
        Q2 q22 = (Q2) obj;
        return kotlin.jvm.internal.o.c(this.f7496a, q22.f7496a) && kotlin.jvm.internal.o.c(this.f7497b, q22.f7497b) && kotlin.jvm.internal.o.c(this.f7498c, q22.f7498c) && this.f7499d == q22.f7499d && kotlin.jvm.internal.o.c(this.f7500e, q22.f7500e) && kotlin.jvm.internal.o.c(this.f7501f, q22.f7501f) && kotlin.jvm.internal.o.c(this.f7502g, q22.f7502g) && kotlin.jvm.internal.o.c(this.f7503h, q22.f7503h) && kotlin.jvm.internal.o.c(this.f7504i, q22.f7504i) && this.f7505j == q22.f7505j && kotlin.jvm.internal.o.c(this.f7506k, q22.f7506k);
    }

    public final int hashCode() {
        int iHashCode = this.f7496a.hashCode() * 31;
        String str = this.f7497b;
        int iHashCode2 = (iHashCode + (str == null ? 0 : str.hashCode())) * 31;
        String str2 = this.f7498c;
        int iF = com.google.android.recaptcha.internal.a.f(com.google.android.recaptcha.internal.a.f((iHashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31, 31, this.f7499d), 961, false);
        P2 p22 = this.f7500e;
        int iHashCode3 = (iF + (p22 == null ? 0 : p22.hashCode())) * 31;
        String str3 = this.f7501f;
        int iHashCode4 = (iHashCode3 + (str3 == null ? 0 : str3.hashCode())) * 31;
        g3.n nVar = this.f7502g;
        int iHashCode5 = (iHashCode4 + (nVar == null ? 0 : nVar.hashCode())) * 31;
        String str4 = this.f7503h;
        int iHashCode6 = (iHashCode5 + (str4 == null ? 0 : str4.hashCode())) * 31;
        String str5 = this.f7504i;
        int iF2 = com.google.android.recaptcha.internal.a.f((iHashCode6 + (str5 == null ? 0 : str5.hashCode())) * 31, 31, this.f7505j);
        Long l = this.f7506k;
        return iF2 + (l != null ? l.hashCode() : 0);
    }

    public final String toString() {
        return "PlayerUiState(url=" + this.f7496a + ", currentLinkHash=" + this.f7497b + ", currentDebridProviderKey=" + this.f7498c + ", isPlaying=" + this.f7499d + ", isBuffering=false, errorMessage=null, openSubtitlesContext=" + this.f7500e + ", playbackTitleOverride=" + this.f7501f + ", progressMeta=" + this.f7502g + ", externalSubtitleUrl=" + this.f7503h + ", externalOpenSubtitlesFileId=" + this.f7504i + ", pendingOpenLinksPanelForManualPick=" + this.f7505j + ", initialSeekPositionMs=" + this.f7506k + ")";
    }

    public /* synthetic */ Q2(String str, String str2, String str3, P2 p22, String str4, g3.n nVar, boolean z6, Long l, int i6) {
        this((i6 & 1) != 0 ? "" : str, (i6 & 2) != 0 ? null : str2, (i6 & 4) != 0 ? null : str3, (i6 & 8) != 0, (i6 & 64) != 0 ? null : p22, (i6 & 128) != 0 ? null : str4, (i6 & 256) != 0 ? null : nVar, null, null, (i6 & 2048) != 0 ? false : z6, (i6 & 4096) != 0 ? null : l);
    }
}
package V2;

import com.google.android.recaptcha.internal.a;

/**
 * This class represents the UI state of a video player.
 * It encapsulates all the necessary information to render the player interface,
 * including the current URL, playback status, error messages, subtitle settings,
 * and external link handling.
 * 
 * The class is immutable and provides a builder-like static factory method
 * to create instances with optional fields.
 */
public final class Q2 {

    // Renamed from f7496a
    public final String url;

    // Renamed from f7497b
    public final String currentLinkHash;

    // Renamed from f7498c
    public final String currentDebridProviderKey;

    // Renamed from f7499d
    public final boolean isPlaying;

    // Renamed from f7500e
    public final P2 openSubtitlesContext;

    // Renamed from f7501f
    public final String playbackTitleOverride;

    // Renamed from f7502g
    public final g3.n progressMeta;

    // Renamed from f7503h
    public final String externalSubtitleUrl;

    // Renamed from f7504i
    public final String externalOpenSubtitlesFileId;

    // Renamed from f7505j
    public final boolean pendingOpenLinksPanelForManualPick;

    // Renamed from f7506k
    public final Long initialSeekPositionMs;

    /**
     * Constructs a new PlayerUiState with all fields provided.
     * 
     * @param url The base URL for the video stream.
     * @param str The hash of the current link.
     * @param str2 The key for the current debrid provider.
     * @param z6 Boolean indicating if the player is currently playing.
     * @param p22 The context for open subtitles (e.g., provider info).
     * @param str3 Optional override for the playback title.
     * @param nVar Metadata about the current playback progress.
     * @param str4 URL for external subtitles.
     * @param str5 ID for external open subtitles file.
     * @param z7 Boolean indicating if the open links panel should be shown manually.
     * @param l Initial seek position in milliseconds.
     */
    public Q2(String url, String str, String str2, boolean z6, P2 p22, String str3, g3.n nVar, String str4, String str5, boolean z7, Long l) {
        // Validate that the URL is not null
        kotlin.jvm.internal.o.h(url, "url");
        this.url = url;
        this.currentLinkHash = str;
        this.currentDebridProviderKey = str2;
        this.isPlaying = z6;
        this.openSubtitlesContext = p22;
        this.playbackTitleOverride = str3;
        this.progressMeta = nVar;
        this.externalSubtitleUrl = str4;
        this.externalOpenSubtitlesFileId = str5;
        this.pendingOpenLinksPanelForManualPick = z7;
        this.initialSeekPositionMs = l;
    }

    /**
     * Creates a new PlayerUiState based on an existing one, selectively copying fields.
     * This acts as a builder pattern where you can modify specific fields.
     * 
     * @param q22 The base state to copy from.
     * @param str New value for currentLinkHash (or null to keep old).
     * @param str2 New value for currentDebridProviderKey (or null to keep old).
     * @param i6 Bitmask of flags determining which fields to update:
     *            - 512: Use externalSubtitleUrl instead of currentLinkHash
     *            - 1024: Use externalOpenSubtitlesFileId instead of currentDebridProviderKey
     *            - 2048: Set pendingOpenLinksPanelForManualPick to true
     *            - 4096: Set initialSeekPositionMs to the old value
     * @return A new Q2 instance with the updated fields.
     */
    public static Q2 a(Q2 q22, String str, String str2, int i6) {
        String url = q22.url;
        String currentLinkHash = q22.currentLinkHash;
        String currentDebridProviderKey = q22.currentDebridProviderKey;
        boolean isPlaying = q22.isPlaying;
        q22.getClass(); // Ensure class is initialized
        q22.getClass();
        P2 openSubtitlesContext = q22.openSubtitlesContext;
        String playbackTitleOverride = q22.playbackTitleOverride;
        g3.n progressMeta = q22.progressMeta;
        
        String externalSubtitleUrl;
        if ((i6 & 512) != 0) {
            externalSubtitleUrl = q22.externalSubtitleUrl;
        } else {
            externalSubtitleUrl = currentLinkHash;
        }
        
        String externalOpenSubtitlesFileId;
        if ((i6 & 1024) != 0) {
            externalOpenSubtitlesFileId = q22.externalOpenSubtitlesFileId;
        } else {
            externalOpenSubtitlesFileId = currentDebridProviderKey;
        }
        
        boolean pendingOpenLinksPanelForManualPick = (i6 & 2048) != 0 ? q22.pendingOpenLinksPanelForManualPick : false;
        Long initialSeekPositionMs = (i6 & 4096) != 0 ? q22.initialSeekPositionMs : null;
        
        q22.getClass();
        // Validate the URL
        kotlin.jvm.internal.o.h(url, "url");
        
        return new Q2(url, currentLinkHash, currentDebridProviderKey, isPlaying, openSubtitlesContext, playbackTitleOverride, progressMeta, externalSubtitleUrl, externalOpenSubtitlesFileId, pendingOpenLinksPanelForManualPick, initialSeekPositionMs);
    }

    /**
     * Returns the external subtitle URL.
     * This is a getter for the externalSubtitleUrl field.
     */
    public final String b() {
        return this.externalSubtitleUrl;
    }

    /**
     * Checks if two PlayerUiState objects are equal.
     * Equality is determined by comparing all fields using null-safe equals.
     * 
     * @param obj The object to compare against.
     * @return true if the objects are equal, false otherwise.
     */
    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof Q2)) {
            return false;
        }
        Q2 q22 = (Q2) obj;
        // Compare all fields using null-safe equals (kotlin.jvm.internal.o.c)
        return kotlin.jvm.internal.o.c(this.url, q22.url) 
            && kotlin.jvm.internal.o.c(this.currentLinkHash, q22.currentLinkHash) 
            && kotlin.jvm.internal.o.c(this.currentDebridProviderKey, q22.currentDebridProviderKey) 
            && this.isPlaying == q22.isPlaying 
            && kotlin.jvm.internal.o.c(this.openSubtitlesContext, q22.openSubtitlesContext) 
            && kotlin.jvm.internal.o.c(this.playbackTitleOverride, q22.playbackTitleOverride) 
            && kotlin.jvm.internal.o.c(this.progressMeta, q22.progressMeta) 
            && kotlin.jvm.internal.o.c(this.externalSubtitleUrl, q22.externalSubtitleUrl) 
            && kotlin.jvm.internal.o.c(this.externalOpenSubtitlesFileId, q22.externalOpenSubtitlesFileId) 
            && this.pendingOpenLinksPanelForManualPick == q22.pendingOpenLinksPanelForManualPick 
            && kotlin.jvm.internal.o.c(this.initialSeekPositionMs, q22.initialSeekPositionMs);
    }

    /**
     * Computes the hash code for this PlayerUiState.
     * The hash is computed by combining the hash codes of all fields.
     * 
     * @return The hash code value.
     */
    public final int hashCode() {
        int hash = this.url.hashCode() * 31;
        String currentLinkHash = this.currentLinkHash;
        hash = (hash + (currentLinkHash == null ? 0 : currentLinkHash.hashCode())) * 31;
        String currentDebridProviderKey = this.currentDebridProviderKey;
        hash = (hash + (currentDebridProviderKey == null ? 0 : currentDebridProviderKey.hashCode())) * 31;
        hash = a.f(hash, 31, this.isPlaying) * 31 + 961;
        P2 openSubtitlesContext = this.openSubtitlesContext;
        hash = (hash + (openSubtitlesContext == null ? 0 : openSubtitlesContext.hashCode())) * 31;
        String playbackTitleOverride = this.playbackTitleOverride;
        hash = (hash + (playbackTitleOverride == null ? 0 : playbackTitleOverride.hashCode())) * 31;
        g3.n progressMeta = this.progressMeta;
        hash = (hash + (progressMeta == null ? 0 : progressMeta.hashCode())) * 31;
        String externalSubtitleUrl = this.externalSubtitleUrl;
        hash = (hash + (externalSubtitleUrl == null ? 0 : externalSubtitleUrl.hashCode())) * 31;
        String externalOpenSubtitlesFileId = this.externalOpenSubtitlesFileId;
        hash = (hash + (externalOpenSubtitlesFileId == null ? 0 : externalOpenSubtitlesFileId.hashCode())) * 31;
        hash = a.f(hash, 31, this.pendingOpenLinksPanelForManualPick) * 31;
        Long initialSeekPositionMs = this.initialSeekPositionMs;
        return hash + (initialSeekPositionMs != null ? initialSeekPositionMs.hashCode() : 0);
    }

    /**
     * Returns a string representation of this PlayerUiState.
     * This is useful for debugging and logging.
     * 
     * @return A formatted string containing all field values.
     */
    public final String toString() {
        return "PlayerUiState(url=" + this.url + ", currentLinkHash=" + this.currentLinkHash + ", currentDebridProviderKey=" + this.currentDebridProviderKey + ", isPlaying=" + this.isPlaying + ", isBuffering=false, errorMessage=null, openSubtitlesContext=" + this.openSubtitlesContext + ", playbackTitleOverride=" + this.playbackTitleOverride + ", progressMeta=" + this.progressMeta + ", externalSubtitleUrl=" + this.externalSubtitleUrl + ", externalOpenSubtitlesFileId=" + this.externalOpenSubtitlesFileId + ", pendingOpenLinksPanelForManualPick=" + this.pendingOpenLinksPanelForManualPick + ", initialSeekPositionMs=" + this.initialSeekPositionMs + ")";
    }

    /**
     * Synthetic constructor used by Kotlin's compiler for the builder pattern.
     * This constructor takes a bitmask (i6) to determine which fields to set.
     * 
     * @param str URL (empty if flag 1 is not set)
     * @param str2 currentLinkHash (null if flag 2 is not set)
     * @param str3 currentDebridProviderKey (null if flag 4 is not set)
     * @param p22 openSubtitlesContext (null if flag 8 is not set)
     * @param str4 playbackTitleOverride (null if flag 64 is not set)
     * @param nVar progressMeta (null if flag 128 is not set)
     * @param z6 isPlaying (false if flag 256 is not set)
     * @param l initialSeekPositionMs (null if flag 4096 is not set)
     * @param i6 Bitmask of flags (1, 2, 4, 8, 64, 128, 256, 4096)
     */
    public /* synthetic */ Q2(String str, String str2, String str3, P2 p22, String str4, g3.n nVar, boolean z6, Long l, int i6) {
        this((i6 & 1) != 0 ? "" : str, (i6 & 2) != 0 ? null : str2, (i6 & 4) != 0 ? null : str3, (i6 & 8) != 0, (i6 & 64) != 0 ? null : p22, (i6 & 128) != 0 ? null : str4, (i6 & 256) != 0 ? null : nVar, null, null, (i6 & 2048) != 0 ? false : z6, (i6 & 4096) != 0 ? null : l);
    }
}
