(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12491,e=>{"use strict";var a=e.i(43476),s=e.i(22016),t=e.i(7670),o=e.i(78744),i=e.i(52456);e.s(["default",0,function({tabs:e,className:r}){let{t:n,withQuery:l,pathname:h}=(0,o.useNavLink)();return(0,a.jsx)("nav",{className:(0,t.default)("w-full px-0 sm:px-2 md:px-6",r),children:(0,a.jsx)("div",{className:"flex w-full gap-0.5 rounded-full border border-slate-200 bg-slate-100 p-1 dark:border-slate-700 dark:bg-slate-800/60 sm:inline-flex sm:w-auto sm:gap-1",children:e.map(e=>{let o=h.endsWith(".html")?h.slice(0,-5):h,r=o===e.matchPath||o.startsWith(`${e.matchPath}/`);return(0,a.jsx)(s.default,{href:l(e.path),prefetch:!1,"aria-current":r?"page":void 0,className:(0,t.default)("min-w-0 flex-1 rounded-full px-2 py-1.5 text-center text-sm font-medium transition sm:flex-none sm:px-4",r?"bg-white text-slate-900 shadow-sm dark:bg-slate-900 dark:text-white":"text-slate-500 hover:text-slate-800 dark:text-slate-400 dark:hover:text-slate-200"),children:(0,a.jsx)(i.default,{children:n[e.key]})},e.path)})})})}])},84551,e=>{"use strict";var a=e.i(43476),s=e.i(71645),t=e.i(22016),o=e.i(63398),i=e.i(86734),r=e.i(52388),n=e.i(86939),l=e.i(34223),h=e.i(58579),u=e.i(87451),m=e.i(31582),c=e.i(700),d=e.i(51264),I=e.i(52456),p=e.i(61056);let b=l.default.default.map(e=>e.book),g=b.indexOf("Matthew"),f=new Set(b.slice(0,g)),x=new Set(b.slice(g));function J(e){let a=new Map;for(let s of[...e].sort((e,a)=>{let{book:s,chapter:t,verse:o}=(0,r.parseNoteRef)(e.ref),{book:i,chapter:n,verse:l}=(0,r.parseNoteRef)(a.ref),h=b.indexOf(s)-b.indexOf(i);return 0!==h?h:t!==n?t-n:o-l})){let{book:e}=(0,r.parseNoteRef)(s.ref);a.has(e)||a.set(e,[]),a.get(e).push(s)}return a}function k({item:e,nameMap:s,locale:o,verseTextMap:i,lang:n,confirmDelete:l,onDeleteClick:h,saveNote:m,t:c}){let{book:d,chapter:I,verse:p}=(0,r.parseNoteRef)(e.ref),b=i.get(e.ref),g=l===e.ref,f=(0,r.isChapterNote)(e.ref);return(0,a.jsxs)("li",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)(t.default,{href:(0,u.withStaticHtmlPath)(`/read?book=${encodeURIComponent(d)}&chapter=${I}&lang=${n}${!f?`&verse=${p}`:""}`),prefetch:!1,className:"text-blue-600 dark:text-blue-400 hover:underline text-sm font-medium",children:[s[d]??d," ",I,f?` (${c.chapterNoteLabel})`:`:${p}`]}),(0,a.jsx)("span",{className:"text-xs text-gray-400 shrink-0",children:new Date(e.updatedAt).toLocaleDateString(o)}),(0,a.jsx)("button",{onClick:()=>h(e.ref,()=>m(d,I,f?0:p,"")),className:`text-xs shrink-0 cursor-pointer transition-colors ${g?"text-red-500 font-semibold":"text-gray-400 hover:text-red-500"}`,"aria-label":"노트 삭제",children:g?c.noteDeleteConfirm:"✕"})]}),b&&(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 italic line-clamp-2",children:b}),(0,a.jsx)("p",{className:"text-sm text-gray-700 dark:text-gray-300 bg-gray-50 dark:bg-gray-800 rounded px-3 py-2",children:e.note})]})}e.s(["default",0,function(){let{user:e,status:t,signIn:l,isAdmin:u}=(0,o.useAuth)(),b=(0,p.useHydrated)(),{notes:g,loading:y,loadError:N,saveNote:C,reload:T}=(0,i.useVerseNotes)(),v=(0,d.useUiLang)(),E=(0,p.useHydrated)(),[P,S]=(0,s.useState)(""),[w,M]=(0,s.useState)("bible"),[R,j]=(0,s.useState)("all"),[H,A]=(0,s.useState)(new Map),[L,$]=(0,s.useState)(null),D=(0,s.useRef)(null),[O,z]=(0,s.useState)(!1),K=Array.from(g.values()).map(e=>(0,r.parseNoteRef)(e.ref).book).sort().join(",");(0,s.useEffect)(()=>{g.size&&E&&e();async function e(){try{let e=await fetch((0,m.bibleIndexUrl)()),a=await e.json(),s=(0,c.filterBibleIndex)(a,u),t=s[v]?.[0]?.version;if(!t)return;let o=new Set;for(let e of g.values())o.add((0,r.parseNoteRef)(e.ref).book);let i=new Map;await Promise.all([...o].map(async e=>{try{let a=await fetch((0,m.bibleBookUrl)(v,t,e));for(let s of(await a.json()).chapters)for(let a of s.verses)i.set(`${e}#${s.chapter}#${a.verse}`,a.text)}catch{}})),A(i)}catch{}}},[K,v,E,u]),(0,s.useEffect)(()=>()=>{D.current&&clearTimeout(D.current)},[]);let G=(e,a)=>{if(D.current&&clearTimeout(D.current),L===e){a(),$(null);return}$(e),D.current=setTimeout(()=>$(null),3e3)},Z=(0,h.getUiText)(v),q=(0,h.getUiLocale)(v),U=n.bookNameMap[v]??n.bookNameMap.en??{};if(!b||"loading"===t||e&&y)return(0,a.jsx)("div",{className:"min-h-screen px-0 sm:px-2 md:px-6 py-6 bg-white dark:bg-gray-900 dark:text-white",children:(0,a.jsx)("p",{children:Z.loading})});if(!e)return(0,a.jsxs)("div",{className:"min-h-screen px-0 sm:px-2 md:px-6 py-6 bg-white dark:bg-gray-900 dark:text-white",children:[(0,a.jsxs)("h1",{className:"text-2xl font-bold mb-4",children:["✎ ",Z.headerNotes]}),(0,a.jsx)("p",{className:"text-gray-500 dark:text-gray-400 mb-4",children:Z.noteLoginRequired}),(0,a.jsx)("button",{onClick:()=>l(),className:"px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 cursor-pointer",children:Z.login})]});if(N&&0===g.size)return(0,a.jsxs)("div",{className:"min-h-screen px-0 sm:px-2 md:px-6 py-6 bg-white text-black dark:bg-gray-900 dark:text-white",children:[(0,a.jsxs)("h1",{className:"text-2xl font-bold mb-4",children:["✎ ",Z.headerNotes]}),(0,a.jsxs)("div",{className:"rounded-xl border border-amber-200 bg-amber-50 px-6 py-10 text-center dark:border-amber-900/50 dark:bg-amber-950/30",children:[(0,a.jsx)("p",{className:"text-sm text-amber-800 dark:text-amber-200",children:Z.noteLoadError}),(0,a.jsx)("button",{onClick:()=>T(),className:"mt-4 rounded-full bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 cursor-pointer",children:Z.searchRetry})]})]});let F=Array.from(g.values()),B=F.filter(e=>{let{book:a}=(0,r.parseNoteRef)(e.ref);return"ot"===R?f.has(a):"nt"!==R||x.has(a)}).filter(e=>{if(!P.trim())return!0;let{book:a,chapter:s,verse:t}=(0,r.parseNoteRef)(e.ref),o=`${U[a]??a} ${s}:${t}`.toLowerCase();return e.note.toLowerCase().includes(P.toLowerCase())||o.includes(P.toLowerCase())}),V="recent"===w?[...B].sort((e,a)=>new Date(a.updatedAt).getTime()-new Date(e.updatedAt).getTime()):null,W="bible"===w?J(B):null;return(0,a.jsxs)("div",{className:"min-h-screen px-0 sm:px-2 md:px-6 py-6 bg-white text-black dark:bg-gray-900 dark:text-white",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsxs)("h1",{className:"text-2xl font-bold",children:["✎ ",Z.headerNotes,F.length>0&&(0,a.jsx)("span",{className:"text-lg font-normal text-gray-500 dark:text-gray-400 ml-1",children:P.trim()?`(${B.length}/${F.length})`:`(${F.length})`})]}),F.length>0&&(0,a.jsx)("button",{onClick:()=>{let e=Array.from(J(F).entries()).flatMap(([,e])=>e.map(e=>{let{book:a,chapter:s,verse:t}=(0,r.parseNoteRef)(e.ref),o=`${U[a]??a} ${s}:${t}`,i=H.get(e.ref);return i?`[${o}] ${i} ${e.note}`:`[${o}] ${e.note}`}));navigator.clipboard.writeText(e.join("\n\n")).then(()=>{z(!0),setTimeout(()=>z(!1),2e3)})},className:"ml-auto text-sm px-3 py-1 rounded border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:border-blue-400 hover:text-blue-600 transition-colors cursor-pointer",children:O?Z.noteExportCopied:Z.noteExportCopy})]}),F.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-2 mb-3",children:[["all","ot","nt"].map(e=>(0,a.jsx)("button",{onClick:()=>j(e),className:`min-w-0 flex-1 sm:flex-none px-3 py-1 text-sm rounded-full border transition-colors ${R===e?"bg-blue-600 text-white border-blue-600":"border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:border-blue-400"}`,children:(0,a.jsx)(I.default,{children:"all"===e?Z.filterAll:"ot"===e?Z.oldTestament:Z.newTestament})},e)),(0,a.jsx)("div",{className:"flex-1 sm:flex-none flex gap-1 justify-end",children:["bible","recent"].map(e=>(0,a.jsx)("button",{onClick:()=>M(e),className:`px-3 py-1 text-sm rounded-full border transition-colors ${w===e?"bg-gray-700 text-white border-gray-700 dark:bg-gray-200 dark:text-gray-900 dark:border-gray-200":"border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:border-gray-500"}`,children:(0,a.jsx)(I.default,{children:"bible"===e?Z.noteSortBibleOrder:Z.noteSortRecent})},e))})]}),(0,a.jsx)("input",{type:"text",value:P,onChange:e=>{S(e.target.value),$(null)},placeholder:Z.noteSearchPlaceholder,className:"w-full mb-4 px-3 py-2 text-sm border rounded dark:bg-gray-800 dark:border-gray-600 dark:text-white focus:outline-none focus:ring-1 focus:ring-blue-400"})]}),0===F.length?(0,a.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:Z.noteEmpty}):0===B.length?(0,a.jsx)("p",{className:"text-gray-500 dark:text-gray-400",children:Z.noteSearchEmpty}):"recent"===w?(0,a.jsx)("ul",{className:"space-y-3",children:(V??[]).map(e=>(0,a.jsx)(k,{item:e,nameMap:U,locale:q,verseTextMap:H,lang:v,confirmDelete:L,onDeleteClick:G,saveNote:C,t:Z},e.ref))}):(0,a.jsx)("div",{className:"space-y-6",children:Array.from((W??new Map).entries()).map(([e,s])=>(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-2 border-b pb-1 dark:border-gray-700",children:U[e]??e}),(0,a.jsx)("ul",{className:"space-y-3",children:s.map(e=>(0,a.jsx)(k,{item:e,nameMap:U,locale:q,verseTextMap:H,lang:v,confirmDelete:L,onDeleteClick:G,saveNote:C,t:Z},e.ref))})]},e))})]})}])},86939,e=>{"use strict";e.s(["bookNameMap",0,{ko:{Genesis:"창세기",Exodus:"출애굽기",Leviticus:"레위기",Numbers:"민수기",Deuteronomy:"신명기",Joshua:"여호수아",Judges:"사사기",Ruth:"룻기","I Samuel":"사무엘상","II Samuel":"사무엘하","I Kings":"열왕기상","II Kings":"열왕기하","I Chronicles":"역대상","II Chronicles":"역대하",Ezra:"에스라",Nehemiah:"느헤미야",Esther:"에스더",Job:"욥기",Psalms:"시편",Proverbs:"잠언",Ecclesiastes:"전도서","Song of Solomon":"아가",Isaiah:"이사야",Jeremiah:"예레미야",Lamentations:"예레미야 애가",Ezekiel:"에스겔",Daniel:"다니엘",Hosea:"호세아",Joel:"요엘",Amos:"아모스",Obadiah:"오바댜",Jonah:"요나",Micah:"미가",Nahum:"나훔",Habakkuk:"하박국",Zephaniah:"스바냐",Haggai:"학개",Zechariah:"스가랴",Malachi:"말라기",Matthew:"마태복음",Mark:"마가복음",Luke:"누가복음",John:"요한복음",Acts:"사도행전",Romans:"로마서","I Corinthians":"고린도전서","II Corinthians":"고린도후서",Galatians:"갈라디아서",Ephesians:"에베소서",Philippians:"빌립보서",Colossians:"골로새서","I Thessalonians":"데살로니가전서","II Thessalonians":"데살로니가후서","I Timothy":"디모데전서","II Timothy":"디모데후서",Titus:"디도서",Philemon:"빌레몬서",Hebrews:"히브리서",James:"야고보서","I Peter":"베드로전서","II Peter":"베드로후서","I John":"요한일서","II John":"요한이서","III John":"요한삼서",Jude:"유다서","Revelation of John":"요한계시록"},en:{Genesis:"Genesis",Exodus:"Exodus",Leviticus:"Leviticus",Numbers:"Numbers",Deuteronomy:"Deuteronomy",Joshua:"Joshua",Judges:"Judges",Ruth:"Ruth","I Samuel":"1 Samuel","II Samuel":"2 Samuel","I Kings":"1 Kings","II Kings":"2 Kings","I Chronicles":"1 Chronicles","II Chronicles":"2 Chronicles",Ezra:"Ezra",Nehemiah:"Nehemiah",Esther:"Esther",Job:"Job",Psalms:"Psalms",Proverbs:"Proverbs",Ecclesiastes:"Ecclesiastes","Song of Solomon":"Song of Solomon",Isaiah:"Isaiah",Jeremiah:"Jeremiah",Lamentations:"Lamentations",Ezekiel:"Ezekiel",Daniel:"Daniel",Hosea:"Hosea",Joel:"Joel",Amos:"Amos",Obadiah:"Obadiah",Jonah:"Jonah",Micah:"Micah",Nahum:"Nahum",Habakkuk:"Habakkuk",Zephaniah:"Zephaniah",Haggai:"Haggai",Zechariah:"Zechariah",Malachi:"Malachi",Matthew:"Matthew",Mark:"Mark",Luke:"Luke",John:"John",Acts:"Acts",Romans:"Romans","I Corinthians":"1 Corinthians","II Corinthians":"2 Corinthians",Galatians:"Galatians",Ephesians:"Ephesians",Philippians:"Philippians",Colossians:"Colossians","I Thessalonians":"1 Thessalonians","II Thessalonians":"2 Thessalonians","I Timothy":"1 Timothy","II Timothy":"2 Timothy",Titus:"Titus",Philemon:"Philemon",Hebrews:"Hebrews",James:"James","I Peter":"1 Peter","II Peter":"2 Peter","I John":"1 John","II John":"2 John","III John":"3 John",Jude:"Jude","Revelation of John":"Revelation"},fr:{Genesis:"Genese",Exodus:"Exode",Leviticus:"Levitique",Numbers:"Nombres",Deuteronomy:"Deuteronome",Joshua:"Josue",Judges:"Juges",Ruth:"Ruth","I Samuel":"1 Samuel","II Samuel":"2 Samuel","I Kings":"1 Rois","II Kings":"2 Rois","I Chronicles":"1 Chroniques","II Chronicles":"2 Chroniques",Ezra:"Esdras",Nehemiah:"Nehemie",Esther:"Esther",Job:"Job",Psalms:"Psaumes",Proverbs:"Proverbes",Ecclesiastes:"Ecclesiaste","Song of Solomon":"Cantique des cantiques",Isaiah:"Esaie",Jeremiah:"Jeremie",Lamentations:"Lamentations",Ezekiel:"Ezechiel",Daniel:"Daniel",Hosea:"Osee",Joel:"Joel",Amos:"Amos",Obadiah:"Abdias",Jonah:"Jonas",Micah:"Michee",Nahum:"Nahum",Habakkuk:"Habacuc",Zephaniah:"Sophonie",Haggai:"Aggee",Zechariah:"Zacharie",Malachi:"Malachie",Matthew:"Matthieu",Mark:"Marc",Luke:"Luc",John:"Jean",Acts:"Actes",Romans:"Romains","I Corinthians":"1 Corinthiens","II Corinthians":"2 Corinthiens",Galatians:"Galates",Ephesians:"Ephesiens",Philippians:"Philippiens",Colossians:"Colossiens","I Thessalonians":"1 Thessaloniciens","II Thessalonians":"2 Thessaloniciens","I Timothy":"1 Timothee","II Timothy":"2 Timothee",Titus:"Tite",Philemon:"Philemon",Hebrews:"Hebreux",James:"Jacques","I Peter":"1 Pierre","II Peter":"2 Pierre","I John":"1 Jean","II John":"2 Jean","III John":"3 Jean",Jude:"Jude","Revelation of John":"Apocalypse"},de:{Genesis:"1 Mose",Exodus:"2 Mose",Leviticus:"3 Mose",Numbers:"4 Mose",Deuteronomy:"5 Mose",Joshua:"Josua",Judges:"Richter",Ruth:"Ruth","I Samuel":"1 Samuel","II Samuel":"2 Samuel","I Kings":"1 Konige","II Kings":"2 Konige","I Chronicles":"1 Chronik","II Chronicles":"2 Chronik",Ezra:"Esra",Nehemiah:"Nehemia",Esther:"Ester",Job:"Hiob",Psalms:"Psalmen",Proverbs:"Spruche",Ecclesiastes:"Prediger","Song of Solomon":"Hohelied",Isaiah:"Jesaja",Jeremiah:"Jeremia",Lamentations:"Klagelieder",Ezekiel:"Hesekiel",Daniel:"Daniel",Hosea:"Hosea",Joel:"Joel",Amos:"Amos",Obadiah:"Obadja",Jonah:"Jona",Micah:"Micha",Nahum:"Nahum",Habakkuk:"Habakuk",Zephaniah:"Zefanja",Haggai:"Haggai",Zechariah:"Sacharja",Malachi:"Maleachi",Matthew:"Matthaus",Mark:"Markus",Luke:"Lukas",John:"Johannes",Acts:"Apostelgeschichte",Romans:"Romer","I Corinthians":"1 Korinther","II Corinthians":"2 Korinther",Galatians:"Galater",Ephesians:"Epheser",Philippians:"Philipper",Colossians:"Kolosser","I Thessalonians":"1 Thessalonicher","II Thessalonians":"2 Thessalonicher","I Timothy":"1 Timotheus","II Timothy":"2 Timotheus",Titus:"Titus",Philemon:"Philemon",Hebrews:"Hebraer",James:"Jakobus","I Peter":"1 Petrus","II Peter":"2 Petrus","I John":"1 Johannes","II John":"2 Johannes","III John":"3 Johannes",Jude:"Judas","Revelation of John":"Offenbarung"},es:{Genesis:"Genesis",Exodus:"Exodo",Leviticus:"Levitico",Numbers:"Numeros",Deuteronomy:"Deuteronomio",Joshua:"Josue",Judges:"Jueces",Ruth:"Ruth","I Samuel":"1 Samuel","II Samuel":"2 Samuel","I Kings":"1 Reyes","II Kings":"2 Reyes","I Chronicles":"1 Cronicas","II Chronicles":"2 Cronicas",Ezra:"Esdras",Nehemiah:"Nehemias",Esther:"Ester",Job:"Job",Psalms:"Salmos",Proverbs:"Proverbios",Ecclesiastes:"Eclesiastes","Song of Solomon":"Cantares",Isaiah:"Isaias",Jeremiah:"Jeremias",Lamentations:"Lamentaciones",Ezekiel:"Ezequiel",Daniel:"Daniel",Hosea:"Oseas",Joel:"Joel",Amos:"Amos",Obadiah:"Abdias",Jonah:"Jonas",Micah:"Miqueas",Nahum:"Nahum",Habakkuk:"Habacuc",Zephaniah:"Sofonias",Haggai:"Hageo",Zechariah:"Zacarias",Malachi:"Malaquias",Matthew:"Mateo",Mark:"Marcos",Luke:"Lucas",John:"Juan",Acts:"Hechos",Romans:"Romanos","I Corinthians":"1 Corintios","II Corinthians":"2 Corintios",Galatians:"Galatas",Ephesians:"Efesios",Philippians:"Filipenses",Colossians:"Colosenses","I Thessalonians":"1 Tesalonicenses","II Thessalonians":"2 Tesalonicenses","I Timothy":"1 Timoteo","II Timothy":"2 Timoteo",Titus:"Tito",Philemon:"Filemon",Hebrews:"Hebreos",James:"Santiago","I Peter":"1 Pedro","II Peter":"2 Pedro","I John":"1 Juan","II John":"2 Juan","III John":"3 Juan",Jude:"Judas","Revelation of John":"Apocalipsis"},pt:{Genesis:"Genesis",Exodus:"Exodo",Leviticus:"Levitico",Numbers:"Numeros",Deuteronomy:"Deuteronomio",Joshua:"Josue",Judges:"Juizes",Ruth:"Rute","I Samuel":"1 Samuel","II Samuel":"2 Samuel","I Kings":"1 Reis","II Kings":"2 Reis","I Chronicles":"1 Cronicas","II Chronicles":"2 Cronicas",Ezra:"Esdras",Nehemiah:"Neemias",Esther:"Ester",Job:"Jo",Psalms:"Salmos",Proverbs:"Proverbios",Ecclesiastes:"Eclesiastes","Song of Solomon":"Cantares",Isaiah:"Isaias",Jeremiah:"Jeremias",Lamentations:"Lamentacoes",Ezekiel:"Ezequiel",Daniel:"Daniel",Hosea:"Oseias",Joel:"Joel",Amos:"Amos",Obadiah:"Obadias",Jonah:"Jonas",Micah:"Miqueias",Nahum:"Naum",Habakkuk:"Habacuque",Zephaniah:"Sofonias",Haggai:"Ageu",Zechariah:"Zacarias",Malachi:"Malaquias",Matthew:"Mateus",Mark:"Marcos",Luke:"Lucas",John:"Joao",Acts:"Atos",Romans:"Romanos","I Corinthians":"1 Corintios","II Corinthians":"2 Corintios",Galatians:"Galatas",Ephesians:"Efesios",Philippians:"Filipenses",Colossians:"Colossenses","I Thessalonians":"1 Tessalonicenses","II Thessalonians":"2 Tessalonicenses","I Timothy":"1 Timoteo","II Timothy":"2 Timoteo",Titus:"Tito",Philemon:"Filemom",Hebrews:"Hebreus",James:"Tiago","I Peter":"1 Pedro","II Peter":"2 Pedro","I John":"1 Joao","II John":"2 Joao","III John":"3 Joao",Jude:"Judas","Revelation of John":"Apocalipse"},ja:{Genesis:"創世記",Exodus:"出エジプト記",Leviticus:"レビ記",Numbers:"民数記",Deuteronomy:"申命記",Joshua:"ヨシュア記",Judges:"士師記",Ruth:"ルツ記","I Samuel":"サムエル記 上","II Samuel":"サムエル記 下","I Kings":"列王記 上","II Kings":"列王記 下","I Chronicles":"歴代誌 上","II Chronicles":"歴代誌 下",Ezra:"エズラ記",Nehemiah:"ネヘミヤ記",Esther:"エステル記",Job:"ヨブ記",Psalms:"詩篇",Proverbs:"箴言",Ecclesiastes:"コヘレトの言葉","Song of Solomon":"雅歌",Isaiah:"イザヤ書",Jeremiah:"エレミヤ書",Lamentations:"哀歌",Ezekiel:"エゼキエル書",Daniel:"ダニエル書",Hosea:"ホセア書",Joel:"ヨエル書",Amos:"アモス書",Obadiah:"オバデヤ書",Jonah:"ヨナ書",Micah:"ミカ書",Nahum:"ナホム書",Habakkuk:"ハバクク書",Zephaniah:"ゼファニヤ書",Haggai:"ハガイ書",Zechariah:"ゼカリヤ書",Malachi:"マラキ書",Matthew:"マタイによる福音書",Mark:"マルコによる福音書",Luke:"ルカによる福音書",John:"ヨハネによる福音書",Acts:"使徒言行録",Romans:"ローマの信徒への手紙","I Corinthians":"コリントの信徒への手紙 一","II Corinthians":"コリントの信徒への手紙 二",Galatians:"ガラテヤの信徒への手紙",Ephesians:"エフェソの信徒への手紙",Philippians:"フィリピの信徒への手紙",Colossians:"コロサイの信徒への手紙","I Thessalonians":"テサロニケの信徒への手紙 一","II Thessalonians":"テサロニケの信徒への手紙 二","I Timothy":"テモテへの手紙 一","II Timothy":"テモテへの手紙 二",Titus:"テトスへの手紙",Philemon:"フィレモンへの手紙",Hebrews:"ヘブライ人への手紙",James:"ヤコブの手紙","I Peter":"ペトロの手紙 一","II Peter":"ペトロの手紙 二","I John":"ヨハネの手紙 一","II John":"ヨハネの手紙 二","III John":"ヨハネの手紙 三",Jude:"ユダの手紙","Revelation of John":"ヨハネの黙示録"},mn:{Genesis:"Эхлэл",Exodus:"Гарлын ном",Leviticus:"Левийн ном",Numbers:"Тоо бүртгэл",Deuteronomy:"Дэд хууль",Joshua:"Иошуа",Judges:"Шүүгчид",Ruth:"Рут","I Samuel":"I Самуел","II Samuel":"II Самуел","I Kings":"I Хаад","II Kings":"II Хаад","I Chronicles":"I Түүхийн ном","II Chronicles":"II Түүхийн ном",Ezra:"Ездра",Nehemiah:"Неемиа",Esther:"Эстер",Job:"Иов",Psalms:"Дуулал",Proverbs:"Сургаалт үгс",Ecclesiastes:"Номлогч","Song of Solomon":"Дуунуудын дуу",Isaiah:"Исаиа",Jeremiah:"Иеремиа",Lamentations:"Гашуудал",Ezekiel:"Иезекиел",Daniel:"Даниел",Hosea:"Хосеа",Joel:"Иоел",Amos:"Амос",Obadiah:"Обадиа",Jonah:"Иона",Micah:"Мика",Nahum:"Наум",Habakkuk:"Хабаккук",Zephaniah:"Зефани",Haggai:"Хаггай",Zechariah:"Захариа",Malachi:"Малаки",Matthew:"Матай",Mark:"Марк",Luke:"Лук",John:"Иохан",Acts:"Үйлс",Romans:"Ромчуудад","I Corinthians":"I Коринтчуудад","II Corinthians":"II Коринтчуудад",Galatians:"Галатчуудад",Ephesians:"Ефесчүүдэд",Philippians:"Филиппчүүдэд",Colossians:"Колоссчуудад","I Thessalonians":"I Тессалоникчуудад","II Thessalonians":"II Тессалоникчуудад","I Timothy":"I Тимотэд","II Timothy":"II Тимотэд",Titus:"Титд",Philemon:"Филемонд",Hebrews:"Еврейчүүдэд",James:"Иаков","I Peter":"I Петр","II Peter":"II Петр","I John":"I Иохан","II John":"II Иохан","III John":"III Иохан",Jude:"Иуда","Revelation of John":"Илчлэлт"}}])},52388,e=>{"use strict";e.s(["isChapterNote",0,function(e){return e.endsWith("#0")},"makeChapterNoteRef",0,function(e,a){return`${e}#${a}#0`},"makeNoteRef",0,function(e,a,s){return`${e}#${a}#${s}`},"parseNoteRef",0,function(e){let a=e.split("#");return{book:a[0],chapter:parseInt(a[1],10),verse:parseInt(a[2],10)}}])},86734,e=>{"use strict";e.i(47167);var a=e.i(71645),s=e.i(77237),t=e.i(63398),o=e.i(52388),i=e.i(22677),r=e.i(87922);function n(e){return`verse_notes_cache_${e}`}function l(e,a,s=!1){try{let t=Date.now();if(!s){let a=localStorage.getItem(n(e));if(a){let e=JSON.parse(a);"number"==typeof e.cachedAt&&(t=e.cachedAt)}}localStorage.setItem(n(e),JSON.stringify({data:a,cachedAt:t}))}catch{}}let h=new Map;e.s(["useVerseNotes",0,function(){let{user:e,sessionReady:u}=(0,t.useAuth)(),m=e?.email||"",c=(0,a.useMemo)(()=>{let e=m?function(e){try{let a=localStorage.getItem(n(e));if(!a)return null;let{data:s,cachedAt:t}=JSON.parse(a);if(Date.now()-t>36e5)return null;return s}catch{return null}}(m):null;return e?new Map(e.map(e=>[e.ref,e])):null},[m]),[d,I]=(0,s.useOwnedState)(m,null),[p,b]=(0,s.useOwnedState)(m,!0),[g,f]=(0,s.useOwnedState)(m,!1),x=d??c??h,J=!!m&&!(d??c)&&p,k=(0,a.useRef)(x);(0,a.useEffect)(()=>{k.current=x},[x]);let y=(0,a.useRef)(0);(0,a.useEffect)(()=>{y.current+=1},[m]);let N=(0,a.useCallback)(()=>{if(!m)return Promise.resolve();let e=++y.current;return c||!u?Promise.resolve():(0,r.fetchWithRetry)(`https://jwhhboergk.execute-api.ap-northeast-2.amazonaws.com/Prod/loadVerseNotes?userEmail=${encodeURIComponent(m)}`,{headers:{Authorization:`Bearer ${(0,i.getSessionToken)()}`}}).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(a=>{y.current===e&&(I(new Map(a.map(e=>[e.ref,e]))),f(!1),l(m,a,!0))}).catch(a=>{console.error("Failed to load verse notes:",a),y.current===e&&f(!0)}).finally(()=>{y.current===e&&b(!1)})},[m,u,c,I,f,b]),C=(0,a.useCallback)(async(e,a,s,t)=>{if(!m)return;let r=(0,o.makeNoteRef)(e,a,s),n=k.current.get(r),h=new Map(k.current);if(t.trim()?h.set(r,{ref:r,note:t.trim(),updatedAt:new Date().toISOString()}):h.delete(r),I(h),l(m,Array.from(h.values())),"u"{N()},[N]),{notes:x,loading:J,loadError:g,saveNote:C,reload:N}}])}]);