"use strict";exports.id=7967,exports.ids=[7967],exports.modules={77967:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});var a=async(e,t=[{}],i=null,a=!1,s=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";let r=[],l=null;if(e instanceof Blob&&e.type?l=e.type:e.headers&&e.headers.get("content-type")&&(l=e.headers.get("content-type")),t.forEach((e,t)=>{r[t]={description:e.description||"",accept:{}},e.mimeTypes?(0===t&&l&&e.mimeTypes.push(l),e.mimeTypes.map(i=>{r[t].accept[i]=e.extensions||[]})):l&&(r[t].accept[l]=e.extensions||[])}),i)try{await i.getFile()}catch(e){if(i=null,a)throw e}let n=i||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:r,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!i&&s&&s();let p=await n.createWritable();if("stream"in e){let t=e.stream();return await t.pipeTo(p),n}return"body"in e?await e.body.pipeTo(p):(await p.write(await e),await p.close()),n}}};