PageSourceSearch

https://deskpet.ai/assets/wrap-server-fn-FWTZYDF2.js

js deskpet.ai collected 2026-10-05 11:56:54 UTC 1,235 bytes, 1 lines download raw bytes

1import{Y as o}from"./index-DfDz3_Zo.js";function p(e,r,s,i="upload"){return new Promise((c,a)=>{const t=new XMLHttpRequest,u=r.contentType.trim()||e.type||"application/octet-stream";t.open("PUT",r.uploadUrl),t.setRequestHeader("Content-Type",u),t.upload.onprogress=n=>{!s||!n.lengthComputable||s(Math.round(n.loaded/n.total*100))},t.onload=()=>{if(t.status>=200&&t.status<300){c();return}a(new Error(`Storage upload failed (${t.status}) for ${i}`))},t.onerror=()=>{a(new Error("Upload to storage failed. This is often a CORS issue — allow PUT with Content-Type from this origin on the bucket."))},t.send(e)})}function f(e,r){if(e.serverError)throw o("server-action","serverError",e.serverError,{extra:{fallback:r}}),new Error(r);if(!e.data?.success)throw o("server-action","failure",e.data??"unknown",{extra:{fallback:r}}),new Error(e.data?.error||r)}async function w(e){try{return{data:{success:!0,data:await e()}}}catch(r){return o("server-fn","nested",r),{serverError:r,data:{success:!1,error:r instanceof Error?r.message:void 0}}}}async function h(e){try{const r=await e();return r.success?{data:r}:{data:{success:!1,error:r.error}}}catch(r){return o("server-fn","recognition",r),{serverError:r}}}export{f as a,h as b,p as u,w};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.