"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of __getOwnPropNames(t))__hasOwnProp.call(e,o)||o===r||__defProp(e,o,{get:()=>t[o],enumerable:!(n=__getOwnPropDesc(t,o))||n.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta,scrapeEpisodePage:()=>scrapeEpisodePage});var headers={Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8","Cache-Control":"no-store","Accept-Language":"en-US,en;q=0.9",DNT:"1","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"},getMeta=__name(function(e){return __async(this,arguments,function*({link:e,providerContext:t}){const{axios:r,cheerio:n}=t;return r.get(e,{headers:headers}).then(e=>{var t;const r=n.load(e.data),o=r(".entry-content,.post-inner"),i=r("h1.entry-title").text().trim()||r("h2.entry-title").text().trim()||"",a=null==(t=o.html())?void 0:t.match(/tt\d+/),s=a?a[0]:"",p=o.find("h3:contains('SYNOPSIS'), h3:contains('synopsis')").next("p").text().trim()||"";let c=o.find("img").first().attr("src")||"";c.startsWith("//")&&(c="https:"+c);const l=/Season \d+/i.test(o.text())?"series":"movie",d=[];return"series"===l?o.find("h2 a").each((e,t)=>{var n;const o=r(t),i=null==(n=o.attr("href"))?void 0:n.trim(),a=o.text().trim();i&&a.includes("Single Episode")&&d.push({title:a,episodesLink:i,directLinks:[]})}):o.find("a[href]").each((e,t)=>{var n;const o=r(t),i=(null==(n=o.attr("href"))?void 0:n.trim())||"";if(!i)return;const a=o.text().trim()||"Download";d.push({title:a,directLinks:[{title:a,link:i,type:"movie"}],episodesLink:""})}),{title:i,synopsis:p,image:c,imdbId:s,type:l,linkList:d}}).catch(e=>({title:"",synopsis:"",image:"",imdbId:"",type:"movie",linkList:[]}))})},"getMeta"),scrapeEpisodePage=__name(function({link:e,providerContext:t}){const{axios:r,cheerio:n}=t,o=[];return r.get(e,{headers:headers}).then(e=>{const t=n.load(e.data);return t(".entry-content,.post-inner").find("h3 a").each((e,r)=>{var n;const i=t(r),a=null==(n=i.attr("href"))?void 0:n.trim(),s=i.text().trim()||"Download";a&&o.push({title:s,link:a,type:"series"})}),o}).catch(e=>o)},"scrapeEpisodePage");exports.getMeta=getMeta,exports.scrapeEpisodePage=scrapeEpisodePage;