"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[759],{759:(e,t,r)=>{r.r(t),r.d(t,{parseSTARFusionBuffer:()=>o});var n=r(8543),i=r(32622);function s(e){const t=e.split(":");return{refName:t[0],start:+t[1],end:+t[1]+1,strand:(0,i.c)(t[2])}}function o(e){const t=(0,i.P)(e),r=t[0].slice(1).split("\t");return{columns:r.map(e=>({name:e})),rowSet:{rows:t.slice(1).map((e,t)=>{const i=e.split("\t"),o=Object.fromEntries(r.map((e,t)=>[e,(0,n.E)(i[t])?+i[t]:i[t]]));return{cellData:o,feature:{uniqueId:`sf-${t}`,...s(o.LeftBreakpoint),mate:s(o.RightBreakpoint)}}})}}}},8543:(e,t,r)=>{function n(e){return"number"==typeof e?e-e===0:"string"==typeof e&&""!==e.trim()&&Number.isFinite(+e)}r.d(t,{E:()=>n})},32622:(e,t,r)=>{function n(e){return"+"===e?1:"-"===e?-1:void 0}function i(e){return new TextDecoder("utf8").decode(e).split(/\n|\r\n|\r/).map(e=>e.trim()).filter(e=>!!e)}r.d(t,{P:()=>i,c:()=>n})}}]);
//# sourceMappingURL=759.d4ff32cc.chunk.js.map