1import{i as e,y as t}from"./axiosClient-DnVO32-R.js";var n=class{constructor(){this.axios=this.getClient()}getBaseURL(){return`/`}getClient(){return e(this.getBaseURL())}},r=class extends n{parseInstance(e){return e}list(e,t,n,r){let i={};return e&&(i.sort=e),t&&(i.limit=t),n&&(i.skip=n),r&&(i.fields=r),this.axios.get(``,{params:i}).then(e=>e.map(this.parseInstance))}filterParams(e,t,n,r,i){let a={q:JSON.stringify(e)};return t&&(a.sort=t),n&&(a.limit=n),r&&(a.skip=r),i&&(a.fields=i),a}filter(e,t,n,r,i){let a=this.filterParams(e,t,n,r,i);return this.axios.get(``,{params:a}).then(e=>e.map(this.parseInstance))}get(e){return this.axios.get(`/${e}`).then(this.parseInstance)}subscribe(e,n,r,i={}){let a=this;r(this.parseInstance(n));let o=this.getBaseURL()+`/`+e;return t.addListener(o,e=>{n={...n,...e},r(this.parseInstance(n),Object.keys(e))},{reconnectCallback:async()=>{let t=await a.get(e);r(this.parseInstance(t),Object.keys(t))},onGitHubChanges:i.onGitHubChanges,onTaskUpdate:i.onTaskUpdate,onImageReady:i.onImageReady,roomMetadata:n?.owner_id?{owner_id:n.owner_id}:void 0})}async fetchAndSubscribe(e,t,n={}){let r=await this.get(e);return this.subscribe(e,r,t,n)}schema(){return this.axios.get(`/schema`)}create(e){return this.axios.post(``,e).then(this.parseInstance)}update(e,n){return this.axios.put(`/${e}`,n).then(this.parseInstance).then(r=>{let i=t.getListeners(this.getBaseURL()+`/`+e)||[];return Object.values(i).forEach(e=>e.callback(r,Object.keys(n))),r})}delete(e){return this.axios.delete(`/${e}`)}deleteMany(e){return this.axios.delete(``,{data:e})}};export{n,r 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.