"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(e,r)=>__defProp(e,"name",{value:r,configurable:!0}),__export=(e,r)=>{for(var t in r)__defProp(e,t,{get:r[t],enumerable:!0})},__copyProps=(e,r,t,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let o of __getOwnPropNames(r))__hasOwnProp.call(e,o)||o===t||__defProp(e,o,{get:()=>r[o],enumerable:!(n=__getOwnPropDesc(r,o))||n.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,r,t)=>new Promise((n,o)=>{var l=e=>{try{s(t.next(e))}catch(e){o(e)}},i=e=>{try{s(t.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(l,i);s((t=t.apply(e,r)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta});var getMeta=__name(function(e){return __async(this,arguments,function*({link:e}){var r,t;try{const n=JSON.parse(e),o=(null==n?void 0:n.kn)||(null==n?void 0:n.mn),l=(null==n?void 0:n.IH)||(null==n?void 0:n.IV),i=null==n?void 0:n.gn.split(",").slice(0,3).map(e=>e.trim()),s="webSeries"===(null==n?void 0:n.cg)?"series":"movie",p=[];if("webSeries"===(null==n?void 0:n.cg))null==(r=["1","2","3","4"])||r.forEach(e=>{var r;const t=[];"object"==typeof(null==n?void 0:n["eServer"+e])&&(null==(r=null==Object?void 0:Object.keys(null==n?void 0:n["eServer"+e]))?void 0:r.length)>0&&(Object.keys(null==n?void 0:n["eServer"+e]).forEach(r=>{t.push({title:"Episode "+r,link:JSON.stringify({url:null==n?void 0:n["eServer"+e][r],server:"Server "+e})})}),p.push({title:(null==n?void 0:n.pn)+" (Server "+e+")",directLinks:t}))});else{const e=[];null==(t=["1","2","3","4"])||t.forEach(r=>{(null==n?void 0:n["s"+r])&&e.push({title:"Server "+r+" (HD)",link:JSON.stringify({url:null==n?void 0:n.s1,server:"Server "+r})}),(null==n?void 0:n["4s"+r])&&e.push({title:"Server "+r+" (480p)",link:JSON.stringify({url:null==n?void 0:n["4s"+r],server:"Server "+r})})}),p.push({title:null==n?void 0:n.pn,directLinks:e})}return{title:o,image:l,imdbId:"",synopsis:"",type:s,linkList:p,tags:i}}catch(e){return{title:"",image:"",imdbId:"",synopsis:"",type:"movie",linkList:[],tags:[]}}})},"getMeta");exports.getMeta=getMeta;