PageSourceSearch

https://www.epidemicsound.com/staticfiles/public-pages/_next/static/chunks/3936-bf4f3d714bf0e27a.js

js epidemicsound.com collected 2026-09-24 08:27:11 UTC 11,992 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:epidemic-public-pages":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5d391630-e9f8-4c98-8100-95ceeedc6c2a",e._sentryDebugIdIdentifier="sentry-dbid-5d391630-e9f8-4c98-8100-95ceeedc6c2a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3936],{2370:(e,t,r)=>{"use strict";r.d(t,{G:()=>s.ContentfulImage});var s=r(58315)},2803:(e,t,r)=>{"use strict";r.d(t,{H:()=>o,h:()=>l});var s=r(59908),n=r(75424),a=r(12402);function l(e,t){(0,a.s)(e)||console.error("Using fastlyLoader for a non-fastly image URL");let r=new URL(e),s=r.searchParams,n={...t};return n.format||(n.format="webp"),n.quality||(n.quality=80),Object.keys(n).forEach(e=>{let t=n[e];void 0!==t&&s.append(e,t.toString())}),r.toString()}function o({alt:e,width:t,height:r,format:a,quality:i,className:c,src:u}){return(0,s.jsx)(n.default,{alt:e,width:t,height:r,className:c,src:u,loader:()=>l(u,{height:r,width:t,format:a,quality:i})})}},2856:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});let s=()=>!1},12402:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});let s=e=>!!e&&"string"==typeof e&&e.includes("epidemicsound.com")},19054:(e,t,r)=>{"use strict";r.d(t,{InlineVideo:()=>u});var s=r(59908),n=r(76294),a=r(24312),l=r(52895),o=r(42034),i=r(67546),c=r.n(i);function u({priority:e,className:t,srcMp4:r,srcWebm:i,srcMov:d,srcPoster:f,muted:b=!0,enableBufferingIndicator:p=!1,id:m}){let g=(0,l.useRef)(null),{hasIntersected:v,isIntersecting:y,onUnobserve:h}=(0,n.B)(g),[k,S]=(0,l.useState)(!1),w=((e,t)=>{let[r,s]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(!t)return()=>{};let r=e.current,n=()=>{s(!0)},a=()=>{s(!1)};return r&&(r.addEventListener("waiting",n),r.addEventListener("canplay",a)),()=>{r&&(r.removeEventListener("waiting",n),r.removeEventListener("canplay",a))}},[e,t]),r})(g,p);return(0,l.useEffect)(()=>{g.current&&(g.current.muted=b)},[b]),(0,l.useEffect)(()=>{f&&g.current&&v&&g.current.setAttribute("poster",`${f}?q=25&fm=webp`)},[v,f]),(0,l.useEffect)(()=>{e||!k&&g.current&&y&&(g.current.querySelectorAll("source").forEach(e=>{"video/mp4"===e.getAttribute("type")?e.setAttribute("src",r):"video/webm"===e.getAttribute("type")?e.setAttribute("src",i):d&&"video/quicktime"===e.getAttribute("type")&&e.setAttribute("src",d)}),g.current.load(),h(),S(!0))},[r,d,i,e,h,k,y]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("video",{id:m,ref:g,autoPlay:!0,loop:!0,muted:b,playsInline:!0,disableRemotePlayback:!0,disablePictureInPicture:!0,className:(0,a.$)(t,{[c().videoSkeleton]:!k&&!e}),children:[d&&(0,s.jsx)("source",{src:e?d:void 0,type:"video/quicktime"}),(0,s.jsx)("source",{src:e?i:void 0,type:"video/webm"}),(0,s.jsx)("source",{src:e?r:void 0,type:"video/mp4"})]}),w&&(0,s.jsx)(o.y,{color:"inverse",className:c().spinner,size:64})]})}},20408:(e,t,r)=>{"use strict";r.r(t),r.d(t,{PlayerContextProvider:()=>p,usePlayerContext:()=>b});var s=r(59908),n=r(52895),a=r(49569),l=r(2856),o=r(26095);let i=(0,o.createServerReference)("4020c9d72ef5a2030e39026795e9b8354cdf72db28",o.callServer,void 0,o.findSourceMapURL,"fetchTrackFromSoundsAPI"),c=(e,t)=>({type:"play",payload:{kosmosId:e,startTimeSec:t}}),u={currentTrackKosmosId:void 0,playbackStatus:"idle",startTimeSec:0},d=(e,t)=>"play"===t.type&&t.payload&&t.payload.kosmosId?{...e,currentTrackKosmosId:t.payload.kosmosId,playbackStatus:"playing",startTimeSec:t.payload.startTimeSec??0}:"pause"===t.type?{...e,playbackStatus:"paused"}:"stop"===t.type?{...e,currentTrackKosmosId:void 0,playbackStatus:"idle"}:e,f=(0,n.createContext)({currentTrackKosmosId:void 0,playbackStatus:"idle",playTrack:e=>Promise.resolve({}),pauseTrack:()=>Promise.resolve({}),stopPlayback:()=>{},audioRef:null}),b=()=>(0,n.useContext)(f);function p({children:e}){let t,r,o,[{currentTrackKosmosId:b,playbackStatus:m,startTimeSec:g},v]=(0,n.useReducer)(d,u),[y,h,k]=(r=(0,n.useRef)(null),o=(0,n.useCallback)(e=>(v(e),new Promise((e,t)=>
1{r.current={resolve:e,reject:t}})),[v]),[o,(0,n.useCallback)(e=>{r.current&&r.current.resolve(e)},[]),(0,n.useCallback)(e=>{r.current&&r.current.reject(e)},[])]),[S,w]=(0,n.useState)(null),_=S?.stems?.full?.lqMp3Url,{data:x,isLoading:I,error:E}=(t=b===S?.kosmosId?void 0:b,(0,a.I)({queryKey:["bySoundsId",t],queryFn:()=>t?i(t):Promise.resolve(null),enabled:!(0,l.S)()&&!!t})),C=x??(b===S?.kosmosId?S:null);(0,n.useEffect)(()=>{!I&&C?(w(C),h(C)):E&&k(E)},[C,I,E,m,h,k]);let L=(0,n.useRef)(null),[P,j]=(0,n.useState)(!1),R=(0,n.useCallback)(e=>{L.current=e,j(!0)},[]);(0,n.useEffect)(()=>{L.current&&_&&("playing"===m&&(g&&(L.current.currentTime=g),L.current.play().catch(e=>{if(!function(e){if("u">typeof DOMException&&e instanceof DOMException&&"AbortError"===e.name&&"play() request was interrupted"===e.message)return!0;if("object"==typeof e&&null!==e&&"name"in e&&"message"in e){let{name:t}=e,{message:r}=e;return"string"==typeof t&&"string"==typeof r&&"AbortError"===t&&r.includes("play() request was interrupted")}return!1}(e))throw e})),"paused"===m&&L.current.pause(),"idle"===m&&(L.current.pause(),L.current.currentTime=0))},[m,_,P,g]);let T=(0,n.useCallback)((e,t)=>"string"==typeof e?y(c(e,t)):(w(e),v(c(e.kosmosId,t)),Promise.resolve(e)),[y,v]),M=(0,n.useCallback)(()=>y({type:"pause"}),[y]),N=(0,n.useCallback)(()=>{v({type:"stop"})},[v]),A=(0,n.useMemo)(()=>({currentTrackKosmosId:b,playbackStatus:m,playTrack:T,pauseTrack:M,stopPlayback:N,audioRef:L}),[b,m,T,M,N,L]);return(0,s.jsxs)(f.Provider,{value:A,children:[_&&(0,s.jsx)("audio",{src:_,ref:R,preload:"metadata",onPause:M,onEnded:N},"player"),e]})}},26507:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ScrollableList:()=>p});var s=r(59908),n=r(52895),a=r(9414),l=r(80598),o=r(47768),i=r(83349),c=r(55208),u=r(20792),d=r(74275),f=r(73217),b=r.n(f);function p({children:e,classNames:t,isInverseColor:r,eventContext:f,noGapDesktop:m,smallGridGap:g}){let v,[y,h]=(0,n.useState)(!0),[k,S]=(0,n.useState)(!1),w=(0,n.useRef)(null);v=(0,n.useRef)(!1),(0,n.useEffect)(()=>{function e(e){if(!0===v.current||!w.current)return;let t=e?.currentTarget;if(t.scrollLeft>0){let{firstVisibleIndex:e}=((e,t)=>{let r=-1,s=-1;for(let n=0;n<e.length;n+=1){let a=e[n].getBoundingClientRect();a.right-1<=t.right&&a.left+1>=t.left&&(-1===r&&(r=n),s=n)}return{firstVisibleIndex:r,lastVisibleIndex:s}})(w.current.children,t.getBoundingClientRect());e>0&&(v.current=!0,c.E5.horizontalScrollInitiated({context:f}))}}let{current:t}=w;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),(0,n.useEffect)(()=>{let e=w.current;if(!e)return;let t=t=>{let r=t.target,{width:s}=e.getBoundingClientRect(),{scrollLeft:n,scrollWidth:a}=r;h(0===n),S(n+s>=a)};return e?.addEventListener("scroll",t),()=>{e?.removeEventListener("scroll",t)}},[w]);let _=e=>{var t,r;let s;if(!w.current)return;c.E5.contentNavigated({context:f,destination:e});let n=w.current.scrollLeft;w.current.scrollTo({left:(t=w.current.scrollWidth,s=(r=w.current.children[0].offsetWidth)>800?r/2:r,"right"===e&&n+window.innerWidth>t-2*s?t-window.innerWidth:"left"===e&&n-s<s?0:"left"===e?n-s:n+s)})};return(0,s.jsxs)("div",{className:(0,u.cn)(b().scrollableList,t),children:[(0,s.jsx)("ul",{ref:w,className:(0,u.cn)(b().scrollableListItems,{[b().noGapDesktop]:m,[b().smallGridGap]:g}),children:e}),(0,s.jsx)(a.Jf,{className:b().buttonsWrapper,children:(0,s.jsxs)(a.Jf.Col,{size:{small:2,medium:6,large:12},className:(0,u.cn)(b().buttons,r?l.cu.alternative:void 0),children:[(0,s.jsx)(d.K,{hideTooltip:!0,icon:o.G,label:"Back",size:"m",variant:"secondary",disabled:y,onClick:()=>_("left")}),(0,s.jsx)(d.K,{hideTooltip:!0,icon:i.h,label:"Next",size:"m",variant:"secondary",disabled:k,onClick:()=>_("right")})]})})]})}},58315:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ContentfulImage:()=>o});var s=r(59908),n=r(75424),a=r(62802),l=r(20792);function o({asset:e,className:t,pictureClassName:r,alt:i,...c}){let u={alt:i??e.description??"",sizes:"100vw",width:e.file.details.image?.width,height:e.file.details.image?.height,className:(0,l.cn)("w-full h-auto",t),src:e.file.url,...c,loader:({src:e,width:t})=>(0,a.R)({src:e,width:t})},{props:{srcSet:d}}=(0,n.getImageProps)({...u,loader:({src:e,width:t})=>(0,a.R)({src:e,width:t,format:"avif"})}),{props:f}=(0,n.getImageProps)({...u,loader:({src:e,width:t})=>(0,a.R)({src:e,width:t,format:"webp"})});return(0,s.jsxs)("picture",{className:(0,l.cn)("pointer-events-none",r),children:[(0,s.jsx)("source",{type:"image/avif",srcSet:d,sizes:f.sizes}),(0,s.jsx)("img",{...f})]})}},60045:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Section:()=>u});var s=r(59908),n=r(52895),a=r(20792),l=r(9414);function o({noFullPageGrid:e,columnSizes:t,children:r}){return e?r:(0,s.jsx)(l.Jf,{children:(0,s.jsx)(l.Jf.Col,{size:t,children:r})})}var i=r(77477),c=r(61884);function u({backgroundColor:e="brandOffWhite",className:t,children:r,sectionHeaders:l,columnSizes:d={small:2,medium:6,large:12},noFullPageGrid:f=!1,ctaTrackingExtra:b}
1){let p=(0,n.useRef)(null),{setNavBackgroundColor:m,setSectionId:g,setSectionPosition:v,navbarBottom:y,navbarTop:h}=(0,n.useContext)(c.SectionContext),k=b?.sectionId,S=b?.sectionPosition,w=(0,n.useCallback)(()=>{if(p&&p.current){let{top:t,bottom:r}=p.current.getBoundingClientRect();(t<h&&r>y||t<=y&&t>=h)&&(m(e),k&&S&&(g(k),v(S)))}},[h,y,m,e,g,v,k,S]);return(0,n.useEffect)(()=>(window.addEventListener("scroll",w),()=>{window.removeEventListener("scroll",w)}),[w]),(0,s.jsx)("section",{ref:p,"data-navbar-color":e,className:(0,a.cn)((0,i.f)(e),t),children:(0,s.jsxs)(o,{noFullPageGrid:f,columnSizes:d,children:[l,r]})})}},62802:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});let s=({src:e,width:t,format:r,quality:s=75})=>{let n=new URL(e);return r&&n.searchParams.set("fm",r),t&&n.searchParams.set("w",t.toString()),n.searchParams.set("q",s.toString()),n.href}},67546:e=>{e.exports={videoSkeleton:"InlineVideo_videoSkeleton___YGpa",spinner:"InlineVideo_spinner__FqYIc"}},73217:e=>{e.exports={scrollableList:"ScrollableList_scrollableList__OwaA9",buttons:"ScrollableList_buttons__nAXay",scrollableListItems:"ScrollableList_scrollableListItems___C8ce",smallGridGap:"ScrollableList_smallGridGap__btD24",noGapDesktop:"ScrollableList_noGapDesktop__WUrhw"}},76294:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});var s=r(52895);function n(e,t){let r=(0,s.useRef)(void 0),[n,a]=(0,s.useState)(!1),[l,o]=(0,s.use
1State)(!1);return(0,s.useEffect)(()=>{n&&o(!0)},[n]),(0,s.useEffect)(()=>(r.current=new IntersectionObserver(([e])=>{a(e.isIntersecting)},{rootMargin:t?.rootMargin,threshold:t?.thresholds}),e.current&&r.current.observe(e.current),()=>{r?.current?.disconnect()}),[t?.rootMargin,e,t?.thresholds]),{isIntersecting:n,hasIntersected:l,onUnobserve:(0,s.useCallback)(()=>{e.current&&r.current?.unobserve(e.current)},[e])}}},77477:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});let s=e=>({elevation:"bg-elevation",base:"bg-base",brandOffWhite:"bg-brand-off-white",brandWhite:"bg-brand-white",brandOffBlack:"bg-brand-off-black",brandBlack:"bg-brand-black",brandYellow:"bg-brand-yellow",brandFog:"bg-brand-fog",brandPink:"bg-brand-pink",brandAzur:"bg-brand-azur",brandStone:"bg-brand-stone",brandEcru:"bg-brand-ecru",backgroundPositive:"bg-background-positive",brandMoss:"bg-brand-moss",brandRed:"bg-brand-red"})[e]},96667:(e,t,r)=>{"use strict";r.d(t,{SKIP_TO_MAIN_CONTENT_ID:()=>n,SkipLink:()=>a});var s=r(59908);let n="mainContent";function a({skipLinkText:e}){return(0,s.jsx)("a",{href:`#${n}`,className:"text-primary focus:border-active bg-base absolute top-0 left-0 z-50 -translate-x-full transform rounded-button p-4 focus:mt-0.5 focus:ml-0.5 focus:translate-x-0 focus:border-2 focus:outline-none",children:e})}}}]);

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.