1import{E as e,F as t,G as n,K as r,N as i,R as a,b as o,c as s,d as c,f as l,g as u,j as d,l as f,m as p,o as m,p as h,w as g}from"./web-CnTL0rTt.js";import{n as _,t as v}from"./PageMeta-BX1CAw8C.js";var y=o(`<div class="flex flex-row flex-wrap gap-1.5">`),b=o(`<a target=_blank rel=noreferrer class=block><img class=block width=88 height=31 style=image-rendering:pixelated>`),x=o(`<img class=block width=88 height=31 style=image-rendering:pixelated>`);function S(n){return(()=>{var r=s(y);return c(r,d(g,{get each(){return n.buttons},children:n=>d(e,{get when(){return n.href},get fallback(){return(()=>{var e=s(x);return t(t=>{var r=n.src,i=n.alt;return r!==t.e&&p(e,`src`,t.e=r),i!==t.t&&p(e,`alt`,t.t=i),t},{e:void 0,t:void 0}),e})()},get children(){var e=s(b),r=e.firstChild;return t(t=>{var i=n.href,a=n.src,o=n.alt;return i!==t.e&&p(e,`href`,t.e=i),a!==t.t&&p(r,`src`,t.t=a),o!==t.a&&p(r,`alt`,t.a=o),t},{e:void 0,t:void 0,a:void 0}),e}})})),r})()}var C=o(`<img class=spotify-cover>`),w=o(`<div class=spotify-info><div class=spotify-song></div><div class=spotify-artist></div><div class=spotify-progress-row><div class=spotify-progress-bar><div class=spotify-progress-fill></div></div><span class=spotify-time><!$><!/>/<!$><!/>`),T=o(`<img src=https://s3.s4r.in/ed-smile-f.png class="spotify-cover spotify-cover-placeholder"alt>`),E=o(`<a class=spotify-card>`);function D(e){let t=Math.floor(e/1e3);return`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`}function O(r){let[o,m]=a(0),h;i(()=>{let e=r.spotify();clearInterval(h),e&&(h=setInterval(()=>{let t=Date.now()-e.timestamps.start;m(Math.min(t,e.timestamps.end-e.timestamps.start))},1e3))}),n(()=>clearInterval(h));let g=()=>r.spotify()!==null,_=()=>r.spotify()?.song??`no listen music now`,v=()=>r.spotify()?.artist??`sarin`,y=()=>r.spotify()?.album_art_url??``,b=()=>{let e=r.spotify();return e?e.timestamps.end-e.timestamps.start:0},x=()=>b()>0?Math.min(100,o()/b()*100):0,S=()=>{let e=r.spotify()?.track_id;return e?`https://open.spotify.com/track/${e}`:`#`},O=[d(e,{get when(){return y()},get fallback(){return s(T)},get children(){var e=s(C);return t(t=>{var n=y(),r=_();return n!==t.e&&p(e,`src`,t.e=n),r!==t.t&&p(e,`alt`,t.t=r),t},{e:void 0,t:void 0}),e}}),(()=>{var e=s(w),n=e.firstChild,r=n.nextSibling,i=r.nextSibling.firstChild,a=i.firstChild,d=i.nextSibling,p=d.firstChild,[m,h]=f(p.nextSibling),y=m.nextSibling.nextSibling,[S,C]=f(y.nextSibling);return c(n,_),c(r,v),c(d,(()=>{var e=l(()=>!!g());return()=>e()?D(o()):`-:--`})(),m,h),c(d,(()=>{var e=l(()=>!!g());return()=>e()?D(b()):`-:--`})(),S,C),t(e=>u(a,`width`,`${x()}%`)),e})()];return(()=>{var e=s(E);return c(e,O),t(t=>{var n=g()?S():``,r=g()?`_blank`:void 0,i=g()?`noopener noreferrer`:void 0;return n!==t.e&&p(e,`href`,t.e=n),r!==t.t&&p(e,`target`,t.t=r),i!==t.a&&p(e,`rel`,t.a=i),t},{e:void 0,t:void 0,a:void 0}),e})()}function k(e){let[t,i]=a(!1),[o,s]=a(null);return r(()=>{let t,r,a,o,c=!1;function l(){clearInterval(r),clearTimeout(a)}function u(){t=new WebSocket(`wss://api.lanyard.rest/socket`),t.addEventListener(`message`,n=>{let a=JSON.parse(n.data);switch(a.op){case 1:o=a.d.heartbeat_interval,r=setInterval(()=>{t.send(JSON.stringify({op:3}))},o),t.send(JSON.stringify({op:2,d:{subscribe_to_ids:[e]}}));break;case 0:if(a.t===`INIT_STATE`){let t=a.d[e];t&&(i(t.discord_status===`online`),s(t.spotify??null))}else a.t===`PRESENCE_UPDATE`&&(i(a.d.discord_status===`online`),s(a.d.spotify??null))}}),t.addEventListener(`close`,()=>{l(),c||(a=setTimeout(u,5e3))}),t.addEventListener(`error`,()=>{t.close()})}let d=()=>{document.hidden?(c=!0,t.close(),l()):(c=!1,u())};document.addEventListener(`visibilitychange`,d),u(),n(()=>{document.removeEventListener(`visibilitychange`,d),l(),t.close()})}),{online:t,spotify:o}}var A=o(`<button type=button style="all:unset;text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer">`),j=o(`<h1 class="gentium text-3xl font-bold theme-text-title group flex items-baseline mb-0.5"><img class="mr-3 shrink-0 h-20 [image-rendering:pixelated] border border-solid block [border-color:var(--color-accent-500)]"alt width=80 height=80><span>sarin<span class="gentium blur-md hover:blur-none theme-accent transition-[filter] duration-300 text-2xl ml-2">it/its`),M=o(`<div class="theme-text-body leading-relaxed"><p class="gentium mt-0 mb-0"style=font-size:1rem;line-height:1.4>answer to <!$><!/><br>dreamer, dreaming, and living inside a dream<br>mushroom mushroom<br>if you can't read chinese, use browser translate, it works!</p><p class="gentium mt-0"style=font-size:1rem;line-height:1.3>
1some paths â <a href=/taxa class="theme-accent no-underline">taxa</a>, <a href=/shorts class="theme-accent no-underline">shorts</a>, <a href=/board class="theme-accent no-underline">board</a>, <a href=/memo class="theme-accent no-underline">memo</a>, <a href=/poems class="theme-accent no-underline">poems</a>, <a href=/yume class="theme-accent no-underline">yume</a>, <a href=/posts class="theme-accent no-underline">posts</a></p><div class=running-divider><img src=https://s3.s4r.in/running-eevee.webp class=running-eevee alt><div class=running-track></div></div><!$><!/><!$><!/><div class="gentium lost-link italic">This is the water, and this is the well.<br>Drink full, and descend.<br>The horse is the white of the eyes, and dark within.`),N=[`ocfox`,`ib`,`ä¼å¸`];function P(){let[e,t]=a(0);return(()=>{var n=s(A);return n.$$click=()=>t(e=>(e+1)%N.length),c(n,()=>N[e()]),h(),n})()}var F=[{src:`https://s3.s4r.in/s4r.gif`,href:`https://s4r.in`,alt:`Ib's dream`},{src:`https://s3.s4r.in/aeon.gif`,href:`https://aeon.onl`,alt:`aeon.onl`},{src:`https://s3.s4r.in/teidesu.png`,href:`https://tei.su`,alt:`tei.su`},{src:`https://www.aozora.gr.jp/images/azbtn.gif`,href:`https://www.aozora.gr.jp`,alt:`é空æåº«`},{src:`https://www.ndl.go.jp/incunabula/images/banner_small.gif`,href:`https://www.ndl.go.jp/incunabula/`,alt:`å½ç«å½ä¼å³æ¸é¤¨`},{src:`https://s3.s4r.in/miku.gif`,alt:`miku`},{src:`https://s3.s4r.in/webbtn-rss.png`,href:`https://s4r.in/feed.xml`,alt:`rss`},{src:`https://s3.s4r.in/nixos.png`,href:`https://nixos.org`,alt:`NixOS`}];` `.split(``);function I(){let{online:e,spotify:n}=k(`937206337417408534`);return[(()=>{var n=s(j),r=n.firstChild;return t(()=>p(r,`src`,e()?`https://s3.s4r.in/ed.png`:`https://s3.s4r.in/ed-off.png`)),n})(),(()=>{var e=s(M),t=e.firstChild,r=t.firstChild.nextSibling,[i,a]=f(r.nextSibling);i.nextSibling;var o=t.nextSibling.nextSibling.nextSibling,[l,u]=f(o.nextSibling),p=l.nextSibling,[m,h]=f(p.nextSibling);return m.nextSibling,c(t,d(P,{}),i,a),c(e,d(S,{buttons:F}),l,u),c(e,d(O,{spotify:n}),m,h),e})()]}m([`click`]);var L=o(`<section class="max-w-3xl mx-auto"><!$><!/><!$><!/>`);function R(){return(()=>{var e=s(L),t=e.firstChild,[n,r]=f(t.nextSibling),i=n.nextSibling,[a,o]=f(i.nextSibling);return c(e,d(v,{title:_,url:`/`,raw:!0,description:`dreamer, dreaming, and living inside a dream.`,type:`profile`}),n,r),c(e,d(I,{}),a,o),e})()}export{R as default};
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.