var compute2;(()=>{"use strict";var e,r,t={387:(e,r,t)=>{t.d(r,{OW:()=>o,Un:()=>a,dq:()=>n});const n=-10;var o;!function(e){e[e.SUCCEED=0]="SUCCEED",e[e.FAILED=1]="FAILED"}(o||(o={}));const a="Success"},3033:(e,r,t)=>{var n=t(387),o=t(4491);onmessage=function(e){return r=this,t=void 0,i=function*(){try{const r=e.data.task,t=r.pipelines.length,a=new Array(t),i=new Array(t);for(let e=0;e<t;++e)try{a[e]=(0,o.R)({ivp2ww:r.ivp2ww,pipeline:r.pipelines[e],inputVec:r.inputVecs[e],rowIdx:r.rowIdx,argColIdx:r.argColIdx,argVal:r.argVal}),i[e]=n.Un}catch(r){i[e]=r instanceof Error?r.message:"Platform issue: in-webworker analysis failed"}postMessage({callResult:n.OW.SUCCEED,rowVals:a,analysisRes:i})}catch(e){postMessage({callResult:n.OW.FAILED,msg:e instanceof Error?e.message:"Platform issue: in-webworker analysis failed"})}},new((a=void 0)||(a=Promise))(function(e,n){function o(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(r){var t;r.done?e(r.value):(t=r.value,t instanceof a?t:new a(function(e){e(t)})).then(o,s)}c((i=i.apply(r,t||[])).next())});var r,t,a,i}},4491:(e,r,t)=>{t.d(r,{R:()=>s});var n=t(7196),o=t(387),a=t(8173);function i(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 s(e){const r=n.V(e.pipeline,e.ivp2ww,e.inputVec),t=r[0].length,s=e.rowIdx;if(s!==o.dq)switch(s){case a.Q2:return i(r,0);case a.YU:return i(r,t-1);default:throw new Error(`Incorrect row idx: ${s}`)}return i(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))}},8173:(e,r,t)=>{var n,o;t.d(r,{Q2:()=>i,YU:()=>a}),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"}(n||(n={})),function(e){e.METHOD="`Method`",e.SAMPLES="`Samples`"}(o||(o={}));const a=-1,i=0}},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,[196],()=>o(3033));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={33:1};o.f.i=(r,t)=>{e[r]||importScripts(o.p+o.u(r))};var r=self.webpackChunkcompute2=self.webpackChunkcompute2||[],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(196).then(r);var a=o.x();compute2=a})();
//# sourceMappingURL=33.js.map