1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`dc57bac5-35a5-405c-9315-5010484b9844`,e._sentryDebugIdIdentifier=`sentry-dbid-dc57bac5-35a5-405c-9315-5010484b9844`)}catch{}})();import{a as e,o as t}from"./CXUkqVOj.js";import{t as n}from"./Buhm7Soj.js";import{r}from"./kKauzlTv.js";import{n as i}from"./Ddrn5jFz2.js";var a=`api.sanity.io`,o=`apicdn.sanity.io`,s=encodeURIComponent;function c(e,t={}){let n=`?query=${s(e)}`;return Object.keys(t).reduce((e,n)=>`${e}&${s(`$${n}`)}=${s(JSON.stringify(t[n]))}`,n)}var l=e=>encodeURI(e).split(/%..|./).length;function u(e){let{projectId:n,dataset:i,apiVersion:s=`1`,withCredentials:d,token:f,perspective:p=`raw`}=e,m=p!==`drafts`&&p!==`previewDrafts`&&e.useCdn,h={headers:{...f?{Authorization:`Bearer ${f}`}:{},Accept:`application/json`}};h.credentials=d?`include`:`omit`;let g={useCdn:m,projectId:n,dataset:i,apiVersion:s,withCredentials:d,token:f,perspective:p};async function _(e,u,d){let f=d?.perspective||p,g=c(e,u)+`&perspective=${f}`,_=l(g)>9e3,v=m&&!_?o:a,{isDev:y,site:{url:b}}=t().public,x=typeof window>`u`,S;y?S=`https://${n}.${v}`:(S=x?b:`https://${window.location.host}`,S+=m&&!_?`/san-apicdn`:`/san-api`);let C=`${S}/v${s}/data/query/${i}`,w=_?await r(C,{...h,method:`post`,body:{query:e,params:u},query:{perspective:f}}):await r(`${C}${g}`,h);return d?.filterResponse===!1?w:w.result}return{config:()=>g,clone:()=>u(g),fetch:_}}var d=()=>{let e=t();return n({},e.public.sanity)},f=e=>{if(!e)return;let t=new Map;return{notify(e,n){t.forEach(t=>{t.callback(e,()=>{t.lastLiveEventId=n})})},subscribe(e,n){return t.set(e,{lastLiveEventId:void 0,callback:n}),{getLastLiveEventId:()=>t.get(e)?.lastLiveEventId,unsubscribe:()=>{t.delete(e)}}}}},p=(e,t,n)=>{if(e)return i({tag:n||`nuxt-loader`,client:!1,ssr:!0})},m=e=>{let t=d(),n={...e},r=u(n),i=p(t.visualEditing,r),a=f(t.liveContent);return{client:r,config:n,fetch:(...e)=>r.fetch(...e),liveStore:a,queryStore:i,setToken(e){n.token=e,r=u(n),i&&t.visualEditing&&(i=p(t.visualEditing,r))}}};function h(t,r){let i=typeof t==`string`?t:r||`default`,a=e();if(a._sanity?.[i])return a._sanity[i];a._sanity=a._sanity||{};let{additionalClients:o={},liveContent:s,visualEditing:c,...l}=d();return!l.disableSmartCdn&&a.$preview&&(l.useCdn=!1),i==="default"?(a._sanity.default=m(l),a._sanity.default):(a._sanity[i]=m(n(o[i],l)),a._sanity[i])}export{d as n,h as t};
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.