"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[3069],{33069:function(e,r,t){t.r(r),t.d(r,{default:function(){return h}});var n=t(32723),u=t(96234),a=t(34795),i=t(9249),s=t(87371),c=t(45754),o=t(13820),f=t(82972),p=t(32145),l=t(99836),h=function(e){(0,c.Z)(t,e);var r=(0,o.Z)(t);function t(){return(0,i.Z)(this,t),r.apply(this,arguments)}return(0,s.Z)(t,[{key:"getRefNameAliases",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(){var r,t,a;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==(r=(0,l.readConfObject)(this.config,"location")).uri&&"/path/to/my/aliases.txt"!==r.uri){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,(0,p.openLocation)(r).readFile("utf8");case 5:return t=e.sent,a=(0,l.readConfObject)(this.config,"refNameColumn"),e.abrupt("return",t.trim().split(/\n|\r\n|\r/).filter((function(e){return!!e&&!e.startsWith("#")})).map((function(e){var r=e.split("\t"),t=r.splice(a,1);return{refName:(0,u.Z)(t,1)[0],aliases:r.filter((function(e){return!!e.trim()}))}})));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"freeResources",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),t}(f.BaseAdapter)}}]);
//# sourceMappingURL=3069.f2bd38e9.chunk.js.map