SYMBOL INDEX (2247 symbols across 3 files) FILE: e495d03829e7f9f45920.worker.js function r (line 1) | function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{... method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} function r (line 1) | function r(e,t,r,n){var a,i=this._iv;i?(a=i.slice(0),this._iv=void 0):a=... method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} class s (line 1) | class s extends i.VorbisParser{constructor(e,t,r){super(e,t),this.tokeni... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class d (line 1) | class d{constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 1) | function h(e){return e.length>2?e.slice(0,e.length-1).join(", ")+" & "+e... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function u (line 1) | function u(e){return l.apply(this,arguments)} method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 1) | function f(e,t,r){var n="",a="",i=r.split("-");return i.length>1?(n=i[0]... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 1) | function d(e){var t="";if(void 0!==e.common.picture&&e.common.picture.le... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 1) | function h(e,t){return e.every((function(e,r){return e===t[r]}))} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 1) | function p(e,t){return h(i,e.slice(0,i.length))?"mp3":h(a,e.slice(0,a.le... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} class o (line 1) | class o{constructor(e,t,r){this.metadata=e,this.tokenizer=r}parsePage(e,... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function p (line 12) | function p(e,t,r){return e^t^r} method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 12) | function m(e,t,r){return e&t|~e&r} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 12) | function g(e,t,r){return(e|~t)^r} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 12) | function b(e,t,r){return e^(t|~r)} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a>>32-t} method constructor (line 12) | constructor(e){super(e,t.SampleToChunkToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[],n=e.readUInt16LE(t);let a=t+2;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t100)){var t=/^(-?(?:\d+)?\.?\d+)... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=i?Math.round(e/i)+"d":t>=a?Mat... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=i?f(e,t,i,"day"):t>=a?f(e,t,a,... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let r=super.get(e,t);return r=a.default.trimRightNull(r),r=r.... method constructor (line 17) | constructor(e){this.tokenizer=e} method readPacketHeader (line 17) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 17) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 17) | async readVariableSizeField(e=1,t=0){let r=await this.tokenizer.readNu... method constructor (line 17) | constructor(){super(...arguments),this.id3parser=new i.ID3v2Parser} method startsWithID3v2Header (line 17) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 17) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n... method finalize (line 17) | finalize(){} method parseID3v2 (line 17) | async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2... method tryReadId3v2Headers (line 17) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(a.I... method constructor (line 17) | constructor(){super(...arguments),this.audioLength=0} method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 17) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(i.TopLevelHeaderO... method parseObjectHeader (line 17) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 17) | addTags(e){e.forEach(e=>{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 12) | function f(e,t,r,n){var a=t>=1.5*r;return Math.round(e/r)+" "+n+(a?"s":"")} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... class c (line 12) | class c{constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class f (line 12) | class f{constructor(e){this.len=e}get(e,t){return{type:{set:n.UINT8.get(... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... class d (line 12) | class d{constructor(e){this.len=e}get(e,t){return{version:n.UINT8.get(e,... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... class h (line 12) | class h{constructor(e){this.len=e}get(e,t){return{version:n.UINT8.get(e,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... class m (line 12) | class m{constructor(e){this.len=e}get(e,t){return{dataFormat:a.FourCcTok... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... class g (line 12) | class g{constructor(e){this.len=e}get(e,t){const r=p.get(e,t);t+=p.len;c... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} method get (line 12) | get(e,t){return{count:n.INT32_BE.get(e,t+0),duration:n.INT32_BE.get(e,t+... class b (line 12) | class b extends y{constructor(e){super(e,t.TimeToSampleToken),this.len=e}} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function n (line 12) | function n(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return vo... method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} function a (line 12) | function a(e){return function(){var t=this,r=arguments;return new Promis... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class c (line 12) | class c extends n.AbstractTokenizer{constructor(e,t){super(t),this.strea... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class f (line 12) | class f extends o.BasicParser{static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 12) | async function d(t){if(t.fileSize>=128){const r=e.alloc(3);return await ... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function u (line 12) | function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. L... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 12) | function f(e,t,r){return 3*(t+r)/4-r} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 12) | function d(e){var t,r,n=u(e),o=n[0],s=n[1],c=new i(f(e,o,s)),l=0,d=s>0?o... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 12) | function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 12) | function p(e,t,r){for(var n,a=[],i=t;i ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 12) | function m(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,c=r-a;s... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... class o (line 12) | class o{constructor(){this.promise=new Promise((e,t)=>{this.reject=t,thi... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... class c (line 12) | class c{constructor(e){if(this.s=e,this.endOfStream=!1,this.peekQueue=[]... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 12) | function s(e,t){return new a.BufferTokenizer(e,t)} method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class m (line 12) | class m{constructor(e){this.len=e.page_segments}static sum(e,t,r){let n=... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... class g (line 12) | class g extends f.BasicParser{async parse(){p("pos=%s, parsePage()",this... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 12) | function s(){var e=this;"function"===typeof this._flush?this._flush((fun... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 12) | function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e.... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class u (line 12) | class u extends n.AbstractID3Parser{async _parse(){const e=this.tokenize... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=3&&(n... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 12) | function c(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"[... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 12) | function f(e,r,n){if(e.customInspect&&r&&B(r.inspect)&&r.inspect!==t.ins... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 12) | function d(e,t){if(S(t))return e.stylize("undefined","undefined");if(k(t... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 12) | function h(e){return"["+Error.prototype.toString.call(e)+"]"} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 12) | function p(e,t,r,n,a){for(var i=[],o=0,s=t.length;o ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 12) | function m(e,t,r,n,a,i){var o,s,c;if(c=Object.getOwnPropertyDescriptor(t... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 12) | function g(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 12) | function b(e){return"boolean"===typeof e} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function o (line 17) | function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 17) | function s(){try{if(!Object.assign)return!1;var e=new String("abc");if(e... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function a (line 17) | function a(){return!("undefined"===typeof window||!window.process||"rend... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function i (line 17) | function i(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useC... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 17) | function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("d... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 17) | function c(){let e;try{e=t.storage.getItem("debug")}catch(r){}return!e&&... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class i (line 17) | class i extends n.CommonTagMapper{constructor(){super(["ID3v1"],a)}} method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function i (line 17) | function i(e){return null==e} method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 17) | function s(e){return"string"===typeof e} method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 17) | function c(e){return"symbol"===typeof e} method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 17) | function f(e){return"object"===typeof e&&null!==e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 17) | function d(e){return"[object Date]"===g(e)} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 17) | function h(e){return"[object Error]"===g(e)||e instanceof Error} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 17) | function p(e){return"function"===typeof e} method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 17) | function m(e){return null===e||"boolean"===typeof e||"number"===typeof e... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 17) | function g(e){return Object.prototype.toString.call(e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function i (line 17) | function i(){this._readableState&&(this._readableState.destroyed=!1,this... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... class a (line 17) | class a extends n.CommonTagMapper{constructor(){super(["exif"],t.riffInf... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class l (line 17) | class l{constructor(e){this.tokenizer=e}async readPacketHeader(){const e... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let r=super.get(e,t);return r=a.default.trimRightNull(r),r=r.... method constructor (line 17) | constructor(e){this.tokenizer=e} method readPacketHeader (line 17) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 17) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 17) | async readVariableSizeField(e=1,t=0){let r=await this.tokenizer.readNu... method constructor (line 17) | constructor(){super(...arguments),this.id3parser=new i.ID3v2Parser} method startsWithID3v2Header (line 17) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 17) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n... method finalize (line 17) | finalize(){} method parseID3v2 (line 17) | async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2... method tryReadId3v2Headers (line 17) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(a.I... method constructor (line 17) | constructor(){super(...arguments),this.audioLength=0} method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 17) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(i.TopLevelHeaderO... method parseObjectHeader (line 17) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 17) | addTags(e){e.forEach(e=>{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class i (line 17) | class i{static getParserForAttr(e){return i.attributeParsers[e]}static p... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function w (line 17) | function w(e,r,n,a,o,s){var c=n+e.length,u=a.length,l=m;return void 0!==... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=n.INT32_BE.get(e,t+8);return{version:n.INT8.get(e,t),... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{startTime:a.UINT64_LE.get(e,t),endTime:a.UINT64_LE.get... class l (line 17) | class l extends i.BasicParser{constructor(){super(...arguments),this.aud... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let r=super.get(e,t);return r=a.default.trimRightNull(r),r=r.... method constructor (line 17) | constructor(e){this.tokenizer=e} method readPacketHeader (line 17) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 17) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 17) | async readVariableSizeField(e=1,t=0){let r=await this.tokenizer.readNu... method constructor (line 17) | constructor(){super(...arguments),this.id3parser=new i.ID3v2Parser} method startsWithID3v2Header (line 17) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 17) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n... method finalize (line 17) | finalize(){} method parseID3v2 (line 17) | async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2... method tryReadId3v2Headers (line 17) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(a.I... method constructor (line 17) | constructor(){super(...arguments),this.audioLength=0} method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 17) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(i.TopLevelHeaderO... method parseObjectHeader (line 17) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 17) | addTags(e){e.forEach(e=>{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class a (line 17) | class a extends n.CommonTagMapper{constructor(e,t){const r={};for(const ... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class p (line 17) | class p{constructor(e,t){this.versionIndex=s.default.getBitAllignedNumbe... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function g (line 17) | function g(e){return"V"+(100-e)/10} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} class a (line 17) | class a{constructor(e,t){this.data=e,this.offset=t}readInt32(){const e=n... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function r (line 17) | async function r(r){if(r.fileSize>=143){const n=e.alloc(15);await r.rand... method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} class a (line 17) | class a extends n.Readable{constructor(e){super(),this.bytesRead=0,this.... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function n (line 17) | function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a ... method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} function o (line 17) | function o(e,t,r){e.copy(t,r)} method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function e (line 17) | function e(){n(this,e),this.head=null,this.tail=null,this.length=0} function p (line 17) | function p(e,t,r){return r.indexOf(e)===t} method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} class m (line 17) | class m extends o.BasicParser{static read_BE_Signed_Integer(e){return a.... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... class s (line 17) | class s{static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class l (line 17) | class l extends s.BasicParser{async parse(){const e=await this.tokenizer... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let r=super.get(e,t);return r=a.default.trimRightNull(r),r=r.... method constructor (line 17) | constructor(e){this.tokenizer=e} method readPacketHeader (line 17) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 17) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 17) | async readVariableSizeField(e=1,t=0){let r=await this.tokenizer.readNu... method constructor (line 17) | constructor(){super(...arguments),this.id3parser=new i.ID3v2Parser} method startsWithID3v2Header (line 17) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 17) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n... method finalize (line 17) | finalize(){} method parseID3v2 (line 17) | async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2... method tryReadId3v2Headers (line 17) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(a.I... method constructor (line 17) | constructor(){super(...arguments),this.audioLength=0} method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 17) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(i.TopLevelHeaderO... method parseObjectHeader (line 17) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 17) | addTags(e){e.forEach(e=>{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class n (line 17) | class n{constructor(e){this.buf=e,this.fileSize=e.length}async randomRea... method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} method get (line 17) | get(e,t){return e.readUInt8(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readUInt16LE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readUInt16BE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readUIntLE(t,3)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readUIntBE(t,3)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readUInt32LE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readUInt32BE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readInt8(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readInt16BE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readInt16LE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readIntLE(t,3)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readIntBE(t,3)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readInt32BE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return e.readInt32LE(t)} method put (line 17) | put(e,t,r){return n.equal(typeof t,"number"),n.equal(typeof r,"number"),... method get (line 17) | get(e,t){return u(e,t,this.len)} method put (line 17) | put(e,t,r){return l(e,r,t,this.len)} method get (line 17) | get(e,t){return f(e,t,this.len)} method put (line 17) | put(e,t,r){return d(e,r,t,this.len)} method get (line 17) | get(e,t){return h(e,t,this.len)} method put (line 17) | put(e,t,r){return p(e,r,t,this.len)} method get (line 17) | get(e,t){return m(e,t,this.len)} method put (line 17) | put(e,t,r){return g(e,r,t,this.len)} method get (line 17) | get(e,t){return a.read(e,t,!1,10,this.len)} method put (line 17) | put(e,t,r){return a.write(e,r,t,!1,10,this.len)} method get (line 17) | get(e,t){return a.read(e,t,!0,10,this.len)} method put (line 17) | put(e,t,r){return a.write(e,r,t,!0,10,this.len)} method get (line 17) | get(e,t){return e.readFloatBE(t)} method put (line 17) | put(e,t,r){return e.writeFloatBE(r,t)} method get (line 17) | get(e,t){return e.readFloatLE(t)} method put (line 17) | put(e,t,r){return e.writeFloatLE(r,t)} method get (line 17) | get(e,t){return e.readDoubleBE(t)} method put (line 17) | put(e,t,r){return e.writeDoubleBE(r,t)} method get (line 17) | get(e,t){return e.readDoubleLE(t)} method put (line 17) | put(e,t,r){return e.writeDoubleLE(r,t)} method get (line 17) | get(e,t){return a.read(e,t,!1,63,this.len)} method put (line 17) | put(e,t,r){return a.write(e,r,t,!1,63,this.len)} method get (line 17) | get(e,t){return a.read(e,t,!0,63,this.len)} method put (line 17) | put(e,t,r){return a.write(e,r,t,!0,63,this.len)} class i (line 17) | class i{constructor(e){this.len=e}get(e,t){}} method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... class s (line 17) | class s{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return e.to... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class c (line 17) | class c{constructor(e){this.len=e}static decode(e,t,r){let n="";for(let ... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e>>=0,r>>>=0;let n=e[t],a=1,i=0;while(++i=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t>>=0,n>>>=0;let a=1,i=0;e[r]=255&t;while(++i<... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let r=super.get(e,t);return r=a.default.trimRightNull(r),r=r.... method constructor (line 17) | constructor(e){this.tokenizer=e} method readPacketHeader (line 17) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 17) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 17) | async readVariableSizeField(e=1,t=0){let r=await this.tokenizer.readNu... method constructor (line 17) | constructor(){super(...arguments),this.id3parser=new i.ID3v2Parser} method startsWithID3v2Header (line 17) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 17) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n... method finalize (line 17) | finalize(){} method parseID3v2 (line 17) | async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2... method tryReadId3v2Headers (line 17) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(a.I... method constructor (line 17) | constructor(){super(...arguments),this.audioLength=0} method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 17) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(i.TopLevelHeaderO... method parseObjectHeader (line 17) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 17) | addTags(e){e.forEach(e=>{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 17) | function f(e,t,r){t>>>=0,r>>>=0;let n=e[t],a=1,i=0;while(++ic.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 17) | function d(e,t,r,n){t=+t,r>>>=0;let a=0,i=1,o=0;e[r]=255&t;while(++a0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 17) | function h(e,t,r){t>>>=0,r>>>=0;let n=e[t+--r],a=1;while(r>0&&(a*=256))n... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 17) | function p(e,t,r,n){t=+t,r>>>=0,n>>>=0;let a=n-1,i=1;e[r+a]=255&t;while(... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 17) | function m(e,t,r){t>>>=0,r>>>=0;let n=r,a=1,i=e[t+--n];while(n>0&&(a*=25... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 17) | function g(e,t,r,n){t=+t,r>>>=0;let a=n-1,i=1,o=0;e[r+a]=255&t;while(--a... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r>>32-i)+t} method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t>>32-i)+t} method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let r=super.get(e,t);return r=a.default.trimRightNull(r),r=r.... method constructor (line 17) | constructor(e){this.tokenizer=e} method readPacketHeader (line 17) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 17) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 17) | async readVariableSizeField(e=1,t=0){let r=await this.tokenizer.readNu... method constructor (line 17) | constructor(){super(...arguments),this.id3parser=new i.ID3v2Parser} method startsWithID3v2Header (line 17) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 17) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof n... method finalize (line 17) | finalize(){} method parseID3v2 (line 17) | async parseID3v2(){if(await this.tryReadId3v2Headers(),u("End of ID3v2... method tryReadId3v2Headers (line 17) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(a.I... method constructor (line 17) | constructor(){super(...arguments),this.audioLength=0} method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 17) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(i.TopLevelHeaderO... method parseObjectHeader (line 17) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 17) | addTags(e){e.forEach(e=>{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 17) | function f(e,t,r,n,a,i,o){var s=e+(t^r^n)+a+o;return(s<>>32-i)+t} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 17) | function d(e,t,r,n,a,i,o){var s=e+(r^(t|~n))+a+o;return(s<>>32-i)+t} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... class u (line 17) | class u extends i.BasicParser{constructor(){super(),this.padding=0,this.... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 17) | function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16l... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 17) | function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 17) | function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return vo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 17) | function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("u... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 17) | function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 17) | function p(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 17) | function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 17) | function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t)... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 17) | function b(e){return e.toString(this.encoding)} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... class a (line 17) | class a{constructor(e){n.ok(e.chunkSize>=16,"16 for PCM."),this.len=e.ch... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class i (line 17) | class i{constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),t... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function e (line 17) | function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0} function r (line 17) | function r(e){return 4294967296*(e-(0|e))|0} method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} class p (line 17) | class p extends f.BasicParser{async parse(){const e=await this.tokenizer... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} class n (line 17) | class n{init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options... method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} class h (line 17) | class h extends s.BasicParser{constructor(){super(...arguments),this.ape... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function r (line 17) | function r(e,r,n,a){if("function"!==typeof e)throw new TypeError('"callb... method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} function c (line 17) | function c(e,t,r,n){var a=t&&t.prototype instanceof m?t:m,i=Object.creat... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 17) | function g(){} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function k (line 17) | function k(e){["next","throw","return"].forEach((function(t){e[t]=functi... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=n.INT16_BE.get(e,t+0),a=new n.StringType(r,"utf-8");r... method constructor (line 46) | constructor(e){super(e)} function _ (line 17) | function _(e){function t(r,a,i,o){var s=u(e[r],e,a);if("throw"!==s.type)... method parseOnContentType (line 12) | static async parseOnContentType(e,t){const{mimeType:r,path:n,url:a}=aw... method parse (line 12) | static async parse(t,r,a){if(!r){T("Guess parser on content...");const... method getParserIdForExtension (line 12) | static getParserIdForExtension(e){if(!e)return;const t=this.getExtensi... method loadParser (line 12) | static async loadParser(e){switch(e){case"aiff":return new c.AIFFParse... method _parse (line 12) | static async _parse(e,t,r={}){const n=await _.loadParser(t),a=new s.Me... method getExtension (line 12) | static getExtension(e){const t=e.lastIndexOf(".");return-1===t?"":e.sl... method getParserIdForMimeType (line 12) | static getParserIdForMimeType(e){let t;try{t=k(e)}catch(n){return void... method constructor (line 46) | constructor(e){this.len=e} method fromBase64 (line 46) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 46) | static fromBuffer(e){const t=new _(e.length);return t.get(e,0)} method get (line 46) | get(e,t){const r=e.readUInt8(t++),n=e.readInt32LE(t);let a=5;while(0!=... function S (line 17) | function S(e,t,r){var n=l;return function(a,i){if(n===d)throw new Error(... function E (line 17) | function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,... function I (line 17) | function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.f... function A (line 17) | function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.comp... function x (line 17) | function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.r... function B (line 17) | function B(e){if(e){var r=e[i];if(r)return r.call(e);if("function"===typ... function C (line 17) | function C(){return{value:t,done:!0}} function a (line 17) | function a(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="nex... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function c (line 17) | function c(e){return u.apply(this,arguments)} method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class a (line 17) | class a{constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.f... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class h (line 17) | class h extends o.AbstractID3Parser{constructor(){super(...arguments),th... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... class p (line 17) | class p{} method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function d (line 17) | function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 17) | function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... class u (line 17) | class u extends s.AbstractID3Parser{async _parse(){const e=await this.to... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function i (line 17) | function i(e){return e<<8&4278255360|e>>>8&16711935} method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 17) | function c(){return c=Object(n["a"])(regeneratorRuntime.mark((function e... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function i (line 17) | function i(e){return e instanceof Int8Array||e instanceof Int16Array||e ... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... class a (line 17) | class a{constructor(e){if(this.len=e,e<19)throw new Error("ID-header-pag... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class a (line 17) | class a{constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0}asy... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function r (line 23) | function r(e){if(255===(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;2... method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} function n (line 23) | function n(e){return 0===(e[0]=r(e[0]))&&(e[1]=r(e[1])),e} method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} function f (line 23) | function f(e){return u.from(e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 23) | function d(e){return u.isBuffer(e)||e instanceof l} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function w (line 23) | function w(e,t,r){if("function"===typeof e.prependListener)return e.prep... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=n.INT32_BE.get(e,t+8);return{version:n.INT8.get(e,t),... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{startTime:a.UINT64_LE.get(e,t),endTime:a.UINT64_LE.get... function T (line 23) | function T(e,t){i=i||r("b19a"),e=e||{};var n=t instanceof i;this.objectM... method constructor (line 12) | constructor(e){super(e,n.INT32_BE),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[],n=e.readUInt16LE(t);let a=t+2;for(let i=0;i=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e... function B (line 23) | function B(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==... function C (line 23) | function C(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.le... function P (line 23) | function P(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable... function O (line 23) | function O(e){m("emit readable"),e.emit("readable"),U(e)} function M (line 23) | function M(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(D,e,t))} function D (line 23) | function D(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t... function R (line 23) | function R(e){return function(){var t=e._readableState;m("pipeOnDrain",t... function F (line 23) | function F(e){m("readable nexttick read 0"),e.read(0)} function L (line 23) | function L(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(z,e,... function z (line 23) | function z(e,t){t.reading||(m("resume read 0"),e.read(0)),t.resumeSchedu... function U (line 23) | function U(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing... function N (line 23) | function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift(... function j (line 23) | function j(e,t,r){var n;return e0)throw new Error('"end... function X (line 23) | function X(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=... function $ (line 23) | function $(e,t){for(var r=0,n=e.length;r=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function h (line 23) | function h(){m("cleanup"),e.removeListener("close",b),e.removeListener("... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function g (line 23) | function g(t){m("ondata"),p=!1;var n=e.write(t);!1!==n||p||((1===i.pipes... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 23) | function b(){e.removeListener("finish",v),T()} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;ac.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 23) | function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 23) | function h(e){e.end()} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function u (line 28) | function u(e){if(!e||"object"!==typeof e)throw new TypeError("argument o... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 28) | function f(e){var t;if("function"===typeof e.getHeader?t=e.getHeader("co... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 28) | function d(e){var t=String(e);if(i.test(t))return t;if(t.length>0&&!a.te... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 28) | function h(e){this.parameters=Object.create(null),this.type=e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function o (line 35) | function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:U... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 35) | function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823} method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 35) | function c(e,t){if(s()=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 35) | function f(e){if("number"!==typeof e)throw new TypeError('"size" argumen... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 35) | function d(e,t,r,n){return f(t),t<=0?c(e,t):void 0!==r?"string"===typeof... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 35) | function h(e,t){if(f(t),e=c(e,t<0?0:0|b(t)),!u.TYPED_ARRAY_SUPPORT)for(v... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 35) | function p(e,t,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncodi... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 35) | function m(e,t){var r=t.length<0?0:0|b(t.length);e=c(e,r);for(var n=0;n<... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 35) | function g(e,t,r,n){if(t.byteLength,r<0||t.byteLength=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 35) | function b(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;athis.length)ret... method constructor (line 12) | constructor(e){super(e,n.INT32_BE),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[],n=e.readUInt16LE(t);let a=t+2;for(let i=0;ia&&... function I (line 35) | function I(e,t,r,n){return ee(K(t,e.length-r),e,r,n)} function A (line 35) | function A(e,t,r,n){return ee(Z(t),e,r,n)} function x (line 35) | function x(e,t,r,n){return A(e,t,r,n)} function B (line 35) | function B(e,t,r,n){return ee(Q(t),e,r,n)} function C (line 35) | function C(e,t,r,n){return ee(J(t,e.length-r),e,r,n)} function P (line 35) | function P(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromBy... function O (line 35) | function O(e,t,r){r=Math.min(e.length,r);var n=[],a=t;while(an)&&(r=n);... function z (line 35) | function z(e,t,r){for(var n=e.slice(t,r),a="",i=0;ie.length)throw new RangeError("Index out ... function q (line 35) | function q(e,t,r,n,i){return i||W(e,t,r,4,34028234663852886e22,-34028234... function X (line 35) | function X(e,t,r,n,i){return i||W(e,t,r,8,17976931348623157e292,-1797693... function G (line 35) | function G(e){if(e=V(e).replace($,""),e.length<2)return"";while(e.length... function V (line 35) | function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")} function Y (line 35) | function Y(e){return e<16?"0"+e.toString(16):e.toString(16)} function K (line 35) | function K(e,t){var r;t=t||1/0;for(var n=e.length,a=null,i=[],o=0;o=t.length||a>=e.length)... function te (line 35) | function te(e){return e!==e} function i (line 35) | function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a ... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 35) | function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e} method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function e (line 35) | function e(t,r,n){i(this,e),void 0===r||void 0===n?(this.Matrix128=t,thi... function p (line 35) | function p(){return new h(l,f,d)} method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 35) | function m(e){for(var t,r=Math.min(32768,e.length),n=0;n... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 35) | function g(e){if(!(e.length=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 35) | function b(e){if(0===e.length)throw"can not match at least one key";var ... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a127&&(e%=128);var t=e%16,r=(e-t)/16;switch(t){case 0:r=8... method constructor (line 12) | constructor(e){super(e,t.SampleToChunkToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[],n=e.readUInt16LE(t);let a=t+2;for(let i=0;i{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class a (line 35) | class a extends n.Readable{constructor(e){super(),this.buf=e}_read(){thi... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} class c (line 35) | class c extends n.AbstractTokenizer{constructor(e,t){super(t),this.strea... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function o (line 35) | function o(){for(var e=this._S,t=this._i,r=this._j,n=0,a=0;a<4;a++){t=(t... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function o (line 40) | function o(e){if(!e||"object"!==typeof e)throw new TypeError("argument o... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 40) | function s(e){if(!e)throw new TypeError("argument string is required");i... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 40) | function c(e){if(!e)throw new TypeError("argument string is required");i... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... class o (line 40) | class o{static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)}st... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function u (line 40) | async function u(e,r,n){const a=new i.ReadableWebToNodeStream(e),o=await... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 40) | async function f(e,t){const r=await fetch(e),n={size:parseInt(r.headers.... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 40) | function d(e){return new Promise((t,r)=>{const n=new FileReader;n.onload... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... class i (line 40) | class i{static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]|... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 40) | function s(e){return Math.pow(10,e/10)} method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 40) | function c(e){const t=e.split(" ").map(e=>e.trim().toLowerCase());if(t.l... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function i (line 40) | function i(){r.readable&&r.resume&&r.resume()} method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 40) | function c(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())} method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class h (line 40) | class h extends c.BasicParser{async parse(){const e=await this.tokenizer... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function c (line 40) | function c(){return i.create.apply(i,arguments)} method constructor (line 12) | constructor(e,t,r){if(this.len=e,e... method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function fromStream (line 40) | async function fromStream(e){const t=await strtok3.fromStream(e);try{ret... function fromBuffer (line 40) | async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ... function _check (line 40) | function _check(e,t,r){r={offset:0,...r};for(const[n,a]of t.entries())if... function fromTokenizer (line 40) | async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(t){if... function _fromTokenizer (line 40) | async function _fromTokenizer(e){let t=Buffer.alloc(minimumBytes);const ... method get (line 40) | get(){return new Set(supported.extensions)} method get (line 40) | get(){return new Set(supported.mimeTypes)} function i (line 40) | function i(e){var t=this;this.next=null,this.entry=null,this.finish=func... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 40) | function p(e){return f.isBuffer(e)||e instanceof d} method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function y (line 40) | function y(){} method constructor (line 12) | constructor(e,t){this.len=e,this.token=t} method get (line 12) | get(e,t){const r=n.INT32_BE.get(e,t+4);return{version:n.INT8.get(e,t+0... method constructor (line 17) | constructor(){super(...arguments),this.frameCount=0,this.syncFrameCoun... method _parse (line 17) | async _parse(){this.metadata.setFormat("lossless",!1);try{let e=!1;whi... method finalize (line 17) | finalize(){const e=this.metadata.format,t=this.metadata.native.hasOwnP... method sync (line 17) | async sync(){let e=!1;while(1){let t=0;if(this.syncPeek.len=await this... method parseCommonMpegHeader (line 17) | async parseCommonMpegHeader(){let e;0===this.frameCount&&(this.mpegOff... method parseAudioFrameHeader (line 17) | async parseAudioFrameHeader(e){this.metadata.setFormat("numberOfChanne... method parseAdts (line 17) | async parseAdts(t){const r=e.alloc(3);await this.tokenizer.readBuffer(... method parseCrc (line 17) | async parseCrc(){return this.crc=await this.tokenizer.readNumber(a.INT... method skipSideInformation (line 17) | async skipSideInformation(){const e=this.audioFrameHeader.calculateSid... method readXtraInfoHeader (line 17) | async readXtraInfoHeader(){const e=await this.tokenizer.readToken(u.In... method readXingInfoHeader (line 17) | async readXingInfoHeader(){const e=await this.tokenizer.readToken(u.Xi... method skipFrameData (line 17) | async skipFrameData(e){n.ok(e>=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 40) | function b(e,t){o=o||r("b19a"),e=e||{};var n=t instanceof o;this.objectM... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 40) | function f(e,t,r,n,a){return d.apply(this,arguments)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 40) | function d(){return d=Object(n["a"])(regeneratorRuntime.mark((function e... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 40) | function h(e,t,r){var n=e.getUint32(r,!0);r+=4;var a=new Uint8Array(t,r,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 40) | function p(e){for(var t=new Uint8Array(Array(256).keys()),r=e.length,n=0... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 40) | function m(e,t,r){var n=e.getUint32(r,!0);if(r+=4,0===n)return{};var a=n... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... class i (line 40) | class i extends n.CommonTagMapper{static toRating(e){return{rating:parse... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function r (line 40) | function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.... method constructor (line 17) | constructor(e){this.str=e} method fromBin (line 17) | static fromBin(e,t=0){return new r(this.decode(e,t))} method decode (line 17) | static decode(e,t=0){const r=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 17) | static decodeMediaType(e){switch(e.str){case r.AudioMedia.str:return"a... method encode (line 17) | static encode(t){const r=e.alloc(16);return r.writeUInt32LE(parseInt(t... method equals (line 17) | equals(e){return this.str===e.str} method toBin (line 17) | toBin(){return r.encode(this.str)} function n (line 40) | function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,a=!0;for(t=e.l... method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} function a (line 40) | function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function n (line 40) | function n(e){for(var t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function o (line 40) | function o(e,t){return t=t||{},new n.ReadStreamTokenizer(e,t)} method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 40) | function s(e,t){return new a.BufferTokenizer(e,t)} method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function e (line 40) | function e(){} function u (line 40) | function u(e,t,r={}){return f(n.fromStream(e,"string"===typeof t?{mimeTy... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t+0),flags:n.UINT24_BE.get(e,t+1... method _parse (line 12) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 12) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 40) | function f(e,t){return a.ParserFactory.parseOnContentType(e,t)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 40) | function d(e){const t={};for(const r of e)(t[r.id]=t[r.id]||[]).push(r.v... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 40) | function h(e){return void 0===e?0:1+Math.round(4*e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 40) | async function p(e,t={}){let r=e.fileSize;if(await s.hasID3v1Header(e)){... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} class f (line 40) | class f extends s.BasicParser{async parse(){return this.audioDataSize=0,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... class n (line 40) | class n extends Error{constructor(){super(t.defaultMessages)}} method decode (line 12) | static decode(e){let t="";for(const r in e)e.hasOwnProperty(r)&&(t+=n.... method inRange (line 12) | static inRange(e,t,r){return t<=e&&e<=r} method codePointToString (line 12) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 12) | static singleByteDecoder(e){if(n.inRange(e,0,127))return e;const t=n.w... method constructor (line 17) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 17) | async randomRead(e,t,r,n){return this.buf.copy(e,t,n,n+r)} method init (line 17) | init(e,t,r){return this.metadata=e,this.tokenizer=t,this.options=r,this} method constructor (line 40) | constructor(){super(t.defaultMessages)} function a (line 46) | function a(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Ma... method constructor (line 12) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 12) | async readBuffer(e,t,r,n){return this.position=n||this.position,this.p... method peekBuffer (line 12) | async peekBuffer(e,t,r,a,i=!1){a=a||this.position,r||(r=e.length);cons... method readToken (line 12) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 12) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function i (line 46) | function i(e){return t.Buffer&&"function"===typeof t.Buffer.isBuffer?t.B... method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 46) | function f(e){return!i(e)&&("function"===typeof t.ArrayBuffer&&("functio... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function p (line 46) | function p(e){if(o.isFunction(e)){if(u)return e.name;var t=e.toString(),... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 46) | function m(e,t){return"string"===typeof e?e.length... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 46) | function g(e){if(u||!o.isFunction(e))return o.inspect(e);var t=p(e),r=t?... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 46) | function b(e,t,r,n,a){throw new d.AssertionError({message:r,actual:e,exp... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class c (line 46) | class c{constructor(e){this.len=e.objectSize-t.HeaderObjectToken.len}pos... method constructor (line 12) | constructor(e,t,r){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 17) | static readData(t,r,n,l){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 17) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 17) | static functionList(e){const t={};for(let r=0;r+1=4?/\x00/g:/\//g);return u.tr... method trimArray (line 17) | static trimArray(e){for(let t=0;t{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... class f (line 46) | class f extends c{constructor(e){super(e)}get(e,t){return{streamType:i.d... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... class d (line 46) | class d{constructor(){this.len=22}get(e,t){return{reserved1:i.default.fr... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function p (line 46) | async function p(e){const t=await e.readNumber(a.UINT16_LE);return(await... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 46) | async function m(e){const t=await e.readToken(h),r=[];for(let n=0;n... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 46) | async function g(t){const r=await t.readNumber(a.UINT16_LE),n=e.alloc(r)... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} class b (line 46) | class b extends c{constructor(e){super(e)}get(e,t){const r=[];let n=t+10... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){const r=[];let n=t+10;for(let a=0;a{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function c (line 46) | function c(){c.init.call(this)} method constructor (line 12) | constructor(e,t,r){if(this.len=e,e{this.metadata.addTag(u,e.id,e.value)})} method parseExtensionObject (line 17) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 35) | constructor(){super(...arguments),this.audioLength=0} method parse (line 35) | async parse(){const e=await this.tokenizer.readToken(o.Header);a.equal... method skipAudioData (line 35) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{fileId:i.default.fromBin(e,t),fileSize:a.UINT64_LE.get... function f (line 46) | function f(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._m... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:n.UINT8.get(e,t+0),type:n.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 46) | constructor(e){super(e)} method get (line 46) | get(e,t){return{streamType:i.default.decodeMediaType(i.default.fromBin... function d (line 46) | function d(e,t,r,n){var a,i,s;if(l(r),i=e._events,void 0===i?(i=e._event... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){l(`streamInfo: type=${n.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){l(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,r){l(`tag ${e}.${t} = ${r}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,r){const n={id:t,value:r},a=this.tagMapper.mapTag(e,n,thi... method setGenericTag (line 1) | setGenericTag(e,t){l(`common.${t.id} = ${t.value}`);const r=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){this.tagMappers={},[new n.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 17) | mapTag(e,t,r){const n=this.tagMappers[e];if(n)return this.tagMappers[e... method registerTagMapper (line 17) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 46) | constructor(){this.len=22} method get (line 46) | get(e,t){return{reserved1:i.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 46) | function h(){if(!this.fired)return this.target.removeListener(this.type,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:n.UINT8.get(e,t),flags:n.UINT24_BE.get(e,t+1),... method constructor (line 17) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 17) | static tryParseApeHeader(e,t,r){const n=new h;return n.init(e,t,r),n.t... method calculateDuration (line 17) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 17) | static async findApeFooterOffset(t,r){const n=e.alloc(c.TagFooter.len)... method parseTagFooter (line 17) | static parseTagFooter(e,t,r){const n=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 17) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 17) | async parseTags(t){const r=e.alloc(256);let n=t.size-c.TagFooter.len;l... method parseDescriptorExpansion (line 17) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 17) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 17) | constructor(){super(...arguments),this.padding=0} method init (line 17) | init(e,t,r){return super.init(e,t,r),this.vorbisParser=new u.VorbisPar... method _parse (line 17) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 17) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 17) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 17) | async parseComment(e){const t=await this.tokenizer.readToken(new a.Buf... method parsePicture (line 17) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(l.Header);if("FOR... method readData (line 40) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 40) | async parse(){const e=await this.tokenizer.readToken(u.ChunkHeader);n.... method readFmt8Chunks (line 40) | async readFmt8Chunks(e){while(e>=u.ChunkHeader.len){const t=await this... method readData (line 40) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 40) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 40) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 46) | function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener... method constructor (line 17) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 17) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 17) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 17) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 17) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 17) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 17) | parseAdtsHeader(e,t){l("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 17) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 17) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 17) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 17) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(l.FourC... method readWaveChunk (line 17) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 17) | async parseListTag(e){const t=await this.tokenizer.readToken(l.FourCcT... method parseRiffInfoTags (line 17) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 17) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 46) | function m(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];retu... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:a.FourCcToken.get(e,t),dataReferenceIndex:n... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,r){let n=0;for(let a=t;a... method parseAtom_stsz (line 17) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 17) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 17) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 17) | async parseChapterTrack(e,t,r){e.sampleSize||i.equal(e.chunkOffsetTabl... method findSampleOffset (line 17) | findSampleOffset(e,t){let r=0;e.timeToSampleTable.forEach(e=>{r+=e.cou... method getChunkDuration (line 17) | getChunkDuration(e,t){let r=0,n=t.timeToSampleTable[r].count,a=t.timeT... method getSamplesPerChunk (line 17) | getSamplesPerChunk(e,t){for(let r=0;r=t[r].firstC... function g (line 46) | function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const r=p.get(e,t);t+=p.len;const a=[];for(let i=0;i=0,"frame-data-left cannot be negative")... method areAllSame (line 17) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 46) | function b(e,t){for(;t+1=16,"16 for PCM."),this.len=e.chunkSize} method get (line 17) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r=null,a){const i=e.alloc(t.len),o=await this.readBu... method peekToken (line 17) | async peekToken(t,r=this.position,a){const i=e.alloc(t.len),o=await th... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 17) | async close(){} method constructor (line 17) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 17) | async readToken(t,r){const a=e.alloc(t.len),i=await this.readBuffer(a,... method peekToken (line 17) | async peekToken(t,r=this.position){const a=e.alloc(t.len),i=await this... method readNumber (line 17) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 17) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 17) | async close(){} method constructor (line 17) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 17) | get(e,t){return{magicSignature:new n.StringType(8,"ascii").get(e,t+0),... method constructor (line 17) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 17) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 17) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 35) | constructor(e){super(),this.buf=e} method _read (line 35) | _read(){this.push(this.buf),this.push(null)} method constructor (line 40) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 46) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 46) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 46) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 46) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 46) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const r... method getCommonName (line 46) | getCommonName(e){return this.tagMap[e]} method postMap (line 46) | postMap(e,t){} function o (line 46) | function o(e,t,r){return s.apply(this,arguments)} method constructor (line 1) | constructor(e,t,r){this.metadata=e,this.tokenizer=r} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){i("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){i("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 35) | constructor(e,t,r){this.header=e,this.extended=t,this.parent=r,this.ch... method readAtom (line 35) | static async readAtom(e,t,r){const n=e.position,s=await e.readToken(a.... method getHeaderLength (line 35) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 35) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 35) | async readAtoms(e,t,r){while(r>0){const n=await o.readAtom(e,t,this);t... method readData (line 35) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 40) | constructor(e,t,r){super(e,t),this.tokenizer=r,this.lastPos=-1} method parseFirstPage (line 40) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 40) | parseFullPage(e){const t=new n.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 40) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 40) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r){return e>>>t&4294967295>>>32-r} method constructor (line 40) | constructor(e,t){this.isAifc=t;const r=t?22:18;a.ok(e.chunkSize>=r,`CO... method get (line 40) | get(e,t){const r=e.readUInt16BE(t+8)-16398,a=e.readUInt16BE(t+8+2),o={... function s (line 46) | function s(){return s=Object(n["a"])(regeneratorRuntime.mark((function e... method constructor (line 1) | constructor(e,t,r){super(e,t),this.tokenizer=r} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const r=a.Header.get(t,0... method removeUnsyncBytes (line 17) | static removeUnsyncBytes(e){let t=0,r=0;while(t0?(e.rating-1... method constructor (line 46) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 46) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class i (line 46) | class i extends n.CommonTagMapper{constructor(){super([t.tagType],a)}} method constructor (line 12) | constructor(){super(["APEv2"],a)} method constructor (line 17) | constructor(){super(["ID3v1"],a)} method getParserForAttr (line 17) | static getParserForAttr(e){return i.attributeParsers[e]} method parseUnicodeAttr (line 17) | static parseUnicodeAttr(e){return n.default.stripNulls(n.default.decod... method parseByteArrayAttr (line 17) | static parseByteArrayAttr(t){const r=e.alloc(t.length);return t.copy(r... method parseBoolAttr (line 17) | static parseBoolAttr(e,t=0){return 1===i.parseWordAttr(e,t)} method parseDWordAttr (line 17) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 17) | static parseQWordAttr(e,t=0){return a.UINT64_LE.get(e,t)} method parseWordAttr (line 17) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 17) | constructor(e){this.len=e} method get (line 17) | get(e,t){} method constructor (line 17) | constructor(e){this.len=e} method fromBase64 (line 17) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 17) | static fromBuffer(e){const t=new i(e.length);return t.get(e,0)} method get (line 17) | get(t,r){const i=a.AttachedPictureType[n.UINT32_BE.get(t,r)],o=n.UINT3... method constructor (line 17) | constructor(){super(["matroska"],a)} method constructor (line 17) | constructor(e){n.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 17) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 17) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 17) | constructor(){super(["vorbis"],a)} method postMap (line 17) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 17) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 17) | get(e,t){return new n.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 40) | static findZero(e,t,r,n){let a=t;if("utf16"===n){while(0!==e[a]||0!==e... method trimRightNull (line 40) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 40) | static swapBytes(e){const t=e.length;n.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 40) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=i.s... method decodeString (line 40) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 40) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 40) | static getBitAllignedNumber(e,t,r,n){const a=t+~~(r/8),o=r%8;let s=e[a... method isBitSet (line 40) | static isBitSet(e,t,r){return 1===i.getBitAllignedNumber(e,t,r,1)} method a2hex (line 40) | static a2hex(e){const t=[];for(let r=0,n=e.length;r0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class d (line 1) | class d{constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 1) | function h(e){return e.length>2?e.slice(0,e.length-1).join(", ")+" & "+e... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function n (line 1) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} class o (line 1) | class o{constructor(e,t,n){this.metadata=e,this.tokenizer=n}parsePage(e,... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function p (line 12) | function p(e,t,n){return e^t^n} method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 12) | function m(e,t,n){return e&t|~e&n} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 12) | function g(e,t,n){return(e|~t)^n} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 12) | function y(e,t,n){return e^(t|~n)} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i>>32-t} method constructor (line 12) | constructor(e){super(e,t.SampleToChunkToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[],r=e.readUInt16LE(t);let i=t+2;for(let a=0;a=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t100)){var t=/^(-?(?:\d+)?\.?\d+)... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=a?Math.round(e/a)+"d":t>=i?Mat... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=a?f(e,t,a,"day"):t>=i?f(e,t,i,... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 12) | function f(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function n (line 12) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function l (line 12) | function l(e){var t=e.move,n=e.size,r=e.bar,i={},a="translate"+r.axis+"(... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class f (line 12) | class f{constructor(e){this.len=e}get(e,t){return{type:{set:r.UINT8.get(... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... class d (line 12) | class d{constructor(e){this.len=e}get(e,t){return{version:r.UINT8.get(e,... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... class h (line 12) | class h{constructor(e){this.len=e}get(e,t){return{version:r.UINT8.get(e,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... class m (line 12) | class m{constructor(e){this.len=e}get(e,t){return{dataFormat:i.FourCcTok... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... class g (line 12) | class g{constructor(e){this.len=e}get(e,t){const n=p.get(e,t);t+=p.len;c... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} method get (line 12) | get(e,t){return{count:r.INT32_BE.get(e,t+0),duration:r.INT32_BE.get(e,t+... class y (line 12) | class y extends v{constructor(e){super(e,t.TimeToSampleToken),this.len=e}} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function r (line 12) | function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(l){return vo... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function i (line 12) | function i(e){return function(){var t=this,n=arguments;return new Promis... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class c (line 12) | class c extends r.AbstractTokenizer{constructor(e,t){super(t),this.strea... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class f (line 12) | class f extends o.BasicParser{static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 12) | async function d(t){if(t.fileSize>=128){const n=e.alloc(3);return await ... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function l (line 12) | function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. L... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 12) | function f(e,t,n){return 3*(t+n)/4-n} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 12) | function d(e){var t,n,r=l(e),o=r[0],s=r[1],c=new a(f(e,o,s)),u=0,d=s>0?o... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 12) | function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 12) | function p(e,t,n){for(var r,i=[],a=t;a ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 12) | function m(e){for(var t,n=e.length,i=n%3,a=[],o=16383,s=0,c=n-i;s... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... class o (line 12) | class o{constructor(){this.promise=new Promise((e,t)=>{this.reject=t,thi... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class c (line 12) | class c{constructor(e){if(this.s=e,this.endOfStream=!1,this.peekQueue=[]... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 12) | function s(e,t){return new i.BufferTokenizer(e,t)} method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class m (line 12) | class m{constructor(e){this.len=e.page_segments}static sum(e,t,n){let r=... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... class g (line 12) | class g extends f.BasicParser{async parse(){p("pos=%s, parsePage()",this... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 12) | function s(){var e=this;"function"===typeof this._flush?this._flush((fun... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 12) | function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e.... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function r (line 12) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function n (line 12) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 18) | function r(e){return void 0===e||null===e} method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function i (line 18) | function i(e){return void 0!==e&&null!==e} method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 18) | function a(e){return!0===e} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 18) | function s(e){return"string"===typeof e||"number"===typeof e||"symbol"==... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 18) | function c(e){return null!==e&&"object"===typeof e} method constructor (line 12) | constructor(e,t,n){if(this.len=e,e{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 18) | function f(e){return"[object RegExp]"===l.call(e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 18) | function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 18) | function h(e){return i(e)&&"function"===typeof e.then&&"function"===type... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 18) | function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?J... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 18) | function m(e){var t=parseFloat(e);return isNaN(t)?e:t} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 18) | function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i1?e.appl... function A (line 18) | function A(e,t){return e.bind(t)} function I (line 18) | function I(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[... function P (line 18) | function P(e,t){for(var n in t)e[n]=t[n];return e} function B (line 18) | function B(e){for(var t={},n=0;n0,o=e?!!e.$stable:!a,s=... function Rt (line 18) | function Rt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,... function Ft (line 18) | function Ft(e,t){return function(){return e[t]}} function Lt (line 18) | function Lt(e,t){var n,r,a,o,s;if(Array.isArray(e)||"string"===typeof e)... function Dt (line 18) | function Dt(e,t,n,r){var i,a=this.$scopedSlots[e];a?(n=n||{},r&&(n=P(P({... function jt (line 18) | function jt(e){return Ye(this.$options,"filters",e,!0)||F} function zt (line 18) | function zt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t} function Nt (line 18) | function Nt(e,t,n,r,i){var a=$.keyCodes[t]||n;return i&&r&&!$.keyCodes[t... function Ut (line 18) | function Ut(e,t,n,r,i){if(n)if(c(n)){var a;Array.isArray(n)&&(n=B(n));va... function $t (line 18) | function $t(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];... function Ht (line 18) | function Ht(e,t,n){return Wt(e,"__once__"+t+(n?"_"+n:""),!0),e} function Wt (line 18) | function Wt(e,t,n){if(Array.isArray(e))for(var r=0;r-1:"string"===type... function Br (line 18) | function Br(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o... function Mr (line 18) | function Mr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstanc... function Dr (line 18) | function Dr(e){var t={get:function(){return $}};Object.defineProperty(e,... function Yr (line 18) | function Yr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.com... function Kr (line 18) | function Kr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),clas... function Zr (line 18) | function Zr(e,t){return i(e)||i(t)?Jr(e,Qr(t)):""} function Jr (line 18) | function Jr(e,t){return e?t?e+" "+t:e:t||""} function Qr (line 18) | function Qr(e){return Array.isArray(e)?ei(e):c(e)?ti(e):"string"===typeo... function ei (line 18) | function ei(e){for(var t,n="",r=0,a=e.length;r-1?$i(e,t,n):Wr(t)?Vr(n)?e.rem... function $i (line 18) | function $i(e,t,n){if(Vr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTA... function Wi (line 18) | function Wi(e,t){var n=t.elm,a=t.data,o=e.data;if(!(r(a.staticClass)&&r(... function Yi (line 18) | function Yi(e){if(i(e[Gi])){var t=ee?"change":"input";e[t]=[].concat(e[G... function Ki (line 18) | function Ki(e,t,n){var r=qi;return function i(){var a=t.apply(null,argum... function Ji (line 18) | function Ji(e,t,n,r){if(Zi){var i=Gn,a=t;t=a._wrapper=function(e){if(e.t... function Qi (line 18) | function Qi(e,t,n,r){(r||qi).removeEventListener(e,t._wrapper||t,n)} function ea (line 18) | function ea(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=... function ra (line 18) | function ra(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,a,o=... function ia (line 18) | function ia(e,t){return!e.composing&&("OPTION"===e.tagName||aa(e,t)||oa(... function aa (line 18) | function aa(e,t){var n=!0;try{n=document.activeElement!==e}catch(To){}re... function oa (line 18) | function oa(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)retu... function la (line 18) | function la(e){var t=ua(e.style);return e.staticStyle?P(e.staticStyle,t):t} function ua (line 18) | function ua(e){return Array.isArray(e)?B(e):"string"===typeof e?ca(e):e} function fa (line 18) | function fa(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.... function ya (line 18) | function ya(e,t){var n=t.data,a=e.data;if(!(r(n.staticStyle)&&r(n.style)... function _a (line 18) | function _a(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.s... function xa (line 18) | function xa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.s... function Ta (line 18) | function Ta(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&... function Ma (line 18) | function Ma(e){Ba((function(){Ba(e)}))} function Ra (line 18) | function Ra(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n... function Fa (line 18) | function Fa(e,t){e._transitionClasses&&y(e._transitionClasses,t),xa(e,t)} function La (line 18) | function La(e,t,n){var r=ja(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!... function ja (line 18) | function ja(e,t){var n,r=window.getComputedStyle(e),i=(r[Aa+"Delay"]||""... function za (line 18) | function za(e,t){while(e.length=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=3&&(r... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 18) | function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"[... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 18) | function f(e,n,r){if(e.customInspect&&n&&O(n.inspect)&&n.inspect!==t.ins... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 18) | function d(e,t){if(S(t))return e.stylize("undefined","undefined");if(x(t... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 18) | function h(e){return"["+Error.prototype.toString.call(e)+"]"} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 18) | function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 18) | function m(e,t,n,r,i,a){var o,s,c;if(c=Object.getOwnPropertyDescriptor(t... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 18) | function g(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 18) | function y(e){return"boolean"===typeof e} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function o (line 23) | function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 23) | function s(){try{if(!Object.assign)return!1;var e=new String("abc");if(e... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function i (line 23) | function i(){return!("undefined"===typeof window||!window.process||"rend... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 23) | function a(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useC... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 23) | function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("d... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 23) | function c(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class a (line 23) | class a extends r.CommonTagMapper{constructor(){super(["ID3v1"],i)}} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 23) | function a(e){return null==e} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 23) | function s(e){return"string"===typeof e} method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 23) | function c(e){return"symbol"===typeof e} method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 23) | function f(e){return"object"===typeof e&&null!==e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 23) | function d(e){return"[object Date]"===g(e)} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 23) | function h(e){return"[object Error]"===g(e)||e instanceof Error} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 23) | function p(e){return"function"===typeof e} method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 23) | function m(e){return null===e||"boolean"===typeof e||"number"===typeof e... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 23) | function g(e){return Object.prototype.toString.call(e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 23) | function a(e){var t=Object.prototype.toString.call(e);return"[object Reg... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 23) | function f(e,t,n){var i=e.slice();return t.forEach((function(t,a){"undef... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 23) | function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 23) | function h(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),a=n||{arrayM... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function n (line 23) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 23) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function l (line 23) | function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];t[0]=t[0]... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function f (line 23) | function f(e,t,n){return function(){var r=arguments.length>0&&void 0!==a... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... class l (line 23) | class l{static readData(t,n,r,u){if(0===t.length)return;const{encoding:f... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 23) | function a(){this._readableState&&(this._readableState.destroyed=!1,this... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class i (line 23) | class i extends r.CommonTagMapper{constructor(){super(["exif"],t.riffInf... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function f (line 23) | function f(e){return e&&e.__esModule?e:{default:e}} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function o (line 23) | function o(e){return e&&e.__esModule?e:{default:e}} method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class u (line 23) | class u{constructor(e){this.tokenizer=e}async readPacketHeader(){const e... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class a (line 23) | class a{static getParserForAttr(e){return a.attributeParsers[e]}static p... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function d (line 23) | function d(e){return e&&e.__esModule?e:{default:e}} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function w (line 23) | function w(e,n,r,i,o,s){var c=r+e.length,l=i.length,u=m;return void 0!==... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=r.INT32_BE.get(e,t+8);return{version:r.INT8.get(e,t),... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{startTime:i.UINT64_LE.get(e,t),endTime:i.UINT64_LE.get... class u (line 23) | class u extends a.BasicParser{constructor(){super(...arguments),this.aud... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class i (line 23) | class i extends r.CommonTagMapper{constructor(e,t){const n={};for(const ... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class p (line 23) | class p{constructor(e,t){this.versionIndex=s.default.getBitAllignedNumbe... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function g (line 23) | function g(e){return"V"+(100-e)/10} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function o (line 23) | function o(e){return e&&e.__esModule?e:{default:e}} method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function m (line 23) | function m(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Erro... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 23) | function g(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,a=r... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function b (line 23) | function b(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefin... method constructor (line 12) | constructor(e){super(e,t.SampleToChunkToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[],r=e.readUInt16LE(t);let i=t+2;for(let a=0;a{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class i (line 23) | class i{constructor(e,t){this.data=e,this.offset=t}readInt32(){const e=r... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function n (line 23) | async function n(n){if(n.fileSize>=143){const r=e.alloc(15);await n.rand... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} class i (line 23) | class i extends r.Readable{constructor(e){super(),this.bytesRead=0,this.... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function r (line 23) | function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a ... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function o (line 23) | function o(e,t,n){e.copy(t,n)} method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function e (line 23) | function e(){r(this,e),this.head=null,this.tail=null,this.length=0} function p (line 23) | function p(e,t,n){return n.indexOf(e)===t} method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} class m (line 23) | class m extends o.BasicParser{static read_BE_Signed_Integer(e){return i.... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function n (line 23) | function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i="u... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 23) | function r(t){var n=t.style.display,r=t.style.visibility;t.style.display... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function i (line 23) | function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 23) | function a(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 23) | function s(t,n){var r=e.getComputedStyle(t,null);return r[n]} method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 23) | function c(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.doc... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 23) | function f(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFin... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 23) | function d(e){var t={};return e&&"[object Function]"===t.toString.call(e)} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 23) | function h(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.of... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 23) | function p(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 23) | function m(e,t,n){var r=p(e),i=p(t);if(n){var a=l(t);i.top+=a.scrollTop,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 23) | function g(t){for(var n=["","ms","webkit","moz","o"],r=0;r0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 23) | function c(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class u (line 23) | class u extends s.BasicParser{async parse(){const e=await this.tokenizer... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class r (line 23) | class r{constructor(e){this.buf=e,this.fileSize=e.length}async randomRea... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function e (line 23) | function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(... function t (line 23) | function t(){this.__entries__=[]} function s (line 23) | function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&l()}func... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function e (line 23) | function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutati... function m (line 23) | function m(e){return parseFloat(e)||0} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 23) | function g(e){for(var t=[],n=1;n=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 23) | function y(e){var t=e.getBBox();return S(0,0,t.width,t.height)} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class s (line 23) | class s{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return e.to... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class c (line 23) | class c{constructor(e){this.len=e}static decode(e,t,n){let r="";for(let ... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e>>=0,n>>>=0;let r=e[t],i=1,a=0;while(++a=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t>>=0,r>>>=0;let i=1,a=0;e[n]=255&t;while(++a<... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 23) | function f(e,t,n){t>>>=0,n>>>=0;let r=e[t],i=1,a=0;while(++ac.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 23) | function d(e,t,n,r){t=+t,n>>>=0;let i=0,a=1,o=0;e[n]=255&t;while(++i0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 23) | function h(e,t,n){t>>>=0,n>>>=0;let r=e[t+--n],i=1;while(n>0&&(i*=256))r... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 23) | function p(e,t,n,r){t=+t,n>>>=0,r>>>=0;let i=r-1,a=1;e[n+i]=255&t;while(... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 23) | function m(e,t,n){t>>>=0,n>>>=0;let r=n,i=1,a=e[t+--r];while(r>0&&(i*=25... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 23) | function g(e,t,n,r){t=+t,n>>>=0;let i=r-1,a=1,o=0;e[n+i]=255&t;while(--i... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n>>32-a)+t} method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t>>32-a)+t} method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 23) | function f(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 23) | function d(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... class l (line 23) | class l extends a.BasicParser{constructor(){super(),this.padding=0,this.... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 38) | function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16l... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 38) | function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 38) | function f(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return vo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 38) | function d(e,t){var n=l(this,e,t);if(!this.lastNeed)return e.toString("u... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 38) | function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 38) | function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 38) | function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 38) | function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t)... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 38) | function y(e){return e.toString(this.encoding)} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function l (line 38) | function l(){} method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 38) | function f(e,t){for(var n in t)e[n]=t[n];return e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 38) | function d(e){for(var t={},n=0;n0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 38) | function h(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function y (line 38) | function y(e){var t=!1;return function(){for(var n=this,r=arguments.leng... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class i (line 38) | class i{constructor(e){r.ok(e.chunkSize>=16,"16 for PCM."),this.len=e.ch... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class a (line 38) | class a{constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),t... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 38) | function y(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpR... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function i (line 38) | function i(e,t){void 0===t&&(t={});var n=t.registrationOptions;void 0===... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 38) | function a(e,t,n){navigator.serviceWorker.register(e,n).then((function(e... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 38) | function s(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function e (line 38) | function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0} function n (line 38) | function n(e){return 4294967296*(e-(0|e))|0} method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} class p (line 38) | class p extends f.BasicParser{async parse(){const e=await this.tokenizer... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} class r (line 38) | class r{init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} class h (line 38) | class h extends s.BasicParser{constructor(){super(...arguments),this.ape... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function n (line 38) | function n(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callb... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function c (line 38) | function c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.creat... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 38) | function g(){} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function x (line 38) | function x(e){["next","throw","return"].forEach((function(t){e[t]=functi... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=r.INT16_BE.get(e,t+0),i=new r.StringType(n,"utf-8");r... method constructor (line 67) | constructor(e){super(e)} function T (line 38) | function T(e){function t(n,i,a,o){var s=l(e[n],e,i);if("throw"!==s.type)... method parseOnContentType (line 18) | static async parseOnContentType(e,t){const{mimeType:n,path:r,url:i}=aw... method parse (line 18) | static async parse(t,n,i){if(!n){_("Guess parser on content...");const... method getParserIdForExtension (line 18) | static getParserIdForExtension(e){if(!e)return;const t=this.getExtensi... method loadParser (line 18) | static async loadParser(e){switch(e){case"aiff":return new c.AIFFParse... method _parse (line 18) | static async _parse(e,t,n={}){const r=await T.loadParser(t),i=new s.Me... method getExtension (line 18) | static getExtension(e){const t=e.lastIndexOf(".");return-1===t?"":e.sl... method getParserIdForMimeType (line 18) | static getParserIdForMimeType(e){let t;try{t=x(e)}catch(r){return void... method constructor (line 67) | constructor(e){this.len=e} method fromBase64 (line 67) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 67) | static fromBuffer(e){const t=new T(e.length);return t.get(e,0)} method get (line 67) | get(e,t){const n=e.readUInt8(t++),r=e.readInt32LE(t);let i=5;while(0!=... function S (line 38) | function S(e,t,n){var r=u;return function(i,a){if(r===d)throw new Error(... function k (line 38) | function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,... function E (line 38) | function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.f... function C (line 38) | function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.comp... function A (line 38) | function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.r... function O (line 38) | function O(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typ... function I (line 38) | function I(){return{value:t,done:!0}} function i (line 38) | function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="nex... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function t (line 38) | function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class i (line 38) | class i{constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.f... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class h (line 38) | class h extends o.AbstractID3Parser{constructor(){super(...arguments),th... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... class p (line 38) | class p{} method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function d (line 38) | function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 38) | function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function n (line 38) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 38) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} class l (line 38) | class l extends s.AbstractID3Parser{async _parse(){const e=await this.to... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 38) | function a(e){return e&&e.nodeType===Node.ELEMENT_NODE} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function a (line 38) | function a(e){return e<<8&4278255360|e>>>8&16711935} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 38) | function a(e){return e instanceof Int8Array||e instanceof Int16Array||e ... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function n (line 38) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 38) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} class i (line 38) | class i{constructor(e){if(this.len=e,e<19)throw new Error("ID-header-pag... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class i (line 38) | class i{constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0}asy... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function n (line 44) | function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;2... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 44) | function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e} method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function n (line 44) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 44) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function h (line 44) | function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 44) | function p(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(h(t... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 44) | function m(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 44) | function g(e){return"undefined"!==typeof e&&(e=m(e),isNaN(e)&&(e=80)),e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 44) | function y(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]?argument... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=r.INT32_BE.get(e,t+8);return{version:r.INT8.get(e,t),... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{startTime:i.UINT64_LE.get(e,t),endTime:i.UINT64_LE.get... function R (line 44) | function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[... function F (line 44) | function F(e){var t={};return Object.keys(e).forEach((function(n){var r=... function j (line 44) | function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a ... function e (line 44) | function e(t){for(var n in j(this,e),this.observers=[],this.table=null,t... function f (line 44) | function f(e){return l.from(e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 44) | function d(e){return l.isBuffer(e)||e instanceof u} method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function w (line 44) | function w(e,t,n){if("function"===typeof e.prependListener)return e.prep... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=r.INT32_BE.get(e,t+8);return{version:r.INT8.get(e,t),... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{startTime:i.UINT64_LE.get(e,t),endTime:i.UINT64_LE.get... function _ (line 44) | function _(e,t){a=a||n("b19a"),e=e||{};var r=t instanceof a;this.objectM... method constructor (line 12) | constructor(e){super(e,r.INT32_BE),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[],r=e.readUInt16LE(t);let i=t+2;for(let a=0;a=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e... function O (line 44) | function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==... function I (line 44) | function I(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.le... function P (line 44) | function P(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable... function B (line 44) | function B(e){m("emit readable"),e.emit("readable"),z(e)} function M (line 44) | function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))} function R (line 44) | function R(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t... function F (line 44) | function F(e){return function(){var t=e._readableState;m("pipeOnDrain",t... function L (line 44) | function L(e){m("readable nexttick read 0"),e.read(0)} function D (line 44) | function D(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(j,e,... function j (line 44) | function j(e,t){t.reading||(m("resume read 0"),e.read(0)),t.resumeSchedu... function z (line 44) | function z(e){var t=e._readableState;m("flow",t.flowing);while(t.flowing... function N (line 44) | function N(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift(... function U (line 44) | function U(e,t,n){var r;return e0)throw new Error('"end... function q (line 44) | function q(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=... function X (line 44) | function X(e,t){for(var n=0,r=e.length;n=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function h (line 44) | function h(){m("cleanup"),e.removeListener("close",y),e.removeListener("... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function g (line 44) | function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===a.pipes... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 44) | function y(){e.removeListener("finish",b),_()} method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;ic.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 44) | function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 44) | function h(e){e.end()} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function l (line 49) | function l(e){if(!e||"object"!==typeof e)throw new TypeError("argument o... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 49) | function f(e){var t;if("function"===typeof e.getHeader?t=e.getHeader("co... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 49) | function d(e){var t=String(e);if(a.test(t))return t;if(t.length>0&&!i.te... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 49) | function h(e){this.parameters=Object.create(null),this.type=e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function o (line 56) | function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:U... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 56) | function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823} method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 56) | function c(e,t){if(s()=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 56) | function f(e){if("number"!==typeof e)throw new TypeError('"size" argumen... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 56) | function d(e,t,n,r){return f(t),t<=0?c(e,t):void 0!==n?"string"===typeof... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 56) | function h(e,t){if(f(t),e=c(e,t<0?0:0|y(t)),!l.TYPED_ARRAY_SUPPORT)for(v... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 56) | function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!l.isEncodi... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 56) | function m(e,t){var n=t.length<0?0:0|y(t.length);e=c(e,n);for(var r=0;r<... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 56) | function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 56) | function y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;ithis.length)ret... method constructor (line 12) | constructor(e){super(e,r.INT32_BE),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[],r=e.readUInt16LE(t);let i=t+2;for(let a=0;ai&&... function E (line 56) | function E(e,t,n,r){return ee(K(t,e.length-n),e,n,r)} function C (line 56) | function C(e,t,n,r){return ee(Z(t),e,n,r)} function A (line 56) | function A(e,t,n,r){return C(e,t,n,r)} function O (line 56) | function O(e,t,n,r){return ee(Q(t),e,n,r)} function I (line 56) | function I(e,t,n,r){return ee(J(t,e.length-n),e,n,r)} function P (line 56) | function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromBy... function B (line 56) | function B(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(ir)&&(n=r);... function j (line 56) | function j(e,t,n){for(var r=e.slice(t,n),i="",a=0;ae.length)throw new RangeError("Index out ... function W (line 56) | function W(e,t,n,r,a){return a||H(e,t,n,4,34028234663852886e22,-34028234... function q (line 56) | function q(e,t,n,r,a){return a||H(e,t,n,8,17976931348623157e292,-1797693... function G (line 56) | function G(e){if(e=V(e).replace(X,""),e.length<2)return"";while(e.length... function V (line 56) | function V(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")} function Y (line 56) | function Y(e){return e<16?"0"+e.toString(16):e.toString(16)} function K (line 56) | function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o=t.length||i>=e.length)... function te (line 56) | function te(e){return e!==e} function n (line 56) | function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 56) | function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} class u (line 56) | class u extends a.BasicParser{constructor(){super(...arguments),this.aud... method constructor (line 12) | constructor(e){super(e,100,"mvhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 12) | constructor(e){super(e,"binary")} method get (line 12) | get(e,t){let n=super.get(e,t);return n=i.default.trimRightNull(n),n=n.... method constructor (line 23) | constructor(e){this.tokenizer=e} method readPacketHeader (line 23) | async readPacketHeader(){const e=await this.tokenizer.readToken(s),t=a... method readStreamHeader (line 23) | async readStreamHeader(e){const t={};o(`Reading SH at offset=${this.to... method readVariableSizeField (line 23) | async readVariableSizeField(e=1,t=0){let n=await this.tokenizer.readNu... method constructor (line 23) | constructor(){super(...arguments),this.id3parser=new a.ID3v2Parser} method startsWithID3v2Header (line 23) | static async startsWithID3v2Header(e){return"ID3"===(await e.peekToken... method parse (line 23) | async parse(){try{await this.parseID3v2()}catch(e){if(!(e instanceof r... method finalize (line 23) | finalize(){} method parseID3v2 (line 23) | async parseID3v2(){if(await this.tryReadId3v2Headers(),l("End of ID3v2... method tryReadId3v2Headers (line 23) | async tryReadId3v2Headers(){const e=await this.tokenizer.peekToken(i.I... method constructor (line 23) | constructor(){super(...arguments),this.audioLength=0} method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(c.FourCcToken);re... method parsePacket (line 23) | async parsePacket(){const e=new o.StreamReader(this.tokenizer);do{cons... method parse (line 23) | async parse(){const e=await this.tokenizer.readToken(a.TopLevelHeaderO... method parseObjectHeader (line 23) | async parseObjectHeader(e){let t;do{const e=await this.tokenizer.readT... method addTags (line 23) | addTags(e){e.forEach(e=>{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class i (line 56) | class i extends r.Readable{constructor(e){super(),this.buf=e}_read(){thi... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class c (line 56) | class c extends r.AbstractTokenizer{constructor(e,t){super(t),this.strea... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class o (line 56) | class o{constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,t... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function n (line 56) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 56) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function n (line 56) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function o (line 56) | function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){t=(t... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function o (line 61) | function o(e){if(!e||"object"!==typeof e)throw new TypeError("argument o... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 61) | function s(e){if(!e)throw new TypeError("argument string is required");i... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 61) | function c(e){if(!e)throw new TypeError("argument string is required");i... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... class o (line 61) | class o{static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)}st... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function l (line 61) | async function l(e,n,r){const i=new a.ReadableWebToNodeStream(e),o=await... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 61) | async function f(e,t){const n=await fetch(e),r={size:parseInt(n.headers.... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 61) | function d(e){return new Promise((t,n)=>{const r=new FileReader;r.onload... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function r (line 61) | function r(e,t,n){this.$children.forEach((function(i){var a=i.$options.c... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} class a (line 61) | class a{static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]|... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 61) | function s(e){return Math.pow(10,e/10)} method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 61) | function c(e){const t=e.split(" ").map(e=>e.trim().toLowerCase());if(t.l... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 61) | function a(){n.readable&&n.resume&&n.resume()} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function c (line 61) | function c(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())} method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function c (line 61) | function c(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"whee... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function c (line 61) | function c(){return a.create.apply(a,arguments)} method constructor (line 12) | constructor(e,t,n){if(this.len=e,e... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function fromStream (line 61) | async function fromStream(e){const t=await strtok3.fromStream(e);try{ret... function fromBuffer (line 61) | async function fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ... function _check (line 61) | function _check(e,t,n){n={offset:0,...n};for(const[r,i]of t.entries())if... function fromTokenizer (line 61) | async function fromTokenizer(e){try{return _fromTokenizer(e)}catch(t){if... function _fromTokenizer (line 61) | async function _fromTokenizer(e){let t=Buffer.alloc(minimumBytes);const ... method get (line 61) | get(){return new Set(supported.extensions)} method get (line 61) | get(){return new Set(supported.mimeTypes)} function a (line 61) | function a(e){var t=this;this.next=null,this.entry=null,this.finish=func... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 61) | function p(e){return f.isBuffer(e)||e instanceof d} method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function v (line 61) | function v(){} method constructor (line 12) | constructor(e,t){this.len=e,this.token=t} method get (line 12) | get(e,t){const n=r.INT32_BE.get(e,t+4);return{version:r.INT8.get(e,t+0... method constructor (line 23) | constructor(){super(...arguments),this.frameCount=0,this.syncFrameCoun... method _parse (line 23) | async _parse(){this.metadata.setFormat("lossless",!1);try{let e=!1;whi... method finalize (line 23) | finalize(){const e=this.metadata.format,t=this.metadata.native.hasOwnP... method sync (line 23) | async sync(){let e=!1;while(1){let t=0;if(this.syncPeek.len=await this... method parseCommonMpegHeader (line 23) | async parseCommonMpegHeader(){let e;0===this.frameCount&&(this.mpegOff... method parseAudioFrameHeader (line 23) | async parseAudioFrameHeader(e){this.metadata.setFormat("numberOfChanne... method parseAdts (line 23) | async parseAdts(t){const n=e.alloc(3);await this.tokenizer.readBuffer(... method parseCrc (line 23) | async parseCrc(){return this.crc=await this.tokenizer.readNumber(i.INT... method skipSideInformation (line 23) | async skipSideInformation(){const e=this.audioFrameHeader.calculateSid... method readXtraInfoHeader (line 23) | async readXtraInfoHeader(){const e=await this.tokenizer.readToken(l.In... method readXingInfoHeader (line 23) | async readXingInfoHeader(){const e=await this.tokenizer.readToken(l.Xi... method skipFrameData (line 23) | async skipFrameData(e){r.ok(e>=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 61) | function y(e,t){o=o||n("b19a"),e=e||{};var r=t instanceof o;this.objectM... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function n (line 61) | function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 61) | function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.l... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function i (line 61) | function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function r (line 61) | function r(e){for(var t=0;t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function o (line 61) | function o(e,t){return t=t||{},new r.ReadStreamTokenizer(e,t)} method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 61) | function s(e,t){return new i.BufferTokenizer(e,t)} method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function e (line 61) | function e(){} function l (line 61) | function l(e,t,n={}){return f(r.fromStream(e,"string"===typeof t?{mimeTy... method constructor (line 12) | constructor(e){super(e,24,"mdhd"),this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t+0),flags:r.UINT24_BE.get(e,t+1... method _parse (line 18) | async _parse(){const e=this.tokenizer.position,t=await this.tokenizer.... method parseChunks (line 18) | async parseChunks(e){while(e>=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 61) | function f(e,t){return i.ParserFactory.parseOnContentType(e,t)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 61) | function d(e){const t={};for(const n of e)(t[n.id]=t[n.id]||[]).push(n.v... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 61) | function h(e){return void 0===e?0:1+Math.round(4*e)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 61) | async function p(e,t={}){let n=e.fileSize;if(await s.hasID3v1Header(e)){... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function n (line 61) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 61) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function a (line 61) | function a(e){return e&&e.__esModule?e:{default:e}} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;nc.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function o (line 61) | function o(e){return e&&e.__esModule?e:{default:e}} method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function n (line 61) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function o (line 61) | function o(e,t){var n=t.row,i=t.column,a=t.$index,o=i.property,s=o&&Obje... method constructor (line 1) | constructor(e,t,n){this.metadata=e,this.tokenizer=n} method parsePage (line 1) | parsePage(e,t){e.headerType.firstPage&&this.parseFirstPage(e,t)} method flush (line 1) | flush(){a("flush")} method parseFirstPage (line 1) | parseFirstPage(e,t){a("First Ogg/Theora page"),this.metadata.setFormat... method constructor (line 12) | constructor(){this.promise=new Promise((e,t)=>{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function s (line 61) | function s(e,t){var n=t.row,r=t.treeNode,i=t.store;if(!r)return null;var... method constructor (line 1) | constructor(e,t,n){super(e,t),this.tokenizer=n} method parseFirstPage (line 1) | parseFirstPage(e,t){o("First Ogg/Speex page");const n=i.Header.get(t,0... method removeUnsyncBytes (line 23) | static removeUnsyncBytes(e){let t=0,n=0;while(t0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... function h (line 61) | function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 61) | function p(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(h(t... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 61) | function m(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 61) | function g(e){return"undefined"!==typeof e&&(e=m(e),isNaN(e)&&(e=80)),e} method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 61) | function y(){for(var e=arguments.length,t=Array(e),n=0;n2&&void 0!==arguments[2]?argument... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=r.INT32_BE.get(e,t+8);return{version:r.INT8.get(e,t),... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{startTime:i.UINT64_LE.get(e,t),endTime:i.UINT64_LE.get... function n (line 61) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 61) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} class r (line 61) | class r extends Error{constructor(){super(t.defaultMessages)}} method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function n (line 61) | function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{... method constructor (line 38) | constructor(e){this.str=e} method fromBin (line 38) | static fromBin(e,t=0){return new n(this.decode(e,t))} method decode (line 38) | static decode(e,t=0){const n=e.readUInt32LE(t).toString(16)+"-"+e.read... method decodeMediaType (line 38) | static decodeMediaType(e){switch(e.str){case n.AudioMedia.str:return"a... method encode (line 38) | static encode(t){const n=e.alloc(16);return n.writeUInt32LE(parseInt(t... method equals (line 38) | equals(e){return this.str===e.str} method toBin (line 38) | toBin(){return n.encode(this.str)} function r (line 61) | function r(e,t,n,r,i,a,o,s){var c,l="function"===typeof e?e.options:e;if... method decode (line 18) | static decode(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=r.... method inRange (line 18) | static inRange(e,t,n){return t<=e&&e<=n} method codePointToString (line 18) | static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-... method singleByteDecoder (line 18) | static singleByteDecoder(e){if(r.inRange(e,0,127))return e;const t=r.w... method constructor (line 23) | constructor(e){this.buf=e,this.fileSize=e.length} method randomRead (line 23) | async randomRead(e,t,n,r){return this.buf.copy(e,t,r,r+n)} method init (line 38) | init(e,t,n){return this.metadata=e,this.tokenizer=t,this.options=n,this} method constructor (line 61) | constructor(){super(t.defaultMessages)} function i (line 67) | function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Ma... method constructor (line 18) | constructor(e,t){this.buffer=e,this.position=0,this.fileInfo=t||{},thi... method readBuffer (line 18) | async readBuffer(e,t,n,r){return this.position=r||this.position,this.p... method peekBuffer (line 18) | async peekBuffer(e,t,n,i,a=!1){i=i||this.position,n||(n=e.length);cons... method readToken (line 18) | async readToken(e,t){this.position=t||this.position;try{const t=this.p... method peekToken (line 18) | async peekToken(e,t=this.position){if(this.buffer.length-t=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} function a (line 67) | function a(e){return t.Buffer&&"function"===typeof t.Buffer.isBuffer?t.B... method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 67) | function f(e){return!a(e)&&("function"===typeof t.ArrayBuffer&&("functio... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function p (line 67) | function p(e){if(o.isFunction(e)){if(l)return e.name;var t=e.toString(),... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 67) | function m(e,t){return"string"===typeof e?e.length... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 67) | function g(e){if(l||!o.isFunction(e))return o.inspect(e);var t=p(e),n=t?... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 67) | function y(e,t,n,r,i){throw new d.AssertionError({message:n,actual:e,exp... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i0?(e.rating-1... method constructor (line 67) | constructor(){super(["ID3v2.3","ID3v2.4"],o)} method postMap (line 67) | postMap(e,t){switch(e.id){case"UFID":"http://musicbrainz.org"===e.valu... class c (line 67) | class c{constructor(e){this.len=e.objectSize-t.HeaderObjectToken.len}pos... method constructor (line 12) | constructor(e,t,n){if(this.len=e,e=o.ChunkHeader.len){const t=await this.to... method readData (line 23) | static readData(t,n,r,u){if(0===t.length)return;const{encoding:f,bom:d... method fixPictureMimeType (line 23) | static fixPictureMimeType(e){switch(e=e.toLocaleLowerCase(),e){case"jp... method functionList (line 23) | static functionList(e){const t={};for(let n=0;n+1=4?/\x00/g:/\//g);return l.tr... method trimArray (line 23) | static trimArray(e){for(let t=0;t{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... class f (line 67) | class f extends c{constructor(e){super(e)}get(e,t){return{streamType:a.d... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... class d (line 67) | class d{constructor(){this.len=22}get(e,t){return{reserved1:a.default.fr... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function p (line 67) | async function p(e){const t=await e.readNumber(i.UINT16_LE);return(await... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 67) | async function m(e){const t=await e.readToken(h),n=[];for(let r=0;r... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 67) | async function g(t){const n=await t.readNumber(i.UINT16_LE),r=e.alloc(n)... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} class y (line 67) | class y extends c{constructor(e){super(e)}get(e,t){const n=[];let r=t+10... method constructor (line 12) | constructor(e){super(e,t.TimeToSampleToken),this.len=e} method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){const n=[];let r=t+10;for(let i=0;i{this.reject=t,this.reso... method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){return e.slice(t,t+this.len)} method constructor (line 56) | constructor(e,t,n){this.header=e,this.extended=t,this.parent=n,this.ch... method readAtom (line 56) | static async readAtom(e,t,n){const r=e.position,s=await e.readToken(i.... method getHeaderLength (line 56) | getHeaderLength(){return this.extended?16:8} method getPayloadLength (line 56) | getPayloadLength(){return this.header.length-this.getHeaderLength()} method readAtoms (line 56) | async readAtoms(e,t,n){while(n>0){const r=await o.readAtom(e,t,this);t... method readData (line 56) | async readData(e,t){switch(this.header.name){case"moov":case"udta":cas... method constructor (line 61) | constructor(e,t,n){super(e,t),this.tokenizer=n,this.lastPos=-1} method parseFirstPage (line 61) | parseFirstPage(e,t){if(this.metadata.setFormat("codec","Opus"),this.id... method parseFullPage (line 61) | parseFullPage(e){const t=new r.StringType(8,"ascii").get(e,0);switch(t... method calculateDuration (line 61) | calculateDuration(e){if(this.metadata.format.sampleRate&&e.absoluteGra... method isBitSet (line 61) | static isBitSet(e,t){return 1===o.getBitAllignedNumber(e,t,1)} method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n){return e>>>t&4294967295>>>32-n} method constructor (line 61) | constructor(e,t){this.isAifc=t;const n=t?22:18;i.ok(e.chunkSize>=n,`CO... method get (line 61) | get(e,t){const n=e.readUInt16BE(t+8)-16398,i=e.readUInt16BE(t+8+2),o={... function c (line 67) | function c(){c.init.call(this)} method constructor (line 12) | constructor(e,t,n){if(this.len=e,e{this.metadata.addTag(l,e.id,e.value)})} method parseExtensionObject (line 23) | async parseExtensionObject(e){do{const t=await this.tokenizer.readToke... method constructor (line 56) | constructor(){super(...arguments),this.audioLength=0} method parse (line 56) | async parse(){const e=await this.tokenizer.readToken(o.Header);i.equal... method skipAudioData (line 56) | async skipAudioData(e){while(e-- >0){const e=await this.bitreader.read... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{fileId:a.default.fromBin(e,t),fileSize:i.UINT64_LE.get... function f (line 67) | function f(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._m... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{type:{set:r.UINT8.get(e,t+0),type:r.UINT24_BE.get(e,t+... method getGenre (line 12) | static getGenre(e){if(ec.WavPack.MetadataIdToken.len... method constructor (line 67) | constructor(e){super(e)} method get (line 67) | get(e,t){return{streamType:a.default.decodeMediaType(a.default.fromBin... function d (line 67) | function d(e,t,n,r){var i,a,s;if(u(n),a=e._events,void 0===a?(a=e._event... method constructor (line 1) | constructor(e){this.opts=e,this.format={tagTypes:[],trackInfo:[]},this... method hasAny (line 1) | hasAny(){return Object.keys(this.native).length>0} method addStreamInfo (line 1) | addStreamInfo(e){u(`streamInfo: type=${r.TrackType[e.type]}, codec=${e... method setFormat (line 1) | setFormat(e,t){u(`format: ${e} = ${t}`),this.format[e]=t,this.opts.obs... method addTag (line 1) | addTag(e,t,n){u(`tag ${e}.${t} = ${n}`),this.native[e]||(this.format.t... method addWarning (line 1) | addWarning(e){this.quality.warnings.push({message:e})} method postMap (line 1) | postMap(e,t){switch(t.id){case"artist":if(this.commonOrigin.artist===t... method toCommonMetadata (line 1) | toCommonMetadata(){return{format:this.format,native:this.native,qualit... method postFixPicture (line 1) | async postFixPicture(e){if(e.data.length>0){if(!e.format){const t=awai... method toCommon (line 1) | toCommon(e,t,n){const r={id:t,value:n},i=this.tagMapper.mapTag(e,r,thi... method setGenericTag (line 1) | setGenericTag(e,t){u(`common.${t.id} = ${t.value}`);const n=this.commo... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){this.tagMappers={},[new r.ID3v1TagMapper,new o.ID3v22Tag... method mapTag (line 38) | mapTag(e,t,n){const r=this.tagMappers[e];if(r)return this.tagMappers[e... method registerTagMapper (line 38) | registerTagMapper(e){for(const t of e.tagTypes)this.tagMappers[t]=e} method constructor (line 67) | constructor(){this.len=22} method get (line 67) | get(e,t){return{reserved1:a.default.fromBin(e,t),reserved2:e.readUInt1... function h (line 67) | function h(){if(!this.fired)return this.target.removeListener(this.type,... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{version:r.UINT8.get(e,t),flags:r.UINT24_BE.get(e,t+1),... method constructor (line 38) | constructor(){super(...arguments),this.ape={}} method tryParseApeHeader (line 38) | static tryParseApeHeader(e,t,n){const r=new h;return r.init(e,t,n),r.t... method calculateDuration (line 38) | static calculateDuration(e){let t=e.totalFrames>1?e.blocksPerFrame*(e.... method findApeFooterOffset (line 38) | static async findApeFooterOffset(t,n){const r=e.alloc(c.TagFooter.len)... method parseTagFooter (line 38) | static parseTagFooter(e,t,n){const r=c.TagFooter.get(t,t.length-c.TagF... method tryParseApeHeader (line 38) | async tryParseApeHeader(){if(this.tokenizer.fileInfo.size&&this.tokeni... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(c.DescriptorParse... method parseTags (line 38) | async parseTags(t){const n=e.alloc(256);let r=t.size-c.TagFooter.len;u... method parseDescriptorExpansion (line 38) | async parseDescriptorExpansion(e){return await this.tokenizer.ignore(e... method parseHeader (line 38) | async parseHeader(){const e=await this.tokenizer.readToken(c.Header);r... method constructor (line 38) | constructor(){super(...arguments),this.padding=0} method init (line 38) | init(e,t,n){return super.init(e,t,n),this.vorbisParser=new l.VorbisPar... method _parse (line 38) | async _parse(){const e=await this.tokenizer.readToken(s.FourCcToken);i... method parseDataBlock (line 38) | parseDataBlock(e){switch(f(`blockHeader type=${e.type}, length=${e.len... method parseBlockStreamInfo (line 38) | async parseBlockStreamInfo(e){if(e!==p.BlockStreamInfo.len)throw new E... method parseComment (line 38) | async parseComment(e){const t=await this.tokenizer.readToken(new i.Buf... method parsePicture (line 38) | async parsePicture(e){if(this.options.skipCovers)return this.tokenizer... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(u.Header);if("FOR... method readData (line 61) | async readData(e){switch(e.chunkID){case"COMM":const t=await this.toke... method parse (line 61) | async parse(){const e=await this.tokenizer.readToken(l.ChunkHeader);r.... method readFmt8Chunks (line 61) | async readFmt8Chunks(e){while(e>=l.ChunkHeader.len){const t=await this... method readData (line 61) | async readData(e){d(`Reading data of chunk[ID=${e.chunkID}, size=${e.c... method handleSoundPropertyChunks (line 61) | async handleSoundPropertyChunks(e){d(`Parsing sound-property-chunks, r... method handleChannelChunks (line 61) | async handleChannelChunks(e){d(`Parsing channel-chunks, remainingSize=... function p (line 67) | function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener... method constructor (line 23) | constructor(e,t){this.versionIndex=s.default.getBitAllignedNumber(e,t+... method calcDuration (line 23) | calcDuration(e){return e*this.calcSamplesPerFrame()/this.samplingRate} method calcSamplesPerFrame (line 23) | calcSamplesPerFrame(){return p.samplesInFrameTable[1===this.version?0:... method calculateSideInfoLength (line 23) | calculateSideInfoLength(){if(3!==this.layer)return 2;if(3===this.chann... method calcSlotSize (line 23) | calcSlotSize(){return[null,4,1,1][this.layer]} method parseMpegHeader (line 23) | parseMpegHeader(e,t){this.container="MPEG",this.bitrateIndex=s.default... method parseAdtsHeader (line 23) | parseAdtsHeader(e,t){u("layer=0 => ADTS"),this.version=2===this.versio... method calcBitrate (line 23) | calcBitrate(){if(0===this.bitrateIndex||15===this.bitrateIndex)return;... method calcSamplingRate (line 23) | calcSamplingRate(){return 3===this.sampRateFreqIndex?null:p.sampling_r... method parse (line 38) | async parse(){const e=await this.tokenizer.readToken(o.Header);if(h(`p... method parseRiffChunk (line 38) | async parseRiffChunk(e){const t=await this.tokenizer.readToken(u.FourC... method readWaveChunk (line 38) | async readWaveChunk(e){do{const t=await this.tokenizer.readToken(o.Hea... method parseListTag (line 38) | async parseListTag(e){const t=await this.tokenizer.readToken(u.FourCcT... method parseRiffInfoTags (line 38) | async parseRiffInfoTags(e){while(e>=8){const t=await this.tokenizer.re... method addTag (line 38) | addTag(e,t){this.metadata.addTag("exif",e,t)} function m (line 67) | function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];retu... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){return{dataFormat:i.FourCcToken.get(e,t),dataReferenceIndex:r... method constructor (line 12) | constructor(e){this.len=e.page_segments} method sum (line 12) | static sum(e,t,n){let r=0;for(let i=t;i... method parseAtom_stsz (line 23) | async parseAtom_stsz(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_stco (line 23) | async parseAtom_stco(e){const t=await this.tokenizer.readToken(new c.S... method parseAtom_mdat (line 23) | async parseAtom_mdat(e){if(this.options.includeChapters){const t=this.... method parseChapterTrack (line 23) | async parseChapterTrack(e,t,n){e.sampleSize||a.equal(e.chunkOffsetTabl... method findSampleOffset (line 23) | findSampleOffset(e,t){let n=0;e.timeToSampleTable.forEach(e=>{n+=e.cou... method getChunkDuration (line 23) | getChunkDuration(e,t){let n=0,r=t.timeToSampleTable[n].count,i=t.timeT... method getSamplesPerChunk (line 23) | getSamplesPerChunk(e,t){for(let n=0;n=t[n].firstC... function g (line 67) | function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"... method constructor (line 12) | constructor(e){this.len=e} method get (line 12) | get(e,t){const n=p.get(e,t);t+=p.len;const i=[];for(let a=0;a=0,"frame-data-left cannot be negative")... method areAllSame (line 23) | areAllSame(e){const t=e[0];return e.every(e=>e===t)} function y (line 67) | function y(e,t){for(;t+1=16,"16 for PCM."),this.len=e.chunkSize} method get (line 38) | get(e,t){return{wFormatTag:e.readUInt16LE(t),nChannels:e.readUInt16LE(... method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n=null,i){const a=e.alloc(t.len),o=await this.readBu... method peekToken (line 38) | async peekToken(t,n=this.position,i){const a=e.alloc(t.len),o=await th... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,0,e.l... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,0,e.l... method close (line 38) | async close(){} method constructor (line 38) | constructor(t){this.position=0,this.numBuffer=e.alloc(10),this.fileInf... method readToken (line 38) | async readToken(t,n){const i=e.alloc(t.len),a=await this.readBuffer(i,... method peekToken (line 38) | async peekToken(t,n=this.position){const i=e.alloc(t.len),a=await this... method readNumber (line 38) | async readNumber(e){const t=await this.readBuffer(this.numBuffer,{leng... method peekNumber (line 38) | async peekNumber(e){const t=await this.peekBuffer(this.numBuffer,{leng... method close (line 38) | async close(){} method constructor (line 38) | constructor(e){if(this.len=e,e<19)throw new Error("ID-header-page 0 sh... method get (line 38) | get(e,t){return{magicSignature:new r.StringType(8,"ascii").get(e,t+0),... method constructor (line 38) | constructor(e){this.tokenizer=e,this.pos=0,this.dword=void 0} method read (line 38) | async read(e){while(void 0===this.dword)this.dword=await this.tokenize... method ignore (line 38) | async ignore(e){if(this.pos>0){const t=32-this.pos;this.dword=void 0,e... method constructor (line 56) | constructor(e){super(),this.buf=e} method _read (line 56) | _read(){this.push(this.buf),this.push(null)} method constructor (line 61) | constructor(){super(["ID3v2.2"],t.id3v22TagMap)} method constructor (line 67) | constructor(e,t){this.tagTypes=e,this.tagMap=t} method parseGenre (line 67) | static parseGenre(e){const t=e.trim().split(/\((.*?)\)/g).filter(e=>""... method toIntOrNull (line 67) | static toIntOrNull(e){const t=parseInt(e,10);return isNaN(t)?null:t} method normalizeTrack (line 67) | static normalizeTrack(e){const t=e.toString().split("/");return{no:par... method mapGenericTag (line 67) | mapGenericTag(e,t){e={id:e.id,value:e.value},this.postMap(e,t);const n... method getCommonName (line 67) | getCommonName(e){return this.tagMap[e]} method postMap (line 67) | postMap(e,t){} class a (line 67) | class a extends r.CommonTagMapper{constructor(){super([t.tagType],i)}} method constructor (line 12) | constructor(){super(["APEv2"],i)} method constructor (line 23) | constructor(){super(["ID3v1"],i)} method getParserForAttr (line 23) | static getParserForAttr(e){return a.attributeParsers[e]} method parseUnicodeAttr (line 23) | static parseUnicodeAttr(e){return r.default.stripNulls(r.default.decod... method parseByteArrayAttr (line 23) | static parseByteArrayAttr(t){const n=e.alloc(t.length);return t.copy(n... method parseBoolAttr (line 23) | static parseBoolAttr(e,t=0){return 1===a.parseWordAttr(e,t)} method parseDWordAttr (line 23) | static parseDWordAttr(e,t=0){return e.readUInt32LE(t)} method parseQWordAttr (line 23) | static parseQWordAttr(e,t=0){return i.UINT64_LE.get(e,t)} method parseWordAttr (line 23) | static parseWordAttr(e,t=0){return e.readUInt16LE(t)} method constructor (line 23) | constructor(e){this.len=e} method get (line 23) | get(e,t){} method constructor (line 23) | constructor(e){this.len=e} method fromBase64 (line 23) | static fromBase64(t){return this.fromBuffer(e.from(t,"base64"))} method fromBuffer (line 23) | static fromBuffer(e){const t=new a(e.length);return t.get(e,0)} method get (line 23) | get(t,n){const a=i.AttachedPictureType[r.UINT32_BE.get(t,n)],o=r.UINT3... method constructor (line 38) | constructor(){super(["matroska"],i)} method constructor (line 38) | constructor(e){r.ok(e.chunkSize>=4,"minimum fact chunk size."),this.le... method get (line 38) | get(e,t){return{dwSampleLength:e.readUInt32LE(t)}} method toRating (line 38) | static toRating(e,t){return{source:e?e.toLowerCase():e,rating:parseFlo... method constructor (line 38) | constructor(){super(["vorbis"],i)} method postMap (line 38) | postMap(e){if(0===e.id.indexOf("RATING:")){const t=e.id.split(":");e.v... method constructor (line 38) | constructor(e){this.tagHeader=e,this.len=e.chunkSize,this.len+=1&this.... method get (line 38) | get(e,t){return new r.StringType(this.tagHeader.chunkSize,"ascii").get... method findZero (line 61) | static findZero(e,t,n,r){let i=t;if("utf16"===r){while(0!==e[i]||0!==e... method trimRightNull (line 61) | static trimRightNull(e){const t=e.indexOf("\0");return-1===t?e:e.subst... method swapBytes (line 61) | static swapBytes(e){const t=e.length;r.ok(0===(1&t),"Buffer length mus... method readUTF16String (line 61) | static readUTF16String(e){let t=0;return 254===e[0]&&255===e[1]?(e=a.s... method decodeString (line 61) | static decodeString(e,t){if(255===e[0]&&254===e[1]&&254===e[2]&&255===... method stripNulls (line 61) | static stripNulls(e){return e=e.replace(/^\x00+/g,""),e=e.replace(/\x0... method getBitAllignedNumber (line 61) | static getBitAllignedNumber(e,t,n,r){const i=t+~~(n/8),o=n%8;let s=e[i... method isBitSet (line 61) | static isBitSet(e,t,n){return 1===a.getBitAllignedNumber(e,t,n,1)} method a2hex (line 61) | static a2hex(e){const t=[];for(let n=0,r=e.length;n