/**
 * Collection of tags by name and value
 */ export class TagMap extends Map < string , any > { /**
     * Convert to object (sets empty values to true)
     */ toObject ( ) { return Array . from ( this . entries ( ) ) . reduce ( ( res , [ k , v ] ) => { res [ k ] = ( v === undefined ) ? true : v ; return res ; } , < Record < string , any > > { } ) ; } }