"use strict";var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__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,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of __getOwnPropNames(t))__hasOwnProp.call(e,s)||s===r||__defProp(e,s,{get:()=>t[s],enumerable:!(o=__getOwnPropDesc(t,s))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,r)=>new Promise((o,s)=>{var i=e=>{try{_(r.next(e))}catch(e){s(e)}},n=e=>{try{_(r.throw(e))}catch(e){s(e)}},_=e=>e.done?o(e.value):Promise.resolve(e.value).then(i,n);_((r=r.apply(e,t)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta});var getMeta=__name(function(e){return __async(this,arguments,function*({link:e,providerContext:t}){try{const{getBaseUrl:r,axios:o}=t,s=`${yield r("consumet")}/anime/zoro/info?id=`+e,i=(yield o.get(s)).data,n={title:i.title,synopsis:i.description,image:i.image,tags:[null==i?void 0:i.type,"both"===(null==i?void 0:i.subOrDub)?"Sub And Dub":null==i?void 0:i.subOrDub],imdbId:"",type:i.episodes.length>0?"series":"movie"},_=[],p=[];if(i.episodes.forEach(e=>{if(!(null==e?void 0:e.isSubbed))return;const t="Episode "+e.number+((null==e?void 0:e.isFiller)?" (Filler)":""),r=e.id+"$sub";r&&t&&p.push({title:t,link:r})}),_.push({title:n.title+" (Sub)",directLinks:p}),"both"===(null==i?void 0:i.subOrDub)){const e=[];i.episodes.forEach(t=>{if(!(null==t?void 0:t.isDubbed))return;const r="Episode "+t.number+((null==t?void 0:t.isFiller)?" (Filler)":""),o=t.id+"$dub";o&&r&&e.push({title:r,link:o})}),_.push({title:n.title+" (Dub)",directLinks:e})}return __spreadProps(__spreadValues({},n),{linkList:_})}catch(e){return{title:"",synopsis:"",image:"",imdbId:"",type:"movie",linkList:[]}}})},"getMeta");exports.getMeta=getMeta;