1let T,oe,M,C,I;typeof window=="object"&&("scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"),T=document.createElement.bind(document),oe=document.createElementNS.bind(document),M=document.createTextNode.bind(document),C=document.createComment.bind(document),I=document.createDocumentFragment.bind(document));const ce="http://www.w3.org/2000/svg",v=Array.isArray;let F=(t,e=null)=>t(e);const ue=t=>F=t,de=[],fe=[];function l(t,e,...r){if(t===U)return r.rezactFragment=!0,r;if(typeof t=="function"){e=e||{},e.children=e.children||r;const o={};de.forEach(a=>a(t,e,o));const i=F(t,e);return fe.forEach(a=>a(i,t,e,o)),i}let s=null;["svg","path","g","circle","rect"].includes(t)?s=oe(ce,t):s=T(t),e&&ge(s,e);const n=r.length;for(let o=0;o<n;o++)x(s,r[o]);return s}let A=[];const H=t=>A.unshift(t),he={matches:(t,e,r)=>e==="ref"&&r&&typeof r=="object",handler:(t,e,r)=>pe(t,r)};H(he);function pe(t,e){e.elm=t}const me=new Set(["onMount","onUnmount"]);function ge(t,e){const r=Object.keys(e),s=r.length;e:for(let n=0;n<s;n++){const o=r[n],i=e[o];if(o.startsWith("on")&&typeof i=="function"&&!me.has(o)){t.addEventListener(o.slice(2).toLowerCase(),i);continue}if(typeof i=="boolean"&&i){t.setAttribute(o,"");continue}if(i==null)continue;const a=A.length;for(let d=0;d<a;d++){const u=A[d];if(u.matches(e,o,i)){u.handler(t,o,i,e);continue e}}t.setAttribute(o,i)}}const be={matches:t=>v(t),handler:(t,e,r,s)=>{const n=e.length;if(r&&v(e))for(let o=n-1;o>-1;o--)x(t,e[o],r,s);else for(let o=0;o<n;o++)x(t,e[o],r,s)}};function ve(t,e){t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode&&t.parentNode.appendChild(e)}function xe(t,e,r=!1,s=!1){if(s)return e.remove();if(t instanceof Comment&&(r=!0),!t.state){if(t.nodeName==="#text"&&!r)throw"Cannot append to text node";r?ve(t,e):t.appendChild(e)}}const ye={matches:t=>t instanceof Node,handler:(t,e,r,s)=>xe(t,e,r,s)};let B=[be,ye];const se=t=>B.unshift(t);let x=(t,e,...r)=>{const s=B.length;if(!(typeof e>"u"||e===null||typeof e=="boolean")){for(let n=0;n<s;n++){const o=B[n];if(o.matches(e))return o.handler(t,e,...r)}t.appendChild(M(String(e)))}};const re=[],we=t=>re.push(t);let D=!1;function E(t,e,r={}){D=!0;const s=F(e,r);if(t.state){const o=document.createDocumentFragment();x(o,s),t.set([...o.childNodes])}else t.innerHTML="",x(t,s);re.forEach(o=>o()),D=!1;const n=new CustomEvent("rezact-rendered");if(document.dispatchEvent(n),location.hash){const o=document.querySelector(location.hash);setTimeout(()=>{o&&o.scrollIntoView&&o.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})},100)}}const U=[];let z=null;function qe(){if(z)return;z=!0;function t(n){const o=n.value||n.id;return n.type==="radio"&&n.checked?o:n.type==="radio"&&!n.checked?"":n.type==="checkbox"?n.checked:n.type==="number"?+n.value:n.value?n.value:""}function e(n,o){const i=n.value||n.id;if(n.type==="radio"&&o===i)return n.checked=!0;if(n.type==="radio"&&o!==i)return n.checked=!1;if(n.type==="checkbox")return n.checked=!!o;n.value=o.nodeValue||o}const r=(n,o,i)=>{if(e(n,o.get()),o.subscribe(a=>{n.value!==a&&e(n,a)},{elm:n}),!Object.keys(i).includes("onChange")&&!Object.keys(i).includes("onInput")){const d=n.type==="text"||n.type==="number"?"input":"change";n.addEventListener(d,()=>{o.set(t(n))})}};H({matches:(n,o,i)=>o==="value"&&i.state||o==="checked"&&i.state,handler:(n,o,i,a)=>r(n,i,a)})}let G=!1;function Re(){if(G)return;G=!0;const t=(s,n,o,i)=>{const a=()=>{if(s.isConnected)return(s.rzHasMounted=!0)&&o(s);setTimeout(a,10)};a()},e={matches:(s,n)=>n==="onMount",handler:t},r={matches:(s,n)=>n==="onUnmount",handler:(s,n,o,i)=>{i.onMount||t(s,n,()=>{});const a=()=>{if(s.rzHasMounted&&!s.isConnected)return o(s);setTimeout(a,100)};a()}};H(e),H(r)}let S=[],k=[],L=-1;function $(){setTimeout(Se,100)}function Se(){if(L===-1||Date.now()+100<L)return $();const t=S.length;for(let r=t-1;r>-1;r--){const s=S[r];s.stateObj.subs.set(s,!0),s.funcRef?(s.obj.newVal=s.stateObj.get(),s.funcRef(s.obj)):s(s.stateObj.get()),S.splice(r,1)}const e=k.length-1;for(let r=e;r>-1;r--){const s=k[r];s.elm.isConnected||(s.func.stateObj.subs.delete(s.func),k.splice(r,1))}S.length===0&&(L=-1),$()}$();let w=[];function Ee(t){if(v(t)){const e=C("signal");return t.push(e),e}return t}ue(Ce);function Ce(t,e=null){let r=w;w=t.subs=[];const s=t.func?t.func(t.item,t.item.idxState):t(e);if(t.subs.length>0){const n=Ee(s);ie(n,t.subs)}return t.subs=null,w=r,s}function ie(t,e){if(v(e)){S.push(...e);const r=e.length;for(let s=0;s<r;s++)k.push({elm:t,func:e[s]})}else S.push(e),k.push({elm:t,func:e});L=Date.now()}class m{state=!0;value=null;subs=new Map;computed;deps;elmRef;idxState;func;constructor(e){this.value=e}alertSubs(e){for(const r of this.subs.keys())r.funcRef?(r.obj.newVal=e,r.funcRef(r.obj),r.obj.newVal=null):r(e)}get(){return this.value instanceof Text?this.value.nodeValue:this.value}set(e){const r=this.get();e===r&&!v(e)||(r instanceof Element&&e instanceof Element&&r!==e&&r.parentNode&&r.replaceWith(e),this.value instanceof Text?this.value.nodeValue=e:this.value=e,this.alertSubs(e),L=Date.now())}subscribe(e,r={}){if(e.stateObj=this,r.elm)ie(r.elm,e);else return w.push(e),()=>{const s=w.findIndex(n=>n===e);w.slice(s,1)}}toJSON(){if(this.value.state)return this.value.toJSON();if(typeof this.value=="object"&&!v(this.value)){const e={};return Object.keys(this.value).map(r=>{const s=this.value[r];if(s.state)return e[r]=s.toJSON();e[r]=s}),e}return this.get()}}const ke=t=>t.newState.set(t.func(t.deps));function Je(t,e){const r=new e[0].constructor(t(e));r.computed=!0;const s=e.length,n=[];for(let o=0;o<s;o++){const i=e[o].subscribe({funcRef:ke,obj:{newState:r,func:t,deps:e}});n.push(i)}return r.unsubscribe=()=>
1{n.forEach(o=>o())},r}function W(t,e){return{computer:t,deps:e}}const Le={string:!0,number:!0};function _e(t,e,...r){const s=e.get();if(Le[typeof s])Pe(t,e,...r);else if(s instanceof Node&&!e.computed)ae(t,e);else if(e.computed){const n=T("span"),o=new m(n);s instanceof Node&&(o.value=s),e.subscribe(i=>{(typeof i=="boolean"||i===null||i===void 0)&&o.set(n),i instanceof Node&&o.set(i)}),x(t,o.get())}}const He={matches:t=>typeof t=="object"&&(t.state||t.computer),handler:(t,e,...r)=>_e(t,e,...r)};se(He);const Te=t=>t.elm.setAttribute(t.key,t.computer(t.deps)),Ne=t=>t.elm.setAttribute(t.key,t.newVal),je={matches:(t,e,r)=>!(z&&(e==="value"||e==="checked"))&&(r.state||r.computer),handler:(t,e,r)=>{if(r.computer){const{computer:s,deps:n}=r;t.setAttribute(e,s(n));const o=n.length;for(let i=0;i<o;i++)n[i].subscribe({funcRef:Te,obj:{elm:t,key:e,computer:s,deps:n}},{elm:t})}else t.setAttribute(e,r.get()),r.subscribe({funcRef:Ne,obj:{elm:t,key:e}},{elm:t})}};H(je);const Oe=t=>t.txtNode.nodeValue=t.newVal.toString();function Pe(t,e,...r){const s=e.get(),n=M(s.toString());typeof s=="string"&&(e.value=n),e.subscribe({funcRef:Oe,obj:{txtNode:n,newVal:s.toString()}},{elm:t}),x(t,n,...r)}const Ae=()=>{w.forEach(t=>{t.stateObj.subs.set(t,!0),typeof t=="object"?t.funcRef(t.obj):t(t.stateObj.get())}),w=[]};we(Ae);const V=(t,e)=>{if(t===void 0)return;t=t instanceof Element?[t]:t;const r=t.length;let s=e;for(let n=0;n<r;n++){const o=t[n].elmRef||t[n];s.nextSibling!==(o[0]||o)&&(o.insertNodeBefore=s,x(s,o,!0)),o instanceof m?s=v(o.value)?o.value.at(-1):o.value:s=v(o)?o.at(-1):o}},q=T("span"),Be=(t,e,r,s)=>{const n=s.value instanceof Element?[s.value]:s.value;let o=t.nextSibling;if(!t.parentNode)return;if(t.parentNode.childNodes.length===s.previousChildLen+2&&n.length===0)return s.removeStaleElmRefCacheItems(),t.parentNode.innerHTML="";if(n.length===0){let p=I();const f=T("span");for(r.parentNode.insertBefore(f,r),p.appendChild(r);o!==e;){const c=o;o=o.nextSibling,c.remove()}f.parentNode.insertBefore(p,f),r.appendChild(p),f.remove();return}let i=0;const d=(n[0].elmRef||n[0]).length||1;let u=0;for(;o!==e;){const p=Math.floor(u/d);i=u%d;const f=n[p];let c=f&&f.elmRef&&(f?.elmRef[i]||f?.elmRef);if(n.indexOf(o.associatedState)<0){o=o.nextSibling;const h=o.previousSibling;h.replaceWith&&c instanceof HTMLElement?(h.replaceWith(c),o=c.nextSibling):h.remove()}else if(f&&c&&o!==c){o=o.nextSibling;const h=o.previousSibling;h.replaceWith&&c instanceof HTMLElement&&c.parentNode?(c.replaceWith(q),h.replaceWith(c),q.replaceWith(h)):c instanceof HTMLElement&&c.remove()}else o=o.nextSibling;u+=1}},ae=(t,e)=>{const r=I(),s=r.appendChild.bind(r),n=C("start map"),o=C("end map"),i=C("map-placeholder");s(n),s(o),e.subscribe(a=>{e.previousChildLen===0&&(n.parentNode&&n.parentNode.insertBefore(i,n),s(n),s(o)),Be(n,o,t,e),V(a,n),e.previousChildLen===0&&(i.parentNode?i.parentNode.insertBefore(r,i):t.appendChild(r)),e.previousChildLen=e.value.length,i.remove()}),e.previousChildLen=e.value.length,V(e.value,n),e.insertNodeBefore?x(e.insertNodeBefore,r,!0):t.appendChild(r)},ze={matches:t=>v(t.value)&&t.state,handler:(t,e)=>ae(t,e)};se(ze);const J=new m(""),Y=new m("");function le(t){return!!(t&&typeof t.then=="function")}function $e(t,e){const s=typeof t=="object"?new URL(t):new URL(t,window.location.href);return J.set(t.route||"/"),Y.set(s.pathname),s.route=t.route||"/",s.$route=J,s.$pathname=Y,s.go=n=>history.go(n),s.back=()=>history.back(),s.forward=()=>history.forward(),s.reload=()=>location.reload(),s.push=n=>e.routeChanged(n),s.replace=n=>e.routeChanged(n,!0),s.onBeforeLeave=n=>e.onBeforeLeaveFunc=n,s.params=t.params,s.stack=t.stack,s.currentNode=t.currentNode,s}class N{handlers;children;dynamicChild=null;wildcardHandler=null;router_outlet;nestedRoot;partName;title;meta;constructor(){this.handlers={},this.children=new Map,this.dynamicChild=null,this.wildcardHandler=null,this.router_outlet=new m(document.createElement("span")),this.nestedRoot=!1}}const K={hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",$pathname:new m(""),port:"",protocol:"",search:"",builtPath:"",route:"",$route:ne
1w m(""),params:{},stack:[],currentNode:null};class Me{root;onBeforeLeaveFunc=null;beforeHooks=[];afterHooks=[];previousRoute={...K};currentRoute={...K};nextHash="";nextSearch="";renderFunc=null;popState=!1;replaceState=!1;noRoute=e=>e.getNextRoute("/404").currentNode;constructor(e){if(!e.render)throw new Error("render function is required");this.renderFunc=e.render,e.noRoute&&(this.noRoute=e.noRoute),document.body.addEventListener("click",s=>{if(s.target.nodeName==="A"){if(!s.target.href||s.target.target)return;const n=new URL(s.target.href),o=window.location.hostname;if(n.hostname!==o)return;s.preventDefault(),this.routeChanged(n)}}),this.root=new N;const r=this;window.addEventListener("popstate",function(s){r.routeChanged(s)}),window.addEventListener("beforeunload",function(s){if(r.onBeforeLeaveFunc&&r.onBeforeLeaveFunc({},r.currentRoute)===!1)return s.preventDefault(),s.returnValue="You will lose any unsaved changes.","You will lose any unsaved changes."})}async runBeforeHooks(e){if(e){if(this.onBeforeLeaveFunc){const r=this.onBeforeLeaveFunc(e,this.currentRoute);if(r===!1)return;if(r)return this.routeRequest(r)}for(let r of this.beforeHooks){const s=r(e,this.currentRoute);if(le(s)){const n=await s;if(n===!1)return;if(n)return this.routeRequest(n)}else{if(s===!1)return;if(s)return this.routeRequest(s)}}this.routeRequest(e)}}runAfterHooks(e){if(e)for(let r of this.afterHooks)r(e,this.previousRoute)}routeChanged(e=null,r=!1){this.replaceState=r;let s=e;if(e instanceof PopStateEvent&&(this.popState=!0),e===null){s=window.location.pathname;const o=new URL(location.href);this.nextHash=o.hash,this.nextSearch=o.search}e instanceof URL&&(s=e.pathname,this.nextHash=e.hash,this.nextSearch=e.search);let n=this.getNextRoute(s);this.runBeforeHooks(n)}beforeEach(e){this.beforeHooks.push(e)}afterEach(e){this.afterHooks.push(e)}addRoutesFromConfig(e,r="",s=!0){e.forEach(n=>{const o=`${r}${n.path}`;n.component&&this.addRoute(o,n.component,{title:n.title,meta:n.meta},s),n.children&&n.children.length>0&&this.addRoutesFromConfig(n.children,o,!1)})}addRoute(e,r,s={},n=!0){const o=e.split("/").filter(Boolean);let i=!1,a=this.root;e==="/"&&(this.root.title=s.title,this.root.meta=s.meta);const d=(u,p,f)=>{u.title=p.title,u.meta=p.meta,u.partName=`/${f}`};for(let u of o){if(u.startsWith(":"))a.dynamicChild||(a.dynamicChild=new N,d(a.dynamicChild,s,u),a.dynamicChild.isDynamic=u.slice(1)),a=a.dynamicChild;else if(u.startsWith("*")){a.wildcardHandler=new N,d(a.wildcardHandler,s,u),a.wildcardHandler.isDynamic=u.slice(1),a.wildcardHandler.handlers.GET=r,a.wildcardHandler.nestedRoot=n;return}else a.children.has(u)||(a.children.set(u,new N),d(a.children.get(u),s,u)),a=a.children.get(u);i||(a.nestedRoot=!0),i=!0}a.handlers.GET=r,a.nestedRoot=a.nestedRoot||n,a.title=s.title,a.meta=s.meta}getNextRoute(e,r=null,s=null){e!=="/404"&&(e=this.popState?window.location.pathname:e);const n=e.split("/").filter(Boolean);let o=this.root,i="",a="",d={},u=[],p=0;for(let c of n){if(o.nestedRoot&&(u=[]),o.handlers.GET&&u.push(o),o.children.has(c))o=o.children.get(c),i+=o.partName,a+=`/${c}`;else if(o.dynamicChild){const h=o.dynamicChild.isDynamic,g=r===h?s:null;r||(d[h]=c,d[`$${h}`]=new m(c),d[`$${h}`].subscribe(y=>{const R=this.getNextRoute(location.pathname,h,y);history.pushState({},"",R.builtPath+R.search+R.hash)})),o=o.dynamicChild,i+=o.partName,a+=`/${g||c}`}else if(o.wildcardHandler){const h=o.wildcardHandler.isDynamic||"rest",g=r===h?s:null;if(!r){const y=n.slice(p).join("/");d[h]=y,d[`$${h}`]=new m(y),d[`$${h}`].subscribe(R=>{const P=this.getNextRoute(location.pathname,h,R);history.pushState({},"",P.builtPath+P.search+P.hash)})}o=o.wildcardHandler,i+=o.partName,a+=`/${g||c}`;break}else{o=this.noRoute(this);break}p++}const f=new URL(e,window.location.href);return f.hash=this.nextHash,f.search=this.nextSearch,f.route=i,f.builtPath=a,f.params=d,f.stack=u,f.currentNode=o,f}async routeRequest(e){this.onBeforeLeaveFunc=null,e=this.popState?window.location.pathname:e;let s=typeof e=="object"?e:this.getNextRoute(e),{currentNode:n}=s;if(this.previousRoute=this.currentRoute,this.currentRoute=$e(s,this),!this.popState&&!this.replaceState&&history.pushState({},"",s.href),this.replaceState&&history.replaceState({},"",s.href),this.popState=!1,n.handlers.GET)n.nestedRoot&&(this.currentRoute.stack=[]),this.currentRoute.stack.push(n),await this.renderFunc(this.currentRoute),this.runAfterHooks(s);else return this.noRoute(this)}}function Ie(t=null,e={}){e.routeErrorComponent||(e.routeErrorComponent=({reason:n})=>{const o=document.createElement("div");return o.innerText="Route Failed to Load, Reason: "+n,{default:()=>o}}),t||(t=document.getElementById("app"));let r=null,s=new m(document.createElement("span"));return new Me({render:async n=>{n.currentNode.title&&(document.title=n.currentNode.title);const{stack:o}=n,i=o.map(c=>{const h=c.handlers.GET({router:n});return le(h)?h:c.handlers.GET}),d=(await Promise.allSettled(i)).map(({status:c,reason:h,value:g})=>c==="rejected"?e.routeErrorComponent({reason:h}):g);for(let c=o.length-1;c>=0;c--){const h=o[c];h.router_outlet.subs=new Map,h.router_outlet.set(document.createElement("span"));const g=o[c+1];if(g){const y=d[c+1],R=y.Page||y.default||y;n.outlet=g.router_outlet,n.meta=g.meta,E(h.router_outlet,R,{router:n})}}const u=d[0],p=u.Page||u.default||u,f=u.Layout||p.Layout;if(f)r===f?(n.outlet=o[0].router_outlet,n.meta=o[0].meta,E(s,p,{router:n})):(r=f,n.outlet=o[0].router_outlet,n.meta=o[0].meta,E(s,p,{router:n}),n.outlet=s,n.meta=o[0].meta,E(t,c=>f(c),{router:n}));else{r=null;const c=d[0],h=c.Page||c.default||c;n.outlet=o[0].router_outlet,n.meta=o[0].meta,E(t,h,{router:n})}}})}function Q(t){return l("svg",{class:t.class,width:"24",height:"24",viewBox:"0 0 24 24",fill:"
1currentColor"},l("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.026 2c-5.509 0-9.974 4.465-9.974 9.974 0 4.406 2.857 8.145 6.821 9.465.499.09.679-.217.679-.481 0-.237-.008-.865-.011-1.696-2.775.602-3.361-1.338-3.361-1.338-.452-1.152-1.107-1.459-1.107-1.459-.905-.619.069-.605.069-.605 1.002.07 1.527 1.028 1.527 1.028.89 1.524 2.336 1.084 2.902.829.091-.645.351-1.085.635-1.334-2.214-.251-4.542-1.107-4.542-4.93 0-1.087.389-1.979 1.024-2.675-.101-.253-.446-1.268.099-2.64 0 0 .837-.269 2.742 1.021a9.582 9.582 0 0 1 2.496-.336 9.554 9.554 0 0 1 2.496.336c1.906-1.291 2.742-1.021 2.742-1.021.545 1.372.203 2.387.099 2.64.64.696 1.024 1.587 1.024 2.675 0 3.833-2.33 4.675-4.552 4.922.355.308.675.916.675 1.846 0 1.334-.012 2.41-.012 2.737 0 .267.178.577.687.479C19.146 20.115 22 16.379 22 11.974 22 6.465 17.535 2 12.026 2z"}))}class j{elm;constructor(e=null){this.elm=e}transition(e,r,s=0){setTimeout(()=>{const n=e.split(" "),o=r.split(" ");for(let i=0;i<n.length;i++)this.elm.classList.replace(n[i],o[i])},s)}show(e=0,r=null){setTimeout(()=>{r?this.elm.classList.replace("hidden",r):this.elm.classList.remove("hidden")},e)}hide(e=0,r=null){setTimeout(()=>{r?this.elm.classList.replace(r,"hidden"):this.elm.classList.add("hidden")},e)}addClick(e){setTimeout(()=>{this.elm.addEventListener("click",e)},50)}removeClick(e){this.elm.removeEventListener("click",e)}}const X=localStorage.getItem("scrollHash"),_=X?JSON.parse(X):{};let Z=null;function Fe(){localStorage.setItem("scrollHash",JSON.stringify(_))}function ee(){clearTimeout(Z),Z=setTimeout(Fe,1e3);const t=location.href;_[t]=window.scrollY}function Ue(){const t=location.href;(_[t]!==void 0||_[t]!==null)&&window.scrollTo({left:0,top:_[t],behavior:"instant"})}Re();const te=[{title:"Intro",icon:()=>{},href:"/docs",route:"/docs"},{title:"Getting Started",icon:()=>{},href:"/docs/getting-started",route:"/docs/getting-started"},{title:"Signals",icon:()=>{},href:"/docs/signals",route:"/docs/signals"},{title:"Effects",icon:()=>{},href:"/docs/effects",route:"/docs/effects"},{title:"Stores",icon:()=>{},href:"/docs/stores",route:"/docs/stores"},{title:"Gotchas",icon:()=>{},href:"/docs/gotchas",route:"/docs/gotchas"}];function Ye({router:t}){const{$route:e}=t,r=new j,s=new j,n=new j,o=new j,i=()=>{r.show(),o.transition("opacity-0","opacity-100",100),s.transition("-translate-x-full","translate-x-0",100),n.transition("opacity-0","opacity-100",100),r.addClick(a)},a=()=>{o.transition("opacity-100","opacity-0"),s.transition("translate-x-0","-translate-x-full"),n.transition("opacity-100","opacity-0"),r.hide(310),r.removeClick(a)};return l(U,null,l("div",{onMount:()=>{document.head.parentElement.className="h-full bg-zinc-200",window.addEventListener("scroll",ee)},onUnmount:()=>{window.removeEventListener("scroll",ee)}},l("div",{class:"relative z-50 hidden",ref:r,role:"dialog","aria-modal":"true"},l("div",{class:"fixed inset-0 bg-gray-900/80 opacity-0 transition-opacity duration-300 ease-linear",ref:o}),l("div",{class:"fixed inset-0 flex"},l("div",{ref:s,class:" relative mr-16 flex w-full max-w-xs flex-1 -translate-x-full transition duration-300 ease-in-out"},l("div",{ref:n,class:" absolute left-full top-0 flex w-16 justify-center pt-5 opacity-0 transition duration-300 ease-in-out"},l("button",{onClick:a,type:"button",class:"-m-2.5 p-2.5"},l("span",{class:"sr-only"},"Close sidebar"),l("svg",{class:"h-6 w-6 text-white",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})))),l("div",{class:"z-10 flex grow flex-col gap-y-5 overflow-y-auto bg-gray-900 px-6 pb-4 ring-1 ring-white/10"},l("a",{href:"/",class:"flex h-16 shrink-0 items-center text-white"},l("img",{class:"h-8 w-auto",src:"/rezact-logo.svg",alt:"Rezact Logo"}),"Rezact"),l("nav",{class:"flex flex-1 flex-col"},l("ul",{role:"list",class:"flex flex-1 flex-col gap-y-7"},l("li",null,l("ul",{role:"list",class:"-mx-2 space-y-1"},te.map(d=>{const u="group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6",p=`${u} text-white bg-gray-800`,f=`${u} text-gray-400 hover:bg-gray-800`;return l("li",null,l("a",{href:d.href,class:W(([c])=>c.get()===d.route?p:f,[e])},l(d.icon,{class:"h-6 w-6 shrink-0"}),d.title))}))),l("li",{class:"mt-auto"},l("a",{href:"https://github.com/rezact/rezact",class:"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-400 hover:bg-gray-800 hover:text-white"},l(Q,{class:"h-6 w-6 shrink-0"}),"GitHub")))))))),l("div",{id:"test",class:"hidden lg:fixed lg:inset-y-0 lg:z-40 lg:flex lg:w-72 lg:flex-col"},l("div",{class:"flex grow flex-col gap-y-5 overflow-y-auto bg-gray-900 px-6 pb-4"},l("a",{href:"/",class:"flex h-16 shrink-0 items-center text-white"},l("img",{class:"h-8 w-auto",src:"/rezact-logo.svg",alt:"Rezact Logo"}),"Rezact"),l("nav",{class:"flex flex-1 flex-col"},l("ul",{role:"list",class:"flex flex-1 flex-col gap-y-7"},l("li",null,l("ul",{role:"list",class:"-mx-2 space-y-1"},te.map(d=>{const u="group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6",p=`${u} text-white bg-gray-800`,f=`${u} text-gray-400 hover:bg-gray-800`;return l("li",null,l("a",{href:d.href,class:W(([c])=>c.get()===d.route?p:f,[e])},l(d.icon,{class:"h-6 w-6 shrink-0"}),d.title))}))),l("li",{class:"mt-auto"},l("a",{href:"https://github.com/rezact/rezact",class:"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-400 hover:bg-gray-800 hover:text-white"},l(Q,{class:"h-6 w-6 shrink-0"}),"GitHub")))))),l("div",{class:"lg:pl-72"},l("div",{class:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8"},l("button",{onClick:i,type:"button",class:"-m-2.5 p-2.5 text-gray-700 lg:hidden"},l("span",{class:"sr-only"},"Open sidebar"),l("img",{class:"h-8 w-auto",src:"/rezact-logo.svg",alt:"Rezact Logo"})),l("div",{class:"h-6 w-px bg-gray-900/10 lg:hidden","aria-hidden":"true"}),l("div",{class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},l("div",{class:"relative flex flex-1"}),l("div",{class:"flex items-center gap-x-4 lg:gap-x-6"}))),l("main",{class:"py-10"},l("div",{class:"px-4 sm:px-6 lg:px-8"}
1,t.outlet)))))}function De(){return l(U,null,l("h1",null,"404 - Page Not Found"))}const Ge=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),We=function(t){return"/"+t},ne={},b=function(e,r,s){let n=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link");n=Promise.all(r.map(i=>{if(i=We(i),i in ne)return;ne[i]=!0;const a=i.endsWith(".css"),d=a?'[rel="stylesheet"]':"";if(!!s)for(let f=o.length-1;f>=0;f--){const c=o[f];if(c.href===i&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${d}`))return;const p=document.createElement("link");if(p.rel=a?"stylesheet":Ge,a||(p.as="script",p.crossOrigin=""),p.href=i,document.head.appendChild(p),a)return new Promise((f,c)=>{p.addEventListener("load",f),p.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})}))}return n.then(()=>e()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ve=[{path:"/",component:()=>b(()=>import("./LandingPage-O8X2SXEc.js"),__vite__mapDeps([0,1,2,3,4,5])),title:"Rezact"},{path:"/playground",component:()=>b(()=>import("./Playground-KOAmaN4d.js").then(t=>t.P),__vite__mapDeps([6,7])),title:"Rezact - Playground"},{path:"/counter-test",component:()=>b(()=>import("./CounterTest-zN_2Wbd8.js"),__vite__mapDeps([8,5,3])),title:"Rezact - Counter Test"},{path:"/docs",component:()=>b(()=>import("./100_Intro-lRP6_wnt.js"),__vite__mapDeps([9,1])),title:"Rezact - Intro"},{path:"/docs/getting-started",component:()=>b(()=>import("./200_GettingStarted-9YbHk6Z4.js"),__vite__mapDeps([10,1])),title:"Rezact - Getting Started"},{path:"/docs/signals",component:()=>b(()=>import("./300_Signals-h4bra929.js"),__vite__mapDeps([11,1,2,3,4])),title:"Rezact - Signals"},{path:"/docs/effects",component:()=>b(()=>import("./400_Effects-Jr94fKEt.js"),__vite__mapDeps([12,1])),title:"Rezact - Effects"},{path:"/docs/stores",component:()=>b(()=>import("./500_Stores-EpiMIOPX.js"),__vite__mapDeps([13,1,3,4])),title:"Rezact - Stores"},{path:"/docs/gotchas",component:()=>b(()=>import("./2600_Gotchas-l-1QaWhv.js"),__vite__mapDeps([14,1])),title:"Rezact - Effects"}],O=Ie();O.addRoute("/404",De);O.addRoutesFromConfig(Ve);O.afterEach(()=>{Ue()});O.routeChanged();export{Ye as M,m as S,b as _,U as a,j as b,Re as c,Ae as d,Je as e,F as f,v as g,D as i,qe as u,l as x}; 2function __vite__mapDeps(indexes) { 3 if (!__vite__mapDeps.viteFileDeps) { 4 __vite__mapDeps.viteFileDeps = ["assets/LandingPage-O8X2SXEc.js","assets/mdx-LEb1kaIk.js","assets/ValidatorInput-PzAJrwPH.js","assets/Buttons-E-yT_r7C.js","assets/Form-cLix5-9l.js","assets/Counter-JZ6pTTpZ.js","assets/Playground-KOAmaN4d.js","assets/Playground-iCM7rPwC.css","assets/CounterTest-zN_2Wbd8.js","assets/100_Intro-lRP6_wnt.js","assets/200_GettingStarted-9YbHk6Z4.js","assets/300_Signals-h4bra929.js","assets/400_Effects-Jr94fKEt.js","assets/500_Stores-EpiMIOPX.js","assets/2600_Gotchas-l-1QaWhv.js"] 5 } 6 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 7}
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.