1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4742],{64742:(e,r,t)=>{t.r(r),t.d(r,{default:()=>c});var n=t(95155),a=t(71214),o=Object.prototype.hasOwnProperty,l=t(12115),i=t(88106),s=t(99652);let u=l.use;function c(e){let{query:r,dataset:t,params:c={},perspective:d,projectId:f,stega:p}=e,g=(0,l.useCallback)(e=>(s.Hi.add(e),()=>s.Hi.delete(e)),[]),h=(0,l.useSyncExternalStore)(g,()=>s.sq,()=>null),[y,v]=(0,l.useState)(void 0),b=(0,i.J)(e=>{e.post("loader/query-listen",{projectId:f,dataset:t,perspective:d,query:r,params:c,heartbeat:1e4})}),S=(0,i.J)(n=>{if(function e(r,t){var n,a;if(r===t)return!0;if(r&&t&&(n=r.constructor)===t.constructor){if(n===Date)return r.getTime()===t.getTime();if(n===RegExp)return r.toString()===t.toString();if(n===Array){if((a=r.length)===t.length)for(;a--&&e(r[a],t[a]););return -1===a}if(!n||"object"==typeof r){for(n in a=0,r)if(o.call(r,n)&&++a&&!o.call(t,n)||!(n in t)||!e(r[n],t[n]))return!1;return Object.keys(t).length===a}}return r!=r&&t!=t}({projectId:f,dataset:t,query:r,params:c},{projectId:n.projectId,dataset:n.dataset,query:n.query,params:n.params})){let{result:r,resultSourceMap:t,tags:o}=n,l=p?(0,a.stegaEncodeSourceMap)(r,t,{enabled:!0,studioUrl:"/"}):r;console.groupCollapsed("rendering with server action"),e.children({data:l,sourceMap:t,tags:o||[]}).then(e=>{console.log("setChildren(children)"),v(e)},e=>{console.error("rendering with server action: render children error",e)}).finally(()=>console.groupEnd())}});return(0,l.useEffect)(()=>{if(!h)return;let e=h.on("loader/query-change",S),r=setInterval(()=>b(h),1e4);return()=>{clearInterval(r),e()}},[h]),h&&void 0!==y?(0,n.jsx)(n.Fragment,{children:y}):u(e.initial)}c.displayName="SanityLiveStream"}}]);
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.