(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5640],{64447:function(e,t,o){"use strict";o.d(t,{Z:function(){return b}});var l=o(85893),n=o(67294),i=o(34221),a=o(9041),s=o.n(a),r=o(67992),c=o(64712),d=o(88755),u=o.n(d),m=o(77238),p=o.n(m),v=o(41154),h=o.n(v),f=o(93041),g=o(85437);function y(e){let{url:t,getInstance:o,format:i,...a}=e,s="https://m3u8.wafflehacker.io/m3u8-proxy?url=",r=(0,n.useRef)(),[d,m]=(0,n.useState)(!1),[v,y]=(0,n.useState)(!0),[_,b]=(0,n.useState)(!0),[w,x]=(0,n.useState)(!0),C=(0,n.useRef)(1);function k(e){if(e.current>0){c.Am.info("Video Load Failed. Changing Proxy"),m(!d);let t=(0,g.G)();(0,g.I)({values:{...t,proxyModeStream:d?"noProxy":"m3u8Proxy"}}),e.current=0}else c.Am.error("Video Load Error. Try other servers")}function L(e,t,o){if(f.ZP.isSupported()){o.hls&&o.hls.destroy();let n=new f.ZP({autoStartLoad:!0,startFragPrefetch:!0,maxBufferLength:600,maxMaxBufferLength:1800,maxBufferSize:5e8,appendErrorMaxRetry:20,fragLoadPolicy:{default:{maxTimeToFirstByteMs:5e3,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:1e3,maxRetryDelayMs:5e3},errorRetry:{maxNumRetry:10,retryDelayMs:1e3,maxRetryDelayMs:5e3}}},highBufferWatchdogPeriod:60,lowLatencyMode:!1});var l=0;n.on(f.ZP.Events.ERROR,function(e,t){if(t.fatal)switch(console.log(t),t.type){case f.ZP.ErrorTypes.MEDIA_ERROR:"fragParsingError"==t.details&&(l>2?(o.notice.show="Invalid Chunk Data",k(C)):(console.log("fatal media error encountered, try to recover "+l),l+=1,n.recoverMediaError()));break;case f.ZP.ErrorTypes.NETWORK_ERROR:o.notice.show=t.details,k(C);break;default:console.log(t),o.notice.show=t.details,k(C)}else l=0}),n.loadSource(t),n.attachMedia(e),o.hls=n,o.on("destroy",()=>n.destroy())}else e.canPlayType("application/vnd.apple.mpegurl")?e.src=t:o.notice.show="Unsupported playback format: m3u8"}return(0,n.useEffect)(()=>{C.current=1},[t]),(0,n.useEffect)(()=>{let e=(0,g.G)();m((null==e?void 0:e.proxyModeStream)=="m3u8Proxy")},[]),(0,n.useEffect)(()=>{if(!r.current)return;let e=(0,g.G)();u().MOBILE_CLICK_PLAY=!0;let l=new(u())({url:d?s+encodeURIComponent(t):t,container:r.current,setting:!0,fullscreen:!0,autoOrientation:!0,flip:!0,pip:!0,playbackRate:!0,fastForward:!0,lock:!0,aspectRatio:!0,type:"hls"===i?"m3u8":"mp4",airplay:!0,mutex:!0,miniProgressBar:(null==e?void 0:e.miniProgressbar)==="true",playsInline:!0,autoplay:!0,autoPlayback:!0,hotkey:!0,screenshot:!0,customType:"hls"===i?{m3u8:L}:{},layers:[{name:"custom-controls",html:'\n
\n
\n
\n
\n
\n '}],icons:{state:""},settings:[{html:"Proxy",tooltip:d?"on":"off",switch:d,icon:'
',onSwitch:function(e){e.tooltip=e.switch?"on":"off",m(!d);let t=(0,g.G)();return(0,g.I)({values:{...t,proxyModeStream:d?"noProxy":"m3u8Proxy"}}),!d}},{html:"Audio Boost",tooltip:"1x",icon:'
',range:[1,1,6,.5],onChange:function(e,t,o){var n;console.info(e,t,o);let i=(null==e?void 0:null===(n=e.range)||void 0===n?void 0:n[0])||(null==e?void 0:e.range);return l.audioContext||(l.audioContext=new(window.AudioContext||window.webkitAudioContext),l.sourceNode=l.audioContext.createMediaElementSource(l.video),l.gainNode=l.audioContext.createGain(),l.sourceNode.connect(l.gainNode),l.gainNode.connect(l.audioContext.destination)),l.gainNode.gain.value=i,l.notice.show="Audio: ".concat(i,"x"),i+"x"}},{html:"Watch Party",width:250,height:500,icon:'
',selector:[{html:"watchparty.me",url:"https://www.watchparty.me/create?video="+t}],onSelect:function(e){let o="https://www.watchparty.me/create?video=".concat(d?encodeURIComponent(s+encodeURIComponent(t)):encodeURIComponent(t)),l=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),n=document.createElement("a");n.href=o,n.target="_blank",n.dispatchEvent(l)}},{html:"Download",width:250,height:500,icon:'
',selector:"hls"===i?[{html:"HLSForge (Recommended)",url:t,opt:1},{html:"Download HLS (mediatools)",url:t,opt:2},{html:"Download HLS (thetuhin)",url:t,opt:3}]:[{html:"Download mp4",url:t,opt:4}],onSelect:function(e){var o,l,n,i;if(1===e.opt){let e="https://hlsforge.com/?url=".concat(d?encodeURIComponent(s+encodeURIComponent(t)):encodeURIComponent(t)),o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),l=document.createElement("a");l.href=e,l.target="_blank",l.dispatchEvent(o)}if(2===e.opt){let e="https://mediatools.cc/hlsDownloader?query=".concat(d?encodeURIComponent(s+encodeURIComponent(t)):encodeURIComponent(t)),o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),l=document.createElement("a");l.href=e,l.target="_blank",l.dispatchEvent(o)}if(3===e.opt){null===(l=navigator)||void 0===l||null===(o=l.clipboard)||void 0===o||o.writeText(d?s+encodeURIComponent(t):encodeURIComponent(t));let e="https://hlsdownloader.thetuhin.com/?text=".concat(d?encodeURIComponent(s+encodeURIComponent(t)):encodeURIComponent(t)),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),i=document.createElement("a");i.href=e,i.target="_blank",i.dispatchEvent(n)}if(4===e.opt){null===(i=navigator)||void 0===i||null===(n=i.clipboard)||void 0===n||n.writeText(t);let e="".concat(t),o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}),l=document.createElement("a");l.href=e,l.target="_blank",l.dispatchEvent(o)}}}],plugins:"hls"===i?[p()({quality:{setting:!0,getName:e=>e.height+"P",title:"Quality",auto:"Auto"},audio:{setting:!0,getName:e=>e.name,title:"Language",auto:"Auto"}}),h()({sdk:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",mimeType:"application/x-mpegURL"})]:[h()({sdk:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1",mimeType:"video/mp4"})]});o&&"function"==typeof o&&o(l);let n=document.getElementById("custom-play-pause");null==n||n.addEventListener("click",()=>{l.playing?l.pause():l.play()}),l.on("play",()=>{y(!1)}),l.on("pause",()=>{y(!0)}),l.on("loading",e=>{console.log("loading",e),b(e)}),l.on("video:playing",()=>{y(!1)}),l.on("control",e=>{e?x(!0):x(!1)});let a=document.getElementById("custom-backward");null==a||a.addEventListener("click",()=>{l.backward=10,a.style.scale="1.5",a.style.opacity=".5",setTimeout(()=>{a.style.scale="unset",a.style.opacity="unset"},300)});let c=document.getElementById("custom-forward");return null==c||c.addEventListener("click",()=>{l.forward=10,c.style.scale="1.5",c.style.opacity=".5",setTimeout(()=>{c.style.scale="unset",c.style.opacity="unset"},300)}),l.on("ready",()=>{l.notice.show="Video Ready To Play"}),l.on("error",(e,t)=>{l.notice.show="Video Load Error",console.info(e,t)}),l.on("video:error",(e,t)=>{l.notice.show="Video Load Error",k(C),console.info(e,t)}),()=>{l&&l.destroy&&l.destroy()}},[t,d]),(0,n.useEffect)(()=>{let e=document.getElementById("custom-controls");e&&(w?e.style.display="flex":e.style.display="none")},[w]),(0,n.useEffect)(()=>{let e=document.getElementById("play-icon");v?e.src="/images/player/play.svg":e.src="/images/player/pause.svg",e.style.scale="1.5",e.style.opacity=".5",setTimeout(()=>{e.style.scale="unset",e.style.opacity="unset"},300)},[t,d,v]),(0,n.useEffect)(()=>{let e=document.getElementById("play-icon");_?e.style.display="none":e.style.display="block"},[t,d,_]),(0,l.jsx)("div",{ref:r,...a})}function _(e){var t,o;return null==e?void 0:null===(o=e.split("-"))||void 0===o?void 0:null===(t=o.map(e=>e.charAt(0).toUpperCase()+e.slice(1)))||void 0===t?void 0:t.join(" ")}var b=e=>{var t;let{selectedSources:o,type:a}=e;console.log({selectedSources:o});let[d,u]=(0,n.useState)([]),[m,p]=(0,n.useState)(),[v,h]=(0,n.useState)(!0),[f,b]=(0,n.useState)("dark");return(0,n.useEffect)(()=>{if(h(!0),"nonPublicIPTV"===a||"liveSports"===a){let e=[{embedUrl:"//dlhd.sx/embed/stream-".concat(null==o?void 0:o.id,".php"),source:"Alpha",name:null==o?void 0:o.title},{embedUrl:"//d.daddylivehd.sx/embed/stream-".concat(null==o?void 0:o.id,".php"),source:"Bravo",name:null==o?void 0:o.title},{embedUrl:"//en.247stream.one/?play=".concat(null==o?void 0:o.id),source:"Charlie",name:null==o?void 0:o.title}];u(e),p(e[0])}if("publicIPTV"===a){var e;let t=[{...o,source:null==o?void 0:o.name,name:null==o?void 0:null===(e=o.languages)||void 0===e?void 0:e.map(e=>e.toUpperCase()).join(", ")}];u(t),p(t[0])}h(!1),(null==o?void 0:o.id)&&(0,r.Nm)({type:"iptv",id:null==o?void 0:o.id}),c.Am.info((0,l.jsxs)("div",{children:["If the media doesn't load, use"," ",(0,l.jsxs)("a",{target:"_blank",href:"https://uvpn.me/downloads/",children:["VPN"," "]})," ","or"," ",(0,l.jsxs)("a",{target:"_blank",href:"https://one.one.one.one/",children:["CloudFlare WARP"," "]})]}));let t=(0,g.G)(),n=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;(null==t?void 0:t.mode)!==void 0&&((null==t?void 0:t.mode)=="light"||(null==t?void 0:t.mode)=="dark"?b(null==t?void 0:t.mode):n?b("dark"):b("light"))},[]),(0,n.useEffect)(()=>{if("liveSports"===a){let o="cid0020000396880828811",l=document.getElementById("LiveSportsChat"),n=document.getElementById(o);if(n){var e,t;null==l||l.removeChild(n),null===(t=document)||void 0===t||null===(e=t.body)||void 0===e||e.removeChild(n)}let i=document.createElement("script");return i.id=o,i.dataset.cfasync="false",i.async=!0,i.src="//st.chatango.com/js/gz/emb.js",i.style.width="250px",i.style.height="400px",i.style.inset="auto 16px 16px auto",i.style.right="16px",i.style.bottom="16px",i.textContent=JSON.stringify({handle:"rivelivesports",arch:"js",styles:{a:"light"===f?"f4f7fe":"1b1919",b:100,c:"light"===f?"52525b":"a4b3c9",d:"light"===f?"52525b":"a4b3c9",e:"light"===f?"eeebeb":"312f2f",g:"light"===f?"000000":"ffffff",j:"light"===f?"000000":"ffffff",i:"light"===f?"64748b":"576b87",l:"light"===f?"64748b":"576b87",k:"light"===f?"000000":"ffffff",h:"light"===f?"eeebeb":"312f2f",m:"light"===f?"f4f7fe":"1b1919",p:"10",q:"light"===f?"64748b":"576b87",sbc:"light"===f?"000000":"ffffff",r:100,cv:1,cvfnt:"'Bricolage Grotesque','Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif, sans-serif",cvbg:"light"===f?"f4f7fe":"1b1919",cvfg:"light"===f?"000000":"ffffff",cvw:200,cvh:30,cnrs:"0.62",ticker:1,fwtickm:1}}),null==l||l.appendChild(i),()=>{null==l||l.removeChild(i);let e=document.querySelector("iframe");if(e){var t,o;null===(o=document)||void 0===o||null===(t=o.body)||void 0===t||t.removeChild(e)}}}},[f,a]),(0,n.useEffect)(()=>{if("liveSports"===a){let e=document.createElement("script");return e.src="//adbpage.com/adblock?v=3&format=js",e.async=!0,e.onload=()=>{"undefined"!=typeof aclib?"rivestream.net"===window.location.hostname?aclib.runPop({zoneId:"9582638"}):"rivestream.live"===window.location.hostname?aclib.runPop({zoneId:"8723078"}):"rivestream.pages.dev"===window.location.hostname?aclib.runPop({zoneId:"8723158"}):aclib.runPop({zoneId:"9596958"}):console.error("aclib is not defined after script load")},document.body.appendChild(e),()=>{document.body.removeChild(e)}}},[o,a]),(0,l.jsx)(i.E.div,{initial:{scale:0},animate:{scale:1},exit:{scale:0},className:s().settingsPopoverCard,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:(null==o?void 0:o.length)===0?(0,l.jsx)("p",{children:"No Streams Found"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:s().trailerIframe,children:["publicIPTV"!==a&&(null==d?void 0:d.length)>0&&!v&&(0,l.jsx)("iframe",{width:"560",height:"315",src:null==m?void 0:m.embedUrl,allow:"autoplay; clipboard-write; encrypted-media; gyroscope;",allowFullScreen:!0,className:s().iframe}),"liveSports"===a&&(0,l.jsx)("div",{className:s().settingsPopoverChat,id:"LiveSportsChat"}),"publicIPTV"===a&&(null==d?void 0:d.length)>0&&!v&&(0,l.jsx)(y,{url:null==m?void 0:m.streamUrl,format:(null==m?void 0:null===(t=m.streamUrl)||void 0===t?void 0:t.includes(".m3u8"))?"hls":"mp4",className:s().iframe}),(null==d?void 0:d.length)==0&&!v&&(0,l.jsx)("div",{className:s().iframe,children:"No Streams Found"}),v&&(0,l.jsx)("div",{className:"skeleton ".concat(s().iframe),children:"Loading..."})]}),(0,l.jsxs)("div",{className:s().trailerList,children:[null==d?void 0:d.map(e=>(0,l.jsx)("div",{className:"".concat(s().listItem," ").concat((null==m?void 0:m.embedUrl)===(null==e?void 0:e.embedUrl)&&s().listItemActive),onClick:()=>p(e),"data-tooltip-id":"tooltip","data-tooltip-html":"".concat(_(null==e?void 0:e.source)," | ").concat(null==e?void 0:e.name),children:(0,l.jsxs)("h2",{children:[_(null==e?void 0:e.source)," | ",null==e?void 0:e.name]})})),(null==d?void 0:d.length)===0&&!v&&(0,l.jsx)("div",{className:"".concat(s().listItem," ").concat(s().listItemActive),"data-tooltip-id":"tooltip","data-tooltip-html":"No Streams Found | check back later",children:(0,l.jsx)("h2",{children:"No Steams"})}),(null==d?void 0:d.length)===0&&v&&(0,l.jsx)("div",{className:"".concat(s().listItem),"data-tooltip-id":"tooltip","data-tooltip-html":"No Streams Found | check back later",children:(0,l.jsx)("h2",{children:"Loading..."})})]})]})})}},23226:function(e){e.exports={MovieCardSmall:"style_MovieCardSmall__ktpyl",img:"style_img__mHjtU",imgInside:"style_imgInside__pMRMZ",sportsList:"style_sportsList__k9F0b",liveTag:"style_liveTag__OC3A7",fav:"style_fav__dkjC1",success:"style_success__MMYyL",publicChannelCard:"style_publicChannelCard__izRsw",selectedCard:"style_selectedCard__ObGP7"}},9041:function(e){e.exports={settingsPopoverCard:"style_settingsPopoverCard__cpUmg",trailerList:"style_trailerList__0J4bJ",listItem:"style_listItem__ds_x4",listItemActive:"style_listItemActive__eaC1k",trailerIframe:"style_trailerIframe__34siE",iframe:"style_iframe___oGX_",settingsPopoverChat:"style_settingsPopoverChat__Sp6m1",torrentPopoverCard:"style_torrentPopoverCard__aLv2u",torrentPopoverHeading:"style_torrentPopoverHeading__jfeJn",torrentPopoverCardGroup:"style_torrentPopoverCardGroup__r4LOz",sourceElement:"style_sourceElement__wbK_r",highlighted:"style_highlighted__i6JSf",hideMobile:"style_hideMobile__Zb34v"}},69198:function(e){e.exports={HomeListAll:"Livesports_HomeListAll___ddC_",category:"Livesports_category__gR9_h",btn:"Livesports_btn__tEQVu",activeBtn:"Livesports_activeBtn__b8jxK",HomeListSection:"Livesports_HomeListSection__I7Gtk",loading:"Livesports_loading__7_vqc",HomeListSectionSearchResult:"Livesports_HomeListSectionSearchResult__T5prP",recommendation:"Livesports_recommendation__W_Yia",notFound:"Livesports_notFound___qzm1",aiHeader:"Livesports_aiHeader__YBQUM",InputWrapper:"Livesports_InputWrapper__o1tGW",searchInput:"Livesports_searchInput__MnGju",searchHeader:"Livesports_searchHeader__wnvJA",serachQuery:"Livesports_serachQuery__85UrT",inputShortcut:"Livesports_inputShortcut__kUolt",settingsPopover:"Livesports_settingsPopover___cAtM",settingsPopoverCard:"Livesports_settingsPopoverCard__N2hgt",trailerPopoverActive:"Livesports_trailerPopoverActive__55oUs",searchWithTitle:"Livesports_searchWithTitle__l6J1o",inactive:"Livesports_inactive__wWRpU",active:"Livesports_active__uoupM",checkboxDiv:"Livesports_checkboxDiv__Vl79o",selects:"Livesports_selects__DntxO"}}}]);