PageSourceSearch

https://www.chilipiper.com/_next/static/immutable/chunks/1qgjosn6i--1l.js

js chilipiper.com collected 2026-09-24 08:32:55 UTC 5,137 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17109,e=>{"use strict";var t=e.i(43476),r=e.i(57688),n=e.i(71645);let a="chili-runner-best";e.s(["ChiliRunner",0,function(){let[e,i]=(0,n.useState)("idle"),[o,s]=(0,n.useState)(0),l=(0,n.useRef)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(null),p=(0,n.useRef)([]),h=(0,n.useRef)("idle"),f=(0,n.useRef)({y:0,vy:0,speed:280,score:0,obstacles:[],raf:0,last:0});(0,n.useEffect)(()=>{h.current=e},[e]);let m=(0,n.useRef)(()=>{});return(0,n.useEffect)(()=>{let e=f.current,t=e=>{let t=d.current;t&&(t.style.display=e>0?"block":"none",t.textContent=`Spiciest run \xb7 ${e.toLocaleString()} SHU`)};t(Number(localStorage.getItem(a))||0);let r=()=>{"running"===h.current&&e.y<=.5&&(e.vy=-840)},n=r=>{let o=l.current;if(!o||"running"!==h.current)return;let d=Math.min((r-e.last)/1e3,.05);e.last=r;let f=o.clientWidth;if(e.vy+=2600*d,e.y-=e.vy*d,e.y<=0&&(e.y=0,e.vy=0),e.speed=Math.min(720,e.speed+9*d),e.score+=e.speed*d*.06,Math.max(0,...e.obstacles.filter(e=>e.active).map(e=>e.x+e.w))<f-(240+300*Math.random()+.35*e.speed)){let t=e.obstacles.find(e=>!e.active);t&&(t.active=!0,t.w=26+14*Math.random(),t.h=26+16*Math.random(),t.x=f+20)}let m=!1;for(let t of e.obstacles){if(!t.active)continue;t.x-=e.speed*d,t.x+t.w<-40&&(t.active=!1);let r=t.x+7,n=t.x+t.w-7;r<79&&n>63&&e.y+7<t.h&&(m=!0)}if(c.current&&(c.current.style.transform=`translateY(${-e.y}px)`),e.obstacles.forEach((e,t)=>{let r=p.current[t];r&&(r.style.display=e.active?"block":"none",e.active&&(r.style.transform=`translateX(${e.x}px)`,r.style.width=`${e.w}px`,r.style.height=`${e.h}px`))}),u.current&&(u.current.textContent=`${Math.floor(e.score).toLocaleString()} SHU`),m){let r=Math.floor(e.score);s(r);let n=Math.max(Number(localStorage.getItem(a))||0,r);localStorage.setItem(a,String(n)),t(n),i("over"),h.current="over";return}e.raf=requestAnimationFrame(n)};m.current=()=>{e.y=0,e.vy=0,e.speed=280,e.score=0,e.obstacles=Array.from({length:6},()=>({x:0,w:0,h:0,active:!1})),e.last=performance.now(),i("running"),h.current="running",cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(n)};let o=e=>{"running"===h.current&&("Space"===e.code||"ArrowUp"===e.code)&&(e.preventDefault(),r())},x=l.current,b=()=>r();return window.addEventListener("keydown",o),x?.addEventListener("pointerdown",b),()=>{window.removeEventListener("keydown",o),x?.removeEventListener("pointerdown",b),cancelAnimationFrame(e.raf)}},[]),(0,t.jsxs)("div",{ref:l,className:"relative h-[220px] touch-none select-none overflow-hidden rounded-[16px] border border-white/10 bg-navy",role:"application","aria-label":"Chili Runner minigame. Press space or tap to jump over the ice cubes.",children:[(0,t.jsxs)("div",{className:"pointer-events-none absolute right-4 top-3 z-10 text-right",children:[(0,t.jsx)("span",{ref:u,className:"block font-mono text-sm font-bold uppercase tracking-widest text-chili",children:"0 SHU"}),(0,t.jsx)("span",{ref:d,className:"hidden font-mono text-[10px] font-bold uppercase tracking-widest text-silver"})]}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-[36px] h-px bg-white/20"}),(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 h-[36px] opacity-[0.15]",style:{backgroundImage:"repeating-linear-gradient(90deg, transparent 0 22px, #9C9DB4 22px 24px)"}}),(0,t.jsx)("div",{ref:c,className:"absolute bottom-[36px] will-change-transform",style:{left:56,width:30,height:42},children:(0,t.jsx)(r.default,{src:"/logo.svg",alt:"",width:30,height:42,className:`h-full w-full ${"running"===e?"motion-safe:animate-[chili-bob_.5s_ease-in-out_infinite]":""}`})}),Array.from({length:6},(e,r)=>(0,t.jsx)("div",{ref:e=>{p.current[r]=e},className:"absolute bottom-[36px] left-0 hidden rounded-[6px] border border-white/40 bg-[#D4ECFF]/80 shadow-[inset_0_-6px_10px_rgba(37,44,71,0.35)] will-change-transform","aria-hidden":!0},r)),"running"!==e&&(0,t.jsxs)("div",{className:"absolute inset-0 z-20 flex flex-col items-center justify-center gap-3 bg-rich-black/60 backdrop-blur-[2px]",children:["over"===e&&(0,t.jsxs)("p",{className:"font-mono text-sm font-bold uppercase tracking-widest text-white",children:["Frozen out at ",o.toLocaleStr
1ing()," SHU"]}),(0,t.jsx)("button",{type:"button",onClick:()=>m.current(),className:"rounded-full bg-chili px-6 py-2.5 font-calibre text-[17px] font-bold text-white transition-transform duration-200 hover:scale-105",children:"over"===e?"Run it back":"Start the run"}),(0,t.jsx)("p",{className:"font-calibre text-[13px] text-silver",children:"Space, ↑ or tap to jump the ice"})]})]})}])},6005,e=>{"use strict";var t=e.i(71645);e.s(["NotFoundBeacon",0,function(){return(0,t.useEffect)(()=>{let e=(()=>{try{if(!document.referrer)return"";let e=new URL(document.referrer);return e.origin===window.location.origin?e.origin+e.pathname:e.origin}catch{return""}})(),t=JSON.stringify({path:window.location.pathname,referrer:e});navigator.sendBeacon?.("/api/track-404",new Blob([t],{type:"application/json"}))||fetch("/api/track-404",{method:"POST",body:t,keepalive:!0}).catch(()=>{})},[]),null}])}]);

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.