PageSourceSearch

https://texstr.vercel.app/_build/assets/index-CrCCe_3f.js

js texstr.vercel.app collected 2026-10-03 07:51:53 UTC 5,474 bytes, 1 lines download raw bytes

1import{f as U,O as ae,b as t,j as c,t as u,A as x,l as n,d as P,x as V,r as se,i as oe,Q as ie,z as le,B as de,N as pe}from"./web-87_e9nyW.js";import{n as A,f as ce,p as ue}from"./utils-C6mazQO8.js";import{A as me,b as fe,c as i,T as ge,a as o,B as xe}from"./index-Dt3l_MOx.js";import{U as he,V as be,K as k,a as $e,Q as _e,H as ye,W as ve,S as Se,O as ke,k as w,T as we}from"./loaders-CBO4saz8.js";import{u as Ae}from"./routing-CE_HYPay.js";import{A as Ce}from"./components-CPD-4QKm.js";function F(r,a){return{title:w(r,"title"),author:a?ue(a):void 0,authorUrl:`https://njump.me/${A.npubEncode(r.pubkey)}`,date:ce(r.created_at),summary:w(r,"summary")||r.content.substring(0,200),tags:r.tags.filter(e=>e[0]==="t").map(e=>e[1]),path:`/a/${A.naddrEncode({pubkey:r.pubkey,kind:r.kind,identifier:w(r,"d")||""})}`}}function Ie(){return he().subscribe(),r=>r.timeline({kinds:[k.ARTICLE],"#t":be}).pipe($e(a=>a?(a.forEach(e=>{ye({pubkey:e.pubkey,kind:k.PROFILE}).subscribe()}),r.filters({kinds:[k.PROFILE],authors:a.map(e=>e.pubkey)}).pipe(ve((e,m)=>[...e,m],[]),Se(e=>{const m=new Map(e.map(s=>[s.pubkey,s]));return a.map(s=>F(s,m.get(s.pubkey)))}),ke(a.map(e=>F(e))))):_e([])))}var Ne=u('<section class=space-y-4><h2 class="text-2xl font-bold mb-6">Recent Articles</h2><!$><!/>'),Le=u('<div class="flex-1 max-w-[800px] mx-auto px-6 py-16 w-full"><header class="text-center space-y-4"><h1 class="text-4xl font-bold tracking-tight"></h1><p class="text-xl italic text-muted-foreground"></p></header><main class=mt-12><section class="prose prose-lg"><h2 class="text-foreground text-xl font-bold mb-4">Abstract</h2><p class="text-justify leading-normal text-secondary-foreground">View and share mathematical content through NIP-23 events with LaTeX support. It provides a seamless platform for mathematical discourse, enabling technical discussions with properly rendered mathematical notation.</p></section><section class="mt-8 mb-12"><form class="space-y-4 sm:space-y-0"><div class="flex flex-col sm:flex-row sm:space-x-2 space-y-2 sm:space-y-0"><div class=flex-1><input type=text placeholder="Enter naddr or URL containing naddr"class="w-full h-10 px-4 py-2 border border-border rounded-md font-mono text-sm focus:outline-none focus:ring-2 bg-background text-foreground"aria-label="naddr input"><!$><!/></div><button type=submit class="h-10 px-6 bg-primary text-primary-foreground rounded-md hover:bg-primary/80 transition-colors md:self-start cursor-pointer">Read</button></div></form></section><!$><!/>'),Te=u('<p class="text-destructive text-sm font-sans mt-1">'),Re=u('<article class="border-b border-border pb-6 last:border-0"><h3 class=text-xl></h3><div class="text-sm text-muted-foreground mb-1 font-serif"><!$><!/><span class=italic></span></div><p class="text-secondary-foreground line-clamp-2"><!$><!/>...</p><div class="flex flex-wrap gap-2 mt-3">'),Ee=u('<a class="!text-muted-foreground font-medium"target=_blank rel="noopener noreferrer">'),Me=u("<span class=mx-2>·"),Ue=u('<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-accent text-accent-foreground">');const Be=()=>{const r=Ae(),[a,e]=U(""),[m,s]=U(""),O=ae(we.model(Ie)),D=h=>{h.preventDefault(),s("");let l=a();if(l.startsWith("http"))try{const b=new URL(l).pathname.match(/naddr[0-9a-zA-Z]+/);if(b)l=b[0];else{s("No naddr found in URL");return}}catch{s("Invalid URL");return}try{if(A.decode(l).type!=="naddr"){s("Invalid naddr: wrong type");return}r(`/a/${l}`)}catch{s("Invalid naddr format")}};return[t(ge,{get children(){return i.title}}),t(o,{name:"description",get content(){return i.description}}),t(o,{property:"og:title",get content(){return i.title}}),t(o,{property:"og:description",get content(){return i.description}}),t(o,{property:"og:type",get content(){return i.type}}),t(o,{property:"og:url",content:xe}),t(o,{property:"og:site_name",get content(){return i.siteName}}),t(o,{property:"og:image",content:"/texstr.png"}),t(o,{name:"twitter:card",get content(){return i.twitterCard}}),t(o,{name:"twitter:title",get content(){return i.title}}),t(o,{name:"twitter:description",get content(){return i.shortDescription}}),t(o,{name:"twitter:image",content:"/texstr.png"}),(()=>{var h=c(Le),l=h.firstChild,g=l.firstChild,b=g.nextSibling,C=l.nextSibling,j=C.firstChild,I=j.nextSibling,N=I.firstChild,B=N.firstChild,L=B.firstChild,_=L.firstChild,G=_.nextSibling,[H,W]=x(G.nextSibling),z=I.nextSibling,[K,Q]=x(z.nextSibling);return n(g,me),n(b,fe),N.addEventListener("submit",D),_.$$input=p=>e(p.currentTarget.value),n(L,(()=>{var p=P(()=>!!m());return()=>p()&&(()=>{var $=c(Te);return n($,m),$})()})(),H,W),n(C,t(de,{get children(){var p=c(Ne),$=p.firstChild,X=$.nextSibling,[Z,q]=x(X.nextSibling);return n(p,t(ie,{get each(){return O()},children:d=>(()=>{var T=c(Re),R=T.firstChild,y=R.nextSibling,J=y.firstChild,[E,Y]=x(J.nextSibling),ee=E.nextSibling,v=y.nextSibling,te=v.firstChild,[M,re]=x(te.nextSibling);M.nextSibling;var ne=v.nextSibling;return n(R,t(Ce,{get href(){return d.path},class:"text-foreground hover:text-muted-foreground no-underline hover:underline",get children(){return d.title||"Untitled"}})),n(y,(()=>{var S=P(()=>!!d.author);return()=>S()&&[(()=>{var f=c(Ee);return n(f,()=>d.author),V(()=>le(f,"href",d.authorUrl)),f})(),c(Me)]})(),E,Y),n(ee,()=>d.date),n(v,()=>d.summary,M,re),n(ne,()=>d.tags.map(S=>(()=>{var f=c(Ue);return n(f,S),f})())),T})()}),Z,q),p}}),K,Q),V(()=>pe(_,"value",a())),se(),h})()]};oe(["input"]);export{Be 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.