'+(e.username||"Account removed")+'
';for(let s=0;s<5;s++)g+='';switch(g+='
'+(e.content||"")+"
",t++,e.stars){case 1:n++;break;case 2:p++;break;case 3:v++;break;case 4:A++;break;case 5:u++}}}));const w=n/t,m=p/t,h=v/t,b=A/t,f=u/t,y=Math.round((n+2*p+3*v+4*A+5*u)/t);e+='Average user review
'+(y>0?i(y):"Unknown")+'
Review breakdown
'+c(5,f,u)+c(3,h,v)+c(1,w,n)+'Average user rating
'+(y>0?y:"Unknown")+' / 5
Rating breakdown
'+d(5,f,u)+d(4,b,A)+d(3,h,v)+d(2,m,p)+d(1,w,n)+" ",e+='Reviews from tweakCompatible and TweakReviewsDB.
'}else e='';t.innerHTML=e};n.addEventListener("click",(e=>{if(e.preventDefault(),1!=n.getAttribute("data-load")){n.setAttribute("data-load","1"),n.innerText="Loading...";const e=new XMLHttpRequest;e.open("GET","https://api.ios-repo-updates.com/1.0/packages/"+t.getAttribute("data-package")+"/TweakReviewsDB/",!0),e.withCredentials=!0,e.onload=()=>{if(200==e.status){const t=JSON.parse(e.response);if(t&&t.reviews){const e=[],i=[];if(t.reviews.sort(((e,s)=>e.ios&&s.ios&&e.ios.replace(/\d+/g,(e=>+e+1e5))+e+1e5)))).sort(((e,s)=>e.version&&s.version&&e.version.replace(/\d+/g,(e=>+e+1e5))+e+1e5)))),t.reviews.forEach((s=>{s.version&&-1===e.indexOf(s.version)&&e.push(s.version),s.ios&&-1===i.indexOf(s.ios)&&i.push(s.ios)})),e.sort(((e,s)=>e.replace(/\d+/g,(e=>+e+1e5))+e+1e5)))),i.sort(((e,s)=>e.replace(/\d+/g,(e=>+e+1e5))+e+1e5)))),e.length>0){let s="";e.forEach((e=>{s+='"})),a.innerHTML+=s,a.removeAttribute("disabled")}if(i.length>0){let e="";i.forEach((s=>{e+='"})),r.innerHTML+=e,r.removeAttribute("disabled")}s=t.reviews,v()}else p()}else p()},e.onerror=p,e.send()}}));const A=document.querySelector(".reloadReviews");A&&A.addEventListener("change",(e=>{e.preventDefault(),v()}))}document.querySelectorAll("ins").forEach((e=>{e.hasChildNodes()||(window.adsbygoogle=window.adsbygoogle||[]).push({})}))},"loading"in HTMLImageElement.prototype)window.iosrepoupdates();else{window.lazyLoadOptions={callback_error:e=>{e.src="https://www.ios-repo-updates.com/apple-touch-icon-512x512.png"}};const e=document.createElement("script");e.async=!0,e.onload=window.iosrepoupdates,e.src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@17.8.3/dist/lazyload.min.js",document.body.appendChild(e)}"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js")})();