PageSourceSearch

https://assets.genius.com/javascripts/compiled/index-DchkhONC.js

js genius.com collected 2026-10-01 07:17:05 UTC 13,611 bytes, 2 lines download raw bytes

1import{s as te,k as ne}from"./client-CVIjrVQr.js";import{B as re,d as k}from"./useMixpanelEvent-CwzNdz1P.js";import{b as oe,m as H}from"./mergeWith-DMPvSX07.js";import"./react-vendor-n58YcWca.js";import"./styled-components.browser.esm-bLCX9LcF.js";function N(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function se(t,e){if(N(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(e,n[o])||!N(t[n[o]],e[n[o]]))return!1;return!0}function ie(t){return Number.isSafeInteger(t)&&t>=0}function ae(t){return t!=null&&typeof t!="function"&&ie(t.length)}function ce(t,e){const n=new Set(e);return t.filter(r=>!n.has(r))}function ue(t){return oe(t)&&ae(t)}function me(t,...e){return ce(t,e)}function G(t,...e){return ue(t)?me(Array.from(t),...e):[]}function fe(t){const e={},n=Object.keys(t);for(let r=0;r<n.length;r++){const o=n[r],s=t[o];e[s]=o}return e}function V(t,e){const n={...t};for(let r=0;r<e.length;r++){const o=e[r];delete n[o]}return n}function v(t){return!!(t&&typeof t.hasOwnProperty=="function"&&(t.hasOwnProperty("__ownerID")||t._map&&t._map.hasOwnProperty("__ownerID")))}function K(t,e,n){return Object.keys(t).reduce(function(r,o){var s=""+o;return r.has(s)?r.set(s,n(r.get(s),t[s])):r},e)}var w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},C=(function(){function t(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}})(),S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},$=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},le=function(e){return function(n){return v(n)?n.get(e):n[e]}},he=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(b(this,t),!e||typeof e!="string")throw new Error("Expected a string key for Entity, but found "+e+".");var o=r.idAttribute,s=o===void 0?"id":o,a=r.mergeStrategy,f=a===void 0?function(d,_){return S({},d,_)}:a,i=r.processStrategy,l=i===void 0?function(d){return S({},d)}:i;this._key=e,this._getId=typeof s=="function"?s:le(s),this._idAttribute=s,this._mergeStrategy=f,this._processStrategy=l,this.define(n)}return t.prototype.define=function(n){this.schema=Object.keys(n).reduce(function(r,o){var s,a=n[o];return S({},r,(s={},s[o]=a,s))},this.schema||{})},t.prototype.getId=function(n,r,o){return this._getId(n,r,o)},t.prototype.merge=function(n,r){return this._mergeStrategy(n,r)},t.prototype.normalize=function(n,r,o,s,a){var f=this,i=this._processStrategy(n,r,o);return Object.keys(this.schema).forEach(function(l){if(i.hasOwnProperty(l)&&w(i[l])==="object"){var d=f.schema[l];i[l]=s(i[l],i,l,d,a)}}),a(this,i,n,r,o),this.getId(n,r,o)},t.prototype.denormalize=function(n,r){var o=this;return v(n)?K(this.schema,n,r):(Object.keys(this.schema).forEach(function(s){if(n.hasOwnProperty(s)){var a=o.schema[s];n[s]=r(n[s],a)}}),n)},C(t,[{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),t})(),x=(function(){function t(e,n){b(this,t),n&&(this._schemaAttribute=typeof n=="string"?function(r){return r[n]}:n),this.define(e)}return t.prototype.define=function(n){this.schema=n},t.prototype.getSchemaAttribute=function(n,r,o){return!this.isSingleSchema&&this._schemaAttribute(n,r,o)},t.prototype.inferSchema=function(n,r,o){if(this.isSingleSchema)return this.schema;var s=this.getSchemaAttribute(n,r,o);return this.schema[s]},t.prototype.normalizeValue=function(n,r,o,s,a){var f=this.inferSchema(n,r,o);if(!f)return n;var i=s(n,r,o,f,a);return this.isSingleSchema||i===void 0||i===null?i:{id:i,schema:this.getSchemaAttribute(n,r,o)}},t.prototype.denormalizeValue=function(n,r){var o=v(n)?n.get("schema"):n.schema;if(!this.isSingleSchema&&!o)return n;var s=v(n)?n.get("id"):n.id,a=this.isSingleSchema?this.schema:this.schema[o];return r(s||n,a)}
1,C(t,[{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),t})(),de=(function(t){U(e,t);function e(n,r){if(b(this,e),!r)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return $(this,t.call(this,n,r))}return e.prototype.normalize=function(r,o,s,a,f){return this.normalizeValue(r,o,s,a,f)},e.prototype.denormalize=function(r,o){return this.denormalizeValue(r,o)},e})(x),pe=(function(t){U(e,t);function e(){return b(this,e),$(this,t.apply(this,arguments))}return e.prototype.normalize=function(r,o,s,a,f){var i=this;return Object.keys(r).reduce(function(l,d,_){var P,j=r[d];return j!=null?S({},l,(P={},P[d]=i.normalizeValue(j,r,d,a,f),P)):l},{})},e.prototype.denormalize=function(r,o){var s=this;return Object.keys(r).reduce(function(a,f){var i,l=r[f];return S({},a,(i={},i[f]=s.denormalizeValue(l,o),i))},{})},e})(x),ge=function(e){var n=Array.isArray(e);if(n&&e.length>1)throw new Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},Q=function(e){return Array.isArray(e)?e:Object.keys(e).map(function(n){return e[n]})},ye=function(e,n,r,o,s,a){e=ge(e);var f=Q(n);return f.map(function(i,l){return s(i,r,o,e,a)})},Se=(function(t){U(e,t);function e(){return b(this,e),$(this,t.apply(this,arguments))}return e.prototype.normalize=function(r,o,s,a,f){var i=this,l=Q(r);return l.map(function(d,_){return i.normalizeValue(d,o,s,a,f)}).filter(function(d){return d!=null})},e.prototype.denormalize=function(r,o){var s=this;return r&&r.map?r.map(function(a){return s.denormalizeValue(a,o)}):r},e})(x),W=function(e,n,r,o,s,a){var f=S({},n);return Object.keys(e).forEach(function(i){var l=e[i],d=s(n[i],n,i,l,a);d==null?delete f[i]:f[i]=d}),f},be=function(e,n,r){if(v(n))return K(e,n,r);var o=S({},n);return Object.keys(e).forEach(function(s){o[s]&&(o[s]=r(o[s],e[s]))}),o},ve=(function(){function t(e){b(this,t),this.define(e)}return t.prototype.define=function(n){this.schema=Object.keys(n).reduce(function(r,o){var s,a=n[o];return S({},r,(s={},s[o]=a,s))},this.schema||{})},t.prototype.normalize=function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return W.apply(void 0,[this.schema].concat(r))},t.prototype.denormalize=function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return be.apply(void 0,[this.schema].concat(r))},t})(),we=function t(e,n,r,o,s){if((typeof e>"u"?"undefined":w(e))!=="object"||!e)return e;if((typeof o>"u"?"undefined":w(o))==="object"&&(!o.normalize||typeof o.normalize!="function")){var a=Array.isArray(o)?ye:W;return a(o,e,n,r,t,s)}return o.normalize(e,n,r,t,s)},Ae=function(e){return function(n,r,o,s,a){var f=n.key,i=n.getId(o,s,a);f in e||(e[f]={});var l=e[f][i];l?e[f][i]=n.merge(l,r):e[f][i]=r}},c={Array:Se,Entity:he,Object:ve,Union:de,Values:pe},Oe=function(e,n){if(!e||(typeof e>"u"?"undefined":w(e))!=="object")throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(typeof e>"u"?"undefined":w(e))+'".');var r={},o=Ae(r),s=we(e,e,null,n,o);return{entities:r,result:s}};const Qe=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!se(t[n],e[n]))return!1;return!0},ze=(t,e)=>{const n=re(V(t,["permissions","excludedPermissions"]),V(e,["permissions","excludedPermissions"]));return n.permissions=[...new Set([...t?.permissions??[],...e?.permissions??[]])],e?.excludedPermissions&&(n.permissions=G(n.permissions,...e.excludedPermissions)),n.excludedPermissions=[...new Set([...t?.excludedPermissions??[],...e?.excludedPermissions??[]])],e?.permissions&&(n.excludedPermissions=G(n.excludedPermissions,...e.permissions)),n},Y=(t,e,n)=>n==="currentUserMetadata"?ze(t,e):Array.isArray(e)?e:void 0,We=(t,e)=>{H(t,e,Y)},Ee=(t,e)=>H({},t,e,Y),Ye=t=>(e,n)=>t.reduce((r,o)=>o(r,n),e),_e=[["album","albums"],["annotation","annotations"],["annotationEdit","annotationEdits"],["answer","answers"],["article","articles"],["artist","artists"],["comment","comments"],["coverArt","coverArts"],["discussion","discussions"],["forumPost","forumPosts"],["group","groups"],["question","questions"],["referent","referents"],["song","songs"],["user","users"],["video","videos"]],I=Object.fromEntries(_e),M=fe(I),Pe=t=>{if(!(t in M))throw new Error(`No plural to singular mapping for plural entity ${t}. Add new entry to SINGULAR_PLURAL_ENTITIES above if needed.`);return M[t]},je=t=>{if(!(t in I))throw new Error(`No singular to plural mapping for singular entity ${t}. Add new entry to SINGULAR_PLURAL_ENTITIES above if needed.`);return I[t]},Fe=t=>te(Pe(t)),Je=t=>k(t),z={},u=(t,...e)=>{const n=new c.Entity(t,...e);return z[t]=n,n},Xe=t=>
1{if(!z[t])throw new Error(`Schema "${t}" not found in registry.`);return z[t]},m=u("users",{},{mergeStrategy:Ee}),D={user:m},F=u("articles",{author:m}),L=u("videos",{author:m}),Ze=u("videoLists",{latestEpisode:L}),A=u("comments",{author:m}),et=new c.Object({comments:[A]}),tt=new c.Object({contributors:{iqEarners:[D],transcribers:[D]}}),nt=new c.Object({voters:{up:[m],down:[m]}}),rt=u("versions",{user:m}),ot=u("annotationEdits",{createdBy:m}),E=u("annotations",{authors:[{user:m}],cosignedBy:[m],verifiedBy:m,createdBy:m,acceptedBy:m,topComment:A,rejectionComment:A}),y=u("referents",{annotations:[E]}),st=new c.Values(y),it=new c.Object({referents:[y]}),at=new c.Object({annotation:E,referent:y}),h=u("artists",{user:m,descriptionAnnotation:y}),ct=u("artistVerificationRequests",{artist:h,submitter:m,reviewer:m}),Ie=new c.Object({user:m,artist:h}),R=u("tags"),ut=new c.Array(h),mt=new c.Array(R),T=u("albumAppearances",{},{idAttribute:t=>t.song.id}),Re=u("customPerformanceRoles"),ft=new c.Array(Re),Ue=u("coverArts",{descriptionAnnotation:y}),J=new c.Object({artists:[h]}),g=u("albums",{artist:h,primaryArtists:[h],producerArtists:[h],writerArtists:[h],tracklist:[T],descriptionAnnotation:y,performanceGroups:[J],coverArts:[Ue]}),$e=new c.Object({user:m}),p=u("songs",{album:g,albums:[g],songArtSourceAlbum:g,customPerformances:[J],primaryArtists:[h],featuredArtists:[h],producerArtists:[h],writerArtists:[h],verifiedContributors:[Ie],verifiedAnnotationsBy:[h],verifiedLyricsBy:[h],descriptionAnnotation:y,lyricsMarkedCompleteBy:m,lyricsMarkedStaffApprovedBy:m,primaryTag:R,topScholar:$e,tags:[R]}),xe=new c.Object({songs:[p]}),Le=new c.Object({artists:[h]}),Te=new c.Object({albums:[g]});p.define({songRelationships:[xe],translationSongs:[p]});g.define({albumRelationships:[Te]});const lt=new c.Object({recommendations:[{recommendedSong:p}]}),qe=u("lyricsEditProposals",{user:m}),ht=[qe];T.define({song:p});const dt=new c.Object({song:p});g.define({tracks:[T],translationOf:g,translationAlbums:[g]});h.define({artistRelationships:[Le]});const pt=u("collaborations",{collaborator:h}),gt=new c.Object({referents:[y]}),yt={content:new c.Union({articles:F,videos:L},t=>`${t.type}s`)},St={item:new c.Union({songs:p,artists:h,albums:g,referents:y},({type:t})=>`${t}s`)},q=u("answers",{authors:[{user:m}]}),X=u("questions",{author:m,answer:q,questionable:new c.Union({songs:p,albums:g},(t,e)=>`${e.questionableType}s`)});q.define({question:X});const B=u("forumPosts",{author:m}),Z=u("groups"),Ne=u("discussions",{firstPost:B,latestPosts:[B],author:m,latestPostAuthor:m,group:Z}),Ge=u("questionAnswers",{questionable:new c.Union({songs:p,albums:g,artists:h},(t,e)=>`${e.questionableType}s`)});u("relatedQuestions",{questions:[Ge],questionable:new c.Union({songs:p,albums:g,artists:h},(t,e)=>`${e.questionableType}s`)});u("defaultQuestions");const bt=new c.Object({annotation:E,question:X,answer:q,comment:A,video:L,article:F}),vt=new c.Object({annotation:E,referent:y,song:p}),wt=new c.Object({album:g,artist:h,discussion:Ne,group:Z,song:p,user:m}),At=new c.Union({albums:g,songs:p},t=>`${t.type}s`),Ve=new c.Union({song:p},t=>t.type),Ot={hits:[{result:Ve}]},zt=new c.Object({}),O=new c.Union(z,t=>{if(!(!t?.id||!t?.type))try{return je(k(t.type))}catch{return}});A.define({commentable:O});const Et=new c.Object({actors:[m],targets:[O],actions:[O],context:O,metadata:[{lyricsEditAcceptor:m}]}),Me=u("externalSongs"),ee=u("lyricsSynchronizations",{externalSongs:[Me]});p.define({lyricsSynchronization:ee});const De=u("lyricsSynchronizationActions");ee.define({lyricsSynchronizationActions:[De]});const _t=(t,e)=>Oe(ne(t),e);export{Fe as A,st as B,y as C,ae as D,tt as E,Ye as F,E as G,De as H,at as I,rt as J,ot as K,et as L,A as M,bt as N,nt as O,X as P,q as Q,Je as R,ft as S,Et as T,vt as U,gt as V,ht as W,lt as X,it as Y,ut as Z,Xe as _,se as a,zt as b,g as c,dt as d,T as e,p as f,At as g,ct as h,h as i,D as j,yt as k,St as l,We as m,_t as n,pt as o,Qe as p,V as q,ee as r,Ot as s,mt as t,m as u,Ze as v,G as w,je as x,wt as y,Pe as z};
2//# sourceMappingURL=index-DchkhONC.js.map

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.