// Metro module 14164 (f14165). export class MuxIntegration { constructor() { return { __proto__: new.target.prototype }; } static mapDiscordToMuxMetadata(a0, a1) { let durationMs = a0.contentMetadata.durationMs; if (durationMs == null) { durationMs = a0.contentMetadata.durationSec != null ? 1000 * a0.contentMetadata.durationSec : void 0; } let gameName = a0.contentMetadata.gameName; if (gameName == null) { gameName = "Discord"; } return { env_key: "1qd16mdmdjasipqg3irobln4u", session_id: a1, player_name: "discord", player_version: "1.0.0", video_id: a0.contentMetadata.contentId, video_title: a0.contentMetadata.title, video_duration: durationMs, video_content_type: a0.contentMetadata.contentType, video_series: a0.contentMetadata.questId, video_producer: a0.contentMetadata.gameId, video_brand: gameName, video_cdn: "Cloudflare", video_stream_type: a0.contentMetadata.videoStreamType, view_client_application_name: this.getBuildChannel(), view_client_application_version: this.getAppVersion(), viewer_user_id: a0.userContext?.userId, viewer_plan: a0.userContext?.userTier }; } static getAppVersion() { return "6099"; } static getBuildChannel() { let r5; try { r5 = window.GLOBAL_ENV?.RELEASE_CHANNEL; if (r5 == null) { r5 = "stable"; } } catch ($e) { return "stable"; } return r5; } }