1import{M as U,q as F,ah as v,d as S,$ as u,w as M}from"./BvpJxwxT.js";import{u as E}from"./CxKhjvrd.js";function I(o){return typeof o=="string"?`'${o}'`:new k().serialize(o)}const k=(function(){class o{#t=new Map;compare(t,e){const s=typeof t,i=typeof e;return s==="string"&&i==="string"?t.localeCompare(e):s==="number"&&i==="number"?t-e:String.prototype.localeCompare.call(this.serialize(t,!0),this.serialize(e,!0))}serialize(t,e){if(t===null)return"null";switch(typeof t){case"string":return e?t:`'${t}'`;case"bigint":return`${t}n`;case"object":return this.$object(t);case"function":return this.$function(t)}return String(t)}serializeObject(t){const e=Object.prototype.toString.call(t);if(e!=="[object Object]")return this.serializeBuiltInType(e.length<10?`unknown:${e}`:e.slice(8,-1),t);const s=t.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,t);if(typeof t.toJSON=="function"){const n=t.toJSON();return i+(n!==null&&typeof n=="object"?this.$object(n):`(${this.serialize(n)})`)}return this.serializeObjectEntries(i,Object.entries(t))}serializeBuiltInType(t,e){const s=this["$"+t];if(s)return s.call(this,e);if(typeof e?.entries=="function")return this.serializeObjectEntries(t,e.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,e){const s=Array.from(e).sort((n,h)=>this.compare(n[0],h[0]));let i=`${t}{`;for(let n=0;n<s.length;n++){const[h,c]=s[n];i+=`${this.serialize(h,!0)}:${this.serialize(c)}`,n<s.length-1&&(i+=",")}return i+"}"}$object(t){let e=this.#t.get(t);return e===void 0&&(this.#t.set(t,`#${this.#t.size}`),e=this.serializeObject(t),this.#t.set(t,e)),e}$function(t){const e=Function.prototype.toString.call(t);return e.slice(-15)==="[native code] }"?`${t.name||""}()[native]`:`${t.name}(${t.length})${e.replace(/\s*\n\s*/g,"")}`}$Array(t){let e="[";for(let s=0;s<t.length;s++)e+=this.serialize(t[s]),s<t.length-1&&(e+=",");return e+"]"}$Date(t){try{return`Date(${t.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(t){return`ArrayBuffer[${new Uint8Array(t).join(",")}]`}$Set(t){return`Set${this.$Array(Array.from(t).sort((e,s)=>this.compare(e,s)))}`}$Map(t){return this.serializeObjectEntries("Map",t.entries())}}for(const r of["Error","RegExp","URL"])o.prototype["$"+r]=function(t){return`${r}(${t})`};for(const r of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])o.prototype["$"+r]=function(t){return`${r}[${t.join(",")}]`};for(const r of["BigInt64Array","BigUint64Array"])o.prototype["$"+r]=function(t){return`${r}[${t.join("n,")}${t.length>0?"n":""}]`};return o})(),C=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],R=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",f=[];class x{_data=new $;_hash=new $([...C]);_nDataBytes=0;_minBufferSize=0;finalize(r){r&&this._append(r);const t=this._nDataBytes*8,e=this._data.sigBytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(e+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(r,t){const e=this._hash.words;let s=e[0],i=e[1],n=e[2],h=e[3],c=e[4],y=e[5],p=e[6],m=e[7];for(let a=0;a<64;a++){if(a<16)f[a]=r[t+a]|0;else{const l=f[a-15],_=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,d=f[a-2],w=(d<<15|d>>>17)^(d<<13|d>>>19)^d>>>10;f[a]=_+f[a-7]+w+f[a-16]}const B=c&y^~c&p,z=s&i^s&n^i&n,j=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),A=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),b=m+A+B+R[a]+f[a],O=j+z;m=p,p=y,y=c,c=h+b|0,h=n,n=i,i=s,s=b+O|0}e[0]=e[0]+s|0,e[1]=e[1]+i|0,e[2]=e[2]+n|0,e[3]=e[3]+h|0,e[4]=e[4]+c|0,e[5]=e[5]+y|0,e[6]=e[6]+p|0,e[7]=e[7]+m|0}_append(r){typeof r=="string"&&(r=$.fromUtf8(r)),this._data.concat(r),this._nDataBytes+=r.
1sigBytes}_process(r){let t,e=this._data.sigBytes/64;r?e=Math.ceil(e):e=Math.max((e|0)-this._minBufferSize,0);const s=e*16,i=Math.min(s*4,this._data.sigBytes);if(s){for(let n=0;n<s;n+=16)this._doProcessBlock(this._data.words,n);t=this._data.words.splice(0,s),this._data.sigBytes-=i}return new $(t,i)}}class ${words;sigBytes;constructor(r,t){r=this.words=r||[],this.sigBytes=t===void 0?r.length*4:t}static fromUtf8(r){const t=unescape(encodeURIComponent(r)),e=t.length,s=[];for(let i=0;i<e;i++)s[i>>>2]|=(t.charCodeAt(i)&255)<<24-i%4*8;return new $(s,e)}toBase64(){const r=[];for(let t=0;t<this.sigBytes;t+=3){const e=this.words[t>>>2]>>>24-t%4*8&255,s=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,n=e<<16|s<<8|i;for(let h=0;h<4&&t*8+h*6<this.sigBytes*8;h++)r.push(T.charAt(n>>>6*(3-h)&63))}return r.join("")}concat(r){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<r.sigBytes;t++){const e=r.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=e<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<r.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=r.words[t>>>2];this.sigBytes+=r.sigBytes}}function L(o){return new x().finalize(o).toBase64()}function g(o){return L(I(o))}function q(o,r,t){const[e={},s]=typeof r=="string"?[{},r]:[r,t],i=S(()=>u(o)),n=S(()=>u(e.key)||"$f"+g([s,typeof i.value=="string"?i.value:"",...P(e)]));if(!e.baseURL&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:h,lazy:c,default:y,transform:p,pick:m,watch:a,immediate:B,getCachedData:z,deep:j,dedupe:A,timeout:b,...O}=e,l=U({...F,...O,cache:typeof e.cache=="boolean"?void 0:e.cache}),_={server:h,lazy:c,default:y,transform:p,pick:m,immediate:B,getCachedData:z,deep:j,dedupe:A,timeout:b,watch:a===!1?[]:[...a||[],l]};if(!B){let w=function(){_.immediate=!0};v(n,w,{flush:"sync",once:!0}),v([...a||[],l],w,{flush:"sync",once:!0})}return E(a===!1?n.value:n,(w,{signal:D})=>(e.$fetch||globalThis.$fetch)(i.value,{signal:D,...l}),_)}function G(o,r,t){const[e={},s]=typeof r=="string"?[{},r]:[r,t];return q(o,{...e,lazy:!0},s)}function P(o){const r=[u(o.method)?.toUpperCase()||"GET",u(o.baseURL)];for(const t of[o.query||o.params]){const e=u(t);if(!e)continue;const s={};for(const[i,n]of Object.entries(e))s[u(i)]=u(n);r.push(s)}if(o.body){const t=u(o.body);if(!t)r.push(g(t));else if(t instanceof ArrayBuffer)r.push(g(Object.fromEntries([...new Uint8Array(t).entries()].map(([e,s])=>[e,s.toString()]))));else if(t instanceof FormData){const e=[];for(const s of t.entries()){const[i,n]=s;e.push([i,n instanceof File?`${n.name}:${n.size}:${n.lastModified}`:n])}r.push(g(e))}else if(M(t))r.push(g(U(t)));else try{r.push(g(t))}catch{console.warn("[useFetch] Failed to hash body",t)}}return r}export{G as a,q 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.