PageSourceSearch

https://www.rooter.gg/_next/static/chunks/8623-6087e242b0d4213d.js

js rooter.gg collected 2026-10-01 11:26:15 UTC 47,295 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8623],{25346:function(e,t){"use strict";t.Z={header:{root:1115},studio:{boostStream:1200},notification:{menu:1200},player:{settings:1200}}},47805:function(e,t,n){"use strict";n.d(t,{G:function(){return r},z:function(){return o}});let r=600,o="player-controls-seek-bar-wrapper"},37586:function(e,t,n){"use strict";var r=n(63119),o=n(25895);t.Z=(0,r.kc)((e,t)=>({container:{border:"none",borderRadius:"10px",width:"300px !important",maxWidth:360,backgroundColor:e.other.darkMode?e.other.paletteNew.darkModeInclinedBlack2:e.other.paletteNew.secondaryWhite,color:e.other.colors.text.primary,padding:"10px 0px",fontSize:"1.2rem"},item:{color:e.other.colors.text.primary,fontSize:e.fontSizes.sm,padding:"0 2rem",minHeight:"4rem","&[data-hovered]":{backgroundColor:"none",background:"none"},"&[data-selected]":{backgroundColor:e.other.colors.selectedState.primary}},caretIcon:{height:"3rem",width:"3rem"},tooltip:{fontSize:"1.2rem"},divider:{borderColor:e.other.colors.border.primary},reelMuteIcon:{width:"3.2rem",borderRadius:"1rem",position:"absolute",right:"1rem",top:"1.5rem",cursor:"pointer",border:"none",zIndex:"20",[o.AE.mobile]:{right:"1.5rem"}},playPauseIconWrapper:{opacity:"0.9",borderRadius:"1rem",position:"absolute",top:"53%",width:"fit-content",left:"50%",transform:"translate(-50%,-50%)",right:"2rem",zIndex:"12"},icon:{width:"6rem",bottom:"0",left:"-3rem",position:"absolute",transition:"opacity 2s ease-in-out",opacity:0,"&[data-show]":{animation:"zoomOutFade 0.4s linear"},[o.AE.mobile]:{right:"7rem"},"@keyframes zoomOutFade":{"0%":{transform:"scale(0.7)",opacity:1},"100%":{transform:"scale(1.2)",opacity:1}}},sessionStatsContainer:{display:"flex",alignItems:"center",gap:"1rem",marginLeft:"1rem"},liveTagContainer:{backgroundColor:e.other.paletteNew.tertiaryPink,padding:"0.2rem 0.8rem",borderRadius:(null==t?void 0:t.startedAt)?"0.5rem 0 0 0.5rem":"0.3rem",display:"flex",zIndex:1,alignItems:"center"},liveTagText:{fontSize:"1.2rem",fontWeight:"500",color:e.other.paletteNew.secondaryWhite},liveTimeText:{textAlign:"center",fontSize:"1.2rem",fontWeight:"500",minWidth:"3rem",color:e.other.paletteNew.secondaryWhite},viewTagText:{fontSize:"1.2rem",fontWeight:"500",color:e.other.paletteNew.secondaryWhite},liveTimeContainer:{display:"flex",gap:"0.5rem",alignItems:"center",padding:"0.2rem 0.8rem",borderRadius:"0 0.5rem 0.5rem 0",marginLeft:"-10px",background:e.other.paletteNew.secondaryBlack50},viewTagContainer:{display:"flex",gap:"0.5rem",alignItems:"center",padding:"0.2rem 0.8rem",borderRadius:"0.5rem",background:e.other.paletteNew.secondaryBlack50},eyeIcon:{height:"1rem",padding:"1px 0"},itemRightSection:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}}))},94242:function(e,t,n){"use strict";var r=n(67294),o=n(11128);t.Z=e=>{let t,{startedAt:n}=e,[l,i]=(0,r.useState)();(0,r.useEffect)(()=>(a(),()=>{t&&clearInterval(t)}),[n]);let a=()=>{if(!n)return;let e=()=>{i((0,o.kM)(n))};t=setInterval(()=>e(),1e3)};return{liveTime:l}}},10788:function(e,t,n){"use strict";var r=n(67294),o=n(92631),l=n(20776),i=n(36216);let a="live";t.Z=()=>{let e=(0,o.iP)(),t=(0,o.Gz)(),n=(0,o.BL)(),s=(0,o.MY)(),d=(0,o.CN)(),u=(0,o.EF)(),c=(0,l.Tt)(),p=(0,i.Z)(),m=(0,i.Z)(),v=(0,r.useRef)(),h=(0,r.useRef)();(0,r.useEffect)(()=>{(null==e?void 0:e.current)&&p.setRef(e.current)},[null==e?void 0:e.current]),(0,r.useEffect)(()=>{(null==t?void 0:t.current)&&m.setRef(t.current)},[null==t?void 0:t.current]),(0,r.useEffect)(()=>{"live"===s?(v.current=p,u&&(h.current=m)):(v.current=m,h.current=p)},[s,u]);let g=(0,r.useCallback)(()=>(null==m?void 0:m.isReady())?m.getDuration():0,[null==m?void 0:m.isReady()]),f=(0,r.useCallback)(e=>{(null==m?void 0:m.isReady())&&(null==m||m.seekToPos(e))},[null==m?void 0:m.isReady()]),b=(0,r.useCallback)(()=>(null==m?void 0:m.isReady())?null==m?void 0:m.getPosition():0,[null==m?void 0:m.isReady()]),x=(0,r.useCallback)(e=>{n(t=>{let n=e===a?p.play:m.play;return e!==t&&n(),e})},[p.play,m.play]),y=(0,r.useCallback)(()=>{(null==v?void 0:v.current)&&v.current.togglePlayback()},[null==v?void 0:v.current]),C=(0,r.useCallback)(()=>{(null==v?void 0:v.current)&&v.current.toggleMute(),(null==h?void 0:h.current)&&h.current.toggleMute()},[null==v?void 0:v.current,null==h?void 0:h.current]),w=(0,r.useCallback)(e=>{(null==v?void 0:v.current)&&v.current.setQuality(e),(null==h?void 0:h.current)&&h.current.setQuality(e)},[null==v?void 0:v.current,null==h?void 0:h.current]),k=(0,r.useCallback)(()=>{(null==v?void 0:v.current)&&v.current.setQualityOptions()},[null==v?void 0:v.current]),R=(0,r.useCallback)(()=>{(null==p?void 0:p.isReady())&&(document.fullscreenElement?(p.exitFullscreen(),d(!1)):(p.enterFullscreen(),d(!0)))},[null==p?void 0:p.isReady()]),_=()=>{if(c)return R();let e=document.getElementById("complete-video-player");document.fullscreenElement?(document.exitFullscreen(),d(!1)):(e.requestFullscreen().catch(e=>{alert("Error attempting to enable fullscreen mode: ".concat(e.message," (").concat(e.name,")"))}),d(!0))},j=(0,r.useCallback)(e=>{(null==v?void 0:v.current)&&v.current.onVolumeChange(e),(null==h?void 0:h.current)&&h.current.onVolumeChange(e)},[null==v?void 0:v.current,null==h?void 0:h.current]),S=(0,r.useCallback)(e=>{(null==p?void 0:p.isReady())&&p.setPlaybackSpeed(e)},[null==p?void 0:p.isReady()]),M=(0,r.useCallback)(e=>{(null==t?void 0:t.current)&&m.setPlaybackSpeed(e)},[null==t?void 0:t.current]),I=(0,r.useCallback)(e=>{(null==m?void 0:m.isReady())&&m.onSeek(e)},[null==m?void 0:m.isReady()]),E=(0,r.useCallback)(e=>{(null==p?void 0:p.isReady())&&p.onSeek(e)},[null==p?void 0:p.isReady()]),F=(0,r.useCallback)(e=>{(null==m?void 0:m.isReady())&&m.seekByNSeconds(e)},[null==m?void 0:m.isReady()]),T=(0,r.useCallback)(e=>{(null==p?void 0:p.isReady())&&p.seekByNSeconds(e)},[null==p?void 0:p.isReady()]);return(0,r.useEffect)(()=>{s===a&&p.error&&(0,m.reset)()},[s,m.reset,p.error]),(0,r.useEffect)(()=>{u&&s===a&&f(g())},[s,g,u,f]),(0,r.useEffect)(()=>{(null==t?void 0:t.current)&&(null==e?void 0:e.current)&&(s===a?null==t?void 0:t.current:null==e?void 0:e.current).pause()},[s,null==e?void 0:e.current,null==t?void 0:t.current]),(0,r.useMemo)(()=>({togglePlayback:y,toggleMute:C,toggleFullscreen:_,onVolumeChange:j,getVodDuration:g,getVodPosition:b,setPlaybackSpeed:M,setPlaybackSpeedOnVideo:S,onSeek:I,onSeekVideo:E,seekByNSeconds:F,seekByNSecondsOthers:T,recordingStartTime:null,setQualityOptions:k,setQuality:w,resetVOD:m.reset,seekVodToPos:f,setActivePlayerType:x,vodPlayerInstance:null==t?void 0:t.current}),[y,C,_,j,w,k,g,b,M,S,I,E,F,T,p,null,f,x,m,null==t?void 0:t.current])}}
1,36216:function(e,t,n){"use strict";var r=n(67294),o=n(57128),l=n(50536),i=n(92631);t.Z=()=>{let[e,t]=(0,r.useState)(void 0),n=(0,r.useRef)(null),a=(0,r.useRef)(null),s=(0,i.$o)(),d=(0,i.lN)(),u=(0,i.Mu)(),c=(0,o.xr)(),p=(0,i.wM)(),m=(0,i.y6)(),v=(0,i.Cl)(),h=(0,i.ju)(),g=(0,i.Q0)(),f=(0,i.u7)(),b=(0,i.i)(),x=(0,i.lv)(),y=(0,i.xv)(),C=(0,i.YC)();(0,r.useCallback)(()=>{y(n.current.currentTime())},[]),(0,r.useEffect)(()=>{c&&I()},[c]),(0,r.useEffect)(()=>{e&&(null==e||!e.isDisposed_)&&(n.current=e,n.current.volume(parseFloat(g/100).toFixed(2)))},[e]),(0,r.useEffect)(()=>{var e;a.current=g,v(g),(null==n?void 0:n.current)&&(null==n||null===(e=n.current)||void 0===e||!e.isDisposed_)&&n.current.volume(parseFloat(g/100).toFixed(2))},[g]);let w=(0,r.useCallback)(()=>{var e;return!!(null==n?void 0:n.current)&&(null==n||null===(e=n.current)||void 0===e||!e.isDisposed_)},[n]),k=(0,r.useCallback)(()=>{var e,t;if((null==n?void 0:n.current)&&(null==n||null===(e=n.current)||void 0===e||!e.isDisposed_))return null===(t=n.current)||void 0===t?void 0:t.requestFullscreen()},[n]),R=(0,r.useCallback)(()=>{var e,t;if((null==n?void 0:n.current)&&(null==n||null===(e=n.current)||void 0===e||!e.isDisposed_))return null===(t=n.current)||void 0===t?void 0:t.exitFullscreen()},[n]),_=(0,r.useCallback)(()=>{var e,t,r,o,l;return!(null==n?void 0:n.current)||(null==n?void 0:null===(e=n.current)||void 0===e?void 0:e.isDisposed_)?0:null===(l=n.current)||void 0===l?void 0:null===(o=l.tech())||void 0===o?void 0:null===(r=o.vhs)||void 0===r?void 0:null===(t=r.mediaSource)||void 0===t?void 0:t.duration},[n]),j=(0,r.useCallback)(e=>{var t,r;(null==n?void 0:n.current)&&(null==n||null===(t=n.current)||void 0===t||!t.isDisposed_)&&(null==n||null===(r=n.current)||void 0===r||r.currentTime(e))},[n]),S=(0,r.useCallback)(()=>{var e;return!(null==n?void 0:n.current)||(null==n?void 0:null===(e=n.current)||void 0===e?void 0:e.isDisposed_)?0:null==n?void 0:n.current.currentTime()},[n]),M=(0,r.useCallback)(()=>{var e,t;(null==n?void 0:n.current)&&(null==n||null===(e=n.current)||void 0===e||!e.isDisposed_)&&(null===(t=n.current)||void 0===t?void 0:t.paused())&&(n.current.play(),d(!1))},[n]),I=(0,r.useCallback)(()=>{var e,t;null==n||!n.current||null!=n&&null!==(e=n.current)&&void 0!==e&&e.isDisposed_||(null===(t=n.current)||void 0===t?void 0:t.paused())||(n.current.pause(),d(!0))},[]),E=(0,r.useCallback)(e=>{var t,r;(null==n?void 0:n.current)&&(null==n||null===(t=n.current)||void 0===t||!t.isDisposed_)&&((0===parseInt(e)||(null==n?void 0:null===(r=n.current)||void 0===r?void 0:r.muted()))&&Z(),h(e),v(e))},[n]),F=(0,r.useCallback)(e=>{var t;if(!(null==n?void 0:n.current)||(null==n?void 0:null===(t=n.current)||void 0===t?void 0:t.isDisposed_))return;let r=parseInt(n.current.currentTime())+e;r<0?j(0):r>_()?j(_()):j(r),M(),d(!1)},[n]),T=(0,r.useCallback)(e=>{j(e),M()},[]),A=(0,r.useCallback)(()=>{var e,t,r;if(!(null==n?void 0:n.current)||(null==n?void 0:null===(t=n.current)||void 0===t?void 0:null===(e=t.rooterCustoms)||void 0===e?void 0:e.isPlayingAd))return;let o=null==n?void 0:null===(r=n.current)||void 0===r?void 0:r.paused();d(!o),o?M():I()},[n]),Z=(0,r.useCallback)(()=>{var e;if(!(null==n?void 0:n.current)||(null==n?void 0:null===(e=n.current)||void 0===e?void 0:e.isDisposed_))return;let t=n.current.muted();t&&(v(null==a?void 0:a.current),n.current.volume(parseFloat((null==a?void 0:a.current)/100).toFixed(2))),n.current.muted(!t),s(!t)},[n]),P=(0,r.useCallback)(()=>{var e,t,r;let o=(0,l.ad)(navigator.userAgent);if(!(null==n?void 0:n.current)||(null==n?void 0:null===(e=n.current)||void 0===e?void 0:e.isDisposed_)||o||p.length)return;let i=(null===(r=n.current.tech())||void 0===r?void 0:null===(t=r.vhs)||void 0===t?void 0:t.representations())||[];i.sort((e,t)=>e.height<t.height?1:-1),u(i.map(e=>e.height))},[p]),N=(0,r.useCallback)(e=>{(null==e?void 0:e.length)&&(e.sort((e,t)=>e.height<t.height?-1:1),e.forEach(e=>{720===e.height?e.enabled(!0):e.enabled(!1)}))},[]),z=(0,r.useCallback)(e=>{var t,r,o,l,i;if(!(null==n?void 0:n.current)||(null==n?void 0:null===(t=n.current)||void 0===t?void 0:t.isDisposed_))return;let a=(null===(o=n.current.tech())||void 0===o?void 0:null===(r=o.vhs)||void 0===r?void 0:r.representations())||[],s={};
1if(a.forEach((e,t)=>{s[e.height]=t}),a&&a.length){if(null===(i=n.current)||void 0===i?void 0:null===(l=i.rooterCustoms)||void 0===l?void 0:l.restrictQuality)switch(e){case"auto":a.forEach(e=>{1080===e.height?e.enabled(!1):e.enabled(!0)});break;case 1080:N(a);break;default:a.forEach((t,n)=>{n===s[e]?t.enabled(!0):t.enabled(!1)})}else"auto"===e?a.forEach(e=>e.enabled(!0)):a.forEach((t,n)=>{n===s[e]?t.enabled(!0):t.enabled(!1)});m(e)}},[]),B=(0,r.useCallback)(e=>{var t;(null==n?void 0:n.current)&&(null==n||null===(t=n.current)||void 0===t||!t.isDisposed_)&&(n.current.playbackRate(e),f(e))},[n]);return(0,r.useMemo)(()=>({isReady:w,setRef:t,enterFullscreen:k,exitFullscreen:R,getDuration:_,getPosition:S,seekToPos:j,play:M,pause:I,toggleMute:Z,setQualityOptions:P,setQuality:z,setPlaybackSpeed:B,togglePlayback:A,onSeek:T,seekByNSeconds:F,onVolumeChange:E,duration:x,setDuration:b,currentTime:C,setCurrentTime:y}),[w,t,k,R,_,S,j,M,I,Z,P,z,B,A,T,F,E,x,b,C,y])}},19545:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eT}});var r=n(85893),o=n(5152),l=n.n(o),i=n(67294),a=n(44061),s=n(57128),d=n(50536),u=n(60752),c=n(42199),p=n(40670),m=n(82634),v=n(46216),h=n(63119),g=n(71301),f=n(49368),b=n(11163);let x=l()(()=>Promise.all([n.e(3824),n.e(4092)]).then(n.bind(n,54092)),{loadableGenerated:{webpack:()=>[54092]}}),y=e=>{let{showBtn:t,seconds:n,onClose:o,showClose:l}=e,{classes:i}=k(null,{name:"features/ads"});return t?l?(0,r.jsx)("div",{className:i.closeContainer,onClick:o,children:(0,r.jsx)("span",{className:i.closeText,children:"Close"})}):(0,r.jsx)("div",{className:i.closeContainer,children:(0,r.jsx)("span",{className:i.closeText,children:"Close in ".concat(n/1e3)})}):null},C=e=>{var t,n;let{config:o}=e,l=(0,s.Mp)(),{classes:a}=k(null,{name:"features/ads"}),d=(null==o?void 0:o.closeTime)*1e3,u=(null==o?void 0:o.repeatTime)*1e3,[c,p]=(0,i.useState)(!1),[m,v]=(0,i.useState)(),[h,b]=(0,i.useState)(!0),[C,w]=(0,i.useState)(!1),R=(0,g.Y)(()=>v(e=>e-1e3),1e3),{start:_}=(0,f.K)(()=>{w(!0)},d,{autoInvoke:!1}),{start:j}=(0,f.K)(()=>{b(!0),_(),R.start()},u);if((0,i.useEffect)(()=>{if(d)return _(),R.start(),v(d),R.stop},[d]),(0,i.useEffect)(()=>{C&&R.stop()},[C]),!(null==o?void 0:o.enabled))return null;let S=l?null==o?void 0:null===(t=o.slotId)||void 0===t?void 0:t.dark:null==o?void 0:null===(n=o.slotId)||void 0===n?void 0:n.light;return(0,r.jsx)("div",{className:a.container,id:"in-player",children:(0,r.jsxs)("div",{className:a.container2,children:[(0,r.jsx)(y,{onClose:()=>{v(d),w(!1),b(!1),j()},seconds:m,showBtn:h&&c,showClose:C}),h?(0,r.jsx)(x,{adRendered:()=>{p(!0)},id:"gpt-passback",index:"in-player",path:S,size:null==o?void 0:o.size}):null]})})};var w=()=>{let e=(0,s.nE)(),{LIVE_INSCREEN_WEB:t,VIDEO_INSCREEN_WEB:n}=(0,s.EN)(),o=(0,b.useRouter)(),l=(0,d.iJ)({router:o,page:"video"}),i=(0,d.iJ)({router:o,page:"stream"});return"mobile"===e?null:i?(0,r.jsx)(C,{config:t}):l?(0,r.jsx)(C,{config:n}):null};let k=(0,h.kc)(()=>({container:{width:"100%",position:"absolute",bottom:"75px",zIndex:9,display:"flex",justifyContent:"center"},container2:{display:"flex",justifyContent:"center",flexDirection:"column"},closeContainer:{width:"100%",textAlign:"right"}})),R={pro:{dynamicConfigModel:{midRollEnabled:!1,preRollEnabled:!1,postRollEnabled:!1,preRollCount:1,midRollCount:1,postRollCount:1,recordedStreamAdInsertionInterval:5,preRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_preroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_preroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],midRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_midroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_midroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],postRollUris:[]}},standard:{dynamicConfigModel:{midRollEnabled:!0,preRollEnabled:!0,postRollEnabled:!1,preRollCount:2,midRollCount:1,postRollCount:2,recordedStreamAdInsertionInterval:5,preRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_preroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_preroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],midRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_midroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/replay_midroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],postRollUris:[]}}},_={pro:{dynamicConfigModel:{midRollEnabled:!1,preRollEnabled:!1,postRollEnabled:!1,preRollCount:1,midRollCount:1,postRollCount:1,midRollConfig:[{min:0,max:3,count:1},{min:3,max:6,count:2},{min:6,max:10,count:3},{min:10,max:15,count:4}
1,{min:15,max:20,count:5},{min:20,max:26,count:6},{min:26,max:35,count:7},{min:35,max:42,count:8},{min:42,max:50,count:9},{min:50,max:63,count:10},{min:63,max:80,count:11},{min:80,max:95,count:12},{min:95,max:120,count:13},{min:120,max:150,count:14},{min:150,max:180,count:15},{min:180,max:220,count:16},{min:220,max:300,count:17},{min:300,max:500,count:18},{min:500,max:1e3,count:19},{min:1e3,max:1e4,count:20}],preRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_preroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_preroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],midRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_midroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_midroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],postRollUris:[]}},standard:{dynamicConfigModel:{midRollEnabled:!0,preRollEnabled:!0,postRollEnabled:!1,preRollCount:2,midRollCount:2,postRollCount:2,midRollConfig:[{min:0,max:3,count:1},{min:3,max:6,count:2},{min:6,max:10,count:3},{min:10,max:15,count:4},{min:15,max:20,count:5},{min:20,max:26,count:6},{min:26,max:35,count:7},{min:35,max:42,count:8},{min:42,max:50,count:9},{min:50,max:63,count:10},{min:63,max:80,count:11},{min:80,max:95,count:12},{min:95,max:120,count:13},{min:120,max:150,count:14},{min:150,max:180,count:15},{min:180,max:220,count:16},{min:220,max:300,count:17},{min:300,max:500,count:18},{min:500,max:1e3,count:19},{min:1e3,max:1e4,count:20}],preRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_preroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_preroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],midRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_midroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/video_midroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="],postRollUris:[]}}},j={pro:{dynamicConfigModel:{preRollEnabled:!1,preRollCount:1,preRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/live_preroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/live_preroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="]}},standard:{dynamicConfigModel:{preRollEnabled:!0,preRollCount:2,preRollUris:["https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/live_preroll_web&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=","https://pubads.g.doubleclick.net/gampad/live/ads?iu=/22991961619/live_preroll_mweb&description_url=http%3A%2F%2Fwww.rooter.gg%2F&tfcd=0&npa=0&sz=400x300%7C640x480&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator="]}}},S=(e,t)=>'<vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll">\n            <vmap:AdSource id="preroll-ad-'.concat(t,'" allowMultipleAds="false" followRedirects="true">\n               <vmap:AdTagURI templateType="vast3">\n                  <![CDATA[').concat(e,"]]>\n               </vmap:AdTagURI>\n            </vmap:AdSource>\n          </vmap:AdBreak>"),M=(e,t,n)=>'<vmap:AdBreak timeOffset="'.concat(function(e){let t=String(Math.floor(e/3600)).padStart(2,"0"),n=String(Math.floor(e%3600/60)).padStart(2,"0"),r=String(Math.floor(e%60)).padStart(2,"0"),o=String(Math.floor((e-Math.floor(e))*1e3)).padStart(3,"0");return"".concat(t,":").concat(n,":").concat(r,".").concat(o)}(t),'" breakType="linear" breakId="midroll-').concat(n,'">\n            <vmap:AdSource id="midroll-').concat(n,'-ad-1" allowMultipleAds="false" followRedirects="true">\n              <vmap:AdTagURI templateType="vast3">\n                <![CDATA[').concat(e,"]]>\n              </vmap:AdTagURI>\n            </vmap:AdSource>\n          </vmap:AdBreak>"),I=(e,t)=>'<vmap:AdBreak timeOffset="end" breakType="linear" breakId="postroll">\n            <vmap:AdSource id="postroll-ad-'.concat(t,'" allowMultipleAds="false" followRedirects="true">\n              <vmap:AdTagURI templateType="vast3">\n                <![CDATA[').concat(e,"]]>\n              </vmap:AdTagURI>\n            </vmap:AdSource>\n          </vmap:AdBreak>"),E=(e,t)=>{let n="",r=R[e?"pro":"standard"];if(r.dynamicConfigModel.preRollEnabled&&r.dynamicConfigModel.preRollUris.length)for(let e=0;e<r.dynamicConfigModel.preRollCount;e++)n=n.concat(S(r.dynamicConfigModel.preRollUris[0],e+1));if(r.dynamicConfigModel.midRollEnabled&&r.dynamicConfigModel.midRollUris.length){let e=t/60/r.dynamicConfigModel.recordedStreamAdInsertionInterval;for(let t=0;t<e;t++){let e=60*r.dynamicConfigModel.recordedStreamAdInsertionInterval*(t+1);n=n.concat(M(r.dynamicConfigModel.midRollUris[0],e,t+1))}}if(r.dynamicConfigModel.postRollEnabled&&r.dynamicConfigModel.postRollUris.length)for(let e=0;e<r.dynamicConfigModel.postRollCount;e++)n=n.concat(I(r.dynamicConfigModel.postRollUris[0],e+1));return n},F=(e,t)=>{let n="",r=_[e?"pro":"standard"];if(r.dynamicConfigModel.preRollEnabled&&r.dynamicConfigModel.preRollUris.length)for(let e=0;e<r.dynamicConfigModel.preRollCount;e++)n=n.concat(S(r.dynamicConfigModel.preRollUris[0],e+1));if(r.dynamicConfigModel.midRollEnabled&&r.dynamicConfigModel.midRollUris.length){let e;r.dynamicConfigModel.midRollConfig.forEach(n=>{t/60<=n.max&&t/60>n.min&&(e=n)});for(let o=0;o<e.count;o++){let l=t/(e.count+1)*(o+1);n=n.concat(M(r.dynamicConfigModel.midRollUris[0],l,o+1))}}if(r.dynamicConfigModel.postRollEnabled&&r.dynamicConfigModel.postRollUris.length)for(let e=0;e<r.dynamicConfigModel.postRollCount;e++)n=n.concat(I(r.dynamicConfigModel.postRollUris[0],e+1));return n},T=e=>{let t="",n=j[e?"pro":"standard"];if(n.dynamicConfigModel.preRollEnabled&&n.dynamicConfigModel.preRollUris.length)for(let e=0;e<n.dynamicConfigModel.preRollCount;e++)t=t.concat(S(n.dynamicConfigModel.preRollUris[0],e+1));return t};
1var A=(e,t,n)=>{let r="";return r="live"===n?T(t):"video"===n?F(t,e):"recorded"===n?E(t,e):"",'<?xml version="1.0" encoding="UTF-8"?>\n              <vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n                '.concat(r,"\n              </vmap:VMAP>")},Z=n(60108),P=n(17943),N=n(54574),z=n(25346),B=n(61075),D=n(33243),U=n(25895),L=n(94242),q=n(47805);let O=()=>{let[e,t]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{let e=()=>{t(window.innerWidth<=q.G)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,i.useMemo)(()=>({isMobileView:e}),[e])},V=()=>{let[e,t]=(0,i.useState)(!1),{isMobileView:n}=O(),r=(0,i.useRef)(null),o=(0,i.useCallback)(()=>{clearTimeout(r.current),r.current=null},[]),l=(0,i.useCallback)(()=>{o(),r.current=setTimeout(()=>{t(!1),r.current=null},3e3)},[o]);return(0,i.useEffect)(()=>{let e=()=>{r.current||(t(!0),l())};return n&&(e(),document.addEventListener("pointerdown",e)),()=>{document.removeEventListener("pointerdown",e)}},[o,n,l]),{isControlsOpen:e}};var W=n(10788),Q=n(92631),G=n(20776),J=n(9956),K=(0,i.memo)(()=>{let{toggleFullscreen:e}=(0,W.Z)(),t=(0,Q.xJ)(),n=(0,Q.ud)();return(0,r.jsx)(J.Z,{arrow:!0,disableLightMode:!0,placement:"top",title:n?"Exit Full screen (f)":"Full screen (f)",children:(0,r.jsx)("button",{"aria-disabled":t,className:"player-controls-btn",onPointerDown:e,children:n?(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"fullscreenExitIcon"}):(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"fullscreenEnterIcon"})})})}),Y=(0,i.memo)(()=>{let{togglePlayback:e}=(0,W.Z)(),t=(0,Q.xJ)(),n=(0,Q.Vm)();return(0,r.jsx)(J.Z,{arrow:!0,disableLightMode:!0,placement:"top",title:n?"Play (space)":"Pause (space)",children:(0,r.jsxs)("button",{"aria-disabled":t,className:"player-controls-btn play-pause-btn ".concat(n?"play-btn":"pause-btn"),onPointerDown:e,children:[(0,r.jsx)(u.Z,{condition:n,children:(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"videoPlayIcon"})}),(0,r.jsx)(u.Z,{condition:!n,children:(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"videoPauseIcon"})})]})})});let $=(0,i.forwardRef)((e,t)=>{let{settingsMenu:n,setOpenSettingsMenu:o,setOpenPlaybackSpeedMenu:l,setOpenQualityMenu:i}=e,{setQualityOptions:a}=(0,W.Z)(),s=(0,Q.xJ)();return(0,r.jsx)(J.Z,{arrow:!0,disableLightMode:!0,placement:"top",title:"Settings",children:(0,r.jsx)("button",{ref:t,"aria-disabled":s,className:"player-controls-btn",id:"player-control-settings",onPointerDown:()=>{a(),o(!n),l(!1),i(!1)},children:(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"settingsIcon"})})})});$.displayName=$;var H=(0,h.kc)(e=>{let{barHeight:t="3px",barBgColor:n="#ffffff40",filledBgColor:r="#fff"}=e;return{barContainer:{position:"relative",borderRadius:"1rem",marginBottom:"0.5rem"},baseBar:{position:"absolute",height:"3px",width:"100%",cursor:"pointer",zIndex:"10000","&:hover":{"& .filledBar1":{"&::after":{opacity:"1"}}}},filledBar:{height:t,backgroundColor:r,position:"absolute",borderRadius:"calc(".concat(t," * 2)"),zIndex:"1","&::after":{content:"''",height:"calc(".concat(t," * 5)"),width:"calc(".concat(t," * 5)"),borderRadius:"100%",background:r,display:"block",position:"absolute",bottom:"50%",transform:"translate(100%,50%)",right:"calc(".concat(t," * 2)"),opacity:"0",transition:"opacity 0.1s linear"}},rangeInput:{width:"100%",appearance:"none",background:n,border:"0px",outline:"0px",cursor:"pointer",boxSizing:"border-box",borderRadius:"calc(".concat(t," * 2)"),userSelect:"none",touchAction:"manipulation",display:"block",height:t,margin:"0px",padding:"0px",position:"absolute",zIndex:"5","&:hover":{"&::-webkit-slider-thumb":{opacity:"1"}},"&::-webkit-slider-thumb":{WebkitAppearance:"none",height:"calc(".concat(t," * 5)"),width:"calc(".concat(t," * 5)"),borderRadius:"100%",background:r,opacity:"0",transition:"opacity 0.1s linear"}},slider:{".mantine-Slider-bar":{background:"white",opacity:"1"},".mantine-Slider-track":{"&:before":{opacity:"0.38"}},"&:hover":{"& .mantine-Slider-thumb":{opacity:"1",height:"calc(".concat(t," * 5)"),width:"calc(".concat(t," * 5)"),transition:"opacity 0.1s linear",border:"none"}},"& .mantine-Slider-thumb":{opacity:"0",backgroundColor:"white",height:"calc(".concat(t," * 5)"),width:"calc(".concat(t," * 5)"),transition:"opacity 0.1s linear",border:"none","&:hover":{boxShadow:"none"},"&.Mui-active":{boxShadow:"none"}}}
1,disableTransition:{"& .MuiSlider-thumb":{transition:"none"},"& .MuiSlider-track":{transition:"none"}}}}),X=e=>{let{onChange:t,containerClass:n="",max:o=100,percent:l=0,stopAnimation:a,disableAmination:s,onMouseEnter:d,onMouseLeave:u}=e,[c,p]=(0,i.useState)(!1),{start:m,clear:v}=(0,f.K)(()=>p(!1),1),{classes:h}=H({},{name:"customSlider"});return(0,i.useEffect)(()=>(a&&(p(!0),m()),v),[a]),(0,r.jsx)(P.i,{className:"".concat(h.slider," ").concat(c||s?h.disableTransition:""," ").concat(n),label:null,onChange:e=>{t(e/100*o),p(!0),m()},onMouseEnter:d,onMouseLeave:u,showLabelOnHover:!1,value:l})},ee=e=>{let{onChange:t,value:n,containerClass:o,max:l,min:i,percent:a,step:s,onMouseEnter:d,onMouseLeave:u,stopAnimation:c,disableAmination:p}=e;return(0,r.jsx)(X,{containerClass:o,disableAmination:p,max:l,min:i,onChange:t,onMouseEnter:d,onMouseLeave:u,percent:a,step:s,stopAnimation:c,value:n})},et=(0,h.kc)((e,t)=>({containerClass:{width:(null==t?void 0:t.show)?"70px":"0px",transition:"width 0.2s linear",visibility:(null==t?void 0:t.show)?"visible":"hidden",marginRight:(null==t?void 0:t.show)?"1.5rem":"1rem",marginLeft:(null==t?void 0:t.show)?"0.5rem":"0"}})),en=(0,i.memo)(e=>{let{onChange:t,value:n,show:o,clearTimer:l,hideSlider:a}=e,[s,d]=(0,i.useState)(!1),{classes:u}=et({show:s||o});return(0,r.jsx)(ee,{disableAmination:!0,containerClass:u.containerClass,onChange:t,onMouseEnter:()=>{l(),d(!0)},onMouseLeave:()=>{d(!1),a()},percent:n,value:n})}),er=(0,i.memo)(()=>{let{toggleMute:e,onVolumeChange:t}=(0,W.Z)(),n=(0,Q.xJ)(),o=(0,Q.YV)(),l=(0,Q.t0)(),[a,s]=(0,i.useState)(!1),{start:d,clear:u}=(0,f.K)(()=>s(!1),1e3),c=(0,i.useCallback)(()=>{n||(e(),s(!0))},[n]);return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(J.Z,{arrow:!0,disableLightMode:!0,placement:"top",title:o?"Unmute (m)":"Mute (m)",children:(0,r.jsx)("button",{"aria-disabled":n,className:"player-controls-btn zIndexTen",onMouseEnter:()=>s(!0),onMouseLeave:()=>{d()},onPointerDown:c,children:(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:o?"volumeOffIcon":"volumeOnIcon"})})}),(0,r.jsx)(en,{clearTimer:u,hideSlider:()=>s(!1),onChange:e=>{t(e)},show:a,value:o?0:l})]})}),eo=n(52241),el=n(96721);let ei=e=>{let{currSpeed:t,setSpeed:n,speed:o,onClose:l}=e,i=t===o||1===o&&"normal"===t;return(0,r.jsx)(Z.v.Item,{"data-selected":i||void 0,onClick:()=>{n(o),l()},rightSection:i?(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"checkmarkGradient",size:"2.4rem"}):null,selected:i,children:1===o?"Normal":"".concat(o)},o)};var ea=e=>{let{setSpeed:t,currSpeed:n,onClose:o}=e;return(0,r.jsx)(el.x,{h:350,children:[.25,.5,.75,1,1.25,1.5,1.75,2].map(e=>(0,r.jsx)(ei,{currSpeed:n,onClose:o,setSpeed:t,speed:e},e))})},es=n(95429),ed=n(55259),eu=n(32895),ec=(0,h.kc)(e=>({container:{borderRadius:"10px",width:"300px",maxWidth:360,backgroundColor:e.other.darkMode?e.other.paletteNew.darkModeInclinedBlack2:e.other.paletteNew.secondaryWhite,color:e.other.colors.text.primary,position:"absolute",right:"65px",bottom:"60px",outline:"1px solid green"},caretIcon:{height:"3rem",width:"3rem"},proButton:{background:e.other.paletteNew.proGradient,padding:"0.25rem 1rem"}}));let ep=[1080],em=e=>{let{currQuality:t,setQuality:n,onClose:o,quality:l,isStreamPage:i}=e,s=(0,ed.a)(),d=(0,v.Ju)(),u=(0,a.p1)();return(0,r.jsx)(Z.v.Item,{"data-selected":t===l||void 0,onClick:()=>{if(ep.includes(l)&&!u&&i){d({function:()=>{n(l),o()}}),s();return}n(l),o()},rightSection:t===l?(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"checkmarkGradient",size:"2.4rem"}):null,selected:t===l,children:(0,r.jsxs)(es.k,{align:"center",gap:"1rem",children:["auto"===l?"Auto":"".concat(l,"p"),ep.includes(l)&&!u&&i?(0,r.jsx)(ev,{}):null]})},l)},ev=()=>{let{classes:e}=ec({},{name:"qualitySelector"});return(0,r.jsx)(eu.KM,{className:e.proButton,size:"small",startIcon:(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"proShineWhite",size:"1.2rem"}),title:"Pro"})};var eh=e=>{let{qualities:t,setQuality:n,currQuality:o,onClose:l,isStreamPage:i}=e;return(0,r.jsxs)(el.x,{children:[t.map(e=>e?(0,r.jsx)(em,{currQuality:o,isStreamPage:i,onClose:l,quality:e,setQuality:n},e):null),(0,r.jsx)(em,{currQuality:o,onClose:l,quality:"auto",setQuality:n})]})},eg=(0,h.kc)(()=>({containerClass:{width:"100%"}})),ef=e=>{let{duration:t,currentTime:n,onSeek:o,stopAnimation:l}=e,{classes:a}=eg(void 0,{name:"styles"}),[s,d]=(0,i.useState)(0),u=()=>{d(100/t*n)};return(0,i.useEffect)(()=>{n&&u()},[n]),(0,r.jsx)(ee,{containerClass:a.containerClass,max:t,min:"0",onChange:e=>{o(parseFloat(e))},percent:s,step:"0.00001",stopAnimation:l,value:n})},eb=n(37586);let ex=l()(()=>n.e(7829).then(n.bind(n,27829)),{loadableGenerated:{webpack:()=>[27829]}}),ey=l()(()=>n.e(7245).then(n.bind(n,77245)),{loadableGenerated:{webpack:()=>[77245]}}),eC=l()(()=>n.e(5654).then(n.bind(n,45654)),{loadableGenerated:{webpack:()=>[45654]}}),ew=l()(()=>n.e(8205).then(n.bind(n,78205)),{loadableGenerated:{webpack:()=>[78205]},ssr:!1}),ek=l()(()=>n.e(8220).then(n.bind(n,78220)),{loadableGenerated:{webpack:()=>[78220]},ssr:!1}),eR=e=>{let{backToSettings:t,title:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{onClick:t,style:{display:"flex",alignItems:"center",marginBottom:"5px",cursor:"pointer"},children:[(0,r.jsx)(B.Z,{sameInBothTheme:!0,name:"caret",size:"25px",style:{margin:"5px",transform:" scaleX(-1)"}}),(0,r.jsx)(D.Z,{size:"sm",title:n,weight:"500"})]}),(0,r.jsx)(Z.v.Divider,{})]})};var e_=e=>
1{let{noControls:t,isLive:n,liveViews:o,startedAt:l,isStreamer:a,seekFeature:c,customControls:p=()=>{},disableTheatreMode:m,disableControlSettings:v,isReel:h,disableFullScreen:g,duration:f,currentTime:x,setCurrentTime:y,page:C,fromVideoCard:w,fadeReelControls:k,handleCancelPlayNext:R,isControlsOpen:_,showControlsOnVideoEnd:j}=e,{toggleMute:S,setPlaybackSpeed:M,setPlaybackSpeedOnVideo:I,setQuality:E,onSeek:F,onSeekVideo:T}=(0,W.Z)(),A=(0,Q.ZH)(),{classes:D,theme:L,cx:q}=(0,eb.Z)({},{name:"videoPlayerControls"}),V=(0,Q.dk)(),J=(0,Q.YV)(),H=(0,Q.Vm)(),X=(0,Q.ud)(),ee=(0,Q.wM)(),et=(0,Q.ms)(),en=(0,Q.dB)(),{isMobileView:el}=O(),ei=(0,i.useRef)(0),[es,ed]=(0,i.useState)(!1),[eu,ec]=(0,i.useState)(!1),[ep,em]=(0,i.useState)(!1),[ev,eg]=(0,i.useState)(null),e_=(0,b.useRouter)(),eM=(0,d.iJ)({router:e_,page:"stream"}),eI=(0,d.iJ)({router:e_,page:"reels"}),eE=(0,d.iJ)({router:e_,page:"video"}),eF=(0,N.D)(ev);(0,i.useEffect)(()=>(ei.current>0&&eg(H),ei.current+=1,()=>{eg(null)}),[H]);let eT="studio"===C,eA=(0,i.useCallback)(e=>{n?F(e):T(e),y(e),R()},[n]),eZ=(0,i.useCallback)(e=>{n?M(e):I(e),em(!1)},[n]),eP=()=>{em(!1),ec(!1),ed(!0)},eN=()=>{ed(!1),em(!1),ec(!1)},ez=(0,s.nE)(),eB="desktop"===ez,eD="mobile"===ez;if(w)return p({fullscreen:X,toggleMute:S,isMute:J});if(t)return null;let eU=!eM&&!eE&&!eI;return h?(0,r.jsxs)(eo.Z,{mountOnEnter:!0,inProp:k,children:[(0,r.jsx)(u.Z,{condition:!el&&!eU,children:(0,r.jsx)(ew,{isLive:n})}),(0,r.jsx)(B.Z,{sameInBothTheme:!0,className:D.reelMuteIcon,name:J?"volumeOff":"volumeOn",onMouseDown:e=>{eD||e.stopPropagation()},onMouseUp:e=>{eD||(e.stopPropagation(),S())},onTouchEnd:e=>{eB||(e.stopPropagation(),S())},onTouchStart:e=>{eB||e.stopPropagation()}}),(0,r.jsxs)("div",{className:D.playPauseIconWrapper,children:[(0,r.jsx)(u.Z,{condition:null!==ev&&!0!==ev&&!0===eF,children:(0,r.jsx)(B.Z,{sameInBothTheme:!0,className:q(D.playIcon,D.icon),"data-show":!0,id:"pause-btn",name:"play-button"})}),(0,r.jsx)(B.Z,{sameInBothTheme:!0,className:q(D.pauseIcon,D.icon),"data-show":ev||void 0,id:"play-btn",name:"reelPauseIcon"})]}),(0,r.jsx)("div",{style:{position:"absolute",zIndex:99,left:"0",right:"0",bottom:"0",top:"unset",[U.AE.mobile]:{top:"calc(100dvh - 2px)"}},children:(0,r.jsx)(P.i,{max:f,onChange:eA,styles:{trackContainer:{height:"unset"},root:{width:"100%"},bar:{transition:"all 0.05s ease-in-out",borderRadius:eD?"0":x>=f?"0 0 2rem 2rem":"0 0 0 1rem",backgroundColor:L.other.paletteNew.darkModeWhite80},track:{height:"2px",":before":{borderRadius:eD?"0":"0 0 2rem 2rem",backgroundColor:L.other.paletteNew.darkModeWhite20}},thumb:{display:"none"}},value:x})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Z,{condition:void 0!==p,children:(0,r.jsx)(eo.Z,{mountOnEnter:!0,inProp:_||j,children:p({fullscreen:X})})}),(0,r.jsx)(u.Z,{condition:!el&&!eU,children:(0,r.jsx)(ew,{isLive:n})}),(0,r.jsxs)(eo.Z,{mountOnEnter:!0,className:"player-controls-container",inProp:H||_||j,children:[(0,r.jsx)(u.Z,{condition:n&&!eT&&!c,children:(0,r.jsx)(ey,{isLive:!(A<100),isMobileView:el,startedAt:l,timeSinceLive:(0,G.mr)(V),viewCount:o})}),(0,r.jsx)(u.Z,{condition:n&&c,children:(0,r.jsx)(eC,{isLive:n,liveViews:o,seekFeature:c,startedAt:l})}),(0,r.jsx)(u.Z,{condition:!n&&f,children:(0,r.jsx)(ef,{currentTime:x,duration:f,onSeek:eA,stopAnimation:H})}),(0,r.jsxs)("div",{className:"player-controls-wrapper",children:[(0,r.jsxs)("div",{className:"player-controls-btn-container flex alignItemsCenter",children:[(0,r.jsx)(Y,{}),(0,r.jsx)("div",{className:"flex alignItemsCenter",children:(0,r.jsx)(er,{})}),(0,r.jsx)(u.Z,{condition:eT&&n,children:(0,r.jsx)(eS,{startedAt:l})}),(0,r.jsx)(u.Z,{condition:!n,children:(0,r.jsx)(ej,{currTime:x,duration:f})})]}),(0,r.jsxs)("div",{className:"player-controls-btn-container",children:[(0,r.jsx)(u.Z,{condition:!m&&!a&&!X&&!el,children:(0,r.jsx)(ek,{})}),(0,r.jsx)(u.Z,{condition:!v&&!el,children:(0,r.jsxs)(Z.v,{closeOnClickOutside:!0,classNames:{dropdown:D.container,item:D.item,divider:D.divider},closeOnEscape:!0,closeOnItemClick:!1,onClose:eN,opened:es||ep||eu,position:"top-end",transitionProps:{duration:150,transition:"slide-up"},withinPortal:!1,zIndex:z.Z.player.settings,children:[(0,r.jsx)(Z.v.Target,{children:(0,r.jsx)($,{setOpenPlaybackSpeedMenu:em,setOpenQualityMenu:ec,setOpenSettingsMenu:ed,settingsMenu:es})}),(0,r.jsxs)(Z.v.Dropdown,{children:[ep?(0,r.jsx)(eR,{backToSettings:eP,title:"Playback Speed"}):eu?(0,r.jsx)(eR,{backToSettings:eP,title:"Stream Quality"}):null,el?null:ep?(0,r.jsx)(ea,{currSpeed:en,goBack:eP,onClose:eN,setSpeed:eZ}):eu?(null==ee?void 0:ee.length)>0?(0,r.jsx)(eh,{currQuality:et,goBack:eP,isStreamPage:eM,onClose:eN,qualities:ee,setQuality:e=>{E(e),ec(!1)}}):null:(0,r.jsx)(ex,{isLive:n,onClose:eN,onSelect:e=>{"quality"===e&&(em(!1),ec(!0)),"speed"===e&&(ec(!1),em(!0))},quality:et,speed:1===en?"Normal":en})]})]})}),(0,r.jsx)(u.Z,{condition:!g,children:(0,r.jsx)(K,{})})]})]})]})]})};let ej=e=>{let{duration:t,currTime:n}=e;return(0,r.jsx)("div",{className:"video-timer-container",children:"".concat(n?(0,G.lL)(n):"00:00"," / ").concat((0,G.lL)(t))})},eS=e=>{let{startedAt:t}=e,{liveTime:n}=(0,L.Z)({startedAt:t});return(0,r.jsx)("div",{className:"liveTimeContainer",children:(0,r.jsx)("span",{className:"liveTimeText",children:n})})};var eM=e=>{let{currentTime:t,customControls:n,disableControlSettings:o,disableFullScreen:l,disableTheatreMode:i,duration:a,fromVideoCard:s,handleCancelPlayNext:d,isControlsOpen:u,isLive:c,isReel:p,isStreamer:m,liveViews:v,noControl
1s:h,onClick:g,onMute:f,onReady:b,page:x,seekFeature:y,fadeReelControls:C,setCurrentTime:w,showControlsOnVideoEnd:k=!1,startedAt:R}=e;return(0,r.jsx)(e_,{currentTime:t,customControls:n,disableControlSettings:o,disableFullScreen:l,disableTheatreMode:i,duration:a,fadeReelControls:C,fromVideoCard:s,handleCancelPlayNext:d,handleVideoClick:()=>{},isControlsOpen:u,isLive:c,isReel:p,isStreamer:m,liveViews:v,noControls:h,onClick:g,onMute:f,onReady:b,page:x,seekFeature:y,setCurrentTime:w,showControlsOnVideoEnd:k,startedAt:R})},eI=n(36216),eE=n(43376);let eF=l()(()=>n.e(4549).then(n.bind(n,54549)),{loadableGenerated:{webpack:()=>[54549]}});var eT=e=>{let t;let{src:n,vodSrc:o,liveViews:l,startedAt:h,thumbnail:g,noControls:f,fadeReelControls:b,seekFeature:x,isStreamer:y,overridePlayerMute:C,muted:k=!1,aspectRatio:R,onPlaybackEnd:_,onMute:j,onReady:S,isReel:M,type:I,isLive:E,disableTheatreMode:F,disableControlSettings:T,customControls:Z,containerClass:P="",blockInternalClick:N=!1,page:z,disableFullScreen:B,fromVideoCard:D,onClick:U,remainingAdCount:L,playerCss:q,showControlsOnVideoEnd:G=!1,thumbnailType:J="xxhdpi",startTime:K=0,restrictQuality:Y,enableAds:$=!1,loop:H=!1,overrideAdTag:X,handleCancelPlayNext:ee=()=>{},style:et,streamTier:en,proDetails:er,isOwnStream:eo,readTime:el,sessionType:ei,adExtConfig:ea,streamerUserId:es}=e,ed=(0,Q.ii)(),eu=x&&E,ec="mobile"===(0,s.nE)(),ep=(0,Q.YV)(),em=(0,Q.lN)(),ev=(0,v.$F)(),eh=(0,v.XB)(),eg=(0,d.SC)(g,J),{togglePlayback:ef}=(0,W.Z)(),eb=(0,eI.Z)({startTime:K,streamSrc:n}),ex=(0,Q.Hy)(),ey=(0,Q.iP)(),eC=(0,Q.tG)(),ew=(0,a.p1)(),ek=(0,m.Dq)(),{isMobileView:eR}=O(),[e_,ej]=(0,i.useState)(!1),{isControlsOpen:eS}=V(),[eT,eA]=(0,i.useState)(!1),eZ=e=>{var t;let n=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.duration();eb.setDuration(n),K&&K<n&&(eb.setCurrentTime(K),e.current.currentTime(K))};(0,i.useEffect)(()=>{(null==ey?void 0:ey.current)&&ey.current.muted(k)},[C,k]);let eP=(0,i.useCallback)(()=>{ec||N||eT||ef()},[ef,ec,eT]),eN=(0,i.useCallback)(()=>{ej(!0),t&&clearTimeout(t),t=setTimeout(()=>{ej(!1)},2e3)},[ej]),ez=(0,i.useCallback)(()=>{ej(!1)},[ej]),eB=(0,i.useCallback)(()=>{"function"==typeof U&&U({currentTime:parseInt(eb.currentTime)})},[eb.currentTime]);return(0,r.jsxs)("div",{...eR?{}:{onMouseMove:eN,onMouseLeave:ez},className:P,id:"complete-video-player",onClick:eB,style:{...et,aspectRatio:"inherit",overflow:"hidden",borderRadius:"inherit",height:"100%",width:"100%",position:"relative"},children:[(0,r.jsx)(u.Z,{condition:$,children:(0,r.jsx)(w,{})}),(0,r.jsxs)("div",{onClick:eP,style:{height:"100%",width:"100%"},children:[(0,r.jsx)(eE.Z,{duplicatePlayback:ek,onAdLoad:e=>{var t,n;if(!(null===(n=window)||void 0===n?void 0:null===(t=n.google)||void 0===t?void 0:t.ima)||2089446011===es)return;let r={autoPlayAdBreaks:!1,adsResponse:X||A(el,ew,ei)};e.current.ima(r),e.current.on("adsready",function(){e.current.ima.setAdBreakReadyListener(function(){})}),e.current.on("adserror",()=>{}),e.current.on("adstart",()=>{eA(!0),ed(!1);let e=document.getElementById("video-js-player_ima-ad-container");e&&(e.style.left="0px")}),e.current.on("adend",()=>{eA(!1),e.current.play();let t=document.getElementById("video-js-player_ima-ad-container");t&&(t.style.left="-9999px")})},onDataLoaded:e=>{eZ(e)},onDestroy:()=>{ex(null),eC(),ed(!1)},onEnded:()=>{em(!0),_()},onPlaying:e=>{var t=e.current.ima;"function"!=typeof t&&t.playAdBreak()},onReady:e=>{ex(e),(null==en?void 0:en.toString())===p.$.MID_STREAM&&eh.opened||e.current.play()},options:{sources:[{src:n,type:"mp4"===I?"video/mp4":"application/x-mpegURL"}],muted:C?k:ep,loadingSpinner:!1,aspectRatio:R,loop:H},playerCss:q,poster:eg,restrictQuality:Y,src:n}),eu?(0,r.jsx)(eF,{aspectRatio:R,muted:k,restrictQuality:Y,src:o}):null]}),(0,r.jsxs)("div",{style:{visibility:eT?"hidden":"visible"},children:[(0,r.jsx)(u.Z,{condition:(null==er||!er.isProUser||(null==en?void 0:en.toString())!==p.$.MID_STREAM)&&E&&er,children:(0,r.jsx)(c.Z,{adExtConfig:ea,inProp:!((null==er?void 0:er.isProUser)?!(e_||eS):(null==en?void 0:en.toString())===p.$.MID_STREAM?L<1||!!eh.finished:void 0),proExpiring:null==er?void 0:er.proExpiring,showTimer:!eo,showWatchAd:function(){ev(e=>({...e,opened:!0}))},streamTier:null==en?void 0:en.toString(),timeLeftInSeconds:null==er?void 0:er.nonProRemainingTime})}),(0,r.jsx)(eM,{currentTime:eb.currentTime,customControls:Z,disableControlSettings:T,disableFullScreen:B,disableTheatreMode:F,duration:eb.duration,fadeReelControls:b,fromVideoCard:D,handleCancelPlayNext:ee,handleVideoClick:()=>{},isControlsOpen:e_||eS,isLive:E,isReel:M,isStreamer:y,liveViews:l,noControl
1s:f,onClick:U,onMute:j,onReady:S,page:z,seekFeature:x,setCurrentTime:eb.setCurrentTime,showControlsOnVideoEnd:G,startedAt:h})]})]})}},43376:function(e,t,n){"use strict";var r=n(85893),o=n(11163),l=n(67294),i=n(85215),a=n(44061),s=n(46216),d=n(92631);n(80686),n(12647);let u={preload:"auto",controls:!1,responsive:!0,suppressNotSupportedError:!0,errorDisplay:!1,html5:{vhs:{enableLowInitialPlaylist:!0,limitRenditionByPlayerDimensions:!0,useBandwidthFromLocalStorage:!0,bandwidth:1048576}}};t.Z=e=>{let{src:t,poster:n,onReady:c,duplicatePlayback:p=()=>{},onDataLoaded:m=()=>{},onPlaying:v=()=>{},onEnded:h=()=>{},onAdLoad:g=()=>{},onDestroy:f,options:b,playerCss:x,restrictQuality:y,isPlayingAd:C}=e,w=(0,o.useRouter)(),k=(0,l.useRef)(null),R=(0,s.XB)(),_=(0,l.useRef)(null),j=(0,d.xv)(),S=(0,d.ii)(),[M,I]=(0,l.useState)(!1),E=(0,d.lN)(),F=(0,a.p1)(),T="".concat(t,"-").concat(null==w?void 0:w.pathname),A=()=>{j(_.current.currentTime())},Z=()=>{E(_.current.paused()),_.current.removeClass("vjs-loading")},P=e=>{403===e.status&&F&&p(!0)};return(0,l.useEffect)(()=>{(null==_?void 0:_.current)&&(_.current.rooterCustoms.isPlayingAd=C)},[C,_]),(0,l.useEffect)(()=>{var e;R.finished&&(null===(e=_.current)||void 0===e||e.play())},[R.finished]),(0,l.useEffect)(()=>(i.Z.log.level("error"),_.current=(0,i.Z)(k.current,{...u,...b},()=>{E(_.current.paused()),c&&c(_),g(_)}),_.current.rooterCustoms={},_.current.one("loadeddata",()=>{var e,t,n,r;if(m(_),y){let e=(null===(r=_.current.tech())||void 0===r?void 0:null===(n=r.vhs)||void 0===n?void 0:n.representations())||[];if(!e||!e.length)return;e.forEach(e=>{1080===e.height?e.enabled(!1):e.enabled(!0)}),_.current.rooterCustoms.restrictQuality=!0}null===(t=_.current.tech())||void 0===t||null===(e=t.vhs)||void 0===e||e.xhr.onResponse(P)}),_.current.on("timeupdate",A),_.current.on("playing",()=>{M||(E(_.current.paused()),v(_),S(!0))}),_.current.on("waiting",()=>{I(!0),S(!1)}),_.current.on("canplaythrough",()=>{I(!1),S(!0)}),_.current.on("pause",()=>{S(!1)}),_.current.on("canplay",Z),_.current.on("ended",h),()=>{_.current&&!_.current.isDisposed_&&(f(),_.current.dispose(),_.current=null)}),[T]),(0,r.jsxs)("div",{"data-vjs-player":!0,style:{...x,borderRadius:"inherit"},children:[(0,r.jsx)("div",{className:"vjs-loading-spinner"}),(0,r.jsx)("video",{ref:k,playsInline:!0,className:"video-js vjs-big-play-centered",id:"video-js-player",poster:n,style:{borderRadius:"inherit"}})]},T)}},20776:function(e,t,n){"use strict";n.d(t,{Tt:function(){return a},lL:function(){return i},mr:function(){return l},z8:function(){return o}});var r=n(50536);let o=e=>{let t=e;return e>=1e6?t=parseFloat((e/1e6).toFixed(1))+"M":e>=1e3&&(t=parseFloat((e/1e3).toFixed(1))+"K"),t},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600);return t=t.toString().padStart(2,"0"),e>=600&&(n=n.toString().padStart(2,"0")),e>=36e3&&(r=r.toString().padStart(2,"0")),e>=3600?"".concat(r,":").concat(n,":").concat(t):"".concat(n,":").concat(t)},i=e=>{try{if(!e)return"00:00";if(e<3600)return new Date(1e3*e).toISOString().slice(14,19);return new Date(1e3*e).toISOString().slice(11,19)}catch(e){return""}},a=()=>!!(0,r.SU)()&&(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)},25893:function(){}}]);
2//# sourceMappingURL=8623-6087e242b0d4213d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.