PageSourceSearch

https://www.faithtap.com/_next/static/immutable/chunks/1gv1co4f5y6sd.js

js faithtap.com collected 2026-10-02 10:44:00 UTC 108,436 bytes, 13 lines download raw bytes

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]="5239dbe6-dc57-826c-3662-7cb3e0d974d7")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,296546,932488,231258,e=>{"use strict";var t=e.i(655691),r=e.i(864706),n=e.i(318261),a=e.i(10229);let s=(0,a.withMiddleware)(n.default,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));var i=e.i(647163);let o="the-holy-bible",l="library:edition:the-holy-bible",d=null,c=!1,m=null,u=new Set;function h(){for(let e of u)e()}function x(e){return u.add(e),()=>{u.delete(e)}}function f(){return!c&&(c=!0,d=function(){try{return window.localStorage.getItem(l)}catch{return null}}(),m||(m=fetch("/api/v1/library/preferences").then(async e=>{if(!e.ok)return;let t=await e.json(),r=t.preferences?.editions?.[o];r&&r!==d&&(d=r,h())}).catch(()=>void 0))),d}function p(e){return(e.edition??e.bookSlug??"").startsWith("yv-")}function g(e){if(d!==e){d=e,h();try{window.localStorage.setItem(l,e)}catch{}fetch("/api/v1/library/preferences",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({editions:{[o]:e}})}).catch(()=>void 0)}}function b(){return null}e.s(["isPlatformEdition",0,p,"setBibleEdition",0,g,"useVerse",0,function(e,n){let a,o,l,d=(0,t.c)(9),c=void 0===n||n,m=(0,r.useSyncExternalStore)(x,f,b);if(d[0]!==m||d[1]!==c||d[2]!==e){let t=new URLSearchParams({ref:e});m&&t.set("edition",m),a=s,o=c?`/api/v1/library/verse?${t.toString()}`:null,d[0]=m,d[1]=c,d[2]=e,d[3]=a,d[4]=o}else a=d[3],o=d[4];let{data:u,error:h}=a(o,i.fetcher),p=u?.found?u:null;return d[5]!==u||d[6]!==h||d[7]!==p?(l={data:u,error:h,verse:p},d[5]=u,d[6]=h,d[7]=p,d[8]=l):l=d[8],l}],296546);var y=e.i(549111),j=e.i(176072),v=e.i(758277);let N=(0,v.default)("BookOpenText",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]]);var w=e.i(347174),k=e.i(473805),S=e.i(616285),S=S;let $=(0,v.default)("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var C=e.i(35836),_=e.i(727598),I=e.i(749466),z=e.i(354921),E=e.i(355470),T=e.i(909971);let A=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function R(e){let n,a,s,i,o=(0,t.c)(12),{text:l}=e,[d,c]=(0,r.useState)(!1),m=l.length>520;o[0]!==m||o[1]!==d||o[2]!==l?(n=d||!m?l:`${l.slice(0,520).trimEnd()}…`,o[0]=m,o[1]=d,o[2]=l,o[3]=n):n=o[3];let u=n;return o[4]!==u?(a=(0,y.jsx)("p",{className:"font-serif text-[13px] leading-relaxed",children:u}),o[4]=u,o[5]=a):a=o[5],o[6]!==m||o[7]!==d?(s=m&&(0,y.jsx)("button",{className:"mt-0.5 font-medium text-meta text-primary hover:underline",onClick:()=>c(L),type:"button",children:d?"Show less":"Read on"}),o[6]=m,o[7]=d,o[8]=s):s=o[8],o[9]!==a||o[10]!==s?(i=(0,y.jsxs)("div",{children:[a,s]}),o[9]=a,o[10]=s,o[11]=i):i=o[11],i}function L(e){return!e}function P(e){let r,a,s,i,o,l,d=(0,t.c)(16),{reference:c,onAsk:m}=e,{data:u}=(0,n.default)(`/api/v1/library/study/fathers?ref=${encodeURIComponent(c)}&limit=6`,A);if(!u?.found||!u.quotes||0===u.quotes.length)return null;let h=(u.total??u.quotes.length)-u.quotes.length;return d[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,y.jsx)("p",{className:"font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:"The Church Fathers"}),d[0]=r):r=d[0],d[1]!==u.quotes?(a=u.quotes.map(M),d[1]=u.quotes,d[2]=a):a=d[2],d[3]!==h?(s=h>0&&(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:["…and ",h," more."]}),d[3]=h,d[4]=s):s=d[4],d[5]!==u.quotes[0]||d[6]!==m||d[7]!==c?(i=m&&(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 self-start rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:()=>{var e,t,r;let n,a=u.quotes?.[0];a&&m((e=a.father,t=a.work,n=(r=a.text).length>900?`${r.slice(0,900).trimEnd()}…`:r,`${e}, in "${t}", says this on ${c}:
3
4"${n}"
5
6What is the point, and how does it change how I read the verse?`))},type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," What did the Fathers mean?"]}),d[5]=u.quotes[0],d[6]=m,d[7]=c,d[8]=i):i=d[8],d[9]!==u.attribution?(o=u.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground
6/80 leading-snug",children:u.attribution}),d[9]=u.attribution,d[10]=o):o=d[10],d[11]!==a||d[12]!==s||d[13]!==i||d[14]!==o?(l=(0,y.jsxs)("div",{className:"mt-3 flex flex-col gap-2 border-border/60 border-t pt-3",children:[r,a,s,i,o]}),d[11]=a,d[12]=s,d[13]=i,d[14]=o,d[15]=l):l=d[15],l}function M(e){return(0,y.jsxs)("div",{children:[(0,y.jsxs)("p",{className:"text-[11.5px]",children:[(0,y.jsx)("span",{className:"font-medium",children:e.father}),(0,y.jsxs)("span",{className:"text-muted-foreground",children:[" · ",e.work]})]}),(0,y.jsx)(R,{text:e.text}),e.clipped&&e.url&&(0,y.jsx)("a",{className:"text-[11px] text-primary hover:underline",href:e.url,rel:"noopener noreferrer",target:"_blank",children:"The whole passage at SermonIndex"})]},e.id)}let O=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function B(e){let n,a,s,i,o=(0,t.c)(12),{text:l}=e,[d,c]=(0,r.useState)(!1),m=l.length>900;o[0]!==m||o[1]!==d||o[2]!==l?(n=d||!m?l:`${l.slice(0,900).trimEnd()}…`,o[0]=m,o[1]=d,o[2]=l,o[3]=n):n=o[3];let u=n;return o[4]!==u?(a=(0,y.jsx)("p",{className:"whitespace-pre-line font-serif text-[13.5px] leading-relaxed",children:u}),o[4]=u,o[5]=a):a=o[5],o[6]!==m||o[7]!==d?(s=m&&(0,y.jsx)("button",{className:"mt-1 font-medium text-meta text-primary hover:underline",onClick:()=>c(J),type:"button",children:d?"Show less":"Read the whole note"}),o[6]=m,o[7]=d,o[8]=s):s=o[8],o[9]!==a||o[10]!==s?(i=(0,y.jsxs)("div",{children:[a,s]}),o[9]=a,o[10]=s,o[11]=i):i=o[11],i}function J(e){return!e}function W(e){let a,s,i,o,l,d,c,m,u,h,x,f,p,g=(0,t.c)(39),{reference:b,onAsk:j}=e,{data:v,error:N}=(0,n.default)(`/api/v1/library/study/commentary?ref=${encodeURIComponent(b)}`,O),[w,k]=(0,r.useState)(null),[S,$]=(0,r.useState)(!1);if(N||v&&!v.found){let e;return g[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No commentary on this verse yet."}),g[0]=e):e=g[0],e}if(!v?.commentaries){let e;return g[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading notes…"}),g[1]=e):e=g[1],e}let C=v.commentaries;if(g[2]!==v.commentaries||g[3]!==w){d=Symbol.for("react.early_return_sentinel");e:{let e=C.filter(D);if(!(s=e.find(e=>e.id===w)??e.find(H)??e[0])){let e;g[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No commentary on this verse yet."}),g[10]=e):e=g[10],d=e;break e}a=s.entry??s.introduction,l="flex flex-col gap-2",i="flex flex-wrap gap-1.5",o=e.map(e=>(0,y.jsx)("button",{"aria-pressed":e.id===s.id,className:`rounded-full border px-2.5 py-0.5 font-medium text-meta transition-colors ${e.id===s.id?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:text-foreground"}`,onClick:()=>{k(e.id),$(!1)},type:"button",children:e.short},e.id))}g[2]=v.commentaries,g[3]=w,g[4]=a,g[5]=s,g[6]=i,g[7]=o,g[8]=l,g[9]=d}else a=g[4],s=g[5],i=g[6],o=g[7],l=g[8],d=g[9];return d!==Symbol.for("react.early_return_sentinel")?d:(g[11]!==i||g[12]!==o?(c=(0,y.jsx)("div",{className:i,children:o}),g[11]=i,g[12]=o,g[13]=c):c=g[13],g[14]!==S||g[15]!==a||g[16]!==s.id||g[17]!==s.introduction||g[18]!==s.name?(m=a&&(0,y.jsxs)("div",{children:[(0,y.jsxs)("p",{className:"mb-1 font-semibold text-[11px] text-muted-foreground",children:[s.name," on"," ",S&&s.introduction?s.introduction.reference:a.reference]}),(0,y.jsx)(B,{text:S&&s.introduction?s.introduction.text:a.text},`${s.id}-${S?"intro":"entry"}`)]}),g[14]=S,g[15]=a,g[16]=s.id,g[17]=s.introduction,g[18]=s.name,g[19]=m):m=g[19],g[20]!==S||g[21]!==s.entry||g[22]!==s.introduction?(u=s.introduction&&s.entry&&(0,y.jsx)("button",{className:"rounded-full border border-border px-2.5 py-1 font-medium text-meta text-muted-foreground transition-colors hover:text-foreground",onClick:()=>$(U),type:"button",children:S?"Back to the verse":"On the whole chapter"}),g[20]=S,g[21]=s.entry,g[22]=s.introduction,g[23]=u):u=g[23],g[24]!==a||g[25]!==j||g[26]!==s.name?(h=j&&a&&(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:()=>{var e,t,r;let n;return j((e=a.reference,t=s.name,n=(r=a.text).length>1200?`${r.slice(0,1200).trimEnd()}…`:r,`${t} writes this on ${e}:
7
8"${n}"
9
10Put it in plain words for me — what is the point, and what does it mean for how I read the verse?`))},type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," Put it in plain words"]}),g[24]=a,g[25]=j,g[26]=s.name,g[27]=h):h=g[27],g[28]!==u||g[29]!==h?(x=(0,y.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[u,h]}),g[28]=u,g[29]=h,g[30]=x):x=g[30],g[31]!==v.attribution?(f=v.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground
10/80 leading-snug",children:v.attribution}),g[31]=v.attribution,g[32]=f):f=g[32],g[33]!==x||g[34]!==f||g[35]!==l||g[36]!==c||g[37]!==m?(p=(0,y.jsxs)("div",{className:l,children:[c,m,x,f]}),g[33]=x,g[34]=f,g[35]=l,g[36]=c,g[37]=m,g[38]=p):p=g[38],p)}function U(e){return!e}function H(e){return e.entry}function D(e){return e.entry||e.introduction}var G=e.i(689025);let q=/[\p{L}\p{N}'’]+|[^\p{L}\p{N}'’\s]+|\s+/gu;function F(e){return e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")}async function V(e,t){let r=new URLSearchParams({ref:e,edition:t}),n=await fetch(`/api/v1/library/verse?${r.toString()}`);if(!n.ok)return null;let a=await n.json();return a.found?a.text??null:null}function Z(e){let n,a,s,i,o,l,d,c,m,u,h,x,f,p,g,b,j=(0,t.c)(45),{reference:v,verse:N}=e,[w,k]=(0,r.useState)(null),[S,$]=(0,r.useState)(!1);if(j[0]!==v||j[1]!==N.edition||j[2]!==N.editions||j[3]!==N.text){let e;j[10]!==N.edition?(e=(e,t)=>e.slug===N.edition?-1:+(t.slug===N.edition),j[10]=N.edition,j[11]=e):e=j[11],n=[...N.editions??[]].sort(e),o=r.useEffect,l=()=>{let e=!1;return Promise.all(n.map(async e=>({edition:e,text:e.slug===N.edition?N.text??null:await V(v,e.slug).catch(ee)}))).then(t=>{e||k(t)}),()=>{e=!0}},a=v,s=N.edition,i=n.map(X).join(","),j[0]=v,j[1]=N.edition,j[2]=N.editions,j[3]=N.text,j[4]=n,j[5]=a,j[6]=s,j[7]=i,j[8]=o,j[9]=l}else n=j[4],a=j[5],s=j[6],i=j[7],o=j[8],l=j[9];j[12]!==a||j[13]!==s||j[14]!==i?(d=[a,s,i],j[12]=a,j[13]=s,j[14]=i,j[15]=d):d=j[15],o(l,d);let C=N.text??"";j[16]!==n||j[17]!==w?(c=w??n.map(Q),j[16]=n,j[17]=w,j[18]=c):c=j[18];let _=c;j[19]!==n.length?(m=(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:[n.length," translations · the one you are reading first"]}),j[19]=n.length,j[20]=m):m=j[20];let I=`ml-auto rounded-full border px-2.5 py-0.5 font-medium text-meta transition-colors ${S?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:text-foreground"}`;if(j[21]===Symbol.for("react.memo_cache_sentinel")?(u=()=>$(Y),j[21]=u):u=j[21],j[22]!==S||j[23]!==I?(h=(0,y.jsx)("button",{"aria-pressed":S,className:I,onClick:u,type:"button",children:"Highlight what differs"}),j[22]=S,j[23]=I,j[24]=h):h=j[24],j[25]!==h||j[26]!==m?(x=(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[m,h]}),j[25]=h,j[26]=m,j[27]=x):x=j[27],j[28]!==C||j[29]!==S||j[30]!==w||j[31]!==_||j[32]!==N.edition){let e;j[34]!==C||j[35]!==S||j[36]!==w||j[37]!==N.edition?(e=e=>{let{edition:t,text:r}=e;return(0,y.jsxs)("div",{className:"flex gap-2.5 border-border/60 border-t px-2.5 py-2 first:border-t-0",children:[(0,y.jsxs)("span",{className:"flex min-w-12 shrink-0 flex-col",children:[(0,y.jsx)("span",{className:"whitespace-nowrap font-semibold text-[11px] tabular-nums",children:(0,G.editionAbbreviation)(t.label,t.abbreviation)}),(0,y.jsx)("span",{className:"text-[9.5px] text-muted-foreground leading-tight",children:t.label})]}),(0,y.jsx)("span",{className:"min-w-0 font-serif text-[13.5px] leading-snug",dir:r&&"hebrew"===(0,G.scriptOf)(r)?"rtl":void 0,lang:r?(0,G.scriptLang)(r)??void 0:void 0,children:r?S&&t.slug!==N.edition&&"latin"===(0,G.scriptOf)(r)&&"latin"===(0,G.scriptOf)(C)?(function(e,t){let r=(e.match(q)??[]).map(F).filter(Boolean),n=t.match(q)??[],a=n.map(F),s=r.length,i=a.length,o=Array.from({length:s+1},()=>Array(i+1).fill(0));for(let e=s-1;e>=0;e-=1)for(let t=i-1;t>=0;t-=1)o[e][t]=r[e]===a[t]?o[e+1][t+1]+1:Math.max(o[e+1][t],o[e][t+1]);let l=new Set,d=0,c=0;for(;d<s&&c<i;){if(""===a[c]){c+=1;continue}r[d]===a[c]?(l.add(c),d+=1,c+=1):o[d+1][c]>=o[d][c+1]?d+=1:c+=1}return n.map((e,t)=>({text:e,changed:""!==a[t]&&!l.has(t)}))})(C,r).map(K):r:(0,y.jsx)("span",{className:"text-muted-foreground not-italic",children:w?"Not in this edition.":"Loading…"})})]},t.slug)},j[34]=C,j[35]=S,j[36]=w,j[37]=N.edition,j[38]=e):e=j[38],f=_.map(e),j[28]=C,j[29]=S,j[30]=w,j[31]=_,j[32]=N.edition,j[33]=f}else f=j[33];return j[39]!==f?(p=(0,y.jsx)("div",{className:"overflow-hidden rounded-lg border border-border/60",children:f}),j[39]=f,j[40]=p):p=j[40],j[41]===Symbol.for("react.memo_cache_sentinel")?(g=(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground
10/80 leading-snug",children:"Each edition’s copyright line sits in the translation menu on the verse."}),j[41]=g):g=j[41],j[42]!==x||j[43]!==p?(b=(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[x,p,g]}),j[42]=x,j[43]=p,j[44]=b):b=j[44],b}function K(e,t){return e.changed?(0,y.jsx)("mark",{className:"rounded-sm bg-primary/15 px-px text-primary",children:e.text},t):(0,y.jsx)("span",{children:e.text},t)}function Y(e){return!e}function Q(e){return{edition:e,text:null}}function X(e){return e.slug}function ee(){return null}var et=e.i(617533);let er=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function en(e){let r,a,s,i,o,l,d=(0,t.c)(19),{reference:c,onAsk:m}=e,{data:u,error:h}=(0,n.default)(`/api/v1/library/study/cross-references?ref=${encodeURIComponent(c)}&limit=10`,er);if(h||u&&!u.found){let e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No cross-references for this verse yet."}),d[0]=e):e=d[0],e}if(!u?.references){let e;return d[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading connections…"}),d[1]=e):e=d[1],e}let x=u.references,f=(u.total??x.length)-x.length;return d[2]!==x?(r=x.map(es),d[2]=x,d[3]=r):r=d[3],d[4]!==r?(a=(0,y.jsx)("ul",{className:"flex flex-col gap-1.5",children:r}),d[4]=r,d[5]=a):a=d[5],d[6]!==f?(s=f>0&&(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:["…and ",f," more in the reader."]}),d[6]=f,d[7]=s):s=d[7],d[8]!==m||d[9]!==c||d[10]!==x?(i=m&&x.length>0&&(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 self-start rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:()=>{var e;return m((e=x.slice(0,5).map(ea),`How do these passages connect to ${c}: ${e.join("; ")}? Take each in turn — what it says and how it relates.`))},type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," How do these connect?"]}),d[8]=m,d[9]=c,d[10]=x,d[11]=i):i=d[11],d[12]!==u.attribution?(o=u.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground/80 leading-snug",children:u.attribution}),d[12]=u.attribution,d[13]=o):o=d[13],d[14]!==a||d[15]!==s||d[16]!==i||d[17]!==o?(l=(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[a,s,i,o]}),d[14]=a,d[15]=s,d[16]=i,d[17]=o,d[18]=l):l=d[18],l}function ea(e){return e.reference}function es(e){return(0,y.jsxs)("li",{className:"text-[12.5px] leading-snug",children:[(0,y.jsx)(T.default,{className:"font-medium text-primary hover:underline",href:(0,et.kjvReaderHref)(e.reference),children:e.reference})," ",e.text&&(0,y.jsxs)("span",{className:"font-serif text-muted-foreground italic",children:[e.text.length>140?`${e.text.slice(0,140).trimEnd()}…`:e.text,e.range&&!e.text.endsWith("…")?" …":""]})]},e.reference)}let ei={EAS:"Easton",SMI:"Smith",NAV:"Nave",TOR:"Torrey"},eo=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function el(e){let n,a,s,i,o=(0,t.c)(12),{text:l}=e,[d,c]=(0,r.useState)(!1),m=l.length>700;o[0]!==m||o[1]!==d||o[2]!==l?(n=d||!m?l:`${l.slice(0,700).trimEnd()}…`,o[0]=m,o[1]=d,o[2]=l,o[3]=n):n=o[3];let u=n;return o[4]!==u?(a=(0,y.jsx)("p",{className:"font-serif text-[13.5px] leading-relaxed",children:u}),o[4]=u,o[5]=a):a=o[5],o[6]!==m||o[7]!==d?(s=m&&(0,y.jsx)("button",{className:"mt-1 font-medium text-meta text-primary hover:underline",onClick:()=>c(ed),type:"button",children:d?"Show less":"Read the whole entry"}),o[6]=m,o[7]=d,o[8]=s):s=o[8],o[9]!==a||o[10]!==s?(i=(0,y.jsxs)("div",{children:[a,s]}),o[9]=a,o[10]=s,o[11]=i):i=o[11],i}function ed(e){return!e}function ec(e){let a,s,i,o,l,d=(0,t.c)(26),{kind:c,reference:m,onAsk:u}=e,{data:h,error:x}=(0,n.default)(`/api/v1/library/study/references?ref=${encodeURIComponent(m)}&kind=${c}`,eo),[f,p]=(0,r.useState)(null),g="dictionary"===c?"dictionary entries":"topics";if(x||h&&!h.found){let e;return d[0]!==g?(e=(0,y.jsxs)("p",{className:"text-meta text-muted-foreground",children:["No ",g," cite this verse yet."]}),d[0]=g,d[1]=e):e=d[1],e}if(!h){let e;return d[2]!==g?(e=(0,y.jsxs)("p",{className:"text-meta text-muted-foreground",children:["Loading ",g,"…"]}),d[2]=g,d[3]=e):e=d[3],e}
10d[4]!==h.entries||d[5]!==h.topics||d[6]!==c?(a=("dictionary"===c?h.entries:h.topics)??[],d[4]=h.entries,d[5]=h.topics,d[6]=c,d[7]=a):a=d[7];let b=a;if(d[8]!==b||d[9]!==c||d[10]!==u||d[11]!==f||d[12]!==m){let e;d[14]!==c||d[15]!==u||d[16]!==f||d[17]!==m?(e=e=>{let t=e.id===f;return(0,y.jsxs)("li",{children:[(0,y.jsxs)("button",{"aria-pressed":t,className:`w-full rounded-md px-2 py-1 text-left transition-colors ${t?"bg-primary/10":"hover:bg-muted"}`,onClick:()=>p(t?null:e.id),type:"button",children:[(0,y.jsx)("span",{className:"font-medium text-[13px]",children:e.name}),e.label&&(0,y.jsxs)("span",{className:"ml-1.5 text-[11px] text-muted-foreground",children:["· ",e.label]}),(0,y.jsx)("span",{className:"ml-1.5 text-[10px] text-muted-foreground uppercase tracking-wider",children:e.sources.map(em).join(" · ")}),"dictionary"===c&&!t&&e.summary&&(0,y.jsx)("span",{className:"mt-0.5 block font-serif text-[12px] text-muted-foreground leading-snug",children:e.summary})]}),t&&(0,y.jsx)(eu,{id:e.id,onAsk:u,onPick:p,reference:m})]},e.id)},d[14]=c,d[15]=u,d[16]=f,d[17]=m,d[18]=e):e=d[18],s=b.map(e),d[8]=b,d[9]=c,d[10]=u,d[11]=f,d[12]=m,d[13]=s}else s=d[13];return d[19]!==s?(i=(0,y.jsx)("ul",{className:"flex flex-col gap-1",children:s}),d[19]=s,d[20]=i):i=d[20],d[21]!==h.attribution?(o=h.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground/80 leading-snug",children:h.attribution}),d[21]=h.attribution,d[22]=o):o=d[22],d[23]!==i||d[24]!==o?(l=(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[i,o]}),d[23]=i,d[24]=o,d[25]=l):l=d[25],l}function em(e){return ei[e]??e}function eu(e){let r,a,s,i,o,l=(0,t.c)(20),{id:d,reference:c,onPick:m,onAsk:u}=e,{data:h}=(0,n.default)(`/api/v1/library/study/reference?id=${encodeURIComponent(d)}`,eo),x=h?.reference;if(!x){let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"px-2 py-1 text-meta text-muted-foreground",children:"Loading…"}),l[0]=e):e=l[0],e}if(l[1]!==x.definitions){let e;l[3]!==x.definitions.length?(e=e=>(0,y.jsxs)("div",{children:[x.definitions.length>1&&(0,y.jsx)("p",{className:"mb-0.5 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:ei[e.source]??e.source}),(0,y.jsx)(el,{text:e.text})]},`${e.source}-${e.text.slice(0,24)}`),l[3]=x.definitions.length,l[4]=e):e=l[4],r=x.definitions.map(e),l[1]=x.definitions,l[2]=r}else r=l[2];return l[5]!==x.aspects?(a=x.aspects.map(eh),l[5]=x.aspects,l[6]=a):a=l[6],l[7]!==x.seeAlso||l[8]!==m?(s=x.seeAlso.length>0&&(0,y.jsxs)("p",{className:"text-[12px]",children:[(0,y.jsx)("span",{className:"text-muted-foreground",children:"See also "}),x.seeAlso.map((e,t)=>(0,y.jsxs)("span",{children:[t>0&&", ",e.id?(0,y.jsx)("button",{className:"text-primary hover:underline",onClick:()=>m(e.id),type:"button",children:e.name}):e.name]},e.name))]}),l[7]=x.seeAlso,l[8]=m,l[9]=s):s=l[9],l[10]!==x.kind||l[11]!==x.name||l[12]!==u||l[13]!==c?(i=u&&(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 self-start rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:()=>{var e,t;return u((e=x.kind,t=x.name,"dictionary"===e?`Explain "${t}" as the Bible uses it — what the word or name means, where it comes from, and what it adds to ${c}.`:`What does the Bible teach about ${t}? Start from ${c}, then draw the main passages together.`))},type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," ","dictionary"===x.kind?`Explain "${x.name}"`:`What does the Bible teach about ${x.name}?`]}),l[10]=x.kind,l[11]=x.name,l[12]=u,l[13]=c,l[14]=i):i=l[14],l[15]!==r||l[16]!==a||l[17]!==s||l[18]!==i?(o=(0,y.jsxs)("div",{className:"mt-1 flex flex-col gap-2 rounded-lg border border-border/60 bg-muted/30 px-3 py-2.5",children:[r,a,s,i]}),l[15]=r,l[16]=a,l[17]=s,l[18]=i,l[19]=o):o=l[19],o}function eh(e){return(0,y.jsxs)("div",{children:[(0,y.jsx)("p",{className:"font-medium text-[12.5px]",children:e.label}),(0,y.jsxs)("p",{className:"text-[12px] leading-relaxed",children:[e.references.slice(0,12).map(ex),e.references.length>12&&(0,y.jsxs)("span",{className:"text-muted-foreground",children:[" ","…and ",e.references.length-12," more"]})]})]},`${e.label}-${e.source}`)}function ex(e,t){return(0,y.jsxs)("span",{children:[t>0&&"; ",(0,y.jsx)(T.default,{className:"text-primary hover:underline",href:(0,et.kjvReaderHref)(e),children:e})]},e)}let ef=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function ep(e){let r,n=(0,t.c)(2),{children:a}=e;return n[0]!==a?(r=(0,y.jsx)("p",{className:"mt-2.5 mb-1 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:a}),n[0]=a,n[1]=r):r=n[1],r}function eg(e){let a,s,i,o,l,d,c,m=(0,t.c)(63),{reference:u}=e;m[0]===Symbol.for("react.memo_cache_sentinel")?(a={refreshInterval:eN},m[0]=a):a=m[0];let{data:h,error:x,mutate:f}=(0,n.default)(`/api/v1/library/study/guide?ref=${encodeURIComponent(u)}`,ef,a),[p,g]=(0,r.useState)("idle");m[1]!==f||m[2]!==u?(s=async()=>{g("sending");try{let e=await fetch("/api/v1/library/study/guide",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:u})});if(401===e.status)return void g("signed-out");if(429===e.status)return void g("limit");if(!e.ok)return void g("error");g("idle"),await f()}catch{g("error")}},m[1]=f,m[2]=u,m[3]=s):s=m[3];let b=s;if(x){let e;return m[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"The study guide isn’t available just now."}),m[4]=e):e=m[4],e}if(!h){let e;return m[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading…"}
10),m[5]=e):e=m[5],e}if("ready"===h.status&&h.guide){let e,t,r,n,a,s,i,o,l,d,c,u,x,f,p,g,b,j,v,N,w=h.guide;return m[6]!==w.title?(e=(0,y.jsx)("p",{className:"font-semibold text-[14px] leading-snug",children:w.title}),m[6]=w.title,m[7]=e):e=m[7],m[8]!==w.bigIdea?(t=(0,y.jsx)("p",{className:"mt-1 font-serif text-[13.5px] leading-relaxed",children:w.bigIdea}),m[8]=w.bigIdea,m[9]=t):t=m[9],m[10]===Symbol.for("react.memo_cache_sentinel")?(r=(0,y.jsx)(ep,{children:"Context"}),m[10]=r):r=m[10],m[11]!==w.context?(n=(0,y.jsx)("p",{className:"text-[13px] leading-relaxed",children:w.context}),m[11]=w.context,m[12]=n):n=m[12],m[13]===Symbol.for("react.memo_cache_sentinel")?(a=(0,y.jsx)(ep,{children:"Key words"}),m[13]=a):a=m[13],m[14]!==w.keyWords?(s=w.keyWords.map(ev),m[14]=w.keyWords,m[15]=s):s=m[15],m[16]!==s?(i=(0,y.jsx)("ul",{className:"flex flex-col gap-1",children:s}),m[16]=s,m[17]=i):i=m[17],m[18]===Symbol.for("react.memo_cache_sentinel")?(o=(0,y.jsx)(ep,{children:"Observations"}),m[18]=o):o=m[18],m[19]!==w.observations?(l=w.observations.map(ej),m[19]=w.observations,m[20]=l):l=m[20],m[21]!==l?(d=(0,y.jsx)("ul",{className:"flex list-disc flex-col gap-1 pl-4",children:l}),m[21]=l,m[22]=d):d=m[22],m[23]===Symbol.for("react.memo_cache_sentinel")?(c=(0,y.jsx)(ep,{children:"Connections"}),m[23]=c):c=m[23],m[24]!==w.connections?(u=w.connections.map(ey),m[24]=w.connections,m[25]=u):u=m[25],m[26]!==u?(x=(0,y.jsx)("ul",{className:"flex flex-col gap-1",children:u}),m[26]=u,m[27]=x):x=m[27],m[28]===Symbol.for("react.memo_cache_sentinel")?(f=(0,y.jsx)(ep,{children:"Questions"}),m[28]=f):f=m[28],m[29]!==w.questions?(p=w.questions.map(eb),m[29]=w.questions,m[30]=p):p=m[30],m[31]!==p?(g=(0,y.jsx)("ol",{className:"flex list-decimal flex-col gap-1 pl-4",children:p}),m[31]=p,m[32]=g):g=m[32],m[33]===Symbol.for("react.memo_cache_sentinel")?(b=(0,y.jsx)(ep,{children:"Prayer"}),m[33]=b):b=m[33],m[34]!==w.prayer?(j=(0,y.jsx)("p",{className:"font-serif text-[13.5px] italic leading-relaxed",children:w.prayer}),m[34]=w.prayer,m[35]=j):j=m[35],m[36]!==h.attribution?(v=h.attribution&&(0,y.jsx)("p",{className:"mt-2.5 text-[10px] text-muted-foreground/80 leading-snug",children:h.attribution}),m[36]=h.attribution,m[37]=v):v=m[37],m[38]!==d||m[39]!==x||m[40]!==g||m[41]!==j||m[42]!==v||m[43]!==e||m[44]!==t||m[45]!==n||m[46]!==i?(N=(0,y.jsxs)("div",{className:"flex flex-col",children:[e,t,r,n,a,i,o,d,c,x,f,g,b,j,v]}),m[38]=d,m[39]=x,m[40]=g,m[41]=j,m[42]=v,m[43]=e,m[44]=t,m[45]=n,m[46]=i,m[47]=N):N=m[47],N}if("writing"===h.status){let e;return m[48]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Genius is writing the guide from the passage, its words, cross-references and the commentaries. The editorial desk reads it before it shows — a minute or two."}),m[48]=e):e=m[48],e}let j="failed"===h.status?"The desk didn’t clear the last draft. Ask again and Genius writes it fresh with the desk’s notes.":"No guide on this passage yet. Genius writes it from the passage, its words, cross-references and the classic commentaries, and the editorial desk reads it before it shows.";return m[49]!==j?(i=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:j}),m[49]=j,m[50]=i):i=m[50],m[51]!==b||m[52]!==p?(o="signed-out"===p?(0,y.jsxs)("p",{className:"text-meta text-muted-foreground",children:[(0,y.jsx)(T.default,{className:"text-primary hover:underline",href:"/login",children:"Sign in"})," ","to ask for a guide."]}):(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 self-start rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10 disabled:opacity-50",disabled:"sending"===p,onClick:b,type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," ","sending"===p?"Asking…":"Write a study guide"]}),m[51]=b,m[52]=p,m[53]=o):o=m[53],m[54]!==p?(l="limit"===p&&(0,y.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"That’s the hour’s guides for now — try again a little later."}),m[54]=p,m[55]=l):l=m[55],m[56]!==p?(d="error"===p&&(0,y.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Couldn’t ask just now."}),m[56]=p,m[57]=d):d=m[57],m[58]!==i||m[59]!==o||m[60]!==l||m[61]!==d?(c=(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[i,o,l,d]}),m[58]=i,m[59]=o,m[60]=l,m[61]=d,m[62]=c):c=m[62],c}function eb(e){return(0,y.jsx)("li",{className:"text-[13px] leading-snug",children:e},e)}function ey(e){return(0,y.jsxs)("li",{className:"text-[13px] leading-snug",children:[(0,y.jsx)("span",{className:"font-medium text-primary",children:e.reference})," ","— ",e.why]},e.reference)}function ej(e){return(0,y.jsx)("li",{className:"text-[13px] leading-snug",children:e},e)}function ev(e){return(0,y.jsxs)("li",{className:"text-[13px] leading-snug",children:[(0,y.jsx)("span",{className:"font-medium",children:e.word})," — ",e.note]},e.word)}function eN(e){return 4e3*(e?.status==="writing")}let ew=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function ek(e){let a,s,i,o,l,d,c,m,u=(0,t.c)(42),{reference:h,signedIn:x}=e;u[0]===Symbol.for("react.memo_cache_sentinel")?(a={refreshInterval:eC},u[0]=a):a=u[0];let{data:f,error:p,mutate:g}=(0,n.default)(`/api/v1/library/study/translation?ref=${encodeURIComponent(h)}`,ew,a),[b,j]=(0,r.useState)("no");u[1]!==g||u[2]!==h?(s=async()=>{j("sent");try{let e=await fetch("/api/v1/library/study/translation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:h})});if(401===e.status)return void j("signed-out");if(429===e.status)return void j("limit");if(!e.ok)return void j("error");await g()}catch{j("error")}},u[1]=g,u[2]=h,u[3]=s):s=u[3];let v=s,N=f?.found===!1;u[4]!==v||u[5]!==b||u[6]!==N||u[7]!==x?(i=()=>{N&&x&&"no"===b&&v()},u[4]=v,u[5]=b,u[6]=N,u[7]=x,u[8]=i):i=u[8],u[9]!==N||u[10]!==h||u[11]!==x?(o=[N,x,h],u[9]=N,u[10]=h,u[11]=x,u[12]=o):o=u[12],(0,r.useEffect)(i,o);let w=e$;if(p){let e;return u[13]===Symbol.for("react.memo_cache_sentinel")?(e=w((0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"The note isn’t available just now."})),u[13]=e):e=u[13],e}if(!f){let e;return u[14]===Symbol.for("react.memo_cache_sentinel")?(e=w((0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading…"})),u[14]=e):e=u[14],e}if("ready"===f.status&&f.note){let e,t,r,n,a,s,i=f.note;return u[15]!==i.why?(e=(0,y.jsx)("p",{className:"text-[13px] leading-relaxed",children:i.why}
10),u[15]=i.why,u[16]=e):e=u[16],u[17]!==i.words?(t=i.words.map(eS),u[17]=i.words,u[18]=t):t=u[18],u[19]!==t?(r=(0,y.jsx)("ul",{className:"flex flex-col gap-1.5",children:t}),u[19]=t,u[20]=r):r=u[20],u[21]!==i.difference?(n=i.difference&&(0,y.jsxs)("p",{className:"text-[12.5px] leading-snug",children:[(0,y.jsx)("span",{className:"font-medium",children:"Where translations differ:"})," ",i.difference]}),u[21]=i.difference,u[22]=n):n=u[22],u[23]!==f.attribution?(a=f.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground/80 leading-snug",children:f.attribution}),u[23]=f.attribution,u[24]=a):a=u[24],u[25]!==e||u[26]!==r||u[27]!==n||u[28]!==a?(s=w((0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[e,r,n,a]})),u[25]=e,u[26]=r,u[27]=n,u[28]=a,u[29]=s):s=u[29],s}if("writing"===f.status||"sent"===b){let e;return u[30]===Symbol.for("react.memo_cache_sentinel")?(e=w((0,y.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-meta text-muted-foreground",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3 text-primary"})," Genius is writing the note; the desk reads it before it shows…"]})),u[30]=e):e=u[30],e}if("limit"===b){let e;return u[31]===Symbol.for("react.memo_cache_sentinel")?(e=w((0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"You have asked for a few notes this hour — try again later."})),u[31]=e):e=u[31],e}if(!x||"signed-out"===b){let e;return u[32]===Symbol.for("react.memo_cache_sentinel")?(e=w((0,y.jsxs)("p",{className:"text-meta text-muted-foreground",children:[(0,y.jsx)(T.default,{className:"font-medium text-primary hover:underline",href:"/login",children:"Sign in"})," ","and Genius writes the note for this verse."]})),u[32]=e):e=u[32],e}return u[33]!==f.status||u[34]!==f.verdict?(l="failed"===f.status&&(0,y.jsxs)("p",{className:"text-meta text-muted-foreground",children:["The last write didn’t clear the desk",f.verdict?` (${f.verdict})`:"","."]}),u[33]=f.status,u[34]=f.verdict,u[35]=l):l=u[35],u[36]===Symbol.for("react.memo_cache_sentinel")?(d=(0,y.jsx)(E.SparklesIcon,{className:"size-3"}),u[36]=d):d=u[36],u[37]!==v?(c=(0,y.jsxs)("button",{className:"inline-flex w-fit items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:v,type:"button",children:[d," Ask Genius to write it"]}),u[37]=v,u[38]=c):c=u[38],u[39]!==l||u[40]!==c?(m=w((0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[l,c]})),u[39]=l,u[40]=c,u[41]=m):m=u[41],m}function eS(e){return(0,y.jsxs)("li",{className:"text-[12.5px] leading-snug",children:[(0,y.jsx)("span",{className:"font-serif text-[15px]",children:e.original})," ",(0,y.jsx)("span",{className:"text-muted-foreground italic",children:e.transliteration})," ",(0,y.jsxs)("span",{className:"text-muted-foreground",children:["— literally “",e.literal,"”, rendered"]})," ",(0,y.jsxs)("span",{className:"font-medium",children:["“",e.rendered,"”"]}),(0,y.jsxs)("span",{className:"text-muted-foreground",children:[". ",e.why]})]},e.original)}function e$(e){return(0,y.jsxs)("div",{className:"rounded-lg border border-border/60 border-l-[3px] border-l-primary/60 bg-muted/20 px-3 py-2.5",children:[(0,y.jsx)("p",{className:"mb-1.5 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:"Why it reads this way · from the original to the meaning"}),e]})}function eC(e){return 4e3*(e?.status==="writing")}var e_=e.i(192556),eI=e.i(164851),ez=e.i(130443),eE=e.i(524513),eT=e.i(397728),eA=e.i(167881),eR=e.i(630374),eL=e.i(124069);let eP=[{id:"paper",label:"Paper"},{id:"night",label:"Night"},{id:"dawn",label:"Dawn"}],eM=[{id:"square",label:"Square"},{id:"story",label:"Story"}];function eO(e){let n,a,s,o,l,d,c,m,u,h,x,f=(0,t.c)(27),{reference:p,edition:g,text:b,version:j,className:v,label:N}=e,w=void 0===N?"Image":N,[k,S]=(0,r.useState)(!1);return f[0]!==v?(n=(0,i.cn)("inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",v),f[0]=v,f[1]=n):n=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>S(!0),f[2]=a):a=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,y.jsx)(eI.ImageIcon,{className:"size-3"}),f[3]=s):s=f[3],f[4]!==w||f[5]!==n?(o=(0,y.jsxs)("button",{className:n,onClick:a,type:"button",children:[s," ",w]}),f[4]=w,f[5]=n,f[6]=o):o=f[6],f[7]!==p?(l=(0,y.jsxs)(eR.DialogTitle,{children:["Share ",p," as an image"]}),f[7]=p,f[8]=l):l=f[8],f[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,y.jsx)(eR.DialogDescription,{children:"The verse as a card, in the version you are reading."}),f[9]=d):d=f[9],f[10]!==l?(c=(0,y.jsxs)(eR.DialogHeader,{children:[l,d]}),f[10]=l,f[11]=c):c=f[11],f[12]!==g||f[13]!==k||f[14]!==p||f[15]!==b||f[16]!==j?(m=k&&(0,y.jsx)(eB,{edition:g,reference:p,text:b,version:j}),f[12]=g,f[13]=k,f[14]=p,f[15]=b,f[16]=j,f[17]=m):m=f[17],f[18]!==c||f[19]!==m?(u=(0,y.jsxs)(eR.DialogContent,{className:"max-w-md",children:[c,m]}),f[18]=c,f[19]=m,f[20]=u):u=f[20],f[21]!==k||f[22]!==u?(h=(0,y.jsx)(eR.Dialog,{onOpenChange:S,open:k,children:u}),f[21]=k,f[22]=u,f[23]=h):h=f[23],f[24]!==h||f[25]!==o?(x=(0,y.jsxs)(y.Fragment,{children:[o,h]}),f[24]=h,f[25]=o,f[26]=x):x=f[26],x}function eB({reference:e,edition:t,text:n,version:a}){let s,o,[l,d]=(0,r.useState)("paper"),[c,m]=(0,r.useState)("square"),[u,h]=(0,r.useState)(null),[x,f]=(0,r.useState)(!1),p=(s=new URLSearchParams({ref:e,style:l,size:c}),t&&s.set("edition",t),`/api/v1/library/verse-card?${s.toString()}`),g=`${e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}-${l}.png`,b=async()=>{f(!0),h(null);try{let t=await fetch(p);if(!t.ok)throw Error(String(t.status));let r=await (0,eL.shareCardBlob)(await t.blob(),{filename:g,title:e});h("shared"===r?"Shared":"copied"===r?"Copied the image":"downloaded"===r?"Downloaded":null)}catch{h("Couldn't render the card — try again")}finally{f(!1)}},j=async()=>{try{await navigator.clipboard.writeText(new URL(p,window.location.origin).toString()),h("Link copied")}catch{h("Couldn't copy the link")}};return(0,y.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[eP.map(e=>(0,y.jsx)(eJ,{active:l===e.id,label:e.label,onClick:()=>d(e.id)},e.id)),(0,y.jsx)("span",{className:"mx-1 h-4 w-px bg-border"}),eM.map(e=>(0,y.jsx)(eJ,{active:c===e.id,label:e.label,onClick:()=>m(e.id)},e.id))]}),(0,y.jsx)("div",{className:(0,i.cn)("mx-auto w-full overflow-hidden rounded-xl border bg-muted/30","story"===c?"max-w-[240px]":"max-w-[360px]"),children:(0,y.jsx)("img",{alt:`${e} as a shareable card`,className:"block h-auto w-full",height:"story"===c?1920:1080,src:p,width:1080},p)}),(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,y.jsxs)(eA.Button,{disabled:x,onClick:b,size:"sm",children:[(0,y.jsx)(eT.Share2Icon,{"aria-hidden":!0,
10className:"size-4"}),"Share"]}),(0,y.jsx)(eA.Button,{asChild:!0,size:"sm",variant:"outline",children:(0,y.jsxs)("a",{download:g,href:p,children:[(0,y.jsx)(e_.DownloadIcon,{"aria-hidden":!0,className:"size-4"}),"Download"]})}),(0,y.jsxs)(eA.Button,{onClick:j,size:"sm",variant:"ghost",children:[(0,y.jsx)(ez.LinkIcon,{"aria-hidden":!0,className:"size-4"}),"Copy link"]}),n&&(0,y.jsx)(eA.Button,{asChild:!0,size:"sm",variant:"ghost",children:(0,y.jsxs)(T.default,{href:(o=new URLSearchParams({view:"design",template:"story"===c?`scr-${l}-story`:`scr-${l}`,text:n,caption:a?`${e} \xb7 ${a}`:e}),`/studio?${o.toString()}`),children:[(0,y.jsx)(eE.PaletteIcon,{"aria-hidden":!0,className:"size-4"}),"Open in Studio"]})}),u&&(0,y.jsx)("span",{className:"text-meta text-muted-foreground",children:u})]})]})}function eJ(e){let r,n,a=(0,t.c)(7),{active:s,label:o,onClick:l}=e,d=s?"border-foreground bg-foreground text-background":"border-border text-muted-foreground hover:text-foreground";return a[0]!==d?(r=(0,i.cn)("rounded-full border px-2.5 py-1 font-medium text-meta transition-colors",d),a[0]=d,a[1]=r):r=a[1],a[2]!==s||a[3]!==o||a[4]!==l||a[5]!==r?(n=(0,y.jsx)("button",{"aria-pressed":s,className:r,onClick:l,type:"button",children:o}),a[2]=s,a[3]=o,a[4]=l,a[5]=r,a[6]=n):n=a[6],n}function eW(e){let r,n,a,s,i,o,l,d,c,m=(0,t.c)(31),{lat:u,lon:h,name:x}=e;m[0]!==u||m[1]!==h?(r=function(e,t){let{x:r,y:n}=function(e,t,r=6){let n=2**r,a=e*Math.PI/180;return{x:(t+180)/360*n,y:(1-Math.log(Math.tan(a)+1/Math.cos(a))/Math.PI)/2*n}}(e,t),a=Math.floor(r)-1,s=Math.round(n)-1;return{left:a,top:s,markerX:r-a,markerY:n-s}}(u,h),m[0]=u,m[1]=h,m[2]=r):r=m[2];let{left:f,top:p,markerX:g,markerY:b}=r;if(m[3]!==f||m[4]!==x||m[5]!==p){let e,t;m[11]!==f||m[12]!==p?(e=(e,t)=>Array.from({length:3},(e,r)=>({x:f+r,y:p+t})),m[11]=f,m[12]=p,m[13]=e):e=m[13];let r=Array.from({length:2},e).flat();n=`Map of ${x}`,a="relative w-full overflow-hidden rounded-lg border border-border/60 bg-muted",s="img",m[14]===Symbol.for("react.memo_cache_sentinel")?(i={aspectRatio:"3 / 2"},m[14]=i):i=m[14],m[15]!==f||m[16]!==p?(t=e=>(0,y.jsx)("img",{alt:"",className:"absolute",src:`https://tile.openstreetmap.org/6/${e.x}/${e.y}.png`,style:{height:"50%",left:`${(e.x-f)*100/3}%`,top:`${(e.y-p)*100/2}%`,width:"33.333333333333336%"}},`${e.x}-${e.y}`),m[15]=f,m[16]=p,m[17]=t):t=m[17],o=r.map(t),m[3]=f,m[4]=x,m[5]=p,m[6]=n,m[7]=a,m[8]=s,m[9]=i,m[10]=o}else n=m[6],a=m[7],s=m[8],i=m[9],o=m[10];let j=`${100*g/3}%`,v=`${100*b/2}%`;m[18]!==j||m[19]!==v?(l=(0,y.jsx)("span",{className:"-translate-x-1/2 -translate-y-1/2 absolute size-3.5 rounded-full border-2 border-white bg-primary shadow",style:{left:j,top:v}}),m[18]=j,m[19]=v,m[20]=l):l=m[20];let N=`https://www.openstreetmap.org/?mlat=${u}&mlon=${h}#map=8/${u}/${h}`;return m[21]!==N?(d=(0,y.jsx)("a",{className:"absolute right-1 bottom-1 rounded bg-background/80 px-1 text-[9px] text-muted-foreground hover:underline",href:N,rel:"noopener noreferrer",target:"_blank",children:"© OpenStreetMap"}),m[21]=N,m[22]=d):d=m[22],m[23]!==d||m[24]!==n||m[25]!==a||m[26]!==s||m[27]!==i||m[28]!==o||m[29]!==l?(c=(0,y.jsxs)("div",{"aria-label":n,className:a,role:s,style:i,children:[o,l,d]}),m[23]=d,m[24]=n,m[25]=a,m[26]=s,m[27]=i,m[28]=o,m[29]=l,m[30]=c):c=m[30],c}let eU={person:"People",place:"Places",event:"Events",group:"Groups"},eH=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function eD(e){let n,a,s,i,o=(0,t.c)(12),{text:l}=e,[d,c]=(0,r.useState)(!1),m=l.length>600;o[0]!==m||o[1]!==d||o[2]!==l?(n=d||!m?l:`${l.slice(0,600).trimEnd()}…`,o[0]=m,o[1]=d,o[2]=l,o[3]=n):n=o[3];let u=n;return o[4]!==u?(a=(0,y.jsx)("p",{className:"font-serif text-[13.5px] leading-relaxed",children:u}),o[4]=u,o[5]=a):a=o[5],o[6]!==m||o[7]!==d?(s=m&&(0,y.jsx)("button",{className:"mt-1 font-medium text-meta text-primary hover:underline",onClick:()=>c(eG),type:"button",children:d?"Show less":"Read the whole entry"}),o[6]=m,o[7]=d,o[8]=s):s=o[8],o[9]!==a||o[10]!==s?(i=(0,y.jsxs)("div",{children:[a,s]}),o[9]=a,o[10]=s,o[11]=i):i=o[11],i}function eG(e){return!e}function eq(e){let r,n=(0,t.c)(6),{active:a,children:s,onClick:i,title:o}=e,l=`rounded-full border px-2.5 py-0.5 font-medium text-meta transition-colors ${a?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:text-foreground"}`;return n[0]!==a||n[1]!==s||n[2]!==i||n[3]!==l||n[4]!==o?(r=(0,y.jsx)("button",{"aria-pressed":a,className:l,onClick:i,title:o,type:"button",children:s}),n[0]=a,n[1]=s,n[2]=i,n[3]=l,n[4]=o,n[5]=r):r=n[5],r}function eF(e){let a,s,i,o,l,d=(0,t.c)(21),{reference:c,onAsk:m}=e,{data:u,error:h}=(0,n.default)(`/api/v1/library/study/explorer?ref=${encodeURIComponent(c)}`,eH),[x,f]=(0,r.useState)(null);if(h||u&&!u.found){let e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No people, places or events are recorded for this verse yet."}),d[0]=e):e=d[0],e}if(!u){let e;return d[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading the cast…"}),d[1]=e):e=d[1],e}return d[2]!==u.events||d[3]!==u.groups||d[4]!==u.people||d[5]!==u.places||d[6]!==x?(a="flex flex-col gap-2.5",s=[["person",u.people],["place",u.places],["event",u.events],["group",u.groups]].filter(eZ).map(eV).map(e=>{let[t,r]=e;return(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,y.jsx)("span",{className:"mr-0.5 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:t}),r.map(e=>(0,y.jsxs)(eq,{active:e.id===x,onClick:()=>f(e.id===x?null:e.id),title:e.summary,children:[e.name,"event"===e.kind&&"number"==typeof e.year&&(0,y.jsx)("span",{className:"ml-1 font-normal text-muted-foreground",children:e.year<0?`${-e.year} BC`:`AD ${e.year}`})]},e.id))]},t)}),d[2]=u.events,d[3]=u.groups,d[4]=u.people,d[5]=u.places,d[6]=x,d[7]=a,d[8]=s):(a=d[7],s=d[8]),d[9]!==m||d[10]!==x||d[11]!==c?(i=x?(0,y.jsx)(eK,{id:x,onAsk:m,onPick:f,reference:c}):(0,y.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Tap a name to see who or what it is, and everywhere it appears."}),d[9]=m,d[10]=x,d[11]=c,d[12]=i):i=d[12],d[13]!==u.attribution||d[14]!==x?(o=!x&&u.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground
10/80 leading-snug",children:u.attribution}),d[13]=u.attribution,d[14]=x,d[15]=o):o=d[15],d[16]!==a||d[17]!==s||d[18]!==i||d[19]!==o?(l=(0,y.jsxs)("div",{className:a,children:[s,i,o]}),d[16]=a,d[17]=s,d[18]=i,d[19]=o,d[20]=l):l=d[20],l}function eV(e){let[t,r]=e;return[eU[t],r]}function eZ(e){return!!(e[1]&&e[1].length>0)}function eK(e){let r,a,s,i,o,l,d,c,m,u,h,x,f=(0,t.c)(43),{id:p,reference:g,onPick:b,onAsk:j}=e,{data:v}=(0,n.default)(`/api/v1/library/study/entity?id=${encodeURIComponent(p)}&refs=8`,eH),N=v?.entity;if(!N){let e,t=v&&!v.found?"Nothing recorded.":"Loading…";return f[0]!==t?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:t}),f[0]=t,f[1]=e):e=f[1],e}let w=v?.references?.length??0;if(f[2]!==N.name?(r=(0,y.jsx)("span",{className:"font-semibold text-[15px]",children:N.name}),f[2]=N.name,f[3]=r):r=f[3],f[4]!==N.kind?(a=(0,y.jsx)("span",{className:"rounded-full border border-border px-1.5 py-px text-[10px] text-muted-foreground capitalize",children:N.kind}),f[4]=N.kind,f[5]=a):a=f[5],f[6]!==N.year?(s="number"==typeof N.year&&(0,y.jsxs)("span",{className:"text-[11px] text-muted-foreground",children:["c. ",N.year<0?`${-N.year} BC`:`AD ${N.year}`]}),f[6]=N.year,f[7]=s):s=f[7],f[8]!==r||f[9]!==a||f[10]!==s?(i=(0,y.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[r,a,s]}),f[8]=r,f[9]=a,f[10]=s,f[11]=i):i=f[11],f[12]!==N.description?(o=N.description&&(0,y.jsx)(eD,{text:N.description}),f[12]=N.description,f[13]=o):o=f[13],f[14]!==N.facts?(l=N.facts.length>0&&(0,y.jsx)("dl",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 text-[12px]",children:N.facts.map(eQ)}),f[14]=N.facts,f[15]=l):l=f[15],f[16]!==N.name||f[17]!==N.place?(d=N.place&&(0,y.jsx)(eW,{lat:N.place.lat,lon:N.place.lon,name:N.name}),f[16]=N.name,f[17]=N.place,f[18]=d):d=f[18],f[19]!==N.relations||f[20]!==b){let e;f[22]!==b?(e=e=>(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,y.jsx)("span",{className:"mr-0.5 text-[11px] text-muted-foreground",children:e.label}),e.entities.map(e=>(0,y.jsx)(eq,{active:!1,onClick:()=>b(e.id),children:e.name},e.id))]},e.label),f[22]=b,f[23]=e):e=f[23],c=N.relations.map(e),f[19]=N.relations,f[20]=b,f[21]=c}else c=f[21];return f[24]!==v||f[25]!==w?(m="number"==typeof v?.occurrences&&v.occurrences>0&&(0,y.jsxs)("div",{children:[(0,y.jsxs)("p",{className:"font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:["In ",v.occurrences," ",1===v.occurrences?"verse":"verses"]}),(0,y.jsxs)("ul",{className:"mt-1 flex flex-col gap-1",children:[(v.references??[]).map(eY),v.occurrences>w&&(0,y.jsxs)("li",{className:"text-[11px] text-muted-foreground",children:["…and ",v.occurrences-w," more."]})]})]}),f[24]=v,f[25]=w,f[26]=m):m=f[26],f[27]!==N.kind||f[28]!==N.name||f[29]!==j||f[30]!==g?(u=j&&(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 self-start rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:()=>j(function(e,t,r){switch(e){case"person":return`Who is ${t} in the Bible? Start from ${r} — what part they play there — then what else Scripture tells about them and why it matters.`;case"place":return`Where is ${t}, and what happens there in the Bible? Start from ${r}, then the other moments Scripture sets there.`;case"event":return`Walk me through "${t}" — what happened, who was there and what it means — starting from ${r}.`;default:return`Who are the ${t} in the Bible? Start from ${r}, then their story across Scripture.`}}(N.kind,N.name,g)),type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," ","person"===N.kind?`Who is ${N.name}?`:"place"===N.kind?`What happens at ${N.name}?`:"event"===N.kind?"Walk me through it":`Who are the ${N.name}?`]}),f[27]=N.kind,f[28]=N.name,f[29]=j,f[30]=g,f[31]=u):u=f[31],f[32]!==v?(h=v?.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground/80 leading-snug",children:v.attribution}),f[32]=v,f[33]=h):h=f[33],f[34]!==u||f[35]!==h||f[36]!==i||f[37]!==o||f[38]!==l||f[39]!==d||f[40]!==c||f[41]!==m?(x=(0,y.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-border/60 bg-muted/30 px-3 py-2.5",children:[i,o,l,d,c,m,u,h]}),f[34]=u,f[35]=h,f[36]=i,f[37]=o,f[38]=l,f[39]=d,f[40]=c,f[41]=m,f[42]=x):x=f[42],x}function eY(e){return(0,y.jsxs)("li",{className:"text-[12px] leading-snug",children:[(0,y.jsx)(T.default,{className:"font-medium text-primary hover:underline",href:(0,et.kjvReaderHref)(e.reference),children:e.reference})," ",e.text&&(0,y.jsx)("span",{className:"text-muted-foreground",children:e.text.length>110?`${e.text.slice(0,110).trimEnd()}…`:e.text})]},e.reference)}function eQ(e){return(0,y.jsxs)("div",{className:"contents",children:[(0,y.jsx)("dt",{className:"text-muted-foreground",children:e.label}),(0,y.jsx)("dd",{children:e.value})]},e.label)}let eX=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function e1(e){let r,a,s,i,o,l,d,c,m,u,h=(0,t.c)(27),{reference:x,onAsk:f}=e,{data:p,error:g}=(0,n.default)(`/api/v1/library/study/history?ref=${encodeURIComponent(x)}`,eX);if(g||p&&!p.found){let e;return h[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No history is recorded for this verse yet."}),h[0]=e):e=h[0],e}if(!p){let e;return h[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading history…"}),h[1]=e):e=h[1],e}h[2]!==p.moments?(r=p.moments??[],h[2]=p.moments,h[3]=r):r=h[3];let b=r;h[4]!==p.places?(a=p.places??[],h[4]=p.places,h[5]=a):a=h[5],h[6]!==a?(s=a.find(e2),h[6]=a,h[7]=s):s=h[7];let j=s,v=p.written;return h[8]!==b?(i=b.length>0&&(0,y.jsx)("ol",{className:"flex gap-0 overflow-x-auto rounded-lg border border-border/60 bg-muted/20 px-3 py-2.5",children:b.map(e0)}),h[8]=b,h[9]=i):i=h[9],h[10]!==p.book||h[11]!==v?(o=v&&(0,y.jsxs)("div",{className:"rounded-lg border border-border/60 bg-muted/20 px-3 py-2.5 text-[12.5px] leading-snug",children:[(0,y.jsxs)("p",{className:"mb-1 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:["When ",p.book," was written · traditional dating"]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("span",{className:"font-medium",children:v.when}),v.where?` \xb7 ${v.where}`:""]}),(0,y.jsxs)("p",{className:"text-muted-foreground",children:[v.author,v.audie
10nce?` — for ${v.audience}`:""]})]}),h[10]=p.book,h[11]=v,h[12]=o):o=h[12],h[13]!==j?(l=j&&"number"==typeof j.lat&&"number"==typeof j.lon&&(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(eW,{lat:j.lat,lon:j.lon,name:j.name}),(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:[j.name," — ",j.summary]})]}),h[13]=j,h[14]=l):l=h[14],h[15]===Symbol.for("react.memo_cache_sentinel")?(d=(0,y.jsx)("p",{className:"mb-1.5 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:"Who and where"}),h[15]=d):d=h[15],h[16]!==f||h[17]!==x?(c=(0,y.jsxs)("div",{children:[d,(0,y.jsx)(eF,{onAsk:f,reference:x})]}),h[16]=f,h[17]=x,h[18]=c):c=h[18],h[19]!==p.attribution?(m=p.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground/80 leading-snug",children:p.attribution}),h[19]=p.attribution,h[20]=m):m=h[20],h[21]!==i||h[22]!==o||h[23]!==l||h[24]!==c||h[25]!==m?(u=(0,y.jsxs)("div",{className:"flex flex-col gap-3",children:[i,o,l,c,m]}),h[21]=i,h[22]=o,h[23]=l,h[24]=c,h[25]=m,h[26]=u):u=h[26],u}function e0(e){return(0,y.jsxs)("li",{className:"flex min-w-[132px] max-w-[180px] flex-1 flex-col gap-0.5 pr-3",children:[(0,y.jsxs)("span",{className:"flex items-center",children:[(0,y.jsx)("span",{"aria-hidden":!0,className:`size-2.5 shrink-0 rounded-full border-2 border-primary ${"written"===e.kind?"bg-primary":"bg-background"}`}),(0,y.jsx)("span",{className:"h-px flex-1 bg-border"})]}),(0,y.jsx)("span",{className:`font-semibold text-[10.5px] ${"written"===e.kind?"text-primary":""}`,children:e.when??"Undated"}),(0,y.jsx)("span",{className:"font-medium text-[12px] leading-tight",children:e.label}),e.detail&&(0,y.jsx)("span",{className:"text-[10.5px] text-muted-foreground leading-snug",children:e.detail})]},`${e.kind}-${e.label}`)}function e2(e){return"number"==typeof e.lat&&"number"==typeof e.lon}var e3=e.i(450166),e5=e.i(436028),e4=e.i(581572);let e6=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function e8(e,t,r,n){let a=(e+r)/2;return`M${e} ${t} C ${a} ${t}, ${a} ${n}, ${r} ${n}`}function e7(e){let a,s,i,o,l,d=(0,t.c)(34),{reference:c,onBack:m}=e,{data:u,error:h}=(0,n.default)(`/api/v1/library/study/cross-references?ref=${encodeURIComponent(c)}&limit=40`,e6),[x,f]=(0,r.useState)("book"),[p,g]=(0,r.useState)(1);if(d[0]!==u||d[1]!==h||d[2]!==x||d[3]!==m||d[4]!==c||d[5]!==p){let e,t,r,n,o,l,b,j,v,N,w=function(e,t){let r=new Map;for(let n of e){let e=n.reference.replace(/\s+\d{1,3}:.*$/,"").trim(),a=(0,G.kjvBookOrder)(e),s="book"===t?e:null===a?"Elsewhere":a<=39?"Old Testament":"New Testament",i=r.get(s);i?i.push(n):r.set(s,[n])}return[...r.entries()].map(([e,t])=>({label:e,leaves:t.slice(0,6),order:(0,G.kjvBookOrder)(e)??99*("Old Testament"!==e),weight:t.length})).sort((e,t)=>t.weight-e.weight||e.order-t.order).slice(0,8).sort((e,t)=>e.order-t.order).map(({label:e,leaves:t})=>({label:e,leaves:t}))}((u?.references??[]).map(tn),x),k=function(e){let t=e.length;if(0===t)return[];let r=180,n=114;return e.map((e,a)=>{let s=1===t?0:-Math.PI/2+a/t*Math.PI*2,i=450+Math.cos(s)*r,o=300+Math.sin(s)*r,l=i<449,d=e.leaves.map((t,r)=>({x:i+(l?-n:n),y:o+(r-(e.leaves.length-1)/2)*18,reference:t.reference,text:t.text}));return{x:i,y:o,label:e.label,leaves:d,left:l}})}(w),S=w.reduce(tr,0);a="flex min-h-0 flex-1 flex-col gap-2",d[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)(e3.ArrowLeftIcon,{className:"size-3"}),d[9]=e):e=d[9],d[10]!==m?(t=(0,y.jsxs)("button",{className:"inline-flex items-center gap-1 font-medium text-meta text-primary hover:underline",onClick:m,type:"button",children:[e," Related"]}),d[10]=m,d[11]=t):t=d[11],d[12]!==c?(r=(0,y.jsxs)("span",{className:"font-semibold text-[13px]",children:["Mind map · ",c]}),d[12]=c,d[13]=r):r=d[13],d[14]===Symbol.for("react.memo_cache_sentinel")?(n=["book","testament"],d[14]=n):n=d[14],d[15]!==x?(o=n.map(e=>(0,y.jsxs)("button",{"aria-pressed":x===e,className:`rounded-full border px-2.5 py-0.5 font-medium text-meta transition-colors ${x===e?"border-primary bg-primary/10 text-primary":"border-border text-muted-foreground hover:text-foreground"}`,onClick:()=>f(e),type:"button",children:["By ",e]},e)),d[15]=x,d[16]=o):o=d[16],d[17]===Symbol.for("react.memo_cache_sentinel")?(l=()=>g(tt),d[17]=l):l=d[17],d[18]===Symbol.for("react.memo_cache_sentinel")?(b=(0,y.jsx)("button",{"aria-label":"Zoom out",className:"rounded-md border border-border p-1 text-muted-foreground hover:text-foreground",onClick:l,type:"button",children:(0,y.jsx)(e5.MinusIcon,{className:"size-3"})}),d[18]=b):b=d[18],d[19]===Symbol.for("react.memo_cache_sentinel")?(j=()=>g(te),d[19]=j):j=d[19],d[20]===Symbol.for("react.memo_cache_sentinel")?(v=(0,y.jsx)("button",{"aria-label":"Zoom in",className:"rounded-md border border-border p-1 text-muted-foreground hover:text-foreground",onClick:j,type:"button",children:(0,y.jsx)(e4.PlusIcon,{className:"size-3"})}),d[20]=v):v=d[20],d[21]!==o?(N=(0,y.jsxs)("span",{className:"ml-auto flex items-center gap-1",children:[o,b,v]}),d[21]=o,d[22]=N):N=d[22],d[23]!==N||d[24]!==t||d[25]!==r?(s=(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[t,r,N]}),d[23]=N,d[24]=t,d[25]=r,d[26]=s):s=d[26],i=h||u&&!u.found?(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No cross-references for this verse yet."}):u?(0,y.jsx)("div",{className:"min-h-0 flex-1 overflow-auto rounded-lg border border-border/60 bg-muted/20",children:(0,y.jsxs)("svg",{"aria-label":`Mind map of the verses related to ${c}`,height:600*p,role:"img",style:{display:"block",minWidth:900*p}
10,viewBox:"0 0 900 600",width:900*p,children:[(0,y.jsx)("title",{children:`${S} related verses`}),k.map(e9),(0,y.jsx)("circle",{className:"fill-primary",cx:450,cy:300,r:52}),(0,y.jsx)("text",{className:"fill-primary-foreground",fontSize:14,fontWeight:600,textAnchor:"middle",x:450,y:298,children:c}),(0,y.jsxs)("text",{className:"fill-primary-foreground/90",fontSize:10,textAnchor:"middle",x:450,y:314,children:[S," verses · ",w.length," ","book"===x?"books":"groups"]})]})}):(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Drawing the map…"}),d[0]=u,d[1]=h,d[2]=x,d[3]=m,d[4]=c,d[5]=p,d[6]=a,d[7]=s,d[8]=i}else a=d[6],s=d[7],i=d[8];let b=u?.attribution?` \xb7 ${u.attribution}`:"";return d[27]!==b?(o=(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:["Tap a leaf to read it in the Library",b]}),d[27]=b,d[28]=o):o=d[28],d[29]!==a||d[30]!==s||d[31]!==i||d[32]!==o?(l=(0,y.jsxs)("div",{className:a,children:[s,i,o]}),d[29]=a,d[30]=s,d[31]=i,d[32]=o,d[33]=l):l=d[33],l}function e9(e){return(0,y.jsxs)("g",{children:[(0,y.jsx)("path",{className:"stroke-primary/70",d:e8(450,300,e.x,e.y),fill:"none",strokeWidth:1.6}),e.leaves.map(t=>(0,y.jsxs)("g",{children:[(0,y.jsx)("path",{className:"stroke-border",d:e8(e.x,e.y,t.x,t.y),fill:"none",strokeWidth:1.2}),(0,y.jsxs)(T.default,{href:(0,et.kjvReaderHref)(t.reference),children:[(0,y.jsx)("circle",{className:"fill-background stroke-primary",cx:t.x,cy:t.y,r:3,strokeWidth:1.2}),(0,y.jsxs)("text",{className:"fill-foreground hover:fill-primary",fontSize:11,textAnchor:e.left?"end":"start",x:t.x+(e.left?-7:7),y:t.y+3.5,children:[t.reference,t.text?(0,y.jsxs)("tspan",{className:"fill-muted-foreground",children:[" ",t.text.length>26?`${t.text.slice(0,26).trimEnd()}…`:t.text]}):null]})]})]},t.reference)),(0,y.jsx)("rect",{className:"fill-background stroke-primary",height:26,rx:13,strokeWidth:1.4,width:Math.max(90,7*e.label.length+22),x:e.x-Math.max(90,7*e.label.length+22)/2,y:e.y-13}),(0,y.jsx)("text",{className:"fill-primary",fontSize:12,fontWeight:600,textAnchor:"middle",x:e.x,y:e.y+4,children:e.label})]},e.label)}function te(e){return Math.min(2,e+.25)}function tt(e){return Math.max(.5,e-.25)}function tr(e,t){return e+t.leaves.length}function tn(e){return{reference:e.reference,text:e.text}}var ta=e.i(598610);async function ts(e,t){if(!p(t))return t;let r=new URLSearchParams({ref:e,edition:G.BIBLE_SLUG}),n=await fetch(`/api/v1/library/verse?${r.toString()}`),a=n.ok?await n.json():null;return a?.found?a:null}function ti({reference:e,verse:t}){let[n,a]=(0,r.useState)(!1),[s,i]=(0,r.useState)(""),[o,l]=(0,r.useState)("idle"),d=async()=>{if("saving"!==o&&0!==s.trim().length){l("saving");try{let r=await ts(e,t);if(!r?.bookId)return void l("error");let n=await fetch("/api/v1/library/highlights",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({bookId:r.bookId,chapterId:r.chapterId,startOffset:r.start,endOffset:r.end,quote:(t.text??"").slice(0,4e3),color:"yellow",note:s.trim().slice(0,2e3)})});if(401===n.status)return void l("auth");if(!n.ok)return void l("error");l("saved"),i("")}catch{l("error")}}};return"saved"===o?(0,y.jsxs)(T.default,{className:"inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary hover:underline",href:"/library/notebook",onClick:()=>l("idle"),children:[(0,y.jsx)(ta.PencilLineIcon,{className:"size-3"})," Noted · open your notebook"]}):"auth"===o?(0,y.jsxs)(T.default,{className:"inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary hover:underline",href:"/login",children:[(0,y.jsx)(ta.PencilLineIcon,{className:"size-3"})," Sign in to add a note"]}):(0,y.jsxs)("span",{className:"relative inline-flex",children:[(0,y.jsxs)("button",{"aria-expanded":n,className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 font-medium text-meta transition-colors ${n?"border-primary bg-primary/10 text-primary":"border-border text-primary hover:bg-primary/10"}`,onClick:()=>a(e=>!e),type:"button",children:[(0,y.jsx)(ta.PencilLineIcon,{className:"size-3"})," Add a note"]}),n&&(0,y.jsxs)("div",{className:"absolute bottom-full left-0 z-10 mb-2 flex w-[min(320px,80vw)] flex-col gap-2 rounded-xl border border-border bg-popover p-3 text-popover-foreground shadow-xl",children:[(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:["A private note on ",e,", kept in your Library."]}),(0,y.jsx)("textarea",{"aria-label":`Your note on ${e}`,className:"min-h-20 w-full resize-y rounded-md border border-border bg-background px-2.5 py-2 text-[13px] leading-snug outline-none focus:ring-1 focus:ring-primary",maxLength:2e3,onChange:e=>i(e.target.value),placeholder:"What stands out, what you want to remember…",value:s}),(0,y.jsxs)("div",{className:"flex items-center gap-2",children:[(0,y.jsx)("button",{className:"rounded-full bg-primary px-3 py-1 font-medium text-meta text-primary-foreground disabled:opacity-50",disabled:"saving"===o||0===s.trim().length,onClick:d,type:"button",children:"saving"===o?"Saving…":"Save note"}),(0,y.jsx)("button",{className:"font-medium text-meta text-muted-foreground hover:text-foreground",onClick:()=>a(!1),type:"button",children:"Cancel"}),"error"===o&&(0,y.jsx)("span",{className:"text-meta text-muted-foreground",children:"Couldn’t save — try again"})]})]})]})}let to=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function tl(e){let n,a,s,i,o,l=(0,t.c)(19),{video:d,big:c}=e,[m,u]=(0,r.useState)(!1),h=`flex flex-col gap-1 ${c?"col-span-full":""}`;l[0]!==c||l[1]!==m||l[2]!==d.thumbnail||l[3]!==d.title||l[4]!==d.videoId?(n=(0,y.jsx)("div",{className:"relative aspect-video overflow-hidden rounded-lg bg-black",children:m?(0,y.jsx)("iframe",{allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 size-full",src:`https://www.youtube-nocookie.com/embed/${d.videoId}?autoplay=1&rel=0`,title:d.title}):(0,y.jsxs)("button",{"aria-label":`Play ${d.title}`,className:"group absolute inset-0 flex items-center justify-center",onClick:()=>u(!0),type:"button",children:[(0,y.jsx)("img",{alt:"",className:"absolute inset-0 size-full object-cover",loading:"lazy",src:d.thumbnail}),(0,y.jsx)("span",{className:`relative inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform group-hover:scale-105 ${c?"size-14":"size-9"}`,children:(0,y.jsx)(z.PlayIcon,{className:c?"size-6":"size-4",fill:"
10currentColor"})})]})}),l[0]=c,l[1]=m,l[2]=d.thumbnail,l[3]=d.title,l[4]=d.videoId,l[5]=n):n=l[5];let x=`font-medium leading-snug ${c?"text-[13px]":"text-[12px]"}`;return l[6]!==x||l[7]!==d.title?(a=(0,y.jsx)("span",{className:x,children:d.title}),l[6]=x,l[7]=d.title,l[8]=a):a=l[8],l[9]!==d.channel||l[10]!==d.url?(s=(0,y.jsxs)("a",{className:"text-[10.5px] text-muted-foreground hover:text-primary",href:d.url,rel:"noopener noreferrer",target:"_blank",children:[d.channel," · YouTube"]}),l[9]=d.channel,l[10]=d.url,l[11]=s):s=l[11],l[12]!==a||l[13]!==s?(i=(0,y.jsxs)("figcaption",{className:"flex flex-col",children:[a,s]}),l[12]=a,l[13]=s,l[14]=i):i=l[14],l[15]!==h||l[16]!==n||l[17]!==i?(o=(0,y.jsxs)("figure",{className:h,children:[n,i]}),l[15]=h,l[16]=n,l[17]=i,l[18]=o):o=l[18],o}function td(e){let r,a,s,i,o=(0,t.c)(11),{reference:l}=e,{data:d,error:c}=(0,n.default)(`/api/v1/library/study/videos?ref=${encodeURIComponent(l)}`,to);if(c||d&&!d.found){let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"No videos on this book yet."}),o[0]=e):e=o[0],e}if(!d?.videos){let e;return o[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Finding videos…"}),o[1]=e):e=o[1],e}return o[2]!==d.videos?(r=d.videos.map(tc),o[2]=d.videos,o[3]=r):r=o[3],o[4]!==r?(a=(0,y.jsx)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:r}),o[4]=r,o[5]=a):a=o[5],o[6]!==d.attribution?(s=d.attribution&&(0,y.jsx)("p",{className:"text-[10px] text-muted-foreground/80 leading-snug",children:d.attribution}),o[6]=d.attribution,o[7]=s):s=o[7],o[8]!==a||o[9]!==s?(i=(0,y.jsxs)("div",{className:"flex flex-col gap-2.5",children:[a,s]}),o[8]=a,o[9]=s,o[10]=i):i=o[10],i}function tc(e,t){return(0,y.jsx)(tl,{big:0===t,video:e},e.videoId)}var tm=e.i(134075);let tu=new Set(["a","an","the","of","to","in","on","at","by","for","and","or","but","is","are","was","were","be","been","am","i","he","she","it","we","you","they","them","his","her","its","our","your","their","this","that","these","those","with","from","as","so","not","no","do","did","does","have","has","had","will","shall","who","whom","which","what","then","there","here","unto","into"]),th={unto:"to",hath:"has",doth:"does",ye:"you",thee:"you",thou:"you",thy:"your",thine:"your",saith:"says",shalt:"shall",wilt:"will",art:"are"};function tx(e){let t=e.toLowerCase().replace(/[^a-z']/g,"").replace(/'s$/,"");for(let e of(t=th[t]??t,["eth","est","ing","ies","ied","ed","es","ly","s"]))if(t.length>e.length+2&&t.endsWith(e)){t=t.slice(0,-e.length),("ies"===e||"ied"===e)&&(t=`${t}y`);break}return t}function tf(e,t){let r=(e.match(/[A-Za-z][A-Za-z'’-]*|[^A-Za-z]+/g)??[]).map(e=>({text:e})),n=r.map((e,t)=>({at:t,stem:/^[A-Za-z]/.test(e.text)?tx(e.text):""})).filter(e=>e.stem),a=0,s=new Set;for(let[e,i]of t.entries()){let{strong:t,weak:o}=function(e){let t=new Set,r=new Set;for(let n of[e.gloss,...e.rendered??[]])for(let e of n.split(/\s+/)){let n=tx(e);n&&(tu.has(n)?r:t).add(n)}return{strong:t,weak:r}}(i),l=Math.max(0,a-2),d=Math.min(n.length,a+8),c=-1;for(let e of[t,o])if(0!==e.size){for(let t=l;t<d;t+=1){let r=n[t];if(r&&!s.has(r.at)&&e.has(r.stem)){c=t;break}}if(c>=0)break}if(c<0)continue;let m=n[c];if(!m)continue;let u=r[m.at];u&&(u.original=e),s.add(m.at),t.has(m.stem)&&(a=c+1)}return r}let tp=/\p{L}/u;function tg(e){return e.flatMap(e=>{var t;return e.original&&e.original.length>0?((t=e).original??[]).map(e=>({word:e,lexeme:t.segments.flatMap(e=>e.lexemes??[]).find(t=>e.strongs.includes(t.id)),rendered:t.segments.filter(t=>t.lexemes?.some(t=>e.strongs.includes(t.id))).map(e=>e.text)})):e.segments.flatMap(e=>{let t=e.lexemes?.[0];return t?[{word:{form:t.lemma,transliteration:t.transliteration,gloss:t.gloss,strongs:[t.id],morph:"",parsing:""},lexeme:t,rendered:[e.text]}]:[]})})}function tb(e,t){return`/api/v1/library/verse?ref=${encodeURIComponent(e)}&edition=${encodeURIComponent(t)}`}let ty=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`fetch failed (${t.status})`);return await t.json()};function tj(e){let t=0;return e.map(e=>{let r={segment:e,offset:t};return t+=e.text.length,r})}function tv(e){let a,s,i,o,l,d,c,m,u,h,x,f,p,g=(0,t.c)(70),{reference:b,onAsk:j,autoPick:v,defaultShowOriginal:N,shownText:w,shownVersion:k}=e,S=void 0!==v&&v,{data:$,error:C}=(0,n.default)(`/api/v1/library/study/words?ref=${encodeURIComponent(b)}`,ty);g[0]!==b?(a=tb(b,et.CONCORDANCE_NASB.slug),g[0]=b,g[1]=a):a=g[1],g[2]===Symbol.for("react.memo_cache_sentinel")?(s={shouldRetryOnError:!1},g[2]=s):s=g[2];let{data:_}=(0,n.default)(a,ty,s),I=_?.found&&_.text?_.text:null,[z,E]=(0,r.useState)(null),[T,A]=(0,r.useState)(void 0!==N&&N),[R,L]=(0,r.useState)("words"),[P,M]=(0,r.useState)("kjv");if(g[3]!==S||g[4]!==$?(i=()=>{S&&$?.verses&&E(function(e){let t=null;for(let r of e??[])for(let e of r.segments){let r=e.lexemes?.[0];if(!r)continue;
10let n={word:e.text,lexeme:r,original:e.original};if(e.original?.parsing?.toLowerCase().startsWith("verb"))return n;(!t||e.text.length>t.word.length)&&(t=n)}return t}($.verses))},o=[S,$],g[3]=S,g[4]=$,g[5]=i,g[6]=o):(i=g[5],o=g[6]),(0,r.useEffect)(i,o),C||$&&!$.found){let e;return g[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Word study isn’t available for this passage yet."}),g[7]=e):e=g[7],e}if(!$?.verses){let e;return g[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)("p",{className:"text-meta text-muted-foreground",children:"Loading words…"}),g[8]=e):e=g[8],e}let O=$.verses.length>1;if(g[9]!==$.language||g[10]!==$.verses||g[11]!==O||g[12]!==I||g[13]!==z||g[14]!==w||g[15]!==k||g[16]!==P||g[17]!==R){let e,t,r,n,a,s=w&&!/king james|\bkjv\b/i.test(k??"")&&(a=tg($.verses)).length>0?{flat:a,tokens:tf(w,a.map(tk))}:null;l="greek"===$.language?"greek":"hebrew",g[23]!==$.verses||g[24]!==I||g[25]!==P||g[26]!==R?(e="table"===R?"nasb"===P&&I?function(e,t){let r=tg(e);if(0===r.length)return[];let n=tf(t,r.map(({word:e,rendered:t})=>({gloss:e.gloss,rendered:t}))),a=[],s=0;for(let e of n){if(tp.test(e.text)){let t=void 0===e.original?void 0:r[e.original];a.push({key:`@${s}`,word:e.text,lexeme:t?.lexeme,original:t?.word})}s+=e.text.length}return a}($.verses,I):function(e){let t=[];for(let r of e){let e=0;for(let n of r.segments)tp.test(n.text)&&t.push({key:`${r.verse}@${e}`,verse:r.verse,word:n.text.trim(),lexeme:n.lexemes?.[0],original:n.original}),e+=n.text.length}return t}($.verses):[],g[23]=$.verses,g[24]=I,g[25]=P,g[26]=R,g[27]=e):e=g[27];let i=e;c="flex flex-col gap-2.5",g[28]!==I||g[29]!==P||g[30]!==R?(t="table"===R&&I?(0,y.jsx)(tS,{label:"Edition",onChange:M,options:[{value:"kjv",label:"KJV"},{value:"nasb",label:et.CONCORDANCE_NASB.label}],value:P}):(0,y.jsx)("span",{}),g[28]=I,g[29]=P,g[30]=R,g[31]=t):t=g[31],g[32]===Symbol.for("react.memo_cache_sentinel")?(r=[{value:"words",label:"Words"},{value:"table",label:"Table"}],g[32]=r):r=g[32],g[33]!==R?(n=(0,y.jsx)(tS,{label:"View",onChange:L,options:r,value:R}),g[33]=R,g[34]=n):n=g[34],g[35]!==t||g[36]!==n?(m=(0,y.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[t,n]}),g[35]=t,g[36]=n,g[37]=m):m=g[37],g[38]!==l||g[39]!==O||g[40]!==z||g[41]!==i||g[42]!==P||g[43]!==R?(u="table"===R&&(0,y.jsx)(t$,{language:l,multi:O&&"kjv"===P,onPick:e=>E(e.lexeme?{word:e.word,lexeme:e.lexeme,original:e.original}:null),picked:z,rows:i}),g[38]=l,g[39]=O,g[40]=z,g[41]=i,g[42]=P,g[43]=R,g[44]=u):u=g[44],d="words"===R&&s&&(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsxs)("p",{className:"text-[10.5px] text-muted-foreground uppercase tracking-wide",children:[k??"This translation"," · aligned by meaning"]}),(0,y.jsx)("p",{className:"font-serif text-[15px] leading-[1.7]",children:tj(s.tokens).map(e=>{let{segment:t,offset:r}=e,n=void 0===t.original?void 0:s.flat[t.original];if(!n?.lexeme)return(0,y.jsx)("span",{children:t.text},`a${r}`);let{lexeme:a,word:i}=n,o=z?.original===i;return(0,y.jsx)("button",{className:`rounded-sm border-b border-dotted px-px transition-colors hover:bg-primary/10 ${o?"border-primary bg-primary/15 text-primary":"border-primary/50"}`,onClick:()=>E(o?null:{word:t.text,lexeme:a,original:i}),title:`${i.form} \xb7 ${i.gloss}`,type:"button",children:t.text},`a${r}`)})}),(0,y.jsx)("p",{className:"text-[10.5px] text-muted-foreground uppercase tracking-wide",children:"KJV · tagged word by word"})]}),g[9]=$.language,g[10]=$.verses,g[11]=O,g[12]=I,g[13]=z,g[14]=w,g[15]=k,g[16]=P,g[17]=R,g[18]=l,g[19]=d,g[20]=c,g[21]=m,g[22]=u}else l=g[18],d=g[19],c=g[20],m=g[21],u=g[22];return g[45]!==$.verses||g[46]!==O||g[47]!==z?.lexeme||g[48]!==R?(h="words"===R&&(0,y.jsx)("p",{className:"font-serif text-[15px] leading-[1.7]",children:$.verses.map(e=>(0,y.jsxs)("span",{children:[O&&(0,y.jsx)("sup",{className:"mr-0.5 font-sans text-[9.5px] text-muted-foreground",children:e.verse}),tj(e.segments).map(t=>{let{segment:r,offset:n}=t,a=r.lexemes?.[0];if(!a)return(0,y.jsx)("span",{children:r.text},`${e.reference}@${n}`);let s=z?.lexeme.id===a.id;return(0,y.jsx)("button",{className:`rounded-sm border-b border-dotted px-px transition-colors hover:bg-primary/10 ${s?"border-primary bg-primary/15 text-primary":"border-primary/50"}`,onClick:()=>E(s?null:{word:r.text,lexeme:a,original:r.original}),title:`${a.lemma} \xb7 ${a.gloss}`,type:"button",children:r.text},`${e.reference}@${n}`)}),O&&" "]},e.reference))}),g[45]=$.verses,g[46]=O,g[47]=z?.lexeme,g[48]=R,g[49]=h):h=g[49],g[50]!==$.language||g[51]!==$.verses||g[52]!==O||g[53]!==T||g[54]!==R?(x="words"===R&&$.verses.some(tw)&&(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,y.jsx)("button",{className:"self-start font-medium text-meta text-primary hover:underline",onClick:()=>A(tN),type:"button",children:T?`Hide the ${"greek"===$.language?"Greek":"Hebrew"}`:`Show the ${"greek"===$.language?"Greek":"Hebrew"} word by word`}),T&&$.verses.map(e=>e.original?(0,y.jsx)(t_,{language:"greek"===$.language?"greek":"hebrew",verse:O?e.ver
10se:null,words:e.original},e.reference):null)]}),g[50]=$.language,g[51]=$.verses,g[52]=O,g[53]=T,g[54]=R,g[55]=x):x=g[55],g[56]!==l||g[57]!==j||g[58]!==z||g[59]!==b||g[60]!==R?(f=z?(0,y.jsx)(tz,{onAsk:j,picked:z,reference:b}):(0,y.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:["Tap ","table"===R?"a word in the table":"an underlined word"," ","to see the ","greek"===l?"Greek":"Hebrew"," behind it."]}),g[56]=l,g[57]=j,g[58]=z,g[59]=b,g[60]=R,g[61]=f):f=g[61],g[62]!==d||g[63]!==h||g[64]!==x||g[65]!==f||g[66]!==c||g[67]!==m||g[68]!==u?(p=(0,y.jsxs)("div",{className:c,children:[m,u,d,h,x,f]}),g[62]=d,g[63]=h,g[64]=x,g[65]=f,g[66]=c,g[67]=m,g[68]=u,g[69]=p):p=g[69],p}function tN(e){return!e}function tw(e){return e.original}function tk(e){let{word:t,rendered:r}=e;return{gloss:t.gloss,rendered:r}}function tS(e){let r,n,a=(0,t.c)(10),{value:s,options:i,onChange:o,label:l}=e;if(a[0]!==o||a[1]!==i||a[2]!==s){let e;a[4]!==o||a[5]!==s?(e=e=>(0,y.jsx)("button",{"aria-selected":e.value===s,className:`rounded-full px-2.5 py-0.5 font-medium text-[11px] transition-colors ${e.value===s?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,onClick:()=>o(e.value),role:"tab",type:"button",children:e.label},e.value),a[4]=o,a[5]=s,a[6]=e):e=a[6],r=i.map(e),a[0]=o,a[1]=i,a[2]=s,a[3]=r}else r=a[3];return a[7]!==l||a[8]!==r?(n=(0,y.jsx)("div",{"aria-label":l,className:"inline-flex rounded-full border border-border/60 p-0.5",role:"tablist",children:r}),a[7]=l,a[8]=r,a[9]=n):n=a[9],n}function t$(e){let r,n,a,s,i,o,l,d,c,m=(0,t.c)(26),{rows:u,language:h,multi:x,picked:f,onPick:p}=e;m[0]!==x?(r=x&&(0,y.jsx)("th",{className:"px-2 py-1.5 font-medium",children:"V"}),m[0]=x,m[1]=r):r=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,y.jsx)("th",{className:"px-2 py-1.5 font-medium",children:"Word"}),a=(0,y.jsx)("th",{className:"px-2 py-1.5 font-medium",children:"Strong’s"}),m[2]=n,m[3]=a):(n=m[2],a=m[3]);let g="greek"===h?"Greek":"Hebrew";if(m[4]!==g?(s=(0,y.jsx)("th",{className:"px-2 py-1.5 font-medium",children:g}),m[4]=g,m[5]=s):s=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,y.jsx)("th",{className:"px-2 py-1.5 font-medium",children:"Parsing"}),m[6]=i):i=m[6],m[7]!==r||m[8]!==s?(o=(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{className:"bg-muted/40 text-left text-[10px] text-muted-foreground uppercase tracking-wide",children:[r,n,a,s,i]})}),m[7]=r,m[8]=s,m[9]=o):o=m[9],m[10]!==h||m[11]!==x||m[12]!==p||m[13]!==f||m[14]!==u){let e;m[16]!==h||m[17]!==x||m[18]!==p||m[19]!==f?(e=e=>{let{lexeme:t,original:r}=e,n=void 0!==t&&f?.lexeme.id===t.id&&f.word===e.word;return(0,y.jsxs)("tr",{"aria-selected":n,className:`border-border/60 border-t ${n?"bg-primary/10":""} ${t?"":"text-muted-foreground"}`,children:[x&&(0,y.jsx)("td",{className:"px-2 py-1 text-[10.5px] text-muted-foreground",children:e.verse}),(0,y.jsx)("td",{className:"px-2 py-1 font-serif text-[13px]",children:t?(0,y.jsx)("button",{className:`rounded-sm border-b border-dotted text-left transition-colors hover:text-primary ${n?"border-primary text-primary":"border-primary/50"}`,onClick:()=>p(e),type:"button",children:e.word}):e.word}),(0,y.jsx)("td",{className:"px-2 py-1 font-mono text-[10.5px]",children:t?.id??"—"}),(0,y.jsx)("td",{className:"px-2 py-1",children:t&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("span",{className:"font-serif text-[14px]",lang:"greek"===h?"grc":"he",children:r?.form??t.lemma})," ",(0,y.jsx)("span",{className:"text-[11px] text-muted-foreground italic",children:r?.transliteration??t.transliteration})]})}),(0,y.jsx)("td",{className:"px-2 py-1 text-[11.5px] text-muted-foreground",children:t?r?.parsing||t.gloss:""})]},e.key)},m[16]=h,m[17]=x,m[18]=p,m[19]=f,m[20]=e):e=m[20],l=u.map(e),m[10]=h,m[11]=x,m[12]=p,m[13]=f,m[14]=u,m[15]=l}else l=m[15];return m[21]!==l?(d=(0,y.jsx)("tbody",{children:l}),m[21]=l,m[22]=d):d=m[22],m[23]!==o||m[24]!==d?(c=(0,y.jsx)("div",{className:"overflow-x-auto rounded-lg border border-border/60",children:(0,y.jsxs)("table",{className:"w-full border-collapse text-[12px]",children:[o,d]})}),m[23]=o,m[24]=d,m[25]=c):c=m[25],c}function tC(e){let n,a,s,i,o,l=(0,t.c)(13),{id:d}=e,[c,m]=(0,r.useState)("idle"),u=(0,r.useRef)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>()=>{u.current?.pause()},a=[],l[0]=n,l[1]=a):(n=l[0],a=l[1]),(0,r.useEffect)(n,a),l[2]!==d||l[3]!==c?(s=()=>
10{if("loading"===c||"unavailable"===c)return;if(u.current){u.current.currentTime=0,m("playing"),u.current.play().catch(()=>m("unavailable"));return}let e=new Audio(`/api/v1/library/study/say?id=${encodeURIComponent(d)}`);u.current=e,m("loading"),e.addEventListener("playing",()=>m("playing")),e.addEventListener("ended",()=>m("idle")),e.addEventListener("error",()=>m("unavailable")),e.play().catch(()=>m("unavailable"))},l[2]=d,l[3]=c,l[4]=s):s=l[4];let h=s,x=`inline-flex size-6 items-center justify-center rounded-full border border-border transition-colors hover:bg-primary/10 disabled:opacity-40 ${"playing"===c?"border-primary text-primary":"text-muted-foreground hover:text-primary"}`,f="unavailable"===c,p="unavailable"===c?"Audio isn't available yet":"Hear the word",g=`size-3 ${"loading"===c?"animate-pulse":""}`;return l[5]!==g?(i=(0,y.jsx)(tm.Volume2Icon,{className:g}),l[5]=g,l[6]=i):i=l[6],l[7]!==h||l[8]!==x||l[9]!==f||l[10]!==p||l[11]!==i?(o=(0,y.jsx)("button",{"aria-label":"Hear the word",className:x,disabled:f,onClick:h,title:p,type:"button",children:i}),l[7]=h,l[8]=x,l[9]=f,l[10]=p,l[11]=i,l[12]=o):o=l[12],o}function t_(e){let r,n,a,s=(0,t.c)(11),{words:i,language:o,verse:l}=e,d="hebrew"===o?"rtl":"ltr";if(s[0]!==l?(r=null!==l&&(0,y.jsx)("span",{className:"self-start font-sans text-[9.5px] text-muted-foreground",children:l}),s[0]=l,s[1]=r):r=s[1],s[2]!==o||s[3]!==i){let e;s[5]!==o?(e=e=>{let{segment:t,offset:r}=e;return(0,y.jsxs)("span",{className:`flex flex-col items-center ${t.source?"opacity-60":""}`,title:t.parsing||t.morph,children:[(0,y.jsx)("span",{className:"font-serif text-[17px] leading-tight",lang:"greek"===o?"grc":"he",children:t.form}),(0,y.jsx)("span",{className:"text-[10px] text-muted-foreground italic leading-tight",children:t.transliteration}),(0,y.jsx)("span",{className:"text-[10.5px] leading-tight",dir:"ltr",children:t.gloss})]},`${t.form}@${r}`)},s[5]=o,s[6]=e):e=s[6],n=tj(i.map(tI)).map(e),s[2]=o,s[3]=i,s[4]=n}else n=s[4];return s[7]!==d||s[8]!==r||s[9]!==n?(a=(0,y.jsxs)("div",{className:"flex flex-wrap gap-x-2.5 gap-y-1.5 rounded-lg border border-border/60 bg-muted/20 px-2.5 py-2",dir:d,children:[r,n]}),s[7]=d,s[8]=r,s[9]=n,s[10]=a):a=s[10],a}function tI(e){return{...e,text:e.form}}function tz(e){let r,a,s,i,o,l,d,c,m,u,h,x,f=(0,t.c)(41),{picked:p,reference:g,onAsk:b}=e,{data:j}=(0,n.default)(`/api/v1/library/study/lexeme?id=${encodeURIComponent(p.lexeme.id)}&refs=8`,ty),v=j?.lexeme,N="greek"===p.lexeme.language?"grc":"he";return f[0]!==p.lexeme.lemma||f[1]!==N?(r=(0,y.jsx)("span",{className:"font-serif text-[22px] leading-none",lang:N,children:p.lexeme.lemma}),f[0]=p.lexeme.lemma,f[1]=N,f[2]=r):r=f[2],f[3]!==p.lexeme.transliteration?(a=(0,y.jsx)("span",{className:"text-[13px] italic",children:p.lexeme.transliteration}),f[3]=p.lexeme.transliteration,f[4]=a):a=f[4],f[5]!==p.lexeme.id?(s=(0,y.jsx)(tC,{id:p.lexeme.id},p.lexeme.id),f[5]=p.lexeme.id,f[6]=s):s=f[6],f[7]!==v?(i=v?.pronunciation&&(0,y.jsx)("span",{className:"text-[12px] text-muted-foreground",children:v.pronunciation}),f[7]=v,f[8]=i):i=f[8],f[9]!==p.lexeme.id?(o=(0,y.jsx)("span",{className:"ml-auto rounded-full border border-border px-1.5 py-px font-mono text-[10px] text-muted-foreground",children:p.lexeme.id}),f[9]=p.lexeme.id,f[10]=o):o=f[10],f[11]!==r||f[12]!==a||f[13]!==s||f[14]!==i||f[15]!==o?(l=(0,y.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[r,a,s,i,o]}),f[11]=r,f[12]=a,f[13]=s,f[14]=i,f[15]=o,f[16]=l):l=f[16],f[17]!==p.word||f[18]!==g?(d=(0,y.jsxs)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:["“",p.word,"” in ",g]}),f[17]=p.word,f[18]=g,f[19]=d):d=f[19],f[20]!==p.lexeme.language||f[21]!==p.original?(c=p.original&&(0,y.jsxs)("p",{className:"mt-1 text-[12px] leading-snug",children:[(0,y.jsx)("span",{className:"font-serif text-[15px]",lang:"greek"===p.lexeme.language?"grc":"he",children:p.original.form})," ",(0,y.jsx)("span",{className:"text-muted-foreground italic",children:p.original.transliteration}),p.original.parsing&&(0,y.jsxs)("span",{className:"text-muted-foreground",children:[" ","— ",p.original.parsing]})]}),f[20]=p.lexeme.language,f[21]=p.original,f[22]=c):c=f[22],f[23]!==j||f[24]!==v||f[25]!==p.lexeme.gloss?(m=v?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("p",{className:"mt-1.5 text-[13px] leading-snug",children:v.definition}),v.kjvUsage&&(0,y.jsxs)("p",{className:"mt-1.5 text-[12px] text-muted-foreground leading-snug",children:[(0,y.jsx)("span",{className:"font-medium text-foreground",children:"KJV renders it:"})," ",v.kjvUsage]}),v.derivation&&(0,y.jsx)("p",{className:"mt-1 text-[11.5px] text-muted-foreground leading-snug",children:v.derivation}),v.briefGloss&&(0,y.jsxs)("p",{className:"mt-1.5 text-[12px] leading-snug",children:[(0,y.jsx)("span",{className:"font-medium",children:"Brief lexicon:"})," ",v.briefGloss,v.morphClass&&(0,y.jsxs)("span",{className:"text-muted-foreground",children:[" ","· ",v.morphClass]})]}),v.briefDefinition&&(0,y.jsx)("p",{className:"mt-1 text-[12px] text-muted-foreground leading-snug",children:v.briefDefinition}),"number"==typeof j?.occurrences&&(0,y.jsxs)("div",{className:"mt-2",children:[(0,y.jsxs)("p",{className:"font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:["In ",j.occurrences," ",1===j.occurrences?"verse":"verses"]}),(0,y.jsxs)("ul",{className:"mt-1 flex flex-col gap-1",children:[(j.references??[]).map(tE),j.occurrences>(j.references?.length??0)&&(0,y.jsxs)("li",{className:"text-[11px] text-muted-foreground",children:["…and ",j.occurrences-(j.references?.length??0)," ","more."]})]})]})]}):(0,y.jsx)("p",{className:"mt-1.5 text-[12px] text-muted-foreground",children:p.lexeme.gloss}),f[23]=j,f[24]=v,f[25]=p.lexeme.gloss,f[26]=m):m=f[26],f[27]!==b||f[28]!==p.lexeme||f[29]!==p.word||f[30]!==g?(u=b&&(0,y.jsxs)("button",{className:"mt-2.5 inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10",onClick:()=>{var e,t;return b((e=p.word,t=p.lexeme,`In ${g}, the word "${e}" translates ${t.lemma} (${t.transliteration}, Strong's ${t.id}). Explain what it means, how it is used elsewhere in Scripture, and what it adds to this verse.`))},type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," Ask Genius about this word"]}),f[27]=b,f[28]=p.lexeme,f[29]=p.word,f[30]=g,f[31]=u):u=f[31],f[32]!==j?(h=j?.attribution&&(0,y.jsx)("p",{className:"mt-2 text-[10px] text-muted-foreground
10/80 leading-snug",children:j.attribution}),f[32]=j,f[33]=h):h=f[33],f[34]!==m||f[35]!==u||f[36]!==h||f[37]!==l||f[38]!==d||f[39]!==c?(x=(0,y.jsxs)("div",{className:"rounded-lg border border-border/60 bg-muted/30 px-3 py-2.5",children:[l,d,c,m,u,h]}),f[34]=m,f[35]=u,f[36]=h,f[37]=l,f[38]=d,f[39]=c,f[40]=x):x=f[40],x}function tE(e){return(0,y.jsxs)("li",{className:"text-[12px] leading-snug",children:[(0,y.jsx)(T.default,{className:"font-medium text-primary hover:underline",href:(0,et.kjvReaderHref)(e.reference),children:e.reference})," ",(0,y.jsx)("span",{className:"text-muted-foreground",children:e.text.length>110?`${e.text.slice(0,110).trimEnd()}…`:e.text})]},e.reference)}let tT=[{id:"language",label:"Language",hint:"The Hebrew or Greek behind each word, and why it reads this way",icon:(0,y.jsx)($,{className:"size-3.5"})},{id:"commentary",label:"Commentary",hint:"The classic commentaries, and the Church Fathers",icon:(0,y.jsx)(_.MessageSquareQuoteIcon,{className:"size-3.5"})},{id:"related",label:"Related",hint:"Passages that connect to this one, as a list or a mind map",icon:(0,y.jsx)(C.Link2Icon,{className:"size-3.5"})},{id:"compare",label:"Compare",hint:"The verse in every translation, the differences lit",icon:(0,y.jsx)(S.default,{className:"size-3.5"})},{id:"history",label:"History",hint:"When it happened, when it was written, where and who",icon:(0,y.jsx)(k.ClockIcon,{className:"size-3.5"})},{id:"videos",label:"Videos",hint:"The BibleProject's videos on this book",icon:(0,y.jsx)(z.PlayIcon,{className:"size-3.5"})}];function tA(e){let n,a,s,i,o,l,d,c,m,u,h=(0,t.c)(24),{reference:x,onAsk:f}=e,[p,g]=(0,r.useState)(!1);if(p){let e,t;return h[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>g(!1),h[0]=e):e=h[0],h[1]!==x?(t=(0,y.jsx)(e7,{onBack:e,reference:x}),h[1]=x,h[2]=t):t=h[2],t}return h[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>g(!0),h[3]=n):n=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,y.jsx)(I.NetworkIcon,{className:"size-5 shrink-0 text-primary"}),h[4]=a):a=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,y.jsx)("span",{className:"font-semibold text-[13px] text-primary",children:"Open the mind map"}),h[5]=s):s=h[5],h[6]!==x?(i=(0,y.jsxs)("button",{className:"flex items-center gap-3 rounded-lg border border-primary/60 bg-primary/5 px-3 py-2.5 text-left transition-colors hover:bg-primary/10",onClick:n,type:"button",children:[a,(0,y.jsxs)("span",{className:"flex flex-col",children:[s,(0,y.jsxs)("span",{className:"text-[12px] text-muted-foreground",children:["Every related verse as a branch off ",x,", full size — tap a leaf to read it."]})]})]}),h[6]=x,h[7]=i):i=h[7],h[8]!==f||h[9]!==x?(o=(0,y.jsx)(en,{onAsk:f,reference:x}),h[8]=f,h[9]=x,h[10]=o):o=h[10],h[11]===Symbol.for("react.memo_cache_sentinel")?(l=(0,y.jsx)("p",{className:"mb-1.5 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:"In the dictionaries"}),h[11]=l):l=h[11],h[12]!==f||h[13]!==x?(d=(0,y.jsxs)("div",{children:[l,(0,y.jsx)(ec,{kind:"dictionary",onAsk:f,reference:x})]}),h[12]=f,h[13]=x,h[14]=d):d=h[14],h[15]===Symbol.for("react.memo_cache_sentinel")?(c=(0,y.jsx)("p",{className:"mb-1.5 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:"Topics"}),h[15]=c):c=h[15],h[16]!==f||h[17]!==x?(m=(0,y.jsxs)("div",{children:[c,(0,y.jsx)(ec,{kind:"topic",onAsk:f,reference:x})]}),h[16]=f,h[17]=x,h[18]=m):m=h[18],h[19]!==i||h[20]!==o||h[21]!==d||h[22]!==m?(u=(0,y.jsxs)("div",{className:"flex flex-col gap-3",children:[i,o,d,m]}),h[19]=i,h[20]=o,h[21]=d,h[22]=m,h[23]=u):u=h[23],u}function tR({reference:e,edition:t}){let[n,a]=(0,r.useState)("idle"),s=async()=>{a("sending");try{let r=await fetch("/api/v1/library/memory",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:e,edition:t})});a(r.ok?"added":401===r.status?"signed-out":"error")}catch{a("error")}};return"added"===n?(0,y.jsxs)(T.default,{className:"inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary hover:underline",href:"/library/memory",children:[(0,y.jsx)(w.BrainIcon,{className:"size-3"})," In your memory verses"]}):"signed-out"===n?(0,y.jsxs)(T.default,{className:"inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary hover:underline",href:"/login",children:[(0,y.jsx)(w.BrainIcon,{className:"size-3"})," Sign in to memorize"]}):(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10 disabled:opacity-50",disabled:"sending"===n,onClick:s,type:"button",children:[(0,y.jsx)(w.BrainIcon,{className:"size-3"})," ","error"===n?"Couldn't add — try again":"Memorize"]})}let tL=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`${t.status}`);return await t.json()};function tP(e){return!e}e.s(["ExploreConsole",0,function(e){let n,s,i,o,l,d,c,m,u,h,x,f,p,g,b,v,w=(0,t.c)(54),{reference:k,verse:S,onAsk:$,busy:C,initialTab:_}=e,I=void 0!==C&&C,{isSignedIn:z}=(0,j.useAuth)(),[T,A]=(0,r.useState)(void 0===_?"language":_),[R,L]=(0,r.useState)(!1);w[0]!==T?(n=tT.find(e=>e.id===T)??tT[0],w[0]=T,w[1]=n):n=w[1];let M=n;w[2]!==k?(s=()=>{let e=encodeURIComponent(k);for(let t of[`/api/v1/library/study/words?ref=${e}`,`/api/v1/library/study/commentary?ref=${e}`,`/api/v1/library/study/fathers?ref=${e}&limit=6`,`/api/v1/library/study/cross-references?ref=${e}&limit=10`,`/api/v1/library/study/references?ref=${e}&kind=dictionary`,`/api/v1/library/study/references?ref=${e}&kind=topic`,`/api/v1/library/study/history?ref=${e}`,`/api/v1/library/study/videos?ref=${e}`,tb(k,et.CONCORDANCE_NASB.slug)])(0,a.preload)(t,tL).catch(()=>void 0)},i=[k],w[2]=k,w[3]=s,w[4]=i):(s=w[3],i=w[4]),(0,r.useEffect)(s,i),w[5]!==R||w[6]!==T?(o=tT.map(e=>(0,y.jsxs)("button",{"aria-selected":e.id===T&&!R,className:`inline-flex shrink-0 items-center gap-1.5 rounded-full px-3 py-1.5 font-medium text-[12.5px] transition-colors ${e.id===T&&!R?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,onClick:()=>{A(e.id),L(!1)},role:"tab",type:"button",children:[e.icon,e.label]},e.id)),w[5]=R,w[6]=T,w[7]=o):o=w[7],w[8]!==o?(l=(0,y.jsx)("div",{"aria-label":"Ways into this verse",className:"flex gap-0.5 overflow-x-auto border-border/60 border-b px-3 py-2",role:"tablist",children:o}),w[8]=o,w[9]=l):l=w[9],w[10]!==M.hint||w[11]!==M.label||w[12]!==R||w[13]!==z||w[14]!==$||w[15]!==k||w[16]!==T||w[17]!==S?(d=(0,y.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-4 py-3",children:R?(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("button",{className:"self-start font-medium text-meta text-primary hover:underline",onClick:()=>L(!1),type:"button",children:["← Back to ",M.label]}),(0,y.jsx)(eg,{reference:k})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("p",{className:"mb-2 text-[11px] text-muted-foreground",children:M.hint}),"language"===T&&(0,y.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,y.jsx)(tv,{autoPick:!0,defaultShowOriginal:!0,onAsk:$,reference:k,shownText:S.text,shownVersion:S.version}),(0,y.jsx)(ek,{reference:k,signedIn:!!z})]}),"commentary"===T&&(0,y.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,y.jsx)(W,{onAsk:$,reference:k}),(0,y.jsx)(P,{onAsk:$,reference:k})]}),"related"===T&&(0,y.jsx)(tA,{onAsk:$,reference:k}),"compare"===T&&(0,y.jsx)(Z,{reference:k,verse:S}),"history"===T&&(0,y.jsx)(e1,{onAsk:$,reference:k}),"videos"===T&&(0,y.jsx)(td,{reference:k})]})}),w[10]=M.hint,w[11]=M.label,w[12]=R,w[13]=z,w[14]=$,w[15]=k,w[16]=T,w[17]=S,w[18]=d):d=w[18],w[19]===Symbol.for("react.memo_cache_sentinel")?(c=(0,y.jsx)("span",{className:"mr-1 font-semibold text-[10.5px] text-muted-foreground uppercase tracking-wider",children:"Do"}),w[19]=c):c=w[19],w[20]!==k||w[21]!==S?(m=(0,y.jsx)(ti,{reference:k,verse:S}),w[20]=k,w[21]=S,w[22]=m):m=w[22],w[23]!==k||w[24]!==S.edition||w[25]!==S.text||w[26]!==S.version?(u=(0,y.jsx)(eO,{edition:S.edition,label:"Verse image",reference:k,text:S.text,version:S.version}),w[23]=k,w[24]=S.edition,w[25]=S.text,w[26]=S.version,w[27]=u):u=w[27],w[28]!==k||w[29]!==S.edition?(h=(0,y.jsx)(tR,{edition:S.edition,reference:k}),w[28]=k,w[29]=S.edition,w[30]=h):h=w[30];let O=`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 font-medium text-meta transition-colors ${R?"border-primary bg-primary/10 text-primary":"border-border text-primary hover:bg-primary/10"}`;if(w[31]===Symbol.for("react.memo_cache_sentinel")?(x=()=>L(tP),w[31]=x):x=w[31],w[32]===Symbol.for("react.memo_cache_sentinel")?(f=(0,y.jsx)(N,{className:"size-3"}),w[32]=f):f=w[32],w[33]!==R||w[34]!==O?(p=(0,y.jsxs)("button",{"aria-pressed":R,className:O,onClick:x,type:"button",children:[f," Study guide"]}),w[33]=R,w[34]=O,w[35]=p):p=w[35],w[36]!==I||w[37]!==$||w[38]!==k||w[39]!==S.version){let e,t;w[41]!==I||w[42]!==$?(e=e=>(0,y.jsxs)("button",{className:"inline-flex items-center gap-1.5 rounded-full border border-primary/60 bg-primary/5 px-2.5 py-1 font-medium text-meta text-primary transition-colors hover:bg-primary/10 disabled:opacity-50",disabled:I,onClick:()=>$(e.text),type:"button",children:[(0,y.jsx)(E.SparklesIcon,{className:"size-3"})," ",e.label]},e.label),w[41]=I,w[42]=$,w[43]=e):e=w[43],g=(t=S.version??null,[{label:"Explain this verse",text:`Explain ${k}${t?` (${t})`:""} — what it means in context and why it matters.`},{label:"Apply it today",text:`How might ${k} shape one ordinary day — a decision, a conversation, a habit? Be concrete.`}]).map(e),w[36]=I,w[37]=$,w[38]=k,w[39]=S.version,w[40]=g}else g=w[40];
10return w[44]!==m||w[45]!==u||w[46]!==h||w[47]!==p||w[48]!==g?(b=(0,y.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 border-border/60 border-t bg-muted/20 px-4 py-2.5",children:[c,m,u,h,p,g]}),w[44]=m,w[45]=u,w[46]=h,w[47]=p,w[48]=g,w[49]=b):b=w[49],w[50]!==b||w[51]!==l||w[52]!==d?(v=(0,y.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[l,d,b]}),w[50]=b,w[51]=l,w[52]=d,w[53]=v):v=w[53],v}],932488);var tM=e.i(942666),tO=e.i(59377);function tB(e){return e.stopPropagation()}function tJ(e){return e.stopPropagation()}e.s(["VerseVersionChip",0,function(e){let n,a,s,o,l,d,c,m,u,h,x,f,p=(0,t.c)(40),{verse:b,className:j,onOpenChange:v}=e,[N,w]=(0,r.useState)(!1);p[0]!==b.edition||p[1]!==b.editions||p[2]!==b.version?(n=(a=b.editions??[]).find(e=>e.slug===b.edition)??a.find(e=>e.label===b.version)??null,s=(0,G.editionAbbreviation)(n?.label??b.version??null,n?.abbreviation),p[0]=b.edition,p[1]=b.editions,p[2]=b.version,p[3]=n,p[4]=a,p[5]=s):(n=p[3],a=p[4],s=p[5]);let k=s,S=n?.copyright??b.copyright??null;if(a.length<2){let e;return p[6]!==j||p[7]!==k||p[8]!==b.version?(e=b.version?(0,y.jsx)("span",{className:(0,i.cn)("text-muted-foreground/70",j),children:k}):null,p[6]=j,p[7]=k,p[8]=b.version,p[9]=e):e=p[9],e}p[10]!==v?(o=e=>{w(e),v?.(e)},p[10]=v,p[11]=o):o=p[11];let $=o;p[12]!==$?(l=e=>{$(!1),g(e.slug)},p[12]=$,p[13]=l):l=p[13];let C=l,_=`Translation: ${n?.label??b.version??k}. Change translation`;if(p[14]!==j?(d=(0,i.cn)("inline-flex items-center gap-0.5 rounded-full border border-border/60 px-2 py-0.5 text-meta text-muted-foreground transition-colors hover:border-primary/50 hover:text-primary focus-visible:outline-2",j),p[14]=j,p[15]=d):d=p[15],p[16]===Symbol.for("react.memo_cache_sentinel")?(c=(0,y.jsx)(tM.ChevronDownIcon,{"aria-hidden":!0,className:"size-3"}),p[16]=c):c=p[16],p[17]!==k||p[18]!==_||p[19]!==d?(m=(0,y.jsx)(tO.PopoverTrigger,{asChild:!0,children:(0,y.jsxs)("button",{"aria-label":_,className:d,onClick:tJ,type:"button",children:[k,c]})}),p[17]=k,p[18]=_,p[19]=d,p[20]=m):m=p[20],p[21]!==n?.slug||p[22]!==a||p[23]!==C||p[24]!==b.edition){let e;p[26]!==n?.slug||p[27]!==C||p[28]!==b.edition?(e=e=>{let t=e.slug===(n?.slug??b.edition);return(0,y.jsxs)("button",{"aria-selected":t,className:(0,i.cn)("flex items-baseline gap-2 px-3 py-1.5 text-left text-meta transition-colors hover:bg-accent",t?"font-semibold text-primary":"text-foreground"),onClick:()=>C(e),role:"option",type:"button",children:[(0,y.jsx)("span",{className:"min-w-9 shrink-0 whitespace-nowrap text-muted-foreground tabular-nums",children:(0,G.editionAbbreviation)(e.label,e.abbreviation)}),(0,y.jsx)("span",{className:"min-w-0 truncate",children:e.label})]},e.slug)},p[26]=n?.slug,p[27]=C,p[28]=b.edition,p[29]=e):e=p[29],u=a.map(e),p[21]=n?.slug,p[22]=a,p[23]=C,p[24]=b.edition,p[25]=u}else u=p[25];return p[30]!==S?(h=S?(0,y.jsx)("span",{className:"mt-1 border-border/60 border-t px-3 pt-2 pb-1 text-[10.5px] text-muted-foreground/70 leading-snug",children:S}):null,p[30]=S,p[31]=h):h=p[31],p[32]!==u||p[33]!==h?(x=(0,y.jsxs)(tO.PopoverContent,{align:"start",className:"flex max-h-56 w-60 flex-col overflow-y-auto rounded-lg bg-popover p-0 py-1 shadow-lg backdrop-blur-none",onClick:tB,role:"listbox",children:[u,h]}),p[32]=u,p[33]=h,p[34]=x):x=p[34],p[35]!==$||p[36]!==N||p[37]!==x||p[38]!==m?(f=(0,y.jsxs)(tO.Popover,{onOpenChange:$,open:N,children:[m,x]}),p[35]=$,p[36]=N,p[37]=x,p[38]=m,p[39]=f):f=p[39],f}],231258)},617533,689025,e=>{"use strict";let t={"the acts of the apostles":"Acts","the book of daniel":"Daniel","the book of esther":"Esther","the book of job":"Job","the book of joshua":"Joshua","the book of judges":"Judges","the book of nehemiah":"Nehemiah","the book of psalms":"Psalms","the book of ruth":"Ruth","the book of the prophet ezekiel":"Ezekiel","the book of the prophet isaiah":"Isaiah","the book of the prophet jeremiah":"Jeremiah","the epistle of paul the apostle to philemon":"Philemon","the epistle of paul the apostle to titus":"Titus","the epistle of paul the apostle to the colossians":"Colossians","the epistle of paul the apostle to the ephesians":"Ephesians","the epistle of paul the apostle to the galatians":"Galatians","the epistle of paul the apostle to the hebrews":"Hebrews","the epistle of paul the apostle to the philippians":"Philippians","the epistle of paul the apostle to the romans":"Romans","the fifth book of moses: called deuteronomy":"Deuteronomy","the first book of moses: called genesis":"Genesis","the second book of moses: called exodus":"Exodus","the third book of moses: called leviticus":"Leviticus","the fourth book of moses: called numbers":"Numbers","the first book of the chronicles":"1 Chronicles","the second book of the chronicles":"2 Chronicles","the first book of the kings":"1 Samuel","the second book of the kings":"2 Samuel","the third book of the kings":"1 Kings","the fourth book of the kings":"2 Kings","the first epistle general of john":"1 John","the second epistle general of john":"2 John","the third epistle general of john":"3 John","the first epistle general of peter":"1 Peter","the second general epistle of peter":"2 Peter","the first epistle of paul the apostle to timothy":"1 Timothy","the second epistle of paul the apostle to timothy":"2 Timothy","the first epistle of paul the apostle to the corinthians":"1 Corinthians","the second epistle of paul the apostle to the corinthians":"2 Corinthians","the first epistle of paul the apostle to the thessalonians":"1 Thessalonians","the second epistle of paul the apostle to the thessalonians":"2 Thessalonians","the general epistle of james":"James","the general epistle of jude":"Jude","the gospel according to saint john":"John","the gospel according to saint luke":"Luke","the gospel according to saint mark":"Mark","the gospel according to saint matthew":"Matthew","the lamentations of jeremiah":"Lamentations","the preacher":"Ecclesiastes","the proverbs":"Proverbs","the revelation of saint john the divine":"Revelation","the song of solomon":"Song of Solomon"},r={psalm:"Psalms","song of songs":"Song of Solomon",canticles:"Song of Solomon",qoheleth:"Ecclesiastes",revelations:"Revelation","acts of the apostles":"Acts"}
10,n={gen:"Genesis",gn:"Genesis",ex:"Exodus",exod:"Exodus",lev:"Leviticus",lv:"Leviticus",num:"Numbers",nm:"Numbers",nb:"Numbers",deut:"Deuteronomy",dt:"Deuteronomy",josh:"Joshua",jos:"Joshua",judg:"Judges",jdg:"Judges",jgs:"Judges",ru:"Ruth",rth:"Ruth",sam:"Samuel",sm:"Samuel",kgs:"Kings",ki:"Kings",kin:"Kings",chr:"Chronicles",chron:"Chronicles",ezr:"Ezra",neh:"Nehemiah",ne:"Nehemiah",est:"Esther",esth:"Esther",jb:"Job",ps:"Psalms",psa:"Psalms",pss:"Psalms",prov:"Proverbs",pr:"Proverbs",prv:"Proverbs",eccl:"Ecclesiastes",ecc:"Ecclesiastes",qoh:"Ecclesiastes",song:"Song of Solomon",sos:"Song of Solomon",cant:"Song of Solomon",isa:"Isaiah",is:"Isaiah",jer:"Jeremiah",lam:"Lamentations",ezek:"Ezekiel",eze:"Ezekiel",ezk:"Ezekiel",dan:"Daniel",dn:"Daniel",hos:"Hosea",jl:"Joel",am:"Amos",ob:"Obadiah",obad:"Obadiah",jon:"Jonah",mic:"Micah",mi:"Micah",nah:"Nahum",na:"Nahum",hab:"Habakkuk",hb:"Habakkuk",zeph:"Zephaniah",zep:"Zephaniah",hag:"Haggai",hg:"Haggai",zech:"Zechariah",zec:"Zechariah",mal:"Malachi",matt:"Matthew",mt:"Matthew",mk:"Mark",mrk:"Mark",lk:"Luke",luk:"Luke",jn:"John",jhn:"John",ac:"Acts",rom:"Romans",ro:"Romans",rm:"Romans",cor:"Corinthians",co:"Corinthians",gal:"Galatians",ga:"Galatians",eph:"Ephesians",phil:"Philippians",php:"Philippians",col:"Colossians",thess:"Thessalonians",thes:"Thessalonians",th:"Thessalonians",tim:"Timothy",ti:"Timothy",tit:"Titus",phlm:"Philemon",phm:"Philemon",heb:"Hebrews",jas:"James",jam:"James",pet:"Peter",pt:"Peter",rev:"Revelation",re:"Revelation",rv:"Revelation"},a=/^(?:(1|2|3)|(i{1,3})|(first|second|third))\s+(?=[a-z])/i,s={first:"1",second:"2",third:"3"};function i(e){return e.toLowerCase().replace(/[.]/g,"").replace(/\s+/g," ").trim()}function o(e){let o=i(e),d=t[o];if(d)return d;let c=o.match(a),m="";c&&(m=c[1]??(c[2]?String(c[2].length):s[c[3]]),o=o.slice(c[0].length));let u=r[o]??n[o];u&&(o=i(u));let h=m?`${m} ${o}`:o;return l.get(h)??null}let l=new Map([...new Set([...Object.values(t),"Amos","Ezra","Habakkuk","Haggai","Hosea","Joel","Jonah","Malachi","Micah","Nahum","Obadiah","Zechariah","Zephaniah"])].map(e=>[i(e),e]));[...l.values()];let d=/\b((?:(?:[1-3]|I{1,3}|First|Second|Third)\s+)?[A-Z][A-Za-z]+\.?(?:\s+of\s+[A-Z][A-Za-z]+)?)\s+(\d{1,3}):(\d{1,3})(?:\s*[-–]\s*\d{1,3})?(?:,\s*\d{1,3}(?!\s+[A-Z][A-Za-z]*\s+\d{1,3}:)(?:\s*[-–]\s*\d{1,3})?)*\b/g,c="the-holy-bible-various",m="the-holy-bible",u={[m]:c},h={"Darby Translation":"DBY","Douay-Rheims":"DRA","Geneva Bible":"GNV","Webster’s Revision":"WBS","Hebrew Bible (Westminster Leningrad Codex)":"WLC","Septuagint (Greek Old Testament)":"LXX","Greek New Testament (Textus Receptus)":"TR","Greek New Testament (Text-Critical)":"TCGNT","Vulgata Clementina (Latin)":"VUL"},x=[["Genesis",50],["Exodus",40],["Leviticus",27],["Numbers",36],["Deuteronomy",34],["Joshua",24],["Judges",21],["Ruth",4],["1 Samuel",31],["2 Samuel",24],["1 Kings",22],["2 Kings",25],["1 Chronicles",29],["2 Chronicles",36],["Ezra",10],["Nehemiah",13],["Esther",10],["Job",42],["Psalms",150],["Proverbs",31],["Ecclesiastes",12],["Song of Solomon",8],["Isaiah",66
10],["Jeremiah",52],["Lamentations",5],["Ezekiel",48],["Daniel",12],["Hosea",14],["Joel",3],["Amos",9],["Obadiah",1],["Jonah",4],["Micah",7],["Nahum",3],["Habakkuk",3],["Zephaniah",3],["Haggai",2],["Zechariah",14],["Malachi",4],["Matthew",28],["Mark",16],["Luke",24],["John",21],["Acts",28],["Romans",16],["1 Corinthians",16],["2 Corinthians",13],["Galatians",6],["Ephesians",6],["Philippians",4],["Colossians",4],["1 Thessalonians",5],["2 Thessalonians",3],["1 Timothy",6],["2 Timothy",4],["Titus",3],["Philemon",1],["Hebrews",13],["James",5],["1 Peter",5],["2 Peter",3],["1 John",5],["2 John",1],["3 John",1],["Jude",1],["Revelation",22]],f=x.map(([e])=>e),p=new Map;{let e=0;for(let[t,r]of x)p.set(t,{start:e,chapters:r}),e+=r}let g=/[\u0590-\u05FF]/,b=/[\u0370-\u03FF\u1F00-\u1FFF]/;function y(e){return g.test(e)?"hebrew":b.test(e)?"greek":"latin"}e.s(["BIBLE_READ_SLUG",0,m,"BIBLE_SLUG",0,c,"canonicalBibleBook",0,o,"editionAbbreviation",0,function(e,t){if(t)return t;let r=e&&h[e];if(r)return r;let n=(e??"").split(/\s+/).filter(e=>/^[A-Z]/.test(e)).map(e=>e[0]).join("");return n.length>=2?n.slice(0,4):e??"Version"},"findVerseReferences",0,function(e){let t=[];d.lastIndex=0;let r=d.exec(e);for(;null!==r;){let s=o(r[1]);if(s){let e=r[0].replace(/\s+/g," ").trim();t.push({book:s,chapter:Number(r[2]),verse:Number(r[3]),text:e,label:i(r[1]).replace(a,"")in n?`${s} ${e.slice(r[1].replace(/\s+/g," ").length).trim()}`:e})}r=d.exec(e)}return t},"isRightToLeftLanguage",0,function(e){return/^(he|hbo)(-|$)/i.test(e??"")},"kjvBookOrder",0,function(e){let t=f.indexOf(e);return t<0?null:t+1},"librarySlugFor",0,function(e){return u[e]??e},"readerSlugFor",0,function(e){for(let[t,r]of Object.entries(u))if(r===e)return t;return e},"scriptLang",0,function(e){let t=y(e);return"hebrew"===t?"he":"greek"===t?"grc":null},"scriptOf",0,y,"splitVerseLines",0,function(e){let t=[];for(let r of e.split("\n")){let e=r.match(/^(\d{1,3}):(\d{1,3}) (.*)$/);e&&t.push({chapter:Number(e[1]),verse:Number(e[2]),text:e[3].trim()})}return t},"verseAtOffset",0,function(e,t){let r=e.slice(0,Math.max(0,Math.min(t,e.length))).lastIndexOf("\n")+1,n=e.slice(r,e.indexOf("\n",r)+1||e.length).match(/^(\d{1,3}):(\d{1,3})\s/);return n?{chapter:Number(n[1]),verse:Number(n[2])}:null},"verseOffsets",0,function(e,t,r){let n=`${t}:${r} `,a=e.startsWith(n)?0:e.indexOf(`
11${n}`)+1||-1;if(a<0)return null;let s=a+n.length,i=e.indexOf("\n",s);return{start:s,end:i<0?e.length:i}}],689025),e.s(["CONCORDANCE_NASB",0,{slug:"yv-100",label:"NASB"},"kjvReaderHref",0,function(e){return`/read/${m}?v=${encodeURIComponent(e)}`}],617533)},124069,e=>{"use strict";let t="-apple-system, BlinkMacSystemFont, 'DM Sans', 'Segoe UI', sans-serif";function r(e,t,r,n){let a=[];for(let s of t.split("\n")){let t="";for(let n of s.split(/\s+/).filter(Boolean)){let s=t?`${t} ${n}`:n;e.measureText(s).width<=r||!t?t=s:(a.push(t),t=n)}if(a.push(t),a.length>=n)break}let s=a.slice(0,n);if(a.length>n||t.length>2e3){let e=s.at(-1)??"";s[s.length-1]=`${e.replace(/[.,;:\s]+$/,"")}…`}return s.filter(e=>e.length>0||1===s.length)}async function n(e){let n=document.createElement("canvas").getContext("2d");if(!n)return null;n.font=`700 56px ${t}`;let a=e.title?r(n,e.title,912,3):[];n.font=`400 38px ${t}`;let s=r(n,e.body,912,14),i=Math.max(620,158+(a.length?68*a.length+28:0)+56*s.length+96+84),o=document.createElement("canvas");o.width=2160,o.height=2*i;let l=o.getContext("2d");if(!l)return null;l.scale(2,2);let d=l.createLinearGradient(0,0,1080,i);d.addColorStop(0,"#0b0b14"),d.addColorStop(1,"#171526"),l.fillStyle=d,l.fillRect(0,0,1080,i);let c=84;if(l.fillStyle=e.accent,l.beginPath(),l.roundRect(84,c+4,46,6,3),l.fill(),l.font=`700 26px ${t}`,l.fillText(e.eyebrow.toUpperCase(),146,c+14),c+=74,a.length){for(let e of(l.fillStyle="#f4f3fa",l.font=`700 56px ${t}`,a))l.fillText(e,84,c+56-10),c+=68;c+=28}for(let e of(l.fillStyle=a.length?"#b9b5cc":"#e6e4f2",l.font=`400 38px ${t}`,s))l.fillText(e,84,c+38-8),c+=56;let m=i-84+10;l.font=`400 26px ${t}`,l.fillStyle="#8d89a3",l.fillText(e.tagline,84,m),l.font=`700 30px ${t}`,l.fillStyle="#f4f3fa";let u=l.measureText(e.wordmark).width;return l.fillText(e.wordmark,996-u,m),await new Promise(e=>
11o.toBlob(e,"image/png"))}async function a(e,t){let r=new File([e],t.filename,{type:"image/png"});if(navigator.canShare?.({files:[r]}))try{return await navigator.share({files:[r],title:t.title,...t.text?{text:t.text}:{}}),"shared"}catch{return"failed"}try{return await navigator.clipboard.write([new ClipboardItem({"image/png":e})]),"copied"}catch{try{let r=URL.createObjectURL(e),n=document.createElement("a");return n.href=r,n.download=t.filename,n.click(),URL.revokeObjectURL(r),"downloaded"}catch{return"failed"}}}e.s(["renderAnswerCard",0,n,"shareCardBlob",0,a])},950483,e=>{"use strict";let t=(0,e.i(758277).default)("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",0,t])},445571,e=>{"use strict";var t=e.i(950483);e.s(["CompassIcon",()=>t.default])},503318,e=>{"use strict";let t=(0,e.i(758277).default)("MessageSquareQuote",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 12a2 2 0 0 0 2-2V8H8",key:"1jfesj"}],["path",{d:"M14 12a2 2 0 0 0 2-2V8h-2",key:"1dq9mh"}]]);e.s(["default",0,t])},727598,e=>{"use strict";var t=e.i(503318);e.s(["MessageSquareQuoteIcon",()=>t.default])}]);
12
13//# debugId=5239dbe6-dc57-826c-3662-7cb3e0d974d7

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.