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