const HypercoreId=require('hypercore-id-encoding');
module.exports=async function migrate(_0x186c6f){
_0x10ce26={
_0x32f0d2:0x1a7,_0x1e24ab:0x388},_0x3247de={
_0x1b4525:0x4d,_0x57066e:0xa9},_0x4d2949=new Map();
for await(const {roomKey:_0xc99542,file:_0x25af8a,cleared:_0x13e119}of _0x186c6f.find("@local/blob-files")){
if(_0x13e119)continue;
const _0x5858b3=_0x25af8a.pointer.externalBlob?..blob.byteLength;
if(!_0x5858b3)continue;
const _0xca4c46=HypercoreId.encode(_0xc99542);
_0x4d2949.set(_0xca4c46,(_0x4d2949.get(_0xca4c46)??0x0)+_0x5858b3);
}
const _0x5dfdc3=[];
for(const [_0x54f898,_0x92ac68]of _0x4d2949){
_0x5dfdc3.push(_0x186c6f.insert("@local/file-stats",{'roomKey':HypercoreId.decode(_0x54f898),'total':_0x92ac68}));
}
await Promise.all(_0x5dfdc3);
}
;