(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60502,e=>{"use strict";e.i(47167);var a=e.i(71645),s=e.i(63398),t=e.i(22677),i=e.i(87922);let o=()=>new Date().toISOString();e.s(["useReadingStorage",0,()=>{let{user:e,sessionReady:n}=(0,s.useAuth)(),r=e?.email||"",[l,h]=(0,a.useState)({email:"",data:null});l.email!==r&&h({email:r,data:null});let u=l.email===r?l.data:null,c=(0,a.useRef)(0),m=(0,a.useRef)(Promise.resolve());(0,a.useEffect)(()=>{c.current+=1},[r]);let d=(0,a.useCallback)(()=>{if(!r||!n)return Promise.resolve();let e=++c.current;return(0,i.fetchWithRetry)(`https://jwhhboergk.execute-api.ap-northeast-2.amazonaws.com/Prod/loadReading?userEmail=${encodeURIComponent(r)}`,{method:"GET",headers:{Authorization:`Bearer ${(0,t.getSessionToken)()}`}}).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.json()}).then(a=>{c.current===e&&h({email:r,data:a})}).catch(a=>{console.error("Failed to load reading progress:",a),c.current===e&&h({email:r,data:null})})},[r,n]),I=(0,a.useCallback)(async(e,a)=>{if(!r)return;h({email:r,data:e});let s=async()=>{try{let s=await fetch("https://jwhhboergk.execute-api.ap-northeast-2.amazonaws.com/Prod/saveReading",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${(0,t.getSessionToken)()}`},body:JSON.stringify({userEmail:r,data:e,replace:a?.replace===!0})});s.ok||console.error(`Failed to save reading progress: HTTP ${s.status}`)}catch(e){console.error("Failed to save reading progress:",e)}};m.current=m.current.then(s,s),await m.current},[r]),g=(0,a.useCallback)((e,a)=>{if(!u)return void d();let s=o();I({startedDate:u.startedDate||s,readDays:u.readDays??0,completedRounds:u.completedRounds??0,readChapters:{...u.readChapters||{},[e]:{...u.readChapters?.[e]||{},[a]:s}},lastRead:{book:e,chapter:a,date:s},bookmarkedVerses:u.bookmarkedVerses})},[u,I,d]),b=(0,a.useCallback)(e=>{if(!u)return void d();if(0===e.length)return;let a=o(),s={...u.readChapters||{}};for(let{book:t,chapter:i}of e)s[t]={...s[t]||{},[i]:s[t]?.[i]??a};let t=e[e.length-1];I({startedDate:u.startedDate||a,readDays:u.readDays??0,completedRounds:u.completedRounds??0,readChapters:s,lastRead:u.lastRead??{book:t.book,chapter:t.chapter,date:a},bookmarkedVerses:u.bookmarkedVerses})},[u,I,d]),p=(0,a.useCallback)((e,a,s)=>{if(!u)return void d();let t=u.bookmarkedVerses??[],i=t.findIndex(t=>t.book===e&&t.chapter===a&&t.verse===s),n=i>=0?t.filter((e,a)=>a!==i):[...t,{book:e,chapter:a,verse:s,bookmarkedAt:o()}];I({...u,bookmarkedVerses:n})},[u,I,d]),k=(0,a.useCallback)((e,a,s,t)=>{let i;if(!u)return void d();let n=u.bookmarkedVerses??[],r=n.findIndex(t=>t.book===e&&t.chapter===a&&t.verse===s);i=null===t?n.filter((e,a)=>a!==r):r>=0?n.map((e,a)=>a===r?{...e,color:t}:e):[...n,{book:e,chapter:a,verse:s,bookmarkedAt:o(),color:t}],I({...u,bookmarkedVerses:i})},[u,I,d]),J=(0,a.useCallback)(async()=>{if(!r)return;let e={startedDate:o(),readDays:0,completedRounds:(u?.completedRounds??0)+1,readChapters:{},lastRead:null,bookmarkedVerses:u?.bookmarkedVerses};await I(e,{replace:!0})},[r,u,I]);return(0,a.useEffect)(()=>{d()},[d]),{data:u,load:d,save:I,markChapterRead:g,markChaptersRead:b,toggleBookmark:p,setVerseHighlight:k,reset:J}}])},36312,e=>{"use strict";var a=e.i(43476),s=e.i(71645),t=e.i(18566),i=e.i(86939),o=e.i(22016),n=e.i(58579),r=e.i(87451);function l({status:e,lang:s,version:t,dueCount:i=0}){let h=(0,n.getUiText)(s),u=new URLSearchParams({lang:s}).toString(),c=new URLSearchParams({lang:s,...t?{version:t}:{}}).toString(),m=Object.keys(e),d=m.length,I=m.filter(a=>e[a]?.done).length,g=m.reduce((a,s)=>a+(e[s]?.total||0),0),b=m.reduce((a,s)=>a+(e[s]?.completed||0),0),p=g?(b/g*100).toFixed(2):"0.00";return(0,a.jsxs)("div",{className:"mb-6 p-4 rounded bg-gray-50 dark:bg-gray-800",children:[(0,a.jsxs)("div",{className:"font-semibold text-lg mb-1",children:["📊 ",h.allProgressSummary]}),(0,a.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-300",children:[h.completedBooks,": ",I.toLocaleString()," / ",d.toLocaleString()," /",h.completionRate,": ",p,"%"]}),(0,a.jsxs)("div",{className:"flex justify-end gap-6 mt-3 text-sm",children:[(0,a.jsxs)(o.default,{href:(0,r.withStaticHtmlPath)(`/writing/summary?${u}`),prefetch:!1,className:"text-blue-600 dark:text-blue-400 hover:underline",children:[h.viewSummary," →"]}),(0,a.jsxs)(o.default,{href:(0,r.withStaticHtmlPath)(`/writing/history?${u}`),prefetch:!1,className:"text-blue-600 dark:text-blue-400 hover:underline",children:[h.viewHistory," →"]}),(0,a.jsxs)(o.default,{href:(0,r.withStaticHtmlPath)(`/writing/review?${c}`),prefetch:!1,className:"text-blue-600 dark:text-blue-400 hover:underline",children:[h.viewReview," ",i>0&&`(${i})`," →"]})]})]})}var h=e.i(1845),u=e.i(60502),c=e.i(51264),m=e.i(700),d=e.i(31582),I=e.i(63398),g=e.i(18480),b=e.i(71192);let p=[3,7,14,30,100,365];function k(e){let a=Object.keys(e).filter(a=>e[a]>0).sort();return(0,b.computeStreakFromDates)(a)}var J=e.i(8350),x=e.i(83656);e.s(["default",0,function(){let[e,o]=(0,s.useState)({}),f=(0,c.useUiLang)(),[S,v]=(0,s.useState)("ko"),[y,C]=(0,s.useState)(f);f!==y&&(C(f),v(f));let[P,w]=(0,s.useState)(""),[N,T]=(0,s.useState)({}),E=(0,t.useRouter)(),R=(0,n.getUiText)(S),{data:M}=(0,u.useReadingStorage)(),{status:j,signIn:H,isAdmin:L}=(0,I.useAuth)(),{data:D}=(0,h.useWritingData)(),A=k(D.history);!function(e,a){let t=(0,s.useRef)(null),i=(0,s.useRef)(""),{user:o}=(0,I.useAuth)(),n=o?.email||"";(0,s.useEffect)(()=>{if(!e?.history||!n)return;let s=k(e.history);i.current!==n&&(i.current=n,t.current=null);let o=t.current;if(null!==o&&s>o){let e=(0,b.checkNewStreakMilestone)(o,s,p);if(e&&!(0,b.isStreakMilestoneAlreadyShown)(`writing-streak-milestone-${n}-${e}`)){(0,b.markStreakMilestoneShown)(`writing-streak-milestone-${n}-${e}`);let s=a.writingStreakMilestoneTitle.replace("{{n}}",String(e)),t=a.writingStreakMilestoneBody.replace("{{n}}",String(e));"u">typeof Notification&&"granted"===Notification.permission&&new Notification(s,{body:t,icon:"/icons/pwa-192.png"})}}t.current=s},[e,a,n])}(D,R);let $=(0,J.getDueRefs)(D.review||{},(0,x.toLocalDateString)()).length;(0,s.useEffect)(()=>{if("1"!==new URLSearchParams(window.location.search).get("resume"))return;let e=(0,g.loadWritingPosition)();e&&E.replace((0,r.withStaticHtmlPath)(`/writing/chapter?book=${encodeURIComponent(e.book)}&chapter=${e.chapter}&lang=${e.lang}&version=${e.version}`))},[E]),(0,s.useEffect)(()=>{fetch((0,d.bibleIndexUrl)()).then(e=>e.json()).then(e=>{let a=(0,m.filterBibleIndex)(e,L),s=navigator.language.split("-")[0],t=window.localStorage.getItem("ui-lang")||"",i=Object.keys(a);if(0===i.length)return;let r=(0,n.chooseInitialLang)(i,{storedLang:t,browserLang:s,fallback:"en"});o(a),v(r),(0,n.setUiLang)(r),w(a[r][0].version)}),fetch((0,d.bibleChapterCountsUrl)()).then(e=>e.json()).then(e=>{T(e.default||{})})},[L]);let O=(0,s.useMemo)(()=>{let e={},a=D.doneBooks;for(let[s,t]of Object.entries(N)){let i=D.doneChapters[s]||[],o=i.length,n=1;for(let e=1;e<=t;e++)if(!i.includes(e)){n=e;break}e[s]={completed:o,total:t,done:!!a[s],nextChapter:n}}return e},[N,D]),z=Object.fromEntries(Object.keys(N).map(e=>[e,i.bookNameMap[S]?.[e]||e])),G=[],K=[],Z=!1;for(let[e,a]of Object.entries(z))"Matthew"===e&&(Z=!0),Z?K.push([e,a]):G.push([e,a]);let U=(e,s,t)=>(0,a.jsxs)("section",{className:"mb-10",children:[(0,a.jsxs)("h2",{className:"text-xl font-semibold mb-3",children:[e," ",(e=>{let a=0,s=0;for(let[t]of e){let e=O[t];e&&(a+=e.completed,s+=e.total)}return`(${a}/${s})`})(s)]}),(0,a.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(80px,1fr))] gap-2",children:s.map(([e,s])=>{let i=O[e],o=i&&i.total>0?Math.round(i.completed/i.total*100):0;return(0,a.jsxs)("div",{onClick:()=>{let a;return a=O[e]?.nextChapter||1,void E.push((0,r.withStaticHtmlPath)(`/writing/chapter?book=${encodeURIComponent(e)}&chapter=${a}&lang=${S}&version=${P}`))},className:`cursor-pointer rounded border shadow p-4 transition-colors ${i?.done?"bg-green-100 dark:bg-green-800 hover:bg-green-200 dark:hover:bg-green-700":`${t} hover:bg-blue-100 dark:hover:bg-blue-900`}`,children:[(0,a.jsx)("div",{className:"font-bold text-center",children:s}),i?.done?(0,a.jsxs)("div",{className:"text-center text-sm text-gray-600 dark:text-gray-300",children:["✔ ",R.done]}):i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-center text-xs text-gray-500 dark:text-gray-400 mt-1",children:[i.completed,"/",i.total]}),(0,a.jsx)("div",{className:"mt-1.5 h-1.5 w-full rounded-full bg-gray-200 dark:bg-gray-600",children:(0,a.jsx)("div",{className:"h-1.5 rounded-full bg-blue-500",style:{width:`${o}%`}})})]}):null]},e)})})]});return"loading"===j?(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:["🖋 ",R.writingTitle]}),(0,a.jsx)("div",{className:"flex h-56 animate-pulse rounded-xl bg-slate-100 dark:bg-slate-800"})]}):"unauthenticated"===j?(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:["🖋 ",R.writingTitle]}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 rounded-xl border border-slate-200 bg-slate-50 min-h-56 py-16 dark:border-slate-700 dark:bg-slate-800",children:[(0,a.jsx)("p",{className:"text-slate-600 dark:text-slate-300",children:R.writingLoginRequired}),(0,a.jsx)("button",{onClick:()=>H(),className:"rounded-lg bg-slate-900 px-5 py-2.5 text-sm font-semibold text-white hover:bg-slate-700 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-white",children:R.login})]})]}):(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:["🖋 ",R.writingTitle]}),A>0&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5 rounded-full bg-amber-50 dark:bg-amber-900/30 border border-amber-200 dark:border-amber-800 px-3 py-1.5",children:[(0,a.jsx)("span",{className:"text-base",children:"🔥"}),(0,a.jsx)("span",{className:"text-xs font-semibold text-amber-700 dark:text-amber-300",children:R.statsWidgetStreak.replace("{{n}}",String(A))})]})]}),M?.lastRead&&(0,a.jsxs)("div",{className:"mb-4 flex items-center gap-3 rounded-lg border border-blue-200 bg-blue-50 px-4 py-3 dark:border-blue-800 dark:bg-blue-950",children:[(0,a.jsxs)("span",{className:"text-sm text-blue-700 dark:text-blue-300",children:["📖 ",i.bookNameMap[S]?.[M.lastRead.book]||M.lastRead.book," ",M.lastRead.chapter,R.chapterUnit]}),(0,a.jsxs)("button",{onClick:()=>E.push((0,r.withStaticHtmlPath)(`/writing/chapter?book=${encodeURIComponent(M.lastRead.book)}&chapter=${M.lastRead.chapter}&lang=${S}&version=${P}`)),className:"ml-auto shrink-0 rounded bg-blue-600 px-3 py-1 text-sm text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-400",children:["🖋 ",R.continueFromLastRead]})]}),(0,a.jsx)(l,{status:O,lang:S,version:P,dueCount:$}),(0,a.jsxs)("div",{className:"flex gap-4 mb-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"mr-2",children:[R.language,":"]}),(0,a.jsx)("select",{value:S,onChange:a=>{let s=a.target.value;(0,n.setUiLang)(s),v(s),w(e[s]?.[0]?.version||"")},className:"h-9 px-2 py-1 border rounded bg-white dark:bg-gray-800 dark:text-white",children:Object.keys(e).map(e=>(0,a.jsx)("option",{value:e,children:e.toUpperCase()},e))})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{className:"mr-2",children:[R.version,":"]}),(0,a.jsx)("select",{value:P,onChange:e=>w(e.target.value),className:"h-9 px-2 py-1 border rounded bg-white dark:bg-gray-800 dark:text-white",children:e[S]?.map(e=>(0,a.jsx)("option",{value:e.version,children:e.label},e.version))})]})]}),U(`📘 ${R.oldTestament}`,G,"bg-gray-100 dark:bg-gray-700"),U(`📕 ${R.newTestament}`,K,"bg-gray-50 dark:bg-gray-800")]})}],36312)},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":"Илчлэлт"}}])},71192,e=>{"use strict";var a=e.i(83656);function s(e){let[s,t,i]=e.split("-").map(Number),o=new Date(s,t-1,i,12);return o.setDate(o.getDate()-1),(0,a.toLocalDateString)(o)}e.s(["checkNewStreakMilestone",0,function(e,a,s){for(let t of s)if(e=t)return t;return null},"computeStreakFromDates",0,function(e){if(0===e.length)return 0;let t=(0,a.toLocalDateString)(),i=s(t),o=e[e.length-1];if(o!==t&&o!==i)return 0;let n=0,r=o;for(let a=e.length-1;a>=0;a--)if(e[a]===r)n++,r=s(r);else if(e[a]{"use strict";let a="writing-last-position";e.s(["loadWritingPosition",0,function(){try{let e=window.localStorage.getItem(a);if(!e)return null;let s=JSON.parse(e);if(!s.book||!s.chapter||!s.lang||!s.version)return null;return s}catch{return null}},"saveWritingPosition",0,function(e){try{let s={...e,updatedAt:new Date().toISOString()};window.localStorage.setItem(a,JSON.stringify(s))}catch{}}])}]);