(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[77],{2300:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return h}));var n=r(29),a=r(86),c=r(84),o=r(12),u=r(91),i=r(92),s=r(83),f=r.n(s),p=r(121),b=r(110),v=r(82),h=function(e){Object(u.a)(r,e);var t=Object(i.a)(r);function r(e,n,a){var o;Object(c.a)(this,r),(o=t.call(this,e,n,a)).refSeqs=void 0,o.source=void 0;var u=Object(v.readConfObject)(e,"chromSizesLocation");if(!u)throw new Error("must provide chromSizesLocation");var i=Object(b.openLocation)(u,o.pluginManager);return o.source=i.toString(),o.refSeqs=o.init(i),o}return Object(o.a)(r,[{key:"init",value:function(){var e=Object(a.a)(f.a.mark((function e(t){var r,a;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.readFile("utf8");case 2:if(r=e.sent,a={},r.length){e.next=6;break}throw new Error("Could not read file ".concat(t.toString()));case 6:return r.split("\n").forEach((function(e){if(e.length){var t=e.split("\t"),r=Object(n.a)(t,2),c=r[0],o=r[1];a[c]=+o}})),e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getRegions",value:function(){var e=Object(a.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.refSeqs;case 2:return t=e.sent,e.abrupt("return",Object.keys(t).map((function(e){return{refName:e,start:0,end:t[e]}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(){throw new Error("sequence not available")}},{key:"freeResources",value:function(){}}]),r}(p.BaseAdapter)}}]);
//# sourceMappingURL=77.bffeec5a.chunk.js.map