1import{r as u}from"./vendor-react-E98sgxjj.js";import{c as a,r as s}from"./chatRoomStore-oLAeRb02.js";function l(t){return!t?.public_id||t.organization?null:t.public_id}const o=()=>()=>{};function c(t){const e=t?a(t):null;return u.useEffect(()=>{if(t)return s(t)},[t]),e}function R(t){return u.useSyncExternalStore(t?t.subscribe:o,()=>t?t.getState():null,()=>t?t.getState():null)}function i(t,e,r){return u.useSyncExternalStore(t?t.subscribe:o,()=>t?e(t.getState()):r,()=>t?e(t.getState()):r)}const S=t=>t.status;function C(t,{enabled:e,viewerId:r}){const n=c(t);return u.useEffect(()=>{if(!(!n||!e))return n.setViewer(r),n.acquireSocket()},[n,e,r]),{status:i(n,S,"idle"),store:n}}export{i as a,R as b,l as c,C 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.