"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6621],{66621:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var n=a(46377),i=a(99834),r=a(66885),s=a(68120),c=a(9502),o=a(54702);const u=class extends n.BaseFeatureDataAdapter{async configurePre(){const e=this.pluginManager,t=this.getConf("vcfGzLocation"),a=this.getConf(["index","location"]),n=this.getConf(["index","indexType"]),r=(0,i.openLocation)(t,e),o="CSI"===n,u=new s.wD({filehandle:r,csiFilehandle:o?(0,i.openLocation)(a,e):void 0,tbiFilehandle:o?void 0:(0,i.openLocation)(a,e),chunkCacheSize:52428800,chunkSizeLimit:1e9}),g=await u.getHeader();return{vcf:u,parser:new c.A({header:g})}}async configure(){return this.configured||(this.configured=this.configurePre().catch((e=>{throw this.configured=void 0,e}))),this.configured}async getRefNames(e={}){const{vcf:t}=await this.configure();return t.getReferenceSequenceNames(e)}async getHeader(){const{vcf:e}=await this.configure();return e.getHeader()}async getMetadata(){const{parser:e}=await this.configure();return e.getMetadata()}getFeatures(e,t={}){return(0,r.ObservableCreate)((async a=>{const{refName:n,start:i,end:r}=e,{vcf:s,parser:c}=await this.configure();await s.getLines(n,i,r,{lineCallback:(e,t)=>{a.next(new o.A({variant:c.parseLine(e),parser:c,id:`${this.id}-vcf-${t}`}))},...t}),a.complete()}),t.signal)}freeResources(){}}}}]);
//# sourceMappingURL=6621.1c933f00.chunk.js.map