"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8929],{98929:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(99834),s=n(7706),o=n(35904);const c="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function i(e,t,n,a,s,o,c,i,r){return{qname:e,qstart:t,qend:n,tname:s,tstart:o,tend:c,strand:"-"===a?-1:1,extra:{numMatches:r,blockLen:Math.max(n-t,c-o),mappingQual:0,cg:i}}}class r extends o.default{async setupPre(e){const t=(0,a.openLocation)(this.getConf("chainLocation"),this.pluginManager),n=await t.readFile(e);return function(e){let t="",n=0,a=0,s="",o="",r="",l=0,u=0,d=0,h="";const f=[];let p=0;for(;p<e.length;){const g=e.indexOf("\n",p);if(-1===g)break;const b=e.slice(p,g);p=g+1;const w=(c?.decode(b)||b.toString()).trim().replaceAll(" ","\t").split("\t");if("chain"===w[0]){if(h&&f.push(i(s,l,u,r,t,n,a,h,d)),t=w[2],n=+w[5],a=+w[6],s=w[7],o=w[8],r=w[9],l=+w[10],u=+w[11],"-"===r){const e=l;l=+o-u,u=+o-e}d=0,h=""}else{const e=+w[0]||0,t=w.length>1?+w[1]:0,n=w.length>2?+w[2]:0;0!==e&&(d+=+e,h+=e+"M"),0!==n&&(h+=n+"I"),0!==t&&(h+=t+"D")}}return h&&i(s,l,u,r,t,n,a,h,d),f}(31===(o=n)[0]&&139===o[1]&&8===o[2]?await(0,s.unzip)(n):n);var o}}}}]);
//# sourceMappingURL=8929.3d0d972a.chunk.js.map