PageSourceSearch

https://freecast.com/_next/static/immutable/chunks/19t9i5xc566qf.js

js freecast.com collected 2026-09-24 22:04:15 UTC 3,715 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,262891,e=>{"use strict";var t=e.i(155120),n=e.i(531812),r=["light","dark"],a="(prefers-color-scheme: dark)",l="u"<typeof window,o=n.createContext(void 0),s=e=>n.useContext(o)?e.children:n.createElement(c,{...e}),i=["light","dark"],c=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:l=!0,enableColorScheme:s=!0,storageKey:c="theme",themes:f=i,defaultTheme:y=l?"system":"light",attribute:v="data-theme",value:g,children:$,nonce:b})=>{let[S,T]=n.useState(()=>d(c,y)),[p,w]=n.useState(()=>d(c)),C=g?Object.values(g):f,E=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&l&&(n=h());let a=g?g[n]:n,o=t?u():null,i=document.documentElement;if("class"===v?(i.classList.remove(...C),a&&i.classList.add(a)):a?i.setAttribute(v,a):i.removeAttribute(v),s){let e=r.includes(y)?y:null,t=r.includes(n)?n:e;i.style.colorScheme=t}null==o||o()},[]),k=n.useCallback(e=>{let t="function"==typeof e?e(e):e;T(t);try{localStorage.setItem(c,t)}catch(e){}},[e]),x=n.useCallback(t=>{w(h(t)),"system"===S&&l&&!e&&E("system")},[S,e]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(x),x(e),()=>e.removeListener(x)},[x]),n.useEffect(()=>{let e=e=>{e.key!==c||k(e.newValue||y)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),n.useEffect(()=>{E(null!=e?e:S)},[e,S]);let L=n.useMemo(()=>({theme:S,setTheme:k,forcedTheme:e,resolvedTheme:"system"===S?p:S,themes:l?[...f,"system"]:f,systemTheme:l?p:void 0}),[S,k,e,p,l,f]);return n.createElement(o.Provider,{value:L},n.createElement(m,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:l,enableColorScheme:s,storageKey:c,themes:f,defaultTheme:y,attribute:v,value:g,children:$,attrs:C,nonce:b}),$)},m=n.memo(({forcedTheme:e,storageKey:t,attribute:l,enableSystem:o,enableColorScheme:s,defaultTheme:i,value:c,attrs:m,nonce:d})=>{let u="system"===i,h="class"===l?`var d=document.documentElement,c=d.classList;c.remove(${m.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${l}',s='setAttribute';`,f=s?(r.includes(i)?i:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=(e,t=!1,n=!0)=>{let a=c?c[e]:e,o=t?e+"|| ''":`'${a}'`,i="";return s&&n&&!t&&r.includes(e)&&(i+=`d.style.colorScheme = '${e}';`),"class"===l?t||a?i+=`c.add(${o})`:i+="null":a&&(i+=`d[s](n,${o})`),i},v=e?`!function(){${h}${y(e)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${a}',m=window.matchMedia(t);if(m.media!==t||m.matches){${y("dark")}}else{${y("light")}}}else if(e){${c?`var x=${JSON.stringify(c)};`:""}${y(c?"x[e]":"e",!0)}}${u?"":"else{"+y(i,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${c?`var x=${JSON.stringify(c)};`:""}${y(c?"x[e]":"e",!0)}}else{${y(i,!1,!1)};}${f}}catch(t){}}();`;return n.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})}),d=(e,t)=>{let n;if(!l){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},u=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light");e.s(["ThemeProvider",0,function({children:e,...r}){return(0,n.useEffect)(()=>{localStorage.removeItem("theme")},[]),(0,t.jsx)(s,{...r,children:e})}],262891)}]);

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.