"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[2249],{92249:(t,e,a)=>{a.r(e),a.d(e,{default:()=>r});var s=a(46377),i=a(99834);class r extends s.BaseAdapter{async getRefNameAliases(){const t=this.getConf("location");if(""===t.uri||"/path/to/my/aliases.txt"===t.uri)return[];const e=await(0,i.openLocation)(t,this.pluginManager).readFile("utf8"),a=this.getConf("refNameColumn"),s=this.getConf("refNameColumnHeaderName"),r=e.trim().split(/\n|\r\n|\r/).filter(t=>!!t),n=r.filter(t=>t.startsWith("#")),l=s&&n.length?n.at(-1).slice(1).split("\t").map(t=>t.trim()).indexOf(s):a;return r.filter(t=>!t.startsWith("#")).map(t=>{const e=t.split("\t");return{refName:e[l],aliases:e.filter(t=>!!t.trim())}})}}}}]);
//# sourceMappingURL=2249.7a401734.chunk.js.map