1import{i as e,r as t}from"./music-taxonomy-ZS6WOhjx.js";var n=[`All genres`,`Hip-Hop`,`Pop`,`R&B`,`Electronic`,`Rock`,`Alternative`,`Indie`,`Latin`,`Country`,`Afrobeats`,`Christian / Gospel`,`Jazz`],r={"All types":null,Media:[`media`,`press`,`blog`,`magazine`,`journalist`,`editorial`],Playlists:[`playlist`,`curator`,`spotify`],Radio:[`radio`,`airplay`,`broadcast`,`fm`],Podcasts:[`podcast`,`show`,`episode`,`interview`],Creators:[`creator`,`youtube`,`tiktok`,`influencer`,`channel`],Labels:[`label`,`imprint`,`records`],"A&R":[`a&r`,`a & r`,`scout`,`signing`],Sync:[`sync`,`licensing`,`film`,`tv`,`advert`,`trailer`],Live:[`live`,`festival`,`venue`,`tour`,`booking`,`promoter`],Brands:[`brand`,`campaign`,`partnership`,`sponsor`]},i={"All types":null,Media:[`MEDIA`,`PRESS`,`JOURNALIST`,`EDITOR`],Playlists:[`PLAYLIST`,`CURATOR`],Radio:[`RADIO`],Podcasts:[`PODCAST`],Creators:[`CREATOR`,`INFLUENCER`,`YOUTUBE`,`TIKTOK`],Labels:[`LABEL`],"A&R":[`A&R`,`SCOUT`],Sync:[`SYNC`,`SUPERVISOR`],Live:[`LIVE`,`PROMOTER`,`VENUE`,`FESTIVAL`],Brands:[`BRAND`,`MARKETING`]};function a(e){let n=t(e.toLowerCase().replace(/&/g,`and`).replace(/[^a-z0-9]+/g,`-`).replace(/(^-|-$)/g,``));return n?`/genres/${n}`:`/genres`}var o={"Hip-Hop":[`hip hop`,`hip-hop`,`hiphop`,`rap`,`rapper`,`trap`,`drill`,`grime`,`boom bap`],Pop:[`pop`,`popstar`,`top 40`,`mainstream`],"R&B":[`r&b`,`rnb`,`r and b`,`rhythm and blues`,`soul`,`neo soul`,`funk`,`motown`],Electronic:[`electronic`,`electronica`,`edm`,`house`,`techno`,`trance`,`dubstep`,`drum and bass`,`dnb`,`bass music`],Dance:[`dance`,`club`,`dancefloor`,`rave`,`edm`,`house`],Rock:[`rock`,`guitar`,`garage rock`,`classic rock`,`psych rock`],Alternative:[`alternative`,`alt rock`,`shoegaze`,`emo`,`grunge`,`post punk`],Indie:[`indie`,`independent artist`,`diy`,`bedroom pop`,`indie rock`,`indie pop`],Latin:[`latin`,`latino`,`latina`,`urbano`,`reggaeton`,`cumbia`,`salsa`,`bachata`,`regional mexican`,`corridos`],Country:[`country`,`americana`,`bluegrass`,`nashville`,`honky tonk`,`roots`],Afrobeats:[`afrobeats`,`afrobeat`,`afropop`,`afro pop`,`amapiano`,`highlife`,`african music`,`afro`],"Christian / Gospel":[`christian`,`gospel`,`worship`,`praise`,`faith`,`faith based`,`ccm`,`contemporary christian`,`church`,`hymn`,`spiritual`,`inspirational`],Jazz:[`jazz`,`bebop`,`swing`,`bossa`,`blues`,`big band`],Classical:[`classical`,`orchestral`,`orchestra`,`composer`,`score`,`cinematic`,`chamber`,`opera`],"K-Pop":[`k-pop`,`k pop`,`kpop`,`korean`,`hallyu`,`idol`]};function s(e,t){let n=o[e];if(!n||n.length===0)return 0;let r=e=>` ${e.toLowerCase().replace(/&/g,` and `).replace(/[^a-z0-9]+/g,` `).replace(/\s+/g,` `).trim()} `,i=e=>{let t=r(e);return n.some(e=>t.includes(` ${r(e).trim()} `))};return i(t.genres.join(` `))?2:+!!i(t.text)}function c(t,n){if(s(t,{genres:n.genres,text:``})===2)return 5;if(s(t,{genres:[],text:[n.title,...n.tags??[]].join(` `)})>0)return 4;let r=e([t]);if(r.size===0)return 0;let i=t=>[...e(t)].some(e=>r.has(e));return i(n.genres)?3:+!!i([n.title,...n.tags??[]])}export{c as a,a as i,i as n,r,n as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.