Files
JuYou/API/static/web/assets/download-BrY2jnvm.js
2026-08-25 17:59:42 +08:00

2 lines
503 B
JavaScript

import{C as i}from"./index-p1BAR2Hc.js";function n(o,t){const e=document.createElement("a");e.href=o,e.download=t,document.body.appendChild(e),e.click(),e.remove()}async function r(o,t){n(o,t)}async function d(o,t){const e=URL.createObjectURL(o);try{n(e,t)}finally{window.setTimeout(()=>URL.revokeObjectURL(e),1e3)}}async function s(o,t,e){if(!o)return r(t,e);const a=await i.media(o),c=URL.createObjectURL(a);try{n(c,e)}finally{window.setTimeout(()=>URL.revokeObjectURL(c),1e3)}}export{d as a,s as d};