File: /www/server/panel/BTPanel/static/js/constants.js
function i(t,n){return n===0?"0%":"".concat((t/n*100).toFixed(1),"%")}function d(t){const{ip_country:n,ip_subdivisions:o,ip_city:e}=t;return n==="中国"&&o?e&&!o.includes(e)?"".concat(o," ").concat(e):o:n||"未知"}function r(t,n){const o=new Blob([t]),e=document.createElement("a");e.download=n,e.style.display="none",e.href=URL.createObjectURL(o),document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(e.href)}export{d as c,i as f,r};