PageSourceSearch

https://riffusion.org/_next/static/chunks/app/%5Blocale%5D/(marketing)/layout-caa7179624cb0ac2.js

js riffusion.org collected 2026-10-04 03:33:07 UTC 6,191 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9278],{25355:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(91903),a=n(67571),o=n.t(a,2),l=n(63521),s=o["use".trim()],i=n(21185),c=n(63832),m=n(83530),u=n(55763),d=n(89250);function h(e){let{Link:t,config:n,getPathname:o,...h}=function(e,t){var n,o,l;let d={...n=t||{},localePrefix:"object"==typeof(l=n.localePrefix)?l:{mode:l||"always"},localeCookie:!!((o=n.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof o&&o},localeDetection:n.localeDetection??!0,alternateLinks:n.alternateLinks??!0},h=d.pathnames,f=(0,a.forwardRef)(function({href:t,locale:n,...r},a){let o,l;"object"==typeof t?(o=t.pathname,l=t.params):o=t;let m=(0,i._x)(t),f=e(),y=(0,i.yL)(f)?s(f):f,k=m?p({locale:n||y,href:null==h?o:{pathname:o,params:l}},null!=n||void 0):o;return(0,u.jsx)(c.default,{ref:a,href:"object"==typeof t?{...t,pathname:k}:k,locale:n,localeCookie:d.localeCookie,...r})});function p(e,t){let n,{href:r,locale:a}=e;return null==h?"object"==typeof r?(n=r.pathname,r.query&&(n+=(0,m.Zn)(r.query))):n=r:n=(0,m.FP)({locale:a,...(0,m.TK)(r),pathnames:d.pathnames}),(0,m.x3)(n,a,d,t)}function y(e){return function(t,...n){return e(p(t),...n)}}return{config:d,Link:f,redirect:y(r.redirect),permanentRedirect:y(r.permanentRedirect),getPathname:p}}(l.Ym,e);return{...h,Link:t,usePathname:function(){let e=function(e){let t=(0,r.usePathname)(),n=(0,l.Ym)();return(0,a.useMemo)(()=>{if(!t)return t;let r=t,a=(0,i.XP)(n,e.localePrefix);if((0,i.wO)(a,t))r=(0,i.MY)(t,a);else if("as-needed"===e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,i.bL)(n);(0,i.wO)(e,t)&&(r=(0,i.MY)(t,e))}return r},[e.localePrefix,n,t])}(n),t=(0,l.Ym)();return(0,a.useMemo)(()=>e&&n.pathnames?(0,m.aM)(t,e,n.pathnames):e,[t,e])},useRouter:function(){let e=(0,r.useRouter)(),t=(0,l.Ym)(),s=(0,r.usePathname)();return(0,a.useMemo)(()=>{function r(e){return function(r,a){let{locale:l,...i}=a||{},c=[o({href:r,locale:l||t})];Object.keys(i).length>0&&c.push(i),e(...c),(0,d.A)(n.localeCookie,s,t,l)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[t,s,e])},getPathname:o}}},30878:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(23203).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},50213:(e,t,n)=>{"use strict";n.d(t,{D:()=>m,N:()=>u});var r=n(67571),a=(e,t,n,r,a,o,l,s)=>{let i=document.documentElement,c=["light","dark"];function m(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?a.map(e=>o[e]||e):a;n?(i.classList.remove(...r),i.classList.add(t)):i.setAttribute(e,t)}),n=t,s&&c.includes(n)&&(i.style.colorScheme=n)}if(r)m(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;m(r)}catch(e){}},o=["light","dark"],l="(prefers-color-scheme: dark)",s="undefined"==typeof window,i=r.createContext(void 0),c={setTheme:e=>{},themes:[]},m=()=>{var e;return null!=(e=r.useContext(i))?e:c},u=e=>r.useContext(i)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),d=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:s="theme",themes:c=d,defaultTheme:m=n?"system":"light",attribute:u="data-theme",value:h,children:b,nonce:g,scriptProps:v})=>{let[w,C]=r.useState(()=>p(s,m)),[P,E]=r.useState(()=>p(s)),L=h?Object.values(h):c,S=r.useCallback(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=k());let l=h?h[r]:r,s=t?y(g):null,i=document.documentElement,c=e=>{"class"===e?(i.classList.remove(...L),l&&i.classList.add(l)):e.startsWith("data-")&&(l?i.setAttribute(e,l):i.removeAttribute(e))};if(Array.isArray(u)?u.forEach(c):c(u),a){let e=o.includes(m)?m:null,t=o.includes(r)?r:e;i.style.colorScheme=t}null==s||s()},[g]),T=r.useCallback(e=>{let t="function"==typeof e?e(w):e;C(t);try{localStorage.setItem(s,t)}catch(e){}},[w]),x=r.useCallback(t=>{E(k(t)),"system"===w&&n&&!e&&S("system")},[w,e]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(x),x(e),()=>e.removeListener(x)},[x]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?C(e.newValue):T(m))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),r.useEffect(()=>{S(null!=e?e:w)},[e,w]);let A=r.useMemo(()=>({theme:w,setTheme:T,forcedTheme:e,resolvedTheme:"system"===w?P:w,themes:n?[...c,"system"]:c,systemTheme:n?P:void 0}),[w,T,e,P,n,c]);return r.createElement(i.Provider,{value:A},r.createElement(f,{forcedTheme:e,storageKey:s,attribute:u,enableSystem:n,enableColorScheme:a,defaultTheme:m,value:h,themes:c,nonce:g,scriptProps:v}),b)},f=r.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:l,defaultTheme:s,value:i,themes:c,nonce:m,scriptProps:u})=>{let d=JSON.stringify([n,t,s,e,c,i,o,l]).slice(1,-1);return r.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?m:"",dangerouslySetInnerHTML:{__html:`(${a.toString()})(${d})`}})}),p=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},k=e=>
1(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},75196:(e,t,n)=>{Promise.resolve().then(n.bind(n,4323)),Promise.resolve().then(n.bind(n,14235)),Promise.resolve().then(n.bind(n,72535))},95561:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(23203).A)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]])}},e=>{var t=t=>e(e.s=t);e.O(0,[2233,2975,3521,3832,1816,109,2673,2825,120,6367,6971,6429,6e3,7111,1694,3973,504,4265,3430,8684,6504,2583,8619,2420,7358],()=>t(75196)),_N_E=e.O()}]);

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.