import{d as j}from"../chunks/environment.9aa685ef.js";import{S as q,i as A,s as G,k as E,a as $,q as h,M as P,l as y,h as o,c as k,m as x,r as p,n as M,D as u,b as f,F as R,u as Y,E as O}from"../chunks/index.463cc238.js";const g=j,w=!0,F=Object.freeze(Object.defineProperty({__proto__:null,csr:g,prerender:w},Symbol.toStringTag,{value:"Module"}));function z(i){let n,l,t,c,s,_,m,r,b,v,S;return{c(){n=E("meta"),l=$(),t=E("h1"),c=h("Your number is "),s=h(i[0]),_=h("!"),m=$(),r=E("button"),b=h("Get a random number"),this.h()},l(e){const a=P("svelte-w9hkn6",document.head);n=y(a,"META",{name:!0,content:!0}),a.forEach(o),l=k(e),t=y(e,"H1",{});var d=x(t);c=p(d,"Your number is "),s=p(d,i[0]),_=p(d,"!"),d.forEach(o),m=k(e),r=y(e,"BUTTON",{});var T=x(r);b=p(T,"Get a random number"),T.forEach(o),this.h()},h(){document.title="Rand",M(n,"name","description"),M(n,"content","About this app")},m(e,a){u(document.head,n),f(e,l,a),f(e,t,a),u(t,c),u(t,s),u(t,_),f(e,m,a),f(e,r,a),u(r,b),v||(S=R(r,"click",i[1]),v=!0)},p(e,[a]){a&1&&Y(s,e[0])},i:O,o:O,d(e){o(n),e&&o(l),e&&o(t),e&&o(m),e&&o(r),v=!1,S()}}}function B(i,n,l){let t=-1;console.log("hthth");function c(){fetch("./rand").then(s=>s.text()).then(s=>l(0,t=s))}return[t,c]}class H extends q{constructor(n){super(),A(this,n,B,z,G,{})}}export{H as component,F as universal};
