try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`996bf0bd-af67-4e02-bf77-56446ea93f13`,e._sentryDebugIdIdentifier=`sentry-dbid-996bf0bd-af67-4e02-bf77-56446ea93f13`)}catch{}import{Aa as e,Da as t,Ea as n,Ma as r,Oa as i,ja as a,ka as o}from"./entry.client-mpghtlrl.js";import{fn as s,gn as c}from"./workspace-leaf-files-oergw4h0.js";function l(e){return e.isFireOS&&!e.isSupportedTVBrowser?`android`:e.osName}var u={Stereo:`Stereo`,Mono:`Mono`},d=i({enableMicrophone:o,gameVolumeLevel:e,useHardwareAudioDecoding:o,audioMode:t(u,{name:`isAudioMode`}),enableGameChat:o,outputDeviceSinkId:r},{name:`validateAudioConfiguration`,ignoreNullish:!0,throwErrors:!0}),f=i({enableGamepadInput:o,enableMouseInput:o,enableAbsoluteMouse:o,enableKeyboardInput:o,enableTouchInput:o,enableExperimentalSensorInput:o,enableSensorInput:o,sensorInputPollingRateInHz:e,enableVibration:o,enableVirtualMKB:o,useNexusPressWorkaround:o,useIntervalWorkerThreadForInput:o,useGamepadEventListenerForInput:o,inputChannelMaxVersion:e,gamepadTransformer:a,maxTouchPoints:e,useUnreliableInput:o,enableClientRenderedCursor:o,minTimeBetweenInputFramesMs:e,pollGamepadsIntervalMs:e,unreliableInputFrameRetransmissionIntervalMs:e},{name:`validateInputConfiguration`,ignoreNullish:!0,throwErrors:!0}),p=i({iceGatheringTimeoutMs:e},{name:`validateNetworkConfiguration`,ignoreNullish:!0,throwErrors:!0}),m=i({packetLossPercentageBadThreshold:e,pingMsBadThreshold:e,jitterMsBadThreshold:e,decodeMsBadThreshold:e,consecutiveBadIntervalsForTrigger:e,consecutiveGoodIntervalsForClear:e},{name:`validateNetworkQualityIndicatorConfiguration`,ignoreNullish:!0,throwErrors:!0}),h=class{queuePollingIntervalMs=1e4;provisioningPollingIntervalMs=2e3;retryPollingIntervalMs=2e3;useRetryAfterHeader=!1;constructor(e){this.useRetryAfterHeader=e}onRetryAfterUpdate=e=>{if(!this.useRetryAfterHeader)return;if(!e||isNaN(e))throw Error(`Invalid value provided by Retry-After header`);let t=e*1e3;this.queuePollingIntervalMs=t,this.provisioningPollingIntervalMs=t}},g=i({statsCollectionSizeSec:e,statsPollingIntervalMs:e,statsEventFrequencySec:e,numberOfStatsEventsToStore:e,stringifyStatUponCollect:o,enableMemoryStatsCollection:o},{name:`validateStatisticsConfiguration`,ignoreNullish:!0,throwErrors:!0}),_=i({fpsChangeBadThreshold:e,fpsDroppedBadThreshold:e,pollingIntervalMsBadThreshold:e,pollingDurationMsBadThreshold:e,decodeMsBadThreshold:e,pingMsBadThreshold:e,jitterMsBadThreshold:e,bufferCushionMsBadThreshold:e,packetLossPercentageBadThreshold:e,frameAssemblyTimeMsBadThreshold:e},{name:`validateStreamStatisticsOverlayConfiguration`,ignoreNullish:!0,throwErrors:!0}),v=[`options`,`systemUiHandler`,`touchControlHandler`,`nexusButtonHandler`,`clientDeviceCapabilities`,`pollingConfiguration`],y=-new Date().getTimezoneOffset();function b(...e){let t={options:{directIpAddress:``,systemUpdateGroup:``,enableNarrator:!1,highContrastMode:s.Off,timezoneOffsetMinutes:y,iceLocalOnly:!1,releaseChannel:c.Release,constrainTitleOnPause:!0,requestPlayStreamGesture:!0,enableOptionalDataCollection:void 0,enableDebugMessageHandler:!1},audioConfiguration:{audioMode:u.Stereo},statisticsConfiguration:{},inputConfiguration:{enableGamepadInput:!0,sensorInputPollingRateInHz:60},videoConfiguration:{showStreamStatisticsOverlay:!1,emitStreamStatisticsSimplifiedEvent:!1,enableNetworkQualityIndicator:!0},networkConfiguration:{iceGatheringTimeoutMs:5e3},systemUiHandler:{getSupportedSystemUis:()=>[],onHideSystemUi:()=>{},onShowSystemUi:()=>{}},clientDeviceCapabilities:{},touchControlHandler:void 0,stateSharePrototypeHandler:void 0,nexusButtonHandler:void 0,pollingConfiguration:new h(!1),nqiConfiguration:{jitterMsBadThreshold:20,packetLossPercentageBadThreshold:1,pingMsBadThreshold:80,decodeMsBadThreshold:12,consecutiveBadIntervalsForTrigger:5,consecutiveGoodIntervalsForClear:5},overlayConfiguration:{fpsChangeBadThreshold:5,fpsDroppedBadThreshold:5,pollingIntervalMsBadThreshold:20,pollingDurationMsBadThreshold:4,decodeMsBadThreshold:12,pingMsBadThreshold:80,jitterMsBadThreshold:20,bufferCushionMsBadThreshold:15,packetLossPercentageBadThreshold:1,frameAssemblyTimeMsBadThreshold:16}};return e.reduce((e,t)=>(Object.keys(e).forEach(n=>{t[n]!==void 0&&(e[n]===void 0?e[n]=t[n]:Object.assign(e[n],t[n]))}),e),t)}function x(e){let t=b(e);return delete t.options?.directIpAddress,t}var S={audioConfiguration:d,inputConfiguration:f,videoConfiguration:n,statisticsConfiguration:g,networkConfiguration:p,nqiConfiguration:m,overlayConfiguration:_},C=(()=>{let e=i(S,{name:`validateClientStreamingConfigOverrides`,ignoreNullish:!0,throwErrors:!0});return t=>t==null?!0:e(t)})();export{h as a,C as i,x as n,u as o,v as r,l as s,b as t};