1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[26327],{26327:(e,t,n)=>{async function r(e,t,r,a){let{Mp3Encoder:o}=await Promise.resolve().then(n.bind(n,2007));l(r);let f=new o(2,e.sampleRate,t),h=[];for(let t=0;t<e.left.length;t+=1152){l(r);let n=Math.min(1152,e.left.length-t),o=new Int16Array(n),u=new Int16Array(n);for(let r=0;r<n;r+=1)o[r]=i(e.left[t+r]),u[r]=i(e.right[t+r]);let s=f.encodeBuffer(o,u);s.length&&h.push(s),a(Math.min(1,(t+n)/e.left.length)),t>0&&t/1152%32==0&&await new Promise(e=>window.setTimeout(e,0))}l(r);let u=f.flush();u.length&&h.push(u);let s=new Blob(h,{type:"audio/mpeg"});if(s.size<1e3)throw Error("MP3 encoding produced an invalid file.");let c=new Uint8Array(await s.slice(0,4).arrayBuffer());if(255!==c[0]||(224&c[1])!=224)throw Error("MP3 encoding produced an invalid MPEG frame.");return l(r),a(1),s}function i(e){let t=Math.max(-1,Math.min(1,e));return Math.round(t<0?32768*t:32767*t)}function l(e){if(e())throw Error("Conversion cancelled.")}n.d(t,{encodeMp3:()=>r})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.