1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ffbda609-7903-8867-20c6-fb2d5aed3c78")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,348978,e=>{"use strict";var t=e.i(953939),i=e.i(795683),r=e.i(792973),a=e.i(47420),n=e.i(420851);e.s(["default",0,function(e){let s,l,o,c,d,u=(0,i.c)(22),{ariaLabel:h,children:m,chevron:f,className:p,cornerMark:g,external:y,href:x,onClick:v,padding:w,variant:b}=e,A=void 0!==f&&f,k=void 0!==g&&g,_=void 0!==y&&y,M=void 0===w?"default":w,E=void 0===b?"accent":b;if(u[0]!==p||u[1]!==k||u[2]!==M||u[3]!==E)s=(0,n.cn)(["relative flex-center transition-[background-color,scale] duration-60 active:scale-98","focus-visible:outline-2 focus-visible:outline-ink focus-visible:outline-offset-2","large"===M?"text-label-large":"outline-soft"===E?"text-label-default":"text-label-small","chip"===M&&"gap-6 py-8 pr-16 pl-14","default"===M&&"gap-8 px-12 py-6","medium"===M&&"gap-8 px-16 py-10","large"===M&&"gap-8 px-24 py-16","uniform"===M&&"gap-2 p-7","accent"===E&&"before:inner-border bg-accent text-ink before:border-ink hover:bg-[color-mix(in_display-p3,var(--color-accent)_72%,var(--color-paper))]","outline"===E&&"before:inner-border text-ink before:border-ink hover:bg-paper","outline-soft"===E&&"before:inner-border text-[#262626] before:border-darker/8 hover:bg-paper","solid"===E&&"bg-ink text-accent hover:bg-ink/88","solid-paper"===E&&"bg-ink text-paper hover:bg-ink/88","secondary"===E&&"before:inner-border w-fit bg-paper text-ink before:border-[#f1f1f1] hover:bg-ink/4",k&&"after:outside-border after:top-full after:left-full after:border-ink after:bg-ink after:duration-60 hover:after:bg-transparent",k&&"large"!==M&&"after:-right-6 after:-bottom-6 hover:after:-inset-3",k&&"large"===M&&"after:-right-10 after:-bottom-10 hover:after:-inset-5",p]),u[0]=p,u[1]=k,u[2]=M,u[3]=E,u[4]=s;else s=u[4];let S=_?"noreferrer":void 0,C=_?"_blank":void 0;return u[5]!==A||u[6]!==m?(l=A?(0,t.jsx)("span",{className:"px-4",children:m}):m,u[5]=A,u[6]=m,u[7]=l):l=u[7],u[8]!==E?(o="accent"===E?(0,t.jsx)("svg",{"aria-hidden":"true",className:"size-12 shrink-0",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"m4 1.75 4.25 4.25L4 10.25",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.5"})}):null,u[8]=E,u[9]=o):o=u[9],u[10]!==A?(c=A?(0,t.jsx)(a.default,{className:"size-20 shrink-0 -rotate-90"}):null,u[10]=A,u[11]=c):c=u[11],u[12]!==h||u[13]!==x||u[14]!==v||u[15]!==o||u[16]!==c||u[17]!==s||u[18]!==S||u[19]!==C||u[20]!==l?(d=(0,t.jsxs)(r.default,{"aria-label":h,className:s,href:x,onClick:v,rel:S,target:C,children:[l,o,c]}),u[12]=h,u[13]=x,u[14]=v,u[15]=o,u[16]=c,u[17]=s,u[18]=S,u[19]=C,u[20]=l,u[21]=d):d=u[21],d}])},47420,e=>{"use strict";var t=e.i(953939),i=e.i(795683);e.s(["default",0,function(e){let r,a,n=(0,i.c)(3),{className:s}=e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("path",{d:"M7.33398 8.66602L10.0007 11.3327L12.6673 8.66602",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.25"}),n[0]=r):r=n[0],n[1]!==s?(a=(0,t.jsx)("svg",{"aria-hidden":"true",className:s,fill:"none",height:"100%",viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:r}),n[1]=s,n[2]=a):a=n[2],a}])},675748,e=>{e.v({clip:"CommandButton-module__QkHVmq__clip","command-grow":"CommandButton-module__QkHVmq__command-grow","command-shrink":"CommandButton-module__QkHVmq__command-shrink"})},420650,e=>{"use strict";var t=e.i(953939),i=e.i(795683),r=e.i(519257),a=e.i(442868),n=e.i(25895);e.i(27627);var s=e.i(837361),l=e.i(342496),o=e.i(395999),c=e.i(536636),d=e.i(47420);let u={src:e.i(962050).default,width:20,height:20,blurWidth:0,blurHeight:0};var h=e.i(882735),m=e.i(675748),f=e.i(420851);function p(e){let r,a,n,s,l,o=(0,i.c)(13),{icon:c,label:d,onSelect:u,selected:h,value:m}=e;o[0]!==u||o[1]!==m?(r=()=>u(m),o[0]=u,o[1]=m,o[2]=r):r=o[2];let p=r;return o[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,f.cn)(["flex w-full items-center gap-4 p-12 transition-colors","focus-visible:outline-2 focus-visible:outline-paper focus-visible:-outline-offset-2","hover:bg-paper/6"]),o[3]=a):a=o[3],o[4]!==c?(n=(0,t.jsx)(c,{className:"size-20 shrink-0"}),o[4]=c,o[5]=n):n=o[5],o[6]!==d?(s=(0,t.jsx)("span",{className:"px-4 text-body-small",children:d}),o[6]=d,o[7]=s):s=o[7],o[8]!==p||o[9]!==h||o[10]!==n||o[11]!==s?(l=(0,t.jsxs)("button",{"aria-checked":h,className:a,onClick:p,role:"menuitemradio",tabIndex:-1,type:"button",children:[n,s]}),o[8]=p,o[9]=h,o[10]=n,o[11]=s,o[12]=l):l=o[12],l}
2var g=e.i(139037),y=e.i(652089),x=e.i(515170),v=e.i(471912),w=e.i(560460),b=e.i(505195);let A={color:!0,position:!1,rotation:!1,uvs:!1,vertex:!1};var k=e.i(366992),_=e.i(838784);let M={cli:{icon:k.default,label:"CLI"},prompt:{icon:_.default,label:"Prompt"}};var E=e.i(640266);function S(e){return Math.max(0,Math.min(1,e))}function C(e){let t=43758.5453*Math.sin(127.1*e+311.7);return t-Math.floor(t)}function j(e,t,i,r,a,n,s,l){if(e.clearRect(0,0,a,n),e.globalAlpha=1,0===i||1===i)return;let o=t.top,c=t.bottom,d=t.advance,u=Math.max(1,d-1);for(let a=0;a<d;a++){let n=S((i-a/u*.72)/.28);if(0!==n&&1!==n)for(let i=o;i<c;i++){let o=C(59*a+23*i+83*r),c=o<n?function(e,t,i){if(t<0||i<0||t>=e.width||i>=e.height)return 0;let r=Math.min(e.canvas.width-1,Math.max(0,Math.floor(t*e.ratio))),a=Math.min(e.canvas.height-1,Math.max(0,Math.floor(i*e.ratio)));return e.data[(a*e.canvas.width+r)*4+3]/255}(t,a,i):0;c<.08||.14>C(31*a+47*i+37*r)||(e.globalAlpha=c,e.fillStyle=o>.76?l:s,e.fillRect(a,i,1,1))}}e.globalAlpha=1}function T({active:e,className:i,constrained:r=!1,maxDuration:a,startedAt:n,to:s}){let[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)(null),[m,p]=(0,l.useState)(0),[g,y]=(0,l.useState)({source:s.text,text:s.text}),x=g.source===s.text?g.text:s.text;(0,l.useLayoutEffect)(()=>{if(!c)return;let e="",t=new ResizeObserver(()=>{let t=c.getBoundingClientRect(),i=`${t.width}x${t.height}`;i!==e&&(e=i,p(e=>e+1))});return t.observe(c),()=>t.disconnect()},[c]),(0,l.useLayoutEffect)(()=>{if(!(c&&u))return;let e=c.getContext("2d"),{width:t}=c.getBoundingClientRect();if(!e||t<=0)return;let i=getComputedStyle(u);e.font=`${i.fontWeight} ${i.fontSize} ${i.fontFamily}`;let a=r?function(e,t,i){let r=t.replace(/\s+/g," ").trim();if(e.measureText(r).width<=i)return r;let a=r.length;for(;a>0&&e.measureText(`${r.slice(0,a).trimEnd()}â¦`).width>i;)a--;return`${r.slice(0,a).trimEnd()}â¦`}(e,s.text,t):s.text;y(e=>e.source===s.text&&e.text===a?e:{source:s.text,text:a})},[c,r,m,s.text,u]),(0,l.useLayoutEffect)(()=>{if(!(c&&u))return;let t=()=>{c.style.visibility="hidden",u.style.visibility="visible",u.style.removeProperty("clip-path")};if(t(),!e)return;u.style.clipPath="inset(0 100% 0 0)";let i=!1,r=null;return document.fonts.ready.then(()=>{let e,l;if(i)return;let{height:d,width:h}=c.getBoundingClientRect(),m=window.devicePixelRatio,f=c.getContext("2d");if(!f||h<=0||d<=0)return void t();c.width=Math.max(1,Math.round(h*m)),c.height=Math.max(1,Math.round(d*m)),f.setTransform(m,0,0,m,0,0),f.imageSmoothingEnabled=!1;let p=getComputedStyle(c),g=p.color,y=p.getPropertyValue("--color-accent").trim(),v=p.getPropertyValue("--color-faint").trim(),w=((e=document.createElement("span")).style.display="inline-block",e.style.width="0",e.style.height="0",e.style.margin="0",e.style.padding="0",u.append(e),l=e.getBoundingClientRect().top-c.getBoundingClientRect().top,e.remove(),l),b=function(e,t,i,r,a,n,s,l,o){let c=document.createElement("canvas");c.width=Math.max(1,Math.round(r*s)),c.height=Math.max(1,Math.round(a*s));let d=c.getContext("2d");if(!d)return null;let u=getComputedStyle(i),h=`${u.fontWeight} ${u.fontSize} ${u.fontFamily}`;d.setTransform(s,0,0,s,0,0),d.clearRect(0,0,r,a),d.fillStyle=u.color,d.font=h,d.textBaseline="alphabetic";let m=e.faintUntil??0,f=e.accentAt??t.length;if(0===m&&f>=t.length)d.fillText(t,0,n);else{let e=[[t.slice(0,m),o],[t.slice(m,f),u.color],[t.slice(f),l]],i=0;for(let[t,r]of e)t&&(d.fillStyle=r,d.fillText(t,i,n),i+=d.measureText(t).width)}let p=Math.min(Math.ceil(r),Math.ceil(d.measureText(t).width)),g=d.getImageData(0,0,c.width,c.height),y=Math.ceil(a),x=0;for(let e=0;e<Math.ceil(a);e++){let t=Math.floor(e*s),i=Math.min(c.height,Math.ceil((e+1)*s));for(let r=0;r<p;r++){let a=Math.floor(r*s),n=Math.min(c.width,Math.ceil((r+1)*s)),l=0;for(let e=t;e<i;e++){let t=e*c.width;for(let e=a;e<n;e++)l=Math.max(l,g.data[(t+e)*4+3])}l<24||(y=Math.min(y,e),x=Math.max(x,e+1))}}return{advance:p,bottom:x,canvas:c,data:g.data,height:a,ratio:s,top:y,width:r}}(s,x,u,h,d,w,m,y,v);if(!b)return void t();let A=Math.min(a,Math.max(150,25*Math.ceil(b.advance/15))),k=Math.max(1,Math.round(A/25));j(f,b,0,0,h,d,g,y),c.style.visibility="visible";let _=-1;r=({timestamp:e})=>{let t=S((e-n)/A),i=Math.min(k,Math.floor((0,o.HOUSE_EASE)(t)*k));if(i!==_){_=i;let e=i/k;j(f,b,e,i,h,d,g,y);let t=S((e-.28)/.72);u.style.clipPath=`inset(0 ${(1-t)*100}% 0 0)`}!(t<1)&&r&&(0,E.cancelFrame)(r)},E.frame.update(r,!0)}),()=>{i=!0,r&&(0,E.cancelFrame)(r),t()}},[e,c,a,m,n,s,u,x]);let v=function(e,i){let{accentAt:r,faintUntil:a}=e;if(void 0===r&&void 0===a)return i;
2let n=a??0,s=r??i.length;return(0,t.jsxs)(t.Fragment,{children:[n>0?(0,t.jsx)("span",{className:"text-faint",children:i.slice(0,n)}):null,i.slice(n,s),s<i.length?(0,t.jsx)("span",{className:"text-accent",children:i.slice(s)}):null]})}(s,x);return(0,t.jsxs)("span",{className:(0,f.cn)(["inline-block whitespace-pre",i]),children:[(0,t.jsxs)("span",{className:(0,f.cn)(["relative",r?"block w-full overflow-hidden text-ellipsis whitespace-nowrap":"inline-block"]),children:["code"===s.tag?(0,t.jsx)("code",{"aria-hidden":"true",className:s.className,ref:h,children:v}):(0,t.jsx)("span",{"aria-hidden":"true",className:s.className,ref:h,children:v}),(0,t.jsx)("canvas",{className:"pointer-events-none invisible absolute inset-0 h-full w-full",ref:d})]}),(0,t.jsx)("span",{className:"sr-only",children:s.text})]})}var N=e.i(10730),R=e.i(95317),P=e.i(480848);let L={duration:.09,ease:o.SHARP},B={cli:{copied:"Install command copied",failed:"Could not copy the install command",label:"Copy install command",text:g.INIT_COMMAND},prompt:{copied:"Setup prompt copied",failed:"Could not copy the setup prompt",label:"Copy setup prompt",text:g.PROMPT_TEXT}},I=new Map;function O(e){let r,a=(0,i.c)(2),{className:n}=e;return a[0]!==n?(r=(0,t.jsx)("img",{alt:"",className:n,src:u.src}),a[0]=n,a[1]=r):r=a[1],r}e.s(["default",0,function({additionalCommand:e,className:i,fixedWidth:u=!1,initialMode:k="cli",onModeChange:_,ref:E,strokedMenu:S=!1,wideCommand:C=!1}){let[j,F]=(0,l.useState)(k),[z,$]=(0,l.useState)(!1),[W,D]=(0,l.useState)(!1),[V,X]=(0,l.useState)(!1),[U,Y]=(0,l.useState)("idle"),[H,G]=(0,l.useState)(null),[q,Q]=(0,l.useState)(null),[Z,K]=(0,l.useState)(null),J=(0,l.useId)(),ee=(0,R.useSetupTakeover)(),[et,ei]=(0,l.useState)(null),er=(0,l.useRef)(null),ea=(0,l.useRef)(null),en=(0,l.useRef)(null),es=(0,l.useRef)(null),el=(0,l.useRef)(null),eo=(0,l.useRef)(j),ec=(0,l.useRef)("srgb"),ed=(0,l.useRef)(0),eu=(0,l.useRef)(0),eh=(0,l.useRef)(0),em=(0,l.useRef)({arrow:0,right:0}),ef=(0,l.useRef)(0),[ep,eg]=(0,l.useState)(!0),ey="prompt"===j?375:200,ex={"--command-block":"8px","--command-delay":"0ms","--command-duration":`${ey}ms`},[ev]=(0,l.useState)(()=>{let e={onSettle:null,start:null};return{source:e,tickers:[({app:t,cleanup:i})=>{let r=new w.Texture({source:w.Texture.WHITE.source}),a=null,n=[],s=new Float32Array(0),l=0,c=0,d=!1,u=!1,h=0,m=375,f=1,p=0,g=(e,t,i,a,n)=>{let s=new x.Particle({texture:r});return s.x=e,s.y=t,s.scaleX=i,s.scaleY=a,s.color=n,s},k=e=>{for(let t=0;t<n.length;t++)n[t].color=s[t]<=e?l:c},_=()=>{if((0,b.isDestroyed)(t)){d=!1,t.ticker.stop(),e.onSettle?.();return}if(!d)return void t.ticker.stop();let i=(performance.now()-h)/m,r=Math.min(1,Math.floor((0,o.HOUSE_EASE)(Math.max(0,Math.min(1,i)))*f)/f);if(i<1)return void k(r);if(u){a&&(a.visible=!1),d=!1,t.ticker.stop();return}u=!0,k(1),e.onSettle?.()};e.start=e=>{if((0,b.isDestroyed)(t))return!1;let i=e.base+e.reach;return m=e.duration,f=Math.max(1,Math.ceil(e.reach/8)),t.canvas.style.width=`${i}px`,t.canvas.style.height=`${e.height}px`,t.renderer.resize(i,e.height),(e=>{a?.destroy({children:!0}),a=null,n=[];let{base:i,height:o,reach:d,tint:u}=e,h=y.Color.shared.setValue(u).toBgrNumber()+0xff000000;l=e.shrinking?0:h,c=e.shrinking?h:0,p=(p+37)%1024;let m=Math.max(1,Math.ceil(o/8)),f=Math.ceil(i/8),x=Math.ceil(d/8),w=x-1+6.4,b=[];s=new Float32Array(x*m);for(let e=0;e<m;e++){let t=8*e,r=Math.min(8,o-t);for(let e=0;e<f;e++){let a=8*e;b.push(g(a,t,Math.min(8,i-a),r,h))}}let k=0;for(let t=0;t<m;t++){let r=8*t,a=Math.min(8,o-r);for(let l=0;l<x;l++){let o=8*l,u=e.shrinking?x-1-l:l,h=(function(e){let t=43758.5453*Math.sin(127.1*e+311.7);return t-Math.floor(t)}(p+7*l+131*t)-.5)*6.4,m=g(i+o,r,Math.min(8,d-o),a,c);s[k]=(u+h+3.2)/w,n[k]=m,b.push(m),k+=1}}(a=new v.ParticleContainer({dynamicProperties:A,particles:b,texture:r})).update(),t.stage.addChild(a)})(e),!!a&&(k(0),t.render(),{startedAt:h}=e,u=!1,d=!0,t.ticker.start(),!0)},t.ticker.add(_),i(()=>{t.ticker?.remove(_),e.start=null,d=!1,a?.destroy({children:!0}),a=null,n=[],r.destroy(!1)})}]}});(0,l.useEffect)(()=>{if(et)return(0,c.watchAnimation)(et,eg)},[et]);let ew=(0,l.useCallback)(()=>{window.clearTimeout(ed.current),er.current?.removeAttribute("data-chrome"),er.current?.scrollTo({left:0})},[]);(0,l.useEffect)(()=>(ev.source.onSettle=ew,()=>{ev.source.onSettle=null,ew()}),[ew,ev]),(0,l.useEffect)(()=>
2{if(!z)return;es.current?.querySelector('[aria-checked="true"]')?.focus();let e=e=>{if("Escape"===e.key){$(!1),el.current?.focus();return}if("Tab"===e.key)return void $(!1);if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();let t=Array.from(es.current?.querySelectorAll('[role="menuitemradio"]')??[]),i=t.findIndex(e=>e.contains(document.activeElement)),r="ArrowDown"===e.key?1:-1;t[(i+r+t.length)%t.length]?.focus()},t=e=>{e.target instanceof Node&&et?.contains(e.target)||$(!1)};return document.addEventListener("keydown",e),document.addEventListener("pointerdown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("pointerdown",t)}},[z,et]),(0,l.useEffect)(()=>()=>window.clearTimeout(eu.current),[]),(0,l.useLayoutEffect)(()=>{let e=es.current;if(!(z&&et&&e))return;let t=window.innerHeight,i=et.parentElement;for(;i;){if("visible"!==getComputedStyle(i).overflowY){t=Math.min(t,i.getBoundingClientRect().bottom);break}i=i.parentElement}D(et.getBoundingClientRect().top+54+e.getBoundingClientRect().height>t)},[z,et]),(0,l.useLayoutEffect)(()=>{let e=ef.current,t=em.current;if(em.current={arrow:0,right:0},!(q&&Z&&t.arrow&&t.right))return;let i=Math.max(0,150-(performance.now()-e));if(0===i)return;let r=[(0,a.animate)(q,{transform:[`translateX(${t.arrow-q.getBoundingClientRect().x}px)`,"translateX(0px)"]},{duration:i/1e3,ease:o.HOUSE_EASE}),(0,a.animate)(Z,{transform:[`translateX(${t.right-Z.getBoundingClientRect().x}px)`,"translateX(0px)"]},{duration:i/1e3,ease:o.HOUSE_EASE})];return()=>{for(let e of r)e.stop()}},[q,j,Z]),(0,l.useLayoutEffect)(()=>{let e=er.current,t=ea.current;if(!(e&&t))return;let i=eh.current;if(eh.current=0,0===i)return void G(null);let r=t.getBoundingClientRect(),a=r.width;if(i===a)return void G(null);ew();let n=Math.round(Math.min(i,a)),s=Math.round(Math.max(i,a))-n;if(s<1)return void G(null);let l=ef.current,o=Math.min(ey,Math.max(0,performance.now()-l)),c=ep?function(e,t){let i=`${t} ${e}`,r=I.get(i);if(void 0!==r)return r;let a=document.createElement("canvas");a.width=1,a.height=1;let n=a.getContext("2d",{colorSpace:t,willReadFrequently:!0});if(!n)return null;n.fillStyle=e,n.fillRect(0,0,1,1);let s=n.getImageData(0,0,1,1).data;if(0===s[3])return null;let l=65536*s[0]+256*s[1]+s[2];return I.set(i,l),l}(getComputedStyle(e).backgroundColor,ec.current):null,d=null!==c&&(ev.source.start?.({base:n,duration:ey,height:r.height,reach:s,shrinking:a<i,startedAt:l,tint:c})??!1);e.style.setProperty("--command-base",`${n}px`),e.style.setProperty("--command-delay",`${-o}ms`),e.style.setProperty("--command-reach",`${s}px`),G(a>i?"grow":"shrink"),d&&(e.dataset.chrome="canvas",ed.current=window.setTimeout(ew,ey+300))},[j,ew,ev,ey,ep]);let eb=(0,l.useCallback)(e=>{ec.current=e.renderer instanceof s.WebGLRenderer?e.renderer.gl.drawingBufferColorSpace:"srgb";let t=er.current;if(!t)return;let{height:i,width:r}=t.getBoundingClientRect();e.canvas.style.width=`${r}px`,e.canvas.style.height=`${i}px`,e.renderer.resize(r,i)},[]),eA=()=>X(!0),ek=(0,l.useCallback)(e=>{$(!1),el.current?.focus(),e!==eo.current&&(eo.current=e,eh.current=er.current?.getBoundingClientRect().width??0,em.current={arrow:q?.getBoundingClientRect().x??0,right:Z?.getBoundingClientRect().x??0},ef.current=performance.now(),F(e),Y("idle"),_?.(e))},[q,_,Z]);(0,l.useImperativeHandle)(E,()=>({selectMode:ek}),[ek]);let e_="additional"===j?e??B.cli:B[j],eM=async()=>{try{return await navigator.clipboard.writeText(e_.text),!0}catch{return!1}},{icon:eE,label:eS}="additional"===j?{icon:O,label:e?.modeLabel??M.cli.label}:M[j];return(0,t.jsxs)("div",{className:(0,f.cn)(["relative shrink-0 text-paper",i]),ref:ei,children:[V?(0,t.jsx)(N.default,{canvasAttrs:{"aria-hidden":!0,className:"pointer-events-none absolute top-0 left-0"},onBeforeTickers:eb,tickers:ev.tickers}):null,(0,t.jsx)("div",{className:(0,f.cn)([m.default.clip,"overflow-hidden bg-ink","additional"===j&&"w-full","additional"!==j&&"max-xl:w-full xl:w-max"]),"data-fill":H??void 0,onAnimationEnd:e=>{e.target===e.currentTarget&&G(null)},ref:er,style:ex,children:(0,t.jsxs)("div",{className:(0,f.cn)(["flex h-48 items-center p-2","additional"===j&&"w-full","additional"!==j&&"max-xl:w-full xl:w-max"]),ref:ea,children:[(0,t.jsxs)("button",{"aria-controls":z?J:void 0,"aria-expanded":z,"aria-haspopup":"menu",className:(0,f.cn)(["flex items-center gap-4 p-12 focus-visible:outline-2 focus-visible:outline-paper focus-visible:-outline-offset-2","additional"===j&&"w-148 shrink-0",u&&"justify-between xl:w-148 xl:shrink-0"]),onClick:()=>{X(!0),$(e=>!e)},onFocus:eA,onPointerEnter:eA,ref:el,type:"button",children:[(0,t.jsxs)("span",{className:(0,f.cn)(["flex items-center gap-4","additional"===j&&"flex-1"]),children:[(0,t.jsx)("span",{className:"relative size-20 shrink-0",children:(0,t.jsx)(r.AnimatePresence,{initial:!1,children:(0,t.jsx)(n.motion.span,{animate:{o
2pacity:1},className:"absolute inset-0",exit:{opacity:0},initial:{opacity:0},transition:L,children:(0,t.jsx)(eE,{className:"size-20"})},j)})}),(0,t.jsx)(T,{active:null!==H,className:"px-4",maxDuration:ey,startedAt:ef.current,to:{className:"text-body-small",tag:"span",text:eS}})]}),(0,t.jsx)("span",{className:"size-20 shrink-0",ref:Q,children:(0,t.jsx)(d.default,{className:"size-20"})})]}),(0,t.jsxs)("div",{className:(0,f.cn)(["flex min-w-0 items-center","additional"===j&&"flex-1","max-xl:flex-1"]),ref:K,children:[(0,t.jsx)("div",{className:"flex w-12 shrink-0 flex-col items-center self-stretch py-8 opacity-20",children:(0,t.jsx)("div",{className:"w-1 flex-1 bg-faint"})}),(0,t.jsxs)("div",{className:(0,f.cn)(["relative flex min-w-0 items-center gap-4 p-12","additional"===j&&"flex-1","max-xl:flex-1"]),children:["additional"===j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"px-4 text-faint text-mono-small",children:"$"}),(0,t.jsx)("div",{className:"relative grid min-w-0 flex-1 items-center",children:(0,t.jsx)(T,{active:null!==H,className:"min-w-0 flex-1 px-4",constrained:!0,maxDuration:ey,startedAt:ef.current,to:{className:"text-mono-small",tag:"code",text:e_.text}})})]}):(0,t.jsx)("div",{className:(0,f.cn)(["relative grid items-center","max-xl:min-w-0 max-xl:flex-1"]),children:(0,t.jsx)(T,{active:null!==H,className:(0,f.cn)(["overflow-hidden px-4",u&&(C?"h-20 w-258 max-xl:w-auto max-xl:min-w-0 xl:text-left":"h-20 w-188 max-xl:w-auto max-xl:min-w-0 xl:text-left"),!u&&"prompt"===j&&"h-20 w-188 max-xl:w-auto max-xl:min-w-0"]),constrained:"prompt"===j,maxDuration:ey,startedAt:ef.current,to:"cli"===j?{accentAt:6,className:"text-mono-small",faintUntil:1,tag:"code",text:"$ npx restless init"}:{className:"text-body-small",tag:"span",text:g.PROMPT_TEXT}})}),(0,t.jsx)(n.motion.button,{"aria-label":e_.label,className:"relative size-20 shrink-0",layout:"position",onClick:()=>{let t;(0,P.default)("npx_command_copy",{command_mode:"additional"===j?"demo":j,command_text:e_.text}),window.clearTimeout(eu.current),Y("idle");let i=eM();t=er.current,ee&&t&&ee({additionalCommand:e,copied:i,fixedWidth:u,mode:j,rect:t.getBoundingClientRect(),trigger:en.current,wideCommand:C}),i.then(e=>{Y(e?"copied":"failed"),eu.current=window.setTimeout(()=>Y("idle"),1600)})},ref:en,transition:{duration:ey/1e3,ease:o.HOUSE_EASE},type:"button",children:(0,t.jsx)(h.default,{className:"size-20"})}),(0,t.jsxs)("span",{"aria-live":"polite",className:"sr-only",children:["copied"===U?e_.copied:"","failed"===U?e_.failed:""]})]})]})]})}),(0,t.jsx)(r.AnimatePresence,{children:z?(0,t.jsxs)(n.motion.div,{animate:{opacity:1,y:0},"aria-label":"Command mode",className:(0,f.cn)(["absolute left-0 z-40 flex w-148 flex-col overflow-clip bg-ink p-2",W?"bottom-54":"top-54",S&&"before:inner-border before:border-lighter/8"]),exit:{opacity:0,y:W?4:-4},id:J,initial:{opacity:0,y:W?4:-4},ref:es,role:"menu",transition:L,children:[e?(0,t.jsx)(p,{icon:O,label:e.modeLabel,onSelect:ek,selected:"additional"===j,value:"additional"}):null,(0,t.jsx)(p,{icon:M.prompt.icon,label:M.prompt.label,onSelect:ek,selected:"prompt"===j,value:"prompt"}),(0,t.jsx)(p,{icon:M.cli.icon,label:M.cli.label,onSelect:ek,selected:"cli"===j,value:"cli"})]}):null})]})}],420650)},92219,e=>{"use strict";var t=e.i(953939),i=e.i(342496);let r=[{label:"Solid",paints:()=>!0,rows:2,slug:"solid"},{label:"Checker",paints:(e,t)=>(e+t)%2==1,rows:2,slug:"checker"}];var a=e.i(420851);function n(e=r){return e[Math.floor(Math.random()*e.length)]??r[0]}function s(e,t,i,r){e.fillRect(r.column*t,i-(r.row+1)*t,t,t)}e.s(["default",0,function({className:e,replay:l=0,storageKey:o,variant:c}){let[d,u]=(0,i.useState)(null),h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(!d)return;let e=d.getContext("2d");if(!e)return;let t=r.find(({slug:e})=>e===c)??h.current??function(e){if(!e)return n();try{let t=`hero-stripe-variant:${e}`,i=sessionStorage.getItem(t),a=r.filter(({slug:e})=>e!==i),s=n(a);return sessionStorage.setItem(t,s.slug),s}catch{return n()}}(o);h.current=t;let i=0,a=0,l=0,u=[],m=0,f=0,p=performance.now(),g=0,y=0,x=null;d.dataset.stripeVariant=t.slug;let v=t=>{for(g-=Math.min(t-p,32),p=t;g<=0&&m<u.length;){let t=u.at(m);if(!t)break;s(e,i,l,t),m+=1,g+=y*(.65+.7*Math.random())}m<u.length&&(f=requestAnimationFrame(v))},w=()=>{let{height:r,width:n}=d.getBoundingClientRect(),o=devicePixelRatio,c=r/t.rows;if(!(c>0))return;let h=Math.ceil(n/c),x=Math.round(n*o),w=Math.round(r*o);if(c===i&&h===a&&x===d.width&&w===d.height)return;let b=0===u.length?0:m/u.length,A=h!==a;cancelAnimationFrame(f),i=c,a=h,l=r,d.width=x,d.height=w,e.setTransform(o,0,0,o,0,0),e.fillStyle=getComputedStyle(d).color,A&&(y=720/(u=function(e,t){let i=(e-1)/2,r=[];for(let a=0;a<e;a+=1)for(let e=0;e<t.rows;e+=1)t.paints(a,e)&&r.push({column:a,order:Math.abs(a-i)+8*Math.random(),row:e});return r.sort((e,t)=>
2e.order-t.order),r}(a,t)).length,m=Math.floor(u.length*b)),p=performance.now(),g=0;for(let t=0;t<m;t+=1){let r=u.at(t);r&&s(e,i,l,r)}m<u.length&&(f=requestAnimationFrame(v))},b=()=>{x?.removeEventListener("change",b),(x=window.matchMedia(`(resolution: ${devicePixelRatio}dppx)`)).addEventListener("change",b),w()};w(),b();let A=new ResizeObserver(w);return A.observe(d),()=>{cancelAnimationFrame(f),A.disconnect(),x?.removeEventListener("change",b),e.clearRect(0,0,d.width,d.height)}},[d,l,o,c]),(0,t.jsx)("div",{"aria-hidden":"true",className:(0,a.cn)(["h-26 w-full shrink-0 text-ink xl:h-40",e]),children:(0,t.jsx)("canvas",{className:"block size-full",ref:u})})}],92219)},840989,e=>{"use strict";var t=e.i(953939),i=e.i(795683),r=e.i(342496),a=e.i(455052);let n=(0,r.createContext)(null);var s=e.i(640266),l=e.i(178520);let o=e=>!e.isLayoutDirty&&e.willUpdate(!1),c=({children:e,id:i,inherit:c=!0})=>{let d=(0,r.useContext)(a.LayoutGroupContext),u=(0,r.useContext)(n),[h,m]=function(){let e,t=(e=(0,r.useRef)(!1),(0,l.useIsomorphicLayoutEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[i,a]=(0,r.useState)(0),n=(0,r.useCallback)(()=>{t.current&&a(i+1)},[i]);return[(0,r.useCallback)(()=>s.frame.postRender(n),[n]),i]}(),f=(0,r.useRef)(null),p=d.id||u;if(null===f.current){let e,t,r,a;(!0==(!0===(a=c))||"id"===a)&&p&&(i=i?p+"-"+i:p),f.current={id:i,group:!0===c&&d.group||(e=new Set,t=new WeakMap,{add:i=>{e.add(i),t.set(i,i.addEventListener("willUpdate",r))},remove:i=>{e.delete(i);let a=t.get(i);a&&(a(),t.delete(i)),r()},dirty:r=()=>e.forEach(o)})}}let g=(0,r.useMemo)(()=>({...f.current,forceRender:h}),[m]);return(0,t.jsx)(a.LayoutGroupContext.Provider,{value:g,children:e})};var d=e.i(25895),u=e.i(792973),h=e.i(395999);e.s(["default",0,function(e){let a,n,s,l,o,m,f,p,g,y,x=(0,i.c)(22),{links:v,title:w}=e,[b,A]=(0,r.useState)(null),k=(0,r.useRef)(0);x[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{window.clearTimeout(k.current),k.current=0},x[0]=a):a=x[0];let _=a;x[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{_(),k.current=window.setTimeout(()=>{A(null),k.current=0},180)},x[1]=n):n=x[1];let M=n;x[2]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{let{href:t}=e.currentTarget.dataset;t&&(_(),A(t))},x[2]=s):s=x[2];let E=s;x[3]===Symbol.for("react.memo_cache_sentinel")?(l=()=>()=>{window.clearTimeout(k.current)},o=[],x[3]=l,x[4]=o):(l=x[3],o=x[4]),(0,r.useEffect)(l,o),x[5]!==w?(m=(0,t.jsx)("h3",{className:"text-body-default",children:w}),x[5]=w,x[6]=m):m=x[6];let S=`footer-${w}`;if(x[7]!==b||x[8]!==v||x[9]!==w){let e;x[11]!==b||x[12]!==w?(e=e=>{let{external:i,href:r,label:a}=e;return(0,t.jsxs)(d.motion.div,{animate:"rest",className:"relative w-fit","data-href":r,onFocus:E,onPointerEnter:E,tabIndex:-1,whileTap:"pressed",children:[b===r?(0,t.jsx)(d.motion.span,{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-0 -left-19 my-auto size-3 bg-ink","data-footer-link-marker":w,layoutId:"footer-link-marker",transition:{duration:.09,ease:h.QUART_OUT},variants:{pressed:{x:4},rest:{x:0}}}):null,i?(0,t.jsx)("a",{className:"block py-8 text-body-default opacity-70 transition-opacity hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ink focus-visible:outline-offset-2",href:r,onBlur:M,rel:"noreferrer",target:"_blank",children:a}):(0,t.jsx)(u.default,{className:"block py-8 text-body-default opacity-70 transition-opacity hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ink focus-visible:outline-offset-2",href:r,onBlur:M,children:a})]},r)},x[11]=b,x[12]=w,x[13]=e):e=x[13],f=v.map(e),x[7]=b,x[8]=v,x[9]=w,x[10]=f}else f=x[10];return x[14]!==f?(p=(0,t.jsx)("div",{className:"-my-8 flex flex-col items-start",onFocus:_,onPointerEnter:_,onPointerLeave:M,children:f}),x[14]=f,x[15]=p):p=x[15],x[16]!==S||x[17]!==p?(g=(0,t.jsx)(c,{id:S,children:p}),x[16]=S,x[17]=p,x[18]=g):g=x[18],x[19]!==g||x[20]!==m?(y=(0,t.jsxs)("div",{className:"flex flex-col gap-20",children:[m,g]}),x[19]=g,x[20]=m,x[21]=y):y=x[21],y}],840989)},505195,10730,e=>{"use strict";let t,i,r,a,n;e.i(27627);var s=e.i(445997),l=e.i(199421),o=e.i(440603),c=e.i(245221),d=e.i(310074);let u={test:e=>"string"==typeof e&&e.startsWith("info face="),parse(e){let t=e.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(let e in t){let r=t[e].match(/^[a-z]+/gm)[0],a=t[e].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),n={};for(let e in a){let t=a[e].split("="),i=t[0],r=t[1].replace(/"/gm,""),s=parseFloat(r),l=isNaN(s)?r:s;n[i]=l}i[r].push(n)}let r={chars:{},pages:[],lineHeight:0,fontSize:0,fontFamily:"",distanceField:null,baseLineOffset:0}
2,[a]=i.info,[n]=i.common,[s]=i.distanceField??[];s&&(r.distanceField={range:parseInt(s.distanceRange,10),type:s.fieldType}),r.fontSize=parseInt(a.size,10),r.fontFamily=a.face,r.lineHeight=parseInt(n.lineHeight,10);let l=i.page;for(let e=0;e<l.length;e++)r.pages.push({id:parseInt(l[e].id,10)||0,file:l[e].file});let o={};r.baseLineOffset=r.lineHeight-parseInt(n.base,10);let c=i.char;for(let e=0;e<c.length;e++){let t=c[e],i=parseInt(t.id,10),a=t.letter??t.char??String.fromCharCode(i);"space"===a&&(a=" "),o[i]=a,r.chars[a]={id:i,page:parseInt(t.page,10)||0,x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xOffset:parseInt(t.xoffset,10),yOffset:parseInt(t.yoffset,10),xAdvance:parseInt(t.xadvance,10),kerning:{}}}let d=i.kerning||[];for(let e=0;e<d.length;e++){let t=parseInt(d[e].first,10),i=parseInt(d[e].second,10),a=parseInt(d[e].amount,10);r.chars[o[i]]&&(r.chars[o[i]].kerning[o[t]]=a)}return r}},h={test:e=>"string"!=typeof e&&"getElementsByTagName"in e&&e.getElementsByTagName("page").length&&null!==e.getElementsByTagName("info")[0].getAttribute("face"),parse(e){let t={chars:{},pages:[],lineHeight:0,fontSize:0,fontFamily:"",distanceField:null,baseLineOffset:0},i=e.getElementsByTagName("info")[0],r=e.getElementsByTagName("common")[0],a=e.getElementsByTagName("distanceField")[0];a&&(t.distanceField={type:a.getAttribute("fieldType"),range:parseInt(a.getAttribute("distanceRange"),10)});let n=e.getElementsByTagName("page"),s=e.getElementsByTagName("char"),l=e.getElementsByTagName("kerning");t.fontSize=parseInt(i.getAttribute("size"),10),t.fontFamily=i.getAttribute("face"),t.lineHeight=parseInt(r.getAttribute("lineHeight"),10);for(let e=0;e<n.length;e++)t.pages.push({id:parseInt(n[e].getAttribute("id"),10)||0,file:n[e].getAttribute("file")});let o={};t.baseLineOffset=t.lineHeight-parseInt(r.getAttribute("base"),10);for(let e=0;e<s.length;e++){let i=s[e],r=parseInt(i.getAttribute("id"),10),a=i.getAttribute("letter")??i.getAttribute("char")??String.fromCharCode(r);"space"===a&&(a=" "),o[r]=a,t.chars[a]={id:r,page:parseInt(i.getAttribute("page"),10)||0,x:parseInt(i.getAttribute("x"),10),y:parseInt(i.getAttribute("y"),10),width:parseInt(i.getAttribute("width"),10),height:parseInt(i.getAttribute("height"),10),xOffset:parseInt(i.getAttribute("xoffset"),10),yOffset:parseInt(i.getAttribute("yoffset"),10),xAdvance:parseInt(i.getAttribute("xadvance"),10),kerning:{}}}for(let e=0;e<l.length;e++){let i=parseInt(l[e].getAttribute("first"),10),r=parseInt(l[e].getAttribute("second"),10),a=parseInt(l[e].getAttribute("amount"),10);t.chars[o[r]]&&(t.chars[o[r]].kerning[o[i]]=a)}return t}},m=e=>!!("string"==typeof e&&e.match(/<font(\s|>)/))&&h.test(c.DOMAdapter.get().parseXML(e)),f=e=>h.parse(c.DOMAdapter.get().parseXML(e)),p=[".xml",".fnt"],g={extension:{type:s.ExtensionType.CacheParser,name:"cacheBitmapFont"},test:e=>!!e?.pages&&!!e?.chars&&"string"==typeof e?.fontFamily&&""!==e.fontFamily,getCacheableAssets(e,t){let i={};return e.forEach(e=>{i[e]=t,i[`${e}-bitmap`]=t}),i[`${t.fontFamily}-bitmap`]=t,i}},y={extension:{type:s.ExtensionType.LoadParser,priority:l.LoaderParserPriority.Normal},name:"loadBitmapFont",id:"bitmap-font",test:e=>p.includes(d.path.extname(e).toLowerCase()),testParse:async e=>u.test(e)||m(e),async parse(t,i,r){let a=u.test(t)?u.parse(t):f(t),{src:n}=i,{pages:s}=a,l=[],c=a.distanceField?{scaleMode:"linear",alphaMode:"premultiply-alpha-on-upload",autoGenerateMipmaps:!1,resolution:1}:{};for(let e=0;e<s.length;++e){let t=s[e].file,i=d.path.join(d.path.dirname(n),t);i=(0,o.copySearchParams)(i,n),l.push({src:i,data:c})}let[h,{BitmapFont:m}]=await Promise.all([r.load(l),e.A(789438)]);return new m({data:a,textures:l.map(e=>h[e.src])},n)},async load(e,t){let i=await c.DOMAdapter.get().fetch(e);return await i.text()},async unload(e,t,i){await Promise.all(e.pages.map(e=>i.unload(e.texture.source._sourceOrigin))),e.destroy()}};var x=e.i(821642);class v{constructor(e,t=!1){this._loader=e,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=t}add(e){e.forEach(e=>{this._assetList.push(e)}
2),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;let e=[],t=Math.min(this._assetList.length,this._maxConcurrent);for(let i=0;i<t;i++)e.push(this._assetList.pop());await this._loader.load(e),this._isLoading=!1,this._next()}}get active(){return this._isActive}set active(e){this._isActive!==e&&(this._isActive=e,e&&!this._isLoading&&this._next())}}var w=e.i(257997),b=e.i(560460);let A={extension:{type:s.ExtensionType.CacheParser,name:"cacheTextureArray"},test:e=>Array.isArray(e)&&e.every(e=>e instanceof b.Texture),getCacheableAssets:(e,t)=>{let i={};return e.forEach(e=>{t.forEach((t,r)=>{i[e+(0===r?"":r+1)]=t})}),i}};async function k(e){if("Image"in globalThis)return new Promise(t=>{let i=new Image;i.onload=()=>{t(!0)},i.onerror=()=>{t(!1)},i.src=e});if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{let t=await (await fetch(e)).blob();await createImageBitmap(t)}catch(e){return!1}return!0}return!1}let _={extension:{type:s.ExtensionType.DetectionParser,priority:1},test:async()=>k("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="),add:async e=>[...e,"avif"],remove:async e=>e.filter(e=>"avif"!==e)},M=["png","jpg","jpeg"],E={extension:{type:s.ExtensionType.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...M],remove:async e=>e.filter(e=>!M.includes(e))},S="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function C(e){return!S&&""!==document.createElement("video").canPlayType(e)}let j={extension:{type:s.ExtensionType.DetectionParser,priority:0},test:async()=>C("video/mp4"),add:async e=>[...e,"mp4","m4v"],remove:async e=>e.filter(e=>"mp4"!==e&&"m4v"!==e)},T={extension:{type:s.ExtensionType.DetectionParser,priority:0},test:async()=>C("video/ogg"),add:async e=>[...e,"ogv"],remove:async e=>e.filter(e=>"ogv"!==e)},N={extension:{type:s.ExtensionType.DetectionParser,priority:0},test:async()=>C("video/webm"),add:async e=>[...e,"webm"],remove:async e=>e.filter(e=>"webm"!==e)},R={extension:{type:s.ExtensionType.DetectionParser,priority:0},test:async()=>k("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="),add:async e=>[...e,"webp"],remove:async e=>e.filter(e=>"webp"!==e)};var P=e.i(819069),L=e.i(99489);let B=class e{constructor(){this.loadOptions={...e.defaultOptions},this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(e,t,i)=>(this._parsersValidated=!1,e[t]=i,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(e,t){let i={promise:null,parser:null};return i.promise=(async()=>{let r=null,a=null;if((t.parser||t.loadParser)&&(a=this._parserHash[t.parser||t.loadParser],t.loadParser&&(0,x.warn)(`[Assets] "loadParser" is deprecated, use "parser" instead for ${e}`),a||(0,x.warn)(`[Assets] specified load parser "${t.parser||t.loadParser}" not found while loading ${e}`)),!a){for(let i=0;i<this.parsers.length;i++){let r=this.parsers[i];if(r.load&&r.test?.(e,t,this)){a=r;break}}if(!a)return(0,x.warn)(`[Assets] ${e} could not be loaded as we don't know how to parse it, ensure the correct parser has been added`),null}r=await a.load(e,t,this),i.parser=a;for(let e=0;e<this.parsers.length;e++){let a=this.parsers[e];a.parse&&a.parse&&await a.testParse?.(r,t,this)&&(r=await a.parse(r,t,this)||r,i.parser=a)}return r})(),i}async load(t,i){this._parsersValidated||this._validateParsers();let{onProgress:r,onError:a,strategy:n,retryCount:s,retryDelay:l}="function"==typeof i?{...e.defaultOptions,...this.loadOptions,onProgress:i}:{...e.defaultOptions,...this.loadOptions,...i||{}},o=0,c={},u=(0,L.isSingleItem)(t),h=(0,P.convertToList)(t,e=>({alias:[e],src:e,data:{}})),m=h.reduce((e,t)=>
2e+(t.progressSize||1),0),f=h.map(async e=>{let t=d.path.toAbsolute(e.src);!c[e.src]&&(await this._loadAssetWithRetry(t,e,{onProgress:r,onError:a,strategy:n,retryCount:s,retryDelay:l},c),o+=e.progressSize||1,r&&r(o/m))});return await Promise.all(f),u?c[h[0].src]:c}async unload(e){let t=(0,P.convertToList)(e,e=>({alias:[e],src:e})).map(async e=>{let t=d.path.toAbsolute(e.src),i=this.promiseCache[t];if(i){let r=await i.promise;delete this.promiseCache[t],await i.parser?.unload?.(r,e,this)}});await Promise.all(t)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(e=>e.name||e.id).reduce((e,t)=>(t.name||t.id?(e[t.name]||e[t.id])&&(0,x.warn)(`[Assets] parser id conflict "${t.id}"`):(0,x.warn)("[Assets] parser should have an id"),e[t.name]=t,t.id&&(e[t.id]=t),e),{})}async _loadAssetWithRetry(e,t,i,r){let a=0,{onError:n,strategy:s,retryCount:l,retryDelay:o}=i,c=e=>new Promise(t=>setTimeout(t,e));for(;;)try{this.promiseCache[e]||(this.promiseCache[e]=this._getLoadPromiseAndParser(e,t)),r[t.src]=await this.promiseCache[e].promise;return}catch(u){delete this.promiseCache[e],delete r[t.src],a++;let i="retry"!==s||a>l;if("retry"===s&&!i){n&&n(u,t),await c(o);continue}if("skip"===s){n&&n(u,t);return}n&&n(u,t);let d=Error(`[Loader.load] Failed to load ${e}. 3${u}`);
3throw u instanceof Error&&u.stack&&(d.stack=u.stack),d}}};function I(e,t){if(Array.isArray(t)){for(let i of t)if(e.startsWith(`data:${i}`))return!0;return!1}return e.startsWith(`data:${t}`)}function O(e,t){let i=e.split("?")[0],r=d.path.extname(i).toLowerCase();return Array.isArray(t)?t.includes(r):r===t}B.defaultOptions={onProgress:void 0,onError:void 0,strategy:"throw",retryCount:3,retryDelay:250};let F={extension:{type:s.ExtensionType.LoadParser,priority:l.LoaderParserPriority.Low},name:"loadJson",id:"json",test:e=>I(e,"application/json")||O(e,".json"),async load(e){let t=await c.DOMAdapter.get().fetch(e);return await t.json()}},z={name:"loadTxt",id:"text",extension:{type:s.ExtensionType.LoadParser,priority:l.LoaderParserPriority.Low,name:"loadTxt"},test:e=>I(e,"text/plain")||O(e,".txt"),async load(e){let t=await c.DOMAdapter.get().fetch(e);return await t.text()}},$=["normal","bold","100","200","300","400","500","600","700","800","900"],W=[".ttf",".otf",".woff",".woff2"],D=["font/ttf","font/otf","font/woff","font/woff2"],V=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i,X=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/,U={extension:{type:s.ExtensionType.LoadParser,priority:l.LoaderParserPriority.Low},name:"loadWebFont",id:"web-font",test:e=>I(e,D)||O(e,W),async load(e,t){let i=c.DOMAdapter.get().getFontFaceSet();if(i){let r=[],a=t.data?.family??function(e){let t=d.path.extname(e),i=d.path.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)),r=i.length>0;for(let e of i)if(!e.match(V)){r=!1;break}let a=i.join(" ");return r||(a=`"${a.replace(/[\\"]/g,"\\$&")}"`),a}(e),n=t.data?.weights?.filter(e=>$.includes(e))??["normal"],s=t.data??{};for(let t=0;t<n.length;t++){let l=n[t],o=new FontFace(a,`url('${X.test(e)?e:encodeURI(e)}')`,{...s,weight:l});await o.load(),i.add(o),r.push(o)}return w.Cache.has(`${a}-and-url`)?w.Cache.get(`${a}-and-url`).entries.push({url:e,faces:r}):w.Cache.set(`${a}-and-url`,{entries:[{url:e,faces:r}]}),1===r.length?r[0]:r}return(0,x.warn)("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(e){let t=Array.isArray(e)?e:[e],i=t[0].family,r=w.Cache.get(`${i}-and-url`),a=r.entries.find(e=>e.faces.some(e=>-1!==t.indexOf(e)));a.faces=a.faces.filter(e=>-1===t.indexOf(e)),0===a.faces.length&&(r.entries=r.entries.filter(e=>e!==a)),t.forEach(e=>{c.DOMAdapter.get().getFontFaceSet().delete(e)}),0===r.entries.length&&w.Cache.remove(`${i}-and-url`)}};var Y=e.i(832414),H=e.i(112563),G=e.i(543594);function q(e,t=1){let i=G.Resolver.RETINA_PREFIX?.exec(e);return i?parseFloat(i[1]):t}function Q(e,t,i){e.label=i,e._sourceOrigin=i;let r=new b.Texture({source:e,label:i}),a=()=>{delete t.promiseCache[i],w.Cache.has(i)&&w.Cache.remove(i)};return r.source.once("destroy",()=>{t.promiseCache[i]&&((0,x.warn)("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."),a())}),r.once("destroy",()=>{e.destroyed||((0,x.warn)("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),a())}),r}let Z={extension:{type:s.ExtensionType.LoadParser,priority:l.LoaderParserPriority.Low,name:"loadSVG"},name:"loadSVG",id:"svg",config:{crossOrigin:"anonymous",parseAsGraphicsContext:!1},test:e=>I(e,"image/svg+xml")||O(e,".svg"),async load(e,t,i){return t.data?.parseAsGraphicsContext??this.config.parseAsGraphicsContext?J(e):K(e,t,i,this.config.crossOrigin)},unload(e){e.destroy(!0)}};async function K(e,t,i,r){let a=await c.DOMAdapter.get().fetch(e),n=c.DOMAdapter.get().createImage();n.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(await a.text())}`,n.crossOrigin=r,await n.decode();let s=t.data?.width??n.width,l=t.data?.height??n.height,o=t.data?.resolution||q(e),d=Math.ceil(s*o),u=Math.ceil(l*o),h=c.DOMAdapter.get().createCanvas(d,u),m=h.getContext("2d");m.imageSmoothingEnabled=!0,m.imageSmoothingQuality="high",m.drawImage(n,0,0,s*o,l*o);let{parseAsGraphicsContext:f,...p}=t.data??{};return Q(new Y.ImageSource({resource:h,alphaMode:"premultiply-alpha-on-upload",resolution:o,...p}),i,e)}async function J(e){let t=await c.DOMAdapter.get().fetch(e),i=await t.text(),r=new H.GraphicsContext;return r.svg(i),r}let ee=null;class et{constructor(){ee||(ee=URL.createObjectURL(new Blob(['(function () {\n \'use strict\';\n\n const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";
3\n async function checkImageBitmap() {\n try {\n if (typeof createImageBitmap !== "function") return false;\n const response = await fetch(WHITE_PNG);\n const imageBlob = await response.blob();\n const imageBitmap = await createImageBitmap(imageBlob);\n return imageBitmap.width === 1 && imageBitmap.height === 1;\n } catch (_e) {\n return false;\n }\n }\n void checkImageBitmap().then((result) => {\n self.postMessage(result);\n });\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(ee)}}et.revokeObjectURL=function(){ee&&(URL.revokeObjectURL(ee),ee=null)};let ei=null;class er{constructor(){ei||(ei=URL.createObjectURL(new Blob(['(function () {\n \'use strict\';\n\n async function loadImageBitmap(url, alphaMode) {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`[WorkerManager.loadImageBitmap] Failed to fetch ${url}: ${response.status} ${response.statusText}`);\n }\n const imageBlob = await response.blob();\n return alphaMode === "premultiplied-alpha" ? createImageBitmap(imageBlob, { premultiplyAlpha: "none" }) : createImageBitmap(imageBlob);\n }\n self.onmessage = async (event) => {\n try {\n const imageBitmap = await loadImageBitmap(event.data.data[0], event.data.data[1]);\n self.postMessage({\n data: imageBitmap,\n uuid: event.data.uuid,\n id: event.data.id\n }, [imageBitmap]);\n } catch (e) {\n self.postMessage({\n error: e,\n uuid: event.data.uuid,\n id: event.data.id\n });\n }\n };\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(ei)}}er.revokeObjectURL=function(){ei&&(URL.revokeObjectURL(ei),ei=null)};let ea=0,en=new class{constructor(){this._initialized=!1,this._createdWorkers=0,this._workerPool=[],this._queue=[],this._resolveHash={}}isImageBitmapSupported(){return void 0!==this._isImageBitmapSupported||(this._isImageBitmapSupported=new Promise(e=>{let{worker:t}=new et;t.addEventListener("message",i=>{t.terminate(),et.revokeObjectURL(),e(i.data)})})),this._isImageBitmapSupported}loadImageBitmap(e,t){return this._run("loadImageBitmap",[e,t?.data?.alphaMode])}async _initWorkers(){this._initialized||(this._initialized=!0)}_getWorker(){void 0===t&&(t=navigator.hardwareConcurrency||4);let e=this._workerPool.pop();return!e&&this._createdWorkers<t&&(this._createdWorkers++,(e=new er().worker).addEventListener("message",e=>{this._complete(e.data),this._returnWorker(e.target),this._next()})),e}_returnWorker(e){this._workerPool.push(e)}_complete(e){this._resolveHash[e.uuid]&&(void 0!==e.error?this._resolveHash[e.uuid].reject(e.error):this._resolveHash[e.uuid].resolve(e.data),delete this._resolveHash[e.uuid])}async _run(e,t){await this._initWorkers();let i=new Promise((i,r)=>{this._queue.push({id:e,arguments:t,resolve:i,reject:r})});return this._next(),i}_next(){if(!this._queue.length)return;let e=this._getWorker();if(!e)return;let t=this._queue.pop(),i=t.id;this._resolveHash[ea]={resolve:t.resolve,reject:t.reject},e.postMessage({data:t.arguments,uuid:ea++,id:i})}reset(){this._workerPool.forEach(e=>e.terminate()),this._workerPool.length=0,Object.values(this._resolveHash).forEach(({reject:e})=>{e?.(Error("WorkerManager has been reset before completion"))}),this._resolveHash={},this._queue.length=0,this._initialized=!1,this._createdWorkers=0}},es=[".jpeg",".jpg",".png",".webp",".avif"],el=["image/jpeg","image/png","image/webp","image/avif"];async function eo(e,t){let i=await c.DOMAdapter.get().fetch(e);if(!i.ok)throw Error(`[loadImageBitmap] Failed to fetch ${e}: ${i.status} ${i.statusText}`);let r=await i.blob();return t?.data?.alphaMode==="premultiplied-alpha"?createImageBitmap(r,{premultiplyAlpha:"none"}):createImageBitmap(r)}let ec={name:"loadTextures",id:"texture",extension:{type:s.ExtensionType.LoadParser,priority:l.LoaderParserPriority.High,name:"loadTextures"},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test:e=>I(e,el)||O(e,es),async load(e,t,i){let r=null;return r=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await en.isImageBitmapSupported()?await en.loadImageBitmap(e,t):await eo(e,t):await new Promise((t,i)=>{(r=c.DOMAdapter.get().createImage()).crossOrigin=this.config.crossOrigin,r.src=e,r.complete?t(r):(r.onload=()=>{t(r)},r.onerror=i)}),Q(new Y.ImageSource({resource:r,alphaMode:"premultiply-alpha-on-upload",resolution:t.data?.resolution||q(e),...t.data}),i,e)},unload(e){e.destroy(!0)}};var ed=e.i(956725),eu=e.i(69836);let eh=[".mp4",".m4v",".webm",".ogg",".ogv",".h264",".avi",".mov"],em={name:"loadVideo",id:"video",extension:{type:s.ExtensionType.LoadParser,name:"loadVideo"},test(e){if(!i||!r){let{validVideoExtensions:e,validVideoMime:t}=function(){let e=[],t=[];for(let i of eh){let r=ed.VideoSource.MIME_TYPES[i.substring(1)]||`video/${i.substring(1)}`;C(r)&&(e.push(i),t.includes(r)||t.push(r))}return{validVideoExtensions:e,validVideoMime:t}}();i=e,r=t}let t=I(e,r),a=O(e,i);return t||a},async load(e,t,i){var r;let a,n={...ed.VideoSource.defaultOptions,resolution:t.data?.resolution||q(e),alphaMode:t.data?.alphaMode||await (0,eu.detectVideoAlphaMode)(),...t.data},s=document.createElement("video"),l={preload:!1!==n.autoLoad?"auto":void 0,"webkit-playsinline":!1!==n.playsinline?"":void 0,playsinline:!1!==n.playsinline?"":void 0,muted:!0===n.muted?"":void 0,loop:!0===n.loop?"":void 0,autoplay:!1!==n.autoPlay?"":void 0};
3Object.keys(l).forEach(e=>{let t=l[e];void 0!==t&&s.setAttribute(e,t)}),!0===n.muted&&(s.muted=!0),void 0!==(r=n.crossorigin)||e.startsWith("data:")?!1!==r&&(s.crossOrigin="string"==typeof r?r:"anonymous"):s.crossOrigin=function(e,t=globalThis.location){if(e.startsWith("data:"))return"";t||(t=globalThis.location);let i=new URL(e,document.baseURI);return i.hostname!==t.hostname||i.port!==t.port||i.protocol!==t.protocol?"anonymous":""}(e);let o=document.createElement("source");if(n.mime)a=n.mime;else if(e.startsWith("data:"))a=e.slice(5,e.indexOf(";"));else if(!e.startsWith("blob:")){let t=e.split("?")[0].slice(e.lastIndexOf(".")+1).toLowerCase();a=ed.VideoSource.MIME_TYPES[t]||`video/${t}`}return o.src=e,a&&(o.type=a),new Promise((r,a)=>{async function l(){let a=new ed.VideoSource({...n,resource:s});d(),t.data.preload&&await new Promise((e,t)=>{function i(){a(),e()}function r(e){a(),t(e)}function a(){s.removeEventListener("canplaythrough",i),s.removeEventListener("error",r)}s.addEventListener("canplaythrough",i),s.addEventListener("error",r),s.load()}),r(Q(a,i,e))}function c(e){d(),a(e)}function d(){s.removeEventListener("canplay",l),s.removeEventListener("error",c),o.removeEventListener("error",c)}n.preload&&!n.autoPlay&&s.load(),s.addEventListener("canplay",l),s.addEventListener("error",c),o.addEventListener("error",c),s.appendChild(o)})},unload(e){e.destroy(!0)}},ef={extension:{type:s.ExtensionType.ResolveParser,name:"resolveTexture"},test:ec.test,parse:e=>({resolution:parseFloat(G.Resolver.RETINA_PREFIX.exec(e)?.[1]??"1"),format:e.split(".").pop(),src:e})},ep={extension:{type:s.ExtensionType.ResolveParser,priority:-2,name:"resolveJson"},test:e=>G.Resolver.RETINA_PREFIX.test(e)&&e.endsWith(".json"),parse:ef.parse},eg=new class{constructor(){this._detections=[],this._initialized=!1,this.resolver=new G.Resolver,this.loader=new B,this.cache=w.Cache,this._backgroundLoader=new v(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(e={}){if(this._initialized)return void(0,x.warn)("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");if(this._initialized=!0,e.defaultSearchParams&&this.resolver.setDefaultSearchParams(e.defaultSearchParams),e.basePath&&(this.resolver.basePath=e.basePath),e.bundleIdentifier&&this.resolver.setBundleIdentifier(e.bundleIdentifier),e.manifest){let t=e.manifest;"string"==typeof t&&(t=await this.load(t)),this.resolver.addManifest(t)}let t=e.texturePreference?.resolution??1,i=await this._detectFormats({preferredFormats:e.texturePreference?.format,skipDetections:e.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:i,resolution:"number"==typeof t?[t]:t}}),e.preferences&&this.setPreferences(e.preferences),e.loadOptions&&(this.loader.loadOptions={...this.loader.loadOptions,...e.loadOptions})}add(e){this.resolver.add(e)}async load(e,t){this._initialized||await this.init();let i=(0,L.isSingleItem)(e),r=(0,P.convertToList)(e).map(e=>{if("string"!=typeof e){let t=this.resolver.getAlias(e);return t.some(e=>!this.resolver.hasKey(e))&&this.add(e),Array.isArray(t)?t[0]:t}return this.resolver.hasKey(e)||this.add({alias:e,src:e}),e}),a=this.resolver.resolve(r),n=await this._mapLoadToResolve(a,t);return i?n[r[0]]:n}addBundle(e,t){this.resolver.addBundle(e,t)}async loadBundle(e,t){this._initialized||await this.init();let i=!1;"string"==typeof e&&(i=!0,e=[e]);let r=this.resolver.resolveBundle(e),a={},n=Object.keys(r),s=0,l=[],o=n.map((e,i)=>{let n=r[e],o=[...new Set(Object.values(n).flat())].reduce((e,t)=>e+(t.progressSize||1),0);return l.push(0),s+=o,this._mapLoadToResolve(n,e=>{l[i]=e*o,t?.(l.reduce((e,t)=>e+t,0)/s)}).then(t=>{a[e]=t})});return await Promise.all(o),i?a[e[0]]:a}async backgroundLoad(e){this._initialized||await this.init(),"string"==typeof e&&(e=[e]);let t=this.resolver.resolve(e);this._backgroundLoader.add(Object.values(t))}async backgroundLoadBundle(e){this._initialized||await this.init(),"string"==typeof e&&(e=[e]),Object.values(this.resolver.resolveBundle(e)).forEac
3h(e=>{this._backgroundLoader.add(Object.values(e))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(e){if("string"==typeof e)return w.Cache.get(e);let t={};for(let i=0;i<e.length;i++)t[i]=w.Cache.get(e[i]);return t}async _mapLoadToResolve(e,t){let i=[...new Set(Object.values(e))];this._backgroundLoader.active=!1;let r=await this.loader.load(i,t);this._backgroundLoader.active=!0;let a={};return i.forEach(e=>{let t=r[e.src],i=[e.src];e.alias&&i.push(...e.alias),i.forEach(e=>{a[e]=t}),w.Cache.set(i,t)}),a}async unload(e){this._initialized||await this.init();let t=(0,P.convertToList)(e).map(e=>"string"!=typeof e?e.src:e),i=this.resolver.resolve(t);await this._unloadFromResolved(i)}async unloadBundle(e){this._initialized||await this.init(),e=(0,P.convertToList)(e);let t=this.resolver.resolveBundle(e),i=Object.keys(t).map(e=>this._unloadFromResolved(t[e]));await Promise.all(i)}async _unloadFromResolved(e){let t=Object.values(e);t.forEach(e=>{w.Cache.remove(e.src)}),await this.loader.unload(t)}async _detectFormats(e){let t=[];for(let i of(e.preferredFormats&&(t=Array.isArray(e.preferredFormats)?e.preferredFormats:[e.preferredFormats]),e.detections))e.skipDetections||await i.test()?t=await i.add(t):e.skipDetections||(t=await i.remove(t));return t=t.filter((e,i)=>t.indexOf(e)===i)}get detections(){return this._detections}setPreferences(e){this.loader.parsers.forEach(t=>{t.config&&Object.keys(t.config).filter(t=>t in e).forEach(i=>{t.config[i]=e[i]})})}};s.extensions.handleByList(s.ExtensionType.LoadParser,eg.loader.parsers).handleByList(s.ExtensionType.ResolveParser,eg.resolver.parsers).handleByList(s.ExtensionType.CacheParser,eg.cache.parsers).handleByList(s.ExtensionType.DetectionParser,eg.detections),s.extensions.add(A,E,_,R,j,T,N,F,z,U,Z,ec,em,y,g,ef,ep);let ey={loader:s.ExtensionType.LoadParser,resolver:s.ExtensionType.ResolveParser,cache:s.ExtensionType.CacheParser,detection:s.ExtensionType.DetectionParser};s.extensions.handle(s.ExtensionType.Asset,e=>{let t=e.ref;Object.entries(ey).filter(([e])=>!!t[e]).forEach(([e,i])=>s.extensions.add(Object.assign(t[e],{extension:t[e].extension??i})))},e=>{let t=e.ref;Object.keys(ey).filter(e=>!!t[e]).forEach(e=>s.extensions.remove(t[e]))});var ex=e.i(54383);e.i(143955);var ev=e.i(837361),ew=e.i(316881);let eb=e=>!e.ticker||!e.renderer||!e.stage||(e.renderer instanceof ev.WebGLRenderer?e.renderer.gl.isContextLost():e.renderer instanceof ex.CanvasRenderer?e.renderer.canvasContext.activeContext.isContextLost():e.renderer instanceof ew.WebGPURenderer&&e.renderer.gpu.device.lost),eA=e=>{if(!(!(!window.matchMedia("(color-gamut: p3)").matches||"u"<typeof CSS)&&CSS.supports("color","color(display-p3 1 0 0)")&&1)||!(e.renderer instanceof ev.WebGLRenderer))return;let{gl:t}=e.renderer;"drawingBufferColorSpace"in t&&(t.drawingBufferColorSpace="display-p3","unpackColorSpace"in t&&(t.unpackColorSpace="display-p3"))},ek=(e,t)=>{let i=new ResizeObserver(t);try{i.observe(e,{box:"device-pixel-content-box"})}catch{i.disconnect()}return()=>i.disconnect()};e.s(["enableDisplayP3IfSupported",0,eA,"isDestroyed",0,eb,"observeDevicePixelBox",0,ek],505195);var e_=e.i(953939),eM=e.i(180984);async function eE(e={}){return void 0!==n?n:n=await (async()=>{let t=c.DOMAdapter.get().getNavigator().gpu;if(!t)return!1;try{let i=await t.requestAdapter(e);return await i.requestDevice(),!0}catch(e){return!1}})()}let eS=["webgl","webgpu","canvas"];async function eC(t){let i,r=[];t.preference?Array.isArray(t.preference)?r=t.preference.slice():(r.push(t.preference),eS.forEach(e=>{e!==t.preference&&r.push(e)})):r=eS.slice();let n={};for(let s=0;s<r.length;s++){let l=r[s];if("webgpu"===l&&await eE()){let{WebGPURenderer:r}=await e.A(704864);i=r,n={...t,...t.webgpu};break}if("webgl"===l&&function(e){return void 0!==a?a:a=(()=>{let t={stencil:!0,failIfMajorPerformanceCaveat:e??eM.AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat};try{if(!c.DOMAdapter.get().getWebGLRenderingContext())return!1;let e=c.DOMAdapter.get().createCanvas().getContext("webgl",t),i=!!e?.getContextAttributes()?.stencil;if(e){let t=e.getExtension("WEBGL_lose_context");t&&t.loseContext()}return e=null,i}catch(e){return!1}})()}(t.failIfMajorPerformanceCaveat??eM.AbstractRenderer.defaultOptions.failIfMajorPerformanceCaveat)){let{WebGLRenderer:r}=await e.A(801144);i=r,n={...t,...t.webgl};break}if("canvas"===l){let{CanvasRenderer:r}=await e.A(544080);i=r,n={...t,...t.canvasOptions};break}}if(delete n.webgpu,delete n.webgl,delete n.canvasOptions,!i)throw Error("No available renderer for the current environment");let s=new i;return await s.init(n),s}var ej=e.i(64532),eT=e.i(298637),eN=e.i(571442);class eR{static init(e){Object.defineProperty(this,"resizeTo",{configurable:!0,set(e){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=e,e&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this._cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this._cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{let e,t;if(this._resizeTo){if(this._cancelResize(),this._resizeTo===globalThis.window)e=globalThis.innerWidth,t=globalThis.innerHeight;else{let{clientWidth:i,clientHeight:r}=this._resizeTo;e=i,t=r}this.renderer.resize(e,t),this.render()}},this._resizeId=null,this._resizeTo=null,this.resizeTo=e.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this._cancelResize(),this._cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}eR.extension=s.ExtensionType.Application;var eP=e.i(996589),eL=e.i(535533);class eB{static init(e){e=Object.assign({autoStart:!0,sharedTicker:!1},e),Object.defineProperty(this,"ticker",{configurable:!0,set(e){this._ticker&&this._ticker.remove(this.render,this),this._ticker=e,e&&e.add(this.render,this,eP.UPDATE_PRIORITY.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=e.sharedTicker?eL.Ticker.shared:new eL.Ticker,e.autoStart&&this.start()}static destroy(){if(this._ticker){let e=this._ticker;this.ticker=null,e.destroy()}}}eB.extension=s.ExtensionType.Application,s.extensions.add(eR),s.extensions.add(eB);let eI=class e{constructor(...e){this.stage=new ej.Container,void 0!==e[0]&&(0,eN.deprecation)(eN.v8_0_0,"Application constructor options are deprecated, please use Application.init() instead.")}async init(t){t={...t},this.stage||(this.stage=new ej.Container),this.renderer=await eC(t),e._plugins.forEach(e
3=>{e.init.call(this,t)})}render(){this.renderer.render({container:this.stage})}get canvas(){return this.renderer.canvas}get view(){return(0,eN.deprecation)(eN.v8_0_0,"Application.view is deprecated, please use Application.canvas instead."),this.renderer.canvas}get screen(){return this.renderer.screen}get domContainerRoot(){return this.renderer.renderPipes.dom?._domElement}destroy(t=!1,i=!1){let r=e._plugins.slice(0);r.reverse(),r.forEach(e=>{e.destroy.call(this)}),this.stage.destroy(i),this.stage=null,this.renderer.destroy(t),this.renderer=null}};eI._plugins=[],s.extensions.handleByList(s.ExtensionType.Application,eI._plugins),s.extensions.add(eT.ApplicationInitHook);var eO=e.i(342496);let eF=!1;var ez=e.i(442868);let e$=({state:e,cleanup:t})=>{let i=()=>{e.documentVisible="visible"===document.visibilityState};i(),document.addEventListener("visibilitychange",i),t(()=>document.removeEventListener("visibilitychange",i))},eW=({state:e,cleanup:t,app:i})=>{let r=new IntersectionObserver(([t])=>{e.isIntersecting=t.isIntersecting});r.observe(i.canvas),t(()=>r.disconnect())},eD=({app:e,cleanup:t,resolution:i})=>{let r=null,a=0,n=()=>(window.devicePixelRatio||1)*i,s=()=>{if(eb(e))return;let t=e.canvas.getBoundingClientRect();l(),e.renderer.resize(t.width,t.height,n()),e.renderer.render(e.stage)},l=()=>{let e=window.devicePixelRatio||1;r&&a===e||(r?.removeEventListener("change",s),a=e,(r=window.matchMedia(`(resolution: ${e}dppx)`)).addEventListener("change",s))},o=new ResizeObserver(s),c=e.ticker.update.bind(e.ticker);e.ticker.update=t=>{eb(e)||e.renderer.resolution!==n()&&s(),c(t)},l(),o.observe(e.canvas);let d=ek(e.canvas,s);t(()=>{e.ticker&&(e.ticker.update=c),o.disconnect(),d(),r?.removeEventListener("change",s),r=null})},eV=({app:e,cleanup:t})=>{let i=()=>e.ticker.stop();window.addEventListener("beforeunload",i),t(()=>window.removeEventListener("beforeunload",i))};var eX=e.i(420851);e.s(["default",0,function({tickers:e,onInitialized:t,onPreload:i,canvasAttrs:r,initOptions:a,fps:n=60,resolution:s=1,onBeforeTickers:l}){let o=(0,eO.useRef)(null);return(0,eO.useEffect)(()=>{let r=o.current;if(!r)return;let c=!1,d=[];r.style.opacity="0";let u=new eI;return(async()=>{var o;let h,m,f,p,g;if((()=>{if(eF)return;let e=Object.getOwnPropertyDescriptor(ej.Container.prototype,"alpha");if(!e||!e.set||!e.get)return;let t=e.set;Object.defineProperty(ej.Container.prototype,"alpha",{configurable:!0,enumerable:!0,get:e.get,set(e){t.call(this,e),this.visible=this.alpha>0}}),eF=!0})(),await new Promise(e=>{let t=new IntersectionObserver(([i])=>{i.isIntersecting&&(t.disconnect(),e())});t.observe(r),d.push(()=>{t.disconnect(),e()})}),c)return;let y=r.getBoundingClientRect(),x=window.devicePixelRatio||1;if(await u.init({antialias:!1,autoStart:!0,backgroundAlpha:0,canvas:r,clearBeforeRender:!0,eventMode:"passive",height:y.height,hello:!1,preference:"webgl",resolution:x*s,sharedTicker:!1,width:y.width,...a}),c){if(!u.renderer)return;u.destroy({},{children:!0,context:!0,style:!0,texture:!0});return}eA(u),u.ticker.wait=(e,t)=>new Promise(i=>{let r=0,a=()=>{(r+=u.ticker.deltaMS)>=e&&(u.ticker.remove(a),i(),t?.())};u.ticker.add(a)}),u.ticker.interval=(e,t)=>{let i=0,r=()=>{(i+=u.ticker.deltaMS)>=e&&(t?.(),i=0)};return u.ticker.add(r),()=>{u.ticker.remove(r)}};let v=(h=[],u.animate=(...e)=>{if(e[2]?.onUpdate){let t=e[2].onUpdate.bind(e[2]);e[2].onUpdate=e=>{eb(u)||t(e)}}let t=(0,ez.animate)(...e);return u.ticker.started||t.pause(),h.push(t),t.finished.then(()=>{h=h.filter(e=>e!==t)}),t},{cleanup:()=>{h=[]},onTickerStart:()=>{for(let e of h)"paused"===e.state&&e.play()},onTickerStop:()=>{for(let e of h)e.pause()}});d.push(v.cleanup),n!==1/0&&(u.ticker.maxFPS=n);let w=(o={onStart:()=>{v.onTickerStart(),u.ticker.start()},onStop:()=>{v.onTickerStop(),u.ticker.stop()}},m=u.ticker.start.bind(u.ticker),f=new Proxy({documentVisible:!0,isIntersecting:!0,tickerCount:0},{set:(e,t,i)=>(e[t]=i,e.tickerCount>0&&e.documentVisible&&e.isIntersecting?o.onStart():o.onStop(),!0)}),u.ticker.start=()=>{f.tickerCount>0&&f.documentVisible&&f.isIntersecting&&m()},p=u.ticker.add.bind(u.ticker),g=u.ticker.remove.bind(u.ticker),u.ticker.add=(...e)=>{if(u.ticker)return f.tickerCount+=1,p.apply(u.ticker,e)},u.ticker.remove=(...e)=>{if(u.ticker)return f.tickerCount-=1,g.apply(u.ticker,e)},f);if(await i?.(u),await l?.(u),!c){for(let t of e)t({app:u,cleanup:e=>d.push(e)});for(let e of(u.render(),t?.(u),r.style.opacity="1",r.style.touchAction="auto",[eD,eV,eW,e$]))e({app:u,cleanup:e=>d.push(e),resolution:s,state:w})}})().catch(e=>console.error("[pixi init]",e)),()=>{for(let e of(c=!0,d))try{e()}catch(e){console.error("[pixi cleanup]",e)}u.renderer&&u.destroy({},{children:!0,context:!0,style:!0,texture:!0}),r.style.opacity="0"}},[]),(0,e_.jsx)("canvas",{...r,className:(0,eX.cn)(r?.className),ref:o,style:{...r?.style,opacity:0}
3})}],10730)},143243,e=>{"use strict";var t=e.i(953939),i=e.i(342496),r=e.i(772039);let a=[{in:180,keys:[{ease:[.432,0,.088,1],t:144},{ease:[.614,0,.17,1],t:194},{ease:[.625,0,.389,1],t:244},{ease:[0,0,1,1],t:264}],out:264},{in:180,keys:[{ease:[.444,0,.234,1],t:138},{ease:[.501,0,.143,1],t:188},{ease:[.633,0,.361,1],t:238},{ease:[0,0,1,1],t:258}],out:258},{in:180,keys:[{ease:[.455,0,.185,1],t:132},{ease:[.603,0,.116,1],t:182},{ease:[.394,0,.29,1],t:232},{ease:[0,0,1,1],t:252}],out:252},{in:180,keys:[{ease:[.576,0,.143,1],t:176},{ease:[.443,0,.418,1],t:226},{ease:[0,0,1,1],t:246}],out:246},{in:0,keys:[{ease:[.416,0,.548,1],t:-6},{ease:[.416,0,.548,1],t:24},{ease:[.416,0,.548,1],t:54},{ease:[.416,0,.548,1],t:84},{ease:[.416,0,.548,1],t:114},{ease:[.432,0,.088,1],t:144},{ease:[.614,0,.17,1],t:194},{ease:[.625,0,.389,1],t:244},{ease:[0,0,1,1],t:264}],out:264},{in:234,keys:[{ease:[.614,0,.17,1],t:194},{ease:[.625,0,.389,1],t:244},{ease:[0,0,1,1],t:264}],out:264},{in:264,keys:[{ease:[.416,0,.548,1],t:264},{ease:[.416,0,.548,1],t:294}],out:270},{in:222,keys:[{ease:[.501,0,.143,1],t:188},{ease:[.633,0,.361,1],t:238},{ease:[0,0,1,1],t:258}],out:258},{in:0,keys:[{ease:[.427,0,.559,1],t:-12},{ease:[.427,0,.559,1],t:18},{ease:[.427,0,.559,1],t:48},{ease:[.427,0,.559,1],t:78},{ease:[.427,0,.559,1],t:108},{ease:[.444,0,.234,1],t:138},{ease:[.501,0,.143,1],t:188},{ease:[.633,0,.361,1],t:238},{ease:[0,0,1,1],t:258}],out:258},{in:258,keys:[{ease:[.427,0,.559,1],t:258},{ease:[.427,0,.559,1],t:288}],out:270},{in:211,keys:[{ease:[.603,0,.116,1],t:182},{ease:[0,0,1,1],t:232}],out:252},{in:0,keys:[{ease:[.448,0,.516,1],t:-18},{ease:[.448,0,.516,1],t:12},{ease:[.448,0,.516,1],t:42},{ease:[.448,0,.516,1],t:72},{ease:[.448,0,.516,1],t:102},{ease:[.455,0,.185,1],t:132},{ease:[.603,0,.116,1],t:182},{ease:[.394,0,.29,1],t:232},{ease:[0,0,1,1],t:252}],out:252},{in:252,keys:[{ease:[.448,0,.516,1],t:252},{ease:[.448,0,.516,1],t:282}],out:270},{in:0,keys:[{ease:[.416,0,.559,1],t:-24},{ease:[.416,0,.559,1],t:6},{ease:[.416,0,.559,1],t:36},{ease:[.416,0,.559,1],t:66},{ease:[.416,0,.559,1],t:96},{ease:[.476,0,.18,1],t:126},{ease:[.576,0,.143,1],t:176},{ease:[.443,0,.418,1],t:226},{ease:[0,0,1,1],t:246}],out:246},{in:246,keys:[{ease:[.416,0,.559,1],t:246},{ease:[.416,0,.559,1],t:276}],out:270}],n=[{height:1.125,timeline:0,width:2.25,xs:[-29.5,-35.75,47,45.75],y:18.1875},{height:1.125,timeline:0,width:9.75,xs:[-51.25,-57.5,25.25,24],y:18.1875},{height:3,timeline:0,width:9,xs:[-40,-46.25,36.5,35.25],y:17.25},{height:1.125,timeline:0,width:6.75,xs:[-27.25,-33.5,49.25,48],y:18.1875},{height:3,timeline:0,width:12,xs:[-19,-25.25,57.5,56.25],y:17.25},{height:3,timeline:0,width:4.5,xs:[-59.5,-65.75,17,15.75],y:17.25},{height:3,timeline:0,width:4.5,xs:[-71.5,-77.75,5,3.75],y:17.25},{height:1.125,timeline:0,width:2.25,xs:[-75.25,-81.5,1.25,0],y:18.1875},{height:1.125,timeline:0,width:2.25,xs:[-53.5,-59.75,23,21.75],y:18.1875},{height:1.125,timeline:0,width:4.5,xs:[-65.5,-71.75,11,9.75],y:18.1875},{height:3,timeline:1,width:9,xs:[-71.41406,-77.66406,8,6.75],y:12.75},{height:1.125,timeline:1,width:5.25,xs:[-78.16406,-84.41406,1.25,0],y:13.6875},{height:1.125,timeline:1,width:6.75,xs:[-60.91406,-67.16406,18.5,17.25],y:13.6875},{height:3,timeline:1,width:9,xs:[-46.49219,-52.74219,32.92188,31.67188],y:12.75},{height:3,timeline:1,width:9,xs:[-34.21875,-40.46875,45.19531,43.94531],y:12.75},{height:1.125,timeline:1,width:5.25,xs:[-50.125,-56.375,29.28906,28.03906],y:13.6875},{height:1.125,timeline:1,width:5.25,xs:[-37.875,-44.125,41.53906,40.28906],y:13.6875},{height:3,timeline:1,width:9,xs:[-14.21875,-20.46875,65.19531,63.94531],y:12.75},{height:1.125,timeline:1,width:5.25,xs:[-25.53125,-31.78125,53.88281,52.63281],y:13.6875},{height:1.125,timeline:2,width:2.25,xs:[-53.5,-57.25,23,21.75],y:9.1875},{height:1.125,timeline:2,width:9.75,xs:[-75.25,-79,1.25,0],y:9.1875},{height:3,timeline:2,width:9,xs:[-64,-67.75,12.5,11.25],y:8.25},{height:1.125,timeline:2,width:6.75,xs:[-34,-37.75,42.5,41.25],y:9.1875},{height:1.125,timeline:2,width:5.25,xs:[-51.25,-55,25.25,24],y:9.1875},{height:3,timeline:2,width:9,xs:[-44.5,-48.25,32,30.75],y:8.25},{height:3,timeline:2,width:12,xs:[-19,-22.75,57.5,56.25],y:8.25},{height:1.125,timeline:2,width:6.75,xs:[-27.25,-31,49.25,48],y:9.1875},{height:1.125,timeline:3,width:6.75,xs:[-82.25,-3.25,-4.5],y:4.6875},{height:1.125,timeline:3,width:6.75,xs:[-60.5,18.5,17.25],y:4.6875},{height:3,timeline:3,width:12,xs:[-74,5,3.75],y:3.75},{height:1.125,timeline:3,width:4.5,xs:[-44,35,33.75],y:4.6875},{height:1.125,timeline:3,width:2.25,xs:[-32,47,45.75],y:4.6875},{height:1.125,timeline:3,width:2.25,xs:[-53.75,25.25,24],y:4.6875},{height:3,timeline:3,width:4.5,xs:[-50,29,27.75],y:3.75},{height:3,timeline:3,width:4.5,xs:[-38,41,39.75],y:3.75},{height:1.125,timeline:3,width:9.75,xs:[-29.75,49.25,48],y:4.6875},{height:3,timeline:3,width:9,xs:[-18.5,60.5,59.25],y:3.75},{height:1.125,timeline:4,width:6.75,xs:[-6.75,-5.5,-6.75,-5.5,-6.75,-5.5,-11.75,71,69.75],y:18.1875},{height:3,timeline:4,width:4.5,xs:[15.75,17,15.75,17,15.75,17,10.75,93.5,92.25],y:17.25},{height:3,timeline:4,width:4.5,xs:[3.75,5,3.75,5,3.75,5,-1.25,81.5,80.25],y:17.25},{height:1.125,timeline:5,width:2.25,xs:[-81.5,-.8125,0],y:18.1875},{height:1.125,timeline:4,width:2.25,xs:[0,1.25,0,1.25,0,1.25,-5,77.75,76.5],y:18.1875},{height:1.125,timeline:4,width:2.25,xs:[21.75,23,21.75,23,21.75,23,16.75,99.5,98.25],y:18.1875},{height:1.125,timeline:4,width:4.5,xs:[9.75,11,9.75,11,9.75,11,4.7
35,87.5,86.25],y:18.1875},{height:1.125,timeline:4,width:6.75,xs:[23.98438,25.23438,23.98438,25.23438,23.98438,25.23438,18.98438,101.73438,100.48438],y:18.1875},{height:1.125,timeline:6,width:6.75,xs:[-6.75,-5.5],y:18.1875},{height:3,timeline:6,width:4.5,xs:[15.75,17],y:17.25},{height:3,timeline:6,width:4.5,xs:[3.75,5],y:17.25},{height:1.125,timeline:6,width:2.25,xs:[0,1.25],y:18.1875},{height:1.125,timeline:6,width:2.25,xs:[21.75,23],y:18.1875},{height:1.125,timeline:6,width:4.5,xs:[9.75,11],y:18.1875},{height:1.125,timeline:6,width:6.75,xs:[23.98438,25.23438],y:18.1875},{height:1.125,timeline:7,width:5.25,xs:[-84.41406,-2,0],y:13.6875},{height:1.125,timeline:8,width:6.75,xs:[-12.84375,-11.59375,-12.84375,-11.59375,-12.84375,-11.59375,-17.84375,67.82031,66.57031],y:13.6875},{height:3,timeline:8,width:9,xs:[6.75,8,6.75,8,6.75,8,1.75,87.41406,86.16406],y:12.75},{height:1.125,timeline:8,width:5.25,xs:[0,1.25,0,1.25,0,1.25,-5,80.66406,79.41406],y:13.6875},{height:1.125,timeline:8,width:6.75,xs:[17.25,18.5,17.25,18.5,17.25,18.5,12.25,97.91406,96.66406],y:13.6875},{height:1.125,timeline:8,width:5.25,xs:[23.99219,25.24219,23.99219,25.24219,23.99219,25.24219,18.99219,104.65625,103.40625],y:13.6875},{height:1.125,timeline:9,width:6.75,xs:[-12.84375,-11.59375],y:13.6875},{height:3,timeline:9,width:9,xs:[6.75,8],y:12.75},{height:1.125,timeline:9,width:5.25,xs:[0,1.25],y:13.6875},{height:1.125,timeline:9,width:6.75,xs:[17.25,18.5],y:13.6875},{height:1.125,timeline:9,width:5.25,xs:[23.99219,25.24219],y:13.6875},{height:1.125,timeline:10,width:9.75,xs:[-79,-7.75],y:9.1875},{height:1.125,timeline:11,width:6.75,xs:[-6.75,-5.5,-6.75,-5.5,-6.75,-5.5,-9.25,71,69.75],y:9.1875},{height:1.125,timeline:11,width:2.25,xs:[21.75,23,21.75,23,21.75,23,19.25,99.5,98.25],y:9.1875},{height:1.125,timeline:11,width:9.75,xs:[0,1.25,0,1.25,0,1.25,-2.5,77.75,76.5],y:9.1875},{height:3,timeline:11,width:9,xs:[11.25,12.5,11.25,12.5,11.25,12.5,8.75,89,87.75],y:8.25},{height:1.125,timeline:11,width:9.75,xs:[23.99219,25.24219,23.99219,25.24219,23.99219,25.24219,21.49219,101.74219,100.49219],y:9.1875},{height:1.125,timeline:12,width:6.75,xs:[-6.75,-5.5],y:9.1875},{height:1.125,timeline:12,width:2.25,xs:[21.75,23],y:9.1875},{height:1.125,timeline:12,width:9.75,xs:[0,1.25],y:9.1875},{height:3,timeline:12,width:9,xs:[11.25,12.5],y:8.25},{height:1.125,timeline:12,width:9.75,xs:[23.99219,25.24219],y:9.1875},{height:1.125,timeline:13,width:2.25,xs:[-6.75,-5.5,-6.75,-5.5,-6.75,-5.5,-8,71,69.75],y:4.6875},{height:1.125,timeline:13,width:6.75,xs:[-4.5,-3.25,-4.5,-3.25,-4.5,-3.25,-5.75,73.25,72],y:4.6875},{height:1.125,timeline:13,width:6.75,xs:[17.25,18.5,17.25,18.5,17.25,18.5,16,95,93.75],y:4.6875},{height:3,timeline:13,width:12,xs:[3.75,5,3.75,5,3.75,5,2.5,81.5,80.25],y:3.75},{height:1.125,timeline:13,width:6.75,xs:[24,25.25,24,25.25,24,25.25,22.75,73.25,72],y:4.6875},{height:1.125,timeline:14,width:2.25,xs:[-6.75,-5.5],y:4.6875},{height:1.125,timeline:14,width:6.75,xs:[-4.5,-3.25],y:4.6875},{height:1.125,timeline:14,width:6.75,xs:[17.25,18.5],y:4.6875},{height:3,timeline:14,width:12,xs:[3.75,5],y:3.75},{height:1.125,timeline:14,width:6.75,xs:[24,25.25],y:4.6875}],s=(e,t,i)=>{let r=1-i;return 3*r*r*i*e+3*r*i*i*t+i*i*i},l=(e,t,i)=>{let r=1-i;return 3*r*r*e+6*r*i*(t-e)+3*i*i*(1-t)};function o(e,t){return t>=e.in&&t<e.out}function c(e,t,i){let{keys:r}=t,[a]=r,n=r.at(-1);if(!(a&&n))return 0;if(i<=a.t)return e.xs[0];if(i>=n.t)return e.xs[r.length-1];let o=0;for(;o<r.length-2&&r[o+1].t<=i;)o+=1;let c=r[o],d=r[o+1],u=function(e,t){let[i,r,a,n]=e;if(t<=0)return 0;if(t>=1)return 1;let o=t;for(let e=0;e<6;e+=1){let e=l(i,a,o);if(1e-6>Math.abs(e))break;o-=(s(i,a,o)-t)/e}if(o>=0&&o<=1&&1e-5>Math.abs(s(i,a,o)-t))return s(r,n,o);let c=0,d=1;for(let e=0;e<20;e+=1)s(i,a,o=(c+d)/2)<t?c=o:d=o;return s(r,n,(c+d)/2)}(c.ease,(i-c.t)/(d.t-c.t));return e.xs[o]+(e.xs[o+1]-e.xs[o])*u}e.s(["default",0,function({className:e,trigger:s="visible"}){let[l,d]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e;if(!l)return;let t=[...l.querySelectorAll("rect")],i=n.map(()=>!0),d=47,u=()=>{for(let[e,r]of n.entries()){let n=t[e],s=a[r.timeline],l=o(s,d);if(l!==i[e]&&(i[e]=l,n.setAttribute("visibility",l?"visible":"hidden")),!l)continue;let u=c(r,s,d);n.setAttribute("transform",`translate(${u.toFixed(3)} 0)`)}},h=e=>{d=(d+60*e)%270,u()};if("visible"===s)return(0,r.runWhileVisible)(l,h);let m=l.closest("a,button")??l,f=()=>{e||=(0,r.runWhileVisible)(l,h)},p=()=>{e?.(),e=void 0,d=47,u()};return m.addEventListener("pointerenter",f),m.addEventListener("pointerleave",p),m.addEventListener("focusin",f),m.addEventListener("focusout",p),()=>{m.removeEventListener("pointerenter",f),m.removeEventListener("pointerleave",p),m.removeEventListener("focusin",f),m.removeEventListener("focusout",p),p()}},[l,s]),(0,t.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",height:"100%",ref:d,viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:n.map((e,i)=>{let r=a[e.timeline],n=o(r,47),s=c(e,r,47);return(0,t.jsx)("rect",{fill:"currentColor",height:e.height,transform:`translate(${s.toFixed(3)}
3 0)`,visibility:n?void 0:"hidden",width:e.width,y:e.y},i)})})}],143243)},965130,e=>{e.v({rect:"SliderRule-module__Ouk-TW__rect","slider-rule":"SliderRule-module__Ouk-TW__slider-rule"})},84520,e=>{"use strict";var t=e.i(953939),i=e.i(795683),r=e.i(342496),a=e.i(536636),n=e.i(420851);let s={colorIndexes:new Uint8Array(0),colorThresholds:new Float32Array(0),columns:0,left:0,letterOffsets:[],letters:[],letterWidths:[],pixelOffsets:[],pixelThresholds:new Float32Array(0),ratio:1,rows:0,size:1,top:0};function l(e){let t=document.createElementNS("http://www.w3.org/2000/svg","rect");return t.setAttribute("shape-rendering","crispEdges"),e.append(t),t}function o(e,t,i,r){let a=String(r);e.setAttribute("x",String(t)),e.setAttribute("y",String(i)),e.setAttribute("width",a),e.setAttribute("height",a)}function c(e,t,i,r){let a=e.closest("[data-pixel-ricochet-bounds]"),n=a?.firstElementChild,s=a?.lastElementChild;if(!(a instanceof HTMLElement&&n instanceof HTMLElement&&s instanceof HTMLElement)){r[0]=0,r[1]=Math.max(0,t.width-i),r[2]=0,r[3]=Math.max(0,t.height-i);return}let l=a.getBoundingClientRect(),o=n.getBoundingClientRect(),c=s.getBoundingClientRect(),d=l.left-t.left+.5,u=o.top+o.height/2-t.top+.5;r[0]=d,r[1]=Math.max(d,l.right-t.left-i-.5),r[2]=u,r[3]=Math.max(u,c.top+c.height/2-t.top-i-.5)}function d(e,t){let i=e.closest("[data-pixel-ricochet-bounds]");if(!(i instanceof HTMLElement))return null;let r=e.getBoundingClientRect(),a=i.getBoundingClientRect(),n=new Float64Array(4);c(e,r,t,n);let s=r.left-a.left,l=r.top-a.top;return{maskOffsetX:s,maskOffsetY:l,maxX:s+(n[1]??0),maxY:l+(n[3]??0),minX:s+(n[0]??0),minY:l+(n[2]??0)}}function u(e){let t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[];for(let e=t.nextNode();e;e=t.nextNode())if(e instanceof Text)for(let t=0;t<e.data.length;t+=1)i.push({node:e,offset:t});return i}function h(e){let r,a=(0,i.c)(2),{children:n}=e;return a[0]!==n?(r=(0,t.jsx)("span",{className:"[font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1]",children:n}),a[0]=n,a[1]=r):r=a[1],r}function m(){let e,r,a,n=(0,i.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(h,{children:"e"}),n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(h,{children:"t"}),n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsxs)(t.Fragment,{children:["R",e,"s",r,"les",(0,t.jsx)(h,{children:"s"})]}),n[2]=a):a=n[2],a}function f({letters:e,letterWidths:i,offsets:r,overlap:a,pixelOffsets:n}){let s=e.join("");return e.map((e,l)=>{let o=r[l],c=n[l],d=i[l];return void 0===o||void 0===c||void 0===d?null:(0,t.jsx)("span",{className:"absolute top-0 h-full overflow-hidden",style:{left:o-a,width:d+2*a},children:(0,t.jsx)("span",{className:"absolute top-0 whitespace-nowrap",style:{left:a-c},children:s})},`${e}-${o}`)})}function p(e,t){e&&e.setAttribute("width",t?e.dataset.cellWidth??"0":"0")}function g(e){let a,h,g,x,v,w,b,A,k,_,M,E,S,C,j,T,N,R,P,L,B,I,O,F,z,$,W,D,V,X,U,Y,H,G,q,Q,Z,K,J=(0,i.c)(85),{className:ee,colorAmount:et,gridUnitEm:ei,liveMask:er,maxCellSize:ea,mode:en,onRicochetLaunch:es,pixelationAmount:el,radiusCells:eo,showCursorOutline:ec,sizeVariance:ed}=e,eu=void 0!==er&&er,eh=void 0===ea?1/0:ea,em=void 0!==ec&&ec,ef=void 0===ed?0:ed,[ep,eg]=(0,r.useState)(null),[ey,ex]=(0,r.useState)(null),[ev,ew]=(0,r.useState)(null),[eb,eA]=(0,r.useState)(null),[ek,e_]=(0,r.useState)(null),[eM,eE]=(0,r.useState)(null);J[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],J[0]=a):a=J[0];let eS=(0,r.useRef)(a);J[1]===Symbol.for("react.memo_cache_sentinel")?(h=new Float64Array(0),J[1]=h):h=J[1];let eC=(0,r.useRef)(h);J[2]===Symbol.for("react.memo_cache_sentinel")?(g=new Uint8Array(0),J[2]=g):g=J[2];let ej=(0,r.useRef)(g);J[3]===Symbol.for("react.memo_cache_sentinel")?(x=new Uint8Array(0),J[3]=x):x=J[3];let eT=(0,r.useRef)(x);J[4]===Symbol.for("react.memo_cache_sentinel")?(v=new Float64Array(0),J[4]=v):v=J[4];let eN=(0,r.useRef)(v),eR=(0,r.useRef)(0);J[5]===Symbol.for("react.memo_cache_sentinel")?(w=[],J[5]=w):w=J[5];let eP=(0,r.useRef)(w);J[6]===Symbol.for("react.memo_cache_sentinel")?(b=new Float32Array(0),J[6]=b):b=J[6];let eL=(0,r.useRef)(b);J[7]===Symbol.for("react.memo_cache_sentinel")?(A=[],J[7]=A):A=J[7];let eB=(0,r.useRef)(A);J[8]===Symbol.for("react.memo_cache_sentinel")?(k=[],J[8]=k):k=J[8];let eI=(0,r.useRef)(k);J[9]===Symbol.for("react.memo_cache_sentinel")?(_=new Float32Array(0),J[9]=_):_=J[9];let eO=(0,r.useRef)(_),eF=(0,r.useRef)(s),ez=(0,r.useId)();J[10]===Symbol.for("react.memo_cache_sentinel")?(M=new Float64Array([NaN,NaN,NaN]),J[10]=M):M=J[10];let e$=(0,r.useRef)(M);
3J[11]===Symbol.for("react.memo_cache_sentinel")?(E=new Float64Array([NaN,NaN,NaN,NaN]),J[11]=E):E=J[11];let eW=(0,r.useRef)(E);J[12]===Symbol.for("react.memo_cache_sentinel")?(S=new Float64Array([NaN,NaN,NaN]),J[12]=S):S=J[12];let eD=(0,r.useRef)(S),eV=(0,r.useRef)(1);J[13]===Symbol.for("react.memo_cache_sentinel")?(C=new Float64Array([0,0]),J[13]=C):C=J[13];let eX=(0,r.useRef)(C),eU=(0,r.useRef)(null),eY=Math.min(Math.max(void 0===et?0:et,0),1),eH=(0,r.useRef)(null),eG=Math.min(Math.max(void 0===el?1:el,0),1);J[14]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{0!==eR.current&&(cancelAnimationFrame(eR.current),eR.current=0);let e=eS.current,t=ej.current,i=eP.current,r=eB.current,a=eI.current;for(let n of e){t[n]=0;let e=i[n],s=r[n],l=a[n];p(e,!1),p(s,!1),p(l,!1)}e.length=0},J[14]=j):j=J[14];let eq=j;J[15]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{if(0!==eR.current)return;let e=t=>{let i=eS.current,r=eC.current,a=ej.current,n=eT.current,s=eN.current,l=eP.current,o=eB.current,c=eI.current,d=0;for(let e of i){let u=l[e],h=o[e],m=c[e];if(t<(r[e]??0)){if(1===a[e]&&t>=(s[e]??0)){a[e]=2;let t=(n[e]??0)===1;p(u,t),p(h,!0),p(m,!t)}i[d]=e,d+=1}else a[e]=0,p(u,!1),p(h,!1),p(m,!1)}i.length=d,eR.current=0===d?0:requestAnimationFrame(e)};eR.current=requestAnimationFrame(e)},J[15]=T):T=J[15];let eQ=T;J[16]!==eY?(N=(e,t)=>{let i=(eL.current[e]??1)<=eY,r=ej.current;if(eT.current[e]=+!!i,2===r[e]){let t=eP.current[e],r=eI.current[e];p(t,i),p(r,!i)}0===r[e]&&(r[e]=1,eS.current.push(e),eN.current[e]=t+55*Math.random()),eC.current[e]=Math.max(eC.current[e]??0,t+240+Math.random()**1.8*480),eQ()},J[16]=eY,J[17]=N):N=J[17];let eZ=N;J[18]!==eZ||J[19]!==en||J[20]!==eG||J[21]!==eo?(R=(e,t,i,r,a)=>{let{columns:n,rows:s,size:l}=eF.current;if(0===n||0===s)return;let o=l*eo,c=Math.max(0,Math.floor((e-o)/l)),d=Math.min(n-1,Math.floor((e+o)/l)),u=Math.max(0,Math.floor((t-o)/l)),h=Math.min(s-1,Math.floor((t+o)/l)),m=Math.hypot(i,r),f=m>0?i/m:0,p=m>0?r/m:0;for(let i=u;i<=h;i+=1){let r=i*l+l/2;for(let s=c;s<=d;s+=1){let c,d=s*l+l/2-e,u=r-t;if("dense"===en)c=Math.hypot(d,u)<=o;else if("blocks"===en)c=Math.max(Math.abs(d),Math.abs(u))<=o;else if(m<1)c=Math.hypot(d,u)<=.55*o;else{let e=d*f+u*p,t=Math.abs(-d*p+u*f);c=e>=-(1.35*o)&&e<=.15*o&&t<=.48*o}let h=i*n+s;c&&(eO.current[h]??1)<=eG&&eZ(h,a)}}},J[18]=eZ,J[19]=en,J[20]=eG,J[21]=eo,J[22]=R):R=J[22];let eK=R;J[23]!==eM||J[24]!==ey||J[25]!==ev||J[26]!==es?(P=()=>{if(!(eM&&ey&&ev&&es))return void eM?.setAttribute("opacity","0");let e=eD.current,t=e[0]??NaN,i=e[1]??NaN,r=e[2]??NaN;if(!(ev.closest("[data-pixel-ricochet-bounds]")instanceof HTMLElement&&Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(r)))return void eM.setAttribute("opacity","0");let a=d(ev,r);if(!a)return void eM.setAttribute("opacity","0");let n=l(ey);o(n,t,i,r),eM.setAttribute("opacity","0"),es({...a,maskElement:n,measureBounds:()=>d(ev,r),size:r,velocityX:eX.current[0]??0,velocityY:eX.current[1]??0,x:a.maskOffsetX+t,y:a.maskOffsetY+i})},J[23]=eM,J[24]=ey,J[25]=ev,J[26]=es,J[27]=P):P=J[27];let eJ=P;J[28]!==eM||J[29]!==ey||J[30]!==eu||J[31]!==eo||J[32]!==em||J[33]!==ef||J[34]!==eK?(L=e=>{let t=eU.current??e.currentTarget.getBoundingClientRect(),i=e.clientX-t.left,r=e.clientY-t.top,a=e$.current,n=Number.isFinite(a[0])&&Number.isFinite(a[1])&&Number.isFinite(a[2]);n||(eV.current=1-Math.random()*Math.min(Math.max(ef,0),1));let s=n?i-a[0]:0,d=n?r-a[1]:0,u=performance.now(),h=n?u-a[2]:0;n&&h>0&&(eX.current[0]=s/h,eX.current[1]=d/h);let m=Math.hypot(s,d),f=.5*eF.current.size,p=n?Math.max(1,Math.ceil(m/f)):1,g=eF.current.size*(eo+.5)*eV.current,y=2*g,x=eD.current,v=eW.current;(x[2]??NaN)!==y&&v.fill(NaN),!Number.isFinite(v[0])&&(em||eu)&&c(e.currentTarget,t,y,v);let w=Math.min(v[1]??i-g,Math.max(v[0]??i-g,i-g)),b=Math.min(v[3]??r-g,Math.max(v[2]??r-g,r-g));if(x[0]=w,x[1]=b,x[2]=y,em){let e=String(y);eM?.setAttribute("x",String(w)),eM?.setAttribute("y",String(b)),eM?.setAttribute("width",e),eM?.setAttribute("height",e),eM?.setAttribute("opacity","1")}if(eu&&ey){let e=eH.current??l(ey);eH.current=e,o(e,w,b,y)}if(eU.current=t,!eu)for(let e=1;e<=p;e+=1){let t=e/p;eK(n?a[0]+s*t:i,n?a[1]+d*t:r,s,d,n?a[2]+h*t:u)}a[0]=i,a[1]=r,a[2]=u},J[28]=eM,J[29]=ey,J[30]=eu,J[31]=eo,J[32]=em,J[33]=ef,J[34]=eK,J[35]=L):L=J[35];let e0=L;J[36]!==eM||J[37]!==eJ||J[38]!==eu||J[39]!==em?(B=()=>
3{eu&&em?eJ():eM?.setAttribute("opacity","0"),eH.current?.setAttribute("width","0"),eX.current.fill(0),e$.current.fill(NaN),eU.current=null},J[36]=eM,J[37]=eJ,J[38]=eu,J[39]=em,J[40]=B):B=J[40];let e1=B;if(J[41]!==ei||J[42]!==ev||J[43]!==eh||J[44]!==eb||J[45]!==ek?(I=()=>{if(!(ev&&eb&&ek))return;let e=!1,t=null,i=0,r=()=>{eW.current.fill(NaN);let e=window.devicePixelRatio||1,t=ev.getBoundingClientRect(),i=Math.min(eh,Number.parseFloat(getComputedStyle(ek).fontSize)*ei),r=u(ek),a=u(eb);if(0===r.length||r.length!==a.length||!Number.isFinite(e)||e<=0||!Number.isFinite(t.left)||!Number.isFinite(t.top)||!Number.isFinite(t.width)||!Number.isFinite(t.height)||!Number.isFinite(i)||i<=0)return void eg(null);let n=Math.max(1,Math.ceil(t.width/i)),s=Math.max(1,Math.ceil(t.height/i)),l=n*s,o=new Uint8Array(l),c=new Float32Array(l),d=new Float32Array(l),h=r.map(y),m=[],f=[],p=[],g=document.createRange(),x=document.createRange();for(let e=0;e<l;e+=1)o[e]=Math.floor(4*Math.random()),c[e]=Math.random(),d[e]=Math.random();for(let[e,i]of r.entries()){let r=a[e];g.setStart(i.node,i.offset),g.setEnd(i.node,i.offset+1),x.setStart(r.node,r.offset),x.setEnd(r.node,r.offset+1);let n=g.getBoundingClientRect(),s=x.getBoundingClientRect();m.push(n.left-t.left),f.push(n.width),p.push(s.left-t.left)}eg({colorIndexes:o,colorThresholds:c,columns:n,left:t.left,letterOffsets:m,letters:h,letterWidths:f,pixelOffsets:p,pixelThresholds:d,ratio:e,rows:s,size:i,top:t.top})},a=()=>{window.clearTimeout(i),i=window.setTimeout(r,120)},n=()=>{eU.current=null,eW.current.fill(NaN)};return r(),(t=new ResizeObserver(()=>{n(),a()})).observe(ev),window.addEventListener("scroll",n,{capture:!0,passive:!0}),document.fonts.ready.then(()=>{e||a()}),()=>{e=!0,window.clearTimeout(i),t?.disconnect(),window.removeEventListener("scroll",n,{capture:!0})}},O=[ei,ev,eh,eb,ek],J[41]=ei,J[42]=ev,J[43]=eh,J[44]=eb,J[45]=ek,J[46]=I,J[47]=O):(I=J[46],O=J[47]),(0,r.useEffect)(I,O),J[48]!==eY||J[49]!==ep||J[50]!==eu||J[51]!==ez||J[52]!==eG?(F=()=>
3{if(eq(),!ep){eF.current=s,eC.current=new Float64Array(0),ej.current=new Uint8Array(0),eT.current=new Uint8Array(0),eN.current=new Float64Array(0),eL.current=new Float32Array(0),eO.current=new Float32Array(0);return}let e=ep.columns*ep.rows;eF.current=ep,eC.current=new Float64Array(e),ej.current=new Uint8Array(e),eT.current=new Uint8Array(e),eN.current=new Float64Array(e),eL.current=ep.colorThresholds,eO.current=ep.pixelThresholds,eB.current=Array.from(document.querySelectorAll(`[data-pixel-trail-mask="${ez}"][data-mask-kind="erase"]`)),eI.current=Array.from(document.querySelectorAll(`[data-pixel-trail-mask="${ez}"][data-mask-kind="ink"]`));let t=Array.from({length:e});for(let i of document.querySelectorAll(`[data-pixel-trail-mask="${ez}"][data-color-cell]`)){let r=Number.parseInt(i.dataset.colorCell??"",10);Number.isInteger(r)&&r>=0&&r<e&&(t[r]=i)}eP.current=t;for(let t=0;t<e;t+=1){let e=eP.current[t],i=eB.current[t],r=eI.current[t],a=eu&&(eO.current[t]??1)<=eG,n=a&&(eL.current[t]??1)<=eY;p(e,n),p(i,a),p(r,a&&!n)}},z=[eq,eY,ep,eu,ez,eG],J[48]=eY,J[49]=ep,J[50]=eu,J[51]=ez,J[52]=eG,J[53]=F,J[54]=z):(F=J[53],z=J[54]),(0,r.useEffect)(F,z),J[55]===Symbol.for("react.memo_cache_sentinel")?($=()=>eq,W=[eq],J[55]=$,J[56]=W):($=J[55],W=J[56]),(0,r.useEffect)($,W),J[57]!==ep||J[58]!==ez){if(V=[],U=[],H=[],Y=[],D=[],X=[],ep){let e=ep.columns*ep.rows;for(let i=0;i<e;i+=1){let e=i%ep.columns,r=Math.floor(i/ep.columns),a=Math.round((ep.left+e*ep.size)*ep.ratio)/ep.ratio-ep.left,n=Math.round((ep.top+r*ep.size)*ep.ratio)/ep.ratio-ep.top,s=Math.round((ep.left+(e+1)*ep.size)*ep.ratio)/ep.ratio-ep.left,l=Math.round((ep.top+(r+1)*ep.size)*ep.ratio)/ep.ratio-ep.top,o=1/ep.ratio,c=2/ep.ratio,d={height:l-n+2*o,width:s-a+2*o,x:a-o,y:n-o},u={height:l-n+2*c,width:s-a+2*c,x:a-c,y:n-c};V.push((0,t.jsx)("rect",{"data-cell-width":d.width,"data-mask-kind":"erase","data-pixel-trail-mask":ez,shapeRendering:"crispEdges",...d,width:0},i)),U.push((0,t.jsx)("rect",{"data-cell-width":u.width,"data-mask-kind":"ink","data-pixel-trail-mask":ez,shapeRendering:"crispEdges",...u,width:0},i));let h=(0,t.jsx)("rect",{"data-cell-width":u.width,"data-color-cell":i,"data-pixel-trail-mask":ez,shapeRendering:"crispEdges",...u,width:0},i),m=ep.colorIndexes[i]??0;0===m?H.push(h):1===m?Y.push(h):2===m?D.push(h):X.push(h)}}J[57]=ep,J[58]=ez,J[59]=D,J[60]=V,J[61]=X,J[62]=U,J[63]=Y,J[64]=H}else D=J[59],V=J[60],X=J[61],U=J[62],Y=J[63],H=J[64];return J[65]!==ee?(G=(0,n.cn)(["relative inline-grid cursor-crosshair select-none whitespace-nowrap font-medium font-title text-ink",ee]),J[65]=ee,J[66]=G):G=J[66],J[67]===Symbol.for("react.memo_cache_sentinel")?(q=(0,t.jsx)("span",{className:"col-start-1 row-start-1 block [font-feature-settings:'liga'_0,'calt'_0,'salt'_0]",ref:e_,children:(0,t.jsx)(m,{})}),Q=(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none invisible absolute inset-0 block whitespace-nowrap [font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1]",ref:eA,children:"Restless"}),J[67]=q,J[68]=Q):(q=J[67],Q=J[68]),J[69]!==D||J[70]!==V||J[71]!==X||J[72]!==ep||J[73]!==U||J[74]!==eu||J[75]!==ez||J[76]!==Y||J[77]!==em||J[78]!==H?(Z=ep?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{"aria-hidden":"true",className:(0,n.cn)(["pointer-events-none absolute inset-0 block whitespace-nowrap",eu?"bg-accent":null]),style:eu?{clipPath:`url(#${ez}-glass)`}:void 0,children:[eu?(0,t.jsx)("span",{className:"absolute inset-0 block whitespace-nowrap text-ink [font-feature-settings:'liga'_0,'calt'_0,'salt'_0]",children:(0,t.jsx)(m,{})}):null,(0,t.jsxs)("svg",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 size-full overflow-hidden",children:[(0,t.jsxs)("defs",{children:[(0,t.jsx)("clipPath",{id:`${ez}-glass`,ref:ex}),(0,t.jsx)("clipPath",{id:`${ez}-ink`,children:U}),(0,t.jsx)("clipPath",{id:`${ez}-yellow`,children:H}),(0,t.jsx)("clipPath",{id:`${ez}-pink`,children:Y}),(0,t.jsx)("clipPath",{id:`${ez}-blue`,children:D}),(0,t.jsx)("clipPath",{id:`${ez}-green`,children:X})]}),(0,t.jsx)("g",{className:"fill-accent",children:V})]}),(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 block whitespace-nowrap text-ink [-webkit-text-stroke:1px_var(--color-ink)] [font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1] [paint-order:stroke_fill]",style:{clipPath:`url(#${ez}-ink)`},children:(0,t.jsx)(f,{letters:ep.letters,letterWidths:ep.letterWidths,offsets:ep.letterOffsets,overlap:1/ep.ratio,pixelOffsets:ep.pixelOffsets})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 block whitespace-nowrap text-primary-yellow [-webkit-text-stroke:1px_var(--color-ink)] [font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1] [paint-order:stroke_fill]",style:{clipPath:`url(#${ez}-yellow)`},children:(0,t.jsx)(f,{letters:ep.letters,letterWidths:ep.letterWidths,offsets:ep.letterOffsets,overlap:1/ep.ratio,pixelOffsets:ep.pixelOffsets})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 block whitespace-nowrap text-primary-pink [-webkit-text-stroke:1px_var(--color-ink)] [font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1] [paint-order:stroke_fill]",style:{clipPath:`url(#${ez}-pink)`},children:(0,t.jsx)(f,{letters:ep.letters,letterWidths:ep.letterWidths,offsets:ep.letterOffsets,overlap:1/ep.ratio,pixelOffsets:ep.pixelOffsets})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 block whitespace-nowrap text-primary-blue [-webkit-text-stroke:1px_var(--color-ink)] [font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1] [paint-order:stroke_fill]",style:{clipPath:`url(#${ez}-blue)`},children:(0,t.jsx)(f,{letters:ep.letters,letterWidths:ep.letterWidths,offsets:ep.letterOffsets,overlap:1/ep.ratio,pixelOffsets:ep.pixelOffsets})}),(0,t.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 block whitespace-nowrap text-primary-green [-webkit-text-stroke:1px_var(--color-ink)] [font-feature-settings:'liga'_0,'calt'_0,'salt'_1,'ss01'_1] [paint-order:stroke_fill]",style:{clipPath:`url(#${ez}-green)`},children:(0,t.jsx)(f,{letters:ep.letters,letterWidths:ep.letterWidths,offsets:ep.letterOffsets,overlap:1/ep.ratio,pixelOffsets:ep.pixelOffsets})})]}),em?(0,t.jsx)("svg",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-10 size-full overflow-visible",children:(0,t.jsx)("rect",{className:"fill-none stroke-ink","data-cursor-outline":!0,opacity:0,ref:eE,shapeRendering:"crispEdges",strokeWidth:1})}):null]}):null,J[69]=D,J[70]=V,J[71]=X,J[72]=ep,J[73]=U,J[74]=eu,J[75]=ez,J[76]=Y,J[77]=em,J[78]=H,J[79]=Z):Z=J[79],J[80]!==e1||J[81]!==e0||J[82]!==G||J[83]!==Z?(K=(0,t.jsxs)("span",{className:G,onPointerLeave:e1,onPointerMove:e0,ref:ew,children:[q,Q,Z]}),J[80]=e1,J[81]=e0,J[82]=G,J[83]=Z,J[84]=K):K=J[84],K}
3function y(e){return e.node.data[e.offset]}var x=e.i(143243);function v(e){let r,a,s,l,o=(0,i.c)(8),{className:c,onRicochetLaunch:d}=e;return o[0]!==c?(r=(0,n.cn)(["relative aspect-[1156/180] w-full select-none",c]),o[0]=c,o[1]=r):r=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(x.default,{className:"pointer-events-none size-full"}),o[2]=a):a=o[2],o[3]!==d?(s=(0,t.jsx)("div",{className:"@container absolute inset-x-0 top-1/2 aspect-[5/1] -translate-y-1/2",children:(0,t.jsxs)("div",{className:"grid size-full grid-cols-[20%_1fr] items-center gap-x-[6.25%] text-ink",children:[a,(0,t.jsx)(g,{className:"w-full text-[18.125cqw] leading-[0.7586] tracking-[-0.02em]",gridUnitEm:.085,liveMask:!0,mode:"blocks",onRicochetLaunch:d,radiusCells:4.5,showCursorOutline:!0,sizeVariance:.1})]})}),o[3]=d,o[4]=s):s=o[4],o[5]!==r||o[6]!==s?(l=(0,t.jsx)("div",{className:r,children:s}),o[5]=r,o[6]=s,o[7]=l):l=o[7],l}e.i(27627);var w=e.i(858456);function b(e,t,i){return Math.min(i,Math.max(t,e))}function A(e,t,i,r){return t<0?(i-e)/t:t>0?(r-e)/t:1/0}function k(e,t,i){return Math.abs(e-t)>=1e-4?0:i<0?1:-1}function _(e,t){let i=0;for(let e of t)i+=e.state.bounces;let r=t[t.length-1];e.dataset.ricochetBounces=String(i),e.dataset.ricochetInstances=String(t.length),e.dataset.ricochetLaunchSpeed=String(Math.round(r?.state.launchSpeed??0)),e.dataset.ricochetMasks=String(t.filter(e=>e.launch.maskElement.isConnected).length),e.dataset.ricochetPhase=t.length>0?"ricochet":"idle"}function M(e){let{launch:t,state:i}=e;t.maskElement.setAttribute("x",String(i.x-t.maskOffsetX)),t.maskElement.setAttribute("y",String(i.y-t.maskOffsetY)),t.maskElement.setAttribute("width",String(i.size)),t.maskElement.setAttribute("height",String(i.size))}var E=e.i(10730);function S(e){let r,a,s,l,o,c=(0,i.c)(11),{className:d,source:u}=e;if(c[0]!==u)r=({app:e,cleanup:t})=>{let i={alignment:.5,color:function(e){let t=document.createElement("canvas");t.width=1,t.height=1;let i=t.getContext("2d",{colorSpace:"display-p3",willReadFrequently:!0});if(!i)return 0;i.fillStyle=e,i.fillRect(0,0,1,1);let r=i.getImageData(0,0,1,1).data;return 65536*r[0]+256*r[1]+r[2]}(getComputedStyle(e.canvas).color),join:"miter",width:1},r=[],a=e.screen.height,n=e.screen.width,s=t=>{let a,n,s,l,o,c=t.measureBounds();c&&Object.assign(t,c);let d=new w.Graphics,u={bounces:0,launchSpeed:0,maxX:0,maxY:0,minX:0,minY:0,size:0,velocityX:0,velocityY:0,x:0,y:0},h={graphic:d,launch:t,state:u};d.visible=!1,e.stage.addChild(d),u.bounces=0,u.maxX=t.maxX,u.maxY=t.maxY,u.minX=t.minX,u.minY=t.minY,u.size=t.size,u.x=b(t.x,t.minX,t.maxX),u.y=b(t.y,t.minY,t.maxY),(s=Math.hypot(a=t.velocityX,n=t.velocityY))<.08&&(s=Math.hypot(a=u.x<(u.minX+u.maxX)/2?-1:1,n=u.y<(u.minY+u.maxY)/2?-.35:.35)),l=n<0?-1:1,s=Math.hypot(a=(a<0?-1:1)*Math.max(Math.abs(a),.18*s),n=l*Math.max(Math.abs(n),.18*s)),o=b(.19*Math.hypot(u.maxX-u.minX,u.maxY-u.minY)+240*Math.hypot(t.velocityX,t.velocityY),280,800),u.launchSpeed=o,u.velocityX=a/s*o,u.velocityY=n/s*o,d.visible=!0,d.clear(),d.rect(0,0,u.size,u.size),d.stroke(i),d.position.set(u.x,u.y),M(h),r.push(h)},l=t=>{let[i]=r.splice(t,1);i&&(i.launch.maskElement.remove(),e.stage.removeChild(i.graphic),i.graphic.destroy())};function o(){let t=!1;if(a!==e.screen.height||n!==e.screen.width){for(let t of(a=e.screen.height,n=e.screen.width,r))!function(e){let t=e.launch.measureBounds();t&&(Object.assign(e.launch,t),e.state.maxX=t.maxX,e.state.maxY=t.maxY,e.state.minX=t.minX,e.state.minY=t.minY,e.state.x=b(e.state.x,t.minX,t.maxX),e.state.y=b(e.state.y,t.minY,t.maxY),e.graphic.position.set(e.state.x,e.state.y),M(e))}(t);t=!0}for(;u.launches.length>0;){let e=u.launches.shift();e&&(s(e),t=!0)}let i=Math.min(e.ticker.deltaMS,32)/1e3;for(let e of r){let r=function(e,t){let i=t,r=!1,a=e.maxX<=e.minX,n=e.maxY<=e.minY;for(a&&(e.x=e.minX),n&&(e.y=e.minY);i>0;){let t=a?0:e.velocityX,s=n?0:e.velocityY,l=A(e.x,t,e.minX,e.maxX),o=A(e.y,s,e.minY,e.maxY),c=Math.min(l,o);if(!Number.isFinite(c)||c>i){e.x+=t*i,e.y+=s*i;break}e.x+=t*c,e.y+=s*c,i-=c;let d=k(l,c,t),u=k(o,c,s);0!==d&&(e.velocityX=Math.abs(e.velocityX)*d),0!==u&&(e.velocityY=Math.abs(e.velocityY)*u),e.bounces+=1,r=!0}return r}(e.state,i);e.graphic.position.set(e.state.x,e.state.y),M(e),r&&(t=!0)}t&&_(e.canvas,r)}_(e.canvas,r),e.ticker.add(o),t(()=>{for(e.ticker.remove(o);r.length>0;)l(r.length-1);for(let e of u.launches)e.maskElement.remove();u.launches.length=0})},c[0]=u,c[1]=r;else r=c[1];let h=r;c[2]!==h?(a=[h],c[2]=h,c[3]=a):a=c[3];let m=a;return c[4]!==d?(s=(0,n.cn)(["pointer-events-none absolute inset-0 z-20 size-full text-ink",d]),c[4]=d,c[5]=s):s=c[5],c[6]!==s?(l={"aria-hidden":!0,
3className:s},c[6]=s,c[7]=l):l=c[7],c[8]!==l||c[9]!==m?(o=(0,t.jsx)(E.default,{canvasAttrs:l,tickers:m}),c[8]=l,c[9]=m,c[10]=o):o=c[10],o}var C=e.i(772039),j=e.i(965130);function T(e){let a,s,l,o,c,d,u=(0,i.c)(11),{className:h,gapPercent:m,widths:f}=e,[p,g]=(0,r.useState)(null);return u[0]!==m||u[1]!==p||u[2]!==f?(a=()=>{if(!p)return;let e=[...p.querySelectorAll("[data-slider-rect]")],t=p.getBoundingClientRect().width,i=0,r=0,a=new ResizeObserver(e=>{for(let i of e)t=i.borderBoxSize[0]?.inlineSize??i.contentRect.width});a.observe(p);let n=e=>(t+e)/200,s=e=>(m/100*t*(1+(2*Math.random()-1)*.15)+e)/200,l=t=>{let r=f[i%f.length],a=e[i%4];return e[(i+1)%4].removeAttribute("data-slider-active"),i+=1,a.style.setProperty("--slider-rect-width",`${r}px`),a.style.setProperty("--slider-duration",`${n(r)}s`),a.style.setProperty("--slider-delay",`${-(void 0===t?0:t)}s`),a.setAttribute("data-slider-active",""),s(r)};if(t>0){let e=n(f[0])-Math.random()*s(f[0]);for(;e>0;)e-=l(e);r=-e}let o=(0,C.runWhileVisible)(p,e=>{!(t<=0)&&(r-=e)<=0&&(r+=l())});return()=>{for(let t of(o(),a.disconnect(),e))t.removeAttribute("data-slider-active"),t.style.removeProperty("--slider-rect-width"),t.style.removeProperty("--slider-duration"),t.style.removeProperty("--slider-delay")}},s=[m,p,f],u[0]=m,u[1]=p,u[2]=f,u[3]=a,u[4]=s):(a=u[3],s=u[4]),(0,r.useEffect)(a,s),u[5]!==h?(l=(0,n.cn)(["@container relative flex h-10 items-center overflow-hidden text-ink",h]),u[5]=h,u[6]=l):l=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("div",{className:"h-1 w-full bg-current"}),c=Array.from({length:4},N),u[7]=o,u[8]=c):(o=u[7],c=u[8]),u[9]!==l?(d=(0,t.jsxs)("div",{"aria-hidden":"true",className:l,ref:g,children:[o,c]}),u[9]=l,u[10]=d):d=u[10],d}function N(e,i){return(0,t.jsx)("div",{className:j.default.rect,"data-slider-rect":""},i)}let R=[40,40],P=[32,40];function L(){return{launches:[]}}e.s(["default",0,function(){let e,n,s,l,o,c,d,u,h=(0,i.c)(15),[m,f]=(0,r.useState)(null),[p]=(0,r.useState)(L),[g,y]=(0,r.useState)(!0);h[0]!==p.launches?(e=e=>{p.launches.push(e)},h[0]=p.launches,h[1]=e):e=h[1];let x=e;h[2]!==m?(n=()=>{if(m)return(0,a.watchAnimation)(m,y)},s=[m],h[2]=m,h[3]=n,h[4]=s):(n=h[3],s=h[4]),(0,r.useEffect)(n,s);let w=g?"":void 0;return h[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(T,{gapPercent:48.88,widths:P}),h[5]=l):l=h[5],h[6]!==p?(o=(0,t.jsx)(S,{source:p}),h[6]=p,h[7]=o):o=h[7],h[8]!==x?(c=(0,t.jsx)(v,{className:"mt-56 xl:mt-91",onRicochetLaunch:x}),h[8]=x,h[9]=c):c=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(T,{className:"mt-56 xl:mt-91",gapPercent:50.95,widths:R}),h[10]=d):d=h[10],h[11]!==w||h[12]!==o||h[13]!==c?(u=(0,t.jsxs)("div",{className:"relative","data-animation-observer":"","data-pixel-ricochet-bounds":"","data-run-surface":"","data-visible":w,ref:f,children:[l,o,c,d]}),h[11]=w,h[12]=o,h[13]=c,h[14]=u):u=h[14],u}],84520)},442868,e=>{"use strict";class t{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return i(this.animations,"duration")}get iterationDuration(){return i(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function i(e,t){let i=0;for(let r=0;r<e.length;r++){let a=e[r][t];null!==a&&a>i&&(i=a)}return i}class r extends t{then(e,t){return this.finished.finally(e).then(()=>{})}}var a=e.i(483936),n=e.i(594596),s=e.i(641482),l=e.i(640884),o=e.i(956501),c=e.i(106269),d=e.i(532389),u=e.i(778701),h=e.i(918761),m=e.i(948681),f=e.i(311764),p=e.i(830137),g=e.i(965259);function y(e,t){var i;let r;return(0,g.isEasingArray)(e)?e[i=e.length,((t-0)%(r=i-0)+r)%r+0]:e}var x=e.i(764248);function v(e){return"object"==typeof e&&!Array.isArray(e)}function w(e,t,i,r){return null==e?[]:"string"==typeof e&&v(t)?(0,x.resolveElements)(e,i,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function b(e,t,i,r){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?i:t.startsWith("<")?Math.max(0,i+parseFloat(t.slice(1))):r.get(t)??e}var A=e.i(969169);function k(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function _(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function M(e,t){return t[e]||(t[e]=[]),t[e]}let E=e=>"number"==typeof e,S=e=>e.every(E);
3var C=e.i(887925),j=e.i(263815),T=e.i(606980),N=e.i(262886),R=e.i(157323),P=e.i(61196),L=e.i(80064),B=e.i(532790),I=e.i(989526);class O extends I.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let i=e[t];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,B.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function F(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=(0,N.isSVGElement)(e)&&!(0,R.isSVGSVGElement)(e)?new P.SVGVisualElement(t):new L.HTMLVisualElement(t);i.mount(e),j.visualElementStore.set(e,i)}function z(e){let t=new O({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),j.visualElementStore.set(e,t)}function $(e,t,i,r){let a=[];if((0,l.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!v(t))a.push((0,C.animateSingleValue)(e,v(t)&&t.default||t,i&&i.default||i));else{if(null==e)return a;let n=w(e,t,r),s=n.length;(0,f.invariant)(!!s,"No valid elements provided.","no-valid-elements");for(let e=0;e<s;e++){let r=n[e],l=r instanceof Element?F:z;j.visualElementStore.has(r)||l(r);let o=j.visualElementStore.get(r),c={...i};"delay"in c&&"function"==typeof c.delay&&(c.delay=c.delay(e,s)),a.push(...(0,T.animateTarget)(o,{...t,transition:c},{}))}}return a}let W=function(e={}){let{scope:t,reduceMotion:i,skipAnimations:g}=e;return function(e,x,v){var E;let C,j=[],T={};if(void 0!==i&&(T.reduceMotion=i),void 0!==g&&(T.skipAnimations=g),Array.isArray(e)&&e.some(Array.isArray)){let i,{onComplete:r,...g}=x||{};"function"==typeof r&&(C=r),E={...T,...g},i=[],(function(e,{defaultTransition:t={},...i}={},r,n){let s=t.duration||.3,g=new Map,x=new Map,v={},E=new Map,C=0,j=0,T=0;for(let i=0;i<e.length;i++){let h=e[i];if("string"==typeof h){E.set(h,j);continue}if(!Array.isArray(h)){E.set(h.name,b(j,h.at,C,E));continue}let[g,k,P={}]=h;void 0!==P.at&&(j=b(j,P.at,C,E));let L=0,B=(e,i,r,l=0,h=0)=>{var g;let x=Array.isArray(g=e)?g:[g],{delay:v=0,times:w=(0,o.defaultOffset)(x),type:b=t.type||"ke
3yframes",repeat:k,repeatType:_,repeatDelay:M=0,...E}=i,{ease:C=t.ease||"easeOut",duration:N}=i,R="function"==typeof v?v(l,h):v,P=x.length,B=(0,c.isGenerator)(b)?b:n?.[b||"keyframes"];if(P<=2&&B){let e=100;2===P&&S(x)&&(e=Math.abs(x[1]-x[0]));let i={...t,...E};void 0!==N&&(i.duration=(0,m.secondsToMilliseconds)(N));let r=(0,d.createGeneratorEasing)(i,e,B);C=r.ease,N=r.duration}N??(N=s);let I=j+R;1===w.length&&0===w[0]&&(w[1]=1);let O=w.length-x.length;if(O>0&&(0,u.fillOffset)(w,O),1===x.length&&x.unshift(null),k&&(0,f.warning)(k<20,`Sequence segments can't repeat ${k} times â ignoring repeat option. Use a value below 20 or apply repeat at the sequence level instead.`),k&&k<20){let e=N>0?M/N:0;N=N*(k+1)+M*k;let t=[...x],i=[...w],r=[...C=Array.isArray(C)?[...C]:[C]],a="reverse"===_||"mirror"===_,n=t,s=r;a&&(n=[...t].reverse(),"reverse"===_&&(s=[...r].reverse().map(e=>"function"==typeof e?(0,p.reverseEasing)(e):e)));for(let l=0;l<k;l++){let o=a&&l%2==0,c=o?n:t,d=o?s:r,u=(l+1)*(1+e);e>0&&(x.push(x[x.length-1]),w.push(u),C.push("linear")),x.push(...c);for(let e=0;e<c.length;e++)w.push(i[e]+u),C.push(0===e?"linear":y(d,e-1))}!function(e,t,i=0){let r=t+1+t*i;for(let t=0;t<e.length;t++)e[t]=e[t]/r}(w,k,e)}let F=I+N;!function(e,t,i,r,n,s){for(let t=0;t<e.length;t++){let i=e[t];i.at>n&&i.at<s&&((0,a.removeItem)(e,i),t--)}for(let a=0;a<t.length;a++)e.push({value:t[a],at:(0,A.mixNumber)(n,s,r[a]),easing:y(i,a)})}(r,x,C,w,I,F),L=Math.max(R+N,L),T=Math.max(F,T)};if((0,l.isMotionValue)(g))B(k,P,M("default",_(g,x)));else{let e=w(g,k,r,v),t=e.length;for(let i=0;i<t;i++){let r=_(e[i],x);for(let e in k){var N,R;B(k[e],(N=P,R=e,N&&N[R]?{...N,...N[R]}:{...N}),M(e,r),i,t)}}}C=j,j+=L}return x.forEach((e,r)=>{for(let a in e){let n=e[a];n.sort(k);let s=[],l=[],o=[];for(let e=0;e<n.length;e++){let{at:t,value:i,easing:r}=n[e];s.push(i),l.push((0,h.progress)(0,T,t)),o.push(r||"easeOut")}0!==l[0]&&(l.unshift(0),s.unshift(s[0]),o.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),s.push(null)),g.has(r)||g.set(r,{keyframes:{},transition:{}});let c=g.get(r);c.keyframes[a]=s;let{type:d,...u}=t;c.transition[a]={...u,duration:T,ease:o,times:l,...i}}}),g})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],i=(0,n.motionValue)(0);return(i.on("change",t),1===e.length)?[i,[0,1]]:2===e.length?[i,[0,1],e[1]]:[i,e[1],e[2]]}return e}),E,t,{spring:s.spring}).forEach(({keyframes:e,transition:t},r)=>{i.push(...$(r,e,t))}),j=i}else{let{onComplete:i,...r}=v||{};"function"==typeof i&&(C=i),j=$(e,x,{...T,...r},t)}let N=new r(j);return C&&N.finished.then(C),t&&(t.animations.push(N),N.finished.then(()=>{(0,a.removeItem)(t.animations,N)})),N}}();e.s(["animate",0,W],442868)}]); 4 5//# debugId=ffbda609-7903-8867-20c6-fb2d5aed3c78
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.