this.webpackChunk([58],{1880:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return v}));var r=n(6),a=n(5),c=n(10),i=n(13),u=n(12),o=n(17),s=n(18),f=n(4),d=n.n(f),p=n(52),w=n(80),l=n(50),h=n(3),b=n(419),v=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,a=new Array(r),c=0;c<r;c++)a[c]=arguments[c];return(e=t.call.apply(t,[this].concat(a))).windowSize=1e3,e.windowDelta=1e3,e.gcMode="content",e}return Object(u.a)(n,[{key:"configure",value:function(){var e=Object(c.a)(d.a.mark((function e(){var t,n,r;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(h.readConfObject)(this.config,"sequenceAdapter"),e.next=3,null===(t=this.getSubAdapter)||void 0===t?void 0:t.call(this,n);case 3:if(r=e.sent){e.next=6;break}throw new Error("Error getting subadapter");case 6:return e.abrupt("return",r.dataAdapter);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getRefNames",value:function(){var e=Object(c.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.configure();case 2:return t=e.sent,e.abrupt("return",t.getRefNames());case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getFeatures",value:function(e,t){var n=this;return this.windowSize=1e3,this.windowDelta=1e3,this.gcMode="content",Object(w.ObservableCreate)(function(){var i=Object(c.a)(d.a.mark((function c(i){var u,o,s,f,p,w,h,v,g,O,j,k,x,m,y,S,z,A;return d.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,n.configure();case 2:if(u=c.sent,o=1===n.windowSize?1:n.windowSize/2,s=1===n.windowSize,f=e.start,p=e.end,f=Math.max(0,f-o),!((p+=o)<0||f>p)){c.next=11;break}return i.complete(),c.abrupt("return");case 11:return w=u.getFeatures(Object(a.a)(Object(a.a)({},e),{},{start:f,end:p}),t),c.next=14,w.pipe(Object(b.a)()).toPromise();case 14:for(h=c.sent,v=Object(r.a)(h,1),g=v[0],O=g.get("seq"),j=o;j<O.length-o;j+=n.windowDelta){for(k=s?O[j]:O.slice(j-o,j+o),x=0,m=0,y=0,S=0;S<k.length;S++)"c"===k[S]||"C"===k[S]?x++:"g"!==k[S]&&"G"!==k[S]||m++,"N"!==k[S]&&y++;z=f,A=void 0,"content"===n.gcMode?A=(m+x)/(y||1):"skew"===n.gcMode&&(A=(m-x)/(m+x||1)),i.next(new l.a({uniqueId:"".concat(n.id,"_").concat(z+j),start:z+j,end:z+j+n.windowDelta,score:A}))}i.complete();case 20:case"end":return c.stop()}}),c)})));return function(e){return i.apply(this,arguments)}}())}},{key:"freeResources",value:function(){}}]),n}(p.BaseFeatureDataAdapter);v.capabilities=["hasLocalStats"]}});
//# sourceMappingURL=58.445b83ffdfdde4d2cd8b.worker.js.map