(()=>{var e,r,t={72672:(e,r,t)=>{"use strict";var a=t(92137),n=t(87757),c=t.n(n),i=t(38324);function f(e,r,t){if(3===t){if(4===r)return new Float32Array(e)}else if(2===t){if(1===r)return new Int8Array(e);if(2===r)return new Int16Array(e);if(4===r)return new Int32Array(e)}else if(1===t){if(1===r)return new Uint8Array(e);if(2===r)return new Uint16Array(e);if(4===r)return new Uint32Array(e)}return console.error("TIFF Worker: unsupported sample format ".concat(t," and bytes per pixel ").concat(r)),new Uint8Array(e)}self.onmessage=function(){var e=(0,a.Z)(c().mark((function e(r){var t,a,n,o,s,u,d,l,p,b,y,h,v,g,m,w,x,E,S,A,O,T,P,k,_,j,M,I,U;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.data.channel,a=r.data.tilesizex,n=r.data.tilesizey,o=r.data.sizez,s=r.data.sizec,u=r.data.dimensionOrder,d=r.data.bytesPerSample,e.next=9,(0,i.W0)(r.data.url);case 9:return l=e.sent,p=0,b=1,"XYZCT"===u?(p=o*t,b=1):"XYCZT"===u&&(p=t,b=s),e.next=15,l.getImage(p);case 15:y=e.sent,h=y.getSampleFormat(),v=y.getBytesPerPixel(),g=new ArrayBuffer(a*n*o*v),m=new Uint8Array(g),w=p,x=0;case 21:if(!(x<o)){e.next=34;break}return e.next=24,l.getImage(w);case 24:return E=e.sent,e.next=27,E.readRasters({width:a,height:n});case 27:S=e.sent,A=Array.isArray(S)?S[0]:S,O=x*a*n,A.BYTES_PER_ELEMENT>4?console.log("byte size not supported yet"):A.BYTES_PER_ELEMENT!==d?console.log("tiff bytes per element mismatch with OME metadata"):m.set(new Uint8Array(A.buffer),O*A.BYTES_PER_ELEMENT);case 31:w+=b,++x,e.next=21;break;case 34:for(T=f(g,v,h),P=T[0],k=T[0],_=0;_<T.length;++_)(j=T[_])<P&&(P=j),j>k&&(k=j);for(M=new Uint8Array(T.length),I=0;I<T.length;++I)M[I]=(T[I]-P)/(k-P)*255;U={data:M,channel:t},postMessage(U,[U.data.buffer]);case 42:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}()},73752:()=>{},13640:()=>{},82630:()=>{}},a={};function n(e){var r=a[e];if(void 0!==r)return r.exports;var c=a[e]={exports:{}};return t[e](c,c.exports,n),c.exports}n.m=t,n.c=a,n.x=()=>{var e=n.O(void 0,[368],(()=>n(72672)));return n.O(e)},e=[],n.O=(r,t,a,c)=>{if(!t){var i=1/0;for(u=0;u<e.length;u++){for(var[t,a,c]=e[u],f=!0,o=0;o<t.length;o++)(!1&c||i>=c)&&Object.keys(n.O).every((e=>n.O[e](t[o])))?t.splice(o--,1):(f=!1,c<i&&(i=c));if(f){e.splice(u--,1);var s=a();void 0!==s&&(r=s)}}return r}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[t,a,c]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+"."+{81:"3ddc237a322e7e357127",193:"f50e4726b46e72dcaf3d",260:"f94c61c9f5187b0449dc",368:"dfe023ba17cca409f559",539:"b4f8fe2bf5cdc9f2c4dd",562:"5145c6feda7565fc789f",838:"15168037eca4c554e9da",867:"0f08adbd268a7afcc980",958:"61fa82eea1ddd90c9b68"}[e]+".js?v="+{81:"3ddc237a322e7e357127",193:"f50e4726b46e72dcaf3d",260:"f94c61c9f5187b0449dc",368:"dfe023ba17cca409f559",539:"b4f8fe2bf5cdc9f2c4dd",562:"5145c6feda7565fc789f",838:"15168037eca4c554e9da",867:"0f08adbd268a7afcc980",958:"61fa82eea1ddd90c9b68"}[e],n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{n.S={};var e={},r={};n.I=(t,a)=>{a||(a=[]);var c=r[t];if(c||(c=r[t]={}),!(a.indexOf(c)>=0)){if(a.push(c),e[t])return e[t];n.o(n.S,t)||(n.S[t]={}),n.S[t];var i=[];return e[t]=i.length?Promise.all(i).then((()=>e[t]=1)):1}}})(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={930:1,733:1};n.f.i=(r,t)=>{e[r]||importScripts(n.p+n.u(r))};var r=self.webpackChunknbvv=self.webpackChunknbvv||[],t=r.push.bind(r);r.push=r=>{var[a,c,i]=r;for(var f in c)n.o(c,f)&&(n.m[f]=c[f]);for(i&&i(n);a.length;)e[a.pop()]=1;t(r)}})(),r=n.x,n.x=()=>n.e(368).then(r),n.x()})();