1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88653,e=>{"use strict";var t=e.i(43476),n=e.i(71645),i=e.i(31178),r=e.i(47414),s=e.i(74008),a=e.i(21476),o=e.i(72846),l=n,c=e.i(37806);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,o.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,i=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,r=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=n-s.width-s.left,s.bottom=i-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:i,anchorX:r,anchorY:s,root:a,pop:o}){let m=(0,l.useId)(),f=(0,l.useRef)(null),p=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:v}=(0,l.useContext)(c.MotionConfigContext),g=function(...e){return n.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=u(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():u(e[t],null)}}}}(...e),e)}(f,!1!==o?e.props?.ref??e?.ref:void 0);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:l,right:c,bottom:u,direction:d}=p.current;if(i||!1===o||!f.current||!e||!t)return;let h="rtl"===d,g="left"===r?h?`right: ${c}`:`left: ${l}`:h?`left: ${l}`:`right: ${c}`,x="bottom"===s?`bottom: ${u}`:`top: ${n}`;f.current.dataset.motionPopId=m;let y=document.createElement("style");v&&(y.nonce=v);let w=a??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${m}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${g}px !important; 7 ${x}px !important; 8 } 9 `),()=>{f.current?.removeAttribute("data-motion-pop-id"),w.contains(y)&&w.removeChild(y)}},[i]),(0,t.jsx)(d,{isPresent:i,childRef:f,sizeRef:p,pop:o,children:!1===o?e:l.cloneElement(e,{ref:g})})}let m=({children:e,initial:i,isPresent:o,onExitComplete:l,custom:c,presenceAffectsLayout:u,mode:d,anchorX:m,anchorY:p,root:v})=>{let g=(0,r.useConstant)(f),x=(0,n.useId)(),y=(0,n.useRef)(o),w=(0,n.useRef)(l);(0,s.useIsomorphicLayoutEffect)(()=>{y.current=o,w.current=l});let M=!0,E=(0,n.useMemo)(()=>(M=!1,{id:x,initial:i,isPresent:o,custom:c,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;l&&l()},register:e=>(g.set(e,!1),()=>{g.delete(e),y.current||g.size||w.current?.()})}),[o,g,l]);return u&&M&&(E={...E}),(0,n.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[o]),n.useEffect(()=>{o||g.size||!l||l()},[o]),e=(0,t.jsx)(h,{pop:"popLayout"===d,isPresent:o,anchorX:m,anchorY:p,root:v,children:e}),(0,t.jsx)(a.PresenceContext.Provider,{value:E,children:e})};function f(){return new Map}var p=e.i(64978);let v=e=>e.key||"";function g(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:a,initial:o=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:h="left",anchorY:f="top",root:x})=>{let[y,w]=(0,p.usePresence)(d),M=(0,n.useMemo)(()=>g(e),[e]),E=d&&!y?[]:M.map(v),j=(0,n.useRef)(!0),b=(0,n.useRef)(M),L=(0,r.useConstant)(()=>new Map),T=(0,n.useRef)(new Set),[C,R]=(0,n.useState)(M),[N,$]=(0,n.useState)(M);(0,s.useIsomorphicLayoutEffect)(()=>{!d||y||N.length||w?.()},[y,d,N.length,w]),(0,s.useIsomorphicLayoutEffect)(()=>{j.current=!1,b.current=M;for(let e=0;e<N.length;e++){let t=v(N[e]);E.includes(t)?(L.delete(t),T.current.delete(t)):!0!==L.get(t)&&L.set(t,!1)}},[N,E.length,E.join("-")]);let A=[];if(M!==C){let e=[...M],t=0;for(let n of N){let i=E.indexOf(v(n));-1===i?(e.splice(t++,0,n),A.push(n)):t=i+A.length+1}return"wait"===u&&A.length&&(e=A),$(g(e)),R(M),null}let{forceRender:S}=(0,n.useContext)(i.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:N.map(e=>{let n=v(e),i=(!d||!!y)&&(M===N||E.includes(n));return(0,t.jsx)(m,{isPresent:i,initial:(!j.current||!!o)&&void 0,custom:a,presenceAffectsLayout:c,mode:u,root:x,onExitComplete:i?void 0:()=>
9{if(T.current.has(n)||!L.has(n))return;T.current.add(n),L.set(n,!0);let e=!0;L.forEach(t=>{t||(e=!1)}),e&&(S?.(),$(b.current),d&&w?.(),l&&l())},anchorX:h,anchorY:f,children:e},n)})})}],88653)},72328,e=>{"use strict";e.i(47167);var t=e.i(71164),n=e.i(38544),i=e.i(71645);e.s(["useReducedMotion",0,function(){t.hasReducedMotionListener.current||(0,n.initPrefersReducedMotion)();let[e]=(0,i.useState)(t.prefersReducedMotion.current);return e}])},61495,e=>{"use strict";var t=e.i(43476),n=e.i(71645);e.s(["default",0,function(){let e=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t,n,i=e.current;if(!i)return;let r=i.getContext("2d");if(!r)return;let s=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,a=window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches,o=2*Math.PI,l=0,c=0,u=1,d=0,h=0,m=0,f=0,p=null,v=null,g=null,x=-9999,y=-9999,w=0,M=0;function E(){if(i&&r){let e;u=Math.min(window.devicePixelRatio||1,2),l=i.clientWidth,c=i.clientHeight,i.width=Math.round(l*u),i.height=Math.round(c*u),r.setTransform(u,0,0,u,0,0),d=Math.ceil(l/34)+1,h=Math.ceil(c/34)+1,m=(l-(d-1)*34)/2,f=(c-(h-1)*34)/2,p=new Float32Array(e=d*h),v=new Float32Array(e),g=new Float32Array(e),j()}}function j(){if(!r||!p||!v||!g)return!1;r.clearRect(0,0,l,c);let e=!1;r.beginPath();for(let e=0;e<h;e++)for(let t=0;t<d;t++){if(p[e*d+t]>.015)continue;let n=m+34*t,i=f+34*e;r.moveTo(n+1.05,i),r.arc(n,i,1.05,0,o)}r.fillStyle="rgba(191,200,217,.85)",r.fill();for(let n=0;n<h;n++)for(let i=0;i<d;i++){let s=n*d+i,a=m+34*i,l=f+34*n,c=0,u=0,h=0;if(w>.001){let e=a-x,n=l-y,i=Math.sqrt(e*e+n*n);if(i<220&&i>.001){var t;c=(t=1-(t=i/220))*t*(3-2*t)*w,u=e/i*c*7,h=n/i*c*7}}p[s]+=(c-p[s])*.12,v[s]+=(u-v[s])*.12,g[s]+=(h-g[s])*.12;let M=p[s];if(M<=.015)continue;e=!0;let E=M>1?1:M;r.beginPath(),r.arc(a+v[s],l+g[s],1.05+1.55*E,0,o),r.fillStyle=`rgb(${191+-191*E|0},${200+-116*E|0},${217+17*E|0})`,r.fill()}return e}function b(e){"mouse"===e.pointerType&&(x=e.clientX,y=e.clientY,M=1,N())}function L(){M=0}function T(e){s||"mouse"===e.pointerType||(x=e.clientX,y=e.clientY,M=1,N(),t&&clearTimeout(t),t=setTimeout(()=>{M=0},500))}!s&&a&&(window.addEventListener("pointermove",b,{passive:!0}),window.addEventListener("pointerleave",L,{passive:!0}),window.addEventListener("pointercancel",L,{passive:!0}),window.addEventListener("blur",L)),window.addEventListener("pointerdown",T,{passive:!0});let C=0;function R(){w+=(M-w)*.08,j()||w>.002?C=requestAnimationFrame(R):(C=0,w=0)}function N(){C||s||(C=requestAnimationFrame(R))}function $(){C&&(cancelAnimationFrame(C),C=0)}function A(){document.hidden?$():M>0&&N()}
9function S(){clearTimeout(n),n=setTimeout(E,120)}return document.addEventListener("visibilitychange",A),window.addEventListener("resize",S,{passive:!0}),E(),()=>{$(),window.removeEventListener("pointermove",b),window.removeEventListener("pointerleave",L),window.removeEventListener("pointercancel",L),window.removeEventListener("blur",L),window.removeEventListener("pointerdown",T),t&&clearTimeout(t),document.removeEventListener("visibilitychange",A),window.removeEventListener("resize",S),clearTimeout(n)}},[]),(0,t.jsx)("canvas",{id:"bg",ref:e,"aria-hidden":"true"})}])},30358,e=>{"use strict";var t=e.i(43476),n=e.i(71645);e.s(["default",0,function({to:e,prefix:i="",suffix:r="",grouped:s=!1,className:a}){let o=(0,n.useRef)(null),l=e=>s?e.toLocaleString("en-US"):String(e),[c,u]=(0,n.useState)(()=>l(e));return(0,n.useEffect)(()=>{if(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)return;let t=o.current;if(!t)return;let n=!1;if(!("IntersectionObserver"in window))return;let i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(!function(){if(n)return;n=!0;let t=0;requestAnimationFrame(function n(i){t||(t=i);let r=Math.min((i-t)/1100,1);u(l(Math.round(e*(1-Math.pow(1-r,3))))),r<1&&requestAnimationFrame(n)})}(),i.unobserve(t.target))})},{threshold:.08,rootMargin:"0px 0px -10% 0px"});return i.observe(t),()=>i.disconnect()},[]),(0,t.jsxs)("span",{ref:o,className:a,children:[i,c,r]})}])},95470,e=>{"use strict";var t=e.i(43476),n=e.i(71645);let i=[[0,84,234],[40,110,240],[70,130,250],[20,95,235]],r="0,84,234";e.s(["default",0,function(){let e=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=e.current,n=s.current;if(!t||!n)return;let a=t.getContext("2d"),o=n.getContext("2d");if(!a||!o||window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let l=4>=(navigator.hardwareConcurrency||8),c=l?50:1e3/30,u=l?40:80,d=l?14:26,h=0,m=0,f=1,p=0,v=0,g=0,x=0,y=[],w=[],M=[],E={x:0,y:0,prevX:0,prevY:0,active:!1,hue:0};function j(){if(t&&n){for(let e of(f=Math.min(window.devicePixelRatio||1,2),h=window.innerWidth,m=window.innerHeight,[t,n]))e.width=Math.round(h*f),e.height=Math.round(m*f),e.style.width=`${h}px`,e.style.height=`${m}px`;a.setTransform(f,0,0,f,0,0),o.setTransform(f,0,0,f,0,0),y=Array.from({length:h<700?3:5},(e,t)=>({x:Math.random()*h,y:Math.random()*m,vx:(Math.random()-.5)*.22,vy:(Math.random()-.5)*.22,radius:140+220*Math.random(),phase:Math.random()*Math.PI*2,color:i[t%i.length]}))}}function b(e,t,n,r,s){let a=Math.min(3,Math.max(1,Math.round(2*s))),o=i[E.hue%i.length];for(let i=0;i<a;i++){let i=10+16*s;w.push({x:e+(Math.random()-.5)*i,y:t+(Math.random()-.5)*i,vx:n*(.1+.12*Math.random())+(Math.random()-.5)*.9,vy:r*(.1+.12*Math.random())+(Math.random()-.5)*.9,radius:(24+40*Math.random())*s,phase:Math.random()*Math.PI*2,color:o,life:1,decay:.006+.007*Math.random()})}w.length>u&&(w=w.slice(-u))}function L(e,t,n){!(n-x<90)&&(x=n,M.push({x:e,y:t,radius:1.2,life:1}),M.length>d&&(M=M.slice(-d)))}function T(e){if("mouse"!==e.pointerType)return;let t=e.clientX,n=e.clientY,r=t-E.x,s=n-E.y,a=Math.hypot(r,s);E.prevX=E.x,E.prevY=E.y,E.x=t,E.y=n,E.active=!0,a>2&&e.timeStamp-g>=24&&(b(E.prevX,E.prevY,r,s,.85),L(t,n,e.timeStamp),E.hue=(E.hue+1)%i.length,g=e.timeStamp),p||(p=requestAnimationFrame($))}function C(e){"mouse"!==e.pointerType&&(b(e.clientX,e.clientY,0,0,1.3),L(e.clientX,e.clientY,e.timeStamp),p||(p=requestAnimationFrame($)))}function R(){E.active=!1}function N(e,t){if(t<=0)return;let[n,i,r]=e.color,s=a.createRadialGradient(e.x,e.y,0,e.x,e.y,e.radius);s.addColorStop(0,`rgba(${n},${i},${r},${t})`),s.addColorStop(.45,`rgba(${n},${i},${r},${.45*t})`),s.addColorStop(1,`rgba(${n},${i},${r},0)`),a.fillStyle=s,a.beginPath(),a.arc(e.x,e.y,e.radius,0,2*Math.PI),a.fill()}function $(e=0){if(v&&e-v<c){p=requestAnimationFrame($);return}let t=Math.min(2,Math.max(.4,(e-v)/16.67||1));v=e,a.clearRect(0,0,h,m),o.clearRect(0,0,h,m),a.globalCompositeOperation="source-over",y.forEach(n=>{let i=18e-5*e+n.phase;if(n.vx+=.0025*Math.cos(i+.0015*n.y),n.vy+=.0025*Math.sin(i+.0015*n.x),E.active){let e=E.x-n.x,t=E.y-n.y,i=Math.hypot(e,t)||1;if(i<360){let r=(1-i/360)*.014;n.vx+=e/i*r,n.vy+=t/i*r}}n.vx*=.997,n.vy*=.997,n.x+=n.vx*t,n.y+=n.vy*t,n.x<-n.radius&&(n.x=h+n.radius),n.x>h+n.radius&&(n.x=-n.radius),n.y<-n.radius&&(n.y=m+n.radius),n.y>m+n.radius&&(n.y=-n.radius),N(n,.05)}
9),a.globalCompositeOperation="multiply",w.forEach(n=>{let i=.001*e+n.phase;n.vx+=.035*Math.cos(i+.012*n.y)*t,n.vy+=.035*Math.sin(i+.012*n.x)*t,n.vx*=.986,n.vy*=.986,n.x+=n.vx*t,n.y+=n.vy*t,n.radius+=.16*t,n.life=(n.life??1)-(n.decay??.008)*t,N(n,.22*Math.max(0,n.life))}),w=w.filter(e=>(e.life??0)>0),a.globalCompositeOperation="source-over",o.globalCompositeOperation="source-over",M.forEach(e=>{e.life-=.028*t,e.radius+=.05*t;let n=Math.max(0,e.life);o.beginPath(),o.arc(e.x,e.y,e.radius+2.6,0,2*Math.PI),o.fillStyle=`rgba(${r},${.08*n})`,o.fill(),o.beginPath(),o.arc(e.x,e.y,e.radius,0,2*Math.PI),o.fillStyle=`rgba(${r},${.5*n})`,o.fill()}),M=M.filter(e=>e.life>0),p=(w.length>0||M.length>0||E.active)&&!document.hidden?requestAnimationFrame($):0}function A(){document.hidden?(p&&cancelAnimationFrame(p),p=0):p||(p=requestAnimationFrame($))}return j(),p=requestAnimationFrame($),window.addEventListener("resize",j),window.addEventListener("pointermove",T,{passive:!0}),window.addEventListener("pointerdown",C,{passive:!0}),window.addEventListener("pointerleave",R,{passive:!0}),window.addEventListener("blur",R),document.addEventListener("visibilitychange",A),()=>{p&&cancelAnimationFrame(p),window.removeEventListener("resize",j),window.removeEventListener("pointermove",T),window.removeEventListener("pointerdown",C),window.removeEventListener("pointerleave",R),window.removeEventListener("blur",R),document.removeEventListener("visibilitychange",A)}},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("canvas",{ref:e,className:"cursor-glow","aria-hidden":"true"}),(0,t.jsx)("canvas",{ref:s,className:"cursor-glow-spark","aria-hidden":"true"})]})}])},22825,e=>{"use strict";var t=e.i(43476),n=e.i(71645);e.s(["default",0,function({className:e,id:i,children:r,tilt:s=!1,dataState:a}){let o=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e,t,n,i=o.current;if(!i)return;let r=window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches,a=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function l(e,t){if(!i)return;let n=i.getBoundingClientRect();i.style.setProperty("--mx",((e-n.left)/n.width*100).toFixed(1)+"%"),i.style.setProperty("--my",((t-n.top)/n.height*100).toFixed(1)+"%")}function c(e){"mouse"===e.pointerType&&l(e.clientX,e.clientY)}function u(t){"mouse"!==t.pointerType&&i&&(l(t.clientX,t.clientY),i.classList.add("touched"),e&&clearTimeout(e),e=setTimeout(()=>i?.classList.remove("touched"),700))}return i.addEventListener("pointermove",c,{passive:!0}),i.addEventListener("pointerdown",u,{passive:!0}),s&&r&&!a&&(t=e=>{if("mouse"!==e.pointerType)return;let t=i.getBoundingClientRect(),n=(e.clientX-t.left)/t.width,r=(e.clientY-t.top)/t.height;i.classList.add("tracking"),i.style.transform=`translateY(-6px) rotateY(${((n-.5)*8).toFixed(2)}deg) rotateX(${((.5-r)*8).toFixed(2)}deg)`},n=()=>{i.classList.remove("tracking"),i.style.transform=""},i.addEventListener("pointermove",t,{passive:!0}),i.addEventListener("pointerleave",n,{passive:!0})),()=>{i.removeEventListener("pointermove",c),i.removeEventListener("pointerdown",u),e&&clearTimeout(e),t&&i.removeEventListener("pointermove",t),n&&i.removeEventListener("pointerleave",n)}},[s]),(0,t.jsxs)("div",{ref:o,id:i,className:e,"data-state":a,children:[(0,t.jsx)("span",{className:"sheen","aria-hidden":"true"}),r]})}])},50829,e=>{"use strict";var t=e.i(43476),n=e.i(87652),i=e.i(71645),r=e.i(88653),s=e.i(32181);let a=[.23,1,.32,1],o=[["Missed call",300,1400,"Operations"],["Unbooked lead",400,1800,"Marketing"],["Unsold estimate",1200,6400,"Revenue"],["Cancellation",600,2600,"Operations"],["Gone cold",900,4200,"Marketing"],["Ageing invoice",500,3e3,"Revenue"]];function l(e){return`$${Math.round(e).toLocaleString("en-US")}`}function c(){let[e,n]=(0,i.useState)([]),[c,u]=(0,i.useState)(0),[d,h]=(0,i.useState)(0),[m,f]=(0,i.useState)(0),p=(0,i.useRef)([]),v=(0,i.useRef)(0),g=(0,i.useRef)(new Map);(0,i.useEffect)(()=>{p.current=e},[e]),(0,i.useEffect)(()=>{let e,t;function i(e,t){let i=g.current.get(e);i&&(clearTimeout(i),g.current.delete(e));let r=p.current.find(t=>
9t.id===e);r&&"live"===r.status&&(n(n=>n.map(n=>n.id===e?{...n,status:t?"won":"lost"}:n)),t?h(e=>e+r.value):f(e=>e+r.value),setTimeout(()=>{n(t=>t.filter(t=>t.id!==e))},450))}let r=setInterval(function(){g.current.forEach(e=>clearTimeout(e)),g.current.clear(),n([]),u(0),h(0),f(0)},42e3);return!function t(){let r=new Set(p.current.map(e=>e.slot)),s=[];for(let e=0;e<8;e++)r.has(e)||s.push(e);if(s.length){let e=o[Math.floor(Math.random()*o.length)],t=Math.random()>.6,r=25*Math.round((e[1]+Math.random()*(e[2]-e[1]))*(t?1:4)/25),a=s[Math.floor(Math.random()*s.length)],l=v.current++,c={id:l,kind:e[0],room:e[3],value:r,owned:t,slot:a,status:"live"};n(e=>[...e,c]),u(e=>e+r);let d=setTimeout(()=>i(l,!1),2400);g.current.set(l,d)}e=setTimeout(t,360+180*Math.random())}(),t=setTimeout(function e(){let n=p.current.filter(e=>"live"===e.status&&e.owned);n.length&&i(n[Math.floor(Math.random()*n.length)].id,!0),t=setTimeout(e,2150)},900),()=>{clearTimeout(e),clearTimeout(t),clearInterval(r),g.current.forEach(e=>clearTimeout(e)),g.current.clear()}},[]);let x=new Map(e.map(e=>[e.slot,e]));return(0,t.jsxs)("div",{className:"sim","aria-hidden":"true",children:[(0,t.jsxs)("div",{className:"sim-hud",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{className:"d d--amb"}),"On the board ",(0,t.jsx)("b",{children:l(c)})]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{className:"d d--grn"}),"Recovered ",(0,t.jsx)("b",{children:l(d)})]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{className:"d d--red"}),"Walked ",(0,t.jsx)("b",{children:l(m)})]})]}),(0,t.jsx)("div",{className:"sim-grid",children:Array.from({length:8},(e,n)=>{let i=x.get(n);return(0,t.jsx)("div",{className:"sim-slot",children:(0,t.jsx)(r.AnimatePresence,{children:i&&(0,t.jsxs)(s.motion.div,{className:`sim-card${i.owned?"":" noowner"}${"live"!==i.status?` ${i.status}`:""}`,initial:{opacity:0,transform:"scale(0.96)"},animate:{opacity:"lost"===i.status?.16:1,transform:"scale(1)"},exit:{opacity:0,transform:"scale(0.9)"},transition:{duration:.26,ease:a},children:[(0,t.jsx)("span",{className:"t",children:i.kind}),(0,t.jsx)("span",{className:"m",children:l(i.value)}),!i.owned&&(0,t.jsx)("span",{className:"tag",children:"No owner"}),(0,t.jsx)("i",{children:(0,t.jsx)("span",{className:"live"===i.status?"ticking":void 0,style:{"--window-ms":"2400ms"}})})]},i.id)})},n)})}),(0,t.jsx)("p",{className:"sim-cap",children:"This is the Recovery Game, playing itself. One operator, working as fast as anyone can."})]})}e.s(["default",0,function(){let e=(0,i.useRef)(null),r=(0,n.useInView)(e,{once:!0,margin:"200px 0px"}),[s,a]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{window.matchMedia&&window.matchMedia("(pointer: coarse)").matches&&a(!0)},[]),r||s)?(0,t.jsx)(c,{}):(0,t.jsxs)("div",{className:"sim","aria-hidden":"true",ref:e,children:[(0,t.jsxs)("div",{className:"sim-hud",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{className:"d d--amb"}),"On the board ",(0,t.jsx)("b",{children:"$0"})]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{className:"d d--grn"}),"Recovered ",(0,t.jsx)("b",{children:"$0"})]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("i",{className:"d d--red"}),"Walked ",(0,t.jsx)("b",{children:"$0"})]})]}),(0,t.jsx)("div",{className:"sim-grid",children:Array.from({length:8},(e,n)=>(0,t.jsx)("div",{className:"sim-slot"},n))}),(0,t.jsx)("p",{className:"sim-cap",children:"This is the Recovery Game, playing itself. One operator, working as fast as anyone can."})]})}],50829)},61011,e=>{"use strict";var t=e.i(43476),n=e.i(32181),i=e.i(86427),r=e.i(71645),s=e.i(37806),a=e.i(47414);function o(e){let t=(0,a.useConstant)(()=>(0,i.motionValue)(e)),{isStatic:n}=(0,r.useContext)(s.MotionConfigContext);if(n){let[,n]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",n),[])}return t}var l=e.i(72328),c=e.i(96173),u=e.i(68514),d=e.i(12008),h=e.i(44573),m=e.i(79294),f=e.i(87022);let p=new Set,v=({timestamp:e})=>{p.forEach(t=>t.tick(e))};class g extends m.WithPromise{constructor(e){super(),this.state="idle",this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>
9{"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,(0,h.replaceTransitionType)(e),this.factory=e.type||u.keyframes,this.generator=this.factory(e);const{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state="running",this.driver?this.driver.start():(p.size||f.frame.update(v,!0),p.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:i}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,i.retarget?i.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:i=0,onUpdate:r,onPlay:s}=t,a=Math.round(e-this.startTime)-i,o=this.currentTime=Math.max(0,a),l=this.generator.next(o),c=a<0?t.keyframes[0]:l.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=c,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,s?.()),"running"===this.state&&(r?.(c),l.done&&a>=0&&!n&&!this.hasNextTarget&&"running"===this.state&&(this.notifyFinished(),this.teardown(),this.state="finished",t.onComplete?.()))}getGeneratorVelocity(){return(0,d.calcGeneratorVelocity)(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():c.time.now()}teardown(){this.state="idle",this.driver?this.driver.stop():(p.delete(this),p.size||(0,f.cancelFrame)(v))}}var x=e.i(83411);function y(e){return"number"==typeof e?e:parseFloat(e)}var w=e.i(44230),M=e.i(74008);function E(e,t){let n=o(t()),i=()=>n.set(t());return i(),(0,M.useIsomorphicLayoutEffect)(()=>{let t=()=>f.frame.preRender(i,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,f.cancelFrame)(i)}}),n}function j(e,t){let n=(0,a.useConstant)(()=>[]);return E(e,()=>{n.length=0;let i=e.length;for(let t=0;t<i;t++)n[t]=e[t].get();return t(n)})}function b(e,t={}){return function(e,t={}){let{isStatic:n}=(0,r.useContext)(s.MotionConfigContext),l=()=>(0,x.isMotionValue)(e)?e.get():e;if(n)return function e(t,n,r,s){if("function"==typeof t){let e;return i.collectMotionValues.current=[],t(),e=E(i.collectMotionValues.current,t),i.collectMotionValues.current=void 0,e}if(void 0!==r&&!Array.isArray(r)&&"function"!=typeof n){var o=t,l=n,c=r,u=s;let i=(0,a.useConstant)(()=>Object.keys(c)),d=(0,a.useConstant)(()=>({}));for(let t of i)d[t]=e(o,l,c[t],u);return d}let d="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],r=e[1+n],s=e[2+n],a=e[3+n],o=(0,w.interpolate)(r,s,a);return t?o(i):o}(n,r,s),h=Array.isArray(t)?j(t,d):j([t],([e])=>d(e)),m=Array.isArray(t)?void 0:t.accelerate;return m&&!m.isTransformed&&"function"!=typeof n&&Array.isArray(r)&&s?.clamp!==!1&&(h.accelerate={...m,times:n,keyframes:r,isTransformed:!0,...s?.ease?{ease:s.ease}:{}}),h}(l);let c=o(l());return(0,r.useInsertionEffect)(()=>(function(e,t,n={}){let i,r=e.get(),s=null,a="string"==typeof r?r.replace(/[\d.-]/g,""):void 0,o=e=>i(a?e+a:e),l=()=>e.events.animationStart?.notify(),c=()=>{s&&(s.stop(),s=null),e.animation=void 0};if(e.attach((t,r)=>{i=r;let a=y(t);if(s?.state==="running")return void s.setTarget(a,n.velocity);let u=y(e.get()),d=s?s.getGeneratorVelocity():e.getVelocity();if(c(),u===a)return;let h=s=new g({...{keyframes:[u,a],velocity:d,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o},onPlay:l});e.animation=h,h.then(()=>{s===h&&(s=null,e.animation=void 0,e.events.animationComplete?.notify())})},c),(0,x.isMotionValue)(t)){let i=!0===n.skipInitialAnimation,r=t.on("change",t=>{var n,r,s,o;i?(i=!1,e.jump((n=t,(r=a)?n+r:n),!1)):e.set((s=t,(o=a)?s+o:s))}),s=e.on("destroy",r);return()=>{r(),s()}}return c})(c,e,t),[c,JSON.stringify(t)]),c}(e,{type:"spring",...t})}e.s(["default",0,function({children:e,className:i,strength:r=14}){let s=(0,l.useReducedMotion)(),a=o(0),c=o(0),u=b(a,{stiffness:220,damping:18,mass:.4}),d=b(c,{stiffness:220,damping:18,mass:.4});return s?(0,t.jsx)(t.Fragment,{children:e}):(0,t.jsx)(n.motion.div,{className:i,style:{x:u,y:d,display:"inline-flex"},onPointerMove:function(e){if("mouse"!==e.pointerType)return;let t=e.currentTarget.getBoundingClientRect();a.set(((e.clientX-t.left)/t.width-.5)*r),c.set(((e.clientY-t.top)/t.height-.5)*r)},onPointerLeave:function(){a.set(0),c.set(0)},children:e})}],61011)},28430,e=>{"use strict";
9var t=e.i(43476),n=e.i(22016),i=e.i(32181),r=e.i(72328);let s=i.motion.create(n.default),a={type:"spring",stiffness:320,damping:26};e.s(["default",0,function({href:e,variant:n,children:o,className:l,stagger:c=!1,onClick:u}){let d=`btn btn--${n} rolling-btn${l?` ${l}`:""}`,h=(0,r.useReducedMotion)()?"rest":"roll",m=c?(0,t.jsx)("span",{className:"rolling-btn__chars",children:o.split("").map((e,n)=>(0,t.jsx)("span",{className:"rolling-btn__viewport",children:(0,t.jsxs)(i.motion.span,{className:"rolling-btn__stack",variants:{rest:{transform:"translateY(0%)"},roll:{transform:"translateY(-50%)"}},transition:{...a,delay:.02*n},children:[(0,t.jsx)("span",{className:"rolling-btn__line",children:" "===e?"Â ":e}),(0,t.jsx)("span",{className:"rolling-btn__line","aria-hidden":"true",children:" "===e?"Â ":e})]})},n))}):(0,t.jsx)("span",{className:"rolling-btn__viewport",children:(0,t.jsxs)(i.motion.span,{className:"rolling-btn__stack",variants:{rest:{transform:"translateY(0%)"},roll:{transform:"translateY(-50%)"}},transition:a,children:[(0,t.jsx)("span",{className:"rolling-btn__line",children:o}),(0,t.jsx)("span",{className:"rolling-btn__line","aria-hidden":"true",children:o})]})});return(0,t.jsx)(s,{className:d,href:e,initial:"rest",whileHover:h,whileFocus:h,onClick:u&&(e=>{e.preventDefault(),u(e)}),children:m})}])},96134,e=>{"use strict";var t=e.i(43476),n=e.i(32181),i=e.i(72328);e.s(["default",0,function(){let e=(0,i.useReducedMotion)();return(0,t.jsx)("svg",{className:"sp-spark",viewBox:"0 0 120 32",fill:"none","aria-hidden":"true",children:(0,t.jsx)(n.motion.path,{d:"M2 26 L18 22 L34 24 L50 14 L66 16 L82 6 L98 8 L118 2",stroke:"var(--primary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0,opacity:0},whileInView:{pathLength:1,opacity:1},viewport:{once:!0,amount:.6},transition:e?{duration:0}:{duration:1.1,ease:[.22,.61,.36,1],delay:.15}})})}])}]);
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.