self.addEventListener("fetch",(function(e){const t=e.request.headers.get("Content-Type");if("/api/v2/query"==new URL(e.request.url).pathname&&"application/x-www-form-urlencoded"==t){const t=new Headers;for(const[r,a]of e.request.headers)switch(r){case"content-type":t.set("Content-Type","application/json");break;case"accept":t.append("Accept","*/*");break;default:t.append(r,a)}return t.append("Prefer","return-download"),e.respondWith((async()=>{const r=(await e.request.formData()).get("data"),a=new Request(e.request.url,{body:r,headers:t,method:e.request.method,mode:"cors",credentials:e.request.credentials,signal:e.request.signal,cache:e.request.cache,referrer:e.request.referrer,referrerPolicy:e.request.referrerPolicy,redirect:e.request.redirect,keepalive:!0});return fetch(a)})())}e.respondWith(fetch(e.request))})),self.addEventListener("activate",(e=>{e.waitUntil(clients.claim())}));
//# sourceMappingURL=d990dc262a.js.map