/*! For license information please see main.64a40be0.js.LICENSE.txt */ !function(){var e={621:function(){pico={},pico.unpack_cascade=function(e){var t=new DataView(new ArrayBuffer(4)),n=8;t.setUint8(0,e[n+0]),t.setUint8(1,e[n+1]),t.setUint8(2,e[n+2]),t.setUint8(3,e[n+3]);var r=t.getInt32(0,!0);n+=4,t.setUint8(0,e[n+0]),t.setUint8(1,e[n+1]),t.setUint8(2,e[n+2]),t.setUint8(3,e[n+3]);var o=t.getInt32(0,!0);n+=4;for(var i=[],a=[],c=[],l=0;l>0,p=0;p>8)*a+(t+u[c+4*h+1]*n>>8)]<=i[(e+u[c+4*h+2]*n>>8)*a+(t+u[c+4*h+3]*n>>8)]);if((l+=d[s*p+h-s])<=f[p])return-1;c+=4*s}return l-f[o-1]}},pico.run_cascade=function(e,t,n){for(var r=e.pixels,o=e.nrows,i=e.ncols,a=e.ldim,c=n.shiftfactor,l=n.minsize,s=n.maxsize,u=n.scalefactor,d=l,f=[];d<=s;){for(var p=Math.max(c*d,1)>>0,h=d/2+1>>0,m=h;m<=o-h;m+=p)for(var v=h;v<=i-h;v+=p){var g=t(m,v,d,r,a);g>0&&f.push([m,v,d,g])}d*=u}return f},pico.cluster_detections=function(e,t){function n(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],c=t[2],l=Math.max(0,Math.min(n+o/2,i+c/2)-Math.max(n-o/2,i-c/2)),s=Math.max(0,Math.min(r+o/2,a+c/2)-Math.max(r-o/2,a-c/2));return l*s/(o*o+c*c-l*s)}e=e.sort((function(e,t){return t[3]-e[3]}));for(var r=new Array(e.length).fill(0),o=[],i=0;it&&(r[d]=1,a+=e[d][0],c+=e[d][1],l+=e[d][2],s+=e[d][3],u+=1);o.push([a/u,c/u,l/u,s])}return o},pico.instantiate_detection_memory=function(e){for(var t=0,n=[],r=0;r