1import{cS as l,cT as U,cU as k,g as h,cV as r,cW as u,cX as $}from"./iDxzLRBQ.js";function R(n,a,t){const[e={},c]=typeof a=="string"?[{},a]:[a,t],s=h(()=>r(n)),o=h(()=>r(e.key)||"$f"+u([c,typeof s.value=="string"?s.value:"",...S(e)]));if(!e.baseURL&&typeof s.value=="string"&&s.value[0]==="/"&&s.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:p,lazy:y,default:d,transform:m,pick:b,watch:f,immediate:v,getCachedData:w,deep:g,dedupe:D,timeout:F,...O}=e,i=l({...U,...O,cache:typeof e.cache=="boolean"?void 0:e.cache}),_={server:p,lazy:y,default:d,transform:m,pick:b,immediate:v,getCachedData:w,deep:g,dedupe:D,timeout:F,watch:f===!1?[]:[...f||[],i]};return k(f===!1?o.value:o,(A,{signal:j})=>(e.$fetch||globalThis.$fetch)(s.value,{signal:j,...i}),_)}function S(n){const a=[r(n.method)?.toUpperCase()||"GET",r(n.baseURL)];for(const t of[n.query||n.params]){const e=r(t);if(!e)continue;const c={};for(const[s,o]of Object.entries(e))c[r(s)]=r(o);a.push(c)}if(n.body){const t=r(n.body);if(!t)a.push(u(t));else if(t instanceof ArrayBuffer)a.push(u(Object.fromEntries([...new Uint8Array(t).entries()].map(([e,c])=>[e,c.toString()]))));else if(t instanceof FormData){const e={};for(const c of t.entries()){const[s,o]=c;e[s]=o instanceof File?o.name:o}a.push(u(e))}else if($(t))a.push(u(l(t)));else try{a.push(u(t))}catch{console.warn("[useFetch] Failed to hash body",t)}}return a}export{R as u};
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.