var libtests;(()=>{"use strict";var e,r,t={6728:(e,r,t)=>{var n;!function(e){e[e.SUCCEED=0]="SUCCEED",e[e.FAILED=1]="FAILED"}(n||(n={}));var o,a,i=t(4044);function s(e,r){const t=e.length,n=new Float64Array(t);for(let o=0;o<t;++o)n[o]=e[o][r];return n}function c(e){const r=i.V(e.pipeline,e.ivp2ww,e.inputVec),t=r[0].length,n=e.rowIdx;if(-10!==n)switch(n){case 0:return s(r,0);case-1:return s(r,t-1);default:throw new Error(`Incorrect row idx: ${n}`)}return s(r,function(e,r){let t,n=0,o=Math.abs(e[n]-r);for(let a=1;a<e.length;++a)t=Math.abs(e[a]-r),t<o&&(o=t,n=a);return n}(r[e.argColIdx],e.argVal))}!function(e){e[e.COR_PLOT=.5]="COR_PLOT",e[e.PC_PLOT=.6]="PC_PLOT",e[e.GRAPH=.6]="GRAPH",e[e.BAR_CHART=.2]="BAR_CHART"}(o||(o={})),function(e){e.METHOD="`Method`",e.SAMPLES="`Samples`"}(a||(a={}));onmessage=function(e){return r=this,t=void 0,a=function*(){try{const r=e.data.task,t=r.pipelines.length,o=new Array(t),a=new Array(t);for(let e=0;e<t;++e)try{o[e]=c({ivp2ww:r.ivp2ww,pipeline:r.pipelines[e],inputVec:r.inputVecs[e],rowIdx:r.rowIdx,argColIdx:r.argColIdx,argVal:r.argVal}),a[e]="Success"}catch(r){a[e]=r instanceof Error?r.message:"Platform issue: in-webworker analysis failed"}postMessage({callResult:n.SUCCEED,rowVals:o,analysisRes:a})}catch(e){postMessage({callResult:n.FAILED,msg:e instanceof Error?e.message:"Platform issue: in-webworker analysis failed"})}},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{c(a.next(e))}catch(e){n(e)}}function s(e){try{c(a.throw(e))}catch(e){n(e)}}function c(r){var t;r.done?e(r.value):(t=r.value,t instanceof o?t:new o((function(e){e(t)}))).then(i,s)}c((a=a.apply(r,t||[])).next())}));var r,t,o,a}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,o.x=()=>{var e=o.O(void 0,[44],(()=>o(6728)));return o.O(e)},e=[],o.O=(r,t,n,a)=>{if(!t){var i=1/0;for(p=0;p<e.length;p++){for(var[t,n,a]=e[p],s=!0,c=0;c<t.length;c++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](t[c])))?t.splice(c--,1):(s=!1,a<i&&(i=a));if(s){e.splice(p--,1);var l=n();void 0!==l&&(r=l)}}return r}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[t,n,a]},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={728:1};o.f.i=(r,t)=>{e[r]||importScripts(o.p+o.u(r))};var r=self.webpackChunklibtests=self.webpackChunklibtests||[],t=r.push.bind(r);r.push=r=>{var[n,a,i]=r;for(var s in a)o.o(a,s)&&(o.m[s]=a[s]);for(i&&i(o);n.length;)e[n.pop()]=1;t(r)}})(),r=o.x,o.x=()=>o.e(44).then(r);var a=o.x();libtests=a})();
//# sourceMappingURL=728.js.map