function n(e){return e?`${e.split("#",1)[0]}#t=0.001`:""}async function i(e){const t=URL.createObjectURL(e);try{return await new Promise(a=>{const r=document.createElement("audio");r.preload="metadata",r.onloadedmetadata=()=>a(Number.isFinite(r.duration)?Math.round(r.duration*1e3):void 0),r.onerror=()=>a(void 0),r.src=t})}finally{URL.revokeObjectURL(t)}}function o(e){const t=Number(e||0)/1e3;return!Number.isFinite(t)||t<=0?"":`${t.toFixed(1).replace(/\.0$/,"")} 秒`}export{o as a,n as f,i as r};
