bible-ref-parse 3.1.3 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sr-bcv-parser.js +1 -102
- package/dist/sr-bcv-parser.min.js +1 -1
- package/dist/test/sr.spec.js +2 -0
- package/dist/test/zu.spec.js +170 -0
- package/dist/zu-bcv-parser.js +55 -156
- package/dist/zu-bcv-parser.min.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){var e,s,t,a,n={}.hasOwnProperty;e=function(){class e{constructor(){var s,t,a;for(s in this.options={},t=e.prototype.options)n.call(t,s)&&(a=t[s],this.options[s]=a);this.versification_system(this.options.versification_system)}parse(e){return this.reset(),this.s=e,e=this.replace_control_characters(e),[e,this.passage.books]=this.match_books(e),[this.entities]=this.match_passages(e),this}parse_with_context(e,s){var t;return this.reset(),[s,this.passage.books]=this.match_books(this.replace_control_characters(s)),[t,s]=this.match_passages(s),this.reset(),this.s=e,e=this.replace_control_characters(e),[e,this.passage.books]=this.match_books(e),this.passage.books.push({value:"",parsed:[],start_index:0,type:"context",context:s}),e=""+(this.passage.books.length-1)+"/9"+e,[this.entities]=this.match_passages(e),this}reset(){return this.s="",this.entities=[],this.passage?(this.passage.books=[],this.passage.indices={}):(this.passage=new s,this.passage.options=this.options,this.passage.translations=this.translations)}set_options(e){var s,t;for(s in e)n.call(e,s)&&(t=e[s],"include_apocrypha"===s||"versification_system"===s||"case_sensitive"===s?this[s](t):this.options[s]=t);return this}include_apocrypha(e){var s,a,r,i,o;if(null==e||!0!==e&&!1!==e)return this;for(i in this.options.include_apocrypha=e,this.regexps.books=this.regexps.get_books(e,this.options.case_sensitive),r=this.translations)n.call(r,i)&&"aliases"!==i&&"alternates"!==i&&(null==(s=this.translations[i]).chapters&&(s.chapters={}),null==(a=this.translations[i].chapters).Ps&&(a.Ps=t.shallow_clone_array(this.translations.default.chapters.Ps)),!0===e?(o=null!=this.translations[i].chapters.Ps151?this.translations[i].chapters.Ps151[0]:this.translations.default.chapters.Ps151[0],this.translations[i].chapters.Ps[150]=o):151===this.translations[i].chapters.Ps.length&&this.translations[i].chapters.Ps.pop());return this}versification_system(e){var s,a,r,i,o,l,u;if(null==e||null==this.translations[e])return this;if(null!=this.translations.alternates.default)if("default"===e)for(i in null!=this.translations.alternates.default.order&&(this.translations.default.order=t.shallow_clone(this.translations.alternates.default.order)),l=this.translations.alternates.default.chapters)n.call(l,i)&&(o=l[i],this.translations.default.chapters[i]=t.shallow_clone_array(o));else this.versification_system("default");if(null==(s=this.translations.alternates).default&&(s.default={order:null,chapters:{}}),"default"!==e&&null!=this.translations[e].order&&(null==(a=this.translations.alternates.default).order&&(a.order=t.shallow_clone(this.translations.default.order)),this.translations.default.order=t.shallow_clone(this.translations[e].order)),"default"!==e&&null!=this.translations[e].chapters)for(i in u=this.translations[e].chapters)n.call(u,i)&&(o=u[i],null==(r=this.translations.alternates.default.chapters)[i]&&(r[i]=t.shallow_clone_array(this.translations.default.chapters[i])),this.translations.default.chapters[i]=t.shallow_clone_array(o));return this.options.versification_system=e,this.include_apocrypha(this.options.include_apocrypha),this}case_sensitive(e){return null==e||"none"!==e&&"books"!==e||e===this.options.case_sensitive||(this.options.case_sensitive=e,this.regexps.books=this.regexps.get_books(this.options.include_apocrypha,e)),this}translation_info(e="default"){var s,a,r,i,o,l,u,c;for(s in null!=e&&null!=(null!=(l=this.translations.aliases[e])?l.alias:void 0)&&(e=this.translations.aliases[e].alias),null!=e&&null!=this.translations[e]||(e="default"),e!==(i=this.options.versification_system)&&this.versification_system(e),o={alias:e,books:[],chapters:{},order:t.shallow_clone(this.translations.default.order)},u=this.translations.default.chapters)n.call(u,s)&&(a=u[s],o.chapters[s]=t.shallow_clone_array(a));for(s in c=o.order)n.call(c,s)&&(r=c[s],o.books[r-1]=s);return e!==i&&this.versification_system(i),o}replace_control_characters(e){return e=(e=(e=e.replace(this.regexps.control," ")).replace(/\uFF1A/g,":")).replace(/\uFF1B/g,";"),"replace"===this.options.non_latin_digits_strategy&&(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/[٠۰߀०০੦૦୦0౦೦൦๐໐༠၀႐០᠐᥆᧐᪀᪐᭐᮰᱀᱐꘠꣐꤀꧐꩐꯰0]/g,"0")).replace(/[١۱߁१১੧૧୧௧౧೧൧๑໑༡၁႑១᠑᥇᧑᪁᪑᭑᮱᱁᱑꘡꣑꤁꧑꩑꯱1]/g,"1")).replace(/[٢۲߂२২੨૨୨௨౨೨൨๒໒༢၂႒២᠒᥈᧒᪂᪒᭒᮲᱂᱒꘢꣒꤂꧒꩒꯲2]/g,"2")).replace(/[٣۳߃३৩੩૩୩௩౩೩൩๓໓༣၃႓៣᠓᥉᧓᪃᪓᭓᮳᱃᱓꘣꣓꤃꧓꩓꯳3]/g,"3")).replace(/[٤۴߄४৪੪૪୪௪౪೪൪๔໔༤၄႔៤᠔᥊᧔᪄᪔᭔᮴᱄᱔꘤꣔꤄꧔꩔꯴4]/g,"4")).replace(/[٥۵߅५৫੫૫୫௫౫೫൫๕໕༥၅႕៥᠕᥋᧕᪅᪕᭕᮵᱅᱕꘥꣕꤅꧕꩕꯵5]/g,"5")).replace(/[٦۶߆६৬੬૬୬௬౬೬൬๖໖༦၆႖៦᠖᥌᧖᪆᪖᭖᮶᱆᱖꘦꣖꤆꧖꩖꯶6]/g,"6")).replace(/[٧۷߇७৭੭૭୭௭౭೭൭๗໗༧၇႗៧᠗᥍᧗᪇᪗᭗᮷᱇᱗꘧꣗꤇꧗꩗꯷7]/g,"7")).replace(/[٨۸߈८৮੮૮୮௮౮೮൮๘໘༨၈႘៨᠘᥎᧘᪈᪘᭘᮸᱈᱘꘨꣘꤈꧘꩘꯸8]/g,"8")).replace(/[٩۹߉९৯੯૯୯௯౯೯൯๙໙༩၉႙៩᠙᥏᧙᪉᪙᭙᮹᱉᱙꘩꣙꤉꧙꩙꯹9]/g,"9")),e}match_books(e){var s,t,a,n,r,i;for(t=[],n=0,r=(i=this.regexps.books).length;n<r&&(s=i[n],a=!1,e=e.replace(s.regexp,(function(e,n,r){var i;return a=!0,t.push({value:r,parsed:s.osis,type:"book"}),i=null!=s.extra?`/${s.extra}`:"",`${n}${t.length-1}${i}`})),!0!==a||!/^[\s\x1f\d:.,;\-\u2013\u2014]+$/.test(e));n++);return[e=e.replace(this.regexps.translations,(function(e){return t.push({value:e,parsed:e.toLowerCase(),type:"translation"}),`${t.length-1}`})),this.get_book_indices(t,e)]}get_book_indices(e,s){var t,a,n;for(t=0,n=/([\x1f\x1e])(\d+)(?:\/\d+)?\1/g;a=n.exec(s);)e[a[2]].start_index=a.index+t,t+=e[a[2]].value.length-a[0].length;return e}match_passages(e){var s,t,n,r,i,o,l,u,c,p,g,h;for(n=[],p={};i=this.regexps.escaped_passage.exec(e);)[r,u,t]=i,l=u.length,i.index+=r.length-l,/\s[2-9]\d\d\s*$|\s\d{4,}\s*$/.test(u)&&(u=u.replace(/\s+\d+\s*$/,"")),/[\d\x1f\x1e)]$/.test(u)||(u=this.replace_match_end(u)),"delete"===this.options.captive_end_digits_strategy&&(o=i.index+u.length,e.length>o&&/^\w/.test(e.substr(o,1))&&(u=u.replace(/[\s*]+\d+$/,"")),u=u.replace(/(\x1e[)\]]?)[\s*]*\d+$/,"$1")),h=""===(u=u.replace(/[A-Z]+/g,(function(e){return e.toLowerCase()}))).substr(0,1)?0:u.split("")[0].length,c={value:a.parse(u,{punctuation_strategy:this.options.punctuation_strategy}),type:"base",start_index:this.passage.books[t].start_index-h,match:u},"full"===this.options.book_alone_strategy&&"include"===this.options.book_range_strategy&&"b"===c.value[0].type&&(1===c.value.length||c.value.length>1&&"translation_sequence"===c.value[1].type)&&0===h&&(1===this.passage.books[t].parsed.length||this.passage.books[t].parsed.length>1&&"translation"===this.passage.books[t].parsed[1].type)&&/^[234]/.test(this.passage.books[t].parsed[0])&&this.create_book_range(e,c,t),[s,p]=this.passage.handle_obj(c),n=n.concat(s),(g=this.adjust_regexp_end(s,l,u.length))>0&&(this.regexps.escaped_passage.lastIndex-=g);return[n,p]}adjust_regexp_end(e,s,t){var a;return a=0,e.length>0?a=s-e[e.length-1].indices[1]-1:s!==t&&(a=s-t),a}replace_match_end(e){var s,t;for(t=e.length;s=this.regexps.match_end_split.exec(e);)t=s.index+s[0].length;return t<e.length&&(e=e.substr(0,t)),e}create_book_range(s,t,a){var n,r,i,o,l,u,c;for(n=[e.prototype.regexps.first,e.prototype.regexps.second,e.prototype.regexps.third],r=i=1,c=o=parseInt(this.passage.books[a].parsed[0].substr(0,1),10);1<=c?i<c:i>c;r=1<=c?++i:--i)if(u=r===o-1?e.prototype.regexps.range_and:e.prototype.regexps.range_only,null!=(l=s.match(RegExp(`(?:^|\\W)(${n[r-1]}\\s*${u}\\s*)\\x1f${a}\\x1f`,"i"))))return this.add_book_range_object(t,l,r);return!1}add_book_range_object(e,s,t){var a,n,r,i,o,l;if(r=s[1].length,e.value[0]={type:"b_range_pre",value:[{type:"b_pre",value:t.toString(),indices:[s.index,s.index+r]},e.value[0]],indices:[0,e.value[0].indices[1]+r]},e.value[0].value[1].indices[0]+=r,e.value[0].value[1].indices[1]+=r,e.start_index-=r,e.match=s[1]+e.match,1!==e.value.length){for(l=[],a=n=1,i=e.value.length;1<=i?n<i:n>i;a=1<=i?++n:--n)null!=e.value[a].value&&(null!=(null!=(o=e.value[a].value[0])?o.indices:void 0)&&(e.value[a].value[0].indices[0]+=r,e.value[a].value[0].indices[1]+=r),e.value[a].indices[0]+=r,l.push(e.value[a].indices[1]+=r));return l}}osis(){var e,s,t,a,n;for(a=[],e=0,s=(n=this.parsed_entities()).length;e<s;e++)(t=n[e]).osis.length>0&&a.push(t.osis);return a.join(",")}osis_and_translations(){var e,s,t,a,n;for(a=[],e=0,s=(n=this.parsed_entities()).length;e<s;e++)(t=n[e]).osis.length>0&&a.push([t.osis,t.translations.join(",")]);return a}osis_and_indices(){var e,s,t,a,n;for(a=[],e=0,s=(n=this.parsed_entities()).length;e<s;e++)(t=n[e]).osis.length>0&&a.push({osis:t.osis,translations:t.translations,indices:t.indices});return a}parsed_entities(){var e,s,t,a,n,r,i,o,l,u,c,p,g,h,x,_,d,f,v,b,y,k,m,$,E,I,A,z,C,J,R,P;for(_=[],s=a=0,k=this.entities.length;0<=k?a<k:a>k;s=0<=k?++a:--a)if((e=this.entities[s]).type&&"translation_sequence"===e.type&&_.length>0&&s===_[_.length-1].entity_id+1&&(_[_.length-1].indices[1]=e.absolute_indices[1]),null!=e.passages&&!("b"===e.type&&"ignore"===this.options.book_alone_strategy||"b_range"===e.type&&"ignore"===this.options.book_range_strategy||"context"===e.type)){if(P=[],J=null,null!=e.passages[0].translations)for(n=0,i=(m=e.passages[0].translations).length;n<i;n++)R=(null!=($=(C=m[n]).osis)?$.length:void 0)>0?C.osis:"",null==J&&(J=C.alias),P.push(R);else P=[""],J="default";for(x=[],p=[],t=u=0,E=l=e.passages.length;0<=E?u<E:u>E;t=0<=E?++u:--u)if(null==(d=e.passages[t]).type&&(d.type=e.type),!1!==d.valid.valid||("ignore"===this.options.invalid_sequence_strategy&&"sequence"===e.type&&this.snap_sequence("ignore",e,x,t,l),"ignore"!==this.options.invalid_passage_strategy))if("b"!==d.type&&"b_range"!==d.type||"ignore"!==this.options.book_sequence_strategy||"sequence"!==e.type)if("b_range_start"!==d.type&&"range_end_b"!==d.type||"ignore"!==this.options.book_range_strategy||this.snap_range(e,t),null==d.absolute_indices&&(d.absolute_indices=e.absolute_indices),"separate-chapters"===this.options.consecutive_combination_strategy&&d.start.c!==d.end.c)for(t=c=I=d.start.c,A=d.end.c;I<=A?c<=A:c>=A;t=I<=A?++c:--c)y=t===d.start.c?d.start.v:1,v=t===d.end.c?d.end.v:this.translations[J].chapters[d.start.b][t-1],b={b:d.start.b,c:t,v:"bcv"===d.start.type?y:null,type:d.start.type},f={b:d.end.b,c:t,v:"bcv"===d.start.type?v:null,type:d.start.type},p.push({osis:d.valid.valid?this.to_osis(b,f,J):"",type:d.type,indices:d.absolute_indices,translations:P,start:b,end:f,enclosed_indices:d.enclosed_absolute_indices,entity_id:s,entities:[d]});else x.push({osis:d.valid.valid?this.to_osis(d.start,d.end,J):"",type:d.type,indices:d.absolute_indices,translations:P,start:d.start,end:d.end,enclosed_indices:d.enclosed_absolute_indices,entity_id:s,entities:[d]});else this.snap_sequence("book",e,x,t,l);if(0!==x.length||0!==p.length)if("combine"!==this.options.consecutive_combination_strategy&&"separate-chapters"!==this.options.consecutive_combination_strategy||(x.length>1&&(x=this.combine_consecutive_passages(x,J)),x=x.concat(p).sort(((e,s)=>e.indices[0]-s.indices[0]))),"separate"===this.options.sequence_combination_strategy)_=_.concat(x);else{for(z=[],null!=x[r=x.length-1].enclosed_indices&&x[r].enclosed_indices[1]>=0&&(e.absolute_indices[1]=x[r].enclosed_indices[1]),g=0,o=x.length;g<o;g++)(h=x[g]).osis.length>0&&z.push(h.osis);_.push({osis:z.join(","),indices:e.absolute_indices,translations:P,entity_id:s,entities:x})}}return _}to_osis(e,s,t){var a,n;return null==s.c&&null==s.v&&e.b===s.b&&null==e.c&&null==e.v&&"first_chapter"===this.options.book_alone_strategy&&(s.c=1),a={start:"",end:""},null==e.c&&(e.c=1),null==e.v&&(e.v=1),null==s.c&&(this.options.passage_existence_strategy.indexOf("c")>=0||null!=this.passage.translations[t].chapters[s.b]&&1===this.passage.translations[t].chapters[s.b].length?s.c=this.passage.translations[t].chapters[s.b].length:s.c=999),null==s.v&&(null!=this.passage.translations[t].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0?s.v=this.passage.translations[t].chapters[s.b][s.c-1]:s.v=999),this.options.include_apocrypha&&"b"===this.options.ps151_strategy&&(151===e.c&&"Ps"===e.b||151===s.c&&"Ps"===s.b)&&this.fix_ps151(e,s,t),"b"===this.options.osis_compaction_strategy&&1===e.c&&1===e.v&&(999===s.c&&999===s.v||s.c===this.passage.translations[t].chapters[s.b].length&&this.options.passage_existence_strategy.indexOf("c")>=0&&(999===s.v||s.v===this.passage.translations[t].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0))?(a.start=e.b,a.end=s.b):this.options.osis_compaction_strategy.length<=2&&1===e.v&&(999===s.v||s.v===this.passage.translations[t].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0)?(a.start=e.b+"."+e.c.toString(),a.end=s.b+"."+s.c.toString()):(a.start=e.b+"."+e.c.toString()+"."+e.v.toString(),a.end=s.b+"."+s.c.toString()+"."+s.v.toString()),n=a.start===a.end?a.start:a.start+"-"+a.end,null!=e.extra&&(n=e.extra+","+n),null!=s.extra&&(n+=","+s.extra),n}fix_ps151(e,s,t){var a;return"default"!==t&&null==(null!=(a=this.translations[t])?a.chapters.Ps151:void 0)&&this.passage.promote_book_to_translation("Ps151",t),151===e.c&&"Ps"===e.b?151===s.c&&"Ps"===s.b?(e.b="Ps151",e.c=1,s.b="Ps151",s.c=1):(e.extra=this.to_osis({b:"Ps151",c:1,v:e.v},{b:"Ps151",c:1,v:this.passage.translations[t].chapters.Ps151[0]},t),e.b="Prov",e.c=1,e.v=1):(s.extra=this.to_osis({b:"Ps151",c:1,v:1},{b:"Ps151",c:1,v:s.v},t),s.c=150,s.v=this.passage.translations[t].chapters.Ps[149])}combine_consecutive_passages(e,s){var t,a,n,r,i,o,l,u,c,p,g;for(u=[],c={},t=-1,a=!1,n=i=0,g=o=e.length-1;0<=g?i<=g:i>=g;n=0<=g?++i:--i)(l=e[n]).osis.length>0?(p=u.length-1,r=!1,l.enclosed_indices[0]!==t&&(t=l.enclosed_indices[0]),t>=0&&(n===o||e[n+1].enclosed_indices[0]!==l.enclosed_indices[0])&&(r=!0,a=!0),this.is_verse_consecutive(c,l.start,s)?(u[p].end=l.end,u[p].is_enclosed_last=r,u[p].indices[1]=l.indices[1],u[p].enclosed_indices[1]=l.enclosed_indices[1],u[p].osis=this.to_osis(u[p].start,l.end,s)):u.push(l),c={b:l.end.b,c:l.end.c,v:l.end.v}):(u.push(l),c={});return a&&this.snap_enclosed_indices(u),u}snap_enclosed_indices(e){var s,t,a;for(s=0,t=e.length;s<t;s++)null!=(a=e[s]).is_enclosed_last&&(a.enclosed_indices[0]<0&&a.is_enclosed_last&&(a.indices[1]=a.enclosed_indices[1]),delete a.is_enclosed_last);return e}is_verse_consecutive(e,s,t){var a;if(null==e.b)return!1;if(a=null!=this.passage.translations[t].order?this.passage.translations[t].order:this.passage.translations.default.order,e.b===s.b){if(e.c===s.c){if(e.v===s.v-1)return!0}else if(1===s.v&&e.c===s.c-1&&e.v===this.passage.translations[t].chapters[e.b][e.c-1])return!0}else if(1===s.c&&1===s.v&&a[e.b]===a[s.b]-1&&e.c===this.passage.translations[t].chapters[e.b].length&&e.v===this.passage.translations[t].chapters[e.b][e.c-1])return!0;return!1}snap_range(e,s){var t,a,r,i,o,l,u,c;for(a in"b_range_start"===e.type||"sequence"===e.type&&"b_range_start"===e.passages[s].type?(t=1,o="end",c="b_range_start"):(t=0,o="start",c="range_end_b"),l="end"===o?"start":"end",i=e.passages[s][l])n.call(i,a)&&(e.passages[s][l][a]=e.passages[s][o][a]);return"sequence"===e.type?(s>=e.value.length&&(s=e.value.length-1),null!=(r=this.passage.pluck(c,e.value[s]))&&(u=this.snap_range(r,0),0===s?e.absolute_indices[0]=u.absolute_indices[0]:e.absolute_indices[1]=u.absolute_indices[1])):(e.original_type=e.type,e.type=e.value[t].type,e.absolute_indices=[e.value[t].absolute_indices[0],e.value[t].absolute_indices[1]]),e}snap_sequence(e,s,t,a,n){var r;return(r=s.passages[a]).absolute_indices[0]===s.absolute_indices[0]&&a<n-1&&this.get_snap_sequence_i(s.passages,a,n)!==a?(s.absolute_indices[0]=s.passages[a+1].absolute_indices[0],this.remove_absolute_indices(s.passages,a+1)):r.absolute_indices[1]===s.absolute_indices[1]&&a>0?s.absolute_indices[1]=t.length>0?t[t.length-1].indices[1]:s.passages[a-1].absolute_indices[1]:"book"===e&&a<n-1&&!this.starts_with_book(s.passages[a+1])&&(s.passages[a+1].absolute_indices[0]=r.absolute_indices[0]),s}get_snap_sequence_i(e,s,t){var a,n,r,i;for(a=n=r=s+1,i=t;r<=i?n<i:n>i;a=r<=i?++n:--n){if(this.starts_with_book(e[a]))return a;if(e[a].valid.valid)return s}return s}starts_with_book(e){return"b"===e.type.substr(0,1)||("range"===e.type||"ff"===e.type)&&"b"===e.start.type.substr(0,1)}remove_absolute_indices(e,s){var t,a,n,r,i,o;if(e[s].enclosed_absolute_indices[0]<0)return!1;for([o,t]=e[s].enclosed_absolute_indices,a=0,n=(i=e.slice(s)).length;a<n&&((r=i[a]).enclosed_absolute_indices[0]===o&&r.enclosed_absolute_indices[1]===t);a++)r.enclosed_absolute_indices=[-1,-1];return!0}}return e.prototype.s="",e.prototype.entities=[],e.prototype.passage=null,e.prototype.regexps={},e.prototype.options={consecutive_combination_strategy:"combine",osis_compaction_strategy:"b",book_sequence_strategy:"ignore",invalid_sequence_strategy:"ignore",sequence_combination_strategy:"combine",punctuation_strategy:"us",invalid_passage_strategy:"ignore",non_latin_digits_strategy:"ignore",passage_existence_strategy:"bcv",zero_chapter_strategy:"error",zero_verse_strategy:"error",single_chapter_1_strategy:"chapter",book_alone_strategy:"ignore",book_range_strategy:"ignore",captive_end_digits_strategy:"delete",end_range_digits_strategy:"verse",include_apocrypha:!1,ps151_strategy:"c",versification_system:"default",case_sensitive:"none"},e}.call(this),this.bcv_parser=e,s=function(){class e{handle_array(e,s=[],t={}){var a,n,r;for(a=0,n=e.length;a<n;a++)if(null!=(r=e[a])){if("stop"===r.type)break;[s,t]=this.handle_obj(r,s,t)}return[s,t]}handle_obj(e,s,t){return null!=e.type&&null!=this[e.type]?this[e.type](e,s,t):[s,t]}b(e,s,a){var n,r,i,o,l,u,c;for(e.start_context=t.shallow_clone(a),e.passages=[],n=[],i=0,o=(u=this.books[e.value].parsed).length;i<o;i++)l={start:{b:r=u[i]},end:{b:r},valid:c=this.validate_ref(e.start_context.translations,{b:r})},0===e.passages.length&&c.valid?e.passages.push(l):n.push(l);return 0===e.passages.length&&e.passages.push(n.shift()),n.length>0&&(e.passages[0].alternates=n),null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),a={b:e.passages[0].start.b},null!=e.start_context.translations&&(a.translations=e.start_context.translations),[s,a]}b_range(e,s,t){return this.range(e,s,t)}b_range_pre(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),e.passages=[],n=this.pluck("b",e.value),[[r],a]=this.b(n,[],a),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),i={b:e.value[0].value+r.passages[0].start.b.substr(1),type:"b"},e.passages=[{start:i,end:r.passages[0].end,valid:r.passages[0].valid}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),s.push(e),[s,a]}b_range_start(e,s,t){return this.range(e,s,t)}base(e,s,t){return this.indices=this.calculate_indices(e.match,e.start_index),this.handle_array(e.value,s,t)}bc(e,s,a){var n,r,i,o,l,u,c,p,g;for(e.start_context=t.shallow_clone(a),e.passages=[],this.reset_context(a,["b","c","v"]),i=this.pluck("c",e.value).value,n=[],l=0,u=(p=this.books[this.pluck("b",e.value).value].parsed).length;l<u;l++)o="c",c={start:{b:r=p[l]},end:{b:r},valid:g=this.validate_ref(e.start_context.translations,{b:r,c:i})},(g.messages.start_chapter_not_exist_in_single_chapter_book||g.messages.start_chapter_1)&&(c.valid=this.validate_ref(e.start_context.translations,{b:r,v:i}),g.messages.start_chapter_not_exist_in_single_chapter_book&&(c.valid.messages.start_chapter_not_exist_in_single_chapter_book=1),c.start.c=1,c.end.c=1,o="v"),c.start[o]=i,[c.start.c,c.start.v]=this.fix_start_zeroes(c.valid,c.start.c,c.start.v),null==c.start.v&&delete c.start.v,c.end[o]=c.start[o],0===e.passages.length&&c.valid.valid?e.passages.push(c):n.push(c);return 0===e.passages.length&&e.passages.push(n.shift()),n.length>0&&(e.passages[0].alternates=n),null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),this.set_context_from_object(a,["b","c","v"],e.passages[0].start),s.push(e),[s,a]}bc_title(e,s,a){var n,r,i,o,l;if(e.start_context=t.shallow_clone(a),[[n],a]=this.bc(this.pluck("bc",e.value),[],a),"Ps"!==n.passages[0].start.b.substr(0,2)&&null!=n.passages[0].alternates)for(r=i=0,o=n.passages[0].alternates.length;0<=o?i<o:i>o;r=0<=o?++i:--i)if("Ps"===n.passages[0].alternates[r].start.b.substr(0,2)){n.passages[0]=n.passages[0].alternates[r];break}return"Ps"!==n.passages[0].start.b.substr(0,2)?(s.push(n),[s,a]):(this.books[this.pluck("b",n.value).value].parsed=["Ps"],null==(l=this.pluck("title",e.value))&&(l=this.pluck("v",e.value)),e.value[1]={type:"v",value:[{type:"integer",value:1,indices:l.indices}],indices:l.indices},e.type="bcv",this.bcv(e,s,e.start_context))}bcv(e,s,a){var n,r,i,o,l,u,c,p,g,h;for(e.start_context=t.shallow_clone(a),e.passages=[],this.reset_context(a,["b","c","v"]),i=this.pluck("bc",e.value),o=this.pluck("c",i.value).value,g=this.pluck("v",e.value).value,n=[],l=0,u=(p=this.books[this.pluck("b",i.value).value].parsed).length;l<u;l++)r=p[l],h=this.validate_ref(e.start_context.translations,{b:r,c:o,v:g}),[o,g]=this.fix_start_zeroes(h,o,g),c={start:{b:r,c:o,v:g},end:{b:r,c:o,v:g},valid:h},0===e.passages.length&&h.valid?e.passages.push(c):n.push(c);return 0===e.passages.length&&e.passages.push(n.shift()),n.length>0&&(e.passages[0].alternates=n),null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),this.set_context_from_object(a,["b","c","v"],e.passages[0].start),s.push(e),[s,a]}bv(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),[n,i]=e.value,r={indices:e.indices,value:[{type:"bc",value:[n,{type:"c",value:[{type:"integer",value:1}]}]},i]},[[r],a]=this.bcv(r,[],a),e.passages=r.passages,null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),[s,a]}c(e,s,a){var n,r;return e.start_context=t.shallow_clone(a),n="integer"===e.type?e.value:this.pluck("integer",e.value).value,!(r=this.validate_ref(e.start_context.translations,{b:a.b,c:n})).valid&&r.messages.start_chapter_not_exist_in_single_chapter_book?this.v(e,s,a):([n]=this.fix_start_zeroes(r,n),e.passages=[{start:{b:a.b,c:n},end:{b:a.b,c:n},valid:r}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),s.push(e),a.c=n,this.reset_context(a,["v"]),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),[s,a])}c_psalm(e,s,t){var a;return e.type="bc",a=parseInt(this.books[e.value].value.match(/^\d+/)[0],10),e.value=[{type:"b",value:e.value,indices:e.indices},{type:"c",value:[{type:"integer",value:a,indices:e.indices}],indices:e.indices}],this.bc(e,s,t)}c_title(e,s,a){var n;return e.start_context=t.shallow_clone(a),"Ps"!==a.b?this.c(e.value[0],s,a):(n=this.pluck("title",e.value),e.value[1]={type:"v",value:[{type:"integer",value:1,indices:n.indices}],indices:n.indices},e.type="cv",this.cv(e,s,e.start_context))}cv(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),n=this.pluck("c",e.value).value,r=this.pluck("v",e.value).value,i=this.validate_ref(e.start_context.translations,{b:a.b,c:n,v:r}),[n,r]=this.fix_start_zeroes(i,n,r),e.passages=[{start:{b:a.b,c:n,v:r},end:{b:a.b,c:n,v:r},valid:i}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),s.push(e),a.c=n,a.v=r,null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),[s,a]}cb_range(e,s,t){var a,n,r;return e.type="range",[a,r,n]=e.value,e.value=[{type:"bc",value:[a,r],indices:e.indices},n],n.indices[1]=e.indices[1],this.range(e,s,t)}cv_range(e,s,a){var n,r,i,o,l;for(i in e.start_context=t.shallow_clone(a),e.type="range",[l,r]=e.value,n=null,o=this.books)if(o[i].parsed.indexOf(a.b)>=0){n=i;break}return e.value=[{type:"bcv",value:[{type:"bc",value:[{type:"b",value:n,indices:e.indices},{type:"c",value:[{type:"integer",value:a.c,indices:e.indices}],indices:e.indices}],indices:e.indices},l],indices:e.indices},r],this.range(e,s,a)}bc_cv_range(e,s,a){var n,r,i,o,l,u;return e.start_context=t.shallow_clone(a),e.type="range",[r,o]=e.value,n=this.pluck("b",r.value).value,i=this.pluck("c",r.value).value,[u,l]=o.value,e.value=[{type:"bcv",value:[{type:"bc",value:[{type:"b",value:n,indices:e.indices},{type:"c",value:[{type:"integer",value:i,indices:e.indices}],indices:e.indices}],indices:e.indices},u],indices:e.indices},l],this.range(e,s,a)}context(e,s,a){var r,i;for(r in e.start_context=t.shallow_clone(a),e.passages=[],i=this.books[e.value].context)n.call(i,r)&&(a[r]=this.books[e.value].context[r]);return s.push(e),[s,a]}cv_psalm(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),e.type="bcv",[r,i]=e.value,[[n]]=this.c_psalm(r,[],e.start_context),e.value=[n,i],this.bcv(e,s,a)}ff(e,s,a){return e.start_context=t.shallow_clone(a),e.value.push({type:"integer",indices:e.indices,value:999}),[[e],a]=this.range(e,[],e.start_context),e.value[0].indices=e.value[1].indices,e.value[0].absolute_indices=e.value[1].absolute_indices,e.value.pop(),null!=e.passages[0].valid.messages.end_verse_not_exist&&delete e.passages[0].valid.messages.end_verse_not_exist,null!=e.passages[0].valid.messages.end_chapter_not_exist&&delete e.passages[0].valid.messages.end_chapter_not_exist,null!=e.passages[0].end.original_c&&delete e.passages[0].end.original_c,s.push(e),[s,a]}integer_title(e,s,a){return e.start_context=t.shallow_clone(a),"Ps"!==a.b?this.integer(e.value[0],s,a):(e.value[0]={type:"c",value:[e.value[0]],indices:[e.value[0].indices[0],e.value[0].indices[1]]},e.value[1].type="v",e.value[1].original_type="title",e.value[1].value=[{type:"integer",value:1,indices:e.value[1].value.indices}],e.type="cv",this.cv(e,s,e.start_context))}integer(e,s,t){return null!=t.v?this.v(e,s,t):this.c(e,s,t)}next_v(e,s,a){var n,r;return e.start_context=t.shallow_clone(a),null==(n=this.pluck_last_recursively("integer",e.value))&&(n={value:1}),e.value.push({type:"integer",indices:e.indices,value:n.value+1}),[[r],a]=this.range(e,[],e.start_context),null!=r.passages[0].valid.messages.end_verse_not_exist&&null==r.passages[0].valid.messages.start_verse_not_exist&&null==r.passages[0].valid.messages.start_chapter_not_exist&&null!=a.c&&(e.value.pop(),e.value.push({type:"cv",indices:e.indices,value:[{type:"c",value:[{type:"integer",value:a.c+1,indices:e.indices}],indices:e.indices},{type:"v",value:[{type:"integer",value:1,indices:e.indices}],indices:e.indices}]}),[[r],a]=this.range(e,[],e.start_context)),r.value[0].indices=r.value[1].indices,r.value[0].absolute_indices=r.value[1].absolute_indices,r.value.pop(),null!=r.passages[0].valid.messages.end_verse_not_exist&&delete r.passages[0].valid.messages.end_verse_not_exist,null!=r.passages[0].valid.messages.end_chapter_not_exist&&delete r.passages[0].valid.messages.end_chapter_not_exist,null!=r.passages[0].end.original_c&&delete r.passages[0].end.original_c,s.push(r),[s,a]}sequence(e,s,a){var n,r,i,o,l,u,c,p,g;for(e.start_context=t.shallow_clone(a),e.passages=[],n=0,i=(c=e.value).length;n<i;n++)for(l=c[n],[[u],a]=this.handle_array(l,[],a),r=0,o=(p=u.passages).length;r<o;r++)null==(g=p[r]).type&&(g.type=u.type),null==g.absolute_indices&&(g.absolute_indices=u.absolute_indices),null!=u.start_context.translations&&(g.translations=u.start_context.translations),g.enclosed_absolute_indices="sequence_post_enclosed"===u.type?u.absolute_indices:[-1,-1],e.passages.push(g);return null==e.absolute_indices&&(e.passages.length>0&&"sequence"===e.type?e.absolute_indices=[e.passages[0].absolute_indices[0],e.passages[e.passages.length-1].absolute_indices[1]]:e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),[s,a]}sequence_post_enclosed(e,s,t){return this.sequence(e,s,t)}v(e,s,a){var n,r,i,o;return i="integer"===e.type?e.value:this.pluck("integer",e.value).value,e.start_context=t.shallow_clone(a),n=null!=a.c?a.c:1,o=this.validate_ref(e.start_context.translations,{b:a.b,c:n,v:i}),[r,i]=this.fix_start_zeroes(o,0,i),e.passages=[{start:{b:a.b,c:n,v:i},end:{b:a.b,c:n,v:i},valid:o}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),a.v=i,[s,a]}range(e,s,a){var n,r,i,o,l,u,c,p,g,h,x;return e.start_context=t.shallow_clone(a),[g,n]=e.value,[[g],a]=this.handle_obj(g,[],a),"v"!==n.type||("bc"!==g.type||(null!=(i=g.passages)&&null!=(o=i[0])&&null!=(l=o.valid)&&null!=(u=l.messages)?u.start_chapter_not_exist_in_single_chapter_book:void 0))&&"c"!==g.type||"verse"!==this.options.end_range_digits_strategy?([[n],a]=this.handle_obj(n,[],a),e.value=[g,n],e.indices=[g.indices[0],n.indices[1]],delete e.absolute_indices,h={b:g.passages[0].start.b,c:g.passages[0].start.c,v:g.passages[0].start.v,type:g.type},r={b:n.passages[0].end.b,c:n.passages[0].end.c,v:n.passages[0].end.v,type:n.type},n.passages[0].valid.messages.start_chapter_is_zero&&(r.c=0),n.passages[0].valid.messages.start_verse_is_zero&&(r.v=0),(x=this.validate_ref(e.start_context.translations,h,r)).valid?([c,p]=this.range_handle_valid(x,e,g,h,n,r,s),c?p:(null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),e.passages=[{start:h,end:r,valid:x}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),"b"===h.type?"b"===r.type?e.type="b_range":e.type="b_range_start":"b"===r.type&&(e.type="range_end_b"),s.push(e),[s,a])):this.range_handle_invalid(x,e,g,h,n,r,s)):(e.value[0]=g,this.range_change_integer_end(e,s))}range_change_end(e,s,t){var a,n,r;return[r,a]=e.value,"integer"===a.type?(a.original_value=a.value,a.value=t):"v"===a.type?((n=this.pluck("integer",a.value)).original_value=n.value,n.value=t):"cv"===a.type&&((n=this.pluck("c",a.value)).original_value=n.value,n.value=t),this.handle_obj(e,s,e.start_context)}range_change_integer_end(e,s){var t,a;return[a,t]=e.value,null==e.original_type&&(e.original_type=e.type),null==e.original_value&&(e.original_value=[a,t]),e.type="integer"===a.type?"cv":a.type+"v","integer"===a.type&&(e.value[0]={type:"c",value:[a],indices:a.indices}),"integer"===t.type&&(e.value[1]={type:"v",value:[t],indices:t.indices}),this.handle_obj(e,s,e.start_context)}range_check_new_end(e,s,t,a){var n,r,i;return n=0,i=null,a.messages.end_chapter_before_start?i="c":a.messages.end_verse_before_start&&(i="v"),null!=i&&(n=this.range_get_new_end_value(s,t,a,i)),n>0&&((r={b:t.b,c:t.c,v:t.v})[i]=n,this.validate_ref(e,r).valid||(n=0)),n}range_end_b(e,s,t){return this.range(e,s,t)}range_get_new_end_value(e,s,t,a){var n;return n=0,"c"===a&&t.messages.end_chapter_is_zero||"v"===a&&t.messages.end_verse_is_zero||(e[a]>=10&&s[a]<10&&e[a]-10*Math.floor(e[a]/10)<s[a]?n=s[a]+10*Math.floor(e[a]/10):e[a]>=100&&s[a]<100&&e[a]-100<s[a]&&(n=s[a]+100)),n}range_handle_invalid(e,s,t,a,n,r,i){var o,l;return(!1===e.valid&&(e.messages.end_chapter_before_start||e.messages.end_verse_before_start)&&("integer"===n.type||"v"===n.type)||!1===e.valid&&e.messages.end_chapter_before_start&&"cv"===n.type)&&(o=this.range_check_new_end(s.start_context.translations,a,r,e))>0?this.range_change_end(s,i,o):"verse"!==this.options.end_range_digits_strategy||null!=a.v||"integer"!==n.type&&"v"!==n.type||(l="v"===n.type?this.pluck("integer",n.value):n.value,!this.validate_ref(s.start_context.translations,{b:a.b,c:a.c,v:l}).valid)?(null==s.original_type&&(s.original_type=s.type),s.type="sequence",[s.original_value,s.value]=[[t,n],[[t],[n]]],this.sequence(s,i,s.start_context)):this.range_change_integer_end(s,i)}range_handle_valid(e,s,t,a,n,r,i){var o;return e.messages.end_chapter_not_exist&&"verse"===this.options.end_range_digits_strategy&&null==a.v&&("integer"===n.type||"v"===n.type)&&this.options.passage_existence_strategy.indexOf("v")>=0&&(o="v"===n.type?this.pluck("integer",n.value):n.value,this.validate_ref(s.start_context.translations,{b:a.b,c:a.c,v:o}).valid)?[!0,this.range_change_integer_end(s,i)]:(this.range_validate(e,a,r,s),[!1,null])}range_validate(e,s,t,a){return e.messages.end_chapter_not_exist||e.messages.end_chapter_not_exist_in_single_chapter_book?(t.original_c=t.c,t.c=e.messages.end_chapter_not_exist?e.messages.end_chapter_not_exist:e.messages.end_chapter_not_exist_in_single_chapter_book,null!=t.v&&(t.v=this.validate_ref(a.start_context.translations,{b:t.b,c:t.c,v:999}).messages.end_verse_not_exist,delete e.messages.end_verse_is_zero)):e.messages.end_verse_not_exist&&(t.original_v=t.v,t.v=e.messages.end_verse_not_exist),e.messages.end_verse_is_zero&&"allow"!==this.options.zero_verse_strategy&&(t.v=e.messages.end_verse_is_zero),e.messages.end_chapter_is_zero&&(t.c=e.messages.end_chapter_is_zero),[s.c,s.v]=this.fix_start_zeroes(e,s.c,s.v),!0}translation_sequence(e,s,a){var n,r,i,o,l,u,c,p;for(e.start_context=t.shallow_clone(a),(c=[]).push({translation:this.books[e.value[0].value].parsed}),n=0,i=(l=e.value[1]).length;n<i;n++)p=l[n],null!=(p=this.books[this.pluck("translation",p).value].parsed)&&c.push({translation:p});for(r=0,o=c.length;r<o;r++)u=c[r],null!=this.translations.aliases[u.translation]?(u.alias=this.translations.aliases[u.translation].alias,u.osis=this.translations.aliases[u.translation].osis||u.translation.toUpperCase()):(u.alias="default",u.osis=u.translation.toUpperCase());return s.length>0&&(a=this.translation_sequence_apply(s,c)),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),this.reset_context(a,["translations"]),[s,a]}translation_sequence_apply(e,s){var a,n,r,i,o,l;for(l=0,n=r=o=e.length-1;o<=0?r<=0:r>=0;n=o<=0?++r:--r)if(null!=e[n].original_type&&(e[n].type=e[n].original_type),null!=e[n].original_value&&(e[n].value=e[n].original_value),"translation_sequence"===e[n].type){l=n+1;break}return l<e.length?(e[l].start_context.translations=s,[i,a]=this.handle_array(e.slice(l),[],e[l].start_context)):a=t.shallow_clone(e[e.length-1].start_context),a}pluck(e,s){var t,a,n;for(t=0,a=s.length;t<a;t++)if(null!=(n=s[t])&&null!=n.type&&n.type===e)return"c"===e||"v"===e?this.pluck("integer",n.value):n;return null}pluck_last_recursively(e,s){var t,a,n;for(t=s.length-1;t>=0;t+=-1)if(null!=(a=s[t])&&null!=a.type){if(a.type===e)return this.pluck(e,[a]);if(null!=(n=this.pluck_last_recursively(e,a.value)))return n}return null}set_context_from_object(e,s,t){var a,n,r,i;for(r=[],a=0,n=s.length;a<n;a++)null!=t[i=s[a]]&&r.push(e[i]=t[i]);return r}reset_context(e,s){var t,a,n,r;for(n=[],t=0,a=s.length;t<a;t++)r=s[t],n.push(delete e[r]);return n}fix_start_zeroes(e,s,t){return e.messages.start_chapter_is_zero&&"upgrade"===this.options.zero_chapter_strategy&&(s=e.messages.start_chapter_is_zero),e.messages.start_verse_is_zero&&"upgrade"===this.options.zero_verse_strategy&&(t=e.messages.start_verse_is_zero),[s,t]}calculate_indices(e,s){var t,a,n,r,i,o,l,u,c,p,g,h,x,_,d,f;for(d="book",n=[],p=0,s=parseInt(s,10),x=[e],r=0,o=(_=["",""]).length;r<o;r++){for(t=_[r],f=[],i=0,l=x.length;i<l;i++)g=x[i],f=f.concat(g.split(t));x=f}for(c=0,u=x.length;c<u;c++)d="book"===d?"rest":"book",0!==(h=(g=x[c]).length)&&("book"===d?(g=g.replace(/\/\d+$/,""),a=p+h,n.length>0&&n[n.length-1].index===s?n[n.length-1].end=a:n.push({start:p,end:a,index:s}),p+=h+2,s=this.books[g].start_index+this.books[g].value.length-p,n.push({start:a+1,end:a+1,index:s})):(a=p+h-1,n.length>0&&n[n.length-1].index===s?n[n.length-1].end=a:n.push({start:p,end:a,index:s}),p+=h));return n}get_absolute_indices([e,s]){var t,a,n,r,i,o;for(o=null,t=null,n=0,r=(i=this.indices).length;n<r;n++)if(a=i[n],null===o&&a.start<=e&&e<=a.end&&(o=e+a.index),a.start<=s&&s<=a.end){t=s+a.index+1;break}return[o,t]}validate_ref(e,s,t){var a,n,r,i,o,l;for(null!=e&&e.length>0||(e=[{translation:"default",osis:"",alias:"default"}]),l=!1,r={},a=0,n=e.length;a<n;a++)null==(o=e[a]).alias&&(o.alias="default"),null!=o.alias?(null==this.translations.aliases[o.alias]&&(o.alias="default",null==r.translation_unknown&&(r.translation_unknown=[]),r.translation_unknown.push(o)),[i]=this.validate_start_ref(o.alias,s,r),t&&([i]=this.validate_end_ref(o.alias,s,t,i,r)),!0===i&&(l=!0)):(null==r.translation_invalid&&(r.translation_invalid=[]),r.translation_invalid.push(o));return{valid:l,messages:r}}validate_start_ref(e,s,t){var a,n,r,i;if(i=!0,"default"!==e&&null==(null!=(a=this.translations[e])?a.chapters[s.b]:void 0)&&this.promote_book_to_translation(s.b,e),r=null!=(null!=(n=this.translations[e])?n.order:void 0)?e:"default",null!=s.v&&(s.v=parseInt(s.v,10)),null!=this.translations[r].order[s.b]){if(null==s.c&&(s.c=1),s.c=parseInt(s.c,10),isNaN(s.c))return i=!1,t.start_chapter_not_numeric=!0,[i,t];0===s.c&&(t.start_chapter_is_zero=1,"error"===this.options.zero_chapter_strategy?i=!1:s.c=1),null!=s.v&&0===s.v&&(t.start_verse_is_zero=1,"error"===this.options.zero_verse_strategy?i=!1:"upgrade"===this.options.zero_verse_strategy&&(s.v=1)),s.c>0&&null!=this.translations[e].chapters[s.b][s.c-1]?null!=s.v?isNaN(s.v)?(i=!1,t.start_verse_not_numeric=!0):s.v>this.translations[e].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0&&(i=!1,t.start_verse_not_exist=this.translations[e].chapters[s.b][s.c-1]):1===s.c&&"verse"===this.options.single_chapter_1_strategy&&1===this.translations[e].chapters[s.b].length&&(t.start_chapter_1=1):1!==s.c&&1===this.translations[e].chapters[s.b].length?(i=!1,t.start_chapter_not_exist_in_single_chapter_book=1):s.c>0&&this.options.passage_existence_strategy.indexOf("c")>=0&&(i=!1,t.start_chapter_not_exist=this.translations[e].chapters[s.b].length)}else null==s.b?(i=!1,t.start_book_not_defined=!0):(this.options.passage_existence_strategy.indexOf("b")>=0&&(i=!1),t.start_book_not_exist=!0);return[i,t]}validate_end_ref(e,s,t,a,n){var r,i;return i=null!=(null!=(r=this.translations[e])?r.order:void 0)?e:"default",null!=t.c&&(t.c=parseInt(t.c,10),isNaN(t.c)?(a=!1,n.end_chapter_not_numeric=!0):0===t.c&&(n.end_chapter_is_zero=1,"error"===this.options.zero_chapter_strategy?a=!1:t.c=1)),null!=t.v&&(t.v=parseInt(t.v,10),isNaN(t.v)?(a=!1,n.end_verse_not_numeric=!0):0===t.v&&(n.end_verse_is_zero=1,"error"===this.options.zero_verse_strategy?a=!1:"upgrade"===this.options.zero_verse_strategy&&(t.v=1))),null!=this.translations[i].order[t.b]?(null==t.c&&1===this.translations[e].chapters[t.b].length&&(t.c=1),null!=this.translations[i].order[s.b]&&this.translations[i].order[s.b]>this.translations[i].order[t.b]&&(this.options.passage_existence_strategy.indexOf("b")>=0&&(a=!1),n.end_book_before_start=!0),s.b!==t.b||null==t.c||isNaN(t.c)||(null==s.c&&(s.c=1),!isNaN(parseInt(s.c,10))&&s.c>t.c?(a=!1,n.end_chapter_before_start=!0):s.c!==t.c||null==t.v||isNaN(t.v)||(null==s.v&&(s.v=1),!isNaN(parseInt(s.v,10))&&s.v>t.v&&(a=!1,n.end_verse_before_start=!0))),null==t.c||isNaN(t.c)||null==this.translations[e].chapters[t.b][t.c-1]&&(1===this.translations[e].chapters[t.b].length?n.end_chapter_not_exist_in_single_chapter_book=1:t.c>0&&this.options.passage_existence_strategy.indexOf("c")>=0&&(n.end_chapter_not_exist=this.translations[e].chapters[t.b].length)),null==t.v||isNaN(t.v)||(null==t.c&&(t.c=this.translations[e].chapters[t.b].length),t.v>this.translations[e].chapters[t.b][t.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0&&(n.end_verse_not_exist=this.translations[e].chapters[t.b][t.c-1]))):(a=!1,n.end_book_not_exist=!0),[a,n]}promote_book_to_translation(e,s){var a,n;if(null==(a=this.translations)[s]&&(a[s]={}),null==(n=this.translations[s]).chapters&&(n.chapters={}),null==this.translations[s].chapters[e])return this.translations[s].chapters[e]=t.shallow_clone_array(this.translations.default.chapters[e])}}return e.prototype.books=[],e.prototype.indices={},e.prototype.options={},e.prototype.translations={},e}.call(this),t={shallow_clone:function(e){var s,t,a;if(null==e)return e;for(s in t={},e)n.call(e,s)&&(a=e[s],t[s]=a);return t},shallow_clone_array:function(e){var s,t,a,n;if(null==e)return e;for(a=[],s=t=0,n=e.length;0<=n?t<=n:t>=n;s=0<=n?++t:--t)void 0!==e[s]&&(a[s]=e[s]);return a}},e.prototype.regexps.translations=/(?:(?:ERV))\b/gi,e.prototype.translations={aliases:{default:{osis:"",alias:"default"}},alternates:{},default:{order:{Gen:1,Exod:2,Lev:3,Num:4,Deut:5,Josh:6,Judg:7,Ruth:8,"1Sam":9,"2Sam":10,"1Kgs":11,"2Kgs":12,"1Chr":13,"2Chr":14,Ezra:15,Neh:16,Esth:17,Job:18,Ps:19,Prov:20,Eccl:21,Song:22,Isa:23,Jer:24,Lam:25,Ezek:26,Dan:27,Hos:28,Joel:29,Amos:30,Obad:31,Jonah:32,Mic:33,Nah:34,Hab:35,Zeph:36,Hag:37,Zech:38,Mal:39,Matt:40,Mark:41,Luke:42,John:43,Acts:44,Rom:45,"1Cor":46,"2Cor":47,Gal:48,Eph:49,Phil:50,Col:51,"1Thess":52,"2Thess":53,"1Tim":54,"2Tim":55,Titus:56,Phlm:57,Heb:58,Jas:59,"1Pet":60,"2Pet":61,"1John":62,"2John":63,"3John":64,Jude:65,Rev:66,Tob:67,Jdt:68,GkEsth:69,Wis:70,Sir:71,Bar:72,PrAzar:73,Sus:74,Bel:75,SgThree:76,EpJer:77,"1Macc":78,"2Macc":79,"3Macc":80,"4Macc":81,"1Esd":82,"2Esd":83,PrMan:84},chapters:{Gen:[31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,55,32,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exod:[22,25,22,31,23,30,25,32,35,29,10,51,22,31,27,36,16,27,25,26,36,31,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Lev:[17,16,17,35,19,30,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Num:[54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,50,13,32,22,29,35,41,30,25,18,65,23,31,40,16,54,42,56,29,34,13],Deut:[46,37,29,49,33,25,26,20,29,22,32,32,18,29,23,22,20,22,21,20,23,30,25,22,19,19,26,68,29,20,30,52,29,12],Josh:[18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33],Judg:[36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25],Ruth:[22,23,18,22],"1Sam":[28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,15,23,29,22,44,25,12,25,11,31,13],"2Sam":[27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,33,43,26,22,51,39,25],"1Kgs":[53,46,28,34,18,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,53],"2Kgs":[18,25,27,44,27,33,20,29,37,36,21,21,25,29,38,20,41,37,37,21,26,20,37,20,30],"1Chr":[54,55,24,43,26,81,40,40,44,14,47,40,14,17,29,43,27,17,19,8,30,19,32,31,31,32,34,21,30],"2Chr":[17,18,17,22,14,42,22,18,31,19,23,16,22,15,19,14,19,34,11,37,20,12,21,27,28,23,9,27,36,27,21,33,25,33,27,23],Ezra:[11,70,13,24,17,22,28,36,15,44],Neh:[11,20,32,23,19,19,73,18,38,39,36,47,31],Esth:[22,23,15,17,14,14,10,17,32,3],Job:[22,13,26,21,27,30,21,22,35,22,20,25,28,22,35,22,16,21,29,29,34,30,17,25,6,14,23,28,25,31,40,22,33,37,16,33,24,41,30,24,34,17],Ps:[6,12,8,8,12,10,17,9,20,18,7,8,6,7,5,11,15,50,14,9,13,31,6,10,22,12,14,9,11,12,24,11,22,22,28,12,40,22,13,17,13,11,5,26,17,11,9,14,20,23,19,9,6,7,23,13,11,11,17,12,8,12,11,10,13,20,7,35,36,5,24,20,28,23,10,12,20,72,13,19,16,8,18,12,13,17,7,18,52,17,16,15,5,23,11,13,12,9,9,5,8,28,22,35,45,48,43,13,31,7,10,10,9,8,18,19,2,29,176,7,8,9,4,8,5,6,5,6,8,8,3,18,3,3,21,26,9,8,24,13,10,7,12,15,21,10,20,14,9,6],Prov:[33,22,35,27,23,35,27,36,18,32,31,28,25,35,33,33,28,24,29,30,31,29,35,34,28,28,27,28,27,33,31],Eccl:[18,26,22,16,20,12,29,17,18,20,10,14],Song:[17,17,11,16,16,13,13,14],Isa:[31,22,26,6,30,13,25,22,21,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,12,25,24],Jer:[19,37,25,31,31,30,34,22,26,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Lam:[22,22,66,22,22],Ezek:[28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,49,32,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Dan:[21,49,30,37,31,28,28,27,27,21,45,13],Hos:[11,23,5,19,15,11,16,14,17,15,12,14,16,9],Joel:[20,32,21],Amos:[15,16,15,13,27,14,17,14,15],Obad:[21],Jonah:[17,10,10,11],Mic:[16,13,12,13,15,16,20],Nah:[15,13,19],Hab:[17,20,19],Zeph:[18,15,20],Hag:[15,23],Zech:[21,13,10,14,11,15,14,23,17,12,17,14,9,21],Mal:[14,17,18,6],Matt:[25,23,17,25,48,34,29,34,38,42,30,50,58,36,39,28,27,35,30,34,46,46,39,51,46,75,66,20],Mark:[45,28,35,41,43,56,37,38,50,52,33,44,37,72,47,20],Luke:[80,52,38,44,39,49,50,56,62,42,54,59,35,35,32,31,37,43,48,47,38,71,56,53],John:[51,25,36,54,47,71,53,59,41,42,57,50,38,31,27,33,26,40,42,31,25],Acts:[26,47,26,37,42,15,60,40,43,48,30,25,52,28,41,40,34,28,41,38,40,30,35,27,27,32,44,31],Rom:[32,29,31,25,21,23,25,39,33,21,36,21,14,23,33,27],"1Cor":[31,16,23,21,13,20,40,13,27,33,34,31,13,40,58,24],"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,14],Gal:[24,21,29,31,26,18],Eph:[23,22,21,32,33,24],Phil:[30,30,21,23],Col:[29,23,25,18],"1Thess":[10,20,13,18,28],"2Thess":[12,17,18],"1Tim":[20,15,16,16,25,21],"2Tim":[18,26,17,22],Titus:[16,15,15],Phlm:[25],Heb:[14,18,19,16,14,20,28,13,28,39,40,29,25],Jas:[27,26,18,17,20],"1Pet":[25,25,22,19,14],"2Pet":[21,22,18],"1John":[10,29,24,21,21],"2John":[13],"3John":[15],Jude:[25],Rev:[20,29,22,11,14,17,17,13,21,11,19,17,18,20,8,21,18,24,21,15,27,21],Tob:[22,14,17,21,22,18,16,21,6,13,18,22,17,15],Jdt:[16,28,10,15,24,21,32,36,14,23,23,20,20,19,14,25],GkEsth:[22,23,15,17,14,14,10,17,32,13,12,6,18,19,16,24],Wis:[16,24,19,20,23,25,30,21,18,21,26,27,19,31,19,29,21,25,22],Sir:[30,18,31,31,15,37,36,19,18,31,34,18,26,27,20,30,32,33,30,31,28,27,27,34,26,29,30,26,28,25,31,24,33,31,26,31,31,34,35,30,22,25,33,23,26,20,25,25,16,29,30],Bar:[22,35,37,37,9],PrAzar:[68],Sus:[64],Bel:[42],SgThree:[39],EpJer:[73],"1Macc":[64,70,60,61,68,63,50,32,73,89,74,53,53,49,41,24],"2Macc":[36,32,40,50,27,31,42,36,29,38,38,45,26,46,39],"3Macc":[29,33,30,21,51,41,23],"4Macc":[35,24,21,26,38,35,23,29,32,21,27,19,27,20,32,25,24,24],"1Esd":[58,30,24,63,73,34,15,96,55],"2Esd":[40,48,36,52,56,59,70,63,47,59,46,51,58,48,63,78],PrMan:[15],Ps151:[7]}},vulgate:{chapters:{Gen:[31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,55,32,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,32,25],Exod:[22,25,22,31,23,30,25,32,35,29,10,51,22,31,27,36,16,27,25,26,36,31,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,36],Lev:[17,16,17,35,19,30,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,45,34],Num:[54,34,51,49,31,27,89,26,23,36,34,15,34,45,41,50,13,32,22,30,35,41,30,25,18,65,23,31,39,17,54,42,56,29,34,13],Josh:[18,24,17,25,16,27,26,35,27,44,23,24,33,15,63,10,18,28,51,9,43,34,16,33],Judg:[36,23,31,24,32,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,24],"1Sam":[28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,43,15,23,28,23,44,25,12,25,11,31,13],"1Kgs":[53,46,28,34,18,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"1Chr":[54,55,24,43,26,81,40,40,44,14,46,40,14,17,29,43,27,17,19,7,30,19,32,31,31,32,34,21,30],Neh:[11,20,31,23,19,19,73,18,38,39,36,46,31],Job:[22,13,26,21,27,30,21,22,35,22,20,25,28,22,35,23,16,21,29,29,34,30,17,25,6,14,23,28,25,31,40,22,33,37,16,33,24,41,35,28,25,16],Ps:[6,13,9,10,13,11,18,10,39,8,9,6,7,5,10,15,51,15,10,14,32,6,10,22,12,14,9,11,13,25,11,22,23,28,13,40,23,14,18,14,12,5,26,18,12,10,15,21,23,21,11,7,9,24,13,12,12,18,14,9,13,12,11,14,20,8,36,37,6,24,20,28,23,11,13,21,72,13,20,17,8,19,13,14,17,7,19,53,17,16,16,5,23,11,13,12,9,9,5,8,29,22,35,45,48,43,14,31,7,10,10,9,26,9,10,2,29,176,7,8,9,4,8,5,6,5,6,8,8,3,18,3,3,21,26,9,8,24,14,10,8,12,15,21,10,11,9,14,9,6],Eccl:[18,26,22,17,19,11,30,17,18,20,10,14],Song:[16,17,11,16,17,12,13,14],Jer:[19,37,25,31,31,30,34,22,26,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,20,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Ezek:[28,9,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,49,32,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Dan:[21,49,100,34,31,28,28,27,27,21,45,13,65,42],Hos:[11,24,5,19,15,11,16,14,17,15,12,14,15,10],Amos:[15,16,15,13,27,15,17,14,14],Jonah:[16,11,10,11],Mic:[16,13,12,13,14,16,20],Hag:[14,24],Matt:[25,23,17,25,48,34,29,34,38,42,30,50,58,36,39,28,26,35,30,34,46,46,39,51,46,75,66,20],Mark:[45,28,35,40,43,56,37,39,49,52,33,44,37,72,47,20],John:[51,25,36,54,47,72,53,59,41,42,57,50,38,31,27,33,26,40,42,31,25],Acts:[26,47,26,37,42,15,59,40,43,48,30,25,52,27,41,40,34,28,40,38,40,30,35,27,27,32,44,31],"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21],Tob:[25,23,25,23,28,22,20,24,12,13,21,22,23,17],Jdt:[12,18,15,17,29,21,25,34,19,20,21,20,31,18,15,31],Wis:[16,25,19,20,24,27,30,21,19,21,27,27,19,31,19,29,20,25,20],Sir:[40,23,34,36,18,37,40,22,25,34,36,19,32,27,22,31,31,33,28,33,31,33,38,47,36,28,33,30,35,27,42,28,33,31,26,28,34,39,41,32,28,26,37,27,31,23,31,28,19,31,38,13],Bar:[22,35,38,37,9,72],"1Macc":[67,70,60,61,68,63,50,32,73,89,74,54,54,49,41,24],"2Macc":[36,33,40,50,27,31,42,36,29,38,38,46,26,46,40]}},ceb:{chapters:{"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21],Tob:[22,14,17,21,22,18,16,21,6,13,18,22,18,15],PrAzar:[67],EpJer:[72],"1Esd":[55,26,24,63,71,33,15,92,55]}},kjv:{chapters:{"3John":[14]}},nab:{order:{Gen:1,Exod:2,Lev:3,Num:4,Deut:5,Josh:6,Judg:7,Ruth:8,"1Sam":9,"2Sam":10,"1Kgs":11,"2Kgs":12,"1Chr":13,"2Chr":14,PrMan:15,Ezra:16,Neh:17,"1Esd":18,"2Esd":19,Tob:20,Jdt:21,Esth:22,GkEsth:23,"1Macc":24,"2Macc":25,"3Macc":26,"4Macc":27,Job:28,Ps:29,Prov:30,Eccl:31,Song:32,Wis:33,Sir:34,Isa:35,Jer:36,Lam:37,Bar:38,EpJer:39,Ezek:40,Dan:41,PrAzar:42,Sus:43,Bel:44,SgThree:45,Hos:46,Joel:47,Amos:48,Obad:49,Jonah:50,Mic:51,Nah:52,Hab:53,Zeph:54,Hag:55,Zech:56,Mal:57,Matt:58,Mark:59,Luke:60,John:61,Acts:62,Rom:63,"1Cor":64,"2Cor":65,Gal:66,Eph:67,Phil:68,Col:69,"1Thess":70,"2Thess":71,"1Tim":72,"2Tim":73,Titus:74,Phlm:75,Heb:76,Jas:77,"1Pet":78,"2Pet":79,"1John":80,"2John":81,"3John":82,Jude:83,Rev:84},chapters:{Gen:[31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exod:[22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,26,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Lev:[17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Num:[54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13],Deut:[46,37,29,49,33,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12],"1Sam":[28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,44,25,12,25,11,31,13],"2Sam":[27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"1Kgs":[53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"2Kgs":[18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],"1Chr":[54,55,24,43,41,66,40,40,44,14,47,41,14,17,29,43,27,17,19,8,30,19,32,31,31,32,34,21,30],"2Chr":[18,17,17,22,14,42,22,18,31,19,23,16,23,14,19,14,19,34,11,37,20,12,21,27,28,23,9,27,36,27,21,33,25,33,27,23],Neh:[11,20,38,17,19,19,72,18,37,40,36,47,31],Job:[22,13,26,21,27,30,21,22,35,22,20,25,28,22,35,22,16,21,29,29,34,30,17,25,6,14,23,28,25,31,40,22,33,37,16,33,24,41,30,32,26,17],Ps:[6,11,9,9,13,11,18,10,21,18,7,9,6,7,5,11,15,51,15,10,14,32,6,10,22,12,14,9,11,13,25,11,22,23,28,13,40,23,14,18,14,12,5,27,18,12,10,15,21,23,21,11,7,9,24,14,12,12,18,14,9,13,12,11,14,20,8,36,37,6,24,20,28,23,11,13,21,72,13,20,17,8,19,13,14,17,7,19,53,17,16,16,5,23,11,13,12,9,9,5,8,29,22,35,45,48,43,14,31,7,10,10,9,8,18,19,2,29,176,7,8,9,4,8,5,6,5,6,8,8,3,18,3,3,21,26,9,8,24,14,10,8,12,15,21,10,20,14,9,6],Eccl:[18,26,22,17,19,12,29,17,18,20,10,14],Song:[17,17,11,16,16,12,14,14],Isa:[31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24],Jer:[19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Ezek:[28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Dan:[21,49,100,34,30,29,28,27,27,21,45,13,64,42],Hos:[9,25,5,19,15,11,16,14,17,15,11,15,15,10],Joel:[20,27,5,21],Jonah:[16,11,10,11],Mic:[16,13,12,14,14,16,20],Nah:[14,14,19],Zech:[17,17,10,14,11,15,14,23,17,12,17,14,9,21],Mal:[14,17,24],Acts:[26,47,26,37,42,15,60,40,43,49,30,25,52,28,41,40,34,28,40,38,40,30,35,27,27,32,44,31],"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21],Tob:[22,14,17,21,22,18,17,21,6,13,18,22,18,15],Sir:[30,18,31,31,15,37,36,19,18,31,34,18,26,27,20,30,32,33,30,31,28,27,27,33,26,29,30,26,28,25,31,24,33,31,26,31,31,34,35,30,22,25,33,23,26,20,25,25,16,29,30],Bar:[22,35,38,37,9,72],"2Macc":[36,32,40,50,27,31,42,36,29,38,38,46,26,46,39]}},nlt:{chapters:{Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21]}},nrsv:{chapters:{"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21]}}},e.prototype.languages=["sr"],e.prototype.regexps.space="[\\s\\xa0]",e.prototype.regexps.escaped_passage=/(?:^|[^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:(?:ch(?:apters?|a?pts?\.?|a?p?s?\.?)?\s*\d+\s*(?:[\u2013\u2014\-]|through|thru|to)\s*\d+\s*(?:from|of|in)(?:\s+the\s+book\s+of)?\s*)|(?:ch(?:apters?|a?pts?\.?|a?p?s?\.?)?\s*\d+\s*(?:from|of|in)(?:\s+the\s+book\s+of)?\s*)|(?:\d+(?:th|nd|st)\s*ch(?:apter|a?pt\.?|a?p?\.?)?\s*(?:from|of|in)(?:\s+the\s+book\s+of)?\s*))?\x1f(\d+)(?:\/\d+)?\x1f(?:\/\d+\x1f|[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014]|title(?![a-z])|поглавља|стихови|глава|стих|ff|-|и|[aаб](?!\w)|$)+)/gi,e.prototype.regexps.match_end_split=/\d\W*title|\d\W*ff(?:[\s\xa0*]*\.)?|\d[\s\xa0*]*[aаб](?!\w)|\x1e(?:[\s\xa0*]*[)\]\uff09])?|[\d\x1f]/gi,e.prototype.regexps.control=/[\x1e\x1f]/g,e.prototype.regexps.pre_book="[^A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ]",e.prototype.regexps.first=`(?:Прва|1|I|1)\\.?${e.prototype.regexps.space}*`,e.prototype.regexps.second=`(?:Друга|2|II|2)\\.?${e.prototype.regexps.space}*`,e.prototype.regexps.third=`(?:Трећом|Трећа|3|III|3)\\.?${e.prototype.regexps.space}*`,e.prototype.regexps.range_and="(?:[&–—-]|и|-)",e.prototype.regexps.range_only="(?:[–—-]|-)",e.prototype.regexps.get_books=function(s,t){var a,n,r,i,o;if(n=[{osis:["Ps"],apocrypha:!0,extra:"2",regexp:/(\b)(Ps151)(?=\.1)/g},{osis:["Gen"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:П(?:рва[\s\xa0]*Мојс(?:ијева)?|ост(?:ање)?)|(?:1\.|I)\.[\s\xa0]*Мојс(?:ијева)?|(?:1\.?|I)[\s\xa0]*Мојс(?:ијева)?|Gen))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Exod"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*Мојс(?:ијева)?|(?:II|2\.)\.[\s\xa0]*Мојс(?:ијева)?|(?:II|2\.?)[\s\xa0]*Мојс(?:ијева)?|Излазак|Егзодус|Exod|Изл))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Bel"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Bel))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Lev"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*Мојс(?:ијева)?|а[\s\xa0]*Мојс(?:ијева)?)|(?:III|3\.)\.[\s\xa0]*Мојс(?:ијева)?|(?:III|3\.?)[\s\xa0]*Мојс(?:ијева)?|Левитска|Лев|Lev))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Num"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Четврта[\s\xa0]*Мојс(?:ијева)?|(?:IV|4\.)\.[\s\xa0]*Мојс(?:ијева)?|(?:IV|4\.?)[\s\xa0]*Мојс(?:ијева)?|Бројеви|Num|Бр))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Sir"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Премудрости[\\s\\xa0]*Исуса[\\s\\xa0]*сина[\\s\\xa0]*Сирахова|Еклезијастикус|Сирина|Сир|ИсС|Sir))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Wis"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Прем(?:удорсти[\\s\\xa0]*Соломонове|[\\s\\xa0]*Сол)|Мудрости[\\s\\xa0]*Соломонове|Мудрости|Wis))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Lam"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Плач(?:[\\s\\xa0]*Јеремијин)?|Lam))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["EpJer"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:П(?:осланица[\\s\\xa0]*Јеремијина|исма[\\s\\xa0]*Јеремије)|EpJer))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Rev"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Отк(?:р(?:овење[\\s\\xa0]*Јованово|ивење(?:[\\s\\xa0]*Јованово)?))?|Rev))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["PrMan"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Молитва[\\s\\xa0]*Манасијина|PrMan))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Deut"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:П(?:он(?:овљени[\s\xa0]*закони|з)|ета[\s\xa0]*Мојс(?:ијева)?)|(?:5\.|V)\.[\s\xa0]*Мојсијева|(?:5\.?|V)[\s\xa0]*Мојсијева|(?:(?:5\.|V)\.|5\.?|V)[\s\xa0]*Мојс|Deut))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Josh"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:И(?:сус[\\s\\xa0]*Навин|Нав)|Josh))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Judg"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Суд(?:иј[ае])?|Judg))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Ruth"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Рута?|Ruth))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["1Esd"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:Је|Е)здрина|(?:1\.|I)\.[\s\xa0]*(?:Је|Е)здрина|(?:1\.|I)[\s\xa0]*(?:Је|Е)здрина|1(?:[\s\xa0]*Јездрина|[\s\xa0]*Ездрина|[\s\xa0]*Јез|Esd)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Esd"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:Је|Е)здрина|(?:II|2\.)\.[\s\xa0]*(?:Је|Е)здрина|(?:II|2\.)[\s\xa0]*(?:Је|Е)здрина|2(?:[\s\xa0]*Јездрина|[\s\xa0]*Ездрина|[\s\xa0]*Јез|Esd)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Isa"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ис(?:аија)?|Isa))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Sam"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:краљевим|Самуилов)а|(?:II|2\.)\.[\s\xa0]*(?:краљевим|Самуилов)а|(?:II|2\.)[\s\xa0]*(?:краљевим|Самуилов)а|2(?:[\s\xa0]*краљевима|[\s\xa0]*Самуилова|[\s\xa0]*Сам|Sam)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Sam"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:краљевим|Самуилов)а|(?:1\.|I)\.[\s\xa0]*(?:краљевим|Самуилов)а|(?:1\.|I)[\s\xa0]*(?:краљевим|Самуилов)а|1(?:[\s\xa0]*краљевима|[\s\xa0]*Самуилова|[\s\xa0]*Сам|Sam)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Kgs"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Четврта[\s\xa0]*краљев(?:ств|им)а|(?:Друга|(?:II|2\.)\.|II|2\.|2)[\s\xa0]*о[\s\xa0]*царевима|(?:IV|4\.)\.[\s\xa0]*краљев(?:ств|им)а|(?:Друга[\s\xa0]*(?:краљ|Цар)|(?:II|2\.)\.[\s\xa0]*(?:краљ|Цар)|(?:II|2\.)[\s\xa0]*(?:краљ|Цар)|2[\s\xa0]*(?:краљ|Цар))ева|(?:IV|4\.?)[\s\xa0]*краљев(?:ств|им)а|2(?:[\s\xa0]*Цар|Kgs)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Kgs"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*краљев(?:ств|им)|а[\s\xa0]*краљев(?:ств|им))а|(?:Прва|1\.\.|1\.?|I\.?)[\s\xa0]*о[\s\xa0]*царевима|(?:III|3\.)\.[\s\xa0]*краљев(?:ств|им)а|(?:III|3\.?)[\s\xa0]*краљев(?:ств|им)а|(?:(?:Прва|1\.\.)[\s\xa0]*(?:краљ|Цар)|1(?:\.[\s\xa0]*(?:краљ|Цар)|[\s\xa0]*(?:краљ|Цар))|I(?:\.[\s\xa0]*(?:краљ|Цар)|[\s\xa0]*(?:краљ|Цар)))ева|1(?:[\s\xa0]*Цар|Kgs)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Chr"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:II|2\.)\.[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:II|2\.)[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|2(?:[\s\xa0]*Паралипоменону|[\s\xa0]*Дневника|[\s\xa0]*хроника|[\s\xa0]*(?:хро|Д)н|Chr))|(?:2[\s\xa0]*дневника))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Chr"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:1\.|I)\.[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:1\.|I)[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|1(?:[\s\xa0]*Паралипоменону|[\s\xa0]*Дневника|[\s\xa0]*хроника|[\s\xa0]*(?:хро|Д)н|Chr))|(?:1[\s\xa0]*дневника))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Ezra"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Езрина|Јездра|Ezra|Езр))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Neh"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Нем(?:ија)?|Neh))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["GkEsth"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:GkEsth))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Esth"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јест(?:ира)?|Естер|Esth))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Job"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јов|Job))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Ps"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Пс(?:ал(?:ми(?:[\\s\\xa0]*Давидови)?|ам))?|Ps(?:alam)?))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["PrAzar"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:PrAzar))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Prov"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Пр(?:иче[\\s\\xa0]*Солом[оу]нове)?|Изреке|Prov))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Eccl"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Проп(?:оведник)?|Eccl))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["SgThree"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:SgThree))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Song"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:П(?:есма[\\s\\xa0]*(?:над[\\s\\xa0]*песмам|Соломонов)а|нп)|Song))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jer"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јер(?:емија)?|Jer(?:emija)?))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Ezek"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јез(?:екиљ)?|Ezek))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Dan"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Дан(?:ило)?|Dan))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Hos"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Хошеа|Ос(?:ија)?|Hos))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Joel"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јои[лљ]|Joel))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Amos"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ам(?:ос)?|Amos))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Obad"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Авд(?:иј[ае])?|Obad))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jonah"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Jonah|Јона))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Mic"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Мих(?:еј)?|Mic))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Nah"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Наум|Nah))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Hab"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ав(?:акум)?|Hab))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Zeph"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Соф(?:ониј[ае])?|Zeph))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Hag"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Аг(?:еј)?|Hag))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Zech"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Зах(?:арија)?|Zech))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Mal"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Мал(?:ахија)?|Mal))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Matt"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јеванђеље[\\s\\xa0]*по[\\s\\xa0]*Матеју|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Матеју|М(?:атеја|т)|Матеј|Matt))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:II|2\.)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:II|2\.)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|2(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["3Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*Мака(?:веј(?:ск)?|бејац)|а[\s\xa0]*Мака(?:веј(?:ск)?|бејац))а|(?:III|3\.)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:III|3\.)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|3(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["4Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Четврта[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:IV|4\.)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:IV|4\.)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|4(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:1\.|I)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:1\.|I)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|1(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Mark"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јеванђеље[\\s\\xa0]*по[\\s\\xa0]*Марку|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Марку|М(?:арк[oо]|к)|Mark))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Luke"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јеванђеље[\\s\\xa0]*по[\\s\\xa0]*Луки|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Луки|Л(?:ук[aа]|к)|Luke))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["1John"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|1(?:[\s\xa0]*посланица[\s\xa0]*Јованова|[\s\xa0]*Јованова|John|[\s\xa0]*Јн)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2John"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|2(?:[\s\xa0]*посланица[\s\xa0]*Јованова|[\s\xa0]*Јованова|John|[\s\xa0]*Јн)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["3John"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*(?:посланица[\s\xa0]*)?|а[\s\xa0]*(?:посланица[\s\xa0]*)?)Јованова|(?:III|3\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:III|3\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|3(?:[\s\xa0]*посланица[\s\xa0]*Јованова|[\s\xa0]*Јованова|John|[\s\xa0]*Јн)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["John"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ј(?:еванђеље[\\s\\xa0]*по[\\s\\xa0]*Јовану|(?:ова)?н)|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Јовану|Jo(?:va|h)n))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Acts"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Д(?:ела(?:[\\s\\xa0]*Апостолска)?|ап)|Acts))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Rom"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Римљанима|Римљанима|Рим|Rom))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Cor"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|2(?:[\s\xa0]*посланица[\s\xa0]*Коринћанима|[\s\xa0]*Коринћанима|[\s\xa0]*Кор|Cor)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Cor"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|1(?:[\s\xa0]*посланица[\s\xa0]*Коринћанима|[\s\xa0]*Коринћанима|[\s\xa0]*Кор|Cor)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Gal"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Гала(?:ћан|т)има|Гала(?:ћан|т)има|Гал|Gal))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Eph"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Ефесцима|Ефесцима|Eph|Еф))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Phil"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Филипљанима|Фили[бп]љанима|Phil|Флп))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Col"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Колошанима|Колошанима|Кол|Col))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Thess"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|2(?:[\s\xa0]*посланица[\s\xa0]*Солуњанима|[\s\xa0]*Солуњанима|Thess|[\s\xa0]*Сол)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Thess"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|1(?:[\s\xa0]*посланица[\s\xa0]*Солуњанима|[\s\xa0]*Солуњанима|Thess|[\s\xa0]*Сол)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Tim"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|2(?:[\s\xa0]*посланица[\s\xa0]*Тимотеју|[\s\xa0]*Тимот[еи]ју|[\s\xa0]*Тим|Tim)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Tim"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|1(?:[\s\xa0]*посланица[\s\xa0]*Тимотеју|[\s\xa0]*Тимот[еи]ју|[\s\xa0]*Тим|Tim)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Titus"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Титу|Titus|Титу|Тит))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Phlm"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Филимону|Филимону|Phlm|Фил))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Heb"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Јеврејима|Jevrejima|Јеврејима|Јев|Heb))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jas"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Јаковљева|Јаковљева|Јаковова|Јак(?:ов)?|Jas))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Pet"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|2(?:[\s\xa0]*посланица[\s\xa0]*Петрова|[\s\xa0]*Петрова|[\s\xa0]*Петр?|Pet)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Pet"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|1(?:[\s\xa0]*посланица[\s\xa0]*Петрова|[\s\xa0]*Петрова|[\s\xa0]*Петр?|Pet)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Jude"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Јудина|Ј(?:аковљевог|уде|д)|Јудина|Jude))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Tob"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Књига[\\s\\xa0]*Товијина|Тобија|Товит|Тов|Tob))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jdt"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Књига[\\s\\xa0]*о[\\s\\xa0]*Јудити|Јудита|Јуд|Jdt))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Bar"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Варух|Барух|Вар|Bar))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Sus"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Sus))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")}],!0===s&&"none"===t)return n;for(o=[],r=0,i=n.length;r<i;r++)a=n[r],!1===s&&null!=a.apocrypha&&!0===a.apocrypha||("books"===t&&(a.regexp=new RegExp(a.regexp.source,"g")),o.push(a));return o},e.prototype.regexps.books=e.prototype.regexps.get_books(!1,"none"),function(){"use strict";function e(s,t,a,n){var r=Error.call(this,s);return Object.setPrototypeOf&&Object.setPrototypeOf(r,e.prototype),r.expected=t,r.found=a,r.location=n,r.name="SyntaxError",r}function s(e,s,t){return t=t||" ",e.length>s?e:(s-=e.length,e+(t+=t.repeat(s)).slice(0,s))}!function(e,s){function t(){this.constructor=e}t.prototype=s.prototype,e.prototype=new t}(e,Error),e.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var a,n=null;for(a=0;a<e.length;a++)if(e[a].source===this.location.source){n=e[a].text.split(/\r\n|\n|\r/g);break}var r=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(r):r,o=this.location.source+":"+i.line+":"+i.column;if(n){var l=this.location.end,u=s("",i.line.toString().length," "),c=n[r.line-1],p=(r.line===l.line?l.column:c.length+1)-r.column||1;t+="\n --\x3e "+o+"\n"+u+" |\n"+i.line+" | "+c+"\n"+u+" | "+s("",r.column-1," ")+s("",p,"^")}else t+="\n at "+o}return t},e.buildMessage=function(e,s){var t={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var s=e.parts.map((function(e){return Array.isArray(e)?r(e[0])+"-"+r(e[1]):r(e)}));return"["+(e.inverted?"^":"")+s.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function a(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function r(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function i(e){return t[e.type](e)}return"Expected "+function(e){var s,t,a=e.map(i);if(a.sort(),a.length>0){for(s=1,t=1;s<a.length;s++)a[s-1]!==a[s]&&(a[t]=a[s],t++);a.length=t}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(s)+" found."},a={StartRules:["start"],SyntaxError:e,parse:function(s,t){var a,n={},r=(t=void 0!==t?t:{}).grammarSource,i={start:Cs},o=Cs,l="(",u=")",c="",p="/",g=",",h=".",x="-",_="th",d="nd",f="st",v="/1",b="ff",y="/9",k="/2",m=".1",$="поглавља",E="глава",I="стих",A="ови",z="и",C="title",J="from",R="of",P="in",w="the",M="book",S="",Z=/^[1-8]/,N=/^[a-z]/,T=/^[0-9]/,q=/^[a\u0430\u0431]/i,j=/^["']/,L=/^[,;\/:&\-\u2013\u2014~]/,H=/^[\-\u2013\u2014]/,O=/^[([]/,F=/^[)\]]/,G=/^[^\x1F\x1E([]/,D=ms("(",!1),B=ms(")",!1),K=ms("",!1),V=ms("/",!1),W=$s([["1","8"]],!1,!1),U=ms(",",!1),Q=ms(".",!1),X=ms("-",!1),Y=ms("th",!1),ee=ms("nd",!1),se=ms("st",!1),te=ms("/1",!1),ae=ms("ff",!1),ne=$s([["a","z"]],!1,!1),re=ms("/9",!1),ie=ms("/2",!1),oe=ms(".1",!1),le=$s([["0","9"]],!1,!1),ue=$s(["a","а","б"],!1,!0),ce=ms("поглавља",!0),pe=ms("глава",!0),ge=ms("стих",!0),he=ms("ови",!0),xe=ms(":",!1),_e=$s(['"',"'"],!1,!1),de=$s([",",";","/",":","&","-","–","—","~"],!1,!1),fe=ms("и",!0),ve=$s(["-","–","—"],!1,!1),be=ms("title",!1),ye=ms("from",!1),ke=ms("of",!1),me=ms("in",!1),$e=ms("the",!1),Ee=ms("book",!1),Ie=$s(["(","["],!1,!1),Ae=$s([")","]"],!1,!1),ze=ms("",!1),Ce=(ms(",000",!1),$s(["","","(","["],!0,!1)),Je=($s([" ","\t","\r","\n"," ","*"],!1,!1),function(e,s){return s.unshift([e]),{type:"sequence",value:s,indices:[fs,ds-1]}}),Re=function(e,s){return void 0===s&&(s=[]),s.unshift([e]),{type:"sequence_post_enclosed",value:s,indices:[fs,ds-1]}},Pe=function(e,s){return e.length&&2===e.length&&(e=e[0]),{type:"range",value:[e,s],indices:[fs,ds-1]}},we=function(e){return{type:"b",value:e.value,indices:[fs,ds-1]}},Me=function(e,s){return{type:"bc",value:[e,s],indices:[fs,ds-1]}},Se=function(e,s){return{type:"bc",value:[e,s],indices:[fs,ds-1]}},Ze=function(e,s){return{type:"bc_title",value:[e,s],indices:[fs,ds-1]}},Ne=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},Te=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},qe=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},je=function(e,s,t,a){return{type:"range",value:[{type:"bcv",value:[{type:"bc",value:[e,s],indices:[e.indices[0],s.indices[1]]},t],indices:[e.indices[0],t.indices[1]]},a],indices:[fs,ds-1]}},Le=function(e,s){return{type:"bv",value:[e,s],indices:[fs,ds-1]}},He=function(e,s){return{type:"bc",value:[s,e],indices:[fs,ds-1]}},Oe=function(e,s,t){return{type:"cb_range",value:[t,e,s],indices:[fs,ds-1]}},Fe=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},Ge=function(e,s){return{type:"bc",value:[s,e],indices:[fs,ds-1]}},De=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},Be=function(e){return{type:"c_psalm",value:e.value,indices:[fs,ds-1]}},Ke=function(e,s){return{type:"cv_psalm",value:[e,s],indices:[fs,ds-1]}},Ve=function(e,s){return{type:"c_title",value:[e,s],indices:[fs,ds-1]}},We=function(e,s){return{type:"cv",value:[e,s],indices:[fs,ds-1]}},Ue=function(e,s){return{type:"cv",value:[e,s],indices:[fs,ds-1]}},Qe=function(e){return{type:"c",value:[e],indices:[fs,ds-1]}},Xe=function(e){return{type:"ff",value:[e],indices:[fs,ds-1]}},Ye=function(e,s){return{type:"integer_title",value:[e,s],indices:[fs,ds-1]}},es=function(e){return{type:"context",value:e.value,indices:[fs,ds-1]}},ss=function(e){return{type:"b",value:e.value,indices:[fs,ds-1]}},ts=function(e){return{type:"bc",value:[e,{type:"c",value:[{type:"integer",value:151,indices:[ds-2,ds-1]}],indices:[ds-2,ds-1]}],indices:[fs,ds-1]}},as=function(e,s){return{type:"bcv",value:[e,{type:"v",value:[s],indices:[s.indices[0],s.indices[1]]}],indices:[fs,ds-1]}},ns=function(e){return{type:"v",value:[e],indices:[fs,ds-1]}},rs=function(e){return{type:"v",value:[e],indices:[fs,ds-1]}},is=function(){return{type:"c_explicit"}},os=function(){return{type:"v_explicit"}},ls=function(){return""},us=function(e){return{type:"title",value:[e],indices:[fs,ds-1]}},cs=function(e){return{type:"translation_sequence",value:e,indices:[fs,ds-1]}},ps=function(e){return{type:"translation_sequence",value:e,indices:[fs,ds-1]}},gs=function(e){return{type:"translation",value:e.value,indices:[fs,ds-1]}},hs=function(e){return{type:"integer",value:parseInt(e.join(""),10),indices:[fs,ds-1]}},xs=function(e){return{type:"word",value:e.join(""),indices:[fs,ds-1]}},_s=function(e){return{type:"stop",value:e,indices:[fs,ds-1]}},ds=0|t.peg$currPos,fs=ds,vs=[{line:1,column:1}],bs=ds,ys=t.peg$maxFailExpected||[],ks=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function ms(e,s){return{type:"literal",text:e,ignoreCase:s}}function $s(e,s,t){return{type:"class",parts:e,inverted:s,ignoreCase:t}}function Es(e){var t,a=vs[e];if(a)return a;if(e>=vs.length)t=vs.length-1;else for(t=e;!vs[--t];);for(a={line:(a=vs[t]).line,column:a.column};t<e;)10===s.charCodeAt(t)?(a.line++,a.column=1):a.column++,t++;return vs[e]=a,a}function Is(e,s,t){var a=Es(e),n=Es(s),i={source:r,start:{offset:e,line:a.line,column:a.column},end:{offset:s,line:n.line,column:n.column}};return t&&r&&"function"==typeof r.offset&&(i.start=r.offset(i.start),i.end=r.offset(i.end)),i}function As(e){ds<bs||(ds>bs&&(bs=ds,ys=[]),ys.push(e))}function zs(s,t,a){return new e(e.buildMessage(s,t),s,t,a)}function Cs(){var e,s;if(e=[],(s=qs())===n&&(s=Js())===n&&(s=Hs())===n&&(s=Ps())===n&&(s=Qs())===n&&(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=Ds())===n&&(s=ws())===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=gt())===n&&(s=ht())===n&&(s=lt())===n&&(s=Ks())===n&&(s=Xs())===n&&(s=Vs())===n&&(s=Ws())===n&&(s=tt())===n&&(s=_t())===n&&(s=Us())===n&&(s=at())===n&&(s=ft())===n&&(s=vt())===n&&(s=Ys()),s!==n)for(;s!==n;)e.push(s),(s=qs())===n&&(s=Js())===n&&(s=Hs())===n&&(s=Ps())===n&&(s=Qs())===n&&(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=Ds())===n&&(s=ws())===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=gt())===n&&(s=ht())===n&&(s=lt())===n&&(s=Ks())===n&&(s=Xs())===n&&(s=Vs())===n&&(s=Ws())===n&&(s=tt())===n&&(s=_t())===n&&(s=Us())===n&&(s=at())===n&&(s=ft())===n&&(s=vt())===n&&(s=Ys());else e=n;return e}function Js(){var e,s,t,a,r,i;if(e=ds,(s=Hs())===n&&(s=qs())===n&&(s=Ps())===n&&(s=Qs())===n&&(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=Ds())===n&&(s=ws())===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=Ys()),s!==n){if(t=[],a=ds,(r=lt())===n&&(r=null),(i=Rs())!==n?a=r=[r,i]:(ds=a,a=n),a!==n)for(;a!==n;)t.push(a),a=ds,(r=lt())===n&&(r=null),(i=Rs())!==n?a=r=[r,i]:(ds=a,a=n);else t=n;t!==n?(fs=e,e=Je(s,t)):(ds=e,e=n)}else ds=e,e=n;return e}function Rs(){var e;return(e=function(){var e,t,a,r,i,o,c;if(e=ds,40===s.charCodeAt(ds)?(t=l,ds++):(t=n,0===ks&&As(D)),t!==n)if(bt(),lt(),(a=Rs())!==n){for(r=[],i=ds,(o=lt())===n&&(o=null),(c=Rs())!==n?i=o=[o,c]:(ds=i,i=n);i!==n;)r.push(i),i=ds,(o=lt())===n&&(o=null),(c=Rs())!==n?i=o=[o,c]:(ds=i,i=n);i=bt(),41===s.charCodeAt(ds)?(o=u,ds++):(o=n,0===ks&&As(B)),o!==n?(fs=e,e=Re(a,r)):(ds=e,e=n)}else ds=e,e=n;else ds=e,e=n;return e}())===n&&(e=Hs())===n&&(e=qs())===n&&(e=Ps())===n&&(e=Qs())===n&&(e=Ts())===n&&(e=Ss())===n&&(e=st())===n&&(e=Zs())===n&&(e=Ns())===n&&(e=et())===n&&(e=Ms())===n&&(e=Bs())===n&&(e=js())===n&&(e=Ds())===n&&(e=ws())===n&&(e=Os())===n&&(e=Gs())===n&&(e=Ls())===n&&(e=Fs())===n&&(e=Ks())===n&&(e=Xs())===n&&(e=Vs())===n&&(e=Ws())===n&&(e=tt())===n&&(e=_t())===n&&(e=Us())===n&&(e=at()),e}function Ps(){var e,s,t,a,r,i,o;return e=ds,(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=ds,(t=ws())!==n?(a=ds,ks++,r=ds,(i=ut())!==n?((o=Ts())===n&&(o=Ss())===n&&(o=st())===n&&(o=Zs())===n&&(o=Ns())===n&&(o=et())===n&&(o=Ms())===n&&(o=js())===n&&(o=ws()),o!==n?r=i=[i,o]:(ds=r,r=n)):(ds=r,r=n),ks--,r!==n?(ds=a,a=void 0):a=n,a!==n?s=t=[t,a]:(ds=s,s=n)):(ds=s,s=n),s===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ds())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=Ks())===n&&(s=Xs())===n&&(s=Vs())===n&&(s=Ws())===n&&(s=tt())===n&&(s=_t())===n&&(s=Us())===n&&(s=at())),s!==n&&(t=ut())!==n?((a=Qs())===n&&(a=Ts())===n&&(a=Ss())===n&&(a=st())===n&&(a=Zs())===n&&(a=Ns())===n&&(a=et())===n&&(a=Ms())===n&&(a=Bs())===n&&(a=js())===n&&(a=ws())===n&&(a=Os())===n&&(a=Gs())===n&&(a=Ds())===n&&(a=Ls())===n&&(a=Fs())===n&&(a=Ks())===n&&(a=Xs())===n&&(a=Vs())===n&&(a=tt())===n&&(a=_t())===n&&(a=Ws())===n&&(a=Us())===n&&(a=at()),a!==n?(fs=e,e=Pe(s,a)):(ds=e,e=n)):(ds=e,e=n),e}function ws(){var e,t,a,r,i,o;return e=ds,31===s.charCodeAt(ds)?(t=c,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(r=ds,47===s.charCodeAt(ds)?(i=p,ds++):(i=n,0===ks&&As(V)),i!==n?(o=s.charAt(ds),Z.test(o)?ds++:(o=n,0===ks&&As(W)),o!==n?r=i=[i,o]:(ds=r,r=n)):(ds=r,r=n),r===n&&(r=null),31===s.charCodeAt(ds)?(i=c,ds++):(i=n,0===ks&&As(K)),i!==n?(fs=e,e=we(a)):(ds=e,e=n)):(ds=e,e=n),e}function Ms(){var e,s,t,a,r,i,o,l,u;if(e=ds,(s=ws())!==n){if(t=ds,(a=rt())!==n?(r=ds,ks++,i=ds,(o=Us())!==n&&(l=it())!==n&&(u=at())!==n?i=o=[o,l,u]:(ds=i,i=n),ks--,i!==n?(ds=r,r=void 0):r=n,r!==n?t=a=[a,r]:(ds=t,t=n)):(ds=t,t=n),t===n){if(t=[],(a=it())!==n)for(;a!==n;)t.push(a),a=it();else t=n;if(t===n){if(t=[],(a=ot())!==n)for(;a!==n;)t.push(a),a=ot();else t=n;if(t===n){if(t=[],(a=ut())!==n)for(;a!==n;)t.push(a),a=ut();else t=n;t===n&&(t=bt())}}}t!==n&&(a=Us())!==n?(fs=e,e=Me(s,a)):(ds=e,e=n)}else ds=e,e=n;return e}function Ss(){var e,s,t;return e=ds,(s=et())===n&&(s=Ms()),s!==n&&(t=ct())!==n?(fs=e,e=Ze(s,t)):(ds=e,e=n),e}function Zs(){var e,t,a,r,i,o,l;return e=ds,(t=et())===n&&(t=Ms()),t!==n?(a=ds,ks++,r=ds,46===s.charCodeAt(ds)?(i=h,ds++):(i=n,0===ks&&As(Q)),i!==n&&(o=rt())!==n&&(l=at())!==n?r=i=[i,o,l]:(ds=r,r=n),r===n&&(r=ds,(i=lt())===n&&(i=null),(o=rt())!==n&&(l=Vs())!==n?r=i=[i,o,l]:(ds=r,r=n)),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=ds,(i=it())===n&&(i=lt()),i===n&&(i=null),(o=rt())!==n?r=i=[i,o]:(ds=r,r=n),r===n&&(r=it()),r!==n?((i=tt())===n&&(i=at()),i!==n?(fs=e,e=Ne(t,i)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Ns(){var e,s,t,a,r,i,o;return e=ds,(s=et())===n&&(s=Ms()),s!==n&&ot()!==n?((t=tt())===n&&(t=at()),t!==n?(a=ds,ks++,r=ds,(i=it())!==n&&(o=at())!==n?r=i=[i,o]:(ds=r,r=n),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(fs=e,e=Te(s,t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Ts(){var e,t,a,r,i,o,l,u;return e=ds,t=function(){var e,t,a,r;return e=ds,(t=ws())!==n?(bt(),44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U)),a!==n?(bt(),(r=Us())!==n?(fs=e,e=Se(t,r)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}(),t!==n?(bt(),44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U)),a!==n?(bt(),(r=tt())===n&&(r=at()),r!==n?(i=ds,ks++,o=ds,(l=it())!==n&&(u=at())!==n?o=l=[l,u]:(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?(fs=e,e=qe(t,r)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function qs(){var e,t,a,r,i,o,l,u;return e=ds,(t=ws())!==n?(45===s.charCodeAt(ds)?(a=x,ds++):(a=n,0===ks&&As(X)),a===n&&(a=yt()),a===n&&(a=null),(r=Us())!==n?(45===s.charCodeAt(ds)?(i=x,ds++):(i=n,0===ks&&As(X)),i!==n&&(o=at())!==n?(45===s.charCodeAt(ds)?(l=x,ds++):(l=n,0===ks&&As(X)),l!==n&&(u=at())!==n?(fs=e,e=je(t,r,o,u)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function js(){var e,s,t,a,r,i;if(e=ds,(s=ws())!==n){if(t=[],(a=it())!==n)for(;a!==n;)t.push(a),a=it();else t=n;if(t===n){if(t=[],(a=ot())!==n)for(;a!==n;)t.push(a),a=ot();else t=n;if(t===n){if(t=[],(a=ut())!==n)for(;a!==n;)t.push(a),a=ut();else t=n;if(t===n){if(t=ds,a=[],(r=lt())!==n)for(;r!==n;)a.push(r),r=lt();else a=n;a!==n?(r=ds,ks++,i=rt(),ks--,i!==n?(ds=r,r=void 0):r=n,r!==n?t=a=[a,r]:(ds=t,t=n)):(ds=t,t=n),t===n&&(t=bt())}}}t!==n?((a=tt())===n&&(a=at()),a!==n?(fs=e,e=Le(s,a)):(ds=e,e=n)):(ds=e,e=n)}else ds=e,e=n;return e}function Ls(){var e,s,t;return e=ds,nt()!==n&&(s=Us())!==n?(pt()===n&&null,(t=ws())!==n?(fs=e,e=He(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Hs(){var e,s,t,a;return e=ds,nt()!==n&&(s=Us())!==n&&ut()!==n&&(t=Us())!==n?(pt()===n&&null,(a=ws())!==n?(fs=e,e=Oe(s,t,a)):(ds=e,e=n)):(ds=e,e=n),e}function Os(){var e,s,t;return e=ds,(s=Ls())!==n?(lt()===n&&null,rt()!==n&&(t=at())!==n?(fs=e,e=Fe(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Fs(){var e,t,a,r;return e=ds,(t=Us())!==n?(s.substr(ds,2)===_?(a=_,ds+=2):(a=n,0===ks&&As(Y)),a===n&&(s.substr(ds,2)===d?(a=d,ds+=2):(a=n,0===ks&&As(ee)),a===n&&(s.substr(ds,2)===f?(a=f,ds+=2):(a=n,0===ks&&As(se)))),a!==n&&nt()!==n?(pt()===n&&null,(r=ws())!==n?(fs=e,e=Ge(t,r)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Gs(){var e,s,t;return e=ds,(s=Fs())!==n?(lt()===n&&null,rt()!==n&&(t=at())!==n?(fs=e,e=De(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Ds(){var e,t,a,r;return e=ds,31===s.charCodeAt(ds)?(t=c,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(s.substr(ds,3)===v?(r=v,ds+=3):(r=n,0===ks&&As(te)),r!==n?(fs=e,e=Be(a)):(ds=e,e=n)):(ds=e,e=n),e}function Bs(){var e,s,t;return e=ds,(s=Ds())!==n?(lt()===n&&null,rt()!==n&&(t=at())!==n?(fs=e,e=Ke(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Ks(){var e,s,t;return e=ds,nt()!==n&&(s=Us())!==n&&(t=ct())!==n?(fs=e,e=Ve(s,t)):(ds=e,e=n),e}function Vs(){var e,t,a,r,i,o,l;return e=ds,rt()===n&&null,(t=Us())!==n?(a=ds,ks++,r=ds,46===s.charCodeAt(ds)?(i=h,ds++):(i=n,0===ks&&As(Q)),i!==n&&(o=rt())!==n&&(l=at())!==n?r=i=[i,o,l]:(ds=r,r=n),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=ds,(i=it())===n&&(i=null),(o=rt())!==n?r=i=[i,o]:(ds=r,r=n),r===n&&(r=it()),r!==n?((i=tt())===n&&(i=at()),i!==n?(fs=e,e=We(t,i)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Ws(){var e,s,t,a,r,i,o;return e=ds,(s=Us())!==n&&ot()!==n?((t=tt())===n&&(t=at()),t!==n?(a=ds,ks++,r=ds,(i=it())!==n&&(o=at())!==n?r=i=[i,o]:(ds=r,r=n),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(fs=e,e=Ue(s,t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Us(){var e,s;return e=ds,nt()===n&&null,(s=_t())!==n?(fs=e,e=Qe(s)):(ds=e,e=n),e}function Qs(){var e,t,a,r,i,o;return e=ds,(t=Zs())===n&&(t=Ns())===n&&(t=Ms())===n&&(t=js())===n&&(t=Vs())===n&&(t=Ws())===n&&(t=_t())===n&&(t=Us())===n&&(t=at()),t!==n?(bt(),s.substr(ds,2)===b?(a=b,ds+=2):(a=n,0===ks&&As(ae)),a!==n?(r=function(){var e,t,a,r,i,o,l,u,c;e=ds,t=bt(),46===s.charCodeAt(ds)?(a=h,ds++):(a=n,0===ks&&As(Q));a!==n?(r=ds,ks++,i=ds,o=bt(),46===s.charCodeAt(ds)?(l=h,ds++):(l=n,0===ks&&As(Q)),l!==n?(u=bt(),46===s.charCodeAt(ds)?(c=h,ds++):(c=n,0===ks&&As(Q)),c!==n?i=o=[o,l,u,c]:(ds=i,i=n)):(ds=i,i=n),ks--,i===n?r=void 0:(ds=r,r=n),r!==n?e=t=[t,a,r]:(ds=e,e=n)):(ds=e,e=n);return e}(),r===n&&(r=null),i=ds,ks++,o=s.charAt(ds),N.test(o)?ds++:(o=n,0===ks&&As(ne)),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?(fs=e,e=Xe(t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Xs(){var e,s,t;return e=ds,(s=_t())!==n&&(t=ct())!==n?(fs=e,e=Ye(s,t)):(ds=e,e=n),e}function Ys(){var e,t,a,r;return e=ds,31===s.charCodeAt(ds)?(t=c,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(s.substr(ds,3)===y?(r=y,ds+=3):(r=n,0===ks&&As(re)),r!==n?(fs=e,e=es(a)):(ds=e,e=n)):(ds=e,e=n),e}function et(){var e,t,a,r,i;return e=ds,t=function(){var e,t,a,r;return e=ds,31===s.charCodeAt(ds)?(t=c,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(s.substr(ds,3)===k?(r=k,ds+=3):(r=n,0===ks&&As(ie)),r!==n?(fs=e,e=ss(a)):(ds=e,e=n)):(ds=e,e=n),e}(),t!==n?(s.substr(ds,2)===m?(a=m,ds+=2):(a=n,0===ks&&As(oe)),a!==n?(r=ds,ks++,i=s.charAt(ds),T.test(i)?ds++:(i=n,0===ks&&As(le)),ks--,i===n?r=void 0:(ds=r,r=n),r!==n?(fs=e,e=ts(t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function st(){var e,t,a,r;return e=ds,(t=et())!==n?(46===s.charCodeAt(ds)?(a=h,ds++):(a=n,0===ks&&As(Q)),a!==n&&(r=_t())!==n?(fs=e,e=as(t,r)):(ds=e,e=n)):(ds=e,e=n),e}function tt(){var e,t,a,r,i,o;return e=ds,rt()===n&&null,(t=_t())!==n?(bt(),a=ds,ks++,s.substr(ds,2)===b?(r=b,ds+=2):(r=n,0===ks&&As(ae)),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=s.charAt(ds),q.test(r)?ds++:(r=n,0===ks&&As(ue)),r!==n?(i=ds,ks++,o=s.charAt(ds),N.test(o)?ds++:(o=n,0===ks&&As(ne)),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?(fs=e,e=ns(t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function at(){var e,s;return e=ds,rt()===n&&null,(s=_t())!==n?(fs=e,e=rs(s)):(ds=e,e=n),e}function nt(){var e,t;return e=ds,bt(),(t=s.substr(ds,8)).toLowerCase()===$?ds+=8:(t=n,0===ks&&As(ce)),t===n&&((t=s.substr(ds,5)).toLowerCase()===E?ds+=5:(t=n,0===ks&&As(pe))),t!==n?(bt(),fs=e,e=is()):(ds=e,e=n),e}function rt(){var e,t,a,r;return e=ds,bt(),t=ds,(a=s.substr(ds,4)).toLowerCase()===I?ds+=4:(a=n,0===ks&&As(ge)),a!==n?((r=s.substr(ds,3)).toLowerCase()===A?ds+=3:(r=n,0===ks&&As(he)),r===n&&(r=""),r!==n?t=a=[a,r]:(ds=t,t=n)):(ds=t,t=n),t!==n?(a=ds,ks++,r=s.charAt(ds),N.test(r)?ds++:(r=n,0===ks&&As(ne)),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=bt(),fs=e,e=os()):(ds=e,e=n)):(ds=e,e=n),e}function it(){var e,t,a,r,i,o,l,u,c,p;if(e=ds,t=bt(),a=[],58===s.charCodeAt(ds)?(r=":",ds++):(r=n,0===ks&&As(xe)),r!==n)for(;r!==n;)a.push(r),58===s.charCodeAt(ds)?(r=":",ds++):(r=n,0===ks&&As(xe));else a=n;return a===n&&(a=ds,46===s.charCodeAt(ds)?(r=h,ds++):(r=n,0===ks&&As(Q)),r!==n?(i=ds,ks++,o=ds,l=bt(),46===s.charCodeAt(ds)?(u=h,ds++):(u=n,0===ks&&As(Q)),u!==n?(c=bt(),46===s.charCodeAt(ds)?(p=h,ds++):(p=n,0===ks&&As(Q)),p!==n?o=l=[l,u,c,p]:(ds=o,o=n)):(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?a=r=[r,i]:(ds=a,a=n)):(ds=a,a=n)),a!==n?e=t=[t,a,r=bt()]:(ds=e,e=n),e}function ot(){var e,t,a;return e=ds,t=bt(),a=s.charAt(ds),j.test(a)?ds++:(a=n,0===ks&&As(_e)),a!==n?e=t=[t,a,bt()]:(ds=e,e=n),e===n&&(e=yt()),e}function lt(){var e,t,a,r,i,o,l,u,c,p;if(e=ds,t=[],a=s.charAt(ds),L.test(a)?ds++:(a=n,0===ks&&As(de)),a===n&&(a=ds,46===s.charCodeAt(ds)?(r=h,ds++):(r=n,0===ks&&As(Q)),r!==n?(i=ds,ks++,o=ds,l=bt(),46===s.charCodeAt(ds)?(u=h,ds++):(u=n,0===ks&&As(Q)),u!==n?(c=bt(),46===s.charCodeAt(ds)?(p=h,ds++):(p=n,0===ks&&As(Q)),p!==n?o=l=[l,u,c,p]:(ds=o,o=n)):(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?a=r=[r,i]:(ds=a,a=n)):(ds=a,a=n),a===n&&((a=s.charAt(ds)).toLowerCase()===z?ds++:(a=n,0===ks&&As(fe)),a===n&&(a=yt()))),a!==n)for(;a!==n;)t.push(a),a=s.charAt(ds),L.test(a)?ds++:(a=n,0===ks&&As(de)),a===n&&(a=ds,46===s.charCodeAt(ds)?(r=h,ds++):(r=n,0===ks&&As(Q)),r!==n?(i=ds,ks++,o=ds,l=bt(),46===s.charCodeAt(ds)?(u=h,ds++):(u=n,0===ks&&As(Q)),u!==n?(c=bt(),46===s.charCodeAt(ds)?(p=h,ds++):(p=n,0===ks&&As(Q)),p!==n?o=l=[l,u,c,p]:(ds=o,o=n)):(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?a=r=[r,i]:(ds=a,a=n)):(ds=a,a=n),a===n&&((a=s.charAt(ds)).toLowerCase()===z?ds++:(a=n,0===ks&&As(fe)),a===n&&(a=yt())));else t=n;return t!==n&&(fs=e,t=ls()),e=t}function ut(){var e,t,a,r,i;if(e=ds,t=bt(),a=[],r=ds,i=s.charAt(ds),H.test(i)?ds++:(i=n,0===ks&&As(ve)),i!==n?r=i=[i,bt()]:(ds=r,r=n),r===n&&(r=ds,45===s.charCodeAt(ds)?(i=x,ds++):(i=n,0===ks&&As(X)),i!==n?r=i=[i,bt()]:(ds=r,r=n)),r!==n)for(;r!==n;)a.push(r),r=ds,i=s.charAt(ds),H.test(i)?ds++:(i=n,0===ks&&As(ve)),i!==n?r=i=[i,bt()]:(ds=r,r=n),r===n&&(r=ds,45===s.charCodeAt(ds)?(i=x,ds++):(i=n,0===ks&&As(X)),i!==n?r=i=[i,bt()]:(ds=r,r=n));else a=n;return a!==n?e=t=[t,a]:(ds=e,e=n),e}function ct(){var e,t,a;return e=ds,(t=it())===n&&(t=lt()),t===n&&(t=null),s.substr(ds,5)===C?(a=C,ds+=5):(a=n,0===ks&&As(be)),a!==n?(fs=e,e=us(a)):(ds=e,e=n),e}function pt(){var e,t,a,r,i,o,l,u,c,p;return e=ds,t=bt(),s.substr(ds,4)===J?(a=J,ds+=4):(a=n,0===ks&&As(ye)),a===n&&(s.substr(ds,2)===R?(a=R,ds+=2):(a=n,0===ks&&As(ke)),a===n&&(s.substr(ds,2)===P?(a=P,ds+=2):(a=n,0===ks&&As(me)))),a!==n?(r=bt(),i=ds,s.substr(ds,3)===w?(o=w,ds+=3):(o=n,0===ks&&As($e)),o!==n?(l=bt(),s.substr(ds,4)===M?(u=M,ds+=4):(u=n,0===ks&&As(Ee)),u!==n?(c=bt(),s.substr(ds,2)===R?(p=R,ds+=2):(p=n,0===ks&&As(ke)),p!==n?i=o=[o,l,u,c,p,bt()]:(ds=i,i=n)):(ds=i,i=n)):(ds=i,i=n),i===n&&(i=null),e=t=[t,a,r,i]):(ds=e,e=n),e}function gt(){var e,t,a,r,i,o,l,u;if(e=ds,bt(),t=s.charAt(ds),O.test(t)?ds++:(t=n,0===ks&&As(Ie)),t!==n){if(bt(),a=ds,(r=xt())!==n){for(i=[],o=ds,(l=lt())!==n&&(u=xt())!==n?o=l=[l,u]:(ds=o,o=n);o!==n;)i.push(o),o=ds,(l=lt())!==n&&(u=xt())!==n?o=l=[l,u]:(ds=o,o=n);a=r=[r,i]}else ds=a,a=n;a!==n?(r=bt(),i=s.charAt(ds),F.test(i)?ds++:(i=n,0===ks&&As(Ae)),i!==n?(fs=e,e=cs(a)):(ds=e,e=n)):(ds=e,e=n)}else ds=e,e=n;return e}function ht(){var e,t,a,r,i,o,l,u;if(e=ds,bt(),t=ds,44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U)),a!==n?t=a=[a,r=bt()]:(ds=t,t=n),t===n&&(t=null),a=ds,(r=xt())!==n){for(i=[],o=ds,(l=lt())!==n&&(u=xt())!==n?o=l=[l,u]:(ds=o,o=n);o!==n;)i.push(o),o=ds,(l=lt())!==n&&(u=xt())!==n?o=l=[l,u]:(ds=o,o=n);a=r=[r,i]}else ds=a,a=n;return a!==n?(fs=e,e=ps(a)):(ds=e,e=n),e}function xt(){var e,t,a,r;return e=ds,30===s.charCodeAt(ds)?(t=S,ds++):(t=n,0===ks&&As(ze)),t!==n&&(a=dt())!==n?(30===s.charCodeAt(ds)?(r=S,ds++):(r=n,0===ks&&As(ze)),r!==n?(fs=e,e=gs(a)):(ds=e,e=n)):(ds=e,e=n),e}function _t(){var e;return(e=/^[0-9]{1,3}(?!\d|,000)/.exec(s.substr(ds)))?(fs=ds,ds+=e[0].length,{type:"integer",value:parseInt(e[0],10),indices:[fs,ds-1]}):n}function dt(){var e,t,a;if(e=ds,t=[],a=s.charAt(ds),T.test(a)?ds++:(a=n,0===ks&&As(le)),a!==n)for(;a!==n;)t.push(a),a=s.charAt(ds),T.test(a)?ds++:(a=n,0===ks&&As(le));else t=n;return t!==n&&(fs=e,t=hs(t)),e=t}function ft(){var e,t,a;if(e=ds,t=[],a=s.charAt(ds),G.test(a)?ds++:(a=n,0===ks&&As(Ce)),a!==n)for(;a!==n;)t.push(a),a=s.charAt(ds),G.test(a)?ds++:(a=n,0===ks&&As(Ce));else t=n;return t!==n&&(fs=e,t=xs(t)),e=t}function vt(){var e,t;return e=ds,t=s.charAt(ds),O.test(t)?ds++:(t=n,0===ks&&As(Ie)),t!==n&&(fs=e,t=_s(t)),e=t}function bt(){var e;return(e=yt())===n&&(e=null),e}function yt(){var e;return(e=/^[\s\xa0*]+/.exec(s.substr(ds)))?(ds+=e[0].length,[]):n}if("punctuation_strategy"in t&&"eu"===t.punctuation_strategy&&(it=function(){var e,t,a;e=ds,t=bt(),44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U));a!==n?e=t=[t,a,bt()]:(ds=e,e=n);return e},L=/^[;\/:&\-\u2013\u2014~]/),a=o(),t.peg$library)return{peg$result:a,peg$currPos:ds,peg$FAILED:n,peg$maxFailExpected:ys,peg$maxFailPos:bs};if(a!==n&&ds===s.length)return a;throw a!==n&&ds<s.length&&As({type:"end"}),zs(ys,bs<s.length?s.charAt(bs):null,bs<s.length?Is(bs,bs+1):Is(bs,bs))}}}()}).call(this);
|
|
1
|
+
(function(){var e,s,t,a,n={}.hasOwnProperty;e=function(){class e{constructor(){var s,t,a;for(s in this.options={},t=e.prototype.options)n.call(t,s)&&(a=t[s],this.options[s]=a);this.versification_system(this.options.versification_system)}parse(e){return this.reset(),this.s=e,e=this.replace_control_characters(e),[e,this.passage.books]=this.match_books(e),[this.entities]=this.match_passages(e),this}parse_with_context(e,s){var t;return this.reset(),[s,this.passage.books]=this.match_books(this.replace_control_characters(s)),[t,s]=this.match_passages(s),this.reset(),this.s=e,e=this.replace_control_characters(e),[e,this.passage.books]=this.match_books(e),this.passage.books.push({value:"",parsed:[],start_index:0,type:"context",context:s}),e=""+(this.passage.books.length-1)+"/9"+e,[this.entities]=this.match_passages(e),this}reset(){return this.s="",this.entities=[],this.passage?(this.passage.books=[],this.passage.indices={}):(this.passage=new s,this.passage.options=this.options,this.passage.translations=this.translations)}set_options(e){var s,t;for(s in e)n.call(e,s)&&(t=e[s],"include_apocrypha"===s||"versification_system"===s||"case_sensitive"===s?this[s](t):this.options[s]=t);return this}include_apocrypha(e){var s,a,r,i,o;if(null==e||!0!==e&&!1!==e)return this;for(i in this.options.include_apocrypha=e,this.regexps.books=this.regexps.get_books(e,this.options.case_sensitive),r=this.translations)n.call(r,i)&&"aliases"!==i&&"alternates"!==i&&(null==(s=this.translations[i]).chapters&&(s.chapters={}),null==(a=this.translations[i].chapters).Ps&&(a.Ps=t.shallow_clone_array(this.translations.default.chapters.Ps)),!0===e?(o=null!=this.translations[i].chapters.Ps151?this.translations[i].chapters.Ps151[0]:this.translations.default.chapters.Ps151[0],this.translations[i].chapters.Ps[150]=o):151===this.translations[i].chapters.Ps.length&&this.translations[i].chapters.Ps.pop());return this}versification_system(e){var s,a,r,i,o,l,u;if(null==e||null==this.translations[e])return this;if(null!=this.translations.alternates.default)if("default"===e)for(i in null!=this.translations.alternates.default.order&&(this.translations.default.order=t.shallow_clone(this.translations.alternates.default.order)),l=this.translations.alternates.default.chapters)n.call(l,i)&&(o=l[i],this.translations.default.chapters[i]=t.shallow_clone_array(o));else this.versification_system("default");if(null==(s=this.translations.alternates).default&&(s.default={order:null,chapters:{}}),"default"!==e&&null!=this.translations[e].order&&(null==(a=this.translations.alternates.default).order&&(a.order=t.shallow_clone(this.translations.default.order)),this.translations.default.order=t.shallow_clone(this.translations[e].order)),"default"!==e&&null!=this.translations[e].chapters)for(i in u=this.translations[e].chapters)n.call(u,i)&&(o=u[i],null==(r=this.translations.alternates.default.chapters)[i]&&(r[i]=t.shallow_clone_array(this.translations.default.chapters[i])),this.translations.default.chapters[i]=t.shallow_clone_array(o));return this.options.versification_system=e,this.include_apocrypha(this.options.include_apocrypha),this}case_sensitive(e){return null==e||"none"!==e&&"books"!==e||e===this.options.case_sensitive||(this.options.case_sensitive=e,this.regexps.books=this.regexps.get_books(this.options.include_apocrypha,e)),this}translation_info(e="default"){var s,a,r,i,o,l,u,p;for(s in null!=e&&null!=(null!=(l=this.translations.aliases[e])?l.alias:void 0)&&(e=this.translations.aliases[e].alias),null!=e&&null!=this.translations[e]||(e="default"),e!==(i=this.options.versification_system)&&this.versification_system(e),o={alias:e,books:[],chapters:{},order:t.shallow_clone(this.translations.default.order)},u=this.translations.default.chapters)n.call(u,s)&&(a=u[s],o.chapters[s]=t.shallow_clone_array(a));for(s in p=o.order)n.call(p,s)&&(r=p[s],o.books[r-1]=s);return e!==i&&this.versification_system(i),o}replace_control_characters(e){return e=(e=(e=e.replace(this.regexps.control," ")).replace(/\uFF1A/g,":")).replace(/\uFF1B/g,";"),"replace"===this.options.non_latin_digits_strategy&&(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/[٠۰߀०০੦૦୦0౦೦൦๐໐༠၀႐០᠐᥆᧐᪀᪐᭐᮰᱀᱐꘠꣐꤀꧐꩐꯰0]/g,"0")).replace(/[١۱߁१১੧૧୧௧౧೧൧๑໑༡၁႑១᠑᥇᧑᪁᪑᭑᮱᱁᱑꘡꣑꤁꧑꩑꯱1]/g,"1")).replace(/[٢۲߂२২੨૨୨௨౨೨൨๒໒༢၂႒២᠒᥈᧒᪂᪒᭒᮲᱂᱒꘢꣒꤂꧒꩒꯲2]/g,"2")).replace(/[٣۳߃३৩੩૩୩௩౩೩൩๓໓༣၃႓៣᠓᥉᧓᪃᪓᭓᮳᱃᱓꘣꣓꤃꧓꩓꯳3]/g,"3")).replace(/[٤۴߄४৪੪૪୪௪౪೪൪๔໔༤၄႔៤᠔᥊᧔᪄᪔᭔᮴᱄᱔꘤꣔꤄꧔꩔꯴4]/g,"4")).replace(/[٥۵߅५৫੫૫୫௫౫೫൫๕໕༥၅႕៥᠕᥋᧕᪅᪕᭕᮵᱅᱕꘥꣕꤅꧕꩕꯵5]/g,"5")).replace(/[٦۶߆६৬੬૬୬௬౬೬൬๖໖༦၆႖៦᠖᥌᧖᪆᪖᭖᮶᱆᱖꘦꣖꤆꧖꩖꯶6]/g,"6")).replace(/[٧۷߇७৭੭૭୭௭౭೭൭๗໗༧၇႗៧᠗᥍᧗᪇᪗᭗᮷᱇᱗꘧꣗꤇꧗꩗꯷7]/g,"7")).replace(/[٨۸߈८৮੮૮୮௮౮೮൮๘໘༨၈႘៨᠘᥎᧘᪈᪘᭘᮸᱈᱘꘨꣘꤈꧘꩘꯸8]/g,"8")).replace(/[٩۹߉९৯੯૯୯௯౯೯൯๙໙༩၉႙៩᠙᥏᧙᪉᪙᭙᮹᱉᱙꘩꣙꤉꧙꩙꯹9]/g,"9")),e}match_books(e){var s,t,a,n,r,i;for(t=[],n=0,r=(i=this.regexps.books).length;n<r&&(s=i[n],a=!1,e=e.replace(s.regexp,(function(e,n,r){var i;return a=!0,t.push({value:r,parsed:s.osis,type:"book"}),i=null!=s.extra?`/${s.extra}`:"",`${n}${t.length-1}${i}`})),!0!==a||!/^[\s\x1f\d:.,;\-\u2013\u2014]+$/.test(e));n++);return[e=e.replace(this.regexps.translations,(function(e){return t.push({value:e,parsed:e.toLowerCase(),type:"translation"}),`${t.length-1}`})),this.get_book_indices(t,e)]}get_book_indices(e,s){var t,a,n;for(t=0,n=/([\x1f\x1e])(\d+)(?:\/\d+)?\1/g;a=n.exec(s);)e[a[2]].start_index=a.index+t,t+=e[a[2]].value.length-a[0].length;return e}match_passages(e){var s,t,n,r,i,o,l,u,p,c,g,x;for(n=[],c={};i=this.regexps.escaped_passage.exec(e);)[r,u,t]=i,l=u.length,i.index+=r.length-l,/\s[2-9]\d\d\s*$|\s\d{4,}\s*$/.test(u)&&(u=u.replace(/\s+\d+\s*$/,"")),/[\d\x1f\x1e)]$/.test(u)||(u=this.replace_match_end(u)),"delete"===this.options.captive_end_digits_strategy&&(o=i.index+u.length,e.length>o&&/^\w/.test(e.substr(o,1))&&(u=u.replace(/[\s*]+\d+$/,"")),u=u.replace(/(\x1e[)\]]?)[\s*]*\d+$/,"$1")),x=""===(u=u.replace(/[A-Z]+/g,(function(e){return e.toLowerCase()}))).substr(0,1)?0:u.split("")[0].length,p={value:a.parse(u,{punctuation_strategy:this.options.punctuation_strategy}),type:"base",start_index:this.passage.books[t].start_index-x,match:u},"full"===this.options.book_alone_strategy&&"include"===this.options.book_range_strategy&&"b"===p.value[0].type&&(1===p.value.length||p.value.length>1&&"translation_sequence"===p.value[1].type)&&0===x&&(1===this.passage.books[t].parsed.length||this.passage.books[t].parsed.length>1&&"translation"===this.passage.books[t].parsed[1].type)&&/^[234]/.test(this.passage.books[t].parsed[0])&&this.create_book_range(e,p,t),[s,c]=this.passage.handle_obj(p),n=n.concat(s),(g=this.adjust_regexp_end(s,l,u.length))>0&&(this.regexps.escaped_passage.lastIndex-=g);return[n,c]}adjust_regexp_end(e,s,t){var a;return a=0,e.length>0?a=s-e[e.length-1].indices[1]-1:s!==t&&(a=s-t),a}replace_match_end(e){var s,t;for(t=e.length;s=this.regexps.match_end_split.exec(e);)t=s.index+s[0].length;return t<e.length&&(e=e.substr(0,t)),e}create_book_range(s,t,a){var n,r,i,o,l,u,p;for(n=[e.prototype.regexps.first,e.prototype.regexps.second,e.prototype.regexps.third],r=i=1,p=o=parseInt(this.passage.books[a].parsed[0].substr(0,1),10);1<=p?i<p:i>p;r=1<=p?++i:--i)if(u=r===o-1?e.prototype.regexps.range_and:e.prototype.regexps.range_only,null!=(l=s.match(RegExp(`(?:^|\\W)(${n[r-1]}\\s*${u}\\s*)\\x1f${a}\\x1f`,"i"))))return this.add_book_range_object(t,l,r);return!1}add_book_range_object(e,s,t){var a,n,r,i,o,l;if(r=s[1].length,e.value[0]={type:"b_range_pre",value:[{type:"b_pre",value:t.toString(),indices:[s.index,s.index+r]},e.value[0]],indices:[0,e.value[0].indices[1]+r]},e.value[0].value[1].indices[0]+=r,e.value[0].value[1].indices[1]+=r,e.start_index-=r,e.match=s[1]+e.match,1!==e.value.length){for(l=[],a=n=1,i=e.value.length;1<=i?n<i:n>i;a=1<=i?++n:--n)null!=e.value[a].value&&(null!=(null!=(o=e.value[a].value[0])?o.indices:void 0)&&(e.value[a].value[0].indices[0]+=r,e.value[a].value[0].indices[1]+=r),e.value[a].indices[0]+=r,l.push(e.value[a].indices[1]+=r));return l}}osis(){var e,s,t,a,n;for(a=[],e=0,s=(n=this.parsed_entities()).length;e<s;e++)(t=n[e]).osis.length>0&&a.push(t.osis);return a.join(",")}osis_and_translations(){var e,s,t,a,n;for(a=[],e=0,s=(n=this.parsed_entities()).length;e<s;e++)(t=n[e]).osis.length>0&&a.push([t.osis,t.translations.join(",")]);return a}osis_and_indices(){var e,s,t,a,n;for(a=[],e=0,s=(n=this.parsed_entities()).length;e<s;e++)(t=n[e]).osis.length>0&&a.push({osis:t.osis,translations:t.translations,indices:t.indices});return a}parsed_entities(){var e,s,t,a,n,r,i,o,l,u,p,c,g,x,h,_,d,f,v,b,y,k,m,$,E,I,A,z,C,J,R,P;for(_=[],s=a=0,k=this.entities.length;0<=k?a<k:a>k;s=0<=k?++a:--a)if((e=this.entities[s]).type&&"translation_sequence"===e.type&&_.length>0&&s===_[_.length-1].entity_id+1&&(_[_.length-1].indices[1]=e.absolute_indices[1]),null!=e.passages&&!("b"===e.type&&"ignore"===this.options.book_alone_strategy||"b_range"===e.type&&"ignore"===this.options.book_range_strategy||"context"===e.type)){if(P=[],J=null,null!=e.passages[0].translations)for(n=0,i=(m=e.passages[0].translations).length;n<i;n++)R=(null!=($=(C=m[n]).osis)?$.length:void 0)>0?C.osis:"",null==J&&(J=C.alias),P.push(R);else P=[""],J="default";for(h=[],c=[],t=u=0,E=l=e.passages.length;0<=E?u<E:u>E;t=0<=E?++u:--u)if(null==(d=e.passages[t]).type&&(d.type=e.type),!1!==d.valid.valid||("ignore"===this.options.invalid_sequence_strategy&&"sequence"===e.type&&this.snap_sequence("ignore",e,h,t,l),"ignore"!==this.options.invalid_passage_strategy))if("b"!==d.type&&"b_range"!==d.type||"ignore"!==this.options.book_sequence_strategy||"sequence"!==e.type)if("b_range_start"!==d.type&&"range_end_b"!==d.type||"ignore"!==this.options.book_range_strategy||this.snap_range(e,t),null==d.absolute_indices&&(d.absolute_indices=e.absolute_indices),"separate-chapters"===this.options.consecutive_combination_strategy&&d.start.c!==d.end.c)for(t=p=I=d.start.c,A=d.end.c;I<=A?p<=A:p>=A;t=I<=A?++p:--p)y=t===d.start.c?d.start.v:1,v=t===d.end.c?d.end.v:this.translations[J].chapters[d.start.b][t-1],b={b:d.start.b,c:t,v:"bcv"===d.start.type?y:null,type:d.start.type},f={b:d.end.b,c:t,v:"bcv"===d.start.type?v:null,type:d.start.type},c.push({osis:d.valid.valid?this.to_osis(b,f,J):"",type:d.type,indices:d.absolute_indices,translations:P,start:b,end:f,enclosed_indices:d.enclosed_absolute_indices,entity_id:s,entities:[d]});else h.push({osis:d.valid.valid?this.to_osis(d.start,d.end,J):"",type:d.type,indices:d.absolute_indices,translations:P,start:d.start,end:d.end,enclosed_indices:d.enclosed_absolute_indices,entity_id:s,entities:[d]});else this.snap_sequence("book",e,h,t,l);if(0!==h.length||0!==c.length)if("combine"!==this.options.consecutive_combination_strategy&&"separate-chapters"!==this.options.consecutive_combination_strategy||(h.length>1&&(h=this.combine_consecutive_passages(h,J)),h=h.concat(c).sort(((e,s)=>e.indices[0]-s.indices[0]))),"separate"===this.options.sequence_combination_strategy)_=_.concat(h);else{for(z=[],null!=h[r=h.length-1].enclosed_indices&&h[r].enclosed_indices[1]>=0&&(e.absolute_indices[1]=h[r].enclosed_indices[1]),g=0,o=h.length;g<o;g++)(x=h[g]).osis.length>0&&z.push(x.osis);_.push({osis:z.join(","),indices:e.absolute_indices,translations:P,entity_id:s,entities:h})}}return _}to_osis(e,s,t){var a,n;return null==s.c&&null==s.v&&e.b===s.b&&null==e.c&&null==e.v&&"first_chapter"===this.options.book_alone_strategy&&(s.c=1),a={start:"",end:""},null==e.c&&(e.c=1),null==e.v&&(e.v=1),null==s.c&&(this.options.passage_existence_strategy.indexOf("c")>=0||null!=this.passage.translations[t].chapters[s.b]&&1===this.passage.translations[t].chapters[s.b].length?s.c=this.passage.translations[t].chapters[s.b].length:s.c=999),null==s.v&&(null!=this.passage.translations[t].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0?s.v=this.passage.translations[t].chapters[s.b][s.c-1]:s.v=999),this.options.include_apocrypha&&"b"===this.options.ps151_strategy&&(151===e.c&&"Ps"===e.b||151===s.c&&"Ps"===s.b)&&this.fix_ps151(e,s,t),"b"===this.options.osis_compaction_strategy&&1===e.c&&1===e.v&&(999===s.c&&999===s.v||s.c===this.passage.translations[t].chapters[s.b].length&&this.options.passage_existence_strategy.indexOf("c")>=0&&(999===s.v||s.v===this.passage.translations[t].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0))?(a.start=e.b,a.end=s.b):this.options.osis_compaction_strategy.length<=2&&1===e.v&&(999===s.v||s.v===this.passage.translations[t].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0)?(a.start=e.b+"."+e.c.toString(),a.end=s.b+"."+s.c.toString()):(a.start=e.b+"."+e.c.toString()+"."+e.v.toString(),a.end=s.b+"."+s.c.toString()+"."+s.v.toString()),n=a.start===a.end?a.start:a.start+"-"+a.end,null!=e.extra&&(n=e.extra+","+n),null!=s.extra&&(n+=","+s.extra),n}fix_ps151(e,s,t){var a;return"default"!==t&&null==(null!=(a=this.translations[t])?a.chapters.Ps151:void 0)&&this.passage.promote_book_to_translation("Ps151",t),151===e.c&&"Ps"===e.b?151===s.c&&"Ps"===s.b?(e.b="Ps151",e.c=1,s.b="Ps151",s.c=1):(e.extra=this.to_osis({b:"Ps151",c:1,v:e.v},{b:"Ps151",c:1,v:this.passage.translations[t].chapters.Ps151[0]},t),e.b="Prov",e.c=1,e.v=1):(s.extra=this.to_osis({b:"Ps151",c:1,v:1},{b:"Ps151",c:1,v:s.v},t),s.c=150,s.v=this.passage.translations[t].chapters.Ps[149])}combine_consecutive_passages(e,s){var t,a,n,r,i,o,l,u,p,c,g;for(u=[],p={},t=-1,a=!1,n=i=0,g=o=e.length-1;0<=g?i<=g:i>=g;n=0<=g?++i:--i)(l=e[n]).osis.length>0?(c=u.length-1,r=!1,l.enclosed_indices[0]!==t&&(t=l.enclosed_indices[0]),t>=0&&(n===o||e[n+1].enclosed_indices[0]!==l.enclosed_indices[0])&&(r=!0,a=!0),this.is_verse_consecutive(p,l.start,s)?(u[c].end=l.end,u[c].is_enclosed_last=r,u[c].indices[1]=l.indices[1],u[c].enclosed_indices[1]=l.enclosed_indices[1],u[c].osis=this.to_osis(u[c].start,l.end,s)):u.push(l),p={b:l.end.b,c:l.end.c,v:l.end.v}):(u.push(l),p={});return a&&this.snap_enclosed_indices(u),u}snap_enclosed_indices(e){var s,t,a;for(s=0,t=e.length;s<t;s++)null!=(a=e[s]).is_enclosed_last&&(a.enclosed_indices[0]<0&&a.is_enclosed_last&&(a.indices[1]=a.enclosed_indices[1]),delete a.is_enclosed_last);return e}is_verse_consecutive(e,s,t){var a;if(null==e.b)return!1;if(a=null!=this.passage.translations[t].order?this.passage.translations[t].order:this.passage.translations.default.order,e.b===s.b){if(e.c===s.c){if(e.v===s.v-1)return!0}else if(1===s.v&&e.c===s.c-1&&e.v===this.passage.translations[t].chapters[e.b][e.c-1])return!0}else if(1===s.c&&1===s.v&&a[e.b]===a[s.b]-1&&e.c===this.passage.translations[t].chapters[e.b].length&&e.v===this.passage.translations[t].chapters[e.b][e.c-1])return!0;return!1}snap_range(e,s){var t,a,r,i,o,l,u,p;for(a in"b_range_start"===e.type||"sequence"===e.type&&"b_range_start"===e.passages[s].type?(t=1,o="end",p="b_range_start"):(t=0,o="start",p="range_end_b"),l="end"===o?"start":"end",i=e.passages[s][l])n.call(i,a)&&(e.passages[s][l][a]=e.passages[s][o][a]);return"sequence"===e.type?(s>=e.value.length&&(s=e.value.length-1),null!=(r=this.passage.pluck(p,e.value[s]))&&(u=this.snap_range(r,0),0===s?e.absolute_indices[0]=u.absolute_indices[0]:e.absolute_indices[1]=u.absolute_indices[1])):(e.original_type=e.type,e.type=e.value[t].type,e.absolute_indices=[e.value[t].absolute_indices[0],e.value[t].absolute_indices[1]]),e}snap_sequence(e,s,t,a,n){var r;return(r=s.passages[a]).absolute_indices[0]===s.absolute_indices[0]&&a<n-1&&this.get_snap_sequence_i(s.passages,a,n)!==a?(s.absolute_indices[0]=s.passages[a+1].absolute_indices[0],this.remove_absolute_indices(s.passages,a+1)):r.absolute_indices[1]===s.absolute_indices[1]&&a>0?s.absolute_indices[1]=t.length>0?t[t.length-1].indices[1]:s.passages[a-1].absolute_indices[1]:"book"===e&&a<n-1&&!this.starts_with_book(s.passages[a+1])&&(s.passages[a+1].absolute_indices[0]=r.absolute_indices[0]),s}get_snap_sequence_i(e,s,t){var a,n,r,i;for(a=n=r=s+1,i=t;r<=i?n<i:n>i;a=r<=i?++n:--n){if(this.starts_with_book(e[a]))return a;if(e[a].valid.valid)return s}return s}starts_with_book(e){return"b"===e.type.substr(0,1)||("range"===e.type||"ff"===e.type)&&"b"===e.start.type.substr(0,1)}remove_absolute_indices(e,s){var t,a,n,r,i,o;if(e[s].enclosed_absolute_indices[0]<0)return!1;for([o,t]=e[s].enclosed_absolute_indices,a=0,n=(i=e.slice(s)).length;a<n&&((r=i[a]).enclosed_absolute_indices[0]===o&&r.enclosed_absolute_indices[1]===t);a++)r.enclosed_absolute_indices=[-1,-1];return!0}}return e.prototype.s="",e.prototype.entities=[],e.prototype.passage=null,e.prototype.regexps={},e.prototype.options={consecutive_combination_strategy:"combine",osis_compaction_strategy:"b",book_sequence_strategy:"ignore",invalid_sequence_strategy:"ignore",sequence_combination_strategy:"combine",punctuation_strategy:"us",invalid_passage_strategy:"ignore",non_latin_digits_strategy:"ignore",passage_existence_strategy:"bcv",zero_chapter_strategy:"error",zero_verse_strategy:"error",single_chapter_1_strategy:"chapter",book_alone_strategy:"ignore",book_range_strategy:"ignore",captive_end_digits_strategy:"delete",end_range_digits_strategy:"verse",include_apocrypha:!1,ps151_strategy:"c",versification_system:"default",case_sensitive:"none"},e}.call(this),this.bcv_parser=e,s=function(){class e{handle_array(e,s=[],t={}){var a,n,r;for(a=0,n=e.length;a<n;a++)if(null!=(r=e[a])){if("stop"===r.type)break;[s,t]=this.handle_obj(r,s,t)}return[s,t]}handle_obj(e,s,t){return null!=e.type&&null!=this[e.type]?this[e.type](e,s,t):[s,t]}b(e,s,a){var n,r,i,o,l,u,p;for(e.start_context=t.shallow_clone(a),e.passages=[],n=[],i=0,o=(u=this.books[e.value].parsed).length;i<o;i++)l={start:{b:r=u[i]},end:{b:r},valid:p=this.validate_ref(e.start_context.translations,{b:r})},0===e.passages.length&&p.valid?e.passages.push(l):n.push(l);return 0===e.passages.length&&e.passages.push(n.shift()),n.length>0&&(e.passages[0].alternates=n),null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),a={b:e.passages[0].start.b},null!=e.start_context.translations&&(a.translations=e.start_context.translations),[s,a]}b_range(e,s,t){return this.range(e,s,t)}b_range_pre(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),e.passages=[],n=this.pluck("b",e.value),[[r],a]=this.b(n,[],a),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),i={b:e.value[0].value+r.passages[0].start.b.substr(1),type:"b"},e.passages=[{start:i,end:r.passages[0].end,valid:r.passages[0].valid}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),s.push(e),[s,a]}b_range_start(e,s,t){return this.range(e,s,t)}base(e,s,t){return this.indices=this.calculate_indices(e.match,e.start_index),this.handle_array(e.value,s,t)}bc(e,s,a){var n,r,i,o,l,u,p,c,g;for(e.start_context=t.shallow_clone(a),e.passages=[],this.reset_context(a,["b","c","v"]),i=this.pluck("c",e.value).value,n=[],l=0,u=(c=this.books[this.pluck("b",e.value).value].parsed).length;l<u;l++)o="c",p={start:{b:r=c[l]},end:{b:r},valid:g=this.validate_ref(e.start_context.translations,{b:r,c:i})},(g.messages.start_chapter_not_exist_in_single_chapter_book||g.messages.start_chapter_1)&&(p.valid=this.validate_ref(e.start_context.translations,{b:r,v:i}),g.messages.start_chapter_not_exist_in_single_chapter_book&&(p.valid.messages.start_chapter_not_exist_in_single_chapter_book=1),p.start.c=1,p.end.c=1,o="v"),p.start[o]=i,[p.start.c,p.start.v]=this.fix_start_zeroes(p.valid,p.start.c,p.start.v),null==p.start.v&&delete p.start.v,p.end[o]=p.start[o],0===e.passages.length&&p.valid.valid?e.passages.push(p):n.push(p);return 0===e.passages.length&&e.passages.push(n.shift()),n.length>0&&(e.passages[0].alternates=n),null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),this.set_context_from_object(a,["b","c","v"],e.passages[0].start),s.push(e),[s,a]}bc_title(e,s,a){var n,r,i,o,l;if(e.start_context=t.shallow_clone(a),[[n],a]=this.bc(this.pluck("bc",e.value),[],a),"Ps"!==n.passages[0].start.b.substr(0,2)&&null!=n.passages[0].alternates)for(r=i=0,o=n.passages[0].alternates.length;0<=o?i<o:i>o;r=0<=o?++i:--i)if("Ps"===n.passages[0].alternates[r].start.b.substr(0,2)){n.passages[0]=n.passages[0].alternates[r];break}return"Ps"!==n.passages[0].start.b.substr(0,2)?(s.push(n),[s,a]):(this.books[this.pluck("b",n.value).value].parsed=["Ps"],null==(l=this.pluck("title",e.value))&&(l=this.pluck("v",e.value)),e.value[1]={type:"v",value:[{type:"integer",value:1,indices:l.indices}],indices:l.indices},e.type="bcv",this.bcv(e,s,e.start_context))}bcv(e,s,a){var n,r,i,o,l,u,p,c,g,x;for(e.start_context=t.shallow_clone(a),e.passages=[],this.reset_context(a,["b","c","v"]),i=this.pluck("bc",e.value),o=this.pluck("c",i.value).value,g=this.pluck("v",e.value).value,n=[],l=0,u=(c=this.books[this.pluck("b",i.value).value].parsed).length;l<u;l++)r=c[l],x=this.validate_ref(e.start_context.translations,{b:r,c:o,v:g}),[o,g]=this.fix_start_zeroes(x,o,g),p={start:{b:r,c:o,v:g},end:{b:r,c:o,v:g},valid:x},0===e.passages.length&&x.valid?e.passages.push(p):n.push(p);return 0===e.passages.length&&e.passages.push(n.shift()),n.length>0&&(e.passages[0].alternates=n),null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),this.set_context_from_object(a,["b","c","v"],e.passages[0].start),s.push(e),[s,a]}bv(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),[n,i]=e.value,r={indices:e.indices,value:[{type:"bc",value:[n,{type:"c",value:[{type:"integer",value:1}]}]},i]},[[r],a]=this.bcv(r,[],a),e.passages=r.passages,null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),[s,a]}c(e,s,a){var n,r;return e.start_context=t.shallow_clone(a),n="integer"===e.type?e.value:this.pluck("integer",e.value).value,!(r=this.validate_ref(e.start_context.translations,{b:a.b,c:n})).valid&&r.messages.start_chapter_not_exist_in_single_chapter_book?this.v(e,s,a):([n]=this.fix_start_zeroes(r,n),e.passages=[{start:{b:a.b,c:n},end:{b:a.b,c:n},valid:r}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),s.push(e),a.c=n,this.reset_context(a,["v"]),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),[s,a])}c_psalm(e,s,t){var a;return e.type="bc",a=parseInt(this.books[e.value].value.match(/^\d+/)[0],10),e.value=[{type:"b",value:e.value,indices:e.indices},{type:"c",value:[{type:"integer",value:a,indices:e.indices}],indices:e.indices}],this.bc(e,s,t)}c_title(e,s,a){var n;return e.start_context=t.shallow_clone(a),"Ps"!==a.b?this.c(e.value[0],s,a):(n=this.pluck("title",e.value),e.value[1]={type:"v",value:[{type:"integer",value:1,indices:n.indices}],indices:n.indices},e.type="cv",this.cv(e,s,e.start_context))}cv(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),n=this.pluck("c",e.value).value,r=this.pluck("v",e.value).value,i=this.validate_ref(e.start_context.translations,{b:a.b,c:n,v:r}),[n,r]=this.fix_start_zeroes(i,n,r),e.passages=[{start:{b:a.b,c:n,v:r},end:{b:a.b,c:n,v:r},valid:i}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),s.push(e),a.c=n,a.v=r,null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),[s,a]}cb_range(e,s,t){var a,n,r;return e.type="range",[a,r,n]=e.value,e.value=[{type:"bc",value:[a,r],indices:e.indices},n],n.indices[1]=e.indices[1],this.range(e,s,t)}context(e,s,a){var r,i;for(r in e.start_context=t.shallow_clone(a),e.passages=[],i=this.books[e.value].context)n.call(i,r)&&(a[r]=this.books[e.value].context[r]);return s.push(e),[s,a]}cv_psalm(e,s,a){var n,r,i;return e.start_context=t.shallow_clone(a),e.type="bcv",[r,i]=e.value,[[n]]=this.c_psalm(r,[],e.start_context),e.value=[n,i],this.bcv(e,s,a)}ff(e,s,a){return e.start_context=t.shallow_clone(a),e.value.push({type:"integer",indices:e.indices,value:999}),[[e],a]=this.range(e,[],e.start_context),e.value[0].indices=e.value[1].indices,e.value[0].absolute_indices=e.value[1].absolute_indices,e.value.pop(),null!=e.passages[0].valid.messages.end_verse_not_exist&&delete e.passages[0].valid.messages.end_verse_not_exist,null!=e.passages[0].valid.messages.end_chapter_not_exist&&delete e.passages[0].valid.messages.end_chapter_not_exist,null!=e.passages[0].end.original_c&&delete e.passages[0].end.original_c,s.push(e),[s,a]}integer_title(e,s,a){return e.start_context=t.shallow_clone(a),"Ps"!==a.b?this.integer(e.value[0],s,a):(e.value[0]={type:"c",value:[e.value[0]],indices:[e.value[0].indices[0],e.value[0].indices[1]]},e.value[1].type="v",e.value[1].original_type="title",e.value[1].value=[{type:"integer",value:1,indices:e.value[1].value.indices}],e.type="cv",this.cv(e,s,e.start_context))}integer(e,s,t){return null!=t.v?this.v(e,s,t):this.c(e,s,t)}next_v(e,s,a){var n,r;return e.start_context=t.shallow_clone(a),null==(n=this.pluck_last_recursively("integer",e.value))&&(n={value:1}),e.value.push({type:"integer",indices:e.indices,value:n.value+1}),[[r],a]=this.range(e,[],e.start_context),null!=r.passages[0].valid.messages.end_verse_not_exist&&null==r.passages[0].valid.messages.start_verse_not_exist&&null==r.passages[0].valid.messages.start_chapter_not_exist&&null!=a.c&&(e.value.pop(),e.value.push({type:"cv",indices:e.indices,value:[{type:"c",value:[{type:"integer",value:a.c+1,indices:e.indices}],indices:e.indices},{type:"v",value:[{type:"integer",value:1,indices:e.indices}],indices:e.indices}]}),[[r],a]=this.range(e,[],e.start_context)),r.value[0].indices=r.value[1].indices,r.value[0].absolute_indices=r.value[1].absolute_indices,r.value.pop(),null!=r.passages[0].valid.messages.end_verse_not_exist&&delete r.passages[0].valid.messages.end_verse_not_exist,null!=r.passages[0].valid.messages.end_chapter_not_exist&&delete r.passages[0].valid.messages.end_chapter_not_exist,null!=r.passages[0].end.original_c&&delete r.passages[0].end.original_c,s.push(r),[s,a]}sequence(e,s,a){var n,r,i,o,l,u,p,c,g;for(e.start_context=t.shallow_clone(a),e.passages=[],n=0,i=(p=e.value).length;n<i;n++)for(l=p[n],[[u],a]=this.handle_array(l,[],a),r=0,o=(c=u.passages).length;r<o;r++)null==(g=c[r]).type&&(g.type=u.type),null==g.absolute_indices&&(g.absolute_indices=u.absolute_indices),null!=u.start_context.translations&&(g.translations=u.start_context.translations),g.enclosed_absolute_indices="sequence_post_enclosed"===u.type?u.absolute_indices:[-1,-1],e.passages.push(g);return null==e.absolute_indices&&(e.passages.length>0&&"sequence"===e.type?e.absolute_indices=[e.passages[0].absolute_indices[0],e.passages[e.passages.length-1].absolute_indices[1]]:e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),[s,a]}sequence_post_enclosed(e,s,t){return this.sequence(e,s,t)}v(e,s,a){var n,r,i,o;return i="integer"===e.type?e.value:this.pluck("integer",e.value).value,e.start_context=t.shallow_clone(a),n=null!=a.c?a.c:1,o=this.validate_ref(e.start_context.translations,{b:a.b,c:n,v:i}),[r,i]=this.fix_start_zeroes(o,0,i),e.passages=[{start:{b:a.b,c:n,v:i},end:{b:a.b,c:n,v:i},valid:o}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),a.v=i,[s,a]}range(e,s,a){var n,r,i,o,l,u,p,c,g,x,h;return e.start_context=t.shallow_clone(a),[g,n]=e.value,[[g],a]=this.handle_obj(g,[],a),"v"!==n.type||("bc"!==g.type||(null!=(i=g.passages)&&null!=(o=i[0])&&null!=(l=o.valid)&&null!=(u=l.messages)?u.start_chapter_not_exist_in_single_chapter_book:void 0))&&"c"!==g.type||"verse"!==this.options.end_range_digits_strategy?([[n],a]=this.handle_obj(n,[],a),e.value=[g,n],e.indices=[g.indices[0],n.indices[1]],delete e.absolute_indices,x={b:g.passages[0].start.b,c:g.passages[0].start.c,v:g.passages[0].start.v,type:g.type},r={b:n.passages[0].end.b,c:n.passages[0].end.c,v:n.passages[0].end.v,type:n.type},n.passages[0].valid.messages.start_chapter_is_zero&&(r.c=0),n.passages[0].valid.messages.start_verse_is_zero&&(r.v=0),(h=this.validate_ref(e.start_context.translations,x,r)).valid?([p,c]=this.range_handle_valid(h,e,g,x,n,r,s),p?c:(null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),e.passages=[{start:x,end:r,valid:h}],null!=e.start_context.translations&&(e.passages[0].translations=e.start_context.translations),"b"===x.type?"b"===r.type?e.type="b_range":e.type="b_range_start":"b"===r.type&&(e.type="range_end_b"),s.push(e),[s,a])):this.range_handle_invalid(h,e,g,x,n,r,s)):(e.value[0]=g,this.range_change_integer_end(e,s))}range_change_end(e,s,t){var a,n,r;return[r,a]=e.value,"integer"===a.type?(a.original_value=a.value,a.value=t):"v"===a.type?((n=this.pluck("integer",a.value)).original_value=n.value,n.value=t):"cv"===a.type&&((n=this.pluck("c",a.value)).original_value=n.value,n.value=t),this.handle_obj(e,s,e.start_context)}range_change_integer_end(e,s){var t,a;return[a,t]=e.value,null==e.original_type&&(e.original_type=e.type),null==e.original_value&&(e.original_value=[a,t]),e.type="integer"===a.type?"cv":a.type+"v","integer"===a.type&&(e.value[0]={type:"c",value:[a],indices:a.indices}),"integer"===t.type&&(e.value[1]={type:"v",value:[t],indices:t.indices}),this.handle_obj(e,s,e.start_context)}range_check_new_end(e,s,t,a){var n,r,i;return n=0,i=null,a.messages.end_chapter_before_start?i="c":a.messages.end_verse_before_start&&(i="v"),null!=i&&(n=this.range_get_new_end_value(s,t,a,i)),n>0&&((r={b:t.b,c:t.c,v:t.v})[i]=n,this.validate_ref(e,r).valid||(n=0)),n}range_end_b(e,s,t){return this.range(e,s,t)}range_get_new_end_value(e,s,t,a){var n;return n=0,"c"===a&&t.messages.end_chapter_is_zero||"v"===a&&t.messages.end_verse_is_zero||(e[a]>=10&&s[a]<10&&e[a]-10*Math.floor(e[a]/10)<s[a]?n=s[a]+10*Math.floor(e[a]/10):e[a]>=100&&s[a]<100&&e[a]-100<s[a]&&(n=s[a]+100)),n}range_handle_invalid(e,s,t,a,n,r,i){var o,l;return(!1===e.valid&&(e.messages.end_chapter_before_start||e.messages.end_verse_before_start)&&("integer"===n.type||"v"===n.type)||!1===e.valid&&e.messages.end_chapter_before_start&&"cv"===n.type)&&(o=this.range_check_new_end(s.start_context.translations,a,r,e))>0?this.range_change_end(s,i,o):"verse"!==this.options.end_range_digits_strategy||null!=a.v||"integer"!==n.type&&"v"!==n.type||(l="v"===n.type?this.pluck("integer",n.value):n.value,!this.validate_ref(s.start_context.translations,{b:a.b,c:a.c,v:l}).valid)?(null==s.original_type&&(s.original_type=s.type),s.type="sequence",[s.original_value,s.value]=[[t,n],[[t],[n]]],this.sequence(s,i,s.start_context)):this.range_change_integer_end(s,i)}range_handle_valid(e,s,t,a,n,r,i){var o;return e.messages.end_chapter_not_exist&&"verse"===this.options.end_range_digits_strategy&&null==a.v&&("integer"===n.type||"v"===n.type)&&this.options.passage_existence_strategy.indexOf("v")>=0&&(o="v"===n.type?this.pluck("integer",n.value):n.value,this.validate_ref(s.start_context.translations,{b:a.b,c:a.c,v:o}).valid)?[!0,this.range_change_integer_end(s,i)]:(this.range_validate(e,a,r,s),[!1,null])}range_validate(e,s,t,a){return e.messages.end_chapter_not_exist||e.messages.end_chapter_not_exist_in_single_chapter_book?(t.original_c=t.c,t.c=e.messages.end_chapter_not_exist?e.messages.end_chapter_not_exist:e.messages.end_chapter_not_exist_in_single_chapter_book,null!=t.v&&(t.v=this.validate_ref(a.start_context.translations,{b:t.b,c:t.c,v:999}).messages.end_verse_not_exist,delete e.messages.end_verse_is_zero)):e.messages.end_verse_not_exist&&(t.original_v=t.v,t.v=e.messages.end_verse_not_exist),e.messages.end_verse_is_zero&&"allow"!==this.options.zero_verse_strategy&&(t.v=e.messages.end_verse_is_zero),e.messages.end_chapter_is_zero&&(t.c=e.messages.end_chapter_is_zero),[s.c,s.v]=this.fix_start_zeroes(e,s.c,s.v),!0}translation_sequence(e,s,a){var n,r,i,o,l,u,p,c;for(e.start_context=t.shallow_clone(a),(p=[]).push({translation:this.books[e.value[0].value].parsed}),n=0,i=(l=e.value[1]).length;n<i;n++)c=l[n],null!=(c=this.books[this.pluck("translation",c).value].parsed)&&p.push({translation:c});for(r=0,o=p.length;r<o;r++)u=p[r],null!=this.translations.aliases[u.translation]?(u.alias=this.translations.aliases[u.translation].alias,u.osis=this.translations.aliases[u.translation].osis||u.translation.toUpperCase()):(u.alias="default",u.osis=u.translation.toUpperCase());return s.length>0&&(a=this.translation_sequence_apply(s,p)),null==e.absolute_indices&&(e.absolute_indices=this.get_absolute_indices(e.indices)),s.push(e),this.reset_context(a,["translations"]),[s,a]}translation_sequence_apply(e,s){var a,n,r,i,o,l;for(l=0,n=r=o=e.length-1;o<=0?r<=0:r>=0;n=o<=0?++r:--r)if(null!=e[n].original_type&&(e[n].type=e[n].original_type),null!=e[n].original_value&&(e[n].value=e[n].original_value),"translation_sequence"===e[n].type){l=n+1;break}return l<e.length?(e[l].start_context.translations=s,[i,a]=this.handle_array(e.slice(l),[],e[l].start_context)):a=t.shallow_clone(e[e.length-1].start_context),a}pluck(e,s){var t,a,n;for(t=0,a=s.length;t<a;t++)if(null!=(n=s[t])&&null!=n.type&&n.type===e)return"c"===e||"v"===e?this.pluck("integer",n.value):n;return null}pluck_last_recursively(e,s){var t,a,n;for(t=s.length-1;t>=0;t+=-1)if(null!=(a=s[t])&&null!=a.type){if(a.type===e)return this.pluck(e,[a]);if(null!=(n=this.pluck_last_recursively(e,a.value)))return n}return null}set_context_from_object(e,s,t){var a,n,r,i;for(r=[],a=0,n=s.length;a<n;a++)null!=t[i=s[a]]&&r.push(e[i]=t[i]);return r}reset_context(e,s){var t,a,n,r;for(n=[],t=0,a=s.length;t<a;t++)r=s[t],n.push(delete e[r]);return n}fix_start_zeroes(e,s,t){return e.messages.start_chapter_is_zero&&"upgrade"===this.options.zero_chapter_strategy&&(s=e.messages.start_chapter_is_zero),e.messages.start_verse_is_zero&&"upgrade"===this.options.zero_verse_strategy&&(t=e.messages.start_verse_is_zero),[s,t]}calculate_indices(e,s){var t,a,n,r,i,o,l,u,p,c,g,x,h,_,d,f;for(d="book",n=[],c=0,s=parseInt(s,10),h=[e],r=0,o=(_=["",""]).length;r<o;r++){for(t=_[r],f=[],i=0,l=h.length;i<l;i++)g=h[i],f=f.concat(g.split(t));h=f}for(p=0,u=h.length;p<u;p++)d="book"===d?"rest":"book",0!==(x=(g=h[p]).length)&&("book"===d?(g=g.replace(/\/\d+$/,""),a=c+x,n.length>0&&n[n.length-1].index===s?n[n.length-1].end=a:n.push({start:c,end:a,index:s}),c+=x+2,s=this.books[g].start_index+this.books[g].value.length-c,n.push({start:a+1,end:a+1,index:s})):(a=c+x-1,n.length>0&&n[n.length-1].index===s?n[n.length-1].end=a:n.push({start:c,end:a,index:s}),c+=x));return n}get_absolute_indices([e,s]){var t,a,n,r,i,o;for(o=null,t=null,n=0,r=(i=this.indices).length;n<r;n++)if(a=i[n],null===o&&a.start<=e&&e<=a.end&&(o=e+a.index),a.start<=s&&s<=a.end){t=s+a.index+1;break}return[o,t]}validate_ref(e,s,t){var a,n,r,i,o,l;for(null!=e&&e.length>0||(e=[{translation:"default",osis:"",alias:"default"}]),l=!1,r={},a=0,n=e.length;a<n;a++)null==(o=e[a]).alias&&(o.alias="default"),null!=o.alias?(null==this.translations.aliases[o.alias]&&(o.alias="default",null==r.translation_unknown&&(r.translation_unknown=[]),r.translation_unknown.push(o)),[i]=this.validate_start_ref(o.alias,s,r),t&&([i]=this.validate_end_ref(o.alias,s,t,i,r)),!0===i&&(l=!0)):(null==r.translation_invalid&&(r.translation_invalid=[]),r.translation_invalid.push(o));return{valid:l,messages:r}}validate_start_ref(e,s,t){var a,n,r,i;if(i=!0,"default"!==e&&null==(null!=(a=this.translations[e])?a.chapters[s.b]:void 0)&&this.promote_book_to_translation(s.b,e),r=null!=(null!=(n=this.translations[e])?n.order:void 0)?e:"default",null!=s.v&&(s.v=parseInt(s.v,10)),null!=this.translations[r].order[s.b]){if(null==s.c&&(s.c=1),s.c=parseInt(s.c,10),isNaN(s.c))return i=!1,t.start_chapter_not_numeric=!0,[i,t];0===s.c&&(t.start_chapter_is_zero=1,"error"===this.options.zero_chapter_strategy?i=!1:s.c=1),null!=s.v&&0===s.v&&(t.start_verse_is_zero=1,"error"===this.options.zero_verse_strategy?i=!1:"upgrade"===this.options.zero_verse_strategy&&(s.v=1)),s.c>0&&null!=this.translations[e].chapters[s.b][s.c-1]?null!=s.v?isNaN(s.v)?(i=!1,t.start_verse_not_numeric=!0):s.v>this.translations[e].chapters[s.b][s.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0&&(i=!1,t.start_verse_not_exist=this.translations[e].chapters[s.b][s.c-1]):1===s.c&&"verse"===this.options.single_chapter_1_strategy&&1===this.translations[e].chapters[s.b].length&&(t.start_chapter_1=1):1!==s.c&&1===this.translations[e].chapters[s.b].length?(i=!1,t.start_chapter_not_exist_in_single_chapter_book=1):s.c>0&&this.options.passage_existence_strategy.indexOf("c")>=0&&(i=!1,t.start_chapter_not_exist=this.translations[e].chapters[s.b].length)}else null==s.b?(i=!1,t.start_book_not_defined=!0):(this.options.passage_existence_strategy.indexOf("b")>=0&&(i=!1),t.start_book_not_exist=!0);return[i,t]}validate_end_ref(e,s,t,a,n){var r,i;return i=null!=(null!=(r=this.translations[e])?r.order:void 0)?e:"default",null!=t.c&&(t.c=parseInt(t.c,10),isNaN(t.c)?(a=!1,n.end_chapter_not_numeric=!0):0===t.c&&(n.end_chapter_is_zero=1,"error"===this.options.zero_chapter_strategy?a=!1:t.c=1)),null!=t.v&&(t.v=parseInt(t.v,10),isNaN(t.v)?(a=!1,n.end_verse_not_numeric=!0):0===t.v&&(n.end_verse_is_zero=1,"error"===this.options.zero_verse_strategy?a=!1:"upgrade"===this.options.zero_verse_strategy&&(t.v=1))),null!=this.translations[i].order[t.b]?(null==t.c&&1===this.translations[e].chapters[t.b].length&&(t.c=1),null!=this.translations[i].order[s.b]&&this.translations[i].order[s.b]>this.translations[i].order[t.b]&&(this.options.passage_existence_strategy.indexOf("b")>=0&&(a=!1),n.end_book_before_start=!0),s.b!==t.b||null==t.c||isNaN(t.c)||(null==s.c&&(s.c=1),!isNaN(parseInt(s.c,10))&&s.c>t.c?(a=!1,n.end_chapter_before_start=!0):s.c!==t.c||null==t.v||isNaN(t.v)||(null==s.v&&(s.v=1),!isNaN(parseInt(s.v,10))&&s.v>t.v&&(a=!1,n.end_verse_before_start=!0))),null==t.c||isNaN(t.c)||null==this.translations[e].chapters[t.b][t.c-1]&&(1===this.translations[e].chapters[t.b].length?n.end_chapter_not_exist_in_single_chapter_book=1:t.c>0&&this.options.passage_existence_strategy.indexOf("c")>=0&&(n.end_chapter_not_exist=this.translations[e].chapters[t.b].length)),null==t.v||isNaN(t.v)||(null==t.c&&(t.c=this.translations[e].chapters[t.b].length),t.v>this.translations[e].chapters[t.b][t.c-1]&&this.options.passage_existence_strategy.indexOf("v")>=0&&(n.end_verse_not_exist=this.translations[e].chapters[t.b][t.c-1]))):(a=!1,n.end_book_not_exist=!0),[a,n]}promote_book_to_translation(e,s){var a,n;if(null==(a=this.translations)[s]&&(a[s]={}),null==(n=this.translations[s]).chapters&&(n.chapters={}),null==this.translations[s].chapters[e])return this.translations[s].chapters[e]=t.shallow_clone_array(this.translations.default.chapters[e])}}return e.prototype.books=[],e.prototype.indices={},e.prototype.options={},e.prototype.translations={},e}.call(this),t={shallow_clone:function(e){var s,t,a;if(null==e)return e;for(s in t={},e)n.call(e,s)&&(a=e[s],t[s]=a);return t},shallow_clone_array:function(e){var s,t,a,n;if(null==e)return e;for(a=[],s=t=0,n=e.length;0<=n?t<=n:t>=n;s=0<=n?++t:--t)void 0!==e[s]&&(a[s]=e[s]);return a}},e.prototype.regexps.translations=/(?:(?:ERV))\b/gi,e.prototype.translations={aliases:{default:{osis:"",alias:"default"}},alternates:{},default:{order:{Gen:1,Exod:2,Lev:3,Num:4,Deut:5,Josh:6,Judg:7,Ruth:8,"1Sam":9,"2Sam":10,"1Kgs":11,"2Kgs":12,"1Chr":13,"2Chr":14,Ezra:15,Neh:16,Esth:17,Job:18,Ps:19,Prov:20,Eccl:21,Song:22,Isa:23,Jer:24,Lam:25,Ezek:26,Dan:27,Hos:28,Joel:29,Amos:30,Obad:31,Jonah:32,Mic:33,Nah:34,Hab:35,Zeph:36,Hag:37,Zech:38,Mal:39,Matt:40,Mark:41,Luke:42,John:43,Acts:44,Rom:45,"1Cor":46,"2Cor":47,Gal:48,Eph:49,Phil:50,Col:51,"1Thess":52,"2Thess":53,"1Tim":54,"2Tim":55,Titus:56,Phlm:57,Heb:58,Jas:59,"1Pet":60,"2Pet":61,"1John":62,"2John":63,"3John":64,Jude:65,Rev:66,Tob:67,Jdt:68,GkEsth:69,Wis:70,Sir:71,Bar:72,PrAzar:73,Sus:74,Bel:75,SgThree:76,EpJer:77,"1Macc":78,"2Macc":79,"3Macc":80,"4Macc":81,"1Esd":82,"2Esd":83,PrMan:84},chapters:{Gen:[31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,55,32,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exod:[22,25,22,31,23,30,25,32,35,29,10,51,22,31,27,36,16,27,25,26,36,31,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Lev:[17,16,17,35,19,30,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Num:[54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,50,13,32,22,29,35,41,30,25,18,65,23,31,40,16,54,42,56,29,34,13],Deut:[46,37,29,49,33,25,26,20,29,22,32,32,18,29,23,22,20,22,21,20,23,30,25,22,19,19,26,68,29,20,30,52,29,12],Josh:[18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33],Judg:[36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25],Ruth:[22,23,18,22],"1Sam":[28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,15,23,29,22,44,25,12,25,11,31,13],"2Sam":[27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,33,43,26,22,51,39,25],"1Kgs":[53,46,28,34,18,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,53],"2Kgs":[18,25,27,44,27,33,20,29,37,36,21,21,25,29,38,20,41,37,37,21,26,20,37,20,30],"1Chr":[54,55,24,43,26,81,40,40,44,14,47,40,14,17,29,43,27,17,19,8,30,19,32,31,31,32,34,21,30],"2Chr":[17,18,17,22,14,42,22,18,31,19,23,16,22,15,19,14,19,34,11,37,20,12,21,27,28,23,9,27,36,27,21,33,25,33,27,23],Ezra:[11,70,13,24,17,22,28,36,15,44],Neh:[11,20,32,23,19,19,73,18,38,39,36,47,31],Esth:[22,23,15,17,14,14,10,17,32,3],Job:[22,13,26,21,27,30,21,22,35,22,20,25,28,22,35,22,16,21,29,29,34,30,17,25,6,14,23,28,25,31,40,22,33,37,16,33,24,41,30,24,34,17],Ps:[6,12,8,8,12,10,17,9,20,18,7,8,6,7,5,11,15,50,14,9,13,31,6,10,22,12,14,9,11,12,24,11,22,22,28,12,40,22,13,17,13,11,5,26,17,11,9,14,20,23,19,9,6,7,23,13,11,11,17,12,8,12,11,10,13,20,7,35,36,5,24,20,28,23,10,12,20,72,13,19,16,8,18,12,13,17,7,18,52,17,16,15,5,23,11,13,12,9,9,5,8,28,22,35,45,48,43,13,31,7,10,10,9,8,18,19,2,29,176,7,8,9,4,8,5,6,5,6,8,8,3,18,3,3,21,26,9,8,24,13,10,7,12,15,21,10,20,14,9,6],Prov:[33,22,35,27,23,35,27,36,18,32,31,28,25,35,33,33,28,24,29,30,31,29,35,34,28,28,27,28,27,33,31],Eccl:[18,26,22,16,20,12,29,17,18,20,10,14],Song:[17,17,11,16,16,13,13,14],Isa:[31,22,26,6,30,13,25,22,21,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,12,25,24],Jer:[19,37,25,31,31,30,34,22,26,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Lam:[22,22,66,22,22],Ezek:[28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,49,32,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Dan:[21,49,30,37,31,28,28,27,27,21,45,13],Hos:[11,23,5,19,15,11,16,14,17,15,12,14,16,9],Joel:[20,32,21],Amos:[15,16,15,13,27,14,17,14,15],Obad:[21],Jonah:[17,10,10,11],Mic:[16,13,12,13,15,16,20],Nah:[15,13,19],Hab:[17,20,19],Zeph:[18,15,20],Hag:[15,23],Zech:[21,13,10,14,11,15,14,23,17,12,17,14,9,21],Mal:[14,17,18,6],Matt:[25,23,17,25,48,34,29,34,38,42,30,50,58,36,39,28,27,35,30,34,46,46,39,51,46,75,66,20],Mark:[45,28,35,41,43,56,37,38,50,52,33,44,37,72,47,20],Luke:[80,52,38,44,39,49,50,56,62,42,54,59,35,35,32,31,37,43,48,47,38,71,56,53],John:[51,25,36,54,47,71,53,59,41,42,57,50,38,31,27,33,26,40,42,31,25],Acts:[26,47,26,37,42,15,60,40,43,48,30,25,52,28,41,40,34,28,41,38,40,30,35,27,27,32,44,31],Rom:[32,29,31,25,21,23,25,39,33,21,36,21,14,23,33,27],"1Cor":[31,16,23,21,13,20,40,13,27,33,34,31,13,40,58,24],"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,14],Gal:[24,21,29,31,26,18],Eph:[23,22,21,32,33,24],Phil:[30,30,21,23],Col:[29,23,25,18],"1Thess":[10,20,13,18,28],"2Thess":[12,17,18],"1Tim":[20,15,16,16,25,21],"2Tim":[18,26,17,22],Titus:[16,15,15],Phlm:[25],Heb:[14,18,19,16,14,20,28,13,28,39,40,29,25],Jas:[27,26,18,17,20],"1Pet":[25,25,22,19,14],"2Pet":[21,22,18],"1John":[10,29,24,21,21],"2John":[13],"3John":[15],Jude:[25],Rev:[20,29,22,11,14,17,17,13,21,11,19,17,18,20,8,21,18,24,21,15,27,21],Tob:[22,14,17,21,22,18,16,21,6,13,18,22,17,15],Jdt:[16,28,10,15,24,21,32,36,14,23,23,20,20,19,14,25],GkEsth:[22,23,15,17,14,14,10,17,32,13,12,6,18,19,16,24],Wis:[16,24,19,20,23,25,30,21,18,21,26,27,19,31,19,29,21,25,22],Sir:[30,18,31,31,15,37,36,19,18,31,34,18,26,27,20,30,32,33,30,31,28,27,27,34,26,29,30,26,28,25,31,24,33,31,26,31,31,34,35,30,22,25,33,23,26,20,25,25,16,29,30],Bar:[22,35,37,37,9],PrAzar:[68],Sus:[64],Bel:[42],SgThree:[39],EpJer:[73],"1Macc":[64,70,60,61,68,63,50,32,73,89,74,53,53,49,41,24],"2Macc":[36,32,40,50,27,31,42,36,29,38,38,45,26,46,39],"3Macc":[29,33,30,21,51,41,23],"4Macc":[35,24,21,26,38,35,23,29,32,21,27,19,27,20,32,25,24,24],"1Esd":[58,30,24,63,73,34,15,96,55],"2Esd":[40,48,36,52,56,59,70,63,47,59,46,51,58,48,63,78],PrMan:[15],Ps151:[7]}},vulgate:{chapters:{Gen:[31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,55,32,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,32,25],Exod:[22,25,22,31,23,30,25,32,35,29,10,51,22,31,27,36,16,27,25,26,36,31,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,36],Lev:[17,16,17,35,19,30,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,45,34],Num:[54,34,51,49,31,27,89,26,23,36,34,15,34,45,41,50,13,32,22,30,35,41,30,25,18,65,23,31,39,17,54,42,56,29,34,13],Josh:[18,24,17,25,16,27,26,35,27,44,23,24,33,15,63,10,18,28,51,9,43,34,16,33],Judg:[36,23,31,24,32,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,24],"1Sam":[28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,43,15,23,28,23,44,25,12,25,11,31,13],"1Kgs":[53,46,28,34,18,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"1Chr":[54,55,24,43,26,81,40,40,44,14,46,40,14,17,29,43,27,17,19,7,30,19,32,31,31,32,34,21,30],Neh:[11,20,31,23,19,19,73,18,38,39,36,46,31],Job:[22,13,26,21,27,30,21,22,35,22,20,25,28,22,35,23,16,21,29,29,34,30,17,25,6,14,23,28,25,31,40,22,33,37,16,33,24,41,35,28,25,16],Ps:[6,13,9,10,13,11,18,10,39,8,9,6,7,5,10,15,51,15,10,14,32,6,10,22,12,14,9,11,13,25,11,22,23,28,13,40,23,14,18,14,12,5,26,18,12,10,15,21,23,21,11,7,9,24,13,12,12,18,14,9,13,12,11,14,20,8,36,37,6,24,20,28,23,11,13,21,72,13,20,17,8,19,13,14,17,7,19,53,17,16,16,5,23,11,13,12,9,9,5,8,29,22,35,45,48,43,14,31,7,10,10,9,26,9,10,2,29,176,7,8,9,4,8,5,6,5,6,8,8,3,18,3,3,21,26,9,8,24,14,10,8,12,15,21,10,11,9,14,9,6],Eccl:[18,26,22,17,19,11,30,17,18,20,10,14],Song:[16,17,11,16,17,12,13,14],Jer:[19,37,25,31,31,30,34,22,26,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,20,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Ezek:[28,9,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,49,32,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Dan:[21,49,100,34,31,28,28,27,27,21,45,13,65,42],Hos:[11,24,5,19,15,11,16,14,17,15,12,14,15,10],Amos:[15,16,15,13,27,15,17,14,14],Jonah:[16,11,10,11],Mic:[16,13,12,13,14,16,20],Hag:[14,24],Matt:[25,23,17,25,48,34,29,34,38,42,30,50,58,36,39,28,26,35,30,34,46,46,39,51,46,75,66,20],Mark:[45,28,35,40,43,56,37,39,49,52,33,44,37,72,47,20],John:[51,25,36,54,47,72,53,59,41,42,57,50,38,31,27,33,26,40,42,31,25],Acts:[26,47,26,37,42,15,59,40,43,48,30,25,52,27,41,40,34,28,40,38,40,30,35,27,27,32,44,31],"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21],Tob:[25,23,25,23,28,22,20,24,12,13,21,22,23,17],Jdt:[12,18,15,17,29,21,25,34,19,20,21,20,31,18,15,31],Wis:[16,25,19,20,24,27,30,21,19,21,27,27,19,31,19,29,20,25,20],Sir:[40,23,34,36,18,37,40,22,25,34,36,19,32,27,22,31,31,33,28,33,31,33,38,47,36,28,33,30,35,27,42,28,33,31,26,28,34,39,41,32,28,26,37,27,31,23,31,28,19,31,38,13],Bar:[22,35,38,37,9,72],"1Macc":[67,70,60,61,68,63,50,32,73,89,74,54,54,49,41,24],"2Macc":[36,33,40,50,27,31,42,36,29,38,38,46,26,46,40]}},ceb:{chapters:{"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21],Tob:[22,14,17,21,22,18,16,21,6,13,18,22,18,15],PrAzar:[67],EpJer:[72],"1Esd":[55,26,24,63,71,33,15,92,55]}},kjv:{chapters:{"3John":[14]}},nab:{order:{Gen:1,Exod:2,Lev:3,Num:4,Deut:5,Josh:6,Judg:7,Ruth:8,"1Sam":9,"2Sam":10,"1Kgs":11,"2Kgs":12,"1Chr":13,"2Chr":14,PrMan:15,Ezra:16,Neh:17,"1Esd":18,"2Esd":19,Tob:20,Jdt:21,Esth:22,GkEsth:23,"1Macc":24,"2Macc":25,"3Macc":26,"4Macc":27,Job:28,Ps:29,Prov:30,Eccl:31,Song:32,Wis:33,Sir:34,Isa:35,Jer:36,Lam:37,Bar:38,EpJer:39,Ezek:40,Dan:41,PrAzar:42,Sus:43,Bel:44,SgThree:45,Hos:46,Joel:47,Amos:48,Obad:49,Jonah:50,Mic:51,Nah:52,Hab:53,Zeph:54,Hag:55,Zech:56,Mal:57,Matt:58,Mark:59,Luke:60,John:61,Acts:62,Rom:63,"1Cor":64,"2Cor":65,Gal:66,Eph:67,Phil:68,Col:69,"1Thess":70,"2Thess":71,"1Tim":72,"2Tim":73,Titus:74,Phlm:75,Heb:76,Jas:77,"1Pet":78,"2Pet":79,"1John":80,"2John":81,"3John":82,Jude:83,Rev:84},chapters:{Gen:[31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exod:[22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,26,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Lev:[17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Num:[54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13],Deut:[46,37,29,49,33,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12],"1Sam":[28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,44,25,12,25,11,31,13],"2Sam":[27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"1Kgs":[53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"2Kgs":[18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],"1Chr":[54,55,24,43,41,66,40,40,44,14,47,41,14,17,29,43,27,17,19,8,30,19,32,31,31,32,34,21,30],"2Chr":[18,17,17,22,14,42,22,18,31,19,23,16,23,14,19,14,19,34,11,37,20,12,21,27,28,23,9,27,36,27,21,33,25,33,27,23],Neh:[11,20,38,17,19,19,72,18,37,40,36,47,31],Job:[22,13,26,21,27,30,21,22,35,22,20,25,28,22,35,22,16,21,29,29,34,30,17,25,6,14,23,28,25,31,40,22,33,37,16,33,24,41,30,32,26,17],Ps:[6,11,9,9,13,11,18,10,21,18,7,9,6,7,5,11,15,51,15,10,14,32,6,10,22,12,14,9,11,13,25,11,22,23,28,13,40,23,14,18,14,12,5,27,18,12,10,15,21,23,21,11,7,9,24,14,12,12,18,14,9,13,12,11,14,20,8,36,37,6,24,20,28,23,11,13,21,72,13,20,17,8,19,13,14,17,7,19,53,17,16,16,5,23,11,13,12,9,9,5,8,29,22,35,45,48,43,14,31,7,10,10,9,8,18,19,2,29,176,7,8,9,4,8,5,6,5,6,8,8,3,18,3,3,21,26,9,8,24,14,10,8,12,15,21,10,20,14,9,6],Eccl:[18,26,22,17,19,12,29,17,18,20,10,14],Song:[17,17,11,16,16,12,14,14],Isa:[31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24],Jer:[19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Ezek:[28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Dan:[21,49,100,34,30,29,28,27,27,21,45,13,64,42],Hos:[9,25,5,19,15,11,16,14,17,15,11,15,15,10],Joel:[20,27,5,21],Jonah:[16,11,10,11],Mic:[16,13,12,14,14,16,20],Nah:[14,14,19],Zech:[17,17,10,14,11,15,14,23,17,12,17,14,9,21],Mal:[14,17,24],Acts:[26,47,26,37,42,15,60,40,43,49,30,25,52,28,41,40,34,28,40,38,40,30,35,27,27,32,44,31],"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21],Tob:[22,14,17,21,22,18,17,21,6,13,18,22,18,15],Sir:[30,18,31,31,15,37,36,19,18,31,34,18,26,27,20,30,32,33,30,31,28,27,27,33,26,29,30,26,28,25,31,24,33,31,26,31,31,34,35,30,22,25,33,23,26,20,25,25,16,29,30],Bar:[22,35,38,37,9,72],"2Macc":[36,32,40,50,27,31,42,36,29,38,38,46,26,46,39]}},nlt:{chapters:{Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21]}},nrsv:{chapters:{"2Cor":[24,17,18,18,21,18,16,24,15,18,33,21,13],Rev:[20,29,22,11,14,17,17,13,21,11,19,18,18,20,8,21,18,24,21,15,27,21]}}},e.prototype.languages=["sr"],e.prototype.regexps.space="[\\s\\xa0]",e.prototype.regexps.escaped_passage=/(?:^|[^\x1f\x1e\dA-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:(?:ch(?:apters?|a?pts?\.?|a?p?s?\.?)?\s*\d+\s*(?:[\u2013\u2014\-]|through|thru|to)\s*\d+\s*(?:from|of|in)(?:\s+the\s+book\s+of)?\s*)|(?:ch(?:apters?|a?pts?\.?|a?p?s?\.?)?\s*\d+\s*(?:from|of|in)(?:\s+the\s+book\s+of)?\s*)|(?:\d+(?:th|nd|st)\s*ch(?:apter|a?pt\.?|a?p?\.?)?\s*(?:from|of|in)(?:\s+the\s+book\s+of)?\s*))?\x1f(\d+)(?:\/\d+)?\x1f(?:\/\d+\x1f|[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014]|title(?![a-z])|поглавља|стихови|глава|стих|ff|-|и|[aаб](?!\w)|$)+)/gi,e.prototype.regexps.match_end_split=/\d\W*title|\d\W*ff(?:[\s\xa0*]*\.)?|\d[\s\xa0*]*[aаб](?!\w)|\x1e(?:[\s\xa0*]*[)\]\uff09])?|[\d\x1f]/gi,e.prototype.regexps.control=/[\x1e\x1f]/g,e.prototype.regexps.pre_book="[^A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ]",e.prototype.regexps.first=`(?:Прва|1|I|1)\\.?${e.prototype.regexps.space}*`,e.prototype.regexps.second=`(?:Друга|2|II|2)\\.?${e.prototype.regexps.space}*`,e.prototype.regexps.third=`(?:Трећом|Трећа|3|III|3)\\.?${e.prototype.regexps.space}*`,e.prototype.regexps.range_and="(?:[&–—-]|и|-)",e.prototype.regexps.range_only="(?:[–—-]|-)",e.prototype.regexps.get_books=function(s,t){var a,n,r,i,o;if(n=[{osis:["Ps"],apocrypha:!0,extra:"2",regexp:/(\b)(Ps151)(?=\.1)/g},{osis:["Gen"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:П(?:рва[\s\xa0]*Мојс(?:ијева)?|ост(?:ање)?)|(?:1\.|I)\.[\s\xa0]*Мојс(?:ијева)?|(?:1\.?|I)[\s\xa0]*Мојс(?:ијева)?|Gen))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Exod"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*Мојс(?:ијева)?|(?:II|2\.)\.[\s\xa0]*Мојс(?:ијева)?|(?:II|2\.?)[\s\xa0]*Мојс(?:ијева)?|Излазак|Егзодус|Exod|Изл))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Bel"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Bel))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Lev"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*Мојс(?:ијева)?|а[\s\xa0]*Мојс(?:ијева)?)|(?:III|3\.)\.[\s\xa0]*Мојс(?:ијева)?|(?:III|3\.?)[\s\xa0]*Мојс(?:ијева)?|Левитска|Лев|Lev))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Num"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Четврта[\s\xa0]*Мојс(?:ијева)?|(?:IV|4\.)\.[\s\xa0]*Мојс(?:ијева)?|(?:IV|4\.?)[\s\xa0]*Мојс(?:ијева)?|Бројеви|Num|Бр))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Sir"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Премудрости[\\s\\xa0]*Исуса[\\s\\xa0]*сина[\\s\\xa0]*Сирахова|Еклезијастикус|Сирина|Сир|ИсС|Sir))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Wis"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Прем(?:удорсти[\\s\\xa0]*Соломонове|[\\s\\xa0]*Сол)|Мудрости[\\s\\xa0]*Соломонове|Мудрости|Wis))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Lam"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Плач(?:[\\s\\xa0]*Јеремијин)?|Lam))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["EpJer"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:П(?:осланица[\\s\\xa0]*Јеремијина|исма[\\s\\xa0]*Јеремије)|EpJer))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Rev"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Отк(?:р(?:овење[\\s\\xa0]*Јованово|ивење(?:[\\s\\xa0]*Јованово)?))?|Rev))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["PrMan"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Молитва[\\s\\xa0]*Манасијина|PrMan))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Deut"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:П(?:он(?:овљени[\s\xa0]*закони|з)|ета[\s\xa0]*Мојс(?:ијева)?)|(?:5\.|V)\.[\s\xa0]*Мојсијева|(?:5\.?|V)[\s\xa0]*Мојсијева|(?:(?:5\.|V)\.|5\.?|V)[\s\xa0]*Мојс|Deut))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Josh"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:И(?:сус[\\s\\xa0]*Навин|Нав)|Josh))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Judg"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Суд(?:иј[ае])?|Judg))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Ruth"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Рута?|Ruth))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["1Esd"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:Је|Е)здрина|(?:1\.|I)\.[\s\xa0]*(?:Је|Е)здрина|(?:1\.|I)[\s\xa0]*(?:Је|Е)здрина|1(?:[\s\xa0]*Јездрина|[\s\xa0]*Ездрина|[\s\xa0]*Јез|Esd)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Esd"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:Је|Е)здрина|(?:II|2\.)\.[\s\xa0]*(?:Је|Е)здрина|(?:II|2\.)[\s\xa0]*(?:Је|Е)здрина|2(?:[\s\xa0]*Јездрина|[\s\xa0]*Ездрина|[\s\xa0]*Јез|Esd)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Isa"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ис(?:аија)?|Isa))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Sam"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:краљевим|Самуилов)а|(?:II|2\.)\.[\s\xa0]*(?:краљевим|Самуилов)а|(?:II|2\.)[\s\xa0]*(?:краљевим|Самуилов)а|2(?:[\s\xa0]*краљевима|[\s\xa0]*Самуилова|[\s\xa0]*Сам|Sam)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Sam"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:краљевим|Самуилов)а|(?:1\.|I)\.[\s\xa0]*(?:краљевим|Самуилов)а|(?:1\.|I)[\s\xa0]*(?:краљевим|Самуилов)а|1(?:[\s\xa0]*краљевима|[\s\xa0]*Самуилова|[\s\xa0]*Сам|Sam)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Kgs"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Четврта[\s\xa0]*краљев(?:ств|им)а|(?:Друга|(?:II|2\.)\.|II|2\.|2)[\s\xa0]*о[\s\xa0]*царевима|(?:IV|4\.)\.[\s\xa0]*краљев(?:ств|им)а|(?:Друга[\s\xa0]*(?:краљ|Цар)|(?:II|2\.)\.[\s\xa0]*(?:краљ|Цар)|(?:II|2\.)[\s\xa0]*(?:краљ|Цар)|2[\s\xa0]*(?:краљ|Цар))ева|(?:IV|4\.?)[\s\xa0]*краљев(?:ств|им)а|2(?:[\s\xa0]*Цар|Kgs)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Kgs"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*краљев(?:ств|им)|а[\s\xa0]*краљев(?:ств|им))а|(?:Прва|1\.\.|1\.?|I\.?)[\s\xa0]*о[\s\xa0]*царевима|(?:III|3\.)\.[\s\xa0]*краљев(?:ств|им)а|(?:III|3\.?)[\s\xa0]*краљев(?:ств|им)а|(?:(?:Прва|1\.\.)[\s\xa0]*(?:краљ|Цар)|1(?:\.[\s\xa0]*(?:краљ|Цар)|[\s\xa0]*(?:краљ|Цар))|I(?:\.[\s\xa0]*(?:краљ|Цар)|[\s\xa0]*(?:краљ|Цар)))ева|1(?:[\s\xa0]*Цар|Kgs)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Chr"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:II|2\.)\.[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:II|2\.)[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|2(?:[\s\xa0]*Паралипоменону|[\s\xa0]*Дневника|[\s\xa0]*хроника|[\s\xa0]*(?:хро|Д)н|Chr))|(?:2[\s\xa0]*дневника))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Chr"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:1\.|I)\.[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|(?:1\.|I)[\s\xa0]*(?:Паралипоменону|(?:днев|хро)ника)|1(?:[\s\xa0]*Паралипоменону|[\s\xa0]*Дневника|[\s\xa0]*хроника|[\s\xa0]*(?:хро|Д)н|Chr))|(?:1[\s\xa0]*дневника))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Ezra"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Езрина|Јездра|Ezra|Езр))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Neh"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Нем(?:ија)?|Neh))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["GkEsth"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:GkEsth))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Esth"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јест(?:ира)?|Естер|Esth))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Job"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јов|Job))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Ps"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Пс(?:ал(?:ми(?:[\\s\\xa0]*Давидови)?|ам))?|Ps(?:alam)?))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["PrAzar"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:PrAzar))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Prov"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Пр(?:иче[\\s\\xa0]*Солом[оу]нове)?|Изреке|Prov))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Eccl"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Проп(?:оведник)?|Eccl))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["SgThree"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:SgThree))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Song"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:П(?:есма[\\s\\xa0]*(?:над[\\s\\xa0]*песмам|Соломонов)а|нп)|Song))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jer"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јер(?:емија)?|Jer(?:emija)?))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Ezek"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јез(?:екиљ)?|Ezek))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Dan"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Дан(?:ило)?|Dan))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Hos"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Хошеа|Ос(?:ија)?|Hos))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Joel"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јои(?:ло?|љ)|Joel))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Amos"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ам(?:ос)?|Amos))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Obad"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Авд(?:иј[ае])?|Obad))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jonah"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Jonah|Јона))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Mic"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Мих(?:еј)?|Mic))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Nah"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Наум|Nah))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Hab"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ав(?:акум)?|Hab))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Zeph"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Соф(?:ониј[ае])?|Zeph))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Hag"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Аг(?:еј)?|Hag))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Zech"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Зах(?:арија)?|Zech))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Mal"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Мал(?:ахија)?|Mal))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Matt"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јеванђеље[\\s\\xa0]*по[\\s\\xa0]*Матеју|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Матеју|М(?:атеја|т)|Матеј|Matt))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:II|2\.)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:II|2\.)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|2(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["3Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*Мака(?:веј(?:ск)?|бејац)|а[\s\xa0]*Мака(?:веј(?:ск)?|бејац))а|(?:III|3\.)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:III|3\.)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|3(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["4Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Четврта[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:IV|4\.)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:IV|4\.)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|4(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Macc"],apocrypha:!0,regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:1\.|I)\.[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|(?:1\.|I)[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|1(?:[\s\xa0]*Мака(?:веј(?:ск)?|бејац)а|Macc|[\s\xa0]*Мк)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Mark"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јеванђеље[\\s\\xa0]*по[\\s\\xa0]*Марку|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Марку|М(?:арк[oо]|к)|Mark))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Luke"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Јеванђеље[\\s\\xa0]*по[\\s\\xa0]*Луки|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Луки|Л(?:ук[aа]|к)|Luke))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["1John"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|1(?:[\s\xa0]*посланица[\s\xa0]*Јованова|[\s\xa0]*Јованова|John|[\s\xa0]*Јн)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2John"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|2(?:[\s\xa0]*посланица[\s\xa0]*Јованова|[\s\xa0]*Јованова|John|[\s\xa0]*Јн)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["3John"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Трећ(?:ом[\s\xa0]*(?:посланица[\s\xa0]*)?|а[\s\xa0]*(?:посланица[\s\xa0]*)?)Јованова|(?:III|3\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|(?:III|3\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Јованова|3(?:[\s\xa0]*посланица[\s\xa0]*Јованова|[\s\xa0]*Јованова|John|[\s\xa0]*Јн)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["John"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Ј(?:еванђеље[\\s\\xa0]*по[\\s\\xa0]*Јовану|(?:ова)?н)|Еванђеље[\\s\\xa0]*по[\\s\\xa0]*Јовану|Jo(?:va|h)n))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Acts"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Д(?:ела(?:[\\s\\xa0]*Апостолска)?|ап)|Acts))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Rom"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Римљанима|Римљанима|Рим|Rom))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Cor"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|2(?:[\s\xa0]*посланица[\s\xa0]*Коринћанима|[\s\xa0]*Коринћанима|[\s\xa0]*Кор|Cor)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Cor"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Коринћанима|1(?:[\s\xa0]*посланица[\s\xa0]*Коринћанима|[\s\xa0]*Коринћанима|[\s\xa0]*Кор|Cor)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Gal"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Гала(?:ћан|т)има|Гала(?:ћан|т)има|Гал|Gal))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Eph"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Ефесцима|Ефесцима|Eph|Еф))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Phil"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Филипљанима|Фили[бп]љанима|Phil|Флп))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Col"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Колошанима|Колошанима|Кол|Col))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Thess"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|2(?:[\s\xa0]*посланица[\s\xa0]*Солуњанима|[\s\xa0]*Солуњанима|Thess|[\s\xa0]*Сол)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Thess"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Солуњанима|1(?:[\s\xa0]*посланица[\s\xa0]*Солуњанима|[\s\xa0]*Солуњанима|Thess|[\s\xa0]*Сол)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["2Tim"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|2(?:[\s\xa0]*посланица[\s\xa0]*Тимотеју|[\s\xa0]*Тимот[еи]ју|[\s\xa0]*Тим|Tim)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Tim"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*Тимоте|Тимот[еи])ју|1(?:[\s\xa0]*посланица[\s\xa0]*Тимотеју|[\s\xa0]*Тимот[еи]ју|[\s\xa0]*Тим|Tim)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Titus"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Титу|Titus|Титу|Тит))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Phlm"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Филимону|Филимону|Phlm|Фил))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Heb"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Јеврејима|Jevrejima|Јеврејима|Јев|Heb))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jas"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Јаковљева|Јаковљева|Јаковова|Јак(?:ов)?|Jas))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["2Pet"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Друга[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:II|2\.)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:II|2\.)[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|2(?:[\s\xa0]*посланица[\s\xa0]*Петрова|[\s\xa0]*Петрова|[\s\xa0]*Петр?|Pet)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["1Pet"],regexp:/(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏЀ-ҁ҃-҇Ҋ-ԧḀ-ỿⱠ-Ɀⷠ-ⷿꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Прва[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:1\.|I)\.[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|(?:1\.|I)[\s\xa0]*(?:посланица[\s\xa0]*)?Петрова|1(?:[\s\xa0]*посланица[\s\xa0]*Петрова|[\s\xa0]*Петрова|[\s\xa0]*Петр?|Pet)))(?:(?=[\d\s\xa0.:,;\x1e\x1f&\(\)\uff08\uff09\[\]\/"'\*=~\-\u2013\u2014])|$)/gi},{osis:["Jude"],regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Посланица[\\s\\xa0]*Јудина|Ј(?:аковљевог|уде|д)|Јудина|Jude))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Tob"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Књига[\\s\\xa0]*Товијина|Тобија|Товит|Тов|Tob))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Jdt"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Књига[\\s\\xa0]*о[\\s\\xa0]*Јудити|Јудита|Јуд|Jdt))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Bar"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Варух|Барух|Вар|Bar))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")},{osis:["Sus"],apocrypha:!0,regexp:RegExp(`(^|${e.prototype.regexps.pre_book})((?:Sus))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`,"gi")}],!0===s&&"none"===t)return n;for(o=[],r=0,i=n.length;r<i;r++)a=n[r],!1===s&&null!=a.apocrypha&&!0===a.apocrypha||("books"===t&&(a.regexp=new RegExp(a.regexp.source,"g")),o.push(a));return o},e.prototype.regexps.books=e.prototype.regexps.get_books(!1,"none"),function(){"use strict";function e(s,t,a,n){var r=Error.call(this,s);return Object.setPrototypeOf&&Object.setPrototypeOf(r,e.prototype),r.expected=t,r.found=a,r.location=n,r.name="SyntaxError",r}function s(e,s,t){return t=t||" ",e.length>s?e:(s-=e.length,e+(t+=t.repeat(s)).slice(0,s))}!function(e,s){function t(){this.constructor=e}t.prototype=s.prototype,e.prototype=new t}(e,Error),e.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var a,n=null;for(a=0;a<e.length;a++)if(e[a].source===this.location.source){n=e[a].text.split(/\r\n|\n|\r/g);break}var r=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(r):r,o=this.location.source+":"+i.line+":"+i.column;if(n){var l=this.location.end,u=s("",i.line.toString().length," "),p=n[r.line-1],c=(r.line===l.line?l.column:p.length+1)-r.column||1;t+="\n --\x3e "+o+"\n"+u+" |\n"+i.line+" | "+p+"\n"+u+" | "+s("",r.column-1," ")+s("",c,"^")}else t+="\n at "+o}return t},e.buildMessage=function(e,s){var t={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var s=e.parts.map((function(e){return Array.isArray(e)?r(e[0])+"-"+r(e[1]):r(e)}));return"["+(e.inverted?"^":"")+s.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function a(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function r(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function i(e){return t[e.type](e)}return"Expected "+function(e){var s,t,a=e.map(i);if(a.sort(),a.length>0){for(s=1,t=1;s<a.length;s++)a[s-1]!==a[s]&&(a[t]=a[s],t++);a.length=t}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(s)+" found."},a={StartRules:["start"],SyntaxError:e,parse:function(s,t){var a,n={},r=(t=void 0!==t?t:{}).grammarSource,i={start:Cs},o=Cs,l="(",u=")",p="",c="/",g=",",x=".",h="-",_="th",d="nd",f="st",v="/1",b="ff",y="/9",k="/2",m=".1",$="поглавља",E="глава",I="стих",A="ови",z="и",C="title",J="from",R="of",P="in",w="the",M="book",S="",Z=/^[1-8]/,N=/^[a-z]/,T=/^[0-9]/,q=/^[a\u0430\u0431]/i,j=/^["']/,L=/^[,;\/:&\-\u2013\u2014~]/,H=/^[\-\u2013\u2014]/,O=/^[([]/,F=/^[)\]]/,G=/^[^\x1F\x1E([]/,D=ms("(",!1),B=ms(")",!1),K=ms("",!1),V=ms("/",!1),W=$s([["1","8"]],!1,!1),U=ms(",",!1),Q=ms(".",!1),X=ms("-",!1),Y=ms("th",!1),ee=ms("nd",!1),se=ms("st",!1),te=ms("/1",!1),ae=ms("ff",!1),ne=$s([["a","z"]],!1,!1),re=ms("/9",!1),ie=ms("/2",!1),oe=ms(".1",!1),le=$s([["0","9"]],!1,!1),ue=$s(["a","а","б"],!1,!0),pe=ms("поглавља",!0),ce=ms("глава",!0),ge=ms("стих",!0),xe=ms("ови",!0),he=ms(":",!1),_e=$s(['"',"'"],!1,!1),de=$s([",",";","/",":","&","-","–","—","~"],!1,!1),fe=ms("и",!0),ve=$s(["-","–","—"],!1,!1),be=ms("title",!1),ye=ms("from",!1),ke=ms("of",!1),me=ms("in",!1),$e=ms("the",!1),Ee=ms("book",!1),Ie=$s(["(","["],!1,!1),Ae=$s([")","]"],!1,!1),ze=ms("",!1),Ce=(ms(",000",!1),$s(["","","(","["],!0,!1)),Je=($s([" ","\t","\r","\n"," ","*"],!1,!1),function(e,s){return s.unshift([e]),{type:"sequence",value:s,indices:[fs,ds-1]}}),Re=function(e,s){return void 0===s&&(s=[]),s.unshift([e]),{type:"sequence_post_enclosed",value:s,indices:[fs,ds-1]}},Pe=function(e,s){return e.length&&2===e.length&&(e=e[0]),{type:"range",value:[e,s],indices:[fs,ds-1]}},we=function(e){return{type:"b",value:e.value,indices:[fs,ds-1]}},Me=function(e,s){return{type:"bc",value:[e,s],indices:[fs,ds-1]}},Se=function(e,s){return{type:"bc",value:[e,s],indices:[fs,ds-1]}},Ze=function(e,s){return{type:"bc_title",value:[e,s],indices:[fs,ds-1]}},Ne=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},Te=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},qe=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},je=function(e,s,t,a){return{type:"range",value:[{type:"bcv",value:[{type:"bc",value:[e,s],indices:[e.indices[0],s.indices[1]]},t],indices:[e.indices[0],t.indices[1]]},a],indices:[fs,ds-1]}},Le=function(e,s){return{type:"bv",value:[e,s],indices:[fs,ds-1]}},He=function(e,s){return{type:"bc",value:[s,e],indices:[fs,ds-1]}},Oe=function(e,s,t){return{type:"cb_range",value:[t,e,s],indices:[fs,ds-1]}},Fe=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},Ge=function(e,s){return{type:"bc",value:[s,e],indices:[fs,ds-1]}},De=function(e,s){return{type:"bcv",value:[e,s],indices:[fs,ds-1]}},Be=function(e){return{type:"c_psalm",value:e.value,indices:[fs,ds-1]}},Ke=function(e,s){return{type:"cv_psalm",value:[e,s],indices:[fs,ds-1]}},Ve=function(e,s){return{type:"c_title",value:[e,s],indices:[fs,ds-1]}},We=function(e,s){return{type:"cv",value:[e,s],indices:[fs,ds-1]}},Ue=function(e,s){return{type:"cv",value:[e,s],indices:[fs,ds-1]}},Qe=function(e){return{type:"c",value:[e],indices:[fs,ds-1]}},Xe=function(e){return{type:"ff",value:[e],indices:[fs,ds-1]}},Ye=function(e,s){return{type:"integer_title",value:[e,s],indices:[fs,ds-1]}},es=function(e){return{type:"context",value:e.value,indices:[fs,ds-1]}},ss=function(e){return{type:"b",value:e.value,indices:[fs,ds-1]}},ts=function(e){return{type:"bc",value:[e,{type:"c",value:[{type:"integer",value:151,indices:[ds-2,ds-1]}],indices:[ds-2,ds-1]}],indices:[fs,ds-1]}},as=function(e,s){return{type:"bcv",value:[e,{type:"v",value:[s],indices:[s.indices[0],s.indices[1]]}],indices:[fs,ds-1]}},ns=function(e){return{type:"v",value:[e],indices:[fs,ds-1]}},rs=function(e){return{type:"v",value:[e],indices:[fs,ds-1]}},is=function(){return{type:"c_explicit"}},os=function(){return{type:"v_explicit"}},ls=function(){return""},us=function(e){return{type:"title",value:[e],indices:[fs,ds-1]}},ps=function(e){return{type:"translation_sequence",value:e,indices:[fs,ds-1]}},cs=function(e){return{type:"translation_sequence",value:e,indices:[fs,ds-1]}},gs=function(e){return{type:"translation",value:e.value,indices:[fs,ds-1]}},xs=function(e){return{type:"integer",value:parseInt(e.join(""),10),indices:[fs,ds-1]}},hs=function(e){return{type:"word",value:e.join(""),indices:[fs,ds-1]}},_s=function(e){return{type:"stop",value:e,indices:[fs,ds-1]}},ds=0|t.peg$currPos,fs=ds,vs=[{line:1,column:1}],bs=ds,ys=t.peg$maxFailExpected||[],ks=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function ms(e,s){return{type:"literal",text:e,ignoreCase:s}}function $s(e,s,t){return{type:"class",parts:e,inverted:s,ignoreCase:t}}function Es(e){var t,a=vs[e];if(a)return a;if(e>=vs.length)t=vs.length-1;else for(t=e;!vs[--t];);for(a={line:(a=vs[t]).line,column:a.column};t<e;)10===s.charCodeAt(t)?(a.line++,a.column=1):a.column++,t++;return vs[e]=a,a}function Is(e,s,t){var a=Es(e),n=Es(s),i={source:r,start:{offset:e,line:a.line,column:a.column},end:{offset:s,line:n.line,column:n.column}};return t&&r&&"function"==typeof r.offset&&(i.start=r.offset(i.start),i.end=r.offset(i.end)),i}function As(e){ds<bs||(ds>bs&&(bs=ds,ys=[]),ys.push(e))}function zs(s,t,a){return new e(e.buildMessage(s,t),s,t,a)}function Cs(){var e,s;if(e=[],(s=qs())===n&&(s=Js())===n&&(s=Hs())===n&&(s=Ps())===n&&(s=Qs())===n&&(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=Ds())===n&&(s=ws())===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=gt())===n&&(s=xt())===n&&(s=lt())===n&&(s=Ks())===n&&(s=Xs())===n&&(s=Vs())===n&&(s=Ws())===n&&(s=tt())===n&&(s=_t())===n&&(s=Us())===n&&(s=at())===n&&(s=ft())===n&&(s=vt())===n&&(s=Ys()),s!==n)for(;s!==n;)e.push(s),(s=qs())===n&&(s=Js())===n&&(s=Hs())===n&&(s=Ps())===n&&(s=Qs())===n&&(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=Ds())===n&&(s=ws())===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=gt())===n&&(s=xt())===n&&(s=lt())===n&&(s=Ks())===n&&(s=Xs())===n&&(s=Vs())===n&&(s=Ws())===n&&(s=tt())===n&&(s=_t())===n&&(s=Us())===n&&(s=at())===n&&(s=ft())===n&&(s=vt())===n&&(s=Ys());else e=n;return e}function Js(){var e,s,t,a,r,i;if(e=ds,(s=Hs())===n&&(s=qs())===n&&(s=Ps())===n&&(s=Qs())===n&&(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=Ds())===n&&(s=ws())===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=Ys()),s!==n){if(t=[],a=ds,(r=lt())===n&&(r=null),(i=Rs())!==n?a=r=[r,i]:(ds=a,a=n),a!==n)for(;a!==n;)t.push(a),a=ds,(r=lt())===n&&(r=null),(i=Rs())!==n?a=r=[r,i]:(ds=a,a=n);else t=n;t!==n?(fs=e,e=Je(s,t)):(ds=e,e=n)}else ds=e,e=n;return e}function Rs(){var e;return(e=function(){var e,t,a,r,i,o,p;if(e=ds,40===s.charCodeAt(ds)?(t=l,ds++):(t=n,0===ks&&As(D)),t!==n)if(bt(),lt(),(a=Rs())!==n){for(r=[],i=ds,(o=lt())===n&&(o=null),(p=Rs())!==n?i=o=[o,p]:(ds=i,i=n);i!==n;)r.push(i),i=ds,(o=lt())===n&&(o=null),(p=Rs())!==n?i=o=[o,p]:(ds=i,i=n);i=bt(),41===s.charCodeAt(ds)?(o=u,ds++):(o=n,0===ks&&As(B)),o!==n?(fs=e,e=Re(a,r)):(ds=e,e=n)}else ds=e,e=n;else ds=e,e=n;return e}())===n&&(e=Hs())===n&&(e=qs())===n&&(e=Ps())===n&&(e=Qs())===n&&(e=Ts())===n&&(e=Ss())===n&&(e=st())===n&&(e=Zs())===n&&(e=Ns())===n&&(e=et())===n&&(e=Ms())===n&&(e=Bs())===n&&(e=js())===n&&(e=Ds())===n&&(e=ws())===n&&(e=Os())===n&&(e=Gs())===n&&(e=Ls())===n&&(e=Fs())===n&&(e=Ks())===n&&(e=Xs())===n&&(e=Vs())===n&&(e=Ws())===n&&(e=tt())===n&&(e=_t())===n&&(e=Us())===n&&(e=at()),e}function Ps(){var e,s,t,a,r,i,o;return e=ds,(s=Ts())===n&&(s=Ss())===n&&(s=st())===n&&(s=Zs())===n&&(s=Ns())===n&&(s=et())===n&&(s=Ms())===n&&(s=Bs())===n&&(s=js())===n&&(s=ds,(t=ws())!==n?(a=ds,ks++,r=ds,(i=ut())!==n?((o=Ts())===n&&(o=Ss())===n&&(o=st())===n&&(o=Zs())===n&&(o=Ns())===n&&(o=et())===n&&(o=Ms())===n&&(o=js())===n&&(o=ws()),o!==n?r=i=[i,o]:(ds=r,r=n)):(ds=r,r=n),ks--,r!==n?(ds=a,a=void 0):a=n,a!==n?s=t=[t,a]:(ds=s,s=n)):(ds=s,s=n),s===n&&(s=Os())===n&&(s=Gs())===n&&(s=Ds())===n&&(s=Ls())===n&&(s=Fs())===n&&(s=Ks())===n&&(s=Xs())===n&&(s=Vs())===n&&(s=Ws())===n&&(s=tt())===n&&(s=_t())===n&&(s=Us())===n&&(s=at())),s!==n&&(t=ut())!==n?((a=Qs())===n&&(a=Ts())===n&&(a=Ss())===n&&(a=st())===n&&(a=Zs())===n&&(a=Ns())===n&&(a=et())===n&&(a=Ms())===n&&(a=Bs())===n&&(a=js())===n&&(a=ws())===n&&(a=Os())===n&&(a=Gs())===n&&(a=Ds())===n&&(a=Ls())===n&&(a=Fs())===n&&(a=Ks())===n&&(a=Xs())===n&&(a=Vs())===n&&(a=tt())===n&&(a=_t())===n&&(a=Ws())===n&&(a=Us())===n&&(a=at()),a!==n?(fs=e,e=Pe(s,a)):(ds=e,e=n)):(ds=e,e=n),e}function ws(){var e,t,a,r,i,o;return e=ds,31===s.charCodeAt(ds)?(t=p,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(r=ds,47===s.charCodeAt(ds)?(i=c,ds++):(i=n,0===ks&&As(V)),i!==n?(o=s.charAt(ds),Z.test(o)?ds++:(o=n,0===ks&&As(W)),o!==n?r=i=[i,o]:(ds=r,r=n)):(ds=r,r=n),r===n&&(r=null),31===s.charCodeAt(ds)?(i=p,ds++):(i=n,0===ks&&As(K)),i!==n?(fs=e,e=we(a)):(ds=e,e=n)):(ds=e,e=n),e}function Ms(){var e,s,t,a,r,i,o,l,u;if(e=ds,(s=ws())!==n){if(t=ds,(a=rt())!==n?(r=ds,ks++,i=ds,(o=Us())!==n&&(l=it())!==n&&(u=at())!==n?i=o=[o,l,u]:(ds=i,i=n),ks--,i!==n?(ds=r,r=void 0):r=n,r!==n?t=a=[a,r]:(ds=t,t=n)):(ds=t,t=n),t===n){if(t=[],(a=it())!==n)for(;a!==n;)t.push(a),a=it();else t=n;if(t===n){if(t=[],(a=ot())!==n)for(;a!==n;)t.push(a),a=ot();else t=n;if(t===n){if(t=[],(a=ut())!==n)for(;a!==n;)t.push(a),a=ut();else t=n;t===n&&(t=bt())}}}t!==n&&(a=Us())!==n?(fs=e,e=Me(s,a)):(ds=e,e=n)}else ds=e,e=n;return e}function Ss(){var e,s,t;return e=ds,(s=et())===n&&(s=Ms()),s!==n&&(t=pt())!==n?(fs=e,e=Ze(s,t)):(ds=e,e=n),e}function Zs(){var e,t,a,r,i,o,l;return e=ds,(t=et())===n&&(t=Ms()),t!==n?(a=ds,ks++,r=ds,46===s.charCodeAt(ds)?(i=x,ds++):(i=n,0===ks&&As(Q)),i!==n&&(o=rt())!==n&&(l=at())!==n?r=i=[i,o,l]:(ds=r,r=n),r===n&&(r=ds,(i=lt())===n&&(i=null),(o=rt())!==n&&(l=Vs())!==n?r=i=[i,o,l]:(ds=r,r=n)),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=ds,(i=it())===n&&(i=lt()),i===n&&(i=null),(o=rt())!==n?r=i=[i,o]:(ds=r,r=n),r===n&&(r=it()),r!==n?((i=tt())===n&&(i=at()),i!==n?(fs=e,e=Ne(t,i)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Ns(){var e,s,t,a,r,i,o;return e=ds,(s=et())===n&&(s=Ms()),s!==n&&ot()!==n?((t=tt())===n&&(t=at()),t!==n?(a=ds,ks++,r=ds,(i=it())!==n&&(o=at())!==n?r=i=[i,o]:(ds=r,r=n),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(fs=e,e=Te(s,t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Ts(){var e,t,a,r,i,o,l,u;return e=ds,t=function(){var e,t,a,r;return e=ds,(t=ws())!==n?(bt(),44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U)),a!==n?(bt(),(r=Us())!==n?(fs=e,e=Se(t,r)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}(),t!==n?(bt(),44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U)),a!==n?(bt(),(r=tt())===n&&(r=at()),r!==n?(i=ds,ks++,o=ds,(l=it())!==n&&(u=at())!==n?o=l=[l,u]:(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?(fs=e,e=qe(t,r)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function qs(){var e,t,a,r,i,o,l,u;return e=ds,(t=ws())!==n?(45===s.charCodeAt(ds)?(a=h,ds++):(a=n,0===ks&&As(X)),a===n&&(a=yt()),a===n&&(a=null),(r=Us())!==n?(45===s.charCodeAt(ds)?(i=h,ds++):(i=n,0===ks&&As(X)),i!==n&&(o=at())!==n?(45===s.charCodeAt(ds)?(l=h,ds++):(l=n,0===ks&&As(X)),l!==n&&(u=at())!==n?(fs=e,e=je(t,r,o,u)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function js(){var e,s,t,a,r,i;if(e=ds,(s=ws())!==n){if(t=[],(a=it())!==n)for(;a!==n;)t.push(a),a=it();else t=n;if(t===n){if(t=[],(a=ot())!==n)for(;a!==n;)t.push(a),a=ot();else t=n;if(t===n){if(t=[],(a=ut())!==n)for(;a!==n;)t.push(a),a=ut();else t=n;if(t===n){if(t=ds,a=[],(r=lt())!==n)for(;r!==n;)a.push(r),r=lt();else a=n;a!==n?(r=ds,ks++,i=rt(),ks--,i!==n?(ds=r,r=void 0):r=n,r!==n?t=a=[a,r]:(ds=t,t=n)):(ds=t,t=n),t===n&&(t=bt())}}}t!==n?((a=tt())===n&&(a=at()),a!==n?(fs=e,e=Le(s,a)):(ds=e,e=n)):(ds=e,e=n)}else ds=e,e=n;return e}function Ls(){var e,s,t;return e=ds,nt()!==n&&(s=Us())!==n?(ct()===n&&null,(t=ws())!==n?(fs=e,e=He(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Hs(){var e,s,t,a;return e=ds,nt()!==n&&(s=Us())!==n&&ut()!==n&&(t=Us())!==n?(ct()===n&&null,(a=ws())!==n?(fs=e,e=Oe(s,t,a)):(ds=e,e=n)):(ds=e,e=n),e}function Os(){var e,s,t;return e=ds,(s=Ls())!==n?(lt()===n&&null,rt()!==n&&(t=at())!==n?(fs=e,e=Fe(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Fs(){var e,t,a,r;return e=ds,(t=Us())!==n?(s.substr(ds,2)===_?(a=_,ds+=2):(a=n,0===ks&&As(Y)),a===n&&(s.substr(ds,2)===d?(a=d,ds+=2):(a=n,0===ks&&As(ee)),a===n&&(s.substr(ds,2)===f?(a=f,ds+=2):(a=n,0===ks&&As(se)))),a!==n&&nt()!==n?(ct()===n&&null,(r=ws())!==n?(fs=e,e=Ge(t,r)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Gs(){var e,s,t;return e=ds,(s=Fs())!==n?(lt()===n&&null,rt()!==n&&(t=at())!==n?(fs=e,e=De(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Ds(){var e,t,a,r;return e=ds,31===s.charCodeAt(ds)?(t=p,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(s.substr(ds,3)===v?(r=v,ds+=3):(r=n,0===ks&&As(te)),r!==n?(fs=e,e=Be(a)):(ds=e,e=n)):(ds=e,e=n),e}function Bs(){var e,s,t;return e=ds,(s=Ds())!==n?(lt()===n&&null,rt()!==n&&(t=at())!==n?(fs=e,e=Ke(s,t)):(ds=e,e=n)):(ds=e,e=n),e}function Ks(){var e,s,t;return e=ds,nt()!==n&&(s=Us())!==n&&(t=pt())!==n?(fs=e,e=Ve(s,t)):(ds=e,e=n),e}function Vs(){var e,t,a,r,i,o,l;return e=ds,rt()===n&&null,(t=Us())!==n?(a=ds,ks++,r=ds,46===s.charCodeAt(ds)?(i=x,ds++):(i=n,0===ks&&As(Q)),i!==n&&(o=rt())!==n&&(l=at())!==n?r=i=[i,o,l]:(ds=r,r=n),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=ds,(i=it())===n&&(i=null),(o=rt())!==n?r=i=[i,o]:(ds=r,r=n),r===n&&(r=it()),r!==n?((i=tt())===n&&(i=at()),i!==n?(fs=e,e=We(t,i)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Ws(){var e,s,t,a,r,i,o;return e=ds,(s=Us())!==n&&ot()!==n?((t=tt())===n&&(t=at()),t!==n?(a=ds,ks++,r=ds,(i=it())!==n&&(o=at())!==n?r=i=[i,o]:(ds=r,r=n),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(fs=e,e=Ue(s,t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Us(){var e,s;return e=ds,nt()===n&&null,(s=_t())!==n?(fs=e,e=Qe(s)):(ds=e,e=n),e}function Qs(){var e,t,a,r,i,o;return e=ds,(t=Zs())===n&&(t=Ns())===n&&(t=Ms())===n&&(t=js())===n&&(t=Vs())===n&&(t=Ws())===n&&(t=_t())===n&&(t=Us())===n&&(t=at()),t!==n?(bt(),s.substr(ds,2)===b?(a=b,ds+=2):(a=n,0===ks&&As(ae)),a!==n?(r=function(){var e,t,a,r,i,o,l,u,p;e=ds,t=bt(),46===s.charCodeAt(ds)?(a=x,ds++):(a=n,0===ks&&As(Q));a!==n?(r=ds,ks++,i=ds,o=bt(),46===s.charCodeAt(ds)?(l=x,ds++):(l=n,0===ks&&As(Q)),l!==n?(u=bt(),46===s.charCodeAt(ds)?(p=x,ds++):(p=n,0===ks&&As(Q)),p!==n?i=o=[o,l,u,p]:(ds=i,i=n)):(ds=i,i=n),ks--,i===n?r=void 0:(ds=r,r=n),r!==n?e=t=[t,a,r]:(ds=e,e=n)):(ds=e,e=n);return e}(),r===n&&(r=null),i=ds,ks++,o=s.charAt(ds),N.test(o)?ds++:(o=n,0===ks&&As(ne)),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?(fs=e,e=Xe(t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function Xs(){var e,s,t;return e=ds,(s=_t())!==n&&(t=pt())!==n?(fs=e,e=Ye(s,t)):(ds=e,e=n),e}function Ys(){var e,t,a,r;return e=ds,31===s.charCodeAt(ds)?(t=p,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(s.substr(ds,3)===y?(r=y,ds+=3):(r=n,0===ks&&As(re)),r!==n?(fs=e,e=es(a)):(ds=e,e=n)):(ds=e,e=n),e}function et(){var e,t,a,r,i;return e=ds,t=function(){var e,t,a,r;return e=ds,31===s.charCodeAt(ds)?(t=p,ds++):(t=n,0===ks&&As(K)),t!==n&&(a=dt())!==n?(s.substr(ds,3)===k?(r=k,ds+=3):(r=n,0===ks&&As(ie)),r!==n?(fs=e,e=ss(a)):(ds=e,e=n)):(ds=e,e=n),e}(),t!==n?(s.substr(ds,2)===m?(a=m,ds+=2):(a=n,0===ks&&As(oe)),a!==n?(r=ds,ks++,i=s.charAt(ds),T.test(i)?ds++:(i=n,0===ks&&As(le)),ks--,i===n?r=void 0:(ds=r,r=n),r!==n?(fs=e,e=ts(t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function st(){var e,t,a,r;return e=ds,(t=et())!==n?(46===s.charCodeAt(ds)?(a=x,ds++):(a=n,0===ks&&As(Q)),a!==n&&(r=_t())!==n?(fs=e,e=as(t,r)):(ds=e,e=n)):(ds=e,e=n),e}function tt(){var e,t,a,r,i,o;return e=ds,rt()===n&&null,(t=_t())!==n?(bt(),a=ds,ks++,s.substr(ds,2)===b?(r=b,ds+=2):(r=n,0===ks&&As(ae)),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=s.charAt(ds),q.test(r)?ds++:(r=n,0===ks&&As(ue)),r!==n?(i=ds,ks++,o=s.charAt(ds),N.test(o)?ds++:(o=n,0===ks&&As(ne)),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?(fs=e,e=ns(t)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n)):(ds=e,e=n),e}function at(){var e,s;return e=ds,rt()===n&&null,(s=_t())!==n?(fs=e,e=rs(s)):(ds=e,e=n),e}function nt(){var e,t;return e=ds,bt(),(t=s.substr(ds,8)).toLowerCase()===$?ds+=8:(t=n,0===ks&&As(pe)),t===n&&((t=s.substr(ds,5)).toLowerCase()===E?ds+=5:(t=n,0===ks&&As(ce))),t!==n?(bt(),fs=e,e=is()):(ds=e,e=n),e}function rt(){var e,t,a,r;return e=ds,bt(),t=ds,(a=s.substr(ds,4)).toLowerCase()===I?ds+=4:(a=n,0===ks&&As(ge)),a!==n?((r=s.substr(ds,3)).toLowerCase()===A?ds+=3:(r=n,0===ks&&As(xe)),r===n&&(r=""),r!==n?t=a=[a,r]:(ds=t,t=n)):(ds=t,t=n),t!==n?(a=ds,ks++,r=s.charAt(ds),N.test(r)?ds++:(r=n,0===ks&&As(ne)),ks--,r===n?a=void 0:(ds=a,a=n),a!==n?(r=bt(),fs=e,e=os()):(ds=e,e=n)):(ds=e,e=n),e}function it(){var e,t,a,r,i,o,l,u,p,c;if(e=ds,t=bt(),a=[],58===s.charCodeAt(ds)?(r=":",ds++):(r=n,0===ks&&As(he)),r!==n)for(;r!==n;)a.push(r),58===s.charCodeAt(ds)?(r=":",ds++):(r=n,0===ks&&As(he));else a=n;return a===n&&(a=ds,46===s.charCodeAt(ds)?(r=x,ds++):(r=n,0===ks&&As(Q)),r!==n?(i=ds,ks++,o=ds,l=bt(),46===s.charCodeAt(ds)?(u=x,ds++):(u=n,0===ks&&As(Q)),u!==n?(p=bt(),46===s.charCodeAt(ds)?(c=x,ds++):(c=n,0===ks&&As(Q)),c!==n?o=l=[l,u,p,c]:(ds=o,o=n)):(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?a=r=[r,i]:(ds=a,a=n)):(ds=a,a=n)),a!==n?e=t=[t,a,r=bt()]:(ds=e,e=n),e}function ot(){var e,t,a;return e=ds,t=bt(),a=s.charAt(ds),j.test(a)?ds++:(a=n,0===ks&&As(_e)),a!==n?e=t=[t,a,bt()]:(ds=e,e=n),e===n&&(e=yt()),e}function lt(){var e,t,a,r,i,o,l,u,p,c;if(e=ds,t=[],a=s.charAt(ds),L.test(a)?ds++:(a=n,0===ks&&As(de)),a===n&&(a=ds,46===s.charCodeAt(ds)?(r=x,ds++):(r=n,0===ks&&As(Q)),r!==n?(i=ds,ks++,o=ds,l=bt(),46===s.charCodeAt(ds)?(u=x,ds++):(u=n,0===ks&&As(Q)),u!==n?(p=bt(),46===s.charCodeAt(ds)?(c=x,ds++):(c=n,0===ks&&As(Q)),c!==n?o=l=[l,u,p,c]:(ds=o,o=n)):(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?a=r=[r,i]:(ds=a,a=n)):(ds=a,a=n),a===n&&((a=s.charAt(ds)).toLowerCase()===z?ds++:(a=n,0===ks&&As(fe)),a===n&&(a=yt()))),a!==n)for(;a!==n;)t.push(a),a=s.charAt(ds),L.test(a)?ds++:(a=n,0===ks&&As(de)),a===n&&(a=ds,46===s.charCodeAt(ds)?(r=x,ds++):(r=n,0===ks&&As(Q)),r!==n?(i=ds,ks++,o=ds,l=bt(),46===s.charCodeAt(ds)?(u=x,ds++):(u=n,0===ks&&As(Q)),u!==n?(p=bt(),46===s.charCodeAt(ds)?(c=x,ds++):(c=n,0===ks&&As(Q)),c!==n?o=l=[l,u,p,c]:(ds=o,o=n)):(ds=o,o=n),ks--,o===n?i=void 0:(ds=i,i=n),i!==n?a=r=[r,i]:(ds=a,a=n)):(ds=a,a=n),a===n&&((a=s.charAt(ds)).toLowerCase()===z?ds++:(a=n,0===ks&&As(fe)),a===n&&(a=yt())));else t=n;return t!==n&&(fs=e,t=ls()),e=t}function ut(){var e,t,a,r,i;if(e=ds,t=bt(),a=[],r=ds,i=s.charAt(ds),H.test(i)?ds++:(i=n,0===ks&&As(ve)),i!==n?r=i=[i,bt()]:(ds=r,r=n),r===n&&(r=ds,45===s.charCodeAt(ds)?(i=h,ds++):(i=n,0===ks&&As(X)),i!==n?r=i=[i,bt()]:(ds=r,r=n)),r!==n)for(;r!==n;)a.push(r),r=ds,i=s.charAt(ds),H.test(i)?ds++:(i=n,0===ks&&As(ve)),i!==n?r=i=[i,bt()]:(ds=r,r=n),r===n&&(r=ds,45===s.charCodeAt(ds)?(i=h,ds++):(i=n,0===ks&&As(X)),i!==n?r=i=[i,bt()]:(ds=r,r=n));else a=n;return a!==n?e=t=[t,a]:(ds=e,e=n),e}function pt(){var e,t,a;return e=ds,(t=it())===n&&(t=lt()),t===n&&(t=null),s.substr(ds,5)===C?(a=C,ds+=5):(a=n,0===ks&&As(be)),a!==n?(fs=e,e=us(a)):(ds=e,e=n),e}function ct(){var e,t,a,r,i,o,l,u,p,c;return e=ds,t=bt(),s.substr(ds,4)===J?(a=J,ds+=4):(a=n,0===ks&&As(ye)),a===n&&(s.substr(ds,2)===R?(a=R,ds+=2):(a=n,0===ks&&As(ke)),a===n&&(s.substr(ds,2)===P?(a=P,ds+=2):(a=n,0===ks&&As(me)))),a!==n?(r=bt(),i=ds,s.substr(ds,3)===w?(o=w,ds+=3):(o=n,0===ks&&As($e)),o!==n?(l=bt(),s.substr(ds,4)===M?(u=M,ds+=4):(u=n,0===ks&&As(Ee)),u!==n?(p=bt(),s.substr(ds,2)===R?(c=R,ds+=2):(c=n,0===ks&&As(ke)),c!==n?i=o=[o,l,u,p,c,bt()]:(ds=i,i=n)):(ds=i,i=n)):(ds=i,i=n),i===n&&(i=null),e=t=[t,a,r,i]):(ds=e,e=n),e}function gt(){var e,t,a,r,i,o,l,u;if(e=ds,bt(),t=s.charAt(ds),O.test(t)?ds++:(t=n,0===ks&&As(Ie)),t!==n){if(bt(),a=ds,(r=ht())!==n){for(i=[],o=ds,(l=lt())!==n&&(u=ht())!==n?o=l=[l,u]:(ds=o,o=n);o!==n;)i.push(o),o=ds,(l=lt())!==n&&(u=ht())!==n?o=l=[l,u]:(ds=o,o=n);a=r=[r,i]}else ds=a,a=n;a!==n?(r=bt(),i=s.charAt(ds),F.test(i)?ds++:(i=n,0===ks&&As(Ae)),i!==n?(fs=e,e=ps(a)):(ds=e,e=n)):(ds=e,e=n)}else ds=e,e=n;return e}function xt(){var e,t,a,r,i,o,l,u;if(e=ds,bt(),t=ds,44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U)),a!==n?t=a=[a,r=bt()]:(ds=t,t=n),t===n&&(t=null),a=ds,(r=ht())!==n){for(i=[],o=ds,(l=lt())!==n&&(u=ht())!==n?o=l=[l,u]:(ds=o,o=n);o!==n;)i.push(o),o=ds,(l=lt())!==n&&(u=ht())!==n?o=l=[l,u]:(ds=o,o=n);a=r=[r,i]}else ds=a,a=n;return a!==n?(fs=e,e=cs(a)):(ds=e,e=n),e}function ht(){var e,t,a,r;return e=ds,30===s.charCodeAt(ds)?(t=S,ds++):(t=n,0===ks&&As(ze)),t!==n&&(a=dt())!==n?(30===s.charCodeAt(ds)?(r=S,ds++):(r=n,0===ks&&As(ze)),r!==n?(fs=e,e=gs(a)):(ds=e,e=n)):(ds=e,e=n),e}function _t(){var e;return(e=/^[0-9]{1,3}(?!\d|,000)/.exec(s.substr(ds)))?(fs=ds,ds+=e[0].length,{type:"integer",value:parseInt(e[0],10),indices:[fs,ds-1]}):n}function dt(){var e,t,a;if(e=ds,t=[],a=s.charAt(ds),T.test(a)?ds++:(a=n,0===ks&&As(le)),a!==n)for(;a!==n;)t.push(a),a=s.charAt(ds),T.test(a)?ds++:(a=n,0===ks&&As(le));else t=n;return t!==n&&(fs=e,t=xs(t)),e=t}function ft(){var e,t,a;if(e=ds,t=[],a=s.charAt(ds),G.test(a)?ds++:(a=n,0===ks&&As(Ce)),a!==n)for(;a!==n;)t.push(a),a=s.charAt(ds),G.test(a)?ds++:(a=n,0===ks&&As(Ce));else t=n;return t!==n&&(fs=e,t=hs(t)),e=t}function vt(){var e,t;return e=ds,t=s.charAt(ds),O.test(t)?ds++:(t=n,0===ks&&As(Ie)),t!==n&&(fs=e,t=_s(t)),e=t}function bt(){var e;return(e=yt())===n&&(e=null),e}function yt(){var e;return(e=/^[\s\xa0*]+/.exec(s.substr(ds)))?(ds+=e[0].length,[]):n}if("punctuation_strategy"in t&&"eu"===t.punctuation_strategy&&(it=function(){var e,t,a;e=ds,t=bt(),44===s.charCodeAt(ds)?(a=g,ds++):(a=n,0===ks&&As(U));a!==n?e=t=[t,a,bt()]:(ds=e,e=n);return e},L=/^[;\/:&\-\u2013\u2014~]/),a=o(),t.peg$library)return{peg$result:a,peg$currPos:ds,peg$FAILED:n,peg$maxFailExpected:ys,peg$maxFailPos:bs};if(a!==n&&ds===s.length)return a;throw a!==n&&ds<s.length&&As({type:"end"}),zs(ys,bs<s.length?s.charAt(bs):null,bs<s.length?Is(bs,bs+1):Is(bs,bs))}}}()}).call(this);
|
package/dist/test/sr.spec.js
CHANGED
|
@@ -1383,10 +1383,12 @@
|
|
|
1383
1383
|
p.include_apocrypha(true);
|
|
1384
1384
|
});
|
|
1385
1385
|
it("should handle book: Joel (sr)", function() {
|
|
1386
|
+
expect(p.parse("Јоило 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Јоило 1:1'");
|
|
1386
1387
|
expect(p.parse("Joel 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Joel 1:1'");
|
|
1387
1388
|
expect(p.parse("Јоил 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Јоил 1:1'");
|
|
1388
1389
|
expect(p.parse("Јоиљ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'Јоиљ 1:1'");
|
|
1389
1390
|
p.include_apocrypha(false);
|
|
1391
|
+
expect(p.parse("ЈОИЛО 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ЈОИЛО 1:1'");
|
|
1390
1392
|
expect(p.parse("JOEL 1:1").osis()).toEqual("Joel.1.1", "parsing: 'JOEL 1:1'");
|
|
1391
1393
|
expect(p.parse("ЈОИЛ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ЈОИЛ 1:1'");
|
|
1392
1394
|
expect(p.parse("ЈОИЉ 1:1").osis()).toEqual("Joel.1.1", "parsing: 'ЈОИЉ 1:1'");
|