import{t as e}from"./query-string-RcCSSKcJ.js";import"./logger-m2skRwRe.js";import{n as t}from"./axios-fetch-adapter-m8Kx6J-y.js";import{l as n}from"./cache-hsasTrVL.js";import"./init-TbIhQyad.js";import{n as r}from"./api-DzB1tprs.js";import"./fetch-BE0PHwMd.js";import"./getter-D7iIs4HV.js";import"./get-ByRl-WR3.js";var i=async(i,a,o=10,s=0,c=0,l=0)=>{try{let u={itemid:i,shopid:a,limit:o,offset:s*o,filter:c,filter_size:0,flag:1,exclude_filter:1,fold_filter:0,relevant_reviews:!1,request_source:2,type:l,tag_filter:``,variation_filters:``},d=new n(Object.values(u).join(`-`)),f=await d.get();if(f)return f;let p=await r(e.stringifyUrl({url:`${t}/api/v2/item/get_ratings`,query:u}));return p&&p.data?(await d.set(p.data),p.data):null}catch{return null}};export{i as t};