PageSourceSearch

https://nullshot.ai/_next/static/chunks/use-scrubbed-jam-code-Ch6WJQqY.js

js nullshot.ai collected 2026-10-05 12:22:25 UTC 767 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime--c01j_DQ.js";import{o as t}from"./framework-CuztCL5H.js";var n=e(t(),1);function r(e,t,n=``){let r=new URLSearchParams(t);r.delete(`code`);let i=r.toString();return`${e}${i?`?${i}`:``}${n}`}function i(e){return e?.trim()||null}function a({pathname:e,searchParams:t,fallbackCode:a}){let o=t.toString(),s=t.get(`code`),c=t.has(`code`),[l,u]=(0,n.useState)(()=>i(s)??i(a)),[d,f]=(0,n.useState)(()=>c?null:o);return(0,n.useLayoutEffect)(()=>{let t=new URL(window.location.href),n=t.searchParams.has(`code`);if(n||c){u(i(n?t.searchParams.get(`code`):s));let a=n?r(t.pathname,t.search,t.hash):r(e,o,window.location.hash);window.history.replaceState(window.history.state,``,a)}f(o)},[c,e,s,o]),{code:l,isReady:!c||d===o}}export{a 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.