1var E;(function(i){i.LOAD="LOAD",i.EXEC="EXEC",i.FFPROBE="FFPROBE",i.WRITE_FILE="WRITE_FILE",i.READ_FILE="READ_FILE",i.DELETE_FILE="DELETE_FILE",i.RENAME="RENAME",i.CREATE_DIR="CREATE_DIR",i.LIST_DIR="LIST_DIR",i.DELETE_DIR="DELETE_DIR",i.ERROR="ERROR",i.DOWNLOAD="DOWNLOAD",i.PROGRESS="PROGRESS",i.LOG="LOG",i.MOUNT="MOUNT",i.UNMOUNT="UNMOUNT"})(E||(E={}));const h=(()=>{let i=0;return()=>i++})(),d=new Error("ffmpeg is not loaded, call `await ffmpeg.load()` first"),D=new Error("called FFmpeg.terminate()");class O{#e=null;#i={};#E={};#r=[];#s=[];loaded=!1;#n=()=>{this.#e&&(this.#e.onmessage=({data:{id:t,type:e,data:r}})=>{switch(e){case E.LOAD:this.loaded=!0,this.#i[t](r);break;case E.MOUNT:case E.UNMOUNT:case E.EXEC:case E.FFPROBE:case E.WRITE_FILE:case E.READ_FILE:case E.DELETE_FILE:case E.RENAME:case E.CREATE_DIR:case E.LIST_DIR:case E.DELETE_DIR:this.#i[t](r);break;case E.LOG:this.#r.forEach(s=>s(r));break;case E.PROGRESS:this.#s.forEach(s=>s(r));break;case E.ERROR:this.#E[t](r);break}delete this.#i[t],delete this.#E[t]})};#t=({type:t,data:e},r=[],s)=>this.#e?new Promise((o,R)=>{const n=h();this.#e&&this.#e.postMessage({id:n,type:t,data:e},r),this.#i[n]=o,this.#E[n]=R,s?.addEventListener("abort",()=>{R(new DOMException(`Message # ${n} was aborted`,"AbortError"))},{once:!0})}):Promise.reject(d);on(t,e){t==="log"?this.#r.push(e):t==="progress"&&this.#s.push(e)}off(t,e){t==="log"?this.#r=this.#r.filter(r=>r!==e):t==="progress"&&(this.#s=this.#s.filter(r=>r!==e))}load=({classWorkerURL:t,...e}={},{signal:r}={})=>(this.#e||(this.#e=t?new Worker(new URL(t,import.meta.url),{type:"module"}):new Worker(new URL(""+new URL("worker-BAOIWoxA.js",import.meta.url).href,import.meta.url),{type:"module"}),this.#n()),this.#t({type:E.LOAD,data:e},void 0,r));exec=(t,e=-1,{signal:r}={})=>this.#t({type:E.EXEC,data:{args:t,timeout:e}},void 0,r);ffprobe=(t,e=-1,{signal:r}={})=>this.#t({type:E.FFPROBE,data:{args:t,timeout:e}},void 0,r);terminate=()=>{const t=Object.keys(this.#E);for(const e of t)this.#E[e](D),delete this.#E[e],delete this.#i[e];this.#e&&(this.#e.terminate(),this.#e=null,this.loaded=!1)};writeFile=(t,e,{signal:r}={})=>{const s=[];return e instanceof Uint8Array&&s.push(e.buffer),this.#t({type:E.WRITE_FILE,data:{path:t,data:e}},s,r)};mount=(t,e,r)=>{const s=[];return this.#t({type:E.MOUNT,data:{fsType:t,options:e,mountPoint:r}},s)};unmount=t=>{const e=[];return this.#t({type:E.UNMOUNT,data:{mountPoint:t}},e)};readFile=(t,e="binary",{signal:r}={})=>this.#t({type:E.READ_FILE,data:{path:t,encoding:e}},void 0,r);deleteFile=(t,{signal:e}={})=>this.#t({type:E.DELETE_FILE,data:{path:t}},void 0,e);rename=(t,e,{signal:r}={})=>this.#t({type:E.RENAME,data:{oldPath:t,newPath:e}},void 0,r);createDir=(t,{signal:e}={})=>this.#t({type:E.CREATE_DIR,data:{path:t}},void 0,e);listDir=(t,{signal:e}={})=>this.#t({type:E.LIST_DIR,data:{path:t}},void 0,e);deleteDir=(t,{signal:e}={})=>this.#t({type:E.DELETE_DIR,data:{path:t}},void 0,e)}var a;(function(i){i.MEMFS="MEMFS",i.NODEFS="NODEFS",i.NODERAWFS="NODERAWFS",i.IDBFS="IDBFS",i.WORKERFS="WORKERFS",i.PROXYFS="PROXYFS"})(a||(a={}));export{a as FFFSType,O as FFmpeg};
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.