import{t as e}from"./chunk/Log.js";import{t}from"./chunk/RLOGDecoder.js";function n(e){self.postMessage(e)}self.onmessage=async r=>{let i=r.data;if(i.type!==`start`)return;let a=e=>{n({type:`progress`,value:e})},o=new e(!1);new t(!0).decode(o,i.data[0],a)?(a(1),n({type:`initial`,log:o.toSerialized(),isPartial:!1})):n({type:`failed`})};