import{hasC,uasF}from"./index.500b5a03.js";import{uasl,jas$,kasD,aasE,lasL,masT,oasV,easB,fasy,tas_,pasO}from"./entry.c3abd651.js";functionR(o,a,s){const[t={},n]=typeofa=="string"?[{},a]:[a,s],e=t.key||C([n,l(t.baseURL),typeofo=="string"?o:"",l(t.params||t.query)]);if(!e||typeofe!="string")thrownewTypeError("[nuxt] [useFetch] key must be a string: "+e);if(!o)thrownewError("[nuxt] [useFetch] request is missing.");constu=e===n?"$f"+e:e,c=$(()=>{letr=o;returntypeofr=="function"&&(r=r()),l(r)});if(!t.baseURL&&typeofc.value=="string"&&c.value.startsWith("//"))thrownewError('[nuxt] [useFetch] the request URL must not start with "//".');const{server:m,lazy:g,default:w,transform:v,pick:A,watch:f,immediate:x,...b}=t,p=D({...b,cache:typeoft.cache=="boolean"?void0:t.cache}),k={server:m,lazy:g,default:w,transform:v,pick:A,immediate:x,watch:f===!1?[]:[p,c,...f||[]]};leti;returnF(u,()=>{varh;return(h=i==null?void0:i.abort)==null||h.call(i),i=typeofAbortController<"u"?newAbortController:{},typeofc.value=="string"&&c.value.startsWith("/"),(t.$fetch||globalThis.$fetch)(c.value,{signal:i.signal,...p})},k)}functiond(o){leta,s=o[0],t=1;for(;t<o.length;){constn=o[t],e=o[t+1];if(t+=2,(n==="optionalAccess"||n==="optionalCall")&&s==null)return;n==="access"||n==="optionalAccess"?(a=s,s=e(s)):(n==="call"||n==="optionalCall")&&(s=e((...u)=>s.call(a,...u)),a=void0)}returns}constU={"text-gray:80":""},M={"font-500":"","text-gray":""},N={"text-gray":""},q=E({__name:"PageView",asyncsetup(o){leta,s;const{data:t}=([a,s]=L(()=>R("/api/pageview","$GYaFMVMIJ4")),a=awaita,s(),a),n=T(()=>d([t,"access",e=>e.value,"optionalAccess",e=>e.startAt])||0);return(e,u)=>(V(),B("div",U,[y("span",M,_(d([l,"call",c=>c(t),"optionalAccess",c=>c.pageview])),1),O(" page views since "),y("span",N,_(l(n)),1)]))}});export{qasdefault};