"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5492],{8465:function(e,t,o){o.d(t,{B:function(){return d}});var r=o(2556),n=o(9458),a=o(3758),l=o(7104),i=o(7837),s=o(1163),u=o(7294);let d=()=>{var e;let t=(0,s.useRouter)(),o=t.query.params,[d,c="1",v="1"]=o,m=null===(e=t.pathname.split("/"))||void 0===e?void 0:e[1],h=()=>{f(b.map(e=>({...e,isSuccess:!0})))},{details:p}=(0,a.G)(),{setServers:f,setActiveServer:g,servers:b,activeServer:x,setLoadingServer:y}=(0,l.Z)();return(0,u.useEffect)(()=>{let e=localStorage.getItem(n.Fe.favorite_provider);if(!e){g(r.i[0].name);return}g((null==e?void 0:e.charAt(0))+(null==e?void 0:e.slice(1).toLowerCase())),h()},[t.pathname,c,v,o]),(0,i.a)({queryKey:["WatchMediaSources",m,null==p?void 0:p.titleEnglish,null==p?void 0:p.tmdbId,null==p?void 0:p.imdbId,null==p?void 0:p.titlePortuguese,null==p?void 0:p.titleSpanish,null==p?void 0:p.titleFrench,null==p?void 0:p.titleGerman,null==p?void 0:p.year,v,c,x],queryFn:async()=>{try{var e,t;let o={title:null==p?void 0:p.titleEnglish,extraData:{tmdbId:null==p?void 0:p.tmdbId,imdbId:null==p?void 0:p.imdbId,mediaType:m,titlePortuguese:null==p?void 0:p.titlePortuguese,titleSpanish:null==p?void 0:p.titleSpanish,titleFrench:null==p?void 0:p.titleFrench,titleGerman:null==p?void 0:p.titleGerman,year:null==p?void 0:p.year,seasonId:Number(c)||1,episodeId:Number(v)||1,epImdbId:null==p?void 0:null===(e=p.episodeInfo)||void 0===e?void 0:e.imdb_id,b35ebba4:null==p?void 0:p.b35ebba4}},r=n.Go;if(x){y(x);let e=b.find(e=>e.name===x);if(!e)throw Error("Not found sources!");try{let t=await (null==e?void 0:e.get(o));if(!t||0===t.sources.length)throw e.isSuccess=!1,Error("Not found sources!");return t}catch(n){f(b.map(t=>({...t,isSuccess:t.name!==e.name&&t.isSuccess})));let o=b.filter(t=>t.name!==e.name&&!0===t.isSuccess),r=null==o?void 0:null===(t=o[0])||void 0===t?void 0:t.name;r&&g(r)}}return r}catch(e){return console.log("error: ",null==e?void 0:e.message),n.Go}},staleTime:21e5,cacheTime:24e5})}},6076:function(e,t,o){o.d(t,{Z:function(){return u}});var r=o(5893),n=o(8089),a=o(9458),l=o(7294),i=o(4511),s=o(2679),u=(0,i.Pf)(e=>{let{fallbackSrc:t=a.aZ,...o}=e,[n,i]=(0,l.useState)(o.src);return(0,r.jsx)(s.LazyLoadImage,{title:o.alt||"",effect:"opacity",...o,src:n,onError:()=>{i(t)}})},{FallbackComponent:n.Z})},2900:function(e,t,o){o.d(t,{y:function(){return r}});let r={en:"titleEnglish",pt:"titlePortuguese",es:"titleSpanish",fr:"titleFrench",de:"titleGerman"}},7073:function(e,t,o){o.d(t,{VY:function(){return s},eF:function(){return u},uw:function(){return d}});var r=o(5893),n=o(7294),a=o(9214);let l=(0,o(4529).Ue)()(e=>({isMouseHover:!0,setIsMouseHover:t=>e({isMouseHover:t})}));var i=o(3085);let s=(0,a.kr)({updateHoverState:()=>{},isHoverEnabled:!0,handleClearTimeout:()=>{}});function u(e){let t=(0,i.B)(e=>e.paused),{isMouseHover:o,setIsMouseHover:a}=l(),u=(0,n.useRef)(null),d=(0,n.useCallback)(()=>{u.current&&clearTimeout(u.current),a(!0),u.current=setTimeout(()=>{a(!1)},3e3)},[u,a]),c=(0,n.useMemo)(()=>o||t,[o,t]),v=(0,n.useCallback)(()=>{u.current&&clearTimeout(null==u?void 0:u.current)},[]),m=(0,n.useMemo)(()=>({updateHoverState:d,isHoverEnabled:c,handleClearTimeout:v}),[v,c,d]);return(0,r.jsx)(s.Provider,{value:m,children:e.children})}function d(){return(0,a.Sz)(s,e=>e)}},8487:function(e,t,o){o.d(t,{q:function(){return u},C:function(){return d}});var r=o(5893),n=o(1163),a=o(7294),l=o(9214);let i={en:{servers:"Servers",episodes:"Episodes",play:"Play (k)",pause:"Pause (k)",mute:"Mute (m)",unmute:"Unmute (m)",quality:"Quality",audio:"Audio",uploadSubtitles:"Upload subtitles",screenshot:"Screenshot",subtitlesAndQuality:"Subtitles and quality",settings:"Settings",color:"Color",notFoundSubs:"Not found subtitles",notFoundCaption:"You havent selected caption",fullscreen:"Full Screen (f)",exitFullscreen:"Exit full screen (f)",playbackSpeed:"Playback Speed",settingsSubtitles:"Subtitle settings",off:"Off",notFoundGoHome:"Go Back",fontsize:"Font Size",backgroundOpacity:"Background Opacity",backgroundBlur:"Background Blur",reset:"Reset",findSubtitles:"Finds subs from internet",latency:"Latency",forward:"Forward 10 seconds",backward:"Backward 10 seconds",searchSubtitles:"Search Subtitles",qualityPicker:"Quality",notFoundHeading:"We couldnt find that",notFoundDesc:"We have searched through our providers and cannot find the media you are looking for! We do not host the media and have no control over what is available"},pt:{servers:"Servidores",episodes:"Epis\xf3dios",play:"Reproduzir (k)",audio:"\xc1udio",pause:"Pausar (k)",mute:"Mudo (m)",uploadSubtitles:"Upload de legenda",unmute:"Ativar som (m)",quality:"Qualidade",screenshot:"Captura de tela",subtitlesAndQuality:"Legendas e qualidade",settings:"Configura\xe7\xf5es",color:"Cor",notFoundSubs:"Legendas n\xe3o encontradas",notFoundCaption:"Voc\xea n\xe3o selecionou nenhuma legenda",fullscreen:"Tela cheia (f)",exitFullscreen:"Sair da tela cheia (f)",playbackSpeed:"Velocidade de reprodu\xe7\xe3o",settingsSubtitles:"Configura\xe7\xf5es de legendas",off:"Desligado",fontsize:"Tamanho da fonte",backgroundOpacity:"Opacidade do fundo",backgroundBlur:"Desfoque do fundo",reset:"Redefinir",latency:"Lat\xeancia",findSubtitles:"Procurar legenda online",forward:"Avan\xe7ar 10 segundos",backward:"Voltar 10 segundos",searchSubtitles:"Pesquisar legendas",qualityPicker:"Qualidade",notFoundGoHome:"Go Back",notFoundHeading:"We couldnt find that",notFoundDesc:"We have searched through our providers and cannot find the media you are looking for! We do not host the media and have no control over what is available"},es:{servers:"Servidores",episodes:"Episodios",play:"Reproducir (k)",pause:"Pausa (k)",mute:"Silenciar (m)",unmute:"Desactivar silencio (m)",quality:"Calidad",screenshot:"Captura de pantalla",subtitlesAndQuality:"Subt\xedtulos y calidad",settings:"Configuraci\xf3n",color:"Color",audio:"Audio",notFoundGoHome:"Go Back",uploadSubtitles:"Upload de subt\xedtulos",findSubtitles:"Buscar subt\xedtulos online",notFoundSubs:"No se encontraron subt\xedtulos",notFoundCaption:"No ha seleccionado ninguna leyenda",fullscreen:"Pantalla completa (f)",exitFullscreen:"Salir de pantalla completa (f)",playbackSpeed:"Velocidad de reproducci\xf3n",settingsSubtitles:"Configuraci\xf3n de subt\xedtulos",off:"Desactivado",fontsize:"Tama\xf1o de fuente",backgroundOpacity:"Opacidad del fondo",backgroundBlur:"Difuminado del fondo",reset:"Restablecer",latency:"Latencia",forward:"Avance r\xe1pido (10 segundos)",backward:"Retorno r\xe1pido (10 segundos)",searchSubtitles:"Buscar subt\xedtulos",qualityPicker:"Calidad",notFoundHeading:"We couldnt find that",notFoundDesc:"We have searched through our providers and cannot find the media you are looking for! We do not host the media and have no control over what is available"}},s=(0,l.kr)(i.en);function u(e){let t=(0,n.useRouter)(),o=(null==t?void 0:t.locale)||"en",l=(0,a.useMemo)(()=>i[o]||i.en,[o]);return(0,r.jsx)(s.Provider,{value:l,children:e.children})}function d(){return(0,l.Sz)(s,e=>e)}},3085:function(e,t,o){o.d(t,{B:function(){return r}});let r=(0,o(4529).Ue)()(e=>({paused:!1,onFullScreen:!1,setPaused:t=>{void 0===t?e(e=>({paused:!e.paused})):e({paused:t})},setOnFullScreen:t=>{void 0===t?e(e=>({onFullScreen:!e.onFullScreen})):e({onFullScreen:t})}}))},6933:function(e,t,o){o.d(t,{Z:function(){return L}});var r=o(5893),n=o(8398),a=o(8089),l=o(6076),i=e=>{let{...t}=e;return(0,r.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",className:"w-8 h-8",xmlns:"http://www.w3.org/2000/svg",...t,children:(0,r.jsx)("path",{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"})})},s=o(9458),u=o(7073),d=o(8487),c=o(3894),v=o(7104),m=o(484),h=o(7605),p=o(7294),f={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let g=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),b=((e,t)=>{let o=(0,p.forwardRef)((o,r)=>{let{color:n="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:s="",children:u,...d}=o;return(0,p.createElement)("svg",{ref:r,...f,width:a,height:a,stroke:n,strokeWidth:i?24*Number(l)/Number(a):l,className:["lucide","lucide-".concat(g(e)),s].join(" "),...d},[...t.map(e=>{let[t,o]=e;return(0,p.createElement)(t,o)}),...Array.isArray(u)?u:[u]])});return o.displayName="".concat(e),o})("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);var x=o(1163),y=o(4511),k=o(9214),S=o(3758);let w=e=>{var t;let o=(0,k.Sz)(u.VY,e=>e.handleClearTimeout),{activeServer:a,servers:d,setActiveServer:c}=(0,v.Z)(e=>e),f=(0,x.useRouter)(),[g,y="1",w="1"]=f.query.params,C=null===(t=f.pathname.split("/"))||void 0===t?void 0:t[1],{details:L}=(0,S.G)(),[P,B]=(0,p.useState)(localStorage.getItem(s.Fe.favorite_provider)),E=(e,t)=>{e.stopPropagation();let o=localStorage.getItem(s.Fe.favorite_provider);localStorage.setItem(s.Fe.favorite_provider,o===t?"":t),B(o===t?n.z.NONE:t)},I=e=>{var t;let o=["WatchMediaSources",C,null==L?void 0:L.titleEnglish,null==L?void 0:L.tmdbId,null==L?void 0:L.imdbId,null==L?void 0:L.titlePortuguese,null==L?void 0:L.titleSpanish,null==L?void 0:L.titleFrench,null==L?void 0:L.titleGerman,null==L?void 0:L.year,w,y,e.name],r=m.E.getQueryData(o);c(e.name),!r||(null===(t=r.sources)||void 0===t?void 0:t.length)||m.E.removeQueries({queryKey:o})};return(0,r.jsx)("div",{onMouseEnter:o,onTouchMove:o,children:(0,r.jsx)("ul",{className:"bg-[var(--background)] max-h-[450px] px-5 space-y-1 overflow-y-auto overflow-x-hidden md:max-h-[350px]",children:d.map(t=>(0,r.jsxs)("li",{onClick:()=>{I(t)},className:(0,h.Z)("group flex min-h-[48px] cursor-pointer items-center justify-between space-x-1 rounded -mx-2 p-2 text-sm lg:text-base font-medium transition-[background-color,color] duration-150 md:hover:bg-zinc-800 md:hover:text-[var(--primary-alternate)] border-zinc-700 text-[var(--text-primary)]",a===t.name&&"border"),children:[(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)("div",{className:(0,h.Z)("truncate flex items-center gap-x-3",a===t.name&&"text-primary font-bold"),children:[(0,r.jsx)(l.Z,{src:null==t?void 0:t.flag,alt:t.name,className:"w-6 h-6"}),(0,r.jsx)("span",{children:t.name}),(0,r.jsx)("span",{className:"text-sm font-normal text-zinc-500",children:t.note})]})}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("button",{onClick:e=>E(e,t.tag),children:P===t.tag?(0,r.jsx)(b,{width:20,height:20,fill:"var(--primary-alternate)",stroke:"var(--primary-alternate)"}):(0,r.jsx)(b,{width:20,height:20})}),(0,r.jsx)("div",{className:"relative h-5 w-5 min-w-[1rem]",children:t.isSuccess?e.isLoading||a!==t.name?e.isLoading&&a===t.name?(0,r.jsx)(j,{}):(0,r.jsx)("span",{className:"absolute inset-0 translate-x-2 text-primary opacity-0 transition-[opacity,transform] duration-100 group-hover:translate-x-0 md:group-hover:opacity-100",children:(0,r.jsx)(i,{className:"w-5 h-5 text-[var(--text-primary)]"})}):(0,r.jsx)(N,{}):(0,r.jsx)("span",{className:"absolute inset-0 text-red-600",children:(0,r.jsx)(F,{})})})]})]},t.name))})})};var C=(0,y.Pf)(e=>{let t=(0,d.C)();return(0,r.jsx)(c.Z,{className:"py-5 bg-[var(--background)] max-h-[540px] lg:min-w-[380px] border-muted border",reference:(0,r.jsx)("button",{className:"videasy-scale","data-tooltip":t.servers,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"cursor-pointer videasy-icon-lg videasy-scale",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 004.5 4.5H18a3.75 3.75 0 001.332-7.257 3 3 0 00-3.758-3.848 5.25 5.25 0 00-10.233 2.33A4.502 4.502 0 002.25 15z"})})}),children:(0,r.jsxs)("div",{className:"bg-[var(--background)] max-h-[520px]",children:[(0,r.jsx)("h4",{className:"px-5 pb-3 font-semibold md:text-xl",children:"Servers"}),(0,r.jsx)(w,{...e})]})})},{FallbackComponent:a.Z});let j=()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",className:"absolute inset-0 w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 66 66",children:[(0,r.jsx)("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeWidth:"10",className:"opacity-30"}),(0,r.jsx)("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"40, 134",strokeDashoffset:"325",strokeLinecap:"round",strokeWidth:"10",className:"opacity-70"})]}),F=()=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-4 h-4",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})}),N=()=>(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute inset-0 w-5 h-5 text-red-300",children:[(0,r.jsx)("path",{opacity:"0.4",d:"M12 0.75C5.78677 0.75 0.75 5.78677 0.75 12C0.75 18.2132 5.78677 23.25 12 23.25C18.2132 23.25 23.25 18.2132 23.25 12C23.25 5.78677 18.2132 0.75 12 0.75ZM17.4617 12.96L10.7117 17.085C10.5319 17.1949 10.3286 17.2502 10.125 17.2502C9.48314 17.2502 9 16.7253 9 16.1252V7.87519C9 7.28034 9.47798 6.75056 10.1253 6.75056C10.3289 6.75056 10.5321 6.80569 10.7117 6.91533L17.4617 11.0403C17.796 11.2447 18 11.6084 18 12.0002C18 12.392 17.796 12.7557 17.4617 12.96Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.125 17.2506C9.48319 17.2506 9 16.7257 9 16.1256V7.87555C9 7.28071 9.47803 6.75098 10.1253 6.75098C10.3289 6.75098 10.532 6.80605 10.7117 6.91574L17.4617 11.0407C17.796 11.2451 18 11.6087 18 12.0006C18 12.3924 17.796 12.756 17.4617 12.9604L10.7117 17.0854C10.5319 17.1953 10.3286 17.2506 10.125 17.2506Z",fill:"currentColor"})]});var L=C},7104:function(e,t,o){var r=o(2556);let n=(0,o(4529).Ue)(e=>({activeServer:null,loadingServer:null,servers:r.i.map(e=>({...e,isSuccess:!0})),setActiveServer:t=>e({activeServer:t}),setLoadingServer:t=>e({loadingServer:t}),setServers:t=>e({servers:t})}));t.Z=n}}]);