import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{Ct as t,Ht as n,St as r,Vt as i,aa as a,ia as o,ra as s,sa as c,wt as l,xt as u}from"./ws-Dl8XkIy4.js";function d(e){try{return e()}catch{return}}function f(){try{let e=o(),n=c().getCurrentProviderStore(),a=d(()=>n.player),s=()=>a?.getTransitionDiagnostics(),l=()=>u()?.getDiagnostics?.(),f=()=>t();return{itemId:d(()=>e.player.nowPlayingId),itemType:d(()=>e.player.nowPlayingType),hasCatalog:d(()=>e.player.nowPlayingHasCatalog),hasPlayParams:d(()=>!!e.player.nowPlayingItem?.attributes?.playParams),isLibrary:d(()=>!!e.player.nowPlayingItem?.attributes?.playParams?.isLibrary),flavor:d(()=>e.player.flavor),bitrate:d(()=>e.player.bitrate),queueLength:d(()=>e.queueItems.length),queuePosition:d(()=>e.queuePosition),shuffle:d(()=>e.player.shuffleMode),repeat:d(()=>e.player.repeatMode),crossfade:{enabled:d(()=>n.crossfadeEnabled),effective:d(()=>n.effectiveCrossfadeEnabled),durationSec:d(()=>n.crossfadeDurationSec),skipEnabled:d(()=>!!i(`audio.crossfade.skipEnabled`))},automix:{enabled:d(()=>n.automixEnabled),effective:d(()=>n.effectiveAutomixEnabled),spectralSeparation:d(()=>n.automixSpectralSeparation),vocalGuard:d(()=>n.automixVocalGuard),tempoAlign:d(()=>n.automixTempoAlign),info:d(()=>n.automixInfo)},autoplay:d(()=>n.autoplayEnabled),isPlaying:d(()=>e.player.isPlaying),currentTime:d(()=>n.currentTime),duration:d(()=>n.duration),nextItemId:d(()=>s()?.nextItemId),seamless:{enabled:d(()=>s()?.seamlessTransitionsEnabled),armed:d(()=>s()?.seamlessArmed),arming:d(()=>s()?.seamlessArming),armedFrom:d(()=>s()?.seamlessArmedFromItemId),armedNext:d(()=>s()?.seamlessArmedNextItemId)},audioDsp:{activeTiers:d(()=>l()?.activeTiers),generation:d(()=>l()?.generation),ppe:d(()=>l()?.ppe),intelliGain:d(()=>l()?.intelliGain),transitionLock:d(()=>r()),primaryGain:d(()=>s()?.primaryGain??f().primaryGainNode),nextGain:d(()=>s()?.nextGain??f().nextGainNode),limiterReduction:d(()=>l()?.limiterReduction??f().safetyLimiterReduction),limiterEnvelope:d(()=>l()?.limiterEnvelope),compressorFallbackActive:d(()=>l()?.compressorFallbackActive)},license:{dormant:d(()=>s()?.licenseDormant),refreshInFlight:d(()=>s()?.licenseRefreshInFlight)}}}catch{return null}}e((()=>{l(),n(),s(),a()}))();export{f as collectPlaybackSnapshot};